@fecp/designer 5.2.12 → 5.2.14

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.
Files changed (37) hide show
  1. package/es/designer.css +161 -119
  2. package/es/packages/designer/package.json.mjs +1 -1
  3. package/es/packages/designer/src/api/index.mjs +3 -0
  4. package/es/packages/designer/src/components/FieldSetMapping.vue2.mjs +2 -1
  5. package/es/packages/designer/src/components/ValueSelector.vue2.mjs +2 -2
  6. package/es/packages/designer/src/layout/header/index.vue.mjs +14 -3
  7. package/es/packages/designer/src/packages/dataSource/dataSource.vue.mjs +3 -3
  8. package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +1 -1
  9. package/es/packages/designer/src/packages/form/headerBtn.vue.mjs +40 -21
  10. package/es/packages/designer/src/packages/prod/index.vue.mjs +516 -0
  11. package/es/packages/designer/src/packages/prod/useProdDialog.mjs +16 -0
  12. package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +3 -3
  13. package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
  14. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +15 -4
  15. package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +9 -2
  16. package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +64 -2
  17. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +6 -2
  18. package/es/packages/vue/src/components/table/Table.vue.mjs +9 -8
  19. package/lib/designer.css +161 -119
  20. package/lib/packages/designer/package.json.js +1 -1
  21. package/lib/packages/designer/src/api/index.js +3 -0
  22. package/lib/packages/designer/src/components/FieldSetMapping.vue2.js +2 -1
  23. package/lib/packages/designer/src/components/ValueSelector.vue2.js +2 -2
  24. package/lib/packages/designer/src/layout/header/index.vue.js +14 -3
  25. package/lib/packages/designer/src/packages/dataSource/dataSource.vue.js +3 -3
  26. package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +1 -1
  27. package/lib/packages/designer/src/packages/form/headerBtn.vue.js +39 -20
  28. package/lib/packages/designer/src/packages/prod/index.vue.js +516 -0
  29. package/lib/packages/designer/src/packages/prod/useProdDialog.js +16 -0
  30. package/lib/packages/designer/src/packages/table/headerBtn.vue.js +3 -3
  31. package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
  32. package/lib/packages/vue/src/components/forms/form/Form.vue.js +15 -4
  33. package/lib/packages/vue/src/components/forms/h2/H2.vue.js +9 -2
  34. package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +64 -2
  35. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +6 -2
  36. package/lib/packages/vue/src/components/table/Table.vue.js +9 -8
  37. package/package.json +1 -1
