super-page-runtime 2.1.933 → 2.2.0

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 (160) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
  2. package/dist/es/assets/chart-themes/theme1.js +2 -6
  3. package/dist/es/assets/chart-themes/theme2.js +2 -6
  4. package/dist/es/assets/chart-themes/theme3.js +2 -6
  5. package/dist/es/components/runtime/utils/api/api-util.js +4 -7
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -433
  7. package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
  8. package/dist/es/components/runtime/utils/barcode-util.js +10 -33
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -300
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
  15. package/dist/es/components/runtime/utils/common-util.js +82 -152
  16. package/dist/es/components/runtime/utils/eventBus.js +3 -9
  17. package/dist/es/components/runtime/utils/events/event-util.js +361 -727
  18. package/dist/es/components/runtime/utils/events/print-label.js +73 -140
  19. package/dist/es/components/runtime/utils/events/standard-event.js +838 -2285
  20. package/dist/es/components/runtime/utils/events/validator-util.js +237 -536
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
  22. package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
  23. package/dist/es/components/runtime/utils/global-refs.js +45 -69
  24. package/dist/es/components/runtime/utils/i18n-util.js +12 -20
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  26. package/dist/es/components/runtime/utils/page-helper-util.js +298 -628
  27. package/dist/es/components/runtime/utils/page-init-util.js +134 -368
  28. package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
  29. package/dist/es/components/runtime/utils/page-store.js +8 -12
  30. package/dist/es/components/runtime/utils/store-util.js +9 -13
  31. package/dist/es/components/runtime/utils/store.js +2 -2
  32. package/dist/es/components/runtime/utils/table-utils.js +49 -84
  33. package/dist/es/components/runtime/utils/tree-utils.js +18 -36
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +37 -132
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +54 -198
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -169
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  53. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
  54. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
  56. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
  58. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
  60. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
  61. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  62. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  64. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +63 -226
  66. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  68. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  70. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +168 -512
  71. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  72. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  73. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
  74. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  75. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  76. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  78. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  79. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  80. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  81. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  83. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  85. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  87. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  89. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  91. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  93. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  95. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +311 -800
  96. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  97. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +251 -592
  98. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  99. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  100. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
  101. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
  103. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  104. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  105. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
  107. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
  108. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  110. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
  111. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
  113. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +28 -98
  115. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
  117. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
  119. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  121. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
  123. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
  125. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  127. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -5
  128. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  129. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
  130. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  131. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
  132. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  133. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -243
  134. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  135. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -261
  136. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  137. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  138. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  139. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  140. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  141. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
  142. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  143. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  144. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
  145. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  146. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
  148. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
  150. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
  152. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  153. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  154. package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -134
  155. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  156. package/dist/es/components/runtime/views/super-page.vue.js +233 -708
  157. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  158. package/dist/es/i18n/langs/cn.js +2 -55
  159. package/dist/es/i18n/langs/en.js +2 -55
  160. package/package.json +74 -73
