@topdatasec/report 1.1.28 → 1.1.30
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 +156 -152
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defineStore as
|
|
1
|
+
import { defineComponent as L, computed as K, resolveComponent as s, openBlock as m, createElementBlock as C, createElementVNode as x, Fragment as O, renderList as I, normalizeClass as X, createBlock as V, createCommentVNode as S, withDirectives as Ae, createTextVNode as E, toDisplayString as M, unref as h, ref as B, createVNode as l, withCtx as u, onMounted as se, normalizeProps as fe, guardReactiveProps as ge, isVNode as ie, normalizeStyle as Qe, mergeModels as ve, useModel as _e, watch as be, resolveDirective as we, resolveDynamicComponent as $, isRef as Ie, withModifiers as Fe, shallowRef as Me, onBeforeUnmount as Ke, onUnmounted as qe, reactive as J, TransitionGroup as He, mergeProps as ye, createSlots as Ne } from "vue";
|
|
2
|
+
import { defineStore as ze, storeToRefs as Ye } from "pinia";
|
|
3
3
|
import { ElNotification as Ge, ElMessage as Xe } from "element-plus";
|
|
4
4
|
import { VueDraggable as Je } from "vue-draggable-plus";
|
|
5
5
|
import { Toolbar as je, Editor as Ze } from "@wangeditor/editor-for-vue";
|
|
6
6
|
import { CircleClose as We } from "@element-plus/icons-vue";
|
|
7
|
-
import { TdsTable as
|
|
7
|
+
import { TdsTable as he, TdsForm as $e } from "topdatasec-ui";
|
|
8
8
|
const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), ee = (o) => JSON.parse(JSON.stringify(o)), et = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), H = (o, t) => o[et(t)], tt = (o) => window.$http.request({
|
|
9
9
|
url: `${window.$reportURL}/tds/report/demo/get`,
|
|
10
10
|
method: "get",
|
|
11
11
|
params: o,
|
|
12
12
|
isError: !1
|
|
13
|
-
}),
|
|
13
|
+
}), Ce = (o) => window.$http.request({
|
|
14
14
|
url: `${window.$reportURL}/tds/report/item/get`,
|
|
15
15
|
method: "get",
|
|
16
16
|
params: o,
|
|
@@ -33,7 +33,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
33
33
|
method: "get",
|
|
34
34
|
params: o,
|
|
35
35
|
isError: !1
|
|
36
|
-
}),
|
|
36
|
+
}), xe = (o) => window.$http.request({
|
|
37
37
|
url: `${window.$reportURL}/tds/report/filter/get`,
|
|
38
38
|
method: "get",
|
|
39
39
|
params: o,
|
|
@@ -123,7 +123,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
123
123
|
url: `${window.$reportURL}/tds/report/export/delete`,
|
|
124
124
|
method: "delete",
|
|
125
125
|
data: o
|
|
126
|
-
}),
|
|
126
|
+
}), Te = "rgba(51, 51, 51, 0.15)", N = "rgba(51, 51, 51, 1)", G = 12, Be = (o = !1) => {
|
|
127
127
|
const t = {
|
|
128
128
|
// top: '2%',
|
|
129
129
|
left: "3%",
|
|
@@ -132,7 +132,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
132
132
|
containLabel: !0
|
|
133
133
|
};
|
|
134
134
|
return o && (t.top = "5%"), t;
|
|
135
|
-
},
|
|
135
|
+
}, Q = [
|
|
136
136
|
"46, 145, 255",
|
|
137
137
|
"48, 212, 183",
|
|
138
138
|
"108, 108, 255",
|
|
@@ -202,7 +202,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
202
202
|
// type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
|
|
203
203
|
// show: true,
|
|
204
204
|
// },
|
|
205
|
-
grid:
|
|
205
|
+
grid: Be(),
|
|
206
206
|
title: {
|
|
207
207
|
show: !0,
|
|
208
208
|
text: "样例数据",
|
|
@@ -222,7 +222,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
222
222
|
nameRotate: 0,
|
|
223
223
|
// 坐标轴名称旋转
|
|
224
224
|
axisLabel: {
|
|
225
|
-
color:
|
|
225
|
+
color: N,
|
|
226
226
|
// X轴类目名称样式
|
|
227
227
|
rotate: 0
|
|
228
228
|
// X轴类目名称旋转角度
|
|
@@ -231,7 +231,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
231
231
|
//X轴轴线设置
|
|
232
232
|
show: !0,
|
|
233
233
|
lineStyle: {
|
|
234
|
-
color:
|
|
234
|
+
color: Te,
|
|
235
235
|
width: 1
|
|
236
236
|
}
|
|
237
237
|
},
|
|
@@ -251,7 +251,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
251
251
|
position: "left",
|
|
252
252
|
nameTextStyle: {
|
|
253
253
|
fontSize: G,
|
|
254
|
-
color:
|
|
254
|
+
color: N,
|
|
255
255
|
fontWeight: "bold"
|
|
256
256
|
},
|
|
257
257
|
axisLine: { show: !1 },
|
|
@@ -261,7 +261,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
261
261
|
splitLine: { show: !1 },
|
|
262
262
|
// 纵向分隔线
|
|
263
263
|
axisLabel: {
|
|
264
|
-
color:
|
|
264
|
+
color: N,
|
|
265
265
|
// y轴刻度标签
|
|
266
266
|
formatter: "{value}",
|
|
267
267
|
inside: !1
|
|
@@ -274,7 +274,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
274
274
|
type: "bar",
|
|
275
275
|
barWidth: 15,
|
|
276
276
|
barGap: "0%",
|
|
277
|
-
itemStyle: e(`rgba(${
|
|
277
|
+
itemStyle: e(`rgba(${Q[0]}, 0.7)`, `rgba(${Q[0]}, 0.2)`),
|
|
278
278
|
data: a,
|
|
279
279
|
label: {
|
|
280
280
|
show: !0,
|
|
@@ -294,7 +294,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
294
294
|
symbolSize: [15, 10],
|
|
295
295
|
//调整截面形状
|
|
296
296
|
symbolOffset: [0, 5],
|
|
297
|
-
itemStyle: e(`rgba(${
|
|
297
|
+
itemStyle: e(`rgba(${Q[0]}, 0.7)`, `rgba(${Q[0]}, 0.2)`),
|
|
298
298
|
data: a
|
|
299
299
|
},
|
|
300
300
|
{
|
|
@@ -305,7 +305,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
305
305
|
//调整截面形状
|
|
306
306
|
symbolOffset: [0, -5],
|
|
307
307
|
symbolPosition: "end",
|
|
308
|
-
itemStyle: e(`rgba(${
|
|
308
|
+
itemStyle: e(`rgba(${Q[0]}, 0.9)`, `rgba(${Q[0]}, 1)`),
|
|
309
309
|
data: a
|
|
310
310
|
}
|
|
311
311
|
]
|
|
@@ -317,7 +317,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
317
317
|
value: Number(n[e.value])
|
|
318
318
|
}));
|
|
319
319
|
o.legend.data = r, o.series[0].data = r, o.graphic[1].style.text = a;
|
|
320
|
-
}, Bt = () =>
|
|
320
|
+
}, Bt = () => Q.map((o) => `rgba(${o}, 1)`), ue = ({
|
|
321
321
|
data: o = [
|
|
322
322
|
{
|
|
323
323
|
name: "数据1",
|
|
@@ -371,7 +371,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
371
371
|
},
|
|
372
372
|
textStyle: {
|
|
373
373
|
fontSize: G,
|
|
374
|
-
color:
|
|
374
|
+
color: N
|
|
375
375
|
},
|
|
376
376
|
data: o,
|
|
377
377
|
orient: "vertical",
|
|
@@ -490,12 +490,12 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
490
490
|
smooth: !0,
|
|
491
491
|
lineStyle: {
|
|
492
492
|
width: 1,
|
|
493
|
-
color: `rgba(${
|
|
493
|
+
color: `rgba(${Q[0]}, 1)`
|
|
494
494
|
// 线条颜色
|
|
495
495
|
},
|
|
496
496
|
showSymbol: !1,
|
|
497
497
|
itemStyle: {
|
|
498
|
-
color: `rgba(${
|
|
498
|
+
color: `rgba(${Q[0]}, 1)`,
|
|
499
499
|
//拐点颜色
|
|
500
500
|
label: {
|
|
501
501
|
show: !0,
|
|
@@ -518,11 +518,11 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
518
518
|
// 渐变颜色
|
|
519
519
|
{
|
|
520
520
|
offset: 0,
|
|
521
|
-
color: `rgba(${
|
|
521
|
+
color: `rgba(${Q[0]}, 0.7)`
|
|
522
522
|
},
|
|
523
523
|
{
|
|
524
524
|
offset: 1,
|
|
525
|
-
color: `rgba(${
|
|
525
|
+
color: `rgba(${Q[0]}, 0.1)`
|
|
526
526
|
}
|
|
527
527
|
],
|
|
528
528
|
global: !1
|
|
@@ -561,24 +561,24 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
561
561
|
show: !0,
|
|
562
562
|
itemWidth: 30,
|
|
563
563
|
textStyle: {
|
|
564
|
-
color:
|
|
564
|
+
color: N,
|
|
565
565
|
fontSize: G,
|
|
566
566
|
padding: [0, 8, 0, 8]
|
|
567
567
|
}
|
|
568
568
|
},
|
|
569
|
-
grid:
|
|
569
|
+
grid: Be(),
|
|
570
570
|
xAxis: {
|
|
571
571
|
type: "category",
|
|
572
572
|
splitLine: { show: !1 },
|
|
573
573
|
axisTick: { show: !1 },
|
|
574
574
|
axisLine: {
|
|
575
575
|
show: !0,
|
|
576
|
-
lineStyle: { color:
|
|
576
|
+
lineStyle: { color: Te }
|
|
577
577
|
},
|
|
578
578
|
axisLabel: {
|
|
579
579
|
show: !0,
|
|
580
580
|
fontSize: G,
|
|
581
|
-
color:
|
|
581
|
+
color: N
|
|
582
582
|
},
|
|
583
583
|
boundaryGap: !1,
|
|
584
584
|
data: o.map((n) => n[t.name])
|
|
@@ -591,13 +591,13 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
591
591
|
axisTick: { show: !1 },
|
|
592
592
|
nameTextStyle: {
|
|
593
593
|
fontSize: G,
|
|
594
|
-
color:
|
|
594
|
+
color: N,
|
|
595
595
|
padding: [0, 60, 0, 0]
|
|
596
596
|
},
|
|
597
597
|
axisLabel: {
|
|
598
598
|
show: !0,
|
|
599
599
|
fontSize: G,
|
|
600
|
-
color:
|
|
600
|
+
color: N
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
603
|
series: []
|
|
@@ -605,7 +605,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
605
605
|
if (Array.isArray(t.value))
|
|
606
606
|
t.value.forEach((n, A) => {
|
|
607
607
|
const d = ee(a);
|
|
608
|
-
d.name = n.name, d.lineStyle.color = `rgba(${
|
|
608
|
+
d.name = n.name, d.lineStyle.color = `rgba(${Q[A]}, 1)`, d.itemStyle.color = `rgba(${Q[A]}, 1)`, d.areaStyle.color.colorStops[0].color = `rgba(${Q[A]}, 0.7)`, d.areaStyle.color.colorStops[1].color = `rgba(${Q[A]}, 0.1)`, d.data = o.map((i) => i[n.value]), r.push(d);
|
|
609
609
|
});
|
|
610
610
|
else if (typeof t.value == "string") {
|
|
611
611
|
const n = ee(a);
|
|
@@ -638,7 +638,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
638
638
|
data: 43,
|
|
639
639
|
label: "数据3"
|
|
640
640
|
}
|
|
641
|
-
],
|
|
641
|
+
], Lt = [
|
|
642
642
|
{
|
|
643
643
|
type: "report-select",
|
|
644
644
|
label: "资产:",
|
|
@@ -707,7 +707,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
707
707
|
rp_item_uuid: "",
|
|
708
708
|
id: F()
|
|
709
709
|
}
|
|
710
|
-
],
|
|
710
|
+
], Et = [
|
|
711
711
|
{
|
|
712
712
|
type: "h1",
|
|
713
713
|
data: "报表名称",
|
|
@@ -865,7 +865,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
865
865
|
],
|
|
866
866
|
id: F()
|
|
867
867
|
})
|
|
868
|
-
})[o](), q =
|
|
868
|
+
})[o](), q = ze("tds-report", {
|
|
869
869
|
state: () => ({
|
|
870
870
|
componentList: [],
|
|
871
871
|
activeComponents: {},
|
|
@@ -886,7 +886,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
886
886
|
},
|
|
887
887
|
async getReportDemo(o) {
|
|
888
888
|
let t = [];
|
|
889
|
-
o ? t = (await tt({ report_uuid: o })).data : t = { content: ee(
|
|
889
|
+
o ? t = (await tt({ report_uuid: o })).data : t = { content: ee(Lt), range_time: 1 };
|
|
890
890
|
const e = [];
|
|
891
891
|
t.content.forEach((a) => {
|
|
892
892
|
(a.type === "report-select" || a.type === "range-time") && e.push(a), a.type === "h1" && (this.titleComponent = a), a.id = F();
|
|
@@ -920,7 +920,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
}, St = { class: "catalogue" }, Ot = ["href", "title"], Pt = /* @__PURE__ */
|
|
923
|
+
}, St = { class: "catalogue" }, Ot = ["href", "title"], Pt = /* @__PURE__ */ L({
|
|
924
924
|
__name: "Catalogue",
|
|
925
925
|
props: {
|
|
926
926
|
data: { default: () => [] }
|
|
@@ -944,7 +944,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
944
944
|
href: "#" + A.id,
|
|
945
945
|
title: A.data
|
|
946
946
|
}, [
|
|
947
|
-
|
|
947
|
+
E(M(A.data), 1)
|
|
948
948
|
], 8, Ot)), [
|
|
949
949
|
[h(Rt)]
|
|
950
950
|
])
|
|
@@ -960,7 +960,7 @@ const Z = (o, t) => {
|
|
|
960
960
|
return e;
|
|
961
961
|
}, Qt = /* @__PURE__ */ Z(Pt, [["__scopeId", "data-v-00cc9080"]]), It = {
|
|
962
962
|
class: "chart-components"
|
|
963
|
-
},
|
|
963
|
+
}, ke = /* @__PURE__ */ L({
|
|
964
964
|
__name: "Bar",
|
|
965
965
|
props: {
|
|
966
966
|
value: {}
|
|
@@ -974,7 +974,7 @@ const Z = (o, t) => {
|
|
|
974
974
|
}, null, 8, ["option"])]);
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
}), Ft = { class: "chart-components" },
|
|
977
|
+
}), Ft = { class: "chart-components" }, De = /* @__PURE__ */ L({
|
|
978
978
|
__name: "Line",
|
|
979
979
|
props: {
|
|
980
980
|
value: {}
|
|
@@ -988,7 +988,7 @@ const Z = (o, t) => {
|
|
|
988
988
|
]);
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
|
-
}), Mt = { class: "chart-components" },
|
|
991
|
+
}), Mt = { class: "chart-components" }, Ve = /* @__PURE__ */ L({
|
|
992
992
|
__name: "Pie",
|
|
993
993
|
props: {
|
|
994
994
|
value: {}
|
|
@@ -1002,7 +1002,7 @@ const Z = (o, t) => {
|
|
|
1002
1002
|
]);
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
}), Kt = { key: 0 }, ne = /* @__PURE__ */
|
|
1005
|
+
}), Kt = { key: 0 }, ne = /* @__PURE__ */ L({
|
|
1006
1006
|
__name: "ReportSelect",
|
|
1007
1007
|
props: {
|
|
1008
1008
|
value: {}
|
|
@@ -1035,7 +1035,7 @@ const Z = (o, t) => {
|
|
|
1035
1035
|
])) : S("", !0);
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
}), ae = /* @__PURE__ */
|
|
1038
|
+
}), ae = /* @__PURE__ */ L({
|
|
1039
1039
|
__name: "RangeTime",
|
|
1040
1040
|
props: {
|
|
1041
1041
|
value: {}
|
|
@@ -1068,7 +1068,7 @@ const Z = (o, t) => {
|
|
|
1068
1068
|
function qt(o) {
|
|
1069
1069
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
1070
1070
|
}
|
|
1071
|
-
const
|
|
1071
|
+
const Le = /* @__PURE__ */ L({
|
|
1072
1072
|
__name: "ReportTable",
|
|
1073
1073
|
props: {
|
|
1074
1074
|
value: {}
|
|
@@ -1090,7 +1090,7 @@ const Ve = /* @__PURE__ */ E({
|
|
|
1090
1090
|
};
|
|
1091
1091
|
return (a, r) => (m(), C("div", null, [l(e, fe(ge(a.value)), null, 16)]));
|
|
1092
1092
|
}
|
|
1093
|
-
}), re = /* @__PURE__ */
|
|
1093
|
+
}), re = /* @__PURE__ */ L({
|
|
1094
1094
|
__name: "ReportText",
|
|
1095
1095
|
props: {
|
|
1096
1096
|
value: {}
|
|
@@ -1108,10 +1108,10 @@ const Ve = /* @__PURE__ */ E({
|
|
|
1108
1108
|
};
|
|
1109
1109
|
};
|
|
1110
1110
|
return (a, r) => (m(), C("div", {
|
|
1111
|
-
style:
|
|
1111
|
+
style: Qe(e())
|
|
1112
1112
|
}, M(a.value.data), 5));
|
|
1113
1113
|
}
|
|
1114
|
-
}), Ht = { class: "chart-components" }, Ee = /* @__PURE__ */
|
|
1114
|
+
}), Ht = { class: "chart-components" }, Ee = /* @__PURE__ */ L({
|
|
1115
1115
|
__name: "ReportChart",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
value: {}
|
|
@@ -1157,10 +1157,10 @@ const Ve = /* @__PURE__ */ E({
|
|
|
1157
1157
|
};
|
|
1158
1158
|
}
|
|
1159
1159
|
});
|
|
1160
|
-
function
|
|
1160
|
+
function Nt(o) {
|
|
1161
1161
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
1162
1162
|
}
|
|
1163
|
-
const
|
|
1163
|
+
const Ue = /* @__PURE__ */ L({
|
|
1164
1164
|
__name: "ReportDescribe",
|
|
1165
1165
|
props: {
|
|
1166
1166
|
value: {}
|
|
@@ -1173,7 +1173,7 @@ const Le = /* @__PURE__ */ E({
|
|
|
1173
1173
|
border: t.value.options.border,
|
|
1174
1174
|
column: t.value.options.column,
|
|
1175
1175
|
direction: t.value.options.direction
|
|
1176
|
-
},
|
|
1176
|
+
}, Nt(r = a.showColumn.map((n) => l(s("el-descriptions-item"), {
|
|
1177
1177
|
label: n.name
|
|
1178
1178
|
}, {
|
|
1179
1179
|
default: () => [l("div", {
|
|
@@ -1185,7 +1185,7 @@ const Le = /* @__PURE__ */ E({
|
|
|
1185
1185
|
};
|
|
1186
1186
|
return (a, r) => (m(), C("div", null, [l(e, fe(ge(a.value)), null, 16)]));
|
|
1187
1187
|
}
|
|
1188
|
-
}),
|
|
1188
|
+
}), zt = {
|
|
1189
1189
|
class: "editor-box"
|
|
1190
1190
|
}, Yt = {
|
|
1191
1191
|
class: "editor",
|
|
@@ -1199,7 +1199,7 @@ const Le = /* @__PURE__ */ E({
|
|
|
1199
1199
|
style: {
|
|
1200
1200
|
"margin-left": "auto"
|
|
1201
1201
|
}
|
|
1202
|
-
}, Jt = ["id"], jt = ["innerHTML"], Zt = /* @__PURE__ */
|
|
1202
|
+
}, Jt = ["id"], jt = ["innerHTML"], Zt = /* @__PURE__ */ L({
|
|
1203
1203
|
__name: "index",
|
|
1204
1204
|
props: /* @__PURE__ */ ve({
|
|
1205
1205
|
reportId: {
|
|
@@ -1213,15 +1213,15 @@ const Le = /* @__PURE__ */ E({
|
|
|
1213
1213
|
emits: ["update:modelValue"],
|
|
1214
1214
|
setup(o) {
|
|
1215
1215
|
const t = B(!1), e = {
|
|
1216
|
-
Bar:
|
|
1217
|
-
Line:
|
|
1218
|
-
Pie:
|
|
1216
|
+
Bar: ke,
|
|
1217
|
+
Line: De,
|
|
1218
|
+
Pie: Ve,
|
|
1219
1219
|
ReportSelect: ne,
|
|
1220
1220
|
RangeTime: ae,
|
|
1221
|
-
ReportTable:
|
|
1221
|
+
ReportTable: Le,
|
|
1222
1222
|
ReportText: re,
|
|
1223
1223
|
ReportChart: Ee,
|
|
1224
|
-
ReportDescribe:
|
|
1224
|
+
ReportDescribe: Ue
|
|
1225
1225
|
}, a = q(), r = o, n = _e(o, "modelValue"), A = B([]), d = B([]), i = B([]), g = /* @__PURE__ */ new Date(), p = new Date(g);
|
|
1226
1226
|
p.setMonth(g.getMonth() - 1);
|
|
1227
1227
|
function c(T) {
|
|
@@ -1249,10 +1249,10 @@ const Le = /* @__PURE__ */ E({
|
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
1251
|
const f = (T) => {
|
|
1252
|
-
i.value = T,
|
|
1252
|
+
i.value = T, P();
|
|
1253
1253
|
}, b = (T) => {
|
|
1254
|
-
T && T.length > 0 && (_.value = T[0], D.value = T[1]),
|
|
1255
|
-
},
|
|
1254
|
+
T && T.length > 0 && (_.value = T[0], D.value = T[1]), P();
|
|
1255
|
+
}, P = async () => {
|
|
1256
1256
|
try {
|
|
1257
1257
|
t.value = !0;
|
|
1258
1258
|
const T = {
|
|
@@ -1268,15 +1268,19 @@ const Le = /* @__PURE__ */ E({
|
|
|
1268
1268
|
t.value = !1, console.error("Error setting loading state:", T);
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
|
-
|
|
1272
|
-
const k = () => l("div", null, [
|
|
1271
|
+
P();
|
|
1272
|
+
const k = () => l("div", null, [E("未找到对应组件")]);
|
|
1273
|
+
be(() => r.reportId, () => {
|
|
1274
|
+
P();
|
|
1275
|
+
});
|
|
1276
|
+
const z = (T) => T === "h2" || T === "h3" || T === "h4" ? H(e, "ReportText") : T === "bar" || T === "pie" || T === "line" ? H(e, "ReportChart") : T ? H(e, T) : l(k, null, null);
|
|
1273
1277
|
return (T, U) => {
|
|
1274
|
-
const Y = s("el-button"), j = s("el-card"),
|
|
1278
|
+
const Y = s("el-button"), j = s("el-card"), Pe = we("loading");
|
|
1275
1279
|
return Ae((m(), V(j, {
|
|
1276
1280
|
class: "editor view",
|
|
1277
1281
|
"element-loading-text": "加载中..."
|
|
1278
1282
|
}, {
|
|
1279
|
-
default: u(() => [x("div",
|
|
1283
|
+
default: u(() => [x("div", zt, [l(Qt, {
|
|
1280
1284
|
data: d.value
|
|
1281
1285
|
}, null, 8, ["data"]), x("div", Yt, [x("div", Gt, [(m(!0), C(O, null, I(A.value, (R) => (m(), C("div", {
|
|
1282
1286
|
class: "item-input",
|
|
@@ -1335,45 +1339,45 @@ const Le = /* @__PURE__ */ E({
|
|
|
1335
1339
|
"margin-left": "auto"
|
|
1336
1340
|
}
|
|
1337
1341
|
}, {
|
|
1338
|
-
default: u(() => U[4] || (U[4] = [
|
|
1342
|
+
default: u(() => U[4] || (U[4] = [E("退出预览")])),
|
|
1339
1343
|
_: 1
|
|
1340
1344
|
})])]), (m(!0), C(O, null, I(d.value, (R) => (m(), C("div", {
|
|
1341
1345
|
key: R.id,
|
|
1342
1346
|
class: X(["editor-content", ["editor" + R.type]]),
|
|
1343
1347
|
id: R.id
|
|
1344
|
-
}, [R.type !== "p" ? (m(), V($(
|
|
1348
|
+
}, [R.type !== "p" ? (m(), V($(z(R.type)), {
|
|
1345
1349
|
key: 0,
|
|
1346
1350
|
class: X(["editor" + R.type]),
|
|
1347
1351
|
value: R
|
|
1348
1352
|
}, {
|
|
1349
|
-
default: u(() => [
|
|
1353
|
+
default: u(() => [E(M(R.data), 1)]),
|
|
1350
1354
|
_: 2
|
|
1351
1355
|
}, 1032, ["class", "value"])) : (m(), C("p", {
|
|
1352
1356
|
key: 1,
|
|
1353
1357
|
innerHTML: R.data
|
|
1354
1358
|
}, null, 8, jt))], 10, Jt))), 128))])])]),
|
|
1355
1359
|
_: 1
|
|
1356
|
-
})), [[
|
|
1360
|
+
})), [[Pe, t.value]]);
|
|
1357
1361
|
};
|
|
1358
1362
|
}
|
|
1359
1363
|
});
|
|
1360
|
-
const
|
|
1364
|
+
const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
1361
1365
|
class: "editor"
|
|
1362
1366
|
}, $t = {
|
|
1363
1367
|
class: "editor-content edit"
|
|
1364
|
-
}, eo = ["onClick"], to = ["onClick"], oo = ["innerHTML", "draggable"], lo = /* @__PURE__ */
|
|
1368
|
+
}, eo = ["onClick"], to = ["onClick"], oo = ["innerHTML", "draggable"], lo = /* @__PURE__ */ L({
|
|
1365
1369
|
__name: "Editor",
|
|
1366
1370
|
setup(o) {
|
|
1367
1371
|
const t = {
|
|
1368
|
-
Bar:
|
|
1369
|
-
Line:
|
|
1370
|
-
Pie:
|
|
1372
|
+
Bar: ke,
|
|
1373
|
+
Line: De,
|
|
1374
|
+
Pie: Ve,
|
|
1371
1375
|
ReportSelect: ne,
|
|
1372
1376
|
RangeTime: ae,
|
|
1373
|
-
ReportTable:
|
|
1377
|
+
ReportTable: Le,
|
|
1374
1378
|
ReportText: re,
|
|
1375
1379
|
ReportChart: Ee,
|
|
1376
|
-
ReportDescribe:
|
|
1380
|
+
ReportDescribe: Ue
|
|
1377
1381
|
}, {
|
|
1378
1382
|
componentList: e,
|
|
1379
1383
|
activeComponents: a,
|
|
@@ -1385,7 +1389,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1385
1389
|
});
|
|
1386
1390
|
}, i = (v) => {
|
|
1387
1391
|
A.setActiveComponents(v);
|
|
1388
|
-
}, g = () => l("div", null, [
|
|
1392
|
+
}, g = () => l("div", null, [E("未找到对应组件")]), p = (v) => v === "h2" || v === "h3" || v === "h4" ? H(t, "ReportText") : v === "bar" || v === "pie" || v === "line" ? H(t, "ReportChart") : v ? H(t, v) : l(g, null, null), c = (v) => {
|
|
1389
1393
|
console.log(v, "evt");
|
|
1390
1394
|
}, y = B(!1), _ = () => {
|
|
1391
1395
|
y.value = !0;
|
|
@@ -1393,7 +1397,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1393
1397
|
v.newIndex !== 0 && (console.log(v), y.value = !1);
|
|
1394
1398
|
}, w = B();
|
|
1395
1399
|
return (v, f) => {
|
|
1396
|
-
const b = s("CircleClose"),
|
|
1400
|
+
const b = s("CircleClose"), P = s("el-icon");
|
|
1397
1401
|
return m(), C("div", Wt, [x("div", {
|
|
1398
1402
|
class: X(["editor-content edit flex flex-start", [{
|
|
1399
1403
|
active: h(a).id === "filter"
|
|
@@ -1409,7 +1413,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1409
1413
|
key: 0,
|
|
1410
1414
|
value: k
|
|
1411
1415
|
}, {
|
|
1412
|
-
default: u(() => [
|
|
1416
|
+
default: u(() => [E(M(k.data), 1)]),
|
|
1413
1417
|
_: 2
|
|
1414
1418
|
}, 1032, ["value"])) : S("", !0)]))), 128))], 2), x("div", $t, [l(re, {
|
|
1415
1419
|
value: h(n),
|
|
@@ -1418,7 +1422,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1418
1422
|
ref_key: "el",
|
|
1419
1423
|
ref: w,
|
|
1420
1424
|
modelValue: h(e),
|
|
1421
|
-
"onUpdate:modelValue": f[2] || (f[2] = (k) =>
|
|
1425
|
+
"onUpdate:modelValue": f[2] || (f[2] = (k) => Ie(e) ? e.value = k : null),
|
|
1422
1426
|
"on-change": c,
|
|
1423
1427
|
animation: 150,
|
|
1424
1428
|
onStart: _,
|
|
@@ -1429,13 +1433,13 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1429
1433
|
class: X(["editor-content edit", ["editor" + k.type, {
|
|
1430
1434
|
active: k.id === h(a).id
|
|
1431
1435
|
}]]),
|
|
1432
|
-
onClick: (
|
|
1436
|
+
onClick: (z) => i(k)
|
|
1433
1437
|
}, [x("i", {
|
|
1434
|
-
onClick:
|
|
1438
|
+
onClick: Fe((z) => d(k.id), ["stop"]),
|
|
1435
1439
|
style: {
|
|
1436
1440
|
"z-index": "99"
|
|
1437
1441
|
}
|
|
1438
|
-
}, [l(
|
|
1442
|
+
}, [l(P, {
|
|
1439
1443
|
size: "16px",
|
|
1440
1444
|
color: "red"
|
|
1441
1445
|
}, {
|
|
@@ -1447,7 +1451,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1447
1451
|
value: k,
|
|
1448
1452
|
draggable: y.value
|
|
1449
1453
|
}, {
|
|
1450
|
-
default: u(() => [
|
|
1454
|
+
default: u(() => [E(M(k.data), 1)]),
|
|
1451
1455
|
_: 2
|
|
1452
1456
|
}, 1032, ["class", "value", "draggable"])) : (m(), C("p", {
|
|
1453
1457
|
key: 1,
|
|
@@ -1458,7 +1462,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1458
1462
|
}, 8, ["modelValue"])]);
|
|
1459
1463
|
};
|
|
1460
1464
|
}
|
|
1461
|
-
}), no = { class: "label" }, ao = { class: "flex item-switch" }, ro = { class: "flex item-switch" }, Ao = { class: "flex item-switch" },
|
|
1465
|
+
}), no = { class: "label" }, ao = { class: "flex item-switch" }, ro = { class: "flex item-switch" }, Ao = { class: "flex item-switch" }, Se = /* @__PURE__ */ L({
|
|
1462
1466
|
__name: "SettingTable",
|
|
1463
1467
|
setup(o) {
|
|
1464
1468
|
const t = q(), e = K(() => t.getActiveComponents);
|
|
@@ -1510,7 +1514,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1510
1514
|
]);
|
|
1511
1515
|
};
|
|
1512
1516
|
}
|
|
1513
|
-
}), so = { key: 0 }, io = /* @__PURE__ */
|
|
1517
|
+
}), so = { key: 0 }, io = /* @__PURE__ */ L({
|
|
1514
1518
|
__name: "ChartsUniConfig",
|
|
1515
1519
|
setup(o) {
|
|
1516
1520
|
const t = q(), e = K(() => t.activeComponents);
|
|
@@ -1653,7 +1657,7 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1653
1657
|
};
|
|
1654
1658
|
}
|
|
1655
1659
|
});
|
|
1656
|
-
const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]),
|
|
1660
|
+
const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @__PURE__ */ L({
|
|
1657
1661
|
__name: "SettingDescribe",
|
|
1658
1662
|
setup(o) {
|
|
1659
1663
|
const t = q(), e = K(() => t.getActiveComponents);
|
|
@@ -1699,13 +1703,13 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1699
1703
|
default: u(() => [
|
|
1700
1704
|
l(g, { value: "horizontal" }, {
|
|
1701
1705
|
default: u(() => r[4] || (r[4] = [
|
|
1702
|
-
|
|
1706
|
+
E("横向")
|
|
1703
1707
|
])),
|
|
1704
1708
|
_: 1
|
|
1705
1709
|
}),
|
|
1706
1710
|
l(g, { value: "vertical" }, {
|
|
1707
1711
|
default: u(() => r[5] || (r[5] = [
|
|
1708
|
-
|
|
1712
|
+
E("纵向")
|
|
1709
1713
|
])),
|
|
1710
1714
|
_: 1
|
|
1711
1715
|
})
|
|
@@ -1718,7 +1722,7 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1718
1722
|
]);
|
|
1719
1723
|
};
|
|
1720
1724
|
}
|
|
1721
|
-
}), po = /* @__PURE__ */
|
|
1725
|
+
}), po = /* @__PURE__ */ L({
|
|
1722
1726
|
__name: "SettingCharts",
|
|
1723
1727
|
setup(o) {
|
|
1724
1728
|
const t = q(), e = B(!1), a = K(() => t.getActiveComponents), r = [
|
|
@@ -1729,7 +1733,7 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1729
1733
|
{ value: "bar", name: "柱状图" }
|
|
1730
1734
|
], n = B(""), A = B();
|
|
1731
1735
|
async function d(p) {
|
|
1732
|
-
const c = window.windowGlobalVar.
|
|
1736
|
+
const c = window.windowGlobalVar.SYSTEM_NORMAL, y = await Ce({
|
|
1733
1737
|
prod_type: window.$prodType,
|
|
1734
1738
|
chart_type: p,
|
|
1735
1739
|
filter_uuid: t.filterForm.filter_uuid,
|
|
@@ -1771,13 +1775,13 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1771
1775
|
Object.assign(t.activeComponents, Ut(p)), e.value = !1;
|
|
1772
1776
|
}
|
|
1773
1777
|
}
|
|
1774
|
-
return
|
|
1778
|
+
return be(
|
|
1775
1779
|
() => a.value,
|
|
1776
1780
|
(p) => {
|
|
1777
1781
|
console.log(p, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(p.type) && (n.value = a.value.type, d(n.value));
|
|
1778
1782
|
}
|
|
1779
1783
|
), (p, c) => {
|
|
1780
|
-
const y = s("el-option"), _ = s("el-select"), D = s("el-form-item"), w = s("el-form"), v =
|
|
1784
|
+
const y = s("el-option"), _ = s("el-select"), D = s("el-form-item"), w = s("el-form"), v = we("loading");
|
|
1781
1785
|
return Ae((m(), C("div", null, [
|
|
1782
1786
|
l(w, { "label-position": "top" }, {
|
|
1783
1787
|
default: u(() => [
|
|
@@ -1821,9 +1825,9 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1821
1825
|
]),
|
|
1822
1826
|
_: 1
|
|
1823
1827
|
}),
|
|
1824
|
-
n.value === "report-table" && a.value.options.showColumn ? (m(), V(
|
|
1828
|
+
n.value === "report-table" && a.value.options.showColumn ? (m(), V(Se, { key: 0 })) : S("", !0),
|
|
1825
1829
|
n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), V(uo, { key: 1 })) : S("", !0),
|
|
1826
|
-
n.value === "report-describe" ? (m(), V(
|
|
1830
|
+
n.value === "report-describe" ? (m(), V(Oe, { key: 2 })) : S("", !0)
|
|
1827
1831
|
]),
|
|
1828
1832
|
_: 1
|
|
1829
1833
|
})
|
|
@@ -1832,7 +1836,7 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1832
1836
|
]);
|
|
1833
1837
|
};
|
|
1834
1838
|
}
|
|
1835
|
-
}), co = { key: 0 }, mo = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ce = "default", fo = /* @__PURE__ */
|
|
1839
|
+
}), co = { key: 0 }, mo = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, ce = "default", fo = /* @__PURE__ */ L({
|
|
1836
1840
|
__name: "SettingText",
|
|
1837
1841
|
setup(o) {
|
|
1838
1842
|
const t = q(), e = Me(), a = B();
|
|
@@ -1841,7 +1845,7 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1841
1845
|
t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
|
|
1842
1846
|
}
|
|
1843
1847
|
async function n() {
|
|
1844
|
-
const p = window.windowGlobalVar.
|
|
1848
|
+
const p = window.windowGlobalVar.SYSTEM_NORMAL, c = await Ce({
|
|
1845
1849
|
prod_type: window.$prodType,
|
|
1846
1850
|
chart_type: "p",
|
|
1847
1851
|
filter_uuid: t.filterForm.filter_uuid,
|
|
@@ -1932,12 +1936,12 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1932
1936
|
])) : S("", !0);
|
|
1933
1937
|
};
|
|
1934
1938
|
}
|
|
1935
|
-
}), go = /* @__PURE__ */
|
|
1939
|
+
}), go = /* @__PURE__ */ L({
|
|
1936
1940
|
__name: "SettingFilter",
|
|
1937
1941
|
setup(o) {
|
|
1938
1942
|
const t = B([]), e = q();
|
|
1939
1943
|
async function a() {
|
|
1940
|
-
const r = await
|
|
1944
|
+
const r = await xe({ prod_type: window.$prodType });
|
|
1941
1945
|
t.value = r.data;
|
|
1942
1946
|
}
|
|
1943
1947
|
return a(), (r, n) => {
|
|
@@ -1983,7 +1987,7 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1983
1987
|
});
|
|
1984
1988
|
};
|
|
1985
1989
|
}
|
|
1986
|
-
}), vo = /* @__PURE__ */
|
|
1990
|
+
}), vo = /* @__PURE__ */ L({
|
|
1987
1991
|
__name: "SettingTitle",
|
|
1988
1992
|
setup(o) {
|
|
1989
1993
|
const t = q();
|
|
@@ -2114,13 +2118,13 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2114
2118
|
};
|
|
2115
2119
|
}
|
|
2116
2120
|
});
|
|
2117
|
-
const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */
|
|
2121
|
+
const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */ L({
|
|
2118
2122
|
__name: "Setting",
|
|
2119
2123
|
setup(o) {
|
|
2120
2124
|
const t = {
|
|
2121
|
-
SettingTable:
|
|
2125
|
+
SettingTable: Se,
|
|
2122
2126
|
SettingCharts: po,
|
|
2123
|
-
SettingDescribe:
|
|
2127
|
+
SettingDescribe: Oe,
|
|
2124
2128
|
SettingText: fo,
|
|
2125
2129
|
SettingFilter: go,
|
|
2126
2130
|
SettingTitle: _o
|
|
@@ -2135,7 +2139,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2135
2139
|
});
|
|
2136
2140
|
};
|
|
2137
2141
|
}
|
|
2138
|
-
}), wo = { class: "editor-wrapper flex items-center space-between start" }, yo = { class: "flex items-center space-between" }, ho = { class: "btn-group" }, Co = /* @__PURE__ */
|
|
2142
|
+
}), wo = { class: "editor-wrapper flex items-center space-between start" }, yo = { class: "flex items-center space-between" }, ho = { class: "btn-group" }, Co = /* @__PURE__ */ L({
|
|
2139
2143
|
__name: "index",
|
|
2140
2144
|
props: /* @__PURE__ */ ve({
|
|
2141
2145
|
reportId: {
|
|
@@ -2198,7 +2202,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2198
2202
|
x("div", ho, [
|
|
2199
2203
|
l(c, null, {
|
|
2200
2204
|
default: u(() => [
|
|
2201
|
-
(m(!0), C(O, null, I(h(
|
|
2205
|
+
(m(!0), C(O, null, I(h(Et), (_) => (m(), C(O, {
|
|
2202
2206
|
key: _.type
|
|
2203
2207
|
}, [
|
|
2204
2208
|
_ != null && _.hide ? S("", !0) : (m(), V(p, {
|
|
@@ -2206,7 +2210,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2206
2210
|
onClick: (D) => r(_)
|
|
2207
2211
|
}, {
|
|
2208
2212
|
default: u(() => [
|
|
2209
|
-
|
|
2213
|
+
E(M(_.name), 1)
|
|
2210
2214
|
]),
|
|
2211
2215
|
_: 2
|
|
2212
2216
|
}, 1032, ["onClick"]))
|
|
@@ -2222,13 +2226,13 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2222
2226
|
onClick: d
|
|
2223
2227
|
}, {
|
|
2224
2228
|
default: u(() => g[0] || (g[0] = [
|
|
2225
|
-
|
|
2229
|
+
E("保存")
|
|
2226
2230
|
])),
|
|
2227
2231
|
_: 1
|
|
2228
2232
|
}),
|
|
2229
2233
|
l(p, { onClick: n }, {
|
|
2230
2234
|
default: u(() => g[1] || (g[1] = [
|
|
2231
|
-
|
|
2235
|
+
E("退出")
|
|
2232
2236
|
])),
|
|
2233
2237
|
_: 1
|
|
2234
2238
|
})
|
|
@@ -2246,13 +2250,13 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2246
2250
|
}
|
|
2247
2251
|
}), xo = {
|
|
2248
2252
|
class: "table-box"
|
|
2249
|
-
}, To = /* @__PURE__ */
|
|
2253
|
+
}, To = /* @__PURE__ */ L({
|
|
2250
2254
|
__name: "Report",
|
|
2251
2255
|
emits: ["click"],
|
|
2252
2256
|
setup(o, {
|
|
2253
2257
|
emit: t
|
|
2254
2258
|
}) {
|
|
2255
|
-
const e = window.windowGlobalVar.
|
|
2259
|
+
const e = window.windowGlobalVar.SYSTEM_NORMAL, a = K(() => ({
|
|
2256
2260
|
prod_type: window.$prodType,
|
|
2257
2261
|
cg_linkage: e ? 1 : e ? void 0 : 0
|
|
2258
2262
|
})), r = B(), n = t, A = (_) => {
|
|
@@ -2342,7 +2346,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2342
2346
|
icon: "Plus",
|
|
2343
2347
|
onClick: i
|
|
2344
2348
|
}, {
|
|
2345
|
-
default: u(() => D[0] || (D[0] = [
|
|
2349
|
+
default: u(() => D[0] || (D[0] = [E("新建")])),
|
|
2346
2350
|
_: 1
|
|
2347
2351
|
}), l(w, {
|
|
2348
2352
|
plain: "",
|
|
@@ -2350,7 +2354,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2350
2354
|
icon: "Delete",
|
|
2351
2355
|
onClick: (b) => p(f.selectedListIds)
|
|
2352
2356
|
}, {
|
|
2353
|
-
default: u(() => D[1] || (D[1] = [
|
|
2357
|
+
default: u(() => D[1] || (D[1] = [E("删除")])),
|
|
2354
2358
|
_: 2
|
|
2355
2359
|
}, 1032, ["onClick"])]),
|
|
2356
2360
|
_: 1
|
|
@@ -2358,7 +2362,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2358
2362
|
};
|
|
2359
2363
|
}
|
|
2360
2364
|
});
|
|
2361
|
-
const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */
|
|
2365
|
+
const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */ L({
|
|
2362
2366
|
name: "TCReport",
|
|
2363
2367
|
__name: "index",
|
|
2364
2368
|
setup(o) {
|
|
@@ -2372,7 +2376,7 @@ const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */ E({
|
|
|
2372
2376
|
key: 0,
|
|
2373
2377
|
onClick: a
|
|
2374
2378
|
})) : S("", !0),
|
|
2375
|
-
e.value === "review" ? (m(), V(
|
|
2379
|
+
e.value === "review" ? (m(), V(Re, {
|
|
2376
2380
|
key: 1,
|
|
2377
2381
|
"report-id": t.value,
|
|
2378
2382
|
modelValue: e.value,
|
|
@@ -2423,7 +2427,7 @@ const W = (o, t) => {
|
|
|
2423
2427
|
label: "描述列表",
|
|
2424
2428
|
value: "report-describe"
|
|
2425
2429
|
}
|
|
2426
|
-
],
|
|
2430
|
+
], Lo = [
|
|
2427
2431
|
{
|
|
2428
2432
|
value: "p",
|
|
2429
2433
|
fields: ["table_key_relation"]
|
|
@@ -2448,13 +2452,13 @@ const W = (o, t) => {
|
|
|
2448
2452
|
value: "report-describe",
|
|
2449
2453
|
fields: ["p_text"]
|
|
2450
2454
|
}
|
|
2451
|
-
],
|
|
2455
|
+
], Eo = {
|
|
2452
2456
|
class: "table-box"
|
|
2453
|
-
}, Uo = /* @__PURE__ */
|
|
2457
|
+
}, Uo = /* @__PURE__ */ L({
|
|
2454
2458
|
name: "TCModule",
|
|
2455
2459
|
__name: "index",
|
|
2456
2460
|
setup(o) {
|
|
2457
|
-
const t = B(), e = B(), a = B({}), r = B(""), n = window.windowGlobalVar.
|
|
2461
|
+
const t = B(), e = B(), a = B({}), r = B(""), n = window.windowGlobalVar.SYSTEM_NORMAL, A = J({
|
|
2458
2462
|
prod_type: window.$prodType,
|
|
2459
2463
|
cg_linkage: n ? 1 : n ? void 0 : 0
|
|
2460
2464
|
});
|
|
@@ -2512,7 +2516,7 @@ const W = (o, t) => {
|
|
|
2512
2516
|
}, {
|
|
2513
2517
|
field: "filter_uuid",
|
|
2514
2518
|
name: "筛选条件",
|
|
2515
|
-
enum: () =>
|
|
2519
|
+
enum: () => xe({
|
|
2516
2520
|
prod_type: window.$prodType
|
|
2517
2521
|
}),
|
|
2518
2522
|
fieldNames: {
|
|
@@ -2531,7 +2535,7 @@ const W = (o, t) => {
|
|
|
2531
2535
|
enum: Vo,
|
|
2532
2536
|
show: {
|
|
2533
2537
|
type: "select",
|
|
2534
|
-
display:
|
|
2538
|
+
display: Lo
|
|
2535
2539
|
},
|
|
2536
2540
|
rules: [{
|
|
2537
2541
|
required: !0
|
|
@@ -2559,9 +2563,9 @@ const W = (o, t) => {
|
|
|
2559
2563
|
style: "gap:15px;"
|
|
2560
2564
|
}, [l("span", {
|
|
2561
2565
|
style: "width:50%"
|
|
2562
|
-
}, [
|
|
2566
|
+
}, [E("表头名称")]), l("span", {
|
|
2563
2567
|
style: "width:50%"
|
|
2564
|
-
}, [
|
|
2568
|
+
}, [E("KEY")])]), (w = a.value.table_key_relation) == null ? void 0 : w.map((v, f) => l("div", {
|
|
2565
2569
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2566
2570
|
style: "gap:15px;margin-bottom:10px;",
|
|
2567
2571
|
key: f
|
|
@@ -2594,7 +2598,7 @@ const W = (o, t) => {
|
|
|
2594
2598
|
icon: "Plus",
|
|
2595
2599
|
onClick: () => c()
|
|
2596
2600
|
}, {
|
|
2597
|
-
default: () => [
|
|
2601
|
+
default: () => [E("新增表头与KEY")]
|
|
2598
2602
|
})]);
|
|
2599
2603
|
}
|
|
2600
2604
|
},
|
|
@@ -2647,8 +2651,8 @@ const W = (o, t) => {
|
|
|
2647
2651
|
}, null)])
|
|
2648
2652
|
}]);
|
|
2649
2653
|
return (w, v) => {
|
|
2650
|
-
const f = s("el-button"), b = s("TdsTable"),
|
|
2651
|
-
return m(), C("div",
|
|
2654
|
+
const f = s("el-button"), b = s("TdsTable"), P = s("TdsForm");
|
|
2655
|
+
return m(), C("div", Eo, [l(b, {
|
|
2652
2656
|
ref_key: "refTdsTable",
|
|
2653
2657
|
ref: t,
|
|
2654
2658
|
columns: D,
|
|
@@ -2664,21 +2668,21 @@ const W = (o, t) => {
|
|
|
2664
2668
|
type: "primary",
|
|
2665
2669
|
class: "custom-btn",
|
|
2666
2670
|
icon: "Plus",
|
|
2667
|
-
onClick: v[0] || (v[0] = (
|
|
2671
|
+
onClick: v[0] || (v[0] = (z) => i())
|
|
2668
2672
|
}, {
|
|
2669
|
-
default: u(() => v[1] || (v[1] = [
|
|
2673
|
+
default: u(() => v[1] || (v[1] = [E("新建")])),
|
|
2670
2674
|
_: 1
|
|
2671
2675
|
}), l(f, {
|
|
2672
2676
|
plain: "",
|
|
2673
2677
|
type: "danger",
|
|
2674
2678
|
icon: "Delete",
|
|
2675
|
-
onClick: (
|
|
2679
|
+
onClick: (z) => d(k.selectedListIds)
|
|
2676
2680
|
}, {
|
|
2677
|
-
default: u(() => v[2] || (v[2] = [
|
|
2681
|
+
default: u(() => v[2] || (v[2] = [E("删除")])),
|
|
2678
2682
|
_: 2
|
|
2679
2683
|
}, 1032, ["onClick"])]),
|
|
2680
2684
|
_: 1
|
|
2681
|
-
}, 8, ["columns", "request-api", "init-param", "options"]), l(
|
|
2685
|
+
}, 8, ["columns", "request-api", "init-param", "options"]), l(P, ye({
|
|
2682
2686
|
ref_key: "refTdsForm",
|
|
2683
2687
|
ref: e
|
|
2684
2688
|
}, w.$formBindProps({
|
|
@@ -2697,7 +2701,7 @@ const Ro = W(Uo), So = {
|
|
|
2697
2701
|
function me(o) {
|
|
2698
2702
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
2699
2703
|
}
|
|
2700
|
-
const Oo = /* @__PURE__ */
|
|
2704
|
+
const Oo = /* @__PURE__ */ L({
|
|
2701
2705
|
name: "TCSubscribe",
|
|
2702
2706
|
__name: "index",
|
|
2703
2707
|
setup(o) {
|
|
@@ -2731,10 +2735,10 @@ const Oo = /* @__PURE__ */ E({
|
|
|
2731
2735
|
data: b
|
|
2732
2736
|
}), t.value.getTableList(), e.value.close();
|
|
2733
2737
|
}
|
|
2734
|
-
function c(f, b,
|
|
2738
|
+
function c(f, b, P) {
|
|
2735
2739
|
if (!b || b.length === 0)
|
|
2736
|
-
return
|
|
2737
|
-
|
|
2740
|
+
return P(new Error("请输入收件人"));
|
|
2741
|
+
P();
|
|
2738
2742
|
}
|
|
2739
2743
|
const y = (f, b) => {
|
|
2740
2744
|
f.target.value && A.value[b].push(f.target.value);
|
|
@@ -2884,7 +2888,7 @@ const Oo = /* @__PURE__ */ E({
|
|
|
2884
2888
|
default: () => [f]
|
|
2885
2889
|
}), l("p", {
|
|
2886
2890
|
style: "font-size:12px;color:#909399;line-height:20px"
|
|
2887
|
-
}, [
|
|
2891
|
+
}, [E("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
|
|
2888
2892
|
}
|
|
2889
2893
|
},
|
|
2890
2894
|
rules: [{
|
|
@@ -3013,8 +3017,8 @@ const Oo = /* @__PURE__ */ E({
|
|
|
3013
3017
|
}, null)])
|
|
3014
3018
|
}]);
|
|
3015
3019
|
return (f, b) => {
|
|
3016
|
-
const
|
|
3017
|
-
return m(), C("div", So, [l(h(
|
|
3020
|
+
const P = s("el-button");
|
|
3021
|
+
return m(), C("div", So, [l(h(he), {
|
|
3018
3022
|
ref_key: "refTdsTable",
|
|
3019
3023
|
ref: t,
|
|
3020
3024
|
"row-key": "subscript_uuid",
|
|
@@ -3022,27 +3026,27 @@ const Oo = /* @__PURE__ */ E({
|
|
|
3022
3026
|
columns: v,
|
|
3023
3027
|
options: f.$tableOptions()
|
|
3024
3028
|
}, {
|
|
3025
|
-
tableHeader: u((k) => [l(
|
|
3029
|
+
tableHeader: u((k) => [l(P, {
|
|
3026
3030
|
type: "primary",
|
|
3027
3031
|
icon: "Plus",
|
|
3028
3032
|
class: "custom-btn",
|
|
3029
3033
|
plain: "",
|
|
3030
|
-
onClick: b[0] || (b[0] = (
|
|
3034
|
+
onClick: b[0] || (b[0] = (z) => g())
|
|
3031
3035
|
}, {
|
|
3032
|
-
default: u(() => [
|
|
3036
|
+
default: u(() => [E(M(h(a)("button.add")), 1)]),
|
|
3033
3037
|
_: 1
|
|
3034
|
-
}), l(
|
|
3038
|
+
}), l(P, {
|
|
3035
3039
|
type: "danger",
|
|
3036
3040
|
icon: "Delete",
|
|
3037
3041
|
plain: "",
|
|
3038
3042
|
onClick: i,
|
|
3039
3043
|
disabled: !k.selectedListIds.length
|
|
3040
3044
|
}, {
|
|
3041
|
-
default: u(() => [
|
|
3045
|
+
default: u(() => [E(M(h(a)("button.delete")), 1)]),
|
|
3042
3046
|
_: 2
|
|
3043
3047
|
}, 1032, ["disabled"])]),
|
|
3044
3048
|
_: 1
|
|
3045
|
-
}, 8, ["request-api", "columns", "options"]), l(h($e),
|
|
3049
|
+
}, 8, ["request-api", "columns", "options"]), l(h($e), ye({
|
|
3046
3050
|
ref_key: "refTdsForm",
|
|
3047
3051
|
ref: e
|
|
3048
3052
|
}, f.$formBindProps({
|
|
@@ -3058,13 +3062,13 @@ const Oo = /* @__PURE__ */ E({
|
|
|
3058
3062
|
class: "main-wrapper"
|
|
3059
3063
|
}, Io = {
|
|
3060
3064
|
class: "el-dropdown-link"
|
|
3061
|
-
}, Fo = /* @__PURE__ */
|
|
3065
|
+
}, Fo = /* @__PURE__ */ L({
|
|
3062
3066
|
name: "TCBuildin",
|
|
3063
3067
|
__name: "index",
|
|
3064
3068
|
setup(o) {
|
|
3065
3069
|
const t = B({}), e = B("1"), a = B("");
|
|
3066
3070
|
async function r() {
|
|
3067
|
-
const d = window.windowGlobalVar.
|
|
3071
|
+
const d = window.windowGlobalVar.SYSTEM_NORMAL, i = await bt({
|
|
3068
3072
|
prod_type: window.$prodType,
|
|
3069
3073
|
cg_linkage: d ? 1 : d ? void 0 : 0
|
|
3070
3074
|
});
|
|
@@ -3097,15 +3101,15 @@ const Oo = /* @__PURE__ */ E({
|
|
|
3097
3101
|
},
|
|
3098
3102
|
key: f,
|
|
3099
3103
|
name: v[0].report_uuid
|
|
3100
|
-
},
|
|
3101
|
-
default: u(() => [e.value === v[0].report_uuid ? (m(), V(
|
|
3104
|
+
}, Ne({
|
|
3105
|
+
default: u(() => [e.value === v[0].report_uuid ? (m(), V(Re, {
|
|
3102
3106
|
key: 0,
|
|
3103
3107
|
"report-id": a.value || e.value
|
|
3104
3108
|
}, null, 8, ["report-id"])) : S("", !0)]),
|
|
3105
3109
|
_: 2
|
|
3106
3110
|
}, [v.length === 1 ? {
|
|
3107
3111
|
name: "label",
|
|
3108
|
-
fn: u(() => [
|
|
3112
|
+
fn: u(() => [E(M(v[0].report_name), 1)]),
|
|
3109
3113
|
key: "0"
|
|
3110
3114
|
} : {
|
|
3111
3115
|
name: "label",
|
|
@@ -3118,12 +3122,12 @@ const Oo = /* @__PURE__ */ E({
|
|
|
3118
3122
|
class: "mt-10px",
|
|
3119
3123
|
command: b.report_uuid
|
|
3120
3124
|
}, {
|
|
3121
|
-
default: u(() => [
|
|
3125
|
+
default: u(() => [E(M(b.report_name), 1)]),
|
|
3122
3126
|
_: 2
|
|
3123
3127
|
}, 1032, ["command"]))), 128))]),
|
|
3124
3128
|
_: 2
|
|
3125
3129
|
}, 1024)]),
|
|
3126
|
-
default: u(() => [x("span", Io, [
|
|
3130
|
+
default: u(() => [x("span", Io, [E(M(f) + " ", 1), l(p, {
|
|
3127
3131
|
class: "el-icon--right"
|
|
3128
3132
|
}, {
|
|
3129
3133
|
default: u(() => [l(g)]),
|
|
@@ -3138,7 +3142,7 @@ const Oo = /* @__PURE__ */ E({
|
|
|
3138
3142
|
};
|
|
3139
3143
|
}
|
|
3140
3144
|
});
|
|
3141
|
-
const Mo = /* @__PURE__ */ Z(Fo, [["__scopeId", "data-v-
|
|
3145
|
+
const Mo = /* @__PURE__ */ Z(Fo, [["__scopeId", "data-v-99a69fda"]]), Ko = W(Mo);
|
|
3142
3146
|
function qo(o, t, e) {
|
|
3143
3147
|
const a = atob(o), r = [];
|
|
3144
3148
|
for (let i = 0; i < a.length; i += 512) {
|
|
@@ -3155,7 +3159,7 @@ function qo(o, t, e) {
|
|
|
3155
3159
|
}
|
|
3156
3160
|
const Ho = {
|
|
3157
3161
|
class: "table-box"
|
|
3158
|
-
},
|
|
3162
|
+
}, No = /* @__PURE__ */ L({
|
|
3159
3163
|
name: "TCDownload",
|
|
3160
3164
|
__name: "index",
|
|
3161
3165
|
setup(o) {
|
|
@@ -3241,7 +3245,7 @@ const Ho = {
|
|
|
3241
3245
|
}]);
|
|
3242
3246
|
return (A, d) => {
|
|
3243
3247
|
const i = s("el-button");
|
|
3244
|
-
return m(), C("div", Ho, [l(h(
|
|
3248
|
+
return m(), C("div", Ho, [l(h(he), {
|
|
3245
3249
|
ref_key: "proTable",
|
|
3246
3250
|
ref: e,
|
|
3247
3251
|
columns: n,
|
|
@@ -3261,19 +3265,19 @@ const Ho = {
|
|
|
3261
3265
|
icon: "Delete",
|
|
3262
3266
|
onClick: (p) => r(g.selectedListIds)
|
|
3263
3267
|
}, {
|
|
3264
|
-
default: u(() => d[0] || (d[0] = [
|
|
3268
|
+
default: u(() => d[0] || (d[0] = [E("删除")])),
|
|
3265
3269
|
_: 2
|
|
3266
3270
|
}, 1032, ["onClick"])]),
|
|
3267
3271
|
_: 1
|
|
3268
3272
|
}, 8, ["columns", "request-api", "init-param", "options"])]);
|
|
3269
3273
|
};
|
|
3270
3274
|
}
|
|
3271
|
-
}),
|
|
3275
|
+
}), zo = W(No), Yo = {
|
|
3272
3276
|
TCReport: Do,
|
|
3273
3277
|
TCModule: Ro,
|
|
3274
3278
|
TCSubscribe: Po,
|
|
3275
3279
|
TCBuildin: Ko,
|
|
3276
|
-
TCDownload:
|
|
3280
|
+
TCDownload: zo
|
|
3277
3281
|
}, el = {
|
|
3278
3282
|
install(o, t) {
|
|
3279
3283
|
Object.entries(Yo).forEach(([e, a]) => {
|
|
@@ -3283,7 +3287,7 @@ const Ho = {
|
|
|
3283
3287
|
};
|
|
3284
3288
|
export {
|
|
3285
3289
|
Ko as TCBuildin,
|
|
3286
|
-
|
|
3290
|
+
zo as TCDownload,
|
|
3287
3291
|
Ro as TCModule,
|
|
3288
3292
|
Do as TCReport,
|
|
3289
3293
|
Po as TCSubscribe,
|