@topdatasec/report 1.1.2 → 1.1.3

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