super-page-runtime 2.3.42-sit1 → 2.3.43-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/events/validator-util.js +161 -118
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -25
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +20 -11
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +52 -52
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -12
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +34 -15
- package/package.json +2 -2
|
@@ -69,10 +69,10 @@ function g(e2, t2, s2) {
|
|
|
69
69
|
r2++;
|
|
70
70
|
}), n2;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
72
|
+
function h(e2, t2, s2, n2, r2, i2) {
|
|
73
|
+
return y(e2, t2, s2, n2, true, r2, i2);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function b(e2) {
|
|
76
76
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
77
77
|
if (t2.indexOf(".") >= 0) {
|
|
78
78
|
let s2 = [];
|
|
@@ -80,55 +80,73 @@ function h(e2) {
|
|
|
80
80
|
}
|
|
81
81
|
}), e2;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
83
|
+
function y(n2, r2, o2, l2, a2, u2, f2) {
|
|
84
|
+
var _a;
|
|
85
|
+
let d2 = b(r2);
|
|
86
|
+
if (r2 && null !== r2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
|
|
87
|
+
const m2 = ((_a = f2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
88
|
+
let p2;
|
|
89
|
+
return new e(d2).validate(n2, { first: !m2 }, (e2, g2) => {
|
|
90
|
+
if (m2) {
|
|
91
|
+
if (p2 = e2 || true, true === p2 && true === a2 && d2) {
|
|
92
|
+
const e3 = /[A-Z]+/, t2 = Object.keys(d2);
|
|
93
|
+
if (t2.some((t3) => e3.test(t3) && void 0 !== n2[t3.toLowerCase()])) {
|
|
94
|
+
const s2 = JSON.parse(JSON.stringify(n2));
|
|
95
|
+
t2.forEach((t3) => {
|
|
96
|
+
e3.test(t3) && void 0 !== n2[t3.toLowerCase()] && (s2[t3.toUpperCase()] = n2[t3.toLowerCase()], delete s2[t3.toLowerCase()]);
|
|
97
|
+
}), p2 = y(s2, r2, o2, l2, false, u2, f2);
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
true !== p2 && t({ showClose: true, message: i().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
|
|
101
|
+
} else {
|
|
102
|
+
let i2;
|
|
103
|
+
if (e2) {
|
|
104
|
+
p2 = e2[0].message, i2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
|
|
105
|
+
const n3 = s(f2, i2);
|
|
106
|
+
if (n3 && n3.addRequiredClass) {
|
|
107
|
+
n3.addRequiredClass();
|
|
108
|
+
try {
|
|
109
|
+
c(f2, i2);
|
|
110
|
+
} catch (e3) {
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
} else p2 = true;
|
|
114
|
+
if (i2 && true === a2) {
|
|
115
|
+
if (/[A-Z]+/.test(i2) && void 0 !== n2[i2.toLowerCase()]) {
|
|
116
|
+
const e3 = JSON.parse(JSON.stringify(n2));
|
|
117
|
+
e3[i2.toUpperCase()] = n2[i2.toLowerCase()], delete e3[i2.toLowerCase()], p2 = y(e3, r2, o2, l2, false, u2, f2);
|
|
118
|
+
}
|
|
103
119
|
}
|
|
104
120
|
}
|
|
105
|
-
}),
|
|
121
|
+
}), p2;
|
|
106
122
|
}
|
|
107
|
-
function
|
|
123
|
+
function w(e2, n2, r2, l2) {
|
|
108
124
|
if (r2) {
|
|
109
|
-
if (
|
|
125
|
+
if (J(r2.isStandard, r2.event)) return new Promise((e3, t2) => {
|
|
110
126
|
e3(true);
|
|
111
127
|
});
|
|
112
128
|
}
|
|
113
|
-
const f2 = e2.entity.data,
|
|
114
|
-
return null !=
|
|
129
|
+
const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
|
|
130
|
+
return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, n3, r3, l3) {
|
|
115
131
|
if (e3) {
|
|
116
132
|
return u(l3) ? function(e4, n4, r4) {
|
|
117
133
|
return new Promise((l4, u2) => {
|
|
118
|
-
|
|
119
|
-
|
|
134
|
+
var _a;
|
|
135
|
+
const f3 = o(n4), c3 = n4.entity.context, d3 = n4.entity.task, m3 = true, g2 = n4.subTablePageInfo, h2 = ((_a = n4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
136
|
+
x(e4, n4, r4).then((r5) => {
|
|
120
137
|
if (r5) {
|
|
121
|
-
let o2
|
|
122
|
-
const
|
|
123
|
-
|
|
138
|
+
let o2 = r5;
|
|
139
|
+
const u3 = n4.workflowRules;
|
|
140
|
+
let b2 = null, y2 = null;
|
|
141
|
+
if (u3) {
|
|
124
142
|
if (!function(e5, n5) {
|
|
125
|
-
var
|
|
143
|
+
var _a2, _b, _c, _d;
|
|
126
144
|
if (!e5.actionPermissions) return true;
|
|
127
145
|
const r7 = Object.keys(e5.actionPermissions);
|
|
128
146
|
for (let o3 = 0; o3 < r7.length; o3++) {
|
|
129
147
|
const l5 = r7[o3], u4 = e5.actionPermissions[l5];
|
|
130
148
|
if (u4 && u4.notEmpty) {
|
|
131
|
-
if ((
|
|
149
|
+
if ((_a2 = e5.hiddenNotValidatorCodes) == null ? void 0 : _a2.has(l5)) continue;
|
|
132
150
|
let r8 = false;
|
|
133
151
|
if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (r8 = true) : r8 = true, r8) {
|
|
134
152
|
const r9 = s(e5, l5);
|
|
@@ -143,35 +161,17 @@ function y(e2, n2, r2, l2) {
|
|
|
143
161
|
}
|
|
144
162
|
return true;
|
|
145
163
|
}(n4, e4)) return void l4(false);
|
|
146
|
-
const r6 = true
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
e5.addRequiredClass(o2, h2, w2);
|
|
158
|
-
try {
|
|
159
|
-
c(n4, u3), e5.scrollToCell({ fieldName: o2, rowIndex: h2, pageNum: w2 });
|
|
160
|
-
} catch (e6) {
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
} else {
|
|
164
|
-
const e5 = s(n4, o2);
|
|
165
|
-
if (e5 && e5.addRequiredClass) {
|
|
166
|
-
e5.addRequiredClass();
|
|
167
|
-
try {
|
|
168
|
-
c(n4, o2);
|
|
169
|
-
} catch (e6) {
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
l4(false);
|
|
174
|
-
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
|
|
164
|
+
const r6 = true;
|
|
165
|
+
b2 = function(e5, t2) {
|
|
166
|
+
const s2 = p(e5);
|
|
167
|
+
t2 && t2.size > 0 && t2.forEach((e6) => {
|
|
168
|
+
delete s2[e6], s2.subRules && delete s2.subRules[e6], s2.rules && delete s2.rules[e6];
|
|
169
|
+
});
|
|
170
|
+
s2.subRules && (Object.keys(s2.subRules).length > 0 ? s2.totalSubRules || (s2.totalSubRules = {}) : delete s2.subRules);
|
|
171
|
+
return s2;
|
|
172
|
+
}(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, b2, m3, f3, d3, c3, g2, r6, { returnAllErrors: h2 }), o2 = y2 && Array.isArray(y2) ? 0 === y2.length || i().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
|
|
173
|
+
} else o2 = true;
|
|
174
|
+
true !== o2 ? (t({ showClose: true, message: o2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (C(n4, y2), k(n4, P(n4, y2))) : y2.listCode ? (R(n4, y2), E(n4, y2)) : (R(n4, y2), v(n4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
|
|
175
175
|
} else u2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
176
176
|
}).catch((e5) => {
|
|
177
177
|
u2(e5);
|
|
@@ -179,7 +179,7 @@ function y(e2, n2, r2, l2) {
|
|
|
179
179
|
});
|
|
180
180
|
}(n3, l3, r3) : function(e4, t2, s2) {
|
|
181
181
|
return new Promise((n4, r4) => {
|
|
182
|
-
|
|
182
|
+
x(e4, t2, s2).then((t3) => {
|
|
183
183
|
if (t3) {
|
|
184
184
|
const t4 = JSON.parse(JSON.stringify(e4));
|
|
185
185
|
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
|
|
@@ -193,9 +193,50 @@ function y(e2, n2, r2, l2) {
|
|
|
193
193
|
return new Promise((e4, t2) => {
|
|
194
194
|
e4(true);
|
|
195
195
|
});
|
|
196
|
-
}(l2,
|
|
196
|
+
}(l2, c2, d2, e2);
|
|
197
|
+
}
|
|
198
|
+
function R(e2, t2) {
|
|
199
|
+
if (t2.listCode) {
|
|
200
|
+
const n2 = s(e2, t2.listCode);
|
|
201
|
+
(n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass(t2.field, t2.rowIndex, t2.pageNum);
|
|
202
|
+
} else if (t2.field) {
|
|
203
|
+
const n2 = s(e2, t2.field);
|
|
204
|
+
(n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function C(e2, t2) {
|
|
208
|
+
t2.forEach((t3) => R(e2, t3));
|
|
197
209
|
}
|
|
198
|
-
function
|
|
210
|
+
function E(e2, t2) {
|
|
211
|
+
try {
|
|
212
|
+
c(e2, t2.listCode);
|
|
213
|
+
const n2 = s(e2, t2.listCode);
|
|
214
|
+
(n2 == null ? void 0 : n2.scrollToCell) && n2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
|
|
215
|
+
} catch (e3) {
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
function v(e2, t2) {
|
|
219
|
+
try {
|
|
220
|
+
c(e2, t2);
|
|
221
|
+
} catch (e3) {
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function P(e2, t2) {
|
|
225
|
+
let n2 = null, r2 = 1 / 0;
|
|
226
|
+
return t2.forEach((t3) => {
|
|
227
|
+
const i2 = t3.listCode || t3.field;
|
|
228
|
+
if (!i2) return;
|
|
229
|
+
const o2 = s(e2, i2), l2 = (o2 == null ? void 0 : o2.$el) || o2;
|
|
230
|
+
if (l2 == null ? void 0 : l2.getBoundingClientRect) {
|
|
231
|
+
const e3 = l2.getBoundingClientRect();
|
|
232
|
+
e3.top < r2 && (r2 = e3.top, n2 = t3);
|
|
233
|
+
}
|
|
234
|
+
}), n2;
|
|
235
|
+
}
|
|
236
|
+
function k(e2, t2) {
|
|
237
|
+
t2 && (t2.listCode ? E(e2, t2) : t2.field && v(e2, t2.field));
|
|
238
|
+
}
|
|
239
|
+
function O(e2) {
|
|
199
240
|
return new Promise((t2, s2) => {
|
|
200
241
|
const r2 = [], i2 = e2.customValidatorUuids;
|
|
201
242
|
i2 && i2.forEach((t3) => {
|
|
@@ -206,39 +247,41 @@ function R(e2) {
|
|
|
206
247
|
}) : t2(true);
|
|
207
248
|
});
|
|
208
249
|
}
|
|
209
|
-
function
|
|
250
|
+
function x(e2, t2, s2) {
|
|
210
251
|
return new Promise((n2, r2) => {
|
|
252
|
+
var _a;
|
|
211
253
|
const o2 = JSON.parse(JSON.stringify(e2)), a2 = p(s2), u2 = t2.hiddenNotValidatorCodes;
|
|
212
254
|
if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
|
|
213
255
|
delete a2[e3];
|
|
214
256
|
}), a2 && 0 !== Object.keys(a2).length) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
257
|
+
const e3 = h(o2, a2, null, null, true, t2);
|
|
258
|
+
if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (C(t2, e3), k(t2, P(t2, e3)), n2(false)), true === e3) {
|
|
259
|
+
if (true === T(t2)) {
|
|
260
|
+
const e4 = q(t2);
|
|
261
|
+
e4 && l(e4) ? e4.then((e5) => {
|
|
262
|
+
e5 ? O(t2).then((e6) => {
|
|
263
|
+
n2(e6);
|
|
221
264
|
}) : n2(false);
|
|
222
|
-
}) :
|
|
223
|
-
n2(
|
|
265
|
+
}) : O(t2).then((e5) => {
|
|
266
|
+
n2(e5);
|
|
224
267
|
});
|
|
225
268
|
} else r2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
226
269
|
} else r2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
227
270
|
} else {
|
|
228
|
-
if (true ===
|
|
229
|
-
const e3 =
|
|
271
|
+
if (true === T(t2)) {
|
|
272
|
+
const e3 = q(t2);
|
|
230
273
|
e3 && l(e3) ? e3.then((e4) => {
|
|
231
|
-
e4 ?
|
|
274
|
+
e4 ? O(t2).then((e5) => {
|
|
232
275
|
n2(e5);
|
|
233
276
|
}) : n2(false);
|
|
234
|
-
}) :
|
|
277
|
+
}) : O(t2).then((e4) => {
|
|
235
278
|
n2(e4);
|
|
236
279
|
});
|
|
237
280
|
} else r2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
238
281
|
}
|
|
239
282
|
});
|
|
240
283
|
}
|
|
241
|
-
function
|
|
284
|
+
function M(e2, t2, s2) {
|
|
242
285
|
if (!t2) return s2;
|
|
243
286
|
s2 || (s2 = {});
|
|
244
287
|
const n2 = u(e2), r2 = Object.keys(t2), i2 = t2;
|
|
@@ -248,10 +291,10 @@ function v(e2, t2, s2) {
|
|
|
248
291
|
Object.keys(e4).forEach((t3) => {
|
|
249
292
|
s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
|
|
250
293
|
});
|
|
251
|
-
} else
|
|
252
|
-
}),
|
|
294
|
+
} else _(i2[e3]), n2 ? (s2.rules[e3] = i2[e3], s2[e3] && (s2[e3] = i2[e3])) : s2[e3] = i2[e3];
|
|
295
|
+
}), b(s2);
|
|
253
296
|
}
|
|
254
|
-
function
|
|
297
|
+
function T(e2) {
|
|
255
298
|
var _a;
|
|
256
299
|
if (!e2) return true;
|
|
257
300
|
if (u(e2)) return true;
|
|
@@ -286,32 +329,32 @@ function P(e2) {
|
|
|
286
329
|
}
|
|
287
330
|
return true;
|
|
288
331
|
}
|
|
289
|
-
function
|
|
332
|
+
function j(e2) {
|
|
290
333
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
291
334
|
const t2 = {}, s2 = Object.keys(e2);
|
|
292
335
|
for (let n2 = 0; n2 < s2.length; n2++) {
|
|
293
336
|
const r2 = s2[n2], i2 = e2[r2];
|
|
294
|
-
|
|
337
|
+
N(i2), r2.indexOf(".") > 0 ? g(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
|
|
295
338
|
}
|
|
296
339
|
return t2;
|
|
297
340
|
}
|
|
298
|
-
function
|
|
341
|
+
function N(e2, t2) {
|
|
299
342
|
e2.forEach((e3) => {
|
|
300
343
|
e3.message;
|
|
301
344
|
const t3 = e3.label, s2 = i().t(t3);
|
|
302
345
|
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
|
|
303
346
|
});
|
|
304
347
|
}
|
|
305
|
-
function
|
|
348
|
+
function A(e2) {
|
|
306
349
|
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = o(e2), r2 = e2.entity.context, i2 = e2.entity.task;
|
|
307
350
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
308
351
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
309
352
|
});
|
|
310
353
|
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, r2);
|
|
311
354
|
const a2 = e2.customRules;
|
|
312
|
-
return l2 =
|
|
355
|
+
return l2 = M(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
|
|
313
356
|
}
|
|
314
|
-
function
|
|
357
|
+
function q(e2) {
|
|
315
358
|
const t2 = [];
|
|
316
359
|
return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((s2) => {
|
|
317
360
|
s2.events.forEach((n2) => {
|
|
@@ -329,7 +372,7 @@ function x(e2) {
|
|
|
329
372
|
}) : e3(true);
|
|
330
373
|
}) : null;
|
|
331
374
|
}
|
|
332
|
-
function
|
|
375
|
+
function S(e2, t2) {
|
|
333
376
|
if (!t2) return;
|
|
334
377
|
const n2 = {};
|
|
335
378
|
if (t2.forEach((e3) => {
|
|
@@ -337,30 +380,30 @@ function T(e2, t2) {
|
|
|
337
380
|
s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
|
|
338
381
|
}), u(e2)) {
|
|
339
382
|
let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
|
|
340
|
-
t3 =
|
|
383
|
+
t3 = M(e2, n2, t3), e2.workflowRules = t3;
|
|
341
384
|
} else {
|
|
342
385
|
let t3 = e2.rules ? e2.rules : {};
|
|
343
|
-
t3 =
|
|
386
|
+
t3 = M(e2, n2, t3), e2.rules = t3;
|
|
344
387
|
}
|
|
345
388
|
const r2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
346
|
-
r2 && r2.length > 0 &&
|
|
389
|
+
r2 && r2.length > 0 && L(e2, r2[0]), t2.forEach((t3) => {
|
|
347
390
|
if ("_all_fields" !== t3.name) {
|
|
348
391
|
const n3 = s(e2, t3.name);
|
|
349
|
-
|
|
392
|
+
D(e2, n3, t3);
|
|
350
393
|
}
|
|
351
394
|
});
|
|
352
395
|
}
|
|
353
|
-
function
|
|
354
|
-
|
|
396
|
+
function F(e2) {
|
|
397
|
+
L(e2, { disabled: true });
|
|
355
398
|
}
|
|
356
|
-
function
|
|
399
|
+
function L(e2, t2) {
|
|
357
400
|
const s2 = r(e2);
|
|
358
401
|
if (s2) for (const n2 in s2) {
|
|
359
402
|
const r2 = s2[n2];
|
|
360
|
-
|
|
403
|
+
D(e2, r2 ? r2.value : r2, t2);
|
|
361
404
|
}
|
|
362
405
|
}
|
|
363
|
-
function
|
|
406
|
+
function V(e2, t2, r2) {
|
|
364
407
|
var _a;
|
|
365
408
|
let i2, o2;
|
|
366
409
|
if (r2 ? (i2 = s(e2, r2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? n(e2, o2) : null), !i2) return;
|
|
@@ -373,7 +416,7 @@ function N(e2, t2, r2) {
|
|
|
373
416
|
}
|
|
374
417
|
i2.dynamicControlTableEdit(e2, t2, u2);
|
|
375
418
|
}
|
|
376
|
-
function
|
|
419
|
+
function D(e2, t2, s2) {
|
|
377
420
|
var _a, _b, _c;
|
|
378
421
|
if (t2) {
|
|
379
422
|
const n2 = t2.getConfigure();
|
|
@@ -384,34 +427,34 @@ function q(e2, t2, s2) {
|
|
|
384
427
|
}
|
|
385
428
|
}
|
|
386
429
|
}
|
|
387
|
-
function
|
|
430
|
+
function _(e2) {
|
|
388
431
|
if (!(e2 == null ? void 0 : e2.type)) return;
|
|
389
|
-
const t2 =
|
|
432
|
+
const t2 = U[e2.type];
|
|
390
433
|
t2 && (e2.validator = t2.validator);
|
|
391
434
|
}
|
|
392
|
-
const
|
|
393
|
-
return true ===
|
|
435
|
+
const U = { boolean: { validator: function(e2, t2, s2) {
|
|
436
|
+
return true === I(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
|
|
394
437
|
} }, date: { validator: function(e2, t2, s2) {
|
|
395
|
-
if (true !==
|
|
438
|
+
if (true !== I(e2, t2)) return false;
|
|
396
439
|
const n2 = new Date(t2);
|
|
397
440
|
return !isNaN(n2.getTime());
|
|
398
441
|
} }, number: { validator: function(e2, t2, s2) {
|
|
399
|
-
return true ===
|
|
400
|
-
} } },
|
|
401
|
-
function
|
|
442
|
+
return true === I(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
|
|
443
|
+
} } }, I = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
|
|
444
|
+
function J(e2, t2) {
|
|
402
445
|
return e2 && m.includes(t2.eventName);
|
|
403
446
|
}
|
|
404
447
|
export {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
448
|
+
F as disabledAllFields,
|
|
449
|
+
V as dynamicControlTableEdit,
|
|
450
|
+
A as getWorkflowRules,
|
|
451
|
+
N as i18nValidatePropRulesMessage,
|
|
452
|
+
j as i18nValidateRulesMessage,
|
|
453
|
+
J as isNotNeedValidateRequired,
|
|
454
|
+
M as packageCustomRules,
|
|
455
|
+
_ as packageCustomValidator,
|
|
413
456
|
g as setObjectPropRule,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
457
|
+
S as updateFormItemEditState,
|
|
458
|
+
w as validateDataModelFunc,
|
|
459
|
+
h as validator
|
|
417
460
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./card-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = e(r, [["__scopeId", "data-v-
|
|
4
|
+
const t = e(r, [["__scopeId", "data-v-36882ef7"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as n, onMounted as i, nextTick as t, resolveComponent as r, createBlock as s, openBlock as a, unref as l, normalizeClass as p, normalizeStyle as u, createSlots as c, withCtx as g, createElementVNode as f, createElementBlock as d, Fragment as m, renderList as y, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
|
|
2
2
|
import { ElCard as b } from "element-plus";
|
|
3
3
|
import { SuperIcon as h } from "agilebuilder-ui";
|
|
4
|
-
import { ArrowUp as k, ArrowDown as
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { handleAfterInitEvent as
|
|
8
|
-
import { getValueFromVariable as V } from "../../../../utils/page-helper-util.js";
|
|
9
|
-
const
|
|
4
|
+
import { ArrowUp as k, ArrowDown as w } from "@element-plus/icons-vue";
|
|
5
|
+
import T from "../../object-render.vue.js";
|
|
6
|
+
import { $t as S } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
|
|
8
|
+
import { getValueFromVariable as V, caculateShowCondition as _ } from "../../../../utils/page-helper-util.js";
|
|
9
|
+
const R = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: R2 }) {
|
|
10
10
|
var _a, _b;
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
11
|
+
const z = e2, D = o("");
|
|
12
|
+
if (z.configure.props.base.dynamicTexts && z.configure.props.base.dynamicTexts.length > 0) {
|
|
13
13
|
let e3 = "";
|
|
14
|
-
|
|
15
|
-
e3 += V(
|
|
16
|
-
}),
|
|
17
|
-
} else
|
|
18
|
-
|
|
19
|
-
const
|
|
14
|
+
z.configure.props.base.dynamicTexts.forEach((o2) => {
|
|
15
|
+
e3 += V(z.pageContext.entity, o2);
|
|
16
|
+
}), D.value = e3;
|
|
17
|
+
} else D.value = S(z.configure.props.base.title);
|
|
18
|
+
z.configure.items || (z.configure.items = []);
|
|
19
|
+
const E = n(() => {
|
|
20
20
|
var _a2;
|
|
21
|
-
return [true, void 0].includes((_a2 =
|
|
22
|
-
}),
|
|
21
|
+
return [true, void 0].includes((_a2 = z.configure.props) == null ? void 0 : _a2.isCollapse);
|
|
22
|
+
}), q = o(null), A = o(!((_a = z.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = z.configure.props) == null ? void 0 : _b.isCollapseShow)), B = z.configure.runtime ? z.configure.runtime : {}, F = B.style, G = B.class, H = B.headerStyle, I = B.contentStyle, J = () => E.value && (A.value = !A.value);
|
|
23
23
|
return i(() => {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
var _a2, _b2;
|
|
25
|
+
((_b2 = (_a2 = z.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.openCardConditions) && z.configure.props.base.openCardConditions.length > 0 && (_(z.pageContext, z.configure.props.base.openCardConditions) ? A.value = true : A.value = false), t(() => {
|
|
26
|
+
j(null, z.pageContext, z.configure, { componentRef: q.value, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
|
|
26
27
|
});
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const t2 = r("el-link");
|
|
31
|
-
return s(), l(a(b), { ref_key: "thisRef", ref: E, style: p(a(B)), "data-collapse": String(q.value), class: u(["yx-card-box-view-main", a(F)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(a(H)) }, [(s(true), m(y, null, d(e3.configure.items, (o3, t3) => (s(), l(w, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: I }, [g("div", { class: "yx-card-box-view-title", style: p(a(G)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(a(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(z.value), 1)], 4), D.value ? (s(), l(t2, { key: 0, underline: false, icon: q.value ? a(k) : a(T), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
28
|
+
}), R2({ isCardContextShow: A }), (e3, o2) => {
|
|
29
|
+
const n2 = r("el-link");
|
|
30
|
+
return a(), s(l(b), { ref_key: "thisRef", ref: q, style: u(l(F)), "data-collapse": String(A.value), class: p(["yx-card-box-view-main", l(G)]) }, c({ default: g(() => [f("div", { class: "yx-card-box-view-context", style: u(l(I)) }, [(a(true), d(m, null, y(e3.configure.items, (o3, n3) => (a(), s(T, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: g(() => [f("div", { class: "yx-card-box-view-header", onClick: J }, [f("div", { class: "yx-card-box-view-title", style: u(l(H)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (a(), s(l(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(D.value), 1)], 4), E.value ? (a(), s(n2, { key: 0, underline: false, icon: A.value ? l(k) : l(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
32
31
|
};
|
|
33
32
|
} });
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
R as default
|
|
36
35
|
};
|
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as
|
|
2
|
-
import x from "
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as l, resolveComponent as o, createBlock as u, openBlock as i, withCtx as s, withDirectives as a, createCommentVNode as r, createElementBlock as f, createVNode as c, normalizeStyle as p, unref as g, Fragment as d, renderList as y, vShow as m, normalizeClass as v } from "vue";
|
|
2
|
+
import { ArrowLeft as x, ArrowRight as C } from "@element-plus/icons-vue";
|
|
3
|
+
import k from "../../object-render.vue.js";
|
|
3
4
|
import "../../../../utils/global-refs.js";
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
import { handleAfterInitEvent as _ } from "../../../../utils/events/event-util.js";
|
|
6
|
+
const h = e({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: h2 }) {
|
|
7
|
+
const A = e2, L = t(null), R = A.configure.runtime ? A.configure.runtime : {}, b = R.leftStyle, j = R.rightStyle, S = R.style, w = R.class, D = t(true), I = t(true);
|
|
7
8
|
return n(() => {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
l(() => {
|
|
10
|
+
_(null, A.pageContext, A.configure, { componentRef: L.value, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
|
|
10
11
|
});
|
|
11
|
-
}), (
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
}), h2({ closeLeftAside: function() {
|
|
13
|
+
D.value = false;
|
|
14
|
+
}, openLeftAside: function() {
|
|
15
|
+
D.value = true;
|
|
16
|
+
}, closeRightAside: function() {
|
|
17
|
+
I.value = false;
|
|
18
|
+
}, openRightAside: function() {
|
|
19
|
+
I.value = true;
|
|
20
|
+
} }), (e3, t2) => {
|
|
21
|
+
const n2 = o("el-aside"), l2 = o("el-icon"), _2 = o("el-main"), h3 = o("el-container");
|
|
22
|
+
return i(), u(h3, { ref_key: "thisRef", ref: L }, { default: s(() => [e3.configure.props.useLeft ? a((i(), u(n2, { key: 0, style: p(g(b)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.leftAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, D.value]]) : r("", true), e3.configure.props.useLeft && e3.configure.props.showLeftAsideCollapseIcon ? (i(), f("div", { key: 1, class: "aside-collapse-btn aside-collapse-btn--left", onClick: t2[0] || (t2[0] = (e4) => D.value = !D.value) }, [c(l2, null, { default: s(() => [D.value ? (i(), u(g(x), { key: 0 })) : (i(), u(g(C), { key: 1 }))]), _: 1 })])) : r("", true), c(_2, { style: p(g(S)), class: v(g(w)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.items, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? a((i(), u(n2, { key: 2, style: p(g(j)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.rightAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, I.value]]) : r("", true)]), _: 1 }, 512);
|
|
14
23
|
};
|
|
15
24
|
} });
|
|
16
25
|
export {
|
|
17
|
-
|
|
26
|
+
h as default
|
|
18
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as i, openBlock as a, createBlock as u, createCommentVNode as r, unref as s } from "vue";
|
|
2
2
|
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as g, rowClick as m, rowDblClick as v, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
|
|
3
|
-
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as
|
|
4
|
-
import { getModelFields as
|
|
3
|
+
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as C, getSizeConfig as x } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { getModelFields as y, getDefaultValue as D } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
6
6
|
import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
@@ -11,17 +11,17 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
11
11
|
var _a;
|
|
12
12
|
const $ = e2, j = $.pageContext;
|
|
13
13
|
let z = $.configure;
|
|
14
|
-
const
|
|
15
|
-
j.isTest ?
|
|
16
|
-
const
|
|
17
|
-
let Y =
|
|
14
|
+
const B = $.configure.runtime ? $.configure.runtime : {};
|
|
15
|
+
j.isTest ? B.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), B.value = z.runtime ? z.runtime : {});
|
|
16
|
+
const V = O(j.code, j.version, z.uuid), G = j.entity.data, H = z.code ? z.code : V, L = k(j), U = B && B.events ? B.events : [], q = t([]), J = j.superGridItems, K = J ? J[z.uuid] : null, Q = B.style, W = B.class, X = $.pageContext.entity ? $.pageContext.entity : {};
|
|
17
|
+
let Y = y($.configure, H), Z = _(j.backendUrl, j.isTest);
|
|
18
18
|
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
19
19
|
const ee = t(false);
|
|
20
20
|
let te = t(0);
|
|
21
21
|
const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
|
|
22
22
|
oe.value = function() {
|
|
23
23
|
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender:
|
|
24
|
+
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Le, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
25
|
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
|
|
26
26
|
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
@@ -38,23 +38,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
38
38
|
}();
|
|
39
39
|
const ie = t(null);
|
|
40
40
|
function ae() {
|
|
41
|
-
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(
|
|
41
|
+
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(V));
|
|
42
42
|
}
|
|
43
43
|
function ue(e3, t2) {
|
|
44
|
-
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode =
|
|
44
|
+
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = V, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = L, t2.extraParam.entityMap = j.entity.data, t2.extraParam.contextMap = j.entity.context, t2.extraParam.taskMap = j.entity.task, !(z.props && z.props.base && z.props.base.showOperation)) {
|
|
45
45
|
let e4 = t2.hiddenColumns;
|
|
46
46
|
e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
|
|
47
47
|
}
|
|
48
48
|
t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
|
|
49
|
-
let n2 =
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
49
|
+
let n2 = x(j, z);
|
|
50
|
+
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Ue;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
53
|
if (z.props && z.props.otherSettings) {
|
|
54
54
|
if (z.props.otherSettings.sourceQueryTableData && z.props.otherSettings.timeToInitializeSubTable && z.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
55
55
|
let e3 = false;
|
|
56
|
-
if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !
|
|
57
|
-
const t2 = H
|
|
56
|
+
if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !G.id && !G.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
57
|
+
const t2 = G[H];
|
|
58
58
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
59
59
|
}
|
|
60
60
|
return e3;
|
|
@@ -66,7 +66,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
66
66
|
return j.entity.data;
|
|
67
67
|
}
|
|
68
68
|
function ce() {
|
|
69
|
-
return
|
|
69
|
+
return C(X, Y);
|
|
70
70
|
}
|
|
71
71
|
let pe, de;
|
|
72
72
|
function fe(e3, t2) {
|
|
@@ -76,11 +76,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
76
76
|
}
|
|
77
77
|
function be(e3) {
|
|
78
78
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
|
-
var _a2;
|
|
79
|
+
var _a2, _b;
|
|
80
80
|
e4 || (e4 = oe.value);
|
|
81
81
|
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
82
82
|
if (t3 && null != t3) {
|
|
83
|
-
let n3 = t3.get(
|
|
83
|
+
let n3 = t3.get(H);
|
|
84
84
|
if (!n3) {
|
|
85
85
|
const e5 = t3.get("all_fields");
|
|
86
86
|
e5 && (n3 = [e5]);
|
|
@@ -88,25 +88,25 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
88
88
|
e4.validateRules = n3 || null;
|
|
89
89
|
}
|
|
90
90
|
if (n2 && null != n2) {
|
|
91
|
-
let t4 = n2.get(
|
|
91
|
+
let t4 = n2.get(H);
|
|
92
92
|
t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
|
|
93
93
|
}
|
|
94
94
|
e4.operations || (e4.operations = {});
|
|
95
95
|
const o2 = function() {
|
|
96
96
|
let e5 = [];
|
|
97
97
|
if (we(null, null, null, null, null, true, "canAdd")) {
|
|
98
|
-
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick:
|
|
98
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Te, isStandard: true };
|
|
99
99
|
e5.push(t4);
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick:
|
|
101
|
+
if (Ce(null, null, null, null, null, true)) {
|
|
102
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
|
|
103
103
|
e5.push(t4);
|
|
104
104
|
}
|
|
105
105
|
return R(j, z, e5, he), e5;
|
|
106
106
|
}();
|
|
107
107
|
((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = me);
|
|
108
|
-
e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete");
|
|
109
|
-
}(e3), c(e3,
|
|
108
|
+
e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete"), ((_b = z.props.base.showCopyBtnCondition) == null ? void 0 : _b.length) > 0 ? e4.subTableCanCopy = w($.pageContext, $.configure.props.base.showCopyBtnCondition) : e4.subTableCanCopy = true;
|
|
109
|
+
}(e3), c(e3, U, j, z);
|
|
110
110
|
const t2 = j.customEvents;
|
|
111
111
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
112
112
|
}
|
|
@@ -127,19 +127,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
127
127
|
ae();
|
|
128
128
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
129
129
|
!function(e5) {
|
|
130
|
-
|
|
131
|
-
ie.value && (ie.value.refreshChildData(
|
|
130
|
+
Ve(e5), de = setTimeout(() => {
|
|
131
|
+
ie.value && (ie.value.refreshChildData(V, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
|
|
132
132
|
}, 10);
|
|
133
133
|
}(e4);
|
|
134
|
-
}), P.$on(
|
|
134
|
+
}), P.$on(V + "-pickFileDone", (e4) => {
|
|
135
135
|
ie.value.pickFileDone(e4);
|
|
136
|
-
}), P.$on(
|
|
136
|
+
}), P.$on(V + "-scanDone", (e4) => {
|
|
137
137
|
ie.value.scanDone(e4);
|
|
138
138
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
139
139
|
}), o(() => {
|
|
140
140
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
141
141
|
const e3 = z.uuid;
|
|
142
|
-
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(
|
|
142
|
+
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(V + "-pickFileDone"), P.$off(V + "-scanDone");
|
|
143
143
|
});
|
|
144
144
|
const ve = t({});
|
|
145
145
|
function he(e3) {
|
|
@@ -159,8 +159,8 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
159
159
|
const e4 = u2.get("all_fields");
|
|
160
160
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
161
161
|
}
|
|
162
|
-
if (true === s2 &&
|
|
163
|
-
let e4 = r2.get(
|
|
162
|
+
if (true === s2 && H && r2 && null !== r2) {
|
|
163
|
+
let e4 = r2.get(H);
|
|
164
164
|
e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[a2] && false === e4[a2] && (s2 = false);
|
|
165
165
|
}
|
|
166
166
|
return s2;
|
|
@@ -169,15 +169,15 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
169
169
|
let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
|
|
170
170
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Ce(e3, t2, n2, o2, l2, i2) {
|
|
173
173
|
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
174
174
|
let r2 = true;
|
|
175
175
|
if (a2 && null !== a2) {
|
|
176
176
|
const e4 = a2.get("all_fields");
|
|
177
177
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
178
178
|
}
|
|
179
|
-
if (true === r2 &&
|
|
180
|
-
let e4 = u2.get(
|
|
179
|
+
if (true === r2 && H && u2 && null !== u2) {
|
|
180
|
+
let e4 = u2.get(H);
|
|
181
181
|
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) r2 = true;
|
|
182
182
|
else {
|
|
183
183
|
const t3 = function(e5) {
|
|
@@ -189,23 +189,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
189
189
|
}
|
|
190
190
|
return r2;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
let a2 =
|
|
192
|
+
function xe(e3, t2, n2, o2, l2, i2) {
|
|
193
|
+
let a2 = Ce(0, 0, n2, 0, 0, i2);
|
|
194
194
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
ie.value.createRow(
|
|
196
|
+
function ye(e3, t2, n2, o2, l2) {
|
|
197
|
+
ie.value.createRow(V, {}, { getDefaultValueFunc: D }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
198
198
|
qe(l2);
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
ie.value.deleteRow(l2,
|
|
201
|
+
function De(e3, t2, n2, o2, l2, i2, a2, u2) {
|
|
202
|
+
ie.value.deleteRow(l2, V, false, a2, u2, n2);
|
|
203
203
|
}
|
|
204
204
|
function Pe(e3) {
|
|
205
205
|
T(X, Y, e3);
|
|
206
206
|
}
|
|
207
207
|
function Ie(e3) {
|
|
208
|
-
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[
|
|
208
|
+
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[H] || (j.subTablePageInfo[H] = {}), j.subTablePageInfo[H].title = z.title ? z.title : z.code, j.subTablePageInfo[H].pageSize = e3;
|
|
209
209
|
}
|
|
210
210
|
function Re(e3) {
|
|
211
211
|
const t2 = e3.key, n2 = e3.value;
|
|
@@ -250,23 +250,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
250
250
|
function ze(e3) {
|
|
251
251
|
j.entity.data = e3;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
253
|
+
function Be() {
|
|
254
|
+
return C(X, Y);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Ve(e3) {
|
|
257
257
|
return T(X, Y, e3);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Ge(e3) {
|
|
260
260
|
return A(e3, null, $);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function He(e3) {
|
|
263
263
|
return M(e3, e3.cellStyle, $);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Le(e3) {
|
|
266
266
|
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
267
267
|
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ue({ row: e3, editConditions: t2 }) {
|
|
270
270
|
let n2 = true;
|
|
271
271
|
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
272
272
|
}
|
|
@@ -276,9 +276,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
276
276
|
}
|
|
277
277
|
return function(e3) {
|
|
278
278
|
const t2 = re();
|
|
279
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
279
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Be(), be(e3));
|
|
280
280
|
}(oe.value), N2({ createRow: function() {
|
|
281
|
-
return ie.value.createRow(
|
|
281
|
+
return ie.value.createRow(V);
|
|
282
282
|
}, getSelections: function() {
|
|
283
283
|
return q.value;
|
|
284
284
|
}, getSelectionIds: function() {
|
|
@@ -292,8 +292,8 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
292
292
|
return z;
|
|
293
293
|
}, validatorSunTableListData: function() {
|
|
294
294
|
return ie.value.validatorSunTableListData();
|
|
295
|
-
}, getValue:
|
|
296
|
-
if (ie.value) return ie.value.getTableSelectOptions(
|
|
295
|
+
}, getValue: Be, setValue: Ve, getTableSelectOptions: function() {
|
|
296
|
+
if (ie.value) return ie.value.getTableSelectOptions(V);
|
|
297
297
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
298
298
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
299
299
|
}, doLayout: function(e3) {
|
|
@@ -318,7 +318,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
318
318
|
return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
|
|
319
319
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
320
320
|
var _a2;
|
|
321
|
-
(_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3,
|
|
321
|
+
(_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3, V, t2, n2);
|
|
322
322
|
}, getColumns: function() {
|
|
323
323
|
var _a2;
|
|
324
324
|
return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
|
|
@@ -327,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
327
327
|
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
328
328
|
} }), (e3, t2) => {
|
|
329
329
|
const n2 = l("super-grid");
|
|
330
|
-
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(
|
|
330
|
+
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(V), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
331
331
|
};
|
|
332
332
|
} });
|
|
333
333
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as C } from "vue";
|
|
2
2
|
import v from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as h } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as
|
|
6
|
+
import { getPermissionCodes as j, packageFormRules as w, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
9
|
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
@@ -15,11 +15,10 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
15
15
|
var _a, _b, _c;
|
|
16
16
|
const L2 = e2;
|
|
17
17
|
null == L2.configure.style && (L2.configure.style = {});
|
|
18
|
-
let k = null;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
18
|
+
let k, D = null;
|
|
19
|
+
k = L2.configure.functionCodes && L2.configure.functionCodes.length > 0 ? L2.configure.functionCodes.join(",") : j(L2.configure, L2.pageContext), L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = k);
|
|
20
|
+
const E = R(k || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
|
|
21
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), w(L2.pageContext, L2.configure, W);
|
|
23
22
|
let q = o(null), z = o(true), G = o("");
|
|
24
23
|
if (L2.configure && L2.configure.props) {
|
|
25
24
|
let e3 = [];
|
|
@@ -37,13 +36,13 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
37
36
|
return o2;
|
|
38
37
|
});
|
|
39
38
|
if (L2.configure._dynamicShowFlag = z, (_b = L2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
|
|
40
|
-
if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name)
|
|
39
|
+
if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name) D = L2.configure.code ? L2.configure.code : L2.configure.uuid;
|
|
41
40
|
else {
|
|
42
41
|
let e4 = N(L2.configure);
|
|
43
|
-
|
|
42
|
+
D = e4 && e4.length > 0 ? e4[1] : null;
|
|
44
43
|
}
|
|
45
44
|
n(z, (e4) => {
|
|
46
|
-
e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(
|
|
45
|
+
e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(D) : L2.pageContext.hiddenNotValidatorCodes.add(D);
|
|
47
46
|
}, { immediate: true });
|
|
48
47
|
}
|
|
49
48
|
if ((_c = L2.configure.props.base) == null ? void 0 : _c.editConditions) {
|
|
@@ -146,7 +145,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
146
145
|
W && P(L2.configure) || ee.countComponentsLoadedNumber();
|
|
147
146
|
}), s(() => {
|
|
148
147
|
var _a2;
|
|
149
|
-
re && clearTimeout(re),
|
|
148
|
+
re && clearTimeout(re), D && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(D));
|
|
150
149
|
});
|
|
151
150
|
let ie = null, re = null;
|
|
152
151
|
const se = () => {
|
|
@@ -158,7 +157,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
158
157
|
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
159
158
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
160
159
|
};
|
|
161
|
-
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((
|
|
160
|
+
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((c(), p(g(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
162
161
|
} });
|
|
163
162
|
export {
|
|
164
163
|
L as default
|
package/dist/es/i18n/langs/cn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { superPageRuntimeMessage: { successfulSave: "保存成功", recordLine: "第 {row} 行记录", tableListSubTableDataVerificationFailed: "表单子表数据校验失败", formDataVerificationFailed: "表单数据校验失败", successfulOperation: "操作成功", selectTemplate: "选择模板", temlpate: "模板", operating: "操作", export: "导出", tips: "提示", sure: "确定", cancel: "取消", whetherToConfirmSubmit: "确定{name}吗?", whetherToConfirmAgree: "确定{name}吗?", whetherToConfirmDisagree: "确定{name}吗?", pleaseSelectRecord: "请选择记录", whetherToConfirmDeletion: "确定删除吗?", successfulDelete: "删除成功", noFileSelected: "请选择一个文件", asyncImport: "正在异步导入,请等待消息通知!", successfulImport: "导入成功", thePreconditionOfTheButtonTo: "该按钮前置条件为[{message}]", onlyOneRecordCanBeselected: "只能选择一条记录", selectAtLeastOneRecord: "请至少选择一条记录", requestPathEmpty: "后台请求路径为空", successfulSubmit: "提交成功", successfulCompleteTask: "任务办理成功", successfulAssign: "指派任务成功", successfulRetrieve: "取回任务成功", successfulDrawTask: "领取任务成功", successfulAbandonReceive: "放弃任务成功", successfulReturnToPreviousTask: "退回上一环节成功", successfulEndInstance: "强制结束流程成功", selectNode: "选择环节", nodeName: "环节名称", nodeId: "环节编码", pleaseSelectNode: "请选择环节", successfulReturnTaskTo: "退回成功", selectRemoveUsers: "选择减签任务", transactorName: "办理人姓名", transactor: "办理人登录名", trustorName: "委托人姓名", pleaseSelectRemoverUsers: "请选择减签用户", required: "{label}必填", formatMismatch: "{label}格式不匹配", overMaxLength: "{label}最多只能输入{value}字符", limitMinLength: "{label}至少输入{value}字符", flowNotStart: "流程未提交", pleaseInputOpinion: "请输入意见", opinion: "意见", pleaseInputRemark: "请输入备注", remark: "备注", pleaseSelectCondition: "请选择条件", pleaseInputConditionName: "请输入条件名称", conditionName: "名称", save: "保存", saveCondition: "保存条件", popMsg: "弹框参数缺少customSystem参数", noChartSetting: "未查询到图表定义", xxxNotEmpty: "{label}不能为空", successfulStart: "起草成功", successfulInitiateExtract: "发起成功", successfulCancelExtract: "取消成功", taskMeaage1: "当前任务为子流程,不能进行减少办理人操作", taskMeaage2: "当前流程已结束或已取消或当前任务为并发环节,不能进行减少办理人操作", taskMeaage3: "当前任务只有一个办理人,不能再减少", taskMeaage4: "流程已结束或有并发环节,无法跳转环节", taskMeaage5: "以下任务请使用修改办理人", delTransactor: "减少办理人", handledBy: "办理人为", pleaseSelectRemoverTransactors: "请选择要减少的办理人", copySuccess: "复制成功", doingExtractFormData: "抽单办理中", nodeTrustorName: "委托人:", hasReadTip: "已读", success: "成功", fail: "失败", partSucess: "部分成功", doing: "进行中", asyncExportType: "异步导出", asyncImportType: "异步导入", startExecute: "开始执行", endExecute: "执行结束", fileUploadUnComplete: "字段【{label}】还未上传完成附件,不能操作,请稍等", fileUploadUnCompleteTable: "表格【{tableTitle}】第{rowIndex}行记录的字段【{label}】还未上传完成附件,不能操作,请稍等", doNotRemindAgain: "不再提醒", pageDefaultLoadingText: "拼命加载中", transactorNames: "办理人姓名", logTip: "日志提示" }, chartMessage: { saveAsImage: "保存为图片", restore: "还原", dataView: "数据视图", zoomIn: "放大", zoomOut: "缩小", magicType: "动态类型切换", brush: "刷选", close: "关闭", refresh: "刷新" } };
|
|
1
|
+
const e = { superPageRuntimeMessage: { successfulSave: "保存成功", recordLine: "第 {row} 行记录", tableListSubTableDataVerificationFailed: "表单子表数据校验失败", formDataVerificationFailed: "表单数据校验失败", successfulOperation: "操作成功", selectTemplate: "选择模板", temlpate: "模板", operating: "操作", export: "导出", tips: "提示", sure: "确定", cancel: "取消", whetherToConfirmSubmit: "确定{name}吗?", whetherToConfirmAgree: "确定{name}吗?", whetherToConfirmDisagree: "确定{name}吗?", pleaseSelectRecord: "请选择记录", whetherToConfirmDeletion: "确定删除吗?", successfulDelete: "删除成功", noFileSelected: "请选择一个文件", asyncImport: "正在异步导入,请等待消息通知!", successfulImport: "导入成功", thePreconditionOfTheButtonTo: "该按钮前置条件为[{message}]", onlyOneRecordCanBeselected: "只能选择一条记录", selectAtLeastOneRecord: "请至少选择一条记录", requestPathEmpty: "后台请求路径为空", successfulSubmit: "提交成功", successfulCompleteTask: "任务办理成功", successfulAssign: "指派任务成功", successfulRetrieve: "取回任务成功", successfulDrawTask: "领取任务成功", successfulAbandonReceive: "放弃任务成功", successfulReturnToPreviousTask: "退回上一环节成功", successfulEndInstance: "强制结束流程成功", selectNode: "选择环节", nodeName: "环节名称", nodeId: "环节编码", pleaseSelectNode: "请选择环节", successfulReturnTaskTo: "退回成功", selectRemoveUsers: "选择减签任务", transactorName: "办理人姓名", transactor: "办理人登录名", trustorName: "委托人姓名", pleaseSelectRemoverUsers: "请选择减签用户", required: "{label}必填", formatMismatch: "{label}格式不匹配", overMaxLength: "{label}最多只能输入{value}字符", limitMinLength: "{label}至少输入{value}字符", flowNotStart: "流程未提交", pleaseInputOpinion: "请输入意见", opinion: "意见", pleaseInputRemark: "请输入备注", remark: "备注", pleaseSelectCondition: "请选择条件", pleaseInputConditionName: "请输入条件名称", conditionName: "名称", save: "保存", saveCondition: "保存条件", popMsg: "弹框参数缺少customSystem参数", noChartSetting: "未查询到图表定义", xxxNotEmpty: "{label}不能为空", successfulStart: "起草成功", successfulInitiateExtract: "发起成功", successfulCancelExtract: "取消成功", taskMeaage1: "当前任务为子流程,不能进行减少办理人操作", taskMeaage2: "当前流程已结束或已取消或当前任务为并发环节,不能进行减少办理人操作", taskMeaage3: "当前任务只有一个办理人,不能再减少", taskMeaage4: "流程已结束或有并发环节,无法跳转环节", taskMeaage5: "以下任务请使用修改办理人", delTransactor: "减少办理人", handledBy: "办理人为", pleaseSelectRemoverTransactors: "请选择要减少的办理人", copySuccess: "复制成功", doingExtractFormData: "抽单办理中", nodeTrustorName: "委托人:", hasReadTip: "已读", success: "成功", fail: "失败", partSucess: "部分成功", doing: "进行中", asyncExportType: "异步导出", asyncImportType: "异步导入", startExecute: "开始执行", endExecute: "执行结束", fileUploadUnComplete: "字段【{label}】还未上传完成附件,不能操作,请稍等", fileUploadUnCompleteTable: "表格【{tableTitle}】第{rowIndex}行记录的字段【{label}】还未上传完成附件,不能操作,请稍等", doNotRemindAgain: "不再提醒", pageDefaultLoadingText: "拼命加载中", transactorNames: "办理人姓名", logTip: "日志提示", pleaseInputRequiredInfo: "请录入必填信息" }, chartMessage: { saveAsImage: "保存为图片", restore: "还原", dataView: "数据视图", zoomIn: "放大", zoomOut: "缩小", magicType: "动态类型切换", brush: "刷选", close: "关闭", refresh: "刷新" } };
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/es/i18n/langs/en.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { superPageRuntimeMessage: { successfulSave: "Save succeeded", recordLine: "Record line {row}", tableListSubTableDataVerificationFailed: "Table List Sub Table Data Verification Failed", formDataVerificationFailed: "Form Data Verification Failed", successfulOperation: "Operation successful", selectTemplate: "Select Template", temlpate: "Template", operating: "Operate", export: "Export", tips: "Tip", sure: "Sure", cancel: "Cancel", whetherToConfirmSubmit: "Are you sure to {name}?", whetherToConfirmAgree: "Are you sure to {name}?", whetherToConfirmDisagree: "Are you sure to {name}?", pleaseSelectRecord: "Please select the record", whetherToConfirmDeletion: "Are you sure to delete?", successfulDelete: "Delete succeeded", noFileSelected: "Please select a file", asyncImport: "Asynchronous import, please wait for message notification!", successfulImport: "Import succeeded", thePreconditionOfTheButtonTo: "The Precondition Of The Button To [{message}]", onlyOneRecordCanBeselected: "Only One Record Can Be Selected", selectAtLeastOneRecord: "Please Select At Least One Record", requestPathEmpty: "Backend request path is empty", successfulSubmit: "Submit succeeded", successfulCompleteTask: "Task handled successfully", successfulAssign: "Task assigned successfully", successfulRetrieve: "Retrieve task succeeded", successfulDrawTask: "Task received successfully", successfulAbandonReceive: "The task was abandoned successfully", successfulReturnToPreviousTask: "Successfully returned to the previous phase", successfulEndInstance: "Forced to end the process successfully", selectNode: "Select Node", nodeName: "Node Name", nodeId: "Node Code", pleaseSelectNode: "Please Select Node", successfulReturnTaskTo: "Returned successfully", selectRemoveUsers: "Select Remove Task", transactorName: "Transactor Name", transactor: "Transactor Loginname", trustorName: "Trustor Name", pleaseSelectRemoverUsers: "Please select remove task", required: "{label} is required", formatMismatch: "{label} Format mismatch", overMaxLength: "{label} can only input a maximum of {value} characters", limitMinLength: "Enter at least {value} characters for {label}", flowNotStart: "Workflow Not Started", pleaseInputOpinion: "Please input opinion", opinion: "Opinion", pleaseInputRemark: "Please input remark", remark: "Remark", pleaseSelectCondition: "Please select condition", pleaseInputConditionName: "Please input condition name", conditionName: "Name", save: "Save", saveCondition: "Save Condition", popMsg: "Pop dialog lost the parameter of customSystem", noChartSetting: "No chart setting found", xxxNotEmpty: "{label}Not Empty", successfulStart: "Start succeeded", successfulInitiateExtract: "Initiate succeeded", successfulCancelExtract: "Cancel succeeded", taskMeaage1: "The Current Task Is A Subprocess And Cannot Reduce The Handler", taskMeaage2: "The Current Process Has Been Completed Or Cancelled, Or The Current Task Is A Concurrent Phase, So It Is Not Allowed To Reduce The Handler", taskMeaage3: "The Current Task Has Only One Handler And Cannot Be Reduced Any More", taskMeaage4: "The Process Has Been Completed Or There Are Concurrent Phases, Unable To Jump", taskMeaage5: "Please Modify The Handler For The Following Tasks", delTransactor: "Remove Transactor", handledBy: "Handled By", pleaseSelectRemoverTransactors: "Please select the remove transactor", copySuccess: "Copy successful", doingExtractFormData: "Doing draw orders", nodeTrustorName: "Trustor:", hasReadTip: "Readed", success: "Success", fail: "Fail", partSucess: "Part Success", doing: "Running", asyncExportType: "Async Export", asyncImportType: "Async Import", startExecute: "Start Excute", endExecute: "End Excute", fileUploadUnComplete: "The attachment for field [{label}] has not been fully uploaded yet. Please wait before proceeding", fileUploadUnCompleteTable: "The field [{label}] in the record of row [{rowIndex}] in the table [{tableTitle}] has not completed the attachment upload, so no operations can be performed. Please wait a moment", doNotRemindAgain: "Do not remind again", pageDefaultLoadingText: "Loading...", transactorNames: "Transactor Name", logTip: "Log Tip" }, chartMessage: { saveAsImage: "Save as Image", restore: "Restore", dataView: "Data View", zoomIn: "Zoom In", zoomOut: "Zoom Out", magicType: "Magic Type", brush: "Brush" } };
|
|
1
|
+
const e = { superPageRuntimeMessage: { successfulSave: "Save succeeded", recordLine: "Record line {row}", tableListSubTableDataVerificationFailed: "Table List Sub Table Data Verification Failed", formDataVerificationFailed: "Form Data Verification Failed", successfulOperation: "Operation successful", selectTemplate: "Select Template", temlpate: "Template", operating: "Operate", export: "Export", tips: "Tip", sure: "Sure", cancel: "Cancel", whetherToConfirmSubmit: "Are you sure to {name}?", whetherToConfirmAgree: "Are you sure to {name}?", whetherToConfirmDisagree: "Are you sure to {name}?", pleaseSelectRecord: "Please select the record", whetherToConfirmDeletion: "Are you sure to delete?", successfulDelete: "Delete succeeded", noFileSelected: "Please select a file", asyncImport: "Asynchronous import, please wait for message notification!", successfulImport: "Import succeeded", thePreconditionOfTheButtonTo: "The Precondition Of The Button To [{message}]", onlyOneRecordCanBeselected: "Only One Record Can Be Selected", selectAtLeastOneRecord: "Please Select At Least One Record", requestPathEmpty: "Backend request path is empty", successfulSubmit: "Submit succeeded", successfulCompleteTask: "Task handled successfully", successfulAssign: "Task assigned successfully", successfulRetrieve: "Retrieve task succeeded", successfulDrawTask: "Task received successfully", successfulAbandonReceive: "The task was abandoned successfully", successfulReturnToPreviousTask: "Successfully returned to the previous phase", successfulEndInstance: "Forced to end the process successfully", selectNode: "Select Node", nodeName: "Node Name", nodeId: "Node Code", pleaseSelectNode: "Please Select Node", successfulReturnTaskTo: "Returned successfully", selectRemoveUsers: "Select Remove Task", transactorName: "Transactor Name", transactor: "Transactor Loginname", trustorName: "Trustor Name", pleaseSelectRemoverUsers: "Please select remove task", required: "{label} is required", formatMismatch: "{label} Format mismatch", overMaxLength: "{label} can only input a maximum of {value} characters", limitMinLength: "Enter at least {value} characters for {label}", flowNotStart: "Workflow Not Started", pleaseInputOpinion: "Please input opinion", opinion: "Opinion", pleaseInputRemark: "Please input remark", remark: "Remark", pleaseSelectCondition: "Please select condition", pleaseInputConditionName: "Please input condition name", conditionName: "Name", save: "Save", saveCondition: "Save Condition", popMsg: "Pop dialog lost the parameter of customSystem", noChartSetting: "No chart setting found", xxxNotEmpty: "{label}Not Empty", successfulStart: "Start succeeded", successfulInitiateExtract: "Initiate succeeded", successfulCancelExtract: "Cancel succeeded", taskMeaage1: "The Current Task Is A Subprocess And Cannot Reduce The Handler", taskMeaage2: "The Current Process Has Been Completed Or Cancelled, Or The Current Task Is A Concurrent Phase, So It Is Not Allowed To Reduce The Handler", taskMeaage3: "The Current Task Has Only One Handler And Cannot Be Reduced Any More", taskMeaage4: "The Process Has Been Completed Or There Are Concurrent Phases, Unable To Jump", taskMeaage5: "Please Modify The Handler For The Following Tasks", delTransactor: "Remove Transactor", handledBy: "Handled By", pleaseSelectRemoverTransactors: "Please select the remove transactor", copySuccess: "Copy successful", doingExtractFormData: "Doing draw orders", nodeTrustorName: "Trustor:", hasReadTip: "Readed", success: "Success", fail: "Fail", partSucess: "Part Success", doing: "Running", asyncExportType: "Async Export", asyncImportType: "Async Import", startExecute: "Start Excute", endExecute: "End Excute", fileUploadUnComplete: "The attachment for field [{label}] has not been fully uploaded yet. Please wait before proceeding", fileUploadUnCompleteTable: "The field [{label}] in the record of row [{rowIndex}] in the table [{tableTitle}] has not completed the attachment upload, so no operations can be performed. Please wait a moment", doNotRemindAgain: "Do not remind again", pageDefaultLoadingText: "Loading...", transactorNames: "Transactor Name", logTip: "Log Tip", pleaseInputRequiredInfo: "Please input required information" }, chartMessage: { saveAsImage: "Save as Image", restore: "Restore", dataView: "Data View", zoomIn: "Zoom In", zoomOut: "Zoom Out", magicType: "Magic Type", brush: "Brush" } };
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/es/style.css
CHANGED
|
@@ -444,10 +444,10 @@
|
|
|
444
444
|
}
|
|
445
445
|
.yx-affix .yx-affix-content.is-fixed.is-bottom[data-v-a994b02d] {
|
|
446
446
|
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
|
|
447
|
-
}.yx-card-box-view-main[data-v-
|
|
447
|
+
}.yx-card-box-view-main[data-v-36882ef7] > .el-card__header {
|
|
448
448
|
position: relative;
|
|
449
449
|
}
|
|
450
|
-
.yx-card-box-view-main .yx-card-box-view-header[data-v-
|
|
450
|
+
.yx-card-box-view-main .yx-card-box-view-header[data-v-36882ef7] {
|
|
451
451
|
display: flex;
|
|
452
452
|
flex-direction: row;
|
|
453
453
|
justify-content: space-between;
|
|
@@ -455,12 +455,12 @@
|
|
|
455
455
|
gap: 15px;
|
|
456
456
|
flex: 1 1 auto;
|
|
457
457
|
}
|
|
458
|
-
.yx-card-box-view-main .yx-card-box-view-title[data-v-
|
|
458
|
+
.yx-card-box-view-main .yx-card-box-view-title[data-v-36882ef7] {
|
|
459
459
|
position: relative;
|
|
460
460
|
z-index: 2;
|
|
461
461
|
flex: 1 1 auto;
|
|
462
462
|
}
|
|
463
|
-
.yx-card-box-view-main .yx-card-box-view-title[data-v-
|
|
463
|
+
.yx-card-box-view-main .yx-card-box-view-title[data-v-36882ef7]::after {
|
|
464
464
|
content: " ";
|
|
465
465
|
position: absolute;
|
|
466
466
|
left: 0;
|
|
@@ -469,47 +469,47 @@
|
|
|
469
469
|
right: 0;
|
|
470
470
|
z-index: 0;
|
|
471
471
|
}
|
|
472
|
-
.yx-card-box-view-main[data-collapse=false][data-v-
|
|
472
|
+
.yx-card-box-view-main[data-collapse=false][data-v-36882ef7] > .el-card__body {
|
|
473
473
|
display: none;
|
|
474
474
|
}
|
|
475
|
-
.yx-card-box-view-main[data-v-
|
|
475
|
+
.yx-card-box-view-main[data-v-36882ef7] {
|
|
476
476
|
display: flex;
|
|
477
477
|
flex-direction: column;
|
|
478
478
|
}
|
|
479
|
-
.yx-card-box-view-main[data-v-
|
|
479
|
+
.yx-card-box-view-main[data-v-36882ef7] > .el-card__body {
|
|
480
480
|
flex: 1;
|
|
481
481
|
overflow: hidden;
|
|
482
482
|
display: flex;
|
|
483
483
|
flex-direction: column;
|
|
484
484
|
}
|
|
485
|
-
.yx-card-box-view-context[data-v-
|
|
485
|
+
.yx-card-box-view-context[data-v-36882ef7] {
|
|
486
486
|
flex: 1;
|
|
487
487
|
overflow: auto;
|
|
488
488
|
padding-bottom: 5px;
|
|
489
489
|
}
|
|
490
|
-
.yx-card-box-view-context[data-v-
|
|
490
|
+
.yx-card-box-view-context[data-v-36882ef7] {
|
|
491
491
|
gap: var(--layout-form-flex-gap, 15px);
|
|
492
492
|
}
|
|
493
|
-
.yx-card-box-view-context[data-v-
|
|
493
|
+
.yx-card-box-view-context[data-v-36882ef7] > div {
|
|
494
494
|
width: 100%;
|
|
495
495
|
}
|
|
496
|
-
.yx-card-box-view-context[data-v-
|
|
496
|
+
.yx-card-box-view-context[data-v-36882ef7] > div[style*="display: inline-block"] {
|
|
497
497
|
width: auto;
|
|
498
498
|
}
|
|
499
|
-
.yx-card-box-view-context[data-v-
|
|
499
|
+
.yx-card-box-view-context[data-v-36882ef7] > .el-form-item {
|
|
500
500
|
margin: 0;
|
|
501
501
|
}
|
|
502
|
-
.yx-card-box-view-context[data-v-
|
|
502
|
+
.yx-card-box-view-context[data-v-36882ef7] > .el-form-item[class*=el-col-8] {
|
|
503
503
|
flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
|
|
504
504
|
}
|
|
505
505
|
@media (max-width: 768px) {
|
|
506
|
-
.yx-card-box-view-context[data-v-
|
|
506
|
+
.yx-card-box-view-context[data-v-36882ef7] > .el-form-item[class*=el-col-8] {
|
|
507
507
|
max-width: none;
|
|
508
508
|
flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 1) / 2);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
@media (max-width: 600px) {
|
|
512
|
-
.yx-card-box-view-context[data-v-
|
|
512
|
+
.yx-card-box-view-context[data-v-36882ef7] > .el-form-item[class*=el-col-8] {
|
|
513
513
|
width: 100%;
|
|
514
514
|
max-width: none;
|
|
515
515
|
flex: auto;
|
|
@@ -594,6 +594,25 @@
|
|
|
594
594
|
.amb-widget-tools-parent[data-v-a9801c3f] .amb-widget-container-tool > .el-form-item {
|
|
595
595
|
margin-bottom: 0;
|
|
596
596
|
}
|
|
597
|
+
.aside-collapse-btn[data-v-473c727a] {
|
|
598
|
+
display: flex;
|
|
599
|
+
align-items: center;
|
|
600
|
+
justify-content: center;
|
|
601
|
+
width: 10px;
|
|
602
|
+
cursor: pointer;
|
|
603
|
+
background-color: var(--el-border-color-light, #e4e7ed);
|
|
604
|
+
color: var(--el-text-color-secondary, #909399);
|
|
605
|
+
transition:
|
|
606
|
+
background-color 0.2s,
|
|
607
|
+
color 0.2s;
|
|
608
|
+
flex-shrink: 0;
|
|
609
|
+
z-index: 1;
|
|
610
|
+
}
|
|
611
|
+
.aside-collapse-btn[data-v-473c727a]:hover {
|
|
612
|
+
background-color: var(--el-color-primary-light-7, #c6e2ff);
|
|
613
|
+
color: var(--el-color-primary, #409eff);
|
|
614
|
+
}
|
|
615
|
+
|
|
597
616
|
[data-v-ccac4657] .el-popover,[data-v-ccac4657] .el-popper,[data-v-ccac4657] .el-popover__popper {
|
|
598
617
|
min-width: 50px !important;
|
|
599
618
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.43-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.99-sit1",
|
|
53
53
|
"axios": "^1.6.8",
|
|
54
54
|
"cypress": "^13.6.6",
|
|
55
55
|
"element-plus": "^2.6.1",
|