@topdatasec/report 1.1.27 → 1.1.29

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,5 +1,5 @@
1
- import { defineComponent as L, computed as M, resolveComponent as s, openBlock as c, createElementBlock as x, createElementVNode as T, Fragment as O, renderList as I, normalizeClass as G, createBlock as V, createCommentVNode as S, withDirectives as Ae, createTextVNode as E, toDisplayString as K, unref as C, ref as k, createVNode as l, withCtx as u, onMounted as se, normalizeProps as fe, guardReactiveProps as ge, isVNode as ie, normalizeStyle as Pe, mergeModels as ve, useModel as _e, resolveDirective as be, resolveDynamicComponent as $, isRef as Qe, withModifiers as Ie, watch as Fe, shallowRef as Ke, onBeforeUnmount as Me, onUnmounted as qe, reactive as X, TransitionGroup as He, mergeProps as we, createSlots as ze } from "vue";
2
- import { defineStore as Ne, storeToRefs as Ye } from "pinia";
1
+ import { defineComponent as L, computed as K, resolveComponent as s, openBlock as m, createElementBlock as C, createElementVNode as x, Fragment as O, renderList as I, normalizeClass as X, createBlock as V, createCommentVNode as S, withDirectives as Ae, createTextVNode as E, toDisplayString as M, unref as h, ref as B, createVNode as l, withCtx as u, onMounted as se, normalizeProps as fe, guardReactiveProps as ge, isVNode as ie, normalizeStyle as Pe, mergeModels as ve, useModel as _e, resolveDirective as be, resolveDynamicComponent as $, isRef as Qe, withModifiers as Ie, watch as Fe, shallowRef as Me, onBeforeUnmount as Ke, onUnmounted as qe, reactive as J, TransitionGroup as He, mergeProps as we, createSlots as Ne } from "vue";
2
+ import { defineStore as ze, storeToRefs as Ye } from "pinia";
3
3
  import { ElNotification as Ge, ElMessage as Xe } from "element-plus";
4
4
  import { VueDraggable as Je } from "vue-draggable-plus";
5
5
  import { Toolbar as je, Editor as Ze } from "@wangeditor/editor-for-vue";
@@ -59,12 +59,12 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
59
59
  url: `${window.$reportURL}/tds/report/item/put`,
60
60
  method: "put",
61
61
  data: o
62
- }), pt = (o) => window.$http.request({
62
+ }), dt = (o) => window.$http.request({
63
63
  url: `${window.$reportURL}/tds/report/sub/get`,
64
64
  method: "get",
65
65
  params: o,
66
66
  isError: !1
67
- }), dt = (o) => window.$http.request({
67
+ }), pt = (o) => window.$http.request({
68
68
  url: `${window.$reportURL}/tds/report/sub/add`,
69
69
  method: "post",
70
70
  data: o
@@ -123,7 +123,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
123
123
  url: `${window.$reportURL}/tds/report/export/delete`,
124
124
  method: "delete",
125
125
  data: o
126
- }), xe = "rgba(51, 51, 51, 0.15)", z = "rgba(51, 51, 51, 1)", Y = 12, Te = (o = !1) => {
126
+ }), xe = "rgba(51, 51, 51, 0.15)", N = "rgba(51, 51, 51, 1)", G = 12, Te = (o = !1) => {
127
127
  const t = {
128
128
  // top: '2%',
129
129
  left: "3%",
@@ -222,7 +222,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
222
222
  nameRotate: 0,
223
223
  // 坐标轴名称旋转
224
224
  axisLabel: {
225
- color: z,
225
+ color: N,
226
226
  // X轴类目名称样式
227
227
  rotate: 0
228
228
  // X轴类目名称旋转角度
@@ -250,8 +250,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
250
250
  // 坐标轴刻度最小值
251
251
  position: "left",
252
252
  nameTextStyle: {
253
- fontSize: Y,
254
- color: z,
253
+ fontSize: G,
254
+ color: N,
255
255
  fontWeight: "bold"
256
256
  },
257
257
  axisLine: { show: !1 },
@@ -261,7 +261,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
261
261
  splitLine: { show: !1 },
262
262
  // 纵向分隔线
263
263
  axisLabel: {
264
- color: z,
264
+ color: N,
265
265
  // y轴刻度标签
266
266
  formatter: "{value}",
267
267
  inside: !1
@@ -339,16 +339,16 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
339
339
  center: n = ["50%", "50%"],
340
340
  isTitle: A = !0
341
341
  }) => {
342
- const p = {
342
+ const d = {
343
343
  color: Bt(),
344
344
  toolbox: { show: !1 },
345
345
  tooltip: {
346
346
  trigger: "item",
347
347
  show: !0,
348
348
  formatter: (i) => {
349
- const { name: m, value: d } = i;
350
- return `<div style="color: ${i.color}; font-size: 14px;">${m}&nbsp;&nbsp;&nbsp;</div>
351
- <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${d}</span></div>`;
349
+ const { name: g, value: p } = i;
350
+ return `<div style="color: ${i.color}; font-size: 14px;">${g}&nbsp;&nbsp;&nbsp;</div>
351
+ <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${p}</span></div>`;
352
352
  }
353
353
  },
354
354
  title: {
@@ -365,13 +365,13 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
365
365
  show: a,
366
366
  left: "70%",
367
367
  formatter: (i) => {
368
- var d;
369
- const m = (d = p.series[0]) == null ? void 0 : d.data.find((g) => g.name === i).value;
370
- return ` ${i} | ${m}`;
368
+ var p;
369
+ const g = (p = d.series[0]) == null ? void 0 : p.data.find((c) => c.name === i).value;
370
+ return ` ${i} | ${g}`;
371
371
  },
372
372
  textStyle: {
373
- fontSize: Y,
374
- color: z
373
+ fontSize: G,
374
+ color: N
375
375
  },
376
376
  data: o,
377
377
  orient: "vertical",
@@ -478,7 +478,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
478
478
  }
479
479
  ]
480
480
  };
481
- return p;
481
+ return d;
482
482
  }, kt = (o, t, e = { name: "name", value: "value" }) => {
483
483
  o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
484
484
  o.series[r].data = t.map((n) => n[a.value]);
@@ -561,8 +561,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
561
561
  show: !0,
562
562
  itemWidth: 30,
563
563
  textStyle: {
564
- color: z,
565
- fontSize: Y,
564
+ color: N,
565
+ fontSize: G,
566
566
  padding: [0, 8, 0, 8]
567
567
  }
568
568
  },
@@ -577,8 +577,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
577
577
  },
578
578
  axisLabel: {
579
579
  show: !0,
580
- fontSize: Y,
581
- color: z
580
+ fontSize: G,
581
+ color: N
582
582
  },
583
583
  boundaryGap: !1,
584
584
  data: o.map((n) => n[t.name])
@@ -590,33 +590,33 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
590
590
  axisLine: { show: !1 },
591
591
  axisTick: { show: !1 },
592
592
  nameTextStyle: {
593
- fontSize: Y,
594
- color: z,
593
+ fontSize: G,
594
+ color: N,
595
595
  padding: [0, 60, 0, 0]
596
596
  },
597
597
  axisLabel: {
598
598
  show: !0,
599
- fontSize: Y,
600
- color: z
599
+ fontSize: G,
600
+ color: N
601
601
  }
602
602
  },
603
603
  series: []
604
604
  }, a = Dt(), r = [];
605
605
  if (Array.isArray(t.value))
606
606
  t.value.forEach((n, A) => {
607
- const p = ee(a);
608
- p.name = n.name, p.lineStyle.color = `rgba(${P[A]}, 1)`, p.itemStyle.color = `rgba(${P[A]}, 1)`, p.areaStyle.color.colorStops[0].color = `rgba(${P[A]}, 0.7)`, p.areaStyle.color.colorStops[1].color = `rgba(${P[A]}, 0.1)`, p.data = o.map((i) => i[n.value]), r.push(p);
607
+ const d = ee(a);
608
+ d.name = n.name, d.lineStyle.color = `rgba(${P[A]}, 1)`, d.itemStyle.color = `rgba(${P[A]}, 1)`, d.areaStyle.color.colorStops[0].color = `rgba(${P[A]}, 0.7)`, d.areaStyle.color.colorStops[1].color = `rgba(${P[A]}, 0.1)`, d.data = o.map((i) => i[n.value]), r.push(d);
609
609
  });
610
610
  else if (typeof t.value == "string") {
611
611
  const n = ee(a);
612
612
  n.data = o.map((A) => A[t.value]), r.push(n);
613
613
  }
614
614
  return e.series = r, e;
615
- }, pe = [
615
+ }, de = [
616
616
  { key: "assets", name: "资产名称" },
617
617
  { key: "type", name: "资产类型" },
618
618
  { key: "data", name: "资产数据" }
619
- ], de = [
619
+ ], pe = [
620
620
  { assets: "name1", type: "type1", data: "data1" },
621
621
  { assets: "name2", type: "type2", data: "data2" },
622
622
  { assets: "name3", type: "type3", data: "data3" }
@@ -691,8 +691,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
691
691
  },
