@cmstops/pro-compo 0.1.30 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +218 -20
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +2 -1
- package/es/contentDetailList/component.js +3 -1
- package/es/contentDetailList/components/Content/CompoItem/index.js +2 -1
- package/es/contentDetailList/components/Content/ContentListItem/index.js +2 -1
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -1
- package/es/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/es/contentDetailList/components/Content/DocMpItem/index.js +2 -1
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +2 -1
- package/es/contentDetailList/components/Content/LiveItem/index.js +2 -1
- package/es/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/es/contentDetailList/components/Content/index.js +7 -2
- package/es/contentDetailList/components/Doc/index.js +2 -1
- package/es/contentDetailList/style/DocItem.less +4 -3
- package/es/contentDetailList/style/index.css +3 -3
- package/es/contentModal/component.js +39 -36
- package/es/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/es/contentModal/components/CompoList/index.js +10 -3
- package/es/contentModal/components/ContentList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/ContentList/index.js +2 -1
- package/es/contentModal/components/LiveList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/LiveList/index.js +2 -1
- package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +2 -1
- package/es/contentModal/components/MpAccountList/index.js +2 -1
- package/es/contentModal/components/MpContentList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/MpContentList/index.js +2 -1
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +55 -23
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +68 -18
- package/es/contentModal/components/ViewAllColumn/index.js +93 -45
- package/es/contentModal/components/storeBox/index.js +8 -7
- package/es/contentModal/images/pic-thumb.js +2 -0
- package/es/contentModal/style/MediaFilter.less +35 -5
- package/es/contentModal/style/ViewAllColumn.less +11 -0
- package/es/contentModal/style/columnTree.less +25 -5
- package/es/contentModal/style/index.css +56 -11
- package/es/contentModal/style/storeBox.less +16 -6
- package/es/dataTags/component.js +26 -5
- package/es/editMetaInfo/component.js +2 -1
- package/es/editMetaInfo/components/metaInfoForm.js +93 -7
- package/es/editMetaInfo/style/index.css +18 -1
- package/es/editMetaInfo/style/index.less +31 -1
- package/es/hooks/source.d.ts +9 -0
- package/es/hooks/source.js +31 -0
- package/es/hooks/user.d.ts +1 -1
- package/es/imageCrop/component.js +16 -9
- package/es/index.css +218 -20
- package/es/mediaFilter/component.js +2 -1
- package/es/mediaFilter/components/DocFilter.js +2 -1
- package/es/mediaFilter/components/FilterGroup.js +1 -1
- package/es/messageBox/list.js +2 -1
- package/es/previousVersion/component.js +2 -1
- package/es/resourceModal/assets/images/sys_load_more.js +2 -0
- package/es/resourceModal/component.js +11 -3
- package/es/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -7
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +87 -34
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +139 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +103 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +103 -0
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/index.js +18 -8
- package/es/resourceModal/script/api.d.ts +17 -0
- package/es/resourceModal/script/api.js +21 -1
- package/es/resourceModal/script/mediaSelection.d.ts +4 -0
- package/es/resourceModal/script/mediaSelection.js +8 -0
- package/es/resourceModal/style/MainContent.less +25 -5
- package/es/resourceModal/style/SystemResourceSelected.less +138 -0
- package/es/resourceModal/style/index.css +142 -6
- package/es/resourceModal/style/index.less +1 -0
- package/es/selectAvatarList/component.js +2 -1
- package/es/selectGategory/component.js +2 -1
- package/es/selectGategory/components/ColumnSelection/index.js +2 -1
- package/es/selectThumb/component.js +8 -3
- package/es/selectThumb/components/card.js +5 -7
- package/es/selectThumb/components/colorPalette.js +2 -1
- package/es/selectThumb/components/colorPicker.js +2 -1
- package/es/typeIcons/component.js +10 -7
- package/es/uploadBefore/component.js +3 -2
- package/es/uploadBefore/components/UploadBefore.js +2 -1
- package/es/uploadBefore/components/UploadForClick.js +2 -1
- package/es/uploadStep/component.js +3 -2
- package/es/userDirector/component.js +2 -1
- package/es/userDirector/components/userTree.js +2 -1
- package/es/utils/doc.d.ts +1 -0
- package/es/utils/doc.js +2 -1
- package/es/utils/typeMap.d.ts +1 -0
- package/es/utils/typeMap.js +2 -1
- package/lib/baseFilter/component.js +2 -1
- package/lib/contentDetailList/component.js +3 -1
- package/lib/contentDetailList/components/Content/CompoItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocMpItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/LiveItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/index.js +6 -1
- package/lib/contentDetailList/components/Doc/index.js +2 -1
- package/lib/contentDetailList/style/DocItem.less +4 -3
- package/lib/contentDetailList/style/index.css +3 -3
- package/lib/contentModal/component.js +39 -36
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/lib/contentModal/components/CompoList/index.js +10 -3
- package/lib/contentModal/components/ContentList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/ContentList/index.js +2 -1
- package/lib/contentModal/components/LiveList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/LiveList/index.js +2 -1
- package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +2 -1
- package/lib/contentModal/components/MpAccountList/index.js +2 -1
- package/lib/contentModal/components/MpContentList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/MpContentList/index.js +2 -1
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +53 -21
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +66 -16
- package/lib/contentModal/components/ViewAllColumn/index.js +92 -44
- package/lib/contentModal/components/storeBox/index.js +8 -7
- package/lib/contentModal/images/pic-thumb.js +3 -0
- package/lib/contentModal/style/MediaFilter.less +35 -5
- package/lib/contentModal/style/ViewAllColumn.less +11 -0
- package/lib/contentModal/style/columnTree.less +25 -5
- package/lib/contentModal/style/index.css +56 -11
- package/lib/contentModal/style/storeBox.less +16 -6
- package/lib/dataTags/component.js +25 -4
- package/lib/editMetaInfo/component.js +2 -1
- package/lib/editMetaInfo/components/metaInfoForm.js +91 -5
- package/lib/editMetaInfo/style/index.css +18 -1
- package/lib/editMetaInfo/style/index.less +31 -1
- package/lib/hooks/source.js +34 -0
- package/lib/imageCrop/component.js +16 -9
- package/lib/index.css +218 -20
- package/lib/mediaFilter/component.js +2 -1
- package/lib/mediaFilter/components/DocFilter.js +2 -1
- package/lib/mediaFilter/components/FilterGroup.js +1 -1
- package/lib/messageBox/list.js +2 -1
- package/lib/previousVersion/component.js +2 -1
- package/lib/resourceModal/assets/images/sys_load_more.js +3 -0
- package/lib/resourceModal/component.js +10 -2
- package/lib/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -7
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +86 -33
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +140 -0
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +104 -0
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +104 -0
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/index.js +17 -7
- package/lib/resourceModal/script/api.js +23 -0
- package/lib/resourceModal/script/mediaSelection.js +10 -0
- package/lib/resourceModal/style/MainContent.less +25 -5
- package/lib/resourceModal/style/SystemResourceSelected.less +138 -0
- package/lib/resourceModal/style/index.css +142 -6
- package/lib/resourceModal/style/index.less +1 -0
- package/lib/selectAvatarList/component.js +2 -1
- package/lib/selectGategory/component.js +2 -1
- package/lib/selectGategory/components/ColumnSelection/index.js +2 -1
- package/lib/selectThumb/component.js +7 -2
- package/lib/selectThumb/components/card.js +5 -7
- package/lib/selectThumb/components/colorPalette.js +2 -1
- package/lib/selectThumb/components/colorPicker.js +2 -1
- package/lib/typeIcons/component.js +9 -6
- package/lib/uploadBefore/component.js +3 -2
- package/lib/uploadBefore/components/UploadBefore.js +2 -1
- package/lib/uploadBefore/components/UploadForClick.js +2 -1
- package/lib/uploadStep/component.js +3 -2
- package/lib/userDirector/component.js +2 -1
- package/lib/userDirector/components/userTree.js +2 -1
- package/lib/utils/doc.js +2 -1
- package/lib/utils/typeMap.js +2 -1
- package/package.json +5 -3
- package/es/editMetaInfo/script/restaurants.js +0 -127
- package/lib/editMetaInfo/script/restaurants.js +0 -128
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createCommentVNode, withDirectives, createElementBlock, Fragment, renderList, createVNode, toDisplayString, vShow, normalizeClass
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createElementVNode, createCommentVNode, withDirectives, createElementBlock, Fragment, renderList, createVNode, toDisplayString, createTextVNode, vShow, normalizeClass } from "vue";
|
|
2
2
|
import _imports_0 from "../../../assets/selection/null.js";
|
|
3
3
|
import { Scrollbar, Tooltip, Button } from "@arco-design/web-vue";
|
|
4
|
+
import { IconDoubleDown, IconDoubleUp } from "@arco-design/web-vue/es/icon";
|
|
4
5
|
import _sfc_main$2 from "../../../../typeIcons/component.js";
|
|
5
6
|
import _sfc_main$1 from "./FileTypeThumb/index.js";
|
|
6
7
|
import { timeFormat } from "../../../script/filter.js";
|
|
@@ -9,31 +10,36 @@ const _hoisted_2 = { class: "folder-list clearfix" };
|
|
|
9
10
|
const _hoisted_3 = ["onClick"];
|
|
10
11
|
const _hoisted_4 = { class: "wrap" };
|
|
11
12
|
const _hoisted_5 = { class: "thumb" };
|
|
12
|
-
const _hoisted_6 =
|
|
13
|
-
const _hoisted_7 = { class: "
|
|
14
|
-
const _hoisted_8 =
|
|
13
|
+
const _hoisted_6 = ["onClick"];
|
|
14
|
+
const _hoisted_7 = { class: "wrap" };
|
|
15
|
+
const _hoisted_8 = { class: "thumb" };
|
|
16
|
+
const _hoisted_9 = { class: "folder-more-wrap" };
|
|
17
|
+
const _hoisted_10 = { class: "file-list clearfix" };
|
|
18
|
+
const _hoisted_11 = { class: "thumb-wrap" };
|
|
19
|
+
const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", { class: "transcoding-in-progress grid-mode" }, [
|
|
15
20
|
/* @__PURE__ */ createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
|
|
16
21
|
], -1);
|
|
17
|
-
const
|
|
22
|
+
const _hoisted_13 = {
|
|
18
23
|
key: 0,
|
|
19
24
|
class: "load_more_title"
|
|
20
25
|
};
|
|
21
|
-
const
|
|
26
|
+
const _hoisted_14 = {
|
|
22
27
|
key: 1,
|
|
23
28
|
class: "nomore_tips"
|
|
24
29
|
};
|
|
25
|
-
const
|
|
30
|
+
const _hoisted_15 = {
|
|
26
31
|
key: 1,
|
|
27
32
|
class: "null-file"
|
|
28
33
|
};
|
|
29
|
-
const
|
|
34
|
+
const _hoisted_16 = /* @__PURE__ */ createElementVNode("img", {
|
|
35
|
+
alt: "",
|
|
30
36
|
class: "null-pic",
|
|
31
37
|
src: _imports_0
|
|
32
38
|
}, null, -1);
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
const _hoisted_17 = /* @__PURE__ */ createElementVNode("p", null, "\u6682\u65E0\u7D20\u6750", -1);
|
|
40
|
+
const _hoisted_18 = [
|
|
41
|
+
_hoisted_16,
|
|
42
|
+
_hoisted_17
|
|
37
43
|
];
|
|
38
44
|
const _sfc_main = defineComponent({
|
|
39
45
|
__name: "index",
|
|
@@ -47,7 +53,17 @@ const _sfc_main = defineComponent({
|
|
|
47
53
|
loadFileMore: { type: Function }
|
|
48
54
|
},
|
|
49
55
|
emits: ["confirm"],
|
|
50
|
-
setup(__props, { emit }) {
|
|
56
|
+
setup(__props, { emit: __emit }) {
|
|
57
|
+
const props = __props;
|
|
58
|
+
const isFold = ref(true);
|
|
59
|
+
watch(
|
|
60
|
+
() => props.folderList.length,
|
|
61
|
+
(n) => {
|
|
62
|
+
isFold.value = n > 10;
|
|
63
|
+
},
|
|
64
|
+
{ immediate: true }
|
|
65
|
+
);
|
|
66
|
+
const emit = __emit;
|
|
51
67
|
const confirm = (itemData) => {
|
|
52
68
|
selectedData.value = [itemData];
|
|
53
69
|
emit("confirm", selectedData.value);
|
|
@@ -59,7 +75,8 @@ const _sfc_main = defineComponent({
|
|
|
59
75
|
createElementVNode("div", _hoisted_1, [
|
|
60
76
|
createCommentVNode(" \u6587\u4EF6\u5939 "),
|
|
61
77
|
withDirectives(createElementVNode("div", _hoisted_2, [
|
|
62
|
-
(
|
|
78
|
+
createCommentVNode(" \u6587\u4EF6\u5939\u6570\u91CF<10"),
|
|
79
|
+
!isFold.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.folderList, (item, index) => {
|
|
63
80
|
return openBlock(), createElementBlock("div", {
|
|
64
81
|
key: index,
|
|
65
82
|
class: "item folder-item",
|
|
@@ -67,10 +84,10 @@ const _sfc_main = defineComponent({
|
|
|
67
84
|
}, [
|
|
68
85
|
createElementVNode("div", _hoisted_4, [
|
|
69
86
|
createVNode(unref(Tooltip), {
|
|
87
|
+
content: item.alias,
|
|
70
88
|
"open-delay": 500,
|
|
71
89
|
class: "item",
|
|
72
90
|
effect: "dark",
|
|
73
|
-
content: item.alias,
|
|
74
91
|
placement: "top"
|
|
75
92
|
}, {
|
|
76
93
|
default: withCtx(() => [
|
|
@@ -82,38 +99,74 @@ const _sfc_main = defineComponent({
|
|
|
82
99
|
}, 1032, ["content"])
|
|
83
100
|
])
|
|
84
101
|
], 8, _hoisted_3);
|
|
85
|
-
}), 128))
|
|
102
|
+
}), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
103
|
+
createCommentVNode(" \u6587\u4EF6\u5939\u6570\u91CF>10"),
|
|
104
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.folderList.slice(0, 9), (item, index) => {
|
|
105
|
+
return openBlock(), createElementBlock("div", {
|
|
106
|
+
key: index,
|
|
107
|
+
class: "item folder-item",
|
|
108
|
+
onClick: ($event) => _ctx.changeDirectory(item)
|
|
109
|
+
}, [
|
|
110
|
+
createElementVNode("div", _hoisted_7, [
|
|
111
|
+
createVNode(unref(Tooltip), {
|
|
112
|
+
content: item.alias,
|
|
113
|
+
"open-delay": 500,
|
|
114
|
+
class: "item",
|
|
115
|
+
effect: "dark",
|
|
116
|
+
placement: "top"
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createElementVNode("div", _hoisted_8, [
|
|
120
|
+
createElementVNode("h4", null, toDisplayString(item.alias), 1)
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
_: 2
|
|
124
|
+
}, 1032, ["content"])
|
|
125
|
+
])
|
|
126
|
+
], 8, _hoisted_6);
|
|
127
|
+
}), 128))
|
|
128
|
+
], 64)),
|
|
129
|
+
_ctx.folderList.length > 10 ? (openBlock(), createElementBlock("div", {
|
|
130
|
+
key: 2,
|
|
131
|
+
class: "folder-more-button",
|
|
132
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isFold.value = !isFold.value)
|
|
133
|
+
}, [
|
|
134
|
+
createElementVNode("div", _hoisted_9, [
|
|
135
|
+
isFold.value ? (openBlock(), createBlock(unref(IconDoubleDown), { key: 0 })) : (openBlock(), createBlock(unref(IconDoubleUp), { key: 1 })),
|
|
136
|
+
createTextVNode(" " + toDisplayString(isFold.value ? "\u5C55\u5F00\u5168\u90E8" : "\u6536\u7F29\u5168\u90E8"), 1)
|
|
137
|
+
])
|
|
138
|
+
])) : createCommentVNode("v-if", true)
|
|
86
139
|
], 512), [
|
|
87
140
|
[vShow, _ctx.folderList.length !== 0]
|
|
88
141
|
]),
|
|
89
142
|
createCommentVNode(" \u6587\u4EF6 "),
|
|
90
|
-
createElementVNode("div",
|
|
143
|
+
createElementVNode("div", _hoisted_10, [
|
|
91
144
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item, index) => {
|
|
92
145
|
return openBlock(), createElementBlock("div", {
|
|
93
146
|
key: index,
|
|
94
147
|
class: "item"
|
|
95
148
|
}, [
|
|
96
149
|
createElementVNode("div", {
|
|
97
|
-
class: normalizeClass([
|
|
150
|
+
class: normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"])
|
|
98
151
|
}, [
|
|
99
|
-
createElementVNode("div",
|
|
152
|
+
createElementVNode("div", _hoisted_11, [
|
|
100
153
|
createVNode(_sfc_main$1, {
|
|
101
|
-
preview: _ctx.preview,
|
|
102
154
|
"item-data": item,
|
|
155
|
+
preview: _ctx.preview,
|
|
103
156
|
onConfirm: confirm
|
|
104
|
-
}, null, 8, ["
|
|
157
|
+
}, null, 8, ["item-data", "preview"])
|
|
105
158
|
]),
|
|
106
159
|
createElementVNode("h4", null, [
|
|
107
160
|
createVNode(_sfc_main$2, {
|
|
108
|
-
class: "icon",
|
|
109
|
-
type: item.catalog,
|
|
110
161
|
doc: item.catalog !== "image",
|
|
111
|
-
resource: item.catalog === "image"
|
|
112
|
-
|
|
162
|
+
resource: item.catalog === "image",
|
|
163
|
+
type: item.catalog,
|
|
164
|
+
class: "icon"
|
|
165
|
+
}, null, 8, ["doc", "resource", "type"]),
|
|
113
166
|
createVNode(unref(Tooltip), {
|
|
167
|
+
content: item.alias,
|
|
114
168
|
"open-delay": 500,
|
|
115
169
|
effect: "dark",
|
|
116
|
-
content: item.alias,
|
|
117
170
|
placement: "top"
|
|
118
171
|
}, {
|
|
119
172
|
default: withCtx(() => [
|
|
@@ -127,12 +180,12 @@ const _sfc_main = defineComponent({
|
|
|
127
180
|
item.task ? (openBlock(), createBlock(unref(Tooltip), {
|
|
128
181
|
key: 0,
|
|
129
182
|
"open-delay": 2e3,
|
|
130
|
-
effect: "dark",
|
|
131
183
|
content: "\u8F6C\u7801\u4E2D\uFF0C\u6682\u4E0D\u53EF\u7528",
|
|
184
|
+
effect: "dark",
|
|
132
185
|
placement: "bottom"
|
|
133
186
|
}, {
|
|
134
187
|
default: withCtx(() => [
|
|
135
|
-
|
|
188
|
+
_hoisted_12
|
|
136
189
|
]),
|
|
137
190
|
_: 1
|
|
138
191
|
})) : createCommentVNode("v-if", true)
|
|
@@ -140,21 +193,21 @@ const _sfc_main = defineComponent({
|
|
|
140
193
|
]);
|
|
141
194
|
}), 128))
|
|
142
195
|
]),
|
|
143
|
-
_ctx.fileListCount ? (openBlock(), createElementBlock("div",
|
|
196
|
+
_ctx.fileListCount ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
144
197
|
!_ctx.isOver ? (openBlock(), createBlock(unref(Button), {
|
|
145
198
|
key: 0,
|
|
146
|
-
type: "text",
|
|
147
|
-
size: "small",
|
|
148
199
|
class: "loadmore_tips",
|
|
200
|
+
size: "small",
|
|
201
|
+
type: "text",
|
|
149
202
|
onClick: _ctx.loadFileMore
|
|
150
203
|
}, {
|
|
151
204
|
default: withCtx(() => [
|
|
152
|
-
createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026")
|
|
205
|
+
createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
|
|
153
206
|
]),
|
|
154
207
|
_: 1
|
|
155
|
-
}, 8, ["onClick"])) : (openBlock(), createElementBlock("div",
|
|
208
|
+
}, 8, ["onClick"])) : (openBlock(), createElementBlock("div", _hoisted_14, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
|
|
156
209
|
])) : createCommentVNode("v-if", true),
|
|
157
|
-
!_ctx.fileList.length && !_ctx.folderList.length ? (openBlock(), createElementBlock("div",
|
|
210
|
+
!_ctx.fileList.length && !_ctx.folderList.length ? (openBlock(), createElementBlock("div", _hoisted_15, _hoisted_18)) : createCommentVNode("v-if", true)
|
|
158
211
|
])
|
|
159
212
|
]),
|
|
160
213
|
_: 1
|
|
File without changes
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent, inject, ref, computed, watch, onMounted, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, unref, withCtx, Fragment, renderList, createBlock, withDirectives, createTextVNode, vShow } from "vue";
|
|
2
|
+
import { Input, Select, Option, Button } from "@arco-design/web-vue";
|
|
3
|
+
import { IconRefresh } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
import { rateOptions } from "../../../../script/filter.js";
|
|
5
|
+
import { getSysRsClassifyList } from "../../../../script/api.js";
|
|
6
|
+
const _hoisted_1 = { class: "toolbar-search-container sysfile-filter-container" };
|
|
7
|
+
const _hoisted_2 = { class: "top-container" };
|
|
8
|
+
const _hoisted_3 = { class: "filter-content" };
|
|
9
|
+
const _hoisted_4 = { class: "filter-left" };
|
|
10
|
+
const _sfc_main = defineComponent({
|
|
11
|
+
...{ name: "ToolbarSearch" },
|
|
12
|
+
__name: "SystemResourceFilter",
|
|
13
|
+
emits: ["search", "changeScen"],
|
|
14
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
|
+
const mediaUseType = inject("mediaUseType");
|
|
16
|
+
const baseApi = inject("baseAPI");
|
|
17
|
+
const filter = ref({
|
|
18
|
+
keyword: "",
|
|
19
|
+
wh_rate: "",
|
|
20
|
+
limit: 9
|
|
21
|
+
});
|
|
22
|
+
const classify_id = ref("");
|
|
23
|
+
const classifyIdOptions = ref([]);
|
|
24
|
+
const loadClassify = async () => {
|
|
25
|
+
const res = await getSysRsClassifyList(baseApi, mediaUseType);
|
|
26
|
+
if (res.code !== 0)
|
|
27
|
+
return;
|
|
28
|
+
classifyIdOptions.value = res.message.classifies;
|
|
29
|
+
};
|
|
30
|
+
const emit = __emit;
|
|
31
|
+
const contentSearch = () => {
|
|
32
|
+
const params = { ...filter.value, sys_tag: mediaUseType };
|
|
33
|
+
emit("search", params);
|
|
34
|
+
};
|
|
35
|
+
const changeScen = () => emit("changeScen", classify_id.value);
|
|
36
|
+
const clearKeyword = () => {
|
|
37
|
+
filter.value.keyword = "";
|
|
38
|
+
};
|
|
39
|
+
const showReset = computed(
|
|
40
|
+
() => filter.value.keyword || filter.value.wh_rate || classify_id.value
|
|
41
|
+
);
|
|
42
|
+
const reset = () => {
|
|
43
|
+
filter.value = {
|
|
44
|
+
keyword: "",
|
|
45
|
+
wh_rate: "",
|
|
46
|
+
limit: 9
|
|
47
|
+
};
|
|
48
|
+
classify_id.value = "";
|
|
49
|
+
changeScen();
|
|
50
|
+
contentSearch();
|
|
51
|
+
};
|
|
52
|
+
watch(
|
|
53
|
+
() => filter.value,
|
|
54
|
+
() => contentSearch(),
|
|
55
|
+
{ deep: true }
|
|
56
|
+
);
|
|
57
|
+
watch(
|
|
58
|
+
() => classify_id.value,
|
|
59
|
+
() => changeScen()
|
|
60
|
+
);
|
|
61
|
+
onMounted(() => {
|
|
62
|
+
loadClassify();
|
|
63
|
+
});
|
|
64
|
+
__expose({ reset });
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
67
|
+
createElementVNode("div", _hoisted_2, [
|
|
68
|
+
renderSlot(_ctx.$slots, "other"),
|
|
69
|
+
createElementVNode("div", _hoisted_3, [
|
|
70
|
+
createElementVNode("div", _hoisted_4, [
|
|
71
|
+
createVNode(unref(Input), {
|
|
72
|
+
modelValue: filter.value.keyword,
|
|
73
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.keyword = $event),
|
|
74
|
+
class: "filter-item",
|
|
75
|
+
"allow-clear": "",
|
|
76
|
+
placeholder: "\u8F93\u5165\u7D20\u6750\u6807\u9898\u641C\u7D22",
|
|
77
|
+
onClear: clearKeyword
|
|
78
|
+
}, null, 8, ["modelValue"]),
|
|
79
|
+
createVNode(unref(Select), {
|
|
80
|
+
modelValue: classify_id.value,
|
|
81
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => classify_id.value = $event),
|
|
82
|
+
class: "filter-item",
|
|
83
|
+
placeholder: "\u573A\u666F\u5206\u7C7B"
|
|
84
|
+
}, {
|
|
85
|
+
default: withCtx(() => [
|
|
86
|
+
createVNode(unref(Option), {
|
|
87
|
+
label: "\u5168\u90E8\u573A\u666F",
|
|
88
|
+
value: ""
|
|
89
|
+
}),
|
|
90
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(classifyIdOptions.value, (item) => {
|
|
91
|
+
return openBlock(), createBlock(unref(Option), {
|
|
92
|
+
key: item.classify_id,
|
|
93
|
+
label: item.scenario_name,
|
|
94
|
+
value: item.classify_id
|
|
95
|
+
}, null, 8, ["label", "value"]);
|
|
96
|
+
}), 128))
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["modelValue"]),
|
|
100
|
+
createVNode(unref(Select), {
|
|
101
|
+
modelValue: filter.value.wh_rate,
|
|
102
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.wh_rate = $event),
|
|
103
|
+
class: "filter-item",
|
|
104
|
+
placeholder: "\u56FE\u7247\u6BD4\u4F8B"
|
|
105
|
+
}, {
|
|
106
|
+
default: withCtx(() => [
|
|
107
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(rateOptions), (item) => {
|
|
108
|
+
return openBlock(), createBlock(unref(Option), {
|
|
109
|
+
key: item.value,
|
|
110
|
+
label: item.label,
|
|
111
|
+
value: item.value
|
|
112
|
+
}, null, 8, ["label", "value"]);
|
|
113
|
+
}), 128))
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["modelValue"]),
|
|
117
|
+
withDirectives(createVNode(unref(Button), {
|
|
118
|
+
type: "text",
|
|
119
|
+
size: "medium",
|
|
120
|
+
onClick: reset
|
|
121
|
+
}, {
|
|
122
|
+
icon: withCtx(() => [
|
|
123
|
+
createVNode(unref(IconRefresh))
|
|
124
|
+
]),
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
createTextVNode("\u91CD\u7F6E\u7B5B\u9009")
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 512), [
|
|
130
|
+
[vShow, showReset.value]
|
|
131
|
+
])
|
|
132
|
+
])
|
|
133
|
+
])
|
|
134
|
+
])
|
|
135
|
+
]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export { _sfc_main as default };
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent, inject, ref, computed, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, renderList, normalizeClass, createVNode, unref, withCtx, toDisplayString, normalizeStyle, createTextVNode } from "vue";
|
|
2
|
+
import _imports_0 from "../../../../assets/images/sys_load_more.js";
|
|
3
|
+
import { Tooltip } from "@arco-design/web-vue";
|
|
4
|
+
import _sfc_main$1 from "../../MainContent/FileTypeThumb/index.js";
|
|
5
|
+
import { getSysRsPage } from "../../../../script/api.js";
|
|
6
|
+
const _hoisted_1 = { class: "sys-res-file-list clearfix" };
|
|
7
|
+
const _hoisted_2 = { class: "thumb-wrap" };
|
|
8
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("img", { src: _imports_0 }, null, -1);
|
|
9
|
+
const _sfc_main = defineComponent({
|
|
10
|
+
__name: "SystemResourceList",
|
|
11
|
+
props: {
|
|
12
|
+
sceniro: {},
|
|
13
|
+
outsideFilter: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["confirm"],
|
|
16
|
+
setup(__props, { emit: __emit }) {
|
|
17
|
+
const emits = __emit;
|
|
18
|
+
const props = __props;
|
|
19
|
+
const baseApi = inject("baseAPI");
|
|
20
|
+
const fileList = ref([]);
|
|
21
|
+
const fileCount = ref(0);
|
|
22
|
+
const showMore = computed(
|
|
23
|
+
() => fileList.value.length < props.sceniro.count
|
|
24
|
+
);
|
|
25
|
+
watch(
|
|
26
|
+
() => props.sceniro,
|
|
27
|
+
() => {
|
|
28
|
+
fileList.value = props.sceniro.data;
|
|
29
|
+
fileCount.value = props.sceniro.count;
|
|
30
|
+
},
|
|
31
|
+
{ deep: true, immediate: true }
|
|
32
|
+
);
|
|
33
|
+
const selectedData = ref([]);
|
|
34
|
+
const confirm = (itemData) => {
|
|
35
|
+
selectedData.value = [itemData];
|
|
36
|
+
emits("confirm", selectedData.value);
|
|
37
|
+
};
|
|
38
|
+
const loadMore = async () => {
|
|
39
|
+
const { sceniro } = props;
|
|
40
|
+
const { outsideFilter } = props;
|
|
41
|
+
const res = await getSysRsPage(baseApi, {
|
|
42
|
+
sys_classify: sceniro.classify_id,
|
|
43
|
+
sys_tag: sceniro.sys_tag,
|
|
44
|
+
keyword: outsideFilter.keyword || "",
|
|
45
|
+
wh_rate: outsideFilter.wh_rate || "",
|
|
46
|
+
limit: 10,
|
|
47
|
+
offset: fileList.value.length
|
|
48
|
+
});
|
|
49
|
+
if (res.code !== 0)
|
|
50
|
+
return;
|
|
51
|
+
fileCount.value = res.message.count;
|
|
52
|
+
fileList.value = fileList.value.concat(res.message.data);
|
|
53
|
+
};
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
56
|
+
createCommentVNode(" \u6587\u4EF6 "),
|
|
57
|
+
createElementVNode("div", _hoisted_1, [
|
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item) => {
|
|
59
|
+
return openBlock(), createElementBlock("div", {
|
|
60
|
+
key: item.classify_id,
|
|
61
|
+
class: "item"
|
|
62
|
+
}, [
|
|
63
|
+
createElementVNode("div", {
|
|
64
|
+
class: normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"])
|
|
65
|
+
}, [
|
|
66
|
+
createElementVNode("div", _hoisted_2, [
|
|
67
|
+
createVNode(_sfc_main$1, {
|
|
68
|
+
"item-data": item,
|
|
69
|
+
preview: true,
|
|
70
|
+
onConfirm: confirm
|
|
71
|
+
}, null, 8, ["item-data"])
|
|
72
|
+
]),
|
|
73
|
+
createElementVNode("h4", null, [
|
|
74
|
+
createVNode(unref(Tooltip), {
|
|
75
|
+
content: item.alias,
|
|
76
|
+
"open-delay": 500,
|
|
77
|
+
effect: "dark",
|
|
78
|
+
placement: "top"
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createElementVNode("span", null, toDisplayString(item.alias), 1)
|
|
82
|
+
]),
|
|
83
|
+
_: 2
|
|
84
|
+
}, 1032, ["content"])
|
|
85
|
+
])
|
|
86
|
+
], 2)
|
|
87
|
+
]);
|
|
88
|
+
}), 128)),
|
|
89
|
+
showMore.value ? (openBlock(), createElementBlock("div", {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: "item-load-more",
|
|
92
|
+
style: normalizeStyle({ width: "calc(20% - 20px)" }),
|
|
93
|
+
onClick: loadMore
|
|
94
|
+
}, [
|
|
95
|
+
_hoisted_3,
|
|
96
|
+
createTextVNode(" \u70B9\u51FB\u52A0\u8F7D\u66F4\u591A ")
|
|
97
|
+
], 4)) : createCommentVNode("v-if", true)
|
|
98
|
+
])
|
|
99
|
+
], 2112);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export { _sfc_main as default };
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent, inject, ref, computed, onMounted, openBlock, createElementBlock, createVNode, createElementVNode, unref, withCtx, Fragment, renderList, withDirectives, createTextVNode, toDisplayString, vShow, createCommentVNode } from "vue";
|
|
2
|
+
import _imports_0 from "../../../assets/selection/null.js";
|
|
3
|
+
import { Scrollbar } from "@arco-design/web-vue";
|
|
4
|
+
import _sfc_main$1 from "./components/SystemResourceFilter.js";
|
|
5
|
+
import _sfc_main$2 from "./components/SystemResourceList.js";
|
|
6
|
+
import { getSysRsByTag } from "../../../script/api.js";
|
|
7
|
+
const _hoisted_1 = { class: "sys-resource-dialog" };
|
|
8
|
+
const _hoisted_2 = { class: "sys-resource-cards" };
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "scen-module"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_4 = { class: "title" };
|
|
14
|
+
const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "line" }, null, -1);
|
|
15
|
+
const _hoisted_6 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "null-file"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_7 = /* @__PURE__ */ createElementVNode("img", {
|
|
20
|
+
class: "null-pic",
|
|
21
|
+
src: _imports_0
|
|
22
|
+
}, null, -1);
|
|
23
|
+
const _hoisted_8 = /* @__PURE__ */ createElementVNode("p", null, "\u6682\u65E0\u7D20\u6750", -1);
|
|
24
|
+
const _hoisted_9 = [
|
|
25
|
+
_hoisted_7,
|
|
26
|
+
_hoisted_8
|
|
27
|
+
];
|
|
28
|
+
const _sfc_main = defineComponent({
|
|
29
|
+
__name: "index",
|
|
30
|
+
emits: ["confirm"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const emits = __emit;
|
|
33
|
+
const mediaUseType = inject("mediaUseType");
|
|
34
|
+
const baseApi = inject("baseAPI");
|
|
35
|
+
const scenList = ref([]);
|
|
36
|
+
const choseScen = ref("");
|
|
37
|
+
const outsideFilter = ref(null);
|
|
38
|
+
const handleSearch = async (filter) => {
|
|
39
|
+
outsideFilter.value = filter;
|
|
40
|
+
const res = await getSysRsByTag(baseApi, filter);
|
|
41
|
+
if (res.code !== 0)
|
|
42
|
+
return;
|
|
43
|
+
scenList.value = res.message.Results;
|
|
44
|
+
};
|
|
45
|
+
const handleChangeScen = (scen) => {
|
|
46
|
+
choseScen.value = scen;
|
|
47
|
+
};
|
|
48
|
+
const handleConfirm = (data) => {
|
|
49
|
+
data[0].realUrl = data[0].url;
|
|
50
|
+
emits("confirm", data);
|
|
51
|
+
};
|
|
52
|
+
const isEmpty = computed(() => {
|
|
53
|
+
if (!scenList.value.length)
|
|
54
|
+
return true;
|
|
55
|
+
if (choseScen.value !== "") {
|
|
56
|
+
const scen = scenList.value.find(
|
|
57
|
+
(item) => item.classify_id === choseScen.value
|
|
58
|
+
);
|
|
59
|
+
return scen.data === null;
|
|
60
|
+
}
|
|
61
|
+
return !scenList.value.some((item) => item.data && item.data.length > 0);
|
|
62
|
+
});
|
|
63
|
+
onMounted(() => {
|
|
64
|
+
handleSearch({ sys_tag: mediaUseType, limit: 9 });
|
|
65
|
+
});
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
68
|
+
createVNode(_sfc_main$1, {
|
|
69
|
+
onSearch: handleSearch,
|
|
70
|
+
onChangeScen: handleChangeScen
|
|
71
|
+
}),
|
|
72
|
+
createElementVNode("div", _hoisted_2, [
|
|
73
|
+
createVNode(unref(Scrollbar), { class: "sys-resource-scroll" }, {
|
|
74
|
+
default: withCtx(() => [
|
|
75
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(scenList.value, (sceniro) => {
|
|
76
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
77
|
+
key: sceniro.classify_id
|
|
78
|
+
}, [
|
|
79
|
+
sceniro.data && sceniro.data.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
|
|
80
|
+
createElementVNode("div", _hoisted_4, [
|
|
81
|
+
_hoisted_5,
|
|
82
|
+
createTextVNode(" " + toDisplayString(sceniro.scenario_name), 1)
|
|
83
|
+
]),
|
|
84
|
+
createVNode(_sfc_main$2, {
|
|
85
|
+
"outside-filter": outsideFilter.value,
|
|
86
|
+
sceniro,
|
|
87
|
+
onConfirm: handleConfirm
|
|
88
|
+
}, null, 8, ["outside-filter", "sceniro"])
|
|
89
|
+
], 512)), [
|
|
90
|
+
[vShow, [sceniro.classify_id, ""].includes(choseScen.value)]
|
|
91
|
+
]) : createCommentVNode("v-if", true)
|
|
92
|
+
], 64);
|
|
93
|
+
}), 128)),
|
|
94
|
+
isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_6, _hoisted_9)) : createCommentVNode("v-if", true)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
})
|
|
98
|
+
])
|
|
99
|
+
]);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export { _sfc_main as default };
|
|
@@ -18,7 +18,7 @@ const _sfc_main = defineComponent({
|
|
|
18
18
|
base_api: {}
|
|
19
19
|
},
|
|
20
20
|
emits: ["search"],
|
|
21
|
-
setup(__props, { expose: __expose, emit }) {
|
|
21
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22
22
|
const props = __props;
|
|
23
23
|
const filter = ref({
|
|
24
24
|
keyword: "",
|
|
@@ -58,6 +58,7 @@ const _sfc_main = defineComponent({
|
|
|
58
58
|
() => contentSearch(),
|
|
59
59
|
{ deep: true }
|
|
60
60
|
);
|
|
61
|
+
const emit = __emit;
|
|
61
62
|
const contentSearch = () => {
|
|
62
63
|
if (filter.value.keyword === "" && filter.value.upload_by === "" && filter.value.sf === "" && filter.value.wh_rate === "" && filter.value.uploadTime === null) {
|
|
63
64
|
emit("search", null);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createBlock, normalizeStyle,
|
|
1
|
+
import { defineComponent, inject, ref, onMounted, computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createBlock, normalizeStyle, Fragment, withDirectives, renderList, createTextVNode, toDisplayString, vShow } from "vue";
|
|
2
2
|
import { Tabs, TabPane, Button, Breadcrumb, BreadcrumbItem } from "@arco-design/web-vue";
|
|
3
3
|
import { IconArrowLeft } from "@arco-design/web-vue/es/icon";
|
|
4
4
|
import { getAttachmentsAll, getAttachmentsMy, getDirectories } from "../../script/api.js";
|
|
5
5
|
import _sfc_main$1 from "./DocAiMediaSelected/index.js";
|
|
6
|
-
import _sfc_main$2 from "./
|
|
7
|
-
import _sfc_main$3 from "./
|
|
6
|
+
import _sfc_main$2 from "./SystemResourceSelected/index.js";
|
|
7
|
+
import _sfc_main$3 from "./ToolbarSearch/index.js";
|
|
8
|
+
import _sfc_main$4 from "./MainContent/index.js";
|
|
8
9
|
const _hoisted_1 = {
|
|
9
10
|
class: "media-selection",
|
|
10
11
|
unselectable: "on"
|
|
@@ -24,8 +25,10 @@ const _sfc_main = defineComponent({
|
|
|
24
25
|
ai_gif_covers: {}
|
|
25
26
|
},
|
|
26
27
|
emits: ["confirm"],
|
|
27
|
-
setup(__props, { emit }) {
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
28
29
|
const props = __props;
|
|
30
|
+
const emit = __emit;
|
|
31
|
+
const mediaUseType = inject("mediaUseType");
|
|
29
32
|
const confirm = (itemData) => {
|
|
30
33
|
emit("confirm", itemData);
|
|
31
34
|
};
|
|
@@ -43,7 +46,7 @@ const _sfc_main = defineComponent({
|
|
|
43
46
|
});
|
|
44
47
|
const filter = ref(null);
|
|
45
48
|
const activeMediaType = ref(
|
|
46
|
-
props.ai_static_covers && props.ai_static_covers.length ? "ai" : "all"
|
|
49
|
+
props.ai_static_covers && props.ai_static_covers.length ? "ai" : mediaUseType ? "system" : "all"
|
|
47
50
|
);
|
|
48
51
|
const api = ref({ getAttachmentsAll, getAttachmentsMy });
|
|
49
52
|
const currentDirectory = ref({
|
|
@@ -171,6 +174,10 @@ const _sfc_main = defineComponent({
|
|
|
171
174
|
key: "ai",
|
|
172
175
|
title: "AI\u4F18\u9009"
|
|
173
176
|
})) : createCommentVNode("v-if", true),
|
|
177
|
+
unref(mediaUseType) ? (openBlock(), createBlock(unref(TabPane), {
|
|
178
|
+
key: "system",
|
|
179
|
+
title: "\u5185\u7F6E\u8D44\u6E90"
|
|
180
|
+
})) : createCommentVNode("v-if", true),
|
|
174
181
|
createVNode(unref(TabPane), {
|
|
175
182
|
key: "all",
|
|
176
183
|
title: "\u5168\u90E8\u7D20\u6750"
|
|
@@ -195,12 +202,15 @@ const _sfc_main = defineComponent({
|
|
|
195
202
|
"selected-max": _ctx.selectedMax,
|
|
196
203
|
preview: _ctx.preview,
|
|
197
204
|
onConfirm: confirm
|
|
198
|
-
}, null, 8, ["ai_static_covers", "ai_gif_covers", "selected-max", "preview"])) :
|
|
205
|
+
}, null, 8, ["ai_static_covers", "ai_gif_covers", "selected-max", "preview"])) : activeMediaType.value === "system" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
206
|
+
createCommentVNode(" \u5185\u7F6E\u8D44\u6E90 "),
|
|
207
|
+
createVNode(_sfc_main$2, { onConfirm: confirm })
|
|
208
|
+
], 2112)) : createCommentVNode("v-if", true),
|
|
199
209
|
createCommentVNode(" \u7D20\u6750\u5E93\u7D20\u6750 "),
|
|
200
210
|
createCommentVNode(" \u7EC4\u7EC7\u3001\u6587\u4EF6\u5939\u9762\u5305\u5C51 "),
|
|
201
211
|
withDirectives(createElementVNode("div", _hoisted_4, [
|
|
202
212
|
createElementVNode("div", _hoisted_5, [
|
|
203
|
-
createVNode(_sfc_main$
|
|
213
|
+
createVNode(_sfc_main$3, {
|
|
204
214
|
ref_key: "getMoreData",
|
|
205
215
|
ref: getMoreData,
|
|
206
216
|
class: "tool-search-box",
|
|
@@ -247,7 +257,7 @@ const _sfc_main = defineComponent({
|
|
|
247
257
|
_: 1
|
|
248
258
|
})) : createCommentVNode("v-if", true),
|
|
249
259
|
createCommentVNode(" \u6211\u7684\u5DE5\u7A0B\u3001\u89C6\u9891\u5217\u8868 "),
|
|
250
|
-
createVNode(_sfc_main$
|
|
260
|
+
createVNode(_sfc_main$4, {
|
|
251
261
|
"folder-list": folderList.value,
|
|
252
262
|
"file-list": fileList.value,
|
|
253
263
|
"file-list-count": fileListCount.value,
|