@cmstops/pro-compo 3.9.2 → 3.10.5-nanning.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -76
- package/dist/index.css +97 -4
- package/dist/index.min.css +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/appCenter/script/api.d.ts +5 -5
- package/es/baseFilter/component.js +71 -14
- package/es/baseFilter/components/FilterGroup.js +1 -1
- package/es/baseFilter/components/filterItem.js +1 -1
- package/es/colorPalette/component.js +1 -1
- package/es/contentDetailList/component.js +33 -9
- package/es/contentDetailList/components/Content/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 +173 -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 +173 -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,144 @@
|
|
|
1
|
+
import type { ComponentProps, FilterType, MediaFileType, PageType } from '../types';
|
|
2
|
+
export declare const useViewAllColumnState: (props: ComponentProps, emit: any) => {
|
|
3
|
+
selectedData: import("vue").Ref<{
|
|
4
|
+
id: import("../types").IdType;
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
alias?: string | undefined;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
series: string;
|
|
9
|
+
duty_editor?: string | undefined;
|
|
10
|
+
position?: string | undefined;
|
|
11
|
+
city_alias?: string | undefined;
|
|
12
|
+
pub_time?: string | undefined;
|
|
13
|
+
created_at?: string | undefined;
|
|
14
|
+
updated_at?: string | undefined;
|
|
15
|
+
author_alias?: string | undefined;
|
|
16
|
+
cover?: {
|
|
17
|
+
banner?: boolean | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
catalog: string;
|
|
20
|
+
target_id: import("../types").IdType;
|
|
21
|
+
target_type: number;
|
|
22
|
+
key: import("../types").IdType;
|
|
23
|
+
isLeaf: boolean;
|
|
24
|
+
special_id?: import("../types").IdType | undefined;
|
|
25
|
+
parentName?: string | undefined;
|
|
26
|
+
parentId?: import("../types").IdType | undefined;
|
|
27
|
+
}[], MediaFileType[] | {
|
|
28
|
+
id: import("../types").IdType;
|
|
29
|
+
title?: string | undefined;
|
|
30
|
+
alias?: string | undefined;
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
series: string;
|
|
33
|
+
duty_editor?: string | undefined;
|
|
34
|
+
position?: string | undefined;
|
|
35
|
+
city_alias?: string | undefined;
|
|
36
|
+
pub_time?: string | undefined;
|
|
37
|
+
created_at?: string | undefined;
|
|
38
|
+
updated_at?: string | undefined;
|
|
39
|
+
author_alias?: string | undefined;
|
|
40
|
+
cover?: {
|
|
41
|
+
banner?: boolean | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
catalog: string;
|
|
44
|
+
target_id: import("../types").IdType;
|
|
45
|
+
target_type: number;
|
|
46
|
+
key: import("../types").IdType;
|
|
47
|
+
isLeaf: boolean;
|
|
48
|
+
special_id?: import("../types").IdType | undefined;
|
|
49
|
+
parentName?: string | undefined;
|
|
50
|
+
parentId?: import("../types").IdType | undefined;
|
|
51
|
+
}[]>;
|
|
52
|
+
mediaFileData: import("vue").Ref<{
|
|
53
|
+
id: import("../types").IdType;
|
|
54
|
+
title?: string | undefined;
|
|
55
|
+
alias?: string | undefined;
|
|
56
|
+
name?: string | undefined;
|
|
57
|
+
series: string;
|
|
58
|
+
duty_editor?: string | undefined;
|
|
59
|
+
position?: string | undefined;
|
|
60
|
+
city_alias?: string | undefined;
|
|
61
|
+
pub_time?: string | undefined;
|
|
62
|
+
created_at?: string | undefined;
|
|
63
|
+
updated_at?: string | undefined;
|
|
64
|
+
author_alias?: string | undefined;
|
|
65
|
+
cover?: {
|
|
66
|
+
banner?: boolean | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
catalog: string;
|
|
69
|
+
target_id: import("../types").IdType;
|
|
70
|
+
target_type: number;
|
|
71
|
+
key: import("../types").IdType;
|
|
72
|
+
isLeaf: boolean;
|
|
73
|
+
special_id?: import("../types").IdType | undefined;
|
|
74
|
+
parentName?: string | undefined;
|
|
75
|
+
parentId?: import("../types").IdType | undefined;
|
|
76
|
+
}[], MediaFileType[] | {
|
|
77
|
+
id: import("../types").IdType;
|
|
78
|
+
title?: string | undefined;
|
|
79
|
+
alias?: string | undefined;
|
|
80
|
+
name?: string | undefined;
|
|
81
|
+
series: string;
|
|
82
|
+
duty_editor?: string | undefined;
|
|
83
|
+
position?: string | undefined;
|
|
84
|
+
city_alias?: string | undefined;
|
|
85
|
+
pub_time?: string | undefined;
|
|
86
|
+
created_at?: string | undefined;
|
|
87
|
+
updated_at?: string | undefined;
|
|
88
|
+
author_alias?: string | undefined;
|
|
89
|
+
cover?: {
|
|
90
|
+
banner?: boolean | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
catalog: string;
|
|
93
|
+
target_id: import("../types").IdType;
|
|
94
|
+
target_type: number;
|
|
95
|
+
key: import("../types").IdType;
|
|
96
|
+
isLeaf: boolean;
|
|
97
|
+
special_id?: import("../types").IdType | undefined;
|
|
98
|
+
parentName?: string | undefined;
|
|
99
|
+
parentId?: import("../types").IdType | undefined;
|
|
100
|
+
}[]>;
|
|
101
|
+
filter: import("vue").Ref<{
|
|
102
|
+
keywords?: string | undefined;
|
|
103
|
+
precise_kw?: string | undefined;
|
|
104
|
+
type?: string | undefined;
|
|
105
|
+
state?: string | undefined;
|
|
106
|
+
cover_type?: string | undefined;
|
|
107
|
+
banner?: string | undefined;
|
|
108
|
+
publish_date?: [number, number] | undefined;
|
|
109
|
+
order?: string | undefined;
|
|
110
|
+
sort?: number | undefined;
|
|
111
|
+
where?: string[] | undefined;
|
|
112
|
+
} | null, FilterType | {
|
|
113
|
+
keywords?: string | undefined;
|
|
114
|
+
precise_kw?: string | undefined;
|
|
115
|
+
type?: string | undefined;
|
|
116
|
+
state?: string | undefined;
|
|
117
|
+
cover_type?: string | undefined;
|
|
118
|
+
banner?: string | undefined;
|
|
119
|
+
publish_date?: [number, number] | undefined;
|
|
120
|
+
order?: string | undefined;
|
|
121
|
+
sort?: number | undefined;
|
|
122
|
+
where?: string[] | undefined;
|
|
123
|
+
} | null>;
|
|
124
|
+
dataLoading: import("vue").Ref<boolean, boolean>;
|
|
125
|
+
group_id: import("vue").Ref<string | number, string | number>;
|
|
126
|
+
page: import("vue").Ref<{
|
|
127
|
+
index: number;
|
|
128
|
+
size: number;
|
|
129
|
+
total: number;
|
|
130
|
+
}, PageType | {
|
|
131
|
+
index: number;
|
|
132
|
+
size: number;
|
|
133
|
+
total: number;
|
|
134
|
+
}>;
|
|
135
|
+
isItemChecked: import("vue").ComputedRef<(selectedData: any, item: any) => any>;
|
|
136
|
+
tableCellMouseEnter: (record: any) => void;
|
|
137
|
+
tableCellMouseLeave: (record: any) => void;
|
|
138
|
+
selectTableCell: (record: MediaFileType) => void;
|
|
139
|
+
selectTableAll: (checked: boolean) => void;
|
|
140
|
+
search: (_filter: FilterType) => void;
|
|
141
|
+
pageChangeHandle: (index: number) => void;
|
|
142
|
+
loadData: () => Promise<void>;
|
|
143
|
+
loadMore: (record: MediaFileType, done: (data: MediaFileType[]) => void) => Promise<void>;
|
|
144
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { ref, computed, watch } from "vue";
|
|
2
|
+
import { DEFAULT_BASE_API } from "../../../../config.js";
|
|
3
|
+
import { getCategoryMediaNew, getPoliticals, getMlists } from "../../../script/api.js";
|
|
4
|
+
import useTableBatch from "../../../../hooks/batch.js";
|
|
5
|
+
const useViewAllColumnState = (props, emit) => {
|
|
6
|
+
const _maxSelect = props.maxSelect || 100;
|
|
7
|
+
const selectedData = ref([]);
|
|
8
|
+
const mediaFileData = ref([]);
|
|
9
|
+
const filter = ref(null);
|
|
10
|
+
const dataLoading = ref(false);
|
|
11
|
+
const group_id = ref(0);
|
|
12
|
+
const page = ref({
|
|
13
|
+
index: 1,
|
|
14
|
+
size: 30,
|
|
15
|
+
total: 0
|
|
16
|
+
});
|
|
17
|
+
const tempSelectedData = computed(() => props.defaultSelectedData || []);
|
|
18
|
+
watch(
|
|
19
|
+
() => tempSelectedData.value,
|
|
20
|
+
(val) => {
|
|
21
|
+
selectedData.value = val;
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
const { isItemChecked, tableCellMouseEnter, tableCellMouseLeave } = useTableBatch();
|
|
25
|
+
const selectTableCell = (record) => {
|
|
26
|
+
if (props.typeKey === "series:special_v3" ? record.isLeaf && record.parentId : true) {
|
|
27
|
+
selectData(record);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const selectTableAll = (checked) => {
|
|
31
|
+
if (checked) {
|
|
32
|
+
selectedData.value = [];
|
|
33
|
+
mediaFileData.value.forEach((item) => selectData(item));
|
|
34
|
+
} else {
|
|
35
|
+
selectedData.value = [];
|
|
36
|
+
}
|
|
37
|
+
emitChange();
|
|
38
|
+
};
|
|
39
|
+
const selectData = (record) => {
|
|
40
|
+
addDataToSelectedList(record);
|
|
41
|
+
return true;
|
|
42
|
+
};
|
|
43
|
+
const addDataToSelectedList = async (record) => {
|
|
44
|
+
const index = selectedData.value.findIndex((v) => v.id === record.id);
|
|
45
|
+
if (selectedData.value.length < _maxSelect) {
|
|
46
|
+
if (index === -1) {
|
|
47
|
+
selectedData.value.push(record);
|
|
48
|
+
} else {
|
|
49
|
+
selectedData.value.splice(index, 1);
|
|
50
|
+
}
|
|
51
|
+
emitChange();
|
|
52
|
+
} else {
|
|
53
|
+
if (index === -1) {
|
|
54
|
+
selectedData.value.splice(selectedData.value.length - 1, 1);
|
|
55
|
+
selectedData.value.push(record);
|
|
56
|
+
} else {
|
|
57
|
+
selectedData.value.splice(index, 1);
|
|
58
|
+
}
|
|
59
|
+
emitChange();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const emitChange = () => {
|
|
63
|
+
emit("change", selectedData.value);
|
|
64
|
+
};
|
|
65
|
+
const search = (_filter) => {
|
|
66
|
+
var _a;
|
|
67
|
+
_filter = { ..._filter };
|
|
68
|
+
const where = [];
|
|
69
|
+
_filter.precise_kw && where.push(`precise_kw:${_filter.precise_kw}`);
|
|
70
|
+
_filter.keywords && where.push(`kw:${_filter.keywords}`);
|
|
71
|
+
_filter.type && where.push(`series:${_filter.type}`);
|
|
72
|
+
_filter.state && where.push(`state:${_filter.state}`);
|
|
73
|
+
_filter.cover_type && where.push(`cover_type:${_filter.cover_type}`);
|
|
74
|
+
_filter.banner && where.push(`banner:${_filter.banner}`);
|
|
75
|
+
if (((_a = _filter.publish_date) == null ? void 0 : _a.length) === 2) {
|
|
76
|
+
where.push(`publish_from:${_filter.publish_date[0] / 1e3}`);
|
|
77
|
+
where.push(`publish_to:${_filter.publish_date[1] / 1e3}`);
|
|
78
|
+
}
|
|
79
|
+
_filter.where = where;
|
|
80
|
+
filter.value = _filter;
|
|
81
|
+
page.value.index = 1;
|
|
82
|
+
loadData();
|
|
83
|
+
};
|
|
84
|
+
const pageChangeHandle = (index) => {
|
|
85
|
+
page.value.index = index;
|
|
86
|
+
loadData();
|
|
87
|
+
};
|
|
88
|
+
watch(
|
|
89
|
+
() => group_id.value,
|
|
90
|
+
() => {
|
|
91
|
+
page.value.index = 1;
|
|
92
|
+
loadData();
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
const loadData = async () => {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
const params = {
|
|
98
|
+
limit: page.value.size,
|
|
99
|
+
offset: page.value.size * (page.value.index - 1),
|
|
100
|
+
where: ["state:15|19"]
|
|
101
|
+
};
|
|
102
|
+
params.where.push(props.typeKey);
|
|
103
|
+
if (filter.value) {
|
|
104
|
+
const _filter = filter.value;
|
|
105
|
+
params.order = _filter.order;
|
|
106
|
+
params.sort = _filter.sort;
|
|
107
|
+
if (_filter.where) {
|
|
108
|
+
params.where = [...params.where, ..._filter.where];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
params.where = params.where.join(",");
|
|
112
|
+
dataLoading.value = true;
|
|
113
|
+
try {
|
|
114
|
+
let response;
|
|
115
|
+
if (props.typeKey && props.typeKey !== "ZQ") {
|
|
116
|
+
response = await getCategoryMediaNew(DEFAULT_BASE_API, params);
|
|
117
|
+
} else {
|
|
118
|
+
params.keyword = ((_a = filter.value) == null ? void 0 : _a.precise_kw) || ((_b = filter.value) == null ? void 0 : _b.keywords) || "";
|
|
119
|
+
params.state = 2;
|
|
120
|
+
response = await getPoliticals(DEFAULT_BASE_API, params);
|
|
121
|
+
}
|
|
122
|
+
const { code, message } = response;
|
|
123
|
+
if (code === 0) {
|
|
124
|
+
mediaFileData.value = (message.data || message.datas).map((v) => ({
|
|
125
|
+
...v,
|
|
126
|
+
catalog: "doc",
|
|
127
|
+
target_id: v.id,
|
|
128
|
+
target_type: 3,
|
|
129
|
+
pub_time: v.pub_time || v.created_at,
|
|
130
|
+
update_time: v.updated_at,
|
|
131
|
+
pub_user_alias: v.author_alias,
|
|
132
|
+
key: v.id,
|
|
133
|
+
isLeaf: props.typeKey !== "series:special_v3"
|
|
134
|
+
}));
|
|
135
|
+
page.value.total = message.total || message.count;
|
|
136
|
+
}
|
|
137
|
+
} catch (error) {
|
|
138
|
+
console.error("Failed to load data:", error);
|
|
139
|
+
} finally {
|
|
140
|
+
dataLoading.value = false;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
const loadMore = async (record, done) => {
|
|
144
|
+
try {
|
|
145
|
+
const res = await getMlists(DEFAULT_BASE_API, {
|
|
146
|
+
rid: props.rid,
|
|
147
|
+
gid: record.special_id
|
|
148
|
+
});
|
|
149
|
+
setTimeout(() => {
|
|
150
|
+
done(
|
|
151
|
+
res.message.map((item) => ({
|
|
152
|
+
...item,
|
|
153
|
+
isLeaf: true,
|
|
154
|
+
key: item.id,
|
|
155
|
+
parentName: record.title,
|
|
156
|
+
parentId: record.id
|
|
157
|
+
}))
|
|
158
|
+
);
|
|
159
|
+
}, 2e3);
|
|
160
|
+
} catch (error) {
|
|
161
|
+
done([]);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
return {
|
|
165
|
+
selectedData,
|
|
166
|
+
mediaFileData,
|
|
167
|
+
filter,
|
|
168
|
+
dataLoading,
|
|
169
|
+
group_id,
|
|
170
|
+
page,
|
|
171
|
+
isItemChecked,
|
|
172
|
+
tableCellMouseEnter,
|
|
173
|
+
tableCellMouseLeave,
|
|
174
|
+
selectTableCell,
|
|
175
|
+
selectTableAll,
|
|
176
|
+
search,
|
|
177
|
+
pageChangeHandle,
|
|
178
|
+
loadData,
|
|
179
|
+
loadMore
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
export { useViewAllColumnState };
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
defaultSelectedData: any[];
|
|
10
|
+
userInfo?: any;
|
|
11
|
+
typeKey: string;
|
|
12
|
+
rid: string | number;
|
|
13
|
+
};
|
|
14
|
+
export declare type FilterType = {
|
|
15
|
+
keywords?: string;
|
|
16
|
+
precise_kw?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
state?: string;
|
|
19
|
+
cover_type?: string;
|
|
20
|
+
banner?: string;
|
|
21
|
+
publish_date?: [number, number];
|
|
22
|
+
order?: string;
|
|
23
|
+
sort?: number;
|
|
24
|
+
where?: string[];
|
|
25
|
+
};
|
|
26
|
+
export declare type PageType = {
|
|
27
|
+
index: number;
|
|
28
|
+
size: number;
|
|
29
|
+
total: number;
|
|
30
|
+
};
|
|
31
|
+
export declare type MediaFileType = {
|
|
32
|
+
id: IdType;
|
|
33
|
+
title?: string;
|
|
34
|
+
alias?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
series: string;
|
|
37
|
+
duty_editor?: string;
|
|
38
|
+
position?: string;
|
|
39
|
+
city_alias?: string;
|
|
40
|
+
pub_time?: string;
|
|
41
|
+
created_at?: string;
|
|
42
|
+
updated_at?: string;
|
|
43
|
+
author_alias?: string;
|
|
44
|
+
cover?: {
|
|
45
|
+
banner?: boolean;
|
|
46
|
+
};
|
|
47
|
+
catalog: string;
|
|
48
|
+
target_id: IdType;
|
|
49
|
+
target_type: number;
|
|
50
|
+
key: IdType;
|
|
51
|
+
isLeaf: boolean;
|
|
52
|
+
special_id?: IdType;
|
|
53
|
+
parentName?: string;
|
|
54
|
+
parentId?: IdType;
|
|
55
|
+
};
|
|
@@ -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,23 @@
|
|
|
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
|
+
export { getCategoryMediaNew, getMlists, getPoliticals };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentProps } 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
|
+
onSelectedDataChange: (data: any[]) => void;
|
|
8
|
+
onOk: () => void;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
onComfirm: () => void;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onTabChange: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { computed, ref } from "vue";
|
|
2
|
+
import { DEFAULT_BASE_API } from "../../config.js";
|
|
3
|
+
const useSelectAddToState = (props, emit) => {
|
|
4
|
+
props.BASE_API || DEFAULT_BASE_API;
|
|
5
|
+
const visible = computed({
|
|
6
|
+
get() {
|
|
7
|
+
return props.visible;
|
|
8
|
+
},
|
|
9
|
+
set(value) {
|
|
10
|
+
emit("update:visible", value);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const selectedData = ref([]);
|
|
14
|
+
const title = computed(() => {
|
|
15
|
+
const titleMap = {
|
|
16
|
+
"series:video_album": "\u6DFB\u52A0\u81F3\u89C6\u9891\u5408\u96C6",
|
|
17
|
+
"series:special_v3": "\u6DFB\u52A0\u81F3\u4E13\u9898",
|
|
18
|
+
"series:audio_album": "\u6DFB\u52A0\u81F3\u97F3\u9891\u5408\u96C6",
|
|
19
|
+
"series:article_album": "\u6DFB\u52A0\u81F3\u653F\u60C5\u4EBA\u7269\u76F8\u5173\u62A5\u9053"
|
|
20
|
+
};
|
|
21
|
+
return titleMap[props.typeKey || ""] || "";
|
|
22
|
+
});
|
|
23
|
+
const hasSelected = computed(() => selectedData.value.length > 0);
|
|
24
|
+
const onSelectedDataChange = (data) => {
|
|
25
|
+
selectedData.value = data;
|
|
26
|
+
};
|
|
27
|
+
const onOk = () => {
|
|
28
|
+
visible.value = false;
|
|
29
|
+
};
|
|
30
|
+
const onCancel = () => {
|
|
31
|
+
visible.value = false;
|
|
32
|
+
};
|
|
33
|
+
const onComfirm = () => {
|
|
34
|
+
emit("comfirm", JSON.parse(JSON.stringify(selectedData.value)));
|
|
35
|
+
};
|
|
36
|
+
const onClose = () => {
|
|
37
|
+
selectedData.value = [];
|
|
38
|
+
};
|
|
39
|
+
const onTabChange = () => {
|
|
40
|
+
selectedData.value = [];
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
visible,
|
|
44
|
+
title,
|
|
45
|
+
selectedData,
|
|
46
|
+
hasSelected,
|
|
47
|
+
onSelectedDataChange,
|
|
48
|
+
onOk,
|
|
49
|
+
onCancel,
|
|
50
|
+
onComfirm,
|
|
51
|
+
onClose,
|
|
52
|
+
onTabChange
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
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,37 @@
|
|
|
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 interface ComponentProps {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
rid?: string;
|
|
23
|
+
maxSelect?: number;
|
|
24
|
+
userStore?: any;
|
|
25
|
+
BASE_API?: string;
|
|
26
|
+
typeKey?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare type ConfigData = {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
enable: boolean;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare type UserInfo = {
|
|
35
|
+
BASE_API: string;
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
@@ -56,16 +56,16 @@ const _sfc_main = defineComponent({
|
|
|
56
56
|
onOk: handleOk,
|
|
57
57
|
onCancel: handleCancel
|
|
58
58
|
}, {
|
|
59
|
-
title: withCtx(() => _cache[2] || (_cache[2] = [
|
|
60
|
-
createTextVNode("\u53D1\u5E03\u81F3")
|
|
61
|
-
])),
|
|
59
|
+
title: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
60
|
+
createTextVNode("\u53D1\u5E03\u81F3", -1)
|
|
61
|
+
])]),
|
|
62
62
|
default: withCtx(() => [
|
|
63
63
|
createElementVNode("div", _hoisted_1, [
|
|
64
64
|
createVNode(_sfc_main$1, {
|
|
65
65
|
selectColumnData: selectColumnData.value,
|
|
66
66
|
"onUpdate:selectColumnData": _cache[0] || (_cache[0] = ($event) => selectColumnData.value = $event),
|
|
67
67
|
"add-text": "\u8BBE\u7F6E\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
68
|
-
repository_id:
|
|
68
|
+
repository_id: __props.repository_id,
|
|
69
69
|
BASE_API: unref(BASE_API)
|
|
70
70
|
}, null, 8, ["selectColumnData", "repository_id", "BASE_API"]),
|
|
71
71
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "item-title big" }, "\u540C\u65F6\u53D1\u5E03\u81F3", -1)),
|
|
@@ -74,7 +74,7 @@ const _sfc_main = defineComponent({
|
|
|
74
74
|
"onUpdate:selectColumnWithData": _cache[1] || (_cache[1] = ($event) => selectColumnWithData.value = $event),
|
|
75
75
|
"add-text": "\u8BBE\u7F6E\u540C\u6B65\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
76
76
|
multiple: true,
|
|
77
|
-
repository_id:
|
|
77
|
+
repository_id: __props.repository_id,
|
|
78
78
|
BASE_API: unref(BASE_API)
|
|
79
79
|
}, null, 8, ["selectColumnWithData", "repository_id", "BASE_API"])
|
|
80
80
|
])
|
|
@@ -165,7 +165,7 @@ const _sfc_main = defineComponent({
|
|
|
165
165
|
});
|
|
166
166
|
return (_ctx, _cache) => {
|
|
167
167
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
168
|
-
|
|
168
|
+
__props.multiple ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(multipleShowSelectedArray.value, (item, index) => {
|
|
169
169
|
return openBlock(), createElementBlock("div", {
|
|
170
170
|
key: index,
|
|
171
171
|
class: "column-select"
|
|
@@ -210,7 +210,7 @@ const _sfc_main = defineComponent({
|
|
|
210
210
|
}, {
|
|
211
211
|
default: withCtx(() => [
|
|
212
212
|
createVNode(unref(Tree), {
|
|
213
|
-
checkable:
|
|
213
|
+
checkable: __props.multiple,
|
|
214
214
|
"check-strictly": true,
|
|
215
215
|
data: treeData.value,
|
|
216
216
|
"default-expand-all": false,
|
|
@@ -228,7 +228,7 @@ const _sfc_main = defineComponent({
|
|
|
228
228
|
onClick: withModifiers(($event) => AddColumnSelected(data), ["stop"])
|
|
229
229
|
}, [
|
|
230
230
|
createElementVNode("span", null, toDisplayString(data.alias), 1),
|
|
231
|
-
!
|
|
231
|
+
!__props.multiple && columnSelectedArrayIds.value.includes(data.id) ? (openBlock(), createElementBlock("span", _hoisted_10, [
|
|
232
232
|
createElementVNode("i", null, [
|
|
233
233
|
createVNode(unref(IconCheck))
|
|
234
234
|
])
|
|
@@ -244,18 +244,18 @@ const _sfc_main = defineComponent({
|
|
|
244
244
|
], 4)
|
|
245
245
|
]),
|
|
246
246
|
default: withCtx(() => [
|
|
247
|
-
|
|
247
|
+
__props.multiple ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
248
248
|
createCommentVNode(" \u591A\u9009 "),
|
|
249
249
|
createElementVNode("div", _hoisted_4, [
|
|
250
250
|
createElementVNode("i", null, [
|
|
251
251
|
createVNode(unref(IconPlus))
|
|
252
252
|
]),
|
|
253
|
-
createTextVNode(" " + toDisplayString(
|
|
253
|
+
createTextVNode(" " + toDisplayString(__props.addText ? __props.addText : "\u6DFB\u52A0\u680F\u76EE"), 1)
|
|
254
254
|
])
|
|
255
255
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
256
256
|
createCommentVNode(" \u5355\u9009 "),
|
|
257
257
|
createElementVNode("div", _hoisted_5, [
|
|
258
|
-
!columnSelectedArray.value.length ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(
|
|
258
|
+
!columnSelectedArray.value.length ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(__props.addText ? __props.addText : "\u8BF7\u9009\u62E9"), 1)) : (openBlock(), createBlock(unref(Tooltip), {
|
|
259
259
|
key: 1,
|
|
260
260
|
content: columnSelectedArray.value[0].path,
|
|
261
261
|
placement: "left"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface Params {
|
|
2
2
|
[key: string]: any;
|
|
3
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>>;
|
|
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
6
|
export {};
|