yh-report 2.0.10 → 2.0.12
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-c631779a.mjs → StatementDesign-d144ffdc.mjs} +2 -2
- package/{StatementDesign-c631779a.mjs.map → StatementDesign-d144ffdc.mjs.map} +1 -1
- package/{StatementDetail-7a7ce1bb.mjs → StatementDetail-09cc58ca.mjs} +2 -2
- package/{StatementDetail-7a7ce1bb.mjs.map → StatementDetail-09cc58ca.mjs.map} +1 -1
- package/{StatementList-dd1048ae.mjs → StatementList-8deb57ec.mjs} +2 -2
- package/{StatementList-dd1048ae.mjs.map → StatementList-8deb57ec.mjs.map} +1 -1
- package/{index-b93c655c.mjs → index-f86a45b6.mjs} +332 -332
- package/index-f86a45b6.mjs.map +1 -0
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/index-b93c655c.mjs.map +0 -1
|
@@ -144,11 +144,11 @@ const TypeItems = ref([
|
|
|
144
144
|
let i = t.value(1);
|
|
145
145
|
Array.isArray(i) && (i = i.map((N) => String.fromCharCode(N)).join(""));
|
|
146
146
|
const c = t.getWidth(), s = t.getHeight(), m = colors[r % 6], f = e.dataInsideLength;
|
|
147
|
-
let
|
|
148
|
-
|
|
147
|
+
let x = c * 0.01;
|
|
148
|
+
x < 10 && (x = 10), x > 15 && (x = 15);
|
|
149
149
|
let C = s * 0.5;
|
|
150
150
|
C < 60 && (C = 60);
|
|
151
|
-
const
|
|
151
|
+
const E = (c - x * 2 - x * (f - 1)) / f, S = 8, g = x + r * (E + x), b = (t.getHeight() - C) / 2;
|
|
152
152
|
return {
|
|
153
153
|
type: "group",
|
|
154
154
|
children: [
|
|
@@ -157,7 +157,7 @@ const TypeItems = ref([
|
|
|
157
157
|
shape: {
|
|
158
158
|
x: g,
|
|
159
159
|
y: b,
|
|
160
|
-
width:
|
|
160
|
+
width: E,
|
|
161
161
|
height: C,
|
|
162
162
|
r: S
|
|
163
163
|
},
|
|
@@ -182,7 +182,7 @@ ${n}`,
|
|
|
182
182
|
align: "center",
|
|
183
183
|
verticalAlign: "middle"
|
|
184
184
|
},
|
|
185
|
-
position: [g +
|
|
185
|
+
position: [g + E / 2, b + C / 2]
|
|
186
186
|
}
|
|
187
187
|
]
|
|
188
188
|
};
|
|
@@ -729,17 +729,17 @@ ${n}`,
|
|
|
729
729
|
for (let s of n) {
|
|
730
730
|
let m, f;
|
|
731
731
|
s.length === 3 ? (t[s[0]] && (m = t[s[0]][s[1]]), f = s[2]) : (m = t[s[0]], f = s[1]);
|
|
732
|
-
let
|
|
732
|
+
let x = [];
|
|
733
733
|
if (e.groupBy && i) {
|
|
734
734
|
let C = {};
|
|
735
|
-
m.forEach((
|
|
736
|
-
let S =
|
|
735
|
+
m.forEach((E) => {
|
|
736
|
+
let S = E[c], g = E[f];
|
|
737
737
|
S && !isNaN(g) && (C[S] || (C[S] = 0), C[S] = g);
|
|
738
|
-
}),
|
|
738
|
+
}), x = i.map((E) => C[E]);
|
|
739
739
|
} else
|
|
740
|
-
|
|
741
|
-
e.orderBy && e.orderBy !== "NONE" && (
|
|
742
|
-
value:
|
|
740
|
+
x = m.map((C) => C[f]);
|
|
741
|
+
e.orderBy && e.orderBy !== "NONE" && (x = x.sort((C, E) => e.orderBy === "ASC" ? C - E : E - C), !isNaN(e.cutLength) && e.cutLength > 0 && (x = x.slice(0, e.cutLength))), r.series[0].data.push({
|
|
742
|
+
value: x
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
745
|
} else if (e.type == "treemap") {
|
|
@@ -748,8 +748,8 @@ ${n}`,
|
|
|
748
748
|
if (t[s][0]) {
|
|
749
749
|
let f = t[s][0][m];
|
|
750
750
|
if (f) {
|
|
751
|
-
let
|
|
752
|
-
r.series[0].data[0].name = `${
|
|
751
|
+
let x = r.series[0].data[0].name.split(":")[0];
|
|
752
|
+
r.series[0].data[0].name = `${x}:${f}`;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
}
|
|
@@ -757,52 +757,52 @@ ${n}`,
|
|
|
757
757
|
let s = cloneDeep(r.series);
|
|
758
758
|
n.length && (r.series = []);
|
|
759
759
|
for (let m = 0; m < n.length; m++) {
|
|
760
|
-
let f = n[m],
|
|
761
|
-
f.length === 3 ? (t[f[0]] && (
|
|
762
|
-
let
|
|
763
|
-
|
|
760
|
+
let f = n[m], x, C;
|
|
761
|
+
f.length === 3 ? (t[f[0]] && (x = t[f[0]][f[1]]), C = f[2]) : (x = t[f[0]], C = f[1]);
|
|
762
|
+
let E = cloneDeep(s[0]);
|
|
763
|
+
E.data = [];
|
|
764
764
|
let S = [];
|
|
765
|
-
if (
|
|
765
|
+
if (x && c && i) {
|
|
766
766
|
switch (e.type) {
|
|
767
767
|
case "line":
|
|
768
768
|
case "rowBar":
|
|
769
769
|
case "bar":
|
|
770
770
|
if (e.groupBy) {
|
|
771
771
|
let g = {};
|
|
772
|
-
|
|
772
|
+
x.forEach((b) => {
|
|
773
773
|
let N = b[c], P = b[C];
|
|
774
774
|
N && !isNaN(P) && (g[N] || (g[N] = 0), g[N] = P);
|
|
775
775
|
}), S = i.map((b) => g[b]);
|
|
776
776
|
} else
|
|
777
|
-
S =
|
|
777
|
+
S = x.map((g) => g[C]);
|
|
778
778
|
e.orderBy && e.orderBy !== "NONE" && (S = S.sort((g, b) => e.orderBy === "ASC" ? g - b : b - g), !isNaN(e.cutLength) && e.cutLength > 0 && (S = S.slice(0, e.cutLength)));
|
|
779
779
|
break;
|
|
780
780
|
case "pie":
|
|
781
781
|
if (e.groupBy) {
|
|
782
782
|
let g = {};
|
|
783
|
-
|
|
783
|
+
x.forEach((b) => {
|
|
784
784
|
let N = b[c], P = b[C];
|
|
785
785
|
N && !isNaN(P) && (g[N] || (g[N] = 0), g[N] = P);
|
|
786
786
|
}), S = i.map((b) => ({ value: g[b], name: b }));
|
|
787
787
|
} else
|
|
788
|
-
S =
|
|
788
|
+
S = x.map((g) => ({ value: g[C], name: g[c] }));
|
|
789
789
|
e.orderBy && e.orderBy !== "NONE" && (S = S.sort((g, b) => e.orderBy === "ASC" ? g - b : b - g), !isNaN(e.cutLength) && e.cutLength > 0 && (S = S.slice(0, e.cutLength)));
|
|
790
790
|
break;
|
|
791
791
|
case "scatter":
|
|
792
792
|
if (e.groupBy) {
|
|
793
793
|
let g = {};
|
|
794
|
-
|
|
794
|
+
x.forEach((b) => {
|
|
795
795
|
let N = b[c], P = b[C];
|
|
796
796
|
N && !isNaN(P) && (g[N] || (g[N] = 0), g[N] = P);
|
|
797
797
|
}), S = i.map((b) => [b, g[b]]);
|
|
798
798
|
} else
|
|
799
|
-
S =
|
|
799
|
+
S = x.map((g) => [g[c], g[C]]);
|
|
800
800
|
e.orderBy && e.orderBy !== "NONE" && (S = S.sort((g, b) => e.orderBy === "ASC" ? g - b : b - g), !isNaN(e.cutLength) && e.cutLength > 0 && (S = S.slice(0, e.cutLength)));
|
|
801
801
|
break;
|
|
802
802
|
case "label":
|
|
803
803
|
if (e.groupBy) {
|
|
804
804
|
let g = {};
|
|
805
|
-
|
|
805
|
+
x.forEach((b) => {
|
|
806
806
|
let N = b[c], P = b[C];
|
|
807
807
|
N && !isNaN(P) && (g[N] || (g[N] = 0), g[N] = P);
|
|
808
808
|
}), S = i.map((b) => {
|
|
@@ -810,16 +810,16 @@ ${n}`,
|
|
|
810
810
|
return [g[b], N];
|
|
811
811
|
});
|
|
812
812
|
} else
|
|
813
|
-
S =
|
|
813
|
+
S = x.map((g) => {
|
|
814
814
|
const b = g[c] ? g[c].split("").map((N) => N.charCodeAt()) : [];
|
|
815
815
|
return [g[C], b];
|
|
816
816
|
});
|
|
817
|
-
e.orderBy && e.orderBy !== "NONE" && (S = S.sort((g, b) => e.orderBy === "ASC" ? g - b : b - g), !isNaN(e.cutLength) && e.cutLength > 0 && (S = S.slice(0, e.cutLength))),
|
|
817
|
+
e.orderBy && e.orderBy !== "NONE" && (S = S.sort((g, b) => e.orderBy === "ASC" ? g - b : b - g), !isNaN(e.cutLength) && e.cutLength > 0 && (S = S.slice(0, e.cutLength))), E.renderItem = renderItem;
|
|
818
818
|
break;
|
|
819
819
|
}
|
|
820
|
-
|
|
820
|
+
E.data = S;
|
|
821
821
|
}
|
|
822
|
-
r.series.push(
|
|
822
|
+
r.series.push(E);
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
825
|
return r;
|
|
@@ -848,20 +848,20 @@ function getConfig(e) {
|
|
|
848
848
|
id: e
|
|
849
849
|
}
|
|
850
850
|
}).then((t) => {
|
|
851
|
-
let r = JSON.parse(t.data.info), { id: n, name: i, code: c, description: s, config: m, chartConfig: f } = r,
|
|
851
|
+
let r = JSON.parse(t.data.info), { id: n, name: i, code: c, description: s, config: m, chartConfig: f } = r, x = [];
|
|
852
852
|
if (m && (m = JSON.parse(m), Array.isArray(m) && m.length)) {
|
|
853
853
|
if (m[0].type === "tableSheet")
|
|
854
854
|
throw ElMessage.error("当前报表版本不支持老版本数据,请等待老版本数据转换工具上线"), useRouter().back(), new Error("当前报表版本不支持老版本数据,请等待老版本数据转换工具上线");
|
|
855
|
-
m = m.map((C) => (ItemTypes.value.includes(C.type) || (C.type = "report"), C)),
|
|
855
|
+
m = m.map((C) => (ItemTypes.value.includes(C.type) || (C.type = "report"), C)), x = x.concat(m);
|
|
856
856
|
}
|
|
857
857
|
return f && (f = JSON.parse(f), Array.isArray(f) && (f.forEach((C) => {
|
|
858
858
|
C.data || (C.data = { source: [] });
|
|
859
|
-
}),
|
|
859
|
+
}), x = x.concat(f))), Promise.resolve({
|
|
860
860
|
id: n,
|
|
861
861
|
name: i,
|
|
862
862
|
code: c,
|
|
863
863
|
description: s,
|
|
864
|
-
remoteOptions:
|
|
864
|
+
remoteOptions: x
|
|
865
865
|
});
|
|
866
866
|
});
|
|
867
867
|
}
|
|
@@ -890,40 +890,40 @@ var dayjs_min = { exports: {} };
|
|
|
890
890
|
(function(r, n) {
|
|
891
891
|
e.exports = n();
|
|
892
892
|
})(commonjsGlobal, function() {
|
|
893
|
-
var r = 1e3, n = 6e4, i = 36e5, c = "millisecond", s = "second", m = "minute", f = "hour",
|
|
894
|
-
var l = ["th", "st", "nd", "rd"],
|
|
895
|
-
return "[" + u + (l[(
|
|
896
|
-
} }, W = function(u, l,
|
|
893
|
+
var r = 1e3, n = 6e4, i = 36e5, c = "millisecond", s = "second", m = "minute", f = "hour", x = "day", C = "week", E = "month", S = "quarter", g = "year", b = "date", N = "Invalid Date", P = /^(\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) {
|
|
894
|
+
var l = ["th", "st", "nd", "rd"], o = u % 100;
|
|
895
|
+
return "[" + u + (l[(o - 20) % 10] || l[o] || l[0]) + "]";
|
|
896
|
+
} }, W = function(u, l, o) {
|
|
897
897
|
var p = String(u);
|
|
898
|
-
return !p || p.length >= l ? u : "" + Array(l + 1 - p.length).join(
|
|
898
|
+
return !p || p.length >= l ? u : "" + Array(l + 1 - p.length).join(o) + u;
|
|
899
899
|
}, ne = { s: W, z: function(u) {
|
|
900
|
-
var l = -u.utcOffset(),
|
|
900
|
+
var l = -u.utcOffset(), o = Math.abs(l), p = Math.floor(o / 60), d = o % 60;
|
|
901
901
|
return (l <= 0 ? "+" : "-") + W(p, 2, "0") + ":" + W(d, 2, "0");
|
|
902
|
-
}, m: function u(l,
|
|
903
|
-
if (l.date() <
|
|
904
|
-
return -u(
|
|
905
|
-
var p = 12 * (
|
|
906
|
-
return +(-(p + (
|
|
902
|
+
}, m: function u(l, o) {
|
|
903
|
+
if (l.date() < o.date())
|
|
904
|
+
return -u(o, l);
|
|
905
|
+
var p = 12 * (o.year() - l.year()) + (o.month() - l.month()), d = l.clone().add(p, E), y = o - d < 0, a = l.clone().add(p + (y ? -1 : 1), E);
|
|
906
|
+
return +(-(p + (o - d) / (y ? d - a : a - d)) || 0);
|
|
907
907
|
}, a: function(u) {
|
|
908
908
|
return u < 0 ? Math.ceil(u) || 0 : Math.floor(u);
|
|
909
909
|
}, p: function(u) {
|
|
910
|
-
return { M:
|
|
910
|
+
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$/, "");
|
|
911
911
|
}, u: function(u) {
|
|
912
912
|
return u === void 0;
|
|
913
913
|
} }, Q = "en", q = {};
|
|
914
914
|
q[Q] = Y;
|
|
915
915
|
var re = "$isDayjsObject", Z = function(u) {
|
|
916
916
|
return u instanceof O || !(!u || !u[re]);
|
|
917
|
-
}, ee = function u(l,
|
|
917
|
+
}, ee = function u(l, o, p) {
|
|
918
918
|
var d;
|
|
919
919
|
if (!l)
|
|
920
920
|
return Q;
|
|
921
921
|
if (typeof l == "string") {
|
|
922
|
-
var
|
|
923
|
-
q[
|
|
924
|
-
var
|
|
925
|
-
if (!d &&
|
|
926
|
-
return u(
|
|
922
|
+
var y = l.toLowerCase();
|
|
923
|
+
q[y] && (d = y), o && (q[y] = o, d = y);
|
|
924
|
+
var a = l.split("-");
|
|
925
|
+
if (!d && a.length > 1)
|
|
926
|
+
return u(a[0]);
|
|
927
927
|
} else {
|
|
928
928
|
var v = l.name;
|
|
929
929
|
q[v] = l, d = v;
|
|
@@ -932,20 +932,20 @@ var dayjs_min = { exports: {} };
|
|
|
932
932
|
}, X = function(u, l) {
|
|
933
933
|
if (Z(u))
|
|
934
934
|
return u.clone();
|
|
935
|
-
var
|
|
936
|
-
return
|
|
935
|
+
var o = typeof l == "object" ? l : {};
|
|
936
|
+
return o.date = u, o.args = arguments, new O(o);
|
|
937
937
|
}, j = ne;
|
|
938
938
|
j.l = ee, j.i = Z, j.w = function(u, l) {
|
|
939
939
|
return X(u, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
|
|
940
940
|
};
|
|
941
941
|
var O = function() {
|
|
942
|
-
function u(
|
|
943
|
-
this.$L = ee(
|
|
942
|
+
function u(o) {
|
|
943
|
+
this.$L = ee(o.locale, null, !0), this.parse(o), this.$x = this.$x || o.x || {}, this[re] = !0;
|
|
944
944
|
}
|
|
945
945
|
var l = u.prototype;
|
|
946
|
-
return l.parse = function(
|
|
946
|
+
return l.parse = function(o) {
|
|
947
947
|
this.$d = function(p) {
|
|
948
|
-
var d = p.date,
|
|
948
|
+
var d = p.date, y = p.utc;
|
|
949
949
|
if (d === null)
|
|
950
950
|
return /* @__PURE__ */ new Date(NaN);
|
|
951
951
|
if (j.u(d))
|
|
@@ -953,50 +953,50 @@ var dayjs_min = { exports: {} };
|
|
|
953
953
|
if (d instanceof Date)
|
|
954
954
|
return new Date(d);
|
|
955
955
|
if (typeof d == "string" && !/Z$/i.test(d)) {
|
|
956
|
-
var
|
|
957
|
-
if (
|
|
958
|
-
var v =
|
|
959
|
-
return
|
|
956
|
+
var a = d.match(P);
|
|
957
|
+
if (a) {
|
|
958
|
+
var v = a[2] - 1 || 0, A = (a[7] || "0").substring(0, 3);
|
|
959
|
+
return y ? new Date(Date.UTC(a[1], v, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, A)) : new Date(a[1], v, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, A);
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
return new Date(d);
|
|
963
|
-
}(
|
|
963
|
+
}(o), this.init();
|
|
964
964
|
}, l.init = function() {
|
|
965
|
-
var
|
|
966
|
-
this.$y =
|
|
965
|
+
var o = this.$d;
|
|
966
|
+
this.$y = o.getFullYear(), this.$M = o.getMonth(), this.$D = o.getDate(), this.$W = o.getDay(), this.$H = o.getHours(), this.$m = o.getMinutes(), this.$s = o.getSeconds(), this.$ms = o.getMilliseconds();
|
|
967
967
|
}, l.$utils = function() {
|
|
968
968
|
return j;
|
|
969
969
|
}, l.isValid = function() {
|
|
970
970
|
return this.$d.toString() !== N;
|
|
971
|
-
}, l.isSame = function(
|
|
972
|
-
var d = X(
|
|
971
|
+
}, l.isSame = function(o, p) {
|
|
972
|
+
var d = X(o);
|
|
973
973
|
return this.startOf(p) <= d && d <= this.endOf(p);
|
|
974
|
-
}, l.isAfter = function(
|
|
975
|
-
return X(
|
|
976
|
-
}, l.isBefore = function(
|
|
977
|
-
return this.endOf(p) < X(
|
|
978
|
-
}, l.$g = function(
|
|
979
|
-
return j.u(
|
|
974
|
+
}, l.isAfter = function(o, p) {
|
|
975
|
+
return X(o) < this.startOf(p);
|
|
976
|
+
}, l.isBefore = function(o, p) {
|
|
977
|
+
return this.endOf(p) < X(o);
|
|
978
|
+
}, l.$g = function(o, p, d) {
|
|
979
|
+
return j.u(o) ? this[p] : this.set(d, o);
|
|
980
980
|
}, l.unix = function() {
|
|
981
981
|
return Math.floor(this.valueOf() / 1e3);
|
|
982
982
|
}, l.valueOf = function() {
|
|
983
983
|
return this.$d.getTime();
|
|
984
|
-
}, l.startOf = function(
|
|
985
|
-
var d = this,
|
|
986
|
-
var $ = j.w(d.$u ? Date.UTC(d.$y, k,
|
|
987
|
-
return
|
|
988
|
-
}, A = function(
|
|
989
|
-
return j.w(d.toDate()[
|
|
984
|
+
}, l.startOf = function(o, p) {
|
|
985
|
+
var d = this, y = !!j.u(p) || p, a = j.p(o), v = function(T, k) {
|
|
986
|
+
var $ = j.w(d.$u ? Date.UTC(d.$y, k, T) : new Date(d.$y, k, T), d);
|
|
987
|
+
return y ? $ : $.endOf(x);
|
|
988
|
+
}, A = function(T, k) {
|
|
989
|
+
return j.w(d.toDate()[T].apply(d.toDate("s"), (y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), d);
|
|
990
990
|
}, U = this.$W, F = this.$M, L = this.$D, M = "set" + (this.$u ? "UTC" : "");
|
|
991
|
-
switch (
|
|
991
|
+
switch (a) {
|
|
992
992
|
case g:
|
|
993
|
-
return
|
|
994
|
-
case
|
|
995
|
-
return
|
|
993
|
+
return y ? v(1, 0) : v(31, 11);
|
|
994
|
+
case E:
|
|
995
|
+
return y ? v(1, F) : v(0, F + 1);
|
|
996
996
|
case C:
|
|
997
|
-
var
|
|
998
|
-
return v(
|
|
999
|
-
case
|
|
997
|
+
var V = this.$locale().weekStart || 0, D = (U < V ? U + 7 : U) - V;
|
|
998
|
+
return v(y ? L - D : L + (6 - D), F);
|
|
999
|
+
case x:
|
|
1000
1000
|
case b:
|
|
1001
1001
|
return A(M + "Hours", 0);
|
|
1002
1002
|
case f:
|
|
@@ -1008,52 +1008,52 @@ var dayjs_min = { exports: {} };
|
|
|
1008
1008
|
default:
|
|
1009
1009
|
return this.clone();
|
|
1010
1010
|
}
|
|
1011
|
-
}, l.endOf = function(
|
|
1012
|
-
return this.startOf(
|
|
1013
|
-
}, l.$set = function(
|
|
1014
|
-
var d,
|
|
1015
|
-
if (
|
|
1011
|
+
}, l.endOf = function(o) {
|
|
1012
|
+
return this.startOf(o, !1);
|
|
1013
|
+
}, l.$set = function(o, p) {
|
|
1014
|
+
var d, y = j.p(o), a = "set" + (this.$u ? "UTC" : ""), v = (d = {}, d[x] = a + "Date", d[b] = a + "Date", d[E] = a + "Month", d[g] = a + "FullYear", d[f] = a + "Hours", d[m] = a + "Minutes", d[s] = a + "Seconds", d[c] = a + "Milliseconds", d)[y], A = y === x ? this.$D + (p - this.$W) : p;
|
|
1015
|
+
if (y === E || y === g) {
|
|
1016
1016
|
var U = this.clone().set(b, 1);
|
|
1017
1017
|
U.$d[v](A), U.init(), this.$d = U.set(b, Math.min(this.$D, U.daysInMonth())).$d;
|
|
1018
1018
|
} else
|
|
1019
1019
|
v && this.$d[v](A);
|
|
1020
1020
|
return this.init(), this;
|
|
1021
|
-
}, l.set = function(
|
|
1022
|
-
return this.clone().$set(
|
|
1023
|
-
}, l.get = function(
|
|
1024
|
-
return this[j.p(
|
|
1025
|
-
}, l.add = function(
|
|
1026
|
-
var d,
|
|
1027
|
-
|
|
1028
|
-
var
|
|
1029
|
-
var L = X(
|
|
1030
|
-
return j.w(L.date(L.date() + Math.round(F *
|
|
1021
|
+
}, l.set = function(o, p) {
|
|
1022
|
+
return this.clone().$set(o, p);
|
|
1023
|
+
}, l.get = function(o) {
|
|
1024
|
+
return this[j.p(o)]();
|
|
1025
|
+
}, l.add = function(o, p) {
|
|
1026
|
+
var d, y = this;
|
|
1027
|
+
o = Number(o);
|
|
1028
|
+
var a = j.p(p), v = function(F) {
|
|
1029
|
+
var L = X(y);
|
|
1030
|
+
return j.w(L.date(L.date() + Math.round(F * o)), y);
|
|
1031
1031
|
};
|
|
1032
|
-
if (
|
|
1033
|
-
return this.set(
|
|
1034
|
-
if (
|
|
1035
|
-
return this.set(g, this.$y +
|
|
1036
|
-
if (
|
|
1032
|
+
if (a === E)
|
|
1033
|
+
return this.set(E, this.$M + o);
|
|
1034
|
+
if (a === g)
|
|
1035
|
+
return this.set(g, this.$y + o);
|
|
1036
|
+
if (a === x)
|
|
1037
1037
|
return v(1);
|
|
1038
|
-
if (
|
|
1038
|
+
if (a === C)
|
|
1039
1039
|
return v(7);
|
|
1040
|
-
var A = (d = {}, d[m] = n, d[f] = i, d[s] = r, d)[
|
|
1040
|
+
var A = (d = {}, d[m] = n, d[f] = i, d[s] = r, d)[a] || 1, U = this.$d.getTime() + o * A;
|
|
1041
1041
|
return j.w(U, this);
|
|
1042
|
-
}, l.subtract = function(
|
|
1043
|
-
return this.add(-1 *
|
|
1044
|
-
}, l.format = function(
|
|
1042
|
+
}, l.subtract = function(o, p) {
|
|
1043
|
+
return this.add(-1 * o, p);
|
|
1044
|
+
}, l.format = function(o) {
|
|
1045
1045
|
var p = this, d = this.$locale();
|
|
1046
1046
|
if (!this.isValid())
|
|
1047
1047
|
return d.invalidDate || N;
|
|
1048
|
-
var
|
|
1049
|
-
return k && (k[$] || k(p,
|
|
1048
|
+
var y = o || "YYYY-MM-DDTHH:mm:ssZ", a = j.z(this), v = this.$H, A = this.$m, U = this.$M, F = d.weekdays, L = d.months, M = d.meridiem, V = function(k, $, _, I) {
|
|
1049
|
+
return k && (k[$] || k(p, y)) || _[$].slice(0, I);
|
|
1050
1050
|
}, D = function(k) {
|
|
1051
1051
|
return j.s(v % 12 || 12, k, "0");
|
|
1052
|
-
},
|
|
1052
|
+
}, T = M || function(k, $, _) {
|
|
1053
1053
|
var I = k < 12 ? "AM" : "PM";
|
|
1054
1054
|
return _ ? I.toLowerCase() : I;
|
|
1055
1055
|
};
|
|
1056
|
-
return
|
|
1056
|
+
return y.replace(J, function(k, $) {
|
|
1057
1057
|
return $ || function(_) {
|
|
1058
1058
|
switch (_) {
|
|
1059
1059
|
case "YY":
|
|
@@ -1065,9 +1065,9 @@ var dayjs_min = { exports: {} };
|
|
|
1065
1065
|
case "MM":
|
|
1066
1066
|
return j.s(U + 1, 2, "0");
|
|
1067
1067
|
case "MMM":
|
|
1068
|
-
return
|
|
1068
|
+
return V(d.monthsShort, U, L, 3);
|
|
1069
1069
|
case "MMMM":
|
|
1070
|
-
return
|
|
1070
|
+
return V(L, U);
|
|
1071
1071
|
case "D":
|
|
1072
1072
|
return p.$D;
|
|
1073
1073
|
case "DD":
|
|
@@ -1075,9 +1075,9 @@ var dayjs_min = { exports: {} };
|
|
|
1075
1075
|
case "d":
|
|
1076
1076
|
return String(p.$W);
|
|
1077
1077
|
case "dd":
|
|
1078
|
-
return
|
|
1078
|
+
return V(d.weekdaysMin, p.$W, F, 2);
|
|
1079
1079
|
case "ddd":
|
|
1080
|
-
return
|
|
1080
|
+
return V(d.weekdaysShort, p.$W, F, 3);
|
|
1081
1081
|
case "dddd":
|
|
1082
1082
|
return F[p.$W];
|
|
1083
1083
|
case "H":
|
|
@@ -1089,9 +1089,9 @@ var dayjs_min = { exports: {} };
|
|
|
1089
1089
|
case "hh":
|
|
1090
1090
|
return D(2);
|
|
1091
1091
|
case "a":
|
|
1092
|
-
return
|
|
1092
|
+
return T(v, A, !0);
|
|
1093
1093
|
case "A":
|
|
1094
|
-
return
|
|
1094
|
+
return T(v, A, !1);
|
|
1095
1095
|
case "m":
|
|
1096
1096
|
return String(A);
|
|
1097
1097
|
case "mm":
|
|
@@ -1103,55 +1103,55 @@ var dayjs_min = { exports: {} };
|
|
|
1103
1103
|
case "SSS":
|
|
1104
1104
|
return j.s(p.$ms, 3, "0");
|
|
1105
1105
|
case "Z":
|
|
1106
|
-
return
|
|
1106
|
+
return a;
|
|
1107
1107
|
}
|
|
1108
1108
|
return null;
|
|
1109
|
-
}(k) ||
|
|
1109
|
+
}(k) || a.replace(":", "");
|
|
1110
1110
|
});
|
|
1111
1111
|
}, l.utcOffset = function() {
|
|
1112
1112
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1113
|
-
}, l.diff = function(
|
|
1114
|
-
var
|
|
1115
|
-
return j.m(
|
|
1113
|
+
}, l.diff = function(o, p, d) {
|
|
1114
|
+
var y, a = this, v = j.p(p), A = X(o), U = (A.utcOffset() - this.utcOffset()) * n, F = this - A, L = function() {
|
|
1115
|
+
return j.m(a, A);
|
|
1116
1116
|
};
|
|
1117
1117
|
switch (v) {
|
|
1118
1118
|
case g:
|
|
1119
|
-
|
|
1119
|
+
y = L() / 12;
|
|
1120
1120
|
break;
|
|
1121
|
-
case
|
|
1122
|
-
|
|
1121
|
+
case E:
|
|
1122
|
+
y = L();
|
|
1123
1123
|
break;
|
|
1124
1124
|
case S:
|
|
1125
|
-
|
|
1125
|
+
y = L() / 3;
|
|
1126
1126
|
break;
|
|
1127
1127
|
case C:
|
|
1128
|
-
|
|
1128
|
+
y = (F - U) / 6048e5;
|
|
1129
1129
|
break;
|
|
1130
|
-
case
|
|
1131
|
-
|
|
1130
|
+
case x:
|
|
1131
|
+
y = (F - U) / 864e5;
|
|
1132
1132
|
break;
|
|
1133
1133
|
case f:
|
|
1134
|
-
|
|
1134
|
+
y = F / i;
|
|
1135
1135
|
break;
|
|
1136
1136
|
case m:
|
|
1137
|
-
|
|
1137
|
+
y = F / n;
|
|
1138
1138
|
break;
|
|
1139
1139
|
case s:
|
|
1140
|
-
|
|
1140
|
+
y = F / r;
|
|
1141
1141
|
break;
|
|
1142
1142
|
default:
|
|
1143
|
-
|
|
1143
|
+
y = F;
|
|
1144
1144
|
}
|
|
1145
|
-
return d ?
|
|
1145
|
+
return d ? y : j.a(y);
|
|
1146
1146
|
}, l.daysInMonth = function() {
|
|
1147
|
-
return this.endOf(
|
|
1147
|
+
return this.endOf(E).$D;
|
|
1148
1148
|
}, l.$locale = function() {
|
|
1149
1149
|
return q[this.$L];
|
|
1150
|
-
}, l.locale = function(
|
|
1151
|
-
if (!
|
|
1150
|
+
}, l.locale = function(o, p) {
|
|
1151
|
+
if (!o)
|
|
1152
1152
|
return this.$L;
|
|
1153
|
-
var d = this.clone(),
|
|
1154
|
-
return
|
|
1153
|
+
var d = this.clone(), y = ee(o, p, !0);
|
|
1154
|
+
return y && (d.$L = y), d;
|
|
1155
1155
|
}, l.clone = function() {
|
|
1156
1156
|
return j.w(this.$d, this);
|
|
1157
1157
|
}, l.toDate = function() {
|
|
@@ -1164,7 +1164,7 @@ var dayjs_min = { exports: {} };
|
|
|
1164
1164
|
return this.$d.toUTCString();
|
|
1165
1165
|
}, u;
|
|
1166
1166
|
}(), w = O.prototype;
|
|
1167
|
-
return X.prototype = w, [["$ms", c], ["$s", s], ["$m", m], ["$H", f], ["$W",
|
|
1167
|
+
return X.prototype = w, [["$ms", c], ["$s", s], ["$m", m], ["$H", f], ["$W", x], ["$M", E], ["$y", g], ["$D", b]].forEach(function(u) {
|
|
1168
1168
|
w[u[1]] = function(l) {
|
|
1169
1169
|
return this.$g(l, u[0], u[1]);
|
|
1170
1170
|
};
|
|
@@ -1245,7 +1245,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1245
1245
|
},
|
|
1246
1246
|
emits: ["change"],
|
|
1247
1247
|
setup(e, { emit: t }) {
|
|
1248
|
-
const r = e, n = dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"), i = 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"),
|
|
1248
|
+
const r = e, n = dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"), i = 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([]);
|
|
1249
1249
|
watch(
|
|
1250
1250
|
() => r.config,
|
|
1251
1251
|
() => {
|
|
@@ -1258,7 +1258,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1258
1258
|
);
|
|
1259
1259
|
function g() {
|
|
1260
1260
|
let P = [];
|
|
1261
|
-
if (
|
|
1261
|
+
if (E.value = [], r.config && r.config.length) {
|
|
1262
1262
|
for (let J = 0; J < r.config.length; J++) {
|
|
1263
1263
|
const Y = cloneDeep(r.config[J]);
|
|
1264
1264
|
let { dataType: W, dateType: ne, type: Q, selectorId: q, name: re, columnName: Z, defaultValue: ee, isNull: X } = Y, j = [DataSourceColumnDataType.DATE, DataSourceColumnDataType.DATETIME].includes(W);
|
|
@@ -1277,10 +1277,10 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1277
1277
|
l = m;
|
|
1278
1278
|
break;
|
|
1279
1279
|
case "thisYear":
|
|
1280
|
-
l =
|
|
1280
|
+
l = x;
|
|
1281
1281
|
break;
|
|
1282
1282
|
}
|
|
1283
|
-
if (Y.value = l,
|
|
1283
|
+
if (Y.value = l, E.value.push({
|
|
1284
1284
|
name: Z,
|
|
1285
1285
|
value: l,
|
|
1286
1286
|
type: Q,
|
|
@@ -1288,15 +1288,15 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1288
1288
|
}), q && axios.request({
|
|
1289
1289
|
url: `/windowDesign/getSelectorList?selectorId=${q}`,
|
|
1290
1290
|
method: "POST"
|
|
1291
|
-
}).then((
|
|
1292
|
-
|
|
1291
|
+
}).then((o) => {
|
|
1292
|
+
o.data && o.data.data && (Y.optionData = o.data.data.map(({ name: p, value: d }) => ({
|
|
1293
1293
|
label: p,
|
|
1294
1294
|
value: d
|
|
1295
1295
|
})));
|
|
1296
1296
|
}), P.push(Y), Q === "LT_GT_EQ") {
|
|
1297
1297
|
Y.placeholder = w + "开始";
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1298
|
+
const o = cloneDeep(Y);
|
|
1299
|
+
o.name = "-", o.columnName = `end_${Z}`, o.placeholder = w + "结束";
|
|
1300
1300
|
let p = ee || "";
|
|
1301
1301
|
if (j)
|
|
1302
1302
|
switch (ee) {
|
|
@@ -1313,7 +1313,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1313
1313
|
p = C;
|
|
1314
1314
|
break;
|
|
1315
1315
|
}
|
|
1316
|
-
|
|
1316
|
+
E.value.push({
|
|
1317
1317
|
name: `end_${Z}`,
|
|
1318
1318
|
value: p,
|
|
1319
1319
|
type: Q,
|
|
@@ -1322,25 +1322,25 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1322
1322
|
url: `/windowDesign/getSelectorList?selectorId=${q}`,
|
|
1323
1323
|
method: "POST"
|
|
1324
1324
|
}).then((d) => {
|
|
1325
|
-
d.data && d.data.data && (
|
|
1326
|
-
label:
|
|
1327
|
-
value:
|
|
1325
|
+
d.data && d.data.data && (o.optionData = d.data.data.map(({ name: y, value: a }) => ({
|
|
1326
|
+
label: y,
|
|
1327
|
+
value: a
|
|
1328
1328
|
})));
|
|
1329
|
-
}), P.push(
|
|
1329
|
+
}), P.push(o);
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
r.config.map((J) => J.isNull).includes(!0) && nextTick(() => {
|
|
1333
|
-
t("change",
|
|
1333
|
+
t("change", E.value);
|
|
1334
1334
|
});
|
|
1335
1335
|
}
|
|
1336
1336
|
S.value = P;
|
|
1337
1337
|
}
|
|
1338
1338
|
function b(P, J) {
|
|
1339
|
-
let Y =
|
|
1340
|
-
J.value = P,
|
|
1339
|
+
let Y = E.value.findIndex((W) => W.name === J.columnName);
|
|
1340
|
+
J.value = P, E.value[Y].value = P, ["ElSelect", "ElTreeSelect", "ElSwitch", "ElDatePicker", "ElTimePicker", "ElColorPicker"].includes(J.formItemType) && t("change", E.value);
|
|
1341
1341
|
}
|
|
1342
1342
|
function N(P) {
|
|
1343
|
-
["ElInput", "ElInputNumber"].includes(P.formItemType) && t("change",
|
|
1343
|
+
["ElInput", "ElInputNumber"].includes(P.formItemType) && t("change", E.value);
|
|
1344
1344
|
}
|
|
1345
1345
|
return (P, J) => (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1346
1346
|
createVNode(unref(ElForm), { inline: "" }, {
|
|
@@ -1891,7 +1891,7 @@ class Jsep {
|
|
|
1891
1891
|
* @returns {?jsep.BinaryExpression}
|
|
1892
1892
|
*/
|
|
1893
1893
|
gobbleBinaryExpression() {
|
|
1894
|
-
let t, r, n, i, c, s, m, f,
|
|
1894
|
+
let t, r, n, i, c, s, m, f, x;
|
|
1895
1895
|
if (s = this.gobbleToken(), !s || (r = this.gobbleBinaryOp(), !r))
|
|
1896
1896
|
return s;
|
|
1897
1897
|
for (c = { value: r, prec: Jsep.binaryPrecedence(r), right_a: Jsep.right_associative.has(r) }, m = this.gobbleToken(), m || this.throwError("Expected expression after " + r), i = [s, c, m]; r = this.gobbleBinaryOp(); ) {
|
|
@@ -1899,8 +1899,8 @@ class Jsep {
|
|
|
1899
1899
|
this.index -= r.length;
|
|
1900
1900
|
break;
|
|
1901
1901
|
}
|
|
1902
|
-
c = { value: r, prec: n, right_a: Jsep.right_associative.has(r) },
|
|
1903
|
-
const C = (
|
|
1902
|
+
c = { value: r, prec: n, right_a: Jsep.right_associative.has(r) }, x = r;
|
|
1903
|
+
const C = (E) => c.right_a && E.right_a ? n > E.prec : n <= E.prec;
|
|
1904
1904
|
for (; i.length > 2 && C(i[i.length - 2]); )
|
|
1905
1905
|
m = i.pop(), r = i.pop().value, s = i.pop(), t = {
|
|
1906
1906
|
type: Jsep.BINARY_EXP,
|
|
@@ -1908,7 +1908,7 @@ class Jsep {
|
|
|
1908
1908
|
left: s,
|
|
1909
1909
|
right: m
|
|
1910
1910
|
}, i.push(t);
|
|
1911
|
-
t = this.gobbleToken(), t || this.throwError("Expected expression after " +
|
|
1911
|
+
t = this.gobbleToken(), t || this.throwError("Expected expression after " + x), i.push(c, t);
|
|
1912
1912
|
}
|
|
1913
1913
|
for (f = i.length - 1, t = i[f]; f > 1; )
|
|
1914
1914
|
t = {
|
|
@@ -2411,12 +2411,12 @@ function getRangeValues(e, t) {
|
|
|
2411
2411
|
const m = t.match(/[A-Z]+/);
|
|
2412
2412
|
m && (s = columnToNumber(m[0]));
|
|
2413
2413
|
let f = -1;
|
|
2414
|
-
const
|
|
2415
|
-
|
|
2414
|
+
const x = t.match(/\d+/);
|
|
2415
|
+
x && (f = parseInt(x[0]) - 1);
|
|
2416
2416
|
const C = [];
|
|
2417
|
-
for (let
|
|
2417
|
+
for (let E = i; E <= f; E++)
|
|
2418
2418
|
for (let S = r; S <= s; S++) {
|
|
2419
|
-
const g = `${
|
|
2419
|
+
const g = `${E}:${S}`;
|
|
2420
2420
|
C.push(...getCellValue(g));
|
|
2421
2421
|
}
|
|
2422
2422
|
return C;
|
|
@@ -2489,17 +2489,17 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2489
2489
|
pageSizes: [10, 20, 50, 100, 200, 1e4],
|
|
2490
2490
|
pageIndex: 1,
|
|
2491
2491
|
total: 0
|
|
2492
|
-
}),
|
|
2492
|
+
}), x = ref([]);
|
|
2493
2493
|
function C(O) {
|
|
2494
|
-
|
|
2494
|
+
x.value = O, f.pageIndex = 1, Z();
|
|
2495
2495
|
}
|
|
2496
|
-
let
|
|
2496
|
+
let E = !1;
|
|
2497
2497
|
watch(
|
|
2498
2498
|
() => [f.pageSize, f.pageIndex],
|
|
2499
2499
|
(O, w) => {
|
|
2500
2500
|
if (O && w) {
|
|
2501
|
-
let [u, l] = O, [
|
|
2502
|
-
u !==
|
|
2501
|
+
let [u, l] = O, [o, p] = O;
|
|
2502
|
+
u !== o && (f.pageIndex = 1), E && Z();
|
|
2503
2503
|
}
|
|
2504
2504
|
},
|
|
2505
2505
|
{
|
|
@@ -2516,89 +2516,89 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2516
2516
|
}
|
|
2517
2517
|
function N(O) {
|
|
2518
2518
|
const w = O.length, u = O[0].length, l = [];
|
|
2519
|
-
for (let
|
|
2520
|
-
l[
|
|
2519
|
+
for (let o = 0; o < u; o++) {
|
|
2520
|
+
l[o] = [];
|
|
2521
2521
|
for (let p = 0; p < w; p++)
|
|
2522
|
-
l[
|
|
2522
|
+
l[o][p] = O[p][o];
|
|
2523
2523
|
}
|
|
2524
2524
|
return l;
|
|
2525
2525
|
}
|
|
2526
|
-
function P(O, w, u, l,
|
|
2526
|
+
function P(O, w, u, l, o) {
|
|
2527
2527
|
if (l) {
|
|
2528
|
-
let
|
|
2529
|
-
u = a
|
|
2528
|
+
let a = o.findIndex((v) => v === u);
|
|
2529
|
+
u = o[a - 1];
|
|
2530
2530
|
}
|
|
2531
2531
|
let p = O[w], d = `${u}-${p.join("-")}`;
|
|
2532
|
-
return Object.keys(O).filter((
|
|
2532
|
+
return Object.keys(O).filter((a) => a.indexOf(d) > -1).map((a) => O[a]).reduce((a, v) => a + v.length, 0);
|
|
2533
2533
|
}
|
|
2534
2534
|
function J(O, w) {
|
|
2535
2535
|
const u = O.filter((l) => l < w);
|
|
2536
2536
|
return u.length === 0 ? null : Math.max(...u);
|
|
2537
2537
|
}
|
|
2538
2538
|
function Y(O, w, u, l) {
|
|
2539
|
-
w.forEach((
|
|
2540
|
-
let p = l[
|
|
2541
|
-
d.forEach((D,
|
|
2542
|
-
D.type === CellType.FIELD && D.data && D.isGroup &&
|
|
2539
|
+
w.forEach((o) => {
|
|
2540
|
+
let p = l[o.data], d = u[o.index], y = [];
|
|
2541
|
+
d.forEach((D, T) => {
|
|
2542
|
+
D.type === CellType.FIELD && D.data && D.isGroup && y.push(T);
|
|
2543
2543
|
});
|
|
2544
|
-
let
|
|
2545
|
-
|
|
2546
|
-
|
|
2544
|
+
let a = {};
|
|
2545
|
+
y.forEach((D, T) => {
|
|
2546
|
+
a[D] || (a[D] = /* @__PURE__ */ new Set());
|
|
2547
2547
|
let $ = d[D].data.replace("row:", "").toUpperCase();
|
|
2548
|
-
if (
|
|
2548
|
+
if (T === 0)
|
|
2549
2549
|
p.forEach((_) => {
|
|
2550
2550
|
if ($) {
|
|
2551
2551
|
let I = _[$];
|
|
2552
2552
|
if (I) {
|
|
2553
2553
|
const B = `${D}-${I}`;
|
|
2554
|
-
|
|
2554
|
+
a[B] ? a[B].push(_) : a[B] = [_], a[D].add(I), a[I] = [I];
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
});
|
|
2558
2558
|
else {
|
|
2559
|
-
let _ =
|
|
2560
|
-
Array.from(
|
|
2559
|
+
let _ = y[T - 1];
|
|
2560
|
+
Array.from(a[_]).forEach((B) => {
|
|
2561
2561
|
const H = `${_}-${B}`;
|
|
2562
|
-
let
|
|
2562
|
+
let z = a[H].map((G) => {
|
|
2563
2563
|
if ($) {
|
|
2564
2564
|
let K = G[$];
|
|
2565
2565
|
if (K) {
|
|
2566
2566
|
let te = !1;
|
|
2567
2567
|
const ie = `${D}-${B}-${K}`, ae = `${B}-${K}`;
|
|
2568
|
-
return
|
|
2568
|
+
return a[ie] ? a[ie].push(G) : a[ie] = [G], a[D].has(ae) || (te = !0), a[D].add(ae), a[ae] = a[B].concat([K]), te ? K : null;
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
2571
|
}).filter((G) => !!G);
|
|
2572
|
-
|
|
2572
|
+
a[H] = z;
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
2575
|
});
|
|
2576
|
-
let v = 1, A = Math.max(...
|
|
2576
|
+
let v = 1, A = Math.max(...y);
|
|
2577
2577
|
const U = d.some((D) => D.isRowColCombine);
|
|
2578
|
-
|
|
2579
|
-
let k =
|
|
2578
|
+
y.length > 0 ? U ? v = a[A].size : v = Array.from(a[A]).reduce((D, T) => {
|
|
2579
|
+
let k = a[`${A}-${T}`];
|
|
2580
2580
|
return D + k.length;
|
|
2581
2581
|
}, 0) : v = p.length;
|
|
2582
2582
|
const F = {
|
|
2583
|
-
...
|
|
2583
|
+
...o,
|
|
2584
2584
|
loop: !1
|
|
2585
2585
|
}, L = Array.from({ length: v }, () => cloneDeep(F));
|
|
2586
|
-
O.splice(
|
|
2586
|
+
O.splice(o.index, 1, ...L);
|
|
2587
2587
|
const M = Array.from({ length: d.length }, () => []);
|
|
2588
|
-
d.forEach((D,
|
|
2589
|
-
let k = M[
|
|
2590
|
-
if (
|
|
2591
|
-
Array.from(
|
|
2592
|
-
let B = U &&
|
|
2588
|
+
d.forEach((D, T) => {
|
|
2589
|
+
let k = M[T];
|
|
2590
|
+
if (y.includes(D.col))
|
|
2591
|
+
console.log(a[D.col], T, D.col), Array.from(a[D.col]).forEach((_, I) => {
|
|
2592
|
+
let B = U && T === A ? 1 : P(a, _, A, U, y), H = a[_], R = H[a[_].length - 1], z = {
|
|
2593
2593
|
...D,
|
|
2594
|
-
text:
|
|
2594
|
+
text: R,
|
|
2595
2595
|
rowSpan: B,
|
|
2596
2596
|
rowData: H
|
|
2597
2597
|
};
|
|
2598
|
-
k.push(
|
|
2598
|
+
k.push(z);
|
|
2599
2599
|
let G = {
|
|
2600
2600
|
...D,
|
|
2601
|
-
text:
|
|
2601
|
+
text: R,
|
|
2602
2602
|
type: "",
|
|
2603
2603
|
colSpan: 0,
|
|
2604
2604
|
rowSpan: 0
|
|
@@ -2607,42 +2607,42 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2607
2607
|
k.push(G);
|
|
2608
2608
|
});
|
|
2609
2609
|
else if (D.data) {
|
|
2610
|
-
let $ =
|
|
2610
|
+
let $ = a[A] ? Array.from(a[A]) : [], _ = D.data.replace("row:", "").toUpperCase();
|
|
2611
2611
|
D.isRowColCombine ? $.length ? $.forEach((I, B) => {
|
|
2612
|
-
let H =
|
|
2612
|
+
let H = a[`${A}-${I}`], R = D.combineKeys.map((K, te) => {
|
|
2613
2613
|
const ie = D.combineValues[te];
|
|
2614
2614
|
return {
|
|
2615
2615
|
key: K,
|
|
2616
2616
|
val: ie
|
|
2617
2617
|
};
|
|
2618
2618
|
});
|
|
2619
|
-
const
|
|
2619
|
+
const z = H.filter((K) => R.every((te) => K[te.key] === te.val));
|
|
2620
2620
|
let G = {
|
|
2621
2621
|
...D
|
|
2622
2622
|
};
|
|
2623
|
-
if (delete G.combineKeys, delete G.combineValues, delete G.isRowColCombine,
|
|
2624
|
-
const K =
|
|
2623
|
+
if (delete G.combineKeys, delete G.combineValues, delete G.isRowColCombine, z && z.length) {
|
|
2624
|
+
const K = z[0];
|
|
2625
2625
|
G.text = K[_], G.rowData = K;
|
|
2626
2626
|
} else
|
|
2627
2627
|
G.text = "", G.rowData = {};
|
|
2628
2628
|
k.push(G);
|
|
2629
2629
|
}) : p.forEach((I) => {
|
|
2630
|
-
let H = D.combineKeys.map((
|
|
2630
|
+
let H = D.combineKeys.map((z, G) => {
|
|
2631
2631
|
const K = D.combineValues[G];
|
|
2632
2632
|
return {
|
|
2633
|
-
key:
|
|
2633
|
+
key: z,
|
|
2634
2634
|
val: K
|
|
2635
2635
|
};
|
|
2636
|
-
}).every((
|
|
2636
|
+
}).every((z) => I[z.key] === z.val), R = {
|
|
2637
2637
|
...D
|
|
2638
2638
|
};
|
|
2639
|
-
delete
|
|
2639
|
+
delete R.combineKeys, delete R.combineValues, delete R.isRowColCombine, H ? (R.text = I[_], R.rowData = I) : R.text = "", k.push(R);
|
|
2640
2640
|
}) : $.length ? $.forEach((I, B) => {
|
|
2641
|
-
|
|
2642
|
-
let
|
|
2641
|
+
a[`${A}-${I}`].forEach((R) => {
|
|
2642
|
+
let z = {
|
|
2643
2643
|
...D
|
|
2644
2644
|
};
|
|
2645
|
-
delete
|
|
2645
|
+
delete z.combineKeys, delete z.combineValues, delete z.isRowColCombine, R[_] ? (z.text = R[_], z.rowData = R) : z.text = "", k.push(z);
|
|
2646
2646
|
});
|
|
2647
2647
|
}) : p.forEach((I) => {
|
|
2648
2648
|
let B = {
|
|
@@ -2656,8 +2656,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2656
2656
|
rowData: p[0]
|
|
2657
2657
|
};
|
|
2658
2658
|
if (D.rowSpan === 0 && D.mergeTarget && D.mergeTarget.length === 2) {
|
|
2659
|
-
let [B, H] = D.mergeTarget,
|
|
2660
|
-
|
|
2659
|
+
let [B, H] = D.mergeTarget, R = u.reduce((z, G) => z.concat(G), []).filter((z) => z.row === B && z.col === H)[0];
|
|
2660
|
+
R && (R.rowSpan += v - 1);
|
|
2661
2661
|
} else
|
|
2662
2662
|
$.rowSpan += v - 1;
|
|
2663
2663
|
const _ = {
|
|
@@ -2671,74 +2671,74 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2671
2671
|
k.push($, ...I);
|
|
2672
2672
|
}
|
|
2673
2673
|
});
|
|
2674
|
-
const
|
|
2675
|
-
u.splice(
|
|
2674
|
+
const V = N(M);
|
|
2675
|
+
u.splice(o.index, 1, ...V);
|
|
2676
2676
|
});
|
|
2677
2677
|
}
|
|
2678
2678
|
function W(O, w, u, l) {
|
|
2679
|
-
w.forEach((
|
|
2680
|
-
let p = l[
|
|
2679
|
+
w.forEach((o) => {
|
|
2680
|
+
let p = l[o.data], d = [], y = [];
|
|
2681
2681
|
u.forEach((L, M) => {
|
|
2682
|
-
let
|
|
2683
|
-
|
|
2682
|
+
let V = L[o.index];
|
|
2683
|
+
V.type === CellType.FIELD && V.data && V.isGroup && y.push(M), d.push(V);
|
|
2684
2684
|
});
|
|
2685
|
-
let
|
|
2686
|
-
|
|
2687
|
-
|
|
2685
|
+
let a = {};
|
|
2686
|
+
y.forEach((L, M) => {
|
|
2687
|
+
a[L] || (a[L] = /* @__PURE__ */ new Set());
|
|
2688
2688
|
let D = d[L].data.replace("col:", "").toUpperCase();
|
|
2689
2689
|
if (M === 0)
|
|
2690
|
-
p.forEach((
|
|
2690
|
+
p.forEach((T) => {
|
|
2691
2691
|
if (D) {
|
|
2692
|
-
let k =
|
|
2692
|
+
let k = T[D];
|
|
2693
2693
|
if (k) {
|
|
2694
2694
|
const $ = `${L}-${k}`;
|
|
2695
|
-
|
|
2695
|
+
a[$] ? a[$].push(T) : a[$] = [T], a[L].add(k), a[k] = [k], a[`${k}-data`] = [T];
|
|
2696
2696
|
}
|
|
2697
2697
|
}
|
|
2698
2698
|
});
|
|
2699
2699
|
else {
|
|
2700
|
-
let
|
|
2701
|
-
Array.from(
|
|
2702
|
-
const _ = `${
|
|
2703
|
-
let B =
|
|
2700
|
+
let T = y[M - 1];
|
|
2701
|
+
Array.from(a[T]).forEach(($) => {
|
|
2702
|
+
const _ = `${T}-${$}`;
|
|
2703
|
+
let B = a[_].map((H) => {
|
|
2704
2704
|
if (D) {
|
|
2705
|
-
let
|
|
2706
|
-
if (
|
|
2707
|
-
let
|
|
2708
|
-
const G = `${L}-${$}-${
|
|
2709
|
-
return
|
|
2705
|
+
let R = H[D];
|
|
2706
|
+
if (R) {
|
|
2707
|
+
let z = !1;
|
|
2708
|
+
const G = `${L}-${$}-${R}`, K = `${$}-${R}`;
|
|
2709
|
+
return a[G] ? a[G].push(H) : a[G] = [H], a[K + "-data"] ? a[K + "-data"].push(H) : a[K + "-data"] = [H], a[L].has(K) || (z = !0), a[L].add(K), a[K] = a[$].concat([R]), z ? R : null;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
2712
|
}).filter((H) => !!H);
|
|
2713
|
-
|
|
2713
|
+
a[_] = B;
|
|
2714
2714
|
});
|
|
2715
2715
|
}
|
|
2716
2716
|
});
|
|
2717
|
-
let v = 1, A = Math.max(...
|
|
2717
|
+
let v = 1, A = Math.max(...y), U = Math.min(...y);
|
|
2718
2718
|
const F = d.some((L) => L.isRowColCombine);
|
|
2719
|
-
|
|
2720
|
-
let
|
|
2721
|
-
return L +
|
|
2719
|
+
y.length > 0 ? F ? v = a[A].size : v = Array.from(a[A]).reduce((L, M) => {
|
|
2720
|
+
let V = a[`${A}-${M}`];
|
|
2721
|
+
return L + V.length;
|
|
2722
2722
|
}, 0) : v = p.length;
|
|
2723
2723
|
for (let L = 0; L < d.length; L++) {
|
|
2724
2724
|
const M = d[L];
|
|
2725
2725
|
if (L === 0) {
|
|
2726
2726
|
const D = {
|
|
2727
|
-
...
|
|
2727
|
+
...o,
|
|
2728
2728
|
loop: !1
|
|
2729
|
-
},
|
|
2730
|
-
O.splice(
|
|
2729
|
+
}, T = Array.from({ length: v }, () => cloneDeep(D));
|
|
2730
|
+
O.splice(o.index, 1, ...T);
|
|
2731
2731
|
}
|
|
2732
|
-
let
|
|
2733
|
-
if (
|
|
2732
|
+
let V = u[M.row];
|
|
2733
|
+
if (V && Array.isArray(V)) {
|
|
2734
2734
|
let D = [];
|
|
2735
|
-
if (
|
|
2736
|
-
Array.from(
|
|
2737
|
-
let _ = F && L === A ? 1 : P(
|
|
2735
|
+
if (y.includes(L))
|
|
2736
|
+
Array.from(a[M.row]).forEach((k, $) => {
|
|
2737
|
+
let _ = F && L === A ? 1 : P(a, k, A, F, y), I = a[k][a[k].length - 1], B = {
|
|
2738
2738
|
...M,
|
|
2739
2739
|
text: I,
|
|
2740
2740
|
colSpan: _,
|
|
2741
|
-
colData:
|
|
2741
|
+
colData: a[k + "-data"]
|
|
2742
2742
|
};
|
|
2743
2743
|
if (D.push(B), _ > 1) {
|
|
2744
2744
|
let H = {
|
|
@@ -2748,15 +2748,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2748
2748
|
colSpan: 0,
|
|
2749
2749
|
rowSpan: 0
|
|
2750
2750
|
};
|
|
2751
|
-
for (let
|
|
2751
|
+
for (let R = 0; R < _ - 1; R++)
|
|
2752
2752
|
D.push(H);
|
|
2753
2753
|
}
|
|
2754
|
-
}),
|
|
2754
|
+
}), V.splice(M.col, 1, ...D);
|
|
2755
2755
|
else {
|
|
2756
2756
|
if (L > U && L < A) {
|
|
2757
|
-
let
|
|
2758
|
-
if (
|
|
2759
|
-
let k = u[
|
|
2757
|
+
let T = J(y, L);
|
|
2758
|
+
if (T !== null) {
|
|
2759
|
+
let k = u[T].slice(o.index, o.index + v);
|
|
2760
2760
|
k = k.map(($) => {
|
|
2761
2761
|
let _ = $.colData;
|
|
2762
2762
|
return Array.isArray(_) && (_ = _[0]), {
|
|
@@ -2765,31 +2765,31 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2765
2765
|
colSpan: $.colSpan,
|
|
2766
2766
|
rowSpan: $.rowSpan
|
|
2767
2767
|
};
|
|
2768
|
-
}),
|
|
2768
|
+
}), V.splice(o.index, 1, ...k);
|
|
2769
2769
|
continue;
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
2772
|
if (M.data) {
|
|
2773
|
-
let
|
|
2773
|
+
let T = a[A] ? Array.from(a[A]) : [], k = M.data.replace("col:", "").toUpperCase();
|
|
2774
2774
|
if (M.isRowColCombine) {
|
|
2775
|
-
let $ =
|
|
2776
|
-
|
|
2775
|
+
let $ = y.map((I) => d[I].data.replace("col:", "").toUpperCase()), _ = [];
|
|
2776
|
+
T.forEach((I, B) => {
|
|
2777
2777
|
let H = {
|
|
2778
2778
|
...M,
|
|
2779
2779
|
combineKeys: $,
|
|
2780
|
-
combineValues:
|
|
2780
|
+
combineValues: a[I]
|
|
2781
2781
|
};
|
|
2782
2782
|
_.push(H);
|
|
2783
|
-
}),
|
|
2784
|
-
} else if (
|
|
2785
|
-
|
|
2786
|
-
let I =
|
|
2783
|
+
}), V.splice(M.col, 1, ..._);
|
|
2784
|
+
} else if (T.length)
|
|
2785
|
+
T.forEach(($, _) => {
|
|
2786
|
+
let I = a[`${A}-${$}`], B = [];
|
|
2787
2787
|
I.forEach((H) => {
|
|
2788
|
-
let
|
|
2788
|
+
let R = {
|
|
2789
2789
|
...M
|
|
2790
2790
|
};
|
|
2791
|
-
delete
|
|
2792
|
-
}),
|
|
2791
|
+
delete R.combineKeys, delete R.combineValues, delete R.isRowColCombine, H[k] ? (R.text = H[k], R.colData = H) : R.text = "", B.push(R);
|
|
2792
|
+
}), V.splice(M.col, 1, ...B);
|
|
2793
2793
|
});
|
|
2794
2794
|
else {
|
|
2795
2795
|
let $ = [];
|
|
@@ -2798,25 +2798,25 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2798
2798
|
...M
|
|
2799
2799
|
};
|
|
2800
2800
|
delete I.combineKeys, delete I.combineValues, delete I.isRowColCombine, _[k] ? (I.text = _[k], I.colData = _) : I.text = "", $.push(I);
|
|
2801
|
-
}),
|
|
2801
|
+
}), V.splice(M.col, 1, ...$);
|
|
2802
2802
|
}
|
|
2803
2803
|
} else {
|
|
2804
|
-
const
|
|
2804
|
+
const T = {
|
|
2805
2805
|
...M,
|
|
2806
2806
|
colData: p[0]
|
|
2807
2807
|
};
|
|
2808
2808
|
if (M.colSpan === 0 && M.mergeTarget && M.mergeTarget.length === 2 && M.row === M.mergeTarget[0]) {
|
|
2809
|
-
let [_, I] = M.mergeTarget, B = u.reduce((H,
|
|
2809
|
+
let [_, I] = M.mergeTarget, B = u.reduce((H, R) => H.concat(R), []).filter((H) => H.row === _ && H.col === I)[0];
|
|
2810
2810
|
B && (B.colSpan += v - 1);
|
|
2811
2811
|
} else
|
|
2812
|
-
(!Array.isArray(M.mergeTarget) || M.mergeTarget.length !== 2) && (
|
|
2812
|
+
(!Array.isArray(M.mergeTarget) || M.mergeTarget.length !== 2) && (T.colSpan = v);
|
|
2813
2813
|
const k = {
|
|
2814
2814
|
...M,
|
|
2815
2815
|
colSpan: 0,
|
|
2816
2816
|
rowSpan: 0
|
|
2817
2817
|
};
|
|
2818
2818
|
let $ = Array.from({ length: v - 1 }, () => cloneDeep(k));
|
|
2819
|
-
|
|
2819
|
+
V.splice(M.col, 1, T, ...$);
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
@@ -2826,16 +2826,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2826
2826
|
function ne(O) {
|
|
2827
2827
|
if (r.config && i.value) {
|
|
2828
2828
|
i.value.innerHTML = "", console.time("transformConfig");
|
|
2829
|
-
let { rowConfig: w, colConfig: u, config: l } = cloneDeep(r.config),
|
|
2830
|
-
|
|
2829
|
+
let { rowConfig: w, colConfig: u, config: l } = cloneDeep(r.config), o = b(u), p = b(w);
|
|
2830
|
+
o && W(u, o, l, O), p && Y(w, p, l, O), computeCell(l), console.timeEnd("transformConfig"), console.time("renderReportByDom"), re(w, u, l, i), console.timeEnd("renderReportByDom");
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
2833
|
function Q(O) {
|
|
2834
2834
|
const w = document.createElement("colgroup");
|
|
2835
2835
|
let u = 0;
|
|
2836
2836
|
return O.forEach((l) => {
|
|
2837
|
-
const
|
|
2838
|
-
u += l.size,
|
|
2837
|
+
const o = document.createElement("col");
|
|
2838
|
+
u += l.size, o.style.width = `${l.size}px`, w.appendChild(o);
|
|
2839
2839
|
}), i.value && (i.value.style.width = `${u}px`), w;
|
|
2840
2840
|
}
|
|
2841
2841
|
function q(O, w) {
|
|
@@ -2856,18 +2856,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2856
2856
|
return [CellType.TEXT, CellType.FIELD, CellType.ICON, CellType.FUN].includes(w.type) && w.style && u.setAttribute("style", renderCellStyle(w.style)), u.innerText = l, u;
|
|
2857
2857
|
}
|
|
2858
2858
|
function re(O, w, u, l) {
|
|
2859
|
-
const
|
|
2860
|
-
l.value.appendChild(
|
|
2859
|
+
const o = Q(w);
|
|
2860
|
+
l.value.appendChild(o);
|
|
2861
2861
|
let p = 0;
|
|
2862
2862
|
const d = document.createDocumentFragment();
|
|
2863
|
-
for (let
|
|
2864
|
-
const
|
|
2865
|
-
|
|
2863
|
+
for (let y = 0; y < O.length; y++) {
|
|
2864
|
+
const a = O[y], v = document.createElement("tr");
|
|
2865
|
+
a.isFixed && (v.style.top = `${p - 1}px`, v.classList.add("fixed-row")), p += a.size, v.style.height = `${a.size}px`;
|
|
2866
2866
|
for (let A = 0; A < w.length; A++) {
|
|
2867
|
-
const U = u[
|
|
2868
|
-
if (
|
|
2869
|
-
const F = q(
|
|
2870
|
-
F.setAttribute("data-cell-data", `${
|
|
2867
|
+
const U = u[y][A];
|
|
2868
|
+
if (a && U && a.size > 0) {
|
|
2869
|
+
const F = q(a, U);
|
|
2870
|
+
F.setAttribute("data-cell-data", `${y}-${A}`), U.rowSpan === 0 || U.colSpan === 0 || v.appendChild(F);
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
2873
|
d.appendChild(v);
|
|
@@ -2877,13 +2877,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2877
2877
|
async function Z() {
|
|
2878
2878
|
g.value = !0;
|
|
2879
2879
|
let O = await X(), w = ee(O);
|
|
2880
|
-
r.config.data.processData && (w = await getProcessData(r.config.data.processData, w,
|
|
2880
|
+
r.config.data.processData && (w = await getProcessData(r.config.data.processData, w, x.value)), ne(w), g.value = !1;
|
|
2881
2881
|
}
|
|
2882
2882
|
function ee(O) {
|
|
2883
2883
|
let w = {};
|
|
2884
2884
|
return Array.isArray(O) || (O = [O]), O.map(({ key: u, data: l }) => {
|
|
2885
|
-
let
|
|
2886
|
-
w[u] =
|
|
2885
|
+
let o = l.filter((p) => p);
|
|
2886
|
+
w[u] = o;
|
|
2887
2887
|
}), t("updateData", {
|
|
2888
2888
|
key: r.config.id,
|
|
2889
2889
|
data: w
|
|
@@ -2892,12 +2892,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2892
2892
|
async function X() {
|
|
2893
2893
|
if (r.config.data.source) {
|
|
2894
2894
|
let O = {};
|
|
2895
|
-
m.value && (O.params = cloneDeep(
|
|
2895
|
+
m.value && (O.params = cloneDeep(x.value)), s.value && (O.pageSize = f.pageSize, O.pageNumber = f.pageIndex);
|
|
2896
2896
|
let w = [];
|
|
2897
2897
|
for (let u = 0; u < r.config.data.source.length; u++) {
|
|
2898
|
-
const { key: l, url:
|
|
2899
|
-
if (
|
|
2900
|
-
const p = await getDateSourceData(
|
|
2898
|
+
const { key: l, url: o } = r.config.data.source[u];
|
|
2899
|
+
if (o) {
|
|
2900
|
+
const p = await getDateSourceData(o, O);
|
|
2901
2901
|
w.push({ key: l, data: p.data }), s.value && (f.total = p.count || p.data.length);
|
|
2902
2902
|
}
|
|
2903
2903
|
}
|
|
@@ -2910,12 +2910,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2910
2910
|
let O = r.config.data.pageSizes.split(",").map((w) => parseInt(w));
|
|
2911
2911
|
f.pageSizes = Array.isArray(O) ? O : [10, 20, 50, 100, 200];
|
|
2912
2912
|
}
|
|
2913
|
-
|
|
2913
|
+
E = !0;
|
|
2914
2914
|
}
|
|
2915
2915
|
return onMounted(async () => {
|
|
2916
2916
|
j();
|
|
2917
2917
|
}), (O, w) => {
|
|
2918
|
-
const u = resolveComponent("el-button"), l = resolveComponent("el-pagination"),
|
|
2918
|
+
const u = resolveComponent("el-button"), l = resolveComponent("el-pagination"), o = resolveDirective("loading");
|
|
2919
2919
|
return openBlock(), createElementBlock("div", {
|
|
2920
2920
|
class: "yh-report-view-container",
|
|
2921
2921
|
style: normalizeStyle(unref(c))
|
|
@@ -2948,7 +2948,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2948
2948
|
ref: i
|
|
2949
2949
|
}, null, 512)
|
|
2950
2950
|
])), [
|
|
2951
|
-
[
|
|
2951
|
+
[o, g.value]
|
|
2952
2952
|
]),
|
|
2953
2953
|
unref(s) ? (openBlock(), createBlock(l, {
|
|
2954
2954
|
key: 0,
|
|
@@ -2975,15 +2975,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2975
2975
|
...t
|
|
2976
2976
|
};
|
|
2977
2977
|
for (let f = 0; f < r.length; f++) {
|
|
2978
|
-
const { key:
|
|
2979
|
-
m[
|
|
2978
|
+
const { key: x, url: C } = r[f], E = (await getDateSourceData(C, {})).data;
|
|
2979
|
+
m[x] = E;
|
|
2980
2980
|
}
|
|
2981
2981
|
if (Object.keys(m).length === 0)
|
|
2982
2982
|
return !1;
|
|
2983
2983
|
if (n) {
|
|
2984
|
-
const
|
|
2984
|
+
const x = new Function("allData", n)(m);
|
|
2985
2985
|
e.option.series.forEach((C) => {
|
|
2986
|
-
C.data =
|
|
2986
|
+
C.data = x;
|
|
2987
2987
|
});
|
|
2988
2988
|
} else
|
|
2989
2989
|
e.option = setYAxisData(e, m);
|
|
@@ -2994,8 +2994,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2994
2994
|
} else
|
|
2995
2995
|
e.option = setXAxisData(e, m);
|
|
2996
2996
|
if (c) {
|
|
2997
|
-
const
|
|
2998
|
-
e.option.yAxis.data =
|
|
2997
|
+
const x = new Function("allData", c)(m);
|
|
2998
|
+
e.option.yAxis.data = x;
|
|
2999
2999
|
}
|
|
3000
3000
|
}
|
|
3001
3001
|
}, chartItem_vue_vue_type_style_index_0_scoped_5bbf4c7d_lang = "", _export_sfc = (e, t) => {
|
|
@@ -3020,32 +3020,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3020
3020
|
let c = null;
|
|
3021
3021
|
watch(
|
|
3022
3022
|
() => r.chartData.option,
|
|
3023
|
-
(
|
|
3024
|
-
c && c.setOption(
|
|
3023
|
+
(E) => {
|
|
3024
|
+
c && c.setOption(E, {
|
|
3025
3025
|
notMerge: !0
|
|
3026
3026
|
});
|
|
3027
3027
|
},
|
|
3028
3028
|
{ deep: !0 }
|
|
3029
3029
|
), watch(
|
|
3030
3030
|
() => r.chartData.isSuspend,
|
|
3031
|
-
(
|
|
3032
|
-
|
|
3031
|
+
(E) => {
|
|
3032
|
+
E && C();
|
|
3033
3033
|
},
|
|
3034
3034
|
{ deep: !0 }
|
|
3035
3035
|
);
|
|
3036
|
-
const s = ref(!1), m = (
|
|
3037
|
-
if (i.value =
|
|
3036
|
+
const s = ref(!1), m = (E) => {
|
|
3037
|
+
if (i.value = E, E && Object.keys(E).length > 0) {
|
|
3038
3038
|
const S = cloneDeep(r.chartData);
|
|
3039
3039
|
f(S);
|
|
3040
3040
|
}
|
|
3041
|
-
}, f = async (
|
|
3042
|
-
r.isView && await getChartData(
|
|
3041
|
+
}, f = async (E) => {
|
|
3042
|
+
r.isView && await getChartData(E, i.value), E.type === "label" && E.option.series.forEach((S) => {
|
|
3043
3043
|
S.renderItem = renderItem;
|
|
3044
|
-
}), c.setOption(
|
|
3045
|
-
},
|
|
3044
|
+
}), c.setOption(E.option), s.value = !1;
|
|
3045
|
+
}, x = async () => {
|
|
3046
3046
|
s.value = !0, c = echarts.init(n.value);
|
|
3047
|
-
let
|
|
3048
|
-
await f(
|
|
3047
|
+
let E = cloneDeep(r.chartData);
|
|
3048
|
+
await f(E);
|
|
3049
3049
|
}, C = () => {
|
|
3050
3050
|
nextTick(() => {
|
|
3051
3051
|
c.resize();
|
|
@@ -3054,10 +3054,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3054
3054
|
return t({
|
|
3055
3055
|
setOutData: m
|
|
3056
3056
|
}), onMounted(() => {
|
|
3057
|
-
|
|
3057
|
+
x(), window.addEventListener("resize", C);
|
|
3058
3058
|
}), onUnmounted(() => {
|
|
3059
3059
|
window.removeEventListener("resize", C);
|
|
3060
|
-
}), (
|
|
3060
|
+
}), (E, S) => {
|
|
3061
3061
|
const g = resolveDirective("loading");
|
|
3062
3062
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
3063
3063
|
ref_key: "chartRef",
|
|
@@ -3131,7 +3131,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3131
3131
|
setup(e, { emit: t }) {
|
|
3132
3132
|
const r = e;
|
|
3133
3133
|
ref();
|
|
3134
|
-
const n = ref(!1), i = ref(!1), c = ref(""), s = ref(), m = ref(), f = ref([]),
|
|
3134
|
+
const n = ref(!1), i = ref(!1), c = ref(""), s = ref(), m = ref(), f = ref([]), x = {};
|
|
3135
3135
|
watch(
|
|
3136
3136
|
() => r.id,
|
|
3137
3137
|
(g) => {
|
|
@@ -3145,11 +3145,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3145
3145
|
n.value = !1;
|
|
3146
3146
|
})) : i.value = !0;
|
|
3147
3147
|
}
|
|
3148
|
-
const
|
|
3148
|
+
const E = ref(!1);
|
|
3149
3149
|
function S(g) {
|
|
3150
3150
|
var b;
|
|
3151
|
-
|
|
3152
|
-
N.setOutData(
|
|
3151
|
+
x[g.key] = g.data, (b = m.value) == null || b.forEach((N) => {
|
|
3152
|
+
N.setOutData(x);
|
|
3153
3153
|
});
|
|
3154
3154
|
}
|
|
3155
3155
|
return onMounted(() => {
|
|
@@ -3197,7 +3197,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3197
3197
|
}, null, 8, ["config", "index"]))
|
|
3198
3198
|
], 64))), 256)),
|
|
3199
3199
|
withDirectives(createElementVNode("div", _hoisted_2, _hoisted_4, 512), [
|
|
3200
|
-
[vShow,
|
|
3200
|
+
[vShow, E.value]
|
|
3201
3201
|
])
|
|
3202
3202
|
])), [
|
|
3203
3203
|
[N, n.value]
|
|
@@ -3216,7 +3216,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3216
3216
|
title: "报表列表",
|
|
3217
3217
|
icon: "iconfont icon-s-grid"
|
|
3218
3218
|
},
|
|
3219
|
-
component: () => import("./StatementList-
|
|
3219
|
+
component: () => import("./StatementList-8deb57ec.mjs")
|
|
3220
3220
|
}), r.addRoute("Index", {
|
|
3221
3221
|
path: "statement/design/:id",
|
|
3222
3222
|
name: "报表设计",
|
|
@@ -3225,7 +3225,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3225
3225
|
title: "报表设计",
|
|
3226
3226
|
icon: "iconfont icon-s-grid"
|
|
3227
3227
|
},
|
|
3228
|
-
component: () => import("./StatementDesign-
|
|
3228
|
+
component: () => import("./StatementDesign-d144ffdc.mjs")
|
|
3229
3229
|
})), r.addRoute("Index", {
|
|
3230
3230
|
path: "statement/detail/:id",
|
|
3231
3231
|
name: "后台报表查看",
|
|
@@ -3234,7 +3234,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3234
3234
|
title: "后台报表查看",
|
|
3235
3235
|
icon: "iconfont icon-s-grid"
|
|
3236
3236
|
},
|
|
3237
|
-
component: () => import("./StatementDetail-
|
|
3237
|
+
component: () => import("./StatementDetail-09cc58ca.mjs")
|
|
3238
3238
|
}), r.addRoute({
|
|
3239
3239
|
path: "/statementdetail/:id",
|
|
3240
3240
|
name: "报表查看",
|
|
@@ -3243,7 +3243,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3243
3243
|
title: "报表查看",
|
|
3244
3244
|
icon: "iconfont icon-s-grid"
|
|
3245
3245
|
},
|
|
3246
|
-
component: () => import("./StatementDetail-
|
|
3246
|
+
component: () => import("./StatementDetail-09cc58ca.mjs")
|
|
3247
3247
|
});
|
|
3248
3248
|
}
|
|
3249
3249
|
};
|
|
@@ -3300,4 +3300,4 @@ export {
|
|
|
3300
3300
|
save as s,
|
|
3301
3301
|
validateAndCompleteOptions as v
|
|
3302
3302
|
};
|
|
3303
|
-
//# sourceMappingURL=index-
|
|
3303
|
+
//# sourceMappingURL=index-f86a45b6.mjs.map
|