@topdatasec/report 1.1.2 → 1.1.4
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/t-report-ui.es.js +669 -681
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,9 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { ElMessage as
|
|
4
|
-
import { VueDraggable as
|
|
5
|
-
import { Toolbar as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as $, computed as F, resolveComponent as d, openBlock as c, createElementBlock as y, createElementVNode as C, Fragment as A, renderList as I, normalizeClass as W, createBlock as S, createCommentVNode as R, toDisplayString as P, ref as k, createVNode as a, withCtx as p, onMounted as Z, normalizeProps as ne, guardReactiveProps as ae, isVNode as re, normalizeStyle as he, mergeModels as se, useModel as ie, unref as g, createTextVNode as D, resolveDynamicComponent as N, isRef as Ce, withModifiers as we, watch as xe, resolveDirective as Ve, withDirectives as Se, shallowRef as $e, onBeforeUnmount as ke, onUnmounted as Te, reactive as Le, TransitionGroup as Re } from "vue";
|
|
2
|
+
import { defineStore as Ue, storeToRefs as De } from "pinia";
|
|
3
|
+
import { ElMessage as Ae } from "element-plus";
|
|
4
|
+
import { VueDraggable as Ee } from "vue-draggable-plus";
|
|
5
|
+
import { Toolbar as Fe, Editor as Ie } from "@wangeditor/editor-for-vue";
|
|
6
|
+
const j = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), O = (n) => JSON.parse(JSON.stringify(n)), ze = (n) => n.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (n, t) => n[ze(t)], He = (n) => window.$http.request({
|
|
7
|
+
url: `${window.$reportURL}/tds/report/demo/get`,
|
|
8
|
+
method: "get",
|
|
9
|
+
params: n,
|
|
10
|
+
isError: !1
|
|
11
|
+
}), ue = (n) => window.$http.request({
|
|
12
|
+
url: `${window.$reportURL}/tds/report/item/get`,
|
|
13
|
+
method: "get",
|
|
14
|
+
params: n,
|
|
15
|
+
isError: !1
|
|
16
|
+
}), Me = (n) => window.$http.request({
|
|
17
|
+
url: `${window.$reportURL}/tds/report/preview`,
|
|
18
|
+
method: "get",
|
|
19
|
+
params: n,
|
|
20
|
+
isError: !1
|
|
21
|
+
}), je = (n) => window.$http.request({
|
|
22
|
+
url: `${window.$reportURL}/tds/report/add`,
|
|
23
|
+
method: "post",
|
|
24
|
+
data: n
|
|
25
|
+
}), Pe = (n) => window.$http.request({
|
|
26
|
+
url: `${window.$reportURL}/tds/report/put`,
|
|
27
|
+
method: "put",
|
|
28
|
+
data: n
|
|
29
|
+
}), Be = (n) => window.$http.request({
|
|
30
|
+
url: `${window.$reportURL}/tds/report/get`,
|
|
31
|
+
method: "get",
|
|
32
|
+
params: n,
|
|
33
|
+
isError: !1
|
|
34
|
+
}), We = (n) => window.$http.request({
|
|
35
|
+
url: `${window.$reportURL}/tds/report/filter/get`,
|
|
36
|
+
method: "get",
|
|
37
|
+
params: n,
|
|
38
|
+
isError: !1
|
|
39
|
+
}), Ne = (n) => window.$http.request({
|
|
40
|
+
url: `${window.$reportURL}/tds/report/delete`,
|
|
41
|
+
method: "delete",
|
|
42
|
+
data: n
|
|
43
|
+
}), pe = "rgba(51, 51, 51, 0.15)", M = "rgba(51, 51, 51, 1)", B = 12, de = (n = !1) => {
|
|
7
44
|
const t = {
|
|
8
45
|
// top: '2%',
|
|
9
46
|
left: "3%",
|
|
@@ -11,7 +48,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
11
48
|
bottom: "2%",
|
|
12
49
|
containLabel: !0
|
|
13
50
|
};
|
|
14
|
-
return
|
|
51
|
+
return n && (t.top = "5%"), t;
|
|
15
52
|
}, U = [
|
|
16
53
|
"46, 145, 255",
|
|
17
54
|
"48, 212, 183",
|
|
@@ -33,12 +70,12 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
33
70
|
"100, 161, 206",
|
|
34
71
|
"246, 175, 159",
|
|
35
72
|
"238, 97, 97"
|
|
36
|
-
],
|
|
73
|
+
], Oe = (n, t, e = "", l = { name: "name", value: "value" }) => {
|
|
37
74
|
const r = [], o = [];
|
|
38
75
|
t.forEach((s) => {
|
|
39
|
-
r.push(s[
|
|
40
|
-
}),
|
|
41
|
-
},
|
|
76
|
+
r.push(s[l.name]), o.push(s[l.value]);
|
|
77
|
+
}), n.xAxis[0].data = r, n.series[0].data = o, n.series[0].name = e, n.series[1].data = o, n.series[2].data = o;
|
|
78
|
+
}, ee = (n = [
|
|
42
79
|
{
|
|
43
80
|
name: "数据1",
|
|
44
81
|
value: 63
|
|
@@ -70,7 +107,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
70
107
|
}
|
|
71
108
|
]
|
|
72
109
|
}
|
|
73
|
-
}),
|
|
110
|
+
}), l = n.map((r) => r[t.value]);
|
|
74
111
|
return {
|
|
75
112
|
// 提示框组件
|
|
76
113
|
tooltip: {
|
|
@@ -82,7 +119,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
82
119
|
// type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
|
|
83
120
|
// show: true,
|
|
84
121
|
// },
|
|
85
|
-
grid:
|
|
122
|
+
grid: de(),
|
|
86
123
|
title: {
|
|
87
124
|
show: !0,
|
|
88
125
|
text: "样例数据",
|
|
@@ -111,7 +148,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
111
148
|
//X轴轴线设置
|
|
112
149
|
show: !0,
|
|
113
150
|
lineStyle: {
|
|
114
|
-
color:
|
|
151
|
+
color: pe,
|
|
115
152
|
width: 1
|
|
116
153
|
}
|
|
117
154
|
},
|
|
@@ -119,7 +156,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
119
156
|
// X轴刻度相关设置
|
|
120
157
|
splitLine: { show: !1 },
|
|
121
158
|
// 横向分隔线
|
|
122
|
-
data:
|
|
159
|
+
data: n.map((r) => r[t.name])
|
|
123
160
|
}
|
|
124
161
|
],
|
|
125
162
|
// y轴设置
|
|
@@ -130,7 +167,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
130
167
|
// 坐标轴刻度最小值
|
|
131
168
|
position: "left",
|
|
132
169
|
nameTextStyle: {
|
|
133
|
-
fontSize:
|
|
170
|
+
fontSize: B,
|
|
134
171
|
color: M,
|
|
135
172
|
fontWeight: "bold"
|
|
136
173
|
},
|
|
@@ -155,7 +192,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
155
192
|
barWidth: 15,
|
|
156
193
|
barGap: "0%",
|
|
157
194
|
itemStyle: e(`rgba(${U[0]}, 0.7)`, `rgba(${U[0]}, 0.2)`),
|
|
158
|
-
data:
|
|
195
|
+
data: l,
|
|
159
196
|
label: {
|
|
160
197
|
show: !0,
|
|
161
198
|
// 显示标签
|
|
@@ -175,7 +212,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
175
212
|
//调整截面形状
|
|
176
213
|
symbolOffset: [0, 5],
|
|
177
214
|
itemStyle: e(`rgba(${U[0]}, 0.7)`, `rgba(${U[0]}, 0.2)`),
|
|
178
|
-
data:
|
|
215
|
+
data: l
|
|
179
216
|
},
|
|
180
217
|
{
|
|
181
218
|
// 柱顶圆片
|
|
@@ -186,19 +223,19 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
186
223
|
symbolOffset: [0, -5],
|
|
187
224
|
symbolPosition: "end",
|
|
188
225
|
itemStyle: e(`rgba(${U[0]}, 0.9)`, `rgba(${U[0]}, 1)`),
|
|
189
|
-
data:
|
|
226
|
+
data: l
|
|
190
227
|
}
|
|
191
228
|
]
|
|
192
229
|
};
|
|
193
|
-
},
|
|
194
|
-
let
|
|
195
|
-
const r = t.map((o, s) => (
|
|
230
|
+
}, Ye = ({ chartOption: n, data: t, props: e = { name: "label", value: "data" } }) => {
|
|
231
|
+
let l = 0;
|
|
232
|
+
const r = t.map((o, s) => (l += Number(o[e.value]), {
|
|
196
233
|
name: o[e.name],
|
|
197
234
|
value: Number(o[e.value])
|
|
198
235
|
}));
|
|
199
|
-
t.length > 0 && (
|
|
200
|
-
},
|
|
201
|
-
data:
|
|
236
|
+
t.length > 0 && (n.legend.data = r, n.series[0].data = r, n.graphic[1].style.text = l);
|
|
237
|
+
}, qe = () => U.map((n) => `rgba(${n}, 1)`), q = ({
|
|
238
|
+
data: n = [
|
|
202
239
|
{
|
|
203
240
|
name: "数据1",
|
|
204
241
|
value: 63
|
|
@@ -214,21 +251,21 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
214
251
|
],
|
|
215
252
|
radiusType: t = 1,
|
|
216
253
|
roseType: e = !1,
|
|
217
|
-
isLegend:
|
|
254
|
+
isLegend: l = !0,
|
|
218
255
|
isLine: r = !1,
|
|
219
256
|
center: o = ["50%", "50%"],
|
|
220
257
|
isTitle: s = !0
|
|
221
258
|
}) => {
|
|
222
|
-
const
|
|
223
|
-
color:
|
|
259
|
+
const _ = {
|
|
260
|
+
color: qe(),
|
|
224
261
|
toolbox: { show: !1 },
|
|
225
262
|
tooltip: {
|
|
226
263
|
trigger: "item",
|
|
227
264
|
show: !0,
|
|
228
265
|
formatter: (i) => {
|
|
229
|
-
const { name: f, value:
|
|
266
|
+
const { name: f, value: m } = i;
|
|
230
267
|
return `<div style="color: ${i.color}; font-size: 14px;">${f} </div>
|
|
231
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${
|
|
268
|
+
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${m}</span></div>`;
|
|
232
269
|
}
|
|
233
270
|
},
|
|
234
271
|
title: {
|
|
@@ -242,18 +279,18 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
242
279
|
y: 10
|
|
243
280
|
},
|
|
244
281
|
legend: {
|
|
245
|
-
show:
|
|
282
|
+
show: l,
|
|
246
283
|
left: "70%",
|
|
247
284
|
formatter: (i) => {
|
|
248
|
-
var
|
|
249
|
-
const f = (
|
|
285
|
+
var m;
|
|
286
|
+
const f = (m = _.series[0]) == null ? void 0 : m.data.find((u) => u.name === i).value;
|
|
250
287
|
return ` ${i} | ${f}`;
|
|
251
288
|
},
|
|
252
289
|
textStyle: {
|
|
253
|
-
fontSize:
|
|
290
|
+
fontSize: B,
|
|
254
291
|
color: M
|
|
255
292
|
},
|
|
256
|
-
data:
|
|
293
|
+
data: n,
|
|
257
294
|
orient: "vertical",
|
|
258
295
|
itemWidth: 10,
|
|
259
296
|
itemHeight: 10,
|
|
@@ -328,7 +365,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
328
365
|
width: 1
|
|
329
366
|
}
|
|
330
367
|
},
|
|
331
|
-
data:
|
|
368
|
+
data: n
|
|
332
369
|
}
|
|
333
370
|
],
|
|
334
371
|
graphic: [
|
|
@@ -358,12 +395,12 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
358
395
|
}
|
|
359
396
|
]
|
|
360
397
|
};
|
|
361
|
-
return
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}) : typeof e.value == "string" && (
|
|
366
|
-
},
|
|
398
|
+
return _;
|
|
399
|
+
}, Ge = (n, t, e = { name: "name", value: "value" }) => {
|
|
400
|
+
n.xAxis.data = t.map((l) => l[e.name]), Array.isArray(e.value) ? e.value.forEach((l, r) => {
|
|
401
|
+
n.series[r].data = t.map((o) => o[l.value]);
|
|
402
|
+
}) : typeof e.value == "string" && (n.series[0].data = t.map((l) => l[e.value]));
|
|
403
|
+
}, Je = () => ({
|
|
367
404
|
name: "",
|
|
368
405
|
type: "line",
|
|
369
406
|
symbol: "circle",
|
|
@@ -382,8 +419,8 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
382
419
|
//开启显示
|
|
383
420
|
position: "top",
|
|
384
421
|
//在上方显示
|
|
385
|
-
formatter: function(
|
|
386
|
-
return
|
|
422
|
+
formatter: function(n) {
|
|
423
|
+
return n.value ? n.value : 0;
|
|
387
424
|
}
|
|
388
425
|
}
|
|
389
426
|
},
|
|
@@ -409,7 +446,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
409
446
|
}
|
|
410
447
|
},
|
|
411
448
|
data: []
|
|
412
|
-
}),
|
|
449
|
+
}), G = (n = [
|
|
413
450
|
{
|
|
414
451
|
name: "2024-08",
|
|
415
452
|
value: 63
|
|
@@ -442,26 +479,26 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
442
479
|
itemWidth: 30,
|
|
443
480
|
textStyle: {
|
|
444
481
|
color: M,
|
|
445
|
-
fontSize:
|
|
482
|
+
fontSize: B,
|
|
446
483
|
padding: [0, 8, 0, 8]
|
|
447
484
|
}
|
|
448
485
|
},
|
|
449
|
-
grid:
|
|
486
|
+
grid: de(),
|
|
450
487
|
xAxis: {
|
|
451
488
|
type: "category",
|
|
452
489
|
splitLine: { show: !1 },
|
|
453
490
|
axisTick: { show: !1 },
|
|
454
491
|
axisLine: {
|
|
455
492
|
show: !0,
|
|
456
|
-
lineStyle: { color:
|
|
493
|
+
lineStyle: { color: pe }
|
|
457
494
|
},
|
|
458
495
|
axisLabel: {
|
|
459
496
|
show: !0,
|
|
460
|
-
fontSize:
|
|
497
|
+
fontSize: B,
|
|
461
498
|
color: M
|
|
462
499
|
},
|
|
463
500
|
boundaryGap: !1,
|
|
464
|
-
data:
|
|
501
|
+
data: n.map((o) => o[t.name])
|
|
465
502
|
},
|
|
466
503
|
yAxis: {
|
|
467
504
|
name: "",
|
|
@@ -470,42 +507,42 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
470
507
|
axisLine: { show: !1 },
|
|
471
508
|
axisTick: { show: !1 },
|
|
472
509
|
nameTextStyle: {
|
|
473
|
-
fontSize:
|
|
510
|
+
fontSize: B,
|
|
474
511
|
color: M,
|
|
475
512
|
padding: [0, 60, 0, 0]
|
|
476
513
|
},
|
|
477
514
|
axisLabel: {
|
|
478
515
|
show: !0,
|
|
479
|
-
fontSize:
|
|
516
|
+
fontSize: B,
|
|
480
517
|
color: M
|
|
481
518
|
}
|
|
482
519
|
},
|
|
483
520
|
series: []
|
|
484
|
-
},
|
|
521
|
+
}, l = Je(), r = [];
|
|
485
522
|
if (Array.isArray(t.value))
|
|
486
523
|
t.value.forEach((o, s) => {
|
|
487
|
-
const
|
|
488
|
-
|
|
524
|
+
const _ = O(l);
|
|
525
|
+
_.name = o.name, _.lineStyle.color = `rgba(${U[s]}, 1)`, _.itemStyle.color = `rgba(${U[s]}, 1)`, _.areaStyle.color.colorStops[0].color = `rgba(${U[s]}, 0.7)`, _.areaStyle.color.colorStops[1].color = `rgba(${U[s]}, 0.1)`, _.data = n.map((i) => i[o.value]), r.push(_);
|
|
489
526
|
});
|
|
490
527
|
else if (typeof t.value == "string") {
|
|
491
|
-
const o =
|
|
492
|
-
o.data =
|
|
528
|
+
const o = O(l);
|
|
529
|
+
o.data = n.map((s) => s[t.value]), r.push(o);
|
|
493
530
|
}
|
|
494
531
|
return e.series = r, e;
|
|
495
|
-
},
|
|
532
|
+
}, te = [
|
|
496
533
|
{ key: "assets", name: "资产名称" },
|
|
497
534
|
{ key: "type", name: "资产类型" },
|
|
498
535
|
{ key: "data", name: "资产数据" }
|
|
499
|
-
],
|
|
536
|
+
], oe = [
|
|
500
537
|
{ assets: "name1", type: "type1", data: "data1" },
|
|
501
538
|
{ assets: "name2", type: "type2", data: "data2" },
|
|
502
539
|
{ assets: "name3", type: "type3", data: "data3" }
|
|
503
|
-
],
|
|
540
|
+
], J = [
|
|
504
541
|
{ data: [{ name: "默认数据", value: 180 }], label: "name1" },
|
|
505
542
|
{ data: [{ name: "默认数据", value: 311 }], label: "name2" },
|
|
506
543
|
{ data: [{ name: "默认数据", value: 42 }], label: "name3" },
|
|
507
544
|
{ data: [{ name: "默认数据", value: 32391 }], label: "name4" }
|
|
508
|
-
],
|
|
545
|
+
], Ke = [
|
|
509
546
|
{
|
|
510
547
|
data: 63,
|
|
511
548
|
label: "数据1"
|
|
@@ -518,7 +555,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
518
555
|
data: 43,
|
|
519
556
|
label: "数据3"
|
|
520
557
|
}
|
|
521
|
-
],
|
|
558
|
+
], Qe = [
|
|
522
559
|
{
|
|
523
560
|
type: "report-select",
|
|
524
561
|
label: "资产:",
|
|
@@ -542,7 +579,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
542
579
|
}
|
|
543
580
|
],
|
|
544
581
|
uri: "/da/report/sens/get_asset_all",
|
|
545
|
-
id:
|
|
582
|
+
id: j()
|
|
546
583
|
},
|
|
547
584
|
{
|
|
548
585
|
type: "range-time",
|
|
@@ -552,7 +589,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
552
589
|
end_time: "2024-09-12 19:49:34"
|
|
553
590
|
}
|
|
554
591
|
],
|
|
555
|
-
id:
|
|
592
|
+
id: j()
|
|
556
593
|
},
|
|
557
594
|
{
|
|
558
595
|
type: "h1",
|
|
@@ -565,7 +602,7 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
565
602
|
textIndent: 0,
|
|
566
603
|
textAlign: "left"
|
|
567
604
|
},
|
|
568
|
-
id:
|
|
605
|
+
id: j()
|
|
569
606
|
},
|
|
570
607
|
{
|
|
571
608
|
type: "h2",
|
|
@@ -579,12 +616,12 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
579
616
|
textIndent: 0,
|
|
580
617
|
textAlign: "left"
|
|
581
618
|
},
|
|
582
|
-
id:
|
|
619
|
+
id: j()
|
|
583
620
|
},
|
|
584
621
|
{
|
|
585
622
|
type: "report-table",
|
|
586
|
-
data:
|
|
587
|
-
showColumn:
|
|
623
|
+
data: oe,
|
|
624
|
+
showColumn: te,
|
|
588
625
|
name: "表格",
|
|
589
626
|
options: {
|
|
590
627
|
showColumn: {
|
|
@@ -597,9 +634,9 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
597
634
|
stripe: !1
|
|
598
635
|
},
|
|
599
636
|
rp_item_uuid: "",
|
|
600
|
-
id:
|
|
637
|
+
id: j()
|
|
601
638
|
}
|
|
602
|
-
],
|
|
639
|
+
], Xe = [
|
|
603
640
|
{
|
|
604
641
|
type: "h1",
|
|
605
642
|
data: "报表名称",
|
|
@@ -646,8 +683,8 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
646
683
|
{ type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
|
|
647
684
|
{
|
|
648
685
|
type: "report-table",
|
|
649
|
-
data:
|
|
650
|
-
showColumn:
|
|
686
|
+
data: oe,
|
|
687
|
+
showColumn: te,
|
|
651
688
|
name: "表格",
|
|
652
689
|
options: {
|
|
653
690
|
border: !0,
|
|
@@ -664,45 +701,45 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
664
701
|
},
|
|
665
702
|
{
|
|
666
703
|
type: "bar",
|
|
667
|
-
data:
|
|
704
|
+
data: J,
|
|
668
705
|
showColumn: [{ key: "label", value: "data" }],
|
|
669
706
|
name: "图表",
|
|
670
|
-
options:
|
|
707
|
+
options: ee(),
|
|
671
708
|
rp_item_uuid: "",
|
|
672
709
|
id: ""
|
|
673
710
|
}
|
|
674
|
-
],
|
|
711
|
+
], Ze = (n) => ({
|
|
675
712
|
bar: {
|
|
676
713
|
type: "bar",
|
|
677
|
-
data:
|
|
714
|
+
data: J,
|
|
678
715
|
showColumn: [{ key: "label", value: "data" }],
|
|
679
716
|
name: "图表",
|
|
680
|
-
options:
|
|
717
|
+
options: ee(),
|
|
681
718
|
rp_item_uuid: "",
|
|
682
719
|
id: ""
|
|
683
720
|
},
|
|
684
721
|
line: {
|
|
685
722
|
type: "line",
|
|
686
|
-
data:
|
|
723
|
+
data: J,
|
|
687
724
|
showColumn: [{ key: "label", value: "data" }],
|
|
688
725
|
name: "图表",
|
|
689
|
-
options:
|
|
726
|
+
options: G(),
|
|
690
727
|
rp_item_uuid: "",
|
|
691
728
|
id: ""
|
|
692
729
|
},
|
|
693
730
|
pie: {
|
|
694
731
|
type: "pie",
|
|
695
|
-
data:
|
|
732
|
+
data: Ke,
|
|
696
733
|
showColumn: [{ key: "label", value: "data" }],
|
|
697
734
|
name: "图表",
|
|
698
|
-
options:
|
|
735
|
+
options: q({ isLegend: !0 }),
|
|
699
736
|
rp_item_uuid: "",
|
|
700
737
|
id: ""
|
|
701
738
|
},
|
|
702
739
|
"report-table": {
|
|
703
740
|
type: "report-table",
|
|
704
|
-
data:
|
|
705
|
-
showColumn:
|
|
741
|
+
data: oe,
|
|
742
|
+
showColumn: te,
|
|
706
743
|
name: "表格",
|
|
707
744
|
options: {
|
|
708
745
|
showColumn: {
|
|
@@ -717,45 +754,35 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
717
754
|
rp_item_uuid: "",
|
|
718
755
|
id: ""
|
|
719
756
|
}
|
|
720
|
-
})[
|
|
757
|
+
})[n], z = Ue("tds-report", {
|
|
721
758
|
state: () => ({
|
|
722
759
|
componentList: [],
|
|
723
760
|
activeComponents: {},
|
|
724
761
|
notDraggableList: [],
|
|
725
762
|
titleComponent: {},
|
|
726
|
-
prodType: -1,
|
|
727
|
-
envURL: "",
|
|
728
763
|
filterForm: {
|
|
729
764
|
range_time: 1,
|
|
730
765
|
filter_uuid: ""
|
|
731
766
|
}
|
|
732
767
|
}),
|
|
733
768
|
getters: {
|
|
734
|
-
getActiveComponents: (
|
|
769
|
+
getActiveComponents: (n) => n.activeComponents
|
|
735
770
|
},
|
|
736
771
|
actions: {
|
|
737
772
|
// setComponentList
|
|
738
|
-
setComponentList(
|
|
739
|
-
this.componentList =
|
|
773
|
+
setComponentList(n) {
|
|
774
|
+
this.componentList = n;
|
|
740
775
|
},
|
|
741
|
-
async getReportDemo(
|
|
776
|
+
async getReportDemo(n) {
|
|
742
777
|
let t = [];
|
|
743
|
-
|
|
778
|
+
n ? t = (await He({ report_uuid: n })).data : t = { content: O(Qe), range_time: 1 };
|
|
744
779
|
const e = [];
|
|
745
|
-
t.content.forEach((
|
|
746
|
-
(
|
|
780
|
+
t.content.forEach((l) => {
|
|
781
|
+
(l.type === "report-select" || l.type === "range-time") && e.push(l), l.type === "h1" && (this.titleComponent = l), l.id = j();
|
|
747
782
|
}), this.notDraggableList = e, this.filterForm.range_time = t.range_time, this.filterForm.filter_uuid = t.filter_uuid, t.content.splice(0, 3), this.componentList = t.content;
|
|
748
783
|
},
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
this.prodType = l;
|
|
752
|
-
},
|
|
753
|
-
// 设置请求路由
|
|
754
|
-
setEnvURL(l) {
|
|
755
|
-
this.envURL = l;
|
|
756
|
-
},
|
|
757
|
-
setActiveComponents(l) {
|
|
758
|
-
this.activeComponents = l;
|
|
784
|
+
setActiveComponents(n) {
|
|
785
|
+
this.activeComponents = n;
|
|
759
786
|
},
|
|
760
787
|
clearComponents() {
|
|
761
788
|
this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
|
|
@@ -764,59 +791,22 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
764
791
|
};
|
|
765
792
|
}
|
|
766
793
|
}
|
|
767
|
-
}),
|
|
768
|
-
url: `${P}/tds/report/demo/get`,
|
|
769
|
-
method: "get",
|
|
770
|
-
params: l,
|
|
771
|
-
isError: !1
|
|
772
|
-
}), me = (l) => j.request({
|
|
773
|
-
url: `${P}/tds/report/item/get`,
|
|
774
|
-
method: "get",
|
|
775
|
-
params: l,
|
|
776
|
-
isError: !1
|
|
777
|
-
}), Qe = (l) => j.request({
|
|
778
|
-
url: `${P}/tds/report/preview`,
|
|
779
|
-
method: "get",
|
|
780
|
-
params: l,
|
|
781
|
-
isError: !1
|
|
782
|
-
}), Xe = (l) => j.request({
|
|
783
|
-
url: `${P}/tds/report/add`,
|
|
784
|
-
method: "post",
|
|
785
|
-
data: l
|
|
786
|
-
}), Ze = (l) => j.request({
|
|
787
|
-
url: `${P}/tds/report/put`,
|
|
788
|
-
method: "put",
|
|
789
|
-
data: l
|
|
790
|
-
}), et = (l) => j.request({
|
|
791
|
-
url: `${P}/tds/report/get`,
|
|
792
|
-
method: "get",
|
|
793
|
-
params: l,
|
|
794
|
-
isError: !1
|
|
795
|
-
}), tt = (l) => j.request({
|
|
796
|
-
url: `${P}/tds/report/filter/get`,
|
|
797
|
-
method: "get",
|
|
798
|
-
params: l,
|
|
799
|
-
isError: !1
|
|
800
|
-
}), ot = (l) => j.request({
|
|
801
|
-
url: `${P}/tds/report/delete`,
|
|
802
|
-
method: "delete",
|
|
803
|
-
data: l
|
|
804
|
-
}), lt = { class: "catalogue" }, nt = ["href", "title"], at = /* @__PURE__ */ k({
|
|
794
|
+
}), et = { class: "catalogue" }, tt = ["href", "title"], ot = /* @__PURE__ */ $({
|
|
805
795
|
__name: "Catalogue",
|
|
806
796
|
props: {
|
|
807
797
|
data: { default: () => [] }
|
|
808
798
|
},
|
|
809
|
-
setup(
|
|
810
|
-
const t =
|
|
811
|
-
return (
|
|
812
|
-
const o =
|
|
813
|
-
return
|
|
799
|
+
setup(n) {
|
|
800
|
+
const t = n, e = F(() => t.data.filter((l) => ["h2", "h3", "h4"].includes(l.type)));
|
|
801
|
+
return (l, r) => {
|
|
802
|
+
const o = d("el-divider");
|
|
803
|
+
return c(), y("div", et, [
|
|
814
804
|
r[0] || (r[0] = C("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
|
|
815
|
-
(
|
|
816
|
-
class:
|
|
805
|
+
(c(!0), y(A, null, I(e.value, (s) => (c(), y("div", {
|
|
806
|
+
class: W("level" + s.type),
|
|
817
807
|
key: s.value
|
|
818
808
|
}, [
|
|
819
|
-
s.type === "h2" ? (
|
|
809
|
+
s.type === "h2" ? (c(), S(o, {
|
|
820
810
|
key: 0,
|
|
821
811
|
style: { "margin-top": "10px", "margin-bottom": "10px" }
|
|
822
812
|
})) : R("", !0),
|
|
@@ -824,87 +814,87 @@ const B = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
824
814
|
class: "el-anchor__link",
|
|
825
815
|
href: "#" + s.id,
|
|
826
816
|
title: s.data
|
|
827
|
-
},
|
|
817
|
+
}, P(s.data), 9, tt)
|
|
828
818
|
], 2))), 128))
|
|
829
819
|
]);
|
|
830
820
|
};
|
|
831
821
|
}
|
|
832
822
|
});
|
|
833
|
-
const
|
|
834
|
-
const e =
|
|
835
|
-
for (const [
|
|
836
|
-
e[
|
|
823
|
+
const Y = (n, t) => {
|
|
824
|
+
const e = n.__vccOpts || n;
|
|
825
|
+
for (const [l, r] of t)
|
|
826
|
+
e[l] = r;
|
|
837
827
|
return e;
|
|
838
|
-
},
|
|
828
|
+
}, lt = /* @__PURE__ */ Y(ot, [["__scopeId", "data-v-1cd8aa2d"]]), nt = {
|
|
839
829
|
class: "chart-components"
|
|
840
|
-
},
|
|
830
|
+
}, ce = /* @__PURE__ */ $({
|
|
841
831
|
__name: "Bar",
|
|
842
832
|
props: {
|
|
843
833
|
value: {}
|
|
844
834
|
},
|
|
845
|
-
setup(
|
|
846
|
-
const t =
|
|
847
|
-
return
|
|
848
|
-
const o =
|
|
849
|
-
return
|
|
835
|
+
setup(n) {
|
|
836
|
+
const t = n, e = F(() => t.value.options);
|
|
837
|
+
return k(!1), (l, r) => {
|
|
838
|
+
const o = d("TdsChart");
|
|
839
|
+
return c(), y("div", nt, [a(o, {
|
|
850
840
|
option: e.value
|
|
851
841
|
}, null, 8, ["option"])]);
|
|
852
842
|
};
|
|
853
843
|
}
|
|
854
|
-
}),
|
|
844
|
+
}), at = { class: "chart-components" }, me = /* @__PURE__ */ $({
|
|
855
845
|
__name: "Line",
|
|
856
846
|
props: {
|
|
857
847
|
value: {}
|
|
858
848
|
},
|
|
859
|
-
setup(
|
|
860
|
-
const t =
|
|
861
|
-
return (
|
|
862
|
-
const o =
|
|
863
|
-
return
|
|
849
|
+
setup(n) {
|
|
850
|
+
const t = n, e = F(() => t.value.options);
|
|
851
|
+
return (l, r) => {
|
|
852
|
+
const o = d("TdsChart");
|
|
853
|
+
return c(), y("div", at, [
|
|
864
854
|
a(o, { option: e.value }, null, 8, ["option"])
|
|
865
855
|
]);
|
|
866
856
|
};
|
|
867
857
|
}
|
|
868
|
-
}),
|
|
858
|
+
}), rt = { class: "chart-components" }, _e = /* @__PURE__ */ $({
|
|
869
859
|
__name: "Pie",
|
|
870
860
|
props: {
|
|
871
861
|
value: {}
|
|
872
862
|
},
|
|
873
|
-
setup(
|
|
874
|
-
const t =
|
|
875
|
-
return (
|
|
876
|
-
const o =
|
|
877
|
-
return
|
|
863
|
+
setup(n) {
|
|
864
|
+
const t = n, e = F(() => t.value.options);
|
|
865
|
+
return (l, r) => {
|
|
866
|
+
const o = d("TdsChart");
|
|
867
|
+
return c(), y("div", rt, [
|
|
878
868
|
a(o, { option: e.value }, null, 8, ["option"])
|
|
879
869
|
]);
|
|
880
870
|
};
|
|
881
871
|
}
|
|
882
|
-
}),
|
|
872
|
+
}), st = { key: 0 }, K = /* @__PURE__ */ $({
|
|
883
873
|
__name: "ReportSelect",
|
|
884
874
|
props: {
|
|
885
875
|
value: {}
|
|
886
876
|
},
|
|
887
877
|
emits: ["change"],
|
|
888
|
-
setup(
|
|
889
|
-
const e = t,
|
|
878
|
+
setup(n, { emit: t }) {
|
|
879
|
+
const e = t, l = (s) => {
|
|
890
880
|
e("change", s);
|
|
891
|
-
}, o =
|
|
892
|
-
return (s,
|
|
893
|
-
const i =
|
|
894
|
-
return o.value.data ? (
|
|
881
|
+
}, o = k(n.value);
|
|
882
|
+
return (s, _) => {
|
|
883
|
+
const i = d("el-option"), f = d("el-select");
|
|
884
|
+
return o.value.data ? (c(), y("div", st, [
|
|
895
885
|
a(f, {
|
|
896
886
|
modelValue: o.value.value,
|
|
897
|
-
"onUpdate:modelValue":
|
|
887
|
+
"onUpdate:modelValue": _[0] || (_[0] = (m) => o.value.value = m),
|
|
898
888
|
multiple: "",
|
|
899
889
|
style: { width: "100%" },
|
|
900
|
-
onChange:
|
|
890
|
+
onChange: l,
|
|
901
891
|
placeholder: "全部"
|
|
902
892
|
}, {
|
|
903
|
-
default:
|
|
904
|
-
(
|
|
905
|
-
key:
|
|
906
|
-
label:
|
|
907
|
-
value:
|
|
893
|
+
default: p(() => [
|
|
894
|
+
(c(!0), y(A, null, I(o.value.data, (m) => (c(), S(i, {
|
|
895
|
+
key: m.data,
|
|
896
|
+
label: m.label,
|
|
897
|
+
value: m.data
|
|
908
898
|
}, null, 8, ["label", "value"]))), 128))
|
|
909
899
|
]),
|
|
910
900
|
_: 1
|
|
@@ -912,25 +902,25 @@ const G = (l, t) => {
|
|
|
912
902
|
])) : R("", !0);
|
|
913
903
|
};
|
|
914
904
|
}
|
|
915
|
-
}),
|
|
905
|
+
}), Q = /* @__PURE__ */ $({
|
|
916
906
|
__name: "RangeTime",
|
|
917
907
|
props: {
|
|
918
908
|
value: {}
|
|
919
909
|
},
|
|
920
910
|
emits: ["change"],
|
|
921
|
-
setup(
|
|
922
|
-
const e = t, r =
|
|
923
|
-
function s(
|
|
924
|
-
|
|
911
|
+
setup(n, { emit: t }) {
|
|
912
|
+
const e = t, r = k(n.value), o = k([]);
|
|
913
|
+
function s(_) {
|
|
914
|
+
_ ? (r.value.data[0].start_time = _[0], r.value.data[0].end_time = _[1]) : o.value = [], e("change", o.value);
|
|
925
915
|
}
|
|
926
|
-
return
|
|
916
|
+
return Z(() => {
|
|
927
917
|
o.value = [r.value.data[0].start_time, r.value.data[0].end_time];
|
|
928
|
-
}), (
|
|
929
|
-
const f =
|
|
930
|
-
return
|
|
918
|
+
}), (_, i) => {
|
|
919
|
+
const f = d("el-date-picker");
|
|
920
|
+
return c(), y("div", null, [
|
|
931
921
|
a(f, {
|
|
932
922
|
modelValue: o.value,
|
|
933
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
923
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => o.value = m),
|
|
934
924
|
type: "datetimerange",
|
|
935
925
|
placeholder: "Pick a Date",
|
|
936
926
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -942,61 +932,61 @@ const G = (l, t) => {
|
|
|
942
932
|
};
|
|
943
933
|
}
|
|
944
934
|
});
|
|
945
|
-
function
|
|
946
|
-
return typeof
|
|
935
|
+
function it(n) {
|
|
936
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !re(n);
|
|
947
937
|
}
|
|
948
|
-
const
|
|
938
|
+
const fe = /* @__PURE__ */ $({
|
|
949
939
|
__name: "ReportTable",
|
|
950
940
|
props: {
|
|
951
941
|
value: {}
|
|
952
942
|
},
|
|
953
|
-
setup(
|
|
954
|
-
const t =
|
|
943
|
+
setup(n) {
|
|
944
|
+
const t = n, e = (l) => {
|
|
955
945
|
let r;
|
|
956
|
-
return a(
|
|
957
|
-
data:
|
|
946
|
+
return a(d("el-table"), {
|
|
947
|
+
data: l.data,
|
|
958
948
|
border: t.value.options.border,
|
|
959
949
|
"show-header": !!t.value.options.showHeader,
|
|
960
950
|
stripe: t.value.options.stripe
|
|
961
|
-
},
|
|
951
|
+
}, it(r = l.showColumn.map((o) => t.value.options.showColumn[o.key] === !0 ? a(d("el-table-column"), {
|
|
962
952
|
prop: o.key,
|
|
963
953
|
label: o.name
|
|
964
954
|
}, null) : null)) ? r : {
|
|
965
955
|
default: () => [r]
|
|
966
956
|
});
|
|
967
957
|
};
|
|
968
|
-
return (
|
|
958
|
+
return (l, r) => (c(), y("div", null, [a(e, ne(ae(l.value)), null, 16)]));
|
|
969
959
|
}
|
|
970
|
-
}),
|
|
960
|
+
}), X = /* @__PURE__ */ $({
|
|
971
961
|
__name: "ReportText",
|
|
972
962
|
props: {
|
|
973
963
|
value: {}
|
|
974
964
|
},
|
|
975
|
-
setup(
|
|
976
|
-
const t =
|
|
977
|
-
const
|
|
965
|
+
setup(n) {
|
|
966
|
+
const t = n, e = () => {
|
|
967
|
+
const l = t.value.options || {};
|
|
978
968
|
return {
|
|
979
|
-
color:
|
|
980
|
-
"font-size":
|
|
981
|
-
"font-weight":
|
|
982
|
-
"letter-spacing":
|
|
983
|
-
"text-indent":
|
|
984
|
-
"text-align":
|
|
969
|
+
color: l.color,
|
|
970
|
+
"font-size": l.size + "px",
|
|
971
|
+
"font-weight": l.fontWeight,
|
|
972
|
+
"letter-spacing": l.letterSpacing + "px",
|
|
973
|
+
"text-indent": l.textIndent + "px",
|
|
974
|
+
"text-align": l.textAlign
|
|
985
975
|
};
|
|
986
976
|
};
|
|
987
|
-
return (
|
|
988
|
-
style:
|
|
989
|
-
},
|
|
977
|
+
return (l, r) => (c(), y("div", {
|
|
978
|
+
style: he(e())
|
|
979
|
+
}, P(l.value.data), 5));
|
|
990
980
|
}
|
|
991
|
-
}),
|
|
981
|
+
}), ut = { class: "chart-components" }, ve = /* @__PURE__ */ $({
|
|
992
982
|
__name: "ReportChart",
|
|
993
983
|
props: {
|
|
994
984
|
value: {}
|
|
995
985
|
},
|
|
996
|
-
setup(
|
|
997
|
-
const t =
|
|
986
|
+
setup(n) {
|
|
987
|
+
const t = n, e = F(() => t.value), l = F(() => {
|
|
998
988
|
if (e.value.type === "bar") {
|
|
999
|
-
e.value.options.series =
|
|
989
|
+
e.value.options.series = ee([]).series;
|
|
1000
990
|
const r = [];
|
|
1001
991
|
let o = "";
|
|
1002
992
|
e.value.data.forEach((s) => {
|
|
@@ -1004,53 +994,53 @@ const be = /* @__PURE__ */ k({
|
|
|
1004
994
|
name: s.label,
|
|
1005
995
|
value: s.data[0].value
|
|
1006
996
|
});
|
|
1007
|
-
}),
|
|
997
|
+
}), Oe(e.value.options, r, o);
|
|
1008
998
|
}
|
|
1009
|
-
if (e.value.type === "pie" && (e.value.options =
|
|
999
|
+
if (e.value.type === "pie" && (e.value.options = q({ isLegend: !0 }), console.log(q({ isLegend: !0 }), "chartsPie({ isLegend: true })"), Ye({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
|
|
1010
1000
|
let r = [];
|
|
1011
|
-
e.value.data.forEach((
|
|
1012
|
-
r =
|
|
1001
|
+
e.value.data.forEach((_) => {
|
|
1002
|
+
r = _.data.map((i, f) => ({ name: i.name, value: "value" + f }));
|
|
1013
1003
|
});
|
|
1014
1004
|
const o = {
|
|
1015
1005
|
name: "name",
|
|
1016
1006
|
value: r
|
|
1017
|
-
}, s = e.value.data.map((
|
|
1007
|
+
}, s = e.value.data.map((_) => {
|
|
1018
1008
|
const i = {
|
|
1019
|
-
name:
|
|
1009
|
+
name: _.label
|
|
1020
1010
|
};
|
|
1021
|
-
return r.forEach((f,
|
|
1022
|
-
i[f.value] =
|
|
1011
|
+
return r.forEach((f, m) => {
|
|
1012
|
+
i[f.value] = _.data[m].value;
|
|
1023
1013
|
}), i;
|
|
1024
1014
|
});
|
|
1025
|
-
console.log(
|
|
1015
|
+
console.log(G([], o), "chartsLine([], params)"), e.value.options.series = G([], o).series, Ge(e.value.options, s, o);
|
|
1026
1016
|
}
|
|
1027
1017
|
return e.value.options;
|
|
1028
1018
|
});
|
|
1029
1019
|
return (r, o) => {
|
|
1030
|
-
const s =
|
|
1031
|
-
return
|
|
1032
|
-
a(s, { option:
|
|
1020
|
+
const s = d("TdsChart");
|
|
1021
|
+
return c(), y("div", ut, [
|
|
1022
|
+
a(s, { option: l.value }, null, 8, ["option"])
|
|
1033
1023
|
]);
|
|
1034
1024
|
};
|
|
1035
1025
|
}
|
|
1036
1026
|
});
|
|
1037
|
-
function
|
|
1038
|
-
return typeof
|
|
1027
|
+
function pt(n) {
|
|
1028
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !re(n);
|
|
1039
1029
|
}
|
|
1040
|
-
const
|
|
1030
|
+
const be = /* @__PURE__ */ $({
|
|
1041
1031
|
__name: "ReportDescribe",
|
|
1042
1032
|
props: {
|
|
1043
1033
|
value: {}
|
|
1044
1034
|
},
|
|
1045
|
-
setup(
|
|
1046
|
-
const t =
|
|
1035
|
+
setup(n) {
|
|
1036
|
+
const t = n, e = (l) => {
|
|
1047
1037
|
let r;
|
|
1048
|
-
return a(
|
|
1038
|
+
return a(d("el-descriptions"), {
|
|
1049
1039
|
title: t.value.options.title,
|
|
1050
1040
|
border: t.value.options.border,
|
|
1051
1041
|
column: t.value.options.column,
|
|
1052
1042
|
direction: t.value.options.direction
|
|
1053
|
-
},
|
|
1043
|
+
}, pt(r = l.showColumn.map((o) => a(d("el-descriptions-item"), {
|
|
1054
1044
|
label: o.name
|
|
1055
1045
|
}, {
|
|
1056
1046
|
default: () => [t.value.data[o.key]]
|
|
@@ -1058,21 +1048,21 @@ const ye = /* @__PURE__ */ k({
|
|
|
1058
1048
|
default: () => [r]
|
|
1059
1049
|
});
|
|
1060
1050
|
};
|
|
1061
|
-
return (
|
|
1051
|
+
return (l, r) => (c(), y("div", null, [a(e, ne(ae(l.value)), null, 16)]));
|
|
1062
1052
|
}
|
|
1063
|
-
}),
|
|
1053
|
+
}), dt = {
|
|
1064
1054
|
class: "editor-box"
|
|
1065
|
-
},
|
|
1055
|
+
}, ct = {
|
|
1066
1056
|
class: "editor",
|
|
1067
1057
|
id: "editor",
|
|
1068
1058
|
style: {
|
|
1069
1059
|
width: "100%"
|
|
1070
1060
|
}
|
|
1071
|
-
},
|
|
1061
|
+
}, mt = {
|
|
1072
1062
|
class: "editor-content flex flex-start"
|
|
1073
|
-
},
|
|
1063
|
+
}, _t = ["id"], ft = ["innerHTML"], vt = /* @__PURE__ */ $({
|
|
1074
1064
|
__name: "index",
|
|
1075
|
-
props: /* @__PURE__ */
|
|
1065
|
+
props: /* @__PURE__ */ se({
|
|
1076
1066
|
reportId: {
|
|
1077
1067
|
type: String,
|
|
1078
1068
|
default: ""
|
|
@@ -1082,221 +1072,221 @@ const ye = /* @__PURE__ */ k({
|
|
|
1082
1072
|
modelModifiers: {}
|
|
1083
1073
|
}),
|
|
1084
1074
|
emits: ["update:modelValue"],
|
|
1085
|
-
setup(
|
|
1075
|
+
setup(n) {
|
|
1086
1076
|
const t = {
|
|
1087
|
-
Bar:
|
|
1088
|
-
Line:
|
|
1089
|
-
Pie:
|
|
1090
|
-
ReportSelect:
|
|
1091
|
-
RangeTime:
|
|
1092
|
-
ReportTable:
|
|
1093
|
-
ReportText:
|
|
1094
|
-
ReportChart:
|
|
1095
|
-
ReportDescribe:
|
|
1096
|
-
}, e =
|
|
1097
|
-
function
|
|
1077
|
+
Bar: ce,
|
|
1078
|
+
Line: me,
|
|
1079
|
+
Pie: _e,
|
|
1080
|
+
ReportSelect: K,
|
|
1081
|
+
RangeTime: Q,
|
|
1082
|
+
ReportTable: fe,
|
|
1083
|
+
ReportText: X,
|
|
1084
|
+
ReportChart: ve,
|
|
1085
|
+
ReportDescribe: be
|
|
1086
|
+
}, e = z(), l = n, r = ie(n, "modelValue"), o = k([]), s = k([]), _ = k([]), i = k(""), f = k("");
|
|
1087
|
+
function m() {
|
|
1098
1088
|
r.value = "table";
|
|
1099
1089
|
}
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1102
|
-
},
|
|
1090
|
+
const u = (v) => {
|
|
1091
|
+
_.value = v, b();
|
|
1092
|
+
}, h = (v) => {
|
|
1103
1093
|
v && v.length > 0 && (i.value = v[0], f.value = v[1]), b();
|
|
1104
1094
|
}, b = async () => {
|
|
1105
1095
|
const v = {
|
|
1106
|
-
report_uuid:
|
|
1096
|
+
report_uuid: l.reportId,
|
|
1107
1097
|
start_time: i.value,
|
|
1108
1098
|
end_time: f.value,
|
|
1109
|
-
select_data:
|
|
1110
|
-
}, x = await
|
|
1099
|
+
select_data: _.value.join(",")
|
|
1100
|
+
}, x = await Me(v), E = [];
|
|
1111
1101
|
x.data.forEach((w) => {
|
|
1112
|
-
(w.type === "report-select" || w.type === "range-time") &&
|
|
1113
|
-
}), o.value =
|
|
1102
|
+
(w.type === "report-select" || w.type === "range-time") && E.push(w);
|
|
1103
|
+
}), o.value = E, x.data.splice(0, o.value.length), s.value = x.data;
|
|
1114
1104
|
};
|
|
1115
1105
|
b();
|
|
1116
|
-
const
|
|
1106
|
+
const L = () => a("div", null, [D("未找到对应组件")]), V = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : a(L, null, null);
|
|
1117
1107
|
return (v, x) => {
|
|
1118
|
-
const
|
|
1119
|
-
return
|
|
1108
|
+
const E = d("el-button"), w = d("el-card");
|
|
1109
|
+
return c(), S(w, {
|
|
1120
1110
|
class: "editor view"
|
|
1121
1111
|
}, {
|
|
1122
|
-
default:
|
|
1112
|
+
default: p(() => [C("div", dt, [a(lt, {
|
|
1123
1113
|
data: s.value
|
|
1124
|
-
}, null, 8, ["data"]), C("div",
|
|
1114
|
+
}, null, 8, ["data"]), C("div", ct, [C("div", mt, [(c(!0), y(A, null, I(o.value, (T) => (c(), y("div", {
|
|
1125
1115
|
class: "item-input",
|
|
1126
|
-
key:
|
|
1127
|
-
}, [
|
|
1116
|
+
key: T.id
|
|
1117
|
+
}, [T.type === "report-select" ? (c(), S(K, {
|
|
1128
1118
|
key: 0,
|
|
1129
|
-
onChange:
|
|
1130
|
-
value:
|
|
1131
|
-
}, null, 8, ["value"])) : R("", !0),
|
|
1119
|
+
onChange: u,
|
|
1120
|
+
value: T
|
|
1121
|
+
}, null, 8, ["value"])) : R("", !0), T.type === "range-time" && g(e).filterForm.range_time ? (c(), S(Q, {
|
|
1132
1122
|
key: 1,
|
|
1133
|
-
onChange:
|
|
1134
|
-
value:
|
|
1135
|
-
}, null, 8, ["value"])) : R("", !0)]))), 128)), a(
|
|
1123
|
+
onChange: h,
|
|
1124
|
+
value: T
|
|
1125
|
+
}, null, 8, ["value"])) : R("", !0)]))), 128)), a(E, {
|
|
1136
1126
|
plain: "",
|
|
1137
|
-
onClick:
|
|
1127
|
+
onClick: m,
|
|
1138
1128
|
type: "primary",
|
|
1139
1129
|
class: "custom-btn",
|
|
1140
1130
|
style: {
|
|
1141
1131
|
"margin-left": "auto"
|
|
1142
1132
|
}
|
|
1143
1133
|
}, {
|
|
1144
|
-
default:
|
|
1134
|
+
default: p(() => x[0] || (x[0] = [D("退出预览")])),
|
|
1145
1135
|
_: 1
|
|
1146
|
-
})]), (
|
|
1147
|
-
key:
|
|
1148
|
-
class:
|
|
1149
|
-
id:
|
|
1150
|
-
}, [
|
|
1136
|
+
})]), (c(!0), y(A, null, I(s.value, (T) => (c(), y("div", {
|
|
1137
|
+
key: T.id,
|
|
1138
|
+
class: W(["editor-content", ["editor" + T.type]]),
|
|
1139
|
+
id: T.id
|
|
1140
|
+
}, [T.type !== "p" ? (c(), S(N(V(T.type)), {
|
|
1151
1141
|
key: 0,
|
|
1152
|
-
class:
|
|
1153
|
-
value:
|
|
1142
|
+
class: W(["editor" + T.type]),
|
|
1143
|
+
value: T
|
|
1154
1144
|
}, {
|
|
1155
|
-
default:
|
|
1145
|
+
default: p(() => [D(P(T.data), 1)]),
|
|
1156
1146
|
_: 2
|
|
1157
|
-
}, 1032, ["class", "value"])) : (
|
|
1147
|
+
}, 1032, ["class", "value"])) : (c(), y("p", {
|
|
1158
1148
|
key: 1,
|
|
1159
|
-
innerHTML:
|
|
1160
|
-
}, null, 8,
|
|
1149
|
+
innerHTML: T.data
|
|
1150
|
+
}, null, 8, ft))], 10, _t))), 128))])])]),
|
|
1161
1151
|
_: 1
|
|
1162
1152
|
});
|
|
1163
1153
|
};
|
|
1164
1154
|
}
|
|
1165
1155
|
});
|
|
1166
|
-
const
|
|
1156
|
+
const bt = /* @__PURE__ */ Y(vt, [["__scopeId", "data-v-2d59469a"]]), gt = {
|
|
1167
1157
|
class: "editor"
|
|
1168
|
-
},
|
|
1158
|
+
}, yt = {
|
|
1169
1159
|
class: "editor-content edit"
|
|
1170
|
-
},
|
|
1160
|
+
}, ht = ["onClick"], Ct = ["onClick"], wt = ["innerHTML", "draggable"], xt = /* @__PURE__ */ $({
|
|
1171
1161
|
__name: "Editor",
|
|
1172
|
-
setup(
|
|
1162
|
+
setup(n) {
|
|
1173
1163
|
const t = {
|
|
1174
|
-
Bar:
|
|
1175
|
-
Line:
|
|
1176
|
-
Pie:
|
|
1177
|
-
ReportSelect:
|
|
1178
|
-
RangeTime:
|
|
1179
|
-
ReportTable:
|
|
1180
|
-
ReportText:
|
|
1181
|
-
ReportChart:
|
|
1182
|
-
ReportDescribe:
|
|
1164
|
+
Bar: ce,
|
|
1165
|
+
Line: me,
|
|
1166
|
+
Pie: _e,
|
|
1167
|
+
ReportSelect: K,
|
|
1168
|
+
RangeTime: Q,
|
|
1169
|
+
ReportTable: fe,
|
|
1170
|
+
ReportText: X,
|
|
1171
|
+
ReportChart: ve,
|
|
1172
|
+
ReportDescribe: be
|
|
1183
1173
|
}, {
|
|
1184
1174
|
componentList: e,
|
|
1185
|
-
activeComponents:
|
|
1175
|
+
activeComponents: l,
|
|
1186
1176
|
notDraggableList: r,
|
|
1187
1177
|
titleComponent: o
|
|
1188
|
-
} =
|
|
1189
|
-
e.value.forEach((x,
|
|
1190
|
-
x.id === v && (e.value.splice(
|
|
1178
|
+
} = De(z()), s = z(), _ = (v) => {
|
|
1179
|
+
e.value.forEach((x, E) => {
|
|
1180
|
+
x.id === v && (e.value.splice(E, 1), s.activeComponents = []);
|
|
1191
1181
|
});
|
|
1192
1182
|
}, i = (v) => {
|
|
1193
1183
|
s.setActiveComponents(v);
|
|
1194
|
-
}, f = () => a("div", null, [
|
|
1184
|
+
}, f = () => a("div", null, [D("未找到对应组件")]), m = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : a(f, null, null), u = (v) => {
|
|
1195
1185
|
console.log(v, "evt");
|
|
1196
|
-
},
|
|
1197
|
-
|
|
1198
|
-
},
|
|
1199
|
-
v.newIndex !== 0 && (console.log(v),
|
|
1200
|
-
}, V =
|
|
1186
|
+
}, h = k(!1), b = () => {
|
|
1187
|
+
h.value = !0;
|
|
1188
|
+
}, L = (v) => {
|
|
1189
|
+
v.newIndex !== 0 && (console.log(v), h.value = !1);
|
|
1190
|
+
}, V = k();
|
|
1201
1191
|
return (v, x) => {
|
|
1202
|
-
const
|
|
1203
|
-
return
|
|
1204
|
-
class:
|
|
1205
|
-
active:
|
|
1192
|
+
const E = d("icon-material-symbols:cancel-outline");
|
|
1193
|
+
return c(), y("div", gt, [C("div", {
|
|
1194
|
+
class: W(["editor-content edit flex flex-start", [{
|
|
1195
|
+
active: g(l).id === "filter"
|
|
1206
1196
|
}]]),
|
|
1207
1197
|
onClick: x[0] || (x[0] = (w) => i({
|
|
1208
1198
|
id: "filter",
|
|
1209
1199
|
type: "filter"
|
|
1210
1200
|
}))
|
|
1211
|
-
}, [(
|
|
1201
|
+
}, [(c(!0), y(A, null, I(g(r), (w) => (c(), y("div", {
|
|
1212
1202
|
class: "item-input",
|
|
1213
1203
|
key: w.id
|
|
1214
|
-
}, [w.type === "report-select" || w.type === "range-time" &&
|
|
1204
|
+
}, [w.type === "report-select" || w.type === "range-time" && g(s).filterForm.range_time ? (c(), S(N(g(H)(t, w.type)), {
|
|
1215
1205
|
key: 0,
|
|
1216
1206
|
value: w
|
|
1217
1207
|
}, {
|
|
1218
|
-
default:
|
|
1208
|
+
default: p(() => [D(P(w.data), 1)]),
|
|
1219
1209
|
_: 2
|
|
1220
|
-
}, 1032, ["value"])) : R("", !0)]))), 128))], 2), C("div",
|
|
1221
|
-
value:
|
|
1222
|
-
onClick: x[1] || (x[1] = (w) => i(
|
|
1223
|
-
}, null, 8, ["value"])]), a(
|
|
1210
|
+
}, 1032, ["value"])) : R("", !0)]))), 128))], 2), C("div", yt, [a(X, {
|
|
1211
|
+
value: g(o),
|
|
1212
|
+
onClick: x[1] || (x[1] = (w) => i(g(o)))
|
|
1213
|
+
}, null, 8, ["value"])]), a(g(Ee), {
|
|
1224
1214
|
ref_key: "el",
|
|
1225
1215
|
ref: V,
|
|
1226
|
-
modelValue:
|
|
1227
|
-
"onUpdate:modelValue": x[2] || (x[2] = (w) =>
|
|
1228
|
-
"on-change":
|
|
1216
|
+
modelValue: g(e),
|
|
1217
|
+
"onUpdate:modelValue": x[2] || (x[2] = (w) => Ce(e) ? e.value = w : null),
|
|
1218
|
+
"on-change": u,
|
|
1229
1219
|
animation: 150,
|
|
1230
1220
|
onStart: b,
|
|
1231
|
-
onEnd:
|
|
1221
|
+
onEnd: L
|
|
1232
1222
|
}, {
|
|
1233
|
-
default:
|
|
1223
|
+
default: p(() => [(c(!0), y(A, null, I(g(e), (w) => (c(), y("div", {
|
|
1234
1224
|
key: w.id,
|
|
1235
|
-
class:
|
|
1236
|
-
active: w.id ===
|
|
1225
|
+
class: W(["editor-content edit", ["editor" + w.type, {
|
|
1226
|
+
active: w.id === g(l).id
|
|
1237
1227
|
}]]),
|
|
1238
|
-
onClick: (
|
|
1228
|
+
onClick: (T) => i(w)
|
|
1239
1229
|
}, [C("i", {
|
|
1240
|
-
onClick:
|
|
1241
|
-
}, [a(
|
|
1230
|
+
onClick: we((T) => _(w.id), ["stop"])
|
|
1231
|
+
}, [a(E, {
|
|
1242
1232
|
class: "color-red"
|
|
1243
|
-
})], 8,
|
|
1233
|
+
})], 8, Ct), w.type !== "p" ? (c(), S(N(m(w.type)), {
|
|
1244
1234
|
key: 0,
|
|
1245
|
-
class:
|
|
1235
|
+
class: W(["editor" + w.type]),
|
|
1246
1236
|
value: w,
|
|
1247
|
-
draggable:
|
|
1237
|
+
draggable: h.value
|
|
1248
1238
|
}, {
|
|
1249
|
-
default:
|
|
1239
|
+
default: p(() => [D(P(w.data), 1)]),
|
|
1250
1240
|
_: 2
|
|
1251
|
-
}, 1032, ["class", "value", "draggable"])) : (
|
|
1241
|
+
}, 1032, ["class", "value", "draggable"])) : (c(), y("p", {
|
|
1252
1242
|
key: 1,
|
|
1253
1243
|
innerHTML: w.data,
|
|
1254
|
-
draggable:
|
|
1255
|
-
}, null, 8,
|
|
1244
|
+
draggable: h.value
|
|
1245
|
+
}, null, 8, wt))], 10, ht))), 128))]),
|
|
1256
1246
|
_: 1
|
|
1257
1247
|
}, 8, ["modelValue"])]);
|
|
1258
1248
|
};
|
|
1259
1249
|
}
|
|
1260
|
-
}),
|
|
1250
|
+
}), Vt = { class: "label" }, St = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, kt = { class: "flex item-switch" }, ge = /* @__PURE__ */ $({
|
|
1261
1251
|
__name: "SettingTable",
|
|
1262
|
-
setup(
|
|
1263
|
-
const t =
|
|
1264
|
-
return (
|
|
1265
|
-
const o =
|
|
1266
|
-
return
|
|
1252
|
+
setup(n) {
|
|
1253
|
+
const t = z(), e = F(() => t.getActiveComponents);
|
|
1254
|
+
return (l, r) => {
|
|
1255
|
+
const o = d("el-switch"), s = d("el-form-item"), _ = d("el-divider");
|
|
1256
|
+
return c(), y("div", null, [
|
|
1267
1257
|
a(s, { label: "控制列" }, {
|
|
1268
|
-
default:
|
|
1269
|
-
(
|
|
1258
|
+
default: p(() => [
|
|
1259
|
+
(c(!0), y(A, null, I(e.value.showColumn, (i, f) => (c(), y("p", {
|
|
1270
1260
|
class: "flex item-switch",
|
|
1271
1261
|
key: f
|
|
1272
1262
|
}, [
|
|
1273
|
-
C("span",
|
|
1263
|
+
C("span", Vt, P(i.name), 1),
|
|
1274
1264
|
a(o, {
|
|
1275
1265
|
modelValue: e.value.options.showColumn[i.key],
|
|
1276
|
-
"onUpdate:modelValue": (
|
|
1266
|
+
"onUpdate:modelValue": (m) => e.value.options.showColumn[i.key] = m
|
|
1277
1267
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1278
1268
|
]))), 128))
|
|
1279
1269
|
]),
|
|
1280
1270
|
_: 1
|
|
1281
1271
|
}),
|
|
1282
|
-
a(
|
|
1272
|
+
a(_),
|
|
1283
1273
|
a(s, { label: "表格样式" }, {
|
|
1284
|
-
default:
|
|
1285
|
-
C("p",
|
|
1274
|
+
default: p(() => [
|
|
1275
|
+
C("p", St, [
|
|
1286
1276
|
r[3] || (r[3] = C("span", { class: "label" }, "斑马纹", -1)),
|
|
1287
1277
|
a(o, {
|
|
1288
1278
|
modelValue: e.value.options.stripe,
|
|
1289
1279
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
|
|
1290
1280
|
}, null, 8, ["modelValue"])
|
|
1291
1281
|
]),
|
|
1292
|
-
C("p",
|
|
1282
|
+
C("p", $t, [
|
|
1293
1283
|
r[4] || (r[4] = C("span", { class: "label" }, "边框", -1)),
|
|
1294
1284
|
a(o, {
|
|
1295
1285
|
modelValue: e.value.options.border,
|
|
1296
1286
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
|
|
1297
1287
|
}, null, 8, ["modelValue"])
|
|
1298
1288
|
]),
|
|
1299
|
-
C("p",
|
|
1289
|
+
C("p", kt, [
|
|
1300
1290
|
r[5] || (r[5] = C("span", { class: "label" }, "表头", -1)),
|
|
1301
1291
|
a(o, {
|
|
1302
1292
|
modelValue: e.value.options.showHeader,
|
|
@@ -1309,18 +1299,18 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1309
1299
|
]);
|
|
1310
1300
|
};
|
|
1311
1301
|
}
|
|
1312
|
-
}),
|
|
1302
|
+
}), Tt = { key: 0 }, Lt = /* @__PURE__ */ $({
|
|
1313
1303
|
__name: "ChartsUniConfig",
|
|
1314
|
-
setup(
|
|
1315
|
-
const t =
|
|
1316
|
-
function
|
|
1304
|
+
setup(n) {
|
|
1305
|
+
const t = z(), e = F(() => t.activeComponents);
|
|
1306
|
+
function l(r) {
|
|
1317
1307
|
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);
|
|
1318
1308
|
}
|
|
1319
|
-
return
|
|
1320
|
-
const s =
|
|
1321
|
-
return e.value.options.title ? (
|
|
1322
|
-
a(
|
|
1323
|
-
default:
|
|
1309
|
+
return k("rgb(46, 145, 255)"), (r, o) => {
|
|
1310
|
+
const s = d("el-input"), _ = d("el-form-item"), i = d("el-switch"), f = d("el-col"), m = d("el-color-picker"), u = d("el-input-number"), h = d("el-row"), b = d("el-collapse-item"), L = d("el-collapse");
|
|
1311
|
+
return e.value.options.title ? (c(), y("div", Tt, [
|
|
1312
|
+
a(_, { label: "标题" }, {
|
|
1313
|
+
default: p(() => [
|
|
1324
1314
|
a(s, {
|
|
1325
1315
|
modelValue: e.value.options.title.text,
|
|
1326
1316
|
"onUpdate:modelValue": o[0] || (o[0] = (V) => e.value.options.title.text = V)
|
|
@@ -1328,17 +1318,17 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1328
1318
|
]),
|
|
1329
1319
|
_: 1
|
|
1330
1320
|
}),
|
|
1331
|
-
a(
|
|
1332
|
-
default:
|
|
1321
|
+
a(L, null, {
|
|
1322
|
+
default: p(() => [
|
|
1333
1323
|
a(b, {
|
|
1334
1324
|
title: "标题配置",
|
|
1335
1325
|
name: "1"
|
|
1336
1326
|
}, {
|
|
1337
|
-
default:
|
|
1338
|
-
a(
|
|
1339
|
-
default:
|
|
1327
|
+
default: p(() => [
|
|
1328
|
+
a(h, { class: "w-100%" }, {
|
|
1329
|
+
default: p(() => [
|
|
1340
1330
|
a(f, { span: 24 }, {
|
|
1341
|
-
default:
|
|
1331
|
+
default: p(() => [
|
|
1342
1332
|
o[8] || (o[8] = C("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1343
1333
|
a(i, {
|
|
1344
1334
|
modelValue: e.value.options.title.show,
|
|
@@ -1348,8 +1338,8 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1348
1338
|
_: 1
|
|
1349
1339
|
}),
|
|
1350
1340
|
a(f, { span: 12 }, {
|
|
1351
|
-
default:
|
|
1352
|
-
a(
|
|
1341
|
+
default: p(() => [
|
|
1342
|
+
a(m, {
|
|
1353
1343
|
modelValue: e.value.options.title.textStyle.color,
|
|
1354
1344
|
"onUpdate:modelValue": o[2] || (o[2] = (V) => e.value.options.title.textStyle.color = V),
|
|
1355
1345
|
"show-alpha": ""
|
|
@@ -1359,8 +1349,8 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1359
1349
|
_: 1
|
|
1360
1350
|
}),
|
|
1361
1351
|
a(f, { span: 12 }, {
|
|
1362
|
-
default:
|
|
1363
|
-
a(
|
|
1352
|
+
default: p(() => [
|
|
1353
|
+
a(u, {
|
|
1364
1354
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1365
1355
|
"onUpdate:modelValue": o[3] || (o[3] = (V) => e.value.options.title.textStyle.fontSize = V),
|
|
1366
1356
|
"controls-position": "right"
|
|
@@ -1370,8 +1360,8 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1370
1360
|
_: 1
|
|
1371
1361
|
}),
|
|
1372
1362
|
a(f, { span: 12 }, {
|
|
1373
|
-
default:
|
|
1374
|
-
a(
|
|
1363
|
+
default: p(() => [
|
|
1364
|
+
a(u, {
|
|
1375
1365
|
modelValue: e.value.options.title.x,
|
|
1376
1366
|
"onUpdate:modelValue": o[4] || (o[4] = (V) => e.value.options.title.x = V),
|
|
1377
1367
|
"controls-position": "right"
|
|
@@ -1381,8 +1371,8 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1381
1371
|
_: 1
|
|
1382
1372
|
}),
|
|
1383
1373
|
a(f, { span: 12 }, {
|
|
1384
|
-
default:
|
|
1385
|
-
a(
|
|
1374
|
+
default: p(() => [
|
|
1375
|
+
a(u, {
|
|
1386
1376
|
modelValue: e.value.options.title.y,
|
|
1387
1377
|
"onUpdate:modelValue": o[5] || (o[5] = (V) => e.value.options.title.y = V),
|
|
1388
1378
|
"controls-position": "right"
|
|
@@ -1401,14 +1391,14 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1401
1391
|
title: "图形配置",
|
|
1402
1392
|
name: "2"
|
|
1403
1393
|
}, {
|
|
1404
|
-
default:
|
|
1405
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (
|
|
1406
|
-
default:
|
|
1394
|
+
default: p(() => [
|
|
1395
|
+
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (c(), S(h, { key: 0 }, {
|
|
1396
|
+
default: p(() => [
|
|
1407
1397
|
a(f, { span: 24 }, {
|
|
1408
|
-
default:
|
|
1398
|
+
default: p(() => [
|
|
1409
1399
|
o[13] || (o[13] = C("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
1410
1400
|
a(i, {
|
|
1411
|
-
onChange:
|
|
1401
|
+
onChange: l,
|
|
1412
1402
|
modelValue: e.value.options.series[0].roseType,
|
|
1413
1403
|
"onUpdate:modelValue": o[6] || (o[6] = (V) => e.value.options.series[0].roseType = V)
|
|
1414
1404
|
}, null, 8, ["modelValue"])
|
|
@@ -1425,13 +1415,13 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1425
1415
|
title: "图例配置",
|
|
1426
1416
|
name: "3"
|
|
1427
1417
|
}, {
|
|
1428
|
-
default:
|
|
1429
|
-
a(
|
|
1430
|
-
default:
|
|
1418
|
+
default: p(() => [
|
|
1419
|
+
a(h, null, {
|
|
1420
|
+
default: p(() => [
|
|
1431
1421
|
a(f, { span: 24 }, {
|
|
1432
|
-
default:
|
|
1422
|
+
default: p(() => [
|
|
1433
1423
|
o[14] || (o[14] = C("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1434
|
-
e.value.options.legend ? (
|
|
1424
|
+
e.value.options.legend ? (c(), S(i, {
|
|
1435
1425
|
key: 0,
|
|
1436
1426
|
modelValue: e.value.options.legend.show,
|
|
1437
1427
|
"onUpdate:modelValue": o[7] || (o[7] = (V) => e.value.options.legend.show = V)
|
|
@@ -1452,36 +1442,36 @@ const ht = /* @__PURE__ */ G(yt, [["__scopeId", "data-v-2d59469a"]]), Ct = {
|
|
|
1452
1442
|
};
|
|
1453
1443
|
}
|
|
1454
1444
|
});
|
|
1455
|
-
const
|
|
1445
|
+
const Rt = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-e9859d3b"]]), ye = /* @__PURE__ */ $({
|
|
1456
1446
|
__name: "SettingDescribe",
|
|
1457
|
-
setup(
|
|
1458
|
-
const t =
|
|
1459
|
-
return (
|
|
1460
|
-
const o =
|
|
1461
|
-
return
|
|
1447
|
+
setup(n) {
|
|
1448
|
+
const t = z(), e = F(() => t.getActiveComponents);
|
|
1449
|
+
return (l, r) => {
|
|
1450
|
+
const o = d("el-input"), s = d("el-form-item"), _ = d("el-switch"), i = d("el-input-number"), f = d("el-radio"), m = d("el-radio-group");
|
|
1451
|
+
return c(), y("div", null, [
|
|
1462
1452
|
a(s, { label: "标题" }, {
|
|
1463
|
-
default:
|
|
1453
|
+
default: p(() => [
|
|
1464
1454
|
a(o, {
|
|
1465
1455
|
modelValue: e.value.options.title,
|
|
1466
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1456
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => e.value.options.title = u)
|
|
1467
1457
|
}, null, 8, ["modelValue"])
|
|
1468
1458
|
]),
|
|
1469
1459
|
_: 1
|
|
1470
1460
|
}),
|
|
1471
1461
|
a(s, { label: "边框" }, {
|
|
1472
|
-
default:
|
|
1473
|
-
a(
|
|
1462
|
+
default: p(() => [
|
|
1463
|
+
a(_, {
|
|
1474
1464
|
modelValue: e.value.options.border,
|
|
1475
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1465
|
+
"onUpdate:modelValue": r[1] || (r[1] = (u) => e.value.options.border = u)
|
|
1476
1466
|
}, null, 8, ["modelValue"])
|
|
1477
1467
|
]),
|
|
1478
1468
|
_: 1
|
|
1479
1469
|
}),
|
|
1480
1470
|
a(s, { label: "每行展示数量" }, {
|
|
1481
|
-
default:
|
|
1471
|
+
default: p(() => [
|
|
1482
1472
|
a(i, {
|
|
1483
1473
|
modelValue: e.value.options.column,
|
|
1484
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1474
|
+
"onUpdate:modelValue": r[2] || (r[2] = (u) => e.value.options.column = u),
|
|
1485
1475
|
min: 1,
|
|
1486
1476
|
max: 10,
|
|
1487
1477
|
controls: !1
|
|
@@ -1490,21 +1480,21 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1490
1480
|
_: 1
|
|
1491
1481
|
}),
|
|
1492
1482
|
a(s, { label: "排列方向" }, {
|
|
1493
|
-
default:
|
|
1494
|
-
a(
|
|
1483
|
+
default: p(() => [
|
|
1484
|
+
a(m, {
|
|
1495
1485
|
modelValue: e.value.options.direction,
|
|
1496
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
1486
|
+
"onUpdate:modelValue": r[3] || (r[3] = (u) => e.value.options.direction = u)
|
|
1497
1487
|
}, {
|
|
1498
|
-
default:
|
|
1488
|
+
default: p(() => [
|
|
1499
1489
|
a(f, { value: "horizontal" }, {
|
|
1500
|
-
default:
|
|
1501
|
-
|
|
1490
|
+
default: p(() => r[4] || (r[4] = [
|
|
1491
|
+
D("横向")
|
|
1502
1492
|
])),
|
|
1503
1493
|
_: 1
|
|
1504
1494
|
}),
|
|
1505
1495
|
a(f, { value: "vertical" }, {
|
|
1506
|
-
default:
|
|
1507
|
-
|
|
1496
|
+
default: p(() => r[5] || (r[5] = [
|
|
1497
|
+
D("纵向")
|
|
1508
1498
|
])),
|
|
1509
1499
|
_: 1
|
|
1510
1500
|
})
|
|
@@ -1517,66 +1507,66 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1517
1507
|
]);
|
|
1518
1508
|
};
|
|
1519
1509
|
}
|
|
1520
|
-
}),
|
|
1510
|
+
}), Ut = /* @__PURE__ */ $({
|
|
1521
1511
|
__name: "SettingCharts",
|
|
1522
|
-
setup(
|
|
1523
|
-
const t =
|
|
1512
|
+
setup(n) {
|
|
1513
|
+
const t = z(), e = k(!1), l = F(() => t.getActiveComponents), r = [
|
|
1524
1514
|
{ value: "report-describe", name: "描述列表" },
|
|
1525
1515
|
{ value: "report-table", name: "表格" },
|
|
1526
1516
|
{ value: "line", name: "趋势图" },
|
|
1527
1517
|
{ value: "pie", name: "扇形图" },
|
|
1528
1518
|
{ value: "bar", name: "柱状图" }
|
|
1529
|
-
], o =
|
|
1530
|
-
async function m
|
|
1531
|
-
const
|
|
1532
|
-
prod_type:
|
|
1533
|
-
chart_type:
|
|
1519
|
+
], o = k(""), s = k();
|
|
1520
|
+
async function _(m) {
|
|
1521
|
+
const u = await ue({
|
|
1522
|
+
prod_type: window.$prodType,
|
|
1523
|
+
chart_type: m,
|
|
1534
1524
|
filter_uuid: t.filterForm.filter_uuid
|
|
1535
1525
|
});
|
|
1536
|
-
s.value =
|
|
1526
|
+
s.value = u.data;
|
|
1537
1527
|
}
|
|
1538
|
-
function i(
|
|
1539
|
-
let
|
|
1540
|
-
const
|
|
1541
|
-
if (
|
|
1528
|
+
function i(m) {
|
|
1529
|
+
let u = s.value.find((b) => b.rp_item_uuid === m);
|
|
1530
|
+
const h = u.rp_item_content;
|
|
1531
|
+
if (u.rp_item_content.type, h.type === "report-table") {
|
|
1542
1532
|
const b = {};
|
|
1543
|
-
|
|
1544
|
-
b[
|
|
1545
|
-
}),
|
|
1533
|
+
h.showColumn.forEach((L) => {
|
|
1534
|
+
b[L.key] = !0;
|
|
1535
|
+
}), h.options = { ...h.options, showColumn: b, border: !0, showHeader: !0, stripe: !1 };
|
|
1546
1536
|
}
|
|
1547
|
-
|
|
1537
|
+
h.type === "report-describe" && (h.options = { ...h.options, title: "", border: !0, column: 1, direction: "horizontal", ...l.value.options }), Object.assign(t.activeComponents, h), t.activeComponents.rp_item_uuid = u.rp_item_uuid;
|
|
1548
1538
|
}
|
|
1549
|
-
|
|
1550
|
-
o.value =
|
|
1539
|
+
Z(async () => {
|
|
1540
|
+
o.value = l.value.type, await _(o.value);
|
|
1551
1541
|
});
|
|
1552
|
-
async function f(
|
|
1542
|
+
async function f(m) {
|
|
1553
1543
|
try {
|
|
1554
|
-
e.value = !0, await m
|
|
1544
|
+
e.value = !0, await _(m), Object.assign(t.activeComponents, Ze(m)), e.value = !1;
|
|
1555
1545
|
} catch {
|
|
1556
1546
|
e.value = !1;
|
|
1557
1547
|
}
|
|
1558
1548
|
}
|
|
1559
|
-
return
|
|
1560
|
-
() =>
|
|
1561
|
-
(
|
|
1562
|
-
console.log(
|
|
1549
|
+
return xe(
|
|
1550
|
+
() => l.value,
|
|
1551
|
+
(m) => {
|
|
1552
|
+
console.log(m, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(m.type) && (o.value = l.value.type, _(o.value));
|
|
1563
1553
|
}
|
|
1564
|
-
), (
|
|
1565
|
-
const
|
|
1566
|
-
return
|
|
1554
|
+
), (m, u) => {
|
|
1555
|
+
const h = d("el-option"), b = d("el-select"), L = d("el-form-item"), V = d("el-form"), v = Ve("loading");
|
|
1556
|
+
return Se((c(), y("div", null, [
|
|
1567
1557
|
a(V, { "label-position": "top" }, {
|
|
1568
|
-
default:
|
|
1569
|
-
a(
|
|
1570
|
-
default:
|
|
1558
|
+
default: p(() => [
|
|
1559
|
+
a(L, { label: "图表类型" }, {
|
|
1560
|
+
default: p(() => [
|
|
1571
1561
|
a(b, {
|
|
1572
1562
|
style: { width: "100%" },
|
|
1573
1563
|
modelValue: o.value,
|
|
1574
|
-
"onUpdate:modelValue":
|
|
1564
|
+
"onUpdate:modelValue": u[0] || (u[0] = (x) => o.value = x),
|
|
1575
1565
|
onChange: f
|
|
1576
1566
|
}, {
|
|
1577
|
-
default:
|
|
1578
|
-
(
|
|
1579
|
-
key:
|
|
1567
|
+
default: p(() => [
|
|
1568
|
+
(c(), y(A, null, I(r, (x, E) => a(h, {
|
|
1569
|
+
key: E,
|
|
1580
1570
|
label: x.name,
|
|
1581
1571
|
value: x.value
|
|
1582
1572
|
}, null, 8, ["label", "value"])), 64))
|
|
@@ -1586,17 +1576,17 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1586
1576
|
]),
|
|
1587
1577
|
_: 1
|
|
1588
1578
|
}),
|
|
1589
|
-
a(
|
|
1590
|
-
default:
|
|
1579
|
+
a(L, { label: "组件库" }, {
|
|
1580
|
+
default: p(() => [
|
|
1591
1581
|
a(b, {
|
|
1592
1582
|
style: { width: "100%" },
|
|
1593
|
-
modelValue:
|
|
1594
|
-
"onUpdate:modelValue":
|
|
1583
|
+
modelValue: g(t).activeComponents.rp_item_uuid,
|
|
1584
|
+
"onUpdate:modelValue": u[1] || (u[1] = (x) => g(t).activeComponents.rp_item_uuid = x),
|
|
1595
1585
|
onChange: i
|
|
1596
1586
|
}, {
|
|
1597
|
-
default:
|
|
1598
|
-
(
|
|
1599
|
-
key:
|
|
1587
|
+
default: p(() => [
|
|
1588
|
+
(c(!0), y(A, null, I(s.value, (x, E) => (c(), S(h, {
|
|
1589
|
+
key: E,
|
|
1600
1590
|
label: x.rp_item_name,
|
|
1601
1591
|
value: x.rp_item_uuid
|
|
1602
1592
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1606,9 +1596,9 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1606
1596
|
]),
|
|
1607
1597
|
_: 1
|
|
1608
1598
|
}),
|
|
1609
|
-
o.value === "report-table" &&
|
|
1610
|
-
o.value === "pie" || o.value === "bar" || o.value === "line" ? (
|
|
1611
|
-
o.value === "report-describe" ? (
|
|
1599
|
+
o.value === "report-table" && l.value.options.showColumn ? (c(), S(ge, { key: 0 })) : R("", !0),
|
|
1600
|
+
o.value === "pie" || o.value === "bar" || o.value === "line" ? (c(), S(Rt, { key: 1 })) : R("", !0),
|
|
1601
|
+
o.value === "report-describe" ? (c(), S(ye, { key: 2 })) : R("", !0)
|
|
1612
1602
|
]),
|
|
1613
1603
|
_: 1
|
|
1614
1604
|
})
|
|
@@ -1617,17 +1607,17 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1617
1607
|
]);
|
|
1618
1608
|
};
|
|
1619
1609
|
}
|
|
1620
|
-
}),
|
|
1610
|
+
}), Dt = { key: 0 }, At = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, le = "default", Et = /* @__PURE__ */ $({
|
|
1621
1611
|
__name: "SettingText",
|
|
1622
|
-
setup(
|
|
1623
|
-
const t =
|
|
1624
|
-
function r(
|
|
1625
|
-
const
|
|
1626
|
-
t.activeComponents.uri =
|
|
1612
|
+
setup(n) {
|
|
1613
|
+
const t = z(), e = $e(), l = k();
|
|
1614
|
+
function r(m) {
|
|
1615
|
+
const u = l.value.find((h) => h.rp_item_uuid === m);
|
|
1616
|
+
t.activeComponents.uri = u.rp_item_content.uri, e.value.setHtml((u == null ? void 0 : u.rp_item_content.data) || "");
|
|
1627
1617
|
}
|
|
1628
1618
|
async function o() {
|
|
1629
|
-
const
|
|
1630
|
-
|
|
1619
|
+
const m = await ue({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
|
|
1620
|
+
l.value = m.data;
|
|
1631
1621
|
}
|
|
1632
1622
|
o();
|
|
1633
1623
|
const s = {
|
|
@@ -1652,28 +1642,28 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1652
1642
|
"justifyJustify",
|
|
1653
1643
|
"lineHeight"
|
|
1654
1644
|
]
|
|
1655
|
-
},
|
|
1656
|
-
e.value =
|
|
1657
|
-
}, f = (
|
|
1645
|
+
}, _ = { placeholder: "请输入内容..." }, i = (m) => {
|
|
1646
|
+
e.value = m;
|
|
1647
|
+
}, f = (m) => {
|
|
1658
1648
|
};
|
|
1659
|
-
return
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
}), (
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1649
|
+
return ke(() => {
|
|
1650
|
+
const m = e.value;
|
|
1651
|
+
m != null && m.destroy();
|
|
1652
|
+
}), (m, u) => {
|
|
1653
|
+
const h = d("el-option"), b = d("el-select"), L = d("el-form-item"), V = d("el-form");
|
|
1654
|
+
return g(t).activeComponents.id ? (c(), y("div", Dt, [
|
|
1665
1655
|
a(V, { "label-position": "top" }, {
|
|
1666
|
-
default:
|
|
1667
|
-
a(
|
|
1668
|
-
default:
|
|
1656
|
+
default: p(() => [
|
|
1657
|
+
a(L, { label: "组件库" }, {
|
|
1658
|
+
default: p(() => [
|
|
1669
1659
|
a(b, {
|
|
1670
1660
|
style: { width: "100%" },
|
|
1671
|
-
modelValue:
|
|
1672
|
-
"onUpdate:modelValue":
|
|
1661
|
+
modelValue: g(t).activeComponents.rp_item_uuid,
|
|
1662
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => g(t).activeComponents.rp_item_uuid = v),
|
|
1673
1663
|
onChange: r
|
|
1674
1664
|
}, {
|
|
1675
|
-
default:
|
|
1676
|
-
(
|
|
1665
|
+
default: p(() => [
|
|
1666
|
+
(c(!0), y(A, null, I(l.value, (v, x) => (c(), S(h, {
|
|
1677
1667
|
key: x,
|
|
1678
1668
|
label: v.rp_item_name,
|
|
1679
1669
|
value: v.rp_item_uuid
|
|
@@ -1684,22 +1674,22 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1684
1674
|
]),
|
|
1685
1675
|
_: 1
|
|
1686
1676
|
}),
|
|
1687
|
-
a(
|
|
1688
|
-
default:
|
|
1689
|
-
C("div",
|
|
1690
|
-
a(
|
|
1677
|
+
a(L, { label: "文本内容" }, {
|
|
1678
|
+
default: p(() => [
|
|
1679
|
+
C("div", At, [
|
|
1680
|
+
a(g(Fe), {
|
|
1691
1681
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1692
1682
|
editor: e.value,
|
|
1693
1683
|
"default-config": s,
|
|
1694
|
-
mode:
|
|
1684
|
+
mode: le
|
|
1695
1685
|
}, null, 8, ["editor"]),
|
|
1696
|
-
a(
|
|
1686
|
+
a(g(Ie), {
|
|
1697
1687
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1698
1688
|
onOnChange: f,
|
|
1699
|
-
modelValue:
|
|
1700
|
-
"onUpdate:modelValue":
|
|
1701
|
-
"default-config":
|
|
1702
|
-
mode:
|
|
1689
|
+
modelValue: g(t).activeComponents.data,
|
|
1690
|
+
"onUpdate:modelValue": u[1] || (u[1] = (v) => g(t).activeComponents.data = v),
|
|
1691
|
+
"default-config": _,
|
|
1692
|
+
mode: le,
|
|
1703
1693
|
onOnCreated: i
|
|
1704
1694
|
}, null, 8, ["modelValue"])
|
|
1705
1695
|
])
|
|
@@ -1712,33 +1702,33 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1712
1702
|
])) : R("", !0);
|
|
1713
1703
|
};
|
|
1714
1704
|
}
|
|
1715
|
-
}),
|
|
1705
|
+
}), Ft = /* @__PURE__ */ $({
|
|
1716
1706
|
__name: "SettingFilter",
|
|
1717
|
-
setup(
|
|
1718
|
-
const t =
|
|
1719
|
-
async function
|
|
1720
|
-
const r = await
|
|
1707
|
+
setup(n) {
|
|
1708
|
+
const t = k([]), e = z();
|
|
1709
|
+
async function l() {
|
|
1710
|
+
const r = await We({ prod_type: window.$prodType });
|
|
1721
1711
|
t.value = r.data;
|
|
1722
1712
|
}
|
|
1723
|
-
return
|
|
1724
|
-
const s =
|
|
1725
|
-
return
|
|
1713
|
+
return l(), (r, o) => {
|
|
1714
|
+
const s = d("el-option"), _ = d("el-select"), i = d("el-form-item"), f = d("el-checkbox"), m = d("el-form");
|
|
1715
|
+
return c(), S(m, {
|
|
1726
1716
|
"label-width": "80px",
|
|
1727
1717
|
"label-position": "top"
|
|
1728
1718
|
}, {
|
|
1729
|
-
default:
|
|
1719
|
+
default: p(() => [
|
|
1730
1720
|
a(i, { label: "筛选条件" }, {
|
|
1731
|
-
default:
|
|
1732
|
-
a(
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1735
|
-
disabled: !!
|
|
1721
|
+
default: p(() => [
|
|
1722
|
+
a(_, {
|
|
1723
|
+
modelValue: g(e).filterForm.filter_uuid,
|
|
1724
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => g(e).filterForm.filter_uuid = u),
|
|
1725
|
+
disabled: !!g(e).filterForm.filter_uuid
|
|
1736
1726
|
}, {
|
|
1737
|
-
default:
|
|
1738
|
-
(
|
|
1739
|
-
key:
|
|
1740
|
-
label:
|
|
1741
|
-
value:
|
|
1727
|
+
default: p(() => [
|
|
1728
|
+
(c(!0), y(A, null, I(t.value, (u) => (c(), S(s, {
|
|
1729
|
+
key: u.filter_uuid,
|
|
1730
|
+
label: u.filter_name,
|
|
1731
|
+
value: u.filter_uuid
|
|
1742
1732
|
}, null, 8, ["label", "value"]))), 128))
|
|
1743
1733
|
]),
|
|
1744
1734
|
_: 1
|
|
@@ -1747,10 +1737,10 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1747
1737
|
_: 1
|
|
1748
1738
|
}),
|
|
1749
1739
|
a(i, null, {
|
|
1750
|
-
default:
|
|
1740
|
+
default: p(() => [
|
|
1751
1741
|
a(f, {
|
|
1752
|
-
modelValue:
|
|
1753
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1742
|
+
modelValue: g(e).filterForm.range_time,
|
|
1743
|
+
"onUpdate:modelValue": o[1] || (o[1] = (u) => g(e).filterForm.range_time = u),
|
|
1754
1744
|
"true-value": 1,
|
|
1755
1745
|
"false-value": 0,
|
|
1756
1746
|
label: "时间范围"
|
|
@@ -1763,22 +1753,22 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1763
1753
|
});
|
|
1764
1754
|
};
|
|
1765
1755
|
}
|
|
1766
|
-
}),
|
|
1756
|
+
}), It = /* @__PURE__ */ $({
|
|
1767
1757
|
__name: "SettingTitle",
|
|
1768
|
-
setup(
|
|
1769
|
-
const t =
|
|
1770
|
-
return (e,
|
|
1771
|
-
const r =
|
|
1772
|
-
return
|
|
1758
|
+
setup(n) {
|
|
1759
|
+
const t = z();
|
|
1760
|
+
return (e, l) => {
|
|
1761
|
+
const r = d("el-input"), o = d("el-form-item"), s = d("el-color-picker"), _ = d("el-col"), i = d("el-input-number"), f = d("el-option"), m = d("el-select"), u = d("el-row"), h = d("el-form");
|
|
1762
|
+
return c(), S(h, {
|
|
1773
1763
|
"label-width": "auto",
|
|
1774
1764
|
"label-position": "top"
|
|
1775
1765
|
}, {
|
|
1776
|
-
default:
|
|
1766
|
+
default: p(() => [
|
|
1777
1767
|
a(o, { label: "名称" }, {
|
|
1778
|
-
default:
|
|
1768
|
+
default: p(() => [
|
|
1779
1769
|
a(r, {
|
|
1780
|
-
modelValue:
|
|
1781
|
-
"onUpdate:modelValue":
|
|
1770
|
+
modelValue: g(t).activeComponents.data,
|
|
1771
|
+
"onUpdate:modelValue": l[0] || (l[0] = (b) => g(t).activeComponents.data = b),
|
|
1782
1772
|
placeholder: "Please input",
|
|
1783
1773
|
maxlength: "24",
|
|
1784
1774
|
"show-word-limit": ""
|
|
@@ -1787,38 +1777,38 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1787
1777
|
_: 1
|
|
1788
1778
|
}),
|
|
1789
1779
|
a(o, { label: "样式" }, {
|
|
1790
|
-
default:
|
|
1791
|
-
a(
|
|
1792
|
-
default:
|
|
1793
|
-
a(
|
|
1794
|
-
default:
|
|
1780
|
+
default: p(() => [
|
|
1781
|
+
a(u, { gutter: 20 }, {
|
|
1782
|
+
default: p(() => [
|
|
1783
|
+
a(_, { span: 12 }, {
|
|
1784
|
+
default: p(() => [
|
|
1795
1785
|
a(s, {
|
|
1796
|
-
modelValue:
|
|
1797
|
-
"onUpdate:modelValue":
|
|
1786
|
+
modelValue: g(t).activeComponents.options.color,
|
|
1787
|
+
"onUpdate:modelValue": l[1] || (l[1] = (b) => g(t).activeComponents.options.color = b),
|
|
1798
1788
|
"show-alpha": ""
|
|
1799
1789
|
}, null, 8, ["modelValue"]),
|
|
1800
|
-
|
|
1790
|
+
l[7] || (l[7] = C("p", { class: "sub-title" }, "颜色", -1))
|
|
1801
1791
|
]),
|
|
1802
1792
|
_: 1
|
|
1803
1793
|
}),
|
|
1804
|
-
a(
|
|
1805
|
-
default:
|
|
1794
|
+
a(_, { span: 12 }, {
|
|
1795
|
+
default: p(() => [
|
|
1806
1796
|
a(i, {
|
|
1807
|
-
modelValue:
|
|
1808
|
-
"onUpdate:modelValue":
|
|
1797
|
+
modelValue: g(t).activeComponents.options.size,
|
|
1798
|
+
"onUpdate:modelValue": l[2] || (l[2] = (b) => g(t).activeComponents.options.size = b),
|
|
1809
1799
|
"controls-position": "right"
|
|
1810
1800
|
}, null, 8, ["modelValue"]),
|
|
1811
|
-
|
|
1801
|
+
l[8] || (l[8] = C("p", { class: "sub-title" }, "字体大小", -1))
|
|
1812
1802
|
]),
|
|
1813
1803
|
_: 1
|
|
1814
1804
|
}),
|
|
1815
|
-
a(
|
|
1816
|
-
default:
|
|
1817
|
-
a(
|
|
1818
|
-
modelValue:
|
|
1819
|
-
"onUpdate:modelValue":
|
|
1805
|
+
a(_, { span: 12 }, {
|
|
1806
|
+
default: p(() => [
|
|
1807
|
+
a(m, {
|
|
1808
|
+
modelValue: g(t).activeComponents.options.fontWeight,
|
|
1809
|
+
"onUpdate:modelValue": l[3] || (l[3] = (b) => g(t).activeComponents.options.fontWeight = b)
|
|
1820
1810
|
}, {
|
|
1821
|
-
default:
|
|
1811
|
+
default: p(() => [
|
|
1822
1812
|
a(f, {
|
|
1823
1813
|
label: "常规",
|
|
1824
1814
|
value: 500
|
|
@@ -1830,39 +1820,39 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1830
1820
|
]),
|
|
1831
1821
|
_: 1
|
|
1832
1822
|
}, 8, ["modelValue"]),
|
|
1833
|
-
|
|
1823
|
+
l[9] || (l[9] = C("p", { class: "sub-title" }, "字体粗细", -1))
|
|
1834
1824
|
]),
|
|
1835
1825
|
_: 1
|
|
1836
1826
|
}),
|
|
1837
|
-
a(
|
|
1838
|
-
default:
|
|
1827
|
+
a(_, { span: 12 }, {
|
|
1828
|
+
default: p(() => [
|
|
1839
1829
|
a(i, {
|
|
1840
|
-
modelValue:
|
|
1841
|
-
"onUpdate:modelValue":
|
|
1830
|
+
modelValue: g(t).activeComponents.options.letterSpacing,
|
|
1831
|
+
"onUpdate:modelValue": l[4] || (l[4] = (b) => g(t).activeComponents.options.letterSpacing = b),
|
|
1842
1832
|
"controls-position": "right"
|
|
1843
1833
|
}, null, 8, ["modelValue"]),
|
|
1844
|
-
|
|
1834
|
+
l[10] || (l[10] = C("p", { class: "sub-title" }, "字间距", -1))
|
|
1845
1835
|
]),
|
|
1846
1836
|
_: 1
|
|
1847
1837
|
}),
|
|
1848
|
-
a(
|
|
1849
|
-
default:
|
|
1838
|
+
a(_, { span: 12 }, {
|
|
1839
|
+
default: p(() => [
|
|
1850
1840
|
a(i, {
|
|
1851
|
-
modelValue:
|
|
1852
|
-
"onUpdate:modelValue":
|
|
1841
|
+
modelValue: g(t).activeComponents.options.textIndent,
|
|
1842
|
+
"onUpdate:modelValue": l[5] || (l[5] = (b) => g(t).activeComponents.options.textIndent = b),
|
|
1853
1843
|
"controls-position": "right"
|
|
1854
1844
|
}, null, 8, ["modelValue"]),
|
|
1855
|
-
|
|
1845
|
+
l[11] || (l[11] = C("p", { class: "sub-title" }, "首行缩进", -1))
|
|
1856
1846
|
]),
|
|
1857
1847
|
_: 1
|
|
1858
1848
|
}),
|
|
1859
|
-
a(
|
|
1860
|
-
default:
|
|
1861
|
-
a(
|
|
1862
|
-
modelValue:
|
|
1863
|
-
"onUpdate:modelValue":
|
|
1849
|
+
a(_, { span: 12 }, {
|
|
1850
|
+
default: p(() => [
|
|
1851
|
+
a(m, {
|
|
1852
|
+
modelValue: g(t).activeComponents.options.textAlign,
|
|
1853
|
+
"onUpdate:modelValue": l[6] || (l[6] = (b) => g(t).activeComponents.options.textAlign = b)
|
|
1864
1854
|
}, {
|
|
1865
|
-
default:
|
|
1855
|
+
default: p(() => [
|
|
1866
1856
|
a(f, {
|
|
1867
1857
|
label: "左对齐",
|
|
1868
1858
|
value: "left"
|
|
@@ -1878,7 +1868,7 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1878
1868
|
]),
|
|
1879
1869
|
_: 1
|
|
1880
1870
|
}, 8, ["modelValue"]),
|
|
1881
|
-
|
|
1871
|
+
l[12] || (l[12] = C("p", { class: "sub-title" }, "位置", -1))
|
|
1882
1872
|
]),
|
|
1883
1873
|
_: 1
|
|
1884
1874
|
})
|
|
@@ -1894,30 +1884,30 @@ const Et = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-e9859d3b"]]), Ce = /* @_
|
|
|
1894
1884
|
};
|
|
1895
1885
|
}
|
|
1896
1886
|
});
|
|
1897
|
-
const
|
|
1887
|
+
const zt = /* @__PURE__ */ Y(It, [["__scopeId", "data-v-56fef84c"]]), Ht = /* @__PURE__ */ $({
|
|
1898
1888
|
__name: "Setting",
|
|
1899
|
-
setup(
|
|
1889
|
+
setup(n) {
|
|
1900
1890
|
const t = {
|
|
1901
|
-
SettingTable:
|
|
1902
|
-
SettingCharts:
|
|
1903
|
-
SettingDescribe:
|
|
1904
|
-
SettingText:
|
|
1905
|
-
SettingFilter:
|
|
1906
|
-
SettingTitle:
|
|
1907
|
-
}, e =
|
|
1891
|
+
SettingTable: ge,
|
|
1892
|
+
SettingCharts: Ut,
|
|
1893
|
+
SettingDescribe: ye,
|
|
1894
|
+
SettingText: Et,
|
|
1895
|
+
SettingFilter: Ft,
|
|
1896
|
+
SettingTitle: zt
|
|
1897
|
+
}, e = z(), l = F(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], o = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe"], _ = (i) => r.includes(i) ? H(t, "SettingTitle") : o.includes(i) ? H(t, "SettingText") : s.includes(i) ? H(t, "SettingCharts") : i === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
|
|
1908
1898
|
return (i, f) => {
|
|
1909
|
-
const
|
|
1910
|
-
return
|
|
1911
|
-
default:
|
|
1912
|
-
(
|
|
1899
|
+
const m = d("el-card");
|
|
1900
|
+
return c(), S(m, { class: "config-wrapper" }, {
|
|
1901
|
+
default: p(() => [
|
|
1902
|
+
(c(), S(N(_(l.value.type))))
|
|
1913
1903
|
]),
|
|
1914
1904
|
_: 1
|
|
1915
1905
|
});
|
|
1916
1906
|
};
|
|
1917
1907
|
}
|
|
1918
|
-
}),
|
|
1908
|
+
}), Mt = { class: "editor-wrapper flex start" }, jt = { class: "flex" }, Pt = { class: "btn-group" }, Bt = /* @__PURE__ */ $({
|
|
1919
1909
|
__name: "index",
|
|
1920
|
-
props: /* @__PURE__ */
|
|
1910
|
+
props: /* @__PURE__ */ se({
|
|
1921
1911
|
reportId: {
|
|
1922
1912
|
type: String,
|
|
1923
1913
|
default: ""
|
|
@@ -1927,38 +1917,38 @@ const jt = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-56fef84c"]]), Pt = /* @_
|
|
|
1927
1917
|
modelModifiers: {}
|
|
1928
1918
|
}),
|
|
1929
1919
|
emits: ["update:modelValue"],
|
|
1930
|
-
setup(
|
|
1931
|
-
const t =
|
|
1932
|
-
const f =
|
|
1933
|
-
f.id =
|
|
1920
|
+
setup(n) {
|
|
1921
|
+
const t = z(), e = n, l = ie(n, "modelValue"), r = (i) => {
|
|
1922
|
+
const f = O(i);
|
|
1923
|
+
f.id = j(), t.componentList.push(f);
|
|
1934
1924
|
};
|
|
1935
1925
|
function o() {
|
|
1936
|
-
|
|
1926
|
+
l.value = "table";
|
|
1937
1927
|
}
|
|
1938
1928
|
function s() {
|
|
1939
1929
|
t.getReportDemo(e.reportId);
|
|
1940
1930
|
}
|
|
1941
|
-
|
|
1931
|
+
Z(() => {
|
|
1942
1932
|
s();
|
|
1943
1933
|
});
|
|
1944
|
-
async function
|
|
1934
|
+
async function _() {
|
|
1945
1935
|
if (!t.filterForm.filter_uuid) {
|
|
1946
|
-
|
|
1936
|
+
Ae.error("请选择筛选条件");
|
|
1947
1937
|
return;
|
|
1948
1938
|
}
|
|
1949
1939
|
try {
|
|
1950
|
-
e.reportId ? await
|
|
1940
|
+
e.reportId ? await Pe({
|
|
1951
1941
|
report_uuid: e.reportId,
|
|
1952
1942
|
data: {
|
|
1953
1943
|
report_name: t.titleComponent.data,
|
|
1954
|
-
prod_type:
|
|
1944
|
+
prod_type: window.$prodType,
|
|
1955
1945
|
content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
|
|
1956
1946
|
...t.filterForm
|
|
1957
1947
|
}
|
|
1958
|
-
}) : await
|
|
1948
|
+
}) : await je({
|
|
1959
1949
|
data: {
|
|
1960
1950
|
report_name: t.titleComponent.data,
|
|
1961
|
-
prod_type:
|
|
1951
|
+
prod_type: window.$prodType,
|
|
1962
1952
|
content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
|
|
1963
1953
|
...t.filterForm
|
|
1964
1954
|
}
|
|
@@ -1967,26 +1957,26 @@ const jt = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-56fef84c"]]), Pt = /* @_
|
|
|
1967
1957
|
console.log(i, "error");
|
|
1968
1958
|
}
|
|
1969
1959
|
}
|
|
1970
|
-
return
|
|
1960
|
+
return Te(() => {
|
|
1971
1961
|
t.clearComponents();
|
|
1972
1962
|
}), (i, f) => {
|
|
1973
|
-
const
|
|
1974
|
-
return
|
|
1975
|
-
a(
|
|
1976
|
-
default:
|
|
1977
|
-
C("div",
|
|
1978
|
-
C("div",
|
|
1979
|
-
a(
|
|
1980
|
-
default:
|
|
1981
|
-
(
|
|
1963
|
+
const m = d("el-button"), u = d("el-button-group"), h = d("el-card");
|
|
1964
|
+
return c(), y("div", Mt, [
|
|
1965
|
+
a(h, { class: "view-wrapper" }, {
|
|
1966
|
+
default: p(() => [
|
|
1967
|
+
C("div", jt, [
|
|
1968
|
+
C("div", Pt, [
|
|
1969
|
+
a(u, null, {
|
|
1970
|
+
default: p(() => [
|
|
1971
|
+
(c(!0), y(A, null, I(g(Xe), (b) => (c(), y(A, {
|
|
1982
1972
|
key: b.type
|
|
1983
1973
|
}, [
|
|
1984
|
-
b != null && b.hide ? R("", !0) : (
|
|
1974
|
+
b != null && b.hide ? R("", !0) : (c(), S(m, {
|
|
1985
1975
|
key: 0,
|
|
1986
|
-
onClick: (
|
|
1976
|
+
onClick: (L) => r(b)
|
|
1987
1977
|
}, {
|
|
1988
|
-
default:
|
|
1989
|
-
|
|
1978
|
+
default: p(() => [
|
|
1979
|
+
D(P(b.name), 1)
|
|
1990
1980
|
]),
|
|
1991
1981
|
_: 2
|
|
1992
1982
|
}, 1032, ["onClick"]))
|
|
@@ -1995,20 +1985,20 @@ const jt = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-56fef84c"]]), Pt = /* @_
|
|
|
1995
1985
|
_: 1
|
|
1996
1986
|
})
|
|
1997
1987
|
]),
|
|
1998
|
-
a(
|
|
1999
|
-
default:
|
|
2000
|
-
a(
|
|
1988
|
+
a(u, null, {
|
|
1989
|
+
default: p(() => [
|
|
1990
|
+
a(m, {
|
|
2001
1991
|
type: "primary",
|
|
2002
|
-
onClick:
|
|
1992
|
+
onClick: _
|
|
2003
1993
|
}, {
|
|
2004
|
-
default:
|
|
2005
|
-
|
|
1994
|
+
default: p(() => f[0] || (f[0] = [
|
|
1995
|
+
D("保存")
|
|
2006
1996
|
])),
|
|
2007
1997
|
_: 1
|
|
2008
1998
|
}),
|
|
2009
|
-
a(
|
|
2010
|
-
default:
|
|
2011
|
-
|
|
1999
|
+
a(m, { onClick: o }, {
|
|
2000
|
+
default: p(() => f[1] || (f[1] = [
|
|
2001
|
+
D("退出")
|
|
2012
2002
|
])),
|
|
2013
2003
|
_: 1
|
|
2014
2004
|
})
|
|
@@ -2016,39 +2006,39 @@ const jt = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-56fef84c"]]), Pt = /* @_
|
|
|
2016
2006
|
_: 1
|
|
2017
2007
|
})
|
|
2018
2008
|
]),
|
|
2019
|
-
a(
|
|
2009
|
+
a(xt)
|
|
2020
2010
|
]),
|
|
2021
2011
|
_: 1
|
|
2022
2012
|
}),
|
|
2023
|
-
a(
|
|
2013
|
+
a(Ht)
|
|
2024
2014
|
]);
|
|
2025
2015
|
};
|
|
2026
2016
|
}
|
|
2027
|
-
}),
|
|
2017
|
+
}), Wt = {
|
|
2028
2018
|
class: "table-box"
|
|
2029
|
-
},
|
|
2019
|
+
}, Nt = /* @__PURE__ */ $({
|
|
2030
2020
|
__name: "Report",
|
|
2031
2021
|
emits: ["click"],
|
|
2032
|
-
setup(
|
|
2022
|
+
setup(n, {
|
|
2033
2023
|
emit: t
|
|
2034
2024
|
}) {
|
|
2035
|
-
const e =
|
|
2036
|
-
prod_type:
|
|
2037
|
-
})),
|
|
2038
|
-
|
|
2039
|
-
},
|
|
2040
|
-
|
|
2041
|
-
},
|
|
2042
|
-
|
|
2043
|
-
},
|
|
2044
|
-
console.log(
|
|
2045
|
-
},
|
|
2025
|
+
const e = F(() => ({
|
|
2026
|
+
prod_type: window.$prodType
|
|
2027
|
+
})), l = k(), r = t, o = (u) => {
|
|
2028
|
+
r("click", u.report_uuid, "review");
|
|
2029
|
+
}, s = (u) => {
|
|
2030
|
+
r("click", u.report_uuid, "editor");
|
|
2031
|
+
}, _ = () => {
|
|
2032
|
+
r("click", "", "editor");
|
|
2033
|
+
}, i = (u) => {
|
|
2034
|
+
console.log(u);
|
|
2035
|
+
}, f = (u) => {
|
|
2046
2036
|
window.$messageBox("确定要删除吗?", "", "温馨提示", "error").then(async () => {
|
|
2047
|
-
await
|
|
2048
|
-
report_uuids:
|
|
2049
|
-
}),
|
|
2037
|
+
await Ne({
|
|
2038
|
+
report_uuids: u
|
|
2039
|
+
}), l.value.getTableList();
|
|
2050
2040
|
});
|
|
2051
|
-
},
|
|
2041
|
+
}, m = Le([
|
|
2052
2042
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2053
2043
|
{
|
|
2054
2044
|
type: "selection",
|
|
@@ -2075,58 +2065,58 @@ const jt = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-56fef84c"]]), Pt = /* @_
|
|
|
2075
2065
|
name: "操作",
|
|
2076
2066
|
align: "center",
|
|
2077
2067
|
fixed: "right",
|
|
2078
|
-
render: (
|
|
2068
|
+
render: (u) => a("div", null, [a(d("el-button"), {
|
|
2079
2069
|
link: !0,
|
|
2080
2070
|
type: "primary",
|
|
2081
2071
|
class: "custom-btn",
|
|
2082
2072
|
icon: "View",
|
|
2083
2073
|
title: "预览",
|
|
2084
|
-
onClick: () =>
|
|
2085
|
-
}, null), a(
|
|
2074
|
+
onClick: () => o(u.row)
|
|
2075
|
+
}, null), a(d("el-button"), {
|
|
2086
2076
|
link: !0,
|
|
2087
2077
|
type: "primary",
|
|
2088
2078
|
class: "custom-btn",
|
|
2089
2079
|
icon: "Edit",
|
|
2090
2080
|
title: "编辑",
|
|
2091
|
-
onClick: () =>
|
|
2092
|
-
}, null), a(
|
|
2081
|
+
onClick: () => s(u.row)
|
|
2082
|
+
}, null), a(d("el-button"), {
|
|
2093
2083
|
link: !0,
|
|
2094
2084
|
type: "danger",
|
|
2095
2085
|
icon: "Delete",
|
|
2096
2086
|
title: "删除",
|
|
2097
|
-
onClick: () =>
|
|
2087
|
+
onClick: () => f([u.row.report_uuid])
|
|
2098
2088
|
}, null)])
|
|
2099
2089
|
}
|
|
2100
2090
|
]);
|
|
2101
|
-
return (
|
|
2102
|
-
const
|
|
2103
|
-
return
|
|
2091
|
+
return (u, h) => {
|
|
2092
|
+
const b = d("el-button"), L = d("TdsTable");
|
|
2093
|
+
return c(), y("div", Wt, [a(L, {
|
|
2104
2094
|
ref_key: "proTable",
|
|
2105
|
-
ref:
|
|
2106
|
-
columns:
|
|
2107
|
-
"request-api":
|
|
2108
|
-
"init-param":
|
|
2095
|
+
ref: l,
|
|
2096
|
+
columns: m,
|
|
2097
|
+
"request-api": g(Be),
|
|
2098
|
+
"init-param": e.value,
|
|
2109
2099
|
"row-key": "report_uuid",
|
|
2110
|
-
options:
|
|
2100
|
+
options: u.$tableOptions(),
|
|
2111
2101
|
"search-col": 6,
|
|
2112
|
-
onSelectionChange:
|
|
2102
|
+
onSelectionChange: i
|
|
2113
2103
|
}, {
|
|
2114
|
-
tableHeader:
|
|
2104
|
+
tableHeader: p((V) => [a(b, {
|
|
2115
2105
|
plain: "",
|
|
2116
2106
|
type: "primary",
|
|
2117
2107
|
class: "custom-btn",
|
|
2118
2108
|
icon: "Plus",
|
|
2119
|
-
onClick:
|
|
2109
|
+
onClick: _
|
|
2120
2110
|
}, {
|
|
2121
|
-
default:
|
|
2111
|
+
default: p(() => h[0] || (h[0] = [D("添加")])),
|
|
2122
2112
|
_: 1
|
|
2123
|
-
}), a(
|
|
2113
|
+
}), a(b, {
|
|
2124
2114
|
plain: "",
|
|
2125
2115
|
type: "danger",
|
|
2126
2116
|
icon: "Delete",
|
|
2127
|
-
onClick: (
|
|
2117
|
+
onClick: (v) => f(V.selectedListIds)
|
|
2128
2118
|
}, {
|
|
2129
|
-
default:
|
|
2119
|
+
default: p(() => h[1] || (h[1] = [D("删除")])),
|
|
2130
2120
|
_: 2
|
|
2131
2121
|
}, 1032, ["onClick"])]),
|
|
2132
2122
|
_: 1
|
|
@@ -2134,27 +2124,27 @@ const jt = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-56fef84c"]]), Pt = /* @_
|
|
|
2134
2124
|
};
|
|
2135
2125
|
}
|
|
2136
2126
|
});
|
|
2137
|
-
const
|
|
2127
|
+
const Ot = { style: { height: "100%" } }, Yt = /* @__PURE__ */ $({
|
|
2138
2128
|
name: "TCReport",
|
|
2139
2129
|
__name: "index",
|
|
2140
|
-
setup(
|
|
2141
|
-
const t =
|
|
2130
|
+
setup(n) {
|
|
2131
|
+
const t = k(), e = k("table"), l = (r, o) => {
|
|
2142
2132
|
t.value = r, e.value = o;
|
|
2143
2133
|
};
|
|
2144
|
-
return (r, o) => (
|
|
2145
|
-
a(
|
|
2146
|
-
default:
|
|
2147
|
-
e.value === "table" ? (
|
|
2134
|
+
return (r, o) => (c(), y("div", Ot, [
|
|
2135
|
+
a(Re, { name: "slide-fade" }, {
|
|
2136
|
+
default: p(() => [
|
|
2137
|
+
e.value === "table" ? (c(), S(Nt, {
|
|
2148
2138
|
key: 0,
|
|
2149
|
-
onClick:
|
|
2139
|
+
onClick: l
|
|
2150
2140
|
})) : R("", !0),
|
|
2151
|
-
e.value === "review" ? (
|
|
2141
|
+
e.value === "review" ? (c(), S(bt, {
|
|
2152
2142
|
key: 1,
|
|
2153
2143
|
"report-id": t.value,
|
|
2154
2144
|
modelValue: e.value,
|
|
2155
2145
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
|
|
2156
2146
|
}, null, 8, ["report-id", "modelValue"])) : R("", !0),
|
|
2157
|
-
e.value === "editor" ? (
|
|
2147
|
+
e.value === "editor" ? (c(), S(Bt, {
|
|
2158
2148
|
key: 2,
|
|
2159
2149
|
"report-id": t.value,
|
|
2160
2150
|
modelValue: e.value,
|
|
@@ -2166,26 +2156,24 @@ const Gt = { style: { height: "100%" } }, Jt = /* @__PURE__ */ k({
|
|
|
2166
2156
|
]));
|
|
2167
2157
|
}
|
|
2168
2158
|
});
|
|
2169
|
-
const
|
|
2170
|
-
if (
|
|
2171
|
-
for (const
|
|
2172
|
-
e.component(
|
|
2159
|
+
const qt = (n, t) => {
|
|
2160
|
+
if (n.install = (e) => {
|
|
2161
|
+
for (const l of [n, ...Object.values(t ?? {})])
|
|
2162
|
+
e.component(l.name, l);
|
|
2173
2163
|
}, t)
|
|
2174
|
-
for (const [e,
|
|
2175
|
-
|
|
2176
|
-
return
|
|
2177
|
-
},
|
|
2178
|
-
TCReport:
|
|
2179
|
-
},
|
|
2180
|
-
install(
|
|
2181
|
-
Object.entries(
|
|
2182
|
-
|
|
2183
|
-
});
|
|
2184
|
-
const e = D();
|
|
2185
|
-
t.prodType && e.setProdType(t.prodType), t.envURL && e.setEnvURL(t.envURL);
|
|
2164
|
+
for (const [e, l] of Object.entries(t))
|
|
2165
|
+
n[e] = l;
|
|
2166
|
+
return n;
|
|
2167
|
+
}, Gt = qt(Yt), Jt = {
|
|
2168
|
+
TCReport: Gt
|
|
2169
|
+
}, to = {
|
|
2170
|
+
install(n, t) {
|
|
2171
|
+
Object.entries(Jt).forEach(([e, l]) => {
|
|
2172
|
+
n.component(e, l);
|
|
2173
|
+
}), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
|
|
2186
2174
|
}
|
|
2187
2175
|
};
|
|
2188
2176
|
export {
|
|
2189
|
-
|
|
2190
|
-
|
|
2177
|
+
Gt as TCReport,
|
|
2178
|
+
to as default
|
|
2191
2179
|
};
|