@cmstops/pro-compo 3.9.2-alpha.2 → 3.9.2-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/baseFilter/component.js +71 -14
- package/es/contentDetailList/component.js +24 -0
- package/es/contentDetailList/components/Content/index.js +2 -1
- package/es/contentDetailList/components/Doc/index.js +6 -0
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
- package/es/contentModal/component.js +16 -8
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/es/contentModal/components/storeBox/index.js +4 -2
- package/es/dataTags/component.js +10 -5
- package/es/docHistory/component.js +43 -13
- package/es/docHistory/scripts/diff.js +4 -3
- package/es/docHistory/style/index.css +4 -0
- package/es/docHistory/style/index.less +5 -0
- package/es/docPreview/component.js +10 -5
- package/es/editMetaInfo/components/metaInfoForm.js +4 -2
- package/es/hooks/useUpload.js +43 -4
- package/es/imageCrop/component.js +4 -2
- package/es/importData/component.js +6 -3
- package/es/index.css +4 -0
- package/es/index.js +1 -0
- package/es/mediaFilter/components/DocFilter.js +2 -1
- package/es/resourceGridList/component.js +4 -2
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/es/selectAddTo/component.js +126 -0
- package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +169 -0
- package/es/selectAddTo/components/ViewAllColumn/columnTree/index.js +151 -0
- package/es/selectAddTo/components/ViewAllColumn/index.js +203 -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.js +78 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +193 -0
- package/es/selectAddTo/index.js +16 -0
- package/es/selectAddTo/script/api.js +36 -0
- package/es/selectAddTo/script/useSelectAddToState.js +106 -0
- package/es/selectAddTo/style/css.js +1 -0
- package/es/selectAddTo/style/index.css +3 -0
- package/es/selectAddTo/style/index.js +1 -0
- package/es/selectAddTo/style/index.less +3 -0
- package/es/selectResourceModal/component.js +10 -5
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +45 -22
- package/es/selectResourceModal/components/List/ListNormal/index.js +0 -1
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/es/style.css +57 -0
- package/es/typeIcons/component.js +1 -1
- package/es/userAvater/component.js +2 -1
- package/es/userDirector/component.js +2 -1
- package/es/utils/index.js +6 -6
- package/lib/baseFilter/component.js +69 -12
- package/lib/contentDetailList/component.js +24 -0
- package/lib/contentDetailList/components/Content/index.js +2 -1
- package/lib/contentDetailList/components/Doc/index.js +6 -0
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
- package/lib/contentModal/component.js +16 -8
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/storeBox/index.js +4 -2
- package/lib/dataTags/component.js +10 -5
- package/lib/docHistory/component.js +41 -11
- 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 +10 -5
- package/lib/editMetaInfo/components/metaInfoForm.js +4 -2
- package/lib/hooks/useUpload.js +43 -3
- package/lib/imageCrop/component.js +4 -2
- package/lib/importData/component.js +6 -3
- package/lib/index.css +4 -0
- package/lib/index.js +2 -0
- package/lib/mediaFilter/components/DocFilter.js +2 -1
- package/lib/resourceGridList/component.js +4 -2
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/lib/selectAddTo/component.js +127 -0
- package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +170 -0
- package/lib/selectAddTo/components/ViewAllColumn/columnTree/index.js +152 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.js +204 -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 +80 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +195 -0
- package/lib/selectAddTo/index.js +18 -0
- package/lib/selectAddTo/script/api.js +42 -0
- package/lib/selectAddTo/script/useSelectAddToState.js +108 -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/selectResourceModal/component.js +10 -5
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +44 -21
- package/lib/selectResourceModal/components/List/ListNormal/index.js +0 -1
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/lib/typeIcons/component.js +1 -1
- package/lib/userAvater/component.js +2 -1
- package/lib/userDirector/component.js +2 -1
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
- package/es/appCenter/component.d.ts +0 -0
- package/es/appCenter/index.d.ts +0 -2
- package/es/appCenter/script/api.d.ts +0 -11
- package/es/appCenter/script/apps.d.ts +0 -14
- package/es/appCenter/script/permissionMap.d.ts +0 -6
- package/es/appCenter/script/routeMap.d.ts +0 -4
- package/es/appCenter/style/index.d.ts +0 -1
- package/es/baseFilter/component.d.ts +0 -0
- package/es/baseFilter/components/FilterGroup.d.ts +0 -0
- package/es/baseFilter/components/filterItem.d.ts +0 -0
- package/es/baseFilter/index.d.ts +0 -2
- package/es/baseFilter/style/index.d.ts +0 -1
- package/es/baseFilter/useCalcWidth.d.ts +0 -16
- package/es/colorPalette/component.d.ts +0 -0
- package/es/colorPalette/components/colorPicker.d.ts +0 -0
- package/es/colorPalette/index.d.ts +0 -2
- package/es/colorPalette/style/index.d.ts +0 -1
- package/es/components.d.ts +0 -5
- package/es/config.d.ts +0 -4
- package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
- package/es/contentDetailList/component.d.ts +0 -0
- package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/index.d.ts +0 -0
- package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
- package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
- package/es/contentDetailList/components/Doc/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/index.d.ts +0 -0
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
- package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
- package/es/contentDetailList/index.d.ts +0 -2
- package/es/contentDetailList/script/api.d.ts +0 -6
- package/es/contentDetailList/style/index.d.ts +0 -1
- package/es/contentModal/component.d.ts +0 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/index.d.ts +0 -0
- package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ContentList/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
- package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/LiveList/index.d.ts +0 -0
- package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
- package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
- package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/MpContentList/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
- package/es/contentModal/components/storeBox/index.d.ts +0 -0
- package/es/contentModal/index.d.ts +0 -2
- package/es/contentModal/script/api.d.ts +0 -18
- package/es/contentModal/style/index.d.ts +0 -1
- package/es/dataTags/component.d.ts +0 -0
- package/es/dataTags/index.d.ts +0 -2
- package/es/dataTags/style/index.d.ts +0 -1
- package/es/docHistory/component.d.ts +0 -0
- package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
- package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
- package/es/docHistory/index.d.ts +0 -2
- package/es/docHistory/scripts/diff.d.ts +0 -1
- package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
- package/es/docHistory/style/index.d.ts +0 -1
- package/es/docPreview/component.d.ts +0 -0
- package/es/docPreview/components/PreviewIframe.d.ts +0 -0
- package/es/docPreview/index.d.ts +0 -2
- package/es/docPreview/scripts/api.d.ts +0 -1
- package/es/docPreview/scripts/hook.d.ts +0 -33
- package/es/docPreview/style/index.d.ts +0 -1
- package/es/editMetaInfo/component.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
- package/es/editMetaInfo/index.d.ts +0 -2
- package/es/editMetaInfo/script/api.d.ts +0 -6
- package/es/editMetaInfo/script/restaurants.d.ts +0 -4
- package/es/editMetaInfo/style/index.d.ts +0 -1
- package/es/emptyData/component.d.ts +0 -0
- package/es/emptyData/index.d.ts +0 -2
- package/es/emptyData/style/index.d.ts +0 -1
- package/es/emptyData/svg/add.d.ts +0 -0
- package/es/hooks/assets.d.ts +0 -1
- package/es/hooks/batch.d.ts +0 -8
- package/es/hooks/dialogVisible.d.ts +0 -8
- package/es/hooks/source.d.ts +0 -9
- package/es/hooks/toggle.d.ts +0 -6
- package/es/hooks/useAttachement.d.ts +0 -53
- package/es/hooks/useLocalStorage.d.ts +0 -10
- package/es/hooks/useMediaContext.d.ts +0 -12
- package/es/hooks/usePopper.d.ts +0 -8
- package/es/hooks/useSelection.d.ts +0 -30
- package/es/hooks/useUpload.d.ts +0 -30
- package/es/hooks/user.d.ts +0 -9
- package/es/imageCrop/component.d.ts +0 -0
- package/es/imageCrop/index.d.ts +0 -2
- package/es/imageCrop/script/api.d.ts +0 -1
- package/es/imageCrop/style/index.d.ts +0 -1
- package/es/importData/component.d.ts +0 -0
- package/es/importData/index.d.ts +0 -2
- package/es/importData/style/index.d.ts +0 -1
- package/es/index.d.ts +0 -30
- package/es/mediaFilter/component.d.ts +0 -0
- package/es/mediaFilter/components/DocFilter.d.ts +0 -0
- package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
- package/es/mediaFilter/components/FilterItem.d.ts +0 -0
- package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
- package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
- package/es/mediaFilter/index.d.ts +0 -3
- package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
- package/es/mediaFilter/script/types.d.ts +0 -16
- package/es/mediaFilter/style/index.d.ts +0 -1
- package/es/mediaView/component.d.ts +0 -0
- package/es/mediaView/index.d.ts +0 -2
- package/es/mediaView/style/index.d.ts +0 -1
- package/es/messageBox/component.d.ts +0 -0
- package/es/messageBox/index.d.ts +0 -2
- package/es/messageBox/list.d.ts +0 -0
- package/es/messageBox/script/api.d.ts +0 -6
- package/es/messageBox/style/index.d.ts +0 -1
- package/es/previousVersion/component.d.ts +0 -0
- package/es/previousVersion/index.d.ts +0 -2
- package/es/previousVersion/script/api.d.ts +0 -15
- package/es/previousVersion/script/tool.d.ts +0 -6
- package/es/previousVersion/style/index.d.ts +0 -1
- package/es/resourceGridList/component.d.ts +0 -0
- package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceGridList/index.d.ts +0 -2
- package/es/resourceGridList/style/index.d.ts +0 -1
- package/es/resourceModal/component.d.ts +0 -0
- package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
- package/es/resourceModal/index.d.ts +0 -2
- package/es/resourceModal/script/api.d.ts +0 -25
- package/es/resourceModal/script/mediaSelection.d.ts +0 -14
- package/es/resourceModal/style/index.d.ts +0 -1
- package/es/selectAvatarList/component.d.ts +0 -0
- package/es/selectAvatarList/index.d.ts +0 -2
- package/es/selectAvatarList/style/index.d.ts +0 -1
- package/es/selectGategory/component.d.ts +0 -0
- package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
- package/es/selectGategory/index.d.ts +0 -2
- package/es/selectGategory/script/api.d.ts +0 -6
- package/es/selectGategory/style/index.d.ts +0 -1
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -268
- package/es/selectResourceModal/__demo__/module/basic.d.ts +0 -299
- package/es/selectResourceModal/component.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
- package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
- package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
- package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -21
- package/es/selectResourceModal/index.d.ts +0 -2
- package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
- package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
- package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
- package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
- package/es/selectResourceModal/style/index.d.ts +0 -1
- package/es/selectThumb/component.d.ts +0 -0
- package/es/selectThumb/components/card.d.ts +0 -0
- package/es/selectThumb/components/colorPalette.d.ts +0 -0
- package/es/selectThumb/components/colorPicker.d.ts +0 -0
- package/es/selectThumb/index.d.ts +0 -2
- package/es/selectThumb/style/index.d.ts +0 -1
- package/es/thumbCard/component.d.ts +0 -0
- package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
- package/es/thumbCard/index.d.ts +0 -2
- package/es/thumbCard/style/index.d.ts +0 -1
- package/es/typeIcons/component.d.ts +0 -0
- package/es/typeIcons/index.d.ts +0 -2
- package/es/typeIcons/style/index.d.ts +0 -1
- package/es/uploadBefore/component.d.ts +0 -0
- package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
- package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
- package/es/uploadBefore/index.d.ts +0 -2
- package/es/uploadBefore/script/api.d.ts +0 -16
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
- package/es/uploadBefore/script/fileUpload.d.ts +0 -7
- package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
- package/es/uploadBefore/style/index.d.ts +0 -1
- package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
- package/es/uploadStep/component.d.ts +0 -0
- package/es/uploadStep/index.d.ts +0 -2
- package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
- package/es/uploadStep/style/index.d.ts +0 -1
- package/es/userAvater/component.d.ts +0 -0
- package/es/userAvater/index.d.ts +0 -2
- package/es/userAvater/script/api.d.ts +0 -8
- package/es/userAvater/style/index.d.ts +0 -1
- package/es/userDirector/component.d.ts +0 -0
- package/es/userDirector/components/userTree.d.ts +0 -0
- package/es/userDirector/index.d.ts +0 -2
- package/es/userDirector/script/api.d.ts +0 -10
- package/es/userDirector/style/index.d.ts +0 -1
- package/es/utils/auth.d.ts +0 -5
- package/es/utils/date.d.ts +0 -3
- package/es/utils/doc.d.ts +0 -76
- package/es/utils/filter.d.ts +0 -21
- package/es/utils/index.d.ts +0 -17
- package/es/utils/request.d.ts +0 -9
- package/es/utils/resource.d.ts +0 -4
- package/es/utils/transcodeMedia.d.ts +0 -13
- package/es/utils/tusUpload.d.ts +0 -16
- package/es/utils/typeMap.d.ts +0 -185
- package/es/utils/uploadCatalog.d.ts +0 -1
- package/es/videoThumb/component.d.ts +0 -0
- package/es/videoThumb/index.d.ts +0 -2
- package/es/videoThumb/scripts/api.d.ts +0 -9
- package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
- package/es/videoThumb/style/index.d.ts +0 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var index = require("./components/ViewAllColumn/index.js");
|
|
5
|
+
require("../typeIcons/style/index.js");
|
|
6
|
+
var useSelectAddToState = require("./script/useSelectAddToState.js");
|
|
7
|
+
require("./component.vue_vue_type_style_index_0_scoped_true_lang.js");
|
|
8
|
+
var pluginVue_exportHelper = require("../_virtual/plugin-vue_export-helper.js");
|
|
9
|
+
const _sfc_main = vue.defineComponent({
|
|
10
|
+
...{ name: "selectAddTo" },
|
|
11
|
+
__name: "component",
|
|
12
|
+
props: {
|
|
13
|
+
BASE_API: {},
|
|
14
|
+
visible: { type: Boolean },
|
|
15
|
+
title: {},
|
|
16
|
+
outsideSelectData: {},
|
|
17
|
+
defaultSelectedData: {},
|
|
18
|
+
maxSelect: {},
|
|
19
|
+
typeData: {},
|
|
20
|
+
userStore: {},
|
|
21
|
+
compoFilter: { type: Boolean, default: false },
|
|
22
|
+
typeKey: {},
|
|
23
|
+
rid: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:visible", "comfirm"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const props = __props;
|
|
29
|
+
const {
|
|
30
|
+
visible,
|
|
31
|
+
title,
|
|
32
|
+
selectedData,
|
|
33
|
+
hasSelected,
|
|
34
|
+
typeDataController,
|
|
35
|
+
userInfo,
|
|
36
|
+
handleOk,
|
|
37
|
+
handleCancel,
|
|
38
|
+
comfirm,
|
|
39
|
+
HandleOpen,
|
|
40
|
+
HandleClose,
|
|
41
|
+
tabsChange,
|
|
42
|
+
selectedDataChangeHandle,
|
|
43
|
+
loadConfig,
|
|
44
|
+
getUserInfoHandle
|
|
45
|
+
} = useSelectAddToState.useSelectAddToState(props, emit);
|
|
46
|
+
vue.onMounted(() => {
|
|
47
|
+
if (props.userStore) {
|
|
48
|
+
userInfo.value = { BASE_API: props.BASE_API, ...props.userStore };
|
|
49
|
+
} else {
|
|
50
|
+
getUserInfoHandle();
|
|
51
|
+
}
|
|
52
|
+
loadConfig();
|
|
53
|
+
});
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
const _component_storeBox = vue.resolveComponent("storeBox");
|
|
56
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Modal), {
|
|
57
|
+
footer: false,
|
|
58
|
+
"mask-closable": false,
|
|
59
|
+
visible: vue.unref(visible),
|
|
60
|
+
"body-class": "add-content-modal-body",
|
|
61
|
+
"modal-class": "add-content-modal-wrapper",
|
|
62
|
+
"title-align": "start",
|
|
63
|
+
"unmount-on-close": "",
|
|
64
|
+
width: "1020px",
|
|
65
|
+
onCancel: vue.unref(handleCancel),
|
|
66
|
+
onClose: vue.unref(HandleClose),
|
|
67
|
+
onOk: vue.unref(handleOk),
|
|
68
|
+
onOpen: vue.unref(HandleOpen)
|
|
69
|
+
}, {
|
|
70
|
+
title: vue.withCtx(() => [
|
|
71
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(title)), 1)
|
|
72
|
+
]),
|
|
73
|
+
default: vue.withCtx(() => [
|
|
74
|
+
vue.createVNode(vue.unref(webVue.Tabs), {
|
|
75
|
+
class: "content-tabs",
|
|
76
|
+
justify: "",
|
|
77
|
+
"lazy-load": "",
|
|
78
|
+
onTabClick: vue.unref(tabsChange)
|
|
79
|
+
}, {
|
|
80
|
+
default: vue.withCtx(() => {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
return [
|
|
83
|
+
_ctx.rid ? (vue.openBlock(), vue.createBlock(index, {
|
|
84
|
+
key: 0,
|
|
85
|
+
rid: _ctx.rid,
|
|
86
|
+
"default-selected-data": vue.unref(selectedData),
|
|
87
|
+
"max-select": _ctx.maxSelect,
|
|
88
|
+
"user-info": vue.unref(userInfo),
|
|
89
|
+
"type-key": _ctx.typeKey || "",
|
|
90
|
+
"type-data": vue.unref(typeDataController),
|
|
91
|
+
series: ((_a = vue.unref(typeDataController)) == null ? void 0 : _a.docSeries) || "all",
|
|
92
|
+
banner: ((_b = vue.unref(typeDataController)) == null ? void 0 : _b.docBanner) || "all",
|
|
93
|
+
onChange: vue.unref(selectedDataChangeHandle)
|
|
94
|
+
}, {
|
|
95
|
+
store: vue.withCtx(() => [
|
|
96
|
+
vue.createVNode(_component_storeBox, {
|
|
97
|
+
selectData: vue.unref(selectedData),
|
|
98
|
+
"onUpdate:selectData": _cache[0] || (_cache[0] = ($event) => vue.isRef(selectedData) ? selectedData.value = $event : null)
|
|
99
|
+
}, null, 8, ["selectData"])
|
|
100
|
+
]),
|
|
101
|
+
options: vue.withCtx(() => [
|
|
102
|
+
vue.createVNode(vue.unref(webVue.Button), {
|
|
103
|
+
disabled: !vue.unref(hasSelected),
|
|
104
|
+
type: "primary",
|
|
105
|
+
onClick: vue.unref(comfirm)
|
|
106
|
+
}, {
|
|
107
|
+
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
108
|
+
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
109
|
+
])),
|
|
110
|
+
_: 1,
|
|
111
|
+
__: [1]
|
|
112
|
+
}, 8, ["disabled", "onClick"])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["rid", "default-selected-data", "max-select", "user-info", "type-key", "type-data", "series", "banner", "onChange"])) : vue.createCommentVNode("v-if", true)
|
|
116
|
+
];
|
|
117
|
+
}),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, ["onTabClick"])
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["visible", "onCancel", "onClose", "onOk", "onOpen"]);
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
var _selectAddTo = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-4e1a01f6"]]);
|
|
127
|
+
module.exports = _selectAddTo;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
|
+
const _hoisted_1 = { class: "media-filter-container" };
|
|
6
|
+
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
|
|
7
|
+
const _hoisted_3 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "sort-button"
|
|
10
|
+
};
|
|
11
|
+
const _sfc_main = vue.defineComponent({
|
|
12
|
+
...{ name: "MediaFilter" },
|
|
13
|
+
__name: "index",
|
|
14
|
+
props: {
|
|
15
|
+
groupId: {},
|
|
16
|
+
tree: { default: () => [] },
|
|
17
|
+
series: { default: "all" },
|
|
18
|
+
banner: { default: "all" },
|
|
19
|
+
height: {},
|
|
20
|
+
userInfo: {},
|
|
21
|
+
typeKey: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:group_id", "search"],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const column_id = vue.ref("all");
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const filter = vue.ref({
|
|
29
|
+
keywords: "",
|
|
30
|
+
type: "",
|
|
31
|
+
cover_type: "",
|
|
32
|
+
banner: "",
|
|
33
|
+
sort: -1,
|
|
34
|
+
order: "create_time",
|
|
35
|
+
wordState: "precision"
|
|
36
|
+
});
|
|
37
|
+
const wordStateOptions = [
|
|
38
|
+
{
|
|
39
|
+
value: "precision",
|
|
40
|
+
label: "\u7CBE\u51C6\u641C",
|
|
41
|
+
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"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: "blur",
|
|
45
|
+
label: "\u6A21\u7CCA\u641C",
|
|
46
|
+
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"
|
|
47
|
+
}
|
|
48
|
+
];
|
|
49
|
+
const sortMethodOptions = vue.computed(() => {
|
|
50
|
+
return [
|
|
51
|
+
{ value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
|
|
52
|
+
{ value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
|
|
53
|
+
];
|
|
54
|
+
});
|
|
55
|
+
const checkout = (type) => {
|
|
56
|
+
filter.value.wordState = type;
|
|
57
|
+
};
|
|
58
|
+
const handleSearch = () => {
|
|
59
|
+
const params = JSON.parse(JSON.stringify(filter.value));
|
|
60
|
+
if (filter.value.wordState === "precision") {
|
|
61
|
+
params.precise_kw = params.keywords;
|
|
62
|
+
delete params.keywords;
|
|
63
|
+
}
|
|
64
|
+
delete params.wordState;
|
|
65
|
+
emit("search", params);
|
|
66
|
+
};
|
|
67
|
+
vue.watch(
|
|
68
|
+
() => filter.value,
|
|
69
|
+
() => {
|
|
70
|
+
handleSearch();
|
|
71
|
+
},
|
|
72
|
+
{ deep: true }
|
|
73
|
+
);
|
|
74
|
+
vue.watch(
|
|
75
|
+
() => props.groupId,
|
|
76
|
+
(val) => {
|
|
77
|
+
column_id.value = val;
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
vue.watch(
|
|
81
|
+
() => props.banner,
|
|
82
|
+
(val) => {
|
|
83
|
+
filter.value.banner = val === "all" ? "" : val;
|
|
84
|
+
},
|
|
85
|
+
{ immediate: true }
|
|
86
|
+
);
|
|
87
|
+
vue.watch(
|
|
88
|
+
() => column_id.value,
|
|
89
|
+
(val) => {
|
|
90
|
+
emit("update:group_id", val);
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
return (_ctx, _cache) => {
|
|
94
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
95
|
+
vue.createVNode(vue.unref(webVue.Space), { size: "small" }, {
|
|
96
|
+
default: vue.withCtx(() => [
|
|
97
|
+
vue.createVNode(vue.unref(webVue.Input), {
|
|
98
|
+
modelValue: filter.value.keywords,
|
|
99
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.keywords = $event),
|
|
100
|
+
"allow-clear": "",
|
|
101
|
+
class: "filter-item keyword",
|
|
102
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
|
|
103
|
+
style: { width: "240px" },
|
|
104
|
+
onPressEnter: handleSearch
|
|
105
|
+
}, {
|
|
106
|
+
prepend: vue.withCtx(() => [
|
|
107
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
108
|
+
modelValue: filter.value.wordState,
|
|
109
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wordState = $event),
|
|
110
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
111
|
+
onSelect: checkout
|
|
112
|
+
}, {
|
|
113
|
+
default: vue.withCtx(() => [
|
|
114
|
+
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item, index) => {
|
|
115
|
+
return vue.createVNode(vue.unref(webVue.Option), {
|
|
116
|
+
key: index,
|
|
117
|
+
value: item.value,
|
|
118
|
+
label: item.label
|
|
119
|
+
}, {
|
|
120
|
+
default: vue.withCtx(() => [
|
|
121
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
122
|
+
vue.createElementVNode("span", null, vue.toDisplayString(item.label), 1),
|
|
123
|
+
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
124
|
+
effect: "dark",
|
|
125
|
+
content: item.desc,
|
|
126
|
+
position: "right"
|
|
127
|
+
}, {
|
|
128
|
+
default: vue.withCtx(() => [
|
|
129
|
+
vue.createVNode(vue.unref(icon.IconInfoCircle))
|
|
130
|
+
]),
|
|
131
|
+
_: 2
|
|
132
|
+
}, 1032, ["content"])
|
|
133
|
+
])
|
|
134
|
+
]),
|
|
135
|
+
_: 2
|
|
136
|
+
}, 1032, ["value", "label"]);
|
|
137
|
+
}), 64))
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["modelValue"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["modelValue"])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}),
|
|
147
|
+
_ctx.typeKey && _ctx.typeKey !== "ZQ" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
148
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
149
|
+
modelValue: filter.value.order,
|
|
150
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
|
|
151
|
+
class: "filter-item",
|
|
152
|
+
placeholder: "\u53D1\u5E03\u65F6\u95F4"
|
|
153
|
+
}, {
|
|
154
|
+
default: vue.withCtx(() => [
|
|
155
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sortMethodOptions.value, (item) => {
|
|
156
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
157
|
+
key: item.value,
|
|
158
|
+
label: item.label,
|
|
159
|
+
value: item.value
|
|
160
|
+
}, null, 8, ["label", "value"]);
|
|
161
|
+
}), 128))
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["modelValue"])
|
|
165
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
166
|
+
]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
|
+
var api = require("../../../script/api.js");
|
|
6
|
+
const _hoisted_1 = { class: "column-selection-container" };
|
|
7
|
+
const _hoisted_2 = { class: "search-column" };
|
|
8
|
+
const _sfc_main = vue.defineComponent({
|
|
9
|
+
...{ name: "columnTree" },
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
column_id: {},
|
|
13
|
+
tree: {},
|
|
14
|
+
height: {},
|
|
15
|
+
userInfo: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:column_id"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emit = __emit;
|
|
21
|
+
const treeOptions = {
|
|
22
|
+
title: "alias",
|
|
23
|
+
isLeaf: "leaf"
|
|
24
|
+
};
|
|
25
|
+
const selectAlias = vue.ref("\u5168\u90E8\u5185\u5BB9");
|
|
26
|
+
const lastSearchKey = vue.ref(window.localStorage.getItem("lastSearchKey") || "");
|
|
27
|
+
const searchKey = vue.ref("");
|
|
28
|
+
const aTreeRef = vue.ref();
|
|
29
|
+
const treeData = vue.computed(() => {
|
|
30
|
+
if (!searchKey.value)
|
|
31
|
+
return props.tree;
|
|
32
|
+
return searchData(searchKey.value);
|
|
33
|
+
});
|
|
34
|
+
const searchData = (keyword) => {
|
|
35
|
+
const loop = (data) => {
|
|
36
|
+
const result = [];
|
|
37
|
+
data.forEach((item) => {
|
|
38
|
+
var _a;
|
|
39
|
+
if ((_a = item.alias) == null ? void 0 : _a.includes(keyword)) {
|
|
40
|
+
result.push({ ...item });
|
|
41
|
+
} else if (item.children) {
|
|
42
|
+
const filterData = loop(item.children);
|
|
43
|
+
if (filterData.length) {
|
|
44
|
+
result.push({
|
|
45
|
+
...item,
|
|
46
|
+
children: filterData
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
return loop(props.tree);
|
|
54
|
+
};
|
|
55
|
+
const clickLastItem = () => {
|
|
56
|
+
aTreeRef.value.selectNode(lastSearchKey.value, true);
|
|
57
|
+
};
|
|
58
|
+
vue.watch(
|
|
59
|
+
() => props.column_id,
|
|
60
|
+
(val) => {
|
|
61
|
+
setSelectAlias(val);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
const setSelectAlias = async (id) => {
|
|
65
|
+
if (id === "all") {
|
|
66
|
+
selectAlias.value = "\u5168\u90E8\u5185\u5BB9";
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const { code, message } = await api.getCategoryPath(props.userInfo.BASE_API, {
|
|
70
|
+
repo: props.userInfo.repository_id,
|
|
71
|
+
category: id
|
|
72
|
+
});
|
|
73
|
+
if (code === 0) {
|
|
74
|
+
const pathArr = [];
|
|
75
|
+
for (const i of message) {
|
|
76
|
+
pathArr.push(i.category_alias);
|
|
77
|
+
}
|
|
78
|
+
selectAlias.value = pathArr.join("/");
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const AddColumnSelected = (selectedKeys, data) => {
|
|
82
|
+
lastSearchKey.value = selectedKeys[0];
|
|
83
|
+
window.localStorage.setItem("lastSearchKey", lastSearchKey.value);
|
|
84
|
+
emit("update:column_id", data.node.id);
|
|
85
|
+
};
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
88
|
+
vue.createVNode(vue.unref(webVue.Popover), {
|
|
89
|
+
"content-style": { minWidth: "120px" },
|
|
90
|
+
"content-class": "column-selection-popover-content",
|
|
91
|
+
position: "bottom",
|
|
92
|
+
trigger: "click"
|
|
93
|
+
}, {
|
|
94
|
+
content: vue.withCtx(() => [
|
|
95
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
96
|
+
vue.createVNode(vue.unref(webVue.InputSearch), {
|
|
97
|
+
modelValue: searchKey.value,
|
|
98
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
|
|
99
|
+
placeholder: "\u8BF7\u8F93\u5165\u680F\u76EE\u540D\u79F0"
|
|
100
|
+
}, null, 8, ["modelValue"])
|
|
101
|
+
]),
|
|
102
|
+
lastSearchKey.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "last-search-key",
|
|
105
|
+
onClick: clickLastItem
|
|
106
|
+
}, "\u4E0A\u4E00\u6B21\u9009\u62E9 ")) : vue.createCommentVNode("v-if", true),
|
|
107
|
+
vue.createElementVNode("div", {
|
|
108
|
+
style: vue.normalizeStyle({ minHeight: props.height + "px" }),
|
|
109
|
+
class: "column-selection-main"
|
|
110
|
+
}, [
|
|
111
|
+
vue.createElementVNode("div", {
|
|
112
|
+
style: vue.normalizeStyle({ height: props.height + "px" }),
|
|
113
|
+
class: "column-v"
|
|
114
|
+
}, [
|
|
115
|
+
vue.createVNode(vue.unref(webVue.Scrollbar), {
|
|
116
|
+
"outer-class": "column-outer-scrollbar",
|
|
117
|
+
style: { "height": "100%", "overflow": "auto" }
|
|
118
|
+
}, {
|
|
119
|
+
default: vue.withCtx(() => [
|
|
120
|
+
vue.createVNode(vue.unref(webVue.Tree), {
|
|
121
|
+
ref_key: "aTreeRef",
|
|
122
|
+
ref: aTreeRef,
|
|
123
|
+
data: treeData.value,
|
|
124
|
+
"default-expand-all": false,
|
|
125
|
+
"field-names": treeOptions,
|
|
126
|
+
"block-node": "",
|
|
127
|
+
"check-strictly": "",
|
|
128
|
+
onSelect: AddColumnSelected
|
|
129
|
+
}, null, 8, ["data"])
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
})
|
|
133
|
+
], 4)
|
|
134
|
+
], 4)
|
|
135
|
+
]),
|
|
136
|
+
default: vue.withCtx(() => [
|
|
137
|
+
vue.createVNode(vue.unref(webVue.Button), { class: "button" }, {
|
|
138
|
+
default: vue.withCtx(() => [
|
|
139
|
+
vue.createVNode(vue.unref(icon.IconDragDotVertical)),
|
|
140
|
+
vue.createTextVNode(" " + vue.toDisplayString(selectAlias.value) + " ", 1),
|
|
141
|
+
vue.createVNode(vue.unref(icon.IconCaretRight))
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
})
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
})
|
|
148
|
+
]);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,204 @@
|
|
|
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
|
+
typeKey: {},
|
|
37
|
+
rid: {}
|
|
38
|
+
},
|
|
39
|
+
emits: ["change"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const emit = __emit;
|
|
42
|
+
const props = __props;
|
|
43
|
+
const listMinHeight = vue.ref(0);
|
|
44
|
+
const categoryCascaderData = vue.ref([]);
|
|
45
|
+
const scrollPercent = { y: "100%" };
|
|
46
|
+
const {
|
|
47
|
+
selectedData,
|
|
48
|
+
mediaFileData,
|
|
49
|
+
dataLoading,
|
|
50
|
+
group_id,
|
|
51
|
+
page,
|
|
52
|
+
isItemChecked,
|
|
53
|
+
tableCellMouseEnter,
|
|
54
|
+
tableCellMouseLeave,
|
|
55
|
+
selectTableCell,
|
|
56
|
+
selectTableAll,
|
|
57
|
+
search,
|
|
58
|
+
pageChangeHandle,
|
|
59
|
+
loadData,
|
|
60
|
+
loadMore
|
|
61
|
+
} = useViewAllColumnState.useViewAllColumnState(props, emit);
|
|
62
|
+
const { columns, politicalColumns } = useTableColumns.useTableColumns(
|
|
63
|
+
props,
|
|
64
|
+
selectedData,
|
|
65
|
+
isItemChecked
|
|
66
|
+
);
|
|
67
|
+
vue.onMounted(() => {
|
|
68
|
+
loadData();
|
|
69
|
+
});
|
|
70
|
+
return (_ctx, _cache) => {
|
|
71
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
72
|
+
vue.createVNode(index, {
|
|
73
|
+
group_id: vue.unref(group_id),
|
|
74
|
+
"onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => vue.isRef(group_id) ? group_id.value = $event : null),
|
|
75
|
+
height: listMinHeight.value,
|
|
76
|
+
tree: categoryCascaderData.value,
|
|
77
|
+
"type-key": _ctx.typeKey,
|
|
78
|
+
onSearch: vue.unref(search)
|
|
79
|
+
}, null, 8, ["group_id", "height", "tree", "type-key", "onSearch"]),
|
|
80
|
+
_ctx.typeKey && _ctx.typeKey !== "ZQ" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
81
|
+
vue.createVNode(vue.unref(webVue.Table), {
|
|
82
|
+
bordered: false,
|
|
83
|
+
columns: vue.unref(columns),
|
|
84
|
+
data: vue.unref(mediaFileData),
|
|
85
|
+
pagination: false,
|
|
86
|
+
loading: vue.unref(dataLoading),
|
|
87
|
+
scroll: scrollPercent,
|
|
88
|
+
"load-more": vue.unref(loadMore),
|
|
89
|
+
onCellMouseEnter: vue.unref(tableCellMouseEnter),
|
|
90
|
+
onCellMouseLeave: vue.unref(tableCellMouseLeave),
|
|
91
|
+
onRowClick: vue.unref(selectTableCell)
|
|
92
|
+
}, {
|
|
93
|
+
"expand-icon": vue.withCtx(({ expanded }) => [
|
|
94
|
+
!expanded ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconRight), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(icon.IconDown), { key: 1 }))
|
|
95
|
+
]),
|
|
96
|
+
selectTitle: vue.withCtx(() => [
|
|
97
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
98
|
+
"model-value": vue.unref(selectedData).length === vue.unref(mediaFileData).length,
|
|
99
|
+
class: "icon",
|
|
100
|
+
onChange: vue.unref(selectTableAll)
|
|
101
|
+
}, null, 8, ["model-value", "onChange"])
|
|
102
|
+
]),
|
|
103
|
+
select: vue.withCtx(({ record }) => [
|
|
104
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
105
|
+
"model-value": vue.unref(isItemChecked)(vue.unref(selectedData), record),
|
|
106
|
+
class: "icon"
|
|
107
|
+
}, null, 8, ["model-value"])
|
|
108
|
+
]),
|
|
109
|
+
title: vue.withCtx(({ record }) => [
|
|
110
|
+
vue.createElementVNode("span", _hoisted_3, [
|
|
111
|
+
vue.createVNode(component, {
|
|
112
|
+
type: record.series,
|
|
113
|
+
class: "icon",
|
|
114
|
+
doc: true
|
|
115
|
+
}, null, 8, ["type"]),
|
|
116
|
+
vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(record.title || record.alias || "--"), 1)
|
|
117
|
+
])
|
|
118
|
+
]),
|
|
119
|
+
series: vue.withCtx(({ record }) => [
|
|
120
|
+
vue.createVNode(component$1, { item: record }, null, 8, ["item"])
|
|
121
|
+
]),
|
|
122
|
+
duty_editor: vue.withCtx(({ record }) => [
|
|
123
|
+
vue.createElementVNode("span", _hoisted_5, [
|
|
124
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.duty_editor || "--"), 1)
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
pub_time: vue.withCtx(({ record }) => [
|
|
128
|
+
vue.createElementVNode("span", _hoisted_6, [
|
|
129
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(index$1.timeFormat)(record.pub_time)), 1)
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["columns", "data", "loading", "load-more", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
|
|
134
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
135
|
+
vue.createVNode(vue.unref(webVue.Table), {
|
|
136
|
+
bordered: false,
|
|
137
|
+
columns: vue.unref(politicalColumns),
|
|
138
|
+
data: vue.unref(mediaFileData),
|
|
139
|
+
pagination: false,
|
|
140
|
+
loading: vue.unref(dataLoading),
|
|
141
|
+
scroll: scrollPercent,
|
|
142
|
+
onCellMouseEnter: vue.unref(tableCellMouseEnter),
|
|
143
|
+
onCellMouseLeave: vue.unref(tableCellMouseLeave),
|
|
144
|
+
onRowClick: vue.unref(selectTableCell)
|
|
145
|
+
}, {
|
|
146
|
+
selectTitle: vue.withCtx(() => [
|
|
147
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
148
|
+
"model-value": vue.unref(selectedData).length === vue.unref(mediaFileData).length,
|
|
149
|
+
class: "icon",
|
|
150
|
+
onChange: vue.unref(selectTableAll)
|
|
151
|
+
}, null, 8, ["model-value", "onChange"])
|
|
152
|
+
]),
|
|
153
|
+
select: vue.withCtx(({ record }) => [
|
|
154
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
155
|
+
"model-value": vue.unref(isItemChecked)(vue.unref(selectedData), record),
|
|
156
|
+
class: "icon"
|
|
157
|
+
}, null, 8, ["model-value"])
|
|
158
|
+
]),
|
|
159
|
+
name: vue.withCtx(({ record }) => [
|
|
160
|
+
vue.createElementVNode("span", _hoisted_8, [
|
|
161
|
+
vue.createVNode(component, {
|
|
162
|
+
type: record.series,
|
|
163
|
+
class: "icon",
|
|
164
|
+
doc: ""
|
|
165
|
+
}, null, 8, ["type"]),
|
|
166
|
+
vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(record.name || record.alias || "--"), 1)
|
|
167
|
+
])
|
|
168
|
+
]),
|
|
169
|
+
series: vue.withCtx(({ record }) => [
|
|
170
|
+
vue.createVNode(component$1, { item: record }, null, 8, ["item"])
|
|
171
|
+
]),
|
|
172
|
+
position: vue.withCtx(({ record }) => [
|
|
173
|
+
vue.createElementVNode("span", _hoisted_10, [
|
|
174
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.position || "--"), 1)
|
|
175
|
+
])
|
|
176
|
+
]),
|
|
177
|
+
city_alias: vue.withCtx(({ record }) => [
|
|
178
|
+
vue.createElementVNode("span", _hoisted_11, [
|
|
179
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.city_alias || "--"), 1)
|
|
180
|
+
])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["columns", "data", "loading", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
|
|
184
|
+
])),
|
|
185
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
186
|
+
vue.createElementVNode("div", _hoisted_13, [
|
|
187
|
+
vue.renderSlot(_ctx.$slots, "store", {}, void 0, true),
|
|
188
|
+
vue.withDirectives(vue.createVNode(vue.unref(webVue.Pagination), {
|
|
189
|
+
current: vue.unref(page).index,
|
|
190
|
+
"page-size": vue.unref(page).size,
|
|
191
|
+
total: vue.unref(page).total,
|
|
192
|
+
onChange: vue.unref(pageChangeHandle)
|
|
193
|
+
}, null, 8, ["current", "page-size", "total", "onChange"]), [
|
|
194
|
+
[vue.vShow, vue.unref(mediaFileData).length > 0]
|
|
195
|
+
])
|
|
196
|
+
]),
|
|
197
|
+
vue.renderSlot(_ctx.$slots, "options", {}, void 0, true)
|
|
198
|
+
])
|
|
199
|
+
]);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
var ViewAllColumn = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-ac92e0de"]]);
|
|
204
|
+
module.exports = ViewAllColumn;
|