@cmstops/pro-compo 0.1.9 → 0.1.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/dist/index.css +949 -0
- package/dist/index.min.css +1 -1
- package/es/_virtual/plugin-vue_export-helper.js +7 -0
- package/es/config.d.ts +2 -0
- package/es/config.js +5 -3
- package/es/contentDetailList/component.d.ts +0 -0
- package/es/contentDetailList/component.js +89 -0
- package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/CompoItem/index.js +76 -0
- package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/ContentListItem/index.js +99 -0
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +71 -0
- package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/index.js +199 -0
- package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +184 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +131 -0
- package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/LiveItem/index.js +82 -0
- package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/MaccountItem/index.js +84 -0
- package/es/contentDetailList/components/Content/MaccountItem/temp/user.js +2 -0
- package/es/contentDetailList/components/Content/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/index.js +308 -0
- package/es/contentDetailList/components/Doc/index.d.ts +0 -0
- package/es/contentDetailList/components/Doc/index.js +58 -0
- package/es/contentDetailList/index.d.ts +2 -0
- package/es/contentDetailList/index.js +7 -0
- package/es/contentDetailList/scripts/data.d.ts +254 -0
- package/es/contentDetailList/scripts/index.d.ts +58 -0
- package/es/contentDetailList/scripts/index.js +137 -0
- package/es/contentDetailList/style/ComoItem.less +106 -0
- package/es/contentDetailList/style/Content.less +49 -0
- package/es/contentDetailList/style/ContentListItem.less +131 -0
- package/es/contentDetailList/style/Doc.less +8 -0
- package/es/contentDetailList/style/DocItem.less +145 -0
- package/es/contentDetailList/style/DocTags.less +63 -0
- package/es/contentDetailList/style/KongoNavItem.less +110 -0
- package/es/contentDetailList/style/LiveItem.less +115 -0
- package/es/contentDetailList/style/MaccountItem.less +114 -0
- package/es/contentDetailList/style/css.js +1 -0
- package/es/contentDetailList/style/index.css +683 -0
- package/es/contentDetailList/style/index.d.ts +1 -0
- package/es/contentDetailList/style/index.js +1 -0
- package/es/contentDetailList/style/index.less +9 -0
- package/es/contentModal/component.js +2 -1
- package/es/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/es/contentModal/components/CompoList/index.js +3 -2
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +2 -1
- package/es/contentModal/components/ViewAllColumn/index.js +2 -1
- package/es/contentModal/components/storeBox/index.js +2 -1
- package/es/emptyData/component.d.ts +0 -0
- package/es/emptyData/component.js +48 -0
- package/es/emptyData/index.d.ts +2 -0
- package/es/emptyData/index.js +7 -0
- package/es/emptyData/style/css.js +1 -0
- package/es/emptyData/style/index.css +26 -0
- package/es/emptyData/style/index.d.ts +1 -0
- package/es/emptyData/style/index.js +1 -0
- package/es/emptyData/style/index.less +30 -0
- package/es/hooks/toggle.d.ts +6 -0
- package/es/hooks/toggle.js +9 -0
- package/es/hooks/user.js +2 -0
- package/es/index.css +949 -0
- package/es/index.d.ts +6 -0
- package/es/index.js +6 -0
- package/es/index.less +6 -0
- package/es/mediaFilter/component.d.ts +0 -0
- package/es/mediaFilter/component.js +41 -0
- package/es/mediaFilter/components/DocFilter.d.ts +0 -0
- package/es/mediaFilter/components/DocFilter.js +251 -0
- package/es/mediaFilter/components/DocFilter.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
- package/es/mediaFilter/components/FilterGroup.js +187 -0
- package/es/mediaFilter/components/FilterGroup.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/mediaFilter/components/FilterItem.d.ts +0 -0
- package/es/mediaFilter/components/FilterItem.js +116 -0
- package/es/mediaFilter/components/FilterItem.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/mediaFilter/components/MediaFilter.js +8 -0
- package/es/mediaFilter/components/MpAccountFilter.js +8 -0
- package/es/mediaFilter/components/MpContentFilter.js +8 -0
- package/es/mediaFilter/index.d.ts +2 -0
- package/es/mediaFilter/index.js +7 -0
- package/es/mediaFilter/script/optionsGetter.d.ts +26 -0
- package/es/mediaFilter/script/optionsGetter.js +82 -0
- package/es/mediaFilter/style/css.js +1 -0
- package/es/mediaFilter/style/index.css +4 -0
- package/es/mediaFilter/style/index.d.ts +1 -0
- package/es/mediaFilter/style/index.js +1 -0
- package/es/mediaFilter/style/index.less +4 -0
- package/es/messageBox/list.js +2 -1
- package/es/previousVersion/component.js +2 -1
- package/es/previousVersion/style/index.less +1 -0
- package/es/resourceModal/component.js +2 -1
- package/es/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -3
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/index.js +3 -2
- package/es/resourceModal/script/filter.d.ts +1 -0
- package/es/resourceModal/script/filter.js +15 -2
- package/es/selectAvatarList/component.d.ts +0 -0
- package/es/selectAvatarList/component.js +77 -0
- package/es/selectAvatarList/index.d.ts +2 -0
- package/es/selectAvatarList/index.js +7 -0
- package/es/selectAvatarList/style/css.js +1 -0
- package/es/selectAvatarList/style/index.css +4 -0
- package/es/selectAvatarList/style/index.d.ts +1 -0
- package/es/selectAvatarList/style/index.js +1 -0
- package/es/selectAvatarList/style/index.less +4 -0
- package/es/selectGategory/component.js +5 -12
- package/es/selectGategory/components/ColumnSelection/index.js +5 -1
- package/es/style.css +89 -0
- package/es/uploadBefore/component.d.ts +0 -0
- package/es/uploadBefore/component.js +81 -0
- package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
- package/es/uploadBefore/components/UploadBefore.js +228 -0
- package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
- package/es/uploadBefore/components/UploadForClick.js +28 -0
- package/es/uploadBefore/index.d.ts +2 -0
- package/es/uploadBefore/index.js +7 -0
- package/es/uploadBefore/script/api.d.ts +16 -0
- package/es/uploadBefore/script/api.js +27 -0
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +39 -0
- package/es/uploadBefore/script/fileTypeAdapter.js +48 -0
- package/es/uploadBefore/script/fileUpload.d.ts +7 -0
- package/es/uploadBefore/script/fileUpload.js +39 -0
- package/es/uploadBefore/script/uploadHooks.d.ts +55 -0
- package/es/uploadBefore/script/uploadHooks.js +33 -0
- package/es/uploadBefore/style/css.js +1 -0
- package/es/uploadBefore/style/index.css +111 -0
- package/es/uploadBefore/style/index.d.ts +1 -0
- package/es/uploadBefore/style/index.js +1 -0
- package/es/uploadBefore/style/index.less +144 -0
- package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
- package/es/uploadStep/component.js +139 -4
- package/es/uploadStep/script/fileTypeAdapter.d.ts +20 -0
- package/es/uploadStep/style/index.css +113 -0
- package/es/uploadStep/style/index.less +148 -0
- package/es/userDirector/component.d.ts +0 -0
- package/es/userDirector/component.js +200 -0
- package/es/userDirector/index.d.ts +2 -0
- package/es/userDirector/index.js +7 -0
- package/es/userDirector/script/api.d.ts +9 -0
- package/es/userDirector/script/api.js +32 -0
- package/es/userDirector/style/css.js +1 -0
- package/es/userDirector/style/index.css +8 -0
- package/es/userDirector/style/index.d.ts +1 -0
- package/es/userDirector/style/index.js +1 -0
- package/es/userDirector/style/index.less +8 -0
- package/es/utils/doc.d.ts +18 -16
- package/es/utils/doc.js +52 -0
- package/es/utils/index.d.ts +8 -0
- package/es/utils/index.js +22 -1
- package/es/utils/tusUpload.d.ts +8 -0
- package/es/utils/tusUpload.js +52 -0
- package/lib/_virtual/plugin-vue_export-helper.js +8 -0
- package/lib/config.js +6 -2
- package/lib/contentDetailList/component.js +90 -0
- package/lib/contentDetailList/components/Content/CompoItem/index.js +77 -0
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +100 -0
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +72 -0
- package/lib/contentDetailList/components/Content/DocItem/index.js +200 -0
- package/lib/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +185 -0
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +132 -0
- package/lib/contentDetailList/components/Content/LiveItem/index.js +83 -0
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +85 -0
- package/lib/contentDetailList/components/Content/MaccountItem/temp/user.js +3 -0
- package/lib/contentDetailList/components/Content/index.js +313 -0
- package/lib/contentDetailList/components/Doc/index.js +59 -0
- package/lib/contentDetailList/index.js +8 -0
- package/lib/contentDetailList/scripts/index.js +153 -0
- package/lib/contentDetailList/style/ComoItem.less +106 -0
- package/lib/contentDetailList/style/Content.less +49 -0
- package/lib/contentDetailList/style/ContentListItem.less +131 -0
- package/lib/contentDetailList/style/Doc.less +8 -0
- package/lib/contentDetailList/style/DocItem.less +145 -0
- package/lib/contentDetailList/style/DocTags.less +63 -0
- package/lib/contentDetailList/style/KongoNavItem.less +110 -0
- package/lib/contentDetailList/style/LiveItem.less +115 -0
- package/lib/contentDetailList/style/MaccountItem.less +114 -0
- package/lib/contentDetailList/style/css.js +2 -0
- package/lib/contentDetailList/style/index.css +683 -0
- package/lib/contentDetailList/style/index.js +2 -0
- package/lib/contentDetailList/style/index.less +9 -0
- package/lib/contentModal/component.js +2 -1
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/lib/contentModal/components/CompoList/index.js +3 -2
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +2 -1
- package/lib/contentModal/components/ViewAllColumn/index.js +2 -1
- package/lib/contentModal/components/storeBox/index.js +2 -1
- package/lib/emptyData/component.js +49 -0
- package/lib/emptyData/index.js +8 -0
- package/lib/emptyData/style/css.js +2 -0
- package/lib/emptyData/style/index.css +26 -0
- package/lib/emptyData/style/index.js +2 -0
- package/lib/emptyData/style/index.less +30 -0
- package/lib/hooks/toggle.js +11 -0
- package/lib/hooks/user.js +2 -0
- package/lib/index.css +949 -0
- package/lib/index.js +12 -0
- package/lib/index.less +6 -0
- package/lib/mediaFilter/component.js +42 -0
- package/lib/mediaFilter/components/DocFilter.js +252 -0
- package/lib/mediaFilter/components/DocFilter.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/mediaFilter/components/FilterGroup.js +188 -0
- package/lib/mediaFilter/components/FilterGroup.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/mediaFilter/components/FilterItem.js +117 -0
- package/lib/mediaFilter/components/FilterItem.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/mediaFilter/components/MediaFilter.js +9 -0
- package/lib/mediaFilter/components/MpAccountFilter.js +9 -0
- package/lib/mediaFilter/components/MpContentFilter.js +9 -0
- package/lib/mediaFilter/index.js +8 -0
- package/lib/mediaFilter/script/optionsGetter.js +88 -0
- package/lib/mediaFilter/style/css.js +2 -0
- package/lib/mediaFilter/style/index.css +4 -0
- package/lib/mediaFilter/style/index.js +2 -0
- package/lib/mediaFilter/style/index.less +4 -0
- package/lib/messageBox/list.js +2 -1
- package/lib/previousVersion/component.js +2 -1
- package/lib/previousVersion/style/index.less +1 -0
- package/lib/resourceModal/component.js +2 -1
- package/lib/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -3
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/index.js +3 -2
- package/lib/resourceModal/script/filter.js +14 -0
- package/lib/selectAvatarList/component.js +78 -0
- package/lib/selectAvatarList/index.js +8 -0
- package/lib/selectAvatarList/style/css.js +2 -0
- package/lib/selectAvatarList/style/index.css +4 -0
- package/lib/selectAvatarList/style/index.js +2 -0
- package/lib/selectAvatarList/style/index.less +4 -0
- package/lib/selectGategory/component.js +4 -11
- package/lib/selectGategory/components/ColumnSelection/index.js +5 -1
- package/lib/uploadBefore/component.js +82 -0
- package/lib/uploadBefore/components/UploadBefore.js +229 -0
- package/lib/uploadBefore/components/UploadForClick.js +29 -0
- package/lib/uploadBefore/index.js +8 -0
- package/lib/uploadBefore/script/api.js +32 -0
- package/lib/uploadBefore/script/fileTypeAdapter.js +53 -0
- package/lib/uploadBefore/script/fileUpload.js +42 -0
- package/lib/uploadBefore/script/uploadHooks.js +36 -0
- package/lib/uploadBefore/style/css.js +2 -0
- package/lib/uploadBefore/style/index.css +111 -0
- package/lib/uploadBefore/style/index.js +2 -0
- package/lib/uploadBefore/style/index.less +144 -0
- package/lib/uploadStep/component.js +138 -3
- package/lib/uploadStep/style/index.css +113 -0
- package/lib/uploadStep/style/index.less +148 -0
- package/lib/userDirector/component.js +201 -0
- package/lib/userDirector/index.js +8 -0
- package/lib/userDirector/script/api.js +38 -0
- package/lib/userDirector/style/css.js +2 -0
- package/lib/userDirector/style/index.css +8 -0
- package/lib/userDirector/style/index.js +2 -0
- package/lib/userDirector/style/index.less +8 -0
- package/lib/utils/doc.js +59 -0
- package/lib/utils/index.js +23 -0
- package/lib/utils/tusUpload.js +75 -0
- package/package.json +8 -1
|
@@ -1,14 +1,149 @@
|
|
|
1
1
|
"use strict";
|
|
2
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 toggle = require("../hooks/toggle.js");
|
|
7
|
+
const _hoisted_1 = { class: "panel_header" };
|
|
8
|
+
const _hoisted_2 = { class: "title" };
|
|
9
|
+
const _hoisted_3 = { class: "opt" };
|
|
10
|
+
const _hoisted_4 = { class: "panel_column flex-3" };
|
|
11
|
+
const _hoisted_5 = { class: "media_alias ellips" };
|
|
12
|
+
const _hoisted_6 = { class: "panel_column percent flex-1" };
|
|
13
|
+
var stateEnum = /* @__PURE__ */ ((stateEnum2) => {
|
|
14
|
+
stateEnum2[stateEnum2["UPLOADING"] = 3] = "UPLOADING";
|
|
15
|
+
stateEnum2[stateEnum2["WATING"] = 5] = "WATING";
|
|
16
|
+
stateEnum2[stateEnum2["SUCCESS"] = 2] = "SUCCESS";
|
|
17
|
+
stateEnum2[stateEnum2["ERROR"] = -1] = "ERROR";
|
|
18
|
+
return stateEnum2;
|
|
19
|
+
})(stateEnum || {});
|
|
3
20
|
const _sfc_main = vue.defineComponent({
|
|
4
21
|
...{ name: "uploadStep" },
|
|
5
22
|
__name: "component",
|
|
6
23
|
props: {
|
|
7
|
-
BASE_API: {}
|
|
24
|
+
BASE_API: {},
|
|
25
|
+
fileList: {},
|
|
26
|
+
visable: { type: Boolean },
|
|
27
|
+
global: { type: Boolean }
|
|
8
28
|
},
|
|
9
|
-
|
|
29
|
+
emits: ["update:visable"],
|
|
30
|
+
setup(__props, { emit: __emit }) {
|
|
31
|
+
const progressEnum = {
|
|
32
|
+
UPLOADING: "normal",
|
|
33
|
+
WATING: "normal",
|
|
34
|
+
SUCCESS: "success",
|
|
35
|
+
ERROR: "danger"
|
|
36
|
+
};
|
|
37
|
+
const stateTxtEnum = {
|
|
38
|
+
UPLOADING: "\u4E0A\u4F20\u4E2D",
|
|
39
|
+
WATING: "\u6392\u961F\u4E2D",
|
|
40
|
+
SUCCESS: "\u4E0A\u4F20\u5B8C\u6210",
|
|
41
|
+
ERROR: "\u4E0A\u4F20\u5931\u8D25"
|
|
42
|
+
};
|
|
43
|
+
const emits = __emit;
|
|
44
|
+
const props = __props;
|
|
45
|
+
const showList = vue.toRef(props, "fileList");
|
|
46
|
+
const { state: expend, toggle: toggleExp } = toggle.useToggle(true);
|
|
47
|
+
const { state: scale, toggle: toggleSca } = toggle.useToggle();
|
|
48
|
+
const cardBodyStyle = vue.computed(() => expend.value ? {} : { padding: 0 });
|
|
49
|
+
const titleTxt = vue.computed(() => isUploading.value ? "\u6B63\u5728\u5904\u7406" : "\u5904\u7406\u5B8C\u6210");
|
|
50
|
+
const successCount = vue.computed(
|
|
51
|
+
() => showList.value.filter((it) => !uploadingFilter(it.state)).length
|
|
52
|
+
);
|
|
53
|
+
const isUploading = vue.computed(
|
|
54
|
+
() => !showList.value.some((item) => !uploadingFilter(item.state))
|
|
55
|
+
);
|
|
56
|
+
vue.watch(
|
|
57
|
+
() => scale.value,
|
|
58
|
+
(n) => n && !expend.value && toggleExp()
|
|
59
|
+
);
|
|
60
|
+
const closeListPanel = () => emits("update:visable");
|
|
61
|
+
const getSttType = (n) => stateTxtEnum[stateEnum[n]];
|
|
62
|
+
const getPrgType = (n) => progressEnum[stateEnum[n]];
|
|
63
|
+
const uploadingFilter = (state) => [3, 5].includes(state);
|
|
10
64
|
return (_ctx, _cache) => {
|
|
11
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
65
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
66
|
+
class: vue.normalizeClass(["panel_wrp", { global: _ctx.global }])
|
|
67
|
+
}, [
|
|
68
|
+
vue.createVNode(vue.unref(webVue.Card), {
|
|
69
|
+
hoverable: "",
|
|
70
|
+
class: vue.normalizeClass(["panel_card", { expend: vue.unref(scale) }]),
|
|
71
|
+
"body-style": cardBodyStyle.value
|
|
72
|
+
}, {
|
|
73
|
+
cover: vue.withCtx(() => [
|
|
74
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
75
|
+
vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(titleTxt.value) + "\uFF08" + vue.toDisplayString(successCount.value) + "/" + vue.toDisplayString(showList.value.length) + "\uFF09 ", 1),
|
|
76
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
77
|
+
vue.createElementVNode("div", {
|
|
78
|
+
class: "bar",
|
|
79
|
+
onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(toggleExp) && vue.unref(toggleExp)(...args))
|
|
80
|
+
}, [
|
|
81
|
+
vue.unref(expend) ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconDown), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(icon.IconUp), { key: 1 }))
|
|
82
|
+
]),
|
|
83
|
+
vue.createElementVNode("div", {
|
|
84
|
+
class: "bar",
|
|
85
|
+
onClick: _cache[1] || (_cache[1] = (...args) => vue.unref(toggleSca) && vue.unref(toggleSca)(...args))
|
|
86
|
+
}, [
|
|
87
|
+
vue.unref(scale) ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconShrink), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(icon.IconExpand), { key: 1 }))
|
|
88
|
+
]),
|
|
89
|
+
!isUploading.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: "bar",
|
|
92
|
+
onClick: closeListPanel
|
|
93
|
+
}, [
|
|
94
|
+
vue.createVNode(vue.unref(icon.IconClose))
|
|
95
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
96
|
+
])
|
|
97
|
+
])
|
|
98
|
+
]),
|
|
99
|
+
default: vue.withCtx(() => [
|
|
100
|
+
vue.createElementVNode("div", {
|
|
101
|
+
class: vue.normalizeClass(["panel_list", { un_expend: !vue.unref(expend) }])
|
|
102
|
+
}, [
|
|
103
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (file) => {
|
|
104
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
105
|
+
key: file.id,
|
|
106
|
+
class: "panel_item"
|
|
107
|
+
}, [
|
|
108
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
109
|
+
vue.createVNode(component, {
|
|
110
|
+
doc: true,
|
|
111
|
+
resource: true,
|
|
112
|
+
type: file.type
|
|
113
|
+
}, null, 8, ["type"]),
|
|
114
|
+
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
115
|
+
content: file.name
|
|
116
|
+
}, {
|
|
117
|
+
default: vue.withCtx(() => [
|
|
118
|
+
vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(file.name), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1032, ["content"])
|
|
122
|
+
]),
|
|
123
|
+
vue.withDirectives(vue.createElementVNode("div", { class: "panel_column flex-1" }, vue.toDisplayString(getSttType(file.state)), 513), [
|
|
124
|
+
[vue.vShow, vue.unref(scale)]
|
|
125
|
+
]),
|
|
126
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
127
|
+
vue.createTextVNode(vue.toDisplayString([2, 0].includes(file.state) ? 100 : file.percent * 100) + " % ", 1),
|
|
128
|
+
vue.createVNode(vue.unref(webVue.Progress), {
|
|
129
|
+
size: "small",
|
|
130
|
+
type: "circle",
|
|
131
|
+
width: 20,
|
|
132
|
+
"stroke-width": 1,
|
|
133
|
+
percent: file.percent,
|
|
134
|
+
status: getPrgType(file.state),
|
|
135
|
+
"show-text": ![3, 5].includes(file.state)
|
|
136
|
+
}, null, 8, ["percent", "status", "show-text"])
|
|
137
|
+
])
|
|
138
|
+
]);
|
|
139
|
+
}), 128))
|
|
140
|
+
], 2)
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["class", "body-style"])
|
|
144
|
+
], 2)), [
|
|
145
|
+
[vue.vShow, _ctx.visable]
|
|
146
|
+
]);
|
|
12
147
|
};
|
|
13
148
|
}
|
|
14
149
|
});
|
|
@@ -2,3 +2,116 @@
|
|
|
2
2
|
height: auto;
|
|
3
3
|
padding: 20px;
|
|
4
4
|
}
|
|
5
|
+
.table_wrp {
|
|
6
|
+
height: 50vh;
|
|
7
|
+
}
|
|
8
|
+
/** 上传列表面板 */
|
|
9
|
+
.panel_wrp {
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
.panel_wrp.global {
|
|
13
|
+
position: absolute;
|
|
14
|
+
right: 20px;
|
|
15
|
+
bottom: 20px;
|
|
16
|
+
}
|
|
17
|
+
.panel_wrp .panel_card .panel_header {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
}
|
|
23
|
+
.panel_wrp .panel_card .panel_header .opt {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
gap: 15px;
|
|
27
|
+
}
|
|
28
|
+
.panel_wrp .panel_card .panel_list {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
.panel_wrp .panel_card .panel_list .panel_item {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
}
|
|
37
|
+
.panel_wrp .panel_card .panel_list .panel_item .panel_column {
|
|
38
|
+
display: flex;
|
|
39
|
+
gap: 10px;
|
|
40
|
+
align-items: center;
|
|
41
|
+
}
|
|
42
|
+
.panel_wrp .panel_card .panel_list .panel_item .panel_column.percent {
|
|
43
|
+
justify-content: end;
|
|
44
|
+
}
|
|
45
|
+
.panel_wrp .panel_card .panel_list .panel_item .panel_column.flex-1 {
|
|
46
|
+
flex: 1;
|
|
47
|
+
}
|
|
48
|
+
.panel_wrp .panel_card .panel_list .panel_item .panel_column.flex-3 {
|
|
49
|
+
flex: 3;
|
|
50
|
+
}
|
|
51
|
+
.panel_wrp {
|
|
52
|
+
width: auto;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
border-top-left-radius: 12px;
|
|
55
|
+
border-top-right-radius: 12px;
|
|
56
|
+
}
|
|
57
|
+
.panel_wrp *::selection {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
.panel_wrp .panel_card {
|
|
61
|
+
width: 350px;
|
|
62
|
+
transition: all 0.3s;
|
|
63
|
+
}
|
|
64
|
+
.panel_wrp .panel_card.expend {
|
|
65
|
+
width: 420px;
|
|
66
|
+
}
|
|
67
|
+
.panel_wrp .panel_card .panel_header {
|
|
68
|
+
width: 90%;
|
|
69
|
+
height: 50px;
|
|
70
|
+
padding: 0 5%;
|
|
71
|
+
color: white;
|
|
72
|
+
background-color: rgb(var(--arcoblue-5));
|
|
73
|
+
border-top-left-radius: 10px;
|
|
74
|
+
border-top-right-radius: 10px;
|
|
75
|
+
}
|
|
76
|
+
.panel_wrp .panel_card .panel_header .title {
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
}
|
|
79
|
+
.panel_wrp .panel_card .panel_header .opt {
|
|
80
|
+
font-size: 18px;
|
|
81
|
+
}
|
|
82
|
+
.panel_wrp .panel_card .panel_header .opt::selection {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
.panel_wrp .panel_card .panel_header .opt .bar {
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
.panel_wrp .panel_card .panel_list {
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 120px;
|
|
91
|
+
overflow-y: scroll;
|
|
92
|
+
transition: all 0.3s;
|
|
93
|
+
}
|
|
94
|
+
.panel_wrp .panel_card .panel_list::-webkit-scrollbar {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
.panel_wrp .panel_card .panel_list.un_expend {
|
|
98
|
+
height: 0;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
}
|
|
101
|
+
.panel_wrp .panel_card .panel_list .panel_item {
|
|
102
|
+
height: 35px;
|
|
103
|
+
padding: 5px 15px;
|
|
104
|
+
}
|
|
105
|
+
.panel_wrp .panel_card .panel_list .panel_item .panel_column {
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
.panel_wrp .panel_card .panel_list .panel_item .panel_column .media_alias {
|
|
109
|
+
width: 160px;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
}
|
|
112
|
+
/** 公用 */
|
|
113
|
+
.ellips {
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
}
|
|
@@ -2,3 +2,151 @@
|
|
|
2
2
|
height: auto;
|
|
3
3
|
padding: 20px;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
.table_wrp {
|
|
7
|
+
height: 50vh;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
._brTop(@p) {
|
|
11
|
+
border-top-left-radius: @p;
|
|
12
|
+
border-top-right-radius: @p;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** 上传列表面板 */
|
|
16
|
+
|
|
17
|
+
// 布局部分
|
|
18
|
+
.panel_wrp {
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
&.global {
|
|
22
|
+
position: absolute;
|
|
23
|
+
right: 20px;
|
|
24
|
+
bottom: 20px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.panel_card {
|
|
28
|
+
.panel_header {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
|
|
34
|
+
.opt {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
gap: 15px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.panel_list {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
|
|
45
|
+
.panel_item {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
|
|
50
|
+
.panel_column {
|
|
51
|
+
display: flex;
|
|
52
|
+
gap: 10px;
|
|
53
|
+
align-items: center;
|
|
54
|
+
|
|
55
|
+
&.percent {
|
|
56
|
+
justify-content: end;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.flex-1 {
|
|
60
|
+
flex: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.flex-3 {
|
|
64
|
+
flex: 3;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 样式部分
|
|
73
|
+
.panel_wrp {
|
|
74
|
+
width: auto;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
|
|
77
|
+
& *::selection {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
._brTop(12px);
|
|
81
|
+
|
|
82
|
+
.panel_card {
|
|
83
|
+
width: 350px;
|
|
84
|
+
transition: all 0.3s;
|
|
85
|
+
|
|
86
|
+
&.expend {
|
|
87
|
+
width: 420px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.panel_header {
|
|
91
|
+
width: 90%;
|
|
92
|
+
height: 50px;
|
|
93
|
+
padding: 0 5%;
|
|
94
|
+
color: white;
|
|
95
|
+
background-color: rgb(var(--arcoblue-5));
|
|
96
|
+
._brTop(10px);
|
|
97
|
+
|
|
98
|
+
.title {
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.opt {
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
|
|
105
|
+
&::selection {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.bar {
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.panel_list {
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 120px;
|
|
118
|
+
overflow-y: scroll;
|
|
119
|
+
transition: all 0.3s;
|
|
120
|
+
|
|
121
|
+
&::-webkit-scrollbar {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.un_expend {
|
|
126
|
+
height: 0;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.panel_item {
|
|
131
|
+
height: 35px;
|
|
132
|
+
padding: 5px 15px;
|
|
133
|
+
|
|
134
|
+
.panel_column {
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
|
|
137
|
+
.media_alias {
|
|
138
|
+
width: 160px;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** 公用 */
|
|
148
|
+
.ellips {
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
white-space: nowrap;
|
|
151
|
+
text-overflow: ellipsis;
|
|
152
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var config = require("../config.js");
|
|
5
|
+
var api = require("./script/api.js");
|
|
6
|
+
const _hoisted_1 = { class: "user-select-content" };
|
|
7
|
+
const _hoisted_2 = { class: "user-select-left" };
|
|
8
|
+
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "user-select-right" }, null, -1);
|
|
9
|
+
const _sfc_main = vue.defineComponent({
|
|
10
|
+
...{ name: "userDirector" },
|
|
11
|
+
__name: "component",
|
|
12
|
+
props: {
|
|
13
|
+
BASE_API: {},
|
|
14
|
+
repositoryId: {},
|
|
15
|
+
visible: { type: Boolean },
|
|
16
|
+
title: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:visible"],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const loadMore = () => {
|
|
24
|
+
};
|
|
25
|
+
const RoleTreeData = vue.ref([]);
|
|
26
|
+
const DepartTreeData = vue.ref([]);
|
|
27
|
+
const fieldNames = {
|
|
28
|
+
children: "children",
|
|
29
|
+
title: "alias",
|
|
30
|
+
key: "node_key"
|
|
31
|
+
};
|
|
32
|
+
const selectRoleNode = (selectedKeys, data) => {
|
|
33
|
+
console.log("selectRoleNode", data);
|
|
34
|
+
};
|
|
35
|
+
const expandRoleNode = async (selectedKeys, data) => {
|
|
36
|
+
if (data.node.isRole) {
|
|
37
|
+
const res = await api.getRoleAllUser(BASE_API, { id: data.node.id });
|
|
38
|
+
if (res.code === 0) {
|
|
39
|
+
data.node.children = res.message.map((item) => {
|
|
40
|
+
item.node_key = `role_${data.node.id}_${item.uid}`;
|
|
41
|
+
item.isUser = true;
|
|
42
|
+
item.isLeaf = true;
|
|
43
|
+
return item;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const selectDepartNode = (selectedKeys, data) => {
|
|
49
|
+
console.log("selectDepartNode", data);
|
|
50
|
+
};
|
|
51
|
+
const expandDepartNode = async (selectedKeys, data) => {
|
|
52
|
+
if (data.node.isDepart) {
|
|
53
|
+
const res = await api.getDepartUserList(BASE_API, { pid: data.node.id });
|
|
54
|
+
if (res.code === 0) {
|
|
55
|
+
data.node.children = res.message.map((item) => {
|
|
56
|
+
item.node_key = `depart_${data.node.id}_${item.uid}`;
|
|
57
|
+
item.isUser = true;
|
|
58
|
+
item.isLeaf = true;
|
|
59
|
+
return item;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const collapseChange = async (keys) => {
|
|
65
|
+
if (keys.includes("Role")) {
|
|
66
|
+
api.getRepoRoleList(BASE_API, { repoID: props.repositoryId }).then((res) => {
|
|
67
|
+
if (res.code === 0) {
|
|
68
|
+
RoleTreeData.value = res.message.map((item) => {
|
|
69
|
+
item.node_key = `role_${item.id}`;
|
|
70
|
+
item.isRole = true;
|
|
71
|
+
return item;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (keys.includes("Depart")) {
|
|
77
|
+
api.getDepartList(BASE_API).then((res) => {
|
|
78
|
+
if (res.code === 0) {
|
|
79
|
+
DepartTreeData.value = res.message.departments.map((item) => {
|
|
80
|
+
item.node_key = `depart_${item.id}`;
|
|
81
|
+
item.isDepart = true;
|
|
82
|
+
return item;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const allUserList = vue.ref([]);
|
|
89
|
+
const completeUser = vue.ref();
|
|
90
|
+
const getUserList = async () => {
|
|
91
|
+
const res = await api.getRepoUserList(BASE_API, { id: props.repositoryId });
|
|
92
|
+
if (res.code === 0) {
|
|
93
|
+
allUserList.value = res.message.map((item) => {
|
|
94
|
+
item.value = item.uid;
|
|
95
|
+
item.label = item.alias;
|
|
96
|
+
return item;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const selectUser = (value) => {
|
|
101
|
+
console.log(value);
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
completeUser.value = "";
|
|
104
|
+
}, 100);
|
|
105
|
+
};
|
|
106
|
+
vue.onMounted(() => {
|
|
107
|
+
getUserList();
|
|
108
|
+
});
|
|
109
|
+
const visible = vue.computed({
|
|
110
|
+
get() {
|
|
111
|
+
return props.visible;
|
|
112
|
+
},
|
|
113
|
+
set(value) {
|
|
114
|
+
setVisible(value);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
const setVisible = (bool) => {
|
|
118
|
+
emit("update:visible", bool);
|
|
119
|
+
};
|
|
120
|
+
const handleOk = () => {
|
|
121
|
+
setVisible(false);
|
|
122
|
+
};
|
|
123
|
+
const handleCancel = () => {
|
|
124
|
+
setVisible(false);
|
|
125
|
+
};
|
|
126
|
+
return (_ctx, _cache) => {
|
|
127
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Modal), {
|
|
128
|
+
visible: visible.value,
|
|
129
|
+
width: "986px",
|
|
130
|
+
"mask-closable": false,
|
|
131
|
+
footer: false,
|
|
132
|
+
"title-align": "start",
|
|
133
|
+
"unmount-on-close": "",
|
|
134
|
+
onOk: handleOk,
|
|
135
|
+
onCancel: handleCancel
|
|
136
|
+
}, {
|
|
137
|
+
title: vue.withCtx(() => [
|
|
138
|
+
vue.createTextVNode(vue.toDisplayString(props.title ? props.title : "\u9009\u62E9\u7528\u6237"), 1)
|
|
139
|
+
]),
|
|
140
|
+
default: vue.withCtx(() => [
|
|
141
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
142
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
143
|
+
vue.createVNode(vue.unref(webVue.AutoComplete), {
|
|
144
|
+
modelValue: completeUser.value,
|
|
145
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => completeUser.value = $event),
|
|
146
|
+
data: allUserList.value,
|
|
147
|
+
placeholder: "\u641C\u7D22\u59D3\u540D\u3001\u7528\u6237\u540D",
|
|
148
|
+
onSelect: selectUser
|
|
149
|
+
}, null, 8, ["modelValue", "data"]),
|
|
150
|
+
vue.createVNode(vue.unref(webVue.Collapse), {
|
|
151
|
+
accordion: "",
|
|
152
|
+
onChange: collapseChange
|
|
153
|
+
}, {
|
|
154
|
+
default: vue.withCtx(() => [
|
|
155
|
+
vue.createVNode(vue.unref(webVue.CollapseItem), {
|
|
156
|
+
key: "Role",
|
|
157
|
+
header: "\u6309\u89D2\u8272\u9009\u62E9"
|
|
158
|
+
}, {
|
|
159
|
+
default: vue.withCtx(() => [
|
|
160
|
+
vue.createVNode(vue.unref(webVue.Tree), {
|
|
161
|
+
data: RoleTreeData.value,
|
|
162
|
+
"load-more": loadMore,
|
|
163
|
+
"field-names": fieldNames,
|
|
164
|
+
"action-on-node-click": "expand",
|
|
165
|
+
onSelect: selectRoleNode,
|
|
166
|
+
onExpand: expandRoleNode
|
|
167
|
+
}, null, 8, ["data"])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}),
|
|
171
|
+
vue.createVNode(vue.unref(webVue.CollapseItem), {
|
|
172
|
+
key: "Depart",
|
|
173
|
+
header: "\u6309\u7EC4\u7EC7\u67B6\u6784\u9009\u62E9"
|
|
174
|
+
}, {
|
|
175
|
+
default: vue.withCtx(() => [
|
|
176
|
+
vue.createVNode(vue.unref(webVue.Tree), {
|
|
177
|
+
size: "large",
|
|
178
|
+
"block-node": "",
|
|
179
|
+
"field-names": fieldNames,
|
|
180
|
+
data: DepartTreeData.value,
|
|
181
|
+
"load-more": loadMore,
|
|
182
|
+
"action-on-node-click": "expand",
|
|
183
|
+
onSelect: selectDepartNode,
|
|
184
|
+
onExpand: expandDepartNode
|
|
185
|
+
}, null, 8, ["data"])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
})
|
|
192
|
+
]),
|
|
193
|
+
_hoisted_3
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["visible"]);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var request = require("../../utils/request.js");
|
|
4
|
+
function getRepoRoleList(BASE_API, params) {
|
|
5
|
+
return request(BASE_API, {
|
|
6
|
+
url: `/poplar/v2/roles/${params.repoID}`,
|
|
7
|
+
method: "get"
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function getRoleAllUser(BASE_API, params) {
|
|
11
|
+
return request(BASE_API, {
|
|
12
|
+
url: `/poplar/v2/role/${params.id}/user`,
|
|
13
|
+
method: "get"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function getDepartList(BASE_API) {
|
|
17
|
+
return request(BASE_API, {
|
|
18
|
+
url: "/poplar/v2/department",
|
|
19
|
+
method: "get"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function getDepartUserList(BASE_API, params) {
|
|
23
|
+
return request(BASE_API, {
|
|
24
|
+
url: `/poplar/v2/department/${params.pid}/user`,
|
|
25
|
+
method: "get"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function getRepoUserList(BASE_API, params) {
|
|
29
|
+
return request(BASE_API, {
|
|
30
|
+
url: `/poplar/v2/repository/${params.id}/user`,
|
|
31
|
+
method: "get"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
exports.getDepartList = getDepartList;
|
|
35
|
+
exports.getDepartUserList = getDepartUserList;
|
|
36
|
+
exports.getRepoRoleList = getRepoRoleList;
|
|
37
|
+
exports.getRepoUserList = getRepoUserList;
|
|
38
|
+
exports.getRoleAllUser = getRoleAllUser;
|