super-page-runtime 2.3.43 → 2.3.44-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
  2. package/dist/es/components/runtime/utils/events/event-util.js +122 -122
  3. package/dist/es/components/runtime/utils/events/print-label.js +33 -34
  4. package/dist/es/components/runtime/utils/events/standard-event.js +201 -200
  5. package/dist/es/components/runtime/utils/events/validator-util.js +81 -84
  6. package/dist/es/components/runtime/utils/page-init-util.js +41 -43
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  18. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -94
  24. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +75 -74
  25. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  26. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  27. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  32. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  35. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +167 -165
  39. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  44. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
  45. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +65 -51
  48. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +15 -16
  49. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +47 -48
  51. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
  52. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
  53. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
  56. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  59. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  61. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +9 -11
  62. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  66. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  68. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  69. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  70. package/dist/es/components/runtime/views/super-page.vue2.js +132 -141
  71. package/dist/es/style.css +76 -76
  72. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  import e from "async-validator";
2
2
  import { ElMessage as t } from "element-plus";
3
3
  import { getComponentRefByCode as s, getComponentRef as n, getAllComponentRefs as r } from "../global-refs.js";
4
- import { getI18n as o } from "agilebuilder-ui/src/utils/util";
5
- import { getAdditionalParamMap as i } from "./standard-event.js";
4
+ import { getI18n as i } from "agilebuilder-ui/src/utils/util";
5
+ import { getAdditionalParamMap as o } from "./standard-event.js";
6
6
  import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
7
7
  import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
