@fecp/designer 5.3.14 → 5.3.16

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 (47) hide show
  1. package/es/designer.css +107 -101
  2. package/es/packages/designer/package.json.mjs +1 -1
  3. package/es/packages/designer/src/layout/header/index.vue.mjs +1 -0
  4. package/es/packages/designer/src/packages/dialog/index.vue.mjs +44 -32
  5. package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +1 -0
  6. package/es/packages/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs +100 -0
  7. package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +4 -0
  8. package/es/packages/designer/src/packages/form/property/pageFooterBtn.vue.mjs +13 -1
  9. package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +1 -0
  10. package/es/packages/designer/src/packages/table/property/widgets.vue.mjs +8 -1
  11. package/es/packages/designer/src/packages/table/tableSetting.vue.mjs +72 -16
  12. package/es/packages/vue/src/components/details/header/Header.vue.mjs +14 -6
  13. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +6 -2
  14. package/es/packages/vue/src/components/forms/checkbox/Checkbox.vue.mjs +2 -3
  15. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +28 -4
  16. package/es/packages/vue/src/components/forms/radio/Radio.vue.mjs +2 -3
  17. package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +5 -5
  18. package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
  19. package/es/packages/vue/src/components/table/Table.vue.mjs +6 -3
  20. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
  21. package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
  22. package/es/packages/vue/src/utils/datasource.mjs +1 -1
  23. package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +62 -0
  24. package/lib/designer.css +107 -101
  25. package/lib/packages/designer/package.json.js +1 -1
  26. package/lib/packages/designer/src/layout/header/index.vue.js +1 -0
  27. package/lib/packages/designer/src/packages/dialog/index.vue.js +44 -32
  28. package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +1 -0
  29. package/lib/packages/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.js +100 -0
  30. package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +4 -0
  31. package/lib/packages/designer/src/packages/form/property/pageFooterBtn.vue.js +13 -1
  32. package/lib/packages/designer/src/packages/table/headerBtn.vue.js +1 -0
  33. package/lib/packages/designer/src/packages/table/property/widgets.vue.js +8 -1
  34. package/lib/packages/designer/src/packages/table/tableSetting.vue.js +71 -15
  35. package/lib/packages/vue/src/components/details/header/Header.vue.js +13 -5
  36. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +6 -2
  37. package/lib/packages/vue/src/components/forms/checkbox/Checkbox.vue.js +2 -3
  38. package/lib/packages/vue/src/components/forms/form/Form.vue.js +28 -4
  39. package/lib/packages/vue/src/components/forms/radio/Radio.vue.js +2 -3
  40. package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +5 -5
  41. package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
  42. package/lib/packages/vue/src/components/table/Table.vue.js +6 -3
  43. package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
  44. package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
  45. package/lib/packages/vue/src/utils/datasource.js +1 -1
  46. package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +62 -0
  47. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.3.14";
