@topdatasec/report 1.1.0 → 1.1.1

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,46 +1,9 @@
1
- import { defineComponent as k, computed as F, resolveComponent as p, openBlock as d, createElementBlock as h, createElementVNode as C, Fragment as A, renderList as I, normalizeClass as O, createBlock as S, createCommentVNode as R, toDisplayString as W, ref as $, createVNode as a, withCtx as u, onMounted as te, normalizeProps as re, guardReactiveProps as se, isVNode as ie, normalizeStyle as xe, mergeModels as ue, useModel as pe, unref as y, createTextVNode as D, resolveDynamicComponent as Y, isRef as we, withModifiers as Ve, watch as Se, resolveDirective as ke, withDirectives as $e, shallowRef as Te, onBeforeUnmount as Le, onUnmounted as Re, reactive as Ue, TransitionGroup as De } from "vue";
2
- import { defineStore as Ae, storeToRefs as Ee } from "pinia";
1
+ import { defineComponent as k, computed as I, resolveComponent as p, openBlock as d, createElementBlock as h, createElementVNode as C, Fragment as A, renderList as z, normalizeClass as O, createBlock as S, createCommentVNode as R, toDisplayString as W, ref as $, createVNode as a, withCtx as u, onMounted as te, normalizeProps as re, guardReactiveProps as se, isVNode as ie, normalizeStyle as xe, mergeModels as ue, useModel as pe, unref as y, createTextVNode as E, resolveDynamicComponent as Y, isRef as we, withModifiers as Ve, watch as Se, resolveDirective as ke, withDirectives as $e, shallowRef as Te, onBeforeUnmount as Le, onUnmounted as Re, reactive as Ue, TransitionGroup as De } from "vue";
2
+ import { defineStore as Ee, storeToRefs as Ae } from "pinia";
3
3
  import { ElMessage as Fe } from "element-plus";
4
4
  import { VueDraggable as Ie } from "vue-draggable-plus";
5
5
  import { Toolbar as ze, Editor as He } from "@wangeditor/editor-for-vue";
6
- const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), q = (n) => JSON.parse(JSON.stringify(n)), Me = (n) => n.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (n, t) => n[Me(t)], j = window.$http, P = window.$reportURL, je = (n) => j.request({
7
- url: `${P}/tds/report/demo/get`,
8
- method: "get",
9
- params: n,
10
- isError: !1
11
- }), de = (n) => j.request({
12
- url: `${P}/tds/report/item/get`,
13
- method: "get",
14
- params: n,
15
- isError: !1
16
- }), Pe = (n) => j.request({
17
- url: `${P}/tds/report/preview`,
18
- method: "get",
19
- params: n,
20
- isError: !1
21
- }), Be = (n) => j.request({
22
- url: `${P}/tds/report/add`,
23
- method: "post",
24
- data: n
25
- }), We = (n) => j.request({
26
- url: `${P}/tds/report/put`,
27
- method: "put",
28
- data: n
29
- }), Ne = (n) => j.request({
30
- url: `${P}/tds/report/get`,
31
- method: "get",
32
- params: n,
33
- isError: !1
34
- }), Oe = (n) => j.request({
35
- url: `${P}/tds/report/filter/get`,
36
- method: "get",
37
- params: n,
38
- isError: !1
39
- }), Ye = (n) => j.request({
40
- url: `${P}/tds/report/delete`,
41
- method: "delete",
42
- data: n
43
- }), ce = "rgba(51, 51, 51, 0.15)", M = "rgba(51, 51, 51, 1)", N = 12, me = (n = !1) => {
6
+ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), q = (l) => JSON.parse(JSON.stringify(l)), Me = (l) => l.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (l, t) => l[Me(t)], de = "rgba(51, 51, 51, 0.15)", M = "rgba(51, 51, 51, 1)", N = 12, ce = (l = !1) => {
44
7
  const t = {
45
8
  // top: '2%',
46
9
  left: "3%",
@@ -48,7 +11,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
48
11
  bottom: "2%",
49
12
  containLabel: !0
50
13
  };
51
- return n && (t.top = "5%"), t;
14
+ return l && (t.top = "5%"), t;
52
15
  }, U = [
53
16
  "46, 145, 255",
54
17
  "48, 212, 183",
@@ -70,12 +33,12 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
70
33
  "100, 161, 206",
71
34
  "246, 175, 159",
72
35
  "238, 97, 97"
73
- ], qe = (n, t, e = "", l = { name: "name", value: "value" }) => {
36
+ ], je = (l, t, e = "", n = { name: "name", value: "value" }) => {
74
37
  const r = [], o = [];
75
38
  t.forEach((s) => {
76
- r.push(s[l.name]), o.push(s[l.value]);
77
- }), n.xAxis[0].data = r, n.series[0].data = o, n.series[0].name = e, n.series[1].data = o, n.series[2].data = o;
78
- }, oe = (n = [
39
+ r.push(s[n.name]), o.push(s[n.value]);
40
+ }), l.xAxis[0].data = r, l.series[0].data = o, l.series[0].name = e, l.series[1].data = o, l.series[2].data = o;
41
+ }, oe = (l = [
79
42
  {
80
43
  name: "数据1",
81
44
  value: 63
@@ -107,7 +70,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
107
70
  }
108
71
  ]
109
72
  }
110
- }), l = n.map((r) => r[t.value]);
73
+ }), n = l.map((r) => r[t.value]);
111
74
  return {
112
75
  // 提示框组件
113
76
  tooltip: {
@@ -119,7 +82,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
119
82
  // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
120
83
  // show: true,
121
84
  // },
122
- grid: me(),
85
+ grid: ce(),
123
86
  title: {
124
87
  show: !0,
125
88
  text: "样例数据",
@@ -148,7 +111,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
148
111
  //X轴轴线设置
149
112
  show: !0,
150
113
  lineStyle: {
151
- color: ce,
114
+ color: de,
152
115
  width: 1
153
116
  }
154
117
  },
@@ -156,7 +119,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
156
119
  // X轴刻度相关设置
157
120
  splitLine: { show: !1 },
158
121
  // 横向分隔线
159
- data: n.map((r) => r[t.name])
122
+ data: l.map((r) => r[t.name])
160
123
  }
161
124
  ],
162
125
  // y轴设置
@@ -192,7 +155,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
192
155
  barWidth: 15,
193
156
  barGap: "0%",
194
157
  itemStyle: e(`rgba(${U[0]}, 0.7)`, `rgba(${U[0]}, 0.2)`),
195
- data: l,
158
+ data: n,
196
159
  label: {
197
160
  show: !0,
198
161
  // 显示标签
@@ -212,7 +175,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
212
175
  //调整截面形状
213
176
  symbolOffset: [0, 5],
214
177
  itemStyle: e(`rgba(${U[0]}, 0.7)`, `rgba(${U[0]}, 0.2)`),
215
- data: l
178
+ data: n
216
179
  },
217
180
  {
218
181
  // 柱顶圆片
@@ -223,19 +186,19 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
223
186
  symbolOffset: [0, -5],
224
187
  symbolPosition: "end",
225
188
  itemStyle: e(`rgba(${U[0]}, 0.9)`, `rgba(${U[0]}, 1)`),
226
- data: l
189
+ data: n
227
190
  }
228
191
  ]
229
192
  };
