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