super-page-runtime 2.2.3 → 2.2.9

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 (110) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.js +276 -326
  17. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  18. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  19. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  20. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  21. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  22. package/dist/es/components/runtime/utils/page-helper-util.js +58 -104
  23. package/dist/es/components/runtime/utils/page-init-util.js +30 -37
  24. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  25. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  26. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  27. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  28. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  29. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  31. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  34. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  40. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  41. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  42. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  43. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +33 -1
  44. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
  45. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  46. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +123 -116
  50. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  51. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  53. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  54. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  55. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  65. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +46 -57
  66. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
  67. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  68. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  69. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  70. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  72. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  73. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  74. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  75. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +5 -5
  76. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  77. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  78. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  79. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  80. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  81. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  85. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  86. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  87. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  90. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  91. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  92. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  93. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  94. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  95. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -25
  96. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  97. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  98. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  99. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  100. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  101. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  102. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  103. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  104. package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
  105. package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
  106. package/dist/es/components/runtime/views/super-page.vue.js +25 -38
  107. package/dist/es/index.d.ts +2 -2
  108. package/dist/es/index.js +6 -4
  109. package/package.json +74 -74
  110. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -1,4 +1,4 @@
1
- import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as s, upperFirstCase as n, isWorkflowPage as o, packageTemplateFiles as i, isArrayFn 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 i, upperFirstCase as a, 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,13 +6,13 @@ import { getToken as d, getSessionCache as m, setSessionCache as f } from "agile
6
6
  import { getComponentRef as g } from "../global-refs.js";
7
7
  import C from "../eventBus.js";
8
8
  import b from "axios";
9
- import { getTableUuid as T, handleEvent as y, doAfterClickEvent as w } from "./event-util.js";
9
+ import { handleEvent as y, getTableUuid as T, doAfterClickEvent as w } from "./event-util.js";
10
10
  import { setStoreInfo as h } from "../store-util.js";
11
11
  import { getPermissionCodes as P, getDefaultValue as k, getModelFields as N } from "../page-init-util.js";
12
12
  import { updateChartDatasources as v, caculateShowCondition as M, getVariableValue as R, setVariableValue as S } from "../page-helper-util.js";
13
13
  import I from "./print-label.js";
14
14
  import { getTableNameByTableUuid as x } from "../table-utils.js";
15
- import { packageCustomRules as A, getWorkflowRules as U } from "./validator-util.js";
15
+ import { getWorkflowRules as A, packageCustomRules as U } from "./validator-util.js";
16
16
  import { functions as O } from "../api/page-expose-util.js";
