super-page-runtime 2.3.31 → 2.3.32-cdn2

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.
@@ -1,151 +1,166 @@
1
- import { getValueFromSource as e, formatVariableValue as i, setValueForVariableName as t } from "../page-helper-util.js";
2
- import { deepCopy as o } from "../common-util.js";
3
- import { setDefaultGrid as s, CommonName as a, caculateFormulaValue as l, executeChartFormula as n, sortDatas as r, limitDatas as u, formatToolboxI18n as d } from "./chart-util.js";
4
- import { handleChartEvent as c } from "../events/event-util.js";
5
- function f(f2, p, m, h) {
6
- if (!h || !h.result) return;
7
- s(m), m.tooltip || (m.tooltip = {}), c(f2, p, "beforeUpdateChart", m, { resultData: h });
8
- const y = h && h.result ? h.result : {};
9
- let v = h && h.groupValue ? h.groupValue : void 0;
10
- const g = p.serviceDataField;
11
- let F = null;
12
- g ? F = y[g] : y && (F = Array.isArray(y) ? y : [y]), F || (F = []), p.runtime.dataConfig.runtimeData = F;
13
- let S = p.props ? p.props.groups : null;
14
- if (S || (S = []), !v || 0 === v.length) {
1
+ import { getValueFromSource as t, formatVariableValue as e, setValueForVariableName as o } from "../page-helper-util.js";
2
+ import { deepCopy as i } from "../common-util.js";
3
+ import { setDefaultGrid as s, CommonName as a, caculateFormulaValue as l, executeChartFormula as r, sortDatas as n, limitDatas as u, formatToolboxI18n as f } from "./chart-util.js";
4
+ import { handleChartEvent as d } from "../events/event-util.js";
5
+ function c(c2, m, h, y) {
6
+ if (!y || !y.result) return;
7
+ s(h), h.tooltip || (h.tooltip = {}), d(c2, m, "beforeUpdateChart", h, { resultData: y });
8
+ const g = y && y.result ? y.result : {};
9
+ let v = y && y.groupValue ? y.groupValue : void 0;
10
+ const F = m.serviceDataField;
11
+ let S = null;
12
+ F ? S = g[F] : g && (S = Array.isArray(g) ? g : [g]), S || (S = []), m.runtime.dataConfig.runtimeData = S;
13
+ let D = m.props ? m.props.groups : null;
14
+ if (D || (D = []), !v || 0 === v.length) {
15
15
  v = [];
16
- for (const e2 of S) v.push(e2.group);
16
+ for (const t2 of D) v.push(t2.group);
17
17
  }
18
- const D = {}, x = [], N = [];
19
- for (const e2 of S) D[e2.group] = e2.target, e2.target && !x.includes(e2.target) && (x.push(e2.target), v.includes(e2.group) && N.push(e2.target));
20
- let _ = p.props ? p.props.mulGroupShow : "";
21
- _ = "break" == _ ? "\r\n" : " ";
22
- for (const i2 of F) {
23
- if (!i2) continue;
24
- const t2 = [];
25
- for (const o3 of v) {
26
- const s2 = D[o3], a2 = e(i2, s2, void 0);
27
- a2 && t2.push(a2);
18
+ const _ = {}, x = [], A = [];
19
+ for (const t2 of D) _[t2.group] = t2.target, t2.target && !x.includes(t2.target) && (x.push(t2.target), v.includes(t2.group) && A.push(t2.target));
20
+ let N = m.props ? m.props.mulGroupShow : "";
21
+ N = "break" == N ? "\r\n" : " ";
22
+ for (const e2 of S) {
23
+ if (!e2) continue;
24
+ const o2 = [];
25
+ for (const i3 of v) {
26
+ const s2 = _[i3], a2 = t(e2, s2, void 0);
27
+ a2 && o2.push(a2);
28
28
  }
29
- const o2 = t2.join(_);
30
- i2[a.X_FIELD_NAME] = o2;
29
+ const i2 = o2.join(N);
30
+ e2[a.X_FIELD_NAME] = i2;
31
31
  }
32
- const E = p.items ? p.items : [], A = [], b = {}, w = [], C = {}, I = [], X = [], L = /* @__PURE__ */ new Set(), M = l(E, F, L);
33
- for (const e2 of L) I.push(e2);
34
- for (const e2 of E) {
35
- const i2 = e2.props ? e2.props : {}, t2 = i2.yaxisSource, o2 = i2.yaxisField, s2 = i2.isCumulative;
32
+ const E = m.items ? m.items : [], C = [], b = {}, w = [], I = {}, X = [], L = [], M = /* @__PURE__ */ new Set(), j = l(E, S, M);
33
+ for (const t2 of M) X.push(t2);
34
+ for (const t2 of E) {
35
+ const e2 = t2.props ? t2.props : {}, o2 = e2.yaxisSource, i2 = e2.yaxisField, s2 = e2.isCumulative;
36
36
  let a2 = null;
37
- if (!o2 || t2 && "variable" != t2) if ("formula" == t2) {
38
- let t3 = i2.formula ? i2.formula : "";
39
- for (const e3 in M) t3 = t3.replace(new RegExp(e3.replace("$", "\\$"), "g"), M[e3]);
40
- a2 = { uuid: e2.uuid, type: "formula", formula: t3, data: [], dynamicDatas: [] };
41
- } else a2 = { uuid: e2.uuid, type: "fixed", field: i2.yaxisFix, data: [], dynamicDatas: [] };
42
- else a2 = { uuid: e2.uuid, type: "variable", field: o2, isCumulative: s2, data: [], dynamicDatas: [] }, o2 && !I.includes(o2) && I.push(o2), o2 && !X.includes(o2) && X.push(o2), s2 && !L.has(o2) && L.add(o2);
43
- null != a2 && (A.push(a2), b[e2.uuid] = a2), i2.dynamicSeriesField && !w.includes(i2.dynamicSeriesField) && a2 && (a2.dynamicField = i2.dynamicSeriesField, a2.dynamicSeriesTitle = i2.dynamicSeriesTitle, a2.dynamicShowStack = i2.dynamicShowStack, w.push(i2.dynamicSeriesField), C[i2.dynamicSeriesField] = o2);
37
+ if (!i2 || o2 && "variable" != o2) if ("formula" == o2) {
38
+ let o3 = e2.formula ? e2.formula : "";
39
+ for (const t3 in j) o3 = o3.replace(new RegExp(t3.replace("$", "\\$"), "g"), j[t3]);
40
+ a2 = { uuid: t2.uuid, type: "formula", formula: o3, isFormulaCalculateAfterSort: e2.isFormulaCalculateAfterSort, data: [], dynamicDatas: [] };
41
+ } else a2 = { uuid: t2.uuid, type: "fixed", field: e2.yaxisFix, data: [], dynamicDatas: [] };
42
+ else a2 = { uuid: t2.uuid, type: "variable", field: i2, isCumulative: s2, data: [], dynamicDatas: [] }, i2 && !X.includes(i2) && X.push(i2), i2 && !L.includes(i2) && L.push(i2), s2 && !M.has(i2) && M.add(i2);
43
+ null != a2 && (C.push(a2), b[t2.uuid] = a2), e2.dynamicSeriesField && !w.includes(e2.dynamicSeriesField) && a2 && (a2.dynamicField = e2.dynamicSeriesField, a2.dynamicSeriesTitle = e2.dynamicSeriesTitle, a2.dynamicShowStack = e2.dynamicShowStack, w.push(e2.dynamicSeriesField), I[e2.dynamicSeriesField] = i2);
44
44
  }
45
- const j = {};
45
+ const k = {};
46
46
  if (w.length > 0) {
47
- const i2 = [], t2 = {};
48
- for (const o2 of F) if (o2) for (const s2 of I) {
49
- const l2 = o2[a.X_FIELD_NAME];
50
- let n2 = t2[l2];
51
- if (!n2) {
52
- n2 = {};
53
- for (const e2 of x) n2[e2] = o2[e2];
54
- n2[a.X_FIELD_NAME] = o2[a.X_FIELD_NAME], t2[l2] = n2, i2.push(n2);
47
+ const e2 = [], o2 = {};
48
+ for (const i2 of S) if (i2) for (const s2 of X) {
49
+ const l2 = i2[a.X_FIELD_NAME];
50
+ let r2 = o2[l2];
51
+ if (!r2) {
52
+ r2 = {};
53
+ for (const t2 of x) r2[t2] = i2[t2];
54
+ r2[a.X_FIELD_NAME] = i2[a.X_FIELD_NAME], o2[l2] = r2, e2.push(r2);
55
55
  }
56
- let r2 = e(o2, s2, void 0);
57
- if (!isNaN(r2)) {
58
- const e2 = n2[s2];
59
- isNaN || (r2 += e2), n2[s2] = r2;
56
+ let n2 = t(i2, s2, void 0);
57
+ if (!isNaN(n2)) {
58
+ const t2 = r2[s2];
59
+ isNaN || (n2 += t2), r2[s2] = n2;
60
60
  }
61
61
  }
62
- for (const i3 of w) {
63
- const o2 = [];
64
- for (const s2 of F) {
62
+ for (const e3 of w) {
63
+ const i2 = [];
64
+ for (const s2 of S) {
65
65
  if (!s2) continue;
66
- const l2 = t2[s2[a.X_FIELD_NAME]];
66
+ const l2 = o2[s2[a.X_FIELD_NAME]];
67
67
  if (!l2) continue;
68
- let n2 = e(s2, i3, void 0);
69
- n2 = null == n2 || null == n2 ? "" : n2, o2.includes(n2) || (o2.push(n2), X.push(n2), L.add(n2));
70
- const r2 = C[i3];
71
- if (void 0 !== r2) {
72
- const i4 = e(s2, r2, void 0);
73
- let t3 = l2[n2];
74
- void 0 === t3 ? t3 = i4 : isNaN(i4) || (t3 += i4), l2[n2] = t3;
68
+ let r2 = t(s2, e3, void 0);
69
+ r2 = null == r2 || null == r2 ? "" : r2, i2.includes(r2) || (i2.push(r2), L.push(r2), M.add(r2));
70
+ const n2 = I[e3];
71
+ if (void 0 !== n2) {
72
+ const e4 = t(s2, n2, void 0);
73
+ let o3 = l2[r2];
74
+ void 0 === o3 ? o3 = e4 : isNaN(e4) || (o3 += e4), l2[r2] = o3;
75
75
  }
76
76
  }
77
- j[i3] = o2;
77
+ k[e3] = i2;
78
78
  }
79
- F = i2;
79
+ S = e2;
80
80
  }
81
- let k = {};
82
- for (const i2 of F) if (i2) {
83
- for (const t2 of L) {
84
- const o2 = e(i2, t2, void 0);
85
- let s2 = k[t2];
86
- void 0 === o2 || isNaN(o2) || (void 0 === s2 ? s2 = o2 : s2 += o2), k[t2] = s2;
81
+ let T = {};
82
+ const V = /* @__PURE__ */ new Set(), $ = m.props ? m.props.orderByTarget : "";
83
+ for (const t2 of C) "formula" === t2.type && t2.isFormulaCalculateAfterSort && $ !== t2.uuid && V.add(t2.uuid + "_field");
84
+ for (const t2 of S) if (t2) {
85
+ p(t2, M, T);
86
+ for (const e2 of C) if ("formula" === e2.type && !e2.isFormulaCalculateAfterSort) {
87
+ const o2 = r(e2.formula, T, t2, c2);
88
+ t2[e2.uuid + "_field"] = o2;
87
89
  }
88
- for (const e2 of A) if ("formula" === e2.type) {
89
- const t2 = n(e2.formula, k, i2, f2);
90
- i2[e2.uuid + "_field"] = t2;
90
+ }
91
+ if (n(c2, m, S), V.size > 0) {
92
+ const t2 = {};
93
+ for (const e2 of S) {
94
+ p(e2, M, t2);
95
+ for (const o2 of C) if ("formula" === o2.type && V.has(o2.uuid + "_field")) {
96
+ const i2 = r(o2.formula, t2, e2, c2);
97
+ e2[o2.uuid + "_field"] = i2;
98
+ }
91
99
  }
92
100
  }
93
- r(f2, p, F), F = u(f2, p, F, x, X);
94
- const T = [];
95
- k = {};
96
- for (const i2 of F) if (i2) {
97
- for (const t2 of L) {
98
- const o2 = e(i2, t2, void 0);
99
- let s2 = k[t2];
100
- void 0 === o2 || isNaN(o2) || (void 0 === s2 ? s2 = o2 : s2 += o2), k[t2] = s2;
101
+ S = u(c2, m, S, x, L);
102
+ const B = [];
103
+ T = {};
104
+ for (const e2 of S) if (e2) {
105
+ for (const o2 of M) {
106
+ const i2 = t(e2, o2, void 0);
107
+ let s2 = T[o2];
108
+ void 0 === i2 || isNaN(i2) || (void 0 === s2 ? s2 = i2 : s2 += i2), T[o2] = s2;
101
109
  }
102
- T.push(i2[a.X_FIELD_NAME]);
103
- for (const t2 of A) {
104
- let o2 = t2.data;
105
- const s2 = t2.dynamicDatas;
106
- if (t2.dynamicField) {
107
- let a2 = j[t2.dynamicField];
110
+ B.push(e2[a.X_FIELD_NAME]);
111
+ for (const o2 of C) {
112
+ let i2 = o2.data;
113
+ const s2 = o2.dynamicDatas;
114
+ if (o2.dynamicField) {
115
+ let a2 = k[o2.dynamicField];
108
116
  a2 = a2 || [];
109
117
  for (let l2 = 0; l2 < a2.length; l2++) {
110
- l2 >= s2.length && s2.push([]), o2 = s2[l2];
111
- const n2 = a2[l2];
112
- let r2 = e(i2, n2, void 0);
113
- t2.isCumulative && (r2 = k[n2]), o2.push(r2);
118
+ l2 >= s2.length && s2.push([]), i2 = s2[l2];
119
+ const r2 = a2[l2];
120
+ let n2 = t(e2, r2, void 0);
121
+ o2.isCumulative && (n2 = T[r2]), i2.push(n2);
114
122
  }
115
- } else if ("fixed" === t2.type) o2.push(t2.field);
116
- else if ("variable" === t2.type) {
117
- let s3 = e(i2, t2.field, void 0);
118
- t2.isCumulative && (s3 = k[t2.field]), o2.push(s3);
119
- } else "formula" === t2.type ? o2.push(i2[t2.uuid + "_field"]) : o2.push(void 0);
123
+ } else if ("fixed" === o2.type) i2.push(o2.field);
124
+ else if ("variable" === o2.type) {
125
+ let s3 = t(e2, o2.field, void 0);
126
+ o2.isCumulative && (s3 = T[o2.field]), i2.push(s3);
127
+ } else "formula" === o2.type ? i2.push(e2[o2.uuid + "_field"]) : i2.push(void 0);
120
128
  }
121
129
  }
122
- const V = p.defaultSeries, $ = o(null == V ? [] : V), G = [];
123
- for (const e2 of $) {
124
- const t2 = b[e2.uuid];
125
- if (t2.dynamicField) {
126
- let s2 = j[t2.dynamicField];
130
+ const G = m.defaultSeries, R = i(null == G ? [] : G), U = [];
131
+ for (const t2 of R) {
132
+ const o2 = b[t2.uuid];
133
+ if (o2.dynamicField) {
134
+ let s2 = k[o2.dynamicField];
127
135
  s2 = s2 || [];
128
- const a2 = t2.dynamicDatas ? t2.dynamicDatas : [];
136
+ const a2 = o2.dynamicDatas ? o2.dynamicDatas : [];
129
137
  for (let l2 = 0; l2 < s2.length; l2++) {
130
- const n2 = s2[l2], r2 = o(e2);
131
- if (t2.dynamicSeriesTitle) {
132
- const e3 = t2.dynamicSeriesTitle.replace("${name}", n2);
133
- r2.name = i(f2, e3);
134
- } else r2.name = n2;
135
- r2.data = l2 < a2.length ? a2[l2] : [], "bar" == e2.type && t2.dynamicShowStack && (r2.stack = e2.uuid), G.push(r2);
138
+ const r2 = s2[l2], n2 = i(t2);
139
+ if (o2.dynamicSeriesTitle) {
140
+ const t3 = o2.dynamicSeriesTitle.replace("${name}", r2);
141
+ n2.name = e(c2, t3);
142
+ } else n2.name = r2;
143
+ n2.data = l2 < a2.length ? a2[l2] : [], "bar" == t2.type && o2.dynamicShowStack && (n2.stack = t2.uuid), U.push(n2);
136
144
  }
137
- } else e2.data = t2 ? t2.data : [], G.push(e2);
145
+ } else t2.data = o2 ? o2.data : [], U.push(t2);
146
+ }
147
+ h.series = U;
148
+ const z = m.defaultXaxis, Y = m.defaultYaxis;
149
+ if (h.isBar) {
150
+ if (Y) for (const t2 of Y) t2.data = B;
151
+ h.xAxis = z, h.yAxis = Y;
152
+ } else z && z.length > 0 && (z[0].data = B), h.xAxis = z, h.yAxis = Y;
153
+ f(h);
154
+ const q = m.props ? m.props.selGroupVariable : null;
155
+ !(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [], o(c2.entity, q, null)), d(c2, m, "afterUpdateChart", h, { resultData: y }), m.groupFields = A, m.cacheDatas = S, m.rawResult = y;
156
+ }
157
+ function p(e2, o2, i2) {
158
+ for (const s2 of o2) {
159
+ const o3 = t(e2, s2, void 0);
160
+ let a2 = i2[s2];
161
+ void 0 === o3 || isNaN(o3) || (void 0 === a2 ? a2 = o3 : a2 += o3), i2[s2] = a2;
138
162
  }
139
- m.series = G;
140
- const R = p.defaultXaxis, U = p.defaultYaxis;
141
- if (m.isBar) {
142
- if (U) for (const e2 of U) e2.data = T;
143
- m.xAxis = R, m.yAxis = U;
144
- } else R && R.length > 0 && (R[0].data = T), m.xAxis = R, m.yAxis = U;
145
- d(m);
146
- const B = p.props ? p.props.selGroupVariable : null;
147
- !(p.props ? p.props.enableDrill : null) && B && (p.highlightInfos = [], t(f2.entity, B, null)), c(f2, p, "afterUpdateChart", m, { resultData: h }), p.groupFields = N, p.cacheDatas = F, p.rawResult = h;
148
163
  }
149
164
  export {
150
- f as updateChartOption
165
+ c as updateChartOption
151
166
  };
@@ -97,7 +97,7 @@ function w(e2, t2, i2, r2, u2, c2, l2) {
97
97
  return e3 && S.indexOf(e3) >= 0;
98
98
  }(r2)) {
99
99
  if (s2 = B(t2, a2, r2), u2) {
100
- return H(t2, i2, s2, R(t2, i2, e2, c2));
100
+ return z(t2, i2, s2, R(t2, i2, e2, c2));
101
101
  }
102
102
  return s2;
103
103
  }
@@ -110,7 +110,7 @@ function w(e2, t2, i2, r2, u2, c2, l2) {
110
110
  e3.clickUuid = t3.uuid, e3.canClick = false;
111
111
  const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = B(e3, o3, "beforeValidateForm");
112
112
  let u3;
113
- if (r4 && (u3 = H(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
113
+ if (r4 && (u3 = z(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
114
114
  n(u3) ? u3.then((n2) => {
115
115
  n2 && true === n2 ? T(e3, t3, i3) : e3.canClick = true;
116
116
  }).catch((n2) => {
@@ -133,7 +133,7 @@ function T(e2, t2, i2) {
133
133
  const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
134
134
  let r2 = true;
135
135
  (i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
136
- const c2 = z(e2, o2, "click");
136
+ const c2 = $(e2, o2, "click");
137
137
  if (c2) {
138
138
  const e3 = function(e4, n2) {
139
139
  return e4 && v.includes(n2.eventName);
@@ -154,7 +154,7 @@ function T(e2, t2, i2) {
154
154
  }
155
155
  function F(e2, n2, t2, i2, o2) {
156
156
  const r2 = U(e2, n2, t2, o2);
157
- A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
157
+ A(n2, t2, $(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
158
158
  }
159
159
  function U(e2, n2, t2, i2) {
160
160
  const o2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
@@ -170,7 +170,7 @@ function U(e2, n2, t2, i2) {
170
170
  function D(e2, n2, t2) {
171
171
  const i2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
172
172
  let o2;
173
- return i2 && (o2 = H(e2, n2, i2, null, t2)), void 0 === o2 || o2;
173
+ return i2 && (o2 = z(e2, n2, i2, null, t2)), void 0 === o2 || o2;
174
174
  }
175
175
  function L(e2, n2, t2) {
176
176
  const i2 = e2.code + "_";
@@ -182,7 +182,7 @@ function _(e2, n2) {
182
182
  function V(e2, t2, i2) {
183
183
  const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, o2, "afterClick");
184
184
  if (r2) {
185
- const o3 = H(e2, t2, r2, null, i2);
185
+ const o3 = z(e2, t2, r2, null, i2);
186
186
  n(o3) ? o3.finally(() => {
187
187
  e2.canClick = true;
188
188
  }) : e2.canClick = true;
@@ -191,7 +191,7 @@ function V(e2, t2, i2) {
191
191
  function q(e2, n2, t2, i2, o2, u2) {
192
192
  i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
193
193
  const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
194
- c2 && H(e2, n2, c2, t2);
194
+ c2 && z(e2, n2, c2, t2);
195
195
  }
196
196
  function A(e2, t2, i2, o2) {
197
197
  let r2 = t2, u2 = t2.props.linkPage;
@@ -207,7 +207,7 @@ function A(e2, t2, i2, o2) {
207
207
  u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2, o2)) : function(e3, t3, i3, o3) {
208
208
  const r3 = i3, u3 = _(e3);
209
209
  if (r3) {
210
- const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = H(e3, t3, i4, o3);
210
+ const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = z(e3, t3, i4, o3);
211
211
  if (function(e4, n2) {
212
212
  return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName || "saveQueryCharts" === n2.eventName || "addTransactor" === n2.eventName || "removeTransactor" === n2.eventName);
213
213
  }(c2, l2)) return void (e3.canClick = true);
@@ -235,7 +235,7 @@ function B(e2, n2, t2) {
235
235
  }
236
236
  }
237
237
  }
238
- function $(e2, n2) {
238
+ function H(e2, n2) {
239
239
  if (e2 && n2) {
240
240
  const t2 = e2.filter((e3) => e3.name === n2);
241
241
  if (t2 && t2.length > 0) {
@@ -243,7 +243,7 @@ function $(e2, n2) {
243
243
  }
244
244
  }
245
245
  }
246
- function z(e2, n2, t2) {
246
+ function $(e2, n2, t2) {
247
247
  if (n2 && t2) {
248
248
  const o2 = n2.filter((e3) => e3.name === t2);
249
249
  if (o2 && o2.length > 0) {
@@ -252,7 +252,7 @@ function z(e2, n2, t2) {
252
252
  }
253
253
  }
254
254
  }
255
- function H(e2, n2, t2, i2, o2) {
255
+ function z(e2, n2, t2, i2, o2) {
256
256
  if (t2) {
257
257
  if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
258
258
  return t2.apply(t2, [i2]);
@@ -356,15 +356,15 @@ function ie(n2) {
356
356
  return t2;
357
357
  }
358
358
  function oe(e2, n2, t2, i2, o2) {
359
- return H(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
359
+ return z(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
360
360
  }
361
361
  function re(n2, t2) {
362
362
  let i2 = true;
363
363
  if (e()) {
364
- const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
364
+ const e2 = $(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
365
365
  if (e2) {
366
366
  const n3 = e2.isStandard, t3 = e2.event, o2 = navigator ? navigator.userAgent : null;
367
- n3 && o2 && (o2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (i2 = false) : C.includes(t3.eventName) && (i2 = false));
367
+ n3 && o2 && (o2.indexOf("Html5Plus") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (i2 = false) : C.includes(t3.eventName) && (i2 = false));
368
368
  }
369
369
  }
370
370
  return i2;
@@ -379,10 +379,10 @@ export {
379
379
  L as doClickJumpPageEvent,
380
380
  F as doSuffixOrPrefixClickEvent,
381
381
  te as fileUploadBeforeUpload,
382
- z as getClickEventFuncByType,
382
+ $ as getClickEventFuncByType,
383
383
  k as getCustomFunc,
384
384
  B as getEventFuncByType,
385
- $ as getEventNameByType,
385
+ H as getEventNameByType,
386
386
  N as getHandleEvent,
387
387
  P as getTableUuid,
388
388
  K as gridSelectAllRecords,
@@ -6,7 +6,7 @@ import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCac
6
6
  import { getComponentRef as b } from "../global-refs.js";
7
7
  import T from "../eventBus.js";
8
8
  import k from "axios";
9
- import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
9
+ import { handleEvent as y, getTableUuid as h, doAfterClickEvent as P } from "./event-util.js";
10
10
  import { setStoreInfo as v } from "../store-util.js";
11
11
  import { getPermissionCodes as S, getDefaultValue as I, getModelFields as R } from "../page-init-util.js";
12
12
  import { caculateShowCondition as M, updateChartDatasources as N, getVariableValue as x, setVariableValue as O } from "../page-helper-util.js";
@@ -56,10 +56,10 @@ const Y = { save: function(e2) {
56
56
  g2 = n(g2, p2, d2, r2.isTest);
57
57
  const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 = S(l2, r2), k2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
58
58
  r2.beanName && (k2.beanName = r2.beanName);
59
- const h2 = l2.props.deleteLogicSetting;
60
- h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
61
- const y2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
62
- y2 && (k2.logSettingText = y2.join(""));
59
+ const y2 = l2.props.deleteLogicSetting;
60
+ y2 && ("object" == typeof y2 ? k2.deleteLogicSetting = JSON.stringify(y2) : "string" == typeof y2 && (k2.deleteLogicSetting = y2));
61
+ const h2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
62
+ h2 && (k2.logSettingText = h2.join(""));
63
63
  const P2 = l2.props.base.isSafeDelete;
64
64
  P2 && (k2.isSafeDelete = P2);
65
65
  const v2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
@@ -99,13 +99,13 @@ const Y = { save: function(e2) {
99
99
  const T2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
100
100
  T2 && (d2 += "&currentOperation=" + encodeURI(T2));
101
101
  d2 += "&isMobile=" + L();
102
- const k2 = "_RUN_CURRENT_ROLE", h2 = g(k2);
103
- h2 && (d2 += "&" + k2 + "=" + h2);
102
+ const k2 = "_RUN_CURRENT_ROLE", y2 = g(k2);
103
+ y2 && (d2 += "&" + k2 + "=" + y2);
104
104
  if (s2) {
105
105
  d2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
106
106
  }
107
- const y2 = t(u2, n2.isTest);
108
- window.open(y2 + "/dsc/commons/download-files" + d2);
107
+ const h2 = t(u2, n2.isTest);
108
+ window.open(h2 + "/dsc/commons/download-files" + d2);
109
109
  }(e2);
110
110
  }, import: function(e2) {
111
111
  const t2 = e2.pageContext.code + "_";
@@ -362,8 +362,8 @@ function K(e2, n2, s2, i2) {
362
362
  const b2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
363
363
  b2 && (w2.currentOperation = b2), w2.isMobile = L();
364
364
  const T2 = Te(e2);
365
- let h2;
366
- w2.additionalParamMap = T2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", h2 = i2 ? function(e3, n3, o2, s3) {
365
+ let y2;
366
+ w2.additionalParamMap = T2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = i2 ? function(e3, n3, o2, s3) {
367
367
  return new Promise((i3, a3) => {
368
368
  const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
369
369
  X();
@@ -389,7 +389,7 @@ function K(e2, n2, s2, i2) {
389
389
  a3(e4);
390
390
  });
391
391
  });
392
- }(r2, f2, w2, e2.isTest), h2 && h2.then(() => {
392
+ }(r2, f2, w2, e2.isTest), y2 && y2.then(() => {
393
393
  P(e2, n2);
394
394
  }).catch((t2) => {
395
395
  window.$message.error("导出失败..."), P(e2, n2);
@@ -452,7 +452,7 @@ function ne(t2, n2, o2, s2, i2) {
452
452
  const a2 = oe(t2, n2, i2);
453
453
  if (a2 && "list" === a2) !function(t3, n3, o3, s3) {
454
454
  let i3 = n3.props.base.successOperation;
455
- const a3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
455
+ const a3 = n3.props.base.isNeedValueMapping, r2 = h(t3, n3);
456
456
  i3 || re.includes(n3.name) || (i3 = "refresh");
457
457
  if ("refresh" === i3) if (r2) {
458
458
  b(t3, r2).refresh();
@@ -515,7 +515,7 @@ function ae(e2, t2, n2, o2, s2) {
515
515
  O(n3.entity, r2, i3);
516
516
  });
517
517
  }
518
- }(n2, s2, e2), h(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: i2 });
518
+ }(n2, s2, e2), y(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: i2 });
519
519
  }
520
520
  const re = ["dropdown"];
521
521
  function ce(e2, t2, n2, o2) {
@@ -526,7 +526,7 @@ function ce(e2, t2, n2, o2) {
526
526
  const i2 = oe(e2, t2);
527
527
  if (i2 && "list" === i2 && !s2 && (s2 = "refresh"), "refresh" === s2) {
528
528
  if (i2 && "list" === i2) {
529
- const n3 = y(e2, t2);
529
+ const n3 = h(e2, t2);
530
530
  if (n3) {
531
531
  b(e2, n3).refresh();
532
532
  } else console.error("tableUuid is empty");
@@ -586,10 +586,10 @@ function ue(e2, s2) {
586
586
  T2 && f2.append("formNoRuleCode", T2);
587
587
  const k2 = e2.listCode;
588
588
  k2 && f2.append("listCode", k2);
589
- let h2 = false;
590
- h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
591
- const y2 = o(i2);
592
- null != y2 && f2.append("isWorkflowEntity", y2 + "");
589
+ let y2 = false;
590
+ y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", i2.code);
591
+ const h2 = o(i2);
592
+ null != h2 && f2.append("isWorkflowEntity", h2 + "");
593
593
  const v2 = S(a2, i2);
594
594
  v2 && f2.append("functionCode", v2);
595
595
  const I2 = Te(i2);
@@ -601,7 +601,7 @@ function ue(e2, s2) {
601
601
  const N2 = i2.backendUrl;
602
602
  let x2 = t(N2, i2.isTest) + "/dsc/commons/import-data";
603
603
  x2 = n(x2, M2, N2, i2.isTest), c.post(x2, f2).then((e3) => {
604
- if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(i2);
604
+ if (y2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(i2);
605
605
  else {
606
606
  let t2 = false;
607
607
  e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ne(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
@@ -751,7 +751,7 @@ function ke(e2, o2) {
751
751
  });
752
752
  }
753
753
  }
754
- function he(e2, o2) {
754
+ function ye(e2, o2) {
755
755
  if (o2) {
756
756
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
757
757
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
@@ -764,7 +764,7 @@ function he(e2, o2) {
764
764
  });
765
765
  }
766
766
  }
767
- async function ye(e2, o2) {
767
+ async function he(e2, o2) {
768
768
  if (o2) {
769
769
  const s2 = await function(e3) {
770
770
  return new Promise((t2, n2) => {
@@ -793,7 +793,8 @@ async function ye(e2, o2) {
793
793
  m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
794
794
  const f2 = c.post(d2, m2);
795
795
  f2 && f2.then((e3) => {
796
- u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), P(i2, a2);
796
+ var _a;
797
+ u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), ne(i2, a2, { entity: (_a = i2.entity) == null ? void 0 : _a.data }, null), P(i2, a2);
797
798
  });
798
799
  }
799
800
  }
@@ -1019,7 +1020,7 @@ function Ue(e2, n2, s2) {
1019
1020
  }
1020
1021
  m2 && (w2.ids = je(m2)), f2 ? w2.taskId = f2 : d2 ? w2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
1021
1022
  const b2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = B();
1022
- T2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1023
+ T2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1023
1024
  const k2 = H(e3.code, w2.id);
1024
1025
  c.post(b2, w2).then(async (t2) => {
1025
1026
  k2 && await _e(e3, w2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, me(t2, true, e3), e3.workflowRules = j(e3);
@@ -1055,7 +1056,7 @@ function Ue(e2, n2, s2) {
1055
1056
  }
1056
1057
  e5.actionPermissionMap = n5;
1057
1058
  }(e4);
1058
- }(e3), e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
1059
+ }(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
1059
1060
  }).catch((t2) => {
1060
1061
  e3.canClick = true, i3(t2);
1061
1062
  });
@@ -1075,12 +1076,12 @@ function Ue(e2, n2, s2) {
1075
1076
  }
1076
1077
  e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
1077
1078
  const T2 = w2 + "/dsc/commons/gets", k2 = B();
1078
- k2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1079
- const y2 = H(e3.code, b2.id);
1079
+ k2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1080
+ const h2 = H(e3.code, b2.id);
1080
1081
  c.post(T2, b2).then(async (t2) => {
1081
- t2 && (y2 && await _e(e3, b2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
1082
+ t2 && (h2 && await _e(e3, b2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
1082
1083
  const n4 = e3.customRules, o3 = e3.rules, i4 = D(e3, n4, o3);
1083
- e3.rules = i4, e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
1084
+ e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
1084
1085
  }).catch((t2) => {
1085
1086
  e3.canClick = true, i3(t2);
1086
1087
  });
@@ -1161,9 +1162,9 @@ export {
1161
1162
  me as dealCompleteTaskParam,
1162
1163
  Le as deleteChartCondition,
1163
1164
  ke as doAddSigner,
1164
- he as doAddTransactor,
1165
+ ye as doAddTransactor,
1165
1166
  Ce as doAssign,
1166
- ye as doCreateCopyTask,
1167
+ he as doCreateCopyTask,
1167
1168
  Fe as doFileTaskFunc,
1168
1169
  ue as doImportFinally,
1169
1170
  Re as doRemoveSigners,