super-page-runtime 2.3.12-rc1 → 2.3.12-rc2

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