@cmstops/pro-compo 0.1.29 → 0.1.31
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 +42 -10
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +2 -1
- package/es/contentDetailList/component.js +3 -1
- package/es/contentDetailList/components/Content/CompoItem/index.js +2 -1
- package/es/contentDetailList/components/Content/ContentListItem/index.js +2 -1
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -1
- package/es/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/es/contentDetailList/components/Content/DocMpItem/index.js +5 -2
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +2 -1
- package/es/contentDetailList/components/Content/LiveItem/index.js +2 -1
- package/es/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/es/contentDetailList/components/Content/index.js +7 -2
- package/es/contentDetailList/components/Doc/index.js +2 -1
- package/es/contentDetailList/style/DocItem.less +4 -3
- package/es/contentDetailList/style/index.css +3 -3
- package/es/contentModal/component.js +12 -7
- package/es/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/es/contentModal/components/CompoList/index.js +10 -3
- package/es/contentModal/components/ContentList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/ContentList/index.js +2 -1
- package/es/contentModal/components/LiveList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/LiveList/index.js +2 -1
- package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +6 -3
- package/es/contentModal/components/MpAccountList/index.js +5 -2
- package/es/contentModal/components/MpContentList/MediaFilter/index.js +6 -3
- package/es/contentModal/components/MpContentList/index.js +5 -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/dataTags/component.js +26 -5
- package/es/editMetaInfo/component.js +2 -1
- package/es/editMetaInfo/components/metaInfoForm.js +92 -7
- package/es/editMetaInfo/style/index.css +18 -1
- package/es/editMetaInfo/style/index.less +31 -1
- package/es/hooks/source.d.ts +9 -0
- package/es/hooks/source.js +31 -0
- package/es/hooks/user.d.ts +1 -1
- package/es/imageCrop/component.js +16 -9
- package/es/index.css +42 -10
- package/es/mediaFilter/component.js +5 -4
- package/es/mediaFilter/components/DocFilter.js +2 -1
- package/es/mediaFilter/components/FilterGroup.js +1 -1
- package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
- package/es/mediaFilter/components/MpAccountFilter.js +12 -8
- package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
- package/es/mediaFilter/components/MpContentFilter.js +12 -8
- package/es/messageBox/list.js +2 -1
- package/es/previousVersion/component.js +2 -1
- 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 -7
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +87 -34
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/index.js +2 -1
- package/es/resourceModal/style/MainContent.less +25 -5
- package/es/resourceModal/style/index.css +21 -6
- package/es/selectAvatarList/component.js +2 -1
- package/es/selectGategory/component.js +2 -1
- package/es/selectGategory/components/ColumnSelection/index.js +2 -1
- package/es/selectThumb/component.js +2 -1
- package/es/selectThumb/components/card.js +5 -7
- package/es/selectThumb/components/colorPalette.js +2 -1
- package/es/selectThumb/components/colorPicker.js +2 -1
- package/es/typeIcons/component.js +10 -7
- package/es/uploadBefore/component.js +3 -2
- package/es/uploadBefore/components/UploadBefore.js +2 -1
- package/es/uploadBefore/components/UploadForClick.js +2 -1
- package/es/uploadStep/component.js +3 -2
- package/es/userDirector/component.js +2 -1
- package/es/userDirector/components/userTree.js +2 -1
- package/es/utils/doc.d.ts +1 -0
- package/es/utils/doc.js +2 -1
- package/es/utils/request.js +1 -1
- package/es/utils/typeMap.d.ts +2 -1
- package/es/utils/typeMap.js +5 -2
- package/lib/baseFilter/component.js +2 -1
- package/lib/contentDetailList/component.js +3 -1
- package/lib/contentDetailList/components/Content/CompoItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocMpItem/index.js +5 -2
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/LiveItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/index.js +6 -1
- package/lib/contentDetailList/components/Doc/index.js +2 -1
- package/lib/contentDetailList/style/DocItem.less +4 -3
- package/lib/contentDetailList/style/index.css +3 -3
- package/lib/contentModal/component.js +12 -7
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/lib/contentModal/components/CompoList/index.js +10 -3
- package/lib/contentModal/components/ContentList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/ContentList/index.js +2 -1
- package/lib/contentModal/components/LiveList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/LiveList/index.js +2 -1
- package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +6 -3
- package/lib/contentModal/components/MpAccountList/index.js +5 -2
- package/lib/contentModal/components/MpContentList/MediaFilter/index.js +6 -3
- package/lib/contentModal/components/MpContentList/index.js +5 -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/dataTags/component.js +25 -4
- package/lib/editMetaInfo/component.js +2 -1
- package/lib/editMetaInfo/components/metaInfoForm.js +90 -5
- package/lib/editMetaInfo/style/index.css +18 -1
- package/lib/editMetaInfo/style/index.less +31 -1
- package/lib/hooks/source.js +34 -0
- package/lib/imageCrop/component.js +16 -9
- package/lib/index.css +42 -10
- package/lib/mediaFilter/component.js +2 -1
- package/lib/mediaFilter/components/DocFilter.js +2 -1
- package/lib/mediaFilter/components/FilterGroup.js +1 -1
- package/lib/mediaFilter/components/MpAccountFilter.js +11 -7
- package/lib/mediaFilter/components/MpContentFilter.js +11 -7
- package/lib/messageBox/list.js +2 -1
- package/lib/previousVersion/component.js +2 -1
- 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 -7
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +86 -33
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/index.js +2 -1
- package/lib/resourceModal/style/MainContent.less +25 -5
- package/lib/resourceModal/style/index.css +21 -6
- package/lib/selectAvatarList/component.js +2 -1
- package/lib/selectGategory/component.js +2 -1
- package/lib/selectGategory/components/ColumnSelection/index.js +2 -1
- package/lib/selectThumb/component.js +2 -1
- package/lib/selectThumb/components/card.js +5 -7
- package/lib/selectThumb/components/colorPalette.js +2 -1
- package/lib/selectThumb/components/colorPicker.js +2 -1
- package/lib/typeIcons/component.js +9 -6
- package/lib/uploadBefore/component.js +3 -2
- package/lib/uploadBefore/components/UploadBefore.js +2 -1
- package/lib/uploadBefore/components/UploadForClick.js +2 -1
- package/lib/uploadStep/component.js +3 -2
- package/lib/userDirector/component.js +2 -1
- package/lib/userDirector/components/userTree.js +2 -1
- package/lib/utils/doc.js +2 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/typeMap.js +5 -2
- package/package.json +5 -3
- package/es/contentDetailList/scripts/index.d.ts +0 -48
- package/es/editMetaInfo/script/restaurants.js +0 -127
- package/lib/editMetaInfo/script/restaurants.js +0 -128
|
@@ -21,10 +21,13 @@ const _sfc_main = defineComponent({
|
|
|
21
21
|
defaultSelectedData: {},
|
|
22
22
|
maxSelect: {},
|
|
23
23
|
typeData: {},
|
|
24
|
-
userStore: {}
|
|
24
|
+
userStore: {},
|
|
25
|
+
compoFilter: { type: Boolean, default: false }
|
|
25
26
|
},
|
|
26
27
|
emits: ["update:visible", "comfirm"],
|
|
27
|
-
setup(__props, { emit }) {
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
const emit = __emit;
|
|
28
31
|
const props = __props;
|
|
29
32
|
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
30
33
|
const visible = computed({
|
|
@@ -35,6 +38,7 @@ const _sfc_main = defineComponent({
|
|
|
35
38
|
setVisible(value);
|
|
36
39
|
}
|
|
37
40
|
});
|
|
41
|
+
const mpName = ((_c = (_b = (_a = window.situoyun) == null ? void 0 : _a.config) == null ? void 0 : _b.oem_config) == null ? void 0 : _c.mp_name) || "\u516C\u4F17\u53F7";
|
|
38
42
|
const selectedData = ref([]);
|
|
39
43
|
const hasSelected = computed(() => {
|
|
40
44
|
return selectedData.value.length > 0;
|
|
@@ -186,6 +190,7 @@ const _sfc_main = defineComponent({
|
|
|
186
190
|
"type-data": typeDataController.value,
|
|
187
191
|
columns: typeDataController.value.compoType,
|
|
188
192
|
"user-info": unref(userInfo),
|
|
193
|
+
"compo-filter": _ctx.compoFilter,
|
|
189
194
|
onChange: selectedDataChangeHandle
|
|
190
195
|
}, {
|
|
191
196
|
store: withCtx(() => [
|
|
@@ -207,7 +212,7 @@ const _sfc_main = defineComponent({
|
|
|
207
212
|
}, 8, ["disabled"])
|
|
208
213
|
]),
|
|
209
214
|
_: 1
|
|
210
|
-
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : createCommentVNode("v-if", true)
|
|
215
|
+
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info", "compo-filter"])) : createCommentVNode("v-if", true)
|
|
211
216
|
]),
|
|
212
217
|
_: 1
|
|
213
218
|
})) : createCommentVNode("v-if", true),
|
|
@@ -251,7 +256,7 @@ const _sfc_main = defineComponent({
|
|
|
251
256
|
})) : createCommentVNode("v-if", true),
|
|
252
257
|
typeDataController.value.addMpAccount ? (openBlock(), createBlock(unref(TabPane), {
|
|
253
258
|
key: "7",
|
|
254
|
-
title:
|
|
259
|
+
title: unref(mpName)
|
|
255
260
|
}, {
|
|
256
261
|
default: withCtx(() => [
|
|
257
262
|
unref(userInfo) && unref(userInfo).repository_id ? (openBlock(), createBlock(_sfc_main$6, {
|
|
@@ -286,10 +291,10 @@ const _sfc_main = defineComponent({
|
|
|
286
291
|
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : createCommentVNode("v-if", true)
|
|
287
292
|
]),
|
|
288
293
|
_: 1
|
|
289
|
-
})) : createCommentVNode("v-if", true),
|
|
294
|
+
}, 8, ["title"])) : createCommentVNode("v-if", true),
|
|
290
295
|
typeDataController.value.addMpContent ? (openBlock(), createBlock(unref(TabPane), {
|
|
291
296
|
key: "8",
|
|
292
|
-
title:
|
|
297
|
+
title: `${unref(mpName)}\u5185\u5BB9`
|
|
293
298
|
}, {
|
|
294
299
|
default: withCtx(() => [
|
|
295
300
|
unref(userInfo) && unref(userInfo).repository_id ? (openBlock(), createBlock(_sfc_main$7, {
|
|
@@ -324,7 +329,7 @@ const _sfc_main = defineComponent({
|
|
|
324
329
|
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : createCommentVNode("v-if", true)
|
|
325
330
|
]),
|
|
326
331
|
_: 1
|
|
327
|
-
})) : createCommentVNode("v-if", true)
|
|
332
|
+
}, 8, ["title"])) : createCommentVNode("v-if", true)
|
|
328
333
|
]),
|
|
329
334
|
_: 1
|
|
330
335
|
})
|
|
@@ -11,9 +11,10 @@ const _sfc_main = defineComponent({
|
|
|
11
11
|
userInfo: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:group_id", "search"],
|
|
14
|
-
setup(__props, { emit }) {
|
|
15
|
-
const props = __props;
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
16
15
|
const columnIdMap = compoColumnsMap();
|
|
16
|
+
const props = __props;
|
|
17
|
+
const emit = __emit;
|
|
17
18
|
const filter = ref({ keyword: "", columns: "" });
|
|
18
19
|
const groupId = computed({
|
|
19
20
|
get() {
|
|
@@ -21,11 +21,11 @@ const _sfc_main = defineComponent({
|
|
|
21
21
|
outsideSelectData: {},
|
|
22
22
|
defaultSelectedData: {},
|
|
23
23
|
typeData: {},
|
|
24
|
-
userInfo: {}
|
|
24
|
+
userInfo: {},
|
|
25
|
+
compoFilter: { type: Boolean }
|
|
25
26
|
},
|
|
26
27
|
emits: ["change"],
|
|
27
|
-
setup(__props, { emit }) {
|
|
28
|
-
const props = __props;
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
29
|
const columnIdMap = (compo) => {
|
|
30
30
|
if ((compo == null ? void 0 : compo.term_switch) === 1) {
|
|
31
31
|
return "PC\u6A21\u5757";
|
|
@@ -33,6 +33,8 @@ const _sfc_main = defineComponent({
|
|
|
33
33
|
const _type = compoColumnsMap();
|
|
34
34
|
return _type[compo.columns];
|
|
35
35
|
};
|
|
36
|
+
const emit = __emit;
|
|
37
|
+
const props = __props;
|
|
36
38
|
const _maxSelect = props.maxSelect || 100;
|
|
37
39
|
const selectedData = ref([]);
|
|
38
40
|
const tempSelectedData = computed(() => {
|
|
@@ -162,6 +164,11 @@ const _sfc_main = defineComponent({
|
|
|
162
164
|
v._type = 2;
|
|
163
165
|
return v;
|
|
164
166
|
}) || [];
|
|
167
|
+
if (props.compoFilter) {
|
|
168
|
+
mediaFileData.value = mediaFileData.value.filter(
|
|
169
|
+
(x) => x.term_switch !== 1
|
|
170
|
+
);
|
|
171
|
+
}
|
|
165
172
|
}
|
|
166
173
|
};
|
|
167
174
|
const getGroupData = async () => {
|
|
@@ -11,8 +11,9 @@ const _sfc_main = defineComponent({
|
|
|
11
11
|
type: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:group_id", "search"],
|
|
14
|
-
setup(__props, { emit }) {
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
15
15
|
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
16
17
|
const filter = ref({ keyword: "", relation_type: "" });
|
|
17
18
|
const groupId = computed({
|
|
18
19
|
get() {
|
|
@@ -24,7 +24,8 @@ const _sfc_main = defineComponent({
|
|
|
24
24
|
userInfo: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["change"],
|
|
27
|
-
setup(__props, { emit }) {
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
const emit = __emit;
|
|
28
29
|
const props = __props;
|
|
29
30
|
const _maxSelect = props.maxSelect || 100;
|
|
30
31
|
const selectedData = ref([]);
|
|
@@ -9,8 +9,9 @@ const _sfc_main = defineComponent({
|
|
|
9
9
|
group_id: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:group_id", "search"],
|
|
12
|
-
setup(__props, { emit }) {
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
13
|
const props = __props;
|
|
14
|
+
const emit = __emit;
|
|
14
15
|
const filter = ref({ type: "", name: "" });
|
|
15
16
|
computed({
|
|
16
17
|
get() {
|
|
@@ -23,7 +23,8 @@ const _sfc_main = defineComponent({
|
|
|
23
23
|
userInfo: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["change"],
|
|
26
|
-
setup(__props, { emit }) {
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const emit = __emit;
|
|
27
28
|
const props = __props;
|
|
28
29
|
const _maxSelect = props.maxSelect || 100;
|
|
29
30
|
const selectedData = ref([]);
|
|
@@ -6,8 +6,11 @@ const _sfc_main = defineComponent({
|
|
|
6
6
|
...{ name: "MpAccountFilter" },
|
|
7
7
|
__name: "index",
|
|
8
8
|
emits: ["search"],
|
|
9
|
-
setup(__props, { emit }) {
|
|
9
|
+
setup(__props, { emit: __emit }) {
|
|
10
|
+
var _a, _b, _c;
|
|
11
|
+
const emit = __emit;
|
|
10
12
|
const filter = ref({ mp_name: "", mp_type: "" });
|
|
13
|
+
const mpName = ((_c = (_b = (_a = window.situoyun) == null ? void 0 : _a.config) == null ? void 0 : _b.oem_config) == null ? void 0 : _c.mp_name) || "\u516C\u4F17\u53F7";
|
|
11
14
|
const typeOptions = computed(() => {
|
|
12
15
|
const arr = Object.keys(mp_type_map).map((key) => {
|
|
13
16
|
return {
|
|
@@ -49,9 +52,9 @@ const _sfc_main = defineComponent({
|
|
|
49
52
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.mp_name = $event),
|
|
50
53
|
class: "filter-item",
|
|
51
54
|
"allow-clear": "",
|
|
52
|
-
placeholder:
|
|
55
|
+
placeholder: `\u8BF7\u8F93\u5165${unref(mpName)}\u540D\u79F0`,
|
|
53
56
|
onPressEnter: handleSearch
|
|
54
|
-
}, null, 8, ["modelValue"])
|
|
57
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
55
58
|
]),
|
|
56
59
|
_: 1
|
|
57
60
|
})
|
|
@@ -29,7 +29,9 @@ const _sfc_main = defineComponent({
|
|
|
29
29
|
defaultSelectedData: {}
|
|
30
30
|
},
|
|
31
31
|
emits: ["change"],
|
|
32
|
-
setup(__props, { emit }) {
|
|
32
|
+
setup(__props, { emit: __emit }) {
|
|
33
|
+
var _a, _b, _c;
|
|
34
|
+
const emit = __emit;
|
|
33
35
|
const props = __props;
|
|
34
36
|
const _maxSelect = props.maxSelect || 100;
|
|
35
37
|
const selectedData = ref([]);
|
|
@@ -43,8 +45,9 @@ const _sfc_main = defineComponent({
|
|
|
43
45
|
});
|
|
44
46
|
const filter = ref(null);
|
|
45
47
|
const scrollPercent = { y: "100%" };
|
|
48
|
+
const mpName = ((_c = (_b = (_a = window.situoyun) == null ? void 0 : _a.config) == null ? void 0 : _b.oem_config) == null ? void 0 : _c.mp_name) || "\u516C\u4F17\u53F7";
|
|
46
49
|
const columns = [
|
|
47
|
-
{ title:
|
|
50
|
+
{ title: `${mpName}\u540D\u79F0`, dataIndex: "mp_name", slotName: "mp_name" },
|
|
48
51
|
{ title: "\u5934\u50CF", dataIndex: "mp_logo", slotName: "mp_logo" },
|
|
49
52
|
{ title: "\u8D26\u53F7\u7C7B\u578B", dataIndex: "mp_type", slotName: "mp_type" },
|
|
50
53
|
{ title: "\u8FD0\u8425\u8005", dataIndex: "mp_user_name", slotName: "mp_user_name" },
|
|
@@ -10,11 +10,14 @@ const _sfc_main = defineComponent({
|
|
|
10
10
|
userInfo: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:group_id", "search"],
|
|
13
|
-
setup(__props, { emit }) {
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
var _a, _b, _c;
|
|
14
15
|
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
15
17
|
const filter = ref({ wd: "", account_uid: "", order: 1 });
|
|
16
18
|
const typeOptions = ref([{ mp_name: "\u5168\u90E8", uid: "all" }]);
|
|
17
19
|
const limit = ref(100);
|
|
20
|
+
const mpName = ((_c = (_b = (_a = window.situoyun) == null ? void 0 : _a.config) == null ? void 0 : _b.oem_config) == null ? void 0 : _c.mp_name) || "\u516C\u4F17\u53F7";
|
|
18
21
|
computed({
|
|
19
22
|
get() {
|
|
20
23
|
return props.group_id;
|
|
@@ -61,7 +64,7 @@ const _sfc_main = defineComponent({
|
|
|
61
64
|
modelValue: filter.value.account_uid,
|
|
62
65
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.account_uid = $event),
|
|
63
66
|
class: "filter-item",
|
|
64
|
-
placeholder:
|
|
67
|
+
placeholder: unref(mpName),
|
|
65
68
|
"allow-search": ""
|
|
66
69
|
}, {
|
|
67
70
|
default: withCtx(() => [
|
|
@@ -74,7 +77,7 @@ const _sfc_main = defineComponent({
|
|
|
74
77
|
}), 128))
|
|
75
78
|
]),
|
|
76
79
|
_: 1
|
|
77
|
-
}, 8, ["modelValue"])
|
|
80
|
+
}, 8, ["modelValue", "placeholder"])
|
|
78
81
|
]),
|
|
79
82
|
_: 1
|
|
80
83
|
})
|
|
@@ -21,7 +21,9 @@ const _sfc_main = defineComponent({
|
|
|
21
21
|
userInfo: {}
|
|
22
22
|
},
|
|
23
23
|
emits: ["change"],
|
|
24
|
-
setup(__props, { emit }) {
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
const emit = __emit;
|
|
25
27
|
const props = __props;
|
|
26
28
|
const _maxSelect = props.maxSelect || 100;
|
|
27
29
|
const selectedData = ref([]);
|
|
@@ -34,6 +36,7 @@ const _sfc_main = defineComponent({
|
|
|
34
36
|
total: 0
|
|
35
37
|
});
|
|
36
38
|
const filter = ref(null);
|
|
39
|
+
const mpName = ((_c = (_b = (_a = window.situoyun) == null ? void 0 : _a.config) == null ? void 0 : _b.oem_config) == null ? void 0 : _c.mp_name) || "\u516C\u4F17\u53F7";
|
|
37
40
|
const columns = [
|
|
38
41
|
{
|
|
39
42
|
title: "\u6807\u9898",
|
|
@@ -41,7 +44,7 @@ const _sfc_main = defineComponent({
|
|
|
41
44
|
slotName: "title"
|
|
42
45
|
},
|
|
43
46
|
{
|
|
44
|
-
title:
|
|
47
|
+
title: `\u6240\u5C5E${mpName}`,
|
|
45
48
|
dataIndex: "account_name",
|
|
46
49
|
slotName: "account_name"
|
|
47
50
|
},
|
|
@@ -15,9 +15,10 @@ const _sfc_main = defineComponent({
|
|
|
15
15
|
userInfo: {}
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:group_id", "search"],
|
|
18
|
-
setup(__props, { emit }) {
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
19
|
const props = __props;
|
|
20
20
|
const column_id = ref(0);
|
|
21
|
+
const emit = __emit;
|
|
21
22
|
const filter = ref({
|
|
22
23
|
keywords: "",
|
|
23
24
|
type: "",
|
|
@@ -13,7 +13,8 @@ const _sfc_main = defineComponent({
|
|
|
13
13
|
userInfo: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:column_id"],
|
|
16
|
-
setup(__props, { emit }) {
|
|
16
|
+
setup(__props, { emit: __emit }) {
|
|
17
|
+
const emit = __emit;
|
|
17
18
|
const props = __props;
|
|
18
19
|
const selectAlais = ref("");
|
|
19
20
|
const treeOptions = {
|
|
@@ -25,7 +25,8 @@ const _sfc_main = defineComponent({
|
|
|
25
25
|
userInfo: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["change"],
|
|
28
|
-
setup(__props, { emit }) {
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const emit = __emit;
|
|
29
30
|
const props = __props;
|
|
30
31
|
const _maxSelect = props.maxSelect || 100;
|
|
31
32
|
const selectedData = ref([]);
|
|
@@ -14,8 +14,9 @@ const _sfc_main = defineComponent({
|
|
|
14
14
|
selectData: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:selectData"],
|
|
17
|
-
setup(__props, { emit }) {
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
18
|
const props = __props;
|
|
19
|
+
const emit = __emit;
|
|
19
20
|
const remove = (item, index) => {
|
|
20
21
|
const arr = props.selectData;
|
|
21
22
|
arr.splice(index, 1);
|
package/es/dataTags/component.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode,
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, unref, withCtx, createElementVNode, renderList, createVNode, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Popover, Tag, Tooltip } from "@arco-design/web-vue";
|
|
3
3
|
import { kongo_source_map, mp_type_map, contentList_list_type_map } from "../utils/typeMap.js";
|
|
4
4
|
import { docThumbMap } from "../utils/doc.js";
|
|
5
5
|
import _sfc_main$1 from "../typeIcons/component.js";
|
|
6
|
-
const _hoisted_1 = {
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "doc-tags-container"
|
|
9
|
+
};
|
|
7
10
|
const _hoisted_2 = { class: "doc-tags-thumb-ul" };
|
|
8
11
|
const _hoisted_3 = ["src"];
|
|
9
12
|
const _hoisted_4 = { key: 0 };
|
|
@@ -51,7 +54,7 @@ const _sfc_main = defineComponent({
|
|
|
51
54
|
return (_ctx, _cache) => {
|
|
52
55
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
53
56
|
createCommentVNode(" \u539F\u521B/\u63A8\u8350/\u654F\u611F\u8BCD/\u5C01\u9762\u51E0\u56FE/ "),
|
|
54
|
-
|
|
57
|
+
_ctx.item ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
55
58
|
_ctx.item.catalog === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
56
59
|
_ctx.popverThumb && thumbList.value.length ? (openBlock(), createBlock(unref(Popover), {
|
|
57
60
|
key: 0,
|
|
@@ -160,7 +163,25 @@ const _sfc_main = defineComponent({
|
|
|
160
163
|
}, 8, ["class"])
|
|
161
164
|
]),
|
|
162
165
|
_: 1
|
|
163
|
-
}, 8, ["content"])) : createCommentVNode("v-if", true)
|
|
166
|
+
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
167
|
+
_ctx.item.push_state === 3 ? (openBlock(), createBlock(unref(Tooltip), {
|
|
168
|
+
key: 5,
|
|
169
|
+
content: "\u63A8\u9001\u6210\u529F",
|
|
170
|
+
position: "top"
|
|
171
|
+
}, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createVNode(unref(Tag), {
|
|
174
|
+
size: "small",
|
|
175
|
+
class: normalizeClass([{ disabled: _ctx.disabled }, "star"])
|
|
176
|
+
}, {
|
|
177
|
+
default: withCtx(() => [
|
|
178
|
+
createTextVNode("\u5DF2\u63A8\u9001")
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["class"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
})) : createCommentVNode("v-if", true)
|
|
164
185
|
], 64)) : _ctx.item.catalog === "kongo" ? (openBlock(), createBlock(unref(Tag), {
|
|
165
186
|
key: 1,
|
|
166
187
|
size: "small"
|
|
@@ -184,7 +205,7 @@ const _sfc_main = defineComponent({
|
|
|
184
205
|
})) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
185
206
|
_ctx.item.list_type ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(contentList_list_type_map)[_ctx.item.list_type]), 1)) : (openBlock(), createElementBlock("span", _hoisted_5, "--"))
|
|
186
207
|
], 64))
|
|
187
|
-
])
|
|
208
|
+
])) : createCommentVNode("v-if", true)
|
|
188
209
|
], 2112);
|
|
189
210
|
};
|
|
190
211
|
}
|
|
@@ -15,7 +15,8 @@ const _sfc_main = defineComponent({
|
|
|
15
15
|
hashId: {}
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:visible", "submit"],
|
|
18
|
-
setup(__props, { emit }) {
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const emit = __emit;
|
|
19
20
|
const props = __props;
|
|
20
21
|
const metaInfoFormRef = ref();
|
|
21
22
|
const editorDataPubInfo = ref(null);
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, toRaw } from "vue";
|
|
2
|
-
import { Form, FormItem, Input, InputTag, Select, Option, DatePicker, Switch, InputNumber, Message } from "@arco-design/web-vue";
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, toRaw } from "vue";
|
|
2
|
+
import { Form, FormItem, Input, InputTag, Select, Option, DatePicker, Switch, InputNumber, RadioGroup, Radio, Message } from "@arco-design/web-vue";
|
|
3
|
+
import { IconInfoCircle } from "@arco-design/web-vue/es/icon";
|
|
3
4
|
import { docSeries } from "../../utils/doc.js";
|
|
4
5
|
import _sfc_main$1 from "../../selectThumb/component.js";
|
|
5
|
-
import restaurants from "../script/restaurants.js";
|
|
6
6
|
import { getAllDutyEditor } from "../script/api.js";
|
|
7
7
|
import { DEFAULT_BASE_API } from "../../config.js";
|
|
8
8
|
import { validateForm } from "../../utils/index.js";
|
|
9
|
+
import useLoadSourceInfo from "../../hooks/source.js";
|
|
10
|
+
const _hoisted_1 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "silence-options"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_2 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "info"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_3 = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "info"
|
|
21
|
+
};
|
|
9
22
|
const _sfc_main = defineComponent({
|
|
10
23
|
__name: "metaInfoForm",
|
|
11
24
|
props: {
|
|
12
25
|
initData: {},
|
|
13
|
-
BASE_API: {}
|
|
26
|
+
BASE_API: {},
|
|
27
|
+
sourceStore: {}
|
|
14
28
|
},
|
|
15
29
|
setup(__props, { expose: __expose }) {
|
|
16
30
|
const props = __props;
|
|
17
31
|
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
32
|
+
const { SourceInfo, getSourceInfoHandle } = useLoadSourceInfo(BASE_API);
|
|
18
33
|
const metaInfoFormRef = ref();
|
|
19
34
|
const form = ref({
|
|
20
35
|
title: "",
|
|
@@ -42,8 +57,14 @@ const _sfc_main = defineComponent({
|
|
|
42
57
|
ori_thumbup_count: 0,
|
|
43
58
|
comment_available: false,
|
|
44
59
|
is_recommend: false,
|
|
45
|
-
album_status: false
|
|
60
|
+
album_status: false,
|
|
61
|
+
mourn_style: 0
|
|
46
62
|
});
|
|
63
|
+
const silenceOptions = ref(false);
|
|
64
|
+
const tips = ref([
|
|
65
|
+
"\u542F\u7528\u6B64\u9009\u9879\u540E\u8BE5\u7A3F\u4EF6\u5C06\u5728\u5BA2\u6237\u7AEF\u4FE1\u606F\u6D41\u5185\u4EE5\u9ED8\u8BA4\u9ED1\u767D\u6837\u5F0F\u5448\u73B0\u3002\u8BE5\u9009\u9879\u9002\u7528\u4E8E\uFF1A\u4EC5\u9700\u8981\u6307\u5B9A\u5185\u5BB9\u9ED8\u54C0\uFF0C\u65E0\u9700\u5BA2\u6237\u7AEF\u5168\u5C40\u9ED8\u54C0\u7684\u573A\u666F\u3002",
|
|
66
|
+
"\u542F\u7528\u6B64\u9009\u9879\u540E\u8BE5\u7A3F\u4EF6\u5C06\u5728\u5BA2\u6237\u7AEF\u5F3A\u5236\u5F69\u8272\u663E\u793A\uFF0C\u4E0D\u53D7\u5168\u5C40\u9ED8\u54C0\u914D\u7F6E\u7684\u5F71\u54CD\u3002\u8BE5\u9009\u9879\u9002\u7528\u4E8E\uFF1A\u5F53\u5BA2\u6237\u7AEF\u542F\u7528\u4E86\u5168\u5C40\u9ED8\u54C0\u6216\u9891\u9053\u9ED8\u54C0\u65F6\uFF0C\u671F\u671B\u6307\u5B9A\u5185\u5BB9\u5728\u4FE1\u606F\u6D41\u4FDD\u6301\u6B63\u5E38\u5F69\u8272\u663E\u793A\u7684\u573A\u666F\u3002"
|
|
67
|
+
]);
|
|
47
68
|
const rules = {
|
|
48
69
|
title: [
|
|
49
70
|
{ required: true, message: "\u8BF7\u8F93\u5165\u4E3B\u6807\u9898" },
|
|
@@ -177,6 +198,23 @@ const _sfc_main = defineComponent({
|
|
|
177
198
|
data.album_status = data.album_status !== "0";
|
|
178
199
|
Object.assign(form.value, data);
|
|
179
200
|
};
|
|
201
|
+
watch(silenceOptions, (newVal, oldVal) => {
|
|
202
|
+
if (!newVal) {
|
|
203
|
+
form.value.mourn_style = 0;
|
|
204
|
+
} else if (!form.value.mourn_style) {
|
|
205
|
+
form.value.mourn_style = 1;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
watch(
|
|
209
|
+
() => form.value.mourn_style,
|
|
210
|
+
(value) => {
|
|
211
|
+
form.value.mourn_style = Number(value);
|
|
212
|
+
if (value !== 0) {
|
|
213
|
+
silenceOptions.value = true;
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{ immediate: true }
|
|
217
|
+
);
|
|
180
218
|
watch(
|
|
181
219
|
() => props.initData,
|
|
182
220
|
() => {
|
|
@@ -188,6 +226,11 @@ const _sfc_main = defineComponent({
|
|
|
188
226
|
);
|
|
189
227
|
onMounted(() => {
|
|
190
228
|
getAllDutyEditorOption();
|
|
229
|
+
if (props.sourceStore) {
|
|
230
|
+
SourceInfo.value = [...props.sourceStore];
|
|
231
|
+
} else {
|
|
232
|
+
getSourceInfoHandle();
|
|
233
|
+
}
|
|
191
234
|
});
|
|
192
235
|
__expose({
|
|
193
236
|
getFormData
|
|
@@ -347,7 +390,7 @@ const _sfc_main = defineComponent({
|
|
|
347
390
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
348
391
|
}, {
|
|
349
392
|
default: withCtx(() => [
|
|
350
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(
|
|
393
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(SourceInfo), (item) => {
|
|
351
394
|
return openBlock(), createBlock(unref(Option), {
|
|
352
395
|
key: item.value,
|
|
353
396
|
value: item.value,
|
|
@@ -611,7 +654,49 @@ const _sfc_main = defineComponent({
|
|
|
611
654
|
_: 1
|
|
612
655
|
}, 512), [
|
|
613
656
|
[vShow, isAlbumStatus.value]
|
|
614
|
-
])
|
|
657
|
+
]),
|
|
658
|
+
createVNode(unref(FormItem), {
|
|
659
|
+
class: "silence horizontal",
|
|
660
|
+
field: "silenceOptions",
|
|
661
|
+
label: "\u9ED8\u54C0\u9009\u9879"
|
|
662
|
+
}, {
|
|
663
|
+
default: withCtx(() => [
|
|
664
|
+
createVNode(unref(Switch), {
|
|
665
|
+
modelValue: silenceOptions.value,
|
|
666
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => silenceOptions.value = $event)
|
|
667
|
+
}, null, 8, ["modelValue"]),
|
|
668
|
+
silenceOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
669
|
+
createVNode(unref(RadioGroup), {
|
|
670
|
+
modelValue: form.value.mourn_style,
|
|
671
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => form.value.mourn_style = $event)
|
|
672
|
+
}, {
|
|
673
|
+
default: withCtx(() => [
|
|
674
|
+
createVNode(unref(Radio), { value: 1 }, {
|
|
675
|
+
default: withCtx(() => [
|
|
676
|
+
createTextVNode(" \u9ED8\u54C0\u6A21\u5F0F")
|
|
677
|
+
]),
|
|
678
|
+
_: 1
|
|
679
|
+
}),
|
|
680
|
+
createVNode(unref(Radio), { value: 2 }, {
|
|
681
|
+
default: withCtx(() => [
|
|
682
|
+
createTextVNode("\u975E\u9ED8\u54C0\u6A21\u5F0F")
|
|
683
|
+
]),
|
|
684
|
+
_: 1
|
|
685
|
+
})
|
|
686
|
+
]),
|
|
687
|
+
_: 1
|
|
688
|
+
}, 8, ["modelValue"]),
|
|
689
|
+
form.value.mourn_style == 1 ? (openBlock(), createElementBlock("p", _hoisted_2, [
|
|
690
|
+
createVNode(unref(IconInfoCircle)),
|
|
691
|
+
createTextVNode(toDisplayString(tips.value[0]), 1)
|
|
692
|
+
])) : form.value.mourn_style == 2 ? (openBlock(), createElementBlock("p", _hoisted_3, [
|
|
693
|
+
createVNode(unref(IconInfoCircle)),
|
|
694
|
+
createTextVNode(toDisplayString(tips.value[1]), 1)
|
|
695
|
+
])) : createCommentVNode("v-if", true)
|
|
696
|
+
])) : createCommentVNode("v-if", true)
|
|
697
|
+
]),
|
|
698
|
+
_: 1
|
|
699
|
+
})
|
|
615
700
|
]),
|
|
616
701
|
_: 1
|
|
617
702
|
}, 8, ["model"]);
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
.edit-meta-info-dialog-body .style-form-item .title {
|
|
9
9
|
max-width: 100%;
|
|
10
10
|
color: var(--color-text-2);
|
|
11
|
-
font-size: 14px;
|
|
12
11
|
font-weight: 400;
|
|
12
|
+
font-size: 14px;
|
|
13
13
|
white-space: normal;
|
|
14
14
|
}
|
|
15
15
|
.edit-meta-info-dialog-body .select-thumb-wrap {
|
|
@@ -18,3 +18,20 @@
|
|
|
18
18
|
.edit-meta-info-dialog-body .input-w {
|
|
19
19
|
width: 450px;
|
|
20
20
|
}
|
|
21
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content {
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content .arco-switch {
|
|
25
|
+
margin: 4px 0;
|
|
26
|
+
}
|
|
27
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content .silence-options {
|
|
28
|
+
margin-top: 20px;
|
|
29
|
+
margin-left: -75px;
|
|
30
|
+
}
|
|
31
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content .silence-options .info {
|
|
32
|
+
margin-top: 12px;
|
|
33
|
+
padding-left: 5px;
|
|
34
|
+
color: #878e96;
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
line-height: 1.5;
|
|
37
|
+
}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
.edit-meta-info-dialog-body {
|
|
2
2
|
padding: 0;
|
|
3
|
+
|
|
3
4
|
.style-form-item {
|
|
4
5
|
position: relative;
|
|
5
6
|
top: -10px;
|
|
7
|
+
|
|
6
8
|
.title {
|
|
7
9
|
max-width: 100%;
|
|
8
10
|
color: var(--color-text-2);
|
|
9
|
-
font-size: 14px;
|
|
10
11
|
font-weight: 400;
|
|
12
|
+
font-size: 14px;
|
|
11
13
|
white-space: normal;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
.select-thumb-wrap {
|
|
15
18
|
margin-left: 20.8%;
|
|
16
19
|
}
|
|
20
|
+
|
|
17
21
|
.horizontal {
|
|
18
22
|
// display: flex;
|
|
19
23
|
// align-items: center;
|
|
@@ -24,7 +28,33 @@
|
|
|
24
28
|
// text-align: right;
|
|
25
29
|
// }
|
|
26
30
|
}
|
|
31
|
+
|
|
27
32
|
.input-w {
|
|
28
33
|
width: 450px;
|
|
29
34
|
}
|
|
35
|
+
|
|
36
|
+
.silence {
|
|
37
|
+
.arco-form-item-wrapper-col {
|
|
38
|
+
.arco-form-item-content {
|
|
39
|
+
display: block;
|
|
40
|
+
|
|
41
|
+
.arco-switch {
|
|
42
|
+
margin: 4px 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.silence-options {
|
|
46
|
+
margin-top: 20px;
|
|
47
|
+
margin-left: -75px;
|
|
48
|
+
|
|
49
|
+
.info {
|
|
50
|
+
margin-top: 12px;
|
|
51
|
+
padding-left: 5px;
|
|
52
|
+
color: #878e96;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
line-height: 1.5;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
30
60
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getConfiguration(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
declare const useLoadSourceInfo: (BASE_API: string) => {
|
|
6
|
+
SourceInfo: import("vue").Ref<any>;
|
|
7
|
+
getSourceInfoHandle: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export default useLoadSourceInfo;
|