@cmstops/pro-compo 3.9.2 → 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 +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/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 +170 -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/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 +170 -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,90 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createTextVNode, createVNode, createCommentVNode } from "vue";
|
|
2
|
+
import { Modal, Button } from "@arco-design/web-vue";
|
|
3
|
+
import ViewAllColumn from "./ViewAllColumn/index.js";
|
|
4
|
+
import _sfc_main$1 from "../../contentModal/components/storeBox/index.js";
|
|
5
|
+
import "./SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js";
|
|
6
|
+
import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
|
|
7
|
+
const _sfc_main = defineComponent({
|
|
8
|
+
__name: "SelectAddToView",
|
|
9
|
+
props: {
|
|
10
|
+
visible: { type: Boolean },
|
|
11
|
+
rid: {},
|
|
12
|
+
selectedData: {},
|
|
13
|
+
maxSelect: {},
|
|
14
|
+
typeKey: {}
|
|
15
|
+
},
|
|
16
|
+
emits: [
|
|
17
|
+
"cancel",
|
|
18
|
+
"close",
|
|
19
|
+
"ok",
|
|
20
|
+
"open",
|
|
21
|
+
"selected-change",
|
|
22
|
+
"comfirm"
|
|
23
|
+
],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
const hasSelected = computed(
|
|
28
|
+
() => props.selectedData && props.selectedData.length > 0
|
|
29
|
+
);
|
|
30
|
+
function handleComfirm() {
|
|
31
|
+
emit("comfirm");
|
|
32
|
+
}
|
|
33
|
+
function handleSelectedDataChange(val) {
|
|
34
|
+
emit("selected-change", val);
|
|
35
|
+
}
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createBlock(unref(Modal), {
|
|
38
|
+
footer: false,
|
|
39
|
+
"mask-closable": false,
|
|
40
|
+
visible: __props.visible,
|
|
41
|
+
"body-style": { maxHeight: "700px" },
|
|
42
|
+
"body-class": "add-content-modal-body",
|
|
43
|
+
"modal-class": "add-content-modal-wrapper",
|
|
44
|
+
"title-align": "start",
|
|
45
|
+
"unmount-on-close": "",
|
|
46
|
+
width: "1020px",
|
|
47
|
+
onCancel: _cache[1] || (_cache[1] = () => emit("cancel")),
|
|
48
|
+
onClose: _cache[2] || (_cache[2] = () => emit("close")),
|
|
49
|
+
onOk: _cache[3] || (_cache[3] = () => emit("ok"))
|
|
50
|
+
}, {
|
|
51
|
+
title: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
52
|
+
createTextVNode("\u9009\u62E9\u6DFB\u52A0", -1)
|
|
53
|
+
])]),
|
|
54
|
+
default: withCtx(() => [
|
|
55
|
+
__props.rid ? (openBlock(), createBlock(ViewAllColumn, {
|
|
56
|
+
key: 0,
|
|
57
|
+
rid: __props.rid,
|
|
58
|
+
"default-selected-data": __props.selectedData,
|
|
59
|
+
"max-select": __props.maxSelect,
|
|
60
|
+
"type-key": __props.typeKey || "",
|
|
61
|
+
onChange: handleSelectedDataChange
|
|
62
|
+
}, {
|
|
63
|
+
store: withCtx(() => [
|
|
64
|
+
createVNode(_sfc_main$1, {
|
|
65
|
+
selectData: __props.selectedData,
|
|
66
|
+
"onUpdate:selectData": _cache[0] || (_cache[0] = (val) => emit("selected-change", val))
|
|
67
|
+
}, null, 8, ["selectData"])
|
|
68
|
+
]),
|
|
69
|
+
options: withCtx(() => [
|
|
70
|
+
createVNode(unref(Button), {
|
|
71
|
+
disabled: !hasSelected.value,
|
|
72
|
+
type: "primary",
|
|
73
|
+
onClick: handleComfirm
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
76
|
+
createTextVNode(" \u6DFB\u52A0 ", -1)
|
|
77
|
+
])]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["disabled"])
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}, 8, ["rid", "default-selected-data", "max-select", "type-key"])) : createCommentVNode("v-if", true)
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["visible"]);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
var SelectAddToView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-00adfb7c"]]);
|
|
90
|
+
export { SelectAddToView as default };
|
|
File without changes
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
|
|
2
|
+
import { Space, Input, Select, Option, Tooltip } from "@arco-design/web-vue";
|
|
3
|
+
import { IconInfoCircle } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
const _hoisted_1 = { class: "media-filter-container" };
|
|
5
|
+
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
|
|
6
|
+
const _hoisted_3 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "sort-button"
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = defineComponent({
|
|
11
|
+
...{ name: "MediaFilter" },
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: {
|
|
14
|
+
groupId: {},
|
|
15
|
+
tree: { default: () => [] },
|
|
16
|
+
height: {},
|
|
17
|
+
typeKey: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:group_id", "search"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const column_id = ref("all");
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const filter = ref({
|
|
25
|
+
keywords: "",
|
|
26
|
+
type: "",
|
|
27
|
+
cover_type: "",
|
|
28
|
+
banner: "",
|
|
29
|
+
sort: -1,
|
|
30
|
+
order: "create_time",
|
|
31
|
+
wordState: "precision"
|
|
32
|
+
});
|
|
33
|
+
const wordStateOptions = [
|
|
34
|
+
{
|
|
35
|
+
value: "precision",
|
|
36
|
+
label: "\u7CBE\u51C6\u641C",
|
|
37
|
+
desc: "\u4F1A\u4EE5\u8F93\u5165\u7684\u5B8C\u6574\u5173\u952E\u8BCD\u201C\u6210\u957F\u201D\u8FDB\u884C\u641C\u7D22\uFF0C\u641C\u7D22\u7ED3\u679C\u5173\u8054\u6027\u66F4\u9AD8\uFF0C\u4F46\u641C\u7D22\u7ED3\u679C\u66F4\u5C11"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "blur",
|
|
41
|
+
label: "\u6A21\u7CCA\u641C",
|
|
42
|
+
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"
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
const sortMethodOptions = computed(() => {
|
|
46
|
+
return [
|
|
47
|
+
{ value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
|
|
48
|
+
{ value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
|
|
49
|
+
];
|
|
50
|
+
});
|
|
51
|
+
const checkout = (type) => {
|
|
52
|
+
filter.value.wordState = type;
|
|
53
|
+
};
|
|
54
|
+
const handleSearch = () => {
|
|
55
|
+
const params = JSON.parse(JSON.stringify(filter.value));
|
|
56
|
+
if (filter.value.wordState === "precision") {
|
|
57
|
+
params.precise_kw = params.keywords;
|
|
58
|
+
delete params.keywords;
|
|
59
|
+
}
|
|
60
|
+
delete params.wordState;
|
|
61
|
+
emit("search", params);
|
|
62
|
+
};
|
|
63
|
+
watch(
|
|
64
|
+
() => filter.value,
|
|
65
|
+
() => {
|
|
66
|
+
handleSearch();
|
|
67
|
+
},
|
|
68
|
+
{ deep: true }
|
|
69
|
+
);
|
|
70
|
+
watch(
|
|
71
|
+
() => props.groupId,
|
|
72
|
+
(val) => {
|
|
73
|
+
column_id.value = val;
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
watch(
|
|
77
|
+
() => props.banner,
|
|
78
|
+
(val) => {
|
|
79
|
+
filter.value.banner = val === "all" ? "" : val;
|
|
80
|
+
},
|
|
81
|
+
{ immediate: true }
|
|
82
|
+
);
|
|
83
|
+
watch(
|
|
84
|
+
() => column_id.value,
|
|
85
|
+
(val) => {
|
|
86
|
+
emit("update:group_id", val);
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
return (_ctx, _cache) => {
|
|
90
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
91
|
+
createVNode(unref(Space), { size: "small" }, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
createVNode(unref(Input), {
|
|
94
|
+
modelValue: filter.value.keywords,
|
|
95
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.keywords = $event),
|
|
96
|
+
"allow-clear": "",
|
|
97
|
+
class: "filter-item keyword",
|
|
98
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
|
|
99
|
+
style: { width: "240px" },
|
|
100
|
+
onPressEnter: handleSearch
|
|
101
|
+
}, {
|
|
102
|
+
prepend: withCtx(() => [
|
|
103
|
+
createVNode(unref(Select), {
|
|
104
|
+
modelValue: filter.value.wordState,
|
|
105
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wordState = $event),
|
|
106
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
107
|
+
onSelect: checkout
|
|
108
|
+
}, {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(wordStateOptions, (item, index) => {
|
|
111
|
+
return createVNode(unref(Option), {
|
|
112
|
+
key: index,
|
|
113
|
+
value: item.value,
|
|
114
|
+
label: item.label
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [
|
|
117
|
+
createElementVNode("div", _hoisted_2, [
|
|
118
|
+
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
119
|
+
createVNode(unref(Tooltip), {
|
|
120
|
+
effect: "dark",
|
|
121
|
+
content: item.desc,
|
|
122
|
+
position: "right"
|
|
123
|
+
}, {
|
|
124
|
+
default: withCtx(() => [
|
|
125
|
+
createVNode(unref(IconInfoCircle))
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["content"])
|
|
129
|
+
])
|
|
130
|
+
]),
|
|
131
|
+
_: 2
|
|
132
|
+
}, 1032, ["value", "label"]);
|
|
133
|
+
}), 64))
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["modelValue"])
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 8, ["modelValue"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}),
|
|
143
|
+
__props.typeKey && __props.typeKey !== "ZQ" ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
144
|
+
createVNode(unref(Select), {
|
|
145
|
+
modelValue: filter.value.order,
|
|
146
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
|
|
147
|
+
class: "filter-item",
|
|
148
|
+
placeholder: "\u521B\u5EFA\u65F6\u95F4"
|
|
149
|
+
}, {
|
|
150
|
+
default: withCtx(() => [
|
|
151
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sortMethodOptions.value, (item) => {
|
|
152
|
+
return openBlock(), createBlock(unref(Option), {
|
|
153
|
+
key: item.value,
|
|
154
|
+
label: item.label,
|
|
155
|
+
value: item.value
|
|
156
|
+
}, null, 8, ["label", "value"]);
|
|
157
|
+
}), 128))
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["modelValue"])
|
|
161
|
+
])) : createCommentVNode("v-if", true)
|
|
162
|
+
]);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
export { _sfc_main as default };
|
|
File without changes
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, unref, isRef, createSlots, withCtx, createBlock, createElementVNode, toDisplayString, renderSlot, withDirectives, vShow } from "vue";
|
|
2
|
+
import { IconRight, IconDown } from "@arco-design/web-vue/es/icon";
|
|
3
|
+
import { Table, Checkbox, Pagination } from "@arco-design/web-vue";
|
|
4
|
+
import _sfc_main$2 from "../../../typeIcons/component.js";
|
|
5
|
+
import _sfc_main$1 from "./MediaFilter/index.js";
|
|
6
|
+
import _sfc_main$3 from "../../../dataTags/component.js";
|
|
7
|
+
import { timeFormat } from "../../../utils/index.js";
|
|
8
|
+
import { useViewAllColumnState } from "./script/useViewAllColumnState.js";
|
|
9
|
+
import { useTableColumns } from "./script/useTableColumns.js";
|
|
10
|
+
import "./index.vue_vue_type_style_index_0_scoped_true_lang.js";
|
|
11
|
+
import _export_sfc from "../../../_virtual/plugin-vue_export-helper.js";
|
|
12
|
+
const _hoisted_1 = { class: "view-all-column-container" };
|
|
13
|
+
const _hoisted_2 = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "content-table-view"
|
|
16
|
+
};
|
|
17
|
+
const _hoisted_3 = { class: "title-span" };
|
|
18
|
+
const _hoisted_4 = { class: "title" };
|
|
19
|
+
const _hoisted_5 = { class: "title-span" };
|
|
20
|
+
const _hoisted_6 = { class: "title-span" };
|
|
21
|
+
const _hoisted_7 = {
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "content-table-view"
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_8 = { class: "title-span" };
|
|
26
|
+
const _hoisted_9 = { class: "title" };
|
|
27
|
+
const _hoisted_10 = { class: "title-span" };
|
|
28
|
+
const _hoisted_11 = { class: "title-span" };
|
|
29
|
+
const _hoisted_12 = { class: "bottom-view" };
|
|
30
|
+
const _hoisted_13 = { class: "left" };
|
|
31
|
+
const _sfc_main = defineComponent({
|
|
32
|
+
...{ name: "ViewAllColumn" },
|
|
33
|
+
__name: "index",
|
|
34
|
+
props: {
|
|
35
|
+
defaultSelectedData: {},
|
|
36
|
+
userInfo: {},
|
|
37
|
+
typeKey: {},
|
|
38
|
+
rid: {}
|
|
39
|
+
},
|
|
40
|
+
emits: ["change"],
|
|
41
|
+
setup(__props, { emit: __emit }) {
|
|
42
|
+
const emit = __emit;
|
|
43
|
+
const props = __props;
|
|
44
|
+
const listMinHeight = ref(0);
|
|
45
|
+
const categoryCascaderData = ref([]);
|
|
46
|
+
const scrollPercent = { y: "100%" };
|
|
47
|
+
const {
|
|
48
|
+
selectedData,
|
|
49
|
+
mediaFileData,
|
|
50
|
+
dataLoading,
|
|
51
|
+
group_id,
|
|
52
|
+
page,
|
|
53
|
+
isItemChecked,
|
|
54
|
+
tableCellMouseEnter,
|
|
55
|
+
tableCellMouseLeave,
|
|
56
|
+
selectTableCell,
|
|
57
|
+
selectTableAll,
|
|
58
|
+
search,
|
|
59
|
+
pageChangeHandle,
|
|
60
|
+
loadData,
|
|
61
|
+
loadMore,
|
|
62
|
+
filter
|
|
63
|
+
} = useViewAllColumnState(props, emit);
|
|
64
|
+
const { columns, politicalColumns } = useTableColumns(
|
|
65
|
+
props,
|
|
66
|
+
selectedData,
|
|
67
|
+
isItemChecked,
|
|
68
|
+
filter
|
|
69
|
+
);
|
|
70
|
+
onMounted(() => {
|
|
71
|
+
loadData();
|
|
72
|
+
});
|
|
73
|
+
return (_ctx, _cache) => {
|
|
74
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
75
|
+
createVNode(_sfc_main$1, {
|
|
76
|
+
group_id: unref(group_id),
|
|
77
|
+
"onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => isRef(group_id) ? group_id.value = $event : null),
|
|
78
|
+
height: listMinHeight.value,
|
|
79
|
+
tree: categoryCascaderData.value,
|
|
80
|
+
"type-key": __props.typeKey,
|
|
81
|
+
onSearch: unref(search)
|
|
82
|
+
}, null, 8, ["group_id", "height", "tree", "type-key", "onSearch"]),
|
|
83
|
+
__props.typeKey && __props.typeKey !== "ZQ" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
84
|
+
createVNode(unref(Table), {
|
|
85
|
+
bordered: false,
|
|
86
|
+
columns: unref(columns),
|
|
87
|
+
data: unref(mediaFileData),
|
|
88
|
+
pagination: false,
|
|
89
|
+
loading: unref(dataLoading),
|
|
90
|
+
scroll: scrollPercent,
|
|
91
|
+
"load-more": unref(loadMore),
|
|
92
|
+
onCellMouseEnter: unref(tableCellMouseEnter),
|
|
93
|
+
onCellMouseLeave: unref(tableCellMouseLeave),
|
|
94
|
+
onRowClick: unref(selectTableCell)
|
|
95
|
+
}, createSlots({
|
|
96
|
+
"expand-icon": withCtx(({ expanded }) => [
|
|
97
|
+
!expanded ? (openBlock(), createBlock(unref(IconRight), { key: 0 })) : (openBlock(), createBlock(unref(IconDown), { key: 1 }))
|
|
98
|
+
]),
|
|
99
|
+
select: withCtx(({ record }) => [
|
|
100
|
+
createVNode(unref(Checkbox), {
|
|
101
|
+
"model-value": unref(isItemChecked)(unref(selectedData), record),
|
|
102
|
+
class: "icon"
|
|
103
|
+
}, null, 8, ["model-value"])
|
|
104
|
+
]),
|
|
105
|
+
title: withCtx(({ record }) => [
|
|
106
|
+
createElementVNode("span", _hoisted_3, [
|
|
107
|
+
createVNode(_sfc_main$2, {
|
|
108
|
+
type: record.series,
|
|
109
|
+
class: "icon",
|
|
110
|
+
doc: true
|
|
111
|
+
}, null, 8, ["type"]),
|
|
112
|
+
createElementVNode("span", _hoisted_4, toDisplayString(record.title || record.alias || "--"), 1)
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
series: withCtx(({ record }) => [
|
|
116
|
+
createVNode(_sfc_main$3, { item: record }, null, 8, ["item"])
|
|
117
|
+
]),
|
|
118
|
+
duty_editor: withCtx(({ record }) => [
|
|
119
|
+
createElementVNode("span", _hoisted_5, [
|
|
120
|
+
createElementVNode("span", null, toDisplayString(record.duty_editor || "--"), 1)
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
pub_time: withCtx(({ record }) => [
|
|
124
|
+
createElementVNode("span", _hoisted_6, [
|
|
125
|
+
createElementVNode("span", null, toDisplayString(unref(timeFormat)(record.pub_time)), 1)
|
|
126
|
+
])
|
|
127
|
+
]),
|
|
128
|
+
_: 2
|
|
129
|
+
}, [
|
|
130
|
+
__props.typeKey !== "series:special_v3" ? {
|
|
131
|
+
name: "selectTitle",
|
|
132
|
+
fn: withCtx(() => [
|
|
133
|
+
createVNode(unref(Checkbox), {
|
|
134
|
+
"model-value": unref(selectedData).length === unref(mediaFileData).length,
|
|
135
|
+
class: "icon",
|
|
136
|
+
onChange: unref(selectTableAll)
|
|
137
|
+
}, null, 8, ["model-value", "onChange"])
|
|
138
|
+
]),
|
|
139
|
+
key: "0"
|
|
140
|
+
} : void 0
|
|
141
|
+
]), 1032, ["columns", "data", "loading", "load-more", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
|
|
142
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
143
|
+
createVNode(unref(Table), {
|
|
144
|
+
bordered: false,
|
|
145
|
+
columns: unref(politicalColumns),
|
|
146
|
+
data: unref(mediaFileData),
|
|
147
|
+
pagination: false,
|
|
148
|
+
loading: unref(dataLoading),
|
|
149
|
+
scroll: scrollPercent,
|
|
150
|
+
onCellMouseEnter: unref(tableCellMouseEnter),
|
|
151
|
+
onCellMouseLeave: unref(tableCellMouseLeave),
|
|
152
|
+
onRowClick: unref(selectTableCell)
|
|
153
|
+
}, {
|
|
154
|
+
selectTitle: withCtx(() => [
|
|
155
|
+
createVNode(unref(Checkbox), {
|
|
156
|
+
"model-value": unref(selectedData).length === unref(mediaFileData).length,
|
|
157
|
+
class: "icon",
|
|
158
|
+
onChange: unref(selectTableAll)
|
|
159
|
+
}, null, 8, ["model-value", "onChange"])
|
|
160
|
+
]),
|
|
161
|
+
select: withCtx(({ record }) => [
|
|
162
|
+
createVNode(unref(Checkbox), {
|
|
163
|
+
"model-value": unref(isItemChecked)(unref(selectedData), record),
|
|
164
|
+
class: "icon"
|
|
165
|
+
}, null, 8, ["model-value"])
|
|
166
|
+
]),
|
|
167
|
+
name: withCtx(({ record }) => [
|
|
168
|
+
createElementVNode("span", _hoisted_8, [
|
|
169
|
+
createVNode(_sfc_main$2, {
|
|
170
|
+
type: record.series,
|
|
171
|
+
class: "icon",
|
|
172
|
+
doc: ""
|
|
173
|
+
}, null, 8, ["type"]),
|
|
174
|
+
createElementVNode("span", _hoisted_9, toDisplayString(record.name || record.alias || "--"), 1)
|
|
175
|
+
])
|
|
176
|
+
]),
|
|
177
|
+
series: withCtx(({ record }) => [
|
|
178
|
+
createVNode(_sfc_main$3, { item: record }, null, 8, ["item"])
|
|
179
|
+
]),
|
|
180
|
+
position: withCtx(({ record }) => [
|
|
181
|
+
createElementVNode("span", _hoisted_10, [
|
|
182
|
+
createElementVNode("span", null, toDisplayString(record.position || "--"), 1)
|
|
183
|
+
])
|
|
184
|
+
]),
|
|
185
|
+
city_alias: withCtx(({ record }) => [
|
|
186
|
+
createElementVNode("span", _hoisted_11, [
|
|
187
|
+
createElementVNode("span", null, toDisplayString(record.city_alias || "--"), 1)
|
|
188
|
+
])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["columns", "data", "loading", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
|
|
192
|
+
])),
|
|
193
|
+
createElementVNode("div", _hoisted_12, [
|
|
194
|
+
createElementVNode("div", _hoisted_13, [
|
|
195
|
+
renderSlot(_ctx.$slots, "store", {}, void 0, true),
|
|
196
|
+
withDirectives(createVNode(unref(Pagination), {
|
|
197
|
+
current: unref(page).index,
|
|
198
|
+
"page-size": unref(page).size,
|
|
199
|
+
total: unref(page).total,
|
|
200
|
+
onChange: unref(pageChangeHandle)
|
|
201
|
+
}, null, 8, ["current", "page-size", "total", "onChange"]), [
|
|
202
|
+
[vShow, unref(mediaFileData).length > 0]
|
|
203
|
+
])
|
|
204
|
+
]),
|
|
205
|
+
renderSlot(_ctx.$slots, "options", {}, void 0, true)
|
|
206
|
+
])
|
|
207
|
+
]);
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
var ViewAllColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-01c2d0b8"]]);
|
|
212
|
+
export { ViewAllColumn as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ref, h, computed } from "vue";
|
|
2
|
+
import { Checkbox } from "@arco-design/web-vue";
|
|
3
|
+
import dayjs from "dayjs";
|
|
4
|
+
const useTableColumns = (props, selectedData, isItemChecked, filter) => {
|
|
5
|
+
const columns = ref([
|
|
6
|
+
{
|
|
7
|
+
title: "",
|
|
8
|
+
dataIndex: "select",
|
|
9
|
+
slotName: "select",
|
|
10
|
+
width: 40,
|
|
11
|
+
titleSlotName: "selectTitle",
|
|
12
|
+
render: ({ record }) => {
|
|
13
|
+
if (props.typeKey === "series:special_v3") {
|
|
14
|
+
if (record.isLeaf && record.parentId) {
|
|
15
|
+
return h(Checkbox, {
|
|
16
|
+
modelValue: isItemChecked.value(selectedData.value, record),
|
|
17
|
+
class: "icon"
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return h(Checkbox, {
|
|
23
|
+
modelValue: isItemChecked.value(selectedData.value, record),
|
|
24
|
+
class: "icon"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: "\u4E13\u9898/\u680F\u76EE\u540D\u79F0",
|
|
30
|
+
dataIndex: "title",
|
|
31
|
+
slotName: "title",
|
|
32
|
+
width: 428
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: "\u7F16\u8F91",
|
|
36
|
+
dataIndex: "duty_editor",
|
|
37
|
+
slotName: "duty_editor",
|
|
38
|
+
width: 100
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: computed(() => {
|
|
42
|
+
var _a;
|
|
43
|
+
return ((_a = filter.value) == null ? void 0 : _a.order) === "pub_time" ? "\u53D1\u5E03\u65F6\u95F4" : "\u521B\u5EFA\u65F6\u95F4";
|
|
44
|
+
}),
|
|
45
|
+
dataIndex: computed(
|
|
46
|
+
() => {
|
|
47
|
+
var _a;
|
|
48
|
+
return ((_a = filter.value) == null ? void 0 : _a.order) === "pub_time" ? "pub_time" : "created_at";
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
slotName: "pub_time",
|
|
52
|
+
width: 150,
|
|
53
|
+
render: ({ record }) => {
|
|
54
|
+
var _a;
|
|
55
|
+
if (((_a = filter.value) == null ? void 0 : _a.order) === "pub_time") {
|
|
56
|
+
const raw2 = record.pub_time;
|
|
57
|
+
if (!raw2)
|
|
58
|
+
return "--";
|
|
59
|
+
const d2 = typeof raw2 === "number" || /^\d+$/.test(raw2) ? dayjs.unix(Number(raw2)) : dayjs(raw2);
|
|
60
|
+
return d2.isValid() ? d2.format("YYYY-M-D HH:mm") : raw2;
|
|
61
|
+
}
|
|
62
|
+
const raw = record.created_at;
|
|
63
|
+
if (!raw)
|
|
64
|
+
return "--";
|
|
65
|
+
const d = dayjs(raw);
|
|
66
|
+
return d.isValid() ? d.format("YYYY-M-D HH:mm") : raw;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]);
|
|
70
|
+
const politicalColumns = ref([
|
|
71
|
+
{
|
|
72
|
+
title: "\u52FE",
|
|
73
|
+
dataIndex: "select",
|
|
74
|
+
slotName: "select",
|
|
75
|
+
width: 40,
|
|
76
|
+
titleSlotName: "selectTitle"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: "\u653F\u60C5\u4EBA\u7269\u59D3\u540D",
|
|
80
|
+
dataIndex: "name",
|
|
81
|
+
slotName: "name",
|
|
82
|
+
width: 428
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: "\u804C\u4F4D",
|
|
86
|
+
dataIndex: "position",
|
|
87
|
+
slotName: "position",
|
|
88
|
+
width: 100
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
title: "\u5730\u533A",
|
|
92
|
+
dataIndex: "city_alias",
|
|
93
|
+
slotName: "city_alias",
|
|
94
|
+
width: 150
|
|
95
|
+
}
|
|
96
|
+
]);
|
|
97
|
+
return {
|
|
98
|
+
columns,
|
|
99
|
+
politicalColumns
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export { useTableColumns };
|