@topdatasec/report 1.1.19 → 1.1.20

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,12 +1,12 @@
1
- import { defineComponent as L, computed as Q, resolveComponent as s, openBlock as c, createElementBlock as x, createElementVNode as T, Fragment as S, renderList as P, normalizeClass as N, createBlock as k, createCommentVNode as R, withDirectives as le, createTextVNode as E, toDisplayString as M, unref as y, ref as V, createVNode as l, withCtx as u, onMounted as ne, normalizeProps as pe, guardReactiveProps as de, isVNode as ae, normalizeStyle as Ee, mergeModels as ce, useModel as me, resolveDirective as fe, resolveDynamicComponent as G, isRef as Ue, withModifiers as Re, watch as Se, shallowRef as Oe, onBeforeUnmount as Pe, onUnmounted as Qe, reactive as X, TransitionGroup as Ie, mergeProps as ve } from "vue";
1
+ import { defineComponent as L, computed as I, resolveComponent as s, openBlock as c, createElementBlock as x, createElementVNode as T, Fragment as S, renderList as P, normalizeClass as N, createBlock as k, createCommentVNode as R, withDirectives as le, createTextVNode as E, toDisplayString as q, unref as w, ref as V, createVNode as l, withCtx as u, onMounted as ne, normalizeProps as pe, guardReactiveProps as de, isVNode as ae, normalizeStyle as Ee, mergeModels as ce, useModel as me, resolveDirective as fe, resolveDynamicComponent as G, isRef as Ue, withModifiers as Re, watch as Se, shallowRef as Oe, onBeforeUnmount as Pe, onUnmounted as Qe, reactive as X, TransitionGroup as Ie, mergeProps as ve } from "vue";
2
2
  import { defineStore as Fe, storeToRefs as Ke } from "pinia";
3
3
  import { ElNotification as Me, ElMessage as qe } from "element-plus";
4
4
  import { VueDraggable as He } from "vue-draggable-plus";
5
5
  import { Toolbar as ze, Editor as Ne } from "@wangeditor/editor-for-vue";
6
6
  import { CircleClose as Ye } from "@element-plus/icons-vue";
7
7
  import { TdsTable as Ge, TdsForm as Xe } from "topdatasec-ui";
8
- const H = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), J = (o) => JSON.parse(JSON.stringify(o)), Je = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), F = (o, t) => o[Je(t)];
9
- function Ze(o, t, e) {
8
+ const Q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), J = (o) => JSON.parse(JSON.stringify(o)), Je = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), K = (o, t) => o[Je(t)];
9
+ function je(o, t, e) {
10
10
  const a = atob(o), r = [];
11
11
  for (let i = 0; i < a.length; i += 512) {
12
12
  const g = a.slice(i, i + 512), m = new Array(g.length);
@@ -20,7 +20,7 @@ function Ze(o, t, e) {
20
20
  document.body.removeChild(d), URL.revokeObjectURL(A);
21
21
  }, 0);
22
22
  }
