@fecp/designer 5.5.5 → 5.5.6
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 +5 -3
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +0 -3
- package/es/designer/src/packages/dialog/index.vue2.mjs +6 -4
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +9 -7
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- 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 +8 -6
- 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 +8 -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 +4 -2
- package/lib/designer/src/packages/dataLinkage/index.vue.js +0 -3
- package/lib/designer/src/packages/dialog/index.vue2.js +5 -3
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +8 -6
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- 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 +7 -5
- 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 +8 -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
|
@@ -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";
|
|
@@ -52,8 +52,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
52
52
|
import "../../../components/TemplateSelector.vue.mjs";
|
|
53
53
|
import "../../table/default.mjs";
|
|
54
54
|
/* empty css */
|
|
55
|
-
/* empty css
|
|
56
|
-
/* empty css
|
|
55
|
+
/* empty css */
|
|
56
|
+
/* empty css */
|
|
57
57
|
import "../../../store/index.mjs";
|
|
58
58
|
/* empty css */
|
|
59
59
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/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(ctx, 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(ctx.$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(ctx.$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
|
+
ctx,
|
|
55
56
|
dictionaryValue,
|
|
56
57
|
staticOptions
|
|
57
58
|
);
|
|
@@ -103,11 +104,11 @@ async function loadDataSourceOptions(dataSourceValue, displayField, valueField,
|
|
|
103
104
|
return fallbackOptions;
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
|
-
async function loadDictionaryOptions(dictionaryValue, fallbackOptions = []) {
|
|
107
|
+
async function loadDictionaryOptions(ctx, dictionaryValue, fallbackOptions = []) {
|
|
107
108
|
try {
|
|
108
109
|
const dictData = await getDictionaryWithConcurrencyControl(
|
|
109
110
|
dictionaryValue,
|
|
110
|
-
() => api.getDicDataByKey(dictionaryValue)
|
|
111
|
+
() => api.getDicDataByKey(ctx.$http, dictionaryValue)
|
|
111
112
|
);
|
|
112
113
|
const result = [];
|
|
113
114
|
for (const key in dictData) {
|
|
@@ -122,7 +123,7 @@ async function loadDictionaryOptions(dictionaryValue, fallbackOptions = []) {
|
|
|
122
123
|
return fallbackOptions;
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
|
-
function useOptions(config) {
|
|
126
|
+
function useOptions(ctx, config) {
|
|
126
127
|
const options = ref([]);
|
|
127
128
|
const loading = ref(false);
|
|
128
129
|
const configRef = isRef(config) ? config : ref(config);
|
|
@@ -133,7 +134,7 @@ function useOptions(config) {
|
|
|
133
134
|
if (!newConfig) return;
|
|
134
135
|
loading.value = true;
|
|
135
136
|
try {
|
|
136
|
-
const result = await loadOptions(newConfig);
|
|
137
|
+
const result = await loadOptions(ctx, newConfig);
|
|
137
138
|
options.value = result;
|
|
138
139
|
} catch (error) {
|
|
139
140
|
console.error("加载选项失败:", error);
|