@topdatasec/report 1.1.25 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/style.css +1 -1
- package/lib/t-report-ui.es.js +603 -564
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { ElNotification as
|
|
4
|
-
import { VueDraggable as
|
|
5
|
-
import { Toolbar as
|
|
6
|
-
import { CircleClose as
|
|
7
|
-
import { TdsTable as ye, TdsForm as
|
|
8
|
-
const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), ee = (o) => JSON.parse(JSON.stringify(o)),
|
|
1
|
+
import { defineComponent as L, computed as M, resolveComponent as s, openBlock as c, createElementBlock as x, createElementVNode as T, Fragment as O, renderList as I, normalizeClass as G, createBlock as V, createCommentVNode as S, withDirectives as Ae, createTextVNode as E, toDisplayString as K, unref as C, ref as k, createVNode as l, withCtx as u, onMounted as se, normalizeProps as fe, guardReactiveProps as ge, isVNode as ie, normalizeStyle as Pe, mergeModels as ve, useModel as _e, resolveDirective as be, resolveDynamicComponent as $, isRef as Qe, withModifiers as Ie, watch as Fe, shallowRef as Ke, onBeforeUnmount as Me, onUnmounted as qe, reactive as X, TransitionGroup as He, mergeProps as we, createSlots as ze } from "vue";
|
|
2
|
+
import { defineStore as Ne, storeToRefs as Ye } from "pinia";
|
|
3
|
+
import { ElNotification as Ge, ElMessage as Xe } from "element-plus";
|
|
4
|
+
import { VueDraggable as Je } from "vue-draggable-plus";
|
|
5
|
+
import { Toolbar as je, Editor as Ze } from "@wangeditor/editor-for-vue";
|
|
6
|
+
import { CircleClose as We } from "@element-plus/icons-vue";
|
|
7
|
+
import { TdsTable as ye, TdsForm as $e } from "topdatasec-ui";
|
|
8
|
+
const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), ee = (o) => JSON.parse(JSON.stringify(o)), et = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (o, t) => o[et(t)], tt = (o) => window.$http.request({
|
|
9
9
|
url: `${window.$reportURL}/tds/report/demo/get`,
|
|
10
10
|
method: "get",
|
|
11
11
|
params: o,
|
|
@@ -15,20 +15,20 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
15
15
|
method: "get",
|
|
16
16
|
params: o,
|
|
17
17
|
isError: !1
|
|
18
|
-
}),
|
|
18
|
+
}), ot = (o) => window.$http.request({
|
|
19
19
|
url: `${window.$reportURL}/tds/report/preview`,
|
|
20
20
|
method: "get",
|
|
21
21
|
params: o,
|
|
22
22
|
isError: !1
|
|
23
|
-
}),
|
|
23
|
+
}), lt = (o) => window.$http.request({
|
|
24
24
|
url: `${window.$reportURL}/tds/report/add`,
|
|
25
25
|
method: "post",
|
|
26
26
|
data: o
|
|
27
|
-
}),
|
|
27
|
+
}), nt = (o) => window.$http.request({
|
|
28
28
|
url: `${window.$reportURL}/tds/report/put`,
|
|
29
29
|
method: "put",
|
|
30
30
|
data: o
|
|
31
|
-
}),
|
|
31
|
+
}), at = (o) => window.$http.request({
|
|
32
32
|
url: `${window.$reportURL}/tds/report/get`,
|
|
33
33
|
method: "get",
|
|
34
34
|
params: o,
|
|
@@ -38,88 +38,88 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
38
38
|
method: "get",
|
|
39
39
|
params: o,
|
|
40
40
|
isError: !1
|
|
41
|
-
}),
|
|
41
|
+
}), rt = (o) => window.$http.request({
|
|
42
42
|
url: `${window.$reportURL}/tds/report/delete`,
|
|
43
43
|
method: "delete",
|
|
44
44
|
data: o
|
|
45
|
-
}),
|
|
45
|
+
}), At = (o) => window.$http.request({
|
|
46
46
|
url: `${window.$reportURL}/tds/report/item/list`,
|
|
47
47
|
method: "get",
|
|
48
48
|
params: o,
|
|
49
49
|
isError: !1
|
|
50
|
-
}),
|
|
50
|
+
}), st = (o) => window.$http.request({
|
|
51
51
|
url: `${window.$reportURL}/tds/report/item/delete`,
|
|
52
52
|
method: "delete",
|
|
53
53
|
data: o
|
|
54
|
-
}),
|
|
54
|
+
}), it = (o) => window.$http.request({
|
|
55
55
|
url: `${window.$reportURL}/tds/report/item/add`,
|
|
56
56
|
method: "post",
|
|
57
57
|
data: o
|
|
58
|
-
}),
|
|
58
|
+
}), ut = (o) => window.$http.request({
|
|
59
59
|
url: `${window.$reportURL}/tds/report/item/put`,
|
|
60
60
|
method: "put",
|
|
61
61
|
data: o
|
|
62
|
-
}),
|
|
62
|
+
}), pt = (o) => window.$http.request({
|
|
63
63
|
url: `${window.$reportURL}/tds/report/sub/get`,
|
|
64
64
|
method: "get",
|
|
65
65
|
params: o,
|
|
66
66
|
isError: !1
|
|
67
|
-
}),
|
|
67
|
+
}), dt = (o) => window.$http.request({
|
|
68
68
|
url: `${window.$reportURL}/tds/report/sub/add`,
|
|
69
69
|
method: "post",
|
|
70
70
|
data: o
|
|
71
|
-
}),
|
|
71
|
+
}), ct = (o) => window.$http.request({
|
|
72
72
|
url: `${window.$reportURL}/tds/report/sub/put`,
|
|
73
73
|
method: "put",
|
|
74
74
|
data: o
|
|
75
|
-
}),
|
|
75
|
+
}), mt = (o) => window.$http.request({
|
|
76
76
|
url: `${window.$reportURL}/tds/report/sub/delete`,
|
|
77
77
|
method: "delete",
|
|
78
78
|
data: o
|
|
79
|
-
}),
|
|
79
|
+
}), ft = (o) => window.$http.request({
|
|
80
80
|
url: `${window.$reportURL}/tds/report/sub/edit/state`,
|
|
81
81
|
method: "post",
|
|
82
82
|
data: o
|
|
83
|
-
}),
|
|
83
|
+
}), gt = (o) => window.$http.request({
|
|
84
84
|
url: `${window.$reportURL}/tds/report/all`,
|
|
85
85
|
method: "get",
|
|
86
86
|
params: o,
|
|
87
87
|
isError: !1
|
|
88
|
-
}),
|
|
88
|
+
}), vt = (o) => window.$http.request({
|
|
89
89
|
url: `${window.$reportURL}/tds/report/sub/get_format`,
|
|
90
90
|
method: "get",
|
|
91
91
|
params: o,
|
|
92
92
|
isError: !1
|
|
93
|
-
}),
|
|
93
|
+
}), _t = (o) => window.$http.request({
|
|
94
94
|
url: `${window.$reportURL}/tds/report/filter/get_select_data`,
|
|
95
95
|
method: "get",
|
|
96
96
|
params: o,
|
|
97
97
|
isError: !1
|
|
98
|
-
}),
|
|
98
|
+
}), bt = (o = {}) => window.$http.request({
|
|
99
99
|
url: `${window.$reportURL}/tds/report/build_in/get`,
|
|
100
100
|
method: "get",
|
|
101
101
|
params: o,
|
|
102
102
|
loading: !1,
|
|
103
103
|
isError: !1
|
|
104
|
-
}),
|
|
104
|
+
}), wt = (o = {}) => window.$http.request({
|
|
105
105
|
url: `${window.$reportURL}/tds/report/export/add`,
|
|
106
106
|
method: "get",
|
|
107
107
|
params: o,
|
|
108
108
|
loading: !1,
|
|
109
109
|
isError: !1
|
|
110
|
-
}),
|
|
110
|
+
}), yt = (o = {}) => window.$http.request({
|
|
111
111
|
url: `${window.$reportURL}/tds/report/export/get`,
|
|
112
112
|
method: "get",
|
|
113
113
|
params: o,
|
|
114
114
|
loading: !1,
|
|
115
115
|
isError: !1
|
|
116
|
-
}),
|
|
116
|
+
}), ht = (o = {}) => window.$http.request({
|
|
117
117
|
url: `${window.$reportURL}/tds/report/export/download`,
|
|
118
118
|
method: "get",
|
|
119
119
|
params: o,
|
|
120
120
|
loading: !1,
|
|
121
121
|
isError: !1
|
|
122
|
-
}),
|
|
122
|
+
}), Ct = (o = {}) => window.$http.request({
|
|
123
123
|
url: `${window.$reportURL}/tds/report/export/delete`,
|
|
124
124
|
method: "delete",
|
|
125
125
|
data: o
|
|
@@ -153,7 +153,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
153
153
|
"100, 161, 206",
|
|
154
154
|
"246, 175, 159",
|
|
155
155
|
"238, 97, 97"
|
|
156
|
-
],
|
|
156
|
+
], xt = (o, t, e = "", a = { name: "name", value: "value" }) => {
|
|
157
157
|
const r = [], n = [];
|
|
158
158
|
t.forEach((A) => {
|
|
159
159
|
r.push(A[a.name]), n.push(A[a.value]);
|
|
@@ -310,14 +310,14 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
310
310
|
}
|
|
311
311
|
]
|
|
312
312
|
};
|
|
313
|
-
},
|
|
313
|
+
}, Tt = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
|
|
314
314
|
let a = 0;
|
|
315
315
|
const r = t.map((n, A) => (a += Number(n[e.value]), {
|
|
316
316
|
name: n[e.name],
|
|
317
317
|
value: Number(n[e.value])
|
|
318
318
|
}));
|
|
319
319
|
o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
|
|
320
|
-
},
|
|
320
|
+
}, Bt = () => P.map((o) => `rgba(${o}, 1)`), ue = ({
|
|
321
321
|
data: o = [
|
|
322
322
|
{
|
|
323
323
|
name: "数据1",
|
|
@@ -340,15 +340,15 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
340
340
|
isTitle: A = !0
|
|
341
341
|
}) => {
|
|
342
342
|
const p = {
|
|
343
|
-
color:
|
|
343
|
+
color: Bt(),
|
|
344
344
|
toolbox: { show: !1 },
|
|
345
345
|
tooltip: {
|
|
346
346
|
trigger: "item",
|
|
347
347
|
show: !0,
|
|
348
348
|
formatter: (i) => {
|
|
349
|
-
const { name:
|
|
350
|
-
return `<div style="color: ${i.color}; font-size: 14px;">${
|
|
351
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${
|
|
349
|
+
const { name: m, value: d } = i;
|
|
350
|
+
return `<div style="color: ${i.color}; font-size: 14px;">${m} </div>
|
|
351
|
+
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${d}</span></div>`;
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
354
|
title: {
|
|
@@ -365,9 +365,9 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
365
365
|
show: a,
|
|
366
366
|
left: "70%",
|
|
367
367
|
formatter: (i) => {
|
|
368
|
-
var
|
|
369
|
-
const
|
|
370
|
-
return ` ${i} | ${
|
|
368
|
+
var d;
|
|
369
|
+
const m = (d = p.series[0]) == null ? void 0 : d.data.find((g) => g.name === i).value;
|
|
370
|
+
return ` ${i} | ${m}`;
|
|
371
371
|
},
|
|
372
372
|
textStyle: {
|
|
373
373
|
fontSize: Y,
|
|
@@ -479,7 +479,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
479
479
|
]
|
|
480
480
|
};
|
|
481
481
|
return p;
|
|
482
|
-
},
|
|
482
|
+
}, kt = (o, t, e = { name: "name", value: "value" }) => {
|
|
483
483
|
o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
|
|
484
484
|
o.series[r].data = t.map((n) => n[a.value]);
|
|
485
485
|
}) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
|
|
@@ -625,7 +625,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
625
625
|
{ data: [{ name: "默认数据", value: 311 }], label: "name2" },
|
|
626
626
|
{ data: [{ name: "默认数据", value: 42 }], label: "name3" },
|
|
627
627
|
{ data: [{ name: "默认数据", value: 32391 }], label: "name4" }
|
|
628
|
-
],
|
|
628
|
+
], Vt = [
|
|
629
629
|
{
|
|
630
630
|
data: 63,
|
|
631
631
|
label: "数据1"
|
|
@@ -638,7 +638,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
638
638
|
data: 43,
|
|
639
639
|
label: "数据3"
|
|
640
640
|
}
|
|
641
|
-
],
|
|
641
|
+
], Lt = [
|
|
642
642
|
{
|
|
643
643
|
type: "report-select",
|
|
644
644
|
label: "资产:",
|
|
@@ -707,7 +707,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
707
707
|
rp_item_uuid: "",
|
|
708
708
|
id: F()
|
|
709
709
|
}
|
|
710
|
-
],
|
|
710
|
+
], Et = [
|
|
711
711
|
{
|
|
712
712
|
type: "h1",
|
|
713
713
|
data: "报表名称",
|
|
@@ -779,7 +779,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
779
779
|
rp_item_uuid: "",
|
|
780
780
|
id: ""
|
|
781
781
|
}
|
|
782
|
-
],
|
|
782
|
+
], Ut = (o) => ({
|
|
783
783
|
bar: () => ({
|
|
784
784
|
type: "bar",
|
|
785
785
|
data: le,
|
|
@@ -800,7 +800,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
800
800
|
}),
|
|
801
801
|
pie: () => ({
|
|
802
802
|
type: "pie",
|
|
803
|
-
data:
|
|
803
|
+
data: Vt,
|
|
804
804
|
showColumn: [{ key: "label", value: "data" }],
|
|
805
805
|
name: "图表",
|
|
806
806
|
options: ue({ isLegend: !0 }),
|
|
@@ -865,7 +865,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
865
865
|
],
|
|
866
866
|
id: F()
|
|
867
867
|
})
|
|
868
|
-
})[o](),
|
|
868
|
+
})[o](), q = Ne("tds-report", {
|
|
869
869
|
state: () => ({
|
|
870
870
|
componentList: [],
|
|
871
871
|
activeComponents: {},
|
|
@@ -886,7 +886,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
886
886
|
},
|
|
887
887
|
async getReportDemo(o) {
|
|
888
888
|
let t = [];
|
|
889
|
-
o ? t = (await
|
|
889
|
+
o ? t = (await tt({ report_uuid: o })).data : t = { content: ee(Lt), range_time: 1 };
|
|
890
890
|
const e = [];
|
|
891
891
|
t.content.forEach((a) => {
|
|
892
892
|
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = F();
|
|
@@ -902,7 +902,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
}),
|
|
905
|
+
}), Rt = {
|
|
906
906
|
mounted(o) {
|
|
907
907
|
o.addEventListener("click", (t) => {
|
|
908
908
|
var a;
|
|
@@ -920,33 +920,33 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
},
|
|
923
|
+
}, St = { class: "catalogue" }, Ot = ["href", "title"], Pt = /* @__PURE__ */ L({
|
|
924
924
|
__name: "Catalogue",
|
|
925
925
|
props: {
|
|
926
926
|
data: { default: () => [] }
|
|
927
927
|
},
|
|
928
928
|
setup(o) {
|
|
929
|
-
const t = o, e =
|
|
929
|
+
const t = o, e = M(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
|
|
930
930
|
return (a, r) => {
|
|
931
931
|
const n = s("el-divider");
|
|
932
|
-
return
|
|
932
|
+
return c(), x("div", St, [
|
|
933
933
|
r[0] || (r[0] = T("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
|
|
934
|
-
(
|
|
934
|
+
(c(!0), x(O, null, I(e.value, (A) => (c(), x("div", {
|
|
935
935
|
class: G("level" + A.type),
|
|
936
936
|
key: A.value
|
|
937
937
|
}, [
|
|
938
|
-
A.type === "h2" ? (
|
|
938
|
+
A.type === "h2" ? (c(), V(n, {
|
|
939
939
|
key: 0,
|
|
940
940
|
style: { "margin-top": "10px", "margin-bottom": "10px" }
|
|
941
941
|
})) : S("", !0),
|
|
942
|
-
Ae((
|
|
942
|
+
Ae((c(), x("a", {
|
|
943
943
|
class: "el-anchor__link",
|
|
944
944
|
href: "#" + A.id,
|
|
945
945
|
title: A.data
|
|
946
946
|
}, [
|
|
947
|
-
E(
|
|
948
|
-
], 8,
|
|
949
|
-
[
|
|
947
|
+
E(K(A.data), 1)
|
|
948
|
+
], 8, Ot)), [
|
|
949
|
+
[C(Rt)]
|
|
950
950
|
])
|
|
951
951
|
], 2))), 128))
|
|
952
952
|
]);
|
|
@@ -958,51 +958,51 @@ const j = (o, t) => {
|
|
|
958
958
|
for (const [a, r] of t)
|
|
959
959
|
e[a] = r;
|
|
960
960
|
return e;
|
|
961
|
-
},
|
|
961
|
+
}, Qt = /* @__PURE__ */ j(Pt, [["__scopeId", "data-v-00cc9080"]]), It = {
|
|
962
962
|
class: "chart-components"
|
|
963
|
-
}, Be = /* @__PURE__ */
|
|
963
|
+
}, Be = /* @__PURE__ */ L({
|
|
964
964
|
__name: "Bar",
|
|
965
965
|
props: {
|
|
966
966
|
value: {}
|
|
967
967
|
},
|
|
968
968
|
setup(o) {
|
|
969
|
-
const t = o, e =
|
|
969
|
+
const t = o, e = M(() => t.value.options);
|
|
970
970
|
return k(!1), (a, r) => {
|
|
971
971
|
const n = s("TdsChart");
|
|
972
|
-
return
|
|
972
|
+
return c(), x("div", It, [l(n, {
|
|
973
973
|
option: e.value
|
|
974
974
|
}, null, 8, ["option"])]);
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
}),
|
|
977
|
+
}), Ft = { class: "chart-components" }, ke = /* @__PURE__ */ L({
|
|
978
978
|
__name: "Line",
|
|
979
979
|
props: {
|
|
980
980
|
value: {}
|
|
981
981
|
},
|
|
982
982
|
setup(o) {
|
|
983
|
-
const t = o, e =
|
|
983
|
+
const t = o, e = M(() => t.value.options);
|
|
984
984
|
return (a, r) => {
|
|
985
985
|
const n = s("TdsChart");
|
|
986
|
-
return
|
|
986
|
+
return c(), x("div", Ft, [
|
|
987
987
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
988
988
|
]);
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
|
-
}),
|
|
991
|
+
}), Kt = { class: "chart-components" }, De = /* @__PURE__ */ L({
|
|
992
992
|
__name: "Pie",
|
|
993
993
|
props: {
|
|
994
994
|
value: {}
|
|
995
995
|
},
|
|
996
996
|
setup(o) {
|
|
997
|
-
const t = o, e =
|
|
997
|
+
const t = o, e = M(() => t.value.options);
|
|
998
998
|
return (a, r) => {
|
|
999
999
|
const n = s("TdsChart");
|
|
1000
|
-
return
|
|
1000
|
+
return c(), x("div", Kt, [
|
|
1001
1001
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
1002
1002
|
]);
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
}),
|
|
1005
|
+
}), Mt = { key: 0 }, ne = /* @__PURE__ */ L({
|
|
1006
1006
|
__name: "ReportSelect",
|
|
1007
1007
|
props: {
|
|
1008
1008
|
value: {}
|
|
@@ -1013,21 +1013,21 @@ const j = (o, t) => {
|
|
|
1013
1013
|
e("change", A);
|
|
1014
1014
|
}, n = k(o.value);
|
|
1015
1015
|
return (A, p) => {
|
|
1016
|
-
const i = s("el-option"),
|
|
1017
|
-
return n.value.data ? (
|
|
1018
|
-
l(
|
|
1016
|
+
const i = s("el-option"), m = s("el-select");
|
|
1017
|
+
return n.value.data ? (c(), x("div", Mt, [
|
|
1018
|
+
l(m, {
|
|
1019
1019
|
modelValue: n.value.value,
|
|
1020
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1020
|
+
"onUpdate:modelValue": p[0] || (p[0] = (d) => n.value.value = d),
|
|
1021
1021
|
multiple: "",
|
|
1022
1022
|
style: { width: "100%" },
|
|
1023
1023
|
onChange: a,
|
|
1024
1024
|
placeholder: "全部"
|
|
1025
1025
|
}, {
|
|
1026
1026
|
default: u(() => [
|
|
1027
|
-
(
|
|
1028
|
-
key:
|
|
1029
|
-
label:
|
|
1030
|
-
value:
|
|
1027
|
+
(c(!0), x(O, null, I(n.value.data, (d) => (c(), V(i, {
|
|
1028
|
+
key: d.data,
|
|
1029
|
+
label: d.label,
|
|
1030
|
+
value: d.data
|
|
1031
1031
|
}, null, 8, ["label", "value"]))), 128))
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 1
|
|
@@ -1035,7 +1035,7 @@ const j = (o, t) => {
|
|
|
1035
1035
|
])) : S("", !0);
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
}), ae = /* @__PURE__ */
|
|
1038
|
+
}), ae = /* @__PURE__ */ L({
|
|
1039
1039
|
__name: "RangeTime",
|
|
1040
1040
|
props: {
|
|
1041
1041
|
value: {}
|
|
@@ -1049,11 +1049,11 @@ const j = (o, t) => {
|
|
|
1049
1049
|
return se(() => {
|
|
1050
1050
|
n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
|
|
1051
1051
|
}), (p, i) => {
|
|
1052
|
-
const
|
|
1053
|
-
return
|
|
1054
|
-
l(
|
|
1052
|
+
const m = s("el-date-picker");
|
|
1053
|
+
return c(), x("div", null, [
|
|
1054
|
+
l(m, {
|
|
1055
1055
|
modelValue: n.value,
|
|
1056
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1056
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => n.value = d),
|
|
1057
1057
|
type: "datetimerange",
|
|
1058
1058
|
placeholder: "Pick a Date",
|
|
1059
1059
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1065,10 +1065,10 @@ const j = (o, t) => {
|
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
});
|
|
1068
|
-
function
|
|
1068
|
+
function qt(o) {
|
|
1069
1069
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
1070
1070
|
}
|
|
1071
|
-
const Ve = /* @__PURE__ */
|
|
1071
|
+
const Ve = /* @__PURE__ */ L({
|
|
1072
1072
|
__name: "ReportTable",
|
|
1073
1073
|
props: {
|
|
1074
1074
|
value: {}
|
|
@@ -1081,16 +1081,16 @@ const Ve = /* @__PURE__ */ V({
|
|
|
1081
1081
|
border: t.value.options.border,
|
|
1082
1082
|
"show-header": !!t.value.options.showHeader,
|
|
1083
1083
|
stripe: t.value.options.stripe
|
|
1084
|
-
},
|
|
1084
|
+
}, qt(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
|
|
1085
1085
|
prop: n.key,
|
|
1086
1086
|
label: n.name
|
|
1087
1087
|
}, null) : null)) ? r : {
|
|
1088
1088
|
default: () => [r]
|
|
1089
1089
|
});
|
|
1090
1090
|
};
|
|
1091
|
-
return (a, r) => (
|
|
1091
|
+
return (a, r) => (c(), x("div", null, [l(e, fe(ge(a.value)), null, 16)]));
|
|
1092
1092
|
}
|
|
1093
|
-
}), re = /* @__PURE__ */
|
|
1093
|
+
}), re = /* @__PURE__ */ L({
|
|
1094
1094
|
__name: "ReportText",
|
|
1095
1095
|
props: {
|
|
1096
1096
|
value: {}
|
|
@@ -1107,17 +1107,17 @@ const Ve = /* @__PURE__ */ V({
|
|
|
1107
1107
|
"text-align": a.textAlign
|
|
1108
1108
|
};
|
|
1109
1109
|
};
|
|
1110
|
-
return (a, r) => (
|
|
1110
|
+
return (a, r) => (c(), x("div", {
|
|
1111
1111
|
style: Pe(e())
|
|
1112
|
-
},
|
|
1112
|
+
}, K(a.value.data), 5));
|
|
1113
1113
|
}
|
|
1114
|
-
}),
|
|
1114
|
+
}), Ht = { class: "chart-components" }, Le = /* @__PURE__ */ L({
|
|
1115
1115
|
__name: "ReportChart",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
value: {}
|
|
1118
1118
|
},
|
|
1119
1119
|
setup(o) {
|
|
1120
|
-
const t = o, e =
|
|
1120
|
+
const t = o, e = M(() => t.value), a = M(() => {
|
|
1121
1121
|
if (e.value.type === "bar") {
|
|
1122
1122
|
e.value.options.series = oe([]).series;
|
|
1123
1123
|
const r = [];
|
|
@@ -1127,12 +1127,12 @@ const Ve = /* @__PURE__ */ V({
|
|
|
1127
1127
|
name: A.label,
|
|
1128
1128
|
value: A.data[0].value
|
|
1129
1129
|
});
|
|
1130
|
-
}),
|
|
1130
|
+
}), xt(e.value.options, r, n);
|
|
1131
1131
|
}
|
|
1132
|
-
if (e.value.type === "pie" && (e.value.options = ue({ isLegend: !0 }),
|
|
1132
|
+
if (e.value.type === "pie" && (e.value.options.series = ue({ isLegend: !0 }).series, Tt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
|
|
1133
1133
|
let r = [];
|
|
1134
1134
|
e.value.data.forEach((p) => {
|
|
1135
|
-
r = p.data.map((i,
|
|
1135
|
+
r = p.data.map((i, m) => ({ name: i.name, value: "value" + m }));
|
|
1136
1136
|
});
|
|
1137
1137
|
const n = {
|
|
1138
1138
|
name: "name",
|
|
@@ -1141,26 +1141,26 @@ const Ve = /* @__PURE__ */ V({
|
|
|
1141
1141
|
const i = {
|
|
1142
1142
|
name: p.label
|
|
1143
1143
|
};
|
|
1144
|
-
return r.forEach((
|
|
1145
|
-
i[
|
|
1144
|
+
return r.forEach((m, d) => {
|
|
1145
|
+
i[m.value] = p.data[d].value;
|
|
1146
1146
|
}), i;
|
|
1147
1147
|
});
|
|
1148
|
-
console.log(te([], n), "chartsLine([], params)"), e.value.options.series = te([], n).series,
|
|
1148
|
+
console.log(te([], n), "chartsLine([], params)"), e.value.options.series = te([], n).series, kt(e.value.options, A, n);
|
|
1149
1149
|
}
|
|
1150
1150
|
return e.value.options;
|
|
1151
1151
|
});
|
|
1152
1152
|
return (r, n) => {
|
|
1153
1153
|
const A = s("TdsChart");
|
|
1154
|
-
return
|
|
1154
|
+
return c(), x("div", Ht, [
|
|
1155
1155
|
l(A, { option: a.value }, null, 8, ["option"])
|
|
1156
1156
|
]);
|
|
1157
1157
|
};
|
|
1158
1158
|
}
|
|
1159
1159
|
});
|
|
1160
|
-
function
|
|
1160
|
+
function zt(o) {
|
|
1161
1161
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
1162
1162
|
}
|
|
1163
|
-
const Ee = /* @__PURE__ */
|
|
1163
|
+
const Ee = /* @__PURE__ */ L({
|
|
1164
1164
|
__name: "ReportDescribe",
|
|
1165
1165
|
props: {
|
|
1166
1166
|
value: {}
|
|
@@ -1173,7 +1173,7 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1173
1173
|
border: t.value.options.border,
|
|
1174
1174
|
column: t.value.options.column,
|
|
1175
1175
|
direction: t.value.options.direction
|
|
1176
|
-
},
|
|
1176
|
+
}, zt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
|
|
1177
1177
|
label: n.name
|
|
1178
1178
|
}, {
|
|
1179
1179
|
default: () => [l("div", {
|
|
@@ -1183,23 +1183,23 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1183
1183
|
default: () => [r]
|
|
1184
1184
|
});
|
|
1185
1185
|
};
|
|
1186
|
-
return (a, r) => (
|
|
1186
|
+
return (a, r) => (c(), x("div", null, [l(e, fe(ge(a.value)), null, 16)]));
|
|
1187
1187
|
}
|
|
1188
|
-
}),
|
|
1188
|
+
}), Nt = {
|
|
1189
1189
|
class: "editor-box"
|
|
1190
|
-
},
|
|
1190
|
+
}, Yt = {
|
|
1191
1191
|
class: "editor",
|
|
1192
1192
|
id: "editor",
|
|
1193
1193
|
style: {
|
|
1194
1194
|
width: "100%"
|
|
1195
1195
|
}
|
|
1196
|
-
}, Yt = {
|
|
1197
|
-
class: "editor-content flex flex-start"
|
|
1198
1196
|
}, Gt = {
|
|
1197
|
+
class: "editor-content flex flex-start"
|
|
1198
|
+
}, Xt = {
|
|
1199
1199
|
style: {
|
|
1200
1200
|
"margin-left": "auto"
|
|
1201
1201
|
}
|
|
1202
|
-
},
|
|
1202
|
+
}, Jt = ["id"], jt = ["innerHTML"], Zt = /* @__PURE__ */ L({
|
|
1203
1203
|
__name: "index",
|
|
1204
1204
|
props: /* @__PURE__ */ ve({
|
|
1205
1205
|
reportId: {
|
|
@@ -1214,53 +1214,53 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1214
1214
|
setup(o) {
|
|
1215
1215
|
const t = k(!1), e = {
|
|
1216
1216
|
Bar: Be,
|
|
1217
|
-
Line:
|
|
1218
|
-
Pie:
|
|
1217
|
+
Line: ke,
|
|
1218
|
+
Pie: De,
|
|
1219
1219
|
ReportSelect: ne,
|
|
1220
1220
|
RangeTime: ae,
|
|
1221
1221
|
ReportTable: Ve,
|
|
1222
1222
|
ReportText: re,
|
|
1223
1223
|
ReportChart: Le,
|
|
1224
1224
|
ReportDescribe: Ee
|
|
1225
|
-
}, a =
|
|
1226
|
-
|
|
1227
|
-
function
|
|
1225
|
+
}, a = q(), r = o, n = _e(o, "modelValue"), A = k([]), p = k([]), i = k([]), m = /* @__PURE__ */ new Date(), d = new Date(m);
|
|
1226
|
+
d.setMonth(m.getMonth() - 1);
|
|
1227
|
+
function g(B) {
|
|
1228
1228
|
return B < 10 ? "0" + B : B;
|
|
1229
1229
|
}
|
|
1230
1230
|
function v(B) {
|
|
1231
|
-
return B.getFullYear() + "-" +
|
|
1231
|
+
return B.getFullYear() + "-" + g(B.getMonth() + 1) + "-" + g(B.getDate()) + " " + g(B.getHours()) + ":" + g(B.getMinutes()) + ":" + g(B.getSeconds());
|
|
1232
1232
|
}
|
|
1233
|
-
const
|
|
1234
|
-
function
|
|
1233
|
+
const y = k(v(d)), h = k(v(m));
|
|
1234
|
+
function b() {
|
|
1235
1235
|
n.value = "table";
|
|
1236
1236
|
}
|
|
1237
|
-
async function
|
|
1237
|
+
async function w(B) {
|
|
1238
1238
|
const U = {
|
|
1239
1239
|
export_format: B,
|
|
1240
1240
|
select_data: i.value.join(","),
|
|
1241
1241
|
report_uuid: r.reportId,
|
|
1242
|
-
start_time:
|
|
1242
|
+
start_time: y.value,
|
|
1243
1243
|
end_time: h.value
|
|
1244
1244
|
};
|
|
1245
|
-
await
|
|
1245
|
+
await wt(U), Ge({
|
|
1246
1246
|
title: "提示",
|
|
1247
1247
|
message: "正在生成导出中,请稍等...",
|
|
1248
1248
|
type: "info"
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1251
|
+
const f = (B) => {
|
|
1252
1252
|
i.value = B, Q();
|
|
1253
|
-
},
|
|
1254
|
-
B && B.length > 0 && (
|
|
1253
|
+
}, _ = (B) => {
|
|
1254
|
+
B && B.length > 0 && (y.value = B[0], h.value = B[1]), Q();
|
|
1255
1255
|
}, Q = async () => {
|
|
1256
1256
|
try {
|
|
1257
1257
|
t.value = !0;
|
|
1258
1258
|
const B = {
|
|
1259
1259
|
report_uuid: r.reportId,
|
|
1260
|
-
start_time:
|
|
1260
|
+
start_time: y.value,
|
|
1261
1261
|
end_time: h.value,
|
|
1262
1262
|
select_data: i.value.join(",")
|
|
1263
|
-
}, U = await
|
|
1263
|
+
}, U = await ot(B), N = [];
|
|
1264
1264
|
U.data.forEach((J) => {
|
|
1265
1265
|
(J.type === "report-select" || J.type === "range-time") && N.push(J);
|
|
1266
1266
|
}), A.value = N, U.data.splice(0, A.value.length), p.value = U.data, t.value = !1;
|
|
@@ -1269,31 +1269,31 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
1271
|
Q();
|
|
1272
|
-
const D = () => l("div", null, [E("未找到对应组件")]), W = (B) => B === "h2" || B === "h3" || B === "h4" ?
|
|
1272
|
+
const D = () => l("div", null, [E("未找到对应组件")]), W = (B) => B === "h2" || B === "h3" || B === "h4" ? H(e, "ReportText") : B === "bar" || B === "pie" || B === "line" ? H(e, "ReportChart") : B ? H(e, B) : l(D, null, null);
|
|
1273
1273
|
return (B, U) => {
|
|
1274
1274
|
const N = s("el-button"), J = s("el-card"), Oe = be("loading");
|
|
1275
|
-
return Ae((
|
|
1275
|
+
return Ae((c(), V(J, {
|
|
1276
1276
|
class: "editor view",
|
|
1277
1277
|
"element-loading-text": "加载中..."
|
|
1278
1278
|
}, {
|
|
1279
|
-
default: u(() => [T("div",
|
|
1279
|
+
default: u(() => [T("div", Nt, [l(Qt, {
|
|
1280
1280
|
data: p.value
|
|
1281
|
-
}, null, 8, ["data"]), T("div",
|
|
1281
|
+
}, null, 8, ["data"]), T("div", Yt, [T("div", Gt, [(c(!0), x(O, null, I(A.value, (R) => (c(), x("div", {
|
|
1282
1282
|
class: "item-input",
|
|
1283
1283
|
key: R.id
|
|
1284
|
-
}, [R.type === "report-select" ? (
|
|
1284
|
+
}, [R.type === "report-select" ? (c(), V(ne, {
|
|
1285
1285
|
key: 0,
|
|
1286
|
-
onChange:
|
|
1286
|
+
onChange: f,
|
|
1287
1287
|
value: R
|
|
1288
|
-
}, null, 8, ["value"])) : S("", !0), R.type === "range-time" &&
|
|
1288
|
+
}, null, 8, ["value"])) : S("", !0), R.type === "range-time" && C(a).filterForm.range_time ? (c(), V(ae, {
|
|
1289
1289
|
key: 1,
|
|
1290
|
-
onChange:
|
|
1290
|
+
onChange: _,
|
|
1291
1291
|
value: R
|
|
1292
|
-
}, null, 8, ["value"])) : S("", !0)]))), 128)), T("div",
|
|
1292
|
+
}, null, 8, ["value"])) : S("", !0)]))), 128)), T("div", Xt, [U[5] || (U[5] = T("span", {
|
|
1293
1293
|
class: "font-export"
|
|
1294
1294
|
}, "导出为:", -1)), l(N, {
|
|
1295
1295
|
link: "",
|
|
1296
|
-
onClick: U[0] || (U[0] = (R) =>
|
|
1296
|
+
onClick: U[0] || (U[0] = (R) => w(1)),
|
|
1297
1297
|
title: "PDF",
|
|
1298
1298
|
type: "primary",
|
|
1299
1299
|
class: "custom-btn"
|
|
@@ -1309,7 +1309,7 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1309
1309
|
_: 1
|
|
1310
1310
|
}), l(N, {
|
|
1311
1311
|
link: "",
|
|
1312
|
-
onClick: U[1] || (U[1] = (R) =>
|
|
1312
|
+
onClick: U[1] || (U[1] = (R) => w(3)),
|
|
1313
1313
|
title: "WORD",
|
|
1314
1314
|
type: "primary",
|
|
1315
1315
|
class: "custom-btn",
|
|
@@ -1328,7 +1328,7 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1328
1328
|
_: 1
|
|
1329
1329
|
}), l(N, {
|
|
1330
1330
|
plain: "",
|
|
1331
|
-
onClick:
|
|
1331
|
+
onClick: b,
|
|
1332
1332
|
type: "primary",
|
|
1333
1333
|
class: "custom-btn exit-preview",
|
|
1334
1334
|
style: {
|
|
@@ -1337,37 +1337,37 @@ const Ee = /* @__PURE__ */ V({
|
|
|
1337
1337
|
}, {
|
|
1338
1338
|
default: u(() => U[4] || (U[4] = [E("退出预览")])),
|
|
1339
1339
|
_: 1
|
|
1340
|
-
})])]), (
|
|
1340
|
+
})])]), (c(!0), x(O, null, I(p.value, (R) => (c(), x("div", {
|
|
1341
1341
|
key: R.id,
|
|
1342
1342
|
class: G(["editor-content", ["editor" + R.type]]),
|
|
1343
1343
|
id: R.id
|
|
1344
|
-
}, [R.type !== "p" ? (
|
|
1344
|
+
}, [R.type !== "p" ? (c(), V($(W(R.type)), {
|
|
1345
1345
|
key: 0,
|
|
1346
1346
|
class: G(["editor" + R.type]),
|
|
1347
1347
|
value: R
|
|
1348
1348
|
}, {
|
|
1349
|
-
default: u(() => [E(
|
|
1349
|
+
default: u(() => [E(K(R.data), 1)]),
|
|
1350
1350
|
_: 2
|
|
1351
|
-
}, 1032, ["class", "value"])) : (
|
|
1351
|
+
}, 1032, ["class", "value"])) : (c(), x("p", {
|
|
1352
1352
|
key: 1,
|
|
1353
1353
|
innerHTML: R.data
|
|
1354
|
-
}, null, 8,
|
|
1354
|
+
}, null, 8, jt))], 10, Jt))), 128))])])]),
|
|
1355
1355
|
_: 1
|
|
1356
1356
|
})), [[Oe, t.value]]);
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
|
-
const Ue = /* @__PURE__ */ j(
|
|
1360
|
+
const Ue = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
1361
1361
|
class: "editor"
|
|
1362
|
-
},
|
|
1362
|
+
}, $t = {
|
|
1363
1363
|
class: "editor-content edit"
|
|
1364
|
-
},
|
|
1364
|
+
}, eo = ["onClick"], to = ["onClick"], oo = ["innerHTML", "draggable"], lo = /* @__PURE__ */ L({
|
|
1365
1365
|
__name: "Editor",
|
|
1366
1366
|
setup(o) {
|
|
1367
1367
|
const t = {
|
|
1368
1368
|
Bar: Be,
|
|
1369
|
-
Line:
|
|
1370
|
-
Pie:
|
|
1369
|
+
Line: ke,
|
|
1370
|
+
Pie: De,
|
|
1371
1371
|
ReportSelect: ne,
|
|
1372
1372
|
RangeTime: ae,
|
|
1373
1373
|
ReportTable: Ve,
|
|
@@ -1379,55 +1379,55 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1379
1379
|
activeComponents: a,
|
|
1380
1380
|
notDraggableList: r,
|
|
1381
1381
|
titleComponent: n
|
|
1382
|
-
} =
|
|
1383
|
-
e.value.forEach((
|
|
1384
|
-
|
|
1382
|
+
} = Ye(q()), A = q(), p = (w) => {
|
|
1383
|
+
e.value.forEach((f, _) => {
|
|
1384
|
+
f.id === w && (e.value.splice(_, 1), A.activeComponents = []);
|
|
1385
1385
|
});
|
|
1386
|
-
}, i = (
|
|
1387
|
-
A.setActiveComponents(
|
|
1388
|
-
},
|
|
1389
|
-
console.log(
|
|
1390
|
-
}, v = k(!1),
|
|
1386
|
+
}, i = (w) => {
|
|
1387
|
+
A.setActiveComponents(w);
|
|
1388
|
+
}, m = () => l("div", null, [E("未找到对应组件")]), d = (w) => w === "h2" || w === "h3" || w === "h4" ? H(t, "ReportText") : w === "bar" || w === "pie" || w === "line" ? H(t, "ReportChart") : w ? H(t, w) : l(m, null, null), g = (w) => {
|
|
1389
|
+
console.log(w, "evt");
|
|
1390
|
+
}, v = k(!1), y = () => {
|
|
1391
1391
|
v.value = !0;
|
|
1392
|
-
}, h = (
|
|
1393
|
-
|
|
1394
|
-
},
|
|
1395
|
-
return (
|
|
1396
|
-
const
|
|
1397
|
-
return
|
|
1392
|
+
}, h = (w) => {
|
|
1393
|
+
w.newIndex !== 0 && (console.log(w), v.value = !1);
|
|
1394
|
+
}, b = k();
|
|
1395
|
+
return (w, f) => {
|
|
1396
|
+
const _ = s("CircleClose"), Q = s("el-icon");
|
|
1397
|
+
return c(), x("div", Wt, [T("div", {
|
|
1398
1398
|
class: G(["editor-content edit flex flex-start", [{
|
|
1399
|
-
active:
|
|
1399
|
+
active: C(a).id === "filter"
|
|
1400
1400
|
}]]),
|
|
1401
|
-
onClick:
|
|
1401
|
+
onClick: f[0] || (f[0] = (D) => i({
|
|
1402
1402
|
id: "filter",
|
|
1403
1403
|
type: "filter"
|
|
1404
1404
|
}))
|
|
1405
|
-
}, [(
|
|
1405
|
+
}, [(c(!0), x(O, null, I(C(r), (D) => (c(), x("div", {
|
|
1406
1406
|
class: "item-input",
|
|
1407
1407
|
key: D.id
|
|
1408
|
-
}, [D.type === "report-select" || D.type === "range-time" &&
|
|
1408
|
+
}, [D.type === "report-select" || D.type === "range-time" && C(A).filterForm.range_time ? (c(), V($(C(H)(t, D.type)), {
|
|
1409
1409
|
key: 0,
|
|
1410
1410
|
value: D
|
|
1411
1411
|
}, {
|
|
1412
|
-
default: u(() => [E(
|
|
1412
|
+
default: u(() => [E(K(D.data), 1)]),
|
|
1413
1413
|
_: 2
|
|
1414
|
-
}, 1032, ["value"])) : S("", !0)]))), 128))], 2), T("div",
|
|
1415
|
-
value:
|
|
1416
|
-
onClick:
|
|
1417
|
-
}, null, 8, ["value"])]), l(
|
|
1414
|
+
}, 1032, ["value"])) : S("", !0)]))), 128))], 2), T("div", $t, [l(re, {
|
|
1415
|
+
value: C(n),
|
|
1416
|
+
onClick: f[1] || (f[1] = (D) => i(C(n)))
|
|
1417
|
+
}, null, 8, ["value"])]), l(C(Je), {
|
|
1418
1418
|
ref_key: "el",
|
|
1419
|
-
ref:
|
|
1420
|
-
modelValue:
|
|
1421
|
-
"onUpdate:modelValue":
|
|
1422
|
-
"on-change":
|
|
1419
|
+
ref: b,
|
|
1420
|
+
modelValue: C(e),
|
|
1421
|
+
"onUpdate:modelValue": f[2] || (f[2] = (D) => Qe(e) ? e.value = D : null),
|
|
1422
|
+
"on-change": g,
|
|
1423
1423
|
animation: 150,
|
|
1424
|
-
onStart:
|
|
1424
|
+
onStart: y,
|
|
1425
1425
|
onEnd: h
|
|
1426
1426
|
}, {
|
|
1427
|
-
default: u(() => [(
|
|
1427
|
+
default: u(() => [(c(!0), x(O, null, I(C(e), (D) => (c(), x("div", {
|
|
1428
1428
|
key: D.id,
|
|
1429
1429
|
class: G(["editor-content edit", ["editor" + D.type, {
|
|
1430
|
-
active: D.id ===
|
|
1430
|
+
active: D.id === C(a).id
|
|
1431
1431
|
}]]),
|
|
1432
1432
|
onClick: (W) => i(D)
|
|
1433
1433
|
}, [T("i", {
|
|
@@ -1439,42 +1439,42 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1439
1439
|
size: "16px",
|
|
1440
1440
|
color: "red"
|
|
1441
1441
|
}, {
|
|
1442
|
-
default: u(() => [l(
|
|
1442
|
+
default: u(() => [l(_)]),
|
|
1443
1443
|
_: 1
|
|
1444
|
-
})], 8,
|
|
1444
|
+
})], 8, to), D.type !== "p" ? (c(), V($(d(D.type)), {
|
|
1445
1445
|
key: 0,
|
|
1446
1446
|
class: G(["editor" + D.type]),
|
|
1447
1447
|
value: D,
|
|
1448
1448
|
draggable: v.value
|
|
1449
1449
|
}, {
|
|
1450
|
-
default: u(() => [E(
|
|
1450
|
+
default: u(() => [E(K(D.data), 1)]),
|
|
1451
1451
|
_: 2
|
|
1452
|
-
}, 1032, ["class", "value", "draggable"])) : (
|
|
1452
|
+
}, 1032, ["class", "value", "draggable"])) : (c(), x("p", {
|
|
1453
1453
|
key: 1,
|
|
1454
1454
|
innerHTML: D.data,
|
|
1455
1455
|
draggable: v.value
|
|
1456
|
-
}, null, 8,
|
|
1456
|
+
}, null, 8, oo))], 10, eo))), 128))]),
|
|
1457
1457
|
_: 1
|
|
1458
1458
|
}, 8, ["modelValue"])]);
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
-
}),
|
|
1461
|
+
}), no = { class: "label" }, ao = { class: "flex item-switch" }, ro = { class: "flex item-switch" }, Ao = { class: "flex item-switch" }, Re = /* @__PURE__ */ L({
|
|
1462
1462
|
__name: "SettingTable",
|
|
1463
1463
|
setup(o) {
|
|
1464
|
-
const t =
|
|
1464
|
+
const t = q(), e = M(() => t.getActiveComponents);
|
|
1465
1465
|
return (a, r) => {
|
|
1466
1466
|
const n = s("el-switch"), A = s("el-form-item"), p = s("el-divider");
|
|
1467
|
-
return
|
|
1467
|
+
return c(), x("div", null, [
|
|
1468
1468
|
l(A, { label: "控制列" }, {
|
|
1469
1469
|
default: u(() => [
|
|
1470
|
-
(
|
|
1470
|
+
(c(!0), x(O, null, I(e.value.showColumn, (i, m) => (c(), x("p", {
|
|
1471
1471
|
class: "flex item-switch",
|
|
1472
|
-
key:
|
|
1472
|
+
key: m
|
|
1473
1473
|
}, [
|
|
1474
|
-
T("span",
|
|
1474
|
+
T("span", no, K(i.name), 1),
|
|
1475
1475
|
l(n, {
|
|
1476
1476
|
modelValue: e.value.options.showColumn[i.key],
|
|
1477
|
-
"onUpdate:modelValue": (
|
|
1477
|
+
"onUpdate:modelValue": (d) => e.value.options.showColumn[i.key] = d
|
|
1478
1478
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1479
1479
|
]))), 128))
|
|
1480
1480
|
]),
|
|
@@ -1483,21 +1483,21 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1483
1483
|
l(p),
|
|
1484
1484
|
l(A, { label: "表格样式" }, {
|
|
1485
1485
|
default: u(() => [
|
|
1486
|
-
T("p",
|
|
1486
|
+
T("p", ao, [
|
|
1487
1487
|
r[3] || (r[3] = T("span", { class: "label" }, "斑马纹", -1)),
|
|
1488
1488
|
l(n, {
|
|
1489
1489
|
modelValue: e.value.options.stripe,
|
|
1490
1490
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
|
|
1491
1491
|
}, null, 8, ["modelValue"])
|
|
1492
1492
|
]),
|
|
1493
|
-
T("p",
|
|
1493
|
+
T("p", ro, [
|
|
1494
1494
|
r[4] || (r[4] = T("span", { class: "label" }, "边框", -1)),
|
|
1495
1495
|
l(n, {
|
|
1496
1496
|
modelValue: e.value.options.border,
|
|
1497
1497
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
|
|
1498
1498
|
}, null, 8, ["modelValue"])
|
|
1499
1499
|
]),
|
|
1500
|
-
T("p",
|
|
1500
|
+
T("p", Ao, [
|
|
1501
1501
|
r[5] || (r[5] = T("span", { class: "label" }, "表头", -1)),
|
|
1502
1502
|
l(n, {
|
|
1503
1503
|
modelValue: e.value.options.showHeader,
|
|
@@ -1510,82 +1510,82 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1510
1510
|
]);
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
|
-
}),
|
|
1513
|
+
}), so = { key: 0 }, io = /* @__PURE__ */ L({
|
|
1514
1514
|
__name: "ChartsUniConfig",
|
|
1515
1515
|
setup(o) {
|
|
1516
|
-
const t =
|
|
1516
|
+
const t = q(), e = M(() => t.activeComponents);
|
|
1517
1517
|
function a(r) {
|
|
1518
1518
|
r ? (e.value.options.series[0].radius = ["10%", "65%"], e.value.options.graphic[0].invisible = !0, e.value.options.graphic[1].invisible = !0) : (e.value.options.series[0].radius = ["45%", "70%"], e.value.options.graphic[0].invisible = !1, e.value.options.graphic[1].invisible = !1);
|
|
1519
1519
|
}
|
|
1520
1520
|
return k("rgb(46, 145, 255)"), (r, n) => {
|
|
1521
|
-
const A = s("el-input"), p = s("el-form-item"), i = s("el-switch"),
|
|
1522
|
-
return e.value.options.title ? (
|
|
1521
|
+
const A = s("el-input"), p = s("el-form-item"), i = s("el-switch"), m = s("el-col"), d = s("el-color-picker"), g = s("el-input-number"), v = s("el-row"), y = s("el-collapse-item"), h = s("el-collapse");
|
|
1522
|
+
return e.value.options.title ? (c(), x("div", so, [
|
|
1523
1523
|
l(p, { label: "标题" }, {
|
|
1524
1524
|
default: u(() => [
|
|
1525
1525
|
l(A, {
|
|
1526
1526
|
modelValue: e.value.options.title.text,
|
|
1527
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1527
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e.value.options.title.text = b)
|
|
1528
1528
|
}, null, 8, ["modelValue"])
|
|
1529
1529
|
]),
|
|
1530
1530
|
_: 1
|
|
1531
1531
|
}),
|
|
1532
1532
|
l(h, null, {
|
|
1533
1533
|
default: u(() => [
|
|
1534
|
-
l(
|
|
1534
|
+
l(y, {
|
|
1535
1535
|
title: "标题配置",
|
|
1536
1536
|
name: "1"
|
|
1537
1537
|
}, {
|
|
1538
1538
|
default: u(() => [
|
|
1539
1539
|
l(v, { class: "w-100%" }, {
|
|
1540
1540
|
default: u(() => [
|
|
1541
|
-
l(
|
|
1541
|
+
l(m, { span: 24 }, {
|
|
1542
1542
|
default: u(() => [
|
|
1543
1543
|
n[8] || (n[8] = T("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1544
1544
|
l(i, {
|
|
1545
1545
|
modelValue: e.value.options.title.show,
|
|
1546
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1546
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => e.value.options.title.show = b)
|
|
1547
1547
|
}, null, 8, ["modelValue"])
|
|
1548
1548
|
]),
|
|
1549
1549
|
_: 1
|
|
1550
1550
|
}),
|
|
1551
|
-
l(
|
|
1551
|
+
l(m, { span: 12 }, {
|
|
1552
1552
|
default: u(() => [
|
|
1553
|
-
l(
|
|
1553
|
+
l(d, {
|
|
1554
1554
|
modelValue: e.value.options.title.textStyle.color,
|
|
1555
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1555
|
+
"onUpdate:modelValue": n[2] || (n[2] = (b) => e.value.options.title.textStyle.color = b),
|
|
1556
1556
|
"show-alpha": ""
|
|
1557
1557
|
}, null, 8, ["modelValue"]),
|
|
1558
1558
|
n[9] || (n[9] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
1559
1559
|
]),
|
|
1560
1560
|
_: 1
|
|
1561
1561
|
}),
|
|
1562
|
-
l(
|
|
1562
|
+
l(m, { span: 12 }, {
|
|
1563
1563
|
default: u(() => [
|
|
1564
|
-
l(
|
|
1564
|
+
l(g, {
|
|
1565
1565
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1566
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
1566
|
+
"onUpdate:modelValue": n[3] || (n[3] = (b) => e.value.options.title.textStyle.fontSize = b),
|
|
1567
1567
|
"controls-position": "right"
|
|
1568
1568
|
}, null, 8, ["modelValue"]),
|
|
1569
1569
|
n[10] || (n[10] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
1570
1570
|
]),
|
|
1571
1571
|
_: 1
|
|
1572
1572
|
}),
|
|
1573
|
-
l(
|
|
1573
|
+
l(m, { span: 12 }, {
|
|
1574
1574
|
default: u(() => [
|
|
1575
|
-
l(
|
|
1575
|
+
l(g, {
|
|
1576
1576
|
modelValue: e.value.options.title.x,
|
|
1577
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
1577
|
+
"onUpdate:modelValue": n[4] || (n[4] = (b) => e.value.options.title.x = b),
|
|
1578
1578
|
"controls-position": "right"
|
|
1579
1579
|
}, null, 8, ["modelValue"]),
|
|
1580
1580
|
n[11] || (n[11] = T("p", { class: "sub-title" }, "横向", -1))
|
|
1581
1581
|
]),
|
|
1582
1582
|
_: 1
|
|
1583
1583
|
}),
|
|
1584
|
-
l(
|
|
1584
|
+
l(m, { span: 12 }, {
|
|
1585
1585
|
default: u(() => [
|
|
1586
|
-
l(
|
|
1586
|
+
l(g, {
|
|
1587
1587
|
modelValue: e.value.options.title.y,
|
|
1588
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
1588
|
+
"onUpdate:modelValue": n[5] || (n[5] = (b) => e.value.options.title.y = b),
|
|
1589
1589
|
"controls-position": "right"
|
|
1590
1590
|
}, null, 8, ["modelValue"]),
|
|
1591
1591
|
n[12] || (n[12] = T("p", { class: "sub-title" }, "纵向", -1))
|
|
@@ -1598,20 +1598,20 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1598
1598
|
]),
|
|
1599
1599
|
_: 1
|
|
1600
1600
|
}),
|
|
1601
|
-
l(
|
|
1601
|
+
l(y, {
|
|
1602
1602
|
title: "图形配置",
|
|
1603
1603
|
name: "2"
|
|
1604
1604
|
}, {
|
|
1605
1605
|
default: u(() => [
|
|
1606
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (
|
|
1606
|
+
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (c(), V(v, { key: 0 }, {
|
|
1607
1607
|
default: u(() => [
|
|
1608
|
-
l(
|
|
1608
|
+
l(m, { span: 24 }, {
|
|
1609
1609
|
default: u(() => [
|
|
1610
1610
|
n[13] || (n[13] = T("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
1611
1611
|
l(i, {
|
|
1612
1612
|
onChange: a,
|
|
1613
1613
|
modelValue: e.value.options.series[0].roseType,
|
|
1614
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
1614
|
+
"onUpdate:modelValue": n[6] || (n[6] = (b) => e.value.options.series[0].roseType = b)
|
|
1615
1615
|
}, null, 8, ["modelValue"])
|
|
1616
1616
|
]),
|
|
1617
1617
|
_: 1
|
|
@@ -1622,20 +1622,20 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1622
1622
|
]),
|
|
1623
1623
|
_: 1
|
|
1624
1624
|
}),
|
|
1625
|
-
l(
|
|
1625
|
+
l(y, {
|
|
1626
1626
|
title: "图例配置",
|
|
1627
1627
|
name: "3"
|
|
1628
1628
|
}, {
|
|
1629
1629
|
default: u(() => [
|
|
1630
1630
|
l(v, null, {
|
|
1631
1631
|
default: u(() => [
|
|
1632
|
-
l(
|
|
1632
|
+
l(m, { span: 24 }, {
|
|
1633
1633
|
default: u(() => [
|
|
1634
1634
|
n[14] || (n[14] = T("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1635
|
-
e.value.options.legend ? (
|
|
1635
|
+
e.value.options.legend ? (c(), V(i, {
|
|
1636
1636
|
key: 0,
|
|
1637
1637
|
modelValue: e.value.options.legend.show,
|
|
1638
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
1638
|
+
"onUpdate:modelValue": n[7] || (n[7] = (b) => e.value.options.legend.show = b)
|
|
1639
1639
|
}, null, 8, ["modelValue"])) : S("", !0)
|
|
1640
1640
|
]),
|
|
1641
1641
|
_: 1
|
|
@@ -1653,18 +1653,18 @@ const Ue = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-ef6fdadc"]]), Zt = {
|
|
|
1653
1653
|
};
|
|
1654
1654
|
}
|
|
1655
1655
|
});
|
|
1656
|
-
const
|
|
1656
|
+
const uo = /* @__PURE__ */ j(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @__PURE__ */ L({
|
|
1657
1657
|
__name: "SettingDescribe",
|
|
1658
1658
|
setup(o) {
|
|
1659
|
-
const t =
|
|
1659
|
+
const t = q(), e = M(() => t.getActiveComponents);
|
|
1660
1660
|
return (a, r) => {
|
|
1661
|
-
const n = s("el-input"), A = s("el-form-item"), p = s("el-switch"), i = s("el-input-number"),
|
|
1662
|
-
return
|
|
1661
|
+
const n = s("el-input"), A = s("el-form-item"), p = s("el-switch"), i = s("el-input-number"), m = s("el-radio"), d = s("el-radio-group");
|
|
1662
|
+
return c(), x("div", null, [
|
|
1663
1663
|
l(A, { label: "标题" }, {
|
|
1664
1664
|
default: u(() => [
|
|
1665
1665
|
l(n, {
|
|
1666
1666
|
modelValue: e.value.options.title,
|
|
1667
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1667
|
+
"onUpdate:modelValue": r[0] || (r[0] = (g) => e.value.options.title = g)
|
|
1668
1668
|
}, null, 8, ["modelValue"])
|
|
1669
1669
|
]),
|
|
1670
1670
|
_: 1
|
|
@@ -1673,7 +1673,7 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1673
1673
|
default: u(() => [
|
|
1674
1674
|
l(p, {
|
|
1675
1675
|
modelValue: e.value.options.border,
|
|
1676
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1676
|
+
"onUpdate:modelValue": r[1] || (r[1] = (g) => e.value.options.border = g)
|
|
1677
1677
|
}, null, 8, ["modelValue"])
|
|
1678
1678
|
]),
|
|
1679
1679
|
_: 1
|
|
@@ -1682,7 +1682,7 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1682
1682
|
default: u(() => [
|
|
1683
1683
|
l(i, {
|
|
1684
1684
|
modelValue: e.value.options.column,
|
|
1685
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1685
|
+
"onUpdate:modelValue": r[2] || (r[2] = (g) => e.value.options.column = g),
|
|
1686
1686
|
min: 1,
|
|
1687
1687
|
max: 10,
|
|
1688
1688
|
controls: !1
|
|
@@ -1692,18 +1692,18 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1692
1692
|
}),
|
|
1693
1693
|
l(A, { label: "排列方向" }, {
|
|
1694
1694
|
default: u(() => [
|
|
1695
|
-
l(
|
|
1695
|
+
l(d, {
|
|
1696
1696
|
modelValue: e.value.options.direction,
|
|
1697
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
1697
|
+
"onUpdate:modelValue": r[3] || (r[3] = (g) => e.value.options.direction = g)
|
|
1698
1698
|
}, {
|
|
1699
1699
|
default: u(() => [
|
|
1700
|
-
l(
|
|
1700
|
+
l(m, { value: "horizontal" }, {
|
|
1701
1701
|
default: u(() => r[4] || (r[4] = [
|
|
1702
1702
|
E("横向")
|
|
1703
1703
|
])),
|
|
1704
1704
|
_: 1
|
|
1705
1705
|
}),
|
|
1706
|
-
l(
|
|
1706
|
+
l(m, { value: "vertical" }, {
|
|
1707
1707
|
default: u(() => r[5] || (r[5] = [
|
|
1708
1708
|
E("纵向")
|
|
1709
1709
|
])),
|
|
@@ -1718,81 +1718,81 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1718
1718
|
]);
|
|
1719
1719
|
};
|
|
1720
1720
|
}
|
|
1721
|
-
}),
|
|
1721
|
+
}), po = /* @__PURE__ */ L({
|
|
1722
1722
|
__name: "SettingCharts",
|
|
1723
1723
|
setup(o) {
|
|
1724
|
-
const t =
|
|
1724
|
+
const t = q(), e = k(!1), a = M(() => t.getActiveComponents), r = [
|
|
1725
1725
|
{ value: "report-describe", name: "描述列表" },
|
|
1726
1726
|
{ value: "report-table", name: "表格" },
|
|
1727
1727
|
{ value: "line", name: "趋势图" },
|
|
1728
1728
|
{ value: "pie", name: "扇形图" },
|
|
1729
1729
|
{ value: "bar", name: "柱状图" }
|
|
1730
1730
|
], n = k(""), A = k();
|
|
1731
|
-
async function p(
|
|
1732
|
-
const
|
|
1731
|
+
async function p(d) {
|
|
1732
|
+
const g = await he({
|
|
1733
1733
|
prod_type: window.$prodType,
|
|
1734
|
-
chart_type:
|
|
1734
|
+
chart_type: d,
|
|
1735
1735
|
filter_uuid: t.filterForm.filter_uuid
|
|
1736
1736
|
});
|
|
1737
|
-
A.value =
|
|
1737
|
+
A.value = g.data;
|
|
1738
1738
|
}
|
|
1739
|
-
function i(
|
|
1740
|
-
let
|
|
1741
|
-
const v =
|
|
1742
|
-
if (
|
|
1743
|
-
let
|
|
1744
|
-
v.data.forEach((
|
|
1745
|
-
|
|
1739
|
+
function i(d) {
|
|
1740
|
+
let g = A.value.find((y) => y.rp_item_uuid === d);
|
|
1741
|
+
const v = g.rp_item_content;
|
|
1742
|
+
if (g.rp_item_content.type === "bar" && (v.options = oe()), v.type === "pie" && (v.options = ue({ isLegend: !0 })), v.type === "line") {
|
|
1743
|
+
let y = [];
|
|
1744
|
+
v.data.forEach((b) => {
|
|
1745
|
+
y = b.data.map((w, f) => ({ name: w.name, value: "value" + f }));
|
|
1746
1746
|
});
|
|
1747
1747
|
const h = {
|
|
1748
1748
|
name: "name",
|
|
1749
|
-
value:
|
|
1749
|
+
value: y
|
|
1750
1750
|
};
|
|
1751
1751
|
v.options = te([], h);
|
|
1752
1752
|
}
|
|
1753
1753
|
if (v.type === "report-table") {
|
|
1754
|
-
const
|
|
1754
|
+
const y = {};
|
|
1755
1755
|
v.showColumn.forEach((h) => {
|
|
1756
|
-
|
|
1757
|
-
}), v.options = { ...v.options, showColumn:
|
|
1756
|
+
y[h.key] = !0;
|
|
1757
|
+
}), v.options = { ...v.options, showColumn: y, border: !0, showHeader: !0, stripe: !1 };
|
|
1758
1758
|
}
|
|
1759
|
-
v.type === "report-describe" && (v.options = { ...v.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, v), t.activeComponents.rp_item_uuid =
|
|
1759
|
+
v.type === "report-describe" && (v.options = { ...v.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, v), t.activeComponents.rp_item_uuid = g.rp_item_uuid;
|
|
1760
1760
|
}
|
|
1761
1761
|
se(async () => {
|
|
1762
1762
|
n.value = a.value.type, await p(n.value);
|
|
1763
1763
|
});
|
|
1764
|
-
async function
|
|
1764
|
+
async function m(d) {
|
|
1765
1765
|
try {
|
|
1766
|
-
e.value = !0, await p(
|
|
1767
|
-
} catch (
|
|
1768
|
-
console.error("加载报告项失败:",
|
|
1766
|
+
e.value = !0, await p(d);
|
|
1767
|
+
} catch (g) {
|
|
1768
|
+
console.error("加载报告项失败:", g);
|
|
1769
1769
|
} finally {
|
|
1770
|
-
Object.assign(t.activeComponents,
|
|
1770
|
+
Object.assign(t.activeComponents, Ut(d)), e.value = !1;
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
1773
|
return Fe(
|
|
1774
1774
|
() => a.value,
|
|
1775
|
-
(
|
|
1776
|
-
console.log(
|
|
1775
|
+
(d) => {
|
|
1776
|
+
console.log(d, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(d.type) && (n.value = a.value.type, p(n.value));
|
|
1777
1777
|
}
|
|
1778
|
-
), (
|
|
1779
|
-
const v = s("el-option"),
|
|
1780
|
-
return Ae((
|
|
1781
|
-
l(
|
|
1778
|
+
), (d, g) => {
|
|
1779
|
+
const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), b = s("el-form"), w = be("loading");
|
|
1780
|
+
return Ae((c(), x("div", null, [
|
|
1781
|
+
l(b, { "label-position": "top" }, {
|
|
1782
1782
|
default: u(() => [
|
|
1783
1783
|
l(h, { label: "图表类型" }, {
|
|
1784
1784
|
default: u(() => [
|
|
1785
|
-
l(
|
|
1785
|
+
l(y, {
|
|
1786
1786
|
style: { width: "100%" },
|
|
1787
1787
|
modelValue: n.value,
|
|
1788
|
-
"onUpdate:modelValue":
|
|
1789
|
-
onChange:
|
|
1788
|
+
"onUpdate:modelValue": g[0] || (g[0] = (f) => n.value = f),
|
|
1789
|
+
onChange: m
|
|
1790
1790
|
}, {
|
|
1791
1791
|
default: u(() => [
|
|
1792
|
-
(
|
|
1793
|
-
key:
|
|
1794
|
-
label:
|
|
1795
|
-
value:
|
|
1792
|
+
(c(), x(O, null, I(r, (f, _) => l(v, {
|
|
1793
|
+
key: _,
|
|
1794
|
+
label: f.name,
|
|
1795
|
+
value: f.value
|
|
1796
1796
|
}, null, 8, ["label", "value"])), 64))
|
|
1797
1797
|
]),
|
|
1798
1798
|
_: 1
|
|
@@ -1802,17 +1802,17 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1802
1802
|
}),
|
|
1803
1803
|
l(h, { label: "组件库" }, {
|
|
1804
1804
|
default: u(() => [
|
|
1805
|
-
l(
|
|
1805
|
+
l(y, {
|
|
1806
1806
|
style: { width: "100%" },
|
|
1807
|
-
modelValue:
|
|
1808
|
-
"onUpdate:modelValue":
|
|
1807
|
+
modelValue: C(t).activeComponents.rp_item_uuid,
|
|
1808
|
+
"onUpdate:modelValue": g[1] || (g[1] = (f) => C(t).activeComponents.rp_item_uuid = f),
|
|
1809
1809
|
onChange: i
|
|
1810
1810
|
}, {
|
|
1811
1811
|
default: u(() => [
|
|
1812
|
-
(
|
|
1813
|
-
key:
|
|
1814
|
-
label:
|
|
1815
|
-
value:
|
|
1812
|
+
(c(!0), x(O, null, I(A.value, (f, _) => (c(), V(v, {
|
|
1813
|
+
key: _,
|
|
1814
|
+
label: f.rp_item_name,
|
|
1815
|
+
value: f.rp_item_uuid
|
|
1816
1816
|
}, null, 8, ["label", "value"]))), 128))
|
|
1817
1817
|
]),
|
|
1818
1818
|
_: 1
|
|
@@ -1820,28 +1820,28 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1820
1820
|
]),
|
|
1821
1821
|
_: 1
|
|
1822
1822
|
}),
|
|
1823
|
-
n.value === "report-table" && a.value.options.showColumn ? (
|
|
1824
|
-
n.value === "pie" || n.value === "bar" || n.value === "line" ? (
|
|
1825
|
-
n.value === "report-describe" ? (
|
|
1823
|
+
n.value === "report-table" && a.value.options.showColumn ? (c(), V(Re, { key: 0 })) : S("", !0),
|
|
1824
|
+
n.value === "pie" || n.value === "bar" || n.value === "line" ? (c(), V(uo, { key: 1 })) : S("", !0),
|
|
1825
|
+
n.value === "report-describe" ? (c(), V(Se, { key: 2 })) : S("", !0)
|
|
1826
1826
|
]),
|
|
1827
1827
|
_: 1
|
|
1828
1828
|
})
|
|
1829
1829
|
])), [
|
|
1830
|
-
[
|
|
1830
|
+
[w, e.value]
|
|
1831
1831
|
]);
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
|
-
}),
|
|
1834
|
+
}), co = { key: 0 }, mo = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ce = "default", fo = /* @__PURE__ */ L({
|
|
1835
1835
|
__name: "SettingText",
|
|
1836
1836
|
setup(o) {
|
|
1837
|
-
const t =
|
|
1838
|
-
function r(
|
|
1839
|
-
const
|
|
1840
|
-
t.activeComponents.uri =
|
|
1837
|
+
const t = q(), e = Ke(), a = k();
|
|
1838
|
+
function r(d) {
|
|
1839
|
+
const g = a.value.find((v) => v.rp_item_uuid === d);
|
|
1840
|
+
t.activeComponents.uri = g.rp_item_content.uri, e.value.setHtml((g == null ? void 0 : g.rp_item_content.data) || "");
|
|
1841
1841
|
}
|
|
1842
1842
|
async function n() {
|
|
1843
|
-
const
|
|
1844
|
-
a.value =
|
|
1843
|
+
const d = await he({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
|
|
1844
|
+
a.value = d.data;
|
|
1845
1845
|
}
|
|
1846
1846
|
n();
|
|
1847
1847
|
const A = {
|
|
@@ -1866,31 +1866,31 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1866
1866
|
"justifyJustify",
|
|
1867
1867
|
"lineHeight"
|
|
1868
1868
|
]
|
|
1869
|
-
}, p = { placeholder: "请输入内容..." }, i = (
|
|
1870
|
-
e.value =
|
|
1871
|
-
},
|
|
1869
|
+
}, p = { placeholder: "请输入内容..." }, i = (d) => {
|
|
1870
|
+
e.value = d;
|
|
1871
|
+
}, m = (d) => {
|
|
1872
1872
|
};
|
|
1873
1873
|
return Me(() => {
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1876
|
-
}), (
|
|
1877
|
-
const v = s("el-option"),
|
|
1878
|
-
return
|
|
1879
|
-
l(
|
|
1874
|
+
const d = e.value;
|
|
1875
|
+
d != null && d.destroy();
|
|
1876
|
+
}), (d, g) => {
|
|
1877
|
+
const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), b = s("el-form");
|
|
1878
|
+
return C(t).activeComponents.id ? (c(), x("div", co, [
|
|
1879
|
+
l(b, { "label-position": "top" }, {
|
|
1880
1880
|
default: u(() => [
|
|
1881
1881
|
l(h, { label: "组件库" }, {
|
|
1882
1882
|
default: u(() => [
|
|
1883
|
-
l(
|
|
1883
|
+
l(y, {
|
|
1884
1884
|
style: { width: "100%" },
|
|
1885
|
-
modelValue:
|
|
1886
|
-
"onUpdate:modelValue":
|
|
1885
|
+
modelValue: C(t).activeComponents.rp_item_uuid,
|
|
1886
|
+
"onUpdate:modelValue": g[0] || (g[0] = (w) => C(t).activeComponents.rp_item_uuid = w),
|
|
1887
1887
|
onChange: r
|
|
1888
1888
|
}, {
|
|
1889
1889
|
default: u(() => [
|
|
1890
|
-
(
|
|
1891
|
-
key:
|
|
1892
|
-
label:
|
|
1893
|
-
value:
|
|
1890
|
+
(c(!0), x(O, null, I(a.value, (w, f) => (c(), V(v, {
|
|
1891
|
+
key: f,
|
|
1892
|
+
label: w.rp_item_name,
|
|
1893
|
+
value: w.rp_item_uuid
|
|
1894
1894
|
}, null, 8, ["label", "value"]))), 128))
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
@@ -1900,18 +1900,18 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1900
1900
|
}),
|
|
1901
1901
|
l(h, { label: "文本内容" }, {
|
|
1902
1902
|
default: u(() => [
|
|
1903
|
-
T("div",
|
|
1904
|
-
l(
|
|
1903
|
+
T("div", mo, [
|
|
1904
|
+
l(C(je), {
|
|
1905
1905
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1906
1906
|
editor: e.value,
|
|
1907
1907
|
"default-config": A,
|
|
1908
1908
|
mode: ce
|
|
1909
1909
|
}, null, 8, ["editor"]),
|
|
1910
|
-
l(
|
|
1910
|
+
l(C(Ze), {
|
|
1911
1911
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1912
|
-
onOnChange:
|
|
1913
|
-
modelValue:
|
|
1914
|
-
"onUpdate:modelValue":
|
|
1912
|
+
onOnChange: m,
|
|
1913
|
+
modelValue: C(t).activeComponents.data,
|
|
1914
|
+
"onUpdate:modelValue": g[1] || (g[1] = (w) => C(t).activeComponents.data = w),
|
|
1915
1915
|
"default-config": p,
|
|
1916
1916
|
mode: ce,
|
|
1917
1917
|
onOnCreated: i
|
|
@@ -1926,17 +1926,17 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1926
1926
|
])) : S("", !0);
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
1929
|
-
}),
|
|
1929
|
+
}), go = /* @__PURE__ */ L({
|
|
1930
1930
|
__name: "SettingFilter",
|
|
1931
1931
|
setup(o) {
|
|
1932
|
-
const t = k([]), e =
|
|
1932
|
+
const t = k([]), e = q();
|
|
1933
1933
|
async function a() {
|
|
1934
1934
|
const r = await Ce({ prod_type: window.$prodType });
|
|
1935
1935
|
t.value = r.data;
|
|
1936
1936
|
}
|
|
1937
1937
|
return a(), (r, n) => {
|
|
1938
|
-
const A = s("el-option"), p = s("el-select"), i = s("el-form-item"),
|
|
1939
|
-
return
|
|
1938
|
+
const A = s("el-option"), p = s("el-select"), i = s("el-form-item"), m = s("el-checkbox"), d = s("el-form");
|
|
1939
|
+
return c(), V(d, {
|
|
1940
1940
|
"label-width": "80px",
|
|
1941
1941
|
"label-position": "top"
|
|
1942
1942
|
}, {
|
|
@@ -1944,15 +1944,15 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1944
1944
|
l(i, { label: "筛选条件" }, {
|
|
1945
1945
|
default: u(() => [
|
|
1946
1946
|
l(p, {
|
|
1947
|
-
modelValue:
|
|
1948
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1949
|
-
disabled: !!
|
|
1947
|
+
modelValue: C(e).filterForm.filter_uuid,
|
|
1948
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => C(e).filterForm.filter_uuid = g),
|
|
1949
|
+
disabled: !!C(e).filterForm.filter_uuid
|
|
1950
1950
|
}, {
|
|
1951
1951
|
default: u(() => [
|
|
1952
|
-
(
|
|
1953
|
-
key:
|
|
1954
|
-
label:
|
|
1955
|
-
value:
|
|
1952
|
+
(c(!0), x(O, null, I(t.value, (g) => (c(), V(A, {
|
|
1953
|
+
key: g.filter_uuid,
|
|
1954
|
+
label: g.filter_name,
|
|
1955
|
+
value: g.filter_uuid
|
|
1956
1956
|
}, null, 8, ["label", "value"]))), 128))
|
|
1957
1957
|
]),
|
|
1958
1958
|
_: 1
|
|
@@ -1962,9 +1962,9 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1962
1962
|
}),
|
|
1963
1963
|
l(i, null, {
|
|
1964
1964
|
default: u(() => [
|
|
1965
|
-
l(
|
|
1966
|
-
modelValue:
|
|
1967
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1965
|
+
l(m, {
|
|
1966
|
+
modelValue: C(e).filterForm.range_time,
|
|
1967
|
+
"onUpdate:modelValue": n[1] || (n[1] = (g) => C(e).filterForm.range_time = g),
|
|
1968
1968
|
"true-value": 1,
|
|
1969
1969
|
"false-value": 0,
|
|
1970
1970
|
label: "时间范围"
|
|
@@ -1977,13 +1977,13 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1977
1977
|
});
|
|
1978
1978
|
};
|
|
1979
1979
|
}
|
|
1980
|
-
}),
|
|
1980
|
+
}), vo = /* @__PURE__ */ L({
|
|
1981
1981
|
__name: "SettingTitle",
|
|
1982
1982
|
setup(o) {
|
|
1983
|
-
const t =
|
|
1983
|
+
const t = q();
|
|
1984
1984
|
return (e, a) => {
|
|
1985
|
-
const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), p = s("el-col"), i = s("el-input-number"),
|
|
1986
|
-
return
|
|
1985
|
+
const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), p = s("el-col"), i = s("el-input-number"), m = s("el-option"), d = s("el-select"), g = s("el-row"), v = s("el-form");
|
|
1986
|
+
return c(), V(v, {
|
|
1987
1987
|
"label-width": "auto",
|
|
1988
1988
|
"label-position": "top"
|
|
1989
1989
|
}, {
|
|
@@ -1991,8 +1991,8 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1991
1991
|
l(n, { label: "名称" }, {
|
|
1992
1992
|
default: u(() => [
|
|
1993
1993
|
l(r, {
|
|
1994
|
-
modelValue:
|
|
1995
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1994
|
+
modelValue: C(t).activeComponents.data,
|
|
1995
|
+
"onUpdate:modelValue": a[0] || (a[0] = (y) => C(t).activeComponents.data = y),
|
|
1996
1996
|
placeholder: "Please input",
|
|
1997
1997
|
maxlength: "24",
|
|
1998
1998
|
"show-word-limit": ""
|
|
@@ -2002,13 +2002,13 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2002
2002
|
}),
|
|
2003
2003
|
l(n, { label: "样式" }, {
|
|
2004
2004
|
default: u(() => [
|
|
2005
|
-
l(
|
|
2005
|
+
l(g, { gutter: 20 }, {
|
|
2006
2006
|
default: u(() => [
|
|
2007
2007
|
l(p, { span: 12 }, {
|
|
2008
2008
|
default: u(() => [
|
|
2009
2009
|
l(A, {
|
|
2010
|
-
modelValue:
|
|
2011
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2010
|
+
modelValue: C(t).activeComponents.options.color,
|
|
2011
|
+
"onUpdate:modelValue": a[1] || (a[1] = (y) => C(t).activeComponents.options.color = y),
|
|
2012
2012
|
"show-alpha": ""
|
|
2013
2013
|
}, null, 8, ["modelValue"]),
|
|
2014
2014
|
a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
@@ -2018,8 +2018,8 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2018
2018
|
l(p, { span: 12 }, {
|
|
2019
2019
|
default: u(() => [
|
|
2020
2020
|
l(i, {
|
|
2021
|
-
modelValue:
|
|
2022
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
2021
|
+
modelValue: C(t).activeComponents.options.size,
|
|
2022
|
+
"onUpdate:modelValue": a[2] || (a[2] = (y) => C(t).activeComponents.options.size = y),
|
|
2023
2023
|
"controls-position": "right"
|
|
2024
2024
|
}, null, 8, ["modelValue"]),
|
|
2025
2025
|
a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
@@ -2028,16 +2028,16 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2028
2028
|
}),
|
|
2029
2029
|
l(p, { span: 12 }, {
|
|
2030
2030
|
default: u(() => [
|
|
2031
|
-
l(
|
|
2032
|
-
modelValue:
|
|
2033
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
2031
|
+
l(d, {
|
|
2032
|
+
modelValue: C(t).activeComponents.options.fontWeight,
|
|
2033
|
+
"onUpdate:modelValue": a[3] || (a[3] = (y) => C(t).activeComponents.options.fontWeight = y)
|
|
2034
2034
|
}, {
|
|
2035
2035
|
default: u(() => [
|
|
2036
|
-
l(
|
|
2036
|
+
l(m, {
|
|
2037
2037
|
label: "常规",
|
|
2038
2038
|
value: 500
|
|
2039
2039
|
}),
|
|
2040
|
-
l(
|
|
2040
|
+
l(m, {
|
|
2041
2041
|
label: "加粗",
|
|
2042
2042
|
value: 600
|
|
2043
2043
|
})
|
|
@@ -2051,8 +2051,8 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2051
2051
|
l(p, { span: 12 }, {
|
|
2052
2052
|
default: u(() => [
|
|
2053
2053
|
l(i, {
|
|
2054
|
-
modelValue:
|
|
2055
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
2054
|
+
modelValue: C(t).activeComponents.options.letterSpacing,
|
|
2055
|
+
"onUpdate:modelValue": a[4] || (a[4] = (y) => C(t).activeComponents.options.letterSpacing = y),
|
|
2056
2056
|
"controls-position": "right"
|
|
2057
2057
|
}, null, 8, ["modelValue"]),
|
|
2058
2058
|
a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
|
|
@@ -2062,8 +2062,8 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2062
2062
|
l(p, { span: 12 }, {
|
|
2063
2063
|
default: u(() => [
|
|
2064
2064
|
l(i, {
|
|
2065
|
-
modelValue:
|
|
2066
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
2065
|
+
modelValue: C(t).activeComponents.options.textIndent,
|
|
2066
|
+
"onUpdate:modelValue": a[5] || (a[5] = (y) => C(t).activeComponents.options.textIndent = y),
|
|
2067
2067
|
"controls-position": "right"
|
|
2068
2068
|
}, null, 8, ["modelValue"]),
|
|
2069
2069
|
a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
|
|
@@ -2072,20 +2072,20 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2072
2072
|
}),
|
|
2073
2073
|
l(p, { span: 12 }, {
|
|
2074
2074
|
default: u(() => [
|
|
2075
|
-
l(
|
|
2076
|
-
modelValue:
|
|
2077
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
2075
|
+
l(d, {
|
|
2076
|
+
modelValue: C(t).activeComponents.options.textAlign,
|
|
2077
|
+
"onUpdate:modelValue": a[6] || (a[6] = (y) => C(t).activeComponents.options.textAlign = y)
|
|
2078
2078
|
}, {
|
|
2079
2079
|
default: u(() => [
|
|
2080
|
-
l(
|
|
2080
|
+
l(m, {
|
|
2081
2081
|
label: "左对齐",
|
|
2082
2082
|
value: "left"
|
|
2083
2083
|
}),
|
|
2084
|
-
l(
|
|
2084
|
+
l(m, {
|
|
2085
2085
|
label: "居中对齐",
|
|
2086
2086
|
value: "center"
|
|
2087
2087
|
}),
|
|
2088
|
-
l(
|
|
2088
|
+
l(m, {
|
|
2089
2089
|
label: "右对齐",
|
|
2090
2090
|
value: "right"
|
|
2091
2091
|
})
|
|
@@ -2108,28 +2108,28 @@ const io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
2110
|
});
|
|
2111
|
-
const
|
|
2111
|
+
const _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */ L({
|
|
2112
2112
|
__name: "Setting",
|
|
2113
2113
|
setup(o) {
|
|
2114
2114
|
const t = {
|
|
2115
2115
|
SettingTable: Re,
|
|
2116
|
-
SettingCharts:
|
|
2116
|
+
SettingCharts: po,
|
|
2117
2117
|
SettingDescribe: Se,
|
|
2118
|
-
SettingText:
|
|
2119
|
-
SettingFilter:
|
|
2120
|
-
SettingTitle:
|
|
2121
|
-
}, e =
|
|
2122
|
-
return (i,
|
|
2123
|
-
const
|
|
2124
|
-
return
|
|
2118
|
+
SettingText: fo,
|
|
2119
|
+
SettingFilter: go,
|
|
2120
|
+
SettingTitle: _o
|
|
2121
|
+
}, e = q(), a = M(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], p = (i) => r.includes(i) ? H(t, "SettingTitle") : n.includes(i) ? H(t, "SettingText") : A.includes(i) ? H(t, "SettingCharts") : i === "filter" ? H(t, "SettingFilter") : "DefaultEditor";
|
|
2122
|
+
return (i, m) => {
|
|
2123
|
+
const d = s("el-card");
|
|
2124
|
+
return c(), V(d, { class: "config-wrapper" }, {
|
|
2125
2125
|
default: u(() => [
|
|
2126
|
-
(
|
|
2126
|
+
(c(), V($(p(a.value.type))))
|
|
2127
2127
|
]),
|
|
2128
2128
|
_: 1
|
|
2129
2129
|
});
|
|
2130
2130
|
};
|
|
2131
2131
|
}
|
|
2132
|
-
}),
|
|
2132
|
+
}), wo = { class: "editor-wrapper flex items-center space-between start" }, yo = { class: "flex items-center space-between" }, ho = { class: "btn-group" }, Co = /* @__PURE__ */ L({
|
|
2133
2133
|
__name: "index",
|
|
2134
2134
|
props: /* @__PURE__ */ ve({
|
|
2135
2135
|
reportId: {
|
|
@@ -2142,9 +2142,9 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2142
2142
|
}),
|
|
2143
2143
|
emits: ["update:modelValue"],
|
|
2144
2144
|
setup(o) {
|
|
2145
|
-
const t =
|
|
2146
|
-
const
|
|
2147
|
-
|
|
2145
|
+
const t = q(), e = o, a = _e(o, "modelValue"), r = (i) => {
|
|
2146
|
+
const m = ee(i);
|
|
2147
|
+
m.id = F(), t.componentList.push(m);
|
|
2148
2148
|
};
|
|
2149
2149
|
function n() {
|
|
2150
2150
|
a.value = "table";
|
|
@@ -2157,11 +2157,11 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2157
2157
|
});
|
|
2158
2158
|
async function p() {
|
|
2159
2159
|
if (!t.filterForm.filter_uuid) {
|
|
2160
|
-
|
|
2160
|
+
Xe.error("请选择筛选条件");
|
|
2161
2161
|
return;
|
|
2162
2162
|
}
|
|
2163
2163
|
try {
|
|
2164
|
-
e.reportId ? await
|
|
2164
|
+
e.reportId ? await nt({
|
|
2165
2165
|
report_uuid: e.reportId,
|
|
2166
2166
|
data: {
|
|
2167
2167
|
report_name: t.titleComponent.data,
|
|
@@ -2169,7 +2169,7 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2169
2169
|
content: [...t.notDraggableList, t.titleComponent, ...t.componentList],
|
|
2170
2170
|
...t.filterForm
|
|
2171
2171
|
}
|
|
2172
|
-
}) : await
|
|
2172
|
+
}) : await lt({
|
|
2173
2173
|
data: {
|
|
2174
2174
|
report_name: t.titleComponent.data,
|
|
2175
2175
|
prod_type: window.$prodType,
|
|
@@ -2183,24 +2183,24 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2183
2183
|
}
|
|
2184
2184
|
return qe(() => {
|
|
2185
2185
|
t.clearComponents();
|
|
2186
|
-
}), (i,
|
|
2187
|
-
const
|
|
2188
|
-
return
|
|
2186
|
+
}), (i, m) => {
|
|
2187
|
+
const d = s("el-button"), g = s("el-button-group"), v = s("el-card");
|
|
2188
|
+
return c(), x("div", wo, [
|
|
2189
2189
|
l(v, { class: "view-wrapper" }, {
|
|
2190
2190
|
default: u(() => [
|
|
2191
|
-
T("div",
|
|
2192
|
-
T("div",
|
|
2193
|
-
l(
|
|
2191
|
+
T("div", yo, [
|
|
2192
|
+
T("div", ho, [
|
|
2193
|
+
l(g, null, {
|
|
2194
2194
|
default: u(() => [
|
|
2195
|
-
(
|
|
2196
|
-
key:
|
|
2195
|
+
(c(!0), x(O, null, I(C(Et), (y) => (c(), x(O, {
|
|
2196
|
+
key: y.type
|
|
2197
2197
|
}, [
|
|
2198
|
-
|
|
2198
|
+
y != null && y.hide ? S("", !0) : (c(), V(d, {
|
|
2199
2199
|
key: 0,
|
|
2200
|
-
onClick: (h) => r(
|
|
2200
|
+
onClick: (h) => r(y)
|
|
2201
2201
|
}, {
|
|
2202
2202
|
default: u(() => [
|
|
2203
|
-
E(
|
|
2203
|
+
E(K(y.name), 1)
|
|
2204
2204
|
]),
|
|
2205
2205
|
_: 2
|
|
2206
2206
|
}, 1032, ["onClick"]))
|
|
@@ -2209,19 +2209,19 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2209
2209
|
_: 1
|
|
2210
2210
|
})
|
|
2211
2211
|
]),
|
|
2212
|
-
l(
|
|
2212
|
+
l(g, null, {
|
|
2213
2213
|
default: u(() => [
|
|
2214
|
-
l(
|
|
2214
|
+
l(d, {
|
|
2215
2215
|
type: "primary",
|
|
2216
2216
|
onClick: p
|
|
2217
2217
|
}, {
|
|
2218
|
-
default: u(() =>
|
|
2218
|
+
default: u(() => m[0] || (m[0] = [
|
|
2219
2219
|
E("保存")
|
|
2220
2220
|
])),
|
|
2221
2221
|
_: 1
|
|
2222
2222
|
}),
|
|
2223
|
-
l(
|
|
2224
|
-
default: u(() =>
|
|
2223
|
+
l(d, { onClick: n }, {
|
|
2224
|
+
default: u(() => m[1] || (m[1] = [
|
|
2225
2225
|
E("退出")
|
|
2226
2226
|
])),
|
|
2227
2227
|
_: 1
|
|
@@ -2230,23 +2230,23 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2230
2230
|
_: 1
|
|
2231
2231
|
})
|
|
2232
2232
|
]),
|
|
2233
|
-
l(
|
|
2233
|
+
l(lo)
|
|
2234
2234
|
]),
|
|
2235
2235
|
_: 1
|
|
2236
2236
|
}),
|
|
2237
|
-
l(
|
|
2237
|
+
l(bo)
|
|
2238
2238
|
]);
|
|
2239
2239
|
};
|
|
2240
2240
|
}
|
|
2241
|
-
}),
|
|
2241
|
+
}), xo = {
|
|
2242
2242
|
class: "table-box"
|
|
2243
|
-
},
|
|
2243
|
+
}, To = /* @__PURE__ */ L({
|
|
2244
2244
|
__name: "Report",
|
|
2245
2245
|
emits: ["click"],
|
|
2246
2246
|
setup(o, {
|
|
2247
2247
|
emit: t
|
|
2248
2248
|
}) {
|
|
2249
|
-
const e =
|
|
2249
|
+
const e = M(() => ({
|
|
2250
2250
|
prod_type: window.$prodType
|
|
2251
2251
|
})), a = k(), r = t, n = (v) => {
|
|
2252
2252
|
r("click", v.report_uuid, "review");
|
|
@@ -2256,13 +2256,13 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2256
2256
|
r("click", "", "editor");
|
|
2257
2257
|
}, i = (v) => {
|
|
2258
2258
|
console.log(v);
|
|
2259
|
-
},
|
|
2259
|
+
}, m = (v) => {
|
|
2260
2260
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2261
|
-
await
|
|
2261
|
+
await rt({
|
|
2262
2262
|
report_uuids: v
|
|
2263
2263
|
}), a.value.getTableList();
|
|
2264
2264
|
});
|
|
2265
|
-
},
|
|
2265
|
+
}, d = (v) => v.report_type === 1, g = X([
|
|
2266
2266
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2267
2267
|
{
|
|
2268
2268
|
type: "selection",
|
|
@@ -2310,40 +2310,40 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2310
2310
|
icon: "Delete",
|
|
2311
2311
|
title: "删除",
|
|
2312
2312
|
disabled: v.row.report_type === 0,
|
|
2313
|
-
onClick: () =>
|
|
2313
|
+
onClick: () => m([v.row.report_uuid])
|
|
2314
2314
|
}, null)])
|
|
2315
2315
|
}
|
|
2316
2316
|
]);
|
|
2317
|
-
return (v,
|
|
2318
|
-
const h = s("el-button"),
|
|
2319
|
-
return
|
|
2317
|
+
return (v, y) => {
|
|
2318
|
+
const h = s("el-button"), b = s("TdsTable");
|
|
2319
|
+
return c(), x("div", xo, [l(b, {
|
|
2320
2320
|
ref_key: "proTable",
|
|
2321
2321
|
ref: a,
|
|
2322
|
-
columns:
|
|
2323
|
-
"request-api":
|
|
2322
|
+
columns: g,
|
|
2323
|
+
"request-api": C(at),
|
|
2324
2324
|
"init-param": e.value,
|
|
2325
2325
|
"row-key": "report_uuid",
|
|
2326
2326
|
options: v.$tableOptions(),
|
|
2327
2327
|
"search-col": 6,
|
|
2328
|
-
selectable:
|
|
2328
|
+
selectable: d,
|
|
2329
2329
|
onSelectionChange: i
|
|
2330
2330
|
}, {
|
|
2331
|
-
tableHeader: u((
|
|
2331
|
+
tableHeader: u((w) => [l(h, {
|
|
2332
2332
|
plain: "",
|
|
2333
2333
|
type: "primary",
|
|
2334
2334
|
class: "custom-btn",
|
|
2335
2335
|
icon: "Plus",
|
|
2336
2336
|
onClick: p
|
|
2337
2337
|
}, {
|
|
2338
|
-
default: u(() =>
|
|
2338
|
+
default: u(() => y[0] || (y[0] = [E("新建")])),
|
|
2339
2339
|
_: 1
|
|
2340
2340
|
}), l(h, {
|
|
2341
2341
|
plain: "",
|
|
2342
2342
|
type: "danger",
|
|
2343
2343
|
icon: "Delete",
|
|
2344
|
-
onClick: (
|
|
2344
|
+
onClick: (f) => m(w.selectedListIds)
|
|
2345
2345
|
}, {
|
|
2346
|
-
default: u(() =>
|
|
2346
|
+
default: u(() => y[1] || (y[1] = [E("删除")])),
|
|
2347
2347
|
_: 2
|
|
2348
2348
|
}, 1032, ["onClick"])]),
|
|
2349
2349
|
_: 1
|
|
@@ -2351,27 +2351,27 @@ const vo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-56fef84c"]]), _o = /* @_
|
|
|
2351
2351
|
};
|
|
2352
2352
|
}
|
|
2353
2353
|
});
|
|
2354
|
-
const
|
|
2354
|
+
const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */ L({
|
|
2355
2355
|
name: "TCReport",
|
|
2356
2356
|
__name: "index",
|
|
2357
2357
|
setup(o) {
|
|
2358
2358
|
const t = k(), e = k("table"), a = (r, n) => {
|
|
2359
2359
|
t.value = r, e.value = n;
|
|
2360
2360
|
};
|
|
2361
|
-
return (r, n) => (
|
|
2361
|
+
return (r, n) => (c(), x("div", Bo, [
|
|
2362
2362
|
l(He, { name: "slide-fade" }, {
|
|
2363
2363
|
default: u(() => [
|
|
2364
|
-
e.value === "table" ? (
|
|
2364
|
+
e.value === "table" ? (c(), V(To, {
|
|
2365
2365
|
key: 0,
|
|
2366
2366
|
onClick: a
|
|
2367
2367
|
})) : S("", !0),
|
|
2368
|
-
e.value === "review" ? (
|
|
2368
|
+
e.value === "review" ? (c(), V(Ue, {
|
|
2369
2369
|
key: 1,
|
|
2370
2370
|
"report-id": t.value,
|
|
2371
2371
|
modelValue: e.value,
|
|
2372
2372
|
"onUpdate:modelValue": n[0] || (n[0] = (A) => e.value = A)
|
|
2373
2373
|
}, null, 8, ["report-id", "modelValue"])) : S("", !0),
|
|
2374
|
-
e.value === "editor" ? (
|
|
2374
|
+
e.value === "editor" ? (c(), V(Co, {
|
|
2375
2375
|
key: 2,
|
|
2376
2376
|
"report-id": t.value,
|
|
2377
2377
|
modelValue: e.value,
|
|
@@ -2391,7 +2391,7 @@ const Z = (o, t) => {
|
|
|
2391
2391
|
for (const [e, a] of Object.entries(t))
|
|
2392
2392
|
o[e] = a;
|
|
2393
2393
|
return o;
|
|
2394
|
-
}, Do = Z(
|
|
2394
|
+
}, Do = Z(ko), Vo = [
|
|
2395
2395
|
{
|
|
2396
2396
|
label: "正文",
|
|
2397
2397
|
value: "p"
|
|
@@ -2416,7 +2416,7 @@ const Z = (o, t) => {
|
|
|
2416
2416
|
label: "描述列表",
|
|
2417
2417
|
value: "report-describe"
|
|
2418
2418
|
}
|
|
2419
|
-
],
|
|
2419
|
+
], Lo = [
|
|
2420
2420
|
{
|
|
2421
2421
|
value: "p",
|
|
2422
2422
|
fields: ["table_key_relation"]
|
|
@@ -2441,9 +2441,9 @@ const Z = (o, t) => {
|
|
|
2441
2441
|
value: "report-describe",
|
|
2442
2442
|
fields: ["p_text"]
|
|
2443
2443
|
}
|
|
2444
|
-
],
|
|
2444
|
+
], Eo = {
|
|
2445
2445
|
class: "table-box"
|
|
2446
|
-
},
|
|
2446
|
+
}, Uo = /* @__PURE__ */ L({
|
|
2447
2447
|
name: "TCModule",
|
|
2448
2448
|
__name: "index",
|
|
2449
2449
|
setup(o) {
|
|
@@ -2452,7 +2452,7 @@ const Z = (o, t) => {
|
|
|
2452
2452
|
});
|
|
2453
2453
|
function A(h) {
|
|
2454
2454
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2455
|
-
await
|
|
2455
|
+
await st({
|
|
2456
2456
|
rp_item_uuids: h
|
|
2457
2457
|
}), t.value.getTableList();
|
|
2458
2458
|
});
|
|
@@ -2467,27 +2467,27 @@ const Z = (o, t) => {
|
|
|
2467
2467
|
}, r.value = h ? "编辑自定义组件" : "新增自定义组件", e.value.open();
|
|
2468
2468
|
}
|
|
2469
2469
|
async function i(h) {
|
|
2470
|
-
const
|
|
2471
|
-
|
|
2472
|
-
rp_item_uuid:
|
|
2473
|
-
data:
|
|
2474
|
-
}) : (
|
|
2475
|
-
data:
|
|
2470
|
+
const b = Object.assign({}, h);
|
|
2471
|
+
b.chart_type !== "report-table" && b.chart_type !== "report-describe" && delete b.table_key_relation, b.chart_type !== "p" && (b.p_text = ""), b.rp_item_uuid ? await ut({
|
|
2472
|
+
rp_item_uuid: b.rp_item_uuid,
|
|
2473
|
+
data: b
|
|
2474
|
+
}) : (b.prod_type = window.$prodType, await it({
|
|
2475
|
+
data: b
|
|
2476
2476
|
})), t.value.getTableList(), e.value.close();
|
|
2477
2477
|
}
|
|
2478
|
-
const
|
|
2478
|
+
const m = (h) => {
|
|
2479
2479
|
a.value.table_key_relation.splice(h, 1);
|
|
2480
|
-
},
|
|
2480
|
+
}, d = () => {
|
|
2481
2481
|
a.value.table_key_relation.push({
|
|
2482
2482
|
name: "",
|
|
2483
2483
|
key: "",
|
|
2484
2484
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2485
2485
|
});
|
|
2486
|
-
},
|
|
2487
|
-
delete h.message,
|
|
2488
|
-
|
|
2489
|
-
}),
|
|
2490
|
-
}, v = (h) => h.item_type === 1,
|
|
2486
|
+
}, g = (h, b, w) => {
|
|
2487
|
+
delete h.message, b.forEach((f) => {
|
|
2488
|
+
f.name ? f.key || w(new Error("请填写表头名称和KEY")) : w(new Error("请填写表头名称和KEY"));
|
|
2489
|
+
}), w();
|
|
2490
|
+
}, v = (h) => h.item_type === 1, y = X([{
|
|
2491
2491
|
type: "selection",
|
|
2492
2492
|
width: 60,
|
|
2493
2493
|
field: "rp_item_uuid",
|
|
@@ -2520,10 +2520,10 @@ const Z = (o, t) => {
|
|
|
2520
2520
|
}, {
|
|
2521
2521
|
field: "chart_type",
|
|
2522
2522
|
name: "组件类型",
|
|
2523
|
-
enum:
|
|
2523
|
+
enum: Vo,
|
|
2524
2524
|
show: {
|
|
2525
2525
|
type: "select",
|
|
2526
|
-
display:
|
|
2526
|
+
display: Lo
|
|
2527
2527
|
},
|
|
2528
2528
|
rules: [{
|
|
2529
2529
|
required: !0
|
|
@@ -2553,16 +2553,16 @@ const Z = (o, t) => {
|
|
|
2553
2553
|
style: "width:50%"
|
|
2554
2554
|
}, [E("表头名称")]), l("span", {
|
|
2555
2555
|
style: "width:50%"
|
|
2556
|
-
}, [E("KEY")])]), (h = a.value.table_key_relation) == null ? void 0 : h.map((
|
|
2556
|
+
}, [E("KEY")])]), (h = a.value.table_key_relation) == null ? void 0 : h.map((b, w) => l("div", {
|
|
2557
2557
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2558
2558
|
style: "gap:15px;margin-bottom:10px;",
|
|
2559
|
-
key:
|
|
2559
|
+
key: w
|
|
2560
2560
|
}, [l(s("el-form-item"), {
|
|
2561
2561
|
style: "width:50%"
|
|
2562
2562
|
}, {
|
|
2563
2563
|
default: () => [l(s("el-input"), {
|
|
2564
|
-
modelValue:
|
|
2565
|
-
"onUpdate:modelValue": (
|
|
2564
|
+
modelValue: b.name,
|
|
2565
|
+
"onUpdate:modelValue": (f) => b.name = f,
|
|
2566
2566
|
class: "",
|
|
2567
2567
|
placeholder: "表头"
|
|
2568
2568
|
}, null)]
|
|
@@ -2570,21 +2570,21 @@ const Z = (o, t) => {
|
|
|
2570
2570
|
style: "width:50%"
|
|
2571
2571
|
}, {
|
|
2572
2572
|
default: () => [l(s("el-input"), {
|
|
2573
|
-
modelValue:
|
|
2574
|
-
"onUpdate:modelValue": (
|
|
2573
|
+
modelValue: b.key,
|
|
2574
|
+
"onUpdate:modelValue": (f) => b.key = f,
|
|
2575
2575
|
class: "",
|
|
2576
2576
|
placeholder: "KEY"
|
|
2577
2577
|
}, null)]
|
|
2578
2578
|
}), a.value.table_key_relation.length > 1 && l("div", {
|
|
2579
2579
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
2580
2580
|
}, [l(s("el-icon"), {
|
|
2581
|
-
onClick: () =>
|
|
2581
|
+
onClick: () => m(w)
|
|
2582
2582
|
}, {
|
|
2583
|
-
default: () => [l(
|
|
2583
|
+
default: () => [l(We, null, null)]
|
|
2584
2584
|
})])])), l(s("el-button"), {
|
|
2585
2585
|
class: "report-btn ",
|
|
2586
2586
|
icon: "Plus",
|
|
2587
|
-
onClick: () =>
|
|
2587
|
+
onClick: () => d()
|
|
2588
2588
|
}, {
|
|
2589
2589
|
default: () => [E("新增表头与KEY")]
|
|
2590
2590
|
})]);
|
|
@@ -2595,7 +2595,7 @@ const Z = (o, t) => {
|
|
|
2595
2595
|
},
|
|
2596
2596
|
rules: [{
|
|
2597
2597
|
required: !0,
|
|
2598
|
-
validator:
|
|
2598
|
+
validator: g,
|
|
2599
2599
|
trigger: "blur"
|
|
2600
2600
|
}]
|
|
2601
2601
|
}, {
|
|
@@ -2638,58 +2638,58 @@ const Z = (o, t) => {
|
|
|
2638
2638
|
onClick: () => A([h.row.rp_item_uuid])
|
|
2639
2639
|
}, null)])
|
|
2640
2640
|
}]);
|
|
2641
|
-
return (h,
|
|
2642
|
-
const
|
|
2643
|
-
return
|
|
2641
|
+
return (h, b) => {
|
|
2642
|
+
const w = s("el-button"), f = s("TdsTable"), _ = s("TdsForm");
|
|
2643
|
+
return c(), x("div", Eo, [l(f, {
|
|
2644
2644
|
ref_key: "refTdsTable",
|
|
2645
2645
|
ref: t,
|
|
2646
|
-
columns:
|
|
2647
|
-
"request-api":
|
|
2646
|
+
columns: y,
|
|
2647
|
+
"request-api": C(At),
|
|
2648
2648
|
"init-param": n,
|
|
2649
2649
|
"row-key": "rp_item_uuid",
|
|
2650
2650
|
options: h.$tableOptions(),
|
|
2651
2651
|
selectable: v,
|
|
2652
2652
|
"search-col": 6
|
|
2653
2653
|
}, {
|
|
2654
|
-
tableHeader: u((Q) => [l(
|
|
2654
|
+
tableHeader: u((Q) => [l(w, {
|
|
2655
2655
|
plain: "",
|
|
2656
2656
|
type: "primary",
|
|
2657
2657
|
class: "custom-btn",
|
|
2658
2658
|
icon: "Plus",
|
|
2659
|
-
onClick:
|
|
2659
|
+
onClick: b[0] || (b[0] = (D) => p())
|
|
2660
2660
|
}, {
|
|
2661
|
-
default: u(() =>
|
|
2661
|
+
default: u(() => b[1] || (b[1] = [E("新建")])),
|
|
2662
2662
|
_: 1
|
|
2663
|
-
}), l(
|
|
2663
|
+
}), l(w, {
|
|
2664
2664
|
plain: "",
|
|
2665
2665
|
type: "danger",
|
|
2666
2666
|
icon: "Delete",
|
|
2667
2667
|
onClick: (D) => A(Q.selectedListIds)
|
|
2668
2668
|
}, {
|
|
2669
|
-
default: u(() =>
|
|
2669
|
+
default: u(() => b[2] || (b[2] = [E("删除")])),
|
|
2670
2670
|
_: 2
|
|
2671
2671
|
}, 1032, ["onClick"])]),
|
|
2672
2672
|
_: 1
|
|
2673
|
-
}, 8, ["columns", "request-api", "init-param", "options"]), l(
|
|
2673
|
+
}, 8, ["columns", "request-api", "init-param", "options"]), l(_, we({
|
|
2674
2674
|
ref_key: "refTdsForm",
|
|
2675
2675
|
ref: e
|
|
2676
2676
|
}, h.$formBindProps({
|
|
2677
2677
|
title: r.value,
|
|
2678
2678
|
form: a.value,
|
|
2679
|
-
columns:
|
|
2679
|
+
columns: y
|
|
2680
2680
|
}), {
|
|
2681
2681
|
onSubmit: i
|
|
2682
2682
|
}), null, 16)]);
|
|
2683
2683
|
};
|
|
2684
2684
|
}
|
|
2685
2685
|
});
|
|
2686
|
-
const
|
|
2686
|
+
const Ro = Z(Uo), So = {
|
|
2687
2687
|
class: "table-box"
|
|
2688
2688
|
};
|
|
2689
2689
|
function me(o) {
|
|
2690
2690
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
2691
2691
|
}
|
|
2692
|
-
const
|
|
2692
|
+
const Oo = /* @__PURE__ */ L({
|
|
2693
2693
|
name: "TCSubscribe",
|
|
2694
2694
|
__name: "index",
|
|
2695
2695
|
setup(o) {
|
|
@@ -2699,38 +2699,38 @@ const So = /* @__PURE__ */ V({
|
|
|
2699
2699
|
} = window, n = k(""), A = k({
|
|
2700
2700
|
receiver: []
|
|
2701
2701
|
});
|
|
2702
|
-
function p(
|
|
2703
|
-
r(
|
|
2704
|
-
await
|
|
2705
|
-
subscript_uuids:
|
|
2702
|
+
function p(f) {
|
|
2703
|
+
r(f, "subscript_name", a("button.delete"), "error").then(async () => {
|
|
2704
|
+
await mt({
|
|
2705
|
+
subscript_uuids: f.map((_) => _.subscript_uuid)
|
|
2706
2706
|
}), t.value.getTableList();
|
|
2707
2707
|
});
|
|
2708
2708
|
}
|
|
2709
2709
|
function i() {
|
|
2710
2710
|
p(t.value.selectedList);
|
|
2711
2711
|
}
|
|
2712
|
-
const
|
|
2713
|
-
A.value =
|
|
2712
|
+
const m = (f) => {
|
|
2713
|
+
A.value = f ? Object.assign({}, f) : {
|
|
2714
2714
|
receiver: []
|
|
2715
|
-
}, n.value =
|
|
2715
|
+
}, n.value = f ? "编辑报表订阅" : "新增报表订阅", e.value.open();
|
|
2716
2716
|
};
|
|
2717
|
-
async function
|
|
2718
|
-
const
|
|
2719
|
-
|
|
2720
|
-
subscript_uuid:
|
|
2721
|
-
data:
|
|
2722
|
-
}) : await
|
|
2723
|
-
data:
|
|
2717
|
+
async function d(f) {
|
|
2718
|
+
const _ = Object.assign({}, f);
|
|
2719
|
+
_.subscript_uuid ? await ct({
|
|
2720
|
+
subscript_uuid: _.subscript_uuid,
|
|
2721
|
+
data: _
|
|
2722
|
+
}) : await dt({
|
|
2723
|
+
data: _
|
|
2724
2724
|
}), t.value.getTableList(), e.value.close();
|
|
2725
2725
|
}
|
|
2726
|
-
function f
|
|
2727
|
-
if (!
|
|
2726
|
+
function g(f, _, Q) {
|
|
2727
|
+
if (!_ || _.length === 0)
|
|
2728
2728
|
return Q(new Error("请输入收件人"));
|
|
2729
2729
|
Q();
|
|
2730
2730
|
}
|
|
2731
|
-
const v = (
|
|
2732
|
-
|
|
2733
|
-
},
|
|
2731
|
+
const v = (f, _) => {
|
|
2732
|
+
f.target.value && A.value[_].push(f.target.value);
|
|
2733
|
+
}, y = [{
|
|
2734
2734
|
label: "周一",
|
|
2735
2735
|
value: 1
|
|
2736
2736
|
}, {
|
|
@@ -2760,7 +2760,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2760
2760
|
}, {
|
|
2761
2761
|
label: "每月",
|
|
2762
2762
|
value: 2
|
|
2763
|
-
}],
|
|
2763
|
+
}], b = [], w = X([{
|
|
2764
2764
|
type: "selection",
|
|
2765
2765
|
align: "center",
|
|
2766
2766
|
field: "subscript_uuid",
|
|
@@ -2787,7 +2787,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2787
2787
|
}, {
|
|
2788
2788
|
field: "report_uuid",
|
|
2789
2789
|
name: "报表类型",
|
|
2790
|
-
enum: () =>
|
|
2790
|
+
enum: () => gt({
|
|
2791
2791
|
prod_type: window.$prodType
|
|
2792
2792
|
}),
|
|
2793
2793
|
fieldNames: {
|
|
@@ -2804,7 +2804,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2804
2804
|
}, {
|
|
2805
2805
|
field: "format",
|
|
2806
2806
|
name: "报表格式",
|
|
2807
|
-
enum:
|
|
2807
|
+
enum: vt,
|
|
2808
2808
|
fieldNames: {
|
|
2809
2809
|
label: "name",
|
|
2810
2810
|
value: "id"
|
|
@@ -2819,7 +2819,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2819
2819
|
}, {
|
|
2820
2820
|
field: "select_data",
|
|
2821
2821
|
name: "资产/任务",
|
|
2822
|
-
enum:
|
|
2822
|
+
enum: _t,
|
|
2823
2823
|
fieldNames: {
|
|
2824
2824
|
label: "label",
|
|
2825
2825
|
value: "data"
|
|
@@ -2838,7 +2838,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2838
2838
|
key: window.$prodType
|
|
2839
2839
|
}
|
|
2840
2840
|
},
|
|
2841
|
-
render: (
|
|
2841
|
+
render: (f) => t.value.enumMap.get("dbsId").filter((D) => f.row.dbsId.indexOf(D.id) > -1).map((D) => l(s("el-tag"), {
|
|
2842
2842
|
class: "mr-10px",
|
|
2843
2843
|
type: "info"
|
|
2844
2844
|
}, {
|
|
@@ -2848,32 +2848,32 @@ const So = /* @__PURE__ */ V({
|
|
|
2848
2848
|
field: "receiver_email",
|
|
2849
2849
|
name: "收件人",
|
|
2850
2850
|
width: 300,
|
|
2851
|
-
render: (
|
|
2851
|
+
render: (f) => l(O, null, [f.row.receiver_email.map((_) => l(s("el-tag"), {
|
|
2852
2852
|
class: "mr-10px",
|
|
2853
2853
|
type: "info"
|
|
2854
|
-
}, me(
|
|
2855
|
-
default: () => [
|
|
2854
|
+
}, me(_) ? _ : {
|
|
2855
|
+
default: () => [_]
|
|
2856
2856
|
}))]),
|
|
2857
2857
|
show: {
|
|
2858
2858
|
type: "input",
|
|
2859
2859
|
render: () => {
|
|
2860
|
-
let
|
|
2860
|
+
let f;
|
|
2861
2861
|
return l(O, null, [l(s("el-select"), {
|
|
2862
2862
|
class: "right-select",
|
|
2863
2863
|
modelValue: A.value.receiver_email,
|
|
2864
|
-
"onUpdate:modelValue": (
|
|
2864
|
+
"onUpdate:modelValue": (_) => A.value.receiver_email = _,
|
|
2865
2865
|
placeholder: "请输入",
|
|
2866
2866
|
multiple: !0,
|
|
2867
2867
|
filterable: !0,
|
|
2868
2868
|
"allow-create": !0,
|
|
2869
2869
|
"default-first-option": !0,
|
|
2870
2870
|
"reserve-keyword": !1,
|
|
2871
|
-
onBlur: (
|
|
2872
|
-
}, me(
|
|
2873
|
-
label:
|
|
2874
|
-
value:
|
|
2875
|
-
}, null))) ?
|
|
2876
|
-
default: () => [
|
|
2871
|
+
onBlur: (_) => v(_, "receiver_email")
|
|
2872
|
+
}, me(f = b.map((_) => l(s("el-option"), {
|
|
2873
|
+
label: _.label,
|
|
2874
|
+
value: _.value
|
|
2875
|
+
}, null))) ? f : {
|
|
2876
|
+
default: () => [f]
|
|
2877
2877
|
}), l("p", {
|
|
2878
2878
|
style: "font-size:12px;color:#909399;line-height:20px"
|
|
2879
2879
|
}, [E("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
|
|
@@ -2881,7 +2881,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2881
2881
|
},
|
|
2882
2882
|
rules: [{
|
|
2883
2883
|
required: !0,
|
|
2884
|
-
validator:
|
|
2884
|
+
validator: g,
|
|
2885
2885
|
type: "any",
|
|
2886
2886
|
trigger: "change"
|
|
2887
2887
|
}]
|
|
@@ -2915,9 +2915,9 @@ const So = /* @__PURE__ */ V({
|
|
|
2915
2915
|
field: "day",
|
|
2916
2916
|
name: "日",
|
|
2917
2917
|
hide: !0,
|
|
2918
|
-
enum: [...Array(28)].map((
|
|
2919
|
-
label:
|
|
2920
|
-
value:
|
|
2918
|
+
enum: [...Array(28)].map((f, _) => ({
|
|
2919
|
+
label: _ + 1 + "",
|
|
2920
|
+
value: _ + 1
|
|
2921
2921
|
})),
|
|
2922
2922
|
show: {
|
|
2923
2923
|
type: "select"
|
|
@@ -2930,7 +2930,7 @@ const So = /* @__PURE__ */ V({
|
|
|
2930
2930
|
field: "weekday",
|
|
2931
2931
|
name: "星期",
|
|
2932
2932
|
hide: !0,
|
|
2933
|
-
enum:
|
|
2933
|
+
enum: y,
|
|
2934
2934
|
show: {
|
|
2935
2935
|
type: "select"
|
|
2936
2936
|
},
|
|
@@ -2942,9 +2942,9 @@ const So = /* @__PURE__ */ V({
|
|
|
2942
2942
|
field: "hour",
|
|
2943
2943
|
name: "小时",
|
|
2944
2944
|
hide: !0,
|
|
2945
|
-
enum: [...Array(24)].map((
|
|
2946
|
-
label:
|
|
2947
|
-
value:
|
|
2945
|
+
enum: [...Array(24)].map((f, _) => ({
|
|
2946
|
+
label: _ + "时",
|
|
2947
|
+
value: _
|
|
2948
2948
|
})),
|
|
2949
2949
|
show: {
|
|
2950
2950
|
type: "select"
|
|
@@ -2957,9 +2957,9 @@ const So = /* @__PURE__ */ V({
|
|
|
2957
2957
|
field: "minute",
|
|
2958
2958
|
name: "分钟",
|
|
2959
2959
|
hide: !0,
|
|
2960
|
-
enum: [...Array(60)].map((
|
|
2961
|
-
label:
|
|
2962
|
-
value:
|
|
2960
|
+
enum: [...Array(60)].map((f, _) => ({
|
|
2961
|
+
label: _ + "分",
|
|
2962
|
+
value: _
|
|
2963
2963
|
})),
|
|
2964
2964
|
show: {
|
|
2965
2965
|
type: "select"
|
|
@@ -2971,15 +2971,15 @@ const So = /* @__PURE__ */ V({
|
|
|
2971
2971
|
}, {
|
|
2972
2972
|
field: "enable_status",
|
|
2973
2973
|
name: "启用状态",
|
|
2974
|
-
render: (
|
|
2975
|
-
modelValue:
|
|
2976
|
-
"onUpdate:modelValue": (
|
|
2974
|
+
render: (f) => l(s("el-switch"), {
|
|
2975
|
+
modelValue: f.row.enable_status,
|
|
2976
|
+
"onUpdate:modelValue": (_) => f.row.enable_status = _,
|
|
2977
2977
|
"active-value": 1,
|
|
2978
2978
|
"inactive-value": 0,
|
|
2979
|
-
onChange: (
|
|
2980
|
-
|
|
2981
|
-
subscript_uuid:
|
|
2982
|
-
enable_status:
|
|
2979
|
+
onChange: (_) => {
|
|
2980
|
+
ft({
|
|
2981
|
+
subscript_uuid: f.row.subscript_uuid,
|
|
2982
|
+
enable_status: _
|
|
2983
2983
|
}), t.value.getTableList();
|
|
2984
2984
|
}
|
|
2985
2985
|
}, null)
|
|
@@ -2989,39 +2989,39 @@ const So = /* @__PURE__ */ V({
|
|
|
2989
2989
|
fixed: "right",
|
|
2990
2990
|
cardHide: !0,
|
|
2991
2991
|
width: 120,
|
|
2992
|
-
render: (
|
|
2992
|
+
render: (f) => l("div", null, [l(s("el-button"), {
|
|
2993
2993
|
link: !0,
|
|
2994
2994
|
type: "primary",
|
|
2995
2995
|
icon: "Edit",
|
|
2996
2996
|
title: a("button.edit"),
|
|
2997
2997
|
class: "custom-btn",
|
|
2998
|
-
onClick: () =>
|
|
2998
|
+
onClick: () => m(f.row)
|
|
2999
2999
|
}, null), l(s("el-button"), {
|
|
3000
3000
|
link: !0,
|
|
3001
3001
|
type: "danger",
|
|
3002
3002
|
icon: "Delete",
|
|
3003
3003
|
title: a("button.delete"),
|
|
3004
|
-
onClick: () => p([
|
|
3004
|
+
onClick: () => p([f.row])
|
|
3005
3005
|
}, null)])
|
|
3006
3006
|
}]);
|
|
3007
|
-
return (
|
|
3007
|
+
return (f, _) => {
|
|
3008
3008
|
const Q = s("el-button");
|
|
3009
|
-
return
|
|
3009
|
+
return c(), x("div", So, [l(C(ye), {
|
|
3010
3010
|
ref_key: "refTdsTable",
|
|
3011
3011
|
ref: t,
|
|
3012
3012
|
"row-key": "subscript_uuid",
|
|
3013
|
-
"request-api":
|
|
3014
|
-
columns:
|
|
3015
|
-
options:
|
|
3013
|
+
"request-api": C(pt),
|
|
3014
|
+
columns: w,
|
|
3015
|
+
options: f.$tableOptions()
|
|
3016
3016
|
}, {
|
|
3017
3017
|
tableHeader: u((D) => [l(Q, {
|
|
3018
3018
|
type: "primary",
|
|
3019
3019
|
icon: "Plus",
|
|
3020
3020
|
class: "custom-btn",
|
|
3021
3021
|
plain: "",
|
|
3022
|
-
onClick:
|
|
3022
|
+
onClick: _[0] || (_[0] = (W) => m())
|
|
3023
3023
|
}, {
|
|
3024
|
-
default: u(() => [E(
|
|
3024
|
+
default: u(() => [E(K(C(a)("button.add")), 1)]),
|
|
3025
3025
|
_: 1
|
|
3026
3026
|
}), l(Q, {
|
|
3027
3027
|
type: "danger",
|
|
@@ -3030,95 +3030,136 @@ const So = /* @__PURE__ */ V({
|
|
|
3030
3030
|
onClick: i,
|
|
3031
3031
|
disabled: !D.selectedListIds.length
|
|
3032
3032
|
}, {
|
|
3033
|
-
default: u(() => [E(
|
|
3033
|
+
default: u(() => [E(K(C(a)("button.delete")), 1)]),
|
|
3034
3034
|
_: 2
|
|
3035
3035
|
}, 1032, ["disabled"])]),
|
|
3036
3036
|
_: 1
|
|
3037
|
-
}, 8, ["request-api", "columns", "options"]), l(
|
|
3037
|
+
}, 8, ["request-api", "columns", "options"]), l(C($e), we({
|
|
3038
3038
|
ref_key: "refTdsForm",
|
|
3039
3039
|
ref: e
|
|
3040
|
-
},
|
|
3040
|
+
}, f.$formBindProps({
|
|
3041
3041
|
title: n.value,
|
|
3042
3042
|
form: A.value,
|
|
3043
|
-
columns:
|
|
3043
|
+
columns: w
|
|
3044
3044
|
}), {
|
|
3045
|
-
onSubmit:
|
|
3045
|
+
onSubmit: d
|
|
3046
3046
|
}), null, 16)]);
|
|
3047
3047
|
};
|
|
3048
3048
|
}
|
|
3049
|
-
}),
|
|
3049
|
+
}), Po = Z(Oo), Qo = {
|
|
3050
3050
|
class: "main-wrapper"
|
|
3051
|
-
},
|
|
3051
|
+
}, Io = {
|
|
3052
|
+
class: "el-dropdown-link"
|
|
3053
|
+
}, Fo = /* @__PURE__ */ L({
|
|
3052
3054
|
name: "TCBuildin",
|
|
3053
3055
|
__name: "index",
|
|
3054
3056
|
setup(o) {
|
|
3055
|
-
const t = k(
|
|
3056
|
-
async function
|
|
3057
|
-
const
|
|
3057
|
+
const t = k({}), e = k("1"), a = k("");
|
|
3058
|
+
async function r() {
|
|
3059
|
+
const p = await bt({
|
|
3058
3060
|
prod_type: window.$prodType
|
|
3059
3061
|
});
|
|
3060
|
-
|
|
3062
|
+
e.value = p.data[0].report_uuid;
|
|
3063
|
+
const i = {};
|
|
3064
|
+
p.data.forEach((m) => {
|
|
3065
|
+
const d = m.report_category || m.report_uuid;
|
|
3066
|
+
i[d] || (i[d] = []), i[d].push(m);
|
|
3067
|
+
}), t.value = i;
|
|
3061
3068
|
}
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3069
|
+
const n = (p, i) => {
|
|
3070
|
+
e.value = i, a.value = p;
|
|
3071
|
+
}, A = () => {
|
|
3072
|
+
a.value = "";
|
|
3073
|
+
};
|
|
3074
|
+
return r(), (p, i) => {
|
|
3075
|
+
const m = s("arrow-down"), d = s("el-icon"), g = s("el-dropdown-item"), v = s("el-dropdown-menu"), y = s("el-dropdown"), h = s("el-tab-pane"), b = s("el-tabs");
|
|
3076
|
+
return c(), x("div", Qo, [l(b, {
|
|
3065
3077
|
modelValue: e.value,
|
|
3066
|
-
"onUpdate:modelValue":
|
|
3078
|
+
"onUpdate:modelValue": i[0] || (i[0] = (w) => e.value = w),
|
|
3067
3079
|
class: "report-tabs",
|
|
3068
3080
|
style: {
|
|
3069
3081
|
height: "100%"
|
|
3070
|
-
}
|
|
3082
|
+
},
|
|
3083
|
+
onTabClick: A
|
|
3071
3084
|
}, {
|
|
3072
|
-
default: u(() => [(
|
|
3085
|
+
default: u(() => [(c(!0), x(O, null, I(t.value, (w, f) => (c(), V(h, {
|
|
3073
3086
|
style: {
|
|
3074
3087
|
height: "100%"
|
|
3075
3088
|
},
|
|
3076
|
-
key:
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
default: u(() => [e.value === i.report_uuid ? (d(), L(Ue, {
|
|
3089
|
+
key: f,
|
|
3090
|
+
name: w[0].report_uuid
|
|
3091
|
+
}, ze({
|
|
3092
|
+
default: u(() => [e.value === w[0].report_uuid ? (c(), V(Ue, {
|
|
3081
3093
|
key: 0,
|
|
3082
|
-
"report-id": e.value
|
|
3094
|
+
"report-id": a.value || e.value
|
|
3083
3095
|
}, null, 8, ["report-id"])) : S("", !0)]),
|
|
3084
3096
|
_: 2
|
|
3085
|
-
},
|
|
3097
|
+
}, [w.length === 1 ? {
|
|
3098
|
+
name: "label",
|
|
3099
|
+
fn: u(() => [E(K(w[0].report_name), 1)]),
|
|
3100
|
+
key: "0"
|
|
3101
|
+
} : {
|
|
3102
|
+
name: "label",
|
|
3103
|
+
fn: u(() => [l(y, {
|
|
3104
|
+
onCommand: (_) => n(_, w[0].report_uuid)
|
|
3105
|
+
}, {
|
|
3106
|
+
dropdown: u(() => [l(v, null, {
|
|
3107
|
+
default: u(() => [(c(!0), x(O, null, I(w, (_) => (c(), V(g, {
|
|
3108
|
+
key: _.report_uuid,
|
|
3109
|
+
class: "mt-10px",
|
|
3110
|
+
command: _.report_uuid
|
|
3111
|
+
}, {
|
|
3112
|
+
default: u(() => [E(K(_.report_name), 1)]),
|
|
3113
|
+
_: 2
|
|
3114
|
+
}, 1032, ["command"]))), 128))]),
|
|
3115
|
+
_: 2
|
|
3116
|
+
}, 1024)]),
|
|
3117
|
+
default: u(() => [T("span", Io, [E(K(f) + " ", 1), l(d, {
|
|
3118
|
+
class: "el-icon--right"
|
|
3119
|
+
}, {
|
|
3120
|
+
default: u(() => [l(m)]),
|
|
3121
|
+
_: 1
|
|
3122
|
+
})])]),
|
|
3123
|
+
_: 2
|
|
3124
|
+
}, 1032, ["onCommand"])]),
|
|
3125
|
+
key: "1"
|
|
3126
|
+
}]), 1032, ["name"]))), 128))]),
|
|
3086
3127
|
_: 1
|
|
3087
3128
|
}, 8, ["modelValue"])]);
|
|
3088
3129
|
};
|
|
3089
3130
|
}
|
|
3090
3131
|
});
|
|
3091
|
-
const
|
|
3092
|
-
function
|
|
3132
|
+
const Ko = /* @__PURE__ */ j(Fo, [["__scopeId", "data-v-85ec73b7"]]), Mo = Z(Ko);
|
|
3133
|
+
function qo(o, t, e) {
|
|
3093
3134
|
const a = atob(o), r = [];
|
|
3094
3135
|
for (let i = 0; i < a.length; i += 512) {
|
|
3095
|
-
const
|
|
3096
|
-
for (let v = 0; v <
|
|
3097
|
-
|
|
3098
|
-
const
|
|
3099
|
-
r.push(
|
|
3136
|
+
const m = a.slice(i, i + 512), d = new Array(m.length);
|
|
3137
|
+
for (let v = 0; v < m.length; v++)
|
|
3138
|
+
d[v] = m.charCodeAt(v);
|
|
3139
|
+
const g = new Uint8Array(d);
|
|
3140
|
+
r.push(g);
|
|
3100
3141
|
}
|
|
3101
3142
|
const n = new Blob(r, { type: e }), A = URL.createObjectURL(n), p = document.createElement("a");
|
|
3102
3143
|
p.href = A, p.download = t, document.body.appendChild(p), p.click(), setTimeout(() => {
|
|
3103
3144
|
document.body.removeChild(p), URL.revokeObjectURL(A);
|
|
3104
3145
|
}, 0);
|
|
3105
3146
|
}
|
|
3106
|
-
const
|
|
3147
|
+
const Ho = {
|
|
3107
3148
|
class: "table-box"
|
|
3108
|
-
},
|
|
3149
|
+
}, zo = /* @__PURE__ */ L({
|
|
3109
3150
|
name: "TCDownload",
|
|
3110
3151
|
__name: "index",
|
|
3111
3152
|
setup(o) {
|
|
3112
3153
|
const t = X({
|
|
3113
3154
|
prod_type: window.$prodType
|
|
3114
3155
|
}), e = k(), a = async (A) => {
|
|
3115
|
-
const p = await
|
|
3156
|
+
const p = await ht({
|
|
3116
3157
|
export_uuid: A.export_uuid
|
|
3117
3158
|
}), i = A.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
3118
|
-
|
|
3159
|
+
qo(p.file_data, p.file_name, i), e.value.getTableList();
|
|
3119
3160
|
}, r = (A) => {
|
|
3120
3161
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
3121
|
-
await
|
|
3162
|
+
await Ct({
|
|
3122
3163
|
export_uuids: A
|
|
3123
3164
|
}), e.value.getTableList();
|
|
3124
3165
|
});
|
|
@@ -3178,26 +3219,24 @@ const Mo = {
|
|
|
3178
3219
|
link: !0,
|
|
3179
3220
|
type: "primary",
|
|
3180
3221
|
class: "custom-btn",
|
|
3181
|
-
icon: "
|
|
3222
|
+
icon: "Download",
|
|
3182
3223
|
title: "下載",
|
|
3183
|
-
disabled: A.row.report_type === 0,
|
|
3184
3224
|
onClick: () => a(A.row)
|
|
3185
3225
|
}, null), l(s("el-button"), {
|
|
3186
3226
|
link: !0,
|
|
3187
3227
|
type: "danger",
|
|
3188
3228
|
icon: "Delete",
|
|
3189
3229
|
title: "删除",
|
|
3190
|
-
disabled: A.row.report_type === 0,
|
|
3191
3230
|
onClick: () => r([A.row.report_uuid])
|
|
3192
3231
|
}, null)])
|
|
3193
3232
|
}]);
|
|
3194
3233
|
return (A, p) => {
|
|
3195
3234
|
const i = s("el-button");
|
|
3196
|
-
return
|
|
3235
|
+
return c(), x("div", Ho, [l(C(ye), {
|
|
3197
3236
|
ref_key: "proTable",
|
|
3198
3237
|
ref: e,
|
|
3199
3238
|
columns: n,
|
|
3200
|
-
"request-api":
|
|
3239
|
+
"request-api": C(yt),
|
|
3201
3240
|
"row-key": "report_uuid",
|
|
3202
3241
|
"init-param": t,
|
|
3203
3242
|
options: A.$tableOptions({
|
|
@@ -3207,11 +3246,11 @@ const Mo = {
|
|
|
3207
3246
|
}),
|
|
3208
3247
|
"search-col": 6
|
|
3209
3248
|
}, {
|
|
3210
|
-
tableHeader: u((
|
|
3249
|
+
tableHeader: u((m) => [l(i, {
|
|
3211
3250
|
plain: "",
|
|
3212
3251
|
type: "danger",
|
|
3213
3252
|
icon: "Delete",
|
|
3214
|
-
onClick: (
|
|
3253
|
+
onClick: (d) => r(m.selectedListIds)
|
|
3215
3254
|
}, {
|
|
3216
3255
|
default: u(() => p[0] || (p[0] = [E("删除")])),
|
|
3217
3256
|
_: 2
|
|
@@ -3220,24 +3259,24 @@ const Mo = {
|
|
|
3220
3259
|
}, 8, ["columns", "request-api", "init-param", "options"])]);
|
|
3221
3260
|
};
|
|
3222
3261
|
}
|
|
3223
|
-
}),
|
|
3262
|
+
}), No = Z(zo), Yo = {
|
|
3224
3263
|
TCReport: Do,
|
|
3225
|
-
TCModule:
|
|
3226
|
-
TCSubscribe:
|
|
3227
|
-
TCBuildin:
|
|
3228
|
-
TCDownload:
|
|
3229
|
-
},
|
|
3264
|
+
TCModule: Ro,
|
|
3265
|
+
TCSubscribe: Po,
|
|
3266
|
+
TCBuildin: Mo,
|
|
3267
|
+
TCDownload: No
|
|
3268
|
+
}, el = {
|
|
3230
3269
|
install(o, t) {
|
|
3231
|
-
Object.entries(
|
|
3270
|
+
Object.entries(Yo).forEach(([e, a]) => {
|
|
3232
3271
|
o.component(e, a);
|
|
3233
3272
|
}), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
|
|
3234
3273
|
}
|
|
3235
3274
|
};
|
|
3236
3275
|
export {
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3276
|
+
Mo as TCBuildin,
|
|
3277
|
+
No as TCDownload,
|
|
3278
|
+
Ro as TCModule,
|
|
3240
3279
|
Do as TCReport,
|
|
3241
|
-
|
|
3242
|
-
|
|
3280
|
+
Po as TCSubscribe,
|
|
3281
|
+
el as default
|
|
3243
3282
|
};
|