@topdatasec/report 1.1.4 → 1.1.5

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,64 @@
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({
1
+ import { defineComponent as T, computed as A, resolveComponent as i, openBlock as m, createElementBlock as w, createElementVNode as k, Fragment as F, renderList as I, normalizeClass as B, createBlock as S, createCommentVNode as U, toDisplayString as j, ref as V, createVNode as l, withCtx as u, onMounted as te, normalizeProps as ae, guardReactiveProps as re, isVNode as ie, normalizeStyle as xe, mergeModels as se, useModel as ue, unref as h, createTextVNode as L, resolveDynamicComponent as W, isRef as ke, withModifiers as $e, watch as Ve, resolveDirective as Se, withDirectives as Te, shallowRef as Le, onBeforeUnmount as Re, onUnmounted as Ue, reactive as J, TransitionGroup as De, mergeProps as Ee } from "vue";
2
+ import { defineStore as Fe, storeToRefs as Ae } from "pinia";
3
+ import { ElMessage as Ie } from "element-plus";
4
+ import { VueDraggable as ze } from "vue-draggable-plus";
5
+ import { Toolbar as He, Editor as Pe } from "@wangeditor/editor-for-vue";
6
+ import { CircleClose as qe } from "@element-plus/icons-vue";
7
+ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), Y = (a) => JSON.parse(JSON.stringify(a)), je = (a) => a.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (a, t) => a[je(t)], Me = (a) => window.$http.request({
7
8
  url: `${window.$reportURL}/tds/report/demo/get`,
8
9
  method: "get",
9
- params: n,
10
+ params: a,
10
11
  isError: !1
11
- }), ue = (n) => window.$http.request({
12
+ }), pe = (a) => window.$http.request({
12
13
  url: `${window.$reportURL}/tds/report/item/get`,
13
14
  method: "get",
14
- params: n,
15
+ params: a,
15
16
  isError: !1
16
- }), Me = (n) => window.$http.request({
17
+ }), Be = (a) => window.$http.request({
17
18
  url: `${window.$reportURL}/tds/report/preview`,
18
19
  method: "get",
19
- params: n,
20
+ params: a,
20
21
  isError: !1
21
- }), je = (n) => window.$http.request({
22
+ }), We = (a) => window.$http.request({
22
23
  url: `${window.$reportURL}/tds/report/add`,
23
24
  method: "post",
24
- data: n
25
- }), Pe = (n) => window.$http.request({
25
+ data: a
26
+ }), Ye = (a) => window.$http.request({
26
27
  url: `${window.$reportURL}/tds/report/put`,
27
28
  method: "put",
28
- data: n
29
- }), Be = (n) => window.$http.request({
29
+ data: a
30
+ }), Oe = (a) => window.$http.request({
30
31
  url: `${window.$reportURL}/tds/report/get`,
31
32
  method: "get",
32
- params: n,
33
+ params: a,
33
34
  isError: !1
34
- }), We = (n) => window.$http.request({
35
+ }), de = (a) => window.$http.request({
35
36
  url: `${window.$reportURL}/tds/report/filter/get`,
36
37
  method: "get",
37
- params: n,
38
+ params: a,
38
39
  isError: !1
39
- }), Ne = (n) => window.$http.request({
40
+ }), Ne = (a) => window.$http.request({
40
41
  url: `${window.$reportURL}/tds/report/delete`,
41
42
  method: "delete",
42
- data: n
43
- }), pe = "rgba(51, 51, 51, 0.15)", M = "rgba(51, 51, 51, 1)", B = 12, de = (n = !1) => {
43
+ data: a
44
+ }), Ke = (a) => window.$http.request({
45
+ url: `${window.$reportURL}/tds/report/item/list`,
46
+ method: "get",
47
+ params: a,
48
+ isError: !1
49
+ }), Ge = (a) => window.$http.request({
50
+ url: `${window.$reportURL}/tds/report/item/delete`,
51
+ method: "delete",
52
+ data: a
53
+ }), Je = (a) => window.$http.request({
54
+ url: `${window.$reportURL}/tds/report/item/add`,
55
+ method: "post",
56
+ data: a
57
+ }), Qe = (a) => window.$http.request({
58
+ url: `${window.$reportURL}/tds/report/item/put`,
59
+ method: "put",
60
+ data: a
61
+ }), ce = "rgba(51, 51, 51, 0.15)", P = "rgba(51, 51, 51, 1)", M = 12, me = (a = !1) => {
44
62
  const t = {
45
63
  // top: '2%',
46
64
  left: "3%",
@@ -48,8 +66,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
48
66
  bottom: "2%",
49
67
  containLabel: !0
50
68
  };
51
- return n && (t.top = "5%"), t;
52
- }, U = [
69
+ return a && (t.top = "5%"), t;
70
+ }, D = [
53
71
  "46, 145, 255",
54
72
  "48, 212, 183",
55
73
  "108, 108, 255",
@@ -70,12 +88,12 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
70
88
  "100, 161, 206",
71
89
  "246, 175, 159",
72
90
  "238, 97, 97"
73
- ], Oe = (n, t, e = "", l = { name: "name", value: "value" }) => {
91
+ ], Xe = (a, t, e = "", n = { name: "name", value: "value" }) => {
74
92
  const r = [], o = [];
75
93
  t.forEach((s) => {
76
- r.push(s[l.name]), o.push(s[l.value]);
77
- }), n.xAxis[0].data = r, n.series[0].data = o, n.series[0].name = e, n.series[1].data = o, n.series[2].data = o;
78
- }, ee = (n = [
94
+ r.push(s[n.name]), o.push(s[n.value]);
95
+ }), a.xAxis[0].data = r, a.series[0].data = o, a.series[0].name = e, a.series[1].data = o, a.series[2].data = o;
96
+ }, K = (a = [
79
97
  {
80
98
  name: "数据1",
81
99
  value: 63
@@ -107,7 +125,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
107
125
  }
108
126
  ]
109
127
  }
110
- }), l = n.map((r) => r[t.value]);
128
+ }), n = a.map((r) => r[t.value]);
111
129
  return {
112
130
  // 提示框组件
113
131
  tooltip: {
@@ -119,7 +137,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
119
137
  // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
120
138
  // show: true,
121
139
  // },
122
- grid: de(),
140
+ grid: me(),
123
141
  title: {
124
142
  show: !0,
125
143
  text: "样例数据",
@@ -139,7 +157,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
139
157
  nameRotate: 0,
140
158
  // 坐标轴名称旋转
141
159
  axisLabel: {
142
- color: M,
160
+ color: P,
143
161
  // X轴类目名称样式
144
162
  rotate: 0
145
163
  // X轴类目名称旋转角度
@@ -148,7 +166,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
148
166
  //X轴轴线设置
149
167
  show: !0,
150
168
  lineStyle: {
151
- color: pe,
169
+ color: ce,
152
170
  width: 1
153
171
  }
154
172
  },
@@ -156,7 +174,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
156
174
  // X轴刻度相关设置
157
175
  splitLine: { show: !1 },
158
176
  // 横向分隔线
159
- data: n.map((r) => r[t.name])
177
+ data: a.map((r) => r[t.name])
160
178
  }
161
179
  ],
162
180
  // y轴设置
@@ -167,8 +185,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
167
185
  // 坐标轴刻度最小值
168
186
  position: "left",
169
187
  nameTextStyle: {
170
- fontSize: B,
171
- color: M,
188
+ fontSize: M,
189
+ color: P,
172
190
  fontWeight: "bold"
173
191
  },
174
192
  axisLine: { show: !1 },
@@ -178,7 +196,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
178
196
  splitLine: { show: !1 },
179
197
  // 纵向分隔线
180
198
  axisLabel: {
181
- color: M,
199
+ color: P,
182
200
  // y轴刻度标签
183
201
  formatter: "{value}",
184
202
  inside: !1
@@ -191,8 +209,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
191
209
  type: "bar",
192
210
  barWidth: 15,
193
211
  barGap: "0%",
194
- itemStyle: e(`rgba(${U[0]}, 0.7)`, `rgba(${U[0]}, 0.2)`),
195
- data: l,
212
+ itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
213
+ data: n,
196
214
  label: {
197
215
  show: !0,
198
216
  // 显示标签
@@ -211,8 +229,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
211
229
  symbolSize: [15, 10],
212
230
  //调整截面形状
213
231
  symbolOffset: [0, 5],
214
- itemStyle: e(`rgba(${U[0]}, 0.7)`, `rgba(${U[0]}, 0.2)`),
215
- data: l
232
+ itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
233
+ data: n
216
234
  },
217
235
  {
218
236
  // 柱顶圆片
@@ -222,20 +240,20 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
222
240
  //调整截面形状
223
241
  symbolOffset: [0, -5],
224
242
  symbolPosition: "end",
225
- itemStyle: e(`rgba(${U[0]}, 0.9)`, `rgba(${U[0]}, 1)`),
226
- data: l
243
+ itemStyle: e(`rgba(${D[0]}, 0.9)`, `rgba(${D[0]}, 1)`),
244
+ data: n
227
245
  }
228
246
  ]
229
247
  };
230
- }, Ye = ({ 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]), {
248
+ }, Ze = ({ chartOption: a, data: t, props: e = { name: "label", value: "data" } }) => {
249
+ let n = 0;
250
+ const r = t.map((o, s) => (n += Number(o[e.value]), {
233
251
  name: o[e.name],
234
252
  value: Number(o[e.value])
235
253
  }));
236
- t.length > 0 && (n.legend.data = r, n.series[0].data = r, n.graphic[1].style.text = l);
237
- }, qe = () => U.map((n) => `rgba(${n}, 1)`), q = ({
238
- data: n = [
254
+ t.length > 0 && (a.legend.data = r, a.series[0].data = r, a.graphic[1].style.text = n);
255
+ }, et = () => D.map((a) => `rgba(${a}, 1)`), O = ({
256
+ data: a = [
239
257
  {
240
258
  name: "数据1",
241
259
  value: 63
@@ -251,21 +269,21 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
251
269
  ],
252
270
  radiusType: t = 1,
253
271
  roseType: e = !1,
254
- isLegend: l = !0,
272
+ isLegend: n = !0,
255
273
  isLine: r = !1,
256
274
  center: o = ["50%", "50%"],
257
275
  isTitle: s = !0
258
276
  }) => {
259
- const _ = {
260
- color: qe(),
277
+ const f = {
278
+ color: et(),
261
279
  toolbox: { show: !1 },
262
280
  tooltip: {
263
281
  trigger: "item",
264
282
  show: !0,
265
- formatter: (i) => {
266
- const { name: f, value: m } = i;
267
- return `<div style="color: ${i.color}; font-size: 14px;">${f}&nbsp;&nbsp;&nbsp;</div>
268
- <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${m}</span></div>`;
283
+ formatter: (p) => {
284
+ const { name: b, value: _ } = p;
285
+ return `<div style="color: ${p.color}; font-size: 14px;">${b}&nbsp;&nbsp;&nbsp;</div>
286
+ <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${_}</span></div>`;
269
287
  }
270
288
  },
271
289
  title: {
@@ -279,18 +297,18 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
279
297
  y: 10
280
298
  },
281
299
  legend: {
282
- show: l,
300
+ show: n,
283
301
  left: "70%",
284
- formatter: (i) => {
285
- var m;
286
- const f = (m = _.series[0]) == null ? void 0 : m.data.find((u) => u.name === i).value;
287
- return ` ${i} | ${f}`;
302
+ formatter: (p) => {
303
+ var _;
304
+ const b = (_ = f.series[0]) == null ? void 0 : _.data.find((d) => d.name === p).value;
305
+ return ` ${p} | ${b}`;
288
306
  },
289
307
  textStyle: {
290
- fontSize: B,
291
- color: M
308
+ fontSize: M,
309
+ color: P
292
310
  },
293
- data: n,
311
+ data: a,
294
312
  orient: "vertical",
295
313
  itemWidth: 10,
296
314
  itemHeight: 10,
@@ -337,8 +355,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
337
355
  borderWidth: 1,
338
356
  borderColor: "inherit",
339
357
  padding: [3, -3, 3, -3],
340
- formatter: function(i) {
341
- return `{a|${i.name}(${i.value})}`;
358
+ formatter: function(p) {
359
+ return `{a|${p.name}(${p.value})}`;
342
360
  },
343
361
  rich: {
344
362
  a: {
@@ -365,7 +383,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
365
383
  width: 1
366
384
  }
367
385
  },
368
- data: n
386
+ data: a
369
387
  }
370
388
  ],
371
389
  graphic: [
@@ -395,32 +413,32 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
395
413
  }
396
414
  ]
397
415
  };
398
- return _;
399
- }, Ge = (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
- }, Je = () => ({
416
+ return f;
417
+ }, tt = (a, t, e = { name: "name", value: "value" }) => {
418
+ a.xAxis.data = t.map((n) => n[e.name]), Array.isArray(e.value) ? e.value.forEach((n, r) => {
419
+ a.series[r].data = t.map((o) => o[n.value]);
420
+ }) : typeof e.value == "string" && (a.series[0].data = t.map((n) => n[e.value]));
421
+ }, ot = () => ({
404
422
  name: "",
405
423
  type: "line",
406
424
  symbol: "circle",
407
425
  smooth: !0,
408
426
  lineStyle: {
409
427
  width: 1,
410
- color: `rgba(${U[0]}, 1)`
428
+ color: `rgba(${D[0]}, 1)`
411
429
  // 线条颜色
412
430
  },
413
431
  showSymbol: !1,
414
432
  itemStyle: {
415
- color: `rgba(${U[0]}, 1)`,
433
+ color: `rgba(${D[0]}, 1)`,
416
434
  //拐点颜色
417
435
  label: {
418
436
  show: !0,
419
437
  //开启显示
420
438
  position: "top",
421
439
  //在上方显示
422
- formatter: function(n) {
423
- return n.value ? n.value : 0;
440
+ formatter: function(a) {
441
+ return a.value ? a.value : 0;
424
442
  }
425
443
  }
426
444
  },
@@ -435,18 +453,18 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
435
453
  // 渐变颜色
436
454
  {
437
455
  offset: 0,
438
- color: `rgba(${U[0]}, 0.7)`
456
+ color: `rgba(${D[0]}, 0.7)`
439
457
  },
440
458
  {
441
459
  offset: 1,
442
- color: `rgba(${U[0]}, 0.1)`
460
+ color: `rgba(${D[0]}, 0.1)`
443
461
  }
444
462
  ],
445
463
  global: !1
446
464
  }
447
465
  },
448
466
  data: []
449
- }), G = (n = [
467
+ }), N = (a = [
450
468
  {
451
469
  name: "2024-08",
452
470
  value: 63
@@ -478,27 +496,27 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
478
496
  show: !0,
479
497
  itemWidth: 30,
480
498
  textStyle: {
481
- color: M,
482
- fontSize: B,
499
+ color: P,
500
+ fontSize: M,
483
501
  padding: [0, 8, 0, 8]
484
502
  }
485
503
  },
486
- grid: de(),
504
+ grid: me(),
487
505
  xAxis: {
488
506
  type: "category",
489
507
  splitLine: { show: !1 },
490
508
  axisTick: { show: !1 },
491
509
  axisLine: {
492
510
  show: !0,
493
- lineStyle: { color: pe }
511
+ lineStyle: { color: ce }
494
512
  },
495
513
  axisLabel: {
496
514
  show: !0,
497
- fontSize: B,
498
- color: M
515
+ fontSize: M,
516
+ color: P
499
517
  },
500
518
  boundaryGap: !1,
501
- data: n.map((o) => o[t.name])
519
+ data: a.map((o) => o[t.name])
502
520
  },
503
521
  yAxis: {
504
522
  name: "",
@@ -507,42 +525,42 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
507
525
  axisLine: { show: !1 },
508
526
  axisTick: { show: !1 },
509
527
  nameTextStyle: {
510
- fontSize: B,
511
- color: M,
528
+ fontSize: M,
529
+ color: P,
512
530
  padding: [0, 60, 0, 0]
513
531
  },
514
532
  axisLabel: {
515
533
  show: !0,
516
- fontSize: B,
517
- color: M
534
+ fontSize: M,
535
+ color: P
518
536
  }
519
537
  },
520
538
  series: []
521
- }, l = Je(), r = [];
539
+ }, n = ot(), r = [];
522
540
  if (Array.isArray(t.value))
523
541
  t.value.forEach((o, s) => {
524
- const _ = O(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(_);
542
+ const f = Y(n);
543
+ f.name = o.name, f.lineStyle.color = `rgba(${D[s]}, 1)`, f.itemStyle.color = `rgba(${D[s]}, 1)`, f.areaStyle.color.colorStops[0].color = `rgba(${D[s]}, 0.7)`, f.areaStyle.color.colorStops[1].color = `rgba(${D[s]}, 0.1)`, f.data = a.map((p) => p[o.value]), r.push(f);
526
544
  });
527
545
  else if (typeof t.value == "string") {
528
- const o = O(l);
529
- o.data = n.map((s) => s[t.value]), r.push(o);
546
+ const o = Y(n);
547
+ o.data = a.map((s) => s[t.value]), r.push(o);
530
548
  }
531
549
  return e.series = r, e;
532
- }, te = [
550
+ }, oe = [
533
551
  { key: "assets", name: "资产名称" },
534
552
  { key: "type", name: "资产类型" },
535
553
  { key: "data", name: "资产数据" }
536
- ], oe = [
554
+ ], le = [
537
555
  { assets: "name1", type: "type1", data: "data1" },
538
556
  { assets: "name2", type: "type2", data: "data2" },
539
557
  { assets: "name3", type: "type3", data: "data3" }
540
- ], J = [
558
+ ], Q = [
541
559
  { data: [{ name: "默认数据", value: 180 }], label: "name1" },
542
560
  { data: [{ name: "默认数据", value: 311 }], label: "name2" },
543
561
  { data: [{ name: "默认数据", value: 42 }], label: "name3" },
544
562
  { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
545
- ], Ke = [
563
+ ], lt = [
546
564
  {
547
565
  data: 63,
548
566
  label: "数据1"
@@ -555,7 +573,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
555
573
  data: 43,
556
574
  label: "数据3"
557
575
  }
558
- ], Qe = [
576
+ ], nt = [
559
577
  {
560
578
  type: "report-select",
561
579
  label: "资产:",
@@ -579,7 +597,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
579
597
  }
580
598
  ],
581
599
  uri: "/da/report/sens/get_asset_all",
582
- id: j()
600
+ id: q()
583
601
  },
584
602
  {
585
603
  type: "range-time",
@@ -589,7 +607,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
589
607
  end_time: "2024-09-12 19:49:34"
590
608
  }
591
609
  ],
592
- id: j()
610
+ id: q()
593
611
  },
594
612
  {
595
613
  type: "h1",
@@ -602,7 +620,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
602
620
  textIndent: 0,
603
621
  textAlign: "left"
604
622
  },
605
- id: j()
623
+ id: q()
606
624
  },
607
625
  {
608
626
  type: "h2",
@@ -616,12 +634,12 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
616
634
  textIndent: 0,
617
635
  textAlign: "left"
618
636
  },
619
- id: j()
637
+ id: q()
620
638
  },
