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.
Files changed (27) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-util.js +26 -32
  2. package/dist/es/components/runtime/utils/common-util.js +1 -1
  3. package/dist/es/components/runtime/utils/events/event-util.js +111 -110
  4. package/dist/es/components/runtime/utils/events/print-label.js +53 -40
  5. package/dist/es/components/runtime/utils/events/standard-event.js +135 -123
  6. package/dist/es/components/runtime/utils/page-helper-util.d.ts +9 -1
  7. package/dist/es/components/runtime/utils/page-helper-util.js +91 -84
  8. package/dist/es/components/runtime/utils/page-init-util.js +23 -23
  9. package/dist/es/components/runtime/utils/page-permission-util.js +6 -6
  10. package/dist/es/components/runtime/utils/table-utils.js +5 -1
  11. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
  12. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +22 -22
  13. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +16 -16
  14. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +21 -21
  15. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -18
  16. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -17
  17. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +53 -54
  18. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +198 -192
  19. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +94 -90
  20. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +49 -41
  21. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +24 -24
  22. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +51 -55
  23. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  24. package/dist/es/index.d.ts +2 -2
  25. package/dist/es/index.js +2 -1
  26. package/dist/es/style.css +3 -3
  27. 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 o = t.props.dataOrigin, n = { uuid: t.uuid };
11
- if ("optionGroup" == o.optionValueSetType) n.type = "optionGroup", n.props = { code: o.optionGroup };
12
- else if ("dynamicData" == o.optionValueSetType) n.type = "dynamicData", n.filterType = o.filterType, n.props = { code: o.dynamicDataSourceCode };
13
- else if ("dataTable" == o.optionValueSetType) {
14
- n.filterType = o.filterType;
15
- const t2 = getTableQueryInfo(o, e);
16
- Object.assign(n, t2);
17
- } else if ("service" == o.optionValueSetType) {
18
- n.filterType = o.filterType;
19
- const t2 = getServiceQueryInfo(o, e);
20
- Object.assign(n, t2);
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 n.type ? n : void 0;
25
+ return a.type ? a : void 0;
23
26
  }
24
- function getTableQueryInfo(t, e) {
25
- const o = { type: "dataTable" };
26
- if (o.props = { tableName: t.tableName, systemCode: t.tableSysCode ? t.tableSysCode : e.systemCode, systemVersion: t.tableSysCode ? t.tableSysVersion : e.systemVersion }, t.sortFields) {
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
- o.props.sorts = e2;
32
+ n.props.sorts = e2;
30
33
  }
31
- const n = [];
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 r2 = getParamNames(o2.propValue);
40
- for (const t3 of r2) t3 && (t3.startsWith("${data.") || t3.startsWith("${task.") || t3.startsWith("${page.")) && (n.includes(t3) || n.push(t3));
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
- o.props.searchForm = e2;
46
+ n.props.searchForm = e2;
44
47
  }
45
- o.props.monitorFields = n;
48
+ n.props.monitorFields = a;
46
49
  const r = [];
47
- if (t.tableValueField && (o.props.valueField = t.tableValueField), t.tableLableField && -1 == r.indexOf(t.tableLableField) && (o.props.lableField = t.tableLableField), t.autoSets) for (const e2 of t.autoSets) e2.source && -1 == r.indexOf(e2.source) && r.push(e2.source);
48
- return o.props.queryFields = r, o.props.pageSize = t.displayQuantity, o;
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 o = { type: "service" };
52
- if (o.props = { serivceCode: t.serviceCode, systemCode: t.tableSysCode ? t.tableSysCode : e.systemCode, systemVersion: t.tableSysCode ? t.tableSysCode : e.systemCode }, t.serviceInputs) {
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
- o.props.inputs = e2;
62
+ n.props.inputs = e2;
60
63
  }
