@topdatasec/report 1.1.7 → 1.1.9

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,64 +1,101 @@
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";
1
+ import { defineComponent as T, computed as D, resolveComponent as i, openBlock as m, createElementBlock as x, createElementVNode as V, Fragment as F, renderList as q, normalizeClass as M, createBlock as L, createCommentVNode as E, toDisplayString as H, ref as S, createVNode as l, withCtx as u, onMounted as te, normalizeProps as se, guardReactiveProps as ue, isVNode as oe, normalizeStyle as ke, mergeModels as pe, useModel as de, unref as h, createTextVNode as U, resolveDynamicComponent as O, isRef as Ve, withModifiers as Se, watch as Te, resolveDirective as Le, withDirectives as Re, shallowRef as Ue, onBeforeUnmount as Ee, onUnmounted as Ae, reactive as N, TransitionGroup as Fe, mergeProps as ce } from "vue";
2
+ import { defineStore as De, storeToRefs as qe } from "pinia";
3
3
  import { ElMessage as Ie } from "element-plus";
4
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({
5
+ import { Toolbar as He, Editor as Be } from "@wangeditor/editor-for-vue";
6
+ import { CircleClose as je } from "@element-plus/icons-vue";
7
+ import { TdsTable as Pe, TdsForm as Me } from "topdatasec-ui";
8
+ const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), W = (o) => JSON.parse(JSON.stringify(o)), Oe = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), z = (o, t) => o[Oe(t)], Ne = (o) => window.$http.request({
8
9
  url: `${window.$reportURL}/tds/report/demo/get`,
9
10
  method: "get",
10
- params: a,
11
+ params: o,
11
12
  isError: !1
12
- }), pe = (a) => window.$http.request({
13
+ }), me = (o) => window.$http.request({
13
14
  url: `${window.$reportURL}/tds/report/item/get`,
14
15
  method: "get",
15
- params: a,
16
+ params: o,
16
17
  isError: !1
17
- }), Be = (a) => window.$http.request({
18
+ }), We = (o) => window.$http.request({
18
19
  url: `${window.$reportURL}/tds/report/preview`,
19
20
  method: "get",
20
- params: a,
21
+ params: o,
21
22
  isError: !1
22
- }), We = (a) => window.$http.request({
23
+ }), Ye = (o) => window.$http.request({
23
24
  url: `${window.$reportURL}/tds/report/add`,
24
25
  method: "post",
25
- data: a
26
- }), Ye = (a) => window.$http.request({
26
+ data: o
27
+ }), Ke = (o) => window.$http.request({
27
28
  url: `${window.$reportURL}/tds/report/put`,
28
29
  method: "put",
29
- data: a
30
- }), Oe = (a) => window.$http.request({
30
+ data: o
31
+ }), Ge = (o) => window.$http.request({
31
32
  url: `${window.$reportURL}/tds/report/get`,
32
33
  method: "get",
33
- params: a,
34
+ params: o,
34
35
  isError: !1
35
- }), de = (a) => window.$http.request({
36
+ }), _e = (o) => window.$http.request({
36
37
  url: `${window.$reportURL}/tds/report/filter/get`,
37
38
  method: "get",
38
- params: a,
39
+ params: o,
39
40
  isError: !1
40
- }), Ne = (a) => window.$http.request({
41
+ }), Je = (o) => window.$http.request({
41
42
  url: `${window.$reportURL}/tds/report/delete`,
42
43
  method: "delete",
43
- data: a
44
- }), Ke = (a) => window.$http.request({
44
+ data: o
45
+ }), Qe = (o) => window.$http.request({
45
46
  url: `${window.$reportURL}/tds/report/item/list`,
46
47
  method: "get",
47
- params: a,
48
+ params: o,
48
49
  isError: !1
49
- }), Ge = (a) => window.$http.request({
50
+ }), Xe = (o) => window.$http.request({
50
51
  url: `${window.$reportURL}/tds/report/item/delete`,
51
52
  method: "delete",
52
- data: a
53
- }), Je = (a) => window.$http.request({
53
+ data: o
54
+ }), Ze = (o) => window.$http.request({
54
55
  url: `${window.$reportURL}/tds/report/item/add`,
55
56
  method: "post",
56
- data: a
57
- }), Qe = (a) => window.$http.request({
57
+ data: o
58
+ }), et = (o) => window.$http.request({
58
59
  url: `${window.$reportURL}/tds/report/item/put`,
59
60
  method: "put",
60
- data: a
61
- }), ce = "rgba(51, 51, 51, 0.15)", P = "rgba(51, 51, 51, 1)", M = 12, me = (a = !1) => {
61
+ data: o
62
+ }), tt = (o) => window.$http.request({
63
+ url: `${window.$reportURL}/report/sub/get`,
64
+ method: "get",
65
+ params: o,
66
+ isError: !1
67
+ }), ot = (o) => window.$http.request({
68
+ url: `${window.$reportURL}/report/sub/add`,
69
+ method: "post",
70
+ data: o
71
+ }), lt = (o) => window.$http.request({
72
+ url: `${window.$reportURL}/report/sub/put`,
73
+ method: "put",
74
+ data: o
75
+ }), nt = (o) => window.$http.request({
76
+ url: `${window.$reportURL}/report/sub/delete`,
77
+ method: "delete",
78
+ data: o
79
+ }), at = (o) => window.$http.request({
80
+ url: `${window.$reportURL}/report/sub/edit/state`,
81
+ method: "post",
82
+ data: o
83
+ }), rt = (o) => window.$http.request({
84
+ url: `${window.$reportURL}/report/all`,
85
+ method: "get",
86
+ params: o,
87
+ isError: !1
88
+ }), it = (o) => window.$http.request({
89
+ url: `${window.$reportURL}/report/sub/get_format`,
90
+ method: "get",
91
+ params: o,
92
+ isError: !1
93
+ }), st = (o) => window.$http.request({
94
+ url: `${window.$reportURL}/report/filter/get_select_data`,
95
+ method: "get",
96
+ params: o,
97
+ isError: !1
98
+ }), fe = "rgba(51, 51, 51, 0.15)", B = "rgba(51, 51, 51, 1)", P = 12, ve = (o = !1) => {
62
99
  const t = {
63
100
  // top: '2%',
64
101
  left: "3%",
@@ -66,8 +103,8 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
66
103
  bottom: "2%",
67
104
  containLabel: !0
68
105
  };
69
- return a && (t.top = "5%"), t;
70
- }, D = [
106
+ return o && (t.top = "5%"), t;
107
+ }, A = [
71
108
  "46, 145, 255",
72
109
  "48, 212, 183",
73
110
  "108, 108, 255",
@@ -88,12 +125,12 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
88
125
  "100, 161, 206",
89
126
  "246, 175, 159",
90
127
  "238, 97, 97"
91
- ], Xe = (a, t, e = "", n = { name: "name", value: "value" }) => {
92
- const r = [], o = [];
128
+ ], ut = (o, t, e = "", a = { name: "name", value: "value" }) => {
129
+ const r = [], n = [];
93
130
  t.forEach((s) => {
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 = [
131
+ r.push(s[a.name]), n.push(s[a.value]);
132
+ }), o.xAxis[0].data = r, o.series[0].data = n, o.series[0].name = e, o.series[1].data = n, o.series[2].data = n;
133
+ }, G = (o = [
97
134
  {
98
135
  name: "数据1",
99
136
  value: 63
@@ -107,7 +144,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
107
144
  value: 43
108
145
  }
109
146
  ], t = { name: "name", value: "value" }) => {
110
- const e = (r = "rgba(46, 145, 255, 0.7)", o = "rgba(46, 145, 255, 0.2)") => ({
147
+ const e = (r = "rgba(46, 145, 255, 0.7)", n = "rgba(46, 145, 255, 0.2)") => ({
111
148
  color: {
112
149
  type: "linear",
113
150
  x: 0,
@@ -121,11 +158,11 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
121
158
  },
122
159
  {
123
160
  offset: 0.8,
124
- color: o
161
+ color: n
125
162
  }
126
163
  ]
127
164
  }
128
- }), n = a.map((r) => r[t.value]);
165
+ }), a = o.map((r) => r[t.value]);
129
166
  return {
130
167
  // 提示框组件
131
168
  tooltip: {
@@ -137,7 +174,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
137
174
  // type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
138
175
  // show: true,
139
176
  // },
140
- grid: me(),
177
+ grid: ve(),
141
178
  title: {
142
179
  show: !0,
143
180
  text: "样例数据",
@@ -157,7 +194,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
157
194
  nameRotate: 0,
158
195
  // 坐标轴名称旋转
159
196
  axisLabel: {
160
- color: P,
197
+ color: B,
161
198
  // X轴类目名称样式
162
199
  rotate: 0
163
200
  // X轴类目名称旋转角度
@@ -166,7 +203,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
166
203
  //X轴轴线设置
167
204
  show: !0,
168
205
  lineStyle: {
169
- color: ce,
206
+ color: fe,
170
207
  width: 1
171
208
  }
172
209
  },
@@ -174,7 +211,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
174
211
  // X轴刻度相关设置
175
212
  splitLine: { show: !1 },
176
213
  // 横向分隔线
177
- data: a.map((r) => r[t.name])
214
+ data: o.map((r) => r[t.name])
178
215
  }
179
216
  ],
180
217
  // y轴设置
@@ -185,8 +222,8 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
185
222
  // 坐标轴刻度最小值
186
223
  position: "left",
187
224
  nameTextStyle: {
188
- fontSize: M,
189
- color: P,
225
+ fontSize: P,
226
+ color: B,
190
227
  fontWeight: "bold"
191
228
  },
192
229
  axisLine: { show: !1 },
@@ -196,7 +233,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
196
233
  splitLine: { show: !1 },
197
234
  // 纵向分隔线
198
235
  axisLabel: {
199
- color: P,
236
+ color: B,
200
237
  // y轴刻度标签
201
238
  formatter: "{value}",
202
239
  inside: !1
@@ -209,8 +246,8 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
209
246
  type: "bar",
210
247
  barWidth: 15,
211
248
  barGap: "0%",
212
- itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
213
- data: n,
249
+ itemStyle: e(`rgba(${A[0]}, 0.7)`, `rgba(${A[0]}, 0.2)`),
250
+ data: a,
214
251
  label: {
215
252
  show: !0,
216
253
  // 显示标签
@@ -229,8 +266,8 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
229
266
  symbolSize: [15, 10],
230
267
  //调整截面形状
231
268
  symbolOffset: [0, 5],
232
- itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
233
- data: n
269
+ itemStyle: e(`rgba(${A[0]}, 0.7)`, `rgba(${A[0]}, 0.2)`),
270
+ data: a
234
271
  },
235
272
  {
236
273
  // 柱顶圆片
@@ -240,20 +277,20 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
240
277
  //调整截面形状
241
278
  symbolOffset: [0, -5],
242
279
  symbolPosition: "end",
243
- itemStyle: e(`rgba(${D[0]}, 0.9)`, `rgba(${D[0]}, 1)`),
244
- data: n
280
+ itemStyle: e(`rgba(${A[0]}, 0.9)`, `rgba(${A[0]}, 1)`),
281
+ data: a
245
282
  }
246
283
  ]
247
284
  };
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]), {
251
- name: o[e.name],
252
- value: Number(o[e.value])
285
+ }, pt = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
286
+ let a = 0;
287
+ const r = t.map((n, s) => (a += Number(n[e.value]), {
288
+ name: n[e.name],
289
+ value: Number(n[e.value])
253
290
  }));
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 = [
291
+ t.length > 0 && (o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a);
292
+ }, dt = () => A.map((o) => `rgba(${o}, 1)`), Y = ({
293
+ data: o = [
257
294
  {
258
295
  name: "数据1",
259
296
  value: 63
@@ -269,21 +306,21 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
269
306
  ],
270
307
  radiusType: t = 1,
271
308
  roseType: e = !1,
272
- isLegend: n = !0,
309
+ isLegend: a = !0,
273
310
  isLine: r = !1,
274
- center: o = ["50%", "50%"],
311
+ center: n = ["50%", "50%"],
275
312
  isTitle: s = !0
276
313
  }) => {
277
- const f = {
278
- color: et(),
314
+ const v = {
315
+ color: dt(),
279
316
  toolbox: { show: !1 },
280
317
  tooltip: {
281
318
  trigger: "item",
282
319
  show: !0,
283
320
  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>`;
321
+ const { name: y, value: f } = p;
322
+ return `<div style="color: ${p.color}; font-size: 14px;">${y}&nbsp;&nbsp;&nbsp;</div>
323
+ <div><span style="font-size: 14px; color: #86909c; float: right;">数量:${f}</span></div>`;
287
324
  }
288
325
  },
289
326
  title: {
@@ -297,18 +334,18 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
297
334
  y: 10
298
335
  },
299
336
  legend: {
300
- show: n,
337
+ show: a,
301
338
  left: "70%",
302
339
  formatter: (p) => {
303
- var _;
304
- const b = (_ = f.series[0]) == null ? void 0 : _.data.find((d) => d.name === p).value;
305
- return ` ${p} | ${b}`;
340
+ var f;
341
+ const y = (f = v.series[0]) == null ? void 0 : f.data.find((d) => d.name === p).value;
342
+ return ` ${p} | ${y}`;
306
343
  },
307
344
  textStyle: {
308
- fontSize: M,
309
- color: P
345
+ fontSize: P,
346
+ color: B
310
347
  },
311
- data: a,
348
+ data: o,
312
349
  orient: "vertical",
313
350
  itemWidth: 10,
314
351
  itemHeight: 10,
@@ -322,7 +359,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
322
359
  // 展示层
323
360
  {
324
361
  type: "pie",
325
- center: o,
362
+ center: n,
326
363
  radius: t === 1 ? e ? ["10%", "65%"] : ["45%", "70%"] : ["0%", "65%"],
327
364
  roseType: e,
328
365
  itemStyle: {
@@ -383,7 +420,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
383
420
  width: 1
384
421
  }
385
422
  },
386
- data: a
423
+ data: o
387
424
  }
388
425
  ],
389
426
  graphic: [
@@ -413,32 +450,32 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
413
450
  }
414
451
  ]
415
452
  };
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 = () => ({
453
+ return v;
454
+ }, ct = (o, t, e = { name: "name", value: "value" }) => {
455
+ o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
456
+ o.series[r].data = t.map((n) => n[a.value]);
457
+ }) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
458
+ }, mt = () => ({
422
459
  name: "",
423
460
  type: "line",
424
461
  symbol: "circle",
425
462
  smooth: !0,
426
463
  lineStyle: {
427
464
  width: 1,
428
- color: `rgba(${D[0]}, 1)`
465
+ color: `rgba(${A[0]}, 1)`
429
466
  // 线条颜色
430
467
  },
431
468
  showSymbol: !1,
432
469
  itemStyle: {
433
- color: `rgba(${D[0]}, 1)`,
470
+ color: `rgba(${A[0]}, 1)`,
434
471
  //拐点颜色
435
472
  label: {
436
473
  show: !0,
437
474
  //开启显示
438
475
  position: "top",
439
476
  //在上方显示
440
- formatter: function(a) {
441
- return a.value ? a.value : 0;
477
+ formatter: function(o) {
478
+ return o.value ? o.value : 0;
442
479
  }
443
480
  }
444
481
  },
@@ -453,18 +490,18 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
453
490
  // 渐变颜色
454
491
  {
455
492
  offset: 0,
456
- color: `rgba(${D[0]}, 0.7)`
493
+ color: `rgba(${A[0]}, 0.7)`
457
494
  },
458
495
  {
459
496
  offset: 1,
460
- color: `rgba(${D[0]}, 0.1)`
497
+ color: `rgba(${A[0]}, 0.1)`
461
498
  }
462
499
  ],
463
500
  global: !1
464
501
  }
465
502
  },
466
503
  data: []
467
- }), N = (a = [
504
+ }), K = (o = [
468
505
  {
469
506
  name: "2024-08",
470
507
  value: 63
@@ -496,27 +533,27 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
496
533
  show: !0,
497
534
  itemWidth: 30,
498
535
  textStyle: {
499
- color: P,
500
- fontSize: M,
536
+ color: B,
537
+ fontSize: P,
501
538
  padding: [0, 8, 0, 8]
502
539
  }
503
540
  },
504
- grid: me(),
541
+ grid: ve(),
505
542
  xAxis: {
506
543
  type: "category",
507
544
  splitLine: { show: !1 },
508
545
  axisTick: { show: !1 },
509
546
  axisLine: {
510
547
  show: !0,
511
- lineStyle: { color: ce }
548
+ lineStyle: { color: fe }
512
549
  },
513
550
  axisLabel: {
514
551
  show: !0,
515
- fontSize: M,
516
- color: P
552
+ fontSize: P,
553
+ color: B
517
554
  },
518
555
  boundaryGap: !1,
519
- data: a.map((o) => o[t.name])
556
+ data: o.map((n) => n[t.name])
520
557
  },
521
558
  yAxis: {
522
559
  name: "",
@@ -525,33 +562,33 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
525
562
  axisLine: { show: !1 },
526
563
  axisTick: { show: !1 },
527
564
  nameTextStyle: {
528
- fontSize: M,
529
- color: P,
565
+ fontSize: P,
566
+ color: B,
530
567
  padding: [0, 60, 0, 0]
531
568
  },
532
569
  axisLabel: {
533
570
  show: !0,
534
- fontSize: M,
535
- color: P
571
+ fontSize: P,
572
+ color: B
536
573
  }
537
574
  },
538
575
  series: []
539
- }, n = ot(), r = [];
576
+ }, a = mt(), r = [];
540
577
  if (Array.isArray(t.value))
541
- t.value.forEach((o, s) => {
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);
578
+ t.value.forEach((n, s) => {
579
+ const v = W(a);
580
+ v.name = n.name, v.lineStyle.color = `rgba(${A[s]}, 1)`, v.itemStyle.color = `rgba(${A[s]}, 1)`, v.areaStyle.color.colorStops[0].color = `rgba(${A[s]}, 0.7)`, v.areaStyle.color.colorStops[1].color = `rgba(${A[s]}, 0.1)`, v.data = o.map((p) => p[n.value]), r.push(v);
544
581
  });
545
582
  else if (typeof t.value == "string") {
546
- const o = Y(n);
547
- o.data = a.map((s) => s[t.value]), r.push(o);
583
+ const n = W(a);
584
+ n.data = o.map((s) => s[t.value]), r.push(n);
548
585
  }
549
586
  return e.series = r, e;
550
- }, oe = [
587
+ }, le = [
551
588
  { key: "assets", name: "资产名称" },
552
589
  { key: "type", name: "资产类型" },
553
590
  { key: "data", name: "资产数据" }
554
- ], le = [
591
+ ], ne = [
555
592
  { assets: "name1", type: "type1", data: "data1" },
556
593
  { assets: "name2", type: "type2", data: "data2" },
557
594
  { assets: "name3", type: "type3", data: "data3" }
@@ -560,7 +597,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
560
597
  { data: [{ name: "默认数据", value: 311 }], label: "name2" },
561
598
  { data: [{ name: "默认数据", value: 42 }], label: "name3" },
562
599
  { data: [{ name: "默认数据", value: 32391 }], label: "name4" }
563
- ], lt = [
600
+ ], _t = [
564
601
  {
565
602
  data: 63,
566
603
  label: "数据1"
@@ -573,7 +610,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
573
610
  data: 43,
574
611
  label: "数据3"
575
612
  }
576
- ], nt = [
613
+ ], ft = [
577
614
  {
578
615
  type: "report-select",
579
616
  label: "资产:",
@@ -597,7 +634,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
597
634
  }
598
635
  ],
599
636
  uri: "/da/report/sens/get_asset_all",
600
- id: q()
637
+ id: j()
601
638
  },
602
639
  {
603
640
  type: "range-time",
@@ -607,7 +644,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
607
644
  end_time: "2024-09-12 19:49:34"
608
645
  }
609
646
  ],
610
- id: q()
647
+ id: j()
611
648
  },
612
649
  {
613
650
  type: "h1",
@@ -620,7 +657,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
620
657
  textIndent: 0,
621
658
  textAlign: "left"
622
659
  },
623
- id: q()
660
+ id: j()
624
661
  },
625
662
  {
626
663
  type: "h2",
@@ -634,12 +671,12 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
634
671
  textIndent: 0,
635
672
  textAlign: "left"
636
673
  },
637
- id: q()
674
+ id: j()
638
675
  },
639
676
  {
640
677
  type: "report-table",
641
- data: le,
642
- showColumn: oe,
678
+ data: ne,
679
+ showColumn: le,
643
680
  name: "表格",
644
681
  options: {
645
682
  showColumn: {
@@ -652,9 +689,9 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
652
689
  stripe: !1
653
690
  },
654
691
  rp_item_uuid: "",
655
- id: q()
692
+ id: j()
656
693
  }
657
- ], at = [
694
+ ], vt = [
658
695
  {
659
696
  type: "h1",
660
697
  data: "报表名称",
@@ -701,8 +738,8 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
701
738
  { type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
702
739
  {
703
740
  type: "report-table",
704
- data: le,
705
- showColumn: oe,
741
+ data: ne,
742
+ showColumn: le,
706
743
  name: "表格",
707
744
  options: {
708
745
  border: !0,
@@ -722,17 +759,17 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
722
759
  data: Q,
723
760
  showColumn: [{ key: "label", value: "data" }],
724
761
  name: "图表",
725
- options: K(),
762
+ options: G(),
726
763
  rp_item_uuid: "",
727
764
  id: ""
728
765
  }
729
- ], rt = (a) => ({
766
+ ], bt = (o) => ({
730
767
  bar: {
731
768
  type: "bar",
732
769
  data: Q,
733
770
  showColumn: [{ key: "label", value: "data" }],
734
771
  name: "图表",
735
- options: K(),
772
+ options: G(),
736
773
  rp_item_uuid: "",
737
774
  id: ""
738
775
  },
@@ -741,23 +778,23 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
741
778
  data: Q,
742
779
  showColumn: [{ key: "label", value: "data" }],
743
780
  name: "图表",
744
- options: N(),
781
+ options: K(),
745
782
  rp_item_uuid: "",
746
783
  id: ""
747
784
  },
748
785
  pie: {
749
786
  type: "pie",
750
- data: lt,
787
+ data: _t,
751
788
  showColumn: [{ key: "label", value: "data" }],
752
789
  name: "图表",
753
- options: O({ isLegend: !0 }),
790
+ options: Y({ isLegend: !0 }),
754
791
  rp_item_uuid: "",
755
792
  id: ""
756
793
  },
757
794
  "report-table": {
758
795
  type: "report-table",
759
- data: le,
760
- showColumn: oe,
796
+ data: ne,
797
+ showColumn: le,
761
798
  name: "表格",
762
799
  options: {
763
800
  showColumn: {
@@ -772,7 +809,7 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
772
809
  rp_item_uuid: "",
773
810
  id: ""
774
811
  }
775
- })[a], z = Fe("tds-report", {
812
+ })[o], I = De("tds-report", {
776
813
  state: () => ({
777
814
  componentList: [],
778
815
  activeComponents: {},
@@ -784,23 +821,23 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
784
821
  }
785
822
  }),
786
823
  getters: {
787
- getActiveComponents: (a) => a.activeComponents
824
+ getActiveComponents: (o) => o.activeComponents
788
825
  },
789
826
  actions: {
790
827
  // setComponentList
791
- setComponentList(a) {
792
- this.componentList = a;
828
+ setComponentList(o) {
829
+ this.componentList = o;
793
830
  },
794
- async getReportDemo(a) {
831
+ async getReportDemo(o) {
795
832
  let t = [];
796
- a ? t = (await Me({ report_uuid: a })).data : t = { content: Y(nt), range_time: 1 };
833
+ o ? t = (await Ne({ report_uuid: o })).data : t = { content: W(ft), range_time: 1 };
797
834
  const e = [];
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();
835
+ t.content.forEach((a) => {
836
+ (a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = j();
800
837
  }), 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;
801
838
  },
802
- setActiveComponents(a) {
803
- this.activeComponents = a;
839
+ setActiveComponents(o) {
840
+ this.activeComponents = o;
804
841
  },
805
842
  clearComponents() {
806
843
  this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
@@ -809,115 +846,115 @@ const q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
809
846
  };
810
847
  }
811
848
  }
812
- }), it = { class: "catalogue" }, st = ["href", "title"], ut = /* @__PURE__ */ T({
849
+ }), yt = { class: "catalogue" }, gt = ["href", "title"], ht = /* @__PURE__ */ T({
813
850
  __name: "Catalogue",
814
851
  props: {
815
852
  data: { default: () => [] }
816
853
  },
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),
854
+ setup(o) {
855
+ const t = o, e = D(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
856
+ return (a, r) => {
857
+ const n = i("el-divider");
858
+ return m(), x("div", yt, [
859
+ r[0] || (r[0] = V("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
860
+ (m(!0), x(F, null, q(e.value, (s) => (m(), x("div", {
861
+ class: M("level" + s.type),
825
862
  key: s.value
826
863
  }, [
827
- s.type === "h2" ? (m(), S(o, {
864
+ s.type === "h2" ? (m(), L(n, {
828
865
  key: 0,
829
866
  style: { "margin-top": "10px", "margin-bottom": "10px" }
830
- })) : U("", !0),
831
- k("a", {
867
+ })) : E("", !0),
868
+ V("a", {
832
869
  class: "el-anchor__link",
833
870
  href: "#" + s.id,
834
871
  title: s.data
835
- }, j(s.data), 9, st)
872
+ }, H(s.data), 9, gt)
836
873
  ], 2))), 128))
837
874
  ]);
838
875
  };
839
876
  }
840
877
  });
841
- const G = (a, t) => {
842
- const e = a.__vccOpts || a;
843
- for (const [n, r] of t)
844
- e[n] = r;
878
+ const J = (o, t) => {
879
+ const e = o.__vccOpts || o;
880
+ for (const [a, r] of t)
881
+ e[a] = r;
845
882
  return e;
846
- }, pt = /* @__PURE__ */ G(ut, [["__scopeId", "data-v-1cd8aa2d"]]), dt = {
883
+ }, wt = /* @__PURE__ */ J(ht, [["__scopeId", "data-v-1cd8aa2d"]]), Ct = {
847
884
  class: "chart-components"
848
- }, _e = /* @__PURE__ */ T({
885
+ }, be = /* @__PURE__ */ T({
849
886
  __name: "Bar",
850
887
  props: {
851
888
  value: {}
852
889
  },
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, {
890
+ setup(o) {
891
+ const t = o, e = D(() => t.value.options);
892
+ return S(!1), (a, r) => {
893
+ const n = i("TdsChart");
894
+ return m(), x("div", Ct, [l(n, {
858
895
  option: e.value
859
896
  }, null, 8, ["option"])]);
860
897
  };
861
898
  }
862
- }), ct = { class: "chart-components" }, fe = /* @__PURE__ */ T({
899
+ }), xt = { class: "chart-components" }, ye = /* @__PURE__ */ T({
863
900
  __name: "Line",
864
901
  props: {
865
902
  value: {}
866
903
  },
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"])
904
+ setup(o) {
905
+ const t = o, e = D(() => t.value.options);
906
+ return (a, r) => {
907
+ const n = i("TdsChart");
908
+ return m(), x("div", xt, [
909
+ l(n, { option: e.value }, null, 8, ["option"])
873
910
  ]);
874
911
  };
875
912
  }
876
- }), mt = { class: "chart-components" }, ve = /* @__PURE__ */ T({
913
+ }), $t = { class: "chart-components" }, ge = /* @__PURE__ */ T({
877
914
  __name: "Pie",
878
915
  props: {
879
916
  value: {}
880
917
  },
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"])
918
+ setup(o) {
919
+ const t = o, e = D(() => t.value.options);
920
+ return (a, r) => {
921
+ const n = i("TdsChart");
922
+ return m(), x("div", $t, [
923
+ l(n, { option: e.value }, null, 8, ["option"])
887
924
  ]);
888
925
  };
889
926
  }
890
- }), _t = { key: 0 }, X = /* @__PURE__ */ T({
927
+ }), kt = { key: 0 }, X = /* @__PURE__ */ T({
891
928
  __name: "ReportSelect",
892
929
  props: {
893
930
  value: {}
894
931
  },
895
932
  emits: ["change"],
896
- setup(a, { emit: t }) {
897
- const e = t, n = (s) => {
933
+ setup(o, { emit: t }) {
934
+ const e = t, a = (s) => {
898
935
  e("change", s);
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, {
904
- modelValue: o.value.value,
905
- "onUpdate:modelValue": f[0] || (f[0] = (_) => o.value.value = _),
936
+ }, n = S(o.value);
937
+ return (s, v) => {
938
+ const p = i("el-option"), y = i("el-select");
939
+ return n.value.data ? (m(), x("div", kt, [
940
+ l(y, {
941
+ modelValue: n.value.value,
942
+ "onUpdate:modelValue": v[0] || (v[0] = (f) => n.value.value = f),
906
943
  multiple: "",
907
944
  style: { width: "100%" },
908
- onChange: n,
945
+ onChange: a,
909
946
  placeholder: "全部"
910
947
  }, {
911
948
  default: u(() => [
912
- (m(!0), w(F, null, I(o.value.data, (_) => (m(), S(p, {
913
- key: _.data,
914
- label: _.label,
915
- value: _.data
949
+ (m(!0), x(F, null, q(n.value.data, (f) => (m(), L(p, {
950
+ key: f.data,
951
+ label: f.label,
952
+ value: f.data
916
953
  }, null, 8, ["label", "value"]))), 128))
917
954
  ]),
918
955
  _: 1
919
956
  }, 8, ["modelValue"])
920
- ])) : U("", !0);
957
+ ])) : E("", !0);
921
958
  };
922
959
  }
923
960
  }), Z = /* @__PURE__ */ T({
@@ -926,19 +963,19 @@ const G = (a, t) => {
926
963
  value: {}
927
964
  },
928
965
  emits: ["change"],
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);
966
+ setup(o, { emit: t }) {
967
+ const e = t, r = S(o.value), n = S([]);
968
+ function s(v) {
969
+ v ? (r.value.data[0].start_time = v[0], r.value.data[0].end_time = v[1]) : n.value = [], e("change", n.value);
933
970
  }
934
971
  return te(() => {
935
- o.value = [r.value.data[0].start_time, r.value.data[0].end_time];
936
- }), (f, p) => {
937
- const b = i("el-date-picker");
938
- return m(), w("div", null, [
939
- l(b, {
940
- modelValue: o.value,
941
- "onUpdate:modelValue": p[0] || (p[0] = (_) => o.value = _),
972
+ n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
973
+ }), (v, p) => {
974
+ const y = i("el-date-picker");
975
+ return m(), x("div", null, [
976
+ l(y, {
977
+ modelValue: n.value,
978
+ "onUpdate:modelValue": p[0] || (p[0] = (f) => n.value = f),
942
979
  type: "datetimerange",
943
980
  placeholder: "Pick a Date",
944
981
  format: "YYYY-MM-DD HH:mm:ss",
@@ -950,137 +987,137 @@ const G = (a, t) => {
950
987
  };
951
988
  }
952
989
  });
953
- function ft(a) {
954
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !ie(a);
990
+ function Vt(o) {
991
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
955
992
  }
956
- const be = /* @__PURE__ */ T({
993
+ const he = /* @__PURE__ */ T({
957
994
  __name: "ReportTable",
958
995
  props: {
959
996
  value: {}
960
997
  },
961
- setup(a) {
962
- const t = a, e = (n) => {
998
+ setup(o) {
999
+ const t = o, e = (a) => {
963
1000
  let r;
964
1001
  return l(i("el-table"), {
965
- data: n.data,
1002
+ data: a.data,
966
1003
  border: t.value.options.border,
967
1004
  "show-header": !!t.value.options.showHeader,
968
1005
  stripe: t.value.options.stripe
969
- }, ft(r = n.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? l(i("el-table-column"), {
970
- prop: o.key,
971
- label: o.name
1006
+ }, Vt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(i("el-table-column"), {
1007
+ prop: n.key,
1008
+ label: n.name
972
1009
  }, null) : null)) ? r : {
973
1010
  default: () => [r]
974
1011
  });
975
1012
  };
976
- return (n, r) => (m(), w("div", null, [l(e, ae(re(n.value)), null, 16)]));
1013
+ return (a, r) => (m(), x("div", null, [l(e, se(ue(a.value)), null, 16)]));
977
1014
  }
978
1015
  }), ee = /* @__PURE__ */ T({
979
1016
  __name: "ReportText",
980
1017
  props: {
981
1018
  value: {}
982
1019
  },
983
- setup(a) {
984
- const t = a, e = () => {
985
- const n = t.value.options || {};
1020
+ setup(o) {
1021
+ const t = o, e = () => {
1022
+ const a = t.value.options || {};
986
1023
  return {
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
1024
+ color: a.color,
1025
+ "font-size": a.size + "px",
1026
+ "font-weight": a.fontWeight,
1027
+ "letter-spacing": a.letterSpacing + "px",
1028
+ "text-indent": a.textIndent + "px",
1029
+ "text-align": a.textAlign
993
1030
  };
994
1031
  };
995
- return (n, r) => (m(), w("div", {
996
- style: xe(e())
997
- }, j(n.value.data), 5));
1032
+ return (a, r) => (m(), x("div", {
1033
+ style: ke(e())
1034
+ }, H(a.value.data), 5));
998
1035
  }
999
- }), vt = { class: "chart-components" }, ge = /* @__PURE__ */ T({
1036
+ }), St = { class: "chart-components" }, we = /* @__PURE__ */ T({
1000
1037
  __name: "ReportChart",
1001
1038
  props: {
1002
1039
  value: {}
1003
1040
  },
1004
- setup(a) {
1005
- const t = a, e = A(() => t.value), n = A(() => {
1041
+ setup(o) {
1042
+ const t = o, e = D(() => t.value), a = D(() => {
1006
1043
  if (e.value.type === "bar") {
1007
- e.value.options.series = K([]).series;
1044
+ e.value.options.series = G([]).series;
1008
1045
  const r = [];
1009
- let o = "";
1046
+ let n = "";
1010
1047
  e.value.data.forEach((s) => {
1011
- o = s.data[0].name, r.push({
1048
+ n = s.data[0].name, r.push({
1012
1049
  name: s.label,
1013
1050
  value: s.data[0].value
1014
1051
  });
1015
- }), Xe(e.value.options, r, o);
1052
+ }), ut(e.value.options, r, n);
1016
1053
  }
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") {
1054
+ if (e.value.type === "pie" && (e.value.options = Y({ isLegend: !0 }), console.log(Y({ isLegend: !0 }), "chartsPie({ isLegend: true })"), pt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
1018
1055
  let r = [];
1019
- e.value.data.forEach((f) => {
1020
- r = f.data.map((p, b) => ({ name: p.name, value: "value" + b }));
1056
+ e.value.data.forEach((v) => {
1057
+ r = v.data.map((p, y) => ({ name: p.name, value: "value" + y }));
1021
1058
  });
1022
- const o = {
1059
+ const n = {
1023
1060
  name: "name",
1024
1061
  value: r
1025
- }, s = e.value.data.map((f) => {
1062
+ }, s = e.value.data.map((v) => {
1026
1063
  const p = {
1027
- name: f.label
1064
+ name: v.label
1028
1065
  };
1029
- return r.forEach((b, _) => {
1030
- p[b.value] = f.data[_].value;
1066
+ return r.forEach((y, f) => {
1067
+ p[y.value] = v.data[f].value;
1031
1068
  }), p;
1032
1069
  });
1033
- console.log(N([], o), "chartsLine([], params)"), e.value.options.series = N([], o).series, tt(e.value.options, s, o);
1070
+ console.log(K([], n), "chartsLine([], params)"), e.value.options.series = K([], n).series, ct(e.value.options, s, n);
1034
1071
  }
1035
1072
  return e.value.options;
1036
1073
  });
1037
- return (r, o) => {
1074
+ return (r, n) => {
1038
1075
  const s = i("TdsChart");
1039
- return m(), w("div", vt, [
1040
- l(s, { option: n.value }, null, 8, ["option"])
1076
+ return m(), x("div", St, [
1077
+ l(s, { option: a.value }, null, 8, ["option"])
1041
1078
  ]);
1042
1079
  };
1043
1080
  }
1044
1081
  });
1045
- function bt(a) {
1046
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !ie(a);
1082
+ function Tt(o) {
1083
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
1047
1084
  }
1048
- const ye = /* @__PURE__ */ T({
1085
+ const Ce = /* @__PURE__ */ T({
1049
1086
  __name: "ReportDescribe",
1050
1087
  props: {
1051
1088
  value: {}
1052
1089
  },
1053
- setup(a) {
1054
- const t = a, e = (n) => {
1090
+ setup(o) {
1091
+ const t = o, e = (a) => {
1055
1092
  let r;
1056
1093
  return l(i("el-descriptions"), {
1057
1094
  title: t.value.options.title,
1058
1095
  border: t.value.options.border,
1059
1096
  column: t.value.options.column,
1060
1097
  direction: t.value.options.direction
1061
- }, bt(r = n.showColumn.map((o) => l(i("el-descriptions-item"), {
1062
- label: o.name
1098
+ }, Tt(r = a.showColumn.map((n) => l(i("el-descriptions-item"), {
1099
+ label: n.name
1063
1100
  }, {
1064
- default: () => [t.value.data[o.key]]
1101
+ default: () => [t.value.data[n.key]]
1065
1102
  }))) ? r : {
1066
1103
  default: () => [r]
1067
1104
  });
1068
1105
  };
1069
- return (n, r) => (m(), w("div", null, [l(e, ae(re(n.value)), null, 16)]));
1106
+ return (a, r) => (m(), x("div", null, [l(e, se(ue(a.value)), null, 16)]));
1070
1107
  }
1071
- }), gt = {
1108
+ }), Lt = {
1072
1109
  class: "editor-box"
1073
- }, yt = {
1110
+ }, Rt = {
1074
1111
  class: "editor",
1075
1112
  id: "editor",
1076
1113
  style: {
1077
1114
  width: "100%"
1078
1115
  }
1079
- }, ht = {
1116
+ }, Ut = {
1080
1117
  class: "editor-content flex flex-start"
1081
- }, wt = ["id"], Ct = ["innerHTML"], xt = /* @__PURE__ */ T({
1118
+ }, Et = ["id"], At = ["innerHTML"], Ft = /* @__PURE__ */ T({
1082
1119
  __name: "index",
1083
- props: /* @__PURE__ */ se({
1120
+ props: /* @__PURE__ */ pe({
1084
1121
  reportId: {
1085
1122
  type: String,
1086
1123
  default: ""
@@ -1090,223 +1127,223 @@ const ye = /* @__PURE__ */ T({
1090
1127
  modelModifiers: {}
1091
1128
  }),
1092
1129
  emits: ["update:modelValue"],
1093
- setup(a) {
1130
+ setup(o) {
1094
1131
  const t = {
1095
- Bar: _e,
1096
- Line: fe,
1097
- Pie: ve,
1132
+ Bar: be,
1133
+ Line: ye,
1134
+ Pie: ge,
1098
1135
  ReportSelect: X,
1099
1136
  RangeTime: Z,
1100
- ReportTable: be,
1137
+ ReportTable: he,
1101
1138
  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 _() {
1139
+ ReportChart: we,
1140
+ ReportDescribe: Ce
1141
+ }, e = I(), a = o, r = de(o, "modelValue"), n = S([]), s = S([]), v = S([]), p = S(""), y = S("");
1142
+ function f() {
1106
1143
  r.value = "table";
1107
1144
  }
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();
1145
+ const d = (b) => {
1146
+ v.value = b, c();
1147
+ }, w = (b) => {
1148
+ b && b.length > 0 && (p.value = b[0], y.value = b[1]), c();
1112
1149
  }, c = async () => {
1113
- const v = {
1114
- report_uuid: n.reportId,
1150
+ const b = {
1151
+ report_uuid: a.reportId,
1115
1152
  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($);
1121
- }), o.value = E, x.data.splice(0, o.value.length), s.value = x.data;
1153
+ end_time: y.value,
1154
+ select_data: v.value.join(",")
1155
+ }, _ = await We(b), g = [];
1156
+ _.data.forEach((k) => {
1157
+ (k.type === "report-select" || k.type === "range-time") && g.push(k);
1158
+ }), n.value = g, _.data.splice(0, n.value.length), s.value = _.data;
1122
1159
  };
1123
1160
  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);
1125
- return (v, x) => {
1126
- const E = i("el-button"), $ = i("el-card");
1127
- return m(), S($, {
1161
+ const C = () => l("div", null, [U("未找到对应组件")]), $ = (b) => b === "h2" || b === "h3" || b === "h4" ? z(t, "ReportText") : b === "bar" || b === "pie" || b === "line" ? z(t, "ReportChart") : b ? z(t, b) : l(C, null, null);
1162
+ return (b, _) => {
1163
+ const g = i("el-button"), k = i("el-card");
1164
+ return m(), L(k, {
1128
1165
  class: "editor view"
1129
1166
  }, {
1130
- default: u(() => [k("div", gt, [l(pt, {
1167
+ default: u(() => [V("div", Lt, [l(wt, {
1131
1168
  data: s.value
1132
- }, null, 8, ["data"]), k("div", yt, [k("div", ht, [(m(!0), w(F, null, I(o.value, (R) => (m(), w("div", {
1169
+ }, null, 8, ["data"]), V("div", Rt, [V("div", Ut, [(m(!0), x(F, null, q(n.value, (R) => (m(), x("div", {
1133
1170
  class: "item-input",
1134
1171
  key: R.id
1135
- }, [R.type === "report-select" ? (m(), S(X, {
1172
+ }, [R.type === "report-select" ? (m(), L(X, {
1136
1173
  key: 0,
1137
1174
  onChange: d,
1138
1175
  value: R
1139
- }, null, 8, ["value"])) : U("", !0), R.type === "range-time" && h(e).filterForm.range_time ? (m(), S(Z, {
1176
+ }, null, 8, ["value"])) : E("", !0), R.type === "range-time" && h(e).filterForm.range_time ? (m(), L(Z, {
1140
1177
  key: 1,
1141
- onChange: g,
1178
+ onChange: w,
1142
1179
  value: R
1143
- }, null, 8, ["value"])) : U("", !0)]))), 128)), l(E, {
1180
+ }, null, 8, ["value"])) : E("", !0)]))), 128)), l(g, {
1144
1181
  plain: "",
1145
- onClick: _,
1182
+ onClick: f,
1146
1183
  type: "primary",
1147
1184
  class: "custom-btn",
1148
1185
  style: {
1149
1186
  "margin-left": "auto"
1150
1187
  }
1151
1188
  }, {
1152
- default: u(() => x[0] || (x[0] = [L("退出预览")])),
1189
+ default: u(() => _[0] || (_[0] = [U("退出预览")])),
1153
1190
  _: 1
1154
- })]), (m(!0), w(F, null, I(s.value, (R) => (m(), w("div", {
1191
+ })]), (m(!0), x(F, null, q(s.value, (R) => (m(), x("div", {
1155
1192
  key: R.id,
1156
- class: B(["editor-content", ["editor" + R.type]]),
1193
+ class: M(["editor-content", ["editor" + R.type]]),
1157
1194
  id: R.id
1158
- }, [R.type !== "p" ? (m(), S(W(C(R.type)), {
1195
+ }, [R.type !== "p" ? (m(), L(O($(R.type)), {
1159
1196
  key: 0,
1160
- class: B(["editor" + R.type]),
1197
+ class: M(["editor" + R.type]),
1161
1198
  value: R
1162
1199
  }, {
1163
- default: u(() => [L(j(R.data), 1)]),
1200
+ default: u(() => [U(H(R.data), 1)]),
1164
1201
  _: 2
1165
- }, 1032, ["class", "value"])) : (m(), w("p", {
1202
+ }, 1032, ["class", "value"])) : (m(), x("p", {
1166
1203
  key: 1,
1167
1204
  innerHTML: R.data
1168
- }, null, 8, Ct))], 10, wt))), 128))])])]),
1205
+ }, null, 8, At))], 10, Et))), 128))])])]),
1169
1206
  _: 1
1170
1207
  });
1171
1208
  };
1172
1209
  }
1173
1210
  });
1174
- const kt = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-2d59469a"]]), $t = {
1211
+ const Dt = /* @__PURE__ */ J(Ft, [["__scopeId", "data-v-2d59469a"]]), qt = {
1175
1212
  class: "editor"
1176
- }, Vt = {
1213
+ }, It = {
1177
1214
  class: "editor-content edit"
1178
- }, St = ["onClick"], Tt = ["onClick"], Lt = ["innerHTML", "draggable"], Rt = /* @__PURE__ */ T({
1215
+ }, zt = ["onClick"], Ht = ["onClick"], Bt = ["innerHTML", "draggable"], jt = /* @__PURE__ */ T({
1179
1216
  __name: "Editor",
1180
- setup(a) {
1217
+ setup(o) {
1181
1218
  const t = {
1182
- Bar: _e,
1183
- Line: fe,
1184
- Pie: ve,
1219
+ Bar: be,
1220
+ Line: ye,
1221
+ Pie: ge,
1185
1222
  ReportSelect: X,
1186
1223
  RangeTime: Z,
1187
- ReportTable: be,
1224
+ ReportTable: he,
1188
1225
  ReportText: ee,
1189
- ReportChart: ge,
1190
- ReportDescribe: ye
1226
+ ReportChart: we,
1227
+ ReportDescribe: Ce
1191
1228
  }, {
1192
1229
  componentList: e,
1193
- activeComponents: n,
1230
+ activeComponents: a,
1194
1231
  notDraggableList: r,
1195
- titleComponent: o
1196
- } = Ae(z()), s = z(), f = (v) => {
1197
- e.value.forEach((x, E) => {
1198
- x.id === v && (e.value.splice(E, 1), s.activeComponents = []);
1232
+ titleComponent: n
1233
+ } = qe(I()), s = I(), v = (b) => {
1234
+ e.value.forEach((_, g) => {
1235
+ _.id === b && (e.value.splice(g, 1), s.activeComponents = []);
1199
1236
  });
1200
- }, p = (v) => {
1201
- s.setActiveComponents(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) => {
1203
- console.log(v, "evt");
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();
1209
- return (v, x) => {
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"
1237
+ }, p = (b) => {
1238
+ s.setActiveComponents(b);
1239
+ }, y = () => l("div", null, [U("未找到对应组件")]), f = (b) => b === "h2" || b === "h3" || b === "h4" ? z(t, "ReportText") : b === "bar" || b === "pie" || b === "line" ? z(t, "ReportChart") : b ? z(t, b) : l(y, null, null), d = (b) => {
1240
+ console.log(b, "evt");
1241
+ }, w = S(!1), c = () => {
1242
+ w.value = !0;
1243
+ }, C = (b) => {
1244
+ b.newIndex !== 0 && (console.log(b), w.value = !1);
1245
+ }, $ = S();
1246
+ return (b, _) => {
1247
+ const g = i("icon-material-symbols:cancel-outline");
1248
+ return m(), x("div", qt, [V("div", {
1249
+ class: M(["editor-content edit flex flex-start", [{
1250
+ active: h(a).id === "filter"
1214
1251
  }]]),
1215
- onClick: x[0] || (x[0] = ($) => p({
1252
+ onClick: _[0] || (_[0] = (k) => p({
1216
1253
  id: "filter",
1217
1254
  type: "filter"
1218
1255
  }))
1219
- }, [(m(!0), w(F, null, I(h(r), ($) => (m(), w("div", {
1256
+ }, [(m(!0), x(F, null, q(h(r), (k) => (m(), x("div", {
1220
1257
  class: "item-input",
1221
- key: $.id
1222
- }, [$.type === "report-select" || $.type === "range-time" && h(s).filterForm.range_time ? (m(), S(W(h(H)(t, $.type)), {
1258
+ key: k.id
1259
+ }, [k.type === "report-select" || k.type === "range-time" && h(s).filterForm.range_time ? (m(), L(O(h(z)(t, k.type)), {
1223
1260
  key: 0,
1224
- value: $
1261
+ value: k
1225
1262
  }, {
1226
- default: u(() => [L(j($.data), 1)]),
1263
+ default: u(() => [U(H(k.data), 1)]),
1227
1264
  _: 2
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)))
1265
+ }, 1032, ["value"])) : E("", !0)]))), 128))], 2), V("div", It, [l(ee, {
1266
+ value: h(n),
1267
+ onClick: _[1] || (_[1] = (k) => p(h(n)))
1231
1268
  }, null, 8, ["value"])]), l(h(ze), {
1232
1269
  ref_key: "el",
1233
- ref: C,
1270
+ ref: $,
1234
1271
  modelValue: h(e),
1235
- "onUpdate:modelValue": x[2] || (x[2] = ($) => ke(e) ? e.value = $ : null),
1272
+ "onUpdate:modelValue": _[2] || (_[2] = (k) => Ve(e) ? e.value = k : null),
1236
1273
  "on-change": d,
1237
1274
  animation: 150,
1238
1275
  onStart: c,
1239
- onEnd: y
1276
+ onEnd: C
1240
1277
  }, {
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
1278
+ default: u(() => [(m(!0), x(F, null, q(h(e), (k) => (m(), x("div", {
1279
+ key: k.id,
1280
+ class: M(["editor-content edit", ["editor" + k.type, {
1281
+ active: k.id === h(a).id
1245
1282
  }]]),
1246
- onClick: (R) => p($)
1247
- }, [k("i", {
1248
- onClick: $e((R) => f($.id), ["stop"])
1249
- }, [l(E, {
1283
+ onClick: (R) => p(k)
1284
+ }, [V("i", {
1285
+ onClick: Se((R) => v(k.id), ["stop"])
1286
+ }, [l(g, {
1250
1287
  class: "color-red"
1251
- })], 8, Tt), $.type !== "p" ? (m(), S(W(_($.type)), {
1288
+ })], 8, Ht), k.type !== "p" ? (m(), L(O(f(k.type)), {
1252
1289
  key: 0,
1253
- class: B(["editor" + $.type]),
1254
- value: $,
1255
- draggable: g.value
1290
+ class: M(["editor" + k.type]),
1291
+ value: k,
1292
+ draggable: w.value
1256
1293
  }, {
1257
- default: u(() => [L(j($.data), 1)]),
1294
+ default: u(() => [U(H(k.data), 1)]),
1258
1295
  _: 2
1259
- }, 1032, ["class", "value", "draggable"])) : (m(), w("p", {
1296
+ }, 1032, ["class", "value", "draggable"])) : (m(), x("p", {
1260
1297
  key: 1,
1261
- innerHTML: $.data,
1262
- draggable: g.value
1263
- }, null, 8, Lt))], 10, St))), 128))]),
1298
+ innerHTML: k.data,
1299
+ draggable: w.value
1300
+ }, null, 8, Bt))], 10, zt))), 128))]),
1264
1301
  _: 1
1265
1302
  }, 8, ["modelValue"])]);
1266
1303
  };
1267
1304
  }
1268
- }), Ut = { class: "label" }, Dt = { class: "flex item-switch" }, Et = { class: "flex item-switch" }, Ft = { class: "flex item-switch" }, he = /* @__PURE__ */ T({
1305
+ }), Pt = { class: "label" }, Mt = { class: "flex item-switch" }, Ot = { class: "flex item-switch" }, Nt = { class: "flex item-switch" }, xe = /* @__PURE__ */ T({
1269
1306
  __name: "SettingTable",
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, [
1307
+ setup(o) {
1308
+ const t = I(), e = D(() => t.getActiveComponents);
1309
+ return (a, r) => {
1310
+ const n = i("el-switch"), s = i("el-form-item"), v = i("el-divider");
1311
+ return m(), x("div", null, [
1275
1312
  l(s, { label: "控制列" }, {
1276
1313
  default: u(() => [
1277
- (m(!0), w(F, null, I(e.value.showColumn, (p, b) => (m(), w("p", {
1314
+ (m(!0), x(F, null, q(e.value.showColumn, (p, y) => (m(), x("p", {
1278
1315
  class: "flex item-switch",
1279
- key: b
1316
+ key: y
1280
1317
  }, [
1281
- k("span", Ut, j(p.name), 1),
1282
- l(o, {
1318
+ V("span", Pt, H(p.name), 1),
1319
+ l(n, {
1283
1320
  modelValue: e.value.options.showColumn[p.key],
1284
- "onUpdate:modelValue": (_) => e.value.options.showColumn[p.key] = _
1321
+ "onUpdate:modelValue": (f) => e.value.options.showColumn[p.key] = f
1285
1322
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1286
1323
  ]))), 128))
1287
1324
  ]),
1288
1325
  _: 1
1289
1326
  }),
1290
- l(f),
1327
+ l(v),
1291
1328
  l(s, { label: "表格样式" }, {
1292
1329
  default: u(() => [
1293
- k("p", Dt, [
1294
- r[3] || (r[3] = k("span", { class: "label" }, "斑马纹", -1)),
1295
- l(o, {
1330
+ V("p", Mt, [
1331
+ r[3] || (r[3] = V("span", { class: "label" }, "斑马纹", -1)),
1332
+ l(n, {
1296
1333
  modelValue: e.value.options.stripe,
1297
1334
  "onUpdate:modelValue": r[0] || (r[0] = (p) => e.value.options.stripe = p)
1298
1335
  }, null, 8, ["modelValue"])
1299
1336
  ]),
1300
- k("p", Et, [
1301
- r[4] || (r[4] = k("span", { class: "label" }, "边框", -1)),
1302
- l(o, {
1337
+ V("p", Ot, [
1338
+ r[4] || (r[4] = V("span", { class: "label" }, "边框", -1)),
1339
+ l(n, {
1303
1340
  modelValue: e.value.options.border,
1304
1341
  "onUpdate:modelValue": r[1] || (r[1] = (p) => e.value.options.border = p)
1305
1342
  }, null, 8, ["modelValue"])
1306
1343
  ]),
1307
- k("p", Ft, [
1308
- r[5] || (r[5] = k("span", { class: "label" }, "表头", -1)),
1309
- l(o, {
1344
+ V("p", Nt, [
1345
+ r[5] || (r[5] = V("span", { class: "label" }, "表头", -1)),
1346
+ l(n, {
1310
1347
  modelValue: e.value.options.showHeader,
1311
1348
  "onUpdate:modelValue": r[2] || (r[2] = (p) => e.value.options.showHeader = p)
1312
1349
  }, null, 8, ["modelValue"])
@@ -1317,85 +1354,85 @@ const kt = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-2d59469a"]]), $t = {
1317
1354
  ]);
1318
1355
  };
1319
1356
  }
1320
- }), At = { key: 0 }, It = /* @__PURE__ */ T({
1357
+ }), Wt = { key: 0 }, Yt = /* @__PURE__ */ T({
1321
1358
  __name: "ChartsUniConfig",
1322
- setup(a) {
1323
- const t = z(), e = A(() => t.activeComponents);
1324
- function n(r) {
1359
+ setup(o) {
1360
+ const t = I(), e = D(() => t.activeComponents);
1361
+ function a(r) {
1325
1362
  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);
1326
1363
  }
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: "标题" }, {
1364
+ return S("rgb(46, 145, 255)"), (r, n) => {
1365
+ const s = i("el-input"), v = i("el-form-item"), p = i("el-switch"), y = i("el-col"), f = i("el-color-picker"), d = i("el-input-number"), w = i("el-row"), c = i("el-collapse-item"), C = i("el-collapse");
1366
+ return e.value.options.title ? (m(), x("div", Wt, [
1367
+ l(v, { label: "标题" }, {
1331
1368
  default: u(() => [
1332
1369
  l(s, {
1333
1370
  modelValue: e.value.options.title.text,
1334
- "onUpdate:modelValue": o[0] || (o[0] = (C) => e.value.options.title.text = C)
1371
+ "onUpdate:modelValue": n[0] || (n[0] = ($) => e.value.options.title.text = $)
1335
1372
  }, null, 8, ["modelValue"])
1336
1373
  ]),
1337
1374
  _: 1
1338
1375
  }),
1339
- l(y, null, {
1376
+ l(C, null, {
1340
1377
  default: u(() => [
1341
1378
  l(c, {
1342
1379
  title: "标题配置",
1343
1380
  name: "1"
1344
1381
  }, {
1345
1382
  default: u(() => [
1346
- l(g, { class: "w-100%" }, {
1383
+ l(w, { class: "w-100%" }, {
1347
1384
  default: u(() => [
1348
- l(b, { span: 24 }, {
1385
+ l(y, { span: 24 }, {
1349
1386
  default: u(() => [
1350
- o[8] || (o[8] = k("span", { class: "switch-label" }, "显示标题", -1)),
1387
+ n[8] || (n[8] = V("span", { class: "switch-label" }, "显示标题", -1)),
1351
1388
  l(p, {
1352
1389
  modelValue: e.value.options.title.show,
1353
- "onUpdate:modelValue": o[1] || (o[1] = (C) => e.value.options.title.show = C)
1390
+ "onUpdate:modelValue": n[1] || (n[1] = ($) => e.value.options.title.show = $)
1354
1391
  }, null, 8, ["modelValue"])
1355
1392
  ]),
1356
1393
  _: 1
1357
1394
  }),
1358
- l(b, { span: 12 }, {
1395
+ l(y, { span: 12 }, {
1359
1396
  default: u(() => [
1360
- l(_, {
1397
+ l(f, {
1361
1398
  modelValue: e.value.options.title.textStyle.color,
1362
- "onUpdate:modelValue": o[2] || (o[2] = (C) => e.value.options.title.textStyle.color = C),
1399
+ "onUpdate:modelValue": n[2] || (n[2] = ($) => e.value.options.title.textStyle.color = $),
1363
1400
  "show-alpha": ""
1364
1401
  }, null, 8, ["modelValue"]),
1365
- o[9] || (o[9] = k("p", { class: "sub-title" }, "颜色", -1))
1402
+ n[9] || (n[9] = V("p", { class: "sub-title" }, "颜色", -1))
1366
1403
  ]),
1367
1404
  _: 1
1368
1405
  }),
1369
- l(b, { span: 12 }, {
1406
+ l(y, { span: 12 }, {
1370
1407
  default: u(() => [
1371
1408
  l(d, {
1372
1409
  modelValue: e.value.options.title.textStyle.fontSize,
1373
- "onUpdate:modelValue": o[3] || (o[3] = (C) => e.value.options.title.textStyle.fontSize = C),
1410
+ "onUpdate:modelValue": n[3] || (n[3] = ($) => e.value.options.title.textStyle.fontSize = $),
1374
1411
  "controls-position": "right"
1375
1412
  }, null, 8, ["modelValue"]),
1376
- o[10] || (o[10] = k("p", { class: "sub-title" }, "字体大小", -1))
1413
+ n[10] || (n[10] = V("p", { class: "sub-title" }, "字体大小", -1))
1377
1414
  ]),
1378
1415
  _: 1
1379
1416
  }),
1380
- l(b, { span: 12 }, {
1417
+ l(y, { span: 12 }, {
1381
1418
  default: u(() => [
1382
1419
  l(d, {
1383
1420
  modelValue: e.value.options.title.x,
1384
- "onUpdate:modelValue": o[4] || (o[4] = (C) => e.value.options.title.x = C),
1421
+ "onUpdate:modelValue": n[4] || (n[4] = ($) => e.value.options.title.x = $),
1385
1422
  "controls-position": "right"
1386
1423
  }, null, 8, ["modelValue"]),
1387
- o[11] || (o[11] = k("p", { class: "sub-title" }, "横向", -1))
1424
+ n[11] || (n[11] = V("p", { class: "sub-title" }, "横向", -1))
1388
1425
  ]),
1389
1426
  _: 1
1390
1427
  }),
1391
- l(b, { span: 12 }, {
1428
+ l(y, { span: 12 }, {
1392
1429
  default: u(() => [
1393
1430
  l(d, {
1394
1431
  modelValue: e.value.options.title.y,
1395
- "onUpdate:modelValue": o[5] || (o[5] = (C) => e.value.options.title.y = C),
1432
+ "onUpdate:modelValue": n[5] || (n[5] = ($) => e.value.options.title.y = $),
1396
1433
  "controls-position": "right"
1397
1434
  }, null, 8, ["modelValue"]),
1398
- o[12] || (o[12] = k("p", { class: "sub-title" }, "纵向", -1))
1435
+ n[12] || (n[12] = V("p", { class: "sub-title" }, "纵向", -1))
1399
1436
  ]),
1400
1437
  _: 1
1401
1438
  })
@@ -1410,22 +1447,22 @@ const kt = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-2d59469a"]]), $t = {
1410
1447
  name: "2"
1411
1448
  }, {
1412
1449
  default: u(() => [
1413
- e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), S(g, { key: 0 }, {
1450
+ e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), L(w, { key: 0 }, {
1414
1451
  default: u(() => [
1415
- l(b, { span: 24 }, {
1452
+ l(y, { span: 24 }, {
1416
1453
  default: u(() => [
1417
- o[13] || (o[13] = k("span", { class: "switch-label" }, "玫瑰图", -1)),
1454
+ n[13] || (n[13] = V("span", { class: "switch-label" }, "玫瑰图", -1)),
1418
1455
  l(p, {
1419
- onChange: n,
1456
+ onChange: a,
1420
1457
  modelValue: e.value.options.series[0].roseType,
1421
- "onUpdate:modelValue": o[6] || (o[6] = (C) => e.value.options.series[0].roseType = C)
1458
+ "onUpdate:modelValue": n[6] || (n[6] = ($) => e.value.options.series[0].roseType = $)
1422
1459
  }, null, 8, ["modelValue"])
1423
1460
  ]),
1424
1461
  _: 1
1425
1462
  })
1426
1463
  ]),
1427
1464
  _: 1
1428
- })) : U("", !0)
1465
+ })) : E("", !0)
1429
1466
  ]),
1430
1467
  _: 1
1431
1468
  }),
@@ -1434,16 +1471,16 @@ const kt = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-2d59469a"]]), $t = {
1434
1471
  name: "3"
1435
1472
  }, {
1436
1473
  default: u(() => [
1437
- l(g, null, {
1474
+ l(w, null, {
1438
1475
  default: u(() => [
1439
- l(b, { span: 24 }, {
1476
+ l(y, { span: 24 }, {
1440
1477
  default: u(() => [
1441
- o[14] || (o[14] = k("span", { class: "switch-label" }, "显示图例", -1)),
1442
- e.value.options.legend ? (m(), S(p, {
1478
+ n[14] || (n[14] = V("span", { class: "switch-label" }, "显示图例", -1)),
1479
+ e.value.options.legend ? (m(), L(p, {
1443
1480
  key: 0,
1444
1481
  modelValue: e.value.options.legend.show,
1445
- "onUpdate:modelValue": o[7] || (o[7] = (C) => e.value.options.legend.show = C)
1446
- }, null, 8, ["modelValue"])) : U("", !0)
1482
+ "onUpdate:modelValue": n[7] || (n[7] = ($) => e.value.options.legend.show = $)
1483
+ }, null, 8, ["modelValue"])) : E("", !0)
1447
1484
  ]),
1448
1485
  _: 1
1449
1486
  })
@@ -1456,20 +1493,20 @@ const kt = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-2d59469a"]]), $t = {
1456
1493
  ]),
1457
1494
  _: 1
1458
1495
  })
1459
- ])) : U("", !0);
1496
+ ])) : E("", !0);
1460
1497
  };
1461
1498
  }
1462
1499
  });
1463
- const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @__PURE__ */ T({
1500
+ const Kt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-e9859d3b"]]), $e = /* @__PURE__ */ T({
1464
1501
  __name: "SettingDescribe",
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, [
1502
+ setup(o) {
1503
+ const t = I(), e = D(() => t.getActiveComponents);
1504
+ return (a, r) => {
1505
+ const n = i("el-input"), s = i("el-form-item"), v = i("el-switch"), p = i("el-input-number"), y = i("el-radio"), f = i("el-radio-group");
1506
+ return m(), x("div", null, [
1470
1507
  l(s, { label: "标题" }, {
1471
1508
  default: u(() => [
1472
- l(o, {
1509
+ l(n, {
1473
1510
  modelValue: e.value.options.title,
1474
1511
  "onUpdate:modelValue": r[0] || (r[0] = (d) => e.value.options.title = d)
1475
1512
  }, null, 8, ["modelValue"])
@@ -1478,7 +1515,7 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1478
1515
  }),
1479
1516
  l(s, { label: "边框" }, {
1480
1517
  default: u(() => [
1481
- l(f, {
1518
+ l(v, {
1482
1519
  modelValue: e.value.options.border,
1483
1520
  "onUpdate:modelValue": r[1] || (r[1] = (d) => e.value.options.border = d)
1484
1521
  }, null, 8, ["modelValue"])
@@ -1499,20 +1536,20 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1499
1536
  }),
1500
1537
  l(s, { label: "排列方向" }, {
1501
1538
  default: u(() => [
1502
- l(_, {
1539
+ l(f, {
1503
1540
  modelValue: e.value.options.direction,
1504
1541
  "onUpdate:modelValue": r[3] || (r[3] = (d) => e.value.options.direction = d)
1505
1542
  }, {
1506
1543
  default: u(() => [
1507
- l(b, { value: "horizontal" }, {
1544
+ l(y, { value: "horizontal" }, {
1508
1545
  default: u(() => r[4] || (r[4] = [
1509
- L("横向")
1546
+ U("横向")
1510
1547
  ])),
1511
1548
  _: 1
1512
1549
  }),
1513
- l(b, { value: "vertical" }, {
1550
+ l(y, { value: "vertical" }, {
1514
1551
  default: u(() => r[5] || (r[5] = [
1515
- L("纵向")
1552
+ U("纵向")
1516
1553
  ])),
1517
1554
  _: 1
1518
1555
  })
@@ -1525,79 +1562,79 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1525
1562
  ]);
1526
1563
  };
1527
1564
  }
1528
- }), Ht = /* @__PURE__ */ T({
1565
+ }), Gt = /* @__PURE__ */ T({
1529
1566
  __name: "SettingCharts",
1530
- setup(a) {
1531
- const t = z(), e = V(!1), n = A(() => t.getActiveComponents), r = [
1567
+ setup(o) {
1568
+ const t = I(), e = S(!1), a = D(() => t.getActiveComponents), r = [
1532
1569
  { value: "report-describe", name: "描述列表" },
1533
1570
  { value: "report-table", name: "表格" },
1534
1571
  { value: "line", name: "趋势图" },
1535
1572
  { value: "pie", name: "扇形图" },
1536
1573
  { value: "bar", name: "柱状图" }
1537
- ], o = V(""), s = V();
1538
- async function f(_) {
1539
- const d = await pe({
1574
+ ], n = S(""), s = S();
1575
+ async function v(f) {
1576
+ const d = await me({
1540
1577
  prod_type: window.$prodType,
1541
- chart_type: _,
1578
+ chart_type: f,
1542
1579
  filter_uuid: t.filterForm.filter_uuid
1543
1580
  });
1544
1581
  s.value = d.data;
1545
1582
  }
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") {
1583
+ function p(f) {
1584
+ let d = s.value.find((c) => c.rp_item_uuid === f);
1585
+ const w = d.rp_item_content;
1586
+ if (d.rp_item_content.type === "bar" && (w.options = G()), w.type === "pie" && (w.options = Y({ isLegend: !0 })), w.type === "line") {
1550
1587
  let c = [];
1551
- g.data.forEach((C) => {
1552
- c = C.data.map((v, x) => ({ name: v.name, value: "value" + x }));
1588
+ w.data.forEach(($) => {
1589
+ c = $.data.map((b, _) => ({ name: b.name, value: "value" + _ }));
1553
1590
  });
1554
- const y = {
1591
+ const C = {
1555
1592
  name: "name",
1556
1593
  value: c
1557
1594
  };
1558
- g.options = N([], y);
1595
+ w.options = K([], C);
1559
1596
  }
1560
- if (g.type === "report-table") {
1597
+ if (w.type === "report-table") {
1561
1598
  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 };
1599
+ w.showColumn.forEach((C) => {
1600
+ c[C.key] = !0;
1601
+ }), w.options = { ...w.options, showColumn: c, border: !0, showHeader: !0, stripe: !1 };
1565
1602
  }
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;
1603
+ w.type === "report-describe" && (w.options = { ...w.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, w), t.activeComponents.rp_item_uuid = d.rp_item_uuid;
1567
1604
  }
1568
1605
  te(async () => {
1569
- o.value = n.value.type, await f(o.value);
1606
+ n.value = a.value.type, await v(n.value);
1570
1607
  });
1571
- async function b(_) {
1608
+ async function y(f) {
1572
1609
  try {
1573
- e.value = !0, await f(_), Object.assign(t.activeComponents, rt(_)), e.value = !1;
1610
+ e.value = !0, await v(f), Object.assign(t.activeComponents, bt(f)), e.value = !1;
1574
1611
  } catch {
1575
1612
  e.value = !1;
1576
1613
  }
1577
1614
  }
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));
1615
+ return Te(
1616
+ () => a.value,
1617
+ (f) => {
1618
+ console.log(f, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(f.type) && (n.value = a.value.type, v(n.value));
1582
1619
  }
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" }, {
1620
+ ), (f, d) => {
1621
+ const w = i("el-option"), c = i("el-select"), C = i("el-form-item"), $ = i("el-form"), b = Le("loading");
1622
+ return Re((m(), x("div", null, [
1623
+ l($, { "label-position": "top" }, {
1587
1624
  default: u(() => [
1588
- l(y, { label: "图表类型" }, {
1625
+ l(C, { label: "图表类型" }, {
1589
1626
  default: u(() => [
1590
1627
  l(c, {
1591
1628
  style: { width: "100%" },
1592
- modelValue: o.value,
1593
- "onUpdate:modelValue": d[0] || (d[0] = (x) => o.value = x),
1594
- onChange: b
1629
+ modelValue: n.value,
1630
+ "onUpdate:modelValue": d[0] || (d[0] = (_) => n.value = _),
1631
+ onChange: y
1595
1632
  }, {
1596
1633
  default: u(() => [
1597
- (m(), w(F, null, I(r, (x, E) => l(g, {
1598
- key: E,
1599
- label: x.name,
1600
- value: x.value
1634
+ (m(), x(F, null, q(r, (_, g) => l(w, {
1635
+ key: g,
1636
+ label: _.name,
1637
+ value: _.value
1601
1638
  }, null, 8, ["label", "value"])), 64))
1602
1639
  ]),
1603
1640
  _: 1
@@ -1605,19 +1642,19 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1605
1642
  ]),
1606
1643
  _: 1
1607
1644
  }),
1608
- l(y, { label: "组件库" }, {
1645
+ l(C, { label: "组件库" }, {
1609
1646
  default: u(() => [
1610
1647
  l(c, {
1611
1648
  style: { width: "100%" },
1612
1649
  modelValue: h(t).activeComponents.rp_item_uuid,
1613
- "onUpdate:modelValue": d[1] || (d[1] = (x) => h(t).activeComponents.rp_item_uuid = x),
1650
+ "onUpdate:modelValue": d[1] || (d[1] = (_) => h(t).activeComponents.rp_item_uuid = _),
1614
1651
  onChange: p
1615
1652
  }, {
1616
1653
  default: u(() => [
1617
- (m(!0), w(F, null, I(s.value, (x, E) => (m(), S(g, {
1618
- key: E,
1619
- label: x.rp_item_name,
1620
- value: x.rp_item_uuid
1654
+ (m(!0), x(F, null, q(s.value, (_, g) => (m(), L(w, {
1655
+ key: g,
1656
+ label: _.rp_item_name,
1657
+ value: _.rp_item_uuid
1621
1658
  }, null, 8, ["label", "value"]))), 128))
1622
1659
  ]),
1623
1660
  _: 1
@@ -1625,30 +1662,30 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1625
1662
  ]),
1626
1663
  _: 1
1627
1664
  }),
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)
1665
+ n.value === "report-table" && a.value.options.showColumn ? (m(), L(xe, { key: 0 })) : E("", !0),
1666
+ n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), L(Kt, { key: 1 })) : E("", !0),
1667
+ n.value === "report-describe" ? (m(), L($e, { key: 2 })) : E("", !0)
1631
1668
  ]),
1632
1669
  _: 1
1633
1670
  })
1634
1671
  ])), [
1635
- [v, e.value]
1672
+ [b, e.value]
1636
1673
  ]);
1637
1674
  };
1638
1675
  }
1639
- }), Pt = { key: 0 }, qt = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ne = "default", jt = /* @__PURE__ */ T({
1676
+ }), Jt = { key: 0 }, Qt = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, re = "default", Xt = /* @__PURE__ */ T({
1640
1677
  __name: "SettingText",
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 === _);
1678
+ setup(o) {
1679
+ const t = I(), e = Ue(), a = S();
1680
+ function r(f) {
1681
+ const d = a.value.find((w) => w.rp_item_uuid === f);
1645
1682
  t.activeComponents.uri = d.rp_item_content.uri, e.value.setHtml((d == null ? void 0 : d.rp_item_content.data) || "");
1646
1683
  }
1647
- async function o() {
1648
- const _ = await pe({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1649
- n.value = _.data;
1684
+ async function n() {
1685
+ const f = await me({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
1686
+ a.value = f.data;
1650
1687
  }
1651
- o();
1688
+ n();
1652
1689
  const s = {
1653
1690
  toolbarKeys: [
1654
1691
  "bold",
@@ -1671,31 +1708,31 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1671
1708
  "justifyJustify",
1672
1709
  "lineHeight"
1673
1710
  ]
1674
- }, f = { placeholder: "请输入内容..." }, p = (_) => {
1675
- e.value = _;
1676
- }, b = (_) => {
1711
+ }, v = { placeholder: "请输入内容..." }, p = (f) => {
1712
+ e.value = f;
1713
+ }, y = (f) => {
1677
1714
  };
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" }, {
1715
+ return Ee(() => {
1716
+ const f = e.value;
1717
+ f != null && f.destroy();
1718
+ }), (f, d) => {
1719
+ const w = i("el-option"), c = i("el-select"), C = i("el-form-item"), $ = i("el-form");
1720
+ return h(t).activeComponents.id ? (m(), x("div", Jt, [
1721
+ l($, { "label-position": "top" }, {
1685
1722
  default: u(() => [
1686
- l(y, { label: "组件库" }, {
1723
+ l(C, { label: "组件库" }, {
1687
1724
  default: u(() => [
1688
1725
  l(c, {
1689
1726
  style: { width: "100%" },
1690
1727
  modelValue: h(t).activeComponents.rp_item_uuid,
1691
- "onUpdate:modelValue": d[0] || (d[0] = (v) => h(t).activeComponents.rp_item_uuid = v),
1728
+ "onUpdate:modelValue": d[0] || (d[0] = (b) => h(t).activeComponents.rp_item_uuid = b),
1692
1729
  onChange: r
1693
1730
  }, {
1694
1731
  default: u(() => [
1695
- (m(!0), w(F, null, I(n.value, (v, x) => (m(), S(g, {
1696
- key: x,
1697
- label: v.rp_item_name,
1698
- value: v.rp_item_uuid
1732
+ (m(!0), x(F, null, q(a.value, (b, _) => (m(), L(w, {
1733
+ key: _,
1734
+ label: b.rp_item_name,
1735
+ value: b.rp_item_uuid
1699
1736
  }, null, 8, ["label", "value"]))), 128))
1700
1737
  ]),
1701
1738
  _: 1
@@ -1703,22 +1740,22 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1703
1740
  ]),
1704
1741
  _: 1
1705
1742
  }),
1706
- l(y, { label: "文本内容" }, {
1743
+ l(C, { label: "文本内容" }, {
1707
1744
  default: u(() => [
1708
- k("div", qt, [
1745
+ V("div", Qt, [
1709
1746
  l(h(He), {
1710
1747
  style: { "border-bottom": "1px solid #ccc" },
1711
1748
  editor: e.value,
1712
1749
  "default-config": s,
1713
- mode: ne
1750
+ mode: re
1714
1751
  }, null, 8, ["editor"]),
1715
- l(h(Pe), {
1752
+ l(h(Be), {
1716
1753
  style: { height: "500px", "overflow-y": "hidden" },
1717
- onOnChange: b,
1754
+ onOnChange: y,
1718
1755
  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,
1756
+ "onUpdate:modelValue": d[1] || (d[1] = (b) => h(t).activeComponents.data = b),
1757
+ "default-config": v,
1758
+ mode: re,
1722
1759
  onOnCreated: p
1723
1760
  }, null, 8, ["modelValue"])
1724
1761
  ])
@@ -1728,33 +1765,33 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1728
1765
  ]),
1729
1766
  _: 1
1730
1767
  })
1731
- ])) : U("", !0);
1768
+ ])) : E("", !0);
1732
1769
  };
1733
1770
  }
1734
- }), Mt = /* @__PURE__ */ T({
1771
+ }), Zt = /* @__PURE__ */ T({
1735
1772
  __name: "SettingFilter",
1736
- setup(a) {
1737
- const t = V([]), e = z();
1738
- async function n() {
1739
- const r = await de({ prod_type: window.$prodType });
1773
+ setup(o) {
1774
+ const t = S([]), e = I();
1775
+ async function a() {
1776
+ const r = await _e({ prod_type: window.$prodType });
1740
1777
  t.value = r.data;
1741
1778
  }
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(_, {
1779
+ return a(), (r, n) => {
1780
+ const s = i("el-option"), v = i("el-select"), p = i("el-form-item"), y = i("el-checkbox"), f = i("el-form");
1781
+ return m(), L(f, {
1745
1782
  "label-width": "80px",
1746
1783
  "label-position": "top"
1747
1784
  }, {
1748
1785
  default: u(() => [
1749
1786
  l(p, { label: "筛选条件" }, {
1750
1787
  default: u(() => [
1751
- l(f, {
1788
+ l(v, {
1752
1789
  modelValue: h(e).filterForm.filter_uuid,
1753
- "onUpdate:modelValue": o[0] || (o[0] = (d) => h(e).filterForm.filter_uuid = d),
1790
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => h(e).filterForm.filter_uuid = d),
1754
1791
  disabled: !!h(e).filterForm.filter_uuid
1755
1792
  }, {
1756
1793
  default: u(() => [
1757
- (m(!0), w(F, null, I(t.value, (d) => (m(), S(s, {
1794
+ (m(!0), x(F, null, q(t.value, (d) => (m(), L(s, {
1758
1795
  key: d.filter_uuid,
1759
1796
  label: d.filter_name,
1760
1797
  value: d.filter_uuid
@@ -1767,9 +1804,9 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1767
1804
  }),
1768
1805
  l(p, null, {
1769
1806
  default: u(() => [
1770
- l(b, {
1807
+ l(y, {
1771
1808
  modelValue: h(e).filterForm.range_time,
1772
- "onUpdate:modelValue": o[1] || (o[1] = (d) => h(e).filterForm.range_time = d),
1809
+ "onUpdate:modelValue": n[1] || (n[1] = (d) => h(e).filterForm.range_time = d),
1773
1810
  "true-value": 1,
1774
1811
  "false-value": 0,
1775
1812
  label: "时间范围"
@@ -1782,22 +1819,22 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1782
1819
  });
1783
1820
  };
1784
1821
  }
1785
- }), Bt = /* @__PURE__ */ T({
1822
+ }), eo = /* @__PURE__ */ T({
1786
1823
  __name: "SettingTitle",
1787
- setup(a) {
1788
- const t = z();
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, {
1824
+ setup(o) {
1825
+ const t = I();
1826
+ return (e, a) => {
1827
+ const r = i("el-input"), n = i("el-form-item"), s = i("el-color-picker"), v = i("el-col"), p = i("el-input-number"), y = i("el-option"), f = i("el-select"), d = i("el-row"), w = i("el-form");
1828
+ return m(), L(w, {
1792
1829
  "label-width": "auto",
1793
1830
  "label-position": "top"
1794
1831
  }, {
1795
1832
  default: u(() => [
1796
- l(o, { label: "名称" }, {
1833
+ l(n, { label: "名称" }, {
1797
1834
  default: u(() => [
1798
1835
  l(r, {
1799
1836
  modelValue: h(t).activeComponents.data,
1800
- "onUpdate:modelValue": n[0] || (n[0] = (c) => h(t).activeComponents.data = c),
1837
+ "onUpdate:modelValue": a[0] || (a[0] = (c) => h(t).activeComponents.data = c),
1801
1838
  placeholder: "Please input",
1802
1839
  maxlength: "24",
1803
1840
  "show-word-limit": ""
@@ -1805,99 +1842,99 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1805
1842
  ]),
1806
1843
  _: 1
1807
1844
  }),
1808
- l(o, { label: "样式" }, {
1845
+ l(n, { label: "样式" }, {
1809
1846
  default: u(() => [
1810
1847
  l(d, { gutter: 20 }, {
1811
1848
  default: u(() => [
1812
- l(f, { span: 12 }, {
1849
+ l(v, { span: 12 }, {
1813
1850
  default: u(() => [
1814
1851
  l(s, {
1815
1852
  modelValue: h(t).activeComponents.options.color,
1816
- "onUpdate:modelValue": n[1] || (n[1] = (c) => h(t).activeComponents.options.color = c),
1853
+ "onUpdate:modelValue": a[1] || (a[1] = (c) => h(t).activeComponents.options.color = c),
1817
1854
  "show-alpha": ""
1818
1855
  }, null, 8, ["modelValue"]),
1819
- n[7] || (n[7] = k("p", { class: "sub-title" }, "颜色", -1))
1856
+ a[7] || (a[7] = V("p", { class: "sub-title" }, "颜色", -1))
1820
1857
  ]),
1821
1858
  _: 1
1822
1859
  }),
1823
- l(f, { span: 12 }, {
1860
+ l(v, { span: 12 }, {
1824
1861
  default: u(() => [
1825
1862
  l(p, {
1826
1863
  modelValue: h(t).activeComponents.options.size,
1827
- "onUpdate:modelValue": n[2] || (n[2] = (c) => h(t).activeComponents.options.size = c),
1864
+ "onUpdate:modelValue": a[2] || (a[2] = (c) => h(t).activeComponents.options.size = c),
1828
1865
  "controls-position": "right"
1829
1866
  }, null, 8, ["modelValue"]),
1830
- n[8] || (n[8] = k("p", { class: "sub-title" }, "字体大小", -1))
1867
+ a[8] || (a[8] = V("p", { class: "sub-title" }, "字体大小", -1))
1831
1868
  ]),
1832
1869
  _: 1
1833
1870
  }),
1834
- l(f, { span: 12 }, {
1871
+ l(v, { span: 12 }, {
1835
1872
  default: u(() => [
1836
- l(_, {
1873
+ l(f, {
1837
1874
  modelValue: h(t).activeComponents.options.fontWeight,
1838
- "onUpdate:modelValue": n[3] || (n[3] = (c) => h(t).activeComponents.options.fontWeight = c)
1875
+ "onUpdate:modelValue": a[3] || (a[3] = (c) => h(t).activeComponents.options.fontWeight = c)
1839
1876
  }, {
1840
1877
  default: u(() => [
1841
- l(b, {
1878
+ l(y, {
1842
1879
  label: "常规",
1843
1880
  value: 500
1844
1881
  }),
1845
- l(b, {
1882
+ l(y, {
1846
1883
  label: "加粗",
1847
1884
  value: 600
1848
1885
  })
1849
1886
  ]),
1850
1887
  _: 1
1851
1888
  }, 8, ["modelValue"]),
1852
- n[9] || (n[9] = k("p", { class: "sub-title" }, "字体粗细", -1))
1889
+ a[9] || (a[9] = V("p", { class: "sub-title" }, "字体粗细", -1))
1853
1890
  ]),
1854
1891
  _: 1
1855
1892
  }),
1856
- l(f, { span: 12 }, {
1893
+ l(v, { span: 12 }, {
1857
1894
  default: u(() => [
1858
1895
  l(p, {
1859
1896
  modelValue: h(t).activeComponents.options.letterSpacing,
1860
- "onUpdate:modelValue": n[4] || (n[4] = (c) => h(t).activeComponents.options.letterSpacing = c),
1897
+ "onUpdate:modelValue": a[4] || (a[4] = (c) => h(t).activeComponents.options.letterSpacing = c),
1861
1898
  "controls-position": "right"
1862
1899
  }, null, 8, ["modelValue"]),
1863
- n[10] || (n[10] = k("p", { class: "sub-title" }, "字间距", -1))
1900
+ a[10] || (a[10] = V("p", { class: "sub-title" }, "字间距", -1))
1864
1901
  ]),
1865
1902
  _: 1
1866
1903
  }),
1867
- l(f, { span: 12 }, {
1904
+ l(v, { span: 12 }, {
1868
1905
  default: u(() => [
1869
1906
  l(p, {
1870
1907
  modelValue: h(t).activeComponents.options.textIndent,
1871
- "onUpdate:modelValue": n[5] || (n[5] = (c) => h(t).activeComponents.options.textIndent = c),
1908
+ "onUpdate:modelValue": a[5] || (a[5] = (c) => h(t).activeComponents.options.textIndent = c),
1872
1909
  "controls-position": "right"
1873
1910
  }, null, 8, ["modelValue"]),
1874
- n[11] || (n[11] = k("p", { class: "sub-title" }, "首行缩进", -1))
1911
+ a[11] || (a[11] = V("p", { class: "sub-title" }, "首行缩进", -1))
1875
1912
  ]),
1876
1913
  _: 1
1877
1914
  }),
1878
- l(f, { span: 12 }, {
1915
+ l(v, { span: 12 }, {
1879
1916
  default: u(() => [
1880
- l(_, {
1917
+ l(f, {
1881
1918
  modelValue: h(t).activeComponents.options.textAlign,
1882
- "onUpdate:modelValue": n[6] || (n[6] = (c) => h(t).activeComponents.options.textAlign = c)
1919
+ "onUpdate:modelValue": a[6] || (a[6] = (c) => h(t).activeComponents.options.textAlign = c)
1883
1920
  }, {
1884
1921
  default: u(() => [
1885
- l(b, {
1922
+ l(y, {
1886
1923
  label: "左对齐",
1887
1924
  value: "left"
1888
1925
  }),
1889
- l(b, {
1926
+ l(y, {
1890
1927
  label: "居中对齐",
1891
1928
  value: "center"
1892
1929
  }),
1893
- l(b, {
1930
+ l(y, {
1894
1931
  label: "右对齐",
1895
1932
  value: "right"
1896
1933
  })
1897
1934
  ]),
1898
1935
  _: 1
1899
1936
  }, 8, ["modelValue"]),
1900
- n[12] || (n[12] = k("p", { class: "sub-title" }, "位置", -1))
1937
+ a[12] || (a[12] = V("p", { class: "sub-title" }, "位置", -1))
1901
1938
  ]),
1902
1939
  _: 1
1903
1940
  })
@@ -1913,30 +1950,30 @@ const zt = /* @__PURE__ */ G(It, [["__scopeId", "data-v-e9859d3b"]]), we = /* @_
1913
1950
  };
1914
1951
  }
1915
1952
  });
1916
- const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @__PURE__ */ T({
1953
+ const to = /* @__PURE__ */ J(eo, [["__scopeId", "data-v-56fef84c"]]), oo = /* @__PURE__ */ T({
1917
1954
  __name: "Setting",
1918
- setup(a) {
1955
+ setup(o) {
1919
1956
  const t = {
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" }, {
1957
+ SettingTable: xe,
1958
+ SettingCharts: Gt,
1959
+ SettingDescribe: $e,
1960
+ SettingText: Xt,
1961
+ SettingFilter: Zt,
1962
+ SettingTitle: to
1963
+ }, e = I(), a = D(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe"], v = (p) => r.includes(p) ? z(t, "SettingTitle") : n.includes(p) ? z(t, "SettingText") : s.includes(p) ? z(t, "SettingCharts") : p === "filter" ? z(t, "SettingFilter") : "DefaultEditor";
1964
+ return (p, y) => {
1965
+ const f = i("el-card");
1966
+ return m(), L(f, { class: "config-wrapper" }, {
1930
1967
  default: u(() => [
1931
- (m(), S(W(f(n.value.type))))
1968
+ (m(), L(O(v(a.value.type))))
1932
1969
  ]),
1933
1970
  _: 1
1934
1971
  });
1935
1972
  };
1936
1973
  }
1937
- }), Ot = { class: "editor-wrapper flex start" }, Nt = { class: "flex" }, Kt = { class: "btn-group" }, Gt = /* @__PURE__ */ T({
1974
+ }), lo = { class: "editor-wrapper flex start" }, no = { class: "flex" }, ao = { class: "btn-group" }, ro = /* @__PURE__ */ T({
1938
1975
  __name: "index",
1939
- props: /* @__PURE__ */ se({
1976
+ props: /* @__PURE__ */ pe({
1940
1977
  reportId: {
1941
1978
  type: String,
1942
1979
  default: ""
@@ -1946,13 +1983,13 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
1946
1983
  modelModifiers: {}
1947
1984
  }),
1948
1985
  emits: ["update:modelValue"],
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);
1986
+ setup(o) {
1987
+ const t = I(), e = o, a = de(o, "modelValue"), r = (p) => {
1988
+ const y = W(p);
1989
+ y.id = j(), t.componentList.push(y);
1953
1990
  };
1954
- function o() {
1955
- n.value = "table";
1991
+ function n() {
1992
+ a.value = "table";
1956
1993
  }
1957
1994
  function s() {
1958
1995
  t.getReportDemo(e.reportId);
@@ -1960,13 +1997,13 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
1960
1997
  te(() => {
1961
1998
  s();
1962
1999
  });
1963
- async function f() {
2000
+ async function v() {
1964
2001
  if (!t.filterForm.filter_uuid) {
1965
2002
  Ie.error("请选择筛选条件");
1966
2003
  return;
1967
2004
  }
1968
2005
  try {
1969
- e.reportId ? await Ye({
2006
+ e.reportId ? await Ke({
1970
2007
  report_uuid: e.reportId,
1971
2008
  data: {
1972
2009
  report_name: t.titleComponent.data,
@@ -1974,38 +2011,38 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
1974
2011
  content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
1975
2012
  ...t.filterForm
1976
2013
  }
1977
- }) : await We({
2014
+ }) : await Ye({
1978
2015
  data: {
1979
2016
  report_name: t.titleComponent.data,
1980
2017
  prod_type: window.$prodType,
1981
2018
  content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
1982
2019
  ...t.filterForm
1983
2020
  }
1984
- }), o();
2021
+ }), n();
1985
2022
  } catch (p) {
1986
2023
  console.log(p, "error");
1987
2024
  }
1988
2025
  }
1989
- return Ue(() => {
2026
+ return Ae(() => {
1990
2027
  t.clearComponents();
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" }, {
2028
+ }), (p, y) => {
2029
+ const f = i("el-button"), d = i("el-button-group"), w = i("el-card");
2030
+ return m(), x("div", lo, [
2031
+ l(w, { class: "view-wrapper" }, {
1995
2032
  default: u(() => [
1996
- k("div", Nt, [
1997
- k("div", Kt, [
2033
+ V("div", no, [
2034
+ V("div", ao, [
1998
2035
  l(d, null, {
1999
2036
  default: u(() => [
2000
- (m(!0), w(F, null, I(h(at), (c) => (m(), w(F, {
2037
+ (m(!0), x(F, null, q(h(vt), (c) => (m(), x(F, {
2001
2038
  key: c.type
2002
2039
  }, [
2003
- c != null && c.hide ? U("", !0) : (m(), S(_, {
2040
+ c != null && c.hide ? E("", !0) : (m(), L(f, {
2004
2041
  key: 0,
2005
- onClick: (y) => r(c)
2042
+ onClick: (C) => r(c)
2006
2043
  }, {
2007
2044
  default: u(() => [
2008
- L(j(c.name), 1)
2045
+ U(H(c.name), 1)
2009
2046
  ]),
2010
2047
  _: 2
2011
2048
  }, 1032, ["onClick"]))
@@ -2016,18 +2053,18 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
2016
2053
  ]),
2017
2054
  l(d, null, {
2018
2055
  default: u(() => [
2019
- l(_, {
2056
+ l(f, {
2020
2057
  type: "primary",
2021
- onClick: f
2058
+ onClick: v
2022
2059
  }, {
2023
- default: u(() => b[0] || (b[0] = [
2024
- L("保存")
2060
+ default: u(() => y[0] || (y[0] = [
2061
+ U("保存")
2025
2062
  ])),
2026
2063
  _: 1
2027
2064
  }),
2028
- l(_, { onClick: o }, {
2029
- default: u(() => b[1] || (b[1] = [
2030
- L("退出")
2065
+ l(f, { onClick: n }, {
2066
+ default: u(() => y[1] || (y[1] = [
2067
+ U("退出")
2031
2068
  ])),
2032
2069
  _: 1
2033
2070
  })
@@ -2035,39 +2072,39 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
2035
2072
  _: 1
2036
2073
  })
2037
2074
  ]),
2038
- l(Rt)
2075
+ l(jt)
2039
2076
  ]),
2040
2077
  _: 1
2041
2078
  }),
2042
- l(Yt)
2079
+ l(oo)
2043
2080
  ]);
2044
2081
  };
2045
2082
  }
2046
- }), Jt = {
2083
+ }), io = {
2047
2084
  class: "table-box"
2048
- }, Qt = /* @__PURE__ */ T({
2085
+ }, so = /* @__PURE__ */ T({
2049
2086
  __name: "Report",
2050
2087
  emits: ["click"],
2051
- setup(a, {
2088
+ setup(o, {
2052
2089
  emit: t
2053
2090
  }) {
2054
- const e = A(() => ({
2091
+ const e = D(() => ({
2055
2092
  prod_type: window.$prodType
2056
- })), n = V(), r = t, o = (d) => {
2093
+ })), a = S(), r = t, n = (d) => {
2057
2094
  r("click", d.report_uuid, "review");
2058
2095
  }, s = (d) => {
2059
2096
  r("click", d.report_uuid, "editor");
2060
- }, f = () => {
2097
+ }, v = () => {
2061
2098
  r("click", "", "editor");
2062
2099
  }, p = (d) => {
2063
2100
  console.log(d);
2064
- }, b = (d) => {
2101
+ }, y = (d) => {
2065
2102
  window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2066
- await Ne({
2103
+ await Je({
2067
2104
  report_uuids: d
2068
- }), n.value.getTableList();
2105
+ }), a.value.getTableList();
2069
2106
  });
2070
- }, _ = J([
2107
+ }, f = N([
2071
2108
  // { type: 'selection', fixed: 'left', width: 70 },
2072
2109
  {
2073
2110
  type: "selection",
@@ -2100,7 +2137,7 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
2100
2137
  class: "custom-btn",
2101
2138
  icon: "View",
2102
2139
  title: "预览",
2103
- onClick: () => o(d.row)
2140
+ onClick: () => n(d.row)
2104
2141
  }, null), l(i("el-button"), {
2105
2142
  link: !0,
2106
2143
  type: "primary",
@@ -2113,39 +2150,39 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
2113
2150
  type: "danger",
2114
2151
  icon: "Delete",
2115
2152
  title: "删除",
2116
- onClick: () => b([d.row.report_uuid])
2153
+ onClick: () => y([d.row.report_uuid])
2117
2154
  }, null)])
2118
2155
  }
2119
2156
  ]);
2120
- return (d, g) => {
2121
- const c = i("el-button"), y = i("TdsTable");
2122
- return m(), w("div", Jt, [l(y, {
2157
+ return (d, w) => {
2158
+ const c = i("el-button"), C = i("TdsTable");
2159
+ return m(), x("div", io, [l(C, {
2123
2160
  ref_key: "proTable",
2124
- ref: n,
2125
- columns: _,
2126
- "request-api": h(Oe),
2161
+ ref: a,
2162
+ columns: f,
2163
+ "request-api": h(Ge),
2127
2164
  "init-param": e.value,
2128
2165
  "row-key": "report_uuid",
2129
2166
  options: d.$tableOptions(),
2130
2167
  "search-col": 6,
2131
2168
  onSelectionChange: p
2132
2169
  }, {
2133
- tableHeader: u((C) => [l(c, {
2170
+ tableHeader: u(($) => [l(c, {
2134
2171
  plain: "",
2135
2172
  type: "primary",
2136
2173
  class: "custom-btn",
2137
2174
  icon: "Plus",
2138
- onClick: f
2175
+ onClick: v
2139
2176
  }, {
2140
- default: u(() => g[0] || (g[0] = [L("添加")])),
2177
+ default: u(() => w[0] || (w[0] = [U("添加")])),
2141
2178
  _: 1
2142
2179
  }), l(c, {
2143
2180
  plain: "",
2144
2181
  type: "danger",
2145
2182
  icon: "Delete",
2146
- onClick: (v) => b(C.selectedListIds)
2183
+ onClick: (b) => y($.selectedListIds)
2147
2184
  }, {
2148
- default: u(() => g[1] || (g[1] = [L("删除")])),
2185
+ default: u(() => w[1] || (w[1] = [U("删除")])),
2149
2186
  _: 2
2150
2187
  }, 1032, ["onClick"])]),
2151
2188
  _: 1
@@ -2153,47 +2190,47 @@ const Wt = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-56fef84c"]]), Yt = /* @_
2153
2190
  };
2154
2191
  }
2155
2192
  });
2156
- const Xt = { style: { height: "100%" } }, Zt = /* @__PURE__ */ T({
2193
+ const uo = { style: { height: "100%" } }, po = /* @__PURE__ */ T({
2157
2194
  name: "TCReport",
2158
2195
  __name: "index",
2159
- setup(a) {
2160
- const t = V(), e = V("table"), n = (r, o) => {
2161
- t.value = r, e.value = o;
2196
+ setup(o) {
2197
+ const t = S(), e = S("table"), a = (r, n) => {
2198
+ t.value = r, e.value = n;
2162
2199
  };
2163
- return (r, o) => (m(), w("div", Xt, [
2164
- l(De, { name: "slide-fade" }, {
2200
+ return (r, n) => (m(), x("div", uo, [
2201
+ l(Fe, { name: "slide-fade" }, {
2165
2202
  default: u(() => [
2166
- e.value === "table" ? (m(), S(Qt, {
2203
+ e.value === "table" ? (m(), L(so, {
2167
2204
  key: 0,
2168
- onClick: n
2169
- })) : U("", !0),
2170
- e.value === "review" ? (m(), S(kt, {
2205
+ onClick: a
2206
+ })) : E("", !0),
2207
+ e.value === "review" ? (m(), L(Dt, {
2171
2208
  key: 1,
2172
2209
  "report-id": t.value,
2173
2210
  modelValue: e.value,
2174
- "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
2175
- }, null, 8, ["report-id", "modelValue"])) : U("", !0),
2176
- e.value === "editor" ? (m(), S(Gt, {
2211
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => e.value = s)
2212
+ }, null, 8, ["report-id", "modelValue"])) : E("", !0),
2213
+ e.value === "editor" ? (m(), L(ro, {
2177
2214
  key: 2,
2178
2215
  "report-id": t.value,
2179
2216
  modelValue: e.value,
2180
- "onUpdate:modelValue": o[1] || (o[1] = (s) => e.value = s)
2181
- }, null, 8, ["report-id", "modelValue"])) : U("", !0)
2217
+ "onUpdate:modelValue": n[1] || (n[1] = (s) => e.value = s)
2218
+ }, null, 8, ["report-id", "modelValue"])) : E("", !0)
2182
2219
  ]),
2183
2220
  _: 1
2184
2221
  })
2185
2222
  ]));
2186
2223
  }
2187
2224
  });
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);
2225
+ const ae = (o, t) => {
2226
+ if (o.install = (e) => {
2227
+ for (const a of [o, ...Object.values(t ?? {})])
2228
+ e.component(a.name, a);
2192
2229
  }, t)
2193
- for (const [e, n] of Object.entries(t))
2194
- a[e] = n;
2195
- return a;
2196
- }, eo = Ce(Zt), to = [
2230
+ for (const [e, a] of Object.entries(t))
2231
+ o[e] = a;
2232
+ return o;
2233
+ }, co = ae(po), mo = [
2197
2234
  {
2198
2235
  label: "正文",
2199
2236
  value: "p"
@@ -2218,7 +2255,7 @@ const Ce = (a, t) => {
2218
2255
  label: "描述列表",
2219
2256
  value: "report-describe"
2220
2257
  }
2221
- ], oo = [
2258
+ ], _o = [
2222
2259
  {
2223
2260
  value: "p",
2224
2261
  fields: ["table_key_relation"]
@@ -2243,23 +2280,24 @@ const Ce = (a, t) => {
2243
2280
  value: "report-describe",
2244
2281
  fields: ["p_text"]
2245
2282
  }
2246
- ], lo = {
2283
+ ], fo = {
2247
2284
  class: "table-box"
2248
- }, no = /* @__PURE__ */ T({
2285
+ }, vo = /* @__PURE__ */ T({
2286
+ name: "TCModule",
2249
2287
  __name: "index",
2250
- setup(a) {
2251
- const t = V(), e = V(), n = V({}), r = V(""), o = J({
2288
+ setup(o) {
2289
+ const t = S(), e = S(), a = S({}), r = S(""), n = N({
2252
2290
  prod_type: window.$prodType
2253
2291
  });
2254
2292
  function s(c) {
2255
2293
  window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
2256
- await Ge({
2294
+ await Xe({
2257
2295
  rp_item_uuids: c
2258
2296
  }), t.value.getTableList();
2259
2297
  });
2260
2298
  }
2261
- function f(c) {
2262
- n.value = c ? Object.assign({}, c) : {
2299
+ function v(c) {
2300
+ a.value = c ? Object.assign({}, c) : {
2263
2301
  table_key_relation: [{
2264
2302
  name: "",
2265
2303
  key: "",
@@ -2268,23 +2306,23 @@ const Ce = (a, t) => {
2268
2306
  }, r.value = c ? "编辑自定义组件" : "新增自定义组件", e.value.open();
2269
2307
  }
2270
2308
  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
2309
+ const C = Object.assign({}, c);
2310
+ C.chart_type !== "report-table" && C.chart_type !== "report-describe" && delete C.table_key_relation, C.chart_type !== "p" && (C.p_text = ""), C.rp_item_uuid ? await et({
2311
+ rp_item_uuid: C.rp_item_uuid,
2312
+ data: C
2313
+ }) : (C.prod_type = window.$prodType, await Ze({
2314
+ data: C
2277
2315
  })), t.value.getTableList(), e.value.close();
2278
2316
  }
2279
- const b = (c) => {
2280
- n.value.table_key_relation.splice(c, 1);
2281
- }, _ = () => {
2282
- n.value.table_key_relation.push({
2317
+ const y = (c) => {
2318
+ a.value.table_key_relation.splice(c, 1);
2319
+ }, f = () => {
2320
+ a.value.table_key_relation.push({
2283
2321
  name: "",
2284
2322
  key: "",
2285
2323
  id: (/* @__PURE__ */ new Date()).getTime()
2286
2324
  });
2287
- }, g = J([{
2325
+ }, w = N([{
2288
2326
  type: "selection",
2289
2327
  width: 60,
2290
2328
  field: "rp_item_uuid",
@@ -2301,7 +2339,7 @@ const Ce = (a, t) => {
2301
2339
  }, {
2302
2340
  field: "filter_uuid",
2303
2341
  name: "筛选条件",
2304
- enum: () => de({
2342
+ enum: () => _e({
2305
2343
  prod_type: window.$prodType
2306
2344
  }),
2307
2345
  fieldNames: {
@@ -2317,10 +2355,10 @@ const Ce = (a, t) => {
2317
2355
  }, {
2318
2356
  field: "chart_type",
2319
2357
  name: "组件类型",
2320
- enum: to,
2358
+ enum: mo,
2321
2359
  show: {
2322
2360
  type: "select",
2323
- display: oo
2361
+ display: _o
2324
2362
  },
2325
2363
  rules: [{
2326
2364
  required: !0
@@ -2348,18 +2386,18 @@ const Ce = (a, t) => {
2348
2386
  style: "gap:15px;"
2349
2387
  }, [l("span", {
2350
2388
  style: "width:50%"
2351
- }, [L("表头名称")]), l("span", {
2389
+ }, [U("表头名称")]), l("span", {
2352
2390
  style: "width:50%"
2353
- }, [L("KEY")])]), (c = n.value.table_key_relation) == null ? void 0 : c.map((y, C) => l("div", {
2391
+ }, [U("KEY")])]), (c = a.value.table_key_relation) == null ? void 0 : c.map((C, $) => l("div", {
2354
2392
  class: "flex form-m0 w-100%",
2355
2393
  style: "gap:15px;margin-bottom:10px;",
2356
- key: C
2394
+ key: $
2357
2395
  }, [l(i("el-form-item"), {
2358
2396
  style: "width:50%"
2359
2397
  }, {
2360
2398
  default: () => [l(i("el-input"), {
2361
- modelValue: y.name,
2362
- "onUpdate:modelValue": (v) => y.name = v,
2399
+ modelValue: C.name,
2400
+ "onUpdate:modelValue": (b) => C.name = b,
2363
2401
  class: "",
2364
2402
  placeholder: "表头"
2365
2403
  }, null)]
@@ -2367,23 +2405,23 @@ const Ce = (a, t) => {
2367
2405
  style: "width:50%"
2368
2406
  }, {
2369
2407
  default: () => [l(i("el-input"), {
2370
- modelValue: y.key,
2371
- "onUpdate:modelValue": (v) => y.key = v,
2408
+ modelValue: C.key,
2409
+ "onUpdate:modelValue": (b) => C.key = b,
2372
2410
  class: "",
2373
2411
  placeholder: "KEY"
2374
2412
  }, null)]
2375
- }), n.value.table_key_relation.length > 1 && l("div", {
2413
+ }), a.value.table_key_relation.length > 1 && l("div", {
2376
2414
  class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
2377
2415
  }, [l(i("el-icon"), {
2378
- onClick: () => b(C)
2416
+ onClick: () => y($)
2379
2417
  }, {
2380
- default: () => [l(qe, null, null)]
2418
+ default: () => [l(je, null, null)]
2381
2419
  })])])), l(i("el-button"), {
2382
2420
  class: "report-btn ",
2383
2421
  icon: "Plus",
2384
- onClick: () => _()
2422
+ onClick: () => f()
2385
2423
  }, {
2386
- default: () => [L("新增表头与KEY")]
2424
+ default: () => [U("新增表头与KEY")]
2387
2425
  })]);
2388
2426
  }
2389
2427
  },
@@ -2392,10 +2430,10 @@ const Ce = (a, t) => {
2392
2430
  },
2393
2431
  rules: [{
2394
2432
  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();
2433
+ validator: (c, C, $) => {
2434
+ delete c.message, C.forEach((b) => {
2435
+ b.name ? b.key || $(new Error("请填写表头名称和KEY")) : $(new Error("请填写表头名称和KEY"));
2436
+ }), $();
2399
2437
  },
2400
2438
  trigger: "blur"
2401
2439
  }]
@@ -2428,7 +2466,7 @@ const Ce = (a, t) => {
2428
2466
  class: "custom-btn",
2429
2467
  icon: "Edit",
2430
2468
  title: "编辑",
2431
- onClick: () => f(c.row)
2469
+ onClick: () => v(c.row)
2432
2470
  }, null), l(i("el-button"), {
2433
2471
  link: !0,
2434
2472
  type: "danger",
@@ -2437,62 +2475,427 @@ const Ce = (a, t) => {
2437
2475
  onClick: () => s([c.row.rp_item_uuid])
2438
2476
  }, null)])
2439
2477
  }]);
2440
- return (c, y) => {
2441
- const C = i("el-button"), v = i("TdsTable"), x = i("TdsForm");
2442
- return m(), w("div", lo, [l(v, {
2478
+ return (c, C) => {
2479
+ const $ = i("el-button"), b = i("TdsTable"), _ = i("TdsForm");
2480
+ return m(), x("div", fo, [l(b, {
2443
2481
  ref_key: "refTdsTable",
2444
2482
  ref: t,
2445
- columns: g,
2446
- "request-api": h(Ke),
2447
- "init-param": o,
2483
+ columns: w,
2484
+ "request-api": h(Qe),
2485
+ "init-param": n,
2448
2486
  "row-key": "rp_item_uuid",
2449
2487
  options: c.$tableOptions(),
2450
2488
  "search-col": 6
2451
2489
  }, {
2452
- tableHeader: u((E) => [l(C, {
2490
+ tableHeader: u((g) => [l($, {
2453
2491
  plain: "",
2454
2492
  type: "primary",
2455
2493
  class: "custom-btn",
2456
2494
  icon: "Plus",
2457
- onClick: y[0] || (y[0] = ($) => f())
2495
+ onClick: C[0] || (C[0] = (k) => v())
2458
2496
  }, {
2459
- default: u(() => y[1] || (y[1] = [L("添加")])),
2497
+ default: u(() => C[1] || (C[1] = [U("添加")])),
2460
2498
  _: 1
2461
- }), l(C, {
2499
+ }), l($, {
2462
2500
  plain: "",
2463
2501
  type: "danger",
2464
2502
  icon: "Delete",
2465
- onClick: ($) => s(E.selectedListIds)
2503
+ onClick: (k) => s(g.selectedListIds)
2466
2504
  }, {
2467
- default: u(() => y[2] || (y[2] = [L("删除")])),
2505
+ default: u(() => C[2] || (C[2] = [U("删除")])),
2468
2506
  _: 2
2469
2507
  }, 1032, ["onClick"])]),
2470
2508
  _: 1
2471
- }, 8, ["columns", "request-api", "init-param", "options"]), l(x, Ee({
2509
+ }, 8, ["columns", "request-api", "init-param", "options"]), l(_, ce({
2472
2510
  ref_key: "refTdsForm",
2473
2511
  ref: e
2474
2512
  }, c.$formBindProps({
2475
2513
  title: r.value,
2476
- form: n.value,
2477
- columns: g
2514
+ form: a.value,
2515
+ columns: w
2478
2516
  }), {
2479
2517
  onSubmit: p
2480
2518
  }), null, 16)]);
2481
2519
  };
2482
2520
  }
2483
2521
  });
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);
2522
+ const bo = ae(vo), yo = {
2523
+ class: "table-box"
2524
+ };
2525
+ function ie(o) {
2526
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !oe(o);
2527
+ }
2528
+ const go = /* @__PURE__ */ T({
2529
+ name: "TCSubscribe",
2530
+ __name: "index",
2531
+ setup(o) {
2532
+ const t = S(), e = S(), {
2533
+ $t: a,
2534
+ $messageBox: r
2535
+ } = window, n = S(""), s = S({
2536
+ receiver: []
2537
+ });
2538
+ function v(_) {
2539
+ r(_, "subscript_name", a("button.delete"), "error").then(async () => {
2540
+ await nt({
2541
+ subscript_uuids: _.map((g) => g.subscript_uuid)
2542
+ }), t.value.getTableList();
2543
+ });
2544
+ }
2545
+ function p() {
2546
+ v(t.value.selectedList);
2547
+ }
2548
+ const y = (_) => {
2549
+ s.value = _ ? Object.assign({}, _) : {
2550
+ receiver: []
2551
+ }, n.value = _ ? "编辑报表订阅" : "新增报表订阅", e.value.open();
2552
+ };
2553
+ async function f(_) {
2554
+ const g = Object.assign({}, _);
2555
+ g.subscript_uuid ? await lt({
2556
+ subscript_uuid: g.subscript_uuid,
2557
+ data: g
2558
+ }) : await ot({
2559
+ data: g
2560
+ }), t.value.getTableList(), e.value.close();
2561
+ }
2562
+ function d(_, g, k) {
2563
+ if (!g || g.length === 0)
2564
+ return k(new Error("请输入收件人"));
2565
+ k();
2566
+ }
2567
+ const w = (_, g) => {
2568
+ _.target.value && s.value[g].push(_.target.value);
2569
+ }, c = [{
2570
+ label: "周一",
2571
+ value: 1
2572
+ }, {
2573
+ label: "周二",
2574
+ value: 2
2575
+ }, {
2576
+ label: "周三",
2577
+ value: 3
2578
+ }, {
2579
+ label: "周四",
2580
+ value: 4
2581
+ }, {
2582
+ label: "周五",
2583
+ value: 5
2584
+ }, {
2585
+ label: "周六",
2586
+ value: 6
2587
+ }, {
2588
+ label: "周日",
2589
+ value: 0
2590
+ }], C = [{
2591
+ label: "每天",
2592
+ value: 0
2593
+ }, {
2594
+ label: "每周",
2595
+ value: 1
2596
+ }, {
2597
+ label: "每月",
2598
+ value: 2
2599
+ }], $ = [], b = N([{
2600
+ type: "selection",
2601
+ align: "center",
2602
+ field: "subscript_uuid",
2603
+ width: 80
2604
+ }, {
2605
+ field: "subscript_name",
2606
+ name: "订阅名称",
2607
+ show: {
2608
+ type: "input",
2609
+ order: 1
2610
+ },
2611
+ rules: [{
2612
+ required: !0,
2613
+ message: "请输入名称",
2614
+ trigger: "blur"
2615
+ }]
2616
+ }, {
2617
+ field: "subscript_desc",
2618
+ name: "订阅描述",
2619
+ show: {
2620
+ type: "input",
2621
+ order: 2
2622
+ }
2623
+ }, {
2624
+ field: "report_uuid",
2625
+ name: "报表类型",
2626
+ enum: () => rt({
2627
+ prod_type: window.$prodType
2628
+ }),
2629
+ fieldNames: {
2630
+ label: "report_name",
2631
+ value: "report_uuid"
2632
+ },
2633
+ show: {
2634
+ type: "select"
2635
+ },
2636
+ rules: [{
2637
+ required: !0,
2638
+ type: "any"
2639
+ }]
2640
+ }, {
2641
+ field: "format",
2642
+ name: "报表格式",
2643
+ enum: it,
2644
+ fieldNames: {
2645
+ label: "name",
2646
+ value: "id"
2647
+ },
2648
+ show: {
2649
+ type: "select"
2650
+ },
2651
+ rules: [{
2652
+ required: !0,
2653
+ type: "number"
2654
+ }]
2655
+ }, {
2656
+ field: "select_data",
2657
+ name: "资产/任务",
2658
+ enum: st,
2659
+ fieldNames: {
2660
+ label: "label",
2661
+ value: "data"
2662
+ },
2663
+ hide: !0,
2664
+ show: {
2665
+ type: "select",
2666
+ prop: {
2667
+ multiple: !0
2668
+ }
2669
+ },
2670
+ params: {
2671
+ report_uuid: "report_uuid",
2672
+ prod_type: {
2673
+ type: 2,
2674
+ key: window.$prodType
2675
+ }
2676
+ },
2677
+ render: (_) => t.value.enumMap.get("dbsId").filter((R) => _.row.dbsId.indexOf(R.id) > -1).map((R) => l(i("el-tag"), {
2678
+ class: "mr-10px",
2679
+ type: "info"
2680
+ }, {
2681
+ default: () => [R.policy_name]
2682
+ }))
2683
+ }, {
2684
+ field: "receiver_email",
2685
+ name: "收件人",
2686
+ width: 300,
2687
+ render: (_) => l(F, null, [_.row.receiver_email.map((g) => l(i("el-tag"), {
2688
+ class: "mr-10px",
2689
+ type: "info"
2690
+ }, ie(g) ? g : {
2691
+ default: () => [g]
2692
+ }))]),
2693
+ show: {
2694
+ type: "input",
2695
+ render: () => {
2696
+ let _;
2697
+ return l(F, null, [l(i("el-select"), {
2698
+ class: "right-select",
2699
+ modelValue: s.value.receiver_email,
2700
+ "onUpdate:modelValue": (g) => s.value.receiver_email = g,
2701
+ placeholder: "请输入",
2702
+ multiple: !0,
2703
+ filterable: !0,
2704
+ "allow-create": !0,
2705
+ "default-first-option": !0,
2706
+ "reserve-keyword": !1,
2707
+ onBlur: (g) => w(g, "receiver_email")
2708
+ }, ie(_ = $.map((g) => l(i("el-option"), {
2709
+ label: g.label,
2710
+ value: g.value
2711
+ }, null))) ? _ : {
2712
+ default: () => [_]
2713
+ }), l("p", {
2714
+ style: "font-size:12px;color:#909399;line-height:20px"
2715
+ }, [U("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
2716
+ }
2717
+ },
2718
+ rules: [{
2719
+ required: !0,
2720
+ validator: d,
2721
+ type: "any",
2722
+ trigger: "change"
2723
+ }]
2724
+ }, {
2725
+ field: "show_timing_time",
2726
+ name: "发送周期"
2727
+ }, {
2728
+ field: "loop_type",
2729
+ name: "发送周期",
2730
+ hide: !0,
2731
+ enum: C,
2732
+ show: {
2733
+ dataType: "number",
2734
+ type: "select",
2735
+ display: [{
2736
+ value: 0,
2737
+ fields: ["day", "weekday"]
2738
+ }, {
2739
+ value: 1,
2740
+ fields: ["day"]
2741
+ }, {
2742
+ value: 2,
2743
+ fields: ["weekday"]
2744
+ }]
2745
+ },
2746
+ rules: [{
2747
+ required: !0,
2748
+ type: "number"
2749
+ }]
2750
+ }, {
2751
+ field: "day",
2752
+ name: "日",
2753
+ hide: !0,
2754
+ enum: [...Array(28)].map((_, g) => ({
2755
+ label: g + 1 + "",
2756
+ value: g + 1
2757
+ })),
2758
+ show: {
2759
+ type: "select"
2760
+ },
2761
+ rules: [{
2762
+ required: !0,
2763
+ type: "number"
2764
+ }]
2765
+ }, {
2766
+ field: "weekday",
2767
+ name: "星期",
2768
+ hide: !0,
2769
+ enum: c,
2770
+ show: {
2771
+ type: "select"
2772
+ },
2773
+ rules: [{
2774
+ required: !0,
2775
+ type: "number"
2776
+ }]
2777
+ }, {
2778
+ field: "hour",
2779
+ name: "小时",
2780
+ hide: !0,
2781
+ enum: [...Array(24)].map((_, g) => ({
2782
+ label: g + "时",
2783
+ value: g
2784
+ })),
2785
+ show: {
2786
+ type: "select"
2787
+ },
2788
+ rules: [{
2789
+ required: !0,
2790
+ type: "number"
2791
+ }]
2792
+ }, {
2793
+ field: "minute",
2794
+ name: "分钟",
2795
+ hide: !0,
2796
+ enum: [...Array(60)].map((_, g) => ({
2797
+ label: g + "分",
2798
+ value: g
2799
+ })),
2800
+ show: {
2801
+ type: "select"
2802
+ },
2803
+ rules: [{
2804
+ required: !0,
2805
+ type: "number"
2806
+ }]
2807
+ }, {
2808
+ field: "enable_status",
2809
+ name: "启用状态",
2810
+ render: (_) => l(i("el-switch"), {
2811
+ modelValue: _.row.enable_status,
2812
+ "onUpdate:modelValue": (g) => _.row.enable_status = g,
2813
+ "active-value": 1,
2814
+ "inactive-value": 0,
2815
+ onChange: (g) => {
2816
+ at({
2817
+ subscript_uuid: _.row.subscript_uuid,
2818
+ enable_status: g
2819
+ }), t.value.getTableList();
2820
+ }
2821
+ }, null)
2822
+ }, {
2823
+ field: "operation",
2824
+ name: "操作",
2825
+ fixed: "right",
2826
+ cardHide: !0,
2827
+ width: 120,
2828
+ render: (_) => l("div", null, [l(i("el-button"), {
2829
+ link: !0,
2830
+ type: "primary",
2831
+ icon: "Edit",
2832
+ title: a("button.edit"),
2833
+ class: "custom-btn",
2834
+ onClick: () => y(_.row)
2835
+ }, null), l(i("el-button"), {
2836
+ link: !0,
2837
+ type: "danger",
2838
+ icon: "Delete",
2839
+ title: a("button.delete"),
2840
+ onClick: () => v([_.row])
2841
+ }, null)])
2842
+ }]);
2843
+ return (_, g) => {
2844
+ const k = i("el-button");
2845
+ return m(), x("div", yo, [l(h(Pe), {
2846
+ ref_key: "refTdsTable",
2847
+ ref: t,
2848
+ "row-key": "subscript_uuid",
2849
+ "request-api": h(tt),
2850
+ columns: b,
2851
+ options: _.$tableOptions()
2852
+ }, {
2853
+ tableHeader: u((R) => [l(k, {
2854
+ type: "primary",
2855
+ icon: "Plus",
2856
+ class: "custom-btn",
2857
+ plain: "",
2858
+ onClick: g[0] || (g[0] = (Co) => y())
2859
+ }, {
2860
+ default: u(() => [U(H(h(a)("button.add")), 1)]),
2861
+ _: 1
2862
+ }), l(k, {
2863
+ type: "danger",
2864
+ icon: "Delete",
2865
+ plain: "",
2866
+ onClick: p,
2867
+ disabled: !R.selectedListIds.length
2868
+ }, {
2869
+ default: u(() => [U(H(h(a)("button.delete")), 1)]),
2870
+ _: 2
2871
+ }, 1032, ["disabled"])]),
2872
+ _: 1
2873
+ }, 8, ["request-api", "columns", "options"]), l(h(Me), ce({
2874
+ ref_key: "refTdsForm",
2875
+ ref: e
2876
+ }, _.$formBindProps({
2877
+ title: n.value,
2878
+ form: s.value,
2879
+ columns: b
2880
+ }), {
2881
+ onSubmit: f
2882
+ }), null, 16)]);
2883
+ };
2884
+ }
2885
+ }), ho = ae(go), wo = {
2886
+ TCReport: co,
2887
+ TCModule: bo,
2888
+ TCSubscribe: ho
2889
+ }, Ro = {
2890
+ install(o, t) {
2891
+ Object.entries(wo).forEach(([e, a]) => {
2892
+ o.component(e, a);
2491
2893
  }), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
2492
2894
  }
2493
2895
  };
2494
2896
  export {
2495
- ao as TCModule,
2496
- eo as TCReport,
2497
- _o as default
2897
+ bo as TCModule,
2898
+ co as TCReport,
2899
+ ho as TCSubscribe,
2900
+ Ro as default
2498
2901
  };