super-page-designer 2.1.55 → 2.1.61

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 (39) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +94 -5
  2. package/dist/es/components/design/utils/chart-design-util.js +0 -1
  3. package/dist/es/components/design/utils/form-design-util.d.ts +1 -0
  4. package/dist/es/components/design/utils/form-design-util.js +10 -0
  5. package/dist/es/components/design/utils/page-explore-util.js +0 -1
  6. package/dist/es/components/design/utils/page-i18n-util.d.ts +1 -1
  7. package/dist/es/components/design/utils/page-i18n-util.js +18 -4
  8. package/dist/es/components/design/utils/page-table-util.js +2 -3
  9. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +50 -43
  10. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +26 -3
  11. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +213 -0
  12. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +4 -0
  13. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +9 -3
  14. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +17 -2
  15. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +26 -15
  16. package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -14
  17. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
  18. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +738 -1
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -738
  20. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.vue.js +12 -0
  21. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  22. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +45 -15
  23. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
  24. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
  25. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
  26. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
  27. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
  28. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +2 -1
  29. package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +17 -1
  30. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +12 -2
  31. package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +11 -28
  32. package/dist/es/components/design/views/assemblys/object-design.vue.js +14 -13
  33. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
  34. package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +3 -3
  35. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +5 -0
  36. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +53 -14
  37. package/dist/es/components/design/views/design/view/view-design-display.vue.js +3 -0
  38. package/dist/es/style.css +30 -30
  39. package/package.json +6 -5
@@ -252,6 +252,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
252
252
  ]),
253
253
  _: 1
254
254
  }),
255
+ createVNode(_component_el_table_column, {
256
+ label: "编码",
257
+ width: "70"
258
+ }, {
259
+ default: withCtx((scope) => [
260
+ createVNode(_component_el_input, {
261
+ modelValue: scope.row.code,
262
+ "onUpdate:modelValue": ($event) => scope.row.code = $event
263
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
264
+ ]),
265
+ _: 1
266
+ }),
255
267
  createVNode(_component_el_table_column, {
256
268
  label: "操作",
257
269
  width: "90"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createCommentVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot } from "vue";
2
- import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue2.js";
2
+ import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
3
3
  import { Codemirror } from "vue-codemirror";
4
4
  import _sfc_main$6 from "../../workflow/component/combination.vue.js";
5
5
  import _sfc_main$5 from "./return-set-table.vue.js";
@@ -205,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
205
  default: withCtx(() => [
206
206
  createVNode(_component_el_collapse, {
207
207
  modelValue: openCollapseItems.value,
208
- "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => openCollapseItems.value = $event),
208
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => openCollapseItems.value = $event),
209
209
  style: { "margin-top": "6px" }
210
210
  }, {
211
211
  default: withCtx(() => [
@@ -522,7 +522,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
522
522
  })
523
523
  ]),
524
524
  _: 1
525
- }, 8, ["data"])
525
+ }, 8, ["data"]),
526
+ createVNode(_component_el_form_item, {
527
+ label: "逻辑删除",
528
+ title: "是否逻辑删除",
529
+ class: "amb-design-attr-item"
530
+ }, {
531
+ default: withCtx(() => [
532
+ createVNode(_component_el_radio_group, {
533
+ modelValue: __props.configure.props.base.isSafeDelete,
534
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.isSafeDelete = $event),
535
+ class: "ml-4"
536
+ }, {
537
+ default: withCtx(() => [
538
+ createVNode(_component_el_radio, { value: true }, {
539
+ default: withCtx(() => [
540
+ createTextVNode("是")
541
+ ]),
542
+ _: 1
543
+ }),
544
+ createVNode(_component_el_radio, { value: false }, {
545
+ default: withCtx(() => [
546
+ createTextVNode("否")
547
+ ]),
548
+ _: 1
549
+ })
550
+ ]),
551
+ _: 1
552
+ }, 8, ["modelValue"])
553
+ ]),
554
+ _: 1
555
+ })
526
556
  ])
527
557
  ]),
528
558
  _: 1
