super-page-runtime 2.3.31-sit2 → 2.3.32-sit1

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
  };
@@ -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
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), P(i2, a2);
796
+ var _a;
797
+ l({ showClose: true, type: "success", message: u().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
  }
@@ -1,33 +1,36 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as a, nextTick as o, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as r, openBlock as u, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as v, createElementBlock as f, toDisplayString as c } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as s, createBlock as r, createCommentVNode as u, openBlock as n, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as f, createElementBlock as v, toDisplayString as c } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
- import w from "agilebuilder-ui/src/utils/request";
3
+ import { handleAfterInitEvent as g, fileUploadBeforeUpload as w } from "../../../../utils/events/event-util.js";
4
+ import C from "agilebuilder-ui/src/utils/request";
5
5
  import { FsUploadNew as b } from "agilebuilder-ui";
6
6
  import k from "../../../../utils/eventBus.js";
7
7
  import { $t as x } from "../../../../utils/i18n-util.js";
8
8
  import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
9
- import { getRelativeBaseUrl as _ } from "agilebuilder-ui/src/utils/common-util";
10
- const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
9
+ import { getRelativeBaseUrl as S } from "agilebuilder-ui/src/utils/common-util";
10
+ const N = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
11
11
  var _a, _b, _c, _d, _e, _f, _g;
