@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
|
@@ -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, watch, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock } from "vue";
|
|
10
|
+
import { getCurrentInstance, computed, ref, watch, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock } from "vue";
|
|
11
11
|
import FieldSetMapping from "../../../../components/FieldSetMapping.vue2.mjs";
|
|
12
12
|
import { getEditConfigDataFields } from "../../../utils/common.mjs";
|
|
13
13
|
import api from "../../../../api/index.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 fieldList = computed(() => {
|
|
26
28
|
return getEditConfigDataFields().filter(
|
|
@@ -34,7 +36,7 @@ const _sfc_main = {
|
|
|
34
36
|
const fieldItem = getEditConfigDataFields().find((item) => item.id == id);
|
|
35
37
|
if (fieldItem) {
|
|
36
38
|
const subTableId = fieldItem.subTableId;
|
|
37
|
-
api.getById(subTableId).then((data) => {
|
|
39
|
+
api.getById(ctx.$http, subTableId).then((data) => {
|
|
38
40
|
subTableOptions.value = JSON.parse(data.context);
|
|
39
41
|
});
|
|
40
42
|
}
|
|
@@ -95,7 +97,7 @@ const _sfc_main = {
|
|
|
95
97
|
};
|
|
96
98
|
}
|
|
97
99
|
};
|
|
98
|
-
const TableChildSelection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
100
|
+
const TableChildSelection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-170db076"]]);
|
|
99
101
|
export {
|
|
100
102
|
TableChildSelection as default
|
|
101
103
|
};
|
|
@@ -19,7 +19,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
19
19
|
/* empty css */
|
|
20
20
|
import "../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
21
21
|
import "../../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
|
|
22
|
-
import { computed, createElementBlock, openBlock, createBlock, createCommentVNode, createSlots, withCtx, normalizeProps, mergeProps, createElementVNode, toDisplayString, createVNode, createTextVNode, Fragment, renderList, unref } from "vue";
|
|
22
|
+
import { getCurrentInstance, computed, createElementBlock, openBlock, createBlock, createCommentVNode, createSlots, withCtx, normalizeProps, mergeProps, createElementVNode, toDisplayString, createVNode, createTextVNode, Fragment, renderList, unref } from "vue";
|
|
23
23
|
import { useOptions } from "../../../utils/optionLoader.mjs";
|
|
24
24
|
/* empty css */
|
|
25
25
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -55,6 +55,8 @@ const _sfc_main = {
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
setup(__props) {
|
|
58
|
+
const currentInstance = getCurrentInstance();
|
|
59
|
+
const ctx = currentInstance.proxy;
|
|
58
60
|
const props = __props;
|
|
59
61
|
const commProps = computed(() => {
|
|
60
62
|
return {
|
|
@@ -66,7 +68,7 @@ const _sfc_main = {
|
|
|
66
68
|
showWordLimit: props.componentData.showWordCount || false
|
|
67
69
|
};
|
|
68
70
|
});
|
|
69
|
-
const { options } = useOptions(props.componentData);
|
|
71
|
+
const { options } = useOptions(ctx, props.componentData);
|
|
70
72
|
const cascaderPropsDataValue = computed(() => {
|
|
71
73
|
let propsData = props.componentData.propsData || {};
|
|
72
74
|
if (props.componentData.fieldType == "area" || props.componentData.fieldType == "industry") {
|
|
@@ -299,7 +301,7 @@ const _sfc_main = {
|
|
|
299
301
|
};
|
|
300
302
|
}
|
|
301
303
|
};
|
|
302
|
-
const ComponentPreviewWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
304
|
+
const ComponentPreviewWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-58df4a86"]]);
|
|
303
305
|
export {
|
|
304
306
|
ComponentPreviewWrapper as default
|
|
305
307
|
};
|
|
@@ -50,7 +50,7 @@ const _sfc_main = {
|
|
|
50
50
|
}
|
|
51
51
|
return component;
|
|
52
52
|
});
|
|
53
|
-
const { options: optionData } = useOptions(props.config);
|
|
53
|
+
const { options: optionData } = useOptions(ctx, props.config);
|
|
54
54
|
const componentProps = computed(() => {
|
|
55
55
|
const fieldProps = cloneDeep(props.config);
|
|
56
56
|
fieldProps.disabled = false;
|
|
@@ -83,7 +83,7 @@ const _sfc_main = {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
const DefaultValueEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
86
|
+
const DefaultValueEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b89d5b3"]]);
|
|
87
87
|
export {
|
|
88
88
|
DefaultValueEditor as default
|
|
89
89
|
};
|
|
@@ -14,7 +14,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
17
|
+
import { getCurrentInstance, computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
18
18
|
import { getCurrentItem } from "../../utils/common.mjs";
|
|
19
19
|
import "../../utils/eventBus.mjs";
|
|
20
20
|
import ValueSelector from "../../../components/ValueSelector.vue.mjs";
|
|
@@ -30,12 +30,14 @@ import { ElSelect, ElOption } from "../../../../../node_modules/element-plus/es/
|
|
|
30
30
|
const _sfc_main = {
|
|
31
31
|
__name: "contract",
|
|
32
32
|
setup(__props) {
|
|
33
|
+
const currentInstance = getCurrentInstance();
|
|
34
|
+
const ctx = currentInstance.proxy;
|
|
33
35
|
const currentItem = computed(() => {
|
|
34
36
|
return getCurrentItem();
|
|
35
37
|
});
|
|
36
38
|
const activeName = ref(["common"]);
|
|
37
39
|
const scenarioOptions = ref([]);
|
|
38
|
-
api.getModeNoList4Cont().then((data) => {
|
|
40
|
+
api.getModeNoList4Cont(ctx.$http).then((data) => {
|
|
39
41
|
scenarioOptions.value = data.map((item) => ({
|
|
40
42
|
label: item.modeName,
|
|
41
43
|
value: item.modeNo
|
|
@@ -212,7 +214,7 @@ const _sfc_main = {
|
|
|
212
214
|
};
|
|
213
215
|
}
|
|
214
216
|
};
|
|
215
|
-
const contract = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
217
|
+
const contract = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7ebeb42d"]]);
|
|
216
218
|
export {
|
|
217
219
|
contract as default
|
|
218
220
|
};
|
|
@@ -21,7 +21,7 @@ import "../../../../../node_modules/element-plus/theme-chalk/el-dropdown-item.cs
|
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
23
|
/* empty css */
|
|
24
|
-
import { computed, ref, watch, createBlock, openBlock, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment, renderList, createElementVNode, toDisplayString } from "vue";
|
|
24
|
+
import { getCurrentInstance, computed, ref, watch, createBlock, openBlock, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment, renderList, createElementVNode, toDisplayString } from "vue";
|
|
25
25
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
26
26
|
import TemplateSelector from "../../../components/TemplateSelector.vue2.mjs";
|
|
27
27
|
import emitter from "../../utils/eventBus.mjs";
|
|
@@ -54,6 +54,8 @@ const _hoisted_9 = { class: "button-type" };
|
|
|
54
54
|
const _sfc_main = {
|
|
55
55
|
__name: "subTable",
|
|
56
56
|
setup(__props) {
|
|
57
|
+
const currentInstance = getCurrentInstance();
|
|
58
|
+
const ctx = currentInstance.proxy;
|
|
57
59
|
const currentItem = computed(() => {
|
|
58
60
|
const item = getCurrentItem();
|
|
59
61
|
if (!item.btnRollback) {
|
|
@@ -77,7 +79,7 @@ const _sfc_main = {
|
|
|
77
79
|
},
|
|
78
80
|
(pkId) => {
|
|
79
81
|
if (pkId) {
|
|
80
|
-
api.getById(pkId).then((data) => {
|
|
82
|
+
api.getById(ctx.$http, pkId).then((data) => {
|
|
81
83
|
subTableOptions.value = JSON.parse(data.context);
|
|
82
84
|
});
|
|
83
85
|
}
|
|
@@ -454,7 +456,7 @@ const _sfc_main = {
|
|
|
454
456
|
};
|
|
455
457
|
}
|
|
456
458
|
};
|
|
457
|
-
const subTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
459
|
+
const subTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b5400259"]]);
|
|
458
460
|
export {
|
|
459
461
|
subTable as default
|
|
460
462
|
};
|
|
@@ -18,7 +18,7 @@ import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
|
|
|
18
18
|
/* empty css */
|
|
19
19
|
/* empty css */
|
|
20
20
|
/* empty css */
|
|
21
|
-
import { computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, Fragment, renderList, createCommentVNode, createTextVNode, createElementVNode } from "vue";
|
|
21
|
+
import { getCurrentInstance, computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, Fragment, renderList, createCommentVNode, createTextVNode, createElementVNode } from "vue";
|
|
22
22
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
23
23
|
import OptionConfig from "../../../components/OptionConfig.vue.mjs";
|
|
24
24
|
import components from "../aside/index.mjs";
|
|
@@ -102,6 +102,8 @@ const _hoisted_20 = {
|
|
|
102
102
|
const _sfc_main = {
|
|
103
103
|
__name: "widgets",
|
|
104
104
|
setup(__props) {
|
|
105
|
+
const currentInstance = getCurrentInstance();
|
|
106
|
+
const ctx = currentInstance.proxy;
|
|
105
107
|
const currentItem = computed(() => {
|
|
106
108
|
return getCurrentItem();
|
|
107
109
|
});
|
|
@@ -217,7 +219,7 @@ const _sfc_main = {
|
|
|
217
219
|
const loadGlobalDialogs = async () => {
|
|
218
220
|
dialogLoading.value = true;
|
|
219
221
|
try {
|
|
220
|
-
const response = await api.getAllTemplateDialog();
|
|
222
|
+
const response = await api.getAllTemplateDialog(ctx.$http);
|
|
221
223
|
globalDialogs.value = [];
|
|
222
224
|
for (let dialog of response) {
|
|
223
225
|
globalDialogs.value.push({
|
|
@@ -262,7 +264,7 @@ const _sfc_main = {
|
|
|
262
264
|
const tableId = currDialog.value.subTableId;
|
|
263
265
|
if (tableId) {
|
|
264
266
|
try {
|
|
265
|
-
const response = await api.getById(tableId, false);
|
|
267
|
+
const response = await api.getById(ctx.$http, tableId, false);
|
|
266
268
|
tableOptions.value = JSON.parse(response.context);
|
|
267
269
|
console.log("🚀 ~ 需要获取表格配置,表格ID:", tableId);
|
|
268
270
|
} catch (error) {
|
|
@@ -1180,7 +1182,7 @@ const _sfc_main = {
|
|
|
1180
1182
|
};
|
|
1181
1183
|
}
|
|
1182
1184
|
};
|
|
1183
|
-
const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1185
|
+
const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7f8b937d"]]);
|
|
1184
1186
|
export {
|
|
1185
1187
|
widgets as default
|
|
1186
1188
|
};
|
|
@@ -11,7 +11,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
|
-
import { useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
|
|
14
|
+
import { getCurrentInstance, useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
|
|
15
15
|
import { Plus as plus_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
16
16
|
import { getEditConfigData, getEditConfigDataFields, setEditConfigData } from "../utils/common.mjs";
|
|
17
17
|
import ValueSelector from "../../components/ValueSelector.vue.mjs";
|
|
@@ -39,6 +39,8 @@ const _sfc_main = {
|
|
|
39
39
|
emits: ["update:modelValue"],
|
|
40
40
|
setup(__props, { expose: __expose }) {
|
|
41
41
|
var _a;
|
|
42
|
+
const currentInstance = getCurrentInstance();
|
|
43
|
+
const ctx = currentInstance.proxy;
|
|
42
44
|
const dialogVisible = useModel(__props, "modelValue");
|
|
43
45
|
const prodConfig = ref(((_a = getEditConfigData()) == null ? void 0 : _a.prodConfig) || {});
|
|
44
46
|
watch(
|
|
@@ -158,7 +160,7 @@ const _sfc_main = {
|
|
|
158
160
|
};
|
|
159
161
|
const fetchProductConfig = async () => {
|
|
160
162
|
try {
|
|
161
|
-
const response = await api.getProductConfig();
|
|
163
|
+
const response = await api.getProductConfig(ctx.$http);
|
|
162
164
|
parsedConfig.value = response.map((item) => ({
|
|
163
165
|
fieldName: item.fieldName || "",
|
|
164
166
|
fieldDesc: item.label || item.fieldName || "",
|
|
@@ -511,7 +513,7 @@ const _sfc_main = {
|
|
|
511
513
|
};
|
|
512
514
|
}
|
|
513
515
|
};
|
|
514
|
-
const ProdDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
516
|
+
const ProdDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc928684"]]);
|
|
515
517
|
export {
|
|
516
518
|
ProdDialog as default
|
|
517
519
|
};
|
|
@@ -71,10 +71,6 @@ import "../formulaEditor/core/functionCore.mjs";
|
|
|
71
71
|
/* empty css */
|
|
72
72
|
/* empty css */
|
|
73
73
|
/* empty css */
|
|
74
|
-
import "../../axios/config.mjs";
|
|
75
|
-
import "../../../../_virtual/FileSaver.min.mjs";
|
|
76
|
-
import "../../../../_virtual/index.mjs";
|
|
77
|
-
/* empty css */
|
|
78
74
|
import { useDialogDialog } from "../dialog/useDialogDialog.mjs";
|
|
79
75
|
import { useDialogGlobalDialog } from "../dialogGlobal/useDialogGlobalDialog.mjs";
|
|
80
76
|
/* empty css */
|
|
@@ -95,6 +91,7 @@ import { useAdvancedFilterDialog } from "../advancedFilter/useAdvancedFilterDial
|
|
|
95
91
|
/* empty css */
|
|
96
92
|
/* empty css */
|
|
97
93
|
import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
94
|
+
import "../../axios/config.mjs";
|
|
98
95
|
/* empty css */
|
|
99
96
|
/* empty css */
|
|
100
97
|
/* empty css */
|
|
@@ -3,7 +3,7 @@ import { createDataSource } from "../packages/utils/datasource.mjs";
|
|
|
3
3
|
import { getEditConfigDataSources } from "../packages/utils/common.mjs";
|
|
4
4
|
import { getDataSourceWithConcurrencyControl, getDictionaryWithConcurrencyControl } from "./simpleCache.mjs";
|
|
5
5
|
import api from "../api/index.mjs";
|
|
6
|
-
async function loadOptions(config, callback) {
|
|
6
|
+
async function loadOptions(ctx2, config, callback) {
|
|
7
7
|
const { fieldType, optionConfig = {} } = config;
|
|
8
8
|
if (fieldType !== "select" && fieldType !== "multipleSelection" && fieldType !== "cascader" && fieldType !== "area" && fieldType !== "industry" && fieldType !== "radio" && fieldType !== "checkbox") {
|
|
9
9
|
const result = optionConfig.options || [];
|
|
@@ -13,7 +13,7 @@ async function loadOptions(config, callback) {
|
|
|
13
13
|
const rawData = await getDataSourceWithConcurrencyControl(
|
|
14
14
|
"sysArea",
|
|
15
15
|
async () => {
|
|
16
|
-
const data = await api.getDataDicArea4Cascader();
|
|
16
|
+
const data = await api.getDataDicArea4Cascader(ctx2.$http);
|
|
17
17
|
return data;
|
|
18
18
|
}
|
|
19
19
|
);
|
|
@@ -22,7 +22,7 @@ async function loadOptions(config, callback) {
|
|
|
22
22
|
const rawData = await getDataSourceWithConcurrencyControl(
|
|
23
23
|
"sysIndustry",
|
|
24
24
|
async () => {
|
|
25
|
-
const data = await api.getDataDicTrade4Cascader();
|
|
25
|
+
const data = await api.getDataDicTrade4Cascader(ctx2.$http);
|
|
26
26
|
return data;
|
|
27
27
|
}
|
|
28
28
|
);
|
|
@@ -52,6 +52,7 @@ async function loadOptions(config, callback) {
|
|
|
52
52
|
}
|
|
53
53
|
if (optionSource === "dictionary" && dictionaryValue) {
|
|
54
54
|
const result = await loadDictionaryOptions(
|
|
55
|
+
ctx2,
|
|
55
56
|
dictionaryValue,
|
|
56
57
|
staticOptions
|
|
57
58
|
);
|
|
@@ -73,6 +74,7 @@ async function loadDataSourceOptions(dataSourceValue, displayField, valueField,
|
|
|
73
74
|
dataSourceValue,
|
|
74
75
|
async () => {
|
|
75
76
|
const dsManager = createDataSource({
|
|
77
|
+
http: ctx.$http,
|
|
76
78
|
dataSources,
|
|
77
79
|
currentDataSourceId: dataSourceValue
|
|
78
80
|
});
|
|
@@ -103,11 +105,11 @@ async function loadDataSourceOptions(dataSourceValue, displayField, valueField,
|
|
|
103
105
|
return fallbackOptions;
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
|
-
async function loadDictionaryOptions(dictionaryValue, fallbackOptions = []) {
|
|
108
|
+
async function loadDictionaryOptions(ctx2, dictionaryValue, fallbackOptions = []) {
|
|
107
109
|
try {
|
|
108
110
|
const dictData = await getDictionaryWithConcurrencyControl(
|
|
109
111
|
dictionaryValue,
|
|
110
|
-
() => api.getDicDataByKey(dictionaryValue)
|
|
112
|
+
() => api.getDicDataByKey(ctx2.$http, dictionaryValue)
|
|
111
113
|
);
|
|
112
114
|
const result = [];
|
|
113
115
|
for (const key in dictData) {
|
|
@@ -122,7 +124,7 @@ async function loadDictionaryOptions(dictionaryValue, fallbackOptions = []) {
|
|
|
122
124
|
return fallbackOptions;
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
|
-
function useOptions(config) {
|
|
127
|
+
function useOptions(ctx2, config) {
|
|
126
128
|
const options = ref([]);
|
|
127
129
|
const loading = ref(false);
|
|
128
130
|
const configRef = isRef(config) ? config : ref(config);
|
|
@@ -133,7 +135,7 @@ function useOptions(config) {
|
|
|
133
135
|
if (!newConfig) return;
|
|
134
136
|
loading.value = true;
|
|
135
137
|
try {
|
|
136
|
-
const result = await loadOptions(newConfig);
|
|
138
|
+
const result = await loadOptions(ctx2, newConfig);
|
|
137
139
|
options.value = result;
|
|
138
140
|
} catch (error) {
|
|
139
141
|
console.error("加载选项失败:", error);
|