yh-report 2.0.13 → 2.0.14
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/{StatementDesign-b4a2f41e.mjs → StatementDesign-c5d6be1b.mjs} +2 -2
- package/{StatementDesign-b4a2f41e.mjs.map → StatementDesign-c5d6be1b.mjs.map} +1 -1
- package/{StatementDetail-edc9161f.mjs → StatementDetail-85e1aa9d.mjs} +2 -2
- package/{StatementDetail-edc9161f.mjs.map → StatementDetail-85e1aa9d.mjs.map} +1 -1
- package/{StatementList-5d581f19.mjs → StatementList-f6d5a1ab.mjs} +2 -2
- package/{StatementList-5d581f19.mjs.map → StatementList-f6d5a1ab.mjs.map} +1 -1
- package/{index-0e5f0fbf.mjs → index-affed8f2.mjs} +87 -87
- package/{index-0e5f0fbf.mjs.map → index-affed8f2.mjs.map} +1 -1
- package/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -134,7 +134,7 @@ const TypeItems = ref([
|
|
|
134
134
|
x < 10 && (x = 10), x > 15 && (x = 15);
|
|
135
135
|
let C = s * 0.5;
|
|
136
136
|
C < 60 && (C = 60);
|
|
137
|
-
const E = (c - x * 2 - x * (f - 1)) / f,
|
|
137
|
+
const E = (c - x * 2 - x * (f - 1)) / f, S = 8, g = x + r * (E + x), b = (e.getHeight() - C) / 2;
|
|
138
138
|
return {
|
|
139
139
|
type: "group",
|
|
140
140
|
children: [
|
|
@@ -145,7 +145,7 @@ const TypeItems = ref([
|
|
|
145
145
|
y: b,
|
|
146
146
|
width: E,
|
|
147
147
|
height: C,
|
|
148
|
-
r:
|
|
148
|
+
r: S
|
|
149
149
|
},
|
|
150
150
|
style: {
|
|
151
151
|
fill: m,
|
|
@@ -719,8 +719,8 @@ ${i}`,
|
|
|
719
719
|
if (t.groupBy && n) {
|
|
720
720
|
let C = {};
|
|
721
721
|
m.forEach((E) => {
|
|
722
|
-
let
|
|
723
|
-
|
|
722
|
+
let S = E[c], g = E[f];
|
|
723
|
+
S && !isNaN(g) && (C[S] || (C[S] = 0), C[S] = g);
|
|
724
724
|
}), x = n.map((E) => C[E]);
|
|
725
725
|
} else
|
|
726
726
|
x = m.map((C) => C[f]);
|
|
@@ -747,7 +747,7 @@ ${i}`,
|
|
|
747
747
|
f.length === 3 ? (e[f[0]] && (x = e[f[0]][f[1]]), C = f[2]) : (x = e[f[0]], C = f[1]);
|
|
748
748
|
let E = cloneDeep(s[0]);
|
|
749
749
|
E.data = [];
|
|
750
|
-
let
|
|
750
|
+
let S = [];
|
|
751
751
|
if (x && c && n) {
|
|
752
752
|
switch (t.type) {
|
|
753
753
|
case "line":
|
|
@@ -758,10 +758,10 @@ ${i}`,
|
|
|
758
758
|
x.forEach((b) => {
|
|
759
759
|
let N = b[c], B = b[C];
|
|
760
760
|
N && !isNaN(B) && (g[N] || (g[N] = 0), g[N] = B);
|
|
761
|
-
}),
|
|
761
|
+
}), S = n.map((b) => g[b]);
|
|
762
762
|
} else
|
|
763
|
-
|
|
764
|
-
t.orderBy && t.orderBy !== "NONE" && (
|
|
763
|
+
S = x.map((g) => g[C]);
|
|
764
|
+
t.orderBy && t.orderBy !== "NONE" && (S = S.sort((g, b) => t.orderBy === "ASC" ? g - b : b - g), !isNaN(t.cutLength) && t.cutLength > 0 && (S = S.slice(0, t.cutLength)));
|
|
765
765
|
break;
|
|
766
766
|
case "pie":
|
|
767
767
|
if (t.groupBy) {
|
|
@@ -769,10 +769,10 @@ ${i}`,
|
|
|
769
769
|
x.forEach((b) => {
|
|
770
770
|
let N = b[c], B = b[C];
|
|
771
771
|
N && !isNaN(B) && (g[N] || (g[N] = 0), g[N] = B);
|
|
772
|
-
}),
|
|
772
|
+
}), S = n.map((b) => ({ value: g[b], name: b }));
|
|
773
773
|
} else
|
|
774
|
-
|
|
775
|
-
t.orderBy && t.orderBy !== "NONE" && (
|
|
774
|
+
S = x.map((g) => ({ value: g[C], name: g[c] }));
|
|
775
|
+
t.orderBy && t.orderBy !== "NONE" && (S = S.sort((g, b) => t.orderBy === "ASC" ? g - b : b - g), !isNaN(t.cutLength) && t.cutLength > 0 && (S = S.slice(0, t.cutLength)));
|
|
776
776
|
break;
|
|
777
777
|
case "scatter":
|
|
778
778
|
if (t.groupBy) {
|
|
@@ -780,10 +780,10 @@ ${i}`,
|
|
|
780
780
|
x.forEach((b) => {
|
|
781
781
|
let N = b[c], B = b[C];
|
|
782
782
|
N && !isNaN(B) && (g[N] || (g[N] = 0), g[N] = B);
|
|
783
|
-
}),
|
|
783
|
+
}), S = n.map((b) => [b, g[b]]);
|
|
784
784
|
} else
|
|
785
|
-
|
|
786
|
-
t.orderBy && t.orderBy !== "NONE" && (
|
|
785
|
+
S = x.map((g) => [g[c], g[C]]);
|
|
786
|
+
t.orderBy && t.orderBy !== "NONE" && (S = S.sort((g, b) => t.orderBy === "ASC" ? g - b : b - g), !isNaN(t.cutLength) && t.cutLength > 0 && (S = S.slice(0, t.cutLength)));
|
|
787
787
|
break;
|
|
788
788
|
case "label":
|
|
789
789
|
if (t.groupBy) {
|
|
@@ -791,19 +791,19 @@ ${i}`,
|
|
|
791
791
|
x.forEach((b) => {
|
|
792
792
|
let N = b[c], B = b[C];
|
|
793
793
|
N && !isNaN(B) && (g[N] || (g[N] = 0), g[N] = B);
|
|
794
|
-
}),
|
|
794
|
+
}), S = n.map((b) => {
|
|
795
795
|
const N = b ? b.split("").map((B) => B.charCodeAt()) : [];
|
|
796
796
|
return [g[b], N];
|
|
797
797
|
});
|
|
798
798
|
} else
|
|
799
|
-
|
|
799
|
+
S = x.map((g) => {
|
|
800
800
|
const b = g[c] ? g[c].split("").map((N) => N.charCodeAt()) : [];
|
|
801
801
|
return [g[C], b];
|
|
802
802
|
});
|
|
803
|
-
t.orderBy && t.orderBy !== "NONE" && (
|
|
803
|
+
t.orderBy && t.orderBy !== "NONE" && (S = S.sort((g, b) => t.orderBy === "ASC" ? g - b : b - g), !isNaN(t.cutLength) && t.cutLength > 0 && (S = S.slice(0, t.cutLength))), E.renderItem = renderItem;
|
|
804
804
|
break;
|
|
805
805
|
}
|
|
806
|
-
E.data =
|
|
806
|
+
E.data = S;
|
|
807
807
|
}
|
|
808
808
|
r.series.push(E);
|
|
809
809
|
}
|
|
@@ -876,7 +876,7 @@ var dayjs_min = { exports: {} };
|
|
|
876
876
|
(function(r, i) {
|
|
877
877
|
t.exports = i();
|
|
878
878
|
})(commonjsGlobal, function() {
|
|
879
|
-
var r = 1e3, i = 6e4, n = 36e5, c = "millisecond", s = "second", m = "minute", f = "hour", x = "day", C = "week", E = "month",
|
|
879
|
+
var r = 1e3, i = 6e4, n = 36e5, c = "millisecond", s = "second", m = "minute", f = "hour", x = "day", C = "week", E = "month", S = "quarter", g = "year", b = "date", N = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, J = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(u) {
|
|
880
880
|
var l = ["th", "st", "nd", "rd"], o = u % 100;
|
|
881
881
|
return "[" + u + (l[(o - 20) % 10] || l[o] || l[0]) + "]";
|
|
882
882
|
} }, W = function(u, l, o) {
|
|
@@ -893,7 +893,7 @@ var dayjs_min = { exports: {} };
|
|
|
893
893
|
}, a: function(u) {
|
|
894
894
|
return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
|
|
895
895
|
}, p: function(u) {
|
|
896
|
-
return { M: E, y: g, w: C, d: x, D: b, h: f, m, s, ms: c, Q:
|
|
896
|
+
return { M: E, y: g, w: C, d: x, D: b, h: f, m, s, ms: c, Q: S }[u] || String(u || "").toLowerCase().replace(/s$/, "");
|
|
897
897
|
}, u: function(u) {
|
|
898
898
|
return u === void 0;
|
|
899
899
|
} }, Q = "en", q = {};
|
|
@@ -911,8 +911,8 @@ var dayjs_min = { exports: {} };
|
|
|
911
911
|
if (!p && a.length > 1)
|
|
912
912
|
return u(a[0]);
|
|
913
913
|
} else {
|
|
914
|
-
var
|
|
915
|
-
q[
|
|
914
|
+
var v = l.name;
|
|
915
|
+
q[v] = l, p = v;
|
|
916
916
|
}
|
|
917
917
|
return !d && p && (Q = p), p || !d && Q;
|
|
918
918
|
}, X = function(u, l) {
|
|
@@ -941,8 +941,8 @@ var dayjs_min = { exports: {} };
|
|
|
941
941
|
if (typeof p == "string" && !/Z$/i.test(p)) {
|
|
942
942
|
var a = p.match(B);
|
|
943
943
|
if (a) {
|
|
944
|
-
var
|
|
945
|
-
return y ? new Date(Date.UTC(a[1],
|
|
944
|
+
var v = a[2] - 1 || 0, $ = (a[7] || "0").substring(0, 3);
|
|
945
|
+
return y ? new Date(Date.UTC(a[1], v, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, $)) : new Date(a[1], v, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, $);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
return new Date(p);
|
|
@@ -968,7 +968,7 @@ var dayjs_min = { exports: {} };
|
|
|
968
968
|
}, l.valueOf = function() {
|
|
969
969
|
return this.$d.getTime();
|
|
970
970
|
}, l.startOf = function(o, d) {
|
|
971
|
-
var p = this, y = !!j.u(d) || d, a = j.p(o),
|
|
971
|
+
var p = this, y = !!j.u(d) || d, a = j.p(o), v = function(T, k) {
|
|
972
972
|
var A = j.w(p.$u ? Date.UTC(p.$y, k, T) : new Date(p.$y, k, T), p);
|
|
973
973
|
return y ? A : A.endOf(x);
|
|
974
974
|
}, $ = function(T, k) {
|
|
@@ -976,12 +976,12 @@ var dayjs_min = { exports: {} };
|
|
|
976
976
|
}, U = this.$W, F = this.$M, L = this.$D, M = "set" + (this.$u ? "UTC" : "");
|
|
977
977
|
switch (a) {
|
|
978
978
|
case g:
|
|
979
|
-
return y ?
|
|
979
|
+
return y ? v(1, 0) : v(31, 11);
|
|
980
980
|
case E:
|
|
981
|
-
return y ?
|
|
981
|
+
return y ? v(1, F) : v(0, F + 1);
|
|
982
982
|
case C:
|
|
983
983
|
var V = this.$locale().weekStart || 0, D = (U < V ? U + 7 : U) - V;
|
|
984
|
-
return
|
|
984
|
+
return v(y ? L - D : L + (6 - D), F);
|
|
985
985
|
case x:
|
|
986
986
|
case b:
|
|
987
987
|
return $(M + "Hours", 0);
|
|
@@ -997,12 +997,12 @@ var dayjs_min = { exports: {} };
|
|
|
997
997
|
}, l.endOf = function(o) {
|
|
998
998
|
return this.startOf(o, !1);
|
|
999
999
|
}, l.$set = function(o, d) {
|
|
1000
|
-
var p, y = j.p(o), a = "set" + (this.$u ? "UTC" : ""),
|
|
1000
|
+
var p, y = j.p(o), a = "set" + (this.$u ? "UTC" : ""), v = (p = {}, p[x] = a + "Date", p[b] = a + "Date", p[E] = a + "Month", p[g] = a + "FullYear", p[f] = a + "Hours", p[m] = a + "Minutes", p[s] = a + "Seconds", p[c] = a + "Milliseconds", p)[y], $ = y === x ? this.$D + (d - this.$W) : d;
|
|
1001
1001
|
if (y === E || y === g) {
|
|
1002
1002
|
var U = this.clone().set(b, 1);
|
|
1003
|
-
U.$d[
|
|
1003
|
+
U.$d[v]($), U.init(), this.$d = U.set(b, Math.min(this.$D, U.daysInMonth())).$d;
|
|
1004
1004
|
} else
|
|
1005
|
-
|
|
1005
|
+
v && this.$d[v]($);
|
|
1006
1006
|
return this.init(), this;
|
|
1007
1007
|
}, l.set = function(o, d) {
|
|
1008
1008
|
return this.clone().$set(o, d);
|
|
@@ -1011,7 +1011,7 @@ var dayjs_min = { exports: {} };
|
|
|
1011
1011
|
}, l.add = function(o, d) {
|
|
1012
1012
|
var p, y = this;
|
|
1013
1013
|
o = Number(o);
|
|
1014
|
-
var a = j.p(d),
|
|
1014
|
+
var a = j.p(d), v = function(F) {
|
|
1015
1015
|
var L = X(y);
|
|
1016
1016
|
return j.w(L.date(L.date() + Math.round(F * o)), y);
|
|
1017
1017
|
};
|
|
@@ -1020,9 +1020,9 @@ var dayjs_min = { exports: {} };
|
|
|
1020
1020
|
if (a === g)
|
|
1021
1021
|
return this.set(g, this.$y + o);
|
|
1022
1022
|
if (a === x)
|
|
1023
|
-
return
|
|
1023
|
+
return v(1);
|
|
1024
1024
|
if (a === C)
|
|
1025
|
-
return
|
|
1025
|
+
return v(7);
|
|
1026
1026
|
var $ = (p = {}, p[m] = i, p[f] = n, p[s] = r, p)[a] || 1, U = this.$d.getTime() + o * $;
|
|
1027
1027
|
return j.w(U, this);
|
|
1028
1028
|
}, l.subtract = function(o, d) {
|
|
@@ -1031,10 +1031,10 @@ var dayjs_min = { exports: {} };
|
|
|
1031
1031
|
var d = this, p = this.$locale();
|
|
1032
1032
|
if (!this.isValid())
|
|
1033
1033
|
return p.invalidDate || N;
|
|
1034
|
-
var y = o || "YYYY-MM-DDTHH:mm:ssZ", a = j.z(this),
|
|
1034
|
+
var y = o || "YYYY-MM-DDTHH:mm:ssZ", a = j.z(this), v = this.$H, $ = this.$m, U = this.$M, F = p.weekdays, L = p.months, M = p.meridiem, V = function(k, A, _, I) {
|
|
1035
1035
|
return k && (k[A] || k(d, y)) || _[A].slice(0, I);
|
|
1036
1036
|
}, D = function(k) {
|
|
1037
|
-
return j.s(
|
|
1037
|
+
return j.s(v % 12 || 12, k, "0");
|
|
1038
1038
|
}, T = M || function(k, A, _) {
|
|
1039
1039
|
var I = k < 12 ? "AM" : "PM";
|
|
1040
1040
|
return _ ? I.toLowerCase() : I;
|
|
@@ -1067,17 +1067,17 @@ var dayjs_min = { exports: {} };
|
|
|
1067
1067
|
case "dddd":
|
|
1068
1068
|
return F[d.$W];
|
|
1069
1069
|
case "H":
|
|
1070
|
-
return String(
|
|
1070
|
+
return String(v);
|
|
1071
1071
|
case "HH":
|
|
1072
|
-
return j.s(
|
|
1072
|
+
return j.s(v, 2, "0");
|
|
1073
1073
|
case "h":
|
|
1074
1074
|
return D(1);
|
|
1075
1075
|
case "hh":
|
|
1076
1076
|
return D(2);
|
|
1077
1077
|
case "a":
|
|
1078
|
-
return T(
|
|
1078
|
+
return T(v, $, !0);
|
|
1079
1079
|
case "A":
|
|
1080
|
-
return T(
|
|
1080
|
+
return T(v, $, !1);
|
|
1081
1081
|
case "m":
|
|
1082
1082
|
return String($);
|
|
1083
1083
|
case "mm":
|
|
@@ -1097,17 +1097,17 @@ var dayjs_min = { exports: {} };
|
|
|
1097
1097
|
}, l.utcOffset = function() {
|
|
1098
1098
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1099
1099
|
}, l.diff = function(o, d, p) {
|
|
1100
|
-
var y, a = this,
|
|
1100
|
+
var y, a = this, v = j.p(d), $ = X(o), U = ($.utcOffset() - this.utcOffset()) * i, F = this - $, L = function() {
|
|
1101
1101
|
return j.m(a, $);
|
|
1102
1102
|
};
|
|
1103
|
-
switch (
|
|
1103
|
+
switch (v) {
|
|
1104
1104
|
case g:
|
|
1105
1105
|
y = L() / 12;
|
|
1106
1106
|
break;
|
|
1107
1107
|
case E:
|
|
1108
1108
|
y = L();
|
|
1109
1109
|
break;
|
|
1110
|
-
case
|
|
1110
|
+
case S:
|
|
1111
1111
|
y = L() / 3;
|
|
1112
1112
|
break;
|
|
1113
1113
|
case C:
|
|
@@ -1231,7 +1231,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1231
1231
|
},
|
|
1232
1232
|
emits: ["change"],
|
|
1233
1233
|
setup(t, { emit: e }) {
|
|
1234
|
-
const r = t, i = dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"), n = dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"), c = dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"), s = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"), m = dayjs().add(-2, "month").startOf("month").format("YYYY-MM-DD HH:mm:ss"), f = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"), x = dayjs().startOf("year").format("YYYY-MM-DD HH:mm:ss"), C = dayjs().endOf("year").format("YYYY-MM-DD HH:mm:ss"), E = ref([]),
|
|
1234
|
+
const r = t, i = dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"), n = dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"), c = dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"), s = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"), m = dayjs().add(-2, "month").startOf("month").format("YYYY-MM-DD HH:mm:ss"), f = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"), x = dayjs().startOf("year").format("YYYY-MM-DD HH:mm:ss"), C = dayjs().endOf("year").format("YYYY-MM-DD HH:mm:ss"), E = ref([]), S = ref([]);
|
|
1235
1235
|
watch(
|
|
1236
1236
|
() => r.config,
|
|
1237
1237
|
() => {
|
|
@@ -1319,7 +1319,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1319
1319
|
e("change", E.value);
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
|
-
|
|
1322
|
+
S.value = B;
|
|
1323
1323
|
}
|
|
1324
1324
|
function b(B, J) {
|
|
1325
1325
|
let Y = E.value.findIndex((W) => W.name === J.columnName);
|
|
@@ -1331,7 +1331,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1331
1331
|
return (B, J) => (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1332
1332
|
createVNode(unref(ElForm), { inline: "" }, {
|
|
1333
1333
|
default: withCtx(() => [
|
|
1334
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1334
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(S.value, (Y) => withDirectives((openBlock(), createBlock(unref(ElFormItem), {
|
|
1335
1335
|
label: Y.name,
|
|
1336
1336
|
style: normalizeStyle(Y.columnName.indexOf("end_") > -1 ? { marginLeft: "-22px" } : {})
|
|
1337
1337
|
}, {
|
|
@@ -2401,8 +2401,8 @@ function getRangeValues(t, e) {
|
|
|
2401
2401
|
x && (f = parseInt(x[0]) - 1);
|
|
2402
2402
|
const C = [];
|
|
2403
2403
|
for (let E = n; E <= f; E++)
|
|
2404
|
-
for (let
|
|
2405
|
-
const g = `${E}:${
|
|
2404
|
+
for (let S = r; S <= s; S++) {
|
|
2405
|
+
const g = `${E}:${S}`;
|
|
2406
2406
|
C.push(...getCellValue(g));
|
|
2407
2407
|
}
|
|
2408
2408
|
return C;
|
|
@@ -2493,7 +2493,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2493
2493
|
deep: !0
|
|
2494
2494
|
}
|
|
2495
2495
|
);
|
|
2496
|
-
function
|
|
2496
|
+
function S() {
|
|
2497
2497
|
f.pageIndex = 1, Z();
|
|
2498
2498
|
}
|
|
2499
2499
|
const g = ref(!1);
|
|
@@ -2511,11 +2511,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2511
2511
|
}
|
|
2512
2512
|
function B(O, w, u, l, o) {
|
|
2513
2513
|
if (l) {
|
|
2514
|
-
let a = o.findIndex((
|
|
2514
|
+
let a = o.findIndex((v) => v === u);
|
|
2515
2515
|
u = o[a - 1];
|
|
2516
2516
|
}
|
|
2517
2517
|
let d = O[w], p = `${u}-${d.join("-")}`;
|
|
2518
|
-
return Object.keys(O).filter((a) => a.indexOf(p) > -1).map((a) => O[a]).reduce((a,
|
|
2518
|
+
return Object.keys(O).filter((a) => a.indexOf(p) > -1).map((a) => O[a]).reduce((a, v) => a + v.length, 0);
|
|
2519
2519
|
}
|
|
2520
2520
|
function J(O, w) {
|
|
2521
2521
|
const u = O.filter((l) => l < w);
|
|
@@ -2559,16 +2559,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2559
2559
|
});
|
|
2560
2560
|
}
|
|
2561
2561
|
});
|
|
2562
|
-
let
|
|
2562
|
+
let v = 1, $ = Math.max(...y);
|
|
2563
2563
|
const U = p.some((D) => D.isRowColCombine);
|
|
2564
|
-
y.length > 0 ? U ?
|
|
2564
|
+
y.length > 0 ? U ? v = a[$].size : v = Array.from(a[$]).reduce((D, T) => {
|
|
2565
2565
|
let k = a[`${$}-${T}`];
|
|
2566
2566
|
return D + k.length;
|
|
2567
|
-
}, 0) :
|
|
2567
|
+
}, 0) : v = d.length;
|
|
2568
2568
|
const F = {
|
|
2569
2569
|
...o,
|
|
2570
2570
|
loop: !1
|
|
2571
|
-
}, L = Array.from({ length:
|
|
2571
|
+
}, L = Array.from({ length: v }, () => cloneDeep(F));
|
|
2572
2572
|
O.splice(o.index, 1, ...L);
|
|
2573
2573
|
const M = Array.from({ length: p.length }, () => []);
|
|
2574
2574
|
p.forEach((D, T) => {
|
|
@@ -2643,9 +2643,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2643
2643
|
};
|
|
2644
2644
|
if (D.rowSpan === 0 && D.mergeTarget && D.mergeTarget.length === 2) {
|
|
2645
2645
|
let [P, H] = D.mergeTarget, R = u.reduce((z, G) => z.concat(G), []).filter((z) => z.row === P && z.col === H)[0];
|
|
2646
|
-
R && (R.rowSpan +=
|
|
2646
|
+
R && (R.rowSpan += v - 1);
|
|
2647
2647
|
} else
|
|
2648
|
-
A.rowSpan +=
|
|
2648
|
+
A.rowSpan += v - 1;
|
|
2649
2649
|
const _ = {
|
|
2650
2650
|
...D,
|
|
2651
2651
|
type: "",
|
|
@@ -2653,7 +2653,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2653
2653
|
rowSpan: 0
|
|
2654
2654
|
};
|
|
2655
2655
|
delete A.isRowColCombine;
|
|
2656
|
-
let I = Array.from({ length:
|
|
2656
|
+
let I = Array.from({ length: v - 1 }, () => cloneDeep(_));
|
|
2657
2657
|
k.push(A, ...I);
|
|
2658
2658
|
}
|
|
2659
2659
|
});
|
|
@@ -2700,19 +2700,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2700
2700
|
});
|
|
2701
2701
|
}
|
|
2702
2702
|
});
|
|
2703
|
-
let
|
|
2703
|
+
let v = 1, $ = Math.max(...y), U = Math.min(...y);
|
|
2704
2704
|
const F = p.some((L) => L.isRowColCombine);
|
|
2705
|
-
y.length > 0 ? F ?
|
|
2705
|
+
y.length > 0 ? F ? v = a[$].size : v = Array.from(a[$]).reduce((L, M) => {
|
|
2706
2706
|
let V = a[`${$}-${M}`];
|
|
2707
2707
|
return L + V.length;
|
|
2708
|
-
}, 0) :
|
|
2708
|
+
}, 0) : v = d.length;
|
|
2709
2709
|
for (let L = 0; L < p.length; L++) {
|
|
2710
2710
|
const M = p[L];
|
|
2711
2711
|
if (L === 0) {
|
|
2712
2712
|
const D = {
|
|
2713
2713
|
...o,
|
|
2714
2714
|
loop: !1
|
|
2715
|
-
}, T = Array.from({ length:
|
|
2715
|
+
}, T = Array.from({ length: v }, () => cloneDeep(D));
|
|
2716
2716
|
O.splice(o.index, 1, ...T);
|
|
2717
2717
|
}
|
|
2718
2718
|
let V = u[M.row];
|
|
@@ -2742,7 +2742,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2742
2742
|
if (L > U && L < $) {
|
|
2743
2743
|
let T = J(y, L);
|
|
2744
2744
|
if (T !== null) {
|
|
2745
|
-
let k = u[T].slice(o.index, o.index +
|
|
2745
|
+
let k = u[T].slice(o.index, o.index + v);
|
|
2746
2746
|
k = k.map((A) => {
|
|
2747
2747
|
let _ = A.colData;
|
|
2748
2748
|
return Array.isArray(_) && (_ = _[0]), {
|
|
@@ -2793,15 +2793,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2793
2793
|
};
|
|
2794
2794
|
if (M.colSpan === 0 && M.mergeTarget && M.mergeTarget.length === 2 && M.row === M.mergeTarget[0]) {
|
|
2795
2795
|
let [_, I] = M.mergeTarget, P = u.reduce((H, R) => H.concat(R), []).filter((H) => H.row === _ && H.col === I)[0];
|
|
2796
|
-
P && (P.colSpan +=
|
|
2796
|
+
P && (P.colSpan += v - 1);
|
|
2797
2797
|
} else
|
|
2798
|
-
(!Array.isArray(M.mergeTarget) || M.mergeTarget.length !== 2) && (T.colSpan =
|
|
2798
|
+
(!Array.isArray(M.mergeTarget) || M.mergeTarget.length !== 2) && (T.colSpan = v);
|
|
2799
2799
|
const k = {
|
|
2800
2800
|
...M,
|
|
2801
2801
|
colSpan: 0,
|
|
2802
2802
|
rowSpan: 0
|
|
2803
2803
|
};
|
|
2804
|
-
let A = Array.from({ length:
|
|
2804
|
+
let A = Array.from({ length: v - 1 }, () => cloneDeep(k));
|
|
2805
2805
|
V.splice(M.col, 1, T, ...A);
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
@@ -2847,16 +2847,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2847
2847
|
let d = 0;
|
|
2848
2848
|
const p = document.createDocumentFragment();
|
|
2849
2849
|
for (let y = 0; y < O.length; y++) {
|
|
2850
|
-
const a = O[y],
|
|
2851
|
-
a.isFixed && (
|
|
2850
|
+
const a = O[y], v = document.createElement("tr");
|
|
2851
|
+
a.isFixed && (v.style.top = `${d - 1}px`, v.classList.add("fixed-row")), d += a.size, v.style.height = `${a.size}px`;
|
|
2852
2852
|
for (let $ = 0; $ < w.length; $++) {
|
|
2853
2853
|
const U = u[y][$];
|
|
2854
2854
|
if (a && U && a.size > 0) {
|
|
2855
2855
|
const F = q(a, U);
|
|
2856
|
-
F.setAttribute("data-cell-data", `${y}-${$}`), U.rowSpan === 0 || U.colSpan === 0 ||
|
|
2856
|
+
F.setAttribute("data-cell-data", `${y}-${$}`), U.rowSpan === 0 || U.colSpan === 0 || v.appendChild(F);
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
|
-
p.appendChild(
|
|
2859
|
+
p.appendChild(v);
|
|
2860
2860
|
}
|
|
2861
2861
|
l.value.appendChild(p);
|
|
2862
2862
|
}
|
|
@@ -2914,7 +2914,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2914
2914
|
unref(m) ? (openBlock(), createBlock(u, {
|
|
2915
2915
|
key: 0,
|
|
2916
2916
|
type: "primary",
|
|
2917
|
-
onClick:
|
|
2917
|
+
onClick: S
|
|
2918
2918
|
}, {
|
|
2919
2919
|
default: withCtx(() => [
|
|
2920
2920
|
createTextVNode(" 搜索 ")
|
|
@@ -3021,12 +3021,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3021
3021
|
);
|
|
3022
3022
|
const s = ref(!1), m = (E) => {
|
|
3023
3023
|
if (n.value = E, E && Object.keys(E).length > 0) {
|
|
3024
|
-
const
|
|
3025
|
-
f(
|
|
3024
|
+
const S = cloneDeep(r.chartData);
|
|
3025
|
+
f(S);
|
|
3026
3026
|
}
|
|
3027
3027
|
}, f = async (E) => {
|
|
3028
|
-
r.isView && await getChartData(E, n.value), E.type === "label" && E.option.series.forEach((
|
|
3029
|
-
|
|
3028
|
+
r.isView && await getChartData(E, n.value), E.type === "label" && E.option.series.forEach((S) => {
|
|
3029
|
+
S.renderItem = renderItem;
|
|
3030
3030
|
}), c.setOption(E.option), s.value = !1;
|
|
3031
3031
|
}, x = async () => {
|
|
3032
3032
|
s.value = !0, c = echarts.init(i.value);
|
|
@@ -3043,7 +3043,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3043
3043
|
x(), window.addEventListener("resize", C);
|
|
3044
3044
|
}), onUnmounted(() => {
|
|
3045
3045
|
window.removeEventListener("resize", C);
|
|
3046
|
-
}), (E,
|
|
3046
|
+
}), (E, S) => {
|
|
3047
3047
|
const g = resolveDirective("loading");
|
|
3048
3048
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
3049
3049
|
ref_key: "chartRef",
|
|
@@ -3133,7 +3133,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3133
3133
|
})) : n.value = !0;
|
|
3134
3134
|
}
|
|
3135
3135
|
const E = ref(!1);
|
|
3136
|
-
function
|
|
3136
|
+
function S(g) {
|
|
3137
3137
|
var b;
|
|
3138
3138
|
x[g.key] = g.data, (b = m.value) == null || b.forEach((N) => {
|
|
3139
3139
|
N.setOutData(x);
|
|
@@ -3173,7 +3173,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3173
3173
|
key: 0,
|
|
3174
3174
|
index: J,
|
|
3175
3175
|
config: B,
|
|
3176
|
-
onUpdateData:
|
|
3176
|
+
onUpdateData: S
|
|
3177
3177
|
}, null, 8, ["index", "config"])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
3178
3178
|
key: 1,
|
|
3179
3179
|
config: B,
|
|
@@ -3203,7 +3203,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3203
3203
|
title: "报表列表",
|
|
3204
3204
|
icon: "iconfont icon-s-grid"
|
|
3205
3205
|
},
|
|
3206
|
-
component: () => import("./StatementList-
|
|
3206
|
+
component: () => import("./StatementList-f6d5a1ab.mjs")
|
|
3207
3207
|
}), r.addRoute("Index", {
|
|
3208
3208
|
path: "statement/design/:id",
|
|
3209
3209
|
name: "报表设计",
|
|
@@ -3212,17 +3212,17 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3212
3212
|
title: "报表设计",
|
|
3213
3213
|
icon: "iconfont icon-s-grid"
|
|
3214
3214
|
},
|
|
3215
|
-
component: () => import("./StatementDesign-
|
|
3216
|
-
})
|
|
3217
|
-
path: "
|
|
3215
|
+
component: () => import("./StatementDesign-c5d6be1b.mjs")
|
|
3216
|
+
}), r.addRoute("Index", {
|
|
3217
|
+
path: "statement/detail/:id",
|
|
3218
3218
|
name: "后台报表查看",
|
|
3219
3219
|
meta: {
|
|
3220
|
-
id: "
|
|
3220
|
+
id: "StatementDetail",
|
|
3221
3221
|
title: "后台报表查看",
|
|
3222
3222
|
icon: "iconfont icon-s-grid"
|
|
3223
3223
|
},
|
|
3224
|
-
component: () => import("./StatementDetail-
|
|
3225
|
-
}), r.addRoute({
|
|
3224
|
+
component: () => import("./StatementDetail-85e1aa9d.mjs")
|
|
3225
|
+
})), r.addRoute({
|
|
3226
3226
|
path: "/statementdetail/:id",
|
|
3227
3227
|
name: "报表查看",
|
|
3228
3228
|
meta: {
|
|
@@ -3230,7 +3230,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3230
3230
|
title: "报表查看",
|
|
3231
3231
|
icon: "iconfont icon-s-grid"
|
|
3232
3232
|
},
|
|
3233
|
-
component: () => import("./StatementDetail-
|
|
3233
|
+
component: () => import("./StatementDetail-85e1aa9d.mjs")
|
|
3234
3234
|
});
|
|
3235
3235
|
}
|
|
3236
3236
|
};
|
|
@@ -3286,4 +3286,4 @@ export {
|
|
|
3286
3286
|
renderCellStyle as r,
|
|
3287
3287
|
save as s
|
|
3288
3288
|
};
|
|
3289
|
-
//# sourceMappingURL=index-
|
|
3289
|
+
//# sourceMappingURL=index-affed8f2.mjs.map
|