super-page-runtime 2.3.33 → 2.3.34

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 (43) hide show
  1. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  2. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
  3. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
  5. package/dist/es/components/runtime/utils/events/event-util.js +18 -18
  6. package/dist/es/components/runtime/utils/events/print-label.js +0 -1
  7. package/dist/es/components/runtime/utils/events/standard-event.js +708 -720
  8. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  9. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  10. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  11. package/dist/es/components/runtime/utils/page-init-util.js +124 -127
  12. package/dist/es/components/runtime/utils/page-store.js +21 -21
  13. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  14. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -15
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
  21. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
  22. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
  23. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +62 -62
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +117 -120
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -40
  28. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
  30. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -7
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -52
  32. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  33. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  34. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  35. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
  36. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +17 -17
  37. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -5
  38. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  39. package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
  40. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  41. package/dist/es/components/runtime/views/super-page.vue2.js +182 -182
  42. package/dist/es/style.css +76 -76
  43. package/package.json +2 -2
@@ -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 o, getVariableValue as n, formatVariableValue as r, setVariableValue as s } 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 r, setVariableValue as o } 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 u, deepCopy as p } 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, o2) => {
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, o2) => {
27
- e2 ? b().then((n2) => {
28
- n2 && (e2.systemParam = h(n2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? T(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);
26
+ return new Promise((n2, i2) => {
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
+ 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
- console.log("queryPageSuperGrids error", e3), o2(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
- console.log("queryPageRuntimeParam error", e3), o2(e3);
35
+ i2(e3);
36
36
  });
37
- }) : i2(null);
37
+ }) : n2(null);
38
38
  });
39
39
  }
40
- function g(t2, i2) {
41
- let o2 = "";
42
- return t2 && i2 && (o2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + i2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + o2);
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,23 +49,23 @@ 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()) {
61
61
  e3.entity.page._isMobile = "true";
62
62
  const t3 = navigator ? navigator.userAgent : null;
63
- t3 ? t3.indexOf(" uni-app ") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
63
+ t3 ? t3.indexOf("Html5Plus") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
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
  }
@@ -102,13 +102,13 @@ function P(e2) {
102
102
  }