23
- const je = (o) => window.$http.request({
23
+ const Ze = (o) => window.$http.request({
24
24
  url: `${window.$reportURL}/tds/report/demo/get`,
25
25
  method: "get",
26
26
  params: o,
@@ -122,7 +122,7 @@ const je = (o) => window.$http.request({
122
122
  params: o,
123
123
  loading: !1,
124
124
  isError: !1
125
- }), _e = "rgba(51, 51, 51, 0.15)", q = "rgba(51, 51, 51, 1)", z = 12, we = (o = !1) => {
125
+ }), _e = "rgba(51, 51, 51, 0.15)", H = "rgba(51, 51, 51, 1)", z = 12, ye = (o = !1) => {
126
126
  const t = {
127
127
  // top: '2%',
128
128
  left: "3%",
@@ -157,7 +157,7 @@ const je = (o) => window.$http.request({
157
157
  t.forEach((A) => {
158
158
  r.push(A[a.name]), n.push(A[a.value]);
159
159
  }), o.xAxis[0].data = r, o.series[0].data = n, o.series[0].name = e, o.series[1].data = n, o.series[2].data = n;
160
- }, j = (o = [
160
+ }, Z = (o = [
161
161
  {
162
162
  name: "数据1",
163
163
  value: 63
@@ -201,7 +201,7 @@ const je = (o) => window.$http.request({
201
201
  // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
202
202
  // show: true,
203
203
  // },
204
- grid: we(),
204
+ grid: ye(),
205
205
  title: {
206
206
  show: !0,
207
207
  text: "样例数据",
@@ -221,7 +221,7 @@ const je = (o) => window.$http.request({
221
221
  nameRotate: 0,
222
222
  // 坐标轴名称旋转
223
223
  axisLabel: {
224
- color: q,
224
+ color: H,
225
225
  // X轴类目名称样式
226
226
  rotate: 0
227
227
  // X轴类目名称旋转角度
@@ -250,7 +250,7 @@ const je = (o) => window.$http.request({
250
250
  position: "left",
251
251
  nameTextStyle: {
252
252
  fontSize: z,
253
- color: q,
253
+ color: H,
254
254
  fontWeight: "bold"
255
255
  },
256
256
  axisLine: { show: !1 },
@@ -260,7 +260,7 @@ const je = (o) => window.$http.request({
260
260
  splitLine: { show: !1 },
261
261
  // 纵向分隔线
262
262
  axisLabel: {
263
- color: q,
263
+ color: H,
264
264
  // y轴刻度标签
265
265
  formatter: "{value}",
266
266
  inside: !1
@@ -370,7 +370,7 @@ const je = (o) => window.$http.request({
370
370
  },
371
371
  textStyle: {
372
372
  fontSize: z,
373
- color: q
373
+ color: H
374
374
  },
375
375
  data: o,
376
376
  orient: "vertical",
@@ -478,11 +478,11 @@ const je = (o) => window.$http.request({
478
478
  ]
479
479
  };
480
480
  return d;
481
- }, wt = (o, t, e = { name: "name", value: "value" }) => {
481
+ }, yt = (o, t, e = { name: "name", value: "value" }) => {
482
482
  o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
483
483
  o.series[r].data = t.map((n) => n[a.value]);
484
484
  }) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
485
- }, yt = () => ({
485
+ }, wt = () => ({
486
486
  name: "",
487
487
  type: "line",
488
488
  symbol: "circle",
@@ -528,7 +528,7 @@ const je = (o) => window.$http.request({
528
528
  }
529
529
  },
530
530
  data: []
531
- }), Z = (o = [
531
+ }), j = (o = [
532
532
  {
533
533
  name: "2024-08",
534
534
  value: 63
@@ -560,12 +560,12 @@ const je = (o) => window.$http.request({
560
560
  show: !0,
561
561
  itemWidth: 30,
562
562
  textStyle: {
563
- color: q,
563
+ color: H,
564
564
  fontSize: z,
565
565
  padding: [0, 8, 0, 8]
566
566
  }
567
567
  },
568
- grid: we(),
568
+ grid: ye(),
569
569
  xAxis: {
570
570
  type: "category",
571
571
  splitLine: { show: !1 },
@@ -577,7 +577,7 @@ const je = (o) => window.$http.request({
577
577
  axisLabel: {
578
578
  show: !0,
579
579
  fontSize: z,
580
- color: q
580
+ color: H
581
581
  },
582
582
  boundaryGap: !1,
583
583
  data: o.map((n) => n[t.name])
@@ -590,17 +590,17 @@ const je = (o) => window.$http.request({
590
590
  axisTick: { show: !1 },
591
591
  nameTextStyle: {
592
592
  fontSize: z,
593
- color: q,
593
+ color: H,
594
594
  padding: [0, 60, 0, 0]
595
595
  },
596
596
  axisLabel: {
597
597
  show: !0,
598
598
  fontSize: z,
599
- color: q
599
+ color: H
600
600
  }
601
601
  },
602
602
  series: []
603
- }, a = yt(), r = [];
603
+ }, a = wt(), r = [];
604
604
  if (Array.isArray(t.value))
605
605
  t.value.forEach((n, A) => {
606
606
  const d = J(a);
@@ -649,7 +649,7 @@ const je = (o) => window.$http.request({
649
649
  }
650
650
  ],
651
651
  uri: "/da/report/sens/get_asset_all",
652
- id: H()
652
+ id: Q()
653
653
  },
654
654
  {
655
655
  type: "range-time",
@@ -659,7 +659,7 @@ const je = (o) => window.$http.request({
659
659
  end_time: "2024-09-12 19:49:34"
660
660
  }
661
661
  ],
662
- id: H()
662
+ id: Q()
663
663
  },
664
664
  {
665
665
  type: "h1",
@@ -672,7 +672,7 @@ const je = (o) => window.$http.request({
672
672
  textIndent: 0,
673
673
  textAlign: "left"
674
674
  },
675
- id: H()
675
+ id: Q()
676
676
  },
677
677
  {
678
678
  type: "h2",
@@ -686,7 +686,7 @@ const je = (o) => window.$http.request({
686
686
  textIndent: 0,
687
687
  textAlign: "left"
688
688
  },
689
- id: H()
689
+ id: Q()
690
690
  },
691
691
  {
692
692
  type: "report-table",
@@ -704,7 +704,7 @@ const je = (o) => window.$http.request({
704
704
  stripe: !1
705
705
  },
706
706
  rp_item_uuid: "",
707
- id: H()
707
+ id: Q()
708
708
  }
709
709
  ], xt = [
710
710
  {
@@ -774,39 +774,39 @@ const je = (o) => window.$http.request({
774
774
  data: $,
775
775
  showColumn: [{ key: "label", value: "data" }],
776
776
  name: "图表",
777
- options: j(),
777
+ options: Z(),
778
778
  rp_item_uuid: "",
779
779
  id: ""
780
780
  }
781
781
  ], Bt = (o) => ({
782
- bar: {
782
+ bar: () => ({
783
783
  type: "bar",
784
784
  data: $,
785
785
  showColumn: [{ key: "label", value: "data" }],
786
786
  name: "图表",
787
- options: j(),
787
+ options: Z(),
788
788
  rp_item_uuid: "",
789
- id: ""
790
- },
791
- line: {
789
+ id: Q()
790
+ }),
791
+ line: () => ({
792
792
  type: "line",
793
793
  data: $,
794
794
  showColumn: [{ key: "label", value: "data" }],
795
795
  name: "图表",
796
- options: Z(),
796
+ options: j(),
797
797
  rp_item_uuid: "",
798
- id: ""
799
- },
800
- pie: {
798
+ id: Q()
799
+ }),
800
+ pie: () => ({
801
801
  type: "pie",
802
802
  data: ht,
803
803
  showColumn: [{ key: "label", value: "data" }],
804
804
  name: "图表",
805
805
  options: re({ isLegend: !0 }),
806
806
  rp_item_uuid: "",
807
- id: ""
808
- },
809
- "report-table": {
807
+ id: Q()
808
+ }),
809
+ "report-table": () => ({
810
810
  type: "report-table",
811
811
  data: se,
812
812
  showColumn: Ae,
@@ -822,9 +822,49 @@ const je = (o) => window.$http.request({
822
822
  stripe: !1
823
823
  },
824
824
  rp_item_uuid: "",
825
- id: ""
826
- }
827
- })[o], I = Fe("tds-report", {
825
+ id: Q()
826
+ }),
827
+ "report-describe": () => ({
828
+ type: "report-describe",
829
+ data: {
830
+ object_name: "10.10.2.21_root ",
831
+ database_type: "MYSQL",
832
+ ip_port: "10.10.2.21: 3306 ",
833
+ time_range: "2025-03-01 15:51:51~2025-03-06 15:51:51",
834
+ report_time: "2025-03-06 15:51:51"
835
+ },
836
+ name: "描述列表",
837
+ options: {
838
+ title: "",
839
+ border: !0,
840
+ column: 1,
841
+ direction: "horizontal"
842
+ },
843
+ showColumn: [
844
+ {
845
+ name: "分析对象",
846
+ key: "object_name"
847
+ },
848
+ {
849
+ name: "数据库类型",
850
+ key: "database_type"
851
+ },
852
+ {
853
+ name: "IP与端口信息",
854
+ key: " ip_port"
855
+ },
856
+ {
857
+ name: "时间范围",
858
+ key: "time_range"
859
+ },
860
+ {
861
+ name: "报告生成时间",
862
+ key: "report_time"
863
+ }
864
+ ],
865
+ id: Q()
866
+ })
867
+ })[o](), F = Fe("tds-report", {
828
868
  state: () => ({
829
869
  componentList: [],
830
870
  activeComponents: {},
@@ -845,10 +885,10 @@ const je = (o) => window.$http.request({
845
885
  },
846
886
  async getReportDemo(o) {
847
887
  let t = [];
848
- o ? t = (await je({ report_uuid: o })).data : t = { content: J(Ct), range_time: 1 };
888
+ o ? t = (await Ze({ report_uuid: o })).data : t = { content: J(Ct), range_time: 1 };
849
889
  const e = [];
850
890
  t.content.forEach((a) => {
851
- (a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = H();
891
+ (a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = Q();
852
892
  }), this.notDraggableList = e, this.filterForm.range_time = t.range_time, this.filterForm.filter_uuid = t.filter_uuid, t.content.splice(0, 3), this.componentList = t.content;
853
893
  },
854
894
  setActiveComponents(o) {
@@ -885,7 +925,7 @@ const je = (o) => window.$http.request({
885
925
  data: { default: () => [] }
886
926
  },
887
927
  setup(o) {
888
- const t = o, e = Q(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
928
+ const t = o, e = I(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
889
929
  return (a, r) => {
890
930
  const n = s("el-divider");
891
931
  return c(), x("div", Vt, [
@@ -903,9 +943,9 @@ const je = (o) => window.$http.request({
903
943
  href: "#" + A.id,
904
944
  title: A.data
905
945
  }, [
906
- E(M(A.data), 1)
946
+ E(q(A.data), 1)
907
947
  ], 8, Dt)), [
908
- [y(Tt)]
948
+ [w(Tt)]
909
949
  ])
910
950
  ], 2))), 128))
911
951
  ]);
@@ -919,13 +959,13 @@ const Y = (o, t) => {
919
959
  return e;
920
960
  }, Lt = /* @__PURE__ */ Y(kt, [["__scopeId", "data-v-00cc9080"]]), Et = {
921
961
  class: "chart-components"
922
- }, ye = /* @__PURE__ */ L({
962
+ }, we = /* @__PURE__ */ L({
923
963
  __name: "Bar",
924
964
  props: {
925
965
  value: {}
926
966
  },
927
967
  setup(o) {
928
- const t = o, e = Q(() => t.value.options);
968
+ const t = o, e = I(() => t.value.options);
929
969
  return V(!1), (a, r) => {
930
970
  const n = s("TdsChart");
931
971
  return c(), x("div", Et, [l(n, {
@@ -939,7 +979,7 @@ const Y = (o, t) => {
939
979
  value: {}
940
980
  },
941
981
  setup(o) {
942
- const t = o, e = Q(() => t.value.options);
982
+ const t = o, e = I(() => t.value.options);
943
983
  return (a, r) => {
944
984
  const n = s("TdsChart");
945
985
  return c(), x("div", Ut, [
@@ -953,7 +993,7 @@ const Y = (o, t) => {
953
993
  value: {}
954
994
  },
955
995
  setup(o) {
956
- const t = o, e = Q(() => t.value.options);
996
+ const t = o, e = I(() => t.value.options);
957
997
  return (a, r) => {
958
998
  const n = s("TdsChart");
959
999
  return c(), x("div", Rt, [
@@ -1068,7 +1108,7 @@ const xe = /* @__PURE__ */ L({
1068
1108
  };
1069
1109
  return (a, r) => (c(), x("div", {
1070
1110
  style: Ee(e())
1071
- }, M(a.value.data), 5));
1111
+ }, q(a.value.data), 5));
1072
1112
  }
1073
1113
  }), Pt = { class: "chart-components" }, Be = /* @__PURE__ */ L({
1074
1114
  __name: "ReportChart",
@@ -1076,9 +1116,9 @@ const xe = /* @__PURE__ */ L({
1076
1116
  value: {}
1077
1117
  },
1078
1118
  setup(o) {
1079
- const t = o, e = Q(() => t.value), a = Q(() => {
1119
+ const t = o, e = I(() => t.value), a = I(() => {
1080
1120
  if (e.value.type === "bar") {
1081
- e.value.options.series = j([]).series;
1121
+ e.value.options.series = Z([]).series;
1082
1122
  const r = [];
1083
1123
  let n = "";
1084
1124
  e.value.data.forEach((A) => {
@@ -1104,7 +1144,7 @@ const xe = /* @__PURE__ */ L({
1104
1144
  i[g.value] = d.data[m].value;
1105
1145
  }), i;
1106
1146
  });
1107
- console.log(Z([], n), "chartsLine([], params)"), e.value.options.series = Z([], n).series, wt(e.value.options, A, n);
1147
+ console.log(j([], n), "chartsLine([], params)"), e.value.options.series = j([], n).series, yt(e.value.options, A, n);
1108
1148
  }
1109
1149
  return e.value.options;
1110
1150
  });
@@ -1170,7 +1210,7 @@ const Te = /* @__PURE__ */ L({
1170
1210
  emits: ["update:modelValue"],
1171
1211
  setup(o) {
1172
1212
  const t = V(!1), e = {
1173
- Bar: ye,
1213
+ Bar: we,
1174
1214
  Line: he,
1175
1215
  Pie: Ce,
1176
1216
  ReportSelect: ee,
@@ -1179,7 +1219,7 @@ const Te = /* @__PURE__ */ L({
1179
1219
  ReportText: oe,
1180
1220
  ReportChart: Be,
1181
1221
  ReportDescribe: Te
1182
- }, a = I(), r = o, n = me(o, "modelValue"), A = V([]), d = V([]), i = V([]), g = V(""), m = V("");
1222
+ }, a = F(), r = o, n = me(o, "modelValue"), A = V([]), d = V([]), i = V([]), g = V(""), m = V("");
1183
1223
  function b() {
1184
1224
  n.value = "table";
1185
1225
  }
@@ -1195,10 +1235,10 @@ const Te = /* @__PURE__ */ L({
1195
1235
  report_uuid: r.reportId,
1196
1236
  start_time: g.value,
1197
1237
  end_time: m.value
1198
- }, B = await vt(D), K = p === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
1199
- Ze(B.file_data, B.file_name, K);
1238
+ }, B = await vt(D), M = p === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
1239
+ je(B.file_data, B.file_name, M);
1200
1240
  }
1201
- const w = (p) => {
1241
+ const y = (p) => {
1202
1242
  i.value = p, _();
1203
1243
  }, h = (p) => {
1204
1244
  p && p.length > 0 && (g.value = p[0], m.value = p[1]), _();
@@ -1211,18 +1251,18 @@ const Te = /* @__PURE__ */ L({
1211
1251
  end_time: m.value,
1212
1252
  select_data: i.value.join(",")
1213
1253
  }, D = await We(p), B = [];
1214
- D.data.forEach((K) => {
1215
- (K.type === "report-select" || K.type === "range-time") && B.push(K);
1254
+ D.data.forEach((M) => {
1255
+ (M.type === "report-select" || M.type === "range-time") && B.push(M);
1216
1256
  }), A.value = B, D.data.splice(0, A.value.length), d.value = D.data, t.value = !1;
1217
1257
  } catch (p) {
1218
1258
  t.value = !1, console.error("Error setting loading state:", p);
1219
1259
  }
1220
1260
  };
1221
1261
  _();
1222
- const C = () => l("div", null, [E("未找到对应组件")]), f = (p) => p === "h2" || p === "h3" || p === "h4" ? F(e, "ReportText") : p === "bar" || p === "pie" || p === "line" ? F(e, "ReportChart") : p ? F(e, p) : l(C, null, null);
1262
+ const C = () => l("div", null, [E("未找到对应组件")]), f = (p) => p === "h2" || p === "h3" || p === "h4" ? K(e, "ReportText") : p === "bar" || p === "pie" || p === "line" ? K(e, "ReportChart") : p ? K(e, p) : l(C, null, null);
1223
1263
  return (p, D) => {
1224
- const B = s("el-button"), K = s("el-card"), Le = fe("loading");
1225
- return le((c(), k(K, {
1264
+ const B = s("el-button"), M = s("el-card"), Le = fe("loading");
1265
+ return le((c(), k(M, {
1226
1266
  class: "editor view",
1227
1267
  "element-loading-text": "加载中..."
1228
1268
  }, {
@@ -1233,9 +1273,9 @@ const Te = /* @__PURE__ */ L({
1233
1273
  key: U.id
1234
1274
  }, [U.type === "report-select" ? (c(), k(ee, {
1235
1275
  key: 0,
1236
- onChange: w,
1276
+ onChange: y,
1237
1277
  value: U
1238
- }, null, 8, ["value"])) : R("", !0), U.type === "range-time" && y(a).filterForm.range_time ? (c(), k(te, {
1278
+ }, null, 8, ["value"])) : R("", !0), U.type === "range-time" && w(a).filterForm.range_time ? (c(), k(te, {
1239
1279
  key: 1,
1240
1280
  onChange: h,
1241
1281
  value: U
@@ -1296,7 +1336,7 @@ const Te = /* @__PURE__ */ L({
1296
1336
  class: N(["editor" + U.type]),
1297
1337
  value: U
1298
1338
  }, {
1299
- default: u(() => [E(M(U.data), 1)]),
1339
+ default: u(() => [E(q(U.data), 1)]),
1300
1340
  _: 2
1301
1341
  }, 1032, ["class", "value"])) : (c(), x("p", {
1302
1342
  key: 1,
@@ -1311,11 +1351,11 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1311
1351
  class: "editor"
1312
1352
  }, Yt = {
1313
1353
  class: "editor-content edit"
1314
- }, Gt = ["onClick"], Xt = ["onClick"], Jt = ["innerHTML", "draggable"], Zt = /* @__PURE__ */ L({
1354
+ }, Gt = ["onClick"], Xt = ["onClick"], Jt = ["innerHTML", "draggable"], jt = /* @__PURE__ */ L({
1315
1355
  __name: "Editor",
1316
1356
  setup(o) {
1317
1357
  const t = {
1318
- Bar: ye,
1358
+ Bar: we,
1319
1359
  Line: he,
1320
1360
  Pie: Ce,
1321
1361
  ReportSelect: ee,
@@ -1329,15 +1369,15 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1329
1369
  activeComponents: a,
1330
1370
  notDraggableList: r,
1331
1371
  titleComponent: n
1332
- } = Ke(I()), A = I(), d = (C) => {
1372
+ } = Ke(F()), A = F(), d = (C) => {
1333
1373
  e.value.forEach((f, p) => {
1334
1374
  f.id === C && (e.value.splice(p, 1), A.activeComponents = []);
1335
1375
  });
1336
1376
  }, i = (C) => {
1337
1377
  A.setActiveComponents(C);
1338
- }, g = () => l("div", null, [E("未找到对应组件")]), m = (C) => C === "h2" || C === "h3" || C === "h4" ? F(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? F(t, "ReportChart") : C ? F(t, C) : l(g, null, null), b = (C) => {
1378
+ }, g = () => l("div", null, [E("未找到对应组件")]), m = (C) => C === "h2" || C === "h3" || C === "h4" ? K(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? K(t, "ReportChart") : C ? K(t, C) : l(g, null, null), b = (C) => {
1339
1379
  console.log(C, "evt");
1340
- }, v = V(!1), w = () => {
1380
+ }, v = V(!1), y = () => {
1341
1381
  v.value = !0;
1342
1382
  }, h = (C) => {
1343
1383
  C.newIndex !== 0 && (console.log(C), v.value = !1);
@@ -1346,42 +1386,42 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1346
1386
  const p = s("CircleClose"), D = s("el-icon");
1347
1387
  return c(), x("div", Nt, [T("div", {
1348
1388
  class: N(["editor-content edit flex flex-start", [{
1349
- active: y(a).id === "filter"
1389
+ active: w(a).id === "filter"
1350
1390
  }]]),
1351
1391
  onClick: f[0] || (f[0] = (B) => i({
1352
1392
  id: "filter",
1353
1393
  type: "filter"
1354
1394
  }))
1355
- }, [(c(!0), x(S, null, P(y(r), (B) => (c(), x("div", {
1395
+ }, [(c(!0), x(S, null, P(w(r), (B) => (c(), x("div", {
1356
1396
  class: "item-input",
1357
1397
  key: B.id
1358
- }, [B.type === "report-select" || B.type === "range-time" && y(A).filterForm.range_time ? (c(), k(G(y(F)(t, B.type)), {
1398
+ }, [B.type === "report-select" || B.type === "range-time" && w(A).filterForm.range_time ? (c(), k(G(w(K)(t, B.type)), {
1359
1399
  key: 0,
1360
1400
  value: B
1361
1401
  }, {
1362
- default: u(() => [E(M(B.data), 1)]),
1402
+ default: u(() => [E(q(B.data), 1)]),
1363
1403
  _: 2
1364
1404
  }, 1032, ["value"])) : R("", !0)]))), 128))], 2), T("div", Yt, [l(oe, {
1365
- value: y(n),
1366
- onClick: f[1] || (f[1] = (B) => i(y(n)))
1367
- }, null, 8, ["value"])]), l(y(He), {
1405
+ value: w(n),
1406
+ onClick: f[1] || (f[1] = (B) => i(w(n)))
1407
+ }, null, 8, ["value"])]), l(w(He), {
1368
1408
  ref_key: "el",
1369
1409
  ref: _,
1370
- modelValue: y(e),
1410
+ modelValue: w(e),
1371
1411
  "onUpdate:modelValue": f[2] || (f[2] = (B) => Ue(e) ? e.value = B : null),
1372
1412
  "on-change": b,
1373
1413
  animation: 150,
1374
- onStart: w,
1414
+ onStart: y,
1375
1415
  onEnd: h
1376
1416
  }, {
1377
- default: u(() => [(c(!0), x(S, null, P(y(e), (B) => (c(), x("div", {
1417
+ default: u(() => [(c(!0), x(S, null, P(w(e), (B) => (c(), x("div", {
1378
1418
  key: B.id,
1379
1419
  class: N(["editor-content edit", ["editor" + B.type, {
1380
- active: B.id === y(a).id
1420
+ active: B.id === w(a).id
1381
1421
  }]]),
1382
- onClick: (K) => i(B)
1422
+ onClick: (M) => i(B)
1383
1423
  }, [T("i", {
1384
- onClick: Re((K) => d(B.id), ["stop"]),
1424
+ onClick: Re((M) => d(B.id), ["stop"]),
1385
1425
  style: {
1386
1426
  "z-index": "99"
1387
1427
  }
@@ -1397,7 +1437,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1397
1437
  value: B,
1398
1438
  draggable: v.value
1399
1439
  }, {
1400
- default: u(() => [E(M(B.data), 1)]),
1440
+ default: u(() => [E(q(B.data), 1)]),
1401
1441
  _: 2
1402
1442
  }, 1032, ["class", "value", "draggable"])) : (c(), x("p", {
1403
1443
  key: 1,
@@ -1408,10 +1448,10 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1408
1448
  }, 8, ["modelValue"])]);
1409
1449
  };
1410
1450
  }
1411
- }), jt = { class: "label" }, Wt = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, eo = { class: "flex item-switch" }, De = /* @__PURE__ */ L({
1451
+ }), Zt = { class: "label" }, Wt = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, eo = { class: "flex item-switch" }, De = /* @__PURE__ */ L({
1412
1452
  __name: "SettingTable",
1413
1453
  setup(o) {
1414
- const t = I(), e = Q(() => t.getActiveComponents);
1454
+ const t = F(), e = I(() => t.getActiveComponents);
1415
1455
  return (a, r) => {
1416
1456
  const n = s("el-switch"), A = s("el-form-item"), d = s("el-divider");
1417
1457
  return c(), x("div", null, [
@@ -1421,7 +1461,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1421
1461
  class: "flex item-switch",
1422
1462
  key: g
1423
1463
  }, [
1424
- T("span", jt, M(i.name), 1),
1464
+ T("span", Zt, q(i.name), 1),
1425
1465
  l(n, {
1426
1466
  modelValue: e.value.options.showColumn[i.key],
1427
1467
  "onUpdate:modelValue": (m) => e.value.options.showColumn[i.key] = m
@@ -1463,12 +1503,12 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1463
1503
  }), to = { key: 0 }, oo = /* @__PURE__ */ L({
1464
1504
  __name: "ChartsUniConfig",
1465
1505
  setup(o) {
1466
- const t = I(), e = Q(() => t.activeComponents);
1506
+ const t = F(), e = I(() => t.activeComponents);
1467
1507
  function a(r) {
1468
1508
  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);
1469
1509
  }
1470
1510
  return V("rgb(46, 145, 255)"), (r, n) => {
1471
- const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"), g = s("el-col"), m = s("el-color-picker"), b = s("el-input-number"), v = s("el-row"), w = s("el-collapse-item"), h = s("el-collapse");
1511
+ const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"), g = s("el-col"), m = s("el-color-picker"), b = s("el-input-number"), v = s("el-row"), y = s("el-collapse-item"), h = s("el-collapse");
1472
1512
  return e.value.options.title ? (c(), x("div", to, [
1473
1513
  l(d, { label: "标题" }, {
1474
1514
  default: u(() => [
@@ -1481,7 +1521,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1481
1521
  }),
1482
1522
  l(h, null, {
1483
1523
  default: u(() => [
1484
- l(w, {
1524
+ l(y, {
1485
1525
  title: "标题配置",
1486
1526
  name: "1"
1487
1527
  }, {
@@ -1548,7 +1588,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1548
1588
  ]),
1549
1589
  _: 1
1550
1590
  }),
1551
- l(w, {
1591
+ l(y, {
1552
1592
  title: "图形配置",
1553
1593
  name: "2"
1554
1594
  }, {
@@ -1572,7 +1612,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1572
1612
  ]),
1573
1613
  _: 1
1574
1614
  }),
1575
- l(w, {
1615
+ l(y, {
1576
1616
  title: "图例配置",
1577
1617
  name: "3"
1578
1618
  }, {
@@ -1606,7 +1646,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
1606
1646
  const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @__PURE__ */ L({
1607
1647
  __name: "SettingDescribe",
1608
1648
  setup(o) {
1609
- const t = I(), e = Q(() => t.getActiveComponents);
1649
+ const t = F(), e = I(() => t.getActiveComponents);
1610
1650
  return (a, r) => {
1611
1651
  const n = s("el-input"), A = s("el-form-item"), d = s("el-switch"), i = s("el-input-number"), g = s("el-radio"), m = s("el-radio-group");
1612
1652
  return c(), x("div", null, [
@@ -1671,7 +1711,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1671
1711
  }), no = /* @__PURE__ */ L({
1672
1712
  __name: "SettingCharts",
1673
1713
  setup(o) {
1674
- const t = I(), e = V(!1), a = Q(() => t.getActiveComponents), r = [
1714
+ const t = F(), e = V(!1), a = I(() => t.getActiveComponents), r = [
1675
1715
  { value: "report-describe", name: "描述列表" },
1676
1716
  { value: "report-table", name: "表格" },
1677
1717
  { value: "line", name: "趋势图" },
@@ -1687,24 +1727,24 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1687
1727
  A.value = b.data;
1688
1728
  }
1689
1729
  function i(m) {
1690
- let b = A.value.find((w) => w.rp_item_uuid === m);
1730
+ let b = A.value.find((y) => y.rp_item_uuid === m);
1691
1731
  const v = b.rp_item_content;
1692
- if (b.rp_item_content.type === "bar" && (v.options = j()), v.type === "pie" && (v.options = re({ isLegend: !0 })), v.type === "line") {
1693
- let w = [];
1732
+ if (b.rp_item_content.type === "bar" && (v.options = Z()), v.type === "pie" && (v.options = re({ isLegend: !0 })), v.type === "line") {
1733
+ let y = [];
1694
1734
  v.data.forEach((_) => {
1695
- w = _.data.map((C, f) => ({ name: C.name, value: "value" + f }));
1735
+ y = _.data.map((C, f) => ({ name: C.name, value: "value" + f }));
1696
1736
  });
1697
1737
  const h = {
1698
1738
  name: "name",
1699
- value: w
1739
+ value: y
1700
1740
  };
1701
- v.options = Z([], h);
1741
+ v.options = j([], h);
1702
1742
  }
1703
1743
  if (v.type === "report-table") {
1704
- const w = {};
1744
+ const y = {};
1705
1745
  v.showColumn.forEach((h) => {
1706
- w[h.key] = !0;
1707
- }), v.options = { ...v.options, showColumn: w, border: !0, showHeader: !0, stripe: !1 };
1746
+ y[h.key] = !0;
1747
+ }), v.options = { ...v.options, showColumn: y, border: !0, showHeader: !0, stripe: !1 };
1708
1748
  }
1709
1749
  v.type === "report-describe" && (v.options = { ...v.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, v), t.activeComponents.rp_item_uuid = b.rp_item_uuid;
1710
1750
  }
@@ -1713,9 +1753,11 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1713
1753
  });
1714
1754
  async function g(m) {
1715
1755
  try {
1716
- e.value = !0, await d(m), Object.assign(t.activeComponents, Bt(m)), e.value = !1;
1717
- } catch {
1718
- e.value = !1;
1756
+ e.value = !0, await d(m);
1757
+ } catch (b) {
1758
+ console.error("加载报告项失败:", b);
1759
+ } finally {
1760
+ Object.assign(t.activeComponents, Bt(m)), e.value = !1;
1719
1761
  }
1720
1762
  }
1721
1763
  return Se(
@@ -1724,13 +1766,13 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1724
1766
  console.log(m, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(m.type) && (n.value = a.value.type, d(n.value));
1725
1767
  }
1726
1768
  ), (m, b) => {
1727
- const v = s("el-option"), w = s("el-select"), h = s("el-form-item"), _ = s("el-form"), C = fe("loading");
1769
+ const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), _ = s("el-form"), C = fe("loading");
1728
1770
  return le((c(), x("div", null, [
1729
1771
  l(_, { "label-position": "top" }, {
1730
1772
  default: u(() => [
1731
1773
  l(h, { label: "图表类型" }, {
1732
1774
  default: u(() => [
1733
- l(w, {
1775
+ l(y, {
1734
1776
  style: { width: "100%" },
1735
1777
  modelValue: n.value,
1736
1778
  "onUpdate:modelValue": b[0] || (b[0] = (f) => n.value = f),
@@ -1750,10 +1792,10 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1750
1792
  }),
1751
1793
  l(h, { label: "组件库" }, {
1752
1794
  default: u(() => [
1753
- l(w, {
1795
+ l(y, {
1754
1796
  style: { width: "100%" },
1755
- modelValue: y(t).activeComponents.rp_item_uuid,
1756
- "onUpdate:modelValue": b[1] || (b[1] = (f) => y(t).activeComponents.rp_item_uuid = f),
1797
+ modelValue: w(t).activeComponents.rp_item_uuid,
1798
+ "onUpdate:modelValue": b[1] || (b[1] = (f) => w(t).activeComponents.rp_item_uuid = f),
1757
1799
  onChange: i
1758
1800
  }, {
1759
1801
  default: u(() => [
@@ -1782,7 +1824,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1782
1824
  }), ao = { key: 0 }, ro = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", Ao = /* @__PURE__ */ L({
1783
1825
  __name: "SettingText",
1784
1826
  setup(o) {
1785
- const t = I(), e = Oe(), a = V();
1827
+ const t = F(), e = Oe(), a = V();
1786
1828
  function r(m) {
1787
1829
  const b = a.value.find((v) => v.rp_item_uuid === m);
1788
1830
  t.activeComponents.uri = b.rp_item_content.uri, e.value.setHtml((b == null ? void 0 : b.rp_item_content.data) || "");
@@ -1822,16 +1864,16 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1822
1864
  const m = e.value;
1823
1865
  m != null && m.destroy();
1824
1866
  }), (m, b) => {
1825
- const v = s("el-option"), w = s("el-select"), h = s("el-form-item"), _ = s("el-form");
1826
- return y(t).activeComponents.id ? (c(), x("div", ao, [
1867
+ const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), _ = s("el-form");
1868
+ return w(t).activeComponents.id ? (c(), x("div", ao, [
1827
1869
  l(_, { "label-position": "top" }, {
1828
1870
  default: u(() => [
1829
1871
  l(h, { label: "组件库" }, {
1830
1872
  default: u(() => [
1831
- l(w, {
1873
+ l(y, {
1832
1874
  style: { width: "100%" },
1833
- modelValue: y(t).activeComponents.rp_item_uuid,
1834
- "onUpdate:modelValue": b[0] || (b[0] = (C) => y(t).activeComponents.rp_item_uuid = C),
1875
+ modelValue: w(t).activeComponents.rp_item_uuid,
1876
+ "onUpdate:modelValue": b[0] || (b[0] = (C) => w(t).activeComponents.rp_item_uuid = C),
1835
1877
  onChange: r
1836
1878
  }, {
1837
1879
  default: u(() => [
@@ -1849,17 +1891,17 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1849
1891
  l(h, { label: "文本内容" }, {
1850
1892
  default: u(() => [
1851
1893
  T("div", ro, [
1852
- l(y(ze), {
1894
+ l(w(ze), {
1853
1895
  style: { "border-bottom": "1px solid #ccc" },
1854
1896
  editor: e.value,
1855
1897
  "default-config": A,
1856
1898
  mode: ie
1857
1899
  }, null, 8, ["editor"]),
1858
- l(y(Ne), {
1900
+ l(w(Ne), {
1859
1901
  style: { height: "500px", "overflow-y": "hidden" },
1860
1902
  onOnChange: g,
1861
- modelValue: y(t).activeComponents.data,
1862
- "onUpdate:modelValue": b[1] || (b[1] = (C) => y(t).activeComponents.data = C),
1903
+ modelValue: w(t).activeComponents.data,
1904
+ "onUpdate:modelValue": b[1] || (b[1] = (C) => w(t).activeComponents.data = C),
1863
1905
  "default-config": d,
1864
1906
  mode: ie,
1865
1907
  onOnCreated: i
@@ -1877,7 +1919,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1877
1919
  }), so = /* @__PURE__ */ L({
1878
1920
  __name: "SettingFilter",
1879
1921
  setup(o) {
1880
- const t = V([]), e = I();
1922
+ const t = V([]), e = F();
1881
1923
  async function a() {
1882
1924
  const r = await be({ prod_type: window.$prodType });
1883
1925
  t.value = r.data;
@@ -1892,9 +1934,9 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1892
1934
  l(i, { label: "筛选条件" }, {
1893
1935
  default: u(() => [
1894
1936
  l(d, {
1895
- modelValue: y(e).filterForm.filter_uuid,
1896
- "onUpdate:modelValue": n[0] || (n[0] = (b) => y(e).filterForm.filter_uuid = b),
1897
- disabled: !!y(e).filterForm.filter_uuid
1937
+ modelValue: w(e).filterForm.filter_uuid,
1938
+ "onUpdate:modelValue": n[0] || (n[0] = (b) => w(e).filterForm.filter_uuid = b),
1939
+ disabled: !!w(e).filterForm.filter_uuid
1898
1940
  }, {
1899
1941
  default: u(() => [
1900
1942
  (c(!0), x(S, null, P(t.value, (b) => (c(), k(A, {
@@ -1911,8 +1953,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1911
1953
  l(i, null, {
1912
1954
  default: u(() => [
1913
1955
  l(g, {
1914
- modelValue: y(e).filterForm.range_time,
1915
- "onUpdate:modelValue": n[1] || (n[1] = (b) => y(e).filterForm.range_time = b),
1956
+ modelValue: w(e).filterForm.range_time,
1957
+ "onUpdate:modelValue": n[1] || (n[1] = (b) => w(e).filterForm.range_time = b),
1916
1958
  "true-value": 1,
1917
1959
  "false-value": 0,
1918
1960
  label: "时间范围"
@@ -1928,7 +1970,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1928
1970
  }), io = /* @__PURE__ */ L({
1929
1971
  __name: "SettingTitle",
1930
1972
  setup(o) {
1931
- const t = I();
1973
+ const t = F();
1932
1974
  return (e, a) => {
1933
1975
  const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), d = s("el-col"), i = s("el-input-number"), g = s("el-option"), m = s("el-select"), b = s("el-row"), v = s("el-form");
1934
1976
  return c(), k(v, {
@@ -1939,8 +1981,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1939
1981
  l(n, { label: "名称" }, {
1940
1982
  default: u(() => [
1941
1983
  l(r, {
1942
- modelValue: y(t).activeComponents.data,
1943
- "onUpdate:modelValue": a[0] || (a[0] = (w) => y(t).activeComponents.data = w),
1984
+ modelValue: w(t).activeComponents.data,
1985
+ "onUpdate:modelValue": a[0] || (a[0] = (y) => w(t).activeComponents.data = y),
1944
1986
  placeholder: "Please input",
1945
1987
  maxlength: "24",
1946
1988
  "show-word-limit": ""
@@ -1955,8 +1997,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1955
1997
  l(d, { span: 12 }, {
1956
1998
  default: u(() => [
1957
1999
  l(A, {
1958
- modelValue: y(t).activeComponents.options.color,
1959
- "onUpdate:modelValue": a[1] || (a[1] = (w) => y(t).activeComponents.options.color = w),
2000
+ modelValue: w(t).activeComponents.options.color,
2001
+ "onUpdate:modelValue": a[1] || (a[1] = (y) => w(t).activeComponents.options.color = y),
1960
2002
  "show-alpha": ""
1961
2003
  }, null, 8, ["modelValue"]),
1962
2004
  a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
@@ -1966,8 +2008,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1966
2008
  l(d, { span: 12 }, {
1967
2009
  default: u(() => [
1968
2010
  l(i, {
1969
- modelValue: y(t).activeComponents.options.size,
1970
- "onUpdate:modelValue": a[2] || (a[2] = (w) => y(t).activeComponents.options.size = w),
2011
+ modelValue: w(t).activeComponents.options.size,
2012
+ "onUpdate:modelValue": a[2] || (a[2] = (y) => w(t).activeComponents.options.size = y),
1971
2013
  "controls-position": "right"
1972
2014
  }, null, 8, ["modelValue"]),
1973
2015
  a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
@@ -1977,8 +2019,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1977
2019
  l(d, { span: 12 }, {
1978
2020
  default: u(() => [
1979
2021
  l(m, {
1980
- modelValue: y(t).activeComponents.options.fontWeight,
1981
- "onUpdate:modelValue": a[3] || (a[3] = (w) => y(t).activeComponents.options.fontWeight = w)
2022
+ modelValue: w(t).activeComponents.options.fontWeight,
2023
+ "onUpdate:modelValue": a[3] || (a[3] = (y) => w(t).activeComponents.options.fontWeight = y)
1982
2024
  }, {
1983
2025
  default: u(() => [
1984
2026
  l(g, {
@@ -1999,8 +2041,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
1999
2041
  l(d, { span: 12 }, {
2000
2042
  default: u(() => [
2001
2043
  l(i, {
2002
- modelValue: y(t).activeComponents.options.letterSpacing,
2003
- "onUpdate:modelValue": a[4] || (a[4] = (w) => y(t).activeComponents.options.letterSpacing = w),
2044
+ modelValue: w(t).activeComponents.options.letterSpacing,
2045
+ "onUpdate:modelValue": a[4] || (a[4] = (y) => w(t).activeComponents.options.letterSpacing = y),
2004
2046
  "controls-position": "right"
2005
2047
  }, null, 8, ["modelValue"]),
2006
2048
  a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
@@ -2010,8 +2052,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
2010
2052
  l(d, { span: 12 }, {
2011
2053
  default: u(() => [
2012
2054
  l(i, {
2013
- modelValue: y(t).activeComponents.options.textIndent,
2014
- "onUpdate:modelValue": a[5] || (a[5] = (w) => y(t).activeComponents.options.textIndent = w),
2055
+ modelValue: w(t).activeComponents.options.textIndent,
2056
+ "onUpdate:modelValue": a[5] || (a[5] = (y) => w(t).activeComponents.options.textIndent = y),
2015
2057
  "controls-position": "right"
2016
2058
  }, null, 8, ["modelValue"]),
2017
2059
  a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
@@ -2021,8 +2063,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
2021
2063
  l(d, { span: 12 }, {
2022
2064
  default: u(() => [
2023
2065
  l(m, {
2024
- modelValue: y(t).activeComponents.options.textAlign,
2025
- "onUpdate:modelValue": a[6] || (a[6] = (w) => y(t).activeComponents.options.textAlign = w)
2066
+ modelValue: w(t).activeComponents.options.textAlign,
2067
+ "onUpdate:modelValue": a[6] || (a[6] = (y) => w(t).activeComponents.options.textAlign = y)
2026
2068
  }, {
2027
2069
  default: u(() => [
2028
2070
  l(g, {
@@ -2066,7 +2108,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2066
2108
  SettingText: Ao,
2067
2109
  SettingFilter: so,
2068
2110
  SettingTitle: uo
2069
- }, e = I(), a = Q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? F(t, "SettingTitle") : n.includes(i) ? F(t, "SettingText") : A.includes(i) ? F(t, "SettingCharts") : i === "filter" ? F(t, "SettingFilter") : "DefaultEditor";
2111
+ }, e = F(), a = I(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? K(t, "SettingTitle") : n.includes(i) ? K(t, "SettingText") : A.includes(i) ? K(t, "SettingCharts") : i === "filter" ? K(t, "SettingFilter") : "DefaultEditor";
2070
2112
  return (i, g) => {
2071
2113
  const m = s("el-card");
2072
2114
  return c(), k(m, { class: "config-wrapper" }, {
@@ -2090,9 +2132,9 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2090
2132
  }),
2091
2133
  emits: ["update:modelValue"],
2092
2134
  setup(o) {
2093
- const t = I(), e = o, a = me(o, "modelValue"), r = (i) => {
2135
+ const t = F(), e = o, a = me(o, "modelValue"), r = (i) => {
2094
2136
  const g = J(i);
2095
- g.id = H(), t.componentList.push(g);
2137
+ g.id = Q(), t.componentList.push(g);
2096
2138
  };
2097
2139
  function n() {
2098
2140
  a.value = "table";
@@ -2140,15 +2182,15 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2140
2182
  T("div", fo, [
2141
2183
  l(b, null, {
2142
2184
  default: u(() => [
2143
- (c(!0), x(S, null, P(y(xt), (w) => (c(), x(S, {
2144
- key: w.type
2185
+ (c(!0), x(S, null, P(w(xt), (y) => (c(), x(S, {
2186
+ key: y.type
2145
2187
  }, [
2146
- w != null && w.hide ? R("", !0) : (c(), k(m, {
2188
+ y != null && y.hide ? R("", !0) : (c(), k(m, {
2147
2189
  key: 0,
2148
- onClick: (h) => r(w)
2190
+ onClick: (h) => r(y)
2149
2191
  }, {
2150
2192
  default: u(() => [
2151
- E(M(w.name), 1)
2193
+ E(q(y.name), 1)
2152
2194
  ]),
2153
2195
  _: 2
2154
2196
  }, 1032, ["onClick"]))
@@ -2178,7 +2220,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2178
2220
  _: 1
2179
2221
  })
2180
2222
  ]),
2181
- l(Zt)
2223
+ l(jt)
2182
2224
  ]),
2183
2225
  _: 1
2184
2226
  }),
@@ -2194,7 +2236,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2194
2236
  setup(o, {
2195
2237
  emit: t
2196
2238
  }) {
2197
- const e = Q(() => ({
2239
+ const e = I(() => ({
2198
2240
  prod_type: window.$prodType
2199
2241
  })), a = V(), r = t, n = (v) => {
2200
2242
  r("click", v.report_uuid, "review");
@@ -2262,13 +2304,13 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2262
2304
  }, null)])
2263
2305
  }
2264
2306
  ]);
2265
- return (v, w) => {
2307
+ return (v, y) => {
2266
2308
  const h = s("el-button"), _ = s("TdsTable");
2267
2309
  return c(), x("div", go, [l(_, {
2268
2310
  ref_key: "proTable",
2269
2311
  ref: a,
2270
2312
  columns: b,
2271
- "request-api": y(tt),
2313
+ "request-api": w(tt),
2272
2314
  "init-param": e.value,
2273
2315
  "row-key": "report_uuid",
2274
2316
  options: v.$tableOptions(),
@@ -2283,7 +2325,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2283
2325
  icon: "Plus",
2284
2326
  onClick: d
2285
2327
  }, {
2286
- default: u(() => w[0] || (w[0] = [E("新建")])),
2328
+ default: u(() => y[0] || (y[0] = [E("新建")])),
2287
2329
  _: 1
2288
2330
  }), l(h, {
2289
2331
  plain: "",
@@ -2291,7 +2333,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2291
2333
  icon: "Delete",
2292
2334
  onClick: (f) => g(C.selectedListIds)
2293
2335
  }, {
2294
- default: u(() => w[1] || (w[1] = [E("删除")])),
2336
+ default: u(() => y[1] || (y[1] = [E("删除")])),
2295
2337
  _: 2
2296
2338
  }, 1032, ["onClick"])]),
2297
2339
  _: 1
@@ -2299,7 +2341,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
2299
2341
  };
2300
2342
  }
2301
2343
  });
2302
- const _o = { style: { height: "100%" } }, wo = /* @__PURE__ */ L({
2344
+ const _o = { style: { height: "100%" } }, yo = /* @__PURE__ */ L({
2303
2345
  name: "TCReport",
2304
2346
  __name: "index",
2305
2347
  setup(o) {
@@ -2339,7 +2381,7 @@ const W = (o, t) => {
2339
2381
  for (const [e, a] of Object.entries(t))
2340
2382
  o[e] = a;
2341
2383
  return o;
2342
- }, yo = W(wo), ho = [
2384
+ }, wo = W(yo), ho = [
2343
2385
  {
2344
2386
  label: "正文",
2345
2387
  value: "p"
@@ -2435,7 +2477,7 @@ const W = (o, t) => {
2435
2477
  delete h.message, _.forEach((f) => {
2436
2478
  f.name ? f.key || C(new Error("请填写表头名称和KEY")) : C(new Error("请填写表头名称和KEY"));
2437
2479
  }), C();
2438
- }, v = (h) => h.item_type === 1, w = X([{
2480
+ }, v = (h) => h.item_type === 1, y = X([{
2439
2481
  type: "selection",
2440
2482
  width: 60,
2441
2483
  field: "rp_item_uuid",
@@ -2591,8 +2633,8 @@ const W = (o, t) => {
2591
2633
  return c(), x("div", xo, [l(f, {
2592
2634
  ref_key: "refTdsTable",
2593
2635
  ref: t,
2594
- columns: w,
2595
- "request-api": y(lt),
2636
+ columns: y,
2637
+ "request-api": w(lt),
2596
2638
  "init-param": n,
2597
2639
  "row-key": "rp_item_uuid",
2598
2640
  options: h.$tableOptions(),
@@ -2624,7 +2666,7 @@ const W = (o, t) => {
2624
2666
  }, h.$formBindProps({
2625
2667
  title: r.value,
2626
2668
  form: a.value,
2627
- columns: w
2669
+ columns: y
2628
2670
  }), {
2629
2671
  onSubmit: i
2630
2672
  }), null, 16)]);
@@ -2678,7 +2720,7 @@ const Do = /* @__PURE__ */ L({
2678
2720
  }
2679
2721
  const v = (f, p) => {
2680
2722
  f.target.value && A.value[p].push(f.target.value);
2681
- }, w = [{
2723
+ }, y = [{
2682
2724
  label: "周一",
2683
2725
  value: 1
2684
2726
  }, {
@@ -2878,7 +2920,7 @@ const Do = /* @__PURE__ */ L({
2878
2920
  field: "weekday",
2879
2921
  name: "星期",
2880
2922
  hide: !0,
2881
- enum: w,
2923
+ enum: y,
2882
2924
  show: {
2883
2925
  type: "select"
2884
2926
  },
@@ -2954,11 +2996,11 @@ const Do = /* @__PURE__ */ L({
2954
2996
  }]);
2955
2997
  return (f, p) => {
2956
2998
  const D = s("el-button");
2957
- return c(), x("div", Vo, [l(y(Ge), {
2999
+ return c(), x("div", Vo, [l(w(Ge), {
2958
3000
  ref_key: "refTdsTable",
2959
3001
  ref: t,
2960
3002
  "row-key": "subscript_uuid",
2961
- "request-api": y(At),
3003
+ "request-api": w(At),
2962
3004
  columns: C,
2963
3005
  options: f.$tableOptions()
2964
3006
  }, {
@@ -2967,9 +3009,9 @@ const Do = /* @__PURE__ */ L({
2967
3009
  icon: "Plus",
2968
3010
  class: "custom-btn",
2969
3011
  plain: "",
2970
- onClick: p[0] || (p[0] = (K) => g())
3012
+ onClick: p[0] || (p[0] = (M) => g())
2971
3013
  }, {
2972
- default: u(() => [E(M(y(a)("button.add")), 1)]),
3014
+ default: u(() => [E(q(w(a)("button.add")), 1)]),
2973
3015
  _: 1
2974
3016
  }), l(D, {
2975
3017
  type: "danger",
@@ -2978,11 +3020,11 @@ const Do = /* @__PURE__ */ L({
2978
3020
  onClick: i,
2979
3021
  disabled: !B.selectedListIds.length
2980
3022
  }, {
2981
- default: u(() => [E(M(y(a)("button.delete")), 1)]),
3023
+ default: u(() => [E(q(w(a)("button.delete")), 1)]),
2982
3024
  _: 2
2983
3025
  }, 1032, ["disabled"])]),
2984
3026
  _: 1
2985
- }, 8, ["request-api", "columns", "options"]), l(y(Xe), ve({
3027
+ }, 8, ["request-api", "columns", "options"]), l(w(Xe), ve({
2986
3028
  ref_key: "refTdsForm",
2987
3029
  ref: e
2988
3030
  }, f.$formBindProps({
@@ -3037,7 +3079,7 @@ const Do = /* @__PURE__ */ L({
3037
3079
  }
3038
3080
  });
3039
3081
  const Uo = /* @__PURE__ */ Y(Eo, [["__scopeId", "data-v-30fa84c8"]]), Ro = W(Uo), So = {
3040
- TCReport: yo,
3082
+ TCReport: wo,
3041
3083
  TCModule: To,
3042
3084
  TCSubscribe: ko,
3043
3085
  TCBuildin: Ro
@@ -3051,7 +3093,7 @@ const Uo = /* @__PURE__ */ Y(Eo, [["__scopeId", "data-v-30fa84c8"]]), Ro = W(Uo)
3051
3093
  export {
3052
3094
  Ro as TCBuildin,
3053
3095
  To as TCModule,
3054
- yo as TCReport,
3096
+ wo as TCReport,
3055
3097
  ko as TCSubscribe,
3056
3098
  qo as default
3057
3099
  };