@@ -0,0 +1,516 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ /* empty css */
9
+ /* empty css */
10
+ /* empty css */
11
+ /* empty css */
12
+ /* empty css */
13
+ import { useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
14
+ import { Plus as plus_default } from "../../../../../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.mjs";
15
+ import { getEditConfigData, getEditConfigDataFields, setEditConfigData } from "../utils/common.mjs";
16
+ import ValueSelector from "../../components/ValueSelector.vue2.mjs";
17
+ import api from "../../api/index.mjs";
18
+ /* empty css */
19
+ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
20
+ import { ElMessage } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message/index.mjs";
21
+ import { ElDialog } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/dialog/index.mjs";
22
+ import { ElForm, ElFormItem } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.mjs";
23
+ import { ElSelect, ElOption } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/select/index.mjs";
24
+ import { ElButton } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.mjs";
25
+ const _hoisted_1 = { class: "config-list" };
26
+ const _hoisted_2 = { class: "config-row" };
27
+ const _hoisted_3 = { class: "config-list" };
28
+ const _hoisted_4 = { class: "config-row" };
29
+ const _hoisted_5 = { class: "config-list" };
30
+ const _hoisted_6 = { class: "config-row" };
31
+ const _hoisted_7 = { class: "dialog-footer" };
32
+ const _sfc_main = {
33
+ __name: "index",
34
+ props: {
35
+ "modelValue": { required: true },
36
+ "modelModifiers": {}
37
+ },
38
+ emits: ["update:modelValue"],
39
+ setup(__props, { expose: __expose }) {
40
+ var _a;
41
+ const dialogVisible = useModel(__props, "modelValue");
42
+ const prodConfig = ref(((_a = getEditConfigData()) == null ? void 0 : _a.prodConfig) || {});
43
+ watch(
44
+ () => dialogVisible.value,
45
+ (newVisible) => {
46
+ var _a2;
47
+ if (newVisible) {
48
+ const savedConfig = ((_a2 = getEditConfigData()) == null ? void 0 : _a2.prodConfig) || {};
49
+ if (savedConfig.optionConfigs) {
50
+ optionConfigs.value = savedConfig.optionConfigs.map((item) => ({
51
+ ...item,
52
+ id: generateId()
53
+ }));
54
+ }
55
+ if (savedConfig.defaultValueConfigs) {
56
+ defaultValueConfigs.value = savedConfig.defaultValueConfigs.map(
57
+ (item) => ({
58
+ ...item,
59
+ id: generateId()
60
+ })
61
+ );
62
+ }
63
+ if (savedConfig.validationConfigs) {
64
+ validationConfigs.value = savedConfig.validationConfigs.map((item) => ({
65
+ ...item,
66
+ id: generateId()
67
+ }));
68
+ }
69
+ fetchProductConfig();
70
+ }
71
+ }
72
+ );
73
+ const fieldsDataAll = computed(() => {
74
+ var _a2;
75
+ return [
76
+ ...getEditConfigDataFields(),
77
+ ...((_a2 = getEditConfigData()) == null ? void 0 : _a2.hiddenFields) || []
78
+ ];
79
+ });
80
+ const parsedConfig = ref([]);
81
+ const optionConfigs = ref([]);
82
+ const defaultValueConfigs = ref([]);
83
+ const validationConfigs = ref([]);
84
+ function generateId() {
85
+ return Date.now() + Math.random().toString(36).substr(2, 9);
86
+ }
87
+ function addOptionConfig() {
88
+ optionConfigs.value.push({
89
+ id: generateId(),
90
+ pageField: "",
91
+ productConfigField: ""
92
+ });
93
+ }
94
+ function removeOptionConfig(index) {
95
+ optionConfigs.value.splice(index, 1);
96
+ }
97
+ function addDefaultValueConfig() {
98
+ defaultValueConfigs.value.push({
99
+ id: generateId(),
100
+ pageField: "",
101
+ productConfigField: ""
102
+ });
103
+ }
104
+ function removeDefaultValueConfig(index) {
105
+ defaultValueConfigs.value.splice(index, 1);
106
+ }
107
+ function addValidationConfig() {
108
+ validationConfigs.value.push({
109
+ id: generateId(),
110
+ pageField: "",
111
+ minProductField: "",
112
+ maxProductField: ""
113
+ });
114
+ }
115
+ function removeValidationConfig(index) {
116
+ validationConfigs.value.splice(index, 1);
117
+ }
118
+ const handleClose = (done) => {
119
+ handleCancel();
120
+ done();
121
+ };
122
+ const handleCancel = () => {
123
+ optionConfigs.value = [
124
+ {
125
+ id: generateId(),
126
+ pageField: "",
127
+ productConfigField: ""
128
+ }
129
+ ];
130
+ defaultValueConfigs.value = [
131
+ {
132
+ id: generateId(),
133
+ pageField: "",
134
+ productConfigField: ""
135
+ }
136
+ ];
137
+ validationConfigs.value = [
138
+ {
139
+ id: generateId(),
140
+ pageField: "",
141
+ minProductField: "",
142
+ maxProductField: ""
143
+ }
144
+ ];
145
+ parsedConfig.value = [];
146
+ dialogVisible.value = false;
147
+ };
148
+ const handleConfirm = () => {
149
+ const editConfig = getEditConfigData();
150
+ console.log("🚀 ~ handleConfirm ~ finalConfig.value:", finalConfig.value);
151
+ const updatedConfig = {
152
+ ...editConfig,
153
+ prodConfig: finalConfig.value
154
+ };
155
+ setEditConfigData(updatedConfig);
156
+ handleCancel();
157
+ };
158
+ const fetchProductConfig = async () => {
159
+ try {
160
+ const response = await api.getProductConfig();
161
+ parsedConfig.value = response.map((item) => ({
162
+ fieldName: item.fieldName || "",
163
+ fieldDesc: item.label || item.fieldName || "",
164
+ // 保留原始数据中的其他字段
165
+ ...item
166
+ }));
167
+ if (parsedConfig.value.length === 0) {
168
+ ElMessage.warning("未获取到产品配置数据");
169
+ }
170
+ } catch (error) {
171
+ ElMessage.error("获取产品配置失败");
172
+ console.error("获取产品配置失败:", error);
173
+ parsedConfig.value = [];
174
+ }
175
+ };
176
+ const finalConfig = computed(() => {
177
+ const result = {
178
+ prodId: prodConfig.value.prodId,
179
+ optionConfigs: optionConfigs.value,
180
+ defaultValueConfigs: defaultValueConfigs.value,
181
+ validationConfigs: validationConfigs.value
182
+ };
183
+ return result;
184
+ });
185
+ __expose({});
186
+ return (_ctx, _cache) => {
187
+ const _component_el_form_item = ElFormItem;
188
+ const _component_el_option = ElOption;
189
+ const _component_el_select = ElSelect;
190
+ const _component_el_button = ElButton;
191
+ const _component_el_form = ElForm;
192
+ const _component_el_dialog = ElDialog;
193
+ return openBlock(), createBlock(_component_el_dialog, {
194
+ modelValue: dialogVisible.value,
195
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
196
+ title: "产品配置",
197
+ width: "600px",
198
+ "close-on-click-modal": false,
199
+ "before-close": handleClose,
200
+ draggable: "",
201
+ overflow: "",
202
+ "append-to-body": "",
203
+ class: "fec-dev-designer-dialog"
204
+ }, {
205
+ footer: withCtx(() => [
206
+ createElementVNode("span", _hoisted_7, [
207
+ createVNode(_component_el_button, { onClick: handleCancel }, {
208
+ default: withCtx(() => _cache[12] || (_cache[12] = [
209
+ createTextVNode("取消")
210
+ ])),
211
+ _: 1
212
+ }),
213
+ createVNode(_component_el_button, {
214
+ type: "primary",
215
+ onClick: handleConfirm
216
+ }, {
217
+ default: withCtx(() => _cache[13] || (_cache[13] = [
218
+ createTextVNode(" 确定 ")
219
+ ])),
220
+ _: 1
221
+ })
222
+ ])
223
+ ]),
224
+ default: withCtx(() => [
225
+ createVNode(_component_el_form, {
226
+ "label-position": "top",
227
+ "label-width": "auto",
228
+ model: prodConfig.value
229
+ }, {
230
+ default: withCtx(() => [
231
+ createVNode(_component_el_form_item, null, {
232
+ label: withCtx(() => _cache[2] || (_cache[2] = [
233
+ createElementVNode("span", { class: "prod-config-label" }, "产品ID字段", -1)
234
+ ])),
235
+ default: withCtx(() => [
236
+ createVNode(ValueSelector, {
237
+ modelValue: prodConfig.value.prodId,
238
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => prodConfig.value.prodId = $event),
239
+ readOnly: "",
240
+ size: "default"
241
+ }, null, 8, ["modelValue"])
242
+ ]),
243
+ _: 1
244
+ }),
245
+ createVNode(_component_el_form_item, null, {
246
+ label: withCtx(() => _cache[3] || (_cache[3] = [
247
+ createElementVNode("span", { class: "prod-config-label" }, "可选项配置", -1)
248
+ ])),
249
+ default: withCtx(() => [
250
+ createElementVNode("div", _hoisted_1, [
251
+ (openBlock(true), createElementBlock(Fragment, null, renderList(optionConfigs.value, (item, index) => {
252
+ return openBlock(), createElementBlock("div", {
253
+ key: item.id,
254
+ class: "config-item"
255
+ }, [
256
+ createElementVNode("div", _hoisted_2, [
257
+ createVNode(_component_el_select, {
258
+ modelValue: item.pageField,
259
+ "onUpdate:modelValue": ($event) => item.pageField = $event,
260
+ placeholder: "选择页面字段",
261
+ filterable: "",
262
+ clearable: "",
263
+ style: { "width": "200px", "margin-right": "10px" }
264
+ }, {
265
+ default: withCtx(() => [
266
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fieldsDataAll.value, (field) => {
267
+ return openBlock(), createBlock(_component_el_option, {
268
+ key: field.id,
269
+ label: field.label,
270
+ value: field.id
271
+ }, null, 8, ["label", "value"]);
272
+ }), 128))
273
+ ]),
274
+ _: 2
275
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
276
+ createVNode(_component_el_select, {
277
+ modelValue: item.productConfigField,
278
+ "onUpdate:modelValue": ($event) => item.productConfigField = $event,
279
+ placeholder: "选择产品配置项",
280
+ filterable: "",
281
+ clearable: "",
282
+ style: { "width": "250px", "margin-right": "10px" }
283
+ }, {
284
+ default: withCtx(() => [
285
+ (openBlock(true), createElementBlock(Fragment, null, renderList(parsedConfig.value, (config) => {
286
+ return openBlock(), createBlock(_component_el_option, {
287
+ key: config.fieldName,
288
+ label: config.fieldDesc,
289
+ value: config.fieldName
290
+ }, null, 8, ["label", "value"]);
291
+ }), 128))
292
+ ]),
293
+ _: 2
294
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
295
+ createVNode(_component_el_button, {
296
+ type: "danger",
297
+ size: "small",
298
+ link: "",
299
+ onClick: ($event) => removeOptionConfig(index)
300
+ }, {
301
+ default: withCtx(() => _cache[4] || (_cache[4] = [
302
+ createTextVNode(" 删除 ")
303
+ ])),
304
+ _: 2
305
+ }, 1032, ["onClick"])
306
+ ])
307
+ ]);
308
+ }), 128)),
309
+ createVNode(_component_el_button, {
310
+ type: "primary",
311
+ size: "small",
312
+ icon: unref(plus_default),
313
+ link: "",
314
+ onClick: addOptionConfig
315
+ }, {
316
+ default: withCtx(() => _cache[5] || (_cache[5] = [
317
+ createTextVNode(" 新增 ")
318
+ ])),
319
+ _: 1
320
+ }, 8, ["icon"])
321
+ ])
322
+ ]),
323
+ _: 1
324
+ }),
325
+ createVNode(_component_el_form_item, null, {
326
+ label: withCtx(() => _cache[6] || (_cache[6] = [
327
+ createElementVNode("span", { class: "prod-config-label" }, "默认值配置", -1)
328
+ ])),
329
+ default: withCtx(() => [
330
+ createElementVNode("div", _hoisted_3, [
331
+ (openBlock(true), createElementBlock(Fragment, null, renderList(defaultValueConfigs.value, (item, index) => {
332
+ return openBlock(), createElementBlock("div", {
333
+ key: item.id,
334
+ class: "config-item"
335
+ }, [
336
+ createElementVNode("div", _hoisted_4, [
337
+ createVNode(_component_el_select, {
338
+ modelValue: item.pageField,
339
+ "onUpdate:modelValue": ($event) => item.pageField = $event,
340
+ placeholder: "选择页面字段",
341
+ filterable: "",
342
+ clearable: "",
343
+ style: { "width": "200px", "margin-right": "10px" }
344
+ }, {
345
+ default: withCtx(() => [
346
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fieldsDataAll.value, (field) => {
347
+ return openBlock(), createBlock(_component_el_option, {
348
+ key: field.id,
349
+ label: field.label,
350
+ value: field.id
351
+ }, null, 8, ["label", "value"]);
352
+ }), 128))
353
+ ]),
354
+ _: 2
355
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
356
+ createVNode(_component_el_select, {
357
+ modelValue: item.productConfigField,
358
+ "onUpdate:modelValue": ($event) => item.productConfigField = $event,
359
+ placeholder: "选择产品配置项",
360
+ filterable: "",
361
+ clearable: "",
362
+ style: { "width": "250px", "margin-right": "10px" }
363
+ }, {
364
+ default: withCtx(() => [
365
+ (openBlock(true), createElementBlock(Fragment, null, renderList(parsedConfig.value, (config) => {
366
+ return openBlock(), createBlock(_component_el_option, {
367
+ key: config.fieldName,
368
+ label: config.fieldDesc,
369
+ value: config.fieldName
370
+ }, null, 8, ["label", "value"]);
371
+ }), 128))
372
+ ]),
373
+ _: 2
374
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
375
+ createVNode(_component_el_button, {
376
+ type: "danger",
377
+ size: "small",
378
+ link: "",
379
+ onClick: ($event) => removeDefaultValueConfig(index)
380
+ }, {
381
+ default: withCtx(() => _cache[7] || (_cache[7] = [
382
+ createTextVNode(" 删除 ")
383
+ ])),
384
+ _: 2
385
+ }, 1032, ["onClick"])
386
+ ])
387
+ ]);
388
+ }), 128)),
389
+ createVNode(_component_el_button, {
390
+ type: "primary",
391
+ size: "small",
392
+ icon: unref(plus_default),
393
+ link: "",
394
+ onClick: addDefaultValueConfig
395
+ }, {
396
+ default: withCtx(() => _cache[8] || (_cache[8] = [
397
+ createTextVNode(" 新增 ")
398
+ ])),
399
+ _: 1
400
+ }, 8, ["icon"])
401
+ ])
402
+ ]),
403
+ _: 1
404
+ }),
405
+ createVNode(_component_el_form_item, null, {
406
+ label: withCtx(() => _cache[9] || (_cache[9] = [
407
+ createElementVNode("span", { class: "prod-config-label" }, "校验配置", -1)
408
+ ])),
409
+ default: withCtx(() => [
410
+ createElementVNode("div", _hoisted_5, [
411
+ (openBlock(true), createElementBlock(Fragment, null, renderList(validationConfigs.value, (item, index) => {
412
+ return openBlock(), createElementBlock("div", {
413
+ key: item.id,
414
+ class: "config-item"
415
+ }, [
416
+ createElementVNode("div", _hoisted_6, [
417
+ createVNode(_component_el_select, {
418
+ modelValue: item.pageField,
419
+ "onUpdate:modelValue": ($event) => item.pageField = $event,
420
+ placeholder: "选择页面字段",
421
+ filterable: "",
422
+ clearable: "",
423
+ style: { "width": "200px", "margin-right": "10px" }
424
+ }, {
425
+ default: withCtx(() => [
426
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fieldsDataAll.value, (field) => {
427
+ return openBlock(), createBlock(_component_el_option, {
428
+ key: field.id,
429
+ label: field.label,
430
+ value: field.id
431
+ }, null, 8, ["label", "value"]);
432
+ }), 128))
433
+ ]),
434
+ _: 2
435
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
436
+ createVNode(_component_el_select, {
437
+ modelValue: item.minProductField,
438
+ "onUpdate:modelValue": ($event) => item.minProductField = $event,
439
+ placeholder: "最小值配置项",
440
+ filterable: "",
441
+ clearable: "",
442
+ style: { "width": "200px", "margin-right": "10px" }
443
+ }, {
444
+ default: withCtx(() => [
445
+ (openBlock(true), createElementBlock(Fragment, null, renderList(parsedConfig.value, (config) => {
446
+ return openBlock(), createBlock(_component_el_option, {
447
+ key: config.fieldName,
448
+ label: config.fieldDesc,
449
+ value: config.fieldName
450
+ }, null, 8, ["label", "value"]);
451
+ }), 128))
452
+ ]),
453
+ _: 2
454
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
455
+ createVNode(_component_el_select, {
456
+ modelValue: item.maxProductField,
457
+ "onUpdate:modelValue": ($event) => item.maxProductField = $event,
458
+ placeholder: "最大值配置项",
459
+ filterable: "",
460
+ clearable: "",
461
+ style: { "width": "200px", "margin-right": "10px" }
462
+ }, {
463
+ default: withCtx(() => [
464
+ (openBlock(true), createElementBlock(Fragment, null, renderList(parsedConfig.value, (config) => {
465
+ return openBlock(), createBlock(_component_el_option, {
466
+ key: config.fieldName,
467
+ label: config.fieldDesc,
468
+ value: config.fieldName
469
+ }, null, 8, ["label", "value"]);
470
+ }), 128))
471
+ ]),
472
+ _: 2
473
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
474
+ createVNode(_component_el_button, {
475
+ type: "danger",
476
+ size: "small",
477
+ link: "",
478
+ onClick: ($event) => removeValidationConfig(index)
479
+ }, {
480
+ default: withCtx(() => _cache[10] || (_cache[10] = [
481
+ createTextVNode(" 删除 ")
482
+ ])),
483
+ _: 2
484
+ }, 1032, ["onClick"])
485
+ ])
486
+ ]);
487
+ }), 128)),
488
+ createVNode(_component_el_button, {
489
+ type: "primary",
490
+ size: "small",
491
+ icon: unref(plus_default),
492
+ link: "",
493
+ onClick: addValidationConfig
494
+ }, {
495
+ default: withCtx(() => _cache[11] || (_cache[11] = [
496
+ createTextVNode(" 新增 ")
497
+ ])),
498
+ _: 1
499
+ }, 8, ["icon"])
500
+ ])
501
+ ]),
502
+ _: 1
503
+ })
504
+ ]),
505
+ _: 1
506
+ }, 8, ["model"])
507
+ ]),
508
+ _: 1
509
+ }, 8, ["modelValue"]);
510
+ };
511
+ }
512
+ };
513
+ const ProdDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a85b9b72"]]);
514
+ export {
515
+ ProdDialog as default
516
+ };
@@ -0,0 +1,16 @@
1
+ import ProdDialog from "./index.vue.mjs";
2
+ import { ref } from "vue";
3
+ function useProdDialog() {
4
+ const prodDialogVisible = ref(false);
5
+ const openProdDialog = () => {
6
+ prodDialogVisible.value = true;
7
+ };
8
+ return {
9
+ prodDialogVisible,
10
+ openProdDialog,
11
+ ProdDialog
12
+ };
13
+ }
14
+ export {
15
+ useProdDialog
16
+ };
@@ -147,7 +147,7 @@ const _sfc_main = {
147
147
  ]),
148
148
  _: 1
149
149
  }),
150
- _cache[12] || (_cache[12] = createElementVNode("span", null, "全局事件", -1))
150
+ _cache[12] || (_cache[12] = createElementVNode("span", null, "页面事件", -1))
151
151
  ]),
