super-page-runtime 2.3.39-sit2 → 2.3.40-cdn1
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 +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +157 -149
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/page-store.js +9 -9
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-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/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +7 -7
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -17
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +39 -37
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -47
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +90 -89
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -8
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +75 -72
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +102 -102
- package/package.json +2 -2
|
@@ -2,14 +2,14 @@ import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage
|
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import { getI18n as l } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-plus";
|
|
5
|
-
import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as b, getRunCurrentRole as
|
|
6
|
-
import { getComponentRef as
|
|
5
|
+
import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as b, getRunCurrentRole as w } from "agilebuilder-ui/src/utils/auth";
|
|
6
|
+
import { getComponentRef as C } from "../global-refs.js";
|
|
7
7
|
import T from "../eventBus.js";
|
|
8
|
-
import
|
|
9
|
-
import { handleEvent as
|
|
8
|
+
import h from "axios";
|
|
9
|
+
import { handleEvent as k, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as I } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as v, getDefaultValue as x, getModelFields as R } from "../page-init-util.js";
|
|
12
|
-
import { caculateShowCondition as
|
|
12
|
+
import { caculateShowCondition as M, updateChartDatasources as S, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import U from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
@@ -54,17 +54,17 @@ const Y = { save: function(e2) {
|
|
|
54
54
|
const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = A(r2, m2);
|
|
55
55
|
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
56
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
|
-
const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission,
|
|
58
|
-
r2.beanName && (
|
|
59
|
-
const
|
|
60
|
-
|
|
57
|
+
const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 = v(l2, r2), h2 = { ids: i2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
58
|
+
r2.beanName && (h2.beanName = r2.beanName);
|
|
59
|
+
const k2 = l2.props.deleteLogicSetting;
|
|
60
|
+
k2 && ("object" == typeof k2 ? h2.deleteLogicSetting = JSON.stringify(k2) : "string" == typeof k2 && (h2.deleteLogicSetting = k2));
|
|
61
61
|
const y2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
|
|
62
|
-
y2 && (
|
|
62
|
+
y2 && (h2.logSettingText = y2.join(""));
|
|
63
63
|
const P2 = l2.props.base.isSafeDelete;
|
|
64
|
-
P2 && (
|
|
64
|
+
P2 && (h2.isSafeDelete = P2);
|
|
65
65
|
const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
66
|
-
I2 && (
|
|
67
|
-
const t2 =
|
|
66
|
+
I2 && (h2.currentOperation = I2), h2.isMobile = B(), c.delete(g2, { data: h2 }).then((e4) => {
|
|
67
|
+
const t2 = C(r2, m2);
|
|
68
68
|
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
69
69
|
}).catch((e4) => {
|
|
70
70
|
a2(e4);
|
|
@@ -78,37 +78,36 @@ const Y = { save: function(e2) {
|
|
|
78
78
|
!function(e3) {
|
|
79
79
|
var _a, _b, _c;
|
|
80
80
|
const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, i2 = a(s2.templateFiles, n2, o2);
|
|
81
|
-
let r2,
|
|
82
|
-
i2 && i2.length > 0 && (r2 = i2[0].templateUuid,
|
|
83
|
-
const
|
|
84
|
-
let
|
|
85
|
-
r2 &&
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
n2.beanName && (
|
|
81
|
+
let r2, c2;
|
|
82
|
+
i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
|
|
83
|
+
const l2 = n2.systemCode, u2 = n2.backendUrl;
|
|
84
|
+
let p2 = c2, d2 = "?1=1";
|
|
85
|
+
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : n2.label && (d2 += "&showName=" + encodeURI(n2.label) + ".xlsx", p2 = n2.label + ".xlsx");
|
|
86
|
+
const m2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
87
|
+
m2 && (d2 += "&logSettingText=" + m2.join(""));
|
|
88
|
+
l2 && (d2 += "&systemCode=" + l2);
|
|
89
|
+
const b2 = e3.listCode;
|
|
90
|
+
b2 && (d2 += "&listCode=" + b2);
|
|
91
|
+
n2.beanName && (d2 += "&beanName=" + n2.beanName);
|
|
92
92
|
const w2 = v(o2, n2);
|
|
93
|
-
w2 && (
|
|
94
|
-
n2.tableName && (
|
|
95
|
-
n2.code && (
|
|
96
|
-
n2.version && (
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const h2 = "_RUN_CURRENT_ROLE",
|
|
103
|
-
|
|
93
|
+
w2 && (d2 += "&functionCode=" + w2);
|
|
94
|
+
n2.tableName && (d2 += "&tableName=" + n2.tableName);
|
|
95
|
+
n2.code && (d2 += "&pageCode=" + n2.code);
|
|
96
|
+
n2.version && (d2 += "&pageVersion=" + n2.version);
|
|
97
|
+
const C2 = f();
|
|
98
|
+
C2 && (d2 += "&JWT=" + C2);
|
|
99
|
+
const T2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
100
|
+
T2 && (d2 += "¤tOperation=" + encodeURI(T2));
|
|
101
|
+
d2 += "&isMobile=" + B();
|
|
102
|
+
const h2 = "_RUN_CURRENT_ROLE", k2 = g(h2);
|
|
103
|
+
k2 && (d2 += "&" + h2 + "=" + k2);
|
|
104
104
|
if (s2) {
|
|
105
|
-
|
|
105
|
+
d2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
a2.style.display = "none", a2.href = s3, a2.setAttribute("download", t2), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2), URL.revokeObjectURL(s3);
|
|
107
|
+
const y2 = t(u2, n2.isTest);
|
|
108
|
+
window.$http({ url: encodeURI(y2 + "/dsc/commons/download-files" + d2), method: "get", responseType: "blob" }).then((e4) => {
|
|
109
|
+
const t2 = document.createElement("a"), n3 = new Blob([e4], { type: "application/vnd.ms-excel;charset=UTF-8" });
|
|
110
|
+
t2.style.display = "none", t2.remove("download"), t2.href = URL.createObjectURL(n3), t2.setAttribute("download", p2 || "template.xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
|
|
112
111
|
});
|
|
113
112
|
}(e2);
|
|
114
113
|
}, import: function(e2) {
|
|
@@ -132,14 +131,23 @@ const Y = { save: function(e2) {
|
|
|
132
131
|
}(e2);
|
|
133
132
|
}, search: function(e2) {
|
|
134
133
|
const t2 = e2.pageContext, n2 = e2.tableUuid;
|
|
135
|
-
|
|
134
|
+
C(t2, n2).refresh();
|
|
136
135
|
}, showSearch: function(e2) {
|
|
137
136
|
const t2 = e2.pageContext, n2 = e2.tableUuid;
|
|
138
|
-
|
|
137
|
+
C(t2, n2).showMobileSearch();
|
|
139
138
|
}, workflowSave: function(e2) {
|
|
140
139
|
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
141
140
|
return new Promise((o2, s2) => {
|
|
142
|
-
const a2 = e3.pageContext
|
|
141
|
+
const a2 = e3.pageContext;
|
|
142
|
+
if (function(e4) {
|
|
143
|
+
if (e4.fileuploadInfo && e4.fileuploadInfo.length > 0) {
|
|
144
|
+
const t2 = e4.fileuploadInfo[0];
|
|
145
|
+
let n2;
|
|
146
|
+
return t2.isTable && t2.tableTitle && void 0 !== t2.rowIndex ? (t2.rowIndex, t2.rowIndex, n2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t2.label, tableTitle: t2.tableTitle, rowIndex: t2.rowIndex + 1 })) : n2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t2.label }), u({ message: n2, type: "warning", showClose: true }), true;
|
|
147
|
+
}
|
|
148
|
+
return false;
|
|
149
|
+
}(a2)) return void o2(false);
|
|
150
|
+
const i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
143
151
|
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons";
|
|
144
152
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
145
153
|
const m2 = de(e3);
|
|
@@ -159,7 +167,7 @@ const Y = { save: function(e2) {
|
|
|
159
167
|
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
160
168
|
const e4 = a2.fileuploadInfo[0];
|
|
161
169
|
let t2;
|
|
162
|
-
|
|
170
|
+
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? (e4.rowIndex, e4.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
163
171
|
} else {
|
|
164
172
|
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
165
173
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
@@ -181,7 +189,7 @@ const Y = { save: function(e2) {
|
|
|
181
189
|
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
182
190
|
const e4 = a2.fileuploadInfo[0];
|
|
183
191
|
let t2;
|
|
184
|
-
|
|
192
|
+
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? (e4.rowIndex, e4.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
185
193
|
} else {
|
|
186
194
|
const i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
187
195
|
let p2 = t(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
@@ -287,7 +295,7 @@ const Y = { save: function(e2) {
|
|
|
287
295
|
}, viewDetail: function(e2) {
|
|
288
296
|
}, lineEditCreate: function(e2) {
|
|
289
297
|
return function(e3) {
|
|
290
|
-
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 =
|
|
298
|
+
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = C(t2, n2);
|
|
291
299
|
o2 && (e3.getDefaultValueFunc = x, o2.createRow(e3.listCode, {}, e3));
|
|
292
300
|
}(e2);
|
|
293
301
|
}, printLabel: function(e2) {
|
|
@@ -295,7 +303,8 @@ const Y = { save: function(e2) {
|
|
|
295
303
|
let t2 = null;
|
|
296
304
|
try {
|
|
297
305
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
298
|
-
} catch (
|
|
306
|
+
} catch (t3) {
|
|
307
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
299
308
|
}
|
|
300
309
|
U.printLabel(e3, t2);
|
|
301
310
|
}(e2);
|
|
@@ -317,7 +326,7 @@ const Y = { save: function(e2) {
|
|
|
317
326
|
a2 && (a2.state = "disabled");
|
|
318
327
|
const r2 = [];
|
|
319
328
|
for (let e4 = 0; e4 < o2.length; e4++) {
|
|
320
|
-
const t2 = o2[e4], s3 =
|
|
329
|
+
const t2 = o2[e4], s3 = C(n2, t2);
|
|
321
330
|
if (s3) {
|
|
322
331
|
const e5 = s3.getConfigure();
|
|
323
332
|
e5 && e5.exportable && e5._dynamicShowFlag && s3.exportChart && r2.push(s3.exportChart());
|
|
@@ -334,7 +343,7 @@ const Y = { save: function(e2) {
|
|
|
334
343
|
u2.isMobile = B(), u2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", u2.watermark = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
|
|
335
344
|
const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
|
|
336
345
|
X();
|
|
337
|
-
|
|
346
|
+
h.post(f2, u2, { responseType: "blob" }).then((e4) => {
|
|
338
347
|
const t2 = document.createElement("a");
|
|
339
348
|
t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
|
|
340
349
|
}).finally(() => {
|
|
@@ -364,7 +373,7 @@ function z(e2) {
|
|
|
364
373
|
let s2 = null;
|
|
365
374
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
366
375
|
const a2 = s2 ? s2.state : void 0;
|
|
367
|
-
s2 && (s2.state = "disabled"),
|
|
376
|
+
s2 && (s2.state = "disabled"), S(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
368
377
|
s2 && (s2.state = a2);
|
|
369
378
|
}).catch(() => {
|
|
370
379
|
s2 && (s2.state = a2);
|
|
@@ -373,27 +382,27 @@ function z(e2) {
|
|
|
373
382
|
function K(e2, n2, s2, a2) {
|
|
374
383
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
375
384
|
e2.clickUuid = n2.uuid, e2.canClick = false;
|
|
376
|
-
const i2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission,
|
|
385
|
+
const i2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, w2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: v(n2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
377
386
|
if (e2.tableUuids && e2.tableUuids.length > 0) {
|
|
378
387
|
const t2 = {};
|
|
379
388
|
e2.tableUuids.forEach((n3) => {
|
|
380
|
-
const o2 =
|
|
389
|
+
const o2 = C(e2, n3);
|
|
381
390
|
if (o2) {
|
|
382
391
|
const e3 = o2.getConfigure().code, n4 = o2.getSuperGridRef().columns;
|
|
383
392
|
n4 && n4.length > 0 && (t2[e3] = n4);
|
|
384
393
|
}
|
|
385
|
-
}),
|
|
394
|
+
}), w2.subTableColumns = t2;
|
|
386
395
|
}
|
|
387
|
-
l2 && (
|
|
396
|
+
l2 && (w2.logSettingText = l2.join(""));
|
|
388
397
|
const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
389
|
-
T2 && (
|
|
390
|
-
const
|
|
398
|
+
T2 && (w2.currentOperation = T2), w2.isMobile = B();
|
|
399
|
+
const k2 = Te(e2);
|
|
391
400
|
let y2;
|
|
392
|
-
|
|
401
|
+
w2.additionalParamMap = k2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = a2 ? function(e3, n3, o2, s3) {
|
|
393
402
|
return new Promise((a3, i3) => {
|
|
394
403
|
const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
|
|
395
404
|
X();
|
|
396
|
-
const c3 =
|
|
405
|
+
const c3 = h.post(r3, o2, { headers: { "content-type": "application/json" }, responseType: "blob" });
|
|
397
406
|
window.$message.info("正在导出中..."), c3.then((t2) => {
|
|
398
407
|
const n4 = new Blob([t2.data]), o3 = document.createElement("a");
|
|
399
408
|
o3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(n4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3), a3(true);
|
|
@@ -401,11 +410,11 @@ function K(e2, n2, s2, a2) {
|
|
|
401
410
|
i3(e4);
|
|
402
411
|
});
|
|
403
412
|
});
|
|
404
|
-
}(r2, f2,
|
|
413
|
+
}(r2, f2, w2, e2.isTest) : function(e3, n3, o2, s3) {
|
|
405
414
|
return new Promise((a3, i3) => {
|
|
406
415
|
const r3 = t(n3, s3) + "/dsc/commons/export-reports";
|
|
407
416
|
X();
|
|
408
|
-
|
|
417
|
+
h.post(r3, o2, { responseType: "blob" }).then((t2) => {
|
|
409
418
|
const n4 = new Blob([t2.data]);
|
|
410
419
|
let o3 = "报告.xlsx";
|
|
411
420
|
e3 && (o3 = e3);
|
|
@@ -415,18 +424,18 @@ function K(e2, n2, s2, a2) {
|
|
|
415
424
|
i3(e4);
|
|
416
425
|
});
|
|
417
426
|
});
|
|
418
|
-
}(r2, f2,
|
|
427
|
+
}(r2, f2, w2, e2.isTest), y2 && y2.then(() => {
|
|
419
428
|
P(e2, n2);
|
|
420
429
|
}).catch((t2) => {
|
|
421
430
|
window.$message.error("导出失败..."), P(e2, n2);
|
|
422
431
|
});
|
|
423
432
|
}
|
|
424
433
|
function X() {
|
|
425
|
-
|
|
426
|
-
const e2 =
|
|
434
|
+
h.defaults.headers.common.Authorization = f();
|
|
435
|
+
const e2 = w();
|
|
427
436
|
if (e2) {
|
|
428
437
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
429
|
-
|
|
438
|
+
h.defaults.headers.common[t2] = e2;
|
|
430
439
|
}
|
|
431
440
|
}
|
|
432
441
|
function Q(e2, t2) {
|
|
@@ -459,14 +468,14 @@ function Z(e2, t2, n2, a2, i2, r2, c2) {
|
|
|
459
468
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
460
469
|
const b2 = De(t2);
|
|
461
470
|
b2 && (f2.autoSetValueData = b2);
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
|
|
471
|
+
const w2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
|
|
472
|
+
w2 && (f2.logSettingText = w2.join("")), f2.systemCode || (f2.systemCode = u2);
|
|
473
|
+
const C2 = e2.beanName;
|
|
474
|
+
C2 && (f2.beanName = C2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
466
475
|
const T2 = Te(e2);
|
|
467
476
|
f2.additionalParamMap = T2, void 0 !== n2 && (f2.unControlVersion = n2);
|
|
468
|
-
const
|
|
469
|
-
return
|
|
477
|
+
const h2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
478
|
+
return h2 && (f2.currentOperation = h2), f2.isMobile = B(), f2;
|
|
470
479
|
}
|
|
471
480
|
function ee(e2, o2, s2, a2, i2, r2, l2, u2, p2) {
|
|
472
481
|
const d2 = e2.systemCode, m2 = e2.backendUrl, f2 = Z(e2, o2, a2, i2, r2, null, l2);
|
|
@@ -486,11 +495,10 @@ function ne(t2, n2, o2, s2, a2) {
|
|
|
486
495
|
let a3 = n3.props.base.successOperation;
|
|
487
496
|
const i3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
|
|
488
497
|
a3 || re.includes(n3.name) || (a3 = "refresh");
|
|
489
|
-
if ("refresh" === a3) {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
498
|
+
if ("refresh" === a3) if (r2) {
|
|
499
|
+
C(t3, r2).refresh();
|
|
500
|
+
} else console.error("tableUuid is empty");
|
|
501
|
+
else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
494
502
|
const s4 = e(t3.entity.page);
|
|
495
503
|
let a4 = o3;
|
|
496
504
|
a4 || (a4 = {}), Object.assign(s4, a4), ae(t3, n3, s4, i3);
|
|
@@ -534,21 +542,21 @@ function ae(e2, t2, n2, o2) {
|
|
|
534
542
|
T.$has(r2) ? T.$emit(r2, { isNeedValueMapping: i2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
|
|
535
543
|
}
|
|
536
544
|
}
|
|
537
|
-
function ie(e2, t2, n2, o2, s2) {
|
|
545
|
+
function ie({ parentPageContext: e2, parentEventParams: t2, parentConfigureObj: n2, sourceModel: o2, sourceTableName: s2, valueMappings: a2 }) {
|
|
538
546
|
var _a;
|
|
539
|
-
|
|
540
|
-
const
|
|
547
|
+
a2 || (a2 = n2.runtime && n2.runtime.linkPage && n2.runtime.linkPage.valueMappings ? n2.runtime.linkPage.valueMappings : null) || (a2 = (_a = n2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
548
|
+
const i2 = e2.tableName;
|
|
541
549
|
!function(e3, t3, n3) {
|
|
542
550
|
if (e3 && null !== e3 && t3) {
|
|
543
551
|
let o3 = e3;
|
|
544
552
|
Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
|
|
545
553
|
const t4 = e4.source;
|
|
546
554
|
if (!t4) return;
|
|
547
|
-
const s3 = t4.split("."), a3 = N(o3, s3),
|
|
555
|
+
const s3 = t4.split("."), a3 = N(o3, s3), i3 = e4.target, r2 = R(null, i3);
|
|
548
556
|
O(n3.entity, r2, a3);
|
|
549
557
|
});
|
|
550
558
|
}
|
|
551
|
-
}(
|
|
559
|
+
}(o2, a2, e2), k(null, e2, n2, "setValue", { sourceModel: o2, sourceTableName: s2, entity: e2.entity.data, targetTableName: i2, eventParams: t2 });
|
|
552
560
|
}
|
|
553
561
|
const re = ["dropdown"];
|
|
554
562
|
function ce(e2, t2, n2, o2) {
|
|
@@ -561,8 +569,8 @@ function ce(e2, t2, n2, o2) {
|
|
|
561
569
|
if (a2 && "list" === a2) {
|
|
562
570
|
const n3 = y(e2, t2);
|
|
563
571
|
if (n3) {
|
|
564
|
-
|
|
565
|
-
}
|
|
572
|
+
C(e2, n3).refresh();
|
|
573
|
+
} else console.error("tableUuid is empty");
|
|
566
574
|
} else if (a2 && "form" === a2) {
|
|
567
575
|
const t3 = e2.entity.data;
|
|
568
576
|
Ae(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -575,20 +583,20 @@ function le(e2, o2, s2, a2) {
|
|
|
575
583
|
if (m2.fileuploadInfo && m2.fileuploadInfo.length > 0) {
|
|
576
584
|
const e3 = m2.fileuploadInfo[0];
|
|
577
585
|
let t2;
|
|
578
|
-
|
|
586
|
+
e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? (e3.rowIndex, e3.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), r2(false);
|
|
579
587
|
} else {
|
|
580
|
-
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids,
|
|
581
|
-
let
|
|
582
|
-
|
|
588
|
+
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, w2 = f2.props.base.successOperation;
|
|
589
|
+
let C2 = false;
|
|
590
|
+
w2 && "noOperation" === w2 && (C2 = true);
|
|
583
591
|
let T2 = m2.tableName;
|
|
584
592
|
if (o2) {
|
|
585
593
|
const t2 = f2.props.base.tableUuid ? f2.props.base.tableUuid : e2.tableUuid;
|
|
586
594
|
T2 = A(m2, t2);
|
|
587
595
|
} else $(m2.code, m2.entity.data);
|
|
588
|
-
const
|
|
596
|
+
const h2 = function(e3, o3, s3, a3, r3, u3, d3, m3, f3) {
|
|
589
597
|
return new Promise((g3, b3) => {
|
|
590
|
-
const
|
|
591
|
-
p.confirm(l().t(
|
|
598
|
+
const w3 = o3.props.base.title, C3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
599
|
+
p.confirm(l().t(C3, { name: w3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
592
600
|
const i2 = e3.systemCode, l2 = e3.backendUrl, p2 = Z(e3, o3, a3, r3, u3, m3, null);
|
|
593
601
|
p2.tableName = f3;
|
|
594
602
|
let d4 = t(l2, e3.isTest) + s3;
|
|
@@ -601,8 +609,8 @@ function le(e2, o2, s2, a2) {
|
|
|
601
609
|
b3("点击了取消按钮");
|
|
602
610
|
});
|
|
603
611
|
});
|
|
604
|
-
}(m2, f2, a2,
|
|
605
|
-
|
|
612
|
+
}(m2, f2, a2, C2, u2, g2, s2, b2, T2);
|
|
613
|
+
h2 ? h2.then((e3) => {
|
|
606
614
|
!o2 && e3 && q(m2.code, m2.entity.data), ne(m2, f2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
|
|
607
615
|
}).catch((e3) => {
|
|
608
616
|
d2(e3);
|
|
@@ -618,16 +626,16 @@ function ue(e2, s2) {
|
|
|
618
626
|
g2 && f2.append("currentOperation", g2), f2.append("isMobile", B()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
619
627
|
const b2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
|
|
620
628
|
b2 && f2.append("importDuplicateRule", b2);
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
const
|
|
624
|
-
|
|
629
|
+
const w2 = a2.judgeHeavyList;
|
|
630
|
+
w2 && f2.append("judgeHeavyList", JSON.stringify(w2));
|
|
631
|
+
const C2 = De(i2);
|
|
632
|
+
C2 && f2.append("autoSetValueData", C2);
|
|
625
633
|
const T2 = a2.formNoRuleCode;
|
|
626
634
|
T2 && f2.append("formNoRuleCode", T2);
|
|
627
|
-
const
|
|
628
|
-
|
|
629
|
-
let
|
|
630
|
-
|
|
635
|
+
const h2 = e2.listCode;
|
|
636
|
+
h2 && f2.append("listCode", h2);
|
|
637
|
+
let k2 = false;
|
|
638
|
+
k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
|
|
631
639
|
const y2 = o(a2);
|
|
632
640
|
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
633
641
|
const I2 = v(i2, a2);
|
|
@@ -636,12 +644,12 @@ function ue(e2, s2) {
|
|
|
636
644
|
f2.append("additionalParamMapStr", JSON.stringify(x2));
|
|
637
645
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
638
646
|
f2.append("isPermission", R2 + "");
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
let N2 = t(
|
|
643
|
-
N2 = n(N2,
|
|
644
|
-
if (
|
|
647
|
+
const M2 = a2.systemCode;
|
|
648
|
+
M2 && f2.append("systemCode", M2);
|
|
649
|
+
const S2 = a2.backendUrl;
|
|
650
|
+
let N2 = t(S2, a2.isTest) + "/dsc/commons/import-data";
|
|
651
|
+
N2 = n(N2, M2, S2, a2.isTest), c.post(N2, f2).then((e3) => {
|
|
652
|
+
if (k2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
|
|
645
653
|
else {
|
|
646
654
|
let t2 = false;
|
|
647
655
|
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ne(a2, i2, e3, null, true), a2.result = t2, P(a2, i2);
|
|
@@ -672,7 +680,7 @@ function de(e2) {
|
|
|
672
680
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
673
681
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
674
682
|
const d2 = Te(t2);
|
|
675
|
-
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
|
|
683
|
+
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参数类型错误"));
|
|
676
684
|
const m2 = n2.props.base.successOperation;
|
|
677
685
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
678
686
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -710,7 +718,7 @@ async function fe(e2, o2) {
|
|
|
710
718
|
if (r2.fileuploadInfo && r2.fileuploadInfo.length > 0) {
|
|
711
719
|
const e3 = r2.fileuploadInfo[0];
|
|
712
720
|
let t2;
|
|
713
|
-
|
|
721
|
+
e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? (e3.rowIndex, e3.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), a2(false);
|
|
714
722
|
} else if (s2) {
|
|
715
723
|
const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
716
724
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
@@ -736,7 +744,7 @@ function ge(e2) {
|
|
|
736
744
|
let n3 = false;
|
|
737
745
|
if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
|
|
738
746
|
const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
739
|
-
n3 =
|
|
747
|
+
n3 = M(t3, s2);
|
|
740
748
|
}
|
|
741
749
|
true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
742
750
|
} else t2(true);
|
|
@@ -750,14 +758,14 @@ function be(e2, n2) {
|
|
|
750
758
|
});
|
|
751
759
|
}
|
|
752
760
|
}
|
|
753
|
-
function
|
|
761
|
+
function we(e2) {
|
|
754
762
|
var _a, _b;
|
|
755
763
|
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, a2 = e2.configureObj, i2 = Te(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: i2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
756
|
-
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle =
|
|
764
|
+
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = Ce(e2);
|
|
757
765
|
const l2 = (_b = (_a = a2 == null ? void 0 : a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
758
766
|
return l2 && (c2.currentOperation = l2), c2.isMobile = B(), c2;
|
|
759
767
|
}
|
|
760
|
-
function
|
|
768
|
+
function Ce(e2) {
|
|
761
769
|
var _a, _b, _c;
|
|
762
770
|
let t2 = null;
|
|
763
771
|
if (((_b = (_a = e2.configureObj.props.task) == null ? void 0 : _a.title) == null ? void 0 : _b.length) > 0) for (let n2 = 0; n2 < e2.configureObj.props.task.title.length; n2++) {
|
|
@@ -767,7 +775,7 @@ function we(e2) {
|
|
|
767
775
|
t2 = o2.config;
|
|
768
776
|
break;
|
|
769
777
|
}
|
|
770
|
-
if (
|
|
778
|
+
if (M(e2.pageContext, o2.conditions)) {
|
|
771
779
|
t2 = o2.config;
|
|
772
780
|
break;
|
|
773
781
|
}
|
|
@@ -783,12 +791,12 @@ function Te(t2) {
|
|
|
783
791
|
return o2 && Object.assign(n2, o2), n2;
|
|
784
792
|
}
|
|
785
793
|
}
|
|
786
|
-
function
|
|
794
|
+
function he(e2, o2) {
|
|
787
795
|
if (o2) {
|
|
788
796
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
789
797
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
790
798
|
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
791
|
-
const d2 =
|
|
799
|
+
const d2 = we(e2);
|
|
792
800
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
793
801
|
const m2 = c.post(p2, d2);
|
|
794
802
|
m2 && m2.then((e3) => {
|
|
@@ -796,12 +804,12 @@ function ke(e2, o2) {
|
|
|
796
804
|
});
|
|
797
805
|
}
|
|
798
806
|
}
|
|
799
|
-
function
|
|
807
|
+
function ke(e2, o2) {
|
|
800
808
|
if (o2) {
|
|
801
809
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
802
810
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
803
811
|
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
804
|
-
const d2 =
|
|
812
|
+
const d2 = we(e2);
|
|
805
813
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
806
814
|
const m2 = c.post(p2, d2);
|
|
807
815
|
m2 && m2.then((e3) => {
|
|
@@ -820,7 +828,7 @@ async function ye(e2, o2) {
|
|
|
820
828
|
if (void 0 === n3 || true === n3) {
|
|
821
829
|
n3 = true;
|
|
822
830
|
const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
823
|
-
n3 =
|
|
831
|
+
n3 = M(t3, s3);
|
|
824
832
|
}
|
|
825
833
|
true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
826
834
|
t2(e4);
|
|
@@ -834,7 +842,7 @@ async function ye(e2, o2) {
|
|
|
834
842
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
835
843
|
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
836
844
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
837
|
-
const m2 =
|
|
845
|
+
const m2 = we(e2);
|
|
838
846
|
m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
839
847
|
const f2 = c.post(d2, m2);
|
|
840
848
|
f2 && f2.then((e3) => {
|
|
@@ -898,14 +906,14 @@ function Re(e2, o2) {
|
|
|
898
906
|
});
|
|
899
907
|
}
|
|
900
908
|
}
|
|
901
|
-
function
|
|
909
|
+
function Me(e2) {
|
|
902
910
|
const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
|
|
903
911
|
let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
904
912
|
const r2 = de(e2);
|
|
905
913
|
if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
|
|
906
914
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
907
915
|
}
|
|
908
|
-
function
|
|
916
|
+
function Se(e2, o2) {
|
|
909
917
|
if (o2) {
|
|
910
918
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
911
919
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
@@ -924,7 +932,7 @@ function Ne(e2) {
|
|
|
924
932
|
const i2 = de(e2);
|
|
925
933
|
if (o2.completeTaskParam) {
|
|
926
934
|
const t2 = [];
|
|
927
|
-
e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle:
|
|
935
|
+
e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: Ce(e2) };
|
|
928
936
|
}
|
|
929
937
|
return new Promise((t2, o3) => {
|
|
930
938
|
const s3 = e2.pageContext, r2 = s3.systemCode, p2 = s3.backendUrl;
|
|
@@ -1025,18 +1033,18 @@ function Oe(e2, t2, n2, o2, s2, a2) {
|
|
|
1025
1033
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
1026
1034
|
e2.workflowOpinion.showOpinionBox = true;
|
|
1027
1035
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
1028
|
-
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox =
|
|
1036
|
+
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
|
|
1029
1037
|
}
|
|
1030
1038
|
let t3 = false;
|
|
1031
1039
|
if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
|
|
1032
1040
|
if (t3 = true, true === t3) {
|
|
1033
1041
|
const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
|
|
1034
|
-
n3 && n3.length > 0 && (t3 =
|
|
1042
|
+
n3 && n3.length > 0 && (t3 = M(e2, n3));
|
|
1035
1043
|
}
|
|
1036
1044
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1037
1045
|
}
|
|
1038
1046
|
}
|
|
1039
|
-
return i2;
|
|
1047
|
+
return e2.workflowOpinion, i2;
|
|
1040
1048
|
}
|
|
1041
1049
|
function Ue(e2, t2, n2) {
|
|
1042
1050
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
@@ -1056,20 +1064,20 @@ function Ee(e2, n2, s2) {
|
|
|
1056
1064
|
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1057
1065
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1058
1066
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1059
|
-
const f2 = p2 ? p2.taskId : null, b2 = l2,
|
|
1060
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1067
|
+
const f2 = p2 ? p2.taskId : null, b2 = l2, w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1068
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1061
1069
|
const t2 = {};
|
|
1062
1070
|
e3.tableUuids.forEach((e4) => {
|
|
1063
1071
|
const n4 = r(l2, u2, e4);
|
|
1064
1072
|
t2[n4] = n4;
|
|
1065
|
-
}),
|
|
1073
|
+
}), w2.listCodesMap = t2;
|
|
1066
1074
|
}
|
|
1067
|
-
m2 && (
|
|
1068
|
-
const
|
|
1069
|
-
T2.restorePageLoadState(),
|
|
1070
|
-
const
|
|
1071
|
-
c.post(
|
|
1072
|
-
|
|
1075
|
+
m2 && (w2.ids = je(m2)), f2 ? w2.taskId = f2 : d2 ? w2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), w2.isMobile = B();
|
|
1076
|
+
const C2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = L();
|
|
1077
|
+
T2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
|
|
1078
|
+
const h2 = H(e3.code, w2.id);
|
|
1079
|
+
c.post(C2, w2).then(async (t2) => {
|
|
1080
|
+
h2 && await _e(e3, w2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, me(t2, true, e3), e3.workflowRules = j(e3);
|
|
1073
1081
|
const n4 = e3.pageType;
|
|
1074
1082
|
n4 && "form" === n4 && function(e4) {
|
|
1075
1083
|
(function(e5) {
|
|
@@ -1102,7 +1110,7 @@ function Ee(e2, n2, s2) {
|
|
|
1102
1110
|
}
|
|
1103
1111
|
e5.actionPermissionMap = n5;
|
|
1104
1112
|
}(e4);
|
|
1105
|
-
}(e3), e3.canClick = true,
|
|
1113
|
+
}(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
|
|
1106
1114
|
}).catch((t2) => {
|
|
1107
1115
|
e3.canClick = true, a3(t2);
|
|
1108
1116
|
});
|
|
@@ -1113,22 +1121,22 @@ function Ee(e2, n2, s2) {
|
|
|
1113
1121
|
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1114
1122
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1115
1123
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1116
|
-
const f2 = p2 ? p2.taskId : null, b2 = l2,
|
|
1117
|
-
if (!
|
|
1124
|
+
const f2 = p2 ? p2.taskId : null, b2 = l2, w2 = t(e3.backendUrl, e3.isTest), C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1125
|
+
if (!C2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), m2 && (C2.ids = je(m2)), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), f2 && (C2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (C2.withDataPermission = true), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1118
1126
|
const t2 = {};
|
|
1119
1127
|
e3.tableUuids.forEach((e4) => {
|
|
1120
1128
|
const n4 = r(l2, u2, e4);
|
|
1121
1129
|
t2[n4] = n4;
|
|
1122
|
-
}),
|
|
1130
|
+
}), C2.listCodesMap = t2;
|
|
1123
1131
|
}
|
|
1124
|
-
e3.refercePropMap && (
|
|
1125
|
-
const T2 =
|
|
1126
|
-
|
|
1127
|
-
const y2 = H(e3.code,
|
|
1128
|
-
c.post(T2,
|
|
1129
|
-
t2 && (y2 && await _e(e3,
|
|
1132
|
+
e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), C2.isMobile = B();
|
|
1133
|
+
const T2 = w2 + "/dsc/commons/gets", h2 = L();
|
|
1134
|
+
h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
|
|
1135
|
+
const y2 = H(e3.code, C2.id);
|
|
1136
|
+
c.post(T2, C2).then(async (t2) => {
|
|
1137
|
+
t2 && (y2 && await _e(e3, C2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
|
|
1130
1138
|
const n4 = e3.customRules, o3 = e3.rules, a4 = D(e3, n4, o3);
|
|
1131
|
-
e3.rules = a4, e3.canClick = true,
|
|
1139
|
+
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), s3(t2);
|
|
1132
1140
|
}).catch((t2) => {
|
|
1133
1141
|
e3.canClick = true, a3(t2);
|
|
1134
1142
|
});
|
|
@@ -1208,21 +1216,21 @@ export {
|
|
|
1208
1216
|
ne as dealAfterOperate,
|
|
1209
1217
|
me as dealCompleteTaskParam,
|
|
1210
1218
|
Be as deleteChartCondition,
|
|
1211
|
-
|
|
1212
|
-
|
|
1219
|
+
he as doAddSigner,
|
|
1220
|
+
ke as doAddTransactor,
|
|
1213
1221
|
be as doAssign,
|
|
1214
1222
|
ye as doCreateCopyTask,
|
|
1215
1223
|
Fe as doFileTaskFunc,
|
|
1216
1224
|
ue as doImportFinally,
|
|
1217
1225
|
Re as doRemoveSigners,
|
|
1218
|
-
|
|
1226
|
+
Se as doRemoveTransactors,
|
|
1219
1227
|
ve as doReturnTaskTo,
|
|
1220
1228
|
K as exportFormReport,
|
|
1221
1229
|
Ne as extractWorkflowFunc,
|
|
1222
1230
|
Te as getAdditionalParamMap,
|
|
1223
1231
|
Ee as getFormData,
|
|
1224
1232
|
xe as getRemoveSigner,
|
|
1225
|
-
|
|
1233
|
+
Me as getRemoveTransactor,
|
|
1226
1234
|
te as getSaveFormRequest,
|
|
1227
1235
|
ee as getSaveFormRequestWithRow,
|
|
1228
1236
|
Ie as getTaskInformitions,
|