super-page-runtime 2.3.12-sit2 → 2.3.13-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +4 -4
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +126 -107
- package/dist/es/components/runtime/utils/events/validator-util.js +169 -146
- package/dist/es/components/runtime/utils/page-init-util.js +25 -24
- package/dist/es/components/runtime/utils/page-permission-util.js +14 -14
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +60 -59
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +40 -39
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -3
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +159 -148
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -82
- package/package.json +2 -2
|
@@ -5,13 +5,13 @@ 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 w from "axios";
|
|
9
|
+
import { handleEvent as T, 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
|
-
import { updateChartDatasources as
|
|
13
|
-
import
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
12
|
+
import { updateChartDatasources as S, caculateShowCondition as N, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
|
|
13
|
+
import A from "./print-label.js";
|
|
14
|
+
import { getTableNameByTableUuid as x } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as E } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as _ } from "../page-store.js";
|
|
@@ -47,17 +47,17 @@ const j = { save: function(e2) {
|
|
|
47
47
|
if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
48
48
|
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
49
|
var _a;
|
|
50
|
-
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
50
|
+
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
|
|
51
51
|
let 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,
|
|
54
|
-
r2.beanName && (
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, w2 = t(r2), T2 = P(u2, r2), y2 = { ids: i2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
|
+
r2.beanName && (y2.beanName = r2.beanName);
|
|
55
55
|
const h2 = u2.props.deleteLogicSetting;
|
|
56
|
-
h2 && ("object" == typeof h2 ?
|
|
56
|
+
h2 && ("object" == typeof h2 ? y2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (y2.deleteLogicSetting = h2));
|
|
57
57
|
const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
-
k2 && (
|
|
58
|
+
k2 && (y2.logSettingText = k2.join(""));
|
|
59
59
|
const R2 = u2.props.base.isSafeDelete;
|
|
60
|
-
R2 && (
|
|
60
|
+
R2 && (y2.isSafeDelete = R2), c.delete(g2, { data: y2 }).then((e4) => {
|
|
61
61
|
const t2 = b(r2, m2);
|
|
62
62
|
t2 && (t2.isDeleteChange(true), t2.clearSelections()), q(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
63
63
|
}).catch((e4) => {
|
|
@@ -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
|
-
|
|
91
|
+
const w2 = d();
|
|
92
|
+
w2 && (f2 += "&JWT=" + w2);
|
|
93
|
+
const T2 = "_RUN_CURRENT_ROLE", y2 = m(T2);
|
|
94
|
+
y2 && (f2 += "&" + T2 + "=" + y2);
|
|
95
95
|
if (o2) {
|
|
96
96
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
@@ -111,8 +111,7 @@ const j = { save: function(e2) {
|
|
|
111
111
|
u2 || (u2 = n2.code);
|
|
112
112
|
let l2 = false;
|
|
113
113
|
l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
|
|
114
|
-
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = P(o2, n2), m2 = u2;
|
|
115
|
-
let f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
114
|
+
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = P(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
116
115
|
f2.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) + "", f2.watermarkContent = ((_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("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
|
|
117
116
|
});
|
|
118
117
|
}(e2);
|
|
@@ -138,6 +137,22 @@ const j = { save: function(e2) {
|
|
|
138
137
|
});
|
|
139
138
|
});
|
|
140
139
|
}(e2);
|
|
140
|
+
}, workflowStart: function(e2) {
|
|
141
|
+
return C.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
142
|
+
return new Promise((t2, s2) => {
|
|
143
|
+
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
144
|
+
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
145
|
+
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
146
|
+
const m2 = ee(e3);
|
|
147
|
+
let f2;
|
|
148
|
+
i2.workflow_id || i2.WORKFLOW_ID ? (d2 = n(p2, a2.isTest) + "/dsc/workflow-commons", d2 = o(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), f2.then((s3) => {
|
|
149
|
+
let n2 = true;
|
|
150
|
+
s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
151
|
+
}).catch((e4) => {
|
|
152
|
+
s2(e4);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
}(e2);
|
|
141
156
|
}, submitProcess: function(e2) {
|
|
142
157
|
return C.$emit("clearTableAllStartEditing"), function(e3) {
|
|
143
158
|
return new Promise((t2, s2) => {
|
|
@@ -228,9 +243,10 @@ const j = { save: function(e2) {
|
|
|
228
243
|
let t2 = null;
|
|
229
244
|
try {
|
|
230
245
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
231
|
-
} catch (
|
|
246
|
+
} catch (t3) {
|
|
247
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
232
248
|
}
|
|
233
|
-
|
|
249
|
+
A.printLabel(e3, t2);
|
|
234
250
|
}(e2);
|
|
235
251
|
}, queryCharts: function(e2) {
|
|
236
252
|
D(e2);
|
|
@@ -260,12 +276,11 @@ const j = { save: function(e2) {
|
|
|
260
276
|
let c2, u2 = t2.label;
|
|
261
277
|
u2 || (u2 = t2.code);
|
|
262
278
|
c2 = u2;
|
|
263
|
-
|
|
264
|
-
const p2 = ae(t2);
|
|
279
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ae(t2);
|
|
265
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("-~") : "";
|
|
266
281
|
const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
267
282
|
W();
|
|
268
|
-
|
|
283
|
+
w.post(m2, l2, { responseType: "blob" }).then((e4) => {
|
|
269
284
|
const t3 = document.createElement("a");
|
|
270
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);
|
|
271
286
|
}).finally(() => {
|
|
@@ -285,7 +300,7 @@ function D(e2) {
|
|
|
285
300
|
let o2 = null;
|
|
286
301
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
287
302
|
const a2 = o2 ? o2.state : void 0;
|
|
288
|
-
o2 && (o2.state = "disabled"),
|
|
303
|
+
o2 && (o2.state = "disabled"), S(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
289
304
|
o2 && (o2.state = a2);
|
|
290
305
|
}).catch(() => {
|
|
291
306
|
o2 && (o2.state = a2);
|
|
@@ -296,13 +311,13 @@ function L(e2, s2, o2, a2) {
|
|
|
296
311
|
e2.clickUuid = s2.uuid;
|
|
297
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 };
|
|
298
313
|
u2 && (C2.logSettingText = u2.join(""));
|
|
299
|
-
const
|
|
300
|
-
let
|
|
301
|
-
C2.additionalParamMap =
|
|
314
|
+
const T2 = ae(e2);
|
|
315
|
+
let y2;
|
|
316
|
+
C2.additionalParamMap = T2, 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) {
|
|
302
317
|
return new Promise((a3, i3) => {
|
|
303
318
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
304
319
|
W();
|
|
305
|
-
|
|
320
|
+
w.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
306
321
|
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
307
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);
|
|
308
323
|
}).catch((e4) => {
|
|
@@ -313,7 +328,7 @@ function L(e2, s2, o2, a2) {
|
|
|
313
328
|
return new Promise((a3, i3) => {
|
|
314
329
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
315
330
|
W();
|
|
316
|
-
|
|
331
|
+
w.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
317
332
|
const s4 = new Blob([t3.data]);
|
|
318
333
|
let n2 = "报告.xlsx";
|
|
319
334
|
e3 && (n2 = e3);
|
|
@@ -323,17 +338,17 @@ function L(e2, s2, o2, a2) {
|
|
|
323
338
|
i3(e4);
|
|
324
339
|
});
|
|
325
340
|
});
|
|
326
|
-
}(r2, f2, C2, e2.isTest),
|
|
341
|
+
}(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
|
|
327
342
|
h(e2, s2);
|
|
328
343
|
}).catch((e3) => {
|
|
329
344
|
});
|
|
330
345
|
}
|
|
331
346
|
function W() {
|
|
332
|
-
|
|
347
|
+
w.defaults.headers.common.Authorization = d();
|
|
333
348
|
const e2 = f();
|
|
334
349
|
if (e2) {
|
|
335
350
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
336
|
-
|
|
351
|
+
w.defaults.headers.common[t2] = e2;
|
|
337
352
|
}
|
|
338
353
|
}
|
|
339
354
|
function B(e2, t2) {
|
|
@@ -362,10 +377,10 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
|
362
377
|
b2 && (f2.autoSetValueData = b2);
|
|
363
378
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
364
379
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
return f2.additionalParamMap =
|
|
380
|
+
const w2 = e2.beanName;
|
|
381
|
+
w2 && (f2.beanName = w2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
382
|
+
const T2 = ae(e2);
|
|
383
|
+
return f2.additionalParamMap = T2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
369
384
|
}
|
|
370
385
|
function F(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
371
386
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
@@ -383,13 +398,12 @@ function q(t2, s2, n2, o2, a2) {
|
|
|
383
398
|
const i2 = H(t2, s2, a2);
|
|
384
399
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
385
400
|
let a3 = s3.props.base.successOperation;
|
|
386
|
-
const i3 = s3.props.base.isNeedValueMapping, r2 =
|
|
401
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
|
|
387
402
|
a3 || z.includes(s3.name) || (a3 = "refresh");
|
|
388
|
-
if ("refresh" === a3) {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
403
|
+
if ("refresh" === a3) if (r2) {
|
|
404
|
+
b(t3, r2).refresh();
|
|
405
|
+
} else console.error("tableUuid is empty");
|
|
406
|
+
else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
393
407
|
const o4 = e(t3.entity.page);
|
|
394
408
|
let a4 = n3;
|
|
395
409
|
a4 || (a4 = {}), Object.assign(o4, a4), J(t3, s3, o4, i3);
|
|
@@ -423,7 +437,7 @@ function G(e2, t2, s2) {
|
|
|
423
437
|
const n2 = t2.props.base.successOperation;
|
|
424
438
|
if (!n2 || null === n2) return;
|
|
425
439
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
426
|
-
"noOperation" === n2 ?
|
|
440
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? fe(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
|
|
427
441
|
}
|
|
428
442
|
function J(e2, t2, s2, n2) {
|
|
429
443
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -447,7 +461,7 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
447
461
|
I(s3.entity, r2, a3);
|
|
448
462
|
});
|
|
449
463
|
}
|
|
450
|
-
}(s2, o2, e2),
|
|
464
|
+
}(s2, o2, e2), T(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
|
|
451
465
|
}
|
|
452
466
|
const z = ["dropdown"];
|
|
453
467
|
function K(e2, t2, s2, n2) {
|
|
@@ -458,10 +472,10 @@ function K(e2, t2, s2, n2) {
|
|
|
458
472
|
const a2 = H(e2, t2);
|
|
459
473
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
460
474
|
if (a2 && "list" === a2) {
|
|
461
|
-
const s3 =
|
|
475
|
+
const s3 = y(e2, t2);
|
|
462
476
|
if (s3) {
|
|
463
477
|
b(e2, s3).refresh();
|
|
464
|
-
}
|
|
478
|
+
} else console.error("tableUuid is empty");
|
|
465
479
|
} else if (a2 && "form" === a2) {
|
|
466
480
|
const t3 = e2.entity.data;
|
|
467
481
|
fe(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -471,17 +485,17 @@ function K(e2, t2, s2, n2) {
|
|
|
471
485
|
function Q(e2, t2, s2, a2) {
|
|
472
486
|
return new Promise((r2, l2) => {
|
|
473
487
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
474
|
-
let
|
|
475
|
-
C2 && "noOperation" === C2 && (
|
|
476
|
-
let
|
|
488
|
+
let w2 = false;
|
|
489
|
+
C2 && "noOperation" === C2 && (w2 = true);
|
|
490
|
+
let T2 = d2.tableName;
|
|
477
491
|
if (t2) {
|
|
478
492
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
479
|
-
|
|
493
|
+
T2 = x(d2, t3);
|
|
480
494
|
}
|
|
481
|
-
const
|
|
495
|
+
const y2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
|
|
482
496
|
return new Promise((g3, b3) => {
|
|
483
|
-
const C3 = t3.props.base.title,
|
|
484
|
-
p.confirm(u().t(
|
|
497
|
+
const C3 = t3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
498
|
+
p.confirm(u().t(w3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
485
499
|
const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
|
|
486
500
|
p2.tableName = f3;
|
|
487
501
|
let d4 = n(u2, e3.isTest) + s3;
|
|
@@ -494,8 +508,8 @@ function Q(e2, t2, s2, a2) {
|
|
|
494
508
|
b3("点击了取消按钮");
|
|
495
509
|
});
|
|
496
510
|
});
|
|
497
|
-
}(d2, m2, a2,
|
|
498
|
-
|
|
511
|
+
}(d2, m2, a2, w2, f2, g2, s2, b2, T2);
|
|
512
|
+
y2 ? y2.then((e3) => {
|
|
499
513
|
q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
500
514
|
}).catch((e3) => {
|
|
501
515
|
l2(e3);
|
|
@@ -504,7 +518,7 @@ function Q(e2, t2, s2, a2) {
|
|
|
504
518
|
}
|
|
505
519
|
function X(e2, s2) {
|
|
506
520
|
var _a;
|
|
507
|
-
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
521
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = x(a2, d2), f2 = new FormData();
|
|
508
522
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
509
523
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
510
524
|
g2 && f2.append("importDuplicateRule", g2);
|
|
@@ -512,26 +526,26 @@ function X(e2, s2) {
|
|
|
512
526
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
513
527
|
const C2 = Ce(i2);
|
|
514
528
|
C2 && f2.append("autoSetValueData", C2);
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
let
|
|
520
|
-
|
|
529
|
+
const w2 = a2.formNoRuleCode;
|
|
530
|
+
w2 && f2.append("formNoRuleCode", w2);
|
|
531
|
+
const T2 = e2.listCode;
|
|
532
|
+
T2 && f2.append("listCode", T2);
|
|
533
|
+
let y2 = false;
|
|
534
|
+
y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", a2.code);
|
|
521
535
|
const k2 = t(a2);
|
|
522
536
|
null != k2 && f2.append("isWorkflowEntity", k2 + "");
|
|
523
537
|
const R2 = P(i2, a2);
|
|
524
538
|
R2 && f2.append("functionCode", R2);
|
|
525
539
|
const M2 = ae(a2);
|
|
526
540
|
f2.append("additionalParamMapStr", JSON.stringify(M2));
|
|
527
|
-
const
|
|
528
|
-
f2.append("isPermission",
|
|
529
|
-
const
|
|
530
|
-
|
|
541
|
+
const S2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
542
|
+
f2.append("isPermission", S2 + "");
|
|
543
|
+
const N2 = a2.systemCode;
|
|
544
|
+
N2 && f2.append("systemCode", N2);
|
|
531
545
|
const v2 = a2.backendUrl;
|
|
532
546
|
let I2 = n(v2, a2.isTest) + "/dsc/commons/import-data";
|
|
533
|
-
I2 = o(I2,
|
|
534
|
-
if (
|
|
547
|
+
I2 = o(I2, N2, v2, a2.isTest), c.post(I2, f2).then((e3) => {
|
|
548
|
+
if (y2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
535
549
|
else {
|
|
536
550
|
let t2 = false;
|
|
537
551
|
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), q(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
|
|
@@ -562,7 +576,7 @@ function ee(e2) {
|
|
|
562
576
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
563
577
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
564
578
|
const d2 = ae(t2);
|
|
565
|
-
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
|
|
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参数类型错误"));
|
|
566
580
|
const m2 = n2.props.base.successOperation;
|
|
567
581
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
568
582
|
}
|
|
@@ -599,7 +613,7 @@ async function se(e2, t2) {
|
|
|
599
613
|
let s4 = false;
|
|
600
614
|
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
601
615
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
602
|
-
s4 =
|
|
616
|
+
s4 = N(t4, n2, o2);
|
|
603
617
|
}
|
|
604
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 }) => {
|
|
605
619
|
t3(e4);
|
|
@@ -669,7 +683,7 @@ async function re(e2, t2) {
|
|
|
669
683
|
let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
670
684
|
if (true === s4) {
|
|
671
685
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
672
|
-
s4 =
|
|
686
|
+
s4 = N(t4, n2, o2);
|
|
673
687
|
}
|
|
674
688
|
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 }) => {
|
|
675
689
|
t3(e4);
|
|
@@ -738,43 +752,48 @@ function de(e2, t2) {
|
|
|
738
752
|
});
|
|
739
753
|
}
|
|
740
754
|
}
|
|
741
|
-
function me(e2, t2, s2) {
|
|
742
|
-
let
|
|
743
|
-
return e2 && t2 && ("workflowSave" === e2 ?
|
|
755
|
+
function me(e2, t2, s2, n2, o2) {
|
|
756
|
+
let a2 = false;
|
|
757
|
+
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
744
758
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
745
759
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
746
760
|
return false;
|
|
747
|
-
}(t2) : "
|
|
761
|
+
}(t2) : "workflowStart" === e2 ? a2 = function(e3, t3) {
|
|
762
|
+
if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
|
|
763
|
+
return false;
|
|
764
|
+
}(t2, o2) : "submitProcess" === e2 ? a2 = function(e3) {
|
|
748
765
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
749
766
|
return false;
|
|
750
|
-
}(t2) : "submitTask" === e2 ?
|
|
767
|
+
}(t2) : "submitTask" === e2 ? a2 = function(e3) {
|
|
751
768
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
752
769
|
return false;
|
|
753
|
-
}(t2) : "drawTask" === e2 ?
|
|
770
|
+
}(t2) : "drawTask" === e2 ? a2 = function(e3) {
|
|
754
771
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
755
772
|
return false;
|
|
756
|
-
}(t2) : "abandonReceive" === e2 ?
|
|
773
|
+
}(t2) : "abandonReceive" === e2 ? a2 = function(e3) {
|
|
757
774
|
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
|
|
758
775
|
return false;
|
|
759
|
-
}(t2) : "approve" === e2 || "refuse" === e2 ?
|
|
776
|
+
}(t2) : "approve" === e2 || "refuse" === e2 ? a2 = function(e3) {
|
|
760
777
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
|
|
761
778
|
return false;
|
|
762
|
-
}(t2) : "readed" === e2 ?
|
|
779
|
+
}(t2) : "readed" === e2 ? a2 = function(e3) {
|
|
763
780
|
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
|
|
764
781
|
return false;
|
|
765
|
-
}(t2) : "assign" === e2 ?
|
|
782
|
+
}(t2) : "assign" === e2 ? a2 = function(e3) {
|
|
766
783
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
767
784
|
return false;
|
|
768
|
-
}(t2) : "copyTask" === e2 ?
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
785
|
+
}(t2) : "copyTask" === e2 ? a2 = function(e3, t3) {
|
|
786
|
+
let s3 = false;
|
|
787
|
+
e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (s3 = true);
|
|
788
|
+
t3 && (t3.props.base.state = s3 ? "" : "hidden");
|
|
789
|
+
return true;
|
|
790
|
+
}(t2, n2) : "addSigner" === e2 ? a2 = function(e3) {
|
|
772
791
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
773
792
|
return false;
|
|
774
|
-
}(t2) : "removeSigner" === e2 ?
|
|
793
|
+
}(t2) : "removeSigner" === e2 ? a2 = function(e3) {
|
|
775
794
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
776
795
|
return false;
|
|
777
|
-
}(t2) : "retrieveTask" === e2 ?
|
|
796
|
+
}(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
|
|
778
797
|
if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
|
|
779
798
|
if ("COMPLETED" !== e4.active) return false;
|
|
780
799
|
if ("TYPE_READ" === e4.processingMode) return false;
|
|
@@ -782,10 +801,10 @@ function me(e2, t2, s2) {
|
|
|
782
801
|
return true;
|
|
783
802
|
}(e3)) return true;
|
|
784
803
|
return false;
|
|
785
|
-
}(t2) : "agreement" === e2 || "oppose" === e2 ?
|
|
804
|
+
}(t2) : "agreement" === e2 || "oppose" === e2 ? a2 = function(e3) {
|
|
786
805
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
|
|
787
806
|
return false;
|
|
788
|
-
}(t2) : "kiken" === e2 ?
|
|
807
|
+
}(t2) : "kiken" === e2 ? a2 = function(e3) {
|
|
789
808
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
790
809
|
return false;
|
|
791
810
|
}(t2) : function(e3, t3) {
|
|
@@ -795,10 +814,10 @@ function me(e2, t2, s2) {
|
|
|
795
814
|
t4 && (s3 = t4.taskComplete);
|
|
796
815
|
return s3;
|
|
797
816
|
}(t3);
|
|
798
|
-
}(t2, s2) && (
|
|
817
|
+
}(t2, s2) && (a2 = "returnToPreviousTask" !== e2 || function(e3) {
|
|
799
818
|
if (e3.rebuttable) return true;
|
|
800
819
|
return false;
|
|
801
|
-
}(t2))),
|
|
820
|
+
}(t2))), a2;
|
|
802
821
|
}
|
|
803
822
|
function fe(e2, t2) {
|
|
804
823
|
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ge(e2, t2).then((t3) => {
|
|
@@ -815,7 +834,7 @@ function ge(e2, s2, o2) {
|
|
|
815
834
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
816
835
|
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);
|
|
817
836
|
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 };
|
|
818
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
837
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
819
838
|
const t3 = {};
|
|
820
839
|
e3.tableUuids.forEach((e4) => {
|
|
821
840
|
const s4 = r(u2, l2, e4);
|
|
@@ -823,8 +842,8 @@ function ge(e2, s2, o2) {
|
|
|
823
842
|
}), C2.listCodesMap = t3;
|
|
824
843
|
}
|
|
825
844
|
f2 && (C2.ids = be(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);
|
|
826
|
-
const
|
|
827
|
-
|
|
845
|
+
const w2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", y2 = _();
|
|
846
|
+
y2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(w2, C2).then((t3) => {
|
|
828
847
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
|
|
829
848
|
const s4 = e3.pageType;
|
|
830
849
|
s4 && "form" === s4 && function(e4) {
|
|
@@ -857,7 +876,7 @@ function ge(e2, s2, o2) {
|
|
|
857
876
|
}
|
|
858
877
|
e5.actionPermissionMap = s5;
|
|
859
878
|
}(e4);
|
|
860
|
-
}(e3), e3.canClick = true,
|
|
879
|
+
}(e3), e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
|
|
861
880
|
}).catch((t3) => {
|
|
862
881
|
e3.canClick = true, a3(t3);
|
|
863
882
|
});
|
|
@@ -867,20 +886,20 @@ function ge(e2, s2, o2) {
|
|
|
867
886
|
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ae(e3);
|
|
868
887
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
869
888
|
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);
|
|
870
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest),
|
|
871
|
-
if (!
|
|
889
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), w2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
890
|
+
if (!w2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (w2.id = m(p2._t_ + "_id")), f2 && (w2.ids = be(f2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), g2 && (w2.taskId = g2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
872
891
|
const t3 = {};
|
|
873
892
|
e3.tableUuids.forEach((e4) => {
|
|
874
893
|
const s4 = r(u2, l2, e4);
|
|
875
894
|
t3[s4] = s4;
|
|
876
|
-
}),
|
|
895
|
+
}), w2.listCodesMap = t3;
|
|
877
896
|
}
|
|
878
|
-
e3.refercePropMap && (
|
|
879
|
-
const
|
|
880
|
-
h2.restorePageLoadState(),
|
|
897
|
+
e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
|
|
898
|
+
const y2 = C2 + "/dsc/commons/gets", h2 = _();
|
|
899
|
+
h2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(y2, w2).then((t3) => {
|
|
881
900
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
882
901
|
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
883
|
-
e3.rules = a4, e3.canClick = true,
|
|
902
|
+
e3.rules = a4, e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
884
903
|
}).catch((t3) => {
|
|
885
904
|
e3.canClick = true, a3(t3);
|
|
886
905
|
});
|
|
@@ -902,22 +921,22 @@ function Ce(e2) {
|
|
|
902
921
|
}
|
|
903
922
|
return null;
|
|
904
923
|
}
|
|
905
|
-
function
|
|
924
|
+
function we(e2, t2) {
|
|
906
925
|
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";
|
|
907
926
|
return c.post(a2, o2);
|
|
908
927
|
}
|
|
909
|
-
function
|
|
928
|
+
function Te(e2) {
|
|
910
929
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
911
930
|
return c.get(s2);
|
|
912
931
|
}
|
|
913
|
-
function
|
|
932
|
+
function ye(e2) {
|
|
914
933
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
915
934
|
return c.delete(t2);
|
|
916
935
|
}
|
|
917
936
|
export {
|
|
918
937
|
q as dealAfterOperate,
|
|
919
938
|
te as dealCompleteTaskParam,
|
|
920
|
-
|
|
939
|
+
ye as deleteChartCondition,
|
|
921
940
|
ie as doAddSigner,
|
|
922
941
|
ne as doAssign,
|
|
923
942
|
re as doCreateCopyTask,
|
|
@@ -933,10 +952,10 @@ export {
|
|
|
933
952
|
ue as getTaskInformitions,
|
|
934
953
|
me as isVisibleWorkflowButton,
|
|
935
954
|
Z as judgeDataNumber,
|
|
936
|
-
|
|
955
|
+
Te as listChartConditions,
|
|
937
956
|
K as refreshFormOrListPage,
|
|
938
957
|
fe as refreshPage,
|
|
939
|
-
|
|
958
|
+
we as saveChartConditionBase,
|
|
940
959
|
j as standardEvents,
|
|
941
960
|
Y as updateValuesWhenCloseDialog
|
|
942
961
|
};
|