@topdatasec/report 1.1.3 → 1.1.4

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,46 @@
1
- import { defineComponent as k, computed as F, resolveComponent as d, openBlock as c, createElementBlock as y, 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 p, onMounted as te, normalizeProps as re, guardReactiveProps as se, isVNode as ie, normalizeStyle as we, mergeModels as ue, useModel as pe, unref as g, createTextVNode as D, resolveDynamicComponent as Y, isRef as xe, 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";
3
- import { ElMessage as Fe } from "element-plus";
4
- import { VueDraggable as Ie } from "vue-draggable-plus";
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`,
1
+ import { defineComponent as $, computed as F, resolveComponent as d, openBlock as c, createElementBlock as y, createElementVNode as C, Fragment as A, renderList as I, normalizeClass as W, createBlock as S, createCommentVNode as R, toDisplayString as P, ref as k, createVNode as a, withCtx as p, onMounted as Z, normalizeProps as ne, guardReactiveProps as ae, isVNode as re, normalizeStyle as he, mergeModels as se, useModel as ie, unref as g, createTextVNode as D, resolveDynamicComponent as N, isRef as Ce, withModifiers as we, watch as xe, resolveDirective as Ve, withDirectives as Se, shallowRef as $e, onBeforeUnmount as ke, onUnmounted as Te, reactive as Le, TransitionGroup as Re } from "vue";
2
+ import { defineStore as Ue, storeToRefs as De } from "pinia";
3
+ import { ElMessage as Ae } from "element-plus";
4
+ import { VueDraggable as Ee } from "vue-draggable-plus";
5
+ import { Toolbar as Fe, Editor as Ie } from "@wangeditor/editor-for-vue";
6
+ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), O = (n) => JSON.parse(JSON.stringify(n)), ze = (n) => n.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (n, t) => n[ze(t)], He = (n) => window.$http.request({
7
+ url: `${window.$reportURL}/tds/report/demo/get`,
8
8
  method: "get",
9
9
  params: n,
10
10
  isError: !1
11
- }), de = (n) => j.request({
12
- url: `${P}/tds/report/item/get`,
11
+ }), ue = (n) => window.$http.request({
12
+ url: `${window.$reportURL}/tds/report/item/get`,
13
13
  method: "get",
14
14
  params: n,
15
15
  isError: !1
16
- }), Pe = (n) => j.request({
17
- url: `${P}/tds/report/preview`,
16
+ }), Me = (n) => window.$http.request({
17
+ url: `${window.$reportURL}/tds/report/preview`,
18
18
  method: "get",
19
19
  params: n,
20
20
  isError: !1
21
- }), Be = (n) => j.request({
22
- url: `${P}/tds/report/add`,
21
+ }), je = (n) => window.$http.request({
22
+ url: `${window.$reportURL}/tds/report/add`,
23
23
  method: "post",
24
24
  data: n
25
- }), We = (n) => j.request({
26
- url: `${P}/tds/report/put`,
25
+ }), Pe = (n) => window.$http.request({
26
+ url: `${window.$reportURL}/tds/report/put`,
27
27
  method: "put",
28
28
  data: n
29
- }), Ne = (n) => j.request({
30
- url: `${P}/tds/report/get`,
29
+ }), Be = (n) => window.$http.request({
30
+ url: `${window.$reportURL}/tds/report/get`,
31
31
  method: "get",
32
32
  params: n,
33
33
  isError: !1
34
- }), Oe = (n) => j.request({
35
- url: `${P}/tds/report/filter/get`,
34
+ }), We = (n) => window.$http.request({
35
+ url: `${window.$reportURL}/tds/report/filter/get`,
36
36
  method: "get",
37
37
  params: n,
38
38
  isError: !1
39
- }), Ye = (n) => j.request({
40
- url: `${P}/tds/report/delete`,
39
+ }), Ne = (n) => window.$http.request({
40
+ url: `${window.$reportURL}/tds/report/delete`,
41
41
  method: "delete",
42
42
  data: n
43
- }), ce = "rgba(51, 51, 51, 0.15)", M = "rgba(51, 51, 51, 1)", N = 12, me = (n = !1) => {
43
+ }), pe = "rgba(51, 51, 51, 0.15)", M = "rgba(51, 51, 51, 1)", B = 12, de = (n = !1) => {
44
44
  const t = {
45
45
  // top: '2%',
46
46
  left: "3%",
@@ -70,12 +70,12 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
70
70
  "100, 161, 206",
71
71
  "246, 175, 159",
72
72
  "238, 97, 97"
73
- ], qe = (n, t, e = "", l = { name: "name", value: "value" }) => {
73
+ ], Oe = (n, t, e = "", l = { name: "name", value: "value" }) => {
74
74
  const r = [], o = [];
75
75
  t.forEach((s) => {
76
76
  r.push(s[l.name]), o.push(s[l.value]);
77
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 = [
78
+ }, ee = (n = [
79
79
  {
80
80
  name: "数据1",
81
81
  value: 63
@@ -119,7 +119,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
119
119
  // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
120
120
  // show: true,
121
121
  // },
122
- grid: me(),
122
+ grid: de(),
123
123
  title: {
124
124
  show: !0,
125
125
  text: "样例数据",
@@ -148,7 +148,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
148
148
  //X轴轴线设置
149
149
  show: !0,
150
150
  lineStyle: {
151
- color: ce,
151
+ color: pe,
152
152
  width: 1
153
153
  }
154
154
  },
@@ -167,7 +167,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
167
167
  // 坐标轴刻度最小值
168
168
  position: "left",
169
169
  nameTextStyle: {
170
- fontSize: N,
170
+ fontSize: B,
171
171
  color: M,
172
172
  fontWeight: "bold"
173
173
  },
@@ -227,14 +227,14 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
227
227
  }
228
228
  ]
229
229
  };
230
- }, Ge = ({ chartOption: n, data: t, props: e = { name: "label", value: "data" } }) => {
230
+ }, Ye = ({ chartOption: n, data: t, props: e = { name: "label", value: "data" } }) => {
231
231
  let l = 0;
232
232
  const r = t.map((o, s) => (l += Number(o[e.value]), {
233
233
  name: o[e.name],
234
234
  value: Number(o[e.value])
235
235
  }));
236
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 = ({
237
+ }, qe = () => U.map((n) => `rgba(${n}, 1)`), q = ({
238
238
  data: n = [
239
239
  {
240
240
  name: "数据1",
@@ -257,7 +257,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
257
257
  isTitle: s = !0
258
258
  }) => {
259
259
  const _ = {
260
- color: Je(),
260
+ color: qe(),
261
261
  toolbox: { show: !1 },
262
262
  tooltip: {
263
263
  trigger: "item",
@@ -287,7 +287,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
287
287
  return ` ${i} | ${f}`;
288
288
  },
289
289
  textStyle: {
290
- fontSize: N,
290
+ fontSize: B,
291
291
  color: M
292
292
  },
293
293
  data: n,
@@ -396,11 +396,11 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
396
396
  ]
397
397
  };
398
398
  return _;
399
- }, Ke = (n, t, e = { name: "name", value: "value" }) => {
399
+ }, Ge = (n, t, e = { name: "name", value: "value" }) => {
400
400
  n.xAxis.data = t.map((l) => l[e.name]), Array.isArray(e.value) ? e.value.forEach((l, r) => {
401
401
  n.series[r].data = t.map((o) => o[l.value]);
402
402
  }) : typeof e.value == "string" && (n.series[0].data = t.map((l) => l[e.value]));
403
- }, Qe = () => ({
403
+ }, Je = () => ({
404
404
  name: "",
405
405
  type: "line",
406
406
  symbol: "circle",
@@ -446,7 +446,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
446
446
  }
447
447
  },
448
448
  data: []
449
- }), K = (n = [
449
+ }), G = (n = [
450
450
  {
451
451
  name: "2024-08",
452
452
  value: 63
@@ -479,22 +479,22 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
479
479
  itemWidth: 30,
480
480
  textStyle: {
481
481
  color: M,
482
- fontSize: N,
482
+ fontSize: B,
483
483
  padding: [0, 8, 0, 8]
484
484
  }
485
485
  },
486
- grid: me(),
486
+ grid: de(),
487
487
  xAxis: {
488
488
  type: "category",
489
489
  splitLine: { show: !1 },
490
490
  axisTick: { show: !1 },
491
491
  axisLine: {
492
492
  show: !0,
493
- lineStyle: { color: ce }
493
+ lineStyle: { color: pe }
494
494
  },
495
495
  axisLabel: {
496
496
  show: !0,
497
- fontSize: N,
497
+ fontSize: B,
498
498
  color: M
499
499
  },
500
500
  boundaryGap: !1,
@@ -507,42 +507,42 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
507
507
  axisLine: { show: !1 },
508
508
  axisTick: { show: !1 },
509
509
  nameTextStyle: {
510
- fontSize: N,
510
+ fontSize: B,
511
511
  color: M,
512
512
  padding: [0, 60, 0, 0]
513
513
  },
514
514
  axisLabel: {
515
515
  show: !0,
516
- fontSize: N,
516
+ fontSize: B,
517
517
  color: M
518
518
  }
519
519
  },
520
520
  series: []
521
- }, l = Qe(), r = [];
521
+ }, l = Je(), r = [];
522
522
  if (Array.isArray(t.value))
523
523
  t.value.forEach((o, s) => {
524
- const _ = q(l);
524
+ const _ = O(l);
525
525
  _.name = o.name, _.lineStyle.color = `rgba(${U[s]}, 1)`, _.itemStyle.color = `rgba(${U[s]}, 1)`, _.areaStyle.color.colorStops[0].color = `rgba(${U[s]}, 0.7)`, _.areaStyle.color.colorStops[1].color = `rgba(${U[s]}, 0.1)`, _.data = n.map((i) => i[o.value]), r.push(_);
526
526
  });
527
527
  else if (typeof t.value == "string") {
528
- const o = q(l);
528
+ const o = O(l);
529
529
  o.data = n.map((s) => s[t.value]), r.push(o);
530
530
  }
531
531
  return e.series = r, e;
532
- }, le = [
532
+ }, te = [
533
533
  { key: "assets", name: "资产名称" },
534
534
  { key: "type", name: "资产类型" },
535
535
  { key: "data", name: "资产数据" }
536
- ], ne = [
536
+ ], oe = [
537
537
  { assets: "name1", type: "type1", data: "data1" },
538
538
  { assets: "name2", type: "type2", data: "data2" },
539
539
  { assets: "name3", type: "type3", data: "data3" }
540
- ], Q = [
540
+ ], J = [
541
541
  { data: [{ name: "默认数据", value: 180 }], label: "name1" },
542
542
  { data: [{ name: "默认数据", value: 311 }], label: "name2" },
543
543
  { data: [{ name: "默认数据", value: 42 }], label: "name3" },
544
544
  { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
545
- ], Xe = [
545
+ ], Ke = [
546
546
  {
547
547
  data: 63,
548
548
  label: "数据1"
@@ -555,7 +555,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
555
555
  data: 43,
556
556
  label: "数据3"
557
557
  }
558
- ], Ze = [
558
+ ], Qe = [
559
559
  {
560
560
  type: "report-select",
561
561
  label: "资产:",
@@ -579,7 +579,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
579
579
  }
580
580
  ],
581
581
  uri: "/da/report/sens/get_asset_all",
582
- id: B()
582
+ id: j()
583
583
  },
584
584
  {
585
585
  type: "range-time",
@@ -589,7 +589,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
589
589
  end_time: "2024-09-12 19:49:34"
590
590
  }
591
591
  ],
592
- id: B()
592
+ id: j()
593
593
  },
594
594
  {
595
595
  type: "h1",
@@ -602,7 +602,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
602
602
  textIndent: 0,
603
603
  textAlign: "left"
604
604
  },
605
- id: B()
605
+ id: j()
606
606
  },
607
607
  {
608
608
  type: "h2",
@@ -616,12 +616,12 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
616
616
  textIndent: 0,
617
617
  textAlign: "left"
618
618
  },
619
- id: B()
619
+ id: j()
620
620
  },
621
621
  {
622
622
  type: "report-table",
623
- data: ne,
624
- showColumn: le,
623
+ data: oe,
624
+ showColumn: te,
625
625
  name: "表格",
626
626
  options: {
627
627
  showColumn: {
@@ -634,9 +634,9 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
634
634
  stripe: !1
635
635
  },
636
636
  rp_item_uuid: "",
637
- id: B()
637
+ id: j()
638
638
  }
639
- ], et = [
639
+ ], Xe = [
640
640
  {
641
641
  type: "h1",
642
642
  data: "报表名称",
@@ -683,8 +683,8 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
683
683
  { type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
684
684
  {
685
685
  type: "report-table",
686
- data: ne,
687
- showColumn: le,
686
+ data: oe,
687
+ showColumn: te,
688
688
  name: "表格",
689
689
  options: {
690
690
  border: !0,
@@ -701,45 +701,45 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
701
701
  },
702
702
  {
703
703
  type: "bar",
704
- data: Q,
704
+ data: J,
705
705
  showColumn: [{ key: "label", value: "data" }],
706
706
  name: "图表",
707
- options: oe(),
707
+ options: ee(),
708
708
  rp_item_uuid: "",
709
709
  id: ""
710
710
  }
711
- ], tt = (n) => ({
711
+ ], Ze = (n) => ({
712
712
  bar: {
713
713
  type: "bar",
714
- data: Q,
714
+ data: J,
715
715
  showColumn: [{ key: "label", value: "data" }],
716
716
  name: "图表",
717
- options: oe(),
717
+ options: ee(),
718
718
  rp_item_uuid: "",
719
719
  id: ""
720
720
  },
721
721
  line: {
722
722
  type: "line",
723
- data: Q,
723
+ data: J,
724
724
  showColumn: [{ key: "label", value: "data" }],
725
725
  name: "图表",
726
- options: K(),
726
+ options: G(),
727
727
  rp_item_uuid: "",
728
728
  id: ""
729
729
  },
730
730
  pie: {
731
731
  type: "pie",
732
- data: Xe,
732
+ data: Ke,
733
733
  showColumn: [{ key: "label", value: "data" }],
734
734
  name: "图表",
735
- options: J({ isLegend: !0 }),
735
+ options: q({ isLegend: !0 }),
736
736
  rp_item_uuid: "",
737
737
  id: ""
738
738
  },
739
739
  "report-table": {
740
740
  type: "report-table",
741
- data: ne,
742
- showColumn: le,
741
+ data: oe,
742
+ showColumn: te,
743
743
  name: "表格",
744
744
  options: {
745
745
  showColumn: {
@@ -754,7 +754,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
754
754
  rp_item_uuid: "",
755
755
  id: ""
756
756
  }
757
- })[n], z = Ae("tds-report", {
757
+ })[n], z = Ue("tds-report", {
758
758
  state: () => ({
759
759
  componentList: [],
760
760
  activeComponents: {},
@@ -775,10 +775,10 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
775
775
  },
776
776
  async getReportDemo(n) {
777
777
  let t = [];
778
- n ? t = (await je({ report_uuid: n })).data : t = { content: q(Ze), range_time: 1 };
778
+ n ? t = (await He({ report_uuid: n })).data : t = { content: O(Qe), range_time: 1 };
779
779
  const e = [];
780
780
  t.content.forEach((l) => {
781
- (l.type === "report-select" || l.type === "range-time") && e.push(l), l.type === "h1" && (this.titleComponent = l), l.id = B();
781
+ (l.type === "report-select" || l.type === "range-time") && e.push(l), l.type === "h1" && (this.titleComponent = l), l.id = j();
782
782
  }), 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;
783
783
  },
784
784
  setActiveComponents(n) {
@@ -791,7 +791,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
791
791
  };
792
792
  }
793
793
  }
794
- }), ot = { class: "catalogue" }, lt = ["href", "title"], nt = /* @__PURE__ */ k({
794
+ }), et = { class: "catalogue" }, tt = ["href", "title"], ot = /* @__PURE__ */ $({
795
795
  __name: "Catalogue",
796
796
  props: {
797
797
  data: { default: () => [] }
@@ -800,10 +800,10 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
800
800
  const t = n, e = F(() => t.data.filter((l) => ["h2", "h3", "h4"].includes(l.type)));
801
801
  return (l, r) => {
802
802
  const o = d("el-divider");
803
- return c(), y("div", ot, [
803
+ return c(), y("div", et, [
804
804
  r[0] || (r[0] = C("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
805
805
  (c(!0), y(A, null, I(e.value, (s) => (c(), y("div", {
806
- class: O("level" + s.type),
806
+ class: W("level" + s.type),
807
807
  key: s.value
808
808
  }, [
809
809
  s.type === "h2" ? (c(), S(o, {
@@ -814,34 +814,34 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
814
814
  class: "el-anchor__link",
815
815
  href: "#" + s.id,
816
816
  title: s.data
817
- }, W(s.data), 9, lt)
817
+ }, P(s.data), 9, tt)
818
818
  ], 2))), 128))
819
819
  ]);
820
820
  };
821
821
  }
822
822
  });
823
- const G = (n, t) => {
823
+ const Y = (n, t) => {
824
824
  const e = n.__vccOpts || n;
825
825
  for (const [l, r] of t)
826
826
  e[l] = r;
827
827
  return e;
828
- }, at = /* @__PURE__ */ G(nt, [["__scopeId", "data-v-1cd8aa2d"]]), rt = {
828
+ }, lt = /* @__PURE__ */ Y(ot, [["__scopeId", "data-v-1cd8aa2d"]]), nt = {
829
829
  class: "chart-components"
830
- }, _e = /* @__PURE__ */ k({
830
+ }, ce = /* @__PURE__ */ $({
831
831
  __name: "Bar",
832
832
  props: {
833
833
  value: {}
834
834
  },
835
835
  setup(n) {
836
836
  const t = n, e = F(() => t.value.options);
837
- return $(!1), (l, r) => {
837
+ return k(!1), (l, r) => {
838
838
  const o = d("TdsChart");
839
- return c(), y("div", rt, [a(o, {
839
+ return c(), y("div", nt, [a(o, {
840
840
  option: e.value
841
841
  }, null, 8, ["option"])]);
842
842
  };
843
843
  }
844
- }), st = { class: "chart-components" }, fe = /* @__PURE__ */ k({
844
+ }), at = { class: "chart-components" }, me = /* @__PURE__ */ $({
845
845
  __name: "Line",
846
846
  props: {
847
847
  value: {}
@@ -850,12 +850,12 @@ const G = (n, t) => {
850
850
  const t = n, e = F(() => t.value.options);
851
851
  return (l, r) => {
852
852
  const o = d("TdsChart");
853
- return c(), y("div", st, [
853
+ return c(), y("div", at, [
854
854
  a(o, { option: e.value }, null, 8, ["option"])
855
855
  ]);
856
856
  };
857
857
  }
858
- }), it = { class: "chart-components" }, ve = /* @__PURE__ */ k({
858
+ }), rt = { class: "chart-components" }, _e = /* @__PURE__ */ $({
859
859
  __name: "Pie",
860
860
  props: {
861
861
  value: {}
@@ -864,12 +864,12 @@ const G = (n, t) => {
864
864
  const t = n, e = F(() => t.value.options);
865
865
  return (l, r) => {
866
866
  const o = d("TdsChart");
867
- return c(), y("div", it, [
867
+ return c(), y("div", rt, [
868
868
  a(o, { option: e.value }, null, 8, ["option"])
869
869
  ]);
870
870
  };
871
871
  }
872
- }), ut = { key: 0 }, X = /* @__PURE__ */ k({
872
+ }), st = { key: 0 }, K = /* @__PURE__ */ $({
873
873
  __name: "ReportSelect",
874
874
  props: {
875
875
  value: {}
@@ -878,10 +878,10 @@ const G = (n, t) => {
878
878
  setup(n, { emit: t }) {
879
879
  const e = t, l = (s) => {
880
880
  e("change", s);
881
- }, o = $(n.value);
881
+ }, o = k(n.value);
882
882
  return (s, _) => {
883
883
  const i = d("el-option"), f = d("el-select");
884
- return o.value.data ? (c(), y("div", ut, [
884
+ return o.value.data ? (c(), y("div", st, [
885
885
  a(f, {
886
886
  modelValue: o.value.value,
887
887
  "onUpdate:modelValue": _[0] || (_[0] = (m) => o.value.value = m),
@@ -902,18 +902,18 @@ const G = (n, t) => {
902
902
  ])) : R("", !0);
903
903
  };
904
904
  }
905
- }), Z = /* @__PURE__ */ k({
905
+ }), Q = /* @__PURE__ */ $({
906
906
  __name: "RangeTime",
907
907
  props: {
908
908
  value: {}
909
909
  },
910
910
  emits: ["change"],
911
911
  setup(n, { emit: t }) {
912
- const e = t, r = $(n.value), o = $([]);
912
+ const e = t, r = k(n.value), o = k([]);
913
913
  function s(_) {
914
914
  _ ? (r.value.data[0].start_time = _[0], r.value.data[0].end_time = _[1]) : o.value = [], e("change", o.value);
915
915
  }
916
- return te(() => {
916
+ return Z(() => {
917
917
  o.value = [r.value.data[0].start_time, r.value.data[0].end_time];
918
918
  }), (_, i) => {
919
919
  const f = d("el-date-picker");
@@ -932,10 +932,10 @@ const G = (n, t) => {
932
932
  };
933
933
  }
934
934
  });
935
- function pt(n) {
936
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !ie(n);
935
+ function it(n) {
936
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !re(n);
937
937
  }
938
- const be = /* @__PURE__ */ k({
938
+ const fe = /* @__PURE__ */ $({
939
939
  __name: "ReportTable",
940
940
  props: {
941
941
  value: {}
@@ -948,16 +948,16 @@ const be = /* @__PURE__ */ k({
948
948
  border: t.value.options.border,
949
949
  "show-header": !!t.value.options.showHeader,
950
950
  stripe: t.value.options.stripe
951
- }, pt(r = l.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? a(d("el-table-column"), {
951
+ }, it(r = l.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? a(d("el-table-column"), {
952
952
  prop: o.key,
953
953
  label: o.name
954
954
  }, null) : null)) ? r : {
955
955
  default: () => [r]
956
956
  });
957
957
  };
958
- return (l, r) => (c(), y("div", null, [a(e, re(se(l.value)), null, 16)]));
958
+ return (l, r) => (c(), y("div", null, [a(e, ne(ae(l.value)), null, 16)]));
959
959
  }
960
- }), ee = /* @__PURE__ */ k({
960
+ }), X = /* @__PURE__ */ $({
961
961
  __name: "ReportText",
962
962
  props: {
963
963
  value: {}
@@ -975,10 +975,10 @@ const be = /* @__PURE__ */ k({
975
975
  };
976
976
  };
977
977
  return (l, r) => (c(), y("div", {
978
- style: we(e())
979
- }, W(l.value.data), 5));
978
+ style: he(e())
979
+ }, P(l.value.data), 5));
980
980
  }
981
- }), dt = { class: "chart-components" }, ge = /* @__PURE__ */ k({
981
+ }), ut = { class: "chart-components" }, ve = /* @__PURE__ */ $({
982
982
  __name: "ReportChart",
983
983
  props: {
984
984
  value: {}
@@ -986,7 +986,7 @@ const be = /* @__PURE__ */ k({
986
986
  setup(n) {
987
987
  const t = n, e = F(() => t.value), l = F(() => {
988
988
  if (e.value.type === "bar") {
989
- e.value.options.series = oe([]).series;
989
+ e.value.options.series = ee([]).series;
990
990
  const r = [];
991
991
  let o = "";
992
992
  e.value.data.forEach((s) => {
@@ -994,9 +994,9 @@ const be = /* @__PURE__ */ k({
994
994
  name: s.label,
995
995
  value: s.data[0].value
996
996
  });
997
- }), qe(e.value.options, r, o);
997
+ }), Oe(e.value.options, r, o);
998
998
  }
999
- 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") {
999
+ if (e.value.type === "pie" && (e.value.options = q({ isLegend: !0 }), console.log(q({ isLegend: !0 }), "chartsPie({ isLegend: true })"), Ye({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1000
1000
  let r = [];
1001
1001
  e.value.data.forEach((_) => {
1002
1002
  r = _.data.map((i, f) => ({ name: i.name, value: "value" + f }));
@@ -1012,22 +1012,22 @@ const be = /* @__PURE__ */ k({
1012
1012
  i[f.value] = _.data[m].value;
1013
1013
  }), i;
1014
1014
  });
1015
- console.log(K([], o), "chartsLine([], params)"), e.value.options.series = K([], o).series, Ke(e.value.options, s, o);
1015
+ console.log(G([], o), "chartsLine([], params)"), e.value.options.series = G([], o).series, Ge(e.value.options, s, o);
1016
1016
  }
1017
1017
  return e.value.options;
1018
1018
  });
1019
1019
  return (r, o) => {
1020
1020
  const s = d("TdsChart");
1021
- return c(), y("div", dt, [
1021
+ return c(), y("div", ut, [
1022
1022
  a(s, { option: l.value }, null, 8, ["option"])
1023
1023
  ]);
1024
1024
  };
1025
1025
  }
1026
1026
  });
1027
- function ct(n) {
1028
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !ie(n);
1027
+ function pt(n) {
1028
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !re(n);
1029
1029
  }
1030
- const ye = /* @__PURE__ */ k({
1030
+ const be = /* @__PURE__ */ $({
1031
1031
  __name: "ReportDescribe",
1032
1032
  props: {
1033
1033
  value: {}
@@ -1040,7 +1040,7 @@ const ye = /* @__PURE__ */ k({
1040
1040
  border: t.value.options.border,
1041
1041
  column: t.value.options.column,
1042
1042
  direction: t.value.options.direction
1043
- }, ct(r = l.showColumn.map((o) => a(d("el-descriptions-item"), {
1043
+ }, pt(r = l.showColumn.map((o) => a(d("el-descriptions-item"), {
1044
1044
  label: o.name
1045
1045
  }, {
1046
1046
  default: () => [t.value.data[o.key]]
@@ -1048,21 +1048,21 @@ const ye = /* @__PURE__ */ k({
1048
1048
  default: () => [r]
1049
1049
  });
1050
1050
  };
1051
- return (l, r) => (c(), y("div", null, [a(e, re(se(l.value)), null, 16)]));
1051
+ return (l, r) => (c(), y("div", null, [a(e, ne(ae(l.value)), null, 16)]));
1052
1052
  }
1053
- }), mt = {
1053
+ }), dt = {
1054
1054
  class: "editor-box"
1055
- }, _t = {
1055
+ }, ct = {
1056
1056
  class: "editor",
1057
1057
  id: "editor",
1058
1058
  style: {
1059
1059
  width: "100%"
1060
1060
  }
1061
- }, ft = {
1061
+ }, mt = {
1062
1062
  class: "editor-content flex flex-start"
1063
- }, vt = ["id"], bt = ["innerHTML"], gt = /* @__PURE__ */ k({
1063
+ }, _t = ["id"], ft = ["innerHTML"], vt = /* @__PURE__ */ $({
1064
1064
  __name: "index",
1065
- props: /* @__PURE__ */ ue({
1065
+ props: /* @__PURE__ */ se({
1066
1066
  reportId: {
1067
1067
  type: String,
1068
1068
  default: ""
@@ -1074,16 +1074,16 @@ const ye = /* @__PURE__ */ k({
1074
1074
  emits: ["update:modelValue"],
1075
1075
  setup(n) {
1076
1076
  const t = {
1077
- Bar: _e,
1078
- Line: fe,
1079
- Pie: ve,
1080
- ReportSelect: X,
1081
- RangeTime: Z,
1082
- ReportTable: be,
1083
- ReportText: ee,
1084
- ReportChart: ge,
1085
- ReportDescribe: ye
1086
- }, e = z(), l = n, r = pe(n, "modelValue"), o = $([]), s = $([]), _ = $([]), i = $(""), f = $("");
1077
+ Bar: ce,
1078
+ Line: me,
1079
+ Pie: _e,
1080
+ ReportSelect: K,
1081
+ RangeTime: Q,
1082
+ ReportTable: fe,
1083
+ ReportText: X,
1084
+ ReportChart: ve,
1085
+ ReportDescribe: be
1086
+ }, e = z(), l = n, r = ie(n, "modelValue"), o = k([]), s = k([]), _ = k([]), i = k(""), f = k("");
1087
1087
  function m() {
1088
1088
  r.value = "table";
1089
1089
  }
@@ -1097,7 +1097,7 @@ const ye = /* @__PURE__ */ k({
1097
1097
  start_time: i.value,
1098
1098
  end_time: f.value,
1099
1099
  select_data: _.value.join(",")
1100
- }, x = await Pe(v), E = [];
1100
+ }, x = await Me(v), E = [];
1101
1101
  x.data.forEach((w) => {
1102
1102
  (w.type === "report-select" || w.type === "range-time") && E.push(w);
1103
1103
  }), o.value = E, x.data.splice(0, o.value.length), s.value = x.data;
@@ -1109,16 +1109,16 @@ const ye = /* @__PURE__ */ k({
1109
1109
  return c(), S(w, {
1110
1110
  class: "editor view"
1111
1111
  }, {
1112
- default: p(() => [C("div", mt, [a(at, {
1112
+ default: p(() => [C("div", dt, [a(lt, {
1113
1113
  data: s.value
1114
- }, null, 8, ["data"]), C("div", _t, [C("div", ft, [(c(!0), y(A, null, I(o.value, (T) => (c(), y("div", {
1114
+ }, null, 8, ["data"]), C("div", ct, [C("div", mt, [(c(!0), y(A, null, I(o.value, (T) => (c(), y("div", {
1115
1115
  class: "item-input",
1116
1116
  key: T.id
1117
- }, [T.type === "report-select" ? (c(), S(X, {
1117
+ }, [T.type === "report-select" ? (c(), S(K, {
1118
1118
  key: 0,
1119
1119
  onChange: u,
1120
1120
  value: T
1121
- }, null, 8, ["value"])) : R("", !0), T.type === "range-time" && g(e).filterForm.range_time ? (c(), S(Z, {
1121
+ }, null, 8, ["value"])) : R("", !0), T.type === "range-time" && g(e).filterForm.range_time ? (c(), S(Q, {
1122
1122
  key: 1,
1123
1123
  onChange: h,
1124
1124
  value: T
@@ -1135,47 +1135,47 @@ const ye = /* @__PURE__ */ k({
1135
1135
  _: 1
1136
1136
  })]), (c(!0), y(A, null, I(s.value, (T) => (c(), y("div", {
1137
1137
  key: T.id,
1138
- class: O(["editor-content", ["editor" + T.type]]),
1138
+ class: W(["editor-content", ["editor" + T.type]]),
1139
1139
  id: T.id
1140
- }, [T.type !== "p" ? (c(), S(Y(V(T.type)), {
1140
+ }, [T.type !== "p" ? (c(), S(N(V(T.type)), {
1141
1141
  key: 0,
1142
- class: O(["editor" + T.type]),
1142
+ class: W(["editor" + T.type]),
1143
1143
  value: T
1144
1144
  }, {
1145
- default: p(() => [D(W(T.data), 1)]),
1145
+ default: p(() => [D(P(T.data), 1)]),
1146
1146
  _: 2
1147
1147
  }, 1032, ["class", "value"])) : (c(), y("p", {
1148
1148
  key: 1,
1149
1149
  innerHTML: T.data
1150
- }, null, 8, bt))], 10, vt))), 128))])])]),
1150
+ }, null, 8, ft))], 10, _t))), 128))])])]),
1151
1151
  _: 1
1152
1152
  });
1153
1153
  };
1154
1154
  }
1155
1155
  });
1156
- const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1156
+ const bt = /* @__PURE__ */ Y(vt, [["__scopeId", "data-v-2d59469a"]]), gt = {
1157
1157
  class: "editor"
1158
- }, Ct = {
1158
+ }, yt = {
1159
1159
  class: "editor-content edit"
1160
- }, wt = ["onClick"], xt = ["onClick"], Vt = ["innerHTML", "draggable"], St = /* @__PURE__ */ k({
1160
+ }, ht = ["onClick"], Ct = ["onClick"], wt = ["innerHTML", "draggable"], xt = /* @__PURE__ */ $({
1161
1161
  __name: "Editor",
1162
1162
  setup(n) {
1163
1163
  const t = {
1164
- Bar: _e,
1165
- Line: fe,
1166
- Pie: ve,
1167
- ReportSelect: X,
1168
- RangeTime: Z,
1169
- ReportTable: be,
1170
- ReportText: ee,
1171
- ReportChart: ge,
1172
- ReportDescribe: ye
1164
+ Bar: ce,
1165
+ Line: me,
1166
+ Pie: _e,
1167
+ ReportSelect: K,
1168
+ RangeTime: Q,
1169
+ ReportTable: fe,
1170
+ ReportText: X,
1171
+ ReportChart: ve,
1172
+ ReportDescribe: be
1173
1173
  }, {
1174
1174
  componentList: e,
1175
1175
  activeComponents: l,
1176
1176
  notDraggableList: r,
1177
1177
  titleComponent: o
1178
- } = Ee(z()), s = z(), _ = (v) => {
1178
+ } = De(z()), s = z(), _ = (v) => {
1179
1179
  e.value.forEach((x, E) => {
1180
1180
  x.id === v && (e.value.splice(E, 1), s.activeComponents = []);
1181
1181
  });
@@ -1183,15 +1183,15 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1183
1183
  s.setActiveComponents(v);
1184
1184
  }, f = () => a("div", null, [D("未找到对应组件")]), m = (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), u = (v) => {
1185
1185
  console.log(v, "evt");
1186
- }, h = $(!1), b = () => {
1186
+ }, h = k(!1), b = () => {
1187
1187
  h.value = !0;
1188
1188
  }, L = (v) => {
1189
1189
  v.newIndex !== 0 && (console.log(v), h.value = !1);
1190
- }, V = $();
1190
+ }, V = k();
1191
1191
  return (v, x) => {
1192
1192
  const E = d("icon-material-symbols:cancel-outline");
1193
- return c(), y("div", ht, [C("div", {
1194
- class: O(["editor-content edit flex flex-start", [{
1193
+ return c(), y("div", gt, [C("div", {
1194
+ class: W(["editor-content edit flex flex-start", [{
1195
1195
  active: g(l).id === "filter"
1196
1196
  }]]),
1197
1197
  onClick: x[0] || (x[0] = (w) => i({
@@ -1201,20 +1201,20 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1201
1201
  }, [(c(!0), y(A, null, I(g(r), (w) => (c(), y("div", {
1202
1202
  class: "item-input",
1203
1203
  key: w.id
1204
- }, [w.type === "report-select" || w.type === "range-time" && g(s).filterForm.range_time ? (c(), S(Y(g(H)(t, w.type)), {
1204
+ }, [w.type === "report-select" || w.type === "range-time" && g(s).filterForm.range_time ? (c(), S(N(g(H)(t, w.type)), {
1205
1205
  key: 0,
1206
1206
  value: w
1207
1207
  }, {
1208
- default: p(() => [D(W(w.data), 1)]),
1208
+ default: p(() => [D(P(w.data), 1)]),
1209
1209
  _: 2
1210
- }, 1032, ["value"])) : R("", !0)]))), 128))], 2), C("div", Ct, [a(ee, {
1210
+ }, 1032, ["value"])) : R("", !0)]))), 128))], 2), C("div", yt, [a(X, {
1211
1211
  value: g(o),
1212
1212
  onClick: x[1] || (x[1] = (w) => i(g(o)))
1213
- }, null, 8, ["value"])]), a(g(Ie), {
1213
+ }, null, 8, ["value"])]), a(g(Ee), {
1214
1214
  ref_key: "el",
1215
1215
  ref: V,
1216
1216
  modelValue: g(e),
1217
- "onUpdate:modelValue": x[2] || (x[2] = (w) => xe(e) ? e.value = w : null),
1217
+ "onUpdate:modelValue": x[2] || (x[2] = (w) => Ce(e) ? e.value = w : null),
1218
1218
  "on-change": u,
1219
1219
  animation: 150,
1220
1220
  onStart: b,
@@ -1222,32 +1222,32 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1222
1222
  }, {
1223
1223
  default: p(() => [(c(!0), y(A, null, I(g(e), (w) => (c(), y("div", {
1224
1224
  key: w.id,
1225
- class: O(["editor-content edit", ["editor" + w.type, {
1225
+ class: W(["editor-content edit", ["editor" + w.type, {
1226
1226
  active: w.id === g(l).id
1227
1227
  }]]),
1228
1228
  onClick: (T) => i(w)
1229
1229
  }, [C("i", {
1230
- onClick: Ve((T) => _(w.id), ["stop"])
1230
+ onClick: we((T) => _(w.id), ["stop"])
1231
1231
  }, [a(E, {
1232
1232
  class: "color-red"
1233
- })], 8, xt), w.type !== "p" ? (c(), S(Y(m(w.type)), {
1233
+ })], 8, Ct), w.type !== "p" ? (c(), S(N(m(w.type)), {
1234
1234
  key: 0,
1235
- class: O(["editor" + w.type]),
1235
+ class: W(["editor" + w.type]),
1236
1236
  value: w,
1237
1237
  draggable: h.value
1238
1238
  }, {
1239
- default: p(() => [D(W(w.data), 1)]),
1239
+ default: p(() => [D(P(w.data), 1)]),
1240
1240
  _: 2
1241
1241
  }, 1032, ["class", "value", "draggable"])) : (c(), y("p", {
1242
1242
  key: 1,
1243
1243
  innerHTML: w.data,
1244
1244
  draggable: h.value
1245
- }, null, 8, Vt))], 10, wt))), 128))]),
1245
+ }, null, 8, wt))], 10, ht))), 128))]),
1246
1246
  _: 1
1247
1247
  }, 8, ["modelValue"])]);
1248
1248
  };
1249
1249
  }
1250
- }), kt = { class: "label" }, $t = { class: "flex item-switch" }, Tt = { class: "flex item-switch" }, Lt = { class: "flex item-switch" }, he = /* @__PURE__ */ k({
1250
+ }), Vt = { class: "label" }, St = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, kt = { class: "flex item-switch" }, ge = /* @__PURE__ */ $({
1251
1251
  __name: "SettingTable",
1252
1252
  setup(n) {
1253
1253
  const t = z(), e = F(() => t.getActiveComponents);
@@ -1260,7 +1260,7 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1260
1260
  class: "flex item-switch",
1261
1261
  key: f
1262
1262
  }, [
1263
- C("span", kt, W(i.name), 1),
1263
+ C("span", Vt, P(i.name), 1),
1264
1264
  a(o, {
1265
1265
  modelValue: e.value.options.showColumn[i.key],
1266
1266
  "onUpdate:modelValue": (m) => e.value.options.showColumn[i.key] = m
@@ -1272,21 +1272,21 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1272
1272
  a(_),
1273
1273
  a(s, { label: "表格样式" }, {
1274
1274
  default: p(() => [
1275
- C("p", $t, [
1275
+ C("p", St, [
1276
1276
  r[3] || (r[3] = C("span", { class: "label" }, "斑马纹", -1)),
1277
1277
  a(o, {
1278
1278
  modelValue: e.value.options.stripe,
1279
1279
  "onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
1280
1280
  }, null, 8, ["modelValue"])
1281
1281
  ]),
1282
- C("p", Tt, [
1282
+ C("p", $t, [
1283
1283
  r[4] || (r[4] = C("span", { class: "label" }, "边框", -1)),
1284
1284
  a(o, {
1285
1285
  modelValue: e.value.options.border,
1286
1286
  "onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
1287
1287
  }, null, 8, ["modelValue"])
1288
1288
  ]),
1289
- C("p", Lt, [
1289
+ C("p", kt, [
1290
1290
  r[5] || (r[5] = C("span", { class: "label" }, "表头", -1)),
1291
1291
  a(o, {
1292
1292
  modelValue: e.value.options.showHeader,
@@ -1299,16 +1299,16 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1299
1299
  ]);
1300
1300
  };
1301
1301
  }
1302
- }), Rt = { key: 0 }, Ut = /* @__PURE__ */ k({
1302
+ }), Tt = { key: 0 }, Lt = /* @__PURE__ */ $({
1303
1303
  __name: "ChartsUniConfig",
1304
1304
  setup(n) {
1305
1305
  const t = z(), e = F(() => t.activeComponents);
1306
1306
  function l(r) {
1307
1307
  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);
1308
1308
  }
1309
- return $("rgb(46, 145, 255)"), (r, o) => {
1309
+ return k("rgb(46, 145, 255)"), (r, o) => {
1310
1310
  const s = d("el-input"), _ = d("el-form-item"), i = d("el-switch"), f = d("el-col"), m = d("el-color-picker"), u = d("el-input-number"), h = d("el-row"), b = d("el-collapse-item"), L = d("el-collapse");
1311
- return e.value.options.title ? (c(), y("div", Rt, [
1311
+ return e.value.options.title ? (c(), y("div", Tt, [
1312
1312
  a(_, { label: "标题" }, {
1313
1313
  default: p(() => [
1314
1314
  a(s, {
@@ -1442,7 +1442,7 @@ const yt = /* @__PURE__ */ G(gt, [["__scopeId", "data-v-2d59469a"]]), ht = {
1442
1442
  };
1443
1443
  }
1444
1444
  });
1445
- const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @__PURE__ */ k({
1445
+ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @__PURE__ */ $({
1446
1446
  __name: "SettingDescribe",
1447
1447
  setup(n) {
1448
1448
  const t = z(), e = F(() => t.getActiveComponents);
@@ -1507,18 +1507,18 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1507
1507
  ]);
1508
1508
  };
1509
1509
  }
1510
- }), At = /* @__PURE__ */ k({
1510
+ }), Ut = /* @__PURE__ */ $({
1511
1511
  __name: "SettingCharts",
1512
1512
  setup(n) {
1513
- const t = z(), e = $(!1), l = F(() => t.getActiveComponents), r = [
1513
+ const t = z(), e = k(!1), l = F(() => t.getActiveComponents), r = [
1514
1514
  { value: "report-describe", name: "描述列表" },
1515
1515
  { value: "report-table", name: "表格" },
1516
1516
  { value: "line", name: "趋势图" },
1517
1517
  { value: "pie", name: "扇形图" },
1518
1518
  { value: "bar", name: "柱状图" }
1519
- ], o = $(""), s = $();
1519
+ ], o = k(""), s = k();
1520
1520
  async function _(m) {
1521
- const u = await de({
1521
+ const u = await ue({
1522
1522
  prod_type: window.$prodType,
1523
1523
  chart_type: m,
1524
1524
  filter_uuid: t.filterForm.filter_uuid
@@ -1536,24 +1536,24 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1536
1536
  }
1537
1537
  h.type === "report-describe" && (h.options = { ...h.options, title: "", border: !0, column: 1, direction: "horizontal", ...l.value.options }), Object.assign(t.activeComponents, h), t.activeComponents.rp_item_uuid = u.rp_item_uuid;
1538
1538
  }
1539
- te(async () => {
1539
+ Z(async () => {
1540
1540
  o.value = l.value.type, await _(o.value);
1541
1541
  });
1542
1542
  async function f(m) {
1543
1543
  try {
1544
- e.value = !0, await _(m), Object.assign(t.activeComponents, tt(m)), e.value = !1;
1544
+ e.value = !0, await _(m), Object.assign(t.activeComponents, Ze(m)), e.value = !1;
1545
1545
  } catch {
1546
1546
  e.value = !1;
1547
1547
  }
1548
1548
  }
1549
- return Se(
1549
+ return xe(
1550
1550
  () => l.value,
1551
1551
  (m) => {
1552
1552
  console.log(m, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(m.type) && (o.value = l.value.type, _(o.value));
1553
1553
  }
1554
1554
  ), (m, u) => {
1555
- const h = d("el-option"), b = d("el-select"), L = d("el-form-item"), V = d("el-form"), v = ke("loading");
1556
- return $e((c(), y("div", null, [
1555
+ const h = d("el-option"), b = d("el-select"), L = d("el-form-item"), V = d("el-form"), v = Ve("loading");
1556
+ return Se((c(), y("div", null, [
1557
1557
  a(V, { "label-position": "top" }, {
1558
1558
  default: p(() => [
1559
1559
  a(L, { label: "图表类型" }, {
@@ -1596,9 +1596,9 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1596
1596
  ]),
1597
1597
  _: 1
1598
1598
  }),
1599
- o.value === "report-table" && l.value.options.showColumn ? (c(), S(he, { key: 0 })) : R("", !0),
1600
- o.value === "pie" || o.value === "bar" || o.value === "line" ? (c(), S(Dt, { key: 1 })) : R("", !0),
1601
- o.value === "report-describe" ? (c(), S(Ce, { key: 2 })) : R("", !0)
1599
+ o.value === "report-table" && l.value.options.showColumn ? (c(), S(ge, { key: 0 })) : R("", !0),
1600
+ o.value === "pie" || o.value === "bar" || o.value === "line" ? (c(), S(Rt, { key: 1 })) : R("", !0),
1601
+ o.value === "report-describe" ? (c(), S(ye, { key: 2 })) : R("", !0)
1602
1602
  ]),
1603
1603
  _: 1
1604
1604
  })
@@ -1607,16 +1607,16 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1607
1607
  ]);
1608
1608
  };
1609
1609
  }
1610
- }), Et = { key: 0 }, Ft = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ae = "default", It = /* @__PURE__ */ k({
1610
+ }), Dt = { key: 0 }, At = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, le = "default", Et = /* @__PURE__ */ $({
1611
1611
  __name: "SettingText",
1612
1612
  setup(n) {
1613
- const t = z(), e = Te(), l = $();
1613
+ const t = z(), e = $e(), l = k();
1614
1614
  function r(m) {
1615
1615
  const u = l.value.find((h) => h.rp_item_uuid === m);
1616
1616
  t.activeComponents.uri = u.rp_item_content.uri, e.value.setHtml((u == null ? void 0 : u.rp_item_content.data) || "");
1617
1617
  }
1618
1618
  async function o() {
1619
- const m = await de({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1619
+ const m = await ue({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1620
1620
  l.value = m.data;
1621
1621
  }
1622
1622
  o();
@@ -1646,12 +1646,12 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1646
1646
  e.value = m;
1647
1647
  }, f = (m) => {
1648
1648
  };
1649
- return Le(() => {
1649
+ return ke(() => {
1650
1650
  const m = e.value;
1651
1651
  m != null && m.destroy();
1652
1652
  }), (m, u) => {
1653
1653
  const h = d("el-option"), b = d("el-select"), L = d("el-form-item"), V = d("el-form");
1654
- return g(t).activeComponents.id ? (c(), y("div", Et, [
1654
+ return g(t).activeComponents.id ? (c(), y("div", Dt, [
1655
1655
  a(V, { "label-position": "top" }, {
1656
1656
  default: p(() => [
1657
1657
  a(L, { label: "组件库" }, {
@@ -1676,20 +1676,20 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1676
1676
  }),
1677
1677
  a(L, { label: "文本内容" }, {
1678
1678
  default: p(() => [
1679
- C("div", Ft, [
1680
- a(g(ze), {
1679
+ C("div", At, [
1680
+ a(g(Fe), {
1681
1681
  style: { "border-bottom": "1px solid #ccc" },
1682
1682
  editor: e.value,
1683
1683
  "default-config": s,
1684
- mode: ae
1684
+ mode: le
1685
1685
  }, null, 8, ["editor"]),
1686
- a(g(He), {
1686
+ a(g(Ie), {
1687
1687
  style: { height: "500px", "overflow-y": "hidden" },
1688
1688
  onOnChange: f,
1689
1689
  modelValue: g(t).activeComponents.data,
1690
1690
  "onUpdate:modelValue": u[1] || (u[1] = (v) => g(t).activeComponents.data = v),
1691
1691
  "default-config": _,
1692
- mode: ae,
1692
+ mode: le,
1693
1693
  onOnCreated: i
1694
1694
  }, null, 8, ["modelValue"])
1695
1695
  ])
@@ -1702,12 +1702,12 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1702
1702
  ])) : R("", !0);
1703
1703
  };
1704
1704
  }
1705
- }), zt = /* @__PURE__ */ k({
1705
+ }), Ft = /* @__PURE__ */ $({
1706
1706
  __name: "SettingFilter",
1707
1707
  setup(n) {
1708
- const t = $([]), e = z();
1708
+ const t = k([]), e = z();
1709
1709
  async function l() {
1710
- const r = await Oe({ prod_type: window.$prodType });
1710
+ const r = await We({ prod_type: window.$prodType });
1711
1711
  t.value = r.data;
1712
1712
  }
1713
1713
  return l(), (r, o) => {
@@ -1753,7 +1753,7 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1753
1753
  });
1754
1754
  };
1755
1755
  }
1756
- }), Ht = /* @__PURE__ */ k({
1756
+ }), It = /* @__PURE__ */ $({
1757
1757
  __name: "SettingTitle",
1758
1758
  setup(n) {
1759
1759
  const t = z();
@@ -1884,30 +1884,30 @@ const Dt = /* @__PURE__ */ G(Ut, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
1884
1884
  };
1885
1885
  }
1886
1886
  });
1887
- const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @__PURE__ */ k({
1887
+ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @__PURE__ */ $({
1888
1888
  __name: "Setting",
1889
1889
  setup(n) {
1890
1890
  const t = {
1891
- SettingTable: he,
1892
- SettingCharts: At,
1893
- SettingDescribe: Ce,
1894
- SettingText: It,
1895
- SettingFilter: zt,
1896
- SettingTitle: Mt
1891
+ SettingTable: ge,
1892
+ SettingCharts: Ut,
1893
+ SettingDescribe: ye,
1894
+ SettingText: Et,
1895
+ SettingFilter: Ft,
1896
+ SettingTitle: zt
1897
1897
  }, e = z(), l = F(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], o = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe"], _ = (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";
1898
1898
  return (i, f) => {
1899
1899
  const m = d("el-card");
1900
1900
  return c(), S(m, { class: "config-wrapper" }, {
1901
1901
  default: p(() => [
1902
- (c(), S(Y(_(l.value.type))))
1902
+ (c(), S(N(_(l.value.type))))
1903
1903
  ]),
1904
1904
  _: 1
1905
1905
  });
1906
1906
  };
1907
1907
  }
1908
- }), Pt = { class: "editor-wrapper flex start" }, Bt = { class: "flex" }, Wt = { class: "btn-group" }, Nt = /* @__PURE__ */ k({
1908
+ }), Mt = { class: "editor-wrapper flex start" }, jt = { class: "flex" }, Pt = { class: "btn-group" }, Bt = /* @__PURE__ */ $({
1909
1909
  __name: "index",
1910
- props: /* @__PURE__ */ ue({
1910
+ props: /* @__PURE__ */ se({
1911
1911
  reportId: {
1912
1912
  type: String,
1913
1913
  default: ""
@@ -1918,9 +1918,9 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1918
1918
  }),
1919
1919
  emits: ["update:modelValue"],
1920
1920
  setup(n) {
1921
- const t = z(), e = n, l = pe(n, "modelValue"), r = (i) => {
1922
- const f = q(i);
1923
- f.id = B(), t.componentList.push(f);
1921
+ const t = z(), e = n, l = ie(n, "modelValue"), r = (i) => {
1922
+ const f = O(i);
1923
+ f.id = j(), t.componentList.push(f);
1924
1924
  };
1925
1925
  function o() {
1926
1926
  l.value = "table";
@@ -1928,16 +1928,16 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1928
1928
  function s() {
1929
1929
  t.getReportDemo(e.reportId);
1930
1930
  }
1931
- te(() => {
1931
+ Z(() => {
1932
1932
  s();
1933
1933
  });
1934
1934
  async function _() {
1935
1935
  if (!t.filterForm.filter_uuid) {
1936
- Fe.error("请选择筛选条件");
1936
+ Ae.error("请选择筛选条件");
1937
1937
  return;
1938
1938
  }
1939
1939
  try {
1940
- e.reportId ? await We({
1940
+ e.reportId ? await Pe({
1941
1941
  report_uuid: e.reportId,
1942
1942
  data: {
1943
1943
  report_name: t.titleComponent.data,
@@ -1945,7 +1945,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1945
1945
  content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
1946
1946
  ...t.filterForm
1947
1947
  }
1948
- }) : await Be({
1948
+ }) : await je({
1949
1949
  data: {
1950
1950
  report_name: t.titleComponent.data,
1951
1951
  prod_type: window.$prodType,
@@ -1957,18 +1957,18 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1957
1957
  console.log(i, "error");
1958
1958
  }
1959
1959
  }
1960
- return Re(() => {
1960
+ return Te(() => {
1961
1961
  t.clearComponents();
1962
1962
  }), (i, f) => {
1963
1963
  const m = d("el-button"), u = d("el-button-group"), h = d("el-card");
1964
- return c(), y("div", Pt, [
1964
+ return c(), y("div", Mt, [
1965
1965
  a(h, { class: "view-wrapper" }, {
1966
1966
  default: p(() => [
1967
- C("div", Bt, [
1968
- C("div", Wt, [
1967
+ C("div", jt, [
1968
+ C("div", Pt, [
1969
1969
  a(u, null, {
1970
1970
  default: p(() => [
1971
- (c(!0), y(A, null, I(g(et), (b) => (c(), y(A, {
1971
+ (c(!0), y(A, null, I(g(Xe), (b) => (c(), y(A, {
1972
1972
  key: b.type
1973
1973
  }, [
1974
1974
  b != null && b.hide ? R("", !0) : (c(), S(m, {
@@ -1976,7 +1976,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
1976
1976
  onClick: (L) => r(b)
1977
1977
  }, {
1978
1978
  default: p(() => [
1979
- D(W(b.name), 1)
1979
+ D(P(b.name), 1)
1980
1980
  ]),
1981
1981
  _: 2
1982
1982
  }, 1032, ["onClick"]))
@@ -2006,17 +2006,17 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2006
2006
  _: 1
2007
2007
  })
2008
2008
  ]),
2009
- a(St)
2009
+ a(xt)
2010
2010
  ]),
2011
2011
  _: 1
2012
2012
  }),
2013
- a(jt)
2013
+ a(Ht)
2014
2014
  ]);
2015
2015
  };
2016
2016
  }
2017
- }), Ot = {
2017
+ }), Wt = {
2018
2018
  class: "table-box"
2019
- }, Yt = /* @__PURE__ */ k({
2019
+ }, Nt = /* @__PURE__ */ $({
2020
2020
  __name: "Report",
2021
2021
  emits: ["click"],
2022
2022
  setup(n, {
@@ -2024,7 +2024,7 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2024
2024
  }) {
2025
2025
  const e = F(() => ({
2026
2026
  prod_type: window.$prodType
2027
- })), l = $(), r = t, o = (u) => {
2027
+ })), l = k(), r = t, o = (u) => {
2028
2028
  r("click", u.report_uuid, "review");
2029
2029
  }, s = (u) => {
2030
2030
  r("click", u.report_uuid, "editor");
@@ -2034,11 +2034,11 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2034
2034
  console.log(u);
2035
2035
  }, f = (u) => {
2036
2036
  window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2037
- await Ye({
2037
+ await Ne({
2038
2038
  report_uuids: u
2039
2039
  }), l.value.getTableList();
2040
2040
  });
2041
- }, m = Ue([
2041
+ }, m = Le([
2042
2042
  // { type: 'selection', fixed: 'left', width: 70 },
2043
2043
  {
2044
2044
  type: "selection",
@@ -2090,11 +2090,11 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2090
2090
  ]);
2091
2091
  return (u, h) => {
2092
2092
  const b = d("el-button"), L = d("TdsTable");
2093
- return c(), y("div", Ot, [a(L, {
2093
+ return c(), y("div", Wt, [a(L, {
2094
2094
  ref_key: "proTable",
2095
2095
  ref: l,
2096
2096
  columns: m,
2097
- "request-api": g(Ne),
2097
+ "request-api": g(Be),
2098
2098
  "init-param": e.value,
2099
2099
  "row-key": "report_uuid",
2100
2100
  options: u.$tableOptions(),
@@ -2124,27 +2124,27 @@ const Mt = /* @__PURE__ */ G(Ht, [["__scopeId", "data-v-56fef84c"]]), jt = /* @_
2124
2124
  };
2125
2125
  }
2126
2126
  });
2127
- const qt = { style: { height: "100%" } }, Gt = /* @__PURE__ */ k({
2127
+ const Ot = { style: { height: "100%" } }, Yt = /* @__PURE__ */ $({
2128
2128
  name: "TCReport",
2129
2129
  __name: "index",
2130
2130
  setup(n) {
2131
- const t = $(), e = $("table"), l = (r, o) => {
2131
+ const t = k(), e = k("table"), l = (r, o) => {
2132
2132
  t.value = r, e.value = o;
2133
2133
  };
2134
- return (r, o) => (c(), y("div", qt, [
2135
- a(De, { name: "slide-fade" }, {
2134
+ return (r, o) => (c(), y("div", Ot, [
2135
+ a(Re, { name: "slide-fade" }, {
2136
2136
  default: p(() => [
2137
- e.value === "table" ? (c(), S(Yt, {
2137
+ e.value === "table" ? (c(), S(Nt, {
2138
2138
  key: 0,
2139
2139
  onClick: l
2140
2140
  })) : R("", !0),
2141
- e.value === "review" ? (c(), S(yt, {
2141
+ e.value === "review" ? (c(), S(bt, {
2142
2142
  key: 1,
2143
2143
  "report-id": t.value,
2144
2144
  modelValue: e.value,
2145
2145
  "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
2146
2146
  }, null, 8, ["report-id", "modelValue"])) : R("", !0),
2147
- e.value === "editor" ? (c(), S(Nt, {
2147
+ e.value === "editor" ? (c(), S(Bt, {
2148
2148
  key: 2,
2149
2149
  "report-id": t.value,
2150
2150
  modelValue: e.value,
@@ -2156,7 +2156,7 @@ const qt = { style: { height: "100%" } }, Gt = /* @__PURE__ */ k({
2156
2156
  ]));
2157
2157
  }
2158
2158
  });
2159
- const Jt = (n, t) => {
2159
+ const qt = (n, t) => {
2160
2160
  if (n.install = (e) => {
2161
2161
  for (const l of [n, ...Object.values(t ?? {})])
2162
2162
  e.component(l.name, l);
@@ -2164,16 +2164,16 @@ const Jt = (n, t) => {
2164
2164
  for (const [e, l] of Object.entries(t))
2165
2165
  n[e] = l;
2166
2166
  return n;
2167
- }, Kt = Jt(Gt), Qt = {
2168
- TCReport: Kt
2169
- }, lo = {
2167
+ }, Gt = qt(Yt), Jt = {
2168
+ TCReport: Gt
2169
+ }, to = {
2170
2170
  install(n, t) {
2171
- Object.entries(Qt).forEach(([e, l]) => {
2171
+ Object.entries(Jt).forEach(([e, l]) => {
2172
2172
  n.component(e, l);
2173
2173
  }), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
2174
2174
  }
2175
2175
  };
2176
2176
  export {
2177
- Kt as TCReport,
2178
- lo as default
2177
+ Gt as TCReport,
2178
+ to as default
2179
2179
  };