@topdatasec/report 1.1.13 → 1.1.15

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,11 +1,11 @@
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 te, normalizeProps as pe, guardReactiveProps as de, isVNode as oe, 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";
1
+ import { defineComponent as L, computed as q, resolveComponent as s, openBlock as m, createElementBlock as x, createElementVNode as V, Fragment as E, renderList as I, normalizeClass as O, createBlock as T, createCommentVNode as U, toDisplayString as H, ref as S, createVNode as l, withCtx as d, onMounted as le, normalizeProps as pe, guardReactiveProps as de, isVNode as ne, normalizeStyle as Re, mergeModels as ce, useModel as me, resolveDirective as _e, withDirectives as fe, unref as h, createTextVNode as R, resolveDynamicComponent as Y, isRef as Ue, withModifiers as Ee, watch as Ae, shallowRef as Fe, onBeforeUnmount as De, onUnmounted as Ie, reactive as K, TransitionGroup as qe, mergeProps as ve } from "vue";
2
+ import { defineStore as ze, storeToRefs as Be } from "pinia";
3
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({
4
+ import { VueDraggable as je } from "vue-draggable-plus";
5
+ import { Toolbar as Pe, Editor as Me } from "@wangeditor/editor-for-vue";
6
+ import { CircleClose as Oe } from "@element-plus/icons-vue";
7
+ import { TdsTable as Ne, TdsForm as We } from "topdatasec-ui";
8
+ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), G = (o) => JSON.parse(JSON.stringify(o)), Ye = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), B = (o, t) => o[Ye(t)], Ke = (o) => window.$http.request({
9
9
  url: `${window.$reportURL}/tds/report/demo/get`,
10
10
  method: "get",
11
11
  params: o,
@@ -15,20 +15,20 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
15
15
  method: "get",
16
16
  params: o,
17
17
  isError: !1
18
- }), Ke = (o) => window.$http.request({
18
+ }), Ge = (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
- }), Ge = (o) => window.$http.request({
23
+ }), Je = (o) => window.$http.request({
24
24
  url: `${window.$reportURL}/tds/report/add`,
25
25
  method: "post",
26
26
  data: o
27
- }), Je = (o) => window.$http.request({
27
+ }), Qe = (o) => window.$http.request({
28
28
  url: `${window.$reportURL}/tds/report/put`,
29
29
  method: "put",
30
30
  data: o
31
- }), Qe = (o) => window.$http.request({
31
+ }), Xe = (o) => window.$http.request({
32
32
  url: `${window.$reportURL}/tds/report/get`,
33
33
  method: "get",
34
34
  params: o,
@@ -38,63 +38,69 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
38
38
  method: "get",
39
39
  params: o,
40
40
  isError: !1
41
- }), Xe = (o) => window.$http.request({
41
+ }), Ze = (o) => window.$http.request({
42
42
  url: `${window.$reportURL}/tds/report/delete`,
43
43
  method: "delete",
44
44
  data: o
45
- }), Ze = (o) => window.$http.request({
45
+ }), et = (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
- }), et = (o) => window.$http.request({
50
+ }), tt = (o) => window.$http.request({
51
51
  url: `${window.$reportURL}/tds/report/item/delete`,
52
52
  method: "delete",
53
53
  data: o
54
- }), tt = (o) => window.$http.request({
54
+ }), ot = (o) => window.$http.request({
55
55
  url: `${window.$reportURL}/tds/report/item/add`,
56
56
  method: "post",
57
57
  data: o
58
- }), ot = (o) => window.$http.request({
58
+ }), lt = (o) => window.$http.request({
59
59
  url: `${window.$reportURL}/tds/report/item/put`,
60
60
  method: "put",
61
61
  data: o
62
- }), lt = (o) => window.$http.request({
62
+ }), nt = (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
- }), nt = (o) => window.$http.request({
67
+ }), at = (o) => window.$http.request({
68
68
  url: `${window.$reportURL}/tds/report/sub/add`,
69
69
  method: "post",
70
70
  data: o
71
- }), at = (o) => window.$http.request({
71
+ }), rt = (o) => window.$http.request({
72
72
  url: `${window.$reportURL}/tds/report/sub/put`,
73
73
  method: "put",
74
74
  data: o
75
- }), rt = (o) => window.$http.request({
75
+ }), st = (o) => window.$http.request({
76
76
  url: `${window.$reportURL}/tds/report/sub/delete`,
77
77
  method: "delete",
78
78
  data: o
79
- }), st = (o) => window.$http.request({
79
+ }), it = (o) => window.$http.request({
80
80
  url: `${window.$reportURL}/tds/report/sub/edit/state`,
81
81
  method: "post",
82
82
  data: o
83
- }), it = (o) => window.$http.request({
83
+ }), ut = (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
- }), ut = (o) => window.$http.request({
88
+ }), pt = (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
- }), pt = (o) => window.$http.request({
93
+ }), dt = (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
+ }), ct = (o = {}) => window.$http.request({
99
+ url: `${window.$reportURL}/tds/report/build_in/get`,
100
+ method: "get",
101
+ params: o,
102
+ loading: !1,
103
+ isError: !1
98
104
  }), ge = "rgba(51, 51, 51, 0.15)", j = "rgba(51, 51, 51, 1)", M = 12, he = (o = !1) => {
99
105
  const t = {
100
106
  // top: '2%',
@@ -104,7 +110,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
104
110
  containLabel: !0
105
111
  };
106
112
  return o && (t.top = "5%"), t;
107
- }, A = [
113
+ }, D = [
108
114
  "46, 145, 255",
109
115
  "48, 212, 183",
110
116
  "108, 108, 255",
@@ -125,12 +131,12 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
125
131
  "100, 161, 206",
126
132
  "246, 175, 159",
127
133
  "238, 97, 97"
128
- ], dt = (o, t, e = "", a = { name: "name", value: "value" }) => {
134
+ ], mt = (o, t, e = "", a = { name: "name", value: "value" }) => {
129
135
  const r = [], n = [];
130
136
  t.forEach((i) => {
131
137
  r.push(i[a.name]), n.push(i[a.value]);
132
138
  }), 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 = [
139
+ }, Q = (o = [
134
140
  {
135
141
  name: "数据1",
136
142
  value: 63
@@ -246,7 +252,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
246
252
  type: "bar",
247
253
  barWidth: 15,
248
254
  barGap: "0%",
249
- itemStyle: e(`rgba(${A[0]}, 0.7)`, `rgba(${A[0]}, 0.2)`),
255
+ itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
250
256
  data: a,
251
257
  label: {
252
258
  show: !0,
@@ -266,7 +272,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
266
272
  symbolSize: [15, 10],
267
273
  //调整截面形状
268
274
  symbolOffset: [0, 5],
269
- itemStyle: e(`rgba(${A[0]}, 0.7)`, `rgba(${A[0]}, 0.2)`),
275
+ itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
270
276
  data: a
271
277
  },
272
278
  {
@@ -277,19 +283,19 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
277
283
  //调整截面形状
278
284
  symbolOffset: [0, -5],
279
285
  symbolPosition: "end",
280
- itemStyle: e(`rgba(${A[0]}, 0.9)`, `rgba(${A[0]}, 1)`),
286
+ itemStyle: e(`rgba(${D[0]}, 0.9)`, `rgba(${D[0]}, 1)`),
281
287
  data: a
282
288
  }
283
289
  ]
284
290
  };
285
- }, ct = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
291
+ }, _t = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
286
292
  let a = 0;
287
293
  const r = t.map((n, i) => (a += Number(n[e.value]), {
288
294
  name: n[e.name],
289
295
  value: Number(n[e.value])
290
296
  }));
291
297
  o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
