@fecp/designer 5.3.15 → 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.
- package/es/designer.css +93 -87
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/layout/header/index.vue.mjs +1 -0
- package/es/packages/designer/src/packages/dialog/index.vue.mjs +44 -32
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +1 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs +100 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +4 -0
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +1 -0
- package/es/packages/designer/src/packages/table/property/widgets.vue.mjs +8 -1
- package/es/packages/designer/src/packages/table/tableSetting.vue.mjs +72 -16
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +5 -1
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +5 -5
- package/es/packages/vue/src/components/table/Table.vue.mjs +6 -3
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +62 -0
- package/lib/designer.css +93 -87
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/layout/header/index.vue.js +1 -0
- package/lib/packages/designer/src/packages/dialog/index.vue.js +44 -32
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +1 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.js +100 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +4 -0
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +1 -0
- package/lib/packages/designer/src/packages/table/property/widgets.vue.js +8 -1
- package/lib/packages/designer/src/packages/table/tableSetting.vue.js +71 -15
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +5 -1
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +5 -5
- package/lib/packages/vue/src/components/table/Table.vue.js +6 -3
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +62 -0
- package/package.json +1 -1
|
@@ -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[
|
|
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[
|
|
303
|
+
onClick: _cache[28] || (_cache[28] = ($event) => dialogVisible.value = false)
|
|
304
304
|
}, {
|
|
305
|
-
default: withCtx(() => _cache[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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": "
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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
|
-
|
|
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[
|
|
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[
|
|
871
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => unref(currentDialog).subFormName = $event),
|
|
860
872
|
templateKey: unref(currentDialog).subFormKey,
|
|
861
|
-
"onUpdate:templateKey": _cache[
|
|
873
|
+
"onUpdate:templateKey": _cache[24] || (_cache[24] = ($event) => unref(currentDialog).subFormKey = $event),
|
|
862
874
|
templateId: unref(currentDialog).subFormId,
|
|
863
|
-
"onUpdate:templateId": _cache[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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-
|
|
967
|
+
const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-24eec868"]]);
|
|
956
968
|
export {
|
|
957
969
|
DialogDialog as default
|
|
958
970
|
};
|
package/es/packages/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs
ADDED
|
@@ -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
|
},
|
|
@@ -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-
|
|
499
|
+
const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6e822bf"]]);
|
|
493
500
|
export {
|
|
494
501
|
widgets as default
|
|
495
502
|
};
|
|
@@ -26,7 +26,7 @@ import { VueDraggable as lo } from "../../../../../node_modules/.pnpm/vue-dragga
|
|
|
26
26
|
/* empty css */
|
|
27
27
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
28
28
|
import { ElRadioGroup, ElRadioButton, ElRadio } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/radio/index.mjs";
|
|
29
|
-
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";
|
|
29
|
+
import { ElSelect, ElOptionGroup, 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";
|
|
30
30
|
import { ElSwitch } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.mjs";
|
|
31
31
|
import { ElInputNumber } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input-number/index.mjs";
|
|
32
32
|
import { ElDropdown, ElDropdownMenu, ElDropdownItem } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/dropdown/index.mjs";
|
|
@@ -55,6 +55,15 @@ const _sfc_main = {
|
|
|
55
55
|
const tableConfig = computed(() => {
|
|
56
56
|
return getEditConfigData();
|
|
57
57
|
});
|
|
58
|
+
const hiddenFields = computed(() => {
|
|
59
|
+
var _a;
|
|
60
|
+
const fields = ((_a = tableConfig.value) == null ? void 0 : _a.hiddenFields) || [];
|
|
61
|
+
return fields.map((item) => ({
|
|
62
|
+
id: item == null ? void 0 : item.id,
|
|
63
|
+
fieldName: item == null ? void 0 : item.fieldName,
|
|
64
|
+
label: item == null ? void 0 : item.label
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
58
67
|
const dataSources = computed(() => {
|
|
59
68
|
return tableConfig.value.dataSources || [];
|
|
60
69
|
});
|
|
@@ -104,6 +113,7 @@ const _sfc_main = {
|
|
|
104
113
|
const _component_el_radio_button = ElRadioButton;
|
|
105
114
|
const _component_el_radio_group = ElRadioGroup;
|
|
106
115
|
const _component_el_option = ElOption;
|
|
116
|
+
const _component_el_option_group = ElOptionGroup;
|
|
107
117
|
const _component_el_select = ElSelect;
|
|
108
118
|
const _component_el_switch = ElSwitch;
|
|
109
119
|
const _component_el_input_number = ElInputNumber;
|
|
@@ -156,13 +166,36 @@ const _sfc_main = {
|
|
|
156
166
|
style: { "width": "100px" }
|
|
157
167
|
}, {
|
|
158
168
|
default: withCtx(() => [
|
|
159
|
-
(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
169
|
+
unref(tableConfig).fieldsData.length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
|
|
170
|
+
key: 0,
|
|
171
|
+
label: "列表字段"
|
|
172
|
+
}, {
|
|
173
|
+
default: withCtx(() => [
|
|
174
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tableConfig).fieldsData, (field) => {
|
|
175
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
176
|
+
key: field.fieldName,
|
|
177
|
+
label: field.label,
|
|
178
|
+
value: field.fieldName
|
|
179
|
+
}, null, 8, ["label", "value"]);
|
|
180
|
+
}), 128))
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
})) : createCommentVNode("", true),
|
|
184
|
+
unref(hiddenFields).length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
|
|
185
|
+
key: 1,
|
|
186
|
+
label: "隐藏域"
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(hiddenFields), (hidden) => {
|
|
190
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
191
|
+
key: hidden.id,
|
|
192
|
+
label: hidden.label,
|
|
193
|
+
value: hidden.fieldName
|
|
194
|
+
}, null, 8, ["label", "value"]);
|
|
195
|
+
}), 128))
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
})) : createCommentVNode("", true)
|
|
166
199
|
]),
|
|
167
200
|
_: 1
|
|
168
201
|
}, 8, ["modelValue"])
|
|
@@ -320,13 +353,36 @@ const _sfc_main = {
|
|
|
320
353
|
"append-to": ".sort-config-dropdown"
|
|
321
354
|
}, {
|
|
322
355
|
default: withCtx(() => [
|
|
323
|
-
(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
356
|
+
unref(tableConfig).fieldsData.length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
|
|
357
|
+
key: 0,
|
|
358
|
+
label: "列表字段"
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(() => [
|
|
361
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tableConfig).fieldsData, (col) => {
|
|
362
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
363
|
+
key: col.id,
|
|
364
|
+
label: col.label,
|
|
365
|
+
value: col.fieldName
|
|
366
|
+
}, null, 8, ["label", "value"]);
|
|
367
|
+
}), 128))
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
})) : createCommentVNode("", true),
|
|
371
|
+
unref(hiddenFields).length > 0 ? (openBlock(), createBlock(_component_el_option_group, {
|
|
372
|
+
key: 1,
|
|
373
|
+
label: "隐藏域"
|
|
374
|
+
}, {
|
|
375
|
+
default: withCtx(() => [
|
|
376
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(hiddenFields), (hidden) => {
|
|
377
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
378
|
+
key: hidden.id,
|
|
379
|
+
label: hidden.label,
|
|
380
|
+
value: hidden.fieldName
|
|
381
|
+
}, null, 8, ["label", "value"]);
|
|
382
|
+
}), 128))
|
|
383
|
+
]),
|
|
384
|
+
_: 1
|
|
385
|
+
})) : createCommentVNode("", true)
|
|
330
386
|
]),
|
|
331
387
|
_: 2
|
|
332
388
|
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
@@ -465,7 +521,7 @@ const _sfc_main = {
|
|
|
465
521
|
};
|
|
466
522
|
}
|
|
467
523
|
};
|
|
468
|
-
const TableSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
524
|
+
const TableSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-06015f89"]]);
|
|
469
525
|
export {
|
|
470
526
|
TableSetting as default
|
|
471
527
|
};
|
|
@@ -167,6 +167,10 @@ const _sfc_main = {
|
|
|
167
167
|
} else {
|
|
168
168
|
console.log("未配置参数字段: displayField");
|
|
169
169
|
}
|
|
170
|
+
const isRowDataAssignToForm = currentDialogConfig.value.isRowDataAssignToForm;
|
|
171
|
+
if (isRowDataAssignToForm) {
|
|
172
|
+
Object.assign(formData, tableSelectionRows.value[0]);
|
|
173
|
+
}
|
|
170
174
|
const fieldMapping = currentDialogConfig.value.fieldMapping;
|
|
171
175
|
if ((fieldMapping == null ? void 0 : fieldMapping.length) > 0) {
|
|
172
176
|
fieldMapping.forEach((item) => {
|
|
@@ -411,7 +415,7 @@ const _sfc_main = {
|
|
|
411
415
|
};
|
|
412
416
|
}
|
|
413
417
|
};
|
|
414
|
-
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
418
|
+
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-409d49b3"]]);
|
|
415
419
|
export {
|
|
416
420
|
DialogRenderer as default
|
|
417
421
|
};
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
63
63
|
...props.localConfig.hiddenFields
|
|
64
64
|
];
|
|
65
65
|
});
|
|
66
|
-
const
|
|
66
|
+
const initSearchData = computed(() => {
|
|
67
67
|
if (props.config.dataSourceFrom == "self") {
|
|
68
68
|
const params = parseRouteParams(
|
|
69
69
|
props.config.subTableParams,
|
|
@@ -88,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
88
88
|
if (!item.showCondition) return true;
|
|
89
89
|
return checkFilterMatch(
|
|
90
90
|
item.showCondition,
|
|
91
|
-
|
|
91
|
+
initSearchData.value,
|
|
92
92
|
subTableFieldsData.value
|
|
93
93
|
);
|
|
94
94
|
});
|
|
@@ -99,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
99
99
|
if (!item.showCondition) return true;
|
|
100
100
|
return checkFilterMatch(
|
|
101
101
|
item.showCondition,
|
|
102
|
-
|
|
102
|
+
initSearchData.value,
|
|
103
103
|
subTableFieldsData.value
|
|
104
104
|
);
|
|
105
105
|
});
|
|
@@ -196,11 +196,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
196
196
|
hasPagination: __props.config.isSubTablePagination,
|
|
197
197
|
height: __props.config.subTableHeight,
|
|
198
198
|
tableData: unref(subTableData),
|
|
199
|
-
|
|
199
|
+
initSearchData: unref(initSearchData),
|
|
200
200
|
canLoadBySearchData: __props.config.reloadOnParamsChange,
|
|
201
201
|
readonly: __props.config.isSubTableReadOnly || __props.formMode == "query",
|
|
202
202
|
btnRollbackEvent: unref(btnRollbackEvent)
|
|
203
|
-
}, null, 8, ["templateKey", "mode", "titleMode", "hasPagination", "height", "tableData", "
|
|
203
|
+
}, null, 8, ["templateKey", "mode", "titleMode", "hasPagination", "height", "tableData", "initSearchData", "canLoadBySearchData", "readonly", "btnRollbackEvent"])
|
|
204
204
|
], 64);
|
|
205
205
|
};
|
|
206
206
|
}
|
|
@@ -125,7 +125,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
125
125
|
const configLoading = ref(true);
|
|
126
126
|
const localConfig = ref({});
|
|
127
127
|
const fieldsData = ref({});
|
|
128
|
-
const hiddenFormData = computed(() =>
|
|
128
|
+
const hiddenFormData = computed(() => ({
|
|
129
|
+
...props.initHiddenData,
|
|
130
|
+
...props.initSearchData
|
|
131
|
+
}));
|
|
129
132
|
const dataSourceOptions = ref({});
|
|
130
133
|
const dictionaryOptions = ref({});
|
|
131
134
|
const displayData = computed(() => {
|
|
@@ -518,7 +521,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
518
521
|
initDataSourceManager();
|
|
519
522
|
});
|
|
520
523
|
});
|
|
521
|
-
const searchData = ref(
|
|
524
|
+
const searchData = ref({});
|
|
522
525
|
watch(
|
|
523
526
|
() => props.initSearchData,
|
|
524
527
|
(newVal, oldVal) => {
|
|
@@ -660,7 +663,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
660
663
|
};
|
|
661
664
|
}
|
|
662
665
|
});
|
|
663
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
666
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-23e9627d"]]);
|
|
664
667
|
export {
|
|
665
668
|
_Table as default
|
|
666
669
|
};
|