12
- const N = e2, S = l(null), R = N.configure.runtime ? N.configure.runtime : {}, T = l(R.props ? R.props : {}), z = R.style, D = R.class, I = R.headerStyle, O = R.titleExceedStyle, q = N.pageContext.entity ? N.pageContext.entity : {}, F = N.configure.props.base ? N.configure.props.base : {}, W = M(F.prop), U = M(F.propName);
13
- let $ = l({});
14
- $.value.isShowWatermark = void 0 === ((_b = (_a = N.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = N.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", $.value.content = ((_e = (_d = N.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = N.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", W && W.length > 1 && t(() => N.pageContext.entity[W[0]][W[1]], (e3) => {
12
+ const T = e2, _ = l(null), j = T.configure.runtime ? T.configure.runtime : {}, z = l(j.props ? j.props : {}), R = j.style, I = j.class, D = j.headerStyle, O = j.titleExceedStyle, q = T.pageContext.entity ? T.pageContext.entity : {}, F = T.configure.props.base ? T.configure.props.base : {}, W = M(F.prop), $ = M(F.propName);
13
+ let A = l({});
14
+ A.value.isShowWatermark = void 0 === ((_b = (_a = T.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = T.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", A.value.content = ((_e = (_d = T.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = T.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", W && W.length > 1 && t(() => T.pageContext.entity[W[0]][W[1]], (e3) => {
15
15
  L(h(q, W));
16
16
  });
17
- const B = N.pageContext.code, E = l(W ? B + "__" + W.join("__") : null), A = h(q, W), G = l(null), H = l(false), J = l([]), K = l({});
17
+ const E = T.pageContext.code, U = l(W ? E + "__" + W.join("__") : null), B = h(q, W), G = l(null), H = l(false), J = l([]), K = l({});
18
18
  function L(e3) {
19
19
  if (e3) {
20
20
  const l2 = e3.split(",");
21
21
  if (l2.length > 0) {
22
- const e4 = N.pageContext.backendUrl, t2 = _(e4 + "/common/fs-upload/search-file-names");
23
- w.post(t2, l2).then((e5) => {
22
+ const e4 = S(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
23
+ C.post(e4, l2).then((e5) => {
24
24
  J.value = [];
25
- const t3 = [];
26
- for (let a2 = 0; a2 < l2.length; a2++) {
27
- const o2 = l2[a2];
28
- t3.push(e5[o2]), J.value.push({ showName: e5[o2], serverPath: o2 });
25
+ const t2 = [], o2 = {};
26
+ e5.forEach((e6) => {
27
+ o2[e6.uuid] = e6;
28
+ });
29
+ for (let e6 = 0; e6 < l2.length; e6++) {
30
+ const a2 = l2[e6];
31
+ t2.push(o2[a2].fileName), J.value.push({ showName: o2[a2].fileName, serverPath: a2, fileSize: o2[a2].fileSize });
29
32
  }
30
- "input" === T.value.displayType && (K.value.showName = t3.join(","), K.value.serverPath = l2.join(","));
33
+ "input" === z.value.displayType && (K.value.showName = t2.join(","), K.value.serverPath = l2.join(","));
31
34
  }).finally(() => {
32
35
  H.value = true;
33
36
  });
@@ -38,38 +41,38 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
38
41
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
39
42
  }
40
43
  function Q(e3) {
41
- return C(e3);
44
+ return w(e3);
42
45
  }
43
- L(A);
46
+ L(B);
44
47
  const V = (e3, l2, t2) => {
45
48
  Y();
46
49
  }, X = (e3) => {
47
50
  Y();
48
51
  }, Y = () => {
49
52
  const e3 = [], l2 = [];
50
- if (T.value.limit && J.value.length > T.value.limit) {
51
- const e4 = J.value.length - T.value.limit;
53
+ if (z.value.limit && J.value.length > z.value.limit) {
54
+ const e4 = J.value.length - z.value.limit;
52
55
  for (let l3 = 0; l3 < e4; l3++) J.value.shift();
53
56
  }
54
57
  for (let t2 = 0; t2 < J.value.length; t2++) e3.push(J.value[t2].showName), l2.push(J.value[t2].serverPath);
55
- y(N.pageContext.entity, W, l2.join(",")), y(N.pageContext.entity, U, e3.join(",")), l2.length > 0 && (S.value = "");
58
+ y(T.pageContext.entity, W, l2.join(",")), y(T.pageContext.entity, $, e3.join(",")), l2.length > 0 && (_.value = "");
56
59
  }, Z = l(null), ee = l(null);
57
- return a(() => {
58
- k.$on(E.value + "-pickFileDone", (e3) => {
60
+ return o(() => {
61
+ k.$on(U.value + "-pickFileDone", (e3) => {
59
62
  G.value.pickFileDone(e3);
60
- }), o(() => {
61
- const e3 = h(q, W), l2 = { showName: h(q, U), serverPath: e3 };
62
- g(l2, N.pageContext, N.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
63
+ }), a(() => {
64
+ const e3 = h(q, W), l2 = { showName: h(q, $), serverPath: e3 };
65
+ g(l2, T.pageContext, T.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
63
66
  });
64
67
  }), i(() => {
65
- k.$off(E.value + "-pickFileDone");
66
- }), j2({ addRequiredClass: function() {
67
- S.value = P();
68
+ k.$off(U.value + "-pickFileDone");
69
+ }), N2({ addRequiredClass: function() {
70
+ _.value = P();
68
71
  } }), (e3, l2) => {
69
- const t2 = n("el-form-item");
70
- return T.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Z, required: T.value.required, class: d(m(D) + (S.value ? " " + S.value : "")), "label-width": T.value.labelWidth, style: p(m(z)) }, { label: v(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(I), ...m(O) }) }, c(m(x)(T.value.title)), 5)) : r("", true)]), default: v(() => [H.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true);
72
+ const t2 = s("el-form-item");
73
+ return z.value.tittleShow ? (n(), r(t2, { key: 0, ref_key: "formItemRef", ref: Z, required: z.value.required, class: d(m(I) + (_.value ? " " + _.value : "")), "label-width": z.value.labelWidth, style: p(m(R)) }, { label: f(() => [z.value.tittleShow ? (n(), v("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(D), ...m(O) }) }, c(m(x)(z.value.title)), 5)) : u("", true)]), default: f(() => [H.value ? (n(), r(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === z.value.state, displayType: z.value.displayType, accept: z.value.accept, multiple: z.value.multiple, placeholder: z.value.placeholder, limit: z.value.limit, "limit-file-size": z.value.limitFileSize, "disabled-no-preview": z.value.disabledNoPreview, "disabled-no-download": z.value.disabledNoDownload, openCameraOrChoosePhoto: z.value.openCameraOrChoosePhoto, "sort-type": z.value.sortType, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: U.value, watermark: m(A), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext, "file-show-type": z.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (n(), r(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === z.value.state, displayType: z.value.displayType, accept: z.value.accept, multiple: z.value.multiple, placeholder: z.value.placeholder, limit: z.value.limit, "limit-file-size": z.value.limitFileSize, "disabled-no-preview": z.value.disabledNoPreview, "disabled-no-download": z.value.disabledNoDownload, openCameraOrChoosePhoto: z.value.openCameraOrChoosePhoto, "sort-type": z.value.sortType, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: U.value, watermark: m(A), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext, "file-show-type": z.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true);
71
74
  };
72
75
  } });
73
76
  export {
74
- j as default
77
+ N as default
75
78
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.31-sit2",
3
+ "version": "2.3.32-sit1",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -49,7 +49,7 @@
49
49
  "@vitejs/plugin-vue-jsx": "^3.1.0",
50
50
  "@vue/eslint-config-prettier": "^8.0.0",
51
51
  "@vue/test-utils": "^2.4.4",
52
- "agilebuilder-ui": "1.1.82-sit2",
52
+ "agilebuilder-ui": "1.1.84-sit1",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",