@topdatasec/report 1.1.11 → 1.1.12

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,101 +1,101 @@
1
- import { defineComponent as T, computed as D, resolveComponent as s, openBlock as m, createElementBlock as x, createElementVNode as V, Fragment as F, renderList as q, normalizeClass as M, createBlock as L, createCommentVNode as E, toDisplayString as H, ref as S, createVNode as l, withCtx as u, onMounted as te, normalizeProps as ie, guardReactiveProps as ue, isVNode as oe, normalizeStyle as ke, mergeModels as pe, useModel as de, unref as h, createTextVNode as U, resolveDynamicComponent as O, isRef as Ve, withModifiers as Se, watch as Te, resolveDirective as Le, withDirectives as Re, shallowRef as Ue, onBeforeUnmount as Ee, onUnmounted as Ae, reactive as N, TransitionGroup as Fe, mergeProps as ce } from "vue";
2
- import { defineStore as De, storeToRefs as qe } from "pinia";
3
- import { ElMessage as Ie } from "element-plus";
4
- import { VueDraggable as ze } from "vue-draggable-plus";
5
- import { Toolbar as He, Editor as Be } from "@wangeditor/editor-for-vue";
6
- import { CircleClose as je } from "@element-plus/icons-vue";
7
- import { TdsTable as Pe, TdsForm as Me } from "topdatasec-ui";
8
- const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), W = (o) => JSON.parse(JSON.stringify(o)), Oe = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), z = (o, t) => o[Oe(t)], Ne = (o) => window.$http.request({
1
+ import { defineComponent as T, computed as q, resolveComponent as s, openBlock as _, createElementBlock as x, createElementVNode as V, Fragment as F, renderList as I, normalizeClass as O, createBlock as L, createCommentVNode as U, toDisplayString as B, ref as S, createVNode as l, withCtx as p, onMounted as oe, normalizeProps as pe, guardReactiveProps as de, isVNode as le, normalizeStyle as Le, mergeModels as ce, useModel as me, resolveDirective as _e, withDirectives as fe, unref as h, createTextVNode as R, resolveDynamicComponent as N, isRef as Re, withModifiers as Ue, watch as Ee, shallowRef as Ae, onBeforeUnmount as Fe, onUnmounted as De, reactive as W, TransitionGroup as qe, mergeProps as ve } from "vue";
2
+ import { defineStore as Ie, storeToRefs as ze } from "pinia";
3
+ import { ElMessage as He } from "element-plus";
4
+ import { VueDraggable as Be } from "vue-draggable-plus";
5
+ import { Toolbar as je, Editor as Pe } from "@wangeditor/editor-for-vue";
6
+ import { CircleClose as Me } from "@element-plus/icons-vue";
7
+ import { TdsTable as Oe, TdsForm as Ne } from "topdatasec-ui";
8
+ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), Y = (o) => JSON.parse(JSON.stringify(o)), We = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (o, t) => o[We(t)], Ye = (o) => window.$http.request({
9
9
  url: `${window.$reportURL}/tds/report/demo/get`,
10
10
  method: "get",
11
11
  params: o,
12
12
  isError: !1
13
- }), me = (o) => window.$http.request({
13
+ }), be = (o) => window.$http.request({
14
14
  url: `${window.$reportURL}/tds/report/item/get`,
15
15
  method: "get",
16
16
  params: o,
17
17
  isError: !1
18
- }), We = (o) => window.$http.request({
18
+ }), Ke = (o) => window.$http.request({
19
19
  url: `${window.$reportURL}/tds/report/preview`,
20
20
  method: "get",
21
21
  params: o,
22
22
  isError: !1
23
- }), Ye = (o) => window.$http.request({
23
+ }), Ge = (o) => window.$http.request({
24
24
  url: `${window.$reportURL}/tds/report/add`,
25
25
  method: "post",
26
26
  data: o
27
- }), Ke = (o) => window.$http.request({
27
+ }), Je = (o) => window.$http.request({
28
28
  url: `${window.$reportURL}/tds/report/put`,
29
29
  method: "put",
30
30
  data: o
31
- }), Ge = (o) => window.$http.request({
31
+ }), Qe = (o) => window.$http.request({
32
32
  url: `${window.$reportURL}/tds/report/get`,
33
33
  method: "get",
34
34
  params: o,
35
35
  isError: !1
36
- }), _e = (o) => window.$http.request({
36
+ }), ye = (o) => window.$http.request({
37
37
  url: `${window.$reportURL}/tds/report/filter/get`,
38
38
  method: "get",
39
39
  params: o,
40
40
  isError: !1
41
- }), Je = (o) => window.$http.request({
41
+ }), Xe = (o) => window.$http.request({
42
42
  url: `${window.$reportURL}/tds/report/delete`,
43
43
  method: "delete",
44
44
  data: o
45
- }), Qe = (o) => window.$http.request({
45
+ }), Ze = (o) => window.$http.request({
46
46
  url: `${window.$reportURL}/tds/report/item/list`,
47
47
  method: "get",
48
48
  params: o,
49
49
  isError: !1
50
- }), Xe = (o) => window.$http.request({
50
+ }), et = (o) => window.$http.request({
51
51
  url: `${window.$reportURL}/tds/report/item/delete`,
52
52
  method: "delete",
53
53
  data: o
54
- }), Ze = (o) => window.$http.request({
54
+ }), tt = (o) => window.$http.request({
55
55
  url: `${window.$reportURL}/tds/report/item/add`,
56
56
  method: "post",
57
57
  data: o
58
- }), et = (o) => window.$http.request({
58
+ }), ot = (o) => window.$http.request({
59
59
  url: `${window.$reportURL}/tds/report/item/put`,
60
60
  method: "put",
61
61
  data: o
62
- }), tt = (o) => window.$http.request({
62
+ }), lt = (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
- }), ot = (o) => window.$http.request({
67
+ }), nt = (o) => window.$http.request({
68
68
  url: `${window.$reportURL}/tds/report/sub/add`,
69
69
  method: "post",
70
70
  data: o
71
- }), lt = (o) => window.$http.request({
71
+ }), at = (o) => window.$http.request({
72
72
  url: `${window.$reportURL}/tds/report/sub/put`,
73
73
  method: "put",
74
74
  data: o
75
- }), nt = (o) => window.$http.request({
75
+ }), rt = (o) => window.$http.request({
76
76
  url: `${window.$reportURL}/tds/report/sub/delete`,
77
77
  method: "delete",
78
78
  data: o
79
- }), at = (o) => window.$http.request({
79
+ }), st = (o) => window.$http.request({
80
80
  url: `${window.$reportURL}/tds/report/sub/edit/state`,
81
81
  method: "post",
82
82
  data: o
83
- }), rt = (o) => window.$http.request({
83
+ }), it = (o) => window.$http.request({
84
84
  url: `${window.$reportURL}/tds/report/all`,
85
85
  method: "get",
86
86
  params: o,
87
87
  isError: !1
88
- }), st = (o) => window.$http.request({
88
+ }), ut = (o) => window.$http.request({
89
89
  url: `${window.$reportURL}/tds/report/sub/get_format`,
90
90
  method: "get",
91
91
  params: o,
92
92
  isError: !1
93
- }), it = (o) => window.$http.request({
93
+ }), pt = (o) => window.$http.request({
94
94
  url: `${window.$reportURL}/tds/report/filter/get_select_data`,
95
95
  method: "get",
96
96
  params: o,
97
97
  isError: !1
98
- }), fe = "rgba(51, 51, 51, 0.15)", B = "rgba(51, 51, 51, 1)", P = 12, ve = (o = !1) => {
98
+ }), ge = "rgba(51, 51, 51, 0.15)", j = "rgba(51, 51, 51, 1)", M = 12, he = (o = !1) => {
99
99
  const t = {
100
100
  // top: '2%',
101
101
  left: "3%",
@@ -125,12 +125,12 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
125
125
  "100, 161, 206",
126
126
  "246, 175, 159",
127
127
  "238, 97, 97"
128
- ], ut = (o, t, e = "", a = { name: "name", value: "value" }) => {
128
+ ], dt = (o, t, e = "", a = { name: "name", value: "value" }) => {
129
129
  const r = [], n = [];
130
130
  t.forEach((i) => {
131
131
  r.push(i[a.name]), n.push(i[a.value]);
132
132
  }), 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;
133
- }, G = (o = [
133
+ }, J = (o = [
134
134
  {
135
135
  name: "数据1",
136
136
  value: 63
@@ -174,7 +174,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
174
174
  // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
175
175
  // show: true,
176
176
  // },
177
- grid: ve(),
177
+ grid: he(),
178
178
  title: {
179
179
  show: !0,
180
180
  text: "样例数据",
@@ -194,7 +194,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
194
194
  nameRotate: 0,
195
195
  // 坐标轴名称旋转
196
196
  axisLabel: {
197
- color: B,
197
+ color: j,
198
198
  // X轴类目名称样式
199
199
  rotate: 0
200
200
  // X轴类目名称旋转角度
@@ -203,7 +203,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
203
203
  //X轴轴线设置
204
204
  show: !0,
205
205
  lineStyle: {
206
- color: fe,
206
+ color: ge,
207
207
  width: 1
208
208
  }
209
209
  },
@@ -222,8 +222,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
222
222
  // 坐标轴刻度最小值
223
223
  position: "left",
224
224
  nameTextStyle: {
225
- fontSize: P,
226
- color: B,
225
+ fontSize: M,
226
+ color: j,
227
227
  fontWeight: "bold"
228
228
  },
229
229
  axisLine: { show: !1 },
@@ -233,7 +233,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
233
233
  splitLine: { show: !1 },
234
234
  // 纵向分隔线
235
235
  axisLabel: {
236
- color: B,
236
+ color: j,
237
237
  // y轴刻度标签
238
238
  formatter: "{value}",
239
239
  inside: !1
@@ -282,14 +282,14 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
282
282
  }
283
283
  ]
284
284
  };
285
- }, pt = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
285
+ }, ct = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
286
286
  let a = 0;
287
287
  const r = t.map((n, i) => (a += Number(n[e.value]), {
288
288
  name: n[e.name],
289
289
  value: Number(n[e.value])
290
290
  }));
291
291
  t.length > 0 && (o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a);
292
- }, dt = () => A.map((o) => `rgba(${o}, 1)`), Y = ({
292
+ }, mt = () => A.map((o) => `rgba(${o}, 1)`), K = ({
293
293
  data: o = [
294
294
  {
295
295
  name: "数据1",
@@ -312,14 +312,14 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
312
312
  isTitle: i = !0
313
313
  }) => {
314
314
  const v = {
315
- color: dt(),
315
+ color: mt(),
316
316
  toolbox: { show: !1 },
317
317
  tooltip: {
318
318
  trigger: "item",
319
319
  show: !0,
320
- formatter: (p) => {
321
- const { name: y, value: f } = p;
322
- return `<div style="color: ${p.color}; font-size: 14px;">${y}&nbsp;&nbsp;&nbsp;</div>
320
+ formatter: (d) => {
321
+ const { name: b, value: f } = d;
322
+ return `<div style="color: ${d.color}; font-size: 14px;">${b}&nbsp;&nbsp;&nbsp;</div>
323
323
  <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${f}</span></div>`;
324
324
  }
325
325
  },
@@ -336,14 +336,14 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
336
336
  legend: {
337
337
  show: a,
338
338
  left: "70%",
339
- formatter: (p) => {
339
+ formatter: (d) => {
340
340
  var f;
341
- const y = (f = v.series[0]) == null ? void 0 : f.data.find((d) => d.name === p).value;
342
- return ` ${p} | ${y}`;
341
+ const b = (f = v.series[0]) == null ? void 0 : f.data.find((c) => c.name === d).value;
342
+ return ` ${d} | ${b}`;
343
343
  },
344
344
  textStyle: {
345
- fontSize: P,
346
- color: B
345
+ fontSize: M,
346
+ color: j
347
347
  },
348
348
  data: o,
349
349
  orient: "vertical",
@@ -392,8 +392,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
392
392
  borderWidth: 1,
393
393
  borderColor: "inherit",
394
394
  padding: [3, -3, 3, -3],
395
- formatter: function(p) {
396
- return `{a|${p.name}(${p.value})}`;
395
+ formatter: function(d) {
396
+ return `{a|${d.name}(${d.value})}`;
397
397
  },
398
398
  rich: {
399
399
  a: {
@@ -451,11 +451,11 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
451
451
  ]
452
452
  };
453
453
  return v;
454
- }, ct = (o, t, e = { name: "name", value: "value" }) => {
454
+ }, _t = (o, t, e = { name: "name", value: "value" }) => {
455
455
  o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
456
456
  o.series[r].data = t.map((n) => n[a.value]);
457
457
  }) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
458
- }, mt = () => ({
458
+ }, ft = () => ({
459
459
  name: "",
460
460
  type: "line",
461
461
  symbol: "circle",
@@ -501,7 +501,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
501
501
  }
502
502
  },
503
503
  data: []
504
- }), K = (o = [
504
+ }), G = (o = [
505
505
  {
506
506
  name: "2024-08",
507
507
  value: 63
@@ -533,24 +533,24 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
533
533
  show: !0,
534
534
  itemWidth: 30,
535
535
  textStyle: {
536
- color: B,
537
- fontSize: P,
536
+ color: j,
537
+ fontSize: M,
538
538
  padding: [0, 8, 0, 8]
539
539
  }
540
540
  },
541
- grid: ve(),
541
+ grid: he(),
542
542
  xAxis: {
543
543
  type: "category",
544
544
  splitLine: { show: !1 },
545
545
  axisTick: { show: !1 },
546
546
  axisLine: {
547
547
  show: !0,
548
- lineStyle: { color: fe }
548
+ lineStyle: { color: ge }
549
549
  },
550
550
  axisLabel: {
551
551
  show: !0,
552
- fontSize: P,
553
- color: B
552
+ fontSize: M,
553
+ color: j
554
554
  },
555
555
  boundaryGap: !1,
556
556
  data: o.map((n) => n[t.name])
@@ -562,42 +562,42 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
562
562
  axisLine: { show: !1 },
563
563
  axisTick: { show: !1 },
564
564
  nameTextStyle: {
565
- fontSize: P,
566
- color: B,
565
+ fontSize: M,
566
+ color: j,
567
567
  padding: [0, 60, 0, 0]
568
568
  },
569
569
  axisLabel: {
570
570
  show: !0,
571
- fontSize: P,
572
- color: B
571
+ fontSize: M,
572
+ color: j
573
573
  }
574
574
  },
575
575
  series: []
576
- }, a = mt(), r = [];
576
+ }, a = ft(), r = [];
577
577
  if (Array.isArray(t.value))
578
578
  t.value.forEach((n, i) => {
579
- const v = W(a);
580
- v.name = n.name, v.lineStyle.color = `rgba(${A[i]}, 1)`, v.itemStyle.color = `rgba(${A[i]}, 1)`, v.areaStyle.color.colorStops[0].color = `rgba(${A[i]}, 0.7)`, v.areaStyle.color.colorStops[1].color = `rgba(${A[i]}, 0.1)`, v.data = o.map((p) => p[n.value]), r.push(v);
579
+ const v = Y(a);
580
+ v.name = n.name, v.lineStyle.color = `rgba(${A[i]}, 1)`, v.itemStyle.color = `rgba(${A[i]}, 1)`, v.areaStyle.color.colorStops[0].color = `rgba(${A[i]}, 0.7)`, v.areaStyle.color.colorStops[1].color = `rgba(${A[i]}, 0.1)`, v.data = o.map((d) => d[n.value]), r.push(v);
581
581
  });
582
582
  else if (typeof t.value == "string") {
583
- const n = W(a);
583
+ const n = Y(a);
584
584
  n.data = o.map((i) => i[t.value]), r.push(n);
585
585
  }
586
586
  return e.series = r, e;
587
- }, le = [
587
+ }, ne = [
588
588
  { key: "assets", name: "资产名称" },
589
589
  { key: "type", name: "资产类型" },
590
590
  { key: "data", name: "资产数据" }
591
- ], ne = [
591
+ ], ae = [
592
592
  { assets: "name1", type: "type1", data: "data1" },
593
593
  { assets: "name2", type: "type2", data: "data2" },
594
594
  { assets: "name3", type: "type3", data: "data3" }
595
- ], Q = [
595
+ ], X = [
596
596
  { data: [{ name: "默认数据", value: 180 }], label: "name1" },
597
597
  { data: [{ name: "默认数据", value: 311 }], label: "name2" },
598
598
  { data: [{ name: "默认数据", value: 42 }], label: "name3" },
599
599
  { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
600
- ], _t = [
600
+ ], vt = [
601
601
  {
602
602
  data: 63,
603
603
  label: "数据1"
@@ -610,7 +610,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
610
610
  data: 43,
611
611
  label: "数据3"
612
612
  }
613
- ], ft = [
613
+ ], bt = [
614
614
  {
615
615
  type: "report-select",
616
616
  label: "资产:",
@@ -634,7 +634,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
634
634
  }
635
635
  ],
636
636
  uri: "/da/report/sens/get_asset_all",
637
- id: j()
637
+ id: P()
638
638
  },
639
639
  {
640
640
  type: "range-time",
@@ -644,7 +644,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
644
644
  end_time: "2024-09-12 19:49:34"
645
645
  }
646
646
  ],
647
- id: j()
647
+ id: P()
648
648
  },
649
649
  {
650
650
  type: "h1",
@@ -657,7 +657,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
657
657
  textIndent: 0,
658
658
  textAlign: "left"
659
659
  },
660
- id: j()
660
+ id: P()
661
661
  },
662
662
  {
663
663
  type: "h2",
@@ -671,12 +671,12 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
671
671
  textIndent: 0,
672
672
  textAlign: "left"
673
673
  },
674
- id: j()
674
+ id: P()
675
675
  },
676
676
  {
677
677
  type: "report-table",
678
- data: ne,
679
- showColumn: le,
678
+ data: ae,
679
+ showColumn: ne,
680
680
  name: "表格",
681
681
  options: {
682
682
  showColumn: {
@@ -689,9 +689,9 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
689
689
  stripe: !1
690
690
  },
691
691
  rp_item_uuid: "",
692
- id: j()
692
+ id: P()
693
693
  }
694
- ], vt = [
694
+ ], yt = [
695
695
  {
696
696
  type: "h1",
697
697
  data: "报表名称",
@@ -738,8 +738,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
738
738
  { type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
739
739
  {
740
740
  type: "report-table",
741
- data: ne,
742
- showColumn: le,
741
+ data: ae,
742
+ showColumn: ne,
743
743
  name: "表格",
744
744
  options: {
745
745
  border: !0,
@@ -756,45 +756,45 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
756
756
  },
757
757
  {
758
758
  type: "bar",
759
- data: Q,
759
+ data: X,
760
760
  showColumn: [{ key: "label", value: "data" }],
761
761
  name: "图表",
762
- options: G(),
762
+ options: J(),
763
763
  rp_item_uuid: "",
764
764
  id: ""
765
765
  }
766
- ], bt = (o) => ({
766
+ ], gt = (o) => ({
767
767
  bar: {
768
768
  type: "bar",
769
- data: Q,
769
+ data: X,
770
770
  showColumn: [{ key: "label", value: "data" }],
771
771
  name: "图表",
772
- options: G(),
772
+ options: J(),
773
773
  rp_item_uuid: "",
774
774
  id: ""
775
775
  },
776
776
  line: {
777
777
  type: "line",
778
- data: Q,
778
+ data: X,
779
779
  showColumn: [{ key: "label", value: "data" }],
780
780
  name: "图表",
781
- options: K(),
781
+ options: G(),
782
782
  rp_item_uuid: "",
783
783
  id: ""
784
784
  },
785
785
  pie: {
786
786
  type: "pie",
787
- data: _t,
787
+ data: vt,
788
788
  showColumn: [{ key: "label", value: "data" }],
789
789
  name: "图表",
790
- options: Y({ isLegend: !0 }),
790
+ options: K({ isLegend: !0 }),
791
791
  rp_item_uuid: "",
792
792
  id: ""
793
793
  },
794
794
  "report-table": {
795
795
  type: "report-table",
796
- data: ne,
797
- showColumn: le,
796
+ data: ae,
797
+ showColumn: ne,
798
798
  name: "表格",
799
799
  options: {
800
800
  showColumn: {
@@ -809,7 +809,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
809
809
  rp_item_uuid: "",
810
810
  id: ""
811
811
  }
812
- })[o], I = De("tds-report", {
812
+ })[o], z = Ie("tds-report", {
813
813
  state: () => ({
814
814
  componentList: [],
815
815
  activeComponents: {},
@@ -830,10 +830,10 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
830
830
  },
831
831
  async getReportDemo(o) {
832
832
  let t = [];
833
- o ? t = (await Ne({ report_uuid: o })).data : t = { content: W(ft), range_time: 1 };
833
+ o ? t = (await Ye({ report_uuid: o })).data : t = { content: Y(bt), range_time: 1 };
834
834
  const e = [];
835
835
  t.content.forEach((a) => {
836
- (a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = j();
836
+ (a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = P();
837
837
  }), 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;
838
838
  },
839
839
  setActiveComponents(o) {
@@ -846,85 +846,85 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
846
846
  };
847
847
  }
848
848
  }
849
- }), yt = { class: "catalogue" }, gt = ["href", "title"], ht = /* @__PURE__ */ T({
849
+ }), ht = { class: "catalogue" }, wt = ["href", "title"], Ct = /* @__PURE__ */ T({
850
850
  __name: "Catalogue",
851
851
  props: {
852
852
  data: { default: () => [] }
853
853
  },
854
854
  setup(o) {
855
- const t = o, e = D(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
855
+ const t = o, e = q(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
856
856
  return (a, r) => {
857
857
  const n = s("el-divider");
858
- return m(), x("div", yt, [
858
+ return _(), x("div", ht, [
859
859
  r[0] || (r[0] = V("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
860
- (m(!0), x(F, null, q(e.value, (i) => (m(), x("div", {
861
- class: M("level" + i.type),
860
+ (_(!0), x(F, null, I(e.value, (i) => (_(), x("div", {
861
+ class: O("level" + i.type),
862
862
  key: i.value
863
863
  }, [
864
- i.type === "h2" ? (m(), L(n, {
864
+ i.type === "h2" ? (_(), L(n, {
865
865
  key: 0,
866
866
  style: { "margin-top": "10px", "margin-bottom": "10px" }
867
- })) : E("", !0),
867
+ })) : U("", !0),
868
868
  V("a", {
869
869
  class: "el-anchor__link",
870
870
  href: "#" + i.id,
871
871
  title: i.data
872
- }, H(i.data), 9, gt)
872
+ }, B(i.data), 9, wt)
873
873
  ], 2))), 128))
874
874
  ]);
875
875
  };
876
876
  }
877
877
  });
878
- const J = (o, t) => {
878
+ const Q = (o, t) => {
879
879
  const e = o.__vccOpts || o;
880
880
  for (const [a, r] of t)
881
881
  e[a] = r;
882
882
  return e;
883
- }, wt = /* @__PURE__ */ J(ht, [["__scopeId", "data-v-1cd8aa2d"]]), Ct = {
883
+ }, xt = /* @__PURE__ */ Q(Ct, [["__scopeId", "data-v-1cd8aa2d"]]), $t = {
884
884
  class: "chart-components"
885
- }, be = /* @__PURE__ */ T({
885
+ }, we = /* @__PURE__ */ T({
886
886
  __name: "Bar",
887
887
  props: {
888
888
  value: {}
889
889
  },
890
890
  setup(o) {
891
- const t = o, e = D(() => t.value.options);
891
+ const t = o, e = q(() => t.value.options);
892
892
  return S(!1), (a, r) => {
893
893
  const n = s("TdsChart");
894
- return m(), x("div", Ct, [l(n, {
894
+ return _(), x("div", $t, [l(n, {
895
895
  option: e.value
896
896
  }, null, 8, ["option"])]);
897
897
  };
898
898
  }
899
- }), xt = { class: "chart-components" }, ye = /* @__PURE__ */ T({
899
+ }), kt = { class: "chart-components" }, Ce = /* @__PURE__ */ T({
900
900
  __name: "Line",
901
901
  props: {
902
902
  value: {}
903
903
  },
904
904
  setup(o) {
905
- const t = o, e = D(() => t.value.options);
905
+ const t = o, e = q(() => t.value.options);
906
906
  return (a, r) => {
907
907
  const n = s("TdsChart");
908
- return m(), x("div", xt, [
908
+ return _(), x("div", kt, [
909
909
  l(n, { option: e.value }, null, 8, ["option"])
910
910
  ]);
911
911
  };
912
912
  }
913
- }), $t = { class: "chart-components" }, ge = /* @__PURE__ */ T({
913
+ }), Vt = { class: "chart-components" }, xe = /* @__PURE__ */ T({
914
914
  __name: "Pie",
915
915
  props: {
916
916
  value: {}
917
917
  },
918
918
  setup(o) {
919
- const t = o, e = D(() => t.value.options);
919
+ const t = o, e = q(() => t.value.options);
920
920
  return (a, r) => {
921
921
  const n = s("TdsChart");
922
- return m(), x("div", $t, [
922
+ return _(), x("div", Vt, [
923
923
  l(n, { option: e.value }, null, 8, ["option"])
924
924
  ]);
925
925
  };
926
926
  }
927
- }), kt = { key: 0 }, X = /* @__PURE__ */ T({
927
+ }), St = { key: 0 }, Z = /* @__PURE__ */ T({
928
928
  __name: "ReportSelect",
929
929
  props: {
930
930
  value: {}
@@ -935,9 +935,9 @@ const J = (o, t) => {
935
935
  e("change", i);
936
936
  }, n = S(o.value);
937
937
  return (i, v) => {
938
- const p = s("el-option"), y = s("el-select");
939
- return n.value.data ? (m(), x("div", kt, [
940
- l(y, {
938
+ const d = s("el-option"), b = s("el-select");
939
+ return n.value.data ? (_(), x("div", St, [
940
+ l(b, {
941
941
  modelValue: n.value.value,
942
942
  "onUpdate:modelValue": v[0] || (v[0] = (f) => n.value.value = f),
943
943
  multiple: "",
@@ -945,8 +945,8 @@ const J = (o, t) => {
945
945
  onChange: a,
946
946
  placeholder: "全部"
947
947
  }, {
948
- default: u(() => [
949
- (m(!0), x(F, null, q(n.value.data, (f) => (m(), L(p, {
948
+ default: p(() => [
949
+ (_(!0), x(F, null, I(n.value.data, (f) => (_(), L(d, {
950
950
  key: f.data,
951
951
  label: f.label,
952
952
  value: f.data
@@ -954,10 +954,10 @@ const J = (o, t) => {
954
954
  ]),
955
955
  _: 1
956
956
  }, 8, ["modelValue"])
957
- ])) : E("", !0);
957
+ ])) : U("", !0);
958
958
  };
959
959
  }
960
- }), Z = /* @__PURE__ */ T({
960
+ }), ee = /* @__PURE__ */ T({
961
961
  __name: "RangeTime",
962
962
  props: {
963
963
  value: {}
@@ -968,14 +968,14 @@ const J = (o, t) => {
968
968
  function i(v) {
969
969
  v ? (r.value.data[0].start_time = v[0], r.value.data[0].end_time = v[1]) : n.value = [], e("change", n.value);
970
970
  }
971
- return te(() => {
971
+ return oe(() => {
972
972
  n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
973
- }), (v, p) => {
974
- const y = s("el-date-picker");
975
- return m(), x("div", null, [
976
- l(y, {
973
+ }), (v, d) => {
974
+ const b = s("el-date-picker");
975
+ return _(), x("div", null, [
976
+ l(b, {
977
977
  modelValue: n.value,
978
- "onUpdate:modelValue": p[0] || (p[0] = (f) => n.value = f),
978
+ "onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
979
979
  type: "datetimerange",
980
980
  placeholder: "Pick a Date",
981
981
  format: "YYYY-MM-DD HH:mm:ss",
@@ -987,10 +987,10 @@ const J = (o, t) => {
987
987
  };
988
988
  }
989
989
  });
990
- function Vt(o) {
991
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
990
+ function Tt(o) {
991
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
992
992
  }
993
- const he = /* @__PURE__ */ T({
993
+ const $e = /* @__PURE__ */ T({
994
994
  __name: "ReportTable",
995
995
  props: {
996
996
  value: {}
@@ -1003,16 +1003,16 @@ const he = /* @__PURE__ */ T({
1003
1003
  border: t.value.options.border,
1004
1004
  "show-header": !!t.value.options.showHeader,
1005
1005
  stripe: t.value.options.stripe
1006
- }, Vt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
1006
+ }, Tt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
1007
1007
  prop: n.key,
1008
1008
  label: n.name
1009
1009
  }, null) : null)) ? r : {
1010
1010
  default: () => [r]
1011
1011
  });
1012
1012
  };
1013
- return (a, r) => (m(), x("div", null, [l(e, ie(ue(a.value)), null, 16)]));
1013
+ return (a, r) => (_(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1014
1014
  }
1015
- }), ee = /* @__PURE__ */ T({
1015
+ }), te = /* @__PURE__ */ T({
1016
1016
  __name: "ReportText",
1017
1017
  props: {
1018
1018
  value: {}
@@ -1029,19 +1029,19 @@ const he = /* @__PURE__ */ T({
1029
1029
  "text-align": a.textAlign
1030
1030
  };
1031
1031
  };
1032
- return (a, r) => (m(), x("div", {
1033
- style: ke(e())
1034
- }, H(a.value.data), 5));
1032
+ return (a, r) => (_(), x("div", {
1033
+ style: Le(e())
1034
+ }, B(a.value.data), 5));
1035
1035
  }
1036
- }), St = { class: "chart-components" }, we = /* @__PURE__ */ T({
1036
+ }), Lt = { class: "chart-components" }, ke = /* @__PURE__ */ T({
1037
1037
  __name: "ReportChart",
1038
1038
  props: {
1039
1039
  value: {}
1040
1040
  },
1041
1041
  setup(o) {
1042
- const t = o, e = D(() => t.value), a = D(() => {
1042
+ const t = o, e = q(() => t.value), a = q(() => {
1043
1043
  if (e.value.type === "bar") {
1044
- e.value.options.series = G([]).series;
1044
+ e.value.options.series = J([]).series;
1045
1045
  const r = [];
1046
1046
  let n = "";
1047
1047
  e.value.data.forEach((i) => {
@@ -1049,40 +1049,40 @@ const he = /* @__PURE__ */ T({
1049
1049
  name: i.label,
1050
1050
  value: i.data[0].value
1051
1051
  });
1052
- }), ut(e.value.options, r, n);
1052
+ }), dt(e.value.options, r, n);
1053
1053
  }
1054
- if (e.value.type === "pie" && (e.value.options = Y({ isLegend: !0 }), console.log(Y({ isLegend: !0 }), "chartsPie({ isLegend: true })"), pt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1054
+ if (e.value.type === "pie" && (e.value.options = K({ isLegend: !0 }), console.log(K({ isLegend: !0 }), "chartsPie({ isLegend: true })"), ct({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1055
1055
  let r = [];
1056
1056
  e.value.data.forEach((v) => {
1057
- r = v.data.map((p, y) => ({ name: p.name, value: "value" + y }));
1057
+ r = v.data.map((d, b) => ({ name: d.name, value: "value" + b }));
1058
1058
  });
1059
1059
  const n = {
1060
1060
  name: "name",
1061
1061
  value: r
1062
1062
  }, i = e.value.data.map((v) => {
1063
- const p = {
1063
+ const d = {
1064
1064
  name: v.label
1065
1065
  };
1066
- return r.forEach((y, f) => {
1067
- p[y.value] = v.data[f].value;
1068
- }), p;
1066
+ return r.forEach((b, f) => {
1067
+ d[b.value] = v.data[f].value;
1068
+ }), d;
1069
1069
  });
1070
- console.log(K([], n), "chartsLine([], params)"), e.value.options.series = K([], n).series, ct(e.value.options, i, n);
1070
+ console.log(G([], n), "chartsLine([], params)"), e.value.options.series = G([], n).series, _t(e.value.options, i, n);
1071
1071
  }
1072
1072
  return e.value.options;
1073
1073
  });
1074
1074
  return (r, n) => {
1075
1075
  const i = s("TdsChart");
1076
- return m(), x("div", St, [
1076
+ return _(), x("div", Lt, [
1077
1077
  l(i, { option: a.value }, null, 8, ["option"])
1078
1078
  ]);
1079
1079
  };
1080
1080
  }
1081
1081
  });
1082
- function Tt(o) {
1083
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
1082
+ function Rt(o) {
1083
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
1084
1084
  }
1085
- const Ce = /* @__PURE__ */ T({
1085
+ const Ve = /* @__PURE__ */ T({
1086
1086
  __name: "ReportDescribe",
1087
1087
  props: {
1088
1088
  value: {}
@@ -1095,7 +1095,7 @@ const Ce = /* @__PURE__ */ T({
1095
1095
  border: t.value.options.border,
1096
1096
  column: t.value.options.column,
1097
1097
  direction: t.value.options.direction
1098
- }, Tt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
1098
+ }, Rt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
1099
1099
  label: n.name
1100
1100
  }, {
1101
1101
  default: () => [t.value.data[n.key]]
@@ -1103,21 +1103,21 @@ const Ce = /* @__PURE__ */ T({
1103
1103
  default: () => [r]
1104
1104
  });
1105
1105
  };
1106
- return (a, r) => (m(), x("div", null, [l(e, ie(ue(a.value)), null, 16)]));
1106
+ return (a, r) => (_(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1107
1107
  }
1108
- }), Lt = {
1108
+ }), Ut = {
1109
1109
  class: "editor-box"
1110
- }, Rt = {
1110
+ }, Et = {
1111
1111
  class: "editor",
1112
1112
  id: "editor",
1113
1113
  style: {
1114
1114
  width: "100%"
1115
1115
  }
1116
- }, Ut = {
1116
+ }, At = {
1117
1117
  class: "editor-content flex flex-start"
1118
- }, Et = ["id"], At = ["innerHTML"], Ft = /* @__PURE__ */ T({
1118
+ }, Ft = ["id"], Dt = ["innerHTML"], qt = /* @__PURE__ */ T({
1119
1119
  __name: "index",
1120
- props: /* @__PURE__ */ pe({
1120
+ props: /* @__PURE__ */ ce({
1121
1121
  reportId: {
1122
1122
  type: String,
1123
1123
  default: ""
@@ -1128,197 +1128,203 @@ const Ce = /* @__PURE__ */ T({
1128
1128
  }),
1129
1129
  emits: ["update:modelValue"],
1130
1130
  setup(o) {
1131
- const t = {
1132
- Bar: be,
1133
- Line: ye,
1134
- Pie: ge,
1135
- ReportSelect: X,
1136
- RangeTime: Z,
1137
- ReportTable: he,
1138
- ReportText: ee,
1139
- ReportChart: we,
1140
- ReportDescribe: Ce
1141
- }, e = I(), a = o, r = de(o, "modelValue"), n = S([]), i = S([]), v = S([]), p = S(""), y = S("");
1142
- function f() {
1143
- r.value = "table";
1131
+ const t = S(!1), e = {
1132
+ Bar: we,
1133
+ Line: Ce,
1134
+ Pie: xe,
1135
+ ReportSelect: Z,
1136
+ RangeTime: ee,
1137
+ ReportTable: $e,
1138
+ ReportText: te,
1139
+ ReportChart: ke,
1140
+ ReportDescribe: Ve
1141
+ }, a = z(), r = o, n = me(o, "modelValue"), i = S([]), v = S([]), d = S([]), b = S(""), f = S("");
1142
+ function c() {
1143
+ n.value = "table";
1144
1144
  }
1145
- const d = (b) => {
1146
- v.value = b, c();
1147
- }, w = (b) => {
1148
- b && b.length > 0 && (p.value = b[0], y.value = b[1]), c();
1149
- }, c = async () => {
1150
- const b = {
1151
- report_uuid: a.reportId,
1152
- start_time: p.value,
1153
- end_time: y.value,
1154
- select_data: v.value.join(",")
1155
- }, _ = await We(b), g = [];
1156
- _.data.forEach((k) => {
1157
- (k.type === "report-select" || k.type === "range-time") && g.push(k);
1158
- }), n.value = g, _.data.splice(0, n.value.length), i.value = _.data;
1145
+ const w = (u) => {
1146
+ d.value = u, g();
1147
+ }, m = (u) => {
1148
+ u && u.length > 0 && (b.value = u[0], f.value = u[1]), g();
1149
+ }, g = async () => {
1150
+ try {
1151
+ t.value = !0;
1152
+ const u = {
1153
+ report_uuid: r.reportId,
1154
+ start_time: b.value,
1155
+ end_time: f.value,
1156
+ select_data: d.value.join(",")
1157
+ }, y = await Ke(u), k = [];
1158
+ y.data.forEach((D) => {
1159
+ (D.type === "report-select" || D.type === "range-time") && k.push(D);
1160
+ }), i.value = k, y.data.splice(0, i.value.length), v.value = y.data, t.value = !1;
1161
+ } catch (u) {
1162
+ t.value = !1, console.error("Error setting loading state:", u);
1163
+ }
1159
1164
  };
1160
- c();
1161
- const C = () => l("div", null, [U("未找到对应组件")]), $ = (b) => b === "h2" || b === "h3" || b === "h4" ? z(t, "ReportText") : b === "bar" || b === "pie" || b === "line" ? z(t, "ReportChart") : b ? z(t, b) : l(C, null, null);
1162
- return (b, _) => {
1163
- const g = s("el-button"), k = s("el-card");
1164
- return m(), L(k, {
1165
- class: "editor view"
1165
+ g();
1166
+ const $ = () => l("div", null, [R("未找到对应组件")]), C = (u) => u === "h2" || u === "h3" || u === "h4" ? H(e, "ReportText") : u === "bar" || u === "pie" || u === "line" ? H(e, "ReportChart") : u ? H(e, u) : l($, null, null);
1167
+ return (u, y) => {
1168
+ const k = s("el-button"), D = s("el-card"), se = _e("loading");
1169
+ return fe((_(), L(D, {
1170
+ class: "editor view",
1171
+ "element-loading-text": "加载中..."
1166
1172
  }, {
1167
- default: u(() => [V("div", Lt, [l(wt, {
1168
- data: i.value
1169
- }, null, 8, ["data"]), V("div", Rt, [V("div", Ut, [(m(!0), x(F, null, q(n.value, (R) => (m(), x("div", {
1173
+ default: p(() => [V("div", Ut, [l(xt, {
1174
+ data: v.value
1175
+ }, null, 8, ["data"]), V("div", Et, [V("div", At, [(_(!0), x(F, null, I(i.value, (E) => (_(), x("div", {
1170
1176
  class: "item-input",
1171
- key: R.id
1172
- }, [R.type === "report-select" ? (m(), L(X, {
1177
+ key: E.id
1178
+ }, [E.type === "report-select" ? (_(), L(Z, {
1173
1179
  key: 0,
1174
- onChange: d,
1175
- value: R
1176
- }, null, 8, ["value"])) : E("", !0), R.type === "range-time" && h(e).filterForm.range_time ? (m(), L(Z, {
1177
- key: 1,
1178
1180
  onChange: w,
1179
- value: R
1180
- }, null, 8, ["value"])) : E("", !0)]))), 128)), l(g, {
1181
+ value: E
1182
+ }, null, 8, ["value"])) : U("", !0), E.type === "range-time" && h(a).filterForm.range_time ? (_(), L(ee, {
1183
+ key: 1,
1184
+ onChange: m,
1185
+ value: E
1186
+ }, null, 8, ["value"])) : U("", !0)]))), 128)), l(k, {
1181
1187
  plain: "",
1182
- onClick: f,
1188
+ onClick: c,
1183
1189
  type: "primary",
1184
1190
  class: "custom-btn",
1185
1191
  style: {
1186
1192
  "margin-left": "auto"
1187
1193
  }
1188
1194
  }, {
1189
- default: u(() => _[0] || (_[0] = [U("退出预览")])),
1195
+ default: p(() => y[0] || (y[0] = [R("退出预览")])),
1190
1196
  _: 1
1191
- })]), (m(!0), x(F, null, q(i.value, (R) => (m(), x("div", {
1192
- key: R.id,
1193
- class: M(["editor-content", ["editor" + R.type]]),
1194
- id: R.id
1195
- }, [R.type !== "p" ? (m(), L(O($(R.type)), {
1197
+ })]), (_(!0), x(F, null, I(v.value, (E) => (_(), x("div", {
1198
+ key: E.id,
1199
+ class: O(["editor-content", ["editor" + E.type]]),
1200
+ id: E.id
1201
+ }, [E.type !== "p" ? (_(), L(N(C(E.type)), {
1196
1202
  key: 0,
1197
- class: M(["editor" + R.type]),
1198
- value: R
1203
+ class: O(["editor" + E.type]),
1204
+ value: E
1199
1205
  }, {
1200
- default: u(() => [U(H(R.data), 1)]),
1206
+ default: p(() => [R(B(E.data), 1)]),
1201
1207
  _: 2
1202
- }, 1032, ["class", "value"])) : (m(), x("p", {
1208
+ }, 1032, ["class", "value"])) : (_(), x("p", {
1203
1209
  key: 1,
1204
- innerHTML: R.data
1205
- }, null, 8, At))], 10, Et))), 128))])])]),
1210
+ innerHTML: E.data
1211
+ }, null, 8, Dt))], 10, Ft))), 128))])])]),
1206
1212
  _: 1
1207
- });
1213
+ })), [[se, t.value]]);
1208
1214
  };
1209
1215
  }
1210
1216
  });
1211
- const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1217
+ const It = /* @__PURE__ */ Q(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1212
1218
  class: "editor"
1213
- }, It = {
1219
+ }, Ht = {
1214
1220
  class: "editor-content edit"
1215
- }, zt = ["onClick"], Ht = ["onClick"], Bt = ["innerHTML", "draggable"], jt = /* @__PURE__ */ T({
1221
+ }, Bt = ["onClick"], jt = ["onClick"], Pt = ["innerHTML", "draggable"], Mt = /* @__PURE__ */ T({
1216
1222
  __name: "Editor",
1217
1223
  setup(o) {
1218
1224
  const t = {
1219
- Bar: be,
1220
- Line: ye,
1221
- Pie: ge,
1222
- ReportSelect: X,
1223
- RangeTime: Z,
1224
- ReportTable: he,
1225
- ReportText: ee,
1226
- ReportChart: we,
1227
- ReportDescribe: Ce
1225
+ Bar: we,
1226
+ Line: Ce,
1227
+ Pie: xe,
1228
+ ReportSelect: Z,
1229
+ RangeTime: ee,
1230
+ ReportTable: $e,
1231
+ ReportText: te,
1232
+ ReportChart: ke,
1233
+ ReportDescribe: Ve
1228
1234
  }, {
1229
1235
  componentList: e,
1230
1236
  activeComponents: a,
1231
1237
  notDraggableList: r,
1232
1238
  titleComponent: n
1233
- } = qe(I()), i = I(), v = (b) => {
1234
- e.value.forEach((_, g) => {
1235
- _.id === b && (e.value.splice(g, 1), i.activeComponents = []);
1239
+ } = ze(z()), i = z(), v = (C) => {
1240
+ e.value.forEach((u, y) => {
1241
+ u.id === C && (e.value.splice(y, 1), i.activeComponents = []);
1236
1242
  });
1237
- }, p = (b) => {
1238
- i.setActiveComponents(b);
1239
- }, y = () => l("div", null, [U("未找到对应组件")]), f = (b) => b === "h2" || b === "h3" || b === "h4" ? z(t, "ReportText") : b === "bar" || b === "pie" || b === "line" ? z(t, "ReportChart") : b ? z(t, b) : l(y, null, null), d = (b) => {
1240
- console.log(b, "evt");
1241
- }, w = S(!1), c = () => {
1243
+ }, d = (C) => {
1244
+ i.setActiveComponents(C);
1245
+ }, b = () => l("div", null, [R("未找到对应组件")]), f = (C) => C === "h2" || C === "h3" || C === "h4" ? H(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? H(t, "ReportChart") : C ? H(t, C) : l(b, null, null), c = (C) => {
1246
+ console.log(C, "evt");
1247
+ }, w = S(!1), m = () => {
1242
1248
  w.value = !0;
1243
- }, C = (b) => {
1244
- b.newIndex !== 0 && (console.log(b), w.value = !1);
1249
+ }, g = (C) => {
1250
+ C.newIndex !== 0 && (console.log(C), w.value = !1);
1245
1251
  }, $ = S();
1246
- return (b, _) => {
1247
- const g = s("icon-material-symbols:cancel-outline");
1248
- return m(), x("div", qt, [V("div", {
1249
- class: M(["editor-content edit flex flex-start", [{
1252
+ return (C, u) => {
1253
+ const y = s("icon-material-symbols:cancel-outline");
1254
+ return _(), x("div", zt, [V("div", {
1255
+ class: O(["editor-content edit flex flex-start", [{
1250
1256
  active: h(a).id === "filter"
1251
1257
  }]]),
1252
- onClick: _[0] || (_[0] = (k) => p({
1258
+ onClick: u[0] || (u[0] = (k) => d({
1253
1259
  id: "filter",
1254
1260
  type: "filter"
1255
1261
  }))
1256
- }, [(m(!0), x(F, null, q(h(r), (k) => (m(), x("div", {
1262
+ }, [(_(!0), x(F, null, I(h(r), (k) => (_(), x("div", {
1257
1263
  class: "item-input",
1258
1264
  key: k.id
1259
- }, [k.type === "report-select" || k.type === "range-time" && h(i).filterForm.range_time ? (m(), L(O(h(z)(t, k.type)), {
1265
+ }, [k.type === "report-select" || k.type === "range-time" && h(i).filterForm.range_time ? (_(), L(N(h(H)(t, k.type)), {
1260
1266
  key: 0,
1261
1267
  value: k
1262
1268
  }, {
1263
- default: u(() => [U(H(k.data), 1)]),
1269
+ default: p(() => [R(B(k.data), 1)]),
1264
1270
  _: 2
1265
- }, 1032, ["value"])) : E("", !0)]))), 128))], 2), V("div", It, [l(ee, {
1271
+ }, 1032, ["value"])) : U("", !0)]))), 128))], 2), V("div", Ht, [l(te, {
1266
1272
  value: h(n),
1267
- onClick: _[1] || (_[1] = (k) => p(h(n)))
1268
- }, null, 8, ["value"])]), l(h(ze), {
1273
+ onClick: u[1] || (u[1] = (k) => d(h(n)))
1274
+ }, null, 8, ["value"])]), l(h(Be), {
1269
1275
  ref_key: "el",
1270
1276
  ref: $,
1271
1277
  modelValue: h(e),
1272
- "onUpdate:modelValue": _[2] || (_[2] = (k) => Ve(e) ? e.value = k : null),
1273
- "on-change": d,
1278
+ "onUpdate:modelValue": u[2] || (u[2] = (k) => Re(e) ? e.value = k : null),
1279
+ "on-change": c,
1274
1280
  animation: 150,
1275
- onStart: c,
1276
- onEnd: C
1281
+ onStart: m,
1282
+ onEnd: g
1277
1283
  }, {
1278
- default: u(() => [(m(!0), x(F, null, q(h(e), (k) => (m(), x("div", {
1284
+ default: p(() => [(_(!0), x(F, null, I(h(e), (k) => (_(), x("div", {
1279
1285
  key: k.id,
1280
- class: M(["editor-content edit", ["editor" + k.type, {
1286
+ class: O(["editor-content edit", ["editor" + k.type, {
1281
1287
  active: k.id === h(a).id
1282
1288
  }]]),
1283
- onClick: (R) => p(k)
1289
+ onClick: (D) => d(k)
1284
1290
  }, [V("i", {
1285
- onClick: Se((R) => v(k.id), ["stop"])
1286
- }, [l(g, {
1291
+ onClick: Ue((D) => v(k.id), ["stop"])
1292
+ }, [l(y, {
1287
1293
  class: "color-red"
1288
- })], 8, Ht), k.type !== "p" ? (m(), L(O(f(k.type)), {
1294
+ })], 8, jt), k.type !== "p" ? (_(), L(N(f(k.type)), {
1289
1295
  key: 0,
1290
- class: M(["editor" + k.type]),
1296
+ class: O(["editor" + k.type]),
1291
1297
  value: k,
1292
1298
  draggable: w.value
1293
1299
  }, {
1294
- default: u(() => [U(H(k.data), 1)]),
1300
+ default: p(() => [R(B(k.data), 1)]),
1295
1301
  _: 2
1296
- }, 1032, ["class", "value", "draggable"])) : (m(), x("p", {
1302
+ }, 1032, ["class", "value", "draggable"])) : (_(), x("p", {
1297
1303
  key: 1,
1298
1304
  innerHTML: k.data,
1299
1305
  draggable: w.value
1300
- }, null, 8, Bt))], 10, zt))), 128))]),
1306
+ }, null, 8, Pt))], 10, Bt))), 128))]),
1301
1307
  _: 1
1302
1308
  }, 8, ["modelValue"])]);
1303
1309
  };
1304
1310
  }
1305
- }), Pt = { class: "label" }, Mt = { class: "flex item-switch" }, Ot = { class: "flex item-switch" }, Nt = { class: "flex item-switch" }, xe = /* @__PURE__ */ T({
1311
+ }), Ot = { class: "label" }, Nt = { class: "flex item-switch" }, Wt = { class: "flex item-switch" }, Yt = { class: "flex item-switch" }, Se = /* @__PURE__ */ T({
1306
1312
  __name: "SettingTable",
1307
1313
  setup(o) {
1308
- const t = I(), e = D(() => t.getActiveComponents);
1314
+ const t = z(), e = q(() => t.getActiveComponents);
1309
1315
  return (a, r) => {
1310
1316
  const n = s("el-switch"), i = s("el-form-item"), v = s("el-divider");
1311
- return m(), x("div", null, [
1317
+ return _(), x("div", null, [
1312
1318
  l(i, { label: "控制列" }, {
1313
- default: u(() => [
1314
- (m(!0), x(F, null, q(e.value.showColumn, (p, y) => (m(), x("p", {
1319
+ default: p(() => [
1320
+ (_(!0), x(F, null, I(e.value.showColumn, (d, b) => (_(), x("p", {
1315
1321
  class: "flex item-switch",
1316
- key: y
1322
+ key: b
1317
1323
  }, [
1318
- V("span", Pt, H(p.name), 1),
1324
+ V("span", Ot, B(d.name), 1),
1319
1325
  l(n, {
1320
- modelValue: e.value.options.showColumn[p.key],
1321
- "onUpdate:modelValue": (f) => e.value.options.showColumn[p.key] = f
1326
+ modelValue: e.value.options.showColumn[d.key],
1327
+ "onUpdate:modelValue": (f) => e.value.options.showColumn[d.key] = f
1322
1328
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1323
1329
  ]))), 128))
1324
1330
  ]),
@@ -1326,26 +1332,26 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1326
1332
  }),
1327
1333
  l(v),
1328
1334
  l(i, { label: "表格样式" }, {
1329
- default: u(() => [
1330
- V("p", Mt, [
1335
+ default: p(() => [
1336
+ V("p", Nt, [
1331
1337
  r[3] || (r[3] = V("span", { class: "label" }, "斑马纹", -1)),
1332
1338
  l(n, {
1333
1339
  modelValue: e.value.options.stripe,
1334
- "onUpdate:modelValue": r[0] || (r[0] = (p) => e.value.options.stripe = p)
1340
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => e.value.options.stripe = d)
1335
1341
  }, null, 8, ["modelValue"])
1336
1342
  ]),
1337
- V("p", Ot, [
1343
+ V("p", Wt, [
1338
1344
  r[4] || (r[4] = V("span", { class: "label" }, "边框", -1)),
1339
1345
  l(n, {
1340
1346
  modelValue: e.value.options.border,
1341
- "onUpdate:modelValue": r[1] || (r[1] = (p) => e.value.options.border = p)
1347
+ "onUpdate:modelValue": r[1] || (r[1] = (d) => e.value.options.border = d)
1342
1348
  }, null, 8, ["modelValue"])
1343
1349
  ]),
1344
- V("p", Nt, [
1350
+ V("p", Yt, [
1345
1351
  r[5] || (r[5] = V("span", { class: "label" }, "表头", -1)),
1346
1352
  l(n, {
1347
1353
  modelValue: e.value.options.showHeader,
1348
- "onUpdate:modelValue": r[2] || (r[2] = (p) => e.value.options.showHeader = p)
1354
+ "onUpdate:modelValue": r[2] || (r[2] = (d) => e.value.options.showHeader = d)
1349
1355
  }, null, 8, ["modelValue"])
1350
1356
  ])
1351
1357
  ]),
@@ -1354,18 +1360,18 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1354
1360
  ]);
1355
1361
  };
1356
1362
  }
1357
- }), Wt = { key: 0 }, Yt = /* @__PURE__ */ T({
1363
+ }), Kt = { key: 0 }, Gt = /* @__PURE__ */ T({
1358
1364
  __name: "ChartsUniConfig",
1359
1365
  setup(o) {
1360
- const t = I(), e = D(() => t.activeComponents);
1366
+ const t = z(), e = q(() => t.activeComponents);
1361
1367
  function a(r) {
1362
1368
  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);
1363
1369
  }
1364
1370
  return S("rgb(46, 145, 255)"), (r, n) => {
1365
- const i = s("el-input"), v = s("el-form-item"), p = s("el-switch"), y = s("el-col"), f = s("el-color-picker"), d = s("el-input-number"), w = s("el-row"), c = s("el-collapse-item"), C = s("el-collapse");
1366
- return e.value.options.title ? (m(), x("div", Wt, [
1371
+ const i = s("el-input"), v = s("el-form-item"), d = s("el-switch"), b = s("el-col"), f = s("el-color-picker"), c = s("el-input-number"), w = s("el-row"), m = s("el-collapse-item"), g = s("el-collapse");
1372
+ return e.value.options.title ? (_(), x("div", Kt, [
1367
1373
  l(v, { label: "标题" }, {
1368
- default: u(() => [
1374
+ default: p(() => [
1369
1375
  l(i, {
1370
1376
  modelValue: e.value.options.title.text,
1371
1377
  "onUpdate:modelValue": n[0] || (n[0] = ($) => e.value.options.title.text = $)
@@ -1373,27 +1379,27 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1373
1379
  ]),
1374
1380
  _: 1
1375
1381
  }),
1376
- l(C, null, {
1377
- default: u(() => [
1378
- l(c, {
1382
+ l(g, null, {
1383
+ default: p(() => [
1384
+ l(m, {
1379
1385
  title: "标题配置",
1380
1386
  name: "1"
1381
1387
  }, {
1382
- default: u(() => [
1388
+ default: p(() => [
1383
1389
  l(w, { class: "w-100%" }, {
1384
- default: u(() => [
1385
- l(y, { span: 24 }, {
1386
- default: u(() => [
1390
+ default: p(() => [
1391
+ l(b, { span: 24 }, {
1392
+ default: p(() => [
1387
1393
  n[8] || (n[8] = V("span", { class: "switch-label" }, "显示标题", -1)),
1388
- l(p, {
1394
+ l(d, {
1389
1395
  modelValue: e.value.options.title.show,
1390
1396
  "onUpdate:modelValue": n[1] || (n[1] = ($) => e.value.options.title.show = $)
1391
1397
  }, null, 8, ["modelValue"])
1392
1398
  ]),
1393
1399
  _: 1
1394
1400
  }),
1395
- l(y, { span: 12 }, {
1396
- default: u(() => [
1401
+ l(b, { span: 12 }, {
1402
+ default: p(() => [
1397
1403
  l(f, {
1398
1404
  modelValue: e.value.options.title.textStyle.color,
1399
1405
  "onUpdate:modelValue": n[2] || (n[2] = ($) => e.value.options.title.textStyle.color = $),
@@ -1403,9 +1409,9 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1403
1409
  ]),
1404
1410
  _: 1
1405
1411
  }),
1406
- l(y, { span: 12 }, {
1407
- default: u(() => [
1408
- l(d, {
1412
+ l(b, { span: 12 }, {
1413
+ default: p(() => [
1414
+ l(c, {
1409
1415
  modelValue: e.value.options.title.textStyle.fontSize,
1410
1416
  "onUpdate:modelValue": n[3] || (n[3] = ($) => e.value.options.title.textStyle.fontSize = $),
1411
1417
  "controls-position": "right"
@@ -1414,9 +1420,9 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1414
1420
  ]),
1415
1421
  _: 1
1416
1422
  }),
1417
- l(y, { span: 12 }, {
1418
- default: u(() => [
1419
- l(d, {
1423
+ l(b, { span: 12 }, {
1424
+ default: p(() => [
1425
+ l(c, {
1420
1426
  modelValue: e.value.options.title.x,
1421
1427
  "onUpdate:modelValue": n[4] || (n[4] = ($) => e.value.options.title.x = $),
1422
1428
  "controls-position": "right"
@@ -1425,9 +1431,9 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1425
1431
  ]),
1426
1432
  _: 1
1427
1433
  }),
1428
- l(y, { span: 12 }, {
1429
- default: u(() => [
1430
- l(d, {
1434
+ l(b, { span: 12 }, {
1435
+ default: p(() => [
1436
+ l(c, {
1431
1437
  modelValue: e.value.options.title.y,
1432
1438
  "onUpdate:modelValue": n[5] || (n[5] = ($) => e.value.options.title.y = $),
1433
1439
  "controls-position": "right"
@@ -1442,17 +1448,17 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1442
1448
  ]),
1443
1449
  _: 1
1444
1450
  }),
1445
- l(c, {
1451
+ l(m, {
1446
1452
  title: "图形配置",
1447
1453
  name: "2"
1448
1454
  }, {
1449
- default: u(() => [
1450
- e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), L(w, { key: 0 }, {
1451
- default: u(() => [
1452
- l(y, { span: 24 }, {
1453
- default: u(() => [
1455
+ default: p(() => [
1456
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (_(), L(w, { key: 0 }, {
1457
+ default: p(() => [
1458
+ l(b, { span: 24 }, {
1459
+ default: p(() => [
1454
1460
  n[13] || (n[13] = V("span", { class: "switch-label" }, "玫瑰图", -1)),
1455
- l(p, {
1461
+ l(d, {
1456
1462
  onChange: a,
1457
1463
  modelValue: e.value.options.series[0].roseType,
1458
1464
  "onUpdate:modelValue": n[6] || (n[6] = ($) => e.value.options.series[0].roseType = $)
@@ -1462,25 +1468,25 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1462
1468
  })
1463
1469
  ]),
1464
1470
  _: 1
1465
- })) : E("", !0)
1471
+ })) : U("", !0)
1466
1472
  ]),
1467
1473
  _: 1
1468
1474
  }),
1469
- l(c, {
1475
+ l(m, {
1470
1476
  title: "图例配置",
1471
1477
  name: "3"
1472
1478
  }, {
1473
- default: u(() => [
1479
+ default: p(() => [
1474
1480
  l(w, null, {
1475
- default: u(() => [
1476
- l(y, { span: 24 }, {
1477
- default: u(() => [
1481
+ default: p(() => [
1482
+ l(b, { span: 24 }, {
1483
+ default: p(() => [
1478
1484
  n[14] || (n[14] = V("span", { class: "switch-label" }, "显示图例", -1)),
1479
- e.value.options.legend ? (m(), L(p, {
1485
+ e.value.options.legend ? (_(), L(d, {
1480
1486
  key: 0,
1481
1487
  modelValue: e.value.options.legend.show,
1482
1488
  "onUpdate:modelValue": n[7] || (n[7] = ($) => e.value.options.legend.show = $)
1483
- }, null, 8, ["modelValue"])) : E("", !0)
1489
+ }, null, 8, ["modelValue"])) : U("", !0)
1484
1490
  ]),
1485
1491
  _: 1
1486
1492
  })
@@ -1493,40 +1499,40 @@ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1493
1499
  ]),
1494
1500
  _: 1
1495
1501
  })
1496
- ])) : E("", !0);
1502
+ ])) : U("", !0);
1497
1503
  };
1498
1504
  }
1499
1505
  });
1500
- const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @__PURE__ */ T({
1506
+ const Jt = /* @__PURE__ */ Q(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @__PURE__ */ T({
1501
1507
  __name: "SettingDescribe",
1502
1508
  setup(o) {
1503
- const t = I(), e = D(() => t.getActiveComponents);
1509
+ const t = z(), e = q(() => t.getActiveComponents);
1504
1510
  return (a, r) => {
1505
- const n = s("el-input"), i = s("el-form-item"), v = s("el-switch"), p = s("el-input-number"), y = s("el-radio"), f = s("el-radio-group");
1506
- return m(), x("div", null, [
1511
+ const n = s("el-input"), i = s("el-form-item"), v = s("el-switch"), d = s("el-input-number"), b = s("el-radio"), f = s("el-radio-group");
1512
+ return _(), x("div", null, [
1507
1513
  l(i, { label: "标题" }, {
1508
- default: u(() => [
1514
+ default: p(() => [
1509
1515
  l(n, {
1510
1516
  modelValue: e.value.options.title,
1511
- "onUpdate:modelValue": r[0] || (r[0] = (d) => e.value.options.title = d)
1517
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => e.value.options.title = c)
1512
1518
  }, null, 8, ["modelValue"])
1513
1519
  ]),
1514
1520
  _: 1
1515
1521
  }),
1516
1522
  l(i, { label: "边框" }, {
1517
- default: u(() => [
1523
+ default: p(() => [
1518
1524
  l(v, {
1519
1525
  modelValue: e.value.options.border,
1520
- "onUpdate:modelValue": r[1] || (r[1] = (d) => e.value.options.border = d)
1526
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => e.value.options.border = c)
1521
1527
  }, null, 8, ["modelValue"])
1522
1528
  ]),
1523
1529
  _: 1
1524
1530
  }),
1525
1531
  l(i, { label: "每行展示数量" }, {
1526
- default: u(() => [
1527
- l(p, {
1532
+ default: p(() => [
1533
+ l(d, {
1528
1534
  modelValue: e.value.options.column,
1529
- "onUpdate:modelValue": r[2] || (r[2] = (d) => e.value.options.column = d),
1535
+ "onUpdate:modelValue": r[2] || (r[2] = (c) => e.value.options.column = c),
1530
1536
  min: 1,
1531
1537
  max: 10,
1532
1538
  controls: !1
@@ -1535,21 +1541,21 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1535
1541
  _: 1
1536
1542
  }),
1537
1543
  l(i, { label: "排列方向" }, {
1538
- default: u(() => [
1544
+ default: p(() => [
1539
1545
  l(f, {
1540
1546
  modelValue: e.value.options.direction,
1541
- "onUpdate:modelValue": r[3] || (r[3] = (d) => e.value.options.direction = d)
1547
+ "onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
1542
1548
  }, {
1543
- default: u(() => [
1544
- l(y, { value: "horizontal" }, {
1545
- default: u(() => r[4] || (r[4] = [
1546
- U("横向")
1549
+ default: p(() => [
1550
+ l(b, { value: "horizontal" }, {
1551
+ default: p(() => r[4] || (r[4] = [
1552
+ R("横向")
1547
1553
  ])),
1548
1554
  _: 1
1549
1555
  }),
1550
- l(y, { value: "vertical" }, {
1551
- default: u(() => r[5] || (r[5] = [
1552
- U("纵向")
1556
+ l(b, { value: "vertical" }, {
1557
+ default: p(() => r[5] || (r[5] = [
1558
+ R("纵向")
1553
1559
  ])),
1554
1560
  _: 1
1555
1561
  })
@@ -1562,10 +1568,10 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1562
1568
  ]);
1563
1569
  };
1564
1570
  }
1565
- }), Gt = /* @__PURE__ */ T({
1571
+ }), Qt = /* @__PURE__ */ T({
1566
1572
  __name: "SettingCharts",
1567
1573
  setup(o) {
1568
- const t = I(), e = S(!1), a = D(() => t.getActiveComponents), r = [
1574
+ const t = z(), e = S(!1), a = q(() => t.getActiveComponents), r = [
1569
1575
  { value: "report-describe", name: "描述列表" },
1570
1576
  { value: "report-table", name: "表格" },
1571
1577
  { value: "line", name: "趋势图" },
@@ -1573,68 +1579,68 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1573
1579
  { value: "bar", name: "柱状图" }
1574
1580
  ], n = S(""), i = S();
1575
1581
  async function v(f) {
1576
- const d = await me({
1582
+ const c = await be({
1577
1583
  prod_type: window.$prodType,
1578
1584
  chart_type: f,
1579
1585
  filter_uuid: t.filterForm.filter_uuid
1580
1586
  });
1581
- i.value = d.data;
1587
+ i.value = c.data;
1582
1588
  }
1583
- function p(f) {
1584
- let d = i.value.find((c) => c.rp_item_uuid === f);
1585
- const w = d.rp_item_content;
1586
- if (d.rp_item_content.type === "bar" && (w.options = G()), w.type === "pie" && (w.options = Y({ isLegend: !0 })), w.type === "line") {
1587
- let c = [];
1589
+ function d(f) {
1590
+ let c = i.value.find((m) => m.rp_item_uuid === f);
1591
+ const w = c.rp_item_content;
1592
+ if (c.rp_item_content.type === "bar" && (w.options = J()), w.type === "pie" && (w.options = K({ isLegend: !0 })), w.type === "line") {
1593
+ let m = [];
1588
1594
  w.data.forEach(($) => {
1589
- c = $.data.map((b, _) => ({ name: b.name, value: "value" + _ }));
1595
+ m = $.data.map((C, u) => ({ name: C.name, value: "value" + u }));
1590
1596
  });
1591
- const C = {
1597
+ const g = {
1592
1598
  name: "name",
1593
- value: c
1599
+ value: m
1594
1600
  };
1595
- w.options = K([], C);
1601
+ w.options = G([], g);
1596
1602
  }
1597
1603
  if (w.type === "report-table") {
1598
- const c = {};
1599
- w.showColumn.forEach((C) => {
1600
- c[C.key] = !0;
1601
- }), w.options = { ...w.options, showColumn: c, border: !0, showHeader: !0, stripe: !1 };
1604
+ const m = {};
1605
+ w.showColumn.forEach((g) => {
1606
+ m[g.key] = !0;
1607
+ }), w.options = { ...w.options, showColumn: m, border: !0, showHeader: !0, stripe: !1 };
1602
1608
  }
1603
- w.type === "report-describe" && (w.options = { ...w.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, w), t.activeComponents.rp_item_uuid = d.rp_item_uuid;
1609
+ w.type === "report-describe" && (w.options = { ...w.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, w), t.activeComponents.rp_item_uuid = c.rp_item_uuid;
1604
1610
  }
1605
- te(async () => {
1611
+ oe(async () => {
1606
1612
  n.value = a.value.type, await v(n.value);
1607
1613
  });
1608
- async function y(f) {
1614
+ async function b(f) {
1609
1615
  try {
1610
- e.value = !0, await v(f), Object.assign(t.activeComponents, bt(f)), e.value = !1;
1616
+ e.value = !0, await v(f), Object.assign(t.activeComponents, gt(f)), e.value = !1;
1611
1617
  } catch {
1612
1618
  e.value = !1;
1613
1619
  }
1614
1620
  }
1615
- return Te(
1621
+ return Ee(
1616
1622
  () => a.value,
1617
1623
  (f) => {
1618
1624
  console.log(f, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(f.type) && (n.value = a.value.type, v(n.value));
1619
1625
  }
1620
- ), (f, d) => {
1621
- const w = s("el-option"), c = s("el-select"), C = s("el-form-item"), $ = s("el-form"), b = Le("loading");
1622
- return Re((m(), x("div", null, [
1626
+ ), (f, c) => {
1627
+ const w = s("el-option"), m = s("el-select"), g = s("el-form-item"), $ = s("el-form"), C = _e("loading");
1628
+ return fe((_(), x("div", null, [
1623
1629
  l($, { "label-position": "top" }, {
1624
- default: u(() => [
1625
- l(C, { label: "图表类型" }, {
1626
- default: u(() => [
1627
- l(c, {
1630
+ default: p(() => [
1631
+ l(g, { label: "图表类型" }, {
1632
+ default: p(() => [
1633
+ l(m, {
1628
1634
  style: { width: "100%" },
1629
1635
  modelValue: n.value,
1630
- "onUpdate:modelValue": d[0] || (d[0] = (_) => n.value = _),
1631
- onChange: y
1636
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
1637
+ onChange: b
1632
1638
  }, {
1633
- default: u(() => [
1634
- (m(), x(F, null, q(r, (_, g) => l(w, {
1635
- key: g,
1636
- label: _.name,
1637
- value: _.value
1639
+ default: p(() => [
1640
+ (_(), x(F, null, I(r, (u, y) => l(w, {
1641
+ key: y,
1642
+ label: u.name,
1643
+ value: u.value
1638
1644
  }, null, 8, ["label", "value"])), 64))
1639
1645
  ]),
1640
1646
  _: 1
@@ -1642,19 +1648,19 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1642
1648
  ]),
1643
1649
  _: 1
1644
1650
  }),
1645
- l(C, { label: "组件库" }, {
1646
- default: u(() => [
1647
- l(c, {
1651
+ l(g, { label: "组件库" }, {
1652
+ default: p(() => [
1653
+ l(m, {
1648
1654
  style: { width: "100%" },
1649
1655
  modelValue: h(t).activeComponents.rp_item_uuid,
1650
- "onUpdate:modelValue": d[1] || (d[1] = (_) => h(t).activeComponents.rp_item_uuid = _),
1651
- onChange: p
1656
+ "onUpdate:modelValue": c[1] || (c[1] = (u) => h(t).activeComponents.rp_item_uuid = u),
1657
+ onChange: d
1652
1658
  }, {
1653
- default: u(() => [
1654
- (m(!0), x(F, null, q(i.value, (_, g) => (m(), L(w, {
1655
- key: g,
1656
- label: _.rp_item_name,
1657
- value: _.rp_item_uuid
1659
+ default: p(() => [
1660
+ (_(!0), x(F, null, I(i.value, (u, y) => (_(), L(w, {
1661
+ key: y,
1662
+ label: u.rp_item_name,
1663
+ value: u.rp_item_uuid
1658
1664
  }, null, 8, ["label", "value"]))), 128))
1659
1665
  ]),
1660
1666
  _: 1
@@ -1662,27 +1668,27 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1662
1668
  ]),
1663
1669
  _: 1
1664
1670
  }),
1665
- n.value === "report-table" && a.value.options.showColumn ? (m(), L(xe, { key: 0 })) : E("", !0),
1666
- n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), L(Kt, { key: 1 })) : E("", !0),
1667
- n.value === "report-describe" ? (m(), L($e, { key: 2 })) : E("", !0)
1671
+ n.value === "report-table" && a.value.options.showColumn ? (_(), L(Se, { key: 0 })) : U("", !0),
1672
+ n.value === "pie" || n.value === "bar" || n.value === "line" ? (_(), L(Jt, { key: 1 })) : U("", !0),
1673
+ n.value === "report-describe" ? (_(), L(Te, { key: 2 })) : U("", !0)
1668
1674
  ]),
1669
1675
  _: 1
1670
1676
  })
1671
1677
  ])), [
1672
- [b, e.value]
1678
+ [C, e.value]
1673
1679
  ]);
1674
1680
  };
1675
1681
  }
1676
- }), Jt = { key: 0 }, Qt = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, re = "default", Xt = /* @__PURE__ */ T({
1682
+ }), Xt = { key: 0 }, Zt = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", eo = /* @__PURE__ */ T({
1677
1683
  __name: "SettingText",
1678
1684
  setup(o) {
1679
- const t = I(), e = Ue(), a = S();
1685
+ const t = z(), e = Ae(), a = S();
1680
1686
  function r(f) {
1681
- const d = a.value.find((w) => w.rp_item_uuid === f);
1682
- t.activeComponents.uri = d.rp_item_content.uri, e.value.setHtml((d == null ? void 0 : d.rp_item_content.data) || "");
1687
+ const c = a.value.find((w) => w.rp_item_uuid === f);
1688
+ t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
1683
1689
  }
1684
1690
  async function n() {
1685
- const f = await me({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1691
+ const f = await be({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1686
1692
  a.value = f.data;
1687
1693
  }
1688
1694
  n();
@@ -1708,31 +1714,31 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1708
1714
  "justifyJustify",
1709
1715
  "lineHeight"
1710
1716
  ]
1711
- }, v = { placeholder: "请输入内容..." }, p = (f) => {
1717
+ }, v = { placeholder: "请输入内容..." }, d = (f) => {
1712
1718
  e.value = f;
1713
- }, y = (f) => {
1719
+ }, b = (f) => {
1714
1720
  };
1715
- return Ee(() => {
1721
+ return Fe(() => {
1716
1722
  const f = e.value;
1717
1723
  f != null && f.destroy();
1718
- }), (f, d) => {
1719
- const w = s("el-option"), c = s("el-select"), C = s("el-form-item"), $ = s("el-form");
1720
- return h(t).activeComponents.id ? (m(), x("div", Jt, [
1724
+ }), (f, c) => {
1725
+ const w = s("el-option"), m = s("el-select"), g = s("el-form-item"), $ = s("el-form");
1726
+ return h(t).activeComponents.id ? (_(), x("div", Xt, [
1721
1727
  l($, { "label-position": "top" }, {
1722
- default: u(() => [
1723
- l(C, { label: "组件库" }, {
1724
- default: u(() => [
1725
- l(c, {
1728
+ default: p(() => [
1729
+ l(g, { label: "组件库" }, {
1730
+ default: p(() => [
1731
+ l(m, {
1726
1732
  style: { width: "100%" },
1727
1733
  modelValue: h(t).activeComponents.rp_item_uuid,
1728
- "onUpdate:modelValue": d[0] || (d[0] = (b) => h(t).activeComponents.rp_item_uuid = b),
1734
+ "onUpdate:modelValue": c[0] || (c[0] = (C) => h(t).activeComponents.rp_item_uuid = C),
1729
1735
  onChange: r
1730
1736
  }, {
1731
- default: u(() => [
1732
- (m(!0), x(F, null, q(a.value, (b, _) => (m(), L(w, {
1733
- key: _,
1734
- label: b.rp_item_name,
1735
- value: b.rp_item_uuid
1737
+ default: p(() => [
1738
+ (_(!0), x(F, null, I(a.value, (C, u) => (_(), L(w, {
1739
+ key: u,
1740
+ label: C.rp_item_name,
1741
+ value: C.rp_item_uuid
1736
1742
  }, null, 8, ["label", "value"]))), 128))
1737
1743
  ]),
1738
1744
  _: 1
@@ -1740,23 +1746,23 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1740
1746
  ]),
1741
1747
  _: 1
1742
1748
  }),
1743
- l(C, { label: "文本内容" }, {
1744
- default: u(() => [
1745
- V("div", Qt, [
1746
- l(h(He), {
1749
+ l(g, { label: "文本内容" }, {
1750
+ default: p(() => [
1751
+ V("div", Zt, [
1752
+ l(h(je), {
1747
1753
  style: { "border-bottom": "1px solid #ccc" },
1748
1754
  editor: e.value,
1749
1755
  "default-config": i,
1750
- mode: re
1756
+ mode: ie
1751
1757
  }, null, 8, ["editor"]),
1752
- l(h(Be), {
1758
+ l(h(Pe), {
1753
1759
  style: { height: "500px", "overflow-y": "hidden" },
1754
- onOnChange: y,
1760
+ onOnChange: b,
1755
1761
  modelValue: h(t).activeComponents.data,
1756
- "onUpdate:modelValue": d[1] || (d[1] = (b) => h(t).activeComponents.data = b),
1762
+ "onUpdate:modelValue": c[1] || (c[1] = (C) => h(t).activeComponents.data = C),
1757
1763
  "default-config": v,
1758
- mode: re,
1759
- onOnCreated: p
1764
+ mode: ie,
1765
+ onOnCreated: d
1760
1766
  }, null, 8, ["modelValue"])
1761
1767
  ])
1762
1768
  ]),
@@ -1765,36 +1771,36 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1765
1771
  ]),
1766
1772
  _: 1
1767
1773
  })
1768
- ])) : E("", !0);
1774
+ ])) : U("", !0);
1769
1775
  };
1770
1776
  }
1771
- }), Zt = /* @__PURE__ */ T({
1777
+ }), to = /* @__PURE__ */ T({
1772
1778
  __name: "SettingFilter",
1773
1779
  setup(o) {
1774
- const t = S([]), e = I();
1780
+ const t = S([]), e = z();
1775
1781
  async function a() {
1776
- const r = await _e({ prod_type: window.$prodType });
1782
+ const r = await ye({ prod_type: window.$prodType });
1777
1783
  t.value = r.data;
1778
1784
  }
1779
1785
  return a(), (r, n) => {
1780
- const i = s("el-option"), v = s("el-select"), p = s("el-form-item"), y = s("el-checkbox"), f = s("el-form");
1781
- return m(), L(f, {
1786
+ const i = s("el-option"), v = s("el-select"), d = s("el-form-item"), b = s("el-checkbox"), f = s("el-form");
1787
+ return _(), L(f, {
1782
1788
  "label-width": "80px",
1783
1789
  "label-position": "top"
1784
1790
  }, {
1785
- default: u(() => [
1786
- l(p, { label: "筛选条件" }, {
1787
- default: u(() => [
1791
+ default: p(() => [
1792
+ l(d, { label: "筛选条件" }, {
1793
+ default: p(() => [
1788
1794
  l(v, {
1789
1795
  modelValue: h(e).filterForm.filter_uuid,
1790
- "onUpdate:modelValue": n[0] || (n[0] = (d) => h(e).filterForm.filter_uuid = d),
1796
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => h(e).filterForm.filter_uuid = c),
1791
1797
  disabled: !!h(e).filterForm.filter_uuid
1792
1798
  }, {
1793
- default: u(() => [
1794
- (m(!0), x(F, null, q(t.value, (d) => (m(), L(i, {
1795
- key: d.filter_uuid,
1796
- label: d.filter_name,
1797
- value: d.filter_uuid
1799
+ default: p(() => [
1800
+ (_(!0), x(F, null, I(t.value, (c) => (_(), L(i, {
1801
+ key: c.filter_uuid,
1802
+ label: c.filter_name,
1803
+ value: c.filter_uuid
1798
1804
  }, null, 8, ["label", "value"]))), 128))
1799
1805
  ]),
1800
1806
  _: 1
@@ -1802,11 +1808,11 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1802
1808
  ]),
1803
1809
  _: 1
1804
1810
  }),
1805
- l(p, null, {
1806
- default: u(() => [
1807
- l(y, {
1811
+ l(d, null, {
1812
+ default: p(() => [
1813
+ l(b, {
1808
1814
  modelValue: h(e).filterForm.range_time,
1809
- "onUpdate:modelValue": n[1] || (n[1] = (d) => h(e).filterForm.range_time = d),
1815
+ "onUpdate:modelValue": n[1] || (n[1] = (c) => h(e).filterForm.range_time = c),
1810
1816
  "true-value": 1,
1811
1817
  "false-value": 0,
1812
1818
  label: "时间范围"
@@ -1819,22 +1825,22 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1819
1825
  });
1820
1826
  };
1821
1827
  }
1822
- }), eo = /* @__PURE__ */ T({
1828
+ }), oo = /* @__PURE__ */ T({
1823
1829
  __name: "SettingTitle",
1824
1830
  setup(o) {
1825
- const t = I();
1831
+ const t = z();
1826
1832
  return (e, a) => {
1827
- const r = s("el-input"), n = s("el-form-item"), i = s("el-color-picker"), v = s("el-col"), p = s("el-input-number"), y = s("el-option"), f = s("el-select"), d = s("el-row"), w = s("el-form");
1828
- return m(), L(w, {
1833
+ const r = s("el-input"), n = s("el-form-item"), i = s("el-color-picker"), v = s("el-col"), d = s("el-input-number"), b = s("el-option"), f = s("el-select"), c = s("el-row"), w = s("el-form");
1834
+ return _(), L(w, {
1829
1835
  "label-width": "auto",
1830
1836
  "label-position": "top"
1831
1837
  }, {
1832
- default: u(() => [
1838
+ default: p(() => [
1833
1839
  l(n, { label: "名称" }, {
1834
- default: u(() => [
1840
+ default: p(() => [
1835
1841
  l(r, {
1836
1842
  modelValue: h(t).activeComponents.data,
1837
- "onUpdate:modelValue": a[0] || (a[0] = (c) => h(t).activeComponents.data = c),
1843
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => h(t).activeComponents.data = m),
1838
1844
  placeholder: "Please input",
1839
1845
  maxlength: "24",
1840
1846
  "show-word-limit": ""
@@ -1843,14 +1849,14 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1843
1849
  _: 1
1844
1850
  }),
1845
1851
  l(n, { label: "样式" }, {
1846
- default: u(() => [
1847
- l(d, { gutter: 20 }, {
1848
- default: u(() => [
1852
+ default: p(() => [
1853
+ l(c, { gutter: 20 }, {
1854
+ default: p(() => [
1849
1855
  l(v, { span: 12 }, {
1850
- default: u(() => [
1856
+ default: p(() => [
1851
1857
  l(i, {
1852
1858
  modelValue: h(t).activeComponents.options.color,
1853
- "onUpdate:modelValue": a[1] || (a[1] = (c) => h(t).activeComponents.options.color = c),
1859
+ "onUpdate:modelValue": a[1] || (a[1] = (m) => h(t).activeComponents.options.color = m),
1854
1860
  "show-alpha": ""
1855
1861
  }, null, 8, ["modelValue"]),
1856
1862
  a[7] || (a[7] = V("p", { class: "sub-title" }, "颜色", -1))
@@ -1858,10 +1864,10 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1858
1864
  _: 1
1859
1865
  }),
1860
1866
  l(v, { span: 12 }, {
1861
- default: u(() => [
1862
- l(p, {
1867
+ default: p(() => [
1868
+ l(d, {
1863
1869
  modelValue: h(t).activeComponents.options.size,
1864
- "onUpdate:modelValue": a[2] || (a[2] = (c) => h(t).activeComponents.options.size = c),
1870
+ "onUpdate:modelValue": a[2] || (a[2] = (m) => h(t).activeComponents.options.size = m),
1865
1871
  "controls-position": "right"
1866
1872
  }, null, 8, ["modelValue"]),
1867
1873
  a[8] || (a[8] = V("p", { class: "sub-title" }, "字体大小", -1))
@@ -1869,17 +1875,17 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1869
1875
  _: 1
1870
1876
  }),
1871
1877
  l(v, { span: 12 }, {
1872
- default: u(() => [
1878
+ default: p(() => [
1873
1879
  l(f, {
1874
1880
  modelValue: h(t).activeComponents.options.fontWeight,
1875
- "onUpdate:modelValue": a[3] || (a[3] = (c) => h(t).activeComponents.options.fontWeight = c)
1881
+ "onUpdate:modelValue": a[3] || (a[3] = (m) => h(t).activeComponents.options.fontWeight = m)
1876
1882
  }, {
1877
- default: u(() => [
1878
- l(y, {
1883
+ default: p(() => [
1884
+ l(b, {
1879
1885
  label: "常规",
1880
1886
  value: 500
1881
1887
  }),
1882
- l(y, {
1888
+ l(b, {
1883
1889
  label: "加粗",
1884
1890
  value: 600
1885
1891
  })
@@ -1891,10 +1897,10 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1891
1897
  _: 1
1892
1898
  }),
1893
1899
  l(v, { span: 12 }, {
1894
- default: u(() => [
1895
- l(p, {
1900
+ default: p(() => [
1901
+ l(d, {
1896
1902
  modelValue: h(t).activeComponents.options.letterSpacing,
1897
- "onUpdate:modelValue": a[4] || (a[4] = (c) => h(t).activeComponents.options.letterSpacing = c),
1903
+ "onUpdate:modelValue": a[4] || (a[4] = (m) => h(t).activeComponents.options.letterSpacing = m),
1898
1904
  "controls-position": "right"
1899
1905
  }, null, 8, ["modelValue"]),
1900
1906
  a[10] || (a[10] = V("p", { class: "sub-title" }, "字间距", -1))
@@ -1902,10 +1908,10 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1902
1908
  _: 1
1903
1909
  }),
1904
1910
  l(v, { span: 12 }, {
1905
- default: u(() => [
1906
- l(p, {
1911
+ default: p(() => [
1912
+ l(d, {
1907
1913
  modelValue: h(t).activeComponents.options.textIndent,
1908
- "onUpdate:modelValue": a[5] || (a[5] = (c) => h(t).activeComponents.options.textIndent = c),
1914
+ "onUpdate:modelValue": a[5] || (a[5] = (m) => h(t).activeComponents.options.textIndent = m),
1909
1915
  "controls-position": "right"
1910
1916
  }, null, 8, ["modelValue"]),
1911
1917
  a[11] || (a[11] = V("p", { class: "sub-title" }, "首行缩进", -1))
@@ -1913,21 +1919,21 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1913
1919
  _: 1
1914
1920
  }),
1915
1921
  l(v, { span: 12 }, {
1916
- default: u(() => [
1922
+ default: p(() => [
1917
1923
  l(f, {
1918
1924
  modelValue: h(t).activeComponents.options.textAlign,
1919
- "onUpdate:modelValue": a[6] || (a[6] = (c) => h(t).activeComponents.options.textAlign = c)
1925
+ "onUpdate:modelValue": a[6] || (a[6] = (m) => h(t).activeComponents.options.textAlign = m)
1920
1926
  }, {
1921
- default: u(() => [
1922
- l(y, {
1927
+ default: p(() => [
1928
+ l(b, {
1923
1929
  label: "左对齐",
1924
1930
  value: "left"
1925
1931
  }),
1926
- l(y, {
1932
+ l(b, {
1927
1933
  label: "居中对齐",
1928
1934
  value: "center"
1929
1935
  }),
1930
- l(y, {
1936
+ l(b, {
1931
1937
  label: "右对齐",
1932
1938
  value: "right"
1933
1939
  })
@@ -1950,30 +1956,30 @@ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @_
1950
1956
  };
1951
1957
  }
1952
1958
  });
1953
- const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @__PURE__ */ T({
1959
+ const lo = /* @__PURE__ */ Q(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @__PURE__ */ T({
1954
1960
  __name: "Setting",
1955
1961
  setup(o) {
1956
1962
  const t = {
1957
- SettingTable: xe,
1958
- SettingCharts: Gt,
1959
- SettingDescribe: $e,
1960
- SettingText: Xt,
1961
- SettingFilter: Zt,
1962
- SettingTitle: to
1963
- }, e = I(), a = D(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], i = ["report-table", "bar", "line", "pie", "report-describe"], v = (p) => r.includes(p) ? z(t, "SettingTitle") : n.includes(p) ? z(t, "SettingText") : i.includes(p) ? z(t, "SettingCharts") : p === "filter" ? z(t, "SettingFilter") : "DefaultEditor";
1964
- return (p, y) => {
1963
+ SettingTable: Se,
1964
+ SettingCharts: Qt,
1965
+ SettingDescribe: Te,
1966
+ SettingText: eo,
1967
+ SettingFilter: to,
1968
+ SettingTitle: lo
1969
+ }, e = z(), a = q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], i = ["report-table", "bar", "line", "pie", "report-describe"], v = (d) => r.includes(d) ? H(t, "SettingTitle") : n.includes(d) ? H(t, "SettingText") : i.includes(d) ? H(t, "SettingCharts") : d === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
1970
+ return (d, b) => {
1965
1971
  const f = s("el-card");
1966
- return m(), L(f, { class: "config-wrapper" }, {
1967
- default: u(() => [
1968
- (m(), L(O(v(a.value.type))))
1972
+ return _(), L(f, { class: "config-wrapper" }, {
1973
+ default: p(() => [
1974
+ (_(), L(N(v(a.value.type))))
1969
1975
  ]),
1970
1976
  _: 1
1971
1977
  });
1972
1978
  };
1973
1979
  }
1974
- }), lo = { class: "editor-wrapper flex items-center space-between start" }, no = { class: "flex" }, ao = { class: "btn-group" }, ro = /* @__PURE__ */ T({
1980
+ }), ao = { class: "editor-wrapper flex items-center space-between start" }, ro = { class: "flex" }, so = { class: "btn-group" }, io = /* @__PURE__ */ T({
1975
1981
  __name: "index",
1976
- props: /* @__PURE__ */ pe({
1982
+ props: /* @__PURE__ */ ce({
1977
1983
  reportId: {
1978
1984
  type: String,
1979
1985
  default: ""
@@ -1984,9 +1990,9 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
1984
1990
  }),
1985
1991
  emits: ["update:modelValue"],
1986
1992
  setup(o) {
1987
- const t = I(), e = o, a = de(o, "modelValue"), r = (p) => {
1988
- const y = W(p);
1989
- y.id = j(), t.componentList.push(y);
1993
+ const t = z(), e = o, a = me(o, "modelValue"), r = (d) => {
1994
+ const b = Y(d);
1995
+ b.id = P(), t.componentList.push(b);
1990
1996
  };
1991
1997
  function n() {
1992
1998
  a.value = "table";
@@ -1994,16 +2000,16 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
1994
2000
  function i() {
1995
2001
  t.getReportDemo(e.reportId);
1996
2002
  }
1997
- te(() => {
2003
+ oe(() => {
1998
2004
  i();
1999
2005
  });
2000
2006
  async function v() {
2001
2007
  if (!t.filterForm.filter_uuid) {
2002
- Ie.error("请选择筛选条件");
2008
+ He.error("请选择筛选条件");
2003
2009
  return;
2004
2010
  }
2005
2011
  try {
2006
- e.reportId ? await Ke({
2012
+ e.reportId ? await Je({
2007
2013
  report_uuid: e.reportId,
2008
2014
  data: {
2009
2015
  report_name: t.titleComponent.data,
@@ -2011,7 +2017,7 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
2011
2017
  content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
2012
2018
  ...t.filterForm
2013
2019
  }
2014
- }) : await Ye({
2020
+ }) : await Ge({
2015
2021
  data: {
2016
2022
  report_name: t.titleComponent.data,
2017
2023
  prod_type: window.$prodType,
@@ -2019,30 +2025,30 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
2019
2025
  ...t.filterForm
2020
2026
  }
2021
2027
  }), n();
2022
- } catch (p) {
2023
- console.log(p, "error");
2028
+ } catch (d) {
2029
+ console.log(d, "error");
2024
2030
  }
2025
2031
  }
2026
- return Ae(() => {
2032
+ return De(() => {
2027
2033
  t.clearComponents();
2028
- }), (p, y) => {
2029
- const f = s("el-button"), d = s("el-button-group"), w = s("el-card");
2030
- return m(), x("div", lo, [
2034
+ }), (d, b) => {
2035
+ const f = s("el-button"), c = s("el-button-group"), w = s("el-card");
2036
+ return _(), x("div", ao, [
2031
2037
  l(w, { class: "view-wrapper" }, {
2032
- default: u(() => [
2033
- V("div", no, [
2034
- V("div", ao, [
2035
- l(d, null, {
2036
- default: u(() => [
2037
- (m(!0), x(F, null, q(h(vt), (c) => (m(), x(F, {
2038
- key: c.type
2038
+ default: p(() => [
2039
+ V("div", ro, [
2040
+ V("div", so, [
2041
+ l(c, null, {
2042
+ default: p(() => [
2043
+ (_(!0), x(F, null, I(h(yt), (m) => (_(), x(F, {
2044
+ key: m.type
2039
2045
  }, [
2040
- c != null && c.hide ? E("", !0) : (m(), L(f, {
2046
+ m != null && m.hide ? U("", !0) : (_(), L(f, {
2041
2047
  key: 0,
2042
- onClick: (C) => r(c)
2048
+ onClick: (g) => r(m)
2043
2049
  }, {
2044
- default: u(() => [
2045
- U(H(c.name), 1)
2050
+ default: p(() => [
2051
+ R(B(m.name), 1)
2046
2052
  ]),
2047
2053
  _: 2
2048
2054
  }, 1032, ["onClick"]))
@@ -2051,20 +2057,20 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
2051
2057
  _: 1
2052
2058
  })
2053
2059
  ]),
2054
- l(d, null, {
2055
- default: u(() => [
2060
+ l(c, null, {
2061
+ default: p(() => [
2056
2062
  l(f, {
2057
2063
  type: "primary",
2058
2064
  onClick: v
2059
2065
  }, {
2060
- default: u(() => y[0] || (y[0] = [
2061
- U("保存")
2066
+ default: p(() => b[0] || (b[0] = [
2067
+ R("保存")
2062
2068
  ])),
2063
2069
  _: 1
2064
2070
  }),
2065
2071
  l(f, { onClick: n }, {
2066
- default: u(() => y[1] || (y[1] = [
2067
- U("退出")
2072
+ default: p(() => b[1] || (b[1] = [
2073
+ R("退出")
2068
2074
  ])),
2069
2075
  _: 1
2070
2076
  })
@@ -2072,39 +2078,39 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
2072
2078
  _: 1
2073
2079
  })
2074
2080
  ]),
2075
- l(jt)
2081
+ l(Mt)
2076
2082
  ]),
2077
2083
  _: 1
2078
2084
  }),
2079
- l(oo)
2085
+ l(no)
2080
2086
  ]);
2081
2087
  };
2082
2088
  }
2083
- }), so = {
2089
+ }), uo = {
2084
2090
  class: "table-box"
2085
- }, io = /* @__PURE__ */ T({
2091
+ }, po = /* @__PURE__ */ T({
2086
2092
  __name: "Report",
2087
2093
  emits: ["click"],
2088
2094
  setup(o, {
2089
2095
  emit: t
2090
2096
  }) {
2091
- const e = D(() => ({
2097
+ const e = q(() => ({
2092
2098
  prod_type: window.$prodType
2093
- })), a = S(), r = t, n = (d) => {
2094
- r("click", d.report_uuid, "review");
2095
- }, i = (d) => {
2096
- r("click", d.report_uuid, "editor");
2099
+ })), a = S(), r = t, n = (c) => {
2100
+ r("click", c.report_uuid, "review");
2101
+ }, i = (c) => {
2102
+ r("click", c.report_uuid, "editor");
2097
2103
  }, v = () => {
2098
2104
  r("click", "", "editor");
2099
- }, p = (d) => {
2100
- console.log(d);
2101
- }, y = (d) => {
2105
+ }, d = (c) => {
2106
+ console.log(c);
2107
+ }, b = (c) => {
2102
2108
  window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2103
- await Je({
2104
- report_uuids: d
2109
+ await Xe({
2110
+ report_uuids: c
2105
2111
  }), a.value.getTableList();
2106
2112
  });
2107
- }, f = N([
2113
+ }, f = W([
2108
2114
  // { type: 'selection', fixed: 'left', width: 70 },
2109
2115
  {
2110
2116
  type: "selection",
@@ -2131,58 +2137,58 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
2131
2137
  name: "操作",
2132
2138
  align: "center",
2133
2139
  fixed: "right",
2134
- render: (d) => l("div", null, [l(s("el-button"), {
2140
+ render: (c) => l("div", null, [l(s("el-button"), {
2135
2141
  link: !0,
2136
2142
  type: "primary",
2137
2143
  class: "custom-btn",
2138
2144
  icon: "View",
2139
2145
  title: "预览",
2140
- onClick: () => n(d.row)
2146
+ onClick: () => n(c.row)
2141
2147
  }, null), l(s("el-button"), {
2142
2148
  link: !0,
2143
2149
  type: "primary",
2144
2150
  class: "custom-btn",
2145
2151
  icon: "Edit",
2146
2152
  title: "编辑",
2147
- onClick: () => i(d.row)
2153
+ onClick: () => i(c.row)
2148
2154
  }, null), l(s("el-button"), {
2149
2155
  link: !0,
2150
2156
  type: "danger",
2151
2157
  icon: "Delete",
2152
2158
  title: "删除",
2153
- onClick: () => y([d.row.report_uuid])
2159
+ onClick: () => b([c.row.report_uuid])
2154
2160
  }, null)])
2155
2161
  }
2156
2162
  ]);
2157
- return (d, w) => {
2158
- const c = s("el-button"), C = s("TdsTable");
2159
- return m(), x("div", so, [l(C, {
2163
+ return (c, w) => {
2164
+ const m = s("el-button"), g = s("TdsTable");
2165
+ return _(), x("div", uo, [l(g, {
2160
2166
  ref_key: "proTable",
2161
2167
  ref: a,
2162
2168
  columns: f,
2163
- "request-api": h(Ge),
2169
+ "request-api": h(Qe),
2164
2170
  "init-param": e.value,
2165
2171
  "row-key": "report_uuid",
2166
- options: d.$tableOptions(),
2172
+ options: c.$tableOptions(),
2167
2173
  "search-col": 6,
2168
- onSelectionChange: p
2174
+ onSelectionChange: d
2169
2175
  }, {
2170
- tableHeader: u(($) => [l(c, {
2176
+ tableHeader: p(($) => [l(m, {
2171
2177
  plain: "",
2172
2178
  type: "primary",
2173
2179
  class: "custom-btn",
2174
2180
  icon: "Plus",
2175
2181
  onClick: v
2176
2182
  }, {
2177
- default: u(() => w[0] || (w[0] = [U("添加")])),
2183
+ default: p(() => w[0] || (w[0] = [R("添加")])),
2178
2184
  _: 1
2179
- }), l(c, {
2185
+ }), l(m, {
2180
2186
  plain: "",
2181
2187
  type: "danger",
2182
2188
  icon: "Delete",
2183
- onClick: (b) => y($.selectedListIds)
2189
+ onClick: (C) => b($.selectedListIds)
2184
2190
  }, {
2185
- default: u(() => w[1] || (w[1] = [U("删除")])),
2191
+ default: p(() => w[1] || (w[1] = [R("删除")])),
2186
2192
  _: 2
2187
2193
  }, 1032, ["onClick"])]),
2188
2194
  _: 1
@@ -2190,39 +2196,39 @@ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @_
2190
2196
  };
2191
2197
  }
2192
2198
  });
2193
- const uo = { style: { height: "100%" } }, po = /* @__PURE__ */ T({
2199
+ const co = { style: { height: "100%" } }, mo = /* @__PURE__ */ T({
2194
2200
  name: "TCReport",
2195
2201
  __name: "index",
2196
2202
  setup(o) {
2197
2203
  const t = S(), e = S("table"), a = (r, n) => {
2198
2204
  t.value = r, e.value = n;
2199
2205
  };
2200
- return (r, n) => (m(), x("div", uo, [
2201
- l(Fe, { name: "slide-fade" }, {
2202
- default: u(() => [
2203
- e.value === "table" ? (m(), L(io, {
2206
+ return (r, n) => (_(), x("div", co, [
2207
+ l(qe, { name: "slide-fade" }, {
2208
+ default: p(() => [
2209
+ e.value === "table" ? (_(), L(po, {
2204
2210
  key: 0,
2205
2211
  onClick: a
2206
- })) : E("", !0),
2207
- e.value === "review" ? (m(), L(Dt, {
2212
+ })) : U("", !0),
2213
+ e.value === "review" ? (_(), L(It, {
2208
2214
  key: 1,
2209
2215
  "report-id": t.value,
2210
2216
  modelValue: e.value,
2211
2217
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.value = i)
2212
- }, null, 8, ["report-id", "modelValue"])) : E("", !0),
2213
- e.value === "editor" ? (m(), L(ro, {
2218
+ }, null, 8, ["report-id", "modelValue"])) : U("", !0),
2219
+ e.value === "editor" ? (_(), L(io, {
2214
2220
  key: 2,
2215
2221
  "report-id": t.value,
2216
2222
  modelValue: e.value,
2217
2223
  "onUpdate:modelValue": n[1] || (n[1] = (i) => e.value = i)
2218
- }, null, 8, ["report-id", "modelValue"])) : E("", !0)
2224
+ }, null, 8, ["report-id", "modelValue"])) : U("", !0)
2219
2225
  ]),
2220
2226
  _: 1
2221
2227
  })
2222
2228
  ]));
2223
2229
  }
2224
2230
  });
2225
- const ae = (o, t) => {
2231
+ const re = (o, t) => {
2226
2232
  if (o.install = (e) => {
2227
2233
  for (const a of [o, ...Object.values(t ?? {})])
2228
2234
  e.component(a.name, a);
@@ -2230,7 +2236,7 @@ const ae = (o, t) => {
2230
2236
  for (const [e, a] of Object.entries(t))
2231
2237
  o[e] = a;
2232
2238
  return o;
2233
- }, co = ae(po), mo = [
2239
+ }, _o = re(mo), fo = [
2234
2240
  {
2235
2241
  label: "正文",
2236
2242
  value: "p"
@@ -2255,7 +2261,7 @@ const ae = (o, t) => {
2255
2261
  label: "描述列表",
2256
2262
  value: "report-describe"
2257
2263
  }
2258
- ], _o = [
2264
+ ], vo = [
2259
2265
  {
2260
2266
  value: "p",
2261
2267
  fields: ["table_key_relation"]
@@ -2280,49 +2286,49 @@ const ae = (o, t) => {
2280
2286
  value: "report-describe",
2281
2287
  fields: ["p_text"]
2282
2288
  }
2283
- ], fo = {
2289
+ ], bo = {
2284
2290
  class: "table-box"
2285
- }, vo = /* @__PURE__ */ T({
2291
+ }, yo = /* @__PURE__ */ T({
2286
2292
  name: "TCModule",
2287
2293
  __name: "index",
2288
2294
  setup(o) {
2289
- const t = S(), e = S(), a = S({}), r = S(""), n = N({
2295
+ const t = S(), e = S(), a = S({}), r = S(""), n = W({
2290
2296
  prod_type: window.$prodType
2291
2297
  });
2292
- function i(c) {
2298
+ function i(m) {
2293
2299
  window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2294
- await Xe({
2295
- rp_item_uuids: c
2300
+ await et({
2301
+ rp_item_uuids: m
2296
2302
  }), t.value.getTableList();
2297
2303
  });
2298
2304
  }
2299
- function v(c) {
2300
- a.value = c ? Object.assign({}, c) : {
2305
+ function v(m) {
2306
+ a.value = m ? Object.assign({}, m) : {
2301
2307
  table_key_relation: [{
2302
2308
  name: "",
2303
2309
  key: "",
2304
2310
  id: (/* @__PURE__ */ new Date()).getTime()
2305
2311
  }]
2306
- }, r.value = c ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2312
+ }, r.value = m ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2307
2313
  }
2308
- async function p(c) {
2309
- const C = Object.assign({}, c);
2310
- C.chart_type !== "report-table" && C.chart_type !== "report-describe" && delete C.table_key_relation, C.chart_type !== "p" && (C.p_text = ""), C.rp_item_uuid ? await et({
2311
- rp_item_uuid: C.rp_item_uuid,
2312
- data: C
2313
- }) : (C.prod_type = window.$prodType, await Ze({
2314
- data: C
2314
+ async function d(m) {
2315
+ const g = Object.assign({}, m);
2316
+ g.chart_type !== "report-table" && g.chart_type !== "report-describe" && delete g.table_key_relation, g.chart_type !== "p" && (g.p_text = ""), g.rp_item_uuid ? await ot({
2317
+ rp_item_uuid: g.rp_item_uuid,
2318
+ data: g
2319
+ }) : (g.prod_type = window.$prodType, await tt({
2320
+ data: g
2315
2321
  })), t.value.getTableList(), e.value.close();
2316
2322
  }
2317
- const y = (c) => {
2318
- a.value.table_key_relation.splice(c, 1);
2323
+ const b = (m) => {
2324
+ a.value.table_key_relation.splice(m, 1);
2319
2325
  }, f = () => {
2320
2326
  a.value.table_key_relation.push({
2321
2327
  name: "",
2322
2328
  key: "",
2323
2329
  id: (/* @__PURE__ */ new Date()).getTime()
2324
2330
  });
2325
- }, w = N([{
2331
+ }, w = W([{
2326
2332
  type: "selection",
2327
2333
  width: 60,
2328
2334
  field: "rp_item_uuid",
@@ -2339,7 +2345,7 @@ const ae = (o, t) => {
2339
2345
  }, {
2340
2346
  field: "filter_uuid",
2341
2347
  name: "筛选条件",
2342
- enum: () => _e({
2348
+ enum: () => ye({
2343
2349
  prod_type: window.$prodType
2344
2350
  }),
2345
2351
  fieldNames: {
@@ -2355,10 +2361,10 @@ const ae = (o, t) => {
2355
2361
  }, {
2356
2362
  field: "chart_type",
2357
2363
  name: "组件类型",
2358
- enum: mo,
2364
+ enum: fo,
2359
2365
  show: {
2360
2366
  type: "select",
2361
- display: _o
2367
+ display: vo
2362
2368
  },
2363
2369
  rules: [{
2364
2370
  required: !0
@@ -2378,7 +2384,7 @@ const ae = (o, t) => {
2378
2384
  hide: !0,
2379
2385
  show: {
2380
2386
  render: () => {
2381
- var c;
2387
+ var m;
2382
2388
  return l("div", {
2383
2389
  style: "width:80%"
2384
2390
  }, [l("div", {
@@ -2386,9 +2392,9 @@ const ae = (o, t) => {
2386
2392
  style: "gap:15px;"
2387
2393
  }, [l("span", {
2388
2394
  style: "width:50%"
2389
- }, [U("表头名称")]), l("span", {
2395
+ }, [R("表头名称")]), l("span", {
2390
2396
  style: "width:50%"
2391
- }, [U("KEY")])]), (c = a.value.table_key_relation) == null ? void 0 : c.map((C, $) => l("div", {
2397
+ }, [R("KEY")])]), (m = a.value.table_key_relation) == null ? void 0 : m.map((g, $) => l("div", {
2392
2398
  class: "flex items-center space-between form-m0 w-100%",
2393
2399
  style: "gap:15px;margin-bottom:10px;",
2394
2400
  key: $
@@ -2396,8 +2402,8 @@ const ae = (o, t) => {
2396
2402
  style: "width:50%"
2397
2403
  }, {
2398
2404
  default: () => [l(s("el-input"), {
2399
- modelValue: C.name,
2400
- "onUpdate:modelValue": (b) => C.name = b,
2405
+ modelValue: g.name,
2406
+ "onUpdate:modelValue": (C) => g.name = C,
2401
2407
  class: "",
2402
2408
  placeholder: "表头"
2403
2409
  }, null)]
@@ -2405,23 +2411,23 @@ const ae = (o, t) => {
2405
2411
  style: "width:50%"
2406
2412
  }, {
2407
2413
  default: () => [l(s("el-input"), {
2408
- modelValue: C.key,
2409
- "onUpdate:modelValue": (b) => C.key = b,
2414
+ modelValue: g.key,
2415
+ "onUpdate:modelValue": (C) => g.key = C,
2410
2416
  class: "",
2411
2417
  placeholder: "KEY"
2412
2418
  }, null)]
2413
2419
  }), a.value.table_key_relation.length > 1 && l("div", {
2414
2420
  class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
2415
2421
  }, [l(s("el-icon"), {
2416
- onClick: () => y($)
2422
+ onClick: () => b($)
2417
2423
  }, {
2418
- default: () => [l(je, null, null)]
2424
+ default: () => [l(Me, null, null)]
2419
2425
  })])])), l(s("el-button"), {
2420
2426
  class: "report-btn ",
2421
2427
  icon: "Plus",
2422
2428
  onClick: () => f()
2423
2429
  }, {
2424
- default: () => [U("新增表头与KEY")]
2430
+ default: () => [R("新增表头与KEY")]
2425
2431
  })]);
2426
2432
  }
2427
2433
  },
@@ -2430,9 +2436,9 @@ const ae = (o, t) => {
2430
2436
  },
2431
2437
  rules: [{
2432
2438
  required: !0,
2433
- validator: (c, C, $) => {
2434
- delete c.message, C.forEach((b) => {
2435
- b.name ? b.key || $(new Error("请填写表头名称和KEY")) : $(new Error("请填写表头名称和KEY"));
2439
+ validator: (m, g, $) => {
2440
+ delete m.message, g.forEach((C) => {
2441
+ C.name ? C.key || $(new Error("请填写表头名称和KEY")) : $(new Error("请填写表头名称和KEY"));
2436
2442
  }), $();
2437
2443
  },
2438
2444
  trigger: "blur"
@@ -2460,72 +2466,72 @@ const ae = (o, t) => {
2460
2466
  name: "操作",
2461
2467
  align: "center",
2462
2468
  fixed: "right",
2463
- render: (c) => l("div", null, [l(s("el-button"), {
2469
+ render: (m) => l("div", null, [l(s("el-button"), {
2464
2470
  link: !0,
2465
2471
  type: "primary",
2466
2472
  class: "custom-btn",
2467
2473
  icon: "Edit",
2468
2474
  title: "编辑",
2469
- onClick: () => v(c.row)
2475
+ onClick: () => v(m.row)
2470
2476
  }, null), l(s("el-button"), {
2471
2477
  link: !0,
2472
2478
  type: "danger",
2473
2479
  icon: "Delete",
2474
2480
  title: "删除",
2475
- onClick: () => i([c.row.rp_item_uuid])
2481
+ onClick: () => i([m.row.rp_item_uuid])
2476
2482
  }, null)])
2477
2483
  }]);
2478
- return (c, C) => {
2479
- const $ = s("el-button"), b = s("TdsTable"), _ = s("TdsForm");
2480
- return m(), x("div", fo, [l(b, {
2484
+ return (m, g) => {
2485
+ const $ = s("el-button"), C = s("TdsTable"), u = s("TdsForm");
2486
+ return _(), x("div", bo, [l(C, {
2481
2487
  ref_key: "refTdsTable",
2482
2488
  ref: t,
2483
2489
  columns: w,
2484
- "request-api": h(Qe),
2490
+ "request-api": h(Ze),
2485
2491
  "init-param": n,
2486
2492
  "row-key": "rp_item_uuid",
2487
- options: c.$tableOptions(),
2493
+ options: m.$tableOptions(),
2488
2494
  "search-col": 6
2489
2495
  }, {
2490
- tableHeader: u((g) => [l($, {
2496
+ tableHeader: p((y) => [l($, {
2491
2497
  plain: "",
2492
2498
  type: "primary",
2493
2499
  class: "custom-btn",
2494
2500
  icon: "Plus",
2495
- onClick: C[0] || (C[0] = (k) => v())
2501
+ onClick: g[0] || (g[0] = (k) => v())
2496
2502
  }, {
2497
- default: u(() => C[1] || (C[1] = [U("添加")])),
2503
+ default: p(() => g[1] || (g[1] = [R("添加")])),
2498
2504
  _: 1
2499
2505
  }), l($, {
2500
2506
  plain: "",
2501
2507
  type: "danger",
2502
2508
  icon: "Delete",
2503
- onClick: (k) => i(g.selectedListIds)
2509
+ onClick: (k) => i(y.selectedListIds)
2504
2510
  }, {
2505
- default: u(() => C[2] || (C[2] = [U("删除")])),
2511
+ default: p(() => g[2] || (g[2] = [R("删除")])),
2506
2512
  _: 2
2507
2513
  }, 1032, ["onClick"])]),
2508
2514
  _: 1
2509
- }, 8, ["columns", "request-api", "init-param", "options"]), l(_, ce({
2515
+ }, 8, ["columns", "request-api", "init-param", "options"]), l(u, ve({
2510
2516
  ref_key: "refTdsForm",
2511
2517
  ref: e
2512
- }, c.$formBindProps({
2518
+ }, m.$formBindProps({
2513
2519
  title: r.value,
2514
2520
  form: a.value,
2515
2521
  columns: w
2516
2522
  }), {
2517
- onSubmit: p
2523
+ onSubmit: d
2518
2524
  }), null, 16)]);
2519
2525
  };
2520
2526
  }
2521
2527
  });
2522
- const bo = ae(vo), yo = {
2528
+ const go = re(yo), ho = {
2523
2529
  class: "table-box"
2524
2530
  };
2525
- function se(o) {
2526
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
2531
+ function ue(o) {
2532
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
2527
2533
  }
2528
- const go = /* @__PURE__ */ T({
2534
+ const wo = /* @__PURE__ */ T({
2529
2535
  name: "TCSubscribe",
2530
2536
  __name: "index",
2531
2537
  setup(o) {
@@ -2535,38 +2541,38 @@ const go = /* @__PURE__ */ T({
2535
2541
  } = window, n = S(""), i = S({
2536
2542
  receiver: []
2537
2543
  });
2538
- function v(_) {
2539
- r(_, "subscript_name", a("button.delete"), "error").then(async () => {
2540
- await nt({
2541
- subscript_uuids: _.map((g) => g.subscript_uuid)
2544
+ function v(u) {
2545
+ r(u, "subscript_name", a("button.delete"), "error").then(async () => {
2546
+ await rt({
2547
+ subscript_uuids: u.map((y) => y.subscript_uuid)
2542
2548
  }), t.value.getTableList();
2543
2549
  });
2544
2550
  }
2545
- function p() {
2551
+ function d() {
2546
2552
  v(t.value.selectedList);
2547
2553
  }
2548
- const y = (_) => {
2549
- i.value = _ ? Object.assign({}, _) : {
2554
+ const b = (u) => {
2555
+ i.value = u ? Object.assign({}, u) : {
2550
2556
  receiver: []
2551
- }, n.value = _ ? "编辑报表订阅" : "新增报表订阅", e.value.open();
2557
+ }, n.value = u ? "编辑报表订阅" : "新增报表订阅", e.value.open();
2552
2558
  };
2553
- async function f(_) {
2554
- const g = Object.assign({}, _);
2555
- g.subscript_uuid ? await lt({
2556
- subscript_uuid: g.subscript_uuid,
2557
- data: g
2558
- }) : await ot({
2559
- data: g
2559
+ async function f(u) {
2560
+ const y = Object.assign({}, u);
2561
+ y.subscript_uuid ? await at({
2562
+ subscript_uuid: y.subscript_uuid,
2563
+ data: y
2564
+ }) : await nt({
2565
+ data: y
2560
2566
  }), t.value.getTableList(), e.value.close();
2561
2567
  }
2562
- function d(_, g, k) {
2563
- if (!g || g.length === 0)
2568
+ function c(u, y, k) {
2569
+ if (!y || y.length === 0)
2564
2570
  return k(new Error("请输入收件人"));
2565
2571
  k();
2566
2572
  }
2567
- const w = (_, g) => {
2568
- _.target.value && i.value[g].push(_.target.value);
2569
- }, c = [{
2573
+ const w = (u, y) => {
2574
+ u.target.value && i.value[y].push(u.target.value);
2575
+ }, m = [{
2570
2576
  label: "周一",
2571
2577
  value: 1
2572
2578
  }, {
@@ -2587,7 +2593,7 @@ const go = /* @__PURE__ */ T({
2587
2593
  }, {
2588
2594
  label: "周日",
2589
2595
  value: 0
2590
- }], C = [{
2596
+ }], g = [{
2591
2597
  label: "每天",
2592
2598
  value: 0
2593
2599
  }, {
@@ -2596,7 +2602,7 @@ const go = /* @__PURE__ */ T({
2596
2602
  }, {
2597
2603
  label: "每月",
2598
2604
  value: 2
2599
- }], $ = [], b = N([{
2605
+ }], $ = [], C = W([{
2600
2606
  type: "selection",
2601
2607
  align: "center",
2602
2608
  field: "subscript_uuid",
@@ -2623,7 +2629,7 @@ const go = /* @__PURE__ */ T({
2623
2629
  }, {
2624
2630
  field: "report_uuid",
2625
2631
  name: "报表类型",
2626
- enum: () => rt({
2632
+ enum: () => it({
2627
2633
  prod_type: window.$prodType
2628
2634
  }),
2629
2635
  fieldNames: {
@@ -2640,7 +2646,7 @@ const go = /* @__PURE__ */ T({
2640
2646
  }, {
2641
2647
  field: "format",
2642
2648
  name: "报表格式",
2643
- enum: st,
2649
+ enum: ut,
2644
2650
  fieldNames: {
2645
2651
  label: "name",
2646
2652
  value: "id"
@@ -2655,7 +2661,7 @@ const go = /* @__PURE__ */ T({
2655
2661
  }, {
2656
2662
  field: "select_data",
2657
2663
  name: "资产/任务",
2658
- enum: it,
2664
+ enum: pt,
2659
2665
  fieldNames: {
2660
2666
  label: "label",
2661
2667
  value: "data"
@@ -2674,50 +2680,50 @@ const go = /* @__PURE__ */ T({
2674
2680
  key: window.$prodType
2675
2681
  }
2676
2682
  },
2677
- render: (_) => t.value.enumMap.get("dbsId").filter((R) => _.row.dbsId.indexOf(R.id) > -1).map((R) => l(s("el-tag"), {
2683
+ render: (u) => t.value.enumMap.get("dbsId").filter((D) => u.row.dbsId.indexOf(D.id) > -1).map((D) => l(s("el-tag"), {
2678
2684
  class: "mr-10px",
2679
2685
  type: "info"
2680
2686
  }, {
2681
- default: () => [R.policy_name]
2687
+ default: () => [D.policy_name]
2682
2688
  }))
2683
2689
  }, {
2684
2690
  field: "receiver_email",
2685
2691
  name: "收件人",
2686
2692
  width: 300,
2687
- render: (_) => l(F, null, [_.row.receiver_email.map((g) => l(s("el-tag"), {
2693
+ render: (u) => l(F, null, [u.row.receiver_email.map((y) => l(s("el-tag"), {
2688
2694
  class: "mr-10px",
2689
2695
  type: "info"
2690
- }, se(g) ? g : {
2691
- default: () => [g]
2696
+ }, ue(y) ? y : {
2697
+ default: () => [y]
2692
2698
  }))]),
2693
2699
  show: {
2694
2700
  type: "input",
2695
2701
  render: () => {
2696
- let _;
2702
+ let u;
2697
2703
  return l(F, null, [l(s("el-select"), {
2698
2704
  class: "right-select",
2699
2705
  modelValue: i.value.receiver_email,
2700
- "onUpdate:modelValue": (g) => i.value.receiver_email = g,
2706
+ "onUpdate:modelValue": (y) => i.value.receiver_email = y,
2701
2707
  placeholder: "请输入",
2702
2708
  multiple: !0,
2703
2709
  filterable: !0,
2704
2710
  "allow-create": !0,
2705
2711
  "default-first-option": !0,
2706
2712
  "reserve-keyword": !1,
2707
- onBlur: (g) => w(g, "receiver_email")
2708
- }, se(_ = $.map((g) => l(s("el-option"), {
2709
- label: g.label,
2710
- value: g.value
2711
- }, null))) ? _ : {
2712
- default: () => [_]
2713
+ onBlur: (y) => w(y, "receiver_email")
2714
+ }, ue(u = $.map((y) => l(s("el-option"), {
2715
+ label: y.label,
2716
+ value: y.value
2717
+ }, null))) ? u : {
2718
+ default: () => [u]
2713
2719
  }), l("p", {
2714
2720
  style: "font-size:12px;color:#909399;line-height:20px"
2715
- }, [U("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
2721
+ }, [R("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
2716
2722
  }
2717
2723
  },
2718
2724
  rules: [{
2719
2725
  required: !0,
2720
- validator: d,
2726
+ validator: c,
2721
2727
  type: "any",
2722
2728
  trigger: "change"
2723
2729
  }]
@@ -2728,7 +2734,7 @@ const go = /* @__PURE__ */ T({
2728
2734
  field: "loop_type",
2729
2735
  name: "发送周期",
2730
2736
  hide: !0,
2731
- enum: C,
2737
+ enum: g,
2732
2738
  show: {
2733
2739
  dataType: "number",
2734
2740
  type: "select",
@@ -2751,9 +2757,9 @@ const go = /* @__PURE__ */ T({
2751
2757
  field: "day",
2752
2758
  name: "日",
2753
2759
  hide: !0,
2754
- enum: [...Array(28)].map((_, g) => ({
2755
- label: g + 1 + "",
2756
- value: g + 1
2760
+ enum: [...Array(28)].map((u, y) => ({
2761
+ label: y + 1 + "",
2762
+ value: y + 1
2757
2763
  })),
2758
2764
  show: {
2759
2765
  type: "select"
@@ -2766,7 +2772,7 @@ const go = /* @__PURE__ */ T({
2766
2772
  field: "weekday",
2767
2773
  name: "星期",
2768
2774
  hide: !0,
2769
- enum: c,
2775
+ enum: m,
2770
2776
  show: {
2771
2777
  type: "select"
2772
2778
  },
@@ -2778,9 +2784,9 @@ const go = /* @__PURE__ */ T({
2778
2784
  field: "hour",
2779
2785
  name: "小时",
2780
2786
  hide: !0,
2781
- enum: [...Array(24)].map((_, g) => ({
2782
- label: g + "时",
2783
- value: g
2787
+ enum: [...Array(24)].map((u, y) => ({
2788
+ label: y + "时",
2789
+ value: y
2784
2790
  })),
2785
2791
  show: {
2786
2792
  type: "select"
@@ -2793,9 +2799,9 @@ const go = /* @__PURE__ */ T({
2793
2799
  field: "minute",
2794
2800
  name: "分钟",
2795
2801
  hide: !0,
2796
- enum: [...Array(60)].map((_, g) => ({
2797
- label: g + "分",
2798
- value: g
2802
+ enum: [...Array(60)].map((u, y) => ({
2803
+ label: y + "分",
2804
+ value: y
2799
2805
  })),
2800
2806
  show: {
2801
2807
  type: "select"
@@ -2807,15 +2813,15 @@ const go = /* @__PURE__ */ T({
2807
2813
  }, {
2808
2814
  field: "enable_status",
2809
2815
  name: "启用状态",
2810
- render: (_) => l(s("el-switch"), {
2811
- modelValue: _.row.enable_status,
2812
- "onUpdate:modelValue": (g) => _.row.enable_status = g,
2816
+ render: (u) => l(s("el-switch"), {
2817
+ modelValue: u.row.enable_status,
2818
+ "onUpdate:modelValue": (y) => u.row.enable_status = y,
2813
2819
  "active-value": 1,
2814
2820
  "inactive-value": 0,
2815
- onChange: (g) => {
2816
- at({
2817
- subscript_uuid: _.row.subscript_uuid,
2818
- enable_status: g
2821
+ onChange: (y) => {
2822
+ st({
2823
+ subscript_uuid: u.row.subscript_uuid,
2824
+ enable_status: y
2819
2825
  }), t.value.getTableList();
2820
2826
  }
2821
2827
  }, null)
@@ -2825,77 +2831,77 @@ const go = /* @__PURE__ */ T({
2825
2831
  fixed: "right",
2826
2832
  cardHide: !0,
2827
2833
  width: 120,
2828
- render: (_) => l("div", null, [l(s("el-button"), {
2834
+ render: (u) => l("div", null, [l(s("el-button"), {
2829
2835
  link: !0,
2830
2836
  type: "primary",
2831
2837
  icon: "Edit",
2832
2838
  title: a("button.edit"),
2833
2839
  class: "custom-btn",
2834
- onClick: () => y(_.row)
2840
+ onClick: () => b(u.row)
2835
2841
  }, null), l(s("el-button"), {
2836
2842
  link: !0,
2837
2843
  type: "danger",
2838
2844
  icon: "Delete",
2839
2845
  title: a("button.delete"),
2840
- onClick: () => v([_.row])
2846
+ onClick: () => v([u.row])
2841
2847
  }, null)])
2842
2848
  }]);
2843
- return (_, g) => {
2849
+ return (u, y) => {
2844
2850
  const k = s("el-button");
2845
- return m(), x("div", yo, [l(h(Pe), {
2851
+ return _(), x("div", ho, [l(h(Oe), {
2846
2852
  ref_key: "refTdsTable",
2847
2853
  ref: t,
2848
2854
  "row-key": "subscript_uuid",
2849
- "request-api": h(tt),
2850
- columns: b,
2851
- options: _.$tableOptions()
2855
+ "request-api": h(lt),
2856
+ columns: C,
2857
+ options: u.$tableOptions()
2852
2858
  }, {
2853
- tableHeader: u((R) => [l(k, {
2859
+ tableHeader: p((D) => [l(k, {
2854
2860
  type: "primary",
2855
2861
  icon: "Plus",
2856
2862
  class: "custom-btn",
2857
2863
  plain: "",
2858
- onClick: g[0] || (g[0] = (Co) => y())
2864
+ onClick: y[0] || (y[0] = (se) => b())
2859
2865
  }, {
2860
- default: u(() => [U(H(h(a)("button.add")), 1)]),
2866
+ default: p(() => [R(B(h(a)("button.add")), 1)]),
2861
2867
  _: 1
2862
2868
  }), l(k, {
2863
2869
  type: "danger",
2864
2870
  icon: "Delete",
2865
2871
  plain: "",
2866
- onClick: p,
2867
- disabled: !R.selectedListIds.length
2872
+ onClick: d,
2873
+ disabled: !D.selectedListIds.length
2868
2874
  }, {
2869
- default: u(() => [U(H(h(a)("button.delete")), 1)]),
2875
+ default: p(() => [R(B(h(a)("button.delete")), 1)]),
2870
2876
  _: 2
2871
2877
  }, 1032, ["disabled"])]),
2872
2878
  _: 1
2873
- }, 8, ["request-api", "columns", "options"]), l(h(Me), ce({
2879
+ }, 8, ["request-api", "columns", "options"]), l(h(Ne), ve({
2874
2880
  ref_key: "refTdsForm",
2875
2881
  ref: e
2876
- }, _.$formBindProps({
2882
+ }, u.$formBindProps({
2877
2883
  title: n.value,
2878
2884
  form: i.value,
2879
- columns: b
2885
+ columns: C
2880
2886
  }), {
2881
2887
  onSubmit: f
2882
2888
  }), null, 16)]);
2883
2889
  };
2884
2890
  }
2885
- }), ho = ae(go), wo = {
2886
- TCReport: co,
2887
- TCModule: bo,
2888
- TCSubscribe: ho
2889
- }, Ro = {
2891
+ }), Co = re(wo), xo = {
2892
+ TCReport: _o,
2893
+ TCModule: go,
2894
+ TCSubscribe: Co
2895
+ }, Uo = {
2890
2896
  install(o, t) {
2891
- Object.entries(wo).forEach(([e, a]) => {
2897
+ Object.entries(xo).forEach(([e, a]) => {
2892
2898
  o.component(e, a);
2893
2899
  }), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
2894
2900
  }
2895
2901
  };
2896
2902
  export {
2897
- bo as TCModule,
2898
- co as TCReport,
2899
- ho as TCSubscribe,
2900
- Ro as default
2903
+ go as TCModule,
2904
+ _o as TCReport,
2905
+ Co as TCSubscribe,
2906
+ Uo as default
2901
2907
  };