621
639
  {
622
640
  type: "report-table",
623
- data: oe,
624
- showColumn: te,
641
+ data: le,
642
+ showColumn: oe,
625
643
  name: "表格",
626
644
  options: {
627
645
  showColumn: {
@@ -634,9 +652,9 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
634
652
  stripe: !1
635
653
  },
636
654
  rp_item_uuid: "",
637
- id: j()
655
+ id: q()
638
656
  }
639
- ], Xe = [
657
+ ], at = [
640
658
  {
641
659
  type: "h1",
642
660
  data: "报表名称",
@@ -683,8 +701,8 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
683
701
  { type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
684
702
  {
685
703
  type: "report-table",
686
- data: oe,
687
- showColumn: te,
704
+ data: le,
705
+ showColumn: oe,
688
706
  name: "表格",
689
707
  options: {
690
708
  border: !0,
@@ -701,45 +719,45 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
701
719
  },
702
720
  {
703
721
  type: "bar",
704
- data: J,
722
+ data: Q,
705
723
  showColumn: [{ key: "label", value: "data" }],
706
724
  name: "图表",
707
- options: ee(),
725
+ options: K(),
708
726
  rp_item_uuid: "",
709
727
  id: ""
710
728
  }
711
- ], Ze = (n) => ({
729
+ ], rt = (a) => ({
712
730
  bar: {
713
731
  type: "bar",
714
- data: J,
732
+ data: Q,
715
733
  showColumn: [{ key: "label", value: "data" }],
716
734
  name: "图表",
717
- options: ee(),
735
+ options: K(),
718
736
  rp_item_uuid: "",
719
737
  id: ""
720
738
  },
721
739
  line: {
722
740
  type: "line",
723
- data: J,
741
+ data: Q,
724
742
  showColumn: [{ key: "label", value: "data" }],
725
743
  name: "图表",
726
- options: G(),
744
+ options: N(),
727
745
  rp_item_uuid: "",
728
746
  id: ""
729
747
  },
730
748
  pie: {
731
749
  type: "pie",
732
- data: Ke,
750
+ data: lt,
733
751
  showColumn: [{ key: "label", value: "data" }],
734
752
  name: "图表",
735
- options: q({ isLegend: !0 }),
753
+ options: O({ isLegend: !0 }),
736
754
  rp_item_uuid: "",
737
755
  id: ""
738
756
  },
739
757
  "report-table": {
740
758
  type: "report-table",
741
- data: oe,
742
- showColumn: te,
759
+ data: le,
760
+ showColumn: oe,
743
761
  name: "表格",
744
762
  options: {
745
763
  showColumn: {
@@ -754,7 +772,7 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
754
772
  rp_item_uuid: "",
755
773
  id: ""
756
774
  }
757
- })[n], z = Ue("tds-report", {
775
+ })[a], z = Fe("tds-report", {
758
776
  state: () => ({
759
777
  componentList: [],
760
778
  activeComponents: {},
@@ -766,23 +784,23 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
766
784
  }
767
785
  }),
768
786
  getters: {
769
- getActiveComponents: (n) => n.activeComponents
787
+ getActiveComponents: (a) => a.activeComponents
770
788
  },
771
789
  actions: {
772
790
  // setComponentList
773
- setComponentList(n) {
774
- this.componentList = n;
791
+ setComponentList(a) {
792
+ this.componentList = a;
775
793
  },
776
- async getReportDemo(n) {
794
+ async getReportDemo(a) {
777
795
  let t = [];
778
- n ? t = (await He({ report_uuid: n })).data : t = { content: O(Qe), range_time: 1 };
796
+ a ? t = (await Me({ report_uuid: a })).data : t = { content: Y(nt), range_time: 1 };
779
797
  const e = [];
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 = j();
798
+ t.content.forEach((n) => {
799
+ (n.type === "report-select" || n.type === "range-time") && e.push(n), n.type === "h1" && (this.titleComponent = n), n.id = q();
782
800
  }), 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
801
  },
784
- setActiveComponents(n) {
785
- this.activeComponents = n;
802
+ setActiveComponents(a) {
803
+ this.activeComponents = a;
786
804
  },
787
805
  clearComponents() {
788
806
  this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
@@ -791,136 +809,136 @@ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
791
809
  };
792
810
  }
793
811
  }
794
- }), et = { class: "catalogue" }, tt = ["href", "title"], ot = /* @__PURE__ */ $({
812
+ }), it = { class: "catalogue" }, st = ["href", "title"], ut = /* @__PURE__ */ T({
795
813
  __name: "Catalogue",
796
814
  props: {
797
815
  data: { default: () => [] }
798
816
  },
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", et, [
804
- r[0] || (r[0] = C("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
805
- (c(!0), y(A, null, I(e.value, (s) => (c(), y("div", {
806
- class: W("level" + s.type),
817
+ setup(a) {
818
+ const t = a, e = A(() => t.data.filter((n) => ["h2", "h3", "h4"].includes(n.type)));
819
+ return (n, r) => {
820
+ const o = i("el-divider");
821
+ return m(), w("div", it, [
822
+ r[0] || (r[0] = k("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
823
+ (m(!0), w(F, null, I(e.value, (s) => (m(), w("div", {
824
+ class: B("level" + s.type),
807
825
  key: s.value
808
826
  }, [
809
- s.type === "h2" ? (c(), S(o, {
827
+ s.type === "h2" ? (m(), S(o, {
810
828
  key: 0,
811
829
  style: { "margin-top": "10px", "margin-bottom": "10px" }
812
- })) : R("", !0),
813
- C("a", {
830
+ })) : U("", !0),
831
+ k("a", {
814
832
  class: "el-anchor__link",
815
833
  href: "#" + s.id,
816
834
  title: s.data
817
- }, P(s.data), 9, tt)
835
+ }, j(s.data), 9, st)
818
836
  ], 2))), 128))
819
837
  ]);
820
838
  };
821
839
  }
822
840
  });
823
- const Y = (n, t) => {
824
- const e = n.__vccOpts || n;
825
- for (const [l, r] of t)
826
- e[l] = r;
841
+ const G = (a, t) => {
842
+ const e = a.__vccOpts || a;
843
+ for (const [n, r] of t)
844
+ e[n] = r;
827
845
  return e;
828
- }, lt = /* @__PURE__ */ Y(ot, [["__scopeId", "data-v-1cd8aa2d"]]), nt = {
846
+ }, pt = /* @__PURE__ */ G(ut, [["__scopeId", "data-v-1cd8aa2d"]]), dt = {
829
847
  class: "chart-components"
830
- }, ce = /* @__PURE__ */ $({
848
+ }, _e = /* @__PURE__ */ T({
831
849
  __name: "Bar",
832
850
  props: {
833
851
  value: {}
834
852
  },
835
- setup(n) {
836
- const t = n, e = F(() => t.value.options);
837
- return k(!1), (l, r) => {
838
- const o = d("TdsChart");
839
- return c(), y("div", nt, [a(o, {
853
+ setup(a) {
854
+ const t = a, e = A(() => t.value.options);
855
+ return V(!1), (n, r) => {
856
+ const o = i("TdsChart");
857
+ return m(), w("div", dt, [l(o, {
840
858
  option: e.value
841
859
  }, null, 8, ["option"])]);
842
860
  };
843
861
  }
844
- }), at = { class: "chart-components" }, me = /* @__PURE__ */ $({
862
+ }), ct = { class: "chart-components" }, fe = /* @__PURE__ */ T({
845
863
  __name: "Line",
846
864
  props: {
847
865
  value: {}
848
866
  },
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", at, [
854
- a(o, { option: e.value }, null, 8, ["option"])
867
+ setup(a) {
868
+ const t = a, e = A(() => t.value.options);
869
+ return (n, r) => {
870
+ const o = i("TdsChart");
871
+ return m(), w("div", ct, [
872
+ l(o, { option: e.value }, null, 8, ["option"])
855
873
  ]);
856
874
  };
857
875
  }
858
- }), rt = { class: "chart-components" }, _e = /* @__PURE__ */ $({
876
+ }), mt = { class: "chart-components" }, ve = /* @__PURE__ */ T({
859
877
  __name: "Pie",
860
878
  props: {
861
879
  value: {}
862
880
  },
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", rt, [
868
- a(o, { option: e.value }, null, 8, ["option"])
881
+ setup(a) {
882
+ const t = a, e = A(() => t.value.options);
883
+ return (n, r) => {
884
+ const o = i("TdsChart");
885
+ return m(), w("div", mt, [
886
+ l(o, { option: e.value }, null, 8, ["option"])
869
887
  ]);
870
888
  };
871
889
  }
872
- }), st = { key: 0 }, K = /* @__PURE__ */ $({
890
+ }), _t = { key: 0 }, X = /* @__PURE__ */ T({
873
891
  __name: "ReportSelect",
874
892
  props: {
875
893
  value: {}
876
894
  },
877
895
  emits: ["change"],
878
- setup(n, { emit: t }) {
879
- const e = t, l = (s) => {
896
+ setup(a, { emit: t }) {
897
+ const e = t, n = (s) => {
880
898
  e("change", s);
881
- }, o = k(n.value);
882
- return (s, _) => {
883
- const i = d("el-option"), f = d("el-select");
884
- return o.value.data ? (c(), y("div", st, [
885
- a(f, {
899
+ }, o = V(a.value);
900
+ return (s, f) => {
901
+ const p = i("el-option"), b = i("el-select");
902
+ return o.value.data ? (m(), w("div", _t, [
903
+ l(b, {
886
904
  modelValue: o.value.value,
887
- "onUpdate:modelValue": _[0] || (_[0] = (m) => o.value.value = m),
905
+ "onUpdate:modelValue": f[0] || (f[0] = (_) => o.value.value = _),
888
906
  multiple: "",
889
907
  style: { width: "100%" },
890
- onChange: l,
908
+ onChange: n,
891
909
  placeholder: "全部"
892
910
  }, {
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
911
+ default: u(() => [
912
+ (m(!0), w(F, null, I(o.value.data, (_) => (m(), S(p, {
913
+ key: _.data,
914
+ label: _.label,
915
+ value: _.data
898
916
  }, null, 8, ["label", "value"]))), 128))
899
917
  ]),
900
918
  _: 1
901
919
  }, 8, ["modelValue"])
902
- ])) : R("", !0);
920
+ ])) : U("", !0);
903
921
  };
904
922
  }
905
- }), Q = /* @__PURE__ */ $({
923
+ }), Z = /* @__PURE__ */ T({
906
924
  __name: "RangeTime",
907
925
  props: {
908
926
  value: {}
909
927
  },
910
928
  emits: ["change"],
911
- setup(n, { emit: t }) {
912
- const e = t, r = k(n.value), o = k([]);
913
- function s(_) {
914
- _ ? (r.value.data[0].start_time = _[0], r.value.data[0].end_time = _[1]) : o.value = [], e("change", o.value);
929
+ setup(a, { emit: t }) {
930
+ const e = t, r = V(a.value), o = V([]);
931
+ function s(f) {
932
+ f ? (r.value.data[0].start_time = f[0], r.value.data[0].end_time = f[1]) : o.value = [], e("change", o.value);
915
933
  }
916
- return Z(() => {
934
+ return te(() => {
917
935
  o.value = [r.value.data[0].start_time, r.value.data[0].end_time];
918
- }), (_, i) => {
919
- const f = d("el-date-picker");
920
- return c(), y("div", null, [
921
- a(f, {
936
+ }), (f, p) => {
937
+ const b = i("el-date-picker");
938
+ return m(), w("div", null, [
939
+ l(b, {
922
940
  modelValue: o.value,
923
- "onUpdate:modelValue": i[0] || (i[0] = (m) => o.value = m),
941
+ "onUpdate:modelValue": p[0] || (p[0] = (_) => o.value = _),
924
942
  type: "datetimerange",
925
943
  placeholder: "Pick a Date",
926
944
  format: "YYYY-MM-DD HH:mm:ss",
@@ -932,61 +950,61 @@ const Y = (n, t) => {
932
950
  };
933
951
  }
934
952
  });
935
- function it(n) {
936
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !re(n);
953
+ function ft(a) {
954
+ return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !ie(a);
937
955
  }
938
- const fe = /* @__PURE__ */ $({
956
+ const be = /* @__PURE__ */ T({
939
957
  __name: "ReportTable",
940
958
  props: {
941
959
  value: {}
942
960
  },
943
- setup(n) {
944
- const t = n, e = (l) => {
961
+ setup(a) {
962
+ const t = a, e = (n) => {
945
963
  let r;
946
- return a(d("el-table"), {
947
- data: l.data,
964
+ return l(i("el-table"), {
965
+ data: n.data,
948
966
  border: t.value.options.border,
949
967
  "show-header": !!t.value.options.showHeader,
950
968
  stripe: t.value.options.stripe
951
- }, it(r = l.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? a(d("el-table-column"), {
969
+ }, ft(r = n.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? l(i("el-table-column"), {
952
970
  prop: o.key,
953
971
  label: o.name
954
972
  }, null) : null)) ? r : {
955
973
  default: () => [r]
956
974
  });
957
975
  };
958
- return (l, r) => (c(), y("div", null, [a(e, ne(ae(l.value)), null, 16)]));
976
+ return (n, r) => (m(), w("div", null, [l(e, ae(re(n.value)), null, 16)]));
959
977
  }
960
- }), X = /* @__PURE__ */ $({
978
+ }), ee = /* @__PURE__ */ T({
961
979
  __name: "ReportText",
962
980
  props: {
963
981
  value: {}
964
982
  },
965
- setup(n) {
966
- const t = n, e = () => {
967
- const l = t.value.options || {};
983
+ setup(a) {
984
+ const t = a, e = () => {
985
+ const n = t.value.options || {};
968
986
  return {
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
987
+ color: n.color,
988
+ "font-size": n.size + "px",
989
+ "font-weight": n.fontWeight,
990
+ "letter-spacing": n.letterSpacing + "px",
991
+ "text-indent": n.textIndent + "px",
992
+ "text-align": n.textAlign
975
993
  };
976
994
  };
977
- return (l, r) => (c(), y("div", {
978
- style: he(e())
979
- }, P(l.value.data), 5));
995
+ return (n, r) => (m(), w("div", {
996
+ style: xe(e())
997
+ }, j(n.value.data), 5));
980
998
  }
981
- }), ut = { class: "chart-components" }, ve = /* @__PURE__ */ $({
999
+ }), vt = { class: "chart-components" }, ge = /* @__PURE__ */ T({
982
1000
  __name: "ReportChart",
983
1001
  props: {
984
1002
  value: {}
985
1003
  },
986
- setup(n) {
987
- const t = n, e = F(() => t.value), l = F(() => {
1004
+ setup(a) {
1005
+ const t = a, e = A(() => t.value), n = A(() => {
988
1006
  if (e.value.type === "bar") {
989
- e.value.options.series = ee([]).series;
1007
+ e.value.options.series = K([]).series;
990
1008
  const r = [];
991
1009
  let o = "";
992
1010
  e.value.data.forEach((s) => {
@@ -994,53 +1012,53 @@ const fe = /* @__PURE__ */ $({
994
1012
  name: s.label,
995
1013
  value: s.data[0].value
996
1014
  });
997
- }), Oe(e.value.options, r, o);
1015
+ }), Xe(e.value.options, r, o);
998
1016
  }
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") {
1017
+ if (e.value.type === "pie" && (e.value.options = O({ isLegend: !0 }), console.log(O({ isLegend: !0 }), "chartsPie({ isLegend: true })"), Ze({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1000
1018
  let r = [];
1001
- e.value.data.forEach((_) => {
1002
- r = _.data.map((i, f) => ({ name: i.name, value: "value" + f }));
1019
+ e.value.data.forEach((f) => {
1020
+ r = f.data.map((p, b) => ({ name: p.name, value: "value" + b }));
1003
1021
  });
1004
1022
  const o = {
1005
1023
  name: "name",
1006
1024
  value: r
1007
- }, s = e.value.data.map((_) => {
1008
- const i = {
1009
- name: _.label
1025
+ }, s = e.value.data.map((f) => {
1026
+ const p = {
1027
+ name: f.label
1010
1028
  };
1011
- return r.forEach((f, m) => {
1012
- i[f.value] = _.data[m].value;
1013
- }), i;
1029
+ return r.forEach((b, _) => {
1030
+ p[b.value] = f.data[_].value;
1031
+ }), p;
1014
1032
  });
1015
- console.log(G([], o), "chartsLine([], params)"), e.value.options.series = G([], o).series, Ge(e.value.options, s, o);
1033
+ console.log(N([], o), "chartsLine([], params)"), e.value.options.series = N([], o).series, tt(e.value.options, s, o);
1016
1034
  }
1017
1035
  return e.value.options;
1018
1036
  });
1019
1037
  return (r, o) => {
1020
- const s = d("TdsChart");
1021
- return c(), y("div", ut, [
1022
- a(s, { option: l.value }, null, 8, ["option"])
1038
+ const s = i("TdsChart");
1039
+ return m(), w("div", vt, [
1040
+ l(s, { option: n.value }, null, 8, ["option"])
1023
1041
  ]);
1024
1042
  };
1025
1043
  }
1026
1044
  });
1027
- function pt(n) {
1028
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !re(n);
1045
+ function bt(a) {
1046
+ return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !ie(a);
1029
1047
  }
1030
- const be = /* @__PURE__ */ $({
1048
+ const ye = /* @__PURE__ */ T({
1031
1049
  __name: "ReportDescribe",
1032
1050
  props: {
1033
1051
  value: {}
1034
1052
  },
1035
- setup(n) {
1036
- const t = n, e = (l) => {
1053
+ setup(a) {
1054
+ const t = a, e = (n) => {
1037
1055
  let r;
1038
- return a(d("el-descriptions"), {
1056
+ return l(i("el-descriptions"), {
1039
1057
  title: t.value.options.title,
1040
1058
  border: t.value.options.border,
1041
1059
  column: t.value.options.column,
1042
1060
  direction: t.value.options.direction
1043
- }, pt(r = l.showColumn.map((o) => a(d("el-descriptions-item"), {
1061
+ }, bt(r = n.showColumn.map((o) => l(i("el-descriptions-item"), {
1044
1062
  label: o.name
1045
1063
  }, {
1046
1064
  default: () => [t.value.data[o.key]]
@@ -1048,19 +1066,19 @@ const be = /* @__PURE__ */ $({
1048
1066
  default: () => [r]
1049
1067
  });
1050
1068
  };
1051
- return (l, r) => (c(), y("div", null, [a(e, ne(ae(l.value)), null, 16)]));
1069
+ return (n, r) => (m(), w("div", null, [l(e, ae(re(n.value)), null, 16)]));
1052
1070
  }
1053
- }), dt = {
1071
+ }), gt = {
1054
1072
  class: "editor-box"
1055
- }, ct = {
1073
+ }, yt = {
1056
1074
  class: "editor",
1057
1075
  id: "editor",
1058
1076
  style: {
1059
1077
  width: "100%"
1060
1078
  }
1061
- }, mt = {
1079
+ }, ht = {
1062
1080
  class: "editor-content flex flex-start"
1063
- }, _t = ["id"], ft = ["innerHTML"], vt = /* @__PURE__ */ $({
1081
+ }, wt = ["id"], Ct = ["innerHTML"], xt = /* @__PURE__ */ T({
1064
1082
  __name: "index",
1065
1083
  props: /* @__PURE__ */ se({
1066
1084
  reportId: {
@@ -1072,225 +1090,225 @@ const be = /* @__PURE__ */ $({
1072
1090
  modelModifiers: {}
1073
1091
  }),
1074
1092
  emits: ["update:modelValue"],
1075
- setup(n) {
1093
+ setup(a) {
1076
1094
  const t = {
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
- function m() {
1095
+ Bar: _e,
1096
+ Line: fe,
1097
+ Pie: ve,
1098
+ ReportSelect: X,
1099
+ RangeTime: Z,
1100
+ ReportTable: be,
1101
+ ReportText: ee,
1102
+ ReportChart: ge,
1103
+ ReportDescribe: ye
1104
+ }, e = z(), n = a, r = ue(a, "modelValue"), o = V([]), s = V([]), f = V([]), p = V(""), b = V("");
1105
+ function _() {
1088
1106
  r.value = "table";
1089
1107
  }
1090
- const u = (v) => {
1091
- _.value = v, b();
1092
- }, h = (v) => {
1093
- v && v.length > 0 && (i.value = v[0], f.value = v[1]), b();
1094
- }, b = async () => {
1108
+ const d = (v) => {
1109
+ f.value = v, c();
1110
+ }, g = (v) => {
1111
+ v && v.length > 0 && (p.value = v[0], b.value = v[1]), c();
1112
+ }, c = async () => {
1095
1113
  const v = {
1096
- report_uuid: l.reportId,
1097
- start_time: i.value,
1098
- end_time: f.value,
1099
- select_data: _.value.join(",")
1100
- }, x = await Me(v), E = [];
1101
- x.data.forEach((w) => {
1102
- (w.type === "report-select" || w.type === "range-time") && E.push(w);
1114
+ report_uuid: n.reportId,
1115
+ start_time: p.value,
1116
+ end_time: b.value,
1117
+ select_data: f.value.join(",")
1118
+ }, x = await Be(v), E = [];
1119
+ x.data.forEach(($) => {
1120
+ ($.type === "report-select" || $.type === "range-time") && E.push($);
1103
1121
  }), o.value = E, x.data.splice(0, o.value.length), s.value = x.data;
1104
1122
  };
1105
- b();
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);
1123
+ c();
1124
+ const y = () => l("div", null, [L("未找到对应组件")]), C = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : l(y, null, null);
1107
1125
  return (v, x) => {
1108
- const E = d("el-button"), w = d("el-card");
1109
- return c(), S(w, {
1126
+ const E = i("el-button"), $ = i("el-card");
1127
+ return m(), S($, {
1110
1128
  class: "editor view"
1111
1129
  }, {
1112
- default: p(() => [C("div", dt, [a(lt, {
1130
+ default: u(() => [k("div", gt, [l(pt, {
1113
1131
  data: s.value
1114
- }, null, 8, ["data"]), C("div", ct, [C("div", mt, [(c(!0), y(A, null, I(o.value, (T) => (c(), y("div", {
1132
+ }, null, 8, ["data"]), k("div", yt, [k("div", ht, [(m(!0), w(F, null, I(o.value, (R) => (m(), w("div", {
1115
1133
  class: "item-input",
1116
- key: T.id
1117
- }, [T.type === "report-select" ? (c(), S(K, {
1134
+ key: R.id
1135
+ }, [R.type === "report-select" ? (m(), S(X, {
1118
1136
  key: 0,
1119
- onChange: u,
1120
- value: T
1121
- }, null, 8, ["value"])) : R("", !0), T.type === "range-time" && g(e).filterForm.range_time ? (c(), S(Q, {
1137
+ onChange: d,
1138
+ value: R
1139
+ }, null, 8, ["value"])) : U("", !0), R.type === "range-time" && h(e).filterForm.range_time ? (m(), S(Z, {
1122
1140
  key: 1,
1123
- onChange: h,
1124
- value: T
1125
- }, null, 8, ["value"])) : R("", !0)]))), 128)), a(E, {
1141
+ onChange: g,
1142
+ value: R
1143
+ }, null, 8, ["value"])) : U("", !0)]))), 128)), l(E, {
1126
1144
  plain: "",
1127
- onClick: m,
1145
+ onClick: _,
1128
1146
  type: "primary",
1129
1147
  class: "custom-btn",
1130
1148
  style: {
1131
1149
  "margin-left": "auto"
1132
1150
  }
1133
1151
  }, {
1134
- default: p(() => x[0] || (x[0] = [D("退出预览")])),
1152
+ default: u(() => x[0] || (x[0] = [L("退出预览")])),
1135
1153
  _: 1
1136
- })]), (c(!0), y(A, null, I(s.value, (T) => (c(), y("div", {
1137
- key: T.id,
1138
- class: W(["editor-content", ["editor" + T.type]]),
1139
- id: T.id
1140
- }, [T.type !== "p" ? (c(), S(N(V(T.type)), {
1154
+ })]), (m(!0), w(F, null, I(s.value, (R) => (m(), w("div", {
1155
+ key: R.id,
1156
+ class: B(["editor-content", ["editor" + R.type]]),
1157
+ id: R.id
1158
+ }, [R.type !== "p" ? (m(), S(W(C(R.type)), {
1141
1159
  key: 0,
1142
- class: W(["editor" + T.type]),
1143
- value: T
1160
+ class: B(["editor" + R.type]),
1161
+ value: R
1144
1162
  }, {
1145
- default: p(() => [D(P(T.data), 1)]),
1163
+ default: u(() => [L(j(R.data), 1)]),
1146
1164
  _: 2
1147
- }, 1032, ["class", "value"])) : (c(), y("p", {
1165
+ }, 1032, ["class", "value"])) : (m(), w("p", {
1148
1166
  key: 1,
1149
- innerHTML: T.data
1150
- }, null, 8, ft))], 10, _t))), 128))])])]),
1167
+ innerHTML: R.data
1168
+ }, null, 8, Ct))], 10, wt))), 128))])])]),
1151
1169
  _: 1
1152
1170
  });
1153
1171
  };
1154
1172
  }
1155
1173
  });
1156
- const bt = /* @__PURE__ */ Y(vt, [["__scopeId", "data-v-2d59469a"]]), gt = {
1174
+ const kt = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-2d59469a"]]), $t = {
1157
1175
  class: "editor"
1158
- }, yt = {
1176
+ }, Vt = {
1159
1177
  class: "editor-content edit"
1160
- }, ht = ["onClick"], Ct = ["onClick"], wt = ["innerHTML", "draggable"], xt = /* @__PURE__ */ $({
1178
+ }, St = ["onClick"], Tt = ["onClick"], Lt = ["innerHTML", "draggable"], Rt = /* @__PURE__ */ T({
1161
1179
  __name: "Editor",
1162
- setup(n) {
1180
+ setup(a) {
1163
1181
  const t = {
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
1182
+ Bar: _e,
1183
+ Line: fe,
1184
+ Pie: ve,
1185
+ ReportSelect: X,
1186
+ RangeTime: Z,
1187
+ ReportTable: be,
1188
+ ReportText: ee,
1189
+ ReportChart: ge,
1190
+ ReportDescribe: ye
1173
1191
  }, {
1174
1192
  componentList: e,
1175
- activeComponents: l,
1193
+ activeComponents: n,
1176
1194
  notDraggableList: r,
1177
1195
  titleComponent: o
1178
- } = De(z()), s = z(), _ = (v) => {
1196
+ } = Ae(z()), s = z(), f = (v) => {
1179
1197
  e.value.forEach((x, E) => {
1180
1198
  x.id === v && (e.value.splice(E, 1), s.activeComponents = []);
1181
1199
  });
1182
- }, i = (v) => {
1200
+ }, p = (v) => {
1183
1201
  s.setActiveComponents(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) => {
1202
+ }, b = () => l("div", null, [L("未找到对应组件")]), _ = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : l(b, null, null), d = (v) => {
1185
1203
  console.log(v, "evt");
1186
- }, h = k(!1), b = () => {
1187
- h.value = !0;
1188
- }, L = (v) => {
1189
- v.newIndex !== 0 && (console.log(v), h.value = !1);
1190
- }, V = k();
1204
+ }, g = V(!1), c = () => {
1205
+ g.value = !0;
1206
+ }, y = (v) => {
1207
+ v.newIndex !== 0 && (console.log(v), g.value = !1);
1208
+ }, C = V();
1191
1209
  return (v, x) => {
1192
- const E = d("icon-material-symbols:cancel-outline");
1193
- return c(), y("div", gt, [C("div", {
1194
- class: W(["editor-content edit flex flex-start", [{
1195
- active: g(l).id === "filter"
1210
+ const E = i("icon-material-symbols:cancel-outline");
1211
+ return m(), w("div", $t, [k("div", {
1212
+ class: B(["editor-content edit flex flex-start", [{
1213
+ active: h(n).id === "filter"
1196
1214
  }]]),
1197
- onClick: x[0] || (x[0] = (w) => i({
1215
+ onClick: x[0] || (x[0] = ($) => p({
1198
1216
  id: "filter",
1199
1217
  type: "filter"
1200
1218
  }))
1201
- }, [(c(!0), y(A, null, I(g(r), (w) => (c(), y("div", {
1219
+ }, [(m(!0), w(F, null, I(h(r), ($) => (m(), w("div", {
1202
1220
  class: "item-input",
1203
- key: w.id
1204
- }, [w.type === "report-select" || w.type === "range-time" && g(s).filterForm.range_time ? (c(), S(N(g(H)(t, w.type)), {
1221
+ key: $.id
1222
+ }, [$.type === "report-select" || $.type === "range-time" && h(s).filterForm.range_time ? (m(), S(W(h(H)(t, $.type)), {
1205
1223
  key: 0,
1206
- value: w
1224
+ value: $
1207
1225
  }, {
1208
- default: p(() => [D(P(w.data), 1)]),
1226
+ default: u(() => [L(j($.data), 1)]),
1209
1227
  _: 2
1210
- }, 1032, ["value"])) : R("", !0)]))), 128))], 2), C("div", yt, [a(X, {
1211
- value: g(o),
1212
- onClick: x[1] || (x[1] = (w) => i(g(o)))
1213
- }, null, 8, ["value"])]), a(g(Ee), {
1228
+ }, 1032, ["value"])) : U("", !0)]))), 128))], 2), k("div", Vt, [l(ee, {
1229
+ value: h(o),
1230
+ onClick: x[1] || (x[1] = ($) => p(h(o)))
1231
+ }, null, 8, ["value"])]), l(h(ze), {
1214
1232
  ref_key: "el",
1215
- ref: V,
1216
- modelValue: g(e),
1217
- "onUpdate:modelValue": x[2] || (x[2] = (w) => Ce(e) ? e.value = w : null),
1218
- "on-change": u,
1233
+ ref: C,
1234
+ modelValue: h(e),
1235
+ "onUpdate:modelValue": x[2] || (x[2] = ($) => ke(e) ? e.value = $ : null),
1236
+ "on-change": d,
1219
1237
  animation: 150,
1220
- onStart: b,
1221
- onEnd: L
1238
+ onStart: c,
1239
+ onEnd: y
1222
1240
  }, {
1223
- default: p(() => [(c(!0), y(A, null, I(g(e), (w) => (c(), y("div", {
1224
- key: w.id,
1225
- class: W(["editor-content edit", ["editor" + w.type, {
1226
- active: w.id === g(l).id
1241
+ default: u(() => [(m(!0), w(F, null, I(h(e), ($) => (m(), w("div", {
1242
+ key: $.id,
1243
+ class: B(["editor-content edit", ["editor" + $.type, {
1244
+ active: $.id === h(n).id
1227
1245
  }]]),
1228
- onClick: (T) => i(w)
1229
- }, [C("i", {
1230
- onClick: we((T) => _(w.id), ["stop"])
1231
- }, [a(E, {
1246
+ onClick: (R) => p($)
1247
+ }, [k("i", {
1248
+ onClick: $e((R) => f($.id), ["stop"])
1249
+ }, [l(E, {
1232
1250
  class: "color-red"
1233
- })], 8, Ct), w.type !== "p" ? (c(), S(N(m(w.type)), {
1251
+ })], 8, Tt), $.type !== "p" ? (m(), S(W(_($.type)), {
1234
1252
  key: 0,
1235
- class: W(["editor" + w.type]),
1236
- value: w,
1237
- draggable: h.value
1253
+ class: B(["editor" + $.type]),
1254
+ value: $,
1255
+ draggable: g.value
1238
1256
  }, {
1239
- default: p(() => [D(P(w.data), 1)]),
1257
+ default: u(() => [L(j($.data), 1)]),
1240
1258
  _: 2
1241
- }, 1032, ["class", "value", "draggable"])) : (c(), y("p", {
1259
+ }, 1032, ["class", "value", "draggable"])) : (m(), w("p", {
1242
1260
  key: 1,
1243
- innerHTML: w.data,
1244
- draggable: h.value
1245
- }, null, 8, wt))], 10, ht))), 128))]),
1261
+ innerHTML: $.data,
1262
+ draggable: g.value
1263
+ }, null, 8, Lt))], 10, St))), 128))]),
1246
1264
  _: 1
1247
1265
  }, 8, ["modelValue"])]);
1248
1266
  };
1249
1267
  }
1250
- }), Vt = { class: "label" }, St = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, kt = { class: "flex item-switch" }, ge = /* @__PURE__ */ $({
1268
+ }), Ut = { class: "label" }, Dt = { class: "flex item-switch" }, Et = { class: "flex item-switch" }, Ft = { class: "flex item-switch" }, he = /* @__PURE__ */ T({
1251
1269
  __name: "SettingTable",
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, [
1257
- a(s, { label: "控制列" }, {
1258
- default: p(() => [
1259
- (c(!0), y(A, null, I(e.value.showColumn, (i, f) => (c(), y("p", {
1270
+ setup(a) {
1271
+ const t = z(), e = A(() => t.getActiveComponents);
1272
+ return (n, r) => {
1273
+ const o = i("el-switch"), s = i("el-form-item"), f = i("el-divider");
1274
+ return m(), w("div", null, [
1275
+ l(s, { label: "控制列" }, {
1276
+ default: u(() => [
1277
+ (m(!0), w(F, null, I(e.value.showColumn, (p, b) => (m(), w("p", {
1260
1278
  class: "flex item-switch",
1261
- key: f
1279
+ key: b
1262
1280
  }, [
1263
- C("span", Vt, P(i.name), 1),
1264
- a(o, {
1265
- modelValue: e.value.options.showColumn[i.key],
1266
- "onUpdate:modelValue": (m) => e.value.options.showColumn[i.key] = m
1281
+ k("span", Ut, j(p.name), 1),
1282
+ l(o, {
1283
+ modelValue: e.value.options.showColumn[p.key],
1284
+ "onUpdate:modelValue": (_) => e.value.options.showColumn[p.key] = _
1267
1285
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1268
1286
  ]))), 128))
1269
1287
  ]),
1270
1288
  _: 1
1271
1289
  }),
1272
- a(_),
1273
- a(s, { label: "表格样式" }, {
1274
- default: p(() => [
1275
- C("p", St, [
1276
- r[3] || (r[3] = C("span", { class: "label" }, "斑马纹", -1)),
1277
- a(o, {
1290
+ l(f),
1291
+ l(s, { label: "表格样式" }, {
1292
+ default: u(() => [
1293
+ k("p", Dt, [
1294
+ r[3] || (r[3] = k("span", { class: "label" }, "斑马纹", -1)),
1295
+ l(o, {
1278
1296
  modelValue: e.value.options.stripe,
1279
- "onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
1297
+ "onUpdate:modelValue": r[0] || (r[0] = (p) => e.value.options.stripe = p)
1280
1298
  }, null, 8, ["modelValue"])
1281
1299
  ]),
1282
- C("p", $t, [
1283
- r[4] || (r[4] = C("span", { class: "label" }, "边框", -1)),
1284
- a(o, {
1300
+ k("p", Et, [
1301
+ r[4] || (r[4] = k("span", { class: "label" }, "边框", -1)),
1302
+ l(o, {
1285
1303
  modelValue: e.value.options.border,
1286
- "onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
1304
+ "onUpdate:modelValue": r[1] || (r[1] = (p) => e.value.options.border = p)
1287
1305
  }, null, 8, ["modelValue"])
1288
1306
  ]),
1289
- C("p", kt, [
1290
- r[5] || (r[5] = C("span", { class: "label" }, "表头", -1)),
1291
- a(o, {
1307
+ k("p", Ft, [
1308
+ r[5] || (r[5] = k("span", { class: "label" }, "表头", -1)),
1309
+ l(o, {
1292
1310
  modelValue: e.value.options.showHeader,
1293
- "onUpdate:modelValue": r[2] || (r[2] = (i) => e.value.options.showHeader = i)
1311
+ "onUpdate:modelValue": r[2] || (r[2] = (p) => e.value.options.showHeader = p)
1294
1312
  }, null, 8, ["modelValue"])
1295
1313
  ])
1296
1314
  ]),
@@ -1299,85 +1317,85 @@ const bt = /* @__PURE__ */ Y(vt, [["__scopeId", "data-v-2d59469a"]]), gt = {
1299
1317
  ]);
1300
1318
  };
1301
1319
  }
1302
- }), Tt = { key: 0 }, Lt = /* @__PURE__ */ $({
1320
+ }), At = { key: 0 }, It = /* @__PURE__ */ T({
1303
1321
  __name: "ChartsUniConfig",
1304
- setup(n) {
1305
- const t = z(), e = F(() => t.activeComponents);
1306
- function l(r) {
1322
+ setup(a) {
1323
+ const t = z(), e = A(() => t.activeComponents);
1324
+ function n(r) {
1307
1325
  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
1326
  }
1309
- return k("rgb(46, 145, 255)"), (r, o) => {
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", Tt, [
1312
- a(_, { label: "标题" }, {
1313
- default: p(() => [
1314
- a(s, {
1327
+ return V("rgb(46, 145, 255)"), (r, o) => {
1328
+ const s = i("el-input"), f = i("el-form-item"), p = i("el-switch"), b = i("el-col"), _ = i("el-color-picker"), d = i("el-input-number"), g = i("el-row"), c = i("el-collapse-item"), y = i("el-collapse");
1329
+ return e.value.options.title ? (m(), w("div", At, [
1330
+ l(f, { label: "标题" }, {
1331
+ default: u(() => [
1332
+ l(s, {
1315
1333
  modelValue: e.value.options.title.text,
1316
- "onUpdate:modelValue": o[0] || (o[0] = (V) => e.value.options.title.text = V)
1334
+ "onUpdate:modelValue": o[0] || (o[0] = (C) => e.value.options.title.text = C)
1317
1335
  }, null, 8, ["modelValue"])
1318
1336
  ]),
1319
1337
  _: 1
1320
1338
  }),
1321
- a(L, null, {
1322
- default: p(() => [
1323
- a(b, {
1339
+ l(y, null, {
1340
+ default: u(() => [
1341
+ l(c, {
1324
1342
  title: "标题配置",
1325
1343
  name: "1"
1326
1344
  }, {
1327
- default: p(() => [
1328
- a(h, { class: "w-100%" }, {
1329
- default: p(() => [
1330
- a(f, { span: 24 }, {
1331
- default: p(() => [
1332
- o[8] || (o[8] = C("span", { class: "switch-label" }, "显示标题", -1)),
1333
- a(i, {
1345
+ default: u(() => [
1346
+ l(g, { class: "w-100%" }, {
1347
+ default: u(() => [
1348
+ l(b, { span: 24 }, {
1349
+ default: u(() => [
1350
+ o[8] || (o[8] = k("span", { class: "switch-label" }, "显示标题", -1)),
1351
+ l(p, {
1334
1352
  modelValue: e.value.options.title.show,
1335
- "onUpdate:modelValue": o[1] || (o[1] = (V) => e.value.options.title.show = V)
1353
+ "onUpdate:modelValue": o[1] || (o[1] = (C) => e.value.options.title.show = C)
1336
1354
  }, null, 8, ["modelValue"])
1337
1355
  ]),
1338
1356
  _: 1
1339
1357
  }),
1340
- a(f, { span: 12 }, {
1341
- default: p(() => [
1342
- a(m, {
1358
+ l(b, { span: 12 }, {
1359
+ default: u(() => [
1360
+ l(_, {
1343
1361
  modelValue: e.value.options.title.textStyle.color,
1344
- "onUpdate:modelValue": o[2] || (o[2] = (V) => e.value.options.title.textStyle.color = V),
1362
+ "onUpdate:modelValue": o[2] || (o[2] = (C) => e.value.options.title.textStyle.color = C),
1345
1363
  "show-alpha": ""
1346
1364
  }, null, 8, ["modelValue"]),
1347
- o[9] || (o[9] = C("p", { class: "sub-title" }, "颜色", -1))
1365
+ o[9] || (o[9] = k("p", { class: "sub-title" }, "颜色", -1))
1348
1366
  ]),
1349
1367
  _: 1
1350
1368
  }),
1351
- a(f, { span: 12 }, {
1352
- default: p(() => [
1353
- a(u, {
1369
+ l(b, { span: 12 }, {
1370
+ default: u(() => [
1371
+ l(d, {
1354
1372
  modelValue: e.value.options.title.textStyle.fontSize,
1355
- "onUpdate:modelValue": o[3] || (o[3] = (V) => e.value.options.title.textStyle.fontSize = V),
1373
+ "onUpdate:modelValue": o[3] || (o[3] = (C) => e.value.options.title.textStyle.fontSize = C),
1356
1374
  "controls-position": "right"
1357
1375
  }, null, 8, ["modelValue"]),
1358
- o[10] || (o[10] = C("p", { class: "sub-title" }, "字体大小", -1))
1376
+ o[10] || (o[10] = k("p", { class: "sub-title" }, "字体大小", -1))
1359
1377
  ]),
1360
1378
  _: 1
1361
1379
  }),
1362
- a(f, { span: 12 }, {
1363
- default: p(() => [
1364
- a(u, {
1380
+ l(b, { span: 12 }, {
1381
+ default: u(() => [
1382
+ l(d, {
1365
1383
  modelValue: e.value.options.title.x,
1366
- "onUpdate:modelValue": o[4] || (o[4] = (V) => e.value.options.title.x = V),
1384
+ "onUpdate:modelValue": o[4] || (o[4] = (C) => e.value.options.title.x = C),
1367
1385
  "controls-position": "right"
1368
1386
  }, null, 8, ["modelValue"]),
1369
- o[11] || (o[11] = C("p", { class: "sub-title" }, "横向", -1))
1387
+ o[11] || (o[11] = k("p", { class: "sub-title" }, "横向", -1))
1370
1388
  ]),
1371
1389
  _: 1
1372
1390
  }),
1373
- a(f, { span: 12 }, {
1374
- default: p(() => [
1375
- a(u, {
1391
+ l(b, { span: 12 }, {
1392
+ default: u(() => [
1393
+ l(d, {
1376
1394
  modelValue: e.value.options.title.y,
1377
- "onUpdate:modelValue": o[5] || (o[5] = (V) => e.value.options.title.y = V),
1395
+ "onUpdate:modelValue": o[5] || (o[5] = (C) => e.value.options.title.y = C),
1378
1396
  "controls-position": "right"
1379
1397
  }, null, 8, ["modelValue"]),
1380
- o[12] || (o[12] = C("p", { class: "sub-title" }, "纵向", -1))
1398
+ o[12] || (o[12] = k("p", { class: "sub-title" }, "纵向", -1))
1381
1399
  ]),
1382
1400
  _: 1
1383
1401
  })
@@ -1387,45 +1405,45 @@ const bt = /* @__PURE__ */ Y(vt, [["__scopeId", "data-v-2d59469a"]]), gt = {
1387
1405
  ]),
1388
1406
  _: 1
1389
1407
  }),
1390
- a(b, {
1408
+ l(c, {
1391
1409
  title: "图形配置",
1392
1410
  name: "2"
1393
1411
  }, {
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(() => [
1397
- a(f, { span: 24 }, {
1398
- default: p(() => [
1399
- o[13] || (o[13] = C("span", { class: "switch-label" }, "玫瑰图", -1)),
1400
- a(i, {
1401
- onChange: l,
1412
+ default: u(() => [
1413
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), S(g, { key: 0 }, {
1414
+ default: u(() => [
1415
+ l(b, { span: 24 }, {
1416
+ default: u(() => [
1417
+ o[13] || (o[13] = k("span", { class: "switch-label" }, "玫瑰图", -1)),
1418
+ l(p, {
1419
+ onChange: n,
1402
1420
  modelValue: e.value.options.series[0].roseType,
1403
- "onUpdate:modelValue": o[6] || (o[6] = (V) => e.value.options.series[0].roseType = V)
1421
+ "onUpdate:modelValue": o[6] || (o[6] = (C) => e.value.options.series[0].roseType = C)
1404
1422
  }, null, 8, ["modelValue"])
1405
1423
  ]),
1406
1424
  _: 1
1407
1425
  })
1408
1426
  ]),
1409
1427
  _: 1
1410
- })) : R("", !0)
1428
+ })) : U("", !0)
1411
1429
  ]),
1412
1430
  _: 1
1413
1431
  }),
1414
- a(b, {
1432
+ l(c, {
1415
1433
  title: "图例配置",
1416
1434
  name: "3"
1417
1435
  }, {
1418
- default: p(() => [
1419
- a(h, null, {
1420
- default: p(() => [
1421
- a(f, { span: 24 }, {
1422
- default: p(() => [
1423
- o[14] || (o[14] = C("span", { class: "switch-label" }, "显示图例", -1)),
1424
- e.value.options.legend ? (c(), S(i, {
1436
+ default: u(() => [
1437
+ l(g, null, {
1438
+ default: u(() => [
1439
+ l(b, { span: 24 }, {
1440
+ default: u(() => [
1441
+ o[14] || (o[14] = k("span", { class: "switch-label" }, "显示图例", -1)),
1442
+ e.value.options.legend ? (m(), S(p, {
1425
1443
  key: 0,
1426
1444
  modelValue: e.value.options.legend.show,
1427
- "onUpdate:modelValue": o[7] || (o[7] = (V) => e.value.options.legend.show = V)
1428
- }, null, 8, ["modelValue"])) : R("", !0)
1445
+ "onUpdate:modelValue": o[7] || (o[7] = (C) => e.value.options.legend.show = C)
1446
+ }, null, 8, ["modelValue"])) : U("", !0)
1429
1447
  ]),
1430
1448
  _: 1
1431
1449
  })
@@ -1438,40 +1456,40 @@ const bt = /* @__PURE__ */ Y(vt, [["__scopeId", "data-v-2d59469a"]]), gt = {
1438
1456
  ]),
1439
1457
  _: 1
1440
1458
  })
1441
- ])) : R("", !0);
1459
+ ])) : U("", !0);
1442
1460
  };
1443
1461
  }
1444
1462
  });
1445
- const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @__PURE__ */ $({
1463
+ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @__PURE__ */ T({
1446
1464
  __name: "SettingDescribe",
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, [
1452
- a(s, { label: "标题" }, {
1453
- default: p(() => [
1454
- a(o, {
1465
+ setup(a) {
1466
+ const t = z(), e = A(() => t.getActiveComponents);
1467
+ return (n, r) => {
1468
+ const o = i("el-input"), s = i("el-form-item"), f = i("el-switch"), p = i("el-input-number"), b = i("el-radio"), _ = i("el-radio-group");
1469
+ return m(), w("div", null, [
1470
+ l(s, { label: "标题" }, {
1471
+ default: u(() => [
1472
+ l(o, {
1455
1473
  modelValue: e.value.options.title,
1456
- "onUpdate:modelValue": r[0] || (r[0] = (u) => e.value.options.title = u)
1474
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => e.value.options.title = d)
1457
1475
  }, null, 8, ["modelValue"])
1458
1476
  ]),
1459
1477
  _: 1
1460
1478
  }),
1461
- a(s, { label: "边框" }, {
1462
- default: p(() => [
1463
- a(_, {
1479
+ l(s, { label: "边框" }, {
1480
+ default: u(() => [
1481
+ l(f, {
1464
1482
  modelValue: e.value.options.border,
1465
- "onUpdate:modelValue": r[1] || (r[1] = (u) => e.value.options.border = u)
1483
+ "onUpdate:modelValue": r[1] || (r[1] = (d) => e.value.options.border = d)
1466
1484
  }, null, 8, ["modelValue"])
1467
1485
  ]),
1468
1486
  _: 1
1469
1487
  }),
1470
- a(s, { label: "每行展示数量" }, {
1471
- default: p(() => [
1472
- a(i, {
1488
+ l(s, { label: "每行展示数量" }, {
1489
+ default: u(() => [
1490
+ l(p, {
1473
1491
  modelValue: e.value.options.column,
1474
- "onUpdate:modelValue": r[2] || (r[2] = (u) => e.value.options.column = u),
1492
+ "onUpdate:modelValue": r[2] || (r[2] = (d) => e.value.options.column = d),
1475
1493
  min: 1,
1476
1494
  max: 10,
1477
1495
  controls: !1
@@ -1479,22 +1497,22 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1479
1497
  ]),
1480
1498
  _: 1
1481
1499
  }),
1482
- a(s, { label: "排列方向" }, {
1483
- default: p(() => [
1484
- a(m, {
1500
+ l(s, { label: "排列方向" }, {
1501
+ default: u(() => [
1502
+ l(_, {
1485
1503
  modelValue: e.value.options.direction,
1486
- "onUpdate:modelValue": r[3] || (r[3] = (u) => e.value.options.direction = u)
1504
+ "onUpdate:modelValue": r[3] || (r[3] = (d) => e.value.options.direction = d)
1487
1505
  }, {
1488
- default: p(() => [
1489
- a(f, { value: "horizontal" }, {
1490
- default: p(() => r[4] || (r[4] = [
1491
- D("横向")
1506
+ default: u(() => [
1507
+ l(b, { value: "horizontal" }, {
1508
+ default: u(() => r[4] || (r[4] = [
1509
+ L("横向")
1492
1510
  ])),
1493
1511
  _: 1
1494
1512
  }),
1495
- a(f, { value: "vertical" }, {
1496
- default: p(() => r[5] || (r[5] = [
1497
- D("纵向")
1513
+ l(b, { value: "vertical" }, {
1514
+ default: u(() => r[5] || (r[5] = [
1515
+ L("纵向")
1498
1516
  ])),
1499
1517
  _: 1
1500
1518
  })
@@ -1507,65 +1525,76 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1507
1525
  ]);
1508
1526
  };
1509
1527
  }
1510
- }), Ut = /* @__PURE__ */ $({
1528
+ }), Ht = /* @__PURE__ */ T({
1511
1529
  __name: "SettingCharts",
1512
- setup(n) {
1513
- const t = z(), e = k(!1), l = F(() => t.getActiveComponents), r = [
1530
+ setup(a) {
1531
+ const t = z(), e = V(!1), n = A(() => t.getActiveComponents), r = [
1514
1532
  { value: "report-describe", name: "描述列表" },
1515
1533
  { value: "report-table", name: "表格" },
1516
1534
  { value: "line", name: "趋势图" },
1517
1535
  { value: "pie", name: "扇形图" },
1518
1536
  { value: "bar", name: "柱状图" }
1519
- ], o = k(""), s = k();
1520
- async function _(m) {
1521
- const u = await ue({
1537
+ ], o = V(""), s = V();
1538
+ async function f(_) {
1539
+ const d = await pe({
1522
1540
  prod_type: window.$prodType,
1523
- chart_type: m,
1541
+ chart_type: _,
1524
1542
  filter_uuid: t.filterForm.filter_uuid
1525
1543
  });
1526
- s.value = u.data;
1544
+ s.value = d.data;
1527
1545
  }
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") {
1532
- const b = {};
1533
- h.showColumn.forEach((L) => {
1534
- b[L.key] = !0;
1535
- }), h.options = { ...h.options, showColumn: b, border: !0, showHeader: !0, stripe: !1 };
1546
+ function p(_) {
1547
+ let d = s.value.find((c) => c.rp_item_uuid === _);
1548
+ const g = d.rp_item_content;
1549
+ if (d.rp_item_content.type === "bar" && (g.options = K()), g.type === "pie" && (g.options = O({ isLegend: !0 })), g.type === "line") {
1550
+ let c = [];
1551
+ g.data.forEach((C) => {
1552
+ c = C.data.map((v, x) => ({ name: v.name, value: "value" + x }));
1553
+ });
1554
+ const y = {
1555
+ name: "name",
1556
+ value: c
1557
+ };
1558
+ g.options = N([], y);
1559
+ }
1560
+ if (g.type === "report-table") {
1561
+ const c = {};
1562
+ g.showColumn.forEach((y) => {
1563
+ c[y.key] = !0;
1564
+ }), g.options = { ...g.options, showColumn: c, border: !0, showHeader: !0, stripe: !1 };
1536
1565
  }
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;
1566
+ 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 = d.rp_item_uuid;
1538
1567
  }
1539
- Z(async () => {
1540
- o.value = l.value.type, await _(o.value);
1568
+ te(async () => {
1569
+ o.value = n.value.type, await f(o.value);
1541
1570
  });
1542
- async function f(m) {
1571
+ async function b(_) {
1543
1572
  try {
1544
- e.value = !0, await _(m), Object.assign(t.activeComponents, Ze(m)), e.value = !1;
1573
+ e.value = !0, await f(_), Object.assign(t.activeComponents, rt(_)), e.value = !1;
1545
1574
  } catch {
1546
1575
  e.value = !1;
1547
1576
  }
1548
1577
  }
1549
- return xe(
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));
1578
+ return Ve(
1579
+ () => n.value,
1580
+ (_) => {
1581
+ console.log(_, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(_.type) && (o.value = n.value.type, f(o.value));
1553
1582
  }
1554
- ), (m, u) => {
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
- a(V, { "label-position": "top" }, {
1558
- default: p(() => [
1559
- a(L, { label: "图表类型" }, {
1560
- default: p(() => [
1561
- a(b, {
1583
+ ), (_, d) => {
1584
+ const g = i("el-option"), c = i("el-select"), y = i("el-form-item"), C = i("el-form"), v = Se("loading");
1585
+ return Te((m(), w("div", null, [
1586
+ l(C, { "label-position": "top" }, {
1587
+ default: u(() => [
1588
+ l(y, { label: "图表类型" }, {
1589
+ default: u(() => [
1590
+ l(c, {
1562
1591
  style: { width: "100%" },
1563
1592
  modelValue: o.value,
1564
- "onUpdate:modelValue": u[0] || (u[0] = (x) => o.value = x),
1565
- onChange: f
1593
+ "onUpdate:modelValue": d[0] || (d[0] = (x) => o.value = x),
1594
+ onChange: b
1566
1595
  }, {
1567
- default: p(() => [
1568
- (c(), y(A, null, I(r, (x, E) => a(h, {
1596
+ default: u(() => [
1597
+ (m(), w(F, null, I(r, (x, E) => l(g, {
1569
1598
  key: E,
1570
1599
  label: x.name,
1571
1600
  value: x.value
@@ -1576,16 +1605,16 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1576
1605
  ]),
1577
1606
  _: 1
1578
1607
  }),
1579
- a(L, { label: "组件库" }, {
1580
- default: p(() => [
1581
- a(b, {
1608
+ l(y, { label: "组件库" }, {
1609
+ default: u(() => [
1610
+ l(c, {
1582
1611
  style: { width: "100%" },
1583
- modelValue: g(t).activeComponents.rp_item_uuid,
1584
- "onUpdate:modelValue": u[1] || (u[1] = (x) => g(t).activeComponents.rp_item_uuid = x),
1585
- onChange: i
1612
+ modelValue: h(t).activeComponents.rp_item_uuid,
1613
+ "onUpdate:modelValue": d[1] || (d[1] = (x) => h(t).activeComponents.rp_item_uuid = x),
1614
+ onChange: p
1586
1615
  }, {
1587
- default: p(() => [
1588
- (c(!0), y(A, null, I(s.value, (x, E) => (c(), S(h, {
1616
+ default: u(() => [
1617
+ (m(!0), w(F, null, I(s.value, (x, E) => (m(), S(g, {
1589
1618
  key: E,
1590
1619
  label: x.rp_item_name,
1591
1620
  value: x.rp_item_uuid
@@ -1596,9 +1625,9 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1596
1625
  ]),
1597
1626
  _: 1
1598
1627
  }),
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)
1628
+ o.value === "report-table" && n.value.options.showColumn ? (m(), S(he, { key: 0 })) : U("", !0),
1629
+ o.value === "pie" || o.value === "bar" || o.value === "line" ? (m(), S(zt, { key: 1 })) : U("", !0),
1630
+ o.value === "report-describe" ? (m(), S(we, { key: 2 })) : U("", !0)
1602
1631
  ]),
1603
1632
  _: 1
1604
1633
  })
@@ -1607,17 +1636,17 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1607
1636
  ]);
1608
1637
  };
1609
1638
  }
1610
- }), Dt = { key: 0 }, At = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, le = "default", Et = /* @__PURE__ */ $({
1639
+ }), Pt = { key: 0 }, qt = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ne = "default", jt = /* @__PURE__ */ T({
1611
1640
  __name: "SettingText",
1612
- setup(n) {
1613
- const t = z(), e = $e(), l = k();
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) || "");
1641
+ setup(a) {
1642
+ const t = z(), e = Le(), n = V();
1643
+ function r(_) {
1644
+ const d = n.value.find((g) => g.rp_item_uuid === _);
1645
+ t.activeComponents.uri = d.rp_item_content.uri, e.value.setHtml((d == null ? void 0 : d.rp_item_content.data) || "");
1617
1646
  }
1618
1647
  async function o() {
1619
- const m = await ue({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1620
- l.value = m.data;
1648
+ const _ = await pe({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1649
+ n.value = _.data;
1621
1650
  }
1622
1651
  o();
1623
1652
  const s = {
@@ -1642,28 +1671,28 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1642
1671
  "justifyJustify",
1643
1672
  "lineHeight"
1644
1673
  ]
1645
- }, _ = { placeholder: "请输入内容..." }, i = (m) => {
1646
- e.value = m;
1647
- }, f = (m) => {
1674
+ }, f = { placeholder: "请输入内容..." }, p = (_) => {
1675
+ e.value = _;
1676
+ }, b = (_) => {
1648
1677
  };
1649
- return ke(() => {
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", Dt, [
1655
- a(V, { "label-position": "top" }, {
1656
- default: p(() => [
1657
- a(L, { label: "组件库" }, {
1658
- default: p(() => [
1659
- a(b, {
1678
+ return Re(() => {
1679
+ const _ = e.value;
1680
+ _ != null && _.destroy();
1681
+ }), (_, d) => {
1682
+ const g = i("el-option"), c = i("el-select"), y = i("el-form-item"), C = i("el-form");
1683
+ return h(t).activeComponents.id ? (m(), w("div", Pt, [
1684
+ l(C, { "label-position": "top" }, {
1685
+ default: u(() => [
1686
+ l(y, { label: "组件库" }, {
1687
+ default: u(() => [
1688
+ l(c, {
1660
1689
  style: { width: "100%" },
1661
- modelValue: g(t).activeComponents.rp_item_uuid,
1662
- "onUpdate:modelValue": u[0] || (u[0] = (v) => g(t).activeComponents.rp_item_uuid = v),
1690
+ modelValue: h(t).activeComponents.rp_item_uuid,
1691
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => h(t).activeComponents.rp_item_uuid = v),
1663
1692
  onChange: r
1664
1693
  }, {
1665
- default: p(() => [
1666
- (c(!0), y(A, null, I(l.value, (v, x) => (c(), S(h, {
1694
+ default: u(() => [
1695
+ (m(!0), w(F, null, I(n.value, (v, x) => (m(), S(g, {
1667
1696
  key: x,
1668
1697
  label: v.rp_item_name,
1669
1698
  value: v.rp_item_uuid
@@ -1674,23 +1703,23 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1674
1703
  ]),
1675
1704
  _: 1
1676
1705
  }),
1677
- a(L, { label: "文本内容" }, {
1678
- default: p(() => [
1679
- C("div", At, [
1680
- a(g(Fe), {
1706
+ l(y, { label: "文本内容" }, {
1707
+ default: u(() => [
1708
+ k("div", qt, [
1709
+ l(h(He), {
1681
1710
  style: { "border-bottom": "1px solid #ccc" },
1682
1711
  editor: e.value,
1683
1712
  "default-config": s,
1684
- mode: le
1713
+ mode: ne
1685
1714
  }, null, 8, ["editor"]),
1686
- a(g(Ie), {
1715
+ l(h(Pe), {
1687
1716
  style: { height: "500px", "overflow-y": "hidden" },
1688
- onOnChange: f,
1689
- modelValue: g(t).activeComponents.data,
1690
- "onUpdate:modelValue": u[1] || (u[1] = (v) => g(t).activeComponents.data = v),
1691
- "default-config": _,
1692
- mode: le,
1693
- onOnCreated: i
1717
+ onOnChange: b,
1718
+ modelValue: h(t).activeComponents.data,
1719
+ "onUpdate:modelValue": d[1] || (d[1] = (v) => h(t).activeComponents.data = v),
1720
+ "default-config": f,
1721
+ mode: ne,
1722
+ onOnCreated: p
1694
1723
  }, null, 8, ["modelValue"])
1695
1724
  ])
1696
1725
  ]),
@@ -1699,36 +1728,36 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1699
1728
  ]),
1700
1729
  _: 1
1701
1730
  })
1702
- ])) : R("", !0);
1731
+ ])) : U("", !0);
1703
1732
  };
1704
1733
  }
1705
- }), Ft = /* @__PURE__ */ $({
1734
+ }), Mt = /* @__PURE__ */ T({
1706
1735
  __name: "SettingFilter",
1707
- setup(n) {
1708
- const t = k([]), e = z();
1709
- async function l() {
1710
- const r = await We({ prod_type: window.$prodType });
1736
+ setup(a) {
1737
+ const t = V([]), e = z();
1738
+ async function n() {
1739
+ const r = await de({ prod_type: window.$prodType });
1711
1740
  t.value = r.data;
1712
1741
  }
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, {
1742
+ return n(), (r, o) => {
1743
+ const s = i("el-option"), f = i("el-select"), p = i("el-form-item"), b = i("el-checkbox"), _ = i("el-form");
1744
+ return m(), S(_, {
1716
1745
  "label-width": "80px",
1717
1746
  "label-position": "top"
1718
1747
  }, {
1719
- default: p(() => [
1720
- a(i, { label: "筛选条件" }, {
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
1748
+ default: u(() => [
1749
+ l(p, { label: "筛选条件" }, {
1750
+ default: u(() => [
1751
+ l(f, {
1752
+ modelValue: h(e).filterForm.filter_uuid,
1753
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => h(e).filterForm.filter_uuid = d),
1754
+ disabled: !!h(e).filterForm.filter_uuid
1726
1755
  }, {
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
1756
+ default: u(() => [
1757
+ (m(!0), w(F, null, I(t.value, (d) => (m(), S(s, {
1758
+ key: d.filter_uuid,
1759
+ label: d.filter_name,
1760
+ value: d.filter_uuid
1732
1761
  }, null, 8, ["label", "value"]))), 128))
1733
1762
  ]),
1734
1763
  _: 1
@@ -1736,11 +1765,11 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1736
1765
  ]),
1737
1766
  _: 1
1738
1767
  }),
1739
- a(i, null, {
1740
- default: p(() => [
1741
- a(f, {
1742
- modelValue: g(e).filterForm.range_time,
1743
- "onUpdate:modelValue": o[1] || (o[1] = (u) => g(e).filterForm.range_time = u),
1768
+ l(p, null, {
1769
+ default: u(() => [
1770
+ l(b, {
1771
+ modelValue: h(e).filterForm.range_time,
1772
+ "onUpdate:modelValue": o[1] || (o[1] = (d) => h(e).filterForm.range_time = d),
1744
1773
  "true-value": 1,
1745
1774
  "false-value": 0,
1746
1775
  label: "时间范围"
@@ -1753,22 +1782,22 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1753
1782
  });
1754
1783
  };
1755
1784
  }
1756
- }), It = /* @__PURE__ */ $({
1785
+ }), Bt = /* @__PURE__ */ T({
1757
1786
  __name: "SettingTitle",
1758
- setup(n) {
1787
+ setup(a) {
1759
1788
  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, {
1789
+ return (e, n) => {
1790
+ const r = i("el-input"), o = i("el-form-item"), s = i("el-color-picker"), f = i("el-col"), p = i("el-input-number"), b = i("el-option"), _ = i("el-select"), d = i("el-row"), g = i("el-form");
1791
+ return m(), S(g, {
1763
1792
  "label-width": "auto",
1764
1793
  "label-position": "top"
1765
1794
  }, {
1766
- default: p(() => [
1767
- a(o, { label: "名称" }, {
1768
- default: p(() => [
1769
- a(r, {
1770
- modelValue: g(t).activeComponents.data,
1771
- "onUpdate:modelValue": l[0] || (l[0] = (b) => g(t).activeComponents.data = b),
1795
+ default: u(() => [
1796
+ l(o, { label: "名称" }, {
1797
+ default: u(() => [
1798
+ l(r, {
1799
+ modelValue: h(t).activeComponents.data,
1800
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => h(t).activeComponents.data = c),
1772
1801
  placeholder: "Please input",
1773
1802
  maxlength: "24",
1774
1803
  "show-word-limit": ""
@@ -1776,99 +1805,99 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1776
1805
  ]),
1777
1806
  _: 1
1778
1807
  }),
1779
- a(o, { label: "样式" }, {
1780
- default: p(() => [
1781
- a(u, { gutter: 20 }, {
1782
- default: p(() => [
1783
- a(_, { span: 12 }, {
1784
- default: p(() => [
1785
- a(s, {
1786
- modelValue: g(t).activeComponents.options.color,
1787
- "onUpdate:modelValue": l[1] || (l[1] = (b) => g(t).activeComponents.options.color = b),
1808
+ l(o, { label: "样式" }, {
1809
+ default: u(() => [
1810
+ l(d, { gutter: 20 }, {
1811
+ default: u(() => [
1812
+ l(f, { span: 12 }, {
1813
+ default: u(() => [
1814
+ l(s, {
1815
+ modelValue: h(t).activeComponents.options.color,
1816
+ "onUpdate:modelValue": n[1] || (n[1] = (c) => h(t).activeComponents.options.color = c),
1788
1817
  "show-alpha": ""
1789
1818
  }, null, 8, ["modelValue"]),
1790
- l[7] || (l[7] = C("p", { class: "sub-title" }, "颜色", -1))
1819
+ n[7] || (n[7] = k("p", { class: "sub-title" }, "颜色", -1))
1791
1820
  ]),
1792
1821
  _: 1
1793
1822
  }),
1794
- a(_, { span: 12 }, {
1795
- default: p(() => [
1796
- a(i, {
1797
- modelValue: g(t).activeComponents.options.size,
1798
- "onUpdate:modelValue": l[2] || (l[2] = (b) => g(t).activeComponents.options.size = b),
1823
+ l(f, { span: 12 }, {
1824
+ default: u(() => [
1825
+ l(p, {
1826
+ modelValue: h(t).activeComponents.options.size,
1827
+ "onUpdate:modelValue": n[2] || (n[2] = (c) => h(t).activeComponents.options.size = c),
1799
1828
  "controls-position": "right"
1800
1829
  }, null, 8, ["modelValue"]),
1801
- l[8] || (l[8] = C("p", { class: "sub-title" }, "字体大小", -1))
1830
+ n[8] || (n[8] = k("p", { class: "sub-title" }, "字体大小", -1))
1802
1831
  ]),
1803
1832
  _: 1
1804
1833
  }),
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)
1834
+ l(f, { span: 12 }, {
1835
+ default: u(() => [
1836
+ l(_, {
1837
+ modelValue: h(t).activeComponents.options.fontWeight,
1838
+ "onUpdate:modelValue": n[3] || (n[3] = (c) => h(t).activeComponents.options.fontWeight = c)
1810
1839
  }, {
1811
- default: p(() => [
1812
- a(f, {
1840
+ default: u(() => [
1841
+ l(b, {
1813
1842
  label: "常规",
1814
1843
  value: 500
1815
1844
  }),
1816
- a(f, {
1845
+ l(b, {
1817
1846
  label: "加粗",
1818
1847
  value: 600
1819
1848
  })
1820
1849
  ]),
1821
1850
  _: 1
1822
1851
  }, 8, ["modelValue"]),
1823
- l[9] || (l[9] = C("p", { class: "sub-title" }, "字体粗细", -1))
1852
+ n[9] || (n[9] = k("p", { class: "sub-title" }, "字体粗细", -1))
1824
1853
  ]),
1825
1854
  _: 1
1826
1855
  }),
1827
- a(_, { span: 12 }, {
1828
- default: p(() => [
1829
- a(i, {
1830
- modelValue: g(t).activeComponents.options.letterSpacing,
1831
- "onUpdate:modelValue": l[4] || (l[4] = (b) => g(t).activeComponents.options.letterSpacing = b),
1856
+ l(f, { span: 12 }, {
1857
+ default: u(() => [
1858
+ l(p, {
1859
+ modelValue: h(t).activeComponents.options.letterSpacing,
1860
+ "onUpdate:modelValue": n[4] || (n[4] = (c) => h(t).activeComponents.options.letterSpacing = c),
1832
1861
  "controls-position": "right"
1833
1862
  }, null, 8, ["modelValue"]),
1834
- l[10] || (l[10] = C("p", { class: "sub-title" }, "字间距", -1))
1863
+ n[10] || (n[10] = k("p", { class: "sub-title" }, "字间距", -1))
1835
1864
  ]),
1836
1865
  _: 1
1837
1866
  }),
1838
- a(_, { span: 12 }, {
1839
- default: p(() => [
1840
- a(i, {
1841
- modelValue: g(t).activeComponents.options.textIndent,
1842
- "onUpdate:modelValue": l[5] || (l[5] = (b) => g(t).activeComponents.options.textIndent = b),
1867
+ l(f, { span: 12 }, {
1868
+ default: u(() => [
1869
+ l(p, {
1870
+ modelValue: h(t).activeComponents.options.textIndent,
1871
+ "onUpdate:modelValue": n[5] || (n[5] = (c) => h(t).activeComponents.options.textIndent = c),
1843
1872
  "controls-position": "right"
1844
1873
  }, null, 8, ["modelValue"]),
1845
- l[11] || (l[11] = C("p", { class: "sub-title" }, "首行缩进", -1))
1874
+ n[11] || (n[11] = k("p", { class: "sub-title" }, "首行缩进", -1))
1846
1875
  ]),
1847
1876
  _: 1
1848
1877
  }),
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)
1878
+ l(f, { span: 12 }, {
1879
+ default: u(() => [
1880
+ l(_, {
1881
+ modelValue: h(t).activeComponents.options.textAlign,
1882
+ "onUpdate:modelValue": n[6] || (n[6] = (c) => h(t).activeComponents.options.textAlign = c)
1854
1883
  }, {
1855
- default: p(() => [
1856
- a(f, {
1884
+ default: u(() => [
1885
+ l(b, {
1857
1886
  label: "左对齐",
1858
1887
  value: "left"
1859
1888
  }),
1860
- a(f, {
1889
+ l(b, {
1861
1890
  label: "居中对齐",
1862
1891
  value: "center"
1863
1892
  }),
1864
- a(f, {
1893
+ l(b, {
1865
1894
  label: "右对齐",
1866
1895
  value: "right"
1867
1896
  })
1868
1897
  ]),
1869
1898
  _: 1
1870
1899
  }, 8, ["modelValue"]),
1871
- l[12] || (l[12] = C("p", { class: "sub-title" }, "位置", -1))
1900
+ n[12] || (n[12] = k("p", { class: "sub-title" }, "位置", -1))
1872
1901
  ]),
1873
1902
  _: 1
1874
1903
  })
@@ -1884,28 +1913,28 @@ const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @_
1884
1913
  };
1885
1914
  }
1886
1915
  });
1887
- const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @__PURE__ */ $({
1916
+ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @__PURE__ */ T({
1888
1917
  __name: "Setting",
1889
- setup(n) {
1918
+ setup(a) {
1890
1919
  const t = {
1891
- SettingTable: ge,
1892
- SettingCharts: Ut,
1893
- SettingDescribe: ye,
1894
- SettingText: Et,
1895
- SettingFilter: Ft,
1896
- SettingTitle: zt
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
- return (i, f) => {
1899
- const m = d("el-card");
1900
- return c(), S(m, { class: "config-wrapper" }, {
1901
- default: p(() => [
1902
- (c(), S(N(_(l.value.type))))
1920
+ SettingTable: he,
1921
+ SettingCharts: Ht,
1922
+ SettingDescribe: we,
1923
+ SettingText: jt,
1924
+ SettingFilter: Mt,
1925
+ SettingTitle: Wt
1926
+ }, e = z(), n = A(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], o = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe"], f = (p) => r.includes(p) ? H(t, "SettingTitle") : o.includes(p) ? H(t, "SettingText") : s.includes(p) ? H(t, "SettingCharts") : p === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
1927
+ return (p, b) => {
1928
+ const _ = i("el-card");
1929
+ return m(), S(_, { class: "config-wrapper" }, {
1930
+ default: u(() => [
1931
+ (m(), S(W(f(n.value.type))))
1903
1932
  ]),
1904
1933
  _: 1
1905
1934
  });
1906
1935
  };
1907
1936
  }
1908
- }), Mt = { class: "editor-wrapper flex start" }, jt = { class: "flex" }, Pt = { class: "btn-group" }, Bt = /* @__PURE__ */ $({
1937
+ }), Ot = { class: "editor-wrapper flex start" }, Nt = { class: "flex" }, Kt = { class: "btn-group" }, Gt = /* @__PURE__ */ T({
1909
1938
  __name: "index",
1910
1939
  props: /* @__PURE__ */ se({
1911
1940
  reportId: {
@@ -1917,27 +1946,27 @@ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @_
1917
1946
  modelModifiers: {}
1918
1947
  }),
1919
1948
  emits: ["update:modelValue"],
1920
- setup(n) {
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);
1949
+ setup(a) {
1950
+ const t = z(), e = a, n = ue(a, "modelValue"), r = (p) => {
1951
+ const b = Y(p);
1952
+ b.id = q(), t.componentList.push(b);
1924
1953
  };
1925
1954
  function o() {
1926
- l.value = "table";
1955
+ n.value = "table";
1927
1956
  }
1928
1957
  function s() {
1929
1958
  t.getReportDemo(e.reportId);
1930
1959
  }
1931
- Z(() => {
1960
+ te(() => {
1932
1961
  s();
1933
1962
  });
1934
- async function _() {
1963
+ async function f() {
1935
1964
  if (!t.filterForm.filter_uuid) {
1936
- Ae.error("请选择筛选条件");
1965
+ Ie.error("请选择筛选条件");
1937
1966
  return;
1938
1967
  }
1939
1968
  try {
1940
- e.reportId ? await Pe({
1969
+ e.reportId ? await Ye({
1941
1970
  report_uuid: e.reportId,
1942
1971
  data: {
1943
1972
  report_name: t.titleComponent.data,
@@ -1945,7 +1974,7 @@ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @_
1945
1974
  content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
1946
1975
  ...t.filterForm
1947
1976
  }
1948
- }) : await je({
1977
+ }) : await We({
1949
1978
  data: {
1950
1979
  report_name: t.titleComponent.data,
1951
1980
  prod_type: window.$prodType,
@@ -1953,30 +1982,30 @@ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @_
1953
1982
  ...t.filterForm
1954
1983
  }
1955
1984
  }), o();
1956
- } catch (i) {
1957
- console.log(i, "error");
1985
+ } catch (p) {
1986
+ console.log(p, "error");
1958
1987
  }
1959
1988
  }
1960
- return Te(() => {
1989
+ return Ue(() => {
1961
1990
  t.clearComponents();
1962
- }), (i, f) => {
1963
- const m = d("el-button"), u = d("el-button-group"), h = d("el-card");
1964
- return c(), y("div", Mt, [
1965
- a(h, { class: "view-wrapper" }, {
1966
- default: p(() => [
1967
- C("div", jt, [
1968
- C("div", Pt, [
1969
- a(u, null, {
1970
- default: p(() => [
1971
- (c(!0), y(A, null, I(g(Xe), (b) => (c(), y(A, {
1972
- key: b.type
1991
+ }), (p, b) => {
1992
+ const _ = i("el-button"), d = i("el-button-group"), g = i("el-card");
1993
+ return m(), w("div", Ot, [
1994
+ l(g, { class: "view-wrapper" }, {
1995
+ default: u(() => [
1996
+ k("div", Nt, [
1997
+ k("div", Kt, [
1998
+ l(d, null, {
1999
+ default: u(() => [
2000
+ (m(!0), w(F, null, I(h(at), (c) => (m(), w(F, {
2001
+ key: c.type
1973
2002
  }, [
1974
- b != null && b.hide ? R("", !0) : (c(), S(m, {
2003
+ c != null && c.hide ? U("", !0) : (m(), S(_, {
1975
2004
  key: 0,
1976
- onClick: (L) => r(b)
2005
+ onClick: (y) => r(c)
1977
2006
  }, {
1978
- default: p(() => [
1979
- D(P(b.name), 1)
2007
+ default: u(() => [
2008
+ L(j(c.name), 1)
1980
2009
  ]),
1981
2010
  _: 2
1982
2011
  }, 1032, ["onClick"]))
@@ -1985,20 +2014,20 @@ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @_
1985
2014
  _: 1
1986
2015
  })
1987
2016
  ]),
1988
- a(u, null, {
1989
- default: p(() => [
1990
- a(m, {
2017
+ l(d, null, {
2018
+ default: u(() => [
2019
+ l(_, {
1991
2020
  type: "primary",
1992
- onClick: _
2021
+ onClick: f
1993
2022
  }, {
1994
- default: p(() => f[0] || (f[0] = [
1995
- D("保存")
2023
+ default: u(() => b[0] || (b[0] = [
2024
+ L("保存")
1996
2025
  ])),
1997
2026
  _: 1
1998
2027
  }),
1999
- a(m, { onClick: o }, {
2000
- default: p(() => f[1] || (f[1] = [
2001
- D("退出")
2028
+ l(_, { onClick: o }, {
2029
+ default: u(() => b[1] || (b[1] = [
2030
+ L("退出")
2002
2031
  ])),
2003
2032
  _: 1
2004
2033
  })
@@ -2006,39 +2035,39 @@ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @_
2006
2035
  _: 1
2007
2036
  })
2008
2037
  ]),
2009
- a(xt)
2038
+ l(Rt)
2010
2039
  ]),
2011
2040
  _: 1
2012
2041
  }),
2013
- a(Ht)
2042
+ l(Yt)
2014
2043
  ]);
2015
2044
  };
2016
2045
  }
2017
- }), Wt = {
2046
+ }), Jt = {
2018
2047
  class: "table-box"
2019
- }, Nt = /* @__PURE__ */ $({
2048
+ }, Qt = /* @__PURE__ */ T({
2020
2049
  __name: "Report",
2021
2050
  emits: ["click"],
2022
- setup(n, {
2051
+ setup(a, {
2023
2052
  emit: t
2024
2053
  }) {
2025
- const e = F(() => ({
2054
+ const e = A(() => ({
2026
2055
  prod_type: window.$prodType
2027
- })), l = k(), r = t, o = (u) => {
2028
- r("click", u.report_uuid, "review");
2029
- }, s = (u) => {
2030
- r("click", u.report_uuid, "editor");
2031
- }, _ = () => {
2056
+ })), n = V(), r = t, o = (d) => {
2057
+ r("click", d.report_uuid, "review");
2058
+ }, s = (d) => {
2059
+ r("click", d.report_uuid, "editor");
2060
+ }, f = () => {
2032
2061
  r("click", "", "editor");
2033
- }, i = (u) => {
2034
- console.log(u);
2035
- }, f = (u) => {
2062
+ }, p = (d) => {
2063
+ console.log(d);
2064
+ }, b = (d) => {
2036
2065
  window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2037
2066
  await Ne({
2038
- report_uuids: u
2039
- }), l.value.getTableList();
2067
+ report_uuids: d
2068
+ }), n.value.getTableList();
2040
2069
  });
2041
- }, m = Le([
2070
+ }, _ = J([
2042
2071
  // { type: 'selection', fixed: 'left', width: 70 },
2043
2072
  {
2044
2073
  type: "selection",
@@ -2065,58 +2094,58 @@ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @_
2065
2094
  name: "操作",
2066
2095
  align: "center",
2067
2096
  fixed: "right",
2068
- render: (u) => a("div", null, [a(d("el-button"), {
2097
+ render: (d) => l("div", null, [l(i("el-button"), {
2069
2098
  link: !0,
2070
2099
  type: "primary",
2071
2100
  class: "custom-btn",
2072
2101
  icon: "View",
2073
2102
  title: "预览",
2074
- onClick: () => o(u.row)
2075
- }, null), a(d("el-button"), {
2103
+ onClick: () => o(d.row)
2104
+ }, null), l(i("el-button"), {
2076
2105
  link: !0,
2077
2106
  type: "primary",
2078
2107
  class: "custom-btn",
2079
2108
  icon: "Edit",
2080
2109
  title: "编辑",
2081
- onClick: () => s(u.row)
2082
- }, null), a(d("el-button"), {
2110
+ onClick: () => s(d.row)
2111
+ }, null), l(i("el-button"), {
2083
2112
  link: !0,
2084
2113
  type: "danger",
2085
2114
  icon: "Delete",
2086
2115
  title: "删除",
2087
- onClick: () => f([u.row.report_uuid])
2116
+ onClick: () => b([d.row.report_uuid])
2088
2117
  }, null)])
2089
2118
  }
2090
2119
  ]);
2091
- return (u, h) => {
2092
- const b = d("el-button"), L = d("TdsTable");
2093
- return c(), y("div", Wt, [a(L, {
2120
+ return (d, g) => {
2121
+ const c = i("el-button"), y = i("TdsTable");
2122
+ return m(), w("div", Jt, [l(y, {
2094
2123
  ref_key: "proTable",
2095
- ref: l,
2096
- columns: m,
2097
- "request-api": g(Be),
2124
+ ref: n,
2125
+ columns: _,
2126
+ "request-api": h(Oe),
2098
2127
  "init-param": e.value,
2099
2128
  "row-key": "report_uuid",
2100
- options: u.$tableOptions(),
2129
+ options: d.$tableOptions(),
2101
2130
  "search-col": 6,
2102
- onSelectionChange: i
2131
+ onSelectionChange: p
2103
2132
  }, {
2104
- tableHeader: p((V) => [a(b, {
2133
+ tableHeader: u((C) => [l(c, {
2105
2134
  plain: "",
2106
2135
  type: "primary",
2107
2136
  class: "custom-btn",
2108
2137
  icon: "Plus",
2109
- onClick: _
2138
+ onClick: f
2110
2139
  }, {
2111
- default: p(() => h[0] || (h[0] = [D("添加")])),
2140
+ default: u(() => g[0] || (g[0] = [L("添加")])),
2112
2141
  _: 1
2113
- }), a(b, {
2142
+ }), l(c, {
2114
2143
  plain: "",
2115
2144
  type: "danger",
2116
2145
  icon: "Delete",
2117
- onClick: (v) => f(V.selectedListIds)
2146
+ onClick: (v) => b(C.selectedListIds)
2118
2147
  }, {
2119
- default: p(() => h[1] || (h[1] = [D("删除")])),
2148
+ default: u(() => g[1] || (g[1] = [L("删除")])),
2120
2149
  _: 2
2121
2150
  }, 1032, ["onClick"])]),
2122
2151
  _: 1
@@ -2124,56 +2153,346 @@ const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @_
2124
2153
  };
2125
2154
  }
2126
2155
  });
2127
- const Ot = { style: { height: "100%" } }, Yt = /* @__PURE__ */ $({
2156
+ const Xt = { style: { height: "100%" } }, Zt = /* @__PURE__ */ T({
2128
2157
  name: "TCReport",
2129
2158
  __name: "index",
2130
- setup(n) {
2131
- const t = k(), e = k("table"), l = (r, o) => {
2159
+ setup(a) {
2160
+ const t = V(), e = V("table"), n = (r, o) => {
2132
2161
  t.value = r, e.value = o;
2133
2162
  };
2134
- return (r, o) => (c(), y("div", Ot, [
2135
- a(Re, { name: "slide-fade" }, {
2136
- default: p(() => [
2137
- e.value === "table" ? (c(), S(Nt, {
2163
+ return (r, o) => (m(), w("div", Xt, [
2164
+ l(De, { name: "slide-fade" }, {
2165
+ default: u(() => [
2166
+ e.value === "table" ? (m(), S(Qt, {
2138
2167
  key: 0,
2139
- onClick: l
2140
- })) : R("", !0),
2141
- e.value === "review" ? (c(), S(bt, {
2168
+ onClick: n
2169
+ })) : U("", !0),
2170
+ e.value === "review" ? (m(), S(kt, {
2142
2171
  key: 1,
2143
2172
  "report-id": t.value,
2144
2173
  modelValue: e.value,
2145
2174
  "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
2146
- }, null, 8, ["report-id", "modelValue"])) : R("", !0),
2147
- e.value === "editor" ? (c(), S(Bt, {
2175
+ }, null, 8, ["report-id", "modelValue"])) : U("", !0),
2176
+ e.value === "editor" ? (m(), S(Gt, {
2148
2177
  key: 2,
2149
2178
  "report-id": t.value,
2150
2179
  modelValue: e.value,
2151
2180
  "onUpdate:modelValue": o[1] || (o[1] = (s) => e.value = s)
2152
- }, null, 8, ["report-id", "modelValue"])) : R("", !0)
2181
+ }, null, 8, ["report-id", "modelValue"])) : U("", !0)
2153
2182
  ]),
2154
2183
  _: 1
2155
2184
  })
2156
2185
  ]));
2157
2186
  }
2158
2187
  });
2159
- const qt = (n, t) => {
2160
- if (n.install = (e) => {
2161
- for (const l of [n, ...Object.values(t ?? {})])
2162
- e.component(l.name, l);
2188
+ const Ce = (a, t) => {
2189
+ if (a.install = (e) => {
2190
+ for (const n of [a, ...Object.values(t ?? {})])
2191
+ e.component(n.name, n);
2163
2192
  }, t)
2164
- for (const [e, l] of Object.entries(t))
2165
- n[e] = l;
2166
- return n;
2167
- }, Gt = qt(Yt), Jt = {
2168
- TCReport: Gt
2169
- }, to = {
2170
- install(n, t) {
2171
- Object.entries(Jt).forEach(([e, l]) => {
2172
- n.component(e, l);
2193
+ for (const [e, n] of Object.entries(t))
2194
+ a[e] = n;
2195
+ return a;
2196
+ }, eo = Ce(Zt), to = [
2197
+ {
2198
+ label: "正文",
2199
+ value: "p"
2200
+ },
2201
+ {
2202
+ label: "表格",
2203
+ value: "report-table"
2204
+ },
2205
+ {
2206
+ label: "趋势图",
2207
+ value: "line"
2208
+ },
2209
+ {
2210
+ label: "扇形统计图",
2211
+ value: "pie"
2212
+ },
2213
+ {
2214
+ label: "柱形图",
2215
+ value: "bar"
2216
+ },
2217
+ {
2218
+ label: "描述列表",
2219
+ value: "report-describe"
2220
+ }
2221
+ ], oo = [
2222
+ {
2223
+ value: "p",
2224
+ fields: ["table_key_relation"]
2225
+ },
2226
+ {
2227
+ value: "report-table",
2228
+ fields: ["p_text"]
2229
+ },
2230
+ {
2231
+ value: "line",
2232
+ fields: ["p_text", "table_key_relation"]
2233
+ },
2234
+ {
2235
+ value: "pie",
2236
+ fields: ["p_text", "table_key_relation"]
2237
+ },
2238
+ {
2239
+ value: "bar",
2240
+ fields: ["p_text", "table_key_relation"]
2241
+ },
2242
+ {
2243
+ value: "report-describe",
2244
+ fields: ["p_text"]
2245
+ }
2246
+ ], lo = {
2247
+ class: "table-box"
2248
+ }, no = /* @__PURE__ */ T({
2249
+ __name: "index",
2250
+ setup(a) {
2251
+ const t = V(), e = V(), n = V({}), r = V(""), o = J({
2252
+ prod_type: window.$prodType
2253
+ });
2254
+ function s(c) {
2255
+ window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2256
+ await Ge({
2257
+ rp_item_uuids: c
2258
+ }), t.value.getTableList();
2259
+ });
2260
+ }
2261
+ function f(c) {
2262
+ n.value = c ? Object.assign({}, c) : {
2263
+ table_key_relation: [{
2264
+ name: "",
2265
+ key: "",
2266
+ id: (/* @__PURE__ */ new Date()).getTime()
2267
+ }]
2268
+ }, r.value = c ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2269
+ }
2270
+ async function p(c) {
2271
+ const y = Object.assign({}, c);
2272
+ y.chart_type !== "report-table" && y.chart_type !== "report-describe" && delete y.table_key_relation, y.chart_type !== "p" && (y.p_text = ""), y.rp_item_uuid ? await Qe({
2273
+ rp_item_uuid: y.rp_item_uuid,
2274
+ data: y
2275
+ }) : (y.prod_type = window.$prodType, await Je({
2276
+ data: y
2277
+ })), t.value.getTableList(), e.value.close();
2278
+ }
2279
+ const b = (c) => {
2280
+ n.value.table_key_relation.splice(c, 1);
2281
+ }, _ = () => {
2282
+ n.value.table_key_relation.push({
2283
+ name: "",
2284
+ key: "",
2285
+ id: (/* @__PURE__ */ new Date()).getTime()
2286
+ });
2287
+ }, g = J([{
2288
+ type: "selection",
2289
+ width: 60,
2290
+ field: "rp_item_uuid",
2291
+ align: "center"
2292
+ }, {
2293
+ field: "rp_item_name",
2294
+ name: "组件名称",
2295
+ show: {
2296
+ type: "input"
2297
+ },
2298
+ rules: [{
2299
+ required: !0
2300
+ }]
2301
+ }, {
2302
+ field: "filter_uuid",
2303
+ name: "筛选条件",
2304
+ enum: () => de({
2305
+ prod_type: window.$prodType
2306
+ }),
2307
+ fieldNames: {
2308
+ label: "filter_name",
2309
+ value: "filter_uuid"
2310
+ },
2311
+ show: {
2312
+ type: "select"
2313
+ },
2314
+ rules: [{
2315
+ required: !0
2316
+ }]
2317
+ }, {
2318
+ field: "chart_type",
2319
+ name: "组件类型",
2320
+ enum: to,
2321
+ show: {
2322
+ type: "select",
2323
+ display: oo
2324
+ },
2325
+ rules: [{
2326
+ required: !0
2327
+ }]
2328
+ }, {
2329
+ field: "data_uri",
2330
+ name: "URI",
2331
+ show: {
2332
+ type: "input"
2333
+ },
2334
+ rules: [{
2335
+ required: !0
2336
+ }]
2337
+ }, {
2338
+ field: "table_key_relation",
2339
+ name: "表格数据",
2340
+ hide: !0,
2341
+ show: {
2342
+ render: () => {
2343
+ var c;
2344
+ return l("div", {
2345
+ style: "width:80%"
2346
+ }, [l("div", {
2347
+ class: "flex report-com-title",
2348
+ style: "gap:15px;"
2349
+ }, [l("span", {
2350
+ style: "width:50%"
2351
+ }, [L("表头名称")]), l("span", {
2352
+ style: "width:50%"
2353
+ }, [L("KEY")])]), (c = n.value.table_key_relation) == null ? void 0 : c.map((y, C) => l("div", {
2354
+ class: "flex form-m0 w-100%",
2355
+ style: "gap:15px;margin-bottom:10px;",
2356
+ key: C
2357
+ }, [l(i("el-form-item"), {
2358
+ style: "width:50%"
2359
+ }, {
2360
+ default: () => [l(i("el-input"), {
2361
+ modelValue: y.name,
2362
+ "onUpdate:modelValue": (v) => y.name = v,
2363
+ class: "",
2364
+ placeholder: "表头"
2365
+ }, null)]
2366
+ }), l(i("el-form-item"), {
2367
+ style: "width:50%"
2368
+ }, {
2369
+ default: () => [l(i("el-input"), {
2370
+ modelValue: y.key,
2371
+ "onUpdate:modelValue": (v) => y.key = v,
2372
+ class: "",
2373
+ placeholder: "KEY"
2374
+ }, null)]
2375
+ }), n.value.table_key_relation.length > 1 && l("div", {
2376
+ class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
2377
+ }, [l(i("el-icon"), {
2378
+ onClick: () => b(C)
2379
+ }, {
2380
+ default: () => [l(qe, null, null)]
2381
+ })])])), l(i("el-button"), {
2382
+ class: "report-btn ",
2383
+ icon: "Plus",
2384
+ onClick: () => _()
2385
+ }, {
2386
+ default: () => [L("新增表头与KEY")]
2387
+ })]);
2388
+ }
2389
+ },
2390
+ prop: {
2391
+ required: !0
2392
+ },
2393
+ rules: [{
2394
+ required: !0,
2395
+ validator: (c, y, C) => {
2396
+ delete c.message, y.forEach((v) => {
2397
+ v.name ? v.key || C(new Error("请填写表头名称和KEY")) : C(new Error("请填写表头名称和KEY"));
2398
+ }), C();
2399
+ },
2400
+ trigger: "blur"
2401
+ }]
2402
+ }, {
2403
+ field: "p_text",
2404
+ name: "正文",
2405
+ hide: !0,
2406
+ show: {
2407
+ type: "input",
2408
+ prop: {
2409
+ type: "textarea",
2410
+ rows: 4
2411
+ }
2412
+ },
2413
+ rules: [{
2414
+ required: !0
2415
+ }]
2416
+ }, {
2417
+ field: "create_time",
2418
+ name: "创建时间"
2419
+ }, {
2420
+ field: "operation",
2421
+ width: 140,
2422
+ name: "操作",
2423
+ align: "center",
2424
+ fixed: "right",
2425
+ render: (c) => l("div", null, [l(i("el-button"), {
2426
+ link: !0,
2427
+ type: "primary",
2428
+ class: "custom-btn",
2429
+ icon: "Edit",
2430
+ title: "编辑",
2431
+ onClick: () => f(c.row)
2432
+ }, null), l(i("el-button"), {
2433
+ link: !0,
2434
+ type: "danger",
2435
+ icon: "Delete",
2436
+ title: "删除",
2437
+ onClick: () => s([c.row.rp_item_uuid])
2438
+ }, null)])
2439
+ }]);
2440
+ return (c, y) => {
2441
+ const C = i("el-button"), v = i("TdsTable"), x = i("TdsForm");
2442
+ return m(), w("div", lo, [l(v, {
2443
+ ref_key: "refTdsTable",
2444
+ ref: t,
2445
+ columns: g,
2446
+ "request-api": h(Ke),
2447
+ "init-param": o,
2448
+ "row-key": "rp_item_uuid",
2449
+ options: c.$tableOptions(),
2450
+ "search-col": 6
2451
+ }, {
2452
+ tableHeader: u((E) => [l(C, {
2453
+ plain: "",
2454
+ type: "primary",
2455
+ class: "custom-btn",
2456
+ icon: "Plus",
2457
+ onClick: y[0] || (y[0] = ($) => f())
2458
+ }, {
2459
+ default: u(() => y[1] || (y[1] = [L("添加")])),
2460
+ _: 1
2461
+ }), l(C, {
2462
+ plain: "",
2463
+ type: "danger",
2464
+ icon: "Delete",
2465
+ onClick: ($) => s(E.selectedListIds)
2466
+ }, {
2467
+ default: u(() => y[2] || (y[2] = [L("删除")])),
2468
+ _: 2
2469
+ }, 1032, ["onClick"])]),
2470
+ _: 1
2471
+ }, 8, ["columns", "request-api", "init-param", "options"]), l(x, Ee({
2472
+ ref_key: "refTdsForm",
2473
+ ref: e
2474
+ }, c.$formBindProps({
2475
+ title: r.value,
2476
+ form: n.value,
2477
+ columns: g
2478
+ }), {
2479
+ onSubmit: p
2480
+ }), null, 16)]);
2481
+ };
2482
+ }
2483
+ });
2484
+ const ao = Ce(no), ro = {
2485
+ TCReport: eo,
2486
+ TCModule: ao
2487
+ }, _o = {
2488
+ install(a, t) {
2489
+ Object.entries(ro).forEach(([e, n]) => {
2490
+ a.component(e, n);
2173
2491
  }), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
2174
2492
  }
2175
2493
  };
2176
2494
  export {
2177
- Gt as TCReport,
2178
- to as default
2495
+ ao as TCModule,
2496
+ eo as TCReport,
2497
+ _o as default
2179
2498
  };