super-page-runtime 2.2.29-tmp2 → 2.2.32

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 (167) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +5 -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 +135 -443
  7. package/dist/es/components/runtime/utils/assemblys-config.js +13 -369
  8. package/dist/es/components/runtime/utils/barcode-util.js +9 -33
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +224 -522
  15. package/dist/es/components/runtime/utils/common-util.js +76 -156
  16. package/dist/es/components/runtime/utils/eventBus.js +3 -8
  17. package/dist/es/components/runtime/utils/events/event-util.js +362 -775
  18. package/dist/es/components/runtime/utils/events/print-label.js +72 -140
  19. package/dist/es/components/runtime/utils/events/standard-event.js +808 -2320
  20. package/dist/es/components/runtime/utils/events/validator-util.js +224 -560
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
  22. package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
  23. package/dist/es/components/runtime/utils/global-refs.js +53 -84
  24. package/dist/es/components/runtime/utils/i18n-util.js +11 -20
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +6 -0
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  27. package/dist/es/components/runtime/utils/page-helper-util.js +280 -660
  28. package/dist/es/components/runtime/utils/page-init-util.js +141 -406
  29. package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
  30. package/dist/es/components/runtime/utils/page-store.js +23 -68
  31. package/dist/es/components/runtime/utils/store-util.js +9 -13
  32. package/dist/es/components/runtime/utils/store.js +2 -2
  33. package/dist/es/components/runtime/utils/table-utils.d.ts +4 -0
  34. package/dist/es/components/runtime/utils/table-utils.js +40 -81
  35. package/dist/es/components/runtime/utils/tree-utils.js +17 -37
  36. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +21 -83
  38. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  40. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
  42. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  44. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  46. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -203
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  54. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
  55. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +46 -162
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -109
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -166
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -117
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -118
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +246 -597
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  68. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +29 -160
  70. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  73. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +212 -594
  75. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  76. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
  78. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  80. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  81. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  83. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  85. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  87. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  89. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  91. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  93. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  95. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  97. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  98. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  99. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +317 -810
  100. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  101. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +262 -635
  102. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  103. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
  105. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
  107. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  108. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  110. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
  111. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
  112. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  113. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
  115. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +68 -239
  117. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -109
  119. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
  121. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +56 -188
  123. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  125. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -245
  127. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  128. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
  129. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  130. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  131. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  132. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  133. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +64 -194
  135. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +88 -249
  137. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +80 -263
  139. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  141. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  143. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  144. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
  145. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  146. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  147. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +89 -188
  148. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -272
  150. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
  153. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  154. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
  155. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  156. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
  157. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  158. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  159. package/dist/es/components/runtime/views/home-chart.vue.js +41 -160
  160. package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
  161. package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -139
  162. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  163. package/dist/es/components/runtime/views/super-page.vue.js +226 -754
  164. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  165. package/dist/es/i18n/langs/cn.js +2 -55
  166. package/dist/es/i18n/langs/en.js +2 -55
  167. package/package.json +2 -2
