@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
|
@@ -22,10 +22,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
22
22
|
defaultSelectedData: {},
|
|
23
23
|
maxSelect: {},
|
|
24
24
|
typeData: {},
|
|
25
|
-
userStore: {}
|
|
25
|
+
userStore: {},
|
|
26
|
+
compoFilter: { type: Boolean, default: false }
|
|
26
27
|
},
|
|
27
28
|
emits: ["update:visible", "comfirm"],
|
|
28
|
-
setup(__props, { emit }) {
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
var _a, _b, _c;
|
|
31
|
+
const emit = __emit;
|
|
29
32
|
const props = __props;
|
|
30
33
|
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
31
34
|
const visible = vue.computed({
|
|
@@ -36,6 +39,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
36
39
|
setVisible(value);
|
|
37
40
|
}
|
|
38
41
|
});
|
|
42
|
+
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";
|
|
39
43
|
const selectedData = vue.ref([]);
|
|
40
44
|
const hasSelected = vue.computed(() => {
|
|
41
45
|
return selectedData.value.length > 0;
|
|
@@ -187,6 +191,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
187
191
|
"type-data": typeDataController.value,
|
|
188
192
|
columns: typeDataController.value.compoType,
|
|
189
193
|
"user-info": vue.unref(userInfo),
|
|
194
|
+
"compo-filter": _ctx.compoFilter,
|
|
190
195
|
onChange: selectedDataChangeHandle
|
|
191
196
|
}, {
|
|
192
197
|
store: vue.withCtx(() => [
|
|
@@ -208,7 +213,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
208
213
|
}, 8, ["disabled"])
|
|
209
214
|
]),
|
|
210
215
|
_: 1
|
|
211
|
-
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
216
|
+
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info", "compo-filter"])) : vue.createCommentVNode("v-if", true)
|
|
212
217
|
]),
|
|
213
218
|
_: 1
|
|
214
219
|
})) : vue.createCommentVNode("v-if", true),
|
|
@@ -252,7 +257,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
252
257
|
})) : vue.createCommentVNode("v-if", true),
|
|
253
258
|
typeDataController.value.addMpAccount ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
|
|
254
259
|
key: "7",
|
|
255
|
-
title:
|
|
260
|
+
title: vue.unref(mpName)
|
|
256
261
|
}, {
|
|
257
262
|
default: vue.withCtx(() => [
|
|
258
263
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$5, {
|
|
@@ -287,10 +292,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
287
292
|
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
288
293
|
]),
|
|
289
294
|
_: 1
|
|
290
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
295
|
+
}, 8, ["title"])) : vue.createCommentVNode("v-if", true),
|
|
291
296
|
typeDataController.value.addMpContent ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
|
|
292
297
|
key: "8",
|
|
293
|
-
title:
|
|
298
|
+
title: `${vue.unref(mpName)}\u5185\u5BB9`
|
|
294
299
|
}, {
|
|
295
300
|
default: vue.withCtx(() => [
|
|
296
301
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$6, {
|
|
@@ -325,7 +330,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
325
330
|
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
326
331
|
]),
|
|
327
332
|
_: 1
|
|
328
|
-
})) : vue.createCommentVNode("v-if", true)
|
|
333
|
+
}, 8, ["title"])) : vue.createCommentVNode("v-if", true)
|
|
329
334
|
]),
|
|
330
335
|
_: 1
|
|
331
336
|
})
|
|
@@ -12,9 +12,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
12
12
|
userInfo: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:group_id", "search"],
|
|
15
|
-
setup(__props, { emit }) {
|
|
16
|
-
const props = __props;
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
17
16
|
const columnIdMap = typeMap.compoColumnsMap();
|
|
17
|
+
const props = __props;
|
|
18
|
+
const emit = __emit;
|
|
18
19
|
const filter = vue.ref({ keyword: "", columns: "" });
|
|
19
20
|
const groupId = vue.computed({
|
|
20
21
|
get() {
|
|
@@ -22,11 +22,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
22
22
|
outsideSelectData: {},
|
|
23
23
|
defaultSelectedData: {},
|
|
24
24
|
typeData: {},
|
|
25
|
-
userInfo: {}
|
|
25
|
+
userInfo: {},
|
|
26
|
+
compoFilter: { type: Boolean }
|
|
26
27
|
},
|
|
27
28
|
emits: ["change"],
|
|
28
|
-
setup(__props, { emit }) {
|
|
29
|
-
const props = __props;
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
30
|
const columnIdMap = (compo) => {
|
|
31
31
|
if ((compo == null ? void 0 : compo.term_switch) === 1) {
|
|
32
32
|
return "PC\u6A21\u5757";
|
|
@@ -34,6 +34,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
34
34
|
const _type = typeMap.compoColumnsMap();
|
|
35
35
|
return _type[compo.columns];
|
|
36
36
|
};
|
|
37
|
+
const emit = __emit;
|
|
38
|
+
const props = __props;
|
|
37
39
|
const _maxSelect = props.maxSelect || 100;
|
|
38
40
|
const selectedData = vue.ref([]);
|
|
39
41
|
const tempSelectedData = vue.computed(() => {
|
|
@@ -163,6 +165,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
163
165
|
v._type = 2;
|
|
164
166
|
return v;
|
|
165
167
|
}) || [];
|
|
168
|
+
if (props.compoFilter) {
|
|
169
|
+
mediaFileData.value = mediaFileData.value.filter(
|
|
170
|
+
(x) => x.term_switch !== 1
|
|
171
|
+
);
|
|
172
|
+
}
|
|
166
173
|
}
|
|
167
174
|
};
|
|
168
175
|
const getGroupData = async () => {
|
|
@@ -12,8 +12,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
12
12
|
type: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:group_id", "search"],
|
|
15
|
-
setup(__props, { emit }) {
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
16
|
const props = __props;
|
|
17
|
+
const emit = __emit;
|
|
17
18
|
const filter = vue.ref({ keyword: "", relation_type: "" });
|
|
18
19
|
const groupId = vue.computed({
|
|
19
20
|
get() {
|
|
@@ -25,7 +25,8 @@ const _sfc_main = vue.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 = vue.ref([]);
|
|
@@ -10,8 +10,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
10
10
|
group_id: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:group_id", "search"],
|
|
13
|
-
setup(__props, { emit }) {
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
14
|
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
15
16
|
const filter = vue.ref({ type: "", name: "" });
|
|
16
17
|
vue.computed({
|
|
17
18
|
get() {
|
|
@@ -24,7 +24,8 @@ const _sfc_main = vue.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 = vue.ref([]);
|
|
@@ -7,8 +7,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
7
7
|
...{ name: "MpAccountFilter" },
|
|
8
8
|
__name: "index",
|
|
9
9
|
emits: ["search"],
|
|
10
|
-
setup(__props, { emit }) {
|
|
10
|
+
setup(__props, { emit: __emit }) {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
const emit = __emit;
|
|
11
13
|
const filter = vue.ref({ mp_name: "", mp_type: "" });
|
|
14
|
+
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";
|
|
12
15
|
const typeOptions = vue.computed(() => {
|
|
13
16
|
const arr = Object.keys(typeMap.mp_type_map).map((key) => {
|
|
14
17
|
return {
|
|
@@ -50,9 +53,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
50
53
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.mp_name = $event),
|
|
51
54
|
class: "filter-item",
|
|
52
55
|
"allow-clear": "",
|
|
53
|
-
placeholder:
|
|
56
|
+
placeholder: `\u8BF7\u8F93\u5165${vue.unref(mpName)}\u540D\u79F0`,
|
|
54
57
|
onPressEnter: handleSearch
|
|
55
|
-
}, null, 8, ["modelValue"])
|
|
58
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
56
59
|
]),
|
|
57
60
|
_: 1
|
|
58
61
|
})
|
|
@@ -30,7 +30,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
30
30
|
defaultSelectedData: {}
|
|
31
31
|
},
|
|
32
32
|
emits: ["change"],
|
|
33
|
-
setup(__props, { emit }) {
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
var _a, _b, _c;
|
|
35
|
+
const emit = __emit;
|
|
34
36
|
const props = __props;
|
|
35
37
|
const _maxSelect = props.maxSelect || 100;
|
|
36
38
|
const selectedData = vue.ref([]);
|
|
@@ -44,8 +46,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
44
46
|
});
|
|
45
47
|
const filter = vue.ref(null);
|
|
46
48
|
const scrollPercent = { y: "100%" };
|
|
49
|
+
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";
|
|
47
50
|
const columns = [
|
|
48
|
-
{ title:
|
|
51
|
+
{ title: `${mpName}\u540D\u79F0`, dataIndex: "mp_name", slotName: "mp_name" },
|
|
49
52
|
{ title: "\u5934\u50CF", dataIndex: "mp_logo", slotName: "mp_logo" },
|
|
50
53
|
{ title: "\u8D26\u53F7\u7C7B\u578B", dataIndex: "mp_type", slotName: "mp_type" },
|
|
51
54
|
{ title: "\u8FD0\u8425\u8005", dataIndex: "mp_user_name", slotName: "mp_user_name" },
|
|
@@ -11,11 +11,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
11
11
|
userInfo: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:group_id", "search"],
|
|
14
|
-
setup(__props, { emit }) {
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
15
|
+
var _a, _b, _c;
|
|
15
16
|
const props = __props;
|
|
17
|
+
const emit = __emit;
|
|
16
18
|
const filter = vue.ref({ wd: "", account_uid: "", order: 1 });
|
|
17
19
|
const typeOptions = vue.ref([{ mp_name: "\u5168\u90E8", uid: "all" }]);
|
|
18
20
|
const limit = vue.ref(100);
|
|
21
|
+
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";
|
|
19
22
|
vue.computed({
|
|
20
23
|
get() {
|
|
21
24
|
return props.group_id;
|
|
@@ -62,7 +65,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
62
65
|
modelValue: filter.value.account_uid,
|
|
63
66
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.account_uid = $event),
|
|
64
67
|
class: "filter-item",
|
|
65
|
-
placeholder:
|
|
68
|
+
placeholder: vue.unref(mpName),
|
|
66
69
|
"allow-search": ""
|
|
67
70
|
}, {
|
|
68
71
|
default: vue.withCtx(() => [
|
|
@@ -75,7 +78,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
75
78
|
}), 128))
|
|
76
79
|
]),
|
|
77
80
|
_: 1
|
|
78
|
-
}, 8, ["modelValue"])
|
|
81
|
+
}, 8, ["modelValue", "placeholder"])
|
|
79
82
|
]),
|
|
80
83
|
_: 1
|
|
81
84
|
})
|
|
@@ -22,7 +22,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
22
22
|
userInfo: {}
|
|
23
23
|
},
|
|
24
24
|
emits: ["change"],
|
|
25
|
-
setup(__props, { emit }) {
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
var _a, _b, _c;
|
|
27
|
+
const emit = __emit;
|
|
26
28
|
const props = __props;
|
|
27
29
|
const _maxSelect = props.maxSelect || 100;
|
|
28
30
|
const selectedData = vue.ref([]);
|
|
@@ -35,6 +37,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
35
37
|
total: 0
|
|
36
38
|
});
|
|
37
39
|
const filter = vue.ref(null);
|
|
40
|
+
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
41
|
const columns = [
|
|
39
42
|
{
|
|
40
43
|
title: "\u6807\u9898",
|
|
@@ -42,7 +45,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
42
45
|
slotName: "title"
|
|
43
46
|
},
|
|
44
47
|
{
|
|
45
|
-
title:
|
|
48
|
+
title: `\u6240\u5C5E${mpName}`,
|
|
46
49
|
dataIndex: "account_name",
|
|
47
50
|
slotName: "account_name"
|
|
48
51
|
},
|
|
@@ -16,9 +16,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
16
16
|
userInfo: {}
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:group_id", "search"],
|
|
19
|
-
setup(__props, { emit }) {
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
20
|
const props = __props;
|
|
21
21
|
const column_id = vue.ref(0);
|
|
22
|
+
const emit = __emit;
|
|
22
23
|
const filter = vue.ref({
|
|
23
24
|
keywords: "",
|
|
24
25
|
type: "",
|
|
@@ -14,7 +14,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
14
|
userInfo: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:column_id"],
|
|
17
|
-
setup(__props, { emit }) {
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const emit = __emit;
|
|
18
19
|
const props = __props;
|
|
19
20
|
const selectAlais = vue.ref("");
|
|
20
21
|
const treeOptions = {
|
|
@@ -26,7 +26,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
26
26
|
userInfo: {}
|
|
27
27
|
},
|
|
28
28
|
emits: ["change"],
|
|
29
|
-
setup(__props, { emit }) {
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
const emit = __emit;
|
|
30
31
|
const props = __props;
|
|
31
32
|
const _maxSelect = props.maxSelect || 100;
|
|
32
33
|
const selectedData = vue.ref([]);
|
|
@@ -15,8 +15,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
15
15
|
selectData: {}
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:selectData"],
|
|
18
|
-
setup(__props, { emit }) {
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
19
|
const props = __props;
|
|
20
|
+
const emit = __emit;
|
|
20
21
|
const remove = (item, index) => {
|
|
21
22
|
const arr = props.selectData;
|
|
22
23
|
arr.splice(index, 1);
|
|
@@ -4,7 +4,10 @@ var webVue = require("@arco-design/web-vue");
|
|
|
4
4
|
var typeMap = require("../utils/typeMap.js");
|
|
5
5
|
var doc = require("../utils/doc.js");
|
|
6
6
|
var component = require("../typeIcons/component.js");
|
|
7
|
-
const _hoisted_1 = {
|
|
7
|
+
const _hoisted_1 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "doc-tags-container"
|
|
10
|
+
};
|
|
8
11
|
const _hoisted_2 = { class: "doc-tags-thumb-ul" };
|
|
9
12
|
const _hoisted_3 = ["src"];
|
|
10
13
|
const _hoisted_4 = { key: 0 };
|
|
@@ -52,7 +55,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
52
55
|
return (_ctx, _cache) => {
|
|
53
56
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
54
57
|
vue.createCommentVNode(" \u539F\u521B/\u63A8\u8350/\u654F\u611F\u8BCD/\u5C01\u9762\u51E0\u56FE/ "),
|
|
55
|
-
vue.
|
|
58
|
+
_ctx.item ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, [
|
|
56
59
|
_ctx.item.catalog === "doc" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
57
60
|
_ctx.popverThumb && thumbList.value.length ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Popover), {
|
|
58
61
|
key: 0,
|
|
@@ -161,7 +164,25 @@ const _sfc_main = vue.defineComponent({
|
|
|
161
164
|
}, 8, ["class"])
|
|
162
165
|
]),
|
|
163
166
|
_: 1
|
|
164
|
-
}, 8, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
167
|
+
}, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
168
|
+
_ctx.item.push_state === 3 ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tooltip), {
|
|
169
|
+
key: 5,
|
|
170
|
+
content: "\u63A8\u9001\u6210\u529F",
|
|
171
|
+
position: "top"
|
|
172
|
+
}, {
|
|
173
|
+
default: vue.withCtx(() => [
|
|
174
|
+
vue.createVNode(vue.unref(webVue.Tag), {
|
|
175
|
+
size: "small",
|
|
176
|
+
class: vue.normalizeClass([{ disabled: _ctx.disabled }, "star"])
|
|
177
|
+
}, {
|
|
178
|
+
default: vue.withCtx(() => [
|
|
179
|
+
vue.createTextVNode("\u5DF2\u63A8\u9001")
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["class"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
165
186
|
], 64)) : _ctx.item.catalog === "kongo" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tag), {
|
|
166
187
|
key: 1,
|
|
167
188
|
size: "small"
|
|
@@ -185,7 +206,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
185
206
|
})) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
|
|
186
207
|
_ctx.item.list_type ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(vue.unref(typeMap.contentList_list_type_map)[_ctx.item.list_type]), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_5, "--"))
|
|
187
208
|
], 64))
|
|
188
|
-
])
|
|
209
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
189
210
|
], 2112);
|
|
190
211
|
};
|
|
191
212
|
}
|
|
@@ -16,7 +16,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
16
16
|
hashId: {}
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:visible", "submit"],
|
|
19
|
-
setup(__props, { emit }) {
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const emit = __emit;
|
|
20
21
|
const props = __props;
|
|
21
22
|
const metaInfoFormRef = vue.ref();
|
|
22
23
|
const editorDataPubInfo = vue.ref(null);
|
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
4
5
|
var doc = require("../../utils/doc.js");
|
|
5
6
|
var component = require("../../selectThumb/component.js");
|
|
6
|
-
var restaurants = require("../script/restaurants.js");
|
|
7
7
|
var api = require("../script/api.js");
|
|
8
8
|
var config = require("../../config.js");
|
|
9
9
|
var index = require("../../utils/index.js");
|
|
10
|
+
var source = require("../../hooks/source.js");
|
|
11
|
+
const _hoisted_1 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "silence-options"
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_2 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "info"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_3 = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "info"
|
|
22
|
+
};
|
|
10
23
|
const _sfc_main = vue.defineComponent({
|
|
11
24
|
__name: "metaInfoForm",
|
|
12
25
|
props: {
|
|
13
26
|
initData: {},
|
|
14
|
-
BASE_API: {}
|
|
27
|
+
BASE_API: {},
|
|
28
|
+
sourceStore: {}
|
|
15
29
|
},
|
|
16
30
|
setup(__props, { expose: __expose }) {
|
|
17
31
|
const props = __props;
|
|
18
32
|
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
33
|
+
const { SourceInfo, getSourceInfoHandle } = source["default"](BASE_API);
|
|
19
34
|
const metaInfoFormRef = vue.ref();
|
|
20
35
|
const form = vue.ref({
|
|
21
36
|
title: "",
|
|
@@ -43,8 +58,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
43
58
|
ori_thumbup_count: 0,
|
|
44
59
|
comment_available: false,
|
|
45
60
|
is_recommend: false,
|
|
46
|
-
album_status: false
|
|
61
|
+
album_status: false,
|
|
62
|
+
mourn_style: 0
|
|
47
63
|
});
|
|
64
|
+
const silenceOptions = vue.ref(false);
|
|
65
|
+
const tips = vue.ref([
|
|
66
|
+
"\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",
|
|
67
|
+
"\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"
|
|
68
|
+
]);
|
|
48
69
|
const rules = {
|
|
49
70
|
title: [
|
|
50
71
|
{ required: true, message: "\u8BF7\u8F93\u5165\u4E3B\u6807\u9898" },
|
|
@@ -178,6 +199,23 @@ const _sfc_main = vue.defineComponent({
|
|
|
178
199
|
data.album_status = data.album_status !== "0";
|
|
179
200
|
Object.assign(form.value, data);
|
|
180
201
|
};
|
|
202
|
+
vue.watch(silenceOptions, (newVal, oldVal) => {
|
|
203
|
+
if (!newVal) {
|
|
204
|
+
form.value.mourn_style = 0;
|
|
205
|
+
} else if (!form.value.mourn_style) {
|
|
206
|
+
form.value.mourn_style = 1;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
vue.watch(
|
|
210
|
+
() => form.value.mourn_style,
|
|
211
|
+
(value) => {
|
|
212
|
+
form.value.mourn_style = Number(value);
|
|
213
|
+
if (value !== 0) {
|
|
214
|
+
silenceOptions.value = true;
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{ immediate: true }
|
|
218
|
+
);
|
|
181
219
|
vue.watch(
|
|
182
220
|
() => props.initData,
|
|
183
221
|
() => {
|
|
@@ -189,6 +227,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
189
227
|
);
|
|
190
228
|
vue.onMounted(() => {
|
|
191
229
|
getAllDutyEditorOption();
|
|
230
|
+
if (props.sourceStore) {
|
|
231
|
+
SourceInfo.value = [...props.sourceStore];
|
|
232
|
+
} else {
|
|
233
|
+
getSourceInfoHandle();
|
|
234
|
+
}
|
|
192
235
|
});
|
|
193
236
|
__expose({
|
|
194
237
|
getFormData
|
|
@@ -348,7 +391,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
348
391
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
349
392
|
}, {
|
|
350
393
|
default: vue.withCtx(() => [
|
|
351
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(
|
|
394
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(SourceInfo), (item) => {
|
|
352
395
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
353
396
|
key: item.value,
|
|
354
397
|
value: item.value,
|
|
@@ -612,7 +655,49 @@ const _sfc_main = vue.defineComponent({
|
|
|
612
655
|
_: 1
|
|
613
656
|
}, 512), [
|
|
614
657
|
[vue.vShow, isAlbumStatus.value]
|
|
615
|
-
])
|
|
658
|
+
]),
|
|
659
|
+
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
660
|
+
class: "silence horizontal",
|
|
661
|
+
field: "silenceOptions",
|
|
662
|
+
label: "\u9ED8\u54C0\u9009\u9879"
|
|
663
|
+
}, {
|
|
664
|
+
default: vue.withCtx(() => [
|
|
665
|
+
vue.createVNode(vue.unref(webVue.Switch), {
|
|
666
|
+
modelValue: silenceOptions.value,
|
|
667
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => silenceOptions.value = $event)
|
|
668
|
+
}, null, 8, ["modelValue"]),
|
|
669
|
+
silenceOptions.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
670
|
+
vue.createVNode(vue.unref(webVue.RadioGroup), {
|
|
671
|
+
modelValue: form.value.mourn_style,
|
|
672
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => form.value.mourn_style = $event)
|
|
673
|
+
}, {
|
|
674
|
+
default: vue.withCtx(() => [
|
|
675
|
+
vue.createVNode(vue.unref(webVue.Radio), { value: 1 }, {
|
|
676
|
+
default: vue.withCtx(() => [
|
|
677
|
+
vue.createTextVNode(" \u9ED8\u54C0\u6A21\u5F0F")
|
|
678
|
+
]),
|
|
679
|
+
_: 1
|
|
680
|
+
}),
|
|
681
|
+
vue.createVNode(vue.unref(webVue.Radio), { value: 2 }, {
|
|
682
|
+
default: vue.withCtx(() => [
|
|
683
|
+
vue.createTextVNode("\u975E\u9ED8\u54C0\u6A21\u5F0F")
|
|
684
|
+
]),
|
|
685
|
+
_: 1
|
|
686
|
+
})
|
|
687
|
+
]),
|
|
688
|
+
_: 1
|
|
689
|
+
}, 8, ["modelValue"]),
|
|
690
|
+
form.value.mourn_style == 1 ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2, [
|
|
691
|
+
vue.createVNode(vue.unref(icon.IconInfoCircle)),
|
|
692
|
+
vue.createTextVNode(vue.toDisplayString(tips.value[0]), 1)
|
|
693
|
+
])) : form.value.mourn_style == 2 ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3, [
|
|
694
|
+
vue.createVNode(vue.unref(icon.IconInfoCircle)),
|
|
695
|
+
vue.createTextVNode(vue.toDisplayString(tips.value[1]), 1)
|
|
696
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
697
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
698
|
+
]),
|
|
699
|
+
_: 1
|
|
700
|
+
})
|
|
616
701
|
]),
|
|
617
702
|
_: 1
|
|
618
703
|
}, 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,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var request = require("../utils/request.js");
|
|
5
|
+
function getConfiguration(BASE_API, params) {
|
|
6
|
+
return request(BASE_API, {
|
|
7
|
+
url: `poplar/v2/settings`,
|
|
8
|
+
method: "get",
|
|
9
|
+
params
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
const useLoadSourceInfo = (BASE_API) => {
|
|
13
|
+
const SourceInfo = vue.ref([]);
|
|
14
|
+
const getSourceInfoHandle = async () => {
|
|
15
|
+
const res = await getConfiguration(BASE_API, {
|
|
16
|
+
domain_id: 1,
|
|
17
|
+
module: "doc_config",
|
|
18
|
+
key: "restaurants"
|
|
19
|
+
});
|
|
20
|
+
if (res.code === 0 && res.message) {
|
|
21
|
+
SourceInfo.value = JSON.parse(res.message[res.message.length - 1].value);
|
|
22
|
+
} else {
|
|
23
|
+
window.situoyun.doc_config = {
|
|
24
|
+
restaurants: []
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return {
|
|
29
|
+
SourceInfo,
|
|
30
|
+
getSourceInfoHandle
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
exports["default"] = useLoadSourceInfo;
|
|
34
|
+
exports.getConfiguration = getConfiguration;
|