@topdatasec/report 1.1.29 → 1.1.31
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 +564 -559
- 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
|
|
1
|
+
import { defineComponent as E, computed as K, resolveComponent as s, openBlock as m, createElementBlock as C, createElementVNode as T, Fragment as P, renderList as I, normalizeClass as X, createBlock as L, createCommentVNode as O, withDirectives as Ae, createTextVNode as U, toDisplayString as M, unref as y, ref as D, 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
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
|
|
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()),
|
|
7
|
+
import { TdsTable as he, TdsForm as $e } from "topdatasec-ui";
|
|
8
|
+
const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), ee = (o) => JSON.parse(JSON.stringify(o)), et = (o) => o.replace(/-([a-z])/g, (t, e) => e.toUpperCase()).replace(/^[a-z]/, (t) => t.toUpperCase()), N = (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)", z = "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: z,
|
|
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: z,
|
|
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: z,
|
|
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",
|
|
@@ -346,8 +346,8 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
346
346
|
trigger: "item",
|
|
347
347
|
show: !0,
|
|
348
348
|
formatter: (i) => {
|
|
349
|
-
const { name:
|
|
350
|
-
return `<div style="color: ${i.color}; font-size: 14px;">${
|
|
349
|
+
const { name: f, value: p } = i;
|
|
350
|
+
return `<div style="color: ${i.color}; font-size: 14px;">${f} </div>
|
|
351
351
|
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${p}</span></div>`;
|
|
352
352
|
}
|
|
353
353
|
},
|
|
@@ -366,12 +366,12 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
366
366
|
left: "70%",
|
|
367
367
|
formatter: (i) => {
|
|
368
368
|
var p;
|
|
369
|
-
const
|
|
370
|
-
return ` ${i} | ${
|
|
369
|
+
const f = (p = d.series[0]) == null ? void 0 : p.data.find((c) => c.name === i).value;
|
|
370
|
+
return ` ${i} | ${f}`;
|
|
371
371
|
},
|
|
372
372
|
textStyle: {
|
|
373
373
|
fontSize: G,
|
|
374
|
-
color:
|
|
374
|
+
color: z
|
|
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: z,
|
|
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: z
|
|
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: z,
|
|
595
595
|
padding: [0, 60, 0, 0]
|
|
596
596
|
},
|
|
597
597
|
axisLabel: {
|
|
598
598
|
show: !0,
|
|
599
599
|
fontSize: G,
|
|
600
|
-
color:
|
|
600
|
+
color: z
|
|
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);
|
|
@@ -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__ */ E({
|
|
924
924
|
__name: "Catalogue",
|
|
925
925
|
props: {
|
|
926
926
|
data: { default: () => [] }
|
|
@@ -930,23 +930,23 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
930
930
|
return (a, r) => {
|
|
931
931
|
const n = s("el-divider");
|
|
932
932
|
return m(), C("div", St, [
|
|
933
|
-
r[0] || (r[0] =
|
|
934
|
-
(m(!0), C(
|
|
933
|
+
r[0] || (r[0] = T("div", { class: "cata-title el-anchor__link" }, "目录", -1)),
|
|
934
|
+
(m(!0), C(P, null, I(e.value, (A) => (m(), C("div", {
|
|
935
935
|
class: X("level" + A.type),
|
|
936
936
|
key: A.value
|
|
937
937
|
}, [
|
|
938
|
-
A.type === "h2" ? (m(),
|
|
938
|
+
A.type === "h2" ? (m(), L(n, {
|
|
939
939
|
key: 0,
|
|
940
940
|
style: { "margin-top": "10px", "margin-bottom": "10px" }
|
|
941
|
-
})) :
|
|
941
|
+
})) : O("", !0),
|
|
942
942
|
Ae((m(), C("a", {
|
|
943
943
|
class: "el-anchor__link",
|
|
944
944
|
href: "#" + A.id,
|
|
945
945
|
title: A.data
|
|
946
946
|
}, [
|
|
947
|
-
|
|
947
|
+
U(M(A.data), 1)
|
|
948
948
|
], 8, Ot)), [
|
|
949
|
-
[
|
|
949
|
+
[y(Rt)]
|
|
950
950
|
])
|
|
951
951
|
], 2))), 128))
|
|
952
952
|
]);
|
|
@@ -960,21 +960,21 @@ 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__ */ E({
|
|
964
964
|
__name: "Bar",
|
|
965
965
|
props: {
|
|
966
966
|
value: {}
|
|
967
967
|
},
|
|
968
968
|
setup(o) {
|
|
969
969
|
const t = o, e = K(() => t.value.options);
|
|
970
|
-
return
|
|
970
|
+
return D(!1), (a, r) => {
|
|
971
971
|
const n = s("TdsChart");
|
|
972
972
|
return m(), C("div", It, [l(n, {
|
|
973
973
|
option: e.value
|
|
974
974
|
}, null, 8, ["option"])]);
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
}), Ft = { class: "chart-components" },
|
|
977
|
+
}), Ft = { class: "chart-components" }, De = /* @__PURE__ */ E({
|
|
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__ */ E({
|
|
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__ */ E({
|
|
1006
1006
|
__name: "ReportSelect",
|
|
1007
1007
|
props: {
|
|
1008
1008
|
value: {}
|
|
@@ -1011,11 +1011,11 @@ const Z = (o, t) => {
|
|
|
1011
1011
|
setup(o, { emit: t }) {
|
|
1012
1012
|
const e = t, a = (A) => {
|
|
1013
1013
|
e("change", A);
|
|
1014
|
-
}, n =
|
|
1014
|
+
}, n = D(o.value);
|
|
1015
1015
|
return (A, d) => {
|
|
1016
|
-
const i = s("el-option"),
|
|
1016
|
+
const i = s("el-option"), f = s("el-select");
|
|
1017
1017
|
return n.value.data ? (m(), C("div", Kt, [
|
|
1018
|
-
l(
|
|
1018
|
+
l(f, {
|
|
1019
1019
|
modelValue: n.value.value,
|
|
1020
1020
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => n.value.value = p),
|
|
1021
1021
|
multiple: "",
|
|
@@ -1024,7 +1024,7 @@ const Z = (o, t) => {
|
|
|
1024
1024
|
placeholder: "全部"
|
|
1025
1025
|
}, {
|
|
1026
1026
|
default: u(() => [
|
|
1027
|
-
(m(!0), C(
|
|
1027
|
+
(m(!0), C(P, null, I(n.value.data, (p) => (m(), L(i, {
|
|
1028
1028
|
key: p.data,
|
|
1029
1029
|
label: p.label,
|
|
1030
1030
|
value: p.data
|
|
@@ -1032,26 +1032,26 @@ const Z = (o, t) => {
|
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 1
|
|
1034
1034
|
}, 8, ["modelValue"])
|
|
1035
|
-
])) :
|
|
1035
|
+
])) : O("", !0);
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
}), ae = /* @__PURE__ */
|
|
1038
|
+
}), ae = /* @__PURE__ */ E({
|
|
1039
1039
|
__name: "RangeTime",
|
|
1040
1040
|
props: {
|
|
1041
1041
|
value: {}
|
|
1042
1042
|
},
|
|
1043
1043
|
emits: ["change"],
|
|
1044
1044
|
setup(o, { emit: t }) {
|
|
1045
|
-
const e = t, r =
|
|
1045
|
+
const e = t, r = D(o.value), n = D([]);
|
|
1046
1046
|
function A(d) {
|
|
1047
1047
|
d ? (r.value.data[0].start_time = d[0], r.value.data[0].end_time = d[1]) : n.value = [], e("change", n.value);
|
|
1048
1048
|
}
|
|
1049
1049
|
return se(() => {
|
|
1050
1050
|
n.value = [r.value.data[0].start_time, r.value.data[0].end_time];
|
|
1051
1051
|
}), (d, i) => {
|
|
1052
|
-
const
|
|
1052
|
+
const f = s("el-date-picker");
|
|
1053
1053
|
return m(), C("div", null, [
|
|
1054
|
-
l(
|
|
1054
|
+
l(f, {
|
|
1055
1055
|
modelValue: n.value,
|
|
1056
1056
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => n.value = p),
|
|
1057
1057
|
type: "datetimerange",
|
|
@@ -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__ */ E({
|
|
1072
1072
|
__name: "ReportTable",
|
|
1073
1073
|
props: {
|
|
1074
1074
|
value: {}
|
|
@@ -1090,7 +1090,7 @@ const Ve = /* @__PURE__ */ L({
|
|
|
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__ */ E({
|
|
1094
1094
|
__name: "ReportText",
|
|
1095
1095
|
props: {
|
|
1096
1096
|
value: {}
|
|
@@ -1108,10 +1108,10 @@ const Ve = /* @__PURE__ */ L({
|
|
|
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" },
|
|
1114
|
+
}), Ht = { class: "chart-components" }, Ee = /* @__PURE__ */ E({
|
|
1115
1115
|
__name: "ReportChart",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
value: {}
|
|
@@ -1132,7 +1132,7 @@ const Ve = /* @__PURE__ */ L({
|
|
|
1132
1132
|
if (e.value.type === "pie" && (e.value.options.series = ue({ isLegend: !0 }).series, Tt({ chartOption: e.value.options, data: e.value.data })), e.value.type === "line") {
|
|
1133
1133
|
let r = [];
|
|
1134
1134
|
e.value.data.forEach((d) => {
|
|
1135
|
-
r = d.data.map((i,
|
|
1135
|
+
r = d.data.map((i, f) => ({ name: i.name, value: "value" + f }));
|
|
1136
1136
|
});
|
|
1137
1137
|
const n = {
|
|
1138
1138
|
name: "name",
|
|
@@ -1141,8 +1141,8 @@ const Ve = /* @__PURE__ */ L({
|
|
|
1141
1141
|
const i = {
|
|
1142
1142
|
name: d.label
|
|
1143
1143
|
};
|
|
1144
|
-
return r.forEach((
|
|
1145
|
-
i[
|
|
1144
|
+
return r.forEach((f, p) => {
|
|
1145
|
+
i[f.value] = d.data[p].value;
|
|
1146
1146
|
}), i;
|
|
1147
1147
|
});
|
|
1148
1148
|
console.log(te([], n), "chartsLine([], params)"), e.value.options.series = te([], n).series, kt(e.value.options, A, n);
|
|
@@ -1160,7 +1160,7 @@ const Ve = /* @__PURE__ */ L({
|
|
|
1160
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__ */ E({
|
|
1164
1164
|
__name: "ReportDescribe",
|
|
1165
1165
|
props: {
|
|
1166
1166
|
value: {}
|
|
@@ -1199,7 +1199,7 @@ const Ee = /* @__PURE__ */ L({
|
|
|
1199
1199
|
style: {
|
|
1200
1200
|
"margin-left": "auto"
|
|
1201
1201
|
}
|
|
1202
|
-
}, Jt = ["id"], jt = ["innerHTML"], Zt = /* @__PURE__ */
|
|
1202
|
+
}, Jt = ["id"], jt = ["innerHTML"], Zt = /* @__PURE__ */ E({
|
|
1203
1203
|
__name: "index",
|
|
1204
1204
|
props: /* @__PURE__ */ ve({
|
|
1205
1205
|
reportId: {
|
|
@@ -1212,93 +1212,97 @@ const Ee = /* @__PURE__ */ L({
|
|
|
1212
1212
|
}),
|
|
1213
1213
|
emits: ["update:modelValue"],
|
|
1214
1214
|
setup(o) {
|
|
1215
|
-
const t =
|
|
1216
|
-
Bar:
|
|
1217
|
-
Line:
|
|
1218
|
-
Pie:
|
|
1215
|
+
const t = D(!1), e = {
|
|
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
|
-
ReportChart:
|
|
1224
|
-
ReportDescribe:
|
|
1225
|
-
}, a = q(), r = o, n = _e(o, "modelValue"), A =
|
|
1226
|
-
p.setMonth(
|
|
1227
|
-
function c(
|
|
1228
|
-
return
|
|
1223
|
+
ReportChart: Ee,
|
|
1224
|
+
ReportDescribe: Ue
|
|
1225
|
+
}, a = q(), r = o, n = _e(o, "modelValue"), A = D([]), d = D([]), i = D([]), f = /* @__PURE__ */ new Date(), p = new Date(f);
|
|
1226
|
+
p.setMonth(f.getMonth() - 1);
|
|
1227
|
+
function c(B) {
|
|
1228
|
+
return B < 10 ? "0" + B : B;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1230
|
+
function w(B) {
|
|
1231
|
+
return B.getFullYear() + "-" + c(B.getMonth() + 1) + "-" + c(B.getDate()) + " " + c(B.getHours()) + ":" + c(B.getMinutes()) + ":" + c(B.getSeconds());
|
|
1232
1232
|
}
|
|
1233
|
-
const
|
|
1234
|
-
function
|
|
1233
|
+
const v = D(w(p)), V = D(w(f));
|
|
1234
|
+
function b() {
|
|
1235
1235
|
n.value = "table";
|
|
1236
1236
|
}
|
|
1237
|
-
async function
|
|
1238
|
-
const
|
|
1239
|
-
export_format:
|
|
1237
|
+
async function g(B) {
|
|
1238
|
+
const R = {
|
|
1239
|
+
export_format: B,
|
|
1240
1240
|
select_data: i.value.join(","),
|
|
1241
1241
|
report_uuid: r.reportId,
|
|
1242
|
-
start_time:
|
|
1243
|
-
end_time:
|
|
1242
|
+
start_time: v.value,
|
|
1243
|
+
end_time: V.value
|
|
1244
1244
|
};
|
|
1245
|
-
await wt(
|
|
1245
|
+
await wt(R), Ge({
|
|
1246
1246
|
title: "提示",
|
|
1247
1247
|
message: "正在生成导出中,请稍等...",
|
|
1248
1248
|
type: "info"
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1252
|
-
i.value =
|
|
1253
|
-
},
|
|
1254
|
-
|
|
1255
|
-
},
|
|
1251
|
+
const x = (B) => {
|
|
1252
|
+
i.value = B, h();
|
|
1253
|
+
}, _ = (B) => {
|
|
1254
|
+
B && B.length > 0 && (v.value = B[0], V.value = B[1]), h();
|
|
1255
|
+
}, h = async () => {
|
|
1256
1256
|
try {
|
|
1257
1257
|
t.value = !0;
|
|
1258
|
-
const
|
|
1258
|
+
const B = {
|
|
1259
1259
|
report_uuid: r.reportId,
|
|
1260
|
-
start_time:
|
|
1261
|
-
end_time:
|
|
1260
|
+
start_time: v.value,
|
|
1261
|
+
end_time: V.value,
|
|
1262
1262
|
select_data: i.value.join(",")
|
|
1263
|
-
},
|
|
1264
|
-
|
|
1263
|
+
}, R = await ot(B), Y = [];
|
|
1264
|
+
R.data.forEach((j) => {
|
|
1265
1265
|
(j.type === "report-select" || j.type === "range-time") && Y.push(j);
|
|
1266
|
-
}), A.value = Y,
|
|
1267
|
-
} catch (
|
|
1268
|
-
t.value = !1, console.error("Error setting loading state:",
|
|
1266
|
+
}), A.value = Y, R.data.splice(0, A.value.length), d.value = R.data, t.value = !1;
|
|
1267
|
+
} catch (B) {
|
|
1268
|
+
t.value = !1, console.error("Error setting loading state:", B);
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
|
-
|
|
1272
|
-
const k = () => l("div", null, [
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1271
|
+
h();
|
|
1272
|
+
const k = () => l("div", null, [U("未找到对应组件")]);
|
|
1273
|
+
be(() => r.reportId, () => {
|
|
1274
|
+
h();
|
|
1275
|
+
});
|
|
1276
|
+
const H = (B) => B === "h2" || B === "h3" || B === "h4" ? N(e, "ReportText") : B === "bar" || B === "pie" || B === "line" ? N(e, "ReportChart") : B ? N(e, B) : l(k, null, null);
|
|
1277
|
+
return (B, R) => {
|
|
1278
|
+
const Y = s("el-button"), j = s("el-card"), Pe = we("loading");
|
|
1279
|
+
return Ae((m(), L(j, {
|
|
1276
1280
|
class: "editor view",
|
|
1277
1281
|
"element-loading-text": "加载中..."
|
|
1278
1282
|
}, {
|
|
1279
|
-
default: u(() => [
|
|
1283
|
+
default: u(() => [T("div", zt, [l(Qt, {
|
|
1280
1284
|
data: d.value
|
|
1281
|
-
}, null, 8, ["data"]),
|
|
1285
|
+
}, null, 8, ["data"]), T("div", Yt, [T("div", Gt, [(m(!0), C(P, null, I(A.value, (S) => (m(), C("div", {
|
|
1282
1286
|
class: "item-input",
|
|
1283
|
-
key:
|
|
1284
|
-
}, [
|
|
1287
|
+
key: S.id
|
|
1288
|
+
}, [S.type === "report-select" ? (m(), L(ne, {
|
|
1285
1289
|
key: 0,
|
|
1286
|
-
onChange:
|
|
1287
|
-
value:
|
|
1288
|
-
}, null, 8, ["value"])) :
|
|
1290
|
+
onChange: x,
|
|
1291
|
+
value: S
|
|
1292
|
+
}, null, 8, ["value"])) : O("", !0), S.type === "range-time" && y(a).filterForm.range_time ? (m(), L(ae, {
|
|
1289
1293
|
key: 1,
|
|
1290
|
-
onChange:
|
|
1291
|
-
value:
|
|
1292
|
-
}, null, 8, ["value"])) :
|
|
1294
|
+
onChange: _,
|
|
1295
|
+
value: S
|
|
1296
|
+
}, null, 8, ["value"])) : O("", !0)]))), 128)), T("div", Xt, [R[5] || (R[5] = T("span", {
|
|
1293
1297
|
class: "font-export"
|
|
1294
1298
|
}, "导出为:", -1)), l(Y, {
|
|
1295
1299
|
link: "",
|
|
1296
|
-
onClick:
|
|
1300
|
+
onClick: R[0] || (R[0] = (S) => g(1)),
|
|
1297
1301
|
title: "PDF",
|
|
1298
1302
|
type: "primary",
|
|
1299
1303
|
class: "custom-btn"
|
|
1300
1304
|
}, {
|
|
1301
|
-
default: u(() =>
|
|
1305
|
+
default: u(() => R[2] || (R[2] = [T("img", {
|
|
1302
1306
|
style: {
|
|
1303
1307
|
width: "25px",
|
|
1304
1308
|
height: "25px"
|
|
@@ -1309,7 +1313,7 @@ const Ee = /* @__PURE__ */ L({
|
|
|
1309
1313
|
_: 1
|
|
1310
1314
|
}), l(Y, {
|
|
1311
1315
|
link: "",
|
|
1312
|
-
onClick:
|
|
1316
|
+
onClick: R[1] || (R[1] = (S) => g(3)),
|
|
1313
1317
|
title: "WORD",
|
|
1314
1318
|
type: "primary",
|
|
1315
1319
|
class: "custom-btn",
|
|
@@ -1317,7 +1321,7 @@ const Ee = /* @__PURE__ */ L({
|
|
|
1317
1321
|
"margin-right": "5px"
|
|
1318
1322
|
}
|
|
1319
1323
|
}, {
|
|
1320
|
-
default: u(() =>
|
|
1324
|
+
default: u(() => R[3] || (R[3] = [T("img", {
|
|
1321
1325
|
style: {
|
|
1322
1326
|
width: "25px",
|
|
1323
1327
|
height: "25px"
|
|
@@ -1328,137 +1332,137 @@ const Ee = /* @__PURE__ */ L({
|
|
|
1328
1332
|
_: 1
|
|
1329
1333
|
}), l(Y, {
|
|
1330
1334
|
plain: "",
|
|
1331
|
-
onClick:
|
|
1335
|
+
onClick: b,
|
|
1332
1336
|
type: "primary",
|
|
1333
1337
|
class: "custom-btn exit-preview",
|
|
1334
1338
|
style: {
|
|
1335
1339
|
"margin-left": "auto"
|
|
1336
1340
|
}
|
|
1337
1341
|
}, {
|
|
1338
|
-
default: u(() =>
|
|
1342
|
+
default: u(() => R[4] || (R[4] = [U("退出预览")])),
|
|
1339
1343
|
_: 1
|
|
1340
|
-
})])]), (m(!0), C(
|
|
1341
|
-
key:
|
|
1342
|
-
class: X(["editor-content", ["editor" +
|
|
1343
|
-
id:
|
|
1344
|
-
}, [
|
|
1344
|
+
})])]), (m(!0), C(P, null, I(d.value, (S) => (m(), C("div", {
|
|
1345
|
+
key: S.id,
|
|
1346
|
+
class: X(["editor-content", ["editor" + S.type]]),
|
|
1347
|
+
id: S.id
|
|
1348
|
+
}, [S.type !== "p" ? (m(), L($(H(S.type)), {
|
|
1345
1349
|
key: 0,
|
|
1346
|
-
class: X(["editor" +
|
|
1347
|
-
value:
|
|
1350
|
+
class: X(["editor" + S.type]),
|
|
1351
|
+
value: S
|
|
1348
1352
|
}, {
|
|
1349
|
-
default: u(() => [
|
|
1353
|
+
default: u(() => [U(M(S.data), 1)]),
|
|
1350
1354
|
_: 2
|
|
1351
1355
|
}, 1032, ["class", "value"])) : (m(), C("p", {
|
|
1352
1356
|
key: 1,
|
|
1353
|
-
innerHTML:
|
|
1357
|
+
innerHTML: S.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__ */ E({
|
|
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
|
-
ReportChart:
|
|
1376
|
-
ReportDescribe:
|
|
1379
|
+
ReportChart: Ee,
|
|
1380
|
+
ReportDescribe: Ue
|
|
1377
1381
|
}, {
|
|
1378
1382
|
componentList: e,
|
|
1379
1383
|
activeComponents: a,
|
|
1380
1384
|
notDraggableList: r,
|
|
1381
1385
|
titleComponent: n
|
|
1382
|
-
} = Ye(q()), A = q(), d = (
|
|
1383
|
-
e.value.forEach((
|
|
1384
|
-
|
|
1386
|
+
} = Ye(q()), A = q(), d = (g) => {
|
|
1387
|
+
e.value.forEach((x, _) => {
|
|
1388
|
+
x.id === g && (e.value.splice(_, 1), A.activeComponents = []);
|
|
1385
1389
|
});
|
|
1386
|
-
}, i = (
|
|
1387
|
-
A.setActiveComponents(
|
|
1388
|
-
},
|
|
1389
|
-
console.log(
|
|
1390
|
-
},
|
|
1391
|
-
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1394
|
-
},
|
|
1395
|
-
return (
|
|
1396
|
-
const
|
|
1397
|
-
return m(), C("div", Wt, [
|
|
1390
|
+
}, i = (g) => {
|
|
1391
|
+
A.setActiveComponents(g);
|
|
1392
|
+
}, f = () => l("div", null, [U("未找到对应组件")]), p = (g) => g === "h2" || g === "h3" || g === "h4" ? N(t, "ReportText") : g === "bar" || g === "pie" || g === "line" ? N(t, "ReportChart") : g ? N(t, g) : l(f, null, null), c = (g) => {
|
|
1393
|
+
console.log(g, "evt");
|
|
1394
|
+
}, w = D(!1), v = () => {
|
|
1395
|
+
w.value = !0;
|
|
1396
|
+
}, V = (g) => {
|
|
1397
|
+
g.newIndex !== 0 && (console.log(g), w.value = !1);
|
|
1398
|
+
}, b = D();
|
|
1399
|
+
return (g, x) => {
|
|
1400
|
+
const _ = s("CircleClose"), h = s("el-icon");
|
|
1401
|
+
return m(), C("div", Wt, [T("div", {
|
|
1398
1402
|
class: X(["editor-content edit flex flex-start", [{
|
|
1399
|
-
active:
|
|
1403
|
+
active: y(a).id === "filter"
|
|
1400
1404
|
}]]),
|
|
1401
|
-
onClick:
|
|
1405
|
+
onClick: x[0] || (x[0] = (k) => i({
|
|
1402
1406
|
id: "filter",
|
|
1403
1407
|
type: "filter"
|
|
1404
1408
|
}))
|
|
1405
|
-
}, [(m(!0), C(
|
|
1409
|
+
}, [(m(!0), C(P, null, I(y(r), (k) => (m(), C("div", {
|
|
1406
1410
|
class: "item-input",
|
|
1407
1411
|
key: k.id
|
|
1408
|
-
}, [k.type === "report-select" || k.type === "range-time" &&
|
|
1412
|
+
}, [k.type === "report-select" || k.type === "range-time" && y(A).filterForm.range_time ? (m(), L($(y(N)(t, k.type)), {
|
|
1409
1413
|
key: 0,
|
|
1410
1414
|
value: k
|
|
1411
1415
|
}, {
|
|
1412
|
-
default: u(() => [
|
|
1416
|
+
default: u(() => [U(M(k.data), 1)]),
|
|
1413
1417
|
_: 2
|
|
1414
|
-
}, 1032, ["value"])) :
|
|
1415
|
-
value:
|
|
1416
|
-
onClick:
|
|
1417
|
-
}, null, 8, ["value"])]), l(
|
|
1418
|
+
}, 1032, ["value"])) : O("", !0)]))), 128))], 2), T("div", $t, [l(re, {
|
|
1419
|
+
value: y(n),
|
|
1420
|
+
onClick: x[1] || (x[1] = (k) => i(y(n)))
|
|
1421
|
+
}, null, 8, ["value"])]), l(y(Je), {
|
|
1418
1422
|
ref_key: "el",
|
|
1419
|
-
ref:
|
|
1420
|
-
modelValue:
|
|
1421
|
-
"onUpdate:modelValue":
|
|
1423
|
+
ref: b,
|
|
1424
|
+
modelValue: y(e),
|
|
1425
|
+
"onUpdate:modelValue": x[2] || (x[2] = (k) => Ie(e) ? e.value = k : null),
|
|
1422
1426
|
"on-change": c,
|
|
1423
1427
|
animation: 150,
|
|
1424
|
-
onStart:
|
|
1425
|
-
onEnd:
|
|
1428
|
+
onStart: v,
|
|
1429
|
+
onEnd: V
|
|
1426
1430
|
}, {
|
|
1427
|
-
default: u(() => [(m(!0), C(
|
|
1431
|
+
default: u(() => [(m(!0), C(P, null, I(y(e), (k) => (m(), C("div", {
|
|
1428
1432
|
key: k.id,
|
|
1429
1433
|
class: X(["editor-content edit", ["editor" + k.type, {
|
|
1430
|
-
active: k.id ===
|
|
1434
|
+
active: k.id === y(a).id
|
|
1431
1435
|
}]]),
|
|
1432
|
-
onClick: (
|
|
1433
|
-
}, [
|
|
1434
|
-
onClick:
|
|
1436
|
+
onClick: (H) => i(k)
|
|
1437
|
+
}, [T("i", {
|
|
1438
|
+
onClick: Fe((H) => d(k.id), ["stop"]),
|
|
1435
1439
|
style: {
|
|
1436
1440
|
"z-index": "99"
|
|
1437
1441
|
}
|
|
1438
|
-
}, [l(
|
|
1442
|
+
}, [l(h, {
|
|
1439
1443
|
size: "16px",
|
|
1440
1444
|
color: "red"
|
|
1441
1445
|
}, {
|
|
1442
|
-
default: u(() => [l(
|
|
1446
|
+
default: u(() => [l(_)]),
|
|
1443
1447
|
_: 1
|
|
1444
|
-
})], 8, to), k.type !== "p" ? (m(),
|
|
1448
|
+
})], 8, to), k.type !== "p" ? (m(), L($(p(k.type)), {
|
|
1445
1449
|
key: 0,
|
|
1446
1450
|
class: X(["editor" + k.type]),
|
|
1447
1451
|
value: k,
|
|
1448
|
-
draggable:
|
|
1452
|
+
draggable: w.value
|
|
1449
1453
|
}, {
|
|
1450
|
-
default: u(() => [
|
|
1454
|
+
default: u(() => [U(M(k.data), 1)]),
|
|
1451
1455
|
_: 2
|
|
1452
1456
|
}, 1032, ["class", "value", "draggable"])) : (m(), C("p", {
|
|
1453
1457
|
key: 1,
|
|
1454
1458
|
innerHTML: k.data,
|
|
1455
|
-
draggable:
|
|
1459
|
+
draggable: w.value
|
|
1456
1460
|
}, null, 8, oo))], 10, eo))), 128))]),
|
|
1457
1461
|
_: 1
|
|
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__ */ E({
|
|
1462
1466
|
__name: "SettingTable",
|
|
1463
1467
|
setup(o) {
|
|
1464
1468
|
const t = q(), e = K(() => t.getActiveComponents);
|
|
@@ -1467,11 +1471,11 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1467
1471
|
return m(), C("div", null, [
|
|
1468
1472
|
l(A, { label: "控制列" }, {
|
|
1469
1473
|
default: u(() => [
|
|
1470
|
-
(m(!0), C(
|
|
1474
|
+
(m(!0), C(P, null, I(e.value.showColumn, (i, f) => (m(), C("p", {
|
|
1471
1475
|
class: "flex item-switch",
|
|
1472
|
-
key:
|
|
1476
|
+
key: f
|
|
1473
1477
|
}, [
|
|
1474
|
-
|
|
1478
|
+
T("span", no, M(i.name), 1),
|
|
1475
1479
|
l(n, {
|
|
1476
1480
|
modelValue: e.value.options.showColumn[i.key],
|
|
1477
1481
|
"onUpdate:modelValue": (p) => e.value.options.showColumn[i.key] = p
|
|
@@ -1483,22 +1487,22 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1483
1487
|
l(d),
|
|
1484
1488
|
l(A, { label: "表格样式" }, {
|
|
1485
1489
|
default: u(() => [
|
|
1486
|
-
|
|
1487
|
-
r[3] || (r[3] =
|
|
1490
|
+
T("p", ao, [
|
|
1491
|
+
r[3] || (r[3] = T("span", { class: "label" }, "斑马纹", -1)),
|
|
1488
1492
|
l(n, {
|
|
1489
1493
|
modelValue: e.value.options.stripe,
|
|
1490
1494
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
|
|
1491
1495
|
}, null, 8, ["modelValue"])
|
|
1492
1496
|
]),
|
|
1493
|
-
|
|
1494
|
-
r[4] || (r[4] =
|
|
1497
|
+
T("p", ro, [
|
|
1498
|
+
r[4] || (r[4] = T("span", { class: "label" }, "边框", -1)),
|
|
1495
1499
|
l(n, {
|
|
1496
1500
|
modelValue: e.value.options.border,
|
|
1497
1501
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
|
|
1498
1502
|
}, null, 8, ["modelValue"])
|
|
1499
1503
|
]),
|
|
1500
|
-
|
|
1501
|
-
r[5] || (r[5] =
|
|
1504
|
+
T("p", Ao, [
|
|
1505
|
+
r[5] || (r[5] = T("span", { class: "label" }, "表头", -1)),
|
|
1502
1506
|
l(n, {
|
|
1503
1507
|
modelValue: e.value.options.showHeader,
|
|
1504
1508
|
"onUpdate:modelValue": r[2] || (r[2] = (i) => e.value.options.showHeader = i)
|
|
@@ -1510,85 +1514,85 @@ 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__ */ E({
|
|
1514
1518
|
__name: "ChartsUniConfig",
|
|
1515
1519
|
setup(o) {
|
|
1516
1520
|
const t = q(), e = K(() => t.activeComponents);
|
|
1517
1521
|
function a(r) {
|
|
1518
1522
|
r ? (e.value.options.series[0].radius = ["10%", "65%"], e.value.options.graphic[0].invisible = !0, e.value.options.graphic[1].invisible = !0) : (e.value.options.series[0].radius = ["45%", "70%"], e.value.options.graphic[0].invisible = !1, e.value.options.graphic[1].invisible = !1);
|
|
1519
1523
|
}
|
|
1520
|
-
return
|
|
1521
|
-
const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"),
|
|
1524
|
+
return D("rgb(46, 145, 255)"), (r, n) => {
|
|
1525
|
+
const A = s("el-input"), d = s("el-form-item"), i = s("el-switch"), f = s("el-col"), p = s("el-color-picker"), c = s("el-input-number"), w = s("el-row"), v = s("el-collapse-item"), V = s("el-collapse");
|
|
1522
1526
|
return e.value.options.title ? (m(), C("div", so, [
|
|
1523
1527
|
l(d, { label: "标题" }, {
|
|
1524
1528
|
default: u(() => [
|
|
1525
1529
|
l(A, {
|
|
1526
1530
|
modelValue: e.value.options.title.text,
|
|
1527
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1531
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e.value.options.title.text = b)
|
|
1528
1532
|
}, null, 8, ["modelValue"])
|
|
1529
1533
|
]),
|
|
1530
1534
|
_: 1
|
|
1531
1535
|
}),
|
|
1532
|
-
l(
|
|
1536
|
+
l(V, null, {
|
|
1533
1537
|
default: u(() => [
|
|
1534
|
-
l(
|
|
1538
|
+
l(v, {
|
|
1535
1539
|
title: "标题配置",
|
|
1536
1540
|
name: "1"
|
|
1537
1541
|
}, {
|
|
1538
1542
|
default: u(() => [
|
|
1539
|
-
l(
|
|
1543
|
+
l(w, { class: "w-100%" }, {
|
|
1540
1544
|
default: u(() => [
|
|
1541
|
-
l(
|
|
1545
|
+
l(f, { span: 24 }, {
|
|
1542
1546
|
default: u(() => [
|
|
1543
|
-
n[8] || (n[8] =
|
|
1547
|
+
n[8] || (n[8] = T("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1544
1548
|
l(i, {
|
|
1545
1549
|
modelValue: e.value.options.title.show,
|
|
1546
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1550
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => e.value.options.title.show = b)
|
|
1547
1551
|
}, null, 8, ["modelValue"])
|
|
1548
1552
|
]),
|
|
1549
1553
|
_: 1
|
|
1550
1554
|
}),
|
|
1551
|
-
l(
|
|
1555
|
+
l(f, { span: 12 }, {
|
|
1552
1556
|
default: u(() => [
|
|
1553
1557
|
l(p, {
|
|
1554
1558
|
modelValue: e.value.options.title.textStyle.color,
|
|
1555
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1559
|
+
"onUpdate:modelValue": n[2] || (n[2] = (b) => e.value.options.title.textStyle.color = b),
|
|
1556
1560
|
"show-alpha": ""
|
|
1557
1561
|
}, null, 8, ["modelValue"]),
|
|
1558
|
-
n[9] || (n[9] =
|
|
1562
|
+
n[9] || (n[9] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
1559
1563
|
]),
|
|
1560
1564
|
_: 1
|
|
1561
1565
|
}),
|
|
1562
|
-
l(
|
|
1566
|
+
l(f, { span: 12 }, {
|
|
1563
1567
|
default: u(() => [
|
|
1564
1568
|
l(c, {
|
|
1565
1569
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1566
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
1570
|
+
"onUpdate:modelValue": n[3] || (n[3] = (b) => e.value.options.title.textStyle.fontSize = b),
|
|
1567
1571
|
"controls-position": "right"
|
|
1568
1572
|
}, null, 8, ["modelValue"]),
|
|
1569
|
-
n[10] || (n[10] =
|
|
1573
|
+
n[10] || (n[10] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
1570
1574
|
]),
|
|
1571
1575
|
_: 1
|
|
1572
1576
|
}),
|
|
1573
|
-
l(
|
|
1577
|
+
l(f, { span: 12 }, {
|
|
1574
1578
|
default: u(() => [
|
|
1575
1579
|
l(c, {
|
|
1576
1580
|
modelValue: e.value.options.title.x,
|
|
1577
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
1581
|
+
"onUpdate:modelValue": n[4] || (n[4] = (b) => e.value.options.title.x = b),
|
|
1578
1582
|
"controls-position": "right"
|
|
1579
1583
|
}, null, 8, ["modelValue"]),
|
|
1580
|
-
n[11] || (n[11] =
|
|
1584
|
+
n[11] || (n[11] = T("p", { class: "sub-title" }, "横向", -1))
|
|
1581
1585
|
]),
|
|
1582
1586
|
_: 1
|
|
1583
1587
|
}),
|
|
1584
|
-
l(
|
|
1588
|
+
l(f, { span: 12 }, {
|
|
1585
1589
|
default: u(() => [
|
|
1586
1590
|
l(c, {
|
|
1587
1591
|
modelValue: e.value.options.title.y,
|
|
1588
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
1592
|
+
"onUpdate:modelValue": n[5] || (n[5] = (b) => e.value.options.title.y = b),
|
|
1589
1593
|
"controls-position": "right"
|
|
1590
1594
|
}, null, 8, ["modelValue"]),
|
|
1591
|
-
n[12] || (n[12] =
|
|
1595
|
+
n[12] || (n[12] = T("p", { class: "sub-title" }, "纵向", -1))
|
|
1592
1596
|
]),
|
|
1593
1597
|
_: 1
|
|
1594
1598
|
})
|
|
@@ -1598,45 +1602,45 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1598
1602
|
]),
|
|
1599
1603
|
_: 1
|
|
1600
1604
|
}),
|
|
1601
|
-
l(
|
|
1605
|
+
l(v, {
|
|
1602
1606
|
title: "图形配置",
|
|
1603
1607
|
name: "2"
|
|
1604
1608
|
}, {
|
|
1605
1609
|
default: u(() => [
|
|
1606
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(),
|
|
1610
|
+
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (m(), L(w, { key: 0 }, {
|
|
1607
1611
|
default: u(() => [
|
|
1608
|
-
l(
|
|
1612
|
+
l(f, { span: 24 }, {
|
|
1609
1613
|
default: u(() => [
|
|
1610
|
-
n[13] || (n[13] =
|
|
1614
|
+
n[13] || (n[13] = T("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
1611
1615
|
l(i, {
|
|
1612
1616
|
onChange: a,
|
|
1613
1617
|
modelValue: e.value.options.series[0].roseType,
|
|
1614
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
1618
|
+
"onUpdate:modelValue": n[6] || (n[6] = (b) => e.value.options.series[0].roseType = b)
|
|
1615
1619
|
}, null, 8, ["modelValue"])
|
|
1616
1620
|
]),
|
|
1617
1621
|
_: 1
|
|
1618
1622
|
})
|
|
1619
1623
|
]),
|
|
1620
1624
|
_: 1
|
|
1621
|
-
})) :
|
|
1625
|
+
})) : O("", !0)
|
|
1622
1626
|
]),
|
|
1623
1627
|
_: 1
|
|
1624
1628
|
}),
|
|
1625
|
-
l(
|
|
1629
|
+
l(v, {
|
|
1626
1630
|
title: "图例配置",
|
|
1627
1631
|
name: "3"
|
|
1628
1632
|
}, {
|
|
1629
1633
|
default: u(() => [
|
|
1630
|
-
l(
|
|
1634
|
+
l(w, null, {
|
|
1631
1635
|
default: u(() => [
|
|
1632
|
-
l(
|
|
1636
|
+
l(f, { span: 24 }, {
|
|
1633
1637
|
default: u(() => [
|
|
1634
|
-
n[14] || (n[14] =
|
|
1635
|
-
e.value.options.legend ? (m(),
|
|
1638
|
+
n[14] || (n[14] = T("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1639
|
+
e.value.options.legend ? (m(), L(i, {
|
|
1636
1640
|
key: 0,
|
|
1637
1641
|
modelValue: e.value.options.legend.show,
|
|
1638
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
1639
|
-
}, null, 8, ["modelValue"])) :
|
|
1642
|
+
"onUpdate:modelValue": n[7] || (n[7] = (b) => e.value.options.legend.show = b)
|
|
1643
|
+
}, null, 8, ["modelValue"])) : O("", !0)
|
|
1640
1644
|
]),
|
|
1641
1645
|
_: 1
|
|
1642
1646
|
})
|
|
@@ -1649,16 +1653,16 @@ const Ue = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-ef6fdadc"]]), Wt = {
|
|
|
1649
1653
|
]),
|
|
1650
1654
|
_: 1
|
|
1651
1655
|
})
|
|
1652
|
-
])) :
|
|
1656
|
+
])) : O("", !0);
|
|
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__ */ E({
|
|
1657
1661
|
__name: "SettingDescribe",
|
|
1658
1662
|
setup(o) {
|
|
1659
1663
|
const t = q(), e = K(() => t.getActiveComponents);
|
|
1660
1664
|
return (a, r) => {
|
|
1661
|
-
const n = s("el-input"), A = s("el-form-item"), d = s("el-switch"), i = s("el-input-number"),
|
|
1665
|
+
const n = s("el-input"), A = s("el-form-item"), d = s("el-switch"), i = s("el-input-number"), f = s("el-radio"), p = s("el-radio-group");
|
|
1662
1666
|
return m(), C("div", null, [
|
|
1663
1667
|
l(A, { label: "标题" }, {
|
|
1664
1668
|
default: u(() => [
|
|
@@ -1697,15 +1701,15 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1697
1701
|
"onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
|
|
1698
1702
|
}, {
|
|
1699
1703
|
default: u(() => [
|
|
1700
|
-
l(
|
|
1704
|
+
l(f, { value: "horizontal" }, {
|
|
1701
1705
|
default: u(() => r[4] || (r[4] = [
|
|
1702
|
-
|
|
1706
|
+
U("横向")
|
|
1703
1707
|
])),
|
|
1704
1708
|
_: 1
|
|
1705
1709
|
}),
|
|
1706
|
-
l(
|
|
1710
|
+
l(f, { value: "vertical" }, {
|
|
1707
1711
|
default: u(() => r[5] || (r[5] = [
|
|
1708
|
-
|
|
1712
|
+
U("纵向")
|
|
1709
1713
|
])),
|
|
1710
1714
|
_: 1
|
|
1711
1715
|
})
|
|
@@ -1718,51 +1722,51 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1718
1722
|
]);
|
|
1719
1723
|
};
|
|
1720
1724
|
}
|
|
1721
|
-
}), po = /* @__PURE__ */
|
|
1725
|
+
}), po = /* @__PURE__ */ E({
|
|
1722
1726
|
__name: "SettingCharts",
|
|
1723
1727
|
setup(o) {
|
|
1724
|
-
const t = q(), e =
|
|
1728
|
+
const t = q(), e = D(!1), a = K(() => t.getActiveComponents), r = [
|
|
1725
1729
|
{ value: "report-describe", name: "描述列表" },
|
|
1726
1730
|
{ value: "report-table", name: "表格" },
|
|
1727
1731
|
{ value: "line", name: "趋势图" },
|
|
1728
1732
|
{ value: "pie", name: "扇形图" },
|
|
1729
1733
|
{ value: "bar", name: "柱状图" }
|
|
1730
|
-
], n =
|
|
1734
|
+
], n = D(""), A = D();
|
|
1731
1735
|
async function d(p) {
|
|
1732
|
-
const c = window.windowGlobalVar.SYSTEM_NORMAL,
|
|
1736
|
+
const c = window.windowGlobalVar.SYSTEM_NORMAL, w = await Ce({
|
|
1733
1737
|
prod_type: window.$prodType,
|
|
1734
1738
|
chart_type: p,
|
|
1735
1739
|
filter_uuid: t.filterForm.filter_uuid,
|
|
1736
1740
|
cg_linkage: c ? 1 : c ? void 0 : 0
|
|
1737
1741
|
});
|
|
1738
|
-
A.value =
|
|
1742
|
+
A.value = w.data;
|
|
1739
1743
|
}
|
|
1740
1744
|
function i(p) {
|
|
1741
|
-
let c = A.value.find((
|
|
1742
|
-
const
|
|
1743
|
-
if (c.rp_item_content.type === "bar" && (
|
|
1744
|
-
let
|
|
1745
|
-
|
|
1746
|
-
|
|
1745
|
+
let c = A.value.find((v) => v.rp_item_uuid === p);
|
|
1746
|
+
const w = c.rp_item_content;
|
|
1747
|
+
if (c.rp_item_content.type === "bar" && (w.options = oe()), w.type === "pie" && (w.options = ue({ isLegend: !0 })), w.type === "line") {
|
|
1748
|
+
let v = [];
|
|
1749
|
+
w.data.forEach((b) => {
|
|
1750
|
+
v = b.data.map((g, x) => ({ name: g.name, value: "value" + x }));
|
|
1747
1751
|
});
|
|
1748
|
-
const
|
|
1752
|
+
const V = {
|
|
1749
1753
|
name: "name",
|
|
1750
|
-
value:
|
|
1754
|
+
value: v
|
|
1751
1755
|
};
|
|
1752
|
-
|
|
1756
|
+
w.options = te([], V);
|
|
1753
1757
|
}
|
|
1754
|
-
if (
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
}),
|
|
1758
|
+
if (w.type === "report-table") {
|
|
1759
|
+
const v = {};
|
|
1760
|
+
w.showColumn.forEach((V) => {
|
|
1761
|
+
v[V.key] = !0;
|
|
1762
|
+
}), w.options = { ...w.options, showColumn: v, border: !0, showHeader: !0, stripe: !1 };
|
|
1759
1763
|
}
|
|
1760
|
-
|
|
1764
|
+
w.type === "report-describe" && (w.options = { ...w.options, title: "", border: !0, column: 1, direction: "horizontal", ...a.value.options }), Object.assign(t.activeComponents, w), t.activeComponents.rp_item_uuid = c.rp_item_uuid;
|
|
1761
1765
|
}
|
|
1762
1766
|
se(async () => {
|
|
1763
1767
|
n.value = a.value.type, await d(n.value);
|
|
1764
1768
|
});
|
|
1765
|
-
async function
|
|
1769
|
+
async function f(p) {
|
|
1766
1770
|
try {
|
|
1767
1771
|
e.value = !0, await d(p);
|
|
1768
1772
|
} catch (c) {
|
|
@@ -1771,29 +1775,29 @@ 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
|
|
1784
|
+
const w = s("el-option"), v = s("el-select"), V = s("el-form-item"), b = s("el-form"), g = we("loading");
|
|
1781
1785
|
return Ae((m(), C("div", null, [
|
|
1782
|
-
l(
|
|
1786
|
+
l(b, { "label-position": "top" }, {
|
|
1783
1787
|
default: u(() => [
|
|
1784
|
-
l(
|
|
1788
|
+
l(V, { label: "图表类型" }, {
|
|
1785
1789
|
default: u(() => [
|
|
1786
|
-
l(
|
|
1790
|
+
l(v, {
|
|
1787
1791
|
style: { width: "100%" },
|
|
1788
1792
|
modelValue: n.value,
|
|
1789
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1790
|
-
onChange:
|
|
1793
|
+
"onUpdate:modelValue": c[0] || (c[0] = (x) => n.value = x),
|
|
1794
|
+
onChange: f
|
|
1791
1795
|
}, {
|
|
1792
1796
|
default: u(() => [
|
|
1793
|
-
(m(), C(
|
|
1794
|
-
key:
|
|
1795
|
-
label:
|
|
1796
|
-
value:
|
|
1797
|
+
(m(), C(P, null, I(r, (x, _) => l(w, {
|
|
1798
|
+
key: _,
|
|
1799
|
+
label: x.name,
|
|
1800
|
+
value: x.value
|
|
1797
1801
|
}, null, 8, ["label", "value"])), 64))
|
|
1798
1802
|
]),
|
|
1799
1803
|
_: 1
|
|
@@ -1801,19 +1805,19 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1801
1805
|
]),
|
|
1802
1806
|
_: 1
|
|
1803
1807
|
}),
|
|
1804
|
-
l(
|
|
1808
|
+
l(V, { label: "组件库" }, {
|
|
1805
1809
|
default: u(() => [
|
|
1806
|
-
l(
|
|
1810
|
+
l(v, {
|
|
1807
1811
|
style: { width: "100%" },
|
|
1808
|
-
modelValue:
|
|
1809
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
1812
|
+
modelValue: y(t).activeComponents.rp_item_uuid,
|
|
1813
|
+
"onUpdate:modelValue": c[1] || (c[1] = (x) => y(t).activeComponents.rp_item_uuid = x),
|
|
1810
1814
|
onChange: i
|
|
1811
1815
|
}, {
|
|
1812
1816
|
default: u(() => [
|
|
1813
|
-
(m(!0), C(
|
|
1814
|
-
key:
|
|
1815
|
-
label:
|
|
1816
|
-
value:
|
|
1817
|
+
(m(!0), C(P, null, I(A.value, (x, _) => (m(), L(w, {
|
|
1818
|
+
key: _,
|
|
1819
|
+
label: x.rp_item_name,
|
|
1820
|
+
value: x.rp_item_uuid
|
|
1817
1821
|
}, null, 8, ["label", "value"]))), 128))
|
|
1818
1822
|
]),
|
|
1819
1823
|
_: 1
|
|
@@ -1821,27 +1825,27 @@ 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(),
|
|
1825
|
-
n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(),
|
|
1826
|
-
n.value === "report-describe" ? (m(),
|
|
1828
|
+
n.value === "report-table" && a.value.options.showColumn ? (m(), L(Se, { key: 0 })) : O("", !0),
|
|
1829
|
+
n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), L(uo, { key: 1 })) : O("", !0),
|
|
1830
|
+
n.value === "report-describe" ? (m(), L(Oe, { key: 2 })) : O("", !0)
|
|
1827
1831
|
]),
|
|
1828
1832
|
_: 1
|
|
1829
1833
|
})
|
|
1830
1834
|
])), [
|
|
1831
|
-
[
|
|
1835
|
+
[g, e.value]
|
|
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__ */ E({
|
|
1836
1840
|
__name: "SettingText",
|
|
1837
1841
|
setup(o) {
|
|
1838
|
-
const t = q(), e = Me(), a =
|
|
1842
|
+
const t = q(), e = Me(), a = D();
|
|
1839
1843
|
function r(p) {
|
|
1840
|
-
const c = a.value.find((
|
|
1844
|
+
const c = a.value.find((w) => w.rp_item_uuid === p);
|
|
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.SYSTEM_NORMAL, c = await
|
|
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,
|
|
@@ -1874,29 +1878,29 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1874
1878
|
]
|
|
1875
1879
|
}, d = { placeholder: "请输入内容..." }, i = (p) => {
|
|
1876
1880
|
e.value = p;
|
|
1877
|
-
},
|
|
1881
|
+
}, f = (p) => {
|
|
1878
1882
|
};
|
|
1879
1883
|
return Ke(() => {
|
|
1880
1884
|
const p = e.value;
|
|
1881
1885
|
p != null && p.destroy();
|
|
1882
1886
|
}), (p, c) => {
|
|
1883
|
-
const
|
|
1884
|
-
return
|
|
1885
|
-
l(
|
|
1887
|
+
const w = s("el-option"), v = s("el-select"), V = s("el-form-item"), b = s("el-form");
|
|
1888
|
+
return y(t).activeComponents.id ? (m(), C("div", co, [
|
|
1889
|
+
l(b, { "label-position": "top" }, {
|
|
1886
1890
|
default: u(() => [
|
|
1887
|
-
l(
|
|
1891
|
+
l(V, { label: "组件库" }, {
|
|
1888
1892
|
default: u(() => [
|
|
1889
|
-
l(
|
|
1893
|
+
l(v, {
|
|
1890
1894
|
style: { width: "100%" },
|
|
1891
|
-
modelValue:
|
|
1892
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1895
|
+
modelValue: y(t).activeComponents.rp_item_uuid,
|
|
1896
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => y(t).activeComponents.rp_item_uuid = g),
|
|
1893
1897
|
onChange: r
|
|
1894
1898
|
}, {
|
|
1895
1899
|
default: u(() => [
|
|
1896
|
-
(m(!0), C(
|
|
1897
|
-
key:
|
|
1898
|
-
label:
|
|
1899
|
-
value:
|
|
1900
|
+
(m(!0), C(P, null, I(a.value, (g, x) => (m(), L(w, {
|
|
1901
|
+
key: x,
|
|
1902
|
+
label: g.rp_item_name,
|
|
1903
|
+
value: g.rp_item_uuid
|
|
1900
1904
|
}, null, 8, ["label", "value"]))), 128))
|
|
1901
1905
|
]),
|
|
1902
1906
|
_: 1
|
|
@@ -1904,20 +1908,20 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1904
1908
|
]),
|
|
1905
1909
|
_: 1
|
|
1906
1910
|
}),
|
|
1907
|
-
l(
|
|
1911
|
+
l(V, { label: "文本内容" }, {
|
|
1908
1912
|
default: u(() => [
|
|
1909
|
-
|
|
1910
|
-
l(
|
|
1913
|
+
T("div", mo, [
|
|
1914
|
+
l(y(je), {
|
|
1911
1915
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1912
1916
|
editor: e.value,
|
|
1913
1917
|
"default-config": A,
|
|
1914
1918
|
mode: ce
|
|
1915
1919
|
}, null, 8, ["editor"]),
|
|
1916
|
-
l(
|
|
1920
|
+
l(y(Ze), {
|
|
1917
1921
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1918
|
-
onOnChange:
|
|
1919
|
-
modelValue:
|
|
1920
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
1922
|
+
onOnChange: f,
|
|
1923
|
+
modelValue: y(t).activeComponents.data,
|
|
1924
|
+
"onUpdate:modelValue": c[1] || (c[1] = (g) => y(t).activeComponents.data = g),
|
|
1921
1925
|
"default-config": d,
|
|
1922
1926
|
mode: ce,
|
|
1923
1927
|
onOnCreated: i
|
|
@@ -1929,20 +1933,20 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1929
1933
|
]),
|
|
1930
1934
|
_: 1
|
|
1931
1935
|
})
|
|
1932
|
-
])) :
|
|
1936
|
+
])) : O("", !0);
|
|
1933
1937
|
};
|
|
1934
1938
|
}
|
|
1935
|
-
}), go = /* @__PURE__ */
|
|
1939
|
+
}), go = /* @__PURE__ */ E({
|
|
1936
1940
|
__name: "SettingFilter",
|
|
1937
1941
|
setup(o) {
|
|
1938
|
-
const t =
|
|
1942
|
+
const t = D([]), 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) => {
|
|
1944
|
-
const A = s("el-option"), d = s("el-select"), i = s("el-form-item"),
|
|
1945
|
-
return m(),
|
|
1948
|
+
const A = s("el-option"), d = s("el-select"), i = s("el-form-item"), f = s("el-checkbox"), p = s("el-form");
|
|
1949
|
+
return m(), L(p, {
|
|
1946
1950
|
"label-width": "80px",
|
|
1947
1951
|
"label-position": "top"
|
|
1948
1952
|
}, {
|
|
@@ -1950,12 +1954,12 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1950
1954
|
l(i, { label: "筛选条件" }, {
|
|
1951
1955
|
default: u(() => [
|
|
1952
1956
|
l(d, {
|
|
1953
|
-
modelValue:
|
|
1954
|
-
"onUpdate:modelValue": n[0] || (n[0] = (c) =>
|
|
1955
|
-
disabled: !!
|
|
1957
|
+
modelValue: y(e).filterForm.filter_uuid,
|
|
1958
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => y(e).filterForm.filter_uuid = c),
|
|
1959
|
+
disabled: !!y(e).filterForm.filter_uuid
|
|
1956
1960
|
}, {
|
|
1957
1961
|
default: u(() => [
|
|
1958
|
-
(m(!0), C(
|
|
1962
|
+
(m(!0), C(P, null, I(t.value, (c) => (m(), L(A, {
|
|
1959
1963
|
key: c.filter_uuid,
|
|
1960
1964
|
label: c.filter_name,
|
|
1961
1965
|
value: c.filter_uuid
|
|
@@ -1968,9 +1972,9 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1968
1972
|
}),
|
|
1969
1973
|
l(i, null, {
|
|
1970
1974
|
default: u(() => [
|
|
1971
|
-
l(
|
|
1972
|
-
modelValue:
|
|
1973
|
-
"onUpdate:modelValue": n[1] || (n[1] = (c) =>
|
|
1975
|
+
l(f, {
|
|
1976
|
+
modelValue: y(e).filterForm.range_time,
|
|
1977
|
+
"onUpdate:modelValue": n[1] || (n[1] = (c) => y(e).filterForm.range_time = c),
|
|
1974
1978
|
"true-value": 1,
|
|
1975
1979
|
"false-value": 0,
|
|
1976
1980
|
label: "时间范围"
|
|
@@ -1983,13 +1987,13 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1983
1987
|
});
|
|
1984
1988
|
};
|
|
1985
1989
|
}
|
|
1986
|
-
}), vo = /* @__PURE__ */
|
|
1990
|
+
}), vo = /* @__PURE__ */ E({
|
|
1987
1991
|
__name: "SettingTitle",
|
|
1988
1992
|
setup(o) {
|
|
1989
1993
|
const t = q();
|
|
1990
1994
|
return (e, a) => {
|
|
1991
|
-
const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), d = s("el-col"), i = s("el-input-number"),
|
|
1992
|
-
return m(),
|
|
1995
|
+
const r = s("el-input"), n = s("el-form-item"), A = s("el-color-picker"), d = s("el-col"), i = s("el-input-number"), f = s("el-option"), p = s("el-select"), c = s("el-row"), w = s("el-form");
|
|
1996
|
+
return m(), L(w, {
|
|
1993
1997
|
"label-width": "auto",
|
|
1994
1998
|
"label-position": "top"
|
|
1995
1999
|
}, {
|
|
@@ -1997,8 +2001,8 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
1997
2001
|
l(n, { label: "名称" }, {
|
|
1998
2002
|
default: u(() => [
|
|
1999
2003
|
l(r, {
|
|
2000
|
-
modelValue:
|
|
2001
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2004
|
+
modelValue: y(t).activeComponents.data,
|
|
2005
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => y(t).activeComponents.data = v),
|
|
2002
2006
|
placeholder: "Please input",
|
|
2003
2007
|
maxlength: "24",
|
|
2004
2008
|
"show-word-limit": ""
|
|
@@ -2013,92 +2017,92 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Se = /* @_
|
|
|
2013
2017
|
l(d, { span: 12 }, {
|
|
2014
2018
|
default: u(() => [
|
|
2015
2019
|
l(A, {
|
|
2016
|
-
modelValue:
|
|
2017
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2020
|
+
modelValue: y(t).activeComponents.options.color,
|
|
2021
|
+
"onUpdate:modelValue": a[1] || (a[1] = (v) => y(t).activeComponents.options.color = v),
|
|
2018
2022
|
"show-alpha": ""
|
|
2019
2023
|
}, null, 8, ["modelValue"]),
|
|
2020
|
-
a[7] || (a[7] =
|
|
2024
|
+
a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
2021
2025
|
]),
|
|
2022
2026
|
_: 1
|
|
2023
2027
|
}),
|
|
2024
2028
|
l(d, { span: 12 }, {
|
|
2025
2029
|
default: u(() => [
|
|
2026
2030
|
l(i, {
|
|
2027
|
-
modelValue:
|
|
2028
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
2031
|
+
modelValue: y(t).activeComponents.options.size,
|
|
2032
|
+
"onUpdate:modelValue": a[2] || (a[2] = (v) => y(t).activeComponents.options.size = v),
|
|
2029
2033
|
"controls-position": "right"
|
|
2030
2034
|
}, null, 8, ["modelValue"]),
|
|
2031
|
-
a[8] || (a[8] =
|
|
2035
|
+
a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
2032
2036
|
]),
|
|
2033
2037
|
_: 1
|
|
2034
2038
|
}),
|
|
2035
2039
|
l(d, { span: 12 }, {
|
|
2036
2040
|
default: u(() => [
|
|
2037
2041
|
l(p, {
|
|
2038
|
-
modelValue:
|
|
2039
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
2042
|
+
modelValue: y(t).activeComponents.options.fontWeight,
|
|
2043
|
+
"onUpdate:modelValue": a[3] || (a[3] = (v) => y(t).activeComponents.options.fontWeight = v)
|
|
2040
2044
|
}, {
|
|
2041
2045
|
default: u(() => [
|
|
2042
|
-
l(
|
|
2046
|
+
l(f, {
|
|
2043
2047
|
label: "常规",
|
|
2044
2048
|
value: 500
|
|
2045
2049
|
}),
|
|
2046
|
-
l(
|
|
2050
|
+
l(f, {
|
|
2047
2051
|
label: "加粗",
|
|
2048
2052
|
value: 600
|
|
2049
2053
|
})
|
|
2050
2054
|
]),
|
|
2051
2055
|
_: 1
|
|
2052
2056
|
}, 8, ["modelValue"]),
|
|
2053
|
-
a[9] || (a[9] =
|
|
2057
|
+
a[9] || (a[9] = T("p", { class: "sub-title" }, "字体粗细", -1))
|
|
2054
2058
|
]),
|
|
2055
2059
|
_: 1
|
|
2056
2060
|
}),
|
|
2057
2061
|
l(d, { span: 12 }, {
|
|
2058
2062
|
default: u(() => [
|
|
2059
2063
|
l(i, {
|
|
2060
|
-
modelValue:
|
|
2061
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
2064
|
+
modelValue: y(t).activeComponents.options.letterSpacing,
|
|
2065
|
+
"onUpdate:modelValue": a[4] || (a[4] = (v) => y(t).activeComponents.options.letterSpacing = v),
|
|
2062
2066
|
"controls-position": "right"
|
|
2063
2067
|
}, null, 8, ["modelValue"]),
|
|
2064
|
-
a[10] || (a[10] =
|
|
2068
|
+
a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
|
|
2065
2069
|
]),
|
|
2066
2070
|
_: 1
|
|
2067
2071
|
}),
|
|
2068
2072
|
l(d, { span: 12 }, {
|
|
2069
2073
|
default: u(() => [
|
|
2070
2074
|
l(i, {
|
|
2071
|
-
modelValue:
|
|
2072
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
2075
|
+
modelValue: y(t).activeComponents.options.textIndent,
|
|
2076
|
+
"onUpdate:modelValue": a[5] || (a[5] = (v) => y(t).activeComponents.options.textIndent = v),
|
|
2073
2077
|
"controls-position": "right"
|
|
2074
2078
|
}, null, 8, ["modelValue"]),
|
|
2075
|
-
a[11] || (a[11] =
|
|
2079
|
+
a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
|
|
2076
2080
|
]),
|
|
2077
2081
|
_: 1
|
|
2078
2082
|
}),
|
|
2079
2083
|
l(d, { span: 12 }, {
|
|
2080
2084
|
default: u(() => [
|
|
2081
2085
|
l(p, {
|
|
2082
|
-
modelValue:
|
|
2083
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
2086
|
+
modelValue: y(t).activeComponents.options.textAlign,
|
|
2087
|
+
"onUpdate:modelValue": a[6] || (a[6] = (v) => y(t).activeComponents.options.textAlign = v)
|
|
2084
2088
|
}, {
|
|
2085
2089
|
default: u(() => [
|
|
2086
|
-
l(
|
|
2090
|
+
l(f, {
|
|
2087
2091
|
label: "左对齐",
|
|
2088
2092
|
value: "left"
|
|
2089
2093
|
}),
|
|
2090
|
-
l(
|
|
2094
|
+
l(f, {
|
|
2091
2095
|
label: "居中对齐",
|
|
2092
2096
|
value: "center"
|
|
2093
2097
|
}),
|
|
2094
|
-
l(
|
|
2098
|
+
l(f, {
|
|
2095
2099
|
label: "右对齐",
|
|
2096
2100
|
value: "right"
|
|
2097
2101
|
})
|
|
2098
2102
|
]),
|
|
2099
2103
|
_: 1
|
|
2100
2104
|
}, 8, ["modelValue"]),
|
|
2101
|
-
a[12] || (a[12] =
|
|
2105
|
+
a[12] || (a[12] = T("p", { class: "sub-title" }, "位置", -1))
|
|
2102
2106
|
]),
|
|
2103
2107
|
_: 1
|
|
2104
2108
|
})
|
|
@@ -2114,28 +2118,28 @@ 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__ */ E({
|
|
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
|
|
2127
|
-
}, e = q(), a = K(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ?
|
|
2128
|
-
return (i,
|
|
2131
|
+
}, e = q(), a = K(() => e.activeComponents), r = ["h1", "h2", "h3", "h4"], n = ["p"], A = ["report-table", "bar", "line", "pie", "report-describe"], d = (i) => r.includes(i) ? N(t, "SettingTitle") : n.includes(i) ? N(t, "SettingText") : A.includes(i) ? N(t, "SettingCharts") : i === "filter" ? N(t, "SettingFilter") : "DefaultEditor";
|
|
2132
|
+
return (i, f) => {
|
|
2129
2133
|
const p = s("el-card");
|
|
2130
|
-
return m(),
|
|
2134
|
+
return m(), L(p, { class: "config-wrapper" }, {
|
|
2131
2135
|
default: u(() => [
|
|
2132
|
-
(m(),
|
|
2136
|
+
(m(), L($(d(a.value.type))))
|
|
2133
2137
|
]),
|
|
2134
2138
|
_: 1
|
|
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__ */ E({
|
|
2139
2143
|
__name: "index",
|
|
2140
2144
|
props: /* @__PURE__ */ ve({
|
|
2141
2145
|
reportId: {
|
|
@@ -2149,8 +2153,8 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2149
2153
|
emits: ["update:modelValue"],
|
|
2150
2154
|
setup(o) {
|
|
2151
2155
|
const t = q(), e = o, a = _e(o, "modelValue"), r = (i) => {
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2156
|
+
const f = ee(i);
|
|
2157
|
+
f.id = F(), t.componentList.push(f);
|
|
2154
2158
|
};
|
|
2155
2159
|
function n() {
|
|
2156
2160
|
a.value = "table";
|
|
@@ -2189,24 +2193,24 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2189
2193
|
}
|
|
2190
2194
|
return qe(() => {
|
|
2191
2195
|
t.clearComponents();
|
|
2192
|
-
}), (i,
|
|
2193
|
-
const p = s("el-button"), c = s("el-button-group"),
|
|
2196
|
+
}), (i, f) => {
|
|
2197
|
+
const p = s("el-button"), c = s("el-button-group"), w = s("el-card");
|
|
2194
2198
|
return m(), C("div", wo, [
|
|
2195
|
-
l(
|
|
2199
|
+
l(w, { class: "view-wrapper" }, {
|
|
2196
2200
|
default: u(() => [
|
|
2197
|
-
|
|
2198
|
-
|
|
2201
|
+
T("div", yo, [
|
|
2202
|
+
T("div", ho, [
|
|
2199
2203
|
l(c, null, {
|
|
2200
2204
|
default: u(() => [
|
|
2201
|
-
(m(!0), C(
|
|
2202
|
-
key:
|
|
2205
|
+
(m(!0), C(P, null, I(y(Et), (v) => (m(), C(P, {
|
|
2206
|
+
key: v.type
|
|
2203
2207
|
}, [
|
|
2204
|
-
|
|
2208
|
+
v != null && v.hide ? O("", !0) : (m(), L(p, {
|
|
2205
2209
|
key: 0,
|
|
2206
|
-
onClick: (
|
|
2210
|
+
onClick: (V) => r(v)
|
|
2207
2211
|
}, {
|
|
2208
2212
|
default: u(() => [
|
|
2209
|
-
|
|
2213
|
+
U(M(v.name), 1)
|
|
2210
2214
|
]),
|
|
2211
2215
|
_: 2
|
|
2212
2216
|
}, 1032, ["onClick"]))
|
|
@@ -2221,14 +2225,14 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2221
2225
|
type: "primary",
|
|
2222
2226
|
onClick: d
|
|
2223
2227
|
}, {
|
|
2224
|
-
default: u(() =>
|
|
2225
|
-
|
|
2228
|
+
default: u(() => f[0] || (f[0] = [
|
|
2229
|
+
U("保存")
|
|
2226
2230
|
])),
|
|
2227
2231
|
_: 1
|
|
2228
2232
|
}),
|
|
2229
2233
|
l(p, { onClick: n }, {
|
|
2230
|
-
default: u(() =>
|
|
2231
|
-
|
|
2234
|
+
default: u(() => f[1] || (f[1] = [
|
|
2235
|
+
U("退出")
|
|
2232
2236
|
])),
|
|
2233
2237
|
_: 1
|
|
2234
2238
|
})
|
|
@@ -2246,7 +2250,7 @@ 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__ */ E({
|
|
2250
2254
|
__name: "Report",
|
|
2251
2255
|
emits: ["click"],
|
|
2252
2256
|
setup(o, {
|
|
@@ -2255,21 +2259,21 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2255
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
|
-
})), r =
|
|
2259
|
-
n("click",
|
|
2260
|
-
}, d = (
|
|
2261
|
-
n("click",
|
|
2262
|
+
})), r = D(), n = t, A = (v) => {
|
|
2263
|
+
n("click", v.report_uuid, "review");
|
|
2264
|
+
}, d = (v) => {
|
|
2265
|
+
n("click", v.report_uuid, "editor");
|
|
2262
2266
|
}, i = () => {
|
|
2263
2267
|
n("click", "", "editor");
|
|
2264
|
-
},
|
|
2265
|
-
console.log(
|
|
2266
|
-
}, p = (
|
|
2268
|
+
}, f = (v) => {
|
|
2269
|
+
console.log(v);
|
|
2270
|
+
}, p = (v) => {
|
|
2267
2271
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2268
2272
|
await rt({
|
|
2269
|
-
report_uuids:
|
|
2273
|
+
report_uuids: v
|
|
2270
2274
|
}), r.value.getTableList();
|
|
2271
2275
|
});
|
|
2272
|
-
}, c = (
|
|
2276
|
+
}, c = (v) => v.report_type === 1, w = J([
|
|
2273
2277
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2274
2278
|
{
|
|
2275
2279
|
type: "selection",
|
|
@@ -2296,61 +2300,61 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2296
2300
|
name: "操作",
|
|
2297
2301
|
align: "center",
|
|
2298
2302
|
fixed: "right",
|
|
2299
|
-
render: (
|
|
2303
|
+
render: (v) => l("div", null, [l(s("el-button"), {
|
|
2300
2304
|
link: !0,
|
|
2301
2305
|
type: "primary",
|
|
2302
2306
|
class: "custom-btn",
|
|
2303
2307
|
icon: "View",
|
|
2304
2308
|
title: "预览",
|
|
2305
|
-
onClick: () => A(
|
|
2309
|
+
onClick: () => A(v.row)
|
|
2306
2310
|
}, null), l(s("el-button"), {
|
|
2307
2311
|
link: !0,
|
|
2308
2312
|
type: "primary",
|
|
2309
2313
|
class: "custom-btn",
|
|
2310
2314
|
icon: "Edit",
|
|
2311
2315
|
title: "编辑",
|
|
2312
|
-
disabled:
|
|
2313
|
-
onClick: () => d(
|
|
2316
|
+
disabled: v.row.report_type === 0,
|
|
2317
|
+
onClick: () => d(v.row)
|
|
2314
2318
|
}, null), l(s("el-button"), {
|
|
2315
2319
|
link: !0,
|
|
2316
2320
|
type: "danger",
|
|
2317
2321
|
icon: "Delete",
|
|
2318
2322
|
title: "删除",
|
|
2319
|
-
disabled:
|
|
2320
|
-
onClick: () => p([
|
|
2323
|
+
disabled: v.row.report_type === 0,
|
|
2324
|
+
onClick: () => p([v.row.report_uuid])
|
|
2321
2325
|
}, null)])
|
|
2322
2326
|
}
|
|
2323
2327
|
]);
|
|
2324
|
-
return (
|
|
2325
|
-
const
|
|
2326
|
-
return m(), C("div", xo, [l(
|
|
2328
|
+
return (v, V) => {
|
|
2329
|
+
const b = s("el-button"), g = s("TdsTable");
|
|
2330
|
+
return m(), C("div", xo, [l(g, {
|
|
2327
2331
|
ref_key: "proTable",
|
|
2328
2332
|
ref: r,
|
|
2329
|
-
columns:
|
|
2330
|
-
"request-api":
|
|
2333
|
+
columns: w,
|
|
2334
|
+
"request-api": y(at),
|
|
2331
2335
|
"init-param": a.value,
|
|
2332
2336
|
"row-key": "report_uuid",
|
|
2333
|
-
options:
|
|
2337
|
+
options: v.$tableOptions(),
|
|
2334
2338
|
"search-col": 6,
|
|
2335
2339
|
selectable: c,
|
|
2336
|
-
onSelectionChange:
|
|
2340
|
+
onSelectionChange: f
|
|
2337
2341
|
}, {
|
|
2338
|
-
tableHeader: u((
|
|
2342
|
+
tableHeader: u((x) => [l(b, {
|
|
2339
2343
|
plain: "",
|
|
2340
2344
|
type: "primary",
|
|
2341
2345
|
class: "custom-btn",
|
|
2342
2346
|
icon: "Plus",
|
|
2343
2347
|
onClick: i
|
|
2344
2348
|
}, {
|
|
2345
|
-
default: u(() =>
|
|
2349
|
+
default: u(() => V[0] || (V[0] = [U("新建")])),
|
|
2346
2350
|
_: 1
|
|
2347
|
-
}), l(
|
|
2351
|
+
}), l(b, {
|
|
2348
2352
|
plain: "",
|
|
2349
2353
|
type: "danger",
|
|
2350
2354
|
icon: "Delete",
|
|
2351
|
-
onClick: (
|
|
2355
|
+
onClick: (_) => p(x.selectedListIds)
|
|
2352
2356
|
}, {
|
|
2353
|
-
default: u(() =>
|
|
2357
|
+
default: u(() => V[1] || (V[1] = [U("删除")])),
|
|
2354
2358
|
_: 2
|
|
2355
2359
|
}, 1032, ["onClick"])]),
|
|
2356
2360
|
_: 1
|
|
@@ -2358,32 +2362,32 @@ 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__ */ E({
|
|
2362
2366
|
name: "TCReport",
|
|
2363
2367
|
__name: "index",
|
|
2364
2368
|
setup(o) {
|
|
2365
|
-
const t =
|
|
2369
|
+
const t = D(), e = D("table"), a = (r, n) => {
|
|
2366
2370
|
t.value = r, e.value = n;
|
|
2367
2371
|
};
|
|
2368
2372
|
return (r, n) => (m(), C("div", Bo, [
|
|
2369
2373
|
l(He, { name: "slide-fade" }, {
|
|
2370
2374
|
default: u(() => [
|
|
2371
|
-
e.value === "table" ? (m(),
|
|
2375
|
+
e.value === "table" ? (m(), L(To, {
|
|
2372
2376
|
key: 0,
|
|
2373
2377
|
onClick: a
|
|
2374
|
-
})) :
|
|
2375
|
-
e.value === "review" ? (m(),
|
|
2378
|
+
})) : O("", !0),
|
|
2379
|
+
e.value === "review" ? (m(), L(Re, {
|
|
2376
2380
|
key: 1,
|
|
2377
2381
|
"report-id": t.value,
|
|
2378
2382
|
modelValue: e.value,
|
|
2379
2383
|
"onUpdate:modelValue": n[0] || (n[0] = (A) => e.value = A)
|
|
2380
|
-
}, null, 8, ["report-id", "modelValue"])) :
|
|
2381
|
-
e.value === "editor" ? (m(),
|
|
2384
|
+
}, null, 8, ["report-id", "modelValue"])) : O("", !0),
|
|
2385
|
+
e.value === "editor" ? (m(), L(Co, {
|
|
2382
2386
|
key: 2,
|
|
2383
2387
|
"report-id": t.value,
|
|
2384
2388
|
modelValue: e.value,
|
|
2385
2389
|
"onUpdate:modelValue": n[1] || (n[1] = (A) => e.value = A)
|
|
2386
|
-
}, null, 8, ["report-id", "modelValue"])) :
|
|
2390
|
+
}, null, 8, ["report-id", "modelValue"])) : O("", !0)
|
|
2387
2391
|
]),
|
|
2388
2392
|
_: 1
|
|
2389
2393
|
})
|
|
@@ -2450,52 +2454,52 @@ const W = (o, t) => {
|
|
|
2450
2454
|
}
|
|
2451
2455
|
], Eo = {
|
|
2452
2456
|
class: "table-box"
|
|
2453
|
-
}, Uo = /* @__PURE__ */
|
|
2457
|
+
}, Uo = /* @__PURE__ */ E({
|
|
2454
2458
|
name: "TCModule",
|
|
2455
2459
|
__name: "index",
|
|
2456
2460
|
setup(o) {
|
|
2457
|
-
const t =
|
|
2461
|
+
const t = D(), e = D(), a = D({}), r = D(""), 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
|
});
|
|
2461
|
-
function d(
|
|
2465
|
+
function d(b) {
|
|
2462
2466
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2463
2467
|
await st({
|
|
2464
|
-
rp_item_uuids:
|
|
2468
|
+
rp_item_uuids: b
|
|
2465
2469
|
}), t.value.getTableList();
|
|
2466
2470
|
});
|
|
2467
2471
|
}
|
|
2468
|
-
function i(
|
|
2469
|
-
a.value =
|
|
2472
|
+
function i(b) {
|
|
2473
|
+
a.value = b ? Object.assign({}, b) : {
|
|
2470
2474
|
table_key_relation: [{
|
|
2471
2475
|
name: "",
|
|
2472
2476
|
key: "",
|
|
2473
2477
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2474
2478
|
}]
|
|
2475
|
-
}, r.value =
|
|
2479
|
+
}, r.value = b ? "编辑自定义组件" : "新增自定义组件", e.value.open();
|
|
2476
2480
|
}
|
|
2477
|
-
async function
|
|
2478
|
-
const
|
|
2479
|
-
|
|
2480
|
-
rp_item_uuid:
|
|
2481
|
-
data:
|
|
2482
|
-
}) : (
|
|
2483
|
-
data:
|
|
2481
|
+
async function f(b) {
|
|
2482
|
+
const g = Object.assign({}, b);
|
|
2483
|
+
g.chart_type !== "report-table" && g.chart_type !== "report-describe" && delete g.table_key_relation, g.chart_type !== "p" && (g.p_text = ""), g.rp_item_uuid ? await ut({
|
|
2484
|
+
rp_item_uuid: g.rp_item_uuid,
|
|
2485
|
+
data: g
|
|
2486
|
+
}) : (g.prod_type = window.$prodType, await it({
|
|
2487
|
+
data: g
|
|
2484
2488
|
})), t.value.getTableList(), e.value.close();
|
|
2485
2489
|
}
|
|
2486
|
-
const p = (
|
|
2487
|
-
a.value.table_key_relation.splice(
|
|
2490
|
+
const p = (b) => {
|
|
2491
|
+
a.value.table_key_relation.splice(b, 1);
|
|
2488
2492
|
}, c = () => {
|
|
2489
2493
|
a.value.table_key_relation.push({
|
|
2490
2494
|
name: "",
|
|
2491
2495
|
key: "",
|
|
2492
2496
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2493
2497
|
});
|
|
2494
|
-
},
|
|
2495
|
-
delete
|
|
2496
|
-
|
|
2497
|
-
}),
|
|
2498
|
-
},
|
|
2498
|
+
}, w = (b, g, x) => {
|
|
2499
|
+
delete b.message, g.forEach((_) => {
|
|
2500
|
+
_.name ? _.key || x(new Error("请填写表头名称和KEY")) : x(new Error("请填写表头名称和KEY"));
|
|
2501
|
+
}), x();
|
|
2502
|
+
}, v = (b) => b.item_type === 1, V = J([{
|
|
2499
2503
|
type: "selection",
|
|
2500
2504
|
width: 60,
|
|
2501
2505
|
field: "rp_item_uuid",
|
|
@@ -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: {
|
|
@@ -2551,7 +2555,7 @@ const W = (o, t) => {
|
|
|
2551
2555
|
hide: !0,
|
|
2552
2556
|
show: {
|
|
2553
2557
|
render: () => {
|
|
2554
|
-
var
|
|
2558
|
+
var b;
|
|
2555
2559
|
return l("div", {
|
|
2556
2560
|
style: "width:80%"
|
|
2557
2561
|
}, [l("div", {
|
|
@@ -2559,18 +2563,18 @@ const W = (o, t) => {
|
|
|
2559
2563
|
style: "gap:15px;"
|
|
2560
2564
|
}, [l("span", {
|
|
2561
2565
|
style: "width:50%"
|
|
2562
|
-
}, [
|
|
2566
|
+
}, [U("表头名称")]), l("span", {
|
|
2563
2567
|
style: "width:50%"
|
|
2564
|
-
}, [
|
|
2568
|
+
}, [U("KEY")])]), (b = a.value.table_key_relation) == null ? void 0 : b.map((g, x) => l("div", {
|
|
2565
2569
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2566
2570
|
style: "gap:15px;margin-bottom:10px;",
|
|
2567
|
-
key:
|
|
2571
|
+
key: x
|
|
2568
2572
|
}, [l(s("el-form-item"), {
|
|
2569
2573
|
style: "width:50%"
|
|
2570
2574
|
}, {
|
|
2571
2575
|
default: () => [l(s("el-input"), {
|
|
2572
|
-
modelValue:
|
|
2573
|
-
"onUpdate:modelValue": (
|
|
2576
|
+
modelValue: g.name,
|
|
2577
|
+
"onUpdate:modelValue": (_) => g.name = _,
|
|
2574
2578
|
class: "",
|
|
2575
2579
|
placeholder: "表头"
|
|
2576
2580
|
}, null)]
|
|
@@ -2578,15 +2582,15 @@ const W = (o, t) => {
|
|
|
2578
2582
|
style: "width:50%"
|
|
2579
2583
|
}, {
|
|
2580
2584
|
default: () => [l(s("el-input"), {
|
|
2581
|
-
modelValue:
|
|
2582
|
-
"onUpdate:modelValue": (
|
|
2585
|
+
modelValue: g.key,
|
|
2586
|
+
"onUpdate:modelValue": (_) => g.key = _,
|
|
2583
2587
|
class: "",
|
|
2584
2588
|
placeholder: "KEY"
|
|
2585
2589
|
}, null)]
|
|
2586
2590
|
}), a.value.table_key_relation.length > 1 && l("div", {
|
|
2587
2591
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
2588
2592
|
}, [l(s("el-icon"), {
|
|
2589
|
-
onClick: () => p(
|
|
2593
|
+
onClick: () => p(x)
|
|
2590
2594
|
}, {
|
|
2591
2595
|
default: () => [l(We, null, null)]
|
|
2592
2596
|
})])])), l(s("el-button"), {
|
|
@@ -2594,7 +2598,7 @@ const W = (o, t) => {
|
|
|
2594
2598
|
icon: "Plus",
|
|
2595
2599
|
onClick: () => c()
|
|
2596
2600
|
}, {
|
|
2597
|
-
default: () => [
|
|
2601
|
+
default: () => [U("新增表头与KEY")]
|
|
2598
2602
|
})]);
|
|
2599
2603
|
}
|
|
2600
2604
|
},
|
|
@@ -2603,7 +2607,7 @@ const W = (o, t) => {
|
|
|
2603
2607
|
},
|
|
2604
2608
|
rules: [{
|
|
2605
2609
|
required: !0,
|
|
2606
|
-
validator:
|
|
2610
|
+
validator: w,
|
|
2607
2611
|
trigger: "blur"
|
|
2608
2612
|
}]
|
|
2609
2613
|
}, {
|
|
@@ -2629,64 +2633,64 @@ const W = (o, t) => {
|
|
|
2629
2633
|
name: "操作",
|
|
2630
2634
|
align: "center",
|
|
2631
2635
|
fixed: "right",
|
|
2632
|
-
render: (
|
|
2636
|
+
render: (b) => l("div", null, [l(s("el-button"), {
|
|
2633
2637
|
link: !0,
|
|
2634
2638
|
type: "primary",
|
|
2635
2639
|
class: "custom-btn",
|
|
2636
2640
|
icon: "Edit",
|
|
2637
2641
|
title: "编辑",
|
|
2638
|
-
disabled:
|
|
2639
|
-
onClick: () => i(
|
|
2642
|
+
disabled: b.row.item_type === 0,
|
|
2643
|
+
onClick: () => i(b.row)
|
|
2640
2644
|
}, null), l(s("el-button"), {
|
|
2641
2645
|
link: !0,
|
|
2642
2646
|
type: "danger",
|
|
2643
2647
|
icon: "Delete",
|
|
2644
2648
|
title: "删除",
|
|
2645
|
-
disabled:
|
|
2646
|
-
onClick: () => d([
|
|
2649
|
+
disabled: b.row.item_type === 0,
|
|
2650
|
+
onClick: () => d([b.row.rp_item_uuid])
|
|
2647
2651
|
}, null)])
|
|
2648
2652
|
}]);
|
|
2649
|
-
return (
|
|
2650
|
-
const
|
|
2651
|
-
return m(), C("div", Eo, [l(
|
|
2653
|
+
return (b, g) => {
|
|
2654
|
+
const x = s("el-button"), _ = s("TdsTable"), h = s("TdsForm");
|
|
2655
|
+
return m(), C("div", Eo, [l(_, {
|
|
2652
2656
|
ref_key: "refTdsTable",
|
|
2653
2657
|
ref: t,
|
|
2654
|
-
columns:
|
|
2655
|
-
"request-api":
|
|
2658
|
+
columns: V,
|
|
2659
|
+
"request-api": y(At),
|
|
2656
2660
|
"init-param": A,
|
|
2657
2661
|
"row-key": "rp_item_uuid",
|
|
2658
|
-
options:
|
|
2659
|
-
selectable:
|
|
2662
|
+
options: b.$tableOptions(),
|
|
2663
|
+
selectable: v,
|
|
2660
2664
|
"search-col": 6
|
|
2661
2665
|
}, {
|
|
2662
|
-
tableHeader: u((k) => [l(
|
|
2666
|
+
tableHeader: u((k) => [l(x, {
|
|
2663
2667
|
plain: "",
|
|
2664
2668
|
type: "primary",
|
|
2665
2669
|
class: "custom-btn",
|
|
2666
2670
|
icon: "Plus",
|
|
2667
|
-
onClick:
|
|
2671
|
+
onClick: g[0] || (g[0] = (H) => i())
|
|
2668
2672
|
}, {
|
|
2669
|
-
default: u(() =>
|
|
2673
|
+
default: u(() => g[1] || (g[1] = [U("新建")])),
|
|
2670
2674
|
_: 1
|
|
2671
|
-
}), l(
|
|
2675
|
+
}), l(x, {
|
|
2672
2676
|
plain: "",
|
|
2673
2677
|
type: "danger",
|
|
2674
2678
|
icon: "Delete",
|
|
2675
|
-
onClick: (
|
|
2679
|
+
onClick: (H) => d(k.selectedListIds)
|
|
2676
2680
|
}, {
|
|
2677
|
-
default: u(() =>
|
|
2681
|
+
default: u(() => g[2] || (g[2] = [U("删除")])),
|
|
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(h, ye({
|
|
2682
2686
|
ref_key: "refTdsForm",
|
|
2683
2687
|
ref: e
|
|
2684
|
-
},
|
|
2688
|
+
}, b.$formBindProps({
|
|
2685
2689
|
title: r.value,
|
|
2686
2690
|
form: a.value,
|
|
2687
|
-
columns:
|
|
2691
|
+
columns: V
|
|
2688
2692
|
}), {
|
|
2689
|
-
onSubmit:
|
|
2693
|
+
onSubmit: f
|
|
2690
2694
|
}), null, 16)]);
|
|
2691
2695
|
};
|
|
2692
2696
|
}
|
|
@@ -2697,48 +2701,48 @@ 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__ */ E({
|
|
2701
2705
|
name: "TCSubscribe",
|
|
2702
2706
|
__name: "index",
|
|
2703
2707
|
setup(o) {
|
|
2704
|
-
const t =
|
|
2708
|
+
const t = D(), e = D(), {
|
|
2705
2709
|
$t: a,
|
|
2706
2710
|
$messageBox: r
|
|
2707
|
-
} = window, n =
|
|
2711
|
+
} = window, n = D(""), A = D({
|
|
2708
2712
|
receiver: []
|
|
2709
2713
|
});
|
|
2710
|
-
function d(
|
|
2711
|
-
r(
|
|
2714
|
+
function d(_) {
|
|
2715
|
+
r(_, "subscript_name", a("button.delete"), "error").then(async () => {
|
|
2712
2716
|
await mt({
|
|
2713
|
-
subscript_uuids:
|
|
2717
|
+
subscript_uuids: _.map((h) => h.subscript_uuid)
|
|
2714
2718
|
}), t.value.getTableList();
|
|
2715
2719
|
});
|
|
2716
2720
|
}
|
|
2717
2721
|
function i() {
|
|
2718
2722
|
d(t.value.selectedList);
|
|
2719
2723
|
}
|
|
2720
|
-
const
|
|
2721
|
-
A.value =
|
|
2724
|
+
const f = (_) => {
|
|
2725
|
+
A.value = _ ? Object.assign({}, _) : {
|
|
2722
2726
|
receiver: []
|
|
2723
|
-
}, n.value =
|
|
2727
|
+
}, n.value = _ ? "编辑报表订阅" : "新增报表订阅", e.value.open();
|
|
2724
2728
|
};
|
|
2725
|
-
async function p(
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2728
|
-
subscript_uuid:
|
|
2729
|
-
data:
|
|
2729
|
+
async function p(_) {
|
|
2730
|
+
const h = Object.assign({}, _);
|
|
2731
|
+
h.subscript_uuid ? await ct({
|
|
2732
|
+
subscript_uuid: h.subscript_uuid,
|
|
2733
|
+
data: h
|
|
2730
2734
|
}) : await pt({
|
|
2731
|
-
data:
|
|
2735
|
+
data: h
|
|
2732
2736
|
}), t.value.getTableList(), e.value.close();
|
|
2733
2737
|
}
|
|
2734
|
-
function c(
|
|
2735
|
-
if (!
|
|
2736
|
-
return
|
|
2737
|
-
|
|
2738
|
+
function c(_, h, k) {
|
|
2739
|
+
if (!h || h.length === 0)
|
|
2740
|
+
return k(new Error("请输入收件人"));
|
|
2741
|
+
k();
|
|
2738
2742
|
}
|
|
2739
|
-
const
|
|
2740
|
-
|
|
2741
|
-
},
|
|
2743
|
+
const w = (_, h) => {
|
|
2744
|
+
_.target.value && A.value[h].push(_.target.value);
|
|
2745
|
+
}, v = [{
|
|
2742
2746
|
label: "周一",
|
|
2743
2747
|
value: 1
|
|
2744
2748
|
}, {
|
|
@@ -2759,7 +2763,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2759
2763
|
}, {
|
|
2760
2764
|
label: "周日",
|
|
2761
2765
|
value: 0
|
|
2762
|
-
}],
|
|
2766
|
+
}], V = [{
|
|
2763
2767
|
label: "每天",
|
|
2764
2768
|
value: 0
|
|
2765
2769
|
}, {
|
|
@@ -2768,7 +2772,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2768
2772
|
}, {
|
|
2769
2773
|
label: "每月",
|
|
2770
2774
|
value: 2
|
|
2771
|
-
}],
|
|
2775
|
+
}], b = [], g = window.windowGlobalVar.SYSTEM_NORMAL ? 1 : window.windowGlobalVar.SYSTEM_NORMAL ? void 0 : 0, x = J([{
|
|
2772
2776
|
type: "selection",
|
|
2773
2777
|
align: "center",
|
|
2774
2778
|
field: "subscript_uuid",
|
|
@@ -2796,7 +2800,8 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2796
2800
|
field: "report_uuid",
|
|
2797
2801
|
name: "报表类型",
|
|
2798
2802
|
enum: () => gt({
|
|
2799
|
-
prod_type: window.$prodType
|
|
2803
|
+
prod_type: window.$prodType,
|
|
2804
|
+
cg_linkage: g
|
|
2800
2805
|
}),
|
|
2801
2806
|
fieldNames: {
|
|
2802
2807
|
label: "report_name",
|
|
@@ -2846,45 +2851,45 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2846
2851
|
key: window.$prodType
|
|
2847
2852
|
}
|
|
2848
2853
|
},
|
|
2849
|
-
render: (
|
|
2854
|
+
render: (_) => t.value.enumMap.get("dbsId").filter((H) => _.row.dbsId.indexOf(H.id) > -1).map((H) => l(s("el-tag"), {
|
|
2850
2855
|
class: "mr-10px",
|
|
2851
2856
|
type: "info"
|
|
2852
2857
|
}, {
|
|
2853
|
-
default: () => [
|
|
2858
|
+
default: () => [H.policy_name]
|
|
2854
2859
|
}))
|
|
2855
2860
|
}, {
|
|
2856
2861
|
field: "receiver_email",
|
|
2857
2862
|
name: "收件人",
|
|
2858
2863
|
width: 300,
|
|
2859
|
-
render: (
|
|
2864
|
+
render: (_) => l(P, null, [_.row.receiver_email.map((h) => l(s("el-tag"), {
|
|
2860
2865
|
class: "mr-10px",
|
|
2861
2866
|
type: "info"
|
|
2862
|
-
}, me(
|
|
2863
|
-
default: () => [
|
|
2867
|
+
}, me(h) ? h : {
|
|
2868
|
+
default: () => [h]
|
|
2864
2869
|
}))]),
|
|
2865
2870
|
show: {
|
|
2866
2871
|
type: "input",
|
|
2867
2872
|
render: () => {
|
|
2868
|
-
let
|
|
2869
|
-
return l(
|
|
2873
|
+
let _;
|
|
2874
|
+
return l(P, null, [l(s("el-select"), {
|
|
2870
2875
|
class: "right-select",
|
|
2871
2876
|
modelValue: A.value.receiver_email,
|
|
2872
|
-
"onUpdate:modelValue": (
|
|
2877
|
+
"onUpdate:modelValue": (h) => A.value.receiver_email = h,
|
|
2873
2878
|
placeholder: "请输入",
|
|
2874
2879
|
multiple: !0,
|
|
2875
2880
|
filterable: !0,
|
|
2876
2881
|
"allow-create": !0,
|
|
2877
2882
|
"default-first-option": !0,
|
|
2878
2883
|
"reserve-keyword": !1,
|
|
2879
|
-
onBlur: (
|
|
2880
|
-
}, me(
|
|
2881
|
-
label:
|
|
2882
|
-
value:
|
|
2883
|
-
}, null))) ?
|
|
2884
|
-
default: () => [
|
|
2884
|
+
onBlur: (h) => w(h, "receiver_email")
|
|
2885
|
+
}, me(_ = b.map((h) => l(s("el-option"), {
|
|
2886
|
+
label: h.label,
|
|
2887
|
+
value: h.value
|
|
2888
|
+
}, null))) ? _ : {
|
|
2889
|
+
default: () => [_]
|
|
2885
2890
|
}), l("p", {
|
|
2886
2891
|
style: "font-size:12px;color:#909399;line-height:20px"
|
|
2887
|
-
}, [
|
|
2892
|
+
}, [U("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
|
|
2888
2893
|
}
|
|
2889
2894
|
},
|
|
2890
2895
|
rules: [{
|
|
@@ -2900,7 +2905,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2900
2905
|
field: "loop_type",
|
|
2901
2906
|
name: "发送周期",
|
|
2902
2907
|
hide: !0,
|
|
2903
|
-
enum:
|
|
2908
|
+
enum: V,
|
|
2904
2909
|
show: {
|
|
2905
2910
|
dataType: "number",
|
|
2906
2911
|
type: "select",
|
|
@@ -2923,9 +2928,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2923
2928
|
field: "day",
|
|
2924
2929
|
name: "日",
|
|
2925
2930
|
hide: !0,
|
|
2926
|
-
enum: [...Array(28)].map((
|
|
2927
|
-
label:
|
|
2928
|
-
value:
|
|
2931
|
+
enum: [...Array(28)].map((_, h) => ({
|
|
2932
|
+
label: h + 1 + "",
|
|
2933
|
+
value: h + 1
|
|
2929
2934
|
})),
|
|
2930
2935
|
show: {
|
|
2931
2936
|
type: "select"
|
|
@@ -2938,7 +2943,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2938
2943
|
field: "weekday",
|
|
2939
2944
|
name: "星期",
|
|
2940
2945
|
hide: !0,
|
|
2941
|
-
enum:
|
|
2946
|
+
enum: v,
|
|
2942
2947
|
show: {
|
|
2943
2948
|
type: "select"
|
|
2944
2949
|
},
|
|
@@ -2950,9 +2955,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2950
2955
|
field: "hour",
|
|
2951
2956
|
name: "小时",
|
|
2952
2957
|
hide: !0,
|
|
2953
|
-
enum: [...Array(24)].map((
|
|
2954
|
-
label:
|
|
2955
|
-
value:
|
|
2958
|
+
enum: [...Array(24)].map((_, h) => ({
|
|
2959
|
+
label: h + "时",
|
|
2960
|
+
value: h
|
|
2956
2961
|
})),
|
|
2957
2962
|
show: {
|
|
2958
2963
|
type: "select"
|
|
@@ -2965,9 +2970,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2965
2970
|
field: "minute",
|
|
2966
2971
|
name: "分钟",
|
|
2967
2972
|
hide: !0,
|
|
2968
|
-
enum: [...Array(60)].map((
|
|
2969
|
-
label:
|
|
2970
|
-
value:
|
|
2973
|
+
enum: [...Array(60)].map((_, h) => ({
|
|
2974
|
+
label: h + "分",
|
|
2975
|
+
value: h
|
|
2971
2976
|
})),
|
|
2972
2977
|
show: {
|
|
2973
2978
|
type: "select"
|
|
@@ -2979,15 +2984,15 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2979
2984
|
}, {
|
|
2980
2985
|
field: "enable_status",
|
|
2981
2986
|
name: "启用状态",
|
|
2982
|
-
render: (
|
|
2983
|
-
modelValue:
|
|
2984
|
-
"onUpdate:modelValue": (
|
|
2987
|
+
render: (_) => l(s("el-switch"), {
|
|
2988
|
+
modelValue: _.row.enable_status,
|
|
2989
|
+
"onUpdate:modelValue": (h) => _.row.enable_status = h,
|
|
2985
2990
|
"active-value": 1,
|
|
2986
2991
|
"inactive-value": 0,
|
|
2987
|
-
onChange: (
|
|
2992
|
+
onChange: (h) => {
|
|
2988
2993
|
ft({
|
|
2989
|
-
subscript_uuid:
|
|
2990
|
-
enable_status:
|
|
2994
|
+
subscript_uuid: _.row.subscript_uuid,
|
|
2995
|
+
enable_status: h
|
|
2991
2996
|
}), t.value.getTableList();
|
|
2992
2997
|
}
|
|
2993
2998
|
}, null)
|
|
@@ -2997,58 +3002,58 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2997
3002
|
fixed: "right",
|
|
2998
3003
|
cardHide: !0,
|
|
2999
3004
|
width: 120,
|
|
3000
|
-
render: (
|
|
3005
|
+
render: (_) => l("div", null, [l(s("el-button"), {
|
|
3001
3006
|
link: !0,
|
|
3002
3007
|
type: "primary",
|
|
3003
3008
|
icon: "Edit",
|
|
3004
3009
|
title: a("button.edit"),
|
|
3005
3010
|
class: "custom-btn",
|
|
3006
|
-
onClick: () =>
|
|
3011
|
+
onClick: () => f(_.row)
|
|
3007
3012
|
}, null), l(s("el-button"), {
|
|
3008
3013
|
link: !0,
|
|
3009
3014
|
type: "danger",
|
|
3010
3015
|
icon: "Delete",
|
|
3011
3016
|
title: a("button.delete"),
|
|
3012
|
-
onClick: () => d([
|
|
3017
|
+
onClick: () => d([_.row])
|
|
3013
3018
|
}, null)])
|
|
3014
3019
|
}]);
|
|
3015
|
-
return (
|
|
3016
|
-
const
|
|
3017
|
-
return m(), C("div", So, [l(
|
|
3020
|
+
return (_, h) => {
|
|
3021
|
+
const k = s("el-button");
|
|
3022
|
+
return m(), C("div", So, [l(y(he), {
|
|
3018
3023
|
ref_key: "refTdsTable",
|
|
3019
3024
|
ref: t,
|
|
3020
3025
|
"row-key": "subscript_uuid",
|
|
3021
|
-
"request-api":
|
|
3022
|
-
columns:
|
|
3023
|
-
options:
|
|
3026
|
+
"request-api": y(dt),
|
|
3027
|
+
columns: x,
|
|
3028
|
+
options: _.$tableOptions()
|
|
3024
3029
|
}, {
|
|
3025
|
-
tableHeader: u((
|
|
3030
|
+
tableHeader: u((H) => [l(k, {
|
|
3026
3031
|
type: "primary",
|
|
3027
3032
|
icon: "Plus",
|
|
3028
3033
|
class: "custom-btn",
|
|
3029
3034
|
plain: "",
|
|
3030
|
-
onClick:
|
|
3035
|
+
onClick: h[0] || (h[0] = (B) => f())
|
|
3031
3036
|
}, {
|
|
3032
|
-
default: u(() => [
|
|
3037
|
+
default: u(() => [U(M(y(a)("button.add")), 1)]),
|
|
3033
3038
|
_: 1
|
|
3034
|
-
}), l(
|
|
3039
|
+
}), l(k, {
|
|
3035
3040
|
type: "danger",
|
|
3036
3041
|
icon: "Delete",
|
|
3037
3042
|
plain: "",
|
|
3038
3043
|
onClick: i,
|
|
3039
|
-
disabled: !
|
|
3044
|
+
disabled: !H.selectedListIds.length
|
|
3040
3045
|
}, {
|
|
3041
|
-
default: u(() => [
|
|
3046
|
+
default: u(() => [U(M(y(a)("button.delete")), 1)]),
|
|
3042
3047
|
_: 2
|
|
3043
3048
|
}, 1032, ["disabled"])]),
|
|
3044
3049
|
_: 1
|
|
3045
|
-
}, 8, ["request-api", "columns", "options"]), l(
|
|
3050
|
+
}, 8, ["request-api", "columns", "options"]), l(y($e), ye({
|
|
3046
3051
|
ref_key: "refTdsForm",
|
|
3047
3052
|
ref: e
|
|
3048
|
-
},
|
|
3053
|
+
}, _.$formBindProps({
|
|
3049
3054
|
title: n.value,
|
|
3050
3055
|
form: A.value,
|
|
3051
|
-
columns:
|
|
3056
|
+
columns: x
|
|
3052
3057
|
}), {
|
|
3053
3058
|
onSubmit: p
|
|
3054
3059
|
}), null, 16)]);
|
|
@@ -3058,22 +3063,22 @@ const Oo = /* @__PURE__ */ L({
|
|
|
3058
3063
|
class: "main-wrapper"
|
|
3059
3064
|
}, Io = {
|
|
3060
3065
|
class: "el-dropdown-link"
|
|
3061
|
-
}, Fo = /* @__PURE__ */
|
|
3066
|
+
}, Fo = /* @__PURE__ */ E({
|
|
3062
3067
|
name: "TCBuildin",
|
|
3063
3068
|
__name: "index",
|
|
3064
3069
|
setup(o) {
|
|
3065
|
-
const t =
|
|
3070
|
+
const t = D({}), e = D("1"), a = D("");
|
|
3066
3071
|
async function r() {
|
|
3067
3072
|
const d = window.windowGlobalVar.SYSTEM_NORMAL, i = await bt({
|
|
3068
3073
|
prod_type: window.$prodType,
|
|
3069
3074
|
cg_linkage: d ? 1 : d ? void 0 : 0
|
|
3070
3075
|
});
|
|
3071
3076
|
e.value = i.data[0].report_uuid;
|
|
3072
|
-
const
|
|
3077
|
+
const f = {};
|
|
3073
3078
|
i.data.forEach((p) => {
|
|
3074
3079
|
const c = p.report_category || p.report_uuid;
|
|
3075
|
-
|
|
3076
|
-
}), t.value =
|
|
3080
|
+
f[c] || (f[c] = []), f[c].push(p);
|
|
3081
|
+
}), t.value = f;
|
|
3077
3082
|
}
|
|
3078
3083
|
const n = (d, i) => {
|
|
3079
3084
|
e.value = i, a.value = d;
|
|
@@ -3081,52 +3086,52 @@ const Oo = /* @__PURE__ */ L({
|
|
|
3081
3086
|
a.value = "";
|
|
3082
3087
|
};
|
|
3083
3088
|
return r(), (d, i) => {
|
|
3084
|
-
const
|
|
3085
|
-
return m(), C("div", Qo, [l(
|
|
3089
|
+
const f = s("arrow-down"), p = s("el-icon"), c = s("el-dropdown-item"), w = s("el-dropdown-menu"), v = s("el-dropdown"), V = s("el-tab-pane"), b = s("el-tabs");
|
|
3090
|
+
return m(), C("div", Qo, [l(b, {
|
|
3086
3091
|
modelValue: e.value,
|
|
3087
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
3092
|
+
"onUpdate:modelValue": i[0] || (i[0] = (g) => e.value = g),
|
|
3088
3093
|
class: "report-tabs",
|
|
3089
3094
|
style: {
|
|
3090
3095
|
height: "100%"
|
|
3091
3096
|
},
|
|
3092
3097
|
onTabClick: A
|
|
3093
3098
|
}, {
|
|
3094
|
-
default: u(() => [(m(!0), C(
|
|
3099
|
+
default: u(() => [(m(!0), C(P, null, I(t.value, (g, x) => (m(), L(V, {
|
|
3095
3100
|
style: {
|
|
3096
3101
|
height: "100%"
|
|
3097
3102
|
},
|
|
3098
|
-
key:
|
|
3099
|
-
name:
|
|
3103
|
+
key: x,
|
|
3104
|
+
name: g[0].report_uuid
|
|
3100
3105
|
}, Ne({
|
|
3101
|
-
default: u(() => [e.value ===
|
|
3106
|
+
default: u(() => [e.value === g[0].report_uuid ? (m(), L(Re, {
|
|
3102
3107
|
key: 0,
|
|
3103
3108
|
"report-id": a.value || e.value
|
|
3104
|
-
}, null, 8, ["report-id"])) :
|
|
3109
|
+
}, null, 8, ["report-id"])) : O("", !0)]),
|
|
3105
3110
|
_: 2
|
|
3106
|
-
}, [
|
|
3111
|
+
}, [g.length === 1 ? {
|
|
3107
3112
|
name: "label",
|
|
3108
|
-
fn: u(() => [
|
|
3113
|
+
fn: u(() => [U(M(g[0].report_name), 1)]),
|
|
3109
3114
|
key: "0"
|
|
3110
3115
|
} : {
|
|
3111
3116
|
name: "label",
|
|
3112
|
-
fn: u(() => [l(
|
|
3113
|
-
onCommand: (
|
|
3117
|
+
fn: u(() => [l(v, {
|
|
3118
|
+
onCommand: (_) => n(_, g[0].report_uuid)
|
|
3114
3119
|
}, {
|
|
3115
|
-
dropdown: u(() => [l(
|
|
3116
|
-
default: u(() => [(m(!0), C(
|
|
3117
|
-
key:
|
|
3120
|
+
dropdown: u(() => [l(w, null, {
|
|
3121
|
+
default: u(() => [(m(!0), C(P, null, I(g, (_) => (m(), L(c, {
|
|
3122
|
+
key: _.report_uuid,
|
|
3118
3123
|
class: "mt-10px",
|
|
3119
|
-
command:
|
|
3124
|
+
command: _.report_uuid
|
|
3120
3125
|
}, {
|
|
3121
|
-
default: u(() => [
|
|
3126
|
+
default: u(() => [U(M(_.report_name), 1)]),
|
|
3122
3127
|
_: 2
|
|
3123
3128
|
}, 1032, ["command"]))), 128))]),
|
|
3124
3129
|
_: 2
|
|
3125
3130
|
}, 1024)]),
|
|
3126
|
-
default: u(() => [
|
|
3131
|
+
default: u(() => [T("span", Io, [U(M(x) + " ", 1), l(p, {
|
|
3127
3132
|
class: "el-icon--right"
|
|
3128
3133
|
}, {
|
|
3129
|
-
default: u(() => [l(
|
|
3134
|
+
default: u(() => [l(f)]),
|
|
3130
3135
|
_: 1
|
|
3131
3136
|
})])]),
|
|
3132
3137
|
_: 2
|
|
@@ -3142,9 +3147,9 @@ const Mo = /* @__PURE__ */ Z(Fo, [["__scopeId", "data-v-99a69fda"]]), Ko = W(Mo)
|
|
|
3142
3147
|
function qo(o, t, e) {
|
|
3143
3148
|
const a = atob(o), r = [];
|
|
3144
3149
|
for (let i = 0; i < a.length; i += 512) {
|
|
3145
|
-
const
|
|
3146
|
-
for (let
|
|
3147
|
-
p[
|
|
3150
|
+
const f = a.slice(i, i + 512), p = new Array(f.length);
|
|
3151
|
+
for (let w = 0; w < f.length; w++)
|
|
3152
|
+
p[w] = f.charCodeAt(w);
|
|
3148
3153
|
const c = new Uint8Array(p);
|
|
3149
3154
|
r.push(c);
|
|
3150
3155
|
}
|
|
@@ -3155,13 +3160,13 @@ function qo(o, t, e) {
|
|
|
3155
3160
|
}
|
|
3156
3161
|
const Ho = {
|
|
3157
3162
|
class: "table-box"
|
|
3158
|
-
}, No = /* @__PURE__ */
|
|
3163
|
+
}, No = /* @__PURE__ */ E({
|
|
3159
3164
|
name: "TCDownload",
|
|
3160
3165
|
__name: "index",
|
|
3161
3166
|
setup(o) {
|
|
3162
3167
|
const t = J({
|
|
3163
3168
|
prod_type: window.$prodType
|
|
3164
|
-
}), e =
|
|
3169
|
+
}), e = D(), a = async (A) => {
|
|
3165
3170
|
const d = await ht({
|
|
3166
3171
|
export_uuid: A.export_uuid
|
|
3167
3172
|
}), i = A.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
@@ -3241,11 +3246,11 @@ const Ho = {
|
|
|
3241
3246
|
}]);
|
|
3242
3247
|
return (A, d) => {
|
|
3243
3248
|
const i = s("el-button");
|
|
3244
|
-
return m(), C("div", Ho, [l(
|
|
3249
|
+
return m(), C("div", Ho, [l(y(he), {
|
|
3245
3250
|
ref_key: "proTable",
|
|
3246
3251
|
ref: e,
|
|
3247
3252
|
columns: n,
|
|
3248
|
-
"request-api":
|
|
3253
|
+
"request-api": y(yt),
|
|
3249
3254
|
"row-key": "export_uuid",
|
|
3250
3255
|
"init-param": t,
|
|
3251
3256
|
options: A.$tableOptions({
|
|
@@ -3255,13 +3260,13 @@ const Ho = {
|
|
|
3255
3260
|
}),
|
|
3256
3261
|
"search-col": 6
|
|
3257
3262
|
}, {
|
|
3258
|
-
tableHeader: u((
|
|
3263
|
+
tableHeader: u((f) => [l(i, {
|
|
3259
3264
|
plain: "",
|
|
3260
3265
|
type: "danger",
|
|
3261
3266
|
icon: "Delete",
|
|
3262
|
-
onClick: (p) => r(
|
|
3267
|
+
onClick: (p) => r(f.selectedListIds)
|
|
3263
3268
|
}, {
|
|
3264
|
-
default: u(() => d[0] || (d[0] = [
|
|
3269
|
+
default: u(() => d[0] || (d[0] = [U("删除")])),
|
|
3265
3270
|
_: 2
|
|
3266
3271
|
}, 1032, ["onClick"])]),
|
|
3267
3272
|
_: 1
|