@topdatasec/report 1.1.17 → 1.1.18

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, computed as Q, resolveComponent as A, openBlock as m, createElementBlock as C, createElementVNode as T, Fragment as S, renderList as P, normalizeClass as N, createBlock as k, createCommentVNode as R, toDisplayString as M, ref as V, createVNode as l, withCtx as u, onMounted as le, normalizeProps as ue, guardReactiveProps as pe, isVNode as ne, normalizeStyle as Ue, mergeModels as de, useModel as ce, resolveDirective as me, withDirectives as fe, unref as w, createTextVNode as U, resolveDynamicComponent as G, isRef as Ee, withModifiers as Re, watch as Se, shallowRef as Oe, onBeforeUnmount as Pe, onUnmounted as Qe, reactive as X, TransitionGroup as Ie, mergeProps as ve } from "vue";
1
+ import { defineComponent as L, computed as Q, resolveComponent as s, openBlock as c, createElementBlock as x, createElementVNode as T, Fragment as S, renderList as P, normalizeClass as N, createBlock as k, createCommentVNode as R, withDirectives as le, createTextVNode as E, toDisplayString as M, unref as y, ref as V, createVNode as l, withCtx as u, onMounted as ne, normalizeProps as pe, guardReactiveProps as de, isVNode as ae, normalizeStyle as Ee, mergeModels as ce, useModel as me, resolveDirective as fe, resolveDynamicComponent as G, isRef as Ue, withModifiers as Re, watch as Se, shallowRef as Oe, onBeforeUnmount as Pe, onUnmounted as Qe, reactive as X, TransitionGroup as Ie, mergeProps as ve } from "vue";
2
2
  import { defineStore as Fe, storeToRefs as Ke } from "pinia";
3
3
  import { ElNotification as Me, ElMessage as qe } from "element-plus";
4
4
  import { VueDraggable as He } from "vue-draggable-plus";
