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