@ecan-bi/indicator-library 1.1.22 → 1.1.23
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/dist/DrillModal-3f5a0070-e4053b53.mjs +1 -1
- package/dist/assets/editor.worker-02df2e61.js +1 -1
- package/dist/assets/json.worker-867823a6.js +1 -1
- package/dist/assets/ts.worker-7254b425.js +1 -1
- package/dist/{index-71e63edf.mjs → index-33bb1525.mjs} +4 -4
- package/dist/{index-71e63edf.mjs.map → index-33bb1525.mjs.map} +1 -1
- package/dist/{index-abd67186.mjs → index-64a2f458.mjs} +211 -209
- package/dist/index-64a2f458.mjs.map +1 -0
- package/dist/{index-0954b8bb.mjs → index-ea361874.mjs} +2653 -2609
- package/dist/index-ea361874.mjs.map +1 -0
- package/dist/index.es-7e69466e.mjs +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +39 -39
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/dist/{util-fac8571f.mjs → util-a50e0b7f.mjs} +3 -3
- package/dist/{util-fac8571f.mjs.map → util-a50e0b7f.mjs.map} +1 -1
- package/package.json +2 -2
- package/types/indicator/indicator-library/data-config/data-config-group/data-config-card/DataConfigCard.vue.d.ts +6 -0
- package/dist/index-0954b8bb.mjs.map +0 -1
- package/dist/index-abd67186.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@1.1.
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.1.23 */
|
|
2
2
|
import { defineAsyncComponent as vn, defineComponent as Mo, ref as at, computed as mt, unref as $, provide as nt, nextTick as Sn, resolveComponent as Ne, openBlock as je, createElementBlock as Ie, createVNode as De, createCommentVNode as Ye, createElementVNode as $o, normalizeClass as An, inject as se, watch as Ke, onMounted as wn, onBeforeUnmount as Cn, withCtx as _n } from "vue";
|
|
3
3
|
import { cloneDeep as Dt } from "lodash-es";
|
|
4
4
|
import * as Tn from "echarts";
|
|
@@ -416,8 +416,8 @@ const Ln = ((ko = window == null ? void 0 : window.config) == null ? void 0 : ko
|
|
|
416
416
|
}), Zn = Mo({
|
|
417
417
|
name: "IndicatorLibrary",
|
|
418
418
|
components: {
|
|
419
|
-
DataList: Qe(() => import("./index-
|
|
420
|
-
DataConfig: Qe(() => import("./index-
|
|
419
|
+
DataList: Qe(() => import("./index-33bb1525.mjs")),
|
|
420
|
+
DataConfig: Qe(() => import("./index-ea361874.mjs"))
|
|
421
421
|
},
|
|
422
422
|
props: {
|
|
423
423
|
isShowStyleConfig: {
|
|
@@ -480,8 +480,8 @@ const Ln = ((ko = window == null ? void 0 : window.config) == null ? void 0 : ko
|
|
|
480
480
|
return ((E = $(l)) == null ? void 0 : E.tableColumns) || [];
|
|
481
481
|
}
|
|
482
482
|
), p = mt(() => t.isShowStyleConfig), s = mt(() => {
|
|
483
|
-
var E,
|
|
484
|
-
return (
|
|
483
|
+
var E, tt;
|
|
484
|
+
return (tt = (E = $(l)) == null ? void 0 : E.type) == null ? void 0 : tt.includes("PivotTable");
|
|
485
485
|
});
|
|
486
486
|
let u = $(l).graphicConfig ? Dt($(l).graphicConfig) : at({});
|
|
487
487
|
u = at(u);
|
|
@@ -496,8 +496,8 @@ const Ln = ((ko = window == null ? void 0 : window.config) == null ? void 0 : ko
|
|
|
496
496
|
...$(u),
|
|
497
497
|
...$(E)
|
|
498
498
|
};
|
|
499
|
-
}, b = (E,
|
|
500
|
-
|
|
499
|
+
}, b = (E, tt = !0) => {
|
|
500
|
+
tt ? h.value = {
|
|
501
501
|
...$(h),
|
|
502
502
|
...$(E)
|
|
503
503
|
} : h.value = {
|
|
@@ -508,7 +508,7 @@ const Ln = ((ko = window == null ? void 0 : window.config) == null ? void 0 : ko
|
|
|
508
508
|
...$(g),
|
|
509
509
|
...$(E)
|
|
510
510
|
};
|
|
511
|
-
}, _ = () => m,
|
|
511
|
+
}, _ = () => m, j = () => {
|
|
512
512
|
r.value = !0, $(l).graphicConfig && (u.value = Dt($(l).graphicConfig)), $(l).chartsOptions && (h.value = Dt($(l).chartsOptions || qe.line)), Sn(() => {
|
|
513
513
|
r.value = !1;
|
|
514
514
|
});
|
|
@@ -528,13 +528,13 @@ const Ln = ((ko = window == null ? void 0 : window.config) == null ? void 0 : ko
|
|
|
528
528
|
});
|
|
529
529
|
const F = (E) => {
|
|
530
530
|
o("updateUsedComponent", E);
|
|
531
|
-
}, C = (E,
|
|
532
|
-
o("updateComponentsConfig", E, { controlList:
|
|
531
|
+
}, C = (E, tt) => {
|
|
532
|
+
o("updateComponentsConfig", E, { controlList: tt });
|
|
533
533
|
};
|
|
534
534
|
return nt(Un, s), nt(Bn, t.isIframeMode), nt(jn, l), nt(Vo, u), nt(Go, h), nt(En, g), nt($n, i), nt(Dn, p), nt(zo, a), nt(In, S), nt(kn, b), nt(Mn, A), nt(Pn, d), nt(Rn, F), nt(zn, C), nt(Vn, t.mapAttributeProps), nt(Gn, t.pageConfig), e({
|
|
535
535
|
graphicConfig: u,
|
|
536
536
|
chartsOptions: h,
|
|
537
|
-
updateIndicatorData:
|
|
537
|
+
updateIndicatorData: j
|
|
538
538
|
}), {
|
|
539
539
|
isUpdate: r,
|
|
540
540
|
isPivotTable: s,
|
|
@@ -657,7 +657,7 @@ function Bt(t) {
|
|
|
657
657
|
function Ko(t) {
|
|
658
658
|
return !(!t || t.__v_isRef !== !0);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Q(t) {
|
|
661
661
|
return Ko(t) ? t.value : t;
|
|
662
662
|
}
|
|
663
663
|
new Set(Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(ni));
|
|
@@ -933,8 +933,8 @@ function fi() {
|
|
|
933
933
|
return T === void 0;
|
|
934
934
|
} }, A = "en", _ = {};
|
|
935
935
|
_[A] = f;
|
|
936
|
-
var
|
|
937
|
-
return T instanceof E || !(!T || !T[
|
|
936
|
+
var j = "$isDayjsObject", D = function(T) {
|
|
937
|
+
return T instanceof E || !(!T || !T[j]);
|
|
938
938
|
}, P = function T(v, y, w) {
|
|
939
939
|
var x;
|
|
940
940
|
if (!v)
|
|
@@ -961,7 +961,7 @@ function fi() {
|
|
|
961
961
|
};
|
|
962
962
|
var E = function() {
|
|
963
963
|
function T(y) {
|
|
964
|
-
this.$L = P(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[
|
|
964
|
+
this.$L = P(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[j] = !0;
|
|
965
965
|
}
|
|
966
966
|
var v = T.prototype;
|
|
967
967
|
return v.parse = function(y) {
|
|
@@ -1008,24 +1008,24 @@ function fi() {
|
|
|
1008
1008
|
return O ? ut : ut.endOf(l);
|
|
1009
1009
|
}, R = function(ft, V) {
|
|
1010
1010
|
return C.w(x.toDate()[ft].apply(x.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), x);
|
|
1011
|
-
},
|
|
1011
|
+
}, W = this.$W, K = this.$M, ot = this.$D, Z = "set" + (this.$u ? "UTC" : "");
|
|
1012
1012
|
switch (N) {
|
|
1013
1013
|
case s:
|
|
1014
1014
|
return O ? k(1, 0) : k(31, 11);
|
|
1015
1015
|
case c:
|
|
1016
|
-
return O ? k(1,
|
|
1016
|
+
return O ? k(1, K) : k(0, K + 1);
|
|
1017
1017
|
case d:
|
|
1018
|
-
var bt = this.$locale().weekStart || 0, xt = (
|
|
1019
|
-
return k(O ?
|
|
1018
|
+
var bt = this.$locale().weekStart || 0, xt = (W < bt ? W + 7 : W) - bt;
|
|
1019
|
+
return k(O ? ot - xt : ot + (6 - xt), K);
|
|
1020
1020
|
case l:
|
|
1021
1021
|
case u:
|
|
1022
|
-
return R(
|
|
1022
|
+
return R(Z + "Hours", 0);
|
|
1023
1023
|
case a:
|
|
1024
|
-
return R(
|
|
1024
|
+
return R(Z + "Minutes", 1);
|
|
1025
1025
|
case i:
|
|
1026
|
-
return R(
|
|
1026
|
+
return R(Z + "Seconds", 2);
|
|
1027
1027
|
case r:
|
|
1028
|
-
return R(
|
|
1028
|
+
return R(Z + "Milliseconds", 3);
|
|
1029
1029
|
default:
|
|
1030
1030
|
return this.clone();
|
|
1031
1031
|
}
|
|
@@ -1034,8 +1034,8 @@ function fi() {
|
|
|
1034
1034
|
}, v.$set = function(y, w) {
|
|
1035
1035
|
var x, O = C.p(y), N = "set" + (this.$u ? "UTC" : ""), k = (x = {}, x[l] = N + "Date", x[u] = N + "Date", x[c] = N + "Month", x[s] = N + "FullYear", x[a] = N + "Hours", x[i] = N + "Minutes", x[r] = N + "Seconds", x[n] = N + "Milliseconds", x)[O], R = O === l ? this.$D + (w - this.$W) : w;
|
|
1036
1036
|
if (O === c || O === s) {
|
|
1037
|
-
var
|
|
1038
|
-
|
|
1037
|
+
var W = this.clone().set(u, 1);
|
|
1038
|
+
W.$d[k](R), W.init(), this.$d = W.set(u, Math.min(this.$D, W.daysInMonth())).$d;
|
|
1039
1039
|
} else
|
|
1040
1040
|
k && this.$d[k](R);
|
|
1041
1041
|
return this.init(), this;
|
|
@@ -1046,9 +1046,9 @@ function fi() {
|
|
|
1046
1046
|
}, v.add = function(y, w) {
|
|
1047
1047
|
var x, O = this;
|
|
1048
1048
|
y = Number(y);
|
|
1049
|
-
var N = C.p(w), k = function(
|
|
1050
|
-
var
|
|
1051
|
-
return C.w(
|
|
1049
|
+
var N = C.p(w), k = function(K) {
|
|
1050
|
+
var ot = F(O);
|
|
1051
|
+
return C.w(ot.date(ot.date() + Math.round(K * y)), O);
|
|
1052
1052
|
};
|
|
1053
1053
|
if (N === c)
|
|
1054
1054
|
return this.set(c, this.$M + y);
|
|
@@ -1058,19 +1058,19 @@ function fi() {
|
|
|
1058
1058
|
return k(1);
|
|
1059
1059
|
if (N === d)
|
|
1060
1060
|
return k(7);
|
|
1061
|
-
var R = (x = {}, x[i] = e, x[a] = o, x[r] = t, x)[N] || 1,
|
|
1062
|
-
return C.w(
|
|
1061
|
+
var R = (x = {}, x[i] = e, x[a] = o, x[r] = t, x)[N] || 1, W = this.$d.getTime() + y * R;
|
|
1062
|
+
return C.w(W, this);
|
|
1063
1063
|
}, v.subtract = function(y, w) {
|
|
1064
1064
|
return this.add(-1 * y, w);
|
|
1065
1065
|
}, v.format = function(y) {
|
|
1066
1066
|
var w = this, x = this.$locale();
|
|
1067
1067
|
if (!this.isValid())
|
|
1068
1068
|
return x.invalidDate || h;
|
|
1069
|
-
var O = y || "YYYY-MM-DDTHH:mm:ssZ", N = C.z(this), k = this.$H, R = this.$m,
|
|
1069
|
+
var O = y || "YYYY-MM-DDTHH:mm:ssZ", N = C.z(this), k = this.$H, R = this.$m, W = this.$M, K = x.weekdays, ot = x.months, Z = x.meridiem, bt = function(V, ut, lt, vt) {
|
|
1070
1070
|
return V && (V[ut] || V(w, O)) || lt[ut].slice(0, vt);
|
|
1071
1071
|
}, xt = function(V) {
|
|
1072
1072
|
return C.s(k % 12 || 12, V, "0");
|
|
1073
|
-
}, ft =
|
|
1073
|
+
}, ft = Z || function(V, ut, lt) {
|
|
1074
1074
|
var vt = V < 12 ? "AM" : "PM";
|
|
1075
1075
|
return lt ? vt.toLowerCase() : vt;
|
|
1076
1076
|
};
|
|
@@ -1082,13 +1082,13 @@ function fi() {
|
|
|
1082
1082
|
case "YYYY":
|
|
1083
1083
|
return C.s(w.$y, 4, "0");
|
|
1084
1084
|
case "M":
|
|
1085
|
-
return
|
|
1085
|
+
return W + 1;
|
|
1086
1086
|
case "MM":
|
|
1087
|
-
return C.s(
|
|
1087
|
+
return C.s(W + 1, 2, "0");
|
|
1088
1088
|
case "MMM":
|
|
1089
|
-
return bt(x.monthsShort,
|
|
1089
|
+
return bt(x.monthsShort, W, ot, 3);
|
|
1090
1090
|
case "MMMM":
|
|
1091
|
-
return bt(
|
|
1091
|
+
return bt(ot, W);
|
|
1092
1092
|
case "D":
|
|
1093
1093
|
return w.$D;
|
|
1094
1094
|
case "DD":
|
|
@@ -1096,11 +1096,11 @@ function fi() {
|
|
|
1096
1096
|
case "d":
|
|
1097
1097
|
return String(w.$W);
|
|
1098
1098
|
case "dd":
|
|
1099
|
-
return bt(x.weekdaysMin, w.$W,
|
|
1099
|
+
return bt(x.weekdaysMin, w.$W, K, 2);
|
|
1100
1100
|
case "ddd":
|
|
1101
|
-
return bt(x.weekdaysShort, w.$W,
|
|
1101
|
+
return bt(x.weekdaysShort, w.$W, K, 3);
|
|
1102
1102
|
case "dddd":
|
|
1103
|
-
return
|
|
1103
|
+
return K[w.$W];
|
|
1104
1104
|
case "H":
|
|
1105
1105
|
return String(k);
|
|
1106
1106
|
case "HH":
|
|
@@ -1132,36 +1132,36 @@ function fi() {
|
|
|
1132
1132
|
}, v.utcOffset = function() {
|
|
1133
1133
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1134
1134
|
}, v.diff = function(y, w, x) {
|
|
1135
|
-
var O, N = this, k = C.p(w), R = F(y),
|
|
1135
|
+
var O, N = this, k = C.p(w), R = F(y), W = (R.utcOffset() - this.utcOffset()) * e, K = this - R, ot = function() {
|
|
1136
1136
|
return C.m(N, R);
|
|
1137
1137
|
};
|
|
1138
1138
|
switch (k) {
|
|
1139
1139
|
case s:
|
|
1140
|
-
O =
|
|
1140
|
+
O = ot() / 12;
|
|
1141
1141
|
break;
|
|
1142
1142
|
case c:
|
|
1143
|
-
O =
|
|
1143
|
+
O = ot();
|
|
1144
1144
|
break;
|
|
1145
1145
|
case p:
|
|
1146
|
-
O =
|
|
1146
|
+
O = ot() / 3;
|
|
1147
1147
|
break;
|
|
1148
1148
|
case d:
|
|
1149
|
-
O = (
|
|
1149
|
+
O = (K - W) / 6048e5;
|
|
1150
1150
|
break;
|
|
1151
1151
|
case l:
|
|
1152
|
-
O = (
|
|
1152
|
+
O = (K - W) / 864e5;
|
|
1153
1153
|
break;
|
|
1154
1154
|
case a:
|
|
1155
|
-
O =
|
|
1155
|
+
O = K / o;
|
|
1156
1156
|
break;
|
|
1157
1157
|
case i:
|
|
1158
|
-
O =
|
|
1158
|
+
O = K / e;
|
|
1159
1159
|
break;
|
|
1160
1160
|
case r:
|
|
1161
|
-
O =
|
|
1161
|
+
O = K / t;
|
|
1162
1162
|
break;
|
|
1163
1163
|
default:
|
|
1164
|
-
O =
|
|
1164
|
+
O = K;
|
|
1165
1165
|
}
|
|
1166
1166
|
return x ? O : C.a(O);
|
|
1167
1167
|
}, v.daysInMonth = function() {
|
|
@@ -1184,9 +1184,9 @@ function fi() {
|
|
|
1184
1184
|
}, v.toString = function() {
|
|
1185
1185
|
return this.$d.toUTCString();
|
|
1186
1186
|
}, T;
|
|
1187
|
-
}(),
|
|
1188
|
-
return F.prototype =
|
|
1189
|
-
|
|
1187
|
+
}(), tt = E.prototype;
|
|
1188
|
+
return F.prototype = tt, [["$ms", n], ["$s", r], ["$m", i], ["$H", a], ["$W", l], ["$M", c], ["$y", s], ["$D", u]].forEach(function(T) {
|
|
1189
|
+
tt[T[1]] = function(v) {
|
|
1190
1190
|
return this.$g(v, T[0], T[1]);
|
|
1191
1191
|
};
|
|
1192
1192
|
}), F.extend = function(T, v) {
|
|
@@ -1300,13 +1300,13 @@ var an = Object.prototype, Di = an.hasOwnProperty, Ei = an.propertyIsEnumerable,
|
|
|
1300
1300
|
return re(t) && Di.call(t, "callee") && !Ei.call(t, "callee");
|
|
1301
1301
|
}, ln = typeof exports == "object" && exports && !exports.nodeType && exports, xo = ln && typeof module == "object" && module && !module.nodeType && module, vo = xo && xo.exports === ln ? Ot.Buffer : void 0, sn = (vo ? vo.isBuffer : void 0) || function() {
|
|
1302
1302
|
return !1;
|
|
1303
|
-
},
|
|
1303
|
+
}, q = {};
|
|
1304
1304
|
function Ue(t) {
|
|
1305
1305
|
return function(e) {
|
|
1306
1306
|
return t(e);
|
|
1307
1307
|
};
|
|
1308
1308
|
}
|
|
1309
|
-
|
|
1309
|
+
q["[object Float32Array]"] = q["[object Float64Array]"] = q["[object Int8Array]"] = q["[object Int16Array]"] = q["[object Int32Array]"] = q["[object Uint8Array]"] = q["[object Uint8ClampedArray]"] = q["[object Uint16Array]"] = q["[object Uint32Array]"] = !0, q["[object Arguments]"] = q["[object Array]"] = q["[object ArrayBuffer]"] = q["[object Boolean]"] = q["[object DataView]"] = q["[object Date]"] = q["[object Error]"] = q["[object Function]"] = q["[object Map]"] = q["[object Number]"] = q["[object Object]"] = q["[object RegExp]"] = q["[object Set]"] = q["[object String]"] = q["[object WeakMap]"] = !1;
|
|
1310
1310
|
var cn = typeof exports == "object" && exports && !exports.nodeType && exports, ee = cn && typeof module == "object" && module && !module.nodeType && module, Te = ee && ee.exports === cn && Jo.process, Kt = function() {
|
|
1311
1311
|
try {
|
|
1312
1312
|
var t = ee && ee.require && ee.require("util").types;
|
|
@@ -1314,7 +1314,7 @@ var cn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
1314
1314
|
} catch {
|
|
1315
1315
|
}
|
|
1316
1316
|
}(), So = Kt && Kt.isTypedArray, ki = So ? Ue(So) : function(t) {
|
|
1317
|
-
return re(t) && nn(t.length) && !!
|
|
1317
|
+
return re(t) && nn(t.length) && !!q[ie(t)];
|
|
1318
1318
|
}, Mi = Object.prototype.hasOwnProperty;
|
|
1319
1319
|
function $i(t, e) {
|
|
1320
1320
|
var o = Ge(t), n = !o && Fi(t), r = !o && !n && sn(t), i = !o && !n && !r && ki(t), a = o || n || r || i, l = a ? function(p, s) {
|
|
@@ -1533,7 +1533,7 @@ var Io = Kt && Kt.isMap, or = Io ? Ue(Io) : function(t) {
|
|
|
1533
1533
|
return re(t) && _t(t) == "[object Map]";
|
|
1534
1534
|
}, Do = Kt && Kt.isSet, nr = Do ? Ue(Do) : function(t) {
|
|
1535
1535
|
return re(t) && _t(t) == "[object Set]";
|
|
1536
|
-
}, dn = "[object Arguments]", pn = "[object Function]", fn = "[object Object]",
|
|
1536
|
+
}, dn = "[object Arguments]", pn = "[object Function]", fn = "[object Object]", Y = {};
|
|
1537
1537
|
function fe(t, e, o, n, r, i) {
|
|
1538
1538
|
var a;
|
|
1539
1539
|
if (a !== void 0)
|
|
@@ -1555,7 +1555,7 @@ function fe(t, e, o, n, r, i) {
|
|
|
1555
1555
|
return typeof u.constructor != "function" || rn(u) ? {} : Ti(Bi(u));
|
|
1556
1556
|
}(t);
|
|
1557
1557
|
else {
|
|
1558
|
-
if (!
|
|
1558
|
+
if (!Y[d])
|
|
1559
1559
|
return r ? t : {};
|
|
1560
1560
|
a = er(t, d);
|
|
1561
1561
|
}
|
|
@@ -1577,7 +1577,7 @@ function fe(t, e, o, n, r, i) {
|
|
|
1577
1577
|
s && (u = t[h = u]), ji(a, h, fe(u, e, o, h, t, i));
|
|
1578
1578
|
}), a;
|
|
1579
1579
|
}
|
|
1580
|
-
|
|
1580
|
+
Y[dn] = Y["[object Array]"] = Y["[object ArrayBuffer]"] = Y["[object DataView]"] = Y["[object Boolean]"] = Y["[object Date]"] = Y["[object Float32Array]"] = Y["[object Float64Array]"] = Y["[object Int8Array]"] = Y["[object Int16Array]"] = Y["[object Int32Array]"] = Y["[object Map]"] = Y["[object Number]"] = Y[fn] = Y["[object RegExp]"] = Y["[object Set]"] = Y["[object String]"] = Y["[object Symbol]"] = Y["[object Uint8Array]"] = Y["[object Uint8ClampedArray]"] = Y["[object Uint16Array]"] = Y["[object Uint32Array]"] = !0, Y["[object Error]"] = Y[pn] = Y["[object WeakMap]"] = !1;
|
|
1581
1581
|
function ye(t) {
|
|
1582
1582
|
return fe(t, 5);
|
|
1583
1583
|
}
|
|
@@ -1611,7 +1611,7 @@ const hn = (t, e) => {
|
|
|
1611
1611
|
(/\(.*\)/g.test(p) || /[+/\\*]/g.test(p)) && (p = hn(p, o)), t = t.replace(c, p);
|
|
1612
1612
|
}
|
|
1613
1613
|
return n && (t = t == null ? void 0 : t.replace(/\n|\\n/g, "<br/>")), r && (t = t == null ? void 0 : t.replace(/\s{2,}?/g, " ")), t = t.replace(/Qfw\((.*?)\)/, (d, c) => e != null && e.Qfw ? e == null ? void 0 : e.Qfw(c) : c);
|
|
1614
|
-
},
|
|
1614
|
+
}, et = (t, e) => {
|
|
1615
1615
|
if (typeof t == "string" && typeof e == "string")
|
|
1616
1616
|
return t.toLocaleLowerCase().includes(e.toLocaleLowerCase());
|
|
1617
1617
|
if (typeof t == "string" && Array.isArray(e)) {
|
|
@@ -1655,8 +1655,8 @@ const ar = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
|
|
|
1655
1655
|
const S = g == null ? void 0 : g.find((F) => F.id === s);
|
|
1656
1656
|
if (!S)
|
|
1657
1657
|
return [];
|
|
1658
|
-
const { interval: b, intervalUnit: A, startTime: _, endTime:
|
|
1659
|
-
if (P && (m = pt().subtract(b, A), f = pt()), _ && (m = pt(_)),
|
|
1658
|
+
const { interval: b, intervalUnit: A, startTime: _, endTime: j, operate: D, useCurrentTime: P } = S || {};
|
|
1659
|
+
if (P && (m = pt().subtract(b, A), f = pt()), _ && (m = pt(_)), j && (f = pt(j)), D) {
|
|
1660
1660
|
const { type: F, value: C, mode: E } = D;
|
|
1661
1661
|
switch (F) {
|
|
1662
1662
|
case "add":
|
|
@@ -1668,7 +1668,7 @@ const ar = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
|
|
|
1668
1668
|
}
|
|
1669
1669
|
} else {
|
|
1670
1670
|
const S = xe(s) || {};
|
|
1671
|
-
|
|
1671
|
+
Q(S.startTime) && (m = pt(Q(S.startTime))), Q(S.endTime) && (f = pt(Q(S.endTime)));
|
|
1672
1672
|
}
|
|
1673
1673
|
return m && f && (u = `${c === "before" ? "-" : ""}${f.diff(m, p.toLowerCase()) + 1}`), u ? [u] : [];
|
|
1674
1674
|
})({ around: a[1], unit: n[0], id: i })), delete t.radioValue;
|
|
@@ -1705,23 +1705,23 @@ const ar = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
|
|
|
1705
1705
|
}), o;
|
|
1706
1706
|
}, Le = (t = {}, e) => {
|
|
1707
1707
|
if (t != null && t.sortCpnts && e) {
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1708
|
+
const j = xn(t);
|
|
1709
|
+
j && (e.sort = j);
|
|
1710
1710
|
}
|
|
1711
1711
|
const { label: o, name: n, location: r, show: i, indexCode: a, indexCodeNum: l, calcType: d = "COLUMN", builtInFormula: c, builtInValueSource: p, builtInCalcWay: s, formula: u, conditions: h, aggregate: g, distinct: m, dimByCount: f, dataTo: S, sort: b } = t;
|
|
1712
1712
|
let A;
|
|
1713
1713
|
if (h && (A = kt(h)), d === "COMPONENT") {
|
|
1714
|
-
const
|
|
1715
|
-
return ve(
|
|
1714
|
+
const j = {};
|
|
1715
|
+
return ve(j, p), { label: o.trim(), columnName: n, show: i, calcType: d, componentAlias: s, componentValue: j.fieldValue || null };
|
|
1716
1716
|
}
|
|
1717
1717
|
const _ = { label: o.trim(), columnName: n, location: r, show: i, calcType: S === "1" ? "VIEW" : d, hrpIndexCode: a, hrpIndexCodeNum: l, aggregate: g, builtInFormula: c, builtInValueSource: p, formula: u, conditions: A };
|
|
1718
1718
|
if (b && (_.sort = { columnName: n, label: _.label, order: b, type: "NORMAL" }), c !== "DATE_OFFSET")
|
|
1719
1719
|
return n === "the_count" && (_.calcType = "AGGREGATE", _.distinct = !!m, _.typeGuid = f), Object.assign(Object.assign({}, _), { builtInCalcWay: s });
|
|
1720
1720
|
{
|
|
1721
|
-
const
|
|
1722
|
-
if ((
|
|
1723
|
-
let D =
|
|
1724
|
-
return
|
|
1721
|
+
const j = s.split("-");
|
|
1722
|
+
if ((j == null ? void 0 : j.length) === 3) {
|
|
1723
|
+
let D = j[0];
|
|
1724
|
+
return j[2] === "before" && j[0] !== "0" && (D = `-${j[0]}`), Object.assign(Object.assign({}, _), { calcWays: [D], dateCalcTypes: [j[1]] });
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
1727
1727
|
}, ae = (t, e) => {
|
|
@@ -1754,8 +1754,8 @@ const ar = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
|
|
|
1754
1754
|
const f = u[m];
|
|
1755
1755
|
if ((f == null ? void 0 : f.conditionKey) === "parentCode")
|
|
1756
1756
|
continue;
|
|
1757
|
-
const { id: S, keyName: b, prop: A, format: _, modelKey:
|
|
1758
|
-
ve(C, S, { prop: A, dateFormat: _, modelKey:
|
|
1757
|
+
const { id: S, keyName: b, prop: A, format: _, modelKey: j, dataType: D = "component", customValue: P } = f, F = ae(S, b), C = gn(f);
|
|
1758
|
+
ve(C, S, { prop: A, dateFormat: _, modelKey: j, keyName: F }), D === "" && (C.fieldValue = P || ""), g.push(C);
|
|
1759
1759
|
}
|
|
1760
1760
|
for (let m = g.length - 1; m >= 0; m--) {
|
|
1761
1761
|
const f = g[m];
|
|
@@ -1789,21 +1789,21 @@ function ve(t, e, o) {
|
|
|
1789
1789
|
if (e === "PARENT" && p && n) {
|
|
1790
1790
|
const b = window.config.record;
|
|
1791
1791
|
let A = n, _ = r;
|
|
1792
|
-
const
|
|
1793
|
-
if (
|
|
1794
|
-
const D =
|
|
1795
|
-
A = n.replace(
|
|
1792
|
+
const j = n.match(/\{(.+?)\}/g);
|
|
1793
|
+
if (j != null && j.length) {
|
|
1794
|
+
const D = j[0].slice(1, -1).trim();
|
|
1795
|
+
A = n.replace(j[0], ""), _ = D, t.dateFormat = _;
|
|
1796
1796
|
}
|
|
1797
1797
|
if (b && b[p]) {
|
|
1798
|
-
const D =
|
|
1798
|
+
const D = Q(b[p][A]);
|
|
1799
1799
|
pt.isDayjs(D) ? t.fieldValue = D.format(_ || "YYYY-MM-DD") : t.fieldValue = D;
|
|
1800
1800
|
}
|
|
1801
1801
|
return;
|
|
1802
1802
|
}
|
|
1803
1803
|
const s = xe(e) || {}, { value: u, format: h = "YYYY-MM-DD", type: g = "", useCurrentTime: m, RECORD: f } = s || {}, S = r || h;
|
|
1804
|
-
if (
|
|
1804
|
+
if (et(g, "date")) {
|
|
1805
1805
|
let b;
|
|
1806
|
-
if (b = m ? u ?
|
|
1806
|
+
if (b = m ? u ? Q(u) : pt() : Q(u), typeof b == "string" && (b = pt(b)), l && d && c)
|
|
1807
1807
|
switch (c) {
|
|
1808
1808
|
case "add":
|
|
1809
1809
|
b = b.add(l, d);
|
|
@@ -1812,7 +1812,7 @@ function ve(t, e, o) {
|
|
|
1812
1812
|
b = b.subtract(l, d);
|
|
1813
1813
|
}
|
|
1814
1814
|
t.fieldValue = b == null ? void 0 : b.format(S), t.dateFormat = S;
|
|
1815
|
-
} else if (
|
|
1815
|
+
} else if (et(g, "rangepicker")) {
|
|
1816
1816
|
let b = n;
|
|
1817
1817
|
if (!n) {
|
|
1818
1818
|
const _ = a && a.split("-");
|
|
@@ -1821,10 +1821,10 @@ function ve(t, e, o) {
|
|
|
1821
1821
|
if (!b)
|
|
1822
1822
|
return;
|
|
1823
1823
|
let A = null;
|
|
1824
|
-
if (
|
|
1824
|
+
if (Q(s[b]) && (A = pt(Q(s[b]))), l && d && c) {
|
|
1825
1825
|
if (l === "rangeValue") {
|
|
1826
1826
|
if (s.startTime && s.endTime) {
|
|
1827
|
-
const _ =
|
|
1827
|
+
const _ = Q(s.endTime).diff(Q(s.startTime), d) + 1;
|
|
1828
1828
|
switch (c) {
|
|
1829
1829
|
case "add":
|
|
1830
1830
|
A = A && A.add(_, d);
|
|
@@ -1843,8 +1843,8 @@ function ve(t, e, o) {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
1845
|
if (A && (t.fieldValue = A == null ? void 0 : A.format(S)), b === "rangeValue" && s.startTime && s.endTime) {
|
|
1846
|
-
const _ = function(
|
|
1847
|
-
const D =
|
|
1846
|
+
const _ = function(j) {
|
|
1847
|
+
const D = j.split("-");
|
|
1848
1848
|
let P = "";
|
|
1849
1849
|
if (D != null && D.length)
|
|
1850
1850
|
switch (D[D.length - 1]) {
|
|
@@ -1859,11 +1859,11 @@ function ve(t, e, o) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
return P;
|
|
1861
1861
|
}(S);
|
|
1862
|
-
_ && (t.fieldValue =
|
|
1862
|
+
_ && (t.fieldValue = Q(s.endTime).diff(Q(s.startTime), _) + 1);
|
|
1863
1863
|
}
|
|
1864
1864
|
t.dateFormat = S;
|
|
1865
1865
|
} else
|
|
1866
|
-
|
|
1866
|
+
et(g, rr) ? t.fieldValue = i && f ? f[i] : !i && f ? f.value : Q(u) : et(g, "select") && Array.isArray(Q(u)) ? t.fieldValue = Q(u).join(",") : t.fieldValue = Q(u);
|
|
1867
1867
|
}
|
|
1868
1868
|
const pe = (t) => {
|
|
1869
1869
|
var e;
|
|
@@ -1887,7 +1887,7 @@ const pe = (t) => {
|
|
|
1887
1887
|
let o, n = "";
|
|
1888
1888
|
for (const r of e) {
|
|
1889
1889
|
const i = xe(r) || {}, { type: a, RECORD: l } = i;
|
|
1890
|
-
if (
|
|
1890
|
+
if (et(a, "image") && et(l == null ? void 0 : l.value, ["asc", "desc"])) {
|
|
1891
1891
|
n = l.value.toUpperCase();
|
|
1892
1892
|
break;
|
|
1893
1893
|
}
|
|
@@ -1897,47 +1897,47 @@ const pe = (t) => {
|
|
|
1897
1897
|
var o, n, r, i, a, l, d, c;
|
|
1898
1898
|
const { graphicConfig: p, type: s, globalModel: u, isGroupTable: h = !1, allComponentList: g } = t;
|
|
1899
1899
|
u && (yn = u), g != null && g.length && (mn = g);
|
|
1900
|
-
const m =
|
|
1901
|
-
let f, { source: S, dataViewId: b, plugin: A = "1", layer: _, chartType:
|
|
1902
|
-
if ((p == null ? void 0 : p.pageMode) === "design" ? (
|
|
1900
|
+
const m = et(s, "pivottable");
|
|
1901
|
+
let f, { source: S, dataViewId: b, plugin: A = "1", layer: _, chartType: j, classificationList: D = [], rowHeaderList: P = [], dimensionList: F = [], seriesList: C = [], leftAxisList: E = [], rightAxisList: tt = [], queryColumnList: T = [], indexLibColumns: v = [], indicators: y = [], controlList: w = [], formFields: x = {}, variableList: O = [], variableConditions: N = [], dataSourceId: k = "", idxLibMode: R, preview: W = !1, edvDataSetId: K, compositeIndicator: ot } = p || {}, Z = [];
|
|
1902
|
+
if ((p == null ? void 0 : p.pageMode) === "design" ? (Z = ((o = p.sqlConditions) !== null && o !== void 0 ? o : []).map((L) => {
|
|
1903
1903
|
const M = {};
|
|
1904
1904
|
if (st(L, "globalCondition") || L.join || (M.globalCondition = !0), !L.join) {
|
|
1905
|
-
const
|
|
1906
|
-
M.rule =
|
|
1905
|
+
const I = L.rule || "EQUAL";
|
|
1906
|
+
M.rule = I === "NONE" ? "EQUAL" : I;
|
|
1907
1907
|
}
|
|
1908
1908
|
return Object.assign(Object.assign({}, L), M);
|
|
1909
|
-
}), N != null && N.length && (
|
|
1909
|
+
}), N != null && N.length && (Z = Z.concat(N))) : (Z = lr(p), O != null && O.length && (Z = Z.concat(function(L) {
|
|
1910
1910
|
const M = [];
|
|
1911
1911
|
if (L != null && L.length) {
|
|
1912
|
-
for (const
|
|
1913
|
-
if (
|
|
1914
|
-
const
|
|
1915
|
-
ve(z,
|
|
1912
|
+
for (const I of L)
|
|
1913
|
+
if (I.variableName) {
|
|
1914
|
+
const G = ae(I.id, I.keyName), z = { variateName: I.variableName, globalCondition: !1, valueType: I.variableType, alias: G || "" };
|
|
1915
|
+
ve(z, I.id, { dateFormat: I.format, prop: I.dateTypeValue, keyName: G, operateType: I.operateType, operateMode: I.operateMode, operateValue: I.operateValue }), I.dataType === "" && (z.fieldValue = I.variableValue), I.format && (z.dateFormat = I.format), I.label && (z.label = I.label), M.push(z);
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
return M;
|
|
1919
|
-
}(O)))),
|
|
1920
|
-
const L =
|
|
1921
|
-
(L == null ? void 0 : L.length) > 1 && (
|
|
1919
|
+
}(O)))), Z == null ? void 0 : Z.length) {
|
|
1920
|
+
const L = Z.filter((I) => I.globalCondition), M = Z.filter((I) => !I.globalCondition);
|
|
1921
|
+
(L == null ? void 0 : L.length) > 1 && (Z = [{ join: "&&", conditions: L }, ...M]);
|
|
1922
1922
|
}
|
|
1923
|
-
|
|
1923
|
+
Z != null && Z.length && (Z = kt(Z, "1")), _ == null && (_ = et(s, ["table", "card"]) || et(s, ["list", "circulate"]) && (D == null ? void 0 : D.length) > 1 ? "1" : et(s, ["select", "checkbox", "radio", "treeSelect"]) ? "3" : et(s, ["indexPanel"]) ? "4" : "2"), et(s, ["indexPanel"]) && (A = "3");
|
|
1924
1924
|
const bt = [];
|
|
1925
1925
|
let xt, ft = "";
|
|
1926
1926
|
if (Array.isArray(D) && D.length > 0 && (!["ecanList", "ecanCirculate"].includes(s) || (D == null ? void 0 : D.length) === 1)) {
|
|
1927
1927
|
const L = D.length;
|
|
1928
1928
|
for (let M = 0; M < L; M++) {
|
|
1929
|
-
const
|
|
1929
|
+
const I = D[M] || {}, { label: G = "", name: z = "", show: rt = !1, sort: dt, customGroup: wt, conditions: H, dateFormat: U, typeGuid: J = "", truncations: X = [] } = I;
|
|
1930
1930
|
if (rt || L === 1) {
|
|
1931
|
-
ft =
|
|
1932
|
-
const
|
|
1933
|
-
if (Array.isArray(
|
|
1934
|
-
const it =
|
|
1931
|
+
ft = J, f = { label: G.trim(), columnName: z, show: rt, sort: xn(I) || pe(dt) || dt, customGroup: wt, conditions: kt(H), typeGuid: J }, U && (f.dateFormat = U), z !== "the_date" || f.dateFormat || (f.dateFormat = "YYYY-MM-DD");
|
|
1932
|
+
const B = {};
|
|
1933
|
+
if (Array.isArray(X) && X.length > 0) {
|
|
1934
|
+
const it = X.length;
|
|
1935
1935
|
for (let ht = 0; ht < it; ht++) {
|
|
1936
|
-
const yt =
|
|
1937
|
-
St && Ct && (
|
|
1936
|
+
const yt = X[ht] || {}, { rule: St = "", num: Ct = 0, name: It = "" } = yt;
|
|
1937
|
+
St && Ct && (B.num = Ct, B.rule = St, It && (B.otherGroupName = It));
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
if (!((n = Object.keys(
|
|
1940
|
+
if (!((n = Object.keys(B)) === null || n === void 0) && n.length && (f.truncation = B), !et(s, ["scatter", "valueline"]))
|
|
1941
1941
|
break;
|
|
1942
1942
|
bt.push(f);
|
|
1943
1943
|
}
|
|
@@ -1946,9 +1946,9 @@ const pe = (t) => {
|
|
|
1946
1946
|
if (Array.isArray(C) && C.length > 0) {
|
|
1947
1947
|
const L = C.length;
|
|
1948
1948
|
for (let M = 0; M < L; M++) {
|
|
1949
|
-
const
|
|
1949
|
+
const I = C[M] || {}, { label: G = "", name: z = "", show: rt = !1, sort: dt, customGroup: wt, conditions: H, typeGuid: U, dateFormat: J = "" } = I;
|
|
1950
1950
|
if (rt || L === 1) {
|
|
1951
|
-
xt = { label:
|
|
1951
|
+
xt = { label: G.trim(), columnName: z, show: rt, sort: pe(dt), customGroup: wt, conditions: kt(H), typeGuid: U }, J ? xt.dateFormat = J : z === "the_date" && (xt.dateFormat = "YYYY-MM-DD");
|
|
1952
1952
|
break;
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
@@ -1956,7 +1956,7 @@ const pe = (t) => {
|
|
|
1956
1956
|
const V = [];
|
|
1957
1957
|
E == null || E.forEach((L) => {
|
|
1958
1958
|
L.location = "LEFT", V.push(Le(L, f));
|
|
1959
|
-
}),
|
|
1959
|
+
}), tt == null || tt.forEach((L) => {
|
|
1960
1960
|
L.location = "RIGHT", V.push(Le(L, f));
|
|
1961
1961
|
});
|
|
1962
1962
|
let ut = y;
|
|
@@ -1965,15 +1965,15 @@ const pe = (t) => {
|
|
|
1965
1965
|
});
|
|
1966
1966
|
const lt = [];
|
|
1967
1967
|
["ecanList", "ecanCirculate"].includes(s) && (D == null ? void 0 : D.length) > 1 && (T = D), e != null && e.pivotTableCal && (T = ((i = e.pivotTableCal) === null || i === void 0 ? void 0 : i.dimensions) || []), T == null || T.forEach((L) => {
|
|
1968
|
-
const { label: M, name:
|
|
1969
|
-
let
|
|
1968
|
+
const { label: M, name: I, location: G, show: z, indexCode: rt, sort: dt, typeGuid: wt, indexCodeNum: H, dateFormat: U, conditions: J } = L;
|
|
1969
|
+
let X = pe(dt);
|
|
1970
1970
|
if (e.sort) {
|
|
1971
1971
|
const { field: it, order: ht } = e.sort;
|
|
1972
1972
|
let yt = V.find((St) => St.label === it);
|
|
1973
|
-
yt || M !== it || (yt = L), yt && (
|
|
1973
|
+
yt || M !== it || (yt = L), yt && (X = { columnName: yt.columnName, label: e.sort.field, order: ht.toUpperCase(), type: "NORMAL" });
|
|
1974
1974
|
}
|
|
1975
|
-
const
|
|
1976
|
-
|
|
1975
|
+
const B = { label: M, columnName: I, location: G, show: z, sort: X, calcType: "COLUMN", hrpIndexCode: rt, hrpIndexCodeNum: H, conditions: kt(J), typeGuid: wt };
|
|
1976
|
+
U && (B.dateFormat = U), I !== "the_date" || B.dateFormat || (B.dateFormat = "YYYY-MM-DD"), lt.push(B);
|
|
1977
1977
|
});
|
|
1978
1978
|
const vt = [];
|
|
1979
1979
|
["ecanTable"].includes(s) && p.isIndexSet && v.forEach((L) => {
|
|
@@ -1984,20 +1984,20 @@ const pe = (t) => {
|
|
|
1984
1984
|
if (Array.isArray(P) && P.length > 0 ? zt = P : Array.isArray(F) && F.length > 0 && (zt = F), zt == null ? void 0 : zt.length) {
|
|
1985
1985
|
const L = zt.length;
|
|
1986
1986
|
for (let M = 0; M < L; M++) {
|
|
1987
|
-
const
|
|
1988
|
-
let
|
|
1987
|
+
const I = zt[M] || {}, { label: G = "", name: z = "", show: rt = !1, sort: dt, customGroup: wt, conditions: H, truncations: U, typeGuid: J = "", dateFormat: X } = I;
|
|
1988
|
+
let B = pe(dt);
|
|
1989
1989
|
if (e.sort) {
|
|
1990
1990
|
const { field: yt, order: St } = e.sort;
|
|
1991
1991
|
let Ct = V.find((It) => It.label === yt);
|
|
1992
|
-
Ct ||
|
|
1992
|
+
Ct || I.label !== yt || (Ct = I), Ct && (B = { columnName: Ct.columnName, label: e.sort.field, order: St.toUpperCase(), type: "NORMAL" });
|
|
1993
1993
|
}
|
|
1994
|
-
const it = { label:
|
|
1995
|
-
|
|
1994
|
+
const it = { label: G.trim(), columnName: z, show: rt, sort: B, customGroup: wt, conditions: kt(H), typeGuid: J };
|
|
1995
|
+
X && (it.dateFormat = X), z !== "the_date" || it.dateFormat || (it.dateFormat = "YYYY-MM-DD");
|
|
1996
1996
|
const ht = {};
|
|
1997
|
-
if (Array.isArray(
|
|
1998
|
-
const yt =
|
|
1997
|
+
if (Array.isArray(U) && U.length > 0) {
|
|
1998
|
+
const yt = U.length;
|
|
1999
1999
|
for (let St = 0; St < yt; St++) {
|
|
2000
|
-
const Ct =
|
|
2000
|
+
const Ct = U[St] || {}, { rule: It = "", num: We = 0, name: He = "" } = Ct;
|
|
2001
2001
|
It && We && (ht.num = We, ht.rule = It, He && (ht.otherGroupName = He));
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
@@ -2008,81 +2008,83 @@ const pe = (t) => {
|
|
|
2008
2008
|
const le = [];
|
|
2009
2009
|
if (e != null && e.pivotTableCal) {
|
|
2010
2010
|
let L = [];
|
|
2011
|
-
const { calc: M = [], filter:
|
|
2012
|
-
if (V.push(...M),
|
|
2013
|
-
const
|
|
2014
|
-
const
|
|
2015
|
-
for (const
|
|
2016
|
-
|
|
2017
|
-
return
|
|
2011
|
+
const { calc: M = [], filter: I = [], truncations: G = [], sorts: z = [], aggregateMethod: rt = [], rowDimensionKeys: dt = [], colDimensionKeys: wt = [] } = e.pivotTableCal;
|
|
2012
|
+
if (V.push(...M), I == null ? void 0 : I.length) {
|
|
2013
|
+
const H = function U(J) {
|
|
2014
|
+
const X = [];
|
|
2015
|
+
for (const B of J)
|
|
2016
|
+
B.conditions ? X.push(...U(B.conditions)) : B.conditionKey === "the_date" && X.push(B);
|
|
2017
|
+
return X;
|
|
2018
2018
|
}(w);
|
|
2019
|
-
for (const
|
|
2020
|
-
const { type:
|
|
2021
|
-
|
|
2022
|
-
const
|
|
2023
|
-
if (
|
|
2024
|
-
if (
|
|
2025
|
-
|
|
2026
|
-
else if (
|
|
2019
|
+
for (const U of I) {
|
|
2020
|
+
const { type: J } = U, X = Ze(U, ["type"]);
|
|
2021
|
+
J === "indicators" ? L = V : J === "dimension" && (L = lt);
|
|
2022
|
+
const B = L.find((it) => it.columnName === U.fieldName && it.label === U.label);
|
|
2023
|
+
if (B) {
|
|
2024
|
+
if (J === "indicators")
|
|
2025
|
+
B.filter = { rule: X.rule, fieldValue: X.fieldValue };
|
|
2026
|
+
else if (J === "dimension") {
|
|
2027
2027
|
let it = !0;
|
|
2028
|
-
|
|
2028
|
+
X.fieldName === "the_date" && (H == null ? void 0 : H.length) === 2 && (it = !1, le.push(X)), it && (B.conditions || (B.conditions = []), B.conditions.push(X));
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
for (const
|
|
2035
|
-
const
|
|
2036
|
-
|
|
2033
|
+
if (G != null && G.length)
|
|
2034
|
+
for (const H of G) {
|
|
2035
|
+
const U = lt.find((J) => J.label === H.key);
|
|
2036
|
+
U && (U.truncation = { num: H.num, rule: H.rule });
|
|
2037
2037
|
}
|
|
2038
2038
|
if (z != null && z.length)
|
|
2039
|
-
for (const
|
|
2040
|
-
const { fieldType:
|
|
2041
|
-
|
|
2042
|
-
const
|
|
2043
|
-
|
|
2039
|
+
for (const H of z) {
|
|
2040
|
+
const { fieldType: U, columnData: J } = H, X = Ze(H, ["fieldType", "columnData"]);
|
|
2041
|
+
U === "indicators" ? (L = V, Be = J) : U === "dimension" && (L = lt);
|
|
2042
|
+
const B = L.find((it) => it.label === X.label);
|
|
2043
|
+
B && (B.sort = Object.assign(Object.assign({}, X), { columnName: B.columnName }));
|
|
2044
2044
|
}
|
|
2045
2045
|
if (!((l = Object.keys(rt)) === null || l === void 0) && l.length)
|
|
2046
|
-
for (const
|
|
2047
|
-
const
|
|
2048
|
-
|
|
2046
|
+
for (const H in rt) {
|
|
2047
|
+
const U = lt.find((J) => J.label === H);
|
|
2048
|
+
U && (!((d = rt[H]) === null || d === void 0) && d.length) && (U.aggregateMethod = rt[H]);
|
|
2049
2049
|
}
|
|
2050
2050
|
qt = [], Se = [];
|
|
2051
|
-
for (const
|
|
2052
|
-
dt.includes(
|
|
2051
|
+
for (const H of lt)
|
|
2052
|
+
dt.includes(H.columnName) ? qt.push(H) : wt.includes(H.columnName) && Se.push(H);
|
|
2053
2053
|
}
|
|
2054
|
-
if (
|
|
2054
|
+
if (et(s, ["text", "proportion", "counter", "gauge"]) ? j = "zb" : et(s, ["valueline"]) ? j = "valueline" : et(s, ["indexPanel"]) ? j = "indexPanel" : et(s, ["boxplot"]) && (j = "boxplot"), h || s === "card") {
|
|
2055
2055
|
if (qt.length === 0 || V.length === 0)
|
|
2056
2056
|
return;
|
|
2057
|
-
|
|
2057
|
+
j = "grouptable";
|
|
2058
2058
|
} else if (_ === "1" && !lt.length && !vt.length || ["2", "4"].includes(_) && V.length === 0 || !(_ !== "3" || (ft || S === "EDV_DATA_SET") && x.labelField && x.valueField) || _ === "3" && s === "ecanDataSelect" && V.length === 0)
|
|
2059
2059
|
return;
|
|
2060
2060
|
let Ae;
|
|
2061
|
-
if (F != null && F.length && (_ = "1",
|
|
2061
|
+
if (F != null && F.length && (_ = "1", j = "grouptable"), m || et(s, ["scatter", "valueline"]) || !(!((c = Object.keys(x)) === null || c === void 0) && c.length)) {
|
|
2062
2062
|
let L = {};
|
|
2063
|
-
L =
|
|
2064
|
-
const M =
|
|
2065
|
-
const { fieldValue:
|
|
2066
|
-
return
|
|
2063
|
+
L = et(s, ["scatter", "valueline"]) ? { classifications: bt } : { classification: f }, vt != null && vt.length && (L.indexLibColumns = vt, L.isIndexSet = !0), et(s, "table") && p.isIndexSet && (L.compositeIndicator = ot);
|
|
2064
|
+
const M = Z.map((I) => {
|
|
2065
|
+
const { fieldValue: G } = I, z = {};
|
|
2066
|
+
return G && Array.isArray(G) && (z.fieldValue = JSON.stringify(G)), Object.assign(Object.assign({}, I), z);
|
|
2067
2067
|
});
|
|
2068
|
-
le != null && le.length && function
|
|
2069
|
-
for (const z of
|
|
2068
|
+
le != null && le.length && function I(G) {
|
|
2069
|
+
for (const z of G)
|
|
2070
2070
|
if (z.sqlConditions)
|
|
2071
|
-
|
|
2071
|
+
I(z.sqlConditions);
|
|
2072
2072
|
else if (z.fieldName === "the_date") {
|
|
2073
2073
|
const rt = le.find((dt) => dt.prop === z.prop);
|
|
2074
2074
|
rt && (z.fieldValue = rt.fieldValue);
|
|
2075
2075
|
}
|
|
2076
|
-
}(M), Ae = Object.assign({ url: "/diagram", source: S, dataViewId: b, plugin: m ? "5" : A, layer: _, chartType: m ? "pivot-table" :
|
|
2076
|
+
}(M), Ae = Object.assign({ url: "/diagram", source: S, dataViewId: b, plugin: m ? "5" : A, layer: _, chartType: m ? "pivot-table" : j, series: xt, indicatorList: V, queryColumns: h ? [] : lt, pageFlag: !0, edvDataSetId: K || "", sqlConditions: M, idxLibMode: R, dataSourceId: k, preview: W, rowHeaders: qt, keyName: t.keyName, columnData: Be, columnHeaders: Se }, L);
|
|
2077
2077
|
} else {
|
|
2078
|
-
const L = me(w).find((
|
|
2078
|
+
const L = me(w).find((G) => G.conditionKey === "parentCode"), M = {};
|
|
2079
2079
|
if (L) {
|
|
2080
|
-
const
|
|
2081
|
-
if (!(
|
|
2080
|
+
const G = xe(L.id) || {};
|
|
2081
|
+
if (!(G != null && G.itemCodes))
|
|
2082
2082
|
return;
|
|
2083
|
-
M.parentItemCodes =
|
|
2083
|
+
M.parentItemCodes = G.itemCodes;
|
|
2084
2084
|
}
|
|
2085
|
-
s === "ecanDataSelect" && (M.indicatorList = V.filter((
|
|
2085
|
+
s === "ecanDataSelect" && (M.indicatorList = V.filter((G) => G.show)), S === "EDV_DATA_SET" && (M.edvDataSetId = K), f != null && f.sort && (M.sort = f.sort);
|
|
2086
|
+
let I = "normalSelect";
|
|
2087
|
+
s === "ecanDataSelect" ? I = "normalSelectData" : s === "ecanTreeSelect" && (I = "treeSelect"), Ae = Object.assign({ url: "/diagram/formData", source: S, dataViewId: b, plugin: "4", layer: _, chartType: s === "ecanTreeSelect" ? "treeSelect" : "normalSelect", rangeIndexTypeGuid: ft, type: I, labelField: x.labelField, valueField: x.valueField, parentField: x.parentField, sqlConditions: Z, idxLibMode: "WITH_DATE_DIM_TABLE", dataSourceId: k, keyName: t.keyName }, M);
|
|
2086
2088
|
}
|
|
2087
2089
|
return Ae;
|
|
2088
2090
|
}, sr = (t = [], e, o = !1) => {
|
|
@@ -2168,19 +2170,19 @@ const dr = (t, e, o) => {
|
|
|
2168
2170
|
for (let f = 0; f < g; f++) {
|
|
2169
2171
|
const S = Object.assign(Object.assign({}, h[f]), { type: "bar", barWidth: t.barWidth, showBackground: t.showBarBackground }), { isStack: b, stackColumns: A } = t;
|
|
2170
2172
|
if (b && A.includes(h[f].name || !A) && (S.stack = "stack"), S.label = { show: t.labelShow, fontSize: t.labelFontSize, position: t.labelPosition, color: t.labelColor, width: t.labelWidth, overflow: t.labelOverflow, formatter: (_) => {
|
|
2171
|
-
let
|
|
2173
|
+
let j = "", D = t.labelFormatter;
|
|
2172
2174
|
D === "" && (D = "{c}");
|
|
2173
2175
|
const { seriesName: P, name: F, value: C, data: E } = _ || {};
|
|
2174
|
-
return
|
|
2176
|
+
return j += Wt(D, { textData: Object.assign({ name: F, value: C, a: P, b: F, c: C || 0 }, E) }, { useNewline: !0, useSpace: !0 }), j;
|
|
2175
2177
|
} }, S.itemStyle = {}, c && (S.itemStyle = { color: { x: t.isUseHorizontalAxis ? 1 : 0, y: 0, x2: 0, y2: t.isUseHorizontalAxis ? 0 : 1, colorStops: [{ offset: 0, color: t.colors[f] }, { offset: s, color: p[f] }, { offset: 1, color: p[f] }] } }), u) {
|
|
2176
2178
|
const _ = u.split(",");
|
|
2177
2179
|
if (_ != null && _.length) {
|
|
2178
|
-
const
|
|
2180
|
+
const j = [];
|
|
2179
2181
|
for (const D of _) {
|
|
2180
2182
|
const P = parseFloat(D);
|
|
2181
|
-
isNaN(P) ||
|
|
2183
|
+
isNaN(P) || j.push(P);
|
|
2182
2184
|
}
|
|
2183
|
-
S.itemStyle.barBorderRadius =
|
|
2185
|
+
S.itemStyle.barBorderRadius = j;
|
|
2184
2186
|
}
|
|
2185
2187
|
}
|
|
2186
2188
|
t.isShowMarkLine && (S.markLine = { data: [{ type: t.markLineType }] }), m.push(S);
|
|
@@ -2221,7 +2223,7 @@ const dr = (t, e, o) => {
|
|
|
2221
2223
|
return `${m}{text|${f}}`;
|
|
2222
2224
|
}
|
|
2223
2225
|
return p;
|
|
2224
|
-
})(t.legendFormatter, { name: c }) }, xAxis: { type: t.isUseHorizontalAxis ? "value" : "category", data: t.isUseHorizontalAxis ? null :
|
|
2226
|
+
})(t.legendFormatter, { name: c }) }, xAxis: { type: t.isUseHorizontalAxis ? "value" : "category", data: t.isUseHorizontalAxis ? null : Q(d), inverse: t.isUseHorizontalAxis ? t.xAxisInverse : t.axisInverse, minInterval: t.xAxisMinInterval, splitLine: { show: t.xAxisSplitLineShow, lineStyle: { color: t.xAxisSplitLineStyleColor, type: t.xAxisSplitLineType }, interval: t.xAxisSplitLineInterval }, splitArea: { show: t.xAxisSplitAreaShow }, axisLabel: { color: t.xAxisLabelColor, interval: t.xAxisLabelInterval || 0, rotate: t.xAxisLabelRotate, width: t.xAxisLabelWidth, overflow: t.xAxisLabelOverflow, fontSize: t.xAxisLabelFontSize, formatter: (c) => (typeof c != "string" || c[0] !== "0" || isNaN(+c) || (c = (+c).toString()), Ht(r, c)) }, axisLine: { show: t.xAxisLineShow, lineStyle: { color: t.xAxisLineStyleColor } }, axisTick: { show: t.xAxisTickShow }, name: t.xAxisName, nameTextStyle: { fontSize: t.xAxisLabelFontSize, color: t.xAxisLabelColor, align: "left" }, max: t.xAxisMaxValue || null }, yAxis: { type: t.isUseHorizontalAxis ? "category" : "value", data: t.isUseHorizontalAxis ? Q(i) : null, inverse: t.isUseHorizontalAxis ? t.axisInverse : t.yAxisInverse, minInterval: t.yAxisMinInterval, splitLine: { show: t.yAxisSplitLineShow, lineStyle: { color: t.yAxisSplitLineStyleColor, type: t.yAxisSplitLineType } }, splitArea: { show: t.yAxisSplitAreaShow }, axisLabel: { show: t.yAxisLabelShow, fontSize: t.yAxisLabelFontSize, color: t.yAxisLabelColor, rotate: t.yAxisLabelRotate, width: t.yAxisLabelWidth, overflow: t.yAxisLabelOverflow, formatter: (c) => Ht(n, c) }, axisLine: { show: t.yAxisLineAlwaysDisplay, lineStyle: { color: t.yAxisLineStyleColor } }, name: t.yAxisName, nameTextStyle: { fontSize: t.yAxisLabelFontSize, color: t.yAxisLabelColor, align: "right" }, max: t.yAxisMaxValue || null }, series: Q(l) };
|
|
2225
2227
|
}, pr = (t, e, o) => {
|
|
2226
2228
|
const n = t.yAxisLabelFormatter, r = t.xAxisLabelFormatter, { dimensions: i = [], dataset: a = [] } = e, l = $t(() => i.map((c) => {
|
|
2227
2229
|
let p = {};
|
|
@@ -2243,7 +2245,7 @@ const dr = (t, e, o) => {
|
|
|
2243
2245
|
h === 0 && (s += `${f}<br/>`), s += Wt(u, { textData: Object.assign({ marker: g, name: f, value: S, a: m, b: f, c: S }, b) }, { useNewline: !0, useSpace: !0 }), s += "<br/>";
|
|
2244
2246
|
}
|
|
2245
2247
|
return s;
|
|
2246
|
-
}, textStyle: { color: t.tooltipTextStyleColor, fontSize: o.value }, position: t.tooltipPosition || void 0, backgroundColor: t.tooltipBackgroundColor || "#fff" }, xAxis: { name: t.xAxisName, type: "category", data:
|
|
2248
|
+
}, textStyle: { color: t.tooltipTextStyleColor, fontSize: o.value }, position: t.tooltipPosition || void 0, backgroundColor: t.tooltipBackgroundColor || "#fff" }, xAxis: { name: t.xAxisName, type: "category", data: Q(l), minInterval: t.xAxisMinInterval, splitLine: { show: t.xAxisSplitLineShow, lineStyle: { color: t.xAxisSplitLineStyleColor } }, axisLabel: { color: t.xAxisLabelColor, interval: t.xAxisLabelInterval || 0, rotate: t.xAxisLabelRotate, width: t.xAxisLabelWidth, overflow: t.xAxisLabelOverflow, formatter: (c) => Ht(r, c) }, axisLine: { lineStyle: { color: t.xAxisLineStyleColor } }, axisTick: { show: t.xAxisTickShow } }, yAxis: { type: "value", name: t.yAxisName, minInterval: t.yAxisMinInterval, splitLine: { show: t.yAxisSplitLineShow, lineStyle: { color: t.yAxisSplitLineStyleColor } }, axisLabel: { fontSize: o, color: t.yAxisLabelColor, formatter: (c) => Ht(n, c) }, axisLine: { show: t.yAxisLineAlwaysDisplay, lineStyle: { color: t.yAxisLineStyleColor } } }, legend: { show: t.legendShow, orient: t.legendOrient, top: t.legendTop, left: t.legendLeft, textStyle: { fontSize: o } }, series: Q(d) };
|
|
2247
2249
|
}, fr = (t, e, o) => {
|
|
2248
2250
|
const { dataset: n = [] } = e;
|
|
2249
2251
|
let { data: r = [] } = n[0] || {};
|
|
@@ -2275,12 +2277,12 @@ const dr = (t, e, o) => {
|
|
|
2275
2277
|
if (t.barBorderRadius) {
|
|
2276
2278
|
const _ = t.barBorderRadius.split(",");
|
|
2277
2279
|
if (_ != null && _.length) {
|
|
2278
|
-
const
|
|
2280
|
+
const j = [];
|
|
2279
2281
|
for (const D of _) {
|
|
2280
2282
|
const P = parseFloat(D);
|
|
2281
|
-
isNaN(P) ||
|
|
2283
|
+
isNaN(P) || j.push(P);
|
|
2282
2284
|
}
|
|
2283
|
-
A.borderRadius =
|
|
2285
|
+
A.borderRadius = j;
|
|
2284
2286
|
}
|
|
2285
2287
|
}
|
|
2286
2288
|
f && (A.color = { x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: t.colors[s] }, { offset: b, color: S[s] }, { offset: 1, color: S[s] }] }), m = Object.assign(Object.assign({}, m), { barWidth: t.barWidth, itemStyle: A });
|
|
@@ -2302,7 +2304,7 @@ const dr = (t, e, o) => {
|
|
|
2302
2304
|
h === 0 && (p += `${b}<br/>`), p += Wt(m || s, { textData: Object.assign({ marker: f, name: b, value: A, seriesName: S, a: S, b, c: A }, _) }, { useNewline: !0, useSpace: !0 }), p += "<br/>";
|
|
2303
2305
|
}
|
|
2304
2306
|
return p;
|
|
2305
|
-
}, textStyle: { color: t.tooltipTextStyleColor || "#333", fontSize: o }, backgroundColor: t.tooltipBackgroundColor || "#fff", borderColor: t.tooltipBorderColor || "#eee" }, xAxis: { name: t.xAxisName, minInterval: t.xAxisMinInterval, type: "category", data:
|
|
2307
|
+
}, textStyle: { color: t.tooltipTextStyleColor || "#333", fontSize: o }, backgroundColor: t.tooltipBackgroundColor || "#fff", borderColor: t.tooltipBorderColor || "#eee" }, xAxis: { name: t.xAxisName, minInterval: t.xAxisMinInterval, type: "category", data: Q(i), splitLine: { show: t.xAxisSplitLineShow, lineStyle: { color: t.xAxisSplitLineStyleColor } }, axisLabel: { color: t.xAxisLabelColor, interval: t.xAxisLabelInterval || 0, rotate: t.xAxisLabelRotate, width: t.xAxisLabelWidth, overflow: t.xAxisLabelOverflow }, axisLine: { lineStyle: { color: t.xAxisLineStyleColor } }, axisTick: { show: t.xAxisTickShow } }, yAxis: Q(l), series: Q(a) };
|
|
2306
2308
|
}, yr = (t, e, o = 12) => Object.assign(Object.assign({}, ((n) => ({ title: { text: n.titleText, subtext: n.titleSubtext, textStyle: { fontSize: n.titleFontSize, fontWeight: n.fontWeight, color: n.titleColor }, left: n.textAlign || "center" }, grid: { top: n.gridTop, bottom: n.gridBottom, left: n.gridLeft, right: n.gridRight, containLabel: n.gridContainLabel }, color: n.colors }))(t)), ((n, r, i) => {
|
|
2307
2309
|
switch (n.type) {
|
|
2308
2310
|
case "bar":
|
|
@@ -2398,28 +2400,28 @@ const dr = (t, e, o) => {
|
|
|
2398
2400
|
// controlList = [],
|
|
2399
2401
|
dataSourceId: _,
|
|
2400
2402
|
// 所属数据源ID
|
|
2401
|
-
idxLibMode:
|
|
2403
|
+
idxLibMode: j,
|
|
2402
2404
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
2403
2405
|
preview: D = !1,
|
|
2404
2406
|
// 预览开关
|
|
2405
2407
|
sqlConditions: P = [],
|
|
2406
2408
|
rowHeaderList: F = []
|
|
2407
2409
|
} = i || {};
|
|
2408
|
-
u == null && (
|
|
2410
|
+
u == null && (et(a, ["table", "card"]) ? u = "1" : u = "2");
|
|
2409
2411
|
let C;
|
|
2410
2412
|
if (Array.isArray(g) && g.length > 0) {
|
|
2411
2413
|
const y = g.length;
|
|
2412
2414
|
for (let w = 0; w < y; w++) {
|
|
2413
|
-
const x = g[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup:
|
|
2415
|
+
const x = g[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup: W, conditions: K, typeGuid: ot } = x;
|
|
2414
2416
|
if (k || y === 1) {
|
|
2415
2417
|
C = {
|
|
2416
2418
|
label: O.trim(),
|
|
2417
2419
|
columnName: N,
|
|
2418
2420
|
show: k,
|
|
2419
2421
|
sort: R,
|
|
2420
|
-
customGroup:
|
|
2421
|
-
typeGuid:
|
|
2422
|
-
conditions: n(
|
|
2422
|
+
customGroup: W,
|
|
2423
|
+
typeGuid: ot,
|
|
2424
|
+
conditions: n(K)
|
|
2423
2425
|
};
|
|
2424
2426
|
break;
|
|
2425
2427
|
}
|
|
@@ -2429,34 +2431,34 @@ const dr = (t, e, o) => {
|
|
|
2429
2431
|
if (Array.isArray(m) && m.length > 0) {
|
|
2430
2432
|
const y = m.length;
|
|
2431
2433
|
for (let w = 0; w < y; w++) {
|
|
2432
|
-
const x = m[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup:
|
|
2434
|
+
const x = m[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup: W, conditions: K, typeGuid: ot } = x;
|
|
2433
2435
|
if (k || y === 1) {
|
|
2434
2436
|
E = {
|
|
2435
2437
|
label: O.trim(),
|
|
2436
2438
|
columnName: N,
|
|
2437
2439
|
show: k,
|
|
2438
2440
|
sort: R,
|
|
2439
|
-
customGroup:
|
|
2440
|
-
conditions: n(
|
|
2441
|
-
typeGuid:
|
|
2441
|
+
customGroup: W,
|
|
2442
|
+
conditions: n(K),
|
|
2443
|
+
typeGuid: ot
|
|
2442
2444
|
};
|
|
2443
2445
|
break;
|
|
2444
2446
|
}
|
|
2445
2447
|
}
|
|
2446
2448
|
}
|
|
2447
|
-
const
|
|
2449
|
+
const tt = [];
|
|
2448
2450
|
if (Array.isArray(F) && F.length > 0) {
|
|
2449
2451
|
const y = F.length;
|
|
2450
2452
|
for (let w = 0; w < y; w++) {
|
|
2451
|
-
const x = F[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup:
|
|
2452
|
-
|
|
2453
|
-
typeGuid:
|
|
2453
|
+
const x = F[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup: W, conditions: K, typeGuid: ot } = x;
|
|
2454
|
+
tt.push({
|
|
2455
|
+
typeGuid: ot,
|
|
2454
2456
|
label: O.trim(),
|
|
2455
2457
|
columnName: N,
|
|
2456
2458
|
show: k,
|
|
2457
2459
|
sort: R,
|
|
2458
|
-
customGroup:
|
|
2459
|
-
conditions: n(
|
|
2460
|
+
customGroup: W,
|
|
2461
|
+
conditions: n(K)
|
|
2460
2462
|
});
|
|
2461
2463
|
}
|
|
2462
2464
|
}
|
|
@@ -2472,7 +2474,7 @@ const dr = (t, e, o) => {
|
|
|
2472
2474
|
}), A == null || A.forEach((y) => {
|
|
2473
2475
|
y.location = "LEFT", v.push(r(y));
|
|
2474
2476
|
}), d || a === "card") {
|
|
2475
|
-
if (h = "grouptable", v.length === 0 ||
|
|
2477
|
+
if (h = "grouptable", v.length === 0 || tt.length === 0)
|
|
2476
2478
|
return;
|
|
2477
2479
|
} else {
|
|
2478
2480
|
if (u === "1" && T.length === 0)
|
|
@@ -2493,9 +2495,9 @@ const dr = (t, e, o) => {
|
|
|
2493
2495
|
queryColumns: T,
|
|
2494
2496
|
pageFlag: !0,
|
|
2495
2497
|
sqlConditions: P,
|
|
2496
|
-
rowHeaders:
|
|
2498
|
+
rowHeaders: tt,
|
|
2497
2499
|
dataSourceId: _,
|
|
2498
|
-
idxLibMode:
|
|
2500
|
+
idxLibMode: j,
|
|
2499
2501
|
preview: D
|
|
2500
2502
|
});
|
|
2501
2503
|
} catch (y) {
|
|
@@ -2527,13 +2529,13 @@ const dr = (t, e, o) => {
|
|
|
2527
2529
|
const a = se(zo) || "", l = se(Vo) || {}, d = se(Go) || {}, c = at(null), p = at(null), s = at(), u = at(!1), h = at(!1), g = mt(() => h.value ? Fn : 12), m = at({}), f = at(), S = mt(() => {
|
|
2528
2530
|
const C = $(o.value);
|
|
2529
2531
|
return (C == null ? void 0 : C.type) === "customGraph" ? f.value : yr(C, $(m), g.value);
|
|
2530
|
-
}), b = (C = [], E,
|
|
2531
|
-
const T =
|
|
2532
|
+
}), b = (C = [], E, tt = !1) => {
|
|
2533
|
+
const T = tt ? E : null;
|
|
2532
2534
|
m.value = sr(C, T);
|
|
2533
2535
|
}, A = (C = [], E) => {
|
|
2534
2536
|
m.value = cr(C, E);
|
|
2535
2537
|
}, _ = async () => {
|
|
2536
|
-
var C, E,
|
|
2538
|
+
var C, E, tt;
|
|
2537
2539
|
try {
|
|
2538
2540
|
const T = mr({
|
|
2539
2541
|
graphicConfig: $(n.value),
|
|
@@ -2543,7 +2545,7 @@ const dr = (t, e, o) => {
|
|
|
2543
2545
|
});
|
|
2544
2546
|
u.value = !0;
|
|
2545
2547
|
const v = await T(), { columns: y = [], rows: w = [] } = ((E = v == null ? void 0 : v.data) == null ? void 0 : E.data) ?? {};
|
|
2546
|
-
if (((
|
|
2548
|
+
if (((tt = $(o.value)) == null ? void 0 : tt.type) === "pie") {
|
|
2547
2549
|
let x = [];
|
|
2548
2550
|
if (y.length > 0) {
|
|
2549
2551
|
const O = y[0], N = y[1];
|
|
@@ -2568,7 +2570,7 @@ const dr = (t, e, o) => {
|
|
|
2568
2570
|
} finally {
|
|
2569
2571
|
u.value = !1;
|
|
2570
2572
|
}
|
|
2571
|
-
},
|
|
2573
|
+
}, j = {
|
|
2572
2574
|
title: {
|
|
2573
2575
|
text: "暂无数据",
|
|
2574
2576
|
x: "center",
|
|
@@ -2579,7 +2581,7 @@ const dr = (t, e, o) => {
|
|
|
2579
2581
|
}
|
|
2580
2582
|
}
|
|
2581
2583
|
}, D = () => {
|
|
2582
|
-
$(m).dataset.length === 0 ? s.value.setOption(
|
|
2584
|
+
$(m).dataset.length === 0 ? s.value.setOption(j, !0) : s.value.setOption(S.value, !0);
|
|
2583
2585
|
}, P = () => {
|
|
2584
2586
|
$(o.value).type !== "customGraph" && _();
|
|
2585
2587
|
}, F = () => {
|
|
@@ -2687,6 +2689,6 @@ export {
|
|
|
2687
2689
|
oi as r,
|
|
2688
2690
|
Ar as s,
|
|
2689
2691
|
mr as u,
|
|
2690
|
-
|
|
2692
|
+
et as y
|
|
2691
2693
|
};
|
|
2692
|
-
//# sourceMappingURL=index-
|
|
2694
|
+
//# sourceMappingURL=index-64a2f458.mjs.map
|