230
- }, Ge = ({ chartOption: n, data: t, props: e = { name: "label", value: "data" } }) => {
231
- let l = 0;
232
- const r = t.map((o, s) => (l += Number(o[e.value]), {
193
+ }, Pe = ({ chartOption: l, data: t, props: e = { name: "label", value: "data" } }) => {
194
+ let n = 0;
195
+ const r = t.map((o, s) => (n += Number(o[e.value]), {
233
196
  name: o[e.name],
234
197
  value: Number(o[e.value])
235
198
  }));
236
- t.length > 0 && (n.legend.data = r, n.series[0].data = r, n.graphic[1].style.text = l);
237
- }, Je = () => U.map((n) => `rgba(${n}, 1)`), J = ({
238
- data: n = [
199
+ t.length > 0 && (l.legend.data = r, l.series[0].data = r, l.graphic[1].style.text = n);
200
+ }, Be = () => U.map((l) => `rgba(${l}, 1)`), J = ({
201
+ data: l = [
239
202
  {
240
203
  name: "数据1",
241
204
  value: 63
@@ -251,13 +214,13 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
251
214
  ],
252
215
  radiusType: t = 1,
253
216
  roseType: e = !1,
254
- isLegend: l = !0,
217
+ isLegend: n = !0,
255
218
  isLine: r = !1,
256
219
  center: o = ["50%", "50%"],
257
220
  isTitle: s = !0
258
221
  }) => {
259
222
  const m = {
260
- color: Je(),
223
+ color: Be(),
261
224
  toolbox: { show: !1 },
262
225
  tooltip: {
263
226
  trigger: "item",
@@ -279,7 +242,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
279
242
  y: 10
280
243
  },
281
244
  legend: {
282
- show: l,
245
+ show: n,
283
246
  left: "70%",
284
247
  formatter: (i) => {
285
248
  var c;
@@ -290,7 +253,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
290
253
  fontSize: N,
291
254
  color: M
292
255
  },
293
- data: n,
256
+ data: l,
294
257
  orient: "vertical",
295
258
  itemWidth: 10,
296
259
  itemHeight: 10,
@@ -365,7 +328,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
365
328
  width: 1
366
329
  }
367
330
  },
368
- data: n
331
+ data: l
369
332
  }
370
333
  ],
371
334
  graphic: [
@@ -396,11 +359,11 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
396
359
  ]
397
360
  };
398
361
  return m;
399
- }, Ke = (n, t, e = { name: "name", value: "value" }) => {
400
- n.xAxis.data = t.map((l) => l[e.name]), Array.isArray(e.value) ? e.value.forEach((l, r) => {
401
- n.series[r].data = t.map((o) => o[l.value]);
402
- }) : typeof e.value == "string" && (n.series[0].data = t.map((l) => l[e.value]));
403
- }, Qe = () => ({
362
+ }, We = (l, t, e = { name: "name", value: "value" }) => {
363
+ l.xAxis.data = t.map((n) => n[e.name]), Array.isArray(e.value) ? e.value.forEach((n, r) => {
364
+ l.series[r].data = t.map((o) => o[n.value]);
365
+ }) : typeof e.value == "string" && (l.series[0].data = t.map((n) => n[e.value]));
366
+ }, Ne = () => ({
404
367
  name: "",
405
368
  type: "line",
406
369
  symbol: "circle",
@@ -419,8 +382,8 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
419
382
  //开启显示
420
383
  position: "top",
421
384
  //在上方显示
422
- formatter: function(n) {
423
- return n.value ? n.value : 0;
385
+ formatter: function(l) {
386
+ return l.value ? l.value : 0;
424
387
  }
425
388
  }
426
389
  },
@@ -446,7 +409,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
446
409
  }
447
410
  },
448
411
  data: []
449
- }), K = (n = [
412
+ }), K = (l = [
450
413
  {
451
414
  name: "2024-08",
452
415
  value: 63
@@ -483,14 +446,14 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
483
446
  padding: [0, 8, 0, 8]
484
447
  }
485
448
  },
486
- grid: me(),
449
+ grid: ce(),
487
450
  xAxis: {
488
451
  type: "category",
489
452
  splitLine: { show: !1 },
490
453
  axisTick: { show: !1 },
491
454
  axisLine: {
492
455
  show: !0,
493
- lineStyle: { color: ce }
456
+ lineStyle: { color: de }
494
457
  },
495
458
  axisLabel: {
496
459
  show: !0,
@@ -498,7 +461,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
498
461
  color: M
499
462
  },
500
463
  boundaryGap: !1,
501
- data: n.map((o) => o[t.name])
464
+ data: l.map((o) => o[t.name])
502
465
  },
503
466
  yAxis: {
504
467
  name: "",
@@ -518,15 +481,15 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
518
481
  }
519
482
  },
520
483
  series: []
521
- }, l = Qe(), r = [];
484
+ }, n = Ne(), r = [];
522
485
  if (Array.isArray(t.value))
523
486
  t.value.forEach((o, s) => {
524
- const m = q(l);
525
- m.name = o.name, m.lineStyle.color = `rgba(${U[s]}, 1)`, m.itemStyle.color = `rgba(${U[s]}, 1)`, m.areaStyle.color.colorStops[0].color = `rgba(${U[s]}, 0.7)`, m.areaStyle.color.colorStops[1].color = `rgba(${U[s]}, 0.1)`, m.data = n.map((i) => i[o.value]), r.push(m);
487
+ const m = q(n);
488
+ m.name = o.name, m.lineStyle.color = `rgba(${U[s]}, 1)`, m.itemStyle.color = `rgba(${U[s]}, 1)`, m.areaStyle.color.colorStops[0].color = `rgba(${U[s]}, 0.7)`, m.areaStyle.color.colorStops[1].color = `rgba(${U[s]}, 0.1)`, m.data = l.map((i) => i[o.value]), r.push(m);
526
489
  });
527
490
  else if (typeof t.value == "string") {
528
- const o = q(l);
529
- o.data = n.map((s) => s[t.value]), r.push(o);
491
+ const o = q(n);
492
+ o.data = l.map((s) => s[t.value]), r.push(o);
530
493
  }
531
494
  return e.series = r, e;
