super-page-runtime 2.2.91 → 2.2.92-sit10
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/runtime/utils/charts/chart-util.js +26 -32
- package/dist/es/components/runtime/utils/common-util.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +111 -110
- package/dist/es/components/runtime/utils/events/print-label.js +53 -40
- package/dist/es/components/runtime/utils/events/standard-event.js +135 -123
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +9 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +91 -84
- package/dist/es/components/runtime/utils/page-init-util.js +23 -23
- package/dist/es/components/runtime/utils/page-permission-util.js +6 -6
- package/dist/es/components/runtime/utils/table-utils.js +5 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +21 -21
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +53 -54
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +198 -192
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +94 -90
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +49 -41
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +24 -24
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +51 -55
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +2 -1
- package/dist/es/style.css +3 -3
- package/package.json +2 -2
|
@@ -4,31 +4,34 @@ import { executeExpression } from "agilebuilder-ui/src/utils/calculator/calculat
|
|
|
4
4
|
import { getComponentRef } from "./global-refs.js";
|
|
5
5
|
import { watch } from "vue";
|
|
6
6
|
import { deepCopy, getBaseUrl } from "./common-util.js";
|
|
7
|
-
function getComponentOptionConfigs(t, e) {
|
|
7
|
+
function getComponentOptionConfigs(t, e, o, n) {
|
|
8
|
+
return getComponentOptionConfigsBase(t, (e == null ? void 0 : e.systemCode) ? e.systemCode : o, (e == null ? void 0 : e.systemVersion) ? e == null ? void 0 : e.systemVersion : n);
|
|
9
|
+
}
|
|
10
|
+
function getComponentOptionConfigsBase(t, e, o) {
|
|
8
11
|
if (!t.props || !t.props.dataOrigin) return;
|
|
9
12
|
if (t.name && "table" === t.name) return;
|
|
10
|
-
const
|
|
11
|
-
if ("optionGroup" ==
|
|
12
|
-
else if ("dynamicData" ==
|
|
13
|
-
else if ("dataTable" ==
|
|
14
|
-
|
|
15
|
-
const t2 = getTableQueryInfo(
|
|
16
|
-
Object.assign(
|
|
17
|
-
} else if ("service" ==
|
|
18
|
-
|
|
19
|
-
const t2 = getServiceQueryInfo(
|
|
20
|
-
Object.assign(
|
|
13
|
+
const n = t.props.dataOrigin, a = { uuid: t.uuid };
|
|
14
|
+
if ("optionGroup" == n.optionValueSetType) a.type = "optionGroup", a.props = { code: n.optionGroup };
|
|
15
|
+
else if ("dynamicData" == n.optionValueSetType) a.type = "dynamicData", a.filterType = n.filterType, a.props = { code: n.dynamicDataSourceCode };
|
|
16
|
+
else if ("dataTable" == n.optionValueSetType) {
|
|
17
|
+
a.filterType = n.filterType;
|
|
18
|
+
const t2 = getTableQueryInfo(n, e, o);
|
|
19
|
+
Object.assign(a, t2);
|
|
20
|
+
} else if ("service" == n.optionValueSetType) {
|
|
21
|
+
a.filterType = n.filterType;
|
|
22
|
+
const t2 = getServiceQueryInfo(n, e, o);
|
|
23
|
+
Object.assign(a, t2);
|
|
21
24
|
}
|
|
22
|
-
return
|
|
25
|
+
return a.type ? a : void 0;
|
|
23
26
|
}
|
|
24
|
-
function getTableQueryInfo(t, e) {
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
+
function getTableQueryInfo(t, e, o) {
|
|
28
|
+
const n = { type: "dataTable" };
|
|
29
|
+
if (n.valueLabelSwitch = !!t.valueLabelSwitch, n.props = { tableName: t.tableName, systemCode: t.tableSysCode ? t.tableSysCode : e, systemVersion: t.tableSysVersion ? t.tableSysVersion : o }, t.sortFields) {
|
|
27
30
|
const e2 = [];
|
|
28
31
|
for (const o2 of t.sortFields) o2.name && e2.push({ prop: o2.name, order: o2.type ? o2.type : "asc" });
|
|
29
|
-
|
|
32
|
+
n.props.sorts = e2;
|
|
30
33
|
}
|
|
31
|
-
const
|
|
34
|
+
const a = [];
|
|
32
35
|
if (t.filterList) {
|
|
33
36
|
const e2 = [];
|
|
34
37
|
for (const o2 of t.filterList) {
|
|
@@ -36,41 +39,41 @@ function getTableQueryInfo(t, e) {
|
|
|
36
39
|
o2.propDbName || (o2.propDbName = o2.propName);
|
|
37
40
|
const t2 = {};
|
|
38
41
|
Object.assign(t2, o2);
|
|
39
|
-
const
|
|
40
|
-
for (const t3 of
|
|
42
|
+
const n2 = getParamNames(o2.propValue);
|
|
43
|
+
for (const t3 of n2) t3 && (t3.startsWith("${data.") || t3.startsWith("${task.") || t3.startsWith("${page.")) && (a.includes(t3) || a.push(t3));
|
|
41
44
|
o2.propValue, e2.push(t2);
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
n.props.searchForm = e2;
|
|
44
47
|
}
|
|
45
|
-
|
|
48
|
+
n.props.monitorFields = a;
|
|
46
49
|
const r = [];
|
|
47
|
-
if (t.tableValueField && (
|
|
48
|
-
return
|
|
50
|
+
if (t.tableValueField && (n.props.valueField = t.tableValueField), t.tableLableField && -1 == r.indexOf(t.tableLableField) && (n.props.lableField = t.tableLableField), t.autoSets) for (const e2 of t.autoSets) e2.source && -1 == r.indexOf(e2.source) && r.push(e2.source);
|
|
51
|
+
return n.props.queryFields = r, n.props.pageSize = t.displayQuantity, n;
|
|
49
52
|
}
|
|
50
|
-
function getServiceQueryInfo(t, e) {
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
+
function getServiceQueryInfo(t, e, o) {
|
|
54
|
+
const n = { type: "service" };
|
|
55
|
+
if (n.valueLabelSwitch = !!t.valueLabelSwitch, n.props = { serivceCode: t.serviceCode, systemCode: t.tableSysCode ? t.tableSysCode : e, systemVersion: t.tableSysVersion ? t.tableSysVersion : o }, t.serviceInputs) {
|
|
53
56
|
const e2 = [];
|
|
54
57
|
for (const o2 of t.serviceInputs) {
|
|
55
58
|
if (!o2.name || o2.value) continue;
|
|
56
59
|
const t2 = {};
|
|
57
60
|
Object.assign(t2, o2), e2.push(t2);
|
|
58
61
|
}
|
|
59
|
-
|
|
62
|
+
n.props.inputs = e2;
|
|
60
63
|
}
|
|
61
|
-
return
|
|
64
|
+
return n.props.dataSetField = t.serviceDataSetField, n.props.valueField = t.serviceValueField, n.props.labelField = t.serviceLabelField, n;
|
|
62
65
|
}
|
|
63
66
|
function updateChartDatasources(t, e, o, n) {
|
|
64
|
-
return new Promise((
|
|
65
|
-
if (!e || 0 == e.length) return void
|
|
67
|
+
return new Promise((a, r) => {
|
|
68
|
+
if (!e || 0 == e.length) return void r(new Error("无需查询的统计图配置!"));
|
|
66
69
|
const s = deepCopy(e);
|
|
67
70
|
s.forEach((e2) => {
|
|
68
71
|
const o2 = e2.services;
|
|
69
72
|
if (o2 && o2.length > 0) {
|
|
70
73
|
const e3 = o2[0].serviceInputs;
|
|
71
74
|
e3 && (o2[0].serviceInParams = {}, e3.forEach((e4) => {
|
|
72
|
-
const n2 = e4.name,
|
|
73
|
-
o2[0].serviceInParams[n2] = getValueFromVariable(t.entity,
|
|
75
|
+
const n2 = e4.name, a2 = e4.value;
|
|
76
|
+
o2[0].serviceInParams[n2] = getValueFromVariable(t.entity, a2);
|
|
74
77
|
}), delete o2[0].serviceInputs);
|
|
75
78
|
}
|
|
76
79
|
});
|
|
@@ -84,19 +87,19 @@ function updateChartDatasources(t, e, o, n) {
|
|
|
84
87
|
t.chartDataSourceMap || (t.chartDataSourceMap = {});
|
|
85
88
|
for (const o2 in e2) {
|
|
86
89
|
t.chartDataSourceMap[o2] = e2[o2];
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
const
|
|
90
|
-
if ((!n ||
|
|
91
|
-
const n2 = e2[o2] && e2[o2].length > 0 ? e2[o2][0] : {},
|
|
90
|
+
const a2 = getComponentRef(t, o2);
|
|
91
|
+
if (a2) {
|
|
92
|
+
const r2 = a2.getConfigure();
|
|
93
|
+
if ((!n || r2 && (void 0 === r2.initializationQuery || r2.initializationQuery)) && a2.updateChartDatas && (a2.updateChartDatas(e2[o2]), (_b = (_a = r2.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet)) {
|
|
94
|
+
const n2 = e2[o2] && e2[o2].length > 0 ? e2[o2][0] : {}, a3 = n2 && n2.result ? n2.result : {};
|
|
92
95
|
let s2 = null;
|
|
93
|
-
|
|
96
|
+
r2.serviceDataField ? s2 = a3[r2.serviceDataField] : a3 && (s2 = Array.isArray(a3) ? a3 : [a3]), s2 || (s2 = []), setValueForVariableName(t.entity, r2.runtime.dataConfig.resultSet, s2);
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
|
-
|
|
100
|
+
a(e2);
|
|
98
101
|
}).catch((t2) => {
|
|
99
|
-
|
|
102
|
+
r(t2);
|
|
100
103
|
});
|
|
101
104
|
});
|
|
102
105
|
}
|
|
@@ -105,11 +108,11 @@ function updateChartDatasourcesByComponent(t, e) {
|
|
|
105
108
|
o && updateChartDatasources(t, [o], null, false);
|
|
106
109
|
}
|
|
107
110
|
function updateOptionDatasources(t, e, o) {
|
|
108
|
-
return new Promise((n,
|
|
109
|
-
if (!e || 0 == e.length) return void
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
const i = { entityMap:
|
|
111
|
+
return new Promise((n, a) => {
|
|
112
|
+
if (!e || 0 == e.length) return void a(new Error("无需查询的配置!"));
|
|
113
|
+
const r = t.entity ? t.entity : {}, s = {};
|
|
114
|
+
r.request && Object.assign(s, r.request), r.page && Object.assign(s, r.page), s.query = o;
|
|
115
|
+
const i = { entityMap: r.data, additionalParamMap: s, dataSourceList: e, systemCode: t.systemCode, query: o }, u = t.backendUrl, l = getBaseUrl(u, t.isTest) + "/common/common-data/find-datas";
|
|
113
116
|
http.post(l, i).then((e2) => {
|
|
114
117
|
t.optionSourceMap || (t.optionSourceMap = {});
|
|
115
118
|
for (const o2 in e2) {
|
|
@@ -119,7 +122,7 @@ function updateOptionDatasources(t, e, o) {
|
|
|
119
122
|
}
|
|
120
123
|
n(e2);
|
|
121
124
|
}).catch((t2) => {
|
|
122
|
-
|
|
125
|
+
a(t2);
|
|
123
126
|
});
|
|
124
127
|
});
|
|
125
128
|
}
|
|
@@ -144,14 +147,14 @@ function queryOptionDatasources(t, e, o) {
|
|
|
144
147
|
}
|
|
145
148
|
function autoSetAfterSelect(t, e, o, n) {
|
|
146
149
|
if (!o || 0 == o.length) return;
|
|
147
|
-
const
|
|
150
|
+
const a = e.entity ? e.entity : {};
|
|
148
151
|
for (const t2 of o) {
|
|
149
152
|
if (!t2.source || !t2.target) continue;
|
|
150
153
|
const e2 = getValuesByField(n, t2.source);
|
|
151
154
|
let o2 = t2.target;
|
|
152
155
|
if (!o2 || !o2.startsWith("${")) continue;
|
|
153
156
|
o2 = o2.substring(2, o2.length - 1);
|
|
154
|
-
setVariableValue(
|
|
157
|
+
setVariableValue(a, o2.split("."), e2.join(","));
|
|
155
158
|
}
|
|
156
159
|
}
|
|
157
160
|
function getValuesByField(t, e) {
|
|
@@ -182,8 +185,8 @@ function setVariableValue(t, e, o) {
|
|
|
182
185
|
if (!t || !e || 0 == e.length) return;
|
|
183
186
|
let n = t;
|
|
184
187
|
for (let t2 = 0; t2 < e.length; t2++) {
|
|
185
|
-
const
|
|
186
|
-
t2 + 1 === e.length ? n[
|
|
188
|
+
const a = e[t2];
|
|
189
|
+
t2 + 1 === e.length ? n[a] = o : (void 0 === n[a] && (n[a] = {}), n = n[a]);
|
|
187
190
|
}
|
|
188
191
|
}
|
|
189
192
|
function setVariableValueWithProp(t, e, o) {
|
|
@@ -194,10 +197,10 @@ function formatVariableValue(t, e) {
|
|
|
194
197
|
if (!t || "" == e || null == e || null == e) return e;
|
|
195
198
|
const o = t.entity ? t.entity : {}, n = getParamNames(e);
|
|
196
199
|
for (const t2 in n) {
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
if (
|
|
200
|
-
e = e.replace(
|
|
200
|
+
const a = n[t2], r = getValueFromVariable(o, a);
|
|
201
|
+
if (r && "[object Date]" === Object.prototype.toString.call(r)) return dayjs(r).format("YYYY-MM-DD hh:mm:ss");
|
|
202
|
+
if (r && "number" == typeof r) return r;
|
|
203
|
+
e = e.replace(a, null == r ? "" : r);
|
|
201
204
|
}
|
|
202
205
|
return e;
|
|
203
206
|
}
|
|
@@ -230,18 +233,18 @@ function formatValueByType(t, e, o) {
|
|
|
230
233
|
function getValueFromVariable(t, e, o) {
|
|
231
234
|
if (null == e || null == e) return e;
|
|
232
235
|
if (e.startsWith("${") && e.endsWith("}")) {
|
|
233
|
-
let n = e.substring(2, e.length - 1),
|
|
234
|
-
if (n.startsWith("data.")) n = n.substring(5),
|
|
235
|
-
else if (n.startsWith("page.")) n = n.substring(5),
|
|
236
|
-
else if (n.startsWith("task.")) n = n.substring(5),
|
|
237
|
-
else if (n.startsWith("request.")) n = n.substring(8),
|
|
238
|
-
else if (n.startsWith("context.")) n = n.substring(8),
|
|
239
|
-
else if (n.startsWith("system.")) n = n.substring(7),
|
|
236
|
+
let n = e.substring(2, e.length - 1), a = null, r = null;
|
|
237
|
+
if (n.startsWith("data.")) n = n.substring(5), r = t.data, a = "data";
|
|
238
|
+
else if (n.startsWith("page.")) n = n.substring(5), a = "page", r = t.page;
|
|
239
|
+
else if (n.startsWith("task.")) n = n.substring(5), a = "task", r = t.task;
|
|
240
|
+
else if (n.startsWith("request.")) n = n.substring(8), a = "request", r = t.request;
|
|
241
|
+
else if (n.startsWith("context.")) n = n.substring(8), a = "context", r = t.context;
|
|
242
|
+
else if (n.startsWith("system.")) n = n.substring(7), a = "system", r = t.system;
|
|
240
243
|
else {
|
|
241
244
|
if (n.startsWith("fixed.")) return n.substring(6);
|
|
242
|
-
n.startsWith("row.") && (n = n.substring(4),
|
|
245
|
+
n.startsWith("row.") && (n = n.substring(4), r = o, a = "row");
|
|
243
246
|
}
|
|
244
|
-
return n ? getValueFromSource(
|
|
247
|
+
return n ? getValueFromSource(r, n, a) : "";
|
|
245
248
|
}
|
|
246
249
|
return e;
|
|
247
250
|
}
|
|
@@ -249,17 +252,17 @@ function getValueFromSource(t, e, o) {
|
|
|
249
252
|
if ("context" != o && !t || !e) return;
|
|
250
253
|
const n = e.indexOf(".");
|
|
251
254
|
if (n > -1) {
|
|
252
|
-
const
|
|
253
|
-
let s = t[
|
|
254
|
-
return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s,
|
|
255
|
+
const a = e.substring(0, n), r = e.substring(n + 1);
|
|
256
|
+
let s = t[a];
|
|
257
|
+
return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s, r, o);
|
|
255
258
|
}
|
|
256
259
|
if ("context" == o) {
|
|
257
260
|
if ("currentDate" == e || "currentTime" == e) return /* @__PURE__ */ new Date();
|
|
258
261
|
if (e.startsWith("currentDate") && e.length > 11) {
|
|
259
262
|
const t2 = e.substring(11), o2 = t2.substring(0, 1);
|
|
260
263
|
let n2 = parseInt(t2.substring(1, t2.length - 1), 10);
|
|
261
|
-
const
|
|
262
|
-
return n2 = "+" === o2 ? n2 : -n2, "d" ===
|
|
264
|
+
const a = t2.substring(t2.length - 1), r = /* @__PURE__ */ new Date();
|
|
265
|
+
return n2 = "+" === o2 ? n2 : -n2, "d" === a || "w" === a ? (n2 = "w" === a ? 7 * n2 : n2, r.setDate(r.getDate() + n2)) : "m" === a ? r.setMonth(r.getMonth() + n2) : "y" === a && r.setFullYear(r.getFullYear() + n2), r;
|
|
263
266
|
}
|
|
264
267
|
if (!t) return;
|
|
265
268
|
}
|
|
@@ -275,13 +278,13 @@ function caculateShowCondition(pageContext, showConditions, row) {
|
|
|
275
278
|
let n = e.operator;
|
|
276
279
|
if (!o || "" === o) continue;
|
|
277
280
|
n || (n = "EQ");
|
|
278
|
-
const
|
|
279
|
-
let
|
|
281
|
+
const a = getValueFromVariable(entityData, o, row);
|
|
282
|
+
let r = getValueFromVariable(entityData, e.propValue, row);
|
|
280
283
|
const s = e.dataType;
|
|
281
|
-
"CONTAIN" != n && "NOT_CONTAIN" != n ||
|
|
284
|
+
"CONTAIN" != n && "NOT_CONTAIN" != n || a && !a.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
|
|
282
285
|
let i = e.variableIsNull, u;
|
|
283
|
-
if (i || (i = "null"), void 0 !==
|
|
284
|
-
u = executeExpression(
|
|
286
|
+
if (i || (i = "null"), "IS_NULL" !== n && "IS_NOT_NULL" !== n && (void 0 !== r && "" !== r || (r = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true)), null == u) try {
|
|
287
|
+
u = executeExpression(a, n, r, s);
|
|
285
288
|
} catch (t2) {
|
|
286
289
|
u = false;
|
|
287
290
|
}
|
|
@@ -296,18 +299,17 @@ function caculateShowCondition(pageContext, showConditions, row) {
|
|
|
296
299
|
}
|
|
297
300
|
function monitorFieldChange(t, e, o) {
|
|
298
301
|
if (!o || !t || !e || 0 == e.length) return;
|
|
299
|
-
const n = [],
|
|
302
|
+
const n = [], a = [];
|
|
300
303
|
for (let t2 of e) if (t2.startsWith("${")) {
|
|
301
304
|
t2 = t2.substring(2, t2.length - 1);
|
|
302
305
|
const e2 = t2.split(".");
|
|
303
|
-
"page" !== e2[0] && "task" !== e2[0] && "data" !== e2[0] || (n.push(e2),
|
|
306
|
+
"page" !== e2[0] && "task" !== e2[0] && "data" !== e2[0] || (n.push(e2), a.includes(e2[0]) || a.push(e2[0]));
|
|
304
307
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
s != t3 && (s = t3, o());
|
|
308
|
+
let r = getMonitorFieldValues(n, t.entity), s = false;
|
|
309
|
+
for (const e2 of a) watch(t.entity[e2], () => {
|
|
310
|
+
s && clearTimeout(s), s = setTimeout(function() {
|
|
311
|
+
const e3 = getMonitorFieldValues(n, t.entity);
|
|
312
|
+
r != e3 && (r = e3, o());
|
|
311
313
|
}, 200);
|
|
312
314
|
});
|
|
313
315
|
}
|
|
@@ -340,14 +342,17 @@ function getModelFieldFromPageContext(t, e) {
|
|
|
340
342
|
if (!e.modelFieldsMap) return;
|
|
341
343
|
let o = null;
|
|
342
344
|
for (let n = 0; n < t.length; n++) {
|
|
343
|
-
const
|
|
344
|
-
n + 1 === t.length && (o = e.modelFieldsMap[
|
|
345
|
+
const a = t[n];
|
|
346
|
+
n + 1 === t.length && (o = e.modelFieldsMap[a]);
|
|
345
347
|
}
|
|
346
348
|
return o;
|
|
347
349
|
}
|
|
348
350
|
function isNumberDataType(t) {
|
|
349
351
|
return "INTEGER" === t || "LONG" === t || "DOUBLE" === t || "FLOAT_COM" === t;
|
|
350
352
|
}
|
|
353
|
+
function isDateDataType(t) {
|
|
354
|
+
return "DATE" === (t = t ? t.toUpperCase() : "") || "TIME" === t || "DATETIME" === t || "TIMESTAMP" === t;
|
|
355
|
+
}
|
|
351
356
|
export {
|
|
352
357
|
autoSetAfterSelect,
|
|
353
358
|
caculateShowCondition,
|
|
@@ -356,6 +361,7 @@ export {
|
|
|
356
361
|
formatVariableValue,
|
|
357
362
|
getChartDatasFromPage,
|
|
358
363
|
getComponentOptionConfigs,
|
|
364
|
+
getComponentOptionConfigsBase,
|
|
359
365
|
getComponentOptionDatasFromPage,
|
|
360
366
|
getFormPropName,
|
|
361
367
|
getModelFieldFromPageContext,
|
|
@@ -366,6 +372,7 @@ export {
|
|
|
366
372
|
getValueFromSource,
|
|
367
373
|
getValueFromVariable,
|
|
368
374
|
getVariableValue,
|
|
375
|
+
isDateDataType,
|
|
369
376
|
isNumberDataType,
|
|
370
377
|
isPromise,
|
|
371
378
|
monitorFieldChange,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
3
|
import { PageDimensions as s } from "./interfaces/page-design-types.js";
|
|
4
|
-
import { getFormPropName as i,
|
|
4
|
+
import { getFormPropName as i, getVariableValue as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as a } from "./api/page-expose-util.js";
|
|
7
7
|
import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
|
|
@@ -11,9 +11,9 @@ function f(t2) {
|
|
|
11
11
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t2);
|
|
12
12
|
}
|
|
13
13
|
function c(e2) {
|
|
14
|
-
var _a;
|
|
14
|
+
var _a, _b, _c;
|
|
15
15
|
if (null == e2) return null;
|
|
16
|
-
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
|
|
16
|
+
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
|
|
17
17
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
18
18
|
let s2 = e2.props.notIdInitializationList;
|
|
19
19
|
"string" == typeof s2 && (s2 = JSON.parse(s2)), s2.length > 0 && (t2.notIdInitializationList = s2);
|
|
@@ -57,16 +57,16 @@ function b(e2) {
|
|
|
57
57
|
function y(e2, t2) {
|
|
58
58
|
if (e2) {
|
|
59
59
|
Object.assign(t2, e2);
|
|
60
|
-
|
|
60
|
+
v(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
function h(e2, t2) {
|
|
64
64
|
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
65
65
|
Object.assign(t2, e2.query);
|
|
66
|
-
|
|
66
|
+
v(e2.query.paramStoreId, t2);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function v(e2, t2) {
|
|
70
70
|
if (e2) {
|
|
71
71
|
const s2 = l(e2);
|
|
72
72
|
if (s2) {
|
|
@@ -75,20 +75,20 @@ function E(e2, t2) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function E(e2, t2) {
|
|
79
79
|
let s2, i2 = t2;
|
|
80
80
|
t2 || (s2 = e2.props.base ? e2.props.base : {}, i2 = s2.prop);
|
|
81
81
|
let n2 = null;
|
|
82
82
|
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
|
|
83
83
|
}
|
|
84
84
|
function w(e2, t2, s2) {
|
|
85
|
-
const i2 =
|
|
85
|
+
const i2 = E(t2, s2), r2 = e2.entity;
|
|
86
86
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
87
|
-
let l2, a2
|
|
88
|
-
t2 && (
|
|
89
|
-
const
|
|
90
|
-
if (null ==
|
|
91
|
-
const t3 = P(e2,
|
|
87
|
+
let s3, l2, a2 = false;
|
|
88
|
+
t2 && (s3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = s3.multiple);
|
|
89
|
+
const p2 = n(r2, i2);
|
|
90
|
+
if (null == p2) {
|
|
91
|
+
const t3 = P(e2, s3 ? s3.defaultValue : null, l2, a2);
|
|
92
92
|
null != t3 && o(r2, i2, t3);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -136,21 +136,21 @@ function C(s2, i2, n2) {
|
|
|
136
136
|
const I = ["button-detail", "print-label"];
|
|
137
137
|
function O(e2, t2) {
|
|
138
138
|
var _a, _b;
|
|
139
|
-
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
139
|
+
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, n2 = p(e2);
|
|
140
|
+
let o2 = false;
|
|
141
|
+
if (n2 && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
142
142
|
const s3 = e2.fieldPermissionMap.get("all_fields");
|
|
143
|
-
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled",
|
|
143
|
+
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
|
|
144
144
|
}
|
|
145
145
|
if (s2) {
|
|
146
|
-
const
|
|
147
|
-
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[
|
|
146
|
+
const r2 = i(s2);
|
|
147
|
+
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[r2] || (e2.rules[r2] = []), t2.props.rules.forEach((e3) => {
|
|
148
148
|
d(e3);
|
|
149
|
-
}), e2.rules[
|
|
150
|
-
const s3 = e2.fieldPermissionMap.get(
|
|
149
|
+
}), e2.rules[r2] = t2.props.rules), n2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
150
|
+
const s3 = e2.fieldPermissionMap.get(r2);
|
|
151
151
|
t2.runtime.props || (t2.runtime.props = {}), s3 ? false === s3.canEdit ? t2.runtime.props.state = "disabled" : s3.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true) : t2.runtime.props.state = "";
|
|
152
152
|
}
|
|
153
|
-
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop:
|
|
153
|
+
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: r2, events: t2.props.customRuleEvents }));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function _(e2, t2) {
|
|
@@ -173,7 +173,7 @@ export {
|
|
|
173
173
|
c as convertToPageContext,
|
|
174
174
|
P as getDefaultValue,
|
|
175
175
|
w as getFormModelFields,
|
|
176
|
-
|
|
176
|
+
E as getModelFields,
|
|
177
177
|
M as getPermissionCodes,
|
|
178
178
|
b as packageAdditionalMapWithLocationSearch,
|
|
179
179
|
y as packageAdditionalMapWithPageRequest,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
|
|
2
|
-
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/
|
|
2
|
+
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] } }, s = {};
|
|
3
3
|
function n(o2) {
|
|
4
4
|
return o2 ? e[o2] : void 0;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function a(o2) {
|
|
7
7
|
if (!o2) return;
|
|
8
8
|
let n2 = s[o2];
|
|
9
9
|
if (null == n2) {
|
|
10
10
|
for (const s2 in e) {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
for (const e2 of
|
|
11
|
+
const a2 = e[s2].functions;
|
|
12
|
+
if (a2) {
|
|
13
|
+
for (const e2 of a2) {
|
|
14
14
|
if (o2 === (e2.code ? e2.code : s2)) {
|
|
15
15
|
n2 = e2;
|
|
16
16
|
break;
|
|
@@ -25,6 +25,6 @@ function t(o2) {
|
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
o as FuncType,
|
|
28
|
-
|
|
28
|
+
a as getFunctionInfo,
|
|
29
29
|
n as getStandPermissionInfo
|
|
30
30
|
};
|
|
@@ -24,7 +24,11 @@ function u(t2, i2, s2, n2) {
|
|
|
24
24
|
const o2 = e(i3, t2);
|
|
25
25
|
o2 && (u3.permission = o2);
|
|
26
26
|
}
|
|
27
|
-
u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2
|
|
27
|
+
if (u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2) {
|
|
28
|
+
const t3 = n2(i3);
|
|
29
|
+
r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
|
|
30
|
+
}
|
|
31
|
+
s2.push(r3);
|
|
28
32
|
});
|
|
29
33
|
}
|
|
30
34
|
function l(t2, e2, o2, n2) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, createBlock as i, openBlock as a, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createElementBlock as g, Fragment as f, createTextVNode as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, createBlock as i, openBlock as a, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createElementBlock as g, Fragment as f, createTextVNode as d, toDisplayString as m, createVNode as v, renderList as y } from "vue";
|
|
2
2
|
import { ArrowDown as b } from "@element-plus/icons-vue";
|
|
3
3
|
import { formatVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as k, handleEvent as x, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
|
|
@@ -33,7 +33,7 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
|
|
|
33
33
|
});
|
|
34
34
|
}), (e3, t2) => {
|
|
35
35
|
const l2 = u("el-button"), n2 = u("el-icon"), o2 = u("el-text"), C2 = u("el-dropdown-item"), k2 = u("el-dropdown-menu"), _2 = u("el-dropdown");
|
|
36
|
-
return a(), i(_2, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(k2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(C2, { key: t3, onClick: (l4) => s(x)(l4, e3.pageContext, e3.configure, "
|
|
36
|
+
return a(), i(_2, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(k2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(C2, { key: t3, onClick: (l4) => s(x)(l4, e3.pageContext, e3.configure, "click", { menuItem: t3 }) }, { default: c(() => [d(m(s(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (a(), g(f, { key: 0 }, [B.value.splitButton ? (a(), g("span", z, m(B.value.title), 1)) : (a(), i(l2, { key: 0, size: B.value.size, type: B.value.buttonType }, { default: c(() => [d(m(s(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), i(o2, { key: 1 }, { default: c(() => [d(m(s(w)(B.value.title)) + " ", 1), v(n2, null, { default: c(() => [v(s(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
37
37
|
};
|
|
38
38
|
} });
|
|
39
39
|
export {
|