super-page-runtime 2.3.37-sit2 → 2.3.37-sit4

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 (58) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
  6. package/dist/es/components/runtime/utils/events/event-util.js +121 -121
  7. package/dist/es/components/runtime/utils/events/print-label.js +35 -33
  8. package/dist/es/components/runtime/utils/events/standard-event.js +600 -588
  9. package/dist/es/components/runtime/utils/events/validator-util.js +154 -150
  10. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  11. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  12. package/dist/es/components/runtime/utils/page-init-util.js +125 -120
  13. package/dist/es/components/runtime/utils/page-store.js +21 -21
  14. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  15. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  19. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  20. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +26 -25
  22. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  23. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
  24. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
  25. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
  26. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  27. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
  28. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
  29. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  30. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  31. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  32. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +22 -20
  33. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -120
  34. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
  35. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +7 -6
  36. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +22 -22
  37. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  38. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +9 -9
  39. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +36 -35
  40. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -4
  41. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +56 -55
  42. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
  44. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +14 -12
  45. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -2
  46. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  47. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
  48. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  49. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +28 -27
  50. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +5 -5
  51. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  52. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  53. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +25 -23
  54. package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
  55. package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
  56. package/dist/es/components/runtime/views/super-page.vue2.js +191 -190
  57. package/dist/es/style.css +71 -71
  58. 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 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";
3
+ import { PageDimensions as o } from "./interfaces/page-design-types.js";
4
+ import { getFormPropName as i, getVariableValue as n, formatVariableValue as r, setVariableValue as s } 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 p, deepCopy as u } from "./common-util.js";
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((n2, i2) => {
11
+ return new Promise((o2, 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, n2(e2)) : n2(null);
17
+ t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, o2(e2)) : o2(null);
18
18
  });
19
19
  }).catch(() => {
20
- n2(e2);
21
- }) : n2(null);
20
+ o2(e2);
21
+ }) : o2(null);
22
22
  });
23
23
  });
24
24
  }
25
25
  function m(e2, t2) {
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);
26
+ return new Promise((o2, i2) => {
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, o2(e2);
30
30
  }).catch((e3) => {
31
- i2(e3);
31
+ console.log("queryPageSuperGrids error", e3), 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, n2(e2)) : n2(null);
33
+ t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, o2(e2)) : o2(null);
34
34
  }).catch((e3) => {
35
- i2(e3);
35
+ console.log("queryPageRuntimeParam error", e3), i2(e3);
36
36
  });
37
- }) : n2(null);
37
+ }) : o2(null);
38
38
  });
39
39
  }
40
- function g(t2, n2) {
40
+ function g(t2, o2) {
41
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);
42
+ return t2 && o2 && (i2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + o2), 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 n2 = e2.props.notIdInitializationList;
53
- "string" == typeof n2 && (n2 = JSON.parse(n2)), n2.length > 0 && (t2.notIdInitializationList = n2);
52
+ let o2 = e2.props.notIdInitializationList;
53
+ "string" == typeof o2 && (o2 = JSON.parse(o2)), o2.length > 0 && (t2.notIdInitializationList = o2);
54
54
  }
55
55
  if (e2.variables) {
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);
56
+ const o2 = t2.entity.page;
57
+ for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? o2[t3.name] = [] : t3.defaultValue ? o2[t3.name] = t3.defaultValue : o2[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 n.PC;
68
- return e3 > 768 ? n.PC : e3 > 414 ? n.IPAD : n.PHONE;
67
+ if (!e3) return o.PC;
68
+ return e3 > 768 ? o.PC : e3 > 414 ? o.IPAD : o.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"), 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);
76
+ const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), o2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
77
+ return window.CryptoJS.AES.decrypt(e3, t3, { iv: o2, 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,6 +91,7 @@ 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);
94
95
  }
95
96
  }