532
495
  }, le = [
@@ -542,7 +505,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
542
505
  { data: [{ name: "默认数据", value: 311 }], label: "name2" },
543
506
  { data: [{ name: "默认数据", value: 42 }], label: "name3" },
544
507
  { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
545
- ], Xe = [
508
+ ], Oe = [
546
509
  {
547
510
  data: 63,
548
511
  label: "数据1"
@@ -555,7 +518,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
555
518
  data: 43,
556
519
  label: "数据3"
557
520
  }
558
- ], Ze = [
521
+ ], Ye = [
559
522
  {
560
523
  type: "report-select",
561
524
  label: "资产:",
@@ -636,7 +599,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
636
599
  rp_item_uuid: "",
637
600
  id: B()
638
601
  }
639
- ], et = [
602
+ ], qe = [
640
603
  {
641
604
  type: "h1",
642
605
  data: "报表名称",
@@ -708,7 +671,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
708
671
  rp_item_uuid: "",
709
672
  id: ""
710
673
  }
711
- ], tt = (n) => ({
674
+ ], Ge = (l) => ({
712
675
  bar: {
713
676
  type: "bar",
714
677
  data: Q,
@@ -729,7 +692,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
729
692
  },
730
693
  pie: {
731
694
  type: "pie",
732
- data: Xe,
695
+ data: Oe,
733
696
  showColumn: [{ key: "label", value: "data" }],
734
697
  name: "图表",
735
698
  options: J({ isLegend: !0 }),
@@ -754,36 +717,45 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
754
717
  rp_item_uuid: "",
755
718
  id: ""
756
719
  }
757
- })[n], z = Ae("tds-cl-report", {
720
+ })[l], D = Ee("tds-report", {
758
721
  state: () => ({
759
722
  componentList: [],
760
723
  activeComponents: {},
761
724
  notDraggableList: [],
762
725
  titleComponent: {},
763
- prodType: 4,
726
+ prodType: -1,
727
+ envURL: "",
764
728
  filterForm: {
765
729
  range_time: 1,
766
730
  filter_uuid: ""
767
731
  }
768
732
  }),
769
733
  getters: {
770
- getActiveComponents: (n) => n.activeComponents
734
+ getActiveComponents: (l) => l.activeComponents
771
735
  },
772
736
  actions: {
773
737
  // setComponentList
774
- setComponentList(n) {
775
- this.componentList = n;
738
+ setComponentList(l) {
739
+ this.componentList = l;
776
740
  },
777
- async getReportDemo(n) {
741
+ async getReportDemo(l) {
778
742
  let t = [];
779
- n ? t = (await je({ report_uuid: n })).data : t = { content: q(Ze), range_time: 1 };
743
+ l ? t = (await Ke({ report_uuid: l })).data : t = { content: q(Ye), range_time: 1 };
780
744
  const e = [];
781
- t.content.forEach((l) => {
782
- (l.type === "report-select" || l.type === "range-time") && e.push(l), l.type === "h1" && (this.titleComponent = l), l.id = B();
745
+ t.content.forEach((n) => {
746
+ (n.type === "report-select" || n.type === "range-time") && e.push(n), n.type === "h1" && (this.titleComponent = n), n.id = B();
783
747
  }), this.notDraggableList = e, this.filterForm.range_time = t.range_time, this.filterForm.filter_uuid = t.filter_uuid, t.content.splice(0, 3), this.componentList = t.content;
784
748
  },
785
- setActiveComponents(n) {
786
- this.activeComponents = n;
749
+ // 设置使用分支
750
+ setProdType(l) {
751
+ this.prodType = l;
752
+ },
753
+ // 设置请求路由
754
+ setEnvURL(l) {
755
+ this.envURL = l;
756
+ },
757
+ setActiveComponents(l) {
758
+ this.activeComponents = l;
787
759
  },
788
760
  clearComponents() {
789
761
  this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
@@ -792,18 +764,55 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
792
764
  };
793
765
  }
794
766
  }
795
- }), ot = { class: "catalogue" }, lt = ["href", "title"], nt = /* @__PURE__ */ k({
767
+ }), Je = D(), j = window.$http, P = Je.envURL, Ke = (l) => j.request({
768
+ url: `${P}/tds/report/demo/get`,
769
+ method: "get",
770
+ params: l,
771
+ isError: !1
772
+ }), me = (l) => j.request({
773
+ url: `${P}/tds/report/item/get`,
774
+ method: "get",
775
+ params: l,
776
+ isError: !1
777
+ }), Qe = (l) => j.request({
778
+ url: `${P}/tds/report/preview`,
779
+ method: "get",
780
+ params: l,
781
+ isError: !1
782
+ }), Xe = (l) => j.request({
783
+ url: `${P}/tds/report/add`,
784
+ method: "post",
785
+ data: l
786
+ }), Ze = (l) => j.request({
787
+ url: `${P}/tds/report/put`,
788
+ method: "put",
789
+ data: l
790
+ }), et = (l) => j.request({
791
+ url: `${P}/tds/report/get`,
792
+ method: "get",
793
+ params: l,
794
+ isError: !1
795
+ }), tt = (l) => j.request({
796
+ url: `${P}/tds/report/filter/get`,
797
+ method: "get",
798
+ params: l,
799
+ isError: !1
800
+ }), ot = (l) => j.request({
801
+ url: `${P}/tds/report/delete`,
802
+ method: "delete",
803
+ data: l
804
+ }), lt = { class: "catalogue" }, nt = ["href", "title"], at = /* @__PURE__ */ k({
796
805
  __name: "Catalogue",
797
806
  props: {
798
807
  data: { default: () => [] }
799
808
  },
800
- setup(n) {
801
- const t = n, e = F(() => t.data.filter((l) => ["h2", "h3", "h4"].includes(l.type)));
802
- return (l, r) => {
809
+ setup(l) {
810
+ const t = l, e = I(() => t.data.filter((n) => ["h2", "h3", "h4"].includes(n.type)));
811
+ return (n, r) => {
803
812
  const o = p("el-divider");
804
- return d(), h("div", ot, [
813
+ return d(), h("div", lt, [
805
814
  r[0] || (r[0] = C("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
806
- (d(!0), h(A, null, I(e.value, (s) => (d(), h("div", {
815
+ (d(!0), h(A, null, z(e.value, (s) => (d(), h("div", {
807
816
  class: O("level" + s.type),
808
817
  key: s.value
809
818
  }, [
@@ -815,84 +824,84 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
815
824
  class: "el-anchor__link",
816
825
  href: "#" + s.id,
817
826
  title: s.data
818
- }, W(s.data), 9, lt)
827
+ }, W(s.data), 9, nt)
819
828
  ], 2))), 128))
820
829
  ]);
821
830
  };
822
831
  }
823
832
  });
824
- const G = (n, t) => {
825
- const e = n.__vccOpts || n;
826
- for (const [l, r] of t)
827
- e[l] = r;
833
+ const G = (l, t) => {
834
+ const e = l.__vccOpts || l;
835
+ for (const [n, r] of t)
836
+ e[n] = r;
828
837
  return e;
829
- }, at = /* @__PURE__ */ G(nt, [["__scopeId", "data-v-1cd8aa2d"]]), rt = {
838
+ }, rt = /* @__PURE__ */ G(at, [["__scopeId", "data-v-1cd8aa2d"]]), st = {
830
839
  class: "chart-components"
831
840
  }, _e = /* @__PURE__ */ k({
832
841
  __name: "Bar",
833
842
  props: {
834
843
  value: {}
835
844
  },
836
- setup(n) {
837
- const t = n, e = F(() => t.value.options);
838
- return $(!1), (l, r) => {
845
+ setup(l) {
846
+ const t = l, e = I(() => t.value.options);
847
+ return $(!1), (n, r) => {
839
848
  const o = p("TdsChart");
840
- return d(), h("div", rt, [a(o, {
849
+ return d(), h("div", st, [a(o, {
841
850
  option: e.value
842
851
  }, null, 8, ["option"])]);
843
852
  };
844
853
  }
845
- }), st = { class: "chart-components" }, fe = /* @__PURE__ */ k({
854
+ }), it = { class: "chart-components" }, fe = /* @__PURE__ */ k({
846
855
  __name: "Line",
847
856
  props: {
848
857
  value: {}
849
858
  },
850
- setup(n) {
851
- const t = n, e = F(() => t.value.options);
852
- return (l, r) => {
859
+ setup(l) {
860
+ const t = l, e = I(() => t.value.options);
861
+ return (n, r) => {
853
862
  const o = p("TdsChart");
854
- return d(), h("div", st, [
863
+ return d(), h("div", it, [
855
864
  a(o, { option: e.value }, null, 8, ["option"])
856
865
  ]);
857
866
  };
858
867
  }
859
- }), it = { class: "chart-components" }, ve = /* @__PURE__ */ k({
868
+ }), ut = { class: "chart-components" }, ve = /* @__PURE__ */ k({
860
869
  __name: "Pie",
861
870
  props: {
862
871
  value: {}
863
872
  },
864
- setup(n) {
865
- const t = n, e = F(() => t.value.options);
866
- return (l, r) => {
873
+ setup(l) {
874
+ const t = l, e = I(() => t.value.options);
875
+ return (n, r) => {
867
876
  const o = p("TdsChart");
868
- return d(), h("div", it, [
877
+ return d(), h("div", ut, [
869
878
  a(o, { option: e.value }, null, 8, ["option"])
870
879
  ]);
871
880
  };
872
881
  }
873
- }), ut = { key: 0 }, X = /* @__PURE__ */ k({
882
+ }), pt = { key: 0 }, X = /* @__PURE__ */ k({
874
883
  __name: "ReportSelect",
875
884
  props: {
876
885
  value: {}
877
886
  },
878
887
  emits: ["change"],
879
- setup(n, { emit: t }) {
880
- const e = t, l = (s) => {
888
+ setup(l, { emit: t }) {
889
+ const e = t, n = (s) => {
881
890
  e("change", s);
882
- }, o = $(n.value);
891
+ }, o = $(l.value);
883
892
  return (s, m) => {
884
893
  const i = p("el-option"), f = p("el-select");
885
- return o.value.data ? (d(), h("div", ut, [
894
+ return o.value.data ? (d(), h("div", pt, [
886
895
  a(f, {
887
896
  modelValue: o.value.value,
888
897
  "onUpdate:modelValue": m[0] || (m[0] = (c) => o.value.value = c),
889
898
  multiple: "",
890
899
  style: { width: "100%" },
891
- onChange: l,
900
+ onChange: n,
892
901
  placeholder: "全部"
893
902
  }, {
894
903
  default: u(() => [
895
- (d(!0), h(A, null, I(o.value.data, (c) => (d(), S(i, {
904
+ (d(!0), h(A, null, z(o.value.data, (c) => (d(), S(i, {
896
905
  key: c.data,
897
906
  label: c.label,
898
907
  value: c.data
@@ -909,8 +918,8 @@ const G = (n, t) => {
909
918
  value: {}
910
919
  },
911
920
  emits: ["change"],
912
- setup(n, { emit: t }) {
913
- const e = t, r = $(n.value), o = $([]);
921
+ setup(l, { emit: t }) {
922
+ const e = t, r = $(l.value), o = $([]);
914
923
  function s(m) {
915
924
  m ? (r.value.data[0].start_time = m[0], r.value.data[0].end_time = m[1]) : o.value = [], e("change", o.value);
916
925
  }
@@ -933,59 +942,59 @@ const G = (n, t) => {
933
942
  };
934
943
  }
935
944
  });
936
- function pt(n) {
937
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !ie(n);
945
+ function dt(l) {
946
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !ie(l);
938
947
  }
939
948
  const be = /* @__PURE__ */ k({
940
949
  __name: "ReportTable",
941
950
  props: {
942
951
  value: {}
943
952
  },
944
- setup(n) {
945
- const t = n, e = (l) => {
953
+ setup(l) {
954
+ const t = l, e = (n) => {
946
955
  let r;
947
956
  return a(p("el-table"), {
948
- data: l.data,
957
+ data: n.data,
949
958
  border: t.value.options.border,
950
959
  "show-header": !!t.value.options.showHeader,
951
960
  stripe: t.value.options.stripe
952
- }, pt(r = l.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? a(p("el-table-column"), {
961
+ }, dt(r = n.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? a(p("el-table-column"), {
953
962
  prop: o.key,
954
963
  label: o.name
955
964
  }, null) : null)) ? r : {
956
965
  default: () => [r]
957
966
  });
958
967
  };
959
- return (l, r) => (d(), h("div", null, [a(e, re(se(l.value)), null, 16)]));
968
+ return (n, r) => (d(), h("div", null, [a(e, re(se(n.value)), null, 16)]));
960
969
  }
961
970
  }), ee = /* @__PURE__ */ k({
962
971
  __name: "ReportText",
963
972
  props: {
964
973
  value: {}
965
974
  },
966
- setup(n) {
967
- const t = n, e = () => {
968
- const l = t.value.options || {};
975
+ setup(l) {
976
+ const t = l, e = () => {
977
+ const n = t.value.options || {};
969
978
  return {
970
- color: l.color,
971
- "font-size": l.size + "px",
972
- "font-weight": l.fontWeight,
973
- "letter-spacing": l.letterSpacing + "px",
974
- "text-indent": l.textIndent + "px",
975
- "text-align": l.textAlign
979
+ color: n.color,
980
+ "font-size": n.size + "px",
981
+ "font-weight": n.fontWeight,
982
+ "letter-spacing": n.letterSpacing + "px",
983
+ "text-indent": n.textIndent + "px",
984
+ "text-align": n.textAlign
976
985
  };
977
986
  };
978
- return (l, r) => (d(), h("div", {
987
+ return (n, r) => (d(), h("div", {
979
988
  style: xe(e())
980
- }, W(l.value.data), 5));
989
+ }, W(n.value.data), 5));
981
990
  }
982
- }), dt = { class: "chart-components" }, ge = /* @__PURE__ */ k({
991
+ }), ct = { class: "chart-components" }, ge = /* @__PURE__ */ k({
983
992
  __name: "ReportChart",
984
993
  props: {
985
994
  value: {}
986
995
  },
987
- setup(n) {
988
- const t = n, e = F(() => t.value), l = F(() => {
996
+ setup(l) {
997
+ const t = l, e = I(() => t.value), n = I(() => {
989
998
  if (e.value.type === "bar") {
990
999
  e.value.options.series = oe([]).series;
991
1000
  const r = [];
@@ -995,9 +1004,9 @@ const be = /* @__PURE__ */ k({
995
1004
  name: s.label,
996
1005
  value: s.data[0].value
997
1006
  });
998
- }), qe(e.value.options, r, o);
1007
+ }), je(e.value.options, r, o);
999
1008
  }
1000
- if (e.value.type === "pie" && (e.value.options = J({ isLegend: !0 }), console.log(J({ isLegend: !0 }), "chartsPie({ isLegend: true })"), Ge({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1009
+ if (e.value.type === "pie" && (e.value.options = J({ isLegend: !0 }), console.log(J({ isLegend: !0 }), "chartsPie({ isLegend: true })"), Pe({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1001
1010
  let r = [];
1002
1011
  e.value.data.forEach((m) => {
1003
1012
  r = m.data.map((i, f) => ({ name: i.name, value: "value" + f }));
@@ -1013,35 +1022,35 @@ const be = /* @__PURE__ */ k({
1013
1022
  i[f.value] = m.data[c].value;
1014
1023
  }), i;
1015
1024
  });
1016
- console.log(K([], o), "chartsLine([], params)"), e.value.options.series = K([], o).series, Ke(e.value.options, s, o);
1025
+ console.log(K([], o), "chartsLine([], params)"), e.value.options.series = K([], o).series, We(e.value.options, s, o);
1017
1026
  }
1018
1027
  return e.value.options;
1019
1028
  });
1020
1029
  return (r, o) => {
1021
1030
  const s = p("TdsChart");
1022
- return d(), h("div", dt, [
1023
- a(s, { option: l.value }, null, 8, ["option"])
1031
+ return d(), h("div", ct, [
1032
+ a(s, { option: n.value }, null, 8, ["option"])
1024
1033
  ]);
1025
1034
  };
1026
1035
  }
1027
1036
  });
1028
- function ct(n) {
1029
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !ie(n);
1037
+ function mt(l) {
1038
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !ie(l);
1030
1039
  }
1031
1040
  const ye = /* @__PURE__ */ k({
1032
1041
  __name: "ReportDescribe",
1033
1042
  props: {
1034
1043
  value: {}
1035
1044
  },
1036
- setup(n) {
1037
- const t = n, e = (l) => {
1045
+ setup(l) {
1046
+ const t = l, e = (n) => {
1038
1047
  let r;
1039
1048
  return a(p("el-descriptions"), {
1040
1049
  title: t.value.options.title,
1041
1050
  border: t.value.options.border,
1042
1051
  column: t.value.options.column,
1043
1052
  direction: t.value.options.direction
1044
- }, ct(r = l.showColumn.map((o) => a(p("el-descriptions-item"), {
1053
+ }, mt(r = n.showColumn.map((o) => a(p("el-descriptions-item"), {
1045
1054
  label: o.name
1046
1055
  }, {
1047
1056
  default: () => [t.value.data[o.key]]
@@ -1049,19 +1058,19 @@ const ye = /* @__PURE__ */ k({
1049
1058
  default: () => [r]
1050
1059
  });
1051
1060
  };
1052
- return (l, r) => (d(), h("div", null, [a(e, re(se(l.value)), null, 16)]));
1061
+ return (n, r) => (d(), h("div", null, [a(e, re(se(n.value)), null, 16)]));
1053
1062
  }
1054
- }), mt = {
1063
+ }), _t = {
1055
1064
  class: "editor-box"
1056
- }, _t = {
1065
+ }, ft = {
1057
1066
  class: "editor",
1058
1067
  id: "editor",
1059
1068
  style: {
1060
1069
  width: "100%"
1061
1070
  }
1062
- }, ft = {
1071
+ }, vt = {
1063
1072
  class: "editor-content flex flex-start"
1064
- }, vt = ["id"], bt = ["innerHTML"], gt = /* @__PURE__ */ k({
1073
+ }, bt = ["id"], gt = ["innerHTML"], yt = /* @__PURE__ */ k({
1065
1074
  __name: "index",
1066
1075
  props: /* @__PURE__ */ ue({
1067
1076
  reportId: {
@@ -1073,7 +1082,7 @@ const ye = /* @__PURE__ */ k({
1073
1082
  modelModifiers: {}
1074
1083
  }),
1075
1084
  emits: ["update:modelValue"],
1076
- setup(n) {
1085
+ setup(l) {
1077
1086
  const t = {
1078
1087
  Bar: _e,
1079
1088
  Line: fe,
@@ -1084,7 +1093,7 @@ const ye = /* @__PURE__ */ k({
1084
1093
  ReportText: ee,
1085
1094
  ReportChart: ge,
1086
1095
  ReportDescribe: ye
1087
- }, e = z(), l = n, r = pe(n, "modelValue"), o = $([]), s = $([]), m = $([]), i = $(""), f = $("");
1096
+ }, e = D(), n = l, r = pe(l, "modelValue"), o = $([]), s = $([]), m = $([]), i = $(""), f = $("");
1088
1097
  function c() {
1089
1098
  r.value = "table";
1090
1099
  }
@@ -1094,25 +1103,25 @@ const ye = /* @__PURE__ */ k({
1094
1103
  v && v.length > 0 && (i.value = v[0], f.value = v[1]), b();
1095
1104
  }, b = async () => {
1096
1105
  const v = {
1097
- report_uuid: l.reportId,
1106
+ report_uuid: n.reportId,
1098
1107
  start_time: i.value,
1099
1108
  end_time: f.value,
1100
1109
  select_data: m.value.join(",")
1101
- }, x = await Pe(v), E = [];
1110
+ }, x = await Qe(v), F = [];
1102
1111
  x.data.forEach((w) => {
1103
- (w.type === "report-select" || w.type === "range-time") && E.push(w);
1104
- }), o.value = E, x.data.splice(0, o.value.length), s.value = x.data;
1112
+ (w.type === "report-select" || w.type === "range-time") && F.push(w);
1113
+ }), o.value = F, x.data.splice(0, o.value.length), s.value = x.data;
1105
1114
  };
1106
1115
  b();
1107
- const T = () => a("div", null, [D("未找到对应组件")]), V = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : a(T, null, null);
1116
+ const T = () => a("div", null, [E("未找到对应组件")]), V = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : a(T, null, null);
1108
1117
  return (v, x) => {
1109
- const E = p("el-button"), w = p("el-card");
1118
+ const F = p("el-button"), w = p("el-card");
1110
1119
  return d(), S(w, {
1111
1120
  class: "editor view"
1112
1121
  }, {
1113
- default: u(() => [C("div", mt, [a(at, {
1122
+ default: u(() => [C("div", _t, [a(rt, {
1114
1123
  data: s.value
1115
- }, null, 8, ["data"]), C("div", _t, [C("div", ft, [(d(!0), h(A, null, I(o.value, (L) => (d(), h("div", {
1124
+ }, null, 8, ["data"]), C("div", ft, [C("div", vt, [(d(!0), h(A, null, z(o.value, (L) => (d(), h("div", {
1116
1125
  class: "item-input",
1117
1126
  key: L.id
1118
1127
  }, [L.type === "report-select" ? (d(), S(X, {
@@ -1123,7 +1132,7 @@ const ye = /* @__PURE__ */ k({
1123
1132
  key: 1,
1124
1133
  onChange: g,
1125
1134
  value: L
1126
- }, null, 8, ["value"])) : R("", !0)]))), 128)), a(E, {
1135
+ }, null, 8, ["value"])) : R("", !0)]))), 128)), a(F, {
1127
1136
  plain: "",
1128
1137
  onClick: c,
1129
1138
  type: "primary",
@@ -1132,9 +1141,9 @@ const ye = /* @__PURE__ */ k({
1132
1141
  "margin-left": "auto"
1133
1142
  }
1134
1143
  }, {
1135
- default: u(() => x[0] || (x[0] = [D("退出预览")])),
1144
+ default: u(() => x[0] || (x[0] = [E("退出预览")])),
1136
1145
  _: 1
1137
- })]), (d(!0), h(A, null, I(s.value, (L) => (d(), h("div", {
1146
+ })]), (d(!0), h(A, null, z(s.value, (L) => (d(), h("div", {
1138
1147
  key: L.id,
1139
1148
  class: O(["editor-content", ["editor" + L.type]]),
1140
1149
  id: L.id
@@ -1143,24 +1152,24 @@ const ye = /* @__PURE__ */ k({
1143
1152
  class: O(["editor" + L.type]),
1144
1153
  value: L
1145
1154
  }, {
1146
- default: u(() => [D(W(L.data), 1)]),
1155
+ default: u(() => [E(W(L.data), 1)]),
1147
1156
  _: 2
1148
1157
  }, 1032, ["class", "value"])) : (d(), h("p", {
1149
1158
  key: 1,
1150
1159
  innerHTML: L.data
1151
- }, null, 8, bt))], 10, vt))), 128))])])]),
1160
+ }, null, 8, gt))], 10, bt))), 128))])])]),
1152
1161
  _: 1
1153
1162
  });
1154
1163
  };
1155
1164
  }
1156
1165
  });
1157
- const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1166
+ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
1158
1167
  class: "editor"
1159
- }, Ct = {
1168
+ }, xt = {
1160
1169
  class: "editor-content edit"
1161
- }, xt = ["onClick"], wt = ["onClick"], Vt = ["innerHTML", "draggable"], St = /* @__PURE__ */ k({
1170
+ }, wt = ["onClick"], Vt = ["onClick"], St = ["innerHTML", "draggable"], kt = /* @__PURE__ */ k({
1162
1171
  __name: "Editor",
1163
- setup(n) {
1172
+ setup(l) {
1164
1173
  const t = {
1165
1174
  Bar: _e,
1166
1175
  Line: fe,
@@ -1173,16 +1182,16 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1173
1182
  ReportDescribe: ye
1174
1183
  }, {
1175
1184
  componentList: e,
1176
- activeComponents: l,
1185
+ activeComponents: n,
1177
1186
  notDraggableList: r,
1178
1187
  titleComponent: o
1179
- } = Ee(z()), s = z(), m = (v) => {
1180
- e.value.forEach((x, E) => {
1181
- x.id === v && (e.value.splice(E, 1), s.activeComponents = []);
1188
+ } = Ae(D()), s = D(), m = (v) => {
1189
+ e.value.forEach((x, F) => {
1190
+ x.id === v && (e.value.splice(F, 1), s.activeComponents = []);
1182
1191
  });
1183
1192
  }, i = (v) => {
1184
1193
  s.setActiveComponents(v);
1185
- }, f = () => a("div", null, [D("未找到对应组件")]), c = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : a(f, null, null), _ = (v) => {
1194
+ }, f = () => a("div", null, [E("未找到对应组件")]), c = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : a(f, null, null), _ = (v) => {
1186
1195
  console.log(v, "evt");
1187
1196
  }, g = $(!1), b = () => {
1188
1197
  g.value = !0;
@@ -1190,25 +1199,25 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1190
1199
  v.newIndex !== 0 && (console.log(v), g.value = !1);
1191
1200
  }, V = $();
1192
1201
  return (v, x) => {
1193
- const E = p("icon-material-symbols:cancel-outline");
1194
- return d(), h("div", ht, [C("div", {
1202
+ const F = p("icon-material-symbols:cancel-outline");
1203
+ return d(), h("div", Ct, [C("div", {
1195
1204
  class: O(["editor-content edit flex flex-start", [{
1196
- active: y(l).id === "filter"
1205
+ active: y(n).id === "filter"
1197
1206
  }]]),
1198
1207
  onClick: x[0] || (x[0] = (w) => i({
1199
1208
  id: "filter",
1200
1209
  type: "filter"
1201
1210
  }))
1202
- }, [(d(!0), h(A, null, I(y(r), (w) => (d(), h("div", {
1211
+ }, [(d(!0), h(A, null, z(y(r), (w) => (d(), h("div", {
1203
1212
  class: "item-input",
1204
1213
  key: w.id
1205
1214
  }, [w.type === "report-select" || w.type === "range-time" && y(s).filterForm.range_time ? (d(), S(Y(y(H)(t, w.type)), {
1206
1215
  key: 0,
1207
1216
  value: w
1208
1217
  }, {
1209
- default: u(() => [D(W(w.data), 1)]),
1218
+ default: u(() => [E(W(w.data), 1)]),
1210
1219
  _: 2
1211
- }, 1032, ["value"])) : R("", !0)]))), 128))], 2), C("div", Ct, [a(ee, {
1220
+ }, 1032, ["value"])) : R("", !0)]))), 128))], 2), C("div", xt, [a(ee, {
1212
1221
  value: y(o),
1213
1222
  onClick: x[1] || (x[1] = (w) => i(y(o)))
1214
1223
  }, null, 8, ["value"])]), a(y(Ie), {
@@ -1221,47 +1230,47 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1221
1230
  onStart: b,
1222
1231
  onEnd: T
1223
1232
  }, {
1224
- default: u(() => [(d(!0), h(A, null, I(y(e), (w) => (d(), h("div", {
1233
+ default: u(() => [(d(!0), h(A, null, z(y(e), (w) => (d(), h("div", {
1225
1234
  key: w.id,
1226
1235
  class: O(["editor-content edit", ["editor" + w.type, {
1227
- active: w.id === y(l).id
1236
+ active: w.id === y(n).id
1228
1237
  }]]),
1229
1238
  onClick: (L) => i(w)
1230
1239
  }, [C("i", {
1231
1240
  onClick: Ve((L) => m(w.id), ["stop"])
1232
- }, [a(E, {
1241
+ }, [a(F, {
1233
1242
  class: "color-red"
1234
- })], 8, wt), w.type !== "p" ? (d(), S(Y(c(w.type)), {
1243
+ })], 8, Vt), w.type !== "p" ? (d(), S(Y(c(w.type)), {
1235
1244
  key: 0,
1236
1245
  class: O(["editor" + w.type]),
1237
1246
  value: w,
1238
1247
  draggable: g.value
1239
1248
  }, {
1240
- default: u(() => [D(W(w.data), 1)]),
1249
+ default: u(() => [E(W(w.data), 1)]),
1241
1250
  _: 2
1242
1251
  }, 1032, ["class", "value", "draggable"])) : (d(), h("p", {
1243
1252
  key: 1,
1244
1253
  innerHTML: w.data,
1245
1254
  draggable: g.value
1246
- }, null, 8, Vt))], 10, xt))), 128))]),
1255
+ }, null, 8, St))], 10, wt))), 128))]),
1247
1256
  _: 1
1248
1257
  }, 8, ["modelValue"])]);
1249
1258
  };
1250
1259
  }
1251
- }), kt = { class: "label" }, $t = { class: "flex item-switch" }, Tt = { class: "flex item-switch" }, Lt = { class: "flex item-switch" }, he = /* @__PURE__ */ k({
1260
+ }), $t = { class: "label" }, Tt = { class: "flex item-switch" }, Lt = { class: "flex item-switch" }, Rt = { class: "flex item-switch" }, he = /* @__PURE__ */ k({
1252
1261
  __name: "SettingTable",
1253
- setup(n) {
1254
- const t = z(), e = F(() => t.getActiveComponents);
1255
- return (l, r) => {
1262
+ setup(l) {
1263
+ const t = D(), e = I(() => t.getActiveComponents);
1264
+ return (n, r) => {
1256
1265
  const o = p("el-switch"), s = p("el-form-item"), m = p("el-divider");
1257
1266
  return d(), h("div", null, [
1258
1267
  a(s, { label: "控制列" }, {
1259
1268
  default: u(() => [
1260
- (d(!0), h(A, null, I(e.value.showColumn, (i, f) => (d(), h("p", {
1269
+ (d(!0), h(A, null, z(e.value.showColumn, (i, f) => (d(), h("p", {
1261
1270
  class: "flex item-switch",
1262
1271
  key: f
1263
1272
  }, [
1264
- C("span", kt, W(i.name), 1),
1273
+ C("span", $t, W(i.name), 1),
1265
1274
  a(o, {
1266
1275
  modelValue: e.value.options.showColumn[i.key],
1267
1276
  "onUpdate:modelValue": (c) => e.value.options.showColumn[i.key] = c
@@ -1273,21 +1282,21 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1273
1282
  a(m),
1274
1283
  a(s, { label: "表格样式" }, {
1275
1284
  default: u(() => [
1276
- C("p", $t, [
1285
+ C("p", Tt, [
1277
1286
  r[3] || (r[3] = C("span", { class: "label" }, "斑马纹", -1)),
1278
1287
  a(o, {
1279
1288
  modelValue: e.value.options.stripe,
1280
1289
  "onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
1281
1290
  }, null, 8, ["modelValue"])
1282
1291
  ]),
1283
- C("p", Tt, [
1292
+ C("p", Lt, [
1284
1293
  r[4] || (r[4] = C("span", { class: "label" }, "边框", -1)),
1285
1294
  a(o, {
1286
1295
  modelValue: e.value.options.border,
1287
1296
  "onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
1288
1297
  }, null, 8, ["modelValue"])
1289
1298
  ]),
1290
- C("p", Lt, [
1299
+ C("p", Rt, [
1291
1300
  r[5] || (r[5] = C("span", { class: "label" }, "表头", -1)),
1292
1301
  a(o, {
1293
1302
  modelValue: e.value.options.showHeader,
@@ -1300,16 +1309,16 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1300
1309
  ]);
1301
1310
  };
1302
1311
  }
1303
- }), Rt = { key: 0 }, Ut = /* @__PURE__ */ k({
1312
+ }), Ut = { key: 0 }, Dt = /* @__PURE__ */ k({
1304
1313
  __name: "ChartsUniConfig",
1305
- setup(n) {
1306
- const t = z(), e = F(() => t.activeComponents);
1307
- function l(r) {
1314
+ setup(l) {
1315
+ const t = D(), e = I(() => t.activeComponents);
1316
+ function n(r) {
1308
1317
  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);
1309
1318
  }
1310
1319
  return $("rgb(46, 145, 255)"), (r, o) => {
1311
1320
  const s = p("el-input"), m = p("el-form-item"), i = p("el-switch"), f = p("el-col"), c = p("el-color-picker"), _ = p("el-input-number"), g = p("el-row"), b = p("el-collapse-item"), T = p("el-collapse");
1312
- return e.value.options.title ? (d(), h("div", Rt, [
1321
+ return e.value.options.title ? (d(), h("div", Ut, [
1313
1322
  a(m, { label: "标题" }, {
1314
1323
  default: u(() => [
1315
1324
  a(s, {
@@ -1399,7 +1408,7 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1399
1408
  default: u(() => [
1400
1409
  o[13] || (o[13] = C("span", { class: "switch-label" }, "玫瑰图", -1)),
1401
1410
  a(i, {
1402
- onChange: l,
1411
+ onChange: n,
1403
1412
  modelValue: e.value.options.series[0].roseType,
1404
1413
  "onUpdate:modelValue": o[6] || (o[6] = (V) => e.value.options.series[0].roseType = V)
1405
1414
  }, null, 8, ["modelValue"])
@@ -1443,11 +1452,11 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1443
1452
  };
1444
1453
  }
1445
1454
  });
1446
- const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @__PURE__ */ k({
1455
+ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @__PURE__ */ k({
1447
1456
  __name: "SettingDescribe",
1448
- setup(n) {
1449
- const t = z(), e = F(() => t.getActiveComponents);
1450
- return (l, r) => {
1457
+ setup(l) {
1458
+ const t = D(), e = I(() => t.getActiveComponents);
1459
+ return (n, r) => {
1451
1460
  const o = p("el-input"), s = p("el-form-item"), m = p("el-switch"), i = p("el-input-number"), f = p("el-radio"), c = p("el-radio-group");
1452
1461
  return d(), h("div", null, [
1453
1462
  a(s, { label: "标题" }, {
@@ -1489,13 +1498,13 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1489
1498
  default: u(() => [
1490
1499
  a(f, { value: "horizontal" }, {
1491
1500
  default: u(() => r[4] || (r[4] = [
1492
- D("横向")
1501
+ E("横向")
1493
1502
  ])),
1494
1503
  _: 1
1495
1504
  }),
1496
1505
  a(f, { value: "vertical" }, {
1497
1506
  default: u(() => r[5] || (r[5] = [
1498
- D("纵向")
1507
+ E("纵向")
1499
1508
  ])),
1500
1509
  _: 1
1501
1510
  })
@@ -1510,8 +1519,8 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1510
1519
  }
1511
1520
  }), At = /* @__PURE__ */ k({
1512
1521
  __name: "SettingCharts",
1513
- setup(n) {
1514
- const t = z(), e = $(!1), l = F(() => t.getActiveComponents), r = [
1522
+ setup(l) {
1523
+ const t = D(), e = $(!1), n = I(() => t.getActiveComponents), r = [
1515
1524
  { value: "report-describe", name: "描述列表" },
1516
1525
  { value: "report-table", name: "表格" },
1517
1526
  { value: "line", name: "趋势图" },
@@ -1519,7 +1528,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1519
1528
  { value: "bar", name: "柱状图" }
1520
1529
  ], o = $(""), s = $();
1521
1530
  async function m(c) {
1522
- const _ = await de({
1531
+ const _ = await me({
1523
1532
  prod_type: t.prodType,
1524
1533
  chart_type: c,
1525
1534
  filter_uuid: t.filterForm.filter_uuid
@@ -1535,22 +1544,22 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1535
1544
  b[T.key] = !0;
1536
1545
  }), g.options = { ...g.options, showColumn: b, border: !0, showHeader: !0, stripe: !1 };
1537
1546
  }
1538
- g.type === "report-describe" && (g.options = { ...g.options, title: "", border: !0, column: 1, direction: "horizontal", ...l.value.options }), Object.assign(t.activeComponents, g), t.activeComponents.rp_item_uuid = _.rp_item_uuid;
1547
+ g.type === "report-describe" && (g.options = { ...g.options, title: "", border: !0, column: 1, direction: "horizontal", ...n.value.options }), Object.assign(t.activeComponents, g), t.activeComponents.rp_item_uuid = _.rp_item_uuid;
1539
1548
  }
1540
1549
  te(async () => {
1541
- o.value = l.value.type, await m(o.value);
1550
+ o.value = n.value.type, await m(o.value);
1542
1551
  });
1543
1552
  async function f(c) {
1544
1553
  try {
1545
- e.value = !0, await m(c), Object.assign(t.activeComponents, tt(c)), e.value = !1;
1554
+ e.value = !0, await m(c), Object.assign(t.activeComponents, Ge(c)), e.value = !1;
1546
1555
  } catch {
1547
1556
  e.value = !1;
1548
1557
  }
1549
1558
  }
1550
1559
  return Se(
1551
- () => l.value,
1560
+ () => n.value,
1552
1561
  (c) => {
1553
- console.log(c, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(c.type) && (o.value = l.value.type, m(o.value));
1562
+ console.log(c, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(c.type) && (o.value = n.value.type, m(o.value));
1554
1563
  }
1555
1564
  ), (c, _) => {
1556
1565
  const g = p("el-option"), b = p("el-select"), T = p("el-form-item"), V = p("el-form"), v = ke("loading");
@@ -1566,8 +1575,8 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1566
1575
  onChange: f
1567
1576
  }, {
1568
1577
  default: u(() => [
1569
- (d(), h(A, null, I(r, (x, E) => a(g, {
1570
- key: E,
1578
+ (d(), h(A, null, z(r, (x, F) => a(g, {
1579
+ key: F,
1571
1580
  label: x.name,
1572
1581
  value: x.value
1573
1582
  }, null, 8, ["label", "value"])), 64))
@@ -1586,8 +1595,8 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1586
1595
  onChange: i
1587
1596
  }, {
1588
1597
  default: u(() => [
1589
- (d(!0), h(A, null, I(s.value, (x, E) => (d(), S(g, {
1590
- key: E,
1598
+ (d(!0), h(A, null, z(s.value, (x, F) => (d(), S(g, {
1599
+ key: F,
1591
1600
  label: x.rp_item_name,
1592
1601
  value: x.rp_item_uuid
1593
1602
  }, null, 8, ["label", "value"]))), 128))
@@ -1597,8 +1606,8 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1597
1606
  ]),
1598
1607
  _: 1
1599
1608
  }),
1600
- o.value === "report-table" && l.value.options.showColumn ? (d(), S(he, { key: 0 })) : R("", !0),
1601
- o.value === "pie" || o.value === "bar" || o.value === "line" ? (d(), S(Dt, { key: 1 })) : R("", !0),
1609
+ o.value === "report-table" && n.value.options.showColumn ? (d(), S(he, { key: 0 })) : R("", !0),
1610
+ o.value === "pie" || o.value === "bar" || o.value === "line" ? (d(), S(Et, { key: 1 })) : R("", !0),
1602
1611
  o.value === "report-describe" ? (d(), S(Ce, { key: 2 })) : R("", !0)
1603
1612
  ]),
1604
1613
  _: 1
@@ -1608,17 +1617,17 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1608
1617
  ]);
1609
1618
  };
1610
1619
  }
1611
- }), Et = { key: 0 }, Ft = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ae = "default", It = /* @__PURE__ */ k({
1620
+ }), Ft = { key: 0 }, It = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ae = "default", zt = /* @__PURE__ */ k({
1612
1621
  __name: "SettingText",
1613
- setup(n) {
1614
- const t = z(), e = Te(), l = $();
1622
+ setup(l) {
1623
+ const t = D(), e = Te(), n = $();
1615
1624
  function r(c) {
1616
- const _ = l.value.find((g) => g.rp_item_uuid === c);
1625
+ const _ = n.value.find((g) => g.rp_item_uuid === c);
1617
1626
  t.activeComponents.uri = _.rp_item_content.uri, e.value.setHtml((_ == null ? void 0 : _.rp_item_content.data) || "");
1618
1627
  }
1619
1628
  async function o() {
1620
- const c = await de({ prod_type: t.prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1621
- l.value = c.data;
1629
+ const c = await me({ prod_type: t.prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1630
+ n.value = c.data;
1622
1631
  }
1623
1632
  o();
1624
1633
  const s = {
@@ -1652,7 +1661,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1652
1661
  c != null && c.destroy();
1653
1662
  }), (c, _) => {
1654
1663
  const g = p("el-option"), b = p("el-select"), T = p("el-form-item"), V = p("el-form");
1655
- return y(t).activeComponents.id ? (d(), h("div", Et, [
1664
+ return y(t).activeComponents.id ? (d(), h("div", Ft, [
1656
1665
  a(V, { "label-position": "top" }, {
1657
1666
  default: u(() => [
1658
1667
  a(T, { label: "组件库" }, {
@@ -1664,7 +1673,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1664
1673
  onChange: r
1665
1674
  }, {
1666
1675
  default: u(() => [
1667
- (d(!0), h(A, null, I(l.value, (v, x) => (d(), S(g, {
1676
+ (d(!0), h(A, null, z(n.value, (v, x) => (d(), S(g, {
1668
1677
  key: x,
1669
1678
  label: v.rp_item_name,
1670
1679
  value: v.rp_item_uuid
@@ -1677,7 +1686,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1677
1686
  }),
1678
1687
  a(T, { label: "文本内容" }, {
1679
1688
  default: u(() => [
1680
- C("div", Ft, [
1689
+ C("div", It, [
1681
1690
  a(y(ze), {
1682
1691
  style: { "border-bottom": "1px solid #ccc" },
1683
1692
  editor: e.value,
@@ -1703,15 +1712,15 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1703
1712
  ])) : R("", !0);
1704
1713
  };
1705
1714
  }
1706
- }), zt = /* @__PURE__ */ k({
1715
+ }), Ht = /* @__PURE__ */ k({
1707
1716
  __name: "SettingFilter",
1708
- setup(n) {
1709
- const t = $([]), e = z();
1710
- async function l() {
1711
- const r = await Oe({ prod_type: e.prodType });
1717
+ setup(l) {
1718
+ const t = $([]), e = D();
1719
+ async function n() {
1720
+ const r = await tt({ prod_type: e.prodType });
1712
1721
  t.value = r.data;
1713
1722
  }
1714
- return l(), (r, o) => {
1723
+ return n(), (r, o) => {
1715
1724
  const s = p("el-option"), m = p("el-select"), i = p("el-form-item"), f = p("el-checkbox"), c = p("el-form");
1716
1725
  return d(), S(c, {
1717
1726
  "label-width": "80px",
@@ -1726,7 +1735,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1726
1735
  disabled: !!y(e).filterForm.filter_uuid
1727
1736
  }, {
1728
1737
  default: u(() => [
1729
- (d(!0), h(A, null, I(t.value, (_) => (d(), S(s, {
1738
+ (d(!0), h(A, null, z(t.value, (_) => (d(), S(s, {
1730
1739
  key: _.filter_uuid,
1731
1740
  label: _.filter_name,
1732
1741
  value: _.filter_uuid
@@ -1754,11 +1763,11 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1754
1763
  });
1755
1764
  };
1756
1765
  }
1757
- }), Ht = /* @__PURE__ */ k({
1766
+ }), Mt = /* @__PURE__ */ k({
1758
1767
  __name: "SettingTitle",
1759
- setup(n) {
1760
- const t = z();
1761
- return (e, l) => {
1768
+ setup(l) {
1769
+ const t = D();
1770
+ return (e, n) => {
1762
1771
  const r = p("el-input"), o = p("el-form-item"), s = p("el-color-picker"), m = p("el-col"), i = p("el-input-number"), f = p("el-option"), c = p("el-select"), _ = p("el-row"), g = p("el-form");
1763
1772
  return d(), S(g, {
1764
1773
  "label-width": "auto",
@@ -1769,7 +1778,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1769
1778
  default: u(() => [
1770
1779
  a(r, {
1771
1780
  modelValue: y(t).activeComponents.data,
1772
- "onUpdate:modelValue": l[0] || (l[0] = (b) => y(t).activeComponents.data = b),
1781
+ "onUpdate:modelValue": n[0] || (n[0] = (b) => y(t).activeComponents.data = b),
1773
1782
  placeholder: "Please input",
1774
1783
  maxlength: "24",
1775
1784
  "show-word-limit": ""
@@ -1785,10 +1794,10 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1785
1794
  default: u(() => [
1786
1795
  a(s, {
1787
1796
  modelValue: y(t).activeComponents.options.color,
1788
- "onUpdate:modelValue": l[1] || (l[1] = (b) => y(t).activeComponents.options.color = b),
1797
+ "onUpdate:modelValue": n[1] || (n[1] = (b) => y(t).activeComponents.options.color = b),
1789
1798
  "show-alpha": ""
1790
1799
  }, null, 8, ["modelValue"]),
1791
- l[7] || (l[7] = C("p", { class: "sub-title" }, "颜色", -1))
1800
+ n[7] || (n[7] = C("p", { class: "sub-title" }, "颜色", -1))
1792
1801
  ]),
1793
1802
  _: 1
1794
1803
  }),
@@ -1796,10 +1805,10 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1796
1805
  default: u(() => [
1797
1806
  a(i, {
1798
1807
  modelValue: y(t).activeComponents.options.size,
1799
- "onUpdate:modelValue": l[2] || (l[2] = (b) => y(t).activeComponents.options.size = b),
1808
+ "onUpdate:modelValue": n[2] || (n[2] = (b) => y(t).activeComponents.options.size = b),
1800
1809
  "controls-position": "right"
1801
1810
  }, null, 8, ["modelValue"]),
1802
- l[8] || (l[8] = C("p", { class: "sub-title" }, "字体大小", -1))
1811
+ n[8] || (n[8] = C("p", { class: "sub-title" }, "字体大小", -1))
1803
1812
  ]),
1804
1813
  _: 1
1805
1814
  }),
@@ -1807,7 +1816,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1807
1816
  default: u(() => [
1808
1817
  a(c, {
1809
1818
  modelValue: y(t).activeComponents.options.fontWeight,
1810
- "onUpdate:modelValue": l[3] || (l[3] = (b) => y(t).activeComponents.options.fontWeight = b)
1819
+ "onUpdate:modelValue": n[3] || (n[3] = (b) => y(t).activeComponents.options.fontWeight = b)
1811
1820
  }, {
1812
1821
  default: u(() => [
1813
1822
  a(f, {
@@ -1821,7 +1830,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1821
1830
  ]),
1822
1831
  _: 1
1823
1832
  }, 8, ["modelValue"]),
1824
- l[9] || (l[9] = C("p", { class: "sub-title" }, "字体粗细", -1))
1833
+ n[9] || (n[9] = C("p", { class: "sub-title" }, "字体粗细", -1))
1825
1834
  ]),
1826
1835
  _: 1
1827
1836
  }),
@@ -1829,10 +1838,10 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1829
1838
  default: u(() => [
1830
1839
  a(i, {
1831
1840
  modelValue: y(t).activeComponents.options.letterSpacing,
1832
- "onUpdate:modelValue": l[4] || (l[4] = (b) => y(t).activeComponents.options.letterSpacing = b),
1841
+ "onUpdate:modelValue": n[4] || (n[4] = (b) => y(t).activeComponents.options.letterSpacing = b),
1833
1842
  "controls-position": "right"
1834
1843
  }, null, 8, ["modelValue"]),
1835
- l[10] || (l[10] = C("p", { class: "sub-title" }, "字间距", -1))
1844
+ n[10] || (n[10] = C("p", { class: "sub-title" }, "字间距", -1))
1836
1845
  ]),
1837
1846
  _: 1
1838
1847
  }),
@@ -1840,10 +1849,10 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1840
1849
  default: u(() => [
1841
1850
  a(i, {
1842
1851
  modelValue: y(t).activeComponents.options.textIndent,
1843
- "onUpdate:modelValue": l[5] || (l[5] = (b) => y(t).activeComponents.options.textIndent = b),
1852
+ "onUpdate:modelValue": n[5] || (n[5] = (b) => y(t).activeComponents.options.textIndent = b),
1844
1853
  "controls-position": "right"
1845
1854
  }, null, 8, ["modelValue"]),
1846
- l[11] || (l[11] = C("p", { class: "sub-title" }, "首行缩进", -1))
1855
+ n[11] || (n[11] = C("p", { class: "sub-title" }, "首行缩进", -1))
1847
1856
  ]),
1848
1857
  _: 1
1849
1858
  }),
@@ -1851,7 +1860,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1851
1860
  default: u(() => [
1852
1861
  a(c, {
1853
1862
  modelValue: y(t).activeComponents.options.textAlign,
1854
- "onUpdate:modelValue": l[6] || (l[6] = (b) => y(t).activeComponents.options.textAlign = b)
1863
+ "onUpdate:modelValue": n[6] || (n[6] = (b) => y(t).activeComponents.options.textAlign = b)
1855
1864
  }, {
1856
1865
  default: u(() => [
1857
1866
  a(f, {
@@ -1869,7 +1878,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1869
1878
  ]),
1870
1879
  _: 1
1871
1880
  }, 8, ["modelValue"]),
1872
- l[12] || (l[12] = C("p", { class: "sub-title" }, "位置", -1))
1881
+ n[12] || (n[12] = C("p", { class: "sub-title" }, "位置", -1))
1873
1882
  ]),
1874
1883
  _: 1
1875
1884
  })
@@ -1885,28 +1894,28 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1885
1894
  };
1886
1895
  }
1887
1896
  });
1888
- const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @__PURE__ */ k({
1897
+ const jt = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-56fef84c"]]), Pt = /* @__PURE__ */ k({
1889
1898
  __name: "Setting",
1890
- setup(n) {
1899
+ setup(l) {
1891
1900
  const t = {
1892
1901
  SettingTable: he,
1893
1902
  SettingCharts: At,
1894
1903
  SettingDescribe: Ce,
1895
- SettingText: It,
1896
- SettingFilter: zt,
1897
- SettingTitle: Mt
1898
- }, e = z(), l = F(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], o = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe"], m = (i) => r.includes(i) ? H(t, "SettingTitle") : o.includes(i) ? H(t, "SettingText") : s.includes(i) ? H(t, "SettingCharts") : i === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
1904
+ SettingText: zt,
1905
+ SettingFilter: Ht,
1906
+ SettingTitle: jt
1907
+ }, e = D(), n = I(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], o = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe"], m = (i) => r.includes(i) ? H(t, "SettingTitle") : o.includes(i) ? H(t, "SettingText") : s.includes(i) ? H(t, "SettingCharts") : i === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
1899
1908
  return (i, f) => {
1900
1909
  const c = p("el-card");
1901
1910
  return d(), S(c, { class: "config-wrapper" }, {
1902
1911
  default: u(() => [
1903
- (d(), S(Y(m(l.value.type))))
1912
+ (d(), S(Y(m(n.value.type))))
1904
1913
  ]),
1905
1914
  _: 1
1906
1915
  });
1907
1916
  };
1908
1917
  }
1909
- }), Pt = { class: "editor-wrapper flex start" }, Bt = { class: "flex" }, Wt = { class: "btn-group" }, Nt = /* @__PURE__ */ k({
1918
+ }), Bt = { class: "editor-wrapper flex start" }, Wt = { class: "flex" }, Nt = { class: "btn-group" }, Ot = /* @__PURE__ */ k({
1910
1919
  __name: "index",
1911
1920
  props: /* @__PURE__ */ ue({
1912
1921
  reportId: {
@@ -1918,13 +1927,13 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1918
1927
  modelModifiers: {}
1919
1928
  }),
1920
1929
  emits: ["update:modelValue"],
1921
- setup(n) {
1922
- const t = z(), e = n, l = pe(n, "modelValue"), r = (i) => {
1930
+ setup(l) {
1931
+ const t = D(), e = l, n = pe(l, "modelValue"), r = (i) => {
1923
1932
  const f = q(i);
1924
1933
  f.id = B(), t.componentList.push(f);
1925
1934
  };
1926
1935
  function o() {
1927
- l.value = "table";
1936
+ n.value = "table";
1928
1937
  }
1929
1938
  function s() {
1930
1939
  t.getReportDemo(e.reportId);
@@ -1938,7 +1947,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1938
1947
  return;
1939
1948
  }
1940
1949
  try {
1941
- e.reportId ? await We({
1950
+ e.reportId ? await Ze({
1942
1951
  report_uuid: e.reportId,
1943
1952
  data: {
1944
1953
  report_name: t.titleComponent.data,
@@ -1946,7 +1955,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1946
1955
  content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
1947
1956
  ...t.filterForm
1948
1957
  }
1949
- }) : await Be({
1958
+ }) : await Xe({
1950
1959
  data: {
1951
1960
  report_name: t.titleComponent.data,
1952
1961
  prod_type: t.prodType,
@@ -1962,14 +1971,14 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1962
1971
  t.clearComponents();
1963
1972
  }), (i, f) => {
1964
1973
  const c = p("el-button"), _ = p("el-button-group"), g = p("el-card");
1965
- return d(), h("div", Pt, [
1974
+ return d(), h("div", Bt, [
1966
1975
  a(g, { class: "view-wrapper" }, {
1967
1976
  default: u(() => [
1968
- C("div", Bt, [
1969
- C("div", Wt, [
1977
+ C("div", Wt, [
1978
+ C("div", Nt, [
1970
1979
  a(_, null, {
1971
1980
  default: u(() => [
1972
- (d(!0), h(A, null, I(y(et), (b) => (d(), h(A, {
1981
+ (d(!0), h(A, null, z(y(qe), (b) => (d(), h(A, {
1973
1982
  key: b.type
1974
1983
  }, [
1975
1984
  b != null && b.hide ? R("", !0) : (d(), S(c, {
@@ -1977,7 +1986,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1977
1986
  onClick: (T) => r(b)
1978
1987
  }, {
1979
1988
  default: u(() => [
1980
- D(W(b.name), 1)
1989
+ E(W(b.name), 1)
1981
1990
  ]),
1982
1991
  _: 2
1983
1992
  }, 1032, ["onClick"]))
@@ -1993,13 +2002,13 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1993
2002
  onClick: m
1994
2003
  }, {
1995
2004
  default: u(() => f[0] || (f[0] = [
1996
- D("保存")
2005
+ E("保存")
1997
2006
  ])),
1998
2007
  _: 1
1999
2008
  }),
2000
2009
  a(c, { onClick: o }, {
2001
2010
  default: u(() => f[1] || (f[1] = [
2002
- D("退出")
2011
+ E("退出")
2003
2012
  ])),
2004
2013
  _: 1
2005
2014
  })
@@ -2007,26 +2016,23 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2007
2016
  _: 1
2008
2017
  })
2009
2018
  ]),
2010
- a(St)
2019
+ a(kt)
2011
2020
  ]),
2012
2021
  _: 1
2013
2022
  }),
2014
- a(jt)
2023
+ a(Pt)
2015
2024
  ]);
2016
2025
  };
2017
2026
  }
2018
- }), Ot = {
2027
+ }), Yt = {
2019
2028
  class: "table-box"
2020
- }, Yt = /* @__PURE__ */ k({
2029
+ }, qt = /* @__PURE__ */ k({
2021
2030
  __name: "Report",
2022
- props: {
2023
- prodType: {}
2024
- },
2025
2031
  emits: ["click"],
2026
- setup(n, {
2032
+ setup(l, {
2027
2033
  emit: t
2028
2034
  }) {
2029
- const e = n, l = F(() => ({
2035
+ const e = D(), n = I(() => ({
2030
2036
  prod_type: e.prodType
2031
2037
  })), r = $(), o = t, s = (g) => {
2032
2038
  o("click", g.report_uuid, "review");
@@ -2038,7 +2044,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2038
2044
  console.log(g);
2039
2045
  }, c = (g) => {
2040
2046
  window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2041
- await Ye({
2047
+ await ot({
2042
2048
  report_uuids: g
2043
2049
  }), r.value.getTableList();
2044
2050
  });
@@ -2094,12 +2100,12 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2094
2100
  ]);
2095
2101
  return (g, b) => {
2096
2102
  const T = p("el-button"), V = p("TdsTable");
2097
- return d(), h("div", Ot, [a(V, {
2103
+ return d(), h("div", Yt, [a(V, {
2098
2104
  ref_key: "proTable",
2099
2105
  ref: r,
2100
2106
  columns: _,
2101
- "request-api": y(Ne),
2102
- "init-param": l.value,
2107
+ "request-api": y(et),
2108
+ "init-param": n.value,
2103
2109
  "row-key": "report_uuid",
2104
2110
  options: g.$tableOptions(),
2105
2111
  "search-col": 6,
@@ -2112,7 +2118,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2112
2118
  icon: "Plus",
2113
2119
  onClick: i
2114
2120
  }, {
2115
- default: u(() => b[0] || (b[0] = [D("添加")])),
2121
+ default: u(() => b[0] || (b[0] = [E("添加")])),
2116
2122
  _: 1
2117
2123
  }), a(T, {
2118
2124
  plain: "",
@@ -2120,7 +2126,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2120
2126
  icon: "Delete",
2121
2127
  onClick: (x) => c(v.selectedListIds)
2122
2128
  }, {
2123
- default: u(() => b[1] || (b[1] = [D("删除")])),
2129
+ default: u(() => b[1] || (b[1] = [E("删除")])),
2124
2130
  _: 2
2125
2131
  }, 1032, ["onClick"])]),
2126
2132
  _: 1
@@ -2128,28 +2134,27 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2128
2134
  };
2129
2135
  }
2130
2136
  });
2131
- const qt = { style: { height: "100%" } }, Gt = /* @__PURE__ */ k({
2137
+ const Gt = { style: { height: "100%" } }, Jt = /* @__PURE__ */ k({
2132
2138
  name: "TCReport",
2133
2139
  __name: "index",
2134
- setup(n) {
2135
- const t = $(), e = $("table"), l = (r, o) => {
2140
+ setup(l) {
2141
+ const t = $(), e = $("table"), n = (r, o) => {
2136
2142
  t.value = r, e.value = o;
2137
2143
  };
2138
- return (r, o) => (d(), h("div", qt, [
2144
+ return (r, o) => (d(), h("div", Gt, [
2139
2145
  a(De, { name: "slide-fade" }, {
2140
2146
  default: u(() => [
2141
- e.value === "table" ? (d(), S(Yt, {
2147
+ e.value === "table" ? (d(), S(qt, {
2142
2148
  key: 0,
2143
- onClick: l,
2144
- "prod-type": "4"
2149
+ onClick: n
2145
2150
  })) : R("", !0),
2146
- e.value === "review" ? (d(), S(yt, {
2151
+ e.value === "review" ? (d(), S(ht, {
2147
2152
  key: 1,
2148
2153
  "report-id": t.value,
2149
2154
  modelValue: e.value,
2150
2155
  "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
2151
2156
  }, null, 8, ["report-id", "modelValue"])) : R("", !0),
2152
- e.value === "editor" ? (d(), S(Nt, {
2157
+ e.value === "editor" ? (d(), S(Ot, {
2153
2158
  key: 2,
2154
2159
  "report-id": t.value,
2155
2160
  modelValue: e.value,
@@ -2161,24 +2166,26 @@ const qt = { style: { height: "100%" } }, Gt = /* @__PURE__ */ k({
2161
2166
  ]));
2162
2167
  }
2163
2168
  });
2164
- const Jt = (n, t) => {
2165
- if (n.install = (e) => {
2166
- for (const l of [n, ...Object.values(t ?? {})])
2167
- e.component(l.name, l);
2169
+ const Kt = (l, t) => {
2170
+ if (l.install = (e) => {
2171
+ for (const n of [l, ...Object.values(t ?? {})])
2172
+ e.component(n.name, n);
2168
2173
  }, t)
2169
- for (const [e, l] of Object.entries(t))
2170
- n[e] = l;
2171
- return n;
2172
- }, Kt = Jt(Gt), Qt = {
2173
- TCReport: Kt
2174
- }, lo = {
2175
- install(n) {
2176
- Object.entries(Qt).forEach(([t, e]) => {
2177
- n.component(t, e);
2174
+ for (const [e, n] of Object.entries(t))
2175
+ l[e] = n;
2176
+ return l;
2177
+ }, Qt = Kt(Jt), Xt = {
2178
+ TCReport: Qt
2179
+ }, no = {
2180
+ install(l, t) {
2181
+ Object.entries(Xt).forEach(([n, r]) => {
2182
+ l.component(n, r);
2178
2183
  });
2184
+ const e = D();
2185
+ t.prodType && e.setProdType(t.prodType), t.envURL && e.setEnvURL(t.envURL);
2179
2186
  }
2180
2187
  };
2181
2188
  export {
2182
- Kt as TCReport,
2183
- lo as default
2189
+ Qt as TCReport,
2190
+ no as default
2184
2191
  };