@topdatasec/report 1.1.17 → 1.1.19
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 +604 -588
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, computed as Q, resolveComponent as
|
|
1
|
+
import { defineComponent as L, computed as Q, resolveComponent as s, openBlock as c, createElementBlock as x, createElementVNode as T, Fragment as S, renderList as P, normalizeClass as N, createBlock as k, createCommentVNode as R, withDirectives as le, createTextVNode as E, toDisplayString as M, unref as y, ref as V, createVNode as l, withCtx as u, onMounted as ne, normalizeProps as pe, guardReactiveProps as de, isVNode as ae, normalizeStyle as Ee, mergeModels as ce, useModel as me, resolveDirective as fe, resolveDynamicComponent as G, isRef as Ue, withModifiers as Re, watch as Se, shallowRef as Oe, onBeforeUnmount as Pe, onUnmounted as Qe, reactive as X, TransitionGroup as Ie, mergeProps as ve } from "vue";
|
|
2
2
|
import { defineStore as Fe, storeToRefs as Ke } from "pinia";
|
|
3
3
|
import { ElNotification as Me, ElMessage as qe } from "element-plus";
|
|
4
4
|
import { VueDraggable as He } from "vue-draggable-plus";
|
|
@@ -9,15 +9,15 @@ const H = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
9
9
|
function Ze(o, t, e) {
|
|
10
10
|
const a = atob(o), r = [];
|
|
11
11
|
for (let i = 0; i < a.length; i += 512) {
|
|
12
|
-
const g = a.slice(i, i + 512),
|
|
13
|
-
for (let
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
r.push(
|
|
12
|
+
const g = a.slice(i, i + 512), m = new Array(g.length);
|
|
13
|
+
for (let v = 0; v < g.length; v++)
|
|
14
|
+
m[v] = g.charCodeAt(v);
|
|
15
|
+
const b = new Uint8Array(m);
|
|
16
|
+
r.push(b);
|
|
17
17
|
}
|
|
18
|
-
const n = new Blob(r, { type: e }),
|
|
19
|
-
|
|
20
|
-
document.body.removeChild(
|
|
18
|
+
const n = new Blob(r, { type: e }), A = URL.createObjectURL(n), d = document.createElement("a");
|
|
19
|
+
d.href = A, d.download = t, document.body.appendChild(d), d.click(), setTimeout(() => {
|
|
20
|
+
document.body.removeChild(d), URL.revokeObjectURL(A);
|
|
21
21
|
}, 0);
|
|
22
22
|
}
|
|
23
23
|
const je = (o) => window.$http.request({
|
|
@@ -154,8 +154,8 @@ const je = (o) => window.$http.request({
|
|
|
154
154
|
"238, 97, 97"
|
|
155
155
|
], gt = (o, t, e = "", a = { name: "name", value: "value" }) => {
|
|
156
156
|
const r = [], n = [];
|
|
157
|
-
t.forEach((
|
|
158
|
-
r.push(
|
|
157
|
+
t.forEach((A) => {
|
|
158
|
+
r.push(A[a.name]), n.push(A[a.value]);
|
|
159
159
|
}), o.xAxis[0].data = r, o.series[0].data = n, o.series[0].name = e, o.series[1].data = n, o.series[2].data = n;
|
|
160
160
|
}, j = (o = [
|
|
161
161
|
{
|
|
@@ -311,12 +311,12 @@ const je = (o) => window.$http.request({
|
|
|
311
311
|
};
|
|
312
312
|
}, bt = ({ chartOption: o, data: t, props: e = { name: "label", value: "data" } }) => {
|
|
313
313
|
let a = 0;
|
|
314
|
-
const r = t.map((n,
|
|
314
|
+
const r = t.map((n, A) => (a += Number(n[e.value]), {
|
|
315
315
|
name: n[e.name],
|
|
316
316
|
value: Number(n[e.value])
|
|
317
317
|
}));
|
|
318
318
|
o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
|
|
319
|
-
}, _t = () => O.map((o) => `rgba(${o}, 1)`),
|
|
319
|
+
}, _t = () => O.map((o) => `rgba(${o}, 1)`), re = ({
|
|
320
320
|
data: o = [
|
|
321
321
|
{
|
|
322
322
|
name: "数据1",
|
|
@@ -336,22 +336,22 @@ const je = (o) => window.$http.request({
|
|
|
336
336
|
isLegend: a = !0,
|
|
337
337
|
isLine: r = !1,
|
|
338
338
|
center: n = ["50%", "50%"],
|
|
339
|
-
isTitle:
|
|
339
|
+
isTitle: A = !0
|
|
340
340
|
}) => {
|
|
341
|
-
const
|
|
341
|
+
const d = {
|
|
342
342
|
color: _t(),
|
|
343
343
|
toolbox: { show: !1 },
|
|
344
344
|
tooltip: {
|
|
345
345
|
trigger: "item",
|
|
346
346
|
show: !0,
|
|
347
347
|
formatter: (i) => {
|
|
348
|
-
const { name: g, value:
|
|
348
|
+
const { name: g, value: m } = i;
|
|
349
349
|
return `<div style="color: ${i.color}; font-size: 14px;">${g} </div>
|
|
350
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${
|
|
350
|
+
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${m}</span></div>`;
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
353
|
title: {
|
|
354
|
-
show:
|
|
354
|
+
show: A,
|
|
355
355
|
text: "样例数据",
|
|
356
356
|
textStyle: {
|
|
357
357
|
color: "#333",
|
|
@@ -364,8 +364,8 @@ const je = (o) => window.$http.request({
|
|
|
364
364
|
show: a,
|
|
365
365
|
left: "70%",
|
|
366
366
|
formatter: (i) => {
|
|
367
|
-
var
|
|
368
|
-
const g = (
|
|
367
|
+
var m;
|
|
368
|
+
const g = (m = d.series[0]) == null ? void 0 : m.data.find((b) => b.name === i).value;
|
|
369
369
|
return ` ${i} | ${g}`;
|
|
370
370
|
},
|
|
371
371
|
textStyle: {
|
|
@@ -477,7 +477,7 @@ const je = (o) => window.$http.request({
|
|
|
477
477
|
}
|
|
478
478
|
]
|
|
479
479
|
};
|
|
480
|
-
return
|
|
480
|
+
return d;
|
|
481
481
|
}, wt = (o, t, e = { name: "name", value: "value" }) => {
|
|
482
482
|
o.xAxis.data = t.map((a) => a[e.name]), Array.isArray(e.value) ? e.value.forEach((a, r) => {
|
|
483
483
|
o.series[r].data = t.map((n) => n[a.value]);
|
|
@@ -602,20 +602,20 @@ const je = (o) => window.$http.request({
|
|
|
602
602
|
series: []
|
|
603
603
|
}, a = yt(), r = [];
|
|
604
604
|
if (Array.isArray(t.value))
|
|
605
|
-
t.value.forEach((n,
|
|
606
|
-
const
|
|
607
|
-
|
|
605
|
+
t.value.forEach((n, A) => {
|
|
606
|
+
const d = J(a);
|
|
607
|
+
d.name = n.name, d.lineStyle.color = `rgba(${O[A]}, 1)`, d.itemStyle.color = `rgba(${O[A]}, 1)`, d.areaStyle.color.colorStops[0].color = `rgba(${O[A]}, 0.7)`, d.areaStyle.color.colorStops[1].color = `rgba(${O[A]}, 0.1)`, d.data = o.map((i) => i[n.value]), r.push(d);
|
|
608
608
|
});
|
|
609
609
|
else if (typeof t.value == "string") {
|
|
610
610
|
const n = J(a);
|
|
611
|
-
n.data = o.map((
|
|
611
|
+
n.data = o.map((A) => A[t.value]), r.push(n);
|
|
612
612
|
}
|
|
613
613
|
return e.series = r, e;
|
|
614
|
-
},
|
|
614
|
+
}, Ae = [
|
|
615
615
|
{ key: "assets", name: "资产名称" },
|
|
616
616
|
{ key: "type", name: "资产类型" },
|
|
617
617
|
{ key: "data", name: "资产数据" }
|
|
618
|
-
],
|
|
618
|
+
], se = [
|
|
619
619
|
{ assets: "name1", type: "type1", data: "data1" },
|
|
620
620
|
{ assets: "name2", type: "type2", data: "data2" },
|
|
621
621
|
{ assets: "name3", type: "type3", data: "data3" }
|
|
@@ -646,18 +646,6 @@ const je = (o) => window.$http.request({
|
|
|
646
646
|
{
|
|
647
647
|
label: "全部",
|
|
648
648
|
data: "0"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
label: "10.10.2.20_root",
|
|
652
|
-
data: "743dbb32-8a41-4990-9d76-48925b000a93"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
label: "10.10.4.206_sysdba",
|
|
656
|
-
data: "23193788-c895-47a8-8123-65799540394c"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
label: "10.10.4.26_root@/root/files/",
|
|
660
|
-
data: "bb7b07c9-b96b-4caf-ac76-bb45ae849844"
|
|
661
649
|
}
|
|
662
650
|
],
|
|
663
651
|
uri: "/da/report/sens/get_asset_all",
|
|
@@ -702,8 +690,8 @@ const je = (o) => window.$http.request({
|
|
|
702
690
|
},
|
|
703
691
|
{
|
|
704
692
|
type: "report-table",
|
|
705
|
-
data:
|
|
706
|
-
showColumn:
|
|
693
|
+
data: se,
|
|
694
|
+
showColumn: Ae,
|
|
707
695
|
name: "表格",
|
|
708
696
|
options: {
|
|
709
697
|
showColumn: {
|
|
@@ -765,8 +753,8 @@ const je = (o) => window.$http.request({
|
|
|
765
753
|
{ type: "p", data: "正文", name: "正文", rp_item_uuid: "", id: "" },
|
|
766
754
|
{
|
|
767
755
|
type: "report-table",
|
|
768
|
-
data:
|
|
769
|
-
showColumn:
|
|
756
|
+
data: se,
|
|
757
|
+
showColumn: Ae,
|
|
770
758
|
name: "表格",
|
|
771
759
|
options: {
|
|
772
760
|
border: !0,
|
|
@@ -814,14 +802,14 @@ const je = (o) => window.$http.request({
|
|
|
814
802
|
data: ht,
|
|
815
803
|
showColumn: [{ key: "label", value: "data" }],
|
|
816
804
|
name: "图表",
|
|
817
|
-
options:
|
|
805
|
+
options: re({ isLegend: !0 }),
|
|
818
806
|
rp_item_uuid: "",
|
|
819
807
|
id: ""
|
|
820
808
|
},
|
|
821
809
|
"report-table": {
|
|
822
810
|
type: "report-table",
|
|
823
|
-
data:
|
|
824
|
-
showColumn:
|
|
811
|
+
data: se,
|
|
812
|
+
showColumn: Ae,
|
|
825
813
|
name: "表格",
|
|
826
814
|
options: {
|
|
827
815
|
showColumn: {
|
|
@@ -873,7 +861,25 @@ const je = (o) => window.$http.request({
|
|
|
873
861
|
};
|
|
874
862
|
}
|
|
875
863
|
}
|
|
876
|
-
}), Tt = {
|
|
864
|
+
}), Tt = {
|
|
865
|
+
mounted(o) {
|
|
866
|
+
o.addEventListener("click", (t) => {
|
|
867
|
+
var a;
|
|
868
|
+
t.preventDefault(), console.log(o, "scollow");
|
|
869
|
+
const e = (a = o.getAttribute("href")) == null ? void 0 : a.substring(1);
|
|
870
|
+
if (e) {
|
|
871
|
+
const r = document.getElementById(e), n = document.getElementById("editor");
|
|
872
|
+
if (r && n) {
|
|
873
|
+
const d = r.offsetTop - n.offsetTop - 0;
|
|
874
|
+
n.scrollTo({
|
|
875
|
+
top: d,
|
|
876
|
+
behavior: "smooth"
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
}, Vt = { class: "catalogue" }, Dt = ["href", "title"], kt = /* @__PURE__ */ L({
|
|
877
883
|
__name: "Catalogue",
|
|
878
884
|
props: {
|
|
879
885
|
data: { default: () => [] }
|
|
@@ -881,22 +887,26 @@ const je = (o) => window.$http.request({
|
|
|
881
887
|
setup(o) {
|
|
882
888
|
const t = o, e = Q(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
|
|
883
889
|
return (a, r) => {
|
|
884
|
-
const n =
|
|
885
|
-
return
|
|
890
|
+
const n = s("el-divider");
|
|
891
|
+
return c(), x("div", Vt, [
|
|
886
892
|
r[0] || (r[0] = T("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
|
|
887
|
-
(
|
|
888
|
-
class: N("level" +
|
|
889
|
-
key:
|
|
893
|
+
(c(!0), x(S, null, P(e.value, (A) => (c(), x("div", {
|
|
894
|
+
class: N("level" + A.type),
|
|
895
|
+
key: A.value
|
|
890
896
|
}, [
|
|
891
|
-
|
|
897
|
+
A.type === "h2" ? (c(), k(n, {
|
|
892
898
|
key: 0,
|
|
893
899
|
style: { "margin-top": "10px", "margin-bottom": "10px" }
|
|
894
900
|
})) : R("", !0),
|
|
895
|
-
|
|
901
|
+
le((c(), x("a", {
|
|
896
902
|
class: "el-anchor__link",
|
|
897
|
-
href: "#" +
|
|
898
|
-
title:
|
|
899
|
-
},
|
|
903
|
+
href: "#" + A.id,
|
|
904
|
+
title: A.data
|
|
905
|
+
}, [
|
|
906
|
+
E(M(A.data), 1)
|
|
907
|
+
], 8, Dt)), [
|
|
908
|
+
[y(Tt)]
|
|
909
|
+
])
|
|
900
910
|
], 2))), 128))
|
|
901
911
|
]);
|
|
902
912
|
};
|
|
@@ -907,7 +917,7 @@ const Y = (o, t) => {
|
|
|
907
917
|
for (const [a, r] of t)
|
|
908
918
|
e[a] = r;
|
|
909
919
|
return e;
|
|
910
|
-
},
|
|
920
|
+
}, Lt = /* @__PURE__ */ Y(kt, [["__scopeId", "data-v-00cc9080"]]), Et = {
|
|
911
921
|
class: "chart-components"
|
|
912
922
|
}, ye = /* @__PURE__ */ L({
|
|
913
923
|
__name: "Bar",
|
|
@@ -917,8 +927,8 @@ const Y = (o, t) => {
|
|
|
917
927
|
setup(o) {
|
|
918
928
|
const t = o, e = Q(() => t.value.options);
|
|
919
929
|
return V(!1), (a, r) => {
|
|
920
|
-
const n =
|
|
921
|
-
return
|
|
930
|
+
const n = s("TdsChart");
|
|
931
|
+
return c(), x("div", Et, [l(n, {
|
|
922
932
|
option: e.value
|
|
923
933
|
}, null, 8, ["option"])]);
|
|
924
934
|
};
|
|
@@ -931,13 +941,13 @@ const Y = (o, t) => {
|
|
|
931
941
|
setup(o) {
|
|
932
942
|
const t = o, e = Q(() => t.value.options);
|
|
933
943
|
return (a, r) => {
|
|
934
|
-
const n =
|
|
935
|
-
return
|
|
944
|
+
const n = s("TdsChart");
|
|
945
|
+
return c(), x("div", Ut, [
|
|
936
946
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
937
947
|
]);
|
|
938
948
|
};
|
|
939
949
|
}
|
|
940
|
-
}),
|
|
950
|
+
}), Rt = { class: "chart-components" }, Ce = /* @__PURE__ */ L({
|
|
941
951
|
__name: "Pie",
|
|
942
952
|
props: {
|
|
943
953
|
value: {}
|
|
@@ -945,38 +955,38 @@ const Y = (o, t) => {
|
|
|
945
955
|
setup(o) {
|
|
946
956
|
const t = o, e = Q(() => t.value.options);
|
|
947
957
|
return (a, r) => {
|
|
948
|
-
const n =
|
|
949
|
-
return
|
|
958
|
+
const n = s("TdsChart");
|
|
959
|
+
return c(), x("div", Rt, [
|
|
950
960
|
l(n, { option: e.value }, null, 8, ["option"])
|
|
951
961
|
]);
|
|
952
962
|
};
|
|
953
963
|
}
|
|
954
|
-
}),
|
|
964
|
+
}), St = { key: 0 }, ee = /* @__PURE__ */ L({
|
|
955
965
|
__name: "ReportSelect",
|
|
956
966
|
props: {
|
|
957
967
|
value: {}
|
|
958
968
|
},
|
|
959
969
|
emits: ["change"],
|
|
960
970
|
setup(o, { emit: t }) {
|
|
961
|
-
const e = t, a = (
|
|
962
|
-
e("change",
|
|
971
|
+
const e = t, a = (A) => {
|
|
972
|
+
e("change", A);
|
|
963
973
|
}, n = V(o.value);
|
|
964
|
-
return (
|
|
965
|
-
const i =
|
|
966
|
-
return n.value.data ? (
|
|
974
|
+
return (A, d) => {
|
|
975
|
+
const i = s("el-option"), g = s("el-select");
|
|
976
|
+
return n.value.data ? (c(), x("div", St, [
|
|
967
977
|
l(g, {
|
|
968
978
|
modelValue: n.value.value,
|
|
969
|
-
"onUpdate:modelValue":
|
|
979
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => n.value.value = m),
|
|
970
980
|
multiple: "",
|
|
971
981
|
style: { width: "100%" },
|
|
972
982
|
onChange: a,
|
|
973
983
|
placeholder: "全部"
|
|
974
984
|
}, {
|
|
975
985
|
default: u(() => [
|
|
976
|
-
(
|
|
977
|
-
key:
|
|
978
|
-
label:
|
|
979
|
-
value:
|
|
986
|
+
(c(!0), x(S, null, P(n.value.data, (m) => (c(), k(i, {
|
|
987
|
+
key: m.data,
|
|
988
|
+
label: m.label,
|
|
989
|
+
value: m.data
|
|
980
990
|
}, null, 8, ["label", "value"]))), 128))
|
|
981
991
|
]),
|
|
982
992
|
_: 1
|
|
@@ -992,30 +1002,30 @@ const Y = (o, t) => {
|
|
|
992
1002
|
emits: ["change"],
|
|
993
1003
|
setup(o, { emit: t }) {
|
|
994
1004
|
const e = t, r = V(o.value), n = V([]);
|
|
995
|
-
function
|
|
996
|
-
|
|
1005
|
+
function A(d) {
|
|
1006
|
+
d ? (r.value.data[0].start_time = d[0], r.value.data[0].end_time = d[1]) : n.value = [], e("change", n.value);
|
|
997
1007
|
}
|
|
998
|
-
return
|
|
1008
|
+
return ne(() => {
|
|
999
1009
|
n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
|
|
1000
|
-
}), (
|
|
1001
|
-
const g =
|
|
1002
|
-
return
|
|
1010
|
+
}), (d, i) => {
|
|
1011
|
+
const g = s("el-date-picker");
|
|
1012
|
+
return c(), x("div", null, [
|
|
1003
1013
|
l(g, {
|
|
1004
1014
|
modelValue: n.value,
|
|
1005
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1015
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => n.value = m),
|
|
1006
1016
|
type: "datetimerange",
|
|
1007
1017
|
placeholder: "Pick a Date",
|
|
1008
1018
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
1009
1019
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
1010
|
-
onChange:
|
|
1020
|
+
onChange: A,
|
|
1011
1021
|
clearable: !1
|
|
1012
1022
|
}, null, 8, ["modelValue"])
|
|
1013
1023
|
]);
|
|
1014
1024
|
};
|
|
1015
1025
|
}
|
|
1016
1026
|
});
|
|
1017
|
-
function
|
|
1018
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
1027
|
+
function Ot(o) {
|
|
1028
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ae(o);
|
|
1019
1029
|
}
|
|
1020
1030
|
const xe = /* @__PURE__ */ L({
|
|
1021
1031
|
__name: "ReportTable",
|
|
@@ -1025,19 +1035,19 @@ const xe = /* @__PURE__ */ L({
|
|
|
1025
1035
|
setup(o) {
|
|
1026
1036
|
const t = o, e = (a) => {
|
|
1027
1037
|
let r;
|
|
1028
|
-
return l(
|
|
1038
|
+
return l(s("el-table"), {
|
|
1029
1039
|
data: a.data,
|
|
1030
1040
|
border: t.value.options.border,
|
|
1031
1041
|
"show-header": !!t.value.options.showHeader,
|
|
1032
1042
|
stripe: t.value.options.stripe
|
|
1033
|
-
},
|
|
1043
|
+
}, Ot(r = a.showColumn.map((n) => t.value.options.showColumn[n.key] === !0 ? l(s("el-table-column"), {
|
|
1034
1044
|
prop: n.key,
|
|
1035
1045
|
label: n.name
|
|
1036
1046
|
}, null) : null)) ? r : {
|
|
1037
1047
|
default: () => [r]
|
|
1038
1048
|
});
|
|
1039
1049
|
};
|
|
1040
|
-
return (a, r) => (
|
|
1050
|
+
return (a, r) => (c(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
|
|
1041
1051
|
}
|
|
1042
1052
|
}), oe = /* @__PURE__ */ L({
|
|
1043
1053
|
__name: "ReportText",
|
|
@@ -1056,11 +1066,11 @@ const xe = /* @__PURE__ */ L({
|
|
|
1056
1066
|
"text-align": a.textAlign
|
|
1057
1067
|
};
|
|
1058
1068
|
};
|
|
1059
|
-
return (a, r) => (
|
|
1060
|
-
style:
|
|
1069
|
+
return (a, r) => (c(), x("div", {
|
|
1070
|
+
style: Ee(e())
|
|
1061
1071
|
}, M(a.value.data), 5));
|
|
1062
1072
|
}
|
|
1063
|
-
}),
|
|
1073
|
+
}), Pt = { class: "chart-components" }, Be = /* @__PURE__ */ L({
|
|
1064
1074
|
__name: "ReportChart",
|
|
1065
1075
|
props: {
|
|
1066
1076
|
value: {}
|
|
@@ -1071,43 +1081,43 @@ const xe = /* @__PURE__ */ L({
|
|
|
1071
1081
|
e.value.options.series = j([]).series;
|
|
1072
1082
|
const r = [];
|
|
1073
1083
|
let n = "";
|
|
1074
|
-
e.value.data.forEach((
|
|
1075
|
-
n =
|
|
1076
|
-
name:
|
|
1077
|
-
value:
|
|
1084
|
+
e.value.data.forEach((A) => {
|
|
1085
|
+
n = A.data[0].name, r.push({
|
|
1086
|
+
name: A.label,
|
|
1087
|
+
value: A.data[0].value
|
|
1078
1088
|
});
|
|
1079
1089
|
}), gt(e.value.options, r, n);
|
|
1080
1090
|
}
|
|
1081
|
-
if (e.value.type === "pie" && (e.value.options =
|
|
1091
|
+
if (e.value.type === "pie" && (e.value.options = re({ isLegend: !0 }), bt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
|
|
1082
1092
|
let r = [];
|
|
1083
|
-
e.value.data.forEach((
|
|
1084
|
-
r =
|
|
1093
|
+
e.value.data.forEach((d) => {
|
|
1094
|
+
r = d.data.map((i, g) => ({ name: i.name, value: "value" + g }));
|
|
1085
1095
|
});
|
|
1086
1096
|
const n = {
|
|
1087
1097
|
name: "name",
|
|
1088
1098
|
value: r
|
|
1089
|
-
},
|
|
1099
|
+
}, A = e.value.data.map((d) => {
|
|
1090
1100
|
const i = {
|
|
1091
|
-
name:
|
|
1101
|
+
name: d.label
|
|
1092
1102
|
};
|
|
1093
|
-
return r.forEach((g,
|
|
1094
|
-
i[g.value] =
|
|
1103
|
+
return r.forEach((g, m) => {
|
|
1104
|
+
i[g.value] = d.data[m].value;
|
|
1095
1105
|
}), i;
|
|
1096
1106
|
});
|
|
1097
|
-
console.log(Z([], n), "chartsLine([], params)"), e.value.options.series = Z([], n).series, wt(e.value.options,
|
|
1107
|
+
console.log(Z([], n), "chartsLine([], params)"), e.value.options.series = Z([], n).series, wt(e.value.options, A, n);
|
|
1098
1108
|
}
|
|
1099
1109
|
return e.value.options;
|
|
1100
1110
|
});
|
|
1101
1111
|
return (r, n) => {
|
|
1102
|
-
const
|
|
1103
|
-
return
|
|
1104
|
-
l(
|
|
1112
|
+
const A = s("TdsChart");
|
|
1113
|
+
return c(), x("div", Pt, [
|
|
1114
|
+
l(A, { option: a.value }, null, 8, ["option"])
|
|
1105
1115
|
]);
|
|
1106
1116
|
};
|
|
1107
1117
|
}
|
|
1108
1118
|
});
|
|
1109
|
-
function
|
|
1110
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
1119
|
+
function Qt(o) {
|
|
1120
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ae(o);
|
|
1111
1121
|
}
|
|
1112
1122
|
const Te = /* @__PURE__ */ L({
|
|
1113
1123
|
__name: "ReportDescribe",
|
|
@@ -1117,12 +1127,12 @@ const Te = /* @__PURE__ */ L({
|
|
|
1117
1127
|
setup(o) {
|
|
1118
1128
|
const t = o, e = (a) => {
|
|
1119
1129
|
let r;
|
|
1120
|
-
return l(
|
|
1130
|
+
return l(s("el-descriptions"), {
|
|
1121
1131
|
title: t.value.options.title,
|
|
1122
1132
|
border: t.value.options.border,
|
|
1123
1133
|
column: t.value.options.column,
|
|
1124
1134
|
direction: t.value.options.direction
|
|
1125
|
-
},
|
|
1135
|
+
}, Qt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
|
|
1126
1136
|
label: n.name
|
|
1127
1137
|
}, {
|
|
1128
1138
|
default: () => [t.value.data[n.key]]
|
|
@@ -1130,25 +1140,25 @@ const Te = /* @__PURE__ */ L({
|
|
|
1130
1140
|
default: () => [r]
|
|
1131
1141
|
});
|
|
1132
1142
|
};
|
|
1133
|
-
return (a, r) => (
|
|
1143
|
+
return (a, r) => (c(), x("div", null, [l(e, pe(de(a.value)), null, 16)]));
|
|
1134
1144
|
}
|
|
1135
|
-
}),
|
|
1145
|
+
}), It = {
|
|
1136
1146
|
class: "editor-box"
|
|
1137
|
-
},
|
|
1147
|
+
}, Ft = {
|
|
1138
1148
|
class: "editor",
|
|
1139
1149
|
id: "editor",
|
|
1140
1150
|
style: {
|
|
1141
1151
|
width: "100%"
|
|
1142
1152
|
}
|
|
1143
|
-
}, Ft = {
|
|
1144
|
-
class: "editor-content flex flex-start"
|
|
1145
1153
|
}, Kt = {
|
|
1154
|
+
class: "editor-content flex flex-start"
|
|
1155
|
+
}, Mt = {
|
|
1146
1156
|
style: {
|
|
1147
1157
|
"margin-left": "auto"
|
|
1148
1158
|
}
|
|
1149
|
-
},
|
|
1159
|
+
}, qt = ["id"], Ht = ["innerHTML"], zt = /* @__PURE__ */ L({
|
|
1150
1160
|
__name: "index",
|
|
1151
|
-
props: /* @__PURE__ */
|
|
1161
|
+
props: /* @__PURE__ */ ce({
|
|
1152
1162
|
reportId: {
|
|
1153
1163
|
type: String,
|
|
1154
1164
|
default: ""
|
|
@@ -1169,11 +1179,11 @@ const Te = /* @__PURE__ */ L({
|
|
|
1169
1179
|
ReportText: oe,
|
|
1170
1180
|
ReportChart: Be,
|
|
1171
1181
|
ReportDescribe: Te
|
|
1172
|
-
}, a = I(), r = o, n =
|
|
1173
|
-
function
|
|
1182
|
+
}, a = I(), r = o, n = me(o, "modelValue"), A = V([]), d = V([]), i = V([]), g = V(""), m = V("");
|
|
1183
|
+
function b() {
|
|
1174
1184
|
n.value = "table";
|
|
1175
1185
|
}
|
|
1176
|
-
async function
|
|
1186
|
+
async function v(p) {
|
|
1177
1187
|
Me({
|
|
1178
1188
|
title: "提示",
|
|
1179
1189
|
message: "正在生成导出中,请稍等...",
|
|
@@ -1184,56 +1194,56 @@ const Te = /* @__PURE__ */ L({
|
|
|
1184
1194
|
select_data: i.value,
|
|
1185
1195
|
report_uuid: r.reportId,
|
|
1186
1196
|
start_time: g.value,
|
|
1187
|
-
end_time:
|
|
1197
|
+
end_time: m.value
|
|
1188
1198
|
}, B = await vt(D), K = p === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
1189
1199
|
Ze(B.file_data, B.file_name, K);
|
|
1190
1200
|
}
|
|
1191
|
-
const
|
|
1192
|
-
i.value = p,
|
|
1193
|
-
},
|
|
1194
|
-
p && p.length > 0 && (g.value = p[0],
|
|
1195
|
-
},
|
|
1201
|
+
const w = (p) => {
|
|
1202
|
+
i.value = p, _();
|
|
1203
|
+
}, h = (p) => {
|
|
1204
|
+
p && p.length > 0 && (g.value = p[0], m.value = p[1]), _();
|
|
1205
|
+
}, _ = async () => {
|
|
1196
1206
|
try {
|
|
1197
1207
|
t.value = !0;
|
|
1198
1208
|
const p = {
|
|
1199
1209
|
report_uuid: r.reportId,
|
|
1200
1210
|
start_time: g.value,
|
|
1201
|
-
end_time:
|
|
1211
|
+
end_time: m.value,
|
|
1202
1212
|
select_data: i.value.join(",")
|
|
1203
1213
|
}, D = await We(p), B = [];
|
|
1204
1214
|
D.data.forEach((K) => {
|
|
1205
1215
|
(K.type === "report-select" || K.type === "range-time") && B.push(K);
|
|
1206
|
-
}),
|
|
1216
|
+
}), A.value = B, D.data.splice(0, A.value.length), d.value = D.data, t.value = !1;
|
|
1207
1217
|
} catch (p) {
|
|
1208
1218
|
t.value = !1, console.error("Error setting loading state:", p);
|
|
1209
1219
|
}
|
|
1210
1220
|
};
|
|
1211
|
-
|
|
1212
|
-
const
|
|
1221
|
+
_();
|
|
1222
|
+
const C = () => l("div", null, [E("未找到对应组件")]), f = (p) => p === "h2" || p === "h3" || p === "h4" ? F(e, "ReportText") : p === "bar" || p === "pie" || p === "line" ? F(e, "ReportChart") : p ? F(e, p) : l(C, null, null);
|
|
1213
1223
|
return (p, D) => {
|
|
1214
|
-
const B =
|
|
1215
|
-
return
|
|
1224
|
+
const B = s("el-button"), K = s("el-card"), Le = fe("loading");
|
|
1225
|
+
return le((c(), k(K, {
|
|
1216
1226
|
class: "editor view",
|
|
1217
1227
|
"element-loading-text": "加载中..."
|
|
1218
1228
|
}, {
|
|
1219
|
-
default: u(() => [T("div",
|
|
1220
|
-
data:
|
|
1221
|
-
}, null, 8, ["data"]), T("div",
|
|
1229
|
+
default: u(() => [T("div", It, [l(Lt, {
|
|
1230
|
+
data: d.value
|
|
1231
|
+
}, null, 8, ["data"]), T("div", Ft, [T("div", Kt, [(c(!0), x(S, null, P(A.value, (U) => (c(), x("div", {
|
|
1222
1232
|
class: "item-input",
|
|
1223
|
-
key:
|
|
1224
|
-
}, [
|
|
1233
|
+
key: U.id
|
|
1234
|
+
}, [U.type === "report-select" ? (c(), k(ee, {
|
|
1225
1235
|
key: 0,
|
|
1226
|
-
onChange:
|
|
1227
|
-
value:
|
|
1228
|
-
}, null, 8, ["value"])) : R("", !0),
|
|
1236
|
+
onChange: w,
|
|
1237
|
+
value: U
|
|
1238
|
+
}, null, 8, ["value"])) : R("", !0), U.type === "range-time" && y(a).filterForm.range_time ? (c(), k(te, {
|
|
1229
1239
|
key: 1,
|
|
1230
|
-
onChange:
|
|
1231
|
-
value:
|
|
1232
|
-
}, null, 8, ["value"])) : R("", !0)]))), 128)), T("div",
|
|
1240
|
+
onChange: h,
|
|
1241
|
+
value: U
|
|
1242
|
+
}, null, 8, ["value"])) : R("", !0)]))), 128)), T("div", Mt, [D[5] || (D[5] = T("span", {
|
|
1233
1243
|
class: "font-export"
|
|
1234
1244
|
}, "导出为:", -1)), l(B, {
|
|
1235
1245
|
link: "",
|
|
1236
|
-
onClick: D[0] || (D[0] = (
|
|
1246
|
+
onClick: D[0] || (D[0] = (U) => v(1)),
|
|
1237
1247
|
title: "PDF",
|
|
1238
1248
|
type: "primary",
|
|
1239
1249
|
class: "custom-btn"
|
|
@@ -1249,7 +1259,7 @@ const Te = /* @__PURE__ */ L({
|
|
|
1249
1259
|
_: 1
|
|
1250
1260
|
}), l(B, {
|
|
1251
1261
|
link: "",
|
|
1252
|
-
onClick: D[1] || (D[1] = (
|
|
1262
|
+
onClick: D[1] || (D[1] = (U) => v(3)),
|
|
1253
1263
|
title: "WORD",
|
|
1254
1264
|
type: "primary",
|
|
1255
1265
|
class: "custom-btn",
|
|
@@ -1268,40 +1278,40 @@ const Te = /* @__PURE__ */ L({
|
|
|
1268
1278
|
_: 1
|
|
1269
1279
|
}), l(B, {
|
|
1270
1280
|
plain: "",
|
|
1271
|
-
onClick:
|
|
1281
|
+
onClick: b,
|
|
1272
1282
|
type: "primary",
|
|
1273
1283
|
class: "custom-btn exit-preview",
|
|
1274
1284
|
style: {
|
|
1275
1285
|
"margin-left": "auto"
|
|
1276
1286
|
}
|
|
1277
1287
|
}, {
|
|
1278
|
-
default: u(() => D[4] || (D[4] = [
|
|
1288
|
+
default: u(() => D[4] || (D[4] = [E("退出预览")])),
|
|
1279
1289
|
_: 1
|
|
1280
|
-
})])]), (
|
|
1281
|
-
key:
|
|
1282
|
-
class: N(["editor-content", ["editor" +
|
|
1283
|
-
id:
|
|
1284
|
-
}, [
|
|
1290
|
+
})])]), (c(!0), x(S, null, P(d.value, (U) => (c(), x("div", {
|
|
1291
|
+
key: U.id,
|
|
1292
|
+
class: N(["editor-content", ["editor" + U.type]]),
|
|
1293
|
+
id: U.id
|
|
1294
|
+
}, [U.type !== "p" ? (c(), k(G(f(U.type)), {
|
|
1285
1295
|
key: 0,
|
|
1286
|
-
class: N(["editor" +
|
|
1287
|
-
value:
|
|
1296
|
+
class: N(["editor" + U.type]),
|
|
1297
|
+
value: U
|
|
1288
1298
|
}, {
|
|
1289
|
-
default: u(() => [
|
|
1299
|
+
default: u(() => [E(M(U.data), 1)]),
|
|
1290
1300
|
_: 2
|
|
1291
|
-
}, 1032, ["class", "value"])) : (
|
|
1301
|
+
}, 1032, ["class", "value"])) : (c(), x("p", {
|
|
1292
1302
|
key: 1,
|
|
1293
|
-
innerHTML:
|
|
1294
|
-
}, null, 8,
|
|
1303
|
+
innerHTML: U.data
|
|
1304
|
+
}, null, 8, Ht))], 10, qt))), 128))])])]),
|
|
1295
1305
|
_: 1
|
|
1296
1306
|
})), [[Le, t.value]]);
|
|
1297
1307
|
};
|
|
1298
1308
|
}
|
|
1299
1309
|
});
|
|
1300
|
-
const Ve = /* @__PURE__ */ Y(
|
|
1310
|
+
const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
1301
1311
|
class: "editor"
|
|
1302
|
-
},
|
|
1312
|
+
}, Yt = {
|
|
1303
1313
|
class: "editor-content edit"
|
|
1304
|
-
},
|
|
1314
|
+
}, Gt = ["onClick"], Xt = ["onClick"], Jt = ["innerHTML", "draggable"], Zt = /* @__PURE__ */ L({
|
|
1305
1315
|
__name: "Editor",
|
|
1306
1316
|
setup(o) {
|
|
1307
1317
|
const t = {
|
|
@@ -1319,59 +1329,59 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1319
1329
|
activeComponents: a,
|
|
1320
1330
|
notDraggableList: r,
|
|
1321
1331
|
titleComponent: n
|
|
1322
|
-
} = Ke(I()),
|
|
1323
|
-
e.value.forEach((
|
|
1324
|
-
|
|
1332
|
+
} = Ke(I()), A = I(), d = (C) => {
|
|
1333
|
+
e.value.forEach((f, p) => {
|
|
1334
|
+
f.id === C && (e.value.splice(p, 1), A.activeComponents = []);
|
|
1325
1335
|
});
|
|
1326
|
-
}, i = (
|
|
1327
|
-
|
|
1328
|
-
}, g = () => l("div", null, [
|
|
1329
|
-
console.log(
|
|
1330
|
-
},
|
|
1331
|
-
|
|
1332
|
-
},
|
|
1333
|
-
|
|
1334
|
-
},
|
|
1335
|
-
return (
|
|
1336
|
-
const p =
|
|
1337
|
-
return
|
|
1336
|
+
}, i = (C) => {
|
|
1337
|
+
A.setActiveComponents(C);
|
|
1338
|
+
}, g = () => l("div", null, [E("未找到对应组件")]), m = (C) => C === "h2" || C === "h3" || C === "h4" ? F(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? F(t, "ReportChart") : C ? F(t, C) : l(g, null, null), b = (C) => {
|
|
1339
|
+
console.log(C, "evt");
|
|
1340
|
+
}, v = V(!1), w = () => {
|
|
1341
|
+
v.value = !0;
|
|
1342
|
+
}, h = (C) => {
|
|
1343
|
+
C.newIndex !== 0 && (console.log(C), v.value = !1);
|
|
1344
|
+
}, _ = V();
|
|
1345
|
+
return (C, f) => {
|
|
1346
|
+
const p = s("CircleClose"), D = s("el-icon");
|
|
1347
|
+
return c(), x("div", Nt, [T("div", {
|
|
1338
1348
|
class: N(["editor-content edit flex flex-start", [{
|
|
1339
|
-
active:
|
|
1349
|
+
active: y(a).id === "filter"
|
|
1340
1350
|
}]]),
|
|
1341
|
-
onClick:
|
|
1351
|
+
onClick: f[0] || (f[0] = (B) => i({
|
|
1342
1352
|
id: "filter",
|
|
1343
1353
|
type: "filter"
|
|
1344
1354
|
}))
|
|
1345
|
-
}, [(
|
|
1355
|
+
}, [(c(!0), x(S, null, P(y(r), (B) => (c(), x("div", {
|
|
1346
1356
|
class: "item-input",
|
|
1347
1357
|
key: B.id
|
|
1348
|
-
}, [B.type === "report-select" || B.type === "range-time" &&
|
|
1358
|
+
}, [B.type === "report-select" || B.type === "range-time" && y(A).filterForm.range_time ? (c(), k(G(y(F)(t, B.type)), {
|
|
1349
1359
|
key: 0,
|
|
1350
1360
|
value: B
|
|
1351
1361
|
}, {
|
|
1352
|
-
default: u(() => [
|
|
1362
|
+
default: u(() => [E(M(B.data), 1)]),
|
|
1353
1363
|
_: 2
|
|
1354
|
-
}, 1032, ["value"])) : R("", !0)]))), 128))], 2), T("div",
|
|
1355
|
-
value:
|
|
1356
|
-
onClick:
|
|
1357
|
-
}, null, 8, ["value"])]), l(
|
|
1364
|
+
}, 1032, ["value"])) : R("", !0)]))), 128))], 2), T("div", Yt, [l(oe, {
|
|
1365
|
+
value: y(n),
|
|
1366
|
+
onClick: f[1] || (f[1] = (B) => i(y(n)))
|
|
1367
|
+
}, null, 8, ["value"])]), l(y(He), {
|
|
1358
1368
|
ref_key: "el",
|
|
1359
|
-
ref:
|
|
1360
|
-
modelValue:
|
|
1361
|
-
"onUpdate:modelValue":
|
|
1362
|
-
"on-change":
|
|
1369
|
+
ref: _,
|
|
1370
|
+
modelValue: y(e),
|
|
1371
|
+
"onUpdate:modelValue": f[2] || (f[2] = (B) => Ue(e) ? e.value = B : null),
|
|
1372
|
+
"on-change": b,
|
|
1363
1373
|
animation: 150,
|
|
1364
|
-
onStart:
|
|
1365
|
-
onEnd:
|
|
1374
|
+
onStart: w,
|
|
1375
|
+
onEnd: h
|
|
1366
1376
|
}, {
|
|
1367
|
-
default: u(() => [(
|
|
1377
|
+
default: u(() => [(c(!0), x(S, null, P(y(e), (B) => (c(), x("div", {
|
|
1368
1378
|
key: B.id,
|
|
1369
1379
|
class: N(["editor-content edit", ["editor" + B.type, {
|
|
1370
|
-
active: B.id ===
|
|
1380
|
+
active: B.id === y(a).id
|
|
1371
1381
|
}]]),
|
|
1372
1382
|
onClick: (K) => i(B)
|
|
1373
1383
|
}, [T("i", {
|
|
1374
|
-
onClick: Re((K) =>
|
|
1384
|
+
onClick: Re((K) => d(B.id), ["stop"]),
|
|
1375
1385
|
style: {
|
|
1376
1386
|
"z-index": "99"
|
|
1377
1387
|
}
|
|
@@ -1381,63 +1391,63 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1381
1391
|
}, {
|
|
1382
1392
|
default: u(() => [l(p)]),
|
|
1383
1393
|
_: 1
|
|
1384
|
-
})], 8,
|
|
1394
|
+
})], 8, Xt), B.type !== "p" ? (c(), k(G(m(B.type)), {
|
|
1385
1395
|
key: 0,
|
|
1386
1396
|
class: N(["editor" + B.type]),
|
|
1387
1397
|
value: B,
|
|
1388
|
-
draggable:
|
|
1398
|
+
draggable: v.value
|
|
1389
1399
|
}, {
|
|
1390
|
-
default: u(() => [
|
|
1400
|
+
default: u(() => [E(M(B.data), 1)]),
|
|
1391
1401
|
_: 2
|
|
1392
|
-
}, 1032, ["class", "value", "draggable"])) : (
|
|
1402
|
+
}, 1032, ["class", "value", "draggable"])) : (c(), x("p", {
|
|
1393
1403
|
key: 1,
|
|
1394
1404
|
innerHTML: B.data,
|
|
1395
|
-
draggable:
|
|
1396
|
-
}, null, 8,
|
|
1405
|
+
draggable: v.value
|
|
1406
|
+
}, null, 8, Jt))], 10, Gt))), 128))]),
|
|
1397
1407
|
_: 1
|
|
1398
1408
|
}, 8, ["modelValue"])]);
|
|
1399
1409
|
};
|
|
1400
1410
|
}
|
|
1401
|
-
}),
|
|
1411
|
+
}), jt = { class: "label" }, Wt = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, eo = { class: "flex item-switch" }, De = /* @__PURE__ */ L({
|
|
1402
1412
|
__name: "SettingTable",
|
|
1403
1413
|
setup(o) {
|
|
1404
1414
|
const t = I(), e = Q(() => t.getActiveComponents);
|
|
1405
1415
|
return (a, r) => {
|
|
1406
|
-
const n =
|
|
1407
|
-
return
|
|
1408
|
-
l(
|
|
1416
|
+
const n = s("el-switch"), A = s("el-form-item"), d = s("el-divider");
|
|
1417
|
+
return c(), x("div", null, [
|
|
1418
|
+
l(A, { label: "控制列" }, {
|
|
1409
1419
|
default: u(() => [
|
|
1410
|
-
(
|
|
1420
|
+
(c(!0), x(S, null, P(e.value.showColumn, (i, g) => (c(), x("p", {
|
|
1411
1421
|
class: "flex item-switch",
|
|
1412
1422
|
key: g
|
|
1413
1423
|
}, [
|
|
1414
|
-
T("span",
|
|
1424
|
+
T("span", jt, M(i.name), 1),
|
|
1415
1425
|
l(n, {
|
|
1416
1426
|
modelValue: e.value.options.showColumn[i.key],
|
|
1417
|
-
"onUpdate:modelValue": (
|
|
1427
|
+
"onUpdate:modelValue": (m) => e.value.options.showColumn[i.key] = m
|
|
1418
1428
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1419
1429
|
]))), 128))
|
|
1420
1430
|
]),
|
|
1421
1431
|
_: 1
|
|
1422
1432
|
}),
|
|
1423
|
-
l(
|
|
1424
|
-
l(
|
|
1433
|
+
l(d),
|
|
1434
|
+
l(A, { label: "表格样式" }, {
|
|
1425
1435
|
default: u(() => [
|
|
1426
|
-
T("p",
|
|
1436
|
+
T("p", Wt, [
|
|
1427
1437
|
r[3] || (r[3] = T("span", { class: "label" }, "斑马纹", -1)),
|
|
1428
1438
|
l(n, {
|
|
1429
1439
|
modelValue: e.value.options.stripe,
|
|
1430
1440
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
|
|
1431
1441
|
}, null, 8, ["modelValue"])
|
|
1432
1442
|
]),
|
|
1433
|
-
T("p",
|
|
1443
|
+
T("p", $t, [
|
|
1434
1444
|
r[4] || (r[4] = T("span", { class: "label" }, "边框", -1)),
|
|
1435
1445
|
l(n, {
|
|
1436
1446
|
modelValue: e.value.options.border,
|
|
1437
1447
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
|
|
1438
1448
|
}, null, 8, ["modelValue"])
|
|
1439
1449
|
]),
|
|
1440
|
-
T("p",
|
|
1450
|
+
T("p", eo, [
|
|
1441
1451
|
r[5] || (r[5] = T("span", { class: "label" }, "表头", -1)),
|
|
1442
1452
|
l(n, {
|
|
1443
1453
|
modelValue: e.value.options.showHeader,
|
|
@@ -1450,7 +1460,7 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1450
1460
|
]);
|
|
1451
1461
|
};
|
|
1452
1462
|
}
|
|
1453
|
-
}),
|
|
1463
|
+
}), to = { key: 0 }, oo = /* @__PURE__ */ L({
|
|
1454
1464
|
__name: "ChartsUniConfig",
|
|
1455
1465
|
setup(o) {
|
|
1456
1466
|
const t = I(), e = Q(() => t.activeComponents);
|
|
@@ -1458,41 +1468,41 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1458
1468
|
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);
|
|
1459
1469
|
}
|
|
1460
1470
|
return V("rgb(46, 145, 255)"), (r, n) => {
|
|
1461
|
-
const
|
|
1462
|
-
return e.value.options.title ? (
|
|
1463
|
-
l(
|
|
1471
|
+
const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"), g = s("el-col"), m = s("el-color-picker"), b = s("el-input-number"), v = s("el-row"), w = s("el-collapse-item"), h = s("el-collapse");
|
|
1472
|
+
return e.value.options.title ? (c(), x("div", to, [
|
|
1473
|
+
l(d, { label: "标题" }, {
|
|
1464
1474
|
default: u(() => [
|
|
1465
|
-
l(
|
|
1475
|
+
l(A, {
|
|
1466
1476
|
modelValue: e.value.options.title.text,
|
|
1467
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1477
|
+
"onUpdate:modelValue": n[0] || (n[0] = (_) => e.value.options.title.text = _)
|
|
1468
1478
|
}, null, 8, ["modelValue"])
|
|
1469
1479
|
]),
|
|
1470
1480
|
_: 1
|
|
1471
1481
|
}),
|
|
1472
|
-
l(
|
|
1482
|
+
l(h, null, {
|
|
1473
1483
|
default: u(() => [
|
|
1474
|
-
l(
|
|
1484
|
+
l(w, {
|
|
1475
1485
|
title: "标题配置",
|
|
1476
1486
|
name: "1"
|
|
1477
1487
|
}, {
|
|
1478
1488
|
default: u(() => [
|
|
1479
|
-
l(
|
|
1489
|
+
l(v, { class: "w-100%" }, {
|
|
1480
1490
|
default: u(() => [
|
|
1481
1491
|
l(g, { span: 24 }, {
|
|
1482
1492
|
default: u(() => [
|
|
1483
1493
|
n[8] || (n[8] = T("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1484
1494
|
l(i, {
|
|
1485
1495
|
modelValue: e.value.options.title.show,
|
|
1486
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1496
|
+
"onUpdate:modelValue": n[1] || (n[1] = (_) => e.value.options.title.show = _)
|
|
1487
1497
|
}, null, 8, ["modelValue"])
|
|
1488
1498
|
]),
|
|
1489
1499
|
_: 1
|
|
1490
1500
|
}),
|
|
1491
1501
|
l(g, { span: 12 }, {
|
|
1492
1502
|
default: u(() => [
|
|
1493
|
-
l(
|
|
1503
|
+
l(m, {
|
|
1494
1504
|
modelValue: e.value.options.title.textStyle.color,
|
|
1495
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1505
|
+
"onUpdate:modelValue": n[2] || (n[2] = (_) => e.value.options.title.textStyle.color = _),
|
|
1496
1506
|
"show-alpha": ""
|
|
1497
1507
|
}, null, 8, ["modelValue"]),
|
|
1498
1508
|
n[9] || (n[9] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
@@ -1501,9 +1511,9 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1501
1511
|
}),
|
|
1502
1512
|
l(g, { span: 12 }, {
|
|
1503
1513
|
default: u(() => [
|
|
1504
|
-
l(
|
|
1514
|
+
l(b, {
|
|
1505
1515
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1506
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
1516
|
+
"onUpdate:modelValue": n[3] || (n[3] = (_) => e.value.options.title.textStyle.fontSize = _),
|
|
1507
1517
|
"controls-position": "right"
|
|
1508
1518
|
}, null, 8, ["modelValue"]),
|
|
1509
1519
|
n[10] || (n[10] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
@@ -1512,9 +1522,9 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1512
1522
|
}),
|
|
1513
1523
|
l(g, { span: 12 }, {
|
|
1514
1524
|
default: u(() => [
|
|
1515
|
-
l(
|
|
1525
|
+
l(b, {
|
|
1516
1526
|
modelValue: e.value.options.title.x,
|
|
1517
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
1527
|
+
"onUpdate:modelValue": n[4] || (n[4] = (_) => e.value.options.title.x = _),
|
|
1518
1528
|
"controls-position": "right"
|
|
1519
1529
|
}, null, 8, ["modelValue"]),
|
|
1520
1530
|
n[11] || (n[11] = T("p", { class: "sub-title" }, "横向", -1))
|
|
@@ -1523,9 +1533,9 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1523
1533
|
}),
|
|
1524
1534
|
l(g, { span: 12 }, {
|
|
1525
1535
|
default: u(() => [
|
|
1526
|
-
l(
|
|
1536
|
+
l(b, {
|
|
1527
1537
|
modelValue: e.value.options.title.y,
|
|
1528
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
1538
|
+
"onUpdate:modelValue": n[5] || (n[5] = (_) => e.value.options.title.y = _),
|
|
1529
1539
|
"controls-position": "right"
|
|
1530
1540
|
}, null, 8, ["modelValue"]),
|
|
1531
1541
|
n[12] || (n[12] = T("p", { class: "sub-title" }, "纵向", -1))
|
|
@@ -1538,12 +1548,12 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1538
1548
|
]),
|
|
1539
1549
|
_: 1
|
|
1540
1550
|
}),
|
|
1541
|
-
l(
|
|
1551
|
+
l(w, {
|
|
1542
1552
|
title: "图形配置",
|
|
1543
1553
|
name: "2"
|
|
1544
1554
|
}, {
|
|
1545
1555
|
default: u(() => [
|
|
1546
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (
|
|
1556
|
+
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (c(), k(v, { key: 0 }, {
|
|
1547
1557
|
default: u(() => [
|
|
1548
1558
|
l(g, { span: 24 }, {
|
|
1549
1559
|
default: u(() => [
|
|
@@ -1551,7 +1561,7 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1551
1561
|
l(i, {
|
|
1552
1562
|
onChange: a,
|
|
1553
1563
|
modelValue: e.value.options.series[0].roseType,
|
|
1554
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
1564
|
+
"onUpdate:modelValue": n[6] || (n[6] = (_) => e.value.options.series[0].roseType = _)
|
|
1555
1565
|
}, null, 8, ["modelValue"])
|
|
1556
1566
|
]),
|
|
1557
1567
|
_: 1
|
|
@@ -1562,20 +1572,20 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1562
1572
|
]),
|
|
1563
1573
|
_: 1
|
|
1564
1574
|
}),
|
|
1565
|
-
l(
|
|
1575
|
+
l(w, {
|
|
1566
1576
|
title: "图例配置",
|
|
1567
1577
|
name: "3"
|
|
1568
1578
|
}, {
|
|
1569
1579
|
default: u(() => [
|
|
1570
|
-
l(
|
|
1580
|
+
l(v, null, {
|
|
1571
1581
|
default: u(() => [
|
|
1572
1582
|
l(g, { span: 24 }, {
|
|
1573
1583
|
default: u(() => [
|
|
1574
1584
|
n[14] || (n[14] = T("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1575
|
-
e.value.options.legend ? (
|
|
1585
|
+
e.value.options.legend ? (c(), k(i, {
|
|
1576
1586
|
key: 0,
|
|
1577
1587
|
modelValue: e.value.options.legend.show,
|
|
1578
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
1588
|
+
"onUpdate:modelValue": n[7] || (n[7] = (_) => e.value.options.legend.show = _)
|
|
1579
1589
|
}, null, 8, ["modelValue"])) : R("", !0)
|
|
1580
1590
|
]),
|
|
1581
1591
|
_: 1
|
|
@@ -1593,36 +1603,36 @@ const Ve = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-a8c32bde"]]), zt = {
|
|
|
1593
1603
|
};
|
|
1594
1604
|
}
|
|
1595
1605
|
});
|
|
1596
|
-
const
|
|
1606
|
+
const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @__PURE__ */ L({
|
|
1597
1607
|
__name: "SettingDescribe",
|
|
1598
1608
|
setup(o) {
|
|
1599
1609
|
const t = I(), e = Q(() => t.getActiveComponents);
|
|
1600
1610
|
return (a, r) => {
|
|
1601
|
-
const n =
|
|
1602
|
-
return
|
|
1603
|
-
l(
|
|
1611
|
+
const n = s("el-input"), A = s("el-form-item"), d = s("el-switch"), i = s("el-input-number"), g = s("el-radio"), m = s("el-radio-group");
|
|
1612
|
+
return c(), x("div", null, [
|
|
1613
|
+
l(A, { label: "标题" }, {
|
|
1604
1614
|
default: u(() => [
|
|
1605
1615
|
l(n, {
|
|
1606
1616
|
modelValue: e.value.options.title,
|
|
1607
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1617
|
+
"onUpdate:modelValue": r[0] || (r[0] = (b) => e.value.options.title = b)
|
|
1608
1618
|
}, null, 8, ["modelValue"])
|
|
1609
1619
|
]),
|
|
1610
1620
|
_: 1
|
|
1611
1621
|
}),
|
|
1612
|
-
l(
|
|
1622
|
+
l(A, { label: "边框" }, {
|
|
1613
1623
|
default: u(() => [
|
|
1614
|
-
l(
|
|
1624
|
+
l(d, {
|
|
1615
1625
|
modelValue: e.value.options.border,
|
|
1616
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1626
|
+
"onUpdate:modelValue": r[1] || (r[1] = (b) => e.value.options.border = b)
|
|
1617
1627
|
}, null, 8, ["modelValue"])
|
|
1618
1628
|
]),
|
|
1619
1629
|
_: 1
|
|
1620
1630
|
}),
|
|
1621
|
-
l(
|
|
1631
|
+
l(A, { label: "每行展示数量" }, {
|
|
1622
1632
|
default: u(() => [
|
|
1623
1633
|
l(i, {
|
|
1624
1634
|
modelValue: e.value.options.column,
|
|
1625
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1635
|
+
"onUpdate:modelValue": r[2] || (r[2] = (b) => e.value.options.column = b),
|
|
1626
1636
|
min: 1,
|
|
1627
1637
|
max: 10,
|
|
1628
1638
|
controls: !1
|
|
@@ -1630,22 +1640,22 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1630
1640
|
]),
|
|
1631
1641
|
_: 1
|
|
1632
1642
|
}),
|
|
1633
|
-
l(
|
|
1643
|
+
l(A, { label: "排列方向" }, {
|
|
1634
1644
|
default: u(() => [
|
|
1635
|
-
l(
|
|
1645
|
+
l(m, {
|
|
1636
1646
|
modelValue: e.value.options.direction,
|
|
1637
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
1647
|
+
"onUpdate:modelValue": r[3] || (r[3] = (b) => e.value.options.direction = b)
|
|
1638
1648
|
}, {
|
|
1639
1649
|
default: u(() => [
|
|
1640
1650
|
l(g, { value: "horizontal" }, {
|
|
1641
1651
|
default: u(() => r[4] || (r[4] = [
|
|
1642
|
-
|
|
1652
|
+
E("横向")
|
|
1643
1653
|
])),
|
|
1644
1654
|
_: 1
|
|
1645
1655
|
}),
|
|
1646
1656
|
l(g, { value: "vertical" }, {
|
|
1647
1657
|
default: u(() => r[5] || (r[5] = [
|
|
1648
|
-
|
|
1658
|
+
E("纵向")
|
|
1649
1659
|
])),
|
|
1650
1660
|
_: 1
|
|
1651
1661
|
})
|
|
@@ -1658,7 +1668,7 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1658
1668
|
]);
|
|
1659
1669
|
};
|
|
1660
1670
|
}
|
|
1661
|
-
}),
|
|
1671
|
+
}), no = /* @__PURE__ */ L({
|
|
1662
1672
|
__name: "SettingCharts",
|
|
1663
1673
|
setup(o) {
|
|
1664
1674
|
const t = I(), e = V(!1), a = Q(() => t.getActiveComponents), r = [
|
|
@@ -1667,70 +1677,70 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1667
1677
|
{ value: "line", name: "趋势图" },
|
|
1668
1678
|
{ value: "pie", name: "扇形图" },
|
|
1669
1679
|
{ value: "bar", name: "柱状图" }
|
|
1670
|
-
], n = V(""),
|
|
1671
|
-
async function
|
|
1672
|
-
const
|
|
1680
|
+
], n = V(""), A = V();
|
|
1681
|
+
async function d(m) {
|
|
1682
|
+
const b = await ge({
|
|
1673
1683
|
prod_type: window.$prodType,
|
|
1674
|
-
chart_type:
|
|
1684
|
+
chart_type: m,
|
|
1675
1685
|
filter_uuid: t.filterForm.filter_uuid
|
|
1676
1686
|
});
|
|
1677
|
-
|
|
1687
|
+
A.value = b.data;
|
|
1678
1688
|
}
|
|
1679
|
-
function i(
|
|
1680
|
-
let
|
|
1681
|
-
const
|
|
1682
|
-
if (
|
|
1683
|
-
let
|
|
1684
|
-
|
|
1685
|
-
|
|
1689
|
+
function i(m) {
|
|
1690
|
+
let b = A.value.find((w) => w.rp_item_uuid === m);
|
|
1691
|
+
const v = b.rp_item_content;
|
|
1692
|
+
if (b.rp_item_content.type === "bar" && (v.options = j()), v.type === "pie" && (v.options = re({ isLegend: !0 })), v.type === "line") {
|
|
1693
|
+
let w = [];
|
|
1694
|
+
v.data.forEach((_) => {
|
|
1695
|
+
w = _.data.map((C, f) => ({ name: C.name, value: "value" + f }));
|
|
1686
1696
|
});
|
|
1687
|
-
const
|
|
1697
|
+
const h = {
|
|
1688
1698
|
name: "name",
|
|
1689
|
-
value:
|
|
1699
|
+
value: w
|
|
1690
1700
|
};
|
|
1691
|
-
|
|
1701
|
+
v.options = Z([], h);
|
|
1692
1702
|
}
|
|
1693
|
-
if (
|
|
1694
|
-
const
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
}),
|
|
1703
|
+
if (v.type === "report-table") {
|
|
1704
|
+
const w = {};
|
|
1705
|
+
v.showColumn.forEach((h) => {
|
|
1706
|
+
w[h.key] = !0;
|
|
1707
|
+
}), v.options = { ...v.options, showColumn: w, border: !0, showHeader: !0, stripe: !1 };
|
|
1698
1708
|
}
|
|
1699
|
-
|
|
1709
|
+
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 = b.rp_item_uuid;
|
|
1700
1710
|
}
|
|
1701
|
-
|
|
1702
|
-
n.value = a.value.type, await
|
|
1711
|
+
ne(async () => {
|
|
1712
|
+
n.value = a.value.type, await d(n.value);
|
|
1703
1713
|
});
|
|
1704
|
-
async function g(
|
|
1714
|
+
async function g(m) {
|
|
1705
1715
|
try {
|
|
1706
|
-
e.value = !0, await
|
|
1716
|
+
e.value = !0, await d(m), Object.assign(t.activeComponents, Bt(m)), e.value = !1;
|
|
1707
1717
|
} catch {
|
|
1708
1718
|
e.value = !1;
|
|
1709
1719
|
}
|
|
1710
1720
|
}
|
|
1711
1721
|
return Se(
|
|
1712
1722
|
() => a.value,
|
|
1713
|
-
(
|
|
1714
|
-
console.log(
|
|
1723
|
+
(m) => {
|
|
1724
|
+
console.log(m, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(m.type) && (n.value = a.value.type, d(n.value));
|
|
1715
1725
|
}
|
|
1716
|
-
), (
|
|
1717
|
-
const
|
|
1718
|
-
return
|
|
1719
|
-
l(
|
|
1726
|
+
), (m, b) => {
|
|
1727
|
+
const v = s("el-option"), w = s("el-select"), h = s("el-form-item"), _ = s("el-form"), C = fe("loading");
|
|
1728
|
+
return le((c(), x("div", null, [
|
|
1729
|
+
l(_, { "label-position": "top" }, {
|
|
1720
1730
|
default: u(() => [
|
|
1721
|
-
l(
|
|
1731
|
+
l(h, { label: "图表类型" }, {
|
|
1722
1732
|
default: u(() => [
|
|
1723
|
-
l(
|
|
1733
|
+
l(w, {
|
|
1724
1734
|
style: { width: "100%" },
|
|
1725
1735
|
modelValue: n.value,
|
|
1726
|
-
"onUpdate:modelValue":
|
|
1736
|
+
"onUpdate:modelValue": b[0] || (b[0] = (f) => n.value = f),
|
|
1727
1737
|
onChange: g
|
|
1728
1738
|
}, {
|
|
1729
1739
|
default: u(() => [
|
|
1730
|
-
(
|
|
1740
|
+
(c(), x(S, null, P(r, (f, p) => l(v, {
|
|
1731
1741
|
key: p,
|
|
1732
|
-
label:
|
|
1733
|
-
value:
|
|
1742
|
+
label: f.name,
|
|
1743
|
+
value: f.value
|
|
1734
1744
|
}, null, 8, ["label", "value"])), 64))
|
|
1735
1745
|
]),
|
|
1736
1746
|
_: 1
|
|
@@ -1738,19 +1748,19 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1738
1748
|
]),
|
|
1739
1749
|
_: 1
|
|
1740
1750
|
}),
|
|
1741
|
-
l(
|
|
1751
|
+
l(h, { label: "组件库" }, {
|
|
1742
1752
|
default: u(() => [
|
|
1743
|
-
l(
|
|
1753
|
+
l(w, {
|
|
1744
1754
|
style: { width: "100%" },
|
|
1745
|
-
modelValue:
|
|
1746
|
-
"onUpdate:modelValue":
|
|
1755
|
+
modelValue: y(t).activeComponents.rp_item_uuid,
|
|
1756
|
+
"onUpdate:modelValue": b[1] || (b[1] = (f) => y(t).activeComponents.rp_item_uuid = f),
|
|
1747
1757
|
onChange: i
|
|
1748
1758
|
}, {
|
|
1749
1759
|
default: u(() => [
|
|
1750
|
-
(
|
|
1760
|
+
(c(!0), x(S, null, P(A.value, (f, p) => (c(), k(v, {
|
|
1751
1761
|
key: p,
|
|
1752
|
-
label:
|
|
1753
|
-
value:
|
|
1762
|
+
label: f.rp_item_name,
|
|
1763
|
+
value: f.rp_item_uuid
|
|
1754
1764
|
}, null, 8, ["label", "value"]))), 128))
|
|
1755
1765
|
]),
|
|
1756
1766
|
_: 1
|
|
@@ -1758,31 +1768,31 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1758
1768
|
]),
|
|
1759
1769
|
_: 1
|
|
1760
1770
|
}),
|
|
1761
|
-
n.value === "report-table" && a.value.options.showColumn ? (
|
|
1762
|
-
n.value === "pie" || n.value === "bar" || n.value === "line" ? (
|
|
1763
|
-
n.value === "report-describe" ? (
|
|
1771
|
+
n.value === "report-table" && a.value.options.showColumn ? (c(), k(De, { key: 0 })) : R("", !0),
|
|
1772
|
+
n.value === "pie" || n.value === "bar" || n.value === "line" ? (c(), k(lo, { key: 1 })) : R("", !0),
|
|
1773
|
+
n.value === "report-describe" ? (c(), k(ke, { key: 2 })) : R("", !0)
|
|
1764
1774
|
]),
|
|
1765
1775
|
_: 1
|
|
1766
1776
|
})
|
|
1767
1777
|
])), [
|
|
1768
|
-
[
|
|
1778
|
+
[C, e.value]
|
|
1769
1779
|
]);
|
|
1770
1780
|
};
|
|
1771
1781
|
}
|
|
1772
|
-
}),
|
|
1782
|
+
}), ao = { key: 0 }, ro = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", Ao = /* @__PURE__ */ L({
|
|
1773
1783
|
__name: "SettingText",
|
|
1774
1784
|
setup(o) {
|
|
1775
1785
|
const t = I(), e = Oe(), a = V();
|
|
1776
|
-
function r(
|
|
1777
|
-
const
|
|
1778
|
-
t.activeComponents.uri =
|
|
1786
|
+
function r(m) {
|
|
1787
|
+
const b = a.value.find((v) => v.rp_item_uuid === m);
|
|
1788
|
+
t.activeComponents.uri = b.rp_item_content.uri, e.value.setHtml((b == null ? void 0 : b.rp_item_content.data) || "");
|
|
1779
1789
|
}
|
|
1780
1790
|
async function n() {
|
|
1781
|
-
const
|
|
1782
|
-
a.value =
|
|
1791
|
+
const m = await ge({ prod_type: window.$prodType, chart_type: "p", filter_uuid: t.filterForm.filter_uuid });
|
|
1792
|
+
a.value = m.data;
|
|
1783
1793
|
}
|
|
1784
1794
|
n();
|
|
1785
|
-
const
|
|
1795
|
+
const A = {
|
|
1786
1796
|
toolbarKeys: [
|
|
1787
1797
|
"bold",
|
|
1788
1798
|
"underline",
|
|
@@ -1804,31 +1814,31 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1804
1814
|
"justifyJustify",
|
|
1805
1815
|
"lineHeight"
|
|
1806
1816
|
]
|
|
1807
|
-
},
|
|
1808
|
-
e.value =
|
|
1809
|
-
}, g = (
|
|
1817
|
+
}, d = { placeholder: "请输入内容..." }, i = (m) => {
|
|
1818
|
+
e.value = m;
|
|
1819
|
+
}, g = (m) => {
|
|
1810
1820
|
};
|
|
1811
1821
|
return Pe(() => {
|
|
1812
|
-
const
|
|
1813
|
-
|
|
1814
|
-
}), (
|
|
1815
|
-
const
|
|
1816
|
-
return
|
|
1817
|
-
l(
|
|
1822
|
+
const m = e.value;
|
|
1823
|
+
m != null && m.destroy();
|
|
1824
|
+
}), (m, b) => {
|
|
1825
|
+
const v = s("el-option"), w = s("el-select"), h = s("el-form-item"), _ = s("el-form");
|
|
1826
|
+
return y(t).activeComponents.id ? (c(), x("div", ao, [
|
|
1827
|
+
l(_, { "label-position": "top" }, {
|
|
1818
1828
|
default: u(() => [
|
|
1819
|
-
l(
|
|
1829
|
+
l(h, { label: "组件库" }, {
|
|
1820
1830
|
default: u(() => [
|
|
1821
|
-
l(
|
|
1831
|
+
l(w, {
|
|
1822
1832
|
style: { width: "100%" },
|
|
1823
|
-
modelValue:
|
|
1824
|
-
"onUpdate:modelValue":
|
|
1833
|
+
modelValue: y(t).activeComponents.rp_item_uuid,
|
|
1834
|
+
"onUpdate:modelValue": b[0] || (b[0] = (C) => y(t).activeComponents.rp_item_uuid = C),
|
|
1825
1835
|
onChange: r
|
|
1826
1836
|
}, {
|
|
1827
1837
|
default: u(() => [
|
|
1828
|
-
(
|
|
1829
|
-
key:
|
|
1830
|
-
label:
|
|
1831
|
-
value:
|
|
1838
|
+
(c(!0), x(S, null, P(a.value, (C, f) => (c(), k(v, {
|
|
1839
|
+
key: f,
|
|
1840
|
+
label: C.rp_item_name,
|
|
1841
|
+
value: C.rp_item_uuid
|
|
1832
1842
|
}, null, 8, ["label", "value"]))), 128))
|
|
1833
1843
|
]),
|
|
1834
1844
|
_: 1
|
|
@@ -1836,22 +1846,22 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1836
1846
|
]),
|
|
1837
1847
|
_: 1
|
|
1838
1848
|
}),
|
|
1839
|
-
l(
|
|
1849
|
+
l(h, { label: "文本内容" }, {
|
|
1840
1850
|
default: u(() => [
|
|
1841
|
-
T("div",
|
|
1842
|
-
l(
|
|
1851
|
+
T("div", ro, [
|
|
1852
|
+
l(y(ze), {
|
|
1843
1853
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1844
1854
|
editor: e.value,
|
|
1845
|
-
"default-config":
|
|
1846
|
-
mode:
|
|
1855
|
+
"default-config": A,
|
|
1856
|
+
mode: ie
|
|
1847
1857
|
}, null, 8, ["editor"]),
|
|
1848
|
-
l(
|
|
1858
|
+
l(y(Ne), {
|
|
1849
1859
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1850
1860
|
onOnChange: g,
|
|
1851
|
-
modelValue:
|
|
1852
|
-
"onUpdate:modelValue":
|
|
1853
|
-
"default-config":
|
|
1854
|
-
mode:
|
|
1861
|
+
modelValue: y(t).activeComponents.data,
|
|
1862
|
+
"onUpdate:modelValue": b[1] || (b[1] = (C) => y(t).activeComponents.data = C),
|
|
1863
|
+
"default-config": d,
|
|
1864
|
+
mode: ie,
|
|
1855
1865
|
onOnCreated: i
|
|
1856
1866
|
}, null, 8, ["modelValue"])
|
|
1857
1867
|
])
|
|
@@ -1864,7 +1874,7 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1864
1874
|
])) : R("", !0);
|
|
1865
1875
|
};
|
|
1866
1876
|
}
|
|
1867
|
-
}),
|
|
1877
|
+
}), so = /* @__PURE__ */ L({
|
|
1868
1878
|
__name: "SettingFilter",
|
|
1869
1879
|
setup(o) {
|
|
1870
1880
|
const t = V([]), e = I();
|
|
@@ -1873,24 +1883,24 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1873
1883
|
t.value = r.data;
|
|
1874
1884
|
}
|
|
1875
1885
|
return a(), (r, n) => {
|
|
1876
|
-
const
|
|
1877
|
-
return
|
|
1886
|
+
const A = s("el-option"), d = s("el-select"), i = s("el-form-item"), g = s("el-checkbox"), m = s("el-form");
|
|
1887
|
+
return c(), k(m, {
|
|
1878
1888
|
"label-width": "80px",
|
|
1879
1889
|
"label-position": "top"
|
|
1880
1890
|
}, {
|
|
1881
1891
|
default: u(() => [
|
|
1882
1892
|
l(i, { label: "筛选条件" }, {
|
|
1883
1893
|
default: u(() => [
|
|
1884
|
-
l(
|
|
1885
|
-
modelValue:
|
|
1886
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1887
|
-
disabled: !!
|
|
1894
|
+
l(d, {
|
|
1895
|
+
modelValue: y(e).filterForm.filter_uuid,
|
|
1896
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => y(e).filterForm.filter_uuid = b),
|
|
1897
|
+
disabled: !!y(e).filterForm.filter_uuid
|
|
1888
1898
|
}, {
|
|
1889
1899
|
default: u(() => [
|
|
1890
|
-
(
|
|
1891
|
-
key:
|
|
1892
|
-
label:
|
|
1893
|
-
value:
|
|
1900
|
+
(c(!0), x(S, null, P(t.value, (b) => (c(), k(A, {
|
|
1901
|
+
key: b.filter_uuid,
|
|
1902
|
+
label: b.filter_name,
|
|
1903
|
+
value: b.filter_uuid
|
|
1894
1904
|
}, null, 8, ["label", "value"]))), 128))
|
|
1895
1905
|
]),
|
|
1896
1906
|
_: 1
|
|
@@ -1901,8 +1911,8 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1901
1911
|
l(i, null, {
|
|
1902
1912
|
default: u(() => [
|
|
1903
1913
|
l(g, {
|
|
1904
|
-
modelValue:
|
|
1905
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1914
|
+
modelValue: y(e).filterForm.range_time,
|
|
1915
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => y(e).filterForm.range_time = b),
|
|
1906
1916
|
"true-value": 1,
|
|
1907
1917
|
"false-value": 0,
|
|
1908
1918
|
label: "时间范围"
|
|
@@ -1915,13 +1925,13 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1915
1925
|
});
|
|
1916
1926
|
};
|
|
1917
1927
|
}
|
|
1918
|
-
}),
|
|
1928
|
+
}), io = /* @__PURE__ */ L({
|
|
1919
1929
|
__name: "SettingTitle",
|
|
1920
1930
|
setup(o) {
|
|
1921
1931
|
const t = I();
|
|
1922
1932
|
return (e, a) => {
|
|
1923
|
-
const r =
|
|
1924
|
-
return
|
|
1933
|
+
const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), d = s("el-col"), i = s("el-input-number"), g = s("el-option"), m = s("el-select"), b = s("el-row"), v = s("el-form");
|
|
1934
|
+
return c(), k(v, {
|
|
1925
1935
|
"label-width": "auto",
|
|
1926
1936
|
"label-position": "top"
|
|
1927
1937
|
}, {
|
|
@@ -1929,8 +1939,8 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1929
1939
|
l(n, { label: "名称" }, {
|
|
1930
1940
|
default: u(() => [
|
|
1931
1941
|
l(r, {
|
|
1932
|
-
modelValue:
|
|
1933
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1942
|
+
modelValue: y(t).activeComponents.data,
|
|
1943
|
+
"onUpdate:modelValue": a[0] || (a[0] = (w) => y(t).activeComponents.data = w),
|
|
1934
1944
|
placeholder: "Please input",
|
|
1935
1945
|
maxlength: "24",
|
|
1936
1946
|
"show-word-limit": ""
|
|
@@ -1940,35 +1950,35 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1940
1950
|
}),
|
|
1941
1951
|
l(n, { label: "样式" }, {
|
|
1942
1952
|
default: u(() => [
|
|
1943
|
-
l(
|
|
1953
|
+
l(b, { gutter: 20 }, {
|
|
1944
1954
|
default: u(() => [
|
|
1945
|
-
l(
|
|
1955
|
+
l(d, { span: 12 }, {
|
|
1946
1956
|
default: u(() => [
|
|
1947
|
-
l(
|
|
1948
|
-
modelValue:
|
|
1949
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
1957
|
+
l(A, {
|
|
1958
|
+
modelValue: y(t).activeComponents.options.color,
|
|
1959
|
+
"onUpdate:modelValue": a[1] || (a[1] = (w) => y(t).activeComponents.options.color = w),
|
|
1950
1960
|
"show-alpha": ""
|
|
1951
1961
|
}, null, 8, ["modelValue"]),
|
|
1952
1962
|
a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
1953
1963
|
]),
|
|
1954
1964
|
_: 1
|
|
1955
1965
|
}),
|
|
1956
|
-
l(
|
|
1966
|
+
l(d, { span: 12 }, {
|
|
1957
1967
|
default: u(() => [
|
|
1958
1968
|
l(i, {
|
|
1959
|
-
modelValue:
|
|
1960
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
1969
|
+
modelValue: y(t).activeComponents.options.size,
|
|
1970
|
+
"onUpdate:modelValue": a[2] || (a[2] = (w) => y(t).activeComponents.options.size = w),
|
|
1961
1971
|
"controls-position": "right"
|
|
1962
1972
|
}, null, 8, ["modelValue"]),
|
|
1963
1973
|
a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
1964
1974
|
]),
|
|
1965
1975
|
_: 1
|
|
1966
1976
|
}),
|
|
1967
|
-
l(
|
|
1977
|
+
l(d, { span: 12 }, {
|
|
1968
1978
|
default: u(() => [
|
|
1969
|
-
l(
|
|
1970
|
-
modelValue:
|
|
1971
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
1979
|
+
l(m, {
|
|
1980
|
+
modelValue: y(t).activeComponents.options.fontWeight,
|
|
1981
|
+
"onUpdate:modelValue": a[3] || (a[3] = (w) => y(t).activeComponents.options.fontWeight = w)
|
|
1972
1982
|
}, {
|
|
1973
1983
|
default: u(() => [
|
|
1974
1984
|
l(g, {
|
|
@@ -1986,33 +1996,33 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1986
1996
|
]),
|
|
1987
1997
|
_: 1
|
|
1988
1998
|
}),
|
|
1989
|
-
l(
|
|
1999
|
+
l(d, { span: 12 }, {
|
|
1990
2000
|
default: u(() => [
|
|
1991
2001
|
l(i, {
|
|
1992
|
-
modelValue:
|
|
1993
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
2002
|
+
modelValue: y(t).activeComponents.options.letterSpacing,
|
|
2003
|
+
"onUpdate:modelValue": a[4] || (a[4] = (w) => y(t).activeComponents.options.letterSpacing = w),
|
|
1994
2004
|
"controls-position": "right"
|
|
1995
2005
|
}, null, 8, ["modelValue"]),
|
|
1996
2006
|
a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
|
|
1997
2007
|
]),
|
|
1998
2008
|
_: 1
|
|
1999
2009
|
}),
|
|
2000
|
-
l(
|
|
2010
|
+
l(d, { span: 12 }, {
|
|
2001
2011
|
default: u(() => [
|
|
2002
2012
|
l(i, {
|
|
2003
|
-
modelValue:
|
|
2004
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
2013
|
+
modelValue: y(t).activeComponents.options.textIndent,
|
|
2014
|
+
"onUpdate:modelValue": a[5] || (a[5] = (w) => y(t).activeComponents.options.textIndent = w),
|
|
2005
2015
|
"controls-position": "right"
|
|
2006
2016
|
}, null, 8, ["modelValue"]),
|
|
2007
2017
|
a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
|
|
2008
2018
|
]),
|
|
2009
2019
|
_: 1
|
|
2010
2020
|
}),
|
|
2011
|
-
l(
|
|
2021
|
+
l(d, { span: 12 }, {
|
|
2012
2022
|
default: u(() => [
|
|
2013
|
-
l(
|
|
2014
|
-
modelValue:
|
|
2015
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
2023
|
+
l(m, {
|
|
2024
|
+
modelValue: y(t).activeComponents.options.textAlign,
|
|
2025
|
+
"onUpdate:modelValue": a[6] || (a[6] = (w) => y(t).activeComponents.options.textAlign = w)
|
|
2016
2026
|
}, {
|
|
2017
2027
|
default: u(() => [
|
|
2018
2028
|
l(g, {
|
|
@@ -2046,30 +2056,30 @@ const oo = /* @__PURE__ */ Y(to, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
2046
2056
|
};
|
|
2047
2057
|
}
|
|
2048
2058
|
});
|
|
2049
|
-
const
|
|
2059
|
+
const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @__PURE__ */ L({
|
|
2050
2060
|
__name: "Setting",
|
|
2051
2061
|
setup(o) {
|
|
2052
2062
|
const t = {
|
|
2053
2063
|
SettingTable: De,
|
|
2054
|
-
SettingCharts:
|
|
2064
|
+
SettingCharts: no,
|
|
2055
2065
|
SettingDescribe: ke,
|
|
2056
|
-
SettingText:
|
|
2057
|
-
SettingFilter:
|
|
2058
|
-
SettingTitle:
|
|
2059
|
-
}, e = I(), a = Q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"],
|
|
2066
|
+
SettingText: Ao,
|
|
2067
|
+
SettingFilter: so,
|
|
2068
|
+
SettingTitle: uo
|
|
2069
|
+
}, e = I(), a = Q(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? F(t, "SettingTitle") : n.includes(i) ? F(t, "SettingText") : A.includes(i) ? F(t, "SettingCharts") : i === "filter" ? F(t, "SettingFilter") : "DefaultEditor";
|
|
2060
2070
|
return (i, g) => {
|
|
2061
|
-
const
|
|
2062
|
-
return
|
|
2071
|
+
const m = s("el-card");
|
|
2072
|
+
return c(), k(m, { class: "config-wrapper" }, {
|
|
2063
2073
|
default: u(() => [
|
|
2064
|
-
(
|
|
2074
|
+
(c(), k(G(d(a.value.type))))
|
|
2065
2075
|
]),
|
|
2066
2076
|
_: 1
|
|
2067
2077
|
});
|
|
2068
2078
|
};
|
|
2069
2079
|
}
|
|
2070
|
-
}),
|
|
2080
|
+
}), co = { class: "editor-wrapper flex items-center space-between start" }, mo = { class: "flex items-center space-between" }, fo = { class: "btn-group" }, vo = /* @__PURE__ */ L({
|
|
2071
2081
|
__name: "index",
|
|
2072
|
-
props: /* @__PURE__ */
|
|
2082
|
+
props: /* @__PURE__ */ ce({
|
|
2073
2083
|
reportId: {
|
|
2074
2084
|
type: String,
|
|
2075
2085
|
default: ""
|
|
@@ -2080,20 +2090,20 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
|
|
|
2080
2090
|
}),
|
|
2081
2091
|
emits: ["update:modelValue"],
|
|
2082
2092
|
setup(o) {
|
|
2083
|
-
const t = I(), e = o, a =
|
|
2093
|
+
const t = I(), e = o, a = me(o, "modelValue"), r = (i) => {
|
|
2084
2094
|
const g = J(i);
|
|
2085
2095
|
g.id = H(), t.componentList.push(g);
|
|
2086
2096
|
};
|
|
2087
2097
|
function n() {
|
|
2088
2098
|
a.value = "table";
|
|
2089
2099
|
}
|
|
2090
|
-
function
|
|
2100
|
+
function A() {
|
|
2091
2101
|
t.getReportDemo(e.reportId);
|
|
2092
2102
|
}
|
|
2093
|
-
|
|
2094
|
-
|
|
2103
|
+
ne(() => {
|
|
2104
|
+
A();
|
|
2095
2105
|
});
|
|
2096
|
-
async function
|
|
2106
|
+
async function d() {
|
|
2097
2107
|
if (!t.filterForm.filter_uuid) {
|
|
2098
2108
|
qe.error("请选择筛选条件");
|
|
2099
2109
|
return;
|
|
@@ -2122,23 +2132,23 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
|
|
|
2122
2132
|
return Qe(() => {
|
|
2123
2133
|
t.clearComponents();
|
|
2124
2134
|
}), (i, g) => {
|
|
2125
|
-
const
|
|
2126
|
-
return
|
|
2127
|
-
l(
|
|
2135
|
+
const m = s("el-button"), b = s("el-button-group"), v = s("el-card");
|
|
2136
|
+
return c(), x("div", co, [
|
|
2137
|
+
l(v, { class: "view-wrapper" }, {
|
|
2128
2138
|
default: u(() => [
|
|
2129
|
-
T("div",
|
|
2130
|
-
T("div",
|
|
2131
|
-
l(
|
|
2139
|
+
T("div", mo, [
|
|
2140
|
+
T("div", fo, [
|
|
2141
|
+
l(b, null, {
|
|
2132
2142
|
default: u(() => [
|
|
2133
|
-
(
|
|
2134
|
-
key:
|
|
2143
|
+
(c(!0), x(S, null, P(y(xt), (w) => (c(), x(S, {
|
|
2144
|
+
key: w.type
|
|
2135
2145
|
}, [
|
|
2136
|
-
|
|
2146
|
+
w != null && w.hide ? R("", !0) : (c(), k(m, {
|
|
2137
2147
|
key: 0,
|
|
2138
|
-
onClick: (
|
|
2148
|
+
onClick: (h) => r(w)
|
|
2139
2149
|
}, {
|
|
2140
2150
|
default: u(() => [
|
|
2141
|
-
|
|
2151
|
+
E(M(w.name), 1)
|
|
2142
2152
|
]),
|
|
2143
2153
|
_: 2
|
|
2144
2154
|
}, 1032, ["onClick"]))
|
|
@@ -2147,20 +2157,20 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
|
|
|
2147
2157
|
_: 1
|
|
2148
2158
|
})
|
|
2149
2159
|
]),
|
|
2150
|
-
l(
|
|
2160
|
+
l(b, null, {
|
|
2151
2161
|
default: u(() => [
|
|
2152
|
-
l(
|
|
2162
|
+
l(m, {
|
|
2153
2163
|
type: "primary",
|
|
2154
|
-
onClick:
|
|
2164
|
+
onClick: d
|
|
2155
2165
|
}, {
|
|
2156
2166
|
default: u(() => g[0] || (g[0] = [
|
|
2157
|
-
|
|
2167
|
+
E("保存")
|
|
2158
2168
|
])),
|
|
2159
2169
|
_: 1
|
|
2160
2170
|
}),
|
|
2161
|
-
l(
|
|
2171
|
+
l(m, { onClick: n }, {
|
|
2162
2172
|
default: u(() => g[1] || (g[1] = [
|
|
2163
|
-
|
|
2173
|
+
E("退出")
|
|
2164
2174
|
])),
|
|
2165
2175
|
_: 1
|
|
2166
2176
|
})
|
|
@@ -2168,17 +2178,17 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
|
|
|
2168
2178
|
_: 1
|
|
2169
2179
|
})
|
|
2170
2180
|
]),
|
|
2171
|
-
l(
|
|
2181
|
+
l(Zt)
|
|
2172
2182
|
]),
|
|
2173
2183
|
_: 1
|
|
2174
2184
|
}),
|
|
2175
|
-
l(
|
|
2185
|
+
l(po)
|
|
2176
2186
|
]);
|
|
2177
2187
|
};
|
|
2178
2188
|
}
|
|
2179
|
-
}),
|
|
2189
|
+
}), go = {
|
|
2180
2190
|
class: "table-box"
|
|
2181
|
-
},
|
|
2191
|
+
}, bo = /* @__PURE__ */ L({
|
|
2182
2192
|
__name: "Report",
|
|
2183
2193
|
emits: ["click"],
|
|
2184
2194
|
setup(o, {
|
|
@@ -2186,21 +2196,21 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
|
|
|
2186
2196
|
}) {
|
|
2187
2197
|
const e = Q(() => ({
|
|
2188
2198
|
prod_type: window.$prodType
|
|
2189
|
-
})), a = V(), r = t, n = (
|
|
2190
|
-
r("click",
|
|
2191
|
-
},
|
|
2192
|
-
r("click",
|
|
2193
|
-
},
|
|
2199
|
+
})), a = V(), r = t, n = (v) => {
|
|
2200
|
+
r("click", v.report_uuid, "review");
|
|
2201
|
+
}, A = (v) => {
|
|
2202
|
+
r("click", v.report_uuid, "editor");
|
|
2203
|
+
}, d = () => {
|
|
2194
2204
|
r("click", "", "editor");
|
|
2195
|
-
}, i = (
|
|
2196
|
-
console.log(
|
|
2197
|
-
}, g = (
|
|
2205
|
+
}, i = (v) => {
|
|
2206
|
+
console.log(v);
|
|
2207
|
+
}, g = (v) => {
|
|
2198
2208
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2199
2209
|
await ot({
|
|
2200
|
-
report_uuids:
|
|
2210
|
+
report_uuids: v
|
|
2201
2211
|
}), a.value.getTableList();
|
|
2202
2212
|
});
|
|
2203
|
-
},
|
|
2213
|
+
}, m = (v) => v.report_type === 1, b = X([
|
|
2204
2214
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2205
2215
|
{
|
|
2206
2216
|
type: "selection",
|
|
@@ -2227,58 +2237,61 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
|
|
|
2227
2237
|
name: "操作",
|
|
2228
2238
|
align: "center",
|
|
2229
2239
|
fixed: "right",
|
|
2230
|
-
render: (
|
|
2240
|
+
render: (v) => l("div", null, [l(s("el-button"), {
|
|
2231
2241
|
link: !0,
|
|
2232
2242
|
type: "primary",
|
|
2233
2243
|
class: "custom-btn",
|
|
2234
2244
|
icon: "View",
|
|
2235
2245
|
title: "预览",
|
|
2236
|
-
onClick: () => n(
|
|
2237
|
-
}, null), l(
|
|
2246
|
+
onClick: () => n(v.row)
|
|
2247
|
+
}, null), l(s("el-button"), {
|
|
2238
2248
|
link: !0,
|
|
2239
2249
|
type: "primary",
|
|
2240
2250
|
class: "custom-btn",
|
|
2241
2251
|
icon: "Edit",
|
|
2242
2252
|
title: "编辑",
|
|
2243
|
-
|
|
2244
|
-
|
|
2253
|
+
disabled: v.row.report_type === 0,
|
|
2254
|
+
onClick: () => A(v.row)
|
|
2255
|
+
}, null), l(s("el-button"), {
|
|
2245
2256
|
link: !0,
|
|
2246
2257
|
type: "danger",
|
|
2247
2258
|
icon: "Delete",
|
|
2248
2259
|
title: "删除",
|
|
2249
|
-
|
|
2260
|
+
disabled: v.row.report_type === 0,
|
|
2261
|
+
onClick: () => g([v.row.report_uuid])
|
|
2250
2262
|
}, null)])
|
|
2251
2263
|
}
|
|
2252
2264
|
]);
|
|
2253
|
-
return (
|
|
2254
|
-
const
|
|
2255
|
-
return
|
|
2265
|
+
return (v, w) => {
|
|
2266
|
+
const h = s("el-button"), _ = s("TdsTable");
|
|
2267
|
+
return c(), x("div", go, [l(_, {
|
|
2256
2268
|
ref_key: "proTable",
|
|
2257
2269
|
ref: a,
|
|
2258
|
-
columns:
|
|
2259
|
-
"request-api":
|
|
2270
|
+
columns: b,
|
|
2271
|
+
"request-api": y(tt),
|
|
2260
2272
|
"init-param": e.value,
|
|
2261
2273
|
"row-key": "report_uuid",
|
|
2262
|
-
options:
|
|
2274
|
+
options: v.$tableOptions(),
|
|
2263
2275
|
"search-col": 6,
|
|
2276
|
+
selectable: m,
|
|
2264
2277
|
onSelectionChange: i
|
|
2265
2278
|
}, {
|
|
2266
|
-
tableHeader: u((
|
|
2279
|
+
tableHeader: u((C) => [l(h, {
|
|
2267
2280
|
plain: "",
|
|
2268
2281
|
type: "primary",
|
|
2269
2282
|
class: "custom-btn",
|
|
2270
2283
|
icon: "Plus",
|
|
2271
|
-
onClick:
|
|
2284
|
+
onClick: d
|
|
2272
2285
|
}, {
|
|
2273
|
-
default: u(() =>
|
|
2286
|
+
default: u(() => w[0] || (w[0] = [E("新建")])),
|
|
2274
2287
|
_: 1
|
|
2275
|
-
}), l(
|
|
2288
|
+
}), l(h, {
|
|
2276
2289
|
plain: "",
|
|
2277
2290
|
type: "danger",
|
|
2278
2291
|
icon: "Delete",
|
|
2279
|
-
onClick: (
|
|
2292
|
+
onClick: (f) => g(C.selectedListIds)
|
|
2280
2293
|
}, {
|
|
2281
|
-
default: u(() =>
|
|
2294
|
+
default: u(() => w[1] || (w[1] = [E("删除")])),
|
|
2282
2295
|
_: 2
|
|
2283
2296
|
}, 1032, ["onClick"])]),
|
|
2284
2297
|
_: 1
|
|
@@ -2286,31 +2299,31 @@ const io = /* @__PURE__ */ Y(so, [["__scopeId", "data-v-56fef84c"]]), uo = /* @_
|
|
|
2286
2299
|
};
|
|
2287
2300
|
}
|
|
2288
2301
|
});
|
|
2289
|
-
const
|
|
2302
|
+
const _o = { style: { height: "100%" } }, wo = /* @__PURE__ */ L({
|
|
2290
2303
|
name: "TCReport",
|
|
2291
2304
|
__name: "index",
|
|
2292
2305
|
setup(o) {
|
|
2293
2306
|
const t = V(), e = V("table"), a = (r, n) => {
|
|
2294
2307
|
t.value = r, e.value = n;
|
|
2295
2308
|
};
|
|
2296
|
-
return (r, n) => (
|
|
2309
|
+
return (r, n) => (c(), x("div", _o, [
|
|
2297
2310
|
l(Ie, { name: "slide-fade" }, {
|
|
2298
2311
|
default: u(() => [
|
|
2299
|
-
e.value === "table" ? (
|
|
2312
|
+
e.value === "table" ? (c(), k(bo, {
|
|
2300
2313
|
key: 0,
|
|
2301
2314
|
onClick: a
|
|
2302
2315
|
})) : R("", !0),
|
|
2303
|
-
e.value === "review" ? (
|
|
2316
|
+
e.value === "review" ? (c(), k(Ve, {
|
|
2304
2317
|
key: 1,
|
|
2305
2318
|
"report-id": t.value,
|
|
2306
2319
|
modelValue: e.value,
|
|
2307
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2320
|
+
"onUpdate:modelValue": n[0] || (n[0] = (A) => e.value = A)
|
|
2308
2321
|
}, null, 8, ["report-id", "modelValue"])) : R("", !0),
|
|
2309
|
-
e.value === "editor" ? (
|
|
2322
|
+
e.value === "editor" ? (c(), k(vo, {
|
|
2310
2323
|
key: 2,
|
|
2311
2324
|
"report-id": t.value,
|
|
2312
2325
|
modelValue: e.value,
|
|
2313
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2326
|
+
"onUpdate:modelValue": n[1] || (n[1] = (A) => e.value = A)
|
|
2314
2327
|
}, null, 8, ["report-id", "modelValue"])) : R("", !0)
|
|
2315
2328
|
]),
|
|
2316
2329
|
_: 1
|
|
@@ -2326,7 +2339,7 @@ const W = (o, t) => {
|
|
|
2326
2339
|
for (const [e, a] of Object.entries(t))
|
|
2327
2340
|
o[e] = a;
|
|
2328
2341
|
return o;
|
|
2329
|
-
},
|
|
2342
|
+
}, yo = W(wo), ho = [
|
|
2330
2343
|
{
|
|
2331
2344
|
label: "正文",
|
|
2332
2345
|
value: "p"
|
|
@@ -2351,7 +2364,7 @@ const W = (o, t) => {
|
|
|
2351
2364
|
label: "描述列表",
|
|
2352
2365
|
value: "report-describe"
|
|
2353
2366
|
}
|
|
2354
|
-
],
|
|
2367
|
+
], Co = [
|
|
2355
2368
|
{
|
|
2356
2369
|
value: "p",
|
|
2357
2370
|
fields: ["table_key_relation"]
|
|
@@ -2376,49 +2389,53 @@ const W = (o, t) => {
|
|
|
2376
2389
|
value: "report-describe",
|
|
2377
2390
|
fields: ["p_text"]
|
|
2378
2391
|
}
|
|
2379
|
-
],
|
|
2392
|
+
], xo = {
|
|
2380
2393
|
class: "table-box"
|
|
2381
|
-
},
|
|
2394
|
+
}, Bo = /* @__PURE__ */ L({
|
|
2382
2395
|
name: "TCModule",
|
|
2383
2396
|
__name: "index",
|
|
2384
2397
|
setup(o) {
|
|
2385
2398
|
const t = V(), e = V(), a = V({}), r = V(""), n = X({
|
|
2386
2399
|
prod_type: window.$prodType
|
|
2387
2400
|
});
|
|
2388
|
-
function
|
|
2401
|
+
function A(h) {
|
|
2389
2402
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2390
2403
|
await nt({
|
|
2391
|
-
rp_item_uuids:
|
|
2404
|
+
rp_item_uuids: h
|
|
2392
2405
|
}), t.value.getTableList();
|
|
2393
2406
|
});
|
|
2394
2407
|
}
|
|
2395
|
-
function
|
|
2396
|
-
a.value =
|
|
2408
|
+
function d(h) {
|
|
2409
|
+
a.value = h ? Object.assign({}, h) : {
|
|
2397
2410
|
table_key_relation: [{
|
|
2398
2411
|
name: "",
|
|
2399
2412
|
key: "",
|
|
2400
2413
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2401
2414
|
}]
|
|
2402
|
-
}, r.value =
|
|
2415
|
+
}, r.value = h ? "编辑自定义组件" : "新增自定义组件", e.value.open();
|
|
2403
2416
|
}
|
|
2404
|
-
async function i(
|
|
2405
|
-
const
|
|
2406
|
-
|
|
2407
|
-
rp_item_uuid:
|
|
2408
|
-
data:
|
|
2409
|
-
}) : (
|
|
2410
|
-
data:
|
|
2417
|
+
async function i(h) {
|
|
2418
|
+
const _ = Object.assign({}, h);
|
|
2419
|
+
_.chart_type !== "report-table" && _.chart_type !== "report-describe" && delete _.table_key_relation, _.chart_type !== "p" && (_.p_text = ""), _.rp_item_uuid ? await rt({
|
|
2420
|
+
rp_item_uuid: _.rp_item_uuid,
|
|
2421
|
+
data: _
|
|
2422
|
+
}) : (_.prod_type = window.$prodType, await at({
|
|
2423
|
+
data: _
|
|
2411
2424
|
})), t.value.getTableList(), e.value.close();
|
|
2412
2425
|
}
|
|
2413
|
-
const g = (
|
|
2414
|
-
a.value.table_key_relation.splice(
|
|
2415
|
-
},
|
|
2426
|
+
const g = (h) => {
|
|
2427
|
+
a.value.table_key_relation.splice(h, 1);
|
|
2428
|
+
}, m = () => {
|
|
2416
2429
|
a.value.table_key_relation.push({
|
|
2417
2430
|
name: "",
|
|
2418
2431
|
key: "",
|
|
2419
2432
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2420
2433
|
});
|
|
2421
|
-
},
|
|
2434
|
+
}, b = (h, _, C) => {
|
|
2435
|
+
delete h.message, _.forEach((f) => {
|
|
2436
|
+
f.name ? f.key || C(new Error("请填写表头名称和KEY")) : C(new Error("请填写表头名称和KEY"));
|
|
2437
|
+
}), C();
|
|
2438
|
+
}, v = (h) => h.item_type === 1, w = X([{
|
|
2422
2439
|
type: "selection",
|
|
2423
2440
|
width: 60,
|
|
2424
2441
|
field: "rp_item_uuid",
|
|
@@ -2451,10 +2468,10 @@ const W = (o, t) => {
|
|
|
2451
2468
|
}, {
|
|
2452
2469
|
field: "chart_type",
|
|
2453
2470
|
name: "组件类型",
|
|
2454
|
-
enum:
|
|
2471
|
+
enum: ho,
|
|
2455
2472
|
show: {
|
|
2456
2473
|
type: "select",
|
|
2457
|
-
display:
|
|
2474
|
+
display: Co
|
|
2458
2475
|
},
|
|
2459
2476
|
rules: [{
|
|
2460
2477
|
required: !0
|
|
@@ -2474,7 +2491,7 @@ const W = (o, t) => {
|
|
|
2474
2491
|
hide: !0,
|
|
2475
2492
|
show: {
|
|
2476
2493
|
render: () => {
|
|
2477
|
-
var
|
|
2494
|
+
var h;
|
|
2478
2495
|
return l("div", {
|
|
2479
2496
|
style: "width:80%"
|
|
2480
2497
|
}, [l("div", {
|
|
@@ -2482,42 +2499,42 @@ const W = (o, t) => {
|
|
|
2482
2499
|
style: "gap:15px;"
|
|
2483
2500
|
}, [l("span", {
|
|
2484
2501
|
style: "width:50%"
|
|
2485
|
-
}, [
|
|
2502
|
+
}, [E("表头名称")]), l("span", {
|
|
2486
2503
|
style: "width:50%"
|
|
2487
|
-
}, [
|
|
2504
|
+
}, [E("KEY")])]), (h = a.value.table_key_relation) == null ? void 0 : h.map((_, C) => l("div", {
|
|
2488
2505
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2489
2506
|
style: "gap:15px;margin-bottom:10px;",
|
|
2490
|
-
key:
|
|
2491
|
-
}, [l(
|
|
2507
|
+
key: C
|
|
2508
|
+
}, [l(s("el-form-item"), {
|
|
2492
2509
|
style: "width:50%"
|
|
2493
2510
|
}, {
|
|
2494
|
-
default: () => [l(
|
|
2495
|
-
modelValue:
|
|
2496
|
-
"onUpdate:modelValue": (
|
|
2511
|
+
default: () => [l(s("el-input"), {
|
|
2512
|
+
modelValue: _.name,
|
|
2513
|
+
"onUpdate:modelValue": (f) => _.name = f,
|
|
2497
2514
|
class: "",
|
|
2498
2515
|
placeholder: "表头"
|
|
2499
2516
|
}, null)]
|
|
2500
|
-
}), l(
|
|
2517
|
+
}), l(s("el-form-item"), {
|
|
2501
2518
|
style: "width:50%"
|
|
2502
2519
|
}, {
|
|
2503
|
-
default: () => [l(
|
|
2504
|
-
modelValue:
|
|
2505
|
-
"onUpdate:modelValue": (
|
|
2520
|
+
default: () => [l(s("el-input"), {
|
|
2521
|
+
modelValue: _.key,
|
|
2522
|
+
"onUpdate:modelValue": (f) => _.key = f,
|
|
2506
2523
|
class: "",
|
|
2507
2524
|
placeholder: "KEY"
|
|
2508
2525
|
}, null)]
|
|
2509
2526
|
}), a.value.table_key_relation.length > 1 && l("div", {
|
|
2510
2527
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
2511
|
-
}, [l(
|
|
2512
|
-
onClick: () => g(
|
|
2528
|
+
}, [l(s("el-icon"), {
|
|
2529
|
+
onClick: () => g(C)
|
|
2513
2530
|
}, {
|
|
2514
2531
|
default: () => [l(Ye, null, null)]
|
|
2515
|
-
})])])), l(
|
|
2532
|
+
})])])), l(s("el-button"), {
|
|
2516
2533
|
class: "report-btn ",
|
|
2517
2534
|
icon: "Plus",
|
|
2518
|
-
onClick: () =>
|
|
2535
|
+
onClick: () => m()
|
|
2519
2536
|
}, {
|
|
2520
|
-
default: () => [
|
|
2537
|
+
default: () => [E("新增表头与KEY")]
|
|
2521
2538
|
})]);
|
|
2522
2539
|
}
|
|
2523
2540
|
},
|
|
@@ -2526,11 +2543,7 @@ const W = (o, t) => {
|
|
|
2526
2543
|
},
|
|
2527
2544
|
rules: [{
|
|
2528
2545
|
required: !0,
|
|
2529
|
-
validator:
|
|
2530
|
-
delete v.message, y.forEach((h) => {
|
|
2531
|
-
h.name ? h.key || x(new Error("请填写表头名称和KEY")) : x(new Error("请填写表头名称和KEY"));
|
|
2532
|
-
}), x();
|
|
2533
|
-
},
|
|
2546
|
+
validator: b,
|
|
2534
2547
|
trigger: "blur"
|
|
2535
2548
|
}]
|
|
2536
2549
|
}, {
|
|
@@ -2556,98 +2569,101 @@ const W = (o, t) => {
|
|
|
2556
2569
|
name: "操作",
|
|
2557
2570
|
align: "center",
|
|
2558
2571
|
fixed: "right",
|
|
2559
|
-
render: (
|
|
2572
|
+
render: (h) => l("div", null, [l(s("el-button"), {
|
|
2560
2573
|
link: !0,
|
|
2561
2574
|
type: "primary",
|
|
2562
2575
|
class: "custom-btn",
|
|
2563
2576
|
icon: "Edit",
|
|
2564
2577
|
title: "编辑",
|
|
2565
|
-
|
|
2566
|
-
|
|
2578
|
+
disabled: h.row.item_type === 0,
|
|
2579
|
+
onClick: () => d(h.row)
|
|
2580
|
+
}, null), l(s("el-button"), {
|
|
2567
2581
|
link: !0,
|
|
2568
2582
|
type: "danger",
|
|
2569
2583
|
icon: "Delete",
|
|
2570
2584
|
title: "删除",
|
|
2571
|
-
|
|
2585
|
+
disabled: h.row.item_type === 0,
|
|
2586
|
+
onClick: () => A([h.row.rp_item_uuid])
|
|
2572
2587
|
}, null)])
|
|
2573
2588
|
}]);
|
|
2574
|
-
return (
|
|
2575
|
-
const
|
|
2576
|
-
return
|
|
2589
|
+
return (h, _) => {
|
|
2590
|
+
const C = s("el-button"), f = s("TdsTable"), p = s("TdsForm");
|
|
2591
|
+
return c(), x("div", xo, [l(f, {
|
|
2577
2592
|
ref_key: "refTdsTable",
|
|
2578
2593
|
ref: t,
|
|
2579
|
-
columns:
|
|
2580
|
-
"request-api":
|
|
2594
|
+
columns: w,
|
|
2595
|
+
"request-api": y(lt),
|
|
2581
2596
|
"init-param": n,
|
|
2582
2597
|
"row-key": "rp_item_uuid",
|
|
2583
|
-
options:
|
|
2598
|
+
options: h.$tableOptions(),
|
|
2599
|
+
selectable: v,
|
|
2584
2600
|
"search-col": 6
|
|
2585
2601
|
}, {
|
|
2586
|
-
tableHeader: u((
|
|
2602
|
+
tableHeader: u((D) => [l(C, {
|
|
2587
2603
|
plain: "",
|
|
2588
2604
|
type: "primary",
|
|
2589
2605
|
class: "custom-btn",
|
|
2590
2606
|
icon: "Plus",
|
|
2591
|
-
onClick:
|
|
2607
|
+
onClick: _[0] || (_[0] = (B) => d())
|
|
2592
2608
|
}, {
|
|
2593
|
-
default: u(() =>
|
|
2609
|
+
default: u(() => _[1] || (_[1] = [E("新建")])),
|
|
2594
2610
|
_: 1
|
|
2595
|
-
}), l(
|
|
2611
|
+
}), l(C, {
|
|
2596
2612
|
plain: "",
|
|
2597
2613
|
type: "danger",
|
|
2598
2614
|
icon: "Delete",
|
|
2599
|
-
onClick: (
|
|
2615
|
+
onClick: (B) => A(D.selectedListIds)
|
|
2600
2616
|
}, {
|
|
2601
|
-
default: u(() =>
|
|
2617
|
+
default: u(() => _[2] || (_[2] = [E("删除")])),
|
|
2602
2618
|
_: 2
|
|
2603
2619
|
}, 1032, ["onClick"])]),
|
|
2604
2620
|
_: 1
|
|
2605
|
-
}, 8, ["columns", "request-api", "init-param", "options"]), l(
|
|
2621
|
+
}, 8, ["columns", "request-api", "init-param", "options"]), l(p, ve({
|
|
2606
2622
|
ref_key: "refTdsForm",
|
|
2607
2623
|
ref: e
|
|
2608
|
-
},
|
|
2624
|
+
}, h.$formBindProps({
|
|
2609
2625
|
title: r.value,
|
|
2610
2626
|
form: a.value,
|
|
2611
|
-
columns:
|
|
2627
|
+
columns: w
|
|
2612
2628
|
}), {
|
|
2613
2629
|
onSubmit: i
|
|
2614
2630
|
}), null, 16)]);
|
|
2615
2631
|
};
|
|
2616
2632
|
}
|
|
2617
2633
|
});
|
|
2618
|
-
const
|
|
2634
|
+
const To = W(Bo), Vo = {
|
|
2619
2635
|
class: "table-box"
|
|
2620
2636
|
};
|
|
2621
|
-
function
|
|
2622
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
2637
|
+
function ue(o) {
|
|
2638
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ae(o);
|
|
2623
2639
|
}
|
|
2624
|
-
const
|
|
2640
|
+
const Do = /* @__PURE__ */ L({
|
|
2625
2641
|
name: "TCSubscribe",
|
|
2626
2642
|
__name: "index",
|
|
2627
2643
|
setup(o) {
|
|
2628
2644
|
const t = V(), e = V(), {
|
|
2629
2645
|
$t: a,
|
|
2630
2646
|
$messageBox: r
|
|
2631
|
-
} = window, n = V(""),
|
|
2647
|
+
} = window, n = V(""), A = V({
|
|
2632
2648
|
receiver: []
|
|
2633
2649
|
});
|
|
2634
|
-
function
|
|
2635
|
-
r(
|
|
2650
|
+
function d(f) {
|
|
2651
|
+
r(f, "subscript_name", a("button.delete"), "error").then(async () => {
|
|
2636
2652
|
await ut({
|
|
2637
|
-
subscript_uuids:
|
|
2653
|
+
subscript_uuids: f.map((p) => p.subscript_uuid)
|
|
2638
2654
|
}), t.value.getTableList();
|
|
2639
2655
|
});
|
|
2640
2656
|
}
|
|
2641
2657
|
function i() {
|
|
2642
|
-
|
|
2658
|
+
d(t.value.selectedList);
|
|
2643
2659
|
}
|
|
2644
|
-
const g = (
|
|
2645
|
-
|
|
2660
|
+
const g = (f) => {
|
|
2661
|
+
A.value = f ? Object.assign({}, f) : {
|
|
2646
2662
|
receiver: []
|
|
2647
|
-
}, n.value =
|
|
2663
|
+
}, n.value = f ? "编辑报表订阅" : "新增报表订阅", e.value.open();
|
|
2648
2664
|
};
|
|
2649
|
-
async function f
|
|
2650
|
-
const p = Object.assign({},
|
|
2665
|
+
async function m(f) {
|
|
2666
|
+
const p = Object.assign({}, f);
|
|
2651
2667
|
p.subscript_uuid ? await it({
|
|
2652
2668
|
subscript_uuid: p.subscript_uuid,
|
|
2653
2669
|
data: p
|
|
@@ -2655,14 +2671,14 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2655
2671
|
data: p
|
|
2656
2672
|
}), t.value.getTableList(), e.value.close();
|
|
2657
2673
|
}
|
|
2658
|
-
function
|
|
2674
|
+
function b(f, p, D) {
|
|
2659
2675
|
if (!p || p.length === 0)
|
|
2660
2676
|
return D(new Error("请输入收件人"));
|
|
2661
2677
|
D();
|
|
2662
2678
|
}
|
|
2663
|
-
const
|
|
2664
|
-
|
|
2665
|
-
},
|
|
2679
|
+
const v = (f, p) => {
|
|
2680
|
+
f.target.value && A.value[p].push(f.target.value);
|
|
2681
|
+
}, w = [{
|
|
2666
2682
|
label: "周一",
|
|
2667
2683
|
value: 1
|
|
2668
2684
|
}, {
|
|
@@ -2683,7 +2699,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2683
2699
|
}, {
|
|
2684
2700
|
label: "周日",
|
|
2685
2701
|
value: 0
|
|
2686
|
-
}],
|
|
2702
|
+
}], h = [{
|
|
2687
2703
|
label: "每天",
|
|
2688
2704
|
value: 0
|
|
2689
2705
|
}, {
|
|
@@ -2692,7 +2708,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2692
2708
|
}, {
|
|
2693
2709
|
label: "每月",
|
|
2694
2710
|
value: 2
|
|
2695
|
-
}],
|
|
2711
|
+
}], _ = [], C = X([{
|
|
2696
2712
|
type: "selection",
|
|
2697
2713
|
align: "center",
|
|
2698
2714
|
field: "subscript_uuid",
|
|
@@ -2770,7 +2786,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2770
2786
|
key: window.$prodType
|
|
2771
2787
|
}
|
|
2772
2788
|
},
|
|
2773
|
-
render: (
|
|
2789
|
+
render: (f) => t.value.enumMap.get("dbsId").filter((B) => f.row.dbsId.indexOf(B.id) > -1).map((B) => l(s("el-tag"), {
|
|
2774
2790
|
class: "mr-10px",
|
|
2775
2791
|
type: "info"
|
|
2776
2792
|
}, {
|
|
@@ -2780,40 +2796,40 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2780
2796
|
field: "receiver_email",
|
|
2781
2797
|
name: "收件人",
|
|
2782
2798
|
width: 300,
|
|
2783
|
-
render: (
|
|
2799
|
+
render: (f) => l(S, null, [f.row.receiver_email.map((p) => l(s("el-tag"), {
|
|
2784
2800
|
class: "mr-10px",
|
|
2785
2801
|
type: "info"
|
|
2786
|
-
},
|
|
2802
|
+
}, ue(p) ? p : {
|
|
2787
2803
|
default: () => [p]
|
|
2788
2804
|
}))]),
|
|
2789
2805
|
show: {
|
|
2790
2806
|
type: "input",
|
|
2791
2807
|
render: () => {
|
|
2792
|
-
let
|
|
2793
|
-
return l(S, null, [l(
|
|
2808
|
+
let f;
|
|
2809
|
+
return l(S, null, [l(s("el-select"), {
|
|
2794
2810
|
class: "right-select",
|
|
2795
|
-
modelValue:
|
|
2796
|
-
"onUpdate:modelValue": (p) =>
|
|
2811
|
+
modelValue: A.value.receiver_email,
|
|
2812
|
+
"onUpdate:modelValue": (p) => A.value.receiver_email = p,
|
|
2797
2813
|
placeholder: "请输入",
|
|
2798
2814
|
multiple: !0,
|
|
2799
2815
|
filterable: !0,
|
|
2800
2816
|
"allow-create": !0,
|
|
2801
2817
|
"default-first-option": !0,
|
|
2802
2818
|
"reserve-keyword": !1,
|
|
2803
|
-
onBlur: (p) =>
|
|
2804
|
-
},
|
|
2819
|
+
onBlur: (p) => v(p, "receiver_email")
|
|
2820
|
+
}, ue(f = _.map((p) => l(s("el-option"), {
|
|
2805
2821
|
label: p.label,
|
|
2806
2822
|
value: p.value
|
|
2807
|
-
}, null))) ?
|
|
2808
|
-
default: () => [
|
|
2823
|
+
}, null))) ? f : {
|
|
2824
|
+
default: () => [f]
|
|
2809
2825
|
}), l("p", {
|
|
2810
2826
|
style: "font-size:12px;color:#909399;line-height:20px"
|
|
2811
|
-
}, [
|
|
2827
|
+
}, [E("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
|
|
2812
2828
|
}
|
|
2813
2829
|
},
|
|
2814
2830
|
rules: [{
|
|
2815
2831
|
required: !0,
|
|
2816
|
-
validator:
|
|
2832
|
+
validator: b,
|
|
2817
2833
|
type: "any",
|
|
2818
2834
|
trigger: "change"
|
|
2819
2835
|
}]
|
|
@@ -2824,7 +2840,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2824
2840
|
field: "loop_type",
|
|
2825
2841
|
name: "发送周期",
|
|
2826
2842
|
hide: !0,
|
|
2827
|
-
enum:
|
|
2843
|
+
enum: h,
|
|
2828
2844
|
show: {
|
|
2829
2845
|
dataType: "number",
|
|
2830
2846
|
type: "select",
|
|
@@ -2847,7 +2863,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2847
2863
|
field: "day",
|
|
2848
2864
|
name: "日",
|
|
2849
2865
|
hide: !0,
|
|
2850
|
-
enum: [...Array(28)].map((
|
|
2866
|
+
enum: [...Array(28)].map((f, p) => ({
|
|
2851
2867
|
label: p + 1 + "",
|
|
2852
2868
|
value: p + 1
|
|
2853
2869
|
})),
|
|
@@ -2862,7 +2878,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2862
2878
|
field: "weekday",
|
|
2863
2879
|
name: "星期",
|
|
2864
2880
|
hide: !0,
|
|
2865
|
-
enum:
|
|
2881
|
+
enum: w,
|
|
2866
2882
|
show: {
|
|
2867
2883
|
type: "select"
|
|
2868
2884
|
},
|
|
@@ -2874,7 +2890,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2874
2890
|
field: "hour",
|
|
2875
2891
|
name: "小时",
|
|
2876
2892
|
hide: !0,
|
|
2877
|
-
enum: [...Array(24)].map((
|
|
2893
|
+
enum: [...Array(24)].map((f, p) => ({
|
|
2878
2894
|
label: p + "时",
|
|
2879
2895
|
value: p
|
|
2880
2896
|
})),
|
|
@@ -2889,7 +2905,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2889
2905
|
field: "minute",
|
|
2890
2906
|
name: "分钟",
|
|
2891
2907
|
hide: !0,
|
|
2892
|
-
enum: [...Array(60)].map((
|
|
2908
|
+
enum: [...Array(60)].map((f, p) => ({
|
|
2893
2909
|
label: p + "分",
|
|
2894
2910
|
value: p
|
|
2895
2911
|
})),
|
|
@@ -2903,14 +2919,14 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2903
2919
|
}, {
|
|
2904
2920
|
field: "enable_status",
|
|
2905
2921
|
name: "启用状态",
|
|
2906
|
-
render: (
|
|
2907
|
-
modelValue:
|
|
2908
|
-
"onUpdate:modelValue": (p) =>
|
|
2922
|
+
render: (f) => l(s("el-switch"), {
|
|
2923
|
+
modelValue: f.row.enable_status,
|
|
2924
|
+
"onUpdate:modelValue": (p) => f.row.enable_status = p,
|
|
2909
2925
|
"active-value": 1,
|
|
2910
2926
|
"inactive-value": 0,
|
|
2911
2927
|
onChange: (p) => {
|
|
2912
2928
|
pt({
|
|
2913
|
-
subscript_uuid:
|
|
2929
|
+
subscript_uuid: f.row.subscript_uuid,
|
|
2914
2930
|
enable_status: p
|
|
2915
2931
|
}), t.value.getTableList();
|
|
2916
2932
|
}
|
|
@@ -2921,30 +2937,30 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2921
2937
|
fixed: "right",
|
|
2922
2938
|
cardHide: !0,
|
|
2923
2939
|
width: 120,
|
|
2924
|
-
render: (
|
|
2940
|
+
render: (f) => l("div", null, [l(s("el-button"), {
|
|
2925
2941
|
link: !0,
|
|
2926
2942
|
type: "primary",
|
|
2927
2943
|
icon: "Edit",
|
|
2928
2944
|
title: a("button.edit"),
|
|
2929
2945
|
class: "custom-btn",
|
|
2930
|
-
onClick: () => g(
|
|
2931
|
-
}, null), l(
|
|
2946
|
+
onClick: () => g(f.row)
|
|
2947
|
+
}, null), l(s("el-button"), {
|
|
2932
2948
|
link: !0,
|
|
2933
2949
|
type: "danger",
|
|
2934
2950
|
icon: "Delete",
|
|
2935
2951
|
title: a("button.delete"),
|
|
2936
|
-
onClick: () =>
|
|
2952
|
+
onClick: () => d([f.row])
|
|
2937
2953
|
}, null)])
|
|
2938
2954
|
}]);
|
|
2939
|
-
return (
|
|
2940
|
-
const D =
|
|
2941
|
-
return
|
|
2955
|
+
return (f, p) => {
|
|
2956
|
+
const D = s("el-button");
|
|
2957
|
+
return c(), x("div", Vo, [l(y(Ge), {
|
|
2942
2958
|
ref_key: "refTdsTable",
|
|
2943
2959
|
ref: t,
|
|
2944
2960
|
"row-key": "subscript_uuid",
|
|
2945
|
-
"request-api":
|
|
2946
|
-
columns:
|
|
2947
|
-
options:
|
|
2961
|
+
"request-api": y(At),
|
|
2962
|
+
columns: C,
|
|
2963
|
+
options: f.$tableOptions()
|
|
2948
2964
|
}, {
|
|
2949
2965
|
tableHeader: u((B) => [l(D, {
|
|
2950
2966
|
type: "primary",
|
|
@@ -2953,7 +2969,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2953
2969
|
plain: "",
|
|
2954
2970
|
onClick: p[0] || (p[0] = (K) => g())
|
|
2955
2971
|
}, {
|
|
2956
|
-
default: u(() => [
|
|
2972
|
+
default: u(() => [E(M(y(a)("button.add")), 1)]),
|
|
2957
2973
|
_: 1
|
|
2958
2974
|
}), l(D, {
|
|
2959
2975
|
type: "danger",
|
|
@@ -2962,25 +2978,25 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2962
2978
|
onClick: i,
|
|
2963
2979
|
disabled: !B.selectedListIds.length
|
|
2964
2980
|
}, {
|
|
2965
|
-
default: u(() => [
|
|
2981
|
+
default: u(() => [E(M(y(a)("button.delete")), 1)]),
|
|
2966
2982
|
_: 2
|
|
2967
2983
|
}, 1032, ["disabled"])]),
|
|
2968
2984
|
_: 1
|
|
2969
|
-
}, 8, ["request-api", "columns", "options"]), l(
|
|
2985
|
+
}, 8, ["request-api", "columns", "options"]), l(y(Xe), ve({
|
|
2970
2986
|
ref_key: "refTdsForm",
|
|
2971
2987
|
ref: e
|
|
2972
|
-
},
|
|
2988
|
+
}, f.$formBindProps({
|
|
2973
2989
|
title: n.value,
|
|
2974
|
-
form:
|
|
2975
|
-
columns:
|
|
2990
|
+
form: A.value,
|
|
2991
|
+
columns: C
|
|
2976
2992
|
}), {
|
|
2977
|
-
onSubmit:
|
|
2993
|
+
onSubmit: m
|
|
2978
2994
|
}), null, 16)]);
|
|
2979
2995
|
};
|
|
2980
2996
|
}
|
|
2981
|
-
}),
|
|
2997
|
+
}), ko = W(Do), Lo = {
|
|
2982
2998
|
class: "main-wrapper"
|
|
2983
|
-
},
|
|
2999
|
+
}, Eo = /* @__PURE__ */ L({
|
|
2984
3000
|
name: "TCBuildin",
|
|
2985
3001
|
__name: "index",
|
|
2986
3002
|
setup(o) {
|
|
@@ -2992,8 +3008,8 @@ const Vo = /* @__PURE__ */ L({
|
|
|
2992
3008
|
t.value = r.data, e.value = r.data[0].report_uuid;
|
|
2993
3009
|
}
|
|
2994
3010
|
return a(), (r, n) => {
|
|
2995
|
-
const
|
|
2996
|
-
return
|
|
3011
|
+
const A = s("el-tab-pane"), d = s("el-tabs");
|
|
3012
|
+
return c(), x("div", Lo, [l(d, {
|
|
2997
3013
|
modelValue: e.value,
|
|
2998
3014
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => e.value = i),
|
|
2999
3015
|
class: "report-tabs",
|
|
@@ -3001,7 +3017,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
3001
3017
|
height: "100%"
|
|
3002
3018
|
}
|
|
3003
3019
|
}, {
|
|
3004
|
-
default: u(() => [(
|
|
3020
|
+
default: u(() => [(c(!0), x(S, null, P(t.value, (i) => (c(), k(A, {
|
|
3005
3021
|
style: {
|
|
3006
3022
|
height: "100%"
|
|
3007
3023
|
},
|
|
@@ -3009,7 +3025,7 @@ const Vo = /* @__PURE__ */ L({
|
|
|
3009
3025
|
label: i.report_name,
|
|
3010
3026
|
name: i.report_uuid
|
|
3011
3027
|
}, {
|
|
3012
|
-
default: u(() => [e.value === i.report_uuid ? (
|
|
3028
|
+
default: u(() => [e.value === i.report_uuid ? (c(), k(Ve, {
|
|
3013
3029
|
key: 0,
|
|
3014
3030
|
"report-id": e.value
|
|
3015
3031
|
}, null, 8, ["report-id"])) : R("", !0)]),
|
|
@@ -3020,22 +3036,22 @@ const Vo = /* @__PURE__ */ L({
|
|
|
3020
3036
|
};
|
|
3021
3037
|
}
|
|
3022
3038
|
});
|
|
3023
|
-
const Uo = /* @__PURE__ */ Y(
|
|
3024
|
-
TCReport:
|
|
3025
|
-
TCModule:
|
|
3026
|
-
TCSubscribe:
|
|
3027
|
-
TCBuildin:
|
|
3028
|
-
},
|
|
3039
|
+
const Uo = /* @__PURE__ */ Y(Eo, [["__scopeId", "data-v-30fa84c8"]]), Ro = W(Uo), So = {
|
|
3040
|
+
TCReport: yo,
|
|
3041
|
+
TCModule: To,
|
|
3042
|
+
TCSubscribe: ko,
|
|
3043
|
+
TCBuildin: Ro
|
|
3044
|
+
}, qo = {
|
|
3029
3045
|
install(o, t) {
|
|
3030
|
-
Object.entries(
|
|
3046
|
+
Object.entries(So).forEach(([e, a]) => {
|
|
3031
3047
|
o.component(e, a);
|
|
3032
3048
|
}), t.prodType && (window.$prodType = t.prodType), t.envURL && (window.$reportURL = t.envURL);
|
|
3033
3049
|
}
|
|
3034
3050
|
};
|
|
3035
3051
|
export {
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3052
|
+
Ro as TCBuildin,
|
|
3053
|
+
To as TCModule,
|
|
3054
|
+
yo as TCReport,
|
|
3055
|
+
ko as TCSubscribe,
|
|
3056
|
+
qo as default
|
|
3041
3057
|
};
|