super-page-runtime 2.2.74 → 2.2.77-sit5

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.
Files changed (42) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/standard-event.js +152 -153
  5. package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
  6. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  7. package/dist/es/components/runtime/utils/tree-utils.js +24 -23
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
  11. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +6 -5
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +125 -111
  14. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
  15. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +83 -49
  16. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  17. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  19. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  21. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +32 -27
  23. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -0
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +54 -52
  27. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  28. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +77 -73
  30. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -1
  31. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -29
  33. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  35. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  36. package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -13
  37. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  38. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  39. package/dist/es/components/runtime/views/super-page.vue2.js +17 -15
  40. package/dist/es/index.js +1 -0
  41. package/dist/es/style.css +225 -99
  42. package/package.json +2 -2
@@ -1,13 +1,14 @@
1
1
  import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath as o, packageTemplateFiles as i, upperFirstCase as a, getListCode as r } from "../common-util.js";
2
2
  import c from "agilebuilder-ui/src/utils/request";
3
- import { getI18n as u } from "agilebuilder-ui/src/utils/util";
4
- import { ElMessage as l, ElMessageBox as p } from "element-plus";
5
- import { getToken as d, getSessionCache as m, setSessionCache as f } from "agilebuilder-ui/src/utils/auth";
6
- import { getComponentRef as g } from "../global-refs.js";
7
- import b from "../eventBus.js";
8
- import C from "axios";
9
- import { handleEvent as y, getTableUuid as T, doAfterClickEvent as h } from "./event-util.js";
10
- import { setStoreInfo as P } from "../store-util.js";
3
+ import u from "agilebuilder-ui/src/store";
4
+ import { getI18n as l } from "agilebuilder-ui/src/utils/util";
5
+ import { ElMessage as p, ElMessageBox as d } from "element-plus";
6
+ import { getToken as m, getSessionCache as f, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
7
+ import { getComponentRef as b } from "../global-refs.js";
8
+ import C from "../eventBus.js";
9
+ import "axios";
10
+ import { handleEvent as y, getTableUuid as T, doAfterClickEvent as P } from "./event-util.js";
11
+ import { setStoreInfo as h } from "../store-util.js";
11
12
  import { getPermissionCodes as w, getDefaultValue as k, getModelFields as R } from "../page-init-util.js";
12
13
  import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as v, setVariableValue as S } from "../page-helper-util.js";
13
14
  import I from "./print-label.js";
