@topdatasec/report 1.1.14 → 1.1.16

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