super-page-runtime 2.3.34-sit1 → 2.3.35-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/anchor-util.js +43 -51
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +98 -96
- package/dist/es/components/runtime/utils/events/event-util.js +24 -12
- package/dist/es/components/runtime/utils/events/standard-event.js +215 -199
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +67 -52
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +30 -20
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +16 -15
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage as o, isArrayFn as s, packageTemplateFiles as i, upperFirstCase as a, getListCode as r } from "../common-util.js";
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
|
-
import { getI18n as
|
|
4
|
-
import { ElMessage as
|
|
3
|
+
import { getI18n as l } from "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-plus";
|
|
5
5
|
import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as C, getRunCurrentRole as w } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import T from "../eventBus.js";
|
|
8
8
|
import k from "axios";
|
|
9
9
|
import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
|
|
10
|
-
import { setStoreInfo as
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import { caculateShowCondition as
|
|
10
|
+
import { setStoreInfo as I } from "../store-util.js";
|
|
11
|
+
import { getPermissionCodes as v, getDefaultValue as S, getModelFields as R } from "../page-init-util.js";
|
|
12
|
+
import { caculateShowCondition as M, updateChartDatasources as N, getVariableValue as x, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
14
|
+
import { getTableNameByTableUuid as U, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
16
16
|
import { functions as W } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as B } from "../page-store.js";
|
|
@@ -30,17 +30,17 @@ const Y = { save: function(e2) {
|
|
|
30
30
|
const t2 = e2.pageContext.code + "_";
|
|
31
31
|
T.$emit(t2 + "export-pdf-report", e2);
|
|
32
32
|
}, submit: function(e2) {
|
|
33
|
-
return
|
|
33
|
+
return le(e2, false, "submit", "/dsc/commons/submits");
|
|
34
34
|
}, submitList: function(e2) {
|
|
35
|
-
return
|
|
35
|
+
return le(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
36
36
|
}, agree: function(e2) {
|
|
37
|
-
return
|
|
37
|
+
return le(e2, false, "agree", "/dsc/commons/approves");
|
|
38
38
|
}, agreeList: function(e2) {
|
|
39
|
-
return
|
|
39
|
+
return le(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
40
40
|
}, disagree: function(e2) {
|
|
41
|
-
return
|
|
41
|
+
return le(e2, false, "disagree", "/dsc/commons/refuses");
|
|
42
42
|
}, disagreeList: function(e2) {
|
|
43
|
-
return
|
|
43
|
+
return le(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
44
44
|
}, back: function(e2) {
|
|
45
45
|
const t2 = e2.pageContext, n2 = t2.entity ? t2.entity.data : {}, o2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
46
46
|
ie(t2, e2.configureObj, n2, o2);
|
|
@@ -48,24 +48,24 @@ const Y = { save: function(e2) {
|
|
|
48
48
|
return function(e3) {
|
|
49
49
|
return new Promise((s2, i2) => {
|
|
50
50
|
const a2 = e3.ids;
|
|
51
|
-
if (!a2 || 0 === a2.length) return
|
|
52
|
-
p.confirm(
|
|
51
|
+
if (!a2 || 0 === a2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
52
|
+
p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
53
53
|
var _a, _b, _c;
|
|
54
|
-
const r2 = e3.pageContext,
|
|
54
|
+
const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = U(r2, m2);
|
|
55
55
|
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
56
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
|
-
const C2 = void 0 ===
|
|
57
|
+
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 = v(l2, r2), k2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
58
58
|
r2.beanName && (k2.beanName = r2.beanName);
|
|
59
|
-
const h2 =
|
|
59
|
+
const h2 = l2.props.deleteLogicSetting;
|
|
60
60
|
h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
|
|
61
|
-
const y2 = (_a =
|
|
61
|
+
const y2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
|
|
62
62
|
y2 && (k2.logSettingText = y2.join(""));
|
|
63
|
-
const P2 =
|
|
63
|
+
const P2 = l2.props.base.isSafeDelete;
|
|
64
64
|
P2 && (k2.isSafeDelete = P2);
|
|
65
|
-
const
|
|
66
|
-
|
|
65
|
+
const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
66
|
+
I2 && (k2.currentOperation = I2), k2.isMobile = L(), c.delete(g2, { data: k2 }).then((e4) => {
|
|
67
67
|
const t2 = b(r2, m2);
|
|
68
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2,
|
|
68
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
69
69
|
}).catch((e4) => {
|
|
70
70
|
i2(e4);
|
|
71
71
|
});
|
|
@@ -80,16 +80,16 @@ const Y = { save: function(e2) {
|
|
|
80
80
|
const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, a2 = i(s2.templateFiles, n2, o2);
|
|
81
81
|
let r2, c2;
|
|
82
82
|
a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
|
|
83
|
-
const
|
|
83
|
+
const l2 = n2.systemCode, u2 = n2.backendUrl, p2 = c2;
|
|
84
84
|
let d2 = "?1=1";
|
|
85
85
|
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : n2.label && (d2 += "&showName=" + encodeURI(n2.label) + ".xlsx");
|
|
86
86
|
const m2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
87
87
|
m2 && (d2 += "&logSettingText=" + m2.join(""));
|
|
88
|
-
|
|
88
|
+
l2 && (d2 += "&systemCode=" + l2);
|
|
89
89
|
const C2 = e3.listCode;
|
|
90
90
|
C2 && (d2 += "&listCode=" + C2);
|
|
91
91
|
n2.beanName && (d2 += "&beanName=" + n2.beanName);
|
|
92
|
-
const w2 =
|
|
92
|
+
const w2 = v(o2, n2);
|
|
93
93
|
w2 && (d2 += "&functionCode=" + w2);
|
|
94
94
|
n2.tableName && (d2 += "&tableName=" + n2.tableName);
|
|
95
95
|
n2.code && (d2 += "&pageCode=" + n2.code);
|
|
@@ -104,7 +104,7 @@ const Y = { save: function(e2) {
|
|
|
104
104
|
if (s2) {
|
|
105
105
|
d2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
|
|
106
106
|
}
|
|
107
|
-
const y2 = t(
|
|
107
|
+
const y2 = t(u2, n2.isTest);
|
|
108
108
|
window.open(y2 + "/dsc/commons/download-files" + d2);
|
|
109
109
|
}(e2);
|
|
110
110
|
}, import: function(e2) {
|
|
@@ -116,12 +116,12 @@ const Y = { save: function(e2) {
|
|
|
116
116
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
117
117
|
const o2 = e3.pageContext, s2 = e3.configureObj, i2 = s2.props.base, a2 = e3.listCode, r2 = e3.selections, c2 = {};
|
|
118
118
|
r2 && r2.length > 0 && (c2.data = r2);
|
|
119
|
-
let
|
|
120
|
-
|
|
121
|
-
let
|
|
122
|
-
|
|
123
|
-
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 =
|
|
124
|
-
g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, a2, d2, null, f2,
|
|
119
|
+
let l2 = o2.label;
|
|
120
|
+
l2 || (l2 = o2.code);
|
|
121
|
+
let u2 = false;
|
|
122
|
+
u2 = void 0 !== i2.isAsync && null !== i2.isAsync && i2.isAsync;
|
|
123
|
+
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 = v(s2, o2), m2 = l2, f2 = { backendUrl: o2.backendUrl, pageContext: o2 }, g2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
124
|
+
g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, a2, d2, null, f2, u2, o2.code, p2), u2 && setTimeout(() => {
|
|
125
125
|
Fe(o2);
|
|
126
126
|
}, 100);
|
|
127
127
|
});
|
|
@@ -137,12 +137,12 @@ const Y = { save: function(e2) {
|
|
|
137
137
|
return new Promise((o2, s2) => {
|
|
138
138
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
139
139
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
140
|
-
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void
|
|
140
|
+
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
141
141
|
const m2 = de(e3);
|
|
142
142
|
let f2;
|
|
143
143
|
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), $(i2.code, a2), f2.then((t2) => {
|
|
144
144
|
let n2 = true;
|
|
145
|
-
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 &&
|
|
145
|
+
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
146
146
|
}).catch((e4) => {
|
|
147
147
|
s2(e4);
|
|
148
148
|
});
|
|
@@ -152,33 +152,40 @@ const Y = { save: function(e2) {
|
|
|
152
152
|
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
153
153
|
return new Promise((o2, s2) => {
|
|
154
154
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
let
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
155
|
+
if (i2.fileuploadInfo && i2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: i2.fileuploadInfo[0].label }), type: "warning", showClose: true }), o2(false);
|
|
156
|
+
else {
|
|
157
|
+
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/start";
|
|
158
|
+
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
159
|
+
const m2 = de(e3);
|
|
160
|
+
let f2;
|
|
161
|
+
a2.workflow_id || a2.WORKFLOW_ID ? (d2 = t(p2, i2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, i2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), $(i2.code, a2), f2.then((t2) => {
|
|
162
|
+
let n2 = true;
|
|
163
|
+
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
164
|
+
}).catch((e4) => {
|
|
165
|
+
s2(e4);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
165
168
|
});
|
|
166
169
|
}(e2);
|
|
167
170
|
}, submitProcess: function(e2) {
|
|
168
171
|
return T.$emit("clearTableAllStartEditing"), function(e3) {
|
|
169
172
|
return new Promise((o2, s2) => {
|
|
170
|
-
const i2 = e3.pageContext
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
173
|
+
const i2 = e3.pageContext;
|
|
174
|
+
if (i2.fileuploadInfo && i2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: i2.fileuploadInfo[0].label }), type: "warning", showClose: true }), o2(false);
|
|
175
|
+
else {
|
|
176
|
+
const a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
177
|
+
let p2 = t(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
178
|
+
if (p2 = n(p2, a2, r2, i2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
179
|
+
const d2 = de(e3);
|
|
180
|
+
$(i2.code, i2.entity.data);
|
|
181
|
+
const m2 = c.post(p2, d2);
|
|
182
|
+
m2 ? m2.then((t2) => {
|
|
183
|
+
let n2 = true;
|
|
184
|
+
t2 && (q(i2.code, i2.entity.data), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
185
|
+
}).catch((e4) => {
|
|
186
|
+
s2(e4);
|
|
187
|
+
}) : q(i2.code, i2.entity.data);
|
|
188
|
+
}
|
|
182
189
|
});
|
|
183
190
|
}(e2);
|
|
184
191
|
}, submitTask: function(e2) {
|
|
@@ -271,7 +278,7 @@ const Y = { save: function(e2) {
|
|
|
271
278
|
}, lineEditCreate: function(e2) {
|
|
272
279
|
return function(e3) {
|
|
273
280
|
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = b(t2, n2);
|
|
274
|
-
o2 && (e3.getDefaultValueFunc =
|
|
281
|
+
o2 && (e3.getDefaultValueFunc = S, o2.createRow(e3.listCode, {}, e3));
|
|
275
282
|
}(e2);
|
|
276
283
|
}, printLabel: function(e2) {
|
|
277
284
|
return function(e3) {
|
|
@@ -307,17 +314,17 @@ const Y = { save: function(e2) {
|
|
|
307
314
|
}
|
|
308
315
|
}
|
|
309
316
|
if (!r2 || 0 == r2.length) return;
|
|
310
|
-
let c2,
|
|
311
|
-
|
|
312
|
-
c2 =
|
|
313
|
-
const
|
|
314
|
-
|
|
317
|
+
let c2, l2 = n2.label;
|
|
318
|
+
l2 || (l2 = n2.code);
|
|
319
|
+
c2 = l2;
|
|
320
|
+
const u2 = { reportDataList: r2, beanName: n2.beanName, systemCode: n2.systemCode, pageCode: n2.code }, p2 = Te(n2);
|
|
321
|
+
u2.additionalParamMap = p2;
|
|
315
322
|
const d2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
316
|
-
d2 && (
|
|
317
|
-
|
|
323
|
+
d2 && (u2.currentOperation = d2);
|
|
324
|
+
u2.isMobile = L(), u2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", u2.watermark = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
|
|
318
325
|
const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
|
|
319
326
|
X();
|
|
320
|
-
k.post(f2,
|
|
327
|
+
k.post(f2, u2, { responseType: "blob" }).then((e4) => {
|
|
321
328
|
const t2 = document.createElement("a");
|
|
322
329
|
t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
|
|
323
330
|
}).finally(() => {
|
|
@@ -347,7 +354,7 @@ function z(e2) {
|
|
|
347
354
|
let s2 = null;
|
|
348
355
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
349
356
|
const i2 = s2 ? s2.state : void 0;
|
|
350
|
-
s2 && (s2.state = "disabled"),
|
|
357
|
+
s2 && (s2.state = "disabled"), N(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
351
358
|
s2 && (s2.state = i2);
|
|
352
359
|
}).catch(() => {
|
|
353
360
|
s2 && (s2.state = i2);
|
|
@@ -356,8 +363,8 @@ function z(e2) {
|
|
|
356
363
|
function K(e2, n2, s2, i2) {
|
|
357
364
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
358
365
|
e2.clickUuid = n2.uuid, e2.canClick = false;
|
|
359
|
-
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode,
|
|
360
|
-
|
|
366
|
+
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, w2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: v(n2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
367
|
+
l2 && (w2.logSettingText = l2.join(""));
|
|
361
368
|
const b2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
362
369
|
b2 && (w2.currentOperation = b2), w2.isMobile = L();
|
|
363
370
|
const T2 = Te(e2);
|
|
@@ -405,29 +412,32 @@ function X() {
|
|
|
405
412
|
function Q(e2, t2) {
|
|
406
413
|
return new Promise((n2, o2) => {
|
|
407
414
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
|
|
408
|
-
let
|
|
409
|
-
c2 && "noOperation" === c2 && (
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
e3
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
415
|
+
let p2 = false;
|
|
416
|
+
if (c2 && "noOperation" === c2 && (p2 = true), s2.fileuploadInfo && s2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: s2.fileuploadInfo[0].label }), type: "warning", showClose: true }), n2(false);
|
|
417
|
+
else {
|
|
418
|
+
$(s2.code, s2.entity.data);
|
|
419
|
+
const e3 = te(s2, i2, "/dsc/commons", p2, a2, r2);
|
|
420
|
+
e3 ? e3.then((e4) => {
|
|
421
|
+
e4 && q(s2.code, s2.entity.data), ne(s2, i2, e4, "superPageRuntimeMessage.successfulSave", t2), n2(e4);
|
|
422
|
+
}).catch((e4) => {
|
|
423
|
+
o2(e4);
|
|
424
|
+
}) : (q(s2.code, s2.entity.data), o2("保存时request不存在"));
|
|
425
|
+
}
|
|
416
426
|
});
|
|
417
427
|
}
|
|
418
428
|
function Z(e2, t2, n2, i2, a2, r2, c2) {
|
|
419
429
|
var _a, _b, _c;
|
|
420
|
-
const
|
|
430
|
+
const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = v(t2, e2);
|
|
421
431
|
let m2 = c2;
|
|
422
432
|
m2 || (m2 = e2.entity.data);
|
|
423
|
-
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity:
|
|
433
|
+
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: l2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
424
434
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
425
435
|
const g2 = t2.props.base.conversionCodes;
|
|
426
436
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
427
437
|
const C2 = De(t2);
|
|
428
438
|
C2 && (f2.autoSetValueData = C2);
|
|
429
439
|
const w2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
|
|
430
|
-
w2 && (f2.logSettingText = w2.join("")), f2.systemCode || (f2.systemCode =
|
|
440
|
+
w2 && (f2.logSettingText = w2.join("")), f2.systemCode || (f2.systemCode = u2);
|
|
431
441
|
const b2 = e2.beanName;
|
|
432
442
|
b2 && (f2.beanName = b2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
433
443
|
const T2 = Te(e2);
|
|
@@ -435,13 +445,13 @@ function Z(e2, t2, n2, i2, a2, r2, c2) {
|
|
|
435
445
|
const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
436
446
|
return k2 && (f2.currentOperation = k2), f2.isMobile = L(), f2;
|
|
437
447
|
}
|
|
438
|
-
function ee(e2, o2, s2, i2, a2, r2,
|
|
439
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Z(e2, o2, i2, a2, r2, null,
|
|
440
|
-
return
|
|
441
|
-
const
|
|
442
|
-
let
|
|
443
|
-
p3 = n(p3, e3, o3, r3),
|
|
444
|
-
return
|
|
448
|
+
function ee(e2, o2, s2, i2, a2, r2, l2, u2) {
|
|
449
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Z(e2, o2, i2, a2, r2, null, l2);
|
|
450
|
+
return u2 && u2.tableName && (m2.tableName = u2.tableName), function(e3, o3, s3, i3, a3, r3) {
|
|
451
|
+
const l3 = t(o3, r3);
|
|
452
|
+
let u3, p3 = l3 + i3;
|
|
453
|
+
p3 = n(p3, e3, o3, r3), u3 = a3 && (a3.id || a3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
454
|
+
return u3;
|
|
445
455
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
446
456
|
}
|
|
447
457
|
function te(e2, t2, n2, o2, s2, i2) {
|
|
@@ -462,7 +472,7 @@ function ne(t2, n2, o2, s2, i2) {
|
|
|
462
472
|
let i4 = o3;
|
|
463
473
|
i4 || (i4 = {}), Object.assign(s4, i4), ie(t3, n3, s4, a3);
|
|
464
474
|
}
|
|
465
|
-
s3 &&
|
|
475
|
+
s3 && u({ message: l().t(s3), type: "success", showClose: true });
|
|
466
476
|
}(t2, n2, o2, s2), t2.canClick = true;
|
|
467
477
|
else if (a2 && "form" === a2) !function(e2, t3, n3, o3) {
|
|
468
478
|
if (n3) {
|
|
@@ -476,7 +486,7 @@ function ne(t2, n2, o2, s2, i2) {
|
|
|
476
486
|
se(e2, t3, { ...e2.entity.page });
|
|
477
487
|
} else e2.canClick = true;
|
|
478
488
|
}
|
|
479
|
-
o3 &&
|
|
489
|
+
o3 && u({ message: l().t(o3), type: "success", showClose: true });
|
|
480
490
|
}(t2, n2, o2, s2);
|
|
481
491
|
else {
|
|
482
492
|
const e2 = n2.props.base.successOperation;
|
|
@@ -491,7 +501,7 @@ function se(e2, t2, n2) {
|
|
|
491
501
|
const o2 = t2.props.base.successOperation;
|
|
492
502
|
if (!o2 || null === o2) return;
|
|
493
503
|
const s2 = t2.props.base.isNeedValueMapping;
|
|
494
|
-
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ?
|
|
504
|
+
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? Ue(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ie(e2, t2, n2, s2), e2.canClick = true);
|
|
495
505
|
}
|
|
496
506
|
function ie(e2, t2, n2, o2) {
|
|
497
507
|
const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -532,47 +542,51 @@ function ce(e2, t2, n2, o2) {
|
|
|
532
542
|
}
|
|
533
543
|
} else if (i2 && "form" === i2) {
|
|
534
544
|
const t3 = e2.entity.data;
|
|
535
|
-
|
|
545
|
+
Ue(e2, t3.ID ? t3.ID : t3.id);
|
|
536
546
|
}
|
|
537
547
|
}
|
|
538
548
|
}
|
|
539
|
-
function
|
|
540
|
-
return new Promise((r2,
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
T2 =
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
549
|
+
function le(e2, o2, s2, i2) {
|
|
550
|
+
return new Promise((r2, d2) => {
|
|
551
|
+
const m2 = e2.pageContext, f2 = e2.configureObj;
|
|
552
|
+
if (m2.fileuploadInfo && m2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: m2.fileuploadInfo[0].label }), type: "warning", showClose: true }), r2(false);
|
|
553
|
+
else {
|
|
554
|
+
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, w2 = f2.props.base.successOperation;
|
|
555
|
+
let b2 = false;
|
|
556
|
+
w2 && "noOperation" === w2 && (b2 = true);
|
|
557
|
+
let T2 = m2.tableName;
|
|
558
|
+
if (o2) {
|
|
559
|
+
const t2 = f2.props.base.tableUuid ? f2.props.base.tableUuid : e2.tableUuid;
|
|
560
|
+
T2 = U(m2, t2);
|
|
561
|
+
} else $(m2.code, m2.entity.data);
|
|
562
|
+
const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
|
|
563
|
+
return new Promise((g3, C3) => {
|
|
564
|
+
const w3 = o3.props.base.title, b3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
565
|
+
p.confirm(l().t(b3, { name: w3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
566
|
+
const a2 = e3.systemCode, l2 = e3.backendUrl, p2 = Z(e3, o3, i3, r3, u3, m3, null);
|
|
567
|
+
p2.tableName = f3;
|
|
568
|
+
let d4 = t(l2, e3.isTest) + s3;
|
|
569
|
+
d4 = n(d4, a2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
570
|
+
g3(e4);
|
|
571
|
+
}).catch((e4) => {
|
|
572
|
+
C3(e4);
|
|
573
|
+
});
|
|
574
|
+
}).catch(() => {
|
|
575
|
+
C3("点击了取消按钮");
|
|
560
576
|
});
|
|
561
|
-
}).catch(() => {
|
|
562
|
-
C3("点击了取消按钮");
|
|
563
577
|
});
|
|
564
|
-
});
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
578
|
+
}(m2, f2, i2, b2, u2, g2, s2, C2, T2);
|
|
579
|
+
k2 ? k2.then((e3) => {
|
|
580
|
+
!o2 && e3 && q(m2.code, m2.entity.data), ne(m2, f2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
|
|
581
|
+
}).catch((e3) => {
|
|
582
|
+
d2(e3);
|
|
583
|
+
}) : (o2 || q(m2.code, m2.entity.data), d2("request不存在"));
|
|
584
|
+
}
|
|
571
585
|
});
|
|
572
586
|
}
|
|
573
|
-
function
|
|
587
|
+
function ue(e2, s2) {
|
|
574
588
|
var _a, _b, _c;
|
|
575
|
-
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 =
|
|
589
|
+
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 = U(i2, d2), f2 = new FormData();
|
|
576
590
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
577
591
|
const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
578
592
|
g2 && f2.append("currentOperation", g2), f2.append("isMobile", L()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -590,21 +604,21 @@ function le(e2, s2) {
|
|
|
590
604
|
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
|
|
591
605
|
const y2 = o(i2);
|
|
592
606
|
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
const
|
|
596
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
607
|
+
const I2 = v(a2, i2);
|
|
608
|
+
I2 && f2.append("functionCode", I2);
|
|
609
|
+
const S2 = Te(i2);
|
|
610
|
+
f2.append("additionalParamMapStr", JSON.stringify(S2));
|
|
597
611
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
598
612
|
f2.append("isPermission", R2 + "");
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
const
|
|
602
|
-
let x2 = t(
|
|
603
|
-
x2 = n(x2,
|
|
604
|
-
if (h2)
|
|
613
|
+
const M2 = i2.systemCode;
|
|
614
|
+
M2 && f2.append("systemCode", M2);
|
|
615
|
+
const N2 = i2.backendUrl;
|
|
616
|
+
let x2 = t(N2, i2.isTest) + "/dsc/commons/import-data";
|
|
617
|
+
x2 = n(x2, M2, N2, i2.isTest), c.post(x2, f2).then((e3) => {
|
|
618
|
+
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(i2);
|
|
605
619
|
else {
|
|
606
620
|
let t2 = false;
|
|
607
|
-
e3 ? (t2 = false,
|
|
621
|
+
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ne(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
|
|
608
622
|
}
|
|
609
623
|
}).catch((e3) => {
|
|
610
624
|
});
|
|
@@ -613,22 +627,22 @@ function pe(e2, t2) {
|
|
|
613
627
|
const n2 = e2.props.base;
|
|
614
628
|
if (n2.conditionsForExecution && "" !== n2.conditionsForExecution) {
|
|
615
629
|
if ("one" === n2.conditionsForExecution) {
|
|
616
|
-
if (!t2 || 1 !== t2.length) return
|
|
617
|
-
} else if ("more" === n2.conditionsForExecution && (!t2 || t2.length <= 0)) return
|
|
630
|
+
if (!t2 || 1 !== t2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
|
|
631
|
+
} else if ("more" === n2.conditionsForExecution && (!t2 || t2.length <= 0)) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
|
|
618
632
|
}
|
|
619
633
|
return true;
|
|
620
634
|
}
|
|
621
635
|
function de(e2) {
|
|
622
636
|
var _a, _b, _c;
|
|
623
637
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
624
|
-
let r2 =
|
|
638
|
+
let r2 = v(n2, t2);
|
|
625
639
|
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
626
640
|
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
627
641
|
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);
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
const
|
|
631
|
-
|
|
642
|
+
const l2 = n2.props.base.conversionCodes;
|
|
643
|
+
l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2));
|
|
644
|
+
const u2 = De(n2);
|
|
645
|
+
u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
|
|
632
646
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
633
647
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
634
648
|
const d2 = Te(t2);
|
|
@@ -651,14 +665,14 @@ function me(e2, t2, n2, o2, s2) {
|
|
|
651
665
|
const e3 = s3.completeTaskTipType;
|
|
652
666
|
if (e3 && "MESSAGE" === e3) {
|
|
653
667
|
const e4 = s3.content;
|
|
654
|
-
return
|
|
668
|
+
return u({ showClose: true, type: "warning", message: e4 }), false;
|
|
655
669
|
}
|
|
656
670
|
}
|
|
657
671
|
if (e2.completeTaskParam) {
|
|
658
672
|
const t3 = e2.completeTaskParam;
|
|
659
|
-
r2 = t3.taskId, o2 && (o2.taskId = r2),
|
|
673
|
+
r2 = t3.taskId, o2 && (o2.taskId = r2), I(i2, a2, "_completeTaskParam", t3), n2.fieldPermissions = t3.fieldPermissions, n2.actionPermissions = t3.actionPermissions, n2.workflowButtonComponent = t3.buttonComponent, n2.completeTaskParam = t3, n2.completeTaskParam.opinion = null;
|
|
660
674
|
}
|
|
661
|
-
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap,
|
|
675
|
+
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap, I(i2, a2, "_currentActivityName", e2.taskName);
|
|
662
676
|
}
|
|
663
677
|
return o2 && (o2.operationResult = s2), t2 || ne(n2, o2.configureObj, e2, null, false), true;
|
|
664
678
|
}
|
|
@@ -666,16 +680,18 @@ async function fe(e2, o2) {
|
|
|
666
680
|
const s2 = await ge(e2);
|
|
667
681
|
return new Promise((i2, a2) => {
|
|
668
682
|
var _a;
|
|
669
|
-
|
|
670
|
-
|
|
683
|
+
const r2 = e2.pageContext;
|
|
684
|
+
if (r2.fileuploadInfo && r2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: r2.fileuploadInfo[0].label }), type: "warning", showClose: true }), i2(false);
|
|
685
|
+
else if (s2) {
|
|
686
|
+
const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
671
687
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
672
|
-
if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void
|
|
688
|
+
if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
673
689
|
const g2 = de(e2);
|
|
674
690
|
g2.completeTaskParam = { operationResult: o2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
675
691
|
const C2 = c.post(f2, g2);
|
|
676
692
|
$(r2.code, r2.entity.data), C2.then((t2) => {
|
|
677
693
|
let n2 = true;
|
|
678
|
-
t2 && (q(r2.code, r2.entity.data), n2 = me(t2, false, r2, e2, o2)), true === n2 &&
|
|
694
|
+
t2 && (q(r2.code, r2.entity.data), n2 = me(t2, false, r2, e2, o2)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
679
695
|
}).catch((e3) => {
|
|
680
696
|
a2(e3);
|
|
681
697
|
});
|
|
@@ -691,9 +707,9 @@ function ge(e2) {
|
|
|
691
707
|
let n3 = false;
|
|
692
708
|
if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
|
|
693
709
|
const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
694
|
-
n3 =
|
|
710
|
+
n3 = M(t3, s2);
|
|
695
711
|
}
|
|
696
|
-
true === n3 ? (
|
|
712
|
+
true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
697
713
|
} else t2(true);
|
|
698
714
|
});
|
|
699
715
|
}
|
|
@@ -709,8 +725,8 @@ function we(e2) {
|
|
|
709
725
|
var _a, _b;
|
|
710
726
|
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, i2 = e2.configureObj, a2 = Te(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: a2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
711
727
|
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = be(e2);
|
|
712
|
-
const
|
|
713
|
-
return
|
|
728
|
+
const l2 = (_b = (_a = i2 == null ? void 0 : i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
729
|
+
return l2 && (c2.currentOperation = l2), c2.isMobile = L(), c2;
|
|
714
730
|
}
|
|
715
731
|
function be(e2) {
|
|
716
732
|
var _a, _b, _c;
|
|
@@ -722,7 +738,7 @@ function be(e2) {
|
|
|
722
738
|
t2 = o2.config;
|
|
723
739
|
break;
|
|
724
740
|
}
|
|
725
|
-
if (
|
|
741
|
+
if (M(e2.pageContext, o2.conditions)) {
|
|
726
742
|
t2 = o2.config;
|
|
727
743
|
break;
|
|
728
744
|
}
|
|
@@ -742,12 +758,12 @@ function ke(e2, o2) {
|
|
|
742
758
|
if (o2) {
|
|
743
759
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
744
760
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
745
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
761
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
746
762
|
const d2 = we(e2);
|
|
747
763
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
748
764
|
const m2 = c.post(p2, d2);
|
|
749
765
|
m2 && m2.then((e3) => {
|
|
750
|
-
|
|
766
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, i2, e3, null, false), P(s2, i2);
|
|
751
767
|
});
|
|
752
768
|
}
|
|
753
769
|
}
|
|
@@ -755,12 +771,12 @@ function he(e2, o2) {
|
|
|
755
771
|
if (o2) {
|
|
756
772
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
757
773
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
758
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
774
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
759
775
|
const d2 = we(e2);
|
|
760
776
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
761
777
|
const m2 = c.post(p2, d2);
|
|
762
778
|
m2 && m2.then((e3) => {
|
|
763
|
-
|
|
779
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, i2, e3, null, false), P(s2, i2);
|
|
764
780
|
});
|
|
765
781
|
}
|
|
766
782
|
}
|
|
@@ -775,9 +791,9 @@ async function ye(e2, o2) {
|
|
|
775
791
|
if (void 0 === n3 || true === n3) {
|
|
776
792
|
n3 = true;
|
|
777
793
|
const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
778
|
-
n3 =
|
|
794
|
+
n3 = M(t3, s3);
|
|
779
795
|
}
|
|
780
|
-
true === n3 ? p.prompt(
|
|
796
|
+
true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
781
797
|
t2(e4);
|
|
782
798
|
}).catch(() => {
|
|
783
799
|
t2(false);
|
|
@@ -788,13 +804,13 @@ async function ye(e2, o2) {
|
|
|
788
804
|
if (s2) {
|
|
789
805
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
790
806
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/copies";
|
|
791
|
-
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void
|
|
807
|
+
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
792
808
|
const m2 = we(e2);
|
|
793
809
|
m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
794
810
|
const f2 = c.post(d2, m2);
|
|
795
811
|
f2 && f2.then((e3) => {
|
|
796
812
|
var _a;
|
|
797
|
-
|
|
813
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), ne(i2, a2, { entity: (_a = i2.entity) == null ? void 0 : _a.data }, null), P(i2, a2);
|
|
798
814
|
});
|
|
799
815
|
}
|
|
800
816
|
}
|
|
@@ -809,42 +825,42 @@ async function Pe(e2, t2, o2, s2) {
|
|
|
809
825
|
const e3 = true === i2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : i2;
|
|
810
826
|
t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
|
|
811
827
|
}
|
|
812
|
-
if (!(o2 = n(o2, d2, m2, p2.isTest))) return void
|
|
828
|
+
if (!(o2 = n(o2, d2, m2, p2.isTest))) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
813
829
|
const f2 = c.post(o2, t2);
|
|
814
830
|
f2 && f2.then((t3) => {
|
|
815
831
|
let n2 = true;
|
|
816
|
-
t3 && (n2 = me(t3, false, p2, e2, null)), true === n2 &&
|
|
832
|
+
t3 && (n2 = me(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(s2) }), a2(true);
|
|
817
833
|
}).catch((e3) => {
|
|
818
834
|
r2(e3);
|
|
819
835
|
});
|
|
820
836
|
} else a2(true);
|
|
821
837
|
});
|
|
822
838
|
}
|
|
823
|
-
function
|
|
839
|
+
function Ie(e2) {
|
|
824
840
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl, a2 = o2.completeTaskParam;
|
|
825
841
|
let r2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
826
|
-
if (r2 = n(r2, s2, i2, o2.isTest), !r2) return void
|
|
842
|
+
if (r2 = n(r2, s2, i2, o2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
827
843
|
const p2 = o2.code, d2 = Te(o2), m2 = { beanName: o2.beanName, additionalParamMap: d2, tableName: o2.tableName, functionCode: p2 + ".xxx", pageCode: o2.code };
|
|
828
844
|
return c.post(r2, m2);
|
|
829
845
|
}
|
|
830
|
-
function
|
|
846
|
+
function ve(e2, n2) {
|
|
831
847
|
const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = de(e2);
|
|
832
848
|
n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), Pe(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
833
849
|
P(o2, s2);
|
|
834
850
|
});
|
|
835
851
|
}
|
|
836
|
-
function
|
|
852
|
+
function Se(e2) {
|
|
837
853
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
838
854
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
839
855
|
const r2 = de(e2);
|
|
840
856
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
841
|
-
|
|
857
|
+
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
842
858
|
}
|
|
843
859
|
function Re(e2, o2) {
|
|
844
860
|
if (o2) {
|
|
845
861
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
846
862
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
847
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
863
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
848
864
|
const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = de(e2);
|
|
849
865
|
m2.ids = d2;
|
|
850
866
|
const f2 = c.post(p2, m2);
|
|
@@ -853,18 +869,18 @@ function Re(e2, o2) {
|
|
|
853
869
|
});
|
|
854
870
|
}
|
|
855
871
|
}
|
|
856
|
-
function
|
|
872
|
+
function Me(e2) {
|
|
857
873
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
858
874
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
859
875
|
const r2 = de(e2);
|
|
860
876
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
861
|
-
|
|
877
|
+
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
862
878
|
}
|
|
863
|
-
function
|
|
879
|
+
function Ne(e2, o2) {
|
|
864
880
|
if (o2) {
|
|
865
881
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
866
882
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
867
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
883
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
868
884
|
const d2 = o2.map((e3) => e3.taskId), m2 = de(e2);
|
|
869
885
|
m2.ids = d2;
|
|
870
886
|
const f2 = c.post(p2, m2);
|
|
@@ -883,11 +899,11 @@ function xe(e2) {
|
|
|
883
899
|
}
|
|
884
900
|
return new Promise((t2, o3) => {
|
|
885
901
|
const s3 = e2.pageContext, r2 = s3.systemCode, p2 = s3.backendUrl;
|
|
886
|
-
if (i2 = n(i2, r2, p2, s3.isTest), !i2) return void
|
|
902
|
+
if (i2 = n(i2, r2, p2, s3.isTest), !i2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
887
903
|
const d2 = c.post(i2, a2);
|
|
888
904
|
d2 && d2.then((n2) => {
|
|
889
905
|
let o4 = true;
|
|
890
|
-
n2 && (o4 = me(n2, false, s3, e2, null)), true === o4 &&
|
|
906
|
+
n2 && (o4 = me(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
|
|
891
907
|
}).catch((e3) => {
|
|
892
908
|
o3(e3);
|
|
893
909
|
});
|
|
@@ -980,13 +996,13 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
980
996
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
981
997
|
e2.workflowOpinion.showOpinionBox = true;
|
|
982
998
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
983
|
-
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox =
|
|
999
|
+
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
|
|
984
1000
|
}
|
|
985
1001
|
let t3 = false;
|
|
986
1002
|
if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
|
|
987
1003
|
if (t3 = true, true === t3) {
|
|
988
1004
|
const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
|
|
989
|
-
n3 && n3.length > 0 && (t3 =
|
|
1005
|
+
n3 && n3.length > 0 && (t3 = M(e2, n3));
|
|
990
1006
|
}
|
|
991
1007
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
992
1008
|
}
|
|
@@ -996,29 +1012,29 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
996
1012
|
function Ae(e2, t2, n2) {
|
|
997
1013
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
998
1014
|
}
|
|
999
|
-
function
|
|
1000
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
1015
|
+
function Ue(e2, t2) {
|
|
1016
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Ee(e2, t2).then((t3) => {
|
|
1001
1017
|
e2.isRefresh = true;
|
|
1002
1018
|
});
|
|
1003
1019
|
}
|
|
1004
|
-
function
|
|
1020
|
+
function Ee(e2, n2, s2) {
|
|
1005
1021
|
const i2 = e2.pageType;
|
|
1006
1022
|
if (i2 && "form" === i2) {
|
|
1007
1023
|
e2.canClick = false;
|
|
1008
1024
|
return o(e2) ? function(e3, n3, o2) {
|
|
1009
1025
|
return new Promise((s3, i3) => {
|
|
1010
|
-
const a2 = e3.systemCode,
|
|
1026
|
+
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1011
1027
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1012
1028
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1013
|
-
const f2 = p2 ? p2.taskId : null, C2 =
|
|
1029
|
+
const f2 = p2 ? p2.taskId : null, C2 = l2, w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1014
1030
|
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1015
1031
|
const t2 = {};
|
|
1016
1032
|
e3.tableUuids.forEach((e4) => {
|
|
1017
|
-
const n4 = r(
|
|
1033
|
+
const n4 = r(l2, u2, e4);
|
|
1018
1034
|
t2[n4] = n4;
|
|
1019
1035
|
}), w2.listCodesMap = t2;
|
|
1020
1036
|
}
|
|
1021
|
-
m2 && (w2.ids = je(m2)), f2 ? w2.taskId = f2 : d2 ? w2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
|
|
1037
|
+
m2 && (w2.ids = je(m2)), f2 ? w2.taskId = f2 : d2 ? w2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = L();
|
|
1022
1038
|
const b2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = B();
|
|
1023
1039
|
T2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
|
|
1024
1040
|
const k2 = H(e3.code, w2.id);
|
|
@@ -1063,18 +1079,18 @@ function Ue(e2, n2, s2) {
|
|
|
1063
1079
|
});
|
|
1064
1080
|
}(e2, n2, s2) : function(e3, n3, o2) {
|
|
1065
1081
|
return new Promise((s3, i3) => {
|
|
1066
|
-
const a2 = e3.systemCode,
|
|
1082
|
+
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1067
1083
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1068
1084
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1069
|
-
const f2 = p2 ? p2.taskId : null, C2 =
|
|
1085
|
+
const f2 = p2 ? p2.taskId : null, C2 = l2, w2 = t(e3.backendUrl, e3.isTest), b2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1070
1086
|
if (!b2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), m2 && (b2.ids = je(m2)), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), f2 && (b2.taskId = f2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1071
1087
|
const t2 = {};
|
|
1072
1088
|
e3.tableUuids.forEach((e4) => {
|
|
1073
|
-
const n4 = r(
|
|
1089
|
+
const n4 = r(l2, u2, e4);
|
|
1074
1090
|
t2[n4] = n4;
|
|
1075
1091
|
}), b2.listCodesMap = t2;
|
|
1076
1092
|
}
|
|
1077
|
-
e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
|
|
1093
|
+
e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap), b2.isMobile = L();
|
|
1078
1094
|
const T2 = w2 + "/dsc/commons/gets", k2 = B();
|
|
1079
1095
|
k2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
|
|
1080
1096
|
const y2 = H(e3.code, b2.id);
|
|
@@ -1126,13 +1142,13 @@ function Fe(e2) {
|
|
|
1126
1142
|
e2.exportNoticeInfo && (e2.exportNoticeInfo.noticeInterval && clearInterval(e2.exportNoticeInfo.noticeInterval), e2.exportNoticeInfo.noticeComponent = null, e2.exportNoticeInfo.noticeInterval = null), e2.exportNoticeInfo = {}, $e(e2.exportNoticeInfo, e2.backendUrl, e2.code);
|
|
1127
1143
|
}
|
|
1128
1144
|
function Ve(e2, n2, o2) {
|
|
1129
|
-
e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title:
|
|
1145
|
+
e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title: l().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
|
|
1130
1146
|
"Success" === e2.lastFileTask.taskState || "Fail" === e2.lastFileTask.taskState || "PartSuccess" === e2.lastFileTask.taskState ? He(n2, o2, e2.lastFileTask.id, e2) : (e2.noticeComponent = null, null == e2.noticeInterval && $e(e2, n2, o2));
|
|
1131
1147
|
}, message: () => F(V, { isShow: true, backendUrl: n2, lastFileTask: e2.lastFileTask, onClickMsg(s2) {
|
|
1132
1148
|
s2.serverPath ? function(e3, n3, o3, s3, i2, a2) {
|
|
1133
1149
|
He(i2, a2, o3, s3);
|
|
1134
|
-
const r2 = f(), c2 = t(i2),
|
|
1135
|
-
window.open(
|
|
1150
|
+
const r2 = f(), c2 = t(i2), l2 = c2 + "/common/super-form/downloads?jwt=" + r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + n3;
|
|
1151
|
+
window.open(l2);
|
|
1136
1152
|
}(s2.fileName, s2.serverPath, s2.id, e2, n2, o2) : He(n2, o2, s2.id, e2), e2.noticeComponent.close(), e2.noticeComponent = null;
|
|
1137
1153
|
} }) }) : (null != e2.noticeComponent && (e2.noticeComponent.close(), e2.noticeComponent = null), e2.noticeInterval && (clearInterval(e2.noticeInterval), e2.noticeInterval = null));
|
|
1138
1154
|
}
|
|
@@ -1146,7 +1162,7 @@ function $e(e2, t2, n2) {
|
|
|
1146
1162
|
}, 3e3));
|
|
1147
1163
|
}
|
|
1148
1164
|
function qe(e2, t2) {
|
|
1149
|
-
return
|
|
1165
|
+
return E(e2, t2);
|
|
1150
1166
|
}
|
|
1151
1167
|
function He(e2, t2, n2, o2) {
|
|
1152
1168
|
_(e2, n2).then(() => {
|
|
@@ -1166,24 +1182,24 @@ export {
|
|
|
1166
1182
|
Ce as doAssign,
|
|
1167
1183
|
ye as doCreateCopyTask,
|
|
1168
1184
|
Fe as doFileTaskFunc,
|
|
1169
|
-
|
|
1185
|
+
ue as doImportFinally,
|
|
1170
1186
|
Re as doRemoveSigners,
|
|
1171
|
-
|
|
1172
|
-
|
|
1187
|
+
Ne as doRemoveTransactors,
|
|
1188
|
+
ve as doReturnTaskTo,
|
|
1173
1189
|
K as exportFormReport,
|
|
1174
1190
|
xe as extractWorkflowFunc,
|
|
1175
1191
|
Te as getAdditionalParamMap,
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1192
|
+
Ee as getFormData,
|
|
1193
|
+
Se as getRemoveSigner,
|
|
1194
|
+
Me as getRemoveTransactor,
|
|
1179
1195
|
te as getSaveFormRequest,
|
|
1180
1196
|
ee as getSaveFormRequestWithRow,
|
|
1181
|
-
|
|
1197
|
+
Ie as getTaskInformitions,
|
|
1182
1198
|
Oe as isVisibleWorkflowButton,
|
|
1183
1199
|
pe as judgeDataNumber,
|
|
1184
1200
|
Be as listChartConditions,
|
|
1185
1201
|
ce as refreshFormOrListPage,
|
|
1186
|
-
|
|
1202
|
+
Ue as refreshPage,
|
|
1187
1203
|
We as saveChartConditionBase,
|
|
1188
1204
|
Y as standardEvents,
|
|
1189
1205
|
ae as updateValuesWhenCloseDialog
|