@cmstops/pro-compo 3.9.1-harbin.1 → 3.9.1-harbin.2
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/README.md +107 -107
- package/dist/gif.worker.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/appCenter/style/index.less +120 -120
- package/es/baseFilter/components/FilterGroup.js +1 -1
- package/es/baseFilter/style/filterGroup.less +53 -53
- package/es/baseFilter/style/index.less +45 -45
- package/es/colorPalette/style/index.less +44 -44
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
- package/es/contentDetailList/style/ComoItem.less +99 -99
- package/es/contentDetailList/style/Content.less +49 -49
- package/es/contentDetailList/style/ContentListItem.less +132 -132
- package/es/contentDetailList/style/CustomItem.less +25 -25
- package/es/contentDetailList/style/Doc.less +3 -3
- package/es/contentDetailList/style/DocItem.less +152 -152
- package/es/contentDetailList/style/DocMpItem.less +135 -135
- package/es/contentDetailList/style/GroupPieceItem.less +108 -108
- package/es/contentDetailList/style/KongoNavItem.less +104 -104
- package/es/contentDetailList/style/LiveItem.less +108 -108
- package/es/contentDetailList/style/MaccountItem.less +111 -111
- package/es/contentDetailList/style/MatrixItem.less +214 -214
- package/es/contentDetailList/style/QrCodeView.less +93 -93
- package/es/contentDetailList/style/ShowQRCode.less +3 -3
- package/es/contentDetailList/style/courseItem.less +108 -108
- package/es/contentDetailList/style/funhdItem.less +108 -108
- package/es/contentDetailList/style/index.less +30 -30
- package/es/contentModal/component.js +8 -8
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +177 -6
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +151 -0
- package/es/contentModal/components/storeBox/index.js +2 -2
- package/es/contentModal/script/api.js +7 -1
- package/es/contentModal/style/MediaFilter.less +47 -47
- package/es/contentModal/style/ViewAllColumn.less +68 -68
- package/es/contentModal/style/columnTree.less +32 -32
- package/es/contentModal/style/index.less +23 -23
- package/es/contentModal/style/storeBox.less +55 -55
- package/es/dataTags/component.js +5 -5
- package/es/dataTags/style/index.less +73 -73
- package/es/docHistory/component.js +1 -1
- package/es/docHistory/style/docDiffPanel.less +43 -43
- package/es/docHistory/style/docHistoryList.less +58 -58
- package/es/docHistory/style/index.less +37 -37
- package/es/docPreview/component.js +5 -5
- package/es/docPreview/style/index.less +140 -140
- package/es/docPreview/style/previewIframe.less +36 -36
- package/es/editMetaInfo/components/metaInfoForm.js +2 -2
- package/es/editMetaInfo/style/index.less +60 -60
- package/es/emptyData/style/index.less +34 -34
- package/es/gif.worker.js +3 -3
- package/es/imageCrop/component.js +2 -2
- package/es/imageCrop/style/cropper.less +291 -291
- package/es/imageCrop/style/imageCropper.less +133 -133
- package/es/imageCrop/style/index.less +2 -2
- package/es/importData/component.js +4 -4
- package/es/importData/style/index.less +48 -48
- package/es/index.less +30 -30
- package/es/mediaFilter/components/DocFilter.js +1 -1
- package/es/mediaFilter/components/FilterGroup.js +1 -1
- package/es/mediaFilter/style/index.less +115 -115
- package/es/mediaView/style/index.less +71 -71
- package/es/messageBox/component.js +1 -1
- package/es/messageBox/list.js +1 -1
- package/es/messageBox/style/index.less +76 -76
- package/es/previousVersion/style/index.less +209 -209
- package/es/resourceGridList/component.js +1 -1
- package/es/resourceGridList/style/FileTypeThumb.less +96 -96
- package/es/resourceGridList/style/index.less +233 -233
- package/es/resourceModal/component.js +1 -1
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
- package/es/resourceModal/style/DocAiMediaSelected.less +55 -55
- package/es/resourceModal/style/FileTypeThumb.less +205 -205
- package/es/resourceModal/style/MainContent.less +222 -222
- package/es/resourceModal/style/MediaPreviewer.less +71 -71
- package/es/resourceModal/style/MediaSelection.less +69 -69
- package/es/resourceModal/style/SystemResourceSelected.less +154 -154
- package/es/resourceModal/style/ToolbarSearch.less +53 -53
- package/es/resourceModal/style/index.less +18 -18
- package/es/selectAddTo/component.js +1 -1
- package/es/selectAddTo/components/SelectAddToView.js +3 -3
- package/es/selectAddTo/components/ViewAllColumn/index.js +1 -1
- package/es/selectAddTo/style/index.less +3 -3
- package/es/selectAvatarList/style/index.less +4 -4
- package/es/selectGategory/component.js +1 -1
- package/es/selectGategory/style/ColumnSelection.less +190 -190
- package/es/selectGategory/style/index.less +40 -40
- package/es/selectResourceModal/component.js +5 -5
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -2
- package/es/selectResourceModal/components/List/ListLocal/index.js +1 -1
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
- package/es/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
- package/es/selectResourceModal/style/index.less +55 -55
- package/es/selectResourceModal/style/list.less +203 -203
- package/es/selectResourceModal/style/listCardWrapper.less +97 -97
- package/es/selectResourceModal/style/listSelected.less +94 -94
- package/es/selectThumb/component.js +8 -8
- package/es/selectThumb/style/card.less +95 -95
- package/es/selectThumb/style/colorPalette.less +30 -30
- package/es/selectThumb/style/index.less +62 -62
- package/es/style/index.less +1 -1
- package/es/style.css +14 -14
- package/es/thumbCard/style/index.less +90 -90
- package/es/thumbCard/style/thumbUploading.less +26 -26
- package/es/typeIcons/style/index.less +6 -6
- package/es/uploadBefore/components/UploadBefore.js +1 -1
- package/es/uploadBefore/style/index.less +144 -144
- package/es/uploadStep/style/index.less +152 -152
- package/es/userAvater/component.js +1 -1
- package/es/userAvater/style/index.less +54 -54
- package/es/userDirector/component.js +1 -1
- package/es/userDirector/style/index.less +96 -96
- package/es/videoThumb/style/index.less +77 -77
- package/lib/appCenter/style/index.less +120 -120
- package/lib/baseFilter/components/FilterGroup.js +1 -1
- package/lib/baseFilter/style/filterGroup.less +53 -53
- package/lib/baseFilter/style/index.less +45 -45
- package/lib/colorPalette/style/index.less +44 -44
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
- package/lib/contentDetailList/style/ComoItem.less +99 -99
- package/lib/contentDetailList/style/Content.less +49 -49
- package/lib/contentDetailList/style/ContentListItem.less +132 -132
- package/lib/contentDetailList/style/CustomItem.less +25 -25
- package/lib/contentDetailList/style/Doc.less +3 -3
- package/lib/contentDetailList/style/DocItem.less +152 -152
- package/lib/contentDetailList/style/DocMpItem.less +135 -135
- package/lib/contentDetailList/style/GroupPieceItem.less +108 -108
- package/lib/contentDetailList/style/KongoNavItem.less +104 -104
- package/lib/contentDetailList/style/LiveItem.less +108 -108
- package/lib/contentDetailList/style/MaccountItem.less +111 -111
- package/lib/contentDetailList/style/MatrixItem.less +214 -214
- package/lib/contentDetailList/style/QrCodeView.less +93 -93
- package/lib/contentDetailList/style/ShowQRCode.less +3 -3
- package/lib/contentDetailList/style/courseItem.less +108 -108
- package/lib/contentDetailList/style/funhdItem.less +108 -108
- package/lib/contentDetailList/style/index.less +30 -30
- package/lib/contentModal/component.js +8 -8
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -5
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +152 -0
- package/lib/contentModal/components/storeBox/index.js +2 -2
- package/lib/contentModal/script/api.js +7 -0
- package/lib/contentModal/style/MediaFilter.less +47 -47
- package/lib/contentModal/style/ViewAllColumn.less +68 -68
- package/lib/contentModal/style/columnTree.less +32 -32
- package/lib/contentModal/style/index.less +23 -23
- package/lib/contentModal/style/storeBox.less +55 -55
- package/lib/dataTags/component.js +5 -5
- package/lib/dataTags/style/index.less +73 -73
- package/lib/docHistory/component.js +1 -1
- package/lib/docHistory/style/docDiffPanel.less +43 -43
- package/lib/docHistory/style/docHistoryList.less +58 -58
- package/lib/docHistory/style/index.less +37 -37
- package/lib/docPreview/component.js +5 -5
- package/lib/docPreview/style/index.less +140 -140
- package/lib/docPreview/style/previewIframe.less +36 -36
- package/lib/editMetaInfo/components/metaInfoForm.js +2 -2
- package/lib/editMetaInfo/style/index.less +60 -60
- package/lib/emptyData/style/index.less +34 -34
- package/lib/imageCrop/component.js +2 -2
- package/lib/imageCrop/style/cropper.less +291 -291
- package/lib/imageCrop/style/imageCropper.less +133 -133
- package/lib/imageCrop/style/index.less +2 -2
- package/lib/importData/component.js +4 -4
- package/lib/importData/style/index.less +48 -48
- package/lib/index.less +30 -30
- package/lib/mediaFilter/components/DocFilter.js +1 -1
- package/lib/mediaFilter/components/FilterGroup.js +1 -1
- package/lib/mediaFilter/style/index.less +115 -115
- package/lib/mediaView/style/index.less +71 -71
- package/lib/messageBox/component.js +1 -1
- package/lib/messageBox/list.js +1 -1
- package/lib/messageBox/style/index.less +76 -76
- package/lib/previousVersion/style/index.less +209 -209
- package/lib/resourceGridList/component.js +1 -1
- package/lib/resourceGridList/style/FileTypeThumb.less +96 -96
- package/lib/resourceGridList/style/index.less +233 -233
- package/lib/resourceModal/component.js +1 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
- package/lib/resourceModal/style/DocAiMediaSelected.less +55 -55
- package/lib/resourceModal/style/FileTypeThumb.less +205 -205
- package/lib/resourceModal/style/MainContent.less +222 -222
- package/lib/resourceModal/style/MediaPreviewer.less +71 -71
- package/lib/resourceModal/style/MediaSelection.less +69 -69
- package/lib/resourceModal/style/SystemResourceSelected.less +154 -154
- package/lib/resourceModal/style/ToolbarSearch.less +53 -53
- package/lib/resourceModal/style/index.less +18 -18
- package/lib/selectAddTo/component.js +1 -1
- package/lib/selectAddTo/components/SelectAddToView.js +3 -3
- package/lib/selectAddTo/components/ViewAllColumn/index.js +1 -1
- package/lib/selectAddTo/style/index.less +3 -3
- package/lib/selectAvatarList/style/index.less +4 -4
- package/lib/selectGategory/component.js +1 -1
- package/lib/selectGategory/style/ColumnSelection.less +190 -190
- package/lib/selectGategory/style/index.less +40 -40
- package/lib/selectResourceModal/component.js +5 -5
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -2
- package/lib/selectResourceModal/components/List/ListLocal/index.js +1 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
- package/lib/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
- package/lib/selectResourceModal/style/index.less +55 -55
- package/lib/selectResourceModal/style/list.less +203 -203
- package/lib/selectResourceModal/style/listCardWrapper.less +97 -97
- package/lib/selectResourceModal/style/listSelected.less +94 -94
- package/lib/selectThumb/component.js +8 -8
- package/lib/selectThumb/style/card.less +95 -95
- package/lib/selectThumb/style/colorPalette.less +30 -30
- package/lib/selectThumb/style/index.less +62 -62
- package/lib/style/index.less +1 -1
- package/lib/thumbCard/style/index.less +90 -90
- package/lib/thumbCard/style/thumbUploading.less +26 -26
- package/lib/typeIcons/style/index.less +6 -6
- package/lib/uploadBefore/components/UploadBefore.js +1 -1
- package/lib/uploadBefore/style/index.less +144 -144
- package/lib/uploadStep/style/index.less +152 -152
- package/lib/userAvater/component.js +1 -1
- package/lib/userAvater/style/index.less +54 -54
- package/lib/userDirector/component.js +1 -1
- package/lib/userDirector/style/index.less +96 -96
- package/lib/videoThumb/style/index.less +77 -77
- package/package.json +138 -138
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, createBlock } from "vue";
|
|
2
|
-
import { Space, Input, Select, Option, Tooltip } from "@arco-design/web-vue";
|
|
3
|
-
import { IconInfoCircle } from "@arco-design/web-vue/es/icon";
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, createBlock, withDirectives, createTextVNode, vShow } from "vue";
|
|
2
|
+
import { Space, Input, Select, Option, Tooltip, Button } from "@arco-design/web-vue";
|
|
3
|
+
import { IconInfoCircle, IconRefresh } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
import { docSeries, docThumbMap } from "../../../../utils/doc.js";
|
|
5
|
+
import _sfc_main$1 from "../columnTree/index.js";
|
|
4
6
|
const _hoisted_1 = { class: "media-filter-container" };
|
|
5
7
|
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
|
|
6
8
|
const _hoisted_3 = { class: "sort-button" };
|
|
@@ -10,7 +12,10 @@ const _sfc_main = defineComponent({
|
|
|
10
12
|
props: {
|
|
11
13
|
groupId: {},
|
|
12
14
|
tree: { default: () => [] },
|
|
13
|
-
|
|
15
|
+
series: { default: "all" },
|
|
16
|
+
banner: { default: "all" },
|
|
17
|
+
height: {},
|
|
18
|
+
userInfo: {}
|
|
14
19
|
},
|
|
15
20
|
emits: ["update:group_id", "search"],
|
|
16
21
|
setup(__props, { emit: __emit }) {
|
|
@@ -38,12 +43,82 @@ const _sfc_main = defineComponent({
|
|
|
38
43
|
desc: "\u4F1A\u5C06\u8F93\u5165\u5185\u5BB9\u5206\u8BCD\uFF0C\u4F8B\u5982\u201C\u6210\u957F\u201D\u4F1A\u5206\u4E3A\u201C\u6210\u201D\u3001\u201C\u957F\u201D\u3001\u201C\u6210\u957F\u201D\uFF0C\u5185\u5BB9\u5305\u542B\u4E09\u4E2A\u8BCD\u4E2D\u4EFB\u610F\u4E00\u4E2A\u5747\u4F1A\u663E\u793A\u51FA\u6765\uFF0C\u641C\u7D22\u5185\u5BB9\u66F4\u52A0\u4E30\u5BCC"
|
|
39
44
|
}
|
|
40
45
|
];
|
|
46
|
+
const bannerOptions = computed(() => {
|
|
47
|
+
const options = [
|
|
48
|
+
{
|
|
49
|
+
value: "0",
|
|
50
|
+
key: "0",
|
|
51
|
+
label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
value: "1",
|
|
55
|
+
key: "1",
|
|
56
|
+
label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
return options.filter(
|
|
60
|
+
(item) => props.banner === "all" || props.banner === item.key
|
|
61
|
+
);
|
|
62
|
+
});
|
|
63
|
+
const typeOptions = computed(() => {
|
|
64
|
+
const arr = Object.keys(docSeries).map((key) => {
|
|
65
|
+
return {
|
|
66
|
+
value: key,
|
|
67
|
+
label: docSeries[key].replace("\u7A3F\u4EF6", "")
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
return arr.filter((item) => {
|
|
71
|
+
if (props.series === "all") {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
return props.series.split(",").includes(item.value);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
const thumbOptions = computed(() => {
|
|
78
|
+
return Object.keys(docThumbMap()).map((key) => {
|
|
79
|
+
return {
|
|
80
|
+
value: key,
|
|
81
|
+
label: docThumbMap()[key]
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
});
|
|
41
85
|
const sortMethodOptions = computed(() => {
|
|
42
86
|
return [
|
|
43
87
|
{ value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
|
|
44
88
|
{ value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
|
|
45
89
|
];
|
|
46
90
|
});
|
|
91
|
+
const showReset = computed(() => {
|
|
92
|
+
let { banner } = filter.value;
|
|
93
|
+
if (props.banner !== "all") {
|
|
94
|
+
banner = "";
|
|
95
|
+
}
|
|
96
|
+
let series = filter.value.type;
|
|
97
|
+
if (props.series !== "all") {
|
|
98
|
+
series = "";
|
|
99
|
+
}
|
|
100
|
+
return filter.value.keywords || series || filter.value.cover_type || banner || filter.value.sort !== -1;
|
|
101
|
+
});
|
|
102
|
+
const reset = () => {
|
|
103
|
+
const _set = {
|
|
104
|
+
keywords: "",
|
|
105
|
+
cover_type: "",
|
|
106
|
+
sort: -1,
|
|
107
|
+
order: "create_time"
|
|
108
|
+
};
|
|
109
|
+
Object.assign(filter.value, _set);
|
|
110
|
+
if (props.banner !== "all") {
|
|
111
|
+
filter.value.banner = props.banner;
|
|
112
|
+
} else {
|
|
113
|
+
filter.value.banner = "";
|
|
114
|
+
}
|
|
115
|
+
if (props.series !== "all" && props.series.split(",").length === 1) {
|
|
116
|
+
filter.value.type = props.series;
|
|
117
|
+
} else {
|
|
118
|
+
filter.value.type = "";
|
|
119
|
+
}
|
|
120
|
+
column_id.value = "all";
|
|
121
|
+
};
|
|
47
122
|
const checkout = (type) => {
|
|
48
123
|
filter.value.wordState = type;
|
|
49
124
|
};
|
|
@@ -69,6 +144,19 @@ const _sfc_main = defineComponent({
|
|
|
69
144
|
column_id.value = val;
|
|
70
145
|
}
|
|
71
146
|
);
|
|
147
|
+
watch(
|
|
148
|
+
() => props.banner,
|
|
149
|
+
(val) => {
|
|
150
|
+
filter.value.banner = val === "all" ? "" : val;
|
|
151
|
+
},
|
|
152
|
+
{ immediate: true }
|
|
153
|
+
);
|
|
154
|
+
watch(
|
|
155
|
+
() => column_id.value,
|
|
156
|
+
(val) => {
|
|
157
|
+
emit("update:group_id", val);
|
|
158
|
+
}
|
|
159
|
+
);
|
|
72
160
|
return (_ctx, _cache) => {
|
|
73
161
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
74
162
|
createVNode(unref(Space), { size: "small" }, {
|
|
@@ -119,14 +207,97 @@ const _sfc_main = defineComponent({
|
|
|
119
207
|
}, 8, ["modelValue"])
|
|
120
208
|
]),
|
|
121
209
|
_: 1
|
|
122
|
-
}, 8, ["modelValue"])
|
|
210
|
+
}, 8, ["modelValue"]),
|
|
211
|
+
createVNode(_sfc_main$1, {
|
|
212
|
+
column_id: column_id.value,
|
|
213
|
+
"onUpdate:column_id": _cache[2] || (_cache[2] = ($event) => column_id.value = $event),
|
|
214
|
+
height: props.height,
|
|
215
|
+
tree: props.tree,
|
|
216
|
+
"user-info": props.userInfo
|
|
217
|
+
}, null, 8, ["column_id", "height", "tree", "user-info"]),
|
|
218
|
+
createVNode(unref(Select), {
|
|
219
|
+
modelValue: filter.value.type,
|
|
220
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.type = $event),
|
|
221
|
+
style: { width: "96px" },
|
|
222
|
+
"trigger-props": { autoFitPopupMinWidth: true },
|
|
223
|
+
"allow-clear": "",
|
|
224
|
+
class: "filter-item",
|
|
225
|
+
placeholder: "\u7C7B\u578B"
|
|
226
|
+
}, {
|
|
227
|
+
default: withCtx(() => [
|
|
228
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(typeOptions.value, (item) => {
|
|
229
|
+
return openBlock(), createBlock(unref(Option), {
|
|
230
|
+
key: item.value,
|
|
231
|
+
label: item.label,
|
|
232
|
+
value: item.value
|
|
233
|
+
}, null, 8, ["label", "value"]);
|
|
234
|
+
}), 128))
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}, 8, ["modelValue"]),
|
|
238
|
+
createVNode(unref(Select), {
|
|
239
|
+
modelValue: filter.value.cover_type,
|
|
240
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.cover_type = $event),
|
|
241
|
+
style: { width: "96px" },
|
|
242
|
+
"trigger-props": { autoFitPopupMinWidth: true },
|
|
243
|
+
"allow-clear": "",
|
|
244
|
+
class: "filter-item",
|
|
245
|
+
placeholder: "\u5C01\u9762"
|
|
246
|
+
}, {
|
|
247
|
+
default: withCtx(() => [
|
|
248
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(thumbOptions.value, (item) => {
|
|
249
|
+
return openBlock(), createBlock(unref(Option), {
|
|
250
|
+
key: item.value,
|
|
251
|
+
label: item.label,
|
|
252
|
+
value: item.value
|
|
253
|
+
}, null, 8, ["label", "value"]);
|
|
254
|
+
}), 128))
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["modelValue"]),
|
|
258
|
+
createVNode(unref(Select), {
|
|
259
|
+
modelValue: filter.value.banner,
|
|
260
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.banner = $event),
|
|
261
|
+
style: { width: "124px" },
|
|
262
|
+
"trigger-props": { autoFitPopupMinWidth: true },
|
|
263
|
+
"allow-clear": "",
|
|
264
|
+
class: "filter-item",
|
|
265
|
+
disabled: props.banner !== "all",
|
|
266
|
+
placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
|
|
267
|
+
}, {
|
|
268
|
+
default: withCtx(() => [
|
|
269
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(bannerOptions.value, (item) => {
|
|
270
|
+
return openBlock(), createBlock(unref(Option), {
|
|
271
|
+
key: item.value,
|
|
272
|
+
label: item.label,
|
|
273
|
+
value: item.value
|
|
274
|
+
}, null, 8, ["label", "value"]);
|
|
275
|
+
}), 128))
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
}, 8, ["modelValue", "disabled"]),
|
|
279
|
+
withDirectives(createVNode(unref(Button), {
|
|
280
|
+
class: "reset-button",
|
|
281
|
+
size: "small",
|
|
282
|
+
type: "text",
|
|
283
|
+
onClick: reset
|
|
284
|
+
}, {
|
|
285
|
+
default: withCtx(() => [
|
|
286
|
+
createVNode(unref(IconRefresh), { class: "reset-icon" }),
|
|
287
|
+
_cache[7] || (_cache[7] = createTextVNode(" \u91CD\u7F6E "))
|
|
288
|
+
]),
|
|
289
|
+
_: 1,
|
|
290
|
+
__: [7]
|
|
291
|
+
}, 512), [
|
|
292
|
+
[vShow, showReset.value]
|
|
293
|
+
])
|
|
123
294
|
]),
|
|
124
295
|
_: 1
|
|
125
296
|
}),
|
|
126
297
|
createElementVNode("div", _hoisted_3, [
|
|
127
298
|
createVNode(unref(Select), {
|
|
128
299
|
modelValue: filter.value.order,
|
|
129
|
-
"onUpdate:modelValue": _cache[
|
|
300
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => filter.value.order = $event),
|
|
130
301
|
class: "filter-item",
|
|
131
302
|
placeholder: "\u53D1\u5E03\u65F6\u95F4"
|
|
132
303
|
}, {
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createCommentVNode, normalizeStyle, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { Popover, InputSearch, Scrollbar, Tree, Button } from "@arco-design/web-vue";
|
|
3
|
+
import { IconDragDotVertical, IconCaretRight } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
import { getCategoryPath } from "../../../script/api.js";
|
|
5
|
+
const _hoisted_1 = { class: "column-selection-container" };
|
|
6
|
+
const _hoisted_2 = { class: "search-column" };
|
|
7
|
+
const _sfc_main = defineComponent({
|
|
8
|
+
...{ name: "columnTree" },
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
column_id: {},
|
|
12
|
+
tree: {},
|
|
13
|
+
height: {},
|
|
14
|
+
userInfo: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:column_id"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const emit = __emit;
|
|
20
|
+
const treeOptions = {
|
|
21
|
+
title: "alias",
|
|
22
|
+
isLeaf: "leaf"
|
|
23
|
+
};
|
|
24
|
+
const selectAlias = ref("\u5168\u90E8\u5185\u5BB9");
|
|
25
|
+
const lastSearchKey = ref(window.localStorage.getItem("lastSearchKey") || "");
|
|
26
|
+
const searchKey = ref("");
|
|
27
|
+
const aTreeRef = ref();
|
|
28
|
+
const treeData = computed(() => {
|
|
29
|
+
if (!searchKey.value)
|
|
30
|
+
return props.tree;
|
|
31
|
+
return searchData(searchKey.value);
|
|
32
|
+
});
|
|
33
|
+
const searchData = (keyword) => {
|
|
34
|
+
const loop = (data) => {
|
|
35
|
+
const result = [];
|
|
36
|
+
data.forEach((item) => {
|
|
37
|
+
var _a;
|
|
38
|
+
if ((_a = item.alias) == null ? void 0 : _a.includes(keyword)) {
|
|
39
|
+
result.push({ ...item });
|
|
40
|
+
} else if (item.children) {
|
|
41
|
+
const filterData = loop(item.children);
|
|
42
|
+
if (filterData.length) {
|
|
43
|
+
result.push({
|
|
44
|
+
...item,
|
|
45
|
+
children: filterData
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return result;
|
|
51
|
+
};
|
|
52
|
+
return loop(props.tree);
|
|
53
|
+
};
|
|
54
|
+
const clickLastItem = () => {
|
|
55
|
+
aTreeRef.value.selectNode(lastSearchKey.value, true);
|
|
56
|
+
};
|
|
57
|
+
watch(
|
|
58
|
+
() => props.column_id,
|
|
59
|
+
(val) => {
|
|
60
|
+
setSelectAlias(val);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
const setSelectAlias = async (id) => {
|
|
64
|
+
if (id === "all") {
|
|
65
|
+
selectAlias.value = "\u5168\u90E8\u5185\u5BB9";
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const { code, message } = await getCategoryPath(props.userInfo.BASE_API, {
|
|
69
|
+
repo: props.userInfo.repository_id,
|
|
70
|
+
category: id
|
|
71
|
+
});
|
|
72
|
+
if (code === 0) {
|
|
73
|
+
const pathArr = [];
|
|
74
|
+
for (const i of message) {
|
|
75
|
+
pathArr.push(i.category_alias);
|
|
76
|
+
}
|
|
77
|
+
selectAlias.value = pathArr.join("/");
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const AddColumnSelected = (selectedKeys, data) => {
|
|
81
|
+
lastSearchKey.value = selectedKeys[0];
|
|
82
|
+
window.localStorage.setItem("lastSearchKey", lastSearchKey.value);
|
|
83
|
+
emit("update:column_id", data.node.id);
|
|
84
|
+
};
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
87
|
+
createVNode(unref(Popover), {
|
|
88
|
+
"content-style": { minWidth: "120px" },
|
|
89
|
+
"content-class": "column-selection-popover-content",
|
|
90
|
+
position: "bottom",
|
|
91
|
+
trigger: "click"
|
|
92
|
+
}, {
|
|
93
|
+
content: withCtx(() => [
|
|
94
|
+
createElementVNode("div", _hoisted_2, [
|
|
95
|
+
createVNode(unref(InputSearch), {
|
|
96
|
+
modelValue: searchKey.value,
|
|
97
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
|
|
98
|
+
placeholder: "\u8BF7\u8F93\u5165\u680F\u76EE\u540D\u79F0"
|
|
99
|
+
}, null, 8, ["modelValue"])
|
|
100
|
+
]),
|
|
101
|
+
lastSearchKey.value ? (openBlock(), createElementBlock("div", {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: "last-search-key",
|
|
104
|
+
onClick: clickLastItem
|
|
105
|
+
}, "\u4E0A\u4E00\u6B21\u9009\u62E9 ")) : createCommentVNode("v-if", true),
|
|
106
|
+
createElementVNode("div", {
|
|
107
|
+
style: normalizeStyle({ minHeight: props.height + "px" }),
|
|
108
|
+
class: "column-selection-main"
|
|
109
|
+
}, [
|
|
110
|
+
createElementVNode("div", {
|
|
111
|
+
style: normalizeStyle({ height: props.height + "px" }),
|
|
112
|
+
class: "column-v"
|
|
113
|
+
}, [
|
|
114
|
+
createVNode(unref(Scrollbar), {
|
|
115
|
+
"outer-class": "column-outer-scrollbar",
|
|
116
|
+
style: { "height": "100%", "overflow": "auto" }
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createVNode(unref(Tree), {
|
|
120
|
+
ref_key: "aTreeRef",
|
|
121
|
+
ref: aTreeRef,
|
|
122
|
+
data: treeData.value,
|
|
123
|
+
"default-expand-all": false,
|
|
124
|
+
"field-names": treeOptions,
|
|
125
|
+
"block-node": "",
|
|
126
|
+
"check-strictly": "",
|
|
127
|
+
onSelect: AddColumnSelected
|
|
128
|
+
}, null, 8, ["data"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})
|
|
132
|
+
], 4)
|
|
133
|
+
], 4)
|
|
134
|
+
]),
|
|
135
|
+
default: withCtx(() => [
|
|
136
|
+
createVNode(unref(Button), { class: "button" }, {
|
|
137
|
+
default: withCtx(() => [
|
|
138
|
+
createVNode(unref(IconDragDotVertical)),
|
|
139
|
+
createTextVNode(" " + toDisplayString(selectAlias.value) + " ", 1),
|
|
140
|
+
createVNode(unref(IconCaretRight))
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
})
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
})
|
|
147
|
+
]);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
export { _sfc_main as default };
|
|
@@ -81,7 +81,7 @@ const _sfc_main = defineComponent({
|
|
|
81
81
|
onClick: clear
|
|
82
82
|
}, {
|
|
83
83
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
84
|
-
createTextVNode("\u6E05\u7A7A"
|
|
84
|
+
createTextVNode("\u6E05\u7A7A")
|
|
85
85
|
])),
|
|
86
86
|
_: 1,
|
|
87
87
|
__: [1]
|
|
@@ -98,7 +98,7 @@ const _sfc_main = defineComponent({
|
|
|
98
98
|
class: "button"
|
|
99
99
|
}, {
|
|
100
100
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
101
|
-
createTextVNode("\u5DF2\u9009\u6570\u636E"
|
|
101
|
+
createTextVNode("\u5DF2\u9009\u6570\u636E")
|
|
102
102
|
])),
|
|
103
103
|
_: 1,
|
|
104
104
|
__: [0]
|
|
@@ -6,6 +6,12 @@ function getCategoryCategoriesTree(BASE_API, params) {
|
|
|
6
6
|
params
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
+
function getCategoryPath(BASE_API, params) {
|
|
10
|
+
return request(BASE_API, {
|
|
11
|
+
url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
|
|
12
|
+
method: "get"
|
|
13
|
+
});
|
|
14
|
+
}
|
|
9
15
|
function getCategoryMediaNew(BASE_API, params) {
|
|
10
16
|
return request(BASE_API, {
|
|
11
17
|
url: `/poplar/v3/s/documents`,
|
|
@@ -92,4 +98,4 @@ function getTypeConfig(BASE_API, params) {
|
|
|
92
98
|
params
|
|
93
99
|
});
|
|
94
100
|
}
|
|
95
|
-
export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategorylistsGroups, getConfigurationNew, getEqxiuList, getMpContentList, getReporterContent, getRevealContent, getTypeConfig, searchMlists, searchMpaccount };
|
|
101
|
+
export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, getConfigurationNew, getEqxiuList, getMpContentList, getReporterContent, getRevealContent, getTypeConfig, searchMlists, searchMpaccount };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
.media-filter-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
padding: 10px 20px;
|
|
6
|
-
|
|
7
|
-
.filter-item {
|
|
8
|
-
width: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.keyword {
|
|
12
|
-
padding-left: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:deep(.arco-popover-content) {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// 重置
|
|
21
|
-
.reset-button {
|
|
22
|
-
width: 74px;
|
|
23
|
-
padding: 9px 12px;
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
|
|
26
|
-
.reset-icon {
|
|
27
|
-
margin-right: 8px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
//排序
|
|
32
|
-
.sort-button {
|
|
33
|
-
color: #4e5969;
|
|
34
|
-
|
|
35
|
-
.filter-item {
|
|
36
|
-
width: 102px;
|
|
37
|
-
|
|
38
|
-
.arco-select-view-suffix {
|
|
39
|
-
padding-left: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
.media-filter-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
padding: 10px 20px;
|
|
6
|
+
|
|
7
|
+
.filter-item {
|
|
8
|
+
width: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.keyword {
|
|
12
|
+
padding-left: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:deep(.arco-popover-content) {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// 重置
|
|
21
|
+
.reset-button {
|
|
22
|
+
width: 74px;
|
|
23
|
+
padding: 9px 12px;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
|
|
26
|
+
.reset-icon {
|
|
27
|
+
margin-right: 8px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//排序
|
|
32
|
+
.sort-button {
|
|
33
|
+
color: #4e5969;
|
|
34
|
+
|
|
35
|
+
.filter-item {
|
|
36
|
+
width: 102px;
|
|
37
|
+
|
|
38
|
+
.arco-select-view-suffix {
|
|
39
|
+
padding-left: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
.view-all-column-container {
|
|
2
|
-
height: 100%;
|
|
3
|
-
|
|
4
|
-
.content-table-view {
|
|
5
|
-
height: calc(100% - 110px);
|
|
6
|
-
padding: 0 20px;
|
|
7
|
-
// 勾选框样式
|
|
8
|
-
.arco-checkbox {
|
|
9
|
-
padding: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// 缩略图
|
|
13
|
-
.pic-thumb-img {
|
|
14
|
-
width: 60px;
|
|
15
|
-
height: 45px;
|
|
16
|
-
vertical-align: middle;
|
|
17
|
-
border-radius: 3px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.title-span,
|
|
21
|
-
.mp_title-span {
|
|
22
|
-
display: block;
|
|
23
|
-
width: 100%;
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
text-overflow: ellipsis;
|
|
27
|
-
|
|
28
|
-
.icon {
|
|
29
|
-
display: inline-block;
|
|
30
|
-
width: 20px;
|
|
31
|
-
height: 25px;
|
|
32
|
-
margin-right: 8px;
|
|
33
|
-
padding-left: 0;
|
|
34
|
-
font-size: 18px;
|
|
35
|
-
line-height: 28px;
|
|
36
|
-
text-align: center;
|
|
37
|
-
vertical-align: middle;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.mp_title-span {
|
|
42
|
-
margin-left: 10px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.user-avatar {
|
|
46
|
-
display: inline-block;
|
|
47
|
-
width: 25px;
|
|
48
|
-
height: 25px;
|
|
49
|
-
margin-right: 12px;
|
|
50
|
-
vertical-align: middle;
|
|
51
|
-
border-radius: 50%;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.bottom-view {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: space-between;
|
|
60
|
-
height: 60px;
|
|
61
|
-
margin: 0 15px;
|
|
62
|
-
|
|
63
|
-
.left {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
.view-all-column-container {
|
|
2
|
+
height: 100%;
|
|
3
|
+
|
|
4
|
+
.content-table-view {
|
|
5
|
+
height: calc(100% - 110px);
|
|
6
|
+
padding: 0 20px;
|
|
7
|
+
// 勾选框样式
|
|
8
|
+
.arco-checkbox {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// 缩略图
|
|
13
|
+
.pic-thumb-img {
|
|
14
|
+
width: 60px;
|
|
15
|
+
height: 45px;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
border-radius: 3px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.title-span,
|
|
21
|
+
.mp_title-span {
|
|
22
|
+
display: block;
|
|
23
|
+
width: 100%;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
|
|
28
|
+
.icon {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: 20px;
|
|
31
|
+
height: 25px;
|
|
32
|
+
margin-right: 8px;
|
|
33
|
+
padding-left: 0;
|
|
34
|
+
font-size: 18px;
|
|
35
|
+
line-height: 28px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mp_title-span {
|
|
42
|
+
margin-left: 10px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.user-avatar {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
width: 25px;
|
|
48
|
+
height: 25px;
|
|
49
|
+
margin-right: 12px;
|
|
50
|
+
vertical-align: middle;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.bottom-view {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
height: 60px;
|
|
61
|
+
margin: 0 15px;
|
|
62
|
+
|
|
63
|
+
.left {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|