super-page-runtime 2.3.30-tmp1 → 2.3.31-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 (33) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  3. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  4. package/dist/es/components/runtime/utils/events/standard-event.js +135 -135
  5. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +111 -107
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  9. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  10. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  11. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  12. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  13. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  14. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  15. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  16. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
  18. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +34 -34
  19. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +34 -35
  21. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
  22. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
  23. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +47 -48
  25. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +60 -54
  26. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  27. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  28. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  29. package/dist/es/components/runtime/views/super-page.vue2.js +67 -64
  30. package/dist/es/i18n/langs/cn.js +1 -1
  31. package/dist/es/i18n/langs/en.js +1 -1
  32. package/dist/es/style.css +76 -76
  33. package/package.json +2 -2
@@ -187,7 +187,7 @@ function h(e2, s2, r2) {
187
187
  }), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
188
188
  t3.includes(false) ? e6(false) : e6(true);
189
189
  }).catch((t3) => {
190
- console.error(t3), e6(false);
190
+ e6(false);
191
191
  }) : e6(true);
192
192
  });
193
193
  return null;
@@ -1,45 +1,45 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getAdditionalParamMap as t } from "./events/standard-event.js";
3
- import { PageDimensions as i } from "./interfaces/page-design-types.js";
4
- import { getFormPropName as n, getVariableValue as s, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
3
+ import { PageDimensions as n } from "./interfaces/page-design-types.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
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 f(t2) {
11
- return new Promise((i2, n2) => {
11
+ return new Promise((n2, i2) => {
12
12
  (function(t3) {
13
13
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
14
14
  })(t2).then((e2) => {
15
15
  e2 ? b().then((t3) => {
16
16
  t3 && (e2.systemParam = h(t3)), g(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
17
- t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, i2(e2)) : i2(null);
17
+ t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, n2(e2)) : n2(null);
18
18
  });
19
19
  }).catch(() => {
20
- i2(e2);
21
- }) : i2(null);
20
+ n2(e2);
21
+ }) : n2(null);
22
22
  });
23
23
  });
24
24
  }
25
25
  function m(e2, t2) {
26
- return new Promise((i2, n2) => {
26
+ return new Promise((n2, i2) => {
27
27
  e2 ? b().then((s2) => {
28
- s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? j(e2, t2, e2.systemVersion).then((t3) => {
29
- e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, i2(e2);
28
+ s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? x(e2, t2, e2.systemVersion).then((t3) => {
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
- n2(e3);
31
+ i2(e3);
32
32
  }) : g("", "").then((t3) => {
33
- t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, i2(e2)) : i2(null);
33
+ t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, n2(e2)) : n2(null);
34
34
  }).catch((e3) => {
35
- n2(e3);
35
+ i2(e3);
36
36
  });
37
- }) : i2(null);
37
+ }) : n2(null);
38
38
  });
39
39
  }
