@fecp/designer 5.3.15 → 5.3.17

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 (57) hide show
  1. package/es/designer.css +188 -182
  2. package/es/packages/designer/package.json.mjs +1 -1
  3. package/es/packages/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  4. package/es/packages/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  5. package/es/packages/designer/src/layout/aside/index.vue.mjs +3 -3
  6. package/es/packages/designer/src/layout/header/index.vue.mjs +1 -0
  7. package/es/packages/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  8. package/es/packages/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  9. package/es/packages/designer/src/packages/dialog/index.vue.mjs +44 -32
  10. package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +2 -1
  11. package/es/packages/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs +100 -0
  12. package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +4 -0
  13. package/es/packages/designer/src/packages/form/index.vue.mjs +1 -1
  14. package/es/packages/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  15. package/es/packages/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  16. package/es/packages/designer/src/packages/prod/index.vue.mjs +1 -1
  17. package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +2 -1
  18. package/es/packages/designer/src/packages/table/property/widgets.vue.mjs +8 -1
  19. package/es/packages/designer/src/packages/table/tableSetting.vue.mjs +72 -16
  20. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +6 -2
  21. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +9 -2
  22. package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +5 -5
  23. package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
  24. package/es/packages/vue/src/components/table/Table.vue.mjs +101 -95
  25. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
  26. package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
  27. package/es/packages/vue/src/utils/datasource.mjs +1 -1
  28. package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +62 -0
  29. package/lib/designer.css +188 -182
  30. package/lib/packages/designer/package.json.js +1 -1
  31. package/lib/packages/designer/src/components/ParamsConfig.vue2.js +1 -1
  32. package/lib/packages/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  33. package/lib/packages/designer/src/layout/aside/index.vue.js +2 -2
  34. package/lib/packages/designer/src/layout/header/index.vue.js +1 -0
  35. package/lib/packages/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  36. package/lib/packages/designer/src/packages/dataLinkage/index.vue.js +1 -1
  37. package/lib/packages/designer/src/packages/dialog/index.vue.js +44 -32
  38. package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +2 -1
  39. package/lib/packages/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.js +100 -0
  40. package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +4 -0
  41. package/lib/packages/designer/src/packages/form/index.vue.js +1 -1
  42. package/lib/packages/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  43. package/lib/packages/designer/src/packages/form/property/subForm.vue.js +1 -1
  44. package/lib/packages/designer/src/packages/prod/index.vue.js +1 -1
  45. package/lib/packages/designer/src/packages/table/headerBtn.vue.js +2 -1
  46. package/lib/packages/designer/src/packages/table/property/widgets.vue.js +8 -1
  47. package/lib/packages/designer/src/packages/table/tableSetting.vue.js +71 -15
  48. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +6 -2
  49. package/lib/packages/vue/src/components/forms/form/Form.vue.js +9 -2
  50. package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +5 -5
  51. package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
  52. package/lib/packages/vue/src/components/table/Table.vue.js +101 -95
  53. package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
  54. package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
  55. package/lib/packages/vue/src/utils/datasource.js +1 -1
  56. package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +62 -0
  57. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const version = "5.3.15";
1
+ const version = "5.3.17";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -3,7 +3,7 @@
3
3
  /* empty css */