152
152
  createVNode(PageEvent, {
153
153
  modelValue: unref(pageEventDialogVisible),
@@ -195,7 +195,7 @@ const _sfc_main = {
195
195
  ]),
196
196
  _: 1
197
197
  }),
198
- _cache[15] || (_cache[15] = createElementVNode("span", null, "自定义弹层", -1))
198
+ _cache[15] || (_cache[15] = createElementVNode("span", null, "页面弹层", -1))
199
199
  ]),
200
200
  createVNode(unref(DialogDialog), {
201
201
  modelValue: unref(dialogDialogVisible),
@@ -221,7 +221,7 @@ const _sfc_main = {
221
221
  };
222
222
  }
223
223
  };
224
- const tableHeaderBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-31dcf7ee"]]);
224
+ const tableHeaderBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a617517"]]);
225
225
  export {
226
226
  tableHeaderBtn as default
227
227
  };
@@ -6,13 +6,13 @@
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
9
- /* empty css */
10
- import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
11
9
  /* empty css */
12
10
  /* empty css */
13
11
  /* empty css */
14
12
  /* empty css */
15
13
  /* empty css */
14
+ /* empty css */
15
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
16
16
  import { SwipeCell } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-cell/index.mjs";
17
17
  import { showConfirmDialog } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.mjs";
