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