@topdatasec/report 1.1.30 → 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/t-report-ui.es.js +523 -522
- package/lib/t-report-ui.umd.js +2 -2
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
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()),
|
|
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,
|
|
@@ -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
|
-
}), Te = "rgba(51, 51, 51, 0.15)",
|
|
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%",
|
|
@@ -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轴类目名称旋转角度
|
|
@@ -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
|
|
@@ -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",
|
|
@@ -561,7 +561,7 @@ 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
|
}
|
|
@@ -578,7 +578,7 @@ const F = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math
|
|
|
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: []
|
|
@@ -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
|
-
}, ke = /* @__PURE__ */
|
|
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" }, De = /* @__PURE__ */
|
|
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" }, Ve = /* @__PURE__ */
|
|
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 Le = /* @__PURE__ */
|
|
1071
|
+
const Le = /* @__PURE__ */ E({
|
|
1072
1072
|
__name: "ReportTable",
|
|
1073
1073
|
props: {
|
|
1074
1074
|
value: {}
|
|
@@ -1090,7 +1090,7 @@ const Le = /* @__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: {}
|
|
@@ -1111,7 +1111,7 @@ const Le = /* @__PURE__ */ L({
|
|
|
1111
1111
|
style: Qe(e())
|
|
1112
1112
|
}, M(a.value.data), 5));
|
|
1113
1113
|
}
|
|
1114
|
-
}), Ht = { class: "chart-components" }, Ee = /* @__PURE__ */
|
|
1114
|
+
}), Ht = { class: "chart-components" }, Ee = /* @__PURE__ */ E({
|
|
1115
1115
|
__name: "ReportChart",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
value: {}
|
|
@@ -1132,7 +1132,7 @@ const Le = /* @__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 Le = /* @__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 Le = /* @__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 Ue = /* @__PURE__ */
|
|
1163
|
+
const Ue = /* @__PURE__ */ E({
|
|
1164
1164
|
__name: "ReportDescribe",
|
|
1165
1165
|
props: {
|
|
1166
1166
|
value: {}
|
|
@@ -1199,7 +1199,7 @@ const Ue = /* @__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,7 +1212,7 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1212
1212
|
}),
|
|
1213
1213
|
emits: ["update:modelValue"],
|
|
1214
1214
|
setup(o) {
|
|
1215
|
-
const t =
|
|
1215
|
+
const t = D(!1), e = {
|
|
1216
1216
|
Bar: ke,
|
|
1217
1217
|
Line: De,
|
|
1218
1218
|
Pie: Ve,
|
|
@@ -1222,87 +1222,87 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1222
1222
|
ReportText: re,
|
|
1223
1223
|
ReportChart: Ee,
|
|
1224
1224
|
ReportDescribe: Ue
|
|
1225
|
-
}, a = q(), r = o, n = _e(o, "modelValue"), A =
|
|
1226
|
-
p.setMonth(
|
|
1227
|
-
function c(
|
|
1228
|
-
return
|
|
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, [
|
|
1271
|
+
h();
|
|
1272
|
+
const k = () => l("div", null, [U("未找到对应组件")]);
|
|
1273
1273
|
be(() => r.reportId, () => {
|
|
1274
|
-
|
|
1274
|
+
h();
|
|
1275
1275
|
});
|
|
1276
|
-
const
|
|
1277
|
-
return (
|
|
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
1278
|
const Y = s("el-button"), j = s("el-card"), Pe = we("loading");
|
|
1279
|
-
return Ae((m(),
|
|
1279
|
+
return Ae((m(), L(j, {
|
|
1280
1280
|
class: "editor view",
|
|
1281
1281
|
"element-loading-text": "加载中..."
|
|
1282
1282
|
}, {
|
|
1283
|
-
default: u(() => [
|
|
1283
|
+
default: u(() => [T("div", zt, [l(Qt, {
|
|
1284
1284
|
data: d.value
|
|
1285
|
-
}, 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", {
|
|
1286
1286
|
class: "item-input",
|
|
1287
|
-
key:
|
|
1288
|
-
}, [
|
|
1287
|
+
key: S.id
|
|
1288
|
+
}, [S.type === "report-select" ? (m(), L(ne, {
|
|
1289
1289
|
key: 0,
|
|
1290
|
-
onChange:
|
|
1291
|
-
value:
|
|
1292
|
-
}, 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, {
|
|
1293
1293
|
key: 1,
|
|
1294
|
-
onChange:
|
|
1295
|
-
value:
|
|
1296
|
-
}, null, 8, ["value"])) :
|
|
1294
|
+
onChange: _,
|
|
1295
|
+
value: S
|
|
1296
|
+
}, null, 8, ["value"])) : O("", !0)]))), 128)), T("div", Xt, [R[5] || (R[5] = T("span", {
|
|
1297
1297
|
class: "font-export"
|
|
1298
1298
|
}, "导出为:", -1)), l(Y, {
|
|
1299
1299
|
link: "",
|
|
1300
|
-
onClick:
|
|
1300
|
+
onClick: R[0] || (R[0] = (S) => g(1)),
|
|
1301
1301
|
title: "PDF",
|
|
1302
1302
|
type: "primary",
|
|
1303
1303
|
class: "custom-btn"
|
|
1304
1304
|
}, {
|
|
1305
|
-
default: u(() =>
|
|
1305
|
+
default: u(() => R[2] || (R[2] = [T("img", {
|
|
1306
1306
|
style: {
|
|
1307
1307
|
width: "25px",
|
|
1308
1308
|
height: "25px"
|
|
@@ -1313,7 +1313,7 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1313
1313
|
_: 1
|
|
1314
1314
|
}), l(Y, {
|
|
1315
1315
|
link: "",
|
|
1316
|
-
onClick:
|
|
1316
|
+
onClick: R[1] || (R[1] = (S) => g(3)),
|
|
1317
1317
|
title: "WORD",
|
|
1318
1318
|
type: "primary",
|
|
1319
1319
|
class: "custom-btn",
|
|
@@ -1321,7 +1321,7 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1321
1321
|
"margin-right": "5px"
|
|
1322
1322
|
}
|
|
1323
1323
|
}, {
|
|
1324
|
-
default: u(() =>
|
|
1324
|
+
default: u(() => R[3] || (R[3] = [T("img", {
|
|
1325
1325
|
style: {
|
|
1326
1326
|
width: "25px",
|
|
1327
1327
|
height: "25px"
|
|
@@ -1332,29 +1332,29 @@ const Ue = /* @__PURE__ */ L({
|
|
|
1332
1332
|
_: 1
|
|
1333
1333
|
}), l(Y, {
|
|
1334
1334
|
plain: "",
|
|
1335
|
-
onClick:
|
|
1335
|
+
onClick: b,
|
|
1336
1336
|
type: "primary",
|
|
1337
1337
|
class: "custom-btn exit-preview",
|
|
1338
1338
|
style: {
|
|
1339
1339
|
"margin-left": "auto"
|
|
1340
1340
|
}
|
|
1341
1341
|
}, {
|
|
1342
|
-
default: u(() =>
|
|
1342
|
+
default: u(() => R[4] || (R[4] = [U("退出预览")])),
|
|
1343
1343
|
_: 1
|
|
1344
|
-
})])]), (m(!0), C(
|
|
1345
|
-
key:
|
|
1346
|
-
class: X(["editor-content", ["editor" +
|
|
1347
|
-
id:
|
|
1348
|
-
}, [
|
|
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)), {
|
|
1349
1349
|
key: 0,
|
|
1350
|
-
class: X(["editor" +
|
|
1351
|
-
value:
|
|
1350
|
+
class: X(["editor" + S.type]),
|
|
1351
|
+
value: S
|
|
1352
1352
|
}, {
|
|
1353
|
-
default: u(() => [
|
|
1353
|
+
default: u(() => [U(M(S.data), 1)]),
|
|
1354
1354
|
_: 2
|
|
1355
1355
|
}, 1032, ["class", "value"])) : (m(), C("p", {
|
|
1356
1356
|
key: 1,
|
|
1357
|
-
innerHTML:
|
|
1357
|
+
innerHTML: S.data
|
|
1358
1358
|
}, null, 8, jt))], 10, Jt))), 128))])])]),
|
|
1359
1359
|
_: 1
|
|
1360
1360
|
})), [[Pe, t.value]]);
|
|
@@ -1365,7 +1365,7 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1365
1365
|
class: "editor"
|
|
1366
1366
|
}, $t = {
|
|
1367
1367
|
class: "editor-content edit"
|
|
1368
|
-
}, eo = ["onClick"], to = ["onClick"], oo = ["innerHTML", "draggable"], lo = /* @__PURE__ */
|
|
1368
|
+
}, eo = ["onClick"], to = ["onClick"], oo = ["innerHTML", "draggable"], lo = /* @__PURE__ */ E({
|
|
1369
1369
|
__name: "Editor",
|
|
1370
1370
|
setup(o) {
|
|
1371
1371
|
const t = {
|
|
@@ -1383,86 +1383,86 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1383
1383
|
activeComponents: a,
|
|
1384
1384
|
notDraggableList: r,
|
|
1385
1385
|
titleComponent: n
|
|
1386
|
-
} = Ye(q()), A = q(), d = (
|
|
1387
|
-
e.value.forEach((
|
|
1388
|
-
|
|
1386
|
+
} = Ye(q()), A = q(), d = (g) => {
|
|
1387
|
+
e.value.forEach((x, _) => {
|
|
1388
|
+
x.id === g && (e.value.splice(_, 1), A.activeComponents = []);
|
|
1389
1389
|
});
|
|
1390
|
-
}, i = (
|
|
1391
|
-
A.setActiveComponents(
|
|
1392
|
-
},
|
|
1393
|
-
console.log(
|
|
1394
|
-
},
|
|
1395
|
-
|
|
1396
|
-
},
|
|
1397
|
-
|
|
1398
|
-
},
|
|
1399
|
-
return (
|
|
1400
|
-
const
|
|
1401
|
-
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", {
|
|
1402
1402
|
class: X(["editor-content edit flex flex-start", [{
|
|
1403
|
-
active:
|
|
1403
|
+
active: y(a).id === "filter"
|
|
1404
1404
|
}]]),
|
|
1405
|
-
onClick:
|
|
1405
|
+
onClick: x[0] || (x[0] = (k) => i({
|
|
1406
1406
|
id: "filter",
|
|
1407
1407
|
type: "filter"
|
|
1408
1408
|
}))
|
|
1409
|
-
}, [(m(!0), C(
|
|
1409
|
+
}, [(m(!0), C(P, null, I(y(r), (k) => (m(), C("div", {
|
|
1410
1410
|
class: "item-input",
|
|
1411
1411
|
key: k.id
|
|
1412
|
-
}, [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)), {
|
|
1413
1413
|
key: 0,
|
|
1414
1414
|
value: k
|
|
1415
1415
|
}, {
|
|
1416
|
-
default: u(() => [
|
|
1416
|
+
default: u(() => [U(M(k.data), 1)]),
|
|
1417
1417
|
_: 2
|
|
1418
|
-
}, 1032, ["value"])) :
|
|
1419
|
-
value:
|
|
1420
|
-
onClick:
|
|
1421
|
-
}, 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), {
|
|
1422
1422
|
ref_key: "el",
|
|
1423
|
-
ref:
|
|
1424
|
-
modelValue:
|
|
1425
|
-
"onUpdate:modelValue":
|
|
1423
|
+
ref: b,
|
|
1424
|
+
modelValue: y(e),
|
|
1425
|
+
"onUpdate:modelValue": x[2] || (x[2] = (k) => Ie(e) ? e.value = k : null),
|
|
1426
1426
|
"on-change": c,
|
|
1427
1427
|
animation: 150,
|
|
1428
|
-
onStart:
|
|
1429
|
-
onEnd:
|
|
1428
|
+
onStart: v,
|
|
1429
|
+
onEnd: V
|
|
1430
1430
|
}, {
|
|
1431
|
-
default: u(() => [(m(!0), C(
|
|
1431
|
+
default: u(() => [(m(!0), C(P, null, I(y(e), (k) => (m(), C("div", {
|
|
1432
1432
|
key: k.id,
|
|
1433
1433
|
class: X(["editor-content edit", ["editor" + k.type, {
|
|
1434
|
-
active: k.id ===
|
|
1434
|
+
active: k.id === y(a).id
|
|
1435
1435
|
}]]),
|
|
1436
|
-
onClick: (
|
|
1437
|
-
}, [
|
|
1438
|
-
onClick: Fe((
|
|
1436
|
+
onClick: (H) => i(k)
|
|
1437
|
+
}, [T("i", {
|
|
1438
|
+
onClick: Fe((H) => d(k.id), ["stop"]),
|
|
1439
1439
|
style: {
|
|
1440
1440
|
"z-index": "99"
|
|
1441
1441
|
}
|
|
1442
|
-
}, [l(
|
|
1442
|
+
}, [l(h, {
|
|
1443
1443
|
size: "16px",
|
|
1444
1444
|
color: "red"
|
|
1445
1445
|
}, {
|
|
1446
|
-
default: u(() => [l(
|
|
1446
|
+
default: u(() => [l(_)]),
|
|
1447
1447
|
_: 1
|
|
1448
|
-
})], 8, to), k.type !== "p" ? (m(),
|
|
1448
|
+
})], 8, to), k.type !== "p" ? (m(), L($(p(k.type)), {
|
|
1449
1449
|
key: 0,
|
|
1450
1450
|
class: X(["editor" + k.type]),
|
|
1451
1451
|
value: k,
|
|
1452
|
-
draggable:
|
|
1452
|
+
draggable: w.value
|
|
1453
1453
|
}, {
|
|
1454
|
-
default: u(() => [
|
|
1454
|
+
default: u(() => [U(M(k.data), 1)]),
|
|
1455
1455
|
_: 2
|
|
1456
1456
|
}, 1032, ["class", "value", "draggable"])) : (m(), C("p", {
|
|
1457
1457
|
key: 1,
|
|
1458
1458
|
innerHTML: k.data,
|
|
1459
|
-
draggable:
|
|
1459
|
+
draggable: w.value
|
|
1460
1460
|
}, null, 8, oo))], 10, eo))), 128))]),
|
|
1461
1461
|
_: 1
|
|
1462
1462
|
}, 8, ["modelValue"])]);
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
|
-
}), no = { class: "label" }, ao = { class: "flex item-switch" }, ro = { class: "flex item-switch" }, Ao = { class: "flex item-switch" }, Se = /* @__PURE__ */
|
|
1465
|
+
}), no = { class: "label" }, ao = { class: "flex item-switch" }, ro = { class: "flex item-switch" }, Ao = { class: "flex item-switch" }, Se = /* @__PURE__ */ E({
|
|
1466
1466
|
__name: "SettingTable",
|
|
1467
1467
|
setup(o) {
|
|
1468
1468
|
const t = q(), e = K(() => t.getActiveComponents);
|
|
@@ -1471,11 +1471,11 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1471
1471
|
return m(), C("div", null, [
|
|
1472
1472
|
l(A, { label: "控制列" }, {
|
|
1473
1473
|
default: u(() => [
|
|
1474
|
-
(m(!0), C(
|
|
1474
|
+
(m(!0), C(P, null, I(e.value.showColumn, (i, f) => (m(), C("p", {
|
|
1475
1475
|
class: "flex item-switch",
|
|
1476
|
-
key:
|
|
1476
|
+
key: f
|
|
1477
1477
|
}, [
|
|
1478
|
-
|
|
1478
|
+
T("span", no, M(i.name), 1),
|
|
1479
1479
|
l(n, {
|
|
1480
1480
|
modelValue: e.value.options.showColumn[i.key],
|
|
1481
1481
|
"onUpdate:modelValue": (p) => e.value.options.showColumn[i.key] = p
|
|
@@ -1487,22 +1487,22 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1487
1487
|
l(d),
|
|
1488
1488
|
l(A, { label: "表格样式" }, {
|
|
1489
1489
|
default: u(() => [
|
|
1490
|
-
|
|
1491
|
-
r[3] || (r[3] =
|
|
1490
|
+
T("p", ao, [
|
|
1491
|
+
r[3] || (r[3] = T("span", { class: "label" }, "斑马纹", -1)),
|
|
1492
1492
|
l(n, {
|
|
1493
1493
|
modelValue: e.value.options.stripe,
|
|
1494
1494
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => e.value.options.stripe = i)
|
|
1495
1495
|
}, null, 8, ["modelValue"])
|
|
1496
1496
|
]),
|
|
1497
|
-
|
|
1498
|
-
r[4] || (r[4] =
|
|
1497
|
+
T("p", ro, [
|
|
1498
|
+
r[4] || (r[4] = T("span", { class: "label" }, "边框", -1)),
|
|
1499
1499
|
l(n, {
|
|
1500
1500
|
modelValue: e.value.options.border,
|
|
1501
1501
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.value.options.border = i)
|
|
1502
1502
|
}, null, 8, ["modelValue"])
|
|
1503
1503
|
]),
|
|
1504
|
-
|
|
1505
|
-
r[5] || (r[5] =
|
|
1504
|
+
T("p", Ao, [
|
|
1505
|
+
r[5] || (r[5] = T("span", { class: "label" }, "表头", -1)),
|
|
1506
1506
|
l(n, {
|
|
1507
1507
|
modelValue: e.value.options.showHeader,
|
|
1508
1508
|
"onUpdate:modelValue": r[2] || (r[2] = (i) => e.value.options.showHeader = i)
|
|
@@ -1514,85 +1514,85 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1514
1514
|
]);
|
|
1515
1515
|
};
|
|
1516
1516
|
}
|
|
1517
|
-
}), so = { key: 0 }, io = /* @__PURE__ */
|
|
1517
|
+
}), so = { key: 0 }, io = /* @__PURE__ */ E({
|
|
1518
1518
|
__name: "ChartsUniConfig",
|
|
1519
1519
|
setup(o) {
|
|
1520
1520
|
const t = q(), e = K(() => t.activeComponents);
|
|
1521
1521
|
function a(r) {
|
|
1522
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);
|
|
1523
1523
|
}
|
|
1524
|
-
return
|
|
1525
|
-
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");
|
|
1526
1526
|
return e.value.options.title ? (m(), C("div", so, [
|
|
1527
1527
|
l(d, { label: "标题" }, {
|
|
1528
1528
|
default: u(() => [
|
|
1529
1529
|
l(A, {
|
|
1530
1530
|
modelValue: e.value.options.title.text,
|
|
1531
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1531
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e.value.options.title.text = b)
|
|
1532
1532
|
}, null, 8, ["modelValue"])
|
|
1533
1533
|
]),
|
|
1534
1534
|
_: 1
|
|
1535
1535
|
}),
|
|
1536
|
-
l(
|
|
1536
|
+
l(V, null, {
|
|
1537
1537
|
default: u(() => [
|
|
1538
|
-
l(
|
|
1538
|
+
l(v, {
|
|
1539
1539
|
title: "标题配置",
|
|
1540
1540
|
name: "1"
|
|
1541
1541
|
}, {
|
|
1542
1542
|
default: u(() => [
|
|
1543
|
-
l(
|
|
1543
|
+
l(w, { class: "w-100%" }, {
|
|
1544
1544
|
default: u(() => [
|
|
1545
|
-
l(
|
|
1545
|
+
l(f, { span: 24 }, {
|
|
1546
1546
|
default: u(() => [
|
|
1547
|
-
n[8] || (n[8] =
|
|
1547
|
+
n[8] || (n[8] = T("span", { class: "switch-label" }, "显示标题", -1)),
|
|
1548
1548
|
l(i, {
|
|
1549
1549
|
modelValue: e.value.options.title.show,
|
|
1550
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1550
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => e.value.options.title.show = b)
|
|
1551
1551
|
}, null, 8, ["modelValue"])
|
|
1552
1552
|
]),
|
|
1553
1553
|
_: 1
|
|
1554
1554
|
}),
|
|
1555
|
-
l(
|
|
1555
|
+
l(f, { span: 12 }, {
|
|
1556
1556
|
default: u(() => [
|
|
1557
1557
|
l(p, {
|
|
1558
1558
|
modelValue: e.value.options.title.textStyle.color,
|
|
1559
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1559
|
+
"onUpdate:modelValue": n[2] || (n[2] = (b) => e.value.options.title.textStyle.color = b),
|
|
1560
1560
|
"show-alpha": ""
|
|
1561
1561
|
}, null, 8, ["modelValue"]),
|
|
1562
|
-
n[9] || (n[9] =
|
|
1562
|
+
n[9] || (n[9] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
1563
1563
|
]),
|
|
1564
1564
|
_: 1
|
|
1565
1565
|
}),
|
|
1566
|
-
l(
|
|
1566
|
+
l(f, { span: 12 }, {
|
|
1567
1567
|
default: u(() => [
|
|
1568
1568
|
l(c, {
|
|
1569
1569
|
modelValue: e.value.options.title.textStyle.fontSize,
|
|
1570
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
1570
|
+
"onUpdate:modelValue": n[3] || (n[3] = (b) => e.value.options.title.textStyle.fontSize = b),
|
|
1571
1571
|
"controls-position": "right"
|
|
1572
1572
|
}, null, 8, ["modelValue"]),
|
|
1573
|
-
n[10] || (n[10] =
|
|
1573
|
+
n[10] || (n[10] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
1574
1574
|
]),
|
|
1575
1575
|
_: 1
|
|
1576
1576
|
}),
|
|
1577
|
-
l(
|
|
1577
|
+
l(f, { span: 12 }, {
|
|
1578
1578
|
default: u(() => [
|
|
1579
1579
|
l(c, {
|
|
1580
1580
|
modelValue: e.value.options.title.x,
|
|
1581
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
1581
|
+
"onUpdate:modelValue": n[4] || (n[4] = (b) => e.value.options.title.x = b),
|
|
1582
1582
|
"controls-position": "right"
|
|
1583
1583
|
}, null, 8, ["modelValue"]),
|
|
1584
|
-
n[11] || (n[11] =
|
|
1584
|
+
n[11] || (n[11] = T("p", { class: "sub-title" }, "横向", -1))
|
|
1585
1585
|
]),
|
|
1586
1586
|
_: 1
|
|
1587
1587
|
}),
|
|
1588
|
-
l(
|
|
1588
|
+
l(f, { span: 12 }, {
|
|
1589
1589
|
default: u(() => [
|
|
1590
1590
|
l(c, {
|
|
1591
1591
|
modelValue: e.value.options.title.y,
|
|
1592
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
1592
|
+
"onUpdate:modelValue": n[5] || (n[5] = (b) => e.value.options.title.y = b),
|
|
1593
1593
|
"controls-position": "right"
|
|
1594
1594
|
}, null, 8, ["modelValue"]),
|
|
1595
|
-
n[12] || (n[12] =
|
|
1595
|
+
n[12] || (n[12] = T("p", { class: "sub-title" }, "纵向", -1))
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 1
|
|
1598
1598
|
})
|
|
@@ -1602,45 +1602,45 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1602
1602
|
]),
|
|
1603
1603
|
_: 1
|
|
1604
1604
|
}),
|
|
1605
|
-
l(
|
|
1605
|
+
l(v, {
|
|
1606
1606
|
title: "图形配置",
|
|
1607
1607
|
name: "2"
|
|
1608
1608
|
}, {
|
|
1609
1609
|
default: u(() => [
|
|
1610
|
-
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 }, {
|
|
1611
1611
|
default: u(() => [
|
|
1612
|
-
l(
|
|
1612
|
+
l(f, { span: 24 }, {
|
|
1613
1613
|
default: u(() => [
|
|
1614
|
-
n[13] || (n[13] =
|
|
1614
|
+
n[13] || (n[13] = T("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
1615
1615
|
l(i, {
|
|
1616
1616
|
onChange: a,
|
|
1617
1617
|
modelValue: e.value.options.series[0].roseType,
|
|
1618
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
1618
|
+
"onUpdate:modelValue": n[6] || (n[6] = (b) => e.value.options.series[0].roseType = b)
|
|
1619
1619
|
}, null, 8, ["modelValue"])
|
|
1620
1620
|
]),
|
|
1621
1621
|
_: 1
|
|
1622
1622
|
})
|
|
1623
1623
|
]),
|
|
1624
1624
|
_: 1
|
|
1625
|
-
})) :
|
|
1625
|
+
})) : O("", !0)
|
|
1626
1626
|
]),
|
|
1627
1627
|
_: 1
|
|
1628
1628
|
}),
|
|
1629
|
-
l(
|
|
1629
|
+
l(v, {
|
|
1630
1630
|
title: "图例配置",
|
|
1631
1631
|
name: "3"
|
|
1632
1632
|
}, {
|
|
1633
1633
|
default: u(() => [
|
|
1634
|
-
l(
|
|
1634
|
+
l(w, null, {
|
|
1635
1635
|
default: u(() => [
|
|
1636
|
-
l(
|
|
1636
|
+
l(f, { span: 24 }, {
|
|
1637
1637
|
default: u(() => [
|
|
1638
|
-
n[14] || (n[14] =
|
|
1639
|
-
e.value.options.legend ? (m(),
|
|
1638
|
+
n[14] || (n[14] = T("span", { class: "switch-label" }, "显示图例", -1)),
|
|
1639
|
+
e.value.options.legend ? (m(), L(i, {
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
modelValue: e.value.options.legend.show,
|
|
1642
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
1643
|
-
}, null, 8, ["modelValue"])) :
|
|
1642
|
+
"onUpdate:modelValue": n[7] || (n[7] = (b) => e.value.options.legend.show = b)
|
|
1643
|
+
}, null, 8, ["modelValue"])) : O("", !0)
|
|
1644
1644
|
]),
|
|
1645
1645
|
_: 1
|
|
1646
1646
|
})
|
|
@@ -1653,16 +1653,16 @@ const Re = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-80f89a01"]]), Wt = {
|
|
|
1653
1653
|
]),
|
|
1654
1654
|
_: 1
|
|
1655
1655
|
})
|
|
1656
|
-
])) :
|
|
1656
|
+
])) : O("", !0);
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
1659
|
});
|
|
1660
|
-
const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @__PURE__ */
|
|
1660
|
+
const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @__PURE__ */ E({
|
|
1661
1661
|
__name: "SettingDescribe",
|
|
1662
1662
|
setup(o) {
|
|
1663
1663
|
const t = q(), e = K(() => t.getActiveComponents);
|
|
1664
1664
|
return (a, r) => {
|
|
1665
|
-
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");
|
|
1666
1666
|
return m(), C("div", null, [
|
|
1667
1667
|
l(A, { label: "标题" }, {
|
|
1668
1668
|
default: u(() => [
|
|
@@ -1701,15 +1701,15 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1701
1701
|
"onUpdate:modelValue": r[3] || (r[3] = (c) => e.value.options.direction = c)
|
|
1702
1702
|
}, {
|
|
1703
1703
|
default: u(() => [
|
|
1704
|
-
l(
|
|
1704
|
+
l(f, { value: "horizontal" }, {
|
|
1705
1705
|
default: u(() => r[4] || (r[4] = [
|
|
1706
|
-
|
|
1706
|
+
U("横向")
|
|
1707
1707
|
])),
|
|
1708
1708
|
_: 1
|
|
1709
1709
|
}),
|
|
1710
|
-
l(
|
|
1710
|
+
l(f, { value: "vertical" }, {
|
|
1711
1711
|
default: u(() => r[5] || (r[5] = [
|
|
1712
|
-
|
|
1712
|
+
U("纵向")
|
|
1713
1713
|
])),
|
|
1714
1714
|
_: 1
|
|
1715
1715
|
})
|
|
@@ -1722,51 +1722,51 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1722
1722
|
]);
|
|
1723
1723
|
};
|
|
1724
1724
|
}
|
|
1725
|
-
}), po = /* @__PURE__ */
|
|
1725
|
+
}), po = /* @__PURE__ */ E({
|
|
1726
1726
|
__name: "SettingCharts",
|
|
1727
1727
|
setup(o) {
|
|
1728
|
-
const t = q(), e =
|
|
1728
|
+
const t = q(), e = D(!1), a = K(() => t.getActiveComponents), r = [
|
|
1729
1729
|
{ value: "report-describe", name: "描述列表" },
|
|
1730
1730
|
{ value: "report-table", name: "表格" },
|
|
1731
1731
|
{ value: "line", name: "趋势图" },
|
|
1732
1732
|
{ value: "pie", name: "扇形图" },
|
|
1733
1733
|
{ value: "bar", name: "柱状图" }
|
|
1734
|
-
], n =
|
|
1734
|
+
], n = D(""), A = D();
|
|
1735
1735
|
async function d(p) {
|
|
1736
|
-
const c = window.windowGlobalVar.SYSTEM_NORMAL,
|
|
1736
|
+
const c = window.windowGlobalVar.SYSTEM_NORMAL, w = await Ce({
|
|
1737
1737
|
prod_type: window.$prodType,
|
|
1738
1738
|
chart_type: p,
|
|
1739
1739
|
filter_uuid: t.filterForm.filter_uuid,
|
|
1740
1740
|
cg_linkage: c ? 1 : c ? void 0 : 0
|
|
1741
1741
|
});
|
|
1742
|
-
A.value =
|
|
1742
|
+
A.value = w.data;
|
|
1743
1743
|
}
|
|
1744
1744
|
function i(p) {
|
|
1745
|
-
let c = A.value.find((
|
|
1746
|
-
const
|
|
1747
|
-
if (c.rp_item_content.type === "bar" && (
|
|
1748
|
-
let
|
|
1749
|
-
|
|
1750
|
-
|
|
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 }));
|
|
1751
1751
|
});
|
|
1752
|
-
const
|
|
1752
|
+
const V = {
|
|
1753
1753
|
name: "name",
|
|
1754
|
-
value:
|
|
1754
|
+
value: v
|
|
1755
1755
|
};
|
|
1756
|
-
|
|
1756
|
+
w.options = te([], V);
|
|
1757
1757
|
}
|
|
1758
|
-
if (
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}),
|
|
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 };
|
|
1763
1763
|
}
|
|
1764
|
-
|
|
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;
|
|
1765
1765
|
}
|
|
1766
1766
|
se(async () => {
|
|
1767
1767
|
n.value = a.value.type, await d(n.value);
|
|
1768
1768
|
});
|
|
1769
|
-
async function
|
|
1769
|
+
async function f(p) {
|
|
1770
1770
|
try {
|
|
1771
1771
|
e.value = !0, await d(p);
|
|
1772
1772
|
} catch (c) {
|
|
@@ -1781,23 +1781,23 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1781
1781
|
console.log(p, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe"].indexOf(p.type) && (n.value = a.value.type, d(n.value));
|
|
1782
1782
|
}
|
|
1783
1783
|
), (p, c) => {
|
|
1784
|
-
const
|
|
1784
|
+
const w = s("el-option"), v = s("el-select"), V = s("el-form-item"), b = s("el-form"), g = we("loading");
|
|
1785
1785
|
return Ae((m(), C("div", null, [
|
|
1786
|
-
l(
|
|
1786
|
+
l(b, { "label-position": "top" }, {
|
|
1787
1787
|
default: u(() => [
|
|
1788
|
-
l(
|
|
1788
|
+
l(V, { label: "图表类型" }, {
|
|
1789
1789
|
default: u(() => [
|
|
1790
|
-
l(
|
|
1790
|
+
l(v, {
|
|
1791
1791
|
style: { width: "100%" },
|
|
1792
1792
|
modelValue: n.value,
|
|
1793
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1794
|
-
onChange:
|
|
1793
|
+
"onUpdate:modelValue": c[0] || (c[0] = (x) => n.value = x),
|
|
1794
|
+
onChange: f
|
|
1795
1795
|
}, {
|
|
1796
1796
|
default: u(() => [
|
|
1797
|
-
(m(), C(
|
|
1798
|
-
key:
|
|
1799
|
-
label:
|
|
1800
|
-
value:
|
|
1797
|
+
(m(), C(P, null, I(r, (x, _) => l(w, {
|
|
1798
|
+
key: _,
|
|
1799
|
+
label: x.name,
|
|
1800
|
+
value: x.value
|
|
1801
1801
|
}, null, 8, ["label", "value"])), 64))
|
|
1802
1802
|
]),
|
|
1803
1803
|
_: 1
|
|
@@ -1805,19 +1805,19 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1805
1805
|
]),
|
|
1806
1806
|
_: 1
|
|
1807
1807
|
}),
|
|
1808
|
-
l(
|
|
1808
|
+
l(V, { label: "组件库" }, {
|
|
1809
1809
|
default: u(() => [
|
|
1810
|
-
l(
|
|
1810
|
+
l(v, {
|
|
1811
1811
|
style: { width: "100%" },
|
|
1812
|
-
modelValue:
|
|
1813
|
-
"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),
|
|
1814
1814
|
onChange: i
|
|
1815
1815
|
}, {
|
|
1816
1816
|
default: u(() => [
|
|
1817
|
-
(m(!0), C(
|
|
1818
|
-
key:
|
|
1819
|
-
label:
|
|
1820
|
-
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
|
|
1821
1821
|
}, null, 8, ["label", "value"]))), 128))
|
|
1822
1822
|
]),
|
|
1823
1823
|
_: 1
|
|
@@ -1825,23 +1825,23 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1825
1825
|
]),
|
|
1826
1826
|
_: 1
|
|
1827
1827
|
}),
|
|
1828
|
-
n.value === "report-table" && a.value.options.showColumn ? (m(),
|
|
1829
|
-
n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(),
|
|
1830
|
-
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)
|
|
1831
1831
|
]),
|
|
1832
1832
|
_: 1
|
|
1833
1833
|
})
|
|
1834
1834
|
])), [
|
|
1835
|
-
[
|
|
1835
|
+
[g, e.value]
|
|
1836
1836
|
]);
|
|
1837
1837
|
};
|
|
1838
1838
|
}
|
|
1839
|
-
}), 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({
|
|
1840
1840
|
__name: "SettingText",
|
|
1841
1841
|
setup(o) {
|
|
1842
|
-
const t = q(), e = Me(), a =
|
|
1842
|
+
const t = q(), e = Me(), a = D();
|
|
1843
1843
|
function r(p) {
|
|
1844
|
-
const c = a.value.find((
|
|
1844
|
+
const c = a.value.find((w) => w.rp_item_uuid === p);
|
|
1845
1845
|
t.activeComponents.uri = c.rp_item_content.uri, e.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
|
|
1846
1846
|
}
|
|
1847
1847
|
async function n() {
|
|
@@ -1878,29 +1878,29 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1878
1878
|
]
|
|
1879
1879
|
}, d = { placeholder: "请输入内容..." }, i = (p) => {
|
|
1880
1880
|
e.value = p;
|
|
1881
|
-
},
|
|
1881
|
+
}, f = (p) => {
|
|
1882
1882
|
};
|
|
1883
1883
|
return Ke(() => {
|
|
1884
1884
|
const p = e.value;
|
|
1885
1885
|
p != null && p.destroy();
|
|
1886
1886
|
}), (p, c) => {
|
|
1887
|
-
const
|
|
1888
|
-
return
|
|
1889
|
-
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" }, {
|
|
1890
1890
|
default: u(() => [
|
|
1891
|
-
l(
|
|
1891
|
+
l(V, { label: "组件库" }, {
|
|
1892
1892
|
default: u(() => [
|
|
1893
|
-
l(
|
|
1893
|
+
l(v, {
|
|
1894
1894
|
style: { width: "100%" },
|
|
1895
|
-
modelValue:
|
|
1896
|
-
"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),
|
|
1897
1897
|
onChange: r
|
|
1898
1898
|
}, {
|
|
1899
1899
|
default: u(() => [
|
|
1900
|
-
(m(!0), C(
|
|
1901
|
-
key:
|
|
1902
|
-
label:
|
|
1903
|
-
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
|
|
1904
1904
|
}, null, 8, ["label", "value"]))), 128))
|
|
1905
1905
|
]),
|
|
1906
1906
|
_: 1
|
|
@@ -1908,20 +1908,20 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1908
1908
|
]),
|
|
1909
1909
|
_: 1
|
|
1910
1910
|
}),
|
|
1911
|
-
l(
|
|
1911
|
+
l(V, { label: "文本内容" }, {
|
|
1912
1912
|
default: u(() => [
|
|
1913
|
-
|
|
1914
|
-
l(
|
|
1913
|
+
T("div", mo, [
|
|
1914
|
+
l(y(je), {
|
|
1915
1915
|
style: { "border-bottom": "1px solid #ccc" },
|
|
1916
1916
|
editor: e.value,
|
|
1917
1917
|
"default-config": A,
|
|
1918
1918
|
mode: ce
|
|
1919
1919
|
}, null, 8, ["editor"]),
|
|
1920
|
-
l(
|
|
1920
|
+
l(y(Ze), {
|
|
1921
1921
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
1922
|
-
onOnChange:
|
|
1923
|
-
modelValue:
|
|
1924
|
-
"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),
|
|
1925
1925
|
"default-config": d,
|
|
1926
1926
|
mode: ce,
|
|
1927
1927
|
onOnCreated: i
|
|
@@ -1933,20 +1933,20 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1933
1933
|
]),
|
|
1934
1934
|
_: 1
|
|
1935
1935
|
})
|
|
1936
|
-
])) :
|
|
1936
|
+
])) : O("", !0);
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
}), go = /* @__PURE__ */
|
|
1939
|
+
}), go = /* @__PURE__ */ E({
|
|
1940
1940
|
__name: "SettingFilter",
|
|
1941
1941
|
setup(o) {
|
|
1942
|
-
const t =
|
|
1942
|
+
const t = D([]), e = q();
|
|
1943
1943
|
async function a() {
|
|
1944
1944
|
const r = await xe({ prod_type: window.$prodType });
|
|
1945
1945
|
t.value = r.data;
|
|
1946
1946
|
}
|
|
1947
1947
|
return a(), (r, n) => {
|
|
1948
|
-
const A = s("el-option"), d = s("el-select"), i = s("el-form-item"),
|
|
1949
|
-
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, {
|
|
1950
1950
|
"label-width": "80px",
|
|
1951
1951
|
"label-position": "top"
|
|
1952
1952
|
}, {
|
|
@@ -1954,12 +1954,12 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1954
1954
|
l(i, { label: "筛选条件" }, {
|
|
1955
1955
|
default: u(() => [
|
|
1956
1956
|
l(d, {
|
|
1957
|
-
modelValue:
|
|
1958
|
-
"onUpdate:modelValue": n[0] || (n[0] = (c) =>
|
|
1959
|
-
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
|
|
1960
1960
|
}, {
|
|
1961
1961
|
default: u(() => [
|
|
1962
|
-
(m(!0), C(
|
|
1962
|
+
(m(!0), C(P, null, I(t.value, (c) => (m(), L(A, {
|
|
1963
1963
|
key: c.filter_uuid,
|
|
1964
1964
|
label: c.filter_name,
|
|
1965
1965
|
value: c.filter_uuid
|
|
@@ -1972,9 +1972,9 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1972
1972
|
}),
|
|
1973
1973
|
l(i, null, {
|
|
1974
1974
|
default: u(() => [
|
|
1975
|
-
l(
|
|
1976
|
-
modelValue:
|
|
1977
|
-
"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),
|
|
1978
1978
|
"true-value": 1,
|
|
1979
1979
|
"false-value": 0,
|
|
1980
1980
|
label: "时间范围"
|
|
@@ -1987,13 +1987,13 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
1987
1987
|
});
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
|
-
}), vo = /* @__PURE__ */
|
|
1990
|
+
}), vo = /* @__PURE__ */ E({
|
|
1991
1991
|
__name: "SettingTitle",
|
|
1992
1992
|
setup(o) {
|
|
1993
1993
|
const t = q();
|
|
1994
1994
|
return (e, a) => {
|
|
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"),
|
|
1996
|
-
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, {
|
|
1997
1997
|
"label-width": "auto",
|
|
1998
1998
|
"label-position": "top"
|
|
1999
1999
|
}, {
|
|
@@ -2001,8 +2001,8 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
2001
2001
|
l(n, { label: "名称" }, {
|
|
2002
2002
|
default: u(() => [
|
|
2003
2003
|
l(r, {
|
|
2004
|
-
modelValue:
|
|
2005
|
-
"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),
|
|
2006
2006
|
placeholder: "Please input",
|
|
2007
2007
|
maxlength: "24",
|
|
2008
2008
|
"show-word-limit": ""
|
|
@@ -2017,92 +2017,92 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
2017
2017
|
l(d, { span: 12 }, {
|
|
2018
2018
|
default: u(() => [
|
|
2019
2019
|
l(A, {
|
|
2020
|
-
modelValue:
|
|
2021
|
-
"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),
|
|
2022
2022
|
"show-alpha": ""
|
|
2023
2023
|
}, null, 8, ["modelValue"]),
|
|
2024
|
-
a[7] || (a[7] =
|
|
2024
|
+
a[7] || (a[7] = T("p", { class: "sub-title" }, "颜色", -1))
|
|
2025
2025
|
]),
|
|
2026
2026
|
_: 1
|
|
2027
2027
|
}),
|
|
2028
2028
|
l(d, { span: 12 }, {
|
|
2029
2029
|
default: u(() => [
|
|
2030
2030
|
l(i, {
|
|
2031
|
-
modelValue:
|
|
2032
|
-
"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),
|
|
2033
2033
|
"controls-position": "right"
|
|
2034
2034
|
}, null, 8, ["modelValue"]),
|
|
2035
|
-
a[8] || (a[8] =
|
|
2035
|
+
a[8] || (a[8] = T("p", { class: "sub-title" }, "字体大小", -1))
|
|
2036
2036
|
]),
|
|
2037
2037
|
_: 1
|
|
2038
2038
|
}),
|
|
2039
2039
|
l(d, { span: 12 }, {
|
|
2040
2040
|
default: u(() => [
|
|
2041
2041
|
l(p, {
|
|
2042
|
-
modelValue:
|
|
2043
|
-
"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)
|
|
2044
2044
|
}, {
|
|
2045
2045
|
default: u(() => [
|
|
2046
|
-
l(
|
|
2046
|
+
l(f, {
|
|
2047
2047
|
label: "常规",
|
|
2048
2048
|
value: 500
|
|
2049
2049
|
}),
|
|
2050
|
-
l(
|
|
2050
|
+
l(f, {
|
|
2051
2051
|
label: "加粗",
|
|
2052
2052
|
value: 600
|
|
2053
2053
|
})
|
|
2054
2054
|
]),
|
|
2055
2055
|
_: 1
|
|
2056
2056
|
}, 8, ["modelValue"]),
|
|
2057
|
-
a[9] || (a[9] =
|
|
2057
|
+
a[9] || (a[9] = T("p", { class: "sub-title" }, "字体粗细", -1))
|
|
2058
2058
|
]),
|
|
2059
2059
|
_: 1
|
|
2060
2060
|
}),
|
|
2061
2061
|
l(d, { span: 12 }, {
|
|
2062
2062
|
default: u(() => [
|
|
2063
2063
|
l(i, {
|
|
2064
|
-
modelValue:
|
|
2065
|
-
"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),
|
|
2066
2066
|
"controls-position": "right"
|
|
2067
2067
|
}, null, 8, ["modelValue"]),
|
|
2068
|
-
a[10] || (a[10] =
|
|
2068
|
+
a[10] || (a[10] = T("p", { class: "sub-title" }, "字间距", -1))
|
|
2069
2069
|
]),
|
|
2070
2070
|
_: 1
|
|
2071
2071
|
}),
|
|
2072
2072
|
l(d, { span: 12 }, {
|
|
2073
2073
|
default: u(() => [
|
|
2074
2074
|
l(i, {
|
|
2075
|
-
modelValue:
|
|
2076
|
-
"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),
|
|
2077
2077
|
"controls-position": "right"
|
|
2078
2078
|
}, null, 8, ["modelValue"]),
|
|
2079
|
-
a[11] || (a[11] =
|
|
2079
|
+
a[11] || (a[11] = T("p", { class: "sub-title" }, "首行缩进", -1))
|
|
2080
2080
|
]),
|
|
2081
2081
|
_: 1
|
|
2082
2082
|
}),
|
|
2083
2083
|
l(d, { span: 12 }, {
|
|
2084
2084
|
default: u(() => [
|
|
2085
2085
|
l(p, {
|
|
2086
|
-
modelValue:
|
|
2087
|
-
"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)
|
|
2088
2088
|
}, {
|
|
2089
2089
|
default: u(() => [
|
|
2090
|
-
l(
|
|
2090
|
+
l(f, {
|
|
2091
2091
|
label: "左对齐",
|
|
2092
2092
|
value: "left"
|
|
2093
2093
|
}),
|
|
2094
|
-
l(
|
|
2094
|
+
l(f, {
|
|
2095
2095
|
label: "居中对齐",
|
|
2096
2096
|
value: "center"
|
|
2097
2097
|
}),
|
|
2098
|
-
l(
|
|
2098
|
+
l(f, {
|
|
2099
2099
|
label: "右对齐",
|
|
2100
2100
|
value: "right"
|
|
2101
2101
|
})
|
|
2102
2102
|
]),
|
|
2103
2103
|
_: 1
|
|
2104
2104
|
}, 8, ["modelValue"]),
|
|
2105
|
-
a[12] || (a[12] =
|
|
2105
|
+
a[12] || (a[12] = T("p", { class: "sub-title" }, "位置", -1))
|
|
2106
2106
|
]),
|
|
2107
2107
|
_: 1
|
|
2108
2108
|
})
|
|
@@ -2118,7 +2118,7 @@ const uo = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-e9859d3b"]]), Oe = /* @_
|
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
2120
|
});
|
|
2121
|
-
const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */
|
|
2121
|
+
const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @__PURE__ */ E({
|
|
2122
2122
|
__name: "Setting",
|
|
2123
2123
|
setup(o) {
|
|
2124
2124
|
const t = {
|
|
@@ -2128,18 +2128,18 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2128
2128
|
SettingText: fo,
|
|
2129
2129
|
SettingFilter: go,
|
|
2130
2130
|
SettingTitle: _o
|
|
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) ?
|
|
2132
|
-
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) => {
|
|
2133
2133
|
const p = s("el-card");
|
|
2134
|
-
return m(),
|
|
2134
|
+
return m(), L(p, { class: "config-wrapper" }, {
|
|
2135
2135
|
default: u(() => [
|
|
2136
|
-
(m(),
|
|
2136
|
+
(m(), L($(d(a.value.type))))
|
|
2137
2137
|
]),
|
|
2138
2138
|
_: 1
|
|
2139
2139
|
});
|
|
2140
2140
|
};
|
|
2141
2141
|
}
|
|
2142
|
-
}), 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({
|
|
2143
2143
|
__name: "index",
|
|
2144
2144
|
props: /* @__PURE__ */ ve({
|
|
2145
2145
|
reportId: {
|
|
@@ -2153,8 +2153,8 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2153
2153
|
emits: ["update:modelValue"],
|
|
2154
2154
|
setup(o) {
|
|
2155
2155
|
const t = q(), e = o, a = _e(o, "modelValue"), r = (i) => {
|
|
2156
|
-
const
|
|
2157
|
-
|
|
2156
|
+
const f = ee(i);
|
|
2157
|
+
f.id = F(), t.componentList.push(f);
|
|
2158
2158
|
};
|
|
2159
2159
|
function n() {
|
|
2160
2160
|
a.value = "table";
|
|
@@ -2193,24 +2193,24 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2193
2193
|
}
|
|
2194
2194
|
return qe(() => {
|
|
2195
2195
|
t.clearComponents();
|
|
2196
|
-
}), (i,
|
|
2197
|
-
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");
|
|
2198
2198
|
return m(), C("div", wo, [
|
|
2199
|
-
l(
|
|
2199
|
+
l(w, { class: "view-wrapper" }, {
|
|
2200
2200
|
default: u(() => [
|
|
2201
|
-
|
|
2202
|
-
|
|
2201
|
+
T("div", yo, [
|
|
2202
|
+
T("div", ho, [
|
|
2203
2203
|
l(c, null, {
|
|
2204
2204
|
default: u(() => [
|
|
2205
|
-
(m(!0), C(
|
|
2206
|
-
key:
|
|
2205
|
+
(m(!0), C(P, null, I(y(Et), (v) => (m(), C(P, {
|
|
2206
|
+
key: v.type
|
|
2207
2207
|
}, [
|
|
2208
|
-
|
|
2208
|
+
v != null && v.hide ? O("", !0) : (m(), L(p, {
|
|
2209
2209
|
key: 0,
|
|
2210
|
-
onClick: (
|
|
2210
|
+
onClick: (V) => r(v)
|
|
2211
2211
|
}, {
|
|
2212
2212
|
default: u(() => [
|
|
2213
|
-
|
|
2213
|
+
U(M(v.name), 1)
|
|
2214
2214
|
]),
|
|
2215
2215
|
_: 2
|
|
2216
2216
|
}, 1032, ["onClick"]))
|
|
@@ -2225,14 +2225,14 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2225
2225
|
type: "primary",
|
|
2226
2226
|
onClick: d
|
|
2227
2227
|
}, {
|
|
2228
|
-
default: u(() =>
|
|
2229
|
-
|
|
2228
|
+
default: u(() => f[0] || (f[0] = [
|
|
2229
|
+
U("保存")
|
|
2230
2230
|
])),
|
|
2231
2231
|
_: 1
|
|
2232
2232
|
}),
|
|
2233
2233
|
l(p, { onClick: n }, {
|
|
2234
|
-
default: u(() =>
|
|
2235
|
-
|
|
2234
|
+
default: u(() => f[1] || (f[1] = [
|
|
2235
|
+
U("退出")
|
|
2236
2236
|
])),
|
|
2237
2237
|
_: 1
|
|
2238
2238
|
})
|
|
@@ -2250,7 +2250,7 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2250
2250
|
}
|
|
2251
2251
|
}), xo = {
|
|
2252
2252
|
class: "table-box"
|
|
2253
|
-
}, To = /* @__PURE__ */
|
|
2253
|
+
}, To = /* @__PURE__ */ E({
|
|
2254
2254
|
__name: "Report",
|
|
2255
2255
|
emits: ["click"],
|
|
2256
2256
|
setup(o, {
|
|
@@ -2259,21 +2259,21 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2259
2259
|
const e = window.windowGlobalVar.SYSTEM_NORMAL, a = K(() => ({
|
|
2260
2260
|
prod_type: window.$prodType,
|
|
2261
2261
|
cg_linkage: e ? 1 : e ? void 0 : 0
|
|
2262
|
-
})), r =
|
|
2263
|
-
n("click",
|
|
2264
|
-
}, d = (
|
|
2265
|
-
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");
|
|
2266
2266
|
}, i = () => {
|
|
2267
2267
|
n("click", "", "editor");
|
|
2268
|
-
},
|
|
2269
|
-
console.log(
|
|
2270
|
-
}, p = (
|
|
2268
|
+
}, f = (v) => {
|
|
2269
|
+
console.log(v);
|
|
2270
|
+
}, p = (v) => {
|
|
2271
2271
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2272
2272
|
await rt({
|
|
2273
|
-
report_uuids:
|
|
2273
|
+
report_uuids: v
|
|
2274
2274
|
}), r.value.getTableList();
|
|
2275
2275
|
});
|
|
2276
|
-
}, c = (
|
|
2276
|
+
}, c = (v) => v.report_type === 1, w = J([
|
|
2277
2277
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
2278
2278
|
{
|
|
2279
2279
|
type: "selection",
|
|
@@ -2300,61 +2300,61 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2300
2300
|
name: "操作",
|
|
2301
2301
|
align: "center",
|
|
2302
2302
|
fixed: "right",
|
|
2303
|
-
render: (
|
|
2303
|
+
render: (v) => l("div", null, [l(s("el-button"), {
|
|
2304
2304
|
link: !0,
|
|
2305
2305
|
type: "primary",
|
|
2306
2306
|
class: "custom-btn",
|
|
2307
2307
|
icon: "View",
|
|
2308
2308
|
title: "预览",
|
|
2309
|
-
onClick: () => A(
|
|
2309
|
+
onClick: () => A(v.row)
|
|
2310
2310
|
}, null), l(s("el-button"), {
|
|
2311
2311
|
link: !0,
|
|
2312
2312
|
type: "primary",
|
|
2313
2313
|
class: "custom-btn",
|
|
2314
2314
|
icon: "Edit",
|
|
2315
2315
|
title: "编辑",
|
|
2316
|
-
disabled:
|
|
2317
|
-
onClick: () => d(
|
|
2316
|
+
disabled: v.row.report_type === 0,
|
|
2317
|
+
onClick: () => d(v.row)
|
|
2318
2318
|
}, null), l(s("el-button"), {
|
|
2319
2319
|
link: !0,
|
|
2320
2320
|
type: "danger",
|
|
2321
2321
|
icon: "Delete",
|
|
2322
2322
|
title: "删除",
|
|
2323
|
-
disabled:
|
|
2324
|
-
onClick: () => p([
|
|
2323
|
+
disabled: v.row.report_type === 0,
|
|
2324
|
+
onClick: () => p([v.row.report_uuid])
|
|
2325
2325
|
}, null)])
|
|
2326
2326
|
}
|
|
2327
2327
|
]);
|
|
2328
|
-
return (
|
|
2329
|
-
const
|
|
2330
|
-
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, {
|
|
2331
2331
|
ref_key: "proTable",
|
|
2332
2332
|
ref: r,
|
|
2333
|
-
columns:
|
|
2334
|
-
"request-api":
|
|
2333
|
+
columns: w,
|
|
2334
|
+
"request-api": y(at),
|
|
2335
2335
|
"init-param": a.value,
|
|
2336
2336
|
"row-key": "report_uuid",
|
|
2337
|
-
options:
|
|
2337
|
+
options: v.$tableOptions(),
|
|
2338
2338
|
"search-col": 6,
|
|
2339
2339
|
selectable: c,
|
|
2340
|
-
onSelectionChange:
|
|
2340
|
+
onSelectionChange: f
|
|
2341
2341
|
}, {
|
|
2342
|
-
tableHeader: u((
|
|
2342
|
+
tableHeader: u((x) => [l(b, {
|
|
2343
2343
|
plain: "",
|
|
2344
2344
|
type: "primary",
|
|
2345
2345
|
class: "custom-btn",
|
|
2346
2346
|
icon: "Plus",
|
|
2347
2347
|
onClick: i
|
|
2348
2348
|
}, {
|
|
2349
|
-
default: u(() =>
|
|
2349
|
+
default: u(() => V[0] || (V[0] = [U("新建")])),
|
|
2350
2350
|
_: 1
|
|
2351
|
-
}), l(
|
|
2351
|
+
}), l(b, {
|
|
2352
2352
|
plain: "",
|
|
2353
2353
|
type: "danger",
|
|
2354
2354
|
icon: "Delete",
|
|
2355
|
-
onClick: (
|
|
2355
|
+
onClick: (_) => p(x.selectedListIds)
|
|
2356
2356
|
}, {
|
|
2357
|
-
default: u(() =>
|
|
2357
|
+
default: u(() => V[1] || (V[1] = [U("删除")])),
|
|
2358
2358
|
_: 2
|
|
2359
2359
|
}, 1032, ["onClick"])]),
|
|
2360
2360
|
_: 1
|
|
@@ -2362,32 +2362,32 @@ const _o = /* @__PURE__ */ Z(vo, [["__scopeId", "data-v-56fef84c"]]), bo = /* @_
|
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
2364
|
});
|
|
2365
|
-
const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */
|
|
2365
|
+
const Bo = { style: { height: "100%" } }, ko = /* @__PURE__ */ E({
|
|
2366
2366
|
name: "TCReport",
|
|
2367
2367
|
__name: "index",
|
|
2368
2368
|
setup(o) {
|
|
2369
|
-
const t =
|
|
2369
|
+
const t = D(), e = D("table"), a = (r, n) => {
|
|
2370
2370
|
t.value = r, e.value = n;
|
|
2371
2371
|
};
|
|
2372
2372
|
return (r, n) => (m(), C("div", Bo, [
|
|
2373
2373
|
l(He, { name: "slide-fade" }, {
|
|
2374
2374
|
default: u(() => [
|
|
2375
|
-
e.value === "table" ? (m(),
|
|
2375
|
+
e.value === "table" ? (m(), L(To, {
|
|
2376
2376
|
key: 0,
|
|
2377
2377
|
onClick: a
|
|
2378
|
-
})) :
|
|
2379
|
-
e.value === "review" ? (m(),
|
|
2378
|
+
})) : O("", !0),
|
|
2379
|
+
e.value === "review" ? (m(), L(Re, {
|
|
2380
2380
|
key: 1,
|
|
2381
2381
|
"report-id": t.value,
|
|
2382
2382
|
modelValue: e.value,
|
|
2383
2383
|
"onUpdate:modelValue": n[0] || (n[0] = (A) => e.value = A)
|
|
2384
|
-
}, null, 8, ["report-id", "modelValue"])) :
|
|
2385
|
-
e.value === "editor" ? (m(),
|
|
2384
|
+
}, null, 8, ["report-id", "modelValue"])) : O("", !0),
|
|
2385
|
+
e.value === "editor" ? (m(), L(Co, {
|
|
2386
2386
|
key: 2,
|
|
2387
2387
|
"report-id": t.value,
|
|
2388
2388
|
modelValue: e.value,
|
|
2389
2389
|
"onUpdate:modelValue": n[1] || (n[1] = (A) => e.value = A)
|
|
2390
|
-
}, null, 8, ["report-id", "modelValue"])) :
|
|
2390
|
+
}, null, 8, ["report-id", "modelValue"])) : O("", !0)
|
|
2391
2391
|
]),
|
|
2392
2392
|
_: 1
|
|
2393
2393
|
})
|
|
@@ -2454,52 +2454,52 @@ const W = (o, t) => {
|
|
|
2454
2454
|
}
|
|
2455
2455
|
], Eo = {
|
|
2456
2456
|
class: "table-box"
|
|
2457
|
-
}, Uo = /* @__PURE__ */
|
|
2457
|
+
}, Uo = /* @__PURE__ */ E({
|
|
2458
2458
|
name: "TCModule",
|
|
2459
2459
|
__name: "index",
|
|
2460
2460
|
setup(o) {
|
|
2461
|
-
const t =
|
|
2461
|
+
const t = D(), e = D(), a = D({}), r = D(""), n = window.windowGlobalVar.SYSTEM_NORMAL, A = J({
|
|
2462
2462
|
prod_type: window.$prodType,
|
|
2463
2463
|
cg_linkage: n ? 1 : n ? void 0 : 0
|
|
2464
2464
|
});
|
|
2465
|
-
function d(
|
|
2465
|
+
function d(b) {
|
|
2466
2466
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
2467
2467
|
await st({
|
|
2468
|
-
rp_item_uuids:
|
|
2468
|
+
rp_item_uuids: b
|
|
2469
2469
|
}), t.value.getTableList();
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
|
-
function i(
|
|
2473
|
-
a.value =
|
|
2472
|
+
function i(b) {
|
|
2473
|
+
a.value = b ? Object.assign({}, b) : {
|
|
2474
2474
|
table_key_relation: [{
|
|
2475
2475
|
name: "",
|
|
2476
2476
|
key: "",
|
|
2477
2477
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2478
2478
|
}]
|
|
2479
|
-
}, r.value =
|
|
2479
|
+
}, r.value = b ? "编辑自定义组件" : "新增自定义组件", e.value.open();
|
|
2480
2480
|
}
|
|
2481
|
-
async function
|
|
2482
|
-
const
|
|
2483
|
-
|
|
2484
|
-
rp_item_uuid:
|
|
2485
|
-
data:
|
|
2486
|
-
}) : (
|
|
2487
|
-
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
|
|
2488
2488
|
})), t.value.getTableList(), e.value.close();
|
|
2489
2489
|
}
|
|
2490
|
-
const p = (
|
|
2491
|
-
a.value.table_key_relation.splice(
|
|
2490
|
+
const p = (b) => {
|
|
2491
|
+
a.value.table_key_relation.splice(b, 1);
|
|
2492
2492
|
}, c = () => {
|
|
2493
2493
|
a.value.table_key_relation.push({
|
|
2494
2494
|
name: "",
|
|
2495
2495
|
key: "",
|
|
2496
2496
|
id: (/* @__PURE__ */ new Date()).getTime()
|
|
2497
2497
|
});
|
|
2498
|
-
},
|
|
2499
|
-
delete
|
|
2500
|
-
|
|
2501
|
-
}),
|
|
2502
|
-
},
|
|
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([{
|
|
2503
2503
|
type: "selection",
|
|
2504
2504
|
width: 60,
|
|
2505
2505
|
field: "rp_item_uuid",
|
|
@@ -2555,7 +2555,7 @@ const W = (o, t) => {
|
|
|
2555
2555
|
hide: !0,
|
|
2556
2556
|
show: {
|
|
2557
2557
|
render: () => {
|
|
2558
|
-
var
|
|
2558
|
+
var b;
|
|
2559
2559
|
return l("div", {
|
|
2560
2560
|
style: "width:80%"
|
|
2561
2561
|
}, [l("div", {
|
|
@@ -2563,18 +2563,18 @@ const W = (o, t) => {
|
|
|
2563
2563
|
style: "gap:15px;"
|
|
2564
2564
|
}, [l("span", {
|
|
2565
2565
|
style: "width:50%"
|
|
2566
|
-
}, [
|
|
2566
|
+
}, [U("表头名称")]), l("span", {
|
|
2567
2567
|
style: "width:50%"
|
|
2568
|
-
}, [
|
|
2568
|
+
}, [U("KEY")])]), (b = a.value.table_key_relation) == null ? void 0 : b.map((g, x) => l("div", {
|
|
2569
2569
|
class: "flex items-center space-between form-m0 w-100%",
|
|
2570
2570
|
style: "gap:15px;margin-bottom:10px;",
|
|
2571
|
-
key:
|
|
2571
|
+
key: x
|
|
2572
2572
|
}, [l(s("el-form-item"), {
|
|
2573
2573
|
style: "width:50%"
|
|
2574
2574
|
}, {
|
|
2575
2575
|
default: () => [l(s("el-input"), {
|
|
2576
|
-
modelValue:
|
|
2577
|
-
"onUpdate:modelValue": (
|
|
2576
|
+
modelValue: g.name,
|
|
2577
|
+
"onUpdate:modelValue": (_) => g.name = _,
|
|
2578
2578
|
class: "",
|
|
2579
2579
|
placeholder: "表头"
|
|
2580
2580
|
}, null)]
|
|
@@ -2582,15 +2582,15 @@ const W = (o, t) => {
|
|
|
2582
2582
|
style: "width:50%"
|
|
2583
2583
|
}, {
|
|
2584
2584
|
default: () => [l(s("el-input"), {
|
|
2585
|
-
modelValue:
|
|
2586
|
-
"onUpdate:modelValue": (
|
|
2585
|
+
modelValue: g.key,
|
|
2586
|
+
"onUpdate:modelValue": (_) => g.key = _,
|
|
2587
2587
|
class: "",
|
|
2588
2588
|
placeholder: "KEY"
|
|
2589
2589
|
}, null)]
|
|
2590
2590
|
}), a.value.table_key_relation.length > 1 && l("div", {
|
|
2591
2591
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
2592
2592
|
}, [l(s("el-icon"), {
|
|
2593
|
-
onClick: () => p(
|
|
2593
|
+
onClick: () => p(x)
|
|
2594
2594
|
}, {
|
|
2595
2595
|
default: () => [l(We, null, null)]
|
|
2596
2596
|
})])])), l(s("el-button"), {
|
|
@@ -2598,7 +2598,7 @@ const W = (o, t) => {
|
|
|
2598
2598
|
icon: "Plus",
|
|
2599
2599
|
onClick: () => c()
|
|
2600
2600
|
}, {
|
|
2601
|
-
default: () => [
|
|
2601
|
+
default: () => [U("新增表头与KEY")]
|
|
2602
2602
|
})]);
|
|
2603
2603
|
}
|
|
2604
2604
|
},
|
|
@@ -2607,7 +2607,7 @@ const W = (o, t) => {
|
|
|
2607
2607
|
},
|
|
2608
2608
|
rules: [{
|
|
2609
2609
|
required: !0,
|
|
2610
|
-
validator:
|
|
2610
|
+
validator: w,
|
|
2611
2611
|
trigger: "blur"
|
|
2612
2612
|
}]
|
|
2613
2613
|
}, {
|
|
@@ -2633,64 +2633,64 @@ const W = (o, t) => {
|
|
|
2633
2633
|
name: "操作",
|
|
2634
2634
|
align: "center",
|
|
2635
2635
|
fixed: "right",
|
|
2636
|
-
render: (
|
|
2636
|
+
render: (b) => l("div", null, [l(s("el-button"), {
|
|
2637
2637
|
link: !0,
|
|
2638
2638
|
type: "primary",
|
|
2639
2639
|
class: "custom-btn",
|
|
2640
2640
|
icon: "Edit",
|
|
2641
2641
|
title: "编辑",
|
|
2642
|
-
disabled:
|
|
2643
|
-
onClick: () => i(
|
|
2642
|
+
disabled: b.row.item_type === 0,
|
|
2643
|
+
onClick: () => i(b.row)
|
|
2644
2644
|
}, null), l(s("el-button"), {
|
|
2645
2645
|
link: !0,
|
|
2646
2646
|
type: "danger",
|
|
2647
2647
|
icon: "Delete",
|
|
2648
2648
|
title: "删除",
|
|
2649
|
-
disabled:
|
|
2650
|
-
onClick: () => d([
|
|
2649
|
+
disabled: b.row.item_type === 0,
|
|
2650
|
+
onClick: () => d([b.row.rp_item_uuid])
|
|
2651
2651
|
}, null)])
|
|
2652
2652
|
}]);
|
|
2653
|
-
return (
|
|
2654
|
-
const
|
|
2655
|
-
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(_, {
|
|
2656
2656
|
ref_key: "refTdsTable",
|
|
2657
2657
|
ref: t,
|
|
2658
|
-
columns:
|
|
2659
|
-
"request-api":
|
|
2658
|
+
columns: V,
|
|
2659
|
+
"request-api": y(At),
|
|
2660
2660
|
"init-param": A,
|
|
2661
2661
|
"row-key": "rp_item_uuid",
|
|
2662
|
-
options:
|
|
2663
|
-
selectable:
|
|
2662
|
+
options: b.$tableOptions(),
|
|
2663
|
+
selectable: v,
|
|
2664
2664
|
"search-col": 6
|
|
2665
2665
|
}, {
|
|
2666
|
-
tableHeader: u((k) => [l(
|
|
2666
|
+
tableHeader: u((k) => [l(x, {
|
|
2667
2667
|
plain: "",
|
|
2668
2668
|
type: "primary",
|
|
2669
2669
|
class: "custom-btn",
|
|
2670
2670
|
icon: "Plus",
|
|
2671
|
-
onClick:
|
|
2671
|
+
onClick: g[0] || (g[0] = (H) => i())
|
|
2672
2672
|
}, {
|
|
2673
|
-
default: u(() =>
|
|
2673
|
+
default: u(() => g[1] || (g[1] = [U("新建")])),
|
|
2674
2674
|
_: 1
|
|
2675
|
-
}), l(
|
|
2675
|
+
}), l(x, {
|
|
2676
2676
|
plain: "",
|
|
2677
2677
|
type: "danger",
|
|
2678
2678
|
icon: "Delete",
|
|
2679
|
-
onClick: (
|
|
2679
|
+
onClick: (H) => d(k.selectedListIds)
|
|
2680
2680
|
}, {
|
|
2681
|
-
default: u(() =>
|
|
2681
|
+
default: u(() => g[2] || (g[2] = [U("删除")])),
|
|
2682
2682
|
_: 2
|
|
2683
2683
|
}, 1032, ["onClick"])]),
|
|
2684
2684
|
_: 1
|
|
2685
|
-
}, 8, ["columns", "request-api", "init-param", "options"]), l(
|
|
2685
|
+
}, 8, ["columns", "request-api", "init-param", "options"]), l(h, ye({
|
|
2686
2686
|
ref_key: "refTdsForm",
|
|
2687
2687
|
ref: e
|
|
2688
|
-
},
|
|
2688
|
+
}, b.$formBindProps({
|
|
2689
2689
|
title: r.value,
|
|
2690
2690
|
form: a.value,
|
|
2691
|
-
columns:
|
|
2691
|
+
columns: V
|
|
2692
2692
|
}), {
|
|
2693
|
-
onSubmit:
|
|
2693
|
+
onSubmit: f
|
|
2694
2694
|
}), null, 16)]);
|
|
2695
2695
|
};
|
|
2696
2696
|
}
|
|
@@ -2701,48 +2701,48 @@ const Ro = W(Uo), So = {
|
|
|
2701
2701
|
function me(o) {
|
|
2702
2702
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !ie(o);
|
|
2703
2703
|
}
|
|
2704
|
-
const Oo = /* @__PURE__ */
|
|
2704
|
+
const Oo = /* @__PURE__ */ E({
|
|
2705
2705
|
name: "TCSubscribe",
|
|
2706
2706
|
__name: "index",
|
|
2707
2707
|
setup(o) {
|
|
2708
|
-
const t =
|
|
2708
|
+
const t = D(), e = D(), {
|
|
2709
2709
|
$t: a,
|
|
2710
2710
|
$messageBox: r
|
|
2711
|
-
} = window, n =
|
|
2711
|
+
} = window, n = D(""), A = D({
|
|
2712
2712
|
receiver: []
|
|
2713
2713
|
});
|
|
2714
|
-
function d(
|
|
2715
|
-
r(
|
|
2714
|
+
function d(_) {
|
|
2715
|
+
r(_, "subscript_name", a("button.delete"), "error").then(async () => {
|
|
2716
2716
|
await mt({
|
|
2717
|
-
subscript_uuids:
|
|
2717
|
+
subscript_uuids: _.map((h) => h.subscript_uuid)
|
|
2718
2718
|
}), t.value.getTableList();
|
|
2719
2719
|
});
|
|
2720
2720
|
}
|
|
2721
2721
|
function i() {
|
|
2722
2722
|
d(t.value.selectedList);
|
|
2723
2723
|
}
|
|
2724
|
-
const
|
|
2725
|
-
A.value =
|
|
2724
|
+
const f = (_) => {
|
|
2725
|
+
A.value = _ ? Object.assign({}, _) : {
|
|
2726
2726
|
receiver: []
|
|
2727
|
-
}, n.value =
|
|
2727
|
+
}, n.value = _ ? "编辑报表订阅" : "新增报表订阅", e.value.open();
|
|
2728
2728
|
};
|
|
2729
|
-
async function p(
|
|
2730
|
-
const
|
|
2731
|
-
|
|
2732
|
-
subscript_uuid:
|
|
2733
|
-
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
|
|
2734
2734
|
}) : await pt({
|
|
2735
|
-
data:
|
|
2735
|
+
data: h
|
|
2736
2736
|
}), t.value.getTableList(), e.value.close();
|
|
2737
2737
|
}
|
|
2738
|
-
function c(
|
|
2739
|
-
if (!
|
|
2740
|
-
return
|
|
2741
|
-
|
|
2738
|
+
function c(_, h, k) {
|
|
2739
|
+
if (!h || h.length === 0)
|
|
2740
|
+
return k(new Error("请输入收件人"));
|
|
2741
|
+
k();
|
|
2742
2742
|
}
|
|
2743
|
-
const
|
|
2744
|
-
|
|
2745
|
-
},
|
|
2743
|
+
const w = (_, h) => {
|
|
2744
|
+
_.target.value && A.value[h].push(_.target.value);
|
|
2745
|
+
}, v = [{
|
|
2746
2746
|
label: "周一",
|
|
2747
2747
|
value: 1
|
|
2748
2748
|
}, {
|
|
@@ -2763,7 +2763,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2763
2763
|
}, {
|
|
2764
2764
|
label: "周日",
|
|
2765
2765
|
value: 0
|
|
2766
|
-
}],
|
|
2766
|
+
}], V = [{
|
|
2767
2767
|
label: "每天",
|
|
2768
2768
|
value: 0
|
|
2769
2769
|
}, {
|
|
@@ -2772,7 +2772,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2772
2772
|
}, {
|
|
2773
2773
|
label: "每月",
|
|
2774
2774
|
value: 2
|
|
2775
|
-
}],
|
|
2775
|
+
}], b = [], g = window.windowGlobalVar.SYSTEM_NORMAL ? 1 : window.windowGlobalVar.SYSTEM_NORMAL ? void 0 : 0, x = J([{
|
|
2776
2776
|
type: "selection",
|
|
2777
2777
|
align: "center",
|
|
2778
2778
|
field: "subscript_uuid",
|
|
@@ -2800,7 +2800,8 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2800
2800
|
field: "report_uuid",
|
|
2801
2801
|
name: "报表类型",
|
|
2802
2802
|
enum: () => gt({
|
|
2803
|
-
prod_type: window.$prodType
|
|
2803
|
+
prod_type: window.$prodType,
|
|
2804
|
+
cg_linkage: g
|
|
2804
2805
|
}),
|
|
2805
2806
|
fieldNames: {
|
|
2806
2807
|
label: "report_name",
|
|
@@ -2850,45 +2851,45 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2850
2851
|
key: window.$prodType
|
|
2851
2852
|
}
|
|
2852
2853
|
},
|
|
2853
|
-
render: (
|
|
2854
|
+
render: (_) => t.value.enumMap.get("dbsId").filter((H) => _.row.dbsId.indexOf(H.id) > -1).map((H) => l(s("el-tag"), {
|
|
2854
2855
|
class: "mr-10px",
|
|
2855
2856
|
type: "info"
|
|
2856
2857
|
}, {
|
|
2857
|
-
default: () => [
|
|
2858
|
+
default: () => [H.policy_name]
|
|
2858
2859
|
}))
|
|
2859
2860
|
}, {
|
|
2860
2861
|
field: "receiver_email",
|
|
2861
2862
|
name: "收件人",
|
|
2862
2863
|
width: 300,
|
|
2863
|
-
render: (
|
|
2864
|
+
render: (_) => l(P, null, [_.row.receiver_email.map((h) => l(s("el-tag"), {
|
|
2864
2865
|
class: "mr-10px",
|
|
2865
2866
|
type: "info"
|
|
2866
|
-
}, me(
|
|
2867
|
-
default: () => [
|
|
2867
|
+
}, me(h) ? h : {
|
|
2868
|
+
default: () => [h]
|
|
2868
2869
|
}))]),
|
|
2869
2870
|
show: {
|
|
2870
2871
|
type: "input",
|
|
2871
2872
|
render: () => {
|
|
2872
|
-
let
|
|
2873
|
-
return l(
|
|
2873
|
+
let _;
|
|
2874
|
+
return l(P, null, [l(s("el-select"), {
|
|
2874
2875
|
class: "right-select",
|
|
2875
2876
|
modelValue: A.value.receiver_email,
|
|
2876
|
-
"onUpdate:modelValue": (
|
|
2877
|
+
"onUpdate:modelValue": (h) => A.value.receiver_email = h,
|
|
2877
2878
|
placeholder: "请输入",
|
|
2878
2879
|
multiple: !0,
|
|
2879
2880
|
filterable: !0,
|
|
2880
2881
|
"allow-create": !0,
|
|
2881
2882
|
"default-first-option": !0,
|
|
2882
2883
|
"reserve-keyword": !1,
|
|
2883
|
-
onBlur: (
|
|
2884
|
-
}, me(
|
|
2885
|
-
label:
|
|
2886
|
-
value:
|
|
2887
|
-
}, null))) ?
|
|
2888
|
-
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: () => [_]
|
|
2889
2890
|
}), l("p", {
|
|
2890
2891
|
style: "font-size:12px;color:#909399;line-height:20px"
|
|
2891
|
-
}, [
|
|
2892
|
+
}, [U("可输入多个收件人邮箱,多个值间以“回车键”分隔,例:xxx@163.com xx@qq.com")])]);
|
|
2892
2893
|
}
|
|
2893
2894
|
},
|
|
2894
2895
|
rules: [{
|
|
@@ -2904,7 +2905,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2904
2905
|
field: "loop_type",
|
|
2905
2906
|
name: "发送周期",
|
|
2906
2907
|
hide: !0,
|
|
2907
|
-
enum:
|
|
2908
|
+
enum: V,
|
|
2908
2909
|
show: {
|
|
2909
2910
|
dataType: "number",
|
|
2910
2911
|
type: "select",
|
|
@@ -2927,9 +2928,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2927
2928
|
field: "day",
|
|
2928
2929
|
name: "日",
|
|
2929
2930
|
hide: !0,
|
|
2930
|
-
enum: [...Array(28)].map((
|
|
2931
|
-
label:
|
|
2932
|
-
value:
|
|
2931
|
+
enum: [...Array(28)].map((_, h) => ({
|
|
2932
|
+
label: h + 1 + "",
|
|
2933
|
+
value: h + 1
|
|
2933
2934
|
})),
|
|
2934
2935
|
show: {
|
|
2935
2936
|
type: "select"
|
|
@@ -2942,7 +2943,7 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2942
2943
|
field: "weekday",
|
|
2943
2944
|
name: "星期",
|
|
2944
2945
|
hide: !0,
|
|
2945
|
-
enum:
|
|
2946
|
+
enum: v,
|
|
2946
2947
|
show: {
|
|
2947
2948
|
type: "select"
|
|
2948
2949
|
},
|
|
@@ -2954,9 +2955,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2954
2955
|
field: "hour",
|
|
2955
2956
|
name: "小时",
|
|
2956
2957
|
hide: !0,
|
|
2957
|
-
enum: [...Array(24)].map((
|
|
2958
|
-
label:
|
|
2959
|
-
value:
|
|
2958
|
+
enum: [...Array(24)].map((_, h) => ({
|
|
2959
|
+
label: h + "时",
|
|
2960
|
+
value: h
|
|
2960
2961
|
})),
|
|
2961
2962
|
show: {
|
|
2962
2963
|
type: "select"
|
|
@@ -2969,9 +2970,9 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2969
2970
|
field: "minute",
|
|
2970
2971
|
name: "分钟",
|
|
2971
2972
|
hide: !0,
|
|
2972
|
-
enum: [...Array(60)].map((
|
|
2973
|
-
label:
|
|
2974
|
-
value:
|
|
2973
|
+
enum: [...Array(60)].map((_, h) => ({
|
|
2974
|
+
label: h + "分",
|
|
2975
|
+
value: h
|
|
2975
2976
|
})),
|
|
2976
2977
|
show: {
|
|
2977
2978
|
type: "select"
|
|
@@ -2983,15 +2984,15 @@ const Oo = /* @__PURE__ */ L({
|
|
|
2983
2984
|
}, {
|
|
2984
2985
|
field: "enable_status",
|
|
2985
2986
|
name: "启用状态",
|
|
2986
|
-
render: (
|
|
2987
|
-
modelValue:
|
|
2988
|
-
"onUpdate:modelValue": (
|
|
2987
|
+
render: (_) => l(s("el-switch"), {
|
|
2988
|
+
modelValue: _.row.enable_status,
|
|
2989
|
+
"onUpdate:modelValue": (h) => _.row.enable_status = h,
|
|
2989
2990
|
"active-value": 1,
|
|
2990
2991
|
"inactive-value": 0,
|
|
2991
|
-
onChange: (
|
|
2992
|
+
onChange: (h) => {
|
|
2992
2993
|
ft({
|
|
2993
|
-
subscript_uuid:
|
|
2994
|
-
enable_status:
|
|
2994
|
+
subscript_uuid: _.row.subscript_uuid,
|
|
2995
|
+
enable_status: h
|
|
2995
2996
|
}), t.value.getTableList();
|
|
2996
2997
|
}
|
|
2997
2998
|
}, null)
|
|
@@ -3001,58 +3002,58 @@ const Oo = /* @__PURE__ */ L({
|
|
|
3001
3002
|
fixed: "right",
|
|
3002
3003
|
cardHide: !0,
|
|
3003
3004
|
width: 120,
|
|
3004
|
-
render: (
|
|
3005
|
+
render: (_) => l("div", null, [l(s("el-button"), {
|
|
3005
3006
|
link: !0,
|
|
3006
3007
|
type: "primary",
|
|
3007
3008
|
icon: "Edit",
|
|
3008
3009
|
title: a("button.edit"),
|
|
3009
3010
|
class: "custom-btn",
|
|
3010
|
-
onClick: () =>
|
|
3011
|
+
onClick: () => f(_.row)
|
|
3011
3012
|
}, null), l(s("el-button"), {
|
|
3012
3013
|
link: !0,
|
|
3013
3014
|
type: "danger",
|
|
3014
3015
|
icon: "Delete",
|
|
3015
3016
|
title: a("button.delete"),
|
|
3016
|
-
onClick: () => d([
|
|
3017
|
+
onClick: () => d([_.row])
|
|
3017
3018
|
}, null)])
|
|
3018
3019
|
}]);
|
|
3019
|
-
return (
|
|
3020
|
-
const
|
|
3021
|
-
return m(), C("div", So, [l(
|
|
3020
|
+
return (_, h) => {
|
|
3021
|
+
const k = s("el-button");
|
|
3022
|
+
return m(), C("div", So, [l(y(he), {
|
|
3022
3023
|
ref_key: "refTdsTable",
|
|
3023
3024
|
ref: t,
|
|
3024
3025
|
"row-key": "subscript_uuid",
|
|
3025
|
-
"request-api":
|
|
3026
|
-
columns:
|
|
3027
|
-
options:
|
|
3026
|
+
"request-api": y(dt),
|
|
3027
|
+
columns: x,
|
|
3028
|
+
options: _.$tableOptions()
|
|
3028
3029
|
}, {
|
|
3029
|
-
tableHeader: u((
|
|
3030
|
+
tableHeader: u((H) => [l(k, {
|
|
3030
3031
|
type: "primary",
|
|
3031
3032
|
icon: "Plus",
|
|
3032
3033
|
class: "custom-btn",
|
|
3033
3034
|
plain: "",
|
|
3034
|
-
onClick:
|
|
3035
|
+
onClick: h[0] || (h[0] = (B) => f())
|
|
3035
3036
|
}, {
|
|
3036
|
-
default: u(() => [
|
|
3037
|
+
default: u(() => [U(M(y(a)("button.add")), 1)]),
|
|
3037
3038
|
_: 1
|
|
3038
|
-
}), l(
|
|
3039
|
+
}), l(k, {
|
|
3039
3040
|
type: "danger",
|
|
3040
3041
|
icon: "Delete",
|
|
3041
3042
|
plain: "",
|
|
3042
3043
|
onClick: i,
|
|
3043
|
-
disabled: !
|
|
3044
|
+
disabled: !H.selectedListIds.length
|
|
3044
3045
|
}, {
|
|
3045
|
-
default: u(() => [
|
|
3046
|
+
default: u(() => [U(M(y(a)("button.delete")), 1)]),
|
|
3046
3047
|
_: 2
|
|
3047
3048
|
}, 1032, ["disabled"])]),
|
|
3048
3049
|
_: 1
|
|
3049
|
-
}, 8, ["request-api", "columns", "options"]), l(
|
|
3050
|
+
}, 8, ["request-api", "columns", "options"]), l(y($e), ye({
|
|
3050
3051
|
ref_key: "refTdsForm",
|
|
3051
3052
|
ref: e
|
|
3052
|
-
},
|
|
3053
|
+
}, _.$formBindProps({
|
|
3053
3054
|
title: n.value,
|
|
3054
3055
|
form: A.value,
|
|
3055
|
-
columns:
|
|
3056
|
+
columns: x
|
|
3056
3057
|
}), {
|
|
3057
3058
|
onSubmit: p
|
|
3058
3059
|
}), null, 16)]);
|
|
@@ -3062,22 +3063,22 @@ const Oo = /* @__PURE__ */ L({
|
|
|
3062
3063
|
class: "main-wrapper"
|
|
3063
3064
|
}, Io = {
|
|
3064
3065
|
class: "el-dropdown-link"
|
|
3065
|
-
}, Fo = /* @__PURE__ */
|
|
3066
|
+
}, Fo = /* @__PURE__ */ E({
|
|
3066
3067
|
name: "TCBuildin",
|
|
3067
3068
|
__name: "index",
|
|
3068
3069
|
setup(o) {
|
|
3069
|
-
const t =
|
|
3070
|
+
const t = D({}), e = D("1"), a = D("");
|
|
3070
3071
|
async function r() {
|
|
3071
3072
|
const d = window.windowGlobalVar.SYSTEM_NORMAL, i = await bt({
|
|
3072
3073
|
prod_type: window.$prodType,
|
|
3073
3074
|
cg_linkage: d ? 1 : d ? void 0 : 0
|
|
3074
3075
|
});
|
|
3075
3076
|
e.value = i.data[0].report_uuid;
|
|
3076
|
-
const
|
|
3077
|
+
const f = {};
|
|
3077
3078
|
i.data.forEach((p) => {
|
|
3078
3079
|
const c = p.report_category || p.report_uuid;
|
|
3079
|
-
|
|
3080
|
-
}), t.value =
|
|
3080
|
+
f[c] || (f[c] = []), f[c].push(p);
|
|
3081
|
+
}), t.value = f;
|
|
3081
3082
|
}
|
|
3082
3083
|
const n = (d, i) => {
|
|
3083
3084
|
e.value = i, a.value = d;
|
|
@@ -3085,52 +3086,52 @@ const Oo = /* @__PURE__ */ L({
|
|
|
3085
3086
|
a.value = "";
|
|
3086
3087
|
};
|
|
3087
3088
|
return r(), (d, i) => {
|
|
3088
|
-
const
|
|
3089
|
-
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, {
|
|
3090
3091
|
modelValue: e.value,
|
|
3091
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
3092
|
+
"onUpdate:modelValue": i[0] || (i[0] = (g) => e.value = g),
|
|
3092
3093
|
class: "report-tabs",
|
|
3093
3094
|
style: {
|
|
3094
3095
|
height: "100%"
|
|
3095
3096
|
},
|
|
3096
3097
|
onTabClick: A
|
|
3097
3098
|
}, {
|
|
3098
|
-
default: u(() => [(m(!0), C(
|
|
3099
|
+
default: u(() => [(m(!0), C(P, null, I(t.value, (g, x) => (m(), L(V, {
|
|
3099
3100
|
style: {
|
|
3100
3101
|
height: "100%"
|
|
3101
3102
|
},
|
|
3102
|
-
key:
|
|
3103
|
-
name:
|
|
3103
|
+
key: x,
|
|
3104
|
+
name: g[0].report_uuid
|
|
3104
3105
|
}, Ne({
|
|
3105
|
-
default: u(() => [e.value ===
|
|
3106
|
+
default: u(() => [e.value === g[0].report_uuid ? (m(), L(Re, {
|
|
3106
3107
|
key: 0,
|
|
3107
3108
|
"report-id": a.value || e.value
|
|
3108
|
-
}, null, 8, ["report-id"])) :
|
|
3109
|
+
}, null, 8, ["report-id"])) : O("", !0)]),
|
|
3109
3110
|
_: 2
|
|
3110
|
-
}, [
|
|
3111
|
+
}, [g.length === 1 ? {
|
|
3111
3112
|
name: "label",
|
|
3112
|
-
fn: u(() => [
|
|
3113
|
+
fn: u(() => [U(M(g[0].report_name), 1)]),
|
|
3113
3114
|
key: "0"
|
|
3114
3115
|
} : {
|
|
3115
3116
|
name: "label",
|
|
3116
|
-
fn: u(() => [l(
|
|
3117
|
-
onCommand: (
|
|
3117
|
+
fn: u(() => [l(v, {
|
|
3118
|
+
onCommand: (_) => n(_, g[0].report_uuid)
|
|
3118
3119
|
}, {
|
|
3119
|
-
dropdown: u(() => [l(
|
|
3120
|
-
default: u(() => [(m(!0), C(
|
|
3121
|
-
key:
|
|
3120
|
+
dropdown: u(() => [l(w, null, {
|
|
3121
|
+
default: u(() => [(m(!0), C(P, null, I(g, (_) => (m(), L(c, {
|
|
3122
|
+
key: _.report_uuid,
|
|
3122
3123
|
class: "mt-10px",
|
|
3123
|
-
command:
|
|
3124
|
+
command: _.report_uuid
|
|
3124
3125
|
}, {
|
|
3125
|
-
default: u(() => [
|
|
3126
|
+
default: u(() => [U(M(_.report_name), 1)]),
|
|
3126
3127
|
_: 2
|
|
3127
3128
|
}, 1032, ["command"]))), 128))]),
|
|
3128
3129
|
_: 2
|
|
3129
3130
|
}, 1024)]),
|
|
3130
|
-
default: u(() => [
|
|
3131
|
+
default: u(() => [T("span", Io, [U(M(x) + " ", 1), l(p, {
|
|
3131
3132
|
class: "el-icon--right"
|
|
3132
3133
|
}, {
|
|
3133
|
-
default: u(() => [l(
|
|
3134
|
+
default: u(() => [l(f)]),
|
|
3134
3135
|
_: 1
|
|
3135
3136
|
})])]),
|
|
3136
3137
|
_: 2
|
|
@@ -3146,9 +3147,9 @@ const Mo = /* @__PURE__ */ Z(Fo, [["__scopeId", "data-v-99a69fda"]]), Ko = W(Mo)
|
|
|
3146
3147
|
function qo(o, t, e) {
|
|
3147
3148
|
const a = atob(o), r = [];
|
|
3148
3149
|
for (let i = 0; i < a.length; i += 512) {
|
|
3149
|
-
const
|
|
3150
|
-
for (let
|
|
3151
|
-
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);
|
|
3152
3153
|
const c = new Uint8Array(p);
|
|
3153
3154
|
r.push(c);
|
|
3154
3155
|
}
|
|
@@ -3159,13 +3160,13 @@ function qo(o, t, e) {
|
|
|
3159
3160
|
}
|
|
3160
3161
|
const Ho = {
|
|
3161
3162
|
class: "table-box"
|
|
3162
|
-
}, No = /* @__PURE__ */
|
|
3163
|
+
}, No = /* @__PURE__ */ E({
|
|
3163
3164
|
name: "TCDownload",
|
|
3164
3165
|
__name: "index",
|
|
3165
3166
|
setup(o) {
|
|
3166
3167
|
const t = J({
|
|
3167
3168
|
prod_type: window.$prodType
|
|
3168
|
-
}), e =
|
|
3169
|
+
}), e = D(), a = async (A) => {
|
|
3169
3170
|
const d = await ht({
|
|
3170
3171
|
export_uuid: A.export_uuid
|
|
3171
3172
|
}), i = A.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
@@ -3245,11 +3246,11 @@ const Ho = {
|
|
|
3245
3246
|
}]);
|
|
3246
3247
|
return (A, d) => {
|
|
3247
3248
|
const i = s("el-button");
|
|
3248
|
-
return m(), C("div", Ho, [l(
|
|
3249
|
+
return m(), C("div", Ho, [l(y(he), {
|
|
3249
3250
|
ref_key: "proTable",
|
|
3250
3251
|
ref: e,
|
|
3251
3252
|
columns: n,
|
|
3252
|
-
"request-api":
|
|
3253
|
+
"request-api": y(yt),
|
|
3253
3254
|
"row-key": "export_uuid",
|
|
3254
3255
|
"init-param": t,
|
|
3255
3256
|
options: A.$tableOptions({
|
|
@@ -3259,13 +3260,13 @@ const Ho = {
|
|
|
3259
3260
|
}),
|
|
3260
3261
|
"search-col": 6
|
|
3261
3262
|
}, {
|
|
3262
|
-
tableHeader: u((
|
|
3263
|
+
tableHeader: u((f) => [l(i, {
|
|
3263
3264
|
plain: "",
|
|
3264
3265
|
type: "danger",
|
|
3265
3266
|
icon: "Delete",
|
|
3266
|
-
onClick: (p) => r(
|
|
3267
|
+
onClick: (p) => r(f.selectedListIds)
|
|
3267
3268
|
}, {
|
|
3268
|
-
default: u(() => d[0] || (d[0] = [
|
|
3269
|
+
default: u(() => d[0] || (d[0] = [U("删除")])),
|
|
3269
3270
|
_: 2
|
|
3270
3271
|
}, 1032, ["onClick"])]),
|
|
3271
3272
|
_: 1
|