super-page-runtime 2.2.3 → 2.2.6

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 (110) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.js +276 -326
  17. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  18. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  19. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  20. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  21. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  22. package/dist/es/components/runtime/utils/page-helper-util.js +58 -104
  23. package/dist/es/components/runtime/utils/page-init-util.js +30 -37
  24. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  25. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  26. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  27. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  28. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  29. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  31. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  34. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  40. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  41. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  42. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  43. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +33 -1
  44. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
  45. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  46. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +123 -116
  50. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  51. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  53. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  54. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  55. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  65. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +46 -57
  66. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
  67. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  68. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  69. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  70. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  72. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  73. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  74. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  75. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +5 -5
  76. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  77. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  78. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  79. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  80. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  81. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  85. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  86. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  87. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  90. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  91. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  92. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  93. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  94. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  95. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
  96. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  97. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  98. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  99. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  100. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  101. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  102. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  103. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  104. package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
  105. package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
  106. package/dist/es/components/runtime/views/super-page.vue.js +25 -38
  107. package/dist/es/index.d.ts +2 -2
  108. package/dist/es/index.js +6 -4
  109. package/package.json +74 -74
  110. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, openBlock as i, createBlock as a, normalizeClass as r, unref as p, normalizeStyle as s, withCtx as c, createVNode as g, createElementBlock as f, Fragment as m, renderList as d, createTextVNode as v, toDisplayString as y } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, resolveComponent as u, createBlock as i, openBlock as a, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createElementBlock as g, Fragment as f, createTextVNode as m, toDisplayString as d, createVNode as v, renderList as y } from "vue";
2
2
  import { ArrowDown as b } from "@element-plus/icons-vue";
3
3
  import { formatVariableValue as C } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as k, handleEvent as x, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
@@ -22,8 +22,7 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
22
22
  } else {
23
23
  const l2 = (t2 ? t2 + "" : "").trim().split(",");
24
24
  e3 = [];
25
- for (let t3 of l2)
26
- e3.push({ value: t3, label: t3 });
25
+ for (let t3 of l2) e3.push({ value: t3, label: t3 });
27
26
  }
28
27
  return e3;
29
28
  }) : t(B.value.options ? B.value.options : []);
@@ -34,7 +33,7 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
34
33
  });