292
- }, mt = () => A.map((o) => `rgba(${o}, 1)`), le = ({
298
+ }, ft = () => D.map((o) => `rgba(${o}, 1)`), ae = ({
293
299
  data: o = [
294
300
  {
295
301
  name: "数据1",
@@ -311,16 +317,16 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
311
317
  center: n = ["50%", "50%"],
312
318
  isTitle: i = !0
313
319
  }) => {
314
- const v = {
315
- color: mt(),
320
+ const f = {
321
+ color: ft(),
316
322
  toolbox: { show: !1 },
317
323
  tooltip: {
318
324
  trigger: "item",
319
325
  show: !0,
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
- <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${f}</span></div>`;
326
+ formatter: (p) => {
327
+ const { name: b, value: v } = p;
328
+ return `<div style="color: ${p.color}; font-size: 14px;">${b}&nbsp;&nbsp;&nbsp;</div>
329
+ <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${v}</span></div>`;
324
330
  }
325
331
  },
326
332
  title: {
@@ -336,10 +342,10 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
336
342
  legend: {
337
343
  show: a,
338
344
  left: "70%",
339
- formatter: (d) => {
340
- var f;
341
- const b = (f = v.series[0]) == null ? void 0 : f.data.find((c) => c.name === d).value;
342
- return ` ${d} | ${b}`;
345
+ formatter: (p) => {
346
+ var v;
347
+ const b = (v = f.series[0]) == null ? void 0 : v.data.find((c) => c.name === p).value;
348
+ return ` ${p} | ${b}`;
343
349
  },
344
350
  textStyle: {
345
351
  fontSize: M,
@@ -392,8 +398,8 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
392
398
  borderWidth: 1,
393
399
  borderColor: "inherit",
394
400
  padding: [3, -3, 3, -3],
395
- formatter: function(d) {
396
- return `{a|${d.name}(${d.value})}`;
401
+ formatter: function(p) {
402
+ return `{a|${p.name}(${p.value})}`;
397
403
  },
398
404
  rich: {
399
405
  a: {
@@ -450,24 +456,24 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
450
456
  }
451
457
  ]
452
458
  };
453
- return v;
454
- }, _t = (o, t, e = { name: "name", value: "value" }) => {
459
+ return f;
460
+ }, vt = (o, t, e = { name: "name", value: "value" }) => {
455
461
  o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
456
462
  o.series[r].data = t.map((n) => n[a.value]);
457
463
  }) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
458
- }, ft = () => ({
464
+ }, bt = () => ({
459
465
  name: "",
460
466
  type: "line",
461
467
  symbol: "circle",
462
468
  smooth: !0,
463
469
  lineStyle: {
464
470
  width: 1,
465
- color: `rgba(${A[0]}, 1)`
471
+ color: `rgba(${D[0]}, 1)`
466
472
  // 线条颜色
467
473
  },
468
474
  showSymbol: !1,
469
475
  itemStyle: {
470
- color: `rgba(${A[0]}, 1)`,
476
+ color: `rgba(${D[0]}, 1)`,
471
477
  //拐点颜色
472
478
  label: {
473
479
  show: !0,
@@ -490,18 +496,18 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
490
496
  // 渐变颜色
491
497
  {
492
498
  offset: 0,
493
- color: `rgba(${A[0]}, 0.7)`
499
+ color: `rgba(${D[0]}, 0.7)`
494
500
  },
495
501
  {
496
502
  offset: 1,
497
- color: `rgba(${A[0]}, 0.1)`
503
+ color: `rgba(${D[0]}, 0.1)`
498
504
  }
499
505
  ],
500
506
  global: !1
501
507
  }
502
508
  },
503
509
  data: []
504
- }), K = (o = [
510
+ }), J = (o = [
505
511
  {
506
512
  name: "2024-08",
507
513
  value: 63
@@ -573,31 +579,31 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
573
579
  }
574
580
  },
575
581
  series: []
576
- }, a = ft(), r = [];
582
+ }, a = bt(), r = [];
577
583
  if (Array.isArray(t.value))
578
584
  t.value.forEach((n, i) => {
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);
585
+ const f = G(a);
586
+ f.name = n.name, f.lineStyle.color = `rgba(${D[i]}, 1)`, f.itemStyle.color = `rgba(${D[i]}, 1)`, f.areaStyle.color.colorStops[0].color = `rgba(${D[i]}, 0.7)`, f.areaStyle.color.colorStops[1].color = `rgba(${D[i]}, 0.1)`, f.data = o.map((p) => p[n.value]), r.push(f);
581
587
  });
582
588
  else if (typeof t.value == "string") {
583
- const n = Y(a);
589
+ const n = G(a);
584
590
  n.data = o.map((i) => i[t.value]), r.push(n);
585
591
  }
586
592
  return e.series = r, e;
587
- }, ne = [
593
+ }, re = [
588
594
  { key: "assets", name: "资产名称" },
589
595
  { key: "type", name: "资产类型" },
590
596
  { key: "data", name: "资产数据" }
591
- ], ae = [
597
+ ], se = [
592
598
  { assets: "name1", type: "type1", data: "data1" },
593
599
  { assets: "name2", type: "type2", data: "data2" },
594
600
  { assets: "name3", type: "type3", data: "data3" }
595
- ], Q = [
601
+ ], Z = [
596
602
  { data: [{ name: "默认数据", value: 180 }], label: "name1" },
597
603
  { data: [{ name: "默认数据", value: 311 }], label: "name2" },
598
604
  { data: [{ name: "默认数据", value: 42 }], label: "name3" },
599
605
  { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
600
- ], vt = [
606
+ ], yt = [
601
607
  {
602
608
  data: 63,
603
609
  label: "数据1"
@@ -610,7 +616,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
610
616
  data: 43,
611
617
  label: "数据3"
612
618
  }
613
- ], bt = [
619
+ ], gt = [
614
620
  {
615
621
  type: "report-select",
616
622
  label: "资产:",
@@ -675,8 +681,8 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
675
681
  },
676
682
  {
677
683
  type: "report-table",
678
- data: ae,
679
- showColumn: ne,
684
+ data: se,
685
+ showColumn: re,
680
686
  name: "表格",
681
687
  options: {
682
688
  showColumn: {
@@ -691,7 +697,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
691
697
  rp_item_uuid: "",
692
698
  id: P()
693
699
  }
694
- ], yt = [
700
+ ], ht = [
695
701
  {
696
702
  type: "h1",
697
703
  data: "报表名称",
@@ -738,8 +744,8 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
738
744
  { type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
739
745
  {
740
746
  type: "report-table",
741
- data: ae,
742
- showColumn: ne,
747
+ data: se,
748
+ showColumn: re,
743
749
  name: "表格",
744
750
  options: {
745
751
  border: !0,
@@ -756,45 +762,45 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
756
762
  },
757
763
  {
758
764
  type: "bar",
759
- data: Q,
765
+ data: Z,
760
766
  showColumn: [{ key: "label", value: "data" }],
761
767
  name: "图表",
762
- options: G(),
768
+ options: Q(),
763
769
  rp_item_uuid: "",
764
770
  id: ""
765
771
  }
766
- ], gt = (o) => ({
772
+ ], wt = (o) => ({
767
773
  bar: {
768
774
  type: "bar",
769
- data: Q,
775
+ data: Z,
770
776
  showColumn: [{ key: "label", value: "data" }],
771
777
  name: "图表",
772
- options: G(),
778
+ options: Q(),
773
779
  rp_item_uuid: "",
774
780
  id: ""
775
781
  },
776
782
  line: {
777
783
  type: "line",
778
- data: Q,
784
+ data: Z,
779
785
  showColumn: [{ key: "label", value: "data" }],
780
786
  name: "图表",
781
- options: K(),
787
+ options: J(),
782
788
  rp_item_uuid: "",
783
789
  id: ""
784
790
  },
785
791
  pie: {
786
792
  type: "pie",
787
- data: vt,
793
+ data: yt,
788
794
  showColumn: [{ key: "label", value: "data" }],
789
795
  name: "图表",
790
- options: le({ isLegend: !0 }),
796
+ options: ae({ isLegend: !0 }),
791
797
  rp_item_uuid: "",
792
798
  id: ""
793
799
  },
794
800
  "report-table": {
795
801
  type: "report-table",
796
- data: ae,
797
- showColumn: ne,
802
+ data: se,
803
+ showColumn: re,
798
804
  name: "表格",
799
805
  options: {
800
806
  showColumn: {
@@ -809,7 +815,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
809
815
  rp_item_uuid: "",
810
816
  id: ""
811
817
  }
812
- })[o], z = Ie("tds-report", {
818
+ })[o], z = ze("tds-report", {
813
819
  state: () => ({
814
820
  componentList: [],
815
821
  activeComponents: {},
@@ -830,7 +836,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
830
836
  },
831
837
  async getReportDemo(o) {
832
838
  let t = [];
833
- o ? t = (await Ye({ report_uuid: o })).data : t = { content: Y(bt), range_time: 1 };
839
+ o ? t = (await Ke({ report_uuid: o })).data : t = { content: G(gt), range_time: 1 };
834
840
  const e = [];
835
841
  t.content.forEach((a) => {
836
842
  (a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = P();
@@ -846,7 +852,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
846
852
  };
847
853
  }
848
854
  }
849
- }), ht = { class: "catalogue" }, wt = ["href", "title"], Ct = /* @__PURE__ */ T({
855
+ }), Ct = { class: "catalogue" }, xt = ["href", "title"], $t = /* @__PURE__ */ L({
850
856
  __name: "Catalogue",
851
857
  props: {
852
858
  data: { default: () => [] }
@@ -855,13 +861,13 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
855
861
  const t = o, e = q(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
856
862
  return (a, r) => {
857
863
  const n = s("el-divider");
858
- return _(), x("div", ht, [
864
+ return m(), x("div", Ct, [
859
865
  r[0] || (r[0] = V("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
860
- (_(!0), x(F, null, I(e.value, (i) => (_(), x("div", {
866
+ (m(!0), x(E, null, I(e.value, (i) => (m(), x("div", {
861
867
  class: O("level" + i.type),
862
868
  key: i.value
863
869
  }, [
864
- i.type === "h2" ? (_(), L(n, {
870
+ i.type === "h2" ? (m(), T(n, {
865
871
  key: 0,
866
872
  style: { "margin-top": "10px", "margin-bottom": "10px" }
867
873
  })) : U("", !0),
@@ -869,20 +875,20 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
869
875
  class: "el-anchor__link",
870
876
  href: "#" + i.id,
871
877
  title: i.data
872
- }, B(i.data), 9, wt)
878
+ }, H(i.data), 9, xt)
873
879
  ], 2))), 128))
874
880
  ]);
875
881
  };
876
882
  }
877
883
  });
878
- const J = (o, t) => {
884
+ const N = (o, t) => {
879
885
  const e = o.__vccOpts || o;
880
886
  for (const [a, r] of t)
881
887
  e[a] = r;
882
888
  return e;
883
- }, xt = /* @__PURE__ */ J(Ct, [["__scopeId", "data-v-1cd8aa2d"]]), $t = {
889
+ }, kt = /* @__PURE__ */ N($t, [["__scopeId", "data-v-1cd8aa2d"]]), Vt = {
884
890
  class: "chart-components"
885
- }, we = /* @__PURE__ */ T({
891
+ }, we = /* @__PURE__ */ L({
886
892
  __name: "Bar",
887
893
  props: {
888
894
  value: {}
@@ -891,12 +897,12 @@ const J = (o, t) => {
891
897
  const t = o, e = q(() => t.value.options);
892
898
  return S(!1), (a, r) => {
893
899
  const n = s("TdsChart");
894
- return _(), x("div", $t, [l(n, {
900
+ return m(), x("div", Vt, [l(n, {
895
901
  option: e.value
896
902
  }, null, 8, ["option"])]);
897
903
  };
898
904
  }
899
- }), kt = { class: "chart-components" }, Ce = /* @__PURE__ */ T({
905
+ }), St = { class: "chart-components" }, Ce = /* @__PURE__ */ L({
900
906
  __name: "Line",
901
907
  props: {
902
908
  value: {}
@@ -905,12 +911,12 @@ const J = (o, t) => {
905
911
  const t = o, e = q(() => t.value.options);
906
912
  return (a, r) => {
907
913
  const n = s("TdsChart");
908
- return _(), x("div", kt, [
914
+ return m(), x("div", St, [
909
915
  l(n, { option: e.value }, null, 8, ["option"])
910
916
  ]);
911
917
  };
912
918
  }
913
- }), Vt = { class: "chart-components" }, xe = /* @__PURE__ */ T({
919
+ }), Tt = { class: "chart-components" }, xe = /* @__PURE__ */ L({
914
920
  __name: "Pie",
915
921
  props: {
916
922
  value: {}
@@ -919,12 +925,12 @@ const J = (o, t) => {
919
925
  const t = o, e = q(() => t.value.options);
920
926
  return (a, r) => {
921
927
  const n = s("TdsChart");
922
- return _(), x("div", Vt, [
928
+ return m(), x("div", Tt, [
923
929
  l(n, { option: e.value }, null, 8, ["option"])
924
930
  ]);
925
931
  };
926
932
  }
927
- }), St = { key: 0 }, X = /* @__PURE__ */ T({
933
+ }), Lt = { key: 0 }, ee = /* @__PURE__ */ L({
928
934
  __name: "ReportSelect",
929
935
  props: {
930
936
  value: {}
@@ -934,22 +940,22 @@ const J = (o, t) => {
934
940
  const e = t, a = (i) => {
935
941
  e("change", i);
936
942
  }, n = S(o.value);
937
- return (i, v) => {
938
- const d = s("el-option"), b = s("el-select");
939
- return n.value.data ? (_(), x("div", St, [
943
+ return (i, f) => {
944
+ const p = s("el-option"), b = s("el-select");
945
+ return n.value.data ? (m(), x("div", Lt, [
940
946
  l(b, {
941
947
  modelValue: n.value.value,
942
- "onUpdate:modelValue": v[0] || (v[0] = (f) => n.value.value = f),
948
+ "onUpdate:modelValue": f[0] || (f[0] = (v) => n.value.value = v),
943
949
  multiple: "",
944
950
  style: { width: "100%" },
945
951
  onChange: a,
946
952
  placeholder: "全部"
947
953
  }, {
948
- default: p(() => [
949
- (_(!0), x(F, null, I(n.value.data, (f) => (_(), L(d, {
950
- key: f.data,
951
- label: f.label,
952
- value: f.data
954
+ default: d(() => [
955
+ (m(!0), x(E, null, I(n.value.data, (v) => (m(), T(p, {
956
+ key: v.data,
957
+ label: v.label,
958
+ value: v.data
953
959
  }, null, 8, ["label", "value"]))), 128))
954
960
  ]),
955
961
  _: 1
@@ -957,7 +963,7 @@ const J = (o, t) => {
957
963
  ])) : U("", !0);
958
964
  };
959
965
  }
960
- }), Z = /* @__PURE__ */ T({
966
+ }), te = /* @__PURE__ */ L({
961
967
  __name: "RangeTime",
962
968
  props: {
963
969
  value: {}
@@ -965,17 +971,17 @@ const J = (o, t) => {
965
971
  emits: ["change"],
966
972
  setup(o, { emit: t }) {
967
973
  const e = t, r = S(o.value), n = S([]);
968
- function i(v) {
969
- v ? (r.value.data[0].start_time = v[0], r.value.data[0].end_time = v[1]) : n.value = [], e("change", n.value);
974
+ function i(f) {
975
+ f ? (r.value.data[0].start_time = f[0], r.value.data[0].end_time = f[1]) : n.value = [], e("change", n.value);
970
976
  }
971
- return te(() => {
977
+ return le(() => {
972
978
  n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
973
- }), (v, d) => {
979
+ }), (f, p) => {
974
980
  const b = s("el-date-picker");
975
- return _(), x("div", null, [
981
+ return m(), x("div", null, [
976
982
  l(b, {
977
983
  modelValue: n.value,
978
- "onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
984
+ "onUpdate:modelValue": p[0] || (p[0] = (v) => n.value = v),
979
985
  type: "datetimerange",
980
986
  placeholder: "Pick a Date",
981
987
  format: "YYYY-MM-DD HH:mm:ss",
@@ -987,10 +993,10 @@ const J = (o, t) => {
987
993
  };
988
994
  }
989
995
  });
990
- function Tt(o) {
991
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
996
+ function Rt(o) {
997
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
992
998
  }
993
- const $e = /* @__PURE__ */ T({
999
+ const $e = /* @__PURE__ */ L({
994
1000
  __name: "ReportTable",
995
1001
  props: {
996
1002
  value: {}
@@ -1003,16 +1009,16 @@ const $e = /* @__PURE__ */ T({
1003
1009
  border: t.value.options.border,
1004
1010
  "show-header": !!t.value.options.showHeader,
1005
1011
  stripe: t.value.options.stripe
1006
- }, Tt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
1012
+ }, Rt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
1007
1013
  prop: n.key,
1008
1014
  label: n.name
1009
1015
  }, null) : null)) ? r : {
1010
1016
  default: () => [r]
1011
1017
  });
1012
1018
  };
1013
- return (a, r) => (_(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1019
+ return (a, r) => (m(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1014
1020
  }
1015
- }), ee = /* @__PURE__ */ T({
1021
+ }), oe = /* @__PURE__ */ L({
1016
1022
  __name: "ReportText",
1017
1023
  props: {
1018
1024
  value: {}
@@ -1029,11 +1035,11 @@ const $e = /* @__PURE__ */ T({
1029
1035
  "text-align": a.textAlign
1030
1036
  };
1031
1037
  };
1032
- return (a, r) => (_(), x("div", {
1033
- style: Le(e())
1034
- }, B(a.value.data), 5));
1038
+ return (a, r) => (m(), x("div", {
1039
+ style: Re(e())
1040
+ }, H(a.value.data), 5));
1035
1041
  }
1036
- }), Lt = { class: "chart-components" }, ke = /* @__PURE__ */ T({
1042
+ }), Ut = { class: "chart-components" }, ke = /* @__PURE__ */ L({
1037
1043
  __name: "ReportChart",
1038
1044
  props: {
1039
1045
  value: {}
@@ -1041,7 +1047,7 @@ const $e = /* @__PURE__ */ T({
1041
1047
  setup(o) {
1042
1048
  const t = o, e = q(() => t.value), a = q(() => {
1043
1049
  if (e.value.type === "bar") {
1044
- e.value.options.series = G([]).series;
1050
+ e.value.options.series = Q([]).series;
1045
1051
  const r = [];
1046
1052
  let n = "";
1047
1053
  e.value.data.forEach((i) => {
@@ -1049,40 +1055,40 @@ const $e = /* @__PURE__ */ T({
1049
1055
  name: i.label,
1050
1056
  value: i.data[0].value
1051
1057
  });
1052
- }), dt(e.value.options, r, n);
1058
+ }), mt(e.value.options, r, n);
1053
1059
  }
1054
- if (e.value.type === "pie" && (e.value.options = le({ isLegend: !0 }), ct({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1060
+ if (e.value.type === "pie" && (e.value.options = ae({ isLegend: !0 }), _t({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1055
1061
  let r = [];
1056
- e.value.data.forEach((v) => {
1057
- r = v.data.map((d, b) => ({ name: d.name, value: "value" + b }));
1062
+ e.value.data.forEach((f) => {
1063
+ r = f.data.map((p, b) => ({ name: p.name, value: "value" + b }));
1058
1064
  });
1059
1065
  const n = {
1060
1066
  name: "name",
1061
1067
  value: r
1062
- }, i = e.value.data.map((v) => {
1063
- const d = {
1064
- name: v.label
1068
+ }, i = e.value.data.map((f) => {
1069
+ const p = {
1070
+ name: f.label
1065
1071
  };
1066
- return r.forEach((b, f) => {
1067
- d[b.value] = v.data[f].value;
1068
- }), d;
1072
+ return r.forEach((b, v) => {
1073
+ p[b.value] = f.data[v].value;
1074
+ }), p;
1069
1075
  });
1070
- console.log(K([], n), "chartsLine([], params)"), e.value.options.series = K([], n).series, _t(e.value.options, i, n);
1076
+ console.log(J([], n), "chartsLine([], params)"), e.value.options.series = J([], n).series, vt(e.value.options, i, n);
1071
1077
  }
1072
1078
  return e.value.options;
1073
1079
  });
1074
1080
  return (r, n) => {
1075
1081
  const i = s("TdsChart");
1076
- return _(), x("div", Lt, [
1082
+ return m(), x("div", Ut, [
1077
1083
  l(i, { option: a.value }, null, 8, ["option"])
1078
1084
  ]);
1079
1085
  };
1080
1086
  }
1081
1087
  });
1082
- function Rt(o) {
1083
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
1088
+ function Et(o) {
1089
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
1084
1090
  }
1085
- const Ve = /* @__PURE__ */ T({
1091
+ const Ve = /* @__PURE__ */ L({
1086
1092
  __name: "ReportDescribe",
1087
1093
  props: {
1088
1094
  value: {}
@@ -1095,7 +1101,7 @@ const Ve = /* @__PURE__ */ T({
1095
1101
  border: t.value.options.border,
1096
1102
  column: t.value.options.column,
1097
1103
  direction: t.value.options.direction
1098
- }, Rt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
1104
+ }, Et(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
1099
1105
  label: n.name
1100
1106
  }, {
1101
1107
  default: () => [t.value.data[n.key]]
@@ -1103,19 +1109,19 @@ const Ve = /* @__PURE__ */ T({
1103
1109
  default: () => [r]
1104
1110
  });
1105
1111
  };
1106
- return (a, r) => (_(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1112
+ return (a, r) => (m(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
1107
1113
  }
1108
- }), Ut = {
1114
+ }), At = {
1109
1115
  class: "editor-box"
1110
- }, Et = {
1116
+ }, Ft = {
1111
1117
  class: "editor",
1112
1118
  id: "editor",
1113
1119
  style: {
1114
1120
  width: "100%"
1115
1121
  }
1116
- }, At = {
1122
+ }, Dt = {
1117
1123
  class: "editor-content flex flex-start"
1118
- }, Ft = ["id"], Dt = ["innerHTML"], qt = /* @__PURE__ */ T({
1124
+ }, It = ["id"], qt = ["innerHTML"], zt = /* @__PURE__ */ L({
1119
1125
  __name: "index",
1120
1126
  props: /* @__PURE__ */ ce({
1121
1127
  reportId: {
@@ -1132,58 +1138,58 @@ const Ve = /* @__PURE__ */ T({
1132
1138
  Bar: we,
1133
1139
  Line: Ce,
1134
1140
  Pie: xe,
1135
- ReportSelect: X,
1136
- RangeTime: Z,
1141
+ ReportSelect: ee,
1142
+ RangeTime: te,
1137
1143
  ReportTable: $e,
1138
- ReportText: ee,
1144
+ ReportText: oe,
1139
1145
  ReportChart: ke,
1140
1146
  ReportDescribe: Ve
1141
- }, a = z(), r = o, n = me(o, "modelValue"), i = S([]), v = S([]), d = S([]), b = S(""), f = S("");
1147
+ }, a = z(), r = o, n = me(o, "modelValue"), i = S([]), f = S([]), p = S([]), b = S(""), v = S("");
1142
1148
  function c() {
1143
1149
  n.value = "table";
1144
1150
  }
1145
1151
  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();
1152
+ p.value = u, g();
1153
+ }, _ = (u) => {
1154
+ u && u.length > 0 && (b.value = u[0], v.value = u[1]), g();
1149
1155
  }, g = async () => {
1150
1156
  try {
1151
1157
  t.value = !0;
1152
1158
  const u = {
1153
1159
  report_uuid: r.reportId,
1154
1160
  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
+ end_time: v.value,
1162
+ select_data: p.value.join(",")
1163
+ }, y = await Ge(u), A = [];
1164
+ y.data.forEach((k) => {
1165
+ (k.type === "report-select" || k.type === "range-time") && A.push(k);
1166
+ }), i.value = A, y.data.splice(0, i.value.length), f.value = y.data, t.value = !1;
1161
1167
  } catch (u) {
1162
1168
  t.value = !1, console.error("Error setting loading state:", u);
1163
1169
  }
1164
1170
  };
1165
1171
  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);
1172
+ const $ = () => l("div", null, [R("未找到对应组件")]), C = (u) => u === "h2" || u === "h3" || u === "h4" ? B(e, "ReportText") : u === "bar" || u === "pie" || u === "line" ? B(e, "ReportChart") : u ? B(e, u) : l($, null, null);
1167
1173
  return (u, y) => {
1168
- const k = s("el-button"), D = s("el-card"), se = _e("loading");
1169
- return fe((_(), L(D, {
1174
+ const A = s("el-button"), k = s("el-card"), W = _e("loading");
1175
+ return fe((m(), T(k, {
1170
1176
  class: "editor view",
1171
1177
  "element-loading-text": "加载中..."
1172
1178
  }, {
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", {
1179
+ default: d(() => [V("div", At, [l(kt, {
1180
+ data: f.value
1181
+ }, null, 8, ["data"]), V("div", Ft, [V("div", Dt, [(m(!0), x(E, null, I(i.value, (F) => (m(), x("div", {
1176
1182
  class: "item-input",
1177
- key: E.id
1178
- }, [E.type === "report-select" ? (_(), L(X, {
1183
+ key: F.id
1184
+ }, [F.type === "report-select" ? (m(), T(ee, {
1179
1185
  key: 0,
1180
1186
  onChange: w,
1181
- value: E
1182
- }, null, 8, ["value"])) : U("", !0), E.type === "range-time" && h(a).filterForm.range_time ? (_(), L(Z, {
1187
+ value: F
1188
+ }, null, 8, ["value"])) : U("", !0), F.type === "range-time" && h(a).filterForm.range_time ? (m(), T(te, {
1183
1189
  key: 1,
1184
- onChange: m,
1185
- value: E
1186
- }, null, 8, ["value"])) : U("", !0)]))), 128)), l(k, {
1190
+ onChange: _,
1191
+ value: F
1192
+ }, null, 8, ["value"])) : U("", !0)]))), 128)), l(A, {
1187
1193
  plain: "",
1188
1194
  onClick: c,
1189
1195
  type: "primary",
@@ -1192,43 +1198,43 @@ const Ve = /* @__PURE__ */ T({
1192
1198
  "margin-left": "auto"
1193
1199
  }
1194
1200
  }, {
1195
- default: p(() => y[0] || (y[0] = [R("退出预览")])),
1201
+ default: d(() => y[0] || (y[0] = [R("退出预览")])),
1196
1202
  _: 1
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)), {
1203
+ })]), (m(!0), x(E, null, I(f.value, (F) => (m(), x("div", {
1204
+ key: F.id,
1205
+ class: O(["editor-content", ["editor" + F.type]]),
1206
+ id: F.id
1207
+ }, [F.type !== "p" ? (m(), T(Y(C(F.type)), {
1202
1208
  key: 0,
1203
- class: O(["editor" + E.type]),
1204
- value: E
1209
+ class: O(["editor" + F.type]),
1210
+ value: F
1205
1211
  }, {
1206
- default: p(() => [R(B(E.data), 1)]),
1212
+ default: d(() => [R(H(F.data), 1)]),
1207
1213
  _: 2
1208
- }, 1032, ["class", "value"])) : (_(), x("p", {
1214
+ }, 1032, ["class", "value"])) : (m(), x("p", {
1209
1215
  key: 1,
1210
- innerHTML: E.data
1211
- }, null, 8, Dt))], 10, Ft))), 128))])])]),
1216
+ innerHTML: F.data
1217
+ }, null, 8, qt))], 10, It))), 128))])])]),
1212
1218
  _: 1
1213
- })), [[se, t.value]]);
1219
+ })), [[W, t.value]]);
1214
1220
  };
1215
1221
  }
1216
1222
  });
1217
- const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1223
+ const Se = /* @__PURE__ */ N(zt, [["__scopeId", "data-v-db45c725"]]), Bt = {
1218
1224
  class: "editor"
1219
1225
  }, Ht = {
1220
1226
  class: "editor-content edit"
1221
- }, Bt = ["onClick"], jt = ["onClick"], Pt = ["innerHTML", "draggable"], Mt = /* @__PURE__ */ T({
1227
+ }, jt = ["onClick"], Pt = ["onClick"], Mt = ["innerHTML", "draggable"], Ot = /* @__PURE__ */ L({
1222
1228
  __name: "Editor",
1223
1229
  setup(o) {
1224
1230
  const t = {
1225
1231
  Bar: we,
1226
1232
  Line: Ce,
1227
1233
  Pie: xe,
1228
- ReportSelect: X,
1229
- RangeTime: Z,
1234
+ ReportSelect: ee,
1235
+ RangeTime: te,
1230
1236
  ReportTable: $e,
1231
- ReportText: ee,
1237
+ ReportText: oe,
1232
1238
  ReportChart: ke,
1233
1239
  ReportDescribe: Ve
1234
1240
  }, {
@@ -1236,122 +1242,129 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1236
1242
  activeComponents: a,
1237
1243
  notDraggableList: r,
1238
1244
  titleComponent: n
1239
- } = ze(z()), i = z(), v = (C) => {
1245
+ } = Be(z()), i = z(), f = (C) => {
1240
1246
  e.value.forEach((u, y) => {
1241
1247
  u.id === C && (e.value.splice(y, 1), i.activeComponents = []);
1242
1248
  });
1243
- }, d = (C) => {
1249
+ }, p = (C) => {
1244
1250
  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) => {
1251
+ }, b = () => l("div", null, [R("未找到对应组件")]), v = (C) => C === "h2" || C === "h3" || C === "h4" ? B(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? B(t, "ReportChart") : C ? B(t, C) : l(b, null, null), c = (C) => {
1246
1252
  console.log(C, "evt");
1247
- }, w = S(!1), m = () => {
1253
+ }, w = S(!1), _ = () => {
1248
1254
  w.value = !0;
1249
1255
  }, g = (C) => {
1250
1256
  C.newIndex !== 0 && (console.log(C), w.value = !1);
1251
1257
  }, $ = S();
1252
1258
  return (C, u) => {
1253
- const y = s("icon-material-symbols:cancel-outline");
1254
- return _(), x("div", zt, [V("div", {
1259
+ const y = s("CircleClose"), A = s("el-icon");
1260
+ return m(), x("div", Bt, [V("div", {
1255
1261
  class: O(["editor-content edit flex flex-start", [{
1256
1262
  active: h(a).id === "filter"
1257
1263
  }]]),
1258
- onClick: u[0] || (u[0] = (k) => d({
1264
+ onClick: u[0] || (u[0] = (k) => p({
1259
1265
  id: "filter",
1260
1266
  type: "filter"
1261
1267
  }))
1262
- }, [(_(!0), x(F, null, I(h(r), (k) => (_(), x("div", {
1268
+ }, [(m(!0), x(E, null, I(h(r), (k) => (m(), x("div", {
1263
1269
  class: "item-input",
1264
1270
  key: k.id
1265
- }, [k.type === "report-select" || k.type === "range-time" && h(i).filterForm.range_time ? (_(), L(N(h(H)(t, k.type)), {
1271
+ }, [k.type === "report-select" || k.type === "range-time" && h(i).filterForm.range_time ? (m(), T(Y(h(B)(t, k.type)), {
1266
1272
  key: 0,
1267
1273
  value: k
1268
1274
  }, {
1269
- default: p(() => [R(B(k.data), 1)]),
1275
+ default: d(() => [R(H(k.data), 1)]),
1270
1276
  _: 2
1271
- }, 1032, ["value"])) : U("", !0)]))), 128))], 2), V("div", Ht, [l(ee, {
1277
+ }, 1032, ["value"])) : U("", !0)]))), 128))], 2), V("div", Ht, [l(oe, {
1272
1278
  value: h(n),
1273
- onClick: u[1] || (u[1] = (k) => d(h(n)))
1274
- }, null, 8, ["value"])]), l(h(Be), {
1279
+ onClick: u[1] || (u[1] = (k) => p(h(n)))
1280
+ }, null, 8, ["value"])]), l(h(je), {
1275
1281
  ref_key: "el",
1276
1282
  ref: $,
1277
1283
  modelValue: h(e),
1278
- "onUpdate:modelValue": u[2] || (u[2] = (k) => Re(e) ? e.value = k : null),
1284
+ "onUpdate:modelValue": u[2] || (u[2] = (k) => Ue(e) ? e.value = k : null),
1279
1285
  "on-change": c,
1280
1286
  animation: 150,
1281
- onStart: m,
1287
+ onStart: _,
1282
1288
  onEnd: g
1283
1289
  }, {
1284
- default: p(() => [(_(!0), x(F, null, I(h(e), (k) => (_(), x("div", {
1290
+ default: d(() => [(m(!0), x(E, null, I(h(e), (k) => (m(), x("div", {
1285
1291
  key: k.id,
1286
1292
  class: O(["editor-content edit", ["editor" + k.type, {
1287
1293
  active: k.id === h(a).id
1288
1294
  }]]),
1289
- onClick: (D) => d(k)
1295
+ onClick: (W) => p(k)
1290
1296
  }, [V("i", {
1291
- onClick: Ue((D) => v(k.id), ["stop"])
1292
- }, [l(y, {
1293
- class: "color-red"
1294
- })], 8, jt), k.type !== "p" ? (_(), L(N(f(k.type)), {
1297
+ onClick: Ee((W) => f(k.id), ["stop"]),
1298
+ style: {
1299
+ "z-index": "99"
1300
+ }
1301
+ }, [l(A, {
1302
+ size: "16px",
1303
+ color: "red"
1304
+ }, {
1305
+ default: d(() => [l(y)]),
1306
+ _: 1
1307
+ })], 8, Pt), k.type !== "p" ? (m(), T(Y(v(k.type)), {
1295
1308
  key: 0,
1296
1309
  class: O(["editor" + k.type]),
1297
1310
  value: k,
1298
1311
  draggable: w.value
1299
1312
  }, {
1300
- default: p(() => [R(B(k.data), 1)]),
1313
+ default: d(() => [R(H(k.data), 1)]),
1301
1314
  _: 2
1302
- }, 1032, ["class", "value", "draggable"])) : (_(), x("p", {
1315
+ }, 1032, ["class", "value", "draggable"])) : (m(), x("p", {
1303
1316
  key: 1,
1304
1317
  innerHTML: k.data,
1305
1318
  draggable: w.value
1306
- }, null, 8, Pt))], 10, Bt))), 128))]),
1319
+ }, null, 8, Mt))], 10, jt))), 128))]),
1307
1320
  _: 1
1308
1321
  }, 8, ["modelValue"])]);
1309
1322
  };
1310
1323
  }
1311
- }), Ot = { class: "label" }, Nt = { class: "flex item-switch" }, Wt = { class: "flex item-switch" }, Yt = { class: "flex item-switch" }, Se = /* @__PURE__ */ T({
1324
+ }), Nt = { class: "label" }, Wt = { class: "flex item-switch" }, Yt = { class: "flex item-switch" }, Kt = { class: "flex item-switch" }, Te = /* @__PURE__ */ L({
1312
1325
  __name: "SettingTable",
1313
1326
  setup(o) {
1314
1327
  const t = z(), e = q(() => t.getActiveComponents);
1315
1328
  return (a, r) => {
1316
- const n = s("el-switch"), i = s("el-form-item"), v = s("el-divider");
1317
- return _(), x("div", null, [
1329
+ const n = s("el-switch"), i = s("el-form-item"), f = s("el-divider");
1330
+ return m(), x("div", null, [
1318
1331
  l(i, { label: "控制列" }, {
1319
- default: p(() => [
1320
- (_(!0), x(F, null, I(e.value.showColumn, (d, b) => (_(), x("p", {
1332
+ default: d(() => [
1333
+ (m(!0), x(E, null, I(e.value.showColumn, (p, b) => (m(), x("p", {
1321
1334
  class: "flex item-switch",
1322
1335
  key: b
1323
1336
  }, [
1324
- V("span", Ot, B(d.name), 1),
1337
+ V("span", Nt, H(p.name), 1),
1325
1338
  l(n, {
1326
- modelValue: e.value.options.showColumn[d.key],
1327
- "onUpdate:modelValue": (f) => e.value.options.showColumn[d.key] = f
1339
+ modelValue: e.value.options.showColumn[p.key],
1340
+ "onUpdate:modelValue": (v) => e.value.options.showColumn[p.key] = v
1328
1341
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1329
1342
  ]))), 128))
1330
1343
  ]),
1331
1344
  _: 1
1332
1345
  }),
1333
- l(v),
1346
+ l(f),
1334
1347
  l(i, { label: "表格样式" }, {
1335
- default: p(() => [
1336
- V("p", Nt, [
1348
+ default: d(() => [
1349
+ V("p", Wt, [
1337
1350
  r[3] || (r[3] = V("span", { class: "label" }, "斑马纹", -1)),
1338
1351
  l(n, {
1339
1352
  modelValue: e.value.options.stripe,
1340
- "onUpdate:modelValue": r[0] || (r[0] = (d) => e.value.options.stripe = d)
1353
+ "onUpdate:modelValue": r[0] || (r[0] = (p) => e.value.options.stripe = p)
1341
1354
  }, null, 8, ["modelValue"])
1342
1355
  ]),
1343
- V("p", Wt, [
1356
+ V("p", Yt, [
1344
1357
  r[4] || (r[4] = V("span", { class: "label" }, "边框", -1)),
1345
1358
  l(n, {
1346
1359
  modelValue: e.value.options.border,
1347
- "onUpdate:modelValue": r[1] || (r[1] = (d) => e.value.options.border = d)
1360
+ "onUpdate:modelValue": r[1] || (r[1] = (p) => e.value.options.border = p)
1348
1361
  }, null, 8, ["modelValue"])
1349
1362
  ]),
1350
- V("p", Yt, [
1363
+ V("p", Kt, [
1351
1364
  r[5] || (r[5] = V("span", { class: "label" }, "表头", -1)),
1352
1365
  l(n, {
1353
1366
  modelValue: e.value.options.showHeader,
1354
- "onUpdate:modelValue": r[2] || (r[2] = (d) => e.value.options.showHeader = d)
1367
+ "onUpdate:modelValue": r[2] || (r[2] = (p) => e.value.options.showHeader = p)
1355
1368
  }, null, 8, ["modelValue"])
1356
1369
  ])
1357
1370
  ]),
@@ -1360,7 +1373,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1360
1373
  ]);
1361
1374
  };
1362
1375
  }
1363
- }), Kt = { key: 0 }, Gt = /* @__PURE__ */ T({
1376
+ }), Gt = { key: 0 }, Jt = /* @__PURE__ */ L({
1364
1377
  __name: "ChartsUniConfig",
1365
1378
  setup(o) {
1366
1379
  const t = z(), e = q(() => t.activeComponents);
@@ -1368,10 +1381,10 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1368
1381
  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);
1369
1382
  }
1370
1383
  return S("rgb(46, 145, 255)"), (r, n) => {
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, [
1373
- l(v, { label: "标题" }, {
1374
- default: p(() => [
1384
+ const i = s("el-input"), f = s("el-form-item"), p = s("el-switch"), b = s("el-col"), v = s("el-color-picker"), c = s("el-input-number"), w = s("el-row"), _ = s("el-collapse-item"), g = s("el-collapse");
1385
+ return e.value.options.title ? (m(), x("div", Gt, [
1386
+ l(f, { label: "标题" }, {
1387
+ default: d(() => [
1375
1388
  l(i, {
1376
1389
  modelValue: e.value.options.title.text,
1377
1390
  "onUpdate:modelValue": n[0] || (n[0] = ($) => e.value.options.title.text = $)
@@ -1380,18 +1393,18 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1380
1393
  _: 1
1381
1394
  }),
1382
1395
  l(g, null, {
1383
- default: p(() => [
1384
- l(m, {
1396
+ default: d(() => [
1397
+ l(_, {
1385
1398
  title: "标题配置",
1386
1399
  name: "1"
1387
1400
  }, {
1388
- default: p(() => [
1401
+ default: d(() => [
1389
1402
  l(w, { class: "w-100%" }, {
1390
- default: p(() => [
1403
+ default: d(() => [
1391
1404
  l(b, { span: 24 }, {
1392
- default: p(() => [
1405
+ default: d(() => [
1393
1406
  n[8] || (n[8] = V("span", { class: "switch-label" }, "显示标题", -1)),
1394
- l(d, {
1407
+ l(p, {
1395
1408
  modelValue: e.value.options.title.show,
1396
1409
  "onUpdate:modelValue": n[1] || (n[1] = ($) => e.value.options.title.show = $)
1397
1410
  }, null, 8, ["modelValue"])
@@ -1399,8 +1412,8 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1399
1412
  _: 1
1400
1413
  }),
1401
1414
  l(b, { span: 12 }, {
1402
- default: p(() => [
1403
- l(f, {
1415
+ default: d(() => [
1416
+ l(v, {
1404
1417
  modelValue: e.value.options.title.textStyle.color,
1405
1418
  "onUpdate:modelValue": n[2] || (n[2] = ($) => e.value.options.title.textStyle.color = $),
1406
1419
  "show-alpha": ""
@@ -1410,7 +1423,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1410
1423
  _: 1
1411
1424
  }),
1412
1425
  l(b, { span: 12 }, {
1413
- default: p(() => [
1426
+ default: d(() => [
1414
1427
  l(c, {
1415
1428
  modelValue: e.value.options.title.textStyle.fontSize,
1416
1429
  "onUpdate:modelValue": n[3] || (n[3] = ($) => e.value.options.title.textStyle.fontSize = $),
@@ -1421,7 +1434,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1421
1434
  _: 1
1422
1435
  }),
1423
1436
  l(b, { span: 12 }, {
1424
- default: p(() => [
1437
+ default: d(() => [
1425
1438
  l(c, {
1426
1439
  modelValue: e.value.options.title.x,
1427
1440
  "onUpdate:modelValue": n[4] || (n[4] = ($) => e.value.options.title.x = $),
@@ -1432,7 +1445,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1432
1445
  _: 1
1433
1446
  }),
1434
1447
  l(b, { span: 12 }, {
1435
- default: p(() => [
1448
+ default: d(() => [
1436
1449
  l(c, {
1437
1450
  modelValue: e.value.options.title.y,
1438
1451
  "onUpdate:modelValue": n[5] || (n[5] = ($) => e.value.options.title.y = $),
@@ -1448,17 +1461,17 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1448
1461
  ]),
1449
1462
  _: 1
1450
1463
  }),
1451
- l(m, {
1464
+ l(_, {
1452
1465
  title: "图形配置",
1453
1466
  name: "2"
1454
1467
  }, {
1455
- default: p(() => [
1456
- e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (_(), L(w, { key: 0 }, {
1457
- default: p(() => [
1468
+ default: d(() => [
1469
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), T(w, { key: 0 }, {
1470
+ default: d(() => [
1458
1471
  l(b, { span: 24 }, {
1459
- default: p(() => [
1472
+ default: d(() => [
1460
1473
  n[13] || (n[13] = V("span", { class: "switch-label" }, "玫瑰图", -1)),
1461
- l(d, {
1474
+ l(p, {
1462
1475
  onChange: a,
1463
1476
  modelValue: e.value.options.series[0].roseType,
1464
1477
  "onUpdate:modelValue": n[6] || (n[6] = ($) => e.value.options.series[0].roseType = $)
@@ -1472,17 +1485,17 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1472
1485
  ]),
1473
1486
  _: 1
1474
1487
  }),
1475
- l(m, {
1488
+ l(_, {
1476
1489
  title: "图例配置",
1477
1490
  name: "3"
1478
1491
  }, {
1479
- default: p(() => [
1492
+ default: d(() => [
1480
1493
  l(w, null, {
1481
- default: p(() => [
1494
+ default: d(() => [
1482
1495
  l(b, { span: 24 }, {
1483
- default: p(() => [
1496
+ default: d(() => [
1484
1497
  n[14] || (n[14] = V("span", { class: "switch-label" }, "显示图例", -1)),
1485
- e.value.options.legend ? (_(), L(d, {
1498
+ e.value.options.legend ? (m(), T(p, {
1486
1499
  key: 0,
1487
1500
  modelValue: e.value.options.legend.show,
1488
1501
  "onUpdate:modelValue": n[7] || (n[7] = ($) => e.value.options.legend.show = $)
@@ -1503,15 +1516,15 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
1503
1516
  };
1504
1517
  }
1505
1518
  });
1506
- const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @__PURE__ */ T({
1519
+ const Qt = /* @__PURE__ */ N(Jt, [["__scopeId", "data-v-e9859d3b"]]), Le = /* @__PURE__ */ L({
1507
1520
  __name: "SettingDescribe",
1508
1521
  setup(o) {
1509
1522
  const t = z(), e = q(() => t.getActiveComponents);
1510
1523
  return (a, r) => {
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, [
1524
+ const n = s("el-input"), i = s("el-form-item"), f = s("el-switch"), p = s("el-input-number"), b = s("el-radio"), v = s("el-radio-group");
1525
+ return m(), x("div", null, [
1513
1526
  l(i, { label: "标题" }, {
1514
- default: p(() => [
1527
+ default: d(() => [
1515
1528
  l(n, {
1516
1529
  modelValue: e.value.options.title,
1517
1530
  "onUpdate:modelValue": r[0] || (r[0] = (c) => e.value.options.title = c)
@@ -1520,8 +1533,8 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1520
1533
  _: 1
1521
1534
  }),
1522
1535
  l(i, { label: "边框" }, {
1523
- default: p(() => [
1524
- l(v, {
1536
+ default: d(() => [
1537
+ l(f, {
1525
1538
  modelValue: e.value.options.border,
1526
1539
  "onUpdate:modelValue": r[1] || (r[1] = (c) => e.value.options.border = c)
1527
1540
  }, null, 8, ["modelValue"])
@@ -1529,8 +1542,8 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1529
1542
  _: 1
1530
1543
  }),
1531
1544
  l(i, { label: "每行展示数量" }, {
1532
- default: p(() => [
1533
- l(d, {
1545
+ default: d(() => [
1546
+ l(p, {
1534
1547
  modelValue: e.value.options.column,
1535
1548
  "onUpdate:modelValue": r[2] || (r[2] = (c) => e.value.options.column = c),
1536
1549
  min: 1,
@@ -1541,20 +1554,20 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1541
1554
  _: 1
1542
1555
  }),
1543
1556
  l(i, { label: "排列方向" }, {
1544
- default: p(() => [
1545
- l(f, {
1557
+ default: d(() => [
1558
+ l(v, {
1546
1559
  modelValue: e.value.options.direction,
1547
1560
  "onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
1548
1561
  }, {
1549
- default: p(() => [
1562
+ default: d(() => [
1550
1563
  l(b, { value: "horizontal" }, {
1551
- default: p(() => r[4] || (r[4] = [
1564
+ default: d(() => r[4] || (r[4] = [
1552
1565
  R("横向")
1553
1566
  ])),
1554
1567
  _: 1
1555
1568
  }),
1556
1569
  l(b, { value: "vertical" }, {
1557
- default: p(() => r[5] || (r[5] = [
1570
+ default: d(() => r[5] || (r[5] = [
1558
1571
  R("纵向")
1559
1572
  ])),
1560
1573
  _: 1
@@ -1568,7 +1581,7 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1568
1581
  ]);
1569
1582
  };
1570
1583
  }
1571
- }), Qt = /* @__PURE__ */ T({
1584
+ }), Xt = /* @__PURE__ */ L({
1572
1585
  __name: "SettingCharts",
1573
1586
  setup(o) {
1574
1587
  const t = z(), e = S(!1), a = q(() => t.getActiveComponents), r = [
@@ -1578,66 +1591,66 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1578
1591
  { value: "pie", name: "扇形图" },
1579
1592
  { value: "bar", name: "柱状图" }
1580
1593
  ], n = S(""), i = S();
1581
- async function v(f) {
1594
+ async function f(v) {
1582
1595
  const c = await be({
1583
1596
  prod_type: window.$prodType,
1584
- chart_type: f,
1597
+ chart_type: v,
1585
1598
  filter_uuid: t.filterForm.filter_uuid
1586
1599
  });
1587
1600
  i.value = c.data;
1588
1601
  }
1589
- function d(f) {
1590
- let c = i.value.find((m) => m.rp_item_uuid === f);
1602
+ function p(v) {
1603
+ let c = i.value.find((_) => _.rp_item_uuid === v);
1591
1604
  const w = c.rp_item_content;
1592
- if (c.rp_item_content.type === "bar" && (w.options = G()), w.type === "pie" && (w.options = le({ isLegend: !0 })), w.type === "line") {
1593
- let m = [];
1605
+ if (c.rp_item_content.type === "bar" && (w.options = Q()), w.type === "pie" && (w.options = ae({ isLegend: !0 })), w.type === "line") {
1606
+ let _ = [];
1594
1607
  w.data.forEach(($) => {
1595
- m = $.data.map((C, u) => ({ name: C.name, value: "value" + u }));
1608
+ _ = $.data.map((C, u) => ({ name: C.name, value: "value" + u }));
1596
1609
  });
1597
1610
  const g = {
1598
1611
  name: "name",
1599
- value: m
1612
+ value: _
1600
1613
  };
1601
- w.options = K([], g);
1614
+ w.options = J([], g);
1602
1615
  }
1603
1616
  if (w.type === "report-table") {
1604
- const m = {};
1617
+ const _ = {};
1605
1618
  w.showColumn.forEach((g) => {
1606
- m[g.key] = !0;
1607
- }), w.options = { ...w.options, showColumn: m, border: !0, showHeader: !0, stripe: !1 };
1619
+ _[g.key] = !0;
1620
+ }), w.options = { ...w.options, showColumn: _, border: !0, showHeader: !0, stripe: !1 };
1608
1621
  }
1609
1622
  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;
1610
1623
  }
1611
- te(async () => {
1612
- n.value = a.value.type, await v(n.value);
1624
+ le(async () => {
1625
+ n.value = a.value.type, await f(n.value);
1613
1626
  });
1614
- async function b(f) {
1627
+ async function b(v) {
1615
1628
  try {
1616
- e.value = !0, await v(f), Object.assign(t.activeComponents, gt(f)), e.value = !1;
1629
+ e.value = !0, await f(v), Object.assign(t.activeComponents, wt(v)), e.value = !1;
1617
1630
  } catch {
1618
1631
  e.value = !1;
1619
1632
  }
1620
1633
  }
1621
- return Ee(
1634
+ return Ae(
1622
1635
  () => a.value,
1623
- (f) => {
1624
- console.log(f, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(f.type) && (n.value = a.value.type, v(n.value));
1636
+ (v) => {
1637
+ console.log(v, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(v.type) && (n.value = a.value.type, f(n.value));
1625
1638
  }
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, [
1639
+ ), (v, c) => {
1640
+ const w = s("el-option"), _ = s("el-select"), g = s("el-form-item"), $ = s("el-form"), C = _e("loading");
1641
+ return fe((m(), x("div", null, [
1629
1642
  l($, { "label-position": "top" }, {
1630
- default: p(() => [
1643
+ default: d(() => [
1631
1644
  l(g, { label: "图表类型" }, {
1632
- default: p(() => [
1633
- l(m, {
1645
+ default: d(() => [
1646
+ l(_, {
1634
1647
  style: { width: "100%" },
1635
1648
  modelValue: n.value,
1636
1649
  "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
1637
1650
  onChange: b
1638
1651
  }, {
1639
- default: p(() => [
1640
- (_(), x(F, null, I(r, (u, y) => l(w, {
1652
+ default: d(() => [
1653
+ (m(), x(E, null, I(r, (u, y) => l(w, {
1641
1654
  key: y,
1642
1655
  label: u.name,
1643
1656
  value: u.value
@@ -1649,15 +1662,15 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1649
1662
  _: 1
1650
1663
  }),
1651
1664
  l(g, { label: "组件库" }, {
1652
- default: p(() => [
1653
- l(m, {
1665
+ default: d(() => [
1666
+ l(_, {
1654
1667
  style: { width: "100%" },
1655
1668
  modelValue: h(t).activeComponents.rp_item_uuid,
1656
1669
  "onUpdate:modelValue": c[1] || (c[1] = (u) => h(t).activeComponents.rp_item_uuid = u),
1657
- onChange: d
1670
+ onChange: p
1658
1671
  }, {
1659
- default: p(() => [
1660
- (_(!0), x(F, null, I(i.value, (u, y) => (_(), L(w, {
1672
+ default: d(() => [
1673
+ (m(!0), x(E, null, I(i.value, (u, y) => (m(), T(w, {
1661
1674
  key: y,
1662
1675
  label: u.rp_item_name,
1663
1676
  value: u.rp_item_uuid
@@ -1668,9 +1681,9 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1668
1681
  ]),
1669
1682
  _: 1
1670
1683
  }),
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)
1684
+ n.value === "report-table" && a.value.options.showColumn ? (m(), T(Te, { key: 0 })) : U("", !0),
1685
+ n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), T(Qt, { key: 1 })) : U("", !0),
1686
+ n.value === "report-describe" ? (m(), T(Le, { key: 2 })) : U("", !0)
1674
1687
  ]),
1675
1688
  _: 1
1676
1689
  })
@@ -1679,17 +1692,17 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1679
1692
  ]);
1680
1693
  };
1681
1694
  }
1682
- }), Xt = { key: 0 }, Zt = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", eo = /* @__PURE__ */ T({
1695
+ }), Zt = { key: 0 }, eo = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", to = /* @__PURE__ */ L({
1683
1696
  __name: "SettingText",
1684
1697
  setup(o) {
1685
- const t = z(), e = Ae(), a = S();
1686
- function r(f) {
1687
- const c = a.value.find((w) => w.rp_item_uuid === f);
1698
+ const t = z(), e = Fe(), a = S();
1699
+ function r(v) {
1700
+ const c = a.value.find((w) => w.rp_item_uuid === v);
1688
1701
  t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
1689
1702
  }
1690
1703
  async function n() {
1691
- const f = await be({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1692
- a.value = f.data;
1704
+ const v = await be({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1705
+ a.value = v.data;
1693
1706
  }
1694
1707
  n();
1695
1708
  const i = {
@@ -1714,28 +1727,28 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1714
1727
  "justifyJustify",
1715
1728
  "lineHeight"
1716
1729
  ]
1717
- }, v = { placeholder: "请输入内容..." }, d = (f) => {
1718
- e.value = f;
1719
- }, b = (f) => {
1730
+ }, f = { placeholder: "请输入内容..." }, p = (v) => {
1731
+ e.value = v;
1732
+ }, b = (v) => {
1720
1733
  };
1721
- return Fe(() => {
1722
- const f = e.value;
1723
- f != null && f.destroy();
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, [
1734
+ return De(() => {
1735
+ const v = e.value;
1736
+ v != null && v.destroy();
1737
+ }), (v, c) => {
1738
+ const w = s("el-option"), _ = s("el-select"), g = s("el-form-item"), $ = s("el-form");
1739
+ return h(t).activeComponents.id ? (m(), x("div", Zt, [
1727
1740
  l($, { "label-position": "top" }, {
1728
- default: p(() => [
1741
+ default: d(() => [
1729
1742
  l(g, { label: "组件库" }, {
1730
- default: p(() => [
1731
- l(m, {
1743
+ default: d(() => [
1744
+ l(_, {
1732
1745
  style: { width: "100%" },
1733
1746
  modelValue: h(t).activeComponents.rp_item_uuid,
1734
1747
  "onUpdate:modelValue": c[0] || (c[0] = (C) => h(t).activeComponents.rp_item_uuid = C),
1735
1748
  onChange: r
1736
1749
  }, {
1737
- default: p(() => [
1738
- (_(!0), x(F, null, I(a.value, (C, u) => (_(), L(w, {
1750
+ default: d(() => [
1751
+ (m(!0), x(E, null, I(a.value, (C, u) => (m(), T(w, {
1739
1752
  key: u,
1740
1753
  label: C.rp_item_name,
1741
1754
  value: C.rp_item_uuid
@@ -1747,22 +1760,22 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1747
1760
  _: 1
1748
1761
  }),
1749
1762
  l(g, { label: "文本内容" }, {
1750
- default: p(() => [
1751
- V("div", Zt, [
1752
- l(h(je), {
1763
+ default: d(() => [
1764
+ V("div", eo, [
1765
+ l(h(Pe), {
1753
1766
  style: { "border-bottom": "1px solid #ccc" },
1754
1767
  editor: e.value,
1755
1768
  "default-config": i,
1756
1769
  mode: ie
1757
1770
  }, null, 8, ["editor"]),
1758
- l(h(Pe), {
1771
+ l(h(Me), {
1759
1772
  style: { height: "500px", "overflow-y": "hidden" },
1760
1773
  onOnChange: b,
1761
1774
  modelValue: h(t).activeComponents.data,
1762
1775
  "onUpdate:modelValue": c[1] || (c[1] = (C) => h(t).activeComponents.data = C),
1763
- "default-config": v,
1776
+ "default-config": f,
1764
1777
  mode: ie,
1765
- onOnCreated: d
1778
+ onOnCreated: p
1766
1779
  }, null, 8, ["modelValue"])
1767
1780
  ])
1768
1781
  ]),
@@ -1774,7 +1787,7 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1774
1787
  ])) : U("", !0);
1775
1788
  };
1776
1789
  }
1777
- }), to = /* @__PURE__ */ T({
1790
+ }), oo = /* @__PURE__ */ L({
1778
1791
  __name: "SettingFilter",
1779
1792
  setup(o) {
1780
1793
  const t = S([]), e = z();
@@ -1783,21 +1796,21 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1783
1796
  t.value = r.data;
1784
1797
  }
1785
1798
  return a(), (r, n) => {
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, {
1799
+ const i = s("el-option"), f = s("el-select"), p = s("el-form-item"), b = s("el-checkbox"), v = s("el-form");
1800
+ return m(), T(v, {
1788
1801
  "label-width": "80px",
1789
1802
  "label-position": "top"
1790
1803
  }, {
1791
- default: p(() => [
1792
- l(d, { label: "筛选条件" }, {
1793
- default: p(() => [
1794
- l(v, {
1804
+ default: d(() => [
1805
+ l(p, { label: "筛选条件" }, {
1806
+ default: d(() => [
1807
+ l(f, {
1795
1808
  modelValue: h(e).filterForm.filter_uuid,
1796
1809
  "onUpdate:modelValue": n[0] || (n[0] = (c) => h(e).filterForm.filter_uuid = c),
1797
1810
  disabled: !!h(e).filterForm.filter_uuid
1798
1811
  }, {
1799
- default: p(() => [
1800
- (_(!0), x(F, null, I(t.value, (c) => (_(), L(i, {
1812
+ default: d(() => [
1813
+ (m(!0), x(E, null, I(t.value, (c) => (m(), T(i, {
1801
1814
  key: c.filter_uuid,
1802
1815
  label: c.filter_name,
1803
1816
  value: c.filter_uuid
@@ -1808,8 +1821,8 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1808
1821
  ]),
1809
1822
  _: 1
1810
1823
  }),
1811
- l(d, null, {
1812
- default: p(() => [
1824
+ l(p, null, {
1825
+ default: d(() => [
1813
1826
  l(b, {
1814
1827
  modelValue: h(e).filterForm.range_time,
1815
1828
  "onUpdate:modelValue": n[1] || (n[1] = (c) => h(e).filterForm.range_time = c),
@@ -1825,22 +1838,22 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1825
1838
  });
1826
1839
  };
1827
1840
  }
1828
- }), oo = /* @__PURE__ */ T({
1841
+ }), lo = /* @__PURE__ */ L({
1829
1842
  __name: "SettingTitle",
1830
1843
  setup(o) {
1831
1844
  const t = z();
1832
1845
  return (e, a) => {
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, {
1846
+ const r = s("el-input"), n = s("el-form-item"), i = s("el-color-picker"), f = s("el-col"), p = s("el-input-number"), b = s("el-option"), v = s("el-select"), c = s("el-row"), w = s("el-form");
1847
+ return m(), T(w, {
1835
1848
  "label-width": "auto",
1836
1849
  "label-position": "top"
1837
1850
  }, {
1838
- default: p(() => [
1851
+ default: d(() => [
1839
1852
  l(n, { label: "名称" }, {
1840
- default: p(() => [
1853
+ default: d(() => [
1841
1854
  l(r, {
1842
1855
  modelValue: h(t).activeComponents.data,
1843
- "onUpdate:modelValue": a[0] || (a[0] = (m) => h(t).activeComponents.data = m),
1856
+ "onUpdate:modelValue": a[0] || (a[0] = (_) => h(t).activeComponents.data = _),
1844
1857
  placeholder: "Please input",
1845
1858
  maxlength: "24",
1846
1859
  "show-word-limit": ""
@@ -1849,38 +1862,38 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1849
1862
  _: 1
1850
1863
  }),
1851
1864
  l(n, { label: "样式" }, {
1852
- default: p(() => [
1865
+ default: d(() => [
1853
1866
  l(c, { gutter: 20 }, {
1854
- default: p(() => [
1855
- l(v, { span: 12 }, {
1856
- default: p(() => [
1867
+ default: d(() => [
1868
+ l(f, { span: 12 }, {
1869
+ default: d(() => [
1857
1870
  l(i, {
1858
1871
  modelValue: h(t).activeComponents.options.color,
1859
- "onUpdate:modelValue": a[1] || (a[1] = (m) => h(t).activeComponents.options.color = m),
1872
+ "onUpdate:modelValue": a[1] || (a[1] = (_) => h(t).activeComponents.options.color = _),
1860
1873
  "show-alpha": ""
1861
1874
  }, null, 8, ["modelValue"]),
1862
1875
  a[7] || (a[7] = V("p", { class: "sub-title" }, "颜色", -1))
1863
1876
  ]),
1864
1877
  _: 1
1865
1878
  }),
1866
- l(v, { span: 12 }, {
1867
- default: p(() => [
1868
- l(d, {
1879
+ l(f, { span: 12 }, {
1880
+ default: d(() => [
1881
+ l(p, {
1869
1882
  modelValue: h(t).activeComponents.options.size,
1870
- "onUpdate:modelValue": a[2] || (a[2] = (m) => h(t).activeComponents.options.size = m),
1883
+ "onUpdate:modelValue": a[2] || (a[2] = (_) => h(t).activeComponents.options.size = _),
1871
1884
  "controls-position": "right"
1872
1885
  }, null, 8, ["modelValue"]),
1873
1886
  a[8] || (a[8] = V("p", { class: "sub-title" }, "字体大小", -1))
1874
1887
  ]),
1875
1888
  _: 1
1876
1889
  }),
1877
- l(v, { span: 12 }, {
1878
- default: p(() => [
1879
- l(f, {
1890
+ l(f, { span: 12 }, {
1891
+ default: d(() => [
1892
+ l(v, {
1880
1893
  modelValue: h(t).activeComponents.options.fontWeight,
1881
- "onUpdate:modelValue": a[3] || (a[3] = (m) => h(t).activeComponents.options.fontWeight = m)
1894
+ "onUpdate:modelValue": a[3] || (a[3] = (_) => h(t).activeComponents.options.fontWeight = _)
1882
1895
  }, {
1883
- default: p(() => [
1896
+ default: d(() => [
1884
1897
  l(b, {
1885
1898
  label: "常规",
1886
1899
  value: 500
@@ -1896,35 +1909,35 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1896
1909
  ]),
1897
1910
  _: 1
1898
1911
  }),
1899
- l(v, { span: 12 }, {
1900
- default: p(() => [
1901
- l(d, {
1912
+ l(f, { span: 12 }, {
1913
+ default: d(() => [
1914
+ l(p, {
1902
1915
  modelValue: h(t).activeComponents.options.letterSpacing,
1903
- "onUpdate:modelValue": a[4] || (a[4] = (m) => h(t).activeComponents.options.letterSpacing = m),
1916
+ "onUpdate:modelValue": a[4] || (a[4] = (_) => h(t).activeComponents.options.letterSpacing = _),
1904
1917
  "controls-position": "right"
1905
1918
  }, null, 8, ["modelValue"]),
1906
1919
  a[10] || (a[10] = V("p", { class: "sub-title" }, "字间距", -1))
1907
1920
  ]),
1908
1921
  _: 1
1909
1922
  }),
1910
- l(v, { span: 12 }, {
1911
- default: p(() => [
1912
- l(d, {
1923
+ l(f, { span: 12 }, {
1924
+ default: d(() => [
1925
+ l(p, {
1913
1926
  modelValue: h(t).activeComponents.options.textIndent,
1914
- "onUpdate:modelValue": a[5] || (a[5] = (m) => h(t).activeComponents.options.textIndent = m),
1927
+ "onUpdate:modelValue": a[5] || (a[5] = (_) => h(t).activeComponents.options.textIndent = _),
1915
1928
  "controls-position": "right"
1916
1929
  }, null, 8, ["modelValue"]),
1917
1930
  a[11] || (a[11] = V("p", { class: "sub-title" }, "首行缩进", -1))
1918
1931
  ]),
1919
1932
  _: 1
1920
1933
  }),
1921
- l(v, { span: 12 }, {
1922
- default: p(() => [
1923
- l(f, {
1934
+ l(f, { span: 12 }, {
1935
+ default: d(() => [
1936
+ l(v, {
1924
1937
  modelValue: h(t).activeComponents.options.textAlign,
1925
- "onUpdate:modelValue": a[6] || (a[6] = (m) => h(t).activeComponents.options.textAlign = m)
1938
+ "onUpdate:modelValue": a[6] || (a[6] = (_) => h(t).activeComponents.options.textAlign = _)
1926
1939
  }, {
1927
- default: p(() => [
1940
+ default: d(() => [
1928
1941
  l(b, {
1929
1942
  label: "左对齐",
1930
1943
  value: "left"
@@ -1956,28 +1969,28 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
1956
1969
  };
1957
1970
  }
1958
1971
  });
1959
- const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @__PURE__ */ T({
1972
+ const no = /* @__PURE__ */ N(lo, [["__scopeId", "data-v-56fef84c"]]), ao = /* @__PURE__ */ L({
1960
1973
  __name: "Setting",
1961
1974
  setup(o) {
1962
1975
  const t = {
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) => {
1971
- const f = s("el-card");
1972
- return _(), L(f, { class: "config-wrapper" }, {
1973
- default: p(() => [
1974
- (_(), L(N(v(a.value.type))))
1976
+ SettingTable: Te,
1977
+ SettingCharts: Xt,
1978
+ SettingDescribe: Le,
1979
+ SettingText: to,
1980
+ SettingFilter: oo,
1981
+ SettingTitle: no
1982
+ }, e = z(), a = q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], i = ["report-table", "bar", "line", "pie", "report-describe"], f = (p) => r.includes(p) ? B(t, "SettingTitle") : n.includes(p) ? B(t, "SettingText") : i.includes(p) ? B(t, "SettingCharts") : p === "filter" ? B(t, "SettingFilter") : "DefaultEditor";
1983
+ return (p, b) => {
1984
+ const v = s("el-card");
1985
+ return m(), T(v, { class: "config-wrapper" }, {
1986
+ default: d(() => [
1987
+ (m(), T(Y(f(a.value.type))))
1975
1988
  ]),
1976
1989
  _: 1
1977
1990
  });
1978
1991
  };
1979
1992
  }
1980
- }), ao = { class: "editor-wrapper flex items-center space-between start" }, ro = { class: "flex items-center space-between" }, so = { class: "btn-group" }, io = /* @__PURE__ */ T({
1993
+ }), ro = { class: "editor-wrapper flex items-center space-between start" }, so = { class: "flex items-center space-between" }, io = { class: "btn-group" }, uo = /* @__PURE__ */ L({
1981
1994
  __name: "index",
1982
1995
  props: /* @__PURE__ */ ce({
1983
1996
  reportId: {
@@ -1990,8 +2003,8 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
1990
2003
  }),
1991
2004
  emits: ["update:modelValue"],
1992
2005
  setup(o) {
1993
- const t = z(), e = o, a = me(o, "modelValue"), r = (d) => {
1994
- const b = Y(d);
2006
+ const t = z(), e = o, a = me(o, "modelValue"), r = (p) => {
2007
+ const b = G(p);
1995
2008
  b.id = P(), t.componentList.push(b);
1996
2009
  };
1997
2010
  function n() {
@@ -2000,16 +2013,16 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2000
2013
  function i() {
2001
2014
  t.getReportDemo(e.reportId);
2002
2015
  }
2003
- te(() => {
2016
+ le(() => {
2004
2017
  i();
2005
2018
  });
2006
- async function v() {
2019
+ async function f() {
2007
2020
  if (!t.filterForm.filter_uuid) {
2008
2021
  He.error("请选择筛选条件");
2009
2022
  return;
2010
2023
  }
2011
2024
  try {
2012
- e.reportId ? await Je({
2025
+ e.reportId ? await Qe({
2013
2026
  report_uuid: e.reportId,
2014
2027
  data: {
2015
2028
  report_name: t.titleComponent.data,
@@ -2017,7 +2030,7 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2017
2030
  content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
2018
2031
  ...t.filterForm
2019
2032
  }
2020
- }) : await Ge({
2033
+ }) : await Je({
2021
2034
  data: {
2022
2035
  report_name: t.titleComponent.data,
2023
2036
  prod_type: window.$prodType,
@@ -2025,30 +2038,30 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2025
2038
  ...t.filterForm
2026
2039
  }
2027
2040
  }), n();
2028
- } catch (d) {
2029
- console.log(d, "error");
2041
+ } catch (p) {
2042
+ console.log(p, "error");
2030
2043
  }
2031
2044
  }
2032
- return De(() => {
2045
+ return Ie(() => {
2033
2046
  t.clearComponents();
2034
- }), (d, b) => {
2035
- const f = s("el-button"), c = s("el-button-group"), w = s("el-card");
2036
- return _(), x("div", ao, [
2047
+ }), (p, b) => {
2048
+ const v = s("el-button"), c = s("el-button-group"), w = s("el-card");
2049
+ return m(), x("div", ro, [
2037
2050
  l(w, { class: "view-wrapper" }, {
2038
- default: p(() => [
2039
- V("div", ro, [
2040
- V("div", so, [
2051
+ default: d(() => [
2052
+ V("div", so, [
2053
+ V("div", io, [
2041
2054
  l(c, null, {
2042
- default: p(() => [
2043
- (_(!0), x(F, null, I(h(yt), (m) => (_(), x(F, {
2044
- key: m.type
2055
+ default: d(() => [
2056
+ (m(!0), x(E, null, I(h(ht), (_) => (m(), x(E, {
2057
+ key: _.type
2045
2058
  }, [
2046
- m != null && m.hide ? U("", !0) : (_(), L(f, {
2059
+ _ != null && _.hide ? U("", !0) : (m(), T(v, {
2047
2060
  key: 0,
2048
- onClick: (g) => r(m)
2061
+ onClick: (g) => r(_)
2049
2062
  }, {
2050
- default: p(() => [
2051
- R(B(m.name), 1)
2063
+ default: d(() => [
2064
+ R(H(_.name), 1)
2052
2065
  ]),
2053
2066
  _: 2
2054
2067
  }, 1032, ["onClick"]))
@@ -2058,18 +2071,18 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2058
2071
  })
2059
2072
  ]),
2060
2073
  l(c, null, {
2061
- default: p(() => [
2062
- l(f, {
2074
+ default: d(() => [
2075
+ l(v, {
2063
2076
  type: "primary",
2064
- onClick: v
2077
+ onClick: f
2065
2078
  }, {
2066
- default: p(() => b[0] || (b[0] = [
2079
+ default: d(() => b[0] || (b[0] = [
2067
2080
  R("保存")
2068
2081
  ])),
2069
2082
  _: 1
2070
2083
  }),
2071
- l(f, { onClick: n }, {
2072
- default: p(() => b[1] || (b[1] = [
2084
+ l(v, { onClick: n }, {
2085
+ default: d(() => b[1] || (b[1] = [
2073
2086
  R("退出")
2074
2087
  ])),
2075
2088
  _: 1
@@ -2078,17 +2091,17 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2078
2091
  _: 1
2079
2092
  })
2080
2093
  ]),
2081
- l(Mt)
2094
+ l(Ot)
2082
2095
  ]),
2083
2096
  _: 1
2084
2097
  }),
2085
- l(no)
2098
+ l(ao)
2086
2099
  ]);
2087
2100
  };
2088
2101
  }
2089
- }), uo = {
2102
+ }), po = {
2090
2103
  class: "table-box"
2091
- }, po = /* @__PURE__ */ T({
2104
+ }, co = /* @__PURE__ */ L({
2092
2105
  __name: "Report",
2093
2106
  emits: ["click"],
2094
2107
  setup(o, {
@@ -2100,17 +2113,17 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2100
2113
  r("click", c.report_uuid, "review");
2101
2114
  }, i = (c) => {
2102
2115
  r("click", c.report_uuid, "editor");
2103
- }, v = () => {
2116
+ }, f = () => {
2104
2117
  r("click", "", "editor");
2105
- }, d = (c) => {
2118
+ }, p = (c) => {
2106
2119
  console.log(c);
2107
2120
  }, b = (c) => {
2108
2121
  window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
2109
- await Xe({
2122
+ await Ze({
2110
2123
  report_uuids: c
2111
2124
  }), a.value.getTableList();
2112
2125
  });
2113
- }, f = W([
2126
+ }, v = K([
2114
2127
  // { type: 'selection', fixed: 'left', width: 70 },
2115
2128
  {
2116
2129
  type: "selection",
@@ -2161,34 +2174,34 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2161
2174
  }
2162
2175
  ]);
2163
2176
  return (c, w) => {
2164
- const m = s("el-button"), g = s("TdsTable");
2165
- return _(), x("div", uo, [l(g, {
2177
+ const _ = s("el-button"), g = s("TdsTable");
2178
+ return m(), x("div", po, [l(g, {
2166
2179
  ref_key: "proTable",
2167
2180
  ref: a,
2168
- columns: f,
2169
- "request-api": h(Qe),
2181
+ columns: v,
2182
+ "request-api": h(Xe),
2170
2183
  "init-param": e.value,
2171
2184
  "row-key": "report_uuid",
2172
2185
  options: c.$tableOptions(),
2173
2186
  "search-col": 6,
2174
- onSelectionChange: d
2187
+ onSelectionChange: p
2175
2188
  }, {
2176
- tableHeader: p(($) => [l(m, {
2189
+ tableHeader: d(($) => [l(_, {
2177
2190
  plain: "",
2178
2191
  type: "primary",
2179
2192
  class: "custom-btn",
2180
2193
  icon: "Plus",
2181
- onClick: v
2194
+ onClick: f
2182
2195
  }, {
2183
- default: p(() => w[0] || (w[0] = [R("添加")])),
2196
+ default: d(() => w[0] || (w[0] = [R("添加")])),
2184
2197
  _: 1
2185
- }), l(m, {
2198
+ }), l(_, {
2186
2199
  plain: "",
2187
2200
  type: "danger",
2188
2201
  icon: "Delete",
2189
2202
  onClick: (C) => b($.selectedListIds)
2190
2203
  }, {
2191
- default: p(() => w[1] || (w[1] = [R("删除")])),
2204
+ default: d(() => w[1] || (w[1] = [R("删除")])),
2192
2205
  _: 2
2193
2206
  }, 1032, ["onClick"])]),
2194
2207
  _: 1
@@ -2196,27 +2209,27 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
2196
2209
  };
2197
2210
  }
2198
2211
  });
2199
- const co = { style: { height: "100%" } }, mo = /* @__PURE__ */ T({
2212
+ const mo = { style: { height: "100%" } }, _o = /* @__PURE__ */ L({
2200
2213
  name: "TCReport",
2201
2214
  __name: "index",
2202
2215
  setup(o) {
2203
2216
  const t = S(), e = S("table"), a = (r, n) => {
2204
2217
  t.value = r, e.value = n;
2205
2218
  };
2206
- return (r, n) => (_(), x("div", co, [
2219
+ return (r, n) => (m(), x("div", mo, [
2207
2220
  l(qe, { name: "slide-fade" }, {
2208
- default: p(() => [
2209
- e.value === "table" ? (_(), L(po, {
2221
+ default: d(() => [
2222
+ e.value === "table" ? (m(), T(co, {
2210
2223
  key: 0,
2211
2224
  onClick: a
2212
2225
  })) : U("", !0),
2213
- e.value === "review" ? (_(), L(It, {
2226
+ e.value === "review" ? (m(), T(Se, {
2214
2227
  key: 1,
2215
2228
  "report-id": t.value,
2216
2229
  modelValue: e.value,
2217
2230
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.value = i)
2218
2231
  }, null, 8, ["report-id", "modelValue"])) : U("", !0),
2219
- e.value === "editor" ? (_(), L(io, {
2232
+ e.value === "editor" ? (m(), T(uo, {
2220
2233
  key: 2,
2221
2234
  "report-id": t.value,
2222
2235
  modelValue: e.value,
@@ -2228,7 +2241,7 @@ const co = { style: { height: "100%" } }, mo = /* @__PURE__ */ T({
2228
2241
  ]));
2229
2242
  }
2230
2243
  });
2231
- const re = (o, t) => {
2244
+ const X = (o, t) => {
2232
2245
  if (o.install = (e) => {
2233
2246
  for (const a of [o, ...Object.values(t ?? {})])
2234
2247
  e.component(a.name, a);
@@ -2236,7 +2249,7 @@ const re = (o, t) => {
2236
2249
  for (const [e, a] of Object.entries(t))
2237
2250
  o[e] = a;
2238
2251
  return o;
2239
- }, _o = re(mo), fo = [
2252
+ }, fo = X(_o), vo = [
2240
2253
  {
2241
2254
  label: "正文",
2242
2255
  value: "p"
@@ -2261,7 +2274,7 @@ const re = (o, t) => {
2261
2274
  label: "描述列表",
2262
2275
  value: "report-describe"
2263
2276
  }
2264
- ], vo = [
2277
+ ], bo = [
2265
2278
  {
2266
2279
  value: "p",
2267
2280
  fields: ["table_key_relation"]
@@ -2286,49 +2299,49 @@ const re = (o, t) => {
2286
2299
  value: "report-describe",
2287
2300
  fields: ["p_text"]
2288
2301
  }
2289
- ], bo = {
2302
+ ], yo = {
2290
2303
  class: "table-box"
2291
- }, yo = /* @__PURE__ */ T({
2304
+ }, go = /* @__PURE__ */ L({
2292
2305
  name: "TCModule",
2293
2306
  __name: "index",
2294
2307
  setup(o) {
2295
- const t = S(), e = S(), a = S({}), r = S(""), n = W({
2308
+ const t = S(), e = S(), a = S({}), r = S(""), n = K({
2296
2309
  prod_type: window.$prodType
2297
2310
  });
2298
- function i(m) {
2311
+ function i(_) {
2299
2312
  window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
2300
- await et({
2301
- rp_item_uuids: m
2313
+ await tt({
2314
+ rp_item_uuids: _
2302
2315
  }), t.value.getTableList();
2303
2316
  });
2304
2317
  }
2305
- function v(m) {
2306
- a.value = m ? Object.assign({}, m) : {
2318
+ function f(_) {
2319
+ a.value = _ ? Object.assign({}, _) : {
2307
2320
  table_key_relation: [{
2308
2321
  name: "",
2309
2322
  key: "",
2310
2323
  id: (/* @__PURE__ */ new Date()).getTime()
2311
2324
  }]
2312
- }, r.value = m ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2325
+ }, r.value = _ ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2313
2326
  }
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({
2327
+ async function p(_) {
2328
+ const g = Object.assign({}, _);
2329
+ 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 lt({
2317
2330
  rp_item_uuid: g.rp_item_uuid,
2318
2331
  data: g
2319
- }) : (g.prod_type = window.$prodType, await tt({
2332
+ }) : (g.prod_type = window.$prodType, await ot({
2320
2333
  data: g
2321
2334
  })), t.value.getTableList(), e.value.close();
2322
2335
  }
2323
- const b = (m) => {
2324
- a.value.table_key_relation.splice(m, 1);
2325
- }, f = () => {
2336
+ const b = (_) => {
2337
+ a.value.table_key_relation.splice(_, 1);
2338
+ }, v = () => {
2326
2339
  a.value.table_key_relation.push({
2327
2340
  name: "",
2328
2341
  key: "",
2329
2342
  id: (/* @__PURE__ */ new Date()).getTime()
2330
2343
  });
2331
- }, w = W([{
2344
+ }, w = K([{
2332
2345
  type: "selection",
2333
2346
  width: 60,
2334
2347
  field: "rp_item_uuid",
@@ -2361,10 +2374,10 @@ const re = (o, t) => {
2361
2374
  }, {
2362
2375
  field: "chart_type",
2363
2376
  name: "组件类型",
2364
- enum: fo,
2377
+ enum: vo,
2365
2378
  show: {
2366
2379
  type: "select",
2367
- display: vo
2380
+ display: bo
2368
2381
  },
2369
2382
  rules: [{
2370
2383
  required: !0
@@ -2384,7 +2397,7 @@ const re = (o, t) => {
2384
2397
  hide: !0,
2385
2398
  show: {
2386
2399
  render: () => {
2387
- var m;
2400
+ var _;
2388
2401
  return l("div", {
2389
2402
  style: "width:80%"
2390
2403
  }, [l("div", {
@@ -2394,7 +2407,7 @@ const re = (o, t) => {
2394
2407
  style: "width:50%"
2395
2408
  }, [R("表头名称")]), l("span", {
2396
2409
  style: "width:50%"
2397
- }, [R("KEY")])]), (m = a.value.table_key_relation) == null ? void 0 : m.map((g, $) => l("div", {
2410
+ }, [R("KEY")])]), (_ = a.value.table_key_relation) == null ? void 0 : _.map((g, $) => l("div", {
2398
2411
  class: "flex items-center space-between form-m0 w-100%",
2399
2412
  style: "gap:15px;margin-bottom:10px;",
2400
2413
  key: $
@@ -2421,11 +2434,11 @@ const re = (o, t) => {
2421
2434
  }, [l(s("el-icon"), {
2422
2435
  onClick: () => b($)
2423
2436
  }, {
2424
- default: () => [l(Me, null, null)]
2437
+ default: () => [l(Oe, null, null)]
2425
2438
  })])])), l(s("el-button"), {
2426
2439
  class: "report-btn ",
2427
2440
  icon: "Plus",
2428
- onClick: () => f()
2441
+ onClick: () => v()
2429
2442
  }, {
2430
2443
  default: () => [R("新增表头与KEY")]
2431
2444
  })]);
@@ -2436,8 +2449,8 @@ const re = (o, t) => {
2436
2449
  },
2437
2450
  rules: [{
2438
2451
  required: !0,
2439
- validator: (m, g, $) => {
2440
- delete m.message, g.forEach((C) => {
2452
+ validator: (_, g, $) => {
2453
+ delete _.message, g.forEach((C) => {
2441
2454
  C.name ? C.key || $(new Error("请填写表头名称和KEY")) : $(new Error("请填写表头名称和KEY"));
2442
2455
  }), $();
2443
2456
  },
@@ -2466,72 +2479,72 @@ const re = (o, t) => {
2466
2479
  name: "操作",
2467
2480
  align: "center",
2468
2481
  fixed: "right",
2469
- render: (m) => l("div", null, [l(s("el-button"), {
2482
+ render: (_) => l("div", null, [l(s("el-button"), {
2470
2483
  link: !0,
2471
2484
  type: "primary",
2472
2485
  class: "custom-btn",
2473
2486
  icon: "Edit",
2474
2487
  title: "编辑",
2475
- onClick: () => v(m.row)
2488
+ onClick: () => f(_.row)
2476
2489
  }, null), l(s("el-button"), {
2477
2490
  link: !0,
2478
2491
  type: "danger",
2479
2492
  icon: "Delete",
2480
2493
  title: "删除",
2481
- onClick: () => i([m.row.rp_item_uuid])
2494
+ onClick: () => i([_.row.rp_item_uuid])
2482
2495
  }, null)])
2483
2496
  }]);
2484
- return (m, g) => {
2497
+ return (_, g) => {
2485
2498
  const $ = s("el-button"), C = s("TdsTable"), u = s("TdsForm");
2486
- return _(), x("div", bo, [l(C, {
2499
+ return m(), x("div", yo, [l(C, {
2487
2500
  ref_key: "refTdsTable",
2488
2501
  ref: t,
2489
2502
  columns: w,
2490
- "request-api": h(Ze),
2503
+ "request-api": h(et),
2491
2504
  "init-param": n,
2492
2505
  "row-key": "rp_item_uuid",
2493
- options: m.$tableOptions(),
2506
+ options: _.$tableOptions(),
2494
2507
  "search-col": 6
2495
2508
  }, {
2496
- tableHeader: p((y) => [l($, {
2509
+ tableHeader: d((y) => [l($, {
2497
2510
  plain: "",
2498
2511
  type: "primary",
2499
2512
  class: "custom-btn",
2500
2513
  icon: "Plus",
2501
- onClick: g[0] || (g[0] = (k) => v())
2514
+ onClick: g[0] || (g[0] = (A) => f())
2502
2515
  }, {
2503
- default: p(() => g[1] || (g[1] = [R("添加")])),
2516
+ default: d(() => g[1] || (g[1] = [R("添加")])),
2504
2517
  _: 1
2505
2518
  }), l($, {
2506
2519
  plain: "",
2507
2520
  type: "danger",
2508
2521
  icon: "Delete",
2509
- onClick: (k) => i(y.selectedListIds)
2522
+ onClick: (A) => i(y.selectedListIds)
2510
2523
  }, {
2511
- default: p(() => g[2] || (g[2] = [R("删除")])),
2524
+ default: d(() => g[2] || (g[2] = [R("删除")])),
2512
2525
  _: 2
2513
2526
  }, 1032, ["onClick"])]),
2514
2527
  _: 1
2515
2528
  }, 8, ["columns", "request-api", "init-param", "options"]), l(u, ve({
2516
2529
  ref_key: "refTdsForm",
2517
2530
  ref: e
2518
- }, m.$formBindProps({
2531
+ }, _.$formBindProps({
2519
2532
  title: r.value,
2520
2533
  form: a.value,
2521
2534
  columns: w
2522
2535
  }), {
2523
- onSubmit: d
2536
+ onSubmit: p
2524
2537
  }), null, 16)]);
2525
2538
  };
2526
2539
  }
2527
2540
  });
2528
- const go = re(yo), ho = {
2541
+ const ho = X(go), wo = {
2529
2542
  class: "table-box"
2530
2543
  };
2531
2544
  function ue(o) {
2532
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
2545
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
2533
2546
  }
2534
- const wo = /* @__PURE__ */ T({
2547
+ const Co = /* @__PURE__ */ L({
2535
2548
  name: "TCSubscribe",
2536
2549
  __name: "index",
2537
2550
  setup(o) {
@@ -2541,38 +2554,38 @@ const wo = /* @__PURE__ */ T({
2541
2554
  } = window, n = S(""), i = S({
2542
2555
  receiver: []
2543
2556
  });
2544
- function v(u) {
2557
+ function f(u) {
2545
2558
  r(u, "subscript_name", a("button.delete"), "error").then(async () => {
2546
- await rt({
2559
+ await st({
2547
2560
  subscript_uuids: u.map((y) => y.subscript_uuid)
2548
2561
  }), t.value.getTableList();
2549
2562
  });
2550
2563
  }
2551
- function d() {
2552
- v(t.value.selectedList);
2564
+ function p() {
2565
+ f(t.value.selectedList);
2553
2566
  }
2554
2567
  const b = (u) => {
2555
2568
  i.value = u ? Object.assign({}, u) : {
2556
2569
  receiver: []
2557
2570
  }, n.value = u ? "编辑报表订阅" : "新增报表订阅", e.value.open();
2558
2571
  };
2559
- async function f(u) {
2572
+ async function v(u) {
2560
2573
  const y = Object.assign({}, u);
2561
- y.subscript_uuid ? await at({
2574
+ y.subscript_uuid ? await rt({
2562
2575
  subscript_uuid: y.subscript_uuid,
2563
2576
  data: y
2564
- }) : await nt({
2577
+ }) : await at({
2565
2578
  data: y
2566
2579
  }), t.value.getTableList(), e.value.close();
2567
2580
  }
2568
- function c(u, y, k) {
2581
+ function c(u, y, A) {
2569
2582
  if (!y || y.length === 0)
2570
- return k(new Error("请输入收件人"));
2571
- k();
2583
+ return A(new Error("请输入收件人"));
2584
+ A();
2572
2585
  }
2573
2586
  const w = (u, y) => {
2574
2587
  u.target.value && i.value[y].push(u.target.value);
2575
- }, m = [{
2588
+ }, _ = [{
2576
2589
  label: "周一",
2577
2590
  value: 1
2578
2591
  }, {
@@ -2602,7 +2615,7 @@ const wo = /* @__PURE__ */ T({
2602
2615
  }, {
2603
2616
  label: "每月",
2604
2617
  value: 2
2605
- }], $ = [], C = W([{
2618
+ }], $ = [], C = K([{
2606
2619
  type: "selection",
2607
2620
  align: "center",
2608
2621
  field: "subscript_uuid",
@@ -2629,7 +2642,7 @@ const wo = /* @__PURE__ */ T({
2629
2642
  }, {
2630
2643
  field: "report_uuid",
2631
2644
  name: "报表类型",
2632
- enum: () => it({
2645
+ enum: () => ut({
2633
2646
  prod_type: window.$prodType
2634
2647
  }),
2635
2648
  fieldNames: {
@@ -2646,7 +2659,7 @@ const wo = /* @__PURE__ */ T({
2646
2659
  }, {
2647
2660
  field: "format",
2648
2661
  name: "报表格式",
2649
- enum: ut,
2662
+ enum: pt,
2650
2663
  fieldNames: {
2651
2664
  label: "name",
2652
2665
  value: "id"
@@ -2661,7 +2674,7 @@ const wo = /* @__PURE__ */ T({
2661
2674
  }, {
2662
2675
  field: "select_data",
2663
2676
  name: "资产/任务",
2664
- enum: pt,
2677
+ enum: dt,
2665
2678
  fieldNames: {
2666
2679
  label: "label",
2667
2680
  value: "data"
@@ -2680,17 +2693,17 @@ const wo = /* @__PURE__ */ T({
2680
2693
  key: window.$prodType
2681
2694
  }
2682
2695
  },
2683
- render: (u) => t.value.enumMap.get("dbsId").filter((D) => u.row.dbsId.indexOf(D.id) > -1).map((D) => l(s("el-tag"), {
2696
+ render: (u) => t.value.enumMap.get("dbsId").filter((k) => u.row.dbsId.indexOf(k.id) > -1).map((k) => l(s("el-tag"), {
2684
2697
  class: "mr-10px",
2685
2698
  type: "info"
2686
2699
  }, {
2687
- default: () => [D.policy_name]
2700
+ default: () => [k.policy_name]
2688
2701
  }))
2689
2702
  }, {
2690
2703
  field: "receiver_email",
2691
2704
  name: "收件人",
2692
2705
  width: 300,
2693
- render: (u) => l(F, null, [u.row.receiver_email.map((y) => l(s("el-tag"), {
2706
+ render: (u) => l(E, null, [u.row.receiver_email.map((y) => l(s("el-tag"), {
2694
2707
  class: "mr-10px",
2695
2708
  type: "info"
2696
2709
  }, ue(y) ? y : {
@@ -2700,7 +2713,7 @@ const wo = /* @__PURE__ */ T({
2700
2713
  type: "input",
2701
2714
  render: () => {
2702
2715
  let u;
2703
- return l(F, null, [l(s("el-select"), {
2716
+ return l(E, null, [l(s("el-select"), {
2704
2717
  class: "right-select",
2705
2718
  modelValue: i.value.receiver_email,
2706
2719
  "onUpdate:modelValue": (y) => i.value.receiver_email = y,
@@ -2772,7 +2785,7 @@ const wo = /* @__PURE__ */ T({
2772
2785
  field: "weekday",
2773
2786
  name: "星期",
2774
2787
  hide: !0,
2775
- enum: m,
2788
+ enum: _,
2776
2789
  show: {
2777
2790
  type: "select"
2778
2791
  },
@@ -2819,7 +2832,7 @@ const wo = /* @__PURE__ */ T({
2819
2832
  "active-value": 1,
2820
2833
  "inactive-value": 0,
2821
2834
  onChange: (y) => {
2822
- st({
2835
+ it({
2823
2836
  subscript_uuid: u.row.subscript_uuid,
2824
2837
  enable_status: y
2825
2838
  }), t.value.getTableList();
@@ -2843,40 +2856,40 @@ const wo = /* @__PURE__ */ T({
2843
2856
  type: "danger",
2844
2857
  icon: "Delete",
2845
2858
  title: a("button.delete"),
2846
- onClick: () => v([u.row])
2859
+ onClick: () => f([u.row])
2847
2860
  }, null)])
2848
2861
  }]);
2849
2862
  return (u, y) => {
2850
- const k = s("el-button");
2851
- return _(), x("div", ho, [l(h(Oe), {
2863
+ const A = s("el-button");
2864
+ return m(), x("div", wo, [l(h(Ne), {
2852
2865
  ref_key: "refTdsTable",
2853
2866
  ref: t,
2854
2867
  "row-key": "subscript_uuid",
2855
- "request-api": h(lt),
2868
+ "request-api": h(nt),
2856
2869
  columns: C,
2857
2870
  options: u.$tableOptions()
2858
2871
  }, {
2859
- tableHeader: p((D) => [l(k, {
2872
+ tableHeader: d((k) => [l(A, {
2860
2873
  type: "primary",
2861
2874
  icon: "Plus",
2862
2875
  class: "custom-btn",
2863
2876
  plain: "",
2864
- onClick: y[0] || (y[0] = (se) => b())
2877
+ onClick: y[0] || (y[0] = (W) => b())
2865
2878
  }, {
2866
- default: p(() => [R(B(h(a)("button.add")), 1)]),
2879
+ default: d(() => [R(H(h(a)("button.add")), 1)]),
2867
2880
  _: 1
2868
- }), l(k, {
2881
+ }), l(A, {
2869
2882
  type: "danger",
2870
2883
  icon: "Delete",
2871
2884
  plain: "",
2872
- onClick: d,
2873
- disabled: !D.selectedListIds.length
2885
+ onClick: p,
2886
+ disabled: !k.selectedListIds.length
2874
2887
  }, {
2875
- default: p(() => [R(B(h(a)("button.delete")), 1)]),
2888
+ default: d(() => [R(H(h(a)("button.delete")), 1)]),
2876
2889
  _: 2
2877
2890
  }, 1032, ["disabled"])]),
2878
2891
  _: 1
2879
- }, 8, ["request-api", "columns", "options"]), l(h(Ne), ve({
2892
+ }, 8, ["request-api", "columns", "options"]), l(h(We), ve({
2880
2893
  ref_key: "refTdsForm",
2881
2894
  ref: e
2882
2895
  }, u.$formBindProps({
@@ -2884,24 +2897,68 @@ const wo = /* @__PURE__ */ T({
2884
2897
  form: i.value,
2885
2898
  columns: C
2886
2899
  }), {
2887
- onSubmit: f
2900
+ onSubmit: v
2888
2901
  }), null, 16)]);
2889
2902
  };
2890
2903
  }
2891
- }), Co = re(wo), xo = {
2892
- TCReport: _o,
2893
- TCModule: go,
2894
- TCSubscribe: Co
2895
- }, Uo = {
2904
+ }), xo = X(Co), $o = {
2905
+ class: "main-wrapper"
2906
+ }, ko = /* @__PURE__ */ L({
2907
+ name: "TCBuildin",
2908
+ __name: "index",
2909
+ setup(o) {
2910
+ const t = S([]), e = S("1");
2911
+ async function a() {
2912
+ const r = await ct({
2913
+ prod_type: window.$prodType
2914
+ });
2915
+ t.value = r.data, e.value = r.data[0].report_uuid;
2916
+ }
2917
+ return a(), (r, n) => {
2918
+ const i = s("el-tab-pane"), f = s("el-tabs");
2919
+ return m(), x("div", $o, [l(f, {
2920
+ modelValue: e.value,
2921
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => e.value = p),
2922
+ class: "report-tabs",
2923
+ style: {
2924
+ height: "100%"
2925
+ }
2926
+ }, {
2927
+ default: d(() => [(m(!0), x(E, null, I(t.value, (p) => (m(), T(i, {
2928
+ style: {
2929
+ height: "100%"
2930
+ },
2931
+ key: p.report_uuid,
2932
+ label: p.report_name,
2933
+ name: p.report_uuid
2934
+ }, {
2935
+ default: d(() => [e.value === p.report_uuid ? (m(), T(Se, {
2936
+ key: 0,
2937
+ "report-id": e.value
2938
+ }, null, 8, ["report-id"])) : U("", !0)]),
2939
+ _: 2
2940
+ }, 1032, ["label", "name"]))), 128))]),
2941
+ _: 1
2942
+ }, 8, ["modelValue"])]);
2943
+ };
2944
+ }
2945
+ });
2946
+ const Vo = /* @__PURE__ */ N(ko, [["__scopeId", "data-v-c48d204e"]]), So = X(Vo), To = {
2947
+ TCReport: fo,
2948
+ TCModule: ho,
2949
+ TCSubscribe: xo,
2950
+ TCBuildin: So
2951
+ }, Io = {
2896
2952
  install(o, t) {
2897
- Object.entries(xo).forEach(([e, a]) => {
2953
+ Object.entries(To).forEach(([e, a]) => {
2898
2954
  o.component(e, a);
2899
2955
  }), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
2900
2956
  }
2901
2957
  };
2902
2958
  export {
2903
- go as TCModule,
2904
- _o as TCReport,
2905
- Co as TCSubscribe,
2906
- Uo as default
2959
+ So as TCBuildin,
2960
+ ho as TCModule,
2961
+ fo as TCReport,
2962
+ xo as TCSubscribe,
2963
+ Io as default
2907
2964
  };