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
|
|
2
|
-
import { deepCopy as
|
|
3
|
-
import { setDefaultGrid as s, CommonName as a, caculateFormulaValue as l, executeChartFormula as
|
|
4
|
-
import { handleChartEvent as
|
|
5
|
-
function
|
|
6
|
-
if (!
|
|
7
|
-
s(
|
|
8
|
-
const
|
|
9
|
-
let v =
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
if (
|
|
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
|
|
16
|
+
for (const t2 of D) v.push(t2.group);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
for (const
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
for (const
|
|
23
|
-
if (!
|
|
24
|
-
const
|
|
25
|
-
for (const
|
|
26
|
-
const s2 =
|
|
27
|
-
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
|
|
30
|
-
|
|
29
|
+
const i2 = o2.join(N);
|
|
30
|
+
e2[a.X_FIELD_NAME] = i2;
|
|
31
31
|
}
|
|
32
|
-
const E =
|
|
33
|
-
for (const
|
|
34
|
-
for (const
|
|
35
|
-
const
|
|
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 (!
|
|
38
|
-
let
|
|
39
|
-
for (const
|
|
40
|
-
a2 = { uuid:
|
|
41
|
-
} else a2 = { uuid:
|
|
42
|
-
else a2 = { uuid:
|
|
43
|
-
null != a2 && (
|
|
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
|
|
45
|
+
const k = {};
|
|
46
46
|
if (w.length > 0) {
|
|
47
|
-
const
|
|
48
|
-
for (const
|
|
49
|
-
const l2 =
|
|
50
|
-
let
|
|
51
|
-
if (!
|
|
52
|
-
|
|
53
|
-
for (const
|
|
54
|
-
|
|
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
|
|
57
|
-
if (!isNaN(
|
|
58
|
-
const
|
|
59
|
-
isNaN || (
|
|
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
|
|
63
|
-
const
|
|
64
|
-
for (const s2 of
|
|
62
|
+
for (const e3 of w) {
|
|
63
|
+
const i2 = [];
|
|
64
|
+
for (const s2 of S) {
|
|
65
65
|
if (!s2) continue;
|
|
66
|
-
const l2 =
|
|
66
|
+
const l2 = o2[s2[a.X_FIELD_NAME]];
|
|
67
67
|
if (!l2) continue;
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
if (void 0 !==
|
|
72
|
-
const
|
|
73
|
-
let
|
|
74
|
-
void 0 ===
|
|
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
|
-
|
|
77
|
+
k[e3] = i2;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
S = e2;
|
|
80
80
|
}
|
|
81
|
-
let
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
for (const
|
|
97
|
-
for (const
|
|
98
|
-
const
|
|
99
|
-
let s2 =
|
|
100
|
-
void 0 ===
|
|
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
|
-
|
|
103
|
-
for (const
|
|
104
|
-
let
|
|
105
|
-
const s2 =
|
|
106
|
-
if (
|
|
107
|
-
let a2 =
|
|
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([]),
|
|
111
|
-
const
|
|
112
|
-
let
|
|
113
|
-
|
|
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" ===
|
|
116
|
-
else if ("variable" ===
|
|
117
|
-
let s3 =
|
|
118
|
-
|
|
119
|
-
} else "formula" ===
|
|
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
|
|
123
|
-
for (const
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
let s2 =
|
|
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 =
|
|
136
|
+
const a2 = o2.dynamicDatas ? o2.dynamicDatas : [];
|
|
129
137
|
for (let l2 = 0; l2 < s2.length; l2++) {
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
} else
|
|
135
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as
|
|
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
|
|
4
|
-
import
|
|
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
|
|
10
|
-
const
|
|
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
|
|
13
|
-
let
|
|
14
|
-
|
|
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
|
|
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 =
|
|
23
|
-
|
|
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
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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" ===
|
|
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
|
|
44
|
+
return w(e3);
|
|
42
45
|
}
|
|
43
|
-
L(
|
|
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 (
|
|
51
|
-
const e4 = J.value.length -
|
|
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(
|
|
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
|
|
58
|
-
k.$on(
|
|
60
|
+
return o(() => {
|
|
61
|
+
k.$on(U.value + "-pickFileDone", (e3) => {
|
|
59
62
|
G.value.pickFileDone(e3);
|
|
60
|
-
}),
|
|
61
|
-
const e3 = h(q, W), l2 = { showName: h(q,
|
|
62
|
-
g(l2,
|
|
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(
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
+
k.$off(U.value + "-pickFileDone");
|
|
69
|
+
}), N2({ addRequiredClass: function() {
|
|
70
|
+
_.value = P();
|
|
68
71
|
} }), (e3, l2) => {
|
|
69
|
-
const t2 =
|
|
70
|
-
return
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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",
|