35
34
  }), (e3, t2) => {
36
35
  const l2 = u("el-button"), n2 = u("el-icon"), o2 = u("el-text"), C2 = u("el-dropdown-item"), k2 = u("el-dropdown-menu"), _2 = u("el-dropdown");
37
- return i(), a(_2, { ref_key: "componentRef", ref: V, class: r(p(A)), style: s(p(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [g(k2, null, { default: c(() => [(i(true), f(m, null, d(p(O), (t3, l3) => (i(), a(C2, { key: t3, onClick: (l4) => p(x)(l4, e3.pageContext, e3.configure, "menuClick", { menuItem: t3 }) }, { default: c(() => [v(y(p(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (i(), f(m, { key: 0 }, [B.value.splitButton ? (i(), f("span", z, y(B.value.title), 1)) : (i(), a(l2, { key: 0, size: B.value.size, type: B.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: c(() => [v(y(p(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (i(), a(o2, { key: 1 }, { default: c(() => [v(y(p(w)(B.value.title)) + " ", 1), g(n2, null, { default: c(() => [g(p(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
36
+ return a(), i(_2, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(k2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(C2, { key: t3, onClick: (l4) => s(x)(l4, e3.pageContext, e3.configure, "menuClick", { menuItem: t3 }) }, { default: c(() => [m(d(s(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (a(), g(f, { key: 0 }, [B.value.splitButton ? (a(), g("span", z, d(B.value.title), 1)) : (a(), i(l2, { key: 0, size: B.value.size, type: B.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => s(x)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: c(() => [m(d(s(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), i(o2, { key: 1 }, { default: c(() => [m(d(s(w)(B.value.title)) + " ", 1), v(n2, null, { default: c(() => [v(s(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
38
37
  };
39
38
  } });
40
39
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, openBlock as t, createBlock as o } from "vue";
1
+ import { defineComponent as e, createBlock as t, openBlock as o } from "vue";
2
2
  import n from "../button/button-runtime.vue2.js";
3
- const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (e3, r2) => (t(), o(n, { configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"])) });
3
+ const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (e3, r2) => (o(), t(n, { configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"])) });
4
4
  export {
5
5
  r as default
6
6
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as n, resolveComponent as u, openBlock as o, createBlock as a, normalizeClass as i, unref as p, normalizeStyle as r, withCtx as s, createVNode as g, createElementBlock as c, Fragment as m, renderList as f, createTextVNode as v, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as n, resolveComponent as u, createBlock as o, openBlock as a, normalizeStyle as i, normalizeClass as p, unref as r, withCtx as s, createElementBlock as g, Fragment as c, createTextVNode as m, toDisplayString as f, createVNode as v, renderList as d } from "vue";
2
2
  import "agilebuilder-ui";
3
3
  import { handleAfterInitEvent as y, handleEvent as b } from "../../../../utils/events/event-util.js";
4
4
  import k from "../button/button-runtime.vue2.js";
@@ -13,7 +13,7 @@ const x = { key: 1 }, _ = e({ __name: "printlabel-runtime", props: { pageContext
13
13
  });
14
14
  }), (e3, t2) => {
15
15
  const l2 = u("el-button"), n2 = u("ArrowDown"), y2 = u("el-icon"), _3 = u("el-text"), w2 = u("el-dropdown-item"), T = u("el-dropdown-menu"), h = u("el-dropdown");
16
- return j.value ? (o(), a(h, { key: 1, ref_key: "componentRef", ref: R, class: i(p(D)), style: r(p(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [g(T, null, { default: s(() => [(o(true), c(m, null, f(z.value.template, (t3, l3) => (o(), a(w2, { key: t3, onClick: (l4) => p(b)(l4, e3.pageContext, e3.configure, "click", { menuItem: t3 }) }, { default: s(() => [v(d(p(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (o(), c(m, { key: 0 }, [z.value.splitButton ? (o(), c("span", x, d(p(C)(z.value.title)), 1)) : (o(), a(l2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => p(b)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: s(() => [v(d(p(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (o(), a(_3, { key: 1 }, { default: s(() => [v(d(p(C)(z.value.title)) + " ", 1), g(y2, null, { default: s(() => [g(n2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (o(), a(k, { key: 0, configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]));
16
+ return j.value ? (a(), o(h, { key: 1, ref_key: "componentRef", ref: R, class: p(r(D)), style: i(r(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [v(T, null, { default: s(() => [(a(true), g(c, null, d(z.value.template, (t3, l3) => (a(), o(w2, { key: t3, onClick: (l4) => r(b)(l4, e3.pageContext, e3.configure, "click", { menuItem: t3 }) }, { default: s(() => [m(f(r(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (a(), g(c, { key: 0 }, [z.value.splitButton ? (a(), g("span", x, f(r(C)(z.value.title)), 1)) : (a(), o(l2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => r(b)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: s(() => [m(f(r(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), o(_3, { key: 1 }, { default: s(() => [m(f(r(C)(z.value.title)) + " ", 1), v(y2, null, { default: s(() => [v(n2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (a(), o(k, { key: 0, configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]));
17
17
  };
18
18
  } });
19
19
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as r, onMounted as o, watch as t, openBlock as n, createElementBlock as a, normalizeStyle as i, unref as u, normalizeClass 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 u, unref as s, withDirectives as l, createVNode as c, vShow as p } from "vue";
2
2
  import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
@@ -7,36 +7,32 @@ import R from "../common/common-chart-header.vue.js";
7
7
  import { use as j } from "echarts/core";
8
8
  import { CanvasRenderer as y } from "echarts/renderers";
9
9
  import { LineChart as D, BarChart as V } from "echarts/charts";
10
- import { GridComponent as P, LegendComponent as _, TitleComponent as b, TooltipComponent as T, ToolboxComponent as E, DataZoomComponent as O } from "echarts/components";
11
- import w from "vue-echarts";
12
- const N = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
13
- j([y, D, P, _, b, T, V, E, O]);
14
- const U = e2, z = r(null), F = r(), H = r(null), S = U.configure.props ? U.configure.props.enableDrill : null, q = U.configure.props ? U.configure.props.drillEndTrigger : null, A = U.configure.props ? U.configure.props.linkPage : null, B = {};
15
- if (U.configure.items)
16
- for (const e3 of U.configure.items)
17
- e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : A && A.jumpPageUrl && (B[e3.uuid] = U.configure);
18
- const G = U.configure.runtime ? U.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = U.configure.props ? U.configure.props : {}, X = f(W.customTheme);
10
+ import { GridComponent as P, LegendComponent as _, TitleComponent as b, TooltipComponent as T, ToolboxComponent as w, DataZoomComponent as E } from "echarts/components";
11
+ import O from "vue-echarts";
12
+ const H = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
13
+ j([y, D, P, _, b, T, V, w, E]);
14
+ const N = e2, S = r(null), U = r(), z = r(null), F = N.configure.props ? N.configure.props.enableDrill : null, q = N.configure.props ? N.configure.props.drillEndTrigger : null, A = N.configure.props ? N.configure.props.linkPage : null, B = {};
15
+ if (N.configure.items) for (const e3 of N.configure.items) e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : A && A.jumpPageUrl && (B[e3.uuid] = N.configure);
16
+ const G = N.configure.runtime ? N.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = N.configure.props ? N.configure.props : {}, X = f(W.customTheme);
19
17
  function Y(e3) {
20
- "clearDrill" == q ? H.value && H.value.closeDrill && H.value.closeDrill(0) : "clickEvent" === q && Z(e3);
18
+ "clearDrill" == q ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" === q && Z(e3);
21
19
  }
22
20
  function Z(e3) {
23
- if (e3.seriesIndex >= Q.series.length)
24
- return;
21
+ if (e3.seriesIndex >= Q.series.length) return;
25
22
  const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
26
- if (!o2)
27
- return;
23
+ if (!o2) return;
28
24
  const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
29
- k(U.pageContext, o2, t2);
25
+ k(N.pageContext, o2, t2);
30
26
  }
31
- g(U.configure, Q), o(() => {
32
- const e3 = v(U.pageContext, U.configure);
33
- e3 && oe(e3), F.value && (S || Object.keys(B).length > 0) && F.value.chart.on("click", function(e4) {
34
- S ? H.value && H.value.drill && H.value.drill(e4, U.configure.cacheDatas) : Z(e4);
35
- }), !S && U.configure.clickSet && F.value && m(U.pageContext, U.configure, F.value.chart);
27
+ g(N.configure, Q), o(() => {
28
+ const e3 = v(N.pageContext, N.configure);
29
+ e3 && oe(e3), U.value && (F || Object.keys(B).length > 0) && U.value.chart.on("click", function(e4) {
30
+ F ? z.value && z.value.drill && z.value.drill(e4, N.configure.cacheDatas) : Z(e4);
31
+ }), !F && N.configure.clickSet && U.value && m(N.pageContext, N.configure, U.value.chart);
36
32
  });
37
33
  let $ = M.groupValue;
38
34
  function ee(e3) {
39
- L && (true !== e3 && (L.autoRefresh = true), x(U.pageContext, [L], M.drillParams));
35
+ L && (true !== e3 && (L.autoRefresh = true), x(N.pageContext, [L], M.drillParams));
40
36
  }
41
37
  t(M, () => {
42
38
  $ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
@@ -44,14 +40,14 @@ const N = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
44
40
  const re = M.monitorFields;
45
41
  function oe(e3) {
46
42
  var _a;
47
- e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && S || h(U.pageContext, U.configure, (_a = F.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(U.pageContext, U.configure, Q, e3));
43
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && F || h(N.pageContext, N.configure, (_a = U.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(N.pageContext, N.configure, Q, e3));
48
44
  }
49
- return C(U.pageContext, re, () => {
45
+ return C(N.pageContext, re, () => {
50
46
  ee(true);
51
- }), N2({ updateChartDatas: oe, exportChart: function() {
52
- return d(F.value);
53
- }, chartOption: Q }), (e3, r2) => (n(), a("div", { style: i(u(J)), class: s([u(K), "amb-widget-chart"]), ref_key: "thisRef", ref: z }, [l(c(R, { ref_key: "headerRef", ref: H, headerInfo: u(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, u(M).showHeader]]), c(u(w), { ref_key: "chartRef", ref: F, theme: u(X), option: u(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
47
+ }), H2({ updateChartDatas: oe, exportChart: function() {
48
+ return d(U.value);
49
+ }, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart"]), ref_key: "thisRef", ref: S }, [l(c(R, { ref_key: "headerRef", ref: z, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: U, theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
54
50
  } });
55
51
  export {
56
- N as default
52
+ H as default
57
53
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as e, resolveComponent as r, openBlock as o, createBlock as l, unref as t, withCtx as s, createElementBlock as a, Fragment as n, renderList as c, createTextVNode as m, toDisplayString as u } from "vue";
1
+ import { defineComponent as e, resolveComponent as r, createBlock as o, openBlock as l, unref as t, withCtx as s, createElementBlock as a, Fragment as n, renderList as c, createTextVNode as m, toDisplayString as u } from "vue";
2
2
  import { ArrowRight as i } from "@element-plus/icons-vue";
3
3
  const p = e({ __name: "common-chart-header-breadcrumb", props: { headerInfo: { type: Object, required: true } }, emits: ["close-drill"], setup(e2, { emit: p2 }) {
4
4
  const d = p2;
5
5
  return (p3, f) => {
6
6
  const b = r("el-tag"), h = r("el-breadcrumb");
7
- return o(), l(h, { "separator-icon": t(i) }, { default: s(() => [(o(true), a(n, null, c(e2.headerInfo.drillOptions, (e3, r2) => (o(), l(b, { key: e3.name, closable: "", type: "success", style: { "margin-left": "4px" }, onClose: (e4) => {
7
+ return l(), o(h, { "separator-icon": t(i) }, { default: s(() => [(l(true), a(n, null, c(e2.headerInfo.drillOptions, (e3, r2) => (l(), o(b, { key: e3.name, closable: "", type: "success", style: { "margin-left": "4px" }, onClose: (e4) => {
8
8
  d("close-drill", r2);
9
9
  } }, { default: s(() => [m(u(e3.label), 1)]), _: 2 }, 1032, ["onClose"]))), 128))]), _: 1 }, 8, ["separator-icon"]);
10
10
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as e, watch as l, resolveComponent as o, openBlock as a, createBlock as u, withCtx as r, createElementBlock as d, Fragment as n, renderList as p } from "vue";
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
2
  const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
3
3
  }), (l2, t2) => {
4
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 ? (a(), u(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: r(() => [(a(true), d(n, null, p(e2.headerInfo.options, (e3) => (a(), u(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (a(true), d(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (a(), u(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)) : (a(), u(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: r(() => [(a(true), d(n, null, p(e2.headerInfo.options, (e3) => (a(), u(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
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
6
  }) });
7
7
  export {
8
8
  t as default
@@ -1,54 +1,58 @@
1
- import { defineComponent as e, ref as r, openBlock as o, createElementBlock as n, createElementVNode as a, withDirectives as t, normalizeStyle as l, toDisplayString as d, vShow as i, createBlock as f, createCommentVNode as h } from "vue";
2
- import s from "./common-chart-header-group.vue.js";
3
- import I from "./common-chart-header-breadcrumb.vue.js";
4
- import { setVariableValueWithProp as c, getValueFromSource as u, setValueForVariableName as p } from "../../../../utils/page-helper-util.js";
5
- const g = { class: "amb-widget-chart-header" }, m = { class: "amb-widget-chart-header-item" }, b = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, v = { class: "amb-widget-chart-header-item" }, y = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: y2, emit: O }) {
6
- const w = e2, x = r(null), j = O;
7
- function k(e3) {
8
- const r2 = w.headerInfo.drillOptions.length;
9
- if (!(e3 >= r2)) {
10
- for (let o2 = r2 - 1; o2 >= e3; o2--)
11
- w.headerInfo.drillOptions.splice(o2, 1);
12
- P(e3);
1
+ import { defineComponent as e, ref as o, resolveComponent as r, createElementBlock as n, openBlock as t, createElementVNode as a, createCommentVNode as l, withDirectives as i, createBlock as d, normalizeStyle as f, toDisplayString as h, vShow as s, createVNode as c, withCtx as I, unref as u } from "vue";
2
+ import { Search as p } from "@element-plus/icons-vue";
3
+ import g from "./common-chart-header-group.vue.js";
4
+ import m from "./common-chart-header-breadcrumb.vue.js";
5
+ import b from "./common-homepage-search.vue.js";
6
+ import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as w } from "../../../../utils/page-helper-util.js";
7
+ const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
8
+ const N = e2, D = o(null), A = o(), R = _;
9
+ function S(e3) {
10
+ const o2 = N.headerInfo.drillOptions.length;
11
+ if (!(e3 >= o2)) {
12
+ for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
13
+ q(e3);
13
14
  }
14
15
  }
15
- function P(e3) {
16
- const r2 = {};
17
- for (let e4 of w.headerInfo.drillOptions)
18
- e4.fieldName && (r2[e4.fieldName] = e4.value);
19
- w.headerInfo.drillParams = r2, w.headerInfo.groupValue = w.headerInfo.options[e3].value, N();
20
- }
21
- function N(e3) {
22
- const r2 = w.configure.clickSet;
23
- if (!r2 || !r2.variables || 0 === r2.variables.length)
24
- return;
16
+ function q(e3) {
25
17
  const o2 = {};
26
- e3 && Object.assign(o2, e3);
27
- const n2 = w.headerInfo.drillOptions;
18
+ for (let e4 of N.headerInfo.drillOptions) e4.fieldName && (o2[e4.fieldName] = e4.value);
19
+ N.headerInfo.drillParams = o2, N.headerInfo.groupValue = N.headerInfo.options[e3].value, F();
20
+ }
21
+ function F(e3) {
22
+ const o2 = N.configure.clickSet;
23
+ if (!o2 || !o2.variables || 0 === o2.variables.length) return;
24
+ const r2 = {};
25
+ e3 && Object.assign(r2, e3);
26
+ const n2 = N.headerInfo.drillOptions;
28
27
  if (n2.length > 0) {
29
28
  if (!e3) {
30
29
  const e4 = n2[n2.length - 1];
31
- e4.data && Object.assign(o2, e4.data);
30
+ e4.data && Object.assign(r2, e4.data);
32
31
  }
33
- for (let e4 of n2)
34
- e4.rawFieldName && c(o2, e4.rawFieldName, e4.value);
32
+ for (let e4 of n2) e4.rawFieldName && v(r2, e4.rawFieldName, e4.value);
35
33
  }
36
- for (let e4 of r2.variables) {
37
- if (!e4.fieldName || !e4.variable)
38
- continue;
39
- const r3 = u(o2, e4.fieldName, void 0);
40
- p(w.pageContext.entity, e4.variable, r3);
34
+ for (let e4 of o2.variables) {
35
+ if (!e4.fieldName || !e4.variable) continue;
36
+ const o3 = y(r2, e4.fieldName, void 0);
37
+ w(N.pageContext.entity, e4.variable, o3);
41
38
  }
42
39
  }
43
- return w.headerInfo.drillOptions || (w.headerInfo.drillOptions = []), y2({ drill: function(e3, r2) {
44
- const o2 = w.headerInfo.drillOptions.length;
45
- if (o2 + 1 >= w.headerInfo.options.length) {
46
- return N(r2 && e3.dataIndex < r2.length ? r2[e3.dataIndex] : void 0), void j("drill-end", e3);
40
+ N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
41
+ const G = () => {
42
+ A.value.openSearch();
43
+ };
44
+ return P2({ drill: function(e3, o2) {
45
+ const r2 = N.headerInfo.drillOptions.length;
46
+ if (r2 + 1 >= N.headerInfo.options.length) {
47
+ return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
47
48
  }
48
- const n2 = w.headerInfo.options[o2], a2 = r2 && e3.dataIndex < r2.length ? r2[e3.dataIndex] : null, t2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: a2 };
49
- w.headerInfo.drillOptions.push(t2), P(o2 + 1);
50
- }, closeDrill: k }), (r2, c2) => (o(), n("div", g, [a("div", m, [t(a("label", { style: l(e2.headerInfo.style) }, d(e2.headerInfo.title) + "  ", 5), [[i, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? h("", true) : (o(), f(I, { key: 0, ref_key: "drillObjRef", ref: x, headerInfo: e2.headerInfo, onCloseDrill: k }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? h("", true) : (o(), f(s, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", b, [t(a("label", { style: l(e2.headerInfo.style) }, d(e2.headerInfo.title) + "  ", 5), [[i, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (o(), f(I, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: k, ref_key: "drillObjRef", ref: x }, null, 8, ["headerInfo"])) : h("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (o(), f(s, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : h("", true)]), a("div", v, [t(a("label", { style: l(e2.headerInfo.style) }, d(e2.headerInfo.title) + "  ", 5), [[i, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (o(), f(I, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: k, ref_key: "drillObjRef", ref: x }, null, 8, ["headerInfo"])) : h("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (o(), f(s, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : h("", true)])]));
49
+ const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
50
+ N.headerInfo.drillOptions.push(a2), q(r2 + 1);
51
+ }, closeDrill: S }), (o2, v2) => {
52
+ const y2 = r("el-icon"), w2 = r("el-tooltip");
53
+ return t(), n("div", x, [a("div", O, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(w2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
54
+ };
51
55
  } });
52
56
  export {
53
- y as default
57
+ P as default
54
58
  };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as e, ref as t, resolveComponent as o, createBlock as n, openBlock as a, withCtx as i, createCommentVNode as r, createElementBlock as l, Fragment as u, renderList as s, createVNode as c, createElementVNode as p, createTextVNode as g } from "vue";
2
+ import m from "../../object-render.vue.js";
3
+ import { updateChartDatasources as f, getValueFromVariable as d } from "../../../../utils/page-helper-util.js";
4
+ import { ElLoading as h, ElMessage as C } from "element-plus";
5
+ import v from "agilebuilder-ui/src/utils/request";
6
+ import { setHomeChartInitConfigValue as S } from "../../../../utils/charts/chart-util.js";
7
+ const y = { class: "dialog-footer" }, _ = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
8
+ } } }, setup(e2, { expose: _2 }) {
9
+ const x = e2, O = t(false), b = t([]), I = () => {
10
+ O.value = false;
11
+ }, k = () => {
12
+ const e3 = h.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
13
+ f(x.pageContext, x.pageContext.initChartServiceConfigs, null, false).then(() => {
14
+ O.value = false;
15
+ }).finally(() => {
16
+ O.value = false, e3.close();
17
+ });
18
+ };
19
+ function w() {
20
+ S(x.configure.pushHomepage.initConfig, x.pageContext, x.configure.homeChartSettingUserId);
21
+ }
22
+ function N() {
23
+ const e3 = {};
24
+ x.pageContext.variables.forEach((t3) => {
25
+ const o3 = "${page." + t3.name + "}";
26
+ e3[o3] = d(x.pageContext.entity, o3, null);
27
+ });
28
+ let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), o2 = {};
29
+ t2 && (o2 = JSON.parse(t2)), o2[x.configure.homeChartSettingUserId] = e3;
30
+ const n2 = JSON.stringify(o2);
31
+ window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), v.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: x.configure.homeChartSettingUserId, searchConditionsJson: n2 }).then((e4) => {
32
+ C.success("保存成功");
33
+ });
34
+ }
35
+ return _2({ openSearch: () => {
36
+ O.value = true, b.value = x.configure.pushHomepage.searchConditions;
37
+ } }), (t2, f2) => {
38
+ const d2 = o("el-empty"), h2 = o("el-form"), C2 = o("el-button"), v2 = o("el-dialog");
39
+ return a(), n(v2, { modelValue: O.value, "onUpdate:modelValue": f2[0] || (f2[0] = (e3) => O.value = e3), title: "筛选", width: "500", close: I }, { footer: i(() => [p("div", y, [c(C2, { type: "primary", onClick: k }, { default: i(() => f2[1] || (f2[1] = [g(" 确定 ")])), _: 1 }), c(C2, { onClick: w }, { default: i(() => f2[2] || (f2[2] = [g("重置")])), _: 1 }), c(C2, { type: "primary", onClick: N }, { default: i(() => f2[3] || (f2[3] = [g(" 保存为默认条件 ")])), _: 1 })])]), default: i(() => [b.value && 0 !== b.value.length ? r("", true) : (a(), n(d2, { key: 0, description: "未设置筛选条件" })), (a(true), l(u, null, s(b.value, (t3) => (a(), n(h2, { key: t3.uuid }, { default: i(() => [c(m, { configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["modelValue"]);
40
+ };
41
+ } });
42
+ export {
43
+ _ as default
44
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./common-homepage-search.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, openBlock as a, createElementBlock as n, normalizeStyle as u, unref as s, normalizeClass as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as l, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
3
- import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
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 s, unref as i, 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
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
5
5
  import v from "../common/common-chart-header.vue.js";
6
6
  import { use as R } from "echarts/core";
@@ -8,28 +8,28 @@ import { CanvasRenderer as y } from "echarts/renderers";
8
8
  import { GaugeChart as V } from "echarts/charts";
9
9
  import { GridComponent as _, TitleComponent as j, TooltipComponent as I, ToolboxComponent as k } from "echarts/components";
10
10
  import w from "vue-echarts";
11
- const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
11
+ const H = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
12
12
  R([y, V, _, j, I, k]);
13
- const z = e2, D = r(null), F = r(null), H = r(null), O = z.configure.runtime ? z.configure.runtime : {}, P = O.style, T = O.class, q = O.dataConfig, A = O.headerInfo ? O.headerInfo : {}, B = O.chartOption, E = z.configure.props ? z.configure.props : {}, G = m(E.customTheme);
14
- l(z.configure, B), t(() => {
15
- const e3 = g(z.pageContext, z.configure);
16
- e3 && M(e3);
13
+ const b = e2, z = r(null), D = r(null), F = r(null), O = b.configure.runtime ? b.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, A = O.chartOption, B = b.configure.props ? b.configure.props : {}, E = m(B.customTheme);
14
+ g(b.configure, A), t(() => {
15
+ const e3 = l(b.pageContext, b.configure);
16
+ e3 && L(e3);
17
17
  });
18
- let J = A.groupValue;
19
- function K() {
20
- q && d(z.pageContext, [q], A.drillParams);
18
+ let G = q.groupValue;
19
+ function J() {
20
+ T && d(b.pageContext, [T], q.drillParams);
21
21
  }
22
- o(A, () => {
23
- J != A.groupValue && (J = A.groupValue, q && (q.services[0].groupValue = A.groupValue), K());
22
+ o(q, () => {
23
+ G != q.groupValue && (G = q.groupValue, T && (T.services[0].groupValue = q.groupValue), J());
24
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));
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(b.pageContext, b.configure, A, e3));
28
28
  }
29
- return x(z.pageContext, L, K), b2({ updateChartDatas: M, exportChart: function() {
30
- return h(F.value);
31
- } }), (e3, r2) => (a(), n("div", { style: u(s(P)), class: i([s(T), "amb-widget-chart"]), ref_key: "thisRef", ref: D }, [c(p(v, { ref_key: "headerRef", ref: H, headerInfo: s(A) }, null, 8, ["headerInfo"]), [[f, s(A).showHeader]]), p(s(w), { ref_key: "chartRef", ref: F, theme: s(G), option: s(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
29
+ return x(b.pageContext, K, J), H2({ updateChartDatas: L, exportChart: function() {
30
+ return h(D.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: s(i(P)), class: u([i(S), "amb-widget-chart"]), ref_key: "thisRef", ref: z }, [p(c(v, { ref_key: "headerRef", ref: F, headerInfo: i(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(q).showHeader || e3.pageContext.showHomepageSearch]]), c(i(w), { ref_key: "chartRef", ref: D, theme: i(E), option: i(A), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
- b as default
34
+ H as default
35
35
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as r, onMounted as o, watch as t, openBlock as n, createElementBlock as u, normalizeStyle as a, unref as l, normalizeClass as i, withDirectives as c, createVNode as p, vShow as s } from "vue";
1
+ import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as u, normalizeClass as a, normalizeStyle as l, unref as i, withDirectives as c, createVNode as p, vShow as s } from "vue";
2
2
  import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
3
3
  import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
4
4
  import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
@@ -7,40 +7,40 @@ import k from "../common/common-chart-header.vue.js";
7
7
  import { use as D } from "echarts/core";
8
8
  import { CanvasRenderer as V } from "echarts/renderers";
9
9
  import { PieChart as y } from "echarts/charts";
10
- import { GridComponent as _, LegendComponent as I, TitleComponent as P, TooltipComponent as b, ToolboxComponent as E } from "echarts/components";
11
- import w from "vue-echarts";
12
- const T = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: T2 }) {
13
- D([V, y, _, I, P, b, E]);
14
- const U = e2, z = r(null), F = r(null), H = r(null), O = U.configure.props ? U.configure.props.enableDrill : null, S = U.configure.props ? U.configure.props.drillEndTrigger : null, q = U.configure.props ? U.configure.props.linkPage : null, A = U.configure.runtime ? U.configure.runtime : {}, B = A.style, G = A.class, J = A.dataConfig, K = A.headerInfo ? A.headerInfo : {}, L = A.chartOption, M = U.configure.props ? U.configure.props : {}, N = f(M.customTheme);
10
+ import { GridComponent as _, LegendComponent as I, TitleComponent as P, TooltipComponent as b, ToolboxComponent as w } 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, _, I, P, b, w]);
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
15
  function Q(e3) {
16
- "clearDrill" == S ? H.value && H.value.closeDrill && H.value.closeDrill(0) : "clickEvent" == S && W();
16
+ "clearDrill" == O ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" == O && W();
17
17
  }
18
18
  function W() {
19
- q && q.jumpPageUrl && x(U.pageContext, U.configure, void 0);
19
+ q && q.jumpPageUrl && x(S.pageContext, S.configure, void 0);
20
20
  }
21
- g(U.configure, L), o(() => {
22
- const e3 = C(U.pageContext, U.configure);
23
- e3 && $(e3), F.value && (O || q && q.jumpPageUrl) && F.value.chart.on("click", function(e4) {
24
- O ? H.value && H.value.drill && H.value.drill(e4, U.configure.cacheDatas) : W();
25
- }), !O && U.configure.clickSet && F.value && h(U.pageContext, U.configure, F.value.chart);
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
26
  });
27
27
  let X = K.groupValue;
28
28
  function Y(e3) {
29
- J && (true !== e3 && (J.autoRefresh = true), R(U.pageContext, [J], K.drillParams));
29
+ J && (true !== e3 && (J.autoRefresh = true), R(S.pageContext, [J], K.drillParams));
30
30
  }
31
31
  t(K, () => {
32
32
  X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
33
33
  });
34
34
  const Z = K.monitorFields;
35
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 && O || m(U.pageContext, U.configure, F.value.chart), J.autoRefresh = false, v(U.pageContext, U.configure, L, 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
37
  }
38
- return j(U.pageContext, Z, () => {
38
+ return j(S.pageContext, Z, () => {
39
39
  Y(true);
40
- }), T2({ updateChartDatas: $, exportChart: function() {
41
- return d(F.value);
42
- } }), (e3, r2) => (n(), u("div", { style: a(l(B)), class: i([l(G), "amb-widget-chart"]), ref_key: "thisRef", ref: z }, [c(p(k, { ref_key: "headerRef", ref: H, headerInfo: l(K), onDrillEnd: Q }, null, 8, ["headerInfo"]), [[s, l(K).showHeader]]), p(l(w), { ref_key: "chartRef", ref: F, theme: l(N), option: l(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
40
+ }), H2({ updateChartDatas: $, exportChart: function() {
41
+ return d(U.value);
42
+ } }), (e3, r2) => (u(), n("div", { style: l(i(B)), class: a([i(G), "amb-widget-chart"]), 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
43
  } });
44
44
  export {
45
- T as default
45
+ H as default
46
46
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, openBlock as a, createElementBlock as n, normalizeStyle as u, unref as s, normalizeClass as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as l, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
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 s, unref as i, 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
3
  import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
5
5
  import v from "../common/common-chart-header.vue.js";
@@ -7,29 +7,29 @@ import { use as R } from "echarts/core";
7
7
  import { CanvasRenderer as y } from "echarts/renderers";
8
8
  import { RadarChart as V } from "echarts/charts";
9
9
  import { GridComponent as _, TitleComponent as j, TooltipComponent as I, ToolboxComponent as k, LegendComponent as w } from "echarts/components";
10
- import b from "vue-echarts";
11
- const z = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
10
+ import H from "vue-echarts";
11
+ const b = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
12
12
  R([y, V, _, j, I, k, w]);
13
- const D = e2, F = r(null), H = r(null), O = r(null), P = D.configure.runtime ? D.configure.runtime : {}, T = P.style, q = P.class, A = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = D.configure.props ? D.configure.props : {}, J = m(G.customTheme);
14
- l(D.configure, E), t(() => {
15
- const e3 = g(D.pageContext, D.configure);
16
- e3 && N(e3);
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
17
  });
18
- let K = B.groupValue;
19
- function L() {
20
- A && d(D.pageContext, [A], B.drillParams);
18
+ let J = A.groupValue;
19
+ function K() {
20
+ q && d(z.pageContext, [q], A.drillParams);
21
21
  }
22
- o(B, () => {
23
- K != B.groupValue && (K = B.groupValue, A && (A.services[0].groupValue = B.groupValue), L());
22
+ o(A, () => {
23
+ J != A.groupValue && (J = A.groupValue, q && (q.services[0].groupValue = A.groupValue), K());
24
24
  });
25
- const M = B.monitorFields;
26
- function N(e3) {
27
- e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(D.pageContext, D.configure, E, e3));
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
28
  }
29
- return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
30
- return h(H.value);
31
- } }), (e3, r2) => (a(), n("div", { style: u(s(T)), class: i([s(q), "amb-widget-chart"]), ref_key: "thisRef", ref: F }, [c(p(v, { ref_key: "headerRef", ref: O, headerInfo: s(B) }, null, 8, ["headerInfo"]), [[f, s(B).showHeader]]), p(s(b), { ref_key: "chartRef", ref: H, theme: s(J), option: s(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
29
+ return x(z.pageContext, L, K), b2({ updateChartDatas: M, exportChart: function() {
30
+ return l(F.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: s(i(S)), class: u([i(T), "amb-widget-chart"]), ref_key: "thisRef", ref: D }, [p(c(v, { ref_key: "headerRef", ref: O, headerInfo: i(A), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(A).showHeader || e3.pageContext.showHomepageSearch]]), c(i(H), { ref_key: "chartRef", ref: F, theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
- z as default
34
+ b as default
35
35
  };