@topdatasec/report 1.1.26 → 1.1.28
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 +762 -712
- 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
|
|
3
|
-
import { ElNotification as
|
|
4
|
-
import { VueDraggable as
|
|
5
|
-
import { Toolbar as
|
|
6
|
-
import { CircleClose as
|
|
7
|
-
import { TdsTable as ye, TdsForm as
|
|
8
|
-
const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), ee = (o) => JSON.parse(JSON.stringify(o)),
|
|
1
|
+
import { defineComponent as E, computed as K, resolveComponent as s, openBlock as m, createElementBlock as C, createElementVNode as x, Fragment as O, renderList as I, normalizeClass as X, createBlock as V, createCommentVNode as S, withDirectives as Ae, createTextVNode as L, toDisplayString as M, unref as h, ref as B, createVNode as l, withCtx as u, onMounted as se, normalizeProps as fe, guardReactiveProps as ge, isVNode as ie, normalizeStyle as Pe, mergeModels as ve, useModel as _e, resolveDirective as be, resolveDynamicComponent as $, isRef as Qe, withModifiers as Ie, watch as Fe, shallowRef as Me, onBeforeUnmount as Ke, onUnmounted as qe, reactive as J, TransitionGroup as He, mergeProps as we, createSlots as ze } from "vue";
|
|
2
|
+
import { defineStore as Ne, storeToRefs as Ye } from "pinia";
|
|
3
|
+
import { ElNotification as Ge, ElMessage as Xe } from "element-plus";
|
|
4
|
+
import { VueDraggable as Je } from "vue-draggable-plus";
|
|
5
|
+
import { Toolbar as je, Editor as Ze } from "@wangeditor/editor-for-vue";
|
|
6
|
+
import { CircleClose as We } from "@element-plus/icons-vue";
|
|
7
|
+
import { TdsTable as ye, TdsForm as $e } from "topdatasec-ui";
|
|
8
|
+
const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), ee = (o) => JSON.parse(JSON.stringify(o)), et = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (o, t) => o[et(t)], tt = (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 F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
15
15
|
method: "get",
|
|
16
16
|
params: o,
|
|
17
17
|
isError: !1
|
|
18
|
-
}),
|
|
18
|
+
}), ot = (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
|
+
}), lt = (o) => window.$http.request({
|
|
24
24
|
url: `${window.$reportURL}/tds/report/add`,
|
|
25
25
|
method: "post",
|
|
26
26
|
data: o
|
|
27
|
-
}),
|
|
27
|
+
}), nt = (o) => window.$http.request({
|
|
28
28
|
url: `${window.$reportURL}/tds/report/put`,
|
|
29
29
|
method: "put",
|
|
30
30
|
data: o
|
|
31
|
-
}),
|
|
31
|
+
}), at = (o) => window.$http.request({
|
|
32
32
|
url: `${window.$reportURL}/tds/report/get`,
|
|
33
33
|
method: "get",
|
|
34
34
|
params: o,
|
|
@@ -38,28 +38,28 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
38
38
|
method: "get",
|
|
39
39
|
params: o,
|
|
40
40
|
isError: !1
|
|
41
|
-
}),
|
|
41
|
+
}), rt = (o) => window.$http.request({
|
|
42
42
|
url: `${window.$reportURL}/tds/report/delete`,
|
|
43
43
|
method: "delete",
|
|
44
44
|
data: o
|
|
45
|
-
}),
|
|
45
|
+
}), At = (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
|
+
}), st = (o) => window.$http.request({
|
|
51
51
|
url: `${window.$reportURL}/tds/report/item/delete`,
|
|
52
52
|
method: "delete",
|
|
53
53
|
data: o
|
|
54
|
-
}),
|
|
54
|
+
}), it = (o) => window.$http.request({
|
|
55
55
|
url: `${window.$reportURL}/tds/report/item/add`,
|
|
56
56
|
method: "post",
|
|
57
57
|
data: o
|
|
58
|
-
}),
|
|
58
|
+
}), ut = (o) => window.$http.request({
|
|
59
59
|
url: `${window.$reportURL}/tds/report/item/put`,
|
|
60
60
|
method: "put",
|
|
61
61
|
data: o
|
|
62
|
-
}),
|
|
62
|
+
}), dt = (o) => window.$http.request({
|
|
63
63
|
url: `${window.$reportURL}/tds/report/sub/get`,
|
|
64
64
|
method: "get",
|
|
65
65
|
params: o,
|
|
@@ -68,62 +68,62 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
68
68
|
url: `${window.$reportURL}/tds/report/sub/add`,
|
|
69
69
|
method: "post",
|
|
70
70
|
data: o
|
|
71
|
-
}),
|
|
71
|
+
}), ct = (o) => window.$http.request({
|
|
72
72
|
url: `${window.$reportURL}/tds/report/sub/put`,
|
|
73
73
|
method: "put",
|
|
74
74
|
data: o
|
|
75
|
-
}),
|
|
75
|
+
}), mt = (o) => window.$http.request({
|
|
76
76
|
url: `${window.$reportURL}/tds/report/sub/delete`,
|
|
77
77
|
method: "delete",
|
|
78
78
|
data: o
|
|
79
|
-
}),
|
|
79
|
+
}), ft = (o) => window.$http.request({
|
|
80
80
|
url: `${window.$reportURL}/tds/report/sub/edit/state`,
|
|
81
81
|
method: "post",
|
|
82
82
|
data: o
|
|
83
|
-
}),
|
|
83
|
+
}), gt = (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
|
+
}), vt = (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
|
+
}), _t = (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
|
-
}),
|
|
98
|
+
}), bt = (o = {}) => window.$http.request({
|
|
99
99
|
url: `${window.$reportURL}/tds/report/build_in/get`,
|
|
100
100
|
method: "get",
|
|
101
101
|
params: o,
|
|
102
102
|
loading: !1,
|
|
103
103
|
isError: !1
|
|
104
|
-
}),
|
|
104
|
+
}), wt = (o = {}) => window.$http.request({
|
|
105
105
|
url: `${window.$reportURL}/tds/report/export/add`,
|
|
106
106
|
method: "get",
|
|
107
107
|
params: o,
|
|
108
108
|
loading: !1,
|
|
109
109
|
isError: !1
|
|
110
|
-
}),
|
|
110
|
+
}), yt = (o = {}) => window.$http.request({
|
|
111
111
|
url: `${window.$reportURL}/tds/report/export/get`,
|
|
112
112
|
method: "get",
|
|
113
113
|
params: o,
|
|
114
114
|
loading: !1,
|
|
115
115
|
isError: !1
|
|
116
|
-
}),
|
|
116
|
+
}), ht = (o = {}) => window.$http.request({
|
|
117
117
|
url: `${window.$reportURL}/tds/report/export/download`,
|
|
118
118
|
method: "get",
|
|
119
119
|
params: o,
|
|
120
120
|
loading: !1,
|
|
121
121
|
isError: !1
|
|
122
|
-
}),
|
|
122
|
+
}), Ct = (o = {}) => window.$http.request({
|
|
123
123
|
url: `${window.$reportURL}/tds/report/export/delete`,
|
|
124
124
|
method: "delete",
|
|
125
125
|
data: o
|
|
126
|
-
}), xe = "rgba(51, 51, 51, 0.15)", z = "rgba(51, 51, 51, 1)",
|
|
126
|
+
}), xe = "rgba(51, 51, 51, 0.15)", z = "rgba(51, 51, 51, 1)", G = 12, Te = (o = !1) => {
|
|
127
127
|
const t = {
|
|
128
128
|
// top: '2%',
|
|
129
129
|
left: "3%",
|
|
@@ -153,7 +153,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
153
153
|
"100, 161, 206",
|
|
154
154
|
"246, 175, 159",
|
|
155
155
|
"238, 97, 97"
|
|
156
|
-
],
|
|
156
|
+
], xt = (o, t, e = "", a = { name: "name", value: "value" }) => {
|
|
157
157
|
const r = [], n = [];
|
|
158
158
|
t.forEach((A) => {
|
|
159
159
|
r.push(A[a.name]), n.push(A[a.value]);
|
|
@@ -250,7 +250,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
250
250
|
// 坐标轴刻度最小值
|
|
251
251
|
position: "left",
|
|
252
252
|
nameTextStyle: {
|
|
253
|
-
fontSize:
|
|
253
|
+
fontSize: G,
|
|
254
254
|
color: z,
|
|
255
255
|
fontWeight: "bold"
|
|
256
256
|
},
|
|
@@ -310,14 +310,14 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
310
310
|
}
|
|
311
311
|
]
|
|
312
312
|
};
|
|
313
|
-
},
|
|
313
|
+
}, Tt = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
|
|
314
314
|
let a = 0;
|
|
315
315
|
const r = t.map((n, A) => (a += Number(n[e.value]), {
|
|
316
316
|
name: n[e.name],
|
|
317
317
|
value: Number(n[e.value])
|
|
318
318
|
}));
|
|
319
319
|
o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
|
|
320
|
-
},
|
|
320
|
+
}, Bt = () => P.map((o) => `rgba(${o}, 1)`), ue = ({
|
|
321
321
|
data: o = [
|
|
322
322
|
{
|
|
323
323
|
name: "数据1",
|
|
@@ -339,16 +339,16 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
339
339
|
center: n = ["50%", "50%"],
|
|
340
340
|
isTitle: A = !0
|
|
341
341
|
}) => {
|
|
342
|
-
const
|
|
343
|
-
color:
|
|
342
|
+
const d = {
|
|
343
|
+
color: Bt(),
|
|
344
344
|
toolbox: { show: !1 },
|
|
345
345
|
tooltip: {
|
|
346
346
|
trigger: "item",
|
|
347
347
|
show: !0,
|
|
348
348
|
formatter: (i) => {
|
|
349
|
-
const { name: g, value:
|
|
349
|
+
const { name: g, value: p } = i;
|
|
350
350
|
return `<div style="color: ${i.color}; font-size: 14px;">${g} </div>
|
|
351
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${
|
|
351
|
+
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${p}</span></div>`;
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
354
|
title: {
|
|
@@ -365,12 +365,12 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
365
365
|
show: a,
|
|
366
366
|
left: "70%",
|
|
367
367
|
formatter: (i) => {
|
|
368
|
-
var
|
|
369
|
-
const g = (
|
|
368
|
+
var p;
|
|
369
|
+
const g = (p = d.series[0]) == null ? void 0 : p.data.find((c) => c.name === i).value;
|
|
370
370
|
return ` ${i} | ${g}`;
|
|
371
371
|
},
|
|
372
372
|
textStyle: {
|
|
373
|
-
fontSize:
|
|
373
|
+
fontSize: G,
|
|
374
374
|
color: z
|
|
375
375
|
},
|
|
376
376
|
data: o,
|
|
@@ -478,8 +478,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
478
478
|
}
|
|
479
479
|
]
|
|
480
480
|
};
|
|
481
|
-
return
|
|
482
|
-
},
|
|
481
|
+
return d;
|
|
482
|
+
}, kt = (o, t, e = { name: "name", value: "value" }) => {
|
|
483
483
|
o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
|
|
484
484
|
o.series[r].data = t.map((n) => n[a.value]);
|
|
485
485
|
}) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
|
|
@@ -562,7 +562,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
562
562
|
itemWidth: 30,
|
|
563
563
|
textStyle: {
|
|
564
564
|
color: z,
|
|
565
|
-
fontSize:
|
|
565
|
+
fontSize: G,
|
|
566
566
|
padding: [0, 8, 0, 8]
|
|
567
567
|
}
|
|
568
568
|
},
|
|
@@ -577,7 +577,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
577
577
|
},
|
|
578
578
|
axisLabel: {
|
|
579
579
|
show: !0,
|
|
580
|
-
fontSize:
|
|
580
|
+
fontSize: G,
|
|
581
581
|
color: z
|
|
582
582
|
},
|
|
583
583
|
boundaryGap: !1,
|
|
@@ -590,13 +590,13 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
590
590
|
axisLine: { show: !1 },
|
|
591
591
|
axisTick: { show: !1 },
|
|
592
592
|
nameTextStyle: {
|
|
593
|
-
fontSize:
|
|
593
|
+
fontSize: G,
|
|
594
594
|
color: z,
|
|
595
595
|
padding: [0, 60, 0, 0]
|
|
596
596
|
},
|
|
597
597
|
axisLabel: {
|
|
598
598
|
show: !0,
|
|
599
|
-
fontSize:
|
|
599
|
+
fontSize: G,
|
|
600
600
|
color: z
|
|
601
601
|
}
|
|
602
602
|
},
|
|
@@ -604,19 +604,19 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
604
604
|
}, a = Dt(), r = [];
|
|
605
605
|
if (Array.isArray(t.value))
|
|
606
606
|
t.value.forEach((n, A) => {
|
|
607
|
-
const
|
|
608
|
-
|
|
607
|
+
const d = ee(a);
|
|
608
|
+
d.name = n.name, d.lineStyle.color = `rgba(${P[A]}, 1)`, d.itemStyle.color = `rgba(${P[A]}, 1)`, d.areaStyle.color.colorStops[0].color = `rgba(${P[A]}, 0.7)`, d.areaStyle.color.colorStops[1].color = `rgba(${P[A]}, 0.1)`, d.data = o.map((i) => i[n.value]), r.push(d);
|
|
609
609
|
});
|
|
610
610
|
else if (typeof t.value == "string") {
|
|
611
611
|
const n = ee(a);
|
|
612
612
|
n.data = o.map((A) => A[t.value]), r.push(n);
|
|
613
613
|
}
|
|
614
614
|
return e.series = r, e;
|
|
615
|
-
},
|
|
615
|
+
}, de = [
|
|
616
616
|
{ key: "assets", name: "资产名称" },
|
|
617
617
|
{ key: "type", name: "资产类型" },
|
|
618
618
|
{ key: "data", name: "资产数据" }
|
|
619
|
-
],
|
|
619
|
+
], pe = [
|
|
620
620
|
{ assets: "name1", type: "type1", data: "data1" },
|
|
621
621
|
{ assets: "name2", type: "type2", data: "data2" },
|
|
622
622
|
{ assets: "name3", type: "type3", data: "data3" }
|
|
@@ -625,7 +625,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
625
625
|
{ data: [{ name: "默认数据", value: 311 }], label: "name2" },
|
|
626
626
|
{ data: [{ name: "默认数据", value: 42 }], label: "name3" },
|
|
627
627
|
{ data: [{ name: "默认数据", value: 32391 }], label: "name4" }
|
|
628
|
-
],
|
|
628
|
+
], Vt = [
|
|
629
629
|
{
|
|
630
630
|
data: 63,
|
|
631
631
|
label: "数据1"
|
|
@@ -638,7 +638,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
638
638
|
data: 43,
|
|
639
639
|
label: "数据3"
|
|
640
640
|
}
|
|
641
|
-
],
|
|
641
|
+
], Et = [
|
|
642
642
|
{
|
|
643
643
|
type: "report-select",
|
|
644
644
|
label: "资产:",
|
|
@@ -691,8 +691,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
693
|
type: "report-table",
|
|
694
|
-
data:
|
|
695
|
-
showColumn:
|
|
694
|
+
data: pe,
|
|
695
|
+
showColumn: de,
|
|
696
696
|
name: "表格",
|
|
697
697
|
options: {
|
|
698
698
|
showColumn: {
|
|
@@ -754,8 +754,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
754
754
|
{ type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
|
|
755
755
|
{
|
|
756
756
|
type: "report-table",
|
|
757
|
-
data:
|
|
758
|
-
showColumn:
|
|
757
|
+
data: pe,
|
|
758
|
+
showColumn: de,
|
|
759
759
|
name: "表格",
|
|
760
760
|
options: {
|
|
761
761
|
border: !0,
|
|
@@ -779,7 +779,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
779
779
|
rp_item_uuid: "",
|
|
780
780
|
id: ""
|
|
781
781
|
}
|
|
782
|
-
],
|
|
782
|
+
], Ut = (o) => ({
|
|
783
783
|
bar: () => ({
|
|
784
784
|
type: "bar",
|
|
785
785
|
data: le,
|
|
@@ -800,7 +800,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
800
800
|
}),
|
|
801
801
|
pie: () => ({
|
|
802
802
|
type: "pie",
|
|
803
|
-
data:
|
|
803
|
+
data: Vt,
|
|
804
804
|
showColumn: [{ key: "label", value: "data" }],
|
|
805
805
|
name: "图表",
|
|
806
806
|
options: ue({ isLegend: !0 }),
|
|
@@ -809,8 +809,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
809
809
|
}),
|
|
810
810
|
"report-table": () => ({
|
|
811
811
|
type: "report-table",
|
|
812
|
-
data:
|
|
813
|
-
showColumn:
|
|
812
|
+
data: pe,
|
|
813
|
+
showColumn: de,
|
|
814
814
|
name: "表格",
|
|
815
815
|
options: {
|
|
816
816
|
showColumn: {
|
|
@@ -865,7 +865,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
865
865
|
],
|
|
866
866
|
id: F()
|
|
867
867
|
})
|
|
868
|
-
})[o](),
|
|
868
|
+
})[o](), q = Ne("tds-report", {
|
|
869
869
|
state: () => ({
|
|
870
870
|
componentList: [],
|
|
871
871
|
activeComponents: {},
|
|
@@ -886,7 +886,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
886
886
|
},
|
|
887
887
|
async getReportDemo(o) {
|
|
888
888
|
let t = [];
|
|
889
|
-
o ? t = (await
|
|
889
|
+
o ? t = (await tt({ report_uuid: o })).data : t = { content: ee(Et), range_time: 1 };
|
|
890
890
|
const e = [];
|
|
891
891
|
t.content.forEach((a) => {
|
|
892
892
|
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = F();
|
|
@@ -902,7 +902,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
}),
|
|
905
|
+
}), Rt = {
|
|
906
906
|
mounted(o) {
|
|
907
907
|
o.addEventListener("click", (t) => {
|
|
908
908
|
var a;
|
|
@@ -911,16 +911,16 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
911
911
|
if (e) {
|
|
912
912
|
const r = document.getElementById(e), n = document.getElementById("editor");
|
|
913
913
|
if (r && n) {
|
|
914
|
-
const
|
|
914
|
+
const d = r.offsetTop - n.offsetTop - 0;
|
|
915
915
|
n.scrollTo({
|
|
916
|
-
top:
|
|
916
|
+
top: d,
|
|
917
917
|
behavior: "smooth"
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
},
|
|
923
|
+
}, St = { class: "catalogue" }, Ot = ["href", "title"], Pt = /* @__PURE__ */ E({
|
|
924
924
|
__name: "Catalogue",
|
|
925
925
|
props: {
|
|
926
926
|
data: { default: () => [] }
|
|
@@ -929,52 +929,52 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
929
929
|
const t = o, e = K(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
|
|
930
930
|
return (a, r) => {
|
|
931
931
|
const n = s("el-divider");
|
|
932
|
-
return
|
|
933
|
-
r[0] || (r[0] =
|
|
934
|
-
(
|
|
935
|
-
class:
|
|
932
|
+
return m(), C("div", St, [
|
|
933
|
+
r[0] || (r[0] = x("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
|
|
934
|
+
(m(!0), C(O, null, I(e.value, (A) => (m(), C("div", {
|
|
935
|
+
class: X("level" + A.type),
|
|
936
936
|
key: A.value
|
|
937
937
|
}, [
|
|
938
|
-
A.type === "h2" ? (
|
|
938
|
+
A.type === "h2" ? (m(), V(n, {
|
|
939
939
|
key: 0,
|
|
940
940
|
style: { "margin-top": "10px", "margin-bottom": "10px" }
|
|
941
941
|
})) : S("", !0),
|
|
942
|
-
Ae((
|
|
942
|
+
Ae((m(), C("a", {
|
|
943
943
|
class: "el-anchor__link",
|
|
944
944
|
href: "#" + A.id,
|
|
945
945
|
title: A.data
|
|
946
946
|
}, [
|
|
947
|
-
|
|
948
|
-
], 8,
|
|
949
|
-
[
|
|
947
|
+
L(M(A.data), 1)
|
|
948
|
+
], 8, Ot)), [
|
|
949
|
+
[h(Rt)]
|
|
950
950
|
])
|
|
951
951
|
], 2))), 128))
|
|
952
952
|
]);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
955
|
});
|
|
956
|
-
const
|
|
956
|
+
const Z = (o, t) => {
|
|
957
957
|
const e = o.__vccOpts || o;
|
|
958
958
|
for (const [a, r] of t)
|
|
959
959
|
e[a] = r;
|
|
960
960
|
return e;
|
|
961
|
-
},
|
|
961
|
+
}, Qt = /* @__PURE__ */ Z(Pt, [["__scopeId", "data-v-00cc9080"]]), It = {
|
|
962
962
|
class: "chart-components"
|
|
963
|
-
}, Be = /* @__PURE__ */
|
|
963
|
+
}, Be = /* @__PURE__ */ E({
|
|
964
964
|
__name: "Bar",
|
|
965
965
|
props: {
|
|
966
966
|
value: {}
|
|
967
967
|
},
|
|
968
968
|
setup(o) {
|
|
969
969
|
const t = o, e = K(() => t.value.options);
|
|
970
|
-
return
|
|
970
|
+
return B(!1), (a, r) => {
|
|
971
971
|
const n = s("TdsChart");
|
|
972
|
-
return
|
|
972
|
+
return m(), C("div", It, [l(n, {
|
|
973
973
|
option: e.value
|
|
974
974
|
}, null, 8, ["option"])]);
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
}),
|
|
977
|
+
}), Ft = { class: "chart-components" }, ke = /* @__PURE__ */ E({
|
|
978
978
|
__name: "Line",
|
|
979
979
|
props: {
|
|
980
980
|
value: {}
|
|
@@ -983,12 +983,12 @@ const j = (o, t) => {
|
|
|
983
983
|
const t = o, e = K(() => t.value.options);
|
|
984
984
|
return (a, r) => {
|
|
985
985
|
const n = s("TdsChart");
|
|
986
|
-
return
|
|
986
|
+
return m(), C("div", Ft, [
|
|
987
987
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
988
988
|
]);
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
|
-
}),
|
|
991
|
+
}), Mt = { class: "chart-components" }, De = /* @__PURE__ */ E({
|
|
992
992
|
__name: "Pie",
|
|
993
993
|
props: {
|
|
994
994
|
value: {}
|
|
@@ -997,12 +997,12 @@ const j = (o, t) => {
|
|
|
997
997
|
const t = o, e = K(() => t.value.options);
|
|
998
998
|
return (a, r) => {
|
|
999
999
|
const n = s("TdsChart");
|
|
1000
|
-
return
|
|
1000
|
+
return m(), C("div", Mt, [
|
|
1001
1001
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
1002
1002
|
]);
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
}), Kt = { key: 0 }, ne = /* @__PURE__ */
|
|
1005
|
+
}), Kt = { key: 0 }, ne = /* @__PURE__ */ E({
|
|
1006
1006
|
__name: "ReportSelect",
|
|
1007
1007
|
props: {
|
|
1008
1008
|
value: {}
|
|
@@ -1011,23 +1011,23 @@ const j = (o, t) => {
|
|
|
1011
1011
|
setup(o, { emit: t }) {
|
|
1012
1012
|
const e = t, a = (A) => {
|
|
1013
1013
|
e("change", A);
|
|
1014
|
-
}, n =
|
|
1015
|
-
return (A,
|
|
1014
|
+
}, n = B(o.value);
|
|
1015
|
+
return (A, d) => {
|
|
1016
1016
|
const i = s("el-option"), g = s("el-select");
|
|
1017
|
-
return n.value.data ? (
|
|
1017
|
+
return n.value.data ? (m(), C("div", Kt, [
|
|
1018
1018
|
l(g, {
|
|
1019
1019
|
modelValue: n.value.value,
|
|
1020
|
-
"onUpdate:modelValue":
|
|
1020
|
+
"onUpdate:modelValue": d[0] || (d[0] = (p) => n.value.value = p),
|
|
1021
1021
|
multiple: "",
|
|
1022
1022
|
style: { width: "100%" },
|
|
1023
1023
|
onChange: a,
|
|
1024
1024
|
placeholder: "全部"
|
|
1025
1025
|
}, {
|
|
1026
1026
|
default: u(() => [
|
|
1027
|
-
(
|
|
1028
|
-
key:
|
|
1029
|
-
label:
|
|
1030
|
-
value:
|
|
1027
|
+
(m(!0), C(O, null, I(n.value.data, (p) => (m(), V(i, {
|
|
1028
|
+
key: p.data,
|
|
1029
|
+
label: p.label,
|
|
1030
|
+
value: p.data
|
|
1031
1031
|
}, null, 8, ["label", "value"]))), 128))
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 1
|
|
@@ -1035,25 +1035,25 @@ const j = (o, t) => {
|
|
|
1035
1035
|
])) : S("", !0);
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
}), ae = /* @__PURE__ */
|
|
1038
|
+
}), ae = /* @__PURE__ */ E({
|
|
1039
1039
|
__name: "RangeTime",
|
|
1040
1040
|
props: {
|
|
1041
1041
|
value: {}
|
|
1042
1042
|
},
|
|
1043
1043
|
emits: ["change"],
|
|
1044
1044
|
setup(o, { emit: t }) {
|
|
1045
|
-
const e = t, r =
|
|
1046
|
-
function A(
|
|
1047
|
-
|
|
1045
|
+
const e = t, r = B(o.value), n = B([]);
|
|
1046
|
+
function A(d) {
|
|
1047
|
+
d ? (r.value.data[0].start_time = d[0], r.value.data[0].end_time = d[1]) : n.value = [], e("change", n.value);
|
|
1048
1048
|
}
|
|
1049
1049
|
return se(() => {
|
|
1050
1050
|
n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
|
|
1051
|
-
}), (
|
|
1051
|
+
}), (d, i) => {
|
|
1052
1052
|
const g = s("el-date-picker");
|
|
1053
|
-
return
|
|
1053
|
+
return m(), C("div", null, [
|
|
1054
1054
|
l(g, {
|
|
1055
1055
|
modelValue: n.value,
|
|
1056
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1056
|
+
"onUpdate:modelValue": i[0] || (i[0] = (p) => n.value = p),
|
|
1057
1057
|
type: "datetimerange",
|
|
1058
1058
|
placeholder: "Pick a Date",
|
|
1059
1059
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1065,10 +1065,10 @@ const j = (o, t) => {
|
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
});
|
|
1068
|
-
function
|
|
1068
|
+
function qt(o) {
|
|
1069
1069
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
1070
1070
|
}
|
|
1071
|
-
const Ve = /* @__PURE__ */
|
|
1071
|
+
const Ve = /* @__PURE__ */ E({
|
|
1072
1072
|
__name: "ReportTable",
|
|
1073
1073
|
props: {
|
|
1074
1074
|
value: {}
|
|
@@ -1081,16 +1081,16 @@ const Ve = /* @__PURE__ */ V({
|
|
|
1081
1081
|
border: t.value.options.border,
|
|
1082
1082
|
"show-header": !!t.value.options.showHeader,
|
|
1083
1083
|
stripe: t.value.options.stripe
|
|
1084
|
-
},
|
|
1084
|
+
}, qt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
|
|
1085
1085
|
prop: n.key,
|
|
1086
1086
|
label: n.name
|
|
1087
1087
|
}, null) : null)) ? r : {
|
|
1088
1088
|
default: () => [r]
|
|
1089
1089
|
});
|
|
1090
1090
|
};
|
|
1091
|
-
return (a, r) => (
|
|
1091
|
+
return (a, r) => (m(), C("div", null, [l(e, fe(ge(a.value)), null, 16)]));
|
|
1092
1092
|
}
|
|
1093
|
-
}), re = /* @__PURE__ */
|
|
1093
|
+
}), re = /* @__PURE__ */ E({
|
|
1094
1094
|
__name: "ReportText",
|
|
1095
1095
|
props: {
|
|
1096
1096
|
value: {}
|
|
@@ -1107,11 +1107,11 @@ const Ve = /* @__PURE__ */ V({
|
|
|
1107
1107
|
"text-align": a.textAlign
|
|
1108
1108
|
};
|
|
1109
1109
|
};
|
|
1110
|
-
return (a, r) => (
|
|
1110
|
+
return (a, r) => (m(), C("div", {
|
|
1111
1111
|
style: Pe(e())
|
|
1112
|
-
},
|
|
1112
|
+
}, M(a.value.data), 5));
|
|
1113
1113
|
}
|
|
1114
|
-
}),
|
|
1114
|
+
}), Ht = { class: "chart-components" }, Ee = /* @__PURE__ */ E({
|
|
1115
1115
|
__name: "ReportChart",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
value: {}
|
|
@@ -1127,40 +1127,40 @@ const Ve = /* @__PURE__ */ V({
|
|
|
1127
1127
|
name: A.label,
|
|
1128
1128
|
value: A.data[0].value
|
|
1129
1129
|
});
|
|
1130
|
-
}),
|
|
1130
|
+
}), xt(e.value.options, r, n);
|
|
1131
1131
|
}
|
|
1132
|
-
if (e.value.type === "pie" && (e.value.options = ue({ isLegend: !0 }),
|
|
1132
|
+
if (e.value.type === "pie" && (e.value.options.series = ue({ isLegend: !0 }).series, Tt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
|
|
1133
1133
|
let r = [];
|
|
1134
|
-
e.value.data.forEach((
|
|
1135
|
-
r =
|
|
1134
|
+
e.value.data.forEach((d) => {
|
|
1135
|
+
r = d.data.map((i, g) => ({ name: i.name, value: "value" + g }));
|
|
1136
1136
|
});
|
|
1137
1137
|
const n = {
|
|
1138
1138
|
name: "name",
|
|
1139
1139
|
value: r
|
|
1140
|
-
}, A = e.value.data.map((
|
|
1140
|
+
}, A = e.value.data.map((d) => {
|
|
1141
1141
|
const i = {
|
|
1142
|
-
name:
|
|
1142
|
+
name: d.label
|
|
1143
1143
|
};
|
|
1144
|
-
return r.forEach((g,
|
|
1145
|
-
i[g.value] =
|
|
1144
|
+
return r.forEach((g, p) => {
|
|
1145
|
+
i[g.value] = d.data[p].value;
|
|
1146
1146
|
}), i;
|
|
1147
1147
|
});
|
|
1148
|
-
console.log(te([], n), "chartsLine([], params)"), e.value.options.series = te([], n).series,
|
|
1148
|
+
console.log(te([], n), "chartsLine([], params)"), e.value.options.series = te([], n).series, kt(e.value.options, A, n);
|
|
1149
1149
|
}
|
|
1150
1150
|
return e.value.options;
|
|
1151
1151
|
});
|
|
1152
1152
|
return (r, n) => {
|
|
1153
1153
|
const A = s("TdsChart");
|
|
1154
|
-
return
|
|
1154
|
+
return m(), C("div", Ht, [
|
|
1155
1155
|
l(A, { option: a.value }, null, 8, ["option"])
|
|
1156
1156
|
]);
|
|
1157
1157
|
};
|
|
1158
1158
|
}
|
|
1159
1159
|
});
|
|
1160
|
-
function
|
|
1160
|
+
function zt(o) {
|
|
1161
1161
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
1162
1162
|
}
|
|
1163
|
-
const
|
|
1163
|
+
const Le = /* @__PURE__ */ E({
|
|
1164
1164
|
__name: "ReportDescribe",
|
|
1165
1165
|
props: {
|
|
1166
1166
|
value: {}
|
|
@@ -1173,7 +1173,7 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1173
1173
|
border: t.value.options.border,
|
|
1174
1174
|
column: t.value.options.column,
|
|
1175
1175
|
direction: t.value.options.direction
|
|
1176
|
-
},
|
|
1176
|
+
}, zt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
|
|
1177
1177
|
label: n.name
|
|
1178
1178
|
}, {
|
|
1179
1179
|
default: () => [l("div", {
|
|
@@ -1183,23 +1183,23 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1183
1183
|
default: () => [r]
|
|
1184
1184
|
});
|
|
1185
1185
|
};
|
|
1186
|
-
return (a, r) => (
|
|
1186
|
+
return (a, r) => (m(), C("div", null, [l(e, fe(ge(a.value)), null, 16)]));
|
|
1187
1187
|
}
|
|
1188
|
-
}),
|
|
1188
|
+
}), Nt = {
|
|
1189
1189
|
class: "editor-box"
|
|
1190
|
-
},
|
|
1190
|
+
}, Yt = {
|
|
1191
1191
|
class: "editor",
|
|
1192
1192
|
id: "editor",
|
|
1193
1193
|
style: {
|
|
1194
1194
|
width: "100%"
|
|
1195
1195
|
}
|
|
1196
|
-
}, Yt = {
|
|
1197
|
-
class: "editor-content flex flex-start"
|
|
1198
1196
|
}, Gt = {
|
|
1197
|
+
class: "editor-content flex flex-start"
|
|
1198
|
+
}, Xt = {
|
|
1199
1199
|
style: {
|
|
1200
1200
|
"margin-left": "auto"
|
|
1201
1201
|
}
|
|
1202
|
-
},
|
|
1202
|
+
}, Jt = ["id"], jt = ["innerHTML"], Zt = /* @__PURE__ */ E({
|
|
1203
1203
|
__name: "index",
|
|
1204
1204
|
props: /* @__PURE__ */ ve({
|
|
1205
1205
|
reportId: {
|
|
@@ -1212,93 +1212,93 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1212
1212
|
}),
|
|
1213
1213
|
emits: ["update:modelValue"],
|
|
1214
1214
|
setup(o) {
|
|
1215
|
-
const t =
|
|
1215
|
+
const t = B(!1), e = {
|
|
1216
1216
|
Bar: Be,
|
|
1217
|
-
Line:
|
|
1218
|
-
Pie:
|
|
1217
|
+
Line: ke,
|
|
1218
|
+
Pie: De,
|
|
1219
1219
|
ReportSelect: ne,
|
|
1220
1220
|
RangeTime: ae,
|
|
1221
1221
|
ReportTable: Ve,
|
|
1222
1222
|
ReportText: re,
|
|
1223
|
-
ReportChart:
|
|
1224
|
-
ReportDescribe:
|
|
1225
|
-
}, a =
|
|
1226
|
-
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1223
|
+
ReportChart: Ee,
|
|
1224
|
+
ReportDescribe: Le
|
|
1225
|
+
}, a = q(), r = o, n = _e(o, "modelValue"), A = B([]), d = B([]), i = B([]), g = /* @__PURE__ */ new Date(), p = new Date(g);
|
|
1226
|
+
p.setMonth(g.getMonth() - 1);
|
|
1227
|
+
function c(T) {
|
|
1228
|
+
return T < 10 ? "0" + T : T;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1230
|
+
function y(T) {
|
|
1231
|
+
return T.getFullYear() + "-" + c(T.getMonth() + 1) + "-" + c(T.getDate()) + " " + c(T.getHours()) + ":" + c(T.getMinutes()) + ":" + c(T.getSeconds());
|
|
1232
1232
|
}
|
|
1233
|
-
const
|
|
1234
|
-
function
|
|
1233
|
+
const _ = B(y(p)), D = B(y(g));
|
|
1234
|
+
function w() {
|
|
1235
1235
|
n.value = "table";
|
|
1236
1236
|
}
|
|
1237
|
-
async function
|
|
1237
|
+
async function v(T) {
|
|
1238
1238
|
const U = {
|
|
1239
|
-
export_format:
|
|
1239
|
+
export_format: T,
|
|
1240
1240
|
select_data: i.value.join(","),
|
|
1241
1241
|
report_uuid: r.reportId,
|
|
1242
|
-
start_time:
|
|
1243
|
-
end_time:
|
|
1242
|
+
start_time: _.value,
|
|
1243
|
+
end_time: D.value
|
|
1244
1244
|
};
|
|
1245
|
-
await
|
|
1245
|
+
await wt(U), Ge({
|
|
1246
1246
|
title: "提示",
|
|
1247
1247
|
message: "正在生成导出中,请稍等...",
|
|
1248
1248
|
type: "info"
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1252
|
-
i.value =
|
|
1253
|
-
},
|
|
1254
|
-
|
|
1251
|
+
const f = (T) => {
|
|
1252
|
+
i.value = T, Q();
|
|
1253
|
+
}, b = (T) => {
|
|
1254
|
+
T && T.length > 0 && (_.value = T[0], D.value = T[1]), Q();
|
|
1255
1255
|
}, Q = async () => {
|
|
1256
1256
|
try {
|
|
1257
1257
|
t.value = !0;
|
|
1258
|
-
const
|
|
1258
|
+
const T = {
|
|
1259
1259
|
report_uuid: r.reportId,
|
|
1260
|
-
start_time:
|
|
1261
|
-
end_time:
|
|
1260
|
+
start_time: _.value,
|
|
1261
|
+
end_time: D.value,
|
|
1262
1262
|
select_data: i.value.join(",")
|
|
1263
|
-
}, U = await
|
|
1264
|
-
U.data.forEach((
|
|
1265
|
-
(
|
|
1266
|
-
}), A.value =
|
|
1267
|
-
} catch (
|
|
1268
|
-
t.value = !1, console.error("Error setting loading state:",
|
|
1263
|
+
}, U = await ot(T), Y = [];
|
|
1264
|
+
U.data.forEach((j) => {
|
|
1265
|
+
(j.type === "report-select" || j.type === "range-time") && Y.push(j);
|
|
1266
|
+
}), A.value = Y, U.data.splice(0, A.value.length), d.value = U.data, t.value = !1;
|
|
1267
|
+
} catch (T) {
|
|
1268
|
+
t.value = !1, console.error("Error setting loading state:", T);
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
1271
|
Q();
|
|
1272
|
-
const
|
|
1273
|
-
return (
|
|
1274
|
-
const
|
|
1275
|
-
return Ae((
|
|
1272
|
+
const k = () => l("div", null, [L("未找到对应组件")]), N = (T) => T === "h2" || T === "h3" || T === "h4" ? H(e, "ReportText") : T === "bar" || T === "pie" || T === "line" ? H(e, "ReportChart") : T ? H(e, T) : l(k, null, null);
|
|
1273
|
+
return (T, U) => {
|
|
1274
|
+
const Y = s("el-button"), j = s("el-card"), Oe = be("loading");
|
|
1275
|
+
return Ae((m(), V(j, {
|
|
1276
1276
|
class: "editor view",
|
|
1277
1277
|
"element-loading-text": "加载中..."
|
|
1278
1278
|
}, {
|
|
1279
|
-
default: u(() => [
|
|
1280
|
-
data:
|
|
1281
|
-
}, null, 8, ["data"]),
|
|
1279
|
+
default: u(() => [x("div", Nt, [l(Qt, {
|
|
1280
|
+
data: d.value
|
|
1281
|
+
}, null, 8, ["data"]), x("div", Yt, [x("div", Gt, [(m(!0), C(O, null, I(A.value, (R) => (m(), C("div", {
|
|
1282
1282
|
class: "item-input",
|
|
1283
1283
|
key: R.id
|
|
1284
|
-
}, [R.type === "report-select" ? (
|
|
1284
|
+
}, [R.type === "report-select" ? (m(), V(ne, {
|
|
1285
1285
|
key: 0,
|
|
1286
|
-
onChange:
|
|
1286
|
+
onChange: f,
|
|
1287
1287
|
value: R
|
|
1288
|
-
}, null, 8, ["value"])) : S("", !0), R.type === "range-time" &&
|
|
1288
|
+
}, null, 8, ["value"])) : S("", !0), R.type === "range-time" && h(a).filterForm.range_time ? (m(), V(ae, {
|
|
1289
1289
|
key: 1,
|
|
1290
|
-
onChange:
|
|
1290
|
+
onChange: b,
|
|
1291
1291
|
value: R
|
|
1292
|
-
}, null, 8, ["value"])) : S("", !0)]))), 128)),
|
|
1292
|
+
}, null, 8, ["value"])) : S("", !0)]))), 128)), x("div", Xt, [U[5] || (U[5] = x("span", {
|
|
1293
1293
|
class: "font-export"
|
|
1294
|
-
}, "导出为:", -1)), l(
|
|
1294
|
+
}, "导出为:", -1)), l(Y, {
|
|
1295
1295
|
link: "",
|
|
1296
|
-
onClick: U[0] || (U[0] = (R) =>
|
|
1296
|
+
onClick: U[0] || (U[0] = (R) => v(1)),
|
|
1297
1297
|
title: "PDF",
|
|
1298
1298
|
type: "primary",
|
|
1299
1299
|
class: "custom-btn"
|
|
1300
1300
|
}, {
|
|
1301
|
-
default: u(() => U[2] || (U[2] = [
|
|
1301
|
+
default: u(() => U[2] || (U[2] = [x("img", {
|
|
1302
1302
|
style: {
|
|
1303
1303
|
width: "25px",
|
|
1304
1304
|
height: "25px"
|
|
@@ -1307,9 +1307,9 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1307
1307
|
alt: "导出为PDF"
|
|
1308
1308
|
}, null, -1)])),
|
|
1309
1309
|
_: 1
|
|
1310
|
-
}), l(
|
|
1310
|
+
}), l(Y, {
|
|
1311
1311
|
link: "",
|
|
1312
|
-
onClick: U[1] || (U[1] = (R) =>
|
|
1312
|
+
onClick: U[1] || (U[1] = (R) => v(3)),
|
|
1313
1313
|
title: "WORD",
|
|
1314
1314
|
type: "primary",
|
|
1315
1315
|
class: "custom-btn",
|
|
@@ -1317,7 +1317,7 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1317
1317
|
"margin-right": "5px"
|
|
1318
1318
|
}
|
|
1319
1319
|
}, {
|
|
1320
|
-
default: u(() => U[3] || (U[3] = [
|
|
1320
|
+
default: u(() => U[3] || (U[3] = [x("img", {
|
|
1321
1321
|
style: {
|
|
1322
1322
|
width: "25px",
|
|
1323
1323
|
height: "25px"
|
|
@@ -1326,112 +1326,112 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1326
1326
|
alt: "导出为WORD"
|
|
1327
1327
|
}, null, -1)])),
|
|
1328
1328
|
_: 1
|
|
1329
|
-
}), l(
|
|
1329
|
+
}), l(Y, {
|
|
1330
1330
|
plain: "",
|
|
1331
|
-
onClick:
|
|
1331
|
+
onClick: w,
|
|
1332
1332
|
type: "primary",
|
|
1333
1333
|
class: "custom-btn exit-preview",
|
|
1334
1334
|
style: {
|
|
1335
1335
|
"margin-left": "auto"
|
|
1336
1336
|
}
|
|
1337
1337
|
}, {
|
|
1338
|
-
default: u(() => U[4] || (U[4] = [
|
|
1338
|
+
default: u(() => U[4] || (U[4] = [L("退出预览")])),
|
|
1339
1339
|
_: 1
|
|
1340
|
-
})])]), (
|
|
1340
|
+
})])]), (m(!0), C(O, null, I(d.value, (R) => (m(), C("div", {
|
|
1341
1341
|
key: R.id,
|
|
1342
|
-
class:
|
|
1342
|
+
class: X(["editor-content", ["editor" + R.type]]),
|
|
1343
1343
|
id: R.id
|
|
1344
|
-
}, [R.type !== "p" ? (
|
|
1344
|
+
}, [R.type !== "p" ? (m(), V($(N(R.type)), {
|
|
1345
1345
|
key: 0,
|
|
1346
|
-
class:
|
|
1346
|
+
class: X(["editor" + R.type]),
|
|
1347
1347
|
value: R
|
|
1348
1348
|
}, {
|
|
1349
|
-
default: u(() => [
|
|
1349
|
+
default: u(() => [L(M(R.data), 1)]),
|
|
1350
1350
|
_: 2
|
|
1351
|
-
}, 1032, ["class", "value"])) : (
|
|
1351
|
+
}, 1032, ["class", "value"])) : (m(), C("p", {
|
|
1352
1352
|
key: 1,
|
|
1353
1353
|
innerHTML: R.data
|
|
1354
|
-
}, null, 8,
|
|
1354
|
+
}, null, 8, jt))], 10, Jt))), 128))])])]),
|
|
1355
1355
|
_: 1
|
|
1356
1356
|
})), [[Oe, t.value]]);
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
|
-
const Ue = /* @__PURE__ */
|
|
1360
|
+
const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
1361
1361
|
class: "editor"
|
|
1362
|
-
},
|
|
1362
|
+
}, $t = {
|
|
1363
1363
|
class: "editor-content edit"
|
|
1364
|
-
},
|
|
1364
|
+
}, eo = ["onClick"], to = ["onClick"], oo = ["innerHTML", "draggable"], lo = /* @__PURE__ */ E({
|
|
1365
1365
|
__name: "Editor",
|
|
1366
1366
|
setup(o) {
|
|
1367
1367
|
const t = {
|
|
1368
1368
|
Bar: Be,
|
|
1369
|
-
Line:
|
|
1370
|
-
Pie:
|
|
1369
|
+
Line: ke,
|
|
1370
|
+
Pie: De,
|
|
1371
1371
|
ReportSelect: ne,
|
|
1372
1372
|
RangeTime: ae,
|
|
1373
1373
|
ReportTable: Ve,
|
|
1374
1374
|
ReportText: re,
|
|
1375
|
-
ReportChart:
|
|
1376
|
-
ReportDescribe:
|
|
1375
|
+
ReportChart: Ee,
|
|
1376
|
+
ReportDescribe: Le
|
|
1377
1377
|
}, {
|
|
1378
1378
|
componentList: e,
|
|
1379
1379
|
activeComponents: a,
|
|
1380
1380
|
notDraggableList: r,
|
|
1381
1381
|
titleComponent: n
|
|
1382
|
-
} =
|
|
1383
|
-
e.value.forEach((
|
|
1384
|
-
|
|
1382
|
+
} = Ye(q()), A = q(), d = (v) => {
|
|
1383
|
+
e.value.forEach((f, b) => {
|
|
1384
|
+
f.id === v && (e.value.splice(b, 1), A.activeComponents = []);
|
|
1385
1385
|
});
|
|
1386
|
-
}, i = (
|
|
1387
|
-
A.setActiveComponents(
|
|
1388
|
-
}, g = () => l("div", null, [
|
|
1389
|
-
console.log(
|
|
1390
|
-
},
|
|
1391
|
-
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1394
|
-
},
|
|
1395
|
-
return (
|
|
1396
|
-
const
|
|
1397
|
-
return
|
|
1398
|
-
class:
|
|
1399
|
-
active:
|
|
1386
|
+
}, i = (v) => {
|
|
1387
|
+
A.setActiveComponents(v);
|
|
1388
|
+
}, g = () => l("div", null, [L("未找到对应组件")]), p = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : l(g, null, null), c = (v) => {
|
|
1389
|
+
console.log(v, "evt");
|
|
1390
|
+
}, y = B(!1), _ = () => {
|
|
1391
|
+
y.value = !0;
|
|
1392
|
+
}, D = (v) => {
|
|
1393
|
+
v.newIndex !== 0 && (console.log(v), y.value = !1);
|
|
1394
|
+
}, w = B();
|
|
1395
|
+
return (v, f) => {
|
|
1396
|
+
const b = s("CircleClose"), Q = s("el-icon");
|
|
1397
|
+
return m(), C("div", Wt, [x("div", {
|
|
1398
|
+
class: X(["editor-content edit flex flex-start", [{
|
|
1399
|
+
active: h(a).id === "filter"
|
|
1400
1400
|
}]]),
|
|
1401
|
-
onClick:
|
|
1401
|
+
onClick: f[0] || (f[0] = (k) => i({
|
|
1402
1402
|
id: "filter",
|
|
1403
1403
|
type: "filter"
|
|
1404
1404
|
}))
|
|
1405
|
-
}, [(
|
|
1405
|
+
}, [(m(!0), C(O, null, I(h(r), (k) => (m(), C("div", {
|
|
1406
1406
|
class: "item-input",
|
|
1407
|
-
key:
|
|
1408
|
-
}, [
|
|
1407
|
+
key: k.id
|
|
1408
|
+
}, [k.type === "report-select" || k.type === "range-time" && h(A).filterForm.range_time ? (m(), V($(h(H)(t, k.type)), {
|
|
1409
1409
|
key: 0,
|
|
1410
|
-
value:
|
|
1410
|
+
value: k
|
|
1411
1411
|
}, {
|
|
1412
|
-
default: u(() => [
|
|
1412
|
+
default: u(() => [L(M(k.data), 1)]),
|
|
1413
1413
|
_: 2
|
|
1414
|
-
}, 1032, ["value"])) : S("", !0)]))), 128))], 2),
|
|
1415
|
-
value:
|
|
1416
|
-
onClick:
|
|
1417
|
-
}, null, 8, ["value"])]), l(
|
|
1414
|
+
}, 1032, ["value"])) : S("", !0)]))), 128))], 2), x("div", $t, [l(re, {
|
|
1415
|
+
value: h(n),
|
|
1416
|
+
onClick: f[1] || (f[1] = (k) => i(h(n)))
|
|
1417
|
+
}, null, 8, ["value"])]), l(h(Je), {
|
|
1418
1418
|
ref_key: "el",
|
|
1419
|
-
ref:
|
|
1420
|
-
modelValue:
|
|
1421
|
-
"onUpdate:modelValue":
|
|
1422
|
-
"on-change":
|
|
1419
|
+
ref: w,
|
|
1420
|
+
modelValue: h(e),
|
|
1421
|
+
"onUpdate:modelValue": f[2] || (f[2] = (k) => Qe(e) ? e.value = k : null),
|
|
1422
|
+
"on-change": c,
|
|
1423
1423
|
animation: 150,
|
|
1424
|
-
onStart:
|
|
1425
|
-
onEnd:
|
|
1424
|
+
onStart: _,
|
|
1425
|
+
onEnd: D
|
|
1426
1426
|
}, {
|
|
1427
|
-
default: u(() => [(
|
|
1428
|
-
key:
|
|
1429
|
-
class:
|
|
1430
|
-
active:
|
|
1427
|
+
default: u(() => [(m(!0), C(O, null, I(h(e), (k) => (m(), C("div", {
|
|
1428
|
+
key: k.id,
|
|
1429
|
+
class: X(["editor-content edit", ["editor" + k.type, {
|
|
1430
|
+
active: k.id === h(a).id
|
|
1431
1431
|
}]]),
|
|
1432
|
-
onClick: (
|
|
1433
|
-
}, [
|
|
1434
|
-
onClick: Ie((
|
|
1432
|
+
onClick: (N) => i(k)
|
|
1433
|
+
}, [x("i", {
|
|
1434
|
+
onClick: Ie((N) => d(k.id), ["stop"]),
|
|
1435
1435
|
style: {
|
|
1436
1436
|
"z-index": "99"
|
|
1437
1437
|
}
|
|
@@ -1439,66 +1439,66 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1439
1439
|
size: "16px",
|
|
1440
1440
|
color: "red"
|
|
1441
1441
|
}, {
|
|
1442
|
-
default: u(() => [l(
|
|
1442
|
+
default: u(() => [l(b)]),
|
|
1443
1443
|
_: 1
|
|
1444
|
-
})], 8,
|
|
1444
|
+
})], 8, to), k.type !== "p" ? (m(), V($(p(k.type)), {
|
|
1445
1445
|
key: 0,
|
|
1446
|
-
class:
|
|
1447
|
-
value:
|
|
1448
|
-
draggable:
|
|
1446
|
+
class: X(["editor" + k.type]),
|
|
1447
|
+
value: k,
|
|
1448
|
+
draggable: y.value
|
|
1449
1449
|
}, {
|
|
1450
|
-
default: u(() => [
|
|
1450
|
+
default: u(() => [L(M(k.data), 1)]),
|
|
1451
1451
|
_: 2
|
|
1452
|
-
}, 1032, ["class", "value", "draggable"])) : (
|
|
1452
|
+
}, 1032, ["class", "value", "draggable"])) : (m(), C("p", {
|
|
1453
1453
|
key: 1,
|
|
1454
|
-
innerHTML:
|
|
1455
|
-
draggable:
|
|
1456
|
-
}, null, 8,
|
|
1454
|
+
innerHTML: k.data,
|
|
1455
|
+
draggable: y.value
|
|
1456
|
+
}, null, 8, oo))], 10, eo))), 128))]),
|
|
1457
1457
|
_: 1
|
|
1458
1458
|
}, 8, ["modelValue"])]);
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
-
}),
|
|
1461
|
+
}), no = { class: "label" }, ao = { class: "flex item-switch" }, ro = { class: "flex item-switch" }, Ao = { class: "flex item-switch" }, Re = /* @__PURE__ */ E({
|
|
1462
1462
|
__name: "SettingTable",
|
|
1463
1463
|
setup(o) {
|
|
1464
|
-
const t =
|
|
1464
|
+
const t = q(), e = K(() => t.getActiveComponents);
|
|
1465
1465
|
return (a, r) => {
|
|
1466
|
-
const n = s("el-switch"), A = s("el-form-item"),
|
|
1467
|
-
return
|
|
1466
|
+
const n = s("el-switch"), A = s("el-form-item"), d = s("el-divider");
|
|
1467
|
+
return m(), C("div", null, [
|
|
1468
1468
|
l(A, { label: "控制列" }, {
|
|
1469
1469
|
default: u(() => [
|
|
1470
|
-
(
|
|
1470
|
+
(m(!0), C(O, null, I(e.value.showColumn, (i, g) => (m(), C("p", {
|
|
1471
1471
|
class: "flex item-switch",
|
|
1472
1472
|
key: g
|
|
1473
1473
|
}, [
|
|
1474
|
-
|
|
1474
|
+
x("span", no, M(i.name), 1),
|
|
1475
1475
|
l(n, {
|
|
1476
1476
|
modelValue: e.value.options.showColumn[i.key],
|
|
1477
|
-
"onUpdate:modelValue": (
|
|
1477
|
+
"onUpdate:modelValue": (p) => e.value.options.showColumn[i.key] = p
|
|
1478
1478
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1479
1479
|
]))), 128))
|
|
1480
1480
|
]),
|
|
1481
1481
|
_: 1
|
|
1482
1482
|
}),
|
|
1483
|
-
l(
|
|
1483
|
+
l(d),
|
|
1484
1484
|
l(A, { label: "表格样式" }, {
|
|
1485
1485
|
default: u(() => [
|
|
1486
|
-
|
|
1487
|
-
r[3] || (r[3] =
|
|
1486
|
+
x("p", ao, [
|
|
1487
|
+
r[3] || (r[3] = x("span", { class: "label" }, "斑马纹", -1)),
|
|
1488
1488
|
l(n, {
|
|
1489
1489
|
modelValue: e.value.options.stripe,
|
|
1490
1490
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
|
|
1491
1491
|
}, null, 8, ["modelValue"])
|
|
1492
1492
|
]),
|
|
1493
|
-
|
|
1494
|
-
r[4] || (r[4] =
|
|
1493
|
+
x("p", ro, [
|
|
1494
|
+
r[4] || (r[4] = x("span", { class: "label" }, "边框", -1)),
|
|
1495
1495
|
l(n, {
|
|
1496
1496
|
modelValue: e.value.options.border,
|
|
1497
1497
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
|
|
1498
1498
|
}, null, 8, ["modelValue"])
|
|
1499
1499
|
]),
|
|
1500
|
-
|
|
1501
|
-
r[5] || (r[5] =
|
|
1500
|
+
x("p", Ao, [
|
|
1501
|
+
r[5] || (r[5] = x("span", { class: "label" }, "表头", -1)),
|
|
1502
1502
|
l(n, {
|
|
1503
1503
|
modelValue: e.value.options.showHeader,
|
|
1504
1504
|
"onUpdate:modelValue": r[2] || (r[2] = (i) => e.value.options.showHeader = i)
|
|
@@ -1510,85 +1510,85 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1510
1510
|
]);
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
|
-
}),
|
|
1513
|
+
}), so = { key: 0 }, io = /* @__PURE__ */ E({
|
|
1514
1514
|
__name: "ChartsUniConfig",
|
|
1515
1515
|
setup(o) {
|
|
1516
|
-
const t =
|
|
1516
|
+
const t = q(), e = K(() => t.activeComponents);
|
|
1517
1517
|
function a(r) {
|
|
1518
1518
|
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);
|
|
1519
1519
|
}
|
|
1520
|
-
return
|
|
1521
|
-
const A = s("el-input"),
|
|
1522
|
-
return e.value.options.title ? (
|
|
1523
|
-
l(
|
|
1520
|
+
return B("rgb(46, 145, 255)"), (r, n) => {
|
|
1521
|
+
const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"), g = s("el-col"), p = s("el-color-picker"), c = s("el-input-number"), y = s("el-row"), _ = s("el-collapse-item"), D = s("el-collapse");
|
|
1522
|
+
return e.value.options.title ? (m(), C("div", so, [
|
|
1523
|
+
l(d, { label: "标题" }, {
|
|
1524
1524
|
default: u(() => [
|
|
1525
1525
|
l(A, {
|
|
1526
1526
|
modelValue: e.value.options.title.text,
|
|
1527
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1527
|
+
"onUpdate:modelValue": n[0] || (n[0] = (w) => e.value.options.title.text = w)
|
|
1528
1528
|
}, null, 8, ["modelValue"])
|
|
1529
1529
|
]),
|
|
1530
1530
|
_: 1
|
|
1531
1531
|
}),
|
|
1532
|
-
l(
|
|
1532
|
+
l(D, null, {
|
|
1533
1533
|
default: u(() => [
|
|
1534
|
-
l(
|
|
1534
|
+
l(_, {
|
|
1535
1535
|
title: "标题配置",
|
|
1536
1536
|
name: "1"
|
|
1537
1537
|
}, {
|
|
1538
1538
|
default: u(() => [
|
|
1539
|
-
l(
|
|
1539
|
+
l(y, { class: "w-100%" }, {
|
|
1540
1540
|
default: u(() => [
|
|
1541
1541
|
l(g, { span: 24 }, {
|
|
1542
1542
|
default: u(() => [
|
|
1543
|
-
n[8] || (n[8] =
|
|
1543
|
+
n[8] || (n[8] = x("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1544
1544
|
l(i, {
|
|
1545
1545
|
modelValue: e.value.options.title.show,
|
|
1546
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1546
|
+
"onUpdate:modelValue": n[1] || (n[1] = (w) => e.value.options.title.show = w)
|
|
1547
1547
|
}, null, 8, ["modelValue"])
|
|
1548
1548
|
]),
|
|
1549
1549
|
_: 1
|
|
1550
1550
|
}),
|
|
1551
1551
|
l(g, { span: 12 }, {
|
|
1552
1552
|
default: u(() => [
|
|
1553
|
-
l(
|
|
1553
|
+
l(p, {
|
|
1554
1554
|
modelValue: e.value.options.title.textStyle.color,
|
|
1555
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1555
|
+
"onUpdate:modelValue": n[2] || (n[2] = (w) => e.value.options.title.textStyle.color = w),
|
|
1556
1556
|
"show-alpha": ""
|
|
1557
1557
|
}, null, 8, ["modelValue"]),
|
|
1558
|
-
n[9] || (n[9] =
|
|
1558
|
+
n[9] || (n[9] = x("p", { class: "sub-title" }, "颜色", -1))
|
|
1559
1559
|
]),
|
|
1560
1560
|
_: 1
|
|
1561
1561
|
}),
|
|
1562
1562
|
l(g, { span: 12 }, {
|
|
1563
1563
|
default: u(() => [
|
|
1564
|
-
l(
|
|
1564
|
+
l(c, {
|
|
1565
1565
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1566
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
1566
|
+
"onUpdate:modelValue": n[3] || (n[3] = (w) => e.value.options.title.textStyle.fontSize = w),
|
|
1567
1567
|
"controls-position": "right"
|
|
1568
1568
|
}, null, 8, ["modelValue"]),
|
|
1569
|
-
n[10] || (n[10] =
|
|
1569
|
+
n[10] || (n[10] = x("p", { class: "sub-title" }, "字体大小", -1))
|
|
1570
1570
|
]),
|
|
1571
1571
|
_: 1
|
|
1572
1572
|
}),
|
|
1573
1573
|
l(g, { span: 12 }, {
|
|
1574
1574
|
default: u(() => [
|
|
1575
|
-
l(
|
|
1575
|
+
l(c, {
|
|
1576
1576
|
modelValue: e.value.options.title.x,
|
|
1577
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
1577
|
+
"onUpdate:modelValue": n[4] || (n[4] = (w) => e.value.options.title.x = w),
|
|
1578
1578
|
"controls-position": "right"
|
|
1579
1579
|
}, null, 8, ["modelValue"]),
|
|
1580
|
-
n[11] || (n[11] =
|
|
1580
|
+
n[11] || (n[11] = x("p", { class: "sub-title" }, "横向", -1))
|
|
1581
1581
|
]),
|
|
1582
1582
|
_: 1
|
|
1583
1583
|
}),
|
|
1584
1584
|
l(g, { span: 12 }, {
|
|
1585
1585
|
default: u(() => [
|
|
1586
|
-
l(
|
|
1586
|
+
l(c, {
|
|
1587
1587
|
modelValue: e.value.options.title.y,
|
|
1588
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
1588
|
+
"onUpdate:modelValue": n[5] || (n[5] = (w) => e.value.options.title.y = w),
|
|
1589
1589
|
"controls-position": "right"
|
|
1590
1590
|
}, null, 8, ["modelValue"]),
|
|
1591
|
-
n[12] || (n[12] =
|
|
1591
|
+
n[12] || (n[12] = x("p", { class: "sub-title" }, "纵向", -1))
|
|
1592
1592
|
]),
|
|
1593
1593
|
_: 1
|
|
1594
1594
|
})
|
|
@@ -1598,20 +1598,20 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1598
1598
|
]),
|
|
1599
1599
|
_: 1
|
|
1600
1600
|
}),
|
|
1601
|
-
l(
|
|
1601
|
+
l(_, {
|
|
1602
1602
|
title: "图形配置",
|
|
1603
1603
|
name: "2"
|
|
1604
1604
|
}, {
|
|
1605
1605
|
default: u(() => [
|
|
1606
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (
|
|
1606
|
+
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), V(y, { key: 0 }, {
|
|
1607
1607
|
default: u(() => [
|
|
1608
1608
|
l(g, { span: 24 }, {
|
|
1609
1609
|
default: u(() => [
|
|
1610
|
-
n[13] || (n[13] =
|
|
1610
|
+
n[13] || (n[13] = x("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
1611
1611
|
l(i, {
|
|
1612
1612
|
onChange: a,
|
|
1613
1613
|
modelValue: e.value.options.series[0].roseType,
|
|
1614
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
1614
|
+
"onUpdate:modelValue": n[6] || (n[6] = (w) => e.value.options.series[0].roseType = w)
|
|
1615
1615
|
}, null, 8, ["modelValue"])
|
|
1616
1616
|
]),
|
|
1617
1617
|
_: 1
|
|
@@ -1622,20 +1622,20 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1622
1622
|
]),
|
|
1623
1623
|
_: 1
|
|
1624
1624
|
}),
|
|
1625
|
-
l(
|
|
1625
|
+
l(_, {
|
|
1626
1626
|
title: "图例配置",
|
|
1627
1627
|
name: "3"
|
|
1628
1628
|
}, {
|
|
1629
1629
|
default: u(() => [
|
|
1630
|
-
l(
|
|
1630
|
+
l(y, null, {
|
|
1631
1631
|
default: u(() => [
|
|
1632
1632
|
l(g, { span: 24 }, {
|
|
1633
1633
|
default: u(() => [
|
|
1634
|
-
n[14] || (n[14] =
|
|
1635
|
-
e.value.options.legend ? (
|
|
1634
|
+
n[14] || (n[14] = x("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1635
|
+
e.value.options.legend ? (m(), V(i, {
|
|
1636
1636
|
key: 0,
|
|
1637
1637
|
modelValue: e.value.options.legend.show,
|
|
1638
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
1638
|
+
"onUpdate:modelValue": n[7] || (n[7] = (w) => e.value.options.legend.show = w)
|
|
1639
1639
|
}, null, 8, ["modelValue"])) : S("", !0)
|
|
1640
1640
|
]),
|
|
1641
1641
|
_: 1
|
|
@@ -1653,27 +1653,27 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1653
1653
|
};
|
|
1654
1654
|
}
|
|
1655
1655
|
});
|
|
1656
|
-
const
|
|
1656
|
+
const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @__PURE__ */ E({
|
|
1657
1657
|
__name: "SettingDescribe",
|
|
1658
1658
|
setup(o) {
|
|
1659
|
-
const t =
|
|
1659
|
+
const t = q(), e = K(() => t.getActiveComponents);
|
|
1660
1660
|
return (a, r) => {
|
|
1661
|
-
const n = s("el-input"), A = s("el-form-item"),
|
|
1662
|
-
return
|
|
1661
|
+
const n = s("el-input"), A = s("el-form-item"), d = s("el-switch"), i = s("el-input-number"), g = s("el-radio"), p = s("el-radio-group");
|
|
1662
|
+
return m(), C("div", null, [
|
|
1663
1663
|
l(A, { label: "标题" }, {
|
|
1664
1664
|
default: u(() => [
|
|
1665
1665
|
l(n, {
|
|
1666
1666
|
modelValue: e.value.options.title,
|
|
1667
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1667
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => e.value.options.title = c)
|
|
1668
1668
|
}, null, 8, ["modelValue"])
|
|
1669
1669
|
]),
|
|
1670
1670
|
_: 1
|
|
1671
1671
|
}),
|
|
1672
1672
|
l(A, { label: "边框" }, {
|
|
1673
1673
|
default: u(() => [
|
|
1674
|
-
l(
|
|
1674
|
+
l(d, {
|
|
1675
1675
|
modelValue: e.value.options.border,
|
|
1676
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1676
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => e.value.options.border = c)
|
|
1677
1677
|
}, null, 8, ["modelValue"])
|
|
1678
1678
|
]),
|
|
1679
1679
|
_: 1
|
|
@@ -1682,7 +1682,7 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1682
1682
|
default: u(() => [
|
|
1683
1683
|
l(i, {
|
|
1684
1684
|
modelValue: e.value.options.column,
|
|
1685
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1685
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => e.value.options.column = c),
|
|
1686
1686
|
min: 1,
|
|
1687
1687
|
max: 10,
|
|
1688
1688
|
controls: !1
|
|
@@ -1692,20 +1692,20 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1692
1692
|
}),
|
|
1693
1693
|
l(A, { label: "排列方向" }, {
|
|
1694
1694
|
default: u(() => [
|
|
1695
|
-
l(
|
|
1695
|
+
l(p, {
|
|
1696
1696
|
modelValue: e.value.options.direction,
|
|
1697
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
1697
|
+
"onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
|
|
1698
1698
|
}, {
|
|
1699
1699
|
default: u(() => [
|
|
1700
1700
|
l(g, { value: "horizontal" }, {
|
|
1701
1701
|
default: u(() => r[4] || (r[4] = [
|
|
1702
|
-
|
|
1702
|
+
L("横向")
|
|
1703
1703
|
])),
|
|
1704
1704
|
_: 1
|
|
1705
1705
|
}),
|
|
1706
1706
|
l(g, { value: "vertical" }, {
|
|
1707
1707
|
default: u(() => r[5] || (r[5] = [
|
|
1708
|
-
|
|
1708
|
+
L("纵向")
|
|
1709
1709
|
])),
|
|
1710
1710
|
_: 1
|
|
1711
1711
|
})
|
|
@@ -1718,81 +1718,82 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1718
1718
|
]);
|
|
1719
1719
|
};
|
|
1720
1720
|
}
|
|
1721
|
-
}),
|
|
1721
|
+
}), po = /* @__PURE__ */ E({
|
|
1722
1722
|
__name: "SettingCharts",
|
|
1723
1723
|
setup(o) {
|
|
1724
|
-
const t =
|
|
1724
|
+
const t = q(), e = B(!1), a = K(() => t.getActiveComponents), r = [
|
|
1725
1725
|
{ value: "report-describe", name: "描述列表" },
|
|
1726
1726
|
{ value: "report-table", name: "表格" },
|
|
1727
1727
|
{ value: "line", name: "趋势图" },
|
|
1728
1728
|
{ value: "pie", name: "扇形图" },
|
|
1729
1729
|
{ value: "bar", name: "柱状图" }
|
|
1730
|
-
], n =
|
|
1731
|
-
async function p
|
|
1732
|
-
const
|
|
1730
|
+
], n = B(""), A = B();
|
|
1731
|
+
async function d(p) {
|
|
1732
|
+
const c = window.windowGlobalVar.SYSTEM_FEATURE, y = await he({
|
|
1733
1733
|
prod_type: window.$prodType,
|
|
1734
|
-
chart_type:
|
|
1735
|
-
filter_uuid: t.filterForm.filter_uuid
|
|
1734
|
+
chart_type: p,
|
|
1735
|
+
filter_uuid: t.filterForm.filter_uuid,
|
|
1736
|
+
cg_linkage: c ? 1 : c ? void 0 : 0
|
|
1736
1737
|
});
|
|
1737
|
-
A.value =
|
|
1738
|
+
A.value = y.data;
|
|
1738
1739
|
}
|
|
1739
|
-
function i(
|
|
1740
|
-
let
|
|
1741
|
-
const
|
|
1742
|
-
if (
|
|
1743
|
-
let
|
|
1744
|
-
|
|
1745
|
-
|
|
1740
|
+
function i(p) {
|
|
1741
|
+
let c = A.value.find((_) => _.rp_item_uuid === p);
|
|
1742
|
+
const y = c.rp_item_content;
|
|
1743
|
+
if (c.rp_item_content.type === "bar" && (y.options = oe()), y.type === "pie" && (y.options = ue({ isLegend: !0 })), y.type === "line") {
|
|
1744
|
+
let _ = [];
|
|
1745
|
+
y.data.forEach((w) => {
|
|
1746
|
+
_ = w.data.map((v, f) => ({ name: v.name, value: "value" + f }));
|
|
1746
1747
|
});
|
|
1747
|
-
const
|
|
1748
|
+
const D = {
|
|
1748
1749
|
name: "name",
|
|
1749
|
-
value:
|
|
1750
|
+
value: _
|
|
1750
1751
|
};
|
|
1751
|
-
|
|
1752
|
+
y.options = te([], D);
|
|
1752
1753
|
}
|
|
1753
|
-
if (
|
|
1754
|
-
const
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
}),
|
|
1754
|
+
if (y.type === "report-table") {
|
|
1755
|
+
const _ = {};
|
|
1756
|
+
y.showColumn.forEach((D) => {
|
|
1757
|
+
_[D.key] = !0;
|
|
1758
|
+
}), y.options = { ...y.options, showColumn: _, border: !0, showHeader: !0, stripe: !1 };
|
|
1758
1759
|
}
|
|
1759
|
-
|
|
1760
|
+
y.type === "report-describe" && (y.options = { ...y.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, y), t.activeComponents.rp_item_uuid = c.rp_item_uuid;
|
|
1760
1761
|
}
|
|
1761
1762
|
se(async () => {
|
|
1762
|
-
n.value = a.value.type, await
|
|
1763
|
+
n.value = a.value.type, await d(n.value);
|
|
1763
1764
|
});
|
|
1764
|
-
async function g(
|
|
1765
|
+
async function g(p) {
|
|
1765
1766
|
try {
|
|
1766
|
-
e.value = !0, await p
|
|
1767
|
-
} catch (
|
|
1768
|
-
console.error("加载报告项失败:",
|
|
1767
|
+
e.value = !0, await d(p);
|
|
1768
|
+
} catch (c) {
|
|
1769
|
+
console.error("加载报告项失败:", c);
|
|
1769
1770
|
} finally {
|
|
1770
|
-
Object.assign(t.activeComponents,
|
|
1771
|
+
Object.assign(t.activeComponents, Ut(p)), e.value = !1;
|
|
1771
1772
|
}
|
|
1772
1773
|
}
|
|
1773
1774
|
return Fe(
|
|
1774
1775
|
() => a.value,
|
|
1775
|
-
(
|
|
1776
|
-
console.log(
|
|
1776
|
+
(p) => {
|
|
1777
|
+
console.log(p, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(p.type) && (n.value = a.value.type, d(n.value));
|
|
1777
1778
|
}
|
|
1778
|
-
), (
|
|
1779
|
-
const
|
|
1780
|
-
return Ae((
|
|
1781
|
-
l(
|
|
1779
|
+
), (p, c) => {
|
|
1780
|
+
const y = s("el-option"), _ = s("el-select"), D = s("el-form-item"), w = s("el-form"), v = be("loading");
|
|
1781
|
+
return Ae((m(), C("div", null, [
|
|
1782
|
+
l(w, { "label-position": "top" }, {
|
|
1782
1783
|
default: u(() => [
|
|
1783
|
-
l(
|
|
1784
|
+
l(D, { label: "图表类型" }, {
|
|
1784
1785
|
default: u(() => [
|
|
1785
|
-
l(
|
|
1786
|
+
l(_, {
|
|
1786
1787
|
style: { width: "100%" },
|
|
1787
1788
|
modelValue: n.value,
|
|
1788
|
-
"onUpdate:modelValue":
|
|
1789
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => n.value = f),
|
|
1789
1790
|
onChange: g
|
|
1790
1791
|
}, {
|
|
1791
1792
|
default: u(() => [
|
|
1792
|
-
(
|
|
1793
|
-
key:
|
|
1794
|
-
label:
|
|
1795
|
-
value:
|
|
1793
|
+
(m(), C(O, null, I(r, (f, b) => l(y, {
|
|
1794
|
+
key: b,
|
|
1795
|
+
label: f.name,
|
|
1796
|
+
value: f.value
|
|
1796
1797
|
}, null, 8, ["label", "value"])), 64))
|
|
1797
1798
|
]),
|
|
1798
1799
|
_: 1
|
|
@@ -1800,19 +1801,19 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1800
1801
|
]),
|
|
1801
1802
|
_: 1
|
|
1802
1803
|
}),
|
|
1803
|
-
l(
|
|
1804
|
+
l(D, { label: "组件库" }, {
|
|
1804
1805
|
default: u(() => [
|
|
1805
|
-
l(
|
|
1806
|
+
l(_, {
|
|
1806
1807
|
style: { width: "100%" },
|
|
1807
|
-
modelValue:
|
|
1808
|
-
"onUpdate:modelValue":
|
|
1808
|
+
modelValue: h(t).activeComponents.rp_item_uuid,
|
|
1809
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => h(t).activeComponents.rp_item_uuid = f),
|
|
1809
1810
|
onChange: i
|
|
1810
1811
|
}, {
|
|
1811
1812
|
default: u(() => [
|
|
1812
|
-
(
|
|
1813
|
-
key:
|
|
1814
|
-
label:
|
|
1815
|
-
value:
|
|
1813
|
+
(m(!0), C(O, null, I(A.value, (f, b) => (m(), V(y, {
|
|
1814
|
+
key: b,
|
|
1815
|
+
label: f.rp_item_name,
|
|
1816
|
+
value: f.rp_item_uuid
|
|
1816
1817
|
}, null, 8, ["label", "value"]))), 128))
|
|
1817
1818
|
]),
|
|
1818
1819
|
_: 1
|
|
@@ -1820,27 +1821,32 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1820
1821
|
]),
|
|
1821
1822
|
_: 1
|
|
1822
1823
|
}),
|
|
1823
|
-
n.value === "report-table" && a.value.options.showColumn ? (
|
|
1824
|
-
n.value === "pie" || n.value === "bar" || n.value === "line" ? (
|
|
1825
|
-
n.value === "report-describe" ? (
|
|
1824
|
+
n.value === "report-table" && a.value.options.showColumn ? (m(), V(Re, { key: 0 })) : S("", !0),
|
|
1825
|
+
n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), V(uo, { key: 1 })) : S("", !0),
|
|
1826
|
+
n.value === "report-describe" ? (m(), V(Se, { key: 2 })) : S("", !0)
|
|
1826
1827
|
]),
|
|
1827
1828
|
_: 1
|
|
1828
1829
|
})
|
|
1829
1830
|
])), [
|
|
1830
|
-
[
|
|
1831
|
+
[v, e.value]
|
|
1831
1832
|
]);
|
|
1832
1833
|
};
|
|
1833
1834
|
}
|
|
1834
|
-
}),
|
|
1835
|
+
}), co = { key: 0 }, mo = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ce = "default", fo = /* @__PURE__ */ E({
|
|
1835
1836
|
__name: "SettingText",
|
|
1836
1837
|
setup(o) {
|
|
1837
|
-
const t =
|
|
1838
|
-
function r(
|
|
1839
|
-
const
|
|
1840
|
-
t.activeComponents.uri =
|
|
1838
|
+
const t = q(), e = Me(), a = B();
|
|
1839
|
+
function r(p) {
|
|
1840
|
+
const c = a.value.find((y) => y.rp_item_uuid === p);
|
|
1841
|
+
t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
|
|
1841
1842
|
}
|
|
1842
1843
|
async function n() {
|
|
1843
|
-
const c = await he({
|
|
1844
|
+
const p = window.windowGlobalVar.SYSTEM_FEATURE, c = await he({
|
|
1845
|
+
prod_type: window.$prodType,
|
|
1846
|
+
chart_type: "p",
|
|
1847
|
+
filter_uuid: t.filterForm.filter_uuid,
|
|
1848
|
+
cg_linkage: p ? 1 : p ? void 0 : 0
|
|
1849
|
+
});
|
|
1844
1850
|
a.value = c.data;
|
|
1845
1851
|
}
|
|
1846
1852
|
n();
|
|
@@ -1866,31 +1872,31 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1866
1872
|
"justifyJustify",
|
|
1867
1873
|
"lineHeight"
|
|
1868
1874
|
]
|
|
1869
|
-
},
|
|
1870
|
-
e.value =
|
|
1871
|
-
}, g = (
|
|
1875
|
+
}, d = { placeholder: "请输入内容..." }, i = (p) => {
|
|
1876
|
+
e.value = p;
|
|
1877
|
+
}, g = (p) => {
|
|
1872
1878
|
};
|
|
1873
|
-
return
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1876
|
-
}), (
|
|
1877
|
-
const
|
|
1878
|
-
return
|
|
1879
|
-
l(
|
|
1879
|
+
return Ke(() => {
|
|
1880
|
+
const p = e.value;
|
|
1881
|
+
p != null && p.destroy();
|
|
1882
|
+
}), (p, c) => {
|
|
1883
|
+
const y = s("el-option"), _ = s("el-select"), D = s("el-form-item"), w = s("el-form");
|
|
1884
|
+
return h(t).activeComponents.id ? (m(), C("div", co, [
|
|
1885
|
+
l(w, { "label-position": "top" }, {
|
|
1880
1886
|
default: u(() => [
|
|
1881
|
-
l(
|
|
1887
|
+
l(D, { label: "组件库" }, {
|
|
1882
1888
|
default: u(() => [
|
|
1883
|
-
l(
|
|
1889
|
+
l(_, {
|
|
1884
1890
|
style: { width: "100%" },
|
|
1885
|
-
modelValue:
|
|
1886
|
-
"onUpdate:modelValue":
|
|
1891
|
+
modelValue: h(t).activeComponents.rp_item_uuid,
|
|
1892
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => h(t).activeComponents.rp_item_uuid = v),
|
|
1887
1893
|
onChange: r
|
|
1888
1894
|
}, {
|
|
1889
1895
|
default: u(() => [
|
|
1890
|
-
(
|
|
1891
|
-
key:
|
|
1892
|
-
label:
|
|
1893
|
-
value:
|
|
1896
|
+
(m(!0), C(O, null, I(a.value, (v, f) => (m(), V(y, {
|
|
1897
|
+
key: f,
|
|
1898
|
+
label: v.rp_item_name,
|
|
1899
|
+
value: v.rp_item_uuid
|
|
1894
1900
|
}, null, 8, ["label", "value"]))), 128))
|
|
1895
1901
|
]),
|
|
1896
1902
|
_: 1
|
|
@@ -1898,21 +1904,21 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1898
1904
|
]),
|
|
1899
1905
|
_: 1
|
|
1900
1906
|
}),
|
|
1901
|
-
l(
|
|
1907
|
+
l(D, { label: "文本内容" }, {
|
|
1902
1908
|
default: u(() => [
|
|
1903
|
-
|
|
1904
|
-
l(
|
|
1909
|
+
x("div", mo, [
|
|
1910
|
+
l(h(je), {
|
|
1905
1911
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1906
1912
|
editor: e.value,
|
|
1907
1913
|
"default-config": A,
|
|
1908
1914
|
mode: ce
|
|
1909
1915
|
}, null, 8, ["editor"]),
|
|
1910
|
-
l(
|
|
1916
|
+
l(h(Ze), {
|
|
1911
1917
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1912
1918
|
onOnChange: g,
|
|
1913
|
-
modelValue:
|
|
1914
|
-
"onUpdate:modelValue":
|
|
1915
|
-
"default-config":
|
|
1919
|
+
modelValue: h(t).activeComponents.data,
|
|
1920
|
+
"onUpdate:modelValue": c[1] || (c[1] = (v) => h(t).activeComponents.data = v),
|
|
1921
|
+
"default-config": d,
|
|
1916
1922
|
mode: ce,
|
|
1917
1923
|
onOnCreated: i
|
|
1918
1924
|
}, null, 8, ["modelValue"])
|
|
@@ -1926,33 +1932,33 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1926
1932
|
])) : S("", !0);
|
|
1927
1933
|
};
|
|
1928
1934
|
}
|
|
1929
|
-
}),
|
|
1935
|
+
}), go = /* @__PURE__ */ E({
|
|
1930
1936
|
__name: "SettingFilter",
|
|
1931
1937
|
setup(o) {
|
|
1932
|
-
const t =
|
|
1938
|
+
const t = B([]), e = q();
|
|
1933
1939
|
async function a() {
|
|
1934
1940
|
const r = await Ce({ prod_type: window.$prodType });
|
|
1935
1941
|
t.value = r.data;
|
|
1936
1942
|
}
|
|
1937
1943
|
return a(), (r, n) => {
|
|
1938
|
-
const A = s("el-option"),
|
|
1939
|
-
return
|
|
1944
|
+
const A = s("el-option"), d = s("el-select"), i = s("el-form-item"), g = s("el-checkbox"), p = s("el-form");
|
|
1945
|
+
return m(), V(p, {
|
|
1940
1946
|
"label-width": "80px",
|
|
1941
1947
|
"label-position": "top"
|
|
1942
1948
|
}, {
|
|
1943
1949
|
default: u(() => [
|
|
1944
1950
|
l(i, { label: "筛选条件" }, {
|
|
1945
1951
|
default: u(() => [
|
|
1946
|
-
l(
|
|
1947
|
-
modelValue:
|
|
1948
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1949
|
-
disabled: !!
|
|
1952
|
+
l(d, {
|
|
1953
|
+
modelValue: h(e).filterForm.filter_uuid,
|
|
1954
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => h(e).filterForm.filter_uuid = c),
|
|
1955
|
+
disabled: !!h(e).filterForm.filter_uuid
|
|
1950
1956
|
}, {
|
|
1951
1957
|
default: u(() => [
|
|
1952
|
-
(
|
|
1953
|
-
key:
|
|
1954
|
-
label:
|
|
1955
|
-
value:
|
|
1958
|
+
(m(!0), C(O, null, I(t.value, (c) => (m(), V(A, {
|
|
1959
|
+
key: c.filter_uuid,
|
|
1960
|
+
label: c.filter_name,
|
|
1961
|
+
value: c.filter_uuid
|
|
1956
1962
|
}, null, 8, ["label", "value"]))), 128))
|
|
1957
1963
|
]),
|
|
1958
1964
|
_: 1
|
|
@@ -1963,8 +1969,8 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1963
1969
|
l(i, null, {
|
|
1964
1970
|
default: u(() => [
|
|
1965
1971
|
l(g, {
|
|
1966
|
-
modelValue:
|
|
1967
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1972
|
+
modelValue: h(e).filterForm.range_time,
|
|
1973
|
+
"onUpdate:modelValue": n[1] || (n[1] = (c) => h(e).filterForm.range_time = c),
|
|
1968
1974
|
"true-value": 1,
|
|
1969
1975
|
"false-value": 0,
|
|
1970
1976
|
label: "时间范围"
|
|
@@ -1977,13 +1983,13 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1977
1983
|
});
|
|
1978
1984
|
};
|
|
1979
1985
|
}
|
|
1980
|
-
}),
|
|
1986
|
+
}), vo = /* @__PURE__ */ E({
|
|
1981
1987
|
__name: "SettingTitle",
|
|
1982
1988
|
setup(o) {
|
|
1983
|
-
const t =
|
|
1989
|
+
const t = q();
|
|
1984
1990
|
return (e, a) => {
|
|
1985
|
-
const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"),
|
|
1986
|
-
return
|
|
1991
|
+
const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), d = s("el-col"), i = s("el-input-number"), g = s("el-option"), p = s("el-select"), c = s("el-row"), y = s("el-form");
|
|
1992
|
+
return m(), V(y, {
|
|
1987
1993
|
"label-width": "auto",
|
|
1988
1994
|
"label-position": "top"
|
|
1989
1995
|
}, {
|
|
@@ -1991,8 +1997,8 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1991
1997
|
l(n, { label: "名称" }, {
|
|
1992
1998
|
default: u(() => [
|
|
1993
1999
|
l(r, {
|
|
1994
|
-
modelValue:
|
|
1995
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2000
|
+
modelValue: h(t).activeComponents.data,
|
|
2001
|
+
"onUpdate:modelValue": a[0] || (a[0] = (_) => h(t).activeComponents.data = _),
|
|
1996
2002
|
placeholder: "Please input",
|
|
1997
2003
|
maxlength: "24",
|
|
1998
2004
|
"show-word-limit": ""
|
|
@@ -2002,35 +2008,35 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2002
2008
|
}),
|
|
2003
2009
|
l(n, { label: "样式" }, {
|
|
2004
2010
|
default: u(() => [
|
|
2005
|
-
l(
|
|
2011
|
+
l(c, { gutter: 20 }, {
|
|
2006
2012
|
default: u(() => [
|
|
2007
|
-
l(
|
|
2013
|
+
l(d, { span: 12 }, {
|
|
2008
2014
|
default: u(() => [
|
|
2009
2015
|
l(A, {
|
|
2010
|
-
modelValue:
|
|
2011
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2016
|
+
modelValue: h(t).activeComponents.options.color,
|
|
2017
|
+
"onUpdate:modelValue": a[1] || (a[1] = (_) => h(t).activeComponents.options.color = _),
|
|
2012
2018
|
"show-alpha": ""
|
|
2013
2019
|
}, null, 8, ["modelValue"]),
|
|
2014
|
-
a[7] || (a[7] =
|
|
2020
|
+
a[7] || (a[7] = x("p", { class: "sub-title" }, "颜色", -1))
|
|
2015
2021
|
]),
|
|
2016
2022
|
_: 1
|
|
2017
2023
|
}),
|
|
2018
|
-
l(
|
|
2024
|
+
l(d, { span: 12 }, {
|
|
2019
2025
|
default: u(() => [
|
|
2020
2026
|
l(i, {
|
|
2021
|
-
modelValue:
|
|
2022
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
2027
|
+
modelValue: h(t).activeComponents.options.size,
|
|
2028
|
+
"onUpdate:modelValue": a[2] || (a[2] = (_) => h(t).activeComponents.options.size = _),
|
|
2023
2029
|
"controls-position": "right"
|
|
2024
2030
|
}, null, 8, ["modelValue"]),
|
|
2025
|
-
a[8] || (a[8] =
|
|
2031
|
+
a[8] || (a[8] = x("p", { class: "sub-title" }, "字体大小", -1))
|
|
2026
2032
|
]),
|
|
2027
2033
|
_: 1
|
|
2028
2034
|
}),
|
|
2029
|
-
l(
|
|
2035
|
+
l(d, { span: 12 }, {
|
|
2030
2036
|
default: u(() => [
|
|
2031
|
-
l(
|
|
2032
|
-
modelValue:
|
|
2033
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
2037
|
+
l(p, {
|
|
2038
|
+
modelValue: h(t).activeComponents.options.fontWeight,
|
|
2039
|
+
"onUpdate:modelValue": a[3] || (a[3] = (_) => h(t).activeComponents.options.fontWeight = _)
|
|
2034
2040
|
}, {
|
|
2035
2041
|
default: u(() => [
|
|
2036
2042
|
l(g, {
|
|
@@ -2044,37 +2050,37 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2044
2050
|
]),
|
|
2045
2051
|
_: 1
|
|
2046
2052
|
}, 8, ["modelValue"]),
|
|
2047
|
-
a[9] || (a[9] =
|
|
2053
|
+
a[9] || (a[9] = x("p", { class: "sub-title" }, "字体粗细", -1))
|
|
2048
2054
|
]),
|
|
2049
2055
|
_: 1
|
|
2050
2056
|
}),
|
|
2051
|
-
l(
|
|
2057
|
+
l(d, { span: 12 }, {
|
|
2052
2058
|
default: u(() => [
|
|
2053
2059
|
l(i, {
|
|
2054
|
-
modelValue:
|
|
2055
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
2060
|
+
modelValue: h(t).activeComponents.options.letterSpacing,
|
|
2061
|
+
"onUpdate:modelValue": a[4] || (a[4] = (_) => h(t).activeComponents.options.letterSpacing = _),
|
|
2056
2062
|
"controls-position": "right"
|
|
2057
2063
|
}, null, 8, ["modelValue"]),
|
|
2058
|
-
a[10] || (a[10] =
|
|
2064
|
+
a[10] || (a[10] = x("p", { class: "sub-title" }, "字间距", -1))
|
|
2059
2065
|
]),
|
|
2060
2066
|
_: 1
|
|
2061
2067
|
}),
|
|
2062
|
-
l(
|
|
2068
|
+
l(d, { span: 12 }, {
|
|
2063
2069
|
default: u(() => [
|
|
2064
2070
|
l(i, {
|
|
2065
|
-
modelValue:
|
|
2066
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
2071
|
+
modelValue: h(t).activeComponents.options.textIndent,
|
|
2072
|
+
"onUpdate:modelValue": a[5] || (a[5] = (_) => h(t).activeComponents.options.textIndent = _),
|
|
2067
2073
|
"controls-position": "right"
|
|
2068
2074
|
}, null, 8, ["modelValue"]),
|
|
2069
|
-
a[11] || (a[11] =
|
|
2075
|
+
a[11] || (a[11] = x("p", { class: "sub-title" }, "首行缩进", -1))
|
|
2070
2076
|
]),
|
|
2071
2077
|
_: 1
|
|
2072
2078
|
}),
|
|
2073
|
-
l(
|
|
2079
|
+
l(d, { span: 12 }, {
|
|
2074
2080
|
default: u(() => [
|
|
2075
|
-
l(
|
|
2076
|
-
modelValue:
|
|
2077
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
2081
|
+
l(p, {
|
|
2082
|
+
modelValue: h(t).activeComponents.options.textAlign,
|
|
2083
|
+
"onUpdate:modelValue": a[6] || (a[6] = (_) => h(t).activeComponents.options.textAlign = _)
|
|
2078
2084
|
}, {
|
|
2079
2085
|
default: u(() => [
|
|
2080
2086
|
l(g, {
|
|
@@ -2092,7 +2098,7 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2092
2098
|
]),
|
|
2093
2099
|
_: 1
|
|
2094
2100
|
}, 8, ["modelValue"]),
|
|
2095
|
-
a[12] || (a[12] =
|
|
2101
|
+
a[12] || (a[12] = x("p", { class: "sub-title" }, "位置", -1))
|
|
2096
2102
|
]),
|
|
2097
2103
|
_: 1
|
|
2098
2104
|
})
|
|
@@ -2108,28 +2114,28 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2108
2114
|
};
|
|
2109
2115
|
}
|
|
2110
2116
|
});
|
|
2111
|
-
const
|
|
2117
|
+
const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */ E({
|
|
2112
2118
|
__name: "Setting",
|
|
2113
2119
|
setup(o) {
|
|
2114
2120
|
const t = {
|
|
2115
2121
|
SettingTable: Re,
|
|
2116
|
-
SettingCharts:
|
|
2122
|
+
SettingCharts: po,
|
|
2117
2123
|
SettingDescribe: Se,
|
|
2118
|
-
SettingText:
|
|
2119
|
-
SettingFilter:
|
|
2120
|
-
SettingTitle:
|
|
2121
|
-
}, e =
|
|
2124
|
+
SettingText: fo,
|
|
2125
|
+
SettingFilter: go,
|
|
2126
|
+
SettingTitle: _o
|
|
2127
|
+
}, e = q(), a = K(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? H(t, "SettingTitle") : n.includes(i) ? H(t, "SettingText") : A.includes(i) ? H(t, "SettingCharts") : i === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
|
|
2122
2128
|
return (i, g) => {
|
|
2123
|
-
const
|
|
2124
|
-
return
|
|
2129
|
+
const p = s("el-card");
|
|
2130
|
+
return m(), V(p, { class: "config-wrapper" }, {
|
|
2125
2131
|
default: u(() => [
|
|
2126
|
-
(
|
|
2132
|
+
(m(), V($(d(a.value.type))))
|
|
2127
2133
|
]),
|
|
2128
2134
|
_: 1
|
|
2129
2135
|
});
|
|
2130
2136
|
};
|
|
2131
2137
|
}
|
|
2132
|
-
}),
|
|
2138
|
+
}), wo = { class: "editor-wrapper flex items-center space-between start" }, yo = { class: "flex items-center space-between" }, ho = { class: "btn-group" }, Co = /* @__PURE__ */ E({
|
|
2133
2139
|
__name: "index",
|
|
2134
2140
|
props: /* @__PURE__ */ ve({
|
|
2135
2141
|
reportId: {
|
|
@@ -2142,7 +2148,7 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2142
2148
|
}),
|
|
2143
2149
|
emits: ["update:modelValue"],
|
|
2144
2150
|
setup(o) {
|
|
2145
|
-
const t =
|
|
2151
|
+
const t = q(), e = o, a = _e(o, "modelValue"), r = (i) => {
|
|
2146
2152
|
const g = ee(i);
|
|
2147
2153
|
g.id = F(), t.componentList.push(g);
|
|
2148
2154
|
};
|
|
@@ -2155,13 +2161,13 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2155
2161
|
se(() => {
|
|
2156
2162
|
A();
|
|
2157
2163
|
});
|
|
2158
|
-
async function
|
|
2164
|
+
async function d() {
|
|
2159
2165
|
if (!t.filterForm.filter_uuid) {
|
|
2160
|
-
|
|
2166
|
+
Xe.error("请选择筛选条件");
|
|
2161
2167
|
return;
|
|
2162
2168
|
}
|
|
2163
2169
|
try {
|
|
2164
|
-
e.reportId ? await
|
|
2170
|
+
e.reportId ? await nt({
|
|
2165
2171
|
report_uuid: e.reportId,
|
|
2166
2172
|
data: {
|
|
2167
2173
|
report_name: t.titleComponent.data,
|
|
@@ -2169,7 +2175,7 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2169
2175
|
content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
|
|
2170
2176
|
...t.filterForm
|
|
2171
2177
|
}
|
|
2172
|
-
}) : await
|
|
2178
|
+
}) : await lt({
|
|
2173
2179
|
data: {
|
|
2174
2180
|
report_name: t.titleComponent.data,
|
|
2175
2181
|
prod_type: window.$prodType,
|
|
@@ -2184,23 +2190,23 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2184
2190
|
return qe(() => {
|
|
2185
2191
|
t.clearComponents();
|
|
2186
2192
|
}), (i, g) => {
|
|
2187
|
-
const
|
|
2188
|
-
return
|
|
2189
|
-
l(
|
|
2193
|
+
const p = s("el-button"), c = s("el-button-group"), y = s("el-card");
|
|
2194
|
+
return m(), C("div", wo, [
|
|
2195
|
+
l(y, { class: "view-wrapper" }, {
|
|
2190
2196
|
default: u(() => [
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
l(
|
|
2197
|
+
x("div", yo, [
|
|
2198
|
+
x("div", ho, [
|
|
2199
|
+
l(c, null, {
|
|
2194
2200
|
default: u(() => [
|
|
2195
|
-
(
|
|
2196
|
-
key:
|
|
2201
|
+
(m(!0), C(O, null, I(h(Lt), (_) => (m(), C(O, {
|
|
2202
|
+
key: _.type
|
|
2197
2203
|
}, [
|
|
2198
|
-
|
|
2204
|
+
_ != null && _.hide ? S("", !0) : (m(), V(p, {
|
|
2199
2205
|
key: 0,
|
|
2200
|
-
onClick: (
|
|
2206
|
+
onClick: (D) => r(_)
|
|
2201
2207
|
}, {
|
|
2202
2208
|
default: u(() => [
|
|
2203
|
-
|
|
2209
|
+
L(M(_.name), 1)
|
|
2204
2210
|
]),
|
|
2205
2211
|
_: 2
|
|
2206
2212
|
}, 1032, ["onClick"]))
|
|
@@ -2209,20 +2215,20 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2209
2215
|
_: 1
|
|
2210
2216
|
})
|
|
2211
2217
|
]),
|
|
2212
|
-
l(
|
|
2218
|
+
l(c, null, {
|
|
2213
2219
|
default: u(() => [
|
|
2214
|
-
l(
|
|
2220
|
+
l(p, {
|
|
2215
2221
|
type: "primary",
|
|
2216
|
-
onClick:
|
|
2222
|
+
onClick: d
|
|
2217
2223
|
}, {
|
|
2218
2224
|
default: u(() => g[0] || (g[0] = [
|
|
2219
|
-
|
|
2225
|
+
L("保存")
|
|
2220
2226
|
])),
|
|
2221
2227
|
_: 1
|
|
2222
2228
|
}),
|
|
2223
|
-
l(
|
|
2229
|
+
l(p, { onClick: n }, {
|
|
2224
2230
|
default: u(() => g[1] || (g[1] = [
|
|
2225
|
-
|
|
2231
|
+
L("退出")
|
|
2226
2232
|
])),
|
|
2227
2233
|
_: 1
|
|
2228
2234
|
})
|
|
@@ -2230,39 +2236,40 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2230
2236
|
_: 1
|
|
2231
2237
|
})
|
|
2232
2238
|
]),
|
|
2233
|
-
l(
|
|
2239
|
+
l(lo)
|
|
2234
2240
|
]),
|
|
2235
2241
|
_: 1
|
|
2236
2242
|
}),
|
|
2237
|
-
l(
|
|
2243
|
+
l(bo)
|
|
2238
2244
|
]);
|
|
2239
2245
|
};
|
|
2240
2246
|
}
|
|
2241
|
-
}),
|
|
2247
|
+
}), xo = {
|
|
2242
2248
|
class: "table-box"
|
|
2243
|
-
},
|
|
2249
|
+
}, To = /* @__PURE__ */ E({
|
|
2244
2250
|
__name: "Report",
|
|
2245
2251
|
emits: ["click"],
|
|
2246
2252
|
setup(o, {
|
|
2247
2253
|
emit: t
|
|
2248
2254
|
}) {
|
|
2249
|
-
const e = K(() => ({
|
|
2250
|
-
prod_type: window.$prodType
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2255
|
+
const e = window.windowGlobalVar.SYSTEM_FEATURE, a = K(() => ({
|
|
2256
|
+
prod_type: window.$prodType,
|
|
2257
|
+
cg_linkage: e ? 1 : e ? void 0 : 0
|
|
2258
|
+
})), r = B(), n = t, A = (_) => {
|
|
2259
|
+
n("click", _.report_uuid, "review");
|
|
2260
|
+
}, d = (_) => {
|
|
2261
|
+
n("click", _.report_uuid, "editor");
|
|
2262
|
+
}, i = () => {
|
|
2263
|
+
n("click", "", "editor");
|
|
2264
|
+
}, g = (_) => {
|
|
2265
|
+
console.log(_);
|
|
2266
|
+
}, p = (_) => {
|
|
2260
2267
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2261
|
-
await
|
|
2262
|
-
report_uuids:
|
|
2263
|
-
}),
|
|
2268
|
+
await rt({
|
|
2269
|
+
report_uuids: _
|
|
2270
|
+
}), r.value.getTableList();
|
|
2264
2271
|
});
|
|
2265
|
-
}, c = (
|
|
2272
|
+
}, c = (_) => _.report_type === 1, y = J([
|
|
2266
2273
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2267
2274
|
{
|
|
2268
2275
|
type: "selection",
|
|
@@ -2289,61 +2296,61 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2289
2296
|
name: "操作",
|
|
2290
2297
|
align: "center",
|
|
2291
2298
|
fixed: "right",
|
|
2292
|
-
render: (
|
|
2299
|
+
render: (_) => l("div", null, [l(s("el-button"), {
|
|
2293
2300
|
link: !0,
|
|
2294
2301
|
type: "primary",
|
|
2295
2302
|
class: "custom-btn",
|
|
2296
2303
|
icon: "View",
|
|
2297
2304
|
title: "预览",
|
|
2298
|
-
onClick: () =>
|
|
2305
|
+
onClick: () => A(_.row)
|
|
2299
2306
|
}, null), l(s("el-button"), {
|
|
2300
2307
|
link: !0,
|
|
2301
2308
|
type: "primary",
|
|
2302
2309
|
class: "custom-btn",
|
|
2303
2310
|
icon: "Edit",
|
|
2304
2311
|
title: "编辑",
|
|
2305
|
-
disabled:
|
|
2306
|
-
onClick: () =>
|
|
2312
|
+
disabled: _.row.report_type === 0,
|
|
2313
|
+
onClick: () => d(_.row)
|
|
2307
2314
|
}, null), l(s("el-button"), {
|
|
2308
2315
|
link: !0,
|
|
2309
2316
|
type: "danger",
|
|
2310
2317
|
icon: "Delete",
|
|
2311
2318
|
title: "删除",
|
|
2312
|
-
disabled:
|
|
2313
|
-
onClick: () =>
|
|
2319
|
+
disabled: _.row.report_type === 0,
|
|
2320
|
+
onClick: () => p([_.row.report_uuid])
|
|
2314
2321
|
}, null)])
|
|
2315
2322
|
}
|
|
2316
2323
|
]);
|
|
2317
|
-
return (
|
|
2318
|
-
const
|
|
2319
|
-
return
|
|
2324
|
+
return (_, D) => {
|
|
2325
|
+
const w = s("el-button"), v = s("TdsTable");
|
|
2326
|
+
return m(), C("div", xo, [l(v, {
|
|
2320
2327
|
ref_key: "proTable",
|
|
2321
|
-
ref:
|
|
2322
|
-
columns:
|
|
2323
|
-
"request-api":
|
|
2324
|
-
"init-param":
|
|
2328
|
+
ref: r,
|
|
2329
|
+
columns: y,
|
|
2330
|
+
"request-api": h(at),
|
|
2331
|
+
"init-param": a.value,
|
|
2325
2332
|
"row-key": "report_uuid",
|
|
2326
|
-
options:
|
|
2333
|
+
options: _.$tableOptions(),
|
|
2327
2334
|
"search-col": 6,
|
|
2328
2335
|
selectable: c,
|
|
2329
|
-
onSelectionChange:
|
|
2336
|
+
onSelectionChange: g
|
|
2330
2337
|
}, {
|
|
2331
|
-
tableHeader: u((
|
|
2338
|
+
tableHeader: u((f) => [l(w, {
|
|
2332
2339
|
plain: "",
|
|
2333
2340
|
type: "primary",
|
|
2334
2341
|
class: "custom-btn",
|
|
2335
2342
|
icon: "Plus",
|
|
2336
|
-
onClick:
|
|
2343
|
+
onClick: i
|
|
2337
2344
|
}, {
|
|
2338
|
-
default: u(() =>
|
|
2345
|
+
default: u(() => D[0] || (D[0] = [L("新建")])),
|
|
2339
2346
|
_: 1
|
|
2340
|
-
}), l(
|
|
2347
|
+
}), l(w, {
|
|
2341
2348
|
plain: "",
|
|
2342
2349
|
type: "danger",
|
|
2343
2350
|
icon: "Delete",
|
|
2344
|
-
onClick: (
|
|
2351
|
+
onClick: (b) => p(f.selectedListIds)
|
|
2345
2352
|
}, {
|
|
2346
|
-
default: u(() =>
|
|
2353
|
+
default: u(() => D[1] || (D[1] = [L("删除")])),
|
|
2347
2354
|
_: 2
|
|
2348
2355
|
}, 1032, ["onClick"])]),
|
|
2349
2356
|
_: 1
|
|
@@ -2351,27 +2358,27 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2351
2358
|
};
|
|
2352
2359
|
}
|
|
2353
2360
|
});
|
|
2354
|
-
const
|
|
2361
|
+
const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */ E({
|
|
2355
2362
|
name: "TCReport",
|
|
2356
2363
|
__name: "index",
|
|
2357
2364
|
setup(o) {
|
|
2358
|
-
const t =
|
|
2365
|
+
const t = B(), e = B("table"), a = (r, n) => {
|
|
2359
2366
|
t.value = r, e.value = n;
|
|
2360
2367
|
};
|
|
2361
|
-
return (r, n) => (
|
|
2368
|
+
return (r, n) => (m(), C("div", Bo, [
|
|
2362
2369
|
l(He, { name: "slide-fade" }, {
|
|
2363
2370
|
default: u(() => [
|
|
2364
|
-
e.value === "table" ? (
|
|
2371
|
+
e.value === "table" ? (m(), V(To, {
|
|
2365
2372
|
key: 0,
|
|
2366
2373
|
onClick: a
|
|
2367
2374
|
})) : S("", !0),
|
|
2368
|
-
e.value === "review" ? (
|
|
2375
|
+
e.value === "review" ? (m(), V(Ue, {
|
|
2369
2376
|
key: 1,
|
|
2370
2377
|
"report-id": t.value,
|
|
2371
2378
|
modelValue: e.value,
|
|
2372
2379
|
"onUpdate:modelValue": n[0] || (n[0] = (A) => e.value = A)
|
|
2373
2380
|
}, null, 8, ["report-id", "modelValue"])) : S("", !0),
|
|
2374
|
-
e.value === "editor" ? (
|
|
2381
|
+
e.value === "editor" ? (m(), V(Co, {
|
|
2375
2382
|
key: 2,
|
|
2376
2383
|
"report-id": t.value,
|
|
2377
2384
|
modelValue: e.value,
|
|
@@ -2383,7 +2390,7 @@ const To = { style: { height: "100%" } }, Bo = /* @__PURE__ */ V({
|
|
|
2383
2390
|
]));
|
|
2384
2391
|
}
|
|
2385
2392
|
});
|
|
2386
|
-
const
|
|
2393
|
+
const W = (o, t) => {
|
|
2387
2394
|
if (o.install = (e) => {
|
|
2388
2395
|
for (const a of [o, ...Object.values(t ?? {})])
|
|
2389
2396
|
e.component(a.name, a);
|
|
@@ -2391,7 +2398,7 @@ const Z = (o, t) => {
|
|
|
2391
2398
|
for (const [e, a] of Object.entries(t))
|
|
2392
2399
|
o[e] = a;
|
|
2393
2400
|
return o;
|
|
2394
|
-
}, Do =
|
|
2401
|
+
}, Do = W(ko), Vo = [
|
|
2395
2402
|
{
|
|
2396
2403
|
label: "正文",
|
|
2397
2404
|
value: "p"
|
|
@@ -2416,7 +2423,7 @@ const Z = (o, t) => {
|
|
|
2416
2423
|
label: "描述列表",
|
|
2417
2424
|
value: "report-describe"
|
|
2418
2425
|
}
|
|
2419
|
-
],
|
|
2426
|
+
], Eo = [
|
|
2420
2427
|
{
|
|
2421
2428
|
value: "p",
|
|
2422
2429
|
fields: ["table_key_relation"]
|
|
@@ -2443,51 +2450,52 @@ const Z = (o, t) => {
|
|
|
2443
2450
|
}
|
|
2444
2451
|
], Lo = {
|
|
2445
2452
|
class: "table-box"
|
|
2446
|
-
},
|
|
2453
|
+
}, Uo = /* @__PURE__ */ E({
|
|
2447
2454
|
name: "TCModule",
|
|
2448
2455
|
__name: "index",
|
|
2449
2456
|
setup(o) {
|
|
2450
|
-
const t =
|
|
2451
|
-
prod_type: window.$prodType
|
|
2457
|
+
const t = B(), e = B(), a = B({}), r = B(""), n = window.windowGlobalVar.SYSTEM_FEATURE, A = J({
|
|
2458
|
+
prod_type: window.$prodType,
|
|
2459
|
+
cg_linkage: n ? 1 : n ? void 0 : 0
|
|
2452
2460
|
});
|
|
2453
|
-
function
|
|
2461
|
+
function d(w) {
|
|
2454
2462
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2455
|
-
await
|
|
2456
|
-
rp_item_uuids:
|
|
2463
|
+
await st({
|
|
2464
|
+
rp_item_uuids: w
|
|
2457
2465
|
}), t.value.getTableList();
|
|
2458
2466
|
});
|
|
2459
2467
|
}
|
|
2460
|
-
function
|
|
2461
|
-
a.value =
|
|
2468
|
+
function i(w) {
|
|
2469
|
+
a.value = w ? Object.assign({}, w) : {
|
|
2462
2470
|
table_key_relation: [{
|
|
2463
2471
|
name: "",
|
|
2464
2472
|
key: "",
|
|
2465
2473
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2466
2474
|
}]
|
|
2467
|
-
}, r.value =
|
|
2475
|
+
}, r.value = w ? "编辑自定义组件" : "新增自定义组件", e.value.open();
|
|
2468
2476
|
}
|
|
2469
|
-
async function
|
|
2470
|
-
const
|
|
2471
|
-
|
|
2472
|
-
rp_item_uuid:
|
|
2473
|
-
data:
|
|
2474
|
-
}) : (
|
|
2475
|
-
data:
|
|
2477
|
+
async function g(w) {
|
|
2478
|
+
const v = Object.assign({}, w);
|
|
2479
|
+
v.chart_type !== "report-table" && v.chart_type !== "report-describe" && delete v.table_key_relation, v.chart_type !== "p" && (v.p_text = ""), v.rp_item_uuid ? await ut({
|
|
2480
|
+
rp_item_uuid: v.rp_item_uuid,
|
|
2481
|
+
data: v
|
|
2482
|
+
}) : (v.prod_type = window.$prodType, await it({
|
|
2483
|
+
data: v
|
|
2476
2484
|
})), t.value.getTableList(), e.value.close();
|
|
2477
2485
|
}
|
|
2478
|
-
const
|
|
2479
|
-
a.value.table_key_relation.splice(
|
|
2486
|
+
const p = (w) => {
|
|
2487
|
+
a.value.table_key_relation.splice(w, 1);
|
|
2480
2488
|
}, c = () => {
|
|
2481
2489
|
a.value.table_key_relation.push({
|
|
2482
2490
|
name: "",
|
|
2483
2491
|
key: "",
|
|
2484
2492
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2485
2493
|
});
|
|
2486
|
-
},
|
|
2487
|
-
delete
|
|
2488
|
-
|
|
2489
|
-
}),
|
|
2490
|
-
},
|
|
2494
|
+
}, y = (w, v, f) => {
|
|
2495
|
+
delete w.message, v.forEach((b) => {
|
|
2496
|
+
b.name ? b.key || f(new Error("请填写表头名称和KEY")) : f(new Error("请填写表头名称和KEY"));
|
|
2497
|
+
}), f();
|
|
2498
|
+
}, _ = (w) => w.item_type === 1, D = J([{
|
|
2491
2499
|
type: "selection",
|
|
2492
2500
|
width: 60,
|
|
2493
2501
|
field: "rp_item_uuid",
|
|
@@ -2520,10 +2528,10 @@ const Z = (o, t) => {
|
|
|
2520
2528
|
}, {
|
|
2521
2529
|
field: "chart_type",
|
|
2522
2530
|
name: "组件类型",
|
|
2523
|
-
enum:
|
|
2531
|
+
enum: Vo,
|
|
2524
2532
|
show: {
|
|
2525
2533
|
type: "select",
|
|
2526
|
-
display:
|
|
2534
|
+
display: Eo
|
|
2527
2535
|
},
|
|
2528
2536
|
rules: [{
|
|
2529
2537
|
required: !0
|
|
@@ -2543,7 +2551,7 @@ const Z = (o, t) => {
|
|
|
2543
2551
|
hide: !0,
|
|
2544
2552
|
show: {
|
|
2545
2553
|
render: () => {
|
|
2546
|
-
var
|
|
2554
|
+
var w;
|
|
2547
2555
|
return l("div", {
|
|
2548
2556
|
style: "width:80%"
|
|
2549
2557
|
}, [l("div", {
|
|
@@ -2551,18 +2559,18 @@ const Z = (o, t) => {
|
|
|
2551
2559
|
style: "gap:15px;"
|
|
2552
2560
|
}, [l("span", {
|
|
2553
2561
|
style: "width:50%"
|
|
2554
|
-
}, [
|
|
2562
|
+
}, [L("表头名称")]), l("span", {
|
|
2555
2563
|
style: "width:50%"
|
|
2556
|
-
}, [
|
|
2564
|
+
}, [L("KEY")])]), (w = a.value.table_key_relation) == null ? void 0 : w.map((v, f) => l("div", {
|
|
2557
2565
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2558
2566
|
style: "gap:15px;margin-bottom:10px;",
|
|
2559
|
-
key:
|
|
2567
|
+
key: f
|
|
2560
2568
|
}, [l(s("el-form-item"), {
|
|
2561
2569
|
style: "width:50%"
|
|
2562
2570
|
}, {
|
|
2563
2571
|
default: () => [l(s("el-input"), {
|
|
2564
|
-
modelValue:
|
|
2565
|
-
"onUpdate:modelValue": (
|
|
2572
|
+
modelValue: v.name,
|
|
2573
|
+
"onUpdate:modelValue": (b) => v.name = b,
|
|
2566
2574
|
class: "",
|
|
2567
2575
|
placeholder: "表头"
|
|
2568
2576
|
}, null)]
|
|
@@ -2570,23 +2578,23 @@ const Z = (o, t) => {
|
|
|
2570
2578
|
style: "width:50%"
|
|
2571
2579
|
}, {
|
|
2572
2580
|
default: () => [l(s("el-input"), {
|
|
2573
|
-
modelValue:
|
|
2574
|
-
"onUpdate:modelValue": (
|
|
2581
|
+
modelValue: v.key,
|
|
2582
|
+
"onUpdate:modelValue": (b) => v.key = b,
|
|
2575
2583
|
class: "",
|
|
2576
2584
|
placeholder: "KEY"
|
|
2577
2585
|
}, null)]
|
|
2578
2586
|
}), a.value.table_key_relation.length > 1 && l("div", {
|
|
2579
2587
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
2580
2588
|
}, [l(s("el-icon"), {
|
|
2581
|
-
onClick: () =>
|
|
2589
|
+
onClick: () => p(f)
|
|
2582
2590
|
}, {
|
|
2583
|
-
default: () => [l(
|
|
2591
|
+
default: () => [l(We, null, null)]
|
|
2584
2592
|
})])])), l(s("el-button"), {
|
|
2585
2593
|
class: "report-btn ",
|
|
2586
2594
|
icon: "Plus",
|
|
2587
2595
|
onClick: () => c()
|
|
2588
2596
|
}, {
|
|
2589
|
-
default: () => [
|
|
2597
|
+
default: () => [L("新增表头与KEY")]
|
|
2590
2598
|
})]);
|
|
2591
2599
|
}
|
|
2592
2600
|
},
|
|
@@ -2595,7 +2603,7 @@ const Z = (o, t) => {
|
|
|
2595
2603
|
},
|
|
2596
2604
|
rules: [{
|
|
2597
2605
|
required: !0,
|
|
2598
|
-
validator:
|
|
2606
|
+
validator: y,
|
|
2599
2607
|
trigger: "blur"
|
|
2600
2608
|
}]
|
|
2601
2609
|
}, {
|
|
@@ -2621,116 +2629,116 @@ const Z = (o, t) => {
|
|
|
2621
2629
|
name: "操作",
|
|
2622
2630
|
align: "center",
|
|
2623
2631
|
fixed: "right",
|
|
2624
|
-
render: (
|
|
2632
|
+
render: (w) => l("div", null, [l(s("el-button"), {
|
|
2625
2633
|
link: !0,
|
|
2626
2634
|
type: "primary",
|
|
2627
2635
|
class: "custom-btn",
|
|
2628
2636
|
icon: "Edit",
|
|
2629
2637
|
title: "编辑",
|
|
2630
|
-
disabled:
|
|
2631
|
-
onClick: () =>
|
|
2638
|
+
disabled: w.row.item_type === 0,
|
|
2639
|
+
onClick: () => i(w.row)
|
|
2632
2640
|
}, null), l(s("el-button"), {
|
|
2633
2641
|
link: !0,
|
|
2634
2642
|
type: "danger",
|
|
2635
2643
|
icon: "Delete",
|
|
2636
2644
|
title: "删除",
|
|
2637
|
-
disabled:
|
|
2638
|
-
onClick: () =>
|
|
2645
|
+
disabled: w.row.item_type === 0,
|
|
2646
|
+
onClick: () => d([w.row.rp_item_uuid])
|
|
2639
2647
|
}, null)])
|
|
2640
2648
|
}]);
|
|
2641
|
-
return (
|
|
2642
|
-
const
|
|
2643
|
-
return
|
|
2649
|
+
return (w, v) => {
|
|
2650
|
+
const f = s("el-button"), b = s("TdsTable"), Q = s("TdsForm");
|
|
2651
|
+
return m(), C("div", Lo, [l(b, {
|
|
2644
2652
|
ref_key: "refTdsTable",
|
|
2645
2653
|
ref: t,
|
|
2646
|
-
columns:
|
|
2647
|
-
"request-api":
|
|
2648
|
-
"init-param":
|
|
2654
|
+
columns: D,
|
|
2655
|
+
"request-api": h(At),
|
|
2656
|
+
"init-param": A,
|
|
2649
2657
|
"row-key": "rp_item_uuid",
|
|
2650
|
-
options:
|
|
2651
|
-
selectable:
|
|
2658
|
+
options: w.$tableOptions(),
|
|
2659
|
+
selectable: _,
|
|
2652
2660
|
"search-col": 6
|
|
2653
2661
|
}, {
|
|
2654
|
-
tableHeader: u((
|
|
2662
|
+
tableHeader: u((k) => [l(f, {
|
|
2655
2663
|
plain: "",
|
|
2656
2664
|
type: "primary",
|
|
2657
2665
|
class: "custom-btn",
|
|
2658
2666
|
icon: "Plus",
|
|
2659
|
-
onClick:
|
|
2667
|
+
onClick: v[0] || (v[0] = (N) => i())
|
|
2660
2668
|
}, {
|
|
2661
|
-
default: u(() =>
|
|
2669
|
+
default: u(() => v[1] || (v[1] = [L("新建")])),
|
|
2662
2670
|
_: 1
|
|
2663
|
-
}), l(
|
|
2671
|
+
}), l(f, {
|
|
2664
2672
|
plain: "",
|
|
2665
2673
|
type: "danger",
|
|
2666
2674
|
icon: "Delete",
|
|
2667
|
-
onClick: (
|
|
2675
|
+
onClick: (N) => d(k.selectedListIds)
|
|
2668
2676
|
}, {
|
|
2669
|
-
default: u(() =>
|
|
2677
|
+
default: u(() => v[2] || (v[2] = [L("删除")])),
|
|
2670
2678
|
_: 2
|
|
2671
2679
|
}, 1032, ["onClick"])]),
|
|
2672
2680
|
_: 1
|
|
2673
|
-
}, 8, ["columns", "request-api", "init-param", "options"]), l(
|
|
2681
|
+
}, 8, ["columns", "request-api", "init-param", "options"]), l(Q, we({
|
|
2674
2682
|
ref_key: "refTdsForm",
|
|
2675
2683
|
ref: e
|
|
2676
|
-
},
|
|
2684
|
+
}, w.$formBindProps({
|
|
2677
2685
|
title: r.value,
|
|
2678
2686
|
form: a.value,
|
|
2679
|
-
columns:
|
|
2687
|
+
columns: D
|
|
2680
2688
|
}), {
|
|
2681
|
-
onSubmit:
|
|
2689
|
+
onSubmit: g
|
|
2682
2690
|
}), null, 16)]);
|
|
2683
2691
|
};
|
|
2684
2692
|
}
|
|
2685
2693
|
});
|
|
2686
|
-
const
|
|
2694
|
+
const Ro = W(Uo), So = {
|
|
2687
2695
|
class: "table-box"
|
|
2688
2696
|
};
|
|
2689
2697
|
function me(o) {
|
|
2690
2698
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
2691
2699
|
}
|
|
2692
|
-
const
|
|
2700
|
+
const Oo = /* @__PURE__ */ E({
|
|
2693
2701
|
name: "TCSubscribe",
|
|
2694
2702
|
__name: "index",
|
|
2695
2703
|
setup(o) {
|
|
2696
|
-
const t =
|
|
2704
|
+
const t = B(), e = B(), {
|
|
2697
2705
|
$t: a,
|
|
2698
2706
|
$messageBox: r
|
|
2699
|
-
} = window, n =
|
|
2707
|
+
} = window, n = B(""), A = B({
|
|
2700
2708
|
receiver: []
|
|
2701
2709
|
});
|
|
2702
|
-
function
|
|
2703
|
-
r(
|
|
2704
|
-
await
|
|
2705
|
-
subscript_uuids:
|
|
2710
|
+
function d(f) {
|
|
2711
|
+
r(f, "subscript_name", a("button.delete"), "error").then(async () => {
|
|
2712
|
+
await mt({
|
|
2713
|
+
subscript_uuids: f.map((b) => b.subscript_uuid)
|
|
2706
2714
|
}), t.value.getTableList();
|
|
2707
2715
|
});
|
|
2708
2716
|
}
|
|
2709
2717
|
function i() {
|
|
2710
|
-
|
|
2718
|
+
d(t.value.selectedList);
|
|
2711
2719
|
}
|
|
2712
|
-
const g = (
|
|
2713
|
-
A.value =
|
|
2720
|
+
const g = (f) => {
|
|
2721
|
+
A.value = f ? Object.assign({}, f) : {
|
|
2714
2722
|
receiver: []
|
|
2715
|
-
}, n.value =
|
|
2723
|
+
}, n.value = f ? "编辑报表订阅" : "新增报表订阅", e.value.open();
|
|
2716
2724
|
};
|
|
2717
|
-
async function
|
|
2718
|
-
const
|
|
2719
|
-
|
|
2720
|
-
subscript_uuid:
|
|
2721
|
-
data:
|
|
2725
|
+
async function p(f) {
|
|
2726
|
+
const b = Object.assign({}, f);
|
|
2727
|
+
b.subscript_uuid ? await ct({
|
|
2728
|
+
subscript_uuid: b.subscript_uuid,
|
|
2729
|
+
data: b
|
|
2722
2730
|
}) : await pt({
|
|
2723
|
-
data:
|
|
2731
|
+
data: b
|
|
2724
2732
|
}), t.value.getTableList(), e.value.close();
|
|
2725
2733
|
}
|
|
2726
|
-
function f
|
|
2727
|
-
if (!
|
|
2734
|
+
function c(f, b, Q) {
|
|
2735
|
+
if (!b || b.length === 0)
|
|
2728
2736
|
return Q(new Error("请输入收件人"));
|
|
2729
2737
|
Q();
|
|
2730
2738
|
}
|
|
2731
|
-
const
|
|
2732
|
-
|
|
2733
|
-
},
|
|
2739
|
+
const y = (f, b) => {
|
|
2740
|
+
f.target.value && A.value[b].push(f.target.value);
|
|
2741
|
+
}, _ = [{
|
|
2734
2742
|
label: "周一",
|
|
2735
2743
|
value: 1
|
|
2736
2744
|
}, {
|
|
@@ -2751,7 +2759,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2751
2759
|
}, {
|
|
2752
2760
|
label: "周日",
|
|
2753
2761
|
value: 0
|
|
2754
|
-
}],
|
|
2762
|
+
}], D = [{
|
|
2755
2763
|
label: "每天",
|
|
2756
2764
|
value: 0
|
|
2757
2765
|
}, {
|
|
@@ -2760,7 +2768,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2760
2768
|
}, {
|
|
2761
2769
|
label: "每月",
|
|
2762
2770
|
value: 2
|
|
2763
|
-
}],
|
|
2771
|
+
}], w = [], v = J([{
|
|
2764
2772
|
type: "selection",
|
|
2765
2773
|
align: "center",
|
|
2766
2774
|
field: "subscript_uuid",
|
|
@@ -2787,7 +2795,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2787
2795
|
}, {
|
|
2788
2796
|
field: "report_uuid",
|
|
2789
2797
|
name: "报表类型",
|
|
2790
|
-
enum: () =>
|
|
2798
|
+
enum: () => gt({
|
|
2791
2799
|
prod_type: window.$prodType
|
|
2792
2800
|
}),
|
|
2793
2801
|
fieldNames: {
|
|
@@ -2804,7 +2812,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2804
2812
|
}, {
|
|
2805
2813
|
field: "format",
|
|
2806
2814
|
name: "报表格式",
|
|
2807
|
-
enum:
|
|
2815
|
+
enum: vt,
|
|
2808
2816
|
fieldNames: {
|
|
2809
2817
|
label: "name",
|
|
2810
2818
|
value: "id"
|
|
@@ -2819,7 +2827,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2819
2827
|
}, {
|
|
2820
2828
|
field: "select_data",
|
|
2821
2829
|
name: "资产/任务",
|
|
2822
|
-
enum:
|
|
2830
|
+
enum: _t,
|
|
2823
2831
|
fieldNames: {
|
|
2824
2832
|
label: "label",
|
|
2825
2833
|
value: "data"
|
|
@@ -2838,50 +2846,50 @@ const So = /* @__PURE__ */ V({
|
|
|
2838
2846
|
key: window.$prodType
|
|
2839
2847
|
}
|
|
2840
2848
|
},
|
|
2841
|
-
render: (
|
|
2849
|
+
render: (f) => t.value.enumMap.get("dbsId").filter((k) => f.row.dbsId.indexOf(k.id) > -1).map((k) => l(s("el-tag"), {
|
|
2842
2850
|
class: "mr-10px",
|
|
2843
2851
|
type: "info"
|
|
2844
2852
|
}, {
|
|
2845
|
-
default: () => [
|
|
2853
|
+
default: () => [k.policy_name]
|
|
2846
2854
|
}))
|
|
2847
2855
|
}, {
|
|
2848
2856
|
field: "receiver_email",
|
|
2849
2857
|
name: "收件人",
|
|
2850
2858
|
width: 300,
|
|
2851
|
-
render: (
|
|
2859
|
+
render: (f) => l(O, null, [f.row.receiver_email.map((b) => l(s("el-tag"), {
|
|
2852
2860
|
class: "mr-10px",
|
|
2853
2861
|
type: "info"
|
|
2854
|
-
}, me(
|
|
2855
|
-
default: () => [
|
|
2862
|
+
}, me(b) ? b : {
|
|
2863
|
+
default: () => [b]
|
|
2856
2864
|
}))]),
|
|
2857
2865
|
show: {
|
|
2858
2866
|
type: "input",
|
|
2859
2867
|
render: () => {
|
|
2860
|
-
let
|
|
2868
|
+
let f;
|
|
2861
2869
|
return l(O, null, [l(s("el-select"), {
|
|
2862
2870
|
class: "right-select",
|
|
2863
2871
|
modelValue: A.value.receiver_email,
|
|
2864
|
-
"onUpdate:modelValue": (
|
|
2872
|
+
"onUpdate:modelValue": (b) => A.value.receiver_email = b,
|
|
2865
2873
|
placeholder: "请输入",
|
|
2866
2874
|
multiple: !0,
|
|
2867
2875
|
filterable: !0,
|
|
2868
2876
|
"allow-create": !0,
|
|
2869
2877
|
"default-first-option": !0,
|
|
2870
2878
|
"reserve-keyword": !1,
|
|
2871
|
-
onBlur: (
|
|
2872
|
-
}, me(
|
|
2873
|
-
label:
|
|
2874
|
-
value:
|
|
2875
|
-
}, null))) ?
|
|
2876
|
-
default: () => [
|
|
2879
|
+
onBlur: (b) => y(b, "receiver_email")
|
|
2880
|
+
}, me(f = w.map((b) => l(s("el-option"), {
|
|
2881
|
+
label: b.label,
|
|
2882
|
+
value: b.value
|
|
2883
|
+
}, null))) ? f : {
|
|
2884
|
+
default: () => [f]
|
|
2877
2885
|
}), l("p", {
|
|
2878
2886
|
style: "font-size:12px;color:#909399;line-height:20px"
|
|
2879
|
-
}, [
|
|
2887
|
+
}, [L("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
|
|
2880
2888
|
}
|
|
2881
2889
|
},
|
|
2882
2890
|
rules: [{
|
|
2883
2891
|
required: !0,
|
|
2884
|
-
validator:
|
|
2892
|
+
validator: c,
|
|
2885
2893
|
type: "any",
|
|
2886
2894
|
trigger: "change"
|
|
2887
2895
|
}]
|
|
@@ -2892,7 +2900,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2892
2900
|
field: "loop_type",
|
|
2893
2901
|
name: "发送周期",
|
|
2894
2902
|
hide: !0,
|
|
2895
|
-
enum:
|
|
2903
|
+
enum: D,
|
|
2896
2904
|
show: {
|
|
2897
2905
|
dataType: "number",
|
|
2898
2906
|
type: "select",
|
|
@@ -2915,9 +2923,9 @@ const So = /* @__PURE__ */ V({
|
|
|
2915
2923
|
field: "day",
|
|
2916
2924
|
name: "日",
|
|
2917
2925
|
hide: !0,
|
|
2918
|
-
enum: [...Array(28)].map((
|
|
2919
|
-
label:
|
|
2920
|
-
value:
|
|
2926
|
+
enum: [...Array(28)].map((f, b) => ({
|
|
2927
|
+
label: b + 1 + "",
|
|
2928
|
+
value: b + 1
|
|
2921
2929
|
})),
|
|
2922
2930
|
show: {
|
|
2923
2931
|
type: "select"
|
|
@@ -2930,7 +2938,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2930
2938
|
field: "weekday",
|
|
2931
2939
|
name: "星期",
|
|
2932
2940
|
hide: !0,
|
|
2933
|
-
enum:
|
|
2941
|
+
enum: _,
|
|
2934
2942
|
show: {
|
|
2935
2943
|
type: "select"
|
|
2936
2944
|
},
|
|
@@ -2942,9 +2950,9 @@ const So = /* @__PURE__ */ V({
|
|
|
2942
2950
|
field: "hour",
|
|
2943
2951
|
name: "小时",
|
|
2944
2952
|
hide: !0,
|
|
2945
|
-
enum: [...Array(24)].map((
|
|
2946
|
-
label:
|
|
2947
|
-
value:
|
|
2953
|
+
enum: [...Array(24)].map((f, b) => ({
|
|
2954
|
+
label: b + "时",
|
|
2955
|
+
value: b
|
|
2948
2956
|
})),
|
|
2949
2957
|
show: {
|
|
2950
2958
|
type: "select"
|
|
@@ -2957,9 +2965,9 @@ const So = /* @__PURE__ */ V({
|
|
|
2957
2965
|
field: "minute",
|
|
2958
2966
|
name: "分钟",
|
|
2959
2967
|
hide: !0,
|
|
2960
|
-
enum: [...Array(60)].map((
|
|
2961
|
-
label:
|
|
2962
|
-
value:
|
|
2968
|
+
enum: [...Array(60)].map((f, b) => ({
|
|
2969
|
+
label: b + "分",
|
|
2970
|
+
value: b
|
|
2963
2971
|
})),
|
|
2964
2972
|
show: {
|
|
2965
2973
|
type: "select"
|
|
@@ -2971,15 +2979,15 @@ const So = /* @__PURE__ */ V({
|
|
|
2971
2979
|
}, {
|
|
2972
2980
|
field: "enable_status",
|
|
2973
2981
|
name: "启用状态",
|
|
2974
|
-
render: (
|
|
2975
|
-
modelValue:
|
|
2976
|
-
"onUpdate:modelValue": (
|
|
2982
|
+
render: (f) => l(s("el-switch"), {
|
|
2983
|
+
modelValue: f.row.enable_status,
|
|
2984
|
+
"onUpdate:modelValue": (b) => f.row.enable_status = b,
|
|
2977
2985
|
"active-value": 1,
|
|
2978
2986
|
"inactive-value": 0,
|
|
2979
|
-
onChange: (
|
|
2980
|
-
|
|
2981
|
-
subscript_uuid:
|
|
2982
|
-
enable_status:
|
|
2987
|
+
onChange: (b) => {
|
|
2988
|
+
ft({
|
|
2989
|
+
subscript_uuid: f.row.subscript_uuid,
|
|
2990
|
+
enable_status: b
|
|
2983
2991
|
}), t.value.getTableList();
|
|
2984
2992
|
}
|
|
2985
2993
|
}, null)
|
|
@@ -2989,140 +2997,182 @@ const So = /* @__PURE__ */ V({
|
|
|
2989
2997
|
fixed: "right",
|
|
2990
2998
|
cardHide: !0,
|
|
2991
2999
|
width: 120,
|
|
2992
|
-
render: (
|
|
3000
|
+
render: (f) => l("div", null, [l(s("el-button"), {
|
|
2993
3001
|
link: !0,
|
|
2994
3002
|
type: "primary",
|
|
2995
3003
|
icon: "Edit",
|
|
2996
3004
|
title: a("button.edit"),
|
|
2997
3005
|
class: "custom-btn",
|
|
2998
|
-
onClick: () => g(
|
|
3006
|
+
onClick: () => g(f.row)
|
|
2999
3007
|
}, null), l(s("el-button"), {
|
|
3000
3008
|
link: !0,
|
|
3001
3009
|
type: "danger",
|
|
3002
3010
|
icon: "Delete",
|
|
3003
3011
|
title: a("button.delete"),
|
|
3004
|
-
onClick: () =>
|
|
3012
|
+
onClick: () => d([f.row])
|
|
3005
3013
|
}, null)])
|
|
3006
3014
|
}]);
|
|
3007
|
-
return (
|
|
3015
|
+
return (f, b) => {
|
|
3008
3016
|
const Q = s("el-button");
|
|
3009
|
-
return
|
|
3017
|
+
return m(), C("div", So, [l(h(ye), {
|
|
3010
3018
|
ref_key: "refTdsTable",
|
|
3011
3019
|
ref: t,
|
|
3012
3020
|
"row-key": "subscript_uuid",
|
|
3013
|
-
"request-api":
|
|
3014
|
-
columns:
|
|
3015
|
-
options:
|
|
3021
|
+
"request-api": h(dt),
|
|
3022
|
+
columns: v,
|
|
3023
|
+
options: f.$tableOptions()
|
|
3016
3024
|
}, {
|
|
3017
|
-
tableHeader: u((
|
|
3025
|
+
tableHeader: u((k) => [l(Q, {
|
|
3018
3026
|
type: "primary",
|
|
3019
3027
|
icon: "Plus",
|
|
3020
3028
|
class: "custom-btn",
|
|
3021
3029
|
plain: "",
|
|
3022
|
-
onClick:
|
|
3030
|
+
onClick: b[0] || (b[0] = (N) => g())
|
|
3023
3031
|
}, {
|
|
3024
|
-
default: u(() => [
|
|
3032
|
+
default: u(() => [L(M(h(a)("button.add")), 1)]),
|
|
3025
3033
|
_: 1
|
|
3026
3034
|
}), l(Q, {
|
|
3027
3035
|
type: "danger",
|
|
3028
3036
|
icon: "Delete",
|
|
3029
3037
|
plain: "",
|
|
3030
3038
|
onClick: i,
|
|
3031
|
-
disabled: !
|
|
3039
|
+
disabled: !k.selectedListIds.length
|
|
3032
3040
|
}, {
|
|
3033
|
-
default: u(() => [
|
|
3041
|
+
default: u(() => [L(M(h(a)("button.delete")), 1)]),
|
|
3034
3042
|
_: 2
|
|
3035
3043
|
}, 1032, ["disabled"])]),
|
|
3036
3044
|
_: 1
|
|
3037
|
-
}, 8, ["request-api", "columns", "options"]), l(
|
|
3045
|
+
}, 8, ["request-api", "columns", "options"]), l(h($e), we({
|
|
3038
3046
|
ref_key: "refTdsForm",
|
|
3039
3047
|
ref: e
|
|
3040
|
-
},
|
|
3048
|
+
}, f.$formBindProps({
|
|
3041
3049
|
title: n.value,
|
|
3042
3050
|
form: A.value,
|
|
3043
|
-
columns:
|
|
3051
|
+
columns: v
|
|
3044
3052
|
}), {
|
|
3045
|
-
onSubmit:
|
|
3053
|
+
onSubmit: p
|
|
3046
3054
|
}), null, 16)]);
|
|
3047
3055
|
};
|
|
3048
3056
|
}
|
|
3049
|
-
}),
|
|
3057
|
+
}), Po = W(Oo), Qo = {
|
|
3050
3058
|
class: "main-wrapper"
|
|
3051
|
-
},
|
|
3059
|
+
}, Io = {
|
|
3060
|
+
class: "el-dropdown-link"
|
|
3061
|
+
}, Fo = /* @__PURE__ */ E({
|
|
3052
3062
|
name: "TCBuildin",
|
|
3053
3063
|
__name: "index",
|
|
3054
3064
|
setup(o) {
|
|
3055
|
-
const t =
|
|
3056
|
-
async function
|
|
3057
|
-
const
|
|
3058
|
-
prod_type: window.$prodType
|
|
3065
|
+
const t = B({}), e = B("1"), a = B("");
|
|
3066
|
+
async function r() {
|
|
3067
|
+
const d = window.windowGlobalVar.SYSTEM_FEATURE, i = await bt({
|
|
3068
|
+
prod_type: window.$prodType,
|
|
3069
|
+
cg_linkage: d ? 1 : d ? void 0 : 0
|
|
3059
3070
|
});
|
|
3060
|
-
|
|
3071
|
+
e.value = i.data[0].report_uuid;
|
|
3072
|
+
const g = {};
|
|
3073
|
+
i.data.forEach((p) => {
|
|
3074
|
+
const c = p.report_category || p.report_uuid;
|
|
3075
|
+
g[c] || (g[c] = []), g[c].push(p);
|
|
3076
|
+
}), t.value = g;
|
|
3061
3077
|
}
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3078
|
+
const n = (d, i) => {
|
|
3079
|
+
e.value = i, a.value = d;
|
|
3080
|
+
}, A = () => {
|
|
3081
|
+
a.value = "";
|
|
3082
|
+
};
|
|
3083
|
+
return r(), (d, i) => {
|
|
3084
|
+
const g = s("arrow-down"), p = s("el-icon"), c = s("el-dropdown-item"), y = s("el-dropdown-menu"), _ = s("el-dropdown"), D = s("el-tab-pane"), w = s("el-tabs");
|
|
3085
|
+
return m(), C("div", Qo, [l(w, {
|
|
3065
3086
|
modelValue: e.value,
|
|
3066
|
-
"onUpdate:modelValue":
|
|
3087
|
+
"onUpdate:modelValue": i[0] || (i[0] = (v) => e.value = v),
|
|
3067
3088
|
class: "report-tabs",
|
|
3068
3089
|
style: {
|
|
3069
3090
|
height: "100%"
|
|
3070
|
-
}
|
|
3091
|
+
},
|
|
3092
|
+
onTabClick: A
|
|
3071
3093
|
}, {
|
|
3072
|
-
default: u(() => [(
|
|
3094
|
+
default: u(() => [(m(!0), C(O, null, I(t.value, (v, f) => (m(), V(D, {
|
|
3073
3095
|
style: {
|
|
3074
3096
|
height: "100%"
|
|
3075
3097
|
},
|
|
3076
|
-
key:
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
default: u(() => [e.value === i.report_uuid ? (d(), L(Ue, {
|
|
3098
|
+
key: f,
|
|
3099
|
+
name: v[0].report_uuid
|
|
3100
|
+
}, ze({
|
|
3101
|
+
default: u(() => [e.value === v[0].report_uuid ? (m(), V(Ue, {
|
|
3081
3102
|
key: 0,
|
|
3082
|
-
"report-id": e.value
|
|
3103
|
+
"report-id": a.value || e.value
|
|
3083
3104
|
}, null, 8, ["report-id"])) : S("", !0)]),
|
|
3084
3105
|
_: 2
|
|
3085
|
-
},
|
|
3106
|
+
}, [v.length === 1 ? {
|
|
3107
|
+
name: "label",
|
|
3108
|
+
fn: u(() => [L(M(v[0].report_name), 1)]),
|
|
3109
|
+
key: "0"
|
|
3110
|
+
} : {
|
|
3111
|
+
name: "label",
|
|
3112
|
+
fn: u(() => [l(_, {
|
|
3113
|
+
onCommand: (b) => n(b, v[0].report_uuid)
|
|
3114
|
+
}, {
|
|
3115
|
+
dropdown: u(() => [l(y, null, {
|
|
3116
|
+
default: u(() => [(m(!0), C(O, null, I(v, (b) => (m(), V(c, {
|
|
3117
|
+
key: b.report_uuid,
|
|
3118
|
+
class: "mt-10px",
|
|
3119
|
+
command: b.report_uuid
|
|
3120
|
+
}, {
|
|
3121
|
+
default: u(() => [L(M(b.report_name), 1)]),
|
|
3122
|
+
_: 2
|
|
3123
|
+
}, 1032, ["command"]))), 128))]),
|
|
3124
|
+
_: 2
|
|
3125
|
+
}, 1024)]),
|
|
3126
|
+
default: u(() => [x("span", Io, [L(M(f) + " ", 1), l(p, {
|
|
3127
|
+
class: "el-icon--right"
|
|
3128
|
+
}, {
|
|
3129
|
+
default: u(() => [l(g)]),
|
|
3130
|
+
_: 1
|
|
3131
|
+
})])]),
|
|
3132
|
+
_: 2
|
|
3133
|
+
}, 1032, ["onCommand"])]),
|
|
3134
|
+
key: "1"
|
|
3135
|
+
}]), 1032, ["name"]))), 128))]),
|
|
3086
3136
|
_: 1
|
|
3087
3137
|
}, 8, ["modelValue"])]);
|
|
3088
3138
|
};
|
|
3089
3139
|
}
|
|
3090
3140
|
});
|
|
3091
|
-
const
|
|
3092
|
-
function
|
|
3141
|
+
const Mo = /* @__PURE__ */ Z(Fo, [["__scopeId", "data-v-b59bceed"]]), Ko = W(Mo);
|
|
3142
|
+
function qo(o, t, e) {
|
|
3093
3143
|
const a = atob(o), r = [];
|
|
3094
3144
|
for (let i = 0; i < a.length; i += 512) {
|
|
3095
|
-
const g = a.slice(i, i + 512),
|
|
3096
|
-
for (let
|
|
3097
|
-
|
|
3098
|
-
const
|
|
3099
|
-
r.push(
|
|
3145
|
+
const g = a.slice(i, i + 512), p = new Array(g.length);
|
|
3146
|
+
for (let y = 0; y < g.length; y++)
|
|
3147
|
+
p[y] = g.charCodeAt(y);
|
|
3148
|
+
const c = new Uint8Array(p);
|
|
3149
|
+
r.push(c);
|
|
3100
3150
|
}
|
|
3101
|
-
const n = new Blob(r, { type: e }), A = URL.createObjectURL(n),
|
|
3102
|
-
|
|
3103
|
-
document.body.removeChild(
|
|
3151
|
+
const n = new Blob(r, { type: e }), A = URL.createObjectURL(n), d = document.createElement("a");
|
|
3152
|
+
d.href = A, d.download = t, document.body.appendChild(d), d.click(), setTimeout(() => {
|
|
3153
|
+
document.body.removeChild(d), URL.revokeObjectURL(A);
|
|
3104
3154
|
}, 0);
|
|
3105
3155
|
}
|
|
3106
|
-
const
|
|
3156
|
+
const Ho = {
|
|
3107
3157
|
class: "table-box"
|
|
3108
|
-
},
|
|
3158
|
+
}, zo = /* @__PURE__ */ E({
|
|
3109
3159
|
name: "TCDownload",
|
|
3110
3160
|
__name: "index",
|
|
3111
3161
|
setup(o) {
|
|
3112
|
-
const t =
|
|
3162
|
+
const t = J({
|
|
3113
3163
|
prod_type: window.$prodType
|
|
3114
|
-
}), e =
|
|
3115
|
-
const
|
|
3164
|
+
}), e = B(), a = async (A) => {
|
|
3165
|
+
const d = await ht({
|
|
3116
3166
|
export_uuid: A.export_uuid
|
|
3117
3167
|
}), i = A.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
3118
|
-
|
|
3168
|
+
qo(d.file_data, d.file_name, i), e.value.getTableList();
|
|
3119
3169
|
}, r = (A) => {
|
|
3120
3170
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
3121
|
-
await
|
|
3171
|
+
await Ct({
|
|
3122
3172
|
export_uuids: A
|
|
3123
3173
|
}), e.value.getTableList();
|
|
3124
3174
|
});
|
|
3125
|
-
}, n =
|
|
3175
|
+
}, n = J([{
|
|
3126
3176
|
type: "selection",
|
|
3127
3177
|
width: 80
|
|
3128
3178
|
}, {
|
|
@@ -3186,17 +3236,17 @@ const Mo = {
|
|
|
3186
3236
|
type: "danger",
|
|
3187
3237
|
icon: "Delete",
|
|
3188
3238
|
title: "删除",
|
|
3189
|
-
onClick: () => r([A.row.
|
|
3239
|
+
onClick: () => r([A.row.export_uuid])
|
|
3190
3240
|
}, null)])
|
|
3191
3241
|
}]);
|
|
3192
|
-
return (A,
|
|
3242
|
+
return (A, d) => {
|
|
3193
3243
|
const i = s("el-button");
|
|
3194
|
-
return
|
|
3244
|
+
return m(), C("div", Ho, [l(h(ye), {
|
|
3195
3245
|
ref_key: "proTable",
|
|
3196
3246
|
ref: e,
|
|
3197
3247
|
columns: n,
|
|
3198
|
-
"request-api":
|
|
3199
|
-
"row-key": "
|
|
3248
|
+
"request-api": h(yt),
|
|
3249
|
+
"row-key": "export_uuid",
|
|
3200
3250
|
"init-param": t,
|
|
3201
3251
|
options: A.$tableOptions({
|
|
3202
3252
|
refresh: {
|
|
@@ -3209,33 +3259,33 @@ const Mo = {
|
|
|
3209
3259
|
plain: "",
|
|
3210
3260
|
type: "danger",
|
|
3211
3261
|
icon: "Delete",
|
|
3212
|
-
onClick: (
|
|
3262
|
+
onClick: (p) => r(g.selectedListIds)
|
|
3213
3263
|
}, {
|
|
3214
|
-
default: u(() =>
|
|
3264
|
+
default: u(() => d[0] || (d[0] = [L("删除")])),
|
|
3215
3265
|
_: 2
|
|
3216
3266
|
}, 1032, ["onClick"])]),
|
|
3217
3267
|
_: 1
|
|
3218
3268
|
}, 8, ["columns", "request-api", "init-param", "options"])]);
|
|
3219
3269
|
};
|
|
3220
3270
|
}
|
|
3221
|
-
}),
|
|
3271
|
+
}), No = W(zo), Yo = {
|
|
3222
3272
|
TCReport: Do,
|
|
3223
|
-
TCModule:
|
|
3224
|
-
TCSubscribe:
|
|
3225
|
-
TCBuildin:
|
|
3226
|
-
TCDownload:
|
|
3227
|
-
},
|
|
3273
|
+
TCModule: Ro,
|
|
3274
|
+
TCSubscribe: Po,
|
|
3275
|
+
TCBuildin: Ko,
|
|
3276
|
+
TCDownload: No
|
|
3277
|
+
}, el = {
|
|
3228
3278
|
install(o, t) {
|
|
3229
|
-
Object.entries(
|
|
3279
|
+
Object.entries(Yo).forEach(([e, a]) => {
|
|
3230
3280
|
o.component(e, a);
|
|
3231
3281
|
}), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
|
|
3232
3282
|
}
|
|
3233
3283
|
};
|
|
3234
3284
|
export {
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3285
|
+
Ko as TCBuildin,
|
|
3286
|
+
No as TCDownload,
|
|
3287
|
+
Ro as TCModule,
|
|
3238
3288
|
Do as TCReport,
|
|
3239
|
-
|
|
3240
|
-
|
|
3289
|
+
Po as TCSubscribe,
|
|
3290
|
+
el as default
|
|
3241
3291
|
};
|