@cmstops/pro-compo 3.9.2-alpha.9 → 3.10.5-nanning.1
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 +103 -76
- package/dist/index.css +52 -0
- package/dist/index.min.css +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/appCenter/script/api.d.ts +5 -5
- package/es/baseFilter/components/FilterGroup.js +1 -1
- package/es/baseFilter/components/filterItem.js +1 -1
- package/es/colorPalette/component.js +1 -1
- package/es/config.js +1 -1
- package/es/contentDetailList/component.js +9 -9
- package/es/contentDetailList/components/Content/CircleItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/CircleItem/index.js +92 -0
- package/es/contentDetailList/components/Content/CompoItem/index.js +12 -12
- package/es/contentDetailList/components/Content/ContentListItem/index.js +15 -15
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
- package/es/contentDetailList/components/Content/DocItem/index.js +27 -27
- package/es/contentDetailList/components/Content/DocMpItem/index.js +13 -13
- package/es/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
- package/es/contentDetailList/components/Content/LiveItem/index.js +9 -9
- package/es/contentDetailList/components/Content/MaccountItem/index.js +12 -12
- package/es/contentDetailList/components/Content/courseItem/index.js +10 -10
- package/es/contentDetailList/components/Content/funhdItem/index.js +10 -10
- package/es/contentDetailList/components/Content/index.js +169 -117
- package/es/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
- package/es/contentDetailList/components/CustomWrp/index.js +10 -10
- package/es/contentDetailList/components/Doc/index.js +11 -11
- package/es/contentDetailList/components/Records/MatrixItem/index.js +22 -22
- package/es/contentDetailList/components/Records/index.js +8 -8
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
- package/es/contentDetailList/components/ShowQRCode/index.js +1 -1
- package/es/contentDetailList/script/api.d.ts +2 -2
- package/es/contentModal/component.js +40 -40
- package/es/contentModal/components/CompoList/index.js +1 -1
- package/es/contentModal/components/Dejin/index.js +1 -1
- package/es/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
- package/es/contentModal/components/MpContentList/index.js +1 -1
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
- package/es/contentModal/components/ViewAllColumn/index.js +7 -3
- package/es/contentModal/components/storeBox/index.js +8 -8
- package/es/contentModal/script/api.d.ts +13 -13
- package/es/dataTags/component.js +38 -38
- package/es/docHistory/component.js +44 -15
- package/es/docHistory/components/DocDiffPanel/index.js +2 -2
- package/es/docHistory/components/DocHistoryList/index.js +2 -2
- package/es/docHistory/scripts/diff.js +4 -3
- package/es/docHistory/scripts/useDocHistory.d.ts +1 -1
- package/es/docHistory/style/index.css +4 -0
- package/es/docHistory/style/index.less +5 -0
- package/es/docPreview/component.js +228 -60
- package/es/docPreview/components/PreviewIframe.js +37 -6
- package/es/docPreview/images/pc.js +2 -0
- package/es/docPreview/scripts/api.d.ts +2 -1
- package/es/docPreview/scripts/hook.d.ts +11 -1
- package/es/docPreview/scripts/hook.js +115 -4
- package/es/docPreview/style/index.css +48 -0
- package/es/docPreview/style/index.less +23 -0
- package/es/docPreview/style/previewIframe.less +31 -0
- package/es/editMetaInfo/component.js +24 -4
- package/es/editMetaInfo/components/metaInfoForm.js +358 -17
- package/es/editMetaInfo/script/api.d.ts +9 -2
- package/es/editMetaInfo/script/api.js +20 -1
- package/es/emptyData/component.js +4 -4
- package/es/emptyData/svg/acount.js +2 -2
- package/es/emptyData/svg/add.js +2 -2
- package/es/emptyData/svg/analize.js +2 -2
- package/es/emptyData/svg/analize_fail.js +2 -2
- package/es/emptyData/svg/empty.js +2 -2
- package/es/emptyData/svg/file.js +2 -2
- package/es/emptyData/svg/manager.js +2 -2
- package/es/emptyData/svg/message.js +2 -2
- package/es/emptyData/svg/noanalize.js +2 -2
- package/es/emptyData/svg/null.js +2 -2
- package/es/emptyData/svg/search.js +2 -2
- package/es/emptyData/svg/star.js +2 -2
- package/es/emptyData/svg/trash.js +2 -2
- package/es/emptyData/svg/user.js +2 -2
- package/es/hooks/assets.d.ts +1 -1
- package/es/hooks/source.d.ts +1 -1
- package/es/hooks/useAttachement.d.ts +7 -7
- package/es/hooks/useUpload.d.ts +4 -4
- package/es/hooks/user.d.ts +1 -1
- package/es/imageCrop/component.js +11 -11
- package/es/imageCrop/script/api.d.ts +1 -1
- package/es/importData/component.js +13 -13
- package/es/index.css +52 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/mediaFilter/component.js +4 -4
- package/es/mediaFilter/components/DocFilter.js +1 -1
- package/es/mediaFilter/components/FilterGroup.js +1 -1
- package/es/mediaFilter/components/FilterItem.js +1 -1
- package/es/mediaView/component.js +8 -8
- package/es/messageBox/component.js +3 -3
- package/es/messageBox/script/api.d.ts +2 -2
- package/es/previousVersion/script/api.d.ts +4 -4
- package/es/resourceGridList/component.js +16 -16
- package/es/resourceGridList/components/FileTypeThumb/index.js +6 -6
- package/es/resourceModal/component.js +7 -7
- package/es/resourceModal/components/MediaPreviewer/index.js +8 -8
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
- package/es/resourceModal/components/MediaSelection/index.js +6 -6
- package/es/resourceModal/script/api.d.ts +11 -11
- package/es/selectAddTo/component.d.ts +0 -0
- package/es/selectAddTo/component.js +47 -0
- package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/SelectAddToView.d.ts +0 -0
- package/es/selectAddTo/components/SelectAddToView.js +90 -0
- package/es/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +166 -0
- package/es/selectAddTo/components/ViewAllColumn/index.d.ts +0 -0
- package/es/selectAddTo/components/ViewAllColumn/index.js +212 -0
- package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.d.ts +6 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +102 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +144 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +182 -0
- package/es/selectAddTo/components/ViewAllColumn/types/index.d.ts +55 -0
- package/es/selectAddTo/index.d.ts +2 -0
- package/es/selectAddTo/index.js +7 -0
- package/es/selectAddTo/script/api.d.ts +18 -0
- package/es/selectAddTo/script/api.js +23 -0
- package/es/selectAddTo/script/index.d.ts +2 -0
- package/es/selectAddTo/script/useSelectAddToState.d.ts +13 -0
- package/es/selectAddTo/script/useSelectAddToState.js +55 -0
- package/es/selectAddTo/style/css.js +1 -0
- package/es/selectAddTo/style/index.css +3 -0
- package/es/selectAddTo/style/index.d.ts +1 -0
- package/es/selectAddTo/style/index.js +1 -0
- package/es/selectAddTo/style/index.less +3 -0
- package/es/selectAddTo/types/index.d.ts +37 -0
- package/es/selectGategory/component.js +5 -5
- package/es/selectGategory/components/ColumnSelection/index.js +6 -6
- package/es/selectGategory/script/api.d.ts +2 -2
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +153 -160
- package/es/selectResourceModal/__demo__/module/basic.d.ts +153 -160
- package/es/selectResourceModal/component.js +26 -34
- package/es/selectResourceModal/components/List/ListCardWrapper.js +6 -6
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +22 -16
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
- package/es/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
- package/es/selectResourceModal/components/List/ListSystem/index.js +2 -2
- package/es/selectResourceModal/components/List/ListWraper.js +2 -2
- package/es/selectResourceModal/components/ListSelected/index.js +6 -6
- package/es/selectResourceModal/components/ListTabs/index.js +1 -1
- package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -2
- package/es/selectResourceModal/scripts/useTabFilter.js +1 -11
- package/es/selectThumb/component.js +45 -56
- package/es/selectThumb/components/card.js +3 -3
- package/es/style.css +63 -0
- package/es/thumbCard/component.js +7 -7
- package/es/thumbCard/components/ThumbUploading/index.js +3 -3
- package/es/typeIcons/component.js +1 -1
- package/es/uploadBefore/component.js +1 -1
- package/es/uploadBefore/components/UploadBefore.js +9 -9
- package/es/uploadBefore/script/api.d.ts +4 -4
- package/es/uploadStep/component.js +3 -3
- package/es/userAvater/component.js +3 -3
- package/es/userAvater/script/api.d.ts +4 -4
- package/es/userDirector/component.js +5 -5
- package/es/userDirector/components/userTree.js +2 -2
- package/es/userDirector/script/api.d.ts +6 -6
- package/es/utils/request.d.ts +1 -1
- package/es/utils/transcodeMedia.d.ts +1 -1
- package/es/videoThumb/scripts/api.d.ts +1 -1
- package/lib/baseFilter/components/FilterGroup.js +1 -1
- package/lib/baseFilter/components/filterItem.js +1 -1
- package/lib/colorPalette/component.js +1 -1
- package/lib/config.js +1 -1
- package/lib/contentDetailList/component.js +9 -9
- package/lib/contentDetailList/components/Content/CircleItem/index.js +93 -0
- package/lib/contentDetailList/components/Content/CompoItem/index.js +12 -12
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +15 -15
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
- package/lib/contentDetailList/components/Content/DocItem/index.js +27 -27
- package/lib/contentDetailList/components/Content/DocMpItem/index.js +13 -13
- package/lib/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
- package/lib/contentDetailList/components/Content/LiveItem/index.js +9 -9
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +12 -12
- package/lib/contentDetailList/components/Content/courseItem/index.js +10 -10
- package/lib/contentDetailList/components/Content/funhdItem/index.js +10 -10
- package/lib/contentDetailList/components/Content/index.js +169 -117
- package/lib/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
- package/lib/contentDetailList/components/CustomWrp/index.js +10 -10
- package/lib/contentDetailList/components/Doc/index.js +11 -11
- package/lib/contentDetailList/components/Records/MatrixItem/index.js +22 -22
- package/lib/contentDetailList/components/Records/index.js +8 -8
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
- package/lib/contentDetailList/components/ShowQRCode/index.js +1 -1
- package/lib/contentModal/component.js +40 -40
- package/lib/contentModal/components/CompoList/index.js +1 -1
- package/lib/contentModal/components/Dejin/index.js +1 -1
- package/lib/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
- package/lib/contentModal/components/MpContentList/index.js +1 -1
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
- package/lib/contentModal/components/ViewAllColumn/index.js +7 -3
- package/lib/contentModal/components/storeBox/index.js +8 -8
- package/lib/dataTags/component.js +38 -38
- package/lib/docHistory/component.js +42 -13
- package/lib/docHistory/components/DocDiffPanel/index.js +2 -2
- package/lib/docHistory/components/DocHistoryList/index.js +2 -2
- package/lib/docHistory/scripts/diff.js +4 -3
- package/lib/docHistory/style/index.css +4 -0
- package/lib/docHistory/style/index.less +5 -0
- package/lib/docPreview/component.js +227 -59
- package/lib/docPreview/components/PreviewIframe.js +37 -6
- package/lib/docPreview/images/pc.js +3 -0
- package/lib/docPreview/scripts/hook.js +115 -3
- package/lib/docPreview/style/index.css +48 -0
- package/lib/docPreview/style/index.less +23 -0
- package/lib/docPreview/style/previewIframe.less +31 -0
- package/lib/editMetaInfo/component.js +23 -3
- package/lib/editMetaInfo/components/metaInfoForm.js +356 -15
- package/lib/editMetaInfo/script/api.js +21 -0
- package/lib/emptyData/component.js +4 -4
- package/lib/emptyData/svg/acount.js +2 -2
- package/lib/emptyData/svg/add.js +2 -2
- package/lib/emptyData/svg/analize.js +2 -2
- package/lib/emptyData/svg/analize_fail.js +2 -2
- package/lib/emptyData/svg/empty.js +2 -2
- package/lib/emptyData/svg/file.js +2 -2
- package/lib/emptyData/svg/manager.js +2 -2
- package/lib/emptyData/svg/message.js +2 -2
- package/lib/emptyData/svg/noanalize.js +2 -2
- package/lib/emptyData/svg/null.js +2 -2
- package/lib/emptyData/svg/search.js +2 -2
- package/lib/emptyData/svg/star.js +2 -2
- package/lib/emptyData/svg/trash.js +2 -2
- package/lib/emptyData/svg/user.js +2 -2
- package/lib/imageCrop/component.js +11 -11
- package/lib/importData/component.js +13 -13
- package/lib/index.css +52 -0
- package/lib/index.js +2 -0
- package/lib/mediaFilter/component.js +4 -4
- package/lib/mediaFilter/components/DocFilter.js +1 -1
- package/lib/mediaFilter/components/FilterGroup.js +1 -1
- package/lib/mediaFilter/components/FilterItem.js +1 -1
- package/lib/mediaView/component.js +8 -8
- package/lib/messageBox/component.js +3 -3
- package/lib/resourceGridList/component.js +16 -16
- package/lib/resourceGridList/components/FileTypeThumb/index.js +6 -6
- package/lib/resourceModal/component.js +7 -7
- package/lib/resourceModal/components/MediaPreviewer/index.js +8 -8
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
- package/lib/resourceModal/components/MediaSelection/index.js +6 -6
- package/lib/selectAddTo/component.js +48 -0
- package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/SelectAddToView.js +91 -0
- package/lib/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +167 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.js +213 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +108 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +184 -0
- package/lib/selectAddTo/index.js +8 -0
- package/lib/selectAddTo/script/api.js +27 -0
- package/lib/selectAddTo/script/useSelectAddToState.js +57 -0
- package/lib/selectAddTo/style/css.js +2 -0
- package/lib/selectAddTo/style/index.css +3 -0
- package/lib/selectAddTo/style/index.js +2 -0
- package/lib/selectAddTo/style/index.less +3 -0
- package/lib/selectGategory/component.js +5 -5
- package/lib/selectGategory/components/ColumnSelection/index.js +6 -6
- package/lib/selectResourceModal/component.js +25 -33
- package/lib/selectResourceModal/components/List/ListCardWrapper.js +6 -6
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +22 -16
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
- package/lib/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
- package/lib/selectResourceModal/components/List/ListSystem/index.js +2 -2
- package/lib/selectResourceModal/components/List/ListWraper.js +2 -2
- package/lib/selectResourceModal/components/ListSelected/index.js +6 -6
- package/lib/selectResourceModal/components/ListTabs/index.js +1 -1
- package/lib/selectResourceModal/scripts/useTabFilter.js +1 -13
- package/lib/selectThumb/component.js +45 -56
- package/lib/selectThumb/components/card.js +3 -3
- package/lib/thumbCard/component.js +7 -7
- package/lib/thumbCard/components/ThumbUploading/index.js +3 -3
- package/lib/typeIcons/component.js +1 -1
- package/lib/uploadBefore/component.js +1 -1
- package/lib/uploadBefore/components/UploadBefore.js +9 -9
- package/lib/uploadStep/component.js +3 -3
- package/lib/userAvater/component.js +3 -3
- package/lib/userDirector/component.js +5 -5
- package/lib/userDirector/components/userTree.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var config = require("../../../../config.js");
|
|
5
|
+
var api = require("../../../script/api.js");
|
|
6
|
+
var batch = require("../../../../hooks/batch.js");
|
|
7
|
+
const useViewAllColumnState = (props, emit) => {
|
|
8
|
+
const _maxSelect = props.maxSelect || 100;
|
|
9
|
+
const selectedData = vue.ref([]);
|
|
10
|
+
const mediaFileData = vue.ref([]);
|
|
11
|
+
const filter = vue.ref(null);
|
|
12
|
+
const dataLoading = vue.ref(false);
|
|
13
|
+
const group_id = vue.ref(0);
|
|
14
|
+
const page = vue.ref({
|
|
15
|
+
index: 1,
|
|
16
|
+
size: 30,
|
|
17
|
+
total: 0
|
|
18
|
+
});
|
|
19
|
+
const tempSelectedData = vue.computed(() => props.defaultSelectedData || []);
|
|
20
|
+
vue.watch(
|
|
21
|
+
() => tempSelectedData.value,
|
|
22
|
+
(val) => {
|
|
23
|
+
selectedData.value = val;
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
const { isItemChecked, tableCellMouseEnter, tableCellMouseLeave } = batch();
|
|
27
|
+
const selectTableCell = (record) => {
|
|
28
|
+
if (props.typeKey === "series:special_v3" ? record.isLeaf && record.parentId : true) {
|
|
29
|
+
selectData(record);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const selectTableAll = (checked) => {
|
|
33
|
+
if (checked) {
|
|
34
|
+
selectedData.value = [];
|
|
35
|
+
mediaFileData.value.forEach((item) => selectData(item));
|
|
36
|
+
} else {
|
|
37
|
+
selectedData.value = [];
|
|
38
|
+
}
|
|
39
|
+
emitChange();
|
|
40
|
+
};
|
|
41
|
+
const selectData = (record) => {
|
|
42
|
+
addDataToSelectedList(record);
|
|
43
|
+
return true;
|
|
44
|
+
};
|
|
45
|
+
const addDataToSelectedList = async (record) => {
|
|
46
|
+
const index = selectedData.value.findIndex((v) => v.id === record.id);
|
|
47
|
+
if (selectedData.value.length < _maxSelect) {
|
|
48
|
+
if (index === -1) {
|
|
49
|
+
selectedData.value.push(record);
|
|
50
|
+
} else {
|
|
51
|
+
selectedData.value.splice(index, 1);
|
|
52
|
+
}
|
|
53
|
+
emitChange();
|
|
54
|
+
} else {
|
|
55
|
+
if (index === -1) {
|
|
56
|
+
selectedData.value.splice(selectedData.value.length - 1, 1);
|
|
57
|
+
selectedData.value.push(record);
|
|
58
|
+
} else {
|
|
59
|
+
selectedData.value.splice(index, 1);
|
|
60
|
+
}
|
|
61
|
+
emitChange();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const emitChange = () => {
|
|
65
|
+
emit("change", selectedData.value);
|
|
66
|
+
};
|
|
67
|
+
const search = (_filter) => {
|
|
68
|
+
var _a;
|
|
69
|
+
_filter = { ..._filter };
|
|
70
|
+
const where = [];
|
|
71
|
+
_filter.precise_kw && where.push(`precise_kw:${_filter.precise_kw}`);
|
|
72
|
+
_filter.keywords && where.push(`kw:${_filter.keywords}`);
|
|
73
|
+
_filter.type && where.push(`series:${_filter.type}`);
|
|
74
|
+
_filter.state && where.push(`state:${_filter.state}`);
|
|
75
|
+
_filter.cover_type && where.push(`cover_type:${_filter.cover_type}`);
|
|
76
|
+
_filter.banner && where.push(`banner:${_filter.banner}`);
|
|
77
|
+
if (((_a = _filter.publish_date) == null ? void 0 : _a.length) === 2) {
|
|
78
|
+
where.push(`publish_from:${_filter.publish_date[0] / 1e3}`);
|
|
79
|
+
where.push(`publish_to:${_filter.publish_date[1] / 1e3}`);
|
|
80
|
+
}
|
|
81
|
+
_filter.where = where;
|
|
82
|
+
filter.value = _filter;
|
|
83
|
+
page.value.index = 1;
|
|
84
|
+
loadData();
|
|
85
|
+
};
|
|
86
|
+
const pageChangeHandle = (index) => {
|
|
87
|
+
page.value.index = index;
|
|
88
|
+
loadData();
|
|
89
|
+
};
|
|
90
|
+
vue.watch(
|
|
91
|
+
() => group_id.value,
|
|
92
|
+
() => {
|
|
93
|
+
page.value.index = 1;
|
|
94
|
+
loadData();
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
const loadData = async () => {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
const params = {
|
|
100
|
+
limit: page.value.size,
|
|
101
|
+
offset: page.value.size * (page.value.index - 1),
|
|
102
|
+
where: ["state:15|19"]
|
|
103
|
+
};
|
|
104
|
+
params.where.push(props.typeKey);
|
|
105
|
+
if (filter.value) {
|
|
106
|
+
const _filter = filter.value;
|
|
107
|
+
params.order = _filter.order;
|
|
108
|
+
params.sort = _filter.sort;
|
|
109
|
+
if (_filter.where) {
|
|
110
|
+
params.where = [...params.where, ..._filter.where];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
params.where = params.where.join(",");
|
|
114
|
+
dataLoading.value = true;
|
|
115
|
+
try {
|
|
116
|
+
let response;
|
|
117
|
+
if (props.typeKey && props.typeKey !== "ZQ") {
|
|
118
|
+
response = await api.getCategoryMediaNew(config.DEFAULT_BASE_API, params);
|
|
119
|
+
} else {
|
|
120
|
+
params.keyword = ((_a = filter.value) == null ? void 0 : _a.precise_kw) || ((_b = filter.value) == null ? void 0 : _b.keywords) || "";
|
|
121
|
+
params.state = 2;
|
|
122
|
+
response = await api.getPoliticals(config.DEFAULT_BASE_API, params);
|
|
123
|
+
}
|
|
124
|
+
const { code, message } = response;
|
|
125
|
+
if (code === 0) {
|
|
126
|
+
mediaFileData.value = (message.data || message.datas).map((v) => ({
|
|
127
|
+
...v,
|
|
128
|
+
catalog: "doc",
|
|
129
|
+
target_id: v.id,
|
|
130
|
+
target_type: 3,
|
|
131
|
+
pub_time: v.pub_time || v.created_at,
|
|
132
|
+
update_time: v.updated_at,
|
|
133
|
+
pub_user_alias: v.author_alias,
|
|
134
|
+
key: v.id,
|
|
135
|
+
isLeaf: props.typeKey !== "series:special_v3"
|
|
136
|
+
}));
|
|
137
|
+
page.value.total = message.total || message.count;
|
|
138
|
+
}
|
|
139
|
+
} catch (error) {
|
|
140
|
+
console.error("Failed to load data:", error);
|
|
141
|
+
} finally {
|
|
142
|
+
dataLoading.value = false;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
const loadMore = async (record, done) => {
|
|
146
|
+
try {
|
|
147
|
+
const res = await api.getMlists(config.DEFAULT_BASE_API, {
|
|
148
|
+
rid: props.rid,
|
|
149
|
+
gid: record.special_id
|
|
150
|
+
});
|
|
151
|
+
setTimeout(() => {
|
|
152
|
+
done(
|
|
153
|
+
res.message.map((item) => ({
|
|
154
|
+
...item,
|
|
155
|
+
isLeaf: true,
|
|
156
|
+
key: item.id,
|
|
157
|
+
parentName: record.title,
|
|
158
|
+
parentId: record.id
|
|
159
|
+
}))
|
|
160
|
+
);
|
|
161
|
+
}, 2e3);
|
|
162
|
+
} catch (error) {
|
|
163
|
+
done([]);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
return {
|
|
167
|
+
selectedData,
|
|
168
|
+
mediaFileData,
|
|
169
|
+
filter,
|
|
170
|
+
dataLoading,
|
|
171
|
+
group_id,
|
|
172
|
+
page,
|
|
173
|
+
isItemChecked,
|
|
174
|
+
tableCellMouseEnter,
|
|
175
|
+
tableCellMouseLeave,
|
|
176
|
+
selectTableCell,
|
|
177
|
+
selectTableAll,
|
|
178
|
+
search,
|
|
179
|
+
pageChangeHandle,
|
|
180
|
+
loadData,
|
|
181
|
+
loadMore
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
exports.useViewAllColumnState = useViewAllColumnState;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var request = require("../../utils/request.js");
|
|
4
|
+
function getCategoryMediaNew(BASE_API, params) {
|
|
5
|
+
return request(BASE_API, {
|
|
6
|
+
url: `/poplar/v3/s/documents`,
|
|
7
|
+
method: "get",
|
|
8
|
+
params
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function getPoliticals(BASE_API, params) {
|
|
12
|
+
return request(BASE_API, {
|
|
13
|
+
url: "/poplar/v2/politics/list",
|
|
14
|
+
method: "get",
|
|
15
|
+
params
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function getMlists(BASE_API, params) {
|
|
19
|
+
return request(BASE_API, {
|
|
20
|
+
url: `/poplar/v2/mlists`,
|
|
21
|
+
method: "get",
|
|
22
|
+
params
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
exports.getCategoryMediaNew = getCategoryMediaNew;
|
|
26
|
+
exports.getMlists = getMlists;
|
|
27
|
+
exports.getPoliticals = getPoliticals;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var config = require("../../config.js");
|
|
5
|
+
const useSelectAddToState = (props, emit) => {
|
|
6
|
+
props.BASE_API || config.DEFAULT_BASE_API;
|
|
7
|
+
const visible = vue.computed({
|
|
8
|
+
get() {
|
|
9
|
+
return props.visible;
|
|
10
|
+
},
|
|
11
|
+
set(value) {
|
|
12
|
+
emit("update:visible", value);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const selectedData = vue.ref([]);
|
|
16
|
+
const title = vue.computed(() => {
|
|
17
|
+
const titleMap = {
|
|
18
|
+
"series:video_album": "\u6DFB\u52A0\u81F3\u89C6\u9891\u5408\u96C6",
|
|
19
|
+
"series:special_v3": "\u6DFB\u52A0\u81F3\u4E13\u9898",
|
|
20
|
+
"series:audio_album": "\u6DFB\u52A0\u81F3\u97F3\u9891\u5408\u96C6",
|
|
21
|
+
"series:article_album": "\u6DFB\u52A0\u81F3\u653F\u60C5\u4EBA\u7269\u76F8\u5173\u62A5\u9053"
|
|
22
|
+
};
|
|
23
|
+
return titleMap[props.typeKey || ""] || "";
|
|
24
|
+
});
|
|
25
|
+
const hasSelected = vue.computed(() => selectedData.value.length > 0);
|
|
26
|
+
const onSelectedDataChange = (data) => {
|
|
27
|
+
selectedData.value = data;
|
|
28
|
+
};
|
|
29
|
+
const onOk = () => {
|
|
30
|
+
visible.value = false;
|
|
31
|
+
};
|
|
32
|
+
const onCancel = () => {
|
|
33
|
+
visible.value = false;
|
|
34
|
+
};
|
|
35
|
+
const onComfirm = () => {
|
|
36
|
+
emit("comfirm", JSON.parse(JSON.stringify(selectedData.value)));
|
|
37
|
+
};
|
|
38
|
+
const onClose = () => {
|
|
39
|
+
selectedData.value = [];
|
|
40
|
+
};
|
|
41
|
+
const onTabChange = () => {
|
|
42
|
+
selectedData.value = [];
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
visible,
|
|
46
|
+
title,
|
|
47
|
+
selectedData,
|
|
48
|
+
hasSelected,
|
|
49
|
+
onSelectedDataChange,
|
|
50
|
+
onOk,
|
|
51
|
+
onCancel,
|
|
52
|
+
onComfirm,
|
|
53
|
+
onClose,
|
|
54
|
+
onTabChange
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
exports.useSelectAddToState = useSelectAddToState;
|
|
@@ -57,16 +57,16 @@ const _sfc_main = vue.defineComponent({
|
|
|
57
57
|
onOk: handleOk,
|
|
58
58
|
onCancel: handleCancel
|
|
59
59
|
}, {
|
|
60
|
-
title: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
61
|
-
vue.createTextVNode("\u53D1\u5E03\u81F3")
|
|
62
|
-
])),
|
|
60
|
+
title: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
61
|
+
vue.createTextVNode("\u53D1\u5E03\u81F3", -1)
|
|
62
|
+
])]),
|
|
63
63
|
default: vue.withCtx(() => [
|
|
64
64
|
vue.createElementVNode("div", _hoisted_1, [
|
|
65
65
|
vue.createVNode(index, {
|
|
66
66
|
selectColumnData: selectColumnData.value,
|
|
67
67
|
"onUpdate:selectColumnData": _cache[0] || (_cache[0] = ($event) => selectColumnData.value = $event),
|
|
68
68
|
"add-text": "\u8BBE\u7F6E\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
69
|
-
repository_id:
|
|
69
|
+
repository_id: __props.repository_id,
|
|
70
70
|
BASE_API: vue.unref(BASE_API)
|
|
71
71
|
}, null, 8, ["selectColumnData", "repository_id", "BASE_API"]),
|
|
72
72
|
_cache[3] || (_cache[3] = vue.createElementVNode("div", { class: "item-title big" }, "\u540C\u65F6\u53D1\u5E03\u81F3", -1)),
|
|
@@ -75,7 +75,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
75
75
|
"onUpdate:selectColumnWithData": _cache[1] || (_cache[1] = ($event) => selectColumnWithData.value = $event),
|
|
76
76
|
"add-text": "\u8BBE\u7F6E\u540C\u6B65\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
77
77
|
multiple: true,
|
|
78
|
-
repository_id:
|
|
78
|
+
repository_id: __props.repository_id,
|
|
79
79
|
BASE_API: vue.unref(BASE_API)
|
|
80
80
|
}, null, 8, ["selectColumnWithData", "repository_id", "BASE_API"])
|
|
81
81
|
])
|
|
@@ -166,7 +166,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
166
166
|
});
|
|
167
167
|
return (_ctx, _cache) => {
|
|
168
168
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
169
|
-
|
|
169
|
+
__props.multiple ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(multipleShowSelectedArray.value, (item, index) => {
|
|
170
170
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
171
171
|
key: index,
|
|
172
172
|
class: "column-select"
|
|
@@ -211,7 +211,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
211
211
|
}, {
|
|
212
212
|
default: vue.withCtx(() => [
|
|
213
213
|
vue.createVNode(vue.unref(webVue.Tree), {
|
|
214
|
-
checkable:
|
|
214
|
+
checkable: __props.multiple,
|
|
215
215
|
"check-strictly": true,
|
|
216
216
|
data: treeData.value,
|
|
217
217
|
"default-expand-all": false,
|
|
@@ -229,7 +229,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
229
229
|
onClick: vue.withModifiers(($event) => AddColumnSelected(data), ["stop"])
|
|
230
230
|
}, [
|
|
231
231
|
vue.createElementVNode("span", null, vue.toDisplayString(data.alias), 1),
|
|
232
|
-
!
|
|
232
|
+
!__props.multiple && columnSelectedArrayIds.value.includes(data.id) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, [
|
|
233
233
|
vue.createElementVNode("i", null, [
|
|
234
234
|
vue.createVNode(vue.unref(icon.IconCheck))
|
|
235
235
|
])
|
|
@@ -245,18 +245,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
245
245
|
], 4)
|
|
246
246
|
]),
|
|
247
247
|
default: vue.withCtx(() => [
|
|
248
|
-
|
|
248
|
+
__props.multiple ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
249
249
|
vue.createCommentVNode(" \u591A\u9009 "),
|
|
250
250
|
vue.createElementVNode("div", _hoisted_4, [
|
|
251
251
|
vue.createElementVNode("i", null, [
|
|
252
252
|
vue.createVNode(vue.unref(icon.IconPlus))
|
|
253
253
|
]),
|
|
254
|
-
vue.createTextVNode(" " + vue.toDisplayString(
|
|
254
|
+
vue.createTextVNode(" " + vue.toDisplayString(__props.addText ? __props.addText : "\u6DFB\u52A0\u680F\u76EE"), 1)
|
|
255
255
|
])
|
|
256
256
|
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
257
257
|
vue.createCommentVNode(" \u5355\u9009 "),
|
|
258
258
|
vue.createElementVNode("div", _hoisted_5, [
|
|
259
|
-
!columnSelectedArray.value.length ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, vue.toDisplayString(
|
|
259
|
+
!columnSelectedArray.value.length ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, vue.toDisplayString(__props.addText ? __props.addText : "\u8BF7\u9009\u62E9"), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tooltip), {
|
|
260
260
|
key: 1,
|
|
261
261
|
content: columnSelectedArray.value[0].path,
|
|
262
262
|
placement: "left"
|
|
@@ -45,21 +45,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
45
45
|
const props = __props;
|
|
46
46
|
const emits = __emit;
|
|
47
47
|
const { selected, selectedKeys, disableSelect, handleSelect, handleClear } = useResourceSelect.useResourceSelect(props);
|
|
48
|
-
const { activeKey, activeComponent, tabKeyList, handelChangeTab } = useTabFilter
|
|
48
|
+
const { activeKey, activeComponent, tabKeyList, handelChangeTab } = useTabFilter(props);
|
|
49
49
|
const { wrapProps, close, submit } = useCompoLf(props, emits, {
|
|
50
50
|
onClose: () => {
|
|
51
51
|
handleClear();
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
const isDiv = props.wrap === "div";
|
|
55
|
-
vue.watch(
|
|
56
|
-
() => props.visible,
|
|
57
|
-
(val) => {
|
|
58
|
-
if (val)
|
|
59
|
-
activeKey.value = useTabFilter.TabEnum.ALL;
|
|
60
|
-
},
|
|
61
|
-
{ immediate: true }
|
|
62
|
-
);
|
|
63
55
|
const handleOptions = (options, handleOptions2) => {
|
|
64
56
|
const { key, item } = options;
|
|
65
57
|
if (key === "select-one") {
|
|
@@ -84,20 +76,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
84
76
|
}
|
|
85
77
|
return (_ctx, _cache) => {
|
|
86
78
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
87
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(wrapComponent[
|
|
79
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(wrapComponent[__props.wrap]), vue.mergeProps({ visible: __props.visible }, vue.unref(wrapProps)), {
|
|
88
80
|
default: vue.withCtx(() => [
|
|
89
81
|
vue.createElementVNode("div", _hoisted_2, [
|
|
90
|
-
|
|
82
|
+
__props.userInfo ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
91
83
|
vue.createCommentVNode(" \u5934\u90E8 "),
|
|
92
84
|
vue.createVNode(index, {
|
|
93
85
|
"model-value": vue.unref(activeKey),
|
|
94
86
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(activeKey) ? activeKey.value = $event : null),
|
|
95
87
|
tabList: vue.unref(tabKeyList),
|
|
96
|
-
wrap:
|
|
88
|
+
wrap: __props.wrap,
|
|
97
89
|
onClose: vue.unref(close)
|
|
98
90
|
}, null, 8, ["model-value", "tabList", "wrap", "onClose"]),
|
|
99
91
|
vue.createCommentVNode(" \u5217\u8868\u5206\u53D1\u5668 "),
|
|
100
|
-
|
|
92
|
+
__props.visible || isDiv ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(activeComponent)), {
|
|
101
93
|
key: 0,
|
|
102
94
|
"active-key": vue.unref(activeKey),
|
|
103
95
|
onChangeTab: vue.unref(handelChangeTab)
|
|
@@ -116,24 +108,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
116
108
|
type !== "video" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
117
109
|
vue.unref(selected).length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
118
110
|
vue.createVNode(index$1, {
|
|
119
|
-
maxcount:
|
|
111
|
+
maxcount: __props.maxcount,
|
|
120
112
|
selected: vue.unref(selected),
|
|
121
113
|
onRemove: vue.unref(handleSelect),
|
|
122
114
|
onClear: vue.unref(handleClear)
|
|
123
115
|
}, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
|
|
124
116
|
vue.createVNode(vue.unref(webVue.Button), { onClick: vue.unref(close) }, {
|
|
125
|
-
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
126
|
-
vue.createTextVNode("\u53D6\u6D88")
|
|
127
|
-
])),
|
|
117
|
+
default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
118
|
+
vue.createTextVNode("\u53D6\u6D88", -1)
|
|
119
|
+
])]),
|
|
128
120
|
_: 1
|
|
129
121
|
}, 8, ["onClick"]),
|
|
130
122
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
131
123
|
type: "primary",
|
|
132
124
|
onClick: confirm
|
|
133
125
|
}, {
|
|
134
|
-
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
135
|
-
vue.createTextVNode(" \u786E\u5B9A ")
|
|
136
|
-
])),
|
|
126
|
+
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
127
|
+
vue.createTextVNode(" \u786E\u5B9A ", -1)
|
|
128
|
+
])]),
|
|
137
129
|
_: 1
|
|
138
130
|
})
|
|
139
131
|
], 64)) : vue.createCommentVNode("v-if", true)
|
|
@@ -141,9 +133,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
141
133
|
vue.createCommentVNode(" \u5982\u679C\u662F\u89C6\u9891\u5C01\u9762\u7C7B\u578B "),
|
|
142
134
|
vue.createCommentVNode(" \u89C6\u9891\u5C01\u9762\u7C7B\u578B\u4E0D\u5B58\u5728\u591A\u9009\u7684\u903B\u8F91\uFF0C\u65E0\u8BBA\u662F\u70B9\u51FB\u88C1\u526A\u8FD8\u662F\u4F7F\u7528\uFF0C\u90FD\u662F\u5355\u9009 "),
|
|
143
135
|
vue.createVNode(vue.unref(webVue.Button), { onClick: vue.unref(close) }, {
|
|
144
|
-
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
145
|
-
vue.createTextVNode("\u53D6\u6D88")
|
|
146
|
-
])),
|
|
136
|
+
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
137
|
+
vue.createTextVNode("\u53D6\u6D88", -1)
|
|
138
|
+
])]),
|
|
147
139
|
_: 1
|
|
148
140
|
}, 8, ["onClick"]),
|
|
149
141
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
@@ -151,21 +143,21 @@ const _sfc_main = vue.defineComponent({
|
|
|
151
143
|
type: "primary",
|
|
152
144
|
onClick: ($event) => confirm("crop", onConfirm)
|
|
153
145
|
}, {
|
|
154
|
-
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
155
|
-
vue.createTextVNode(" \u7F16\u8F91 ")
|
|
156
|
-
])),
|
|
157
|
-
_:
|
|
158
|
-
},
|
|
146
|
+
default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
147
|
+
vue.createTextVNode(" \u7F16\u8F91 ", -1)
|
|
148
|
+
])]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["disabled", "onClick"]),
|
|
159
151
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
160
152
|
disabled: isEmpty,
|
|
161
153
|
type: "primary",
|
|
162
154
|
onClick: ($event) => confirm("use", onConfirm)
|
|
163
155
|
}, {
|
|
164
|
-
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
165
|
-
vue.createTextVNode(" \u4F7F\u7528 ")
|
|
166
|
-
])),
|
|
167
|
-
_:
|
|
168
|
-
},
|
|
156
|
+
default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
157
|
+
vue.createTextVNode(" \u4F7F\u7528 ", -1)
|
|
158
|
+
])]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["disabled", "onClick"])
|
|
169
161
|
], 64))
|
|
170
162
|
]),
|
|
171
163
|
_: 1
|
|
@@ -71,12 +71,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
71
71
|
class: vue.normalizeClass(["card-wrapper", { disable: !canIUse.value, active: selectedOrder.value[resourceKey.value] }])
|
|
72
72
|
}, [
|
|
73
73
|
vue.createVNode(vue.unref(index), {
|
|
74
|
-
url:
|
|
75
|
-
thumb:
|
|
76
|
-
catalog:
|
|
77
|
-
meta:
|
|
74
|
+
url: __props.item.url,
|
|
75
|
+
thumb: __props.item.thumb || __props.item.url,
|
|
76
|
+
catalog: __props.item.catalog,
|
|
77
|
+
meta: __props.item,
|
|
78
78
|
options: {
|
|
79
|
-
fit: ["image", "video"].includes(
|
|
79
|
+
fit: ["image", "video"].includes(__props.item.catalog) ? "contain" : "cover"
|
|
80
80
|
},
|
|
81
81
|
"use-mask": true,
|
|
82
82
|
"handlers-key": handlersKey.value,
|
|
@@ -84,7 +84,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
84
84
|
}, null, 8, ["url", "thumb", "catalog", "meta", "options", "handlers-key"]),
|
|
85
85
|
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "mask" }, null, -1))
|
|
86
86
|
], 2),
|
|
87
|
-
vue.createElementVNode("div", _hoisted_1, vue.toDisplayString(
|
|
87
|
+
vue.createElementVNode("div", _hoisted_1, vue.toDisplayString(__props.item.alias), 1),
|
|
88
88
|
vue.createElementVNode("div", {
|
|
89
89
|
class: "check-box-wrapper",
|
|
90
90
|
onClick: vue.withModifiers(handleCheck, ["stop"])
|
|
@@ -46,7 +46,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
46
46
|
vue.createVNode(vue.unref(vueCmstopIcons.IconComputer))
|
|
47
47
|
]),
|
|
48
48
|
default: vue.withCtx(() => [
|
|
49
|
-
_cache[0] || (_cache[0] = vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 "))
|
|
49
|
+
_cache[0] || (_cache[0] = vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 ", -1))
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
})
|
|
@@ -223,7 +223,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
223
223
|
}, {
|
|
224
224
|
default: vue.withCtx(() => [
|
|
225
225
|
vue.createElementVNode("span", _hoisted_4, [
|
|
226
|
-
_cache[11] || (_cache[11] = vue.createTextVNode(" \u66F4\u591A ")),
|
|
226
|
+
_cache[11] || (_cache[11] = vue.createTextVNode(" \u66F4\u591A ", -1)),
|
|
227
227
|
vue.createVNode(vue.unref(icon.IconCaretDown))
|
|
228
228
|
])
|
|
229
229
|
]),
|
|
@@ -256,15 +256,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
256
256
|
}, {
|
|
257
257
|
content: vue.withCtx(() => [
|
|
258
258
|
vue.createVNode(vue.unref(webVue.Doption), { value: 0 }, {
|
|
259
|
-
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
260
|
-
vue.createTextVNode("\u7CBE\u51C6\u641C")
|
|
261
|
-
])),
|
|
259
|
+
default: vue.withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
260
|
+
vue.createTextVNode("\u7CBE\u51C6\u641C", -1)
|
|
261
|
+
])]),
|
|
262
262
|
_: 1
|
|
263
263
|
}),
|
|
264
264
|
vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
|
|
265
|
-
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
266
|
-
vue.createTextVNode("\u6A21\u7CCA\u641C")
|
|
267
|
-
])),
|
|
265
|
+
default: vue.withCtx(() => [..._cache[13] || (_cache[13] = [
|
|
266
|
+
vue.createTextVNode("\u6A21\u7CCA\u641C", -1)
|
|
267
|
+
])]),
|
|
268
268
|
_: 1
|
|
269
269
|
})
|
|
270
270
|
]),
|
|
@@ -295,8 +295,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
295
295
|
key: "id"
|
|
296
296
|
},
|
|
297
297
|
"allow-clear": "",
|
|
298
|
-
"allow-search": ""
|
|
299
|
-
|
|
298
|
+
"allow-search": "",
|
|
299
|
+
"filter-tree-node": (searchValue, nodeData) => {
|
|
300
|
+
console.log(nodeData);
|
|
301
|
+
if (!nodeData.alias)
|
|
302
|
+
return false;
|
|
303
|
+
return nodeData.alias.toLowerCase().indexOf(searchValue.toLowerCase()) > -1;
|
|
304
|
+
}
|
|
305
|
+
}, null, 8, ["modelValue", "data", "filter-tree-node"])
|
|
300
306
|
]),
|
|
301
307
|
vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
|
|
302
308
|
vue.createElementVNode("div", _hoisted_7, [
|
|
@@ -353,7 +359,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
353
359
|
}, 8, ["modelValue"])
|
|
354
360
|
]),
|
|
355
361
|
vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
|
|
356
|
-
!
|
|
362
|
+
!__props.disableUploadBy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
|
|
357
363
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
358
364
|
modelValue: filter.value.upload_by,
|
|
359
365
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => filter.value.upload_by = $event),
|
|
@@ -381,7 +387,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
381
387
|
vue.createElementVNode("div", _hoisted_11, [
|
|
382
388
|
vue.createCommentVNode(" \u91CD\u7F6E\u6309\u94AE - Wrap in filter-item to be managed by the hook "),
|
|
383
389
|
vue.withDirectives(vue.createElementVNode("div", _hoisted_12, [
|
|
384
|
-
|
|
390
|
+
__props.smallScreen ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
385
391
|
key: 0,
|
|
386
392
|
type: "text",
|
|
387
393
|
onClick: handleReset
|
|
@@ -395,15 +401,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
395
401
|
type: "text",
|
|
396
402
|
onClick: handleReset
|
|
397
403
|
}, {
|
|
398
|
-
default: vue.withCtx(() => _cache[14] || (_cache[14] = [
|
|
399
|
-
vue.createTextVNode(" \u91CD\u7F6E ")
|
|
400
|
-
])),
|
|
404
|
+
default: vue.withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
405
|
+
vue.createTextVNode(" \u91CD\u7F6E ", -1)
|
|
406
|
+
])]),
|
|
401
407
|
_: 1
|
|
402
408
|
}))
|
|
403
409
|
], 512), [
|
|
404
410
|
[vue.vShow, !isEmpty.value]
|
|
405
411
|
]),
|
|
406
|
-
|
|
412
|
+
__props.smallScreen ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
407
413
|
key: 0,
|
|
408
414
|
type: "primary",
|
|
409
415
|
onClick: _cache[9] || (_cache[9] = ($event) => emits("upload"))
|
|
@@ -421,7 +427,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
421
427
|
vue.createVNode(vue.unref(icon.IconUpload))
|
|
422
428
|
]),
|
|
423
429
|
default: vue.withCtx(() => [
|
|
424
|
-
_cache[15] || (_cache[15] = vue.createTextVNode(" \u4E0A\u4F20 "))
|
|
430
|
+
_cache[15] || (_cache[15] = vue.createTextVNode(" \u4E0A\u4F20 ", -1))
|
|
425
431
|
]),
|
|
426
432
|
_: 1
|
|
427
433
|
}))
|
|
@@ -128,9 +128,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
128
128
|
type: "text",
|
|
129
129
|
onClick: handleReset
|
|
130
130
|
}, {
|
|
131
|
-
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
132
|
-
vue.createTextVNode(" \u91CD\u7F6E ")
|
|
133
|
-
])),
|
|
131
|
+
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
132
|
+
vue.createTextVNode(" \u91CD\u7F6E ", -1)
|
|
133
|
+
])]),
|
|
134
134
|
_: 1
|
|
135
135
|
})) : vue.createCommentVNode("v-if", true)
|
|
136
136
|
])
|
|
@@ -55,10 +55,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
55
55
|
key: 0,
|
|
56
56
|
class: "item-load-more",
|
|
57
57
|
onClick: loadMore
|
|
58
|
-
}, _cache[0] || (_cache[0] = [
|
|
58
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
59
59
|
vue.createElementVNode("img", { src: sys_load_more }, null, -1),
|
|
60
|
-
vue.createTextVNode(" \u70B9\u51FB\u52A0\u8F7D\u66F4\u591A ")
|
|
61
|
-
]))) : vue.createCommentVNode("v-if", true)
|
|
60
|
+
vue.createTextVNode(" \u70B9\u51FB\u52A0\u8F7D\u66F4\u591A ", -1)
|
|
61
|
+
])])) : vue.createCommentVNode("v-if", true)
|
|
62
62
|
])
|
|
63
63
|
], 2112);
|
|
64
64
|
};
|