692
692
  {
693
693
  type: "report-table",
694
- data: de,
695
- showColumn: pe,
694
+ data: pe,
695
+ showColumn: de,
696
696
  name: "表格",
697
697
  options: {
698
698
  showColumn: {
@@ -754,8 +754,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
754
754
  { type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
755
755
  {
756
756
  type: "report-table",
757
- data: de,
758
- showColumn: pe,
757
+ data: pe,
758
+ showColumn: de,
759
759
  name: "表格",
760
760
  options: {
761
761
  border: !0,
@@ -809,8 +809,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
809
809
  }),
810
810
  "report-table": () => ({
811
811
  type: "report-table",
812
- data: de,
813
- showColumn: pe,
812
+ data: pe,
813
+ showColumn: de,
814
814
  name: "表格",
815
815
  options: {
816
816
  showColumn: {
@@ -865,7 +865,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
865
865
  ],
866
866
  id: F()
867
867
  })
868
- })[o](), q = Ne("tds-report", {
868
+ })[o](), q = ze("tds-report", {
869
869
  state: () => ({
870
870
  componentList: [],
871
871
  activeComponents: {},
@@ -911,9 +911,9 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
911
911
  if (e) {
912
912
  const r = document.getElementById(e), n = document.getElementById("editor");
913
913
  if (r && n) {
914
- const p = r.offsetTop - n.offsetTop - 0;
914
+ const d = r.offsetTop - n.offsetTop - 0;
915
915
  n.scrollTo({
916
- top: p,
916
+ top: d,
917
917
  behavior: "smooth"
918
918
  });
919
919
  }
@@ -926,39 +926,39 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
926
926
  data: { default: () => [] }
927
927
  },
928
928
  setup(o) {
929
- const t = o, e = M(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
929
+ const t = o, e = K(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
930
930
  return (a, r) => {
931
931
  const n = s("el-divider");
932
- return c(), x("div", St, [
933
- r[0] || (r[0] = T("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
934
- (c(!0), x(O, null, I(e.value, (A) => (c(), x("div", {
935
- class: G("level" + A.type),
932
+ return m(), C("div", St, [
933
+ r[0] || (r[0] = x("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
934
+ (m(!0), C(O, null, I(e.value, (A) => (m(), C("div", {
935
+ class: X("level" + A.type),
936
936
  key: A.value
937
937
  }, [
938
- A.type === "h2" ? (c(), V(n, {
938
+ A.type === "h2" ? (m(), V(n, {
939
939
  key: 0,
940
940
  style: { "margin-top": "10px", "margin-bottom": "10px" }
941
941
  })) : S("", !0),
942
- Ae((c(), x("a", {
942
+ Ae((m(), C("a", {
943
943
  class: "el-anchor__link",
944
944
  href: "#" + A.id,
945
945
  title: A.data
946
946
  }, [
947
- E(K(A.data), 1)
947
+ E(M(A.data), 1)
948
948
  ], 8, Ot)), [
949
- [C(Rt)]
949
+ [h(Rt)]
950
950
  ])
951
951
  ], 2))), 128))
952
952
  ]);
953
953
  };
954
954
  }
955
955
  });
956
- const j = (o, t) => {
956
+ const Z = (o, t) => {
957
957
  const e = o.__vccOpts || o;
958
958
  for (const [a, r] of t)
959
959
  e[a] = r;
960
960
  return e;
961
- }, Qt = /* @__PURE__ */ j(Pt, [["__scopeId", "data-v-00cc9080"]]), It = {
961
+ }, Qt = /* @__PURE__ */ Z(Pt, [["__scopeId", "data-v-00cc9080"]]), It = {
962
962
  class: "chart-components"
963
963
  }, Be = /* @__PURE__ */ L({
964
964
  __name: "Bar",
@@ -966,10 +966,10 @@ const j = (o, t) => {
966
966
  value: {}
967
967
  },
968
968
  setup(o) {
969
- const t = o, e = M(() => t.value.options);
970
- return k(!1), (a, r) => {
969
+ const t = o, e = K(() => t.value.options);
970
+ return B(!1), (a, r) => {
971
971
  const n = s("TdsChart");
972
- return c(), x("div", It, [l(n, {
972
+ return m(), C("div", It, [l(n, {
973
973
  option: e.value
974
974
  }, null, 8, ["option"])]);
975
975
  };
@@ -980,29 +980,29 @@ const j = (o, t) => {
980
980
  value: {}
981
981
  },
982
982
  setup(o) {
983
- const t = o, e = M(() => t.value.options);
983
+ const t = o, e = K(() => t.value.options);
984
984
  return (a, r) => {
985
985
  const n = s("TdsChart");
986
- return c(), x("div", Ft, [
986
+ return m(), C("div", Ft, [
987
987
  l(n, { option: e.value }, null, 8, ["option"])
988
988
  ]);
989
989
  };
990
990
  }
991
- }), Kt = { class: "chart-components" }, De = /* @__PURE__ */ L({
991
+ }), Mt = { class: "chart-components" }, De = /* @__PURE__ */ L({
992
992
  __name: "Pie",
993
993
  props: {
994
994
  value: {}
995
995
  },
996
996
  setup(o) {
997
- const t = o, e = M(() => t.value.options);
997
+ const t = o, e = K(() => t.value.options);
998
998
  return (a, r) => {
999
999
  const n = s("TdsChart");
1000
- return c(), x("div", Kt, [
1000
+ return m(), C("div", Mt, [
1001
1001
  l(n, { option: e.value }, null, 8, ["option"])
1002
1002
  ]);
1003
1003
  };
1004
1004
  }
1005
- }), Mt = { key: 0 }, ne = /* @__PURE__ */ L({
1005
+ }), Kt = { key: 0 }, ne = /* @__PURE__ */ L({
1006
1006
  __name: "ReportSelect",
1007
1007
  props: {
1008
1008
  value: {}
@@ -1011,23 +1011,23 @@ const j = (o, t) => {
1011
1011
  setup(o, { emit: t }) {
1012
1012
  const e = t, a = (A) => {
1013
1013
  e("change", A);
1014
- }, n = k(o.value);
1015
- return (A, p) => {
1016
- const i = s("el-option"), m = s("el-select");
1017
- return n.value.data ? (c(), x("div", Mt, [
1018
- l(m, {
1014
+ }, n = B(o.value);
1015
+ return (A, d) => {
1016
+ const i = s("el-option"), g = s("el-select");
1017
+ return n.value.data ? (m(), C("div", Kt, [
1018
+ l(g, {
1019
1019
  modelValue: n.value.value,
1020
- "onUpdate:modelValue": p[0] || (p[0] = (d) => n.value.value = d),
1020
+ "onUpdate:modelValue": d[0] || (d[0] = (p) => n.value.value = p),
1021
1021
  multiple: "",
1022
1022
  style: { width: "100%" },
1023
1023
  onChange: a,
1024
1024
  placeholder: "全部"
1025
1025
  }, {
1026
1026
  default: u(() => [
1027
- (c(!0), x(O, null, I(n.value.data, (d) => (c(), V(i, {
1028
- key: d.data,
1029
- label: d.label,
1030
- value: d.data
1027
+ (m(!0), C(O, null, I(n.value.data, (p) => (m(), V(i, {
1028
+ key: p.data,
1029
+ label: p.label,
1030
+ value: p.data
1031
1031
  }, null, 8, ["label", "value"]))), 128))
1032
1032
  ]),
1033
1033
  _: 1
@@ -1042,18 +1042,18 @@ const j = (o, t) => {
1042
1042
  },
1043
1043
  emits: ["change"],
1044
1044
  setup(o, { emit: t }) {
1045
- const e = t, r = k(o.value), n = k([]);
1046
- function A(p) {
1047
- p ? (r.value.data[0].start_time = p[0], r.value.data[0].end_time = p[1]) : n.value = [], e("change", n.value);
1045
+ const e = t, r = B(o.value), n = B([]);
1046
+ function A(d) {
1047
+ d ? (r.value.data[0].start_time = d[0], r.value.data[0].end_time = d[1]) : n.value = [], e("change", n.value);
1048
1048
  }
1049
1049
  return se(() => {
1050
1050
  n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
1051
- }), (p, i) => {
1052
- const m = s("el-date-picker");
1053
- return c(), x("div", null, [
1054
- l(m, {
1051
+ }), (d, i) => {
1052
+ const g = s("el-date-picker");
1053
+ return m(), C("div", null, [
1054
+ l(g, {
1055
1055
  modelValue: n.value,
1056
- "onUpdate:modelValue": i[0] || (i[0] = (d) => n.value = d),
1056
+ "onUpdate:modelValue": i[0] || (i[0] = (p) => n.value = p),
1057
1057
  type: "datetimerange",
1058
1058
  placeholder: "Pick a Date",
1059
1059
  format: "YYYY-MM-DD HH:mm:ss",
@@ -1088,7 +1088,7 @@ const Ve = /* @__PURE__ */ L({
1088
1088
  default: () => [r]
1089
1089
  });
1090
1090
  };
1091
- return (a, r) => (c(), x("div", null, [l(e, fe(ge(a.value)), null, 16)]));
1091
+ return (a, r) => (m(), C("div", null, [l(e, fe(ge(a.value)), null, 16)]));
1092
1092
  }
1093
1093
  }), re = /* @__PURE__ */ L({
1094
1094
  __name: "ReportText",
@@ -1107,9 +1107,9 @@ const Ve = /* @__PURE__ */ L({
1107
1107
  "text-align": a.textAlign
1108
1108
  };
1109
1109
  };
1110
- return (a, r) => (c(), x("div", {
1110
+ return (a, r) => (m(), C("div", {
1111
1111
  style: Pe(e())
1112
- }, K(a.value.data), 5));
1112
+ }, M(a.value.data), 5));
1113
1113
  }
1114
1114
  }), Ht = { class: "chart-components" }, Le = /* @__PURE__ */ L({
1115
1115
  __name: "ReportChart",
@@ -1117,7 +1117,7 @@ const Ve = /* @__PURE__ */ L({
1117
1117
  value: {}
1118
1118
  },
1119
1119
  setup(o) {
1120
- const t = o, e = M(() => t.value), a = M(() => {
1120
+ const t = o, e = K(() => t.value), a = K(() => {
1121
1121
  if (e.value.type === "bar") {
1122
1122
  e.value.options.series = oe([]).series;
1123
1123
  const r = [];
@@ -1131,18 +1131,18 @@ const Ve = /* @__PURE__ */ L({
1131
1131
  }
1132
1132
  if (e.value.type === "pie" && (e.value.options.series = ue({ isLegend: !0 }).series, Tt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1133
1133
  let r = [];
1134
- e.value.data.forEach((p) => {
1135
- r = p.data.map((i, m) => ({ name: i.name, value: "value" + m }));
1134
+ e.value.data.forEach((d) => {
1135
+ r = d.data.map((i, g) => ({ name: i.name, value: "value" + g }));
1136
1136
  });
1137
1137
  const n = {
1138
1138
  name: "name",
1139
1139
  value: r
1140
- }, A = e.value.data.map((p) => {
1140
+ }, A = e.value.data.map((d) => {
1141
1141
  const i = {
1142
- name: p.label
1142
+ name: d.label
1143
1143
  };
1144
- return r.forEach((m, d) => {
1145
- i[m.value] = p.data[d].value;
1144
+ return r.forEach((g, p) => {
1145
+ i[g.value] = d.data[p].value;
1146
1146
  }), i;
1147
1147
  });
1148
1148
  console.log(te([], n), "chartsLine([], params)"), e.value.options.series = te([], n).series, kt(e.value.options, A, n);
@@ -1151,13 +1151,13 @@ const Ve = /* @__PURE__ */ L({
1151
1151
  });
1152
1152
  return (r, n) => {
1153
1153
  const A = s("TdsChart");
1154
- return c(), x("div", Ht, [
1154
+ return m(), C("div", Ht, [
1155
1155
  l(A, { option: a.value }, null, 8, ["option"])
1156
1156
  ]);
1157
1157
  };
1158
1158
  }
1159
1159
  });
1160
- function zt(o) {
1160
+ function Nt(o) {
1161
1161
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
1162
1162
  }
1163
1163
  const Ee = /* @__PURE__ */ L({
@@ -1173,7 +1173,7 @@ const Ee = /* @__PURE__ */ L({
1173
1173
  border: t.value.options.border,
1174
1174
  column: t.value.options.column,
1175
1175
  direction: t.value.options.direction
1176
- }, zt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
1176
+ }, Nt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
1177
1177
  label: n.name
1178
1178
  }, {
1179
1179
  default: () => [l("div", {
@@ -1183,9 +1183,9 @@ const Ee = /* @__PURE__ */ L({
1183
1183
  default: () => [r]
1184
1184
  });
1185
1185
  };
1186
- return (a, r) => (c(), x("div", null, [l(e, fe(ge(a.value)), null, 16)]));
1186
+ return (a, r) => (m(), C("div", null, [l(e, fe(ge(a.value)), null, 16)]));
1187
1187
  }
1188
- }), Nt = {
1188
+ }), zt = {
1189
1189
  class: "editor-box"
1190
1190
  }, Yt = {
1191
1191
  class: "editor",
@@ -1212,7 +1212,7 @@ const Ee = /* @__PURE__ */ L({
1212
1212
  }),
1213
1213
  emits: ["update:modelValue"],
1214
1214
  setup(o) {
1215
- const t = k(!1), e = {
1215
+ const t = B(!1), e = {
1216
1216
  Bar: Be,
1217
1217
  Line: ke,
1218
1218
  Pie: De,
@@ -1222,25 +1222,25 @@ const Ee = /* @__PURE__ */ L({
1222
1222
  ReportText: re,
1223
1223
  ReportChart: Le,
1224
1224
  ReportDescribe: Ee
1225
- }, a = q(), r = o, n = _e(o, "modelValue"), A = k([]), p = k([]), i = k([]), m = /* @__PURE__ */ new Date(), d = new Date(m);
1226
- d.setMonth(m.getMonth() - 1);
1227
- function g(B) {
1228
- return B < 10 ? "0" + B : B;
1225
+ }, a = q(), r = o, n = _e(o, "modelValue"), A = B([]), d = B([]), i = B([]), g = /* @__PURE__ */ new Date(), p = new Date(g);
1226
+ p.setMonth(g.getMonth() - 1);
1227
+ function c(T) {
1228
+ return T < 10 ? "0" + T : T;
1229
1229
  }
1230
- function v(B) {
1231
- return B.getFullYear() + "-" + g(B.getMonth() + 1) + "-" + g(B.getDate()) + " " + g(B.getHours()) + ":" + g(B.getMinutes()) + ":" + g(B.getSeconds());
1230
+ function y(T) {
1231
+ return T.getFullYear() + "-" + c(T.getMonth() + 1) + "-" + c(T.getDate()) + " " + c(T.getHours()) + ":" + c(T.getMinutes()) + ":" + c(T.getSeconds());
1232
1232
  }
1233
- const y = k(v(d)), h = k(v(m));
1234
- function b() {
1233
+ const _ = B(y(p)), D = B(y(g));
1234
+ function w() {
1235
1235
  n.value = "table";
1236
1236
  }
1237
- async function w(B) {
1237
+ async function v(T) {
1238
1238
  const U = {
1239
- export_format: B,
1239
+ export_format: T,
1240
1240
  select_data: i.value.join(","),
1241
1241
  report_uuid: r.reportId,
1242
- start_time: y.value,
1243
- end_time: h.value
1242
+ start_time: _.value,
1243
+ end_time: D.value
1244
1244
  };
1245
1245
  await wt(U), Ge({
1246
1246
  title: "提示",
@@ -1248,57 +1248,57 @@ const Ee = /* @__PURE__ */ L({
1248
1248
  type: "info"
1249
1249
  });
1250
1250
  }
1251
- const f = (B) => {
1252
- i.value = B, Q();
1253
- }, _ = (B) => {
1254
- B && B.length > 0 && (y.value = B[0], h.value = B[1]), Q();
1251
+ const f = (T) => {
1252
+ i.value = T, Q();
1253
+ }, b = (T) => {
1254
+ T && T.length > 0 && (_.value = T[0], D.value = T[1]), Q();
1255
1255
  }, Q = async () => {
1256
1256
  try {
1257
1257
  t.value = !0;
1258
- const B = {
1258
+ const T = {
1259
1259
  report_uuid: r.reportId,
1260
- start_time: y.value,
1261
- end_time: h.value,
1260
+ start_time: _.value,
1261
+ end_time: D.value,
1262
1262
  select_data: i.value.join(",")
1263
- }, U = await ot(B), N = [];
1264
- U.data.forEach((J) => {
1265
- (J.type === "report-select" || J.type === "range-time") && N.push(J);
1266
- }), A.value = N, U.data.splice(0, A.value.length), p.value = U.data, t.value = !1;
1267
- } catch (B) {
1268
- t.value = !1, console.error("Error setting loading state:", B);
1263
+ }, U = await ot(T), Y = [];
1264
+ U.data.forEach((j) => {
1265
+ (j.type === "report-select" || j.type === "range-time") && Y.push(j);
1266
+ }), A.value = Y, U.data.splice(0, A.value.length), d.value = U.data, t.value = !1;
1267
+ } catch (T) {
1268
+ t.value = !1, console.error("Error setting loading state:", T);
1269
1269
  }
1270
1270
  };
1271
1271
  Q();
1272
- const D = () => l("div", null, [E("未找到对应组件")]), W = (B) => B === "h2" || B === "h3" || B === "h4" ? H(e, "ReportText") : B === "bar" || B === "pie" || B === "line" ? H(e, "ReportChart") : B ? H(e, B) : l(D, null, null);
1273
- return (B, U) => {
1274
- const N = s("el-button"), J = s("el-card"), Oe = be("loading");
1275
- return Ae((c(), V(J, {
1272
+ const k = () => l("div", null, [E("未找到对应组件")]), z = (T) => T === "h2" || T === "h3" || T === "h4" ? H(e, "ReportText") : T === "bar" || T === "pie" || T === "line" ? H(e, "ReportChart") : T ? H(e, T) : l(k, null, null);
1273
+ return (T, U) => {
1274
+ const Y = s("el-button"), j = s("el-card"), Oe = be("loading");
1275
+ return Ae((m(), V(j, {
1276
1276
  class: "editor view",
1277
1277
  "element-loading-text": "加载中..."
1278
1278
  }, {
1279
- default: u(() => [T("div", Nt, [l(Qt, {
1280
- data: p.value
1281
- }, null, 8, ["data"]), T("div", Yt, [T("div", Gt, [(c(!0), x(O, null, I(A.value, (R) => (c(), x("div", {
1279
+ default: u(() => [x("div", zt, [l(Qt, {
1280
+ data: d.value
1281
+ }, null, 8, ["data"]), x("div", Yt, [x("div", Gt, [(m(!0), C(O, null, I(A.value, (R) => (m(), C("div", {
1282
1282
  class: "item-input",
1283
1283
  key: R.id
1284
- }, [R.type === "report-select" ? (c(), V(ne, {
1284
+ }, [R.type === "report-select" ? (m(), V(ne, {
1285
1285
  key: 0,
1286
1286
  onChange: f,
1287
1287
  value: R
1288
- }, null, 8, ["value"])) : S("", !0), R.type === "range-time" && C(a).filterForm.range_time ? (c(), V(ae, {
1288
+ }, null, 8, ["value"])) : S("", !0), R.type === "range-time" && h(a).filterForm.range_time ? (m(), V(ae, {
1289
1289
  key: 1,
1290
- onChange: _,
1290
+ onChange: b,
1291
1291
  value: R
1292
- }, null, 8, ["value"])) : S("", !0)]))), 128)), T("div", Xt, [U[5] || (U[5] = T("span", {
1292
+ }, null, 8, ["value"])) : S("", !0)]))), 128)), x("div", Xt, [U[5] || (U[5] = x("span", {
1293
1293
  class: "font-export"
1294
- }, "导出为:", -1)), l(N, {
1294
+ }, "导出为:", -1)), l(Y, {
1295
1295
  link: "",
1296
- onClick: U[0] || (U[0] = (R) => w(1)),
1296
+ onClick: U[0] || (U[0] = (R) => v(1)),
1297
1297
  title: "PDF",
1298
1298
  type: "primary",
1299
1299
  class: "custom-btn"
1300
1300
  }, {
1301
- default: u(() => U[2] || (U[2] = [T("img", {
1301
+ default: u(() => U[2] || (U[2] = [x("img", {
1302
1302
  style: {
1303
1303
  width: "25px",
1304
1304
  height: "25px"
@@ -1307,9 +1307,9 @@ const Ee = /* @__PURE__ */ L({
1307
1307
  alt: "导出为PDF"
1308
1308
  }, null, -1)])),
1309
1309
  _: 1
1310
- }), l(N, {
1310
+ }), l(Y, {
1311
1311
  link: "",
1312
- onClick: U[1] || (U[1] = (R) => w(3)),
1312
+ onClick: U[1] || (U[1] = (R) => v(3)),
1313
1313
  title: "WORD",
1314
1314
  type: "primary",
1315
1315
  class: "custom-btn",
@@ -1317,7 +1317,7 @@ const Ee = /* @__PURE__ */ L({
1317
1317
  "margin-right": "5px"
1318
1318
  }
1319
1319
  }, {
1320
- default: u(() => U[3] || (U[3] = [T("img", {
1320
+ default: u(() => U[3] || (U[3] = [x("img", {
1321
1321
  style: {
1322
1322
  width: "25px",
1323
1323
  height: "25px"
@@ -1326,9 +1326,9 @@ const Ee = /* @__PURE__ */ L({
1326
1326
  alt: "导出为WORD"
1327
1327
  }, null, -1)])),
1328
1328
  _: 1
1329
- }), l(N, {
1329
+ }), l(Y, {
1330
1330
  plain: "",
1331
- onClick: b,
1331
+ onClick: w,
1332
1332
  type: "primary",
1333
1333
  class: "custom-btn exit-preview",
1334
1334
  style: {
@@ -1337,18 +1337,18 @@ const Ee = /* @__PURE__ */ L({
1337
1337
  }, {
1338
1338
  default: u(() => U[4] || (U[4] = [E("退出预览")])),
1339
1339
  _: 1
1340
- })])]), (c(!0), x(O, null, I(p.value, (R) => (c(), x("div", {
1340
+ })])]), (m(!0), C(O, null, I(d.value, (R) => (m(), C("div", {
1341
1341
  key: R.id,
1342
- class: G(["editor-content", ["editor" + R.type]]),
1342
+ class: X(["editor-content", ["editor" + R.type]]),
1343
1343
  id: R.id
1344
- }, [R.type !== "p" ? (c(), V($(W(R.type)), {
1344
+ }, [R.type !== "p" ? (m(), V($(z(R.type)), {
1345
1345
  key: 0,
1346
- class: G(["editor" + R.type]),
1346
+ class: X(["editor" + R.type]),
1347
1347
  value: R
1348
1348
  }, {
1349
- default: u(() => [E(K(R.data), 1)]),
1349
+ default: u(() => [E(M(R.data), 1)]),
1350
1350
  _: 2
1351
- }, 1032, ["class", "value"])) : (c(), x("p", {
1351
+ }, 1032, ["class", "value"])) : (m(), C("p", {
1352
1352
  key: 1,
1353
1353
  innerHTML: R.data
1354
1354
  }, null, 8, jt))], 10, Jt))), 128))])])]),
@@ -1357,7 +1357,7 @@ const Ee = /* @__PURE__ */ L({
1357
1357
  };
1358
1358
  }
1359
1359
  });
1360
- const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1360
+ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1361
1361
  class: "editor"
1362
1362
  }, $t = {
1363
1363
  class: "editor-content edit"
@@ -1379,59 +1379,59 @@ const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1379
1379
  activeComponents: a,
1380
1380
  notDraggableList: r,
1381
1381
  titleComponent: n
1382
- } = Ye(q()), A = q(), p = (w) => {
1383
- e.value.forEach((f, _) => {
1384
- f.id === w && (e.value.splice(_, 1), A.activeComponents = []);
1382
+ } = Ye(q()), A = q(), d = (v) => {
1383
+ e.value.forEach((f, b) => {
1384
+ f.id === v && (e.value.splice(b, 1), A.activeComponents = []);
1385
1385
  });
1386
- }, i = (w) => {
1387
- A.setActiveComponents(w);
1388
- }, m = () => l("div", null, [E("未找到对应组件")]), d = (w) => w === "h2" || w === "h3" || w === "h4" ? H(t, "ReportText") : w === "bar" || w === "pie" || w === "line" ? H(t, "ReportChart") : w ? H(t, w) : l(m, null, null), g = (w) => {
1389
- console.log(w, "evt");
1390
- }, v = k(!1), y = () => {
1391
- v.value = !0;
1392
- }, h = (w) => {
1393
- w.newIndex !== 0 && (console.log(w), v.value = !1);
1394
- }, b = k();
1395
- return (w, f) => {
1396
- const _ = s("CircleClose"), Q = s("el-icon");
1397
- return c(), x("div", Wt, [T("div", {
1398
- class: G(["editor-content edit flex flex-start", [{
1399
- active: C(a).id === "filter"
1386
+ }, i = (v) => {
1387
+ A.setActiveComponents(v);
1388
+ }, g = () => l("div", null, [E("未找到对应组件")]), p = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : l(g, null, null), c = (v) => {
1389
+ console.log(v, "evt");
1390
+ }, y = B(!1), _ = () => {
1391
+ y.value = !0;
1392
+ }, D = (v) => {
1393
+ v.newIndex !== 0 && (console.log(v), y.value = !1);
1394
+ }, w = B();
1395
+ return (v, f) => {
1396
+ const b = s("CircleClose"), Q = s("el-icon");
1397
+ return m(), C("div", Wt, [x("div", {
1398
+ class: X(["editor-content edit flex flex-start", [{
1399
+ active: h(a).id === "filter"
1400
1400
  }]]),
1401
- onClick: f[0] || (f[0] = (D) => i({
1401
+ onClick: f[0] || (f[0] = (k) => i({
1402
1402
  id: "filter",
1403
1403
  type: "filter"
1404
1404
  }))
1405
- }, [(c(!0), x(O, null, I(C(r), (D) => (c(), x("div", {
1405
+ }, [(m(!0), C(O, null, I(h(r), (k) => (m(), C("div", {
1406
1406
  class: "item-input",
1407
- key: D.id
1408
- }, [D.type === "report-select" || D.type === "range-time" && C(A).filterForm.range_time ? (c(), V($(C(H)(t, D.type)), {
1407
+ key: k.id
1408
+ }, [k.type === "report-select" || k.type === "range-time" && h(A).filterForm.range_time ? (m(), V($(h(H)(t, k.type)), {
1409
1409
  key: 0,
1410
- value: D
1410
+ value: k
1411
1411
  }, {
1412
- default: u(() => [E(K(D.data), 1)]),
1412
+ default: u(() => [E(M(k.data), 1)]),
1413
1413
  _: 2
1414
- }, 1032, ["value"])) : S("", !0)]))), 128))], 2), T("div", $t, [l(re, {
1415
- value: C(n),
1416
- onClick: f[1] || (f[1] = (D) => i(C(n)))
1417
- }, null, 8, ["value"])]), l(C(Je), {
1414
+ }, 1032, ["value"])) : S("", !0)]))), 128))], 2), x("div", $t, [l(re, {
1415
+ value: h(n),
1416
+ onClick: f[1] || (f[1] = (k) => i(h(n)))
1417
+ }, null, 8, ["value"])]), l(h(Je), {
1418
1418
  ref_key: "el",
1419
- ref: b,
1420
- modelValue: C(e),
1421
- "onUpdate:modelValue": f[2] || (f[2] = (D) => Qe(e) ? e.value = D : null),
1422
- "on-change": g,
1419
+ ref: w,
1420
+ modelValue: h(e),
1421
+ "onUpdate:modelValue": f[2] || (f[2] = (k) => Qe(e) ? e.value = k : null),
1422
+ "on-change": c,
1423
1423
  animation: 150,
1424
- onStart: y,
1425
- onEnd: h
1424
+ onStart: _,
1425
+ onEnd: D
1426
1426
  }, {
1427
- default: u(() => [(c(!0), x(O, null, I(C(e), (D) => (c(), x("div", {
1428
- key: D.id,
1429
- class: G(["editor-content edit", ["editor" + D.type, {
1430
- active: D.id === C(a).id
1427
+ default: u(() => [(m(!0), C(O, null, I(h(e), (k) => (m(), C("div", {
1428
+ key: k.id,
1429
+ class: X(["editor-content edit", ["editor" + k.type, {
1430
+ active: k.id === h(a).id
1431
1431
  }]]),
1432
- onClick: (W) => i(D)
1433
- }, [T("i", {
1434
- onClick: Ie((W) => p(D.id), ["stop"]),
1432
+ onClick: (z) => i(k)
1433
+ }, [x("i", {
1434
+ onClick: Ie((z) => d(k.id), ["stop"]),
1435
1435
  style: {
1436
1436
  "z-index": "99"
1437
1437
  }
@@ -1439,20 +1439,20 @@ const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1439
1439
  size: "16px",
1440
1440
  color: "red"
1441
1441
  }, {
1442
- default: u(() => [l(_)]),
1442
+ default: u(() => [l(b)]),
1443
1443
  _: 1
1444
- })], 8, to), D.type !== "p" ? (c(), V($(d(D.type)), {
1444
+ })], 8, to), k.type !== "p" ? (m(), V($(p(k.type)), {
1445
1445
  key: 0,
1446
- class: G(["editor" + D.type]),
1447
- value: D,
1448
- draggable: v.value
1446
+ class: X(["editor" + k.type]),
1447
+ value: k,
1448
+ draggable: y.value
1449
1449
  }, {
1450
- default: u(() => [E(K(D.data), 1)]),
1450
+ default: u(() => [E(M(k.data), 1)]),
1451
1451
  _: 2
1452
- }, 1032, ["class", "value", "draggable"])) : (c(), x("p", {
1452
+ }, 1032, ["class", "value", "draggable"])) : (m(), C("p", {
1453
1453
  key: 1,
1454
- innerHTML: D.data,
1455
- draggable: v.value
1454
+ innerHTML: k.data,
1455
+ draggable: y.value
1456
1456
  }, null, 8, oo))], 10, eo))), 128))]),
1457
1457
  _: 1
1458
1458
  }, 8, ["modelValue"])]);
@@ -1461,44 +1461,44 @@ const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1461
1461
  }), no = { class: "label" }, ao = { class: "flex item-switch" }, ro = { class: "flex item-switch" }, Ao = { class: "flex item-switch" }, Re = /* @__PURE__ */ L({
1462
1462
  __name: "SettingTable",
1463
1463
  setup(o) {
1464
- const t = q(), e = M(() => t.getActiveComponents);
1464
+ const t = q(), e = K(() => t.getActiveComponents);
1465
1465
  return (a, r) => {
1466
- const n = s("el-switch"), A = s("el-form-item"), p = s("el-divider");
1467
- return c(), x("div", null, [
1466
+ const n = s("el-switch"), A = s("el-form-item"), d = s("el-divider");
1467
+ return m(), C("div", null, [
1468
1468
  l(A, { label: "控制列" }, {
1469
1469
  default: u(() => [
1470
- (c(!0), x(O, null, I(e.value.showColumn, (i, m) => (c(), x("p", {
1470
+ (m(!0), C(O, null, I(e.value.showColumn, (i, g) => (m(), C("p", {
1471
1471
  class: "flex item-switch",
1472
- key: m
1472
+ key: g
1473
1473
  }, [
1474
- T("span", no, K(i.name), 1),
1474
+ x("span", no, M(i.name), 1),
1475
1475
  l(n, {
1476
1476
  modelValue: e.value.options.showColumn[i.key],
1477
- "onUpdate:modelValue": (d) => e.value.options.showColumn[i.key] = d
1477
+ "onUpdate:modelValue": (p) => e.value.options.showColumn[i.key] = p
1478
1478
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1479
1479
  ]))), 128))
1480
1480
  ]),
1481
1481
  _: 1
1482
1482
  }),
1483
- l(p),
1483
+ l(d),
1484
1484
  l(A, { label: "表格样式" }, {
1485
1485
  default: u(() => [
1486
- T("p", ao, [
1487
- r[3] || (r[3] = T("span", { class: "label" }, "斑马纹", -1)),
1486
+ x("p", ao, [
1487
+ r[3] || (r[3] = x("span", { class: "label" }, "斑马纹", -1)),
1488
1488
  l(n, {
1489
1489
  modelValue: e.value.options.stripe,
1490
1490
  "onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
1491
1491
  }, null, 8, ["modelValue"])
1492
1492
  ]),
1493
- T("p", ro, [
1494
- r[4] || (r[4] = T("span", { class: "label" }, "边框", -1)),
1493
+ x("p", ro, [
1494
+ r[4] || (r[4] = x("span", { class: "label" }, "边框", -1)),
1495
1495
  l(n, {
1496
1496
  modelValue: e.value.options.border,
1497
1497
  "onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
1498
1498
  }, null, 8, ["modelValue"])
1499
1499
  ]),
1500
- T("p", Ao, [
1501
- r[5] || (r[5] = T("span", { class: "label" }, "表头", -1)),
1500
+ x("p", Ao, [
1501
+ r[5] || (r[5] = x("span", { class: "label" }, "表头", -1)),
1502
1502
  l(n, {
1503
1503
  modelValue: e.value.options.showHeader,
1504
1504
  "onUpdate:modelValue": r[2] || (r[2] = (i) => e.value.options.showHeader = i)
@@ -1513,82 +1513,82 @@ const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1513
1513
  }), so = { key: 0 }, io = /* @__PURE__ */ L({
1514
1514
  __name: "ChartsUniConfig",
1515
1515
  setup(o) {
1516
- const t = q(), e = M(() => t.activeComponents);
1516
+ const t = q(), e = K(() => t.activeComponents);
1517
1517
  function a(r) {
1518
1518
  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);
1519
1519
  }
1520
- return k("rgb(46, 145, 255)"), (r, n) => {
1521
- const A = s("el-input"), p = s("el-form-item"), i = s("el-switch"), m = s("el-col"), d = s("el-color-picker"), g = s("el-input-number"), v = s("el-row"), y = s("el-collapse-item"), h = s("el-collapse");
1522
- return e.value.options.title ? (c(), x("div", so, [
1523
- l(p, { label: "标题" }, {
1520
+ return B("rgb(46, 145, 255)"), (r, n) => {
1521
+ const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"), g = s("el-col"), p = s("el-color-picker"), c = s("el-input-number"), y = s("el-row"), _ = s("el-collapse-item"), D = s("el-collapse");
1522
+ return e.value.options.title ? (m(), C("div", so, [
1523
+ l(d, { label: "标题" }, {
1524
1524
  default: u(() => [
1525
1525
  l(A, {
1526
1526
  modelValue: e.value.options.title.text,
1527
- "onUpdate:modelValue": n[0] || (n[0] = (b) => e.value.options.title.text = b)
1527
+ "onUpdate:modelValue": n[0] || (n[0] = (w) => e.value.options.title.text = w)
1528
1528
  }, null, 8, ["modelValue"])
1529
1529
  ]),
1530
1530
  _: 1
1531
1531
  }),
1532
- l(h, null, {
1532
+ l(D, null, {
1533
1533
  default: u(() => [
1534
- l(y, {
1534
+ l(_, {
1535
1535
  title: "标题配置",
1536
1536
  name: "1"
1537
1537
  }, {
1538
1538
  default: u(() => [
1539
- l(v, { class: "w-100%" }, {
1539
+ l(y, { class: "w-100%" }, {
1540
1540
  default: u(() => [
1541
- l(m, { span: 24 }, {
1541
+ l(g, { span: 24 }, {
1542
1542
  default: u(() => [
1543
- n[8] || (n[8] = T("span", { class: "switch-label" }, "显示标题", -1)),
1543
+ n[8] || (n[8] = x("span", { class: "switch-label" }, "显示标题", -1)),
1544
1544
  l(i, {
1545
1545
  modelValue: e.value.options.title.show,
1546
- "onUpdate:modelValue": n[1] || (n[1] = (b) => e.value.options.title.show = b)
1546
+ "onUpdate:modelValue": n[1] || (n[1] = (w) => e.value.options.title.show = w)
1547
1547
  }, null, 8, ["modelValue"])
1548
1548
  ]),
1549
1549
  _: 1
1550
1550
  }),
1551
- l(m, { span: 12 }, {
1551
+ l(g, { span: 12 }, {
1552
1552
  default: u(() => [
1553
- l(d, {
1553
+ l(p, {
1554
1554
  modelValue: e.value.options.title.textStyle.color,
1555
- "onUpdate:modelValue": n[2] || (n[2] = (b) => e.value.options.title.textStyle.color = b),
1555
+ "onUpdate:modelValue": n[2] || (n[2] = (w) => e.value.options.title.textStyle.color = w),
1556
1556
  "show-alpha": ""
1557
1557
  }, null, 8, ["modelValue"]),
1558
- n[9] || (n[9] = T("p", { class: "sub-title" }, "颜色", -1))
1558
+ n[9] || (n[9] = x("p", { class: "sub-title" }, "颜色", -1))
1559
1559
  ]),
1560
1560
  _: 1
1561
1561
  }),
1562
- l(m, { span: 12 }, {
1562
+ l(g, { span: 12 }, {
1563
1563
  default: u(() => [
1564
- l(g, {
1564
+ l(c, {
1565
1565
  modelValue: e.value.options.title.textStyle.fontSize,
1566
- "onUpdate:modelValue": n[3] || (n[3] = (b) => e.value.options.title.textStyle.fontSize = b),
1566
+ "onUpdate:modelValue": n[3] || (n[3] = (w) => e.value.options.title.textStyle.fontSize = w),
1567
1567
  "controls-position": "right"
1568
1568
  }, null, 8, ["modelValue"]),
1569
- n[10] || (n[10] = T("p", { class: "sub-title" }, "字体大小", -1))
1569
+ n[10] || (n[10] = x("p", { class: "sub-title" }, "字体大小", -1))
1570
1570
  ]),
1571
1571
  _: 1
1572
1572
  }),
1573
- l(m, { span: 12 }, {
1573
+ l(g, { span: 12 }, {
1574
1574
  default: u(() => [
1575
- l(g, {
1575
+ l(c, {
1576
1576
  modelValue: e.value.options.title.x,
1577
- "onUpdate:modelValue": n[4] || (n[4] = (b) => e.value.options.title.x = b),
1577
+ "onUpdate:modelValue": n[4] || (n[4] = (w) => e.value.options.title.x = w),
1578
1578
  "controls-position": "right"
1579
1579
  }, null, 8, ["modelValue"]),
1580
- n[11] || (n[11] = T("p", { class: "sub-title" }, "横向", -1))
1580
+ n[11] || (n[11] = x("p", { class: "sub-title" }, "横向", -1))
1581
1581
  ]),
1582
1582
  _: 1
1583
1583
  }),
1584
- l(m, { span: 12 }, {
1584
+ l(g, { span: 12 }, {
1585
1585
  default: u(() => [
1586
- l(g, {
1586
+ l(c, {
1587
1587
  modelValue: e.value.options.title.y,
1588
- "onUpdate:modelValue": n[5] || (n[5] = (b) => e.value.options.title.y = b),
1588
+ "onUpdate:modelValue": n[5] || (n[5] = (w) => e.value.options.title.y = w),
1589
1589
  "controls-position": "right"
1590
1590
  }, null, 8, ["modelValue"]),
1591
- n[12] || (n[12] = T("p", { class: "sub-title" }, "纵向", -1))
1591
+ n[12] || (n[12] = x("p", { class: "sub-title" }, "纵向", -1))
1592
1592
  ]),
1593
1593
  _: 1
1594
1594
  })
@@ -1598,20 +1598,20 @@ const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1598
1598
  ]),
1599
1599
  _: 1
1600
1600
  }),
1601
- l(y, {
1601
+ l(_, {
1602
1602
  title: "图形配置",
1603
1603
  name: "2"
1604
1604
  }, {
1605
1605
  default: u(() => [
1606
- e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (c(), V(v, { key: 0 }, {
1606
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), V(y, { key: 0 }, {
1607
1607
  default: u(() => [
1608
- l(m, { span: 24 }, {
1608
+ l(g, { span: 24 }, {
1609
1609
  default: u(() => [
1610
- n[13] || (n[13] = T("span", { class: "switch-label" }, "玫瑰图", -1)),
1610
+ n[13] || (n[13] = x("span", { class: "switch-label" }, "玫瑰图", -1)),
1611
1611
  l(i, {
1612
1612
  onChange: a,
1613
1613
  modelValue: e.value.options.series[0].roseType,
1614
- "onUpdate:modelValue": n[6] || (n[6] = (b) => e.value.options.series[0].roseType = b)
1614
+ "onUpdate:modelValue": n[6] || (n[6] = (w) => e.value.options.series[0].roseType = w)
1615
1615
  }, null, 8, ["modelValue"])
1616
1616
  ]),
1617
1617
  _: 1
@@ -1622,20 +1622,20 @@ const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1622
1622
  ]),
1623
1623
  _: 1
1624
1624
  }),
1625
- l(y, {
1625
+ l(_, {
1626
1626
  title: "图例配置",
1627
1627
  name: "3"
1628
1628
  }, {
1629
1629
  default: u(() => [
1630
- l(v, null, {
1630
+ l(y, null, {
1631
1631
  default: u(() => [
1632
- l(m, { span: 24 }, {
1632
+ l(g, { span: 24 }, {
1633
1633
  default: u(() => [
1634
- n[14] || (n[14] = T("span", { class: "switch-label" }, "显示图例", -1)),
1635
- e.value.options.legend ? (c(), V(i, {
1634
+ n[14] || (n[14] = x("span", { class: "switch-label" }, "显示图例", -1)),
1635
+ e.value.options.legend ? (m(), V(i, {
1636
1636
  key: 0,
1637
1637
  modelValue: e.value.options.legend.show,
1638
- "onUpdate:modelValue": n[7] || (n[7] = (b) => e.value.options.legend.show = b)
1638
+ "onUpdate:modelValue": n[7] || (n[7] = (w) => e.value.options.legend.show = w)
1639
1639
  }, null, 8, ["modelValue"])) : S("", !0)
1640
1640
  ]),
1641
1641
  _: 1
@@ -1653,27 +1653,27 @@ const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
1653
1653
  };
1654
1654
  }
1655
1655
  });
1656
- const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @__PURE__ */ L({
1656
+ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @__PURE__ */ L({
1657
1657
  __name: "SettingDescribe",
1658
1658
  setup(o) {
1659
- const t = q(), e = M(() => t.getActiveComponents);
1659
+ const t = q(), e = K(() => t.getActiveComponents);
1660
1660
  return (a, r) => {
1661
- const n = s("el-input"), A = s("el-form-item"), p = s("el-switch"), i = s("el-input-number"), m = s("el-radio"), d = s("el-radio-group");
1662
- return c(), x("div", null, [
1661
+ const n = s("el-input"), A = s("el-form-item"), d = s("el-switch"), i = s("el-input-number"), g = s("el-radio"), p = s("el-radio-group");
1662
+ return m(), C("div", null, [
1663
1663
  l(A, { label: "标题" }, {
1664
1664
  default: u(() => [
1665
1665
  l(n, {
1666
1666
  modelValue: e.value.options.title,
1667
- "onUpdate:modelValue": r[0] || (r[0] = (g) => e.value.options.title = g)
1667
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => e.value.options.title = c)
1668
1668
  }, null, 8, ["modelValue"])
1669
1669
  ]),
1670
1670
  _: 1
1671
1671
  }),
1672
1672
  l(A, { label: "边框" }, {
1673
1673
  default: u(() => [
1674
- l(p, {
1674
+ l(d, {
1675
1675
  modelValue: e.value.options.border,
1676
- "onUpdate:modelValue": r[1] || (r[1] = (g) => e.value.options.border = g)
1676
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => e.value.options.border = c)
1677
1677
  }, null, 8, ["modelValue"])
1678
1678
  ]),
1679
1679
  _: 1
@@ -1682,7 +1682,7 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1682
1682
  default: u(() => [
1683
1683
  l(i, {
1684
1684
  modelValue: e.value.options.column,
1685
- "onUpdate:modelValue": r[2] || (r[2] = (g) => e.value.options.column = g),
1685
+ "onUpdate:modelValue": r[2] || (r[2] = (c) => e.value.options.column = c),
1686
1686
  min: 1,
1687
1687
  max: 10,
1688
1688
  controls: !1
@@ -1692,18 +1692,18 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1692
1692
  }),
1693
1693
  l(A, { label: "排列方向" }, {
1694
1694
  default: u(() => [
1695
- l(d, {
1695
+ l(p, {
1696
1696
  modelValue: e.value.options.direction,
1697
- "onUpdate:modelValue": r[3] || (r[3] = (g) => e.value.options.direction = g)
1697
+ "onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
1698
1698
  }, {
1699
1699
  default: u(() => [
1700
- l(m, { value: "horizontal" }, {
1700
+ l(g, { value: "horizontal" }, {
1701
1701
  default: u(() => r[4] || (r[4] = [
1702
1702
  E("横向")
1703
1703
  ])),
1704
1704
  _: 1
1705
1705
  }),
1706
- l(m, { value: "vertical" }, {
1706
+ l(g, { value: "vertical" }, {
1707
1707
  default: u(() => r[5] || (r[5] = [
1708
1708
  E("纵向")
1709
1709
  ])),
@@ -1721,76 +1721,77 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1721
1721
  }), po = /* @__PURE__ */ L({
1722
1722
  __name: "SettingCharts",
1723
1723
  setup(o) {
1724
- const t = q(), e = k(!1), a = M(() => t.getActiveComponents), r = [
1724
+ const t = q(), e = B(!1), a = K(() => t.getActiveComponents), r = [
1725
1725
  { value: "report-describe", name: "描述列表" },
1726
1726
  { value: "report-table", name: "表格" },
1727
1727
  { value: "line", name: "趋势图" },
1728
1728
  { value: "pie", name: "扇形图" },
1729
1729
  { value: "bar", name: "柱状图" }
1730
- ], n = k(""), A = k();
1731
- async function p(d) {
1732
- const g = await he({
1730
+ ], n = B(""), A = B();
1731
+ async function d(p) {
1732
+ const c = window.windowGlobalVar.SYSTEM_NORMAL, y = await he({
1733
1733
  prod_type: window.$prodType,
1734
- chart_type: d,
1735
- filter_uuid: t.filterForm.filter_uuid
1734
+ chart_type: p,
1735
+ filter_uuid: t.filterForm.filter_uuid,
1736
+ cg_linkage: c ? 1 : c ? void 0 : 0
1736
1737
  });
1737
- A.value = g.data;
1738
+ A.value = y.data;
1738
1739
  }
1739
- function i(d) {
1740
- let g = A.value.find((y) => y.rp_item_uuid === d);
1741
- const v = g.rp_item_content;
1742
- if (g.rp_item_content.type === "bar" && (v.options = oe()), v.type === "pie" && (v.options = ue({ isLegend: !0 })), v.type === "line") {
1743
- let y = [];
1744
- v.data.forEach((b) => {
1745
- y = b.data.map((w, f) => ({ name: w.name, value: "value" + f }));
1740
+ function i(p) {
1741
+ let c = A.value.find((_) => _.rp_item_uuid === p);
1742
+ const y = c.rp_item_content;
1743
+ if (c.rp_item_content.type === "bar" && (y.options = oe()), y.type === "pie" && (y.options = ue({ isLegend: !0 })), y.type === "line") {
1744
+ let _ = [];
1745
+ y.data.forEach((w) => {
1746
+ _ = w.data.map((v, f) => ({ name: v.name, value: "value" + f }));
1746
1747
  });
1747
- const h = {
1748
+ const D = {
1748
1749
  name: "name",
1749
- value: y
1750
+ value: _
1750
1751
  };
1751
- v.options = te([], h);
1752
+ y.options = te([], D);
1752
1753
  }
1753
- if (v.type === "report-table") {
1754
- const y = {};
1755
- v.showColumn.forEach((h) => {
1756
- y[h.key] = !0;
1757
- }), v.options = { ...v.options, showColumn: y, border: !0, showHeader: !0, stripe: !1 };
1754
+ if (y.type === "report-table") {
1755
+ const _ = {};
1756
+ y.showColumn.forEach((D) => {
1757
+ _[D.key] = !0;
1758
+ }), y.options = { ...y.options, showColumn: _, border: !0, showHeader: !0, stripe: !1 };
1758
1759
  }
1759
- 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 = g.rp_item_uuid;
1760
+ y.type === "report-describe" && (y.options = { ...y.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, y), t.activeComponents.rp_item_uuid = c.rp_item_uuid;
1760
1761
  }
1761
1762
  se(async () => {
1762
- n.value = a.value.type, await p(n.value);
1763
+ n.value = a.value.type, await d(n.value);
1763
1764
  });
1764
- async function m(d) {
1765
+ async function g(p) {
1765
1766
  try {
1766
- e.value = !0, await p(d);
1767
- } catch (g) {
1768
- console.error("加载报告项失败:", g);
1767
+ e.value = !0, await d(p);
1768
+ } catch (c) {
1769
+ console.error("加载报告项失败:", c);
1769
1770
  } finally {
1770
- Object.assign(t.activeComponents, Ut(d)), e.value = !1;
1771
+ Object.assign(t.activeComponents, Ut(p)), e.value = !1;
1771
1772
  }
1772
1773
  }
1773
1774
  return Fe(
1774
1775
  () => a.value,
1775
- (d) => {
1776
- console.log(d, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(d.type) && (n.value = a.value.type, p(n.value));
1776
+ (p) => {
1777
+ console.log(p, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(p.type) && (n.value = a.value.type, d(n.value));
1777
1778
  }
1778
- ), (d, g) => {
1779
- const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), b = s("el-form"), w = be("loading");
1780
- return Ae((c(), x("div", null, [
1781
- l(b, { "label-position": "top" }, {
1779
+ ), (p, c) => {
1780
+ const y = s("el-option"), _ = s("el-select"), D = s("el-form-item"), w = s("el-form"), v = be("loading");
1781
+ return Ae((m(), C("div", null, [
1782
+ l(w, { "label-position": "top" }, {
1782
1783
  default: u(() => [
1783
- l(h, { label: "图表类型" }, {
1784
+ l(D, { label: "图表类型" }, {
1784
1785
  default: u(() => [
1785
- l(y, {
1786
+ l(_, {
1786
1787
  style: { width: "100%" },
1787
1788
  modelValue: n.value,
1788
- "onUpdate:modelValue": g[0] || (g[0] = (f) => n.value = f),
1789
- onChange: m
1789
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => n.value = f),
1790
+ onChange: g
1790
1791
  }, {
1791
1792
  default: u(() => [
1792
- (c(), x(O, null, I(r, (f, _) => l(v, {
1793
- key: _,
1793
+ (m(), C(O, null, I(r, (f, b) => l(y, {
1794
+ key: b,
1794
1795
  label: f.name,
1795
1796
  value: f.value
1796
1797
  }, null, 8, ["label", "value"])), 64))
@@ -1800,17 +1801,17 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1800
1801
  ]),
1801
1802
  _: 1
1802
1803
  }),
1803
- l(h, { label: "组件库" }, {
1804
+ l(D, { label: "组件库" }, {
1804
1805
  default: u(() => [
1805
- l(y, {
1806
+ l(_, {
1806
1807
  style: { width: "100%" },
1807
- modelValue: C(t).activeComponents.rp_item_uuid,
1808
- "onUpdate:modelValue": g[1] || (g[1] = (f) => C(t).activeComponents.rp_item_uuid = f),
1808
+ modelValue: h(t).activeComponents.rp_item_uuid,
1809
+ "onUpdate:modelValue": c[1] || (c[1] = (f) => h(t).activeComponents.rp_item_uuid = f),
1809
1810
  onChange: i
1810
1811
  }, {
1811
1812
  default: u(() => [
1812
- (c(!0), x(O, null, I(A.value, (f, _) => (c(), V(v, {
1813
- key: _,
1813
+ (m(!0), C(O, null, I(A.value, (f, b) => (m(), V(y, {
1814
+ key: b,
1814
1815
  label: f.rp_item_name,
1815
1816
  value: f.rp_item_uuid
1816
1817
  }, null, 8, ["label", "value"]))), 128))
@@ -1820,28 +1821,33 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1820
1821
  ]),
1821
1822
  _: 1
1822
1823
  }),
1823
- n.value === "report-table" && a.value.options.showColumn ? (c(), V(Re, { key: 0 })) : S("", !0),
1824
- n.value === "pie" || n.value === "bar" || n.value === "line" ? (c(), V(uo, { key: 1 })) : S("", !0),
1825
- n.value === "report-describe" ? (c(), V(Se, { key: 2 })) : S("", !0)
1824
+ n.value === "report-table" && a.value.options.showColumn ? (m(), V(Re, { key: 0 })) : S("", !0),
1825
+ n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), V(uo, { key: 1 })) : S("", !0),
1826
+ n.value === "report-describe" ? (m(), V(Se, { key: 2 })) : S("", !0)
1826
1827
  ]),
1827
1828
  _: 1
1828
1829
  })
1829
1830
  ])), [
1830
- [w, e.value]
1831
+ [v, e.value]
1831
1832
  ]);
1832
1833
  };
1833
1834
  }
1834
1835
  }), co = { key: 0 }, mo = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ce = "default", fo = /* @__PURE__ */ L({
1835
1836
  __name: "SettingText",
1836
1837
  setup(o) {
1837
- const t = q(), e = Ke(), a = k();
1838
- function r(d) {
1839
- const g = a.value.find((v) => v.rp_item_uuid === d);
1840
- t.activeComponents.uri = g.rp_item_content.uri, e.value.setHtml((g == null ? void 0 : g.rp_item_content.data) || "");
1838
+ const t = q(), e = Me(), a = B();
1839
+ function r(p) {
1840
+ const c = a.value.find((y) => y.rp_item_uuid === p);
1841
+ t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
1841
1842
  }
1842
1843
  async function n() {
1843
- const d = await he({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1844
- a.value = d.data;
1844
+ const p = window.windowGlobalVar.SYSTEM_NORMAL, c = await he({
1845
+ prod_type: window.$prodType,
1846
+ chart_type: "p",
1847
+ filter_uuid: t.filterForm.filter_uuid,
1848
+ cg_linkage: p ? 1 : p ? void 0 : 0
1849
+ });
1850
+ a.value = c.data;
1845
1851
  }
1846
1852
  n();
1847
1853
  const A = {
@@ -1866,31 +1872,31 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1866
1872
  "justifyJustify",
1867
1873
  "lineHeight"
1868
1874
  ]
1869
- }, p = { placeholder: "请输入内容..." }, i = (d) => {
1870
- e.value = d;
1871
- }, m = (d) => {
1875
+ }, d = { placeholder: "请输入内容..." }, i = (p) => {
1876
+ e.value = p;
1877
+ }, g = (p) => {
1872
1878
  };
1873
- return Me(() => {
1874
- const d = e.value;
1875
- d != null && d.destroy();
1876
- }), (d, g) => {
1877
- const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), b = s("el-form");
1878
- return C(t).activeComponents.id ? (c(), x("div", co, [
1879
- l(b, { "label-position": "top" }, {
1879
+ return Ke(() => {
1880
+ const p = e.value;
1881
+ p != null && p.destroy();
1882
+ }), (p, c) => {
1883
+ const y = s("el-option"), _ = s("el-select"), D = s("el-form-item"), w = s("el-form");
1884
+ return h(t).activeComponents.id ? (m(), C("div", co, [
1885
+ l(w, { "label-position": "top" }, {
1880
1886
  default: u(() => [
1881
- l(h, { label: "组件库" }, {
1887
+ l(D, { label: "组件库" }, {
1882
1888
  default: u(() => [
1883
- l(y, {
1889
+ l(_, {
1884
1890
  style: { width: "100%" },
1885
- modelValue: C(t).activeComponents.rp_item_uuid,
1886
- "onUpdate:modelValue": g[0] || (g[0] = (w) => C(t).activeComponents.rp_item_uuid = w),
1891
+ modelValue: h(t).activeComponents.rp_item_uuid,
1892
+ "onUpdate:modelValue": c[0] || (c[0] = (v) => h(t).activeComponents.rp_item_uuid = v),
1887
1893
  onChange: r
1888
1894
  }, {
1889
1895
  default: u(() => [
1890
- (c(!0), x(O, null, I(a.value, (w, f) => (c(), V(v, {
1896
+ (m(!0), C(O, null, I(a.value, (v, f) => (m(), V(y, {
1891
1897
  key: f,
1892
- label: w.rp_item_name,
1893
- value: w.rp_item_uuid
1898
+ label: v.rp_item_name,
1899
+ value: v.rp_item_uuid
1894
1900
  }, null, 8, ["label", "value"]))), 128))
1895
1901
  ]),
1896
1902
  _: 1
@@ -1898,21 +1904,21 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1898
1904
  ]),
1899
1905
  _: 1
1900
1906
  }),
1901
- l(h, { label: "文本内容" }, {
1907
+ l(D, { label: "文本内容" }, {
1902
1908
  default: u(() => [
1903
- T("div", mo, [
1904
- l(C(je), {
1909
+ x("div", mo, [
1910
+ l(h(je), {
1905
1911
  style: { "border-bottom": "1px solid #ccc" },
1906
1912
  editor: e.value,
1907
1913
  "default-config": A,
1908
1914
  mode: ce
1909
1915
  }, null, 8, ["editor"]),
1910
- l(C(Ze), {
1916
+ l(h(Ze), {
1911
1917
  style: { height: "500px", "overflow-y": "hidden" },
1912
- onOnChange: m,
1913
- modelValue: C(t).activeComponents.data,
1914
- "onUpdate:modelValue": g[1] || (g[1] = (w) => C(t).activeComponents.data = w),
1915
- "default-config": p,
1918
+ onOnChange: g,
1919
+ modelValue: h(t).activeComponents.data,
1920
+ "onUpdate:modelValue": c[1] || (c[1] = (v) => h(t).activeComponents.data = v),
1921
+ "default-config": d,
1916
1922
  mode: ce,
1917
1923
  onOnCreated: i
1918
1924
  }, null, 8, ["modelValue"])
@@ -1929,30 +1935,30 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1929
1935
  }), go = /* @__PURE__ */ L({
1930
1936
  __name: "SettingFilter",
1931
1937
  setup(o) {
1932
- const t = k([]), e = q();
1938
+ const t = B([]), e = q();
1933
1939
  async function a() {
1934
1940
  const r = await Ce({ prod_type: window.$prodType });
1935
1941
  t.value = r.data;
1936
1942
  }
1937
1943
  return a(), (r, n) => {
1938
- const A = s("el-option"), p = s("el-select"), i = s("el-form-item"), m = s("el-checkbox"), d = s("el-form");
1939
- return c(), V(d, {
1944
+ const A = s("el-option"), d = s("el-select"), i = s("el-form-item"), g = s("el-checkbox"), p = s("el-form");
1945
+ return m(), V(p, {
1940
1946
  "label-width": "80px",
1941
1947
  "label-position": "top"
1942
1948
  }, {
1943
1949
  default: u(() => [
1944
1950
  l(i, { label: "筛选条件" }, {
1945
1951
  default: u(() => [
1946
- l(p, {
1947
- modelValue: C(e).filterForm.filter_uuid,
1948
- "onUpdate:modelValue": n[0] || (n[0] = (g) => C(e).filterForm.filter_uuid = g),
1949
- disabled: !!C(e).filterForm.filter_uuid
1952
+ l(d, {
1953
+ modelValue: h(e).filterForm.filter_uuid,
1954
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => h(e).filterForm.filter_uuid = c),
1955
+ disabled: !!h(e).filterForm.filter_uuid
1950
1956
  }, {
1951
1957
  default: u(() => [
1952
- (c(!0), x(O, null, I(t.value, (g) => (c(), V(A, {
1953
- key: g.filter_uuid,
1954
- label: g.filter_name,
1955
- value: g.filter_uuid
1958
+ (m(!0), C(O, null, I(t.value, (c) => (m(), V(A, {
1959
+ key: c.filter_uuid,
1960
+ label: c.filter_name,
1961
+ value: c.filter_uuid
1956
1962
  }, null, 8, ["label", "value"]))), 128))
1957
1963
  ]),
1958
1964
  _: 1
@@ -1962,9 +1968,9 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1962
1968
  }),
1963
1969
  l(i, null, {
1964
1970
  default: u(() => [
1965
- l(m, {
1966
- modelValue: C(e).filterForm.range_time,
1967
- "onUpdate:modelValue": n[1] || (n[1] = (g) => C(e).filterForm.range_time = g),
1971
+ l(g, {
1972
+ modelValue: h(e).filterForm.range_time,
1973
+ "onUpdate:modelValue": n[1] || (n[1] = (c) => h(e).filterForm.range_time = c),
1968
1974
  "true-value": 1,
1969
1975
  "false-value": 0,
1970
1976
  label: "时间范围"
@@ -1982,8 +1988,8 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1982
1988
  setup(o) {
1983
1989
  const t = q();
1984
1990
  return (e, a) => {
1985
- const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), p = s("el-col"), i = s("el-input-number"), m = s("el-option"), d = s("el-select"), g = s("el-row"), v = s("el-form");
1986
- return c(), V(v, {
1991
+ 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"), p = s("el-select"), c = s("el-row"), y = s("el-form");
1992
+ return m(), V(y, {
1987
1993
  "label-width": "auto",
1988
1994
  "label-position": "top"
1989
1995
  }, {
@@ -1991,8 +1997,8 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
1991
1997
  l(n, { label: "名称" }, {
1992
1998
  default: u(() => [
1993
1999
  l(r, {
1994
- modelValue: C(t).activeComponents.data,
1995
- "onUpdate:modelValue": a[0] || (a[0] = (y) => C(t).activeComponents.data = y),
2000
+ modelValue: h(t).activeComponents.data,
2001
+ "onUpdate:modelValue": a[0] || (a[0] = (_) => h(t).activeComponents.data = _),
1996
2002
  placeholder: "Please input",
1997
2003
  maxlength: "24",
1998
2004
  "show-word-limit": ""
@@ -2002,97 +2008,97 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
2002
2008
  }),
2003
2009
  l(n, { label: "样式" }, {
2004
2010
  default: u(() => [
2005
- l(g, { gutter: 20 }, {
2011
+ l(c, { gutter: 20 }, {
2006
2012
  default: u(() => [
2007
- l(p, { span: 12 }, {
2013
+ l(d, { span: 12 }, {
2008
2014
  default: u(() => [
2009
2015
  l(A, {
2010
- modelValue: C(t).activeComponents.options.color,
2011
- "onUpdate:modelValue": a[1] || (a[1] = (y) => C(t).activeComponents.options.color = y),
2016
+ modelValue: h(t).activeComponents.options.color,
2017
+ "onUpdate:modelValue": a[1] || (a[1] = (_) => h(t).activeComponents.options.color = _),
2012
2018
  "show-alpha": ""
2013
2019
  }, null, 8, ["modelValue"]),
2014
- a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
2020
+ a[7] || (a[7] = x("p", { class: "sub-title" }, "颜色", -1))
2015
2021
  ]),
2016
2022
  _: 1
2017
2023
  }),
2018
- l(p, { span: 12 }, {
2024
+ l(d, { span: 12 }, {
2019
2025
  default: u(() => [
2020
2026
  l(i, {
2021
- modelValue: C(t).activeComponents.options.size,
2022
- "onUpdate:modelValue": a[2] || (a[2] = (y) => C(t).activeComponents.options.size = y),
2027
+ modelValue: h(t).activeComponents.options.size,
2028
+ "onUpdate:modelValue": a[2] || (a[2] = (_) => h(t).activeComponents.options.size = _),
2023
2029
  "controls-position": "right"
2024
2030
  }, null, 8, ["modelValue"]),
2025
- a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
2031
+ a[8] || (a[8] = x("p", { class: "sub-title" }, "字体大小", -1))
2026
2032
  ]),
2027
2033
  _: 1
2028
2034
  }),
2029
- l(p, { span: 12 }, {
2035
+ l(d, { span: 12 }, {
2030
2036
  default: u(() => [
2031
- l(d, {
2032
- modelValue: C(t).activeComponents.options.fontWeight,
2033
- "onUpdate:modelValue": a[3] || (a[3] = (y) => C(t).activeComponents.options.fontWeight = y)
2037
+ l(p, {
2038
+ modelValue: h(t).activeComponents.options.fontWeight,
2039
+ "onUpdate:modelValue": a[3] || (a[3] = (_) => h(t).activeComponents.options.fontWeight = _)
2034
2040
  }, {
2035
2041
  default: u(() => [
2036
- l(m, {
2042
+ l(g, {
2037
2043
  label: "常规",
2038
2044
  value: 500
2039
2045
  }),
2040
- l(m, {
2046
+ l(g, {
2041
2047
  label: "加粗",
2042
2048
  value: 600
2043
2049
  })
2044
2050
  ]),
2045
2051
  _: 1
2046
2052
  }, 8, ["modelValue"]),
2047
- a[9] || (a[9] = T("p", { class: "sub-title" }, "字体粗细", -1))
2053
+ a[9] || (a[9] = x("p", { class: "sub-title" }, "字体粗细", -1))
2048
2054
  ]),
2049
2055
  _: 1
2050
2056
  }),
2051
- l(p, { span: 12 }, {
2057
+ l(d, { span: 12 }, {
2052
2058
  default: u(() => [
2053
2059
  l(i, {
2054
- modelValue: C(t).activeComponents.options.letterSpacing,
2055
- "onUpdate:modelValue": a[4] || (a[4] = (y) => C(t).activeComponents.options.letterSpacing = y),
2060
+ modelValue: h(t).activeComponents.options.letterSpacing,
2061
+ "onUpdate:modelValue": a[4] || (a[4] = (_) => h(t).activeComponents.options.letterSpacing = _),
2056
2062
  "controls-position": "right"
2057
2063
  }, null, 8, ["modelValue"]),
2058
- a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
2064
+ a[10] || (a[10] = x("p", { class: "sub-title" }, "字间距", -1))
2059
2065
  ]),
2060
2066
  _: 1
2061
2067
  }),
2062
- l(p, { span: 12 }, {
2068
+ l(d, { span: 12 }, {
2063
2069
  default: u(() => [
2064
2070
  l(i, {
2065
- modelValue: C(t).activeComponents.options.textIndent,
2066
- "onUpdate:modelValue": a[5] || (a[5] = (y) => C(t).activeComponents.options.textIndent = y),
2071
+ modelValue: h(t).activeComponents.options.textIndent,
2072
+ "onUpdate:modelValue": a[5] || (a[5] = (_) => h(t).activeComponents.options.textIndent = _),
2067
2073
  "controls-position": "right"
2068
2074
  }, null, 8, ["modelValue"]),
2069
- a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
2075
+ a[11] || (a[11] = x("p", { class: "sub-title" }, "首行缩进", -1))
2070
2076
  ]),
2071
2077
  _: 1
2072
2078
  }),
2073
- l(p, { span: 12 }, {
2079
+ l(d, { span: 12 }, {
2074
2080
  default: u(() => [
2075
- l(d, {
2076
- modelValue: C(t).activeComponents.options.textAlign,
2077
- "onUpdate:modelValue": a[6] || (a[6] = (y) => C(t).activeComponents.options.textAlign = y)
2081
+ l(p, {
2082
+ modelValue: h(t).activeComponents.options.textAlign,
2083
+ "onUpdate:modelValue": a[6] || (a[6] = (_) => h(t).activeComponents.options.textAlign = _)
2078
2084
  }, {
2079
2085
  default: u(() => [
2080
- l(m, {
2086
+ l(g, {
2081
2087
  label: "左对齐",
2082
2088
  value: "left"
2083
2089
  }),
2084
- l(m, {
2090
+ l(g, {
2085
2091
  label: "居中对齐",
2086
2092
  value: "center"
2087
2093
  }),
2088
- l(m, {
2094
+ l(g, {
2089
2095
  label: "右对齐",
2090
2096
  value: "right"
2091
2097
  })
2092
2098
  ]),
2093
2099
  _: 1
2094
2100
  }, 8, ["modelValue"]),
2095
- a[12] || (a[12] = T("p", { class: "sub-title" }, "位置", -1))
2101
+ a[12] || (a[12] = x("p", { class: "sub-title" }, "位置", -1))
2096
2102
  ]),
2097
2103
  _: 1
2098
2104
  })
@@ -2108,7 +2114,7 @@ const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
2108
2114
  };
2109
2115
  }
2110
2116
  });
2111
- const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */ L({
2117
+ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */ L({
2112
2118
  __name: "Setting",
2113
2119
  setup(o) {
2114
2120
  const t = {
@@ -2118,12 +2124,12 @@ const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
2118
2124
  SettingText: fo,
2119
2125
  SettingFilter: go,
2120
2126
  SettingTitle: _o
2121
- }, e = q(), a = M(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], p = (i) => r.includes(i) ? H(t, "SettingTitle") : n.includes(i) ? H(t, "SettingText") : A.includes(i) ? H(t, "SettingCharts") : i === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
2122
- return (i, m) => {
2123
- const d = s("el-card");
2124
- return c(), V(d, { class: "config-wrapper" }, {
2127
+ }, e = q(), a = K(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? H(t, "SettingTitle") : n.includes(i) ? H(t, "SettingText") : A.includes(i) ? H(t, "SettingCharts") : i === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
2128
+ return (i, g) => {
2129
+ const p = s("el-card");
2130
+ return m(), V(p, { class: "config-wrapper" }, {
2125
2131
  default: u(() => [
2126
- (c(), V($(p(a.value.type))))
2132
+ (m(), V($(d(a.value.type))))
2127
2133
  ]),
2128
2134
  _: 1
2129
2135
  });
@@ -2143,8 +2149,8 @@ const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
2143
2149
  emits: ["update:modelValue"],
2144
2150
  setup(o) {
2145
2151
  const t = q(), e = o, a = _e(o, "modelValue"), r = (i) => {
2146
- const m = ee(i);
2147
- m.id = F(), t.componentList.push(m);
2152
+ const g = ee(i);
2153
+ g.id = F(), t.componentList.push(g);
2148
2154
  };
2149
2155
  function n() {
2150
2156
  a.value = "table";
@@ -2155,7 +2161,7 @@ const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
2155
2161
  se(() => {
2156
2162
  A();
2157
2163
  });
2158
- async function p() {
2164
+ async function d() {
2159
2165
  if (!t.filterForm.filter_uuid) {
2160
2166
  Xe.error("请选择筛选条件");
2161
2167
  return;
@@ -2183,24 +2189,24 @@ const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
2183
2189
  }
2184
2190
  return qe(() => {
2185
2191
  t.clearComponents();
2186
- }), (i, m) => {
2187
- const d = s("el-button"), g = s("el-button-group"), v = s("el-card");
2188
- return c(), x("div", wo, [
2189
- l(v, { class: "view-wrapper" }, {
2192
+ }), (i, g) => {
2193
+ const p = s("el-button"), c = s("el-button-group"), y = s("el-card");
2194
+ return m(), C("div", wo, [
2195
+ l(y, { class: "view-wrapper" }, {
2190
2196
  default: u(() => [
2191
- T("div", yo, [
2192
- T("div", ho, [
2193
- l(g, null, {
2197
+ x("div", yo, [
2198
+ x("div", ho, [
2199
+ l(c, null, {
2194
2200
  default: u(() => [
2195
- (c(!0), x(O, null, I(C(Et), (y) => (c(), x(O, {
2196
- key: y.type
2201
+ (m(!0), C(O, null, I(h(Et), (_) => (m(), C(O, {
2202
+ key: _.type
2197
2203
  }, [
2198
- y != null && y.hide ? S("", !0) : (c(), V(d, {
2204
+ _ != null && _.hide ? S("", !0) : (m(), V(p, {
2199
2205
  key: 0,
2200
- onClick: (h) => r(y)
2206
+ onClick: (D) => r(_)
2201
2207
  }, {
2202
2208
  default: u(() => [
2203
- E(K(y.name), 1)
2209
+ E(M(_.name), 1)
2204
2210
  ]),
2205
2211
  _: 2
2206
2212
  }, 1032, ["onClick"]))
@@ -2209,19 +2215,19 @@ const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
2209
2215
  _: 1
2210
2216
  })
2211
2217
  ]),
2212
- l(g, null, {
2218
+ l(c, null, {
2213
2219
  default: u(() => [
2214
- l(d, {
2220
+ l(p, {
2215
2221
  type: "primary",
2216
- onClick: p
2222
+ onClick: d
2217
2223
  }, {
2218
- default: u(() => m[0] || (m[0] = [
2224
+ default: u(() => g[0] || (g[0] = [
2219
2225
  E("保存")
2220
2226
  ])),
2221
2227
  _: 1
2222
2228
  }),
2223
- l(d, { onClick: n }, {
2224
- default: u(() => m[1] || (m[1] = [
2229
+ l(p, { onClick: n }, {
2230
+ default: u(() => g[1] || (g[1] = [
2225
2231
  E("退出")
2226
2232
  ])),
2227
2233
  _: 1
@@ -2246,23 +2252,24 @@ const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
2246
2252
  setup(o, {
2247
2253
  emit: t
2248
2254
  }) {
2249
- const e = M(() => ({
2250
- prod_type: window.$prodType
2251
- })), a = k(), r = t, n = (v) => {
2252
- r("click", v.report_uuid, "review");
2253
- }, A = (v) => {
2254
- r("click", v.report_uuid, "editor");
2255
- }, p = () => {
2256
- r("click", "", "editor");
2257
- }, i = (v) => {
2258
- console.log(v);
2259
- }, m = (v) => {
2255
+ const e = window.windowGlobalVar.SYSTEM_NORMAL, a = K(() => ({
2256
+ prod_type: window.$prodType,
2257
+ cg_linkage: e ? 1 : e ? void 0 : 0
2258
+ })), r = B(), n = t, A = (_) => {
2259
+ n("click", _.report_uuid, "review");
2260
+ }, d = (_) => {
2261
+ n("click", _.report_uuid, "editor");
2262
+ }, i = () => {
2263
+ n("click", "", "editor");
2264
+ }, g = (_) => {
2265
+ console.log(_);
2266
+ }, p = (_) => {
2260
2267
  window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
2261
2268
  await rt({
2262
- report_uuids: v
2263
- }), a.value.getTableList();
2269
+ report_uuids: _
2270
+ }), r.value.getTableList();
2264
2271
  });
2265
- }, d = (v) => v.report_type === 1, g = X([
2272
+ }, c = (_) => _.report_type === 1, y = J([
2266
2273
  // { type: 'selection', fixed: 'left', width: 70 },
2267
2274
  {
2268
2275
  type: "selection",
@@ -2289,61 +2296,61 @@ const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
2289
2296
  name: "操作",
2290
2297
  align: "center",
2291
2298
  fixed: "right",
2292
- render: (v) => l("div", null, [l(s("el-button"), {
2299
+ render: (_) => l("div", null, [l(s("el-button"), {
2293
2300
  link: !0,
2294
2301
  type: "primary",
2295
2302
  class: "custom-btn",
2296
2303
  icon: "View",
2297
2304
  title: "预览",
2298
- onClick: () => n(v.row)
2305
+ onClick: () => A(_.row)
2299
2306
  }, null), l(s("el-button"), {
2300
2307
  link: !0,
2301
2308
  type: "primary",
2302
2309
  class: "custom-btn",
2303
2310
  icon: "Edit",
2304
2311
  title: "编辑",
2305
- disabled: v.row.report_type === 0,
2306
- onClick: () => A(v.row)
2312
+ disabled: _.row.report_type === 0,
2313
+ onClick: () => d(_.row)
2307
2314
  }, null), l(s("el-button"), {
2308
2315
  link: !0,
2309
2316
  type: "danger",
2310
2317
  icon: "Delete",
2311
2318
  title: "删除",
2312
- disabled: v.row.report_type === 0,
2313
- onClick: () => m([v.row.report_uuid])
2319
+ disabled: _.row.report_type === 0,
2320
+ onClick: () => p([_.row.report_uuid])
2314
2321
  }, null)])
2315
2322
  }
2316
2323
  ]);
2317
- return (v, y) => {
2318
- const h = s("el-button"), b = s("TdsTable");
2319
- return c(), x("div", xo, [l(b, {
2324
+ return (_, D) => {
2325
+ const w = s("el-button"), v = s("TdsTable");
2326
+ return m(), C("div", xo, [l(v, {
2320
2327
  ref_key: "proTable",
2321
- ref: a,
2322
- columns: g,
2323
- "request-api": C(at),
2324
- "init-param": e.value,
2328
+ ref: r,
2329
+ columns: y,
2330
+ "request-api": h(at),
2331
+ "init-param": a.value,
2325
2332
  "row-key": "report_uuid",
2326
- options: v.$tableOptions(),
2333
+ options: _.$tableOptions(),
2327
2334
  "search-col": 6,
2328
- selectable: d,
2329
- onSelectionChange: i
2335
+ selectable: c,
2336
+ onSelectionChange: g
2330
2337
  }, {
2331
- tableHeader: u((w) => [l(h, {
2338
+ tableHeader: u((f) => [l(w, {
2332
2339
  plain: "",
2333
2340
  type: "primary",
2334
2341
  class: "custom-btn",
2335
2342
  icon: "Plus",
2336
- onClick: p
2343
+ onClick: i
2337
2344
  }, {
2338
- default: u(() => y[0] || (y[0] = [E("新建")])),
2345
+ default: u(() => D[0] || (D[0] = [E("新建")])),
2339
2346
  _: 1
2340
- }), l(h, {
2347
+ }), l(w, {
2341
2348
  plain: "",
2342
2349
  type: "danger",
2343
2350
  icon: "Delete",
2344
- onClick: (f) => m(w.selectedListIds)
2351
+ onClick: (b) => p(f.selectedListIds)
2345
2352
  }, {
2346
- default: u(() => y[1] || (y[1] = [E("删除")])),
2353
+ default: u(() => D[1] || (D[1] = [E("删除")])),
2347
2354
  _: 2
2348
2355
  }, 1032, ["onClick"])]),
2349
2356
  _: 1
@@ -2355,23 +2362,23 @@ const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */ L({
2355
2362
  name: "TCReport",
2356
2363
  __name: "index",
2357
2364
  setup(o) {
2358
- const t = k(), e = k("table"), a = (r, n) => {
2365
+ const t = B(), e = B("table"), a = (r, n) => {
2359
2366
  t.value = r, e.value = n;
2360
2367
  };
2361
- return (r, n) => (c(), x("div", Bo, [
2368
+ return (r, n) => (m(), C("div", Bo, [
2362
2369
  l(He, { name: "slide-fade" }, {
2363
2370
  default: u(() => [
2364
- e.value === "table" ? (c(), V(To, {
2371
+ e.value === "table" ? (m(), V(To, {
2365
2372
  key: 0,
2366
2373
  onClick: a
2367
2374
  })) : S("", !0),
2368
- e.value === "review" ? (c(), V(Ue, {
2375
+ e.value === "review" ? (m(), V(Ue, {
2369
2376
  key: 1,
2370
2377
  "report-id": t.value,
2371
2378
  modelValue: e.value,
2372
2379
  "onUpdate:modelValue": n[0] || (n[0] = (A) => e.value = A)
2373
2380
  }, null, 8, ["report-id", "modelValue"])) : S("", !0),
2374
- e.value === "editor" ? (c(), V(Co, {
2381
+ e.value === "editor" ? (m(), V(Co, {
2375
2382
  key: 2,
2376
2383
  "report-id": t.value,
2377
2384
  modelValue: e.value,
@@ -2383,7 +2390,7 @@ const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */ L({
2383
2390
  ]));
2384
2391
  }
2385
2392
  });
2386
- const Z = (o, t) => {
2393
+ const W = (o, t) => {
2387
2394
  if (o.install = (e) => {
2388
2395
  for (const a of [o, ...Object.values(t ?? {})])
2389
2396
  e.component(a.name, a);
@@ -2391,7 +2398,7 @@ const Z = (o, t) => {
2391
2398
  for (const [e, a] of Object.entries(t))
2392
2399
  o[e] = a;
2393
2400
  return o;
2394
- }, Do = Z(ko), Vo = [
2401
+ }, Do = W(ko), Vo = [
2395
2402
  {
2396
2403
  label: "正文",
2397
2404
  value: "p"
@@ -2447,47 +2454,48 @@ const Z = (o, t) => {
2447
2454
  name: "TCModule",
2448
2455
  __name: "index",
2449
2456
  setup(o) {
2450
- const t = k(), e = k(), a = k({}), r = k(""), n = X({
2451
- prod_type: window.$prodType
2457
+ const t = B(), e = B(), a = B({}), r = B(""), n = window.windowGlobalVar.SYSTEM_NORMAL, A = J({
2458
+ prod_type: window.$prodType,
2459
+ cg_linkage: n ? 1 : n ? void 0 : 0
2452
2460
  });
2453
- function A(h) {
2461
+ function d(w) {
2454
2462
  window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
2455
2463
  await st({
2456
- rp_item_uuids: h
2464
+ rp_item_uuids: w
2457
2465
  }), t.value.getTableList();
2458
2466
  });
2459
2467
  }
2460
- function p(h) {
2461
- a.value = h ? Object.assign({}, h) : {
2468
+ function i(w) {
2469
+ a.value = w ? Object.assign({}, w) : {
2462
2470
  table_key_relation: [{
2463
2471
  name: "",
2464
2472
  key: "",
2465
2473
  id: (/* @__PURE__ */ new Date()).getTime()
2466
2474
  }]
2467
- }, r.value = h ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2475
+ }, r.value = w ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2468
2476
  }
2469
- async function i(h) {
2470
- const b = Object.assign({}, h);
2471
- b.chart_type !== "report-table" && b.chart_type !== "report-describe" && delete b.table_key_relation, b.chart_type !== "p" && (b.p_text = ""), b.rp_item_uuid ? await ut({
2472
- rp_item_uuid: b.rp_item_uuid,
2473
- data: b
2474
- }) : (b.prod_type = window.$prodType, await it({
2475
- data: b
2477
+ async function g(w) {
2478
+ const v = Object.assign({}, w);
2479
+ v.chart_type !== "report-table" && v.chart_type !== "report-describe" && delete v.table_key_relation, v.chart_type !== "p" && (v.p_text = ""), v.rp_item_uuid ? await ut({
2480
+ rp_item_uuid: v.rp_item_uuid,
2481
+ data: v
2482
+ }) : (v.prod_type = window.$prodType, await it({
2483
+ data: v
2476
2484
  })), t.value.getTableList(), e.value.close();
2477
2485
  }
2478
- const m = (h) => {
2479
- a.value.table_key_relation.splice(h, 1);
2480
- }, d = () => {
2486
+ const p = (w) => {
2487
+ a.value.table_key_relation.splice(w, 1);
2488
+ }, c = () => {
2481
2489
  a.value.table_key_relation.push({
2482
2490
  name: "",
2483
2491
  key: "",
2484
2492
  id: (/* @__PURE__ */ new Date()).getTime()
2485
2493
  });
2486
- }, g = (h, b, w) => {
2487
- delete h.message, b.forEach((f) => {
2488
- f.name ? f.key || w(new Error("请填写表头名称和KEY")) : w(new Error("请填写表头名称和KEY"));
2489
- }), w();
2490
- }, v = (h) => h.item_type === 1, y = X([{
2494
+ }, y = (w, v, f) => {
2495
+ delete w.message, v.forEach((b) => {
2496
+ b.name ? b.key || f(new Error("请填写表头名称和KEY")) : f(new Error("请填写表头名称和KEY"));
2497
+ }), f();
2498
+ }, _ = (w) => w.item_type === 1, D = J([{
2491
2499
  type: "selection",
2492
2500
  width: 60,
2493
2501
  field: "rp_item_uuid",
@@ -2543,7 +2551,7 @@ const Z = (o, t) => {
2543
2551
  hide: !0,
2544
2552
  show: {
2545
2553
  render: () => {
2546
- var h;
2554
+ var w;
2547
2555
  return l("div", {
2548
2556
  style: "width:80%"
2549
2557
  }, [l("div", {
@@ -2553,16 +2561,16 @@ const Z = (o, t) => {
2553
2561
  style: "width:50%"
2554
2562
  }, [E("表头名称")]), l("span", {
2555
2563
  style: "width:50%"
2556
- }, [E("KEY")])]), (h = a.value.table_key_relation) == null ? void 0 : h.map((b, w) => l("div", {
2564
+ }, [E("KEY")])]), (w = a.value.table_key_relation) == null ? void 0 : w.map((v, f) => l("div", {
2557
2565
  class: "flex items-center space-between form-m0 w-100%",
2558
2566
  style: "gap:15px;margin-bottom:10px;",
2559
- key: w
2567
+ key: f
2560
2568
  }, [l(s("el-form-item"), {
2561
2569
  style: "width:50%"
2562
2570
  }, {
2563
2571
  default: () => [l(s("el-input"), {
2564
- modelValue: b.name,
2565
- "onUpdate:modelValue": (f) => b.name = f,
2572
+ modelValue: v.name,
2573
+ "onUpdate:modelValue": (b) => v.name = b,
2566
2574
  class: "",
2567
2575
  placeholder: "表头"
2568
2576
  }, null)]
@@ -2570,21 +2578,21 @@ const Z = (o, t) => {
2570
2578
  style: "width:50%"
2571
2579
  }, {
2572
2580
  default: () => [l(s("el-input"), {
2573
- modelValue: b.key,
2574
- "onUpdate:modelValue": (f) => b.key = f,
2581
+ modelValue: v.key,
2582
+ "onUpdate:modelValue": (b) => v.key = b,
2575
2583
  class: "",
2576
2584
  placeholder: "KEY"
2577
2585
  }, null)]
2578
2586
  }), a.value.table_key_relation.length > 1 && l("div", {
2579
2587
  class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
2580
2588
  }, [l(s("el-icon"), {
2581
- onClick: () => m(w)
2589
+ onClick: () => p(f)
2582
2590
  }, {
2583
2591
  default: () => [l(We, null, null)]
2584
2592
  })])])), l(s("el-button"), {
2585
2593
  class: "report-btn ",
2586
2594
  icon: "Plus",
2587
- onClick: () => d()
2595
+ onClick: () => c()
2588
2596
  }, {
2589
2597
  default: () => [E("新增表头与KEY")]
2590
2598
  })]);
@@ -2595,7 +2603,7 @@ const Z = (o, t) => {
2595
2603
  },
2596
2604
  rules: [{
2597
2605
  required: !0,
2598
- validator: g,
2606
+ validator: y,
2599
2607
  trigger: "blur"
2600
2608
  }]
2601
2609
  }, {
@@ -2621,69 +2629,69 @@ const Z = (o, t) => {
2621
2629
  name: "操作",
2622
2630
  align: "center",
2623
2631
  fixed: "right",
2624
- render: (h) => l("div", null, [l(s("el-button"), {
2632
+ render: (w) => l("div", null, [l(s("el-button"), {
2625
2633
  link: !0,
2626
2634
  type: "primary",
2627
2635
  class: "custom-btn",
2628
2636
  icon: "Edit",
2629
2637
  title: "编辑",
2630
- disabled: h.row.item_type === 0,
2631
- onClick: () => p(h.row)
2638
+ disabled: w.row.item_type === 0,
2639
+ onClick: () => i(w.row)
2632
2640
  }, null), l(s("el-button"), {
2633
2641
  link: !0,
2634
2642
  type: "danger",
2635
2643
  icon: "Delete",
2636
2644
  title: "删除",
2637
- disabled: h.row.item_type === 0,
2638
- onClick: () => A([h.row.rp_item_uuid])
2645
+ disabled: w.row.item_type === 0,
2646
+ onClick: () => d([w.row.rp_item_uuid])
2639
2647
  }, null)])
2640
2648
  }]);
2641
- return (h, b) => {
2642
- const w = s("el-button"), f = s("TdsTable"), _ = s("TdsForm");
2643
- return c(), x("div", Eo, [l(f, {
2649
+ return (w, v) => {
2650
+ const f = s("el-button"), b = s("TdsTable"), Q = s("TdsForm");
2651
+ return m(), C("div", Eo, [l(b, {
2644
2652
  ref_key: "refTdsTable",
2645
2653
  ref: t,
2646
- columns: y,
2647
- "request-api": C(At),
2648
- "init-param": n,
2654
+ columns: D,
2655
+ "request-api": h(At),
2656
+ "init-param": A,
2649
2657
  "row-key": "rp_item_uuid",
2650
- options: h.$tableOptions(),
2651
- selectable: v,
2658
+ options: w.$tableOptions(),
2659
+ selectable: _,
2652
2660
  "search-col": 6
2653
2661
  }, {
2654
- tableHeader: u((Q) => [l(w, {
2662
+ tableHeader: u((k) => [l(f, {
2655
2663
  plain: "",
2656
2664
  type: "primary",
2657
2665
  class: "custom-btn",
2658
2666
  icon: "Plus",
2659
- onClick: b[0] || (b[0] = (D) => p())
2667
+ onClick: v[0] || (v[0] = (z) => i())
2660
2668
  }, {
2661
- default: u(() => b[1] || (b[1] = [E("新建")])),
2669
+ default: u(() => v[1] || (v[1] = [E("新建")])),
2662
2670
  _: 1
2663
- }), l(w, {
2671
+ }), l(f, {
2664
2672
  plain: "",
2665
2673
  type: "danger",
2666
2674
  icon: "Delete",
2667
- onClick: (D) => A(Q.selectedListIds)
2675
+ onClick: (z) => d(k.selectedListIds)
2668
2676
  }, {
2669
- default: u(() => b[2] || (b[2] = [E("删除")])),
2677
+ default: u(() => v[2] || (v[2] = [E("删除")])),
2670
2678
  _: 2
2671
2679
  }, 1032, ["onClick"])]),
2672
2680
  _: 1
2673
- }, 8, ["columns", "request-api", "init-param", "options"]), l(_, we({
2681
+ }, 8, ["columns", "request-api", "init-param", "options"]), l(Q, we({
2674
2682
  ref_key: "refTdsForm",
2675
2683
  ref: e
2676
- }, h.$formBindProps({
2684
+ }, w.$formBindProps({
2677
2685
  title: r.value,
2678
2686
  form: a.value,
2679
- columns: y
2687
+ columns: D
2680
2688
  }), {
2681
- onSubmit: i
2689
+ onSubmit: g
2682
2690
  }), null, 16)]);
2683
2691
  };
2684
2692
  }
2685
2693
  });
2686
- const Ro = Z(Uo), So = {
2694
+ const Ro = W(Uo), So = {
2687
2695
  class: "table-box"
2688
2696
  };
2689
2697
  function me(o) {
@@ -2693,44 +2701,44 @@ const Oo = /* @__PURE__ */ L({
2693
2701
  name: "TCSubscribe",
2694
2702
  __name: "index",
2695
2703
  setup(o) {
2696
- const t = k(), e = k(), {
2704
+ const t = B(), e = B(), {
2697
2705
  $t: a,
2698
2706
  $messageBox: r
2699
- } = window, n = k(""), A = k({
2707
+ } = window, n = B(""), A = B({
2700
2708
  receiver: []
2701
2709
  });
2702
- function p(f) {
2710
+ function d(f) {
2703
2711
  r(f, "subscript_name", a("button.delete"), "error").then(async () => {
2704
2712
  await mt({
2705
- subscript_uuids: f.map((_) => _.subscript_uuid)
2713
+ subscript_uuids: f.map((b) => b.subscript_uuid)
2706
2714
  }), t.value.getTableList();
2707
2715
  });
2708
2716
  }
2709
2717
  function i() {
2710
- p(t.value.selectedList);
2718
+ d(t.value.selectedList);
2711
2719
  }
2712
- const m = (f) => {
2720
+ const g = (f) => {
2713
2721
  A.value = f ? Object.assign({}, f) : {
2714
2722
  receiver: []
2715
2723
  }, n.value = f ? "编辑报表订阅" : "新增报表订阅", e.value.open();
2716
2724
  };
2717
- async function d(f) {
2718
- const _ = Object.assign({}, f);
2719
- _.subscript_uuid ? await ct({
2720
- subscript_uuid: _.subscript_uuid,
2721
- data: _
2722
- }) : await dt({
2723
- data: _
2725
+ async function p(f) {
2726
+ const b = Object.assign({}, f);
2727
+ b.subscript_uuid ? await ct({
2728
+ subscript_uuid: b.subscript_uuid,
2729
+ data: b
2730
+ }) : await pt({
2731
+ data: b
2724
2732
  }), t.value.getTableList(), e.value.close();
2725
2733
  }
2726
- function g(f, _, Q) {
2727
- if (!_ || _.length === 0)
2734
+ function c(f, b, Q) {
2735
+ if (!b || b.length === 0)
2728
2736
  return Q(new Error("请输入收件人"));
2729
2737
  Q();
2730
2738
  }
2731
- const v = (f, _) => {
2732
- f.target.value && A.value[_].push(f.target.value);
2733
- }, y = [{
2739
+ const y = (f, b) => {
2740
+ f.target.value && A.value[b].push(f.target.value);
2741
+ }, _ = [{
2734
2742
  label: "周一",
2735
2743
  value: 1
2736
2744
  }, {
@@ -2751,7 +2759,7 @@ const Oo = /* @__PURE__ */ L({
2751
2759
  }, {
2752
2760
  label: "周日",
2753
2761
  value: 0
2754
- }], h = [{
2762
+ }], D = [{
2755
2763
  label: "每天",
2756
2764
  value: 0
2757
2765
  }, {
@@ -2760,7 +2768,7 @@ const Oo = /* @__PURE__ */ L({
2760
2768
  }, {
2761
2769
  label: "每月",
2762
2770
  value: 2
2763
- }], b = [], w = X([{
2771
+ }], w = [], v = J([{
2764
2772
  type: "selection",
2765
2773
  align: "center",
2766
2774
  field: "subscript_uuid",
@@ -2838,21 +2846,21 @@ const Oo = /* @__PURE__ */ L({
2838
2846
  key: window.$prodType
2839
2847
  }
2840
2848
  },
2841
- render: (f) => t.value.enumMap.get("dbsId").filter((D) => f.row.dbsId.indexOf(D.id) > -1).map((D) => l(s("el-tag"), {
2849
+ render: (f) => t.value.enumMap.get("dbsId").filter((k) => f.row.dbsId.indexOf(k.id) > -1).map((k) => l(s("el-tag"), {
2842
2850
  class: "mr-10px",
2843
2851
  type: "info"
2844
2852
  }, {
2845
- default: () => [D.policy_name]
2853
+ default: () => [k.policy_name]
2846
2854
  }))
2847
2855
  }, {
2848
2856
  field: "receiver_email",
2849
2857
  name: "收件人",
2850
2858
  width: 300,
2851
- render: (f) => l(O, null, [f.row.receiver_email.map((_) => l(s("el-tag"), {
2859
+ render: (f) => l(O, null, [f.row.receiver_email.map((b) => l(s("el-tag"), {
2852
2860
  class: "mr-10px",
2853
2861
  type: "info"
2854
- }, me(_) ? _ : {
2855
- default: () => [_]
2862
+ }, me(b) ? b : {
2863
+ default: () => [b]
2856
2864
  }))]),
2857
2865
  show: {
2858
2866
  type: "input",
@@ -2861,17 +2869,17 @@ const Oo = /* @__PURE__ */ L({
2861
2869
  return l(O, null, [l(s("el-select"), {
2862
2870
  class: "right-select",
2863
2871
  modelValue: A.value.receiver_email,
2864
- "onUpdate:modelValue": (_) => A.value.receiver_email = _,
2872
+ "onUpdate:modelValue": (b) => A.value.receiver_email = b,
2865
2873
  placeholder: "请输入",
2866
2874
  multiple: !0,
2867
2875
  filterable: !0,
2868
2876
  "allow-create": !0,
2869
2877
  "default-first-option": !0,
2870
2878
  "reserve-keyword": !1,
2871
- onBlur: (_) => v(_, "receiver_email")
2872
- }, me(f = b.map((_) => l(s("el-option"), {
2873
- label: _.label,
2874
- value: _.value
2879
+ onBlur: (b) => y(b, "receiver_email")
2880
+ }, me(f = w.map((b) => l(s("el-option"), {
2881
+ label: b.label,
2882
+ value: b.value
2875
2883
  }, null))) ? f : {
2876
2884
  default: () => [f]
2877
2885
  }), l("p", {
@@ -2881,7 +2889,7 @@ const Oo = /* @__PURE__ */ L({
2881
2889
  },
2882
2890
  rules: [{
2883
2891
  required: !0,
2884
- validator: g,
2892
+ validator: c,
2885
2893
  type: "any",
2886
2894
  trigger: "change"
2887
2895
  }]
@@ -2892,7 +2900,7 @@ const Oo = /* @__PURE__ */ L({
2892
2900
  field: "loop_type",
2893
2901
  name: "发送周期",
2894
2902
  hide: !0,
2895
- enum: h,
2903
+ enum: D,
2896
2904
  show: {
2897
2905
  dataType: "number",
2898
2906
  type: "select",
@@ -2915,9 +2923,9 @@ const Oo = /* @__PURE__ */ L({
2915
2923
  field: "day",
2916
2924
  name: "日",
2917
2925
  hide: !0,
2918
- enum: [...Array(28)].map((f, _) => ({
2919
- label: _ + 1 + "",
2920
- value: _ + 1
2926
+ enum: [...Array(28)].map((f, b) => ({
2927
+ label: b + 1 + "",
2928
+ value: b + 1
2921
2929
  })),
2922
2930
  show: {
2923
2931
  type: "select"
@@ -2930,7 +2938,7 @@ const Oo = /* @__PURE__ */ L({
2930
2938
  field: "weekday",
2931
2939
  name: "星期",
2932
2940
  hide: !0,
2933
- enum: y,
2941
+ enum: _,
2934
2942
  show: {
2935
2943
  type: "select"
2936
2944
  },
@@ -2942,9 +2950,9 @@ const Oo = /* @__PURE__ */ L({
2942
2950
  field: "hour",
2943
2951
  name: "小时",
2944
2952
  hide: !0,
2945
- enum: [...Array(24)].map((f, _) => ({
2946
- label: _ + "时",
2947
- value: _
2953
+ enum: [...Array(24)].map((f, b) => ({
2954
+ label: b + "时",
2955
+ value: b
2948
2956
  })),
2949
2957
  show: {
2950
2958
  type: "select"
@@ -2957,9 +2965,9 @@ const Oo = /* @__PURE__ */ L({
2957
2965
  field: "minute",
2958
2966
  name: "分钟",
2959
2967
  hide: !0,
2960
- enum: [...Array(60)].map((f, _) => ({
2961
- label: _ + "分",
2962
- value: _
2968
+ enum: [...Array(60)].map((f, b) => ({
2969
+ label: b + "分",
2970
+ value: b
2963
2971
  })),
2964
2972
  show: {
2965
2973
  type: "select"
@@ -2973,13 +2981,13 @@ const Oo = /* @__PURE__ */ L({
2973
2981
  name: "启用状态",
2974
2982
  render: (f) => l(s("el-switch"), {
2975
2983
  modelValue: f.row.enable_status,
2976
- "onUpdate:modelValue": (_) => f.row.enable_status = _,
2984
+ "onUpdate:modelValue": (b) => f.row.enable_status = b,
2977
2985
  "active-value": 1,
2978
2986
  "inactive-value": 0,
2979
- onChange: (_) => {
2987
+ onChange: (b) => {
2980
2988
  ft({
2981
2989
  subscript_uuid: f.row.subscript_uuid,
2982
- enable_status: _
2990
+ enable_status: b
2983
2991
  }), t.value.getTableList();
2984
2992
  }
2985
2993
  }, null)
@@ -2995,58 +3003,58 @@ const Oo = /* @__PURE__ */ L({
2995
3003
  icon: "Edit",
2996
3004
  title: a("button.edit"),
2997
3005
  class: "custom-btn",
2998
- onClick: () => m(f.row)
3006
+ onClick: () => g(f.row)
2999
3007
  }, null), l(s("el-button"), {
3000
3008
  link: !0,
3001
3009
  type: "danger",
3002
3010
  icon: "Delete",
3003
3011
  title: a("button.delete"),
3004
- onClick: () => p([f.row])
3012
+ onClick: () => d([f.row])
3005
3013
  }, null)])
3006
3014
  }]);
3007
- return (f, _) => {
3015
+ return (f, b) => {
3008
3016
  const Q = s("el-button");
3009
- return c(), x("div", So, [l(C(ye), {
3017
+ return m(), C("div", So, [l(h(ye), {
3010
3018
  ref_key: "refTdsTable",
3011
3019
  ref: t,
3012
3020
  "row-key": "subscript_uuid",
3013
- "request-api": C(pt),
3014
- columns: w,
3021
+ "request-api": h(dt),
3022
+ columns: v,
3015
3023
  options: f.$tableOptions()
3016
3024
  }, {
3017
- tableHeader: u((D) => [l(Q, {
3025
+ tableHeader: u((k) => [l(Q, {
3018
3026
  type: "primary",
3019
3027
  icon: "Plus",
3020
3028
  class: "custom-btn",
3021
3029
  plain: "",
3022
- onClick: _[0] || (_[0] = (W) => m())
3030
+ onClick: b[0] || (b[0] = (z) => g())
3023
3031
  }, {
3024
- default: u(() => [E(K(C(a)("button.add")), 1)]),
3032
+ default: u(() => [E(M(h(a)("button.add")), 1)]),
3025
3033
  _: 1
3026
3034
  }), l(Q, {
3027
3035
  type: "danger",
3028
3036
  icon: "Delete",
3029
3037
  plain: "",
3030
3038
  onClick: i,
3031
- disabled: !D.selectedListIds.length
3039
+ disabled: !k.selectedListIds.length
3032
3040
  }, {
3033
- default: u(() => [E(K(C(a)("button.delete")), 1)]),
3041
+ default: u(() => [E(M(h(a)("button.delete")), 1)]),
3034
3042
  _: 2
3035
3043
  }, 1032, ["disabled"])]),
3036
3044
  _: 1
3037
- }, 8, ["request-api", "columns", "options"]), l(C($e), we({
3045
+ }, 8, ["request-api", "columns", "options"]), l(h($e), we({
3038
3046
  ref_key: "refTdsForm",
3039
3047
  ref: e
3040
3048
  }, f.$formBindProps({
3041
3049
  title: n.value,
3042
3050
  form: A.value,
3043
- columns: w
3051
+ columns: v
3044
3052
  }), {
3045
- onSubmit: d
3053
+ onSubmit: p
3046
3054
  }), null, 16)]);
3047
3055
  };
3048
3056
  }
3049
- }), Po = Z(Oo), Qo = {
3057
+ }), Po = W(Oo), Qo = {
3050
3058
  class: "main-wrapper"
3051
3059
  }, Io = {
3052
3060
  class: "el-dropdown-link"
@@ -3054,70 +3062,71 @@ const Oo = /* @__PURE__ */ L({
3054
3062
  name: "TCBuildin",
3055
3063
  __name: "index",
3056
3064
  setup(o) {
3057
- const t = k({}), e = k("1"), a = k("");
3065
+ const t = B({}), e = B("1"), a = B("");
3058
3066
  async function r() {
3059
- const p = await bt({
3060
- prod_type: window.$prodType
3067
+ const d = window.windowGlobalVar.SYSTEM_NORMAL, i = await bt({
3068
+ prod_type: window.$prodType,
3069
+ cg_linkage: d ? 1 : d ? void 0 : 0
3061
3070
  });
3062
- e.value = p.data[0].report_uuid;
3063
- const i = {};
3064
- p.data.forEach((m) => {
3065
- const d = m.report_category || m.report_uuid;
3066
- i[d] || (i[d] = []), i[d].push(m);
3067
- }), t.value = i;
3071
+ e.value = i.data[0].report_uuid;
3072
+ const g = {};
3073
+ i.data.forEach((p) => {
3074
+ const c = p.report_category || p.report_uuid;
3075
+ g[c] || (g[c] = []), g[c].push(p);
3076
+ }), t.value = g;
3068
3077
  }
3069
- const n = (p, i) => {
3070
- e.value = i, a.value = p;
3078
+ const n = (d, i) => {
3079
+ e.value = i, a.value = d;
3071
3080
  }, A = () => {
3072
3081
  a.value = "";
3073
3082
  };
3074
- return r(), (p, i) => {
3075
- const m = s("arrow-down"), d = s("el-icon"), g = s("el-dropdown-item"), v = s("el-dropdown-menu"), y = s("el-dropdown"), h = s("el-tab-pane"), b = s("el-tabs");
3076
- return c(), x("div", Qo, [l(b, {
3083
+ return r(), (d, i) => {
3084
+ const g = s("arrow-down"), p = s("el-icon"), c = s("el-dropdown-item"), y = s("el-dropdown-menu"), _ = s("el-dropdown"), D = s("el-tab-pane"), w = s("el-tabs");
3085
+ return m(), C("div", Qo, [l(w, {
3077
3086
  modelValue: e.value,
3078
- "onUpdate:modelValue": i[0] || (i[0] = (w) => e.value = w),
3087
+ "onUpdate:modelValue": i[0] || (i[0] = (v) => e.value = v),
3079
3088
  class: "report-tabs",
3080
3089
  style: {
3081
3090
  height: "100%"
3082
3091
  },
3083
3092
  onTabClick: A
3084
3093
  }, {
3085
- default: u(() => [(c(!0), x(O, null, I(t.value, (w, f) => (c(), V(h, {
3094
+ default: u(() => [(m(!0), C(O, null, I(t.value, (v, f) => (m(), V(D, {
3086
3095
  style: {
3087
3096
  height: "100%"
3088
3097
  },
3089
3098
  key: f,
3090
- name: w[0].report_uuid
3091
- }, ze({
3092
- default: u(() => [e.value === w[0].report_uuid ? (c(), V(Ue, {
3099
+ name: v[0].report_uuid
3100
+ }, Ne({
3101
+ default: u(() => [e.value === v[0].report_uuid ? (m(), V(Ue, {
3093
3102
  key: 0,
3094
3103
  "report-id": a.value || e.value
3095
3104
  }, null, 8, ["report-id"])) : S("", !0)]),
3096
3105
  _: 2
3097
- }, [w.length === 1 ? {
3106
+ }, [v.length === 1 ? {
3098
3107
  name: "label",
3099
- fn: u(() => [E(K(w[0].report_name), 1)]),
3108
+ fn: u(() => [E(M(v[0].report_name), 1)]),
3100
3109
  key: "0"
3101
3110
  } : {
3102
3111
  name: "label",
3103
- fn: u(() => [l(y, {
3104
- onCommand: (_) => n(_, w[0].report_uuid)
3112
+ fn: u(() => [l(_, {
3113
+ onCommand: (b) => n(b, v[0].report_uuid)
3105
3114
  }, {
3106
- dropdown: u(() => [l(v, null, {
3107
- default: u(() => [(c(!0), x(O, null, I(w, (_) => (c(), V(g, {
3108
- key: _.report_uuid,
3115
+ dropdown: u(() => [l(y, null, {
3116
+ default: u(() => [(m(!0), C(O, null, I(v, (b) => (m(), V(c, {
3117
+ key: b.report_uuid,
3109
3118
  class: "mt-10px",
3110
- command: _.report_uuid
3119
+ command: b.report_uuid
3111
3120
  }, {
3112
- default: u(() => [E(K(_.report_name), 1)]),
3121
+ default: u(() => [E(M(b.report_name), 1)]),
3113
3122
  _: 2
3114
3123
  }, 1032, ["command"]))), 128))]),
3115
3124
  _: 2
3116
3125
  }, 1024)]),
3117
- default: u(() => [T("span", Io, [E(K(f) + " ", 1), l(d, {
3126
+ default: u(() => [x("span", Io, [E(M(f) + " ", 1), l(p, {
3118
3127
  class: "el-icon--right"
3119
3128
  }, {
3120
- default: u(() => [l(m)]),
3129
+ default: u(() => [l(g)]),
3121
3130
  _: 1
3122
3131
  })])]),
3123
3132
  _: 2
@@ -3129,41 +3138,41 @@ const Oo = /* @__PURE__ */ L({
3129
3138
  };
3130
3139
  }
3131
3140
  });
3132
- const Ko = /* @__PURE__ */ j(Fo, [["__scopeId", "data-v-85ec73b7"]]), Mo = Z(Ko);
3141
+ const Mo = /* @__PURE__ */ Z(Fo, [["__scopeId", "data-v-99a69fda"]]), Ko = W(Mo);
3133
3142
  function qo(o, t, e) {
3134
3143
  const a = atob(o), r = [];
3135
3144
  for (let i = 0; i < a.length; i += 512) {
3136
- const m = a.slice(i, i + 512), d = new Array(m.length);
3137
- for (let v = 0; v < m.length; v++)
3138
- d[v] = m.charCodeAt(v);
3139
- const g = new Uint8Array(d);
3140
- r.push(g);
3145
+ const g = a.slice(i, i + 512), p = new Array(g.length);
3146
+ for (let y = 0; y < g.length; y++)
3147
+ p[y] = g.charCodeAt(y);
3148
+ const c = new Uint8Array(p);
3149
+ r.push(c);
3141
3150
  }
3142
- const n = new Blob(r, { type: e }), A = URL.createObjectURL(n), p = document.createElement("a");
3143
- p.href = A, p.download = t, document.body.appendChild(p), p.click(), setTimeout(() => {
3144
- document.body.removeChild(p), URL.revokeObjectURL(A);
3151
+ const n = new Blob(r, { type: e }), A = URL.createObjectURL(n), d = document.createElement("a");
3152
+ d.href = A, d.download = t, document.body.appendChild(d), d.click(), setTimeout(() => {
3153
+ document.body.removeChild(d), URL.revokeObjectURL(A);
3145
3154
  }, 0);
3146
3155
  }
3147
3156
  const Ho = {
3148
3157
  class: "table-box"
3149
- }, zo = /* @__PURE__ */ L({
3158
+ }, No = /* @__PURE__ */ L({
3150
3159
  name: "TCDownload",
3151
3160
  __name: "index",
3152
3161
  setup(o) {
3153
- const t = X({
3162
+ const t = J({
3154
3163
  prod_type: window.$prodType
3155
- }), e = k(), a = async (A) => {
3156
- const p = await ht({
3164
+ }), e = B(), a = async (A) => {
3165
+ const d = await ht({
3157
3166
  export_uuid: A.export_uuid
3158
3167
  }), i = A.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
3159
- qo(p.file_data, p.file_name, i), e.value.getTableList();
3168
+ qo(d.file_data, d.file_name, i), e.value.getTableList();
3160
3169
  }, r = (A) => {
3161
3170
  window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
3162
3171
  await Ct({
3163
3172
  export_uuids: A
3164
3173
  }), e.value.getTableList();
3165
3174
  });
3166
- }, n = X([{
3175
+ }, n = J([{
3167
3176
  type: "selection",
3168
3177
  width: 80
3169
3178
  }, {
@@ -3227,17 +3236,17 @@ const Ho = {
3227
3236
  type: "danger",
3228
3237
  icon: "Delete",
3229
3238
  title: "删除",
3230
- onClick: () => r([A.row.report_uuid])
3239
+ onClick: () => r([A.row.export_uuid])
3231
3240
  }, null)])
3232
3241
  }]);
3233
- return (A, p) => {
3242
+ return (A, d) => {
3234
3243
  const i = s("el-button");
3235
- return c(), x("div", Ho, [l(C(ye), {
3244
+ return m(), C("div", Ho, [l(h(ye), {
3236
3245
  ref_key: "proTable",
3237
3246
  ref: e,
3238
3247
  columns: n,
3239
- "request-api": C(yt),
3240
- "row-key": "report_uuid",
3248
+ "request-api": h(yt),
3249
+ "row-key": "export_uuid",
3241
3250
  "init-param": t,
3242
3251
  options: A.$tableOptions({
3243
3252
  refresh: {
@@ -3246,25 +3255,25 @@ const Ho = {
3246
3255
  }),
3247
3256
  "search-col": 6
3248
3257
  }, {
3249
- tableHeader: u((m) => [l(i, {
3258
+ tableHeader: u((g) => [l(i, {
3250
3259
  plain: "",
3251
3260
  type: "danger",
3252
3261
  icon: "Delete",
3253
- onClick: (d) => r(m.selectedListIds)
3262
+ onClick: (p) => r(g.selectedListIds)
3254
3263
  }, {
3255
- default: u(() => p[0] || (p[0] = [E("删除")])),
3264
+ default: u(() => d[0] || (d[0] = [E("删除")])),
3256
3265
  _: 2
3257
3266
  }, 1032, ["onClick"])]),
3258
3267
  _: 1
3259
3268
  }, 8, ["columns", "request-api", "init-param", "options"])]);
3260
3269
  };
3261
3270
  }
3262
- }), No = Z(zo), Yo = {
3271
+ }), zo = W(No), Yo = {
3263
3272
  TCReport: Do,
3264
3273
  TCModule: Ro,
3265
3274
  TCSubscribe: Po,
3266
- TCBuildin: Mo,
3267
- TCDownload: No
3275
+ TCBuildin: Ko,
3276
+ TCDownload: zo
3268
3277
  }, el = {
3269
3278
  install(o, t) {
3270
3279
  Object.entries(Yo).forEach(([e, a]) => {
@@ -3273,8 +3282,8 @@ const Ho = {
3273
3282
  }
3274
3283
  };
3275
3284
  export {
3276
- Mo as TCBuildin,
3277
- No as TCDownload,
3285
+ Ko as TCBuildin,
3286
+ zo as TCDownload,
3278
3287
  Ro as TCModule,
3279
3288
  Do as TCReport,
3280
3289
  Po as TCSubscribe,