@cmstops/pro-compo 3.9.1-rc.10 → 3.9.1-rc.11
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 +134 -134
- package/dist/index.min.js.map +1 -1
- package/es/appCenter/component.d.ts +0 -0
- package/es/appCenter/index.d.ts +2 -0
- package/es/appCenter/script/api.d.ts +11 -0
- package/es/appCenter/script/apps.d.ts +14 -0
- package/es/appCenter/script/permissionMap.d.ts +6 -0
- package/es/appCenter/script/routeMap.d.ts +4 -0
- package/es/appCenter/style/index.d.ts +1 -0
- 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 +2 -0
- package/es/baseFilter/style/index.d.ts +1 -0
- package/es/baseFilter/useCalcWidth.d.ts +16 -0
- package/es/colorPalette/component.d.ts +0 -0
- package/es/colorPalette/components/colorPicker.d.ts +0 -0
- package/es/colorPalette/index.d.ts +2 -0
- package/es/colorPalette/style/index.d.ts +1 -0
- package/es/components.d.ts +5 -0
- package/es/config.d.ts +4 -0
- package/es/contentDetailList/__demo__/matrix/platform.d.ts +36 -0
- 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/QrcodeView/index.js +2 -4
- package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
- package/es/contentDetailList/index.d.ts +2 -0
- package/es/contentDetailList/script/api.d.ts +6 -0
- package/es/contentDetailList/style/index.d.ts +1 -0
- package/es/contentModal/component.d.ts +0 -0
- package/es/contentModal/component.js +8 -16
- 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/MediaFilter/index.js +1 -2
- 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/components/storeBox/index.js +2 -4
- package/es/contentModal/index.d.ts +2 -0
- package/es/contentModal/script/api.d.ts +18 -0
- package/es/contentModal/style/index.d.ts +1 -0
- package/es/dataTags/component.d.ts +0 -0
- package/es/dataTags/component.js +5 -10
- package/es/dataTags/index.d.ts +2 -0
- package/es/dataTags/style/index.d.ts +1 -0
- package/es/docHistory/component.d.ts +0 -0
- package/es/docHistory/component.js +1 -2
- 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 +2 -0
- package/es/docHistory/scripts/diff.d.ts +1 -0
- package/es/docHistory/scripts/useDocHistory.d.ts +10 -0
- package/es/docHistory/style/index.d.ts +1 -0
- package/es/docHistory/style/index.less +37 -37
- package/es/docPreview/component.d.ts +0 -0
- package/es/docPreview/component.js +5 -10
- package/es/docPreview/components/PreviewIframe.d.ts +0 -0
- package/es/docPreview/index.d.ts +2 -0
- package/es/docPreview/scripts/api.d.ts +1 -0
- package/es/docPreview/scripts/hook.d.ts +33 -0
- package/es/docPreview/style/index.d.ts +1 -0
- package/es/editMetaInfo/component.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.js +2 -4
- package/es/editMetaInfo/index.d.ts +2 -0
- package/es/editMetaInfo/script/api.d.ts +6 -0
- package/es/editMetaInfo/script/restaurants.d.ts +4 -0
- package/es/editMetaInfo/style/index.d.ts +1 -0
- package/es/emptyData/component.d.ts +0 -0
- package/es/emptyData/index.d.ts +2 -0
- package/es/emptyData/style/index.d.ts +1 -0
- package/es/emptyData/svg/add.d.ts +0 -0
- package/es/hooks/assets.d.ts +1 -0
- package/es/hooks/batch.d.ts +8 -0
- package/es/hooks/dialogVisible.d.ts +8 -0
- package/es/hooks/source.d.ts +9 -0
- package/es/hooks/toggle.d.ts +6 -0
- package/es/hooks/useAttachement.d.ts +53 -0
- package/es/hooks/useLocalStorage.d.ts +10 -0
- package/es/hooks/useMediaContext.d.ts +12 -0
- package/es/hooks/usePopper.d.ts +8 -0
- package/es/hooks/useSelection.d.ts +30 -0
- package/es/hooks/useUpload.d.ts +78 -0
- package/es/hooks/user.d.ts +9 -0
- package/es/imageCrop/component.d.ts +0 -0
- package/es/imageCrop/component.js +2 -4
- package/es/imageCrop/index.d.ts +2 -0
- package/es/imageCrop/script/api.d.ts +1 -0
- package/es/imageCrop/style/index.d.ts +1 -0
- package/es/importData/component.d.ts +0 -0
- package/es/importData/component.js +3 -6
- package/es/importData/index.d.ts +2 -0
- package/es/importData/style/index.d.ts +1 -0
- package/es/index.d.ts +31 -0
- package/es/index.js +1 -0
- package/es/mediaFilter/component.d.ts +0 -0
- package/es/mediaFilter/components/DocFilter.d.ts +0 -0
- package/es/mediaFilter/components/DocFilter.js +1 -2
- 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 +3 -0
- package/es/mediaFilter/script/optionsGetter.d.ts +26 -0
- package/es/mediaFilter/script/types.d.ts +16 -0
- package/es/mediaFilter/style/index.d.ts +1 -0
- package/es/mediaView/component.d.ts +0 -0
- package/es/mediaView/index.d.ts +2 -0
- package/es/mediaView/style/index.d.ts +1 -0
- package/es/messageBox/component.d.ts +0 -0
- package/es/messageBox/index.d.ts +2 -0
- package/es/messageBox/list.d.ts +0 -0
- package/es/messageBox/script/api.d.ts +6 -0
- package/es/messageBox/style/index.d.ts +1 -0
- package/es/previousVersion/component.d.ts +0 -0
- package/es/previousVersion/index.d.ts +2 -0
- package/es/previousVersion/script/api.d.ts +15 -0
- package/es/previousVersion/script/tool.d.ts +6 -0
- package/es/previousVersion/style/index.d.ts +1 -0
- package/es/resourceGridList/component.d.ts +0 -0
- package/es/resourceGridList/component.js +2 -4
- package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceGridList/index.d.ts +2 -0
- package/es/resourceGridList/style/index.d.ts +1 -0
- 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/DocAiMediaSelected/index.js +1 -2
- 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/MainContent/index.js +2 -4
- 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 +2 -0
- package/es/resourceModal/script/api.d.ts +25 -0
- package/es/resourceModal/script/mediaSelection.d.ts +14 -0
- package/es/resourceModal/style/index.d.ts +1 -0
- package/es/selectAddTo/component.d.ts +0 -0
- package/es/selectAddTo/component.js +125 -0
- package/es/selectAddTo/component.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 +169 -0
- package/es/selectAddTo/components/ViewAllColumn/columnTree/index.d.ts +0 -0
- package/es/selectAddTo/components/ViewAllColumn/index.d.ts +0 -0
- package/es/selectAddTo/components/ViewAllColumn/index.js +209 -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.d.ts +144 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +193 -0
- package/es/selectAddTo/components/ViewAllColumn/types/index.d.ts +59 -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 +30 -0
- package/es/selectAddTo/script/index.d.ts +2 -0
- package/es/selectAddTo/script/useSelectAddToState.d.ts +21 -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.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 +42 -0
- package/es/selectAvatarList/component.d.ts +0 -0
- package/es/selectAvatarList/index.d.ts +2 -0
- package/es/selectAvatarList/style/index.d.ts +1 -0
- package/es/selectGategory/component.d.ts +0 -0
- package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
- package/es/selectGategory/index.d.ts +2 -0
- package/es/selectGategory/script/api.d.ts +6 -0
- package/es/selectGategory/style/index.d.ts +1 -0
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +268 -0
- package/es/selectResourceModal/__demo__/module/basic.d.ts +299 -0
- package/es/selectResourceModal/component.d.ts +0 -0
- package/es/selectResourceModal/component.js +5 -10
- 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/Upload.js +1 -2
- package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListLocal/index.js +1 -1
- package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +4 -8
- 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/Filter.js +1 -2
- 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 +21 -0
- package/es/selectResourceModal/index.d.ts +2 -0
- package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -0
- package/es/selectResourceModal/scripts/useCompoLf.d.ts +27 -0
- package/es/selectResourceModal/scripts/useResourceSelect.d.ts +7 -0
- package/es/selectResourceModal/scripts/useTabFilter.d.ts +22 -0
- package/es/selectResourceModal/style/index.d.ts +1 -0
- package/es/selectResourceModal/style/index.less +55 -55
- package/es/selectResourceModal/style/list.less +203 -203
- 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 +2 -0
- package/es/selectThumb/style/index.d.ts +1 -0
- package/es/style.css +57 -0
- package/es/thumbCard/component.d.ts +0 -0
- package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
- package/es/thumbCard/index.d.ts +2 -0
- package/es/thumbCard/style/index.d.ts +1 -0
- package/es/typeIcons/component.d.ts +0 -0
- package/es/typeIcons/component.js +1 -1
- package/es/typeIcons/index.d.ts +2 -0
- package/es/typeIcons/style/index.d.ts +1 -0
- 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 +2 -0
- package/es/uploadBefore/script/api.d.ts +16 -0
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +39 -0
- package/es/uploadBefore/script/fileUpload.d.ts +7 -0
- package/es/uploadBefore/script/uploadHooks.d.ts +96 -0
- package/es/uploadBefore/style/index.d.ts +1 -0
- package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
- package/es/uploadStep/component.d.ts +0 -0
- package/es/uploadStep/index.d.ts +2 -0
- package/es/uploadStep/script/fileTypeAdapter.d.ts +20 -0
- package/es/uploadStep/style/index.d.ts +1 -0
- package/es/userAvater/component.d.ts +0 -0
- package/es/userAvater/component.js +1 -2
- package/es/userAvater/index.d.ts +2 -0
- package/es/userAvater/script/api.d.ts +8 -0
- package/es/userAvater/style/index.d.ts +1 -0
- package/es/userDirector/component.d.ts +0 -0
- package/es/userDirector/component.js +1 -2
- package/es/userDirector/components/userTree.d.ts +0 -0
- package/es/userDirector/index.d.ts +2 -0
- package/es/userDirector/script/api.d.ts +10 -0
- package/es/userDirector/style/index.d.ts +1 -0
- package/es/utils/auth.d.ts +5 -0
- package/es/utils/date.d.ts +3 -0
- package/es/utils/doc.d.ts +76 -0
- package/es/utils/filter.d.ts +21 -0
- package/es/utils/index.d.ts +17 -0
- package/es/utils/request.d.ts +9 -0
- package/es/utils/resource.d.ts +4 -0
- package/es/utils/transcodeMedia.d.ts +13 -0
- package/es/utils/tusUpload.d.ts +16 -0
- package/es/utils/typeMap.d.ts +185 -0
- package/es/utils/uploadCatalog.d.ts +1 -0
- package/es/videoThumb/component.d.ts +0 -0
- package/es/videoThumb/index.d.ts +2 -0
- package/es/videoThumb/scripts/api.d.ts +9 -0
- package/es/videoThumb/scripts/useVideoThumbs.d.ts +12 -0
- package/es/videoThumb/style/index.d.ts +1 -0
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -4
- package/lib/contentModal/component.js +8 -16
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -2
- package/lib/contentModal/components/storeBox/index.js +2 -4
- package/lib/dataTags/component.js +5 -10
- package/lib/docHistory/component.js +1 -2
- package/lib/docHistory/style/index.less +37 -37
- package/lib/docPreview/component.js +5 -10
- package/lib/editMetaInfo/components/metaInfoForm.js +2 -4
- package/lib/imageCrop/component.js +2 -4
- package/lib/importData/component.js +3 -6
- package/lib/index.js +2 -0
- package/lib/mediaFilter/components/DocFilter.js +1 -2
- package/lib/resourceGridList/component.js +2 -4
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +1 -2
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -4
- package/lib/selectAddTo/component.js +126 -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/index.js +210 -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 +8 -0
- package/lib/selectAddTo/script/api.js +35 -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 +5 -10
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -2
- package/lib/selectResourceModal/components/List/ListLocal/index.js +1 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +4 -8
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +1 -2
- package/lib/selectResourceModal/style/index.less +55 -55
- package/lib/selectResourceModal/style/list.less +203 -203
- package/lib/typeIcons/component.js +1 -1
- package/lib/userAvater/component.js +1 -2
- package/lib/userDirector/component.js +1 -2
- package/package.json +138 -138
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { ref, computed, watch } from "vue";
|
|
2
|
+
import { Message } from "@arco-design/web-vue";
|
|
3
|
+
import { DEFAULT_BASE_API } from "../../../../config.js";
|
|
4
|
+
import { getCategoryMediaNew, getPoliticals, getMlists } from "../../../script/api.js";
|
|
5
|
+
import useTableBatch from "../../../../hooks/batch.js";
|
|
6
|
+
const useViewAllColumnState = (props, emit) => {
|
|
7
|
+
const _maxSelect = props.maxSelect || 100;
|
|
8
|
+
const selectedData = ref([]);
|
|
9
|
+
const mediaFileData = ref([]);
|
|
10
|
+
const filter = ref(null);
|
|
11
|
+
const dataLoading = ref(false);
|
|
12
|
+
const group_id = ref(0);
|
|
13
|
+
const page = ref({
|
|
14
|
+
index: 1,
|
|
15
|
+
size: 30,
|
|
16
|
+
total: 0
|
|
17
|
+
});
|
|
18
|
+
const tempSelectedData = computed(() => props.defaultSelectedData || []);
|
|
19
|
+
watch(
|
|
20
|
+
() => tempSelectedData.value,
|
|
21
|
+
(val) => {
|
|
22
|
+
selectedData.value = val;
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
const importantBanner = computed(() => {
|
|
26
|
+
if (!props.banner || props.banner === "all")
|
|
27
|
+
return false;
|
|
28
|
+
return !!props.banner;
|
|
29
|
+
});
|
|
30
|
+
const { isItemChecked, tableCellMouseEnter, tableCellMouseLeave } = useTableBatch();
|
|
31
|
+
const selectTableCell = (record) => {
|
|
32
|
+
selectData(record);
|
|
33
|
+
};
|
|
34
|
+
const selectTableAll = (checked) => {
|
|
35
|
+
if (checked) {
|
|
36
|
+
selectedData.value = [];
|
|
37
|
+
mediaFileData.value.forEach((item) => selectData(item));
|
|
38
|
+
} else {
|
|
39
|
+
selectedData.value = [];
|
|
40
|
+
}
|
|
41
|
+
emitChange();
|
|
42
|
+
};
|
|
43
|
+
const selectData = (record) => {
|
|
44
|
+
if (importantBanner.value) {
|
|
45
|
+
const { cover } = record;
|
|
46
|
+
if (!(cover == null ? void 0 : cover.banner)) {
|
|
47
|
+
return Message.warning({ content: "\u8BE5\u5185\u5BB9\u4E0D\u5177\u5907\u72EC\u7ACB\u8F6E\u64AD\u56FE" });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
addDataToSelectedList(record);
|
|
51
|
+
return true;
|
|
52
|
+
};
|
|
53
|
+
const addDataToSelectedList = async (record) => {
|
|
54
|
+
const index = selectedData.value.findIndex((v) => v.id === record.id);
|
|
55
|
+
if (selectedData.value.length < _maxSelect) {
|
|
56
|
+
if (index === -1) {
|
|
57
|
+
selectedData.value.push(record);
|
|
58
|
+
} else {
|
|
59
|
+
selectedData.value.splice(index, 1);
|
|
60
|
+
}
|
|
61
|
+
emitChange();
|
|
62
|
+
} else {
|
|
63
|
+
if (index === -1) {
|
|
64
|
+
selectedData.value.splice(selectedData.value.length - 1, 1);
|
|
65
|
+
selectedData.value.push(record);
|
|
66
|
+
} else {
|
|
67
|
+
selectedData.value.splice(index, 1);
|
|
68
|
+
}
|
|
69
|
+
emitChange();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const emitChange = () => {
|
|
73
|
+
emit("change", selectedData.value);
|
|
74
|
+
};
|
|
75
|
+
const search = (_filter) => {
|
|
76
|
+
var _a;
|
|
77
|
+
_filter = { ..._filter };
|
|
78
|
+
const where = [];
|
|
79
|
+
_filter.precise_kw && where.push(`precise_kw:${_filter.precise_kw}`);
|
|
80
|
+
_filter.keywords && where.push(`kw:${_filter.keywords}`);
|
|
81
|
+
_filter.type && where.push(`series:${_filter.type}`);
|
|
82
|
+
_filter.state && where.push(`state:${_filter.state}`);
|
|
83
|
+
_filter.cover_type && where.push(`cover_type:${_filter.cover_type}`);
|
|
84
|
+
_filter.banner && where.push(`banner:${_filter.banner}`);
|
|
85
|
+
if (((_a = _filter.publish_date) == null ? void 0 : _a.length) === 2) {
|
|
86
|
+
where.push(`publish_from:${_filter.publish_date[0] / 1e3}`);
|
|
87
|
+
where.push(`publish_to:${_filter.publish_date[1] / 1e3}`);
|
|
88
|
+
}
|
|
89
|
+
_filter.where = where;
|
|
90
|
+
filter.value = _filter;
|
|
91
|
+
page.value.index = 1;
|
|
92
|
+
loadData();
|
|
93
|
+
};
|
|
94
|
+
const pageChangeHandle = (index) => {
|
|
95
|
+
page.value.index = index;
|
|
96
|
+
loadData();
|
|
97
|
+
};
|
|
98
|
+
watch(
|
|
99
|
+
() => group_id.value,
|
|
100
|
+
() => {
|
|
101
|
+
page.value.index = 1;
|
|
102
|
+
loadData();
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
const loadData = async () => {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
const params = {
|
|
108
|
+
limit: page.value.size,
|
|
109
|
+
offset: page.value.size * (page.value.index - 1),
|
|
110
|
+
where: ["state:15|19"]
|
|
111
|
+
};
|
|
112
|
+
params.where.push(props.typeKey);
|
|
113
|
+
if (filter.value) {
|
|
114
|
+
const _filter = filter.value;
|
|
115
|
+
params.order = _filter.order;
|
|
116
|
+
params.sort = _filter.sort;
|
|
117
|
+
if (_filter.where) {
|
|
118
|
+
params.where = [...params.where, ..._filter.where];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
params.where = params.where.join(",");
|
|
122
|
+
dataLoading.value = true;
|
|
123
|
+
try {
|
|
124
|
+
let response;
|
|
125
|
+
if (props.typeKey && props.typeKey !== "ZQ") {
|
|
126
|
+
response = await getCategoryMediaNew(DEFAULT_BASE_API, params);
|
|
127
|
+
} else {
|
|
128
|
+
params.keyword = ((_a = filter.value) == null ? void 0 : _a.precise_kw) || ((_b = filter.value) == null ? void 0 : _b.keywords) || "";
|
|
129
|
+
params.state = 2;
|
|
130
|
+
response = await getPoliticals(DEFAULT_BASE_API, params);
|
|
131
|
+
}
|
|
132
|
+
const { code, message } = response;
|
|
133
|
+
if (code === 0) {
|
|
134
|
+
mediaFileData.value = (message.data || message.datas).map((v) => ({
|
|
135
|
+
...v,
|
|
136
|
+
catalog: "doc",
|
|
137
|
+
target_id: v.id,
|
|
138
|
+
target_type: 3,
|
|
139
|
+
pub_time: v.pub_time || v.created_at,
|
|
140
|
+
update_time: v.updated_at,
|
|
141
|
+
pub_user_alias: v.author_alias,
|
|
142
|
+
key: v.id,
|
|
143
|
+
isLeaf: props.typeKey !== "series:special_v3"
|
|
144
|
+
}));
|
|
145
|
+
page.value.total = message.total || message.count;
|
|
146
|
+
}
|
|
147
|
+
} catch (error) {
|
|
148
|
+
console.error("Failed to load data:", error);
|
|
149
|
+
} finally {
|
|
150
|
+
dataLoading.value = false;
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const loadMore = async (record, done) => {
|
|
154
|
+
try {
|
|
155
|
+
const res = await getMlists(DEFAULT_BASE_API, {
|
|
156
|
+
rid: props.rid,
|
|
157
|
+
gid: record.special_id
|
|
158
|
+
});
|
|
159
|
+
setTimeout(() => {
|
|
160
|
+
done(
|
|
161
|
+
res.message.map((item) => ({
|
|
162
|
+
...item,
|
|
163
|
+
isLeaf: true,
|
|
164
|
+
key: item.id,
|
|
165
|
+
parentName: record.title,
|
|
166
|
+
parentId: record.id
|
|
167
|
+
}))
|
|
168
|
+
);
|
|
169
|
+
}, 2e3);
|
|
170
|
+
} catch (error) {
|
|
171
|
+
console.error("Failed to load more data:", error);
|
|
172
|
+
done([]);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
return {
|
|
176
|
+
selectedData,
|
|
177
|
+
mediaFileData,
|
|
178
|
+
filter,
|
|
179
|
+
dataLoading,
|
|
180
|
+
group_id,
|
|
181
|
+
page,
|
|
182
|
+
isItemChecked,
|
|
183
|
+
tableCellMouseEnter,
|
|
184
|
+
tableCellMouseLeave,
|
|
185
|
+
selectTableCell,
|
|
186
|
+
selectTableAll,
|
|
187
|
+
search,
|
|
188
|
+
pageChangeHandle,
|
|
189
|
+
loadData,
|
|
190
|
+
loadMore
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export { useViewAllColumnState };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare type IdType = string | number;
|
|
2
|
+
export declare type CascaderDataType = {
|
|
3
|
+
id: IdType;
|
|
4
|
+
alias: string;
|
|
5
|
+
children: CascaderDataType[];
|
|
6
|
+
leaf?: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
export declare type ComponentProps = {
|
|
9
|
+
maxSelect?: number;
|
|
10
|
+
defaultSelectedData: any[];
|
|
11
|
+
typeData: any;
|
|
12
|
+
series: string;
|
|
13
|
+
banner: string;
|
|
14
|
+
userInfo?: any;
|
|
15
|
+
typeKey: string;
|
|
16
|
+
rid: string | number;
|
|
17
|
+
};
|
|
18
|
+
export declare type FilterType = {
|
|
19
|
+
keywords?: string;
|
|
20
|
+
precise_kw?: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
state?: string;
|
|
23
|
+
cover_type?: string;
|
|
24
|
+
banner?: string;
|
|
25
|
+
publish_date?: [number, number];
|
|
26
|
+
order?: string;
|
|
27
|
+
sort?: number;
|
|
28
|
+
where?: string[];
|
|
29
|
+
};
|
|
30
|
+
export declare type PageType = {
|
|
31
|
+
index: number;
|
|
32
|
+
size: number;
|
|
33
|
+
total: number;
|
|
34
|
+
};
|
|
35
|
+
export declare type MediaFileType = {
|
|
36
|
+
id: IdType;
|
|
37
|
+
title?: string;
|
|
38
|
+
alias?: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
series: string;
|
|
41
|
+
duty_editor?: string;
|
|
42
|
+
position?: string;
|
|
43
|
+
city_alias?: string;
|
|
44
|
+
pub_time?: string;
|
|
45
|
+
created_at?: string;
|
|
46
|
+
updated_at?: string;
|
|
47
|
+
author_alias?: string;
|
|
48
|
+
cover?: {
|
|
49
|
+
banner?: boolean;
|
|
50
|
+
};
|
|
51
|
+
catalog: string;
|
|
52
|
+
target_id: IdType;
|
|
53
|
+
target_type: number;
|
|
54
|
+
key: IdType;
|
|
55
|
+
isLeaf: boolean;
|
|
56
|
+
special_id?: IdType;
|
|
57
|
+
parentName?: string;
|
|
58
|
+
parentId?: IdType;
|
|
59
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
export declare function getCategoryPath(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
export declare function getCategoryMediaNew(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
export declare function checkCommitFulfillment(BASE_API: string, params?: Params): Promise<boolean>;
|
|
8
|
+
export declare function searchMlists(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
+
export declare function searchMpaccount(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
export declare function getBroadcastList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
+
export declare function getEqxiuList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
export declare function getMpContentList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
export declare function getRevealContent(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
+
export declare function getPoliticals(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
|
+
export declare function getMlists(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
|
+
export declare function getConfigurationNew(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import request from "../../utils/request.js";
|
|
2
|
+
function getCategoryMediaNew(BASE_API, params) {
|
|
3
|
+
return request(BASE_API, {
|
|
4
|
+
url: `/poplar/v3/s/documents`,
|
|
5
|
+
method: "get",
|
|
6
|
+
params
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function getPoliticals(BASE_API, params) {
|
|
10
|
+
return request(BASE_API, {
|
|
11
|
+
url: "/poplar/v2/politics/list",
|
|
12
|
+
method: "get",
|
|
13
|
+
params
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function getMlists(BASE_API, params) {
|
|
17
|
+
return request(BASE_API, {
|
|
18
|
+
url: `/poplar/v2/mlists`,
|
|
19
|
+
method: "get",
|
|
20
|
+
params
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function getConfigurationNew(BASE_API, params) {
|
|
24
|
+
return request(BASE_API, {
|
|
25
|
+
url: "/poplar/v2/configuration",
|
|
26
|
+
method: "get",
|
|
27
|
+
params
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export { getCategoryMediaNew, getConfigurationNew, getMlists, getPoliticals };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComponentProps, ConfigData, TypeData } from '../types';
|
|
2
|
+
export declare const useSelectAddToState: (props: ComponentProps, emit: any) => {
|
|
3
|
+
visible: import("vue").WritableComputedRef<boolean, unknown>;
|
|
4
|
+
title: import("vue").ComputedRef<string>;
|
|
5
|
+
selectedData: import("vue").Ref<any[], any[]>;
|
|
6
|
+
hasSelected: import("vue").ComputedRef<boolean>;
|
|
7
|
+
typeDataController: import("vue").ComputedRef<TypeData>;
|
|
8
|
+
userInfo: import("vue").Ref<any, any>;
|
|
9
|
+
configData: import("vue").Ref<ConfigData, ConfigData>;
|
|
10
|
+
setVisible: (bool: boolean) => void;
|
|
11
|
+
selectedDataChangeHandle: (data: any[]) => void;
|
|
12
|
+
handleOk: () => void;
|
|
13
|
+
handleCancel: () => void;
|
|
14
|
+
comfirm: () => void;
|
|
15
|
+
HandleOpen: () => void;
|
|
16
|
+
HandleClose: () => void;
|
|
17
|
+
tabsChange: () => void;
|
|
18
|
+
loadConfig: () => Promise<void>;
|
|
19
|
+
checkServiceEnable: (key: string) => boolean;
|
|
20
|
+
getUserInfoHandle: () => Promise<void>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { computed, ref } from "vue";
|
|
2
|
+
import { getConfigurationNew } from "./api.js";
|
|
3
|
+
import { DEFAULT_BASE_API } from "../../config.js";
|
|
4
|
+
import useLoadUserInfo from "../../hooks/user.js";
|
|
5
|
+
const useSelectAddToState = (props, emit) => {
|
|
6
|
+
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
7
|
+
const visible = computed({
|
|
8
|
+
get() {
|
|
9
|
+
return props.visible;
|
|
10
|
+
},
|
|
11
|
+
set(value) {
|
|
12
|
+
setVisible(value);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const selectedData = ref([]);
|
|
16
|
+
const configData = ref({});
|
|
17
|
+
const { userInfo, getUserInfoHandle } = useLoadUserInfo(BASE_API);
|
|
18
|
+
const title = computed(() => {
|
|
19
|
+
const titleMap = {
|
|
20
|
+
"series:video_album": "\u6DFB\u52A0\u81F3\u89C6\u9891\u5408\u96C6",
|
|
21
|
+
"series:special_v3": "\u6DFB\u52A0\u81F3\u4E13\u9898",
|
|
22
|
+
"series:audio_album": "\u6DFB\u52A0\u81F3\u97F3\u9891\u5408\u96C6",
|
|
23
|
+
"series:article_album": "\u6DFB\u52A0\u81F3\u653F\u60C5\u4EBA\u7269\u76F8\u5173\u62A5\u9053"
|
|
24
|
+
};
|
|
25
|
+
return titleMap[props.typeKey || ""] || "";
|
|
26
|
+
});
|
|
27
|
+
const hasSelected = computed(() => selectedData.value.length > 0);
|
|
28
|
+
const typeDataController = computed(() => {
|
|
29
|
+
if (!props.typeData)
|
|
30
|
+
return {};
|
|
31
|
+
try {
|
|
32
|
+
return JSON.parse(JSON.stringify(props.typeData));
|
|
33
|
+
} catch (e) {
|
|
34
|
+
console.warn("Failed to parse typeData:", e);
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const setVisible = (bool) => {
|
|
39
|
+
emit("update:visible", bool);
|
|
40
|
+
};
|
|
41
|
+
const selectedDataChangeHandle = (data) => {
|
|
42
|
+
selectedData.value = data;
|
|
43
|
+
};
|
|
44
|
+
const handleOk = () => {
|
|
45
|
+
setVisible(false);
|
|
46
|
+
};
|
|
47
|
+
const handleCancel = () => {
|
|
48
|
+
setVisible(false);
|
|
49
|
+
};
|
|
50
|
+
const comfirm = () => {
|
|
51
|
+
emit("comfirm", JSON.parse(JSON.stringify(selectedData.value)));
|
|
52
|
+
};
|
|
53
|
+
const HandleOpen = () => {
|
|
54
|
+
selectedData.value = props.defaultSelectedData || [];
|
|
55
|
+
};
|
|
56
|
+
const HandleClose = () => {
|
|
57
|
+
selectedData.value = [];
|
|
58
|
+
};
|
|
59
|
+
const tabsChange = () => {
|
|
60
|
+
selectedData.value = [];
|
|
61
|
+
};
|
|
62
|
+
const loadConfig = async () => {
|
|
63
|
+
var _a;
|
|
64
|
+
try {
|
|
65
|
+
const res = await getConfigurationNew(BASE_API, {
|
|
66
|
+
module: "third_party_services"
|
|
67
|
+
});
|
|
68
|
+
if (res.code === 0 && ((_a = res.message) == null ? void 0 : _a.length)) {
|
|
69
|
+
res.message.forEach((item) => {
|
|
70
|
+
configData.value[item.key] = JSON.parse(item.value);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
} catch (error) {
|
|
74
|
+
console.error("Failed to load configuration:", error);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const checkServiceEnable = (key) => {
|
|
78
|
+
const data = configData.value[key];
|
|
79
|
+
if (!data)
|
|
80
|
+
return false;
|
|
81
|
+
if (!data.enable && typeof data.enable !== "undefined")
|
|
82
|
+
return false;
|
|
83
|
+
return true;
|
|
84
|
+
};
|
|
85
|
+
return {
|
|
86
|
+
visible,
|
|
87
|
+
title,
|
|
88
|
+
selectedData,
|
|
89
|
+
hasSelected,
|
|
90
|
+
typeDataController,
|
|
91
|
+
userInfo,
|
|
92
|
+
configData,
|
|
93
|
+
setVisible,
|
|
94
|
+
selectedDataChangeHandle,
|
|
95
|
+
handleOk,
|
|
96
|
+
handleCancel,
|
|
97
|
+
comfirm,
|
|
98
|
+
HandleOpen,
|
|
99
|
+
HandleClose,
|
|
100
|
+
tabsChange,
|
|
101
|
+
loadConfig,
|
|
102
|
+
checkServiceEnable,
|
|
103
|
+
getUserInfoHandle
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export { useSelectAddToState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare type TypeData = {
|
|
2
|
+
addDoc?: boolean;
|
|
3
|
+
docSeries?: string;
|
|
4
|
+
docBanner?: string;
|
|
5
|
+
addCompo?: boolean;
|
|
6
|
+
compoType?: string;
|
|
7
|
+
addContentList?: boolean;
|
|
8
|
+
contentListType?: string;
|
|
9
|
+
addILive?: boolean;
|
|
10
|
+
iliveType?: string;
|
|
11
|
+
addMpAccount?: boolean;
|
|
12
|
+
MpAccountType?: string;
|
|
13
|
+
addMpContent?: boolean;
|
|
14
|
+
mpContentType?: string;
|
|
15
|
+
addFunhd?: boolean;
|
|
16
|
+
funhdType?: string;
|
|
17
|
+
addCourse?: boolean;
|
|
18
|
+
addDejin?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare type ComponentProps = {
|
|
21
|
+
BASE_API?: string;
|
|
22
|
+
visible: boolean;
|
|
23
|
+
title?: string;
|
|
24
|
+
outsideSelectData?: any[];
|
|
25
|
+
defaultSelectedData?: any[];
|
|
26
|
+
maxSelect?: number;
|
|
27
|
+
typeData?: TypeData;
|
|
28
|
+
userStore?: any;
|
|
29
|
+
compoFilter?: boolean;
|
|
30
|
+
typeKey?: string;
|
|
31
|
+
rid?: string | number;
|
|
32
|
+
};
|
|
33
|
+
export declare type ConfigData = {
|
|
34
|
+
[key: string]: {
|
|
35
|
+
enable: boolean;
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare type UserInfo = {
|
|
40
|
+
BASE_API: string;
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getCategoryPath(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|