103
103
  if (t2 && t2.includes("?")) {
104
104
  t2 = t2.substring(t2.lastIndexOf("?") + 1);
105
- const i2 = t2.split("&");
106
- for (const t3 of i2) {
107
- const i3 = t3.split("=");
108
- let o2 = i3[0];
109
- if (o2) {
110
- const t4 = i3.length > 1 ? i3[1] : "";
111
- o2.indexOf("ai__") >= 0 && (o2 = o2.substring(o2.indexOf("ai__") + 4)), e2[o2] = t4;
105
+ const n2 = t2.split("&");
106
+ for (const t3 of n2) {
107
+ const n3 = t3.split("=");
108
+ let i2 = n3[0];
109
+ if (i2) {
110
+ const t4 = n3.length > 1 ? n3[1] : "";
111
+ i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
112
112
  }
113
113
  }
114
114
  }
@@ -116,168 +116,165 @@ function P(e2) {
116
116
  }
117
117
  function E(e2, t2) {
118
118
  if (e2) {
119
- console.log("packageAdditionalMapWithPageRequest----pageRequest=", e2), Object.assign(t2, e2);
120
- v(e2.paramStoreId, t2), delete e2.paramStoreId, console.log("packageAdditionalMapWithPageRequest----requestObj=", t2), e2.jumpMode && (t2.jumpMode = e2.jumpMode);
119
+ Object.assign(t2, e2);
120
+ C(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
121
121
  }
122
122
  }
123
- function k(e2, t2) {
124
- if (console.log("packageAdditionalMapWithRoute----route=", e2), e2) {
125
- if (e2.params && Object.assign(t2, e2.params), console.log("packageAdditionalMapWithRoute----route.query=", e2.query), e2.query) {
126
- Object.assign(t2, e2.query);
127
- v(e2.query.paramStoreId, t2);
128
- }
129
- console.log("packageAdditionalMapWithRoute----requestObj=", t2);
123
+ function v(e2, t2) {
124
+ if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
125
+ Object.assign(t2, e2.query);
126
+ C(e2.query.paramStoreId, t2);
130
127
  }
131
128
  }
132
- function v(e2, t2) {
129
+ function C(e2, t2) {
133
130
  if (e2) {
134
- const i2 = a(e2);
135
- if (i2) {
136
- const e3 = JSON.parse(i2);
137
- Object.assign(t2, e3), console.log("已获取到附加参数", e3);
131
+ const n2 = a(e2);
132
+ if (n2) {
133
+ const e3 = JSON.parse(n2);
134
+ Object.assign(t2, e3);
138
135
  }
139
136
  }
140
137
  }
141
- function A(e2, t2) {
142
- let i2, o2 = t2;
143
- t2 || (i2 = e2.props.base ? e2.props.base : {}, o2 = i2.prop);
144
- let n2 = null;
145
- return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || o2 && o2.startsWith("${") ? o2.startsWith("${") ? (o2 = o2.substring(2, o2.length - 1), n2 = o2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
138
+ function k(e2, t2) {
139
+ let n2, i2 = t2;
140
+ t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
141
+ let s2 = null;
142
+ 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"];
146
143
  }
147
- function M(e2, t2, i2) {
144
+ function A(e2, t2, n2) {
148
145
  var _a, _b;
149
- const o2 = A(t2, i2), r2 = e2.entity;
146
+ const i2 = k(t2, n2), r2 = e2.entity;
150
147
  if (null == r2.data.ID && null == r2.data.id) {
151
- let i3, s2, a2 = false;
152
- t2 && (i3 = t2.props.base ? t2.props.base : {}, s2 = t2.name, a2 = i3.multiple);
153
- const l2 = n(r2, o2);
148
+ let n3, o2, a2 = false;
149
+ t2 && (n3 = t2.props.base ? t2.props.base : {}, o2 = t2.name, a2 = n3.multiple);
150
+ const l2 = s(r2, i2);
154
151
  if (null == l2) {
155
- const n2 = i3 ? i3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
156
- if (n2) try {
157
- const t3 = I(e2, n2, s2, a2);
158
- if (C(t3)) R(r2, o2, t3, l3);
159
- else if (((_b = i3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
160
- const t4 = i3.moreDefaultValue;
161
- for (let i4 = 0; i4 < t4.length; i4++) {
162
- const n3 = I(e2, t4[i4], s2, a2);
163
- if (C(n3)) {
164
- R(r2, o2, n3, l3);
152
+ const s2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
153
+ if (s2) try {
154
+ const t3 = T(e2, s2, o2, a2);
155
+ if (M(t3)) I(r2, i2, t3, l3);
156
+ else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
157
+ const t4 = n3.moreDefaultValue;
158
+ for (let n4 = 0; n4 < t4.length; n4++) {
159
+ const s3 = T(e2, t4[n4], o2, a2);
160
+ if (M(s3)) {
161
+ I(r2, i2, s3, l3);
165
162
  break;
166
163
  }
167
164
  }
168
165
  }
169
166
  } catch (e3) {
170
- console.error("设置默认值出错:", o2, e3);
167
+ console.error("设置默认值出错:", i2, e3);
171
168
  }
172
169
  }
173
170
  }
174
- return o2;
171
+ return i2;
175
172
  }
176
- function C(e2) {
173
+ function M(e2) {
177
174
  return null != e2 && "" !== e2;
178
175
  }
179
- function R(e2, t2, i2, o2) {
180
- !Array.isArray(i2) || o2 ? s(e2, t2, i2) : s(e2, t2, i2.join(","));
176
+ function I(e2, t2, n2, i2) {
177
+ !Array.isArray(n2) || i2 ? o(e2, t2, n2) : o(e2, t2, n2.join(","));
181
178
  }
182
- function I(e2, t2, i2, o2) {
183
- let n2;
184
- if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && i2)) {
179
+ function T(e2, t2, n2, i2) {
180
+ let s2;
181
+ if (t2 && (s2 = r(e2, t2), null != s2 && null != s2 && n2)) {
185
182
  let e3 = false;
186
- "checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = o2), e3 && (n2 = (n2 + "").split(","));
183
+ "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (s2 = (s2 + "").split(","));
187
184
  }
188
- return n2;
185
+ return s2;
189
186
  }
190
187
  function j(e2, t2) {
191
188
  var _a, _b;
192
189
  if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
193
- const i2 = [];
194
- if (e2.autoPermissions) for (const o2 of e2.autoPermissions) i2.push(t2.code + "." + o2.simpleCode);
190
+ const n2 = [];
191
+ if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
195
192
  if (e2.functionCodes) {
196
- const o2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
197
- for (let e3 = 0; e3 < n2.length; e3++) {
198
- const r2 = n2[e3], s2 = e3 < o2.length ? o2[e3] : "";
193
+ const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
194
+ for (let e3 = 0; e3 < s2.length; e3++) {
195
+ const r2 = s2[e3], o2 = e3 < i2.length ? i2[e3] : "";
199
196
  let a2 = "";
200
- if ("service" == s2) a2 = r2;
201
- else if ("standard" === s2) a2 = t2.code + "." + r2;
197
+ if ("service" == o2) a2 = r2;
198
+ else if ("standard" === o2) a2 = t2.code + "." + r2;
202
199
  else {
203
200
  a2 = "custom" === O(r2, t2).type ? r2 : t2.code + "." + r2;
204
201
  }
205
- i2.includes(a2) || i2.push(a2);
202
+ n2.includes(a2) || n2.push(a2);
206
203
  }
207
204
  }
208
- return i2.join(",");
205
+ return n2.join(",");
209
206
  }
210
207
  function O(e2, t2) {
211
- const i2 = t2.pagePermissions;
212
- if (i2 && i2.length > 0) {
213
- for (let t3 = 0; t3 < i2.length; t3++) if (i2[t3].simpleCode === e2) return i2[t3];
208
+ const n2 = t2.pagePermissions;
209
+ if (n2 && n2.length > 0) {
210
+ for (let t3 = 0; t3 < n2.length; t3++) if (n2[t3].simpleCode === e2) return n2[t3];
214
211
  }
215
212
  return null;
216
213
  }
217
- function T(i2, o2, n2) {
218
- const r2 = i2.tableRuntimes, s2 = t(o2);
214
+ function x(n2, i2, s2) {
215
+ const r2 = n2.tableRuntimes, o2 = t(i2);
219
216
  let a2;
220
- const l2 = i2.code;
221
- 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: n2, pageType: i2.pageType });
217
+ const l2 = n2.code;
218
+ return o2 && Object.keys(o2) > 0 && (a2 = JSON.stringify(o2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: r2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
222
219
  }
223
- const q = ["button-detail", "print-label"];
224
- function W(e2, t2, i2) {
220
+ const R = ["button-detail", "print-label"];
221
+ function _(e2, t2, n2) {
225
222
  var _a, _b;
226
- const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = u(e2);
227
- let s2 = false;
228
- if (r2 && q.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
229
- const i3 = e2.fieldPermissionMap.get("all_fields");
230
- false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", s2 = true);
223
+ const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = u(e2);
224
+ let o2 = false;
225
+ if (r2 && R.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
226
+ const n3 = e2.fieldPermissionMap.get("all_fields");
227
+ false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
231
228
  }
232
- if (n2) {
233
- const a2 = o(n2);
229
+ if (s2) {
230
+ const a2 = i(s2);
234
231
  if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
235
- d(e3), !i2 && e3 && e3.required && (e3.required = false);
236
- }), e2.rules[a2] = t2.props.rules), r2 && !s2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
237
- const o2 = e2.fieldPermissionMap.get(a2);
238
- if (!i2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
232
+ d(e3), !n2 && e3 && e3.required && (e3.required = false);
233
+ }), e2.rules[a2] = t2.props.rules), r2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
234
+ const i2 = e2.fieldPermissionMap.get(a2);
235
+ if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
239
236
  let t3 = e2.workflowRules[a2];
240
237
  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++) {
241
- const i3 = t3[e3];
242
- if (i3 && i3.required) {
243
- i3.required = false;
238
+ const n3 = t3[e3];
239
+ if (n3 && n3.required) {
240
+ n3.required = false;
244
241
  break;
245
242
  }
246
243
  }
247
244
  else t3 && t3.required && (t3.required = false);
248
245
  }
249
- t2.runtime.props || (t2.runtime.props = {}), o2 ? (!i2 && o2.canEdit && (o2.canEdit = false), false === o2.canEdit ? t2.runtime.props.state = "disabled" : o2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
246
+ 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 = "";
250
247
  }
251
248
  ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
252
249
  }
253
250
  }
254
- function x(e2, t2) {
251
+ function V(e2, t2) {
255
252
  if (e2.initInfo) {
256
- ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
257
- const o2 = e2.initInfo[i2];
258
- if (o2) if ("dynamicControlFormEdit" === i2) {
259
- let i3 = o2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
260
- if (i3 && i3.length > 0 && (i3 = i3.filter((e3) => "_all_fields" === e3.name), i3 && i3.length > 0)) {
261
- const e3 = p(i3[0]);
262
- e3.name = t2, i3 = [e3];
253
+ ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
254
+ const i2 = e2.initInfo[n2];
255
+ if (i2) if ("dynamicControlFormEdit" === n2) {
256
+ let n3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
257
+ if (n3 && n3.length > 0 && (n3 = n3.filter((e3) => "_all_fields" === e3.name), n3 && n3.length > 0)) {
258
+ const e3 = p(n3[0]);
259
+ e3.name = t2, n3 = [e3];
263
260
  }
264
- l.dynamicControlFormEdit(e2, i3, false);
265
- } else "disableElement" === i2 ? o2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === i2 ? o2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === i2 ? o2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === i2 && o2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
261
+ l.dynamicControlFormEdit(e2, n3, false);
262
+ } 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);
266
263
  });
267
264
  }
268
265
  }
269
266
  export {
270
- x as controlObjectRenderState,
267
+ V as controlObjectRenderState,
271
268
  y as convertToPageContext,
272
- I as getDefaultValue,
273
- M as getFormModelFields,
274
- A as getModelFields,
269
+ T as getDefaultValue,
270
+ A as getFormModelFields,
271
+ k as getModelFields,
275
272
  j as getPermissionCodes,
276
273
  P as packageAdditionalMapWithLocationSearch,
277
274
  E as packageAdditionalMapWithPageRequest,
278
- k as packageAdditionalMapWithRoute,
279
- W as packageFormRules,
275
+ v as packageAdditionalMapWithRoute,
276
+ _ as packageFormRules,
280
277
  f as queryPageDesignByCode,
281
278
  m as queryPageDesignWhenPreview,
282
- T as queryPageSuperGrids
279
+ x as queryPageSuperGrids
283
280
  };
@@ -2,50 +2,50 @@ import { ref as e, nextTick as o } from "vue";
2
2
  import { defineStore as t } from "pinia";
3
3
  import n from "./eventBus.js";
4
4
  const u = t("pageContextUtil", () => {
5
- const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), l = e(false), i = e([]), r = e(0), s = e(0);
6
- let d = null, c = -1, v = -1, m = 0;
7
- function p() {
8
- d && clearTimeout(d), d = setTimeout(() => {
5
+ const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), i = e(false), l = e([]), r = e(0), s = e(0);
6
+ let v = null, c = -1, d = -1, m = 0;
7
+ function f() {
8
+ v && clearTimeout(v), v = setTimeout(() => {
9
9
  o(() => {
10
10
  !function() {
11
11
  const e2 = r.value, o2 = s.value;
12
- if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && f(true));
12
+ if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && p(true));
13
13
  if (e2 > 0 && e2 === o2) {
14
- if (e2 === c && o2 === v && !u2.value) return console.log(`pageComponentsLoaded: total=${e2}, loaded=${o2}, checkCount=${m}`), void f(true);
15
- c = e2, v = o2, p();
16
- } else c = -1, v = -1, p();
14
+ if (e2 === c && o2 === d && !u2.value) return void p(true);
15
+ c = e2, d = o2, f();
16
+ } else c = -1, d = -1, f();
17
17
  }();
18
18
  });
19
19
  }, 30);
20
20
  }
21
- function f(e2) {
21
+ function p(e2) {
22
22
  u2.value = e2, C();
23
23
  }
24
24
  function C() {
25
- u2.value && a.value && !l.value && (n.$emit("pageLoaded"), l.value = true);
25
+ u2.value && a.value && !i.value && (n.$emit("pageLoaded"), i.value = true);
26
26
  }
27
27
  return { pageContext: t2, setPageContext: function(e2) {
28
28
  t2.value = e2;
29
29
  }, countComponentsTotalNmber: function() {
30
- r.value++, u2.value = false, l.value = false;
30
+ r.value++, u2.value = false, i.value = false;
31
31
  }, countComponentsLoadedNumber: function() {
32
- s.value++, p();
33
- }, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: f, setFormPageDataLoadState: function(e2) {
32
+ s.value++, f();
33
+ }, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: p, setFormPageDataLoadState: function(e2) {
34
34
  a.value = e2, C();
35
35
  }, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
36
- u2.value = false, a.value = false, l.value = false;
37
- }, pageLoaded: l, getPageLoaded: function() {
38
- return l.value;
36
+ u2.value = false, a.value = false, i.value = false;
37
+ }, pageLoaded: i, getPageLoaded: function() {
38
+ return i.value;
39
39
  }, setPageLoaded: function(e2) {
40
- l.value = e2;
40
+ i.value = e2;
41
41
  }, setAutoAnchorComponentConditions: function(e2, o2) {
42
- i.value.push({ uuid: e2, conditions: o2 });
42
+ l.value.push({ uuid: e2, conditions: o2 });
43
43
  }, getAutoAnchorComponentConditions: function() {
44
- return i.value;
44
+ return l.value;
45
45
  }, resetAutoAnchorComponentConditions: function() {
46
- i.value = [];
46
+ l.value = [];
47
47
  }, resetComponentCounters: function() {
48
- r.value = 0, s.value = 0, u2.value = false, l.value = false, c = -1, v = -1, m = 0, d && (clearTimeout(d), d = null);
48
+ r.value = 0, s.value = 0, u2.value = false, i.value = false, c = -1, d = -1, m = 0, v && (clearTimeout(v), v = null);
49
49
  } };
50
50
  });
51
51
  export {
@@ -8,7 +8,7 @@ import { ExpressionEvaluator as r } from "../views/assemblys/chart/table/chart-t
8
8
  import { getFormPropName as u } from "./page-helper-util.js";
9
9
  function a(t2) {
10
10
  const e2 = t2.pageContext && t2.pageContext.code;
11
- console.log("弹框显示页面--popupToPage====params=", t2), o.$emit(e2 + "_open-dialog", t2);
11
+ o.$emit(e2 + "_open-dialog", t2);
12
12
  }
13
13
  function p(t2, e2) {
14
14
  const o2 = t2.tableName;
@@ -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
- console.log("configure.btnList===", e2.btnList, "configure====", e2), r2 && u2 && u2.forEach((e3) => {
21
+ e2.btnList, 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);
@@ -73,7 +73,7 @@ function b(o2, n2, i2) {
73
73
  const s2 = t(o2, i2);
74
74
  return e.get(s2 + "/common/last-unread-file-task/" + n2);
75
75
  }
76
- function g(o2, n2, i2) {
76
+ function d(o2, n2, i2) {
77
77
  const s2 = t(o2, i2);
78
78
  return e.put(s2 + "/common/file-task-read/" + n2);
79
79
  }
@@ -85,5 +85,5 @@ export {
85
85
  m as isHasFieldAuth,
86
86
  f as isHasFieldPermissionAuth,
87
87
  a as popupToPage,
88
- g as setFileTaskRead
88
+ d as setFileTaskRead
89
89
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as l, unref as s, withDirectives as u, createVNode as c, vShow as p } from "vue";
1
+ import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as u, unref as s, withDirectives as l, createVNode as c, vShow as p } from "vue";
2
2
  import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
4
- import { updateChartOption as k } from "../../../../utils/charts/chart-columnline-util.js";
5
- import { doClickJumpPageEvent as I } from "../../../../utils/events/event-util.js";
4
+ import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
5
+ import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.js";
6
6
  import y from "../common/common-chart-header.vue.js";
7
7
  import { use as R } from "echarts/core";
8
8
  import { CanvasRenderer as j } from "echarts/renderers";
@@ -18,14 +18,11 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
18
18
  "clearDrill" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" === F && Z(e3);
19
19
  }
20
20
  function Z(e3) {
21
- if (console.log("clik0", e3), e3.seriesIndex >= Q.series.length) return;
22
- console.log("clik1", e3);
23
- const r2 = Q.series[e3.seriesIndex].uuid;
24
- console.log("clik2", r2);
25
- const o2 = B[r2];
26
- if (console.log("clik3", o2), !o2) return;
21
+ if (e3.seriesIndex >= Q.series.length) return;
22
+ const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
23
+ if (!o2) return;
27
24
  const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
28
- I(H.pageContext, o2, t2);
25
+ k(H.pageContext, o2, t2);
29
26
  }
30
27
  g(H.configure, Q), o(() => {
31
28
  const e3 = v(H.pageContext, H.configure);
@@ -35,7 +32,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
35
32
  });
36
33
  let $ = M.groupValue;
37
34
  function ee(e3) {
38
- L ? (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams)) : console.log("无数据源配置,不需要查询!");
35
+ L && (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams));
39
36
  }
40
37
  t(M, () => {
41
38
  $ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
@@ -43,14 +40,13 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
43
40
  const re = M.monitorFields;
44
41
  function oe(e3) {
45
42
  var _a;
46
- if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
47
- e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && z || h(H.pageContext, H.configure, (_a = S.value) == null ? void 0 : _a.chart), L.autoRefresh = false, k(H.pageContext, H.configure, Q, e3), S.value && S.value.setOption(Q, true);
43
+ e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && z || h(H.pageContext, H.configure, (_a = S.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(H.pageContext, H.configure, Q, e3), S.value && S.value.setOption(Q, true));
48
44
  }
49
45
  return C(H.pageContext, re, () => {
50
46
  ee(true);
51
47
  }), A2({ updateChartDatas: oe, exportChart: function() {
52
48
  return d(S.value, M);
53
- }, chartOption: Q }), (r2, o2) => (a(), n("div", { style: l(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [u(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e2.configure, pageContext: e2.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e2.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
49
+ }, chartOption: Q }), (r2, o2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e2.configure, pageContext: e2.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e2.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
54
50
  } });
55
51
  export {
56
52
  A as default
@@ -2,10 +2,10 @@ import { defineComponent as e, watch as l, resolveComponent as o, createBlock as
2
2
  const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
3
3
  const t2 = e2;
4
4
  return l(t2.headerInfo, () => {
5
- console.log("props.headerInfo", t2.headerInfo);
5
+ t2.headerInfo;
6
6
  }), (l2, t3) => {
7
- const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), I = o("el-radio-button"), V = 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(V, { 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(I, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
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
9
  };
10
10
  } });
11
11
  export {
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, ref as o, resolveComponent as r, createElementBlock as n, openBlock as t, createElementVNode as a, createCommentVNode as l, withDirectives as i, createBlock as d, normalizeStyle as f, toDisplayString as h, vShow as s, createVNode as c, withCtx as I, unref as p } from "vue";
2
- import { Search as u } from "@element-plus/icons-vue";
1
+ import { defineComponent as e, ref as o, resolveComponent as r, createElementBlock as n, openBlock as t, createElementVNode as a, createCommentVNode as l, withDirectives as i, createBlock as d, normalizeStyle as f, toDisplayString as h, vShow as s, createVNode as c, withCtx as I, unref as u } from "vue";
2
+ 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";
@@ -8,7 +8,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
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) console.log("无效的取消操作,", e3, N.headerInfo.drillOptions);
11
+ if (e3 >= o2) N.headerInfo.drillOptions;
12
12
  else {
13
13
  for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
14
14
  q(e3);
@@ -45,14 +45,14 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
45
45
  return P2({ drill: function(e3, o2) {
46
46
  const r2 = N.headerInfo.drillOptions.length;
47
47
  if (r2 + 1 >= N.headerInfo.options.length) {
48
- return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), console.log("钻取到最底层了!"), void R("drill-end", e3);
48
+ return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
49
49
  }
50
- console.log("props.headerInfo.options", r2, N.headerInfo.options);
50
+ N.headerInfo.options;
51
51
  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
52
  N.headerInfo.drillOptions.push(a2), q(r2 + 1);
53
53
  }, closeDrill: S }), (o2, v2) => {
54
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(p(u))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
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)]);
56
56
  };
57
57
  } });
58
58
  export {