96
97
  function P(e2) {
@@ -101,12 +102,12 @@ function P(e2) {
101
102
  }
102
103
  if (t2 && t2.includes("?")) {
103
104
  t2 = t2.substring(t2.lastIndexOf("?") + 1);
104
- const n2 = t2.split("&");
105
- for (const t3 of n2) {
106
- const n3 = t3.split("=");
107
- let i2 = n3[0];
105
+ const o2 = t2.split("&");
106
+ for (const t3 of o2) {
107
+ const o3 = t3.split("=");
108
+ let i2 = o3[0];
108
109
  if (i2) {
109
- const t4 = n3.length > 1 ? n3[1] : "";
110
+ const t4 = o3.length > 1 ? o3[1] : "";
110
111
  i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
111
112
  }
112
113
  }
@@ -115,164 +116,168 @@ function P(e2) {
115
116
  }
116
117
  function E(e2, t2) {
117
118
  if (e2) {
118
- Object.assign(t2, e2);
119
- C(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
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);
120
121
  }
121
122
  }
122
- function v(e2, t2) {
123
- if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
124
- Object.assign(t2, e2.query);
125
- C(e2.query.paramStoreId, t2);
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);
126
130
  }
127
131
  }
128
- function C(e2, t2) {
132
+ function v(e2, t2) {
129
133
  if (e2) {
130
- const n2 = a(e2);
131
- if (n2) {
132
- const e3 = JSON.parse(n2);
133
- Object.assign(t2, e3);
134
+ const o2 = a(e2);
135
+ if (o2) {
136
+ const e3 = JSON.parse(o2);
137
+ Object.assign(t2, e3), console.log("已获取到附加参数", e3);
134
138
  }
135
139
  }
136
140
  }
137
- function k(e2, t2) {
138
- let n2, i2 = t2;
139
- t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
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"];
141
+ function A(e2, t2) {
142
+ let o2, i2 = t2;
143
+ t2 || (o2 = e2.props.base ? e2.props.base : {}, i2 = o2.prop);
144
+ let n2 = null;
145
+ return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
142
146
  }
143
- function A(e2, t2, n2) {
147
+ function M(e2, t2, o2) {
144
148
  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);
149
+ const i2 = A(t2, o2), r2 = e2.entity;
150
+ if (null == r2.data.ID && null == r2.data.id) {
151
+ let o3, s2, a2 = false;
152
+ t2 && (o3 = t2.props.base ? t2.props.base : {}, s2 = t2.name, a2 = o3.multiple);
153
+ const l2 = n(r2, i2);
150
154
  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);
155
+ const n2 = o3 ? o3.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, i2, t3, l3);
159
+ else if (((_b = o3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
160
+ const t4 = o3.moreDefaultValue;
161
+ for (let o4 = 0; o4 < t4.length; o4++) {
162
+ const n3 = I(e2, t4[o4], s2, a2);
163
+ if (C(n3)) {
164
+ R(r2, i2, n3, l3);
161
165
  break;
162
166
  }
163
167
  }
164
168
  }
165
169
  } catch (e3) {
170
+ console.error("设置默认值出错:", i2, e3);
166
171
  }
167
172
  }
168
173
  }
169
174
  return i2;
170
175
  }
171
- function M(e2) {
176
+ function C(e2) {
172
177
  return null != e2 && "" !== e2;
173
178
  }
174
- function I(e2, t2, n2, i2) {
175
- !Array.isArray(n2) || i2 ? r(e2, t2, n2) : r(e2, t2, n2.join(","));
179
+ function R(e2, t2, o2, i2) {
180
+ !Array.isArray(o2) || i2 ? s(e2, t2, o2) : s(e2, t2, o2.join(","));
176
181
  }
177
- function T(e2, t2, n2, i2) {
178
- let s2;
179
- if (t2 && (s2 = o(e2, t2), null != s2 && null != s2 && n2)) {
182
+ function I(e2, t2, o2, i2) {
183
+ let n2;
184
+ if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && o2)) {
180
185
  let e3 = false;
181
- "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (s2 = (s2 + "").split(","));
186
+ "checkbox" == o2 ? e3 = true : "select" == o2 && (e3 = i2), e3 && (n2 = (n2 + "").split(","));
182
187
  }
183
- return s2;
188
+ return n2;
184
189
  }
185
190
  function j(e2, t2) {
186
191
  var _a, _b;
187
192
  if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
188
- const n2 = [];
189
- if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
193
+ const o2 = [];
194
+ if (e2.autoPermissions) for (const i2 of e2.autoPermissions) o2.push(t2.code + "." + i2.simpleCode);
190
195
  if (e2.functionCodes) {
191
- const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
192
- for (let e3 = 0; e3 < s2.length; e3++) {
193
- const o2 = s2[e3], r2 = e3 < i2.length ? i2[e3] : "";
196
+ const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
197
+ for (let e3 = 0; e3 < n2.length; e3++) {
198
+ const r2 = n2[e3], s2 = e3 < i2.length ? i2[e3] : "";
194
199
  let a2 = "";
195
- if ("service" == r2) a2 = o2;
196
- else if ("standard" === r2) a2 = t2.code + "." + o2;
200
+ if ("service" == s2) a2 = r2;
201
+ else if ("standard" === s2) a2 = t2.code + "." + r2;
197
202
  else {
198
- a2 = "custom" === O(o2, t2).type ? o2 : t2.code + "." + o2;
203
+ a2 = "custom" === O(r2, t2).type ? r2 : t2.code + "." + r2;
199
204
  }
200
- n2.includes(a2) || n2.push(a2);
205
+ o2.includes(a2) || o2.push(a2);
201
206
  }
202
207
  }
203
- return n2.join(",");
208
+ return o2.join(",");
204
209
  }
205
210
  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];
211
+ const o2 = t2.pagePermissions;
212
+ if (o2 && o2.length > 0) {
213
+ for (let t3 = 0; t3 < o2.length; t3++) if (o2[t3].simpleCode === e2) return o2[t3];
209
214
  }
210
215
  return null;
211
216
  }
212
- function x(n2, i2, s2) {
213
- const o2 = n2.tableRuntimes, r2 = t(i2);
217
+ function T(o2, i2, n2) {
218
+ const r2 = o2.tableRuntimes, s2 = t(i2);
214
219
  let a2;
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 });
220
+ const l2 = o2.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: o2.pageType });
217
222
  }