@@ -541,7 +571,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
541
571
  default: withCtx(() => [
542
572
  createVNode(_component_el_radio_group, {
543
573
  modelValue: __props.configure.props.importSetting.listViewImportDuplicate,
544
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.importSetting.listViewImportDuplicate = $event),
574
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.importSetting.listViewImportDuplicate = $event),
545
575
  class: "ml-4"
546
576
  }, {
547
577
  default: withCtx(() => [
@@ -609,7 +639,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
609
639
  default: withCtx(() => [
610
640
  createVNode(_component_el_checkbox_group, {
611
641
  modelValue: __props.configure.props.otherSettings.timeToInitializeSubTable,
612
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.otherSettings.timeToInitializeSubTable = $event)
642
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.otherSettings.timeToInitializeSubTable = $event)
613
643
  }, {
614
644
  default: withCtx(() => [
615
645
  createVNode(_component_el_checkbox, {
@@ -634,7 +664,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
634
664
  default: withCtx(() => [
635
665
  createVNode(_component_el_input, {
636
666
  modelValue: __props.configure.props.otherSettings.mobileLineTitle,
637
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.otherSettings.mobileLineTitle = $event)
667
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.otherSettings.mobileLineTitle = $event)
638
668
  }, null, 8, ["modelValue"])
639
669
  ]),
640
670
  _: 1
@@ -647,7 +677,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
647
677
  default: withCtx(() => [
648
678
  createVNode(_component_el_select, {
649
679
  modelValue: __props.configure.props.otherSettings.dataSources,
650
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.otherSettings.dataSources = $event),
680
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.otherSettings.dataSources = $event),
651
681
  clearable: ""
652
682
  }, {
653
683
  default: withCtx(() => [
@@ -778,7 +808,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
778
808
  default: withCtx(() => [
779
809
  createVNode(_component_el_input, {
780
810
  modelValue: __props.configure.props.otherSettings.sourceDataTable,
781
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.otherSettings.sourceDataTable = $event),
811
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.otherSettings.sourceDataTable = $event),
782
812
  title: __props.configure.props.otherSettings.sourceDataTable,
783
813
  clearable: "",
784
814
  readonly: "true"
@@ -810,7 +840,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
810
840
  createElementVNode("div", _hoisted_11, [
811
841
  createVNode(_component_el_select, {
812
842
  modelValue: __props.configure.props.otherSettings.sourceDataTableSortColumn,
813
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.otherSettings.sourceDataTableSortColumn = $event),
843
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.otherSettings.sourceDataTableSortColumn = $event),
814
844
  clearable: "",
815
845
  filterable: ""
816
846
  }, {
@@ -827,7 +857,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
827
857
  }, 8, ["modelValue"]),
828
858
  createVNode(_component_el_select, {
829
859
  modelValue: __props.configure.props.otherSettings.sourceDataTableSortOrder,
830
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.otherSettings.sourceDataTableSortOrder = $event),
860
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.otherSettings.sourceDataTableSortOrder = $event),
831
861
  style: { "width": "120px", "margin-left": "10px" },
832
862
  clearable: ""
833
863
  }, {
@@ -853,7 +883,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
853
883
  }, {
854
884
  default: withCtx(() => [
855
885
  createVNode(StateButton, {
856
- onClick: _cache[17] || (_cache[17] = ($event) => combinationVisible.value = true),
886
+ onClick: _cache[18] || (_cache[18] = ($event) => combinationVisible.value = true),
857
887
  conditionData: JSON.parse(__props.configure.props.otherSettings.sourceQueryTableData)
858
888
  }, null, 8, ["conditionData"])
859
889
  ]),
@@ -873,7 +903,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
873
903
  default: withCtx(() => [
874
904
  createVNode(_component_el_radio_group, {
875
905
  modelValue: __props.configure.props.otherSettings.isRealTimeChange,
876
- "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => __props.configure.props.otherSettings.isRealTimeChange = $event),
906
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => __props.configure.props.otherSettings.isRealTimeChange = $event),
877
907
  class: "ml-4",
878
908
  onChange: realTimeChange
879
909
  }, {
@@ -1020,7 +1050,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1020
1050
  default: withCtx(() => [
1021
1051
  createVNode(_component_el_radio_group, {
1022
1052
  modelValue: __props.configure.props.otherSettings.isWithDataPermission,
1023
- "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => __props.configure.props.otherSettings.isWithDataPermission = $event),
1053
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => __props.configure.props.otherSettings.isWithDataPermission = $event),
1024
1054
  class: "ml-4"
1025
1055
  }, {
1026
1056
  default: withCtx(() => [
@@ -1050,7 +1080,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1050
1080
  default: withCtx(() => [
1051
1081
  createVNode(_component_el_input_number, {
1052
1082
  modelValue: __props.configure.props.otherSettings.tableRecordMaxNum,
1053
- "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => __props.configure.props.otherSettings.tableRecordMaxNum = $event)
1083
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => __props.configure.props.otherSettings.tableRecordMaxNum = $event)
1054
1084
  }, null, 8, ["modelValue"])
1055
1085
  ]),
1056
1086
  _: 1
@@ -1081,13 +1111,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1081
1111
  }, 8, ["modelValue"]),
1082
1112
  createVNode(_component_el_dialog, {
1083
1113
  modelValue: codemirrorVisible.value,
1084
- "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => codemirrorVisible.value = $event),
1114
+ "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => codemirrorVisible.value = $event),
1085
1115
  fullscreen: ""
1086
1116
  }, {
1087
1117
  default: withCtx(() => [
1088
1118
  createVNode(unref(Codemirror), {
1089
1119
  modelValue: __props.configure.props.dataOrigin.unfoldConent,
1090
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => __props.configure.props.dataOrigin.unfoldConent = $event),
1120
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => __props.configure.props.dataOrigin.unfoldConent = $event),
1091
1121
  options: cmOptions,
1092
1122
  placeholder: "请输入"
1093
1123
  }, null, 8, ["modelValue"])
@@ -9,7 +9,7 @@ import "uuid";
9
9
  import "../../../../../../stores/page-store.js";
10
10
  import "../../../../../../stores/table-store.js";
11
11
  import "../../../../../../stores/statistics-table-store.js";
12
- import "../../common/common-variable-bind.vue2.js";
12
+ import "../../common/common-variable-bind.vue3.js";
13
13
  import "../../../../utils/eventBus.js";
14
14
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
15
15
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -10,11 +10,11 @@ import eventBus from "../../../../utils/eventBus.js";
10
10
  import _sfc_main$1 from "../component/variate-select.vue.js";
11
11
  import "@element-plus/icons";
12
12
  import "agilebuilder-ui/src/utils/request";
13
+ import { queryTableFields, tableResetConfigIndo } from "../../../../utils/page-table-util.js";
13
14
  import _sfc_main$2 from "../../common/common-i18n-key-input.vue.js";
14
15
  import _sfc_main$5 from "../../form/common/hyperlink-mult-config.vue.js";
15
16
  import _sfc_main$3 from "../../common/common-function-code.vue.js";
16
17
  import _sfc_main$8 from "../../common/common-select-table.vue.js";
17
- import { queryTableFields, tableResetConfigIndo } from "../../../../utils/page-table-util.js";
18
18
  import { usePageContextStore } from "../../../../../../stores/page-store.js";
19
19
  import _sfc_main$6 from "../component/formatting-icon-label.vue.js";
20
20
  import _sfc_main$4 from "./tablecolumn-dynamic-column.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createCommentVNode, withDirectives, createTextVNode, createElementBlock, Fragment, renderList, vShow, normalizeClass } from "vue";
2
- import _sfc_main$3 from "./dataorigin-input-table.vue2.js";
2
+ import _sfc_main$3 from "./dataorigin-input-table.vue.js";
3
3
  import _sfc_main$2 from "./condition.vue.js";
4
4
  import _sfc_main$1 from "./row-ul-li.vue.js";
5
5
  import "uuid";
@@ -8,7 +8,7 @@ import http from "agilebuilder-ui/src/utils/request";
8
8
  import { usePageContextStore } from "../../../../../../stores/page-store.js";
9
9
  import "../../../../../../stores/table-store.js";
10
10
  import "../../../../../../stores/statistics-table-store.js";
11
- import "../../common/common-variable-bind.vue2.js";
11
+ import "../../common/common-variable-bind.vue3.js";
12
12
  import _sfc_main$4 from "./data-origin-service-in.vue.js";
13
13
  import { queryTableFields } from "../../../../utils/page-table-util.js";
14
14
  import { getCustomFuncs } from "../../../../utils/page-event-util.js";
@@ -1,4 +1,155 @@
1
- import _sfc_main from "./dataorigin-input-table.vue2.js";
1
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
2
+ import { Search } from "@element-plus/icons-vue";
3
+ const _hoisted_1 = { class: "dialog-footer" };
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "dataorigin-input-table",
6
+ props: {
7
+ modelValue: {
8
+ type: String,
9
+ default: ""
10
+ }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(__props, { emit: __emit }) {
14
+ const props = __props;
15
+ const inputValue = ref(props.modelValue);
16
+ const emit = __emit;
17
+ const tableData = [
18
+ {
19
+ id: 1,
20
+ date: "2016-05-03",
21
+ name: "Tom",
22
+ address: "No. 189, Grove St, Los Angeles"
23
+ },
24
+ {
25
+ id: 2,
26
+ date: "2016-05-02",
27
+ name: "Tom",
28
+ address: "No. 189, Grove St, Los Angeles"
29
+ },
30
+ {
31
+ id: 3,
32
+ date: "2016-05-04",
33
+ name: "Tom",
34
+ address: "No. 189, Grove St, Los Angeles"
35
+ },
36
+ {
37
+ id: 4,
38
+ date: "2016-05-01",
39
+ name: "Tom",
40
+ address: "No. 189, Grove St, Los Angeles"
41
+ }
42
+ ];
43
+ const dialogVisible = ref(false);
44
+ const selectData = ref([]);
45
+ watch(() => props.modelValue, (newVal) => {
46
+ inputValue.value = newVal;
47
+ });
48
+ function confirm() {
49
+ if (selectData.value.length > 0) {
50
+ let str = "";
51
+ selectData.value.forEach((item) => {
52
+ str = str + item.name + ",";
53
+ });
54
+ str = str.substring(0, str.length - 1);
55
+ emit("update:modelValue", str);
56
+ dialogVisible.value = false;
57
+ } else {
58
+ dialogVisible.value = false;
59
+ }
60
+ }
61
+ function handleSelectionChange(selection) {
62
+ selectData.value = selection;
63
+ }
64
+ function inputClick() {
65
+ dialogVisible.value = true;
66
+ }
67
+ return (_ctx, _cache) => {
68
+ const _component_el_icon = resolveComponent("el-icon");
69
+ const _component_el_input = resolveComponent("el-input");
70
+ const _component_el_table_column = resolveComponent("el-table-column");
71
+ const _component_el_table = resolveComponent("el-table");
72
+ const _component_el_button = resolveComponent("el-button");
73
+ const _component_el_dialog = resolveComponent("el-dialog");
74
+ return openBlock(), createElementBlock(Fragment, null, [
75
+ createVNode(_component_el_input, {
76
+ modelValue: inputValue.value,
77
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
78
+ placeholder: "请选择",
79
+ onClick: inputClick
80
+ }, {
81
+ suffix: withCtx(() => [
82
+ createVNode(_component_el_icon, { onClick: inputClick }, {
83
+ default: withCtx(() => [
84
+ createVNode(unref(Search))
85
+ ]),
86
+ _: 1
87
+ })
88
+ ]),
89
+ _: 1
90
+ }, 8, ["modelValue"]),
91
+ createVNode(_component_el_dialog, {
92
+ modelValue: dialogVisible.value,
93
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
94
+ title: "Tips",
95
+ width: "500"
96
+ }, {
97
+ footer: withCtx(() => [
98
+ createElementVNode("div", _hoisted_1, [
99
+ createVNode(_component_el_button, {
100
+ onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
101
+ }, {
102
+ default: withCtx(() => [
103
+ createTextVNode("取消")
104
+ ]),
105
+ _: 1
106
+ }),
107
+ createVNode(_component_el_button, {
108
+ type: "primary",
109
+ onClick: confirm
110
+ }, {
111
+ default: withCtx(() => [
112
+ createTextVNode(" 确定 ")
113
+ ]),
114
+ _: 1
115
+ })
116
+ ])
117
+ ]),
118
+ default: withCtx(() => [
119
+ createVNode(_component_el_table, {
120
+ data: tableData,
121
+ style: { "width": "100%" },
122
+ onSelectionChange: handleSelectionChange
123
+ }, {
124
+ default: withCtx(() => [
125
+ createVNode(_component_el_table_column, {
126
+ type: "selection",
127
+ width: "55"
128
+ }),
129
+ createVNode(_component_el_table_column, {
130
+ prop: "date",
131
+ label: "Date",
132
+ width: "180"
133
+ }),
134
+ createVNode(_component_el_table_column, {
135
+ prop: "name",
136
+ label: "Name",
137
+ width: "180"
138
+ }),
139
+ createVNode(_component_el_table_column, {
140
+ prop: "address",
141
+ label: "Address"
142
+ })
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]),
147
+ _: 1
148
+ }, 8, ["modelValue"])
149
+ ], 64);
150
+ };
151
+ }
152
+ });
2
153
  export {
3
154
  _sfc_main as default
4
155
  };
@@ -1,155 +1,4 @@
1
- import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
2
- import { Search } from "@element-plus/icons-vue";
3
- const _hoisted_1 = { class: "dialog-footer" };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "dataorigin-input-table",
6
- props: {
7
- modelValue: {
8
- type: String,
9
- default: ""
10
- }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(__props, { emit: __emit }) {
14
- const props = __props;
15
- const inputValue = ref(props.modelValue);
16
- const emit = __emit;
17
- const tableData = [
18
- {
19
- id: 1,
20
- date: "2016-05-03",
21
- name: "Tom",
22
- address: "No. 189, Grove St, Los Angeles"
23
- },
24
- {
25
- id: 2,
26
- date: "2016-05-02",
27
- name: "Tom",
28
- address: "No. 189, Grove St, Los Angeles"
29
- },
30
- {
31
- id: 3,
32
- date: "2016-05-04",
33
- name: "Tom",
34
- address: "No. 189, Grove St, Los Angeles"
35
- },
36
- {
37
- id: 4,
38
- date: "2016-05-01",
39
- name: "Tom",
40
- address: "No. 189, Grove St, Los Angeles"
41
- }
42
- ];
43
- const dialogVisible = ref(false);
44
- const selectData = ref([]);
45
- watch(() => props.modelValue, (newVal) => {
46
- inputValue.value = newVal;
47
- });
48
- function confirm() {
49
- if (selectData.value.length > 0) {
50
- let str = "";
51
- selectData.value.forEach((item) => {
52
- str = str + item.name + ",";
53
- });
54
- str = str.substring(0, str.length - 1);
55
- emit("update:modelValue", str);
56
- dialogVisible.value = false;
57
- } else {
58
- dialogVisible.value = false;
59
- }
60
- }
61
- function handleSelectionChange(selection) {
62
- selectData.value = selection;
63
- }
64
- function inputClick() {
65
- dialogVisible.value = true;
66
- }
67
- return (_ctx, _cache) => {
68
- const _component_el_icon = resolveComponent("el-icon");
69
- const _component_el_input = resolveComponent("el-input");
70
- const _component_el_table_column = resolveComponent("el-table-column");
71
- const _component_el_table = resolveComponent("el-table");
72
- const _component_el_button = resolveComponent("el-button");
73
- const _component_el_dialog = resolveComponent("el-dialog");
74
- return openBlock(), createElementBlock(Fragment, null, [
75
- createVNode(_component_el_input, {
76
- modelValue: inputValue.value,
77
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
78
- placeholder: "请选择",
79
- onClick: inputClick
80
- }, {
81
- suffix: withCtx(() => [
82
- createVNode(_component_el_icon, { onClick: inputClick }, {
83
- default: withCtx(() => [
84
- createVNode(unref(Search))
85
- ]),
86
- _: 1
87
- })
88
- ]),
89
- _: 1
90
- }, 8, ["modelValue"]),
91
- createVNode(_component_el_dialog, {
92
- modelValue: dialogVisible.value,
93
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
94
- title: "Tips",
95
- width: "500"
96
- }, {
97
- footer: withCtx(() => [
98
- createElementVNode("div", _hoisted_1, [
99
- createVNode(_component_el_button, {
100
- onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
101
- }, {
102
- default: withCtx(() => [
103
- createTextVNode("取消")
104
- ]),
105
- _: 1
106
- }),
107
- createVNode(_component_el_button, {
108
- type: "primary",
109
- onClick: confirm
110
- }, {
111
- default: withCtx(() => [
112
- createTextVNode(" 确定 ")
113
- ]),
114
- _: 1
115
- })
116
- ])
117
- ]),
118
- default: withCtx(() => [
119
- createVNode(_component_el_table, {
120
- data: tableData,
121
- style: { "width": "100%" },
122
- onSelectionChange: handleSelectionChange
123
- }, {
124
- default: withCtx(() => [
125
- createVNode(_component_el_table_column, {
126
- type: "selection",
127
- width: "55"
128
- }),
129
- createVNode(_component_el_table_column, {
130
- prop: "date",
131
- label: "Date",
132
- width: "180"
133
- }),
134
- createVNode(_component_el_table_column, {
135
- prop: "name",
136
- label: "Name",
137
- width: "180"
138
- }),
139
- createVNode(_component_el_table_column, {
140
- prop: "address",
141
- label: "Address"
142
- })
143
- ]),
144
- _: 1
145
- })
146
- ]),
147
- _: 1
148
- }, 8, ["modelValue"])
149
- ], 64);
150
- };
151
- }
152
- });
1
+ import _sfc_main from "./dataorigin-input-table.vue.js";
153
2
  export {
154
3
  _sfc_main as default
155
4
  };
@@ -232,9 +232,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
232
232
  title: "跳转条件",
233
233
  buttonText: "设置条件",
234
234
  list: _ctx.linkPage[currentEditIndex.value].conditions,
235
+ tableConfigure: _ctx.tableConfigure,
235
236
  ref_key: "conditionRef",
236
237
  ref: conditionRef
237
- }, null, 8, ["list"])) : _ctx.linkPage[currentEditIndex.value].jumpConditionType === "customFunc" ? (openBlock(), createBlock(_component_el_select, {
238
+ }, null, 8, ["list", "tableConfigure"])) : _ctx.linkPage[currentEditIndex.value].jumpConditionType === "customFunc" ? (openBlock(), createBlock(_component_el_select, {
238
239
  key: 1,
239
240
  modelValue: _ctx.linkPage[currentEditIndex.value].customFunc,
240
241
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.linkPage[currentEditIndex.value].customFunc = $event),
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode } from "vue";
2
2
  import { getUuidv4 } from "../../../../utils/common-util.js";
3
3
  import BindVariable from "../../common/common-variable-bind.vue.js";
4
+ import { getModelOptionsByFields } from "../../../../utils/page-table-util.js";
4
5
  const _hoisted_1 = { style: { "text-align": "center", "margin": "0px -8px", "padding-top": "4px", "padding-left": "2px" } };
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "parameter-table",
@@ -8,12 +9,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  data: {
9
10
  type: Array,
10
11
  default: () => []
12
+ },
13
+ tableConfigure: {
14
+ type: Object,
15
+ default: () => []
11
16
  }
12
17
  },
13
18
  emits: ["dataChange"],
14
19
  setup(__props, { emit: __emit }) {
15
20
  const props = __props;
16
21
  const emit = __emit;
22
+ const rowModelOptions = ref(null);
23
+ getRowModelOptions();
24
+ function getRowModelOptions() {
25
+ if (props.tableConfigure) {
26
+ rowModelOptions.value = getModelOptionsByFields(props.tableConfigure.modelFields);
27
+ }
28
+ }
29
+ watch(() => props.tableConfigure, () => {
30
+ getRowModelOptions();
31
+ });
17
32
  const tableData = ref([]);
18
33
  tableData.value = props.data;
19
34
  if (!tableData.value || tableData.value.length == 0) {
@@ -148,8 +163,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
163
  default: withCtx((scope) => [
149
164
  createVNode(BindVariable, {
150
165
  modelValue: scope.row.paramValue,
166
+ objModelOptions: rowModelOptions.value,
151
167
  "onUpdate:modelValue": (val) => afterBindLabelVariable(val, scope.row)
152
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
168
+ }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])
153
169
  ]),
154
170
  _: 1
155
171
  }),
@@ -80,11 +80,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  },
81
81
  { immediate: true }
82
82
  );
83
+ watch(
84
+ () => props.tableConfigure,
85
+ (newVal) => {
86
+ changeTableConfig();
87
+ }
88
+ );
83
89
  onMounted(() => {
90
+ changeTableConfig();
91
+ });
92
+ function changeTableConfig() {
84
93
  if (props.tableConfigure && conditionRef.value) {
85
94
  conditionRef.value.changeTableFields(props.tableConfigure.modelFields);
86
95
  }
87
- });
96
+ }
88
97
  function selectPage() {
89
98
  selectPageDialog.value.openDialog();
90
99
  }
@@ -515,8 +524,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
515
524
  })) : createCommentVNode("", true),
516
525
  createVNode(_sfc_main$4, {
517
526
  data: linkPage.value.jumpPageAdditional,
527
+ tableConfigure: _ctx.tableConfigure,
518
528
  onDataChange: ParameterDataChange
519
- }, null, 8, ["data"]),
529
+ }, null, 8, ["data", "tableConfigure"]),
520
530
  createVNode(_sfc_main$5, { linkPage: linkPage.value }, null, 8, ["linkPage"]),
521
531
  createVNode(_sfc_main$6, {
522
532
  ref_key: "selectPageDialog",