super-page-runtime 2.3.10 → 2.3.12-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/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +57 -57
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +3 -3
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +232 -226
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +13 -10
- package/dist/es/components/runtime/utils/page-init-util.js +24 -25
- 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/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -94
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +144 -144
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -17
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +41 -36
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +34 -35
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
- package/dist/es/style.css +5 -5
- package/package.json +2 -2
- package/dist/es.zip +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath as o, packageTemplateFiles as
|
|
1
|
+
import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath as o, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import { getI18n as u } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage as l, ElMessageBox as p } from "element-plus";
|
|
@@ -6,19 +6,19 @@ import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSession
|
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import C from "../eventBus.js";
|
|
8
8
|
import T from "axios";
|
|
9
|
-
import { handleEvent as y, getTableUuid as
|
|
10
|
-
import { setStoreInfo as
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import { updateChartDatasources as N, caculateShowCondition as
|
|
9
|
+
import { handleEvent as y, getTableUuid as w, doAfterClickEvent as h } from "./event-util.js";
|
|
10
|
+
import { setStoreInfo as k } from "../store-util.js";
|
|
11
|
+
import { getPermissionCodes as P, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as N, caculateShowCondition as S, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
|
|
13
13
|
import x from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A } 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";
|
|
18
18
|
const j = { save: function(e2) {
|
|
19
|
-
return
|
|
19
|
+
return B(e2, false);
|
|
20
20
|
}, saveList: function(e2) {
|
|
21
|
-
return
|
|
21
|
+
return B(e2, true);
|
|
22
22
|
}, exportForm: function(e2) {
|
|
23
23
|
const t2 = e2.pageContext.code + "_";
|
|
24
24
|
C.$emit(t2 + "export-form-report", e2);
|
|
@@ -42,38 +42,38 @@ const j = { save: function(e2) {
|
|
|
42
42
|
J(t2, e2.configureObj, s2, n2);
|
|
43
43
|
}, delete: function(e2) {
|
|
44
44
|
return function(e3) {
|
|
45
|
-
return new Promise((s2,
|
|
46
|
-
const
|
|
47
|
-
if (!
|
|
45
|
+
return new Promise((s2, a2) => {
|
|
46
|
+
const i2 = e3.ids;
|
|
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
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 = A(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, T2 = t(r2), y2 =
|
|
54
|
-
r2.beanName && (
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = P(u2, r2), w2 = { ids: i2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
|
+
r2.beanName && (w2.beanName = r2.beanName);
|
|
55
|
+
const h2 = u2.props.deleteLogicSetting;
|
|
56
|
+
h2 && ("object" == typeof h2 ? w2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (w2.deleteLogicSetting = h2));
|
|
57
|
+
const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
+
k2 && (w2.logSettingText = k2.join(""));
|
|
59
59
|
const R2 = u2.props.base.isSafeDelete;
|
|
60
|
-
R2 && (
|
|
60
|
+
R2 && (w2.isSafeDelete = R2), c.delete(g2, { data: w2 }).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) => {
|
|
64
|
-
|
|
64
|
+
a2(e4);
|
|
65
65
|
});
|
|
66
66
|
}).catch(() => {
|
|
67
|
-
|
|
67
|
+
a2();
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
}(e2);
|
|
71
71
|
}, downloadTemplate: function(e2) {
|
|
72
72
|
!function(e3) {
|
|
73
73
|
var _a;
|
|
74
|
-
const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base,
|
|
74
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, i2 = a(o2.templateFiles, t2, s2);
|
|
75
75
|
let r2, c2;
|
|
76
|
-
|
|
76
|
+
i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
|
|
77
77
|
const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
|
|
78
78
|
let f2 = "?1=1";
|
|
79
79
|
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? f2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? f2 += "&showName=" + encodeURI(p2) : t2.label && (f2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
|
|
@@ -83,20 +83,20 @@ const j = { save: function(e2) {
|
|
|
83
83
|
const b2 = e3.listCode;
|
|
84
84
|
b2 && (f2 += "&listCode=" + b2);
|
|
85
85
|
t2.beanName && (f2 += "&beanName=" + t2.beanName);
|
|
86
|
-
const C2 =
|
|
86
|
+
const C2 = P(s2, t2);
|
|
87
87
|
C2 && (f2 += "&functionCode=" + C2);
|
|
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
91
|
const T2 = d();
|
|
92
92
|
T2 && (f2 += "&JWT=" + T2);
|
|
93
|
-
const y2 = "_RUN_CURRENT_ROLE",
|
|
94
|
-
|
|
93
|
+
const y2 = "_RUN_CURRENT_ROLE", w2 = m(y2);
|
|
94
|
+
w2 && (f2 += "&" + y2 + "=" + w2);
|
|
95
95
|
if (o2) {
|
|
96
96
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
window.open(
|
|
98
|
+
const h2 = n(l2, t2.isTest);
|
|
99
|
+
window.open(h2 + "/dsc/commons/download-files" + f2);
|
|
100
100
|
}(e2);
|
|
101
101
|
}, import: function(e2) {
|
|
102
102
|
const t2 = e2.pageContext.code + "_";
|
|
@@ -104,14 +104,16 @@ const j = { save: function(e2) {
|
|
|
104
104
|
}, export: function(e2) {
|
|
105
105
|
return function(e3) {
|
|
106
106
|
return new Promise((t2, s2) => {
|
|
107
|
-
|
|
108
|
-
a2
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
108
|
+
const n2 = e3.pageContext, o2 = e3.configureObj, a2 = o2.props.base, i2 = e3.listCode, r2 = e3.selections, c2 = {};
|
|
109
|
+
r2 && r2.length > 0 && (c2.data = r2);
|
|
110
|
+
let u2 = n2.label;
|
|
111
|
+
u2 || (u2 = n2.code);
|
|
112
|
+
let l2 = false;
|
|
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 };
|
|
116
|
+
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);
|
|
115
117
|
});
|
|
116
118
|
}(e2);
|
|
117
119
|
}, search: function(e2) {
|
|
@@ -123,14 +125,14 @@ const j = { save: function(e2) {
|
|
|
123
125
|
}, workflowSave: function(e2) {
|
|
124
126
|
return C.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
125
127
|
return new Promise((t2, s2) => {
|
|
126
|
-
const
|
|
127
|
-
let d2 = n(p2,
|
|
128
|
-
if (d2 = o(d2, r2, p2,
|
|
128
|
+
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
129
|
+
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons";
|
|
130
|
+
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
129
131
|
const m2 = ee(e3);
|
|
130
132
|
let f2;
|
|
131
|
-
f2 =
|
|
133
|
+
f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
|
|
132
134
|
let n2 = true;
|
|
133
|
-
s3 && (n2 = te(s3, false,
|
|
135
|
+
s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
134
136
|
}).catch((e4) => {
|
|
135
137
|
s2(e4);
|
|
136
138
|
});
|
|
@@ -139,13 +141,13 @@ const j = { save: function(e2) {
|
|
|
139
141
|
}, submitProcess: function(e2) {
|
|
140
142
|
return C.$emit("clearTableAllStartEditing"), function(e3) {
|
|
141
143
|
return new Promise((t2, s2) => {
|
|
142
|
-
const
|
|
143
|
-
let p2 = n(r2,
|
|
144
|
-
if (p2 = o(p2,
|
|
144
|
+
const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
145
|
+
let p2 = n(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
146
|
+
if (p2 = o(p2, i2, r2, a2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
145
147
|
const d2 = ee(e3), m2 = c.post(p2, d2);
|
|
146
148
|
m2 && m2.then((s3) => {
|
|
147
149
|
let n2 = true;
|
|
148
|
-
s3 && (n2 = te(s3, false,
|
|
150
|
+
s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
149
151
|
}).catch((e4) => {
|
|
150
152
|
s2(e4);
|
|
151
153
|
});
|
|
@@ -182,23 +184,23 @@ const j = { save: function(e2) {
|
|
|
182
184
|
}(e2);
|
|
183
185
|
}, drawTask: function(e2) {
|
|
184
186
|
return function(e3) {
|
|
185
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks",
|
|
186
|
-
return ce(e3,
|
|
187
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = ee(e3);
|
|
188
|
+
return ce(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
187
189
|
}(e2);
|
|
188
190
|
}, abandonReceive: function(e2) {
|
|
189
191
|
return function(e3) {
|
|
190
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives",
|
|
191
|
-
return ce(e3,
|
|
192
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = ee(e3);
|
|
193
|
+
return ce(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
192
194
|
}(e2);
|
|
193
195
|
}, returnToPreviousTask: function(e2) {
|
|
194
196
|
return function(e3) {
|
|
195
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks",
|
|
196
|
-
return ce(e3,
|
|
197
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = ee(e3);
|
|
198
|
+
return ce(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
197
199
|
}(e2);
|
|
198
200
|
}, endInstance: function(e2) {
|
|
199
201
|
return function(e3) {
|
|
200
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance",
|
|
201
|
-
return ce(e3,
|
|
202
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = ee(e3);
|
|
203
|
+
return ce(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
202
204
|
}(e2);
|
|
203
205
|
}, returnTaskTo: function(e2) {
|
|
204
206
|
return function(e3) {
|
|
@@ -212,8 +214,8 @@ const j = { save: function(e2) {
|
|
|
212
214
|
}(e2);
|
|
213
215
|
}, retrieveTask: function(e2) {
|
|
214
216
|
return function(e3) {
|
|
215
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves",
|
|
216
|
-
return ce(e3,
|
|
217
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = ee(e3);
|
|
218
|
+
return ce(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
217
219
|
}(e2);
|
|
218
220
|
}, viewDetail: function(e2) {
|
|
219
221
|
}, lineEditCreate: function(e2) {
|
|
@@ -226,8 +228,7 @@ const j = { save: function(e2) {
|
|
|
226
228
|
let t2 = null;
|
|
227
229
|
try {
|
|
228
230
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
229
|
-
} catch (
|
|
230
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
231
|
+
} catch (e4) {
|
|
231
232
|
}
|
|
232
233
|
x.printLabel(e3, t2);
|
|
233
234
|
}(e2);
|
|
@@ -239,13 +240,14 @@ const j = { save: function(e2) {
|
|
|
239
240
|
Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, D(t2);
|
|
240
241
|
}, exportCharts: function(e2) {
|
|
241
242
|
!function(e3) {
|
|
243
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
242
244
|
const t2 = e3.pageContext, s2 = t2.allChartUuids;
|
|
243
245
|
if (!s2 || 0 == s2.length) return;
|
|
244
246
|
const o2 = e3.configureObj;
|
|
245
|
-
let
|
|
246
|
-
o2 && o2.runtime && (
|
|
247
|
-
const
|
|
248
|
-
|
|
247
|
+
let a2 = null;
|
|
248
|
+
o2 && o2.runtime && (a2 = o2.runtime.props);
|
|
249
|
+
const i2 = a2 ? a2.state : void 0;
|
|
250
|
+
a2 && (a2.state = "disabled");
|
|
249
251
|
const r2 = [];
|
|
250
252
|
for (let e4 = 0; e4 < s2.length; e4++) {
|
|
251
253
|
const n2 = s2[e4], o3 = b(t2, n2);
|
|
@@ -258,13 +260,16 @@ const j = { save: function(e2) {
|
|
|
258
260
|
let c2, u2 = t2.label;
|
|
259
261
|
u2 || (u2 = t2.code);
|
|
260
262
|
c2 = u2;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
263
|
+
let l2 = { reportDataList: r2, beanName: t2.beanName };
|
|
264
|
+
const p2 = ae(t2);
|
|
265
|
+
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
|
+
const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
267
|
+
W();
|
|
268
|
+
T.post(m2, l2, { responseType: "blob" }).then((e4) => {
|
|
264
269
|
const t3 = document.createElement("a");
|
|
265
270
|
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);
|
|
266
271
|
}).finally(() => {
|
|
267
|
-
|
|
272
|
+
a2 && (a2.state = i2);
|
|
268
273
|
});
|
|
269
274
|
}(e2);
|
|
270
275
|
}, saveQueryCharts: function(e2) {
|
|
@@ -279,51 +284,51 @@ function D(e2) {
|
|
|
279
284
|
const n2 = e2.configureObj;
|
|
280
285
|
let o2 = null;
|
|
281
286
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
282
|
-
const
|
|
287
|
+
const a2 = o2 ? o2.state : void 0;
|
|
283
288
|
o2 && (o2.state = "disabled"), N(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
284
|
-
o2 && (o2.state =
|
|
289
|
+
o2 && (o2.state = a2);
|
|
285
290
|
}).catch(() => {
|
|
286
|
-
o2 && (o2.state =
|
|
291
|
+
o2 && (o2.state = a2);
|
|
287
292
|
});
|
|
288
293
|
}
|
|
289
|
-
function L(e2, s2, o2,
|
|
290
|
-
var _a;
|
|
294
|
+
function L(e2, s2, o2, a2) {
|
|
295
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
291
296
|
e2.clickUuid = s2.uuid;
|
|
292
|
-
const
|
|
297
|
+
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 };
|
|
293
298
|
u2 && (C2.logSettingText = u2.join(""));
|
|
294
|
-
const y2 =
|
|
295
|
-
let
|
|
296
|
-
C2.additionalParamMap = y2,
|
|
297
|
-
return new Promise((
|
|
299
|
+
const y2 = ae(e2);
|
|
300
|
+
let w2;
|
|
301
|
+
C2.additionalParamMap = y2, 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("-~") : "", w2 = a2 ? function(e3, t2, s3, o3) {
|
|
302
|
+
return new Promise((a3, i3) => {
|
|
298
303
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
299
|
-
|
|
304
|
+
W();
|
|
300
305
|
T.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
301
306
|
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
302
|
-
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),
|
|
307
|
+
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);
|
|
303
308
|
}).catch((e4) => {
|
|
304
|
-
|
|
309
|
+
i3(e4);
|
|
305
310
|
});
|
|
306
311
|
});
|
|
307
312
|
}(r2, f2, C2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
308
|
-
return new Promise((
|
|
313
|
+
return new Promise((a3, i3) => {
|
|
309
314
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
310
|
-
|
|
315
|
+
W();
|
|
311
316
|
T.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
312
317
|
const s4 = new Blob([t3.data]);
|
|
313
318
|
let n2 = "报告.xlsx";
|
|
314
319
|
e3 && (n2 = e3);
|
|
315
320
|
const o4 = document.createElement("a");
|
|
316
|
-
o4.download = n2, o4.style.display = "none", o4.target = "_blank", o4.href = URL.createObjectURL(s4), document.body.appendChild(o4), o4.click(), URL.revokeObjectURL(o4.href), document.body.removeChild(o4),
|
|
321
|
+
o4.download = n2, o4.style.display = "none", o4.target = "_blank", o4.href = URL.createObjectURL(s4), document.body.appendChild(o4), o4.click(), URL.revokeObjectURL(o4.href), document.body.removeChild(o4), a3(true);
|
|
317
322
|
}).catch((e4) => {
|
|
318
|
-
|
|
323
|
+
i3(e4);
|
|
319
324
|
});
|
|
320
325
|
});
|
|
321
|
-
}(r2, f2, C2, e2.isTest),
|
|
322
|
-
|
|
326
|
+
}(r2, f2, C2, e2.isTest), w2 && w2.then(() => {
|
|
327
|
+
h(e2, s2);
|
|
323
328
|
}).catch((e3) => {
|
|
324
329
|
});
|
|
325
330
|
}
|
|
326
|
-
function
|
|
331
|
+
function W() {
|
|
327
332
|
T.defaults.headers.common.Authorization = d();
|
|
328
333
|
const e2 = f();
|
|
329
334
|
if (e2) {
|
|
@@ -331,22 +336,22 @@ function B() {
|
|
|
331
336
|
T.defaults.headers.common[t2] = e2;
|
|
332
337
|
}
|
|
333
338
|
}
|
|
334
|
-
function
|
|
339
|
+
function B(e2, t2) {
|
|
335
340
|
return new Promise((s2, n2) => {
|
|
336
|
-
const o2 = e2.pageContext,
|
|
341
|
+
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
337
342
|
let u2 = false;
|
|
338
343
|
c2 && "noOperation" === c2 && (u2 = true);
|
|
339
|
-
const l2 = $(o2,
|
|
344
|
+
const l2 = $(o2, a2, "/dsc/commons", u2, i2, r2);
|
|
340
345
|
l2 ? l2.then((e3) => {
|
|
341
|
-
q(o2,
|
|
346
|
+
q(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
342
347
|
}).catch((e3) => {
|
|
343
348
|
n2(e3);
|
|
344
349
|
}) : n2("保存时request不存在");
|
|
345
350
|
});
|
|
346
351
|
}
|
|
347
|
-
function V(e2, n2, o2,
|
|
352
|
+
function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
348
353
|
var _a;
|
|
349
|
-
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 =
|
|
354
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = P(n2, e2);
|
|
350
355
|
let m2 = c2;
|
|
351
356
|
m2 || (m2 = e2.entity.data);
|
|
352
357
|
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: u2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
@@ -358,39 +363,40 @@ function V(e2, n2, o2, i2, a2, r2, c2) {
|
|
|
358
363
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
359
364
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
360
365
|
const T2 = e2.beanName;
|
|
361
|
-
T2 && (f2.beanName = T2),
|
|
362
|
-
const y2 =
|
|
366
|
+
T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
367
|
+
const y2 = ae(e2);
|
|
363
368
|
return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
364
369
|
}
|
|
365
|
-
function F(e2, t2, s2,
|
|
366
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2,
|
|
367
|
-
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3,
|
|
370
|
+
function F(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
371
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
372
|
+
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
|
|
368
373
|
const u3 = n(t3, r3);
|
|
369
|
-
let l3, p3 = u3 +
|
|
370
|
-
p3 = o(p3, e3, t3, r3), l3 =
|
|
374
|
+
let l3, p3 = u3 + a3;
|
|
375
|
+
p3 = o(p3, e3, t3, r3), l3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
371
376
|
return l3;
|
|
372
377
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
373
378
|
}
|
|
374
|
-
function $(e2, t2, s2, n2, o2,
|
|
375
|
-
return F(e2, t2, s2, n2, o2,
|
|
376
|
-
}
|
|
377
|
-
function q(t2, s2, n2, o2,
|
|
378
|
-
const
|
|
379
|
-
if (
|
|
380
|
-
let
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
if ("refresh" ===
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
379
|
+
function $(e2, t2, s2, n2, o2, a2) {
|
|
380
|
+
return F(e2, t2, s2, n2, o2, a2, null, null);
|
|
381
|
+
}
|
|
382
|
+
function q(t2, s2, n2, o2, a2) {
|
|
383
|
+
const i2 = H(t2, s2, a2);
|
|
384
|
+
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
385
|
+
let a3 = s3.props.base.successOperation;
|
|
386
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = w(t3, s3);
|
|
387
|
+
a3 || z.includes(s3.name) || (a3 = "refresh");
|
|
388
|
+
if ("refresh" === a3) {
|
|
389
|
+
if (r2) {
|
|
390
|
+
b(t3, r2).refresh();
|
|
391
|
+
}
|
|
392
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
387
393
|
const o4 = e(t3.entity.page);
|
|
388
|
-
let
|
|
389
|
-
|
|
394
|
+
let a4 = n3;
|
|
395
|
+
a4 || (a4 = {}), Object.assign(o4, a4), J(t3, s3, o4, i3);
|
|
390
396
|
}
|
|
391
397
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
392
398
|
}(t2, s2, n2, o2), t2.canClick = true;
|
|
393
|
-
else if (
|
|
399
|
+
else if (i2 && "form" === i2) !function(e2, t3, s3, n3) {
|
|
394
400
|
if (s3) {
|
|
395
401
|
const n4 = s3;
|
|
396
402
|
let o3;
|
|
@@ -423,25 +429,25 @@ function J(e2, t2, s2, n2) {
|
|
|
423
429
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
424
430
|
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
425
431
|
else {
|
|
426
|
-
const
|
|
427
|
-
C.$emit(r2 + "close-dialog", { isNeedValueMapping:
|
|
432
|
+
const a2 = e2.tableName, i2 = void 0 !== n2 && true === n2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
|
|
433
|
+
C.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
|
|
428
434
|
}
|
|
429
435
|
}
|
|
430
436
|
function Y(e2, t2, s2, n2, o2) {
|
|
431
437
|
var _a;
|
|
432
438
|
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
433
|
-
const
|
|
439
|
+
const a2 = e2.tableName;
|
|
434
440
|
!function(e3, t3, s3) {
|
|
435
441
|
if (e3 && null !== e3 && t3) {
|
|
436
442
|
let n3 = e3;
|
|
437
443
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
438
444
|
const t4 = e4.source;
|
|
439
445
|
if (!t4) return;
|
|
440
|
-
const o3 = t4.split("."),
|
|
441
|
-
I(s3.entity, r2,
|
|
446
|
+
const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = M(null, i2);
|
|
447
|
+
I(s3.entity, r2, a3);
|
|
442
448
|
});
|
|
443
449
|
}
|
|
444
|
-
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName:
|
|
450
|
+
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
|
|
445
451
|
}
|
|
446
452
|
const z = ["dropdown"];
|
|
447
453
|
function K(e2, t2, s2, n2) {
|
|
@@ -449,20 +455,20 @@ function K(e2, t2, s2, n2) {
|
|
|
449
455
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
450
456
|
let o2 = n2;
|
|
451
457
|
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
452
|
-
const
|
|
453
|
-
if (
|
|
454
|
-
if (
|
|
455
|
-
const s3 =
|
|
458
|
+
const a2 = H(e2, t2);
|
|
459
|
+
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
460
|
+
if (a2 && "list" === a2) {
|
|
461
|
+
const s3 = w(e2, t2);
|
|
456
462
|
if (s3) {
|
|
457
463
|
b(e2, s3).refresh();
|
|
458
|
-
}
|
|
459
|
-
} else if (
|
|
464
|
+
}
|
|
465
|
+
} else if (a2 && "form" === a2) {
|
|
460
466
|
const t3 = e2.entity.data;
|
|
461
467
|
fe(e2, t3.ID ? t3.ID : t3.id);
|
|
462
468
|
}
|
|
463
469
|
}
|
|
464
470
|
}
|
|
465
|
-
function Q(e2, t2, s2,
|
|
471
|
+
function Q(e2, t2, s2, a2) {
|
|
466
472
|
return new Promise((r2, l2) => {
|
|
467
473
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
468
474
|
let T2 = false;
|
|
@@ -472,14 +478,14 @@ function Q(e2, t2, s2, i2) {
|
|
|
472
478
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
473
479
|
y2 = A(d2, t3);
|
|
474
480
|
}
|
|
475
|
-
const
|
|
481
|
+
const w2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
|
|
476
482
|
return new Promise((g3, b3) => {
|
|
477
|
-
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" +
|
|
483
|
+
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
478
484
|
p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
479
|
-
const
|
|
485
|
+
const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
|
|
480
486
|
p2.tableName = f3;
|
|
481
487
|
let d4 = n(u2, e3.isTest) + s3;
|
|
482
|
-
d4 = o(d4,
|
|
488
|
+
d4 = o(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
483
489
|
g3(e4);
|
|
484
490
|
}).catch((e4) => {
|
|
485
491
|
b3(e4);
|
|
@@ -488,8 +494,8 @@ function Q(e2, t2, s2, i2) {
|
|
|
488
494
|
b3("点击了取消按钮");
|
|
489
495
|
});
|
|
490
496
|
});
|
|
491
|
-
}(d2, m2,
|
|
492
|
-
|
|
497
|
+
}(d2, m2, a2, T2, f2, g2, s2, b2, y2);
|
|
498
|
+
w2 ? w2.then((e3) => {
|
|
493
499
|
q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
494
500
|
}).catch((e3) => {
|
|
495
501
|
l2(e3);
|
|
@@ -498,37 +504,37 @@ function Q(e2, t2, s2, i2) {
|
|
|
498
504
|
}
|
|
499
505
|
function X(e2, s2) {
|
|
500
506
|
var _a;
|
|
501
|
-
const
|
|
502
|
-
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2),
|
|
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 = A(a2, d2), f2 = new FormData();
|
|
508
|
+
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
503
509
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
504
510
|
g2 && f2.append("importDuplicateRule", g2);
|
|
505
|
-
const b2 =
|
|
511
|
+
const b2 = a2.judgeHeavyList;
|
|
506
512
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
507
|
-
const C2 = Ce(
|
|
513
|
+
const C2 = Ce(i2);
|
|
508
514
|
C2 && f2.append("autoSetValueData", C2);
|
|
509
|
-
const T2 =
|
|
515
|
+
const T2 = a2.formNoRuleCode;
|
|
510
516
|
T2 && f2.append("formNoRuleCode", T2);
|
|
511
517
|
const y2 = e2.listCode;
|
|
512
518
|
y2 && f2.append("listCode", y2);
|
|
513
|
-
let
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
null !=
|
|
517
|
-
const R2 =
|
|
519
|
+
let w2 = false;
|
|
520
|
+
w2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", w2 + ""), f2.append("pageCode", a2.code);
|
|
521
|
+
const k2 = t(a2);
|
|
522
|
+
null != k2 && f2.append("isWorkflowEntity", k2 + "");
|
|
523
|
+
const R2 = P(i2, a2);
|
|
518
524
|
R2 && f2.append("functionCode", R2);
|
|
519
|
-
const M2 =
|
|
525
|
+
const M2 = ae(a2);
|
|
520
526
|
f2.append("additionalParamMapStr", JSON.stringify(M2));
|
|
521
527
|
const N2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
522
528
|
f2.append("isPermission", N2 + "");
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
const
|
|
526
|
-
let I2 = n(
|
|
527
|
-
I2 = o(I2,
|
|
528
|
-
if (
|
|
529
|
+
const S2 = a2.systemCode;
|
|
530
|
+
S2 && f2.append("systemCode", S2);
|
|
531
|
+
const v2 = a2.backendUrl;
|
|
532
|
+
let I2 = n(v2, a2.isTest) + "/dsc/commons/import-data";
|
|
533
|
+
I2 = o(I2, S2, v2, a2.isTest), c.post(I2, f2).then((e3) => {
|
|
534
|
+
if (w2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
529
535
|
else {
|
|
530
536
|
let t2 = false;
|
|
531
|
-
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(
|
|
537
|
+
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);
|
|
532
538
|
}
|
|
533
539
|
}).catch((e3) => {
|
|
534
540
|
});
|
|
@@ -544,28 +550,28 @@ function Z(e2, t2) {
|
|
|
544
550
|
}
|
|
545
551
|
function ee(e2) {
|
|
546
552
|
var _a;
|
|
547
|
-
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data,
|
|
548
|
-
let r2 =
|
|
549
|
-
r2 || (r2 =
|
|
550
|
-
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode:
|
|
553
|
+
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
554
|
+
let r2 = P(n2, t2);
|
|
555
|
+
r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
556
|
+
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
551
557
|
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);
|
|
552
558
|
const u2 = n2.props.base.conversionCodes;
|
|
553
559
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
554
560
|
const l2 = Ce(n2);
|
|
555
561
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
556
562
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
557
|
-
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode =
|
|
558
|
-
const d2 =
|
|
559
|
-
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
|
|
563
|
+
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
564
|
+
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 && (c2.ids = [d2.ids]));
|
|
560
566
|
const m2 = n2.props.base.successOperation;
|
|
561
567
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
562
568
|
}
|
|
563
569
|
function te(e2, t2, s2, n2, o2) {
|
|
564
|
-
const
|
|
570
|
+
const a2 = s2.code, i2 = s2.version;
|
|
565
571
|
let r2;
|
|
566
572
|
if (e2) {
|
|
567
573
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
568
|
-
const s3 =
|
|
574
|
+
const s3 = ae(t3);
|
|
569
575
|
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
570
576
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
571
577
|
const o3 = e2.completeTaskResult;
|
|
@@ -578,9 +584,9 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
578
584
|
}
|
|
579
585
|
if (e2.completeTaskParam) {
|
|
580
586
|
const t3 = e2.completeTaskParam;
|
|
581
|
-
r2 = t3.taskId, n2 && (n2.taskId = r2),
|
|
587
|
+
r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
|
|
582
588
|
}
|
|
583
|
-
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap,
|
|
589
|
+
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, k(a2, i2, "_currentActivityName", e2.taskName);
|
|
584
590
|
}
|
|
585
591
|
return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
|
|
586
592
|
}
|
|
@@ -593,7 +599,7 @@ async function se(e2, t2) {
|
|
|
593
599
|
let s4 = false;
|
|
594
600
|
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
595
601
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
596
|
-
s4 =
|
|
602
|
+
s4 = S(t4, n2, o2);
|
|
597
603
|
}
|
|
598
604
|
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 }) => {
|
|
599
605
|
t3(e4);
|
|
@@ -603,7 +609,7 @@ async function se(e2, t2) {
|
|
|
603
609
|
} else t3(true);
|
|
604
610
|
});
|
|
605
611
|
}(e2);
|
|
606
|
-
return new Promise((
|
|
612
|
+
return new Promise((a2, i2) => {
|
|
607
613
|
var _a;
|
|
608
614
|
if (s2) {
|
|
609
615
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
@@ -613,26 +619,26 @@ async function se(e2, t2) {
|
|
|
613
619
|
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
614
620
|
c.post(f2, g2).then((s3) => {
|
|
615
621
|
let n2 = true;
|
|
616
|
-
s3 && (n2 = te(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }),
|
|
622
|
+
s3 && (n2 = te(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
|
|
617
623
|
}).catch((e3) => {
|
|
618
|
-
|
|
624
|
+
i2(e3);
|
|
619
625
|
});
|
|
620
|
-
} else
|
|
626
|
+
} else a2(true);
|
|
621
627
|
});
|
|
622
628
|
}
|
|
623
629
|
function ne(e2, t2) {
|
|
624
630
|
if (t2) {
|
|
625
|
-
const s2 = e2.pageContext, o2 = e2.configureObj,
|
|
626
|
-
c2.assigneeId = r2, ce(e2, c2,
|
|
627
|
-
|
|
631
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = ee(e2);
|
|
632
|
+
c2.assigneeId = r2, ce(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
633
|
+
h(s2, o2);
|
|
628
634
|
});
|
|
629
635
|
}
|
|
630
636
|
}
|
|
631
637
|
function oe(e2) {
|
|
632
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code,
|
|
638
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ae(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
633
639
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
634
640
|
}
|
|
635
|
-
function
|
|
641
|
+
function ae(t2) {
|
|
636
642
|
if (t2.entity) {
|
|
637
643
|
let s2 = e(t2.entity.page);
|
|
638
644
|
s2 || (s2 = {});
|
|
@@ -640,16 +646,16 @@ function ie(t2) {
|
|
|
640
646
|
return n2 && Object.assign(s2, n2), s2;
|
|
641
647
|
}
|
|
642
648
|
}
|
|
643
|
-
function
|
|
649
|
+
function ie(e2, t2) {
|
|
644
650
|
if (t2) {
|
|
645
|
-
const s2 = e2.pageContext,
|
|
651
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
646
652
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
647
|
-
if (p2 = o(p2,
|
|
653
|
+
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
648
654
|
const d2 = oe(e2);
|
|
649
655
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
650
656
|
const m2 = c.post(p2, d2);
|
|
651
657
|
m2 && m2.then((e3) => {
|
|
652
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && q(s2,
|
|
658
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && q(s2, a2, e3, null, false), h(s2, a2);
|
|
653
659
|
});
|
|
654
660
|
}
|
|
655
661
|
}
|
|
@@ -663,7 +669,7 @@ async function re(e2, t2) {
|
|
|
663
669
|
let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
664
670
|
if (true === s4) {
|
|
665
671
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
666
|
-
s4 =
|
|
672
|
+
s4 = S(t4, n2, o2);
|
|
667
673
|
}
|
|
668
674
|
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 }) => {
|
|
669
675
|
t3(e4);
|
|
@@ -674,61 +680,61 @@ async function re(e2, t2) {
|
|
|
674
680
|
});
|
|
675
681
|
}(e2);
|
|
676
682
|
if (s2) {
|
|
677
|
-
const
|
|
678
|
-
let d2 = n(p2,
|
|
679
|
-
if (d2 = o(d2, r2, p2,
|
|
683
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
684
|
+
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
685
|
+
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
680
686
|
const m2 = oe(e2);
|
|
681
687
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
682
688
|
const f2 = c.post(d2, m2);
|
|
683
689
|
f2 && f2.then((e3) => {
|
|
684
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }),
|
|
690
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(a2, i2);
|
|
685
691
|
});
|
|
686
692
|
}
|
|
687
693
|
}
|
|
688
694
|
}
|
|
689
695
|
function ce(e2, t2, s2, n2) {
|
|
690
|
-
return new Promise((
|
|
696
|
+
return new Promise((a2, i2) => {
|
|
691
697
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
692
698
|
if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
693
699
|
const m2 = c.post(s2, t2);
|
|
694
700
|
m2 && m2.then((t3) => {
|
|
695
701
|
let s3 = true;
|
|
696
|
-
t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }),
|
|
702
|
+
t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), a2(true);
|
|
697
703
|
}).catch((e3) => {
|
|
698
|
-
|
|
704
|
+
i2(e3);
|
|
699
705
|
});
|
|
700
706
|
});
|
|
701
707
|
}
|
|
702
708
|
function ue(e2) {
|
|
703
|
-
const t2 = e2.pageContext, s2 = t2.systemCode,
|
|
704
|
-
let r2 = n(
|
|
705
|
-
if (r2 = o(r2, s2,
|
|
706
|
-
const p2 = t2.code, d2 =
|
|
709
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
710
|
+
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
711
|
+
if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
712
|
+
const p2 = t2.code, d2 = ae(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
707
713
|
return c.post(r2, m2);
|
|
708
714
|
}
|
|
709
715
|
function le(e2, t2) {
|
|
710
|
-
const s2 = e2.pageContext, o2 = e2.configureObj,
|
|
711
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2,
|
|
712
|
-
|
|
716
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
|
|
717
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
718
|
+
h(s2, o2);
|
|
713
719
|
});
|
|
714
720
|
}
|
|
715
721
|
function pe(e2) {
|
|
716
|
-
const t2 = e2.pageContext, s2 = t2.systemCode,
|
|
717
|
-
let
|
|
722
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
723
|
+
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
718
724
|
const r2 = ee(e2);
|
|
719
|
-
if (
|
|
725
|
+
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
720
726
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
721
727
|
}
|
|
722
728
|
function de(e2, t2) {
|
|
723
729
|
if (t2) {
|
|
724
|
-
const s2 = e2.pageContext,
|
|
730
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
725
731
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
726
|
-
if (p2 = o(p2,
|
|
732
|
+
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
727
733
|
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = ee(e2);
|
|
728
734
|
m2.ids = d2;
|
|
729
735
|
const f2 = c.post(p2, m2);
|
|
730
736
|
f2 && f2.then((e3) => {
|
|
731
|
-
q(s2,
|
|
737
|
+
q(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
|
|
732
738
|
});
|
|
733
739
|
}
|
|
734
740
|
}
|
|
@@ -800,16 +806,16 @@ function fe(e2, t2) {
|
|
|
800
806
|
});
|
|
801
807
|
}
|
|
802
808
|
function ge(e2, s2, o2) {
|
|
803
|
-
const
|
|
804
|
-
if (
|
|
809
|
+
const a2 = e2.pageType;
|
|
810
|
+
if (a2 && "form" === a2) {
|
|
805
811
|
e2.canClick = false;
|
|
806
812
|
return t(e2) ? function(e3, t2, s3) {
|
|
807
|
-
return new Promise((o3,
|
|
808
|
-
const
|
|
813
|
+
return new Promise((o3, a3) => {
|
|
814
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ae(e3);
|
|
809
815
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
810
816
|
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);
|
|
811
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode:
|
|
812
|
-
if (
|
|
817
|
+
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) {
|
|
813
819
|
const t3 = {};
|
|
814
820
|
e3.tableUuids.forEach((e4) => {
|
|
815
821
|
const s4 = r(u2, l2, e4);
|
|
@@ -817,8 +823,8 @@ function ge(e2, s2, o2) {
|
|
|
817
823
|
}), C2.listCodesMap = t3;
|
|
818
824
|
}
|
|
819
825
|
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);
|
|
820
|
-
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets",
|
|
821
|
-
|
|
826
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = _();
|
|
827
|
+
w2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
822
828
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
|
|
823
829
|
const s4 = e3.pageType;
|
|
824
830
|
s4 && "form" === s4 && function(e4) {
|
|
@@ -827,11 +833,11 @@ function ge(e2, s2, o2) {
|
|
|
827
833
|
if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
|
|
828
834
|
const n2 = s5[e6].name;
|
|
829
835
|
if (n2) if (0 === n2.indexOf("$") && n2.indexOf(".") > 0) {
|
|
830
|
-
const o4 = s5[e6],
|
|
831
|
-
if (
|
|
836
|
+
const o4 = s5[e6], a4 = JSON.parse(JSON.stringify(o4)), i3 = n2.substring(1, n2.indexOf(".")), r2 = n2.substring(n2.indexOf(".") + 1);
|
|
837
|
+
if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: true }]);
|
|
832
838
|
else {
|
|
833
|
-
let e7 = t4.get(
|
|
834
|
-
e7 || (e7 = []), e7.push(
|
|
839
|
+
let e7 = t4.get(i3);
|
|
840
|
+
e7 || (e7 = []), e7.push(a4), t4.set(i3, e7);
|
|
835
841
|
}
|
|
836
842
|
} else t4.set(n2, s5[e6]);
|
|
837
843
|
}
|
|
@@ -840,8 +846,8 @@ function ge(e2, s2, o2) {
|
|
|
840
846
|
const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n2 = e5.actionPermissions;
|
|
841
847
|
if (null != n2) {
|
|
842
848
|
Object.keys(n2).forEach((e6) => {
|
|
843
|
-
const o4 = n2[e6],
|
|
844
|
-
if (
|
|
849
|
+
const o4 = n2[e6], a4 = t4.get(e6);
|
|
850
|
+
if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
|
|
845
851
|
else {
|
|
846
852
|
const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
|
|
847
853
|
void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
|
|
@@ -851,18 +857,18 @@ function ge(e2, s2, o2) {
|
|
|
851
857
|
}
|
|
852
858
|
e5.actionPermissionMap = s5;
|
|
853
859
|
}(e4);
|
|
854
|
-
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"),
|
|
860
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), w2.setFormPageDataLoadState(true), o3(t3);
|
|
855
861
|
}).catch((t3) => {
|
|
856
|
-
e3.canClick = true,
|
|
862
|
+
e3.canClick = true, a3(t3);
|
|
857
863
|
});
|
|
858
864
|
});
|
|
859
865
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
860
|
-
return new Promise((o3,
|
|
861
|
-
const
|
|
866
|
+
return new Promise((o3, a3) => {
|
|
867
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ae(e3);
|
|
862
868
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
863
869
|
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);
|
|
864
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode:
|
|
865
|
-
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2),
|
|
870
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
871
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
866
872
|
const t3 = {};
|
|
867
873
|
e3.tableUuids.forEach((e4) => {
|
|
868
874
|
const s4 = r(u2, l2, e4);
|
|
@@ -870,13 +876,13 @@ function ge(e2, s2, o2) {
|
|
|
870
876
|
}), T2.listCodesMap = t3;
|
|
871
877
|
}
|
|
872
878
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
873
|
-
const
|
|
874
|
-
|
|
879
|
+
const w2 = C2 + "/dsc/commons/gets", h2 = _();
|
|
880
|
+
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
|
|
875
881
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
876
|
-
const s4 = e3.customRules, n2 = e3.rules,
|
|
877
|
-
e3.rules =
|
|
882
|
+
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
883
|
+
e3.rules = a4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
878
884
|
}).catch((t3) => {
|
|
879
|
-
e3.canClick = true,
|
|
885
|
+
e3.canClick = true, a3(t3);
|
|
880
886
|
});
|
|
881
887
|
});
|
|
882
888
|
}(e2, s2, o2);
|
|
@@ -897,29 +903,29 @@ function Ce(e2) {
|
|
|
897
903
|
return null;
|
|
898
904
|
}
|
|
899
905
|
function Te(e2, t2) {
|
|
900
|
-
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 },
|
|
901
|
-
return c.post(
|
|
906
|
+
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
|
+
return c.post(a2, o2);
|
|
902
908
|
}
|
|
903
909
|
function ye(e2) {
|
|
904
910
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
905
911
|
return c.get(s2);
|
|
906
912
|
}
|
|
907
|
-
function
|
|
913
|
+
function we(e2) {
|
|
908
914
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
909
915
|
return c.delete(t2);
|
|
910
916
|
}
|
|
911
917
|
export {
|
|
912
918
|
q as dealAfterOperate,
|
|
913
919
|
te as dealCompleteTaskParam,
|
|
914
|
-
|
|
915
|
-
|
|
920
|
+
we as deleteChartCondition,
|
|
921
|
+
ie as doAddSigner,
|
|
916
922
|
ne as doAssign,
|
|
917
923
|
re as doCreateCopyTask,
|
|
918
924
|
X as doImportFinally,
|
|
919
925
|
de as doRemoveSigners,
|
|
920
926
|
le as doReturnTaskTo,
|
|
921
927
|
L as exportFormReport,
|
|
922
|
-
|
|
928
|
+
ae as getAdditionalParamMap,
|
|
923
929
|
ge as getFormData,
|
|
924
930
|
pe as getRemoveSigner,
|
|
925
931
|
$ as getSaveFormRequest,
|