218
- const R = ["button-detail", "print-label"];
219
- function _(e2, t2, n2) {
223
+ const q = ["button-detail", "print-label"];
224
+ function W(e2, t2, o2) {
220
225
  var _a, _b;
221
- const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
222
- let r2 = false;
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);
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 o3 = e2.fieldPermissionMap.get("all_fields");
230
+ false === (o3 == null ? void 0 : o3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", s2 = true);
226
231
  }
227
- if (s2) {
228
- const a2 = i(s2);
232
+ if (n2) {
233
+ const a2 = i(n2);
229
234
  if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
230
- d(e3), !n2 && e3 && e3.required && (e3.required = false);
231
- }), e2.rules[a2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
235
+ d(e3), !o2 && e3 && e3.required && (e3.required = false);
236
+ }), e2.rules[a2] = t2.props.rules), r2 && !s2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
232
237
  const i2 = e2.fieldPermissionMap.get(a2);
233
- if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
238
+ if (!o2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
234
239
  let t3 = e2.workflowRules[a2];
235
240
  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++) {
236
- const n3 = t3[e3];
237
- if (n3 && n3.required) {
238
- n3.required = false;
241
+ const o3 = t3[e3];
242
+ if (o3 && o3.required) {
243
+ o3.required = false;
239
244
  break;
240
245
  }
241
246
  }
242
247
  else t3 && t3.required && (t3.required = false);
243
248
  }
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 = "";
249
+ t2.runtime.props || (t2.runtime.props = {}), i2 ? (!o2 && 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 = "";
245
250
  }
246
251
  ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
247
252
  }
248
253
  }
249
- function V(e2, t2) {
254
+ function x(e2, t2) {
250
255
  if (e2.initInfo) {
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];
256
+ ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((o2) => {
257
+ const i2 = e2.initInfo[o2];
258
+ if (i2) if ("dynamicControlFormEdit" === o2) {
259
+ let o3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
260
+ if (o3 && o3.length > 0 && (o3 = o3.filter((e3) => "_all_fields" === e3.name), o3 && o3.length > 0)) {
261
+ const e3 = p(o3[0]);
262
+ e3.name = t2, o3 = [e3];
258
263
  }
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);
264
+ l.dynamicControlFormEdit(e2, o3, false);
265
+ } else "disableElement" === o2 ? i2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === o2 ? i2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === o2 ? i2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === o2 && i2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
261
266
  });
262
267
  }
263
268
  }
264
269
  export {
265
- V as controlObjectRenderState,
270
+ x as controlObjectRenderState,
266
271
  y as convertToPageContext,
267
- T as getDefaultValue,
268
- A as getFormModelFields,
269
- k as getModelFields,
272
+ I as getDefaultValue,
273
+ M as getFormModelFields,
274
+ A as getModelFields,
270
275
  j as getPermissionCodes,
271
276
  P as packageAdditionalMapWithLocationSearch,
272
277
  E as packageAdditionalMapWithPageRequest,
273
- v as packageAdditionalMapWithRoute,
274
- _ as packageFormRules,
278
+ k as packageAdditionalMapWithRoute,
279
+ W as packageFormRules,
275
280
  f as queryPageDesignByCode,
276
281
  m as queryPageDesignWhenPreview,
277
- x as queryPageSuperGrids
282
+ T as queryPageSuperGrids
278
283
  };
@@ -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), 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(() => {
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(() => {
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 && p(true));
12
+ if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && f(true));
13
13
  if (e2 > 0 && e2 === o2) {
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();
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();
17
17
  }();
18
18
  });
19
19
  }, 30);
20
20
  }
