super-page-runtime 2.3.41-sit1 → 2.3.42-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.
- package/dist/es/components/runtime/utils/api/api-util.js +7 -4
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +22 -22
- package/dist/es/components/runtime/utils/events/event-util.js +45 -43
- package/dist/es/components/runtime/utils/events/standard-event.js +17 -17
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +20 -20
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +94 -92
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +58 -56
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +166 -160
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +86 -86
- package/package.json +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { ElMessage as e, ElMessageBox as
|
|
2
|
-
import { functions as
|
|
3
|
-
import { standardEvents as
|
|
4
|
-
|
|
1
|
+
import { ElMessage as e, ElMessageBox as o, ElLoading as n } from "element-plus";
|
|
2
|
+
import { functions as t } from "./page-expose-util.js";
|
|
3
|
+
import { standardEvents as i } from "../events/standard-event.js";
|
|
4
|
+
t.standardEvents = i, window.$PageUtil = t, window.$message = e, window.$messageBox = o, Object.defineProperty(window, "$elLoading", { get() {
|
|
5
|
+
const e2 = n.service;
|
|
6
|
+
return Object.defineProperty(window, "$elLoading", { value: e2, writable: false, configurable: true }), e2;
|
|
7
|
+
}, configurable: true });
|
|
@@ -5,31 +5,31 @@ import { handleChartEvent as f } from "../events/event-util.js";
|
|
|
5
5
|
function c(c2, m, h, y) {
|
|
6
6
|
if (!y || !y.result) return;
|
|
7
7
|
s(h), h.tooltip || (h.tooltip = {}), f(c2, m, "beforeUpdateChart", h, { resultData: y });
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
|
|
8
|
+
const S = y && y.result ? y.result : {};
|
|
9
|
+
let g = y && y.groupValue ? y.groupValue : void 0;
|
|
10
|
+
const v = m.serviceDataField;
|
|
11
|
+
let F = null;
|
|
12
|
+
v ? F = S[v] : S && (F = Array.isArray(S) ? S : [S]), F || (F = []), m.runtime.dataConfig.runtimeData = F;
|
|
13
13
|
let D = m.props ? m.props.groups : null;
|
|
14
|
-
if (D || (D = []), !
|
|
15
|
-
|
|
16
|
-
for (const e2 of D)
|
|
14
|
+
if (D || (D = []), !g || 0 === g.length) {
|
|
15
|
+
g = [];
|
|
16
|
+
for (const e2 of D) g.push(e2.group);
|
|
17
17
|
}
|
|
18
18
|
const _ = {}, x = [], A = [];
|
|
19
|
-
for (const e2 of D) _[e2.group] = e2.target, e2.target && !x.includes(e2.target) && (x.push(e2.target),
|
|
19
|
+
for (const e2 of D) _[e2.group] = e2.target, e2.target && !x.includes(e2.target) && (x.push(e2.target), g.includes(e2.group) && A.push(e2.target));
|
|
20
20
|
let N = m.props ? m.props.mulGroupShow : "";
|
|
21
21
|
N = "break" == N ? "\r\n" : " ";
|
|
22
|
-
for (const t2 of
|
|
22
|
+
for (const t2 of F) {
|
|
23
23
|
if (!t2) continue;
|
|
24
24
|
const i2 = [];
|
|
25
|
-
for (const o3 of
|
|
25
|
+
for (const o3 of g) {
|
|
26
26
|
const s2 = _[o3], a2 = e(t2, s2, void 0);
|
|
27
27
|
a2 && i2.push(a2);
|
|
28
28
|
}
|
|
29
29
|
const o2 = i2.join(N);
|
|
30
30
|
t2[a.X_FIELD_NAME] = o2;
|
|
31
31
|
}
|
|
32
|
-
const E = m.items ? m.items : [], C = [], b = {}, w = [], I = {}, X = [], L = [], M = /* @__PURE__ */ new Set(), j = l(E,
|
|
32
|
+
const E = m.items ? m.items : [], C = [], b = {}, w = [], I = {}, X = [], L = [], M = /* @__PURE__ */ new Set(), j = l(E, F, M);
|
|
33
33
|
for (const e2 of M) X.push(e2);
|
|
34
34
|
for (const e2 of E) {
|
|
35
35
|
const t2 = e2.props ? e2.props : {}, i2 = t2.yaxisSource, o2 = t2.yaxisField, s2 = t2.isCumulative;
|
|
@@ -47,7 +47,7 @@ function c(c2, m, h, y) {
|
|
|
47
47
|
const k = {};
|
|
48
48
|
if (w.length > 0) {
|
|
49
49
|
const t2 = [], i2 = {};
|
|
50
|
-
for (const o2 of
|
|
50
|
+
for (const o2 of F) if (o2) for (const s2 of X) {
|
|
51
51
|
const l2 = o2[a.X_FIELD_NAME];
|
|
52
52
|
let r2 = i2[l2];
|
|
53
53
|
if (!r2) {
|
|
@@ -63,7 +63,7 @@ function c(c2, m, h, y) {
|
|
|
63
63
|
}
|
|
64
64
|
for (const t3 of w) {
|
|
65
65
|
const o2 = [];
|
|
66
|
-
for (const s2 of
|
|
66
|
+
for (const s2 of F) {
|
|
67
67
|
if (!s2) continue;
|
|
68
68
|
const l2 = i2[s2[a.X_FIELD_NAME]];
|
|
69
69
|
if (!l2) continue;
|
|
@@ -78,21 +78,21 @@ function c(c2, m, h, y) {
|
|
|
78
78
|
}
|
|
79
79
|
k[t3] = o2;
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
F = t2;
|
|
82
82
|
}
|
|
83
83
|
let T = {};
|
|
84
84
|
const V = /* @__PURE__ */ new Set(), $ = m.props ? m.props.orderByTarget : "";
|
|
85
85
|
for (const e2 of C) "formula" === e2.type && e2.isFormulaCalculateAfterSort && $ !== e2.uuid && V.add(e2.uuid + "_field");
|
|
86
|
-
for (const e2 of
|
|
86
|
+
for (const e2 of F) if (e2) {
|
|
87
87
|
p(e2, M, T);
|
|
88
88
|
for (const t2 of C) if ("formula" === t2.type && !t2.isFormulaCalculateAfterSort) {
|
|
89
89
|
const i2 = r(t2.formula, T, e2, c2);
|
|
90
90
|
e2[t2.uuid + "_field"] = i2;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
if (n(c2, m,
|
|
93
|
+
if (n(c2, m, F), V.size > 0) {
|
|
94
94
|
const e2 = {};
|
|
95
|
-
for (const t2 of
|
|
95
|
+
for (const t2 of F) {
|
|
96
96
|
p(t2, M, e2);
|
|
97
97
|
for (const i2 of C) if ("formula" === i2.type && V.has(i2.uuid + "_field")) {
|
|
98
98
|
const o2 = r(i2.formula, e2, t2, c2);
|
|
@@ -100,10 +100,10 @@ function c(c2, m, h, y) {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
F = u(c2, m, F, x, L);
|
|
104
104
|
const B = [];
|
|
105
105
|
T = {};
|
|
106
|
-
for (const t2 of
|
|
106
|
+
for (const t2 of F) if (t2) {
|
|
107
107
|
for (const i2 of M) {
|
|
108
108
|
const o2 = e(t2, i2, void 0);
|
|
109
109
|
let s2 = T[i2];
|
|
@@ -146,7 +146,7 @@ function c(c2, m, h, y) {
|
|
|
146
146
|
}
|
|
147
147
|
} else e2.data = i2 ? i2.data : [], U.push(e2);
|
|
148
148
|
}
|
|
149
|
-
h.series = U;
|
|
149
|
+
h.series = U, m.props && m.props.hideEmptySeries && (h.series = h.series.filter((e2) => (e2.data || []).some((e3) => null != e3)));
|
|
150
150
|
const z = m.defaultXaxis, Y = m.defaultYaxis;
|
|
151
151
|
if (h.isBar) {
|
|
152
152
|
if (Y) for (const e2 of Y) e2.data = B;
|
|
@@ -154,7 +154,7 @@ function c(c2, m, h, y) {
|
|
|
154
154
|
} else z && z.length > 0 && (z[0].data = B), h.xAxis = z, h.yAxis = Y;
|
|
155
155
|
d(h);
|
|
156
156
|
const q = m.props ? m.props.selGroupVariable : null;
|
|
157
|
-
!(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [], i(c2.entity, q, null)), f(c2, m, "afterUpdateChart", h, { resultData: y }), m.groupFields = A, m.cacheDatas =
|
|
157
|
+
!(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [], i(c2.entity, q, null)), f(c2, m, "afterUpdateChart", h, { resultData: y }), m.groupFields = A, m.cacheDatas = F, m.rawResult = y;
|
|
158
158
|
}
|
|
159
159
|
function p(t2, i2, o2) {
|
|
160
160
|
for (const s2 of i2) {
|
|
@@ -3,8 +3,8 @@ import { getAdditionalParamMap as t, standardEvents as i, judgeDataNumber as o,
|
|
|
3
3
|
import { isNotNeedValidateRequired as c, validateDataModelFunc as l } from "./validator-util.js";
|
|
4
4
|
import { getComponentRef as a, getComponentRefByCode as s } from "../global-refs.js";
|
|
5
5
|
import { ElMessage as f } from "element-plus";
|
|
6
|
-
import { analysisCondition as
|
|
7
|
-
import { getListCode as
|
|
6
|
+
import { analysisCondition as g } from "agilebuilder-ui/src/utils/util";
|
|
7
|
+
import { getListCode as m, deepCopy as p } from "../common-util.js";
|
|
8
8
|
import d from "../eventBus.js";
|
|
9
9
|
import { getValueFromSource as b } from "../page-helper-util.js";
|
|
10
10
|
import { expressJump as v } from "../table-utils.js";
|
|
@@ -41,15 +41,15 @@ function j(e2, n2) {
|
|
|
41
41
|
!function(e3, n3) {
|
|
42
42
|
if (!n3) return;
|
|
43
43
|
for (const t3 in n3) {
|
|
44
|
-
|
|
44
|
+
k(n3[t3], e3);
|
|
45
45
|
}
|
|
46
46
|
}(n2, t2), n2.customEvents = t2;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function O(e2, n2) {
|
|
50
50
|
if (e2.customEvents) return e2.customEvents[n2];
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function k(e2, n2) {
|
|
53
53
|
e2.get = function(e3) {
|
|
54
54
|
return e3 ? s(n2, e3) : void 0;
|
|
55
55
|
}, e2.getByUuid = function(e3) {
|
|
@@ -70,10 +70,10 @@ function h(e2, n2) {
|
|
|
70
70
|
}, e2.getPage = function() {
|
|
71
71
|
return n2 && n2.entity ? n2.entity.page : {};
|
|
72
72
|
}, e2.getCustomFunc = function(e3) {
|
|
73
|
-
return
|
|
73
|
+
return O(n2, e3);
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function h(e2) {
|
|
77
77
|
if (e2 && e2.customEvents) {
|
|
78
78
|
const n2 = e2.customEvents.filter((e3) => "customFunc" === e3.name && e3.jsContent);
|
|
79
79
|
n2 && n2.length > 0 && n2.forEach((e3) => {
|
|
@@ -108,7 +108,7 @@ function S(e2, t2, i2, u2, c2, l2, a2) {
|
|
|
108
108
|
return e3 && P.indexOf(e3) >= 0;
|
|
109
109
|
}(u2)) {
|
|
110
110
|
if (f2 = B(t2, s2, u2), c2) {
|
|
111
|
-
return
|
|
111
|
+
return G(t2, i2, f2, T(t2, i2, e2, l2));
|
|
112
112
|
}
|
|
113
113
|
return f2;
|
|
114
114
|
}
|
|
@@ -117,12 +117,12 @@ function S(e2, t2, i2, u2, c2, l2, a2) {
|
|
|
117
117
|
if (!u3) return;
|
|
118
118
|
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
119
119
|
if (r(e3)) return;
|
|
120
|
-
|
|
120
|
+
Q(i3).then((o2) => {
|
|
121
121
|
if (true === o2.canExecute) {
|
|
122
122
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
123
123
|
const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r2 = B(e3, o3, "beforeValidateForm");
|
|
124
124
|
let u4;
|
|
125
|
-
if (r2 && (u4 =
|
|
125
|
+
if (r2 && (u4 = G(e3, t3, r2, i3)), void 0 === u4 && (u4 = true), !u4) return void (e3.canClick = true);
|
|
126
126
|
n(u4) ? u4.then((n2) => {
|
|
127
127
|
n2 && true === n2 ? F(e3, t3, i3) : e3.canClick = true;
|
|
128
128
|
}).catch((n2) => {
|
|
@@ -154,24 +154,24 @@ function F(e2, t2, i2) {
|
|
|
154
154
|
if (!o3) return void (e2.canClick = true);
|
|
155
155
|
const r3 = L(e2, t2, i2);
|
|
156
156
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
157
|
-
n2 ?
|
|
157
|
+
n2 ? A(e2, t2, u2, i2) : e2.canClick = true;
|
|
158
158
|
}).catch((n2) => {
|
|
159
159
|
e2.canClick = true;
|
|
160
|
-
}) :
|
|
160
|
+
}) : A(e2, t2, u2, i2) : e2.canClick = true;
|
|
161
161
|
}).catch((n2) => {
|
|
162
162
|
e2.canClick = true;
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function U(e2, n2, t2, i2, o2) {
|
|
166
166
|
const r2 = D(e2, n2, t2, o2);
|
|
167
|
-
|
|
167
|
+
A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
|
|
168
168
|
}
|
|
169
169
|
function D(e2, n2, t2, i2) {
|
|
170
170
|
const o2 = n2.code, r2 = n2.version, u2 = R(n2, t2);
|
|
171
171
|
if (u2) {
|
|
172
172
|
const e3 = a(n2, u2), t3 = e3 ? e3.getSelections() : null, c2 = e3 ? e3.getSelectionIds() : null;
|
|
173
|
-
i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode =
|
|
174
|
-
|
|
173
|
+
i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = m(o2, r2, u2);
|
|
174
|
+
I(n2) && (i2.selections = t3, i2.id = c2 && c2.length > 0 ? c2[0] : null, i2.ids = c2);
|
|
175
175
|
const l2 = e3 ? e3.getTableConfigure() : null;
|
|
176
176
|
i2.tableConfigure = l2;
|
|
177
177
|
}
|
|
@@ -180,30 +180,30 @@ function D(e2, n2, t2, i2) {
|
|
|
180
180
|
function L(e2, n2, t2) {
|
|
181
181
|
const i2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
182
182
|
let o2;
|
|
183
|
-
return i2 && (o2 =
|
|
183
|
+
return i2 && (o2 = G(e2, n2, i2, null, t2)), void 0 === o2 || o2;
|
|
184
184
|
}
|
|
185
185
|
function _(e2, n2, t2) {
|
|
186
186
|
const i2 = e2.code + "_";
|
|
187
187
|
d.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function I(e2, n2) {
|
|
190
190
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function V(e2, t2, i2) {
|
|
193
193
|
const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, o2, "afterClick");
|
|
194
194
|
if (r2) {
|
|
195
|
-
const o3 =
|
|
195
|
+
const o3 = G(e2, t2, r2, null, i2);
|
|
196
196
|
n(o3) ? o3.finally(() => {
|
|
197
197
|
e2.canClick = true;
|
|
198
198
|
}) : e2.canClick = true;
|
|
199
199
|
} else e2.canClick = true;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function q(e2, n2, t2, i2, o2, r2) {
|
|
202
202
|
i2 ? (e2.result = o2, e2.canClick = true) : u(e2, n2, o2, "", r2);
|
|
203
203
|
const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
204
|
-
c2 &&
|
|
204
|
+
c2 && G(e2, n2, c2, t2);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function A(e2, t2, i2, o2) {
|
|
207
207
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
208
208
|
if (u2 && u2 instanceof Array) {
|
|
209
209
|
const n2 = function(e3) {
|
|
@@ -215,18 +215,18 @@ function I(e2, t2, i2, o2) {
|
|
|
215
215
|
i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = p(t2), r2.props.linkPage = u2);
|
|
216
216
|
}
|
|
217
217
|
u2 && u2.jumpPageUrl ? (e2.canClick = true, _(e2, r2, o2)) : function(e3, t3, i3, o3) {
|
|
218
|
-
const r3 = i3, u3 =
|
|
218
|
+
const r3 = i3, u3 = I(e3);
|
|
219
219
|
if (r3) {
|
|
220
|
-
const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 =
|
|
220
|
+
const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = G(e3, t3, i4, o3);
|
|
221
221
|
if (function(e4, n2) {
|
|
222
222
|
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);
|
|
223
223
|
}(c2, l2)) return void (e3.canClick = true);
|
|
224
224
|
n(a2) ? a2.then((n2) => {
|
|
225
|
-
n2 ?
|
|
225
|
+
n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
|
|
226
226
|
}).catch((n2) => {
|
|
227
227
|
e3.canClick = true;
|
|
228
|
-
}) :
|
|
229
|
-
} else
|
|
228
|
+
}) : q(e3, t3, o3, c2, a2, u3);
|
|
229
|
+
} else q(e3, t3, o3, false, null, u3);
|
|
230
230
|
}(e2, t2, i2, o2);
|
|
231
231
|
}
|
|
232
232
|
function $(e2, n2) {
|
|
@@ -262,7 +262,7 @@ function z(e2, n2, t2) {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function G(e2, n2, t2, i2, o2) {
|
|
266
266
|
if (t2) {
|
|
267
267
|
if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
268
268
|
try {
|
|
@@ -279,8 +279,8 @@ function Q(e2, n2, t2, i2, o2) {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
const n2 = e2.pageContext, i2 = e2.configureObj, o2 =
|
|
282
|
+
function Q(e2) {
|
|
283
|
+
const n2 = e2.pageContext, i2 = e2.configureObj, o2 = I(n2);
|
|
284
284
|
let r2 = [];
|
|
285
285
|
if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
286
286
|
else {
|
|
@@ -292,24 +292,26 @@ function W(e2) {
|
|
|
292
292
|
if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
|
|
293
293
|
else {
|
|
294
294
|
const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
295
|
-
let a2, s2,
|
|
295
|
+
let a2, s2, m2 = true;
|
|
296
296
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
297
297
|
const t2 = r2[e4];
|
|
298
298
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
299
299
|
const r3 = u2[e5], f2 = r3.toolTips, p2 = r3.conditionList;
|
|
300
|
-
if (!
|
|
301
|
-
|
|
300
|
+
if (!g(p2, t2, o3, i4, c2, l2, null, n2)) {
|
|
301
|
+
m2 = false, a2 = f2, s2 = t2;
|
|
302
302
|
break;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
m2 ? e3({ canExecute: true }) : (a2 && f({ showClose: true, type: "warning", message: a2 }), e3({ canExecute: false, message: a2, failEntity: s2 }));
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function W(e2, n2, t2, i2) {
|
|
311
311
|
var o2;
|
|
312
|
-
n2 && (J("
|
|
312
|
+
n2 && (J("afterGridConfigInit", w(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "afterGridConfigInit", o2), e2), J("loadBeforeSend", function(e3) {
|
|
313
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeListLoad", e3);
|
|
314
|
+
}({ pageContext: t2, configureObj: i2 }), e2), J("beforeRequest", function(e3) {
|
|
313
315
|
return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
314
316
|
}({ pageContext: t2, configureObj: i2 }), e2), J("gridDataLoaded", function(e3) {
|
|
315
317
|
return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
@@ -386,7 +388,7 @@ function ce(n2) {
|
|
|
386
388
|
return t2;
|
|
387
389
|
}
|
|
388
390
|
function le(e2, n2, t2, i2, o2) {
|
|
389
|
-
return
|
|
391
|
+
return G(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
|
|
390
392
|
}
|
|
391
393
|
function ae(n2, t2) {
|
|
392
394
|
let i2 = true;
|
|
@@ -400,11 +402,11 @@ function ae(n2, t2) {
|
|
|
400
402
|
return i2;
|
|
401
403
|
}
|
|
402
404
|
export {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
+
k as appendDefaultMethods,
|
|
406
|
+
Q as canExecuteButton,
|
|
405
407
|
Y as cellClick,
|
|
406
408
|
Z as cellDblClick,
|
|
407
|
-
|
|
409
|
+
V as doAfterClickEvent,
|
|
408
410
|
L as doBeforeClickEvent,
|
|
409
411
|
_ as doClickJumpPageEvent,
|
|
410
412
|
U as doSuffixOrPrefixClickEvent,
|
|
@@ -413,7 +415,7 @@ export {
|
|
|
413
415
|
ue as fileUploadDeleted,
|
|
414
416
|
oe as fileUploadUploaded,
|
|
415
417
|
z as getClickEventFuncByType,
|
|
416
|
-
|
|
418
|
+
O as getCustomFunc,
|
|
417
419
|
D as getDefaultEventParams,
|
|
418
420
|
B as getEventFuncByType,
|
|
419
421
|
H as getEventNameByType,
|
|
@@ -430,8 +432,8 @@ export {
|
|
|
430
432
|
j as initPageEvents,
|
|
431
433
|
ce as isShowComponent,
|
|
432
434
|
ae as isShowMobileEvent,
|
|
433
|
-
|
|
435
|
+
h as removeCustomFuncFromWindow,
|
|
434
436
|
ee as rowClick,
|
|
435
437
|
ne as rowDblClick,
|
|
436
|
-
|
|
438
|
+
W as setTableEvents
|
|
437
439
|
};
|
|
@@ -9,7 +9,7 @@ import k from "axios";
|
|
|
9
9
|
import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as v } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as I, getDefaultValue as S, getModelFields as R } from "../page-init-util.js";
|
|
12
|
-
import { caculateShowCondition as
|
|
12
|
+
import { caculateShowCondition as M, updateChartDatasources as x, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as E, getCurrentUserFileTasks as U, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
@@ -355,7 +355,7 @@ function z(e2) {
|
|
|
355
355
|
let s2 = null;
|
|
356
356
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
357
357
|
const i2 = s2 ? s2.state : void 0;
|
|
358
|
-
s2 && (s2.state = "disabled"),
|
|
358
|
+
s2 && (s2.state = "disabled"), x(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
359
359
|
s2 && (s2.state = i2);
|
|
360
360
|
}).catch(() => {
|
|
361
361
|
s2 && (s2.state = i2);
|
|
@@ -625,11 +625,11 @@ function pe(e2, s2) {
|
|
|
625
625
|
f2.append("additionalParamMapStr", JSON.stringify(S2));
|
|
626
626
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
627
627
|
f2.append("isPermission", R2 + "");
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
const
|
|
631
|
-
let N2 = t(
|
|
632
|
-
N2 = n(N2,
|
|
628
|
+
const M2 = i2.systemCode;
|
|
629
|
+
M2 && f2.append("systemCode", M2);
|
|
630
|
+
const x2 = i2.backendUrl;
|
|
631
|
+
let N2 = t(x2, i2.isTest) + "/dsc/commons/import-data";
|
|
632
|
+
N2 = n(N2, M2, x2, i2.isTest), c.post(N2, f2).then((e3) => {
|
|
633
633
|
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Ve(i2);
|
|
634
634
|
else {
|
|
635
635
|
let t2 = false;
|
|
@@ -653,7 +653,7 @@ function me(e2) {
|
|
|
653
653
|
let r2 = I(n2, t2);
|
|
654
654
|
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
655
655
|
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
656
|
-
t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
|
|
656
|
+
t2.dataTypeMaps && Object.keys(t2.dataTypeMaps).length > 0 && (c2.dataTypeMap = t2.dataTypeMaps), t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
|
|
657
657
|
const l2 = n2.props.base.conversionCodes;
|
|
658
658
|
l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2));
|
|
659
659
|
const u2 = We(n2);
|
|
@@ -722,7 +722,7 @@ function Ce(e2) {
|
|
|
722
722
|
let n3 = false;
|
|
723
723
|
if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
|
|
724
724
|
const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
725
|
-
n3 =
|
|
725
|
+
n3 = M(t3, s2);
|
|
726
726
|
}
|
|
727
727
|
true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
728
728
|
} else t2(true);
|
|
@@ -753,7 +753,7 @@ function Te(e2) {
|
|
|
753
753
|
t2 = o2.config;
|
|
754
754
|
break;
|
|
755
755
|
}
|
|
756
|
-
if (
|
|
756
|
+
if (M(e2.pageContext, o2.conditions)) {
|
|
757
757
|
t2 = o2.config;
|
|
758
758
|
break;
|
|
759
759
|
}
|
|
@@ -806,7 +806,7 @@ async function Pe(e2, o2) {
|
|
|
806
806
|
if (void 0 === n3 || true === n3) {
|
|
807
807
|
n3 = true;
|
|
808
808
|
const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
809
|
-
n3 =
|
|
809
|
+
n3 = M(t3, s3);
|
|
810
810
|
}
|
|
811
811
|
true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
812
812
|
t2(e4);
|
|
@@ -871,7 +871,7 @@ function Re(e2) {
|
|
|
871
871
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
872
872
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Me(e2, o2) {
|
|
875
875
|
if (o2) {
|
|
876
876
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
877
877
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -884,7 +884,7 @@ function xe(e2, o2) {
|
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function xe(e2) {
|
|
888
888
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
889
889
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
890
890
|
const r2 = me(e2);
|
|
@@ -1011,13 +1011,13 @@ function Ae(e2, t2, n2, o2, s2, i2) {
|
|
|
1011
1011
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
1012
1012
|
e2.workflowOpinion.showOpinionBox = true;
|
|
1013
1013
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
1014
|
-
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox =
|
|
1014
|
+
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
|
|
1015
1015
|
}
|
|
1016
1016
|
let t3 = false;
|
|
1017
1017
|
if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
|
|
1018
1018
|
if (t3 = true, true === t3) {
|
|
1019
1019
|
const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
|
|
1020
|
-
n3 && n3.length > 0 && (t3 =
|
|
1020
|
+
n3 && n3.length > 0 && (t3 = M(e2, n3));
|
|
1021
1021
|
}
|
|
1022
1022
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1023
1023
|
}
|
|
@@ -1201,7 +1201,7 @@ export {
|
|
|
1201
1201
|
Pe as doCreateCopyTask,
|
|
1202
1202
|
Ve as doFileTaskFunc,
|
|
1203
1203
|
pe as doImportFinally,
|
|
1204
|
-
|
|
1204
|
+
Me as doRemoveSigners,
|
|
1205
1205
|
Ne as doRemoveTransactors,
|
|
1206
1206
|
Se as doReturnTaskTo,
|
|
1207
1207
|
K as exportFormReport,
|
|
@@ -1209,7 +1209,7 @@ export {
|
|
|
1209
1209
|
ke as getAdditionalParamMap,
|
|
1210
1210
|
_e as getFormData,
|
|
1211
1211
|
Re as getRemoveSigner,
|
|
1212
|
-
|
|
1212
|
+
xe as getRemoveTransactor,
|
|
1213
1213
|
ne as getSaveFormRequest,
|
|
1214
1214
|
te as getSaveFormRequestWithRow,
|
|
1215
1215
|
Ie as getTaskInformitions,
|
|
@@ -145,7 +145,7 @@ function y(e2, n2, r2, l2) {
|
|
|
145
145
|
}(n4, e4)) return void l4(false);
|
|
146
146
|
const r6 = true, c2 = p(R2), E2 = n4.hiddenNotValidatorCodes;
|
|
147
147
|
E2 && E2.size > 0 && E2.forEach((e5) => {
|
|
148
|
-
c2.subRules && delete c2.subRules[e5], c2.rules && delete c2.rules[e5];
|
|
148
|
+
delete c2[e5], c2.subRules && delete c2.subRules[e5], c2.rules && delete c2.rules[e5];
|
|
149
149
|
}), c2.subRules && (Object.keys(c2.subRules).length > 0 ? c2.totalSubRules || (c2.totalSubRules = {}) : delete c2.subRules);
|
|
150
150
|
const v2 = window.$vueApp.config.globalProperties.$formValidator(e4, c2, g3, f3, m3, d3, b2, r6);
|
|
151
151
|
y2 = v2.msg, o2 = v2.field, u3 = v2.listCode, h2 = v2.rowIndex, w2 = v2.pageNum;
|
|
@@ -7,7 +7,7 @@ import { functions as l } from "./api/page-expose-util.js";
|
|
|
7
7
|
import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
9
|
import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
-
function
|
|
10
|
+
function m(t2) {
|
|
11
11
|
return new Promise((n2, i2) => {
|
|
12
12
|
(function(t3) {
|
|
13
13
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
|
|
@@ -22,7 +22,7 @@ function f(t2) {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function f(e2, t2) {
|
|
26
26
|
return new Promise((n2, i2) => {
|
|
27
27
|
e2 ? b().then((s2) => {
|
|
28
28
|
s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? x(e2, t2, e2.systemVersion).then((t3) => {
|
|
@@ -130,7 +130,7 @@ function C(e2, t2) {
|
|
|
130
130
|
const n2 = a(e2);
|
|
131
131
|
if (n2) {
|
|
132
132
|
const e3 = JSON.parse(n2);
|
|
133
|
-
Object.assign(t2, e3);
|
|
133
|
+
e3.jumpFrom && (window.jumpFrom = e3.jumpFrom), Object.assign(t2, e3);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -150,14 +150,14 @@ function A(e2, t2, n2) {
|
|
|
150
150
|
if (null == l2) {
|
|
151
151
|
const s2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
|
|
152
152
|
if (s2) try {
|
|
153
|
-
const t3 =
|
|
154
|
-
if (M(t3))
|
|
153
|
+
const t3 = I(e2, s2, r2, a2);
|
|
154
|
+
if (M(t3)) j(o2, i2, t3, l3);
|
|
155
155
|
else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
|
|
156
156
|
const t4 = n3.moreDefaultValue;
|
|
157
157
|
for (let n4 = 0; n4 < t4.length; n4++) {
|
|
158
|
-
const s3 =
|
|
158
|
+
const s3 = I(e2, t4[n4], r2, a2);
|
|
159
159
|
if (M(s3)) {
|
|
160
|
-
|
|
160
|
+
j(o2, i2, s3, l3);
|
|
161
161
|
break;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -171,10 +171,10 @@ function A(e2, t2, n2) {
|
|
|
171
171
|
function M(e2) {
|
|
172
172
|
return null != e2 && "" !== e2;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function j(e2, t2, n2, i2) {
|
|
175
175
|
!Array.isArray(n2) || i2 ? r(e2, t2, n2) : r(e2, t2, n2.join(","));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function I(e2, t2, n2, i2) {
|
|
178
178
|
let s2;
|
|
179
179
|
if (t2 && (s2 = o(e2, t2), null != s2 && null != s2 && n2)) {
|
|
180
180
|
let e3 = false;
|
|
@@ -182,7 +182,7 @@ function T(e2, t2, n2, i2) {
|
|
|
182
182
|
}
|
|
183
183
|
return s2;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function T(e2, t2) {
|
|
186
186
|
var _a, _b;
|
|
187
187
|
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
188
188
|
const n2 = [];
|
|
@@ -215,12 +215,12 @@ function x(n2, i2, s2) {
|
|
|
215
215
|
const l2 = n2.code;
|
|
216
216
|
return r2 && Object.keys(r2) > 0 && (a2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
218
|
+
const F = ["button-detail", "print-label"];
|
|
219
|
+
function R(e2, t2, n2) {
|
|
220
220
|
var _a, _b;
|
|
221
221
|
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
|
|
222
222
|
let r2 = false;
|
|
223
|
-
if (o2 &&
|
|
223
|
+
if (o2 && F.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
224
224
|
const n3 = e2.fieldPermissionMap.get("all_fields");
|
|
225
225
|
false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
226
226
|
}
|
|
@@ -246,7 +246,7 @@ function _(e2, t2, n2) {
|
|
|
246
246
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function _(e2, t2) {
|
|
250
250
|
if (e2.initInfo) {
|
|
251
251
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
|
|
252
252
|
const i2 = e2.initInfo[n2];
|
|
@@ -262,17 +262,17 @@ function V(e2, t2) {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
export {
|
|
265
|
-
|
|
265
|
+
_ as controlObjectRenderState,
|
|
266
266
|
y as convertToPageContext,
|
|
267
|
-
|
|
267
|
+
I as getDefaultValue,
|
|
268
268
|
A as getFormModelFields,
|
|
269
269
|
k as getModelFields,
|
|
270
|
-
|
|
270
|
+
T as getPermissionCodes,
|
|
271
271
|
P as packageAdditionalMapWithLocationSearch,
|
|
272
272
|
E as packageAdditionalMapWithPageRequest,
|
|
273
273
|
v as packageAdditionalMapWithRoute,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
R as packageFormRules,
|
|
275
|
+
m as queryPageDesignByCode,
|
|
276
|
+
f as queryPageDesignWhenPreview,
|
|
277
277
|
x as queryPageSuperGrids
|
|
278
278
|
};
|