@@ -1,520 +1,176 @@
1
- import { defineComponent, ref, onMounted, watch, resolveComponent, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, withDirectives, createVNode, vShow, withCtx, Fragment, renderList, createBlock, createCommentVNode, h } from "vue";
2
- import _sfc_main$1 from "../common/common-chart-header.vue.js";
3
- import { getChartDatasFromPage, getValueFromVariable, isPromise, setValueForVariableName, updateChartDatasourcesByComponent, caculateShowCondition } from "../../../../utils/page-helper-util.js";
4
- import { getCustomFunc } from "../../../../utils/events/event-util.js";
5
- import _sfc_main$2 from "./group-column.vue.js";
6
- import _sfc_main$3 from "./normal-column.vue.js";
7
- import _sfc_main$4 from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn, getSummaryDataColumn, rowDataToColumn, getColumnToRowTableConfig, colDataToRow, computeFormula, summaryStatistics, replacePlaceholders, getHeaderCellStyleUtil, getRowStyleUtil, getCellStyleUtil, getIndexColumn } from "./chart-table-util.js";
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "table-runtime",
11
- props: {
12
- configure: {
13
- type: Object,
14
- default: () => {
15
- return {};
16
- }
17
- },
18
- pageContext: {
19
- type: Object,
20
- default: () => {
21
- return {};
22
- }
23
- }
24
- },
25
- setup(__props, { expose: __expose }) {
26
- var _a;
27
- const props = __props;
28
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
29
- const runtimeStyle = runtimeInfo.style;
30
- const runtimeClass = runtimeInfo.class;
31
- const dataConfig = runtimeInfo.dataConfig;
32
- const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
33
- const headerRef = ref(null);
34
- const isEnableGroupHeader = ref(runtimeInfo.props.isEnableGroupHeader);
35
- const tableData = ref([]);
36
- const tableColumnsConfig = ref([]);
37
- const groupColumnsConfig = ref([]);
38
- const columnsConfigKeyValues = ref({});
39
- const showSummary = ref(false);
40
- const tableSummaryTitle = ref({});
41
- const tableSummaryColumns = ref({});
42
- const groupSummaryColumns = ref({});
43
- const groupSummaryDataRowIndex = [];
44
- const columnStyleSourceConfig = ref({});
45
- const dataFormulaMapping = ref({});
46
- const gridRef = ref(null);
47
- const total = ref(0);
48
- let tmpTableData = [];
49
- if (!props.configure.props.modelCustom) {
50
- if (!isEnableGroupHeader.value) {
51
- tableColumnsConfig.value = props.configure.items;
52
- } else {
53
- groupColumnsConfig.value = props.configure.props.groupHeaders;
54
- }
55
- (_a = props.configure.items) == null ? void 0 : _a.forEach((item) => {
56
- columnsConfigKeyValues.value[item.uuid] = item;
57
- if (Object.keys(item.style).length > 0) {
58
- columnStyleSourceConfig.value[item.props.base.prop] = {
59
- cellStyle: item.style,
60
- titleStyle: item.titleStyle
61
- };
62
- }
63
- if (item.formula && item.formula.trim() !== "") {
64
- dataFormulaMapping.value[item.props.base.prop] = item.formula;
65
- }
66
- });
67
- }
68
- showSummary.value = props.configure.props.base.showSummary;
69
- if (showSummary.value || props.configure.props.highOrder.groupField && props.configure.props.highOrder.groupField.length > 0) {
70
- tableSummaryTitle.value = getSummaryTitleColumn(props.configure);
71
- if (showSummary.value) {
72
- tableSummaryColumns.value = getSummaryDataColumn(props.configure, "table");
73
- }
74
- if (props.configure.props.highOrder.groupField && props.configure.props.highOrder.groupField.length > 0) {
75
- groupSummaryColumns.value = getSummaryDataColumn(props.configure, "group");
76
- }
77
- }
78
- onMounted(() => {
79
- const resultData = getChartDatasFromPage(props.pageContext, props.configure);
80
- if (resultData) {
81
- updateChartDatas(resultData);
82
- } else {
83
- if (props.configure.props.dataOrigin.dataSource === "variable") {
84
- watchVariableDataChange();
85
- const tmpTableData2 = getValueFromVariable(
86
- props.pageContext.entity,
87
- props.configure.props.dataOrigin.variable
88
- );
89
- if (tmpTableData2) {
90
- loadTable(tmpTableData2, resultData);
91
- }
92
- }
93
- }
1
+ import { defineComponent as e, ref as o, onMounted as n, watch as t, resolveComponent as r, openBlock as a, createElementBlock as i, normalizeStyle as u, unref as l, normalizeClass as p, withDirectives as s, createVNode as c, vShow as g, withCtx as f, Fragment as d, renderList as m, createBlock as h, createCommentVNode as v, h as y } from "vue";
2
+ import C from "../common/common-chart-header.vue.js";
3
+ import { getChartDatasFromPage as b, getValueFromVariable as x, isPromise as O, setValueForVariableName as S, updateChartDatasourcesByComponent as w, caculateShowCondition as j } from "../../../../utils/page-helper-util.js";
4
+ import { getCustomFunc as F } from "../../../../utils/events/event-util.js";
5
+ import k from "./group-column.vue.js";
6
+ import E from "./normal-column.vue.js";
7
+ import I from "./table-pageination.vue.js";
8
+ import { getSummaryTitleColumn as R, getSummaryDataColumn as $, rowDataToColumn as T, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as D, summaryStatistics as H, replacePlaceholders as P, getHeaderCellStyleUtil as J, getRowStyleUtil as K, getCellStyleUtil as N, getIndexColumn as U } from "./chart-table-util.js";
9
+ const V = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: V2 }) {
10
+ var _a;
11
+ const A = e2, G = A.configure.runtime ? A.configure.runtime : {}, L = G.style, q = G.class, B = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = o(null), W = o(G.props.isEnableGroupHeader), X = o([]), Y = o([]), Z = o([]), ee = o({}), oe = o(false), ne = o({}), te = o({}), re = o({}), ae = [], ie = o({}), ue = o({}), le = o(null), pe = o(0);
12
+ let se = [];
13
+ function ce() {
14
+ const e3 = A.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
15
+ t(() => o2.reduce((e4, o3) => e4[o3], A.pageContext.entity), (e4) => {
16
+ e4 ? fe(JSON.parse(JSON.stringify(e4)), null) : (X.value = [], A.configure.props.modelCustom ? je(null) : W.value ? Z.value = A.configure.props.groupHeaders : Y.value = A.configure.items);
94
17
  });
95
- function watchVariableDataChange() {
96
- const match = props.configure.props.dataOrigin.variable.match(/\${(.*?)}/);
97
- const path = match ? match[1].split(".") : [];
98
- watch(
99
- () => path.reduce((obj, key) => obj[key], props.pageContext.entity),
100
- (newVal) => {
101
- console.log("统计表格监听数据变量的变化 newVal:", newVal);
102
- if (newVal) {
103
- loadTable(JSON.parse(JSON.stringify(newVal)), null);
104
- } else {
105
- tableData.value = [];
106
- resetTableColumns();
107
- }
108
- }
109
- );
110
- }
111
- function updateChartDatas(resultData) {
112
- if (!resultData) {
113
- resultData = [];
114
- }
115
- resultData = resultData.length > 0 ? resultData[0] : {};
116
- if (!resultData) {
117
- resultData = {};
118
- }
119
- if (resultData.hasRender) {
120
- resultData.hasRender = true;
121
- console.log("重复更新!", resultData);
122
- return;
123
- }
124
- updateTable(resultData);
125
- resultData.hasRender = true;
126
- if (dataConfig) {
127
- dataConfig.autoRefresh = false;
128
- }
129
- }
130
- function updateTable(resultData) {
131
- setCustomColumns(resultData);
132
- if (props.configure.props.dataOrigin.dataSource === "service" && resultData.result) {
133
- tmpTableData = resultData.result[props.configure.props.dataOrigin.service.serviceDataField];
134
- } else if (props.configure.props.dataOrigin.dataSource === "variable") {
135
- watchVariableDataChange();
136
- tmpTableData = getValueFromVariable(
137
- props.pageContext.entity,
138
- props.configure.props.dataOrigin.variable
139
- );
140
- }
141
- if (tmpTableData) {
142
- loadTable(tmpTableData, resultData);
143
- }
144
- }
145
- function loadTable(tmpTableData2, resultData) {
146
- var _a2;
147
- if (enableTransition("rowToColumn")) {
148
- tmpTableData2 = rowDataToColumn(tmpTableData2, props.configure);
149
- if (!isEnableGroupHeader.value) {
150
- const updatedColumnConfig = updateColumnConfig(
151
- tableColumnsConfig.value,
152
- tmpTableData2,
153
- props.configure.props.dataOrigin.rowToColumn.titleColumns,
154
- props.configure.props.dataOrigin.rowToColumn.dataColumns
155
- );
156
- tableColumnsConfig.value = updatedColumnConfig;
157
- }
158
- } else if (enableTransition("columnToRow")) {
159
- if (!isEnableGroupHeader.value) {
160
- tableColumnsConfig.value = getColumnToRowTableConfig(props.configure);
161
- }
162
- tmpTableData2 = colDataToRow(tmpTableData2, props.configure);
163
- }
164
- if (props.configure.props.dataOrigin.dataFormatting) {
165
- const func = getCustomFunc(props.pageContext, props.configure.props.dataOrigin.dataFormatting);
166
- if (func) {
167
- const resultValue = func.apply(func, [{ tableData: tmpTableData2 }]);
168
- if (resultValue) {
169
- tmpTableData2 = resultValue;
170
- }
171
- }
172
- }
173
- if (Object.keys(dataFormulaMapping.value).length > 0 && tmpTableData2 && tmpTableData2.length > 0) {
174
- computeFormula(dataFormulaMapping.value, tmpTableData2, props.pageContext.entity);
175
- }
176
- if ((_a2 = props.configure.pageination) == null ? void 0 : _a2.enable) {
177
- tableDataPageination(resultData);
178
- } else {
179
- tableData.value = tmpTableData2;
180
- }
181
- if (props.configure.props.highOrder.groupField && props.configure.props.highOrder.groupField.length > 0) {
182
- const groupField = props.configure.props.highOrder.groupField;
183
- tableData.value = groupAndAddTotals(tableData.value, groupField);
184
- }
185
- pushTableIndexColumn(tableColumnsConfig.value);
186
- }
187
- function enableTransition(type) {
188
- return props.configure.props.dataOrigin.transition === type && props.configure.props.dataOrigin.groupField && props.configure.props.dataOrigin.groupField.length > 0 && props.configure.props.dataOrigin[type].titleColumns && props.configure.props.dataOrigin[type].titleColumns.length > 0 && props.configure.props.dataOrigin[type].dataColumns && props.configure.props.dataOrigin[type].dataColumns.length > 0;
189
- }
190
- function getHeaderCellStyle(data) {
191
- const cellTitleStyle = columnStyleSourceConfig.value[data.column.property] ? columnStyleSourceConfig.value[data.column.property].titleStyle : null;
192
- const rowTitleStyle = runtimeStyle == null ? void 0 : runtimeStyle.titleStyle;
193
- return getHeaderCellStyleUtil(
194
- data,
195
- { cellTitleStyle, titleStyle: rowTitleStyle },
196
- props
197
- );
198
- }
199
- function getRowStyle(data) {
200
- return getRowStyleUtil(data, groupSummaryDataRowIndex, props);
201
- }
202
- function getCellStyle(data) {
203
- const cellStyles = columnStyleSourceConfig.value[data.column.property] ? columnStyleSourceConfig.value[data.column.property].cellStyle : null;
204
- return getCellStyleUtil(data, cellStyles, props);
205
- }
206
- const getSummaries = (param) => {
207
- const { columns, data } = param;
208
- const sums = [];
209
- columns.forEach((column, index) => {
210
- if (tableSummaryTitle.value[column.property]) {
211
- const label = tableSummaryTitle.value[column.property].label;
212
- sums[index] = h("div", {}, [replacePlaceholders(label, data)]);
213
- return;
214
- }
215
- if (tableSummaryColumns.value[column.property]) {
216
- const scientificData = data.filter((item, index2) => !groupSummaryDataRowIndex.includes(index2));
217
- sums[index] = summaryStatistics(
218
- tableSummaryColumns.value[column.property],
219
- scientificData,
220
- column.property,
221
- props.pageContext
222
- );
223
- }
224
- });
225
- return sums;
226
- };
227
- function spanMethod({ row, column, rowIndex, columnIndex }) {
228
- const property = column.property;
229
- const highOrder = props.configure.props.highOrder;
230
- if (highOrder.scopeFunc) {
231
- const func = getCustomFunc(props.pageContext, highOrder.scopeFunc);
232
- if (func) {
233
- const resultValue = func.apply(func, [
234
- { tableData: tableData.value, row, column, rowIndex, columnIndex }
235
- ]);
236
- if (resultValue) {
237
- return resultValue;
238
- }
239
- }
240
- } else {
241
- if (highOrder && highOrder.mergeColumn) ;
242
- if (highOrder && highOrder.mergeRow && highOrder.mergeRow.includes(property)) {
243
- if (rowIndex === 0) {
244
- return {
245
- rowspan: tableData.value.length,
246
- colspan: 1
247
- };
248
- }
249
- }
250
- }
251
- }
252
- function updateColumnConfig(columnConfig, pivotedData, columnFields, valueFields) {
253
- const updatedConfig = [...columnConfig].filter(
254
- (item) => !columnFields.includes(item.props.base.prop) && !valueFields.includes(item.props.base.prop)
255
- );
256
- const valueFieldsRegex = new RegExp(`(${valueFields.join("|")})$`);
257
- const columnCombinations = /* @__PURE__ */ new Set();
258
- pivotedData.forEach((record) => {
259
- Object.keys(record).forEach((key) => {
260
- if (valueFields.some((valueField) => key.includes(valueField))) {
261
- const parts = key.split(valueFieldsRegex);
262
- const combination = parts[0];
263
- columnCombinations.add(combination);
264
- }
265
- });
266
- });
267
- columnCombinations.forEach((combination) => {
268
- valueFields.forEach((valueField) => {
269
- var _a2;
270
- const name = (_a2 = tableColumnsConfig.value.find((item) => item.props.base.prop === valueField)) == null ? void 0 : _a2.props.base.name;
271
- const newConfigItem = {
272
- uuid: (/* @__PURE__ */ new Date()).getTime(),
273
- // 生成新的UUID
274
- name: "",
275
- props: {
276
- base: {
277
- prop: `${combination}${valueField}`,
278
- name: `${combination}${name}`,
279
- displayOrder: updatedConfig.length + 1,
280
- // 更新显示顺序
281
- sortable: true,
282
- headerAlign: "center",
283
- align: "center",
284
- fixed: false,
285
- visible: true,
286
- dataType: typeof pivotedData[0][`${combination}${valueField}`] === "number" ? "number" : "string"
287
- },
288
- format: {},
289
- size: {
290
- pc: {}
291
- }
292
- },
293
- style: {},
294
- componentIndex: 0,
295
- // 根据实际情况设置
296
- runtime: {
297
- common: {
298
- class: "",
299
- style: {
300
- pc_style: {},
301
- pc_class: ""
302
- }
18
+ }
19
+ function ge(e3) {
20
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
21
+ je(e4), "service" === A.configure.props.dataOrigin.dataSource && e4.result ? se = e4.result[A.configure.props.dataOrigin.service.serviceDataField] : "variable" === A.configure.props.dataOrigin.dataSource && (ce(), se = x(A.pageContext.entity, A.configure.props.dataOrigin.variable));
22
+ se && fe(se, e4);
23
+ }(e3), e3.hasRender = true, B && (B.autoRefresh = false));
24
+ }
25
+ function fe(e3, o2) {
26
+ var _a2;
27
+ if (de("rowToColumn")) {
28
+ if (e3 = T(e3, A.configure), !W.value) {
29
+ const o3 = function(e4, o4, n2, t2) {
30
+ const r2 = [...e4].filter((e5) => !n2.includes(e5.props.base.prop) && !t2.includes(e5.props.base.prop)), a2 = new RegExp(`(${t2.join("|")})$`), i2 = /* @__PURE__ */ new Set();
31
+ return o4.forEach((e5) => {
32
+ Object.keys(e5).forEach((e6) => {
33
+ if (t2.some((o5) => e6.includes(o5))) {
34
+ const o5 = e6.split(a2)[0];
35
+ i2.add(o5);
303
36
  }
304
- }
305
- };
306
- updatedConfig.push(newConfigItem);
307
- });
308
- });
309
- return updatedConfig;
310
- }
311
- function groupAndAddTotals(data, groupFields) {
312
- var _a2, _b;
313
- if (groupSummaryColumns.value.length === 0) {
314
- return data;
315
- }
316
- const result = [];
317
- const groupColumns = (_a2 = props.configure.items) == null ? void 0 : _a2.filter(
318
- (item) => groupFields.includes(item.props.base.prop)
319
- );
320
- const summaryColumns = (_b = props.configure.items) == null ? void 0 : _b.filter(
321
- (item) => item.props.base.groupSummary === true
322
- );
323
- const groupedData = {};
324
- data.forEach((item) => {
325
- const key = groupFields.map((field) => item[field]).join("|");
326
- if (!groupedData[key]) {
327
- groupedData[key] = [];
328
- }
329
- groupedData[key].push(item);
330
- });
331
- const groupResult = Object.values(groupedData);
332
- for (let i = 0; i < groupResult.length; i++) {
333
- const group = groupResult[i];
334
- const total2 = {};
335
- summaryColumns == null ? void 0 : summaryColumns.forEach((column) => {
336
- const prop = column.props.base.prop;
337
- const res = summaryStatistics(groupSummaryColumns.value[prop], group, prop, props.pageContext);
338
- total2[prop] = res;
339
- });
340
- result.push(...group);
341
- groupColumns == null ? void 0 : groupColumns.forEach((column) => {
342
- const prop = column.props.base.prop;
343
- total2[prop] = replacePlaceholders(column.props.base.summaryTitle, group[0]);
344
- });
345
- result.push(total2);
346
- groupSummaryDataRowIndex.push(result.length - 1);
347
- }
348
- return result;
349
- }
350
- function pushTableIndexColumn(tableColumnsConfig2) {
351
- if (props.configure.props.base.showIndex && tableColumnsConfig2.findIndex((item) => item.props.base.prop === "$index") === -1) {
352
- const indexColumn = getIndexColumn();
353
- if (indexColumn) {
354
- tableColumnsConfig2.unshift(indexColumn);
355
- }
356
- }
357
- }
358
- function tableDataPageination(resultData) {
359
- if (props.configure.pageination.type === "frontend") {
360
- total.value = tmpTableData.length;
361
- frontendPageination(1, props.configure.pageination.pageSize);
362
- } else if (props.configure.pageination.type === "backend") {
363
- tableData.value = tmpTableData;
364
- if (props.configure.pageination.totalFrom) {
365
- total.value = resultData.result[props.configure.pageination.totalFrom];
366
- }
367
- }
368
- }
369
- function pageChange(currentPage, pageSize) {
370
- if (props.configure.pageination.type === "frontend") {
371
- frontendPageination(currentPage, pageSize);
372
- } else {
373
- backendPageination(currentPage, pageSize);
374
- }
375
- }
376
- function pageSizeChange(currentPage, pageSize) {
377
- if (props.configure.pageination.type === "frontend") {
378
- frontendPageination(currentPage, pageSize);
379
- } else {
380
- backendPageination(currentPage, pageSize);
381
- }
382
- }
383
- function frontendPageination(currentPage, pageSize) {
384
- if (tmpTableData) {
385
- tableData.value = tmpTableData.slice((currentPage - 1) * pageSize, currentPage * pageSize);
386
- }
387
- }
388
- function backendPageination(currentPage, pageSize) {
389
- if (props.configure.pageination.currentPageSet) {
390
- setValueForVariableName(
391
- props.pageContext.entity,
392
- props.configure.pageination.currentPageSet,
393
- currentPage
394
- );
395
- }
396
- if (props.configure.pageination.pageSizeSet) {
397
- setValueForVariableName(
398
- props.pageContext.entity,
399
- props.configure.pageination.pageSizeSet,
400
- pageSize
401
- );
402
- }
403
- updateChartDatasourcesByComponent(props.pageContext, props.configure.uuid);
404
- }
405
- function calacShowColumn(column) {
406
- const showCondition = column.showCondition;
407
- return caculateShowCondition(props.pageContext, showCondition);
408
- }
409
- function resetTableColumns() {
410
- console.log("重置统计表格列配置");
411
- if (!props.configure.props.modelCustom) {
412
- if (!isEnableGroupHeader.value) {
413
- tableColumnsConfig.value = props.configure.items;
414
- } else {
415
- groupColumnsConfig.value = props.configure.props.groupHeaders;
416
- }
417
- } else {
418
- setCustomColumns(null);
419
- }
420
- }
421
- function setCustomColumns(resultData) {
422
- if (props.configure.props.modelCustom) {
423
- const func = getCustomFunc(props.pageContext, props.configure.props.modelCustom);
424
- if (func) {
425
- const resultValue = func.apply(func, [
426
- {
427
- pageContext: props.pageContext,
428
- configureObj: props.configure,
429
- value: resultData
430
- }
431
- ]);
432
- if (isPromise(resultValue)) {
433
- resultValue.then((res) => {
434
- tableColumnsConfig.value = res.columns;
435
37
  });
436
- } else {
437
- tableColumnsConfig.value = resultValue.columns;
438
- }
439
- }
38
+ }), i2.forEach((e5) => {
39
+ t2.forEach((n3) => {
40
+ var _a3;
41
+ const t3 = (_a3 = Y.value.find((e6) => e6.props.base.prop === n3)) == null ? void 0 : _a3.props.base.name, a3 = { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: `${e5}${n3}`, name: `${e5}${t3}`, displayOrder: r2.length + 1, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "number" == typeof o4[0][`${e5}${n3}`] ? "number" : "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
42
+ r2.push(a3);
43
+ });
44
+ }), r2;
45
+ }(Y.value, e3, A.configure.props.dataOrigin.rowToColumn.titleColumns, A.configure.props.dataOrigin.rowToColumn.dataColumns);
46
+ Y.value = o3;
47
+ }
48
+ } else
49
+ de("columnToRow") && (W.value || (Y.value = _(A.configure)), e3 = z(e3, A.configure));
50
+ if (A.configure.props.dataOrigin.dataFormatting) {
51
+ const o3 = F(A.pageContext, A.configure.props.dataOrigin.dataFormatting);
52
+ if (o3) {
53
+ const n2 = o3.apply(o3, [{ tableData: e3 }]);
54
+ n2 && (e3 = n2);
55
+ }
56
+ }
57
+ if (Object.keys(ue.value).length > 0 && e3 && e3.length > 0 && D(ue.value, e3, A.pageContext.entity), ((_a2 = A.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
58
+ "frontend" === A.configure.pageination.type ? (pe.value = se.length, Oe(1, A.configure.pageination.pageSize)) : "backend" === A.configure.pageination.type && (X.value = se, A.configure.pageination.totalFrom && (pe.value = e4.result[A.configure.pageination.totalFrom]));
59
+ }(o2) : X.value = e3, A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0) {
60
+ const e4 = A.configure.props.highOrder.groupField;
61
+ X.value = function(e5, o3) {
62
+ var _a3, _b;
63
+ if (0 === re.value.length)
64
+ return e5;
65
+ const n2 = [], t2 = (_a3 = A.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), r2 = (_b = A.configure.items) == null ? void 0 : _b.filter((e6) => true === e6.props.base.groupSummary), a2 = {};
66
+ e5.forEach((e6) => {
67
+ const n3 = o3.map((o4) => e6[o4]).join("|");
68
+ a2[n3] || (a2[n3] = []), a2[n3].push(e6);
69
+ });
70
+ const i2 = Object.values(a2);
71
+ for (let e6 = 0; e6 < i2.length; e6++) {
72
+ const o4 = i2[e6], a3 = {};
73
+ r2 == null ? void 0 : r2.forEach((e7) => {
74
+ const n3 = e7.props.base.prop, t3 = H(re.value[n3], o4, n3, A.pageContext);
75
+ a3[n3] = t3;
76
+ }), n2.push(...o4), t2 == null ? void 0 : t2.forEach((e7) => {
77
+ const n3 = e7.props.base.prop;
78
+ a3[n3] = P(e7.props.base.summaryTitle, o4[0]);
79
+ }), n2.push(a3), ae.push(n2.length - 1);
80
+ }
81
+ return n2;
82
+ }(X.value, e4);
83
+ }
84
+ !function(e4) {
85
+ if (A.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
86
+ const o3 = U();
87
+ o3 && e4.unshift(o3);
88
+ }
89
+ }(Y.value);
90
+ }
91
+ function de(e3) {
92
+ return A.configure.props.dataOrigin.transition === e3 && A.configure.props.dataOrigin.groupField && A.configure.props.dataOrigin.groupField.length > 0 && A.configure.props.dataOrigin[e3].titleColumns && A.configure.props.dataOrigin[e3].titleColumns.length > 0 && A.configure.props.dataOrigin[e3].dataColumns && A.configure.props.dataOrigin[e3].dataColumns.length > 0;
93
+ }
94
+ function me(e3) {
95
+ const o2 = ie.value[e3.column.property] ? ie.value[e3.column.property].titleStyle : null, n2 = L == null ? void 0 : L.titleStyle;
96
+ return J(e3, { cellTitleStyle: o2, titleStyle: n2 }, A);
97
+ }
98
+ function he(e3) {
99
+ return K(e3, ae, A);
100
+ }
101
+ function ve(e3) {
102
+ const o2 = ie.value[e3.column.property] ? ie.value[e3.column.property].cellStyle : null;
103
+ return N(e3, o2, A);
104
+ }
105
+ A.configure.props.modelCustom || (W.value ? Z.value = A.configure.props.groupHeaders : Y.value = A.configure.items, (_a = A.configure.items) == null ? void 0 : _a.forEach((e3) => {
106
+ ee.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (ie.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (ue.value[e3.props.base.prop] = e3.formula);
107
+ })), oe.value = A.configure.props.base.showSummary, (oe.value || A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0) && (ne.value = R(A.configure), oe.value && (te.value = $(A.configure, "table")), A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0 && (re.value = $(A.configure, "group"))), n(() => {
108
+ const e3 = b(A.pageContext, A.configure);
109
+ if (e3)
110
+ ge(e3);
111
+ else if ("variable" === A.configure.props.dataOrigin.dataSource) {
112
+ ce();
113
+ const o2 = x(A.pageContext.entity, A.configure.props.dataOrigin.variable);
114
+ o2 && fe(o2, e3);
115
+ }
116
+ });
117
+ const ye = (e3) => {
118
+ const { columns: o2, data: n2 } = e3, t2 = [];
119
+ return o2.forEach((e4, o3) => {
120
+ if (ne.value[e4.property]) {
121
+ const r2 = ne.value[e4.property].label;
122
+ t2[o3] = y("div", {}, [P(r2, n2)]);
123
+ } else if (te.value[e4.property]) {
124
+ const r2 = n2.filter((e5, o4) => !ae.includes(o4));
125
+ t2[o3] = H(te.value[e4.property], r2, e4.property, A.pageContext);
126
+ }
127
+ }), t2;
128
+ };
129
+ function Ce({ row: e3, column: o2, rowIndex: n2, columnIndex: t2 }) {
130
+ const r2 = o2.property, a2 = A.configure.props.highOrder;
131
+ if (a2.scopeFunc) {
132
+ const r3 = F(A.pageContext, a2.scopeFunc);
133
+ if (r3) {
134
+ const a3 = r3.apply(r3, [{ tableData: X.value, row: e3, column: o2, rowIndex: n2, columnIndex: t2 }]);
135
+ if (a3)
136
+ return a3;
137
+ }
138
+ } else if (a2 && a2.mergeColumn, a2 && a2.mergeRow && a2.mergeRow.includes(r2) && 0 === n2)
139
+ return { rowspan: X.value.length, colspan: 1 };
140
+ }
141
+ function be(e3, o2) {
142
+ "frontend" === A.configure.pageination.type ? Oe(e3, o2) : Se(e3, o2);
143
+ }
144
+ function xe(e3, o2) {
145
+ "frontend" === A.configure.pageination.type ? Oe(e3, o2) : Se(e3, o2);
146
+ }
147
+ function Oe(e3, o2) {
148
+ se && (X.value = se.slice((e3 - 1) * o2, e3 * o2));
149
+ }
150
+ function Se(e3, o2) {
151
+ A.configure.pageination.currentPageSet && S(A.pageContext.entity, A.configure.pageination.currentPageSet, e3), A.configure.pageination.pageSizeSet && S(A.pageContext.entity, A.configure.pageination.pageSizeSet, o2), w(A.pageContext, A.configure.uuid);
152
+ }
153
+ function we(e3) {
154
+ const o2 = e3.showCondition;
155
+ return j(A.pageContext, o2);
156
+ }
157
+ function je(e3) {
158
+ if (A.configure.props.modelCustom) {
159
+ const o2 = F(A.pageContext, A.configure.props.modelCustom);
160
+ if (o2) {
161
+ const n2 = o2.apply(o2, [{ pageContext: A.pageContext, configureObj: A.configure, value: e3 }]);
162
+ O(n2) ? n2.then((e4) => {
163
+ Y.value = e4.columns;
164
+ }) : Y.value = n2.columns;
440
165
  }
441
166
  }
442
- function exportChart() {
443
- }
444
- __expose({
445
- updateChartDatas,
446
- exportChart
447
- });
448
- return (_ctx, _cache) => {
449
- const _component_el_table = resolveComponent("el-table");
450
- return openBlock(), createElementBlock("div", {
451
- style: normalizeStyle(unref(runtimeStyle)),
452
- class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
453
- ref: "thisRef"
454
- }, [
455
- withDirectives(createVNode(_sfc_main$1, {
456
- ref_key: "headerRef",
457
- ref: headerRef,
458
- headerInfo: unref(headerInfo),
459
- configure: __props.configure,
460
- pageContext: __props.pageContext
461
- }, null, 8, ["headerInfo", "configure", "pageContext"]), [
462
- [vShow, unref(headerInfo).showHeader]
463
- ]),
464
- createVNode(_component_el_table, {
465
- ref_key: "gridRef",
466
- ref: gridRef,
467
- data: tableData.value,
468
- style: { "width": "100%" },
469
- "header-cell-style": getHeaderCellStyle,
470
- "row-style": getRowStyle,
471
- "cell-style": getCellStyle,
472
- "show-summary": showSummary.value,
473
- stripe: __props.configure.props.base.stripe,
474
- "summary-method": getSummaries,
475
- "span-method": spanMethod
476
- }, {
477
- default: withCtx(() => [
478
- isEnableGroupHeader.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(groupColumnsConfig.value, (item, index) => {
479
- return openBlock(), createElementBlock(Fragment, { key: index }, [
480
- !item.isLeaf ? (openBlock(), createBlock(_sfc_main$2, {
481
- key: 0,
482
- configure: __props.configure,
483
- pageContext: __props.pageContext,
484
- groupColumn: item,
485
- columnsConfigKeyValues: columnsConfigKeyValues.value
486
- }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) : calacShowColumn(columnsConfigKeyValues.value[item.columnUuid]) ? (openBlock(), createBlock(_sfc_main$3, {
487
- key: 1,
488
- configure: __props.configure,
489
- pageContext: __props.pageContext,
490
- column: columnsConfigKeyValues.value[item.columnUuid]
491
- }, null, 8, ["configure", "pageContext", "column"])) : createCommentVNode("", true)
492
- ], 64);
493
- }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(tableColumnsConfig.value, (column, index) => {
494
- return openBlock(), createElementBlock(Fragment, { key: index }, [
495
- calacShowColumn(column) ? (openBlock(), createBlock(_sfc_main$3, {
496
- key: 0,
497
- column,
498
- configure: __props.configure,
499
- pageContext: __props.pageContext
500
- }, null, 8, ["column", "configure", "pageContext"])) : createCommentVNode("", true)
501
- ], 64);
502
- }), 128))
503
- ]),
504
- _: 1
505
- }, 8, ["data", "show-summary", "stripe"]),
506
- __props.configure.pageination && __props.configure.pageination.enable ? (openBlock(), createBlock(_sfc_main$4, {
507
- key: 0,
508
- configure: __props.configure,
509
- "table-data": tableData.value,
510
- total: total.value,
511
- onPageChange: pageChange,
512
- onPageSizeChange: pageSizeChange
513
- }, null, 8, ["configure", "table-data", "total"])) : createCommentVNode("", true)
514
- ], 6);
515
- };
516
167
  }
517
- });
168
+ return V2({ updateChartDatas: ge, exportChart: function() {
169
+ } }), (o2, n2) => {
170
+ const t2 = r("el-table");
171
+ return a(), i("div", { style: u(l(L)), class: p([l(q), "amb-widget-chart"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Q, headerInfo: l(M), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[g, l(M).showHeader]]), c(t2, { ref_key: "gridRef", ref: le, data: X.value, style: { width: "100%" }, "header-cell-style": me, "row-style": he, "cell-style": ve, "show-summary": oe.value, stripe: e2.configure.props.base.stripe, "summary-method": ye, "span-method": Ce }, { default: f(() => [W.value ? (a(true), i(d, { key: 0 }, m(Z.value, (o3, n3) => (a(), i(d, { key: n3 }, [o3.isLeaf ? we(ee.value[o3.columnUuid]) ? (a(), h(E, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: ee.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : v("", true) : (a(), h(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: ee.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(d, { key: 1 }, m(Y.value, (o3, n3) => (a(), i(d, { key: n3 }, [we(o3) ? (a(), h(E, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : v("", true)], 64))), 128))]), _: 1 }, 8, ["data", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), h(I, { key: 0, configure: e2.configure, "table-data": X.value, total: pe.value, onPageChange: be, onPageSizeChange: xe }, null, 8, ["configure", "table-data", "total"])) : v("", true)], 6);
172
+ };
173
+ } });
518
174
  export {
519
- _sfc_main as default
175
+ V as default
520
176
  };