@fecp/designer 5.3.11 → 5.3.12
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/designer.css +214 -214
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/packages/designer/src/components/ValueSelector.vue.mjs +190 -0
- package/es/packages/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +4 -3
- package/es/packages/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/packages/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +2 -2
- package/es/packages/designer/src/packages/form/index.vue.mjs +2 -13
- package/es/packages/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/packages/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/packages/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +12 -2
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +2 -2
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +0 -1
- package/es/packages/vue/src/utils/parseRouteParams.mjs +1 -1
- package/lib/designer.css +214 -214
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/packages/designer/src/components/ValueSelector.vue.js +190 -0
- package/lib/packages/designer/src/layout/aside/HiddenFieldDialog.vue.js +4 -3
- package/lib/packages/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/packages/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +2 -2
- package/lib/packages/designer/src/packages/form/index.vue.js +1 -12
- package/lib/packages/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/packages/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/packages/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +12 -2
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +2 -2
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +0 -1
- package/lib/packages/vue/src/utils/parseRouteParams.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const vue = require("vue");
|
|
7
7
|
const index$1 = require("../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.13_typescript@5.7.3_/node_modules/@element-plus/icons-vue/dist/index.js");
|
|
8
|
-
const ValueSelector = require("./ValueSelector.
|
|
8
|
+
const ValueSelector = require("./ValueSelector.vue.js");
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
11
11
|
const index = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.js");
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const ValueSelectorPopover = require("./ValueSelectorPopover.vue2.js");
|
|
5
|
+
const common = require("../packages/utils/common.js");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
8
|
+
const index = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input-tag/index.js");
|
|
9
|
+
const index$1 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.js");
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: "ValueSelector",
|
|
12
|
+
props: {
|
|
13
|
+
// modelValue 的格式:
|
|
14
|
+
// 单选:{ type: 'field', value: '字段ID' }
|
|
15
|
+
// 多选:[{ type: 'field', value: '字段ID1' }, { type: 'field', value: '字段ID2' }]
|
|
16
|
+
modelValue: {
|
|
17
|
+
default: () => null
|
|
18
|
+
},
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "请输入或选择值"
|
|
22
|
+
},
|
|
23
|
+
readOnly: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
multiple: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "small"
|
|
38
|
+
}
|
|
39
|
+
// // 可选的字段列表(从父组件传入)
|
|
40
|
+
// availableFields: {
|
|
41
|
+
// type: Array,
|
|
42
|
+
// default: () => [],
|
|
43
|
+
// validator: (value) => Array.isArray(value),
|
|
44
|
+
// },
|
|
45
|
+
},
|
|
46
|
+
emits: ["update:modelValue"],
|
|
47
|
+
setup(__props, { emit: __emit }) {
|
|
48
|
+
const props = __props;
|
|
49
|
+
const emit = __emit;
|
|
50
|
+
const inputComponent = vue.computed(() => {
|
|
51
|
+
return props.multiple ? index.ElInputTag : index$1.ElInput;
|
|
52
|
+
});
|
|
53
|
+
const hiddenFieldsData = vue.computed(() => {
|
|
54
|
+
const editConfigData = common.getEditConfigData();
|
|
55
|
+
return (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
56
|
+
});
|
|
57
|
+
const availableFields = vue.computed(() => {
|
|
58
|
+
const fields = common.getEditConfigDataFields() || [];
|
|
59
|
+
return fields.map((item) => ({
|
|
60
|
+
id: item.id,
|
|
61
|
+
label: item.label,
|
|
62
|
+
fieldName: item.fieldName,
|
|
63
|
+
fieldType: item.fieldType
|
|
64
|
+
}));
|
|
65
|
+
});
|
|
66
|
+
const displayText = vue.computed(() => {
|
|
67
|
+
if (!props.modelValue) return "";
|
|
68
|
+
if (!props.multiple && typeof props.modelValue === "object" && !Array.isArray(props.modelValue)) {
|
|
69
|
+
const val = props.modelValue;
|
|
70
|
+
if (val.label) return val.label;
|
|
71
|
+
const field = availableFields.value.find((f) => f.id === val.value);
|
|
72
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || val.value;
|
|
73
|
+
} else if (!props.multiple && typeof props.modelValue === "string") {
|
|
74
|
+
return props.modelValue;
|
|
75
|
+
}
|
|
76
|
+
return "";
|
|
77
|
+
});
|
|
78
|
+
const tags = vue.computed({
|
|
79
|
+
get() {
|
|
80
|
+
if (!props.multiple || !Array.isArray(props.modelValue)) {
|
|
81
|
+
return [];
|
|
82
|
+
}
|
|
83
|
+
return props.modelValue.map((item) => {
|
|
84
|
+
if (item.label) return item.label;
|
|
85
|
+
const field = availableFields.value.find((f) => f.id === item.value);
|
|
86
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
87
|
+
}).filter(Boolean);
|
|
88
|
+
},
|
|
89
|
+
set(val) {
|
|
90
|
+
if (Array.isArray(props.modelValue)) {
|
|
91
|
+
const newModelValue = props.modelValue.filter((item) => {
|
|
92
|
+
const itemLabel = item.label || (() => {
|
|
93
|
+
const field = [
|
|
94
|
+
...availableFields.value,
|
|
95
|
+
...hiddenFieldsData.value
|
|
96
|
+
].find((f) => f.id === item.value);
|
|
97
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
98
|
+
})();
|
|
99
|
+
return val.includes(itemLabel);
|
|
100
|
+
});
|
|
101
|
+
emit("update:modelValue", newModelValue);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const unifiedInputValue = vue.computed({
|
|
106
|
+
get() {
|
|
107
|
+
return props.multiple ? tags.value : displayText.value;
|
|
108
|
+
},
|
|
109
|
+
set(val) {
|
|
110
|
+
if (props.multiple && Array.isArray(val)) {
|
|
111
|
+
tags.value = val;
|
|
112
|
+
} else if (!props.multiple && typeof val === "string") {
|
|
113
|
+
emit("update:modelValue", val);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
const handleConfirm = (selected) => {
|
|
118
|
+
let result = null;
|
|
119
|
+
if (selected.type === "field") {
|
|
120
|
+
const field = [...availableFields.value, ...hiddenFieldsData.value].find(
|
|
121
|
+
(f) => f.id === selected.value
|
|
122
|
+
);
|
|
123
|
+
result = {
|
|
124
|
+
label: `\${${(field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || selected.value}}`,
|
|
125
|
+
type: "field",
|
|
126
|
+
value: selected.value
|
|
127
|
+
};
|
|
128
|
+
} else if (selected.type === "userInfo") {
|
|
129
|
+
result = {
|
|
130
|
+
label: `\${用户信息: ${getUserInfoLabel(selected.value)}}`,
|
|
131
|
+
type: "userInfo",
|
|
132
|
+
value: selected.value
|
|
133
|
+
};
|
|
134
|
+
} else if (selected.type === "urlParam") {
|
|
135
|
+
result = {
|
|
136
|
+
label: `\${路由参数: ${selected.value}}`,
|
|
137
|
+
type: "urlParam",
|
|
138
|
+
value: selected.value
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
if (!result) return;
|
|
142
|
+
if (props.multiple) {
|
|
143
|
+
const currentValue = Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
144
|
+
const exists = currentValue.some((item) => item.value === result.value);
|
|
145
|
+
if (!exists) {
|
|
146
|
+
emit("update:modelValue", [...currentValue, result]);
|
|
147
|
+
}
|
|
148
|
+
} else {
|
|
149
|
+
emit("update:modelValue", result);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
const getUserInfoLabel = (key) => {
|
|
153
|
+
const labels = {
|
|
154
|
+
userCode: "用户编号",
|
|
155
|
+
userName: "用户名称",
|
|
156
|
+
roleCode: "角色编号",
|
|
157
|
+
roleName: "角色名称",
|
|
158
|
+
orgCode: "机构编号",
|
|
159
|
+
orgName: "机构名称"
|
|
160
|
+
};
|
|
161
|
+
return labels[key] || key;
|
|
162
|
+
};
|
|
163
|
+
return (_ctx, _cache) => {
|
|
164
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(inputComponent.value), {
|
|
165
|
+
modelValue: unifiedInputValue.value,
|
|
166
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unifiedInputValue.value = $event),
|
|
167
|
+
placeholder: __props.placeholder,
|
|
168
|
+
disabled: __props.disabled,
|
|
169
|
+
readonly: __props.readOnly,
|
|
170
|
+
trigger: __props.multiple ? "Space" : void 0,
|
|
171
|
+
"collapse-tags": "",
|
|
172
|
+
"collapse-tags-tooltip": "",
|
|
173
|
+
"max-collapse-tags": 1,
|
|
174
|
+
class: "value-selector-input",
|
|
175
|
+
size: __props.size
|
|
176
|
+
}, {
|
|
177
|
+
suffix: vue.withCtx(() => [
|
|
178
|
+
vue.createVNode(ValueSelectorPopover.default, {
|
|
179
|
+
"available-fields": availableFields.value,
|
|
180
|
+
disabled: __props.disabled,
|
|
181
|
+
onConfirm: handleConfirm
|
|
182
|
+
}, null, 8, ["available-fields", "disabled"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["modelValue", "placeholder", "disabled", "readonly", "trigger", "size"]);
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const ValueSelector = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e5b87efa"]]);
|
|
190
|
+
exports.default = ValueSelector;
|
|
@@ -17,6 +17,7 @@ const index$2 = require("../../../../../node_modules/.pnpm/@element-plus_icons-v
|
|
|
17
17
|
const common = require("../../packages/utils/common.js");
|
|
18
18
|
const index$5 = require("../../packages/form/aside/index.js");
|
|
19
19
|
const index$6 = require("../../packages/table/aside/index.js");
|
|
20
|
+
const ValueSelector = require("../../components/ValueSelector.vue.js");
|
|
20
21
|
;/* empty css */
|
|
21
22
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
22
23
|
const index = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/dialog/index.js");
|
|
@@ -336,10 +337,10 @@ const _sfc_main = {
|
|
|
336
337
|
}),
|
|
337
338
|
vue.createVNode(_component_el_table_column, { label: "初值" }, {
|
|
338
339
|
default: vue.withCtx(({ row }) => [
|
|
339
|
-
vue.createVNode(
|
|
340
|
+
vue.createVNode(ValueSelector.default, {
|
|
340
341
|
modelValue: row.value,
|
|
341
342
|
"onUpdate:modelValue": ($event) => row.value = $event,
|
|
342
|
-
|
|
343
|
+
size: "default"
|
|
343
344
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
344
345
|
]),
|
|
345
346
|
_: 1
|
|
@@ -374,5 +375,5 @@ const _sfc_main = {
|
|
|
374
375
|
};
|
|
375
376
|
}
|
|
376
377
|
};
|
|
377
|
-
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
378
|
+
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-c3d621bb"]]);
|
|
378
379
|
exports.default = HiddenFieldDialog;
|
|
@@ -15,7 +15,7 @@ require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typesc
|
|
|
15
15
|
;/* empty css */
|
|
16
16
|
const vue = require("vue");
|
|
17
17
|
const index = require("../../../../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/core/dist/index.js");
|
|
18
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
18
|
+
const ValueSelector = require("../../components/ValueSelector.vue.js");
|
|
19
19
|
const index$1 = require("../../api/index.js");
|
|
20
20
|
const common = require("../utils/common.js");
|
|
21
21
|
const datasource = require("../utils/datasource.js");
|
|
@@ -31,7 +31,7 @@ require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typesc
|
|
|
31
31
|
;/* empty css */
|
|
32
32
|
;/* empty css */
|
|
33
33
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
34
|
-
;/* empty css
|
|
34
|
+
;/* empty css */
|
|
35
35
|
require("../../axios/config.js");
|
|
36
36
|
require("../../../../../_virtual/FileSaver.min.js");
|
|
37
37
|
require("../../../../../_virtual/index.js");
|
|
@@ -79,7 +79,7 @@ require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typesc
|
|
|
79
79
|
require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
80
80
|
;/* empty css */
|
|
81
81
|
;/* empty css */
|
|
82
|
-
;/* empty css
|
|
82
|
+
;/* empty css */
|
|
83
83
|
require("../../axios/config.js");
|
|
84
84
|
;/* empty css */
|
|
85
85
|
;/* empty css */
|
|
@@ -167,7 +167,7 @@ const _sfc_main = {
|
|
|
167
167
|
]),
|
|
168
168
|
key: "1"
|
|
169
169
|
} : void 0,
|
|
170
|
-
!__props.componentData.
|
|
170
|
+
!__props.componentData.disabled && __props.componentData.suffixButton && __props.componentData.suffixButton != "none" ? {
|
|
171
171
|
name: "append",
|
|
172
172
|
fn: vue.withCtx(() => [
|
|
173
173
|
vue.createVNode(_component_el_button, { class: "suffixButton" }, {
|
|
@@ -300,5 +300,5 @@ const _sfc_main = {
|
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
-
const ComponentPreviewWrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
303
|
+
const ComponentPreviewWrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-09ce9664"]]);
|
|
304
304
|
exports.default = ComponentPreviewWrapper;
|
|
@@ -50,10 +50,6 @@ const _hoisted_11 = {
|
|
|
50
50
|
key: 1,
|
|
51
51
|
class: "status-tag disabled-tag"
|
|
52
52
|
};
|
|
53
|
-
const _hoisted_12 = {
|
|
54
|
-
key: 2,
|
|
55
|
-
class: "status-tag readonly-tag"
|
|
56
|
-
};
|
|
57
53
|
const dropId = "drop";
|
|
58
54
|
const _sfc_main = {
|
|
59
55
|
__name: "index",
|
|
@@ -436,13 +432,6 @@ const _sfc_main = {
|
|
|
436
432
|
]),
|
|
437
433
|
_: 1
|
|
438
434
|
})
|
|
439
|
-
])) : item.component.readOnly ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12, [
|
|
440
|
-
vue.createVNode(_component_el_icon, null, {
|
|
441
|
-
default: vue.withCtx(() => [
|
|
442
|
-
vue.createVNode(vue.unref(index$4.View))
|
|
443
|
-
]),
|
|
444
|
-
_: 1
|
|
445
|
-
})
|
|
446
435
|
])) : vue.createCommentVNode("", true)
|
|
447
436
|
]),
|
|
448
437
|
vue.createElementVNode("div", {
|
|
@@ -501,5 +490,5 @@ const _sfc_main = {
|
|
|
501
490
|
};
|
|
502
491
|
}
|
|
503
492
|
};
|
|
504
|
-
const formWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
493
|
+
const formWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f7bfeb0a"]]);
|
|
505
494
|
exports.default = formWorkArea;
|
|
@@ -12,7 +12,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
12
12
|
const vue = require("vue");
|
|
13
13
|
const common = require("../../utils/common.js");
|
|
14
14
|
const eventBus = require("../../utils/eventBus.js");
|
|
15
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
15
|
+
const ValueSelector = require("../../../components/ValueSelector.vue.js");
|
|
16
16
|
const index = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/collapse/index.js");
|
|
17
17
|
const index$1 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.js");
|
|
18
18
|
const index$2 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.js");
|
|
@@ -14,7 +14,7 @@ const vue = require("vue");
|
|
|
14
14
|
const common = require("../../utils/common.js");
|
|
15
15
|
const TemplateSelector = require("../../../components/TemplateSelector.vue.js");
|
|
16
16
|
const eventBus = require("../../utils/eventBus.js");
|
|
17
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
17
|
+
const ValueSelector = require("../../../components/ValueSelector.vue.js");
|
|
18
18
|
const index = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/collapse/index.js");
|
|
19
19
|
const index$1 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.js");
|
|
20
20
|
const index$2 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.js");
|
|
@@ -15,7 +15,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
15
15
|
const vue = require("vue");
|
|
16
16
|
const index$6 = require("../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.13_typescript@5.7.3_/node_modules/@element-plus/icons-vue/dist/index.js");
|
|
17
17
|
const common = require("../utils/common.js");
|
|
18
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
18
|
+
const ValueSelector = require("../../components/ValueSelector.vue.js");
|
|
19
19
|
const index = require("../../api/index.js");
|
|
20
20
|
;/* empty css */
|
|
21
21
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
@@ -8,13 +8,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const vue = require("vue");
|
|
11
|
+
;/* empty css */
|
|
12
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
11
13
|
;/* empty css */
|
|
12
14
|
;/* empty css */
|
|
13
15
|
;/* empty css */
|
|
14
16
|
;/* empty css */
|
|
15
17
|
;/* empty css */
|
|
16
|
-
;/* empty css */
|
|
17
|
-
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
18
18
|
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-cell/index.js");
|
|
19
19
|
const functionCall = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.js");
|
|
20
20
|
require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/index.js");
|
|
@@ -14,6 +14,7 @@ const getJsonAsyncUtil = require("../../../utils/getJsonAsyncUtil.js");
|
|
|
14
14
|
const FormItem = require("../formItem/FormItem.vue.js");
|
|
15
15
|
const datasource = require("../../../utils/datasource.js");
|
|
16
16
|
const validation = require("./validation.js");
|
|
17
|
+
const parseRouteParams = require("../../../utils/parseRouteParams.js");
|
|
17
18
|
const common = require("../../../utils/common.js");
|
|
18
19
|
;/* empty css */
|
|
19
20
|
;/* empty css */
|
|
@@ -205,7 +206,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
205
206
|
if (hiddenFields.value && hiddenFields.value.length > 0) {
|
|
206
207
|
hiddenFields.value.forEach((field) => {
|
|
207
208
|
if (field.fieldName) {
|
|
208
|
-
|
|
209
|
+
if (typeof field.value == "object") {
|
|
210
|
+
debugger;
|
|
211
|
+
const value = parseRouteParams.parseSingleParamValue(field.value, defaultData, [
|
|
212
|
+
...fieldsData.value,
|
|
213
|
+
...hiddenFields.value
|
|
214
|
+
]);
|
|
215
|
+
defaultData[field.fieldName] = value !== void 0 ? value : null;
|
|
216
|
+
} else {
|
|
217
|
+
defaultData[field.fieldName] = field.value !== void 0 ? field.value : null;
|
|
218
|
+
}
|
|
209
219
|
}
|
|
210
220
|
});
|
|
211
221
|
}
|
|
@@ -973,5 +983,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
973
983
|
};
|
|
974
984
|
}
|
|
975
985
|
});
|
|
976
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
986
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e047372a"]]);
|
|
977
987
|
exports.default = _Form;
|
|
@@ -201,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
201
201
|
}, vue.toHandlers(__props.config.eventHandlers), {
|
|
202
202
|
placeholder: __props.placeholder,
|
|
203
203
|
disabled: __props.disabled,
|
|
204
|
-
readonly: __props.suffixButton == "dialog" ? true :
|
|
204
|
+
readonly: __props.suffixButton == "dialog" ? true : false,
|
|
205
205
|
maxlength: __props.maxLength,
|
|
206
206
|
"show-word-limit": __props.showWordCount,
|
|
207
207
|
onChange: handleChange,
|
|
@@ -251,5 +251,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
const _Text = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
254
|
+
const _Text = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b0a06421"]]);
|
|
255
255
|
exports.default = _Text;
|
|
@@ -539,7 +539,6 @@ async function handleDialog(node, data, fields, context) {
|
|
|
539
539
|
const dialogList = context.localConfig.dialogs || [];
|
|
540
540
|
dialog = dialogList.find((item) => item.id == (basic == null ? void 0 : basic.dialogId));
|
|
541
541
|
dialog.subFormMode = basic.subFormMode;
|
|
542
|
-
dialog.selectionMode = basic.selectionMode;
|
|
543
542
|
}
|
|
544
543
|
if (!dialog) {
|
|
545
544
|
console.error("ui-dialog: 未找到匹配的弹层配置," + (basic == null ? void 0 : basic.dialogId));
|
|
@@ -10,7 +10,7 @@ function parseSingleParamValue(value, data, fields) {
|
|
|
10
10
|
}
|
|
11
11
|
const type = value.type;
|
|
12
12
|
if (type === "field") {
|
|
13
|
-
const field = fields.find((f) => f.id
|
|
13
|
+
const field = fields.find((f) => f.id == value.value);
|
|
14
14
|
if (field) {
|
|
15
15
|
return data[field.fieldName];
|
|
16
16
|
}
|