18
18
  import "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/index.mjs";
@@ -500,8 +500,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
500
500
  const fieldType = field.fieldType;
501
501
  const value = result[fieldName];
502
502
  if (fieldName && (fieldType === "checkbox" || fieldType === "multipleSelection" || fieldType === "cascader" || fieldType === "area" || fieldType === "industry")) {
503
+ let splitStr = "|";
504
+ if (fieldType === "cascader" || fieldType === "area" || fieldType === "industry") {
505
+ splitStr = ",";
506
+ }
503
507
  if (Array.isArray(value)) {
504
- result[fieldName] = value.join("|");
508
+ result[fieldName] = value.join(splitStr);
505
509
  }
506
510
  } else if (fieldName && fieldType === "date" && value) {
507
511
  const dateValueType = field.dateValueType;
@@ -540,10 +544,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
540
544
  const processField = (field) => {
541
545
  const fieldName = field.fieldName;
542
546
  const fieldType = field.fieldType;
547
+ if (!processedData.hasOwnProperty(fieldName)) {
548
+ return;
549
+ }
543
550
  const value = processedData[fieldName];
544
551
  if (fieldName && (fieldType === "checkbox" || fieldType === "multipleSelection" || fieldType === "cascader" || fieldType === "area" || fieldType === "industry")) {
545
- if (typeof value === "string" && value.includes("|")) {
546
- processedData[fieldName] = value.split("|");
552
+ let splitStr = "|";
553
+ if (fieldType === "cascader" || fieldType === "area" || fieldType === "industry") {
554
+ splitStr = ",";
555
+ }
556
+ if (typeof value === "string" && value.includes(splitStr)) {
557
+ processedData[fieldName] = value.split(splitStr);
547
558
  } else if (typeof value === "string" && value !== "") {
548
559
  processedData[fieldName] = [value];
549
560
  } else if (value === "" || value === null || value === void 0) {
@@ -682,7 +693,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
682
693
  };
683
694
  }
684
695
  });
685
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a84aa0ec"]]);
696
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1ff2ad83"]]);
686
697
  export {
687
698
  _Form as default
688
699
  };
@@ -6,6 +6,8 @@ const _hoisted_2 = { class: "fec-label" };
6
6
  const _hoisted_3 = { class: "fec-label-title" };
7
7
  const _hoisted_4 = { class: "fec-label-sub-title" };
8
8
  const _hoisted_5 = { class: "fec-buttons" };
9
+ const _hoisted_6 = { class: "left" };
10
+ const _hoisted_7 = { class: "right" };
9
11
  const _sfc_main = {
10
12
  __name: "H2",
11
13
  props: {
@@ -23,13 +25,18 @@ const _sfc_main = {
23
25
  createElementVNode("div", _hoisted_4, toDisplayString(__props.config.subLabel), 1)
24
26
  ]),
25
27
  createElementVNode("div", _hoisted_5, [
26
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
28
+ createElementVNode("div", _hoisted_6, [
29
+ renderSlot(_ctx.$slots, "left", {}, void 0, true)
30
+ ]),
31
+ createElementVNode("div", _hoisted_7, [
32
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
33
+ ])
27
34
  ])
28
35
  ]);
29
36
  };
30
37
  }
31
38
  };
32
- const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7d7c888b"]]);
39
+ const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b5645d10"]]);
33
40
  export {
34
41
  _H2 as default
35
42
  };