super-page-runtime 2.3.13-migrate1 → 2.3.13-rc2
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/standard-event.js +134 -124
- package/dist/es/components/runtime/utils/page-init-util.js +24 -26
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/package.json +2 -2
|
@@ -5,8 +5,8 @@ import { ElMessage as l, ElMessageBox as p } from "element-plus";
|
|
|
5
5
|
import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import C from "../eventBus.js";
|
|
8
|
-
import
|
|
9
|
-
import { handleEvent as
|
|
8
|
+
import T from "axios";
|
|
9
|
+
import { handleEvent as w, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as k } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as P, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
|
|
12
12
|
import { updateChartDatasources as S, caculateShowCondition as N, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
|
|
@@ -50,7 +50,7 @@ const j = { save: function(e2) {
|
|
|
50
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 g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
52
|
g2 = o(g2, 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), w2 = P(u2, r2), y2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
54
|
r2.beanName && (y2.beanName = r2.beanName);
|
|
55
55
|
const h2 = u2.props.deleteLogicSetting;
|
|
56
56
|
h2 && ("object" == typeof h2 ? y2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (y2.deleteLogicSetting = h2));
|
|
@@ -88,10 +88,10 @@ const j = { 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
|
-
y2 && (f2 += "&" +
|
|
91
|
+
const T2 = d();
|
|
92
|
+
T2 && (f2 += "&JWT=" + T2);
|
|
93
|
+
const w2 = "_RUN_CURRENT_ROLE", y2 = m(w2);
|
|
94
|
+
y2 && (f2 += "&" + w2 + "=" + y2);
|
|
95
95
|
if (o2) {
|
|
96
96
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
@@ -200,22 +200,22 @@ const j = { save: function(e2) {
|
|
|
200
200
|
}, drawTask: function(e2) {
|
|
201
201
|
return function(e3) {
|
|
202
202
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = ee(e3);
|
|
203
|
-
return
|
|
203
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
204
204
|
}(e2);
|
|
205
205
|
}, abandonReceive: function(e2) {
|
|
206
206
|
return function(e3) {
|
|
207
207
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = ee(e3);
|
|
208
|
-
return
|
|
208
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
209
209
|
}(e2);
|
|
210
210
|
}, returnToPreviousTask: function(e2) {
|
|
211
211
|
return function(e3) {
|
|
212
212
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = ee(e3);
|
|
213
|
-
return
|
|
213
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
214
214
|
}(e2);
|
|
215
215
|
}, endInstance: function(e2) {
|
|
216
216
|
return function(e3) {
|
|
217
217
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = ee(e3);
|
|
218
|
-
return
|
|
218
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
219
219
|
}(e2);
|
|
220
220
|
}, returnTaskTo: function(e2) {
|
|
221
221
|
return function(e3) {
|
|
@@ -230,7 +230,7 @@ const j = { save: function(e2) {
|
|
|
230
230
|
}, retrieveTask: function(e2) {
|
|
231
231
|
return function(e3) {
|
|
232
232
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = ee(e3);
|
|
233
|
-
return
|
|
233
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
234
234
|
}(e2);
|
|
235
235
|
}, viewDetail: function(e2) {
|
|
236
236
|
}, lineEditCreate: function(e2) {
|
|
@@ -276,11 +276,11 @@ const j = { save: function(e2) {
|
|
|
276
276
|
let c2, u2 = t2.label;
|
|
277
277
|
u2 || (u2 = t2.code);
|
|
278
278
|
c2 = u2;
|
|
279
|
-
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 =
|
|
279
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ie(t2);
|
|
280
280
|
l2.additionalParamMap = p2, l2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", l2.watermark = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "";
|
|
281
281
|
const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
282
282
|
W();
|
|
283
|
-
|
|
283
|
+
T.post(m2, l2, { responseType: "blob" }).then((e4) => {
|
|
284
284
|
const t3 = document.createElement("a");
|
|
285
285
|
t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
|
|
286
286
|
}).finally(() => {
|
|
@@ -311,13 +311,13 @@ function L(e2, s2, o2, a2) {
|
|
|
311
311
|
e2.clickUuid = s2.uuid;
|
|
312
312
|
const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = E.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
313
313
|
u2 && (C2.logSettingText = u2.join(""));
|
|
314
|
-
const
|
|
314
|
+
const w2 = ie(e2);
|
|
315
315
|
let y2;
|
|
316
|
-
C2.additionalParamMap =
|
|
316
|
+
C2.additionalParamMap = w2, C2.isShowWatermark = void 0 === ((_c = (_b = s2.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.isShowWatermark) + "", C2.watermark = ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content) && ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content.length) > 0 ? (_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.join("-~") : "", y2 = a2 ? function(e3, t2, s3, o3) {
|
|
317
317
|
return new Promise((a3, i3) => {
|
|
318
318
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
319
319
|
W();
|
|
320
|
-
|
|
320
|
+
T.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
321
321
|
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
322
322
|
n2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n2.style.display = "none", n2.target = "_blank", n2.href = URL.createObjectURL(s4), document.body.appendChild(n2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2), a3(true);
|
|
323
323
|
}).catch((e4) => {
|
|
@@ -328,7 +328,7 @@ function L(e2, s2, o2, a2) {
|
|
|
328
328
|
return new Promise((a3, i3) => {
|
|
329
329
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
330
330
|
W();
|
|
331
|
-
|
|
331
|
+
T.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
332
332
|
const s4 = new Blob([t3.data]);
|
|
333
333
|
let n2 = "报告.xlsx";
|
|
334
334
|
e3 && (n2 = e3);
|
|
@@ -344,11 +344,11 @@ function L(e2, s2, o2, a2) {
|
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
function W() {
|
|
347
|
-
|
|
347
|
+
T.defaults.headers.common.Authorization = d();
|
|
348
348
|
const e2 = f();
|
|
349
349
|
if (e2) {
|
|
350
350
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
351
|
-
|
|
351
|
+
T.defaults.headers.common[t2] = e2;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
function B(e2, t2) {
|
|
@@ -373,14 +373,14 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
|
373
373
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
374
374
|
const g2 = n2.props.base.conversionCodes;
|
|
375
375
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
376
|
-
const b2 =
|
|
376
|
+
const b2 = Te(n2);
|
|
377
377
|
b2 && (f2.autoSetValueData = b2);
|
|
378
378
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
379
379
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
const
|
|
383
|
-
return f2.additionalParamMap =
|
|
380
|
+
const T2 = e2.beanName;
|
|
381
|
+
T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
382
|
+
const w2 = ie(e2);
|
|
383
|
+
return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
384
384
|
}
|
|
385
385
|
function F(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
386
386
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
@@ -437,7 +437,7 @@ function G(e2, t2, s2) {
|
|
|
437
437
|
const n2 = t2.props.base.successOperation;
|
|
438
438
|
if (!n2 || null === n2) return;
|
|
439
439
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
440
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
440
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? ge(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
|
|
441
441
|
}
|
|
442
442
|
function J(e2, t2, s2, n2) {
|
|
443
443
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -461,7 +461,7 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
461
461
|
I(s3.entity, r2, a3);
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
}(s2, o2, e2),
|
|
464
|
+
}(s2, o2, e2), w(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
|
|
465
465
|
}
|
|
466
466
|
const z = ["dropdown"];
|
|
467
467
|
function K(e2, t2, s2, n2) {
|
|
@@ -478,24 +478,24 @@ function K(e2, t2, s2, n2) {
|
|
|
478
478
|
} else console.error("tableUuid is empty");
|
|
479
479
|
} else if (a2 && "form" === a2) {
|
|
480
480
|
const t3 = e2.entity.data;
|
|
481
|
-
|
|
481
|
+
ge(e2, t3.ID ? t3.ID : t3.id);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
function Q(e2, t2, s2, a2) {
|
|
486
486
|
return new Promise((r2, l2) => {
|
|
487
487
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
488
|
-
let
|
|
489
|
-
C2 && "noOperation" === C2 && (
|
|
490
|
-
let
|
|
488
|
+
let T2 = false;
|
|
489
|
+
C2 && "noOperation" === C2 && (T2 = true);
|
|
490
|
+
let w2 = d2.tableName;
|
|
491
491
|
if (t2) {
|
|
492
492
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
493
|
-
|
|
493
|
+
w2 = x(d2, t3);
|
|
494
494
|
}
|
|
495
495
|
const y2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
|
|
496
496
|
return new Promise((g3, b3) => {
|
|
497
|
-
const C3 = t3.props.base.title,
|
|
498
|
-
p.confirm(u().t(
|
|
497
|
+
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
498
|
+
p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
499
499
|
const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
|
|
500
500
|
p2.tableName = f3;
|
|
501
501
|
let d4 = n(u2, e3.isTest) + s3;
|
|
@@ -508,7 +508,7 @@ function Q(e2, t2, s2, a2) {
|
|
|
508
508
|
b3("点击了取消按钮");
|
|
509
509
|
});
|
|
510
510
|
});
|
|
511
|
-
}(d2, m2, a2,
|
|
511
|
+
}(d2, m2, a2, T2, f2, g2, s2, b2, w2);
|
|
512
512
|
y2 ? y2.then((e3) => {
|
|
513
513
|
q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
514
514
|
}).catch((e3) => {
|
|
@@ -524,19 +524,19 @@ function X(e2, s2) {
|
|
|
524
524
|
g2 && f2.append("importDuplicateRule", g2);
|
|
525
525
|
const b2 = a2.judgeHeavyList;
|
|
526
526
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
527
|
-
const C2 =
|
|
527
|
+
const C2 = Te(i2);
|
|
528
528
|
C2 && f2.append("autoSetValueData", C2);
|
|
529
|
-
const
|
|
530
|
-
|
|
531
|
-
const
|
|
532
|
-
|
|
529
|
+
const T2 = a2.formNoRuleCode;
|
|
530
|
+
T2 && f2.append("formNoRuleCode", T2);
|
|
531
|
+
const w2 = e2.listCode;
|
|
532
|
+
w2 && f2.append("listCode", w2);
|
|
533
533
|
let y2 = false;
|
|
534
534
|
y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", a2.code);
|
|
535
535
|
const k2 = t(a2);
|
|
536
536
|
null != k2 && f2.append("isWorkflowEntity", k2 + "");
|
|
537
537
|
const R2 = P(i2, a2);
|
|
538
538
|
R2 && f2.append("functionCode", R2);
|
|
539
|
-
const M2 =
|
|
539
|
+
const M2 = ie(a2);
|
|
540
540
|
f2.append("additionalParamMapStr", JSON.stringify(M2));
|
|
541
541
|
const S2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
542
542
|
f2.append("isPermission", S2 + "");
|
|
@@ -571,11 +571,11 @@ function ee(e2) {
|
|
|
571
571
|
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);
|
|
572
572
|
const u2 = n2.props.base.conversionCodes;
|
|
573
573
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
574
|
-
const l2 =
|
|
574
|
+
const l2 = Te(n2);
|
|
575
575
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
576
576
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
577
577
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
578
|
-
const d2 =
|
|
578
|
+
const d2 = ie(t2);
|
|
579
579
|
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] : console.error("ids参数类型错误"));
|
|
580
580
|
const m2 = n2.props.base.successOperation;
|
|
581
581
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
@@ -585,7 +585,7 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
585
585
|
let r2;
|
|
586
586
|
if (e2) {
|
|
587
587
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
588
|
-
const s3 =
|
|
588
|
+
const s3 = ie(t3);
|
|
589
589
|
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
590
590
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
591
591
|
const o3 = e2.completeTaskResult;
|
|
@@ -598,31 +598,14 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
598
598
|
}
|
|
599
599
|
if (e2.completeTaskParam) {
|
|
600
600
|
const t3 = e2.completeTaskParam;
|
|
601
|
-
r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
|
|
601
|
+
r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3, s2.completeTaskParam.opinion = null;
|
|
602
602
|
}
|
|
603
603
|
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, k(a2, i2, "_currentActivityName", e2.taskName);
|
|
604
604
|
}
|
|
605
605
|
return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
|
|
606
606
|
}
|
|
607
607
|
async function se(e2, t2) {
|
|
608
|
-
const s2 = await
|
|
609
|
-
return new Promise((t3, s3) => {
|
|
610
|
-
var _a, _b, _c, _d;
|
|
611
|
-
const n2 = e3.configureObj;
|
|
612
|
-
if (n2) {
|
|
613
|
-
let s4 = false;
|
|
614
|
-
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
615
|
-
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
616
|
-
s4 = N(t4, n2, o2);
|
|
617
|
-
}
|
|
618
|
-
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 }) => {
|
|
619
|
-
t3(e4);
|
|
620
|
-
}).catch(() => {
|
|
621
|
-
t3(false);
|
|
622
|
-
}) : t3(true);
|
|
623
|
-
} else t3(true);
|
|
624
|
-
});
|
|
625
|
-
}(e2);
|
|
608
|
+
const s2 = await ne(e2);
|
|
626
609
|
return new Promise((a2, i2) => {
|
|
627
610
|
var _a;
|
|
628
611
|
if (s2) {
|
|
@@ -640,19 +623,37 @@ async function se(e2, t2) {
|
|
|
640
623
|
} else a2(true);
|
|
641
624
|
});
|
|
642
625
|
}
|
|
643
|
-
function ne(e2
|
|
626
|
+
function ne(e2) {
|
|
627
|
+
return new Promise((t2, s2) => {
|
|
628
|
+
var _a, _b, _c, _d;
|
|
629
|
+
const n2 = e2.configureObj;
|
|
630
|
+
if (n2) {
|
|
631
|
+
let s3 = false;
|
|
632
|
+
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
|
|
633
|
+
const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
634
|
+
s3 = N(t3, o2);
|
|
635
|
+
}
|
|
636
|
+
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 }) => {
|
|
637
|
+
t2(e3);
|
|
638
|
+
}).catch(() => {
|
|
639
|
+
t2(false);
|
|
640
|
+
}) : t2(true);
|
|
641
|
+
} else t2(true);
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
function oe(e2, t2) {
|
|
644
645
|
if (t2) {
|
|
645
646
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = ee(e2);
|
|
646
|
-
c2.assigneeId = r2,
|
|
647
|
+
c2.assigneeId = r2, ue(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
647
648
|
h(s2, o2);
|
|
648
649
|
});
|
|
649
650
|
}
|
|
650
651
|
}
|
|
651
|
-
function
|
|
652
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 =
|
|
652
|
+
function ae(e2) {
|
|
653
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ie(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
653
654
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
654
655
|
}
|
|
655
|
-
function
|
|
656
|
+
function ie(t2) {
|
|
656
657
|
if (t2.entity) {
|
|
657
658
|
let s2 = e(t2.entity.page);
|
|
658
659
|
s2 || (s2 = {});
|
|
@@ -660,12 +661,12 @@ function ae(t2) {
|
|
|
660
661
|
return n2 && Object.assign(s2, n2), s2;
|
|
661
662
|
}
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
+
function re(e2, t2) {
|
|
664
665
|
if (t2) {
|
|
665
666
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
666
667
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
667
668
|
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
668
|
-
const d2 =
|
|
669
|
+
const d2 = ae(e2);
|
|
669
670
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
670
671
|
const m2 = c.post(p2, d2);
|
|
671
672
|
m2 && m2.then((e3) => {
|
|
@@ -673,7 +674,7 @@ function ie(e2, t2) {
|
|
|
673
674
|
});
|
|
674
675
|
}
|
|
675
676
|
}
|
|
676
|
-
async function
|
|
677
|
+
async function ce(e2, t2) {
|
|
677
678
|
if (t2) {
|
|
678
679
|
const s2 = await function(e3) {
|
|
679
680
|
return new Promise((t3, s3) => {
|
|
@@ -681,9 +682,10 @@ async function re(e2, t2) {
|
|
|
681
682
|
const n2 = e3.configureObj;
|
|
682
683
|
if (n2) {
|
|
683
684
|
let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
684
|
-
if (true === s4) {
|
|
685
|
+
if (void 0 === s4 || true === s4) {
|
|
686
|
+
s4 = true;
|
|
685
687
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
686
|
-
s4 = N(t4,
|
|
688
|
+
s4 = N(t4, o2);
|
|
687
689
|
}
|
|
688
690
|
true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputRemark"), u().t("superPageRuntimeMessage.remark"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
689
691
|
t3(e4);
|
|
@@ -697,7 +699,7 @@ async function re(e2, t2) {
|
|
|
697
699
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
698
700
|
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
699
701
|
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
700
|
-
const m2 =
|
|
702
|
+
const m2 = ae(e2);
|
|
701
703
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
702
704
|
const f2 = c.post(d2, m2);
|
|
703
705
|
f2 && f2.then((e3) => {
|
|
@@ -706,40 +708,48 @@ async function re(e2, t2) {
|
|
|
706
708
|
}
|
|
707
709
|
}
|
|
708
710
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
711
|
+
async function ue(e2, t2, s2, n2) {
|
|
712
|
+
const a2 = await ne(e2);
|
|
713
|
+
return new Promise((i2, r2) => {
|
|
714
|
+
var _a;
|
|
715
|
+
if (a2) {
|
|
716
|
+
const p2 = e2.pageContext, d2 = p2.systemCode, m2 = p2.backendUrl;
|
|
717
|
+
if (p2.completeTaskParam) {
|
|
718
|
+
const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
|
|
719
|
+
t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
|
|
720
|
+
}
|
|
721
|
+
if (!(s2 = o(s2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
722
|
+
const f2 = c.post(s2, t2);
|
|
723
|
+
f2 && f2.then((t3) => {
|
|
724
|
+
let s3 = true;
|
|
725
|
+
t3 && (s3 = te(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
726
|
+
}).catch((e3) => {
|
|
727
|
+
r2(e3);
|
|
728
|
+
});
|
|
729
|
+
} else i2(true);
|
|
720
730
|
});
|
|
721
731
|
}
|
|
722
|
-
function
|
|
732
|
+
function le(e2) {
|
|
723
733
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
724
734
|
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
725
735
|
if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
726
|
-
const p2 = t2.code, d2 =
|
|
736
|
+
const p2 = t2.code, d2 = ie(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
727
737
|
return c.post(r2, m2);
|
|
728
738
|
}
|
|
729
|
-
function
|
|
739
|
+
function pe(e2, t2) {
|
|
730
740
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
|
|
731
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
741
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ue(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
732
742
|
h(s2, o2);
|
|
733
743
|
});
|
|
734
744
|
}
|
|
735
|
-
function
|
|
745
|
+
function de(e2) {
|
|
736
746
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
737
747
|
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
738
748
|
const r2 = ee(e2);
|
|
739
749
|
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
740
750
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
741
751
|
}
|
|
742
|
-
function
|
|
752
|
+
function me(e2, t2) {
|
|
743
753
|
if (t2) {
|
|
744
754
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
745
755
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -752,7 +762,7 @@ function de(e2, t2) {
|
|
|
752
762
|
});
|
|
753
763
|
}
|
|
754
764
|
}
|
|
755
|
-
function
|
|
765
|
+
function fe(e2, t2, s2, n2, o2) {
|
|
756
766
|
let a2 = false;
|
|
757
767
|
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
758
768
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -819,18 +829,18 @@ function me(e2, t2, s2, n2, o2) {
|
|
|
819
829
|
return false;
|
|
820
830
|
}(t2))), a2;
|
|
821
831
|
}
|
|
822
|
-
function
|
|
823
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
832
|
+
function ge(e2, t2) {
|
|
833
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, be(e2, t2).then((t3) => {
|
|
824
834
|
e2.isRefresh = true;
|
|
825
835
|
});
|
|
826
836
|
}
|
|
827
|
-
function
|
|
837
|
+
function be(e2, s2, o2) {
|
|
828
838
|
const a2 = e2.pageType;
|
|
829
839
|
if (a2 && "form" === a2) {
|
|
830
840
|
e2.canClick = false;
|
|
831
841
|
return t(e2) ? function(e3, t2, s3) {
|
|
832
842
|
return new Promise((o3, a3) => {
|
|
833
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
843
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
|
|
834
844
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
835
845
|
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);
|
|
836
846
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
@@ -841,9 +851,9 @@ function ge(e2, s2, o2) {
|
|
|
841
851
|
t3[s4] = s4;
|
|
842
852
|
}), C2.listCodesMap = t3;
|
|
843
853
|
}
|
|
844
|
-
f2 && (C2.ids =
|
|
845
|
-
const
|
|
846
|
-
y2.restorePageLoadState(),
|
|
854
|
+
f2 && (C2.ids = Ce(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);
|
|
855
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", y2 = _();
|
|
856
|
+
y2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
847
857
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
|
|
848
858
|
const s4 = e3.pageType;
|
|
849
859
|
s4 && "form" === s4 && function(e4) {
|
|
@@ -876,30 +886,30 @@ function ge(e2, s2, o2) {
|
|
|
876
886
|
}
|
|
877
887
|
e5.actionPermissionMap = s5;
|
|
878
888
|
}(e4);
|
|
879
|
-
}(e3), e3.canClick = true,
|
|
889
|
+
}(e3), e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
|
|
880
890
|
}).catch((t3) => {
|
|
881
891
|
e3.canClick = true, a3(t3);
|
|
882
892
|
});
|
|
883
893
|
});
|
|
884
894
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
885
895
|
return new Promise((o3, a3) => {
|
|
886
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
896
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
|
|
887
897
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
888
898
|
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);
|
|
889
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest),
|
|
890
|
-
if (!
|
|
899
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
900
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = Ce(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
891
901
|
const t3 = {};
|
|
892
902
|
e3.tableUuids.forEach((e4) => {
|
|
893
903
|
const s4 = r(u2, l2, e4);
|
|
894
904
|
t3[s4] = s4;
|
|
895
|
-
}),
|
|
905
|
+
}), T2.listCodesMap = t3;
|
|
896
906
|
}
|
|
897
|
-
e3.refercePropMap && (
|
|
907
|
+
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
898
908
|
const y2 = C2 + "/dsc/commons/gets", h2 = _();
|
|
899
|
-
h2.restorePageLoadState(),
|
|
909
|
+
h2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(y2, T2).then((t3) => {
|
|
900
910
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
901
911
|
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
902
|
-
e3.rules = a4, e3.canClick = true,
|
|
912
|
+
e3.rules = a4, e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
903
913
|
}).catch((t3) => {
|
|
904
914
|
e3.canClick = true, a3(t3);
|
|
905
915
|
});
|
|
@@ -910,10 +920,10 @@ function ge(e2, s2, o2) {
|
|
|
910
920
|
e3(true);
|
|
911
921
|
});
|
|
912
922
|
}
|
|
913
|
-
function
|
|
923
|
+
function Ce(e2) {
|
|
914
924
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
915
925
|
}
|
|
916
|
-
function
|
|
926
|
+
function Te(e2) {
|
|
917
927
|
const t2 = e2.props.setValueList;
|
|
918
928
|
if (t2) {
|
|
919
929
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -925,36 +935,36 @@ function we(e2, t2) {
|
|
|
925
935
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
926
936
|
return c.post(a2, o2);
|
|
927
937
|
}
|
|
928
|
-
function
|
|
938
|
+
function ye(e2) {
|
|
929
939
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
930
940
|
return c.get(s2);
|
|
931
941
|
}
|
|
932
|
-
function
|
|
942
|
+
function he(e2) {
|
|
933
943
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
934
944
|
return c.delete(t2);
|
|
935
945
|
}
|
|
936
946
|
export {
|
|
937
947
|
q as dealAfterOperate,
|
|
938
948
|
te as dealCompleteTaskParam,
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
949
|
+
he as deleteChartCondition,
|
|
950
|
+
re as doAddSigner,
|
|
951
|
+
oe as doAssign,
|
|
952
|
+
ce as doCreateCopyTask,
|
|
943
953
|
X as doImportFinally,
|
|
944
|
-
|
|
945
|
-
|
|
954
|
+
me as doRemoveSigners,
|
|
955
|
+
pe as doReturnTaskTo,
|
|
946
956
|
L as exportFormReport,
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
957
|
+
ie as getAdditionalParamMap,
|
|
958
|
+
be as getFormData,
|
|
959
|
+
de as getRemoveSigner,
|
|
950
960
|
$ as getSaveFormRequest,
|
|
951
961
|
F as getSaveFormRequestWithRow,
|
|
952
|
-
|
|
953
|
-
|
|
962
|
+
le as getTaskInformitions,
|
|
963
|
+
fe as isVisibleWorkflowButton,
|
|
954
964
|
Z as judgeDataNumber,
|
|
955
|
-
|
|
965
|
+
ye as listChartConditions,
|
|
956
966
|
K as refreshFormOrListPage,
|
|
957
|
-
|
|
967
|
+
ge as refreshPage,
|
|
958
968
|
we as saveChartConditionBase,
|
|
959
969
|
j as standardEvents,
|
|
960
970
|
Y as updateValuesWhenCloseDialog
|