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