@topdatasec/report 1.1.30 → 1.1.32
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 +1087 -897
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +2 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,129 +1,131 @@
|
|
|
1
|
-
import { defineComponent as L, computed as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { defineComponent as L, computed as q, resolveComponent as A, openBlock as f, createElementBlock as C, createElementVNode as B, Fragment as Q, renderList as I, normalizeClass as X, createBlock as E, createCommentVNode as P, withDirectives as Ae, createTextVNode as S, toDisplayString as K, unref as y, ref as k, createVNode as l, withCtx as d, onMounted as le, normalizeProps as ve, guardReactiveProps as _e, isVNode as ue, normalizeStyle as Fe, useCssVars as Ke, nextTick as qe, onBeforeUnmount as we, watch as de, mergeModels as be, useModel as ye, resolveDirective as he, resolveDynamicComponent as ee, isRef as ze, withModifiers as Ne, shallowRef as He, onUnmounted as Ye, reactive as j, TransitionGroup as Ge, mergeProps as Ce, createSlots as Je } from "vue";
|
|
2
|
+
import { defineStore as Xe, storeToRefs as je } from "pinia";
|
|
3
|
+
import * as Ze from "echarts";
|
|
4
|
+
import "echarts-wordcloud";
|
|
5
|
+
import { ElNotification as We, ElMessage as $e } from "element-plus";
|
|
6
|
+
import { VueDraggable as et } from "vue-draggable-plus";
|
|
7
|
+
import { Toolbar as tt, Editor as ot } from "@wangeditor/editor-for-vue";
|
|
8
|
+
import { CircleClose as lt } from "@element-plus/icons-vue";
|
|
9
|
+
import { TdsTable as xe, TdsForm as nt } from "topdatasec-ui";
|
|
10
|
+
const M = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), te = (o) => JSON.parse(JSON.stringify(o)), at = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), F = (o, t) => o[at(t)], rt = (o) => window.$http.request({
|
|
9
11
|
url: `${window.$reportURL}/tds/report/demo/get`,
|
|
10
12
|
method: "get",
|
|
11
13
|
params: o,
|
|
12
14
|
isError: !1
|
|
13
|
-
}),
|
|
15
|
+
}), Te = (o) => window.$http.request({
|
|
14
16
|
url: `${window.$reportURL}/tds/report/item/get`,
|
|
15
17
|
method: "get",
|
|
16
18
|
params: o,
|
|
17
19
|
isError: !1
|
|
18
|
-
}),
|
|
20
|
+
}), st = (o) => window.$http.request({
|
|
19
21
|
url: `${window.$reportURL}/tds/report/preview`,
|
|
20
22
|
method: "get",
|
|
21
23
|
params: o,
|
|
22
24
|
isError: !1
|
|
23
|
-
}),
|
|
25
|
+
}), it = (o) => window.$http.request({
|
|
24
26
|
url: `${window.$reportURL}/tds/report/add`,
|
|
25
27
|
method: "post",
|
|
26
28
|
data: o
|
|
27
|
-
}),
|
|
29
|
+
}), At = (o) => window.$http.request({
|
|
28
30
|
url: `${window.$reportURL}/tds/report/put`,
|
|
29
31
|
method: "put",
|
|
30
32
|
data: o
|
|
31
|
-
}),
|
|
33
|
+
}), ut = (o) => window.$http.request({
|
|
32
34
|
url: `${window.$reportURL}/tds/report/get`,
|
|
33
35
|
method: "get",
|
|
34
36
|
params: o,
|
|
35
37
|
isError: !1
|
|
36
|
-
}),
|
|
38
|
+
}), Be = (o) => window.$http.request({
|
|
37
39
|
url: `${window.$reportURL}/tds/report/filter/get`,
|
|
38
40
|
method: "get",
|
|
39
41
|
params: o,
|
|
40
42
|
isError: !1
|
|
41
|
-
}),
|
|
43
|
+
}), dt = (o) => window.$http.request({
|
|
42
44
|
url: `${window.$reportURL}/tds/report/delete`,
|
|
43
45
|
method: "delete",
|
|
44
46
|
data: o
|
|
45
|
-
}),
|
|
47
|
+
}), pt = (o) => window.$http.request({
|
|
46
48
|
url: `${window.$reportURL}/tds/report/item/list`,
|
|
47
49
|
method: "get",
|
|
48
50
|
params: o,
|
|
49
51
|
isError: !1
|
|
50
|
-
}),
|
|
52
|
+
}), ct = (o) => window.$http.request({
|
|
51
53
|
url: `${window.$reportURL}/tds/report/item/delete`,
|
|
52
54
|
method: "delete",
|
|
53
55
|
data: o
|
|
54
|
-
}),
|
|
56
|
+
}), mt = (o) => window.$http.request({
|
|
55
57
|
url: `${window.$reportURL}/tds/report/item/add`,
|
|
56
58
|
method: "post",
|
|
57
59
|
data: o
|
|
58
|
-
}),
|
|
60
|
+
}), ft = (o) => window.$http.request({
|
|
59
61
|
url: `${window.$reportURL}/tds/report/item/put`,
|
|
60
62
|
method: "put",
|
|
61
63
|
data: o
|
|
62
|
-
}),
|
|
64
|
+
}), gt = (o) => window.$http.request({
|
|
63
65
|
url: `${window.$reportURL}/tds/report/sub/get`,
|
|
64
66
|
method: "get",
|
|
65
67
|
params: o,
|
|
66
68
|
isError: !1
|
|
67
|
-
}),
|
|
69
|
+
}), vt = (o) => window.$http.request({
|
|
68
70
|
url: `${window.$reportURL}/tds/report/sub/add`,
|
|
69
71
|
method: "post",
|
|
70
72
|
data: o
|
|
71
|
-
}),
|
|
73
|
+
}), _t = (o) => window.$http.request({
|
|
72
74
|
url: `${window.$reportURL}/tds/report/sub/put`,
|
|
73
75
|
method: "put",
|
|
74
76
|
data: o
|
|
75
|
-
}),
|
|
77
|
+
}), wt = (o) => window.$http.request({
|
|
76
78
|
url: `${window.$reportURL}/tds/report/sub/delete`,
|
|
77
79
|
method: "delete",
|
|
78
80
|
data: o
|
|
79
|
-
}),
|
|
81
|
+
}), bt = (o) => window.$http.request({
|
|
80
82
|
url: `${window.$reportURL}/tds/report/sub/edit/state`,
|
|
81
83
|
method: "post",
|
|
82
84
|
data: o
|
|
83
|
-
}),
|
|
85
|
+
}), yt = (o) => window.$http.request({
|
|
84
86
|
url: `${window.$reportURL}/tds/report/all`,
|
|
85
87
|
method: "get",
|
|
86
88
|
params: o,
|
|
87
89
|
isError: !1
|
|
88
|
-
}),
|
|
90
|
+
}), ht = (o) => window.$http.request({
|
|
89
91
|
url: `${window.$reportURL}/tds/report/sub/get_format`,
|
|
90
92
|
method: "get",
|
|
91
93
|
params: o,
|
|
92
94
|
isError: !1
|
|
93
|
-
}),
|
|
95
|
+
}), Ct = (o) => window.$http.request({
|
|
94
96
|
url: `${window.$reportURL}/tds/report/filter/get_select_data`,
|
|
95
97
|
method: "get",
|
|
96
98
|
params: o,
|
|
97
99
|
isError: !1
|
|
98
|
-
}),
|
|
100
|
+
}), xt = (o = {}) => window.$http.request({
|
|
99
101
|
url: `${window.$reportURL}/tds/report/build_in/get`,
|
|
100
102
|
method: "get",
|
|
101
103
|
params: o,
|
|
102
104
|
loading: !1,
|
|
103
105
|
isError: !1
|
|
104
|
-
}),
|
|
106
|
+
}), Tt = (o = {}) => window.$http.request({
|
|
105
107
|
url: `${window.$reportURL}/tds/report/export/add`,
|
|
106
108
|
method: "get",
|
|
107
109
|
params: o,
|
|
108
110
|
loading: !1,
|
|
109
111
|
isError: !1
|
|
110
|
-
}),
|
|
112
|
+
}), Bt = (o = {}) => window.$http.request({
|
|
111
113
|
url: `${window.$reportURL}/tds/report/export/get`,
|
|
112
114
|
method: "get",
|
|
113
115
|
params: o,
|
|
114
116
|
loading: !1,
|
|
115
117
|
isError: !1
|
|
116
|
-
}),
|
|
118
|
+
}), kt = (o = {}) => window.$http.request({
|
|
117
119
|
url: `${window.$reportURL}/tds/report/export/download`,
|
|
118
120
|
method: "get",
|
|
119
121
|
params: o,
|
|
120
122
|
loading: !1,
|
|
121
123
|
isError: !1
|
|
122
|
-
}),
|
|
124
|
+
}), Dt = (o = {}) => window.$http.request({
|
|
123
125
|
url: `${window.$reportURL}/tds/report/export/delete`,
|
|
124
126
|
method: "delete",
|
|
125
127
|
data: o
|
|
126
|
-
}),
|
|
128
|
+
}), ke = "rgba(51, 51, 51, 0.15)", H = "rgba(51, 51, 51, 1)", J = 12, De = (o = !1) => {
|
|
127
129
|
const t = {
|
|
128
130
|
// top: '2%',
|
|
129
131
|
left: "3%",
|
|
@@ -132,7 +134,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
132
134
|
containLabel: !0
|
|
133
135
|
};
|
|
134
136
|
return o && (t.top = "5%"), t;
|
|
135
|
-
},
|
|
137
|
+
}, O = [
|
|
136
138
|
"46, 145, 255",
|
|
137
139
|
"48, 212, 183",
|
|
138
140
|
"108, 108, 255",
|
|
@@ -153,12 +155,12 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
153
155
|
"100, 161, 206",
|
|
154
156
|
"246, 175, 159",
|
|
155
157
|
"238, 97, 97"
|
|
156
|
-
],
|
|
158
|
+
], G = () => `rgb(${O[Math.floor(Math.random() * O.length)]})`, Vt = (o, t, e = "", a = { name: "name", value: "value" }) => {
|
|
157
159
|
const r = [], n = [];
|
|
158
|
-
t.forEach((
|
|
159
|
-
r.push(
|
|
160
|
+
t.forEach((s) => {
|
|
161
|
+
r.push(s[a.name]), n.push(s[a.value]);
|
|
160
162
|
}), 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;
|
|
161
|
-
},
|
|
163
|
+
}, ne = (o = [
|
|
162
164
|
{
|
|
163
165
|
name: "数据1",
|
|
164
166
|
value: 63
|
|
@@ -202,7 +204,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
202
204
|
// type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
|
|
203
205
|
// show: true,
|
|
204
206
|
// },
|
|
205
|
-
grid:
|
|
207
|
+
grid: De(),
|
|
206
208
|
title: {
|
|
207
209
|
show: !0,
|
|
208
210
|
text: "样例数据",
|
|
@@ -222,7 +224,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
222
224
|
nameRotate: 0,
|
|
223
225
|
// 坐标轴名称旋转
|
|
224
226
|
axisLabel: {
|
|
225
|
-
color:
|
|
227
|
+
color: H,
|
|
226
228
|
// X轴类目名称样式
|
|
227
229
|
rotate: 0
|
|
228
230
|
// X轴类目名称旋转角度
|
|
@@ -231,7 +233,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
231
233
|
//X轴轴线设置
|
|
232
234
|
show: !0,
|
|
233
235
|
lineStyle: {
|
|
234
|
-
color:
|
|
236
|
+
color: ke,
|
|
235
237
|
width: 1
|
|
236
238
|
}
|
|
237
239
|
},
|
|
@@ -250,8 +252,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
250
252
|
// 坐标轴刻度最小值
|
|
251
253
|
position: "left",
|
|
252
254
|
nameTextStyle: {
|
|
253
|
-
fontSize:
|
|
254
|
-
color:
|
|
255
|
+
fontSize: J,
|
|
256
|
+
color: H,
|
|
255
257
|
fontWeight: "bold"
|
|
256
258
|
},
|
|
257
259
|
axisLine: { show: !1 },
|
|
@@ -261,7 +263,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
261
263
|
splitLine: { show: !1 },
|
|
262
264
|
// 纵向分隔线
|
|
263
265
|
axisLabel: {
|
|
264
|
-
color:
|
|
266
|
+
color: H,
|
|
265
267
|
// y轴刻度标签
|
|
266
268
|
formatter: "{value}",
|
|
267
269
|
inside: !1
|
|
@@ -274,7 +276,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
274
276
|
type: "bar",
|
|
275
277
|
barWidth: 15,
|
|
276
278
|
barGap: "0%",
|
|
277
|
-
itemStyle: e(`rgba(${
|
|
279
|
+
itemStyle: e(`rgba(${O[0]}, 0.7)`, `rgba(${O[0]}, 0.2)`),
|
|
278
280
|
data: a,
|
|
279
281
|
label: {
|
|
280
282
|
show: !0,
|
|
@@ -294,7 +296,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
294
296
|
symbolSize: [15, 10],
|
|
295
297
|
//调整截面形状
|
|
296
298
|
symbolOffset: [0, 5],
|
|
297
|
-
itemStyle: e(`rgba(${
|
|
299
|
+
itemStyle: e(`rgba(${O[0]}, 0.7)`, `rgba(${O[0]}, 0.2)`),
|
|
298
300
|
data: a
|
|
299
301
|
},
|
|
300
302
|
{
|
|
@@ -305,19 +307,19 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
305
307
|
//调整截面形状
|
|
306
308
|
symbolOffset: [0, -5],
|
|
307
309
|
symbolPosition: "end",
|
|
308
|
-
itemStyle: e(`rgba(${
|
|
310
|
+
itemStyle: e(`rgba(${O[0]}, 0.9)`, `rgba(${O[0]}, 1)`),
|
|
309
311
|
data: a
|
|
310
312
|
}
|
|
311
313
|
]
|
|
312
314
|
};
|
|
313
|
-
},
|
|
315
|
+
}, Lt = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
|
|
314
316
|
let a = 0;
|
|
315
|
-
const r = t.map((n,
|
|
317
|
+
const r = t.map((n, s) => (a += Number(n[e.value]), {
|
|
316
318
|
name: n[e.name],
|
|
317
319
|
value: Number(n[e.value])
|
|
318
320
|
}));
|
|
319
321
|
o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
|
|
320
|
-
},
|
|
322
|
+
}, Et = () => O.map((o) => `rgba(${o}, 1)`), pe = ({
|
|
321
323
|
data: o = [
|
|
322
324
|
{
|
|
323
325
|
name: "数据1",
|
|
@@ -337,22 +339,22 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
337
339
|
isLegend: a = !0,
|
|
338
340
|
isLine: r = !1,
|
|
339
341
|
center: n = ["50%", "50%"],
|
|
340
|
-
isTitle:
|
|
342
|
+
isTitle: s = !0
|
|
341
343
|
}) => {
|
|
342
|
-
const
|
|
343
|
-
color:
|
|
344
|
+
const u = {
|
|
345
|
+
color: Et(),
|
|
344
346
|
toolbox: { show: !1 },
|
|
345
347
|
tooltip: {
|
|
346
348
|
trigger: "item",
|
|
347
349
|
show: !0,
|
|
348
350
|
formatter: (i) => {
|
|
349
|
-
const { name:
|
|
350
|
-
return `<div style="color: ${i.color}; font-size: 14px;">${
|
|
351
|
+
const { name: m, value: p } = i;
|
|
352
|
+
return `<div style="color: ${i.color}; font-size: 14px;">${m} </div>
|
|
351
353
|
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${p}</span></div>`;
|
|
352
354
|
}
|
|
353
355
|
},
|
|
354
356
|
title: {
|
|
355
|
-
show:
|
|
357
|
+
show: s,
|
|
356
358
|
text: "样例数据",
|
|
357
359
|
textStyle: {
|
|
358
360
|
color: "#333",
|
|
@@ -366,12 +368,12 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
366
368
|
left: "70%",
|
|
367
369
|
formatter: (i) => {
|
|
368
370
|
var p;
|
|
369
|
-
const
|
|
370
|
-
return ` ${i} | ${
|
|
371
|
+
const m = (p = u.series[0]) == null ? void 0 : p.data.find((c) => c.name === i).value;
|
|
372
|
+
return ` ${i} | ${m}`;
|
|
371
373
|
},
|
|
372
374
|
textStyle: {
|
|
373
|
-
fontSize:
|
|
374
|
-
color:
|
|
375
|
+
fontSize: J,
|
|
376
|
+
color: H
|
|
375
377
|
},
|
|
376
378
|
data: o,
|
|
377
379
|
orient: "vertical",
|
|
@@ -478,24 +480,24 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
478
480
|
}
|
|
479
481
|
]
|
|
480
482
|
};
|
|
481
|
-
return
|
|
482
|
-
},
|
|
483
|
+
return u;
|
|
484
|
+
}, St = (o, t, e = { name: "name", value: "value" }) => {
|
|
483
485
|
o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
|
|
484
486
|
o.series[r].data = t.map((n) => n[a.value]);
|
|
485
487
|
}) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
|
|
486
|
-
},
|
|
488
|
+
}, Ut = () => ({
|
|
487
489
|
name: "",
|
|
488
490
|
type: "line",
|
|
489
491
|
symbol: "circle",
|
|
490
492
|
smooth: !0,
|
|
491
493
|
lineStyle: {
|
|
492
494
|
width: 1,
|
|
493
|
-
color: `rgba(${
|
|
495
|
+
color: `rgba(${O[0]}, 1)`
|
|
494
496
|
// 线条颜色
|
|
495
497
|
},
|
|
496
498
|
showSymbol: !1,
|
|
497
499
|
itemStyle: {
|
|
498
|
-
color: `rgba(${
|
|
500
|
+
color: `rgba(${O[0]}, 1)`,
|
|
499
501
|
//拐点颜色
|
|
500
502
|
label: {
|
|
501
503
|
show: !0,
|
|
@@ -518,18 +520,18 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
518
520
|
// 渐变颜色
|
|
519
521
|
{
|
|
520
522
|
offset: 0,
|
|
521
|
-
color: `rgba(${
|
|
523
|
+
color: `rgba(${O[0]}, 0.7)`
|
|
522
524
|
},
|
|
523
525
|
{
|
|
524
526
|
offset: 1,
|
|
525
|
-
color: `rgba(${
|
|
527
|
+
color: `rgba(${O[0]}, 0.1)`
|
|
526
528
|
}
|
|
527
529
|
],
|
|
528
530
|
global: !1
|
|
529
531
|
}
|
|
530
532
|
},
|
|
531
533
|
data: []
|
|
532
|
-
}),
|
|
534
|
+
}), oe = (o = [
|
|
533
535
|
{
|
|
534
536
|
name: "2024-08",
|
|
535
537
|
value: 63
|
|
@@ -561,24 +563,24 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
561
563
|
show: !0,
|
|
562
564
|
itemWidth: 30,
|
|
563
565
|
textStyle: {
|
|
564
|
-
color:
|
|
565
|
-
fontSize:
|
|
566
|
+
color: H,
|
|
567
|
+
fontSize: J,
|
|
566
568
|
padding: [0, 8, 0, 8]
|
|
567
569
|
}
|
|
568
570
|
},
|
|
569
|
-
grid:
|
|
571
|
+
grid: De(),
|
|
570
572
|
xAxis: {
|
|
571
573
|
type: "category",
|
|
572
574
|
splitLine: { show: !1 },
|
|
573
575
|
axisTick: { show: !1 },
|
|
574
576
|
axisLine: {
|
|
575
577
|
show: !0,
|
|
576
|
-
lineStyle: { color:
|
|
578
|
+
lineStyle: { color: ke }
|
|
577
579
|
},
|
|
578
580
|
axisLabel: {
|
|
579
581
|
show: !0,
|
|
580
|
-
fontSize:
|
|
581
|
-
color:
|
|
582
|
+
fontSize: J,
|
|
583
|
+
color: H
|
|
582
584
|
},
|
|
583
585
|
boundaryGap: !1,
|
|
584
586
|
data: o.map((n) => n[t.name])
|
|
@@ -590,42 +592,88 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
590
592
|
axisLine: { show: !1 },
|
|
591
593
|
axisTick: { show: !1 },
|
|
592
594
|
nameTextStyle: {
|
|
593
|
-
fontSize:
|
|
594
|
-
color:
|
|
595
|
+
fontSize: J,
|
|
596
|
+
color: H,
|
|
595
597
|
padding: [0, 60, 0, 0]
|
|
596
598
|
},
|
|
597
599
|
axisLabel: {
|
|
598
600
|
show: !0,
|
|
599
|
-
fontSize:
|
|
600
|
-
color:
|
|
601
|
+
fontSize: J,
|
|
602
|
+
color: H
|
|
601
603
|
}
|
|
602
604
|
},
|
|
603
605
|
series: []
|
|
604
|
-
}, a =
|
|
606
|
+
}, a = Ut(), r = [];
|
|
605
607
|
if (Array.isArray(t.value))
|
|
606
|
-
t.value.forEach((n,
|
|
607
|
-
const
|
|
608
|
-
|
|
608
|
+
t.value.forEach((n, s) => {
|
|
609
|
+
const u = te(a);
|
|
610
|
+
u.name = n.name, u.lineStyle.color = `rgba(${O[s]}, 1)`, u.itemStyle.color = `rgba(${O[s]}, 1)`, u.areaStyle.color.colorStops[0].color = `rgba(${O[s]}, 0.7)`, u.areaStyle.color.colorStops[1].color = `rgba(${O[s]}, 0.1)`, u.data = o.map((i) => i[n.value]), r.push(u);
|
|
609
611
|
});
|
|
610
612
|
else if (typeof t.value == "string") {
|
|
611
|
-
const n =
|
|
612
|
-
n.data = o.map((
|
|
613
|
+
const n = te(a);
|
|
614
|
+
n.data = o.map((s) => s[t.value]), r.push(n);
|
|
613
615
|
}
|
|
614
616
|
return e.series = r, e;
|
|
615
|
-
},
|
|
617
|
+
}, Rt = () => ({
|
|
618
|
+
service: {
|
|
619
|
+
type: "wordCloud",
|
|
620
|
+
// 网格大小,各项之间间距
|
|
621
|
+
gridSize: 30,
|
|
622
|
+
// 形状 circle 圆,cardioid 心, diamond 菱形,
|
|
623
|
+
// triangle-forward 、triangle 三角,star五角星
|
|
624
|
+
shape: "circle",
|
|
625
|
+
// 字体大小范围
|
|
626
|
+
sizeRange: [12, 60],
|
|
627
|
+
// 文字旋转角度范围
|
|
628
|
+
rotationRange: [0, 0],
|
|
629
|
+
// 旋转步值
|
|
630
|
+
rotationStep: 90,
|
|
631
|
+
// 自定义图形
|
|
632
|
+
// maskImage: maskImage,
|
|
633
|
+
left: "center",
|
|
634
|
+
top: "center",
|
|
635
|
+
right: null,
|
|
636
|
+
bottom: null,
|
|
637
|
+
// 画布宽
|
|
638
|
+
width: "100%",
|
|
639
|
+
// 画布高
|
|
640
|
+
height: "100%",
|
|
641
|
+
// 是否渲染超出画布的文字
|
|
642
|
+
drawOutOfBound: !1,
|
|
643
|
+
textStyle: {
|
|
644
|
+
color: function() {
|
|
645
|
+
return "rgb(" + [Math.round(Math.random() * 160), Math.round(Math.random() * 160), Math.round(Math.random() * 160)].join(",") + ")";
|
|
646
|
+
},
|
|
647
|
+
emphasis: {
|
|
648
|
+
shadowBlur: 10,
|
|
649
|
+
shadowColor: "#2ac"
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
data: [
|
|
653
|
+
{ name: "name1", value: 1e4 },
|
|
654
|
+
{ name: "name2", value: 6181 },
|
|
655
|
+
{ name: "name3", value: 4386 },
|
|
656
|
+
{ name: "name4", value: 4055 },
|
|
657
|
+
//稍微改了下数据验证是否生效
|
|
658
|
+
{ name: "name5", value: 2467 },
|
|
659
|
+
{ name: "name6", value: 2244 },
|
|
660
|
+
{ name: "name7", value: 223 }
|
|
661
|
+
]
|
|
662
|
+
}
|
|
663
|
+
}), ce = [
|
|
616
664
|
{ key: "assets", name: "资产名称" },
|
|
617
665
|
{ key: "type", name: "资产类型" },
|
|
618
666
|
{ key: "data", name: "资产数据" }
|
|
619
|
-
],
|
|
667
|
+
], me = [
|
|
620
668
|
{ assets: "name1", type: "type1", data: "data1" },
|
|
621
669
|
{ assets: "name2", type: "type2", data: "data2" },
|
|
622
670
|
{ assets: "name3", type: "type3", data: "data3" }
|
|
623
|
-
],
|
|
671
|
+
], ae = [
|
|
624
672
|
{ data: [{ name: "默认数据", value: 180 }], label: "name1" },
|
|
625
673
|
{ data: [{ name: "默认数据", value: 311 }], label: "name2" },
|
|
626
674
|
{ data: [{ name: "默认数据", value: 42 }], label: "name3" },
|
|
627
675
|
{ data: [{ name: "默认数据", value: 32391 }], label: "name4" }
|
|
628
|
-
],
|
|
676
|
+
], Ot = [
|
|
629
677
|
{
|
|
630
678
|
data: 63,
|
|
631
679
|
label: "数据1"
|
|
@@ -638,7 +686,48 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
638
686
|
data: 43,
|
|
639
687
|
label: "数据3"
|
|
640
688
|
}
|
|
641
|
-
],
|
|
689
|
+
], Pt = [
|
|
690
|
+
{
|
|
691
|
+
name: "数据1",
|
|
692
|
+
value: 100,
|
|
693
|
+
textStyle: {
|
|
694
|
+
color: G()
|
|
695
|
+
// 在这里直接生成颜色
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
name: "数据2",
|
|
700
|
+
value: 200,
|
|
701
|
+
textStyle: {
|
|
702
|
+
color: G()
|
|
703
|
+
// 在这里直接生成颜色
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
name: "数据3",
|
|
708
|
+
value: 300,
|
|
709
|
+
textStyle: {
|
|
710
|
+
color: G()
|
|
711
|
+
// 在这里直接生成颜色
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
name: "数据4",
|
|
716
|
+
value: 400,
|
|
717
|
+
textStyle: {
|
|
718
|
+
color: G()
|
|
719
|
+
// 在这里直接生成颜色
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: "数据5",
|
|
724
|
+
value: 500,
|
|
725
|
+
textStyle: {
|
|
726
|
+
color: G()
|
|
727
|
+
// 在这里直接生成颜色
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
], Qt = [
|
|
642
731
|
{
|
|
643
732
|
type: "report-select",
|
|
644
733
|
label: "资产:",
|
|
@@ -650,7 +739,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
650
739
|
}
|
|
651
740
|
],
|
|
652
741
|
uri: "/da/report/sens/get_asset_all",
|
|
653
|
-
id:
|
|
742
|
+
id: M()
|
|
654
743
|
},
|
|
655
744
|
{
|
|
656
745
|
type: "range-time",
|
|
@@ -660,7 +749,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
660
749
|
end_time: "2024-09-12 19:49:34"
|
|
661
750
|
}
|
|
662
751
|
],
|
|
663
|
-
id:
|
|
752
|
+
id: M()
|
|
664
753
|
},
|
|
665
754
|
{
|
|
666
755
|
type: "h1",
|
|
@@ -673,7 +762,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
673
762
|
textIndent: 0,
|
|
674
763
|
textAlign: "left"
|
|
675
764
|
},
|
|
676
|
-
id:
|
|
765
|
+
id: M()
|
|
677
766
|
},
|
|
678
767
|
{
|
|
679
768
|
type: "h2",
|
|
@@ -687,12 +776,12 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
687
776
|
textIndent: 0,
|
|
688
777
|
textAlign: "left"
|
|
689
778
|
},
|
|
690
|
-
id:
|
|
779
|
+
id: M()
|
|
691
780
|
},
|
|
692
781
|
{
|
|
693
782
|
type: "report-table",
|
|
694
|
-
data:
|
|
695
|
-
showColumn:
|
|
783
|
+
data: me,
|
|
784
|
+
showColumn: ce,
|
|
696
785
|
name: "表格",
|
|
697
786
|
options: {
|
|
698
787
|
showColumn: {
|
|
@@ -705,9 +794,9 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
705
794
|
stripe: !1
|
|
706
795
|
},
|
|
707
796
|
rp_item_uuid: "",
|
|
708
|
-
id:
|
|
797
|
+
id: M()
|
|
709
798
|
}
|
|
710
|
-
],
|
|
799
|
+
], It = [
|
|
711
800
|
{
|
|
712
801
|
type: "h1",
|
|
713
802
|
data: "报表名称",
|
|
@@ -754,8 +843,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
754
843
|
{ type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
|
|
755
844
|
{
|
|
756
845
|
type: "report-table",
|
|
757
|
-
data:
|
|
758
|
-
showColumn:
|
|
846
|
+
data: me,
|
|
847
|
+
showColumn: ce,
|
|
759
848
|
name: "表格",
|
|
760
849
|
options: {
|
|
761
850
|
border: !0,
|
|
@@ -772,45 +861,45 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
772
861
|
},
|
|
773
862
|
{
|
|
774
863
|
type: "bar",
|
|
775
|
-
data:
|
|
864
|
+
data: ae,
|
|
776
865
|
showColumn: [{ key: "label", value: "data" }],
|
|
777
866
|
name: "图表",
|
|
778
|
-
options:
|
|
867
|
+
options: ne(),
|
|
779
868
|
rp_item_uuid: "",
|
|
780
869
|
id: ""
|
|
781
870
|
}
|
|
782
|
-
],
|
|
871
|
+
], Mt = (o) => ({
|
|
783
872
|
bar: () => ({
|
|
784
873
|
type: "bar",
|
|
785
|
-
data:
|
|
874
|
+
data: ae,
|
|
786
875
|
showColumn: [{ key: "label", value: "data" }],
|
|
787
876
|
name: "图表",
|
|
788
|
-
options:
|
|
877
|
+
options: ne(),
|
|
789
878
|
rp_item_uuid: "",
|
|
790
|
-
id:
|
|
879
|
+
id: M()
|
|
791
880
|
}),
|
|
792
881
|
line: () => ({
|
|
793
882
|
type: "line",
|
|
794
|
-
data:
|
|
883
|
+
data: ae,
|
|
795
884
|
showColumn: [{ key: "label", value: "data" }],
|
|
796
885
|
name: "图表",
|
|
797
|
-
options:
|
|
886
|
+
options: oe(),
|
|
798
887
|
rp_item_uuid: "",
|
|
799
|
-
id:
|
|
888
|
+
id: M()
|
|
800
889
|
}),
|
|
801
890
|
pie: () => ({
|
|
802
891
|
type: "pie",
|
|
803
|
-
data:
|
|
892
|
+
data: Ot,
|
|
804
893
|
showColumn: [{ key: "label", value: "data" }],
|
|
805
894
|
name: "图表",
|
|
806
|
-
options:
|
|
895
|
+
options: pe({ isLegend: !0 }),
|
|
807
896
|
rp_item_uuid: "",
|
|
808
|
-
id:
|
|
897
|
+
id: M()
|
|
809
898
|
}),
|
|
810
899
|
"report-table": () => ({
|
|
811
900
|
type: "report-table",
|
|
812
|
-
data:
|
|
813
|
-
showColumn:
|
|
901
|
+
data: me,
|
|
902
|
+
showColumn: ce,
|
|
814
903
|
name: "表格",
|
|
815
904
|
options: {
|
|
816
905
|
showColumn: {
|
|
@@ -823,7 +912,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
823
912
|
stripe: !1
|
|
824
913
|
},
|
|
825
914
|
rp_item_uuid: "",
|
|
826
|
-
id:
|
|
915
|
+
id: M()
|
|
827
916
|
}),
|
|
828
917
|
"report-describe": () => ({
|
|
829
918
|
type: "report-describe",
|
|
@@ -863,9 +952,18 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
863
952
|
key: "report_time"
|
|
864
953
|
}
|
|
865
954
|
],
|
|
866
|
-
id:
|
|
955
|
+
id: M()
|
|
956
|
+
}),
|
|
957
|
+
wordcloud: () => ({
|
|
958
|
+
type: "wordcloud",
|
|
959
|
+
data: Pt,
|
|
960
|
+
showColumn: [],
|
|
961
|
+
name: "词云图",
|
|
962
|
+
options: Rt(),
|
|
963
|
+
rp_item_uuid: "",
|
|
964
|
+
id: M()
|
|
867
965
|
})
|
|
868
|
-
})[o](),
|
|
966
|
+
})[o](), z = Xe("tds-report", {
|
|
869
967
|
state: () => ({
|
|
870
968
|
componentList: [],
|
|
871
969
|
activeComponents: {},
|
|
@@ -886,10 +984,10 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
886
984
|
},
|
|
887
985
|
async getReportDemo(o) {
|
|
888
986
|
let t = [];
|
|
889
|
-
o ? t = (await
|
|
987
|
+
o ? t = (await rt({ report_uuid: o })).data : t = { content: te(Qt), range_time: 1 };
|
|
890
988
|
const e = [];
|
|
891
989
|
t.content.forEach((a) => {
|
|
892
|
-
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id =
|
|
990
|
+
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = M();
|
|
893
991
|
}), 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;
|
|
894
992
|
},
|
|
895
993
|
setActiveComponents(o) {
|
|
@@ -902,7 +1000,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
902
1000
|
};
|
|
903
1001
|
}
|
|
904
1002
|
}
|
|
905
|
-
}),
|
|
1003
|
+
}), Ft = {
|
|
906
1004
|
mounted(o) {
|
|
907
1005
|
o.addEventListener("click", (t) => {
|
|
908
1006
|
var a;
|
|
@@ -911,42 +1009,42 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
911
1009
|
if (e) {
|
|
912
1010
|
const r = document.getElementById(e), n = document.getElementById("editor");
|
|
913
1011
|
if (r && n) {
|
|
914
|
-
const
|
|
1012
|
+
const u = r.offsetTop - n.offsetTop - 0;
|
|
915
1013
|
n.scrollTo({
|
|
916
|
-
top:
|
|
1014
|
+
top: u,
|
|
917
1015
|
behavior: "smooth"
|
|
918
1016
|
});
|
|
919
1017
|
}
|
|
920
1018
|
}
|
|
921
1019
|
});
|
|
922
1020
|
}
|
|
923
|
-
},
|
|
1021
|
+
}, Kt = { class: "catalogue" }, qt = ["href", "title"], zt = /* @__PURE__ */ L({
|
|
924
1022
|
__name: "Catalogue",
|
|
925
1023
|
props: {
|
|
926
1024
|
data: { default: () => [] }
|
|
927
1025
|
},
|
|
928
1026
|
setup(o) {
|
|
929
|
-
const t = o, e =
|
|
1027
|
+
const t = o, e = q(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
|
|
930
1028
|
return (a, r) => {
|
|
931
|
-
const n =
|
|
932
|
-
return
|
|
933
|
-
r[0] || (r[0] =
|
|
934
|
-
(
|
|
935
|
-
class: X("level" +
|
|
936
|
-
key:
|
|
1029
|
+
const n = A("el-divider");
|
|
1030
|
+
return f(), C("div", Kt, [
|
|
1031
|
+
r[0] || (r[0] = B("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
|
|
1032
|
+
(f(!0), C(Q, null, I(e.value, (s) => (f(), C("div", {
|
|
1033
|
+
class: X("level" + s.type),
|
|
1034
|
+
key: s.value
|
|
937
1035
|
}, [
|
|
938
|
-
|
|
1036
|
+
s.type === "h2" ? (f(), E(n, {
|
|
939
1037
|
key: 0,
|
|
940
1038
|
style: { "margin-top": "10px", "margin-bottom": "10px" }
|
|
941
|
-
})) :
|
|
942
|
-
Ae((
|
|
1039
|
+
})) : P("", !0),
|
|
1040
|
+
Ae((f(), C("a", {
|
|
943
1041
|
class: "el-anchor__link",
|
|
944
|
-
href: "#" +
|
|
945
|
-
title:
|
|
1042
|
+
href: "#" + s.id,
|
|
1043
|
+
title: s.data
|
|
946
1044
|
}, [
|
|
947
|
-
|
|
948
|
-
], 8,
|
|
949
|
-
[
|
|
1045
|
+
S(K(s.data), 1)
|
|
1046
|
+
], 8, qt)), [
|
|
1047
|
+
[y(Ft)]
|
|
950
1048
|
])
|
|
951
1049
|
], 2))), 128))
|
|
952
1050
|
]);
|
|
@@ -958,73 +1056,73 @@ const Z = (o, t) => {
|
|
|
958
1056
|
for (const [a, r] of t)
|
|
959
1057
|
e[a] = r;
|
|
960
1058
|
return e;
|
|
961
|
-
},
|
|
1059
|
+
}, Nt = /* @__PURE__ */ Z(zt, [["__scopeId", "data-v-00cc9080"]]), Ht = {
|
|
962
1060
|
class: "chart-components"
|
|
963
|
-
},
|
|
1061
|
+
}, Ve = /* @__PURE__ */ L({
|
|
964
1062
|
__name: "Bar",
|
|
965
1063
|
props: {
|
|
966
1064
|
value: {}
|
|
967
1065
|
},
|
|
968
1066
|
setup(o) {
|
|
969
|
-
const t = o, e =
|
|
970
|
-
return
|
|
971
|
-
const n =
|
|
972
|
-
return
|
|
1067
|
+
const t = o, e = q(() => t.value.options);
|
|
1068
|
+
return k(!1), (a, r) => {
|
|
1069
|
+
const n = A("TdsChart");
|
|
1070
|
+
return f(), C("div", Ht, [l(n, {
|
|
973
1071
|
option: e.value
|
|
974
1072
|
}, null, 8, ["option"])]);
|
|
975
1073
|
};
|
|
976
1074
|
}
|
|
977
|
-
}),
|
|
1075
|
+
}), Yt = { class: "chart-components" }, Le = /* @__PURE__ */ L({
|
|
978
1076
|
__name: "Line",
|
|
979
1077
|
props: {
|
|
980
1078
|
value: {}
|
|
981
1079
|
},
|
|
982
1080
|
setup(o) {
|
|
983
|
-
const t = o, e =
|
|
1081
|
+
const t = o, e = q(() => t.value.options);
|
|
984
1082
|
return (a, r) => {
|
|
985
|
-
const n =
|
|
986
|
-
return
|
|
1083
|
+
const n = A("TdsChart");
|
|
1084
|
+
return f(), C("div", Yt, [
|
|
987
1085
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
988
1086
|
]);
|
|
989
1087
|
};
|
|
990
1088
|
}
|
|
991
|
-
}),
|
|
1089
|
+
}), Gt = { class: "chart-components" }, Ee = /* @__PURE__ */ L({
|
|
992
1090
|
__name: "Pie",
|
|
993
1091
|
props: {
|
|
994
1092
|
value: {}
|
|
995
1093
|
},
|
|
996
1094
|
setup(o) {
|
|
997
|
-
const t = o, e =
|
|
1095
|
+
const t = o, e = q(() => t.value.options);
|
|
998
1096
|
return (a, r) => {
|
|
999
|
-
const n =
|
|
1000
|
-
return
|
|
1097
|
+
const n = A("TdsChart");
|
|
1098
|
+
return f(), C("div", Gt, [
|
|
1001
1099
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
1002
1100
|
]);
|
|
1003
1101
|
};
|
|
1004
1102
|
}
|
|
1005
|
-
}),
|
|
1103
|
+
}), Jt = { key: 0 }, re = /* @__PURE__ */ L({
|
|
1006
1104
|
__name: "ReportSelect",
|
|
1007
1105
|
props: {
|
|
1008
1106
|
value: {}
|
|
1009
1107
|
},
|
|
1010
1108
|
emits: ["change"],
|
|
1011
1109
|
setup(o, { emit: t }) {
|
|
1012
|
-
const e = t, a = (
|
|
1013
|
-
e("change",
|
|
1014
|
-
}, n =
|
|
1015
|
-
return (
|
|
1016
|
-
const i =
|
|
1017
|
-
return n.value.data ? (
|
|
1018
|
-
l(
|
|
1110
|
+
const e = t, a = (s) => {
|
|
1111
|
+
e("change", s);
|
|
1112
|
+
}, n = k(o.value);
|
|
1113
|
+
return (s, u) => {
|
|
1114
|
+
const i = A("el-option"), m = A("el-select");
|
|
1115
|
+
return n.value.data ? (f(), C("div", Jt, [
|
|
1116
|
+
l(m, {
|
|
1019
1117
|
modelValue: n.value.value,
|
|
1020
|
-
"onUpdate:modelValue":
|
|
1118
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => n.value.value = p),
|
|
1021
1119
|
multiple: "",
|
|
1022
1120
|
style: { width: "100%" },
|
|
1023
1121
|
onChange: a,
|
|
1024
1122
|
placeholder: "全部"
|
|
1025
1123
|
}, {
|
|
1026
|
-
default:
|
|
1027
|
-
(
|
|
1124
|
+
default: d(() => [
|
|
1125
|
+
(f(!0), C(Q, null, I(n.value.data, (p) => (f(), E(i, {
|
|
1028
1126
|
key: p.data,
|
|
1029
1127
|
label: p.label,
|
|
1030
1128
|
value: p.data
|
|
@@ -1032,43 +1130,43 @@ const Z = (o, t) => {
|
|
|
1032
1130
|
]),
|
|
1033
1131
|
_: 1
|
|
1034
1132
|
}, 8, ["modelValue"])
|
|
1035
|
-
])) :
|
|
1133
|
+
])) : P("", !0);
|
|
1036
1134
|
};
|
|
1037
1135
|
}
|
|
1038
|
-
}),
|
|
1136
|
+
}), se = /* @__PURE__ */ L({
|
|
1039
1137
|
__name: "RangeTime",
|
|
1040
1138
|
props: {
|
|
1041
1139
|
value: {}
|
|
1042
1140
|
},
|
|
1043
1141
|
emits: ["change"],
|
|
1044
1142
|
setup(o, { emit: t }) {
|
|
1045
|
-
const e = t, r =
|
|
1046
|
-
function
|
|
1047
|
-
|
|
1143
|
+
const e = t, r = k(o.value), n = k([]);
|
|
1144
|
+
function s(u) {
|
|
1145
|
+
u ? (r.value.data[0].start_time = u[0], r.value.data[0].end_time = u[1]) : n.value = [], e("change", n.value);
|
|
1048
1146
|
}
|
|
1049
|
-
return
|
|
1147
|
+
return le(() => {
|
|
1050
1148
|
n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
|
|
1051
|
-
}), (
|
|
1052
|
-
const
|
|
1053
|
-
return
|
|
1054
|
-
l(
|
|
1149
|
+
}), (u, i) => {
|
|
1150
|
+
const m = A("el-date-picker");
|
|
1151
|
+
return f(), C("div", null, [
|
|
1152
|
+
l(m, {
|
|
1055
1153
|
modelValue: n.value,
|
|
1056
1154
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => n.value = p),
|
|
1057
1155
|
type: "datetimerange",
|
|
1058
1156
|
placeholder: "Pick a Date",
|
|
1059
1157
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
1060
1158
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
1061
|
-
onChange:
|
|
1159
|
+
onChange: s,
|
|
1062
1160
|
clearable: !1
|
|
1063
1161
|
}, null, 8, ["modelValue"])
|
|
1064
1162
|
]);
|
|
1065
1163
|
};
|
|
1066
1164
|
}
|
|
1067
1165
|
});
|
|
1068
|
-
function
|
|
1069
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
1166
|
+
function Xt(o) {
|
|
1167
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ue(o);
|
|
1070
1168
|
}
|
|
1071
|
-
const
|
|
1169
|
+
const Se = /* @__PURE__ */ L({
|
|
1072
1170
|
__name: "ReportTable",
|
|
1073
1171
|
props: {
|
|
1074
1172
|
value: {}
|
|
@@ -1076,21 +1174,21 @@ const Le = /* @__PURE__ */ L({
|
|
|
1076
1174
|
setup(o) {
|
|
1077
1175
|
const t = o, e = (a) => {
|
|
1078
1176
|
let r;
|
|
1079
|
-
return l(
|
|
1177
|
+
return l(A("el-table"), {
|
|
1080
1178
|
data: a.data,
|
|
1081
1179
|
border: t.value.options.border,
|
|
1082
1180
|
"show-header": !!t.value.options.showHeader,
|
|
1083
1181
|
stripe: t.value.options.stripe
|
|
1084
|
-
},
|
|
1182
|
+
}, Xt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(A("el-table-column"), {
|
|
1085
1183
|
prop: n.key,
|
|
1086
1184
|
label: n.name
|
|
1087
1185
|
}, null) : null)) ? r : {
|
|
1088
1186
|
default: () => [r]
|
|
1089
1187
|
});
|
|
1090
1188
|
};
|
|
1091
|
-
return (a, r) => (
|
|
1189
|
+
return (a, r) => (f(), C("div", null, [l(e, ve(_e(a.value)), null, 16)]));
|
|
1092
1190
|
}
|
|
1093
|
-
}),
|
|
1191
|
+
}), ie = /* @__PURE__ */ L({
|
|
1094
1192
|
__name: "ReportText",
|
|
1095
1193
|
props: {
|
|
1096
1194
|
value: {}
|
|
@@ -1107,60 +1205,61 @@ const Le = /* @__PURE__ */ L({
|
|
|
1107
1205
|
"text-align": a.textAlign
|
|
1108
1206
|
};
|
|
1109
1207
|
};
|
|
1110
|
-
return (a, r) => (
|
|
1111
|
-
style:
|
|
1112
|
-
},
|
|
1208
|
+
return (a, r) => (f(), C("div", {
|
|
1209
|
+
style: Fe(e())
|
|
1210
|
+
}, K(a.value.data), 5));
|
|
1113
1211
|
}
|
|
1114
|
-
}),
|
|
1212
|
+
}), jt = { class: "chart-components" }, Ue = /* @__PURE__ */ L({
|
|
1115
1213
|
__name: "ReportChart",
|
|
1116
1214
|
props: {
|
|
1117
1215
|
value: {}
|
|
1118
1216
|
},
|
|
1119
1217
|
setup(o) {
|
|
1120
|
-
const t = o, e =
|
|
1218
|
+
const t = o, e = q(() => t.value), a = q(() => {
|
|
1219
|
+
const r = e.value.options;
|
|
1121
1220
|
if (e.value.type === "bar") {
|
|
1122
|
-
|
|
1123
|
-
const
|
|
1124
|
-
let
|
|
1125
|
-
e.value.data.forEach((
|
|
1126
|
-
|
|
1127
|
-
name:
|
|
1128
|
-
value:
|
|
1221
|
+
r.series = ne([]).series;
|
|
1222
|
+
const n = [];
|
|
1223
|
+
let s = "";
|
|
1224
|
+
e.value.data.forEach((u) => {
|
|
1225
|
+
s = u.data[0].name, n.push({
|
|
1226
|
+
name: u.label,
|
|
1227
|
+
value: u.data[0].value
|
|
1129
1228
|
});
|
|
1130
|
-
}),
|
|
1229
|
+
}), Vt(r, n, s);
|
|
1131
1230
|
}
|
|
1132
|
-
if (e.value.type === "pie" && (
|
|
1133
|
-
let
|
|
1134
|
-
e.value.data.forEach((
|
|
1135
|
-
|
|
1231
|
+
if (e.value.type === "pie" && (r.series = pe({ isLegend: !0 }).series, Lt({ chartOption: r, data: e.value.data })), e.value.type === "line") {
|
|
1232
|
+
let n = [];
|
|
1233
|
+
e.value.data.forEach((i) => {
|
|
1234
|
+
n = i.data.map((m, p) => ({ name: m.name, value: "value" + p }));
|
|
1136
1235
|
});
|
|
1137
|
-
const
|
|
1236
|
+
const s = {
|
|
1138
1237
|
name: "name",
|
|
1139
|
-
value:
|
|
1140
|
-
},
|
|
1141
|
-
const
|
|
1142
|
-
name:
|
|
1238
|
+
value: n
|
|
1239
|
+
}, u = e.value.data.map((i) => {
|
|
1240
|
+
const m = {
|
|
1241
|
+
name: i.label
|
|
1143
1242
|
};
|
|
1144
|
-
return
|
|
1145
|
-
|
|
1146
|
-
}),
|
|
1243
|
+
return n.forEach((p, c) => {
|
|
1244
|
+
m[p.value] = i.data[c].value;
|
|
1245
|
+
}), m;
|
|
1147
1246
|
});
|
|
1148
|
-
console.log(
|
|
1247
|
+
console.log(oe([], s), "chartsLine([], params)"), r.series = oe([], s).series, St(r, u, s);
|
|
1149
1248
|
}
|
|
1150
|
-
return
|
|
1249
|
+
return r;
|
|
1151
1250
|
});
|
|
1152
1251
|
return (r, n) => {
|
|
1153
|
-
const
|
|
1154
|
-
return
|
|
1155
|
-
l(
|
|
1252
|
+
const s = A("TdsChart");
|
|
1253
|
+
return f(), C("div", jt, [
|
|
1254
|
+
l(s, { option: a.value }, null, 8, ["option"])
|
|
1156
1255
|
]);
|
|
1157
1256
|
};
|
|
1158
1257
|
}
|
|
1159
1258
|
});
|
|
1160
|
-
function
|
|
1161
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
1259
|
+
function Zt(o) {
|
|
1260
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ue(o);
|
|
1162
1261
|
}
|
|
1163
|
-
const
|
|
1262
|
+
const Re = /* @__PURE__ */ L({
|
|
1164
1263
|
__name: "ReportDescribe",
|
|
1165
1264
|
props: {
|
|
1166
1265
|
value: {}
|
|
@@ -1168,12 +1267,12 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1168
1267
|
setup(o) {
|
|
1169
1268
|
const t = o, e = (a) => {
|
|
1170
1269
|
let r;
|
|
1171
|
-
return l(
|
|
1270
|
+
return l(A("el-descriptions"), {
|
|
1172
1271
|
title: t.value.options.title,
|
|
1173
1272
|
border: t.value.options.border,
|
|
1174
1273
|
column: t.value.options.column,
|
|
1175
1274
|
direction: t.value.options.direction
|
|
1176
|
-
},
|
|
1275
|
+
}, Zt(r = a.showColumn.map((n) => l(A("el-descriptions-item"), {
|
|
1177
1276
|
label: n.name
|
|
1178
1277
|
}, {
|
|
1179
1278
|
default: () => [l("div", {
|
|
@@ -1183,25 +1282,110 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1183
1282
|
default: () => [r]
|
|
1184
1283
|
});
|
|
1185
1284
|
};
|
|
1186
|
-
return (a, r) => (
|
|
1285
|
+
return (a, r) => (f(), C("div", null, [l(e, ve(_e(a.value)), null, 16)]));
|
|
1286
|
+
}
|
|
1287
|
+
}), Wt = /* @__PURE__ */ L({
|
|
1288
|
+
__name: "WordCloudChart",
|
|
1289
|
+
props: {
|
|
1290
|
+
value: { default: null },
|
|
1291
|
+
width: { default: "100%" },
|
|
1292
|
+
height: { default: "300px" }
|
|
1293
|
+
},
|
|
1294
|
+
setup(o, { expose: t }) {
|
|
1295
|
+
Ke((i) => ({
|
|
1296
|
+
"4cd410c3": e.width,
|
|
1297
|
+
"33df0dca": e.height
|
|
1298
|
+
}));
|
|
1299
|
+
const e = o, a = k(null);
|
|
1300
|
+
let r = null;
|
|
1301
|
+
const n = {
|
|
1302
|
+
tooltip: { show: !0 },
|
|
1303
|
+
// 建议加上 tooltip 方便查看交互
|
|
1304
|
+
series: [
|
|
1305
|
+
{
|
|
1306
|
+
type: "wordCloud",
|
|
1307
|
+
shape: "diamond",
|
|
1308
|
+
left: "center",
|
|
1309
|
+
top: "center",
|
|
1310
|
+
width: "90%",
|
|
1311
|
+
height: "90%",
|
|
1312
|
+
right: null,
|
|
1313
|
+
bottom: null,
|
|
1314
|
+
sizeRange: [12, 60],
|
|
1315
|
+
rotationRange: [0, 0],
|
|
1316
|
+
rotationStep: 45,
|
|
1317
|
+
gridSize: 30,
|
|
1318
|
+
drawOutOfBound: !1,
|
|
1319
|
+
layoutAnimation: !0,
|
|
1320
|
+
textStyle: {
|
|
1321
|
+
emphasis: {
|
|
1322
|
+
shadowBlur: 10,
|
|
1323
|
+
shadowColor: "#2ac"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
data: [
|
|
1327
|
+
{ name: "name1", value: 1e4 },
|
|
1328
|
+
{ name: "name2", value: 6181 },
|
|
1329
|
+
{ name: "name3", value: 4386 },
|
|
1330
|
+
{ name: "name4", value: 4055 },
|
|
1331
|
+
//稍微改了下数据验证是否生效
|
|
1332
|
+
{ name: "name5", value: 2467 },
|
|
1333
|
+
{ name: "name6", value: 2244 },
|
|
1334
|
+
{ name: "name7", value: 223 }
|
|
1335
|
+
]
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
1338
|
+
}, s = () => {
|
|
1339
|
+
if (!a.value)
|
|
1340
|
+
return;
|
|
1341
|
+
r && r.dispose(), r = Ze.init(a.value);
|
|
1342
|
+
const i = JSON.parse(JSON.stringify(n));
|
|
1343
|
+
e.value.data && (i.series[0].data = e.value.data), r.setOption(i);
|
|
1344
|
+
}, u = () => {
|
|
1345
|
+
r == null || r.resize();
|
|
1346
|
+
};
|
|
1347
|
+
return le(() => {
|
|
1348
|
+
qe(() => {
|
|
1349
|
+
s(), window.addEventListener("resize", u);
|
|
1350
|
+
});
|
|
1351
|
+
}), we(() => {
|
|
1352
|
+
window.removeEventListener("resize", u), r == null || r.dispose();
|
|
1353
|
+
}), de(
|
|
1354
|
+
() => e.value,
|
|
1355
|
+
(i) => {
|
|
1356
|
+
if (r) {
|
|
1357
|
+
let m = JSON.parse(JSON.stringify(n));
|
|
1358
|
+
i.data && (m.series[0].data = i.data), r.setOption(m, !0);
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
{ deep: !0 }
|
|
1362
|
+
), t({
|
|
1363
|
+
getChartInstance: () => r,
|
|
1364
|
+
resize: u
|
|
1365
|
+
}), (i, m) => (f(), C("div", {
|
|
1366
|
+
ref_key: "chartRef",
|
|
1367
|
+
ref: a,
|
|
1368
|
+
class: "word-cloud-chart"
|
|
1369
|
+
}, null, 512));
|
|
1187
1370
|
}
|
|
1188
|
-
})
|
|
1371
|
+
});
|
|
1372
|
+
const Oe = /* @__PURE__ */ Z(Wt, [["__scopeId", "data-v-56e6eade"]]), $t = {
|
|
1189
1373
|
class: "editor-box"
|
|
1190
|
-
},
|
|
1374
|
+
}, eo = {
|
|
1191
1375
|
class: "editor",
|
|
1192
1376
|
id: "editor",
|
|
1193
1377
|
style: {
|
|
1194
1378
|
width: "100%"
|
|
1195
1379
|
}
|
|
1196
|
-
},
|
|
1380
|
+
}, to = {
|
|
1197
1381
|
class: "editor-content flex flex-start"
|
|
1198
|
-
},
|
|
1382
|
+
}, oo = {
|
|
1199
1383
|
style: {
|
|
1200
1384
|
"margin-left": "auto"
|
|
1201
1385
|
}
|
|
1202
|
-
},
|
|
1386
|
+
}, lo = ["id"], no = ["innerHTML"], ao = /* @__PURE__ */ L({
|
|
1203
1387
|
__name: "index",
|
|
1204
|
-
props: /* @__PURE__ */
|
|
1388
|
+
props: /* @__PURE__ */ be({
|
|
1205
1389
|
reportId: {
|
|
1206
1390
|
type: String,
|
|
1207
1391
|
default: ""
|
|
@@ -1212,97 +1396,98 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1212
1396
|
}),
|
|
1213
1397
|
emits: ["update:modelValue"],
|
|
1214
1398
|
setup(o) {
|
|
1215
|
-
const t =
|
|
1216
|
-
Bar:
|
|
1217
|
-
Line:
|
|
1218
|
-
Pie:
|
|
1219
|
-
ReportSelect:
|
|
1220
|
-
RangeTime:
|
|
1221
|
-
ReportTable:
|
|
1222
|
-
ReportText:
|
|
1223
|
-
ReportChart:
|
|
1224
|
-
ReportDescribe:
|
|
1225
|
-
|
|
1226
|
-
|
|
1399
|
+
const t = k(!1), e = {
|
|
1400
|
+
Bar: Ve,
|
|
1401
|
+
Line: Le,
|
|
1402
|
+
Pie: Ee,
|
|
1403
|
+
ReportSelect: re,
|
|
1404
|
+
RangeTime: se,
|
|
1405
|
+
ReportTable: Se,
|
|
1406
|
+
ReportText: ie,
|
|
1407
|
+
ReportChart: Ue,
|
|
1408
|
+
ReportDescribe: Re,
|
|
1409
|
+
WordCloudChart: Oe
|
|
1410
|
+
}, a = z(), r = o, n = ye(o, "modelValue"), s = k([]), u = k([]), i = k([]), m = /* @__PURE__ */ new Date(), p = new Date(m);
|
|
1411
|
+
p.setMonth(m.getMonth() - 1);
|
|
1227
1412
|
function c(T) {
|
|
1228
1413
|
return T < 10 ? "0" + T : T;
|
|
1229
1414
|
}
|
|
1230
|
-
function
|
|
1415
|
+
function b(T) {
|
|
1231
1416
|
return T.getFullYear() + "-" + c(T.getMonth() + 1) + "-" + c(T.getDate()) + " " + c(T.getHours()) + ":" + c(T.getMinutes()) + ":" + c(T.getSeconds());
|
|
1232
1417
|
}
|
|
1233
|
-
const
|
|
1418
|
+
const v = k(b(p)), V = k(b(m));
|
|
1234
1419
|
function w() {
|
|
1235
1420
|
n.value = "table";
|
|
1236
1421
|
}
|
|
1237
|
-
async function
|
|
1422
|
+
async function g(T) {
|
|
1238
1423
|
const U = {
|
|
1239
1424
|
export_format: T,
|
|
1240
1425
|
select_data: i.value.join(","),
|
|
1241
1426
|
report_uuid: r.reportId,
|
|
1242
|
-
start_time:
|
|
1243
|
-
end_time:
|
|
1427
|
+
start_time: v.value,
|
|
1428
|
+
end_time: V.value
|
|
1244
1429
|
};
|
|
1245
|
-
await
|
|
1430
|
+
await Tt(U), We({
|
|
1246
1431
|
title: "提示",
|
|
1247
1432
|
message: "正在生成导出中,请稍等...",
|
|
1248
1433
|
type: "info"
|
|
1249
1434
|
});
|
|
1250
1435
|
}
|
|
1251
|
-
const
|
|
1252
|
-
i.value = T,
|
|
1253
|
-
},
|
|
1254
|
-
T && T.length > 0 && (
|
|
1255
|
-
},
|
|
1436
|
+
const x = (T) => {
|
|
1437
|
+
i.value = T, h();
|
|
1438
|
+
}, _ = (T) => {
|
|
1439
|
+
T && T.length > 0 && (v.value = T[0], V.value = T[1]), h();
|
|
1440
|
+
}, h = async () => {
|
|
1256
1441
|
try {
|
|
1257
1442
|
t.value = !0;
|
|
1258
1443
|
const T = {
|
|
1259
1444
|
report_uuid: r.reportId,
|
|
1260
|
-
start_time:
|
|
1261
|
-
end_time:
|
|
1445
|
+
start_time: v.value,
|
|
1446
|
+
end_time: V.value,
|
|
1262
1447
|
select_data: i.value.join(",")
|
|
1263
|
-
}, U = await
|
|
1264
|
-
U.data.forEach((
|
|
1265
|
-
(
|
|
1266
|
-
}),
|
|
1448
|
+
}, U = await st(T), Y = [];
|
|
1449
|
+
U.data.forEach((W) => {
|
|
1450
|
+
(W.type === "report-select" || W.type === "range-time") && Y.push(W);
|
|
1451
|
+
}), s.value = Y, U.data.splice(0, s.value.length), u.value = U.data, t.value = !1;
|
|
1267
1452
|
} catch (T) {
|
|
1268
1453
|
t.value = !1, console.error("Error setting loading state:", T);
|
|
1269
1454
|
}
|
|
1270
1455
|
};
|
|
1271
|
-
|
|
1272
|
-
const
|
|
1273
|
-
|
|
1274
|
-
|
|
1456
|
+
h();
|
|
1457
|
+
const D = () => l("div", null, [S("未找到对应组件")]);
|
|
1458
|
+
de(() => r.reportId, () => {
|
|
1459
|
+
h();
|
|
1275
1460
|
});
|
|
1276
|
-
const
|
|
1461
|
+
const N = (T) => T === "h2" || T === "h3" || T === "h4" ? F(e, "ReportText") : T === "bar" || T === "pie" || T === "line" ? F(e, "ReportChart") : T === "wordcloud" ? F(e, "WordCloudChart") : T ? F(e, T) : l(D, null, null);
|
|
1277
1462
|
return (T, U) => {
|
|
1278
|
-
const Y =
|
|
1279
|
-
return Ae((
|
|
1463
|
+
const Y = A("el-button"), W = A("el-card"), Me = he("loading");
|
|
1464
|
+
return Ae((f(), E(W, {
|
|
1280
1465
|
class: "editor view",
|
|
1281
1466
|
"element-loading-text": "加载中..."
|
|
1282
1467
|
}, {
|
|
1283
|
-
default:
|
|
1284
|
-
data:
|
|
1285
|
-
}, null, 8, ["data"]),
|
|
1468
|
+
default: d(() => [B("div", $t, [l(Nt, {
|
|
1469
|
+
data: u.value
|
|
1470
|
+
}, null, 8, ["data"]), B("div", eo, [B("div", to, [(f(!0), C(Q, null, I(s.value, (R) => (f(), C("div", {
|
|
1286
1471
|
class: "item-input",
|
|
1287
1472
|
key: R.id
|
|
1288
|
-
}, [R.type === "report-select" ? (
|
|
1473
|
+
}, [R.type === "report-select" ? (f(), E(re, {
|
|
1289
1474
|
key: 0,
|
|
1290
|
-
onChange:
|
|
1475
|
+
onChange: x,
|
|
1291
1476
|
value: R
|
|
1292
|
-
}, null, 8, ["value"])) :
|
|
1477
|
+
}, null, 8, ["value"])) : P("", !0), R.type === "range-time" && y(a).filterForm.range_time ? (f(), E(se, {
|
|
1293
1478
|
key: 1,
|
|
1294
|
-
onChange:
|
|
1479
|
+
onChange: _,
|
|
1295
1480
|
value: R
|
|
1296
|
-
}, null, 8, ["value"])) :
|
|
1481
|
+
}, null, 8, ["value"])) : P("", !0)]))), 128)), B("div", oo, [U[5] || (U[5] = B("span", {
|
|
1297
1482
|
class: "font-export"
|
|
1298
1483
|
}, "导出为:", -1)), l(Y, {
|
|
1299
1484
|
link: "",
|
|
1300
|
-
onClick: U[0] || (U[0] = (R) =>
|
|
1485
|
+
onClick: U[0] || (U[0] = (R) => g(1)),
|
|
1301
1486
|
title: "PDF",
|
|
1302
1487
|
type: "primary",
|
|
1303
1488
|
class: "custom-btn"
|
|
1304
1489
|
}, {
|
|
1305
|
-
default:
|
|
1490
|
+
default: d(() => U[2] || (U[2] = [B("img", {
|
|
1306
1491
|
style: {
|
|
1307
1492
|
width: "25px",
|
|
1308
1493
|
height: "25px"
|
|
@@ -1313,7 +1498,7 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1313
1498
|
_: 1
|
|
1314
1499
|
}), l(Y, {
|
|
1315
1500
|
link: "",
|
|
1316
|
-
onClick: U[1] || (U[1] = (R) =>
|
|
1501
|
+
onClick: U[1] || (U[1] = (R) => g(3)),
|
|
1317
1502
|
title: "WORD",
|
|
1318
1503
|
type: "primary",
|
|
1319
1504
|
class: "custom-btn",
|
|
@@ -1321,7 +1506,7 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1321
1506
|
"margin-right": "5px"
|
|
1322
1507
|
}
|
|
1323
1508
|
}, {
|
|
1324
|
-
default:
|
|
1509
|
+
default: d(() => U[3] || (U[3] = [B("img", {
|
|
1325
1510
|
style: {
|
|
1326
1511
|
width: "25px",
|
|
1327
1512
|
height: "25px"
|
|
@@ -1339,143 +1524,144 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1339
1524
|
"margin-left": "auto"
|
|
1340
1525
|
}
|
|
1341
1526
|
}, {
|
|
1342
|
-
default:
|
|
1527
|
+
default: d(() => U[4] || (U[4] = [S("退出预览")])),
|
|
1343
1528
|
_: 1
|
|
1344
|
-
})])]), (
|
|
1529
|
+
})])]), (f(!0), C(Q, null, I(u.value, (R) => (f(), C("div", {
|
|
1345
1530
|
key: R.id,
|
|
1346
1531
|
class: X(["editor-content", ["editor" + R.type]]),
|
|
1347
1532
|
id: R.id
|
|
1348
|
-
}, [R.type !== "p" ? (
|
|
1533
|
+
}, [R.type !== "p" ? (f(), E(ee(N(R.type)), {
|
|
1349
1534
|
key: 0,
|
|
1350
1535
|
class: X(["editor" + R.type]),
|
|
1351
1536
|
value: R
|
|
1352
1537
|
}, {
|
|
1353
|
-
default:
|
|
1538
|
+
default: d(() => [S(K(R.data), 1)]),
|
|
1354
1539
|
_: 2
|
|
1355
|
-
}, 1032, ["class", "value"])) : (
|
|
1540
|
+
}, 1032, ["class", "value"])) : (f(), C("p", {
|
|
1356
1541
|
key: 1,
|
|
1357
1542
|
innerHTML: R.data
|
|
1358
|
-
}, null, 8,
|
|
1543
|
+
}, null, 8, no))], 10, lo))), 128))])])]),
|
|
1359
1544
|
_: 1
|
|
1360
|
-
})), [[
|
|
1545
|
+
})), [[Me, t.value]]);
|
|
1361
1546
|
};
|
|
1362
1547
|
}
|
|
1363
1548
|
});
|
|
1364
|
-
const
|
|
1549
|
+
const Pe = /* @__PURE__ */ Z(ao, [["__scopeId", "data-v-216a6527"]]), ro = {
|
|
1365
1550
|
class: "editor"
|
|
1366
|
-
},
|
|
1551
|
+
}, so = {
|
|
1367
1552
|
class: "editor-content edit"
|
|
1368
|
-
},
|
|
1553
|
+
}, io = ["onClick"], Ao = ["onClick"], uo = ["innerHTML", "draggable"], po = /* @__PURE__ */ L({
|
|
1369
1554
|
__name: "Editor",
|
|
1370
1555
|
setup(o) {
|
|
1371
1556
|
const t = {
|
|
1372
|
-
Bar:
|
|
1373
|
-
Line:
|
|
1374
|
-
Pie:
|
|
1375
|
-
ReportSelect:
|
|
1376
|
-
RangeTime:
|
|
1377
|
-
ReportTable:
|
|
1378
|
-
ReportText:
|
|
1379
|
-
ReportChart:
|
|
1380
|
-
ReportDescribe:
|
|
1557
|
+
Bar: Ve,
|
|
1558
|
+
Line: Le,
|
|
1559
|
+
Pie: Ee,
|
|
1560
|
+
ReportSelect: re,
|
|
1561
|
+
RangeTime: se,
|
|
1562
|
+
ReportTable: Se,
|
|
1563
|
+
ReportText: ie,
|
|
1564
|
+
ReportChart: Ue,
|
|
1565
|
+
ReportDescribe: Re,
|
|
1566
|
+
WordCloudChart: Oe
|
|
1381
1567
|
}, {
|
|
1382
1568
|
componentList: e,
|
|
1383
1569
|
activeComponents: a,
|
|
1384
1570
|
notDraggableList: r,
|
|
1385
1571
|
titleComponent: n
|
|
1386
|
-
} =
|
|
1387
|
-
e.value.forEach((
|
|
1388
|
-
|
|
1572
|
+
} = je(z()), s = z(), u = (g) => {
|
|
1573
|
+
e.value.forEach((x, _) => {
|
|
1574
|
+
x.id === g && (e.value.splice(_, 1), s.activeComponents = []);
|
|
1389
1575
|
});
|
|
1390
|
-
}, i = (
|
|
1391
|
-
|
|
1392
|
-
},
|
|
1393
|
-
console.log(
|
|
1394
|
-
},
|
|
1395
|
-
|
|
1396
|
-
},
|
|
1397
|
-
|
|
1398
|
-
}, w =
|
|
1399
|
-
return (
|
|
1400
|
-
const
|
|
1401
|
-
return
|
|
1576
|
+
}, i = (g) => {
|
|
1577
|
+
s.setActiveComponents(g);
|
|
1578
|
+
}, m = () => l("div", null, [S("未找到对应组件")]), p = (g) => g === "h2" || g === "h3" || g === "h4" ? F(t, "ReportText") : g === "bar" || g === "pie" || g === "line" ? F(t, "ReportChart") : g === "wordcloud" ? F(t, "WordCloudChart") : g ? F(t, g) : l(m, null, null), c = (g) => {
|
|
1579
|
+
console.log(g, "evt");
|
|
1580
|
+
}, b = k(!1), v = () => {
|
|
1581
|
+
b.value = !0;
|
|
1582
|
+
}, V = (g) => {
|
|
1583
|
+
g.newIndex !== 0 && (console.log(g), b.value = !1);
|
|
1584
|
+
}, w = k();
|
|
1585
|
+
return (g, x) => {
|
|
1586
|
+
const _ = A("CircleClose"), h = A("el-icon");
|
|
1587
|
+
return f(), C("div", ro, [B("div", {
|
|
1402
1588
|
class: X(["editor-content edit flex flex-start", [{
|
|
1403
|
-
active:
|
|
1589
|
+
active: y(a).id === "filter"
|
|
1404
1590
|
}]]),
|
|
1405
|
-
onClick:
|
|
1591
|
+
onClick: x[0] || (x[0] = (D) => i({
|
|
1406
1592
|
id: "filter",
|
|
1407
1593
|
type: "filter"
|
|
1408
1594
|
}))
|
|
1409
|
-
}, [(
|
|
1595
|
+
}, [(f(!0), C(Q, null, I(y(r), (D) => (f(), C("div", {
|
|
1410
1596
|
class: "item-input",
|
|
1411
|
-
key:
|
|
1412
|
-
}, [
|
|
1597
|
+
key: D.id
|
|
1598
|
+
}, [D.type === "report-select" || D.type === "range-time" && y(s).filterForm.range_time ? (f(), E(ee(y(F)(t, D.type)), {
|
|
1413
1599
|
key: 0,
|
|
1414
|
-
value:
|
|
1600
|
+
value: D
|
|
1415
1601
|
}, {
|
|
1416
|
-
default:
|
|
1602
|
+
default: d(() => [S(K(D.data), 1)]),
|
|
1417
1603
|
_: 2
|
|
1418
|
-
}, 1032, ["value"])) :
|
|
1419
|
-
value:
|
|
1420
|
-
onClick:
|
|
1421
|
-
}, null, 8, ["value"])]), l(
|
|
1604
|
+
}, 1032, ["value"])) : P("", !0)]))), 128))], 2), B("div", so, [l(ie, {
|
|
1605
|
+
value: y(n),
|
|
1606
|
+
onClick: x[1] || (x[1] = (D) => i(y(n)))
|
|
1607
|
+
}, null, 8, ["value"])]), l(y(et), {
|
|
1422
1608
|
ref_key: "el",
|
|
1423
1609
|
ref: w,
|
|
1424
|
-
modelValue:
|
|
1425
|
-
"onUpdate:modelValue":
|
|
1610
|
+
modelValue: y(e),
|
|
1611
|
+
"onUpdate:modelValue": x[2] || (x[2] = (D) => ze(e) ? e.value = D : null),
|
|
1426
1612
|
"on-change": c,
|
|
1427
1613
|
animation: 150,
|
|
1428
|
-
onStart:
|
|
1429
|
-
onEnd:
|
|
1614
|
+
onStart: v,
|
|
1615
|
+
onEnd: V
|
|
1430
1616
|
}, {
|
|
1431
|
-
default:
|
|
1432
|
-
key:
|
|
1433
|
-
class: X(["editor-content edit", ["editor" +
|
|
1434
|
-
active:
|
|
1617
|
+
default: d(() => [(f(!0), C(Q, null, I(y(e), (D) => (f(), C("div", {
|
|
1618
|
+
key: D.id,
|
|
1619
|
+
class: X(["editor-content edit", ["editor" + D.type, {
|
|
1620
|
+
active: D.id === y(a).id
|
|
1435
1621
|
}]]),
|
|
1436
|
-
onClick: (
|
|
1437
|
-
}, [
|
|
1438
|
-
onClick:
|
|
1622
|
+
onClick: (N) => i(D)
|
|
1623
|
+
}, [B("i", {
|
|
1624
|
+
onClick: Ne((N) => u(D.id), ["stop"]),
|
|
1439
1625
|
style: {
|
|
1440
1626
|
"z-index": "99"
|
|
1441
1627
|
}
|
|
1442
|
-
}, [l(
|
|
1628
|
+
}, [l(h, {
|
|
1443
1629
|
size: "16px",
|
|
1444
1630
|
color: "red"
|
|
1445
1631
|
}, {
|
|
1446
|
-
default:
|
|
1632
|
+
default: d(() => [l(_)]),
|
|
1447
1633
|
_: 1
|
|
1448
|
-
})], 8,
|
|
1634
|
+
})], 8, Ao), D.type !== "p" ? (f(), E(ee(p(D.type)), {
|
|
1449
1635
|
key: 0,
|
|
1450
|
-
class: X(["editor" +
|
|
1451
|
-
value:
|
|
1452
|
-
draggable:
|
|
1636
|
+
class: X(["editor" + D.type]),
|
|
1637
|
+
value: D,
|
|
1638
|
+
draggable: b.value
|
|
1453
1639
|
}, {
|
|
1454
|
-
default:
|
|
1640
|
+
default: d(() => [S(K(D.data), 1)]),
|
|
1455
1641
|
_: 2
|
|
1456
|
-
}, 1032, ["class", "value", "draggable"])) : (
|
|
1642
|
+
}, 1032, ["class", "value", "draggable"])) : (f(), C("p", {
|
|
1457
1643
|
key: 1,
|
|
1458
|
-
innerHTML:
|
|
1459
|
-
draggable:
|
|
1460
|
-
}, null, 8,
|
|
1644
|
+
innerHTML: D.data,
|
|
1645
|
+
draggable: b.value
|
|
1646
|
+
}, null, 8, uo))], 10, io))), 128))]),
|
|
1461
1647
|
_: 1
|
|
1462
1648
|
}, 8, ["modelValue"])]);
|
|
1463
1649
|
};
|
|
1464
1650
|
}
|
|
1465
|
-
}),
|
|
1651
|
+
}), co = { class: "label" }, mo = { class: "flex item-switch" }, fo = { class: "flex item-switch" }, go = { class: "flex item-switch" }, Qe = /* @__PURE__ */ L({
|
|
1466
1652
|
__name: "SettingTable",
|
|
1467
1653
|
setup(o) {
|
|
1468
|
-
const t =
|
|
1654
|
+
const t = z(), e = q(() => t.getActiveComponents);
|
|
1469
1655
|
return (a, r) => {
|
|
1470
|
-
const n =
|
|
1471
|
-
return
|
|
1472
|
-
l(
|
|
1473
|
-
default:
|
|
1474
|
-
(
|
|
1656
|
+
const n = A("el-switch"), s = A("el-form-item"), u = A("el-divider");
|
|
1657
|
+
return f(), C("div", null, [
|
|
1658
|
+
l(s, { label: "控制列" }, {
|
|
1659
|
+
default: d(() => [
|
|
1660
|
+
(f(!0), C(Q, null, I(e.value.showColumn, (i, m) => (f(), C("p", {
|
|
1475
1661
|
class: "flex item-switch",
|
|
1476
|
-
key:
|
|
1662
|
+
key: m
|
|
1477
1663
|
}, [
|
|
1478
|
-
|
|
1664
|
+
B("span", co, K(i.name), 1),
|
|
1479
1665
|
l(n, {
|
|
1480
1666
|
modelValue: e.value.options.showColumn[i.key],
|
|
1481
1667
|
"onUpdate:modelValue": (p) => e.value.options.showColumn[i.key] = p
|
|
@@ -1484,25 +1670,25 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1484
1670
|
]),
|
|
1485
1671
|
_: 1
|
|
1486
1672
|
}),
|
|
1487
|
-
l(
|
|
1488
|
-
l(
|
|
1489
|
-
default:
|
|
1490
|
-
|
|
1491
|
-
r[3] || (r[3] =
|
|
1673
|
+
l(u),
|
|
1674
|
+
l(s, { label: "表格样式" }, {
|
|
1675
|
+
default: d(() => [
|
|
1676
|
+
B("p", mo, [
|
|
1677
|
+
r[3] || (r[3] = B("span", { class: "label" }, "斑马纹", -1)),
|
|
1492
1678
|
l(n, {
|
|
1493
1679
|
modelValue: e.value.options.stripe,
|
|
1494
1680
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
|
|
1495
1681
|
}, null, 8, ["modelValue"])
|
|
1496
1682
|
]),
|
|
1497
|
-
|
|
1498
|
-
r[4] || (r[4] =
|
|
1683
|
+
B("p", fo, [
|
|
1684
|
+
r[4] || (r[4] = B("span", { class: "label" }, "边框", -1)),
|
|
1499
1685
|
l(n, {
|
|
1500
1686
|
modelValue: e.value.options.border,
|
|
1501
1687
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
|
|
1502
1688
|
}, null, 8, ["modelValue"])
|
|
1503
1689
|
]),
|
|
1504
|
-
|
|
1505
|
-
r[5] || (r[5] =
|
|
1690
|
+
B("p", go, [
|
|
1691
|
+
r[5] || (r[5] = B("span", { class: "label" }, "表头", -1)),
|
|
1506
1692
|
l(n, {
|
|
1507
1693
|
modelValue: e.value.options.showHeader,
|
|
1508
1694
|
"onUpdate:modelValue": r[2] || (r[2] = (i) => e.value.options.showHeader = i)
|
|
@@ -1514,37 +1700,37 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1514
1700
|
]);
|
|
1515
1701
|
};
|
|
1516
1702
|
}
|
|
1517
|
-
}),
|
|
1703
|
+
}), vo = { key: 0 }, _o = /* @__PURE__ */ L({
|
|
1518
1704
|
__name: "ChartsUniConfig",
|
|
1519
1705
|
setup(o) {
|
|
1520
|
-
const t =
|
|
1706
|
+
const t = z(), e = q(() => t.activeComponents);
|
|
1521
1707
|
function a(r) {
|
|
1522
1708
|
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);
|
|
1523
1709
|
}
|
|
1524
|
-
return
|
|
1525
|
-
const
|
|
1526
|
-
return e.value.options.title ? (
|
|
1527
|
-
l(
|
|
1528
|
-
default:
|
|
1529
|
-
l(
|
|
1710
|
+
return k("rgb(46, 145, 255)"), (r, n) => {
|
|
1711
|
+
const s = A("el-input"), u = A("el-form-item"), i = A("el-switch"), m = A("el-col"), p = A("el-color-picker"), c = A("el-input-number"), b = A("el-row"), v = A("el-collapse-item"), V = A("el-collapse");
|
|
1712
|
+
return e.value.options.title ? (f(), C("div", vo, [
|
|
1713
|
+
l(u, { label: "标题" }, {
|
|
1714
|
+
default: d(() => [
|
|
1715
|
+
l(s, {
|
|
1530
1716
|
modelValue: e.value.options.title.text,
|
|
1531
1717
|
"onUpdate:modelValue": n[0] || (n[0] = (w) => e.value.options.title.text = w)
|
|
1532
1718
|
}, null, 8, ["modelValue"])
|
|
1533
1719
|
]),
|
|
1534
1720
|
_: 1
|
|
1535
1721
|
}),
|
|
1536
|
-
l(
|
|
1537
|
-
default:
|
|
1538
|
-
l(
|
|
1722
|
+
l(V, null, {
|
|
1723
|
+
default: d(() => [
|
|
1724
|
+
l(v, {
|
|
1539
1725
|
title: "标题配置",
|
|
1540
1726
|
name: "1"
|
|
1541
1727
|
}, {
|
|
1542
|
-
default:
|
|
1543
|
-
l(
|
|
1544
|
-
default:
|
|
1545
|
-
l(
|
|
1546
|
-
default:
|
|
1547
|
-
n[8] || (n[8] =
|
|
1728
|
+
default: d(() => [
|
|
1729
|
+
l(b, { class: "w-100%" }, {
|
|
1730
|
+
default: d(() => [
|
|
1731
|
+
l(m, { span: 24 }, {
|
|
1732
|
+
default: d(() => [
|
|
1733
|
+
n[8] || (n[8] = B("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1548
1734
|
l(i, {
|
|
1549
1735
|
modelValue: e.value.options.title.show,
|
|
1550
1736
|
"onUpdate:modelValue": n[1] || (n[1] = (w) => e.value.options.title.show = w)
|
|
@@ -1552,47 +1738,47 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1552
1738
|
]),
|
|
1553
1739
|
_: 1
|
|
1554
1740
|
}),
|
|
1555
|
-
l(
|
|
1556
|
-
default:
|
|
1741
|
+
l(m, { span: 12 }, {
|
|
1742
|
+
default: d(() => [
|
|
1557
1743
|
l(p, {
|
|
1558
1744
|
modelValue: e.value.options.title.textStyle.color,
|
|
1559
1745
|
"onUpdate:modelValue": n[2] || (n[2] = (w) => e.value.options.title.textStyle.color = w),
|
|
1560
1746
|
"show-alpha": ""
|
|
1561
1747
|
}, null, 8, ["modelValue"]),
|
|
1562
|
-
n[9] || (n[9] =
|
|
1748
|
+
n[9] || (n[9] = B("p", { class: "sub-title" }, "颜色", -1))
|
|
1563
1749
|
]),
|
|
1564
1750
|
_: 1
|
|
1565
1751
|
}),
|
|
1566
|
-
l(
|
|
1567
|
-
default:
|
|
1752
|
+
l(m, { span: 12 }, {
|
|
1753
|
+
default: d(() => [
|
|
1568
1754
|
l(c, {
|
|
1569
1755
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1570
1756
|
"onUpdate:modelValue": n[3] || (n[3] = (w) => e.value.options.title.textStyle.fontSize = w),
|
|
1571
1757
|
"controls-position": "right"
|
|
1572
1758
|
}, null, 8, ["modelValue"]),
|
|
1573
|
-
n[10] || (n[10] =
|
|
1759
|
+
n[10] || (n[10] = B("p", { class: "sub-title" }, "字体大小", -1))
|
|
1574
1760
|
]),
|
|
1575
1761
|
_: 1
|
|
1576
1762
|
}),
|
|
1577
|
-
l(
|
|
1578
|
-
default:
|
|
1763
|
+
l(m, { span: 12 }, {
|
|
1764
|
+
default: d(() => [
|
|
1579
1765
|
l(c, {
|
|
1580
1766
|
modelValue: e.value.options.title.x,
|
|
1581
1767
|
"onUpdate:modelValue": n[4] || (n[4] = (w) => e.value.options.title.x = w),
|
|
1582
1768
|
"controls-position": "right"
|
|
1583
1769
|
}, null, 8, ["modelValue"]),
|
|
1584
|
-
n[11] || (n[11] =
|
|
1770
|
+
n[11] || (n[11] = B("p", { class: "sub-title" }, "横向", -1))
|
|
1585
1771
|
]),
|
|
1586
1772
|
_: 1
|
|
1587
1773
|
}),
|
|
1588
|
-
l(
|
|
1589
|
-
default:
|
|
1774
|
+
l(m, { span: 12 }, {
|
|
1775
|
+
default: d(() => [
|
|
1590
1776
|
l(c, {
|
|
1591
1777
|
modelValue: e.value.options.title.y,
|
|
1592
1778
|
"onUpdate:modelValue": n[5] || (n[5] = (w) => e.value.options.title.y = w),
|
|
1593
1779
|
"controls-position": "right"
|
|
1594
1780
|
}, null, 8, ["modelValue"]),
|
|
1595
|
-
n[12] || (n[12] =
|
|
1781
|
+
n[12] || (n[12] = B("p", { class: "sub-title" }, "纵向", -1))
|
|
1596
1782
|
]),
|
|
1597
1783
|
_: 1
|
|
1598
1784
|
})
|
|
@@ -1602,16 +1788,16 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1602
1788
|
]),
|
|
1603
1789
|
_: 1
|
|
1604
1790
|
}),
|
|
1605
|
-
l(
|
|
1791
|
+
l(v, {
|
|
1606
1792
|
title: "图形配置",
|
|
1607
1793
|
name: "2"
|
|
1608
1794
|
}, {
|
|
1609
|
-
default:
|
|
1610
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (
|
|
1611
|
-
default:
|
|
1612
|
-
l(
|
|
1613
|
-
default:
|
|
1614
|
-
n[13] || (n[13] =
|
|
1795
|
+
default: d(() => [
|
|
1796
|
+
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (f(), E(b, { key: 0 }, {
|
|
1797
|
+
default: d(() => [
|
|
1798
|
+
l(m, { span: 24 }, {
|
|
1799
|
+
default: d(() => [
|
|
1800
|
+
n[13] || (n[13] = B("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
1615
1801
|
l(i, {
|
|
1616
1802
|
onChange: a,
|
|
1617
1803
|
modelValue: e.value.options.series[0].roseType,
|
|
@@ -1622,25 +1808,25 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1622
1808
|
})
|
|
1623
1809
|
]),
|
|
1624
1810
|
_: 1
|
|
1625
|
-
})) :
|
|
1811
|
+
})) : P("", !0)
|
|
1626
1812
|
]),
|
|
1627
1813
|
_: 1
|
|
1628
1814
|
}),
|
|
1629
|
-
l(
|
|
1815
|
+
l(v, {
|
|
1630
1816
|
title: "图例配置",
|
|
1631
1817
|
name: "3"
|
|
1632
1818
|
}, {
|
|
1633
|
-
default:
|
|
1634
|
-
l(
|
|
1635
|
-
default:
|
|
1636
|
-
l(
|
|
1637
|
-
default:
|
|
1638
|
-
n[14] || (n[14] =
|
|
1639
|
-
e.value.options.legend ? (
|
|
1819
|
+
default: d(() => [
|
|
1820
|
+
l(b, null, {
|
|
1821
|
+
default: d(() => [
|
|
1822
|
+
l(m, { span: 24 }, {
|
|
1823
|
+
default: d(() => [
|
|
1824
|
+
n[14] || (n[14] = B("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1825
|
+
e.value.options.legend ? (f(), E(i, {
|
|
1640
1826
|
key: 0,
|
|
1641
1827
|
modelValue: e.value.options.legend.show,
|
|
1642
1828
|
"onUpdate:modelValue": n[7] || (n[7] = (w) => e.value.options.legend.show = w)
|
|
1643
|
-
}, null, 8, ["modelValue"])) :
|
|
1829
|
+
}, null, 8, ["modelValue"])) : P("", !0)
|
|
1644
1830
|
]),
|
|
1645
1831
|
_: 1
|
|
1646
1832
|
})
|
|
@@ -1653,19 +1839,19 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1653
1839
|
]),
|
|
1654
1840
|
_: 1
|
|
1655
1841
|
})
|
|
1656
|
-
])) :
|
|
1842
|
+
])) : P("", !0);
|
|
1657
1843
|
};
|
|
1658
1844
|
}
|
|
1659
1845
|
});
|
|
1660
|
-
const
|
|
1846
|
+
const wo = /* @__PURE__ */ Z(_o, [["__scopeId", "data-v-e9859d3b"]]), Ie = /* @__PURE__ */ L({
|
|
1661
1847
|
__name: "SettingDescribe",
|
|
1662
1848
|
setup(o) {
|
|
1663
|
-
const t =
|
|
1849
|
+
const t = z(), e = q(() => t.getActiveComponents);
|
|
1664
1850
|
return (a, r) => {
|
|
1665
|
-
const n =
|
|
1666
|
-
return
|
|
1667
|
-
l(
|
|
1668
|
-
default:
|
|
1851
|
+
const n = A("el-input"), s = A("el-form-item"), u = A("el-switch"), i = A("el-input-number"), m = A("el-radio"), p = A("el-radio-group");
|
|
1852
|
+
return f(), C("div", null, [
|
|
1853
|
+
l(s, { label: "标题" }, {
|
|
1854
|
+
default: d(() => [
|
|
1669
1855
|
l(n, {
|
|
1670
1856
|
modelValue: e.value.options.title,
|
|
1671
1857
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => e.value.options.title = c)
|
|
@@ -1673,17 +1859,17 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1673
1859
|
]),
|
|
1674
1860
|
_: 1
|
|
1675
1861
|
}),
|
|
1676
|
-
l(
|
|
1677
|
-
default:
|
|
1678
|
-
l(
|
|
1862
|
+
l(s, { label: "边框" }, {
|
|
1863
|
+
default: d(() => [
|
|
1864
|
+
l(u, {
|
|
1679
1865
|
modelValue: e.value.options.border,
|
|
1680
1866
|
"onUpdate:modelValue": r[1] || (r[1] = (c) => e.value.options.border = c)
|
|
1681
1867
|
}, null, 8, ["modelValue"])
|
|
1682
1868
|
]),
|
|
1683
1869
|
_: 1
|
|
1684
1870
|
}),
|
|
1685
|
-
l(
|
|
1686
|
-
default:
|
|
1871
|
+
l(s, { label: "每行展示数量" }, {
|
|
1872
|
+
default: d(() => [
|
|
1687
1873
|
l(i, {
|
|
1688
1874
|
modelValue: e.value.options.column,
|
|
1689
1875
|
"onUpdate:modelValue": r[2] || (r[2] = (c) => e.value.options.column = c),
|
|
@@ -1694,22 +1880,22 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1694
1880
|
]),
|
|
1695
1881
|
_: 1
|
|
1696
1882
|
}),
|
|
1697
|
-
l(
|
|
1698
|
-
default:
|
|
1883
|
+
l(s, { label: "排列方向" }, {
|
|
1884
|
+
default: d(() => [
|
|
1699
1885
|
l(p, {
|
|
1700
1886
|
modelValue: e.value.options.direction,
|
|
1701
1887
|
"onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
|
|
1702
1888
|
}, {
|
|
1703
|
-
default:
|
|
1704
|
-
l(
|
|
1705
|
-
default:
|
|
1706
|
-
|
|
1889
|
+
default: d(() => [
|
|
1890
|
+
l(m, { value: "horizontal" }, {
|
|
1891
|
+
default: d(() => r[4] || (r[4] = [
|
|
1892
|
+
S("横向")
|
|
1707
1893
|
])),
|
|
1708
1894
|
_: 1
|
|
1709
1895
|
}),
|
|
1710
|
-
l(
|
|
1711
|
-
default:
|
|
1712
|
-
|
|
1896
|
+
l(m, { value: "vertical" }, {
|
|
1897
|
+
default: d(() => r[5] || (r[5] = [
|
|
1898
|
+
S("纵向")
|
|
1713
1899
|
])),
|
|
1714
1900
|
_: 1
|
|
1715
1901
|
})
|
|
@@ -1722,82 +1908,85 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1722
1908
|
]);
|
|
1723
1909
|
};
|
|
1724
1910
|
}
|
|
1725
|
-
}),
|
|
1911
|
+
}), bo = /* @__PURE__ */ L({
|
|
1726
1912
|
__name: "SettingCharts",
|
|
1727
1913
|
setup(o) {
|
|
1728
|
-
const t =
|
|
1914
|
+
const t = z(), e = k(!1), a = q(() => t.getActiveComponents), r = [
|
|
1729
1915
|
{ value: "report-describe", name: "描述列表" },
|
|
1730
1916
|
{ value: "report-table", name: "表格" },
|
|
1731
1917
|
{ value: "line", name: "趋势图" },
|
|
1732
1918
|
{ value: "pie", name: "扇形图" },
|
|
1733
|
-
{ value: "bar", name: "柱状图" }
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1919
|
+
{ value: "bar", name: "柱状图" },
|
|
1920
|
+
{ value: "wordcloud", name: "词云图" }
|
|
1921
|
+
], n = k(""), s = k();
|
|
1922
|
+
async function u(p) {
|
|
1923
|
+
const c = window.windowGlobalVar.SYSTEM_NORMAL, b = await Te({
|
|
1737
1924
|
prod_type: window.$prodType,
|
|
1738
1925
|
chart_type: p,
|
|
1739
1926
|
filter_uuid: t.filterForm.filter_uuid,
|
|
1740
1927
|
cg_linkage: c ? 1 : c ? void 0 : 0
|
|
1741
1928
|
});
|
|
1742
|
-
|
|
1929
|
+
s.value = b.data;
|
|
1743
1930
|
}
|
|
1744
1931
|
function i(p) {
|
|
1745
|
-
let c =
|
|
1746
|
-
const
|
|
1747
|
-
if (c.rp_item_content.type === "bar" && (
|
|
1748
|
-
let
|
|
1749
|
-
|
|
1750
|
-
|
|
1932
|
+
let c = s.value.find((v) => v.rp_item_uuid === p);
|
|
1933
|
+
const b = c.rp_item_content;
|
|
1934
|
+
if (c.rp_item_content.type === "bar" && (b.options = ne()), b.type === "pie" && (b.options = pe({ isLegend: !0 })), b.type === "line") {
|
|
1935
|
+
let v = [];
|
|
1936
|
+
b.data.forEach((w) => {
|
|
1937
|
+
v = w.data.map((g, x) => ({ name: g.name, value: "value" + x }));
|
|
1751
1938
|
});
|
|
1752
|
-
const
|
|
1939
|
+
const V = {
|
|
1753
1940
|
name: "name",
|
|
1754
|
-
value:
|
|
1941
|
+
value: v
|
|
1755
1942
|
};
|
|
1756
|
-
|
|
1943
|
+
b.options = oe([], V);
|
|
1757
1944
|
}
|
|
1758
|
-
if (
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}),
|
|
1945
|
+
if (b.type === "report-table") {
|
|
1946
|
+
const v = {};
|
|
1947
|
+
b.showColumn.forEach((V) => {
|
|
1948
|
+
v[V.key] = !0;
|
|
1949
|
+
}), b.options = { ...b.options, showColumn: v, border: !0, showHeader: !0, stripe: !1 };
|
|
1763
1950
|
}
|
|
1764
|
-
|
|
1951
|
+
b.type === "report-describe" && (b.options = { ...b.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), b.type === "wordcloud" && (b.options = { ...b.options, title: "", ...a.value.options }, b.data.forEach((v) => {
|
|
1952
|
+
v.textStyle = { color: G() };
|
|
1953
|
+
})), Object.assign(t.activeComponents, b), t.activeComponents.rp_item_uuid = c.rp_item_uuid;
|
|
1765
1954
|
}
|
|
1766
|
-
|
|
1767
|
-
n.value = a.value.type, await
|
|
1955
|
+
le(async () => {
|
|
1956
|
+
n.value = a.value.type, await u(n.value);
|
|
1768
1957
|
});
|
|
1769
|
-
async function
|
|
1958
|
+
async function m(p) {
|
|
1770
1959
|
try {
|
|
1771
|
-
e.value = !0, await
|
|
1960
|
+
e.value = !0, await u(p);
|
|
1772
1961
|
} catch (c) {
|
|
1773
1962
|
console.error("加载报告项失败:", c);
|
|
1774
1963
|
} finally {
|
|
1775
|
-
Object.assign(t.activeComponents,
|
|
1964
|
+
Object.assign(t.activeComponents, Mt(p)), e.value = !1;
|
|
1776
1965
|
}
|
|
1777
1966
|
}
|
|
1778
|
-
return
|
|
1967
|
+
return de(
|
|
1779
1968
|
() => a.value,
|
|
1780
1969
|
(p) => {
|
|
1781
|
-
console.log(p, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(p.type) && (n.value = a.value.type,
|
|
1970
|
+
console.log(p, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe", "wordcloud"].indexOf(p.type) && (n.value = a.value.type, u(n.value));
|
|
1782
1971
|
}
|
|
1783
1972
|
), (p, c) => {
|
|
1784
|
-
const
|
|
1785
|
-
return Ae((
|
|
1973
|
+
const b = A("el-option"), v = A("el-select"), V = A("el-form-item"), w = A("el-form"), g = he("loading");
|
|
1974
|
+
return Ae((f(), C("div", null, [
|
|
1786
1975
|
l(w, { "label-position": "top" }, {
|
|
1787
|
-
default:
|
|
1788
|
-
l(
|
|
1789
|
-
default:
|
|
1790
|
-
l(
|
|
1976
|
+
default: d(() => [
|
|
1977
|
+
l(V, { label: "图表类型" }, {
|
|
1978
|
+
default: d(() => [
|
|
1979
|
+
l(v, {
|
|
1791
1980
|
style: { width: "100%" },
|
|
1792
1981
|
modelValue: n.value,
|
|
1793
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1794
|
-
onChange:
|
|
1982
|
+
"onUpdate:modelValue": c[0] || (c[0] = (x) => n.value = x),
|
|
1983
|
+
onChange: m
|
|
1795
1984
|
}, {
|
|
1796
|
-
default:
|
|
1797
|
-
(
|
|
1798
|
-
key:
|
|
1799
|
-
label:
|
|
1800
|
-
value:
|
|
1985
|
+
default: d(() => [
|
|
1986
|
+
(f(), C(Q, null, I(r, (x, _) => l(b, {
|
|
1987
|
+
key: _,
|
|
1988
|
+
label: x.name,
|
|
1989
|
+
value: x.value
|
|
1801
1990
|
}, null, 8, ["label", "value"])), 64))
|
|
1802
1991
|
]),
|
|
1803
1992
|
_: 1
|
|
@@ -1805,19 +1994,19 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1805
1994
|
]),
|
|
1806
1995
|
_: 1
|
|
1807
1996
|
}),
|
|
1808
|
-
l(
|
|
1809
|
-
default:
|
|
1810
|
-
l(
|
|
1997
|
+
l(V, { label: "组件库" }, {
|
|
1998
|
+
default: d(() => [
|
|
1999
|
+
l(v, {
|
|
1811
2000
|
style: { width: "100%" },
|
|
1812
|
-
modelValue:
|
|
1813
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
2001
|
+
modelValue: y(t).activeComponents.rp_item_uuid,
|
|
2002
|
+
"onUpdate:modelValue": c[1] || (c[1] = (x) => y(t).activeComponents.rp_item_uuid = x),
|
|
1814
2003
|
onChange: i
|
|
1815
2004
|
}, {
|
|
1816
|
-
default:
|
|
1817
|
-
(
|
|
1818
|
-
key:
|
|
1819
|
-
label:
|
|
1820
|
-
value:
|
|
2005
|
+
default: d(() => [
|
|
2006
|
+
(f(!0), C(Q, null, I(s.value, (x, _) => (f(), E(b, {
|
|
2007
|
+
key: _,
|
|
2008
|
+
label: x.rp_item_name,
|
|
2009
|
+
value: x.rp_item_uuid
|
|
1821
2010
|
}, null, 8, ["label", "value"]))), 128))
|
|
1822
2011
|
]),
|
|
1823
2012
|
_: 1
|
|
@@ -1825,27 +2014,27 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1825
2014
|
]),
|
|
1826
2015
|
_: 1
|
|
1827
2016
|
}),
|
|
1828
|
-
n.value === "report-table" && a.value.options.showColumn ? (
|
|
1829
|
-
n.value === "pie" || n.value === "bar" || n.value === "line" ? (
|
|
1830
|
-
n.value === "report-describe" ? (
|
|
2017
|
+
n.value === "report-table" && a.value.options.showColumn ? (f(), E(Qe, { key: 0 })) : P("", !0),
|
|
2018
|
+
n.value === "pie" || n.value === "bar" || n.value === "line" ? (f(), E(wo, { key: 1 })) : P("", !0),
|
|
2019
|
+
n.value === "report-describe" ? (f(), E(Ie, { key: 2 })) : P("", !0)
|
|
1831
2020
|
]),
|
|
1832
2021
|
_: 1
|
|
1833
2022
|
})
|
|
1834
2023
|
])), [
|
|
1835
|
-
[
|
|
2024
|
+
[g, e.value]
|
|
1836
2025
|
]);
|
|
1837
2026
|
};
|
|
1838
2027
|
}
|
|
1839
|
-
}),
|
|
2028
|
+
}), yo = { key: 0 }, ho = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, fe = "default", Co = /* @__PURE__ */ L({
|
|
1840
2029
|
__name: "SettingText",
|
|
1841
2030
|
setup(o) {
|
|
1842
|
-
const t =
|
|
2031
|
+
const t = z(), e = He(), a = k();
|
|
1843
2032
|
function r(p) {
|
|
1844
|
-
const c = a.value.find((
|
|
2033
|
+
const c = a.value.find((b) => b.rp_item_uuid === p);
|
|
1845
2034
|
t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
|
|
1846
2035
|
}
|
|
1847
2036
|
async function n() {
|
|
1848
|
-
const p = window.windowGlobalVar.SYSTEM_NORMAL, c = await
|
|
2037
|
+
const p = window.windowGlobalVar.SYSTEM_NORMAL, c = await Te({
|
|
1849
2038
|
prod_type: window.$prodType,
|
|
1850
2039
|
chart_type: "p",
|
|
1851
2040
|
filter_uuid: t.filterForm.filter_uuid,
|
|
@@ -1854,7 +2043,7 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1854
2043
|
a.value = c.data;
|
|
1855
2044
|
}
|
|
1856
2045
|
n();
|
|
1857
|
-
const
|
|
2046
|
+
const s = {
|
|
1858
2047
|
toolbarKeys: [
|
|
1859
2048
|
"bold",
|
|
1860
2049
|
"underline",
|
|
@@ -1876,31 +2065,31 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1876
2065
|
"justifyJustify",
|
|
1877
2066
|
"lineHeight"
|
|
1878
2067
|
]
|
|
1879
|
-
},
|
|
2068
|
+
}, u = { placeholder: "请输入内容..." }, i = (p) => {
|
|
1880
2069
|
e.value = p;
|
|
1881
|
-
},
|
|
2070
|
+
}, m = (p) => {
|
|
1882
2071
|
};
|
|
1883
|
-
return
|
|
2072
|
+
return we(() => {
|
|
1884
2073
|
const p = e.value;
|
|
1885
2074
|
p != null && p.destroy();
|
|
1886
2075
|
}), (p, c) => {
|
|
1887
|
-
const
|
|
1888
|
-
return
|
|
2076
|
+
const b = A("el-option"), v = A("el-select"), V = A("el-form-item"), w = A("el-form");
|
|
2077
|
+
return y(t).activeComponents.id ? (f(), C("div", yo, [
|
|
1889
2078
|
l(w, { "label-position": "top" }, {
|
|
1890
|
-
default:
|
|
1891
|
-
l(
|
|
1892
|
-
default:
|
|
1893
|
-
l(
|
|
2079
|
+
default: d(() => [
|
|
2080
|
+
l(V, { label: "组件库" }, {
|
|
2081
|
+
default: d(() => [
|
|
2082
|
+
l(v, {
|
|
1894
2083
|
style: { width: "100%" },
|
|
1895
|
-
modelValue:
|
|
1896
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2084
|
+
modelValue: y(t).activeComponents.rp_item_uuid,
|
|
2085
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => y(t).activeComponents.rp_item_uuid = g),
|
|
1897
2086
|
onChange: r
|
|
1898
2087
|
}, {
|
|
1899
|
-
default:
|
|
1900
|
-
(
|
|
1901
|
-
key:
|
|
1902
|
-
label:
|
|
1903
|
-
value:
|
|
2088
|
+
default: d(() => [
|
|
2089
|
+
(f(!0), C(Q, null, I(a.value, (g, x) => (f(), E(b, {
|
|
2090
|
+
key: x,
|
|
2091
|
+
label: g.rp_item_name,
|
|
2092
|
+
value: g.rp_item_uuid
|
|
1904
2093
|
}, null, 8, ["label", "value"]))), 128))
|
|
1905
2094
|
]),
|
|
1906
2095
|
_: 1
|
|
@@ -1908,22 +2097,22 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1908
2097
|
]),
|
|
1909
2098
|
_: 1
|
|
1910
2099
|
}),
|
|
1911
|
-
l(
|
|
1912
|
-
default:
|
|
1913
|
-
|
|
1914
|
-
l(
|
|
2100
|
+
l(V, { label: "文本内容" }, {
|
|
2101
|
+
default: d(() => [
|
|
2102
|
+
B("div", ho, [
|
|
2103
|
+
l(y(tt), {
|
|
1915
2104
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1916
2105
|
editor: e.value,
|
|
1917
|
-
"default-config":
|
|
1918
|
-
mode:
|
|
2106
|
+
"default-config": s,
|
|
2107
|
+
mode: fe
|
|
1919
2108
|
}, null, 8, ["editor"]),
|
|
1920
|
-
l(
|
|
2109
|
+
l(y(ot), {
|
|
1921
2110
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1922
|
-
onOnChange:
|
|
1923
|
-
modelValue:
|
|
1924
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
1925
|
-
"default-config":
|
|
1926
|
-
mode:
|
|
2111
|
+
onOnChange: m,
|
|
2112
|
+
modelValue: y(t).activeComponents.data,
|
|
2113
|
+
"onUpdate:modelValue": c[1] || (c[1] = (g) => y(t).activeComponents.data = g),
|
|
2114
|
+
"default-config": u,
|
|
2115
|
+
mode: fe,
|
|
1927
2116
|
onOnCreated: i
|
|
1928
2117
|
}, null, 8, ["modelValue"])
|
|
1929
2118
|
])
|
|
@@ -1933,33 +2122,33 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1933
2122
|
]),
|
|
1934
2123
|
_: 1
|
|
1935
2124
|
})
|
|
1936
|
-
])) :
|
|
2125
|
+
])) : P("", !0);
|
|
1937
2126
|
};
|
|
1938
2127
|
}
|
|
1939
|
-
}),
|
|
2128
|
+
}), xo = /* @__PURE__ */ L({
|
|
1940
2129
|
__name: "SettingFilter",
|
|
1941
2130
|
setup(o) {
|
|
1942
|
-
const t =
|
|
2131
|
+
const t = k([]), e = z();
|
|
1943
2132
|
async function a() {
|
|
1944
|
-
const r = await
|
|
2133
|
+
const r = await Be({ prod_type: window.$prodType });
|
|
1945
2134
|
t.value = r.data;
|
|
1946
2135
|
}
|
|
1947
2136
|
return a(), (r, n) => {
|
|
1948
|
-
const
|
|
1949
|
-
return
|
|
2137
|
+
const s = A("el-option"), u = A("el-select"), i = A("el-form-item"), m = A("el-checkbox"), p = A("el-form");
|
|
2138
|
+
return f(), E(p, {
|
|
1950
2139
|
"label-width": "80px",
|
|
1951
2140
|
"label-position": "top"
|
|
1952
2141
|
}, {
|
|
1953
|
-
default:
|
|
2142
|
+
default: d(() => [
|
|
1954
2143
|
l(i, { label: "筛选条件" }, {
|
|
1955
|
-
default:
|
|
1956
|
-
l(
|
|
1957
|
-
modelValue:
|
|
1958
|
-
"onUpdate:modelValue": n[0] || (n[0] = (c) =>
|
|
1959
|
-
disabled: !!
|
|
2144
|
+
default: d(() => [
|
|
2145
|
+
l(u, {
|
|
2146
|
+
modelValue: y(e).filterForm.filter_uuid,
|
|
2147
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => y(e).filterForm.filter_uuid = c),
|
|
2148
|
+
disabled: !!y(e).filterForm.filter_uuid
|
|
1960
2149
|
}, {
|
|
1961
|
-
default:
|
|
1962
|
-
(
|
|
2150
|
+
default: d(() => [
|
|
2151
|
+
(f(!0), C(Q, null, I(t.value, (c) => (f(), E(s, {
|
|
1963
2152
|
key: c.filter_uuid,
|
|
1964
2153
|
label: c.filter_name,
|
|
1965
2154
|
value: c.filter_uuid
|
|
@@ -1971,10 +2160,10 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1971
2160
|
_: 1
|
|
1972
2161
|
}),
|
|
1973
2162
|
l(i, null, {
|
|
1974
|
-
default:
|
|
1975
|
-
l(
|
|
1976
|
-
modelValue:
|
|
1977
|
-
"onUpdate:modelValue": n[1] || (n[1] = (c) =>
|
|
2163
|
+
default: d(() => [
|
|
2164
|
+
l(m, {
|
|
2165
|
+
modelValue: y(e).filterForm.range_time,
|
|
2166
|
+
"onUpdate:modelValue": n[1] || (n[1] = (c) => y(e).filterForm.range_time = c),
|
|
1978
2167
|
"true-value": 1,
|
|
1979
2168
|
"false-value": 0,
|
|
1980
2169
|
label: "时间范围"
|
|
@@ -1987,22 +2176,22 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1987
2176
|
});
|
|
1988
2177
|
};
|
|
1989
2178
|
}
|
|
1990
|
-
}),
|
|
2179
|
+
}), To = /* @__PURE__ */ L({
|
|
1991
2180
|
__name: "SettingTitle",
|
|
1992
2181
|
setup(o) {
|
|
1993
|
-
const t =
|
|
2182
|
+
const t = z();
|
|
1994
2183
|
return (e, a) => {
|
|
1995
|
-
const r =
|
|
1996
|
-
return
|
|
2184
|
+
const r = A("el-input"), n = A("el-form-item"), s = A("el-color-picker"), u = A("el-col"), i = A("el-input-number"), m = A("el-option"), p = A("el-select"), c = A("el-row"), b = A("el-form");
|
|
2185
|
+
return f(), E(b, {
|
|
1997
2186
|
"label-width": "auto",
|
|
1998
2187
|
"label-position": "top"
|
|
1999
2188
|
}, {
|
|
2000
|
-
default:
|
|
2189
|
+
default: d(() => [
|
|
2001
2190
|
l(n, { label: "名称" }, {
|
|
2002
|
-
default:
|
|
2191
|
+
default: d(() => [
|
|
2003
2192
|
l(r, {
|
|
2004
|
-
modelValue:
|
|
2005
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2193
|
+
modelValue: y(t).activeComponents.data,
|
|
2194
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => y(t).activeComponents.data = v),
|
|
2006
2195
|
placeholder: "Please input",
|
|
2007
2196
|
maxlength: "24",
|
|
2008
2197
|
"show-word-limit": ""
|
|
@@ -2011,98 +2200,98 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
2011
2200
|
_: 1
|
|
2012
2201
|
}),
|
|
2013
2202
|
l(n, { label: "样式" }, {
|
|
2014
|
-
default:
|
|
2203
|
+
default: d(() => [
|
|
2015
2204
|
l(c, { gutter: 20 }, {
|
|
2016
|
-
default:
|
|
2017
|
-
l(
|
|
2018
|
-
default:
|
|
2019
|
-
l(
|
|
2020
|
-
modelValue:
|
|
2021
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2205
|
+
default: d(() => [
|
|
2206
|
+
l(u, { span: 12 }, {
|
|
2207
|
+
default: d(() => [
|
|
2208
|
+
l(s, {
|
|
2209
|
+
modelValue: y(t).activeComponents.options.color,
|
|
2210
|
+
"onUpdate:modelValue": a[1] || (a[1] = (v) => y(t).activeComponents.options.color = v),
|
|
2022
2211
|
"show-alpha": ""
|
|
2023
2212
|
}, null, 8, ["modelValue"]),
|
|
2024
|
-
a[7] || (a[7] =
|
|
2213
|
+
a[7] || (a[7] = B("p", { class: "sub-title" }, "颜色", -1))
|
|
2025
2214
|
]),
|
|
2026
2215
|
_: 1
|
|
2027
2216
|
}),
|
|
2028
|
-
l(
|
|
2029
|
-
default:
|
|
2217
|
+
l(u, { span: 12 }, {
|
|
2218
|
+
default: d(() => [
|
|
2030
2219
|
l(i, {
|
|
2031
|
-
modelValue:
|
|
2032
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
2220
|
+
modelValue: y(t).activeComponents.options.size,
|
|
2221
|
+
"onUpdate:modelValue": a[2] || (a[2] = (v) => y(t).activeComponents.options.size = v),
|
|
2033
2222
|
"controls-position": "right"
|
|
2034
2223
|
}, null, 8, ["modelValue"]),
|
|
2035
|
-
a[8] || (a[8] =
|
|
2224
|
+
a[8] || (a[8] = B("p", { class: "sub-title" }, "字体大小", -1))
|
|
2036
2225
|
]),
|
|
2037
2226
|
_: 1
|
|
2038
2227
|
}),
|
|
2039
|
-
l(
|
|
2040
|
-
default:
|
|
2228
|
+
l(u, { span: 12 }, {
|
|
2229
|
+
default: d(() => [
|
|
2041
2230
|
l(p, {
|
|
2042
|
-
modelValue:
|
|
2043
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
2231
|
+
modelValue: y(t).activeComponents.options.fontWeight,
|
|
2232
|
+
"onUpdate:modelValue": a[3] || (a[3] = (v) => y(t).activeComponents.options.fontWeight = v)
|
|
2044
2233
|
}, {
|
|
2045
|
-
default:
|
|
2046
|
-
l(
|
|
2234
|
+
default: d(() => [
|
|
2235
|
+
l(m, {
|
|
2047
2236
|
label: "常规",
|
|
2048
2237
|
value: 500
|
|
2049
2238
|
}),
|
|
2050
|
-
l(
|
|
2239
|
+
l(m, {
|
|
2051
2240
|
label: "加粗",
|
|
2052
2241
|
value: 600
|
|
2053
2242
|
})
|
|
2054
2243
|
]),
|
|
2055
2244
|
_: 1
|
|
2056
2245
|
}, 8, ["modelValue"]),
|
|
2057
|
-
a[9] || (a[9] =
|
|
2246
|
+
a[9] || (a[9] = B("p", { class: "sub-title" }, "字体粗细", -1))
|
|
2058
2247
|
]),
|
|
2059
2248
|
_: 1
|
|
2060
2249
|
}),
|
|
2061
|
-
l(
|
|
2062
|
-
default:
|
|
2250
|
+
l(u, { span: 12 }, {
|
|
2251
|
+
default: d(() => [
|
|
2063
2252
|
l(i, {
|
|
2064
|
-
modelValue:
|
|
2065
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
2253
|
+
modelValue: y(t).activeComponents.options.letterSpacing,
|
|
2254
|
+
"onUpdate:modelValue": a[4] || (a[4] = (v) => y(t).activeComponents.options.letterSpacing = v),
|
|
2066
2255
|
"controls-position": "right"
|
|
2067
2256
|
}, null, 8, ["modelValue"]),
|
|
2068
|
-
a[10] || (a[10] =
|
|
2257
|
+
a[10] || (a[10] = B("p", { class: "sub-title" }, "字间距", -1))
|
|
2069
2258
|
]),
|
|
2070
2259
|
_: 1
|
|
2071
2260
|
}),
|
|
2072
|
-
l(
|
|
2073
|
-
default:
|
|
2261
|
+
l(u, { span: 12 }, {
|
|
2262
|
+
default: d(() => [
|
|
2074
2263
|
l(i, {
|
|
2075
|
-
modelValue:
|
|
2076
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
2264
|
+
modelValue: y(t).activeComponents.options.textIndent,
|
|
2265
|
+
"onUpdate:modelValue": a[5] || (a[5] = (v) => y(t).activeComponents.options.textIndent = v),
|
|
2077
2266
|
"controls-position": "right"
|
|
2078
2267
|
}, null, 8, ["modelValue"]),
|
|
2079
|
-
a[11] || (a[11] =
|
|
2268
|
+
a[11] || (a[11] = B("p", { class: "sub-title" }, "首行缩进", -1))
|
|
2080
2269
|
]),
|
|
2081
2270
|
_: 1
|
|
2082
2271
|
}),
|
|
2083
|
-
l(
|
|
2084
|
-
default:
|
|
2272
|
+
l(u, { span: 12 }, {
|
|
2273
|
+
default: d(() => [
|
|
2085
2274
|
l(p, {
|
|
2086
|
-
modelValue:
|
|
2087
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
2275
|
+
modelValue: y(t).activeComponents.options.textAlign,
|
|
2276
|
+
"onUpdate:modelValue": a[6] || (a[6] = (v) => y(t).activeComponents.options.textAlign = v)
|
|
2088
2277
|
}, {
|
|
2089
|
-
default:
|
|
2090
|
-
l(
|
|
2278
|
+
default: d(() => [
|
|
2279
|
+
l(m, {
|
|
2091
2280
|
label: "左对齐",
|
|
2092
2281
|
value: "left"
|
|
2093
2282
|
}),
|
|
2094
|
-
l(
|
|
2283
|
+
l(m, {
|
|
2095
2284
|
label: "居中对齐",
|
|
2096
2285
|
value: "center"
|
|
2097
2286
|
}),
|
|
2098
|
-
l(
|
|
2287
|
+
l(m, {
|
|
2099
2288
|
label: "右对齐",
|
|
2100
2289
|
value: "right"
|
|
2101
2290
|
})
|
|
2102
2291
|
]),
|
|
2103
2292
|
_: 1
|
|
2104
2293
|
}, 8, ["modelValue"]),
|
|
2105
|
-
a[12] || (a[12] =
|
|
2294
|
+
a[12] || (a[12] = B("p", { class: "sub-title" }, "位置", -1))
|
|
2106
2295
|
]),
|
|
2107
2296
|
_: 1
|
|
2108
2297
|
})
|
|
@@ -2118,30 +2307,30 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
2118
2307
|
};
|
|
2119
2308
|
}
|
|
2120
2309
|
});
|
|
2121
|
-
const
|
|
2310
|
+
const Bo = /* @__PURE__ */ Z(To, [["__scopeId", "data-v-56fef84c"]]), ko = /* @__PURE__ */ L({
|
|
2122
2311
|
__name: "Setting",
|
|
2123
2312
|
setup(o) {
|
|
2124
2313
|
const t = {
|
|
2125
|
-
SettingTable:
|
|
2126
|
-
SettingCharts:
|
|
2127
|
-
SettingDescribe:
|
|
2128
|
-
SettingText:
|
|
2129
|
-
SettingFilter:
|
|
2130
|
-
SettingTitle:
|
|
2131
|
-
}, e =
|
|
2132
|
-
return (i,
|
|
2133
|
-
const p =
|
|
2134
|
-
return
|
|
2135
|
-
default:
|
|
2136
|
-
(
|
|
2314
|
+
SettingTable: Qe,
|
|
2315
|
+
SettingCharts: bo,
|
|
2316
|
+
SettingDescribe: Ie,
|
|
2317
|
+
SettingText: Co,
|
|
2318
|
+
SettingFilter: xo,
|
|
2319
|
+
SettingTitle: Bo
|
|
2320
|
+
}, e = z(), a = q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], s = ["report-table", "bar", "line", "pie", "report-describe", "wordcloud"], u = (i) => r.includes(i) ? F(t, "SettingTitle") : n.includes(i) ? F(t, "SettingText") : s.includes(i) ? F(t, "SettingCharts") : i === "filter" ? F(t, "SettingFilter") : "DefaultEditor";
|
|
2321
|
+
return (i, m) => {
|
|
2322
|
+
const p = A("el-card");
|
|
2323
|
+
return f(), E(p, { class: "config-wrapper" }, {
|
|
2324
|
+
default: d(() => [
|
|
2325
|
+
(f(), E(ee(u(a.value.type))))
|
|
2137
2326
|
]),
|
|
2138
2327
|
_: 1
|
|
2139
2328
|
});
|
|
2140
2329
|
};
|
|
2141
2330
|
}
|
|
2142
|
-
}),
|
|
2331
|
+
}), Do = { class: "editor-wrapper flex items-center space-between start" }, Vo = { class: "flex items-center space-between" }, Lo = { class: "btn-group" }, Eo = /* @__PURE__ */ L({
|
|
2143
2332
|
__name: "index",
|
|
2144
|
-
props: /* @__PURE__ */
|
|
2333
|
+
props: /* @__PURE__ */ be({
|
|
2145
2334
|
reportId: {
|
|
2146
2335
|
type: String,
|
|
2147
2336
|
default: ""
|
|
@@ -2152,26 +2341,26 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2152
2341
|
}),
|
|
2153
2342
|
emits: ["update:modelValue"],
|
|
2154
2343
|
setup(o) {
|
|
2155
|
-
const t =
|
|
2156
|
-
const
|
|
2157
|
-
|
|
2344
|
+
const t = z(), e = o, a = ye(o, "modelValue"), r = (i) => {
|
|
2345
|
+
const m = te(i);
|
|
2346
|
+
m.id = M(), t.componentList.push(m);
|
|
2158
2347
|
};
|
|
2159
2348
|
function n() {
|
|
2160
2349
|
a.value = "table";
|
|
2161
2350
|
}
|
|
2162
|
-
function
|
|
2351
|
+
function s() {
|
|
2163
2352
|
t.getReportDemo(e.reportId);
|
|
2164
2353
|
}
|
|
2165
|
-
|
|
2166
|
-
|
|
2354
|
+
le(() => {
|
|
2355
|
+
s();
|
|
2167
2356
|
});
|
|
2168
|
-
async function
|
|
2357
|
+
async function u() {
|
|
2169
2358
|
if (!t.filterForm.filter_uuid) {
|
|
2170
|
-
|
|
2359
|
+
$e.error("请选择筛选条件");
|
|
2171
2360
|
return;
|
|
2172
2361
|
}
|
|
2173
2362
|
try {
|
|
2174
|
-
e.reportId ? await
|
|
2363
|
+
e.reportId ? await At({
|
|
2175
2364
|
report_uuid: e.reportId,
|
|
2176
2365
|
data: {
|
|
2177
2366
|
report_name: t.titleComponent.data,
|
|
@@ -2179,7 +2368,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2179
2368
|
content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
|
|
2180
2369
|
...t.filterForm
|
|
2181
2370
|
}
|
|
2182
|
-
}) : await
|
|
2371
|
+
}) : await it({
|
|
2183
2372
|
data: {
|
|
2184
2373
|
report_name: t.titleComponent.data,
|
|
2185
2374
|
prod_type: window.$prodType,
|
|
@@ -2191,26 +2380,26 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2191
2380
|
console.log(i, "error");
|
|
2192
2381
|
}
|
|
2193
2382
|
}
|
|
2194
|
-
return
|
|
2383
|
+
return Ye(() => {
|
|
2195
2384
|
t.clearComponents();
|
|
2196
|
-
}), (i,
|
|
2197
|
-
const p =
|
|
2198
|
-
return
|
|
2199
|
-
l(
|
|
2200
|
-
default:
|
|
2201
|
-
|
|
2202
|
-
|
|
2385
|
+
}), (i, m) => {
|
|
2386
|
+
const p = A("el-button"), c = A("el-button-group"), b = A("el-card");
|
|
2387
|
+
return f(), C("div", Do, [
|
|
2388
|
+
l(b, { class: "view-wrapper" }, {
|
|
2389
|
+
default: d(() => [
|
|
2390
|
+
B("div", Vo, [
|
|
2391
|
+
B("div", Lo, [
|
|
2203
2392
|
l(c, null, {
|
|
2204
|
-
default:
|
|
2205
|
-
(
|
|
2206
|
-
key:
|
|
2393
|
+
default: d(() => [
|
|
2394
|
+
(f(!0), C(Q, null, I(y(It), (v) => (f(), C(Q, {
|
|
2395
|
+
key: v.type
|
|
2207
2396
|
}, [
|
|
2208
|
-
|
|
2397
|
+
v != null && v.hide ? P("", !0) : (f(), E(p, {
|
|
2209
2398
|
key: 0,
|
|
2210
|
-
onClick: (
|
|
2399
|
+
onClick: (V) => r(v)
|
|
2211
2400
|
}, {
|
|
2212
|
-
default:
|
|
2213
|
-
|
|
2401
|
+
default: d(() => [
|
|
2402
|
+
S(K(v.name), 1)
|
|
2214
2403
|
]),
|
|
2215
2404
|
_: 2
|
|
2216
2405
|
}, 1032, ["onClick"]))
|
|
@@ -2220,19 +2409,19 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2220
2409
|
})
|
|
2221
2410
|
]),
|
|
2222
2411
|
l(c, null, {
|
|
2223
|
-
default:
|
|
2412
|
+
default: d(() => [
|
|
2224
2413
|
l(p, {
|
|
2225
2414
|
type: "primary",
|
|
2226
|
-
onClick:
|
|
2415
|
+
onClick: u
|
|
2227
2416
|
}, {
|
|
2228
|
-
default:
|
|
2229
|
-
|
|
2417
|
+
default: d(() => m[0] || (m[0] = [
|
|
2418
|
+
S("保存")
|
|
2230
2419
|
])),
|
|
2231
2420
|
_: 1
|
|
2232
2421
|
}),
|
|
2233
2422
|
l(p, { onClick: n }, {
|
|
2234
|
-
default:
|
|
2235
|
-
|
|
2423
|
+
default: d(() => m[1] || (m[1] = [
|
|
2424
|
+
S("退出")
|
|
2236
2425
|
])),
|
|
2237
2426
|
_: 1
|
|
2238
2427
|
})
|
|
@@ -2240,40 +2429,40 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2240
2429
|
_: 1
|
|
2241
2430
|
})
|
|
2242
2431
|
]),
|
|
2243
|
-
l(
|
|
2432
|
+
l(po)
|
|
2244
2433
|
]),
|
|
2245
2434
|
_: 1
|
|
2246
2435
|
}),
|
|
2247
|
-
l(
|
|
2436
|
+
l(ko)
|
|
2248
2437
|
]);
|
|
2249
2438
|
};
|
|
2250
2439
|
}
|
|
2251
|
-
}),
|
|
2440
|
+
}), So = {
|
|
2252
2441
|
class: "table-box"
|
|
2253
|
-
},
|
|
2442
|
+
}, Uo = /* @__PURE__ */ L({
|
|
2254
2443
|
__name: "Report",
|
|
2255
2444
|
emits: ["click"],
|
|
2256
2445
|
setup(o, {
|
|
2257
2446
|
emit: t
|
|
2258
2447
|
}) {
|
|
2259
|
-
const e = window.windowGlobalVar.SYSTEM_NORMAL, a =
|
|
2448
|
+
const e = window.windowGlobalVar.SYSTEM_NORMAL, a = q(() => ({
|
|
2260
2449
|
prod_type: window.$prodType,
|
|
2261
2450
|
cg_linkage: e ? 1 : e ? void 0 : 0
|
|
2262
|
-
})), r =
|
|
2263
|
-
n("click",
|
|
2264
|
-
},
|
|
2265
|
-
n("click",
|
|
2451
|
+
})), r = k(), n = t, s = (v) => {
|
|
2452
|
+
n("click", v.report_uuid, "review");
|
|
2453
|
+
}, u = (v) => {
|
|
2454
|
+
n("click", v.report_uuid, "editor");
|
|
2266
2455
|
}, i = () => {
|
|
2267
2456
|
n("click", "", "editor");
|
|
2268
|
-
},
|
|
2269
|
-
console.log(
|
|
2270
|
-
}, p = (
|
|
2457
|
+
}, m = (v) => {
|
|
2458
|
+
console.log(v);
|
|
2459
|
+
}, p = (v) => {
|
|
2271
2460
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2272
|
-
await
|
|
2273
|
-
report_uuids:
|
|
2461
|
+
await dt({
|
|
2462
|
+
report_uuids: v
|
|
2274
2463
|
}), r.value.getTableList();
|
|
2275
2464
|
});
|
|
2276
|
-
}, c = (
|
|
2465
|
+
}, c = (v) => v.report_type === 1, b = j([
|
|
2277
2466
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2278
2467
|
{
|
|
2279
2468
|
type: "selection",
|
|
@@ -2300,61 +2489,61 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2300
2489
|
name: "操作",
|
|
2301
2490
|
align: "center",
|
|
2302
2491
|
fixed: "right",
|
|
2303
|
-
render: (
|
|
2492
|
+
render: (v) => l("div", null, [l(A("el-button"), {
|
|
2304
2493
|
link: !0,
|
|
2305
2494
|
type: "primary",
|
|
2306
2495
|
class: "custom-btn",
|
|
2307
2496
|
icon: "View",
|
|
2308
2497
|
title: "预览",
|
|
2309
|
-
onClick: () =>
|
|
2310
|
-
}, null), l(
|
|
2498
|
+
onClick: () => s(v.row)
|
|
2499
|
+
}, null), l(A("el-button"), {
|
|
2311
2500
|
link: !0,
|
|
2312
2501
|
type: "primary",
|
|
2313
2502
|
class: "custom-btn",
|
|
2314
2503
|
icon: "Edit",
|
|
2315
2504
|
title: "编辑",
|
|
2316
|
-
disabled:
|
|
2317
|
-
onClick: () =>
|
|
2318
|
-
}, null), l(
|
|
2505
|
+
disabled: v.row.report_type === 0,
|
|
2506
|
+
onClick: () => u(v.row)
|
|
2507
|
+
}, null), l(A("el-button"), {
|
|
2319
2508
|
link: !0,
|
|
2320
2509
|
type: "danger",
|
|
2321
2510
|
icon: "Delete",
|
|
2322
2511
|
title: "删除",
|
|
2323
|
-
disabled:
|
|
2324
|
-
onClick: () => p([
|
|
2512
|
+
disabled: v.row.report_type === 0,
|
|
2513
|
+
onClick: () => p([v.row.report_uuid])
|
|
2325
2514
|
}, null)])
|
|
2326
2515
|
}
|
|
2327
2516
|
]);
|
|
2328
|
-
return (
|
|
2329
|
-
const w =
|
|
2330
|
-
return
|
|
2517
|
+
return (v, V) => {
|
|
2518
|
+
const w = A("el-button"), g = A("TdsTable");
|
|
2519
|
+
return f(), C("div", So, [l(g, {
|
|
2331
2520
|
ref_key: "proTable",
|
|
2332
2521
|
ref: r,
|
|
2333
|
-
columns:
|
|
2334
|
-
"request-api":
|
|
2522
|
+
columns: b,
|
|
2523
|
+
"request-api": y(ut),
|
|
2335
2524
|
"init-param": a.value,
|
|
2336
2525
|
"row-key": "report_uuid",
|
|
2337
|
-
options:
|
|
2526
|
+
options: v.$tableOptions(),
|
|
2338
2527
|
"search-col": 6,
|
|
2339
2528
|
selectable: c,
|
|
2340
|
-
onSelectionChange:
|
|
2529
|
+
onSelectionChange: m
|
|
2341
2530
|
}, {
|
|
2342
|
-
tableHeader:
|
|
2531
|
+
tableHeader: d((x) => [l(w, {
|
|
2343
2532
|
plain: "",
|
|
2344
2533
|
type: "primary",
|
|
2345
2534
|
class: "custom-btn",
|
|
2346
2535
|
icon: "Plus",
|
|
2347
2536
|
onClick: i
|
|
2348
2537
|
}, {
|
|
2349
|
-
default:
|
|
2538
|
+
default: d(() => V[0] || (V[0] = [S("新建")])),
|
|
2350
2539
|
_: 1
|
|
2351
2540
|
}), l(w, {
|
|
2352
2541
|
plain: "",
|
|
2353
2542
|
type: "danger",
|
|
2354
2543
|
icon: "Delete",
|
|
2355
|
-
onClick: (
|
|
2544
|
+
onClick: (_) => p(x.selectedListIds)
|
|
2356
2545
|
}, {
|
|
2357
|
-
default:
|
|
2546
|
+
default: d(() => V[1] || (V[1] = [S("删除")])),
|
|
2358
2547
|
_: 2
|
|
2359
2548
|
}, 1032, ["onClick"])]),
|
|
2360
2549
|
_: 1
|
|
@@ -2362,39 +2551,39 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2362
2551
|
};
|
|
2363
2552
|
}
|
|
2364
2553
|
});
|
|
2365
|
-
const
|
|
2554
|
+
const Ro = { style: { height: "100%" } }, Oo = /* @__PURE__ */ L({
|
|
2366
2555
|
name: "TCReport",
|
|
2367
2556
|
__name: "index",
|
|
2368
2557
|
setup(o) {
|
|
2369
|
-
const t =
|
|
2558
|
+
const t = k(), e = k("table"), a = (r, n) => {
|
|
2370
2559
|
t.value = r, e.value = n;
|
|
2371
2560
|
};
|
|
2372
|
-
return (r, n) => (
|
|
2373
|
-
l(
|
|
2374
|
-
default:
|
|
2375
|
-
e.value === "table" ? (
|
|
2561
|
+
return (r, n) => (f(), C("div", Ro, [
|
|
2562
|
+
l(Ge, { name: "slide-fade" }, {
|
|
2563
|
+
default: d(() => [
|
|
2564
|
+
e.value === "table" ? (f(), E(Uo, {
|
|
2376
2565
|
key: 0,
|
|
2377
2566
|
onClick: a
|
|
2378
|
-
})) :
|
|
2379
|
-
e.value === "review" ? (
|
|
2567
|
+
})) : P("", !0),
|
|
2568
|
+
e.value === "review" ? (f(), E(Pe, {
|
|
2380
2569
|
key: 1,
|
|
2381
2570
|
"report-id": t.value,
|
|
2382
2571
|
modelValue: e.value,
|
|
2383
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2384
|
-
}, null, 8, ["report-id", "modelValue"])) :
|
|
2385
|
-
e.value === "editor" ? (
|
|
2572
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => e.value = s)
|
|
2573
|
+
}, null, 8, ["report-id", "modelValue"])) : P("", !0),
|
|
2574
|
+
e.value === "editor" ? (f(), E(Eo, {
|
|
2386
2575
|
key: 2,
|
|
2387
2576
|
"report-id": t.value,
|
|
2388
2577
|
modelValue: e.value,
|
|
2389
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2390
|
-
}, null, 8, ["report-id", "modelValue"])) :
|
|
2578
|
+
"onUpdate:modelValue": n[1] || (n[1] = (s) => e.value = s)
|
|
2579
|
+
}, null, 8, ["report-id", "modelValue"])) : P("", !0)
|
|
2391
2580
|
]),
|
|
2392
2581
|
_: 1
|
|
2393
2582
|
})
|
|
2394
2583
|
]));
|
|
2395
2584
|
}
|
|
2396
2585
|
});
|
|
2397
|
-
const
|
|
2586
|
+
const $ = (o, t) => {
|
|
2398
2587
|
if (o.install = (e) => {
|
|
2399
2588
|
for (const a of [o, ...Object.values(t ?? {})])
|
|
2400
2589
|
e.component(a.name, a);
|
|
@@ -2402,7 +2591,7 @@ const W = (o, t) => {
|
|
|
2402
2591
|
for (const [e, a] of Object.entries(t))
|
|
2403
2592
|
o[e] = a;
|
|
2404
2593
|
return o;
|
|
2405
|
-
},
|
|
2594
|
+
}, Po = $(Oo), Qo = [
|
|
2406
2595
|
{
|
|
2407
2596
|
label: "正文",
|
|
2408
2597
|
value: "p"
|
|
@@ -2427,7 +2616,7 @@ const W = (o, t) => {
|
|
|
2427
2616
|
label: "描述列表",
|
|
2428
2617
|
value: "report-describe"
|
|
2429
2618
|
}
|
|
2430
|
-
],
|
|
2619
|
+
], Io = [
|
|
2431
2620
|
{
|
|
2432
2621
|
value: "p",
|
|
2433
2622
|
fields: ["table_key_relation"]
|
|
@@ -2452,19 +2641,19 @@ const W = (o, t) => {
|
|
|
2452
2641
|
value: "report-describe",
|
|
2453
2642
|
fields: ["p_text"]
|
|
2454
2643
|
}
|
|
2455
|
-
],
|
|
2644
|
+
], Mo = {
|
|
2456
2645
|
class: "table-box"
|
|
2457
|
-
},
|
|
2646
|
+
}, Fo = /* @__PURE__ */ L({
|
|
2458
2647
|
name: "TCModule",
|
|
2459
2648
|
__name: "index",
|
|
2460
2649
|
setup(o) {
|
|
2461
|
-
const t =
|
|
2650
|
+
const t = k(), e = k(), a = k({}), r = k(""), n = window.windowGlobalVar.SYSTEM_NORMAL, s = j({
|
|
2462
2651
|
prod_type: window.$prodType,
|
|
2463
2652
|
cg_linkage: n ? 1 : n ? void 0 : 0
|
|
2464
2653
|
});
|
|
2465
|
-
function
|
|
2654
|
+
function u(w) {
|
|
2466
2655
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2467
|
-
await
|
|
2656
|
+
await ct({
|
|
2468
2657
|
rp_item_uuids: w
|
|
2469
2658
|
}), t.value.getTableList();
|
|
2470
2659
|
});
|
|
@@ -2478,13 +2667,13 @@ const W = (o, t) => {
|
|
|
2478
2667
|
}]
|
|
2479
2668
|
}, r.value = w ? "编辑自定义组件" : "新增自定义组件", e.value.open();
|
|
2480
2669
|
}
|
|
2481
|
-
async function
|
|
2482
|
-
const
|
|
2483
|
-
|
|
2484
|
-
rp_item_uuid:
|
|
2485
|
-
data:
|
|
2486
|
-
}) : (
|
|
2487
|
-
data:
|
|
2670
|
+
async function m(w) {
|
|
2671
|
+
const g = Object.assign({}, w);
|
|
2672
|
+
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 ft({
|
|
2673
|
+
rp_item_uuid: g.rp_item_uuid,
|
|
2674
|
+
data: g
|
|
2675
|
+
}) : (g.prod_type = window.$prodType, await mt({
|
|
2676
|
+
data: g
|
|
2488
2677
|
})), t.value.getTableList(), e.value.close();
|
|
2489
2678
|
}
|
|
2490
2679
|
const p = (w) => {
|
|
@@ -2495,11 +2684,11 @@ const W = (o, t) => {
|
|
|
2495
2684
|
key: "",
|
|
2496
2685
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2497
2686
|
});
|
|
2498
|
-
},
|
|
2499
|
-
delete w.message,
|
|
2500
|
-
|
|
2501
|
-
}),
|
|
2502
|
-
},
|
|
2687
|
+
}, b = (w, g, x) => {
|
|
2688
|
+
delete w.message, g.forEach((_) => {
|
|
2689
|
+
_.name ? _.key || x(new Error("请填写表头名称和KEY")) : x(new Error("请填写表头名称和KEY"));
|
|
2690
|
+
}), x();
|
|
2691
|
+
}, v = (w) => w.item_type === 1, V = j([{
|
|
2503
2692
|
type: "selection",
|
|
2504
2693
|
width: 60,
|
|
2505
2694
|
field: "rp_item_uuid",
|
|
@@ -2516,7 +2705,7 @@ const W = (o, t) => {
|
|
|
2516
2705
|
}, {
|
|
2517
2706
|
field: "filter_uuid",
|
|
2518
2707
|
name: "筛选条件",
|
|
2519
|
-
enum: () =>
|
|
2708
|
+
enum: () => Be({
|
|
2520
2709
|
prod_type: window.$prodType
|
|
2521
2710
|
}),
|
|
2522
2711
|
fieldNames: {
|
|
@@ -2532,10 +2721,10 @@ const W = (o, t) => {
|
|
|
2532
2721
|
}, {
|
|
2533
2722
|
field: "chart_type",
|
|
2534
2723
|
name: "组件类型",
|
|
2535
|
-
enum:
|
|
2724
|
+
enum: Qo,
|
|
2536
2725
|
show: {
|
|
2537
2726
|
type: "select",
|
|
2538
|
-
display:
|
|
2727
|
+
display: Io
|
|
2539
2728
|
},
|
|
2540
2729
|
rules: [{
|
|
2541
2730
|
required: !0
|
|
@@ -2563,42 +2752,42 @@ const W = (o, t) => {
|
|
|
2563
2752
|
style: "gap:15px;"
|
|
2564
2753
|
}, [l("span", {
|
|
2565
2754
|
style: "width:50%"
|
|
2566
|
-
}, [
|
|
2755
|
+
}, [S("表头名称")]), l("span", {
|
|
2567
2756
|
style: "width:50%"
|
|
2568
|
-
}, [
|
|
2757
|
+
}, [S("KEY")])]), (w = a.value.table_key_relation) == null ? void 0 : w.map((g, x) => l("div", {
|
|
2569
2758
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2570
2759
|
style: "gap:15px;margin-bottom:10px;",
|
|
2571
|
-
key:
|
|
2572
|
-
}, [l(
|
|
2760
|
+
key: x
|
|
2761
|
+
}, [l(A("el-form-item"), {
|
|
2573
2762
|
style: "width:50%"
|
|
2574
2763
|
}, {
|
|
2575
|
-
default: () => [l(
|
|
2576
|
-
modelValue:
|
|
2577
|
-
"onUpdate:modelValue": (
|
|
2764
|
+
default: () => [l(A("el-input"), {
|
|
2765
|
+
modelValue: g.name,
|
|
2766
|
+
"onUpdate:modelValue": (_) => g.name = _,
|
|
2578
2767
|
class: "",
|
|
2579
2768
|
placeholder: "表头"
|
|
2580
2769
|
}, null)]
|
|
2581
|
-
}), l(
|
|
2770
|
+
}), l(A("el-form-item"), {
|
|
2582
2771
|
style: "width:50%"
|
|
2583
2772
|
}, {
|
|
2584
|
-
default: () => [l(
|
|
2585
|
-
modelValue:
|
|
2586
|
-
"onUpdate:modelValue": (
|
|
2773
|
+
default: () => [l(A("el-input"), {
|
|
2774
|
+
modelValue: g.key,
|
|
2775
|
+
"onUpdate:modelValue": (_) => g.key = _,
|
|
2587
2776
|
class: "",
|
|
2588
2777
|
placeholder: "KEY"
|
|
2589
2778
|
}, null)]
|
|
2590
2779
|
}), a.value.table_key_relation.length > 1 && l("div", {
|
|
2591
2780
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
2592
|
-
}, [l(
|
|
2593
|
-
onClick: () => p(
|
|
2781
|
+
}, [l(A("el-icon"), {
|
|
2782
|
+
onClick: () => p(x)
|
|
2594
2783
|
}, {
|
|
2595
|
-
default: () => [l(
|
|
2596
|
-
})])])), l(
|
|
2784
|
+
default: () => [l(lt, null, null)]
|
|
2785
|
+
})])])), l(A("el-button"), {
|
|
2597
2786
|
class: "report-btn ",
|
|
2598
2787
|
icon: "Plus",
|
|
2599
2788
|
onClick: () => c()
|
|
2600
2789
|
}, {
|
|
2601
|
-
default: () => [
|
|
2790
|
+
default: () => [S("新增表头与KEY")]
|
|
2602
2791
|
})]);
|
|
2603
2792
|
}
|
|
2604
2793
|
},
|
|
@@ -2607,7 +2796,7 @@ const W = (o, t) => {
|
|
|
2607
2796
|
},
|
|
2608
2797
|
rules: [{
|
|
2609
2798
|
required: !0,
|
|
2610
|
-
validator:
|
|
2799
|
+
validator: b,
|
|
2611
2800
|
trigger: "blur"
|
|
2612
2801
|
}]
|
|
2613
2802
|
}, {
|
|
@@ -2633,7 +2822,7 @@ const W = (o, t) => {
|
|
|
2633
2822
|
name: "操作",
|
|
2634
2823
|
align: "center",
|
|
2635
2824
|
fixed: "right",
|
|
2636
|
-
render: (w) => l("div", null, [l(
|
|
2825
|
+
render: (w) => l("div", null, [l(A("el-button"), {
|
|
2637
2826
|
link: !0,
|
|
2638
2827
|
type: "primary",
|
|
2639
2828
|
class: "custom-btn",
|
|
@@ -2641,108 +2830,108 @@ const W = (o, t) => {
|
|
|
2641
2830
|
title: "编辑",
|
|
2642
2831
|
disabled: w.row.item_type === 0,
|
|
2643
2832
|
onClick: () => i(w.row)
|
|
2644
|
-
}, null), l(
|
|
2833
|
+
}, null), l(A("el-button"), {
|
|
2645
2834
|
link: !0,
|
|
2646
2835
|
type: "danger",
|
|
2647
2836
|
icon: "Delete",
|
|
2648
2837
|
title: "删除",
|
|
2649
2838
|
disabled: w.row.item_type === 0,
|
|
2650
|
-
onClick: () =>
|
|
2839
|
+
onClick: () => u([w.row.rp_item_uuid])
|
|
2651
2840
|
}, null)])
|
|
2652
2841
|
}]);
|
|
2653
|
-
return (w,
|
|
2654
|
-
const
|
|
2655
|
-
return
|
|
2842
|
+
return (w, g) => {
|
|
2843
|
+
const x = A("el-button"), _ = A("TdsTable"), h = A("TdsForm");
|
|
2844
|
+
return f(), C("div", Mo, [l(_, {
|
|
2656
2845
|
ref_key: "refTdsTable",
|
|
2657
2846
|
ref: t,
|
|
2658
|
-
columns:
|
|
2659
|
-
"request-api":
|
|
2660
|
-
"init-param":
|
|
2847
|
+
columns: V,
|
|
2848
|
+
"request-api": y(pt),
|
|
2849
|
+
"init-param": s,
|
|
2661
2850
|
"row-key": "rp_item_uuid",
|
|
2662
2851
|
options: w.$tableOptions(),
|
|
2663
|
-
selectable:
|
|
2852
|
+
selectable: v,
|
|
2664
2853
|
"search-col": 6
|
|
2665
2854
|
}, {
|
|
2666
|
-
tableHeader:
|
|
2855
|
+
tableHeader: d((D) => [l(x, {
|
|
2667
2856
|
plain: "",
|
|
2668
2857
|
type: "primary",
|
|
2669
2858
|
class: "custom-btn",
|
|
2670
2859
|
icon: "Plus",
|
|
2671
|
-
onClick:
|
|
2860
|
+
onClick: g[0] || (g[0] = (N) => i())
|
|
2672
2861
|
}, {
|
|
2673
|
-
default:
|
|
2862
|
+
default: d(() => g[1] || (g[1] = [S("新建")])),
|
|
2674
2863
|
_: 1
|
|
2675
|
-
}), l(
|
|
2864
|
+
}), l(x, {
|
|
2676
2865
|
plain: "",
|
|
2677
2866
|
type: "danger",
|
|
2678
2867
|
icon: "Delete",
|
|
2679
|
-
onClick: (
|
|
2868
|
+
onClick: (N) => u(D.selectedListIds)
|
|
2680
2869
|
}, {
|
|
2681
|
-
default:
|
|
2870
|
+
default: d(() => g[2] || (g[2] = [S("删除")])),
|
|
2682
2871
|
_: 2
|
|
2683
2872
|
}, 1032, ["onClick"])]),
|
|
2684
2873
|
_: 1
|
|
2685
|
-
}, 8, ["columns", "request-api", "init-param", "options"]), l(
|
|
2874
|
+
}, 8, ["columns", "request-api", "init-param", "options"]), l(h, Ce({
|
|
2686
2875
|
ref_key: "refTdsForm",
|
|
2687
2876
|
ref: e
|
|
2688
2877
|
}, w.$formBindProps({
|
|
2689
2878
|
title: r.value,
|
|
2690
2879
|
form: a.value,
|
|
2691
|
-
columns:
|
|
2880
|
+
columns: V
|
|
2692
2881
|
}), {
|
|
2693
|
-
onSubmit:
|
|
2882
|
+
onSubmit: m
|
|
2694
2883
|
}), null, 16)]);
|
|
2695
2884
|
};
|
|
2696
2885
|
}
|
|
2697
2886
|
});
|
|
2698
|
-
const
|
|
2887
|
+
const Ko = $(Fo), qo = {
|
|
2699
2888
|
class: "table-box"
|
|
2700
2889
|
};
|
|
2701
|
-
function
|
|
2702
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
2890
|
+
function ge(o) {
|
|
2891
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ue(o);
|
|
2703
2892
|
}
|
|
2704
|
-
const
|
|
2893
|
+
const zo = /* @__PURE__ */ L({
|
|
2705
2894
|
name: "TCSubscribe",
|
|
2706
2895
|
__name: "index",
|
|
2707
2896
|
setup(o) {
|
|
2708
|
-
const t =
|
|
2897
|
+
const t = k(), e = k(), {
|
|
2709
2898
|
$t: a,
|
|
2710
2899
|
$messageBox: r
|
|
2711
|
-
} = window, n =
|
|
2900
|
+
} = window, n = k(""), s = k({
|
|
2712
2901
|
receiver: []
|
|
2713
2902
|
});
|
|
2714
|
-
function
|
|
2715
|
-
r(
|
|
2716
|
-
await
|
|
2717
|
-
subscript_uuids:
|
|
2903
|
+
function u(_) {
|
|
2904
|
+
r(_, "subscript_name", a("button.delete"), "error").then(async () => {
|
|
2905
|
+
await wt({
|
|
2906
|
+
subscript_uuids: _.map((h) => h.subscript_uuid)
|
|
2718
2907
|
}), t.value.getTableList();
|
|
2719
2908
|
});
|
|
2720
2909
|
}
|
|
2721
2910
|
function i() {
|
|
2722
|
-
|
|
2911
|
+
u(t.value.selectedList);
|
|
2723
2912
|
}
|
|
2724
|
-
const
|
|
2725
|
-
|
|
2913
|
+
const m = (_) => {
|
|
2914
|
+
s.value = _ ? Object.assign({}, _) : {
|
|
2726
2915
|
receiver: []
|
|
2727
|
-
}, n.value =
|
|
2916
|
+
}, n.value = _ ? "编辑报表订阅" : "新增报表订阅", e.value.open();
|
|
2728
2917
|
};
|
|
2729
|
-
async function p(
|
|
2730
|
-
const
|
|
2731
|
-
|
|
2732
|
-
subscript_uuid:
|
|
2733
|
-
data:
|
|
2734
|
-
}) : await
|
|
2735
|
-
data:
|
|
2918
|
+
async function p(_) {
|
|
2919
|
+
const h = Object.assign({}, _);
|
|
2920
|
+
h.subscript_uuid ? await _t({
|
|
2921
|
+
subscript_uuid: h.subscript_uuid,
|
|
2922
|
+
data: h
|
|
2923
|
+
}) : await vt({
|
|
2924
|
+
data: h
|
|
2736
2925
|
}), t.value.getTableList(), e.value.close();
|
|
2737
2926
|
}
|
|
2738
|
-
function c(
|
|
2739
|
-
if (!
|
|
2740
|
-
return
|
|
2741
|
-
|
|
2927
|
+
function c(_, h, D) {
|
|
2928
|
+
if (!h || h.length === 0)
|
|
2929
|
+
return D(new Error("请输入收件人"));
|
|
2930
|
+
D();
|
|
2742
2931
|
}
|
|
2743
|
-
const
|
|
2744
|
-
|
|
2745
|
-
},
|
|
2932
|
+
const b = (_, h) => {
|
|
2933
|
+
_.target.value && s.value[h].push(_.target.value);
|
|
2934
|
+
}, v = [{
|
|
2746
2935
|
label: "周一",
|
|
2747
2936
|
value: 1
|
|
2748
2937
|
}, {
|
|
@@ -2763,7 +2952,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2763
2952
|
}, {
|
|
2764
2953
|
label: "周日",
|
|
2765
2954
|
value: 0
|
|
2766
|
-
}],
|
|
2955
|
+
}], V = [{
|
|
2767
2956
|
label: "每天",
|
|
2768
2957
|
value: 0
|
|
2769
2958
|
}, {
|
|
@@ -2772,7 +2961,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2772
2961
|
}, {
|
|
2773
2962
|
label: "每月",
|
|
2774
2963
|
value: 2
|
|
2775
|
-
}], w = [],
|
|
2964
|
+
}], w = [], g = window.windowGlobalVar.SYSTEM_NORMAL ? 1 : window.windowGlobalVar.SYSTEM_NORMAL ? void 0 : 0, x = j([{
|
|
2776
2965
|
type: "selection",
|
|
2777
2966
|
align: "center",
|
|
2778
2967
|
field: "subscript_uuid",
|
|
@@ -2799,8 +2988,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2799
2988
|
}, {
|
|
2800
2989
|
field: "report_uuid",
|
|
2801
2990
|
name: "报表类型",
|
|
2802
|
-
enum: () =>
|
|
2803
|
-
prod_type: window.$prodType
|
|
2991
|
+
enum: () => yt({
|
|
2992
|
+
prod_type: window.$prodType,
|
|
2993
|
+
cg_linkage: g
|
|
2804
2994
|
}),
|
|
2805
2995
|
fieldNames: {
|
|
2806
2996
|
label: "report_name",
|
|
@@ -2816,7 +3006,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2816
3006
|
}, {
|
|
2817
3007
|
field: "format",
|
|
2818
3008
|
name: "报表格式",
|
|
2819
|
-
enum:
|
|
3009
|
+
enum: ht,
|
|
2820
3010
|
fieldNames: {
|
|
2821
3011
|
label: "name",
|
|
2822
3012
|
value: "id"
|
|
@@ -2831,7 +3021,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2831
3021
|
}, {
|
|
2832
3022
|
field: "select_data",
|
|
2833
3023
|
name: "资产/任务",
|
|
2834
|
-
enum:
|
|
3024
|
+
enum: Ct,
|
|
2835
3025
|
fieldNames: {
|
|
2836
3026
|
label: "label",
|
|
2837
3027
|
value: "data"
|
|
@@ -2850,45 +3040,45 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2850
3040
|
key: window.$prodType
|
|
2851
3041
|
}
|
|
2852
3042
|
},
|
|
2853
|
-
render: (
|
|
3043
|
+
render: (_) => t.value.enumMap.get("dbsId").filter((N) => _.row.dbsId.indexOf(N.id) > -1).map((N) => l(A("el-tag"), {
|
|
2854
3044
|
class: "mr-10px",
|
|
2855
3045
|
type: "info"
|
|
2856
3046
|
}, {
|
|
2857
|
-
default: () => [
|
|
3047
|
+
default: () => [N.policy_name]
|
|
2858
3048
|
}))
|
|
2859
3049
|
}, {
|
|
2860
3050
|
field: "receiver_email",
|
|
2861
3051
|
name: "收件人",
|
|
2862
3052
|
width: 300,
|
|
2863
|
-
render: (
|
|
3053
|
+
render: (_) => l(Q, null, [_.row.receiver_email.map((h) => l(A("el-tag"), {
|
|
2864
3054
|
class: "mr-10px",
|
|
2865
3055
|
type: "info"
|
|
2866
|
-
},
|
|
2867
|
-
default: () => [
|
|
3056
|
+
}, ge(h) ? h : {
|
|
3057
|
+
default: () => [h]
|
|
2868
3058
|
}))]),
|
|
2869
3059
|
show: {
|
|
2870
3060
|
type: "input",
|
|
2871
3061
|
render: () => {
|
|
2872
|
-
let
|
|
2873
|
-
return l(
|
|
3062
|
+
let _;
|
|
3063
|
+
return l(Q, null, [l(A("el-select"), {
|
|
2874
3064
|
class: "right-select",
|
|
2875
|
-
modelValue:
|
|
2876
|
-
"onUpdate:modelValue": (
|
|
3065
|
+
modelValue: s.value.receiver_email,
|
|
3066
|
+
"onUpdate:modelValue": (h) => s.value.receiver_email = h,
|
|
2877
3067
|
placeholder: "请输入",
|
|
2878
3068
|
multiple: !0,
|
|
2879
3069
|
filterable: !0,
|
|
2880
3070
|
"allow-create": !0,
|
|
2881
3071
|
"default-first-option": !0,
|
|
2882
3072
|
"reserve-keyword": !1,
|
|
2883
|
-
onBlur: (
|
|
2884
|
-
},
|
|
2885
|
-
label:
|
|
2886
|
-
value:
|
|
2887
|
-
}, null))) ?
|
|
2888
|
-
default: () => [
|
|
3073
|
+
onBlur: (h) => b(h, "receiver_email")
|
|
3074
|
+
}, ge(_ = w.map((h) => l(A("el-option"), {
|
|
3075
|
+
label: h.label,
|
|
3076
|
+
value: h.value
|
|
3077
|
+
}, null))) ? _ : {
|
|
3078
|
+
default: () => [_]
|
|
2889
3079
|
}), l("p", {
|
|
2890
3080
|
style: "font-size:12px;color:#909399;line-height:20px"
|
|
2891
|
-
}, [
|
|
3081
|
+
}, [S("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
|
|
2892
3082
|
}
|
|
2893
3083
|
},
|
|
2894
3084
|
rules: [{
|
|
@@ -2904,7 +3094,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2904
3094
|
field: "loop_type",
|
|
2905
3095
|
name: "发送周期",
|
|
2906
3096
|
hide: !0,
|
|
2907
|
-
enum:
|
|
3097
|
+
enum: V,
|
|
2908
3098
|
show: {
|
|
2909
3099
|
dataType: "number",
|
|
2910
3100
|
type: "select",
|
|
@@ -2927,9 +3117,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2927
3117
|
field: "day",
|
|
2928
3118
|
name: "日",
|
|
2929
3119
|
hide: !0,
|
|
2930
|
-
enum: [...Array(28)].map((
|
|
2931
|
-
label:
|
|
2932
|
-
value:
|
|
3120
|
+
enum: [...Array(28)].map((_, h) => ({
|
|
3121
|
+
label: h + 1 + "",
|
|
3122
|
+
value: h + 1
|
|
2933
3123
|
})),
|
|
2934
3124
|
show: {
|
|
2935
3125
|
type: "select"
|
|
@@ -2942,7 +3132,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2942
3132
|
field: "weekday",
|
|
2943
3133
|
name: "星期",
|
|
2944
3134
|
hide: !0,
|
|
2945
|
-
enum:
|
|
3135
|
+
enum: v,
|
|
2946
3136
|
show: {
|
|
2947
3137
|
type: "select"
|
|
2948
3138
|
},
|
|
@@ -2954,9 +3144,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2954
3144
|
field: "hour",
|
|
2955
3145
|
name: "小时",
|
|
2956
3146
|
hide: !0,
|
|
2957
|
-
enum: [...Array(24)].map((
|
|
2958
|
-
label:
|
|
2959
|
-
value:
|
|
3147
|
+
enum: [...Array(24)].map((_, h) => ({
|
|
3148
|
+
label: h + "时",
|
|
3149
|
+
value: h
|
|
2960
3150
|
})),
|
|
2961
3151
|
show: {
|
|
2962
3152
|
type: "select"
|
|
@@ -2969,9 +3159,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2969
3159
|
field: "minute",
|
|
2970
3160
|
name: "分钟",
|
|
2971
3161
|
hide: !0,
|
|
2972
|
-
enum: [...Array(60)].map((
|
|
2973
|
-
label:
|
|
2974
|
-
value:
|
|
3162
|
+
enum: [...Array(60)].map((_, h) => ({
|
|
3163
|
+
label: h + "分",
|
|
3164
|
+
value: h
|
|
2975
3165
|
})),
|
|
2976
3166
|
show: {
|
|
2977
3167
|
type: "select"
|
|
@@ -2983,15 +3173,15 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2983
3173
|
}, {
|
|
2984
3174
|
field: "enable_status",
|
|
2985
3175
|
name: "启用状态",
|
|
2986
|
-
render: (
|
|
2987
|
-
modelValue:
|
|
2988
|
-
"onUpdate:modelValue": (
|
|
3176
|
+
render: (_) => l(A("el-switch"), {
|
|
3177
|
+
modelValue: _.row.enable_status,
|
|
3178
|
+
"onUpdate:modelValue": (h) => _.row.enable_status = h,
|
|
2989
3179
|
"active-value": 1,
|
|
2990
3180
|
"inactive-value": 0,
|
|
2991
|
-
onChange: (
|
|
2992
|
-
|
|
2993
|
-
subscript_uuid:
|
|
2994
|
-
enable_status:
|
|
3181
|
+
onChange: (h) => {
|
|
3182
|
+
bt({
|
|
3183
|
+
subscript_uuid: _.row.subscript_uuid,
|
|
3184
|
+
enable_status: h
|
|
2995
3185
|
}), t.value.getTableList();
|
|
2996
3186
|
}
|
|
2997
3187
|
}, null)
|
|
@@ -3001,136 +3191,136 @@ const Oo = /* @__PURE__ */ L({
|
|
|
3001
3191
|
fixed: "right",
|
|
3002
3192
|
cardHide: !0,
|
|
3003
3193
|
width: 120,
|
|
3004
|
-
render: (
|
|
3194
|
+
render: (_) => l("div", null, [l(A("el-button"), {
|
|
3005
3195
|
link: !0,
|
|
3006
3196
|
type: "primary",
|
|
3007
3197
|
icon: "Edit",
|
|
3008
3198
|
title: a("button.edit"),
|
|
3009
3199
|
class: "custom-btn",
|
|
3010
|
-
onClick: () =>
|
|
3011
|
-
}, null), l(
|
|
3200
|
+
onClick: () => m(_.row)
|
|
3201
|
+
}, null), l(A("el-button"), {
|
|
3012
3202
|
link: !0,
|
|
3013
3203
|
type: "danger",
|
|
3014
3204
|
icon: "Delete",
|
|
3015
3205
|
title: a("button.delete"),
|
|
3016
|
-
onClick: () =>
|
|
3206
|
+
onClick: () => u([_.row])
|
|
3017
3207
|
}, null)])
|
|
3018
3208
|
}]);
|
|
3019
|
-
return (
|
|
3020
|
-
const
|
|
3021
|
-
return
|
|
3209
|
+
return (_, h) => {
|
|
3210
|
+
const D = A("el-button");
|
|
3211
|
+
return f(), C("div", qo, [l(y(xe), {
|
|
3022
3212
|
ref_key: "refTdsTable",
|
|
3023
3213
|
ref: t,
|
|
3024
3214
|
"row-key": "subscript_uuid",
|
|
3025
|
-
"request-api":
|
|
3026
|
-
columns:
|
|
3027
|
-
options:
|
|
3215
|
+
"request-api": y(gt),
|
|
3216
|
+
columns: x,
|
|
3217
|
+
options: _.$tableOptions()
|
|
3028
3218
|
}, {
|
|
3029
|
-
tableHeader:
|
|
3219
|
+
tableHeader: d((N) => [l(D, {
|
|
3030
3220
|
type: "primary",
|
|
3031
3221
|
icon: "Plus",
|
|
3032
3222
|
class: "custom-btn",
|
|
3033
3223
|
plain: "",
|
|
3034
|
-
onClick:
|
|
3224
|
+
onClick: h[0] || (h[0] = (T) => m())
|
|
3035
3225
|
}, {
|
|
3036
|
-
default:
|
|
3226
|
+
default: d(() => [S(K(y(a)("button.add")), 1)]),
|
|
3037
3227
|
_: 1
|
|
3038
|
-
}), l(
|
|
3228
|
+
}), l(D, {
|
|
3039
3229
|
type: "danger",
|
|
3040
3230
|
icon: "Delete",
|
|
3041
3231
|
plain: "",
|
|
3042
3232
|
onClick: i,
|
|
3043
|
-
disabled: !
|
|
3233
|
+
disabled: !N.selectedListIds.length
|
|
3044
3234
|
}, {
|
|
3045
|
-
default:
|
|
3235
|
+
default: d(() => [S(K(y(a)("button.delete")), 1)]),
|
|
3046
3236
|
_: 2
|
|
3047
3237
|
}, 1032, ["disabled"])]),
|
|
3048
3238
|
_: 1
|
|
3049
|
-
}, 8, ["request-api", "columns", "options"]), l(
|
|
3239
|
+
}, 8, ["request-api", "columns", "options"]), l(y(nt), Ce({
|
|
3050
3240
|
ref_key: "refTdsForm",
|
|
3051
3241
|
ref: e
|
|
3052
|
-
},
|
|
3242
|
+
}, _.$formBindProps({
|
|
3053
3243
|
title: n.value,
|
|
3054
|
-
form:
|
|
3055
|
-
columns:
|
|
3244
|
+
form: s.value,
|
|
3245
|
+
columns: x
|
|
3056
3246
|
}), {
|
|
3057
3247
|
onSubmit: p
|
|
3058
3248
|
}), null, 16)]);
|
|
3059
3249
|
};
|
|
3060
3250
|
}
|
|
3061
|
-
}),
|
|
3251
|
+
}), No = $(zo), Ho = {
|
|
3062
3252
|
class: "main-wrapper"
|
|
3063
|
-
},
|
|
3253
|
+
}, Yo = {
|
|
3064
3254
|
class: "el-dropdown-link"
|
|
3065
|
-
},
|
|
3255
|
+
}, Go = /* @__PURE__ */ L({
|
|
3066
3256
|
name: "TCBuildin",
|
|
3067
3257
|
__name: "index",
|
|
3068
3258
|
setup(o) {
|
|
3069
|
-
const t =
|
|
3259
|
+
const t = k({}), e = k("1"), a = k("");
|
|
3070
3260
|
async function r() {
|
|
3071
|
-
const
|
|
3261
|
+
const u = window.windowGlobalVar.SYSTEM_NORMAL, i = await xt({
|
|
3072
3262
|
prod_type: window.$prodType,
|
|
3073
|
-
cg_linkage:
|
|
3263
|
+
cg_linkage: u ? 1 : u ? void 0 : 0
|
|
3074
3264
|
});
|
|
3075
3265
|
e.value = i.data[0].report_uuid;
|
|
3076
|
-
const
|
|
3266
|
+
const m = {};
|
|
3077
3267
|
i.data.forEach((p) => {
|
|
3078
3268
|
const c = p.report_category || p.report_uuid;
|
|
3079
|
-
|
|
3080
|
-
}), t.value =
|
|
3269
|
+
m[c] || (m[c] = []), m[c].push(p);
|
|
3270
|
+
}), t.value = m;
|
|
3081
3271
|
}
|
|
3082
|
-
const n = (
|
|
3083
|
-
e.value = i, a.value =
|
|
3084
|
-
},
|
|
3272
|
+
const n = (u, i) => {
|
|
3273
|
+
e.value = i, a.value = u;
|
|
3274
|
+
}, s = () => {
|
|
3085
3275
|
a.value = "";
|
|
3086
3276
|
};
|
|
3087
|
-
return r(), (
|
|
3088
|
-
const
|
|
3089
|
-
return
|
|
3277
|
+
return r(), (u, i) => {
|
|
3278
|
+
const m = A("arrow-down"), p = A("el-icon"), c = A("el-dropdown-item"), b = A("el-dropdown-menu"), v = A("el-dropdown"), V = A("el-tab-pane"), w = A("el-tabs");
|
|
3279
|
+
return f(), C("div", Ho, [l(w, {
|
|
3090
3280
|
modelValue: e.value,
|
|
3091
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
3281
|
+
"onUpdate:modelValue": i[0] || (i[0] = (g) => e.value = g),
|
|
3092
3282
|
class: "report-tabs",
|
|
3093
3283
|
style: {
|
|
3094
3284
|
height: "100%"
|
|
3095
3285
|
},
|
|
3096
|
-
onTabClick:
|
|
3286
|
+
onTabClick: s
|
|
3097
3287
|
}, {
|
|
3098
|
-
default:
|
|
3288
|
+
default: d(() => [(f(!0), C(Q, null, I(t.value, (g, x) => (f(), E(V, {
|
|
3099
3289
|
style: {
|
|
3100
3290
|
height: "100%"
|
|
3101
3291
|
},
|
|
3102
|
-
key:
|
|
3103
|
-
name:
|
|
3104
|
-
},
|
|
3105
|
-
default:
|
|
3292
|
+
key: x,
|
|
3293
|
+
name: g[0].report_uuid
|
|
3294
|
+
}, Je({
|
|
3295
|
+
default: d(() => [e.value === g[0].report_uuid ? (f(), E(Pe, {
|
|
3106
3296
|
key: 0,
|
|
3107
3297
|
"report-id": a.value || e.value
|
|
3108
|
-
}, null, 8, ["report-id"])) :
|
|
3298
|
+
}, null, 8, ["report-id"])) : P("", !0)]),
|
|
3109
3299
|
_: 2
|
|
3110
|
-
}, [
|
|
3300
|
+
}, [g.length === 1 ? {
|
|
3111
3301
|
name: "label",
|
|
3112
|
-
fn:
|
|
3302
|
+
fn: d(() => [S(K(g[0].report_name), 1)]),
|
|
3113
3303
|
key: "0"
|
|
3114
3304
|
} : {
|
|
3115
3305
|
name: "label",
|
|
3116
|
-
fn:
|
|
3117
|
-
onCommand: (
|
|
3306
|
+
fn: d(() => [l(v, {
|
|
3307
|
+
onCommand: (_) => n(_, g[0].report_uuid)
|
|
3118
3308
|
}, {
|
|
3119
|
-
dropdown:
|
|
3120
|
-
default:
|
|
3121
|
-
key:
|
|
3309
|
+
dropdown: d(() => [l(b, null, {
|
|
3310
|
+
default: d(() => [(f(!0), C(Q, null, I(g, (_) => (f(), E(c, {
|
|
3311
|
+
key: _.report_uuid,
|
|
3122
3312
|
class: "mt-10px",
|
|
3123
|
-
command:
|
|
3313
|
+
command: _.report_uuid
|
|
3124
3314
|
}, {
|
|
3125
|
-
default:
|
|
3315
|
+
default: d(() => [S(K(_.report_name), 1)]),
|
|
3126
3316
|
_: 2
|
|
3127
3317
|
}, 1032, ["command"]))), 128))]),
|
|
3128
3318
|
_: 2
|
|
3129
3319
|
}, 1024)]),
|
|
3130
|
-
default:
|
|
3320
|
+
default: d(() => [B("span", Yo, [S(K(x) + " ", 1), l(p, {
|
|
3131
3321
|
class: "el-icon--right"
|
|
3132
3322
|
}, {
|
|
3133
|
-
default:
|
|
3323
|
+
default: d(() => [l(m)]),
|
|
3134
3324
|
_: 1
|
|
3135
3325
|
})])]),
|
|
3136
3326
|
_: 2
|
|
@@ -3142,41 +3332,41 @@ const Oo = /* @__PURE__ */ L({
|
|
|
3142
3332
|
};
|
|
3143
3333
|
}
|
|
3144
3334
|
});
|
|
3145
|
-
const
|
|
3146
|
-
function
|
|
3335
|
+
const Jo = /* @__PURE__ */ Z(Go, [["__scopeId", "data-v-99a69fda"]]), Xo = $(Jo);
|
|
3336
|
+
function jo(o, t, e) {
|
|
3147
3337
|
const a = atob(o), r = [];
|
|
3148
3338
|
for (let i = 0; i < a.length; i += 512) {
|
|
3149
|
-
const
|
|
3150
|
-
for (let
|
|
3151
|
-
p[
|
|
3339
|
+
const m = a.slice(i, i + 512), p = new Array(m.length);
|
|
3340
|
+
for (let b = 0; b < m.length; b++)
|
|
3341
|
+
p[b] = m.charCodeAt(b);
|
|
3152
3342
|
const c = new Uint8Array(p);
|
|
3153
3343
|
r.push(c);
|
|
3154
3344
|
}
|
|
3155
|
-
const n = new Blob(r, { type: e }),
|
|
3156
|
-
|
|
3157
|
-
document.body.removeChild(
|
|
3345
|
+
const n = new Blob(r, { type: e }), s = URL.createObjectURL(n), u = document.createElement("a");
|
|
3346
|
+
u.href = s, u.download = t, document.body.appendChild(u), u.click(), setTimeout(() => {
|
|
3347
|
+
document.body.removeChild(u), URL.revokeObjectURL(s);
|
|
3158
3348
|
}, 0);
|
|
3159
3349
|
}
|
|
3160
|
-
const
|
|
3350
|
+
const Zo = {
|
|
3161
3351
|
class: "table-box"
|
|
3162
|
-
},
|
|
3352
|
+
}, Wo = /* @__PURE__ */ L({
|
|
3163
3353
|
name: "TCDownload",
|
|
3164
3354
|
__name: "index",
|
|
3165
3355
|
setup(o) {
|
|
3166
|
-
const t =
|
|
3356
|
+
const t = j({
|
|
3167
3357
|
prod_type: window.$prodType
|
|
3168
|
-
}), e =
|
|
3169
|
-
const
|
|
3170
|
-
export_uuid:
|
|
3171
|
-
}), i =
|
|
3172
|
-
|
|
3173
|
-
}, r = (
|
|
3358
|
+
}), e = k(), a = async (s) => {
|
|
3359
|
+
const u = await kt({
|
|
3360
|
+
export_uuid: s.export_uuid
|
|
3361
|
+
}), i = s.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
3362
|
+
jo(u.file_data, u.file_name, i), e.value.getTableList();
|
|
3363
|
+
}, r = (s) => {
|
|
3174
3364
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
3175
|
-
await
|
|
3176
|
-
export_uuids:
|
|
3365
|
+
await Dt({
|
|
3366
|
+
export_uuids: s
|
|
3177
3367
|
}), e.value.getTableList();
|
|
3178
3368
|
});
|
|
3179
|
-
}, n =
|
|
3369
|
+
}, n = j([{
|
|
3180
3370
|
type: "selection",
|
|
3181
3371
|
width: 80
|
|
3182
3372
|
}, {
|
|
@@ -3228,68 +3418,68 @@ const Ho = {
|
|
|
3228
3418
|
name: "操作",
|
|
3229
3419
|
align: "center",
|
|
3230
3420
|
fixed: "right",
|
|
3231
|
-
render: (
|
|
3421
|
+
render: (s) => l("div", null, [l(A("el-button"), {
|
|
3232
3422
|
link: !0,
|
|
3233
3423
|
type: "primary",
|
|
3234
3424
|
class: "custom-btn",
|
|
3235
3425
|
icon: "Download",
|
|
3236
3426
|
title: "下載",
|
|
3237
|
-
onClick: () => a(
|
|
3238
|
-
}, null), l(
|
|
3427
|
+
onClick: () => a(s.row)
|
|
3428
|
+
}, null), l(A("el-button"), {
|
|
3239
3429
|
link: !0,
|
|
3240
3430
|
type: "danger",
|
|
3241
3431
|
icon: "Delete",
|
|
3242
3432
|
title: "删除",
|
|
3243
|
-
onClick: () => r([
|
|
3433
|
+
onClick: () => r([s.row.export_uuid])
|
|
3244
3434
|
}, null)])
|
|
3245
3435
|
}]);
|
|
3246
|
-
return (
|
|
3247
|
-
const i =
|
|
3248
|
-
return
|
|
3436
|
+
return (s, u) => {
|
|
3437
|
+
const i = A("el-button");
|
|
3438
|
+
return f(), C("div", Zo, [l(y(xe), {
|
|
3249
3439
|
ref_key: "proTable",
|
|
3250
3440
|
ref: e,
|
|
3251
3441
|
columns: n,
|
|
3252
|
-
"request-api":
|
|
3442
|
+
"request-api": y(Bt),
|
|
3253
3443
|
"row-key": "export_uuid",
|
|
3254
3444
|
"init-param": t,
|
|
3255
|
-
options:
|
|
3445
|
+
options: s.$tableOptions({
|
|
3256
3446
|
refresh: {
|
|
3257
3447
|
export_status: [0, 1]
|
|
3258
3448
|
}
|
|
3259
3449
|
}),
|
|
3260
3450
|
"search-col": 6
|
|
3261
3451
|
}, {
|
|
3262
|
-
tableHeader:
|
|
3452
|
+
tableHeader: d((m) => [l(i, {
|
|
3263
3453
|
plain: "",
|
|
3264
3454
|
type: "danger",
|
|
3265
3455
|
icon: "Delete",
|
|
3266
|
-
onClick: (p) => r(
|
|
3456
|
+
onClick: (p) => r(m.selectedListIds)
|
|
3267
3457
|
}, {
|
|
3268
|
-
default:
|
|
3458
|
+
default: d(() => u[0] || (u[0] = [S("删除")])),
|
|
3269
3459
|
_: 2
|
|
3270
3460
|
}, 1032, ["onClick"])]),
|
|
3271
3461
|
_: 1
|
|
3272
3462
|
}, 8, ["columns", "request-api", "init-param", "options"])]);
|
|
3273
3463
|
};
|
|
3274
3464
|
}
|
|
3275
|
-
}),
|
|
3276
|
-
TCReport:
|
|
3277
|
-
TCModule:
|
|
3278
|
-
TCSubscribe:
|
|
3279
|
-
TCBuildin:
|
|
3280
|
-
TCDownload:
|
|
3281
|
-
},
|
|
3465
|
+
}), $o = $(Wo), el = {
|
|
3466
|
+
TCReport: Po,
|
|
3467
|
+
TCModule: Ko,
|
|
3468
|
+
TCSubscribe: No,
|
|
3469
|
+
TCBuildin: Xo,
|
|
3470
|
+
TCDownload: $o
|
|
3471
|
+
}, Al = {
|
|
3282
3472
|
install(o, t) {
|
|
3283
|
-
Object.entries(
|
|
3473
|
+
Object.entries(el).forEach(([e, a]) => {
|
|
3284
3474
|
o.component(e, a);
|
|
3285
3475
|
}), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
|
|
3286
3476
|
}
|
|
3287
3477
|
};
|
|
3288
3478
|
export {
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3479
|
+
Xo as TCBuildin,
|
|
3480
|
+
$o as TCDownload,
|
|
3481
|
+
Ko as TCModule,
|
|
3482
|
+
Po as TCReport,
|
|
3483
|
+
No as TCSubscribe,
|
|
3484
|
+
Al as default
|
|
3295
3485
|
};
|