yh-report 2.0.16 → 2.0.18
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-402d427a.mjs → StatementDesign-d92e1f36.mjs} +409 -357
- package/{StatementDesign-402d427a.mjs.map → StatementDesign-d92e1f36.mjs.map} +1 -1
- package/{StatementDetail-5c4057f4.mjs → StatementDetail-509cca8d.mjs} +2 -2
- package/{StatementDetail-5c4057f4.mjs.map → StatementDetail-509cca8d.mjs.map} +1 -1
- package/{StatementList-b9f4db65.mjs → StatementList-e0bf4f12.mjs} +2 -2
- package/{StatementList-b9f4db65.mjs.map → StatementList-e0bf4f12.mjs.map} +1 -1
- package/{index-b2fa77bb.mjs → index-bd85b7d3.mjs} +205 -200
- package/index-bd85b7d3.mjs.map +1 -0
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-b2fa77bb.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, computed, defineComponent, watch, nextTick, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, withDirectives, createBlock, normalizeStyle, resolveDynamicComponent, createElementVNode, withKeys, vShow, renderSlot, reactive, onMounted, resolveComponent, resolveDirective, createTextVNode, createCommentVNode, onUnmounted, toDisplayString, h } from "vue";
|
|
2
2
|
import { ElMessage, ElForm, ElFormItem, ElOption, ElEmpty, ElButton } from "element-plus";
|
|
3
3
|
import axios from "@/libs/api.request.js";
|
|
4
|
-
import { cloneDeep } from "lodash-es";
|
|
4
|
+
import { cloneDeep, get } from "lodash-es";
|
|
5
5
|
import { useRouter } from "vue-router";
|
|
6
6
|
import * as echarts from "echarts";
|
|
7
7
|
const statementDesign = "";
|
|
@@ -130,11 +130,11 @@ const TypeItems = ref([
|
|
|
130
130
|
let n = e.value(1);
|
|
131
131
|
Array.isArray(n) && (n = n.map((M) => String.fromCharCode(M)).join(""));
|
|
132
132
|
const d = e.getWidth(), s = e.getHeight(), g = colors[r % 6], u = t.dataInsideLength;
|
|
133
|
-
let
|
|
134
|
-
|
|
133
|
+
let E = d * 0.01;
|
|
134
|
+
E < 10 && (E = 10), E > 15 && (E = 15);
|
|
135
135
|
let C = s * 0.5;
|
|
136
136
|
C < 60 && (C = 60);
|
|
137
|
-
const
|
|
137
|
+
const x = (d - E * 2 - E * (u - 1)) / u, k = 8, m = E + r * (x + E), w = (e.getHeight() - C) / 2;
|
|
138
138
|
return {
|
|
139
139
|
type: "group",
|
|
140
140
|
children: [
|
|
@@ -143,7 +143,7 @@ const TypeItems = ref([
|
|
|
143
143
|
shape: {
|
|
144
144
|
x: m,
|
|
145
145
|
y: w,
|
|
146
|
-
width:
|
|
146
|
+
width: x,
|
|
147
147
|
height: C,
|
|
148
148
|
r: k
|
|
149
149
|
},
|
|
@@ -168,7 +168,7 @@ ${a}`,
|
|
|
168
168
|
align: "center",
|
|
169
169
|
verticalAlign: "middle"
|
|
170
170
|
},
|
|
171
|
-
position: [m +
|
|
171
|
+
position: [m + x / 2, w + C / 2]
|
|
172
172
|
}
|
|
173
173
|
]
|
|
174
174
|
};
|
|
@@ -715,17 +715,17 @@ ${a}`,
|
|
|
715
715
|
for (let s of a) {
|
|
716
716
|
let g, u;
|
|
717
717
|
s.length === 3 ? (e[s[0]] && (g = e[s[0]][s[1]]), u = s[2]) : (g = e[s[0]], u = s[1]);
|
|
718
|
-
let
|
|
718
|
+
let E = [];
|
|
719
719
|
if (t.groupBy && n) {
|
|
720
720
|
let C = {};
|
|
721
|
-
g.forEach((
|
|
722
|
-
let k =
|
|
721
|
+
g.forEach((x) => {
|
|
722
|
+
let k = x[d], m = x[u];
|
|
723
723
|
k && !isNaN(m) && (C[k] || (C[k] = 0), C[k] = m);
|
|
724
|
-
}),
|
|
724
|
+
}), E = n.map((x) => C[x]);
|
|
725
725
|
} else
|
|
726
|
-
|
|
727
|
-
t.orderBy && t.orderBy !== "NONE" && (
|
|
728
|
-
value:
|
|
726
|
+
E = g.map((C) => C[u]);
|
|
727
|
+
t.orderBy && t.orderBy !== "NONE" && (E = E.sort((C, x) => t.orderBy === "ASC" ? C - x : x - C), !isNaN(t.cutLength) && t.cutLength > 0 && (E = E.slice(0, t.cutLength))), r.series[0].data.push({
|
|
728
|
+
value: E
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
731
|
} else if (t.type == "treemap") {
|
|
@@ -734,8 +734,8 @@ ${a}`,
|
|
|
734
734
|
if (e[s][0]) {
|
|
735
735
|
let u = e[s][0][g];
|
|
736
736
|
if (u) {
|
|
737
|
-
let
|
|
738
|
-
r.series[0].data[0].name = `${
|
|
737
|
+
let E = r.series[0].data[0].name.split(":")[0];
|
|
738
|
+
r.series[0].data[0].name = `${E}:${u}`;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
@@ -743,69 +743,69 @@ ${a}`,
|
|
|
743
743
|
let s = cloneDeep(r.series);
|
|
744
744
|
a.length && (r.series = []);
|
|
745
745
|
for (let g = 0; g < a.length; g++) {
|
|
746
|
-
let u = a[g],
|
|
747
|
-
u.length === 3 ? (e[u[0]] && (
|
|
748
|
-
let
|
|
749
|
-
|
|
746
|
+
let u = a[g], E, C;
|
|
747
|
+
u.length === 3 ? (e[u[0]] && (E = e[u[0]][u[1]]), C = u[2]) : (E = e[u[0]], C = u[1]);
|
|
748
|
+
let x = cloneDeep(s[0]);
|
|
749
|
+
x.data = [];
|
|
750
750
|
let k = [];
|
|
751
|
-
if (
|
|
751
|
+
if (E && d && n) {
|
|
752
752
|
switch (t.type) {
|
|
753
753
|
case "line":
|
|
754
754
|
case "rowBar":
|
|
755
755
|
case "bar":
|
|
756
756
|
if (t.groupBy) {
|
|
757
757
|
let m = {};
|
|
758
|
-
|
|
759
|
-
let M = w[d],
|
|
760
|
-
M && !isNaN(
|
|
758
|
+
E.forEach((w) => {
|
|
759
|
+
let M = w[d], P = w[C];
|
|
760
|
+
M && !isNaN(P) && (m[M] || (m[M] = 0), m[M] = P);
|
|
761
761
|
}), k = n.map((w) => m[w]);
|
|
762
762
|
} else
|
|
763
|
-
k =
|
|
763
|
+
k = E.map((m) => m[C]);
|
|
764
764
|
t.orderBy && t.orderBy !== "NONE" && (k = k.sort((m, w) => t.orderBy === "ASC" ? m - w : w - m), !isNaN(t.cutLength) && t.cutLength > 0 && (k = k.slice(0, t.cutLength)));
|
|
765
765
|
break;
|
|
766
766
|
case "pie":
|
|
767
767
|
if (t.groupBy) {
|
|
768
768
|
let m = {};
|
|
769
|
-
|
|
770
|
-
let M = w[d],
|
|
771
|
-
M && !isNaN(
|
|
769
|
+
E.forEach((w) => {
|
|
770
|
+
let M = w[d], P = w[C];
|
|
771
|
+
M && !isNaN(P) && (m[M] || (m[M] = 0), m[M] = P);
|
|
772
772
|
}), k = n.map((w) => ({ value: m[w], name: w }));
|
|
773
773
|
} else
|
|
774
|
-
k =
|
|
774
|
+
k = E.map((m) => ({ value: m[C], name: m[d] }));
|
|
775
775
|
t.orderBy && t.orderBy !== "NONE" && (k = k.sort((m, w) => t.orderBy === "ASC" ? m - w : w - m), !isNaN(t.cutLength) && t.cutLength > 0 && (k = k.slice(0, t.cutLength)));
|
|
776
776
|
break;
|
|
777
777
|
case "scatter":
|
|
778
778
|
if (t.groupBy) {
|
|
779
779
|
let m = {};
|
|
780
|
-
|
|
781
|
-
let M = w[d],
|
|
782
|
-
M && !isNaN(
|
|
780
|
+
E.forEach((w) => {
|
|
781
|
+
let M = w[d], P = w[C];
|
|
782
|
+
M && !isNaN(P) && (m[M] || (m[M] = 0), m[M] = P);
|
|
783
783
|
}), k = n.map((w) => [w, m[w]]);
|
|
784
784
|
} else
|
|
785
|
-
k =
|
|
785
|
+
k = E.map((m) => [m[d], m[C]]);
|
|
786
786
|
t.orderBy && t.orderBy !== "NONE" && (k = k.sort((m, w) => t.orderBy === "ASC" ? m - w : w - m), !isNaN(t.cutLength) && t.cutLength > 0 && (k = k.slice(0, t.cutLength)));
|
|
787
787
|
break;
|
|
788
788
|
case "label":
|
|
789
789
|
if (t.groupBy) {
|
|
790
790
|
let m = {};
|
|
791
|
-
|
|
792
|
-
let M = w[d],
|
|
793
|
-
M && !isNaN(
|
|
791
|
+
E.forEach((w) => {
|
|
792
|
+
let M = w[d], P = w[C];
|
|
793
|
+
M && !isNaN(P) && (m[M] || (m[M] = 0), m[M] = P);
|
|
794
794
|
}), k = n.map((w) => {
|
|
795
|
-
const M = w ? w.split("").map((
|
|
795
|
+
const M = w ? w.split("").map((P) => P.charCodeAt()) : [];
|
|
796
796
|
return [m[w], M];
|
|
797
797
|
});
|
|
798
798
|
} else
|
|
799
|
-
k =
|
|
799
|
+
k = E.map((m) => {
|
|
800
800
|
const w = m[d] ? m[d].split("").map((M) => M.charCodeAt()) : [];
|
|
801
801
|
return [m[C], w];
|
|
802
802
|
});
|
|
803
|
-
t.orderBy && t.orderBy !== "NONE" && (k = k.sort((m, w) => t.orderBy === "ASC" ? m - w : w - m), !isNaN(t.cutLength) && t.cutLength > 0 && (k = k.slice(0, t.cutLength))),
|
|
803
|
+
t.orderBy && t.orderBy !== "NONE" && (k = k.sort((m, w) => t.orderBy === "ASC" ? m - w : w - m), !isNaN(t.cutLength) && t.cutLength > 0 && (k = k.slice(0, t.cutLength))), x.renderItem = renderItem;
|
|
804
804
|
break;
|
|
805
805
|
}
|
|
806
|
-
|
|
806
|
+
x.data = k;
|
|
807
807
|
}
|
|
808
|
-
r.series.push(
|
|
808
|
+
r.series.push(x);
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
return r;
|
|
@@ -834,20 +834,20 @@ function getConfig(t) {
|
|
|
834
834
|
id: t
|
|
835
835
|
}
|
|
836
836
|
}).then((e) => {
|
|
837
|
-
let r = JSON.parse(e.data.info), { id: a, name: n, code: d, description: s, config: g, chartConfig: u } = r,
|
|
837
|
+
let r = JSON.parse(e.data.info), { id: a, name: n, code: d, description: s, config: g, chartConfig: u } = r, E = [];
|
|
838
838
|
if (g && (g = JSON.parse(g), Array.isArray(g) && g.length)) {
|
|
839
839
|
if (g[0].type === "tableSheet")
|
|
840
840
|
throw ElMessage.error("当前报表版本不支持老版本数据,请等待老版本数据转换工具上线"), useRouter().back(), new Error("当前报表版本不支持老版本数据,请等待老版本数据转换工具上线");
|
|
841
|
-
g = g.map((C) => (ItemTypes.value.includes(C.type) || (C.type = "report"), C)),
|
|
841
|
+
g = g.map((C) => (ItemTypes.value.includes(C.type) || (C.type = "report"), C)), E = E.concat(g);
|
|
842
842
|
}
|
|
843
843
|
return u && (u = JSON.parse(u), Array.isArray(u) && (u.forEach((C) => {
|
|
844
844
|
C.data || (C.data = { source: [] });
|
|
845
|
-
}),
|
|
845
|
+
}), E = E.concat(u))), Promise.resolve({
|
|
846
846
|
id: a,
|
|
847
847
|
name: n,
|
|
848
848
|
code: d,
|
|
849
849
|
description: s,
|
|
850
|
-
remoteOptions:
|
|
850
|
+
remoteOptions: E
|
|
851
851
|
});
|
|
852
852
|
});
|
|
853
853
|
}
|
|
@@ -876,7 +876,7 @@ var dayjs_min = { exports: {} };
|
|
|
876
876
|
(function(r, a) {
|
|
877
877
|
t.exports = a();
|
|
878
878
|
})(commonjsGlobal, function() {
|
|
879
|
-
var r = 1e3, a = 6e4, n = 36e5, d = "millisecond", s = "second", g = "minute", u = "hour",
|
|
879
|
+
var r = 1e3, a = 6e4, n = 36e5, d = "millisecond", s = "second", g = "minute", u = "hour", E = "day", C = "week", x = "month", k = "quarter", m = "year", w = "date", M = "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, j = { 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(p) {
|
|
880
880
|
var c = ["th", "st", "nd", "rd"], o = p % 100;
|
|
881
881
|
return "[" + p + (c[(o - 20) % 10] || c[o] || c[0]) + "]";
|
|
882
882
|
} }, W = function(p, c, o) {
|
|
@@ -888,12 +888,12 @@ var dayjs_min = { exports: {} };
|
|
|
888
888
|
}, m: function p(c, o) {
|
|
889
889
|
if (c.date() < o.date())
|
|
890
890
|
return -p(o, c);
|
|
891
|
-
var f = 12 * (o.year() - c.year()) + (o.month() - c.month()), l = c.clone().add(f,
|
|
891
|
+
var f = 12 * (o.year() - c.year()) + (o.month() - c.month()), l = c.clone().add(f, x), y = o - l < 0, i = c.clone().add(f + (y ? -1 : 1), x);
|
|
892
892
|
return +(-(f + (o - l) / (y ? l - i : i - l)) || 0);
|
|
893
893
|
}, a: function(p) {
|
|
894
894
|
return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
|
|
895
895
|
}, p: function(p) {
|
|
896
|
-
return { M:
|
|
896
|
+
return { M: x, y: m, w: C, d: E, D: w, h: u, m: g, s, ms: d, Q: k }[p] || String(p || "").toLowerCase().replace(/s$/, "");
|
|
897
897
|
}, u: function(p) {
|
|
898
898
|
return p === void 0;
|
|
899
899
|
} }, Q = "en", q = {};
|
|
@@ -939,7 +939,7 @@ var dayjs_min = { exports: {} };
|
|
|
939
939
|
if (l instanceof Date)
|
|
940
940
|
return new Date(l);
|
|
941
941
|
if (typeof l == "string" && !/Z$/i.test(l)) {
|
|
942
|
-
var i = l.match(
|
|
942
|
+
var i = l.match(P);
|
|
943
943
|
if (i) {
|
|
944
944
|
var D = i[2] - 1 || 0, S = (i[7] || "0").substring(0, 3);
|
|
945
945
|
return y ? new Date(Date.UTC(i[1], D, i[3] || 1, i[4] || 0, i[5] || 0, i[6] || 0, S)) : new Date(i[1], D, i[3] || 1, i[4] || 0, i[5] || 0, i[6] || 0, S);
|
|
@@ -970,19 +970,19 @@ var dayjs_min = { exports: {} };
|
|
|
970
970
|
}, c.startOf = function(o, f) {
|
|
971
971
|
var l = this, y = !!H.u(f) || f, i = H.p(o), D = function(T, _) {
|
|
972
972
|
var $ = H.w(l.$u ? Date.UTC(l.$y, _, T) : new Date(l.$y, _, T), l);
|
|
973
|
-
return y ? $ : $.endOf(
|
|
973
|
+
return y ? $ : $.endOf(E);
|
|
974
974
|
}, S = function(T, _) {
|
|
975
975
|
return H.w(l.toDate()[T].apply(l.toDate("s"), (y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_)), l);
|
|
976
|
-
},
|
|
976
|
+
}, B = this.$W, z = this.$M, L = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
977
977
|
switch (i) {
|
|
978
978
|
case m:
|
|
979
979
|
return y ? D(1, 0) : D(31, 11);
|
|
980
|
-
case E:
|
|
981
|
-
return y ? D(1, V) : D(0, V + 1);
|
|
982
|
-
case C:
|
|
983
|
-
var F = this.$locale().weekStart || 0, O = (P < F ? P + 7 : P) - F;
|
|
984
|
-
return D(y ? L - O : L + (6 - O), V);
|
|
985
980
|
case x:
|
|
981
|
+
return y ? D(1, z) : D(0, z + 1);
|
|
982
|
+
case C:
|
|
983
|
+
var F = this.$locale().weekStart || 0, O = (B < F ? B + 7 : B) - F;
|
|
984
|
+
return D(y ? L - O : L + (6 - O), z);
|
|
985
|
+
case E:
|
|
986
986
|
case w:
|
|
987
987
|
return S(N + "Hours", 0);
|
|
988
988
|
case u:
|
|
@@ -997,10 +997,10 @@ var dayjs_min = { exports: {} };
|
|
|
997
997
|
}, c.endOf = function(o) {
|
|
998
998
|
return this.startOf(o, !1);
|
|
999
999
|
}, c.$set = function(o, f) {
|
|
1000
|
-
var l, y = H.p(o), i = "set" + (this.$u ? "UTC" : ""), D = (l = {}, l[
|
|
1001
|
-
if (y ===
|
|
1002
|
-
var
|
|
1003
|
-
|
|
1000
|
+
var l, y = H.p(o), i = "set" + (this.$u ? "UTC" : ""), D = (l = {}, l[E] = i + "Date", l[w] = i + "Date", l[x] = i + "Month", l[m] = i + "FullYear", l[u] = i + "Hours", l[g] = i + "Minutes", l[s] = i + "Seconds", l[d] = i + "Milliseconds", l)[y], S = y === E ? this.$D + (f - this.$W) : f;
|
|
1001
|
+
if (y === x || y === m) {
|
|
1002
|
+
var B = this.clone().set(w, 1);
|
|
1003
|
+
B.$d[D](S), B.init(), this.$d = B.set(w, Math.min(this.$D, B.daysInMonth())).$d;
|
|
1004
1004
|
} else
|
|
1005
1005
|
D && this.$d[D](S);
|
|
1006
1006
|
return this.init(), this;
|
|
@@ -1011,27 +1011,27 @@ var dayjs_min = { exports: {} };
|
|
|
1011
1011
|
}, c.add = function(o, f) {
|
|
1012
1012
|
var l, y = this;
|
|
1013
1013
|
o = Number(o);
|
|
1014
|
-
var i = H.p(f), D = function(
|
|
1014
|
+
var i = H.p(f), D = function(z) {
|
|
1015
1015
|
var L = X(y);
|
|
1016
|
-
return H.w(L.date(L.date() + Math.round(
|
|
1016
|
+
return H.w(L.date(L.date() + Math.round(z * o)), y);
|
|
1017
1017
|
};
|
|
1018
|
-
if (i ===
|
|
1019
|
-
return this.set(
|
|
1018
|
+
if (i === x)
|
|
1019
|
+
return this.set(x, this.$M + o);
|
|
1020
1020
|
if (i === m)
|
|
1021
1021
|
return this.set(m, this.$y + o);
|
|
1022
|
-
if (i ===
|
|
1022
|
+
if (i === E)
|
|
1023
1023
|
return D(1);
|
|
1024
1024
|
if (i === C)
|
|
1025
1025
|
return D(7);
|
|
1026
|
-
var S = (l = {}, l[g] = a, l[u] = n, l[s] = r, l)[i] || 1,
|
|
1027
|
-
return H.w(
|
|
1026
|
+
var S = (l = {}, l[g] = a, l[u] = n, l[s] = r, l)[i] || 1, B = this.$d.getTime() + o * S;
|
|
1027
|
+
return H.w(B, this);
|
|
1028
1028
|
}, c.subtract = function(o, f) {
|
|
1029
1029
|
return this.add(-1 * o, f);
|
|
1030
1030
|
}, c.format = function(o) {
|
|
1031
1031
|
var f = this, l = this.$locale();
|
|
1032
1032
|
if (!this.isValid())
|
|
1033
1033
|
return l.invalidDate || M;
|
|
1034
|
-
var y = o || "YYYY-MM-DDTHH:mm:ssZ", i = H.z(this), D = this.$H, S = this.$m,
|
|
1034
|
+
var y = o || "YYYY-MM-DDTHH:mm:ssZ", i = H.z(this), D = this.$H, S = this.$m, B = this.$M, z = l.weekdays, L = l.months, N = l.meridiem, F = function(_, $, A, I) {
|
|
1035
1035
|
return _ && (_[$] || _(f, y)) || A[$].slice(0, I);
|
|
1036
1036
|
}, O = function(_) {
|
|
1037
1037
|
return H.s(D % 12 || 12, _, "0");
|
|
@@ -1047,13 +1047,13 @@ var dayjs_min = { exports: {} };
|
|
|
1047
1047
|
case "YYYY":
|
|
1048
1048
|
return H.s(f.$y, 4, "0");
|
|
1049
1049
|
case "M":
|
|
1050
|
-
return
|
|
1050
|
+
return B + 1;
|
|
1051
1051
|
case "MM":
|
|
1052
|
-
return H.s(
|
|
1052
|
+
return H.s(B + 1, 2, "0");
|
|
1053
1053
|
case "MMM":
|
|
1054
|
-
return F(l.monthsShort,
|
|
1054
|
+
return F(l.monthsShort, B, L, 3);
|
|
1055
1055
|
case "MMMM":
|
|
1056
|
-
return F(L,
|
|
1056
|
+
return F(L, B);
|
|
1057
1057
|
case "D":
|
|
1058
1058
|
return f.$D;
|
|
1059
1059
|
case "DD":
|
|
@@ -1061,11 +1061,11 @@ var dayjs_min = { exports: {} };
|
|
|
1061
1061
|
case "d":
|
|
1062
1062
|
return String(f.$W);
|
|
1063
1063
|
case "dd":
|
|
1064
|
-
return F(l.weekdaysMin, f.$W,
|
|
1064
|
+
return F(l.weekdaysMin, f.$W, z, 2);
|
|
1065
1065
|
case "ddd":
|
|
1066
|
-
return F(l.weekdaysShort, f.$W,
|
|
1066
|
+
return F(l.weekdaysShort, f.$W, z, 3);
|
|
1067
1067
|
case "dddd":
|
|
1068
|
-
return
|
|
1068
|
+
return z[f.$W];
|
|
1069
1069
|
case "H":
|
|
1070
1070
|
return String(D);
|
|
1071
1071
|
case "HH":
|
|
@@ -1097,40 +1097,40 @@ var dayjs_min = { exports: {} };
|
|
|
1097
1097
|
}, c.utcOffset = function() {
|
|
1098
1098
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1099
1099
|
}, c.diff = function(o, f, l) {
|
|
1100
|
-
var y, i = this, D = H.p(f), S = X(o),
|
|
1100
|
+
var y, i = this, D = H.p(f), S = X(o), B = (S.utcOffset() - this.utcOffset()) * a, z = this - S, L = function() {
|
|
1101
1101
|
return H.m(i, S);
|
|
1102
1102
|
};
|
|
1103
1103
|
switch (D) {
|
|
1104
1104
|
case m:
|
|
1105
1105
|
y = L() / 12;
|
|
1106
1106
|
break;
|
|
1107
|
-
case
|
|
1107
|
+
case x:
|
|
1108
1108
|
y = L();
|
|
1109
1109
|
break;
|
|
1110
1110
|
case k:
|
|
1111
1111
|
y = L() / 3;
|
|
1112
1112
|
break;
|
|
1113
1113
|
case C:
|
|
1114
|
-
y = (
|
|
1114
|
+
y = (z - B) / 6048e5;
|
|
1115
1115
|
break;
|
|
1116
|
-
case
|
|
1117
|
-
y = (
|
|
1116
|
+
case E:
|
|
1117
|
+
y = (z - B) / 864e5;
|
|
1118
1118
|
break;
|
|
1119
1119
|
case u:
|
|
1120
|
-
y =
|
|
1120
|
+
y = z / n;
|
|
1121
1121
|
break;
|
|
1122
1122
|
case g:
|
|
1123
|
-
y =
|
|
1123
|
+
y = z / a;
|
|
1124
1124
|
break;
|
|
1125
1125
|
case s:
|
|
1126
|
-
y =
|
|
1126
|
+
y = z / r;
|
|
1127
1127
|
break;
|
|
1128
1128
|
default:
|
|
1129
|
-
y =
|
|
1129
|
+
y = z;
|
|
1130
1130
|
}
|
|
1131
1131
|
return l ? y : H.a(y);
|
|
1132
1132
|
}, c.daysInMonth = function() {
|
|
1133
|
-
return this.endOf(
|
|
1133
|
+
return this.endOf(x).$D;
|
|
1134
1134
|
}, c.$locale = function() {
|
|
1135
1135
|
return q[this.$L];
|
|
1136
1136
|
}, c.locale = function(o, f) {
|
|
@@ -1150,7 +1150,7 @@ var dayjs_min = { exports: {} };
|
|
|
1150
1150
|
return this.$d.toUTCString();
|
|
1151
1151
|
}, p;
|
|
1152
1152
|
}(), b = v.prototype;
|
|
1153
|
-
return X.prototype = b, [["$ms", d], ["$s", s], ["$m", g], ["$H", u], ["$W",
|
|
1153
|
+
return X.prototype = b, [["$ms", d], ["$s", s], ["$m", g], ["$H", u], ["$W", E], ["$M", x], ["$y", m], ["$D", w]].forEach(function(p) {
|
|
1154
1154
|
b[p[1]] = function(c) {
|
|
1155
1155
|
return this.$g(c, p[0], p[1]);
|
|
1156
1156
|
};
|
|
@@ -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, a = dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"), n = dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"), d = dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"), s = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"), g = dayjs().add(-2, "month").startOf("month").format("YYYY-MM-DD HH:mm:ss"), u = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
|
1234
|
+
const r = t, a = dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"), n = dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"), d = dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"), s = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"), g = dayjs().add(-2, "month").startOf("month").format("YYYY-MM-DD HH:mm:ss"), u = dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"), E = dayjs().startOf("year").format("YYYY-MM-DD HH:mm:ss"), C = dayjs().endOf("year").format("YYYY-MM-DD HH:mm:ss"), x = ref([]), k = ref([]);
|
|
1235
1235
|
watch(
|
|
1236
1236
|
() => r.config,
|
|
1237
1237
|
() => {
|
|
@@ -1243,8 +1243,8 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
1245
1245
|
function m() {
|
|
1246
|
-
let
|
|
1247
|
-
if (
|
|
1246
|
+
let P = [];
|
|
1247
|
+
if (x.value = [], r.config && r.config.length) {
|
|
1248
1248
|
for (let J = 0; J < r.config.length; J++) {
|
|
1249
1249
|
const j = cloneDeep(r.config[J]);
|
|
1250
1250
|
let { dataType: W, dateType: ne, type: Q, selectorId: q, name: re, columnName: Z, defaultValue: ee, isNull: X } = j, H = [DataSourceColumnDataType.DATE, DataSourceColumnDataType.DATETIME].includes(W);
|
|
@@ -1263,10 +1263,10 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1263
1263
|
c = g;
|
|
1264
1264
|
break;
|
|
1265
1265
|
case "thisYear":
|
|
1266
|
-
c =
|
|
1266
|
+
c = E;
|
|
1267
1267
|
break;
|
|
1268
1268
|
}
|
|
1269
|
-
if (j.value = c,
|
|
1269
|
+
if (j.value = c, x.value.push({
|
|
1270
1270
|
name: Z,
|
|
1271
1271
|
value: c,
|
|
1272
1272
|
type: Q,
|
|
@@ -1279,7 +1279,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1279
1279
|
label: f,
|
|
1280
1280
|
value: l
|
|
1281
1281
|
})));
|
|
1282
|
-
}),
|
|
1282
|
+
}), P.push(j), Q === "LT_GT_EQ") {
|
|
1283
1283
|
j.placeholder = b + "开始";
|
|
1284
1284
|
const o = cloneDeep(j);
|
|
1285
1285
|
o.name = "-", o.columnName = `end_${Z}`, o.placeholder = b + "结束";
|
|
@@ -1299,7 +1299,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1299
1299
|
f = C;
|
|
1300
1300
|
break;
|
|
1301
1301
|
}
|
|
1302
|
-
|
|
1302
|
+
x.value.push({
|
|
1303
1303
|
name: `end_${Z}`,
|
|
1304
1304
|
value: f,
|
|
1305
1305
|
type: Q,
|
|
@@ -1312,23 +1312,23 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1312
1312
|
label: y,
|
|
1313
1313
|
value: i
|
|
1314
1314
|
})));
|
|
1315
|
-
}),
|
|
1315
|
+
}), P.push(o);
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
r.config.map((J) => J.isNull).includes(!0) && nextTick(() => {
|
|
1319
|
-
e("change",
|
|
1319
|
+
e("change", x.value);
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
|
-
k.value =
|
|
1322
|
+
k.value = P;
|
|
1323
1323
|
}
|
|
1324
|
-
function w(
|
|
1325
|
-
let j =
|
|
1326
|
-
J.value =
|
|
1324
|
+
function w(P, J) {
|
|
1325
|
+
let j = x.value.findIndex((W) => W.name === J.columnName);
|
|
1326
|
+
J.value = P, x.value[j].value = P, ["ElSelect", "ElTreeSelect", "ElSwitch", "ElDatePicker", "ElTimePicker", "ElColorPicker"].includes(J.formItemType) && e("change", x.value);
|
|
1327
1327
|
}
|
|
1328
|
-
function M(
|
|
1329
|
-
["ElInput", "ElInputNumber"].includes(
|
|
1328
|
+
function M(P) {
|
|
1329
|
+
["ElInput", "ElInputNumber"].includes(P.formItemType) && e("change", x.value);
|
|
1330
1330
|
}
|
|
1331
|
-
return (
|
|
1331
|
+
return (P, J) => (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1332
1332
|
createVNode(unref(ElForm), { inline: "" }, {
|
|
1333
1333
|
default: withCtx(() => [
|
|
1334
1334
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(k.value, (j) => withDirectives((openBlock(), createBlock(unref(ElFormItem), {
|
|
@@ -1372,7 +1372,7 @@ const _hoisted_1$1 = { class: "yh-statement-view-conditions" }, _sfc_main$4 = /*
|
|
|
1372
1372
|
]),
|
|
1373
1373
|
_: 1
|
|
1374
1374
|
}),
|
|
1375
|
-
renderSlot(
|
|
1375
|
+
renderSlot(P.$slots, "search")
|
|
1376
1376
|
]));
|
|
1377
1377
|
}
|
|
1378
1378
|
}), reportConditions_vue_vue_type_style_index_0_lang = "";
|
|
@@ -1877,7 +1877,7 @@ class Jsep {
|
|
|
1877
1877
|
* @returns {?jsep.BinaryExpression}
|
|
1878
1878
|
*/
|
|
1879
1879
|
gobbleBinaryExpression() {
|
|
1880
|
-
let e, r, a, n, d, s, g, u,
|
|
1880
|
+
let e, r, a, n, d, s, g, u, E;
|
|
1881
1881
|
if (s = this.gobbleToken(), !s || (r = this.gobbleBinaryOp(), !r))
|
|
1882
1882
|
return s;
|
|
1883
1883
|
for (d = { value: r, prec: Jsep.binaryPrecedence(r), right_a: Jsep.right_associative.has(r) }, g = this.gobbleToken(), g || this.throwError("Expected expression after " + r), n = [s, d, g]; r = this.gobbleBinaryOp(); ) {
|
|
@@ -1885,8 +1885,8 @@ class Jsep {
|
|
|
1885
1885
|
this.index -= r.length;
|
|
1886
1886
|
break;
|
|
1887
1887
|
}
|
|
1888
|
-
d = { value: r, prec: a, right_a: Jsep.right_associative.has(r) },
|
|
1889
|
-
const C = (
|
|
1888
|
+
d = { value: r, prec: a, right_a: Jsep.right_associative.has(r) }, E = r;
|
|
1889
|
+
const C = (x) => d.right_a && x.right_a ? a > x.prec : a <= x.prec;
|
|
1890
1890
|
for (; n.length > 2 && C(n[n.length - 2]); )
|
|
1891
1891
|
g = n.pop(), r = n.pop().value, s = n.pop(), e = {
|
|
1892
1892
|
type: Jsep.BINARY_EXP,
|
|
@@ -1894,7 +1894,7 @@ class Jsep {
|
|
|
1894
1894
|
left: s,
|
|
1895
1895
|
right: g
|
|
1896
1896
|
}, n.push(e);
|
|
1897
|
-
e = this.gobbleToken(), e || this.throwError("Expected expression after " +
|
|
1897
|
+
e = this.gobbleToken(), e || this.throwError("Expected expression after " + E), n.push(d, e);
|
|
1898
1898
|
}
|
|
1899
1899
|
for (u = n.length - 1, e = n[u]; u > 1; )
|
|
1900
1900
|
e = {
|
|
@@ -2282,8 +2282,8 @@ function changeConfig(config) {
|
|
|
2282
2282
|
...cell.rowData
|
|
2283
2283
|
};
|
|
2284
2284
|
if (cell.format === FormatType.STRING && cell.fun)
|
|
2285
|
-
cell.text = cell.fun.replace(/\$\{([a-zA-Z0-9\_\-]+)\}/g, (e, r) => (r = r.toUpperCase(), t
|
|
2286
|
-
else {
|
|
2285
|
+
cell.text = cell.fun.replace(/\$\{([a-zA-Z0-9\_\-]+)\}/g, (e, r) => (r = r.toUpperCase(), get(t, r, e)));
|
|
2286
|
+
else if (cell.isStaticData && cell.data && cell.data.startsWith("row:")) {
|
|
2287
2287
|
let e = cell.data.replace("row:", "").toUpperCase();
|
|
2288
2288
|
cell.text = t[e];
|
|
2289
2289
|
}
|
|
@@ -2402,12 +2402,12 @@ function getRangeValues(t, e) {
|
|
|
2402
2402
|
const g = e.match(/[A-Z]+/);
|
|
2403
2403
|
g && (s = columnToNumber(g[0]));
|
|
2404
2404
|
let u = -1;
|
|
2405
|
-
const
|
|
2406
|
-
|
|
2405
|
+
const E = e.match(/\d+/);
|
|
2406
|
+
E && (u = parseInt(E[0]) - 1);
|
|
2407
2407
|
const C = [];
|
|
2408
|
-
for (let
|
|
2408
|
+
for (let x = n; x <= u; x++)
|
|
2409
2409
|
for (let k = r; k <= s; k++) {
|
|
2410
|
-
const m = `${
|
|
2410
|
+
const m = `${x}:${k}`;
|
|
2411
2411
|
C.push(...getCellValue(m));
|
|
2412
2412
|
}
|
|
2413
2413
|
return C;
|
|
@@ -2480,17 +2480,17 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2480
2480
|
pageSizes: [10, 20, 50, 100, 200, 1e4],
|
|
2481
2481
|
pageIndex: 1,
|
|
2482
2482
|
total: 0
|
|
2483
|
-
}),
|
|
2483
|
+
}), E = ref([]);
|
|
2484
2484
|
function C(v) {
|
|
2485
|
-
|
|
2485
|
+
E.value = v, u.pageIndex = 1, Z();
|
|
2486
2486
|
}
|
|
2487
|
-
let
|
|
2487
|
+
let x = !1;
|
|
2488
2488
|
watch(
|
|
2489
2489
|
() => [u.pageSize, u.pageIndex],
|
|
2490
2490
|
(v, b) => {
|
|
2491
2491
|
if (v && b) {
|
|
2492
2492
|
let [p, c] = v, [o, f] = v;
|
|
2493
|
-
p !== o && (u.pageIndex = 1),
|
|
2493
|
+
p !== o && (u.pageIndex = 1), x && Z();
|
|
2494
2494
|
}
|
|
2495
2495
|
},
|
|
2496
2496
|
{
|
|
@@ -2518,17 +2518,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2518
2518
|
i = y;
|
|
2519
2519
|
else
|
|
2520
2520
|
return f;
|
|
2521
|
-
if (
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2521
|
+
if (i) {
|
|
2522
|
+
if (l = { ...l, data: i }, p === "row" && l.index !== void 0 && l.index >= 0 && l.index < c.length) {
|
|
2523
|
+
const D = c[l.index], S = D.length;
|
|
2524
|
+
for (let B = 0; B < S; B++) {
|
|
2525
|
+
const z = D[B];
|
|
2526
|
+
z.rowData = l.data, z.isStaticData = !0;
|
|
2527
|
+
}
|
|
2528
|
+
} else if (p === "col" && l.index !== void 0 && l.index >= 0) {
|
|
2529
|
+
const D = c.length;
|
|
2530
|
+
for (let S = 0; S < D; S++) {
|
|
2531
|
+
const B = c[S];
|
|
2532
|
+
l.index < B.length && (B[l.index].colData = l.data, B[l.index].isStaticData = !0);
|
|
2533
|
+
}
|
|
2532
2534
|
}
|
|
2533
2535
|
}
|
|
2534
2536
|
return f;
|
|
@@ -2543,7 +2545,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2543
2545
|
}
|
|
2544
2546
|
return c;
|
|
2545
2547
|
}
|
|
2546
|
-
function
|
|
2548
|
+
function P(v, b, p, c, o) {
|
|
2547
2549
|
if (c) {
|
|
2548
2550
|
let i = o.findIndex((D) => D === p);
|
|
2549
2551
|
p = o[i - 1];
|
|
@@ -2579,7 +2581,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2579
2581
|
let A = y[T - 1];
|
|
2580
2582
|
Array.from(i[A]).forEach((Y) => {
|
|
2581
2583
|
const U = `${A}-${Y}`;
|
|
2582
|
-
let
|
|
2584
|
+
let V = i[U].map((G) => {
|
|
2583
2585
|
if ($) {
|
|
2584
2586
|
let K = G[$];
|
|
2585
2587
|
if (K) {
|
|
@@ -2589,33 +2591,33 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2589
2591
|
}
|
|
2590
2592
|
}
|
|
2591
2593
|
}).filter((G) => !!G);
|
|
2592
|
-
i[U] =
|
|
2594
|
+
i[U] = V;
|
|
2593
2595
|
});
|
|
2594
2596
|
}
|
|
2595
2597
|
});
|
|
2596
2598
|
let D = 1, S = Math.max(...y);
|
|
2597
|
-
const
|
|
2598
|
-
y.length > 0 ?
|
|
2599
|
+
const B = l.some((O) => O.isRowColCombine);
|
|
2600
|
+
y.length > 0 ? B ? D = i[S].size : D = Array.from(i[S]).reduce((O, T) => {
|
|
2599
2601
|
let _ = i[`${S}-${T}`];
|
|
2600
2602
|
return O + _.length;
|
|
2601
2603
|
}, 0) : D = f.length;
|
|
2602
|
-
const
|
|
2604
|
+
const z = {
|
|
2603
2605
|
...o,
|
|
2604
2606
|
loop: !1
|
|
2605
|
-
}, L = Array.from({ length: D }, () => cloneDeep(
|
|
2607
|
+
}, L = Array.from({ length: D }, () => cloneDeep(z));
|
|
2606
2608
|
v.splice(o.index, 1, ...L);
|
|
2607
2609
|
const N = Array.from({ length: l.length }, () => []);
|
|
2608
2610
|
l.forEach((O, T) => {
|
|
2609
2611
|
let _ = N[T];
|
|
2610
2612
|
if (y.includes(O.col))
|
|
2611
2613
|
console.log(i[O.col], T, O.col), Array.from(i[O.col]).forEach((A, I) => {
|
|
2612
|
-
let Y =
|
|
2614
|
+
let Y = B && T === S ? 1 : P(i, A, S, B, y), U = i[A], R = U[i[A].length - 1], V = {
|
|
2613
2615
|
...O,
|
|
2614
2616
|
text: R,
|
|
2615
2617
|
rowSpan: Y,
|
|
2616
2618
|
rowData: U
|
|
2617
2619
|
};
|
|
2618
|
-
_.push(
|
|
2620
|
+
_.push(V);
|
|
2619
2621
|
let G = {
|
|
2620
2622
|
...O,
|
|
2621
2623
|
text: R,
|
|
@@ -2636,33 +2638,33 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2636
2638
|
val: ae
|
|
2637
2639
|
};
|
|
2638
2640
|
});
|
|
2639
|
-
const
|
|
2641
|
+
const V = U.filter((K) => R.every((te) => K[te.key] === te.val));
|
|
2640
2642
|
let G = {
|
|
2641
2643
|
...O
|
|
2642
2644
|
};
|
|
2643
|
-
if (delete G.combineKeys, delete G.combineValues, delete G.isRowColCombine,
|
|
2644
|
-
const K =
|
|
2645
|
+
if (delete G.combineKeys, delete G.combineValues, delete G.isRowColCombine, V && V.length) {
|
|
2646
|
+
const K = V[0];
|
|
2645
2647
|
G.text = K[A], G.rowData = K;
|
|
2646
2648
|
} else
|
|
2647
2649
|
G.text = "", G.rowData = {};
|
|
2648
2650
|
_.push(G);
|
|
2649
2651
|
}) : f.forEach((I) => {
|
|
2650
|
-
let U = O.combineKeys.map((
|
|
2652
|
+
let U = O.combineKeys.map((V, G) => {
|
|
2651
2653
|
const K = O.combineValues[G];
|
|
2652
2654
|
return {
|
|
2653
|
-
key:
|
|
2655
|
+
key: V,
|
|
2654
2656
|
val: K
|
|
2655
2657
|
};
|
|
2656
|
-
}).every((
|
|
2658
|
+
}).every((V) => I[V.key] === V.val), R = {
|
|
2657
2659
|
...O
|
|
2658
2660
|
};
|
|
2659
2661
|
delete R.combineKeys, delete R.combineValues, delete R.isRowColCombine, U ? (R.text = I[A], R.rowData = I) : R.text = "", _.push(R);
|
|
2660
2662
|
}) : $.length ? $.forEach((I, Y) => {
|
|
2661
2663
|
i[`${S}-${I}`].forEach((R) => {
|
|
2662
|
-
let
|
|
2664
|
+
let V = {
|
|
2663
2665
|
...O
|
|
2664
2666
|
};
|
|
2665
|
-
delete
|
|
2667
|
+
delete V.combineKeys, delete V.combineValues, delete V.isRowColCombine, R[A] ? (V.text = R[A], V.rowData = R) : V.text = "", _.push(V);
|
|
2666
2668
|
});
|
|
2667
2669
|
}) : f.forEach((I) => {
|
|
2668
2670
|
let Y = {
|
|
@@ -2676,7 +2678,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2676
2678
|
rowData: f[0]
|
|
2677
2679
|
};
|
|
2678
2680
|
if (O.rowSpan === 0 && O.mergeTarget && O.mergeTarget.length === 2) {
|
|
2679
|
-
let [Y, U] = O.mergeTarget, R = p.reduce((
|
|
2681
|
+
let [Y, U] = O.mergeTarget, R = p.reduce((V, G) => V.concat(G), []).filter((V) => V.row === Y && V.col === U)[0];
|
|
2680
2682
|
R && (R.rowSpan += D - 1);
|
|
2681
2683
|
} else
|
|
2682
2684
|
$.rowSpan += D - 1;
|
|
@@ -2724,9 +2726,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2724
2726
|
if (O) {
|
|
2725
2727
|
let R = U[O];
|
|
2726
2728
|
if (R) {
|
|
2727
|
-
let
|
|
2729
|
+
let V = !1;
|
|
2728
2730
|
const G = `${L}-${$}-${R}`, K = `${$}-${R}`;
|
|
2729
|
-
return i[G] ? i[G].push(U) : i[G] = [U], i[K + "-data"] ? i[K + "-data"].push(U) : i[K + "-data"] = [U], i[L].has(K) || (
|
|
2731
|
+
return i[G] ? i[G].push(U) : i[G] = [U], i[K + "-data"] ? i[K + "-data"].push(U) : i[K + "-data"] = [U], i[L].has(K) || (V = !0), i[L].add(K), i[K] = i[$].concat([R]), V ? R : null;
|
|
2730
2732
|
}
|
|
2731
2733
|
}
|
|
2732
2734
|
}).filter((U) => !!U);
|
|
@@ -2734,9 +2736,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2734
2736
|
});
|
|
2735
2737
|
}
|
|
2736
2738
|
});
|
|
2737
|
-
let D = 1, S = Math.max(...y),
|
|
2738
|
-
const
|
|
2739
|
-
y.length > 0 ?
|
|
2739
|
+
let D = 1, S = Math.max(...y), B = Math.min(...y);
|
|
2740
|
+
const z = l.some((L) => L.isRowColCombine);
|
|
2741
|
+
y.length > 0 ? z ? D = i[S].size : D = Array.from(i[S]).reduce((L, N) => {
|
|
2740
2742
|
let F = i[`${S}-${N}`];
|
|
2741
2743
|
return L + F.length;
|
|
2742
2744
|
}, 0) : D = f.length;
|
|
@@ -2754,7 +2756,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2754
2756
|
let O = [];
|
|
2755
2757
|
if (y.includes(L))
|
|
2756
2758
|
Array.from(i[N.row]).forEach((_, $) => {
|
|
2757
|
-
let A =
|
|
2759
|
+
let A = z && L === S ? 1 : P(i, _, S, z, y), I = i[_][i[_].length - 1], Y = {
|
|
2758
2760
|
...N,
|
|
2759
2761
|
text: I,
|
|
2760
2762
|
colSpan: A,
|
|
@@ -2773,7 +2775,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2773
2775
|
}
|
|
2774
2776
|
}), F.splice(N.col, 1, ...O);
|
|
2775
2777
|
else {
|
|
2776
|
-
if (L >
|
|
2778
|
+
if (L > B && L < S) {
|
|
2777
2779
|
let T = J(y, L);
|
|
2778
2780
|
if (T !== null) {
|
|
2779
2781
|
let _ = p[T].slice(o.index, o.index + D);
|
|
@@ -2884,10 +2886,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2884
2886
|
const i = v[y], D = document.createElement("tr");
|
|
2885
2887
|
i.isFixed && (D.style.top = `${f - 1}px`, D.classList.add("fixed-row")), f += i.size, D.style.height = `${i.size}px`;
|
|
2886
2888
|
for (let S = 0; S < b.length; S++) {
|
|
2887
|
-
const
|
|
2888
|
-
if (i &&
|
|
2889
|
-
const
|
|
2890
|
-
|
|
2889
|
+
const B = p[y][S];
|
|
2890
|
+
if (i && B && i.size > 0) {
|
|
2891
|
+
const z = q(i, B);
|
|
2892
|
+
z.setAttribute("data-cell-data", `${y}-${S}`), B.rowSpan === 0 || B.colSpan === 0 || D.appendChild(z);
|
|
2891
2893
|
}
|
|
2892
2894
|
}
|
|
2893
2895
|
l.appendChild(D);
|
|
@@ -2897,7 +2899,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2897
2899
|
async function Z() {
|
|
2898
2900
|
m.value = !0;
|
|
2899
2901
|
let v = await X(), b = ee(v);
|
|
2900
|
-
r.config.data.processData && (b = await getProcessData(r.config.data.processData, b,
|
|
2902
|
+
r.config.data.processData && (b = await getProcessData(r.config.data.processData, b, E.value)), ne(b), m.value = !1;
|
|
2901
2903
|
}
|
|
2902
2904
|
function ee(v) {
|
|
2903
2905
|
let b = {};
|
|
@@ -2912,7 +2914,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2912
2914
|
async function X() {
|
|
2913
2915
|
if (r.config.data.source) {
|
|
2914
2916
|
let v = {};
|
|
2915
|
-
g.value && (v.params = cloneDeep(
|
|
2917
|
+
g.value && (v.params = cloneDeep(E.value)), s.value && (v.pageSize = u.pageSize, v.pageNumber = u.pageIndex);
|
|
2916
2918
|
let b = [];
|
|
2917
2919
|
for (let p = 0; p < r.config.data.source.length; p++) {
|
|
2918
2920
|
const { key: c, url: o } = r.config.data.source[p];
|
|
@@ -2926,11 +2928,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2926
2928
|
return [];
|
|
2927
2929
|
}
|
|
2928
2930
|
async function H() {
|
|
2929
|
-
if (r.config.data.pagination
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2931
|
+
if (r.config.data.pagination) {
|
|
2932
|
+
if (r.config.data.pageSize !== void 0 && (u.pageSize = isNaN(r.config.data.pageSize) ? 10 : r.config.data.pageSize), r.config.data.pageSizes !== void 0) {
|
|
2933
|
+
let v = r.config.data.pageSizes.split(",").map((b) => parseInt(b));
|
|
2934
|
+
u.pageSizes = Array.isArray(v) ? v : [10, 20, 50, 100, 200];
|
|
2935
|
+
}
|
|
2936
|
+
x = !0;
|
|
2937
|
+
} else
|
|
2938
|
+
x = !0, Z();
|
|
2934
2939
|
}
|
|
2935
2940
|
return onMounted(async () => {
|
|
2936
2941
|
H();
|
|
@@ -2995,15 +3000,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2995
3000
|
...e
|
|
2996
3001
|
};
|
|
2997
3002
|
for (let u = 0; u < r.length; u++) {
|
|
2998
|
-
const { key:
|
|
2999
|
-
g[
|
|
3003
|
+
const { key: E, url: C } = r[u], x = (await getDateSourceData(C, {})).data;
|
|
3004
|
+
g[E] = x;
|
|
3000
3005
|
}
|
|
3001
3006
|
if (Object.keys(g).length === 0)
|
|
3002
3007
|
return !1;
|
|
3003
3008
|
if (a) {
|
|
3004
|
-
const
|
|
3009
|
+
const E = new Function("allData", a)(g);
|
|
3005
3010
|
t.option.series.forEach((C) => {
|
|
3006
|
-
C.data =
|
|
3011
|
+
C.data = E;
|
|
3007
3012
|
});
|
|
3008
3013
|
} else
|
|
3009
3014
|
t.option = setYAxisData(t, g);
|
|
@@ -3014,8 +3019,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3014
3019
|
} else
|
|
3015
3020
|
t.option = setXAxisData(t, g);
|
|
3016
3021
|
if (d) {
|
|
3017
|
-
const
|
|
3018
|
-
t.option.yAxis.data =
|
|
3022
|
+
const E = new Function("allData", d)(g);
|
|
3023
|
+
t.option.yAxis.data = E;
|
|
3019
3024
|
}
|
|
3020
3025
|
}
|
|
3021
3026
|
}, chartItem_vue_vue_type_style_index_0_scoped_5bbf4c7d_lang = "", _export_sfc = (t, e) => {
|
|
@@ -3040,32 +3045,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3040
3045
|
let d = null;
|
|
3041
3046
|
watch(
|
|
3042
3047
|
() => r.chartData.option,
|
|
3043
|
-
(
|
|
3044
|
-
d && d.setOption(
|
|
3048
|
+
(x) => {
|
|
3049
|
+
d && d.setOption(x, {
|
|
3045
3050
|
notMerge: !0
|
|
3046
3051
|
});
|
|
3047
3052
|
},
|
|
3048
3053
|
{ deep: !0 }
|
|
3049
3054
|
), watch(
|
|
3050
3055
|
() => r.chartData.isSuspend,
|
|
3051
|
-
(
|
|
3052
|
-
|
|
3056
|
+
(x) => {
|
|
3057
|
+
x && C();
|
|
3053
3058
|
},
|
|
3054
3059
|
{ deep: !0 }
|
|
3055
3060
|
);
|
|
3056
|
-
const s = ref(!1), g = (
|
|
3057
|
-
if (n.value =
|
|
3061
|
+
const s = ref(!1), g = (x) => {
|
|
3062
|
+
if (n.value = x, x && Object.keys(x).length > 0) {
|
|
3058
3063
|
const k = cloneDeep(r.chartData);
|
|
3059
3064
|
u(k);
|
|
3060
3065
|
}
|
|
3061
|
-
}, u = async (
|
|
3062
|
-
r.isView && await getChartData(
|
|
3066
|
+
}, u = async (x) => {
|
|
3067
|
+
r.isView && await getChartData(x, n.value), x.type === "label" && x.option.series.forEach((k) => {
|
|
3063
3068
|
k.renderItem = renderItem;
|
|
3064
|
-
}), d.setOption(
|
|
3065
|
-
},
|
|
3069
|
+
}), d.setOption(x.option), s.value = !1;
|
|
3070
|
+
}, E = async () => {
|
|
3066
3071
|
s.value = !0, d = echarts.init(a.value);
|
|
3067
|
-
let
|
|
3068
|
-
await u(
|
|
3072
|
+
let x = cloneDeep(r.chartData);
|
|
3073
|
+
await u(x);
|
|
3069
3074
|
}, C = () => {
|
|
3070
3075
|
nextTick(() => {
|
|
3071
3076
|
d.resize();
|
|
@@ -3074,10 +3079,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3074
3079
|
return e({
|
|
3075
3080
|
setOutData: g
|
|
3076
3081
|
}), onMounted(() => {
|
|
3077
|
-
|
|
3082
|
+
E(), window.addEventListener("resize", C);
|
|
3078
3083
|
}), onUnmounted(() => {
|
|
3079
3084
|
window.removeEventListener("resize", C);
|
|
3080
|
-
}), (
|
|
3085
|
+
}), (x, k) => {
|
|
3081
3086
|
const m = resolveDirective("loading");
|
|
3082
3087
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
3083
3088
|
ref_key: "chartRef",
|
|
@@ -3151,7 +3156,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3151
3156
|
setup(t, { emit: e }) {
|
|
3152
3157
|
const r = t;
|
|
3153
3158
|
ref();
|
|
3154
|
-
const a = ref(!1), n = ref(!1), d = ref(""), s = ref(), g = ref(), u = ref([]),
|
|
3159
|
+
const a = ref(!1), n = ref(!1), d = ref(""), s = ref(), g = ref(), u = ref([]), E = {};
|
|
3155
3160
|
watch(
|
|
3156
3161
|
() => r.id,
|
|
3157
3162
|
(m) => {
|
|
@@ -3160,17 +3165,17 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3160
3165
|
);
|
|
3161
3166
|
function C(m) {
|
|
3162
3167
|
m ? (n.value = !1, a.value = !0, getConfig(m).then(async (w) => {
|
|
3163
|
-
let { name: M, remoteOptions:
|
|
3164
|
-
d.value = M, u.value =
|
|
3168
|
+
let { name: M, remoteOptions: P } = w;
|
|
3169
|
+
d.value = M, u.value = P;
|
|
3165
3170
|
}).finally(() => {
|
|
3166
3171
|
a.value = !1;
|
|
3167
3172
|
})) : n.value = !0;
|
|
3168
3173
|
}
|
|
3169
|
-
const
|
|
3174
|
+
const x = ref(!1);
|
|
3170
3175
|
function k(m) {
|
|
3171
3176
|
var w;
|
|
3172
|
-
|
|
3173
|
-
M.setOutData(
|
|
3177
|
+
E[m.key] = m.data, (w = g.value) == null || w.forEach((M) => {
|
|
3178
|
+
M.setOutData(E);
|
|
3174
3179
|
});
|
|
3175
3180
|
}
|
|
3176
3181
|
return onMounted(() => {
|
|
@@ -3187,7 +3192,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3187
3192
|
default: withCtx(() => [
|
|
3188
3193
|
createVNode(unref(ElButton), {
|
|
3189
3194
|
type: "primary",
|
|
3190
|
-
onClick: w[0] || (w[0] = (
|
|
3195
|
+
onClick: w[0] || (w[0] = (P) => m.$router.back())
|
|
3191
3196
|
}, {
|
|
3192
3197
|
default: withCtx(() => [
|
|
3193
3198
|
createTextVNode(" 返回 ")
|
|
@@ -3202,15 +3207,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3202
3207
|
ref_key: "viewWrapper",
|
|
3203
3208
|
ref: s
|
|
3204
3209
|
}, [
|
|
3205
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(u.value, (
|
|
3206
|
-
|
|
3210
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(u.value, (P, J) => (openBlock(), createElementBlock(Fragment, null, [
|
|
3211
|
+
P.type === "report" ? (openBlock(), createBlock(_sfc_main$3, {
|
|
3207
3212
|
key: 0,
|
|
3208
3213
|
index: J,
|
|
3209
|
-
config:
|
|
3214
|
+
config: P,
|
|
3210
3215
|
onUpdateData: k
|
|
3211
3216
|
}, null, 8, ["index", "config"])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
3212
3217
|
key: 1,
|
|
3213
|
-
config:
|
|
3218
|
+
config: P,
|
|
3214
3219
|
ref_for: !0,
|
|
3215
3220
|
ref_key: "chartViewItemRef",
|
|
3216
3221
|
ref: g,
|
|
@@ -3218,7 +3223,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3218
3223
|
}, null, 8, ["config", "index"]))
|
|
3219
3224
|
], 64))), 256)),
|
|
3220
3225
|
withDirectives(createElementVNode("div", _hoisted_2, _hoisted_4, 512), [
|
|
3221
|
-
[vShow,
|
|
3226
|
+
[vShow, x.value]
|
|
3222
3227
|
])
|
|
3223
3228
|
])), [
|
|
3224
3229
|
[M, a.value]
|
|
@@ -3237,7 +3242,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3237
3242
|
title: "报表列表",
|
|
3238
3243
|
icon: "iconfont icon-s-grid"
|
|
3239
3244
|
},
|
|
3240
|
-
component: () => import("./StatementList-
|
|
3245
|
+
component: () => import("./StatementList-e0bf4f12.mjs")
|
|
3241
3246
|
}), r.addRoute("Index", {
|
|
3242
3247
|
path: "statement/design/:id",
|
|
3243
3248
|
name: "报表设计",
|
|
@@ -3246,7 +3251,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3246
3251
|
title: "报表设计",
|
|
3247
3252
|
icon: "iconfont icon-s-grid"
|
|
3248
3253
|
},
|
|
3249
|
-
component: () => import("./StatementDesign-
|
|
3254
|
+
component: () => import("./StatementDesign-d92e1f36.mjs")
|
|
3250
3255
|
}), r.addRoute("Index", {
|
|
3251
3256
|
path: "statement/detail/:id",
|
|
3252
3257
|
name: "后台报表查看",
|
|
@@ -3255,7 +3260,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3255
3260
|
title: "后台报表查看",
|
|
3256
3261
|
icon: "iconfont icon-s-grid"
|
|
3257
3262
|
},
|
|
3258
|
-
component: () => import("./StatementDetail-
|
|
3263
|
+
component: () => import("./StatementDetail-509cca8d.mjs")
|
|
3259
3264
|
})), r.addRoute({
|
|
3260
3265
|
path: "/statementdetail/:id",
|
|
3261
3266
|
name: "报表查看",
|
|
@@ -3264,7 +3269,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3264
3269
|
title: "报表查看",
|
|
3265
3270
|
icon: "iconfont icon-s-grid"
|
|
3266
3271
|
},
|
|
3267
|
-
component: () => import("./StatementDetail-
|
|
3272
|
+
component: () => import("./StatementDetail-509cca8d.mjs")
|
|
3268
3273
|
});
|
|
3269
3274
|
}
|
|
3270
3275
|
};
|
|
@@ -3320,4 +3325,4 @@ export {
|
|
|
3320
3325
|
renderCellStyle as r,
|
|
3321
3326
|
save as s
|
|
3322
3327
|
};
|
|
3323
|
-
//# sourceMappingURL=index-
|
|
3328
|
+
//# sourceMappingURL=index-bd85b7d3.mjs.map
|