@@ -21,10 +22,10 @@ const _ = { save: function(e2) {
21
22
  return L(e2, true);
22
23
  }, exportForm: function(e2) {
23
24
  const t2 = e2.pageContext.code + "_";
24
- b.$emit(t2 + "export-form-report", e2);
25
+ C.$emit(t2 + "export-form-report", e2);
25
26
  }, exportPDF: function(e2) {
26
27
  const t2 = e2.pageContext.code + "_";
27
- b.$emit(t2 + "export-pdf-report", e2);
28
+ C.$emit(t2 + "export-pdf-report", e2);
28
29
  }, submit: function(e2) {
29
30
  return J(e2, false, "submit", "/dsc/commons/submits");
30
31
  }, submitList: function(e2) {
@@ -44,21 +45,21 @@ const _ = { save: function(e2) {
44
45
  return function(e3) {
45
46
  return new Promise((s2, i2) => {
46
47
  const a2 = e3.ids;
47
- if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
48
- p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
48
+ if (!a2 || 0 === a2.length) return p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
49
+ d.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
49
50
  var _a;
50
51
  const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
51
- let b2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
- b2 = o(b2, p2, d2, r2.isTest);
53
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, y2 = t(r2), T2 = w(u2, r2), h2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: y2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
- r2.beanName && (h2.beanName = r2.beanName);
55
- const P2 = u2.props.deleteLogicSetting;
56
- P2 && ("object" == typeof P2 ? h2.deleteLogicSetting = JSON.stringify(P2) : "string" == typeof P2 && (h2.deleteLogicSetting = P2));
52
+ let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
53
+ g2 = o(g2, p2, d2, r2.isTest);
54
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, y2 = t(r2), T2 = w(u2, r2), P2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: y2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
55
+ r2.beanName && (P2.beanName = r2.beanName);
56
+ const h2 = u2.props.deleteLogicSetting;
57
+ h2 && ("object" == typeof h2 ? P2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (P2.deleteLogicSetting = h2));
57
58
  const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
58
- k2 && (h2.logSettingText = k2.join(""));
59
+ k2 && (P2.logSettingText = k2.join(""));
59
60
  const R2 = u2.props.base.isSafeDelete;
60
- R2 && (h2.isSafeDelete = R2), c.delete(b2, { data: h2 }).then((e4) => {
61
- const t2 = g(r2, m2);
61
+ R2 && (P2.isSafeDelete = R2), c.delete(g2, { data: P2 }).then((e4) => {
62
+ const t2 = b(r2, m2);
62
63
  t2 && (t2.isDeleteChange(true), t2.clearSelections()), F(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
63
64
  }).catch((e4) => {
64
65
  i2(e4);
@@ -75,32 +76,32 @@ const _ = { save: function(e2) {
75
76
  let r2, c2;
76
77
  a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
77
78
  const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
78
- let f2 = "?1=1";
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");
79
+ let d2 = "?1=1";
80
+ r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : t2.label && (d2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
80
81
  const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
81
- g2 && (f2 += "&logSettingText=" + g2.join(""));
82
- u2 && (f2 += "&systemCode=" + u2);
82
+ g2 && (d2 += "&logSettingText=" + g2.join(""));
83
+ u2 && (d2 += "&systemCode=" + u2);
83
84
  const b2 = e3.listCode;
84
- b2 && (f2 += "&listCode=" + b2);
85
- t2.beanName && (f2 += "&beanName=" + t2.beanName);
85
+ b2 && (d2 += "&listCode=" + b2);
86
+ t2.beanName && (d2 += "&beanName=" + t2.beanName);
86
87
  const C2 = w(s2, t2);
87
- C2 && (f2 += "&functionCode=" + C2);
88
- t2.tableName && (f2 += "&tableName=" + t2.tableName);
89
- t2.code && (f2 += "&pageCode=" + t2.code);
90
- t2.version && (f2 += "&pageVersion=" + t2.version);
91
- const y2 = d();
92
- y2 && (f2 += "&JWT=" + y2);
93
- const T2 = "_RUN_CURRENT_ROLE", h2 = m(T2);
94
- h2 && (f2 += "&" + T2 + "=" + h2);
88
+ C2 && (d2 += "&functionCode=" + C2);
89
+ t2.tableName && (d2 += "&tableName=" + t2.tableName);
90
+ t2.code && (d2 += "&pageCode=" + t2.code);
91
+ t2.version && (d2 += "&pageVersion=" + t2.version);
92
+ const y2 = m();
93
+ y2 && (d2 += "&JWT=" + y2);
94
+ const T2 = "_RUN_CURRENT_ROLE", P2 = f(T2);
95
+ P2 && (d2 += "&" + T2 + "=" + P2);
95
96
  if (o2) {
96
- f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
+ d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
98
  }
98
- const P2 = n(l2, t2.isTest);
99
- window.open(P2 + "/dsc/commons/download-files" + f2);
99
+ const h2 = n(l2, t2.isTest);
100
+ window.open(h2 + "/dsc/commons/download-files" + d2);
100
101
  }(e2);
101
102
  }, import: function(e2) {
102
103
  const t2 = e2.pageContext.code + "_";
103
- b.$emit(t2 + "import-file", e2);
104
+ C.$emit(t2 + "import-file", e2);
104
105
  }, export: function(e2) {
105
106
  return function(e3) {
106
107
  return new Promise((t2, s2) => {
@@ -116,36 +117,38 @@ const _ = { save: function(e2) {
116
117
  }(e2);
117
118
  }, search: function(e2) {
118
119
  const t2 = e2.pageContext, s2 = e2.tableUuid;
119
- g(t2, s2).refresh();
120
+ b(t2, s2).refresh();
120
121
  }, showSearch: function(e2) {
121
122
  const t2 = e2.pageContext, s2 = e2.tableUuid;
122
- g(t2, s2).showMobileSearch();
123
+ b(t2, s2).showMobileSearch();
123
124
  }, workflowSave: function(e2) {
124
- return async function(e3) {
125
+ var _a, _b;
126
+ return (_b = (_a = u) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing"), async function(e3) {
125
127
  return new Promise((t2, s2) => {
126
- const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
127
- let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
128
- if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
128
+ const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, u2 = i2.backendUrl;
129
+ let d2 = n(u2, i2.isTest) + "/dsc/workflow-commons";
130
+ if (d2 = o(d2, r2, u2, i2.isTest), !d2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
129
131
  const m2 = K(e3);
130
132
  let f2;
131
133
  f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
132
134
  let n2 = true;
133
- s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), t2(true);
135
+ s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), t2(true);
134
136
  }).catch((e4) => {
135
137
  s2(e4);
136
138
  });
137
139
  });
138
140
  }(e2);
139
141
  }, submitProcess: function(e2) {
140
- return function(e3) {
142
+ var _a, _b;
143
+ return (_b = (_a = u) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing"), function(e3) {
141
144
  return new Promise((t2, s2) => {
142
145
  const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
143
- let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
144
- if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
145
- const d2 = K(e3), m2 = c.post(p2, d2);
146
+ let u2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
147
+ if (u2 = o(u2, a2, r2, i2.isTest), !u2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
148
+ const d2 = K(e3), m2 = c.post(u2, d2);
146
149
  m2 && m2.then((s3) => {
147
150
  let n2 = true;
148
- s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), t2(true);
151
+ s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), t2(true);
149
152
  }).catch((e4) => {
150
153
  s2(e4);
151
154
  });
@@ -168,17 +171,17 @@ const _ = { save: function(e2) {
168
171
  }, assign: function(e2) {
169
172
  return function(e3) {
170
173
  const t2 = e3.pageContext, s2 = t2.code + "_";
171
- b.$emit(s2 + "assign-task", e3);
174
+ C.$emit(s2 + "assign-task", e3);
172
175
  }(e2);
173
176
  }, copyTask: function(e2) {
174
177
  return function(e3) {
175
178
  const t2 = e3.pageContext, s2 = t2.code + "_";
176
- b.$emit(s2 + "copy-task", e3);
179
+ C.$emit(s2 + "copy-task", e3);
177
180
  }(e2);
178
181
  }, addSigner: function(e2) {
179
182
  return function(e3) {
180
183
  const t2 = e3.pageContext, s2 = t2.code + "_";
181
- b.$emit(s2 + "add-signer", e3);
184
+ C.$emit(s2 + "add-signer", e3);
182
185
  }(e2);
183
186
  }, drawTask: function(e2) {
184
187
  return function(e3) {
@@ -203,12 +206,12 @@ const _ = { save: function(e2) {
203
206
  }, returnTaskTo: function(e2) {
204
207
  return function(e3) {
205
208
  const t2 = e3.pageContext, s2 = t2.code + "_";
206
- b.$emit(s2 + "choose-return-node", e3);
209
+ C.$emit(s2 + "choose-return-node", e3);
207
210
  }(e2);
208
211
  }, removeSigner: function(e2) {
209
212
  return function(e3) {
210
213
  const t2 = e3.pageContext, s2 = t2.code + "_";
211
- b.$emit(s2 + "remove-signer", e3);
214
+ C.$emit(s2 + "remove-signer", e3);
212
215
  }(e2);
213
216
  }, retrieveTask: function(e2) {
214
217
  return function(e3) {
@@ -218,7 +221,7 @@ const _ = { save: function(e2) {
218
221
  }, viewDetail: function(e2) {
219
222
  }, lineEditCreate: function(e2) {
220
223
  return function(e3) {
221
- const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = g(t2, s2);
224
+ const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
222
225
  n2 && (e3.getDefaultValueFunc = k, n2.createRow(e3.listCode, {}, e3));
223
226
  }(e2);
224
227
  }, printLabel: function(e2) {
@@ -247,22 +250,20 @@ const _ = { save: function(e2) {
247
250
  i2 && (i2.state = "disabled");
248
251
  const r2 = [];
249
252
  for (let e4 = 0; e4 < s2.length; e4++) {
250
- const n2 = s2[e4], o3 = g(t2, n2);
253
+ const n2 = s2[e4], o3 = b(t2, n2);
251
254
  if (o3) {
252
255
  const e5 = o3.getConfigure();
253
256
  e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
254
257
  }
255
258
  }
256
259
  if (!r2 || 0 == r2.length) return;
257
- let c2, u2 = t2.label;
258
- u2 || (u2 = t2.code);
259
- c2 = u2;
260
- const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl;
261
- let m2;
262
- const f2 = n(p2, t2.isTest) + "/dsc/commons/exportChart";
263
- C.defaults.headers.common.Authorization = d(), m2 = C.post(f2, l2, { responseType: "blob" }), m2.then((e4) => {
260
+ let u2, l2 = t2.label;
261
+ l2 || (l2 = t2.code);
262
+ u2 = l2;
263
+ const p2 = { reportDataList: r2, beanName: t2.beanName }, d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
264
+ c.post(m2, p2, { responseType: "blob" }).then((e4) => {
264
265
  const t3 = document.createElement("a");
265
- 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
+ t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", u2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
266
267
  }).finally(() => {
267
268
  i2 && (i2.state = a2);
268
269
  });
@@ -270,7 +271,7 @@ const _ = { save: function(e2) {
270
271
  }, saveQueryCharts: function(e2) {
271
272
  !function(e3) {
272
273
  const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
273
- b.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
274
+ C.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
274
275
  }(e2);
275
276
  } };
276
277
  function j(e2) {
@@ -288,26 +289,24 @@ function j(e2) {
288
289
  }
289
290
  function D(e2, s2, o2, i2) {
290
291
  var _a;
291
- const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = U.getFormViewData(e2), y2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, T2 = { entity: b2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: w(s2, e2), tableName: f2, isPermission: y2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
292
- u2 && (T2.logSettingText = u2.join(""));
293
- const P2 = te(e2);
294
- let k2;
295
- T2.additionalParamMap = P2, k2 = i2 ? function(e3, t2, s3, o3) {
292
+ const a2 = o2.templateUuid, r2 = o2.templateName, u2 = e2.systemCode, l2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, p2 = t(e2), d2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = U.getFormViewData(e2), C2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: a2, showName: r2, beanName: d2, isWorkflowForm: p2, functionCode: w(s2, e2), tableName: f2, isPermission: C2 + "", systemCode: u2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
293
+ l2 && (y2.logSettingText = l2.join(""));
294
+ const T2 = te(e2);
295
+ let h2;
296
+ y2.additionalParamMap = T2, h2 = i2 ? function(e3, t2, s3, o3) {
296
297
  return new Promise((i3, a3) => {
297
298
  const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
298
- C.defaults.headers.common.Authorization = d();
299
- C.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
299
+ c.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
300
300
  const s4 = new Blob([t3.data]), n2 = document.createElement("a");
301
301
  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), i3(true);
302
302
  }).catch((e4) => {
303
303
  a3(e4);
304
304
  });
305
305
  });
306
- }(r2, g2, T2, e2.isTest) : function(e3, t2, s3, o3) {
306
+ }(r2, g2, y2, e2.isTest) : function(e3, t2, s3, o3) {
307
307
  return new Promise((i3, a3) => {
308
308
  const r3 = n(t2, o3) + "/dsc/commons/export-reports";
309
- C.defaults.headers.common.Authorization = d();
310
- C.post(r3, s3, { responseType: "blob" }).then((t3) => {
309
+ c.post(r3, s3, { responseType: "blob" }).then((t3) => {
311
310
  const s4 = new Blob([t3.data]);
312
311
  let n2 = "报告.xlsx";
313
312
  e3 && (n2 = e3);
@@ -317,8 +316,8 @@ function D(e2, s2, o2, i2) {
317
316
  a3(e4);
318
317
  });
319
318
  });
320
- }(r2, g2, T2, e2.isTest), k2 && k2.then(() => {
321
- h(e2, s2);
319
+ }(r2, g2, y2, e2.isTest), h2 && h2.then(() => {
320
+ P(e2, s2);
322
321
  });
323
322
  }
324
323
  function L(e2, t2) {
@@ -372,14 +371,14 @@ function F(t2, s2, n2, o2, i2) {
372
371
  i3 || (i3 = "refresh");
373
372
  if ("refresh" === i3) {
374
373
  if (r2) {
375
- g(t3, r2).refresh();
374
+ b(t3, r2).refresh();
376
375
  }
377
376
  } else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
378
377
  const s4 = e(t3.entity.page);
379
378
  let o4 = n3;
380
379
  o4 || (o4 = {}), Object.assign(s4, o4), H(t3, s4, a3);
381
380
  }
382
- o3 && l({ message: u().t(o3), type: "success", showClose: true });
381
+ o3 && p({ message: l().t(o3), type: "success", showClose: true });
383
382
  }(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
384
383
  if (s3) {
385
384
  const n4 = s3;
@@ -392,7 +391,7 @@ function F(t2, s2, n2, o2, i2) {
392
391
  "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? le(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (H(e3, s4, o4), e3.canClick = true);
393
392
  }(e2, t3, { ...o3, ...e2.entity.page });
394
393
  } else e2.canClick = true;
395
- n3 && l({ message: u().t(n3), type: "success", showClose: true });
394
+ n3 && p({ message: l().t(n3), type: "success", showClose: true });
396
395
  }(t2, s2, n2, o2) : t2.canClick = true;
397
396
  }
398
397
  function q(e2, t2, s2) {
@@ -404,7 +403,7 @@ function H(e2, t2, s2) {
404
403
  if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
405
404
  else {
406
405
  const o2 = e2.tableName, i2 = void 0 !== s2 && true === s2 && t2 && void 0 !== t2, a2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
407
- b.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
406
+ C.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
408
407
  }
409
408
  }
410
409
  function $(e2, t2, s2, n2, o2) {
@@ -433,7 +432,7 @@ function G(e2, t2, s2, n2) {
433
432
  if (i2 && "list" === i2) {
434
433
  const s3 = T(e2, t2);
435
434
  if (s3) {
436
- g(e2, s3).refresh();
435
+ b(e2, s3).refresh();
437
436
  }
438
437
  } else if (i2 && "form" === i2) {
439
438
  const t3 = e2.entity.data;
@@ -442,23 +441,23 @@ function G(e2, t2, s2, n2) {
442
441
  }
443
442
  }
444
443
  function J(e2, t2, s2, i2) {
445
- return new Promise((r2, l2) => {
446
- const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
444
+ return new Promise((r2, u2) => {
445
+ const p2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
447
446
  let y2 = false;
448
447
  C2 && "noOperation" === C2 && (y2 = true);
449
- let T2 = d2.tableName;
448
+ let T2 = p2.tableName;
450
449
  if (t2) {
451
450
  const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
452
- T2 = x(d2, t3);
451
+ T2 = x(p2, t3);
453
452
  }
454
- const h2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
453
+ const P2 = function(e3, t3, s3, i3, r3, u3, p3, m3, f3) {
455
454
  return new Promise((g3, b3) => {
456
- const C3 = t3.props.base.title, y3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
457
- p.confirm(u().t(y3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
458
- const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, t3, i3, r3, l3, m3, null);
459
- p2.tableName = f3;
460
- let d4 = n(u2, e3.isTest) + s3;
461
- d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
455
+ const C3 = t3.props.base.title, y3 = "superPageRuntimeMessage.whetherToConfirm" + a(p3);
456
+ d.confirm(l().t(y3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
457
+ const a2 = e3.systemCode, l2 = e3.backendUrl, p4 = B(e3, t3, i3, r3, u3, m3, null);
458
+ p4.tableName = f3;
459
+ let d2 = n(l2, e3.isTest) + s3;
460
+ d2 = o(d2, a2, l2, e3.isTest), c.post(d2, p4).then((e4) => {
462
461
  g3(e4);
463
462
  }).catch((e4) => {
464
463
  b3(e4);
@@ -467,17 +466,17 @@ function J(e2, t2, s2, i2) {
467
466
  b3("点击了取消按钮");
468
467
  });
469
468
  });
470
- }(d2, m2, i2, y2, f2, g2, s2, b2, T2);
471
- h2 ? h2.then((e3) => {
472
- F(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
469
+ }(p2, m2, i2, y2, f2, g2, s2, b2, T2);
470
+ P2 ? P2.then((e3) => {
471
+ F(p2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
473
472
  }).catch((e3) => {
474
- l2(e3);
475
- }) : l2("request不存在");
473
+ u2(e3);
474
+ }) : u2("request不存在");
476
475
  });
477
476
  }
478
- function z(e2, s2) {
477
+ function Y(e2, s2) {
479
478
  var _a;
480
- const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = x(i2, d2), f2 = new FormData();
479
+ const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, u2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = x(i2, d2), f2 = new FormData();
481
480
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
482
481
  const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
483
482
  g2 && f2.append("importDuplicateRule", g2);
@@ -489,35 +488,35 @@ function z(e2, s2) {
489
488
  y2 && f2.append("formNoRuleCode", y2);
490
489
  const T2 = e2.listCode;
491
490
  T2 && f2.append("listCode", T2);
492
- let P2 = false;
493
- P2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", P2 + ""), f2.append("pageCode", i2.code);
491
+ let h2 = false;
492
+ h2 = void 0 !== u2.isAsync && null !== u2.isAsync && u2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
494
493
  const k2 = t(i2);
495
494
  null != k2 && f2.append("isWorkflowEntity", k2 + "");
496
495
  const R2 = w(a2, i2);
497
496
  R2 && f2.append("functionCode", R2);
498
497
  const M2 = te(i2);
499
498
  f2.append("additionalParamMapStr", JSON.stringify(M2));
500
- const N2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
499
+ const N2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission;
501
500
  f2.append("isPermission", N2 + "");
502
501
  const v2 = i2.systemCode;
503
502
  v2 && f2.append("systemCode", v2);
504
503
  const S2 = i2.backendUrl;
505
504
  let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
506
505
  I2 = o(I2, v2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
507
- if (P2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
506
+ if (h2) p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") });
508
507
  else {
509
508
  let t2 = false;
510
- e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), F(i2, a2, e3, null, true), i2.result = t2, h(i2, a2);
509
+ e3 ? (t2 = false, p({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), F(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
511
510
  }
512
511
  }).catch((e3) => {
513
512
  });
514
513
  }
515
- function Y(e2, t2) {
514
+ function z(e2, t2) {
516
515
  const s2 = e2.props.base;
517
516
  if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
518
517
  if ("one" === s2.conditionsForExecution) {
519
- if (!t2 || 1 !== t2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
520
- } else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
518
+ if (!t2 || 1 !== t2.length) return p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
519
+ } else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
521
520
  }
522
521
  return true;
523
522
  }
@@ -545,21 +544,21 @@ function Q(e2, t2, s2, n2, o2) {
545
544
  if (e2) {
546
545
  t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
547
546
  const s3 = te(t3);
548
- e3 && s3 && f(s3._t_ + "_id", e3);
547
+ e3 && s3 && g(s3._t_ + "_id", e3);
549
548
  }(e2.entity.id || e2.entity.ID, s2));
550
549
  const o3 = e2.completeTaskResult;
551
550
  if (o3) {
552
551
  const e3 = o3.completeTaskTipType;
553
552
  if (e3 && "MESSAGE" === e3) {
554
553
  const e4 = o3.content;
555
- return l({ showClose: true, type: "warning", message: e4 }), false;
554
+ return p({ showClose: true, type: "warning", message: e4 }), false;
556
555
  }
557
556
  }
558
557
  if (e2.completeTaskParam) {
559
558
  const t3 = e2.completeTaskParam;
560
- r2 = t3.taskId, n2 && (n2.taskId = r2), P(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
559
+ r2 = t3.taskId, n2 && (n2.taskId = r2), h(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
561
560
  }
562
- s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(i2, a2, "_currentActivityName", e2.taskName);
561
+ s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, h(i2, a2, "_currentActivityName", e2.taskName);
563
562
  }
564
563
  return n2 && (n2.operationResult = o2), t2 || F(s2, n2.configureObj, e2, null, false), true;
565
564
  }
@@ -574,7 +573,7 @@ async function X(e2, t2) {
574
573
  const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
575
574
  s4 = N(t4, n2, o2);
576
575
  }
577
- 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 }) => {
576
+ true === s4 ? d.prompt(l().t("superPageRuntimeMessage.pleaseInputOpinion"), l().t("superPageRuntimeMessage.opinion"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
578
577
  t3(e4);
579
578
  }).catch(() => {
580
579
  t3(false);
@@ -585,14 +584,14 @@ async function X(e2, t2) {
585
584
  return new Promise((i2, a2) => {
586
585
  var _a;
587
586
  if (s2) {
588
- const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
587
+ const r2 = e2.pageContext, u2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
589
588
  let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
590
- if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
589
+ if (f2 = o(f2, u2, d2, r2.isTest), !f2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
591
590
  const g2 = K(e2);
592
591
  g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
593
592
  c.post(f2, g2).then((s3) => {
594
593
  let n2 = true;
595
- s3 && (n2 = Q(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
594
+ s3 && (n2 = Q(s3, false, r2, e2, t2)), true === n2 && p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
596
595
  }).catch((e3) => {
597
596
  a2(e3);
598
597
  });
@@ -603,7 +602,7 @@ function Z(e2, t2) {
603
602
  if (t2) {
604
603
  const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = K(e2);
605
604
  c2.assigneeId = r2, oe(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
606
- h(s2, o2);
605
+ P(s2, o2);
607
606
  });
608
607
  }
609
608
  }
@@ -622,13 +621,13 @@ function te(t2) {
622
621
  function se(e2, t2) {
623
622
  if (t2) {
624
623
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
625
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
626
- if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
624
+ let u2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
625
+ if (u2 = o(u2, a2, r2, s2.isTest), !u2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
627
626
  const d2 = ee(e2);
628
627
  d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
629
- const m2 = c.post(p2, d2);
628
+ const m2 = c.post(u2, d2);
630
629
  m2 && m2.then((e3) => {
631
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && F(s2, i2, e3, null, false), h(s2, i2);
630
+ p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && F(s2, i2, e3, null, false), P(s2, i2);
632
631
  });
633
632
  }
634
633
  }
@@ -644,7 +643,7 @@ async function ne(e2, t2) {
644
643
  const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
645
644
  s4 = N(t4, n2, o2);
646
645
  }
647
- 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 }) => {
646
+ true === s4 ? d.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 }) => {
648
647
  t3(e4);
649
648
  }).catch(() => {
650
649
  t3(false);
@@ -653,26 +652,26 @@ async function ne(e2, t2) {
653
652
  });
654
653
  }(e2);
655
654
  if (s2) {
656
- const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
657
- let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons/copies";
658
- if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
655
+ const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, u2 = i2.backendUrl;
656
+ let d2 = n(u2, i2.isTest) + "/dsc/workflow-commons/copies";
657
+ if (d2 = o(d2, r2, u2, i2.isTest), !d2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
659
658
  const m2 = ee(e2);
660
659
  m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
661
660
  const f2 = c.post(d2, m2);
662
661
  f2 && f2.then((e3) => {
663
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(i2, a2);
662
+ p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), P(i2, a2);
664
663
  });
665
664
  }
666
665
  }
667
666
  }
668
667
  function oe(e2, t2, s2, n2) {
669
668
  return new Promise((i2, a2) => {
670
- const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
671
- if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
669
+ const r2 = e2.pageContext, u2 = r2.systemCode, d2 = r2.backendUrl;
670
+ if (!(s2 = o(s2, u2, d2, r2.isTest))) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
672
671
  const m2 = c.post(s2, t2);
673
672
  m2 && m2.then((t3) => {
674
673
  let s3 = true;
675
- t3 && (s3 = Q(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
674
+ t3 && (s3 = Q(t3, false, r2, e2, null)), true === s3 && p({ showClose: true, type: "success", message: l().t(n2) }), i2(true);
676
675
  }).catch((e3) => {
677
676
  a2(e3);
678
677
  });
@@ -681,14 +680,14 @@ function oe(e2, t2, s2, n2) {
681
680
  function ie(e2) {
682
681
  const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
683
682
  let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
684
- if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
685
- const p2 = t2.code, d2 = te(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
683
+ if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
684
+ const u2 = t2.code, d2 = te(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: u2 + ".xxx" };
686
685
  return c.post(r2, m2);
687
686
  }
688
687
  function ae(e2, t2) {
689
688
  const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = K(e2);
690
689
  t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), oe(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
691
- h(s2, o2);
690
+ P(s2, o2);
692
691
  });
693
692
  }
694
693
  function re(e2) {
@@ -696,18 +695,18 @@ function re(e2) {
696
695
  let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
697
696
  const r2 = K(e2);
698
697
  if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
699
- l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
698
+ p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
700
699
  }
701
700
  function ce(e2, t2) {
702
701
  if (t2) {
703
702
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
704
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
705
- if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
703
+ let u2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
704
+ if (u2 = o(u2, a2, r2, s2.isTest), !u2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
706
705
  const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = K(e2);
707
706
  m2.ids = d2;
708
- const f2 = c.post(p2, m2);
707
+ const f2 = c.post(u2, m2);
709
708
  f2 && f2.then((e3) => {
710
- F(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, i2);
709
+ F(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, i2);
711
710
  });
712
711
  }
713
712
  }
@@ -785,8 +784,8 @@ function pe(e2, s2, o2) {
785
784
  return t(e2) ? function(e3, t2, s3) {
786
785
  return new Promise((o3, i3) => {
787
786
  const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
788
- let d2 = t2 || null, f2 = t2 ? [t2] : null;
789
- 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);
787
+ let d2 = t2 || null, m2 = t2 ? [t2] : null;
788
+ void 0 === s3 || s3 ? (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);
790
789
  const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
791
790
  if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
792
791
  const t3 = {};
@@ -795,9 +794,9 @@ function pe(e2, s2, o2) {
795
794
  t3[s4] = s4;
796
795
  }), C2.listCodesMap = t3;
797
796
  }
798
- f2 && (C2.ids = de(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);
799
- const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = E();
800
- h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
797
+ m2 && (C2.ids = de(m2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (C2.id = f(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);
798
+ const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", P2 = E();
799
+ P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
801
800
  e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules = A(e3);
802
801
  const s4 = e3.pageType;
803
802
  s4 && "form" === s4 && function(e4) {
@@ -830,7 +829,7 @@ function pe(e2, s2, o2) {
830
829
  }
831
830
  e5.actionPermissionMap = s5;
832
831
  }(e4);
833
- }(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
832
+ }(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
834
833
  }).catch((t3) => {
835
834
  e3.canClick = true, i3(t3);
836
835
  });
@@ -838,10 +837,10 @@ function pe(e2, s2, o2) {
838
837
  }(e2, s2, o2) : function(e3, t2, s3) {
839
838
  return new Promise((o3, i3) => {
840
839
  const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
841
- let d2 = t2 || null, f2 = t2 ? [t2] : null;
842
- 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);
840
+ let d2 = t2 || null, m2 = t2 ? [t2] : null;
841
+ void 0 === s3 || s3 ? (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);
843
842
  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: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
844
- if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = de(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) {
843
+ if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = de(m2)), 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) {
845
844
  const t3 = {};
846
845
  e3.tableUuids.forEach((e4) => {
847
846
  const s4 = r(u2, l2, e4);
@@ -849,11 +848,11 @@ function pe(e2, s2, o2) {
849
848
  }), T2.listCodesMap = t3;
850
849
  }
851
850
  e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
852
- const h2 = C2 + "/dsc/commons/gets", P2 = E();
853
- P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(h2, T2).then((t3) => {
851
+ const P2 = C2 + "/dsc/commons/gets", h2 = E();
852
+ h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(P2, T2).then((t3) => {
854
853
  t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
855
854
  const s4 = e3.customRules, n2 = e3.rules, i4 = O(s4, n2);
856
- e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
855
+ e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
857
856
  }).catch((t3) => {
858
857
  e3.canClick = true, i3(t3);
859
858
  });
@@ -894,7 +893,7 @@ export {
894
893
  se as doAddSigner,
895
894
  Z as doAssign,
896
895
  ne as doCreateCopyTask,
897
- z as doImportFinally,
896
+ Y as doImportFinally,
898
897
  ce as doRemoveSigners,
899
898
  ae as doReturnTaskTo,
900
899
  D as exportFormReport,
@@ -905,7 +904,7 @@ export {
905
904
  W as getSaveFormRequestWithRow,
906
905
  ie as getTaskInformitions,
907
906
  ue as isVisibleWorkflowButton,
908
- Y as judgeDataNumber,
907
+ z as judgeDataNumber,
909
908
  ge as listChartConditions,
910
909
  G as refreshFormOrListPage,
911
910
  le as refreshPage,