61
- return o.props.dataSetField = t.serviceDataSetField, o.props.valueField = t.serviceValueField, o.props.labelField = t.serviceLabelField, o;
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((r, a) => {
65
- if (!e || 0 == e.length) return void a(new Error("无需查询的统计图配置!"));
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, r2 = e4.value;
73
- o2[0].serviceInParams[n2] = getValueFromVariable(t.entity, r2);
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 r2 = getComponentRef(t, o2);
88
- if (r2) {
89
- const a2 = r2.getConfigure();
90
- if ((!n || a2 && (void 0 === a2.initializationQuery || a2.initializationQuery)) && r2.updateChartDatas && (r2.updateChartDatas(e2[o2]), (_b = (_a = a2.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet)) {
91
- const n2 = e2[o2] && e2[o2].length > 0 ? e2[o2][0] : {}, r3 = n2 && n2.result ? n2.result : {};
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
- a2.serviceDataField ? s2 = r3[a2.serviceDataField] : r3 && (s2 = Array.isArray(r3) ? r3 : [r3]), s2 || (s2 = []), setValueForVariableName(t.entity, a2.runtime.dataConfig.resultSet, s2);
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
- r(e2);
100
+ a(e2);
98
101
  }).catch((t2) => {
99
- a(t2);
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, r) => {
109
- if (!e || 0 == e.length) return void r(new Error("无需查询的配置!"));
110
- const a = t.entity ? t.entity : {}, s = {};
111
- a.request && Object.assign(s, a.request), a.page && Object.assign(s, a.page), s.query = o;
112
- const i = { entityMap: a.data, additionalParamMap: s, dataSourceList: e, systemCode: t.systemCode, query: o }, u = t.backendUrl, l = getBaseUrl(u, t.isTest) + "/common/common-data/find-datas";
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
- r(t2);
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 r = e.entity ? e.entity : {};
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(r, o2.split("."), e2.join(","));
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 r = e[t2];
186
- t2 + 1 === e.length ? n[r] = o : (void 0 === n[r] && (n[r] = {}), n = n[r]);
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 r = n[t2], a = getValueFromVariable(o, r);
198
- if (a && "[object Date]" === Object.prototype.toString.call(a)) return dayjs(a).format("YYYY-MM-DD hh:mm:ss");
199
- if (a && "number" == typeof a) return a;
200
- e = e.replace(r, null == a ? "" : a);
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), r = null, a = null;
234
- if (n.startsWith("data.")) n = n.substring(5), a = t.data, r = "data";
235
- else if (n.startsWith("page.")) n = n.substring(5), r = "page", a = t.page;
236
- else if (n.startsWith("task.")) n = n.substring(5), r = "task", a = t.task;
237
- else if (n.startsWith("request.")) n = n.substring(8), r = "request", a = t.request;
238
- else if (n.startsWith("context.")) n = n.substring(8), r = "context", a = t.context;
239
- else if (n.startsWith("system.")) n = n.substring(7), r = "system", a = t.system;
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), a = o, r = "row");
245
+ n.startsWith("row.") && (n = n.substring(4), r = o, a = "row");
243
246
  }
244
- return n ? getValueFromSource(a, n, r) : "";
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 r = e.substring(0, n), a = e.substring(n + 1);
253
- let s = t[r];
254
- return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s, a, o);
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 r = t2.substring(t2.length - 1), a = /* @__PURE__ */ new Date();
262
- return n2 = "+" === o2 ? n2 : -n2, "d" === r || "w" === r ? (n2 = "w" === r ? 7 * n2 : n2, a.setDate(a.getDate() + n2)) : "m" === r ? a.setMonth(a.getMonth() + n2) : "y" === r && a.setFullYear(a.getFullYear() + n2), a;
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 r = getValueFromVariable(entityData, o, row);
279
- let a = getValueFromVariable(entityData, e.propValue, row);
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 || r && !r.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
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 !== a && "" !== a || (a = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true), null == u) try {
284
- u = executeExpression(r, n, a, s);
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 = [], r = [];
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), r.includes(e2[0]) || r.push(e2[0]));
306
+ "page" !== e2[0] && "task" !== e2[0] && "data" !== e2[0] || (n.push(e2), a.includes(e2[0]) || a.push(e2[0]));
304
307
  }
305
- const a = t.entity;
306
- let s = getMonitorFieldValues(n, a), i = false;
307
- for (const t2 of r) watch(a[t2], () => {
308
- i && clearTimeout(i), i = setTimeout(function() {
309
- const t3 = getMonitorFieldValues(n, a);
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 r = t[n];
344
- n + 1 === t.length && (o = e.modelFieldsMap[r]);
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, getValueFromVariable as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
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
- E(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
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
- E(e2.query.paramStoreId, t2);
66
+ v(e2.query.paramStoreId, t2);
67
67
  }
68
68
  }
69
- function E(e2, t2) {
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 v(e2, t2) {
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 = v(t2, s2), r2 = e2.entity;
85
+ const i2 = E(t2, s2), r2 = e2.entity;
86
86
  if (null == r2.data.ID && null == r2.data.id) {
87
- let l2, a2, p2 = false;
88
- t2 && (l2 = t2.props.base ? t2.props.base : {}, a2 = t2.name, p2 = l2.multiple);
89
- const u2 = n(r2, s2, null);
90
- if (null == u2) {
91
- const t3 = P(e2, l2 ? l2.defaultValue : null, a2, p2);
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 n2 = false;
141
- if (p(e2) && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
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", n2 = true);
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 o2 = i(s2);
147
- if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[o2] || (e2.rules[o2] = []), t2.props.rules.forEach((e3) => {
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[o2] = t2.props.rules), !n2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
150
- const s3 = e2.fieldPermissionMap.get(o2);
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: o2, events: t2.props.customRuleEvents }));
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
- v as getModelFields,
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/returnTaskTo$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$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 = {};
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 t(o2) {
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 t2 = e[s2].functions;
12
- if (t2) {
13
- for (const e2 of t2) {
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
- t as getFunctionInfo,
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 && (r3.onClick = n2(i3)), s2.push(r3);
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 m, toDisplayString as d, createVNode as v, renderList as y } from "vue";
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, "menuClick", { menuItem: t3 }) }, { default: c(() => [m(d(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, d(B.value.title), 1)) : (a(), i(l2, { key: 0, size: B.value.size, type: B.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => s(x)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: c(() => [m(d(s(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), i(o2, { key: 1 }, { default: c(() => [m(d(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"]);
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 {