3
+ const version = "5.3.16";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -214,6 +214,7 @@ const _sfc_main = {
214
214
  custom.fieldType = "number";
215
215
  custom.format = "yuan";
216
216
  custom.suffix = "元";
217
+ custom.align = "right";
217
218
  } else if (item.dataType == "percentile") {
218
219
  custom.fieldType = "number";
219
220
  custom.format = "percentage";
@@ -291,7 +291,7 @@ const _sfc_main = {
291
291
  const _component_el_dialog = index$1.ElDialog;
292
292
  return vue.openBlock(), vue.createBlock(_component_el_dialog, {
293
293
  modelValue: dialogVisible.value,
294
- "onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => dialogVisible.value = $event),
294
+ "onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => dialogVisible.value = $event),
295
295
  width: "50%",
296
296
  title: "弹层配置",
297
297
  draggable: "",
@@ -302,9 +302,9 @@ const _sfc_main = {
302
302
  footer: vue.withCtx(() => [
303
303
  vue.createElementVNode("div", _hoisted_19, [
304
304
  vue.createVNode(_component_el_button, {
305
- onClick: _cache[27] || (_cache[27] = ($event) => dialogVisible.value = false)
305
+ onClick: _cache[28] || (_cache[28] = ($event) => dialogVisible.value = false)
306
306
  }, {
307
- default: vue.withCtx(() => _cache[48] || (_cache[48] = [
307
+ default: vue.withCtx(() => _cache[49] || (_cache[49] = [
308
308
  vue.createTextVNode("取消")
309
309
  ])),
310
310
  _: 1
@@ -313,7 +313,7 @@ const _sfc_main = {
313
313
  type: "primary",
314
314
  onClick: onConfirm
315
315
  }, {
316
- default: vue.withCtx(() => _cache[49] || (_cache[49] = [
316
+ default: vue.withCtx(() => _cache[50] || (_cache[50] = [
317
317
  vue.createTextVNode("确定")
318
318
  ])),
319
319
  _: 1
@@ -338,7 +338,7 @@ const _sfc_main = {
338
338
  icon: vue.unref(index$4.Plus),
339
339
  onClick: startAddDialog
340
340
  }, {
341
- default: vue.withCtx(() => _cache[29] || (_cache[29] = [
341
+ default: vue.withCtx(() => _cache[30] || (_cache[30] = [
342
342
  vue.createTextVNode(" 新增弹层 ")
343
343
  ])),
344
344
  _: 1
@@ -365,7 +365,7 @@ const _sfc_main = {
365
365
  icon: vue.unref(index$4.Close),
366
366
  onClick: cancelAddDialog
367
367
  }, {
368
- default: vue.withCtx(() => _cache[30] || (_cache[30] = [
368
+ default: vue.withCtx(() => _cache[31] || (_cache[31] = [
369
369
  vue.createTextVNode(" 取消 ")
370
370
  ])),
371
371
  _: 1
@@ -376,7 +376,7 @@ const _sfc_main = {
376
376
  icon: vue.unref(index$4.Check),
377
377
  onClick: confirmAddDialog
378
378
  }, {
379
- default: vue.withCtx(() => _cache[31] || (_cache[31] = [
379
+ default: vue.withCtx(() => _cache[32] || (_cache[32] = [
380
380
  vue.createTextVNode(" 确认 ")
381
381
  ])),
382
382
  _: 1
@@ -460,7 +460,7 @@ const _sfc_main = {
460
460
  default: vue.withCtx(() => [
461
461
  vue.createVNode(_component_el_form, {
462
462
  model: vue.unref(currentDialog),
463
- "label-width": "120px",
463
+ "label-width": "130px",
464
464
  style: { "padding-right": "20px" },
465
465
  size: "small"
466
466
  }, {
@@ -484,25 +484,25 @@ const _sfc_main = {
484
484
  }, {
485
485
  default: vue.withCtx(() => [
486
486
  vue.createVNode(_component_el_radio_button, { value: "standard" }, {
487
- default: vue.withCtx(() => _cache[32] || (_cache[32] = [
487
+ default: vue.withCtx(() => _cache[33] || (_cache[33] = [
488
488
  vue.createTextVNode("标准")
489
489
  ])),
490
490
  _: 1
491
491
  }),
492
492
  vue.createVNode(_component_el_radio_button, { value: "large" }, {
493
- default: vue.withCtx(() => _cache[33] || (_cache[33] = [
493
+ default: vue.withCtx(() => _cache[34] || (_cache[34] = [
494
494
  vue.createTextVNode("更大")
495
495
  ])),
496
496
  _: 1
497
497
  }),
498
498
  vue.createVNode(_component_el_radio_button, { value: "small" }, {
499
- default: vue.withCtx(() => _cache[34] || (_cache[34] = [
499
+ default: vue.withCtx(() => _cache[35] || (_cache[35] = [
500
500
  vue.createTextVNode("更小")
501
501
  ])),
502
502
  _: 1
503
503
  }),
504
504
  vue.createVNode(_component_el_radio_button, { value: "custom" }, {
505
- default: vue.withCtx(() => _cache[35] || (_cache[35] = [
505
+ default: vue.withCtx(() => _cache[36] || (_cache[36] = [
506
506
  vue.createTextVNode("自定义")
507
507
  ])),
508
508
  _: 1
@@ -552,25 +552,25 @@ const _sfc_main = {
552
552
  }, {
553
553
  default: vue.withCtx(() => [
554
554
  vue.createVNode(_component_el_radio_button, { value: "table" }, {
555
- default: vue.withCtx(() => _cache[36] || (_cache[36] = [
555
+ default: vue.withCtx(() => _cache[37] || (_cache[37] = [
556
556
  vue.createTextVNode("列表")
557
557
  ])),
558
558
  _: 1
559
559
  }),
560
560
  vue.createVNode(_component_el_radio_button, { value: "form" }, {
561
- default: vue.withCtx(() => _cache[37] || (_cache[37] = [
561
+ default: vue.withCtx(() => _cache[38] || (_cache[38] = [
562
562
  vue.createTextVNode("表单")
563
563
  ])),
564
564
  _: 1
565
565
  }),
566
566
  vue.createVNode(_component_el_radio_button, { value: "tree" }, {
567
- default: vue.withCtx(() => _cache[38] || (_cache[38] = [
567
+ default: vue.withCtx(() => _cache[39] || (_cache[39] = [
568
568
  vue.createTextVNode("树形")
569
569
  ])),
570
570
  _: 1
571
571
  }),
572
572
  vue.createVNode(_component_el_radio_button, { value: "component" }, {
573
- default: vue.withCtx(() => _cache[39] || (_cache[39] = [
573
+ default: vue.withCtx(() => _cache[40] || (_cache[40] = [
574
574
  vue.createTextVNode("组件")
575
575
  ])),
576
576
  _: 1
@@ -590,13 +590,13 @@ const _sfc_main = {
590
590
  }, {
591
591
  default: vue.withCtx(() => [
592
592
  vue.createVNode(_component_el_radio_button, { value: "select" }, {
593
- default: vue.withCtx(() => _cache[40] || (_cache[40] = [
593
+ default: vue.withCtx(() => _cache[41] || (_cache[41] = [
594
594
  vue.createTextVNode("选择列表")
595
595
  ])),
596
596
  _: 1
597
597
  }),
598
598
  vue.createVNode(_component_el_radio_button, { value: "custom" }, {
599
- default: vue.withCtx(() => _cache[41] || (_cache[41] = [
599
+ default: vue.withCtx(() => _cache[42] || (_cache[42] = [
600
600
  vue.createTextVNode("自定义")
601
601
  ])),
602
602
  _: 1
@@ -657,7 +657,7 @@ const _sfc_main = {
657
657
  icon: "Plus",
658
658
  link: ""
659
659
  }, {
660
- default: vue.withCtx(() => _cache[42] || (_cache[42] = [
660
+ default: vue.withCtx(() => _cache[43] || (_cache[43] = [
661
661
  vue.createTextVNode(" 添加列配置 ")
662
662
  ])),
663
663
  _: 1
@@ -791,19 +791,19 @@ const _sfc_main = {
791
791
  }, {
792
792
  default: vue.withCtx(() => [
793
793
  vue.createVNode(_component_el_radio_button, { value: "none" }, {
794
- default: vue.withCtx(() => _cache[43] || (_cache[43] = [
794
+ default: vue.withCtx(() => _cache[44] || (_cache[44] = [
795
795
  vue.createTextVNode("无")
796
796
  ])),
797
797
  _: 1
798
798
  }),
799
799
  vue.createVNode(_component_el_radio_button, { value: "single" }, {
800
- default: vue.withCtx(() => _cache[44] || (_cache[44] = [
800
+ default: vue.withCtx(() => _cache[45] || (_cache[45] = [
801
801
  vue.createTextVNode("单选")
802
802
  ])),
803
803
  _: 1
804
804
  }),
805
805
  vue.createVNode(_component_el_radio_button, { value: "multiple" }, {
806
- default: vue.withCtx(() => _cache[45] || (_cache[45] = [
806
+ default: vue.withCtx(() => _cache[46] || (_cache[46] = [
807
807
  vue.createTextVNode("多选")
808
808
  ])),
809
809
  _: 1
@@ -828,11 +828,23 @@ const _sfc_main = {
828
828
  ]),
829
829
  _: 1
830
830
  }),
831
- vue.createVNode(_component_el_form_item, { label: "选取后表单赋值" }, {
831
+ vue.unref(currentDialog).selectionMode == "single" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
832
+ key: 0,
833
+ label: "行数据全部赋值表单"
834
+ }, {
835
+ default: vue.withCtx(() => [
836
+ vue.createVNode(_component_el_switch, {
837
+ modelValue: vue.unref(currentDialog).isRowDataAssignToForm,
838
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentDialog).isRowDataAssignToForm = $event)
839
+ }, null, 8, ["modelValue"])
840
+ ]),
841
+ _: 1
842
+ })) : vue.createCommentVNode("", true),
843
+ vue.createVNode(_component_el_form_item, { label: "选取后表单赋值映射" }, {
832
844
  default: vue.withCtx(() => [
833
845
  vue.createVNode(FieldSetMapping.default, {
834
846
  modelValue: vue.unref(currentDialog).fieldMapping,
835
- "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentDialog).fieldMapping = $event),
847
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).fieldMapping = $event),
836
848
  fieldLabel: "赋值表单字段",
837
849
  valueLabel: "列表字段",
838
850
  valueOptions: vue.unref(tableFields),
@@ -858,11 +870,11 @@ const _sfc_main = {
858
870
  default: vue.withCtx(() => [
859
871
  vue.createVNode(TemplateSelector.default, {
860
872
  modelValue: vue.unref(currentDialog).subFormName,
861
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).subFormName = $event),
873
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => vue.unref(currentDialog).subFormName = $event),
862
874
  templateKey: vue.unref(currentDialog).subFormKey,
863
- "onUpdate:templateKey": _cache[23] || (_cache[23] = ($event) => vue.unref(currentDialog).subFormKey = $event),
875
+ "onUpdate:templateKey": _cache[24] || (_cache[24] = ($event) => vue.unref(currentDialog).subFormKey = $event),
864
876
  templateId: vue.unref(currentDialog).subFormId,
865
- "onUpdate:templateId": _cache[24] || (_cache[24] = ($event) => vue.unref(currentDialog).subFormId = $event),
877
+ "onUpdate:templateId": _cache[25] || (_cache[25] = ($event) => vue.unref(currentDialog).subFormId = $event),
866
878
  templateType: "form",
867
879
  onConfirm: formSelectorConfirm
868
880
  }, null, 8, ["modelValue", "templateKey", "templateId"])
@@ -873,17 +885,17 @@ const _sfc_main = {
873
885
  default: vue.withCtx(() => [
874
886
  vue.createVNode(_component_el_radio_group, {
875
887
  modelValue: vue.unref(currentDialog).subFormMode,
876
- "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => vue.unref(currentDialog).subFormMode = $event)
888
+ "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => vue.unref(currentDialog).subFormMode = $event)
877
889
  }, {
878
890
  default: vue.withCtx(() => [
879
891
  vue.createVNode(_component_el_radio_button, { value: "edit" }, {
880
- default: vue.withCtx(() => _cache[46] || (_cache[46] = [
892
+ default: vue.withCtx(() => _cache[47] || (_cache[47] = [
881
893
  vue.createTextVNode("编辑")
882
894
  ])),
883
895
  _: 1
884
896
  }),
885
897
  vue.createVNode(_component_el_radio_button, { value: "query" }, {
886
- default: vue.withCtx(() => _cache[47] || (_cache[47] = [
898
+ default: vue.withCtx(() => _cache[48] || (_cache[48] = [
887
899
  vue.createTextVNode("查看")
888
900
  ])),
889
901
  _: 1
@@ -923,7 +935,7 @@ const _sfc_main = {
923
935
  default: vue.withCtx(() => [
924
936
  vue.createVNode(_component_el_input, {
925
937
  modelValue: vue.unref(currentDialog).componentPath,
926
- "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => vue.unref(currentDialog).componentPath = $event),
938
+ "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => vue.unref(currentDialog).componentPath = $event),
927
939
  placeholder: "请输入组件路径",
928
940
  clearable: ""
929
941
  }, null, 8, ["modelValue"])
@@ -954,5 +966,5 @@ const _sfc_main = {
954
966
  };
955
967
  }
956
968
  };
957
- const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8f751b6e"]]);
969
+ const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-24eec868"]]);
958
970
  exports.default = DialogDialog;
@@ -67,6 +67,7 @@ require("../formulaEditor/core/functionCore.js");
67
67
  ;/* empty css */
68
68
  ;/* empty css */
69
69
  ;/* empty css */
70
+ ;/* empty css */
70
71
  ;/* empty css */
71
72
  ;/* empty css */
72
73
  ;/* empty css */
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
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
+ const vue = require("vue");
12
+ const FieldSetMapping = require("../../../../components/FieldSetMapping.vue2.js");
13
+ const common = require("../../../utils/common.js");
14
+ const index = require("../../../../api/index.js");
15
+ ;/* empty css */
16
+ const _pluginVue_exportHelper = require("../../../../../../../_virtual/_plugin-vue_export-helper.js");
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
+ 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/select/index.js");
19
+ const _sfc_main = {
20
+ __name: "TableChildSelection",
21
+ props: {
22
+ formData: Object
23
+ },
24
+ setup(__props) {
25
+ const props = __props;
26
+ const fieldList = vue.computed(() => {
27
+ return common.getEditConfigDataFields().filter(
28
+ (item) => item.fieldType == "subTable"
29
+ );
30
+ });
31
+ const subTableOptions = vue.ref({});
32
+ vue.watch(
33
+ () => props.formData.selectSubTableFieldId,
34
+ (id) => {
35
+ const fieldItem = common.getEditConfigDataFields().find((item) => item.id == id);
36
+ if (fieldItem) {
37
+ const subTableId = fieldItem.subTableId;
38
+ index.default.getById(subTableId).then((data) => {
39
+ subTableOptions.value = JSON.parse(data.context);
40
+ });
41
+ }
42
+ },
43
+ {
44
+ immediate: true
45
+ }
46
+ );
47
+ const tableFields = vue.computed(() => {
48
+ var _a, _b;
49
+ return [
50
+ ...((_a = subTableOptions.value) == null ? void 0 : _a.fieldsData) || [],
51
+ ...((_b = subTableOptions.value) == null ? void 0 : _b.hiddenFields) || []
52
+ ];
53
+ });
54
+ return (_ctx, _cache) => {
55
+ const _component_el_option = index$2.ElOption;
56
+ const _component_el_select = index$2.ElSelect;
57
+ const _component_el_form_item = index$1.ElFormItem;
58
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
59
+ vue.createVNode(_component_el_form_item, { label: "选择子列表" }, {
60
+ default: vue.withCtx(() => [
61
+ vue.createVNode(_component_el_select, {
62
+ modelValue: __props.formData.selectSubTableFieldId,
63
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.selectSubTableFieldId = $event),
64
+ filterable: "",
65
+ size: "small",
66
+ clearable: ""
67
+ }, {
68
+ default: vue.withCtx(() => [
69
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(fieldList), (item) => {
70
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
71
+ key: item.id,
72
+ label: item.label,
73
+ value: item.id
74
+ }, null, 8, ["label", "value"]);
75
+ }), 128))
76
+ ]),
77
+ _: 1
78
+ }, 8, ["modelValue"])
79
+ ]),
80
+ _: 1
81
+ }),
82
+ vue.createVNode(_component_el_form_item, { label: "选取后表单赋值映射" }, {
83
+ default: vue.withCtx(() => [
84
+ vue.createVNode(FieldSetMapping.default, {
85
+ modelValue: __props.formData.subTableSelectionFieldMapping,
86
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.subTableSelectionFieldMapping = $event),
87
+ fieldLabel: "赋值表单字段",
88
+ valueLabel: "列表字段",
89
+ valueOptions: vue.unref(tableFields),
90
+ valueSelectMode: ""
91
+ }, null, 8, ["modelValue", "valueOptions"])
92
+ ]),
93
+ _: 1
94
+ })
95
+ ], 64);
96
+ };
97
+ }
98
+ };
99
+ const TableChildSelection = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-aac8efa4"]]);
100
+ exports.default = TableChildSelection;
@@ -12,6 +12,7 @@ const TableChildRefresh = require("./TableChildRefresh.vue2.js");
12
12
  const TableRowDelete = require("./TableRowDelete.vue2.js");
13
13
  const Dialog = require("./Dialog.vue.js");
14
14
  const Upload = require("./Upload.vue2.js");
15
+ const TableChildSelection = require("./TableChildSelection.vue2.js");
15
16
  const menuData = [
16
17
  {
17
18
  index: "page",
@@ -96,6 +97,9 @@ const menuData = [
96
97
  resetSort: false,
97
98
  resetFilter: false,
98
99
  resetPagination: false
100
+ } },
101
+ { index: "table-child-selection", label: "子列表勾选数据赋值", desc: "将子列表勾选的数据赋值到主表单", component: TableChildSelection.default, default: {
102
+ subTableSelectionFieldMapping: []
99
103
  } }
100
104
  ]
101
105
  },
@@ -4,6 +4,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
4
4
  ;/* empty css */
5
5
  ;/* empty css */
6
6
  ;/* empty css */
7
+ ;/* empty css */
7
8
  ;/* empty css */
8
9
  ;/* empty css */
9
10
  ;/* empty css */
@@ -19,6 +20,7 @@ const index = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_
19
20
  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
21
  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/select/index.js");
21
22
  const index$3 = 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");
23
+ const index$4 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.js");
22
24
  const _sfc_main = {
23
25
  __name: "pageFooterBtn",
24
26
  setup(__props) {
@@ -34,13 +36,14 @@ const _sfc_main = {
34
36
  const _component_el_select = index$2.ElSelect;
35
37
  const _component_el_form_item = index$1.ElFormItem;
36
38
  const _component_el_input = index$3.ElInput;
39
+ const _component_el_switch = index$4.ElSwitch;
37
40
  const _component_el_form = index$1.ElForm;
38
41
  const _component_el_collapse_item = index.ElCollapseItem;
39
42
  const _component_el_collapse = index.ElCollapse;
40
43
  return vue.openBlock(), vue.createBlock(_component_el_collapse, {
41
44
  class: "setting",
42
45
  modelValue: vue.unref(activeName),
43
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(activeName) ? activeName.value = $event : null)
46
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(activeName) ? activeName.value = $event : null)
44
47
  }, {
45
48
  default: vue.withCtx(() => [
46
49
  vue.createVNode(_component_el_collapse_item, {
@@ -96,6 +99,15 @@ const _sfc_main = {
96
99
  ]),
97
100
  _: 1
98
101
  }),
102
+ vue.createVNode(_component_el_form_item, { label: "是否用于审批" }, {
103
+ default: vue.withCtx(() => [
104
+ vue.createVNode(_component_el_switch, {
105
+ modelValue: vue.unref(currentItem).isApproval,
106
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(currentItem).isApproval = $event)
107
+ }, null, 8, ["modelValue"])
108
+ ]),
109
+ _: 1
110
+ }),
99
111
  vue.createVNode(_component_el_form_item, { label: "事件配置" }, {
100
112
  default: vue.withCtx(() => [
101
113
  vue.createVNode(EventConfigButton.default, {
@@ -78,6 +78,7 @@ require("../../../../../_virtual/index.js");
78
78
  ;/* empty css */
79
79
  ;/* empty css */
80
80
  ;/* empty css */
81
+ ;/* empty css */
81
82
  const useAdvancedFilterDialog = require("../advancedFilter/useAdvancedFilterDialog.js");
82
83
  ;/* empty css */
83
84
  ;/* empty css */
@@ -59,6 +59,7 @@ const _sfc_main = {
59
59
  currentItem.value;
60
60
  }
61
61
  function handleFormatChange(value) {
62
+ currentItem.value.align = "center";
62
63
  switch (value) {
63
64
  case "percentage":
64
65
  currentItem.value.suffix = "%";
@@ -69,6 +70,12 @@ const _sfc_main = {
69
70
  case "permillion":
70
71
  currentItem.value.suffix = "‱";
71
72
  break;
73
+ case "yuan":
74
+ case "wan":
75
+ case "million":
76
+ currentItem.value.suffix = "";
77
+ currentItem.value.align = "right";
78
+ break;
72
79
  default:
73
80
  currentItem.value.suffix = "";
74
81
  break;
@@ -491,5 +498,5 @@ const _sfc_main = {
491
498
  };
492
499
  }
493
500
  };
494
- const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b2bc33ea"]]);
501
+ const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f6e822bf"]]);
495
502
  exports.default = widgets;
@@ -57,6 +57,15 @@ const _sfc_main = {
57
57
  const tableConfig = vue.computed(() => {
58
58
  return common.getEditConfigData();
59
59
  });
60
+ const hiddenFields = vue.computed(() => {
61
+ var _a;
62
+ const fields = ((_a = tableConfig.value) == null ? void 0 : _a.hiddenFields) || [];
63
+ return fields.map((item) => ({
64
+ id: item == null ? void 0 : item.id,
65
+ fieldName: item == null ? void 0 : item.fieldName,
66
+ label: item == null ? void 0 : item.label
67
+ }));
68
+ });
60
69
  const dataSources = vue.computed(() => {
61
70
  return tableConfig.value.dataSources || [];
62
71
  });
@@ -106,6 +115,7 @@ const _sfc_main = {
106
115
  const _component_el_radio_button = index.ElRadioButton;
107
116
  const _component_el_radio_group = index.ElRadioGroup;
108
117
  const _component_el_option = index$1.ElOption;
118
+ const _component_el_option_group = index$1.ElOptionGroup;
109
119
  const _component_el_select = index$1.ElSelect;
110
120
  const _component_el_switch = index$2.ElSwitch;
111
121
  const _component_el_input_number = index$3.ElInputNumber;
@@ -158,13 +168,36 @@ const _sfc_main = {
158
168
  style: { "width": "100px" }
159
169
  }, {
160
170
  default: vue.withCtx(() => [
161
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableConfig).fieldsData, (field) => {
162
- return vue.openBlock(), vue.createBlock(_component_el_option, {
163
- key: field.fieldName,
164
- label: field.label,
165
- value: field.fieldName
166
- }, null, 8, ["label", "value"]);
167
- }), 128))
171
+ vue.unref(tableConfig).fieldsData.length > 0 ? (vue.openBlock(), vue.createBlock(_component_el_option_group, {
172
+ key: 0,
173
+ label: "列表字段"
174
+ }, {
175
+ default: vue.withCtx(() => [
176
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableConfig).fieldsData, (field) => {
177
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
178
+ key: field.fieldName,
179
+ label: field.label,
180
+ value: field.fieldName
181
+ }, null, 8, ["label", "value"]);
182
+ }), 128))
183
+ ]),
184
+ _: 1
185
+ })) : vue.createCommentVNode("", true),
186
+ vue.unref(hiddenFields).length > 0 ? (vue.openBlock(), vue.createBlock(_component_el_option_group, {
187
+ key: 1,
188
+ label: "隐藏域"
189
+ }, {
190
+ default: vue.withCtx(() => [
191
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hiddenFields), (hidden) => {
192
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
193
+ key: hidden.id,
194
+ label: hidden.label,
195
+ value: hidden.fieldName
196
+ }, null, 8, ["label", "value"]);
197
+ }), 128))
198
+ ]),
199
+ _: 1
200
+ })) : vue.createCommentVNode("", true)
168
201
  ]),
169
202
  _: 1
170
203
  }, 8, ["modelValue"])
@@ -322,13 +355,36 @@ const _sfc_main = {
322
355
  "append-to": ".sort-config-dropdown"
323
356
  }, {
324
357
  default: vue.withCtx(() => [
325
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableConfig).fieldsData, (col) => {
326
- return vue.openBlock(), vue.createBlock(_component_el_option, {
327
- key: col.id,
328
- label: col.label,
329
- value: col.fieldName
330
- }, null, 8, ["label", "value"]);
331
- }), 128))
358
+ vue.unref(tableConfig).fieldsData.length > 0 ? (vue.openBlock(), vue.createBlock(_component_el_option_group, {
359
+ key: 0,
360
+ label: "列表字段"
361
+ }, {
362
+ default: vue.withCtx(() => [
363
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableConfig).fieldsData, (col) => {
364
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
365
+ key: col.id,
366
+ label: col.label,
367
+ value: col.fieldName
368
+ }, null, 8, ["label", "value"]);
369
+ }), 128))
370
+ ]),
371
+ _: 1
372
+ })) : vue.createCommentVNode("", true),
373
+ vue.unref(hiddenFields).length > 0 ? (vue.openBlock(), vue.createBlock(_component_el_option_group, {
374
+ key: 1,
375
+ label: "隐藏域"
376
+ }, {
377
+ default: vue.withCtx(() => [
378
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hiddenFields), (hidden) => {
379
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
380
+ key: hidden.id,
381
+ label: hidden.label,
382
+ value: hidden.fieldName
383
+ }, null, 8, ["label", "value"]);
384
+ }), 128))
385
+ ]),
386
+ _: 1
387
+ })) : vue.createCommentVNode("", true)
332
388
  ]),
333
389
  _: 2
334
390
  }, 1032, ["modelValue", "onUpdate:modelValue"]),
@@ -467,5 +523,5 @@ const _sfc_main = {
467
523
  };
468
524
  }
469
525
  };
470
- const TableSetting = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-70f62793"]]);
526
+ const TableSetting = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-06015f89"]]);
471
527
  exports.default = TableSetting;