4
4
  import { computed, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
5
5
  import { Plus as plus_default, Delete as delete_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";
6
- import ValueSelector from "./ValueSelector.vue.mjs";
6
+ import ValueSelector from "./ValueSelector.vue2.mjs";
7
7
  /* empty css */
8
8
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
9
9
  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";
@@ -15,7 +15,7 @@ import { Plus as plus_default, RefreshRight as refresh_right_default, Delete as
15
15
  import { getEditConfigData, getEditingType, cloneDeep, getEditConfigDataFields } from "../../packages/utils/common.mjs";
16
16
  import { defaultProperty } from "../../packages/form/aside/index.mjs";
17
17
  import { defaultProperty as defaultProperty$1 } from "../../packages/table/aside/index.mjs";
18
- import ValueSelector from "../../components/ValueSelector.vue.mjs";
18
+ import ValueSelector from "../../components/ValueSelector.vue2.mjs";
19
19
  /* empty css */
20
20
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
21
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";
@@ -7,7 +7,7 @@ import { computed, ref, createBlock, openBlock, withCtx, createElementVNode, cre
7
7
  import emitter from "../../packages/utils/eventBus.mjs";
8
8
  import { VueDraggable as lo } from "../../../../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types_sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
9
9
  import { Calendar as calendar_default, DeleteFilled as delete_filled_default, Hide as hide_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";
10
- import { getEditConfigData, setSelectedItem } from "../../packages/utils/common.mjs";
10
+ import { getEditConfigData, setSelectedItem, cloneDeep } from "../../packages/utils/common.mjs";
11
11
  import components$1 from "../../packages/table/aside/index.mjs";
12
12
  import components from "../../packages/form/aside/index.mjs";
13
13
  import FieldRecycleBin from "./fieldRecycleBin.vue.mjs";
@@ -63,7 +63,7 @@ const _sfc_main = {
63
63
  });
64
64
  function clone(element) {
65
65
  return {
66
- ...element,
66
+ ...cloneDeep(element),
67
67
  id: Date.now(),
68
68
  type: "widgets"
69
69
  };
@@ -207,7 +207,7 @@ const _sfc_main = {
207
207
  };
208
208
  }
209
209
  };
210
- const LayoutAside = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fa48b88f"]]);
210
+ const LayoutAside = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9b4f6b03"]]);
211
211
  export {
212
212
  LayoutAside as default
213
213
  };
@@ -212,6 +212,7 @@ const _sfc_main = {
212
212
  custom.fieldType = "number";
213
213
  custom.format = "yuan";
214
214
  custom.suffix = "元";
215
+ custom.align = "right";
215
216
  } else if (item.dataType == "percentile") {
216
217
  custom.fieldType = "number";
217
218
  custom.format = "percentage";
@@ -13,7 +13,7 @@ import "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescr
13
13
  /* empty css */
14
14
  import { computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
15
15
  import { useVModel } from "../../../../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/core/dist/index.mjs";
16
- import ValueSelector from "../../components/ValueSelector.vue.mjs";
16
+ import ValueSelector from "../../components/ValueSelector.vue2.mjs";
17
17
  import api from "../../api/index.mjs";
18
18
  import { getEditConfigDataSources } from "../utils/common.mjs";
19
19
  import { createDataSource } from "../utils/datasource.mjs";
@@ -29,7 +29,7 @@ import "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescr
29
29
  /* empty css */
30
30
  /* empty css */
31
31
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
32
- /* empty css */
32
+ /* empty css */
33
33
  import "../../axios/config.mjs";
34
34
  import "../../../../../_virtual/FileSaver.min.mjs";
35
35
  import "../../../../../_virtual/index.mjs";
@@ -289,7 +289,7 @@ const _sfc_main = {
289
289
  const _component_el_dialog = ElDialog;
290
290
  return openBlock(), createBlock(_component_el_dialog, {
291
291
  modelValue: dialogVisible.value,
292
- "onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => dialogVisible.value = $event),
292
+ "onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => dialogVisible.value = $event),
293
293
  width: "50%",
294
294
  title: "弹层配置",
295
295
  draggable: "",
@@ -300,9 +300,9 @@ const _sfc_main = {
300
300
  footer: withCtx(() => [
301
301
  createElementVNode("div", _hoisted_19, [
302
302
  createVNode(_component_el_button, {
303
- onClick: _cache[27] || (_cache[27] = ($event) => dialogVisible.value = false)
303
+ onClick: _cache[28] || (_cache[28] = ($event) => dialogVisible.value = false)
304
304
  }, {
305
- default: withCtx(() => _cache[48] || (_cache[48] = [
305
+ default: withCtx(() => _cache[49] || (_cache[49] = [
306
306
  createTextVNode("取消")
307
307
  ])),
308
308
  _: 1
@@ -311,7 +311,7 @@ const _sfc_main = {
311
311
  type: "primary",
312
312
  onClick: onConfirm
313
313
  }, {
314
- default: withCtx(() => _cache[49] || (_cache[49] = [
314
+ default: withCtx(() => _cache[50] || (_cache[50] = [
315
315
  createTextVNode("确定")
316
316
  ])),
317
317
  _: 1
@@ -336,7 +336,7 @@ const _sfc_main = {
336
336
  icon: unref(plus_default),
337
337
  onClick: startAddDialog
338
338
  }, {
339
- default: withCtx(() => _cache[29] || (_cache[29] = [
339
+ default: withCtx(() => _cache[30] || (_cache[30] = [
340
340
  createTextVNode(" 新增弹层 ")
341
341
  ])),
342
342
  _: 1
@@ -363,7 +363,7 @@ const _sfc_main = {
363
363
  icon: unref(close_default),
364
364
  onClick: cancelAddDialog
365
365
  }, {
366
- default: withCtx(() => _cache[30] || (_cache[30] = [
366
+ default: withCtx(() => _cache[31] || (_cache[31] = [
367
367
  createTextVNode(" 取消 ")
368
368
  ])),
369
369
  _: 1
@@ -374,7 +374,7 @@ const _sfc_main = {
374
374
  icon: unref(check_default),
375
375
  onClick: confirmAddDialog
376
376
  }, {
377
- default: withCtx(() => _cache[31] || (_cache[31] = [
377
+ default: withCtx(() => _cache[32] || (_cache[32] = [
378
378
  createTextVNode(" 确认 ")
379
379
  ])),
380
380
  _: 1
@@ -458,7 +458,7 @@ const _sfc_main = {
458
458
  default: withCtx(() => [
459
459
  createVNode(_component_el_form, {
460
460
  model: unref(currentDialog),
461
- "label-width": "120px",
461
+ "label-width": "130px",
462
462
  style: { "padding-right": "20px" },
463
463
  size: "small"
464
464
  }, {
@@ -482,25 +482,25 @@ const _sfc_main = {
482
482
  }, {
483
483
  default: withCtx(() => [
484
484
  createVNode(_component_el_radio_button, { value: "standard" }, {
485
- default: withCtx(() => _cache[32] || (_cache[32] = [
485
+ default: withCtx(() => _cache[33] || (_cache[33] = [
486
486
  createTextVNode("标准")
487
487
  ])),
488
488
  _: 1
489
489
  }),
490
490
  createVNode(_component_el_radio_button, { value: "large" }, {
491
- default: withCtx(() => _cache[33] || (_cache[33] = [
491
+ default: withCtx(() => _cache[34] || (_cache[34] = [
492
492
  createTextVNode("更大")
493
493
  ])),
494
494
  _: 1
495
495
  }),
496
496
  createVNode(_component_el_radio_button, { value: "small" }, {
497
- default: withCtx(() => _cache[34] || (_cache[34] = [
497
+ default: withCtx(() => _cache[35] || (_cache[35] = [
498
498
  createTextVNode("更小")
499
499
  ])),
500
500
  _: 1
501
501
  }),
502
502
  createVNode(_component_el_radio_button, { value: "custom" }, {
503
- default: withCtx(() => _cache[35] || (_cache[35] = [
503
+ default: withCtx(() => _cache[36] || (_cache[36] = [
504
504
  createTextVNode("自定义")
505
505
  ])),
506
506
  _: 1
@@ -550,25 +550,25 @@ const _sfc_main = {
550
550
  }, {
551
551
  default: withCtx(() => [
552
552
  createVNode(_component_el_radio_button, { value: "table" }, {
553
- default: withCtx(() => _cache[36] || (_cache[36] = [
553
+ default: withCtx(() => _cache[37] || (_cache[37] = [
554
554
  createTextVNode("列表")
555
555
  ])),
556
556
  _: 1
557
557
  }),
558
558
  createVNode(_component_el_radio_button, { value: "form" }, {
559
- default: withCtx(() => _cache[37] || (_cache[37] = [
559
+ default: withCtx(() => _cache[38] || (_cache[38] = [
560
560
  createTextVNode("表单")
561
561
  ])),
562
562
  _: 1
563
563
  }),
564
564
  createVNode(_component_el_radio_button, { value: "tree" }, {
565
- default: withCtx(() => _cache[38] || (_cache[38] = [
565
+ default: withCtx(() => _cache[39] || (_cache[39] = [
566
566
  createTextVNode("树形")
567
567
  ])),
568
568
  _: 1
569
569
  }),
570
570
  createVNode(_component_el_radio_button, { value: "component" }, {
571
- default: withCtx(() => _cache[39] || (_cache[39] = [
571
+ default: withCtx(() => _cache[40] || (_cache[40] = [
572
572
  createTextVNode("组件")
573
573
  ])),
574
574
  _: 1
@@ -588,13 +588,13 @@ const _sfc_main = {
588
588
  }, {
589
589
  default: withCtx(() => [
590
590
  createVNode(_component_el_radio_button, { value: "select" }, {
591
- default: withCtx(() => _cache[40] || (_cache[40] = [
591
+ default: withCtx(() => _cache[41] || (_cache[41] = [
592
592
  createTextVNode("选择列表")
593
593
  ])),
594
594
  _: 1
595
595
  }),
596
596
  createVNode(_component_el_radio_button, { value: "custom" }, {
597
- default: withCtx(() => _cache[41] || (_cache[41] = [
597
+ default: withCtx(() => _cache[42] || (_cache[42] = [
598
598
  createTextVNode("自定义")
599
599
  ])),
600
600
  _: 1
@@ -655,7 +655,7 @@ const _sfc_main = {
655
655
  icon: "Plus",
656
656
  link: ""
657
657
  }, {
658
- default: withCtx(() => _cache[42] || (_cache[42] = [
658
+ default: withCtx(() => _cache[43] || (_cache[43] = [
659
659
  createTextVNode(" 添加列配置 ")
660
660
  ])),
661
661
  _: 1
@@ -789,19 +789,19 @@ const _sfc_main = {
789
789
  }, {
790
790
  default: withCtx(() => [
791
791
  createVNode(_component_el_radio_button, { value: "none" }, {
792
- default: withCtx(() => _cache[43] || (_cache[43] = [
792
+ default: withCtx(() => _cache[44] || (_cache[44] = [
793
793
  createTextVNode("无")
794
794
  ])),
795
795
  _: 1
796
796
  }),
797
797
  createVNode(_component_el_radio_button, { value: "single" }, {
798
- default: withCtx(() => _cache[44] || (_cache[44] = [
798
+ default: withCtx(() => _cache[45] || (_cache[45] = [
799
799
  createTextVNode("单选")
800
800
  ])),
801
801
  _: 1
802
802
  }),
803
803
  createVNode(_component_el_radio_button, { value: "multiple" }, {
804
- default: withCtx(() => _cache[45] || (_cache[45] = [
804
+ default: withCtx(() => _cache[46] || (_cache[46] = [
805
805
  createTextVNode("多选")
806
806
  ])),
807
807
  _: 1
@@ -826,11 +826,23 @@ const _sfc_main = {
826
826
  ]),
827
827
  _: 1
828
828
  }),
829
- createVNode(_component_el_form_item, { label: "选取后表单赋值" }, {
829
+ unref(currentDialog).selectionMode == "single" ? (openBlock(), createBlock(_component_el_form_item, {
830
+ key: 0,
831
+ label: "行数据全部赋值表单"
832
+ }, {
833
+ default: withCtx(() => [
834
+ createVNode(_component_el_switch, {
835
+ modelValue: unref(currentDialog).isRowDataAssignToForm,
836
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => unref(currentDialog).isRowDataAssignToForm = $event)
837
+ }, null, 8, ["modelValue"])
838
+ ]),
839
+ _: 1
840
+ })) : createCommentVNode("", true),
841
+ createVNode(_component_el_form_item, { label: "选取后表单赋值映射" }, {
830
842
  default: withCtx(() => [
831
843
  createVNode(FieldSetMapping, {
832
844
  modelValue: unref(currentDialog).fieldMapping,
833
- "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => unref(currentDialog).fieldMapping = $event),
845
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => unref(currentDialog).fieldMapping = $event),
834
846
  fieldLabel: "赋值表单字段",
835
847
  valueLabel: "列表字段",
836
848
  valueOptions: unref(tableFields),
@@ -856,11 +868,11 @@ const _sfc_main = {
856
868
  default: withCtx(() => [
857
869
  createVNode(TemplateSelector, {
858
870
  modelValue: unref(currentDialog).subFormName,
859
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => unref(currentDialog).subFormName = $event),
871
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => unref(currentDialog).subFormName = $event),
860
872
  templateKey: unref(currentDialog).subFormKey,
861
- "onUpdate:templateKey": _cache[23] || (_cache[23] = ($event) => unref(currentDialog).subFormKey = $event),
873
+ "onUpdate:templateKey": _cache[24] || (_cache[24] = ($event) => unref(currentDialog).subFormKey = $event),
862
874
  templateId: unref(currentDialog).subFormId,
863
- "onUpdate:templateId": _cache[24] || (_cache[24] = ($event) => unref(currentDialog).subFormId = $event),
875
+ "onUpdate:templateId": _cache[25] || (_cache[25] = ($event) => unref(currentDialog).subFormId = $event),
864
876
  templateType: "form",
865
877
  onConfirm: formSelectorConfirm
866
878
  }, null, 8, ["modelValue", "templateKey", "templateId"])
@@ -871,17 +883,17 @@ const _sfc_main = {
871
883
  default: withCtx(() => [
872
884
  createVNode(_component_el_radio_group, {
873
885
  modelValue: unref(currentDialog).subFormMode,
874
- "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => unref(currentDialog).subFormMode = $event)
886
+ "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => unref(currentDialog).subFormMode = $event)
875
887
  }, {
876
888
  default: withCtx(() => [
877
889
  createVNode(_component_el_radio_button, { value: "edit" }, {
878
- default: withCtx(() => _cache[46] || (_cache[46] = [
890
+ default: withCtx(() => _cache[47] || (_cache[47] = [
879
891
  createTextVNode("编辑")
880
892
  ])),
881
893
  _: 1
882
894
  }),
883
895
  createVNode(_component_el_radio_button, { value: "query" }, {
884
- default: withCtx(() => _cache[47] || (_cache[47] = [
896
+ default: withCtx(() => _cache[48] || (_cache[48] = [
885
897
  createTextVNode("查看")
886
898
  ])),
887
899
  _: 1
@@ -921,7 +933,7 @@ const _sfc_main = {
921
933
  default: withCtx(() => [
922
934
  createVNode(_component_el_input, {
923
935
  modelValue: unref(currentDialog).componentPath,
924
- "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => unref(currentDialog).componentPath = $event),
936
+ "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => unref(currentDialog).componentPath = $event),
925
937
  placeholder: "请输入组件路径",
926
938
  clearable: ""
927
939
  }, null, 8, ["modelValue"])
@@ -952,7 +964,7 @@ const _sfc_main = {
952
964
  };
953
965
  }
954
966
  };
955
- const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8f751b6e"]]);
967
+ const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-24eec868"]]);
956
968
  export {
957
969
  DialogDialog as default
958
970
  };
@@ -65,6 +65,7 @@ import "../formulaEditor/core/functionCore.mjs";
65
65
  /* empty css */
66
66
  /* empty css */
67
67
  /* empty css */
68
+ /* empty css */
68
69
  /* empty css */
69
70
  /* empty css */
70
71
  /* empty css */
@@ -77,7 +78,7 @@ import "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescr
77
78
  import "../../../../../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.mjs";
78
79
  /* empty css */
79
80
  /* empty css */
80
- /* empty css */
81
+ /* empty css */
81
82
  import "../../axios/config.mjs";
82
83
  /* empty css */
83
84
  /* empty css */
@@ -0,0 +1,100 @@
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
+ import { computed, ref, watch, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock } from "vue";
10
+ import FieldSetMapping from "../../../../components/FieldSetMapping.vue2.mjs";
11
+ import { getEditConfigDataFields } from "../../../utils/common.mjs";
12
+ import api from "../../../../api/index.mjs";
13
+ /* empty css */
14
+ import _export_sfc from "../../../../../../../_virtual/_plugin-vue_export-helper.mjs";
15
+ import { 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";
16
+ 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";
17
+ const _sfc_main = {
18
+ __name: "TableChildSelection",
19
+ props: {
20
+ formData: Object
21
+ },
22
+ setup(__props) {
23
+ const props = __props;
24
+ const fieldList = computed(() => {
25
+ return getEditConfigDataFields().filter(
26
+ (item) => item.fieldType == "subTable"
27
+ );
28
+ });
29
+ const subTableOptions = ref({});
30
+ watch(
31
+ () => props.formData.selectSubTableFieldId,
32
+ (id) => {
33
+ const fieldItem = getEditConfigDataFields().find((item) => item.id == id);
34
+ if (fieldItem) {
35
+ const subTableId = fieldItem.subTableId;
36
+ api.getById(subTableId).then((data) => {
37
+ subTableOptions.value = JSON.parse(data.context);
38
+ });
39
+ }
40
+ },
41
+ {
42
+ immediate: true
43
+ }
44
+ );
45
+ const tableFields = computed(() => {
46
+ var _a, _b;
47
+ return [
48
+ ...((_a = subTableOptions.value) == null ? void 0 : _a.fieldsData) || [],
49
+ ...((_b = subTableOptions.value) == null ? void 0 : _b.hiddenFields) || []
50
+ ];
51
+ });
52
+ return (_ctx, _cache) => {
53
+ const _component_el_option = ElOption;
54
+ const _component_el_select = ElSelect;
55
+ const _component_el_form_item = ElFormItem;
56
+ return openBlock(), createElementBlock(Fragment, null, [
57
+ createVNode(_component_el_form_item, { label: "选择子列表" }, {
58
+ default: withCtx(() => [
59
+ createVNode(_component_el_select, {
60
+ modelValue: __props.formData.selectSubTableFieldId,
61
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.selectSubTableFieldId = $event),
62
+ filterable: "",
63
+ size: "small",
64
+ clearable: ""
65
+ }, {
66
+ default: withCtx(() => [
67
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(fieldList), (item) => {
68
+ return openBlock(), createBlock(_component_el_option, {
69
+ key: item.id,
70
+ label: item.label,
71
+ value: item.id
72
+ }, null, 8, ["label", "value"]);
73
+ }), 128))
74
+ ]),
75
+ _: 1
76
+ }, 8, ["modelValue"])
77
+ ]),
78
+ _: 1
79
+ }),
80
+ createVNode(_component_el_form_item, { label: "选取后表单赋值映射" }, {
81
+ default: withCtx(() => [
82
+ createVNode(FieldSetMapping, {
83
+ modelValue: __props.formData.subTableSelectionFieldMapping,
84
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.subTableSelectionFieldMapping = $event),
85
+ fieldLabel: "赋值表单字段",
86
+ valueLabel: "列表字段",
87
+ valueOptions: unref(tableFields),
88
+ valueSelectMode: ""
89
+ }, null, 8, ["modelValue", "valueOptions"])
90
+ ]),
91
+ _: 1
92
+ })
93
+ ], 64);
94
+ };
95
+ }
96
+ };
97
+ const TableChildSelection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aac8efa4"]]);
98
+ export {
99
+ TableChildSelection as default
100
+ };
@@ -10,6 +10,7 @@ import TableChildRefresh from "./TableChildRefresh.vue2.mjs";
10
10
  import TableRowDelete from "./TableRowDelete.vue2.mjs";
11
11
  import _sfc_main$2 from "./Dialog.vue.mjs";
12
12
  import Upload from "./Upload.vue2.mjs";
13
+ import TableChildSelection from "./TableChildSelection.vue2.mjs";
13
14
  const menuData = [
14
15
  {
15
16
  index: "page",
@@ -94,6 +95,9 @@ const menuData = [
94
95
  resetSort: false,
95
96
  resetFilter: false,
96
97
  resetPagination: false
98
+ } },
99
+ { index: "table-child-selection", label: "子列表勾选数据赋值", desc: "将子列表勾选的数据赋值到主表单", component: TableChildSelection, default: {
100
+ subTableSelectionFieldMapping: []
97
101
  } }
98
102
  ]
99
103
  },
@@ -488,7 +488,7 @@ const _sfc_main = {
488
488
  };
489
489
  }
490
490
  };
491
- const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f7bfeb0a"]]);
491
+ const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fce34df4"]]);
492
492
  export {
493
493
  formWorkArea as default
494
494
  };
@@ -10,7 +10,7 @@
10
10
  import { computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
11
11
  import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
12
12
  import emitter from "../../utils/eventBus.mjs";
13
- import ValueSelector from "../../../components/ValueSelector.vue.mjs";
13
+ import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
14
14
  import { ElCollapse, ElCollapseItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/collapse/index.mjs";
15
15
  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";
16
16
  import { ElInput } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.mjs";
@@ -12,7 +12,7 @@ import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNo
12
12
  import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
13
13
  import TemplateSelector from "../../../components/TemplateSelector.vue.mjs";
14
14
  import emitter from "../../utils/eventBus.mjs";
15
- import ValueSelector from "../../../components/ValueSelector.vue.mjs";
15
+ import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
16
16
  import { ElCollapse, ElCollapseItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/collapse/index.mjs";
17
17
  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";
18
18
  import { ElInput } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.mjs";
@@ -13,7 +13,7 @@
13
13
  import { useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
14
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
15
  import { getEditConfigData, getEditConfigDataFields, setEditConfigData } from "../utils/common.mjs";
16
- import ValueSelector from "../../components/ValueSelector.vue.mjs";
16
+ import ValueSelector from "../../components/ValueSelector.vue2.mjs";
17
17
  import api from "../../api/index.mjs";
18
18
  /* empty css */
19
19
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -44,7 +44,7 @@ import { Connection as connection_default, Grid as grid_default, ChatLineSquare
44
44
  /* empty css */
45
45
  import "../../store/index.mjs";
46
46
  /* empty css */
47
- /* empty css */
47
+ /* empty css */
48
48
  /* empty css */
49
49
  /* empty css */
50
50
  /* empty css */
@@ -76,6 +76,7 @@ import "../../../../../_virtual/index.mjs";
76
76
  /* empty css */
77
77
  /* empty css */
78
78
  /* empty css */
79
+ /* empty css */
79
80
  import { useAdvancedFilterDialog } from "../advancedFilter/useAdvancedFilterDialog.mjs";
80
81
  /* empty css */
81
82
  /* empty css */
@@ -57,6 +57,7 @@ const _sfc_main = {
57
57
  currentItem.value;
58
58
  }
59
59
  function handleFormatChange(value) {
60
+ currentItem.value.align = "center";
60
61
  switch (value) {
61
62
  case "percentage":
62
63
  currentItem.value.suffix = "%";
@@ -67,6 +68,12 @@ const _sfc_main = {
67
68
  case "permillion":
68
69
  currentItem.value.suffix = "‱";
69
70
  break;
71
+ case "yuan":
72
+ case "wan":
73
+ case "million":
74
+ currentItem.value.suffix = "";
75
+ currentItem.value.align = "right";
76
+ break;
70
77
  default:
71
78
  currentItem.value.suffix = "";
72
79
  break;
@@ -489,7 +496,7 @@ const _sfc_main = {
489
496
  };
490
497
  }
491
498
  };
492
- const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2bc33ea"]]);
499
+ const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6e822bf"]]);
493
500
  export {
494
501
  widgets as default
495
502
  };