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