super-page-designer 2.2.96 → 2.3.0-sit3
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 +1 -1
- package/dist/es/components/design/utils/page-design-util.d.ts +3 -1
- package/dist/es/components/design/utils/page-design-util.js +23 -22
- package/dist/es/components/design/utils/page-table-util.js +62 -54
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +20 -20
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +24 -24
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +76 -60
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +8 -8
- 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.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +24 -24
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +13 -10
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +13 -13
- package/dist/es/components/design/views/design/page-event/completion-data.d.ts +7 -0
- package/dist/es/components/design/views/design/page-event/completion-data.js +4 -0
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +2 -2
- package/dist/es/components/design/views/design/page-event/config.vue3.js +56 -50
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +16 -16
- package/dist/es/style.css +37 -37
- package/package.json +5 -5
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
|
@@ -3,41 +3,44 @@ import { getFormPropName as t } from "./page-helper-util.js";
|
|
|
3
3
|
import { getDesignEvents as r } from "./assemblys-config.js";
|
|
4
4
|
import { addI18nKey as a } from "./page-i18n-util.js";
|
|
5
5
|
import { findDesignItemByUuid as i } from "./common-util.js";
|
|
6
|
-
|
|
6
|
+
import { getComponentOptionConfigsBase as s } from "super-page-runtime";
|
|
7
|
+
function o(t2, r2, a2) {
|
|
7
8
|
let i2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
|
|
8
9
|
return i2 += "?systemCode=" + (t2 || ""), i2 += "&publishVersion=" + (r2 || ""), i2 += "&tableName=" + (a2 || ""), e.get(i2);
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
+
function n(t2, r2, a2) {
|
|
11
12
|
const i2 = { systemCode: t2, formVersion: r2, publishVersion: a2 };
|
|
12
13
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", i2);
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function p(e2, r2) {
|
|
15
16
|
const i2 = JSON.stringify(e2), s2 = JSON.parse(i2);
|
|
16
|
-
|
|
17
|
+
r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[s2.uuid] = function(e3, r3, i3) {
|
|
17
18
|
var _a;
|
|
18
|
-
const s3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid,
|
|
19
|
-
return
|
|
19
|
+
const s3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, o3 = { configure: i3, code: s3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria, queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, isSql: true, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: e3.props.base ? e3.props.base.isDragColumn : null, border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
|
|
20
|
+
return o3.items = function(e4, r4) {
|
|
20
21
|
var _a2;
|
|
21
22
|
const i4 = [];
|
|
22
23
|
return (_a2 = e4.items) == null ? void 0 : _a2.forEach((e5) => {
|
|
23
|
-
const s4 = { controlName:
|
|
24
|
-
let
|
|
25
|
-
r4.i18nKeys && a(e5.props.base.name, r4), i4.push(
|
|
24
|
+
const s4 = { controlName: c(e5) };
|
|
25
|
+
let o4 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: g(e5), valueSet: l(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: s4.controlName, controlConfig: b(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: f(e5), orgTreeSet: d(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: h(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
|
|
26
|
+
r4.i18nKeys && a(e5.props.base.name, r4), i4.push(o4);
|
|
26
27
|
}), i4;
|
|
27
|
-
}(e3, r3),
|
|
28
|
+
}(e3, r3), o3.groupHeaders = function(e4) {
|
|
28
29
|
const t2 = [];
|
|
29
30
|
e4.props.base.isEnableGroupHeader && e4.props.groupHeaders && e4.props.groupHeaders.forEach((e5) => {
|
|
30
31
|
const r4 = { titleText: e5.titleText, parentCode: e5.parentUuid, displayOrder: e5.displayOrder, prop: e5.prop, uuid: e5.uuid };
|
|
31
32
|
t2.push(r4);
|
|
32
33
|
});
|
|
33
34
|
return t2.sort((e5, t3) => e5.displayOrder - t3.displayOrder), t2;
|
|
34
|
-
}(e3),
|
|
35
|
-
}(s2, r2, i2), delete e2.btnList, delete e2.items, delete e2.modelFields
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
}(e3), o3;
|
|
36
|
+
}(s2, r2, i2), delete e2.btnList, delete e2.items, delete e2.modelFields;
|
|
37
|
+
const o2 = s2.runtime;
|
|
38
|
+
if (o2 && (o2.events || o2.common)) {
|
|
39
|
+
const { events: t2, common: r3 } = o2;
|
|
40
|
+
e2.runtime = { events: t2, common: r3 };
|
|
38
41
|
} else delete e2.runtime;
|
|
39
42
|
}
|
|
40
|
-
function
|
|
43
|
+
function l(e2, t2) {
|
|
41
44
|
const r2 = e2.props;
|
|
42
45
|
if ("inputNumber" === e2.name) return null;
|
|
43
46
|
if (r2.dataOrigin && r2.dataOrigin.optionValueSetType && "none" !== r2.dataOrigin.optionValueSetType) {
|
|
@@ -51,25 +54,30 @@ function p(e2, t2) {
|
|
|
51
54
|
if ("service" === e3) return `${e3}:${r2.dataOrigin.serveName}`;
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
|
-
function
|
|
55
|
-
const
|
|
57
|
+
function u(e2, t2, r2) {
|
|
58
|
+
const a2 = e2.props;
|
|
56
59
|
if ("inputNumber" === e2.name) {
|
|
57
|
-
const e3 = { step:
|
|
58
|
-
return e3.min =
|
|
60
|
+
const e3 = { step: a2.base.step, precision: a2.base.precision };
|
|
61
|
+
return e3.min = a2.base.min || 0 === a2.base.min ? a2.base.min : null, e3.max = a2.base.max || 0 === a2.base.max ? a2.base.max : null, JSON.stringify(e3);
|
|
59
62
|
}
|
|
60
|
-
if ("switch" === e2.name) return JSON.stringify({ activeText:
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}), JSON.stringify({ dynamicDataSourceCode: t2.dataOrigin.dynamicDataSourceCode, valueSetOptions: e3 });
|
|
63
|
+
if ("switch" === e2.name) return JSON.stringify({ activeText: a2.base.activeText, activeValue: a2.base.activeValue, inactiveText: a2.base.inactiveText, inactiveValue: a2.base.inactiveValue, offColor: a2.base.offColor, onColor: a2.base.onColor });
|
|
64
|
+
if (a2.dataOrigin && a2.dataOrigin.optionValueSetType) {
|
|
65
|
+
const i2 = a2.dataOrigin.optionValueSetType, o2 = a2.dataOrigin;
|
|
66
|
+
if ("dynamicData" === i2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: o2.dynamicDataSourceCode, filterType: o2.filterType, valueSetOptions: m(o2), valueLabelSwitch: !!o2.valueLabelSwitch });
|
|
67
|
+
{
|
|
68
|
+
const a3 = s(e2, t2, r2);
|
|
69
|
+
return a3 ? (a3.valueSetOptions = m(o2), JSON.stringify(a3)) : null;
|
|
68
70
|
}
|
|
69
|
-
return null;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function m(e2) {
|
|
74
|
+
const t2 = [];
|
|
75
|
+
return e2.autoSets.forEach((e3) => {
|
|
76
|
+
const r2 = y(e3.target);
|
|
77
|
+
t2.push({ columnName: y(e3.source), valueField: r2, valueColumn: { name: r2, dbColumnName: r2.toUpperCase() } });
|
|
78
|
+
}), t2;
|
|
79
|
+
}
|
|
80
|
+
function c(e2) {
|
|
73
81
|
if (!e2.name) return null;
|
|
74
82
|
switch (e2.name) {
|
|
75
83
|
case "input-text":
|
|
@@ -136,25 +144,25 @@ function u(e2) {
|
|
|
136
144
|
return "custom:" + e2.props.base.customComponent;
|
|
137
145
|
}
|
|
138
146
|
}
|
|
139
|
-
function
|
|
147
|
+
function d(e2) {
|
|
140
148
|
if ("dept-tree" === e2.name) {
|
|
141
149
|
const t2 = [];
|
|
142
150
|
return e2.props.base.otherFieldSets && e2.props.base.otherFieldSets.length > 0 && e2.props.base.otherFieldSets.forEach((e3) => {
|
|
143
|
-
t2.push({ type: e3.source, model:
|
|
151
|
+
t2.push({ type: e3.source, model: y(e3.target) });
|
|
144
152
|
}), JSON.stringify({ orgTreeSetArr: t2 });
|
|
145
153
|
}
|
|
146
154
|
return null;
|
|
147
155
|
}
|
|
148
|
-
function
|
|
156
|
+
function f(e2) {
|
|
149
157
|
if ("file-upload" === e2.name) {
|
|
150
|
-
const t2 =
|
|
158
|
+
const t2 = y(e2.props.base.prop), r2 = y(e2.props.format ? e2.props.format.fileUuid : null);
|
|
151
159
|
let a2 = {};
|
|
152
160
|
return t2 && (a2.showNameData = { name: t2, dbName: t2.toUpperCase() }), r2 && (a2.serverNameData = { name: r2, dbName: r2.toUpperCase() }), e2.props.uploadConfig && (e2.props.uploadConfig.multiple ? a2.multiple = true : a2.multiple = false, e2.props.uploadConfig.accept ? a2.accept = e2.props.uploadConfig.accept : a2.accept = null, e2.props.uploadConfig.limitFileSize ? a2.limitFileSize = e2.props.uploadConfig.limitFileSize : a2.limitFileSize = null, e2.props.uploadConfig.openCameraOrChoosePhoto ? a2.openCameraOrChoosePhoto = e2.props.uploadConfig.openCameraOrChoosePhoto : a2.openCameraOrChoosePhoto = null), JSON.stringify(a2);
|
|
153
161
|
}
|
|
154
162
|
return null;
|
|
155
163
|
}
|
|
156
|
-
function
|
|
157
|
-
var _a, _b, _c, _d;
|
|
164
|
+
function b(e2) {
|
|
165
|
+
var _a, _b, _c, _d, _e, _f;
|
|
158
166
|
let t2 = {};
|
|
159
167
|
if ("select" === e2.name) {
|
|
160
168
|
const r2 = e2.props.base, a2 = r2.allowCreate, i2 = r2.clearable;
|
|
@@ -164,9 +172,9 @@ function d(e2) {
|
|
|
164
172
|
const r2 = !!((_a = e2.props.scan) == null ? void 0 : _a.enable), a2 = (_b = e2.props.scan) == null ? void 0 : _b.ruleList;
|
|
165
173
|
t2 = { scanEnable: r2, scanRuleList: a2 };
|
|
166
174
|
} else "custom" === e2.name ? t2.parameter = e2.props.parameter : "datePicker" === e2.name && (t2 = { format: e2.props.base.format, valueFormat: e2.props.base.valueFormat });
|
|
167
|
-
return ((_c = e2.style) == null ? void 0 : _c.cellStyle) && (t2.cellStyle = e2.style.cellStyle), ((_d = e2.style) == null ? void 0 : _d.titleStyle) && (t2
|
|
175
|
+
return ((_c = e2.style) == null ? void 0 : _c.cellStyle) && (t2.cellStyle = e2.style.cellStyle), ((_d = e2.style) == null ? void 0 : _d.titleStyle) && (t2.titleStyle = e2.style.titleStyle), ((_f = (_e = e2.props) == null ? void 0 : _e.base) == null ? void 0 : _f.editConditions) && e2.props.base.editConditions.length > 0 && (t2.editConditions = e2.props.base.editConditions), t2 ? JSON.stringify(t2) : null;
|
|
168
176
|
}
|
|
169
|
-
function
|
|
177
|
+
function g(e2) {
|
|
170
178
|
var _a, _b, _c;
|
|
171
179
|
if (e2.props.format) {
|
|
172
180
|
if ("hyperlinks" === e2.props.format.type && ((_a = e2.props.linkPage) == null ? void 0 : _a.length) > 0) {
|
|
@@ -189,23 +197,23 @@ function f(e2) {
|
|
|
189
197
|
}
|
|
190
198
|
return null;
|
|
191
199
|
}
|
|
192
|
-
function
|
|
200
|
+
function y(e2) {
|
|
193
201
|
if (e2) {
|
|
194
202
|
const t2 = e2.match(/\${(.*?)\.(.*?)}/);
|
|
195
203
|
if (t2) return t2[2];
|
|
196
204
|
}
|
|
197
205
|
return e2;
|
|
198
206
|
}
|
|
199
|
-
function
|
|
207
|
+
function S(e2, t2) {
|
|
200
208
|
let r2 = null;
|
|
201
209
|
return e2.events && (e2.events.forEach((e3) => {
|
|
202
210
|
e3.jsContent && e3.jsContent.trim() && (r2 || (r2 = {}), r2[e3.name] = e3.componentUuid + "_" + e3.name);
|
|
203
211
|
}), r2) ? JSON.stringify(r2) : r2;
|
|
204
212
|
}
|
|
205
|
-
function
|
|
213
|
+
function C(e2) {
|
|
206
214
|
return e2.props.base.prop && "dynamicColumnSelect" === e2.props.base.prop ? JSON.stringify(e2.props.dynamicColumnData) : null;
|
|
207
215
|
}
|
|
208
|
-
function
|
|
216
|
+
function h(e2) {
|
|
209
217
|
if (Array.isArray(e2) && e2.length > 0) {
|
|
210
218
|
const t2 = [];
|
|
211
219
|
return e2.forEach((e3) => {
|
|
@@ -214,38 +222,38 @@ function S(e2) {
|
|
|
214
222
|
}
|
|
215
223
|
return Array.isArray(e2) && 0 === e2.length ? null : e2;
|
|
216
224
|
}
|
|
217
|
-
function
|
|
225
|
+
function O(e2, t2) {
|
|
218
226
|
let a2 = { uuid: e2.uuid, base: e2.props.base, dataOrigin: e2.props.dataOrigin, dynamicColumnData: e2.props.dynamicColumnData, editLine: e2.props.editLine, format: e2.props.format, verification: e2.props.verification, definition: e2.props.definition, size: e2.props.size };
|
|
219
227
|
e2.props = {}, e2.uuid = a2.uuid, e2.props.base = a2.base, e2.props.dataOrigin = a2.dataOrigin, e2.props.dynamicColumnData = a2.dynamicColumnData, e2.props.editLine = a2.editLine, e2.props.format = a2.format, e2.props.verification = a2.verification, e2.props.definition = a2.definition, e2.props.size = a2.size, e2.events = r(t2), e2.name = t2;
|
|
220
228
|
}
|
|
221
|
-
function
|
|
229
|
+
function T(e2, t2) {
|
|
222
230
|
return e2 = {}, t2.forEach((t3) => {
|
|
223
231
|
e2[t3.dbColumnName] = t3;
|
|
224
232
|
}), e2;
|
|
225
233
|
}
|
|
226
|
-
function
|
|
234
|
+
function N(e2, t2) {
|
|
227
235
|
let r2, a2 = e2.tableName;
|
|
228
236
|
return a2 || (e2.tableRuntimes && t2 && e2.tableRuntimes[t2] && e2.pageType && "list" === e2.pageType && (r2 = JSON.parse(e2.tableRuntimes[t2].configure)), r2 && r2.props && r2.props.dataOrigin ? r2.props.dataOrigin.tableName : null);
|
|
229
237
|
}
|
|
230
|
-
function
|
|
238
|
+
function v(e2) {
|
|
231
239
|
let t2 = [];
|
|
232
240
|
return e2 && e2.forEach((e3) => {
|
|
233
241
|
t2.push({ value: e3.dbColumnName, label: e3.alias, alias: e3.alias, dataType: e3.dataType });
|
|
234
242
|
}), t2;
|
|
235
243
|
}
|
|
236
|
-
function
|
|
244
|
+
function D(e2, t2, r2) {
|
|
237
245
|
var _a;
|
|
238
246
|
const a2 = e2 ? e2.pageType : null;
|
|
239
247
|
let s2, o2;
|
|
240
248
|
return r2 ? s2 = r2 : (t2 == null ? void 0 : t2.props.base.tableUuid) ? (o2 = t2.props.base.tableUuid, s2 = i(e2, o2)) : a2 && "list" === a2 && ((_a = e2 == null ? void 0 : e2.tableUuids) == null ? void 0 : _a.length) > 0 ? (o2 = e2 == null ? void 0 : e2.tableUuids[0], s2 = i(e2, o2)) : (e2 == null ? void 0 : e2.currentTableConfig) && (s2 = e2.currentTableConfig), s2;
|
|
241
249
|
}
|
|
242
250
|
export {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
T as changeFeieldToMap,
|
|
252
|
+
v as getModelOptionsByFields,
|
|
253
|
+
D as getTableConfigByTableUuid,
|
|
254
|
+
N as getTableNameByTableUuid,
|
|
255
|
+
n as querySublist,
|
|
256
|
+
o as queryTableFields,
|
|
257
|
+
p as setTableRuntimesFromConfigure,
|
|
258
|
+
O as tableResetConfigIndo
|
|
251
259
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as
|
|
2
|
-
import { formatConditionList as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as n, createVNode as u, createCommentVNode as i, unref as d, createTextVNode as r, createElementBlock as p, Fragment as s, renderList as f, createElementVNode as m } from "vue";
|
|
2
|
+
import { formatConditionList as c } from "../../../../utils/data-table-util.js";
|
|
3
3
|
import { CirclePlus as v, Delete as g } from "@element-plus/icons-vue";
|
|
4
4
|
import b from "./combination.vue.js";
|
|
5
5
|
import C from "../../common/common-variable-bind.vue.js";
|
|
@@ -8,17 +8,17 @@ const w = { class: "dialog-footer" }, F = e({ __name: "set-dialog", props: { con
|
|
|
8
8
|
} }, pageDesign: { type: Object, default: () => {
|
|
9
9
|
} }, tableConfigure: { type: Object, default: () => {
|
|
10
10
|
} } }, emits: ["close", "save"], setup(e2, { emit: F2 }) {
|
|
11
|
-
const _ = e2, V = F2, D = l({}),
|
|
11
|
+
const _ = e2, V = F2, D = l({}), k = l(false), M = l(""), j = l(null), h = l(null), L = l(null);
|
|
12
12
|
var N;
|
|
13
13
|
(N = _.tableConfigure) && (L.value = y(N.modelFields));
|
|
14
14
|
const U = l([]);
|
|
15
15
|
function O() {
|
|
16
|
-
|
|
16
|
+
k.value = false;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
U.value[
|
|
18
|
+
function x(e3) {
|
|
19
|
+
U.value[M.value].conditionList = e3;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function T() {
|
|
22
22
|
V("save", U.value), V("close");
|
|
23
23
|
}
|
|
24
24
|
function z(e3) {
|
|
@@ -27,24 +27,24 @@ const w = { class: "dialog-footer" }, F = e({ __name: "set-dialog", props: { con
|
|
|
27
27
|
function R() {
|
|
28
28
|
U.value = U.value.filter((e3) => e3 !== D.value);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function E(e3) {
|
|
31
31
|
D.value = e3;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function I() {
|
|
34
34
|
U.value.push({});
|
|
35
35
|
}
|
|
36
36
|
return _.configure.props.setValueList && (U.value = _.configure.props.setValueList), (l2, y2) => {
|
|
37
|
-
const F3 =
|
|
38
|
-
return t(),
|
|
39
|
-
return
|
|
40
|
-
var
|
|
41
|
-
} }, null, 8, ["model-value", "onFocus", "onClick"])]), _: 1 }), u(
|
|
42
|
-
let
|
|
43
|
-
_.pageDesign.modelFieldsMap ?
|
|
44
|
-
}(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null,
|
|
45
|
-
return
|
|
46
|
-
var
|
|
47
|
-
} }, null, 8, ["onFocus", "modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]),
|
|
37
|
+
const F3 = a("el-button"), D2 = a("el-row"), N2 = a("el-option"), S = a("el-select"), $ = a("el-table-column"), q = a("el-input"), A = a("el-table"), B = a("el-dialog");
|
|
38
|
+
return t(), o(B, { "model-value": "", title: "自动设值", "append-to-body": "", onClose: y2[1] || (y2[1] = (e3) => V("close")) }, { footer: n(() => [m("div", w, [u(F3, { type: "default", onClick: y2[0] || (y2[0] = (e3) => V("close")) }, { default: n(() => y2[4] || (y2[4] = [r("取消")])), _: 1 }), u(F3, { type: "primary", onClick: T }, { default: n(() => y2[5] || (y2[5] = [r(" 确定 ")])), _: 1 })])]), default: n(() => [u(D2, { style: { "padding-bottom": "8px" } }, { default: n(() => [u(F3, { icon: d(v), plain: "", type: "primary", onClick: I }, { default: n(() => y2[2] || (y2[2] = [r(" 添加 ")])), _: 1 }, 8, ["icon"]), u(F3, { icon: d(g), plain: "", type: "primary", onClick: R }, { default: n(() => y2[3] || (y2[3] = [r(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), u(A, { ref_key: "tableRef", ref: h, "highlight-current-row": "", data: U.value, style: { width: "100%" }, onCurrentChange: E }, { default: n(() => [u($, { prop: "date", label: "填写方式", align: "center" }, { default: n((e3) => [u(S, { modelValue: e3.row.fillType, "onUpdate:modelValue": (l3) => e3.row.fillType = l3, clearable: "", size: "default", onFocus: (l3) => z(e3.row) }, { default: n(() => [u(N2, { label: "覆盖", value: "cover" }), u(N2, { label: "追加", value: "append" }), u(N2, { label: "插入最前面", value: "prepend" }), u(N2, { label: "有值跳过", value: "skipIfExists" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), u($, { prop: "date", label: "前置条件", align: "center" }, { default: n((l3) => [u(q, { "model-value": d(c)(l3.row.conditionList, e2.pageDesign.modelFields, e2.pageDesign.modelFieldsMap), size: "default", onFocus: (e3) => z(l3.row), onClick: (e3) => {
|
|
39
|
+
return a2 = l3.row, o2 = l3.$index, j.value = a2.conditionList, M.value = o2, void (k.value = true);
|
|
40
|
+
var a2, o2;
|
|
41
|
+
} }, null, 8, ["model-value", "onFocus", "onClick"])]), _: 1 }), u($, { label: "执行方法时设置", align: "center" }, { default: n(() => [u($, { prop: "name", label: "字段", align: "center" }, { default: n((l3) => [u(S, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", size: "default", onFocus: (e3) => z(l3.row), onChange: (e3) => function(e4, l4) {
|
|
42
|
+
let a2 = null;
|
|
43
|
+
_.pageDesign.modelFieldsMap ? a2 = _.pageDesign.modelFieldsMap[l4] : _.tableConfigure.modelFieldsMap && (a2 = _.tableConfigure.modelFieldsMap[l4]), e4.field = a2.name, e4.dataType = a2.dataType;
|
|
44
|
+
}(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null, f(e2.pageDesign.modelFields, (e3) => (t(), o(N2, { key: e3.id, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }), u($, { prop: "address", label: "值", align: "center" }, { default: n((e3) => [u(C, { onFocus: (l3) => z(e3.row), modelValue: e3.row.autoValue, objModelOptions: L.value, "onUpdate:modelValue": (l3) => {
|
|
45
|
+
return a2 = l3, void (e3.row.autoValue = a2);
|
|
46
|
+
var a2;
|
|
47
|
+
} }, null, 8, ["onFocus", "modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]), k.value ? (t(), o(b, { key: 0, list: j.value, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: e2.tableConfigure, onSave: x, onClose: O }, null, 8, ["list", "fieldNameList", "fieldMap", "tableConfigure"])) : i("", true)]), _: 1 });
|
|
48
48
|
};
|
|
49
49
|
} });
|
|
50
50
|
export {
|
package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as o, openBlock as t, Fragment as r, createElementVNode as u, createVNode as d, withDirectives as n, withCtx as p, createTextVNode as i, vShow as s, unref as c } from "vue";
|
|
2
2
|
import { Plus as b, Delete as f } from "@element-plus/icons";
|
|
3
3
|
import m from "./common-variable-bind.vue.js";
|
|
4
4
|
import { getUuidv4 as w } from "../../../utils/common-util.js";
|
|
5
|
-
import { usePageContextStore as
|
|
6
|
-
import { getModelOptionsByFields as
|
|
5
|
+
import { usePageContextStore as g } from "../../../../../stores/page-store.js";
|
|
6
|
+
import { getModelOptionsByFields as y } from "../../../utils/page-table-util.js";
|
|
7
7
|
const v = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, T = e({ __name: "common-advanced-basic-showcondition", props: { configure: { type: Object, required: true }, title: { type: String, default: "显示条件" }, type: { type: String, required: false, default: "showConditions" }, tableConfigure: { type: Object, default: () => {
|
|
8
8
|
} } }, setup(e2) {
|
|
9
|
-
const T2 =
|
|
9
|
+
const T2 = g(), V = e2;
|
|
10
10
|
V.configure.props || (V.configure.props = { base: {} });
|
|
11
11
|
let h = null;
|
|
12
12
|
V.configure.props.base || (V.configure.props.base = {}), V.configure.props.base[V.type] || (V.configure.props.base[V.type] = []), h = V.configure.props.base[V.type];
|
|
13
|
-
const _ = l(null);
|
|
14
|
-
var
|
|
15
|
-
(
|
|
16
|
-
const N = l(300),
|
|
17
|
-
function
|
|
13
|
+
const _ = l(null), k = T2.pageContext;
|
|
14
|
+
var C;
|
|
15
|
+
(C = V.tableConfigure ? V.tableConfigure : k.currentTableConfig) && (_.value = y(C.modelFields));
|
|
16
|
+
const N = l(300), U = l(false);
|
|
17
|
+
function j() {
|
|
18
18
|
let e3 = window.innerHeight - 140 - 176;
|
|
19
|
-
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), N.value = e3,
|
|
19
|
+
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), N.value = e3, U.value = true;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function x(e3) {
|
|
22
22
|
let l2 = -1;
|
|
23
23
|
const a2 = h.length;
|
|
24
|
-
for (let
|
|
25
|
-
l2 =
|
|
24
|
+
for (let o2 = 0; o2 < a2; o2++) if (h[o2].uuid == e3.uuid) {
|
|
25
|
+
l2 = o2;
|
|
26
26
|
break;
|
|
27
27
|
}
|
|
28
28
|
return l2;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function O(e3) {
|
|
31
31
|
let l2 = -1;
|
|
32
|
-
e3 && (l2 =
|
|
32
|
+
e3 && (l2 = x(e3));
|
|
33
33
|
const a2 = { uuid: w(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
|
|
34
34
|
h.splice(l2 + 1, 0, a2);
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ const v = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
37
37
|
function L(e3) {
|
|
38
38
|
B.value = e3;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function S(e3, l2, a2) {
|
|
41
41
|
if ("propValue" == a2) l2.propValue = e3;
|
|
42
42
|
else {
|
|
43
43
|
l2.propName = e3;
|
|
@@ -55,21 +55,21 @@ const v = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
return (l2, w2) => {
|
|
58
|
-
const
|
|
59
|
-
return
|
|
60
|
-
let l4 =
|
|
58
|
+
const g2 = a("el-button"), y2 = a("el-text"), T3 = a("el-row"), V2 = a("Top"), k2 = a("el-icon"), C2 = a("Bottom"), N2 = a("el-table-column"), B2 = a("el-option"), I = a("el-select"), E = a("el-table"), M = a("el-dialog");
|
|
59
|
+
return t(), o(r, null, [u("div", null, [d(g2, { type: "primary", onClick: j }, { default: p(() => w2[1] || (w2[1] = [i("编辑")])), _: 1 }), n(d(y2, { type: "success" }, { default: p(() => w2[2] || (w2[2] = [i(" 已设置条件.")])), _: 1 }, 512), [[s, c(h) && c(h).length > 0]])]), d(M, { "append-to-body": "", modelValue: U.value, "onUpdate:modelValue": w2[0] || (w2[0] = (e3) => U.value = e3), title: e2.title, width: "900" }, { default: p(() => [d(T3, { style: { "padding-bottom": "8px" } }, { default: p(() => [d(g2, { icon: c(b), plain: "", type: "primary", onClick: O }, { default: p(() => w2[3] || (w2[3] = [i(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), d(E, { border: "", "highlight-current-row": "", onCurrentChange: L, "current-row-key": "uuid", "row-key": "uuid", data: c(h), style: { width: "100%" } }, { default: p(() => [d(N2, { label: "", width: "50" }, { default: p((e3) => [u("div", v, [d(k2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
60
|
+
let l4 = x(e4);
|
|
61
61
|
if (l4 < 1) return;
|
|
62
62
|
const a2 = h;
|
|
63
63
|
[a2[l4 - 1], a2[l4]] = [a2[l4], a2[l4 - 1]];
|
|
64
|
-
}(e3.row) }, { default:
|
|
65
|
-
let l4 =
|
|
64
|
+
}(e3.row) }, { default: p(() => [d(V2)]), _: 2 }, 1032, ["onClick"]), d(k2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
65
|
+
let l4 = x(e4);
|
|
66
66
|
if (-1 == l4 || h.length == l4 + 1) return;
|
|
67
67
|
const a2 = h;
|
|
68
68
|
[a2[l4], a2[l4 + 1]] = [a2[l4 + 1], a2[l4]];
|
|
69
|
-
}(e3.row) }, { default:
|
|
70
|
-
let l4 =
|
|
69
|
+
}(e3.row) }, { default: p(() => [d(C2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), d(N2, { prop: "leftBracket", label: "(", width: "80" }, { default: p((e3) => [d(I, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [d(B2, { label: "", value: "" }), d(B2, { label: "(", value: "(" }), d(B2, { label: "((", value: "((" }), d(B2, { label: "(((", value: "(((" }), d(B2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(N2, { prop: "propName", label: "字段名(*)", width: "150" }, { default: p((e3) => [d(m, { modelValue: e3.row.propName, objModelOptions: _.value, paramTypes: ["data", "task", "page", "request", "row"], "onUpdate:modelValue": (l3) => S(l3, e3.row, "propName") }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), d(N2, { prop: "operator", label: "操作符", width: "90" }, { default: p((e3) => [d(I, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(d(B2, { label: "大于", value: "GT" }, null, 512), [[s, "int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType]]), n(d(B2, { label: "小于", value: "LT" }, null, 512), [[s, "int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType]]), n(d(B2, { label: "晚于", value: "GT" }, null, 512), [[s, "date" == e3.row.dataType || "datetime" == e3.row.dataType]]), n(d(B2, { label: "早于", value: "LT" }, null, 512), [[s, "date" == e3.row.dataType || "datetime" == e3.row.dataType]]), d(B2, { label: "等于", value: "EQ" }), n(d(B2, { label: "不大于", value: "LET" }, null, 512), [[s, "int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType]]), n(d(B2, { label: "不小于", value: "GET" }, null, 512), [[s, "int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType]]), n(d(B2, { label: "不晚于", value: "LET" }, null, 512), [[s, "date" == e3.row.dataType || "datetime" == e3.row.dataType]]), n(d(B2, { label: "不早于", value: "GET" }, null, 512), [[s, "date" == e3.row.dataType || "datetime" == e3.row.dataType]]), d(B2, { label: "不等于", value: "NET" }), d(B2, { label: "包含", value: "CONTAIN" }), d(B2, { label: "不包含", value: "NOT_CONTAIN" }), d(B2, { label: "等于Null", value: "IS_NULL" }), d(B2, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(N2, { prop: "propValue", label: "值(*)", width: "150" }, { default: p((e3) => [d(m, { modelValue: e3.row.propValue, objModelOptions: _.value, "onUpdate:modelValue": (l3) => S(l3, e3.row, "propValue") }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), d(N2, { prop: "rightBracket", label: ")", width: "80" }, { default: p((e3) => [d(I, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: p(() => [d(B2, { label: "", value: "" }), d(B2, { label: ")", value: ")" }), d(B2, { label: "))", value: "))" }), d(B2, { label: ")))", value: ")))" }), d(B2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(N2, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: p((e3) => [d(I, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [d(B2, { label: "或者", value: "or" }), d(B2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(N2, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: p((e3) => [d(I, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [d(B2, { label: "Null", value: "null" }), d(B2, { label: "忽略(1=1)", value: "ignore" }), d(B2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(N2, { label: "操作", width: "60" }, { default: p((e3) => [d(k2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (l3) => O(e3.row) }, { default: p(() => [d(c(b))]), _: 2 }, 1032, ["onClick"]), d(k2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
70
|
+
let l4 = x(e4);
|
|
71
71
|
l4 > -1 && h.splice(l4, 1);
|
|
72
|
-
}(e3.row) }, { default:
|
|
72
|
+
}(e3.row) }, { default: p(() => [d(c(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
73
73
|
};
|
|
74
74
|
} });
|
|
75
75
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./common-icon-bind.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = e(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = e(o, [["__scopeId", "data-v-70020263"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|