@topdatasec/report 1.1.18 → 1.1.20
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/t-report-ui.es.js +216 -186
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as L, computed as
|
|
1
|
+
import { defineComponent as L, computed as I, 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 q, unref as w, 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";
|
|
5
5
|
import { Toolbar as ze, Editor as Ne } from "@wangeditor/editor-for-vue";
|
|
6
6
|
import { CircleClose as Ye } from "@element-plus/icons-vue";
|
|
7
7
|
import { TdsTable as Ge, TdsForm as Xe } from "topdatasec-ui";
|
|
8
|
-
const
|
|
9
|
-
function
|
|
8
|
+
const Q = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), J = (o) => JSON.parse(JSON.stringify(o)), Je = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), K = (o, t) => o[Je(t)];
|
|
9
|
+
function je(o, t, e) {
|
|
10
10
|
const a = atob(o), r = [];
|
|
11
11
|
for (let i = 0; i < a.length; i += 512) {
|
|
12
12
|
const g = a.slice(i, i + 512), m = new Array(g.length);
|
|
@@ -20,7 +20,7 @@ function Ze(o, t, e) {
|
|
|
20
20
|
document.body.removeChild(d), URL.revokeObjectURL(A);
|
|
21
21
|
}, 0);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Ze = (o) => window.$http.request({
|
|
24
24
|
url: `${window.$reportURL}/tds/report/demo/get`,
|
|
25
25
|
method: "get",
|
|
26
26
|
params: o,
|
|
@@ -122,7 +122,7 @@ const je = (o) => window.$http.request({
|
|
|
122
122
|
params: o,
|
|
123
123
|
loading: !1,
|
|
124
124
|
isError: !1
|
|
125
|
-
}), _e = "rgba(51, 51, 51, 0.15)",
|
|
125
|
+
}), _e = "rgba(51, 51, 51, 0.15)", H = "rgba(51, 51, 51, 1)", z = 12, ye = (o = !1) => {
|
|
126
126
|
const t = {
|
|
127
127
|
// top: '2%',
|
|
128
128
|
left: "3%",
|
|
@@ -157,7 +157,7 @@ const je = (o) => window.$http.request({
|
|
|
157
157
|
t.forEach((A) => {
|
|
158
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
|
+
}, Z = (o = [
|
|
161
161
|
{
|
|
162
162
|
name: "数据1",
|
|
163
163
|
value: 63
|
|
@@ -201,7 +201,7 @@ const je = (o) => window.$http.request({
|
|
|
201
201
|
// type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
|
|
202
202
|
// show: true,
|
|
203
203
|
// },
|
|
204
|
-
grid:
|
|
204
|
+
grid: ye(),
|
|
205
205
|
title: {
|
|
206
206
|
show: !0,
|
|
207
207
|
text: "样例数据",
|
|
@@ -221,7 +221,7 @@ const je = (o) => window.$http.request({
|
|
|
221
221
|
nameRotate: 0,
|
|
222
222
|
// 坐标轴名称旋转
|
|
223
223
|
axisLabel: {
|
|
224
|
-
color:
|
|
224
|
+
color: H,
|
|
225
225
|
// X轴类目名称样式
|
|
226
226
|
rotate: 0
|
|
227
227
|
// X轴类目名称旋转角度
|
|
@@ -250,7 +250,7 @@ const je = (o) => window.$http.request({
|
|
|
250
250
|
position: "left",
|
|
251
251
|
nameTextStyle: {
|
|
252
252
|
fontSize: z,
|
|
253
|
-
color:
|
|
253
|
+
color: H,
|
|
254
254
|
fontWeight: "bold"
|
|
255
255
|
},
|
|
256
256
|
axisLine: { show: !1 },
|
|
@@ -260,7 +260,7 @@ const je = (o) => window.$http.request({
|
|
|
260
260
|
splitLine: { show: !1 },
|
|
261
261
|
// 纵向分隔线
|
|
262
262
|
axisLabel: {
|
|
263
|
-
color:
|
|
263
|
+
color: H,
|
|
264
264
|
// y轴刻度标签
|
|
265
265
|
formatter: "{value}",
|
|
266
266
|
inside: !1
|
|
@@ -370,7 +370,7 @@ const je = (o) => window.$http.request({
|
|
|
370
370
|
},
|
|
371
371
|
textStyle: {
|
|
372
372
|
fontSize: z,
|
|
373
|
-
color:
|
|
373
|
+
color: H
|
|
374
374
|
},
|
|
375
375
|
data: o,
|
|
376
376
|
orient: "vertical",
|
|
@@ -478,11 +478,11 @@ const je = (o) => window.$http.request({
|
|
|
478
478
|
]
|
|
479
479
|
};
|
|
480
480
|
return d;
|
|
481
|
-
},
|
|
481
|
+
}, yt = (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]);
|
|
484
484
|
}) : typeof e.value == "string" && (o.series[0].data = t.map((a) => a[e.value]));
|
|
485
|
-
},
|
|
485
|
+
}, wt = () => ({
|
|
486
486
|
name: "",
|
|
487
487
|
type: "line",
|
|
488
488
|
symbol: "circle",
|
|
@@ -528,7 +528,7 @@ const je = (o) => window.$http.request({
|
|
|
528
528
|
}
|
|
529
529
|
},
|
|
530
530
|
data: []
|
|
531
|
-
}),
|
|
531
|
+
}), j = (o = [
|
|
532
532
|
{
|
|
533
533
|
name: "2024-08",
|
|
534
534
|
value: 63
|
|
@@ -560,12 +560,12 @@ const je = (o) => window.$http.request({
|
|
|
560
560
|
show: !0,
|
|
561
561
|
itemWidth: 30,
|
|
562
562
|
textStyle: {
|
|
563
|
-
color:
|
|
563
|
+
color: H,
|
|
564
564
|
fontSize: z,
|
|
565
565
|
padding: [0, 8, 0, 8]
|
|
566
566
|
}
|
|
567
567
|
},
|
|
568
|
-
grid:
|
|
568
|
+
grid: ye(),
|
|
569
569
|
xAxis: {
|
|
570
570
|
type: "category",
|
|
571
571
|
splitLine: { show: !1 },
|
|
@@ -577,7 +577,7 @@ const je = (o) => window.$http.request({
|
|
|
577
577
|
axisLabel: {
|
|
578
578
|
show: !0,
|
|
579
579
|
fontSize: z,
|
|
580
|
-
color:
|
|
580
|
+
color: H
|
|
581
581
|
},
|
|
582
582
|
boundaryGap: !1,
|
|
583
583
|
data: o.map((n) => n[t.name])
|
|
@@ -590,17 +590,17 @@ const je = (o) => window.$http.request({
|
|
|
590
590
|
axisTick: { show: !1 },
|
|
591
591
|
nameTextStyle: {
|
|
592
592
|
fontSize: z,
|
|
593
|
-
color:
|
|
593
|
+
color: H,
|
|
594
594
|
padding: [0, 60, 0, 0]
|
|
595
595
|
},
|
|
596
596
|
axisLabel: {
|
|
597
597
|
show: !0,
|
|
598
598
|
fontSize: z,
|
|
599
|
-
color:
|
|
599
|
+
color: H
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
602
|
series: []
|
|
603
|
-
}, a =
|
|
603
|
+
}, a = wt(), r = [];
|
|
604
604
|
if (Array.isArray(t.value))
|
|
605
605
|
t.value.forEach((n, A) => {
|
|
606
606
|
const d = J(a);
|
|
@@ -646,22 +646,10 @@ const je = (o) => window.$http.request({
|
|
|
646
646
|
{
|
|
647
647
|
label: "全部",
|
|
648
648
|
data: "0"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
label: "10.10.2.20_root",
|
|
652
|
-
data: "743dbb32-8a41-4990-9d76-48925b000a93"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
label: "10.10.4.206_sysdba",
|
|
656
|
-
data: "23193788-c895-47a8-8123-65799540394c"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
label: "10.10.4.26_root@/root/files/",
|
|
660
|
-
data: "bb7b07c9-b96b-4caf-ac76-bb45ae849844"
|
|
661
649
|
}
|
|
662
650
|
],
|
|
663
651
|
uri: "/da/report/sens/get_asset_all",
|
|
664
|
-
id:
|
|
652
|
+
id: Q()
|
|
665
653
|
},
|
|
666
654
|
{
|
|
667
655
|
type: "range-time",
|
|
@@ -671,7 +659,7 @@ const je = (o) => window.$http.request({
|
|
|
671
659
|
end_time: "2024-09-12 19:49:34"
|
|
672
660
|
}
|
|
673
661
|
],
|
|
674
|
-
id:
|
|
662
|
+
id: Q()
|
|
675
663
|
},
|
|
676
664
|
{
|
|
677
665
|
type: "h1",
|
|
@@ -684,7 +672,7 @@ const je = (o) => window.$http.request({
|
|
|
684
672
|
textIndent: 0,
|
|
685
673
|
textAlign: "left"
|
|
686
674
|
},
|
|
687
|
-
id:
|
|
675
|
+
id: Q()
|
|
688
676
|
},
|
|
689
677
|
{
|
|
690
678
|
type: "h2",
|
|
@@ -698,7 +686,7 @@ const je = (o) => window.$http.request({
|
|
|
698
686
|
textIndent: 0,
|
|
699
687
|
textAlign: "left"
|
|
700
688
|
},
|
|
701
|
-
id:
|
|
689
|
+
id: Q()
|
|
702
690
|
},
|
|
703
691
|
{
|
|
704
692
|
type: "report-table",
|
|
@@ -716,7 +704,7 @@ const je = (o) => window.$http.request({
|
|
|
716
704
|
stripe: !1
|
|
717
705
|
},
|
|
718
706
|
rp_item_uuid: "",
|
|
719
|
-
id:
|
|
707
|
+
id: Q()
|
|
720
708
|
}
|
|
721
709
|
], xt = [
|
|
722
710
|
{
|
|
@@ -786,39 +774,39 @@ const je = (o) => window.$http.request({
|
|
|
786
774
|
data: $,
|
|
787
775
|
showColumn: [{ key: "label", value: "data" }],
|
|
788
776
|
name: "图表",
|
|
789
|
-
options:
|
|
777
|
+
options: Z(),
|
|
790
778
|
rp_item_uuid: "",
|
|
791
779
|
id: ""
|
|
792
780
|
}
|
|
793
781
|
], Bt = (o) => ({
|
|
794
|
-
bar: {
|
|
782
|
+
bar: () => ({
|
|
795
783
|
type: "bar",
|
|
796
784
|
data: $,
|
|
797
785
|
showColumn: [{ key: "label", value: "data" }],
|
|
798
786
|
name: "图表",
|
|
799
|
-
options:
|
|
787
|
+
options: Z(),
|
|
800
788
|
rp_item_uuid: "",
|
|
801
|
-
id:
|
|
802
|
-
},
|
|
803
|
-
line: {
|
|
789
|
+
id: Q()
|
|
790
|
+
}),
|
|
791
|
+
line: () => ({
|
|
804
792
|
type: "line",
|
|
805
793
|
data: $,
|
|
806
794
|
showColumn: [{ key: "label", value: "data" }],
|
|
807
795
|
name: "图表",
|
|
808
|
-
options:
|
|
796
|
+
options: j(),
|
|
809
797
|
rp_item_uuid: "",
|
|
810
|
-
id:
|
|
811
|
-
},
|
|
812
|
-
pie: {
|
|
798
|
+
id: Q()
|
|
799
|
+
}),
|
|
800
|
+
pie: () => ({
|
|
813
801
|
type: "pie",
|
|
814
802
|
data: ht,
|
|
815
803
|
showColumn: [{ key: "label", value: "data" }],
|
|
816
804
|
name: "图表",
|
|
817
805
|
options: re({ isLegend: !0 }),
|
|
818
806
|
rp_item_uuid: "",
|
|
819
|
-
id:
|
|
820
|
-
},
|
|
821
|
-
"report-table": {
|
|
807
|
+
id: Q()
|
|
808
|
+
}),
|
|
809
|
+
"report-table": () => ({
|
|
822
810
|
type: "report-table",
|
|
823
811
|
data: se,
|
|
824
812
|
showColumn: Ae,
|
|
@@ -834,9 +822,49 @@ const je = (o) => window.$http.request({
|
|
|
834
822
|
stripe: !1
|
|
835
823
|
},
|
|
836
824
|
rp_item_uuid: "",
|
|
837
|
-
id:
|
|
838
|
-
}
|
|
839
|
-
|
|
825
|
+
id: Q()
|
|
826
|
+
}),
|
|
827
|
+
"report-describe": () => ({
|
|
828
|
+
type: "report-describe",
|
|
829
|
+
data: {
|
|
830
|
+
object_name: "10.10.2.21_root ",
|
|
831
|
+
database_type: "MYSQL",
|
|
832
|
+
ip_port: "10.10.2.21: 3306 ",
|
|
833
|
+
time_range: "2025-03-01 15:51:51~2025-03-06 15:51:51",
|
|
834
|
+
report_time: "2025-03-06 15:51:51"
|
|
835
|
+
},
|
|
836
|
+
name: "描述列表",
|
|
837
|
+
options: {
|
|
838
|
+
title: "",
|
|
839
|
+
border: !0,
|
|
840
|
+
column: 1,
|
|
841
|
+
direction: "horizontal"
|
|
842
|
+
},
|
|
843
|
+
showColumn: [
|
|
844
|
+
{
|
|
845
|
+
name: "分析对象",
|
|
846
|
+
key: "object_name"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
name: "数据库类型",
|
|
850
|
+
key: "database_type"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: "IP与端口信息",
|
|
854
|
+
key: " ip_port"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
name: "时间范围",
|
|
858
|
+
key: "time_range"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
name: "报告生成时间",
|
|
862
|
+
key: "report_time"
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
id: Q()
|
|
866
|
+
})
|
|
867
|
+
})[o](), F = Fe("tds-report", {
|
|
840
868
|
state: () => ({
|
|
841
869
|
componentList: [],
|
|
842
870
|
activeComponents: {},
|
|
@@ -857,10 +885,10 @@ const je = (o) => window.$http.request({
|
|
|
857
885
|
},
|
|
858
886
|
async getReportDemo(o) {
|
|
859
887
|
let t = [];
|
|
860
|
-
o ? t = (await
|
|
888
|
+
o ? t = (await Ze({ report_uuid: o })).data : t = { content: J(Ct), range_time: 1 };
|
|
861
889
|
const e = [];
|
|
862
890
|
t.content.forEach((a) => {
|
|
863
|
-
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id =
|
|
891
|
+
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = Q();
|
|
864
892
|
}), this.notDraggableList = e, this.filterForm.range_time = t.range_time, this.filterForm.filter_uuid = t.filter_uuid, t.content.splice(0, 3), this.componentList = t.content;
|
|
865
893
|
},
|
|
866
894
|
setActiveComponents(o) {
|
|
@@ -897,7 +925,7 @@ const je = (o) => window.$http.request({
|
|
|
897
925
|
data: { default: () => [] }
|
|
898
926
|
},
|
|
899
927
|
setup(o) {
|
|
900
|
-
const t = o, e =
|
|
928
|
+
const t = o, e = I(() => t.data.filter((a) => ["h2", "h3", "h4"].includes(a.type)));
|
|
901
929
|
return (a, r) => {
|
|
902
930
|
const n = s("el-divider");
|
|
903
931
|
return c(), x("div", Vt, [
|
|
@@ -915,9 +943,9 @@ const je = (o) => window.$http.request({
|
|
|
915
943
|
href: "#" + A.id,
|
|
916
944
|
title: A.data
|
|
917
945
|
}, [
|
|
918
|
-
E(
|
|
946
|
+
E(q(A.data), 1)
|
|
919
947
|
], 8, Dt)), [
|
|
920
|
-
[
|
|
948
|
+
[w(Tt)]
|
|
921
949
|
])
|
|
922
950
|
], 2))), 128))
|
|
923
951
|
]);
|
|
@@ -931,13 +959,13 @@ const Y = (o, t) => {
|
|
|
931
959
|
return e;
|
|
932
960
|
}, Lt = /* @__PURE__ */ Y(kt, [["__scopeId", "data-v-00cc9080"]]), Et = {
|
|
933
961
|
class: "chart-components"
|
|
934
|
-
},
|
|
962
|
+
}, we = /* @__PURE__ */ L({
|
|
935
963
|
__name: "Bar",
|
|
936
964
|
props: {
|
|
937
965
|
value: {}
|
|
938
966
|
},
|
|
939
967
|
setup(o) {
|
|
940
|
-
const t = o, e =
|
|
968
|
+
const t = o, e = I(() => t.value.options);
|
|
941
969
|
return V(!1), (a, r) => {
|
|
942
970
|
const n = s("TdsChart");
|
|
943
971
|
return c(), x("div", Et, [l(n, {
|
|
@@ -951,7 +979,7 @@ const Y = (o, t) => {
|
|
|
951
979
|
value: {}
|
|
952
980
|
},
|
|
953
981
|
setup(o) {
|
|
954
|
-
const t = o, e =
|
|
982
|
+
const t = o, e = I(() => t.value.options);
|
|
955
983
|
return (a, r) => {
|
|
956
984
|
const n = s("TdsChart");
|
|
957
985
|
return c(), x("div", Ut, [
|
|
@@ -965,7 +993,7 @@ const Y = (o, t) => {
|
|
|
965
993
|
value: {}
|
|
966
994
|
},
|
|
967
995
|
setup(o) {
|
|
968
|
-
const t = o, e =
|
|
996
|
+
const t = o, e = I(() => t.value.options);
|
|
969
997
|
return (a, r) => {
|
|
970
998
|
const n = s("TdsChart");
|
|
971
999
|
return c(), x("div", Rt, [
|
|
@@ -1080,7 +1108,7 @@ const xe = /* @__PURE__ */ L({
|
|
|
1080
1108
|
};
|
|
1081
1109
|
return (a, r) => (c(), x("div", {
|
|
1082
1110
|
style: Ee(e())
|
|
1083
|
-
},
|
|
1111
|
+
}, q(a.value.data), 5));
|
|
1084
1112
|
}
|
|
1085
1113
|
}), Pt = { class: "chart-components" }, Be = /* @__PURE__ */ L({
|
|
1086
1114
|
__name: "ReportChart",
|
|
@@ -1088,9 +1116,9 @@ const xe = /* @__PURE__ */ L({
|
|
|
1088
1116
|
value: {}
|
|
1089
1117
|
},
|
|
1090
1118
|
setup(o) {
|
|
1091
|
-
const t = o, e =
|
|
1119
|
+
const t = o, e = I(() => t.value), a = I(() => {
|
|
1092
1120
|
if (e.value.type === "bar") {
|
|
1093
|
-
e.value.options.series =
|
|
1121
|
+
e.value.options.series = Z([]).series;
|
|
1094
1122
|
const r = [];
|
|
1095
1123
|
let n = "";
|
|
1096
1124
|
e.value.data.forEach((A) => {
|
|
@@ -1116,7 +1144,7 @@ const xe = /* @__PURE__ */ L({
|
|
|
1116
1144
|
i[g.value] = d.data[m].value;
|
|
1117
1145
|
}), i;
|
|
1118
1146
|
});
|
|
1119
|
-
console.log(
|
|
1147
|
+
console.log(j([], n), "chartsLine([], params)"), e.value.options.series = j([], n).series, yt(e.value.options, A, n);
|
|
1120
1148
|
}
|
|
1121
1149
|
return e.value.options;
|
|
1122
1150
|
});
|
|
@@ -1182,7 +1210,7 @@ const Te = /* @__PURE__ */ L({
|
|
|
1182
1210
|
emits: ["update:modelValue"],
|
|
1183
1211
|
setup(o) {
|
|
1184
1212
|
const t = V(!1), e = {
|
|
1185
|
-
Bar:
|
|
1213
|
+
Bar: we,
|
|
1186
1214
|
Line: he,
|
|
1187
1215
|
Pie: Ce,
|
|
1188
1216
|
ReportSelect: ee,
|
|
@@ -1191,7 +1219,7 @@ const Te = /* @__PURE__ */ L({
|
|
|
1191
1219
|
ReportText: oe,
|
|
1192
1220
|
ReportChart: Be,
|
|
1193
1221
|
ReportDescribe: Te
|
|
1194
|
-
}, a =
|
|
1222
|
+
}, a = F(), r = o, n = me(o, "modelValue"), A = V([]), d = V([]), i = V([]), g = V(""), m = V("");
|
|
1195
1223
|
function b() {
|
|
1196
1224
|
n.value = "table";
|
|
1197
1225
|
}
|
|
@@ -1207,10 +1235,10 @@ const Te = /* @__PURE__ */ L({
|
|
|
1207
1235
|
report_uuid: r.reportId,
|
|
1208
1236
|
start_time: g.value,
|
|
1209
1237
|
end_time: m.value
|
|
1210
|
-
}, B = await vt(D),
|
|
1211
|
-
|
|
1238
|
+
}, B = await vt(D), M = p === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
1239
|
+
je(B.file_data, B.file_name, M);
|
|
1212
1240
|
}
|
|
1213
|
-
const
|
|
1241
|
+
const y = (p) => {
|
|
1214
1242
|
i.value = p, _();
|
|
1215
1243
|
}, h = (p) => {
|
|
1216
1244
|
p && p.length > 0 && (g.value = p[0], m.value = p[1]), _();
|
|
@@ -1223,18 +1251,18 @@ const Te = /* @__PURE__ */ L({
|
|
|
1223
1251
|
end_time: m.value,
|
|
1224
1252
|
select_data: i.value.join(",")
|
|
1225
1253
|
}, D = await We(p), B = [];
|
|
1226
|
-
D.data.forEach((
|
|
1227
|
-
(
|
|
1254
|
+
D.data.forEach((M) => {
|
|
1255
|
+
(M.type === "report-select" || M.type === "range-time") && B.push(M);
|
|
1228
1256
|
}), A.value = B, D.data.splice(0, A.value.length), d.value = D.data, t.value = !1;
|
|
1229
1257
|
} catch (p) {
|
|
1230
1258
|
t.value = !1, console.error("Error setting loading state:", p);
|
|
1231
1259
|
}
|
|
1232
1260
|
};
|
|
1233
1261
|
_();
|
|
1234
|
-
const C = () => l("div", null, [E("未找到对应组件")]), f = (p) => p === "h2" || p === "h3" || p === "h4" ?
|
|
1262
|
+
const C = () => l("div", null, [E("未找到对应组件")]), f = (p) => p === "h2" || p === "h3" || p === "h4" ? K(e, "ReportText") : p === "bar" || p === "pie" || p === "line" ? K(e, "ReportChart") : p ? K(e, p) : l(C, null, null);
|
|
1235
1263
|
return (p, D) => {
|
|
1236
|
-
const B = s("el-button"),
|
|
1237
|
-
return le((c(), k(
|
|
1264
|
+
const B = s("el-button"), M = s("el-card"), Le = fe("loading");
|
|
1265
|
+
return le((c(), k(M, {
|
|
1238
1266
|
class: "editor view",
|
|
1239
1267
|
"element-loading-text": "加载中..."
|
|
1240
1268
|
}, {
|
|
@@ -1245,9 +1273,9 @@ const Te = /* @__PURE__ */ L({
|
|
|
1245
1273
|
key: U.id
|
|
1246
1274
|
}, [U.type === "report-select" ? (c(), k(ee, {
|
|
1247
1275
|
key: 0,
|
|
1248
|
-
onChange:
|
|
1276
|
+
onChange: y,
|
|
1249
1277
|
value: U
|
|
1250
|
-
}, null, 8, ["value"])) : R("", !0), U.type === "range-time" &&
|
|
1278
|
+
}, null, 8, ["value"])) : R("", !0), U.type === "range-time" && w(a).filterForm.range_time ? (c(), k(te, {
|
|
1251
1279
|
key: 1,
|
|
1252
1280
|
onChange: h,
|
|
1253
1281
|
value: U
|
|
@@ -1308,7 +1336,7 @@ const Te = /* @__PURE__ */ L({
|
|
|
1308
1336
|
class: N(["editor" + U.type]),
|
|
1309
1337
|
value: U
|
|
1310
1338
|
}, {
|
|
1311
|
-
default: u(() => [E(
|
|
1339
|
+
default: u(() => [E(q(U.data), 1)]),
|
|
1312
1340
|
_: 2
|
|
1313
1341
|
}, 1032, ["class", "value"])) : (c(), x("p", {
|
|
1314
1342
|
key: 1,
|
|
@@ -1323,11 +1351,11 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1323
1351
|
class: "editor"
|
|
1324
1352
|
}, Yt = {
|
|
1325
1353
|
class: "editor-content edit"
|
|
1326
|
-
}, Gt = ["onClick"], Xt = ["onClick"], Jt = ["innerHTML", "draggable"],
|
|
1354
|
+
}, Gt = ["onClick"], Xt = ["onClick"], Jt = ["innerHTML", "draggable"], jt = /* @__PURE__ */ L({
|
|
1327
1355
|
__name: "Editor",
|
|
1328
1356
|
setup(o) {
|
|
1329
1357
|
const t = {
|
|
1330
|
-
Bar:
|
|
1358
|
+
Bar: we,
|
|
1331
1359
|
Line: he,
|
|
1332
1360
|
Pie: Ce,
|
|
1333
1361
|
ReportSelect: ee,
|
|
@@ -1341,15 +1369,15 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1341
1369
|
activeComponents: a,
|
|
1342
1370
|
notDraggableList: r,
|
|
1343
1371
|
titleComponent: n
|
|
1344
|
-
} = Ke(
|
|
1372
|
+
} = Ke(F()), A = F(), d = (C) => {
|
|
1345
1373
|
e.value.forEach((f, p) => {
|
|
1346
1374
|
f.id === C && (e.value.splice(p, 1), A.activeComponents = []);
|
|
1347
1375
|
});
|
|
1348
1376
|
}, i = (C) => {
|
|
1349
1377
|
A.setActiveComponents(C);
|
|
1350
|
-
}, g = () => l("div", null, [E("未找到对应组件")]), m = (C) => C === "h2" || C === "h3" || C === "h4" ?
|
|
1378
|
+
}, g = () => l("div", null, [E("未找到对应组件")]), m = (C) => C === "h2" || C === "h3" || C === "h4" ? K(t, "ReportText") : C === "bar" || C === "pie" || C === "line" ? K(t, "ReportChart") : C ? K(t, C) : l(g, null, null), b = (C) => {
|
|
1351
1379
|
console.log(C, "evt");
|
|
1352
|
-
}, v = V(!1),
|
|
1380
|
+
}, v = V(!1), y = () => {
|
|
1353
1381
|
v.value = !0;
|
|
1354
1382
|
}, h = (C) => {
|
|
1355
1383
|
C.newIndex !== 0 && (console.log(C), v.value = !1);
|
|
@@ -1358,42 +1386,42 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1358
1386
|
const p = s("CircleClose"), D = s("el-icon");
|
|
1359
1387
|
return c(), x("div", Nt, [T("div", {
|
|
1360
1388
|
class: N(["editor-content edit flex flex-start", [{
|
|
1361
|
-
active:
|
|
1389
|
+
active: w(a).id === "filter"
|
|
1362
1390
|
}]]),
|
|
1363
1391
|
onClick: f[0] || (f[0] = (B) => i({
|
|
1364
1392
|
id: "filter",
|
|
1365
1393
|
type: "filter"
|
|
1366
1394
|
}))
|
|
1367
|
-
}, [(c(!0), x(S, null, P(
|
|
1395
|
+
}, [(c(!0), x(S, null, P(w(r), (B) => (c(), x("div", {
|
|
1368
1396
|
class: "item-input",
|
|
1369
1397
|
key: B.id
|
|
1370
|
-
}, [B.type === "report-select" || B.type === "range-time" &&
|
|
1398
|
+
}, [B.type === "report-select" || B.type === "range-time" && w(A).filterForm.range_time ? (c(), k(G(w(K)(t, B.type)), {
|
|
1371
1399
|
key: 0,
|
|
1372
1400
|
value: B
|
|
1373
1401
|
}, {
|
|
1374
|
-
default: u(() => [E(
|
|
1402
|
+
default: u(() => [E(q(B.data), 1)]),
|
|
1375
1403
|
_: 2
|
|
1376
1404
|
}, 1032, ["value"])) : R("", !0)]))), 128))], 2), T("div", Yt, [l(oe, {
|
|
1377
|
-
value:
|
|
1378
|
-
onClick: f[1] || (f[1] = (B) => i(
|
|
1379
|
-
}, null, 8, ["value"])]), l(
|
|
1405
|
+
value: w(n),
|
|
1406
|
+
onClick: f[1] || (f[1] = (B) => i(w(n)))
|
|
1407
|
+
}, null, 8, ["value"])]), l(w(He), {
|
|
1380
1408
|
ref_key: "el",
|
|
1381
1409
|
ref: _,
|
|
1382
|
-
modelValue:
|
|
1410
|
+
modelValue: w(e),
|
|
1383
1411
|
"onUpdate:modelValue": f[2] || (f[2] = (B) => Ue(e) ? e.value = B : null),
|
|
1384
1412
|
"on-change": b,
|
|
1385
1413
|
animation: 150,
|
|
1386
|
-
onStart:
|
|
1414
|
+
onStart: y,
|
|
1387
1415
|
onEnd: h
|
|
1388
1416
|
}, {
|
|
1389
|
-
default: u(() => [(c(!0), x(S, null, P(
|
|
1417
|
+
default: u(() => [(c(!0), x(S, null, P(w(e), (B) => (c(), x("div", {
|
|
1390
1418
|
key: B.id,
|
|
1391
1419
|
class: N(["editor-content edit", ["editor" + B.type, {
|
|
1392
|
-
active: B.id ===
|
|
1420
|
+
active: B.id === w(a).id
|
|
1393
1421
|
}]]),
|
|
1394
|
-
onClick: (
|
|
1422
|
+
onClick: (M) => i(B)
|
|
1395
1423
|
}, [T("i", {
|
|
1396
|
-
onClick: Re((
|
|
1424
|
+
onClick: Re((M) => d(B.id), ["stop"]),
|
|
1397
1425
|
style: {
|
|
1398
1426
|
"z-index": "99"
|
|
1399
1427
|
}
|
|
@@ -1409,7 +1437,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1409
1437
|
value: B,
|
|
1410
1438
|
draggable: v.value
|
|
1411
1439
|
}, {
|
|
1412
|
-
default: u(() => [E(
|
|
1440
|
+
default: u(() => [E(q(B.data), 1)]),
|
|
1413
1441
|
_: 2
|
|
1414
1442
|
}, 1032, ["class", "value", "draggable"])) : (c(), x("p", {
|
|
1415
1443
|
key: 1,
|
|
@@ -1420,10 +1448,10 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1420
1448
|
}, 8, ["modelValue"])]);
|
|
1421
1449
|
};
|
|
1422
1450
|
}
|
|
1423
|
-
}),
|
|
1451
|
+
}), Zt = { class: "label" }, Wt = { class: "flex item-switch" }, $t = { class: "flex item-switch" }, eo = { class: "flex item-switch" }, De = /* @__PURE__ */ L({
|
|
1424
1452
|
__name: "SettingTable",
|
|
1425
1453
|
setup(o) {
|
|
1426
|
-
const t =
|
|
1454
|
+
const t = F(), e = I(() => t.getActiveComponents);
|
|
1427
1455
|
return (a, r) => {
|
|
1428
1456
|
const n = s("el-switch"), A = s("el-form-item"), d = s("el-divider");
|
|
1429
1457
|
return c(), x("div", null, [
|
|
@@ -1433,7 +1461,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1433
1461
|
class: "flex item-switch",
|
|
1434
1462
|
key: g
|
|
1435
1463
|
}, [
|
|
1436
|
-
T("span",
|
|
1464
|
+
T("span", Zt, q(i.name), 1),
|
|
1437
1465
|
l(n, {
|
|
1438
1466
|
modelValue: e.value.options.showColumn[i.key],
|
|
1439
1467
|
"onUpdate:modelValue": (m) => e.value.options.showColumn[i.key] = m
|
|
@@ -1475,12 +1503,12 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1475
1503
|
}), to = { key: 0 }, oo = /* @__PURE__ */ L({
|
|
1476
1504
|
__name: "ChartsUniConfig",
|
|
1477
1505
|
setup(o) {
|
|
1478
|
-
const t =
|
|
1506
|
+
const t = F(), e = I(() => t.activeComponents);
|
|
1479
1507
|
function a(r) {
|
|
1480
1508
|
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);
|
|
1481
1509
|
}
|
|
1482
1510
|
return V("rgb(46, 145, 255)"), (r, n) => {
|
|
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"),
|
|
1511
|
+
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"), y = s("el-collapse-item"), h = s("el-collapse");
|
|
1484
1512
|
return e.value.options.title ? (c(), x("div", to, [
|
|
1485
1513
|
l(d, { label: "标题" }, {
|
|
1486
1514
|
default: u(() => [
|
|
@@ -1493,7 +1521,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1493
1521
|
}),
|
|
1494
1522
|
l(h, null, {
|
|
1495
1523
|
default: u(() => [
|
|
1496
|
-
l(
|
|
1524
|
+
l(y, {
|
|
1497
1525
|
title: "标题配置",
|
|
1498
1526
|
name: "1"
|
|
1499
1527
|
}, {
|
|
@@ -1560,7 +1588,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1560
1588
|
]),
|
|
1561
1589
|
_: 1
|
|
1562
1590
|
}),
|
|
1563
|
-
l(
|
|
1591
|
+
l(y, {
|
|
1564
1592
|
title: "图形配置",
|
|
1565
1593
|
name: "2"
|
|
1566
1594
|
}, {
|
|
@@ -1584,7 +1612,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1584
1612
|
]),
|
|
1585
1613
|
_: 1
|
|
1586
1614
|
}),
|
|
1587
|
-
l(
|
|
1615
|
+
l(y, {
|
|
1588
1616
|
title: "图例配置",
|
|
1589
1617
|
name: "3"
|
|
1590
1618
|
}, {
|
|
@@ -1618,7 +1646,7 @@ const Ve = /* @__PURE__ */ Y(zt, [["__scopeId", "data-v-a8c32bde"]]), Nt = {
|
|
|
1618
1646
|
const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @__PURE__ */ L({
|
|
1619
1647
|
__name: "SettingDescribe",
|
|
1620
1648
|
setup(o) {
|
|
1621
|
-
const t =
|
|
1649
|
+
const t = F(), e = I(() => t.getActiveComponents);
|
|
1622
1650
|
return (a, r) => {
|
|
1623
1651
|
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
1652
|
return c(), x("div", null, [
|
|
@@ -1683,7 +1711,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1683
1711
|
}), no = /* @__PURE__ */ L({
|
|
1684
1712
|
__name: "SettingCharts",
|
|
1685
1713
|
setup(o) {
|
|
1686
|
-
const t =
|
|
1714
|
+
const t = F(), e = V(!1), a = I(() => t.getActiveComponents), r = [
|
|
1687
1715
|
{ value: "report-describe", name: "描述列表" },
|
|
1688
1716
|
{ value: "report-table", name: "表格" },
|
|
1689
1717
|
{ value: "line", name: "趋势图" },
|
|
@@ -1699,24 +1727,24 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1699
1727
|
A.value = b.data;
|
|
1700
1728
|
}
|
|
1701
1729
|
function i(m) {
|
|
1702
|
-
let b = A.value.find((
|
|
1730
|
+
let b = A.value.find((y) => y.rp_item_uuid === m);
|
|
1703
1731
|
const v = b.rp_item_content;
|
|
1704
|
-
if (b.rp_item_content.type === "bar" && (v.options =
|
|
1705
|
-
let
|
|
1732
|
+
if (b.rp_item_content.type === "bar" && (v.options = Z()), v.type === "pie" && (v.options = re({ isLegend: !0 })), v.type === "line") {
|
|
1733
|
+
let y = [];
|
|
1706
1734
|
v.data.forEach((_) => {
|
|
1707
|
-
|
|
1735
|
+
y = _.data.map((C, f) => ({ name: C.name, value: "value" + f }));
|
|
1708
1736
|
});
|
|
1709
1737
|
const h = {
|
|
1710
1738
|
name: "name",
|
|
1711
|
-
value:
|
|
1739
|
+
value: y
|
|
1712
1740
|
};
|
|
1713
|
-
v.options =
|
|
1741
|
+
v.options = j([], h);
|
|
1714
1742
|
}
|
|
1715
1743
|
if (v.type === "report-table") {
|
|
1716
|
-
const
|
|
1744
|
+
const y = {};
|
|
1717
1745
|
v.showColumn.forEach((h) => {
|
|
1718
|
-
|
|
1719
|
-
}), v.options = { ...v.options, showColumn:
|
|
1746
|
+
y[h.key] = !0;
|
|
1747
|
+
}), v.options = { ...v.options, showColumn: y, border: !0, showHeader: !0, stripe: !1 };
|
|
1720
1748
|
}
|
|
1721
1749
|
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;
|
|
1722
1750
|
}
|
|
@@ -1725,9 +1753,11 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1725
1753
|
});
|
|
1726
1754
|
async function g(m) {
|
|
1727
1755
|
try {
|
|
1728
|
-
e.value = !0, await d(m)
|
|
1729
|
-
} catch {
|
|
1730
|
-
|
|
1756
|
+
e.value = !0, await d(m);
|
|
1757
|
+
} catch (b) {
|
|
1758
|
+
console.error("加载报告项失败:", b);
|
|
1759
|
+
} finally {
|
|
1760
|
+
Object.assign(t.activeComponents, Bt(m)), e.value = !1;
|
|
1731
1761
|
}
|
|
1732
1762
|
}
|
|
1733
1763
|
return Se(
|
|
@@ -1736,13 +1766,13 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1736
1766
|
console.log(m, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(m.type) && (n.value = a.value.type, d(n.value));
|
|
1737
1767
|
}
|
|
1738
1768
|
), (m, b) => {
|
|
1739
|
-
const v = s("el-option"),
|
|
1769
|
+
const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), _ = s("el-form"), C = fe("loading");
|
|
1740
1770
|
return le((c(), x("div", null, [
|
|
1741
1771
|
l(_, { "label-position": "top" }, {
|
|
1742
1772
|
default: u(() => [
|
|
1743
1773
|
l(h, { label: "图表类型" }, {
|
|
1744
1774
|
default: u(() => [
|
|
1745
|
-
l(
|
|
1775
|
+
l(y, {
|
|
1746
1776
|
style: { width: "100%" },
|
|
1747
1777
|
modelValue: n.value,
|
|
1748
1778
|
"onUpdate:modelValue": b[0] || (b[0] = (f) => n.value = f),
|
|
@@ -1762,10 +1792,10 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1762
1792
|
}),
|
|
1763
1793
|
l(h, { label: "组件库" }, {
|
|
1764
1794
|
default: u(() => [
|
|
1765
|
-
l(
|
|
1795
|
+
l(y, {
|
|
1766
1796
|
style: { width: "100%" },
|
|
1767
|
-
modelValue:
|
|
1768
|
-
"onUpdate:modelValue": b[1] || (b[1] = (f) =>
|
|
1797
|
+
modelValue: w(t).activeComponents.rp_item_uuid,
|
|
1798
|
+
"onUpdate:modelValue": b[1] || (b[1] = (f) => w(t).activeComponents.rp_item_uuid = f),
|
|
1769
1799
|
onChange: i
|
|
1770
1800
|
}, {
|
|
1771
1801
|
default: u(() => [
|
|
@@ -1794,7 +1824,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1794
1824
|
}), ao = { key: 0 }, ro = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ie = "default", Ao = /* @__PURE__ */ L({
|
|
1795
1825
|
__name: "SettingText",
|
|
1796
1826
|
setup(o) {
|
|
1797
|
-
const t =
|
|
1827
|
+
const t = F(), e = Oe(), a = V();
|
|
1798
1828
|
function r(m) {
|
|
1799
1829
|
const b = a.value.find((v) => v.rp_item_uuid === m);
|
|
1800
1830
|
t.activeComponents.uri = b.rp_item_content.uri, e.value.setHtml((b == null ? void 0 : b.rp_item_content.data) || "");
|
|
@@ -1834,16 +1864,16 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1834
1864
|
const m = e.value;
|
|
1835
1865
|
m != null && m.destroy();
|
|
1836
1866
|
}), (m, b) => {
|
|
1837
|
-
const v = s("el-option"),
|
|
1838
|
-
return
|
|
1867
|
+
const v = s("el-option"), y = s("el-select"), h = s("el-form-item"), _ = s("el-form");
|
|
1868
|
+
return w(t).activeComponents.id ? (c(), x("div", ao, [
|
|
1839
1869
|
l(_, { "label-position": "top" }, {
|
|
1840
1870
|
default: u(() => [
|
|
1841
1871
|
l(h, { label: "组件库" }, {
|
|
1842
1872
|
default: u(() => [
|
|
1843
|
-
l(
|
|
1873
|
+
l(y, {
|
|
1844
1874
|
style: { width: "100%" },
|
|
1845
|
-
modelValue:
|
|
1846
|
-
"onUpdate:modelValue": b[0] || (b[0] = (C) =>
|
|
1875
|
+
modelValue: w(t).activeComponents.rp_item_uuid,
|
|
1876
|
+
"onUpdate:modelValue": b[0] || (b[0] = (C) => w(t).activeComponents.rp_item_uuid = C),
|
|
1847
1877
|
onChange: r
|
|
1848
1878
|
}, {
|
|
1849
1879
|
default: u(() => [
|
|
@@ -1861,17 +1891,17 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1861
1891
|
l(h, { label: "文本内容" }, {
|
|
1862
1892
|
default: u(() => [
|
|
1863
1893
|
T("div", ro, [
|
|
1864
|
-
l(
|
|
1894
|
+
l(w(ze), {
|
|
1865
1895
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1866
1896
|
editor: e.value,
|
|
1867
1897
|
"default-config": A,
|
|
1868
1898
|
mode: ie
|
|
1869
1899
|
}, null, 8, ["editor"]),
|
|
1870
|
-
l(
|
|
1900
|
+
l(w(Ne), {
|
|
1871
1901
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1872
1902
|
onOnChange: g,
|
|
1873
|
-
modelValue:
|
|
1874
|
-
"onUpdate:modelValue": b[1] || (b[1] = (C) =>
|
|
1903
|
+
modelValue: w(t).activeComponents.data,
|
|
1904
|
+
"onUpdate:modelValue": b[1] || (b[1] = (C) => w(t).activeComponents.data = C),
|
|
1875
1905
|
"default-config": d,
|
|
1876
1906
|
mode: ie,
|
|
1877
1907
|
onOnCreated: i
|
|
@@ -1889,7 +1919,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1889
1919
|
}), so = /* @__PURE__ */ L({
|
|
1890
1920
|
__name: "SettingFilter",
|
|
1891
1921
|
setup(o) {
|
|
1892
|
-
const t = V([]), e =
|
|
1922
|
+
const t = V([]), e = F();
|
|
1893
1923
|
async function a() {
|
|
1894
1924
|
const r = await be({ prod_type: window.$prodType });
|
|
1895
1925
|
t.value = r.data;
|
|
@@ -1904,9 +1934,9 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1904
1934
|
l(i, { label: "筛选条件" }, {
|
|
1905
1935
|
default: u(() => [
|
|
1906
1936
|
l(d, {
|
|
1907
|
-
modelValue:
|
|
1908
|
-
"onUpdate:modelValue": n[0] || (n[0] = (b) =>
|
|
1909
|
-
disabled: !!
|
|
1937
|
+
modelValue: w(e).filterForm.filter_uuid,
|
|
1938
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => w(e).filterForm.filter_uuid = b),
|
|
1939
|
+
disabled: !!w(e).filterForm.filter_uuid
|
|
1910
1940
|
}, {
|
|
1911
1941
|
default: u(() => [
|
|
1912
1942
|
(c(!0), x(S, null, P(t.value, (b) => (c(), k(A, {
|
|
@@ -1923,8 +1953,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1923
1953
|
l(i, null, {
|
|
1924
1954
|
default: u(() => [
|
|
1925
1955
|
l(g, {
|
|
1926
|
-
modelValue:
|
|
1927
|
-
"onUpdate:modelValue": n[1] || (n[1] = (b) =>
|
|
1956
|
+
modelValue: w(e).filterForm.range_time,
|
|
1957
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => w(e).filterForm.range_time = b),
|
|
1928
1958
|
"true-value": 1,
|
|
1929
1959
|
"false-value": 0,
|
|
1930
1960
|
label: "时间范围"
|
|
@@ -1940,7 +1970,7 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1940
1970
|
}), io = /* @__PURE__ */ L({
|
|
1941
1971
|
__name: "SettingTitle",
|
|
1942
1972
|
setup(o) {
|
|
1943
|
-
const t =
|
|
1973
|
+
const t = F();
|
|
1944
1974
|
return (e, a) => {
|
|
1945
1975
|
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
1976
|
return c(), k(v, {
|
|
@@ -1951,8 +1981,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1951
1981
|
l(n, { label: "名称" }, {
|
|
1952
1982
|
default: u(() => [
|
|
1953
1983
|
l(r, {
|
|
1954
|
-
modelValue:
|
|
1955
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1984
|
+
modelValue: w(t).activeComponents.data,
|
|
1985
|
+
"onUpdate:modelValue": a[0] || (a[0] = (y) => w(t).activeComponents.data = y),
|
|
1956
1986
|
placeholder: "Please input",
|
|
1957
1987
|
maxlength: "24",
|
|
1958
1988
|
"show-word-limit": ""
|
|
@@ -1967,8 +1997,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1967
1997
|
l(d, { span: 12 }, {
|
|
1968
1998
|
default: u(() => [
|
|
1969
1999
|
l(A, {
|
|
1970
|
-
modelValue:
|
|
1971
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2000
|
+
modelValue: w(t).activeComponents.options.color,
|
|
2001
|
+
"onUpdate:modelValue": a[1] || (a[1] = (y) => w(t).activeComponents.options.color = y),
|
|
1972
2002
|
"show-alpha": ""
|
|
1973
2003
|
}, null, 8, ["modelValue"]),
|
|
1974
2004
|
a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
@@ -1978,8 +2008,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1978
2008
|
l(d, { span: 12 }, {
|
|
1979
2009
|
default: u(() => [
|
|
1980
2010
|
l(i, {
|
|
1981
|
-
modelValue:
|
|
1982
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
2011
|
+
modelValue: w(t).activeComponents.options.size,
|
|
2012
|
+
"onUpdate:modelValue": a[2] || (a[2] = (y) => w(t).activeComponents.options.size = y),
|
|
1983
2013
|
"controls-position": "right"
|
|
1984
2014
|
}, null, 8, ["modelValue"]),
|
|
1985
2015
|
a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
@@ -1989,8 +2019,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
1989
2019
|
l(d, { span: 12 }, {
|
|
1990
2020
|
default: u(() => [
|
|
1991
2021
|
l(m, {
|
|
1992
|
-
modelValue:
|
|
1993
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
2022
|
+
modelValue: w(t).activeComponents.options.fontWeight,
|
|
2023
|
+
"onUpdate:modelValue": a[3] || (a[3] = (y) => w(t).activeComponents.options.fontWeight = y)
|
|
1994
2024
|
}, {
|
|
1995
2025
|
default: u(() => [
|
|
1996
2026
|
l(g, {
|
|
@@ -2011,8 +2041,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
2011
2041
|
l(d, { span: 12 }, {
|
|
2012
2042
|
default: u(() => [
|
|
2013
2043
|
l(i, {
|
|
2014
|
-
modelValue:
|
|
2015
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
2044
|
+
modelValue: w(t).activeComponents.options.letterSpacing,
|
|
2045
|
+
"onUpdate:modelValue": a[4] || (a[4] = (y) => w(t).activeComponents.options.letterSpacing = y),
|
|
2016
2046
|
"controls-position": "right"
|
|
2017
2047
|
}, null, 8, ["modelValue"]),
|
|
2018
2048
|
a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
|
|
@@ -2022,8 +2052,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
2022
2052
|
l(d, { span: 12 }, {
|
|
2023
2053
|
default: u(() => [
|
|
2024
2054
|
l(i, {
|
|
2025
|
-
modelValue:
|
|
2026
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
2055
|
+
modelValue: w(t).activeComponents.options.textIndent,
|
|
2056
|
+
"onUpdate:modelValue": a[5] || (a[5] = (y) => w(t).activeComponents.options.textIndent = y),
|
|
2027
2057
|
"controls-position": "right"
|
|
2028
2058
|
}, null, 8, ["modelValue"]),
|
|
2029
2059
|
a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
|
|
@@ -2033,8 +2063,8 @@ const lo = /* @__PURE__ */ Y(oo, [["__scopeId", "data-v-e9859d3b"]]), ke = /* @_
|
|
|
2033
2063
|
l(d, { span: 12 }, {
|
|
2034
2064
|
default: u(() => [
|
|
2035
2065
|
l(m, {
|
|
2036
|
-
modelValue:
|
|
2037
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
2066
|
+
modelValue: w(t).activeComponents.options.textAlign,
|
|
2067
|
+
"onUpdate:modelValue": a[6] || (a[6] = (y) => w(t).activeComponents.options.textAlign = y)
|
|
2038
2068
|
}, {
|
|
2039
2069
|
default: u(() => [
|
|
2040
2070
|
l(g, {
|
|
@@ -2078,7 +2108,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2078
2108
|
SettingText: Ao,
|
|
2079
2109
|
SettingFilter: so,
|
|
2080
2110
|
SettingTitle: uo
|
|
2081
|
-
}, e =
|
|
2111
|
+
}, e = F(), a = I(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? K(t, "SettingTitle") : n.includes(i) ? K(t, "SettingText") : A.includes(i) ? K(t, "SettingCharts") : i === "filter" ? K(t, "SettingFilter") : "DefaultEditor";
|
|
2082
2112
|
return (i, g) => {
|
|
2083
2113
|
const m = s("el-card");
|
|
2084
2114
|
return c(), k(m, { class: "config-wrapper" }, {
|
|
@@ -2102,9 +2132,9 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2102
2132
|
}),
|
|
2103
2133
|
emits: ["update:modelValue"],
|
|
2104
2134
|
setup(o) {
|
|
2105
|
-
const t =
|
|
2135
|
+
const t = F(), e = o, a = me(o, "modelValue"), r = (i) => {
|
|
2106
2136
|
const g = J(i);
|
|
2107
|
-
g.id =
|
|
2137
|
+
g.id = Q(), t.componentList.push(g);
|
|
2108
2138
|
};
|
|
2109
2139
|
function n() {
|
|
2110
2140
|
a.value = "table";
|
|
@@ -2152,15 +2182,15 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2152
2182
|
T("div", fo, [
|
|
2153
2183
|
l(b, null, {
|
|
2154
2184
|
default: u(() => [
|
|
2155
|
-
(c(!0), x(S, null, P(
|
|
2156
|
-
key:
|
|
2185
|
+
(c(!0), x(S, null, P(w(xt), (y) => (c(), x(S, {
|
|
2186
|
+
key: y.type
|
|
2157
2187
|
}, [
|
|
2158
|
-
|
|
2188
|
+
y != null && y.hide ? R("", !0) : (c(), k(m, {
|
|
2159
2189
|
key: 0,
|
|
2160
|
-
onClick: (h) => r(
|
|
2190
|
+
onClick: (h) => r(y)
|
|
2161
2191
|
}, {
|
|
2162
2192
|
default: u(() => [
|
|
2163
|
-
E(
|
|
2193
|
+
E(q(y.name), 1)
|
|
2164
2194
|
]),
|
|
2165
2195
|
_: 2
|
|
2166
2196
|
}, 1032, ["onClick"]))
|
|
@@ -2190,7 +2220,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2190
2220
|
_: 1
|
|
2191
2221
|
})
|
|
2192
2222
|
]),
|
|
2193
|
-
l(
|
|
2223
|
+
l(jt)
|
|
2194
2224
|
]),
|
|
2195
2225
|
_: 1
|
|
2196
2226
|
}),
|
|
@@ -2206,7 +2236,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2206
2236
|
setup(o, {
|
|
2207
2237
|
emit: t
|
|
2208
2238
|
}) {
|
|
2209
|
-
const e =
|
|
2239
|
+
const e = I(() => ({
|
|
2210
2240
|
prod_type: window.$prodType
|
|
2211
2241
|
})), a = V(), r = t, n = (v) => {
|
|
2212
2242
|
r("click", v.report_uuid, "review");
|
|
@@ -2274,13 +2304,13 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2274
2304
|
}, null)])
|
|
2275
2305
|
}
|
|
2276
2306
|
]);
|
|
2277
|
-
return (v,
|
|
2307
|
+
return (v, y) => {
|
|
2278
2308
|
const h = s("el-button"), _ = s("TdsTable");
|
|
2279
2309
|
return c(), x("div", go, [l(_, {
|
|
2280
2310
|
ref_key: "proTable",
|
|
2281
2311
|
ref: a,
|
|
2282
2312
|
columns: b,
|
|
2283
|
-
"request-api":
|
|
2313
|
+
"request-api": w(tt),
|
|
2284
2314
|
"init-param": e.value,
|
|
2285
2315
|
"row-key": "report_uuid",
|
|
2286
2316
|
options: v.$tableOptions(),
|
|
@@ -2295,7 +2325,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2295
2325
|
icon: "Plus",
|
|
2296
2326
|
onClick: d
|
|
2297
2327
|
}, {
|
|
2298
|
-
default: u(() =>
|
|
2328
|
+
default: u(() => y[0] || (y[0] = [E("新建")])),
|
|
2299
2329
|
_: 1
|
|
2300
2330
|
}), l(h, {
|
|
2301
2331
|
plain: "",
|
|
@@ -2303,7 +2333,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2303
2333
|
icon: "Delete",
|
|
2304
2334
|
onClick: (f) => g(C.selectedListIds)
|
|
2305
2335
|
}, {
|
|
2306
|
-
default: u(() =>
|
|
2336
|
+
default: u(() => y[1] || (y[1] = [E("删除")])),
|
|
2307
2337
|
_: 2
|
|
2308
2338
|
}, 1032, ["onClick"])]),
|
|
2309
2339
|
_: 1
|
|
@@ -2311,7 +2341,7 @@ const uo = /* @__PURE__ */ Y(io, [["__scopeId", "data-v-56fef84c"]]), po = /* @_
|
|
|
2311
2341
|
};
|
|
2312
2342
|
}
|
|
2313
2343
|
});
|
|
2314
|
-
const _o = { style: { height: "100%" } },
|
|
2344
|
+
const _o = { style: { height: "100%" } }, yo = /* @__PURE__ */ L({
|
|
2315
2345
|
name: "TCReport",
|
|
2316
2346
|
__name: "index",
|
|
2317
2347
|
setup(o) {
|
|
@@ -2351,7 +2381,7 @@ const W = (o, t) => {
|
|
|
2351
2381
|
for (const [e, a] of Object.entries(t))
|
|
2352
2382
|
o[e] = a;
|
|
2353
2383
|
return o;
|
|
2354
|
-
},
|
|
2384
|
+
}, wo = W(yo), ho = [
|
|
2355
2385
|
{
|
|
2356
2386
|
label: "正文",
|
|
2357
2387
|
value: "p"
|
|
@@ -2447,7 +2477,7 @@ const W = (o, t) => {
|
|
|
2447
2477
|
delete h.message, _.forEach((f) => {
|
|
2448
2478
|
f.name ? f.key || C(new Error("请填写表头名称和KEY")) : C(new Error("请填写表头名称和KEY"));
|
|
2449
2479
|
}), C();
|
|
2450
|
-
}, v = (h) => h.item_type === 1,
|
|
2480
|
+
}, v = (h) => h.item_type === 1, y = X([{
|
|
2451
2481
|
type: "selection",
|
|
2452
2482
|
width: 60,
|
|
2453
2483
|
field: "rp_item_uuid",
|
|
@@ -2603,8 +2633,8 @@ const W = (o, t) => {
|
|
|
2603
2633
|
return c(), x("div", xo, [l(f, {
|
|
2604
2634
|
ref_key: "refTdsTable",
|
|
2605
2635
|
ref: t,
|
|
2606
|
-
columns:
|
|
2607
|
-
"request-api":
|
|
2636
|
+
columns: y,
|
|
2637
|
+
"request-api": w(lt),
|
|
2608
2638
|
"init-param": n,
|
|
2609
2639
|
"row-key": "rp_item_uuid",
|
|
2610
2640
|
options: h.$tableOptions(),
|
|
@@ -2636,7 +2666,7 @@ const W = (o, t) => {
|
|
|
2636
2666
|
}, h.$formBindProps({
|
|
2637
2667
|
title: r.value,
|
|
2638
2668
|
form: a.value,
|
|
2639
|
-
columns:
|
|
2669
|
+
columns: y
|
|
2640
2670
|
}), {
|
|
2641
2671
|
onSubmit: i
|
|
2642
2672
|
}), null, 16)]);
|
|
@@ -2690,7 +2720,7 @@ const Do = /* @__PURE__ */ L({
|
|
|
2690
2720
|
}
|
|
2691
2721
|
const v = (f, p) => {
|
|
2692
2722
|
f.target.value && A.value[p].push(f.target.value);
|
|
2693
|
-
},
|
|
2723
|
+
}, y = [{
|
|
2694
2724
|
label: "周一",
|
|
2695
2725
|
value: 1
|
|
2696
2726
|
}, {
|
|
@@ -2890,7 +2920,7 @@ const Do = /* @__PURE__ */ L({
|
|
|
2890
2920
|
field: "weekday",
|
|
2891
2921
|
name: "星期",
|
|
2892
2922
|
hide: !0,
|
|
2893
|
-
enum:
|
|
2923
|
+
enum: y,
|
|
2894
2924
|
show: {
|
|
2895
2925
|
type: "select"
|
|
2896
2926
|
},
|
|
@@ -2966,11 +2996,11 @@ const Do = /* @__PURE__ */ L({
|
|
|
2966
2996
|
}]);
|
|
2967
2997
|
return (f, p) => {
|
|
2968
2998
|
const D = s("el-button");
|
|
2969
|
-
return c(), x("div", Vo, [l(
|
|
2999
|
+
return c(), x("div", Vo, [l(w(Ge), {
|
|
2970
3000
|
ref_key: "refTdsTable",
|
|
2971
3001
|
ref: t,
|
|
2972
3002
|
"row-key": "subscript_uuid",
|
|
2973
|
-
"request-api":
|
|
3003
|
+
"request-api": w(At),
|
|
2974
3004
|
columns: C,
|
|
2975
3005
|
options: f.$tableOptions()
|
|
2976
3006
|
}, {
|
|
@@ -2979,9 +3009,9 @@ const Do = /* @__PURE__ */ L({
|
|
|
2979
3009
|
icon: "Plus",
|
|
2980
3010
|
class: "custom-btn",
|
|
2981
3011
|
plain: "",
|
|
2982
|
-
onClick: p[0] || (p[0] = (
|
|
3012
|
+
onClick: p[0] || (p[0] = (M) => g())
|
|
2983
3013
|
}, {
|
|
2984
|
-
default: u(() => [E(
|
|
3014
|
+
default: u(() => [E(q(w(a)("button.add")), 1)]),
|
|
2985
3015
|
_: 1
|
|
2986
3016
|
}), l(D, {
|
|
2987
3017
|
type: "danger",
|
|
@@ -2990,11 +3020,11 @@ const Do = /* @__PURE__ */ L({
|
|
|
2990
3020
|
onClick: i,
|
|
2991
3021
|
disabled: !B.selectedListIds.length
|
|
2992
3022
|
}, {
|
|
2993
|
-
default: u(() => [E(
|
|
3023
|
+
default: u(() => [E(q(w(a)("button.delete")), 1)]),
|
|
2994
3024
|
_: 2
|
|
2995
3025
|
}, 1032, ["disabled"])]),
|
|
2996
3026
|
_: 1
|
|
2997
|
-
}, 8, ["request-api", "columns", "options"]), l(
|
|
3027
|
+
}, 8, ["request-api", "columns", "options"]), l(w(Xe), ve({
|
|
2998
3028
|
ref_key: "refTdsForm",
|
|
2999
3029
|
ref: e
|
|
3000
3030
|
}, f.$formBindProps({
|
|
@@ -3049,7 +3079,7 @@ const Do = /* @__PURE__ */ L({
|
|
|
3049
3079
|
}
|
|
3050
3080
|
});
|
|
3051
3081
|
const Uo = /* @__PURE__ */ Y(Eo, [["__scopeId", "data-v-30fa84c8"]]), Ro = W(Uo), So = {
|
|
3052
|
-
TCReport:
|
|
3082
|
+
TCReport: wo,
|
|
3053
3083
|
TCModule: To,
|
|
3054
3084
|
TCSubscribe: ko,
|
|
3055
3085
|
TCBuildin: Ro
|
|
@@ -3063,7 +3093,7 @@ const Uo = /* @__PURE__ */ Y(Eo, [["__scopeId", "data-v-30fa84c8"]]), Ro = W(Uo)
|
|
|
3063
3093
|
export {
|
|
3064
3094
|
Ro as TCBuildin,
|
|
3065
3095
|
To as TCModule,
|
|
3066
|
-
|
|
3096
|
+
wo as TCReport,
|
|
3067
3097
|
ko as TCSubscribe,
|
|
3068
3098
|
qo as default
|
|
3069
3099
|
};
|