@ecan-bi/datav 1.4.4 → 1.4.6
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/index.es.js +565 -565
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.6 */
|
|
2
2
|
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, onBeforeUnmount, normalizeClass as normalizeClass$1, normalizeStyle as normalizeStyle$1, createElementVNode, createCommentVNode, Fragment, renderList, provide, useCssVars, toDisplayString, pushScopeId, popScopeId, createSlots, withModifiers, createTextVNode, Teleport, resolveDynamicComponent, mergeProps, normalizeProps, toHandlers, withDirectives, vShow, reactive, vModelText, getCurrentInstance, onDeactivated, isRef, onActivated, isVNode, Transition, onBeforeUpdate, Comment } from "vue";
|
|
3
3
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
4
4
|
import { addListener, removeListener } from "resize-detector";
|
|
@@ -1737,7 +1737,7 @@ function handleJumpLink(e, r) {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
f += y.join("&");
|
|
1739
1739
|
}
|
|
1740
|
-
u === "template" ? o(d) : (u === "blank" && (f += `${f.includes("?") ? "&" : "?"}drillFlag=1`), window.open(f, "_" + u));
|
|
1740
|
+
u === "template" ? (window.controller.abort(), window.controller = new AbortController(), o(d)) : (u === "blank" && (f += `${f.includes("?") ? "&" : "?"}drillFlag=1`), window.open(f, "_" + u));
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
function getPageUrlParams(e) {
|
|
@@ -1797,15 +1797,10 @@ const styleList = [
|
|
|
1797
1797
|
pageMode: "normal"
|
|
1798
1798
|
}), i = without(styleList, ...r);
|
|
1799
1799
|
return computed(() => {
|
|
1800
|
-
var
|
|
1801
|
-
const a = pick$1(e, i);
|
|
1802
|
-
|
|
1803
|
-
((
|
|
1804
|
-
else {
|
|
1805
|
-
const c = ["width", "height", "top", "left"];
|
|
1806
|
-
for (const f of c)
|
|
1807
|
-
hasOwn(e, f) && (l = e[f]) != null && l.suffix && (a[f] = (e[f].value || 0) + e[f].suffix);
|
|
1808
|
-
}
|
|
1800
|
+
var s, l;
|
|
1801
|
+
const a = pick$1(e, i), o = ["width", "height", "top", "left"];
|
|
1802
|
+
for (const c of o)
|
|
1803
|
+
hasOwn(a, c) && (["width", "height"].includes(c) && ((s = e[c]) == null ? void 0 : s.suffix) === "%" && unref(n) === "design" ? a[c] = "100%" : (l = e[c]) != null && l.suffix && (a[c] = (e[c].value || 0) + e[c].suffix));
|
|
1809
1804
|
return a;
|
|
1810
1805
|
});
|
|
1811
1806
|
}, useOnEvent = (e, r) => {
|
|
@@ -3209,18 +3204,18 @@ function requireSha512() {
|
|
|
3209
3204
|
]);
|
|
3210
3205
|
},
|
|
3211
3206
|
_doProcessBlock: function(m, g) {
|
|
3212
|
-
for (var w = this._hash.words, C = w[0], p = w[1], v = w[2], b = w[3], E = w[4], _ = w[5], k = w[6], P = w[7], D = C.high, M = C.low, F = p.high, O = p.low, L = v.high, q = v.low, $ = b.high, I = b.low, B = E.high, A = E.low, S = _.high, R = _.low, T = k.high, V = k.low, U = P.high, N = P.low, j = D, W = M, G = F, K = O, H = L, J = q, Z = $, X = I,
|
|
3213
|
-
var ye, be,
|
|
3207
|
+
for (var w = this._hash.words, C = w[0], p = w[1], v = w[2], b = w[3], E = w[4], _ = w[5], k = w[6], P = w[7], D = C.high, M = C.low, F = p.high, O = p.low, L = v.high, q = v.low, $ = b.high, I = b.low, B = E.high, A = E.low, S = _.high, R = _.low, T = k.high, V = k.low, U = P.high, N = P.low, j = D, W = M, G = F, K = O, H = L, J = q, Z = $, X = I, ee = B, Y = A, te = S, ne = R, ie = T, oe = V, le = U, he = N, de = 0; de < 80; de++) {
|
|
3208
|
+
var ye, be, Ee = d[de];
|
|
3214
3209
|
if (de < 16)
|
|
3215
|
-
be =
|
|
3210
|
+
be = Ee.high = m[g + de * 2] | 0, ye = Ee.low = m[g + de * 2 + 1] | 0;
|
|
3216
3211
|
else {
|
|
3217
|
-
var Te = d[de - 15],
|
|
3218
|
-
ye =
|
|
3212
|
+
var Te = d[de - 15], Se = Te.high, ke = Te.low, Ge = (Se >>> 1 | ke << 31) ^ (Se >>> 8 | ke << 24) ^ Se >>> 7, Ve = (ke >>> 1 | Se << 31) ^ (ke >>> 8 | Se << 24) ^ (ke >>> 7 | Se << 25), pe = d[de - 2], me = pe.high, ve = pe.low, Ae = (me >>> 19 | ve << 13) ^ (me << 3 | ve >>> 29) ^ me >>> 6, _e = (ve >>> 19 | me << 13) ^ (ve << 3 | me >>> 29) ^ (ve >>> 6 | me << 26), Be = d[de - 7], Ne = Be.high, He = Be.low, ze = d[de - 16], Ie = ze.high, je = ze.low;
|
|
3213
|
+
ye = Ve + He, be = Ge + Ne + (ye >>> 0 < Ve >>> 0 ? 1 : 0), ye = ye + _e, be = be + Ae + (ye >>> 0 < _e >>> 0 ? 1 : 0), ye = ye + je, be = be + Ie + (ye >>> 0 < je >>> 0 ? 1 : 0), Ee.high = be, Ee.low = ye;
|
|
3219
3214
|
}
|
|
3220
|
-
var
|
|
3221
|
-
le = ie, he = oe, ie = te, oe =
|
|
3215
|
+
var Fe = ee & te ^ ~ee & ie, Pe = Y & ne ^ ~Y & oe, De = j & G ^ j & H ^ G & H, Re = W & K ^ W & J ^ K & J, Oe = (j >>> 28 | W << 4) ^ (j << 30 | W >>> 2) ^ (j << 25 | W >>> 7), Le = (W >>> 28 | j << 4) ^ (W << 30 | j >>> 2) ^ (W << 25 | j >>> 7), $e = (ee >>> 14 | Y << 18) ^ (ee >>> 18 | Y << 14) ^ (ee << 23 | Y >>> 9), Q = (Y >>> 14 | ee << 18) ^ (Y >>> 18 | ee << 14) ^ (Y << 23 | ee >>> 9), re = x[de], ae = re.high, ue = re.low, ce = he + Q, fe = le + $e + (ce >>> 0 < he >>> 0 ? 1 : 0), ce = ce + Pe, fe = fe + Fe + (ce >>> 0 < Pe >>> 0 ? 1 : 0), ce = ce + ue, fe = fe + ae + (ce >>> 0 < ue >>> 0 ? 1 : 0), ce = ce + ye, fe = fe + be + (ce >>> 0 < ye >>> 0 ? 1 : 0), se = Le + Re, ge = Oe + De + (se >>> 0 < Le >>> 0 ? 1 : 0);
|
|
3216
|
+
le = ie, he = oe, ie = te, oe = ne, te = ee, ne = Y, Y = X + ce | 0, ee = Z + fe + (Y >>> 0 < X >>> 0 ? 1 : 0) | 0, Z = H, X = J, H = G, J = K, G = j, K = W, W = ce + se | 0, j = fe + ge + (W >>> 0 < ce >>> 0 ? 1 : 0) | 0;
|
|
3222
3217
|
}
|
|
3223
|
-
M = C.low = M + W, C.high = D + j + (M >>> 0 < W >>> 0 ? 1 : 0), O = p.low = O + K, p.high = F + G + (O >>> 0 < K >>> 0 ? 1 : 0), q = v.low = q + J, v.high = L + H + (q >>> 0 < J >>> 0 ? 1 : 0), I = b.low = I + X, b.high = $ + Z + (I >>> 0 < X >>> 0 ? 1 : 0), A = E.low = A + Y, E.high = B +
|
|
3218
|
+
M = C.low = M + W, C.high = D + j + (M >>> 0 < W >>> 0 ? 1 : 0), O = p.low = O + K, p.high = F + G + (O >>> 0 < K >>> 0 ? 1 : 0), q = v.low = q + J, v.high = L + H + (q >>> 0 < J >>> 0 ? 1 : 0), I = b.low = I + X, b.high = $ + Z + (I >>> 0 < X >>> 0 ? 1 : 0), A = E.low = A + Y, E.high = B + ee + (A >>> 0 < Y >>> 0 ? 1 : 0), R = _.low = R + ne, _.high = S + te + (R >>> 0 < ne >>> 0 ? 1 : 0), V = k.low = V + oe, k.high = T + ie + (V >>> 0 < oe >>> 0 ? 1 : 0), N = P.low = N + he, P.high = U + le + (N >>> 0 < he >>> 0 ? 1 : 0);
|
|
3224
3219
|
},
|
|
3225
3220
|
_doFinalize: function() {
|
|
3226
3221
|
var m = this._data, g = m.words, w = this._nDataBytes * 8, C = m.sigBytes * 8;
|
|
@@ -7945,14 +7940,14 @@ const runCode = (e, r) => {
|
|
|
7945
7940
|
const K = unref(V[N]);
|
|
7946
7941
|
let H = null;
|
|
7947
7942
|
if (["date", "range"].some((Z) => lowerCaseIncludes(V == null ? void 0 : V.type, Z))) {
|
|
7948
|
-
const { value: Z, type: X, mode:
|
|
7949
|
-
if (Z && X &&
|
|
7943
|
+
const { value: Z, type: X, mode: ee } = W || {};
|
|
7944
|
+
if (Z && X && ee)
|
|
7950
7945
|
switch (X) {
|
|
7951
7946
|
case "add":
|
|
7952
|
-
H = unref(K).add(Z,
|
|
7947
|
+
H = unref(K).add(Z, ee);
|
|
7953
7948
|
break;
|
|
7954
7949
|
case "minus":
|
|
7955
|
-
H = unref(K).subtract(Z,
|
|
7950
|
+
H = unref(K).subtract(Z, ee);
|
|
7956
7951
|
break;
|
|
7957
7952
|
}
|
|
7958
7953
|
H == null && (H = unref(K)), H = (H == null ? void 0 : H.format((j == null ? void 0 : j.trim()) || V.format)) || "";
|
|
@@ -8039,7 +8034,7 @@ const runCode = (e, r) => {
|
|
|
8039
8034
|
try {
|
|
8040
8035
|
const S = ["get", "head"].includes(a), R = {};
|
|
8041
8036
|
let T = S ? k + L : k;
|
|
8042
|
-
F.dataSqlId && !T.includes("dataSqlId") && (T += `${T.includes("?") ? "&" : "?"}dataSqlId=${F.dataSqlId}`), Object.prototype.hasOwnProperty.call(F, "signal") && (R.signal =
|
|
8037
|
+
F.dataSqlId && !T.includes("dataSqlId") && (T += `${T.includes("?") ? "&" : "?"}dataSqlId=${F.dataSqlId}`), Object.prototype.hasOwnProperty.call(F, "signal") ? R.signal = F.signal : window.controller && (R.signal = window.controller.signal);
|
|
8043
8038
|
const V = await request({
|
|
8044
8039
|
baseURL: unref(v) || u || "",
|
|
8045
8040
|
url: T,
|
|
@@ -8562,7 +8557,7 @@ const runCode = (e, r) => {
|
|
|
8562
8557
|
type: "NORMAL"
|
|
8563
8558
|
}), D;
|
|
8564
8559
|
}, b = async (k = {}) => {
|
|
8565
|
-
var ye, be,
|
|
8560
|
+
var ye, be, Ee, Te, Se, ke, Ge, Ve;
|
|
8566
8561
|
a(e.id, !1);
|
|
8567
8562
|
const { graphicConfig: P, type: D, isGroupTable: M = !1 } = e, F = lowerCaseIncludes(D, "pivottable");
|
|
8568
8563
|
let {
|
|
@@ -8616,61 +8611,61 @@ const runCode = (e, r) => {
|
|
|
8616
8611
|
]);
|
|
8617
8612
|
}
|
|
8618
8613
|
X != null && X.length && (X = u(X, "1")), $ == null && (lowerCaseIncludes(D, ["table"]) || lowerCaseIncludes(D, ["list", "circulate"]) && (B == null ? void 0 : B.length) > 1 ? $ = "1" : lowerCaseIncludes(D, ["select", "checkbox", "radio"]) ? $ = "3" : $ = "2");
|
|
8619
|
-
let
|
|
8614
|
+
let ee;
|
|
8620
8615
|
const Y = [];
|
|
8621
8616
|
let te = "";
|
|
8622
8617
|
if (Array.isArray(B) && B.length > 0 && (!["ecanList", "ecanCirculate"].includes(D) || (B == null ? void 0 : B.length) === 1)) {
|
|
8623
8618
|
const pe = B.length;
|
|
8624
8619
|
for (let me = 0; me < pe; me++) {
|
|
8625
8620
|
const ve = B[me] || {}, {
|
|
8626
|
-
label:
|
|
8627
|
-
name:
|
|
8628
|
-
show:
|
|
8629
|
-
sort:
|
|
8630
|
-
customGroup:
|
|
8631
|
-
conditions:
|
|
8621
|
+
label: Ae = "",
|
|
8622
|
+
name: _e = "",
|
|
8623
|
+
show: Be = !1,
|
|
8624
|
+
sort: Ne,
|
|
8625
|
+
customGroup: He,
|
|
8626
|
+
conditions: ze,
|
|
8632
8627
|
dateFormat: Ie,
|
|
8633
|
-
typeGuid:
|
|
8628
|
+
typeGuid: je = "",
|
|
8634
8629
|
truncations: Fe = []
|
|
8635
8630
|
} = ve;
|
|
8636
|
-
if (
|
|
8637
|
-
te =
|
|
8638
|
-
label:
|
|
8639
|
-
columnName:
|
|
8640
|
-
show:
|
|
8641
|
-
sort: v(ve) || p(
|
|
8642
|
-
customGroup:
|
|
8643
|
-
conditions: u(
|
|
8644
|
-
typeGuid:
|
|
8645
|
-
}, Ie && (
|
|
8631
|
+
if (Be || pe === 1) {
|
|
8632
|
+
te = je, ee = {
|
|
8633
|
+
label: Ae.trim(),
|
|
8634
|
+
columnName: _e,
|
|
8635
|
+
show: Be,
|
|
8636
|
+
sort: v(ve) || p(Ne) || Ne,
|
|
8637
|
+
customGroup: He,
|
|
8638
|
+
conditions: u(ze),
|
|
8639
|
+
typeGuid: je
|
|
8640
|
+
}, Ie && (ee.dateFormat = Ie), _e === "the_date" && !ee.dateFormat && (ee.dateFormat = "YYYY-MM");
|
|
8646
8641
|
const Pe = {};
|
|
8647
8642
|
if (Array.isArray(Fe) && Fe.length > 0) {
|
|
8648
|
-
const
|
|
8649
|
-
for (let
|
|
8650
|
-
const
|
|
8651
|
-
|
|
8643
|
+
const De = Fe.length;
|
|
8644
|
+
for (let Re = 0; Re < De; Re++) {
|
|
8645
|
+
const Oe = Fe[Re] || {}, { rule: Le = "", num: $e = 0, name: Q = "" } = Oe;
|
|
8646
|
+
Le && $e && (Pe.num = $e, Pe.rule = Le, Q && (Pe.otherGroupName = Q));
|
|
8652
8647
|
}
|
|
8653
8648
|
}
|
|
8654
|
-
if ((ye = Object.keys(Pe)) != null && ye.length && (
|
|
8655
|
-
Y.push(
|
|
8649
|
+
if ((ye = Object.keys(Pe)) != null && ye.length && (ee.truncation = Pe), lowerCaseIncludes(D, "scatter"))
|
|
8650
|
+
Y.push(ee);
|
|
8656
8651
|
else
|
|
8657
8652
|
break;
|
|
8658
8653
|
}
|
|
8659
8654
|
}
|
|
8660
8655
|
}
|
|
8661
|
-
let
|
|
8656
|
+
let ne;
|
|
8662
8657
|
if (Array.isArray(R) && R.length > 0) {
|
|
8663
8658
|
const pe = R.length;
|
|
8664
8659
|
for (let me = 0; me < pe; me++) {
|
|
8665
|
-
const ve = R[me] || {}, { label:
|
|
8666
|
-
if (
|
|
8667
|
-
|
|
8668
|
-
label:
|
|
8669
|
-
columnName:
|
|
8670
|
-
show:
|
|
8671
|
-
sort: p(
|
|
8672
|
-
customGroup:
|
|
8673
|
-
conditions: u(
|
|
8660
|
+
const ve = R[me] || {}, { label: Ae = "", name: _e = "", show: Be = !1, sort: Ne, customGroup: He, conditions: ze, typeGuid: Ie } = ve;
|
|
8661
|
+
if (Be || pe === 1) {
|
|
8662
|
+
ne = {
|
|
8663
|
+
label: Ae.trim(),
|
|
8664
|
+
columnName: _e,
|
|
8665
|
+
show: Be,
|
|
8666
|
+
sort: p(Ne),
|
|
8667
|
+
customGroup: He,
|
|
8668
|
+
conditions: u(ze),
|
|
8674
8669
|
typeGuid: Ie
|
|
8675
8670
|
};
|
|
8676
8671
|
break;
|
|
@@ -8679,44 +8674,44 @@ const runCode = (e, r) => {
|
|
|
8679
8674
|
}
|
|
8680
8675
|
const ie = [];
|
|
8681
8676
|
if (T == null || T.forEach((pe) => {
|
|
8682
|
-
pe.location = "LEFT", ie.push(x(pe,
|
|
8677
|
+
pe.location = "LEFT", ie.push(x(pe, ee));
|
|
8683
8678
|
}), V == null || V.forEach((pe) => {
|
|
8684
|
-
pe.location = "RIGHT", ie.push(x(pe,
|
|
8679
|
+
pe.location = "RIGHT", ie.push(x(pe, ee));
|
|
8685
8680
|
}), N == null || N.forEach((pe) => {
|
|
8686
|
-
pe.location = "LEFT", ie.push(x(pe,
|
|
8681
|
+
pe.location = "LEFT", ie.push(x(pe, ee));
|
|
8687
8682
|
}), k != null && k.pivotTableCal) {
|
|
8688
8683
|
const { calc: pe = [], filter: me = [] } = k.pivotTableCal;
|
|
8689
8684
|
if (ie.push(...pe), me != null && me.length)
|
|
8690
8685
|
for (const ve of me) {
|
|
8691
|
-
const
|
|
8692
|
-
|
|
8686
|
+
const Ae = ie.find((_e) => _e.columnName === ve.fieldName);
|
|
8687
|
+
Ae && (Ae.conditions || (Ae.conditions = []), Ae.conditions.push(ve));
|
|
8693
8688
|
}
|
|
8694
8689
|
}
|
|
8695
8690
|
const oe = [];
|
|
8696
8691
|
["ecanList", "ecanCirculate"].includes(D) && (B == null ? void 0 : B.length) > 1 && (U = B), U == null || U.forEach((pe) => {
|
|
8697
|
-
const { label: me, name: ve, location:
|
|
8698
|
-
let Fe = p(
|
|
8692
|
+
const { label: me, name: ve, location: Ae, show: _e, indexCode: Be, sort: Ne, typeGuid: He, indexCodeNum: ze, dateFormat: Ie, conditions: je } = pe;
|
|
8693
|
+
let Fe = p(Ne);
|
|
8699
8694
|
if (k.sort) {
|
|
8700
|
-
const { field:
|
|
8701
|
-
let
|
|
8702
|
-
!
|
|
8703
|
-
columnName:
|
|
8695
|
+
const { field: De, order: Re } = k.sort;
|
|
8696
|
+
let Oe = ie.find((Le) => Le.label === De);
|
|
8697
|
+
!Oe && me === De && (Oe = pe), Oe && (Fe = {
|
|
8698
|
+
columnName: Oe.columnName,
|
|
8704
8699
|
label: k.sort.field,
|
|
8705
|
-
order:
|
|
8700
|
+
order: Re.toUpperCase(),
|
|
8706
8701
|
type: "NORMAL"
|
|
8707
8702
|
});
|
|
8708
8703
|
}
|
|
8709
8704
|
const Pe = {
|
|
8710
8705
|
label: me,
|
|
8711
8706
|
columnName: ve,
|
|
8712
|
-
location:
|
|
8713
|
-
show:
|
|
8707
|
+
location: Ae,
|
|
8708
|
+
show: _e,
|
|
8714
8709
|
sort: Fe,
|
|
8715
8710
|
calcType: "COLUMN",
|
|
8716
|
-
hrpIndexCode:
|
|
8717
|
-
hrpIndexCodeNum:
|
|
8718
|
-
conditions: u(
|
|
8719
|
-
typeGuid:
|
|
8711
|
+
hrpIndexCode: Be,
|
|
8712
|
+
hrpIndexCodeNum: ze,
|
|
8713
|
+
conditions: u(je),
|
|
8714
|
+
typeGuid: He
|
|
8720
8715
|
};
|
|
8721
8716
|
Ie && (Pe.dateFormat = Ie), ve === "the_date" && !Pe.dateFormat && (Pe.dateFormat = "YYYY-MM"), oe.push(Pe);
|
|
8722
8717
|
});
|
|
@@ -8725,37 +8720,37 @@ const runCode = (e, r) => {
|
|
|
8725
8720
|
if (Array.isArray(A) && A.length > 0 ? he = A : Array.isArray(S) && S.length > 0 && (he = S), he != null && he.length) {
|
|
8726
8721
|
const pe = he.length;
|
|
8727
8722
|
for (let me = 0; me < pe; me++) {
|
|
8728
|
-
const ve = he[me] || {}, { label:
|
|
8729
|
-
let Pe = p(
|
|
8723
|
+
const ve = he[me] || {}, { label: Ae = "", name: _e = "", show: Be = !1, sort: Ne, customGroup: He, conditions: ze, truncations: Ie, typeGuid: je = "", dateFormat: Fe } = ve;
|
|
8724
|
+
let Pe = p(Ne);
|
|
8730
8725
|
if (k.sort) {
|
|
8731
|
-
const { field:
|
|
8732
|
-
let
|
|
8733
|
-
|
|
8734
|
-
columnName:
|
|
8726
|
+
const { field: Oe, order: Le } = k.sort;
|
|
8727
|
+
let $e = ie.find((Q) => Q.label === Oe);
|
|
8728
|
+
!$e && ve.label === Oe && ($e = ve), $e && (Pe = {
|
|
8729
|
+
columnName: $e.columnName,
|
|
8735
8730
|
label: k.sort.field,
|
|
8736
|
-
order:
|
|
8731
|
+
order: Le.toUpperCase(),
|
|
8737
8732
|
type: "NORMAL"
|
|
8738
8733
|
});
|
|
8739
8734
|
}
|
|
8740
|
-
const
|
|
8741
|
-
label:
|
|
8742
|
-
columnName:
|
|
8743
|
-
show:
|
|
8735
|
+
const De = {
|
|
8736
|
+
label: Ae.trim(),
|
|
8737
|
+
columnName: _e,
|
|
8738
|
+
show: Be,
|
|
8744
8739
|
sort: Pe,
|
|
8745
|
-
customGroup:
|
|
8746
|
-
conditions: u(
|
|
8747
|
-
typeGuid:
|
|
8740
|
+
customGroup: He,
|
|
8741
|
+
conditions: u(ze),
|
|
8742
|
+
typeGuid: je
|
|
8748
8743
|
};
|
|
8749
|
-
Fe && (
|
|
8750
|
-
const
|
|
8744
|
+
Fe && (De.dateFormat = Fe), _e === "the_date" && !De.dateFormat && (De.dateFormat = "YYYY-MM");
|
|
8745
|
+
const Re = {};
|
|
8751
8746
|
if (Array.isArray(Ie) && Ie.length > 0) {
|
|
8752
|
-
const
|
|
8753
|
-
for (let
|
|
8754
|
-
const
|
|
8755
|
-
|
|
8747
|
+
const Oe = Ie.length;
|
|
8748
|
+
for (let Le = 0; Le < Oe; Le++) {
|
|
8749
|
+
const $e = Ie[Le] || {}, { rule: Q = "", num: re = 0, name: ae = "" } = $e;
|
|
8750
|
+
Q && re && (Re.num = re, Re.rule = Q, ae && (Re.otherGroupName = ae));
|
|
8756
8751
|
}
|
|
8757
8752
|
}
|
|
8758
|
-
(be = Object.keys(
|
|
8753
|
+
(be = Object.keys(Re)) != null && be.length && (De.truncation = Re), le.push(De);
|
|
8759
8754
|
}
|
|
8760
8755
|
}
|
|
8761
8756
|
if (lowerCaseIncludes(D, ["text", "proportion", "counter"]) && (I = "zb"), M) {
|
|
@@ -8773,7 +8768,7 @@ const runCode = (e, r) => {
|
|
|
8773
8768
|
return;
|
|
8774
8769
|
}
|
|
8775
8770
|
S != null && S.length && ($ = "1", I = "grouptable");
|
|
8776
|
-
let de = s || ((
|
|
8771
|
+
let de = s || ((Ee = window == null ? void 0 : window.config) == null ? void 0 : Ee.pageId);
|
|
8777
8772
|
if (!de) {
|
|
8778
8773
|
const { pathname: pe } = window == null ? void 0 : window.location;
|
|
8779
8774
|
if (pe) {
|
|
@@ -8792,9 +8787,15 @@ const runCode = (e, r) => {
|
|
|
8792
8787
|
}
|
|
8793
8788
|
D === "ecanDataSelect" && (me.indicatorList = ie.filter((ve) => ve.show)), O === "EDV_DATA_SET" && (me.edvDataSetId = Z);
|
|
8794
8789
|
try {
|
|
8795
|
-
const ve = await request
|
|
8796
|
-
`${INDICATOR_URL}/diagram/formData`,
|
|
8797
|
-
|
|
8790
|
+
const ve = await request({
|
|
8791
|
+
url: `${INDICATOR_URL}/diagram/formData`,
|
|
8792
|
+
method: "post",
|
|
8793
|
+
headers: {
|
|
8794
|
+
// @ts-ignore
|
|
8795
|
+
Authentication: (Se = window == null ? void 0 : window.config) == null ? void 0 : Se.indicatorToken,
|
|
8796
|
+
operateContext: CONTEXT
|
|
8797
|
+
},
|
|
8798
|
+
data: {
|
|
8798
8799
|
source: O,
|
|
8799
8800
|
dataViewId: L,
|
|
8800
8801
|
plugin: "4",
|
|
@@ -8810,18 +8811,12 @@ const runCode = (e, r) => {
|
|
|
8810
8811
|
keyName: e.keyName,
|
|
8811
8812
|
...me
|
|
8812
8813
|
},
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
Authentication: (Ee = window == null ? void 0 : window.config) == null ? void 0 : Ee.indicatorToken,
|
|
8817
|
-
operateContext: CONTEXT
|
|
8818
|
-
}
|
|
8819
|
-
}
|
|
8820
|
-
);
|
|
8814
|
+
// @ts-ignore
|
|
8815
|
+
signal: ((ke = window.controller) == null ? void 0 : ke.signal) || ""
|
|
8816
|
+
});
|
|
8821
8817
|
return k != null && k.isTimer && r(ve), ve;
|
|
8822
8818
|
} catch (ve) {
|
|
8823
8819
|
console.error(ve);
|
|
8824
|
-
} finally {
|
|
8825
8820
|
}
|
|
8826
8821
|
} else
|
|
8827
8822
|
try {
|
|
@@ -8829,28 +8824,34 @@ const runCode = (e, r) => {
|
|
|
8829
8824
|
lowerCaseIncludes(D, "scatter") ? pe = {
|
|
8830
8825
|
classifications: Y
|
|
8831
8826
|
} : pe = {
|
|
8832
|
-
classification:
|
|
8827
|
+
classification: ee
|
|
8833
8828
|
};
|
|
8834
|
-
const me = await request
|
|
8835
|
-
`${INDICATOR_URL}/diagram`,
|
|
8836
|
-
|
|
8829
|
+
const me = await request({
|
|
8830
|
+
url: `${INDICATOR_URL}/diagram`,
|
|
8831
|
+
method: "post",
|
|
8832
|
+
headers: {
|
|
8833
|
+
// @ts-ignore
|
|
8834
|
+
Authentication: (Ge = window == null ? void 0 : window.config) == null ? void 0 : Ge.indicatorToken,
|
|
8835
|
+
operateContext: CONTEXT
|
|
8836
|
+
},
|
|
8837
|
+
data: {
|
|
8837
8838
|
source: O,
|
|
8838
8839
|
dataViewId: L,
|
|
8839
8840
|
plugin: F ? "5" : q,
|
|
8840
8841
|
layer: $,
|
|
8841
8842
|
chartType: F ? "pivot-table" : I,
|
|
8842
8843
|
...pe,
|
|
8843
|
-
series:
|
|
8844
|
+
series: ne,
|
|
8844
8845
|
indicatorList: ie,
|
|
8845
8846
|
queryColumns: M ? [] : oe,
|
|
8846
8847
|
pageFlag: !0,
|
|
8847
8848
|
pageId: de,
|
|
8848
8849
|
edvDataSetId: Z || "",
|
|
8849
8850
|
sqlConditions: X.map((ve) => {
|
|
8850
|
-
const { fieldValue:
|
|
8851
|
-
return
|
|
8851
|
+
const { fieldValue: Ae } = ve, _e = {};
|
|
8852
|
+
return Ae && Array.isArray(Ae) && (_e.fieldValue = JSON.stringify(Ae)), {
|
|
8852
8853
|
...ve,
|
|
8853
|
-
...
|
|
8854
|
+
..._e
|
|
8854
8855
|
};
|
|
8855
8856
|
}),
|
|
8856
8857
|
// fixedDimSql: '',
|
|
@@ -8860,18 +8861,12 @@ const runCode = (e, r) => {
|
|
|
8860
8861
|
rowHeaders: le,
|
|
8861
8862
|
keyName: e.keyName
|
|
8862
8863
|
},
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
Authentication: (_e = window == null ? void 0 : window.config) == null ? void 0 : _e.indicatorToken,
|
|
8867
|
-
operateContext: CONTEXT
|
|
8868
|
-
}
|
|
8869
|
-
}
|
|
8870
|
-
);
|
|
8864
|
+
// @ts-ignore
|
|
8865
|
+
signal: ((Ve = window.controller) == null ? void 0 : Ve.signal) || ""
|
|
8866
|
+
});
|
|
8871
8867
|
return k != null && k.isTimer && r(me), me;
|
|
8872
8868
|
} catch (pe) {
|
|
8873
8869
|
console.error(pe);
|
|
8874
|
-
} finally {
|
|
8875
8870
|
}
|
|
8876
8871
|
}, E = unref(n) !== "design" && ((_ = e == null ? void 0 : e.graphicConfig) == null ? void 0 : _.pageMode) !== "design" && e.isOpenRequestTimer && e.requestInterval && setInterval(() => {
|
|
8877
8872
|
b({ isTimer: !0 });
|
|
@@ -9028,9 +9023,9 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9028
9023
|
o();
|
|
9029
9024
|
});
|
|
9030
9025
|
const f = computed(() => useVariablesInText(e.contextRequestUrl)), u = computed(() => e.pageMode), x = computed(() => e.theme), d = computed(() => e.width), y = computed(() => e.height), m = computed(() => e.pageFontFamily), g = computed(() => {
|
|
9031
|
-
const Y = [], te = unref(l).filter((
|
|
9032
|
-
for (const
|
|
9033
|
-
|
|
9026
|
+
const Y = [], te = unref(l).filter((ne) => ne.type === "ecanModal");
|
|
9027
|
+
for (const ne of te)
|
|
9028
|
+
ne != null && ne.requestList && Y.push(...ne.requestList);
|
|
9034
9029
|
return [
|
|
9035
9030
|
...Y,
|
|
9036
9031
|
...e.requestList
|
|
@@ -9062,32 +9057,32 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9062
9057
|
setTemplateData: (Y) => {
|
|
9063
9058
|
var te;
|
|
9064
9059
|
if (Y != null && Y.pageId) {
|
|
9065
|
-
const { componentId:
|
|
9060
|
+
const { componentId: ne, ...ie } = Y;
|
|
9066
9061
|
(te = window.config) != null && te.urlParams || (window.config.urlParams = {}), window.config.urlParams[Y.pageId] = ie, n("templateChange", Y);
|
|
9067
9062
|
}
|
|
9068
9063
|
}
|
|
9069
9064
|
});
|
|
9070
9065
|
const p = ref(), v = /* @__PURE__ */ new Map(), b = (Y) => v.get(Y), E = (Y, te) => {
|
|
9071
|
-
var
|
|
9066
|
+
var ne;
|
|
9072
9067
|
if (p.value = te, v.set(Y, te), !e.pageId) {
|
|
9073
9068
|
const ie = unref(s).find((oe) => oe.id === Y);
|
|
9074
|
-
ie && ((
|
|
9069
|
+
ie && ((ne = window.config) != null && ne.record || (window.config.record = {}), window.config.record[ie.keyName] = te);
|
|
9075
9070
|
}
|
|
9076
9071
|
}, _ = () => {
|
|
9077
9072
|
p.value = null;
|
|
9078
9073
|
}, k = (Y) => {
|
|
9079
9074
|
let te = Y;
|
|
9080
9075
|
if (te) {
|
|
9081
|
-
const
|
|
9082
|
-
if (
|
|
9083
|
-
let ie =
|
|
9076
|
+
const ne = Y.match(/\{(.+?)\}/g);
|
|
9077
|
+
if (ne != null && ne.length) {
|
|
9078
|
+
let ie = ne[0].slice(1, -1).trim();
|
|
9084
9079
|
const oe = ie.match(/\[(.+?)\]/g);
|
|
9085
9080
|
let le = "";
|
|
9086
9081
|
oe != null && oe.length && (ie = ie.replace(oe[0], ""), le = oe[0].slice(1, -1).trim());
|
|
9087
9082
|
const he = unref(c).find((de) => de.keyName === ie);
|
|
9088
9083
|
if (he) {
|
|
9089
|
-
const de = b(he.id), { type: ye, value: be, RECORD:
|
|
9090
|
-
lowerCaseIncludes(ye, MODEL_KEY_LIST) ? te =
|
|
9084
|
+
const de = b(he.id), { type: ye, value: be, RECORD: Ee, recordData: Te } = de || {};
|
|
9085
|
+
lowerCaseIncludes(ye, MODEL_KEY_LIST) ? te = Ee[le] : lowerCaseIncludes(ye, "select") ? te = Te[le] : lowerCaseIncludes(ye, ["rangePicker", "date"]) ? dayjs.isDayjs(unref(de[le])) ? te = unref(de[le]).format(de.format) : te = unref(de[le]) : te = be;
|
|
9091
9086
|
} else
|
|
9092
9087
|
te = (window.config.requestParams || {})[ie] || "";
|
|
9093
9088
|
}
|
|
@@ -9095,15 +9090,15 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9095
9090
|
return te;
|
|
9096
9091
|
}, P = /* @__PURE__ */ new Map(), D = {}, M = async (Y, te) => {
|
|
9097
9092
|
var he;
|
|
9098
|
-
const { requestName:
|
|
9093
|
+
const { requestName: ne } = Y, ie = await useRequestData({
|
|
9099
9094
|
...Y,
|
|
9100
9095
|
projectRequestUrl: unref(f),
|
|
9101
9096
|
getModel: b
|
|
9102
|
-
})(), oe = ((he = ie == null ? void 0 : ie.data) == null ? void 0 : he.data) || {}, le = P.get(
|
|
9103
|
-
if (le != null && le.length && (!te || D[
|
|
9097
|
+
})(), oe = ((he = ie == null ? void 0 : ie.data) == null ? void 0 : he.data) || {}, le = P.get(ne);
|
|
9098
|
+
if (le != null && le.length && (!te || D[ne])) {
|
|
9104
9099
|
for (const de of le)
|
|
9105
9100
|
de(oe);
|
|
9106
|
-
te || P.delete(
|
|
9101
|
+
te || P.delete(ne);
|
|
9107
9102
|
}
|
|
9108
9103
|
};
|
|
9109
9104
|
provide(GLOBAL_MODEL, {
|
|
@@ -9113,8 +9108,8 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9113
9108
|
getRecordValueByKeyName: k,
|
|
9114
9109
|
hanldePageRequestData: (Y, te) => {
|
|
9115
9110
|
D[Y] && (clearInterval(D[Y]), delete D[Y], P.delete(Y));
|
|
9116
|
-
const
|
|
9117
|
-
if ((
|
|
9111
|
+
const ne = unref(c).filter((oe) => !oe.openCustomRequestData && oe.customRequestName === Y), ie = P.get(Y) || [];
|
|
9112
|
+
if ((ne == null ? void 0 : ne.length) > ie.length && (ie.push(te), P.set(Y, ie), (ne == null ? void 0 : ne.length) === ie.length)) {
|
|
9118
9113
|
const oe = unref(g).find((le) => le.requestName === Y);
|
|
9119
9114
|
oe && (oe != null && oe.isOpenRequestTimer && (oe != null && oe.requestInterval) ? (M(oe, !0), D[Y] = setInterval(() => {
|
|
9120
9115
|
M(oe, !0);
|
|
@@ -9144,15 +9139,15 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9144
9139
|
}
|
|
9145
9140
|
});
|
|
9146
9141
|
const R = mitt(), T = /* @__PURE__ */ new Set(), V = (Y, te) => {
|
|
9147
|
-
T.add(Y), R.on(Y, (
|
|
9148
|
-
const { eventName: ie, params: oe } =
|
|
9142
|
+
T.add(Y), R.on(Y, (ne) => {
|
|
9143
|
+
const { eventName: ie, params: oe } = ne;
|
|
9149
9144
|
return typeof te[ie] == "function" && te[ie](oe);
|
|
9150
9145
|
}), onBeforeUnmount(() => {
|
|
9151
9146
|
U(Y);
|
|
9152
9147
|
});
|
|
9153
9148
|
}, U = (Y) => {
|
|
9154
9149
|
T.delete(Y), R.off(Y);
|
|
9155
|
-
}, N = (Y, te,
|
|
9150
|
+
}, N = (Y, te, ne = {}) => {
|
|
9156
9151
|
if (Y === "PAGE") {
|
|
9157
9152
|
const ie = q.length;
|
|
9158
9153
|
let oe = [];
|
|
@@ -9163,10 +9158,10 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9163
9158
|
oe = [...A(le)];
|
|
9164
9159
|
}
|
|
9165
9160
|
oe.forEach((le) => {
|
|
9166
|
-
R.emit(le, { eventName: te, params:
|
|
9161
|
+
R.emit(le, { eventName: te, params: ne });
|
|
9167
9162
|
});
|
|
9168
9163
|
} else
|
|
9169
|
-
R.emit(Y, { eventName: te, params:
|
|
9164
|
+
R.emit(Y, { eventName: te, params: ne });
|
|
9170
9165
|
};
|
|
9171
9166
|
provide(EVENT_BUS, {
|
|
9172
9167
|
onEvent: V,
|
|
@@ -9180,26 +9175,26 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9180
9175
|
}
|
|
9181
9176
|
});
|
|
9182
9177
|
const G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), H = ({ requestFn: Y = () => {
|
|
9183
|
-
}, sortNum: te = 0, id:
|
|
9178
|
+
}, sortNum: te = 0, id: ne = "" }) => {
|
|
9184
9179
|
if (G.has(te)) {
|
|
9185
9180
|
const ie = G.get(te);
|
|
9186
9181
|
ie == null || ie.push(Y);
|
|
9187
9182
|
} else
|
|
9188
9183
|
G.set(te, [Y]);
|
|
9189
|
-
K.set(
|
|
9190
|
-
}, J = (Y) => new Promise((te,
|
|
9184
|
+
K.set(ne, Y);
|
|
9185
|
+
}, J = (Y) => new Promise((te, ne) => {
|
|
9191
9186
|
const ie = Y.map((oe) => oe());
|
|
9192
9187
|
Promise.all(ie).then((oe) => {
|
|
9193
9188
|
te(oe);
|
|
9194
9189
|
}).catch((oe) => {
|
|
9195
|
-
|
|
9190
|
+
ne(oe);
|
|
9196
9191
|
});
|
|
9197
|
-
}), Z = (Y) => new Promise(async (te,
|
|
9192
|
+
}), Z = (Y) => new Promise(async (te, ne) => {
|
|
9198
9193
|
if (Y) {
|
|
9199
9194
|
if (typeof Y == "string") {
|
|
9200
9195
|
const ie = K.get(Y);
|
|
9201
9196
|
if (typeof ie == "function") {
|
|
9202
|
-
const oe = request.interceptors.response.use((le) => (te(le), le), (le) => (
|
|
9197
|
+
const oe = request.interceptors.response.use((le) => (te(le), le), (le) => (ne(le), Promise.reject(le)));
|
|
9203
9198
|
ie(), request.interceptors.response.eject(oe);
|
|
9204
9199
|
}
|
|
9205
9200
|
}
|
|
@@ -9228,7 +9223,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9228
9223
|
R.emit(REFRESH_PAGE);
|
|
9229
9224
|
}
|
|
9230
9225
|
});
|
|
9231
|
-
const
|
|
9226
|
+
const ee = (Y) => {
|
|
9232
9227
|
R.on(REFRESH_PAGE, () => Y()), onMounted(() => {
|
|
9233
9228
|
R.off(REFRESH_PAGE);
|
|
9234
9229
|
});
|
|
@@ -9236,18 +9231,18 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9236
9231
|
return watchEffect(() => {
|
|
9237
9232
|
var Y;
|
|
9238
9233
|
if ((Y = unref(s)) != null && Y.length && unref(u) !== "design") {
|
|
9239
|
-
const { jumpType: te, jumpTime:
|
|
9240
|
-
if (
|
|
9234
|
+
const { jumpType: te, jumpTime: ne, jumpPage: ie, jumpLink: oe } = e;
|
|
9235
|
+
if (ne != null && ne.value) {
|
|
9241
9236
|
let le = 0;
|
|
9242
|
-
switch (
|
|
9237
|
+
switch (ne == null ? void 0 : ne.suffix) {
|
|
9243
9238
|
case "hours":
|
|
9244
|
-
le =
|
|
9239
|
+
le = ne.value * 60 * 60 * 1e3;
|
|
9245
9240
|
break;
|
|
9246
9241
|
case "minute":
|
|
9247
|
-
le =
|
|
9242
|
+
le = ne.value * 60 * 1e3;
|
|
9248
9243
|
break;
|
|
9249
9244
|
case "seconds":
|
|
9250
|
-
le =
|
|
9245
|
+
le = ne.value * 1e3;
|
|
9251
9246
|
break;
|
|
9252
9247
|
}
|
|
9253
9248
|
setTimeout(() => {
|
|
@@ -9261,7 +9256,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9261
9256
|
}), r({
|
|
9262
9257
|
touchRequest: Z,
|
|
9263
9258
|
getGlobalModel: b,
|
|
9264
|
-
onRefreshPage:
|
|
9259
|
+
onRefreshPage: ee,
|
|
9265
9260
|
emitEvent: N,
|
|
9266
9261
|
getRecordValueByKeyName: k,
|
|
9267
9262
|
props: e
|
|
@@ -9363,8 +9358,8 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9363
9358
|
}
|
|
9364
9359
|
K.sort((J, Z) => J - Z), K = K.map((J) => {
|
|
9365
9360
|
const Z = String(J).split("").reverse(), X = [];
|
|
9366
|
-
for (let
|
|
9367
|
-
Z && Z[
|
|
9361
|
+
for (let ee = 0; ee < G; ee++)
|
|
9362
|
+
Z && Z[ee] ? X.push(Z[ee]) : X.push("0");
|
|
9368
9363
|
return j && X.splice(j, 0, "."), (N < 0 ? "-" : "") + X.reverse().join("");
|
|
9369
9364
|
}), K.push(N);
|
|
9370
9365
|
let H = 0;
|
|
@@ -9467,23 +9462,23 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9467
9462
|
const K = U[G], H = (W = K == null ? void 0 : K.slice(1, K.length - 1)) == null ? void 0 : W.trim();
|
|
9468
9463
|
let J = H;
|
|
9469
9464
|
const Z = H.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
9470
|
-
for (let
|
|
9471
|
-
const Y = Z[
|
|
9465
|
+
for (let ee = 0; ee < Z.length; ee++) {
|
|
9466
|
+
const Y = Z[ee], te = S[Y];
|
|
9472
9467
|
if (te)
|
|
9473
9468
|
J = H.replace(Y, u(String(te)) || te);
|
|
9474
9469
|
else {
|
|
9475
|
-
const
|
|
9476
|
-
|
|
9470
|
+
const ne = getPageUrlParams(E);
|
|
9471
|
+
ne[Y] && (J = decodeURIComponent(ne[Y]));
|
|
9477
9472
|
}
|
|
9478
9473
|
}
|
|
9479
9474
|
if (/\(.*\)/g.test(J)) {
|
|
9480
|
-
const
|
|
9481
|
-
|
|
9475
|
+
const ee = runCode(J);
|
|
9476
|
+
ee != null && (J = ee);
|
|
9482
9477
|
}
|
|
9483
9478
|
let X = J;
|
|
9484
9479
|
if (X === H && (X = e.variableDefaultValue), X != null) {
|
|
9485
|
-
const
|
|
9486
|
-
if (
|
|
9480
|
+
const ee = e.format;
|
|
9481
|
+
if (ee === "percentage")
|
|
9487
9482
|
if (X = +X, isNaN(X))
|
|
9488
9483
|
V = V.replace(K, `<span class="${j}" style="color:${v("0.00") || e.variableColor};font-size:${unref(o)};${unref(m)}">0%</span>`);
|
|
9489
9484
|
else if (X >= 0) {
|
|
@@ -9512,7 +9507,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9512
9507
|
);
|
|
9513
9508
|
}
|
|
9514
9509
|
else
|
|
9515
|
-
e.format === "percent" ? (X = +X, isNaN(X) || (X = (X * 100).toFixed(2), V = V.replace(K, `<span class="${j}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}%</span>`))) : e.format === "money" ? (X = +X, isNaN(X) || (X = formatMoney(X), V = V.replace(K, `<span class="${j}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`))) :
|
|
9510
|
+
e.format === "percent" ? (X = +X, isNaN(X) || (X = (X * 100).toFixed(2), V = V.replace(K, `<span class="${j}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}%</span>`))) : e.format === "money" ? (X = +X, isNaN(X) || (X = formatMoney(X), V = V.replace(K, `<span class="${j}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`))) : ee === "thousands" ? (X = +X, isNaN(X) || (X = formatThousands(X), V = V.replace(K, `<span class="${j}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`))) : V = V.replace(K, `<span class="${j}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`);
|
|
9516
9511
|
}
|
|
9517
9512
|
}
|
|
9518
9513
|
if (N || (N = `<span class="${j}" style="color: ${v(V)};${unref(m)}">${V}</span>`), e.unitShow && e.unitText) {
|
|
@@ -10991,20 +10986,20 @@ const __default__$2 = defineComponent({
|
|
|
10991
10986
|
}
|
|
10992
10987
|
return H;
|
|
10993
10988
|
});
|
|
10994
|
-
watch(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([H, J, Z, X,
|
|
10989
|
+
watch(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([H, J, Z, X, ee, Y]) => {
|
|
10995
10990
|
if (unref(o).every((te) => !te) || unref(n) === "design") {
|
|
10996
|
-
let te = null,
|
|
10997
|
-
if (Z && (te = dayjs().subtract(X,
|
|
10991
|
+
let te = null, ne = null;
|
|
10992
|
+
if (Z && (te = dayjs().subtract(X, ee), ne = dayjs()), H && (te = dayjs(useVariablesInText(H))), J && (ne = dayjs(useVariablesInText(J))), Y) {
|
|
10998
10993
|
const { type: ie, value: oe, mode: le } = Y;
|
|
10999
10994
|
switch (ie) {
|
|
11000
10995
|
case "add":
|
|
11001
|
-
te = te && te.add(oe, le),
|
|
10996
|
+
te = te && te.add(oe, le), ne = ne && ne.add(oe, le);
|
|
11002
10997
|
break;
|
|
11003
10998
|
case "minus":
|
|
11004
|
-
te = te && te.subtract(oe, le),
|
|
10999
|
+
te = te && te.subtract(oe, le), ne = ne && ne.subtract(oe, le);
|
|
11005
11000
|
}
|
|
11006
11001
|
}
|
|
11007
|
-
o.value = [te,
|
|
11002
|
+
o.value = [te, ne], unref(r) && G();
|
|
11008
11003
|
}
|
|
11009
11004
|
}, {
|
|
11010
11005
|
immediate: !0
|
|
@@ -11014,15 +11009,15 @@ const __default__$2 = defineComponent({
|
|
|
11014
11009
|
Array.isArray(H) ? (C = H[0], p = H[1], v = Z.range) : (C = null, p = null);
|
|
11015
11010
|
}, E = (H) => {
|
|
11016
11011
|
let J = !1, { limitStartTime: Z, limitEndTime: X } = e;
|
|
11017
|
-
const
|
|
11012
|
+
const ee = {
|
|
11018
11013
|
startTime: `${C || ""}`,
|
|
11019
11014
|
endTime: `${p || ""}`
|
|
11020
11015
|
};
|
|
11021
|
-
if (Z = useVariablesInText(Z, { codeData:
|
|
11016
|
+
if (Z = useVariablesInText(Z, { codeData: ee }), X = useVariablesInText(X, { codeData: ee }), Z && X ? J = !(dayjs(Z) < H && H < dayjs(X)) : Z ? J = dayjs(Z) > H : X && (J = dayjs(X) < H), !e.isAllowSpanYear && v) {
|
|
11022
11017
|
let Y = null;
|
|
11023
11018
|
if (v === "start" ? Y = C : v === "end" && (Y = p), Y) {
|
|
11024
|
-
const te = Y.startOf("year"),
|
|
11025
|
-
J = !(te <= H && H <
|
|
11019
|
+
const te = Y.startOf("year"), ne = Y.endOf("year");
|
|
11020
|
+
J = !(te <= H && H < ne);
|
|
11026
11021
|
}
|
|
11027
11022
|
}
|
|
11028
11023
|
if (!J) {
|
|
@@ -11120,7 +11115,7 @@ const __default__$2 = defineComponent({
|
|
|
11120
11115
|
}
|
|
11121
11116
|
function G() {
|
|
11122
11117
|
const { limitStartTime: H, limitEndTime: J, limitInterval: Z, isAllowSpanYear: X } = e;
|
|
11123
|
-
j(unref(o)), H && (f.value = new Date(H), x.value = new Date(H), unref(o)[0].isBefore(dayjs(H)) && (unref(o)[0] = dayjs(H), l.value = K(unref(o)[0]))), J && (u.value = new Date(J), d.value = new Date(J), unref(o)[1].isAfter(dayjs(J)) && (unref(o)[1] = dayjs(J), c.value = K(unref(o)[1]))), unref(o).every((
|
|
11118
|
+
j(unref(o)), H && (f.value = new Date(H), x.value = new Date(H), unref(o)[0].isBefore(dayjs(H)) && (unref(o)[0] = dayjs(H), l.value = K(unref(o)[0]))), J && (u.value = new Date(J), d.value = new Date(J), unref(o)[1].isAfter(dayjs(J)) && (unref(o)[1] = dayjs(J), c.value = K(unref(o)[1]))), unref(o).every((ee) => ee) && (Z != null && Z.value) && unref(o)[1].diff(unref(o)[0], Z.mode) > Z.value && (unref(o)[0] = unref(o)[1].subtract(Z.value, Z.mode), l.value = K(unref(o)[0])), unref(o).every((ee) => ee) && !X && unref(o)[0].year() !== unref(o)[1].year() && (unref(o)[0] = dayjs(`${unref(o)[1].year()}-01-01`), l.value = K(unref(o)[0])), U(), W();
|
|
11124
11119
|
}
|
|
11125
11120
|
function K(H) {
|
|
11126
11121
|
const J = [];
|
|
@@ -11513,11 +11508,11 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11513
11508
|
const { value: H, label: J } = e.dataFieldNames, Z = [];
|
|
11514
11509
|
if (Array.isArray(unref(u)))
|
|
11515
11510
|
for (const X of unref(u)) {
|
|
11516
|
-
const
|
|
11517
|
-
|
|
11511
|
+
const ee = unref(c).find((Y) => Y[H] === X);
|
|
11512
|
+
ee && Z.push(ee[J]);
|
|
11518
11513
|
}
|
|
11519
11514
|
else {
|
|
11520
|
-
const X = unref(c).find((
|
|
11515
|
+
const X = unref(c).find((ee) => ee[H] === unref(u));
|
|
11521
11516
|
X && Z.push(X[J]);
|
|
11522
11517
|
}
|
|
11523
11518
|
return Z.join(",");
|
|
@@ -11536,52 +11531,52 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11536
11531
|
}
|
|
11537
11532
|
}), g = e.dataFieldNames;
|
|
11538
11533
|
watch(() => [e.value, e.mode, e.selectFirstOption, e.valueType, c.value], () => {
|
|
11539
|
-
const { mode: H, selectFirstOption: J, value: Z } = e, X = m(Z),
|
|
11534
|
+
const { mode: H, selectFirstOption: J, value: Z } = e, X = m(Z), ee = g.value;
|
|
11540
11535
|
if (H === "multiple" || H === "tags" || H === "combobox") {
|
|
11541
11536
|
if (X)
|
|
11542
11537
|
f.value = X.split(",");
|
|
11543
11538
|
else if (J) {
|
|
11544
11539
|
const Y = unref(c)[0];
|
|
11545
|
-
f.value = Y ? [Y[
|
|
11540
|
+
f.value = Y ? [Y[ee]] : [];
|
|
11546
11541
|
}
|
|
11547
11542
|
} else if (X)
|
|
11548
11543
|
f.value = X;
|
|
11549
11544
|
else if (J) {
|
|
11550
11545
|
const Y = unref(c)[0];
|
|
11551
|
-
f.value = Y ? Y[
|
|
11546
|
+
f.value = Y ? Y[ee] : "";
|
|
11552
11547
|
}
|
|
11553
11548
|
}, {
|
|
11554
11549
|
immediate: !0
|
|
11555
11550
|
});
|
|
11556
11551
|
const w = (H, J) => {
|
|
11557
11552
|
const Z = g.label, X = g.value;
|
|
11558
|
-
let
|
|
11553
|
+
let ee;
|
|
11559
11554
|
const Y = J[Z], te = J[X];
|
|
11560
|
-
return Y != null ?
|
|
11555
|
+
return Y != null ? ee = Y : te != null && (ee = te), (ee == null ? void 0 : ee.toLowerCase().indexOf(H == null ? void 0 : H.toLowerCase())) >= 0;
|
|
11561
11556
|
}, C = (H) => {
|
|
11562
11557
|
const { label: J, value: Z, options: X } = e.dataFieldNames;
|
|
11563
11558
|
if (X && Array.isArray(H))
|
|
11564
|
-
if (H.some((
|
|
11565
|
-
const
|
|
11559
|
+
if (H.some((ee) => X in ee)) {
|
|
11560
|
+
const ee = {}, Y = [];
|
|
11566
11561
|
H.forEach((te) => {
|
|
11567
|
-
|
|
11562
|
+
ee[te[X]] || (ee[te[X]] = []), ee[te[X]].push({
|
|
11568
11563
|
[J]: te[J],
|
|
11569
11564
|
[Z]: te[Z]
|
|
11570
11565
|
});
|
|
11571
11566
|
});
|
|
11572
|
-
for (const te in
|
|
11567
|
+
for (const te in ee)
|
|
11573
11568
|
Y.push({
|
|
11574
11569
|
[J]: te,
|
|
11575
|
-
[X]:
|
|
11570
|
+
[X]: ee[te]
|
|
11576
11571
|
});
|
|
11577
11572
|
return Y;
|
|
11578
11573
|
} else
|
|
11579
11574
|
return H;
|
|
11580
11575
|
else {
|
|
11581
11576
|
if (!X && Array.isArray(H))
|
|
11582
|
-
return H = H.map((
|
|
11583
|
-
label:
|
|
11584
|
-
value:
|
|
11577
|
+
return H = H.map((ee) => ({
|
|
11578
|
+
label: ee[J],
|
|
11579
|
+
value: ee[Z]
|
|
11585
11580
|
})), H;
|
|
11586
11581
|
if (!X && !Array.isArray(H))
|
|
11587
11582
|
return H;
|
|
@@ -11591,8 +11586,8 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11591
11586
|
if (c.value = C(((Z = (J = H == null ? void 0 : H.data) == null ? void 0 : J.data) == null ? void 0 : Z.rows) || []), e.selectFirstOption) {
|
|
11592
11587
|
let X = unref(c)[0];
|
|
11593
11588
|
if (g.options) {
|
|
11594
|
-
const
|
|
11595
|
-
|
|
11589
|
+
const ee = X[g.options];
|
|
11590
|
+
ee && ee.length && (X = ee[0]);
|
|
11596
11591
|
}
|
|
11597
11592
|
f.value = X[g.value];
|
|
11598
11593
|
}
|
|
@@ -11621,7 +11616,7 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11621
11616
|
if (e.mode === "multiple")
|
|
11622
11617
|
H = unref(c).filter((X) => unref(f).includes(X[Z])).map((X) => X[J]);
|
|
11623
11618
|
else {
|
|
11624
|
-
const X = unref(c).find((
|
|
11619
|
+
const X = unref(c).find((ee) => unref(f) === ee[Z]);
|
|
11625
11620
|
X && (H = X[J]);
|
|
11626
11621
|
}
|
|
11627
11622
|
}
|
|
@@ -11670,19 +11665,19 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11670
11665
|
var Z, X;
|
|
11671
11666
|
const J = C(H);
|
|
11672
11667
|
if ((X = (Z = e == null ? void 0 : e.graphicConfig) == null ? void 0 : Z.formFields) != null && X.hasAllOption) {
|
|
11673
|
-
const
|
|
11668
|
+
const ee = g.label, Y = g.value;
|
|
11674
11669
|
J.unshift({
|
|
11675
|
-
[
|
|
11670
|
+
[ee]: "全部",
|
|
11676
11671
|
[Y]: ""
|
|
11677
11672
|
});
|
|
11678
11673
|
}
|
|
11679
11674
|
if (c.value = J, e.selectFirstOption) {
|
|
11680
|
-
let
|
|
11675
|
+
let ee = unref(c)[0];
|
|
11681
11676
|
if (g.options) {
|
|
11682
|
-
const Y =
|
|
11683
|
-
Y && Y.length && (
|
|
11677
|
+
const Y = ee[g.options];
|
|
11678
|
+
Y && Y.length && (ee = Y[0]);
|
|
11684
11679
|
}
|
|
11685
|
-
f.value =
|
|
11680
|
+
f.value = ee[g.value];
|
|
11686
11681
|
}
|
|
11687
11682
|
y(e.id, {
|
|
11688
11683
|
type: e.type,
|
|
@@ -11691,16 +11686,16 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11691
11686
|
recordData: unref(F)
|
|
11692
11687
|
});
|
|
11693
11688
|
}, B = (H) => {
|
|
11694
|
-
var
|
|
11689
|
+
var ee;
|
|
11695
11690
|
const { data: J } = (H == null ? void 0 : H.data) || {}, Z = g.label, X = g.value;
|
|
11696
11691
|
if (J) {
|
|
11697
|
-
const { rows: Y = [] } = ((
|
|
11692
|
+
const { rows: Y = [] } = ((ee = H == null ? void 0 : H.data) == null ? void 0 : ee.data) || {};
|
|
11698
11693
|
D.value = Y;
|
|
11699
11694
|
const te = Y.map((oe) => ({
|
|
11700
11695
|
[Z]: oe.label,
|
|
11701
11696
|
[X]: oe.value
|
|
11702
|
-
})), { id:
|
|
11703
|
-
y(
|
|
11697
|
+
})), { id: ne } = e, ie = d(ne);
|
|
11698
|
+
y(ne, { ...ie, ...unref(M) }), _(ne, !0), I(te);
|
|
11704
11699
|
} else
|
|
11705
11700
|
I([]);
|
|
11706
11701
|
}, A = useIndicatorData(e, B), S = async () => {
|
|
@@ -12596,8 +12591,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12596
12591
|
let D;
|
|
12597
12592
|
const M = () => {
|
|
12598
12593
|
p.value = parseFloat(d) / parseFloat(m);
|
|
12599
|
-
const Y = parseFloat(y) / parseFloat(g), te = document.body.offsetWidth,
|
|
12600
|
-
if (C.value = te * unref(p), v.value =
|
|
12594
|
+
const Y = parseFloat(y) / parseFloat(g), te = document.body.offsetWidth, ne = document.body.offsetHeight;
|
|
12595
|
+
if (C.value = te * unref(p), v.value = ne * Y, w.value = `${unref(p) * 100}%`, b.value = {
|
|
12601
12596
|
width: `${unref(C)}px`,
|
|
12602
12597
|
height: `${unref(v)}px`,
|
|
12603
12598
|
border: `${e.borderWidth} solid ${e.borderColor}`,
|
|
@@ -12637,8 +12632,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12637
12632
|
touchRequest: () => {
|
|
12638
12633
|
}
|
|
12639
12634
|
}), I = ref(""), B = () => {
|
|
12640
|
-
var
|
|
12641
|
-
const { title: Y } = e, te = (
|
|
12635
|
+
var ne;
|
|
12636
|
+
const { title: Y } = e, te = (ne = unref(c)) == null ? void 0 : ne.RECORD;
|
|
12642
12637
|
return te ? useVariablesInText(
|
|
12643
12638
|
Y,
|
|
12644
12639
|
{
|
|
@@ -12672,8 +12667,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12672
12667
|
}
|
|
12673
12668
|
}), G = computed(() => {
|
|
12674
12669
|
let Y = e.componentList;
|
|
12675
|
-
const te = cloneDeep(e.componentList),
|
|
12676
|
-
containerMap:
|
|
12670
|
+
const te = cloneDeep(e.componentList), ne = o(), ie = s(), oe = {
|
|
12671
|
+
containerMap: ne,
|
|
12677
12672
|
combinationMap: ie
|
|
12678
12673
|
};
|
|
12679
12674
|
i && (Y = compatibleMobileList({
|
|
@@ -12688,7 +12683,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12688
12683
|
const le = [];
|
|
12689
12684
|
for (const he of Y)
|
|
12690
12685
|
if (he.type === "ecanCirculate") {
|
|
12691
|
-
const de = moveToComponentList(
|
|
12686
|
+
const de = moveToComponentList(ne, unref(te), he.id);
|
|
12692
12687
|
he.componentList = de, le.push(...de.map((ye) => ye.id));
|
|
12693
12688
|
}
|
|
12694
12689
|
if (le != null && le.length)
|
|
@@ -12700,8 +12695,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12700
12695
|
}), K = () => {
|
|
12701
12696
|
const Y = e.id;
|
|
12702
12697
|
let te = [];
|
|
12703
|
-
const
|
|
12704
|
-
Array.isArray(
|
|
12698
|
+
const ne = e.componentList;
|
|
12699
|
+
Array.isArray(ne) && (te = ne.map((ie) => ie.id), N(Y, [...new Set(te)]));
|
|
12705
12700
|
}, H = ref(!1), J = {};
|
|
12706
12701
|
for (const Y of e.requestList)
|
|
12707
12702
|
J[Y.requestName] = useRequestData(Y);
|
|
@@ -13985,9 +13980,9 @@ const _sfc_main$c = defineComponent({
|
|
|
13985
13980
|
let m;
|
|
13986
13981
|
const g = computed(() => s.value ? ZOOM_FONT_SIZE : 12), w = computed(() => {
|
|
13987
13982
|
const { gradientShow: W, gradientColors: G, gradientOffset: K, barBorderRadius: H } = e, J = unref(x), Z = J.length, X = [];
|
|
13988
|
-
for (let
|
|
13983
|
+
for (let ee = 0; ee < Z; ee++) {
|
|
13989
13984
|
const Y = {
|
|
13990
|
-
...J[
|
|
13985
|
+
...J[ee],
|
|
13991
13986
|
type: "bar",
|
|
13992
13987
|
barWidth: e.barWidth.value + e.barWidth.suffix,
|
|
13993
13988
|
showBackground: e.showBarBackground
|
|
@@ -14000,10 +13995,10 @@ const _sfc_main$c = defineComponent({
|
|
|
14000
13995
|
width: e.labelWidth,
|
|
14001
13996
|
overflow: e.labelOverflow,
|
|
14002
13997
|
formatter: (te) => {
|
|
14003
|
-
let
|
|
13998
|
+
let ne = "", ie = e.labelFormatter;
|
|
14004
13999
|
ie === "" && (ie = "{c}");
|
|
14005
14000
|
const { seriesName: oe, name: le, value: he, data: de } = te || {};
|
|
14006
|
-
return
|
|
14001
|
+
return ne += useVariablesInText(
|
|
14007
14002
|
ie,
|
|
14008
14003
|
{
|
|
14009
14004
|
textData: {
|
|
@@ -14019,7 +14014,7 @@ const _sfc_main$c = defineComponent({
|
|
|
14019
14014
|
useNewline: !0,
|
|
14020
14015
|
useSpace: !0
|
|
14021
14016
|
}
|
|
14022
|
-
),
|
|
14017
|
+
), ne;
|
|
14023
14018
|
}
|
|
14024
14019
|
}, Y.itemStyle = {}, W && (Y.itemStyle = {
|
|
14025
14020
|
color: {
|
|
@@ -14029,24 +14024,24 @@ const _sfc_main$c = defineComponent({
|
|
|
14029
14024
|
y2: e.isUseHorizontalAxis ? 0 : 1,
|
|
14030
14025
|
colorStops: [{
|
|
14031
14026
|
offset: 0,
|
|
14032
|
-
color: e.colors[
|
|
14027
|
+
color: e.colors[ee]
|
|
14033
14028
|
}, {
|
|
14034
14029
|
offset: K,
|
|
14035
|
-
color: G[
|
|
14030
|
+
color: G[ee]
|
|
14036
14031
|
}, {
|
|
14037
14032
|
offset: 1,
|
|
14038
|
-
color: G[
|
|
14033
|
+
color: G[ee]
|
|
14039
14034
|
}]
|
|
14040
14035
|
}
|
|
14041
14036
|
}), H) {
|
|
14042
14037
|
const te = H.split(",");
|
|
14043
14038
|
if (te != null && te.length) {
|
|
14044
|
-
const
|
|
14039
|
+
const ne = [];
|
|
14045
14040
|
for (const ie of te) {
|
|
14046
14041
|
const oe = parseFloat(ie);
|
|
14047
|
-
isNaN(oe) ||
|
|
14042
|
+
isNaN(oe) || ne.push(oe);
|
|
14048
14043
|
}
|
|
14049
|
-
Y.itemStyle.borderRadius =
|
|
14044
|
+
Y.itemStyle.borderRadius = ne;
|
|
14050
14045
|
}
|
|
14051
14046
|
}
|
|
14052
14047
|
e.isShowMarkLine && (Y.markLine = {
|
|
@@ -14133,21 +14128,21 @@ const _sfc_main$c = defineComponent({
|
|
|
14133
14128
|
const H = K.length;
|
|
14134
14129
|
let J = "", Z = e.tooltipFormatter;
|
|
14135
14130
|
m = (X = K[0]) == null ? void 0 : X.data, Z === "" && (Z = "{marker} {a} {c}");
|
|
14136
|
-
for (let
|
|
14137
|
-
const { marker: Y, seriesName: te, name:
|
|
14138
|
-
if (
|
|
14139
|
-
let le =
|
|
14140
|
-
typeof
|
|
14131
|
+
for (let ee = 0; ee < H; ee++) {
|
|
14132
|
+
const { marker: Y, seriesName: te, name: ne, value: ie, data: oe } = K[ee] || {};
|
|
14133
|
+
if (ee === 0) {
|
|
14134
|
+
let le = ne;
|
|
14135
|
+
typeof ne == "string" && ne[0] === "0" && !isNaN(+ne) && (le = (+ne).toString()), J += `${useValueFormatter(G, le)}<br/>`;
|
|
14141
14136
|
}
|
|
14142
14137
|
J += useVariablesInText(
|
|
14143
14138
|
Z,
|
|
14144
14139
|
{
|
|
14145
14140
|
textData: {
|
|
14146
14141
|
marker: Y,
|
|
14147
|
-
name:
|
|
14142
|
+
name: ne,
|
|
14148
14143
|
value: ie,
|
|
14149
14144
|
a: te,
|
|
14150
|
-
b:
|
|
14145
|
+
b: ne,
|
|
14151
14146
|
c: ie || 0,
|
|
14152
14147
|
...oe
|
|
14153
14148
|
}
|
|
@@ -14390,14 +14385,14 @@ const _sfc_main$c = defineComponent({
|
|
|
14390
14385
|
await A(W, G);
|
|
14391
14386
|
}, A = (W, G) => new Promise((K) => {
|
|
14392
14387
|
setTimeout(() => {
|
|
14393
|
-
const { series: H, color: J, xAxis: Z } = W, X = o.value.chart, { splitArea:
|
|
14388
|
+
const { series: H, color: J, xAxis: Z } = W, X = o.value.chart, { splitArea: ee = {} } = Z[0] || {};
|
|
14394
14389
|
H.forEach((Y, te) => {
|
|
14395
|
-
const
|
|
14390
|
+
const ne = Y.data;
|
|
14396
14391
|
let ie = "";
|
|
14397
|
-
G % 2 ? ie = J[te] + "a8" : ie = J[te],
|
|
14392
|
+
G % 2 ? ie = J[te] + "a8" : ie = J[te], ne[c.value].itemStyle = {
|
|
14398
14393
|
color: ie
|
|
14399
14394
|
};
|
|
14400
|
-
}), G % 2 ? (
|
|
14395
|
+
}), G % 2 ? (ee.show = !0, ee.areaStyle.color = unref(f).map((Y, te) => te === c.value ? "#ff003b26" : "")) : ee.show = !1, X.setOption({ series: H, xAxis: Z }), K();
|
|
14401
14396
|
}, 200);
|
|
14402
14397
|
});
|
|
14403
14398
|
r({
|
|
@@ -14972,7 +14967,8 @@ const _sfc_main$b = defineComponent({
|
|
|
14972
14967
|
setGlobalModel: (S, R) => {
|
|
14973
14968
|
}
|
|
14974
14969
|
}), b = () => {
|
|
14975
|
-
|
|
14970
|
+
var T, V;
|
|
14971
|
+
const S = (T = unref(a)) == null ? void 0 : T.chart.getModel().getComponent("yAxis").axis.scale._extent, R = (V = unref(a)) == null ? void 0 : V.chart.getModel().getComponent("xAxis").axis.scale._extent;
|
|
14976
14972
|
R && S && (x.value = R[0], u.value = R[1], y.value = S[0], d.value = S[1]);
|
|
14977
14973
|
}, E = computed(() => {
|
|
14978
14974
|
let S = e.dataFieldNames;
|
|
@@ -15472,9 +15468,9 @@ const _sfc_main$9 = defineComponent({
|
|
|
15472
15468
|
let H = "", J = e.tooltipFormatter;
|
|
15473
15469
|
y = (X = G[0]) == null ? void 0 : X.data, J === "" && (J = "{marker} {a} {c}");
|
|
15474
15470
|
const Z = e.seriesTypes;
|
|
15475
|
-
for (let
|
|
15476
|
-
const Y = Z[
|
|
15477
|
-
if (
|
|
15471
|
+
for (let ee = 0; ee < K; ee++) {
|
|
15472
|
+
const Y = Z[ee], { tooltipFormatter: te } = Y || {}, { marker: ne, seriesName: ie, name: oe, value: le, data: he } = G[ee] || {};
|
|
15473
|
+
if (ee === 0) {
|
|
15478
15474
|
let de = oe;
|
|
15479
15475
|
typeof oe == "string" && oe[0] === "0" && !isNaN(+oe) && (de = (+oe).toString()), H += `${useValueFormatter(e.xAxisLabelFormatter, de)}<br/>`;
|
|
15480
15476
|
}
|
|
@@ -15483,7 +15479,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
15483
15479
|
te || J,
|
|
15484
15480
|
{
|
|
15485
15481
|
textData: {
|
|
15486
|
-
marker:
|
|
15482
|
+
marker: ne,
|
|
15487
15483
|
name: oe,
|
|
15488
15484
|
value: le,
|
|
15489
15485
|
seriesName: ie,
|
|
@@ -15586,15 +15582,15 @@ const _sfc_main$9 = defineComponent({
|
|
|
15586
15582
|
function P(G) {
|
|
15587
15583
|
const K = [], H = G.length, J = e.seriesTypes;
|
|
15588
15584
|
for (let Z = 0; Z < H; Z++) {
|
|
15589
|
-
const X = J[Z], { type:
|
|
15585
|
+
const X = J[Z], { type: ee, axisIndex: Y } = X || {};
|
|
15590
15586
|
let te = {
|
|
15591
|
-
type:
|
|
15587
|
+
type: ee,
|
|
15592
15588
|
yAxisIndex: Y,
|
|
15593
15589
|
...G[Z]
|
|
15594
15590
|
};
|
|
15595
|
-
if (
|
|
15596
|
-
const
|
|
15597
|
-
e.shadowColor && (
|
|
15591
|
+
if (ee === "line") {
|
|
15592
|
+
const ne = {};
|
|
15593
|
+
e.shadowColor && (ne.shadowColor = e.shadowColor, ne.shadowBlur = e.shadowBlur, ne.shadowOffsetY = e.shadowOffsetY, ne.shadowOffsetX = e.shadowOffsetX), te = {
|
|
15598
15594
|
...te,
|
|
15599
15595
|
symbolSize: e.symbolSize,
|
|
15600
15596
|
smooth: e.smooth,
|
|
@@ -15621,12 +15617,12 @@ const _sfc_main$9 = defineComponent({
|
|
|
15621
15617
|
},
|
|
15622
15618
|
lineStyle: {
|
|
15623
15619
|
width: e.lineStyleWidth,
|
|
15624
|
-
...
|
|
15620
|
+
...ne
|
|
15625
15621
|
}
|
|
15626
15622
|
};
|
|
15627
15623
|
}
|
|
15628
|
-
if (
|
|
15629
|
-
const { gradientShow:
|
|
15624
|
+
if (ee === "bar") {
|
|
15625
|
+
const { gradientShow: ne, gradientColors: ie, gradientOffset: oe } = e, le = {
|
|
15630
15626
|
color: e.colors[Z]
|
|
15631
15627
|
};
|
|
15632
15628
|
if (e.barBorderRadius) {
|
|
@@ -15640,7 +15636,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
15640
15636
|
le.borderRadius = de;
|
|
15641
15637
|
}
|
|
15642
15638
|
}
|
|
15643
|
-
|
|
15639
|
+
ne && (le.color = {
|
|
15644
15640
|
x: 0,
|
|
15645
15641
|
y: 0,
|
|
15646
15642
|
x2: 0,
|
|
@@ -15799,14 +15795,14 @@ const _sfc_main$9 = defineComponent({
|
|
|
15799
15795
|
await T(G, K);
|
|
15800
15796
|
}, T = (G, K) => new Promise((H) => {
|
|
15801
15797
|
setTimeout(() => {
|
|
15802
|
-
const { series: J, color: Z, xAxis: X } = G,
|
|
15803
|
-
J.forEach((te,
|
|
15798
|
+
const { series: J, color: Z, xAxis: X } = G, ee = l.value.chart, { splitArea: Y = {} } = X[0] || {};
|
|
15799
|
+
J.forEach((te, ne) => {
|
|
15804
15800
|
const ie = te.data;
|
|
15805
15801
|
let oe = "";
|
|
15806
|
-
K % 2 ? oe = Z[
|
|
15802
|
+
K % 2 ? oe = Z[ne] + "a8" : oe = Z[ne], ie[u.value].itemStyle = {
|
|
15807
15803
|
color: oe
|
|
15808
15804
|
};
|
|
15809
|
-
}), K % 2 ? (Y.show = !0, Y.areaStyle.color = unref(x).map((te,
|
|
15805
|
+
}), K % 2 ? (Y.show = !0, Y.areaStyle.color = unref(x).map((te, ne) => ne === u.value ? "#ff003b26" : "")) : Y.show = !1, ee.setOption({ series: J, xAxis: X }), H();
|
|
15810
15806
|
}, 200);
|
|
15811
15807
|
});
|
|
15812
15808
|
r({
|
|
@@ -16930,20 +16926,20 @@ const _sfc_main$5 = defineComponent({
|
|
|
16930
16926
|
W.index = G + 1;
|
|
16931
16927
|
const K = nanoid(), H = cloneDeep(I);
|
|
16932
16928
|
for (const J of H) {
|
|
16933
|
-
const Z = L.find((
|
|
16929
|
+
const Z = L.find((ee) => ee.keyName === J.keyName), X = nanoid();
|
|
16934
16930
|
if (J.left = (parseFloat(J.left) + N) * unref(x) + "px", J.top = (parseFloat(J.top) + j) * unref(x) + "px", J.scale = unref(x), J.id = X, J.keyName = J.name + "_" + X, J.unitId = K, Z != null && Z.fieldName) {
|
|
16935
|
-
const
|
|
16931
|
+
const ee = J.text.match(/\{(.+?)\}/g);
|
|
16936
16932
|
switch (J.type) {
|
|
16937
16933
|
case "ecanText": {
|
|
16938
16934
|
J.data = {
|
|
16939
16935
|
value: String(W[Z.fieldName])
|
|
16940
|
-
},
|
|
16936
|
+
}, ee != null && ee.length || (J.text = "{value}");
|
|
16941
16937
|
break;
|
|
16942
16938
|
}
|
|
16943
16939
|
case "ecanProportion": {
|
|
16944
16940
|
J.data = {
|
|
16945
16941
|
percent: String(W[Z.fieldName])
|
|
16946
|
-
},
|
|
16942
|
+
}, ee != null && ee.length || (J.text = "{percent}");
|
|
16947
16943
|
break;
|
|
16948
16944
|
}
|
|
16949
16945
|
}
|
|
@@ -19031,18 +19027,18 @@ var lottie$1 = { exports: {} };
|
|
|
19031
19027
|
function d(A, S, R) {
|
|
19032
19028
|
return !R && R !== 0 && (R = 1), A === 1 && S === 1 && R === 1 ? this : this._t(A, 0, 0, 0, 0, S, 0, 0, 0, 0, R, 0, 0, 0, 0, 1);
|
|
19033
19029
|
}
|
|
19034
|
-
function y(A, S, R, T, V, U, N, j, W, G, K, H, J, Z, X,
|
|
19035
|
-
return this.props[0] = A, this.props[1] = S, this.props[2] = R, this.props[3] = T, this.props[4] = V, this.props[5] = U, this.props[6] = N, this.props[7] = j, this.props[8] = W, this.props[9] = G, this.props[10] = K, this.props[11] = H, this.props[12] = J, this.props[13] = Z, this.props[14] = X, this.props[15] =
|
|
19030
|
+
function y(A, S, R, T, V, U, N, j, W, G, K, H, J, Z, X, ee) {
|
|
19031
|
+
return this.props[0] = A, this.props[1] = S, this.props[2] = R, this.props[3] = T, this.props[4] = V, this.props[5] = U, this.props[6] = N, this.props[7] = j, this.props[8] = W, this.props[9] = G, this.props[10] = K, this.props[11] = H, this.props[12] = J, this.props[13] = Z, this.props[14] = X, this.props[15] = ee, this;
|
|
19036
19032
|
}
|
|
19037
19033
|
function m(A, S, R) {
|
|
19038
19034
|
return R = R || 0, A !== 0 || S !== 0 || R !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, A, S, R, 1) : this;
|
|
19039
19035
|
}
|
|
19040
|
-
function g(A, S, R, T, V, U, N, j, W, G, K, H, J, Z, X,
|
|
19036
|
+
function g(A, S, R, T, V, U, N, j, W, G, K, H, J, Z, X, ee) {
|
|
19041
19037
|
var Y = this.props;
|
|
19042
19038
|
if (A === 1 && S === 0 && R === 0 && T === 0 && V === 0 && U === 1 && N === 0 && j === 0 && W === 0 && G === 0 && K === 1 && H === 0)
|
|
19043
|
-
return Y[12] = Y[12] * A + Y[15] * J, Y[13] = Y[13] * U + Y[15] * Z, Y[14] = Y[14] * K + Y[15] * X, Y[15] *=
|
|
19044
|
-
var te = Y[0],
|
|
19045
|
-
return Y[0] = te * A +
|
|
19039
|
+
return Y[12] = Y[12] * A + Y[15] * J, Y[13] = Y[13] * U + Y[15] * Z, Y[14] = Y[14] * K + Y[15] * X, Y[15] *= ee, this._identityCalculated = !1, this;
|
|
19040
|
+
var te = Y[0], ne = Y[1], ie = Y[2], oe = Y[3], le = Y[4], he = Y[5], de = Y[6], ye = Y[7], be = Y[8], Ee = Y[9], Te = Y[10], Se = Y[11], ke = Y[12], Ge = Y[13], Ve = Y[14], pe = Y[15];
|
|
19041
|
+
return Y[0] = te * A + ne * V + ie * W + oe * J, Y[1] = te * S + ne * U + ie * G + oe * Z, Y[2] = te * R + ne * N + ie * K + oe * X, Y[3] = te * T + ne * j + ie * H + oe * ee, Y[4] = le * A + he * V + de * W + ye * J, Y[5] = le * S + he * U + de * G + ye * Z, Y[6] = le * R + he * N + de * K + ye * X, Y[7] = le * T + he * j + de * H + ye * ee, Y[8] = be * A + Ee * V + Te * W + Se * J, Y[9] = be * S + Ee * U + Te * G + Se * Z, Y[10] = be * R + Ee * N + Te * K + Se * X, Y[11] = be * T + Ee * j + Te * H + Se * ee, Y[12] = ke * A + Ge * V + Ve * W + pe * J, Y[13] = ke * S + Ge * U + Ve * G + pe * Z, Y[14] = ke * R + Ge * N + Ve * K + pe * X, Y[15] = ke * T + Ge * j + Ve * H + pe * ee, this._identityCalculated = !1, this;
|
|
19046
19042
|
}
|
|
19047
19043
|
function w(A) {
|
|
19048
19044
|
var S = A.props;
|
|
@@ -21550,21 +21546,21 @@ var lottie$1 = { exports: {} };
|
|
|
21550
21546
|
x = d.length, c = 0, f = 0;
|
|
21551
21547
|
var q = e.finalSize * 1.2 * 0.714, $ = !0, I, B, A, S, R;
|
|
21552
21548
|
S = i.length;
|
|
21553
|
-
var T, V = -1, U, N, j, W = m, G = v, K = p, H = -1, J, Z, X,
|
|
21549
|
+
var T, V = -1, U, N, j, W = m, G = v, K = p, H = -1, J, Z, X, ee, Y, te, ne, ie, oe = "", le = this.defaultPropsArray, he;
|
|
21554
21550
|
if (e.j === 2 || e.j === 1) {
|
|
21555
|
-
var de = 0, ye = 0, be = e.j === 2 ? -0.5 : -1,
|
|
21551
|
+
var de = 0, ye = 0, be = e.j === 2 ? -0.5 : -1, Ee = 0, Te = !0;
|
|
21556
21552
|
for (u = 0; u < x; u += 1)
|
|
21557
21553
|
if (d[u].n) {
|
|
21558
|
-
for (de && (de += ye);
|
|
21559
|
-
d[
|
|
21554
|
+
for (de && (de += ye); Ee < u; )
|
|
21555
|
+
d[Ee].animatorJustifyOffset = de, Ee += 1;
|
|
21560
21556
|
de = 0, Te = !0;
|
|
21561
21557
|
} else {
|
|
21562
21558
|
for (A = 0; A < S; A += 1)
|
|
21563
21559
|
I = i[A].a, I.t.propType && (Te && e.j === 2 && (ye += I.t.v * be), B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), T.length ? de += I.t.v * T[0] * be : de += I.t.v * T * be);
|
|
21564
21560
|
Te = !1;
|
|
21565
21561
|
}
|
|
21566
|
-
for (de && (de += ye);
|
|
21567
|
-
d[
|
|
21562
|
+
for (de && (de += ye); Ee < u; )
|
|
21563
|
+
d[Ee].animatorJustifyOffset = de, Ee += 1;
|
|
21568
21564
|
}
|
|
21569
21565
|
for (u = 0; u < x; u += 1) {
|
|
21570
21566
|
if (o.reset(), J = 1, d[u].n)
|
|
@@ -21583,17 +21579,17 @@ var lottie$1 = { exports: {} };
|
|
|
21583
21579
|
H = d[u].line;
|
|
21584
21580
|
}
|
|
21585
21581
|
V !== d[u].ind && (d[V] && (m += d[V].extra), m += d[u].an / 2, V = d[u].ind), m += n[0] * d[u].an * 5e-3;
|
|
21586
|
-
var
|
|
21582
|
+
var Se = 0;
|
|
21587
21583
|
for (A = 0; A < S; A += 1)
|
|
21588
|
-
I = i[A].a, I.p.propType && (B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), T.length ?
|
|
21584
|
+
I = i[A].a, I.p.propType && (B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), T.length ? Se += I.p.v[0] * T[0] : Se += I.p.v[0] * T), I.a.propType && (B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), T.length ? Se += I.a.v[0] * T[0] : Se += I.a.v[0] * T);
|
|
21589
21585
|
for (C = !0, this._pathData.a.v && (m = d[0].an * 0.5 + (P - this._pathData.f.v - d[0].an * 0.5 - d[d.length - 1].an * 0.5) * V / (x - 1), m += this._pathData.f.v); C; )
|
|
21590
|
-
w + k >= m +
|
|
21586
|
+
w + k >= m + Se || !E ? (D = (m + Se - w) / g.partialLength, N = b.point[0] + (g.point[0] - b.point[0]) * D, j = b.point[1] + (g.point[1] - b.point[1]) * D, o.translate(-n[0] * d[u].an * 5e-3, -(n[1] * q) * 0.01), C = !1) : E && (w += g.partialLength, p += 1, p >= E.length && (p = 0, v += 1, _[v] ? E = _[v].points : F.v.c ? (p = 0, v = 0, E = _[v].points) : (w -= g.partialLength, E = null)), E && (b = g, g = E[p], k = g.partialLength));
|
|
21591
21587
|
U = d[u].an / 2 - d[u].add, o.translate(-U, 0, 0);
|
|
21592
21588
|
} else
|
|
21593
21589
|
U = d[u].an / 2 - d[u].add, o.translate(-U, 0, 0), o.translate(-n[0] * d[u].an * 5e-3, -n[1] * q * 0.01, 0);
|
|
21594
21590
|
for (A = 0; A < S; A += 1)
|
|
21595
21591
|
I = i[A].a, I.t.propType && (B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? T.length ? m += I.t.v * T[0] : m += I.t.v * T : T.length ? c += I.t.v * T[0] : c += I.t.v * T));
|
|
21596
|
-
for (e.strokeWidthAnim && (X = e.sw || 0), e.strokeColorAnim && (e.sc ? Z = [e.sc[0], e.sc[1], e.sc[2]] : Z = [0, 0, 0]), e.fillColorAnim && e.fc && (
|
|
21592
|
+
for (e.strokeWidthAnim && (X = e.sw || 0), e.strokeColorAnim && (e.sc ? Z = [e.sc[0], e.sc[1], e.sc[2]] : Z = [0, 0, 0]), e.fillColorAnim && e.fc && (ee = [e.fc[0], e.fc[1], e.fc[2]]), A = 0; A < S; A += 1)
|
|
21597
21593
|
I = i[A].a, I.a.propType && (B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), T.length ? o.translate(-I.a.v[0] * T[0], -I.a.v[1] * T[1], I.a.v[2] * T[2]) : o.translate(-I.a.v[0] * T, -I.a.v[1] * T, I.a.v[2] * T));
|
|
21598
21594
|
for (A = 0; A < S; A += 1)
|
|
21599
21595
|
I = i[A].a, I.s.propType && (B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), T.length ? o.scale(1 + (I.s.v[0] - 1) * T[0], 1 + (I.s.v[1] - 1) * T[1], 1) : o.scale(1 + (I.s.v[0] - 1) * T, 1 + (I.s.v[1] - 1) * T, 1));
|
|
@@ -21604,17 +21600,17 @@ var lottie$1 = { exports: {} };
|
|
|
21604
21600
|
if (e.fillColorAnim && e.fc) {
|
|
21605
21601
|
if (I.fc.propType)
|
|
21606
21602
|
for (Y = 0; Y < 3; Y += 1)
|
|
21607
|
-
T.length ?
|
|
21608
|
-
I.fh.propType && (T.length ?
|
|
21603
|
+
T.length ? ee[Y] += (I.fc.v[Y] - ee[Y]) * T[0] : ee[Y] += (I.fc.v[Y] - ee[Y]) * T;
|
|
21604
|
+
I.fh.propType && (T.length ? ee = addHueToRGB(ee, I.fh.v * T[0]) : ee = addHueToRGB(ee, I.fh.v * T)), I.fs.propType && (T.length ? ee = addSaturationToRGB(ee, I.fs.v * T[0]) : ee = addSaturationToRGB(ee, I.fs.v * T)), I.fb.propType && (T.length ? ee = addBrightnessToRGB(ee, I.fb.v * T[0]) : ee = addBrightnessToRGB(ee, I.fb.v * T));
|
|
21609
21605
|
}
|
|
21610
21606
|
}
|
|
21611
21607
|
for (A = 0; A < S; A += 1)
|
|
21612
21608
|
I = i[A].a, I.p.propType && (B = i[A].s, T = B.getMult(d[u].anIndexes[A], a.a[A].s.totalChars), this._hasMaskedPath ? T.length ? o.translate(0, I.p.v[1] * T[0], -I.p.v[2] * T[1]) : o.translate(0, I.p.v[1] * T, -I.p.v[2] * T) : T.length ? o.translate(I.p.v[0] * T[0], I.p.v[1] * T[1], -I.p.v[2] * T[2]) : o.translate(I.p.v[0] * T, I.p.v[1] * T, -I.p.v[2] * T));
|
|
21613
|
-
if (e.strokeWidthAnim && (te = X < 0 ? 0 : X), e.strokeColorAnim && (
|
|
21609
|
+
if (e.strokeWidthAnim && (te = X < 0 ? 0 : X), e.strokeColorAnim && (ne = "rgb(" + Math.round(Z[0] * 255) + "," + Math.round(Z[1] * 255) + "," + Math.round(Z[2] * 255) + ")"), e.fillColorAnim && e.fc && (ie = "rgb(" + Math.round(ee[0] * 255) + "," + Math.round(ee[1] * 255) + "," + Math.round(ee[2] * 255) + ")"), this._hasMaskedPath) {
|
|
21614
21610
|
if (o.translate(0, -e.ls), o.translate(0, n[1] * q * 0.01 + f, 0), this._pathData.p.v) {
|
|
21615
21611
|
M = (g.point[1] - b.point[1]) / (g.point[0] - b.point[0]);
|
|
21616
|
-
var
|
|
21617
|
-
g.point[0] < b.point[0] && (
|
|
21612
|
+
var ke = Math.atan(M) * 180 / Math.PI;
|
|
21613
|
+
g.point[0] < b.point[0] && (ke += 180), o.rotate(-ke * Math.PI / 180);
|
|
21618
21614
|
}
|
|
21619
21615
|
o.translate(N, j, 0), m -= n[0] * d[u].an * 5e-3, d[u + 1] && V !== d[u + 1].ind && (m += d[u].an / 2, m += e.tr * 1e-3 * e.finalSize);
|
|
21620
21616
|
} else {
|
|
@@ -21630,7 +21626,7 @@ var lottie$1 = { exports: {} };
|
|
|
21630
21626
|
}
|
|
21631
21627
|
s === "html" ? oe = o.toCSS() : s === "svg" ? oe = o.to2dCSS() : le = [o.props[0], o.props[1], o.props[2], o.props[3], o.props[4], o.props[5], o.props[6], o.props[7], o.props[8], o.props[9], o.props[10], o.props[11], o.props[12], o.props[13], o.props[14], o.props[15]], he = J;
|
|
21632
21628
|
}
|
|
21633
|
-
l <= u ? (R = new LetterProps(he, te,
|
|
21629
|
+
l <= u ? (R = new LetterProps(he, te, ne, ie, oe, le), this.renderedLetters.push(R), l += 1, this.lettersChangedFlag = !0) : (R = this.renderedLetters[u], this.lettersChangedFlag = R.update(he, te, ne, ie, oe, le) || this.lettersChangedFlag);
|
|
21634
21630
|
}
|
|
21635
21631
|
}
|
|
21636
21632
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -25088,46 +25084,46 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25088
25084
|
const { pageMode: n } = inject(GLOBAL_CONFIG, {
|
|
25089
25085
|
pageMode: "normal"
|
|
25090
25086
|
}), i = ref(!1), a = computed(() => unref(n) !== "design" && e.isAutoScroll), o = ref({}), s = ref(!1), l = computed(() => {
|
|
25091
|
-
const
|
|
25092
|
-
return e.isUseSeq &&
|
|
25087
|
+
const Q = cloneDeep(e.columns);
|
|
25088
|
+
return e.isUseSeq && Q.unshift({
|
|
25093
25089
|
title: e.seqName,
|
|
25094
25090
|
dataIndex: "SEQ",
|
|
25095
25091
|
align: "center",
|
|
25096
25092
|
width: e.seqWidth
|
|
25097
|
-
}), e.isUseAction &&
|
|
25093
|
+
}), e.isUseAction && Q.push({
|
|
25098
25094
|
title: "操作",
|
|
25099
25095
|
dataIndex: "ACTION",
|
|
25100
25096
|
width: e.actionColumnWidth
|
|
25101
|
-
}),
|
|
25097
|
+
}), Q;
|
|
25102
25098
|
}), c = ref(), f = ref(!1), u = usePickComponentStyle(e), x = ref([]), d = computed(() => e.scrollX), y = ref(parseFloat(e.height)), m = () => {
|
|
25103
|
-
let
|
|
25099
|
+
let Q = 0;
|
|
25104
25100
|
switch (e.size) {
|
|
25105
25101
|
case "small":
|
|
25106
|
-
|
|
25102
|
+
Q = 50;
|
|
25107
25103
|
break;
|
|
25108
25104
|
case "middle":
|
|
25109
|
-
|
|
25105
|
+
Q = 53;
|
|
25110
25106
|
break;
|
|
25111
25107
|
default:
|
|
25112
|
-
|
|
25108
|
+
Q = 65;
|
|
25113
25109
|
break;
|
|
25114
25110
|
}
|
|
25115
|
-
return
|
|
25111
|
+
return Q;
|
|
25116
25112
|
}, g = ref(0), w = ref(""), C = ref(0);
|
|
25117
25113
|
watchEffect(() => {
|
|
25118
|
-
var
|
|
25119
|
-
(
|
|
25120
|
-
let
|
|
25114
|
+
var Q;
|
|
25115
|
+
(Q = x.value) != null && Q.length && e.height && setTimeout(() => {
|
|
25116
|
+
let re = parseFloat(e.height), ae = document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`), ue = document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`);
|
|
25121
25117
|
const ce = document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);
|
|
25122
25118
|
let fe = 0;
|
|
25123
|
-
if (ue && (
|
|
25119
|
+
if (ue && (re -= (ue == null ? void 0 : ue.clientHeight) || 0), ce && e.isSummaryFixed && (fe = (ce == null ? void 0 : ce.clientHeight) || 0, re -= fe), e.paginationShow && !e.isAutoScroll) {
|
|
25124
25120
|
let se = 0;
|
|
25125
|
-
se = m(), se && (
|
|
25121
|
+
se = m(), se && (re -= se);
|
|
25126
25122
|
}
|
|
25127
|
-
(ae == null ? void 0 : ae.clientHeight) >
|
|
25123
|
+
(ae == null ? void 0 : ae.clientHeight) > re ? y.value = re : y.value = 0, nextTick(() => {
|
|
25128
25124
|
if (fe) {
|
|
25129
25125
|
const se = document.querySelector(`#ecanTable-${e.id} .ant-table-summary`), ge = (se == null ? void 0 : se.clientHeight) || 0;
|
|
25130
|
-
fe !== ge && unref(y) && (y.value =
|
|
25126
|
+
fe !== ge && unref(y) && (y.value = re + fe - ge);
|
|
25131
25127
|
}
|
|
25132
25128
|
e.isAutoScroll && i.value && setTimeout(() => {
|
|
25133
25129
|
var Ce;
|
|
@@ -25139,22 +25135,22 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25139
25135
|
};
|
|
25140
25136
|
const xe = document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);
|
|
25141
25137
|
if (w.value = (Ce = document.querySelector(`#ecanTable-${e.id} .ant-table`)) == null ? void 0 : Ce.className, xe) {
|
|
25142
|
-
const
|
|
25138
|
+
const we = xe.cloneNode(!0);
|
|
25143
25139
|
xe.style.visibility = "hidden", setTimeout(() => {
|
|
25144
25140
|
ge == null || ge.setAttribute("id", "hiddenTableBody");
|
|
25145
25141
|
}, 0);
|
|
25146
|
-
const
|
|
25147
|
-
if (
|
|
25148
|
-
for (const
|
|
25149
|
-
|
|
25150
|
-
const
|
|
25151
|
-
if (
|
|
25152
|
-
for (const
|
|
25153
|
-
p(
|
|
25154
|
-
const
|
|
25155
|
-
|
|
25156
|
-
var
|
|
25157
|
-
document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft = ((
|
|
25142
|
+
const Me = document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);
|
|
25143
|
+
if (Me != null && Me.length) {
|
|
25144
|
+
for (const Ue of Me)
|
|
25145
|
+
Ue.append(we.cloneNode(!0));
|
|
25146
|
+
const qe = document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);
|
|
25147
|
+
if (qe != null && qe.length)
|
|
25148
|
+
for (const Ue of qe)
|
|
25149
|
+
p(Ue);
|
|
25150
|
+
const We = document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);
|
|
25151
|
+
We && We.addEventListener("scroll", (Ue) => {
|
|
25152
|
+
var Ke;
|
|
25153
|
+
document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft = ((Ke = Ue == null ? void 0 : Ue.target) == null ? void 0 : Ke.scrollLeft) || 0;
|
|
25158
25154
|
});
|
|
25159
25155
|
}
|
|
25160
25156
|
}
|
|
@@ -25162,127 +25158,127 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25162
25158
|
});
|
|
25163
25159
|
}, 0);
|
|
25164
25160
|
});
|
|
25165
|
-
function p(
|
|
25166
|
-
|
|
25167
|
-
const ue = v(
|
|
25161
|
+
function p(Q) {
|
|
25162
|
+
Q.addEventListener("click", (re) => {
|
|
25163
|
+
const ue = v(re.target).getAttribute("dix");
|
|
25168
25164
|
if (ue) {
|
|
25169
25165
|
const ce = document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ue}"]`);
|
|
25170
25166
|
ce && ce.click();
|
|
25171
25167
|
}
|
|
25172
25168
|
});
|
|
25173
25169
|
}
|
|
25174
|
-
function v(
|
|
25175
|
-
return
|
|
25170
|
+
function v(Q) {
|
|
25171
|
+
return Q.className.includes("ant-table-cell") ? Q : v(Q.parentElement);
|
|
25176
25172
|
}
|
|
25177
|
-
const b = ref([]), E = ref([]), _ = ref([]), k = ref([]), P = ref(0), D = ref(1), M = ref(e.paginationPageSize || 10), F = reactive([]), O = (
|
|
25173
|
+
const b = ref([]), E = ref([]), _ = ref([]), k = ref([]), P = ref(0), D = ref(1), M = ref(e.paginationPageSize || 10), F = reactive([]), O = (Q, re) => {
|
|
25178
25174
|
let ae = "";
|
|
25179
|
-
return
|
|
25175
|
+
return Q.forEach((ue, ce) => {
|
|
25180
25176
|
const { value: fe, rule: se } = ue;
|
|
25181
|
-
ue.conditions ? ae += `(${O(ue.conditions, ue.join)})` : fe && se && (ae += `value ${se} '${fe}'`), ae += `${ce ===
|
|
25177
|
+
ue.conditions ? ae += `(${O(ue.conditions, ue.join)})` : fe && se && (ae += `value ${se} '${fe}'`), ae += `${ce === Q.length - 1 ? "" : re ? " " + re + " " : ""}`;
|
|
25182
25178
|
}), ae;
|
|
25183
|
-
}, L = (
|
|
25184
|
-
var
|
|
25185
|
-
if (Array.isArray(
|
|
25186
|
-
let ue =
|
|
25179
|
+
}, L = (Q = []) => {
|
|
25180
|
+
var re, ae;
|
|
25181
|
+
if (Array.isArray(Q) && Q.length > 0) {
|
|
25182
|
+
let ue = Q.length;
|
|
25187
25183
|
const ce = e.columnsFixedNum;
|
|
25188
|
-
if (e.dataType === "indicator" && ((
|
|
25184
|
+
if (e.dataType === "indicator" && ((re = unref(l)) != null && re.length) && !unref(l).find((fe) => {
|
|
25189
25185
|
var se;
|
|
25190
25186
|
return (se = fe.children) == null ? void 0 : se.length;
|
|
25191
25187
|
})) {
|
|
25192
25188
|
const { graphicConfig: { indicators: fe = [] } } = e;
|
|
25193
|
-
|
|
25189
|
+
Q.forEach((se, ge) => {
|
|
25194
25190
|
if (unref(l)[ge])
|
|
25195
|
-
for (const
|
|
25196
|
-
["dataIndex", "title"].includes(
|
|
25197
|
-
const xe = fe.find((
|
|
25191
|
+
for (const we in unref(l)[ge])
|
|
25192
|
+
["dataIndex", "title"].includes(we) || (se[we] = unref(l)[ge][we]);
|
|
25193
|
+
const xe = fe.find((we) => we.label === se.title), { showLabel: Ce = "" } = xe || {};
|
|
25198
25194
|
Ce && (se.title = Ce);
|
|
25199
25195
|
});
|
|
25200
25196
|
}
|
|
25201
25197
|
for (let fe = ue - 1; fe >= 0; fe--)
|
|
25202
|
-
(ae =
|
|
25203
|
-
ue =
|
|
25198
|
+
(ae = Q[fe]) != null && ae.isHidden && Q.splice(fe, 1);
|
|
25199
|
+
ue = Q.length;
|
|
25204
25200
|
for (let fe = 0; fe < ue; fe++) {
|
|
25205
|
-
const se =
|
|
25201
|
+
const se = Q[fe];
|
|
25206
25202
|
if (fe < ce ? se.fixed = "left" : se.fixed = !1, e.isSortByFront && se.sorter) {
|
|
25207
|
-
const
|
|
25208
|
-
se.sorter = (
|
|
25203
|
+
const Ye = se.dataIndex;
|
|
25204
|
+
se.sorter = (Je, Ze) => Je[Ye] - Ze[Ye];
|
|
25209
25205
|
}
|
|
25210
25206
|
const {
|
|
25211
25207
|
cellAlign: ge = "center",
|
|
25212
25208
|
cellColor: xe,
|
|
25213
25209
|
dataIndex: Ce,
|
|
25214
|
-
title:
|
|
25215
|
-
tableFilter:
|
|
25216
|
-
headerCellAlign:
|
|
25217
|
-
headerCellColor:
|
|
25218
|
-
overflow:
|
|
25219
|
-
conditions:
|
|
25210
|
+
title: we,
|
|
25211
|
+
tableFilter: Me,
|
|
25212
|
+
headerCellAlign: qe,
|
|
25213
|
+
headerCellColor: We,
|
|
25214
|
+
overflow: Ue,
|
|
25215
|
+
conditions: Ke
|
|
25220
25216
|
} = se;
|
|
25221
|
-
|
|
25217
|
+
Me && (F.push(Ce), se.filterOptionsInputValue = "", se.filterCheckboxGroupValue = [], se.customFilterDropdown = !0, se.onFilter = (Ye, Je) => Je[Ce].toString().toLowerCase().includes(Ye.toLowerCase())), Ke && (se.conditionCode = O(Ke)), se.customHeaderCell = () => ({
|
|
25222
25218
|
style: {
|
|
25223
25219
|
display: "table-cell",
|
|
25224
25220
|
verticalAlign: "middle",
|
|
25225
25221
|
fontSize: e.headerFontSize,
|
|
25226
25222
|
fontWeight: e.headerFontWeight,
|
|
25227
|
-
textAlign:
|
|
25228
|
-
color:
|
|
25223
|
+
textAlign: qe || "center",
|
|
25224
|
+
color: We || e.headerFontColor,
|
|
25229
25225
|
borderBottomColor: e.borderColor,
|
|
25230
25226
|
backgroundColor: e.headerBackgroundColor
|
|
25231
25227
|
}
|
|
25232
|
-
}), se.customCell = (
|
|
25228
|
+
}), se.customCell = (Ye, Je, Ze) => ({
|
|
25233
25229
|
style: {
|
|
25234
25230
|
textAlign: ge,
|
|
25235
|
-
color: q(
|
|
25231
|
+
color: q(Ze) ? e.linkTextColor : xe || e.cellFontColor,
|
|
25236
25232
|
backgroundColor: e.cellBackgroundColor,
|
|
25237
25233
|
borderBottomColor: e.borderColor
|
|
25238
25234
|
},
|
|
25239
25235
|
class: {
|
|
25240
|
-
highlight: unref(he) ===
|
|
25241
|
-
linkText: q(
|
|
25236
|
+
highlight: unref(he) === Je && e.clickHighlight,
|
|
25237
|
+
linkText: q(Ze)
|
|
25242
25238
|
},
|
|
25243
|
-
dix:
|
|
25239
|
+
dix: Ze.dataIndex + "_" + Je,
|
|
25244
25240
|
onClick: X("click", () => {
|
|
25245
|
-
const Xe = e.id, it =
|
|
25246
|
-
|
|
25241
|
+
const Xe = e.id, it = ee(Xe);
|
|
25242
|
+
Ye = {
|
|
25247
25243
|
dataIndex: Ce,
|
|
25248
|
-
title:
|
|
25249
|
-
...
|
|
25250
|
-
}, Y(Xe, { ...it, type: e.type, RECORD:
|
|
25244
|
+
title: we,
|
|
25245
|
+
...Ye
|
|
25246
|
+
}, Y(Xe, { ...it, type: e.type, RECORD: Ye }), he.value = Je, setTimeout(() => {
|
|
25251
25247
|
if (!e.linkPage && !e.href)
|
|
25252
25248
|
return;
|
|
25253
25249
|
let Qe = !1;
|
|
25254
|
-
(q(
|
|
25250
|
+
(q(Ze) || e.clickTarget !== "cell") && (Qe = !0), Qe && handleJumpLink(e, {
|
|
25255
25251
|
pageMode: unref(n),
|
|
25256
25252
|
getRecordValueByKeyName: te
|
|
25257
25253
|
});
|
|
25258
25254
|
}, 0);
|
|
25259
25255
|
})
|
|
25260
|
-
}),
|
|
25256
|
+
}), Ue === "ellipsis" ? se.ellipsis = !0 : se.ellipsis = !1, Array.isArray(se.children) && L(se.children);
|
|
25261
25257
|
}
|
|
25262
25258
|
}
|
|
25263
25259
|
};
|
|
25264
|
-
function q(
|
|
25265
|
-
let
|
|
25266
|
-
return e.clickTarget === "cell" && e.clickTargetColumns.includes(
|
|
25260
|
+
function q(Q) {
|
|
25261
|
+
let re = !1;
|
|
25262
|
+
return e.clickTarget === "cell" && e.clickTargetColumns.includes(Q.dataIndex) && (re = !0), re;
|
|
25267
25263
|
}
|
|
25268
|
-
const $ = (
|
|
25264
|
+
const $ = (Q = []) => {
|
|
25269
25265
|
var ae;
|
|
25270
|
-
let
|
|
25271
|
-
return (ae = unref(k)) != null && ae.length && (
|
|
25266
|
+
let re = cloneDeep(Q);
|
|
25267
|
+
return (ae = unref(k)) != null && ae.length && (re = cloneDeep(unref(k))), e.isUseSeq && re.unshift({
|
|
25272
25268
|
title: e.seqName,
|
|
25273
25269
|
dataIndex: "SEQ",
|
|
25274
25270
|
align: "center",
|
|
25275
25271
|
width: e.seqWidth
|
|
25276
|
-
}), e.isUseAction &&
|
|
25272
|
+
}), e.isUseAction && re.push({
|
|
25277
25273
|
title: "操作",
|
|
25278
25274
|
dataIndex: "ACTION",
|
|
25279
25275
|
width: e.actionColumnWidth
|
|
25280
|
-
}), L(
|
|
25276
|
+
}), L(re), re;
|
|
25281
25277
|
};
|
|
25282
25278
|
watch(M, () => {
|
|
25283
25279
|
D.value = 1, be(!1);
|
|
25284
|
-
}), watch(c, (
|
|
25285
|
-
f.value = !!
|
|
25280
|
+
}), watch(c, (Q) => {
|
|
25281
|
+
f.value = !!Q;
|
|
25286
25282
|
}), watch(() => [
|
|
25287
25283
|
e.columns,
|
|
25288
25284
|
e.isUseSeq,
|
|
@@ -25301,23 +25297,23 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25301
25297
|
}, {
|
|
25302
25298
|
immediate: !0,
|
|
25303
25299
|
deep: !0
|
|
25304
|
-
}), watch(() => [e.data, e.dataType], ([
|
|
25305
|
-
|
|
25300
|
+
}), watch(() => [e.data, e.dataType], ([Q, re]) => {
|
|
25301
|
+
re === "static" && (E.value = Q);
|
|
25306
25302
|
}, {
|
|
25307
25303
|
immediate: !0
|
|
25308
25304
|
});
|
|
25309
|
-
const I = ref({}), B = (
|
|
25310
|
-
if (Array.isArray(
|
|
25311
|
-
const
|
|
25312
|
-
for (let se = 0; se <
|
|
25313
|
-
const ge =
|
|
25305
|
+
const I = ref({}), B = (Q) => {
|
|
25306
|
+
if (Array.isArray(Q)) {
|
|
25307
|
+
const re = Q.length, ae = F, ue = ae.length, ce = {};
|
|
25308
|
+
for (let se = 0; se < re; se++) {
|
|
25309
|
+
const ge = Q[se];
|
|
25314
25310
|
for (let xe = 0; xe < ue; xe++) {
|
|
25315
25311
|
const Ce = ae[xe];
|
|
25316
25312
|
if (ce[Ce])
|
|
25317
25313
|
ce[Ce].add(ge[Ce]);
|
|
25318
25314
|
else {
|
|
25319
|
-
const
|
|
25320
|
-
|
|
25315
|
+
const we = /* @__PURE__ */ new Set();
|
|
25316
|
+
we.add(ge[Ce]), ce[Ce] = we;
|
|
25321
25317
|
}
|
|
25322
25318
|
}
|
|
25323
25319
|
}
|
|
@@ -25331,24 +25327,24 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25331
25327
|
}
|
|
25332
25328
|
};
|
|
25333
25329
|
watch(() => [e.isReverse, b.value, E.value], () => {
|
|
25334
|
-
const
|
|
25335
|
-
if (B(
|
|
25336
|
-
const { columns: ae, dataSource: ue } = A(cloneDeep(
|
|
25330
|
+
const Q = unref(b), re = unref(E);
|
|
25331
|
+
if (B(re), e.isReverse) {
|
|
25332
|
+
const { columns: ae, dataSource: ue } = A(cloneDeep(Q), cloneDeep(re));
|
|
25337
25333
|
_.value = ae, x.value = ue.map((ce) => ({ key: nanoid(6), ...ce }));
|
|
25338
25334
|
} else
|
|
25339
|
-
_.value =
|
|
25335
|
+
_.value = Q, x.value = re.map((ae) => ({ key: nanoid(6), ...ae }));
|
|
25340
25336
|
}, {
|
|
25341
25337
|
immediate: !0
|
|
25342
25338
|
});
|
|
25343
|
-
const A = (
|
|
25344
|
-
const ae =
|
|
25339
|
+
const A = (Q, re) => {
|
|
25340
|
+
const ae = Q[0], ue = [{
|
|
25345
25341
|
title: ae.title,
|
|
25346
25342
|
dataIndex: "col0",
|
|
25347
25343
|
key: "col0",
|
|
25348
25344
|
align: "center"
|
|
25349
25345
|
}];
|
|
25350
|
-
for (let fe = 0; fe <
|
|
25351
|
-
const se =
|
|
25346
|
+
for (let fe = 0; fe < re.length; fe++) {
|
|
25347
|
+
const se = re[fe], ge = "col" + (fe + 1);
|
|
25352
25348
|
ue.push({
|
|
25353
25349
|
title: se[ae.dataIndex],
|
|
25354
25350
|
dataIndex: ge,
|
|
@@ -25357,10 +25353,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25357
25353
|
});
|
|
25358
25354
|
}
|
|
25359
25355
|
const ce = [];
|
|
25360
|
-
for (let fe = 1; fe <
|
|
25361
|
-
const se =
|
|
25362
|
-
for (let xe = 0; xe <
|
|
25363
|
-
const Ce =
|
|
25356
|
+
for (let fe = 1; fe < Q.length; fe++) {
|
|
25357
|
+
const se = Q[fe], ge = { col0: se.title };
|
|
25358
|
+
for (let xe = 0; xe < re.length; xe++) {
|
|
25359
|
+
const Ce = re[xe];
|
|
25364
25360
|
ge[`col${xe + 1}`] = Ce[se.dataIndex];
|
|
25365
25361
|
}
|
|
25366
25362
|
ce.push(ge);
|
|
@@ -25369,13 +25365,13 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25369
25365
|
columns: ue,
|
|
25370
25366
|
dataSource: ce
|
|
25371
25367
|
};
|
|
25372
|
-
}, S = ref(""), R = (
|
|
25368
|
+
}, S = ref(""), R = (Q) => {
|
|
25373
25369
|
var ue;
|
|
25374
|
-
const { rows:
|
|
25375
|
-
if (P.value = ae, Array.isArray(
|
|
25370
|
+
const { rows: re = [], total: ae = 0 } = ((ue = Q == null ? void 0 : Q.data) == null ? void 0 : ue.data) || {};
|
|
25371
|
+
if (P.value = ae, Array.isArray(re) && (E.value = re), window.config.routerBaseURL.includes("1523545080925487106")) {
|
|
25376
25372
|
const { requestParams: ce = [] } = e, fe = ce.find((se) => se.key === "dataSqlId");
|
|
25377
25373
|
if ((fe == null ? void 0 : fe.value) === "xt_jxzebg") {
|
|
25378
|
-
const se =
|
|
25374
|
+
const se = re.filter((ge) => !ge.绩效总额).map((ge) => ge.ORG_NAME);
|
|
25379
25375
|
se != null && se.length && nextTick(() => {
|
|
25380
25376
|
notification.warning({
|
|
25381
25377
|
message: "提示",
|
|
@@ -25386,23 +25382,23 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25386
25382
|
}
|
|
25387
25383
|
}
|
|
25388
25384
|
i.value = !0;
|
|
25389
|
-
}, T = useRequestData(e), V = async (
|
|
25385
|
+
}, T = useRequestData(e), V = async (Q = !0, re = {}) => {
|
|
25390
25386
|
try {
|
|
25391
|
-
|
|
25387
|
+
Q && (s.value = !0), unref(S) && (re.orderCondition = unref(S)), e.paginationShow && (re = {
|
|
25392
25388
|
pageNum: unref(D),
|
|
25393
25389
|
pageSize: unref(M) || "10",
|
|
25394
25390
|
layer: "1",
|
|
25395
|
-
...
|
|
25391
|
+
...re
|
|
25396
25392
|
});
|
|
25397
|
-
const ae = await T(
|
|
25393
|
+
const ae = await T(re);
|
|
25398
25394
|
R(ae);
|
|
25399
25395
|
} catch (ae) {
|
|
25400
25396
|
console.error(ae);
|
|
25401
25397
|
} finally {
|
|
25402
25398
|
s.value = !1;
|
|
25403
25399
|
}
|
|
25404
|
-
}, U = ({ current:
|
|
25405
|
-
if (D.value =
|
|
25400
|
+
}, U = ({ current: Q }, re, ae) => {
|
|
25401
|
+
if (D.value = Q, ae && Object.keys(ae).length > 0) {
|
|
25406
25402
|
const { field: ue, order: ce } = ae, se = {
|
|
25407
25403
|
ascend: "asc",
|
|
25408
25404
|
descend: "desc"
|
|
@@ -25411,10 +25407,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25411
25407
|
}
|
|
25412
25408
|
e.isSortByFront || be(!1);
|
|
25413
25409
|
}, N = computed(() => {
|
|
25414
|
-
const
|
|
25410
|
+
const Q = e.simple, re = [e.paginationPosition], ae = {};
|
|
25415
25411
|
return e.isShowTotal && (ae.showTotal = (ue) => `共 ${ue} 条数据`), e.paginationShow && {
|
|
25416
|
-
simple:
|
|
25417
|
-
position:
|
|
25412
|
+
simple: Q,
|
|
25413
|
+
position: re,
|
|
25418
25414
|
total: unref(P),
|
|
25419
25415
|
current: unref(D),
|
|
25420
25416
|
pageSize: unref(M) || "10",
|
|
@@ -25422,11 +25418,11 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25422
25418
|
size: "large",
|
|
25423
25419
|
...ae
|
|
25424
25420
|
};
|
|
25425
|
-
}), j = (
|
|
25426
|
-
const { format: ae, retentiondigit: ue, customFormatter: ce, defaultVal: fe } =
|
|
25421
|
+
}), j = (Q) => +Q == 1 ? "是" : +Q == 0 ? "否" : Q, W = (Q, re) => {
|
|
25422
|
+
const { format: ae, retentiondigit: ue, customFormatter: ce, defaultVal: fe } = re;
|
|
25427
25423
|
let se = "";
|
|
25428
25424
|
if (ae == null || ae === "")
|
|
25429
|
-
se =
|
|
25425
|
+
se = Q;
|
|
25430
25426
|
else {
|
|
25431
25427
|
const ge = {
|
|
25432
25428
|
money: formatMoney,
|
|
@@ -25436,116 +25432,116 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25436
25432
|
decimals: formatDecimals,
|
|
25437
25433
|
custom: formatCustom
|
|
25438
25434
|
};
|
|
25439
|
-
ge[ae] || (se = ""), ae === "decimals" ? se = ge[ae](
|
|
25435
|
+
ge[ae] || (se = ""), ae === "decimals" ? se = ge[ae](Q, ue) || "" : ae === "custom" ? se = ge[ae](Q, ce) || "" : se = ge[ae](Q) || "";
|
|
25440
25436
|
}
|
|
25441
25437
|
return se || (se = fe), se;
|
|
25442
|
-
}, G = (
|
|
25443
|
-
const { text:
|
|
25438
|
+
}, G = (Q) => Q === "contrast" ? "upDown" : "", K = (Q) => {
|
|
25439
|
+
const { text: re, format: ae, declineColor: ue = "#39cf93", increaseColor: ce = "#ff512e" } = Q;
|
|
25444
25440
|
if (ae === "contrast") {
|
|
25445
25441
|
const fe = {
|
|
25446
25442
|
fontSize: e.fontSize
|
|
25447
|
-
}, se = parseFloat(
|
|
25443
|
+
}, se = parseFloat(re + "");
|
|
25448
25444
|
return se >= 0 ? fe.color = ce : se < 0 && (fe.color = ue), fe;
|
|
25449
25445
|
} else
|
|
25450
25446
|
return {};
|
|
25451
25447
|
}, H = computed(() => {
|
|
25452
|
-
const { fontSize:
|
|
25448
|
+
const { fontSize: Q } = e;
|
|
25453
25449
|
return {
|
|
25454
|
-
width:
|
|
25455
|
-
height:
|
|
25456
|
-
textIndent: `-${parseFloat(
|
|
25450
|
+
width: Q,
|
|
25451
|
+
height: Q,
|
|
25452
|
+
textIndent: `-${parseFloat(Q) * 2}px`,
|
|
25457
25453
|
overflow: "hidden"
|
|
25458
25454
|
};
|
|
25459
|
-
}), J = (
|
|
25460
|
-
const { text:
|
|
25455
|
+
}), J = (Q) => {
|
|
25456
|
+
const { text: re, declineColor: ae = "#39cf93", increaseColor: ue = "#ff512e" } = Q, { fontSize: ce } = e, fe = parseFloat(re + ""), se = {
|
|
25461
25457
|
width: ce,
|
|
25462
25458
|
verticalAlign: "unset"
|
|
25463
25459
|
};
|
|
25464
25460
|
return fe >= 0 ? se.filter = `drop-shadow(${ue || "#ff512e"} ${ce} -1px)` : fe < 0 && (se.filter = `drop-shadow(${ae || "#39cf93"} ${ce} -1px)`), se;
|
|
25465
|
-
}, Z = (
|
|
25466
|
-
const
|
|
25467
|
-
if (
|
|
25461
|
+
}, Z = (Q) => {
|
|
25462
|
+
const re = parseFloat(Q + "");
|
|
25463
|
+
if (re >= 0)
|
|
25468
25464
|
return goUp;
|
|
25469
|
-
if (
|
|
25465
|
+
if (re < 0)
|
|
25470
25466
|
return goDown;
|
|
25471
|
-
}, X = useEmitEvent(e), { getGlobalModel:
|
|
25467
|
+
}, X = useEmitEvent(e), { getGlobalModel: ee, setGlobalModel: Y, getRecordValueByKeyName: te } = inject(GLOBAL_MODEL, {
|
|
25472
25468
|
// @ts-ignore
|
|
25473
25469
|
// eslint-disable-next-line no-void
|
|
25474
|
-
getGlobalModel: (
|
|
25470
|
+
getGlobalModel: (Q) => {
|
|
25475
25471
|
},
|
|
25476
25472
|
// @ts-ignore
|
|
25477
25473
|
// eslint-disable-next-line no-void
|
|
25478
|
-
setGlobalModel: (
|
|
25474
|
+
setGlobalModel: (Q, re) => {
|
|
25479
25475
|
},
|
|
25480
25476
|
// @ts-ignore
|
|
25481
25477
|
// eslint-disable-next-line no-void
|
|
25482
|
-
getRecordValueByKeyName: (
|
|
25478
|
+
getRecordValueByKeyName: (Q) => {
|
|
25483
25479
|
}
|
|
25484
25480
|
});
|
|
25485
25481
|
Y(e.id, {
|
|
25486
25482
|
type: e.type,
|
|
25487
25483
|
RECORD: ""
|
|
25488
25484
|
});
|
|
25489
|
-
const
|
|
25490
|
-
let ae =
|
|
25485
|
+
const ne = (Q = [], re = []) => {
|
|
25486
|
+
let ae = Q.map((ue) => ({ title: ue, dataIndex: ue, key: ue }));
|
|
25491
25487
|
unref(l).find((ue) => {
|
|
25492
25488
|
var ce;
|
|
25493
25489
|
return (ce = ue.children) == null ? void 0 : ce.length;
|
|
25494
|
-
}) && (ae = cloneDeep(unref(l))), k.value = cloneDeep(ae), b.value = $(ae), E.value =
|
|
25495
|
-
}, ie = (
|
|
25496
|
-
var
|
|
25497
|
-
|
|
25498
|
-
}, oe = useIndicatorData(e, ie), le = async (
|
|
25490
|
+
}) && (ae = cloneDeep(unref(l))), k.value = cloneDeep(ae), b.value = $(ae), E.value = re, i.value = !0;
|
|
25491
|
+
}, ie = (Q) => {
|
|
25492
|
+
var re, ae, ue, ce;
|
|
25493
|
+
ne((ae = (re = Q == null ? void 0 : Q.data) == null ? void 0 : re.data) == null ? void 0 : ae.columns, (ce = (ue = Q == null ? void 0 : Q.data) == null ? void 0 : ue.data) == null ? void 0 : ce.rows);
|
|
25494
|
+
}, oe = useIndicatorData(e, ie), le = async (Q = !0) => {
|
|
25499
25495
|
try {
|
|
25500
|
-
|
|
25501
|
-
const
|
|
25496
|
+
Q && (s.value = !0);
|
|
25497
|
+
const re = unref(S).split(" "), ae = {};
|
|
25502
25498
|
e.isSortByFront || (ae.sort = {
|
|
25503
|
-
order:
|
|
25504
|
-
field:
|
|
25499
|
+
order: re[1],
|
|
25500
|
+
field: re[0]
|
|
25505
25501
|
});
|
|
25506
25502
|
const ue = await oe(ae);
|
|
25507
25503
|
ie(ue);
|
|
25508
|
-
} catch (
|
|
25509
|
-
console.error(
|
|
25504
|
+
} catch (re) {
|
|
25505
|
+
console.error(re);
|
|
25510
25506
|
} finally {
|
|
25511
25507
|
s.value = !1;
|
|
25512
25508
|
}
|
|
25513
25509
|
}, he = ref(-1), { loadedData: de } = inject(LOADED_DATA, {
|
|
25514
25510
|
loadedData: {}
|
|
25515
25511
|
}), ye = ref(!1);
|
|
25516
|
-
watch(de, (
|
|
25512
|
+
watch(de, (Q) => {
|
|
25517
25513
|
if (e.dataType === "indicator") {
|
|
25518
|
-
const
|
|
25519
|
-
|
|
25514
|
+
const re = getFixedValueDatas(e.graphicConfig);
|
|
25515
|
+
re != null && re.length && (!unref(ye) && canRequestIndicator(e.graphicConfig, Q) ? (ye.value = !0, be()) : canRequestIndicator(e.graphicConfig, Q) || (ye.value = !1));
|
|
25520
25516
|
}
|
|
25521
25517
|
}, {
|
|
25522
25518
|
deep: !0
|
|
25523
25519
|
});
|
|
25524
|
-
const be = (
|
|
25520
|
+
const be = (Q = !0) => {
|
|
25525
25521
|
switch (e.dataType) {
|
|
25526
25522
|
case "request":
|
|
25527
|
-
V(
|
|
25523
|
+
V(Q);
|
|
25528
25524
|
break;
|
|
25529
25525
|
case "indicator":
|
|
25530
|
-
canRequestIndicator(e.graphicConfig, unref(de)) && le(
|
|
25526
|
+
canRequestIndicator(e.graphicConfig, unref(de)) && le(Q);
|
|
25531
25527
|
break;
|
|
25532
25528
|
}
|
|
25533
|
-
},
|
|
25534
|
-
const
|
|
25535
|
-
Y(
|
|
25529
|
+
}, Ee = () => {
|
|
25530
|
+
const Q = e.id, re = ee(Q);
|
|
25531
|
+
Y(Q, { ...re, type: e.type, RECORD: "" });
|
|
25536
25532
|
}, Te = computed(() => {
|
|
25537
|
-
const
|
|
25538
|
-
let
|
|
25533
|
+
const Q = unref(_);
|
|
25534
|
+
let re = 0;
|
|
25539
25535
|
const { subTotalColumn: ae, subTotalName: ue } = e;
|
|
25540
|
-
ae && (
|
|
25536
|
+
ae && (re = Q.findIndex((xe) => xe.dataIndex === ae), re < 0 && (re = 0));
|
|
25541
25537
|
const ce = [];
|
|
25542
25538
|
let fe = 0;
|
|
25543
|
-
for (let xe = 0; xe <
|
|
25544
|
-
const Ce =
|
|
25545
|
-
xe ===
|
|
25539
|
+
for (let xe = 0; xe < Q.length; xe++) {
|
|
25540
|
+
const Ce = Q[xe], { isCalcTotal: we } = Ce;
|
|
25541
|
+
xe === re ? ce.push({
|
|
25546
25542
|
...Ce,
|
|
25547
25543
|
total: ue
|
|
25548
|
-
}) :
|
|
25544
|
+
}) : we ? (ce.push({
|
|
25549
25545
|
...Ce,
|
|
25550
25546
|
index: xe,
|
|
25551
25547
|
total: 0
|
|
@@ -25555,121 +25551,121 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25555
25551
|
}
|
|
25556
25552
|
if (fe === 0)
|
|
25557
25553
|
return [];
|
|
25558
|
-
const se = unref(x), ge =
|
|
25554
|
+
const se = unref(x), ge = Se(ce);
|
|
25559
25555
|
for (let xe = 0; xe < ge.length; xe++) {
|
|
25560
25556
|
const Ce = ge[xe];
|
|
25561
|
-
let
|
|
25562
|
-
const { isCalcTotal:
|
|
25563
|
-
if (
|
|
25564
|
-
for (let
|
|
25565
|
-
const
|
|
25566
|
-
isNaN(
|
|
25557
|
+
let we = 0;
|
|
25558
|
+
const { isCalcTotal: Me, dataIndex: qe } = Ce;
|
|
25559
|
+
if (Me === !0) {
|
|
25560
|
+
for (let We = 0; We < se.length; We++) {
|
|
25561
|
+
const Ke = +se[We][qe];
|
|
25562
|
+
isNaN(Ke) || (we = new Big(we).add(Ke).toNumber());
|
|
25567
25563
|
}
|
|
25568
|
-
Ce.total =
|
|
25564
|
+
Ce.total = we;
|
|
25569
25565
|
}
|
|
25570
25566
|
}
|
|
25571
25567
|
return ge;
|
|
25572
25568
|
});
|
|
25573
|
-
function
|
|
25569
|
+
function Se(Q) {
|
|
25574
25570
|
var ae;
|
|
25575
|
-
const
|
|
25576
|
-
for (const ue of
|
|
25577
|
-
(ae = ue.children) != null && ae.length ?
|
|
25578
|
-
return
|
|
25571
|
+
const re = [];
|
|
25572
|
+
for (const ue of Q)
|
|
25573
|
+
(ae = ue.children) != null && ae.length ? re.push(...Se(ue.children)) : re.push(ue);
|
|
25574
|
+
return re;
|
|
25579
25575
|
}
|
|
25580
|
-
const { setRequest:
|
|
25581
|
-
setRequest: (
|
|
25576
|
+
const { setRequest: ke } = inject(REQUEST_MODEL, {
|
|
25577
|
+
setRequest: (Q) => {
|
|
25582
25578
|
}
|
|
25583
25579
|
});
|
|
25584
|
-
typeof
|
|
25580
|
+
typeof ke == "function" && ke({
|
|
25585
25581
|
id: e.id,
|
|
25586
25582
|
requestFn: be,
|
|
25587
25583
|
sortNum: e.requestSort
|
|
25588
25584
|
}), r({
|
|
25589
25585
|
refreshData: be
|
|
25590
25586
|
});
|
|
25591
|
-
const
|
|
25592
|
-
if (
|
|
25587
|
+
const Ge = (Q = "", re) => useVariablesInText(Q, re), Ve = (Q) => {
|
|
25588
|
+
if (Q !== "event")
|
|
25593
25589
|
return {
|
|
25594
25590
|
self: "_self",
|
|
25595
25591
|
blank: "_blank"
|
|
25596
|
-
}[
|
|
25597
|
-
},
|
|
25598
|
-
|
|
25592
|
+
}[Q];
|
|
25593
|
+
}, pe = (Q, re = "") => {
|
|
25594
|
+
Q === "event" && window.parent.postMessage({
|
|
25599
25595
|
type: "openPage",
|
|
25600
|
-
url:
|
|
25596
|
+
url: re
|
|
25601
25597
|
}, "*");
|
|
25602
|
-
},
|
|
25603
|
-
|
|
25604
|
-
},
|
|
25605
|
-
|
|
25606
|
-
},
|
|
25607
|
-
},
|
|
25608
|
-
const
|
|
25609
|
-
if (typeof
|
|
25610
|
-
let ae = unref(I)[
|
|
25611
|
-
const ue = unref(
|
|
25598
|
+
}, me = (Q, re) => {
|
|
25599
|
+
Q(re.filterCheckboxGroupValue);
|
|
25600
|
+
}, ve = (Q, re) => {
|
|
25601
|
+
Q({ confirm: !0 }), re.filterOptionsInputValue = "", re.filterCheckboxGroupValue = [];
|
|
25602
|
+
}, Ae = () => {
|
|
25603
|
+
}, _e = (Q) => {
|
|
25604
|
+
const re = Q.dataIndex;
|
|
25605
|
+
if (typeof re == "string") {
|
|
25606
|
+
let ae = unref(I)[re];
|
|
25607
|
+
const ue = unref(Q.filterOptionsInputValue).trim();
|
|
25612
25608
|
return Array.isArray(ae) ? (ae = ae.filter((ce) => typeof ce.label == "string" ? ce.label.toLowerCase().includes(ue.toLowerCase()) : !0), ae) : [];
|
|
25613
25609
|
}
|
|
25614
25610
|
return [];
|
|
25615
|
-
},
|
|
25616
|
-
var Ce,
|
|
25617
|
-
const
|
|
25611
|
+
}, Be = async () => {
|
|
25612
|
+
var Ce, we;
|
|
25613
|
+
const Q = "EXPORT_KEY";
|
|
25618
25614
|
message.loading({
|
|
25619
|
-
key:
|
|
25615
|
+
key: Q,
|
|
25620
25616
|
content: "正在导出...",
|
|
25621
25617
|
duration: 0
|
|
25622
25618
|
});
|
|
25623
|
-
let
|
|
25619
|
+
let re = [];
|
|
25624
25620
|
if (e.dataType === "static")
|
|
25625
|
-
|
|
25621
|
+
re = e.data;
|
|
25626
25622
|
else if (e.dataType === "request") {
|
|
25627
|
-
const
|
|
25628
|
-
unref(S) && (
|
|
25629
|
-
const
|
|
25630
|
-
|
|
25623
|
+
const Me = { layer: "1" };
|
|
25624
|
+
unref(S) && (Me.orderCondition = unref(S));
|
|
25625
|
+
const qe = await T(Me);
|
|
25626
|
+
re = ((we = (Ce = qe == null ? void 0 : qe.data) == null ? void 0 : Ce.data) == null ? void 0 : we.rows) || {};
|
|
25631
25627
|
}
|
|
25632
25628
|
const ae = unref(_), ue = [], ce = [];
|
|
25633
|
-
ae == null || ae.forEach((
|
|
25634
|
-
ue.push(
|
|
25629
|
+
ae == null || ae.forEach((Me) => {
|
|
25630
|
+
ue.push(Me.dataIndex), ce.push(Me.title);
|
|
25635
25631
|
});
|
|
25636
|
-
const fe =
|
|
25637
|
-
utils.book_append_sheet(se, xe, "sheet"), writeFile(se, "表格数据.xlsx"), message.success({ key:
|
|
25638
|
-
},
|
|
25639
|
-
const ae = +
|
|
25640
|
-
return isNaN(ae) || ae <= 0 ? 0 : ae >= 100 ? 100 : ae.toFixed(
|
|
25632
|
+
const fe = re.map((Me) => pick$1(Me, ue)), se = utils.book_new(), ge = utils.aoa_to_sheet([ce]), xe = utils.sheet_add_json(ge, fe, { skipHeader: !0, origin: "A2" });
|
|
25633
|
+
utils.book_append_sheet(se, xe, "sheet"), writeFile(se, "表格数据.xlsx"), message.success({ key: Q, content: "导出成功" });
|
|
25634
|
+
}, Ne = (Q, re = 2) => {
|
|
25635
|
+
const ae = +Q * 100;
|
|
25636
|
+
return isNaN(ae) || ae <= 0 ? 0 : ae >= 100 ? 100 : ae.toFixed(re);
|
|
25641
25637
|
};
|
|
25642
25638
|
useOnEvent(e, {
|
|
25643
|
-
resetRecord:
|
|
25639
|
+
resetRecord: Ee,
|
|
25644
25640
|
refreshData: be,
|
|
25645
|
-
exportTableData:
|
|
25641
|
+
exportTableData: Be
|
|
25646
25642
|
});
|
|
25647
|
-
const
|
|
25643
|
+
const He = (Q, re) => {
|
|
25648
25644
|
let ae = null;
|
|
25649
|
-
return e.stripedShow && (ae =
|
|
25650
|
-
},
|
|
25651
|
-
let
|
|
25652
|
-
const { height:
|
|
25653
|
-
return ae &&
|
|
25654
|
-
}),
|
|
25655
|
-
let
|
|
25656
|
-
return e.headerBackgroundColor && (
|
|
25657
|
-
}),
|
|
25658
|
-
let
|
|
25659
|
-
return (e.cellBackgroundColor || e.stripedShow && e.stripedColor) && (
|
|
25660
|
-
}),
|
|
25661
|
-
let
|
|
25645
|
+
return e.stripedShow && (ae = re % 2 === 1 ? "table-striped" : null), ae;
|
|
25646
|
+
}, ze = computed(() => {
|
|
25647
|
+
let Q = 0;
|
|
25648
|
+
const { height: re, isPageBottom: ae } = e;
|
|
25649
|
+
return ae && re && (Q = parseFloat(re) - m()), Q ? Q + "px" : "100%";
|
|
25650
|
+
}), Ie = computed(() => {
|
|
25651
|
+
let Q = "#071655";
|
|
25652
|
+
return e.headerBackgroundColor && (Q = "transparent"), Q;
|
|
25653
|
+
}), je = computed(() => {
|
|
25654
|
+
let Q = "#071655";
|
|
25655
|
+
return (e.cellBackgroundColor || e.stripedShow && e.stripedColor) && (Q = "transparent"), Q;
|
|
25656
|
+
}), Fe = computed(() => parseFloat(e.fontSize) + 16), Pe = computed(() => {
|
|
25657
|
+
let Q = "";
|
|
25662
25658
|
const {
|
|
25663
|
-
paginationColor:
|
|
25659
|
+
paginationColor: re,
|
|
25664
25660
|
paginationBgColor: ae,
|
|
25665
25661
|
activePaginationColor: ue,
|
|
25666
25662
|
activePaginationBgColor: ce,
|
|
25667
25663
|
hoverBackgroundColor: fe
|
|
25668
25664
|
} = e;
|
|
25669
|
-
return
|
|
25670
|
-
}),
|
|
25671
|
-
const { conditionCode: ae } =
|
|
25672
|
-
return runCode(ae, { value:
|
|
25665
|
+
return re && (Q += "p-color "), ae && (Q += "p-bg-color "), ue && (Q += "active-p-color "), ce && (Q += "active-p-bg-color "), fe && (Q += "hover-bg-color "), Q;
|
|
25666
|
+
}), De = (Q, re) => {
|
|
25667
|
+
const { conditionCode: ae } = Q;
|
|
25668
|
+
return runCode(ae, { value: re });
|
|
25673
25669
|
};
|
|
25674
25670
|
return {
|
|
25675
25671
|
x: d,
|
|
@@ -25681,25 +25677,25 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25681
25677
|
tableChange: U,
|
|
25682
25678
|
summaryList: Te,
|
|
25683
25679
|
loading: s,
|
|
25684
|
-
onTouchHrefEvent:
|
|
25685
|
-
handleHref:
|
|
25686
|
-
handleHrefTarget:
|
|
25680
|
+
onTouchHrefEvent: pe,
|
|
25681
|
+
handleHref: Ge,
|
|
25682
|
+
handleHrefTarget: Ve,
|
|
25687
25683
|
useRowIndex: he,
|
|
25688
25684
|
tableColumns: _,
|
|
25689
25685
|
tableDataSource: x,
|
|
25690
|
-
useFilterOptions:
|
|
25691
|
-
useSetSelectedKeys:
|
|
25692
|
-
onResetFilter:
|
|
25693
|
-
onSearchFilterOptions:
|
|
25694
|
-
exportTableData:
|
|
25695
|
-
handleProgressText:
|
|
25686
|
+
useFilterOptions: _e,
|
|
25687
|
+
useSetSelectedKeys: me,
|
|
25688
|
+
onResetFilter: ve,
|
|
25689
|
+
onSearchFilterOptions: Ae,
|
|
25690
|
+
exportTableData: Be,
|
|
25691
|
+
handleProgressText: Ne,
|
|
25696
25692
|
pageSizeVisible: f,
|
|
25697
25693
|
pageSize: M,
|
|
25698
25694
|
tableRef: c,
|
|
25699
|
-
rowClassName:
|
|
25700
|
-
tableHeight:
|
|
25701
|
-
tableHeaderBgColor:
|
|
25702
|
-
tableBodyBgColor:
|
|
25695
|
+
rowClassName: He,
|
|
25696
|
+
tableHeight: ze,
|
|
25697
|
+
tableHeaderBgColor: Ie,
|
|
25698
|
+
tableBodyBgColor: je,
|
|
25703
25699
|
getChgStyle: K,
|
|
25704
25700
|
chgBoxStyle: H,
|
|
25705
25701
|
getChgBoxImgStyle: J,
|
|
@@ -25707,32 +25703,32 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25707
25703
|
seqIcon1,
|
|
25708
25704
|
seqIcon2,
|
|
25709
25705
|
seqIcon3,
|
|
25710
|
-
iconSize:
|
|
25711
|
-
containerClass:
|
|
25712
|
-
getCellStyle: (
|
|
25713
|
-
const { overflow: ae, conditionCode: ue, attribute: ce } =
|
|
25714
|
-
return ae === "ellipsis" && (fe.overflow = "hidden", fe.textOverflow = "ellipsis"), ue && (ce != null && ce.color) &&
|
|
25706
|
+
iconSize: Fe,
|
|
25707
|
+
containerClass: Pe,
|
|
25708
|
+
getCellStyle: (Q, re) => {
|
|
25709
|
+
const { overflow: ae, conditionCode: ue, attribute: ce } = Q, fe = {};
|
|
25710
|
+
return ae === "ellipsis" && (fe.overflow = "hidden", fe.textOverflow = "ellipsis"), ue && (ce != null && ce.color) && De(Q, re) && (fe.color = ce.color), ce != null && ce.icon && (Q == null ? void 0 : Q.cellAlign) === "right" && (fe.display = "flex", fe.alignItems = "center", fe.justifyContent = "flex-end"), fe;
|
|
25715
25711
|
},
|
|
25716
|
-
isMatchCondition:
|
|
25717
|
-
getAttrImgSrc: (
|
|
25718
|
-
const { attribute:
|
|
25712
|
+
isMatchCondition: De,
|
|
25713
|
+
getAttrImgSrc: (Q) => {
|
|
25714
|
+
const { attribute: re } = Q;
|
|
25719
25715
|
let ae = "";
|
|
25720
|
-
return
|
|
25716
|
+
return re != null && re.icon && (ae = useImagePath(re.icon)), ae;
|
|
25721
25717
|
},
|
|
25722
|
-
getAttrImgStyle: (
|
|
25723
|
-
let
|
|
25724
|
-
return (
|
|
25718
|
+
getAttrImgStyle: (Q) => {
|
|
25719
|
+
let re = {};
|
|
25720
|
+
return (Q == null ? void 0 : Q.cellAlign) === "right" ? re = {
|
|
25725
25721
|
marginRight: "5px"
|
|
25726
|
-
} :
|
|
25722
|
+
} : re = {
|
|
25727
25723
|
position: "absolute",
|
|
25728
25724
|
marginLeft: "5px"
|
|
25729
25725
|
}, {
|
|
25730
25726
|
width: "auto",
|
|
25731
25727
|
height: parseFloat(e.fontSize) + 6 + "px",
|
|
25732
|
-
...
|
|
25728
|
+
...re
|
|
25733
25729
|
};
|
|
25734
25730
|
},
|
|
25735
|
-
getCellText: (
|
|
25731
|
+
getCellText: (Q, re) => Q || Q === 0 ? Q : re == null ? void 0 : re.defaultVal,
|
|
25736
25732
|
autoScrollHeight: g,
|
|
25737
25733
|
autoScrollClass: w,
|
|
25738
25734
|
autoScrollTop: C,
|
|
@@ -26173,8 +26169,8 @@ const _sfc_main$2 = defineComponent({
|
|
|
26173
26169
|
let H = K.slice(1, -1).trim();
|
|
26174
26170
|
const J = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, Z = H.match(J);
|
|
26175
26171
|
for (let X = 0; X < Z.length; X++) {
|
|
26176
|
-
const
|
|
26177
|
-
Y != null && (H = H.replace(
|
|
26172
|
+
const ee = Z[X], Y = N[ee];
|
|
26173
|
+
Y != null && (H = H.replace(ee, Y));
|
|
26178
26174
|
}
|
|
26179
26175
|
j = j.replace(K, H);
|
|
26180
26176
|
}
|
|
@@ -26193,9 +26189,9 @@ const _sfc_main$2 = defineComponent({
|
|
|
26193
26189
|
const J = ((H = (K = G == null ? void 0 : G.data) == null ? void 0 : K.data) == null ? void 0 : H.rows) || [];
|
|
26194
26190
|
let Z = "";
|
|
26195
26191
|
for (const X of J) {
|
|
26196
|
-
const
|
|
26197
|
-
if (
|
|
26198
|
-
for (const Y of
|
|
26192
|
+
const ee = d(X) || [];
|
|
26193
|
+
if (ee != null && ee.length)
|
|
26194
|
+
for (const Y of ee)
|
|
26199
26195
|
Z += `<div style="word-break: break-all;white-space: normal;">${Y}</div>`;
|
|
26200
26196
|
}
|
|
26201
26197
|
Z = `<div style="max-width:200px;">${Z}</div>`, a.value = Z, j(unref(m), Z);
|
|
@@ -26279,13 +26275,13 @@ const _sfc_main$2 = defineComponent({
|
|
|
26279
26275
|
if (!J) {
|
|
26280
26276
|
let Z = "", X = e.tooltipFormatter;
|
|
26281
26277
|
X === "" && (X = "{name}:{value}");
|
|
26282
|
-
const
|
|
26283
|
-
return
|
|
26278
|
+
const ee = unref(p).find((Y) => Y.name === H);
|
|
26279
|
+
return ee ? (Z += useVariablesInText(
|
|
26284
26280
|
X,
|
|
26285
26281
|
{
|
|
26286
26282
|
textData: {
|
|
26287
26283
|
name: H,
|
|
26288
|
-
...
|
|
26284
|
+
...ee
|
|
26289
26285
|
}
|
|
26290
26286
|
},
|
|
26291
26287
|
{
|
|
@@ -26932,6 +26928,7 @@ const DataSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_r
|
|
|
26932
26928
|
});
|
|
26933
26929
|
}
|
|
26934
26930
|
const E = [];
|
|
26931
|
+
console.log("filterList", s.value);
|
|
26935
26932
|
for (const _ of unref(s)) {
|
|
26936
26933
|
const k = v.find((P) => P.label === _.key);
|
|
26937
26934
|
k && E.push({
|
|
@@ -26969,7 +26966,7 @@ const DataSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_r
|
|
|
26969
26966
|
b !== -1 && o.value.splice(b, 1);
|
|
26970
26967
|
},
|
|
26971
26968
|
onFilter: (v) => {
|
|
26972
|
-
const { key: b, rule: E = {} } = v || {}, { rule: _, value: k } = E;
|
|
26969
|
+
const { key: b = "", rule: E = {} } = v || {}, { rule: _, value: k } = E;
|
|
26973
26970
|
if (b && _ && k) {
|
|
26974
26971
|
const P = s.value.find((D) => D.key === b);
|
|
26975
26972
|
P ? (P.rule = _, P.value = k) : s.value.push({
|
|
@@ -26977,12 +26974,15 @@ const DataSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_r
|
|
|
26977
26974
|
rule: _,
|
|
26978
26975
|
value: k
|
|
26979
26976
|
});
|
|
26977
|
+
} else {
|
|
26978
|
+
const P = unref(s).findIndex((D) => D.key === b);
|
|
26979
|
+
P !== -1 && s.value.splice(P, 1);
|
|
26980
26980
|
}
|
|
26981
26981
|
g();
|
|
26982
26982
|
}
|
|
26983
26983
|
};
|
|
26984
26984
|
}
|
|
26985
|
-
}),
|
|
26985
|
+
}), PivotTableContainer_vue_vue_type_style_index_0_scoped_ec6e5e96_lang = "";
|
|
26986
26986
|
function _sfc_render(e, r, n, i, a, o) {
|
|
26987
26987
|
const s = resolveComponent("pivot-table");
|
|
26988
26988
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26998,7 +26998,7 @@ function _sfc_render(e, r, n, i, a, o) {
|
|
|
26998
26998
|
}), null, 16, ["pageMode", "calculateList", "onCalculate", "onDeleteCalculate", "onFilter"])
|
|
26999
26999
|
], 4);
|
|
27000
27000
|
}
|
|
27001
|
-
const PivotTableContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
27001
|
+
const PivotTableContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ec6e5e96"]]), EcanPivotTable = withInstall$1(PivotTableContainer), components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27002
27002
|
__proto__: null,
|
|
27003
27003
|
EcanBar,
|
|
27004
27004
|
EcanBorder,
|