17
17
  const E = { save: function(e2) {
18
18
  return D(e2, false);
@@ -38,19 +38,18 @@ const E = { save: function(e2) {
38
38
  return J(e2, true, "disagree", "/dsc/commons/batch-refuses");
39
39
  }, back: function(e2) {
40
40
  const t2 = e2.pageContext;
41
- H(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
41
+ F(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
42
42
  }, delete: function(e2) {
43
43
  return function(e3) {
44
- return new Promise((n2, i2) => {
44
+ return new Promise((s2, i2) => {
45
45
  const a2 = e3.ids;
46
- if (!a2 || 0 === a2.length)
47
- return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void n2(true);
46
+ if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
48
47
  p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
49
48
  var _a;
50
49
  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 C2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
52
- C2 = s(C2, p2, d2, r2.isTest);
53
- const b2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = o(r2), y2 = P(u2, r2), w2 = { ids: a2, functionCode: y2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
50
+ let C2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
51
+ C2 = o(C2, p2, d2, r2.isTest);
52
+ const b2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, y2 = t(r2), T2 = P(u2, r2), w2 = { ids: a2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: y2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
53
  r2.beanName && (w2.beanName = r2.beanName);
55
54
  const h2 = u2.props.deleteLogicSetting;
56
55
  h2 && ("object" == typeof h2 ? w2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (w2.deleteLogicSetting = h2));
@@ -59,7 +58,7 @@ const E = { save: function(e2) {
59
58
  const N2 = u2.props.base.isSafeDelete;
60
59
  N2 && (w2.isSafeDelete = N2), c.delete(C2, { data: w2 }).then((e4) => {
61
60
  const t2 = g(r2, m2);
62
- t2 && (t2.isDeleteChange(true), t2.clearSelections()), W(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), n2(true);
61
+ t2 && (t2.isDeleteChange(true), t2.clearSelections()), W(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
63
62
  }).catch((e4) => {
64
63
  i2(e4);
65
64
  });
@@ -71,31 +70,31 @@ const E = { save: function(e2) {
71
70
  }, downloadTemplate: function(e2) {
72
71
  !function(e3) {
73
72
  var _a;
74
- const s2 = e3.pageContext, n2 = e3.configureObj, o2 = n2.props.base, a2 = i(o2.templateFiles);
73
+ const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, a2 = i(o2.templateFiles);
75
74
  let r2, c2;
76
75
  a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
77
- const u2 = s2.systemCode, l2 = s2.backendUrl, p2 = c2;
76
+ const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
78
77
  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) : s2.label && (f2 += "&showName=" + encodeURI(s2.label) + ".xlsx");
80
- const g2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
78
+ 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
+ const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
81
80
  g2 && (f2 += "&logSettingText=" + g2.join(""));
82
81
  u2 && (f2 += "&systemCode=" + u2);
83
82
  const C2 = e3.listCode;
84
83
  C2 && (f2 += "&listCode=" + C2);
85
- s2.beanName && (f2 += "&beanName=" + s2.beanName);
86
- const b2 = P(n2, s2);
84
+ t2.beanName && (f2 += "&beanName=" + t2.beanName);
85
+ const b2 = P(s2, t2);
87
86
  b2 && (f2 += "&functionCode=" + b2);
88
- s2.tableName && (f2 += "&tableName=" + s2.tableName);
89
- s2.code && (f2 += "&pageCode=" + s2.code);
90
- s2.version && (f2 += "&pageVersion=" + s2.version);
91
- const T2 = d();
92
- T2 && (f2 += "&JWT=" + T2);
93
- const y2 = "_RUN_CURRENT_ROLE", w2 = m(y2);
94
- w2 && (f2 += "&" + y2 + "=" + w2);
87
+ t2.tableName && (f2 += "&tableName=" + t2.tableName);
88
+ t2.code && (f2 += "&pageCode=" + t2.code);
89
+ t2.version && (f2 += "&pageVersion=" + t2.version);
90
+ const y2 = d();
91
+ y2 && (f2 += "&JWT=" + y2);
92
+ const T2 = "_RUN_CURRENT_ROLE", w2 = m(T2);
93
+ w2 && (f2 += "&" + T2 + "=" + w2);
95
94
  if (o2) {
96
95
  f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
96
  }
98
- const h2 = t(l2, s2.isTest);
97
+ const h2 = n(l2, t2.isTest);
99
98
  window.open(h2 + "/dsc/commons/download-files" + f2);
100
99
  }(e2);
101
100
  }, import: function(e2) {
@@ -122,34 +121,32 @@ const E = { save: function(e2) {
122
121
  g(t2, s2).showMobileSearch();
123
122
  }, workflowSave: function(e2) {
124
123
  return async function(e3) {
125
- return new Promise((n2, o2) => {
124
+ return new Promise((t2, s2) => {
126
125
  const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
127
- let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons";
128
- if (d2 = s(d2, r2, p2, i2.isTest), !d2)
129
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
126
+ let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
127
+ if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
130
128
  const m2 = Y(e3);
131
129
  let f2;
132
- f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((t2) => {
133
- let s2 = true;
134
- t2 && (s2 = K(t2, false, i2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), n2(true);
130
+ f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
131
+ let n2 = true;
132
+ s3 && (n2 = K(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), t2(true);
135
133
  }).catch((e4) => {
136
- o2(e4);
134
+ s2(e4);
137
135
  });
138
136
  });
139
137
  }(e2);
140
138
  }, submitProcess: function(e2) {
141
139
  return function(e3) {
142
- return new Promise((n2, o2) => {
140
+ return new Promise((t2, s2) => {
143
141
  const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
144
- let p2 = t(r2, i2.isTest) + "/dsc/workflow-commons/submit";
145
- if (p2 = s(p2, a2, r2, i2.isTest), !p2)
146
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
142
+ let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
143
+ if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
147
144
  const d2 = Y(e3), m2 = c.post(p2, d2);
148
- m2 && m2.then((t2) => {
149
- let s2 = true;
150
- t2 && (s2 = K(t2, false, i2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), n2(true);
145
+ m2 && m2.then((s3) => {
146
+ let n2 = true;
147
+ s3 && (n2 = K(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), t2(true);
151
148
  }).catch((e4) => {
152
- o2(e4);
149
+ s2(e4);
153
150
  });
154
151
  });
155
152
  }(e2);
@@ -184,22 +181,22 @@ const E = { save: function(e2) {
184
181
  }(e2);
185
182
  }, drawTask: function(e2) {
186
183
  return function(e3) {
187
- const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = Y(e3);
184
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = Y(e3);
188
185
  return ne(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
189
186
  }(e2);
190
187
  }, abandonReceive: function(e2) {
191
188
  return function(e3) {
192
- const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = Y(e3);
189
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = Y(e3);
193
190
  return ne(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
194
191
  }(e2);
195
192
  }, returnToPreviousTask: function(e2) {
196
193
  return function(e3) {
197
- const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = Y(e3);
194
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = Y(e3);
198
195
  return ne(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
199
196
  }(e2);
200
197
  }, endInstance: function(e2) {
201
198
  return function(e3) {
202
- const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/end-instance", i2 = Y(e3);
199
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = Y(e3);
203
200
  return ne(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
204
201
  }(e2);
205
202
  }, returnTaskTo: function(e2) {
@@ -214,7 +211,7 @@ const E = { save: function(e2) {
214
211
  }(e2);
215
212
  }, retrieveTask: function(e2) {
216
213
  return function(e3) {
217
- const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/retrieves", i2 = Y(e3);
214
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = Y(e3);
218
215
  return ne(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
219
216
  }(e2);
220
217
  }, viewDetail: function(e2) {
@@ -227,8 +224,7 @@ const E = { save: function(e2) {
227
224
  return function(e3) {
228
225
  let t2 = null;
229
226
  try {
230
- if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2)
231
- throw new Error("未找到模板");
227
+ if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
232
228
  } catch (e4) {
233
229
  }
234
230
  I.printLabel(e3, t2);
@@ -241,34 +237,31 @@ const E = { save: function(e2) {
241
237
  s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true, _(t2);
242
238
  }, exportCharts: function(e2) {
243
239
  !function(e3) {
244
- const s2 = e3.pageContext;
245
- const n2 = s2.allChartUuids;
246
- if (!n2 || 0 == n2.length)
247
- return;
240
+ const t2 = e3.pageContext, s2 = t2.allChartUuids;
241
+ if (!s2 || 0 == s2.length) return;
248
242
  const o2 = e3.configureObj;
249
243
  let i2 = null;
250
244
  o2 && o2.runtime && (i2 = o2.runtime.props);
251
245
  const a2 = i2 ? i2.state : void 0;
252
246
  i2 && (i2.state = "disabled");
253
247
  const r2 = [];
254
- for (let e4 = 0; e4 < n2.length; e4++) {
255
- const t2 = n2[e4], o3 = g(s2, t2);
248
+ for (let e4 = 0; e4 < s2.length; e4++) {
249
+ const n2 = s2[e4], o3 = g(t2, n2);
256
250
  if (o3) {
257
251
  const e5 = o3.getConfigure();
258
- e5 && e5.exportable && o3.exportChart && r2.push(o3.exportChart());
252
+ e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
259
253
  }
260
254
  }
261
- if (!r2 || 0 == r2.length)
262
- return;
263
- let c2, u2 = s2.label;
264
- u2 || (u2 = s2.code);
255
+ if (!r2 || 0 == r2.length) return;
256
+ let c2, u2 = t2.label;
257
+ u2 || (u2 = t2.code);
265
258
  c2 = u2;
266
- const l2 = { reportDataList: r2, beanName: s2.beanName }, p2 = s2.backendUrl;
259
+ const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl;
267
260
  let m2;
268
- const f2 = t(p2, s2.isTest) + "/dsc/commons/exportChart";
261
+ const f2 = n(p2, t2.isTest) + "/dsc/commons/exportChart";
269
262
  b.defaults.headers.common.Authorization = d(), m2 = b.post(f2, l2, { responseType: "blob" }), m2.then((e4) => {
270
- const t2 = document.createElement("a");
271
- t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
263
+ const t3 = document.createElement("a");
264
+ 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);
272
265
  }).finally(() => {
273
266
  i2 && (i2.state = a2);
274
267
  });
@@ -276,8 +269,7 @@ const E = { save: function(e2) {
276
269
  } };
277
270
  function _(e2) {
278
271
  const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
279
- if (!s2 || 0 == s2.length)
280
- return;
272
+ if (!s2 || 0 == s2.length) return;
281
273
  const n2 = e2.configureObj;
282
274
  let o2 = null;
283
275
  n2 && n2.runtime && (o2 = n2.runtime.props);
@@ -288,38 +280,38 @@ function _(e2) {
288
280
  o2 && (o2.state = i2);
289
281
  });
290
282
  }
291
- function j(e2, s2, n2, i2) {
283
+ function j(e2, s2, o2, i2) {
292
284
  var _a;
293
- const a2 = n2.templateUuid, r2 = n2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = o(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, C2 = O.getFormViewData(e2), T2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: C2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: f2, isPermission: T2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
294
- u2 && (y2.logSettingText = u2.join(""));
285
+ 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, C2 = O.getFormViewData(e2), y2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, T2 = { entity: C2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: f2, isPermission: y2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
286
+ u2 && (T2.logSettingText = u2.join(""));
295
287
  const h2 = ee(e2);
296
288
  let k2;
297
- y2.additionalParamMap = h2, k2 = i2 ? function(e3, s3, n3, o2) {
289
+ T2.additionalParamMap = h2, k2 = i2 ? function(e3, t2, s3, o3) {
298
290
  return new Promise((i3, a3) => {
299
- const r3 = t(s3, o2) + "/dsc/commons/export-pdf";
291
+ const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
300
292
  b.defaults.headers.common.Authorization = d();
301
- b.post(r3, n3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t2) => {
302
- const s4 = new Blob([t2.data]), n4 = document.createElement("a");
303
- n4.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n4.style.display = "none", n4.target = "_blank", n4.href = URL.createObjectURL(s4), document.body.appendChild(n4), n4.click(), URL.revokeObjectURL(n4.href), document.body.removeChild(n4), i3(true);
293
+ b.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
294
+ const s4 = new Blob([t3.data]), n2 = document.createElement("a");
295
+ 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);
304
296
  }).catch((e4) => {
305
297
  a3(e4);
306
298
  });
307
299
  });
308
- }(r2, g2, y2, e2.isTest) : function(e3, s3, n3, o2) {
300
+ }(r2, g2, T2, e2.isTest) : function(e3, t2, s3, o3) {
309
301
  return new Promise((i3, a3) => {
310
- const r3 = t(s3, o2) + "/dsc/commons/export-reports";
302
+ const r3 = n(t2, o3) + "/dsc/commons/export-reports";
311
303
  b.defaults.headers.common.Authorization = d();
312
- b.post(r3, n3, { responseType: "blob" }).then((t2) => {
313
- const s4 = new Blob([t2.data]);
314
- let n4 = "报告.xlsx";
315
- e3 && (n4 = e3);
316
- const o3 = document.createElement("a");
317
- o3.download = n4, o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(s4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3), i3(true);
304
+ b.post(r3, s3, { responseType: "blob" }).then((t3) => {
305
+ const s4 = new Blob([t3.data]);
306
+ let n2 = "报告.xlsx";
307
+ e3 && (n2 = e3);
308
+ const o4 = document.createElement("a");
309
+ 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);
318
310
  }).catch((e4) => {
319
311
  a3(e4);
320
312
  });
321
313
  });
322
- }(r2, g2, y2, e2.isTest), k2 && k2.then(() => {
314
+ }(r2, g2, T2, e2.isTest), k2 && k2.then(() => {
323
315
  w(e2, s2);
324
316
  });
325
317
  }
@@ -336,32 +328,32 @@ function D(e2, t2) {
336
328
  }) : n2("保存时request不存在");
337
329
  });
338
330
  }
339
- function B(e2, t2, s2, n2, i2, r2, c2) {
331
+ function B(e2, n2, o2, i2, a2, r2, c2) {
340
332
  var _a;
341
- const u2 = o(e2), l2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = P(t2, e2);
333
+ 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);
342
334
  let m2 = c2;
343
335
  m2 || (m2 = e2.entity.data);
344
336
  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 };
345
- r2 && (f2.ids = r2), e2.judgeHeavyList && (a(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
346
- const g2 = t2.props.base.conversionCodes;
347
- g2 && (a(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
348
- const C2 = de(t2);
337
+ r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
338
+ const g2 = n2.props.base.conversionCodes;
339
+ g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
340
+ const C2 = de(n2);
349
341
  C2 && (f2.autoSetValueData = C2);
350
- const b2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
342
+ const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
351
343
  b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
352
- const T2 = e2.beanName;
353
- T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), n2 && (f2.mainDefaultValueColumns = n2);
354
- const y2 = ee(e2);
355
- return f2.additionalParamMap = y2, void 0 !== s2 && (f2.unControlVersion = s2), f2;
356
- }
357
- function L(e2, n2, o2, i2, a2, r2, u2, l2) {
358
- const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, n2, i2, a2, r2, null, u2);
359
- return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, n3, o3, i3, a3, r3) {
360
- const u3 = t(n3, r3);
344
+ const y2 = e2.beanName;
345
+ y2 && (f2.beanName = y2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
346
+ const T2 = ee(e2);
347
+ return f2.additionalParamMap = T2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
348
+ }
349
+ function L(e2, t2, s2, i2, a2, r2, u2, l2) {
350
+ const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, i2, a2, r2, null, u2);
351
+ return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, i3, a3, r3) {
352
+ const u3 = n(t3, r3);
361
353
  let l3, p3 = u3 + i3;
362
- p3 = s(p3, e3, n3, r3), l3 = a3 && (a3.id || a3.ID) ? c.put(p3, o3) : c.post(p3, o3);
354
+ p3 = o(p3, e3, t3, r3), l3 = a3 && (a3.id || a3.ID) ? c.put(p3, s3) : c.post(p3, s3);
363
355
  return l3;
364
- }(p2, d2, m2, o2, e2.entity.data, e2.isTest);
356
+ }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
365
357
  }
366
358
  function V(e2, t2, s2, n2, o2, i2) {
367
359
  return L(e2, t2, s2, n2, o2, i2, null, null);
@@ -379,7 +371,7 @@ function W(t2, s2, n2, o2, i2) {
379
371
  } else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
380
372
  const s4 = e(t3.entity.page);
381
373
  let o4 = n3;
382
- o4 || (o4 = {}), Object.assign(s4, o4), H(t3, s4, a3);
374
+ o4 || (o4 = {}), Object.assign(s4, o4), F(t3, s4, a3);
383
375
  }
384
376
  o3 && l({ message: u().t(o3), type: "success", showClose: true });
385
377
  }(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
@@ -389,13 +381,11 @@ function W(t2, s2, n2, o2, i2) {
389
381
  n4.entity && (o3 = n4.entity), n4.formNo && (e2.initFormNo = n4.formNo);
390
382
  !function(e3, t4, s4) {
391
383
  const n5 = t4.props.base.successOperation;
392
- if (!n5 || null === n5)
393
- return;
384
+ if (!n5 || null === n5) return;
394
385
  const o4 = t4.props.base.isNeedValueMapping;
395
- "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? ue(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (H(e3, s4, o4), e3.canClick = true);
386
+ "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? ue(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (F(e3, s4, o4), e3.canClick = true);
396
387
  }(e2, t3, { ...o3, ...e2.entity.page });
397
- } else
398
- e2.canClick = true;
388
+ } else e2.canClick = true;
399
389
  n3 && l({ message: u().t(n3), type: "success", showClose: true });
400
390
  }(t2, s2, n2, o2) : t2.canClick = true;
401
391
  }
@@ -403,16 +393,15 @@ function q(e2, t2, s2) {
403
393
  let n2;
404
394
  return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
405
395
  }
406
- function H(e2, t2, s2) {
396
+ function F(e2, t2, s2) {
407
397
  const n2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
408
- if ("openWindow" === n2 || "newTab" === n2)
409
- window.parent ? window.parent.close() : window.close();
398
+ if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
410
399
  else {
411
400
  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) + "_";
412
401
  C.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
413
402
  }
414
403
  }
415
- function F(e2, t2, s2, n2) {
404
+ function H(e2, t2, s2, n2) {
416
405
  var _a;
417
406
  let o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null;
418
407
  o2 || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
@@ -422,8 +411,7 @@ function F(e2, t2, s2, n2) {
422
411
  let n3 = e3;
423
412
  Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
424
413
  const t4 = e4.source;
425
- if (!t4)
426
- return;
414
+ if (!t4) return;
427
415
  const o3 = t4.split("."), i3 = R(n3, o3), a2 = e4.target, r2 = N(null, a2);
428
416
  S(s3.entity, r2, i3);
429
417
  });
@@ -448,24 +436,24 @@ function $(e2, t2, s2, n2) {
448
436
  }
449
437
  }
450
438
  }
451
- function J(e2, o2, i2, a2) {
439
+ function J(e2, t2, s2, i2) {
452
440
  return new Promise((r2, l2) => {
453
441
  const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
454
- let T2 = false;
455
- b2 && "noOperation" === b2 && (T2 = true);
456
- let y2 = d2.tableName;
457
- if (o2) {
458
- const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
459
- y2 = x(d2, t2);
442
+ let y2 = false;
443
+ b2 && "noOperation" === b2 && (y2 = true);
444
+ let T2 = d2.tableName;
445
+ if (t2) {
446
+ const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
447
+ T2 = x(d2, t3);
460
448
  }
461
- const w2 = function(e3, o3, i3, a3, r3, l3, d3, m3, f3) {
449
+ const w2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
462
450
  return new Promise((g3, C3) => {
463
- const b3 = o3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + n(d3);
464
- p.confirm(u().t(T3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
465
- const n2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, o3, a3, r3, l3, m3, null);
451
+ const b3 = t3.props.base.title, y3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
452
+ p.confirm(u().t(y3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
453
+ const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, t3, i3, r3, l3, m3, null);
466
454
  p2.tableName = f3;
467
- let d4 = t(u2, e3.isTest) + i3;
468
- d4 = s(d4, n2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
455
+ let d4 = n(u2, e3.isTest) + s3;
456
+ d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
469
457
  g3(e4);
470
458
  }).catch((e4) => {
471
459
  C3(e4);
@@ -474,31 +462,31 @@ function J(e2, o2, i2, a2) {
474
462
  C3("点击了取消按钮");
475
463
  });
476
464
  });
477
- }(d2, m2, a2, T2, f2, g2, i2, C2, y2);
465
+ }(d2, m2, i2, y2, f2, g2, s2, C2, T2);
478
466
  w2 ? w2.then((e3) => {
479
- W(d2, m2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
467
+ W(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
480
468
  }).catch((e3) => {
481
469
  l2(e3);
482
470
  }) : l2("request不存在");
483
471
  });
484
472
  }
485
- function G(e2, n2) {
473
+ function G(e2, s2) {
486
474
  var _a;
487
475
  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();
488
- f2.append("multipartFile", n2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
476
+ f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
489
477
  const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
490
478
  g2 && f2.append("importDuplicateRule", g2);
491
479
  const C2 = i2.judgeHeavyList;
492
480
  C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
493
481
  const b2 = de(a2);
494
482
  b2 && f2.append("autoSetValueData", b2);
495
- const T2 = i2.formNoRuleCode;
496
- T2 && f2.append("formNoRuleCode", T2);
497
- const y2 = e2.listCode;
498
- y2 && f2.append("listCode", y2);
483
+ const y2 = i2.formNoRuleCode;
484
+ y2 && f2.append("formNoRuleCode", y2);
485
+ const T2 = e2.listCode;
486
+ T2 && f2.append("listCode", T2);
499
487
  let h2 = false;
500
488
  h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
501
- const k2 = o(i2);
489
+ const k2 = t(i2);
502
490
  null != k2 && f2.append("isWorkflowEntity", k2 + "");
503
491
  const N2 = P(a2, i2);
504
492
  N2 && f2.append("functionCode", N2);
@@ -507,10 +495,9 @@ function G(e2, n2) {
507
495
  const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
508
496
  f2.append("isPermission", M2 + "");
509
497
  const R2 = i2.systemCode, S2 = i2.backendUrl;
510
- let I2 = t(S2, i2.isTest) + "/dsc/commons/import-data";
511
- I2 = s(I2, R2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
512
- if (h2)
513
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
498
+ let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
499
+ I2 = o(I2, R2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
500
+ if (h2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
514
501
  else {
515
502
  let t2 = false;
516
503
  e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), W(i2, a2, e3, null, true), i2.result = t2, w(i2, a2);
@@ -522,29 +509,27 @@ function z(e2, t2) {
522
509
  const s2 = e2.props.base;
523
510
  if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
524
511
  if ("one" === s2.conditionsForExecution) {
525
- if (!t2 || 1 !== t2.length)
526
- return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
527
- } else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0))
528
- return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
512
+ if (!t2 || 1 !== t2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
513
+ } 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;
529
514
  }
530
515
  return true;
531
516
  }
532
517
  function Y(e2) {
533
518
  var _a;
534
- const t2 = e2.pageContext, s2 = e2.configureObj, n2 = t2.entity.data, o2 = t2.systemCode, i2 = t2.code;
535
- let r2 = P(s2, t2);
536
- r2 || (r2 = i2 + ".xxx"), n2.id || n2.ID || (n2.page_code = t2.code, n2.page_version = t2.version);
537
- const c2 = { entity: n2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: o2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
538
- t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (a(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
539
- const u2 = s2.props.base.conversionCodes;
540
- u2 && (a(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
541
- const l2 = de(s2);
519
+ const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
520
+ let r2 = P(n2, t2);
521
+ r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.page_code = t2.code, o2.page_version = t2.version);
522
+ 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 };
523
+ 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);
524
+ const u2 = n2.props.base.conversionCodes;
525
+ u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
526
+ const l2 = de(n2);
542
527
  l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
543
- const p2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
544
- p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = o2);
528
+ const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
529
+ p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
545
530
  const d2 = ee(t2);
546
531
  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]));
547
- const m2 = s2.props.base.successOperation;
532
+ const m2 = n2.props.base.successOperation;
548
533
  return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
549
534
  }
550
535
  function K(e2, t2, s2, n2, o2) {
@@ -571,50 +556,47 @@ function K(e2, t2, s2, n2, o2) {
571
556
  }
572
557
  return n2 && (n2.operationResult = o2), t2 || W(s2, n2.configureObj, e2, null, false), true;
573
558
  }
574
- async function Q(e2, n2) {
575
- const o2 = await function(e3) {
576
- return new Promise((t2, s2) => {
559
+ async function Q(e2, t2) {
560
+ const s2 = await function(e3) {
561
+ return new Promise((t3, s3) => {
577
562
  var _a, _b, _c, _d;
578
- const n3 = e3.configureObj;
579
- if (n3) {
580
- let s3 = false;
581
- if (((_b = (_a = n3.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
582
- const t3 = e3.pageContext, o3 = (_d = (_c = n3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
583
- s3 = M(t3, n3, o3);
563
+ const n2 = e3.configureObj;
564
+ if (n2) {
565
+ let s4 = false;
566
+ if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
567
+ const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
568
+ s4 = M(t4, n2, o2);
584
569
  }
585
- true === s3 ? 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 }) => {
586
- t2(e4);
570
+ 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 }) => {
571
+ t3(e4);
587
572
  }).catch(() => {
588
- t2(false);
589
- }) : t2(true);
590
- } else
591
- t2(true);
573
+ t3(false);
574
+ }) : t3(true);
575
+ } else t3(true);
592
576
  });
593
577
  }(e2);
594
578
  return new Promise((i2, a2) => {
595
579
  var _a;
596
- if (o2) {
597
- const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === o2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : o2;
598
- let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
599
- if (f2 = s(f2, p2, d2, r2.isTest), !f2)
600
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
580
+ if (s2) {
581
+ const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
582
+ let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
583
+ if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
601
584
  const g2 = Y(e2);
602
- g2.completeTaskParam = { operationResult: n2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
603
- c.post(f2, g2).then((t2) => {
604
- let s2 = true;
605
- t2 && (s2 = K(t2, false, r2, e2, n2)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
585
+ g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
586
+ c.post(f2, g2).then((s3) => {
587
+ let n2 = true;
588
+ s3 && (n2 = K(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
606
589
  }).catch((e3) => {
607
590
  a2(e3);
608
591
  });
609
- } else
610
- i2(true);
592
+ } else i2(true);
611
593
  });
612
594
  }
613
- function X(e2, s2) {
614
- if (s2) {
615
- const n2 = e2.pageContext, o2 = e2.configureObj, i2 = n2.backendUrl, a2 = t(i2, n2.isTest) + "/dsc/workflow-commons/assigns", r2 = s2.id ? s2.id : s2.ID ? s2.ID : null, c2 = Y(e2);
595
+ function X(e2, t2) {
596
+ if (t2) {
597
+ 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 = Y(e2);
616
598
  c2.assigneeId = r2, ne(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
617
- w(n2, o2);
599
+ w(s2, o2);
618
600
  });
619
601
  }
620
602
  }
@@ -630,151 +612,127 @@ function ee(t2) {
630
612
  return n2 && Object.assign(s2, n2), s2;
631
613
  }
632
614
  }
633
- function te(e2, n2) {
634
- if (n2) {
635
- const o2 = e2.pageContext, i2 = e2.configureObj, a2 = o2.systemCode, r2 = o2.backendUrl;
636
- let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/add-signers";
637
- if (p2 = s(p2, a2, r2, o2.isTest), !p2)
638
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
615
+ function te(e2, t2) {
616
+ if (t2) {
617
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
618
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
619
+ if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
639
620
  const d2 = Z(e2);
640
- d2.completeTaskParam.transactors = n2.loginNames.join(",").split(",");
621
+ d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
641
622
  const m2 = c.post(p2, d2);
642
623
  m2 && m2.then((e3) => {
643
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && W(o2, i2, e3, null, false), w(o2, i2);
624
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && W(s2, i2, e3, null, false), w(s2, i2);
644
625
  });
645
626
  }
646
627
  }
647
- function se(e2, n2) {
648
- if (n2) {
649
- const o2 = e2.pageContext, i2 = e2.configureObj, a2 = o2.systemCode, r2 = o2.backendUrl;
650
- let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/add-signers";
651
- if (p2 = s(p2, a2, r2, o2.isTest), !p2)
652
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
628
+ function se(e2, t2) {
629
+ if (t2) {
630
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
631
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
632
+ if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
653
633
  const d2 = Z(e2);
654
- d2.completeTaskParam.transactors = n2.userIds.join(",").split(",");
634
+ d2.completeTaskParam.transactors = t2.userIds.join(",").split(",");
655
635
  const m2 = c.post(p2, d2);
656
636
  m2 && m2.then((e3) => {
657
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), w(o2, i2);
637
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), w(s2, i2);
658
638
  });
659
639
  }
660
640
  }
661
- function ne(e2, t2, n2, o2) {
641
+ function ne(e2, t2, s2, n2) {
662
642
  return new Promise((i2, a2) => {
663
643
  const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
664
- if (!(n2 = s(n2, p2, d2, r2.isTest)))
665
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
666
- const m2 = c.post(n2, t2);
644
+ if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
645
+ const m2 = c.post(s2, t2);
667
646
  m2 && m2.then((t3) => {
668
- let s2 = true;
669
- t3 && (s2 = K(t3, false, r2, e2, null)), true === s2 && l({ showClose: true, type: "success", message: u().t(o2) }), i2(true);
647
+ let s3 = true;
648
+ t3 && (s3 = K(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
670
649
  }).catch((e3) => {
671
650
  a2(e3);
672
651
  });
673
652
  });
674
653
  }
675
654
  function oe(e2) {
676
- const n2 = e2.pageContext, o2 = n2.systemCode, i2 = n2.backendUrl, a2 = n2.completeTaskParam;
677
- let r2 = t(i2, n2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
678
- if (r2 = s(r2, o2, i2, n2.isTest), !r2)
679
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
680
- const p2 = n2.code, d2 = ee(n2), m2 = { beanName: n2.beanName, additionalParamMap: d2, tableName: n2.tableName, functionCode: p2 + ".xxx" };
655
+ const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
656
+ let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
657
+ if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
658
+ const p2 = t2.code, d2 = ee(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
681
659
  return c.post(r2, m2);
682
660
  }
683
- function ie(e2, s2) {
684
- const n2 = e2.pageContext, o2 = e2.configureObj, i2 = n2.backendUrl, a2 = t(i2, n2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = Y(e2);
685
- s2.nodeName && (r2.returnToNodeName = s2.nodeName), s2.nodeId && (r2.returnToNodeId = s2.nodeId), ne(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
686
- w(n2, o2);
661
+ function ie(e2, t2) {
662
+ const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = Y(e2);
663
+ t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ne(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
664
+ w(s2, o2);
687
665
  });
688
666
  }
689
667
  function ae(e2) {
690
- const n2 = e2.pageContext, o2 = n2.systemCode, i2 = n2.backendUrl;
691
- let a2 = t(i2, n2.isTest) + "/dsc/workflow-commons/get-remove-signers";
668
+ const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
669
+ let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
692
670
  const r2 = Y(e2);
693
- if (a2 = s(a2, o2, i2, n2.isTest), a2)
694
- return c.post(a2, r2);
671
+ if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
695
672
  l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
696
673
  }
697
- function re(e2, n2) {
698
- if (n2) {
699
- const o2 = e2.pageContext, i2 = e2.configureObj, a2 = o2.systemCode, r2 = o2.backendUrl;
700
- let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/remove-signers";
701
- if (p2 = s(p2, a2, r2, o2.isTest), !p2)
702
- return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
703
- const d2 = n2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = Y(e2);
674
+ function re(e2, t2) {
675
+ if (t2) {
676
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
677
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
678
+ if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
679
+ const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = Y(e2);
704
680
  m2.ids = d2;
705
681
  const f2 = c.post(p2, m2);
706
682
  f2 && f2.then((e3) => {
707
- W(o2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), w(o2, i2);
683
+ W(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), w(s2, i2);
708
684
  });
709
685
  }
710
686
  }
711
687
  function ce(e2, t2, s2) {
712
688
  let n2 = false;
713
689
  return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
714
- if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave))
715
- return true;
716
- if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active))
717
- return true;
690
+ if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
691
+ if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
718
692
  return false;
719
693
  }(t2) : "submitProcess" === e2 ? n2 = function(e3) {
720
- if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave))
721
- return true;
694
+ if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
722
695
  return false;
723
696
  }(t2) : "submitTask" === e2 ? n2 = function(e3) {
724
- if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode)
725
- return true;
697
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
726
698
  return false;
727
699
  }(t2) : "drawTask" === e2 ? n2 = function(e3) {
728
- if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw)
729
- return true;
700
+ if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
730
701
  return false;
731
702
  }(t2) : "abandonReceive" === e2 ? n2 = function(e3) {
732
- if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon)
733
- return true;
703
+ if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
734
704
  return false;
735
705
  }(t2) : "approve" === e2 || "refuse" === e2 ? n2 = function(e3) {
736
- if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode))
737
- return true;
706
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
738
707
  return false;
739
708
  }(t2) : "readed" === e2 ? n2 = function(e3) {
740
- if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode)
741
- return true;
709
+ if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
742
710
  return false;
743
711
  }(t2) : "assign" === e2 ? n2 = function(e3) {
744
- if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active))
745
- return true;
712
+ if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
746
713
  return false;
747
714
  }(t2) : "copyTask" === e2 ? n2 = function(e3) {
748
- if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy)
749
- return true;
715
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy) return true;
750
716
  return false;
751
717
  }(t2) : "addSigner" === e2 ? n2 = function(e3) {
752
- if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter)
753
- return true;
718
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
754
719
  return false;
755
720
  }(t2) : "removeSigner" === e2 ? n2 = function(e3) {
756
- if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter)
757
- return true;
721
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
758
722
  return false;
759
723
  }(t2) : "retrieveTask" === e2 ? n2 = function(e3) {
760
724
  if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
761
- if ("COMPLETED" !== e4.active)
762
- return false;
763
- if ("TYPE_READ" === e4.processingMode)
764
- return false;
765
- if (!e4.showButtonGetBack)
766
- return false;
767
- return true;
768
- }(e3))
725
+ if ("COMPLETED" !== e4.active) return false;
726
+ if ("TYPE_READ" === e4.processingMode) return false;
727
+ if (!e4.showButtonGetBack) return false;
769
728
  return true;
729
+ }(e3)) return true;
770
730
  return false;
771
731
  }(t2) : "agreement" === e2 || "oppose" === e2 ? n2 = function(e3) {
772
- if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode)
773
- return true;
732
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
774
733
  return false;
775
734
  }(t2) : "kiken" === e2 ? n2 = function(e3) {
776
- if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken)
777
- return true;
735
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
778
736
  return false;
779
737
  }(t2) : function(e3, t3) {
780
738
  return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
@@ -784,8 +742,7 @@ function ce(e2, t2, s2) {
784
742
  return s3;
785
743
  }(t3);
786
744
  }(t2, s2) && (n2 = "returnToPreviousTask" !== e2 || function(e3) {
787
- if (e3.rebuttable)
788
- return true;
745
+ if (e3.rebuttable) return true;
789
746
  return false;
790
747
  }(t2))), n2;
791
748
  }
@@ -794,99 +751,94 @@ function ue(e2, t2) {
794
751
  e2.isRefresh = true;
795
752
  });
796
753
  }
797
- function le(e2, s2, n2) {
754
+ function le(e2, s2, o2) {
798
755
  const i2 = e2.pageType;
799
756
  if (i2 && "form" === i2) {
800
757
  e2.canClick = false;
801
- return o(e2) ? function(e3, s3, n3) {
802
- return new Promise((o2, i3) => {
758
+ return t(e2) ? function(e3, t2, s3) {
759
+ return new Promise((o3, i3) => {
803
760
  const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ee(e3);
804
- let d2 = s3 || null, f2 = s3 ? [s3] : null;
805
- void 0 === n3 || n3 ? (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);
761
+ let d2 = t2 || null, f2 = t2 ? [t2] : null;
762
+ 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);
806
763
  const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap };
807
764
  if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
808
- const t2 = {};
765
+ const t3 = {};
809
766
  e3.tableUuids.forEach((e4) => {
810
767
  const s4 = r(u2, l2, e4);
811
- t2[s4] = s4;
812
- }), b2.listCodesMap = t2;
768
+ t3[s4] = s4;
769
+ }), b2.listCodesMap = t3;
813
770
  }
814
771
  f2 && (b2.ids = pe(f2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (b2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
815
- const T2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets";
816
- c.post(T2, b2).then((t2) => {
817
- e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, K(t2, true, e3), e3.workflowRules = U(e3);
772
+ const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets";
773
+ c.post(T2, b2).then((t3) => {
774
+ e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, K(t3, true, e3), e3.workflowRules = A(e3);
818
775
  const s4 = e3.pageType;
819
776
  if (s4 && "form" === s4) {
820
777
  !function(e4) {
821
778
  (function(e5) {
822
- const t4 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
823
- if (void 0 !== s5)
824
- for (let e6 = 0; e6 < s5.length; e6++) {
825
- const n4 = s5[e6].name;
826
- if (n4)
827
- if (0 === n4.indexOf("$") && n4.indexOf(".") > 0) {
828
- const o3 = s5[e6], i4 = JSON.parse(JSON.stringify(o3)), a3 = n4.substring(1, n4.indexOf(".")), r2 = n4.substring(n4.indexOf(".") + 1);
829
- if (i4.name = r2, i4 && "all_fields" === i4.name)
830
- 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 }]);
831
- else {
832
- let e7 = t4.get(a3);
833
- e7 || (e7 = []), e7.push(i4), t4.set(a3, e7);
834
- }
835
- } else
836
- t4.set(n4, s5[e6]);
837
- }
838
- e5.fieldPermissionMap = t4;
779
+ const t5 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
780
+ if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
781
+ const n2 = s5[e6].name;
782
+ if (n2) if (0 === n2.indexOf("$") && n2.indexOf(".") > 0) {
783
+ const o4 = s5[e6], i4 = JSON.parse(JSON.stringify(o4)), a3 = n2.substring(1, n2.indexOf(".")), r2 = n2.substring(n2.indexOf(".") + 1);
784
+ if (i4.name = r2, i4 && "all_fields" === i4.name) false === i4.canEdit ? i4.rowIndexes ? t5.set(a3, [{ name: "all_fields", canEdit: false, rowIndexes: i4.rowIndexes }]) : t5.set(a3, [{ name: "all_fields", canEdit: false }]) : i4.rowIndexes ? t5.set(a3, [{ name: "all_fields", canEdit: true, rowIndexes: i4.rowIndexes }]) : t5.set(a3, [{ name: "all_fields", canEdit: true }]);
785
+ else {
786
+ let e7 = t5.get(a3);
787
+ e7 || (e7 = []), e7.push(i4), t5.set(a3, e7);
788
+ }
789
+ } else t5.set(n2, s5[e6]);
790
+ }
791
+ e5.fieldPermissionMap = t5;
839
792
  })(e4), function(e5) {
840
- const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n4 = e5.actionPermissions;
841
- if (null != n4) {
842
- Object.keys(n4).forEach((e6) => {
843
- const o3 = n4[e6], i4 = t4.get(e6);
844
- if (i4 && i4.length > 0 && "all_fields" === i4[0].name && false === i4[0].canEdit)
845
- o3.canUpdate = false, o3.canAdd = false;
793
+ const t5 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n2 = e5.actionPermissions;
794
+ if (null != n2) {
795
+ Object.keys(n2).forEach((e6) => {
796
+ const o4 = n2[e6], i4 = t5.get(e6);
797
+ if (i4 && i4.length > 0 && "all_fields" === i4[0].name && false === i4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
846
798
  else {
847
- const s6 = o3.canUpdate, n5 = o3.updateRowIndexes;
848
- void 0 !== s6 && false === s6 && null != n5 && n5.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n5 }]);
799
+ const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
800
+ void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t5.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
849
801
  }
850
- s5.set(e6, o3);
802
+ s5.set(e6, o4);
851
803
  });
852
804
  }
853
805
  e5.actionPermissionMap = s5;
854
806
  }(e4);
855
807
  }(e3);
856
- const t3 = { runtime: { events: e3.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
857
- y(null, e3, t3, "load");
808
+ const t4 = { runtime: { events: e3.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
809
+ y(null, e3, t4, "load");
858
810
  }
859
- e3.canClick = true, o2(t2);
860
- }).catch((t2) => {
861
- e3.canClick = true, i3(t2);
811
+ e3.canClick = true, o3(t3);
812
+ }).catch((t3) => {
813
+ e3.canClick = true, i3(t3);
862
814
  });
863
815
  });
864
- }(e2, s2, n2) : function(e3, s3, n3) {
865
- return new Promise((o2, i3) => {
816
+ }(e2, s2, o2) : function(e3, t2, s3) {
817
+ return new Promise((o3, i3) => {
866
818
  const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ee(e3);
867
- let d2 = s3 || null, f2 = s3 ? [s3] : null;
868
- void 0 === n3 || n3 ? (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);
869
- const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = t(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap };
819
+ let d2 = t2 || null, f2 = t2 ? [t2] : null;
820
+ 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);
821
+ const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap };
870
822
  if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = pe(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) {
871
- const t2 = {};
823
+ const t3 = {};
872
824
  e3.tableUuids.forEach((e4) => {
873
825
  const s4 = r(u2, l2, e4);
874
- t2[s4] = s4;
875
- }), T2.listCodesMap = t2;
826
+ t3[s4] = s4;
827
+ }), T2.listCodesMap = t3;
876
828
  }
877
829
  e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
878
830
  const w2 = b2 + "/dsc/commons/gets";
879
- c.post(w2, T2).then((t2) => {
880
- t2 && (e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
881
- const s4 = e3.customRules, n4 = e3.rules, i4 = A(s4, n4);
831
+ c.post(w2, T2).then((t3) => {
832
+ t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
833
+ const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
882
834
  e3.rules = i4;
883
835
  const a3 = { runtime: { events: e3.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
884
- y(null, e3, a3, "load"), e3.canClick = true, o2(t2);
885
- }).catch((t2) => {
886
- e3.canClick = true, i3(t2);
836
+ y(null, e3, a3, "load"), e3.canClick = true, o3(t3);
837
+ }).catch((t3) => {
838
+ e3.canClick = true, i3(t3);
887
839
  });
888
840
  });
889
- }(e2, s2, n2);
841
+ }(e2, s2, o2);
890
842
  }
891
843
  return new Promise((e3, t2) => {
892
844
  e3(true);
@@ -898,10 +850,8 @@ function pe(e2) {
898
850
  function de(e2) {
899
851
  const t2 = e2.props.setValueList;
900
852
  if (t2) {
901
- if (a(t2) && t2.length > 0)
902
- return JSON.stringify(t2);
903
- if ("string" == typeof t2 && "[]" !== t2)
904
- return t2;
853
+ if (s(t2) && t2.length > 0) return JSON.stringify(t2);
854
+ if ("string" == typeof t2 && "[]" !== t2) return t2;
905
855
  }
906
856
  return null;
907
857
  }
@@ -926,5 +876,5 @@ export {
926
876
  $ as refreshFormOrListPage,
927
877
  ue as refreshPage,
928
878
  E as standardEvents,
929
- F as updateValuesWhenCloseDialog
879
+ H as updateValuesWhenCloseDialog
930
880
  };