40
- function g(t2, i2) {
41
- let n2 = "";
42
- return t2 && i2 && (n2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + i2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + n2);
40
+ function g(t2, n2) {
41
+ let i2 = "";
42
+ return t2 && n2 && (i2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + n2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + i2);
43
43
  }
44
44
  function b() {
45
45
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
@@ -49,12 +49,12 @@ function y(e2) {
49
49
  if (null == e2) return null;
50
50
  const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: w(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
51
51
  if (e2.props && e2.props.notIdInitializationList) {
52
- let i2 = e2.props.notIdInitializationList;
53
- "string" == typeof i2 && (i2 = JSON.parse(i2)), i2.length > 0 && (t2.notIdInitializationList = i2);
52
+ let n2 = e2.props.notIdInitializationList;
53
+ "string" == typeof n2 && (n2 = JSON.parse(n2)), n2.length > 0 && (t2.notIdInitializationList = n2);
54
54
  }
55
55
  if (e2.variables) {
56
- const i2 = t2.entity.page;
57
- for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? i2[t3.name] = [] : t3.defaultValue ? i2[t3.name] = t3.defaultValue : i2[t3.name] = void 0);
56
+ const n2 = t2.entity.page;
57
+ for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? n2[t3.name] = [] : t3.defaultValue ? n2[t3.name] = t3.defaultValue : n2[t3.name] = void 0);
58
58
  }
59
59
  return function(e3) {
60
60
  if (c()) {
@@ -64,8 +64,8 @@ function y(e2) {
64
64
  } else e3.entity.page._isMobile = "false";
65
65
  }(t2), Object.assign(t2, e2), t2.isWorkflowEntity = void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, t2.dimensions = function() {
66
66
  const e3 = window.outerWidth;
67
- if (!e3) return i.PC;
68
- return e3 > 768 ? i.PC : e3 > 414 ? i.IPAD : i.PHONE;
67
+ if (!e3) return n.PC;
68
+ return e3 > 768 ? n.PC : e3 > 414 ? n.IPAD : n.PHONE;
69
69
  }(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
70
70
  }
71
71
  function h(e2) {
@@ -73,8 +73,8 @@ function h(e2) {
73
73
  const t2 = function(e3) {
74
74
  if (!e3) return e3;
75
75
  try {
76
- const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), i2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
77
- return window.CryptoJS.AES.decrypt(e3, t3, { iv: i2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
76
+ const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), n2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
77
+ return window.CryptoJS.AES.decrypt(e3, t3, { iv: n2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
78
78
  } catch (t3) {
79
79
  return e3;
80
80
  }
@@ -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) {
@@ -102,13 +101,13 @@ function P(e2) {
102
101
  }
103
102
  if (t2 && t2.includes("?")) {
104
103
  t2 = t2.substring(t2.lastIndexOf("?") + 1);
105
- const i2 = t2.split("&");
106
- for (const t3 of i2) {
107
- const i3 = t3.split("=");
108
- let n2 = i3[0];
109
- if (n2) {
110
- const t4 = i3.length > 1 ? i3[1] : "";
111
- n2.indexOf("ai__") >= 0 && (n2 = n2.substring(n2.indexOf("ai__") + 4)), e2[n2] = t4;
104
+ const n2 = t2.split("&");
105
+ for (const t3 of n2) {
106
+ const n3 = t3.split("=");
107
+ let i2 = n3[0];
108
+ if (i2) {
109
+ const t4 = n3.length > 1 ? n3[1] : "";
110
+ i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
112
111
  }
113
112
  }
114
113
  }
@@ -121,154 +120,159 @@ 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
  }
128
127
  }
129
128
  function C(e2, t2) {
130
129
  if (e2) {
131
- const i2 = a(e2);
132
- if (i2) {
133
- const e3 = JSON.parse(i2);
130
+ const n2 = a(e2);
131
+ if (n2) {
132
+ const e3 = JSON.parse(n2);
134
133
  Object.assign(t2, e3);
135
134
  }
136
135
  }
137
136
  }
138
137
  function k(e2, t2) {
139
- let i2, n2 = t2;
140
- t2 || (i2 = e2.props.base ? e2.props.base : {}, n2 = i2.prop);
138
+ let n2, i2 = t2;
139
+ t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
141
140
  let s2 = null;
142
- return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || n2 && n2.startsWith("${") ? n2.startsWith("${") ? (n2 = n2.substring(2, n2.length - 1), s2 = n2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
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
- function M(e2, t2, i2) {
145
- var _a;
146
- const n2 = k(t2, i2), r2 = e2.entity;
147
- if (null == r2.data.ID && null == r2.data.id) {
148
- let i3, a2, l2 = false;
149
- t2 && (i3 = t2.props.base ? t2.props.base : {}, a2 = t2.name, l2 = i3.multiple);
150
- const p2 = s(r2, n2);
151
- if (null == p2) {
152
- const t3 = i3 ? i3.defaultValue : null;
153
- if (t3) try {
154
- const s2 = A(e2, t3, a2, l2);
155
- if (null != s2 && "" !== s2) o(r2, n2, s2);
156
- else if (((_a = i3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
157
- const t4 = i3.moreDefaultValue;
158
- for (let i4 = 0; i4 < t4.length; i4++) {
159
- const s3 = A(e2, t4[i4], a2, l2);
160
- if (null != s3 && "" !== s3) {
161
- o(r2, n2, s3);
143
+ function A(e2, t2, n2) {
144
+ var _a, _b;
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);
150
+ if (null == l2) {
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 = T(e2, s2, r2, a2);
154
+ if (M(t3)) I(o2, i2, t3, l3);
155
+ else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
156
+ const t4 = n3.moreDefaultValue;
157
+ for (let n4 = 0; n4 < t4.length; n4++) {
158
+ const s3 = T(e2, t4[n4], r2, a2);
159
+ if (M(s3)) {
160
+ I(o2, i2, s3, l3);
162
161
  break;
163
162
  }
164
163
  }
165
164
  }
166
165
  } catch (e3) {
167
- console.error("设置默认值出错:", n2, e3);
168
166
  }
169
167
  }
170
168
  }
171
- return n2;
169
+ return i2;
170
+ }
171
+ function M(e2) {
172
+ return null != e2 && "" !== e2;
173
+ }
174
+ function I(e2, t2, n2, i2) {
175
+ !Array.isArray(n2) || i2 ? r(e2, t2, n2) : r(e2, t2, n2.join(","));
172
176
  }
173
- function A(e2, t2, i2, n2) {
177
+ function T(e2, t2, n2, i2) {
174
178
  let s2;
175
- if (t2 && (s2 = r(e2, t2), null != s2 && null != s2 && i2)) {
179
+ if (t2 && (s2 = o(e2, t2), null != s2 && null != s2 && n2)) {
176
180
  let e3 = false;
177
- "checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = n2), e3 && (s2 = (s2 + "").split(","));
181
+ "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (s2 = (s2 + "").split(","));
178
182
  }
179
183
  return s2;
180
184
  }
181
- function I(e2, t2) {
185
+ function j(e2, t2) {
182
186
  var _a, _b;
183
187
  if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
184
- const i2 = [];
185
- if (e2.autoPermissions) for (const n2 of e2.autoPermissions) i2.push(t2.code + "." + n2.simpleCode);
188
+ const n2 = [];
189
+ if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
186
190
  if (e2.functionCodes) {
187
- const n2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
191
+ const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
188
192
  for (let e3 = 0; e3 < s2.length; e3++) {
189
- const o2 = s2[e3], r2 = e3 < n2.length ? n2[e3] : "";
193
+ const o2 = s2[e3], r2 = e3 < i2.length ? i2[e3] : "";
190
194
  let a2 = "";
191
195
  if ("service" == r2) a2 = o2;
192
196
  else if ("standard" === r2) a2 = t2.code + "." + o2;
193
197
  else {
194
- a2 = "custom" === T(o2, t2).type ? o2 : t2.code + "." + o2;
198
+ a2 = "custom" === O(o2, t2).type ? o2 : t2.code + "." + o2;
195
199
  }
196
- i2.includes(a2) || i2.push(a2);
200
+ n2.includes(a2) || n2.push(a2);
197
201
  }
198
202
  }
199
- return i2.join(",");
203
+ return n2.join(",");
200
204
  }
201
- function T(e2, t2) {
202
- const i2 = t2.pagePermissions;
203
- if (i2 && i2.length > 0) {
204
- for (let t3 = 0; t3 < i2.length; t3++) if (i2[t3].simpleCode === e2) return i2[t3];
205
+ function O(e2, t2) {
206
+ const n2 = t2.pagePermissions;
207
+ if (n2 && n2.length > 0) {
208
+ for (let t3 = 0; t3 < n2.length; t3++) if (n2[t3].simpleCode === e2) return n2[t3];
205
209
  }
206
210
  return null;
207
211
  }
208
- function j(i2, n2, s2) {
209
- const o2 = i2.tableRuntimes, r2 = t(n2);
212
+ function x(n2, i2, s2) {
213
+ const o2 = n2.tableRuntimes, r2 = t(i2);
210
214
  let a2;
211
- const l2 = i2.code;
212
- 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: i2.pageType });
215
+ const l2 = n2.code;
216
+ 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 });
213
217
  }
214
- const O = ["button-detail", "print-label"];
215
- function x(e2, t2, i2) {
218
+ const R = ["button-detail", "print-label"];
219
+ function _(e2, t2, n2) {
216
220
  var _a, _b;
217
221
  const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
218
222
  let r2 = false;
219
- if (o2 && O.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
220
- const i3 = e2.fieldPermissionMap.get("all_fields");
221
- false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
223
+ if (o2 && R.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
224
+ const n3 = e2.fieldPermissionMap.get("all_fields");
225
+ false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
222
226
  }
223
227
  if (s2) {
224
- const a2 = n(s2);
228
+ const a2 = i(s2);
225
229
  if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
226
- d(e3), !i2 && e3 && e3.required && (e3.required = false);
230
+ d(e3), !n2 && e3 && e3.required && (e3.required = false);
227
231
  }), e2.rules[a2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
228
- const n2 = e2.fieldPermissionMap.get(a2);
229
- if (!i2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
232
+ const i2 = e2.fieldPermissionMap.get(a2);
233
+ if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
230
234
  let t3 = e2.workflowRules[a2];
231
235
  if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[a2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
232
- const i3 = t3[e3];
233
- if (i3 && i3.required) {
234
- i3.required = false;
236
+ const n3 = t3[e3];
237
+ if (n3 && n3.required) {
238
+ n3.required = false;
235
239
  break;
236
240
  }
237
241
  }
238
242
  else t3 && t3.required && (t3.required = false);
239
243
  }
240
- t2.runtime.props || (t2.runtime.props = {}), n2 ? (!i2 && n2.canEdit && (n2.canEdit = false), false === n2.canEdit ? t2.runtime.props.state = "disabled" : n2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
244
+ t2.runtime.props || (t2.runtime.props = {}), i2 ? (!n2 && i2.canEdit && (i2.canEdit = false), false === i2.canEdit ? t2.runtime.props.state = "disabled" : i2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
241
245
  }
242
246
  ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
243
247
  }
244
248
  }
245
- function R(e2, t2) {
249
+ function V(e2, t2) {
246
250
  if (e2.initInfo) {
247
- ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
248
- const n2 = e2.initInfo[i2];
249
- if (n2) if ("dynamicControlFormEdit" === i2) {
250
- let i3 = n2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
251
- if (i3 && i3.length > 0 && (i3 = i3.filter((e3) => "_all_fields" === e3.name), i3 && i3.length > 0)) {
252
- const e3 = u(i3[0]);
253
- e3.name = t2, i3 = [e3];
251
+ ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
252
+ const i2 = e2.initInfo[n2];
253
+ if (i2) if ("dynamicControlFormEdit" === n2) {
254
+ let n3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
255
+ if (n3 && n3.length > 0 && (n3 = n3.filter((e3) => "_all_fields" === e3.name), n3 && n3.length > 0)) {
256
+ const e3 = u(n3[0]);
257
+ e3.name = t2, n3 = [e3];
254
258
  }
255
- l.dynamicControlFormEdit(e2, i3, false);
256
- } else "disableElement" === i2 ? n2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === i2 ? n2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === i2 ? n2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === i2 && n2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
259
+ l.dynamicControlFormEdit(e2, n3, false);
260
+ } else "disableElement" === n2 ? i2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === n2 ? i2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === n2 ? i2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === n2 && i2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
257
261
  });
258
262
  }
259
263
  }
260
264
  export {
261
- R as controlObjectRenderState,
265
+ V as controlObjectRenderState,
262
266
  y as convertToPageContext,
263
- A as getDefaultValue,
264
- M as getFormModelFields,
267
+ T as getDefaultValue,
268
+ A as getFormModelFields,
265
269
  k as getModelFields,
266
- I as getPermissionCodes,
270
+ j as getPermissionCodes,
267
271
  P as packageAdditionalMapWithLocationSearch,
268
272
  E as packageAdditionalMapWithPageRequest,
269
273
  v as packageAdditionalMapWithRoute,
270
- x as packageFormRules,
274
+ _ as packageFormRules,
271
275
  f as queryPageDesignByCode,
272
276
  m as queryPageDesignWhenPreview,
273
- j as queryPageSuperGrids
277
+ x as queryPageSuperGrids
274
278
  };
@@ -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);
@@ -1,13 +1,9 @@
1
- import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as n, Fragment as d, renderList as p } from "vue";
2
- const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
3
- const t2 = e2;
4
- return l(t2.headerInfo, () => {
5
- t2.headerInfo;
6
- }), (l2, t3) => {
7
- const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
8
- return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[2] || (t3[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
9
- };
10
- } });
1
+ import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
2
+ const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
3
+ }), (l2, t2) => {
4
+ const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
5
+ return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
6
+ }) });
11
7
  export {
12
8
  t as default
13
9
  };
@@ -3,13 +3,12 @@ import { Search as p } from "@element-plus/icons-vue";
3
3
  import g from "./common-chart-header-group.vue.js";
4
4
  import m from "./common-chart-header-breadcrumb.vue.js";
5
5
  import b from "./common-homepage-search.vue.js";
6
- import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as O } from "../../../../utils/page-helper-util.js";
7
- const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
6
+ import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as w } from "../../../../utils/page-helper-util.js";
7
+ const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
8
8
  const N = e2, D = o(null), A = o(), R = _;
9
9
  function S(e3) {
10
10
  const o2 = N.headerInfo.drillOptions.length;
11
- if (e3 >= o2) N.headerInfo.drillOptions;
12
- else {
11
+ if (!(e3 >= o2)) {
13
12
  for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
14
13
  q(e3);
15
14
  }
@@ -35,7 +34,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
35
34
  for (let e4 of o2.variables) {
36
35
  if (!e4.fieldName || !e4.variable) continue;
37
36
  const o3 = y(r2, e4.fieldName, void 0);
38
- O(N.pageContext.entity, e4.variable, o3);
37
+ w(N.pageContext.entity, e4.variable, o3);
39
38
  }
40
39
  }
41
40
  N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
@@ -47,12 +46,11 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
47
46
  if (r2 + 1 >= N.headerInfo.options.length) {
48
47
  return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
49
48
  }
50
- N.headerInfo.options;
51
49
  const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
52
50
  N.headerInfo.drillOptions.push(a2), q(r2 + 1);
53
51
  }, closeDrill: S }), (o2, v2) => {
54
- const y2 = r("el-icon"), O2 = r("el-tooltip");
55
- return t(), n("div", w, [a("div", x, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(O2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
52
+ const y2 = r("el-icon"), w2 = r("el-tooltip");
53
+ return t(), n("div", x, [a("div", O, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(w2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
56
54
  };
57
55
  } });
58
56
  export {