21
- function p(e2) {
21
+ function f(e2) {
22
22
  u2.value = e2, C();
23
23
  }
24
24
  function C() {
25
- u2.value && a.value && !i.value && (n.$emit("pageLoaded"), i.value = true);
25
+ u2.value && a.value && !l.value && (n.$emit("pageLoaded"), l.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, i.value = false;
30
+ r.value++, u2.value = false, l.value = false;
31
31
  }, countComponentsLoadedNumber: function() {
32
- s.value++, f();
33
- }, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: p, setFormPageDataLoadState: function(e2) {
32
+ s.value++, p();
33
+ }, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: f, setFormPageDataLoadState: function(e2) {
34
34
  a.value = e2, C();
35
35
  }, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
36
- u2.value = false, a.value = false, i.value = false;
37
- }, pageLoaded: i, getPageLoaded: function() {
38
- return i.value;
36
+ u2.value = false, a.value = false, l.value = false;
37
+ }, pageLoaded: l, getPageLoaded: function() {
38
+ return l.value;
39
39
  }, setPageLoaded: function(e2) {
40
- i.value = e2;
40
+ l.value = e2;
41
41
  }, setAutoAnchorComponentConditions: function(e2, o2) {
42
- l.value.push({ uuid: e2, conditions: o2 });
42
+ i.value.push({ uuid: e2, conditions: o2 });
43
43
  }, getAutoAnchorComponentConditions: function() {
44
- return l.value;
44
+ return i.value;
45
45
  }, resetAutoAnchorComponentConditions: function() {
46
- l.value = [];
46
+ i.value = [];
47
47
  }, resetComponentCounters: function() {
48
- r.value = 0, s.value = 0, u2.value = false, i.value = false, c = -1, d = -1, m = 0, v && (clearTimeout(v), v = null);
48
+ r.value = 0, s.value = 0, u2.value = false, l.value = false, c = -1, v = -1, m = 0, d && (clearTimeout(d), d = 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
- o.$emit(e2 + "_open-dialog", t2);
11
+ console.log("弹框显示页面--popupToPage====params=", t2), 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
- r2 && u2 && u2.forEach((e3) => {
21
+ console.log("configure.btnList===", e2.btnList, "configure====", e2), 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 d(o2, n2, i2) {
76
+ function g(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
- d as setFileTaskRead
88
+ g as setFileTaskRead
89
89
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./column-line-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-3175013a"]]);
4
+ const r = o(e, [["__scopeId", "data-v-24135501"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -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 u, unref as s, withDirectives as l, 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 l, unref as s, withDirectives as u, 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 I } from "../../../../utils/charts/chart-columnline-util.js";
5
- import { doClickJumpPageEvent as k } from "../../../../utils/events/event-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";
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,21 +18,24 @@ 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 (e3.seriesIndex >= Q.series.length) return;
22
- const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
23
- if (!o2) return;
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;
24
27
  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 };
25
- k(H.pageContext, o2, t2);
28
+ I(H.pageContext, o2, t2);
26
29
  }
27
30
  g(H.configure, Q), o(() => {
28
31
  const e3 = v(H.pageContext, H.configure);
29
- e3 && oe(e3), S.value && (z || Object.keys(B).length > 0) && S.value.chart.on("click", function(e4) {
32
+ e3 && oe(e3), !z && H.configure.clickSet && S.value && m(H.pageContext, H.configure, S.value.chart), S.value && (z || Object.keys(B).length > 0) && S.value.chart.on("click", function(e4) {
30
33
  z ? U.value && U.value.drill && U.value.drill(e4, H.configure.cacheDatas) : Z(e4);
31
- }), !z && H.configure.clickSet && S.value && m(H.pageContext, H.configure, S.value.chart);
34
+ });
32
35
  });
33
36
  let $ = M.groupValue;
34
37
  function ee(e3) {
35
- L && (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams));
38
+ L ? (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams)) : console.log("无数据源配置,不需要查询!");
36
39
  }
37
40
  t(M, () => {
38
41
  $ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
@@ -40,13 +43,14 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
40
43
  const re = M.monitorFields;
41
44
  function oe(e3) {
42
45
  var _a;
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));
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);
44
48
  }
45
49
  return C(H.pageContext, re, () => {
46
50
  ee(true);
47
51
  }), A2({ updateChartDatas: oe, exportChart: function() {
48
52
  return d(S.value, M);
49
- }, chartOption: Q }), (e3, r2) => (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: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.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));
53
+ }, chartOption: Q }), (e3, r2) => (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: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.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));
50
54
  } });
51
55
  export {
52
56
  A as default
@@ -1,9 +1,13 @@
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
- }) });
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
+ console.log("props.headerInfo", t2.headerInfo);
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"]));
9
+ };
10
+ } });
7
11
  export {
8
12
  t as default
9
13
  };