super-page-designer 2.0.92 → 2.0.96

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 (29) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +2494 -2034
  2. package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
  3. package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +0 -1
  4. package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +30 -19
  5. package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +14 -3
  6. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -3
  7. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +69 -534
  9. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +731 -0
  10. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue2.js +4 -0
  11. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -0
  12. package/dist/es/components/design/views/assemblys/object-design.vue.js +13 -2
  13. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +2 -2
  14. package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -34
  15. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-base.vue.js +85 -0
  16. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-base.vue2.js +4 -0
  17. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-event.vue.js +30 -0
  18. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-event.vue2.js +4 -0
  19. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-style.vue.js +51 -0
  20. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-style.vue2.js +4 -0
  21. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue.js +5 -0
  22. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue2.js +42 -0
  23. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue3.js +1 -0
  24. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue.js +4 -0
  25. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +58 -0
  26. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -1
  27. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +53 -10
  28. package/dist/es/style.css +726 -107
  29. package/package.json +5 -5
@@ -0,0 +1,731 @@
1
+ import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createCommentVNode, unref, renderList, normalizeClass, withDirectives, vShow } from "vue";
2
+ import { Search, Close } from "@element-plus/icons-vue";
3
+ import _sfc_main$1 from "../../common/page-permission-select.vue.js";
4
+ import _sfc_main$4 from "../../common/common-select-table.vue.js";
5
+ import { usePageContextStore } from "../../../../../../stores/page-store.js";
6
+ import { queryTableFields } from "../../../../utils/page-table-util.js";
7
+ import _sfc_main$2 from "../../form/common/condition.vue.js";
8
+ import _sfc_main$3 from "../component/dynamic-column.vue.js";
9
+ import _sfc_main$5 from "../component/configuration-value.vue.js";
10
+ import http from "agilebuilder-ui/src/utils/request";
11
+ const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
12
+ const _hoisted_2 = ["onClick"];
13
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, "列模型设置", -1);
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ __name: "tablecolumn-dynamic-column",
16
+ props: {
17
+ // 当前列数据
18
+ configure: {
19
+ type: Object,
20
+ default: () => ({ props: {} })
21
+ },
22
+ // 表格总体数据
23
+ tableConfigure: {
24
+ type: Object,
25
+ default: () => ({ props: {} })
26
+ },
27
+ // 页面对象
28
+ pageDesign: {
29
+ type: Object,
30
+ default: () => ({ props: {} })
31
+ },
32
+ operationColumn: {
33
+ type: Boolean,
34
+ default: false
35
+ }
36
+ },
37
+ setup(__props) {
38
+ const props = __props;
39
+ const selectTableDialog = ref();
40
+ const selectTableType = ref("");
41
+ const pageContextUtil = usePageContextStore();
42
+ const queryConditionRef = ref();
43
+ const selectConditionRef = ref();
44
+ const updateConditionRef = ref();
45
+ const atPresentSortIndex = ref("");
46
+ const modelTableFieldList = ref([]);
47
+ let clolumnTableFields = ref([]);
48
+ const groupTitleValueSet = ref({});
49
+ function dynamicColumnDataSourcesChange(value) {
50
+ if (value === "service" && !props.configure.props.dynamicColumnData.service) {
51
+ props.configure.props.dynamicColumnData.service = {};
52
+ }
53
+ }
54
+ const queryOptionGroupLoading = ref(false);
55
+ const optionGroups = ref([]);
56
+ function queryOptionGroups(query) {
57
+ queryOptionGroupLoading.value = true;
58
+ const param = {
59
+ query
60
+ };
61
+ http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/option-groups/query", param).then((result) => {
62
+ queryOptionGroupLoading.value = false;
63
+ optionGroups.value = result;
64
+ }).catch((error) => {
65
+ queryOptionGroupLoading.value = false;
66
+ console.log("查询选项组出错", error);
67
+ });
68
+ }
69
+ function afterSelectService(type, code, name) {
70
+ props.configure.props.dynamicColumnData.service.simpleCode = code;
71
+ props.configure.props.dynamicColumnData.service.name = name;
72
+ }
73
+ function selectTable(type) {
74
+ selectTableDialog.value.openDialog();
75
+ selectTableType.value = type;
76
+ }
77
+ function clearTable(type) {
78
+ if (type == "masterTable") {
79
+ props.configure.props.dynamicColumnData.tableName = "";
80
+ props.configure.props.dynamicColumnData.tableAlias = "";
81
+ props.configure.props.dynamicColumnData.dataTableCode = null;
82
+ props.configure.props.dynamicColumnData.tableSysVersion = null;
83
+ } else {
84
+ props.configure.props.dynamicColumnData.settingDataName = "";
85
+ props.configure.props.dynamicColumnData.settingDataAlias = "";
86
+ props.configure.props.dynamicColumnData.settingDataTableCode = null;
87
+ props.configure.props.dynamicColumnData.settingDataSysVersion = null;
88
+ }
89
+ }
90
+ function onSelectTable(tableInfo) {
91
+ if (selectTableType.value == "masterTable") {
92
+ let hisKey = props.configure.props.dynamicColumnData.dataTableCode ? props.configure.props.dynamicColumnData.dataTableCode : "";
93
+ hisKey += "_";
94
+ hisKey += props.configure.props.dynamicColumnData.tableSysVersion ? props.configure.props.dynamicColumnData.tableSysVersion : "";
95
+ hisKey += "_";
96
+ hisKey += props.configure.props.dynamicColumnData.tableName ? props.configure.props.dynamicColumnData.tableName : "";
97
+ let newKey = tableInfo.systemCode ? tableInfo.systemCode : "";
98
+ newKey += "_";
99
+ newKey += tableInfo.systemVersion ? tableInfo.systemVersion : "";
100
+ newKey += "_";
101
+ newKey += tableInfo.name ? tableInfo.name : "";
102
+ if (newKey != hisKey) {
103
+ props.configure.props.dynamicColumnData.dataTableCode = tableInfo.name;
104
+ props.configure.props.dynamicColumnData.tableAlias = tableInfo.alias;
105
+ props.configure.props.dynamicColumnData.tableSysVersion = tableInfo.systemVersion;
106
+ props.configure.props.dynamicColumnData.tableSysCode = tableInfo.systemCode;
107
+ queryTableFieldsByTable();
108
+ }
109
+ } else {
110
+ let hisKey = props.configure.props.dynamicColumnData.settingDataTableCode ? props.configure.props.dynamicColumnData.settingDataTableCode : "";
111
+ hisKey += "_";
112
+ hisKey += props.configure.props.dynamicColumnData.settingDataSysVersion ? props.configure.props.dynamicColumnData.settingDataSysVersion : "";
113
+ hisKey += "_";
114
+ hisKey += props.configure.props.dynamicColumnData.settingDataName ? props.configure.props.dynamicColumnData.settingDataName : "";
115
+ let newKey = tableInfo.systemCode ? tableInfo.systemCode : "";
116
+ newKey += "_";
117
+ newKey += tableInfo.systemVersion ? tableInfo.systemVersion : "";
118
+ newKey += "_";
119
+ newKey += tableInfo.name ? tableInfo.name : "";
120
+ if (newKey != hisKey) {
121
+ props.configure.props.dynamicColumnData.settingDataTableCode = tableInfo.name;
122
+ props.configure.props.dynamicColumnData.settingDataAlias = tableInfo.alias;
123
+ props.configure.props.dynamicColumnData.settingDataSysVersion = tableInfo.systemVersion;
124
+ props.configure.props.dynamicColumnData.settingDataSysCode = tableInfo.systemVersion;
125
+ queryTableFieldsByTableSublist();
126
+ }
127
+ }
128
+ }
129
+ function queryTableFieldsByTable() {
130
+ const {
131
+ tableSysCode = pageContextUtil.pageContext.systemCode,
132
+ tableSysVersion = pageContextUtil.pageContext.systemVersion,
133
+ dataTableCode: tableName
134
+ } = props.configure.props.dynamicColumnData;
135
+ const systemCode = tableSysCode;
136
+ const systemVersion = tableSysVersion;
137
+ if (!tableName) {
138
+ return;
139
+ }
140
+ queryTableFields(systemCode, systemVersion, tableName).then((resultFields) => {
141
+ modelTableFieldList.value = resultFields;
142
+ if (queryConditionRef.value) {
143
+ queryConditionRef.value.changeTableFields(resultFields);
144
+ }
145
+ }).catch((error) => {
146
+ console.log("数据源中查询表字段失败!", error);
147
+ });
148
+ }
149
+ function queryTableFieldsByTableSublist() {
150
+ const { settingDataSysCode, settingDataSysVersion, settingDataTableCode } = props.configure.props.dynamicColumnData;
151
+ const { systemCode: defaultSystemCode, systemVersion: defaultSystemVersion } = pageContextUtil.pageContext;
152
+ const systemCode = settingDataSysCode || defaultSystemCode;
153
+ const systemVersion = settingDataSysVersion || defaultSystemVersion;
154
+ const tableName = settingDataTableCode;
155
+ if (!tableName) {
156
+ return;
157
+ }
158
+ queryTableFields(systemCode, systemVersion, tableName).then((resultFields) => {
159
+ console.log("%c描述-111942", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", resultFields);
160
+ clolumnTableFields.value = resultFields;
161
+ selectConditionRef.value.changeTableFields(resultFields);
162
+ updateConditionRef.value.changeTableFields(resultFields);
163
+ }).catch((error) => {
164
+ console.log("数据源中查询表字段失败!", error);
165
+ });
166
+ }
167
+ function seleteSort(index) {
168
+ atPresentSortIndex.value = index;
169
+ }
170
+ function addSortField() {
171
+ if (!props.configure.props.dynamicColumnData.dataTableSortTable) {
172
+ props.configure.props.dynamicColumnData.dataTableSortTable = [];
173
+ }
174
+ props.configure.props.dynamicColumnData.dataTableSortTable.push({});
175
+ atPresentSortIndex.value = "";
176
+ }
177
+ function removeSortField() {
178
+ if (props.configure.props.dynamicColumnData.dataTableSortTable.length > 0) {
179
+ props.configure.props.dynamicColumnData.dataTableSortTable.splice(
180
+ props.configure.props.dynamicColumnData.dataTableSortTable.length - 1,
181
+ 1
182
+ );
183
+ }
184
+ }
185
+ ref(0);
186
+ const configurationVisible = ref(false);
187
+ const configurationRef = ref();
188
+ function configurationClose() {
189
+ configurationVisible.value = false;
190
+ }
191
+ function configurationAdd(configObj) {
192
+ debugger;
193
+ }
194
+ onMounted(() => {
195
+ var _a, _b, _c;
196
+ if (((_a = props.configure.props.base) == null ? void 0 : _a.prop) === "dynamicColumnSelect") {
197
+ if (((_b = props.configure.props.dynamicColumnData) == null ? void 0 : _b.dataSources) === "dataTable" && props.configure.props.dynamicColumnData.dataTableCode) {
198
+ queryTableFieldsByTable();
199
+ } else if (((_c = props.configure.props.dynamicColumnData) == null ? void 0 : _c.dataSources) === "optionGroup" && props.configure.props.dynamicColumnData.optionGroup) {
200
+ queryOptionGroups("");
201
+ }
202
+ if (props.configure.props.dynamicColumnData && props.configure.props.dynamicColumnData.settingDataTableCode) {
203
+ queryTableFieldsByTableSublist();
204
+ }
205
+ }
206
+ });
207
+ return (_ctx, _cache) => {
208
+ const _component_el_radio = resolveComponent("el-radio");
209
+ const _component_el_radio_group = resolveComponent("el-radio-group");
210
+ const _component_el_form_item = resolveComponent("el-form-item");
211
+ const _component_el_input = resolveComponent("el-input");
212
+ const _component_el_button = resolveComponent("el-button");
213
+ const _component_el_option = resolveComponent("el-option");
214
+ const _component_el_select = resolveComponent("el-select");
215
+ const _component_el_divider = resolveComponent("el-divider");
216
+ const _component_el_collapse_item = resolveComponent("el-collapse-item");
217
+ return openBlock(), createElementBlock(Fragment, null, [
218
+ !__props.operationColumn && __props.configure.props.base.prop === "dynamicColumnSelect" ? (openBlock(), createBlock(_component_el_collapse_item, {
219
+ key: 0,
220
+ title: "动态列",
221
+ name: "columnModel",
222
+ class: "amb-design-attr-group-header"
223
+ }, {
224
+ default: withCtx(() => {
225
+ var _a, _b, _c, _d;
226
+ return [
227
+ createElementVNode("div", _hoisted_1, [
228
+ createVNode(_component_el_form_item, {
229
+ label: "数据来源",
230
+ class: "amb-design-attr-item"
231
+ }, {
232
+ default: withCtx(() => [
233
+ createVNode(_component_el_radio_group, {
234
+ modelValue: __props.configure.props.dynamicColumnData.dataSources,
235
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.props.dynamicColumnData.dataSources = $event),
236
+ onChange: dynamicColumnDataSourcesChange
237
+ }, {
238
+ default: withCtx(() => [
239
+ createVNode(_component_el_radio, { value: "dataTable" }, {
240
+ default: withCtx(() => [
241
+ createTextVNode("数据表/视图")
242
+ ]),
243
+ _: 1
244
+ }),
245
+ createVNode(_component_el_radio, { value: "sql" }, {
246
+ default: withCtx(() => [
247
+ createTextVNode("SQL语句")
248
+ ]),
249
+ _: 1
250
+ }),
251
+ createVNode(_component_el_radio, { value: "optionGroup" }, {
252
+ default: withCtx(() => [
253
+ createTextVNode("选项组")
254
+ ]),
255
+ _: 1
256
+ }),
257
+ createVNode(_component_el_radio, { value: "bean" }, {
258
+ default: withCtx(() => [
259
+ createTextVNode("bean名称")
260
+ ]),
261
+ _: 1
262
+ }),
263
+ createVNode(_component_el_radio, { value: "service" }, {
264
+ default: withCtx(() => [
265
+ createTextVNode("服务")
266
+ ]),
267
+ _: 1
268
+ })
269
+ ]),
270
+ _: 1
271
+ }, 8, ["modelValue"])
272
+ ]),
273
+ _: 1
274
+ }),
275
+ __props.configure.props.dynamicColumnData.dataSources === "bean" ? (openBlock(), createBlock(_component_el_form_item, {
276
+ key: 0,
277
+ label: "bean名称",
278
+ class: "amb-design-attr-item"
279
+ }, {
280
+ default: withCtx(() => [
281
+ createVNode(_component_el_input, {
282
+ modelValue: __props.configure.props.dynamicColumnData.beanName,
283
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.dynamicColumnData.beanName = $event)
284
+ }, null, 8, ["modelValue"])
285
+ ]),
286
+ _: 1
287
+ })) : createCommentVNode("", true),
288
+ __props.configure.props.dynamicColumnData.dataSources === "service" && __props.configure.props.dynamicColumnData.service ? (openBlock(), createBlock(_component_el_form_item, {
289
+ key: 1,
290
+ label: "服务名",
291
+ class: "amb-design-attr-item"
292
+ }, {
293
+ default: withCtx(() => [
294
+ createVNode(_sfc_main$1, {
295
+ pageDesign: __props.pageDesign,
296
+ rowObj: __props.configure.props.dynamicColumnData.service,
297
+ onlyService: "",
298
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (type, code, name) => afterSelectService(type, code, name))
299
+ }, null, 8, ["pageDesign", "rowObj"])
300
+ ]),
301
+ _: 1
302
+ })) : createCommentVNode("", true),
303
+ createVNode(_component_el_form_item, {
304
+ label: "监控字段",
305
+ title: "监控主表字段",
306
+ class: "amb-design-attr-item"
307
+ }, {
308
+ default: withCtx(() => [
309
+ createVNode(_component_el_input, {
310
+ modelValue: __props.configure.props.dynamicColumnData.watchParentAttr,
311
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.dynamicColumnData.watchParentAttr = $event)
312
+ }, null, 8, ["modelValue"])
313
+ ]),
314
+ _: 1
315
+ }),
316
+ __props.configure.props.dynamicColumnData.dataSources === "dataTable" ? (openBlock(), createBlock(_component_el_form_item, {
317
+ key: 2,
318
+ label: "数据表视图",
319
+ class: "amb-design-attr-item"
320
+ }, {
321
+ default: withCtx(() => [
322
+ createVNode(_component_el_input, {
323
+ modelValue: __props.configure.props.dynamicColumnData.dataTableCode,
324
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.dynamicColumnData.dataTableCode = $event),
325
+ title: __props.configure.props.dynamicColumnData.dataTableCode,
326
+ onClick: _cache[7] || (_cache[7] = ($event) => selectTable("masterTable")),
327
+ clearable: "",
328
+ readonly: "true"
329
+ }, {
330
+ append: withCtx(() => [
331
+ createVNode(_component_el_button, {
332
+ icon: unref(Search),
333
+ onClick: _cache[4] || (_cache[4] = ($event) => selectTable("masterTable")),
334
+ size: "small"
335
+ }, null, 8, ["icon"]),
336
+ createVNode(_component_el_button, {
337
+ icon: unref(Close),
338
+ onClick: _cache[5] || (_cache[5] = ($event) => clearTable("masterTable")),
339
+ title: "Clear",
340
+ size: "small"
341
+ }, null, 8, ["icon"])
342
+ ]),
343
+ _: 1
344
+ }, 8, ["modelValue", "title"])
345
+ ]),
346
+ _: 1
347
+ })) : createCommentVNode("", true),
348
+ __props.configure.props.dynamicColumnData.dataSources === "dataTable" ? (openBlock(), createBlock(_component_el_form_item, {
349
+ key: 3,
350
+ label: "排序",
351
+ class: "amb-design-attr-item"
352
+ }, {
353
+ default: withCtx(() => [
354
+ createVNode(_component_el_button, {
355
+ type: "primary",
356
+ onClick: addSortField
357
+ }, {
358
+ default: withCtx(() => [
359
+ createTextVNode("添加")
360
+ ]),
361
+ _: 1
362
+ }),
363
+ createVNode(_component_el_button, { onClick: removeSortField }, {
364
+ default: withCtx(() => [
365
+ createTextVNode("删除")
366
+ ]),
367
+ _: 1
368
+ }),
369
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.configure.props.dynamicColumnData.dataTableSortTable, (item, index) => {
370
+ return openBlock(), createElementBlock("div", {
371
+ key: index,
372
+ onClick: ($event) => seleteSort(index),
373
+ style: { "margin-top": "6px" },
374
+ class: normalizeClass(
375
+ atPresentSortIndex.value === index ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline"
376
+ )
377
+ }, [
378
+ createVNode(_component_el_select, {
379
+ modelValue: item.sortColumn,
380
+ "onUpdate:modelValue": ($event) => item.sortColumn = $event,
381
+ filterable: "",
382
+ clearable: "",
383
+ placeholder: "请选择"
384
+ }, {
385
+ default: withCtx(() => [
386
+ (openBlock(true), createElementBlock(Fragment, null, renderList(modelTableFieldList.value, (field, index2) => {
387
+ return openBlock(), createBlock(_component_el_option, {
388
+ key: index2,
389
+ label: field.alias + "(" + field.dbColumnName + ")",
390
+ value: field.dbColumnName
391
+ }, null, 8, ["label", "value"]);
392
+ }), 128))
393
+ ]),
394
+ _: 2
395
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
396
+ createVNode(_component_el_select, {
397
+ modelValue: item.sortOrder,
398
+ "onUpdate:modelValue": ($event) => item.sortOrder = $event,
399
+ style: { "margin-left": "10px" },
400
+ placeholder: "请选择"
401
+ }, {
402
+ default: withCtx(() => [
403
+ createVNode(_component_el_option, {
404
+ label: "升序",
405
+ value: "asc"
406
+ }),
407
+ createVNode(_component_el_option, {
408
+ label: "降序",
409
+ value: "desc"
410
+ })
411
+ ]),
412
+ _: 2
413
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
414
+ ], 10, _hoisted_2);
415
+ }), 128))
416
+ ]),
417
+ _: 1
418
+ })) : createCommentVNode("", true),
419
+ withDirectives(createVNode(_component_el_form_item, {
420
+ label: "查询条件",
421
+ class: "amb-design-attr-item"
422
+ }, {
423
+ default: withCtx(() => [
424
+ createVNode(_sfc_main$2, {
425
+ title: "查询条件",
426
+ list: __props.configure.props.dynamicColumnData.searchcondition,
427
+ ref_key: "queryConditionRef",
428
+ ref: queryConditionRef
429
+ }, null, 8, ["list"])
430
+ ]),
431
+ _: 1
432
+ }, 512), [
433
+ [vShow, __props.configure.props.dynamicColumnData.dataSources === "dataTable"]
434
+ ]),
435
+ withDirectives(createVNode(_component_el_form_item, {
436
+ label: "SQL",
437
+ class: "amb-design-attr-item"
438
+ }, {
439
+ default: withCtx(() => [
440
+ createVNode(_component_el_input, {
441
+ modelValue: __props.configure.props.dynamicColumnData.sql,
442
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.dynamicColumnData.sql = $event),
443
+ rows: 2,
444
+ type: "textarea"
445
+ }, null, 8, ["modelValue"])
446
+ ]),
447
+ _: 1
448
+ }, 512), [
449
+ [vShow, __props.configure.props.dynamicColumnData.dataSources === "sql"]
450
+ ]),
451
+ withDirectives(createVNode(_component_el_form_item, {
452
+ label: "选项组名",
453
+ class: "amb-design-attr-item"
454
+ }, {
455
+ default: withCtx(() => [
456
+ createVNode(_component_el_select, {
457
+ modelValue: __props.configure.props.dynamicColumnData.optionGroup,
458
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.props.dynamicColumnData.optionGroup = $event),
459
+ filterable: "",
460
+ remote: "",
461
+ "reserve-keyword": "",
462
+ clearable: "",
463
+ placeholder: "请选择",
464
+ "remote-show-suffix": "",
465
+ "remote-method": queryOptionGroups,
466
+ loading: queryOptionGroupLoading.value
467
+ }, {
468
+ default: withCtx(() => [
469
+ (openBlock(true), createElementBlock(Fragment, null, renderList(optionGroups.value, (item) => {
470
+ return openBlock(), createBlock(_component_el_option, {
471
+ key: item.code,
472
+ label: item.name + "(" + item.code + ")",
473
+ value: item.code
474
+ }, null, 8, ["label", "value"]);
475
+ }), 128))
476
+ ]),
477
+ _: 1
478
+ }, 8, ["modelValue", "loading"])
479
+ ]),
480
+ _: 1
481
+ }, 512), [
482
+ [vShow, __props.configure.props.dynamicColumnData.dataSources === "optionGroup"]
483
+ ]),
484
+ createVNode(_component_el_divider, null, {
485
+ default: withCtx(() => [
486
+ _hoisted_3
487
+ ]),
488
+ _: 1
489
+ }),
490
+ createVNode(_component_el_form_item, {
491
+ label: "数据表",
492
+ class: "amb-design-attr-item"
493
+ }, {
494
+ default: withCtx(() => [
495
+ createVNode(_component_el_input, {
496
+ modelValue: __props.configure.props.dynamicColumnData.settingDataTableCode,
497
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.dynamicColumnData.settingDataTableCode = $event),
498
+ title: __props.configure.props.dynamicColumnData.settingDataTableCode,
499
+ clearable: "",
500
+ readonly: "true"
501
+ }, {
502
+ append: withCtx(() => [
503
+ createVNode(_component_el_button, {
504
+ icon: unref(Search),
505
+ onClick: _cache[10] || (_cache[10] = ($event) => selectTable("sublist")),
506
+ size: "small"
507
+ }, null, 8, ["icon"]),
508
+ createVNode(_component_el_button, {
509
+ icon: unref(Close),
510
+ onClick: _cache[11] || (_cache[11] = ($event) => clearTable("sublist")),
511
+ title: "Clear",
512
+ size: "small"
513
+ }, null, 8, ["icon"])
514
+ ]),
515
+ _: 1
516
+ }, 8, ["modelValue", "title"])
517
+ ]),
518
+ _: 1
519
+ }),
520
+ createVNode(_component_el_form_item, {
521
+ label: "关联字段",
522
+ title: "与主表关联字段",
523
+ class: "amb-design-attr-item"
524
+ }, {
525
+ default: withCtx(() => [
526
+ createVNode(_component_el_select, {
527
+ modelValue: __props.configure.props.dynamicColumnData.settingRelationColumn,
528
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.dynamicColumnData.settingRelationColumn = $event),
529
+ clearable: "",
530
+ filterable: ""
531
+ }, {
532
+ default: withCtx(() => [
533
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(clolumnTableFields), (item, index) => {
534
+ return openBlock(), createBlock(_component_el_option, {
535
+ key: index,
536
+ label: item.alias,
537
+ value: item.dbColumnName
538
+ }, null, 8, ["label", "value"]);
539
+ }), 128))
540
+ ]),
541
+ _: 1
542
+ }, 8, ["modelValue"])
543
+ ]),
544
+ _: 1
545
+ }),
546
+ createVNode(_component_el_form_item, {
547
+ label: "查询条件",
548
+ title: "查询附加条件",
549
+ class: "amb-design-attr-item"
550
+ }, {
551
+ default: withCtx(() => [
552
+ createVNode(_sfc_main$2, {
553
+ title: "查询条件",
554
+ list: __props.configure.props.dynamicColumnData.selectCondition,
555
+ ref_key: "selectConditionRef",
556
+ ref: selectConditionRef
557
+ }, null, 8, ["list"])
558
+ ]),
559
+ _: 1
560
+ }),
561
+ createVNode(_component_el_form_item, {
562
+ label: "更新条件",
563
+ title: "更新附加条件",
564
+ class: "amb-design-attr-item"
565
+ }, {
566
+ default: withCtx(() => [
567
+ createVNode(_sfc_main$2, {
568
+ title: "更新条件",
569
+ list: __props.configure.props.dynamicColumnData.updateCondition,
570
+ ref_key: "updateConditionRef",
571
+ ref: updateConditionRef
572
+ }, null, 8, ["list"])
573
+ ]),
574
+ _: 1
575
+ }),
576
+ createVNode(_component_el_form_item, {
577
+ label: "配置模型",
578
+ title: "配置模型",
579
+ class: "amb-design-attr-item"
580
+ }, {
581
+ default: withCtx(() => [
582
+ createVNode(_sfc_main$3, {
583
+ configure: __props.configure,
584
+ clolumnTableFields: unref(clolumnTableFields),
585
+ modelTableFieldList: modelTableFieldList.value
586
+ }, null, 8, ["configure", "clolumnTableFields", "modelTableFieldList"])
587
+ ]),
588
+ _: 1
589
+ }),
590
+ createVNode(_component_el_form_item, {
591
+ label: "分组标题",
592
+ title: "分组标题类型",
593
+ class: "amb-design-attr-item"
594
+ }, {
595
+ default: withCtx(() => [
596
+ createVNode(_component_el_select, {
597
+ modelValue: __props.configure.props.dynamicColumnData.mergeFieldType,
598
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.dynamicColumnData.mergeFieldType = $event),
599
+ clearable: ""
600
+ }, {
601
+ default: withCtx(() => [
602
+ createVNode(_component_el_option, {
603
+ label: "不设置分组标题",
604
+ value: "no"
605
+ }),
606
+ createVNode(_component_el_option, {
607
+ label: "合并为一组",
608
+ value: "one"
609
+ }),
610
+ createVNode(_component_el_option, {
611
+ label: "分组字段",
612
+ value: "more"
613
+ })
614
+ ]),
615
+ _: 1
616
+ }, 8, ["modelValue"])
617
+ ]),
618
+ _: 1
619
+ }),
620
+ ((_a = __props.configure.props.dynamicColumnData) == null ? void 0 : _a.mergeFieldType) === "one" ? (openBlock(), createBlock(_component_el_form_item, {
621
+ key: 4,
622
+ label: "设置标题",
623
+ title: "设置标题",
624
+ class: "amb-design-attr-item"
625
+ }, {
626
+ default: withCtx(() => [
627
+ createVNode(_component_el_input, {
628
+ modelValue: __props.configure.props.dynamicColumnData.mergeName,
629
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.dynamicColumnData.mergeName = $event)
630
+ }, null, 8, ["modelValue"])
631
+ ]),
632
+ _: 1
633
+ })) : createCommentVNode("", true),
634
+ ((_b = __props.configure.props.dynamicColumnData) == null ? void 0 : _b.mergeFieldType) === "one" ? (openBlock(), createBlock(_component_el_form_item, {
635
+ key: 5,
636
+ label: "标题国际化key",
637
+ title: "国际化key",
638
+ class: "amb-design-attr-item"
639
+ }, {
640
+ default: withCtx(() => [
641
+ createVNode(_component_el_input, {
642
+ modelValue: __props.configure.props.dynamicColumnData.mergeNameI18nKey,
643
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.dynamicColumnData.mergeNameI18nKey = $event)
644
+ }, null, 8, ["modelValue"])
645
+ ]),
646
+ _: 1
647
+ })) : createCommentVNode("", true),
648
+ ((_c = __props.configure.props.dynamicColumnData) == null ? void 0 : _c.mergeFieldType) === "more" ? (openBlock(), createBlock(_component_el_form_item, {
649
+ key: 6,
650
+ label: "设置字段",
651
+ title: "设置字段",
652
+ class: "amb-design-attr-item"
653
+ }, {
654
+ default: withCtx(() => [
655
+ createVNode(_component_el_select, {
656
+ modelValue: __props.configure.props.dynamicColumnData.mergeField,
657
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.dynamicColumnData.mergeField = $event),
658
+ filterable: "",
659
+ clearable: "",
660
+ placeholder: "请选择"
661
+ }, {
662
+ default: withCtx(() => [
663
+ (openBlock(true), createElementBlock(Fragment, null, renderList(modelTableFieldList.value, (field, index) => {
664
+ return openBlock(), createBlock(_component_el_option, {
665
+ key: index,
666
+ label: field.alias + "(" + field.dbColumnName + ")",
667
+ value: field.dbColumnName
668
+ }, null, 8, ["label", "value"]);
669
+ }), 128))
670
+ ]),
671
+ _: 1
672
+ }, 8, ["modelValue"])
673
+ ]),
674
+ _: 1
675
+ })) : createCommentVNode("", true),
676
+ ((_d = __props.configure.props.dynamicColumnData) == null ? void 0 : _d.mergeFieldType) === "more" ? (openBlock(), createBlock(_component_el_form_item, {
677
+ key: 7,
678
+ label: "内容与标题对应字段",
679
+ title: "内容与标题对应字段",
680
+ class: "amb-design-attr-item"
681
+ }, {
682
+ default: withCtx(() => [
683
+ createVNode(_component_el_select, {
684
+ modelValue: __props.configure.props.dynamicColumnData.mergeTitleContentJoinField,
685
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => __props.configure.props.dynamicColumnData.mergeTitleContentJoinField = $event),
686
+ filterable: "",
687
+ clearable: "",
688
+ placeholder: "请选择"
689
+ }, {
690
+ default: withCtx(() => [
691
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(clolumnTableFields), (field, index) => {
692
+ return openBlock(), createBlock(_component_el_option, {
693
+ key: index,
694
+ label: field.alias + "(" + field.dbColumnName + ")",
695
+ value: field.dbColumnName
696
+ }, null, 8, ["label", "value"]);
697
+ }), 128))
698
+ ]),
699
+ _: 1
700
+ }, 8, ["modelValue"])
701
+ ]),
702
+ _: 1
703
+ })) : createCommentVNode("", true)
704
+ ])
705
+ ];
706
+ }),
707
+ _: 1
708
+ })) : createCommentVNode("", true),
709
+ createVNode(_sfc_main$4, {
710
+ ref_key: "selectTableDialog",
711
+ ref: selectTableDialog,
712
+ onSelectTable,
713
+ systemCode: __props.configure.systemCode,
714
+ systemVersion: __props.configure.systemVersion
715
+ }, null, 8, ["systemCode", "systemVersion"]),
716
+ configurationVisible.value ? (openBlock(), createBlock(_sfc_main$5, {
717
+ key: 1,
718
+ ref_key: "configurationRef",
719
+ ref: configurationRef,
720
+ configValue: groupTitleValueSet.value,
721
+ clolumnTableFields: unref(clolumnTableFields),
722
+ onAdd: configurationAdd,
723
+ onClose: configurationClose
724
+ }, null, 8, ["configValue", "clolumnTableFields"])) : createCommentVNode("", true)
725
+ ], 64);
726
+ };
727
+ }
728
+ });
729
+ export {
730
+ _sfc_main as default
731
+ };