@fecp/designer 5.5.5 → 5.5.7
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/es/_virtual/app.mjs +5 -0
- package/es/_virtual/app2.mjs +4 -0
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/api/index.mjs +30 -31
- package/es/designer/src/components/DocumentParam.vue.mjs +5 -3
- package/es/designer/src/components/RiskSchemeDialog.vue2.mjs +5 -3
- package/es/designer/src/components/TemplateDialog.vue.mjs +5 -3
- package/es/designer/src/layout/header/index.vue.mjs +4 -2
- package/es/designer/src/layout/index.vue.mjs +6 -4
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +6 -3
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +0 -3
- package/es/designer/src/packages/dialog/index.vue.mjs +6 -4
- package/es/designer/src/packages/dialog/index.vue2.mjs +6 -4
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +9 -7
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +9 -7
- package/es/designer/src/packages/eventFlow/dialog/action/Dialog.vue.mjs +5 -3
- package/es/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs +5 -3
- package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +5 -3
- package/es/designer/src/packages/form/components/DefaultValueEditor.vue.mjs +2 -2
- package/es/designer/src/packages/form/property/contract.vue.mjs +5 -3
- package/es/designer/src/packages/form/property/subTable.vue.mjs +5 -3
- package/es/designer/src/packages/form/property/widgets.vue.mjs +6 -4
- package/es/designer/src/packages/prod/index.vue.mjs +5 -3
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -4
- package/es/designer/src/utils/optionLoader.mjs +9 -7
- package/es/designer.css +214 -185
- package/es/node_modules/element-china-category-data/dist/app.mjs +77 -0
- package/es/packages/mobile/index.mjs +4 -0
- package/es/packages/mobile/src/components/all.mjs +4 -0
- package/es/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.mjs +2 -2
- package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +29 -25
- package/es/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.mjs +195 -0
- package/es/packages/mobile/src/components/form/fieldIndustry/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +3 -25
- package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +34 -7
- package/es/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.mjs +27 -0
- package/es/packages/mobile/src/components/form/fieldSubTitle/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.mjs +1 -1
- package/es/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.mjs +35 -16
- package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +2 -1
- package/es/packages/mobile/src/utils/common.mjs +28 -0
- package/es/packages/mobile/src/utils/datasource.mjs +354 -0
- package/es/packages/mobile/src/utils/optionUtil.mjs +63 -40
- package/es/packages/mobile/src/utils/parseRouteParams.mjs +41 -0
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/_virtual/app.js +5 -0
- package/lib/_virtual/app2.js +4 -0
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/api/index.js +30 -31
- package/lib/designer/src/components/DocumentParam.vue.js +4 -2
- package/lib/designer/src/components/RiskSchemeDialog.vue2.js +4 -2
- package/lib/designer/src/components/TemplateDialog.vue.js +4 -2
- package/lib/designer/src/layout/header/index.vue.js +3 -1
- package/lib/designer/src/layout/index.vue.js +5 -3
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +5 -2
- package/lib/designer/src/packages/dataLinkage/index.vue.js +0 -3
- package/lib/designer/src/packages/dialog/index.vue.js +5 -3
- package/lib/designer/src/packages/dialog/index.vue2.js +5 -3
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +8 -6
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +8 -6
- package/lib/designer/src/packages/eventFlow/dialog/action/Dialog.vue.js +4 -2
- package/lib/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.js +4 -2
- package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +4 -2
- package/lib/designer/src/packages/form/components/DefaultValueEditor.vue.js +2 -2
- package/lib/designer/src/packages/form/property/contract.vue.js +4 -2
- package/lib/designer/src/packages/form/property/subTable.vue.js +4 -2
- package/lib/designer/src/packages/form/property/widgets.vue.js +5 -3
- package/lib/designer/src/packages/prod/index.vue.js +4 -2
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -4
- package/lib/designer/src/utils/optionLoader.js +9 -7
- package/lib/designer.css +214 -185
- package/lib/node_modules/element-china-category-data/dist/app.js +77 -0
- package/lib/packages/mobile/index.js +48 -44
- package/lib/packages/mobile/src/components/all.js +48 -44
- package/lib/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.js +2 -2
- package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +28 -24
- package/lib/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.js +195 -0
- package/lib/packages/mobile/src/components/form/fieldIndustry/index.js +10 -0
- package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +2 -24
- package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +33 -6
- package/lib/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.js +27 -0
- package/lib/packages/mobile/src/components/form/fieldSubTitle/index.js +10 -0
- package/lib/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.js +1 -1
- package/lib/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.js +34 -15
- package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +2 -1
- package/lib/packages/mobile/src/utils/common.js +28 -0
- package/lib/packages/mobile/src/utils/datasource.js +354 -0
- package/lib/packages/mobile/src/utils/optionUtil.js +64 -41
- package/lib/packages/mobile/src/utils/parseRouteParams.js +41 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -1,69 +1,68 @@
|
|
|
1
|
-
import { post, postForm, get } from "../axios/index.mjs";
|
|
2
1
|
const api = {
|
|
3
|
-
login4dev: () => {
|
|
4
|
-
return post(`${$servers.base}/login4dev`);
|
|
2
|
+
login4dev: ($http) => {
|
|
3
|
+
return $http.post(`${$servers.base}/login4dev`);
|
|
5
4
|
},
|
|
6
|
-
getById: (id, showLoading = true) => {
|
|
7
|
-
return get(`${$servers.base}/design/getById/${id}`, showLoading);
|
|
5
|
+
getById: ($http, id, showLoading = true) => {
|
|
6
|
+
return $http.get(`${$servers.base}/design/getById/${id}`, showLoading);
|
|
8
7
|
},
|
|
9
|
-
updateById: (data) => {
|
|
10
|
-
return post(
|
|
8
|
+
updateById: ($http, data) => {
|
|
9
|
+
return $http.post(
|
|
11
10
|
`${$servers.base}/template/sysTemplate/update4DesignerV5`,
|
|
12
11
|
data
|
|
13
12
|
);
|
|
14
13
|
},
|
|
15
|
-
findAllDic: () => {
|
|
16
|
-
return post(`${$servers.base}/parm/sysParmDic/findAllDic`);
|
|
14
|
+
findAllDic: ($http) => {
|
|
15
|
+
return $http.post(`${$servers.base}/parm/sysParmDic/findAllDic`);
|
|
17
16
|
},
|
|
18
|
-
getDicDataByKey: (keyName) => {
|
|
19
|
-
return postForm(
|
|
17
|
+
getDicDataByKey: ($http, keyName) => {
|
|
18
|
+
return $http.postForm(
|
|
20
19
|
`${$servers.base}/parm/sysParmDic/getDicListByKeyFromCache`,
|
|
21
20
|
{ keyName }
|
|
22
21
|
);
|
|
23
22
|
},
|
|
24
|
-
findTemplateByPagePop: (data) => {
|
|
25
|
-
return post(`${$servers.base}/template/sysTemplate/findByPagePopV5`, data);
|
|
23
|
+
findTemplateByPagePop: ($http, data) => {
|
|
24
|
+
return $http.post(`${$servers.base}/template/sysTemplate/findByPagePopV5`, data);
|
|
26
25
|
},
|
|
27
|
-
getDataDicArea4Cascader: () => {
|
|
28
|
-
return post(
|
|
26
|
+
getDataDicArea4Cascader: ($http) => {
|
|
27
|
+
return $http.post(
|
|
29
28
|
`${$servers.base}/parm/sysParmDic/getDataDicArea4Cascader`,
|
|
30
29
|
null,
|
|
31
30
|
false
|
|
32
31
|
);
|
|
33
32
|
},
|
|
34
|
-
getDataDicTrade4Cascader: () => {
|
|
35
|
-
return post(
|
|
33
|
+
getDataDicTrade4Cascader: ($http) => {
|
|
34
|
+
return $http.post(
|
|
36
35
|
`${$servers.base}/parm/sysParmDic/getDataDicTrade4Cascader`,
|
|
37
36
|
null,
|
|
38
37
|
false
|
|
39
38
|
);
|
|
40
39
|
},
|
|
41
|
-
saveTemplateDialog: (data) => {
|
|
42
|
-
return post(`${$servers.base}/template/sysTemplateDialog/save`, data);
|
|
40
|
+
saveTemplateDialog: ($http, data) => {
|
|
41
|
+
return $http.post(`${$servers.base}/template/sysTemplateDialog/save`, data);
|
|
43
42
|
},
|
|
44
|
-
getAllTemplateDialog: () => {
|
|
45
|
-
return post(
|
|
43
|
+
getAllTemplateDialog: ($http) => {
|
|
44
|
+
return $http.post(
|
|
46
45
|
`${$servers.base}/template/sysTemplateDialog/getAllTemplate`,
|
|
47
46
|
null,
|
|
48
47
|
false
|
|
49
48
|
);
|
|
50
49
|
},
|
|
51
|
-
deleteTemplateDialog: (id) => {
|
|
52
|
-
return postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, {
|
|
50
|
+
deleteTemplateDialog: ($http, id) => {
|
|
51
|
+
return $http.postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, {
|
|
53
52
|
id
|
|
54
53
|
});
|
|
55
54
|
},
|
|
56
|
-
getProductConfig: () => {
|
|
57
|
-
return postForm(`${$servers.base}/design/getProductConfig`);
|
|
55
|
+
getProductConfig: ($http) => {
|
|
56
|
+
return $http.postForm(`${$servers.base}/design/getProductConfig`);
|
|
58
57
|
},
|
|
59
|
-
getModeNoList4Doc: () => {
|
|
60
|
-
return post(`${$servers.base}/docFileModeConfig/findList`, null, false);
|
|
58
|
+
getModeNoList4Doc: ($http) => {
|
|
59
|
+
return $http.post(`${$servers.base}/docFileModeConfig/findList`, null, false);
|
|
61
60
|
},
|
|
62
|
-
getModeNoList4Cont: () => {
|
|
63
|
-
return post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
|
|
61
|
+
getModeNoList4Cont: ($http) => {
|
|
62
|
+
return $http.post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
|
|
64
63
|
},
|
|
65
|
-
findRiskSchByPopPage4Designer: (data) => {
|
|
66
|
-
return post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
|
|
64
|
+
findRiskSchByPopPage4Designer: ($http, data) => {
|
|
65
|
+
return $http.post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
|
|
67
66
|
}
|
|
68
67
|
};
|
|
69
68
|
export {
|
|
@@ -7,7 +7,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
10
|
+
import { getCurrentInstance, computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
11
11
|
import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
12
12
|
import ValueSelector from "./ValueSelector.vue.mjs";
|
|
13
13
|
import api from "../api/index.mjs";
|
|
@@ -35,6 +35,8 @@ const _sfc_main = {
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["update:modelValue"],
|
|
37
37
|
setup(__props, { emit: __emit }) {
|
|
38
|
+
const currentInstance = getCurrentInstance();
|
|
39
|
+
const ctx = currentInstance.proxy;
|
|
38
40
|
const props = __props;
|
|
39
41
|
const emit = __emit;
|
|
40
42
|
const params = computed({
|
|
@@ -42,7 +44,7 @@ const _sfc_main = {
|
|
|
42
44
|
set: (val) => emit("update:modelValue", val)
|
|
43
45
|
});
|
|
44
46
|
const scenarioOptions = ref([]);
|
|
45
|
-
api.getModeNoList4Doc().then((data) => {
|
|
47
|
+
api.getModeNoList4Doc(ctx.$http).then((data) => {
|
|
46
48
|
scenarioOptions.value = data.map((item) => ({
|
|
47
49
|
label: item.modeName,
|
|
48
50
|
value: item.modeNo
|
|
@@ -150,7 +152,7 @@ const _sfc_main = {
|
|
|
150
152
|
};
|
|
151
153
|
}
|
|
152
154
|
};
|
|
153
|
-
const DocumentParam = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
155
|
+
const DocumentParam = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fef622ca"]]);
|
|
154
156
|
export {
|
|
155
157
|
DocumentParam as default
|
|
156
158
|
};
|
|
@@ -15,7 +15,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
|
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
|
-
import { computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
|
|
18
|
+
import { getCurrentInstance, computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
|
|
19
19
|
import { Search as search_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
20
20
|
import api from "../api/index.mjs";
|
|
21
21
|
/* empty css */
|
|
@@ -46,6 +46,8 @@ const _sfc_main = {
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["update:modelValue", "confirm", "close"],
|
|
48
48
|
setup(__props, { emit: __emit }) {
|
|
49
|
+
const currentInstance = getCurrentInstance();
|
|
50
|
+
const ctx = currentInstance.proxy;
|
|
49
51
|
const props = __props;
|
|
50
52
|
const emit = __emit;
|
|
51
53
|
const dialogVisible = computed({
|
|
@@ -84,7 +86,7 @@ const _sfc_main = {
|
|
|
84
86
|
if (searchText.value) {
|
|
85
87
|
params.dynamicQuery = searchText.value;
|
|
86
88
|
}
|
|
87
|
-
const data = await api.findRiskSchByPopPage4Designer(params);
|
|
89
|
+
const data = await api.findRiskSchByPopPage4Designer(ctx.$http, params);
|
|
88
90
|
schemeList.value = data.records || data.list || [];
|
|
89
91
|
total.value = schemeList.value.length;
|
|
90
92
|
} catch (error) {
|
|
@@ -235,7 +237,7 @@ const _sfc_main = {
|
|
|
235
237
|
};
|
|
236
238
|
}
|
|
237
239
|
};
|
|
238
|
-
const RiskSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
240
|
+
const RiskSchemeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b943b417"]]);
|
|
239
241
|
export {
|
|
240
242
|
RiskSchemeDialog as default
|
|
241
243
|
};
|
|
@@ -15,7 +15,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
|
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
|
-
import { computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
|
|
18
|
+
import { getCurrentInstance, computed, ref, watch, createBlock, openBlock, withCtx, createElementVNode, createVNode, withKeys, unref, createTextVNode } from "vue";
|
|
19
19
|
import { Search as search_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
20
20
|
import api from "../api/index.mjs";
|
|
21
21
|
/* empty css */
|
|
@@ -66,6 +66,8 @@ const _sfc_main = {
|
|
|
66
66
|
},
|
|
67
67
|
emits: ["update:modelValue", "confirm", "close"],
|
|
68
68
|
setup(__props, { emit: __emit }) {
|
|
69
|
+
const currentInstance = getCurrentInstance();
|
|
70
|
+
const ctx = currentInstance.proxy;
|
|
69
71
|
const props = __props;
|
|
70
72
|
const emit = __emit;
|
|
71
73
|
const dialogVisible = computed({
|
|
@@ -106,7 +108,7 @@ const _sfc_main = {
|
|
|
106
108
|
if (searchText.value) {
|
|
107
109
|
params.dynamicQuery = searchText.value;
|
|
108
110
|
}
|
|
109
|
-
const data = await api.findTemplateByPagePop(params);
|
|
111
|
+
const data = await api.findTemplateByPagePop(ctx.$http, params);
|
|
110
112
|
templateList.value = data.records || data.list || [];
|
|
111
113
|
total.value = data.total || 0;
|
|
112
114
|
} catch (error) {
|
|
@@ -249,7 +251,7 @@ const _sfc_main = {
|
|
|
249
251
|
};
|
|
250
252
|
}
|
|
251
253
|
};
|
|
252
|
-
const TemplateDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
254
|
+
const TemplateDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ea3685a4"]]);
|
|
253
255
|
export {
|
|
254
256
|
TemplateDialog as default
|
|
255
257
|
};
|
|
@@ -7,7 +7,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { computed, ref, reactive, createBlock, openBlock, withCtx, createElementVNode, createVNode, toDisplayString, unref, resolveDynamicComponent, createTextVNode } from "vue";
|
|
10
|
+
import { getCurrentInstance, computed, ref, reactive, createBlock, openBlock, withCtx, createElementVNode, createVNode, toDisplayString, unref, resolveDynamicComponent, createTextVNode } from "vue";
|
|
11
11
|
import _imports_0 from "../../assets/logo.png.mjs";
|
|
12
12
|
import { UploadFilled as upload_filled_default, DocumentAdd as document_add_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
13
13
|
import TemplateDialog from "../../components/TemplateDialog.vue.mjs";
|
|
@@ -39,6 +39,8 @@ const _hoisted_9 = { class: "dialog-footer" };
|
|
|
39
39
|
const _sfc_main = {
|
|
40
40
|
__name: "index",
|
|
41
41
|
setup(__props) {
|
|
42
|
+
const currentInstance = getCurrentInstance();
|
|
43
|
+
const ctx = currentInstance.proxy;
|
|
42
44
|
const editingHeaderBtn = computed(() => {
|
|
43
45
|
switch (store.getters.editingType) {
|
|
44
46
|
case "table":
|
|
@@ -101,7 +103,7 @@ const _sfc_main = {
|
|
|
101
103
|
templateName: data.templateName,
|
|
102
104
|
context: JSON.stringify(data)
|
|
103
105
|
};
|
|
104
|
-
api.updateById(templateData).then(() => {
|
|
106
|
+
api.updateById(ctx.$http, templateData).then(() => {
|
|
105
107
|
ElMessage.success("保存成功");
|
|
106
108
|
});
|
|
107
109
|
}
|
|
@@ -7,7 +7,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import "../../../node_modules/element-plus/theme-chalk/el-config-provider.css.mjs";
|
|
10
|
-
import { ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
|
|
10
|
+
import { getCurrentInstance, ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
|
|
11
11
|
import zh_cn_default from "../../../node_modules/element-plus/es/locale/lang/zh-cn.mjs";
|
|
12
12
|
import LayoutAside from "./aside/index.vue.mjs";
|
|
13
13
|
import _sfc_main$1 from "./header/index.vue.mjs";
|
|
@@ -31,16 +31,18 @@ const _hoisted_1 = {
|
|
|
31
31
|
const _sfc_main = {
|
|
32
32
|
__name: "index",
|
|
33
33
|
setup(__props) {
|
|
34
|
+
const currentInstance = getCurrentInstance();
|
|
35
|
+
const ctx = currentInstance.proxy;
|
|
34
36
|
const pkId = getUrlParam("pkId");
|
|
35
37
|
const isInitd = ref(0);
|
|
36
38
|
const compRef = ref(null);
|
|
37
39
|
if (!pkId) {
|
|
38
40
|
isInitd.value = -1;
|
|
39
41
|
} else {
|
|
40
|
-
api.login4dev().then((data) => {
|
|
42
|
+
api.login4dev(ctx.$http).then((data) => {
|
|
41
43
|
store.commit("set_token", data.token);
|
|
42
44
|
store.commit("set_refreshToken", data.refreshToken);
|
|
43
|
-
api.getById(pkId).then((data2) => {
|
|
45
|
+
api.getById(ctx.$http, pkId).then((data2) => {
|
|
44
46
|
const templateName = data2.templateName;
|
|
45
47
|
const templateKey = data2.templateKey;
|
|
46
48
|
document.title = templateName || "表单设计器";
|
|
@@ -142,7 +144,7 @@ const _sfc_main = {
|
|
|
142
144
|
};
|
|
143
145
|
}
|
|
144
146
|
};
|
|
145
|
-
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
147
|
+
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ae1b4337"]]);
|
|
146
148
|
export {
|
|
147
149
|
layout as default
|
|
148
150
|
};
|
|
@@ -12,7 +12,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
|
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
15
|
-
import { computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
|
|
15
|
+
import { getCurrentInstance, computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
|
|
16
16
|
import { useVModel } from "../../../../node_modules/@vueuse/core/dist/index.mjs";
|
|
17
17
|
import ValueSelector from "../../components/ValueSelector.vue.mjs";
|
|
18
18
|
import api from "../../api/index.mjs";
|
|
@@ -63,6 +63,8 @@ const _sfc_main = {
|
|
|
63
63
|
"update:showText"
|
|
64
64
|
],
|
|
65
65
|
setup(__props, { emit: __emit }) {
|
|
66
|
+
const currentInstance = getCurrentInstance();
|
|
67
|
+
const ctx = currentInstance.proxy;
|
|
66
68
|
const $props = __props;
|
|
67
69
|
const $emits = __emit;
|
|
68
70
|
const data = computed({
|
|
@@ -204,6 +206,7 @@ const _sfc_main = {
|
|
|
204
206
|
if (optionSource === "dataSource" && dataSourceValue) {
|
|
205
207
|
try {
|
|
206
208
|
const dsManager = createDataSource({
|
|
209
|
+
http: ctx.$http,
|
|
207
210
|
dataSources: dataSources.value,
|
|
208
211
|
currentDataSourceId: dataSourceValue
|
|
209
212
|
});
|
|
@@ -226,7 +229,7 @@ const _sfc_main = {
|
|
|
226
229
|
console.error(`Failed to load data source ${dataSourceId}:`, error);
|
|
227
230
|
}
|
|
228
231
|
} else if (optionSource === "dictionary" && dictionaryValue) {
|
|
229
|
-
api.getDicDataByKey(dictionaryValue).then((data2) => {
|
|
232
|
+
api.getDicDataByKey(ctx.$http, dictionaryValue).then((data2) => {
|
|
230
233
|
const result = [];
|
|
231
234
|
for (const key in data2) {
|
|
232
235
|
result.push({ label: data2[key], value: key });
|
|
@@ -425,7 +428,7 @@ const _sfc_main = {
|
|
|
425
428
|
};
|
|
426
429
|
}
|
|
427
430
|
};
|
|
428
|
-
const ValueInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
431
|
+
const ValueInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eddee3ea"]]);
|
|
429
432
|
export {
|
|
430
433
|
ValueInput as default
|
|
431
434
|
};
|
|
@@ -32,9 +32,6 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs
|
|
|
32
32
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
33
33
|
/* empty css */
|
|
34
34
|
import "../../axios/config.mjs";
|
|
35
|
-
import "../../../../_virtual/FileSaver.min.mjs";
|
|
36
|
-
import "../../../../_virtual/index.mjs";
|
|
37
|
-
/* empty css */
|
|
38
35
|
/* empty css */
|
|
39
36
|
/* empty css */
|
|
40
37
|
/* empty css */
|
|
@@ -24,7 +24,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
24
24
|
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
|
-
import { computed, useModel, ref, watch, createBlock, openBlock, withCtx, createVNode, unref, createTextVNode, createElementBlock, createCommentVNode, createElementVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers, toDisplayString } from "vue";
|
|
27
|
+
import { getCurrentInstance, computed, useModel, ref, watch, createBlock, openBlock, withCtx, createVNode, unref, createTextVNode, createElementBlock, createCommentVNode, createElementVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers, toDisplayString } from "vue";
|
|
28
28
|
import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
|
|
29
29
|
import { Plus as plus_default, Close as close_default, Check as check_default, Delete as delete_default, Rank as rank_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
30
30
|
import { getEditConfigData, cloneDeep, getEditConfigDialogs, setEditConfigDialogs } from "../utils/common.mjs";
|
|
@@ -92,6 +92,8 @@ const _sfc_main = {
|
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:modelValue"],
|
|
94
94
|
setup(__props) {
|
|
95
|
+
const currentInstance = getCurrentInstance();
|
|
96
|
+
const ctx = currentInstance.proxy;
|
|
95
97
|
const editConfigData = computed(() => {
|
|
96
98
|
return getEditConfigData();
|
|
97
99
|
});
|
|
@@ -195,14 +197,14 @@ const _sfc_main = {
|
|
|
195
197
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
196
198
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
197
199
|
if (pkId) {
|
|
198
|
-
api.getById(pkId, false).then((data2) => {
|
|
200
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
199
201
|
tableOptions.value = JSON.parse(data2.context);
|
|
200
202
|
});
|
|
201
203
|
}
|
|
202
204
|
} else if ((data == null ? void 0 : data.contentSource) == "form") {
|
|
203
205
|
const pkId = data == null ? void 0 : data.subFormId;
|
|
204
206
|
if (pkId) {
|
|
205
|
-
api.getById(pkId, false).then((data2) => {
|
|
207
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
206
208
|
formOptions.value = JSON.parse(data2.context);
|
|
207
209
|
});
|
|
208
210
|
}
|
|
@@ -982,7 +984,7 @@ const _sfc_main = {
|
|
|
982
984
|
};
|
|
983
985
|
}
|
|
984
986
|
};
|
|
985
|
-
const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
987
|
+
const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b357db6"]]);
|
|
986
988
|
export {
|
|
987
989
|
DialogDialog as default
|
|
988
990
|
};
|
|
@@ -24,7 +24,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
24
24
|
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
|
-
import { computed, useModel, ref, watch, createBlock, openBlock, withCtx, createVNode, unref, createTextVNode, createElementBlock, createCommentVNode, createElementVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers, toDisplayString } from "vue";
|
|
27
|
+
import { getCurrentInstance, computed, useModel, ref, watch, createBlock, openBlock, withCtx, createVNode, unref, createTextVNode, createElementBlock, createCommentVNode, createElementVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers, toDisplayString } from "vue";
|
|
28
28
|
import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
|
|
29
29
|
import { Plus as plus_default, Close as close_default, Check as check_default, Delete as delete_default, Rank as rank_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
30
30
|
import { getEditConfigData, cloneDeep, getEditConfigDialogs, setEditConfigDialogs } from "../utils/common.mjs";
|
|
@@ -92,6 +92,8 @@ const _sfc_main = {
|
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:modelValue"],
|
|
94
94
|
setup(__props) {
|
|
95
|
+
const currentInstance = getCurrentInstance();
|
|
96
|
+
const ctx = currentInstance.proxy;
|
|
95
97
|
const editConfigData = computed(() => {
|
|
96
98
|
return getEditConfigData();
|
|
97
99
|
});
|
|
@@ -195,14 +197,14 @@ const _sfc_main = {
|
|
|
195
197
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
196
198
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
197
199
|
if (pkId) {
|
|
198
|
-
api.getById(pkId, false).then((data2) => {
|
|
200
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
199
201
|
tableOptions.value = JSON.parse(data2.context);
|
|
200
202
|
});
|
|
201
203
|
}
|
|
202
204
|
} else if ((data == null ? void 0 : data.contentSource) == "form") {
|
|
203
205
|
const pkId = data == null ? void 0 : data.subFormId;
|
|
204
206
|
if (pkId) {
|
|
205
|
-
api.getById(pkId, false).then((data2) => {
|
|
207
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
206
208
|
formOptions.value = JSON.parse(data2.context);
|
|
207
209
|
});
|
|
208
210
|
}
|
|
@@ -982,7 +984,7 @@ const _sfc_main = {
|
|
|
982
984
|
};
|
|
983
985
|
}
|
|
984
986
|
};
|
|
985
|
-
const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
987
|
+
const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b357db6"]]);
|
|
986
988
|
export {
|
|
987
989
|
DialogDialog as default
|
|
988
990
|
};
|
|
@@ -24,7 +24,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
24
24
|
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
|
-
import { computed, useModel, ref, watch, createBlock, openBlock, unref, withCtx, createVNode, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createTextVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers } from "vue";
|
|
27
|
+
import { getCurrentInstance, computed, useModel, ref, watch, createBlock, openBlock, unref, withCtx, createVNode, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createTextVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers } from "vue";
|
|
28
28
|
import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
|
|
29
29
|
import { Loading as loading_default, Plus as plus_default, Close as close_default, Check as check_default, Delete as delete_default, Rank as rank_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
30
30
|
import { getEditConfigData, cloneDeep } from "../utils/common.mjs";
|
|
@@ -157,6 +157,8 @@ const _sfc_main = {
|
|
|
157
157
|
},
|
|
158
158
|
emits: ["update:modelValue"],
|
|
159
159
|
setup(__props) {
|
|
160
|
+
const currentInstance = getCurrentInstance();
|
|
161
|
+
const ctx = currentInstance.proxy;
|
|
160
162
|
const editConfigData = computed(() => {
|
|
161
163
|
return getEditConfigData();
|
|
162
164
|
});
|
|
@@ -171,7 +173,7 @@ const _sfc_main = {
|
|
|
171
173
|
editingDialogIndex.value = -1;
|
|
172
174
|
loading.value = true;
|
|
173
175
|
try {
|
|
174
|
-
const response = await api.getAllTemplateDialog();
|
|
176
|
+
const response = await api.getAllTemplateDialog(ctx.$http);
|
|
175
177
|
selectedDialogs.value = [];
|
|
176
178
|
for (let dialog of response) {
|
|
177
179
|
selectedDialogs.value.push({
|
|
@@ -240,7 +242,7 @@ const _sfc_main = {
|
|
|
240
242
|
const handleRemoveDialog = async (index) => {
|
|
241
243
|
const dialogToRemove = selectedDialogs.value[index];
|
|
242
244
|
try {
|
|
243
|
-
await api.deleteTemplateDialog(dialogToRemove.id);
|
|
245
|
+
await api.deleteTemplateDialog(ctx.$http, dialogToRemove.id);
|
|
244
246
|
} catch (error) {
|
|
245
247
|
console.error("🚀 ~ 删除弹层失败:", error);
|
|
246
248
|
ElMessage.error("删除弹层失败");
|
|
@@ -284,7 +286,7 @@ const _sfc_main = {
|
|
|
284
286
|
config: JSON.stringify(data)
|
|
285
287
|
};
|
|
286
288
|
});
|
|
287
|
-
const response = await api.saveTemplateDialog(dialogArr);
|
|
289
|
+
const response = await api.saveTemplateDialog(ctx.$http, dialogArr);
|
|
288
290
|
ElMessage.success("弹层配置保存成功");
|
|
289
291
|
dialogVisible.value = false;
|
|
290
292
|
} catch (error) {
|
|
@@ -312,14 +314,14 @@ const _sfc_main = {
|
|
|
312
314
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
313
315
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
314
316
|
if (pkId) {
|
|
315
|
-
api.getById(pkId, false).then((data2) => {
|
|
317
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
316
318
|
tableOptions.value = JSON.parse(data2.context);
|
|
317
319
|
});
|
|
318
320
|
}
|
|
319
321
|
} else if ((data == null ? void 0 : data.contentSource) == "form") {
|
|
320
322
|
const pkId = data == null ? void 0 : data.subFormId;
|
|
321
323
|
if (pkId) {
|
|
322
|
-
api.getById(pkId, false).then((data2) => {
|
|
324
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
323
325
|
formOptions.value = JSON.parse(data2.context);
|
|
324
326
|
});
|
|
325
327
|
}
|
|
@@ -1029,7 +1031,7 @@ const _sfc_main = {
|
|
|
1029
1031
|
};
|
|
1030
1032
|
}
|
|
1031
1033
|
};
|
|
1032
|
-
const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1034
|
+
const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b9e1841"]]);
|
|
1033
1035
|
export {
|
|
1034
1036
|
DialogGlobalDialog as default
|
|
1035
1037
|
};
|
|
@@ -24,7 +24,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
24
24
|
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
|
-
import { computed, useModel, ref, watch, createBlock, openBlock, unref, withCtx, createVNode, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createTextVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers } from "vue";
|
|
27
|
+
import { getCurrentInstance, computed, useModel, ref, watch, createBlock, openBlock, unref, withCtx, createVNode, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createTextVNode, withKeys, isRef, Fragment, renderList, normalizeClass, withDirectives, vShow, withModifiers } from "vue";
|
|
28
28
|
import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
|
|
29
29
|
import { Loading as loading_default, Plus as plus_default, Close as close_default, Check as check_default, Delete as delete_default, Rank as rank_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
30
30
|
import { getEditConfigData, cloneDeep } from "../utils/common.mjs";
|
|
@@ -157,6 +157,8 @@ const _sfc_main = {
|
|
|
157
157
|
},
|
|
158
158
|
emits: ["update:modelValue"],
|
|
159
159
|
setup(__props) {
|
|
160
|
+
const currentInstance = getCurrentInstance();
|
|
161
|
+
const ctx = currentInstance.proxy;
|
|
160
162
|
const editConfigData = computed(() => {
|
|
161
163
|
return getEditConfigData();
|
|
162
164
|
});
|
|
@@ -171,7 +173,7 @@ const _sfc_main = {
|
|
|
171
173
|
editingDialogIndex.value = -1;
|
|
172
174
|
loading.value = true;
|
|
173
175
|
try {
|
|
174
|
-
const response = await api.getAllTemplateDialog();
|
|
176
|
+
const response = await api.getAllTemplateDialog(ctx.$http);
|
|
175
177
|
selectedDialogs.value = [];
|
|
176
178
|
for (let dialog of response) {
|
|
177
179
|
selectedDialogs.value.push({
|
|
@@ -240,7 +242,7 @@ const _sfc_main = {
|
|
|
240
242
|
const handleRemoveDialog = async (index) => {
|
|
241
243
|
const dialogToRemove = selectedDialogs.value[index];
|
|
242
244
|
try {
|
|
243
|
-
await api.deleteTemplateDialog(dialogToRemove.id);
|
|
245
|
+
await api.deleteTemplateDialog(ctx.$http, dialogToRemove.id);
|
|
244
246
|
} catch (error) {
|
|
245
247
|
console.error("🚀 ~ 删除弹层失败:", error);
|
|
246
248
|
ElMessage.error("删除弹层失败");
|
|
@@ -284,7 +286,7 @@ const _sfc_main = {
|
|
|
284
286
|
config: JSON.stringify(data)
|
|
285
287
|
};
|
|
286
288
|
});
|
|
287
|
-
const response = await api.saveTemplateDialog(dialogArr);
|
|
289
|
+
const response = await api.saveTemplateDialog(ctx.$http, dialogArr);
|
|
288
290
|
ElMessage.success("弹层配置保存成功");
|
|
289
291
|
dialogVisible.value = false;
|
|
290
292
|
} catch (error) {
|
|
@@ -312,14 +314,14 @@ const _sfc_main = {
|
|
|
312
314
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
313
315
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
314
316
|
if (pkId) {
|
|
315
|
-
api.getById(pkId, false).then((data2) => {
|
|
317
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
316
318
|
tableOptions.value = JSON.parse(data2.context);
|
|
317
319
|
});
|
|
318
320
|
}
|
|
319
321
|
} else if ((data == null ? void 0 : data.contentSource) == "form") {
|
|
320
322
|
const pkId = data == null ? void 0 : data.subFormId;
|
|
321
323
|
if (pkId) {
|
|
322
|
-
api.getById(pkId, false).then((data2) => {
|
|
324
|
+
api.getById(ctx.$http, pkId, false).then((data2) => {
|
|
323
325
|
formOptions.value = JSON.parse(data2.context);
|
|
324
326
|
});
|
|
325
327
|
}
|
|
@@ -1029,7 +1031,7 @@ const _sfc_main = {
|
|
|
1029
1031
|
};
|
|
1030
1032
|
}
|
|
1031
1033
|
};
|
|
1032
|
-
const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1034
|
+
const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b9e1841"]]);
|
|
1033
1035
|
export {
|
|
1034
1036
|
DialogGlobalDialog as default
|
|
1035
1037
|
};
|
|
@@ -5,7 +5,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { ref, watch, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode, unref } from "vue";
|
|
8
|
+
import { getCurrentInstance, ref, watch, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode, unref } from "vue";
|
|
9
9
|
import { getEditConfigData } from "../../../utils/common.mjs";
|
|
10
10
|
import FieldSetMapping from "../../../../components/FieldSetMapping.vue2.mjs";
|
|
11
11
|
import OnlyFLowConfigButton from "../../../../components/OnlyFLowConfigButton.vue2.mjs";
|
|
@@ -21,6 +21,8 @@ const _sfc_main = {
|
|
|
21
21
|
formData: Object
|
|
22
22
|
},
|
|
23
23
|
setup(__props) {
|
|
24
|
+
const currentInstance = getCurrentInstance();
|
|
25
|
+
const ctx = currentInstance.proxy;
|
|
24
26
|
const props = __props;
|
|
25
27
|
const currDialog = ref({});
|
|
26
28
|
const globalDialogs = ref([]);
|
|
@@ -29,7 +31,7 @@ const _sfc_main = {
|
|
|
29
31
|
const loadGlobalDialogs = async () => {
|
|
30
32
|
loading.value = true;
|
|
31
33
|
try {
|
|
32
|
-
const response = await api.getAllTemplateDialog();
|
|
34
|
+
const response = await api.getAllTemplateDialog(ctx.$http);
|
|
33
35
|
globalDialogs.value = [];
|
|
34
36
|
for (let dialog of response) {
|
|
35
37
|
globalDialogs.value.push({
|
|
@@ -74,7 +76,7 @@ const _sfc_main = {
|
|
|
74
76
|
const tableId = currDialog.value.subTableId;
|
|
75
77
|
if (tableId) {
|
|
76
78
|
try {
|
|
77
|
-
const response = await api.getById(tableId, false);
|
|
79
|
+
const response = await api.getById(ctx.$http, tableId, false);
|
|
78
80
|
tableOptions.value = JSON.parse(response.context);
|
|
79
81
|
console.log("🚀 ~ 需要获取表格配置,表格ID:", tableId);
|
|
80
82
|
} catch (error) {
|