@cmstops/pro-compo 3.9.2 → 3.10.5-stable.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 +103 -76
- package/dist/index.css +97 -4
- 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/component.js +71 -14
- 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/contentDetailList/component.js +33 -9
- 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 +118 -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 +16 -10
- 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 +32 -13
- package/es/hooks/useAttachement.js +42 -2
- package/es/hooks/usePopper.d.ts +1 -1
- package/es/hooks/usePopper.js +3 -3
- package/es/hooks/useUpload.d.ts +53 -5
- package/es/hooks/useUpload.js +43 -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 +97 -4
- 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 +261 -0
- package/es/selectResourceModal/__demo__/module/basic.d.ts +292 -0
- 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/ListLocal/index.js +8 -3
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +210 -83
- package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
- 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/hooks/useResponsiveFilter.d.ts +21 -0
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
- package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -2
- package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
- package/es/selectResourceModal/scripts/useTabFilter.js +1 -11
- package/es/selectResourceModal/style/index.css +45 -4
- package/es/selectResourceModal/style/index.less +14 -0
- package/es/selectResourceModal/style/list.less +40 -4
- package/es/selectThumb/component.js +76 -33
- 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/index.js +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/component.js +69 -12
- 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/contentDetailList/component.js +33 -9
- 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 +118 -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 +16 -10
- 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/hooks/useAttachement.js +42 -0
- package/lib/hooks/usePopper.js +3 -3
- package/lib/hooks/useUpload.js +43 -3
- package/lib/imageCrop/component.js +11 -11
- package/lib/importData/component.js +13 -13
- package/lib/index.css +97 -4
- 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/ListLocal/index.js +6 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +207 -80
- package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
- 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/hooks/useResponsiveFilter.js +144 -0
- package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
- package/lib/selectResourceModal/scripts/useTabFilter.js +1 -13
- package/lib/selectResourceModal/style/index.css +45 -4
- package/lib/selectResourceModal/style/index.less +14 -0
- package/lib/selectResourceModal/style/list.less +40 -4
- package/lib/selectThumb/component.js +75 -32
- 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/lib/utils/index.js +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
4
|
+
var webVue = require("@arco-design/web-vue");
|
|
5
|
+
var component = require("../../../typeIcons/component.js");
|
|
6
|
+
var index = require("./MediaFilter/index.js");
|
|
7
|
+
var component$1 = require("../../../dataTags/component.js");
|
|
8
|
+
var index$1 = require("../../../utils/index.js");
|
|
9
|
+
var useViewAllColumnState = require("./script/useViewAllColumnState.js");
|
|
10
|
+
var useTableColumns = require("./script/useTableColumns.js");
|
|
11
|
+
require("./index.vue_vue_type_style_index_0_scoped_true_lang.js");
|
|
12
|
+
var pluginVue_exportHelper = require("../../../_virtual/plugin-vue_export-helper.js");
|
|
13
|
+
const _hoisted_1 = { class: "view-all-column-container" };
|
|
14
|
+
const _hoisted_2 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "content-table-view"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_3 = { class: "title-span" };
|
|
19
|
+
const _hoisted_4 = { class: "title" };
|
|
20
|
+
const _hoisted_5 = { class: "title-span" };
|
|
21
|
+
const _hoisted_6 = { class: "title-span" };
|
|
22
|
+
const _hoisted_7 = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "content-table-view"
|
|
25
|
+
};
|
|
26
|
+
const _hoisted_8 = { class: "title-span" };
|
|
27
|
+
const _hoisted_9 = { class: "title" };
|
|
28
|
+
const _hoisted_10 = { class: "title-span" };
|
|
29
|
+
const _hoisted_11 = { class: "title-span" };
|
|
30
|
+
const _hoisted_12 = { class: "bottom-view" };
|
|
31
|
+
const _hoisted_13 = { class: "left" };
|
|
32
|
+
const _sfc_main = vue.defineComponent({
|
|
33
|
+
...{ name: "ViewAllColumn" },
|
|
34
|
+
__name: "index",
|
|
35
|
+
props: {
|
|
36
|
+
defaultSelectedData: {},
|
|
37
|
+
userInfo: {},
|
|
38
|
+
typeKey: {},
|
|
39
|
+
rid: {}
|
|
40
|
+
},
|
|
41
|
+
emits: ["change"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const emit = __emit;
|
|
44
|
+
const props = __props;
|
|
45
|
+
const listMinHeight = vue.ref(0);
|
|
46
|
+
const categoryCascaderData = vue.ref([]);
|
|
47
|
+
const scrollPercent = { y: "100%" };
|
|
48
|
+
const {
|
|
49
|
+
selectedData,
|
|
50
|
+
mediaFileData,
|
|
51
|
+
dataLoading,
|
|
52
|
+
group_id,
|
|
53
|
+
page,
|
|
54
|
+
isItemChecked,
|
|
55
|
+
tableCellMouseEnter,
|
|
56
|
+
tableCellMouseLeave,
|
|
57
|
+
selectTableCell,
|
|
58
|
+
selectTableAll,
|
|
59
|
+
search,
|
|
60
|
+
pageChangeHandle,
|
|
61
|
+
loadData,
|
|
62
|
+
loadMore,
|
|
63
|
+
filter
|
|
64
|
+
} = useViewAllColumnState.useViewAllColumnState(props, emit);
|
|
65
|
+
const { columns, politicalColumns } = useTableColumns.useTableColumns(
|
|
66
|
+
props,
|
|
67
|
+
selectedData,
|
|
68
|
+
isItemChecked,
|
|
69
|
+
filter
|
|
70
|
+
);
|
|
71
|
+
vue.onMounted(() => {
|
|
72
|
+
loadData();
|
|
73
|
+
});
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
76
|
+
vue.createVNode(index, {
|
|
77
|
+
group_id: vue.unref(group_id),
|
|
78
|
+
"onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => vue.isRef(group_id) ? group_id.value = $event : null),
|
|
79
|
+
height: listMinHeight.value,
|
|
80
|
+
tree: categoryCascaderData.value,
|
|
81
|
+
"type-key": __props.typeKey,
|
|
82
|
+
onSearch: vue.unref(search)
|
|
83
|
+
}, null, 8, ["group_id", "height", "tree", "type-key", "onSearch"]),
|
|
84
|
+
__props.typeKey && __props.typeKey !== "ZQ" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
85
|
+
vue.createVNode(vue.unref(webVue.Table), {
|
|
86
|
+
bordered: false,
|
|
87
|
+
columns: vue.unref(columns),
|
|
88
|
+
data: vue.unref(mediaFileData),
|
|
89
|
+
pagination: false,
|
|
90
|
+
loading: vue.unref(dataLoading),
|
|
91
|
+
scroll: scrollPercent,
|
|
92
|
+
"load-more": vue.unref(loadMore),
|
|
93
|
+
onCellMouseEnter: vue.unref(tableCellMouseEnter),
|
|
94
|
+
onCellMouseLeave: vue.unref(tableCellMouseLeave),
|
|
95
|
+
onRowClick: vue.unref(selectTableCell)
|
|
96
|
+
}, vue.createSlots({
|
|
97
|
+
"expand-icon": vue.withCtx(({ expanded }) => [
|
|
98
|
+
!expanded ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconRight), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(icon.IconDown), { key: 1 }))
|
|
99
|
+
]),
|
|
100
|
+
select: vue.withCtx(({ record }) => [
|
|
101
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
102
|
+
"model-value": vue.unref(isItemChecked)(vue.unref(selectedData), record),
|
|
103
|
+
class: "icon"
|
|
104
|
+
}, null, 8, ["model-value"])
|
|
105
|
+
]),
|
|
106
|
+
title: vue.withCtx(({ record }) => [
|
|
107
|
+
vue.createElementVNode("span", _hoisted_3, [
|
|
108
|
+
vue.createVNode(component, {
|
|
109
|
+
type: record.series,
|
|
110
|
+
class: "icon",
|
|
111
|
+
doc: true
|
|
112
|
+
}, null, 8, ["type"]),
|
|
113
|
+
vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(record.title || record.alias || "--"), 1)
|
|
114
|
+
])
|
|
115
|
+
]),
|
|
116
|
+
series: vue.withCtx(({ record }) => [
|
|
117
|
+
vue.createVNode(component$1, { item: record }, null, 8, ["item"])
|
|
118
|
+
]),
|
|
119
|
+
duty_editor: vue.withCtx(({ record }) => [
|
|
120
|
+
vue.createElementVNode("span", _hoisted_5, [
|
|
121
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.duty_editor || "--"), 1)
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
pub_time: vue.withCtx(({ record }) => [
|
|
125
|
+
vue.createElementVNode("span", _hoisted_6, [
|
|
126
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(index$1.timeFormat)(record.pub_time)), 1)
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, [
|
|
131
|
+
__props.typeKey !== "series:special_v3" ? {
|
|
132
|
+
name: "selectTitle",
|
|
133
|
+
fn: vue.withCtx(() => [
|
|
134
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
135
|
+
"model-value": vue.unref(selectedData).length === vue.unref(mediaFileData).length,
|
|
136
|
+
class: "icon",
|
|
137
|
+
onChange: vue.unref(selectTableAll)
|
|
138
|
+
}, null, 8, ["model-value", "onChange"])
|
|
139
|
+
]),
|
|
140
|
+
key: "0"
|
|
141
|
+
} : void 0
|
|
142
|
+
]), 1032, ["columns", "data", "loading", "load-more", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
|
|
143
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
144
|
+
vue.createVNode(vue.unref(webVue.Table), {
|
|
145
|
+
bordered: false,
|
|
146
|
+
columns: vue.unref(politicalColumns),
|
|
147
|
+
data: vue.unref(mediaFileData),
|
|
148
|
+
pagination: false,
|
|
149
|
+
loading: vue.unref(dataLoading),
|
|
150
|
+
scroll: scrollPercent,
|
|
151
|
+
onCellMouseEnter: vue.unref(tableCellMouseEnter),
|
|
152
|
+
onCellMouseLeave: vue.unref(tableCellMouseLeave),
|
|
153
|
+
onRowClick: vue.unref(selectTableCell)
|
|
154
|
+
}, {
|
|
155
|
+
selectTitle: vue.withCtx(() => [
|
|
156
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
157
|
+
"model-value": vue.unref(selectedData).length === vue.unref(mediaFileData).length,
|
|
158
|
+
class: "icon",
|
|
159
|
+
onChange: vue.unref(selectTableAll)
|
|
160
|
+
}, null, 8, ["model-value", "onChange"])
|
|
161
|
+
]),
|
|
162
|
+
select: vue.withCtx(({ record }) => [
|
|
163
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
164
|
+
"model-value": vue.unref(isItemChecked)(vue.unref(selectedData), record),
|
|
165
|
+
class: "icon"
|
|
166
|
+
}, null, 8, ["model-value"])
|
|
167
|
+
]),
|
|
168
|
+
name: vue.withCtx(({ record }) => [
|
|
169
|
+
vue.createElementVNode("span", _hoisted_8, [
|
|
170
|
+
vue.createVNode(component, {
|
|
171
|
+
type: record.series,
|
|
172
|
+
class: "icon",
|
|
173
|
+
doc: ""
|
|
174
|
+
}, null, 8, ["type"]),
|
|
175
|
+
vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(record.name || record.alias || "--"), 1)
|
|
176
|
+
])
|
|
177
|
+
]),
|
|
178
|
+
series: vue.withCtx(({ record }) => [
|
|
179
|
+
vue.createVNode(component$1, { item: record }, null, 8, ["item"])
|
|
180
|
+
]),
|
|
181
|
+
position: vue.withCtx(({ record }) => [
|
|
182
|
+
vue.createElementVNode("span", _hoisted_10, [
|
|
183
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.position || "--"), 1)
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
city_alias: vue.withCtx(({ record }) => [
|
|
187
|
+
vue.createElementVNode("span", _hoisted_11, [
|
|
188
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.city_alias || "--"), 1)
|
|
189
|
+
])
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["columns", "data", "loading", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
|
|
193
|
+
])),
|
|
194
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
195
|
+
vue.createElementVNode("div", _hoisted_13, [
|
|
196
|
+
vue.renderSlot(_ctx.$slots, "store", {}, void 0, true),
|
|
197
|
+
vue.withDirectives(vue.createVNode(vue.unref(webVue.Pagination), {
|
|
198
|
+
current: vue.unref(page).index,
|
|
199
|
+
"page-size": vue.unref(page).size,
|
|
200
|
+
total: vue.unref(page).total,
|
|
201
|
+
onChange: vue.unref(pageChangeHandle)
|
|
202
|
+
}, null, 8, ["current", "page-size", "total", "onChange"]), [
|
|
203
|
+
[vue.vShow, vue.unref(mediaFileData).length > 0]
|
|
204
|
+
])
|
|
205
|
+
]),
|
|
206
|
+
vue.renderSlot(_ctx.$slots, "options", {}, void 0, true)
|
|
207
|
+
])
|
|
208
|
+
]);
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
var ViewAllColumn = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-01c2d0b8"]]);
|
|
213
|
+
module.exports = ViewAllColumn;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var webVue = require("@arco-design/web-vue");
|
|
5
|
+
var dayjs = require("dayjs");
|
|
6
|
+
function _interopDefaultLegacy(e) {
|
|
7
|
+
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
8
|
+
}
|
|
9
|
+
var dayjs__default = /* @__PURE__ */ _interopDefaultLegacy(dayjs);
|
|
10
|
+
const useTableColumns = (props, selectedData, isItemChecked, filter) => {
|
|
11
|
+
const columns = vue.ref([
|
|
12
|
+
{
|
|
13
|
+
title: "",
|
|
14
|
+
dataIndex: "select",
|
|
15
|
+
slotName: "select",
|
|
16
|
+
width: 40,
|
|
17
|
+
titleSlotName: "selectTitle",
|
|
18
|
+
render: ({ record }) => {
|
|
19
|
+
if (props.typeKey === "series:special_v3") {
|
|
20
|
+
if (record.isLeaf && record.parentId) {
|
|
21
|
+
return vue.h(webVue.Checkbox, {
|
|
22
|
+
modelValue: isItemChecked.value(selectedData.value, record),
|
|
23
|
+
class: "icon"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return vue.h(webVue.Checkbox, {
|
|
29
|
+
modelValue: isItemChecked.value(selectedData.value, record),
|
|
30
|
+
class: "icon"
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: "\u4E13\u9898/\u680F\u76EE\u540D\u79F0",
|
|
36
|
+
dataIndex: "title",
|
|
37
|
+
slotName: "title",
|
|
38
|
+
width: 428
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: "\u7F16\u8F91",
|
|
42
|
+
dataIndex: "duty_editor",
|
|
43
|
+
slotName: "duty_editor",
|
|
44
|
+
width: 100
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
title: vue.computed(() => {
|
|
48
|
+
var _a;
|
|
49
|
+
return ((_a = filter.value) == null ? void 0 : _a.order) === "pub_time" ? "\u53D1\u5E03\u65F6\u95F4" : "\u521B\u5EFA\u65F6\u95F4";
|
|
50
|
+
}),
|
|
51
|
+
dataIndex: vue.computed(
|
|
52
|
+
() => {
|
|
53
|
+
var _a;
|
|
54
|
+
return ((_a = filter.value) == null ? void 0 : _a.order) === "pub_time" ? "pub_time" : "created_at";
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
slotName: "pub_time",
|
|
58
|
+
width: 150,
|
|
59
|
+
render: ({ record }) => {
|
|
60
|
+
var _a;
|
|
61
|
+
if (((_a = filter.value) == null ? void 0 : _a.order) === "pub_time") {
|
|
62
|
+
const raw2 = record.pub_time;
|
|
63
|
+
if (!raw2)
|
|
64
|
+
return "--";
|
|
65
|
+
const d2 = typeof raw2 === "number" || /^\d+$/.test(raw2) ? dayjs__default["default"].unix(Number(raw2)) : dayjs__default["default"](raw2);
|
|
66
|
+
return d2.isValid() ? d2.format("YYYY-M-D HH:mm") : raw2;
|
|
67
|
+
}
|
|
68
|
+
const raw = record.created_at;
|
|
69
|
+
if (!raw)
|
|
70
|
+
return "--";
|
|
71
|
+
const d = dayjs__default["default"](raw);
|
|
72
|
+
return d.isValid() ? d.format("YYYY-M-D HH:mm") : raw;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]);
|
|
76
|
+
const politicalColumns = vue.ref([
|
|
77
|
+
{
|
|
78
|
+
title: "\u52FE",
|
|
79
|
+
dataIndex: "select",
|
|
80
|
+
slotName: "select",
|
|
81
|
+
width: 40,
|
|
82
|
+
titleSlotName: "selectTitle"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: "\u653F\u60C5\u4EBA\u7269\u59D3\u540D",
|
|
86
|
+
dataIndex: "name",
|
|
87
|
+
slotName: "name",
|
|
88
|
+
width: 428
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
title: "\u804C\u4F4D",
|
|
92
|
+
dataIndex: "position",
|
|
93
|
+
slotName: "position",
|
|
94
|
+
width: 100
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: "\u5730\u533A",
|
|
98
|
+
dataIndex: "city_alias",
|
|
99
|
+
slotName: "city_alias",
|
|
100
|
+
width: 150
|
|
101
|
+
}
|
|
102
|
+
]);
|
|
103
|
+
return {
|
|
104
|
+
columns,
|
|
105
|
+
politicalColumns
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
exports.useTableColumns = useTableColumns;
|
|
@@ -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
|
])
|