super-page-runtime 2.2.56 → 2.2.59
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/event-util.js +23 -23
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -5
- package/dist/es/components/runtime/utils/events/standard-event.js +132 -156
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +0 -14
- package/dist/es/components/runtime/utils/page-init-util.js +10 -21
- package/dist/es/components/runtime/utils/tree-utils.js +15 -49
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +71 -5
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -72
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -4
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +19 -22
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -4
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +45 -113
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +54 -59
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +130 -144
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/index.d.ts +1 -2
- package/dist/es/index.js +0 -2
- package/dist/es/style.css +26 -372
- package/package.json +2 -2
- package/dist/es/assets/file.png.js +0 -4
- package/dist/es/assets/folder.png.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +0 -31
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +0 -94
|
@@ -6,13 +6,13 @@ import { getToken as d, getSessionCache as m, setSessionCache as f } from "agile
|
|
|
6
6
|
import { getComponentRef as g } from "../global-refs.js";
|
|
7
7
|
import b from "../eventBus.js";
|
|
8
8
|
import C from "axios";
|
|
9
|
-
import { handleEvent as
|
|
9
|
+
import { handleEvent as T, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as w, getDefaultValue as k, getModelFields as N } from "../page-init-util.js";
|
|
12
|
-
import { updateChartDatasources as
|
|
12
|
+
import { updateChartDatasources as M, caculateShowCondition as R, getVariableValue as v, setVariableValue as S } from "../page-helper-util.js";
|
|
13
13
|
import I from "./print-label.js";
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
15
|
-
import { getWorkflowRules as
|
|
14
|
+
import { getTableNameByTableUuid as x } from "../table-utils.js";
|
|
15
|
+
import { getWorkflowRules as A, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as O } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as E } from "../page-store.js";
|
|
18
18
|
const _ = { save: function(e2) {
|
|
@@ -47,10 +47,10 @@ const _ = { save: function(e2) {
|
|
|
47
47
|
if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
48
48
|
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
49
|
var _a;
|
|
50
|
-
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
50
|
+
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
|
|
51
51
|
let b2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
52
|
b2 = o(b2, p2, d2, r2.isTest);
|
|
53
|
-
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission,
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = w(u2, r2), h2 = { ids: a2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
54
|
r2.beanName && (h2.beanName = r2.beanName);
|
|
55
55
|
const P2 = u2.props.deleteLogicSetting;
|
|
56
56
|
P2 && ("object" == typeof P2 ? h2.deleteLogicSetting = JSON.stringify(P2) : "string" == typeof P2 && (h2.deleteLogicSetting = P2));
|
|
@@ -88,10 +88,10 @@ const _ = { save: function(e2) {
|
|
|
88
88
|
t2.tableName && (f2 += "&tableName=" + t2.tableName);
|
|
89
89
|
t2.code && (f2 += "&pageCode=" + t2.code);
|
|
90
90
|
t2.version && (f2 += "&pageVersion=" + t2.version);
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
h2 && (f2 += "&" +
|
|
91
|
+
const T2 = d();
|
|
92
|
+
T2 && (f2 += "&JWT=" + T2);
|
|
93
|
+
const y2 = "_RUN_CURRENT_ROLE", h2 = m(y2);
|
|
94
|
+
h2 && (f2 += "&" + y2 + "=" + h2);
|
|
95
95
|
if (o2) {
|
|
96
96
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
@@ -183,22 +183,22 @@ const _ = { save: function(e2) {
|
|
|
183
183
|
}, drawTask: function(e2) {
|
|
184
184
|
return function(e3) {
|
|
185
185
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = K(e3);
|
|
186
|
-
return
|
|
186
|
+
return oe(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
187
187
|
}(e2);
|
|
188
188
|
}, abandonReceive: function(e2) {
|
|
189
189
|
return function(e3) {
|
|
190
190
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = K(e3);
|
|
191
|
-
return
|
|
191
|
+
return oe(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
192
192
|
}(e2);
|
|
193
193
|
}, returnToPreviousTask: function(e2) {
|
|
194
194
|
return function(e3) {
|
|
195
195
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = K(e3);
|
|
196
|
-
return
|
|
196
|
+
return oe(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
197
197
|
}(e2);
|
|
198
198
|
}, endInstance: function(e2) {
|
|
199
199
|
return function(e3) {
|
|
200
200
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = K(e3);
|
|
201
|
-
return
|
|
201
|
+
return oe(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
202
202
|
}(e2);
|
|
203
203
|
}, returnTaskTo: function(e2) {
|
|
204
204
|
return function(e3) {
|
|
@@ -213,7 +213,7 @@ const _ = { save: function(e2) {
|
|
|
213
213
|
}, retrieveTask: function(e2) {
|
|
214
214
|
return function(e3) {
|
|
215
215
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = K(e3);
|
|
216
|
-
return
|
|
216
|
+
return oe(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
217
217
|
}(e2);
|
|
218
218
|
}, viewDetail: function(e2) {
|
|
219
219
|
}, lineEditCreate: function(e2) {
|
|
@@ -267,11 +267,6 @@ const _ = { save: function(e2) {
|
|
|
267
267
|
i2 && (i2.state = a2);
|
|
268
268
|
});
|
|
269
269
|
}(e2);
|
|
270
|
-
}, saveQueryCharts: function(e2) {
|
|
271
|
-
!function(e3) {
|
|
272
|
-
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
273
|
-
b.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
274
|
-
}(e2);
|
|
275
270
|
} };
|
|
276
271
|
function j(e2) {
|
|
277
272
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
@@ -280,7 +275,7 @@ function j(e2) {
|
|
|
280
275
|
let o2 = null;
|
|
281
276
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
282
277
|
const i2 = o2 ? o2.state : void 0;
|
|
283
|
-
o2 && (o2.state = "disabled"),
|
|
278
|
+
o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
284
279
|
o2 && (o2.state = i2);
|
|
285
280
|
}).catch(() => {
|
|
286
281
|
o2 && (o2.state = i2);
|
|
@@ -288,11 +283,11 @@ function j(e2) {
|
|
|
288
283
|
}
|
|
289
284
|
function D(e2, s2, o2, i2) {
|
|
290
285
|
var _a;
|
|
291
|
-
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2),
|
|
292
|
-
u2 && (
|
|
293
|
-
const P2 =
|
|
286
|
+
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2), T2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: w(s2, e2), tableName: f2, isPermission: T2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
287
|
+
u2 && (y2.logSettingText = u2.join(""));
|
|
288
|
+
const P2 = te(e2);
|
|
294
289
|
let k2;
|
|
295
|
-
|
|
290
|
+
y2.additionalParamMap = P2, k2 = i2 ? function(e3, t2, s3, o3) {
|
|
296
291
|
return new Promise((i3, a3) => {
|
|
297
292
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
298
293
|
C.defaults.headers.common.Authorization = d();
|
|
@@ -303,7 +298,7 @@ function D(e2, s2, o2, i2) {
|
|
|
303
298
|
a3(e4);
|
|
304
299
|
});
|
|
305
300
|
});
|
|
306
|
-
}(r2, g2,
|
|
301
|
+
}(r2, g2, y2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
307
302
|
return new Promise((i3, a3) => {
|
|
308
303
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
309
304
|
C.defaults.headers.common.Authorization = d();
|
|
@@ -317,7 +312,7 @@ function D(e2, s2, o2, i2) {
|
|
|
317
312
|
a3(e4);
|
|
318
313
|
});
|
|
319
314
|
});
|
|
320
|
-
}(r2, g2,
|
|
315
|
+
}(r2, g2, y2, e2.isTest), k2 && k2.then(() => {
|
|
321
316
|
h(e2, s2);
|
|
322
317
|
});
|
|
323
318
|
}
|
|
@@ -343,14 +338,14 @@ function B(e2, n2, o2, i2, a2, r2, c2) {
|
|
|
343
338
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
344
339
|
const g2 = n2.props.base.conversionCodes;
|
|
345
340
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
346
|
-
const b2 =
|
|
341
|
+
const b2 = me(n2);
|
|
347
342
|
b2 && (f2.autoSetValueData = b2);
|
|
348
343
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
349
344
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
const
|
|
353
|
-
return f2.additionalParamMap =
|
|
345
|
+
const T2 = e2.beanName;
|
|
346
|
+
T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
347
|
+
const y2 = te(e2);
|
|
348
|
+
return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
354
349
|
}
|
|
355
350
|
function W(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
356
351
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, i2, a2, r2, null, u2);
|
|
@@ -368,7 +363,7 @@ function F(t2, s2, n2, o2, i2) {
|
|
|
368
363
|
const a2 = q(t2, s2, i2);
|
|
369
364
|
a2 && "list" === a2 ? (!function(t3, s3, n3, o3) {
|
|
370
365
|
let i3 = s3.props.base.successOperation;
|
|
371
|
-
const a3 = s3.props.base.isNeedValueMapping, r2 =
|
|
366
|
+
const a3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
|
|
372
367
|
i3 || (i3 = "refresh");
|
|
373
368
|
if ("refresh" === i3) {
|
|
374
369
|
if (r2) {
|
|
@@ -389,7 +384,7 @@ function F(t2, s2, n2, o2, i2) {
|
|
|
389
384
|
const n5 = t4.props.base.successOperation;
|
|
390
385
|
if (!n5 || null === n5) return;
|
|
391
386
|
const o4 = t4.props.base.isNeedValueMapping;
|
|
392
|
-
"noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ?
|
|
387
|
+
"noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? le(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (H(e3, s4, o4), e3.canClick = true);
|
|
393
388
|
}(e2, t3, { ...o3, ...e2.entity.page });
|
|
394
389
|
} else e2.canClick = true;
|
|
395
390
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
@@ -407,7 +402,7 @@ function H(e2, t2, s2) {
|
|
|
407
402
|
b.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
|
|
408
403
|
}
|
|
409
404
|
}
|
|
410
|
-
function
|
|
405
|
+
function G(e2, t2, s2, n2, o2) {
|
|
411
406
|
var _a;
|
|
412
407
|
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
413
408
|
const i2 = e2.tableName;
|
|
@@ -417,13 +412,13 @@ function $(e2, t2, s2, n2, o2) {
|
|
|
417
412
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
418
413
|
const t4 = e4.source;
|
|
419
414
|
if (!t4) return;
|
|
420
|
-
const o3 = t4.split("."), i3 =
|
|
415
|
+
const o3 = t4.split("."), i3 = v(n3, o3), a2 = e4.target, r2 = N(null, a2);
|
|
421
416
|
S(s3.entity, r2, i3);
|
|
422
417
|
});
|
|
423
418
|
}
|
|
424
|
-
}(s2, o2, e2),
|
|
419
|
+
}(s2, o2, e2), T(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
|
|
425
420
|
}
|
|
426
|
-
function
|
|
421
|
+
function $(e2, t2, s2, n2) {
|
|
427
422
|
var _a;
|
|
428
423
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
429
424
|
let o2 = n2;
|
|
@@ -431,30 +426,30 @@ function G(e2, t2, s2, n2) {
|
|
|
431
426
|
const i2 = q(e2, t2);
|
|
432
427
|
if (i2 && "list" === i2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
433
428
|
if (i2 && "list" === i2) {
|
|
434
|
-
const s3 =
|
|
429
|
+
const s3 = y(e2, t2);
|
|
435
430
|
if (s3) {
|
|
436
431
|
g(e2, s3).refresh();
|
|
437
432
|
}
|
|
438
433
|
} else if (i2 && "form" === i2) {
|
|
439
434
|
const t3 = e2.entity.data;
|
|
440
|
-
|
|
435
|
+
le(e2, t3.ID ? t3.ID : t3.id);
|
|
441
436
|
}
|
|
442
437
|
}
|
|
443
438
|
}
|
|
444
439
|
function J(e2, t2, s2, i2) {
|
|
445
440
|
return new Promise((r2, l2) => {
|
|
446
441
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
447
|
-
let
|
|
448
|
-
C2 && "noOperation" === C2 && (
|
|
449
|
-
let
|
|
442
|
+
let T2 = false;
|
|
443
|
+
C2 && "noOperation" === C2 && (T2 = true);
|
|
444
|
+
let y2 = d2.tableName;
|
|
450
445
|
if (t2) {
|
|
451
446
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
452
|
-
|
|
447
|
+
y2 = x(d2, t3);
|
|
453
448
|
}
|
|
454
449
|
const h2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
|
|
455
450
|
return new Promise((g3, b3) => {
|
|
456
|
-
const C3 = t3.props.base.title,
|
|
457
|
-
p.confirm(u().t(
|
|
451
|
+
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
452
|
+
p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
458
453
|
const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, t3, i3, r3, l3, m3, null);
|
|
459
454
|
p2.tableName = f3;
|
|
460
455
|
let d4 = n(u2, e3.isTest) + s3;
|
|
@@ -467,7 +462,7 @@ function J(e2, t2, s2, i2) {
|
|
|
467
462
|
b3("点击了取消按钮");
|
|
468
463
|
});
|
|
469
464
|
});
|
|
470
|
-
}(d2, m2, i2,
|
|
465
|
+
}(d2, m2, i2, T2, f2, g2, s2, b2, y2);
|
|
471
466
|
h2 ? h2.then((e3) => {
|
|
472
467
|
F(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
473
468
|
}).catch((e3) => {
|
|
@@ -477,33 +472,33 @@ function J(e2, t2, s2, i2) {
|
|
|
477
472
|
}
|
|
478
473
|
function z(e2, s2) {
|
|
479
474
|
var _a;
|
|
480
|
-
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
475
|
+
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = x(i2, d2), f2 = new FormData();
|
|
481
476
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
482
477
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
483
478
|
g2 && f2.append("importDuplicateRule", g2);
|
|
484
479
|
const b2 = i2.judgeHeavyList;
|
|
485
480
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
486
|
-
const C2 =
|
|
481
|
+
const C2 = me(a2);
|
|
487
482
|
C2 && f2.append("autoSetValueData", C2);
|
|
488
|
-
const
|
|
489
|
-
|
|
490
|
-
const
|
|
491
|
-
|
|
483
|
+
const T2 = i2.formNoRuleCode;
|
|
484
|
+
T2 && f2.append("formNoRuleCode", T2);
|
|
485
|
+
const y2 = e2.listCode;
|
|
486
|
+
y2 && f2.append("listCode", y2);
|
|
492
487
|
let P2 = false;
|
|
493
488
|
P2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", P2 + ""), f2.append("pageCode", i2.code);
|
|
494
489
|
const k2 = t(i2);
|
|
495
490
|
null != k2 && f2.append("isWorkflowEntity", k2 + "");
|
|
496
491
|
const N2 = w(a2, i2);
|
|
497
492
|
N2 && f2.append("functionCode", N2);
|
|
498
|
-
const
|
|
499
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
500
|
-
const
|
|
501
|
-
f2.append("isPermission",
|
|
502
|
-
const
|
|
503
|
-
|
|
493
|
+
const M2 = te(i2);
|
|
494
|
+
f2.append("additionalParamMapStr", JSON.stringify(M2));
|
|
495
|
+
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
496
|
+
f2.append("isPermission", R2 + "");
|
|
497
|
+
const v2 = i2.systemCode;
|
|
498
|
+
v2 && f2.append("systemCode", v2);
|
|
504
499
|
const S2 = i2.backendUrl;
|
|
505
500
|
let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
|
|
506
|
-
I2 = o(I2,
|
|
501
|
+
I2 = o(I2, v2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
|
|
507
502
|
if (P2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
508
503
|
else {
|
|
509
504
|
let t2 = false;
|
|
@@ -530,11 +525,11 @@ function K(e2) {
|
|
|
530
525
|
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);
|
|
531
526
|
const u2 = n2.props.base.conversionCodes;
|
|
532
527
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
533
|
-
const l2 =
|
|
528
|
+
const l2 = me(n2);
|
|
534
529
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
535
530
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
536
531
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
537
|
-
const d2 =
|
|
532
|
+
const d2 = te(t2);
|
|
538
533
|
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids && (c2.ids = [d2.ids]));
|
|
539
534
|
const m2 = n2.props.base.successOperation;
|
|
540
535
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
@@ -544,7 +539,7 @@ function Q(e2, t2, s2, n2, o2) {
|
|
|
544
539
|
let r2;
|
|
545
540
|
if (e2) {
|
|
546
541
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
547
|
-
const s3 =
|
|
542
|
+
const s3 = te(t3);
|
|
548
543
|
e3 && s3 && f(s3._t_ + "_id", e3);
|
|
549
544
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
550
545
|
const o3 = e2.completeTaskResult;
|
|
@@ -564,7 +559,24 @@ function Q(e2, t2, s2, n2, o2) {
|
|
|
564
559
|
return n2 && (n2.operationResult = o2), t2 || F(s2, n2.configureObj, e2, null, false), true;
|
|
565
560
|
}
|
|
566
561
|
async function X(e2, t2) {
|
|
567
|
-
const s2 = await
|
|
562
|
+
const s2 = await function(e3) {
|
|
563
|
+
return new Promise((t3, s3) => {
|
|
564
|
+
var _a, _b, _c, _d;
|
|
565
|
+
const n2 = e3.configureObj;
|
|
566
|
+
if (n2) {
|
|
567
|
+
let s4 = false;
|
|
568
|
+
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
569
|
+
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
570
|
+
s4 = R(t4, n2, o2);
|
|
571
|
+
}
|
|
572
|
+
true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
|
|
573
|
+
t3(e4);
|
|
574
|
+
}).catch(() => {
|
|
575
|
+
t3(false);
|
|
576
|
+
}) : t3(true);
|
|
577
|
+
} else t3(true);
|
|
578
|
+
});
|
|
579
|
+
}(e2);
|
|
568
580
|
return new Promise((i2, a2) => {
|
|
569
581
|
var _a;
|
|
570
582
|
if (s2) {
|
|
@@ -582,37 +594,19 @@ async function X(e2, t2) {
|
|
|
582
594
|
} else i2(true);
|
|
583
595
|
});
|
|
584
596
|
}
|
|
585
|
-
function Z(e2) {
|
|
586
|
-
return new Promise((t2, s2) => {
|
|
587
|
-
var _a, _b, _c, _d;
|
|
588
|
-
const n2 = e2.configureObj;
|
|
589
|
-
if (n2) {
|
|
590
|
-
let s3 = false;
|
|
591
|
-
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
|
|
592
|
-
const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
593
|
-
s3 = M(t3, n2, o2);
|
|
594
|
-
}
|
|
595
|
-
true === s3 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e3) => !(!e3 || !e3.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e3 }) => {
|
|
596
|
-
t2(e3);
|
|
597
|
-
}).catch(() => {
|
|
598
|
-
t2(false);
|
|
599
|
-
}) : t2(true);
|
|
600
|
-
} else t2(true);
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
function ee(e2, t2) {
|
|
597
|
+
function Z(e2, t2) {
|
|
604
598
|
if (t2) {
|
|
605
599
|
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = K(e2);
|
|
606
|
-
c2.assigneeId = r2,
|
|
600
|
+
c2.assigneeId = r2, oe(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
607
601
|
h(s2, o2);
|
|
608
602
|
});
|
|
609
603
|
}
|
|
610
604
|
}
|
|
611
|
-
function
|
|
612
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 =
|
|
605
|
+
function ee(e2) {
|
|
606
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = te(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
613
607
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
614
608
|
}
|
|
615
|
-
function
|
|
609
|
+
function te(t2) {
|
|
616
610
|
if (t2.entity) {
|
|
617
611
|
let s2 = e(t2.entity.page);
|
|
618
612
|
s2 || (s2 = {});
|
|
@@ -620,12 +614,12 @@ function se(t2) {
|
|
|
620
614
|
return n2 && Object.assign(s2, n2), s2;
|
|
621
615
|
}
|
|
622
616
|
}
|
|
623
|
-
function
|
|
617
|
+
function se(e2, t2) {
|
|
624
618
|
if (t2) {
|
|
625
619
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
626
620
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
627
621
|
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
628
|
-
const d2 =
|
|
622
|
+
const d2 = ee(e2);
|
|
629
623
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
630
624
|
const m2 = c.post(p2, d2);
|
|
631
625
|
m2 && m2.then((e3) => {
|
|
@@ -633,23 +627,20 @@ function ne(e2, t2) {
|
|
|
633
627
|
});
|
|
634
628
|
}
|
|
635
629
|
}
|
|
636
|
-
|
|
630
|
+
function ne(e2, t2) {
|
|
637
631
|
if (t2) {
|
|
638
|
-
const s2 =
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(i2, a2);
|
|
648
|
-
});
|
|
649
|
-
}
|
|
632
|
+
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
633
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
634
|
+
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
635
|
+
const d2 = ee(e2);
|
|
636
|
+
d2.completeTaskParam.transactors = t2.userIds.join(",").split(",");
|
|
637
|
+
const m2 = c.post(p2, d2);
|
|
638
|
+
m2 && m2.then((e3) => {
|
|
639
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(s2, i2);
|
|
640
|
+
});
|
|
650
641
|
}
|
|
651
642
|
}
|
|
652
|
-
function
|
|
643
|
+
function oe(e2, t2, s2, n2) {
|
|
653
644
|
return new Promise((i2, a2) => {
|
|
654
645
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
655
646
|
if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
@@ -662,27 +653,27 @@ function ie(e2, t2, s2, n2) {
|
|
|
662
653
|
});
|
|
663
654
|
});
|
|
664
655
|
}
|
|
665
|
-
function
|
|
656
|
+
function ie(e2) {
|
|
666
657
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
|
|
667
658
|
let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
668
659
|
if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
669
|
-
const p2 = t2.code, d2 =
|
|
660
|
+
const p2 = t2.code, d2 = te(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
670
661
|
return c.post(r2, m2);
|
|
671
662
|
}
|
|
672
|
-
function
|
|
663
|
+
function ae(e2, t2) {
|
|
673
664
|
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = K(e2);
|
|
674
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
665
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), oe(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
675
666
|
h(s2, o2);
|
|
676
667
|
});
|
|
677
668
|
}
|
|
678
|
-
function
|
|
669
|
+
function re(e2) {
|
|
679
670
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
|
|
680
671
|
let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
681
672
|
const r2 = K(e2);
|
|
682
673
|
if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
|
|
683
674
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
684
675
|
}
|
|
685
|
-
function
|
|
676
|
+
function ce(e2, t2) {
|
|
686
677
|
if (t2) {
|
|
687
678
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
688
679
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -695,7 +686,7 @@ function ue(e2, t2) {
|
|
|
695
686
|
});
|
|
696
687
|
}
|
|
697
688
|
}
|
|
698
|
-
function
|
|
689
|
+
function ue(e2, t2, s2) {
|
|
699
690
|
let n2 = false;
|
|
700
691
|
return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
|
|
701
692
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -757,18 +748,18 @@ function le(e2, t2, s2) {
|
|
|
757
748
|
return false;
|
|
758
749
|
}(t2))), n2;
|
|
759
750
|
}
|
|
760
|
-
function
|
|
761
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
751
|
+
function le(e2, t2) {
|
|
752
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, pe(e2, t2).then((t3) => {
|
|
762
753
|
e2.isRefresh = true;
|
|
763
754
|
});
|
|
764
755
|
}
|
|
765
|
-
function
|
|
756
|
+
function pe(e2, s2, o2) {
|
|
766
757
|
const i2 = e2.pageType;
|
|
767
758
|
if (i2 && "form" === i2) {
|
|
768
759
|
e2.canClick = false;
|
|
769
760
|
return t(e2) ? function(e3, t2, s3) {
|
|
770
761
|
return new Promise((o3, i3) => {
|
|
771
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
762
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
|
|
772
763
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
773
764
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
774
765
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
@@ -779,10 +770,10 @@ function de(e2, s2, o2) {
|
|
|
779
770
|
t3[s4] = s4;
|
|
780
771
|
}), C2.listCodesMap = t3;
|
|
781
772
|
}
|
|
782
|
-
f2 && (C2.ids =
|
|
783
|
-
const
|
|
784
|
-
h2.restorePageLoadState(),
|
|
785
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules =
|
|
773
|
+
f2 && (C2.ids = de(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
774
|
+
const y2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = E();
|
|
775
|
+
h2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(y2, C2).then((t3) => {
|
|
776
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules = A(e3);
|
|
786
777
|
const s4 = e3.pageType;
|
|
787
778
|
s4 && "form" === s4 && function(e4) {
|
|
788
779
|
(function(e5) {
|
|
@@ -814,30 +805,30 @@ function de(e2, s2, o2) {
|
|
|
814
805
|
}
|
|
815
806
|
e5.actionPermissionMap = s5;
|
|
816
807
|
}(e4);
|
|
817
|
-
}(e3), e3.canClick = true,
|
|
808
|
+
}(e3), e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
818
809
|
}).catch((t3) => {
|
|
819
810
|
e3.canClick = true, i3(t3);
|
|
820
811
|
});
|
|
821
812
|
});
|
|
822
813
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
823
814
|
return new Promise((o3, i3) => {
|
|
824
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
815
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
|
|
825
816
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
826
817
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
827
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest),
|
|
828
|
-
if (!
|
|
818
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), y2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
819
|
+
if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), f2 && (y2.ids = de(f2)), e3.notIdInitializationList && (y2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (y2.additionalParamMap = p2), e3.beanName && (y2.beanName = e3.beanName), g2 && (y2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
829
820
|
const t3 = {};
|
|
830
821
|
e3.tableUuids.forEach((e4) => {
|
|
831
822
|
const s4 = r(u2, l2, e4);
|
|
832
823
|
t3[s4] = s4;
|
|
833
|
-
}),
|
|
824
|
+
}), y2.listCodesMap = t3;
|
|
834
825
|
}
|
|
835
|
-
e3.refercePropMap && (
|
|
826
|
+
e3.refercePropMap && (y2.refercePropMap = e3.refercePropMap);
|
|
836
827
|
const h2 = C2 + "/dsc/commons/gets", P2 = E();
|
|
837
|
-
P2.restorePageLoadState(),
|
|
828
|
+
P2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(h2, y2).then((t3) => {
|
|
838
829
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
839
830
|
const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
|
|
840
|
-
e3.rules = i4, e3.canClick = true,
|
|
831
|
+
e3.rules = i4, e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
|
|
841
832
|
}).catch((t3) => {
|
|
842
833
|
e3.canClick = true, i3(t3);
|
|
843
834
|
});
|
|
@@ -848,10 +839,10 @@ function de(e2, s2, o2) {
|
|
|
848
839
|
e3(true);
|
|
849
840
|
});
|
|
850
841
|
}
|
|
851
|
-
function
|
|
842
|
+
function de(e2) {
|
|
852
843
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
853
844
|
}
|
|
854
|
-
function
|
|
845
|
+
function me(e2) {
|
|
855
846
|
const t2 = e2.props.setValueList;
|
|
856
847
|
if (t2) {
|
|
857
848
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -859,41 +850,26 @@ function fe(e2) {
|
|
|
859
850
|
}
|
|
860
851
|
return null;
|
|
861
852
|
}
|
|
862
|
-
function ge(e2, t2) {
|
|
863
|
-
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
864
|
-
return c.post(i2, o2);
|
|
865
|
-
}
|
|
866
|
-
function be(e2) {
|
|
867
|
-
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
868
|
-
return c.get(s2);
|
|
869
|
-
}
|
|
870
|
-
function Ce(e2) {
|
|
871
|
-
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
872
|
-
return c.delete(t2);
|
|
873
|
-
}
|
|
874
853
|
export {
|
|
875
854
|
F as dealAfterOperate,
|
|
876
855
|
Q as dealCompleteTaskParam,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
oe as doCreateCopyTask,
|
|
856
|
+
se as doAddSigner,
|
|
857
|
+
Z as doAssign,
|
|
858
|
+
ne as doCreateCopyTask,
|
|
881
859
|
z as doImportFinally,
|
|
882
|
-
|
|
883
|
-
|
|
860
|
+
ce as doRemoveSigners,
|
|
861
|
+
ae as doReturnTaskTo,
|
|
884
862
|
D as exportFormReport,
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
863
|
+
te as getAdditionalParamMap,
|
|
864
|
+
pe as getFormData,
|
|
865
|
+
re as getRemoveSigner,
|
|
888
866
|
V as getSaveFormRequest,
|
|
889
867
|
W as getSaveFormRequestWithRow,
|
|
890
|
-
|
|
891
|
-
|
|
868
|
+
ie as getTaskInformitions,
|
|
869
|
+
ue as isVisibleWorkflowButton,
|
|
892
870
|
Y as judgeDataNumber,
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
pe as refreshPage,
|
|
896
|
-
ge as saveChartConditionBase,
|
|
871
|
+
$ as refreshFormOrListPage,
|
|
872
|
+
le as refreshPage,
|
|
897
873
|
_ as standardEvents,
|
|
898
|
-
|
|
874
|
+
G as updateValuesWhenCloseDialog
|
|
899
875
|
};
|
|
@@ -159,5 +159,3 @@ export declare function getFormPropName(prop: any): any;
|
|
|
159
159
|
export declare function getSizeConfig(pageContext: PageContext, configure: Component): any;
|
|
160
160
|
export declare function isPromise(p: any): boolean;
|
|
161
161
|
export declare function decomposeVariable(variable: string): string[];
|
|
162
|
-
export declare function getModelFieldFromPageContext(fields: string[], pageContext: PageContext): any;
|
|
163
|
-
export declare function isNumberDataType(dataType: string): boolean;
|