@@ -9,15 +9,15 @@ const H = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
9
9
  function Ze(o, t, e) {
10
10
  const a = atob(o), r = [];
11
11
  for (let i = 0; i < a.length; i += 512) {
12
- const g = a.slice(i, i + 512), f = new Array(g.length);
13
- for (let _ = 0; _ < g.length; _++)
14
- f[_] = g.charCodeAt(_);
15
- const d = new Uint8Array(f);
16
- r.push(d);
12
+ const g = a.slice(i, i + 512), m = new Array(g.length);
13
+ for (let v = 0; v < g.length; v++)
14
+ m[v] = g.charCodeAt(v);
15
+ const b = new Uint8Array(m);
16
+ r.push(b);
17
17
  }
18
- const n = new Blob(r, { type: e }), s = URL.createObjectURL(n), c = document.createElement("a");
19
- c.href = s, c.download = t, document.body.appendChild(c), c.click(), setTimeout(() => {
20
- document.body.removeChild(c), URL.revokeObjectURL(s);
18
+ const n = new Blob(r, { type: e }), A = URL.createObjectURL(n), d = document.createElement("a");
19
+ d.href = A, d.download = t, document.body.appendChild(d), d.click(), setTimeout(() => {
20
+ document.body.removeChild(d), URL.revokeObjectURL(A);
21
21
  }, 0);
22
22
  }
23
23
  const je = (o) => window.$http.request({
@@ -154,8 +154,8 @@ const je = (o) => window.$http.request({
154
154
  "238, 97, 97"
155
155
  ], gt = (o, t, e = "", a = { name: "name", value: "value" }) => {
156
156
  const r = [], n = [];
157
- t.forEach((s) => {
158
- r.push(s[a.name]), n.push(s[a.value]);
157
+ t.forEach((A) => {
158
+ r.push(A[a.name]), n.push(A[a.value]);
159
159
  }), o.xAxis[0].data = r, o.series[0].data = n, o.series[0].name = e, o.series[1].data = n, o.series[2].data = n;
160
160
  }, j = (o = [
161
161
  {
@@ -311,12 +311,12 @@ const je = (o) => window.$http.request({
311
311
  };
312
312
  }, bt = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
313
313
  let a = 0;
314
- const r = t.map((n, s) => (a += Number(n[e.value]), {
314
+ const r = t.map((n, A) => (a += Number(n[e.value]), {
315
315
  name: n[e.name],
316
316
  value: Number(n[e.value])
317
317
  }));
318
318
  o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
319
- }, _t = () => O.map((o) => `rgba(${o}, 1)`), ae = ({
319
+ }, _t = () => O.map((o) => `rgba(${o}, 1)`), re = ({
320
320
  data: o = [
321
321
  {
322
322
  name: "数据1",
@@ -336,22 +336,22 @@ const je = (o) => window.$http.request({
336
336
  isLegend: a = !0,
337
337
  isLine: r = !1,
338
338
  center: n = ["50%", "50%"],
339
- isTitle: s = !0
339
+ isTitle: A = !0
340
340
  }) => {
341
- const c = {
341
+ const d = {
342
342
  color: _t(),
343
343
  toolbox: { show: !1 },
344
344
  tooltip: {
345
345
  trigger: "item",
346
346
  show: !0,
347
347
  formatter: (i) => {
348
- const { name: g, value: f } = i;
348
+ const { name: g, value: m } = i;
349
349
  return `<div style="color: ${i.color}; font-size: 14px;">${g}&nbsp;&nbsp;&nbsp;</div>
350
- <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${f}</span></div>`;
350
+ <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${m}</span></div>`;
351
351
  }
352
352
  },
353
353
  title: {
354
- show: s,
354
+ show: A,
355
355
  text: "样例数据",
356
356
  textStyle: {
357
357
  color: "#333",
@@ -364,8 +364,8 @@ const je = (o) => window.$http.request({
364
364
  show: a,
365
365
  left: "70%",
366
366
  formatter: (i) => {
367
- var f;
368
- const g = (f = c.series[0]) == null ? void 0 : f.data.find((d) => d.name === i).value;
367
+ var m;
368
+ const g = (m = d.series[0]) == null ? void 0 : m.data.find((b) => b.name === i).value;
369
369
  return ` ${i} | ${g}`;
370
370
  },
371
371
  textStyle: {
@@ -477,7 +477,7 @@ const je = (o) => window.$http.request({
477
477
  }
478
478
  ]
479
479
  };
480
- return c;
480
+ return d;
481
481
  }, wt = (o, t, e = { name: "name", value: "value" }) => {
482
482
  o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
483
483
  o.series[r].data = t.map((n) => n[a.value]);
@@ -602,20 +602,20 @@ const je = (o) => window.$http.request({
602
602
  series: []
603
603
  }, a = yt(), r = [];
604
604
  if (Array.isArray(t.value))
605
- t.value.forEach((n, s) => {
606
- const c = J(a);
607
- c.name = n.name, c.lineStyle.color = `rgba(${O[s]}, 1)`, c.itemStyle.color = `rgba(${O[s]}, 1)`, c.areaStyle.color.colorStops[0].color = `rgba(${O[s]}, 0.7)`, c.areaStyle.color.colorStops[1].color = `rgba(${O[s]}, 0.1)`, c.data = o.map((i) => i[n.value]), r.push(c);
605
+ t.value.forEach((n, A) => {
606
+ const d = J(a);
607
+ d.name = n.name, d.lineStyle.color = `rgba(${O[A]}, 1)`, d.itemStyle.color = `rgba(${O[A]}, 1)`, d.areaStyle.color.colorStops[0].color = `rgba(${O[A]}, 0.7)`, d.areaStyle.color.colorStops[1].color = `rgba(${O[A]}, 0.1)`, d.data = o.map((i) => i[n.value]), r.push(d);
608
608
  });
609
609
  else if (typeof t.value == "string") {
610
610
  const n = J(a);
611
- n.data = o.map((s) => s[t.value]), r.push(n);
611
+ n.data = o.map((A) => A[t.value]), r.push(n);
612
612
  }
613
613
  return e.series = r, e;
614
- }, re = [
614
+ }, Ae = [
615
615
  { key: "assets", name: "资产名称" },
616
616
  { key: "type", name: "资产类型" },
617
617
  { key: "data", name: "资产数据" }
618
- ], Ae = [
618
+ ], se = [
619
619
  { assets: "name1", type: "type1", data: "data1" },
620
620
  { assets: "name2", type: "type2", data: "data2" },
621
621
  { assets: "name3", type: "type3", data: "data3" }
@@ -702,8 +702,8 @@ const je = (o) => window.$http.request({
702
702
  },
703
703
  {
704
704
  type: "report-table",
705
- data: Ae,
706
- showColumn: re,
705
+ data: se,
706
+ showColumn: Ae,
707
707
  name: "表格",
708
708
  options: {
709
709
  showColumn: {
@@ -765,8 +765,8 @@ const je = (o) => window.$http.request({
765
765
  { type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
766
766
  {
767
767
  type: "report-table",
768
- data: Ae,
769
- showColumn: re,
768
+ data: se,
769
+ showColumn: Ae,
770
770
  name: "表格",
771
771
  options: {
772
772
  border: !0,
@@ -814,14 +814,14 @@ const je = (o) => window.$http.request({
814
814
  data: ht,
815
815
  showColumn: [{ key: "label", value: "data" }],
816
816
  name: "图表",
817
- options: ae({ isLegend: !0 }),
817
+ options: re({ isLegend: !0 }),
818
818
  rp_item_uuid: "",
819
819
  id: ""
820
820
  },
821
821
  "report-table": {
822
822
  type: "report-table",
823
- data: Ae,
824
- showColumn: re,
823
+ data: se,
824
+ showColumn: Ae,
825
825
  name: "表格",
826
826
  options: {
827
827
  showColumn: {
@@ -873,7 +873,25 @@ const je = (o) => window.$http.request({
873
873
  };
874
874
  }
875
875
  }
876
- }), Tt = { class: "catalogue" }, Vt = ["href", "title"], Dt = /* @__PURE__ */ L({
876
+ }), Tt = {
877
+ mounted(o) {
878
+ o.addEventListener("click", (t) => {
879
+ var a;
880
+ t.preventDefault(), console.log(o, "scollow");
881
+ const e = (a = o.getAttribute("href")) == null ? void 0 : a.substring(1);
882
+ if (e) {
883
+ const r = document.getElementById(e), n = document.getElementById("editor");
884
+ if (r && n) {
885
+ const d = r.offsetTop - n.offsetTop - 0;
886
+ n.scrollTo({
887
+ top: d,
888
+ behavior: "smooth"
889
+ });
890
+ }
891
+ }
892
+ });
893
+ }
894
+ }, Vt = { class: "catalogue" }, Dt = ["href", "title"], kt = /* @__PURE__ */ L({
877
895
  __name: "Catalogue",
878
896
  props: {
879
897
  data: { default: () => [] }
@@ -881,22 +899,26 @@ const je = (o) => window.$http.request({
881
899
  setup(o) {
882
900
  const t = o, e = Q(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
883
901
  return (a, r) => {
884
- const n = A("el-divider");
885
- return m(), C("div", Tt, [
902
+ const n = s("el-divider");
903
+ return c(), x("div", Vt, [
886
904
  r[0] || (r[0] = T("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
887
- (m(!0), C(S, null, P(e.value, (s) => (m(), C("div", {
888
- class: N("level" + s.type),
889
- key: s.value
905
+ (c(!0), x(S, null, P(e.value, (A) => (c(), x("div", {
906
+ class: N("level" + A.type),
907
+ key: A.value
890
908
  }, [
891
- s.type === "h2" ? (m(), k(n, {
909
+ A.type === "h2" ? (c(), k(n, {
892
910
  key: 0,
893
911
  style: { "margin-top": "10px", "margin-bottom": "10px" }
894
912
  })) : R("", !0),
895
- T("a", {
913
+ le((c(), x("a", {
896
914
  class: "el-anchor__link",
897
- href: "#" + s.id,
898
- title: s.data
899
- }, M(s.data), 9, Vt)
915
+ href: "#" + A.id,
916
+ title: A.data
917
+ }, [
918
+ E(M(A.data), 1)
919
+ ], 8, Dt)), [
920
+ [y(Tt)]
921
+ ])
900
922
  ], 2))), 128))
901
923
  ]);
902
924
  };
@@ -907,7 +929,7 @@ const Y = (o, t) => {
907
929
  for (const [a, r] of t)
908
930
  e[a] = r;
909
931
  return e;
910
- }, kt = /* @__PURE__ */ Y(Dt, [["__scopeId", "data-v-1cd8aa2d"]]), Lt = {
932
+ }, Lt = /* @__PURE__ */ Y(kt, [["__scopeId", "data-v-00cc9080"]]), Et = {
911
933
  class: "chart-components"
912
934
  }, ye = /* @__PURE__ */ L({
913
935
  __name: "Bar",
@@ -917,8 +939,8 @@ const Y = (o, t) => {
917
939
  setup(o) {
918
940
  const t = o, e = Q(() => t.value.options);
919
941
  return V(!1), (a, r) => {
920
- const n = A("TdsChart");
921
- return m(), C("div", Lt, [l(n, {
942
+ const n = s("TdsChart");
943
+ return c(), x("div", Et, [l(n, {
922
944
  option: e.value
923
945
  }, null, 8, ["option"])]);
924
946
  };
@@ -931,13 +953,13 @@ const Y = (o, t) => {
931
953
  setup(o) {
932
954
  const t = o, e = Q(() => t.value.options);
933
955
  return (a, r) => {
934
- const n = A("TdsChart");
935
- return m(), C("div", Ut, [
956
+ const n = s("TdsChart");
957
+ return c(), x("div", Ut, [
936
958
  l(n, { option: e.value }, null, 8, ["option"])
937
959
  ]);
938
960
  };
939
961
  }
940
- }), Et = { class: "chart-components" }, Ce = /* @__PURE__ */ L({
962
+ }), Rt = { class: "chart-components" }, Ce = /* @__PURE__ */ L({
941
963
  __name: "Pie",
942
964
  props: {
943
965
  value: {}
@@ -945,38 +967,38 @@ const Y = (o, t) => {
945
967
  setup(o) {
946
968
  const t = o, e = Q(() => t.value.options);
947
969
  return (a, r) => {
948
- const n = A("TdsChart");
949
- return m(), C("div", Et, [
970
+ const n = s("TdsChart");
971
+ return c(), x("div", Rt, [
950
972
  l(n, { option: e.value }, null, 8, ["option"])
951
973
  ]);
952
974
  };
953
975
  }
954
- }), Rt = { key: 0 }, ee = /* @__PURE__ */ L({
976
+ }), St = { key: 0 }, ee = /* @__PURE__ */ L({
955
977
  __name: "ReportSelect",
956
978
  props: {
957
979
  value: {}
958
980
  },
959
981
  emits: ["change"],
960
982
  setup(o, { emit: t }) {
961
- const e = t, a = (s) => {
962
- e("change", s);
983
+ const e = t, a = (A) => {
984
+ e("change", A);
963
985
  }, n = V(o.value);
964
- return (s, c) => {
965
- const i = A("el-option"), g = A("el-select");
966
- return n.value.data ? (m(), C("div", Rt, [
986
+ return (A, d) => {
987
+ const i = s("el-option"), g = s("el-select");
988
+ return n.value.data ? (c(), x("div", St, [
967
989
  l(g, {
968
990
  modelValue: n.value.value,
969
- "onUpdate:modelValue": c[0] || (c[0] = (f) => n.value.value = f),
991
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => n.value.value = m),
970
992
  multiple: "",
971
993
  style: { width: "100%" },
972
994
  onChange: a,
973
995
  placeholder: "全部"
974
996
  }, {
975
997
  default: u(() => [
976
- (m(!0), C(S, null, P(n.value.data, (f) => (m(), k(i, {
977
- key: f.data,
978
- label: f.label,
979
- value: f.data
998
+ (c(!0), x(S, null, P(n.value.data, (m) => (c(), k(i, {
999
+ key: m.data,
1000
+ label: m.label,
1001
+ value: m.data
980
1002
  }, null, 8, ["label", "value"]))), 128))
981
1003
  ]),
982
1004
  _: 1
@@ -992,30 +1014,30 @@ const Y = (o, t) => {
992
1014
  emits: ["change"],
993
1015
  setup(o, { emit: t }) {
994
1016
  const e = t, r = V(o.value), n = V([]);
995
- function s(c) {
996
- c ? (r.value.data[0].start_time = c[0], r.value.data[0].end_time = c[1]) : n.value = [], e("change", n.value);
1017
+ function A(d) {
1018
+ d ? (r.value.data[0].start_time = d[0], r.value.data[0].end_time = d[1]) : n.value = [], e("change", n.value);
997
1019
  }
998
- return le(() => {
1020
+ return ne(() => {
999
1021
  n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
1000
- }), (c, i) => {
1001
- const g = A("el-date-picker");
1002
- return m(), C("div", null, [
1022
+ }), (d, i) => {
1023
+ const g = s("el-date-picker");
1024
+ return c(), x("div", null, [
1003
1025
  l(g, {
1004
1026
  modelValue: n.value,
1005
- "onUpdate:modelValue": i[0] || (i[0] = (f) => n.value = f),
1027
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => n.value = m),
1006
1028
  type: "datetimerange",
1007
1029
  placeholder: "Pick a Date",
1008
1030
  format: "YYYY-MM-DD HH:mm:ss",
1009
1031
  "value-format": "YYYY-MM-DD HH:mm:ss",
1010
- onChange: s,
1032
+ onChange: A,
1011
1033
  clearable: !1
1012
1034
  }, null, 8, ["modelValue"])
1013
1035
  ]);
1014
1036
  };
1015
1037
  }
1016
1038
  });
1017
- function St(o) {
1018
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
1039
+ function Ot(o) {
1040
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ae(o);
1019
1041
  }
1020
1042
  const xe = /* @__PURE__ */ L({
1021
1043
  __name: "ReportTable",
@@ -1025,19 +1047,19 @@ const xe = /* @__PURE__ */ L({
1025
1047
  setup(o) {
1026
1048
  const t = o, e = (a) => {
1027
1049
  let r;
1028
- return l(A("el-table"), {
1050
+ return l(s("el-table"), {
1029
1051
  data: a.data,
1030
1052
  border: t.value.options.border,
1031
1053
  "show-header": !!t.value.options.showHeader,
1032
1054
  stripe: t.value.options.stripe
1033
- }, St(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(A("el-table-column"), {
1055
+ }, Ot(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
1034
1056
  prop: n.key,
1035
1057
  label: n.name
1036
1058
  }, null) : null)) ? r : {
1037
1059
  default: () => [r]
1038
1060
  });
1039
1061
  };
1040
- return (a, r) => (m(), C("div", null, [l(e, ue(pe(a.value)), null, 16)]));
1062
+ return (a, r) => (c(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1041
1063
  }
1042
1064
  }), oe = /* @__PURE__ */ L({
1043
1065
  __name: "ReportText",
@@ -1056,11 +1078,11 @@ const xe = /* @__PURE__ */ L({
1056
1078
  "text-align": a.textAlign
1057
1079
  };
1058
1080
  };
1059
- return (a, r) => (m(), C("div", {
1060
- style: Ue(e())
1081
+ return (a, r) => (c(), x("div", {
1082
+ style: Ee(e())
1061
1083
  }, M(a.value.data), 5));
1062
1084
  }
1063
- }), Ot = { class: "chart-components" }, Be = /* @__PURE__ */ L({
1085
+ }), Pt = { class: "chart-components" }, Be = /* @__PURE__ */ L({
1064
1086
  __name: "ReportChart",
1065
1087
  props: {
1066
1088
  value: {}
@@ -1071,43 +1093,43 @@ const xe = /* @__PURE__ */ L({
1071
1093
  e.value.options.series = j([]).series;
1072
1094
  const r = [];
1073
1095
  let n = "";
1074
- e.value.data.forEach((s) => {
1075
- n = s.data[0].name, r.push({
1076
- name: s.label,
1077
- value: s.data[0].value
1096
+ e.value.data.forEach((A) => {
1097
+ n = A.data[0].name, r.push({
1098
+ name: A.label,
1099
+ value: A.data[0].value
1078
1100
  });
1079
1101
  }), gt(e.value.options, r, n);
1080
1102
  }
1081
- if (e.value.type === "pie" && (e.value.options = ae({ isLegend: !0 }), bt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1103
+ if (e.value.type === "pie" && (e.value.options = re({ isLegend: !0 }), bt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1082
1104
  let r = [];
1083
- e.value.data.forEach((c) => {
1084
- r = c.data.map((i, g) => ({ name: i.name, value: "value" + g }));
1105
+ e.value.data.forEach((d) => {
1106
+ r = d.data.map((i, g) => ({ name: i.name, value: "value" + g }));
1085
1107
  });
1086
1108
  const n = {
1087
1109
  name: "name",
1088
1110
  value: r
1089
- }, s = e.value.data.map((c) => {
1111
+ }, A = e.value.data.map((d) => {
1090
1112
  const i = {
1091
- name: c.label
1113
+ name: d.label
1092
1114
  };
1093
- return r.forEach((g, f) => {
1094
- i[g.value] = c.data[f].value;
1115
+ return r.forEach((g, m) => {
1116
+ i[g.value] = d.data[m].value;
1095
1117
  }), i;
1096
1118
  });
1097
- console.log(Z([], n), "chartsLine([], params)"), e.value.options.series = Z([], n).series, wt(e.value.options, s, n);
1119
+ console.log(Z([], n), "chartsLine([], params)"), e.value.options.series = Z([], n).series, wt(e.value.options, A, n);
1098
1120
  }
1099
1121
  return e.value.options;
1100
1122
  });
1101
1123
  return (r, n) => {
1102
- const s = A("TdsChart");
1103
- return m(), C("div", Ot, [
1104
- l(s, { option: a.value }, null, 8, ["option"])
1124
+ const A = s("TdsChart");
1125
+ return c(), x("div", Pt, [
1126
+ l(A, { option: a.value }, null, 8, ["option"])
1105
1127
  ]);
1106
1128
  };
1107
1129
  }
1108
1130
  });
1109
- function Pt(o) {
1110
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
1131
+ function Qt(o) {
1132
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ae(o);
1111
1133
  }
1112
1134
  const Te = /* @__PURE__ */ L({
1113
1135
  __name: "ReportDescribe",
@@ -1117,12 +1139,12 @@ const Te = /* @__PURE__ */ L({
1117
1139
  setup(o) {
1118
1140
  const t = o, e = (a) => {
1119
1141
  let r;
1120
- return l(A("el-descriptions"), {
1142
+ return l(s("el-descriptions"), {
1121
1143
  title: t.value.options.title,
1122
1144
  border: t.value.options.border,
1123
1145
  column: t.value.options.column,
1124
1146
  direction: t.value.options.direction
1125
- }, Pt(r = a.showColumn.map((n) => l(A("el-descriptions-item"), {
1147
+ }, Qt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
1126
1148
  label: n.name
1127
1149
  }, {
1128
1150
  default: () => [t.value.data[n.key]]
@@ -1130,25 +1152,25 @@ const Te = /* @__PURE__ */ L({
1130
1152
  default: () => [r]
1131
1153
  });
1132
1154
  };
1133
- return (a, r) => (m(), C("div", null, [l(e, ue(pe(a.value)), null, 16)]));
1155
+ return (a, r) => (c(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1134
1156
  }
1135
- }), Qt = {
1157
+ }), It = {
1136
1158
  class: "editor-box"
1137
- }, It = {
1159
+ }, Ft = {
1138
1160
  class: "editor",
1139
1161
  id: "editor",
1140
1162
  style: {
1141
1163
  width: "100%"
1142
1164
  }
1143
- }, Ft = {
1144
- class: "editor-content flex flex-start"
1145
1165
  }, Kt = {
1166
+ class: "editor-content flex flex-start"
1167
+ }, Mt = {
1146
1168
  style: {
1147
1169
  "margin-left": "auto"
1148
1170
  }
1149
- }, Mt = ["id"], qt = ["innerHTML"], Ht = /* @__PURE__ */ L({
1171
+ }, qt = ["id"], Ht = ["innerHTML"], zt = /* @__PURE__ */ L({
1150
1172
  __name: "index",
1151
- props: /* @__PURE__ */ de({
1173
+ props: /* @__PURE__ */ ce({
1152
1174
  reportId: {
1153
1175
  type: String,
1154
1176
  default: ""
@@ -1169,11 +1191,11 @@ const Te = /* @__PURE__ */ L({
1169
1191
  ReportText: oe,
1170
1192
  ReportChart: Be,
1171
1193
  ReportDescribe: Te
1172
- }, a = I(), r = o, n = ce(o, "modelValue"), s = V([]), c = V([]), i = V([]), g = V(""), f = V("");
1173
- function d() {
1194
+ }, a = I(), r = o, n = me(o, "modelValue"), A = V([]), d = V([]), i = V([]), g = V(""), m = V("");
1195
+ function b() {
1174
1196
  n.value = "table";
1175
1197
  }
1176
- async function _(p) {
1198
+ async function v(p) {
1177
1199
  Me({
1178
1200
  title: "提示",
1179
1201
  message: "正在生成导出中,请稍等...",
@@ -1184,56 +1206,56 @@ const Te = /* @__PURE__ */ L({
1184
1206
  select_data: i.value,
1185
1207
  report_uuid: r.reportId,
1186
1208
  start_time: g.value,
1187
- end_time: f.value
1209
+ end_time: m.value
1188
1210
  }, B = await vt(D), K = p === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
1189
1211
  Ze(B.file_data, B.file_name, K);
1190
1212
  }
1191
- const v = (p) => {
1192
- i.value = p, x();
1193
- }, y = (p) => {
1194
- p && p.length > 0 && (g.value = p[0], f.value = p[1]), x();
1195
- }, x = async () => {
1213
+ const w = (p) => {
1214
+ i.value = p, _();
1215
+ }, h = (p) => {
1216
+ p && p.length > 0 && (g.value = p[0], m.value = p[1]), _();
1217
+ }, _ = async () => {
1196
1218
  try {
1197
1219
  t.value = !0;
1198
1220
  const p = {
1199
1221
  report_uuid: r.reportId,
1200
1222
  start_time: g.value,
1201
- end_time: f.value,
1223
+ end_time: m.value,
1202
1224
  select_data: i.value.join(",")
1203
1225
  }, D = await We(p), B = [];
1204
1226
  D.data.forEach((K) => {
1205
1227
  (K.type === "report-select" || K.type === "range-time") && B.push(K);
1206
- }), s.value = B, D.data.splice(0, s.value.length), c.value = D.data, t.value = !1;
1228
+ }), A.value = B, D.data.splice(0, A.value.length), d.value = D.data, t.value = !1;
1207
1229
  } catch (p) {
1208
1230
  t.value = !1, console.error("Error setting loading state:", p);
1209
1231
  }
1210
1232
  };
1211
- x();
1212
- const h = () => l("div", null, [U("未找到对应组件")]), b = (p) => p === "h2" || p === "h3" || p === "h4" ? F(e, "ReportText") : p === "bar" || p === "pie" || p === "line" ? F(e, "ReportChart") : p ? F(e, p) : l(h, null, null);
1233
+ _();
1234
+ const C = () => l("div", null, [E("未找到对应组件")]), f = (p) => p === "h2" || p === "h3" || p === "h4" ? F(e, "ReportText") : p === "bar" || p === "pie" || p === "line" ? F(e, "ReportChart") : p ? F(e, p) : l(C, null, null);
1213
1235
  return (p, D) => {
1214
- const B = A("el-button"), K = A("el-card"), Le = me("loading");
1215
- return fe((m(), k(K, {
1236
+ const B = s("el-button"), K = s("el-card"), Le = fe("loading");
1237
+ return le((c(), k(K, {
1216
1238
  class: "editor view",
1217
1239
  "element-loading-text": "加载中..."
1218
1240
  }, {
1219
- default: u(() => [T("div", Qt, [l(kt, {
1220
- data: c.value
1221
- }, null, 8, ["data"]), T("div", It, [T("div", Ft, [(m(!0), C(S, null, P(s.value, (E) => (m(), C("div", {
1241
+ default: u(() => [T("div", It, [l(Lt, {
1242
+ data: d.value
1243
+ }, null, 8, ["data"]), T("div", Ft, [T("div", Kt, [(c(!0), x(S, null, P(A.value, (U) => (c(), x("div", {
1222
1244
  class: "item-input",
1223
- key: E.id
1224
- }, [E.type === "report-select" ? (m(), k(ee, {
1245
+ key: U.id
1246
+ }, [U.type === "report-select" ? (c(), k(ee, {
1225
1247
  key: 0,
1226
- onChange: v,
1227
- value: E
1228
- }, null, 8, ["value"])) : R("", !0), E.type === "range-time" && w(a).filterForm.range_time ? (m(), k(te, {
1248
+ onChange: w,
1249
+ value: U
1250
+ }, null, 8, ["value"])) : R("", !0), U.type === "range-time" && y(a).filterForm.range_time ? (c(), k(te, {
1229
1251
  key: 1,
1230
- onChange: y,
1231
- value: E
1232
- }, null, 8, ["value"])) : R("", !0)]))), 128)), T("div", Kt, [D[5] || (D[5] = T("span", {
1252
+ onChange: h,
1253
+ value: U
1254
+ }, null, 8, ["value"])) : R("", !0)]))), 128)), T("div", Mt, [D[5] || (D[5] = T("span", {
1233
1255
  class: "font-export"
1234
1256
  }, "导出为:", -1)), l(B, {
1235
1257
  link: "",
1236
- onClick: D[0] || (D[0] = (E) => _(1)),
1258
+ onClick: D[0] || (D[0] = (U) => v(1)),
1237
1259
  title: "PDF",
1238
1260
  type: "primary",
1239
1261
  class: "custom-btn"
@@ -1249,7 +1271,7 @@ const Te = /* @__PURE__ */ L({
1249
1271
  _: 1
1250
1272
  }), l(B, {
1251
1273
  link: "",
1252
- onClick: D[1] || (D[1] = (E) => _(3)),
1274
+ onClick: D[1] || (D[1] = (U) => v(3)),
1253
1275
  title: "WORD",
1254
1276
  type: "primary",
1255
1277
  class: "custom-btn",
@@ -1268,40 +1290,40 @@ const Te = /* @__PURE__ */ L({
1268
1290
  _: 1
1269
1291
  }), l(B, {
1270
1292
  plain: "",
1271
- onClick: d,
1293
+ onClick: b,
1272
1294
  type: "primary",
1273
1295
  class: "custom-btn exit-preview",
1274
1296
  style: {
1275
1297
  "margin-left": "auto"
1276
1298
  }
1277
1299
  }, {
1278
- default: u(() => D[4] || (D[4] = [U("退出预览")])),
1300
+ default: u(() => D[4] || (D[4] = [E("退出预览")])),
1279
1301
  _: 1
1280
- })])]), (m(!0), C(S, null, P(c.value, (E) => (m(), C("div", {
1281
- key: E.id,
1282
- class: N(["editor-content", ["editor" + E.type]]),
1283
- id: E.id
1284
- }, [E.type !== "p" ? (m(), k(G(b(E.type)), {
1302
+ })])]), (c(!0), x(S, null, P(d.value, (U) => (c(), x("div", {
1303
+ key: U.id,
1304
+ class: N(["editor-content", ["editor" + U.type]]),
1305
+ id: U.id
1306
+ }, [U.type !== "p" ? (c(), k(G(f(U.type)), {
1285
1307
  key: 0,
1286
- class: N(["editor" + E.type]),
1287
- value: E
1308
+ class: N(["editor" + U.type]),
1309
+ value: U
1288
1310
  }, {
1289
- default: u(() => [U(M(E.data), 1)]),
1311
+ default: u(() => [E(M(U.data), 1)]),
1290
1312
  _: 2
1291
- }, 1032, ["class", "value"])) : (m(), C("p", {
1313
+ }, 1032, ["class", "value"])) : (c(), x("p", {
1292
1314
  key: 1,
1293
- innerHTML: E.data
1294
- }, null, 8, qt))], 10, Mt))), 128))])])]),
1315
+ innerHTML: U.data
1316
+ }, null, 8, Ht))], 10, qt))), 128))])])]),
1295
1317
  _: 1
1296
1318
  })), [[Le, t.value]]);
1297
1319
  };
1298
1320
  }
1299
1321
  });
1300
- const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1322
+ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1301
1323
  class: "editor"
1302
- }, Nt = {
1324
+ }, Yt = {
1303
1325
  class: "editor-content edit"
1304
- }, Yt = ["onClick"], Gt = ["onClick"], Xt = ["innerHTML", "draggable"], Jt = /* @__PURE__ */ L({
1326
+ }, Gt = ["onClick"], Xt = ["onClick"], Jt = ["innerHTML", "draggable"], Zt = /* @__PURE__ */ L({
1305
1327
  __name: "Editor",
1306
1328
  setup(o) {
1307
1329
  const t = {
@@ -1319,59 +1341,59 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1319
1341
  activeComponents: a,
1320
1342
  notDraggableList: r,
1321
1343
  titleComponent: n
1322
- } = Ke(I()), s = I(), c = (h) => {
1323
- e.value.forEach((b, p) => {
1324
- b.id === h && (e.value.splice(p, 1), s.activeComponents = []);
1344
+ } = Ke(I()), A = I(), d = (C) => {
1345
+ e.value.forEach((f, p) => {
1346
+ f.id === C && (e.value.splice(p, 1), A.activeComponents = []);
1325
1347
  });
1326
- }, i = (h) => {
1327
- s.setActiveComponents(h);
1328
- }, g = () => l("div", null, [U("未找到对应组件")]), f = (h) => h === "h2" || h === "h3" || h === "h4" ? F(t, "ReportText") : h === "bar" || h === "pie" || h === "line" ? F(t, "ReportChart") : h ? F(t, h) : l(g, null, null), d = (h) => {
1329
- console.log(h, "evt");
1330
- }, _ = V(!1), v = () => {
1331
- _.value = !0;
1332
- }, y = (h) => {
1333
- h.newIndex !== 0 && (console.log(h), _.value = !1);
1334
- }, x = V();
1335
- return (h, b) => {
1336
- const p = A("CircleClose"), D = A("el-icon");
1337
- return m(), C("div", zt, [T("div", {
1348
+ }, i = (C) => {
1349
+ A.setActiveComponents(C);
1350
+ }, g = () => l("div", null, [E("未找到对应组件")]), m = (C) => C === "h2" || C === "h3" || C === "h4" ? F(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? F(t, "ReportChart") : C ? F(t, C) : l(g, null, null), b = (C) => {
1351
+ console.log(C, "evt");
1352
+ }, v = V(!1), w = () => {
1353
+ v.value = !0;
1354
+ }, h = (C) => {
1355
+ C.newIndex !== 0 && (console.log(C), v.value = !1);
1356
+ }, _ = V();
1357
+ return (C, f) => {
1358
+ const p = s("CircleClose"), D = s("el-icon");
1359
+ return c(), x("div", Nt, [T("div", {
1338
1360
  class: N(["editor-content edit flex flex-start", [{
1339
- active: w(a).id === "filter"
1361
+ active: y(a).id === "filter"
1340
1362
  }]]),
1341
- onClick: b[0] || (b[0] = (B) => i({
1363
+ onClick: f[0] || (f[0] = (B) => i({
1342
1364
  id: "filter",
1343
1365
  type: "filter"
1344
1366
  }))
1345
- }, [(m(!0), C(S, null, P(w(r), (B) => (m(), C("div", {
1367
+ }, [(c(!0), x(S, null, P(y(r), (B) => (c(), x("div", {
1346
1368
  class: "item-input",
1347
1369
  key: B.id
1348
- }, [B.type === "report-select" || B.type === "range-time" && w(s).filterForm.range_time ? (m(), k(G(w(F)(t, B.type)), {
1370
+ }, [B.type === "report-select" || B.type === "range-time" && y(A).filterForm.range_time ? (c(), k(G(y(F)(t, B.type)), {
1349
1371
  key: 0,
1350
1372
  value: B
1351
1373
  }, {
1352
- default: u(() => [U(M(B.data), 1)]),
1374
+ default: u(() => [E(M(B.data), 1)]),
1353
1375
  _: 2
1354
- }, 1032, ["value"])) : R("", !0)]))), 128))], 2), T("div", Nt, [l(oe, {
1355
- value: w(n),
1356
- onClick: b[1] || (b[1] = (B) => i(w(n)))
1357
- }, null, 8, ["value"])]), l(w(He), {
1376
+ }, 1032, ["value"])) : R("", !0)]))), 128))], 2), T("div", Yt, [l(oe, {
1377
+ value: y(n),
1378
+ onClick: f[1] || (f[1] = (B) => i(y(n)))
1379
+ }, null, 8, ["value"])]), l(y(He), {
1358
1380
  ref_key: "el",
1359
- ref: x,
1360
- modelValue: w(e),
1361
- "onUpdate:modelValue": b[2] || (b[2] = (B) => Ee(e) ? e.value = B : null),
1362
- "on-change": d,
1381
+ ref: _,
1382
+ modelValue: y(e),
1383
+ "onUpdate:modelValue": f[2] || (f[2] = (B) => Ue(e) ? e.value = B : null),
1384
+ "on-change": b,
1363
1385
  animation: 150,
1364
- onStart: v,
1365
- onEnd: y
1386
+ onStart: w,
1387
+ onEnd: h
1366
1388
  }, {
1367
- default: u(() => [(m(!0), C(S, null, P(w(e), (B) => (m(), C("div", {
1389
+ default: u(() => [(c(!0), x(S, null, P(y(e), (B) => (c(), x("div", {
1368
1390
  key: B.id,
1369
1391
  class: N(["editor-content edit", ["editor" + B.type, {
1370
- active: B.id === w(a).id
1392
+ active: B.id === y(a).id
1371
1393
  }]]),
1372
1394
  onClick: (K) => i(B)
1373
1395
  }, [T("i", {
1374
- onClick: Re((K) => c(B.id), ["stop"]),
1396
+ onClick: Re((K) => d(B.id), ["stop"]),
1375
1397
  style: {
1376
1398
  "z-index": "99"
1377
1399
  }
@@ -1381,63 +1403,63 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1381
1403
  }, {
1382
1404
  default: u(() => [l(p)]),
1383
1405
  _: 1
1384
- })], 8, Gt), B.type !== "p" ? (m(), k(G(f(B.type)), {
1406
+ })], 8, Xt), B.type !== "p" ? (c(), k(G(m(B.type)), {
1385
1407
  key: 0,
1386
1408
  class: N(["editor" + B.type]),
1387
1409
  value: B,
1388
- draggable: _.value
1410
+ draggable: v.value
1389
1411
  }, {
1390
- default: u(() => [U(M(B.data), 1)]),
1412
+ default: u(() => [E(M(B.data), 1)]),
1391
1413
  _: 2
1392
- }, 1032, ["class", "value", "draggable"])) : (m(), C("p", {
1414
+ }, 1032, ["class", "value", "draggable"])) : (c(), x("p", {
1393
1415
  key: 1,
1394
1416
  innerHTML: B.data,
1395
- draggable: _.value
1396
- }, null, 8, Xt))], 10, Yt))), 128))]),
1417
+ draggable: v.value
1418
+ }, null, 8, Jt))], 10, Gt))), 128))]),
1397
1419
  _: 1
1398
1420
  }, 8, ["modelValue"])]);
1399
1421
  };
1400
1422
  }
1401
- }), Zt = { class: "label" }, jt = { class: "flex item-switch" }, Wt = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, De = /* @__PURE__ */ L({
1423
+ }), jt = { class: "label" }, Wt = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, eo = { class: "flex item-switch" }, De = /* @__PURE__ */ L({
1402
1424
  __name: "SettingTable",
1403
1425
  setup(o) {
1404
1426
  const t = I(), e = Q(() => t.getActiveComponents);
1405
1427
  return (a, r) => {
1406
- const n = A("el-switch"), s = A("el-form-item"), c = A("el-divider");
1407
- return m(), C("div", null, [
1408
- l(s, { label: "控制列" }, {
1428
+ const n = s("el-switch"), A = s("el-form-item"), d = s("el-divider");
1429
+ return c(), x("div", null, [
1430
+ l(A, { label: "控制列" }, {
1409
1431
  default: u(() => [
1410
- (m(!0), C(S, null, P(e.value.showColumn, (i, g) => (m(), C("p", {
1432
+ (c(!0), x(S, null, P(e.value.showColumn, (i, g) => (c(), x("p", {
1411
1433
  class: "flex item-switch",
1412
1434
  key: g
1413
1435
  }, [
1414
- T("span", Zt, M(i.name), 1),
1436
+ T("span", jt, M(i.name), 1),
1415
1437
  l(n, {
1416
1438
  modelValue: e.value.options.showColumn[i.key],
1417
- "onUpdate:modelValue": (f) => e.value.options.showColumn[i.key] = f
1439
+ "onUpdate:modelValue": (m) => e.value.options.showColumn[i.key] = m
1418
1440
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1419
1441
  ]))), 128))
1420
1442
  ]),
1421
1443
  _: 1
1422
1444
  }),
1423
- l(c),
1424
- l(s, { label: "表格样式" }, {
1445
+ l(d),
1446
+ l(A, { label: "表格样式" }, {
1425
1447
  default: u(() => [
1426
- T("p", jt, [
1448
+ T("p", Wt, [
1427
1449
  r[3] || (r[3] = T("span", { class: "label" }, "斑马纹", -1)),
1428
1450
  l(n, {
1429
1451
  modelValue: e.value.options.stripe,
1430
1452
  "onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
1431
1453
  }, null, 8, ["modelValue"])
1432
1454
  ]),
1433
- T("p", Wt, [
1455
+ T("p", $t, [
1434
1456
  r[4] || (r[4] = T("span", { class: "label" }, "边框", -1)),
1435
1457
  l(n, {
1436
1458
  modelValue: e.value.options.border,
1437
1459
  "onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
1438
1460
  }, null, 8, ["modelValue"])
1439
1461
  ]),
1440
- T("p", $t, [
1462
+ T("p", eo, [
1441
1463
  r[5] || (r[5] = T("span", { class: "label" }, "表头", -1)),
1442
1464
  l(n, {
1443
1465
  modelValue: e.value.options.showHeader,
@@ -1450,7 +1472,7 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1450
1472
  ]);
1451
1473
  };
1452
1474
  }
1453
- }), eo = { key: 0 }, to = /* @__PURE__ */ L({
1475
+ }), to = { key: 0 }, oo = /* @__PURE__ */ L({
1454
1476
  __name: "ChartsUniConfig",
1455
1477
  setup(o) {
1456
1478
  const t = I(), e = Q(() => t.activeComponents);
@@ -1458,41 +1480,41 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1458
1480
  r ? (e.value.options.series[0].radius = ["10%", "65%"], e.value.options.graphic[0].invisible = !0, e.value.options.graphic[1].invisible = !0) : (e.value.options.series[0].radius = ["45%", "70%"], e.value.options.graphic[0].invisible = !1, e.value.options.graphic[1].invisible = !1);
1459
1481
  }
1460
1482
  return V("rgb(46, 145, 255)"), (r, n) => {
1461
- const s = A("el-input"), c = A("el-form-item"), i = A("el-switch"), g = A("el-col"), f = A("el-color-picker"), d = A("el-input-number"), _ = A("el-row"), v = A("el-collapse-item"), y = A("el-collapse");
1462
- return e.value.options.title ? (m(), C("div", eo, [
1463
- l(c, { label: "标题" }, {
1483
+ const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"), g = s("el-col"), m = s("el-color-picker"), b = s("el-input-number"), v = s("el-row"), w = s("el-collapse-item"), h = s("el-collapse");
1484
+ return e.value.options.title ? (c(), x("div", to, [
1485
+ l(d, { label: "标题" }, {
1464
1486
  default: u(() => [
1465
- l(s, {
1487
+ l(A, {
1466
1488
  modelValue: e.value.options.title.text,
1467
- "onUpdate:modelValue": n[0] || (n[0] = (x) => e.value.options.title.text = x)
1489
+ "onUpdate:modelValue": n[0] || (n[0] = (_) => e.value.options.title.text = _)
1468
1490
  }, null, 8, ["modelValue"])
1469
1491
  ]),
1470
1492
  _: 1
1471
1493
  }),
1472
- l(y, null, {
1494
+ l(h, null, {
1473
1495
  default: u(() => [
1474
- l(v, {
1496
+ l(w, {
1475
1497
  title: "标题配置",
1476
1498
  name: "1"
1477
1499
  }, {
1478
1500
  default: u(() => [
1479
- l(_, { class: "w-100%" }, {
1501
+ l(v, { class: "w-100%" }, {
1480
1502
  default: u(() => [
1481
1503
  l(g, { span: 24 }, {
1482
1504
  default: u(() => [
1483
1505
  n[8] || (n[8] = T("span", { class: "switch-label" }, "显示标题", -1)),
1484
1506
  l(i, {
1485
1507
  modelValue: e.value.options.title.show,
1486
- "onUpdate:modelValue": n[1] || (n[1] = (x) => e.value.options.title.show = x)
1508
+ "onUpdate:modelValue": n[1] || (n[1] = (_) => e.value.options.title.show = _)
1487
1509
  }, null, 8, ["modelValue"])
1488
1510
  ]),
1489
1511
  _: 1
1490
1512
  }),
1491
1513
  l(g, { span: 12 }, {
1492
1514
  default: u(() => [
1493
- l(f, {
1515
+ l(m, {
1494
1516
  modelValue: e.value.options.title.textStyle.color,
1495
- "onUpdate:modelValue": n[2] || (n[2] = (x) => e.value.options.title.textStyle.color = x),
1517
+ "onUpdate:modelValue": n[2] || (n[2] = (_) => e.value.options.title.textStyle.color = _),
1496
1518
  "show-alpha": ""
1497
1519
  }, null, 8, ["modelValue"]),
1498
1520
  n[9] || (n[9] = T("p", { class: "sub-title" }, "颜色", -1))
@@ -1501,9 +1523,9 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1501
1523
  }),
1502
1524
  l(g, { span: 12 }, {
1503
1525
  default: u(() => [
1504
- l(d, {
1526
+ l(b, {
1505
1527
  modelValue: e.value.options.title.textStyle.fontSize,
1506
- "onUpdate:modelValue": n[3] || (n[3] = (x) => e.value.options.title.textStyle.fontSize = x),
1528
+ "onUpdate:modelValue": n[3] || (n[3] = (_) => e.value.options.title.textStyle.fontSize = _),
1507
1529
  "controls-position": "right"
1508
1530
  }, null, 8, ["modelValue"]),
1509
1531
  n[10] || (n[10] = T("p", { class: "sub-title" }, "字体大小", -1))
@@ -1512,9 +1534,9 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1512
1534
  }),
1513
1535
  l(g, { span: 12 }, {
1514
1536
  default: u(() => [
1515
- l(d, {
1537
+ l(b, {
1516
1538
  modelValue: e.value.options.title.x,
1517
- "onUpdate:modelValue": n[4] || (n[4] = (x) => e.value.options.title.x = x),
1539
+ "onUpdate:modelValue": n[4] || (n[4] = (_) => e.value.options.title.x = _),
1518
1540
  "controls-position": "right"
1519
1541
  }, null, 8, ["modelValue"]),
1520
1542
  n[11] || (n[11] = T("p", { class: "sub-title" }, "横向", -1))
@@ -1523,9 +1545,9 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1523
1545
  }),
1524
1546
  l(g, { span: 12 }, {
1525
1547
  default: u(() => [
1526
- l(d, {
1548
+ l(b, {
1527
1549
  modelValue: e.value.options.title.y,
1528
- "onUpdate:modelValue": n[5] || (n[5] = (x) => e.value.options.title.y = x),
1550
+ "onUpdate:modelValue": n[5] || (n[5] = (_) => e.value.options.title.y = _),
1529
1551
  "controls-position": "right"
1530
1552
  }, null, 8, ["modelValue"]),
1531
1553
  n[12] || (n[12] = T("p", { class: "sub-title" }, "纵向", -1))
@@ -1538,12 +1560,12 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1538
1560
  ]),
1539
1561
  _: 1
1540
1562
  }),
1541
- l(v, {
1563
+ l(w, {
1542
1564
  title: "图形配置",
1543
1565
  name: "2"
1544
1566
  }, {
1545
1567
  default: u(() => [
1546
- e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), k(_, { key: 0 }, {
1568
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (c(), k(v, { key: 0 }, {
1547
1569
  default: u(() => [
1548
1570
  l(g, { span: 24 }, {
1549
1571
  default: u(() => [
@@ -1551,7 +1573,7 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1551
1573
  l(i, {
1552
1574
  onChange: a,
1553
1575
  modelValue: e.value.options.series[0].roseType,
1554
- "onUpdate:modelValue": n[6] || (n[6] = (x) => e.value.options.series[0].roseType = x)
1576
+ "onUpdate:modelValue": n[6] || (n[6] = (_) => e.value.options.series[0].roseType = _)
1555
1577
  }, null, 8, ["modelValue"])
1556
1578
  ]),
1557
1579
  _: 1
@@ -1562,20 +1584,20 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1562
1584
  ]),
1563
1585
  _: 1
1564
1586
  }),
1565
- l(v, {
1587
+ l(w, {
1566
1588
  title: "图例配置",
1567
1589
  name: "3"
1568
1590
  }, {
1569
1591
  default: u(() => [
1570
- l(_, null, {
1592
+ l(v, null, {
1571
1593
  default: u(() => [
1572
1594
  l(g, { span: 24 }, {
1573
1595
  default: u(() => [
1574
1596
  n[14] || (n[14] = T("span", { class: "switch-label" }, "显示图例", -1)),
1575
- e.value.options.legend ? (m(), k(i, {
1597
+ e.value.options.legend ? (c(), k(i, {
1576
1598
  key: 0,
1577
1599
  modelValue: e.value.options.legend.show,
1578
- "onUpdate:modelValue": n[7] || (n[7] = (x) => e.value.options.legend.show = x)
1600
+ "onUpdate:modelValue": n[7] || (n[7] = (_) => e.value.options.legend.show = _)
1579
1601
  }, null, 8, ["modelValue"])) : R("", !0)
1580
1602
  ]),
1581
1603
  _: 1
@@ -1593,36 +1615,36 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
1593
1615
  };
1594
1616
  }
1595
1617
  });
1596
- const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @__PURE__ */ L({
1618
+ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @__PURE__ */ L({
1597
1619
  __name: "SettingDescribe",
1598
1620
  setup(o) {
1599
1621
  const t = I(), e = Q(() => t.getActiveComponents);
1600
1622
  return (a, r) => {
1601
- const n = A("el-input"), s = A("el-form-item"), c = A("el-switch"), i = A("el-input-number"), g = A("el-radio"), f = A("el-radio-group");
1602
- return m(), C("div", null, [
1603
- l(s, { label: "标题" }, {
1623
+ const n = s("el-input"), A = s("el-form-item"), d = s("el-switch"), i = s("el-input-number"), g = s("el-radio"), m = s("el-radio-group");
1624
+ return c(), x("div", null, [
1625
+ l(A, { label: "标题" }, {
1604
1626
  default: u(() => [
1605
1627
  l(n, {
1606
1628
  modelValue: e.value.options.title,
1607
- "onUpdate:modelValue": r[0] || (r[0] = (d) => e.value.options.title = d)
1629
+ "onUpdate:modelValue": r[0] || (r[0] = (b) => e.value.options.title = b)
1608
1630
  }, null, 8, ["modelValue"])
1609
1631
  ]),
1610
1632
  _: 1
1611
1633
  }),
1612
- l(s, { label: "边框" }, {
1634
+ l(A, { label: "边框" }, {
1613
1635
  default: u(() => [
1614
- l(c, {
1636
+ l(d, {
1615
1637
  modelValue: e.value.options.border,
1616
- "onUpdate:modelValue": r[1] || (r[1] = (d) => e.value.options.border = d)
1638
+ "onUpdate:modelValue": r[1] || (r[1] = (b) => e.value.options.border = b)
1617
1639
  }, null, 8, ["modelValue"])
1618
1640
  ]),
1619
1641
  _: 1
1620
1642
  }),
1621
- l(s, { label: "每行展示数量" }, {
1643
+ l(A, { label: "每行展示数量" }, {
1622
1644
  default: u(() => [
1623
1645
  l(i, {
1624
1646
  modelValue: e.value.options.column,
1625
- "onUpdate:modelValue": r[2] || (r[2] = (d) => e.value.options.column = d),
1647
+ "onUpdate:modelValue": r[2] || (r[2] = (b) => e.value.options.column = b),
1626
1648
  min: 1,
1627
1649
  max: 10,
1628
1650
  controls: !1
@@ -1630,22 +1652,22 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1630
1652
  ]),
1631
1653
  _: 1
1632
1654
  }),
1633
- l(s, { label: "排列方向" }, {
1655
+ l(A, { label: "排列方向" }, {
1634
1656
  default: u(() => [
1635
- l(f, {
1657
+ l(m, {
1636
1658
  modelValue: e.value.options.direction,
1637
- "onUpdate:modelValue": r[3] || (r[3] = (d) => e.value.options.direction = d)
1659
+ "onUpdate:modelValue": r[3] || (r[3] = (b) => e.value.options.direction = b)
1638
1660
  }, {
1639
1661
  default: u(() => [
1640
1662
  l(g, { value: "horizontal" }, {
1641
1663
  default: u(() => r[4] || (r[4] = [
1642
- U("横向")
1664
+ E("横向")
1643
1665
  ])),
1644
1666
  _: 1
1645
1667
  }),
1646
1668
  l(g, { value: "vertical" }, {
1647
1669
  default: u(() => r[5] || (r[5] = [
1648
- U("纵向")
1670
+ E("纵向")
1649
1671
  ])),
1650
1672
  _: 1
1651
1673
  })
@@ -1658,7 +1680,7 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1658
1680
  ]);
1659
1681
  };
1660
1682
  }
1661
- }), lo = /* @__PURE__ */ L({
1683
+ }), no = /* @__PURE__ */ L({
1662
1684
  __name: "SettingCharts",
1663
1685
  setup(o) {
1664
1686
  const t = I(), e = V(!1), a = Q(() => t.getActiveComponents), r = [
@@ -1667,70 +1689,70 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1667
1689
  { value: "line", name: "趋势图" },
1668
1690
  { value: "pie", name: "扇形图" },
1669
1691
  { value: "bar", name: "柱状图" }
1670
- ], n = V(""), s = V();
1671
- async function c(f) {
1672
- const d = await ge({
1692
+ ], n = V(""), A = V();
1693
+ async function d(m) {
1694
+ const b = await ge({
1673
1695
  prod_type: window.$prodType,
1674
- chart_type: f,
1696
+ chart_type: m,
1675
1697
  filter_uuid: t.filterForm.filter_uuid
1676
1698
  });
1677
- s.value = d.data;
1699
+ A.value = b.data;
1678
1700
  }
1679
- function i(f) {
1680
- let d = s.value.find((v) => v.rp_item_uuid === f);
1681
- const _ = d.rp_item_content;
1682
- if (d.rp_item_content.type === "bar" && (_.options = j()), _.type === "pie" && (_.options = ae({ isLegend: !0 })), _.type === "line") {
1683
- let v = [];
1684
- _.data.forEach((x) => {
1685
- v = x.data.map((h, b) => ({ name: h.name, value: "value" + b }));
1701
+ function i(m) {
1702
+ let b = A.value.find((w) => w.rp_item_uuid === m);
1703
+ const v = b.rp_item_content;
1704
+ if (b.rp_item_content.type === "bar" && (v.options = j()), v.type === "pie" && (v.options = re({ isLegend: !0 })), v.type === "line") {
1705
+ let w = [];
1706
+ v.data.forEach((_) => {
1707
+ w = _.data.map((C, f) => ({ name: C.name, value: "value" + f }));
1686
1708
  });
1687
- const y = {
1709
+ const h = {
1688
1710
  name: "name",
1689
- value: v
1711
+ value: w
1690
1712
  };
1691
- _.options = Z([], y);
1713
+ v.options = Z([], h);
1692
1714
  }
1693
- if (_.type === "report-table") {
1694
- const v = {};
1695
- _.showColumn.forEach((y) => {
1696
- v[y.key] = !0;
1697
- }), _.options = { ..._.options, showColumn: v, border: !0, showHeader: !0, stripe: !1 };
1715
+ if (v.type === "report-table") {
1716
+ const w = {};
1717
+ v.showColumn.forEach((h) => {
1718
+ w[h.key] = !0;
1719
+ }), v.options = { ...v.options, showColumn: w, border: !0, showHeader: !0, stripe: !1 };
1698
1720
  }
1699
- _.type === "report-describe" && (_.options = { ..._.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, _), t.activeComponents.rp_item_uuid = d.rp_item_uuid;
1721
+ v.type === "report-describe" && (v.options = { ...v.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, v), t.activeComponents.rp_item_uuid = b.rp_item_uuid;
1700
1722
  }
1701
- le(async () => {
1702
- n.value = a.value.type, await c(n.value);
1723
+ ne(async () => {
1724
+ n.value = a.value.type, await d(n.value);
1703
1725
  });
1704
- async function g(f) {
1726
+ async function g(m) {
1705
1727
  try {
1706
- e.value = !0, await c(f), Object.assign(t.activeComponents, Bt(f)), e.value = !1;
1728
+ e.value = !0, await d(m), Object.assign(t.activeComponents, Bt(m)), e.value = !1;
1707
1729
  } catch {
1708
1730
  e.value = !1;
1709
1731
  }
1710
1732
  }
1711
1733
  return Se(
1712
1734
  () => a.value,
1713
- (f) => {
1714
- console.log(f, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(f.type) && (n.value = a.value.type, c(n.value));
1735
+ (m) => {
1736
+ console.log(m, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(m.type) && (n.value = a.value.type, d(n.value));
1715
1737
  }
1716
- ), (f, d) => {
1717
- const _ = A("el-option"), v = A("el-select"), y = A("el-form-item"), x = A("el-form"), h = me("loading");
1718
- return fe((m(), C("div", null, [
1719
- l(x, { "label-position": "top" }, {
1738
+ ), (m, b) => {
1739
+ const v = s("el-option"), w = s("el-select"), h = s("el-form-item"), _ = s("el-form"), C = fe("loading");
1740
+ return le((c(), x("div", null, [
1741
+ l(_, { "label-position": "top" }, {
1720
1742
  default: u(() => [
1721
- l(y, { label: "图表类型" }, {
1743
+ l(h, { label: "图表类型" }, {
1722
1744
  default: u(() => [
1723
- l(v, {
1745
+ l(w, {
1724
1746
  style: { width: "100%" },
1725
1747
  modelValue: n.value,
1726
- "onUpdate:modelValue": d[0] || (d[0] = (b) => n.value = b),
1748
+ "onUpdate:modelValue": b[0] || (b[0] = (f) => n.value = f),
1727
1749
  onChange: g
1728
1750
  }, {
1729
1751
  default: u(() => [
1730
- (m(), C(S, null, P(r, (b, p) => l(_, {
1752
+ (c(), x(S, null, P(r, (f, p) => l(v, {
1731
1753
  key: p,
1732
- label: b.name,
1733
- value: b.value
1754
+ label: f.name,
1755
+ value: f.value
1734
1756
  }, null, 8, ["label", "value"])), 64))
1735
1757
  ]),
1736
1758
  _: 1
@@ -1738,19 +1760,19 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1738
1760
  ]),
1739
1761
  _: 1
1740
1762
  }),
1741
- l(y, { label: "组件库" }, {
1763
+ l(h, { label: "组件库" }, {
1742
1764
  default: u(() => [
1743
- l(v, {
1765
+ l(w, {
1744
1766
  style: { width: "100%" },
1745
- modelValue: w(t).activeComponents.rp_item_uuid,
1746
- "onUpdate:modelValue": d[1] || (d[1] = (b) => w(t).activeComponents.rp_item_uuid = b),
1767
+ modelValue: y(t).activeComponents.rp_item_uuid,
1768
+ "onUpdate:modelValue": b[1] || (b[1] = (f) => y(t).activeComponents.rp_item_uuid = f),
1747
1769
  onChange: i
1748
1770
  }, {
1749
1771
  default: u(() => [
1750
- (m(!0), C(S, null, P(s.value, (b, p) => (m(), k(_, {
1772
+ (c(!0), x(S, null, P(A.value, (f, p) => (c(), k(v, {
1751
1773
  key: p,
1752
- label: b.rp_item_name,
1753
- value: b.rp_item_uuid
1774
+ label: f.rp_item_name,
1775
+ value: f.rp_item_uuid
1754
1776
  }, null, 8, ["label", "value"]))), 128))
1755
1777
  ]),
1756
1778
  _: 1
@@ -1758,31 +1780,31 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1758
1780
  ]),
1759
1781
  _: 1
1760
1782
  }),
1761
- n.value === "report-table" && a.value.options.showColumn ? (m(), k(De, { key: 0 })) : R("", !0),
1762
- n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), k(oo, { key: 1 })) : R("", !0),
1763
- n.value === "report-describe" ? (m(), k(ke, { key: 2 })) : R("", !0)
1783
+ n.value === "report-table" && a.value.options.showColumn ? (c(), k(De, { key: 0 })) : R("", !0),
1784
+ n.value === "pie" || n.value === "bar" || n.value === "line" ? (c(), k(lo, { key: 1 })) : R("", !0),
1785
+ n.value === "report-describe" ? (c(), k(ke, { key: 2 })) : R("", !0)
1764
1786
  ]),
1765
1787
  _: 1
1766
1788
  })
1767
1789
  ])), [
1768
- [h, e.value]
1790
+ [C, e.value]
1769
1791
  ]);
1770
1792
  };
1771
1793
  }
1772
- }), no = { key: 0 }, ao = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, se = "default", ro = /* @__PURE__ */ L({
1794
+ }), ao = { key: 0 }, ro = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", Ao = /* @__PURE__ */ L({
1773
1795
  __name: "SettingText",
1774
1796
  setup(o) {
1775
1797
  const t = I(), e = Oe(), a = V();
1776
- function r(f) {
1777
- const d = a.value.find((_) => _.rp_item_uuid === f);
1778
- t.activeComponents.uri = d.rp_item_content.uri, e.value.setHtml((d == null ? void 0 : d.rp_item_content.data) || "");
1798
+ function r(m) {
1799
+ const b = a.value.find((v) => v.rp_item_uuid === m);
1800
+ t.activeComponents.uri = b.rp_item_content.uri, e.value.setHtml((b == null ? void 0 : b.rp_item_content.data) || "");
1779
1801
  }
1780
1802
  async function n() {
1781
- const f = await ge({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1782
- a.value = f.data;
1803
+ const m = await ge({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1804
+ a.value = m.data;
1783
1805
  }
1784
1806
  n();
1785
- const s = {
1807
+ const A = {
1786
1808
  toolbarKeys: [
1787
1809
  "bold",
1788
1810
  "underline",
@@ -1804,31 +1826,31 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1804
1826
  "justifyJustify",
1805
1827
  "lineHeight"
1806
1828
  ]
1807
- }, c = { placeholder: "请输入内容..." }, i = (f) => {
1808
- e.value = f;
1809
- }, g = (f) => {
1829
+ }, d = { placeholder: "请输入内容..." }, i = (m) => {
1830
+ e.value = m;
1831
+ }, g = (m) => {
1810
1832
  };
1811
1833
  return Pe(() => {
1812
- const f = e.value;
1813
- f != null && f.destroy();
1814
- }), (f, d) => {
1815
- const _ = A("el-option"), v = A("el-select"), y = A("el-form-item"), x = A("el-form");
1816
- return w(t).activeComponents.id ? (m(), C("div", no, [
1817
- l(x, { "label-position": "top" }, {
1834
+ const m = e.value;
1835
+ m != null && m.destroy();
1836
+ }), (m, b) => {
1837
+ const v = s("el-option"), w = s("el-select"), h = s("el-form-item"), _ = s("el-form");
1838
+ return y(t).activeComponents.id ? (c(), x("div", ao, [
1839
+ l(_, { "label-position": "top" }, {
1818
1840
  default: u(() => [
1819
- l(y, { label: "组件库" }, {
1841
+ l(h, { label: "组件库" }, {
1820
1842
  default: u(() => [
1821
- l(v, {
1843
+ l(w, {
1822
1844
  style: { width: "100%" },
1823
- modelValue: w(t).activeComponents.rp_item_uuid,
1824
- "onUpdate:modelValue": d[0] || (d[0] = (h) => w(t).activeComponents.rp_item_uuid = h),
1845
+ modelValue: y(t).activeComponents.rp_item_uuid,
1846
+ "onUpdate:modelValue": b[0] || (b[0] = (C) => y(t).activeComponents.rp_item_uuid = C),
1825
1847
  onChange: r
1826
1848
  }, {
1827
1849
  default: u(() => [
1828
- (m(!0), C(S, null, P(a.value, (h, b) => (m(), k(_, {
1829
- key: b,
1830
- label: h.rp_item_name,
1831
- value: h.rp_item_uuid
1850
+ (c(!0), x(S, null, P(a.value, (C, f) => (c(), k(v, {
1851
+ key: f,
1852
+ label: C.rp_item_name,
1853
+ value: C.rp_item_uuid
1832
1854
  }, null, 8, ["label", "value"]))), 128))
1833
1855
  ]),
1834
1856
  _: 1
@@ -1836,22 +1858,22 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1836
1858
  ]),
1837
1859
  _: 1
1838
1860
  }),
1839
- l(y, { label: "文本内容" }, {
1861
+ l(h, { label: "文本内容" }, {
1840
1862
  default: u(() => [
1841
- T("div", ao, [
1842
- l(w(ze), {
1863
+ T("div", ro, [
1864
+ l(y(ze), {
1843
1865
  style: { "border-bottom": "1px solid #ccc" },
1844
1866
  editor: e.value,
1845
- "default-config": s,
1846
- mode: se
1867
+ "default-config": A,
1868
+ mode: ie
1847
1869
  }, null, 8, ["editor"]),
1848
- l(w(Ne), {
1870
+ l(y(Ne), {
1849
1871
  style: { height: "500px", "overflow-y": "hidden" },
1850
1872
  onOnChange: g,
1851
- modelValue: w(t).activeComponents.data,
1852
- "onUpdate:modelValue": d[1] || (d[1] = (h) => w(t).activeComponents.data = h),
1853
- "default-config": c,
1854
- mode: se,
1873
+ modelValue: y(t).activeComponents.data,
1874
+ "onUpdate:modelValue": b[1] || (b[1] = (C) => y(t).activeComponents.data = C),
1875
+ "default-config": d,
1876
+ mode: ie,
1855
1877
  onOnCreated: i
1856
1878
  }, null, 8, ["modelValue"])
1857
1879
  ])
@@ -1864,7 +1886,7 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1864
1886
  ])) : R("", !0);
1865
1887
  };
1866
1888
  }
1867
- }), Ao = /* @__PURE__ */ L({
1889
+ }), so = /* @__PURE__ */ L({
1868
1890
  __name: "SettingFilter",
1869
1891
  setup(o) {
1870
1892
  const t = V([]), e = I();
@@ -1873,24 +1895,24 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1873
1895
  t.value = r.data;
1874
1896
  }
1875
1897
  return a(), (r, n) => {
1876
- const s = A("el-option"), c = A("el-select"), i = A("el-form-item"), g = A("el-checkbox"), f = A("el-form");
1877
- return m(), k(f, {
1898
+ const A = s("el-option"), d = s("el-select"), i = s("el-form-item"), g = s("el-checkbox"), m = s("el-form");
1899
+ return c(), k(m, {
1878
1900
  "label-width": "80px",
1879
1901
  "label-position": "top"
1880
1902
  }, {
1881
1903
  default: u(() => [
1882
1904
  l(i, { label: "筛选条件" }, {
1883
1905
  default: u(() => [
1884
- l(c, {
1885
- modelValue: w(e).filterForm.filter_uuid,
1886
- "onUpdate:modelValue": n[0] || (n[0] = (d) => w(e).filterForm.filter_uuid = d),
1887
- disabled: !!w(e).filterForm.filter_uuid
1906
+ l(d, {
1907
+ modelValue: y(e).filterForm.filter_uuid,
1908
+ "onUpdate:modelValue": n[0] || (n[0] = (b) => y(e).filterForm.filter_uuid = b),
1909
+ disabled: !!y(e).filterForm.filter_uuid
1888
1910
  }, {
1889
1911
  default: u(() => [
1890
- (m(!0), C(S, null, P(t.value, (d) => (m(), k(s, {
1891
- key: d.filter_uuid,
1892
- label: d.filter_name,
1893
- value: d.filter_uuid
1912
+ (c(!0), x(S, null, P(t.value, (b) => (c(), k(A, {
1913
+ key: b.filter_uuid,
1914
+ label: b.filter_name,
1915
+ value: b.filter_uuid
1894
1916
  }, null, 8, ["label", "value"]))), 128))
1895
1917
  ]),
1896
1918
  _: 1
@@ -1901,8 +1923,8 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1901
1923
  l(i, null, {
1902
1924
  default: u(() => [
1903
1925
  l(g, {
1904
- modelValue: w(e).filterForm.range_time,
1905
- "onUpdate:modelValue": n[1] || (n[1] = (d) => w(e).filterForm.range_time = d),
1926
+ modelValue: y(e).filterForm.range_time,
1927
+ "onUpdate:modelValue": n[1] || (n[1] = (b) => y(e).filterForm.range_time = b),
1906
1928
  "true-value": 1,
1907
1929
  "false-value": 0,
1908
1930
  label: "时间范围"
@@ -1915,13 +1937,13 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1915
1937
  });
1916
1938
  };
1917
1939
  }
1918
- }), so = /* @__PURE__ */ L({
1940
+ }), io = /* @__PURE__ */ L({
1919
1941
  __name: "SettingTitle",
1920
1942
  setup(o) {
1921
1943
  const t = I();
1922
1944
  return (e, a) => {
1923
- const r = A("el-input"), n = A("el-form-item"), s = A("el-color-picker"), c = A("el-col"), i = A("el-input-number"), g = A("el-option"), f = A("el-select"), d = A("el-row"), _ = A("el-form");
1924
- return m(), k(_, {
1945
+ const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), d = s("el-col"), i = s("el-input-number"), g = s("el-option"), m = s("el-select"), b = s("el-row"), v = s("el-form");
1946
+ return c(), k(v, {
1925
1947
  "label-width": "auto",
1926
1948
  "label-position": "top"
1927
1949
  }, {
@@ -1929,8 +1951,8 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1929
1951
  l(n, { label: "名称" }, {
1930
1952
  default: u(() => [
1931
1953
  l(r, {
1932
- modelValue: w(t).activeComponents.data,
1933
- "onUpdate:modelValue": a[0] || (a[0] = (v) => w(t).activeComponents.data = v),
1954
+ modelValue: y(t).activeComponents.data,
1955
+ "onUpdate:modelValue": a[0] || (a[0] = (w) => y(t).activeComponents.data = w),
1934
1956
  placeholder: "Please input",
1935
1957
  maxlength: "24",
1936
1958
  "show-word-limit": ""
@@ -1940,35 +1962,35 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1940
1962
  }),
1941
1963
  l(n, { label: "样式" }, {
1942
1964
  default: u(() => [
1943
- l(d, { gutter: 20 }, {
1965
+ l(b, { gutter: 20 }, {
1944
1966
  default: u(() => [
1945
- l(c, { span: 12 }, {
1967
+ l(d, { span: 12 }, {
1946
1968
  default: u(() => [
1947
- l(s, {
1948
- modelValue: w(t).activeComponents.options.color,
1949
- "onUpdate:modelValue": a[1] || (a[1] = (v) => w(t).activeComponents.options.color = v),
1969
+ l(A, {
1970
+ modelValue: y(t).activeComponents.options.color,
1971
+ "onUpdate:modelValue": a[1] || (a[1] = (w) => y(t).activeComponents.options.color = w),
1950
1972
  "show-alpha": ""
1951
1973
  }, null, 8, ["modelValue"]),
1952
1974
  a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
1953
1975
  ]),
1954
1976
  _: 1
1955
1977
  }),
1956
- l(c, { span: 12 }, {
1978
+ l(d, { span: 12 }, {
1957
1979
  default: u(() => [
1958
1980
  l(i, {
1959
- modelValue: w(t).activeComponents.options.size,
1960
- "onUpdate:modelValue": a[2] || (a[2] = (v) => w(t).activeComponents.options.size = v),
1981
+ modelValue: y(t).activeComponents.options.size,
1982
+ "onUpdate:modelValue": a[2] || (a[2] = (w) => y(t).activeComponents.options.size = w),
1961
1983
  "controls-position": "right"
1962
1984
  }, null, 8, ["modelValue"]),
1963
1985
  a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
1964
1986
  ]),
1965
1987
  _: 1
1966
1988
  }),
1967
- l(c, { span: 12 }, {
1989
+ l(d, { span: 12 }, {
1968
1990
  default: u(() => [
1969
- l(f, {
1970
- modelValue: w(t).activeComponents.options.fontWeight,
1971
- "onUpdate:modelValue": a[3] || (a[3] = (v) => w(t).activeComponents.options.fontWeight = v)
1991
+ l(m, {
1992
+ modelValue: y(t).activeComponents.options.fontWeight,
1993
+ "onUpdate:modelValue": a[3] || (a[3] = (w) => y(t).activeComponents.options.fontWeight = w)
1972
1994
  }, {
1973
1995
  default: u(() => [
1974
1996
  l(g, {
@@ -1986,33 +2008,33 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1986
2008
  ]),
1987
2009
  _: 1
1988
2010
  }),
1989
- l(c, { span: 12 }, {
2011
+ l(d, { span: 12 }, {
1990
2012
  default: u(() => [
1991
2013
  l(i, {
1992
- modelValue: w(t).activeComponents.options.letterSpacing,
1993
- "onUpdate:modelValue": a[4] || (a[4] = (v) => w(t).activeComponents.options.letterSpacing = v),
2014
+ modelValue: y(t).activeComponents.options.letterSpacing,
2015
+ "onUpdate:modelValue": a[4] || (a[4] = (w) => y(t).activeComponents.options.letterSpacing = w),
1994
2016
  "controls-position": "right"
1995
2017
  }, null, 8, ["modelValue"]),
1996
2018
  a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
1997
2019
  ]),
1998
2020
  _: 1
1999
2021
  }),
2000
- l(c, { span: 12 }, {
2022
+ l(d, { span: 12 }, {
2001
2023
  default: u(() => [
2002
2024
  l(i, {
2003
- modelValue: w(t).activeComponents.options.textIndent,
2004
- "onUpdate:modelValue": a[5] || (a[5] = (v) => w(t).activeComponents.options.textIndent = v),
2025
+ modelValue: y(t).activeComponents.options.textIndent,
2026
+ "onUpdate:modelValue": a[5] || (a[5] = (w) => y(t).activeComponents.options.textIndent = w),
2005
2027
  "controls-position": "right"
2006
2028
  }, null, 8, ["modelValue"]),
2007
2029
  a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
2008
2030
  ]),
2009
2031
  _: 1
2010
2032
  }),
2011
- l(c, { span: 12 }, {
2033
+ l(d, { span: 12 }, {
2012
2034
  default: u(() => [
2013
- l(f, {
2014
- modelValue: w(t).activeComponents.options.textAlign,
2015
- "onUpdate:modelValue": a[6] || (a[6] = (v) => w(t).activeComponents.options.textAlign = v)
2035
+ l(m, {
2036
+ modelValue: y(t).activeComponents.options.textAlign,
2037
+ "onUpdate:modelValue": a[6] || (a[6] = (w) => y(t).activeComponents.options.textAlign = w)
2016
2038
  }, {
2017
2039
  default: u(() => [
2018
2040
  l(g, {
@@ -2046,30 +2068,30 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
2046
2068
  };
2047
2069
  }
2048
2070
  });
2049
- const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @__PURE__ */ L({
2071
+ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @__PURE__ */ L({
2050
2072
  __name: "Setting",
2051
2073
  setup(o) {
2052
2074
  const t = {
2053
2075
  SettingTable: De,
2054
- SettingCharts: lo,
2076
+ SettingCharts: no,
2055
2077
  SettingDescribe: ke,
2056
- SettingText: ro,
2057
- SettingFilter: Ao,
2058
- SettingTitle: io
2059
- }, e = I(), a = Q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe"], c = (i) => r.includes(i) ? F(t, "SettingTitle") : n.includes(i) ? F(t, "SettingText") : s.includes(i) ? F(t, "SettingCharts") : i === "filter" ? F(t, "SettingFilter") : "DefaultEditor";
2078
+ SettingText: Ao,
2079
+ SettingFilter: so,
2080
+ SettingTitle: uo
2081
+ }, e = I(), a = Q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? F(t, "SettingTitle") : n.includes(i) ? F(t, "SettingText") : A.includes(i) ? F(t, "SettingCharts") : i === "filter" ? F(t, "SettingFilter") : "DefaultEditor";
2060
2082
  return (i, g) => {
2061
- const f = A("el-card");
2062
- return m(), k(f, { class: "config-wrapper" }, {
2083
+ const m = s("el-card");
2084
+ return c(), k(m, { class: "config-wrapper" }, {
2063
2085
  default: u(() => [
2064
- (m(), k(G(c(a.value.type))))
2086
+ (c(), k(G(d(a.value.type))))
2065
2087
  ]),
2066
2088
  _: 1
2067
2089
  });
2068
2090
  };
2069
2091
  }
2070
- }), po = { class: "editor-wrapper flex items-center space-between start" }, co = { class: "flex items-center space-between" }, mo = { class: "btn-group" }, fo = /* @__PURE__ */ L({
2092
+ }), co = { class: "editor-wrapper flex items-center space-between start" }, mo = { class: "flex items-center space-between" }, fo = { class: "btn-group" }, vo = /* @__PURE__ */ L({
2071
2093
  __name: "index",
2072
- props: /* @__PURE__ */ de({
2094
+ props: /* @__PURE__ */ ce({
2073
2095
  reportId: {
2074
2096
  type: String,
2075
2097
  default: ""
@@ -2080,20 +2102,20 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
2080
2102
  }),
2081
2103
  emits: ["update:modelValue"],
2082
2104
  setup(o) {
2083
- const t = I(), e = o, a = ce(o, "modelValue"), r = (i) => {
2105
+ const t = I(), e = o, a = me(o, "modelValue"), r = (i) => {
2084
2106
  const g = J(i);
2085
2107
  g.id = H(), t.componentList.push(g);
2086
2108
  };
2087
2109
  function n() {
2088
2110
  a.value = "table";
2089
2111
  }
2090
- function s() {
2112
+ function A() {
2091
2113
  t.getReportDemo(e.reportId);
2092
2114
  }
2093
- le(() => {
2094
- s();
2115
+ ne(() => {
2116
+ A();
2095
2117
  });
2096
- async function c() {
2118
+ async function d() {
2097
2119
  if (!t.filterForm.filter_uuid) {
2098
2120
  qe.error("请选择筛选条件");
2099
2121
  return;
@@ -2122,23 +2144,23 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
2122
2144
  return Qe(() => {
2123
2145
  t.clearComponents();
2124
2146
  }), (i, g) => {
2125
- const f = A("el-button"), d = A("el-button-group"), _ = A("el-card");
2126
- return m(), C("div", po, [
2127
- l(_, { class: "view-wrapper" }, {
2147
+ const m = s("el-button"), b = s("el-button-group"), v = s("el-card");
2148
+ return c(), x("div", co, [
2149
+ l(v, { class: "view-wrapper" }, {
2128
2150
  default: u(() => [
2129
- T("div", co, [
2130
- T("div", mo, [
2131
- l(d, null, {
2151
+ T("div", mo, [
2152
+ T("div", fo, [
2153
+ l(b, null, {
2132
2154
  default: u(() => [
2133
- (m(!0), C(S, null, P(w(xt), (v) => (m(), C(S, {
2134
- key: v.type
2155
+ (c(!0), x(S, null, P(y(xt), (w) => (c(), x(S, {
2156
+ key: w.type
2135
2157
  }, [
2136
- v != null && v.hide ? R("", !0) : (m(), k(f, {
2158
+ w != null && w.hide ? R("", !0) : (c(), k(m, {
2137
2159
  key: 0,
2138
- onClick: (y) => r(v)
2160
+ onClick: (h) => r(w)
2139
2161
  }, {
2140
2162
  default: u(() => [
2141
- U(M(v.name), 1)
2163
+ E(M(w.name), 1)
2142
2164
  ]),
2143
2165
  _: 2
2144
2166
  }, 1032, ["onClick"]))
@@ -2147,20 +2169,20 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
2147
2169
  _: 1
2148
2170
  })
2149
2171
  ]),
2150
- l(d, null, {
2172
+ l(b, null, {
2151
2173
  default: u(() => [
2152
- l(f, {
2174
+ l(m, {
2153
2175
  type: "primary",
2154
- onClick: c
2176
+ onClick: d
2155
2177
  }, {
2156
2178
  default: u(() => g[0] || (g[0] = [
2157
- U("保存")
2179
+ E("保存")
2158
2180
  ])),
2159
2181
  _: 1
2160
2182
  }),
2161
- l(f, { onClick: n }, {
2183
+ l(m, { onClick: n }, {
2162
2184
  default: u(() => g[1] || (g[1] = [
2163
- U("退出")
2185
+ E("退出")
2164
2186
  ])),
2165
2187
  _: 1
2166
2188
  })
@@ -2168,17 +2190,17 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
2168
2190
  _: 1
2169
2191
  })
2170
2192
  ]),
2171
- l(Jt)
2193
+ l(Zt)
2172
2194
  ]),
2173
2195
  _: 1
2174
2196
  }),
2175
- l(uo)
2197
+ l(po)
2176
2198
  ]);
2177
2199
  };
2178
2200
  }
2179
- }), vo = {
2201
+ }), go = {
2180
2202
  class: "table-box"
2181
- }, go = /* @__PURE__ */ L({
2203
+ }, bo = /* @__PURE__ */ L({
2182
2204
  __name: "Report",
2183
2205
  emits: ["click"],
2184
2206
  setup(o, {
@@ -2186,21 +2208,21 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
2186
2208
  }) {
2187
2209
  const e = Q(() => ({
2188
2210
  prod_type: window.$prodType
2189
- })), a = V(), r = t, n = (d) => {
2190
- r("click", d.report_uuid, "review");
2191
- }, s = (d) => {
2192
- r("click", d.report_uuid, "editor");
2193
- }, c = () => {
2211
+ })), a = V(), r = t, n = (v) => {
2212
+ r("click", v.report_uuid, "review");
2213
+ }, A = (v) => {
2214
+ r("click", v.report_uuid, "editor");
2215
+ }, d = () => {
2194
2216
  r("click", "", "editor");
2195
- }, i = (d) => {
2196
- console.log(d);
2197
- }, g = (d) => {
2217
+ }, i = (v) => {
2218
+ console.log(v);
2219
+ }, g = (v) => {
2198
2220
  window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
2199
2221
  await ot({
2200
- report_uuids: d
2222
+ report_uuids: v
2201
2223
  }), a.value.getTableList();
2202
2224
  });
2203
- }, f = X([
2225
+ }, m = (v) => v.report_type === 1, b = X([
2204
2226
  // { type: 'selection', fixed: 'left', width: 70 },
2205
2227
  {
2206
2228
  type: "selection",
@@ -2227,58 +2249,61 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
2227
2249
  name: "操作",
2228
2250
  align: "center",
2229
2251
  fixed: "right",
2230
- render: (d) => l("div", null, [l(A("el-button"), {
2252
+ render: (v) => l("div", null, [l(s("el-button"), {
2231
2253
  link: !0,
2232
2254
  type: "primary",
2233
2255
  class: "custom-btn",
2234
2256
  icon: "View",
2235
2257
  title: "预览",
2236
- onClick: () => n(d.row)
2237
- }, null), l(A("el-button"), {
2258
+ onClick: () => n(v.row)
2259
+ }, null), l(s("el-button"), {
2238
2260
  link: !0,
2239
2261
  type: "primary",
2240
2262
  class: "custom-btn",
2241
2263
  icon: "Edit",
2242
2264
  title: "编辑",
2243
- onClick: () => s(d.row)
2244
- }, null), l(A("el-button"), {
2265
+ disabled: v.row.report_type === 0,
2266
+ onClick: () => A(v.row)
2267
+ }, null), l(s("el-button"), {
2245
2268
  link: !0,
2246
2269
  type: "danger",
2247
2270
  icon: "Delete",
2248
2271
  title: "删除",
2249
- onClick: () => g([d.row.report_uuid])
2272
+ disabled: v.row.report_type === 0,
2273
+ onClick: () => g([v.row.report_uuid])
2250
2274
  }, null)])
2251
2275
  }
2252
2276
  ]);
2253
- return (d, _) => {
2254
- const v = A("el-button"), y = A("TdsTable");
2255
- return m(), C("div", vo, [l(y, {
2277
+ return (v, w) => {
2278
+ const h = s("el-button"), _ = s("TdsTable");
2279
+ return c(), x("div", go, [l(_, {
2256
2280
  ref_key: "proTable",
2257
2281
  ref: a,
2258
- columns: f,
2259
- "request-api": w(tt),
2282
+ columns: b,
2283
+ "request-api": y(tt),
2260
2284
  "init-param": e.value,
2261
2285
  "row-key": "report_uuid",
2262
- options: d.$tableOptions(),
2286
+ options: v.$tableOptions(),
2263
2287
  "search-col": 6,
2288
+ selectable: m,
2264
2289
  onSelectionChange: i
2265
2290
  }, {
2266
- tableHeader: u((x) => [l(v, {
2291
+ tableHeader: u((C) => [l(h, {
2267
2292
  plain: "",
2268
2293
  type: "primary",
2269
2294
  class: "custom-btn",
2270
2295
  icon: "Plus",
2271
- onClick: c
2296
+ onClick: d
2272
2297
  }, {
2273
- default: u(() => _[0] || (_[0] = [U("添加")])),
2298
+ default: u(() => w[0] || (w[0] = [E("新建")])),
2274
2299
  _: 1
2275
- }), l(v, {
2300
+ }), l(h, {
2276
2301
  plain: "",
2277
2302
  type: "danger",
2278
2303
  icon: "Delete",
2279
- onClick: (h) => g(x.selectedListIds)
2304
+ onClick: (f) => g(C.selectedListIds)
2280
2305
  }, {
2281
- default: u(() => _[1] || (_[1] = [U("删除")])),
2306
+ default: u(() => w[1] || (w[1] = [E("删除")])),
2282
2307
  _: 2
2283
2308
  }, 1032, ["onClick"])]),
2284
2309
  _: 1
@@ -2286,31 +2311,31 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
2286
2311
  };
2287
2312
  }
2288
2313
  });
2289
- const bo = { style: { height: "100%" } }, _o = /* @__PURE__ */ L({
2314
+ const _o = { style: { height: "100%" } }, wo = /* @__PURE__ */ L({
2290
2315
  name: "TCReport",
2291
2316
  __name: "index",
2292
2317
  setup(o) {
2293
2318
  const t = V(), e = V("table"), a = (r, n) => {
2294
2319
  t.value = r, e.value = n;
2295
2320
  };
2296
- return (r, n) => (m(), C("div", bo, [
2321
+ return (r, n) => (c(), x("div", _o, [
2297
2322
  l(Ie, { name: "slide-fade" }, {
2298
2323
  default: u(() => [
2299
- e.value === "table" ? (m(), k(go, {
2324
+ e.value === "table" ? (c(), k(bo, {
2300
2325
  key: 0,
2301
2326
  onClick: a
2302
2327
  })) : R("", !0),
2303
- e.value === "review" ? (m(), k(Ve, {
2328
+ e.value === "review" ? (c(), k(Ve, {
2304
2329
  key: 1,
2305
2330
  "report-id": t.value,
2306
2331
  modelValue: e.value,
2307
- "onUpdate:modelValue": n[0] || (n[0] = (s) => e.value = s)
2332
+ "onUpdate:modelValue": n[0] || (n[0] = (A) => e.value = A)
2308
2333
  }, null, 8, ["report-id", "modelValue"])) : R("", !0),
2309
- e.value === "editor" ? (m(), k(fo, {
2334
+ e.value === "editor" ? (c(), k(vo, {
2310
2335
  key: 2,
2311
2336
  "report-id": t.value,
2312
2337
  modelValue: e.value,
2313
- "onUpdate:modelValue": n[1] || (n[1] = (s) => e.value = s)
2338
+ "onUpdate:modelValue": n[1] || (n[1] = (A) => e.value = A)
2314
2339
  }, null, 8, ["report-id", "modelValue"])) : R("", !0)
2315
2340
  ]),
2316
2341
  _: 1
@@ -2326,7 +2351,7 @@ const W = (o, t) => {
2326
2351
  for (const [e, a] of Object.entries(t))
2327
2352
  o[e] = a;
2328
2353
  return o;
2329
- }, wo = W(_o), yo = [
2354
+ }, yo = W(wo), ho = [
2330
2355
  {
2331
2356
  label: "正文",
2332
2357
  value: "p"
@@ -2351,7 +2376,7 @@ const W = (o, t) => {
2351
2376
  label: "描述列表",
2352
2377
  value: "report-describe"
2353
2378
  }
2354
- ], ho = [
2379
+ ], Co = [
2355
2380
  {
2356
2381
  value: "p",
2357
2382
  fields: ["table_key_relation"]
@@ -2376,49 +2401,53 @@ const W = (o, t) => {
2376
2401
  value: "report-describe",
2377
2402
  fields: ["p_text"]
2378
2403
  }
2379
- ], Co = {
2404
+ ], xo = {
2380
2405
  class: "table-box"
2381
- }, xo = /* @__PURE__ */ L({
2406
+ }, Bo = /* @__PURE__ */ L({
2382
2407
  name: "TCModule",
2383
2408
  __name: "index",
2384
2409
  setup(o) {
2385
2410
  const t = V(), e = V(), a = V({}), r = V(""), n = X({
2386
2411
  prod_type: window.$prodType
2387
2412
  });
2388
- function s(v) {
2413
+ function A(h) {
2389
2414
  window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
2390
2415
  await nt({
2391
- rp_item_uuids: v
2416
+ rp_item_uuids: h
2392
2417
  }), t.value.getTableList();
2393
2418
  });
2394
2419
  }
2395
- function c(v) {
2396
- a.value = v ? Object.assign({}, v) : {
2420
+ function d(h) {
2421
+ a.value = h ? Object.assign({}, h) : {
2397
2422
  table_key_relation: [{
2398
2423
  name: "",
2399
2424
  key: "",
2400
2425
  id: (/* @__PURE__ */ new Date()).getTime()
2401
2426
  }]
2402
- }, r.value = v ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2427
+ }, r.value = h ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2403
2428
  }
2404
- async function i(v) {
2405
- const y = Object.assign({}, v);
2406
- y.chart_type !== "report-table" && y.chart_type !== "report-describe" && delete y.table_key_relation, y.chart_type !== "p" && (y.p_text = ""), y.rp_item_uuid ? await rt({
2407
- rp_item_uuid: y.rp_item_uuid,
2408
- data: y
2409
- }) : (y.prod_type = window.$prodType, await at({
2410
- data: y
2429
+ async function i(h) {
2430
+ const _ = Object.assign({}, h);
2431
+ _.chart_type !== "report-table" && _.chart_type !== "report-describe" && delete _.table_key_relation, _.chart_type !== "p" && (_.p_text = ""), _.rp_item_uuid ? await rt({
2432
+ rp_item_uuid: _.rp_item_uuid,
2433
+ data: _
2434
+ }) : (_.prod_type = window.$prodType, await at({
2435
+ data: _
2411
2436
  })), t.value.getTableList(), e.value.close();
2412
2437
  }
2413
- const g = (v) => {
2414
- a.value.table_key_relation.splice(v, 1);
2415
- }, f = () => {
2438
+ const g = (h) => {
2439
+ a.value.table_key_relation.splice(h, 1);
2440
+ }, m = () => {
2416
2441
  a.value.table_key_relation.push({
2417
2442
  name: "",
2418
2443
  key: "",
2419
2444
  id: (/* @__PURE__ */ new Date()).getTime()
2420
2445
  });
2421
- }, _ = X([{
2446
+ }, b = (h, _, C) => {
2447
+ delete h.message, _.forEach((f) => {
2448
+ f.name ? f.key || C(new Error("请填写表头名称和KEY")) : C(new Error("请填写表头名称和KEY"));
2449
+ }), C();
2450
+ }, v = (h) => h.item_type === 1, w = X([{
2422
2451
  type: "selection",
2423
2452
  width: 60,
2424
2453
  field: "rp_item_uuid",
@@ -2451,10 +2480,10 @@ const W = (o, t) => {
2451
2480
  }, {
2452
2481
  field: "chart_type",
2453
2482
  name: "组件类型",
2454
- enum: yo,
2483
+ enum: ho,
2455
2484
  show: {
2456
2485
  type: "select",
2457
- display: ho
2486
+ display: Co
2458
2487
  },
2459
2488
  rules: [{
2460
2489
  required: !0
@@ -2474,7 +2503,7 @@ const W = (o, t) => {
2474
2503
  hide: !0,
2475
2504
  show: {
2476
2505
  render: () => {
2477
- var v;
2506
+ var h;
2478
2507
  return l("div", {
2479
2508
  style: "width:80%"
2480
2509
  }, [l("div", {
@@ -2482,42 +2511,42 @@ const W = (o, t) => {
2482
2511
  style: "gap:15px;"
2483
2512
  }, [l("span", {
2484
2513
  style: "width:50%"
2485
- }, [U("表头名称")]), l("span", {
2514
+ }, [E("表头名称")]), l("span", {
2486
2515
  style: "width:50%"
2487
- }, [U("KEY")])]), (v = a.value.table_key_relation) == null ? void 0 : v.map((y, x) => l("div", {
2516
+ }, [E("KEY")])]), (h = a.value.table_key_relation) == null ? void 0 : h.map((_, C) => l("div", {
2488
2517
  class: "flex items-center space-between form-m0 w-100%",
2489
2518
  style: "gap:15px;margin-bottom:10px;",
2490
- key: x
2491
- }, [l(A("el-form-item"), {
2519
+ key: C
2520
+ }, [l(s("el-form-item"), {
2492
2521
  style: "width:50%"
2493
2522
  }, {
2494
- default: () => [l(A("el-input"), {
2495
- modelValue: y.name,
2496
- "onUpdate:modelValue": (h) => y.name = h,
2523
+ default: () => [l(s("el-input"), {
2524
+ modelValue: _.name,
2525
+ "onUpdate:modelValue": (f) => _.name = f,
2497
2526
  class: "",
2498
2527
  placeholder: "表头"
2499
2528
  }, null)]
2500
- }), l(A("el-form-item"), {
2529
+ }), l(s("el-form-item"), {
2501
2530
  style: "width:50%"
2502
2531
  }, {
2503
- default: () => [l(A("el-input"), {
2504
- modelValue: y.key,
2505
- "onUpdate:modelValue": (h) => y.key = h,
2532
+ default: () => [l(s("el-input"), {
2533
+ modelValue: _.key,
2534
+ "onUpdate:modelValue": (f) => _.key = f,
2506
2535
  class: "",
2507
2536
  placeholder: "KEY"
2508
2537
  }, null)]
2509
2538
  }), a.value.table_key_relation.length > 1 && l("div", {
2510
2539
  class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
2511
- }, [l(A("el-icon"), {
2512
- onClick: () => g(x)
2540
+ }, [l(s("el-icon"), {
2541
+ onClick: () => g(C)
2513
2542
  }, {
2514
2543
  default: () => [l(Ye, null, null)]
2515
- })])])), l(A("el-button"), {
2544
+ })])])), l(s("el-button"), {
2516
2545
  class: "report-btn ",
2517
2546
  icon: "Plus",
2518
- onClick: () => f()
2547
+ onClick: () => m()
2519
2548
  }, {
2520
- default: () => [U("新增表头与KEY")]
2549
+ default: () => [E("新增表头与KEY")]
2521
2550
  })]);
2522
2551
  }
2523
2552
  },
@@ -2526,11 +2555,7 @@ const W = (o, t) => {
2526
2555
  },
2527
2556
  rules: [{
2528
2557
  required: !0,
2529
- validator: (v, y, x) => {
2530
- delete v.message, y.forEach((h) => {
2531
- h.name ? h.key || x(new Error("请填写表头名称和KEY")) : x(new Error("请填写表头名称和KEY"));
2532
- }), x();
2533
- },
2558
+ validator: b,
2534
2559
  trigger: "blur"
2535
2560
  }]
2536
2561
  }, {
@@ -2556,98 +2581,101 @@ const W = (o, t) => {
2556
2581
  name: "操作",
2557
2582
  align: "center",
2558
2583
  fixed: "right",
2559
- render: (v) => l("div", null, [l(A("el-button"), {
2584
+ render: (h) => l("div", null, [l(s("el-button"), {
2560
2585
  link: !0,
2561
2586
  type: "primary",
2562
2587
  class: "custom-btn",
2563
2588
  icon: "Edit",
2564
2589
  title: "编辑",
2565
- onClick: () => c(v.row)
2566
- }, null), l(A("el-button"), {
2590
+ disabled: h.row.item_type === 0,
2591
+ onClick: () => d(h.row)
2592
+ }, null), l(s("el-button"), {
2567
2593
  link: !0,
2568
2594
  type: "danger",
2569
2595
  icon: "Delete",
2570
2596
  title: "删除",
2571
- onClick: () => s([v.row.rp_item_uuid])
2597
+ disabled: h.row.item_type === 0,
2598
+ onClick: () => A([h.row.rp_item_uuid])
2572
2599
  }, null)])
2573
2600
  }]);
2574
- return (v, y) => {
2575
- const x = A("el-button"), h = A("TdsTable"), b = A("TdsForm");
2576
- return m(), C("div", Co, [l(h, {
2601
+ return (h, _) => {
2602
+ const C = s("el-button"), f = s("TdsTable"), p = s("TdsForm");
2603
+ return c(), x("div", xo, [l(f, {
2577
2604
  ref_key: "refTdsTable",
2578
2605
  ref: t,
2579
- columns: _,
2580
- "request-api": w(lt),
2606
+ columns: w,
2607
+ "request-api": y(lt),
2581
2608
  "init-param": n,
2582
2609
  "row-key": "rp_item_uuid",
2583
- options: v.$tableOptions(),
2610
+ options: h.$tableOptions(),
2611
+ selectable: v,
2584
2612
  "search-col": 6
2585
2613
  }, {
2586
- tableHeader: u((p) => [l(x, {
2614
+ tableHeader: u((D) => [l(C, {
2587
2615
  plain: "",
2588
2616
  type: "primary",
2589
2617
  class: "custom-btn",
2590
2618
  icon: "Plus",
2591
- onClick: y[0] || (y[0] = (D) => c())
2619
+ onClick: _[0] || (_[0] = (B) => d())
2592
2620
  }, {
2593
- default: u(() => y[1] || (y[1] = [U("添加")])),
2621
+ default: u(() => _[1] || (_[1] = [E("新建")])),
2594
2622
  _: 1
2595
- }), l(x, {
2623
+ }), l(C, {
2596
2624
  plain: "",
2597
2625
  type: "danger",
2598
2626
  icon: "Delete",
2599
- onClick: (D) => s(p.selectedListIds)
2627
+ onClick: (B) => A(D.selectedListIds)
2600
2628
  }, {
2601
- default: u(() => y[2] || (y[2] = [U("删除")])),
2629
+ default: u(() => _[2] || (_[2] = [E("删除")])),
2602
2630
  _: 2
2603
2631
  }, 1032, ["onClick"])]),
2604
2632
  _: 1
2605
- }, 8, ["columns", "request-api", "init-param", "options"]), l(b, ve({
2633
+ }, 8, ["columns", "request-api", "init-param", "options"]), l(p, ve({
2606
2634
  ref_key: "refTdsForm",
2607
2635
  ref: e
2608
- }, v.$formBindProps({
2636
+ }, h.$formBindProps({
2609
2637
  title: r.value,
2610
2638
  form: a.value,
2611
- columns: _
2639
+ columns: w
2612
2640
  }), {
2613
2641
  onSubmit: i
2614
2642
  }), null, 16)]);
2615
2643
  };
2616
2644
  }
2617
2645
  });
2618
- const Bo = W(xo), To = {
2646
+ const To = W(Bo), Vo = {
2619
2647
  class: "table-box"
2620
2648
  };
2621
- function ie(o) {
2622
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
2649
+ function ue(o) {
2650
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ae(o);
2623
2651
  }
2624
- const Vo = /* @__PURE__ */ L({
2652
+ const Do = /* @__PURE__ */ L({
2625
2653
  name: "TCSubscribe",
2626
2654
  __name: "index",
2627
2655
  setup(o) {
2628
2656
  const t = V(), e = V(), {
2629
2657
  $t: a,
2630
2658
  $messageBox: r
2631
- } = window, n = V(""), s = V({
2659
+ } = window, n = V(""), A = V({
2632
2660
  receiver: []
2633
2661
  });
2634
- function c(b) {
2635
- r(b, "subscript_name", a("button.delete"), "error").then(async () => {
2662
+ function d(f) {
2663
+ r(f, "subscript_name", a("button.delete"), "error").then(async () => {
2636
2664
  await ut({
2637
- subscript_uuids: b.map((p) => p.subscript_uuid)
2665
+ subscript_uuids: f.map((p) => p.subscript_uuid)
2638
2666
  }), t.value.getTableList();
2639
2667
  });
2640
2668
  }
2641
2669
  function i() {
2642
- c(t.value.selectedList);
2670
+ d(t.value.selectedList);
2643
2671
  }
2644
- const g = (b) => {
2645
- s.value = b ? Object.assign({}, b) : {
2672
+ const g = (f) => {
2673
+ A.value = f ? Object.assign({}, f) : {
2646
2674
  receiver: []
2647
- }, n.value = b ? "编辑报表订阅" : "新增报表订阅", e.value.open();
2675
+ }, n.value = f ? "编辑报表订阅" : "新增报表订阅", e.value.open();
2648
2676
  };
2649
- async function f(b) {
2650
- const p = Object.assign({}, b);
2677
+ async function m(f) {
2678
+ const p = Object.assign({}, f);
2651
2679
  p.subscript_uuid ? await it({
2652
2680
  subscript_uuid: p.subscript_uuid,
2653
2681
  data: p
@@ -2655,14 +2683,14 @@ const Vo = /* @__PURE__ */ L({
2655
2683
  data: p
2656
2684
  }), t.value.getTableList(), e.value.close();
2657
2685
  }
2658
- function d(b, p, D) {
2686
+ function b(f, p, D) {
2659
2687
  if (!p || p.length === 0)
2660
2688
  return D(new Error("请输入收件人"));
2661
2689
  D();
2662
2690
  }
2663
- const _ = (b, p) => {
2664
- b.target.value && s.value[p].push(b.target.value);
2665
- }, v = [{
2691
+ const v = (f, p) => {
2692
+ f.target.value && A.value[p].push(f.target.value);
2693
+ }, w = [{
2666
2694
  label: "周一",
2667
2695
  value: 1
2668
2696
  }, {
@@ -2683,7 +2711,7 @@ const Vo = /* @__PURE__ */ L({
2683
2711
  }, {
2684
2712
  label: "周日",
2685
2713
  value: 0
2686
- }], y = [{
2714
+ }], h = [{
2687
2715
  label: "每天",
2688
2716
  value: 0
2689
2717
  }, {
@@ -2692,7 +2720,7 @@ const Vo = /* @__PURE__ */ L({
2692
2720
  }, {
2693
2721
  label: "每月",
2694
2722
  value: 2
2695
- }], x = [], h = X([{
2723
+ }], _ = [], C = X([{
2696
2724
  type: "selection",
2697
2725
  align: "center",
2698
2726
  field: "subscript_uuid",
@@ -2770,7 +2798,7 @@ const Vo = /* @__PURE__ */ L({
2770
2798
  key: window.$prodType
2771
2799
  }
2772
2800
  },
2773
- render: (b) => t.value.enumMap.get("dbsId").filter((B) => b.row.dbsId.indexOf(B.id) > -1).map((B) => l(A("el-tag"), {
2801
+ render: (f) => t.value.enumMap.get("dbsId").filter((B) => f.row.dbsId.indexOf(B.id) > -1).map((B) => l(s("el-tag"), {
2774
2802
  class: "mr-10px",
2775
2803
  type: "info"
2776
2804
  }, {
@@ -2780,40 +2808,40 @@ const Vo = /* @__PURE__ */ L({
2780
2808
  field: "receiver_email",
2781
2809
  name: "收件人",
2782
2810
  width: 300,
2783
- render: (b) => l(S, null, [b.row.receiver_email.map((p) => l(A("el-tag"), {
2811
+ render: (f) => l(S, null, [f.row.receiver_email.map((p) => l(s("el-tag"), {
2784
2812
  class: "mr-10px",
2785
2813
  type: "info"
2786
- }, ie(p) ? p : {
2814
+ }, ue(p) ? p : {
2787
2815
  default: () => [p]
2788
2816
  }))]),
2789
2817
  show: {
2790
2818
  type: "input",
2791
2819
  render: () => {
2792
- let b;
2793
- return l(S, null, [l(A("el-select"), {
2820
+ let f;
2821
+ return l(S, null, [l(s("el-select"), {
2794
2822
  class: "right-select",
2795
- modelValue: s.value.receiver_email,
2796
- "onUpdate:modelValue": (p) => s.value.receiver_email = p,
2823
+ modelValue: A.value.receiver_email,
2824
+ "onUpdate:modelValue": (p) => A.value.receiver_email = p,
2797
2825
  placeholder: "请输入",
2798
2826
  multiple: !0,
2799
2827
  filterable: !0,
2800
2828
  "allow-create": !0,
2801
2829
  "default-first-option": !0,
2802
2830
  "reserve-keyword": !1,
2803
- onBlur: (p) => _(p, "receiver_email")
2804
- }, ie(b = x.map((p) => l(A("el-option"), {
2831
+ onBlur: (p) => v(p, "receiver_email")
2832
+ }, ue(f = _.map((p) => l(s("el-option"), {
2805
2833
  label: p.label,
2806
2834
  value: p.value
2807
- }, null))) ? b : {
2808
- default: () => [b]
2835
+ }, null))) ? f : {
2836
+ default: () => [f]
2809
2837
  }), l("p", {
2810
2838
  style: "font-size:12px;color:#909399;line-height:20px"
2811
- }, [U("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
2839
+ }, [E("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
2812
2840
  }
2813
2841
  },
2814
2842
  rules: [{
2815
2843
  required: !0,
2816
- validator: d,
2844
+ validator: b,
2817
2845
  type: "any",
2818
2846
  trigger: "change"
2819
2847
  }]
@@ -2824,7 +2852,7 @@ const Vo = /* @__PURE__ */ L({
2824
2852
  field: "loop_type",
2825
2853
  name: "发送周期",
2826
2854
  hide: !0,
2827
- enum: y,
2855
+ enum: h,
2828
2856
  show: {
2829
2857
  dataType: "number",
2830
2858
  type: "select",
@@ -2847,7 +2875,7 @@ const Vo = /* @__PURE__ */ L({
2847
2875
  field: "day",
2848
2876
  name: "日",
2849
2877
  hide: !0,
2850
- enum: [...Array(28)].map((b, p) => ({
2878
+ enum: [...Array(28)].map((f, p) => ({
2851
2879
  label: p + 1 + "",
2852
2880
  value: p + 1
2853
2881
  })),
@@ -2862,7 +2890,7 @@ const Vo = /* @__PURE__ */ L({
2862
2890
  field: "weekday",
2863
2891
  name: "星期",
2864
2892
  hide: !0,
2865
- enum: v,
2893
+ enum: w,
2866
2894
  show: {
2867
2895
  type: "select"
2868
2896
  },
@@ -2874,7 +2902,7 @@ const Vo = /* @__PURE__ */ L({
2874
2902
  field: "hour",
2875
2903
  name: "小时",
2876
2904
  hide: !0,
2877
- enum: [...Array(24)].map((b, p) => ({
2905
+ enum: [...Array(24)].map((f, p) => ({
2878
2906
  label: p + "时",
2879
2907
  value: p
2880
2908
  })),
@@ -2889,7 +2917,7 @@ const Vo = /* @__PURE__ */ L({
2889
2917
  field: "minute",
2890
2918
  name: "分钟",
2891
2919
  hide: !0,
2892
- enum: [...Array(60)].map((b, p) => ({
2920
+ enum: [...Array(60)].map((f, p) => ({
2893
2921
  label: p + "分",
2894
2922
  value: p
2895
2923
  })),
@@ -2903,14 +2931,14 @@ const Vo = /* @__PURE__ */ L({
2903
2931
  }, {
2904
2932
  field: "enable_status",
2905
2933
  name: "启用状态",
2906
- render: (b) => l(A("el-switch"), {
2907
- modelValue: b.row.enable_status,
2908
- "onUpdate:modelValue": (p) => b.row.enable_status = p,
2934
+ render: (f) => l(s("el-switch"), {
2935
+ modelValue: f.row.enable_status,
2936
+ "onUpdate:modelValue": (p) => f.row.enable_status = p,
2909
2937
  "active-value": 1,
2910
2938
  "inactive-value": 0,
2911
2939
  onChange: (p) => {
2912
2940
  pt({
2913
- subscript_uuid: b.row.subscript_uuid,
2941
+ subscript_uuid: f.row.subscript_uuid,
2914
2942
  enable_status: p
2915
2943
  }), t.value.getTableList();
2916
2944
  }
@@ -2921,30 +2949,30 @@ const Vo = /* @__PURE__ */ L({
2921
2949
  fixed: "right",
2922
2950
  cardHide: !0,
2923
2951
  width: 120,
2924
- render: (b) => l("div", null, [l(A("el-button"), {
2952
+ render: (f) => l("div", null, [l(s("el-button"), {
2925
2953
  link: !0,
2926
2954
  type: "primary",
2927
2955
  icon: "Edit",
2928
2956
  title: a("button.edit"),
2929
2957
  class: "custom-btn",
2930
- onClick: () => g(b.row)
2931
- }, null), l(A("el-button"), {
2958
+ onClick: () => g(f.row)
2959
+ }, null), l(s("el-button"), {
2932
2960
  link: !0,
2933
2961
  type: "danger",
2934
2962
  icon: "Delete",
2935
2963
  title: a("button.delete"),
2936
- onClick: () => c([b.row])
2964
+ onClick: () => d([f.row])
2937
2965
  }, null)])
2938
2966
  }]);
2939
- return (b, p) => {
2940
- const D = A("el-button");
2941
- return m(), C("div", To, [l(w(Ge), {
2967
+ return (f, p) => {
2968
+ const D = s("el-button");
2969
+ return c(), x("div", Vo, [l(y(Ge), {
2942
2970
  ref_key: "refTdsTable",
2943
2971
  ref: t,
2944
2972
  "row-key": "subscript_uuid",
2945
- "request-api": w(At),
2946
- columns: h,
2947
- options: b.$tableOptions()
2973
+ "request-api": y(At),
2974
+ columns: C,
2975
+ options: f.$tableOptions()
2948
2976
  }, {
2949
2977
  tableHeader: u((B) => [l(D, {
2950
2978
  type: "primary",
@@ -2953,7 +2981,7 @@ const Vo = /* @__PURE__ */ L({
2953
2981
  plain: "",
2954
2982
  onClick: p[0] || (p[0] = (K) => g())
2955
2983
  }, {
2956
- default: u(() => [U(M(w(a)("button.add")), 1)]),
2984
+ default: u(() => [E(M(y(a)("button.add")), 1)]),
2957
2985
  _: 1
2958
2986
  }), l(D, {
2959
2987
  type: "danger",
@@ -2962,25 +2990,25 @@ const Vo = /* @__PURE__ */ L({
2962
2990
  onClick: i,
2963
2991
  disabled: !B.selectedListIds.length
2964
2992
  }, {
2965
- default: u(() => [U(M(w(a)("button.delete")), 1)]),
2993
+ default: u(() => [E(M(y(a)("button.delete")), 1)]),
2966
2994
  _: 2
2967
2995
  }, 1032, ["disabled"])]),
2968
2996
  _: 1
2969
- }, 8, ["request-api", "columns", "options"]), l(w(Xe), ve({
2997
+ }, 8, ["request-api", "columns", "options"]), l(y(Xe), ve({
2970
2998
  ref_key: "refTdsForm",
2971
2999
  ref: e
2972
- }, b.$formBindProps({
3000
+ }, f.$formBindProps({
2973
3001
  title: n.value,
2974
- form: s.value,
2975
- columns: h
3002
+ form: A.value,
3003
+ columns: C
2976
3004
  }), {
2977
- onSubmit: f
3005
+ onSubmit: m
2978
3006
  }), null, 16)]);
2979
3007
  };
2980
3008
  }
2981
- }), Do = W(Vo), ko = {
3009
+ }), ko = W(Do), Lo = {
2982
3010
  class: "main-wrapper"
2983
- }, Lo = /* @__PURE__ */ L({
3011
+ }, Eo = /* @__PURE__ */ L({
2984
3012
  name: "TCBuildin",
2985
3013
  __name: "index",
2986
3014
  setup(o) {
@@ -2992,8 +3020,8 @@ const Vo = /* @__PURE__ */ L({
2992
3020
  t.value = r.data, e.value = r.data[0].report_uuid;
2993
3021
  }
2994
3022
  return a(), (r, n) => {
2995
- const s = A("el-tab-pane"), c = A("el-tabs");
2996
- return m(), C("div", ko, [l(c, {
3023
+ const A = s("el-tab-pane"), d = s("el-tabs");
3024
+ return c(), x("div", Lo, [l(d, {
2997
3025
  modelValue: e.value,
2998
3026
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.value = i),
2999
3027
  class: "report-tabs",
@@ -3001,7 +3029,7 @@ const Vo = /* @__PURE__ */ L({
3001
3029
  height: "100%"
3002
3030
  }
3003
3031
  }, {
3004
- default: u(() => [(m(!0), C(S, null, P(t.value, (i) => (m(), k(s, {
3032
+ default: u(() => [(c(!0), x(S, null, P(t.value, (i) => (c(), k(A, {
3005
3033
  style: {
3006
3034
  height: "100%"
3007
3035
  },
@@ -3009,7 +3037,7 @@ const Vo = /* @__PURE__ */ L({
3009
3037
  label: i.report_name,
3010
3038
  name: i.report_uuid
3011
3039
  }, {
3012
- default: u(() => [e.value === i.report_uuid ? (m(), k(Ve, {
3040
+ default: u(() => [e.value === i.report_uuid ? (c(), k(Ve, {
3013
3041
  key: 0,
3014
3042
  "report-id": e.value
3015
3043
  }, null, 8, ["report-id"])) : R("", !0)]),
@@ -3020,22 +3048,22 @@ const Vo = /* @__PURE__ */ L({
3020
3048
  };
3021
3049
  }
3022
3050
  });
3023
- const Uo = /* @__PURE__ */ Y(Lo, [["__scopeId", "data-v-30fa84c8"]]), Eo = W(Uo), Ro = {
3024
- TCReport: wo,
3025
- TCModule: Bo,
3026
- TCSubscribe: Do,
3027
- TCBuildin: Eo
3028
- }, Mo = {
3051
+ const Uo = /* @__PURE__ */ Y(Eo, [["__scopeId", "data-v-30fa84c8"]]), Ro = W(Uo), So = {
3052
+ TCReport: yo,
3053
+ TCModule: To,
3054
+ TCSubscribe: ko,
3055
+ TCBuildin: Ro
3056
+ }, qo = {
3029
3057
  install(o, t) {
3030
- Object.entries(Ro).forEach(([e, a]) => {
3058
+ Object.entries(So).forEach(([e, a]) => {
3031
3059
  o.component(e, a);
3032
3060
  }), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
3033
3061
  }
3034
3062
  };
3035
3063
  export {
3036
- Eo as TCBuildin,
3037
- Bo as TCModule,
3038
- wo as TCReport,
3039
- Do as TCSubscribe,
3040
- Mo as default
3064
+ Ro as TCBuildin,
3065
+ To as TCModule,
3066
+ yo as TCReport,
3067
+ ko as TCSubscribe,
3068
+ qo as default
3041
3069
  };