@@ -1,112 +1,35 @@
1
- import { defineComponent, ref, onMounted, watch, createElementBlock, openBlock, normalizeClass, normalizeStyle, unref, withDirectives, createVNode, vShow } from "vue";
2
- import { getCustomTheme, initChartOption, exportCommonChart } from "../../../../utils/charts/chart-util.js";
3
- import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
4
- import { updateChartOption } from "../../../../utils/charts/chart-gauge-util.js";
5
- import _sfc_main$1 from "../common/common-chart-header.vue.js";
6
- import { use } from "echarts/core";
7
- import { CanvasRenderer } from "echarts/renderers";
8
- import { GaugeChart } from "echarts/charts";
9
- import { GridComponent, TitleComponent, TooltipComponent, ToolboxComponent } from "echarts/components";
10
- import VChart from "vue-echarts";
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- __name: "gauge-runtime",
13
- props: {
14
- pageContext: {},
15
- configure: {}
16
- },
17
- setup(__props, { expose: __expose }) {
18
- use([CanvasRenderer, GaugeChart, GridComponent, TitleComponent, TooltipComponent, ToolboxComponent]);
19
- const props = __props;
20
- const thisRef = ref(null);
21
- const chartRef = ref(null);
22
- const headerRef = ref(null);
23
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
24
- const runtimeStyle = runtimeInfo.style;
25
- const runtimeClass = runtimeInfo.class;
26
- const dataConfig = runtimeInfo.dataConfig;
27
- const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
28
- const chartOption = runtimeInfo.chartOption;
29
- const configureProps = props.configure.props ? props.configure.props : {};
30
- const customTheme = getCustomTheme(configureProps.customTheme);
31
- initChartOption(props.configure, chartOption);
32
- onMounted(() => {
33
- const resultData = getChartDatasFromPage(props.pageContext, props.configure);
34
- if (resultData) {
35
- updateChartDatas(resultData);
36
- }
37
- });
38
- let hisGroupValue = headerInfo.groupValue;
39
- watch(headerInfo, () => {
40
- if (hisGroupValue == headerInfo.groupValue) {
41
- return;
42
- }
43
- hisGroupValue = headerInfo.groupValue;
44
- if (dataConfig) {
45
- dataConfig.services[0].groupValue = headerInfo.groupValue;
46
- }
47
- refresh();
48
- });
49
- function refresh() {
50
- if (!dataConfig) {
51
- console.log("无数据源配置,不需要查询!");
52
- return;
53
- }
54
- updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
55
- }
56
- const monitorFields = headerInfo.monitorFields;
57
- monitorFieldChange(props.pageContext, monitorFields, refresh);
58
- function updateChartDatas(resultData) {
59
- if (!resultData) {
60
- resultData = [];
61
- }
62
- resultData = resultData.length > 0 ? resultData[0] : {};
63
- if (!resultData) {
64
- resultData = {};
65
- }
66
- if (resultData.hasRender) {
67
- resultData.hasRender = true;
68
- console.log("重复更新!", resultData);
69
- return;
70
- }
71
- resultData.hasRender = true;
72
- console.log("gauge resultData", resultData);
73
- updateChartOption(props.pageContext, props.configure, chartOption, resultData);
74
- console.log("chartOption", chartOption);
75
- }
76
- function exportChart() {
77
- return exportCommonChart(chartRef.value);
78
- }
79
- __expose({
80
- updateChartDatas,
81
- exportChart
82
- });
83
- return (_ctx, _cache) => {
84
- return openBlock(), createElementBlock("div", {
85
- style: normalizeStyle(unref(runtimeStyle)),
86
- class: normalizeClass([unref(runtimeClass), "amb-widget-chart amb-widget-flex"]),
87
- ref_key: "thisRef",
88
- ref: thisRef
89
- }, [
90
- withDirectives(createVNode(_sfc_main$1, {
91
- ref_key: "headerRef",
92
- ref: headerRef,
93
- headerInfo: unref(headerInfo),
94
- configure: _ctx.configure,
95
- pageContext: _ctx.pageContext
96
- }, null, 8, ["headerInfo", "configure", "pageContext"]), [
97
- [vShow, unref(headerInfo).showHeader || _ctx.pageContext.showHomepageSearch]
98
- ]),
99
- createVNode(unref(VChart), {
100
- ref_key: "chartRef",
101
- ref: chartRef,
102
- theme: unref(customTheme),
103
- option: unref(chartOption),
104
- autoresize: ""
105
- }, null, 8, ["theme", "option"])
106
- ], 6);
107
- };
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as i, unref as s, withDirectives as p, createVNode as c, vShow as f } from "vue";
2
+ import { getCustomTheme as m, initChartOption as g, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
3
+ import { getChartDatasFromPage as l, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
+ import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
5
+ import v from "../common/common-chart-header.vue.js";
6
+ import { use as R } from "echarts/core";
7
+ import { CanvasRenderer as y } from "echarts/renderers";
8
+ import { GaugeChart as V } from "echarts/charts";
9
+ import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I } from "echarts/components";
10
+ import k from "vue-echarts";
11
+ const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
12
+ R([y, V, _, j, w, I]);
13
+ const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, A = O.chartOption, B = H.configure.props ? H.configure.props : {}, E = m(B.customTheme);
14
+ g(H.configure, A), t(() => {
15
+ const e3 = l(H.pageContext, H.configure);
16
+ e3 && L(e3);
17
+ });
18
+ let G = q.groupValue;
19
+ function J() {
20
+ T && d(H.pageContext, [T], q.drillParams);
108
21
  }
109
- });
22
+ o(q, () => {
23
+ G != q.groupValue && (G = q.groupValue, T && (T.services[0].groupValue = q.groupValue), J());
24
+ });
25
+ const K = q.monitorFields;
26
+ function L(e3) {
27
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, A, e3));
28
+ }
29
+ return x(H.pageContext, K, J), b2({ updateChartDatas: L, exportChart: function() {
30
+ return h(D.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: i(s(P)), class: u([s(S), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [p(c(v, { ref_key: "headerRef", ref: F, headerInfo: s(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(q).showHeader || e3.pageContext.showHomepageSearch]]), c(s(k), { ref_key: "chartRef", ref: D, theme: s(E), option: s(A), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
+ } });
110
33
  export {
111
- _sfc_main as default
34
+ b as default
112
35
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./pie-runtime.vue2.js";
1
+ import e from "./pie-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,169 +1,46 @@
1
- import { defineComponent, ref, onMounted, watch, createElementBlock, openBlock, normalizeClass, normalizeStyle, unref, withDirectives, createVNode, vShow } from "vue";
2
- import { getCustomTheme, initChartOption, monitorChartClickToVariable, clearChartSelected, exportCommonChart } from "../../../../utils/charts/chart-util.js";
3
- import { updateChartOption } from "../../../../utils/charts/chart-pie-util.js";
4
- import { doClickJumpPageEvent } from "../../../../utils/events/event-util.js";
5
- import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
6
- import _sfc_main$1 from "../common/common-chart-header.vue.js";
7
- import { use } from "echarts/core";
8
- import { CanvasRenderer } from "echarts/renderers";
9
- import { PieChart } from "echarts/charts";
10
- import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent } from "echarts/components";
11
- import VChart from "vue-echarts";
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- __name: "pie-runtime",
14
- props: {
15
- pageContext: {},
16
- configure: {}
17
- },
18
- setup(__props, { expose: __expose }) {
19
- use([
20
- CanvasRenderer,
21
- PieChart,
22
- GridComponent,
23
- LegendComponent,
24
- TitleComponent,
25
- TooltipComponent,
26
- ToolboxComponent
27
- ]);
28
- const props = __props;
29
- const thisRef = ref(null);
30
- const chartRef = ref(null);
31
- const headerRef = ref(null);
32
- const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
33
- const drillEndTrigger = props.configure.props ? props.configure.props.drillEndTrigger : null;
34
- const linkPage = props.configure.props ? props.configure.props.linkPage : null;
35
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
36
- const runtimeStyle = runtimeInfo.style;
37
- const runtimeClass = runtimeInfo.class;
38
- const dataConfig = runtimeInfo.dataConfig;
39
- const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
40
- const chartOption = runtimeInfo.chartOption;
41
- const configureProps = props.configure.props ? props.configure.props : {};
42
- const customTheme = getCustomTheme(configureProps.customTheme);
43
- initChartOption(props.configure, chartOption);
44
- onMounted(() => {
45
- const resultData = getChartDatasFromPage(props.pageContext, props.configure);
46
- if (resultData) {
47
- updateChartDatas(resultData);
48
- }
49
- if (chartRef.value && (enableDrill || linkPage && linkPage.jumpPageUrl)) {
50
- chartRef.value.chart.on("click", function(params) {
51
- if (enableDrill) {
52
- if (headerRef.value && headerRef.value.drill) {
53
- headerRef.value.drill(params, props.configure.cacheDatas);
54
- }
55
- } else {
56
- clickToLink();
57
- }
58
- });
59
- }
60
- if (!enableDrill && props.configure.clickSet && chartRef.value) {
61
- monitorChartClickToVariable(props.pageContext, props.configure, chartRef.value.chart);
62
- }
63
- });
64
- function onDrillEnd(params) {
65
- if (drillEndTrigger == "clearDrill") {
66
- if (headerRef.value && headerRef.value.closeDrill) {
67
- headerRef.value.closeDrill(0);
68
- }
69
- } else if (drillEndTrigger == "clickEvent") {
70
- clickToLink();
71
- }
72
- }
73
- function clickToLink() {
74
- if (!linkPage || !linkPage.jumpPageUrl) {
75
- return;
76
- }
77
- doClickJumpPageEvent(props.pageContext, props.configure, void 0);
78
- }
79
- let hisGroupValue = headerInfo.groupValue;
80
- watch(headerInfo, () => {
81
- if (hisGroupValue == headerInfo.groupValue) {
82
- return;
83
- }
84
- hisGroupValue = headerInfo.groupValue;
85
- if (dataConfig) {
86
- dataConfig.services[0].groupValue = headerInfo.groupValue;
87
- }
88
- refresh(false);
89
- });
90
- function refresh(isHandle) {
91
- if (!dataConfig) {
92
- console.log("无数据源配置,不需要查询!");
93
- return;
94
- }
95
- if (isHandle !== true) {
96
- dataConfig.autoRefresh = true;
97
- }
98
- updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
99
- }
100
- const monitorFields = headerInfo.monitorFields;
101
- monitorFieldChange(props.pageContext, monitorFields, () => {
102
- refresh(true);
103
- });
104
- function updateChartDatas(resultData) {
105
- if (!resultData) {
106
- resultData = [];
107
- }
108
- resultData = resultData.length > 0 ? resultData[0] : {};
109
- if (!resultData) {
110
- resultData = {};
111
- }
112
- if (resultData.hasRender) {
113
- resultData.hasRender = true;
114
- console.log("重复更新!", resultData);
115
- return;
116
- }
117
- resultData.hasRender = true;
118
- if (!dataConfig.autoRefresh) {
119
- hisGroupValue = resultData.groupValue;
120
- if (hisGroupValue && headerInfo.groupComponent !== "checkbox") {
121
- hisGroupValue = hisGroupValue.join(",");
122
- }
123
- headerInfo.groupValue = hisGroupValue;
124
- }
125
- if (!dataConfig.autoRefresh || !enableDrill) {
126
- clearChartSelected(props.pageContext, props.configure, chartRef.value.chart);
127
- }
128
- dataConfig.autoRefresh = false;
129
- updateChartOption(props.pageContext, props.configure, chartOption, resultData);
130
- console.log("chartOption--pie", chartOption);
131
- }
132
- function exportChart() {
133
- return exportCommonChart(chartRef.value);
134
- }
135
- __expose({
136
- updateChartDatas,
137
- exportChart
138
- });
139
- return (_ctx, _cache) => {
140
- return openBlock(), createElementBlock("div", {
141
- style: normalizeStyle(unref(runtimeStyle)),
142
- class: normalizeClass([unref(runtimeClass), "amb-widget-chart amb-widget-flex"]),
143
- ref_key: "thisRef",
144
- ref: thisRef
145
- }, [
146
- withDirectives(createVNode(_sfc_main$1, {
147
- ref_key: "headerRef",
148
- ref: headerRef,
149
- headerInfo: unref(headerInfo),
150
- configure: _ctx.configure,
151
- pageContext: _ctx.pageContext,
152
- onDrillEnd
153
- }, null, 8, ["headerInfo", "configure", "pageContext"]), [
154
- [vShow, unref(headerInfo).showHeader || _ctx.pageContext.showHomepageSearch]
155
- ]),
156
- createVNode(unref(VChart), {
157
- ref_key: "chartRef",
158
- ref: chartRef,
159
- theme: unref(customTheme),
160
- option: unref(chartOption),
161
- autoresize: ""
162
- }, null, 8, ["theme", "option"])
163
- ], 6);
164
- };
1
+ import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as l, unref as i, withDirectives as c, createVNode as p, vShow as s } from "vue";
2
+ import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
3
+ import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
4
+ import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
5
+ import { getChartDatasFromPage as C, updateChartDatasources as R, monitorFieldChange as j } from "../../../../utils/page-helper-util.js";
6
+ import k from "../common/common-chart-header.vue.js";
7
+ import { use as D } from "echarts/core";
8
+ import { CanvasRenderer as V } from "echarts/renderers";
9
+ import { PieChart as y } from "echarts/charts";
10
+ import { GridComponent as _, LegendComponent as b, TitleComponent as w, TooltipComponent as I, ToolboxComponent as P } from "echarts/components";
11
+ import E from "vue-echarts";
12
+ const H = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
13
+ D([V, y, _, b, w, I, P]);
14
+ const S = e2, T = r(null), U = r(null), z = r(null), F = S.configure.props ? S.configure.props.enableDrill : null, O = S.configure.props ? S.configure.props.drillEndTrigger : null, q = S.configure.props ? S.configure.props.linkPage : null, A = S.configure.runtime ? S.configure.runtime : {}, B = A.style, G = A.class, J = A.dataConfig, K = A.headerInfo ? A.headerInfo : {}, L = A.chartOption, M = S.configure.props ? S.configure.props : {}, N = f(M.customTheme);
15
+ function Q(e3) {
16
+ "clearDrill" == O ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" == O && W();
165
17
  }
166
- });
18
+ function W() {
19
+ q && q.jumpPageUrl && x(S.pageContext, S.configure, void 0);
20
+ }
21
+ g(S.configure, L), o(() => {
22
+ const e3 = C(S.pageContext, S.configure);
23
+ e3 && $(e3), U.value && (F || q && q.jumpPageUrl) && U.value.chart.on("click", function(e4) {
24
+ F ? z.value && z.value.drill && z.value.drill(e4, S.configure.cacheDatas) : W();
25
+ }), !F && S.configure.clickSet && U.value && h(S.pageContext, S.configure, U.value.chart);
26
+ });
27
+ let X = K.groupValue;
28
+ function Y(e3) {
29
+ J && (true !== e3 && (J.autoRefresh = true), R(S.pageContext, [J], K.drillParams));
30
+ }
31
+ t(K, () => {
32
+ X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
33
+ });
34
+ const Z = K.monitorFields;
35
+ function $(e3) {
36
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && F || m(S.pageContext, S.configure, U.value.chart), J.autoRefresh = false, v(S.pageContext, S.configure, L, e3));
37
+ }
38
+ return j(S.pageContext, Z, () => {
39
+ Y(true);
40
+ }), H2({ updateChartDatas: $, exportChart: function() {
41
+ return d(U.value);
42
+ } }), (e3, r2) => (a(), n("div", { style: l(i(B)), class: u([i(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: T }, [c(p(k, { ref_key: "headerRef", ref: z, headerInfo: i(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, i(K).showHeader || e3.pageContext.showHomepageSearch]]), p(i(E), { ref_key: "chartRef", ref: U, theme: i(N), option: i(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
43
+ } });
167
44
  export {
168
- _sfc_main as default
45
+ H as default
169
46
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./radar-runtime.vue2.js";
1
+ import r from "./radar-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ r as default
4
4
  };
@@ -1,120 +1,35 @@
1
- import { defineComponent, ref, onMounted, watch, createElementBlock, openBlock, normalizeClass, normalizeStyle, unref, withDirectives, createVNode, vShow } from "vue";
2
- import { getCustomTheme, initChartOption, exportCommonChart } from "../../../../utils/charts/chart-util.js";
3
- import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
4
- import { updateChartOption } from "../../../../utils/charts/chart-radar-util.js";
5
- import _sfc_main$1 from "../common/common-chart-header.vue.js";
6
- import { use } from "echarts/core";
7
- import { CanvasRenderer } from "echarts/renderers";
8
- import { RadarChart } from "echarts/charts";
9
- import { GridComponent, TitleComponent, TooltipComponent, ToolboxComponent, LegendComponent } from "echarts/components";
10
- import VChart from "vue-echarts";
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- __name: "radar-runtime",
13
- props: {
14
- pageContext: {},
15
- configure: {}
16
- },
17
- setup(__props, { expose: __expose }) {
18
- use([
19
- CanvasRenderer,
20
- RadarChart,
21
- GridComponent,
22
- TitleComponent,
23
- TooltipComponent,
24
- ToolboxComponent,
25
- LegendComponent
26
- ]);
27
- const props = __props;
28
- const thisRef = ref(null);
29
- const chartRef = ref(null);
30
- const headerRef = ref(null);
31
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
32
- const runtimeStyle = runtimeInfo.style;
33
- const runtimeClass = runtimeInfo.class;
34
- const dataConfig = runtimeInfo.dataConfig;
35
- const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
36
- const chartOption = runtimeInfo.chartOption;
37
- const configureProps = props.configure.props ? props.configure.props : {};
38
- const customTheme = getCustomTheme(configureProps.customTheme);
39
- initChartOption(props.configure, chartOption);
40
- console.log("chartOption", chartOption);
41
- onMounted(() => {
42
- const resultData = getChartDatasFromPage(props.pageContext, props.configure);
43
- if (resultData) {
44
- updateChartDatas(resultData);
45
- }
46
- });
47
- let hisGroupValue = headerInfo.groupValue;
48
- watch(headerInfo, () => {
49
- if (hisGroupValue == headerInfo.groupValue) {
50
- return;
51
- }
52
- hisGroupValue = headerInfo.groupValue;
53
- if (dataConfig) {
54
- dataConfig.services[0].groupValue = headerInfo.groupValue;
55
- }
56
- refresh();
57
- });
58
- function refresh() {
59
- if (!dataConfig) {
60
- console.log("无数据源配置,不需要查询!");
61
- return;
62
- }
63
- updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
64
- }
65
- const monitorFields = headerInfo.monitorFields;
66
- monitorFieldChange(props.pageContext, monitorFields, refresh);
67
- function updateChartDatas(resultData) {
68
- if (!resultData) {
69
- resultData = [];
70
- }
71
- resultData = resultData.length > 0 ? resultData[0] : {};
72
- if (!resultData) {
73
- resultData = {};
74
- }
75
- if (resultData.hasRender) {
76
- resultData.hasRender = true;
77
- console.log("重复更新!", resultData);
78
- return;
79
- }
80
- resultData.hasRender = true;
81
- updateChartOption(props.pageContext, props.configure, chartOption, resultData);
82
- console.log("chartOption", chartOption);
83
- }
84
- function exportChart() {
85
- return exportCommonChart(chartRef.value);
86
- }
87
- __expose({
88
- updateChartDatas,
89
- exportChart
90
- });
91
- return (_ctx, _cache) => {
92
- return openBlock(), createElementBlock("div", {
93
- style: normalizeStyle(unref(runtimeStyle)),
94
- class: normalizeClass([unref(runtimeClass), "amb-widget-chart amb-widget-flex"]),
95
- ref_key: "thisRef",
96
- ref: thisRef
97
- }, [
98
- withDirectives(createVNode(_sfc_main$1, {
99
- ref_key: "headerRef",
100
- ref: headerRef,
101
- headerInfo: unref(headerInfo),
102
- configure: _ctx.configure,
103
- pageContext: _ctx.pageContext
104
- }, null, 8, ["headerInfo", "configure", "pageContext"]), [
105
- [vShow, unref(headerInfo).showHeader || _ctx.pageContext.showHomepageSearch]
106
- ]),
107
- createVNode(unref(VChart), {
108
- ref_key: "chartRef",
109
- ref: chartRef,
110
- theme: unref(customTheme),
111
- option: unref(chartOption),
112
- autoresize: ""
113
- }, null, 8, ["theme", "option"])
114
- ], 6);
115
- };
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as i, unref as s, withDirectives as p, createVNode as c, vShow as f } from "vue";
2
+ import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
+ import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
+ import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
5
+ import v from "../common/common-chart-header.vue.js";
6
+ import { use as R } from "echarts/core";
7
+ import { CanvasRenderer as y } from "echarts/renderers";
8
+ import { RadarChart as V } from "echarts/charts";
9
+ import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, LegendComponent as k } from "echarts/components";
10
+ import b from "vue-echarts";
11
+ const H = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
12
+ R([y, V, _, j, w, I, k]);
13
+ const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, A = P.headerInfo ? P.headerInfo : {}, B = P.chartOption, E = z.configure.props ? z.configure.props : {}, G = m(E.customTheme);
14
+ h(z.configure, B), t(() => {
15
+ const e3 = g(z.pageContext, z.configure);
16
+ e3 && M(e3);
17
+ });
18
+ let J = A.groupValue;
19
+ function K() {
20
+ q && d(z.pageContext, [q], A.drillParams);
116
21
  }
117
- });
22
+ o(A, () => {
23
+ J != A.groupValue && (J = A.groupValue, q && (q.services[0].groupValue = A.groupValue), K());
24
+ });
25
+ const L = A.monitorFields;
26
+ function M(e3) {
27
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(z.pageContext, z.configure, B, e3));
28
+ }
29
+ return x(z.pageContext, L, K), H2({ updateChartDatas: M, exportChart: function() {
30
+ return l(F.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: i(s(S)), class: u([s(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: D }, [p(c(v, { ref_key: "headerRef", ref: O, headerInfo: s(A), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(A).showHeader || e3.pageContext.showHomepageSearch]]), c(s(b), { ref_key: "chartRef", ref: F, theme: s(G), option: s(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
+ } });
118
33
  export {
119
- _sfc_main as default
34
+ H as default
120
35
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./scatter-runtime.vue2.js";
1
+ import t from "./scatter-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ t as default
4
4
  };