8
- import { isWorkflowPage as u, getListCode as c } from "../common-util.js";
9
- import { scrollIntoComponentWithCode as f, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
8
+ import { isWorkflowPage as u, getListCode as f } from "../common-util.js";
9
+ import { scrollIntoComponentWithCode as c, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
10
10
  const m = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"];
11
11
  function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
12
12
  if ("function" == typeof structuredClone) try {
@@ -45,32 +45,32 @@ function g(e2, t2, s2) {
45
45
  const n2 = {};
46
46
  t2 || (t2 = {});
47
47
  let r2 = 0;
48
- const o2 = e2.split(".");
49
- return o2.forEach((e3) => {
50
- let i2;
51
- if (r2 === o2.length - 1) i2 = function(e4, t3, s3) {
48
+ const i2 = e2.split(".");
49
+ return i2.forEach((e3) => {
50
+ let o2;
51
+ if (r2 === i2.length - 1) o2 = function(e4, t3, s3) {
52
52
  let n3;
53
53
  for (let r3 = 0; r3 < t3.length; r3++) if (n3 = 0 === r3 ? e4[t3[r3]] : n3.fields[t3[r3]], r3 !== t3.length - 1) {
54
54
  if (t3[r3 + 1] === s3) break;
55
55
  }
56
56
  return n3;
57
- }(n2, o2, e3), i2.fields[e3] = s2;
57
+ }(n2, i2, e3), o2.fields[e3] = s2;
58
58
  else {
59
59
  let s3;
60
- 0 === r2 ? i2 = t2 : (s3 = function(e4, t3, s4) {
60
+ 0 === r2 ? o2 = t2 : (s3 = function(e4, t3, s4) {
61
61
  let n3;
62
62
  for (let r3 = 0; r3 < t3.length; r3++) {
63
- const o3 = t3[r3];
64
- if (n3 = 0 === r3 ? e4[o3] : n3.fields[t3[r3]], o3 === s4) break;
63
+ const i3 = t3[r3];
64
+ if (n3 = 0 === r3 ? e4[i3] : n3.fields[t3[r3]], i3 === s4) break;
65
65
  }
66
66
  return n3;
67
- }(n2, o2, o2[r2 - 1]), i2 = s3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = i2[e3] : s3.fields[e3] = i2[e3];
67
+ }(n2, i2, i2[r2 - 1]), o2 = s3.fields), o2[e3] || (o2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = o2[e3] : s3.fields[e3] = o2[e3];
68
68
  }
69
69
  r2++;
70
70
  }), n2;
71
71
  }
72
- function h(e2, t2, s2, n2, r2, o2) {
73
- return y(e2, t2, s2, n2, true, r2, o2);
72
+ function h(e2, t2, s2, n2, r2, i2) {
73
+ return y(e2, t2, s2, n2, true, r2, i2);
74
74
  }
75
75
  function b(e2) {
76
76
  if (e2) return Object.keys(e2).forEach((t2) => {
@@ -80,11 +80,11 @@ function b(e2) {
80
80
  }
81
81
  }), e2;
82
82
  }
83
- function y(n2, r2, i2, l2, a2, u2, c2) {
83
+ function y(n2, r2, o2, l2, a2, u2, f2) {
84
84
  var _a;
85
85
  let d2 = b(r2);
86
- if (r2 && null !== r2 || !i2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
87
- const m2 = ((_a = c2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
86
+ if (r2 && null !== r2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
87
+ const m2 = ((_a = f2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
88
88
  let p2;
89
89
  return new e(d2).validate(n2, { first: !m2 }, (e2, g2) => {
90
90
  if (m2) {
@@ -94,28 +94,27 @@ function y(n2, r2, i2, l2, a2, u2, c2) {
94
94
  const s2 = JSON.parse(JSON.stringify(n2));
95
95
  t2.forEach((t3) => {
96
96
  e3.test(t3) && void 0 !== n2[t3.toLowerCase()] && (s2[t3.toUpperCase()] = n2[t3.toLowerCase()], delete s2[t3.toLowerCase()]);
97
- }), p2 = y(s2, r2, i2, l2, false, u2, c2);
97
+ }), p2 = y(s2, r2, o2, l2, false, u2, f2);
98
98
  }
99
99
  }
100
- true !== p2 && t({ showClose: true, message: o().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
100
+ true !== p2 && t({ showClose: true, message: i().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
101
101
  } else {
102
- let o2;
102
+ let i2;
103
103
  if (e2) {
104
- p2 = e2[0].message, o2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
105
- const n3 = s(c2, o2);
104
+ p2 = e2[0].message, i2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
105
+ const n3 = s(f2, i2);
106
106
  if (n3 && n3.addRequiredClass) {
107
107
  n3.addRequiredClass();
108
108
  try {
109
- f(c2, o2);
109
+ c(f2, i2);
110
110
  } catch (e3) {
111
- console.error("滚动失败", e3);
112
111
  }
113
112
  }
114
113
  } else p2 = true;
115
- if (o2 && true === a2) {
116
- if (/[A-Z]+/.test(o2) && void 0 !== n2[o2.toLowerCase()]) {
114
+ if (i2 && true === a2) {
115
+ if (/[A-Z]+/.test(i2) && void 0 !== n2[i2.toLowerCase()]) {
117
116
  const e3 = JSON.parse(JSON.stringify(n2));
118
- e3[o2.toUpperCase()] = n2[o2.toLowerCase()], delete e3[o2.toLowerCase()], p2 = y(e3, r2, i2, l2, false, u2, c2);
117
+ e3[i2.toUpperCase()] = n2[i2.toLowerCase()], delete e3[i2.toLowerCase()], p2 = y(e3, r2, o2, l2, false, u2, f2);
119
118
  }
120
119
  }
121
120
  }
@@ -127,16 +126,16 @@ function w(e2, n2, r2, l2) {
127
126
  e3(true);
128
127
  });
129
128
  }
130
- const c2 = e2.entity.data, f2 = { ...e2.entity.page, ...c2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
129
+ const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
131
130
  return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, n3, r3, l3) {
132
131
  if (e3) {
133
132
  return u(l3) ? function(e4, n4, r4) {
134
133
  return new Promise((l4, u2) => {
135
134
  var _a;
136
- const c3 = i(n4), f3 = n4.entity.context, d3 = n4.entity.task, m3 = true, g2 = n4.subTablePageInfo, h2 = ((_a = n4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
135
+ const f3 = o(n4), c3 = n4.entity.context, d3 = n4.entity.task, m3 = true, g2 = n4.subTablePageInfo, h2 = ((_a = n4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
137
136
  x(e4, n4, r4).then((r5) => {
138
137
  if (r5) {
139
- let i2 = r5;
138
+ let o2 = r5;
140
139
  const u3 = n4.workflowRules;
141
140
  let b2 = null, y2 = null;
142
141
  if (u3) {
@@ -144,19 +143,19 @@ function w(e2, n2, r2, l2) {
144
143
  var _a2, _b, _c, _d;
145
144
  if (!e5.actionPermissions) return true;
146
145
  const r7 = Object.keys(e5.actionPermissions);
147
- for (let i3 = 0; i3 < r7.length; i3++) {
148
- const l5 = r7[i3], u4 = e5.actionPermissions[l5];
146
+ for (let o3 = 0; o3 < r7.length; o3++) {
147
+ const l5 = r7[o3], u4 = e5.actionPermissions[l5];
149
148
  if (u4 && u4.notEmpty) {
150
149
  if ((_a2 = e5.hiddenNotValidatorCodes) == null ? void 0 : _a2.has(l5)) continue;
151
150
  let r8 = false;
152
151
  if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (r8 = true) : r8 = true, r8) {
153
152
  const r9 = s(e5, l5);
154
153
  if (!r9) return true;
155
- const i4 = r9.getConfigure();
154
+ const o4 = r9.getConfigure();
156
155
  if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
157
156
  if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
158
157
  }
159
- return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
158
+ return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: o4.title ? o4.title : l5 }), type: "warning" }), false;
160
159
  }
161
160
  }
162
161
  }
@@ -170,10 +169,10 @@ function w(e2, n2, r2, l2) {
170
169
  });
171
170
  s2.subRules && (Object.keys(s2.subRules).length > 0 ? s2.totalSubRules || (s2.totalSubRules = {}) : delete s2.subRules);
172
171
  return s2;
173
- }(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, b2, m3, c3, d3, f3, g2, r6, { returnAllErrors: h2 }), i2 = y2 && Array.isArray(y2) ? 0 === y2.length || o().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
174
- } else i2 = true;
175
- true !== i2 ? (console.error("流程表单验证失败", b2, e4), t({ showClose: true, message: i2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (C(n4, y2), k(n4, P(n4, y2))) : y2.listCode ? (R(n4, y2), E(n4, y2)) : (R(n4, y2), v(n4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
176
- } else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
172
+ }(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, b2, m3, f3, d3, c3, g2, r6, { returnAllErrors: h2 }), o2 = y2 && Array.isArray(y2) ? 1 === y2.length && y2[0].message ? y2[0].message : 0 === y2.length || i().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
173
+ } else o2 = true;
174
+ true !== o2 ? (t({ showClose: true, message: o2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (C(n4, y2), k(n4, P(n4, y2))) : y2.listCode ? (R(n4, y2), E(n4, y2)) : (R(n4, y2), v(n4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
175
+ } else u2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
177
176
  }).catch((e5) => {
178
177
  u2(e5);
179
178
  });
@@ -194,7 +193,7 @@ function w(e2, n2, r2, l2) {
194
193
  return new Promise((e4, t2) => {
195
194
  e4(true);
196
195
  });
197
- }(l2, f2, d2, e2);
196
+ }(l2, c2, d2, e2);
198
197
  }
199
198
  function R(e2, t2) {
200
199
  if (t2.listCode) {
@@ -210,26 +209,24 @@ function C(e2, t2) {
210
209
  }
211
210
  function E(e2, t2) {
212
211
  try {
213
- f(e2, t2.listCode);
212
+ c(e2, t2.listCode);
214
213
  const n2 = s(e2, t2.listCode);
215
214
  (n2 == null ? void 0 : n2.scrollToCell) && n2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
216
215
  } catch (e3) {
217
- console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e3);
218
216
  }
219
217
  }
220
218
  function v(e2, t2) {
221
219
  try {
222
- f(e2, t2);
220
+ c(e2, t2);
223
221
  } catch (e3) {
224
- console.error("滚动失败", e3);
225
222
  }
226
223
  }
227
224
  function P(e2, t2) {
228
225
  let n2 = null, r2 = 1 / 0;
229
226
  return t2.forEach((t3) => {
230
- const o2 = t3.listCode || t3.field;
231
- if (!o2) return;
232
- const i2 = s(e2, o2), l2 = (i2 == null ? void 0 : i2.$el) || i2;
227
+ const i2 = t3.listCode || t3.field;
228
+ if (!i2) return;
229
+ const o2 = s(e2, i2), l2 = (o2 == null ? void 0 : o2.$el) || o2;
233
230
  if (l2 == null ? void 0 : l2.getBoundingClientRect) {
234
231
  const e3 = l2.getBoundingClientRect();
235
232
  e3.top < r2 && (r2 = e3.top, n2 = t3);
@@ -241,8 +238,8 @@ function k(e2, t2) {
241
238
  }
242
239
  function O(e2) {
243
240
  return new Promise((t2, s2) => {
244
- const r2 = [], o2 = e2.customValidatorUuids;
245
- o2 && o2.forEach((t3) => {
241
+ const r2 = [], i2 = e2.customValidatorUuids;
242
+ i2 && i2.forEach((t3) => {
246
243
  const s3 = n(e2, t3);
247
244
  s3 && s3.validator && r2.push(s3.validator());
248
245
  }), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
@@ -253,13 +250,13 @@ function O(e2) {
253
250
  function x(e2, t2, s2) {
254
251
  return new Promise((n2, r2) => {
255
252
  var _a;
256
- const i2 = JSON.parse(JSON.stringify(e2)), a2 = p(s2), u2 = t2.hiddenNotValidatorCodes;
253
+ const o2 = JSON.parse(JSON.stringify(e2)), a2 = p(s2), u2 = t2.hiddenNotValidatorCodes;
257
254
  if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
258
255
  delete a2[e3];
259
256
  }), a2 && 0 !== Object.keys(a2).length) {
260
- const e3 = h(i2, a2, null, null, true, t2);
257
+ const e3 = h(o2, a2, null, null, true, t2);
261
258
  if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (C(t2, e3), k(t2, P(t2, e3)), n2(false)), true === e3) {
262
- if (true === M(t2)) {
259
+ if (true === T(t2)) {
263
260
  const e4 = q(t2);
264
261
  e4 && l(e4) ? e4.then((e5) => {
265
262
  e5 ? O(t2).then((e6) => {
@@ -268,10 +265,10 @@ function x(e2, t2, s2) {
268
265
  }) : O(t2).then((e5) => {
269
266
  n2(e5);
270
267
  });
271
- } else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
272
- } else r2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
268
+ } else r2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
269
+ } else r2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
273
270
  } else {
274
- if (true === M(t2)) {
271
+ if (true === T(t2)) {
275
272
  const e3 = q(t2);
276
273
  e3 && l(e3) ? e3.then((e4) => {
277
274
  e4 ? O(t2).then((e5) => {
@@ -280,33 +277,33 @@ function x(e2, t2, s2) {
280
277
  }) : O(t2).then((e4) => {
281
278
  n2(e4);
282
279
  });
283
- } else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
280
+ } else r2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
284
281
  }
285
282
  });
286
283
  }
287
- function T(e2, t2, s2) {
284
+ function M(e2, t2, s2) {
288
285
  if (!t2) return s2;
289
286
  s2 || (s2 = {});
290
- const n2 = u(e2), r2 = Object.keys(t2), o2 = t2;
287
+ const n2 = u(e2), r2 = Object.keys(t2), i2 = t2;
291
288
  return r2.forEach((e3) => {
292
289
  if ("__subRules" === e3) {
293
- const e4 = o2.__subRules;
290
+ const e4 = i2.__subRules;
294
291
  Object.keys(e4).forEach((t3) => {
295
292
  s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
296
293
  });
297
- } else _(o2[e3]), n2 ? (s2.rules[e3] = o2[e3], s2[e3] && (s2[e3] = o2[e3])) : s2[e3] = o2[e3];
294
+ } else _(i2[e3]), n2 ? (s2.rules[e3] = i2[e3], s2[e3] && (s2[e3] = i2[e3])) : s2[e3] = i2[e3];
298
295
  }), b(s2);
299
296
  }
300
- function M(e2) {
297
+ function T(e2) {
301
298
  var _a;
302
299
  if (!e2) return true;
303
300
  if (u(e2)) return true;
304
301
  const s2 = e2.tableUuids;
305
302
  if (!s2) return true;
306
303
  for (let r2 = 0; r2 < s2.length; r2++) {
307
- const i2 = s2[r2], l2 = e2.hiddenNotValidatorCodes;
308
- if (l2 && l2.size > 0 && l2.has(i2)) continue;
309
- const a2 = n(e2, i2);
304
+ const o2 = s2[r2], l2 = e2.hiddenNotValidatorCodes;
305
+ if (l2 && l2.size > 0 && l2.has(o2)) continue;
306
+ const a2 = n(e2, o2);
310
307
  if (a2) {
311
308
  if (a2.getConfigure()) {
312
309
  const s3 = a2.getConfigure();
@@ -314,16 +311,16 @@ function M(e2) {
314
311
  const n2 = a2.getTableData();
315
312
  if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
316
313
  try {
317
- d(e2, i2);
314
+ d(e2, o2);
318
315
  } catch (e3) {
319
316
  }
320
- return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: s3.title ? s3.title : s3.code }), type: "warning" }), false;
317
+ return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: s3.title ? s3.title : s3.code }), type: "warning" }), false;
321
318
  }
322
319
  }
323
320
  }
324
321
  if (false === a2.validatorSunTableListData()) {
325
322
  try {
326
- d(e2, i2);
323
+ d(e2, o2);
327
324
  } catch (e3) {
328
325
  }
329
326
  return false;
@@ -336,26 +333,26 @@ function j(e2) {
336
333
  if (!e2 || 0 === Object.keys(e2).length) return;
337
334
  const t2 = {}, s2 = Object.keys(e2);
338
335
  for (let n2 = 0; n2 < s2.length; n2++) {
339
- const r2 = s2[n2], o2 = e2[r2];
340
- N(o2), r2.indexOf(".") > 0 ? g(r2, t2, o2) : o2 && o2.length > 0 && (t2[r2] = [...o2]);
336
+ const r2 = s2[n2], i2 = e2[r2];
337
+ N(i2), r2.indexOf(".") > 0 ? g(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
341
338
  }
342
339
  return t2;
343
340
  }
344
341
  function N(e2, t2) {
345
342
  e2.forEach((e3) => {
346
343
  e3.message;
347
- const t3 = e3.label, s2 = o().t(t3);
348
- e3.required && (e3.message = o().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = o().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = o().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
344
+ const t3 = e3.label, s2 = i().t(t3);
345
+ e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
349
346
  });
350
347
  }
351
348
  function A(e2) {
352
- const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = i(e2), r2 = e2.entity.context, o2 = e2.entity.task;
349
+ const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = o(e2), r2 = e2.entity.context, i2 = e2.entity.task;
353
350
  e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
354
351
  t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
355
352
  });
356
- let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, o2, r2);
353
+ let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, r2);
357
354
  const a2 = e2.customRules;
358
- return l2 = T(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
355
+ return l2 = M(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
359
356
  }
360
357
  function q(e2) {
361
358
  const t2 = [];
@@ -371,7 +368,7 @@ function q(e2) {
371
368
  }), r2.includes(false) && e3(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
372
369
  t3.includes(false) ? e3(false) : e3(true);
373
370
  }).catch((t3) => {
374
- console.error(t3), e3(false);
371
+ e3(false);
375
372
  }) : e3(true);
376
373
  }) : null;
377
374
  }
@@ -383,10 +380,10 @@ function S(e2, t2) {
383
380
  s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
384
381
  }), u(e2)) {
385
382
  let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
386
- t3 = T(e2, n2, t3), e2.workflowRules = t3;
383
+ t3 = M(e2, n2, t3), e2.workflowRules = t3;
387
384
  } else {
388
385
  let t3 = e2.rules ? e2.rules : {};
389
- t3 = T(e2, n2, t3), e2.rules = t3;
386
+ t3 = M(e2, n2, t3), e2.rules = t3;
390
387
  }
391
388
  const r2 = t2.filter((e3) => "_all_fields" === e3.name);
392
389
  r2 && r2.length > 0 && L(e2, r2[0]), t2.forEach((t3) => {
@@ -408,16 +405,16 @@ function L(e2, t2) {
408
405
  }
409
406
  function V(e2, t2, r2) {
410
407
  var _a;
411
- let o2, i2;
412
- if (r2 ? (o2 = s(e2, r2), i2 = o2 ? o2.getTableUuid() : null) : (i2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, o2 = i2 ? n(e2, i2) : null), !o2) return;
413
- const l2 = e2.code, a2 = e2.version, u2 = c(l2, a2, i2);
408
+ let i2, o2;
409
+ if (r2 ? (i2 = s(e2, r2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? n(e2, o2) : null), !i2) return;
410
+ const l2 = e2.code, a2 = e2.version, u2 = f(l2, a2, o2);
414
411
  if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[r2] || (e2.workflowRules.subRules[r2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
415
412
  const s2 = e2.workflowRules.subRules[r2];
416
413
  t2.forEach((e3) => {
417
414
  s2[e3.name] = e3;
418
415
  });
419
416
  }
420
- o2.dynamicControlTableEdit(e2, t2, u2);
417
+ i2.dynamicControlTableEdit(e2, t2, u2);
421
418
  }
422
419
  function D(e2, t2, s2) {
423
420
  var _a, _b, _c;
@@ -425,8 +422,8 @@ function D(e2, t2, s2) {
425
422
  const n2 = t2.getConfigure();
426
423
  if (void 0 !== s2.show && (s2.show ? t2.show() : t2.hide()), void 0 !== s2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = s2.required), void 0 !== s2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (s2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== s2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (s2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name)) {
427
424
  t2.changeOperationAddState(false);
428
- const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version, o2 = c(n3, r2, s3), i2 = [{ name: "_all_fields", disabled: true }];
429
- t2.dynamicControlTableEdit(e2, i2, o2);
425
+ const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version, i2 = f(n3, r2, s3), o2 = [{ name: "_all_fields", disabled: true }];
426
+ t2.dynamicControlTableEdit(e2, o2, i2);
430
427
  }
431
428
  }
432
429
  }
@@ -454,7 +451,7 @@ export {
454
451
  N as i18nValidatePropRulesMessage,
455
452
  j as i18nValidateRulesMessage,
456
453
  J as isNotNeedValidateRequired,
457
- T as packageCustomRules,
454
+ M as packageCustomRules,
458
455
  _ as packageCustomValidator,
459
456
  g as setObjectPropRule,
460
457
  S as updateFormItemEditState,
@@ -1,10 +1,10 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getAdditionalParamMap as t } from "./events/standard-event.js";
3
3
  import { PageDimensions as n } from "./interfaces/page-design-types.js";
4
- import { getFormPropName as i, getVariableValue as o, formatVariableValue as r, setVariableValue as s } from "./page-helper-util.js";
4
+ import { getFormPropName as i, getVariableValue as s, formatVariableValue as o, setVariableValue as r } from "./page-helper-util.js";
5
5
  import { getSessionCache as a } from "agilebuilder-ui/src/utils/auth";
6
6
  import { functions as l } from "./api/page-expose-util.js";
7
- import { isWorkflowPage as u, deepCopy as p } from "./common-util.js";
7
+ import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
8
8
  import { packageCustomValidator as d } from "./events/validator-util.js";
9
9
  import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
10
10
  function m(t2) {
@@ -24,8 +24,8 @@ function m(t2) {
24
24
  }
25
25
  function f(e2, t2) {
26
26
  return new Promise((n2, i2) => {
27
- e2 ? b().then((o2) => {
28
- o2 && (e2.systemParam = h(o2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? x(e2, t2, e2.systemVersion).then((t3) => {
27
+ e2 ? b().then((s2) => {
28
+ s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? x(e2, t2, e2.systemVersion).then((t3) => {
29
29
  e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, n2(e2);
30
30
  }).catch((e3) => {
31
31
  i2(e3);
@@ -91,7 +91,6 @@ function w(e2) {
91
91
  e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
92
92
  }), e2.props.judgeHeavyList) : null;
93
93
  } catch (e3) {
94
- console.error("getJudgeHeavyList error:", e3);
95
94
  }
96
95
  }
97
96
  function P(e2) {
@@ -121,7 +120,7 @@ function E(e2, t2) {
121
120
  }
122
121
  }
123
122
  function v(e2, t2) {
124
- if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
123
+ if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
125
124
  Object.assign(t2, e2.query);
126
125
  C(e2.query.paramStoreId, t2);
127
126
  }
@@ -138,33 +137,32 @@ function C(e2, t2) {
138
137
  function k(e2, t2) {
139
138
  let n2, i2 = t2;
140
139
  t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
141
- let o2 = null;
142
- return t2 && !t2.startsWith("${") ? o2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), o2 = i2.split("."), e2 && o2.length < 2 && (o2 = [e2.uuid])) : e2 && (o2 = ["page", e2.uuid]) : o2 = ["page", e2.uuid], o2 || e2 ? o2 : ["temp"];
140
+ let s2 = null;
141
+ return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), s2 = i2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
143
142
  }
144
143
  function A(e2, t2, n2) {
145
144
  var _a, _b;
146
- const i2 = k(t2, n2), r2 = e2.entity;
147
- if (null == r2.data.ID && null == r2.data.id) {
148
- let n3, s2, a2 = false;
149
- t2 && (n3 = t2.props.base ? t2.props.base : {}, s2 = t2.name, a2 = n3.multiple);
150
- const l2 = o(r2, i2);
145
+ const i2 = k(t2, n2), o2 = e2.entity;
146
+ if (null == o2.data.ID && null == o2.data.id) {
147
+ let n3, r2, a2 = false;
148
+ t2 && (n3 = t2.props.base ? t2.props.base : {}, r2 = t2.name, a2 = n3.multiple);
149
+ const l2 = s(o2, i2);
151
150
  if (null == l2) {
152
- const o2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
153
- if (o2) try {
154
- const t3 = I(e2, o2, s2, a2);
155
- if (M(t3)) j(r2, i2, t3, l3);
151
+ const s2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
152
+ if (s2) try {
153
+ const t3 = I(e2, s2, r2, a2);
154
+ if (M(t3)) j(o2, i2, t3, l3);
156
155
  else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
157
156
  const t4 = n3.moreDefaultValue;
158
157
  for (let n4 = 0; n4 < t4.length; n4++) {
159
- const o3 = I(e2, t4[n4], s2, a2);
160
- if (M(o3)) {
161
- j(r2, i2, o3, l3);
158
+ const s3 = I(e2, t4[n4], r2, a2);
159
+ if (M(s3)) {
160
+ j(o2, i2, s3, l3);
162
161
  break;
163
162
  }
164
163
  }
165
164
  }
166
165
  } catch (e3) {
167
- console.error("设置默认值出错:", i2, e3);
168
166
  }
169
167
  }
170
168
  }
@@ -174,29 +172,29 @@ function M(e2) {
174
172
  return null != e2 && "" !== e2;
175
173
  }
176
174
  function j(e2, t2, n2, i2) {
177
- !Array.isArray(n2) || i2 ? s(e2, t2, n2) : s(e2, t2, n2.join(","));
175
+ !Array.isArray(n2) || i2 ? r(e2, t2, n2) : r(e2, t2, n2.join(","));
178
176
  }
179
177
  function I(e2, t2, n2, i2) {
180
- let o2;
181
- if (t2 && (o2 = r(e2, t2), null != o2 && null != o2 && n2)) {
178
+ let s2;
179
+ if (t2 && (s2 = o(e2, t2), null != s2 && null != s2 && n2)) {
182
180
  let e3 = false;
183
- "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (o2 = (o2 + "").split(","));
181
+ "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (s2 = (s2 + "").split(","));
184
182
  }
185
- return o2;
183
+ return s2;
186
184
  }
187
185
  function T(e2, t2) {
188
186
  var _a, _b;
189
187
  if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
190
188
  const n2 = [];
191
189
  if (e2.functionCodes && e2.functionCodes.length > 0) {
192
- const i2 = e2.sourceTypes ? e2.sourceTypes : [], o2 = e2.functionCodes;
193
- for (let e3 = 0; e3 < o2.length; e3++) {
194
- const r2 = o2[e3], s2 = e3 < i2.length ? i2[e3] : "";
190
+ const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
191
+ for (let e3 = 0; e3 < s2.length; e3++) {
192
+ const o2 = s2[e3], r2 = e3 < i2.length ? i2[e3] : "";
195
193
  let a2 = "";
196
- if ("service" == s2) a2 = r2;
197
- else if ("standard" === s2) a2 = t2.code + "." + r2;
194
+ if ("service" == r2) a2 = o2;
195
+ else if ("standard" === r2) a2 = t2.code + "." + o2;
198
196
  else {
199
- a2 = "custom" === O(r2, t2).type ? r2 : t2.code + "." + r2;
197
+ a2 = "custom" === O(o2, t2).type ? o2 : t2.code + "." + o2;
200
198
  }
201
199
  n2.includes(a2) || n2.push(a2);
202
200
  }
@@ -210,26 +208,26 @@ function O(e2, t2) {
210
208
  }
211
209
  return null;
212
210
  }
213
- function x(n2, i2, o2) {
214
- const r2 = n2.tableRuntimes, s2 = t(i2);
211
+ function x(n2, i2, s2) {
212
+ const o2 = n2.tableRuntimes, r2 = t(i2);
215
213
  let a2;
216
214
  const l2 = n2.code;
217
- return s2 && Object.keys(s2) > 0 && (a2 = JSON.stringify(s2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: r2, additionalParamMapJson: a2, pageCode: l2, publishVersion: o2, pageType: n2.pageType });
215
+ return r2 && Object.keys(r2) > 0 && (a2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
218
216
  }
219
217
  const F = ["button-detail", "print-label"];
220
218
  function R(e2, t2, n2) {
221
219
  var _a, _b;
222
- const o2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = u(e2);
223
- let s2 = false;
224
- if (r2 && F.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
220
+ const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
221
+ let r2 = false;
222
+ if (o2 && F.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
225
223
  const n3 = e2.fieldPermissionMap.get("all_fields");
226
- false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", s2 = true);
224
+ false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
227
225
  }
228
- if (o2) {
229
- const a2 = i(o2);
226
+ if (s2) {
227
+ const a2 = i(s2);
230
228
  if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
231
229
  d(e3), !n2 && e3 && e3.required && (e3.required = false);
232
- }), e2.rules[a2] = t2.props.rules), r2 && !s2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
230
+ }), e2.rules[a2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
233
231
  const i2 = e2.fieldPermissionMap.get(a2);
234
232
  if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
235
233
  let t3 = e2.workflowRules[a2];
@@ -254,7 +252,7 @@ function _(e2, t2) {
254
252
  if (i2) if ("dynamicControlFormEdit" === n2) {
255
253
  let n3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
256
254
  if (n3 && n3.length > 0 && (n3 = n3.filter((e3) => "_all_fields" === e3.name), n3 && n3.length > 0)) {
257
- const e3 = p(n3[0]);
255
+ const e3 = u(n3[0]);
258
256
  e3.name = t2, n3 = [e3];
259
257
  }
260
258
  l.dynamicControlFormEdit(e2, n3, false);
@@ -18,7 +18,7 @@ function p(t2, e2) {
18
18
  }
19
19
  function l(t2, e2, o2, i2) {
20
20
  const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
21
- e2.btnList, r2 && u2 && u2.forEach((e3) => {
21
+ r2 && u2 && u2.forEach((e3) => {
22
22
  const r3 = {}, u3 = Object.assign({}, e3.props.base);
23
23
  if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
24
24
  const o3 = n(e3, t2);
@@ -19,9 +19,9 @@ const V = { class: "page-runtime-header-btn" }, T = e({ __name: "button-runtime"
19
19
  b.pageContext.exportNoticeInfo && b.pageContext.exportNoticeInfo.noticeInterval && clearInterval(b.pageContext.exportNoticeInfo.noticeInterval);
20
20
  }), T2({ click: function() {
21
21
  R.value && R.value.$el.click();
22
- } }), (t2, l2) => {
23
- const i2 = o("el-link"), n2 = o("el-button");
24
- return u(), a("span", V, [z.value.text ? (u(), c(i2, { key: 0, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, loading: N(), onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), c(n2, { key: 1, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: N(), onClick: l2[1] || (l2[1] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
22
+ } }), (e3, t2) => {
23
+ const l2 = o("el-link"), i2 = o("el-button");
24
+ return u(), a("span", V, [z.value.text ? (u(), c(l2, { key: 0, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, loading: N(), onClick: t2[0] || (t2[0] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), c(i2, { key: 1, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: N(), onClick: t2[1] || (t2[1] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
25
25
  };
26
26
  } });
27
27
  export {
@@ -11,9 +11,9 @@ const C = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure
11
11
  u(() => {
12
12
  y(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
13
13
  });
14
- }), (t2, n2) => {
15
- const o2 = r("el-button-group");
16
- return p(), a(o2, { ref_key: "componentRef", ref: _, class: i(["amb-button-group-main", s(b)]), style: g(d.value) }, { default: l(() => [(p(true), c(f, null, m(e2.configure.items, (t3, n3) => (p(), a(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
14
+ }), (e3, t2) => {
15
+ const n2 = r("el-button-group");
16
+ return p(), a(n2, { ref_key: "componentRef", ref: _, class: i(["amb-button-group-main", s(b)]), style: g(d.value) }, { default: l(() => [(p(true), c(f, null, m(e3.configure.items, (t3, n3) => (p(), a(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
17
17
  };
18
18
  } });
19
19
  export {