@topdatasec/report 1.1.13 → 1.1.15
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.
- package/lib/style.css +1 -1
- package/lib/t-report-ui.es.js +583 -526
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defineStore as
|
|
1
|
+
import { defineComponent as L, computed as q, resolveComponent as s, openBlock as m, createElementBlock as x, createElementVNode as V, Fragment as E, renderList as I, normalizeClass as O, createBlock as T, createCommentVNode as U, toDisplayString as H, ref as S, createVNode as l, withCtx as d, onMounted as le, normalizeProps as pe, guardReactiveProps as de, isVNode as ne, normalizeStyle as Re, mergeModels as ce, useModel as me, resolveDirective as _e, withDirectives as fe, unref as h, createTextVNode as R, resolveDynamicComponent as Y, isRef as Ue, withModifiers as Ee, watch as Ae, shallowRef as Fe, onBeforeUnmount as De, onUnmounted as Ie, reactive as K, TransitionGroup as qe, mergeProps as ve } from "vue";
|
|
2
|
+
import { defineStore as ze, storeToRefs as Be } from "pinia";
|
|
3
3
|
import { ElMessage as He } from "element-plus";
|
|
4
|
-
import { VueDraggable as
|
|
5
|
-
import { Toolbar as
|
|
6
|
-
import { CircleClose as
|
|
7
|
-
import { TdsTable as
|
|
8
|
-
const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9),
|
|
4
|
+
import { VueDraggable as je } from "vue-draggable-plus";
|
|
5
|
+
import { Toolbar as Pe, Editor as Me } from "@wangeditor/editor-for-vue";
|
|
6
|
+
import { CircleClose as Oe } from "@element-plus/icons-vue";
|
|
7
|
+
import { TdsTable as Ne, TdsForm as We } from "topdatasec-ui";
|
|
8
|
+
const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), G = (o) => JSON.parse(JSON.stringify(o)), Ye = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), B = (o, t) => o[Ye(t)], Ke = (o) => window.$http.request({
|
|
9
9
|
url: `${window.$reportURL}/tds/report/demo/get`,
|
|
10
10
|
method: "get",
|
|
11
11
|
params: o,
|
|
@@ -15,20 +15,20 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
15
15
|
method: "get",
|
|
16
16
|
params: o,
|
|
17
17
|
isError: !1
|
|
18
|
-
}),
|
|
18
|
+
}), Ge = (o) => window.$http.request({
|
|
19
19
|
url: `${window.$reportURL}/tds/report/preview`,
|
|
20
20
|
method: "get",
|
|
21
21
|
params: o,
|
|
22
22
|
isError: !1
|
|
23
|
-
}),
|
|
23
|
+
}), Je = (o) => window.$http.request({
|
|
24
24
|
url: `${window.$reportURL}/tds/report/add`,
|
|
25
25
|
method: "post",
|
|
26
26
|
data: o
|
|
27
|
-
}),
|
|
27
|
+
}), Qe = (o) => window.$http.request({
|
|
28
28
|
url: `${window.$reportURL}/tds/report/put`,
|
|
29
29
|
method: "put",
|
|
30
30
|
data: o
|
|
31
|
-
}),
|
|
31
|
+
}), Xe = (o) => window.$http.request({
|
|
32
32
|
url: `${window.$reportURL}/tds/report/get`,
|
|
33
33
|
method: "get",
|
|
34
34
|
params: o,
|
|
@@ -38,63 +38,69 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
38
38
|
method: "get",
|
|
39
39
|
params: o,
|
|
40
40
|
isError: !1
|
|
41
|
-
}),
|
|
41
|
+
}), Ze = (o) => window.$http.request({
|
|
42
42
|
url: `${window.$reportURL}/tds/report/delete`,
|
|
43
43
|
method: "delete",
|
|
44
44
|
data: o
|
|
45
|
-
}),
|
|
45
|
+
}), et = (o) => window.$http.request({
|
|
46
46
|
url: `${window.$reportURL}/tds/report/item/list`,
|
|
47
47
|
method: "get",
|
|
48
48
|
params: o,
|
|
49
49
|
isError: !1
|
|
50
|
-
}),
|
|
50
|
+
}), tt = (o) => window.$http.request({
|
|
51
51
|
url: `${window.$reportURL}/tds/report/item/delete`,
|
|
52
52
|
method: "delete",
|
|
53
53
|
data: o
|
|
54
|
-
}),
|
|
54
|
+
}), ot = (o) => window.$http.request({
|
|
55
55
|
url: `${window.$reportURL}/tds/report/item/add`,
|
|
56
56
|
method: "post",
|
|
57
57
|
data: o
|
|
58
|
-
}),
|
|
58
|
+
}), lt = (o) => window.$http.request({
|
|
59
59
|
url: `${window.$reportURL}/tds/report/item/put`,
|
|
60
60
|
method: "put",
|
|
61
61
|
data: o
|
|
62
|
-
}),
|
|
62
|
+
}), nt = (o) => window.$http.request({
|
|
63
63
|
url: `${window.$reportURL}/tds/report/sub/get`,
|
|
64
64
|
method: "get",
|
|
65
65
|
params: o,
|
|
66
66
|
isError: !1
|
|
67
|
-
}),
|
|
67
|
+
}), at = (o) => window.$http.request({
|
|
68
68
|
url: `${window.$reportURL}/tds/report/sub/add`,
|
|
69
69
|
method: "post",
|
|
70
70
|
data: o
|
|
71
|
-
}),
|
|
71
|
+
}), rt = (o) => window.$http.request({
|
|
72
72
|
url: `${window.$reportURL}/tds/report/sub/put`,
|
|
73
73
|
method: "put",
|
|
74
74
|
data: o
|
|
75
|
-
}),
|
|
75
|
+
}), st = (o) => window.$http.request({
|
|
76
76
|
url: `${window.$reportURL}/tds/report/sub/delete`,
|
|
77
77
|
method: "delete",
|
|
78
78
|
data: o
|
|
79
|
-
}),
|
|
79
|
+
}), it = (o) => window.$http.request({
|
|
80
80
|
url: `${window.$reportURL}/tds/report/sub/edit/state`,
|
|
81
81
|
method: "post",
|
|
82
82
|
data: o
|
|
83
|
-
}),
|
|
83
|
+
}), ut = (o) => window.$http.request({
|
|
84
84
|
url: `${window.$reportURL}/tds/report/all`,
|
|
85
85
|
method: "get",
|
|
86
86
|
params: o,
|
|
87
87
|
isError: !1
|
|
88
|
-
}),
|
|
88
|
+
}), pt = (o) => window.$http.request({
|
|
89
89
|
url: `${window.$reportURL}/tds/report/sub/get_format`,
|
|
90
90
|
method: "get",
|
|
91
91
|
params: o,
|
|
92
92
|
isError: !1
|
|
93
|
-
}),
|
|
93
|
+
}), dt = (o) => window.$http.request({
|
|
94
94
|
url: `${window.$reportURL}/tds/report/filter/get_select_data`,
|
|
95
95
|
method: "get",
|
|
96
96
|
params: o,
|
|
97
97
|
isError: !1
|
|
98
|
+
}), ct = (o = {}) => window.$http.request({
|
|
99
|
+
url: `${window.$reportURL}/tds/report/build_in/get`,
|
|
100
|
+
method: "get",
|
|
101
|
+
params: o,
|
|
102
|
+
loading: !1,
|
|
103
|
+
isError: !1
|
|
98
104
|
}), ge = "rgba(51, 51, 51, 0.15)", j = "rgba(51, 51, 51, 1)", M = 12, he = (o = !1) => {
|
|
99
105
|
const t = {
|
|
100
106
|
// top: '2%',
|
|
@@ -104,7 +110,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
104
110
|
containLabel: !0
|
|
105
111
|
};
|
|
106
112
|
return o && (t.top = "5%"), t;
|
|
107
|
-
},
|
|
113
|
+
}, D = [
|
|
108
114
|
"46, 145, 255",
|
|
109
115
|
"48, 212, 183",
|
|
110
116
|
"108, 108, 255",
|
|
@@ -125,12 +131,12 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
125
131
|
"100, 161, 206",
|
|
126
132
|
"246, 175, 159",
|
|
127
133
|
"238, 97, 97"
|
|
128
|
-
],
|
|
134
|
+
], mt = (o, t, e = "", a = { name: "name", value: "value" }) => {
|
|
129
135
|
const r = [], n = [];
|
|
130
136
|
t.forEach((i) => {
|
|
131
137
|
r.push(i[a.name]), n.push(i[a.value]);
|
|
132
138
|
}), 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
|
-
},
|
|
139
|
+
}, Q = (o = [
|
|
134
140
|
{
|
|
135
141
|
name: "数据1",
|
|
136
142
|
value: 63
|
|
@@ -246,7 +252,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
246
252
|
type: "bar",
|
|
247
253
|
barWidth: 15,
|
|
248
254
|
barGap: "0%",
|
|
249
|
-
itemStyle: e(`rgba(${
|
|
255
|
+
itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
|
|
250
256
|
data: a,
|
|
251
257
|
label: {
|
|
252
258
|
show: !0,
|
|
@@ -266,7 +272,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
266
272
|
symbolSize: [15, 10],
|
|
267
273
|
//调整截面形状
|
|
268
274
|
symbolOffset: [0, 5],
|
|
269
|
-
itemStyle: e(`rgba(${
|
|
275
|
+
itemStyle: e(`rgba(${D[0]}, 0.7)`, `rgba(${D[0]}, 0.2)`),
|
|
270
276
|
data: a
|
|
271
277
|
},
|
|
272
278
|
{
|
|
@@ -277,19 +283,19 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
277
283
|
//调整截面形状
|
|
278
284
|
symbolOffset: [0, -5],
|
|
279
285
|
symbolPosition: "end",
|
|
280
|
-
itemStyle: e(`rgba(${
|
|
286
|
+
itemStyle: e(`rgba(${D[0]}, 0.9)`, `rgba(${D[0]}, 1)`),
|
|
281
287
|
data: a
|
|
282
288
|
}
|
|
283
289
|
]
|
|
284
290
|
};
|
|
285
|
-
},
|
|
291
|
+
}, _t = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
|
|
286
292
|
let a = 0;
|
|
287
293
|
const r = t.map((n, i) => (a += Number(n[e.value]), {
|
|
288
294
|
name: n[e.name],
|
|
289
295
|
value: Number(n[e.value])
|
|
290
296
|
}));
|
|
291
297
|
o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
|
|
292
|
-
},
|
|
298
|
+
}, ft = () => D.map((o) => `rgba(${o}, 1)`), ae = ({
|
|
293
299
|
data: o = [
|
|
294
300
|
{
|
|
295
301
|
name: "数据1",
|
|
@@ -311,16 +317,16 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
311
317
|
center: n = ["50%", "50%"],
|
|
312
318
|
isTitle: i = !0
|
|
313
319
|
}) => {
|
|
314
|
-
const
|
|
315
|
-
color:
|
|
320
|
+
const f = {
|
|
321
|
+
color: ft(),
|
|
316
322
|
toolbox: { show: !1 },
|
|
317
323
|
tooltip: {
|
|
318
324
|
trigger: "item",
|
|
319
325
|
show: !0,
|
|
320
|
-
formatter: (
|
|
321
|
-
const { name: b, value:
|
|
322
|
-
return `<div style="color: ${
|
|
323
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${
|
|
326
|
+
formatter: (p) => {
|
|
327
|
+
const { name: b, value: v } = p;
|
|
328
|
+
return `<div style="color: ${p.color}; font-size: 14px;">${b} </div>
|
|
329
|
+
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${v}</span></div>`;
|
|
324
330
|
}
|
|
325
331
|
},
|
|
326
332
|
title: {
|
|
@@ -336,10 +342,10 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
336
342
|
legend: {
|
|
337
343
|
show: a,
|
|
338
344
|
left: "70%",
|
|
339
|
-
formatter: (
|
|
340
|
-
var
|
|
341
|
-
const b = (
|
|
342
|
-
return ` ${
|
|
345
|
+
formatter: (p) => {
|
|
346
|
+
var v;
|
|
347
|
+
const b = (v = f.series[0]) == null ? void 0 : v.data.find((c) => c.name === p).value;
|
|
348
|
+
return ` ${p} | ${b}`;
|
|
343
349
|
},
|
|
344
350
|
textStyle: {
|
|
345
351
|
fontSize: M,
|
|
@@ -392,8 +398,8 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
392
398
|
borderWidth: 1,
|
|
393
399
|
borderColor: "inherit",
|
|
394
400
|
padding: [3, -3, 3, -3],
|
|
395
|
-
formatter: function(
|
|
396
|
-
return `{a|${
|
|
401
|
+
formatter: function(p) {
|
|
402
|
+
return `{a|${p.name}(${p.value})}`;
|
|
397
403
|
},
|
|
398
404
|
rich: {
|
|
399
405
|
a: {
|
|
@@ -450,24 +456,24 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
450
456
|
}
|
|
451
457
|
]
|
|
452
458
|
};
|
|
453
|
-
return
|
|
454
|
-
},
|
|
459
|
+
return f;
|
|
460
|
+
}, vt = (o, t, e = { name: "name", value: "value" }) => {
|
|
455
461
|
o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
|
|
456
462
|
o.series[r].data = t.map((n) => n[a.value]);
|
|
457
463
|
}) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
|
|
458
|
-
},
|
|
464
|
+
}, bt = () => ({
|
|
459
465
|
name: "",
|
|
460
466
|
type: "line",
|
|
461
467
|
symbol: "circle",
|
|
462
468
|
smooth: !0,
|
|
463
469
|
lineStyle: {
|
|
464
470
|
width: 1,
|
|
465
|
-
color: `rgba(${
|
|
471
|
+
color: `rgba(${D[0]}, 1)`
|
|
466
472
|
// 线条颜色
|
|
467
473
|
},
|
|
468
474
|
showSymbol: !1,
|
|
469
475
|
itemStyle: {
|
|
470
|
-
color: `rgba(${
|
|
476
|
+
color: `rgba(${D[0]}, 1)`,
|
|
471
477
|
//拐点颜色
|
|
472
478
|
label: {
|
|
473
479
|
show: !0,
|
|
@@ -490,18 +496,18 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
490
496
|
// 渐变颜色
|
|
491
497
|
{
|
|
492
498
|
offset: 0,
|
|
493
|
-
color: `rgba(${
|
|
499
|
+
color: `rgba(${D[0]}, 0.7)`
|
|
494
500
|
},
|
|
495
501
|
{
|
|
496
502
|
offset: 1,
|
|
497
|
-
color: `rgba(${
|
|
503
|
+
color: `rgba(${D[0]}, 0.1)`
|
|
498
504
|
}
|
|
499
505
|
],
|
|
500
506
|
global: !1
|
|
501
507
|
}
|
|
502
508
|
},
|
|
503
509
|
data: []
|
|
504
|
-
}),
|
|
510
|
+
}), J = (o = [
|
|
505
511
|
{
|
|
506
512
|
name: "2024-08",
|
|
507
513
|
value: 63
|
|
@@ -573,31 +579,31 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
573
579
|
}
|
|
574
580
|
},
|
|
575
581
|
series: []
|
|
576
|
-
}, a =
|
|
582
|
+
}, a = bt(), r = [];
|
|
577
583
|
if (Array.isArray(t.value))
|
|
578
584
|
t.value.forEach((n, i) => {
|
|
579
|
-
const
|
|
580
|
-
|
|
585
|
+
const f = G(a);
|
|
586
|
+
f.name = n.name, f.lineStyle.color = `rgba(${D[i]}, 1)`, f.itemStyle.color = `rgba(${D[i]}, 1)`, f.areaStyle.color.colorStops[0].color = `rgba(${D[i]}, 0.7)`, f.areaStyle.color.colorStops[1].color = `rgba(${D[i]}, 0.1)`, f.data = o.map((p) => p[n.value]), r.push(f);
|
|
581
587
|
});
|
|
582
588
|
else if (typeof t.value == "string") {
|
|
583
|
-
const n =
|
|
589
|
+
const n = G(a);
|
|
584
590
|
n.data = o.map((i) => i[t.value]), r.push(n);
|
|
585
591
|
}
|
|
586
592
|
return e.series = r, e;
|
|
587
|
-
},
|
|
593
|
+
}, re = [
|
|
588
594
|
{ key: "assets", name: "资产名称" },
|
|
589
595
|
{ key: "type", name: "资产类型" },
|
|
590
596
|
{ key: "data", name: "资产数据" }
|
|
591
|
-
],
|
|
597
|
+
], se = [
|
|
592
598
|
{ assets: "name1", type: "type1", data: "data1" },
|
|
593
599
|
{ assets: "name2", type: "type2", data: "data2" },
|
|
594
600
|
{ assets: "name3", type: "type3", data: "data3" }
|
|
595
|
-
],
|
|
601
|
+
], Z = [
|
|
596
602
|
{ data: [{ name: "默认数据", value: 180 }], label: "name1" },
|
|
597
603
|
{ data: [{ name: "默认数据", value: 311 }], label: "name2" },
|
|
598
604
|
{ data: [{ name: "默认数据", value: 42 }], label: "name3" },
|
|
599
605
|
{ data: [{ name: "默认数据", value: 32391 }], label: "name4" }
|
|
600
|
-
],
|
|
606
|
+
], yt = [
|
|
601
607
|
{
|
|
602
608
|
data: 63,
|
|
603
609
|
label: "数据1"
|
|
@@ -610,7 +616,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
610
616
|
data: 43,
|
|
611
617
|
label: "数据3"
|
|
612
618
|
}
|
|
613
|
-
],
|
|
619
|
+
], gt = [
|
|
614
620
|
{
|
|
615
621
|
type: "report-select",
|
|
616
622
|
label: "资产:",
|
|
@@ -675,8 +681,8 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
675
681
|
},
|
|
676
682
|
{
|
|
677
683
|
type: "report-table",
|
|
678
|
-
data:
|
|
679
|
-
showColumn:
|
|
684
|
+
data: se,
|
|
685
|
+
showColumn: re,
|
|
680
686
|
name: "表格",
|
|
681
687
|
options: {
|
|
682
688
|
showColumn: {
|
|
@@ -691,7 +697,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
691
697
|
rp_item_uuid: "",
|
|
692
698
|
id: P()
|
|
693
699
|
}
|
|
694
|
-
],
|
|
700
|
+
], ht = [
|
|
695
701
|
{
|
|
696
702
|
type: "h1",
|
|
697
703
|
data: "报表名称",
|
|
@@ -738,8 +744,8 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
738
744
|
{ type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
|
|
739
745
|
{
|
|
740
746
|
type: "report-table",
|
|
741
|
-
data:
|
|
742
|
-
showColumn:
|
|
747
|
+
data: se,
|
|
748
|
+
showColumn: re,
|
|
743
749
|
name: "表格",
|
|
744
750
|
options: {
|
|
745
751
|
border: !0,
|
|
@@ -756,45 +762,45 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
756
762
|
},
|
|
757
763
|
{
|
|
758
764
|
type: "bar",
|
|
759
|
-
data:
|
|
765
|
+
data: Z,
|
|
760
766
|
showColumn: [{ key: "label", value: "data" }],
|
|
761
767
|
name: "图表",
|
|
762
|
-
options:
|
|
768
|
+
options: Q(),
|
|
763
769
|
rp_item_uuid: "",
|
|
764
770
|
id: ""
|
|
765
771
|
}
|
|
766
|
-
],
|
|
772
|
+
], wt = (o) => ({
|
|
767
773
|
bar: {
|
|
768
774
|
type: "bar",
|
|
769
|
-
data:
|
|
775
|
+
data: Z,
|
|
770
776
|
showColumn: [{ key: "label", value: "data" }],
|
|
771
777
|
name: "图表",
|
|
772
|
-
options:
|
|
778
|
+
options: Q(),
|
|
773
779
|
rp_item_uuid: "",
|
|
774
780
|
id: ""
|
|
775
781
|
},
|
|
776
782
|
line: {
|
|
777
783
|
type: "line",
|
|
778
|
-
data:
|
|
784
|
+
data: Z,
|
|
779
785
|
showColumn: [{ key: "label", value: "data" }],
|
|
780
786
|
name: "图表",
|
|
781
|
-
options:
|
|
787
|
+
options: J(),
|
|
782
788
|
rp_item_uuid: "",
|
|
783
789
|
id: ""
|
|
784
790
|
},
|
|
785
791
|
pie: {
|
|
786
792
|
type: "pie",
|
|
787
|
-
data:
|
|
793
|
+
data: yt,
|
|
788
794
|
showColumn: [{ key: "label", value: "data" }],
|
|
789
795
|
name: "图表",
|
|
790
|
-
options:
|
|
796
|
+
options: ae({ isLegend: !0 }),
|
|
791
797
|
rp_item_uuid: "",
|
|
792
798
|
id: ""
|
|
793
799
|
},
|
|
794
800
|
"report-table": {
|
|
795
801
|
type: "report-table",
|
|
796
|
-
data:
|
|
797
|
-
showColumn:
|
|
802
|
+
data: se,
|
|
803
|
+
showColumn: re,
|
|
798
804
|
name: "表格",
|
|
799
805
|
options: {
|
|
800
806
|
showColumn: {
|
|
@@ -809,7 +815,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
809
815
|
rp_item_uuid: "",
|
|
810
816
|
id: ""
|
|
811
817
|
}
|
|
812
|
-
})[o], z =
|
|
818
|
+
})[o], z = ze("tds-report", {
|
|
813
819
|
state: () => ({
|
|
814
820
|
componentList: [],
|
|
815
821
|
activeComponents: {},
|
|
@@ -830,7 +836,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
830
836
|
},
|
|
831
837
|
async getReportDemo(o) {
|
|
832
838
|
let t = [];
|
|
833
|
-
o ? t = (await
|
|
839
|
+
o ? t = (await Ke({ report_uuid: o })).data : t = { content: G(gt), range_time: 1 };
|
|
834
840
|
const e = [];
|
|
835
841
|
t.content.forEach((a) => {
|
|
836
842
|
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = P();
|
|
@@ -846,7 +852,7 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
846
852
|
};
|
|
847
853
|
}
|
|
848
854
|
}
|
|
849
|
-
}),
|
|
855
|
+
}), Ct = { class: "catalogue" }, xt = ["href", "title"], $t = /* @__PURE__ */ L({
|
|
850
856
|
__name: "Catalogue",
|
|
851
857
|
props: {
|
|
852
858
|
data: { default: () => [] }
|
|
@@ -855,13 +861,13 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
855
861
|
const t = o, e = q(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
|
|
856
862
|
return (a, r) => {
|
|
857
863
|
const n = s("el-divider");
|
|
858
|
-
return
|
|
864
|
+
return m(), x("div", Ct, [
|
|
859
865
|
r[0] || (r[0] = V("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
|
|
860
|
-
(
|
|
866
|
+
(m(!0), x(E, null, I(e.value, (i) => (m(), x("div", {
|
|
861
867
|
class: O("level" + i.type),
|
|
862
868
|
key: i.value
|
|
863
869
|
}, [
|
|
864
|
-
i.type === "h2" ? (
|
|
870
|
+
i.type === "h2" ? (m(), T(n, {
|
|
865
871
|
key: 0,
|
|
866
872
|
style: { "margin-top": "10px", "margin-bottom": "10px" }
|
|
867
873
|
})) : U("", !0),
|
|
@@ -869,20 +875,20 @@ const P = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
869
875
|
class: "el-anchor__link",
|
|
870
876
|
href: "#" + i.id,
|
|
871
877
|
title: i.data
|
|
872
|
-
},
|
|
878
|
+
}, H(i.data), 9, xt)
|
|
873
879
|
], 2))), 128))
|
|
874
880
|
]);
|
|
875
881
|
};
|
|
876
882
|
}
|
|
877
883
|
});
|
|
878
|
-
const
|
|
884
|
+
const N = (o, t) => {
|
|
879
885
|
const e = o.__vccOpts || o;
|
|
880
886
|
for (const [a, r] of t)
|
|
881
887
|
e[a] = r;
|
|
882
888
|
return e;
|
|
883
|
-
},
|
|
889
|
+
}, kt = /* @__PURE__ */ N($t, [["__scopeId", "data-v-1cd8aa2d"]]), Vt = {
|
|
884
890
|
class: "chart-components"
|
|
885
|
-
}, we = /* @__PURE__ */
|
|
891
|
+
}, we = /* @__PURE__ */ L({
|
|
886
892
|
__name: "Bar",
|
|
887
893
|
props: {
|
|
888
894
|
value: {}
|
|
@@ -891,12 +897,12 @@ const J = (o, t) => {
|
|
|
891
897
|
const t = o, e = q(() => t.value.options);
|
|
892
898
|
return S(!1), (a, r) => {
|
|
893
899
|
const n = s("TdsChart");
|
|
894
|
-
return
|
|
900
|
+
return m(), x("div", Vt, [l(n, {
|
|
895
901
|
option: e.value
|
|
896
902
|
}, null, 8, ["option"])]);
|
|
897
903
|
};
|
|
898
904
|
}
|
|
899
|
-
}),
|
|
905
|
+
}), St = { class: "chart-components" }, Ce = /* @__PURE__ */ L({
|
|
900
906
|
__name: "Line",
|
|
901
907
|
props: {
|
|
902
908
|
value: {}
|
|
@@ -905,12 +911,12 @@ const J = (o, t) => {
|
|
|
905
911
|
const t = o, e = q(() => t.value.options);
|
|
906
912
|
return (a, r) => {
|
|
907
913
|
const n = s("TdsChart");
|
|
908
|
-
return
|
|
914
|
+
return m(), x("div", St, [
|
|
909
915
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
910
916
|
]);
|
|
911
917
|
};
|
|
912
918
|
}
|
|
913
|
-
}),
|
|
919
|
+
}), Tt = { class: "chart-components" }, xe = /* @__PURE__ */ L({
|
|
914
920
|
__name: "Pie",
|
|
915
921
|
props: {
|
|
916
922
|
value: {}
|
|
@@ -919,12 +925,12 @@ const J = (o, t) => {
|
|
|
919
925
|
const t = o, e = q(() => t.value.options);
|
|
920
926
|
return (a, r) => {
|
|
921
927
|
const n = s("TdsChart");
|
|
922
|
-
return
|
|
928
|
+
return m(), x("div", Tt, [
|
|
923
929
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
924
930
|
]);
|
|
925
931
|
};
|
|
926
932
|
}
|
|
927
|
-
}),
|
|
933
|
+
}), Lt = { key: 0 }, ee = /* @__PURE__ */ L({
|
|
928
934
|
__name: "ReportSelect",
|
|
929
935
|
props: {
|
|
930
936
|
value: {}
|
|
@@ -934,22 +940,22 @@ const J = (o, t) => {
|
|
|
934
940
|
const e = t, a = (i) => {
|
|
935
941
|
e("change", i);
|
|
936
942
|
}, n = S(o.value);
|
|
937
|
-
return (i,
|
|
938
|
-
const
|
|
939
|
-
return n.value.data ? (
|
|
943
|
+
return (i, f) => {
|
|
944
|
+
const p = s("el-option"), b = s("el-select");
|
|
945
|
+
return n.value.data ? (m(), x("div", Lt, [
|
|
940
946
|
l(b, {
|
|
941
947
|
modelValue: n.value.value,
|
|
942
|
-
"onUpdate:modelValue":
|
|
948
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => n.value.value = v),
|
|
943
949
|
multiple: "",
|
|
944
950
|
style: { width: "100%" },
|
|
945
951
|
onChange: a,
|
|
946
952
|
placeholder: "全部"
|
|
947
953
|
}, {
|
|
948
|
-
default:
|
|
949
|
-
(
|
|
950
|
-
key:
|
|
951
|
-
label:
|
|
952
|
-
value:
|
|
954
|
+
default: d(() => [
|
|
955
|
+
(m(!0), x(E, null, I(n.value.data, (v) => (m(), T(p, {
|
|
956
|
+
key: v.data,
|
|
957
|
+
label: v.label,
|
|
958
|
+
value: v.data
|
|
953
959
|
}, null, 8, ["label", "value"]))), 128))
|
|
954
960
|
]),
|
|
955
961
|
_: 1
|
|
@@ -957,7 +963,7 @@ const J = (o, t) => {
|
|
|
957
963
|
])) : U("", !0);
|
|
958
964
|
};
|
|
959
965
|
}
|
|
960
|
-
}),
|
|
966
|
+
}), te = /* @__PURE__ */ L({
|
|
961
967
|
__name: "RangeTime",
|
|
962
968
|
props: {
|
|
963
969
|
value: {}
|
|
@@ -965,17 +971,17 @@ const J = (o, t) => {
|
|
|
965
971
|
emits: ["change"],
|
|
966
972
|
setup(o, { emit: t }) {
|
|
967
973
|
const e = t, r = S(o.value), n = S([]);
|
|
968
|
-
function i(
|
|
969
|
-
|
|
974
|
+
function i(f) {
|
|
975
|
+
f ? (r.value.data[0].start_time = f[0], r.value.data[0].end_time = f[1]) : n.value = [], e("change", n.value);
|
|
970
976
|
}
|
|
971
|
-
return
|
|
977
|
+
return le(() => {
|
|
972
978
|
n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
|
|
973
|
-
}), (
|
|
979
|
+
}), (f, p) => {
|
|
974
980
|
const b = s("el-date-picker");
|
|
975
|
-
return
|
|
981
|
+
return m(), x("div", null, [
|
|
976
982
|
l(b, {
|
|
977
983
|
modelValue: n.value,
|
|
978
|
-
"onUpdate:modelValue":
|
|
984
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => n.value = v),
|
|
979
985
|
type: "datetimerange",
|
|
980
986
|
placeholder: "Pick a Date",
|
|
981
987
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -987,10 +993,10 @@ const J = (o, t) => {
|
|
|
987
993
|
};
|
|
988
994
|
}
|
|
989
995
|
});
|
|
990
|
-
function
|
|
991
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
996
|
+
function Rt(o) {
|
|
997
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
|
|
992
998
|
}
|
|
993
|
-
const $e = /* @__PURE__ */
|
|
999
|
+
const $e = /* @__PURE__ */ L({
|
|
994
1000
|
__name: "ReportTable",
|
|
995
1001
|
props: {
|
|
996
1002
|
value: {}
|
|
@@ -1003,16 +1009,16 @@ const $e = /* @__PURE__ */ T({
|
|
|
1003
1009
|
border: t.value.options.border,
|
|
1004
1010
|
"show-header": !!t.value.options.showHeader,
|
|
1005
1011
|
stripe: t.value.options.stripe
|
|
1006
|
-
},
|
|
1012
|
+
}, Rt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
|
|
1007
1013
|
prop: n.key,
|
|
1008
1014
|
label: n.name
|
|
1009
1015
|
}, null) : null)) ? r : {
|
|
1010
1016
|
default: () => [r]
|
|
1011
1017
|
});
|
|
1012
1018
|
};
|
|
1013
|
-
return (a, r) => (
|
|
1019
|
+
return (a, r) => (m(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
|
|
1014
1020
|
}
|
|
1015
|
-
}),
|
|
1021
|
+
}), oe = /* @__PURE__ */ L({
|
|
1016
1022
|
__name: "ReportText",
|
|
1017
1023
|
props: {
|
|
1018
1024
|
value: {}
|
|
@@ -1029,11 +1035,11 @@ const $e = /* @__PURE__ */ T({
|
|
|
1029
1035
|
"text-align": a.textAlign
|
|
1030
1036
|
};
|
|
1031
1037
|
};
|
|
1032
|
-
return (a, r) => (
|
|
1033
|
-
style:
|
|
1034
|
-
},
|
|
1038
|
+
return (a, r) => (m(), x("div", {
|
|
1039
|
+
style: Re(e())
|
|
1040
|
+
}, H(a.value.data), 5));
|
|
1035
1041
|
}
|
|
1036
|
-
}),
|
|
1042
|
+
}), Ut = { class: "chart-components" }, ke = /* @__PURE__ */ L({
|
|
1037
1043
|
__name: "ReportChart",
|
|
1038
1044
|
props: {
|
|
1039
1045
|
value: {}
|
|
@@ -1041,7 +1047,7 @@ const $e = /* @__PURE__ */ T({
|
|
|
1041
1047
|
setup(o) {
|
|
1042
1048
|
const t = o, e = q(() => t.value), a = q(() => {
|
|
1043
1049
|
if (e.value.type === "bar") {
|
|
1044
|
-
e.value.options.series =
|
|
1050
|
+
e.value.options.series = Q([]).series;
|
|
1045
1051
|
const r = [];
|
|
1046
1052
|
let n = "";
|
|
1047
1053
|
e.value.data.forEach((i) => {
|
|
@@ -1049,40 +1055,40 @@ const $e = /* @__PURE__ */ T({
|
|
|
1049
1055
|
name: i.label,
|
|
1050
1056
|
value: i.data[0].value
|
|
1051
1057
|
});
|
|
1052
|
-
}),
|
|
1058
|
+
}), mt(e.value.options, r, n);
|
|
1053
1059
|
}
|
|
1054
|
-
if (e.value.type === "pie" && (e.value.options =
|
|
1060
|
+
if (e.value.type === "pie" && (e.value.options = ae({ isLegend: !0 }), _t({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
|
|
1055
1061
|
let r = [];
|
|
1056
|
-
e.value.data.forEach((
|
|
1057
|
-
r =
|
|
1062
|
+
e.value.data.forEach((f) => {
|
|
1063
|
+
r = f.data.map((p, b) => ({ name: p.name, value: "value" + b }));
|
|
1058
1064
|
});
|
|
1059
1065
|
const n = {
|
|
1060
1066
|
name: "name",
|
|
1061
1067
|
value: r
|
|
1062
|
-
}, i = e.value.data.map((
|
|
1063
|
-
const
|
|
1064
|
-
name:
|
|
1068
|
+
}, i = e.value.data.map((f) => {
|
|
1069
|
+
const p = {
|
|
1070
|
+
name: f.label
|
|
1065
1071
|
};
|
|
1066
|
-
return r.forEach((b,
|
|
1067
|
-
|
|
1068
|
-
}),
|
|
1072
|
+
return r.forEach((b, v) => {
|
|
1073
|
+
p[b.value] = f.data[v].value;
|
|
1074
|
+
}), p;
|
|
1069
1075
|
});
|
|
1070
|
-
console.log(
|
|
1076
|
+
console.log(J([], n), "chartsLine([], params)"), e.value.options.series = J([], n).series, vt(e.value.options, i, n);
|
|
1071
1077
|
}
|
|
1072
1078
|
return e.value.options;
|
|
1073
1079
|
});
|
|
1074
1080
|
return (r, n) => {
|
|
1075
1081
|
const i = s("TdsChart");
|
|
1076
|
-
return
|
|
1082
|
+
return m(), x("div", Ut, [
|
|
1077
1083
|
l(i, { option: a.value }, null, 8, ["option"])
|
|
1078
1084
|
]);
|
|
1079
1085
|
};
|
|
1080
1086
|
}
|
|
1081
1087
|
});
|
|
1082
|
-
function
|
|
1083
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
1088
|
+
function Et(o) {
|
|
1089
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
|
|
1084
1090
|
}
|
|
1085
|
-
const Ve = /* @__PURE__ */
|
|
1091
|
+
const Ve = /* @__PURE__ */ L({
|
|
1086
1092
|
__name: "ReportDescribe",
|
|
1087
1093
|
props: {
|
|
1088
1094
|
value: {}
|
|
@@ -1095,7 +1101,7 @@ const Ve = /* @__PURE__ */ T({
|
|
|
1095
1101
|
border: t.value.options.border,
|
|
1096
1102
|
column: t.value.options.column,
|
|
1097
1103
|
direction: t.value.options.direction
|
|
1098
|
-
},
|
|
1104
|
+
}, Et(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
|
|
1099
1105
|
label: n.name
|
|
1100
1106
|
}, {
|
|
1101
1107
|
default: () => [t.value.data[n.key]]
|
|
@@ -1103,19 +1109,19 @@ const Ve = /* @__PURE__ */ T({
|
|
|
1103
1109
|
default: () => [r]
|
|
1104
1110
|
});
|
|
1105
1111
|
};
|
|
1106
|
-
return (a, r) => (
|
|
1112
|
+
return (a, r) => (m(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
|
|
1107
1113
|
}
|
|
1108
|
-
}),
|
|
1114
|
+
}), At = {
|
|
1109
1115
|
class: "editor-box"
|
|
1110
|
-
},
|
|
1116
|
+
}, Ft = {
|
|
1111
1117
|
class: "editor",
|
|
1112
1118
|
id: "editor",
|
|
1113
1119
|
style: {
|
|
1114
1120
|
width: "100%"
|
|
1115
1121
|
}
|
|
1116
|
-
},
|
|
1122
|
+
}, Dt = {
|
|
1117
1123
|
class: "editor-content flex flex-start"
|
|
1118
|
-
},
|
|
1124
|
+
}, It = ["id"], qt = ["innerHTML"], zt = /* @__PURE__ */ L({
|
|
1119
1125
|
__name: "index",
|
|
1120
1126
|
props: /* @__PURE__ */ ce({
|
|
1121
1127
|
reportId: {
|
|
@@ -1132,58 +1138,58 @@ const Ve = /* @__PURE__ */ T({
|
|
|
1132
1138
|
Bar: we,
|
|
1133
1139
|
Line: Ce,
|
|
1134
1140
|
Pie: xe,
|
|
1135
|
-
ReportSelect:
|
|
1136
|
-
RangeTime:
|
|
1141
|
+
ReportSelect: ee,
|
|
1142
|
+
RangeTime: te,
|
|
1137
1143
|
ReportTable: $e,
|
|
1138
|
-
ReportText:
|
|
1144
|
+
ReportText: oe,
|
|
1139
1145
|
ReportChart: ke,
|
|
1140
1146
|
ReportDescribe: Ve
|
|
1141
|
-
}, a = z(), r = o, n = me(o, "modelValue"), i = S([]),
|
|
1147
|
+
}, a = z(), r = o, n = me(o, "modelValue"), i = S([]), f = S([]), p = S([]), b = S(""), v = S("");
|
|
1142
1148
|
function c() {
|
|
1143
1149
|
n.value = "table";
|
|
1144
1150
|
}
|
|
1145
1151
|
const w = (u) => {
|
|
1146
|
-
|
|
1147
|
-
},
|
|
1148
|
-
u && u.length > 0 && (b.value = u[0],
|
|
1152
|
+
p.value = u, g();
|
|
1153
|
+
}, _ = (u) => {
|
|
1154
|
+
u && u.length > 0 && (b.value = u[0], v.value = u[1]), g();
|
|
1149
1155
|
}, g = async () => {
|
|
1150
1156
|
try {
|
|
1151
1157
|
t.value = !0;
|
|
1152
1158
|
const u = {
|
|
1153
1159
|
report_uuid: r.reportId,
|
|
1154
1160
|
start_time: b.value,
|
|
1155
|
-
end_time:
|
|
1156
|
-
select_data:
|
|
1157
|
-
}, y = await
|
|
1158
|
-
y.data.forEach((
|
|
1159
|
-
(
|
|
1160
|
-
}), i.value =
|
|
1161
|
+
end_time: v.value,
|
|
1162
|
+
select_data: p.value.join(",")
|
|
1163
|
+
}, y = await Ge(u), A = [];
|
|
1164
|
+
y.data.forEach((k) => {
|
|
1165
|
+
(k.type === "report-select" || k.type === "range-time") && A.push(k);
|
|
1166
|
+
}), i.value = A, y.data.splice(0, i.value.length), f.value = y.data, t.value = !1;
|
|
1161
1167
|
} catch (u) {
|
|
1162
1168
|
t.value = !1, console.error("Error setting loading state:", u);
|
|
1163
1169
|
}
|
|
1164
1170
|
};
|
|
1165
1171
|
g();
|
|
1166
|
-
const $ = () => l("div", null, [R("未找到对应组件")]), C = (u) => u === "h2" || u === "h3" || u === "h4" ?
|
|
1172
|
+
const $ = () => l("div", null, [R("未找到对应组件")]), C = (u) => u === "h2" || u === "h3" || u === "h4" ? B(e, "ReportText") : u === "bar" || u === "pie" || u === "line" ? B(e, "ReportChart") : u ? B(e, u) : l($, null, null);
|
|
1167
1173
|
return (u, y) => {
|
|
1168
|
-
const
|
|
1169
|
-
return fe((
|
|
1174
|
+
const A = s("el-button"), k = s("el-card"), W = _e("loading");
|
|
1175
|
+
return fe((m(), T(k, {
|
|
1170
1176
|
class: "editor view",
|
|
1171
1177
|
"element-loading-text": "加载中..."
|
|
1172
1178
|
}, {
|
|
1173
|
-
default:
|
|
1174
|
-
data:
|
|
1175
|
-
}, null, 8, ["data"]), V("div",
|
|
1179
|
+
default: d(() => [V("div", At, [l(kt, {
|
|
1180
|
+
data: f.value
|
|
1181
|
+
}, null, 8, ["data"]), V("div", Ft, [V("div", Dt, [(m(!0), x(E, null, I(i.value, (F) => (m(), x("div", {
|
|
1176
1182
|
class: "item-input",
|
|
1177
|
-
key:
|
|
1178
|
-
}, [
|
|
1183
|
+
key: F.id
|
|
1184
|
+
}, [F.type === "report-select" ? (m(), T(ee, {
|
|
1179
1185
|
key: 0,
|
|
1180
1186
|
onChange: w,
|
|
1181
|
-
value:
|
|
1182
|
-
}, null, 8, ["value"])) : U("", !0),
|
|
1187
|
+
value: F
|
|
1188
|
+
}, null, 8, ["value"])) : U("", !0), F.type === "range-time" && h(a).filterForm.range_time ? (m(), T(te, {
|
|
1183
1189
|
key: 1,
|
|
1184
|
-
onChange:
|
|
1185
|
-
value:
|
|
1186
|
-
}, null, 8, ["value"])) : U("", !0)]))), 128)), l(
|
|
1190
|
+
onChange: _,
|
|
1191
|
+
value: F
|
|
1192
|
+
}, null, 8, ["value"])) : U("", !0)]))), 128)), l(A, {
|
|
1187
1193
|
plain: "",
|
|
1188
1194
|
onClick: c,
|
|
1189
1195
|
type: "primary",
|
|
@@ -1192,43 +1198,43 @@ const Ve = /* @__PURE__ */ T({
|
|
|
1192
1198
|
"margin-left": "auto"
|
|
1193
1199
|
}
|
|
1194
1200
|
}, {
|
|
1195
|
-
default:
|
|
1201
|
+
default: d(() => y[0] || (y[0] = [R("退出预览")])),
|
|
1196
1202
|
_: 1
|
|
1197
|
-
})]), (
|
|
1198
|
-
key:
|
|
1199
|
-
class: O(["editor-content", ["editor" +
|
|
1200
|
-
id:
|
|
1201
|
-
}, [
|
|
1203
|
+
})]), (m(!0), x(E, null, I(f.value, (F) => (m(), x("div", {
|
|
1204
|
+
key: F.id,
|
|
1205
|
+
class: O(["editor-content", ["editor" + F.type]]),
|
|
1206
|
+
id: F.id
|
|
1207
|
+
}, [F.type !== "p" ? (m(), T(Y(C(F.type)), {
|
|
1202
1208
|
key: 0,
|
|
1203
|
-
class: O(["editor" +
|
|
1204
|
-
value:
|
|
1209
|
+
class: O(["editor" + F.type]),
|
|
1210
|
+
value: F
|
|
1205
1211
|
}, {
|
|
1206
|
-
default:
|
|
1212
|
+
default: d(() => [R(H(F.data), 1)]),
|
|
1207
1213
|
_: 2
|
|
1208
|
-
}, 1032, ["class", "value"])) : (
|
|
1214
|
+
}, 1032, ["class", "value"])) : (m(), x("p", {
|
|
1209
1215
|
key: 1,
|
|
1210
|
-
innerHTML:
|
|
1211
|
-
}, null, 8,
|
|
1216
|
+
innerHTML: F.data
|
|
1217
|
+
}, null, 8, qt))], 10, It))), 128))])])]),
|
|
1212
1218
|
_: 1
|
|
1213
|
-
})), [[
|
|
1219
|
+
})), [[W, t.value]]);
|
|
1214
1220
|
};
|
|
1215
1221
|
}
|
|
1216
1222
|
});
|
|
1217
|
-
const
|
|
1223
|
+
const Se = /* @__PURE__ */ N(zt, [["__scopeId", "data-v-db45c725"]]), Bt = {
|
|
1218
1224
|
class: "editor"
|
|
1219
1225
|
}, Ht = {
|
|
1220
1226
|
class: "editor-content edit"
|
|
1221
|
-
},
|
|
1227
|
+
}, jt = ["onClick"], Pt = ["onClick"], Mt = ["innerHTML", "draggable"], Ot = /* @__PURE__ */ L({
|
|
1222
1228
|
__name: "Editor",
|
|
1223
1229
|
setup(o) {
|
|
1224
1230
|
const t = {
|
|
1225
1231
|
Bar: we,
|
|
1226
1232
|
Line: Ce,
|
|
1227
1233
|
Pie: xe,
|
|
1228
|
-
ReportSelect:
|
|
1229
|
-
RangeTime:
|
|
1234
|
+
ReportSelect: ee,
|
|
1235
|
+
RangeTime: te,
|
|
1230
1236
|
ReportTable: $e,
|
|
1231
|
-
ReportText:
|
|
1237
|
+
ReportText: oe,
|
|
1232
1238
|
ReportChart: ke,
|
|
1233
1239
|
ReportDescribe: Ve
|
|
1234
1240
|
}, {
|
|
@@ -1236,122 +1242,129 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1236
1242
|
activeComponents: a,
|
|
1237
1243
|
notDraggableList: r,
|
|
1238
1244
|
titleComponent: n
|
|
1239
|
-
} =
|
|
1245
|
+
} = Be(z()), i = z(), f = (C) => {
|
|
1240
1246
|
e.value.forEach((u, y) => {
|
|
1241
1247
|
u.id === C && (e.value.splice(y, 1), i.activeComponents = []);
|
|
1242
1248
|
});
|
|
1243
|
-
},
|
|
1249
|
+
}, p = (C) => {
|
|
1244
1250
|
i.setActiveComponents(C);
|
|
1245
|
-
}, b = () => l("div", null, [R("未找到对应组件")]),
|
|
1251
|
+
}, b = () => l("div", null, [R("未找到对应组件")]), v = (C) => C === "h2" || C === "h3" || C === "h4" ? B(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? B(t, "ReportChart") : C ? B(t, C) : l(b, null, null), c = (C) => {
|
|
1246
1252
|
console.log(C, "evt");
|
|
1247
|
-
}, w = S(!1),
|
|
1253
|
+
}, w = S(!1), _ = () => {
|
|
1248
1254
|
w.value = !0;
|
|
1249
1255
|
}, g = (C) => {
|
|
1250
1256
|
C.newIndex !== 0 && (console.log(C), w.value = !1);
|
|
1251
1257
|
}, $ = S();
|
|
1252
1258
|
return (C, u) => {
|
|
1253
|
-
const y = s("icon
|
|
1254
|
-
return
|
|
1259
|
+
const y = s("CircleClose"), A = s("el-icon");
|
|
1260
|
+
return m(), x("div", Bt, [V("div", {
|
|
1255
1261
|
class: O(["editor-content edit flex flex-start", [{
|
|
1256
1262
|
active: h(a).id === "filter"
|
|
1257
1263
|
}]]),
|
|
1258
|
-
onClick: u[0] || (u[0] = (k) =>
|
|
1264
|
+
onClick: u[0] || (u[0] = (k) => p({
|
|
1259
1265
|
id: "filter",
|
|
1260
1266
|
type: "filter"
|
|
1261
1267
|
}))
|
|
1262
|
-
}, [(
|
|
1268
|
+
}, [(m(!0), x(E, null, I(h(r), (k) => (m(), x("div", {
|
|
1263
1269
|
class: "item-input",
|
|
1264
1270
|
key: k.id
|
|
1265
|
-
}, [k.type === "report-select" || k.type === "range-time" && h(i).filterForm.range_time ? (
|
|
1271
|
+
}, [k.type === "report-select" || k.type === "range-time" && h(i).filterForm.range_time ? (m(), T(Y(h(B)(t, k.type)), {
|
|
1266
1272
|
key: 0,
|
|
1267
1273
|
value: k
|
|
1268
1274
|
}, {
|
|
1269
|
-
default:
|
|
1275
|
+
default: d(() => [R(H(k.data), 1)]),
|
|
1270
1276
|
_: 2
|
|
1271
|
-
}, 1032, ["value"])) : U("", !0)]))), 128))], 2), V("div", Ht, [l(
|
|
1277
|
+
}, 1032, ["value"])) : U("", !0)]))), 128))], 2), V("div", Ht, [l(oe, {
|
|
1272
1278
|
value: h(n),
|
|
1273
|
-
onClick: u[1] || (u[1] = (k) =>
|
|
1274
|
-
}, null, 8, ["value"])]), l(h(
|
|
1279
|
+
onClick: u[1] || (u[1] = (k) => p(h(n)))
|
|
1280
|
+
}, null, 8, ["value"])]), l(h(je), {
|
|
1275
1281
|
ref_key: "el",
|
|
1276
1282
|
ref: $,
|
|
1277
1283
|
modelValue: h(e),
|
|
1278
|
-
"onUpdate:modelValue": u[2] || (u[2] = (k) =>
|
|
1284
|
+
"onUpdate:modelValue": u[2] || (u[2] = (k) => Ue(e) ? e.value = k : null),
|
|
1279
1285
|
"on-change": c,
|
|
1280
1286
|
animation: 150,
|
|
1281
|
-
onStart:
|
|
1287
|
+
onStart: _,
|
|
1282
1288
|
onEnd: g
|
|
1283
1289
|
}, {
|
|
1284
|
-
default:
|
|
1290
|
+
default: d(() => [(m(!0), x(E, null, I(h(e), (k) => (m(), x("div", {
|
|
1285
1291
|
key: k.id,
|
|
1286
1292
|
class: O(["editor-content edit", ["editor" + k.type, {
|
|
1287
1293
|
active: k.id === h(a).id
|
|
1288
1294
|
}]]),
|
|
1289
|
-
onClick: (
|
|
1295
|
+
onClick: (W) => p(k)
|
|
1290
1296
|
}, [V("i", {
|
|
1291
|
-
onClick:
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1297
|
+
onClick: Ee((W) => f(k.id), ["stop"]),
|
|
1298
|
+
style: {
|
|
1299
|
+
"z-index": "99"
|
|
1300
|
+
}
|
|
1301
|
+
}, [l(A, {
|
|
1302
|
+
size: "16px",
|
|
1303
|
+
color: "red"
|
|
1304
|
+
}, {
|
|
1305
|
+
default: d(() => [l(y)]),
|
|
1306
|
+
_: 1
|
|
1307
|
+
})], 8, Pt), k.type !== "p" ? (m(), T(Y(v(k.type)), {
|
|
1295
1308
|
key: 0,
|
|
1296
1309
|
class: O(["editor" + k.type]),
|
|
1297
1310
|
value: k,
|
|
1298
1311
|
draggable: w.value
|
|
1299
1312
|
}, {
|
|
1300
|
-
default:
|
|
1313
|
+
default: d(() => [R(H(k.data), 1)]),
|
|
1301
1314
|
_: 2
|
|
1302
|
-
}, 1032, ["class", "value", "draggable"])) : (
|
|
1315
|
+
}, 1032, ["class", "value", "draggable"])) : (m(), x("p", {
|
|
1303
1316
|
key: 1,
|
|
1304
1317
|
innerHTML: k.data,
|
|
1305
1318
|
draggable: w.value
|
|
1306
|
-
}, null, 8,
|
|
1319
|
+
}, null, 8, Mt))], 10, jt))), 128))]),
|
|
1307
1320
|
_: 1
|
|
1308
1321
|
}, 8, ["modelValue"])]);
|
|
1309
1322
|
};
|
|
1310
1323
|
}
|
|
1311
|
-
}),
|
|
1324
|
+
}), Nt = { class: "label" }, Wt = { class: "flex item-switch" }, Yt = { class: "flex item-switch" }, Kt = { class: "flex item-switch" }, Te = /* @__PURE__ */ L({
|
|
1312
1325
|
__name: "SettingTable",
|
|
1313
1326
|
setup(o) {
|
|
1314
1327
|
const t = z(), e = q(() => t.getActiveComponents);
|
|
1315
1328
|
return (a, r) => {
|
|
1316
|
-
const n = s("el-switch"), i = s("el-form-item"),
|
|
1317
|
-
return
|
|
1329
|
+
const n = s("el-switch"), i = s("el-form-item"), f = s("el-divider");
|
|
1330
|
+
return m(), x("div", null, [
|
|
1318
1331
|
l(i, { label: "控制列" }, {
|
|
1319
|
-
default:
|
|
1320
|
-
(
|
|
1332
|
+
default: d(() => [
|
|
1333
|
+
(m(!0), x(E, null, I(e.value.showColumn, (p, b) => (m(), x("p", {
|
|
1321
1334
|
class: "flex item-switch",
|
|
1322
1335
|
key: b
|
|
1323
1336
|
}, [
|
|
1324
|
-
V("span",
|
|
1337
|
+
V("span", Nt, H(p.name), 1),
|
|
1325
1338
|
l(n, {
|
|
1326
|
-
modelValue: e.value.options.showColumn[
|
|
1327
|
-
"onUpdate:modelValue": (
|
|
1339
|
+
modelValue: e.value.options.showColumn[p.key],
|
|
1340
|
+
"onUpdate:modelValue": (v) => e.value.options.showColumn[p.key] = v
|
|
1328
1341
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1329
1342
|
]))), 128))
|
|
1330
1343
|
]),
|
|
1331
1344
|
_: 1
|
|
1332
1345
|
}),
|
|
1333
|
-
l(
|
|
1346
|
+
l(f),
|
|
1334
1347
|
l(i, { label: "表格样式" }, {
|
|
1335
|
-
default:
|
|
1336
|
-
V("p",
|
|
1348
|
+
default: d(() => [
|
|
1349
|
+
V("p", Wt, [
|
|
1337
1350
|
r[3] || (r[3] = V("span", { class: "label" }, "斑马纹", -1)),
|
|
1338
1351
|
l(n, {
|
|
1339
1352
|
modelValue: e.value.options.stripe,
|
|
1340
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1353
|
+
"onUpdate:modelValue": r[0] || (r[0] = (p) => e.value.options.stripe = p)
|
|
1341
1354
|
}, null, 8, ["modelValue"])
|
|
1342
1355
|
]),
|
|
1343
|
-
V("p",
|
|
1356
|
+
V("p", Yt, [
|
|
1344
1357
|
r[4] || (r[4] = V("span", { class: "label" }, "边框", -1)),
|
|
1345
1358
|
l(n, {
|
|
1346
1359
|
modelValue: e.value.options.border,
|
|
1347
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1360
|
+
"onUpdate:modelValue": r[1] || (r[1] = (p) => e.value.options.border = p)
|
|
1348
1361
|
}, null, 8, ["modelValue"])
|
|
1349
1362
|
]),
|
|
1350
|
-
V("p",
|
|
1363
|
+
V("p", Kt, [
|
|
1351
1364
|
r[5] || (r[5] = V("span", { class: "label" }, "表头", -1)),
|
|
1352
1365
|
l(n, {
|
|
1353
1366
|
modelValue: e.value.options.showHeader,
|
|
1354
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1367
|
+
"onUpdate:modelValue": r[2] || (r[2] = (p) => e.value.options.showHeader = p)
|
|
1355
1368
|
}, null, 8, ["modelValue"])
|
|
1356
1369
|
])
|
|
1357
1370
|
]),
|
|
@@ -1360,7 +1373,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1360
1373
|
]);
|
|
1361
1374
|
};
|
|
1362
1375
|
}
|
|
1363
|
-
}),
|
|
1376
|
+
}), Gt = { key: 0 }, Jt = /* @__PURE__ */ L({
|
|
1364
1377
|
__name: "ChartsUniConfig",
|
|
1365
1378
|
setup(o) {
|
|
1366
1379
|
const t = z(), e = q(() => t.activeComponents);
|
|
@@ -1368,10 +1381,10 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1368
1381
|
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);
|
|
1369
1382
|
}
|
|
1370
1383
|
return S("rgb(46, 145, 255)"), (r, n) => {
|
|
1371
|
-
const i = s("el-input"),
|
|
1372
|
-
return e.value.options.title ? (
|
|
1373
|
-
l(
|
|
1374
|
-
default:
|
|
1384
|
+
const i = s("el-input"), f = s("el-form-item"), p = s("el-switch"), b = s("el-col"), v = s("el-color-picker"), c = s("el-input-number"), w = s("el-row"), _ = s("el-collapse-item"), g = s("el-collapse");
|
|
1385
|
+
return e.value.options.title ? (m(), x("div", Gt, [
|
|
1386
|
+
l(f, { label: "标题" }, {
|
|
1387
|
+
default: d(() => [
|
|
1375
1388
|
l(i, {
|
|
1376
1389
|
modelValue: e.value.options.title.text,
|
|
1377
1390
|
"onUpdate:modelValue": n[0] || (n[0] = ($) => e.value.options.title.text = $)
|
|
@@ -1380,18 +1393,18 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1380
1393
|
_: 1
|
|
1381
1394
|
}),
|
|
1382
1395
|
l(g, null, {
|
|
1383
|
-
default:
|
|
1384
|
-
l(
|
|
1396
|
+
default: d(() => [
|
|
1397
|
+
l(_, {
|
|
1385
1398
|
title: "标题配置",
|
|
1386
1399
|
name: "1"
|
|
1387
1400
|
}, {
|
|
1388
|
-
default:
|
|
1401
|
+
default: d(() => [
|
|
1389
1402
|
l(w, { class: "w-100%" }, {
|
|
1390
|
-
default:
|
|
1403
|
+
default: d(() => [
|
|
1391
1404
|
l(b, { span: 24 }, {
|
|
1392
|
-
default:
|
|
1405
|
+
default: d(() => [
|
|
1393
1406
|
n[8] || (n[8] = V("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1394
|
-
l(
|
|
1407
|
+
l(p, {
|
|
1395
1408
|
modelValue: e.value.options.title.show,
|
|
1396
1409
|
"onUpdate:modelValue": n[1] || (n[1] = ($) => e.value.options.title.show = $)
|
|
1397
1410
|
}, null, 8, ["modelValue"])
|
|
@@ -1399,8 +1412,8 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1399
1412
|
_: 1
|
|
1400
1413
|
}),
|
|
1401
1414
|
l(b, { span: 12 }, {
|
|
1402
|
-
default:
|
|
1403
|
-
l(
|
|
1415
|
+
default: d(() => [
|
|
1416
|
+
l(v, {
|
|
1404
1417
|
modelValue: e.value.options.title.textStyle.color,
|
|
1405
1418
|
"onUpdate:modelValue": n[2] || (n[2] = ($) => e.value.options.title.textStyle.color = $),
|
|
1406
1419
|
"show-alpha": ""
|
|
@@ -1410,7 +1423,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1410
1423
|
_: 1
|
|
1411
1424
|
}),
|
|
1412
1425
|
l(b, { span: 12 }, {
|
|
1413
|
-
default:
|
|
1426
|
+
default: d(() => [
|
|
1414
1427
|
l(c, {
|
|
1415
1428
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1416
1429
|
"onUpdate:modelValue": n[3] || (n[3] = ($) => e.value.options.title.textStyle.fontSize = $),
|
|
@@ -1421,7 +1434,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1421
1434
|
_: 1
|
|
1422
1435
|
}),
|
|
1423
1436
|
l(b, { span: 12 }, {
|
|
1424
|
-
default:
|
|
1437
|
+
default: d(() => [
|
|
1425
1438
|
l(c, {
|
|
1426
1439
|
modelValue: e.value.options.title.x,
|
|
1427
1440
|
"onUpdate:modelValue": n[4] || (n[4] = ($) => e.value.options.title.x = $),
|
|
@@ -1432,7 +1445,7 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1432
1445
|
_: 1
|
|
1433
1446
|
}),
|
|
1434
1447
|
l(b, { span: 12 }, {
|
|
1435
|
-
default:
|
|
1448
|
+
default: d(() => [
|
|
1436
1449
|
l(c, {
|
|
1437
1450
|
modelValue: e.value.options.title.y,
|
|
1438
1451
|
"onUpdate:modelValue": n[5] || (n[5] = ($) => e.value.options.title.y = $),
|
|
@@ -1448,17 +1461,17 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1448
1461
|
]),
|
|
1449
1462
|
_: 1
|
|
1450
1463
|
}),
|
|
1451
|
-
l(
|
|
1464
|
+
l(_, {
|
|
1452
1465
|
title: "图形配置",
|
|
1453
1466
|
name: "2"
|
|
1454
1467
|
}, {
|
|
1455
|
-
default:
|
|
1456
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (
|
|
1457
|
-
default:
|
|
1468
|
+
default: d(() => [
|
|
1469
|
+
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), T(w, { key: 0 }, {
|
|
1470
|
+
default: d(() => [
|
|
1458
1471
|
l(b, { span: 24 }, {
|
|
1459
|
-
default:
|
|
1472
|
+
default: d(() => [
|
|
1460
1473
|
n[13] || (n[13] = V("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
1461
|
-
l(
|
|
1474
|
+
l(p, {
|
|
1462
1475
|
onChange: a,
|
|
1463
1476
|
modelValue: e.value.options.series[0].roseType,
|
|
1464
1477
|
"onUpdate:modelValue": n[6] || (n[6] = ($) => e.value.options.series[0].roseType = $)
|
|
@@ -1472,17 +1485,17 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1472
1485
|
]),
|
|
1473
1486
|
_: 1
|
|
1474
1487
|
}),
|
|
1475
|
-
l(
|
|
1488
|
+
l(_, {
|
|
1476
1489
|
title: "图例配置",
|
|
1477
1490
|
name: "3"
|
|
1478
1491
|
}, {
|
|
1479
|
-
default:
|
|
1492
|
+
default: d(() => [
|
|
1480
1493
|
l(w, null, {
|
|
1481
|
-
default:
|
|
1494
|
+
default: d(() => [
|
|
1482
1495
|
l(b, { span: 24 }, {
|
|
1483
|
-
default:
|
|
1496
|
+
default: d(() => [
|
|
1484
1497
|
n[14] || (n[14] = V("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1485
|
-
e.value.options.legend ? (
|
|
1498
|
+
e.value.options.legend ? (m(), T(p, {
|
|
1486
1499
|
key: 0,
|
|
1487
1500
|
modelValue: e.value.options.legend.show,
|
|
1488
1501
|
"onUpdate:modelValue": n[7] || (n[7] = ($) => e.value.options.legend.show = $)
|
|
@@ -1503,15 +1516,15 @@ const It = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-db45c725"]]), zt = {
|
|
|
1503
1516
|
};
|
|
1504
1517
|
}
|
|
1505
1518
|
});
|
|
1506
|
-
const
|
|
1519
|
+
const Qt = /* @__PURE__ */ N(Jt, [["__scopeId", "data-v-e9859d3b"]]), Le = /* @__PURE__ */ L({
|
|
1507
1520
|
__name: "SettingDescribe",
|
|
1508
1521
|
setup(o) {
|
|
1509
1522
|
const t = z(), e = q(() => t.getActiveComponents);
|
|
1510
1523
|
return (a, r) => {
|
|
1511
|
-
const n = s("el-input"), i = s("el-form-item"),
|
|
1512
|
-
return
|
|
1524
|
+
const n = s("el-input"), i = s("el-form-item"), f = s("el-switch"), p = s("el-input-number"), b = s("el-radio"), v = s("el-radio-group");
|
|
1525
|
+
return m(), x("div", null, [
|
|
1513
1526
|
l(i, { label: "标题" }, {
|
|
1514
|
-
default:
|
|
1527
|
+
default: d(() => [
|
|
1515
1528
|
l(n, {
|
|
1516
1529
|
modelValue: e.value.options.title,
|
|
1517
1530
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => e.value.options.title = c)
|
|
@@ -1520,8 +1533,8 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1520
1533
|
_: 1
|
|
1521
1534
|
}),
|
|
1522
1535
|
l(i, { label: "边框" }, {
|
|
1523
|
-
default:
|
|
1524
|
-
l(
|
|
1536
|
+
default: d(() => [
|
|
1537
|
+
l(f, {
|
|
1525
1538
|
modelValue: e.value.options.border,
|
|
1526
1539
|
"onUpdate:modelValue": r[1] || (r[1] = (c) => e.value.options.border = c)
|
|
1527
1540
|
}, null, 8, ["modelValue"])
|
|
@@ -1529,8 +1542,8 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1529
1542
|
_: 1
|
|
1530
1543
|
}),
|
|
1531
1544
|
l(i, { label: "每行展示数量" }, {
|
|
1532
|
-
default:
|
|
1533
|
-
l(
|
|
1545
|
+
default: d(() => [
|
|
1546
|
+
l(p, {
|
|
1534
1547
|
modelValue: e.value.options.column,
|
|
1535
1548
|
"onUpdate:modelValue": r[2] || (r[2] = (c) => e.value.options.column = c),
|
|
1536
1549
|
min: 1,
|
|
@@ -1541,20 +1554,20 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1541
1554
|
_: 1
|
|
1542
1555
|
}),
|
|
1543
1556
|
l(i, { label: "排列方向" }, {
|
|
1544
|
-
default:
|
|
1545
|
-
l(
|
|
1557
|
+
default: d(() => [
|
|
1558
|
+
l(v, {
|
|
1546
1559
|
modelValue: e.value.options.direction,
|
|
1547
1560
|
"onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
|
|
1548
1561
|
}, {
|
|
1549
|
-
default:
|
|
1562
|
+
default: d(() => [
|
|
1550
1563
|
l(b, { value: "horizontal" }, {
|
|
1551
|
-
default:
|
|
1564
|
+
default: d(() => r[4] || (r[4] = [
|
|
1552
1565
|
R("横向")
|
|
1553
1566
|
])),
|
|
1554
1567
|
_: 1
|
|
1555
1568
|
}),
|
|
1556
1569
|
l(b, { value: "vertical" }, {
|
|
1557
|
-
default:
|
|
1570
|
+
default: d(() => r[5] || (r[5] = [
|
|
1558
1571
|
R("纵向")
|
|
1559
1572
|
])),
|
|
1560
1573
|
_: 1
|
|
@@ -1568,7 +1581,7 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1568
1581
|
]);
|
|
1569
1582
|
};
|
|
1570
1583
|
}
|
|
1571
|
-
}),
|
|
1584
|
+
}), Xt = /* @__PURE__ */ L({
|
|
1572
1585
|
__name: "SettingCharts",
|
|
1573
1586
|
setup(o) {
|
|
1574
1587
|
const t = z(), e = S(!1), a = q(() => t.getActiveComponents), r = [
|
|
@@ -1578,66 +1591,66 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1578
1591
|
{ value: "pie", name: "扇形图" },
|
|
1579
1592
|
{ value: "bar", name: "柱状图" }
|
|
1580
1593
|
], n = S(""), i = S();
|
|
1581
|
-
async function v
|
|
1594
|
+
async function f(v) {
|
|
1582
1595
|
const c = await be({
|
|
1583
1596
|
prod_type: window.$prodType,
|
|
1584
|
-
chart_type:
|
|
1597
|
+
chart_type: v,
|
|
1585
1598
|
filter_uuid: t.filterForm.filter_uuid
|
|
1586
1599
|
});
|
|
1587
1600
|
i.value = c.data;
|
|
1588
1601
|
}
|
|
1589
|
-
function
|
|
1590
|
-
let c = i.value.find((
|
|
1602
|
+
function p(v) {
|
|
1603
|
+
let c = i.value.find((_) => _.rp_item_uuid === v);
|
|
1591
1604
|
const w = c.rp_item_content;
|
|
1592
|
-
if (c.rp_item_content.type === "bar" && (w.options =
|
|
1593
|
-
let
|
|
1605
|
+
if (c.rp_item_content.type === "bar" && (w.options = Q()), w.type === "pie" && (w.options = ae({ isLegend: !0 })), w.type === "line") {
|
|
1606
|
+
let _ = [];
|
|
1594
1607
|
w.data.forEach(($) => {
|
|
1595
|
-
|
|
1608
|
+
_ = $.data.map((C, u) => ({ name: C.name, value: "value" + u }));
|
|
1596
1609
|
});
|
|
1597
1610
|
const g = {
|
|
1598
1611
|
name: "name",
|
|
1599
|
-
value:
|
|
1612
|
+
value: _
|
|
1600
1613
|
};
|
|
1601
|
-
w.options =
|
|
1614
|
+
w.options = J([], g);
|
|
1602
1615
|
}
|
|
1603
1616
|
if (w.type === "report-table") {
|
|
1604
|
-
const
|
|
1617
|
+
const _ = {};
|
|
1605
1618
|
w.showColumn.forEach((g) => {
|
|
1606
|
-
|
|
1607
|
-
}), w.options = { ...w.options, showColumn:
|
|
1619
|
+
_[g.key] = !0;
|
|
1620
|
+
}), w.options = { ...w.options, showColumn: _, border: !0, showHeader: !0, stripe: !1 };
|
|
1608
1621
|
}
|
|
1609
1622
|
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;
|
|
1610
1623
|
}
|
|
1611
|
-
|
|
1612
|
-
n.value = a.value.type, await
|
|
1624
|
+
le(async () => {
|
|
1625
|
+
n.value = a.value.type, await f(n.value);
|
|
1613
1626
|
});
|
|
1614
|
-
async function b(
|
|
1627
|
+
async function b(v) {
|
|
1615
1628
|
try {
|
|
1616
|
-
e.value = !0, await v
|
|
1629
|
+
e.value = !0, await f(v), Object.assign(t.activeComponents, wt(v)), e.value = !1;
|
|
1617
1630
|
} catch {
|
|
1618
1631
|
e.value = !1;
|
|
1619
1632
|
}
|
|
1620
1633
|
}
|
|
1621
|
-
return
|
|
1634
|
+
return Ae(
|
|
1622
1635
|
() => a.value,
|
|
1623
|
-
(
|
|
1624
|
-
console.log(
|
|
1636
|
+
(v) => {
|
|
1637
|
+
console.log(v, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(v.type) && (n.value = a.value.type, f(n.value));
|
|
1625
1638
|
}
|
|
1626
|
-
), (
|
|
1627
|
-
const w = s("el-option"),
|
|
1628
|
-
return fe((
|
|
1639
|
+
), (v, c) => {
|
|
1640
|
+
const w = s("el-option"), _ = s("el-select"), g = s("el-form-item"), $ = s("el-form"), C = _e("loading");
|
|
1641
|
+
return fe((m(), x("div", null, [
|
|
1629
1642
|
l($, { "label-position": "top" }, {
|
|
1630
|
-
default:
|
|
1643
|
+
default: d(() => [
|
|
1631
1644
|
l(g, { label: "图表类型" }, {
|
|
1632
|
-
default:
|
|
1633
|
-
l(
|
|
1645
|
+
default: d(() => [
|
|
1646
|
+
l(_, {
|
|
1634
1647
|
style: { width: "100%" },
|
|
1635
1648
|
modelValue: n.value,
|
|
1636
1649
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
|
|
1637
1650
|
onChange: b
|
|
1638
1651
|
}, {
|
|
1639
|
-
default:
|
|
1640
|
-
(
|
|
1652
|
+
default: d(() => [
|
|
1653
|
+
(m(), x(E, null, I(r, (u, y) => l(w, {
|
|
1641
1654
|
key: y,
|
|
1642
1655
|
label: u.name,
|
|
1643
1656
|
value: u.value
|
|
@@ -1649,15 +1662,15 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1649
1662
|
_: 1
|
|
1650
1663
|
}),
|
|
1651
1664
|
l(g, { label: "组件库" }, {
|
|
1652
|
-
default:
|
|
1653
|
-
l(
|
|
1665
|
+
default: d(() => [
|
|
1666
|
+
l(_, {
|
|
1654
1667
|
style: { width: "100%" },
|
|
1655
1668
|
modelValue: h(t).activeComponents.rp_item_uuid,
|
|
1656
1669
|
"onUpdate:modelValue": c[1] || (c[1] = (u) => h(t).activeComponents.rp_item_uuid = u),
|
|
1657
|
-
onChange:
|
|
1670
|
+
onChange: p
|
|
1658
1671
|
}, {
|
|
1659
|
-
default:
|
|
1660
|
-
(
|
|
1672
|
+
default: d(() => [
|
|
1673
|
+
(m(!0), x(E, null, I(i.value, (u, y) => (m(), T(w, {
|
|
1661
1674
|
key: y,
|
|
1662
1675
|
label: u.rp_item_name,
|
|
1663
1676
|
value: u.rp_item_uuid
|
|
@@ -1668,9 +1681,9 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1668
1681
|
]),
|
|
1669
1682
|
_: 1
|
|
1670
1683
|
}),
|
|
1671
|
-
n.value === "report-table" && a.value.options.showColumn ? (
|
|
1672
|
-
n.value === "pie" || n.value === "bar" || n.value === "line" ? (
|
|
1673
|
-
n.value === "report-describe" ? (
|
|
1684
|
+
n.value === "report-table" && a.value.options.showColumn ? (m(), T(Te, { key: 0 })) : U("", !0),
|
|
1685
|
+
n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), T(Qt, { key: 1 })) : U("", !0),
|
|
1686
|
+
n.value === "report-describe" ? (m(), T(Le, { key: 2 })) : U("", !0)
|
|
1674
1687
|
]),
|
|
1675
1688
|
_: 1
|
|
1676
1689
|
})
|
|
@@ -1679,17 +1692,17 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1679
1692
|
]);
|
|
1680
1693
|
};
|
|
1681
1694
|
}
|
|
1682
|
-
}),
|
|
1695
|
+
}), Zt = { key: 0 }, eo = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", to = /* @__PURE__ */ L({
|
|
1683
1696
|
__name: "SettingText",
|
|
1684
1697
|
setup(o) {
|
|
1685
|
-
const t = z(), e =
|
|
1686
|
-
function r(
|
|
1687
|
-
const c = a.value.find((w) => w.rp_item_uuid ===
|
|
1698
|
+
const t = z(), e = Fe(), a = S();
|
|
1699
|
+
function r(v) {
|
|
1700
|
+
const c = a.value.find((w) => w.rp_item_uuid === v);
|
|
1688
1701
|
t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
|
|
1689
1702
|
}
|
|
1690
1703
|
async function n() {
|
|
1691
|
-
const
|
|
1692
|
-
a.value =
|
|
1704
|
+
const v = await be({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
|
|
1705
|
+
a.value = v.data;
|
|
1693
1706
|
}
|
|
1694
1707
|
n();
|
|
1695
1708
|
const i = {
|
|
@@ -1714,28 +1727,28 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1714
1727
|
"justifyJustify",
|
|
1715
1728
|
"lineHeight"
|
|
1716
1729
|
]
|
|
1717
|
-
},
|
|
1718
|
-
e.value =
|
|
1719
|
-
}, b = (
|
|
1730
|
+
}, f = { placeholder: "请输入内容..." }, p = (v) => {
|
|
1731
|
+
e.value = v;
|
|
1732
|
+
}, b = (v) => {
|
|
1720
1733
|
};
|
|
1721
|
-
return
|
|
1722
|
-
const
|
|
1723
|
-
|
|
1724
|
-
}), (
|
|
1725
|
-
const w = s("el-option"),
|
|
1726
|
-
return h(t).activeComponents.id ? (
|
|
1734
|
+
return De(() => {
|
|
1735
|
+
const v = e.value;
|
|
1736
|
+
v != null && v.destroy();
|
|
1737
|
+
}), (v, c) => {
|
|
1738
|
+
const w = s("el-option"), _ = s("el-select"), g = s("el-form-item"), $ = s("el-form");
|
|
1739
|
+
return h(t).activeComponents.id ? (m(), x("div", Zt, [
|
|
1727
1740
|
l($, { "label-position": "top" }, {
|
|
1728
|
-
default:
|
|
1741
|
+
default: d(() => [
|
|
1729
1742
|
l(g, { label: "组件库" }, {
|
|
1730
|
-
default:
|
|
1731
|
-
l(
|
|
1743
|
+
default: d(() => [
|
|
1744
|
+
l(_, {
|
|
1732
1745
|
style: { width: "100%" },
|
|
1733
1746
|
modelValue: h(t).activeComponents.rp_item_uuid,
|
|
1734
1747
|
"onUpdate:modelValue": c[0] || (c[0] = (C) => h(t).activeComponents.rp_item_uuid = C),
|
|
1735
1748
|
onChange: r
|
|
1736
1749
|
}, {
|
|
1737
|
-
default:
|
|
1738
|
-
(
|
|
1750
|
+
default: d(() => [
|
|
1751
|
+
(m(!0), x(E, null, I(a.value, (C, u) => (m(), T(w, {
|
|
1739
1752
|
key: u,
|
|
1740
1753
|
label: C.rp_item_name,
|
|
1741
1754
|
value: C.rp_item_uuid
|
|
@@ -1747,22 +1760,22 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1747
1760
|
_: 1
|
|
1748
1761
|
}),
|
|
1749
1762
|
l(g, { label: "文本内容" }, {
|
|
1750
|
-
default:
|
|
1751
|
-
V("div",
|
|
1752
|
-
l(h(
|
|
1763
|
+
default: d(() => [
|
|
1764
|
+
V("div", eo, [
|
|
1765
|
+
l(h(Pe), {
|
|
1753
1766
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1754
1767
|
editor: e.value,
|
|
1755
1768
|
"default-config": i,
|
|
1756
1769
|
mode: ie
|
|
1757
1770
|
}, null, 8, ["editor"]),
|
|
1758
|
-
l(h(
|
|
1771
|
+
l(h(Me), {
|
|
1759
1772
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1760
1773
|
onOnChange: b,
|
|
1761
1774
|
modelValue: h(t).activeComponents.data,
|
|
1762
1775
|
"onUpdate:modelValue": c[1] || (c[1] = (C) => h(t).activeComponents.data = C),
|
|
1763
|
-
"default-config":
|
|
1776
|
+
"default-config": f,
|
|
1764
1777
|
mode: ie,
|
|
1765
|
-
onOnCreated:
|
|
1778
|
+
onOnCreated: p
|
|
1766
1779
|
}, null, 8, ["modelValue"])
|
|
1767
1780
|
])
|
|
1768
1781
|
]),
|
|
@@ -1774,7 +1787,7 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1774
1787
|
])) : U("", !0);
|
|
1775
1788
|
};
|
|
1776
1789
|
}
|
|
1777
|
-
}),
|
|
1790
|
+
}), oo = /* @__PURE__ */ L({
|
|
1778
1791
|
__name: "SettingFilter",
|
|
1779
1792
|
setup(o) {
|
|
1780
1793
|
const t = S([]), e = z();
|
|
@@ -1783,21 +1796,21 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1783
1796
|
t.value = r.data;
|
|
1784
1797
|
}
|
|
1785
1798
|
return a(), (r, n) => {
|
|
1786
|
-
const i = s("el-option"),
|
|
1787
|
-
return
|
|
1799
|
+
const i = s("el-option"), f = s("el-select"), p = s("el-form-item"), b = s("el-checkbox"), v = s("el-form");
|
|
1800
|
+
return m(), T(v, {
|
|
1788
1801
|
"label-width": "80px",
|
|
1789
1802
|
"label-position": "top"
|
|
1790
1803
|
}, {
|
|
1791
|
-
default:
|
|
1792
|
-
l(
|
|
1793
|
-
default:
|
|
1794
|
-
l(
|
|
1804
|
+
default: d(() => [
|
|
1805
|
+
l(p, { label: "筛选条件" }, {
|
|
1806
|
+
default: d(() => [
|
|
1807
|
+
l(f, {
|
|
1795
1808
|
modelValue: h(e).filterForm.filter_uuid,
|
|
1796
1809
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => h(e).filterForm.filter_uuid = c),
|
|
1797
1810
|
disabled: !!h(e).filterForm.filter_uuid
|
|
1798
1811
|
}, {
|
|
1799
|
-
default:
|
|
1800
|
-
(
|
|
1812
|
+
default: d(() => [
|
|
1813
|
+
(m(!0), x(E, null, I(t.value, (c) => (m(), T(i, {
|
|
1801
1814
|
key: c.filter_uuid,
|
|
1802
1815
|
label: c.filter_name,
|
|
1803
1816
|
value: c.filter_uuid
|
|
@@ -1808,8 +1821,8 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1808
1821
|
]),
|
|
1809
1822
|
_: 1
|
|
1810
1823
|
}),
|
|
1811
|
-
l(
|
|
1812
|
-
default:
|
|
1824
|
+
l(p, null, {
|
|
1825
|
+
default: d(() => [
|
|
1813
1826
|
l(b, {
|
|
1814
1827
|
modelValue: h(e).filterForm.range_time,
|
|
1815
1828
|
"onUpdate:modelValue": n[1] || (n[1] = (c) => h(e).filterForm.range_time = c),
|
|
@@ -1825,22 +1838,22 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1825
1838
|
});
|
|
1826
1839
|
};
|
|
1827
1840
|
}
|
|
1828
|
-
}),
|
|
1841
|
+
}), lo = /* @__PURE__ */ L({
|
|
1829
1842
|
__name: "SettingTitle",
|
|
1830
1843
|
setup(o) {
|
|
1831
1844
|
const t = z();
|
|
1832
1845
|
return (e, a) => {
|
|
1833
|
-
const r = s("el-input"), n = s("el-form-item"), i = s("el-color-picker"),
|
|
1834
|
-
return
|
|
1846
|
+
const r = s("el-input"), n = s("el-form-item"), i = s("el-color-picker"), f = s("el-col"), p = s("el-input-number"), b = s("el-option"), v = s("el-select"), c = s("el-row"), w = s("el-form");
|
|
1847
|
+
return m(), T(w, {
|
|
1835
1848
|
"label-width": "auto",
|
|
1836
1849
|
"label-position": "top"
|
|
1837
1850
|
}, {
|
|
1838
|
-
default:
|
|
1851
|
+
default: d(() => [
|
|
1839
1852
|
l(n, { label: "名称" }, {
|
|
1840
|
-
default:
|
|
1853
|
+
default: d(() => [
|
|
1841
1854
|
l(r, {
|
|
1842
1855
|
modelValue: h(t).activeComponents.data,
|
|
1843
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1856
|
+
"onUpdate:modelValue": a[0] || (a[0] = (_) => h(t).activeComponents.data = _),
|
|
1844
1857
|
placeholder: "Please input",
|
|
1845
1858
|
maxlength: "24",
|
|
1846
1859
|
"show-word-limit": ""
|
|
@@ -1849,38 +1862,38 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1849
1862
|
_: 1
|
|
1850
1863
|
}),
|
|
1851
1864
|
l(n, { label: "样式" }, {
|
|
1852
|
-
default:
|
|
1865
|
+
default: d(() => [
|
|
1853
1866
|
l(c, { gutter: 20 }, {
|
|
1854
|
-
default:
|
|
1855
|
-
l(
|
|
1856
|
-
default:
|
|
1867
|
+
default: d(() => [
|
|
1868
|
+
l(f, { span: 12 }, {
|
|
1869
|
+
default: d(() => [
|
|
1857
1870
|
l(i, {
|
|
1858
1871
|
modelValue: h(t).activeComponents.options.color,
|
|
1859
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
1872
|
+
"onUpdate:modelValue": a[1] || (a[1] = (_) => h(t).activeComponents.options.color = _),
|
|
1860
1873
|
"show-alpha": ""
|
|
1861
1874
|
}, null, 8, ["modelValue"]),
|
|
1862
1875
|
a[7] || (a[7] = V("p", { class: "sub-title" }, "颜色", -1))
|
|
1863
1876
|
]),
|
|
1864
1877
|
_: 1
|
|
1865
1878
|
}),
|
|
1866
|
-
l(
|
|
1867
|
-
default:
|
|
1868
|
-
l(
|
|
1879
|
+
l(f, { span: 12 }, {
|
|
1880
|
+
default: d(() => [
|
|
1881
|
+
l(p, {
|
|
1869
1882
|
modelValue: h(t).activeComponents.options.size,
|
|
1870
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
1883
|
+
"onUpdate:modelValue": a[2] || (a[2] = (_) => h(t).activeComponents.options.size = _),
|
|
1871
1884
|
"controls-position": "right"
|
|
1872
1885
|
}, null, 8, ["modelValue"]),
|
|
1873
1886
|
a[8] || (a[8] = V("p", { class: "sub-title" }, "字体大小", -1))
|
|
1874
1887
|
]),
|
|
1875
1888
|
_: 1
|
|
1876
1889
|
}),
|
|
1877
|
-
l(
|
|
1878
|
-
default:
|
|
1879
|
-
l(
|
|
1890
|
+
l(f, { span: 12 }, {
|
|
1891
|
+
default: d(() => [
|
|
1892
|
+
l(v, {
|
|
1880
1893
|
modelValue: h(t).activeComponents.options.fontWeight,
|
|
1881
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
1894
|
+
"onUpdate:modelValue": a[3] || (a[3] = (_) => h(t).activeComponents.options.fontWeight = _)
|
|
1882
1895
|
}, {
|
|
1883
|
-
default:
|
|
1896
|
+
default: d(() => [
|
|
1884
1897
|
l(b, {
|
|
1885
1898
|
label: "常规",
|
|
1886
1899
|
value: 500
|
|
@@ -1896,35 +1909,35 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1896
1909
|
]),
|
|
1897
1910
|
_: 1
|
|
1898
1911
|
}),
|
|
1899
|
-
l(
|
|
1900
|
-
default:
|
|
1901
|
-
l(
|
|
1912
|
+
l(f, { span: 12 }, {
|
|
1913
|
+
default: d(() => [
|
|
1914
|
+
l(p, {
|
|
1902
1915
|
modelValue: h(t).activeComponents.options.letterSpacing,
|
|
1903
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
1916
|
+
"onUpdate:modelValue": a[4] || (a[4] = (_) => h(t).activeComponents.options.letterSpacing = _),
|
|
1904
1917
|
"controls-position": "right"
|
|
1905
1918
|
}, null, 8, ["modelValue"]),
|
|
1906
1919
|
a[10] || (a[10] = V("p", { class: "sub-title" }, "字间距", -1))
|
|
1907
1920
|
]),
|
|
1908
1921
|
_: 1
|
|
1909
1922
|
}),
|
|
1910
|
-
l(
|
|
1911
|
-
default:
|
|
1912
|
-
l(
|
|
1923
|
+
l(f, { span: 12 }, {
|
|
1924
|
+
default: d(() => [
|
|
1925
|
+
l(p, {
|
|
1913
1926
|
modelValue: h(t).activeComponents.options.textIndent,
|
|
1914
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
1927
|
+
"onUpdate:modelValue": a[5] || (a[5] = (_) => h(t).activeComponents.options.textIndent = _),
|
|
1915
1928
|
"controls-position": "right"
|
|
1916
1929
|
}, null, 8, ["modelValue"]),
|
|
1917
1930
|
a[11] || (a[11] = V("p", { class: "sub-title" }, "首行缩进", -1))
|
|
1918
1931
|
]),
|
|
1919
1932
|
_: 1
|
|
1920
1933
|
}),
|
|
1921
|
-
l(
|
|
1922
|
-
default:
|
|
1923
|
-
l(
|
|
1934
|
+
l(f, { span: 12 }, {
|
|
1935
|
+
default: d(() => [
|
|
1936
|
+
l(v, {
|
|
1924
1937
|
modelValue: h(t).activeComponents.options.textAlign,
|
|
1925
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
1938
|
+
"onUpdate:modelValue": a[6] || (a[6] = (_) => h(t).activeComponents.options.textAlign = _)
|
|
1926
1939
|
}, {
|
|
1927
|
-
default:
|
|
1940
|
+
default: d(() => [
|
|
1928
1941
|
l(b, {
|
|
1929
1942
|
label: "左对齐",
|
|
1930
1943
|
value: "left"
|
|
@@ -1956,28 +1969,28 @@ const Jt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-e9859d3b"]]), Te = /* @_
|
|
|
1956
1969
|
};
|
|
1957
1970
|
}
|
|
1958
1971
|
});
|
|
1959
|
-
const
|
|
1972
|
+
const no = /* @__PURE__ */ N(lo, [["__scopeId", "data-v-56fef84c"]]), ao = /* @__PURE__ */ L({
|
|
1960
1973
|
__name: "Setting",
|
|
1961
1974
|
setup(o) {
|
|
1962
1975
|
const t = {
|
|
1963
|
-
SettingTable:
|
|
1964
|
-
SettingCharts:
|
|
1965
|
-
SettingDescribe:
|
|
1966
|
-
SettingText:
|
|
1967
|
-
SettingFilter:
|
|
1968
|
-
SettingTitle:
|
|
1969
|
-
}, e = z(), a = q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], i = ["report-table", "bar", "line", "pie", "report-describe"],
|
|
1970
|
-
return (
|
|
1971
|
-
const
|
|
1972
|
-
return
|
|
1973
|
-
default:
|
|
1974
|
-
(
|
|
1976
|
+
SettingTable: Te,
|
|
1977
|
+
SettingCharts: Xt,
|
|
1978
|
+
SettingDescribe: Le,
|
|
1979
|
+
SettingText: to,
|
|
1980
|
+
SettingFilter: oo,
|
|
1981
|
+
SettingTitle: no
|
|
1982
|
+
}, e = z(), a = q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], i = ["report-table", "bar", "line", "pie", "report-describe"], f = (p) => r.includes(p) ? B(t, "SettingTitle") : n.includes(p) ? B(t, "SettingText") : i.includes(p) ? B(t, "SettingCharts") : p === "filter" ? B(t, "SettingFilter") : "DefaultEditor";
|
|
1983
|
+
return (p, b) => {
|
|
1984
|
+
const v = s("el-card");
|
|
1985
|
+
return m(), T(v, { class: "config-wrapper" }, {
|
|
1986
|
+
default: d(() => [
|
|
1987
|
+
(m(), T(Y(f(a.value.type))))
|
|
1975
1988
|
]),
|
|
1976
1989
|
_: 1
|
|
1977
1990
|
});
|
|
1978
1991
|
};
|
|
1979
1992
|
}
|
|
1980
|
-
}),
|
|
1993
|
+
}), ro = { class: "editor-wrapper flex items-center space-between start" }, so = { class: "flex items-center space-between" }, io = { class: "btn-group" }, uo = /* @__PURE__ */ L({
|
|
1981
1994
|
__name: "index",
|
|
1982
1995
|
props: /* @__PURE__ */ ce({
|
|
1983
1996
|
reportId: {
|
|
@@ -1990,8 +2003,8 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
1990
2003
|
}),
|
|
1991
2004
|
emits: ["update:modelValue"],
|
|
1992
2005
|
setup(o) {
|
|
1993
|
-
const t = z(), e = o, a = me(o, "modelValue"), r = (
|
|
1994
|
-
const b =
|
|
2006
|
+
const t = z(), e = o, a = me(o, "modelValue"), r = (p) => {
|
|
2007
|
+
const b = G(p);
|
|
1995
2008
|
b.id = P(), t.componentList.push(b);
|
|
1996
2009
|
};
|
|
1997
2010
|
function n() {
|
|
@@ -2000,16 +2013,16 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2000
2013
|
function i() {
|
|
2001
2014
|
t.getReportDemo(e.reportId);
|
|
2002
2015
|
}
|
|
2003
|
-
|
|
2016
|
+
le(() => {
|
|
2004
2017
|
i();
|
|
2005
2018
|
});
|
|
2006
|
-
async function
|
|
2019
|
+
async function f() {
|
|
2007
2020
|
if (!t.filterForm.filter_uuid) {
|
|
2008
2021
|
He.error("请选择筛选条件");
|
|
2009
2022
|
return;
|
|
2010
2023
|
}
|
|
2011
2024
|
try {
|
|
2012
|
-
e.reportId ? await
|
|
2025
|
+
e.reportId ? await Qe({
|
|
2013
2026
|
report_uuid: e.reportId,
|
|
2014
2027
|
data: {
|
|
2015
2028
|
report_name: t.titleComponent.data,
|
|
@@ -2017,7 +2030,7 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2017
2030
|
content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
|
|
2018
2031
|
...t.filterForm
|
|
2019
2032
|
}
|
|
2020
|
-
}) : await
|
|
2033
|
+
}) : await Je({
|
|
2021
2034
|
data: {
|
|
2022
2035
|
report_name: t.titleComponent.data,
|
|
2023
2036
|
prod_type: window.$prodType,
|
|
@@ -2025,30 +2038,30 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2025
2038
|
...t.filterForm
|
|
2026
2039
|
}
|
|
2027
2040
|
}), n();
|
|
2028
|
-
} catch (
|
|
2029
|
-
console.log(
|
|
2041
|
+
} catch (p) {
|
|
2042
|
+
console.log(p, "error");
|
|
2030
2043
|
}
|
|
2031
2044
|
}
|
|
2032
|
-
return
|
|
2045
|
+
return Ie(() => {
|
|
2033
2046
|
t.clearComponents();
|
|
2034
|
-
}), (
|
|
2035
|
-
const
|
|
2036
|
-
return
|
|
2047
|
+
}), (p, b) => {
|
|
2048
|
+
const v = s("el-button"), c = s("el-button-group"), w = s("el-card");
|
|
2049
|
+
return m(), x("div", ro, [
|
|
2037
2050
|
l(w, { class: "view-wrapper" }, {
|
|
2038
|
-
default:
|
|
2039
|
-
V("div",
|
|
2040
|
-
V("div",
|
|
2051
|
+
default: d(() => [
|
|
2052
|
+
V("div", so, [
|
|
2053
|
+
V("div", io, [
|
|
2041
2054
|
l(c, null, {
|
|
2042
|
-
default:
|
|
2043
|
-
(
|
|
2044
|
-
key:
|
|
2055
|
+
default: d(() => [
|
|
2056
|
+
(m(!0), x(E, null, I(h(ht), (_) => (m(), x(E, {
|
|
2057
|
+
key: _.type
|
|
2045
2058
|
}, [
|
|
2046
|
-
|
|
2059
|
+
_ != null && _.hide ? U("", !0) : (m(), T(v, {
|
|
2047
2060
|
key: 0,
|
|
2048
|
-
onClick: (g) => r(
|
|
2061
|
+
onClick: (g) => r(_)
|
|
2049
2062
|
}, {
|
|
2050
|
-
default:
|
|
2051
|
-
R(
|
|
2063
|
+
default: d(() => [
|
|
2064
|
+
R(H(_.name), 1)
|
|
2052
2065
|
]),
|
|
2053
2066
|
_: 2
|
|
2054
2067
|
}, 1032, ["onClick"]))
|
|
@@ -2058,18 +2071,18 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2058
2071
|
})
|
|
2059
2072
|
]),
|
|
2060
2073
|
l(c, null, {
|
|
2061
|
-
default:
|
|
2062
|
-
l(
|
|
2074
|
+
default: d(() => [
|
|
2075
|
+
l(v, {
|
|
2063
2076
|
type: "primary",
|
|
2064
|
-
onClick:
|
|
2077
|
+
onClick: f
|
|
2065
2078
|
}, {
|
|
2066
|
-
default:
|
|
2079
|
+
default: d(() => b[0] || (b[0] = [
|
|
2067
2080
|
R("保存")
|
|
2068
2081
|
])),
|
|
2069
2082
|
_: 1
|
|
2070
2083
|
}),
|
|
2071
|
-
l(
|
|
2072
|
-
default:
|
|
2084
|
+
l(v, { onClick: n }, {
|
|
2085
|
+
default: d(() => b[1] || (b[1] = [
|
|
2073
2086
|
R("退出")
|
|
2074
2087
|
])),
|
|
2075
2088
|
_: 1
|
|
@@ -2078,17 +2091,17 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2078
2091
|
_: 1
|
|
2079
2092
|
})
|
|
2080
2093
|
]),
|
|
2081
|
-
l(
|
|
2094
|
+
l(Ot)
|
|
2082
2095
|
]),
|
|
2083
2096
|
_: 1
|
|
2084
2097
|
}),
|
|
2085
|
-
l(
|
|
2098
|
+
l(ao)
|
|
2086
2099
|
]);
|
|
2087
2100
|
};
|
|
2088
2101
|
}
|
|
2089
|
-
}),
|
|
2102
|
+
}), po = {
|
|
2090
2103
|
class: "table-box"
|
|
2091
|
-
},
|
|
2104
|
+
}, co = /* @__PURE__ */ L({
|
|
2092
2105
|
__name: "Report",
|
|
2093
2106
|
emits: ["click"],
|
|
2094
2107
|
setup(o, {
|
|
@@ -2100,17 +2113,17 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2100
2113
|
r("click", c.report_uuid, "review");
|
|
2101
2114
|
}, i = (c) => {
|
|
2102
2115
|
r("click", c.report_uuid, "editor");
|
|
2103
|
-
},
|
|
2116
|
+
}, f = () => {
|
|
2104
2117
|
r("click", "", "editor");
|
|
2105
|
-
},
|
|
2118
|
+
}, p = (c) => {
|
|
2106
2119
|
console.log(c);
|
|
2107
2120
|
}, b = (c) => {
|
|
2108
2121
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2109
|
-
await
|
|
2122
|
+
await Ze({
|
|
2110
2123
|
report_uuids: c
|
|
2111
2124
|
}), a.value.getTableList();
|
|
2112
2125
|
});
|
|
2113
|
-
},
|
|
2126
|
+
}, v = K([
|
|
2114
2127
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2115
2128
|
{
|
|
2116
2129
|
type: "selection",
|
|
@@ -2161,34 +2174,34 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2161
2174
|
}
|
|
2162
2175
|
]);
|
|
2163
2176
|
return (c, w) => {
|
|
2164
|
-
const
|
|
2165
|
-
return
|
|
2177
|
+
const _ = s("el-button"), g = s("TdsTable");
|
|
2178
|
+
return m(), x("div", po, [l(g, {
|
|
2166
2179
|
ref_key: "proTable",
|
|
2167
2180
|
ref: a,
|
|
2168
|
-
columns:
|
|
2169
|
-
"request-api": h(
|
|
2181
|
+
columns: v,
|
|
2182
|
+
"request-api": h(Xe),
|
|
2170
2183
|
"init-param": e.value,
|
|
2171
2184
|
"row-key": "report_uuid",
|
|
2172
2185
|
options: c.$tableOptions(),
|
|
2173
2186
|
"search-col": 6,
|
|
2174
|
-
onSelectionChange:
|
|
2187
|
+
onSelectionChange: p
|
|
2175
2188
|
}, {
|
|
2176
|
-
tableHeader:
|
|
2189
|
+
tableHeader: d(($) => [l(_, {
|
|
2177
2190
|
plain: "",
|
|
2178
2191
|
type: "primary",
|
|
2179
2192
|
class: "custom-btn",
|
|
2180
2193
|
icon: "Plus",
|
|
2181
|
-
onClick:
|
|
2194
|
+
onClick: f
|
|
2182
2195
|
}, {
|
|
2183
|
-
default:
|
|
2196
|
+
default: d(() => w[0] || (w[0] = [R("添加")])),
|
|
2184
2197
|
_: 1
|
|
2185
|
-
}), l(
|
|
2198
|
+
}), l(_, {
|
|
2186
2199
|
plain: "",
|
|
2187
2200
|
type: "danger",
|
|
2188
2201
|
icon: "Delete",
|
|
2189
2202
|
onClick: (C) => b($.selectedListIds)
|
|
2190
2203
|
}, {
|
|
2191
|
-
default:
|
|
2204
|
+
default: d(() => w[1] || (w[1] = [R("删除")])),
|
|
2192
2205
|
_: 2
|
|
2193
2206
|
}, 1032, ["onClick"])]),
|
|
2194
2207
|
_: 1
|
|
@@ -2196,27 +2209,27 @@ const lo = /* @__PURE__ */ J(oo, [["__scopeId", "data-v-56fef84c"]]), no = /* @_
|
|
|
2196
2209
|
};
|
|
2197
2210
|
}
|
|
2198
2211
|
});
|
|
2199
|
-
const
|
|
2212
|
+
const mo = { style: { height: "100%" } }, _o = /* @__PURE__ */ L({
|
|
2200
2213
|
name: "TCReport",
|
|
2201
2214
|
__name: "index",
|
|
2202
2215
|
setup(o) {
|
|
2203
2216
|
const t = S(), e = S("table"), a = (r, n) => {
|
|
2204
2217
|
t.value = r, e.value = n;
|
|
2205
2218
|
};
|
|
2206
|
-
return (r, n) => (
|
|
2219
|
+
return (r, n) => (m(), x("div", mo, [
|
|
2207
2220
|
l(qe, { name: "slide-fade" }, {
|
|
2208
|
-
default:
|
|
2209
|
-
e.value === "table" ? (
|
|
2221
|
+
default: d(() => [
|
|
2222
|
+
e.value === "table" ? (m(), T(co, {
|
|
2210
2223
|
key: 0,
|
|
2211
2224
|
onClick: a
|
|
2212
2225
|
})) : U("", !0),
|
|
2213
|
-
e.value === "review" ? (
|
|
2226
|
+
e.value === "review" ? (m(), T(Se, {
|
|
2214
2227
|
key: 1,
|
|
2215
2228
|
"report-id": t.value,
|
|
2216
2229
|
modelValue: e.value,
|
|
2217
2230
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => e.value = i)
|
|
2218
2231
|
}, null, 8, ["report-id", "modelValue"])) : U("", !0),
|
|
2219
|
-
e.value === "editor" ? (
|
|
2232
|
+
e.value === "editor" ? (m(), T(uo, {
|
|
2220
2233
|
key: 2,
|
|
2221
2234
|
"report-id": t.value,
|
|
2222
2235
|
modelValue: e.value,
|
|
@@ -2228,7 +2241,7 @@ const co = { style: { height: "100%" } }, mo = /* @__PURE__ */ T({
|
|
|
2228
2241
|
]));
|
|
2229
2242
|
}
|
|
2230
2243
|
});
|
|
2231
|
-
const
|
|
2244
|
+
const X = (o, t) => {
|
|
2232
2245
|
if (o.install = (e) => {
|
|
2233
2246
|
for (const a of [o, ...Object.values(t ?? {})])
|
|
2234
2247
|
e.component(a.name, a);
|
|
@@ -2236,7 +2249,7 @@ const re = (o, t) => {
|
|
|
2236
2249
|
for (const [e, a] of Object.entries(t))
|
|
2237
2250
|
o[e] = a;
|
|
2238
2251
|
return o;
|
|
2239
|
-
},
|
|
2252
|
+
}, fo = X(_o), vo = [
|
|
2240
2253
|
{
|
|
2241
2254
|
label: "正文",
|
|
2242
2255
|
value: "p"
|
|
@@ -2261,7 +2274,7 @@ const re = (o, t) => {
|
|
|
2261
2274
|
label: "描述列表",
|
|
2262
2275
|
value: "report-describe"
|
|
2263
2276
|
}
|
|
2264
|
-
],
|
|
2277
|
+
], bo = [
|
|
2265
2278
|
{
|
|
2266
2279
|
value: "p",
|
|
2267
2280
|
fields: ["table_key_relation"]
|
|
@@ -2286,49 +2299,49 @@ const re = (o, t) => {
|
|
|
2286
2299
|
value: "report-describe",
|
|
2287
2300
|
fields: ["p_text"]
|
|
2288
2301
|
}
|
|
2289
|
-
],
|
|
2302
|
+
], yo = {
|
|
2290
2303
|
class: "table-box"
|
|
2291
|
-
},
|
|
2304
|
+
}, go = /* @__PURE__ */ L({
|
|
2292
2305
|
name: "TCModule",
|
|
2293
2306
|
__name: "index",
|
|
2294
2307
|
setup(o) {
|
|
2295
|
-
const t = S(), e = S(), a = S({}), r = S(""), n =
|
|
2308
|
+
const t = S(), e = S(), a = S({}), r = S(""), n = K({
|
|
2296
2309
|
prod_type: window.$prodType
|
|
2297
2310
|
});
|
|
2298
|
-
function i(
|
|
2311
|
+
function i(_) {
|
|
2299
2312
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2300
|
-
await
|
|
2301
|
-
rp_item_uuids:
|
|
2313
|
+
await tt({
|
|
2314
|
+
rp_item_uuids: _
|
|
2302
2315
|
}), t.value.getTableList();
|
|
2303
2316
|
});
|
|
2304
2317
|
}
|
|
2305
|
-
function
|
|
2306
|
-
a.value =
|
|
2318
|
+
function f(_) {
|
|
2319
|
+
a.value = _ ? Object.assign({}, _) : {
|
|
2307
2320
|
table_key_relation: [{
|
|
2308
2321
|
name: "",
|
|
2309
2322
|
key: "",
|
|
2310
2323
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2311
2324
|
}]
|
|
2312
|
-
}, r.value =
|
|
2325
|
+
}, r.value = _ ? "编辑自定义组件" : "新增自定义组件", e.value.open();
|
|
2313
2326
|
}
|
|
2314
|
-
async function
|
|
2315
|
-
const g = Object.assign({},
|
|
2316
|
-
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
|
|
2327
|
+
async function p(_) {
|
|
2328
|
+
const g = Object.assign({}, _);
|
|
2329
|
+
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 lt({
|
|
2317
2330
|
rp_item_uuid: g.rp_item_uuid,
|
|
2318
2331
|
data: g
|
|
2319
|
-
}) : (g.prod_type = window.$prodType, await
|
|
2332
|
+
}) : (g.prod_type = window.$prodType, await ot({
|
|
2320
2333
|
data: g
|
|
2321
2334
|
})), t.value.getTableList(), e.value.close();
|
|
2322
2335
|
}
|
|
2323
|
-
const b = (
|
|
2324
|
-
a.value.table_key_relation.splice(
|
|
2325
|
-
},
|
|
2336
|
+
const b = (_) => {
|
|
2337
|
+
a.value.table_key_relation.splice(_, 1);
|
|
2338
|
+
}, v = () => {
|
|
2326
2339
|
a.value.table_key_relation.push({
|
|
2327
2340
|
name: "",
|
|
2328
2341
|
key: "",
|
|
2329
2342
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2330
2343
|
});
|
|
2331
|
-
}, w =
|
|
2344
|
+
}, w = K([{
|
|
2332
2345
|
type: "selection",
|
|
2333
2346
|
width: 60,
|
|
2334
2347
|
field: "rp_item_uuid",
|
|
@@ -2361,10 +2374,10 @@ const re = (o, t) => {
|
|
|
2361
2374
|
}, {
|
|
2362
2375
|
field: "chart_type",
|
|
2363
2376
|
name: "组件类型",
|
|
2364
|
-
enum:
|
|
2377
|
+
enum: vo,
|
|
2365
2378
|
show: {
|
|
2366
2379
|
type: "select",
|
|
2367
|
-
display:
|
|
2380
|
+
display: bo
|
|
2368
2381
|
},
|
|
2369
2382
|
rules: [{
|
|
2370
2383
|
required: !0
|
|
@@ -2384,7 +2397,7 @@ const re = (o, t) => {
|
|
|
2384
2397
|
hide: !0,
|
|
2385
2398
|
show: {
|
|
2386
2399
|
render: () => {
|
|
2387
|
-
var
|
|
2400
|
+
var _;
|
|
2388
2401
|
return l("div", {
|
|
2389
2402
|
style: "width:80%"
|
|
2390
2403
|
}, [l("div", {
|
|
@@ -2394,7 +2407,7 @@ const re = (o, t) => {
|
|
|
2394
2407
|
style: "width:50%"
|
|
2395
2408
|
}, [R("表头名称")]), l("span", {
|
|
2396
2409
|
style: "width:50%"
|
|
2397
|
-
}, [R("KEY")])]), (
|
|
2410
|
+
}, [R("KEY")])]), (_ = a.value.table_key_relation) == null ? void 0 : _.map((g, $) => l("div", {
|
|
2398
2411
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2399
2412
|
style: "gap:15px;margin-bottom:10px;",
|
|
2400
2413
|
key: $
|
|
@@ -2421,11 +2434,11 @@ const re = (o, t) => {
|
|
|
2421
2434
|
}, [l(s("el-icon"), {
|
|
2422
2435
|
onClick: () => b($)
|
|
2423
2436
|
}, {
|
|
2424
|
-
default: () => [l(
|
|
2437
|
+
default: () => [l(Oe, null, null)]
|
|
2425
2438
|
})])])), l(s("el-button"), {
|
|
2426
2439
|
class: "report-btn ",
|
|
2427
2440
|
icon: "Plus",
|
|
2428
|
-
onClick: () =>
|
|
2441
|
+
onClick: () => v()
|
|
2429
2442
|
}, {
|
|
2430
2443
|
default: () => [R("新增表头与KEY")]
|
|
2431
2444
|
})]);
|
|
@@ -2436,8 +2449,8 @@ const re = (o, t) => {
|
|
|
2436
2449
|
},
|
|
2437
2450
|
rules: [{
|
|
2438
2451
|
required: !0,
|
|
2439
|
-
validator: (
|
|
2440
|
-
delete
|
|
2452
|
+
validator: (_, g, $) => {
|
|
2453
|
+
delete _.message, g.forEach((C) => {
|
|
2441
2454
|
C.name ? C.key || $(new Error("请填写表头名称和KEY")) : $(new Error("请填写表头名称和KEY"));
|
|
2442
2455
|
}), $();
|
|
2443
2456
|
},
|
|
@@ -2466,72 +2479,72 @@ const re = (o, t) => {
|
|
|
2466
2479
|
name: "操作",
|
|
2467
2480
|
align: "center",
|
|
2468
2481
|
fixed: "right",
|
|
2469
|
-
render: (
|
|
2482
|
+
render: (_) => l("div", null, [l(s("el-button"), {
|
|
2470
2483
|
link: !0,
|
|
2471
2484
|
type: "primary",
|
|
2472
2485
|
class: "custom-btn",
|
|
2473
2486
|
icon: "Edit",
|
|
2474
2487
|
title: "编辑",
|
|
2475
|
-
onClick: () =>
|
|
2488
|
+
onClick: () => f(_.row)
|
|
2476
2489
|
}, null), l(s("el-button"), {
|
|
2477
2490
|
link: !0,
|
|
2478
2491
|
type: "danger",
|
|
2479
2492
|
icon: "Delete",
|
|
2480
2493
|
title: "删除",
|
|
2481
|
-
onClick: () => i([
|
|
2494
|
+
onClick: () => i([_.row.rp_item_uuid])
|
|
2482
2495
|
}, null)])
|
|
2483
2496
|
}]);
|
|
2484
|
-
return (
|
|
2497
|
+
return (_, g) => {
|
|
2485
2498
|
const $ = s("el-button"), C = s("TdsTable"), u = s("TdsForm");
|
|
2486
|
-
return
|
|
2499
|
+
return m(), x("div", yo, [l(C, {
|
|
2487
2500
|
ref_key: "refTdsTable",
|
|
2488
2501
|
ref: t,
|
|
2489
2502
|
columns: w,
|
|
2490
|
-
"request-api": h(
|
|
2503
|
+
"request-api": h(et),
|
|
2491
2504
|
"init-param": n,
|
|
2492
2505
|
"row-key": "rp_item_uuid",
|
|
2493
|
-
options:
|
|
2506
|
+
options: _.$tableOptions(),
|
|
2494
2507
|
"search-col": 6
|
|
2495
2508
|
}, {
|
|
2496
|
-
tableHeader:
|
|
2509
|
+
tableHeader: d((y) => [l($, {
|
|
2497
2510
|
plain: "",
|
|
2498
2511
|
type: "primary",
|
|
2499
2512
|
class: "custom-btn",
|
|
2500
2513
|
icon: "Plus",
|
|
2501
|
-
onClick: g[0] || (g[0] = (
|
|
2514
|
+
onClick: g[0] || (g[0] = (A) => f())
|
|
2502
2515
|
}, {
|
|
2503
|
-
default:
|
|
2516
|
+
default: d(() => g[1] || (g[1] = [R("添加")])),
|
|
2504
2517
|
_: 1
|
|
2505
2518
|
}), l($, {
|
|
2506
2519
|
plain: "",
|
|
2507
2520
|
type: "danger",
|
|
2508
2521
|
icon: "Delete",
|
|
2509
|
-
onClick: (
|
|
2522
|
+
onClick: (A) => i(y.selectedListIds)
|
|
2510
2523
|
}, {
|
|
2511
|
-
default:
|
|
2524
|
+
default: d(() => g[2] || (g[2] = [R("删除")])),
|
|
2512
2525
|
_: 2
|
|
2513
2526
|
}, 1032, ["onClick"])]),
|
|
2514
2527
|
_: 1
|
|
2515
2528
|
}, 8, ["columns", "request-api", "init-param", "options"]), l(u, ve({
|
|
2516
2529
|
ref_key: "refTdsForm",
|
|
2517
2530
|
ref: e
|
|
2518
|
-
},
|
|
2531
|
+
}, _.$formBindProps({
|
|
2519
2532
|
title: r.value,
|
|
2520
2533
|
form: a.value,
|
|
2521
2534
|
columns: w
|
|
2522
2535
|
}), {
|
|
2523
|
-
onSubmit:
|
|
2536
|
+
onSubmit: p
|
|
2524
2537
|
}), null, 16)]);
|
|
2525
2538
|
};
|
|
2526
2539
|
}
|
|
2527
2540
|
});
|
|
2528
|
-
const
|
|
2541
|
+
const ho = X(go), wo = {
|
|
2529
2542
|
class: "table-box"
|
|
2530
2543
|
};
|
|
2531
2544
|
function ue(o) {
|
|
2532
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
2545
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ne(o);
|
|
2533
2546
|
}
|
|
2534
|
-
const
|
|
2547
|
+
const Co = /* @__PURE__ */ L({
|
|
2535
2548
|
name: "TCSubscribe",
|
|
2536
2549
|
__name: "index",
|
|
2537
2550
|
setup(o) {
|
|
@@ -2541,38 +2554,38 @@ const wo = /* @__PURE__ */ T({
|
|
|
2541
2554
|
} = window, n = S(""), i = S({
|
|
2542
2555
|
receiver: []
|
|
2543
2556
|
});
|
|
2544
|
-
function
|
|
2557
|
+
function f(u) {
|
|
2545
2558
|
r(u, "subscript_name", a("button.delete"), "error").then(async () => {
|
|
2546
|
-
await
|
|
2559
|
+
await st({
|
|
2547
2560
|
subscript_uuids: u.map((y) => y.subscript_uuid)
|
|
2548
2561
|
}), t.value.getTableList();
|
|
2549
2562
|
});
|
|
2550
2563
|
}
|
|
2551
|
-
function
|
|
2552
|
-
|
|
2564
|
+
function p() {
|
|
2565
|
+
f(t.value.selectedList);
|
|
2553
2566
|
}
|
|
2554
2567
|
const b = (u) => {
|
|
2555
2568
|
i.value = u ? Object.assign({}, u) : {
|
|
2556
2569
|
receiver: []
|
|
2557
2570
|
}, n.value = u ? "编辑报表订阅" : "新增报表订阅", e.value.open();
|
|
2558
2571
|
};
|
|
2559
|
-
async function
|
|
2572
|
+
async function v(u) {
|
|
2560
2573
|
const y = Object.assign({}, u);
|
|
2561
|
-
y.subscript_uuid ? await
|
|
2574
|
+
y.subscript_uuid ? await rt({
|
|
2562
2575
|
subscript_uuid: y.subscript_uuid,
|
|
2563
2576
|
data: y
|
|
2564
|
-
}) : await
|
|
2577
|
+
}) : await at({
|
|
2565
2578
|
data: y
|
|
2566
2579
|
}), t.value.getTableList(), e.value.close();
|
|
2567
2580
|
}
|
|
2568
|
-
function c(u, y,
|
|
2581
|
+
function c(u, y, A) {
|
|
2569
2582
|
if (!y || y.length === 0)
|
|
2570
|
-
return
|
|
2571
|
-
|
|
2583
|
+
return A(new Error("请输入收件人"));
|
|
2584
|
+
A();
|
|
2572
2585
|
}
|
|
2573
2586
|
const w = (u, y) => {
|
|
2574
2587
|
u.target.value && i.value[y].push(u.target.value);
|
|
2575
|
-
},
|
|
2588
|
+
}, _ = [{
|
|
2576
2589
|
label: "周一",
|
|
2577
2590
|
value: 1
|
|
2578
2591
|
}, {
|
|
@@ -2602,7 +2615,7 @@ const wo = /* @__PURE__ */ T({
|
|
|
2602
2615
|
}, {
|
|
2603
2616
|
label: "每月",
|
|
2604
2617
|
value: 2
|
|
2605
|
-
}], $ = [], C =
|
|
2618
|
+
}], $ = [], C = K([{
|
|
2606
2619
|
type: "selection",
|
|
2607
2620
|
align: "center",
|
|
2608
2621
|
field: "subscript_uuid",
|
|
@@ -2629,7 +2642,7 @@ const wo = /* @__PURE__ */ T({
|
|
|
2629
2642
|
}, {
|
|
2630
2643
|
field: "report_uuid",
|
|
2631
2644
|
name: "报表类型",
|
|
2632
|
-
enum: () =>
|
|
2645
|
+
enum: () => ut({
|
|
2633
2646
|
prod_type: window.$prodType
|
|
2634
2647
|
}),
|
|
2635
2648
|
fieldNames: {
|
|
@@ -2646,7 +2659,7 @@ const wo = /* @__PURE__ */ T({
|
|
|
2646
2659
|
}, {
|
|
2647
2660
|
field: "format",
|
|
2648
2661
|
name: "报表格式",
|
|
2649
|
-
enum:
|
|
2662
|
+
enum: pt,
|
|
2650
2663
|
fieldNames: {
|
|
2651
2664
|
label: "name",
|
|
2652
2665
|
value: "id"
|
|
@@ -2661,7 +2674,7 @@ const wo = /* @__PURE__ */ T({
|
|
|
2661
2674
|
}, {
|
|
2662
2675
|
field: "select_data",
|
|
2663
2676
|
name: "资产/任务",
|
|
2664
|
-
enum:
|
|
2677
|
+
enum: dt,
|
|
2665
2678
|
fieldNames: {
|
|
2666
2679
|
label: "label",
|
|
2667
2680
|
value: "data"
|
|
@@ -2680,17 +2693,17 @@ const wo = /* @__PURE__ */ T({
|
|
|
2680
2693
|
key: window.$prodType
|
|
2681
2694
|
}
|
|
2682
2695
|
},
|
|
2683
|
-
render: (u) => t.value.enumMap.get("dbsId").filter((
|
|
2696
|
+
render: (u) => t.value.enumMap.get("dbsId").filter((k) => u.row.dbsId.indexOf(k.id) > -1).map((k) => l(s("el-tag"), {
|
|
2684
2697
|
class: "mr-10px",
|
|
2685
2698
|
type: "info"
|
|
2686
2699
|
}, {
|
|
2687
|
-
default: () => [
|
|
2700
|
+
default: () => [k.policy_name]
|
|
2688
2701
|
}))
|
|
2689
2702
|
}, {
|
|
2690
2703
|
field: "receiver_email",
|
|
2691
2704
|
name: "收件人",
|
|
2692
2705
|
width: 300,
|
|
2693
|
-
render: (u) => l(
|
|
2706
|
+
render: (u) => l(E, null, [u.row.receiver_email.map((y) => l(s("el-tag"), {
|
|
2694
2707
|
class: "mr-10px",
|
|
2695
2708
|
type: "info"
|
|
2696
2709
|
}, ue(y) ? y : {
|
|
@@ -2700,7 +2713,7 @@ const wo = /* @__PURE__ */ T({
|
|
|
2700
2713
|
type: "input",
|
|
2701
2714
|
render: () => {
|
|
2702
2715
|
let u;
|
|
2703
|
-
return l(
|
|
2716
|
+
return l(E, null, [l(s("el-select"), {
|
|
2704
2717
|
class: "right-select",
|
|
2705
2718
|
modelValue: i.value.receiver_email,
|
|
2706
2719
|
"onUpdate:modelValue": (y) => i.value.receiver_email = y,
|
|
@@ -2772,7 +2785,7 @@ const wo = /* @__PURE__ */ T({
|
|
|
2772
2785
|
field: "weekday",
|
|
2773
2786
|
name: "星期",
|
|
2774
2787
|
hide: !0,
|
|
2775
|
-
enum:
|
|
2788
|
+
enum: _,
|
|
2776
2789
|
show: {
|
|
2777
2790
|
type: "select"
|
|
2778
2791
|
},
|
|
@@ -2819,7 +2832,7 @@ const wo = /* @__PURE__ */ T({
|
|
|
2819
2832
|
"active-value": 1,
|
|
2820
2833
|
"inactive-value": 0,
|
|
2821
2834
|
onChange: (y) => {
|
|
2822
|
-
|
|
2835
|
+
it({
|
|
2823
2836
|
subscript_uuid: u.row.subscript_uuid,
|
|
2824
2837
|
enable_status: y
|
|
2825
2838
|
}), t.value.getTableList();
|
|
@@ -2843,40 +2856,40 @@ const wo = /* @__PURE__ */ T({
|
|
|
2843
2856
|
type: "danger",
|
|
2844
2857
|
icon: "Delete",
|
|
2845
2858
|
title: a("button.delete"),
|
|
2846
|
-
onClick: () =>
|
|
2859
|
+
onClick: () => f([u.row])
|
|
2847
2860
|
}, null)])
|
|
2848
2861
|
}]);
|
|
2849
2862
|
return (u, y) => {
|
|
2850
|
-
const
|
|
2851
|
-
return
|
|
2863
|
+
const A = s("el-button");
|
|
2864
|
+
return m(), x("div", wo, [l(h(Ne), {
|
|
2852
2865
|
ref_key: "refTdsTable",
|
|
2853
2866
|
ref: t,
|
|
2854
2867
|
"row-key": "subscript_uuid",
|
|
2855
|
-
"request-api": h(
|
|
2868
|
+
"request-api": h(nt),
|
|
2856
2869
|
columns: C,
|
|
2857
2870
|
options: u.$tableOptions()
|
|
2858
2871
|
}, {
|
|
2859
|
-
tableHeader:
|
|
2872
|
+
tableHeader: d((k) => [l(A, {
|
|
2860
2873
|
type: "primary",
|
|
2861
2874
|
icon: "Plus",
|
|
2862
2875
|
class: "custom-btn",
|
|
2863
2876
|
plain: "",
|
|
2864
|
-
onClick: y[0] || (y[0] = (
|
|
2877
|
+
onClick: y[0] || (y[0] = (W) => b())
|
|
2865
2878
|
}, {
|
|
2866
|
-
default:
|
|
2879
|
+
default: d(() => [R(H(h(a)("button.add")), 1)]),
|
|
2867
2880
|
_: 1
|
|
2868
|
-
}), l(
|
|
2881
|
+
}), l(A, {
|
|
2869
2882
|
type: "danger",
|
|
2870
2883
|
icon: "Delete",
|
|
2871
2884
|
plain: "",
|
|
2872
|
-
onClick:
|
|
2873
|
-
disabled: !
|
|
2885
|
+
onClick: p,
|
|
2886
|
+
disabled: !k.selectedListIds.length
|
|
2874
2887
|
}, {
|
|
2875
|
-
default:
|
|
2888
|
+
default: d(() => [R(H(h(a)("button.delete")), 1)]),
|
|
2876
2889
|
_: 2
|
|
2877
2890
|
}, 1032, ["disabled"])]),
|
|
2878
2891
|
_: 1
|
|
2879
|
-
}, 8, ["request-api", "columns", "options"]), l(h(
|
|
2892
|
+
}, 8, ["request-api", "columns", "options"]), l(h(We), ve({
|
|
2880
2893
|
ref_key: "refTdsForm",
|
|
2881
2894
|
ref: e
|
|
2882
2895
|
}, u.$formBindProps({
|
|
@@ -2884,24 +2897,68 @@ const wo = /* @__PURE__ */ T({
|
|
|
2884
2897
|
form: i.value,
|
|
2885
2898
|
columns: C
|
|
2886
2899
|
}), {
|
|
2887
|
-
onSubmit:
|
|
2900
|
+
onSubmit: v
|
|
2888
2901
|
}), null, 16)]);
|
|
2889
2902
|
};
|
|
2890
2903
|
}
|
|
2891
|
-
}),
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2904
|
+
}), xo = X(Co), $o = {
|
|
2905
|
+
class: "main-wrapper"
|
|
2906
|
+
}, ko = /* @__PURE__ */ L({
|
|
2907
|
+
name: "TCBuildin",
|
|
2908
|
+
__name: "index",
|
|
2909
|
+
setup(o) {
|
|
2910
|
+
const t = S([]), e = S("1");
|
|
2911
|
+
async function a() {
|
|
2912
|
+
const r = await ct({
|
|
2913
|
+
prod_type: window.$prodType
|
|
2914
|
+
});
|
|
2915
|
+
t.value = r.data, e.value = r.data[0].report_uuid;
|
|
2916
|
+
}
|
|
2917
|
+
return a(), (r, n) => {
|
|
2918
|
+
const i = s("el-tab-pane"), f = s("el-tabs");
|
|
2919
|
+
return m(), x("div", $o, [l(f, {
|
|
2920
|
+
modelValue: e.value,
|
|
2921
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => e.value = p),
|
|
2922
|
+
class: "report-tabs",
|
|
2923
|
+
style: {
|
|
2924
|
+
height: "100%"
|
|
2925
|
+
}
|
|
2926
|
+
}, {
|
|
2927
|
+
default: d(() => [(m(!0), x(E, null, I(t.value, (p) => (m(), T(i, {
|
|
2928
|
+
style: {
|
|
2929
|
+
height: "100%"
|
|
2930
|
+
},
|
|
2931
|
+
key: p.report_uuid,
|
|
2932
|
+
label: p.report_name,
|
|
2933
|
+
name: p.report_uuid
|
|
2934
|
+
}, {
|
|
2935
|
+
default: d(() => [e.value === p.report_uuid ? (m(), T(Se, {
|
|
2936
|
+
key: 0,
|
|
2937
|
+
"report-id": e.value
|
|
2938
|
+
}, null, 8, ["report-id"])) : U("", !0)]),
|
|
2939
|
+
_: 2
|
|
2940
|
+
}, 1032, ["label", "name"]))), 128))]),
|
|
2941
|
+
_: 1
|
|
2942
|
+
}, 8, ["modelValue"])]);
|
|
2943
|
+
};
|
|
2944
|
+
}
|
|
2945
|
+
});
|
|
2946
|
+
const Vo = /* @__PURE__ */ N(ko, [["__scopeId", "data-v-c48d204e"]]), So = X(Vo), To = {
|
|
2947
|
+
TCReport: fo,
|
|
2948
|
+
TCModule: ho,
|
|
2949
|
+
TCSubscribe: xo,
|
|
2950
|
+
TCBuildin: So
|
|
2951
|
+
}, Io = {
|
|
2896
2952
|
install(o, t) {
|
|
2897
|
-
Object.entries(
|
|
2953
|
+
Object.entries(To).forEach(([e, a]) => {
|
|
2898
2954
|
o.component(e, a);
|
|
2899
2955
|
}), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
|
|
2900
2956
|
}
|
|
2901
2957
|
};
|
|
2902
2958
|
export {
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2959
|
+
So as TCBuildin,
|
|
2960
|
+
ho as TCModule,
|
|
2961
|
+
fo as TCReport,
|
|
2962
|
+
xo as TCSubscribe,
|
|
2963
|
+
Io as default
|
|
2907
2964
|
};
|