@ecan-bi/datav 1.4.5 → 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 +554 -553
- 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 +1 -1
- package/package.json +1 -1
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) {
|
|
@@ -3204,18 +3204,18 @@ function requireSha512() {
|
|
|
3204
3204
|
]);
|
|
3205
3205
|
},
|
|
3206
3206
|
_doProcessBlock: function(m, g) {
|
|
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,
|
|
3208
|
-
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];
|
|
3209
3209
|
if (de < 16)
|
|
3210
|
-
be =
|
|
3210
|
+
be = Ee.high = m[g + de * 2] | 0, ye = Ee.low = m[g + de * 2 + 1] | 0;
|
|
3211
3211
|
else {
|
|
3212
|
-
var Te = d[de - 15],
|
|
3213
|
-
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;
|
|
3214
3214
|
}
|
|
3215
|
-
var
|
|
3216
|
-
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;
|
|
3217
3217
|
}
|
|
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 +
|
|
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);
|
|
3219
3219
|
},
|
|
3220
3220
|
_doFinalize: function() {
|
|
3221
3221
|
var m = this._data, g = m.words, w = this._nDataBytes * 8, C = m.sigBytes * 8;
|
|
@@ -7940,14 +7940,14 @@ const runCode = (e, r) => {
|
|
|
7940
7940
|
const K = unref(V[N]);
|
|
7941
7941
|
let H = null;
|
|
7942
7942
|
if (["date", "range"].some((Z) => lowerCaseIncludes(V == null ? void 0 : V.type, Z))) {
|
|
7943
|
-
const { value: Z, type: X, mode:
|
|
7944
|
-
if (Z && X &&
|
|
7943
|
+
const { value: Z, type: X, mode: ee } = W || {};
|
|
7944
|
+
if (Z && X && ee)
|
|
7945
7945
|
switch (X) {
|
|
7946
7946
|
case "add":
|
|
7947
|
-
H = unref(K).add(Z,
|
|
7947
|
+
H = unref(K).add(Z, ee);
|
|
7948
7948
|
break;
|
|
7949
7949
|
case "minus":
|
|
7950
|
-
H = unref(K).subtract(Z,
|
|
7950
|
+
H = unref(K).subtract(Z, ee);
|
|
7951
7951
|
break;
|
|
7952
7952
|
}
|
|
7953
7953
|
H == null && (H = unref(K)), H = (H == null ? void 0 : H.format((j == null ? void 0 : j.trim()) || V.format)) || "";
|
|
@@ -8034,7 +8034,7 @@ const runCode = (e, r) => {
|
|
|
8034
8034
|
try {
|
|
8035
8035
|
const S = ["get", "head"].includes(a), R = {};
|
|
8036
8036
|
let T = S ? k + L : k;
|
|
8037
|
-
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);
|
|
8038
8038
|
const V = await request({
|
|
8039
8039
|
baseURL: unref(v) || u || "",
|
|
8040
8040
|
url: T,
|
|
@@ -8557,7 +8557,7 @@ const runCode = (e, r) => {
|
|
|
8557
8557
|
type: "NORMAL"
|
|
8558
8558
|
}), D;
|
|
8559
8559
|
}, b = async (k = {}) => {
|
|
8560
|
-
var ye, be,
|
|
8560
|
+
var ye, be, Ee, Te, Se, ke, Ge, Ve;
|
|
8561
8561
|
a(e.id, !1);
|
|
8562
8562
|
const { graphicConfig: P, type: D, isGroupTable: M = !1 } = e, F = lowerCaseIncludes(D, "pivottable");
|
|
8563
8563
|
let {
|
|
@@ -8611,61 +8611,61 @@ const runCode = (e, r) => {
|
|
|
8611
8611
|
]);
|
|
8612
8612
|
}
|
|
8613
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");
|
|
8614
|
-
let
|
|
8614
|
+
let ee;
|
|
8615
8615
|
const Y = [];
|
|
8616
8616
|
let te = "";
|
|
8617
8617
|
if (Array.isArray(B) && B.length > 0 && (!["ecanList", "ecanCirculate"].includes(D) || (B == null ? void 0 : B.length) === 1)) {
|
|
8618
8618
|
const pe = B.length;
|
|
8619
8619
|
for (let me = 0; me < pe; me++) {
|
|
8620
8620
|
const ve = B[me] || {}, {
|
|
8621
|
-
label:
|
|
8622
|
-
name:
|
|
8623
|
-
show:
|
|
8624
|
-
sort:
|
|
8625
|
-
customGroup:
|
|
8626
|
-
conditions:
|
|
8621
|
+
label: Ae = "",
|
|
8622
|
+
name: _e = "",
|
|
8623
|
+
show: Be = !1,
|
|
8624
|
+
sort: Ne,
|
|
8625
|
+
customGroup: He,
|
|
8626
|
+
conditions: ze,
|
|
8627
8627
|
dateFormat: Ie,
|
|
8628
|
-
typeGuid:
|
|
8628
|
+
typeGuid: je = "",
|
|
8629
8629
|
truncations: Fe = []
|
|
8630
8630
|
} = ve;
|
|
8631
|
-
if (
|
|
8632
|
-
te =
|
|
8633
|
-
label:
|
|
8634
|
-
columnName:
|
|
8635
|
-
show:
|
|
8636
|
-
sort: v(ve) || p(
|
|
8637
|
-
customGroup:
|
|
8638
|
-
conditions: u(
|
|
8639
|
-
typeGuid:
|
|
8640
|
-
}, 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");
|
|
8641
8641
|
const Pe = {};
|
|
8642
8642
|
if (Array.isArray(Fe) && Fe.length > 0) {
|
|
8643
|
-
const
|
|
8644
|
-
for (let
|
|
8645
|
-
const
|
|
8646
|
-
|
|
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));
|
|
8647
8647
|
}
|
|
8648
8648
|
}
|
|
8649
|
-
if ((ye = Object.keys(Pe)) != null && ye.length && (
|
|
8650
|
-
Y.push(
|
|
8649
|
+
if ((ye = Object.keys(Pe)) != null && ye.length && (ee.truncation = Pe), lowerCaseIncludes(D, "scatter"))
|
|
8650
|
+
Y.push(ee);
|
|
8651
8651
|
else
|
|
8652
8652
|
break;
|
|
8653
8653
|
}
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
|
-
let
|
|
8656
|
+
let ne;
|
|
8657
8657
|
if (Array.isArray(R) && R.length > 0) {
|
|
8658
8658
|
const pe = R.length;
|
|
8659
8659
|
for (let me = 0; me < pe; me++) {
|
|
8660
|
-
const ve = R[me] || {}, { label:
|
|
8661
|
-
if (
|
|
8662
|
-
|
|
8663
|
-
label:
|
|
8664
|
-
columnName:
|
|
8665
|
-
show:
|
|
8666
|
-
sort: p(
|
|
8667
|
-
customGroup:
|
|
8668
|
-
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),
|
|
8669
8669
|
typeGuid: Ie
|
|
8670
8670
|
};
|
|
8671
8671
|
break;
|
|
@@ -8674,44 +8674,44 @@ const runCode = (e, r) => {
|
|
|
8674
8674
|
}
|
|
8675
8675
|
const ie = [];
|
|
8676
8676
|
if (T == null || T.forEach((pe) => {
|
|
8677
|
-
pe.location = "LEFT", ie.push(x(pe,
|
|
8677
|
+
pe.location = "LEFT", ie.push(x(pe, ee));
|
|
8678
8678
|
}), V == null || V.forEach((pe) => {
|
|
8679
|
-
pe.location = "RIGHT", ie.push(x(pe,
|
|
8679
|
+
pe.location = "RIGHT", ie.push(x(pe, ee));
|
|
8680
8680
|
}), N == null || N.forEach((pe) => {
|
|
8681
|
-
pe.location = "LEFT", ie.push(x(pe,
|
|
8681
|
+
pe.location = "LEFT", ie.push(x(pe, ee));
|
|
8682
8682
|
}), k != null && k.pivotTableCal) {
|
|
8683
8683
|
const { calc: pe = [], filter: me = [] } = k.pivotTableCal;
|
|
8684
8684
|
if (ie.push(...pe), me != null && me.length)
|
|
8685
8685
|
for (const ve of me) {
|
|
8686
|
-
const
|
|
8687
|
-
|
|
8686
|
+
const Ae = ie.find((_e) => _e.columnName === ve.fieldName);
|
|
8687
|
+
Ae && (Ae.conditions || (Ae.conditions = []), Ae.conditions.push(ve));
|
|
8688
8688
|
}
|
|
8689
8689
|
}
|
|
8690
8690
|
const oe = [];
|
|
8691
8691
|
["ecanList", "ecanCirculate"].includes(D) && (B == null ? void 0 : B.length) > 1 && (U = B), U == null || U.forEach((pe) => {
|
|
8692
|
-
const { label: me, name: ve, location:
|
|
8693
|
-
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);
|
|
8694
8694
|
if (k.sort) {
|
|
8695
|
-
const { field:
|
|
8696
|
-
let
|
|
8697
|
-
!
|
|
8698
|
-
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,
|
|
8699
8699
|
label: k.sort.field,
|
|
8700
|
-
order:
|
|
8700
|
+
order: Re.toUpperCase(),
|
|
8701
8701
|
type: "NORMAL"
|
|
8702
8702
|
});
|
|
8703
8703
|
}
|
|
8704
8704
|
const Pe = {
|
|
8705
8705
|
label: me,
|
|
8706
8706
|
columnName: ve,
|
|
8707
|
-
location:
|
|
8708
|
-
show:
|
|
8707
|
+
location: Ae,
|
|
8708
|
+
show: _e,
|
|
8709
8709
|
sort: Fe,
|
|
8710
8710
|
calcType: "COLUMN",
|
|
8711
|
-
hrpIndexCode:
|
|
8712
|
-
hrpIndexCodeNum:
|
|
8713
|
-
conditions: u(
|
|
8714
|
-
typeGuid:
|
|
8711
|
+
hrpIndexCode: Be,
|
|
8712
|
+
hrpIndexCodeNum: ze,
|
|
8713
|
+
conditions: u(je),
|
|
8714
|
+
typeGuid: He
|
|
8715
8715
|
};
|
|
8716
8716
|
Ie && (Pe.dateFormat = Ie), ve === "the_date" && !Pe.dateFormat && (Pe.dateFormat = "YYYY-MM"), oe.push(Pe);
|
|
8717
8717
|
});
|
|
@@ -8720,37 +8720,37 @@ const runCode = (e, r) => {
|
|
|
8720
8720
|
if (Array.isArray(A) && A.length > 0 ? he = A : Array.isArray(S) && S.length > 0 && (he = S), he != null && he.length) {
|
|
8721
8721
|
const pe = he.length;
|
|
8722
8722
|
for (let me = 0; me < pe; me++) {
|
|
8723
|
-
const ve = he[me] || {}, { label:
|
|
8724
|
-
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);
|
|
8725
8725
|
if (k.sort) {
|
|
8726
|
-
const { field:
|
|
8727
|
-
let
|
|
8728
|
-
|
|
8729
|
-
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,
|
|
8730
8730
|
label: k.sort.field,
|
|
8731
|
-
order:
|
|
8731
|
+
order: Le.toUpperCase(),
|
|
8732
8732
|
type: "NORMAL"
|
|
8733
8733
|
});
|
|
8734
8734
|
}
|
|
8735
|
-
const
|
|
8736
|
-
label:
|
|
8737
|
-
columnName:
|
|
8738
|
-
show:
|
|
8735
|
+
const De = {
|
|
8736
|
+
label: Ae.trim(),
|
|
8737
|
+
columnName: _e,
|
|
8738
|
+
show: Be,
|
|
8739
8739
|
sort: Pe,
|
|
8740
|
-
customGroup:
|
|
8741
|
-
conditions: u(
|
|
8742
|
-
typeGuid:
|
|
8740
|
+
customGroup: He,
|
|
8741
|
+
conditions: u(ze),
|
|
8742
|
+
typeGuid: je
|
|
8743
8743
|
};
|
|
8744
|
-
Fe && (
|
|
8745
|
-
const
|
|
8744
|
+
Fe && (De.dateFormat = Fe), _e === "the_date" && !De.dateFormat && (De.dateFormat = "YYYY-MM");
|
|
8745
|
+
const Re = {};
|
|
8746
8746
|
if (Array.isArray(Ie) && Ie.length > 0) {
|
|
8747
|
-
const
|
|
8748
|
-
for (let
|
|
8749
|
-
const
|
|
8750
|
-
|
|
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));
|
|
8751
8751
|
}
|
|
8752
8752
|
}
|
|
8753
|
-
(be = Object.keys(
|
|
8753
|
+
(be = Object.keys(Re)) != null && be.length && (De.truncation = Re), le.push(De);
|
|
8754
8754
|
}
|
|
8755
8755
|
}
|
|
8756
8756
|
if (lowerCaseIncludes(D, ["text", "proportion", "counter"]) && (I = "zb"), M) {
|
|
@@ -8768,7 +8768,7 @@ const runCode = (e, r) => {
|
|
|
8768
8768
|
return;
|
|
8769
8769
|
}
|
|
8770
8770
|
S != null && S.length && ($ = "1", I = "grouptable");
|
|
8771
|
-
let de = s || ((
|
|
8771
|
+
let de = s || ((Ee = window == null ? void 0 : window.config) == null ? void 0 : Ee.pageId);
|
|
8772
8772
|
if (!de) {
|
|
8773
8773
|
const { pathname: pe } = window == null ? void 0 : window.location;
|
|
8774
8774
|
if (pe) {
|
|
@@ -8787,9 +8787,15 @@ const runCode = (e, r) => {
|
|
|
8787
8787
|
}
|
|
8788
8788
|
D === "ecanDataSelect" && (me.indicatorList = ie.filter((ve) => ve.show)), O === "EDV_DATA_SET" && (me.edvDataSetId = Z);
|
|
8789
8789
|
try {
|
|
8790
|
-
const ve = await request
|
|
8791
|
-
`${INDICATOR_URL}/diagram/formData`,
|
|
8792
|
-
|
|
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: {
|
|
8793
8799
|
source: O,
|
|
8794
8800
|
dataViewId: L,
|
|
8795
8801
|
plugin: "4",
|
|
@@ -8805,18 +8811,12 @@ const runCode = (e, r) => {
|
|
|
8805
8811
|
keyName: e.keyName,
|
|
8806
8812
|
...me
|
|
8807
8813
|
},
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
Authentication: (Ee = window == null ? void 0 : window.config) == null ? void 0 : Ee.indicatorToken,
|
|
8812
|
-
operateContext: CONTEXT
|
|
8813
|
-
}
|
|
8814
|
-
}
|
|
8815
|
-
);
|
|
8814
|
+
// @ts-ignore
|
|
8815
|
+
signal: ((ke = window.controller) == null ? void 0 : ke.signal) || ""
|
|
8816
|
+
});
|
|
8816
8817
|
return k != null && k.isTimer && r(ve), ve;
|
|
8817
8818
|
} catch (ve) {
|
|
8818
8819
|
console.error(ve);
|
|
8819
|
-
} finally {
|
|
8820
8820
|
}
|
|
8821
8821
|
} else
|
|
8822
8822
|
try {
|
|
@@ -8824,28 +8824,34 @@ const runCode = (e, r) => {
|
|
|
8824
8824
|
lowerCaseIncludes(D, "scatter") ? pe = {
|
|
8825
8825
|
classifications: Y
|
|
8826
8826
|
} : pe = {
|
|
8827
|
-
classification:
|
|
8827
|
+
classification: ee
|
|
8828
8828
|
};
|
|
8829
|
-
const me = await request
|
|
8830
|
-
`${INDICATOR_URL}/diagram`,
|
|
8831
|
-
|
|
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: {
|
|
8832
8838
|
source: O,
|
|
8833
8839
|
dataViewId: L,
|
|
8834
8840
|
plugin: F ? "5" : q,
|
|
8835
8841
|
layer: $,
|
|
8836
8842
|
chartType: F ? "pivot-table" : I,
|
|
8837
8843
|
...pe,
|
|
8838
|
-
series:
|
|
8844
|
+
series: ne,
|
|
8839
8845
|
indicatorList: ie,
|
|
8840
8846
|
queryColumns: M ? [] : oe,
|
|
8841
8847
|
pageFlag: !0,
|
|
8842
8848
|
pageId: de,
|
|
8843
8849
|
edvDataSetId: Z || "",
|
|
8844
8850
|
sqlConditions: X.map((ve) => {
|
|
8845
|
-
const { fieldValue:
|
|
8846
|
-
return
|
|
8851
|
+
const { fieldValue: Ae } = ve, _e = {};
|
|
8852
|
+
return Ae && Array.isArray(Ae) && (_e.fieldValue = JSON.stringify(Ae)), {
|
|
8847
8853
|
...ve,
|
|
8848
|
-
...
|
|
8854
|
+
..._e
|
|
8849
8855
|
};
|
|
8850
8856
|
}),
|
|
8851
8857
|
// fixedDimSql: '',
|
|
@@ -8855,18 +8861,12 @@ const runCode = (e, r) => {
|
|
|
8855
8861
|
rowHeaders: le,
|
|
8856
8862
|
keyName: e.keyName
|
|
8857
8863
|
},
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
Authentication: (_e = window == null ? void 0 : window.config) == null ? void 0 : _e.indicatorToken,
|
|
8862
|
-
operateContext: CONTEXT
|
|
8863
|
-
}
|
|
8864
|
-
}
|
|
8865
|
-
);
|
|
8864
|
+
// @ts-ignore
|
|
8865
|
+
signal: ((Ve = window.controller) == null ? void 0 : Ve.signal) || ""
|
|
8866
|
+
});
|
|
8866
8867
|
return k != null && k.isTimer && r(me), me;
|
|
8867
8868
|
} catch (pe) {
|
|
8868
8869
|
console.error(pe);
|
|
8869
|
-
} finally {
|
|
8870
8870
|
}
|
|
8871
8871
|
}, E = unref(n) !== "design" && ((_ = e == null ? void 0 : e.graphicConfig) == null ? void 0 : _.pageMode) !== "design" && e.isOpenRequestTimer && e.requestInterval && setInterval(() => {
|
|
8872
8872
|
b({ isTimer: !0 });
|
|
@@ -9023,9 +9023,9 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9023
9023
|
o();
|
|
9024
9024
|
});
|
|
9025
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(() => {
|
|
9026
|
-
const Y = [], te = unref(l).filter((
|
|
9027
|
-
for (const
|
|
9028
|
-
|
|
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);
|
|
9029
9029
|
return [
|
|
9030
9030
|
...Y,
|
|
9031
9031
|
...e.requestList
|
|
@@ -9057,32 +9057,32 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9057
9057
|
setTemplateData: (Y) => {
|
|
9058
9058
|
var te;
|
|
9059
9059
|
if (Y != null && Y.pageId) {
|
|
9060
|
-
const { componentId:
|
|
9060
|
+
const { componentId: ne, ...ie } = Y;
|
|
9061
9061
|
(te = window.config) != null && te.urlParams || (window.config.urlParams = {}), window.config.urlParams[Y.pageId] = ie, n("templateChange", Y);
|
|
9062
9062
|
}
|
|
9063
9063
|
}
|
|
9064
9064
|
});
|
|
9065
9065
|
const p = ref(), v = /* @__PURE__ */ new Map(), b = (Y) => v.get(Y), E = (Y, te) => {
|
|
9066
|
-
var
|
|
9066
|
+
var ne;
|
|
9067
9067
|
if (p.value = te, v.set(Y, te), !e.pageId) {
|
|
9068
9068
|
const ie = unref(s).find((oe) => oe.id === Y);
|
|
9069
|
-
ie && ((
|
|
9069
|
+
ie && ((ne = window.config) != null && ne.record || (window.config.record = {}), window.config.record[ie.keyName] = te);
|
|
9070
9070
|
}
|
|
9071
9071
|
}, _ = () => {
|
|
9072
9072
|
p.value = null;
|
|
9073
9073
|
}, k = (Y) => {
|
|
9074
9074
|
let te = Y;
|
|
9075
9075
|
if (te) {
|
|
9076
|
-
const
|
|
9077
|
-
if (
|
|
9078
|
-
let ie =
|
|
9076
|
+
const ne = Y.match(/\{(.+?)\}/g);
|
|
9077
|
+
if (ne != null && ne.length) {
|
|
9078
|
+
let ie = ne[0].slice(1, -1).trim();
|
|
9079
9079
|
const oe = ie.match(/\[(.+?)\]/g);
|
|
9080
9080
|
let le = "";
|
|
9081
9081
|
oe != null && oe.length && (ie = ie.replace(oe[0], ""), le = oe[0].slice(1, -1).trim());
|
|
9082
9082
|
const he = unref(c).find((de) => de.keyName === ie);
|
|
9083
9083
|
if (he) {
|
|
9084
|
-
const de = b(he.id), { type: ye, value: be, RECORD:
|
|
9085
|
-
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;
|
|
9086
9086
|
} else
|
|
9087
9087
|
te = (window.config.requestParams || {})[ie] || "";
|
|
9088
9088
|
}
|
|
@@ -9090,15 +9090,15 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9090
9090
|
return te;
|
|
9091
9091
|
}, P = /* @__PURE__ */ new Map(), D = {}, M = async (Y, te) => {
|
|
9092
9092
|
var he;
|
|
9093
|
-
const { requestName:
|
|
9093
|
+
const { requestName: ne } = Y, ie = await useRequestData({
|
|
9094
9094
|
...Y,
|
|
9095
9095
|
projectRequestUrl: unref(f),
|
|
9096
9096
|
getModel: b
|
|
9097
|
-
})(), oe = ((he = ie == null ? void 0 : ie.data) == null ? void 0 : he.data) || {}, le = P.get(
|
|
9098
|
-
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])) {
|
|
9099
9099
|
for (const de of le)
|
|
9100
9100
|
de(oe);
|
|
9101
|
-
te || P.delete(
|
|
9101
|
+
te || P.delete(ne);
|
|
9102
9102
|
}
|
|
9103
9103
|
};
|
|
9104
9104
|
provide(GLOBAL_MODEL, {
|
|
@@ -9108,8 +9108,8 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9108
9108
|
getRecordValueByKeyName: k,
|
|
9109
9109
|
hanldePageRequestData: (Y, te) => {
|
|
9110
9110
|
D[Y] && (clearInterval(D[Y]), delete D[Y], P.delete(Y));
|
|
9111
|
-
const
|
|
9112
|
-
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)) {
|
|
9113
9113
|
const oe = unref(g).find((le) => le.requestName === Y);
|
|
9114
9114
|
oe && (oe != null && oe.isOpenRequestTimer && (oe != null && oe.requestInterval) ? (M(oe, !0), D[Y] = setInterval(() => {
|
|
9115
9115
|
M(oe, !0);
|
|
@@ -9139,15 +9139,15 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9139
9139
|
}
|
|
9140
9140
|
});
|
|
9141
9141
|
const R = mitt(), T = /* @__PURE__ */ new Set(), V = (Y, te) => {
|
|
9142
|
-
T.add(Y), R.on(Y, (
|
|
9143
|
-
const { eventName: ie, params: oe } =
|
|
9142
|
+
T.add(Y), R.on(Y, (ne) => {
|
|
9143
|
+
const { eventName: ie, params: oe } = ne;
|
|
9144
9144
|
return typeof te[ie] == "function" && te[ie](oe);
|
|
9145
9145
|
}), onBeforeUnmount(() => {
|
|
9146
9146
|
U(Y);
|
|
9147
9147
|
});
|
|
9148
9148
|
}, U = (Y) => {
|
|
9149
9149
|
T.delete(Y), R.off(Y);
|
|
9150
|
-
}, N = (Y, te,
|
|
9150
|
+
}, N = (Y, te, ne = {}) => {
|
|
9151
9151
|
if (Y === "PAGE") {
|
|
9152
9152
|
const ie = q.length;
|
|
9153
9153
|
let oe = [];
|
|
@@ -9158,10 +9158,10 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9158
9158
|
oe = [...A(le)];
|
|
9159
9159
|
}
|
|
9160
9160
|
oe.forEach((le) => {
|
|
9161
|
-
R.emit(le, { eventName: te, params:
|
|
9161
|
+
R.emit(le, { eventName: te, params: ne });
|
|
9162
9162
|
});
|
|
9163
9163
|
} else
|
|
9164
|
-
R.emit(Y, { eventName: te, params:
|
|
9164
|
+
R.emit(Y, { eventName: te, params: ne });
|
|
9165
9165
|
};
|
|
9166
9166
|
provide(EVENT_BUS, {
|
|
9167
9167
|
onEvent: V,
|
|
@@ -9175,26 +9175,26 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9175
9175
|
}
|
|
9176
9176
|
});
|
|
9177
9177
|
const G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), H = ({ requestFn: Y = () => {
|
|
9178
|
-
}, sortNum: te = 0, id:
|
|
9178
|
+
}, sortNum: te = 0, id: ne = "" }) => {
|
|
9179
9179
|
if (G.has(te)) {
|
|
9180
9180
|
const ie = G.get(te);
|
|
9181
9181
|
ie == null || ie.push(Y);
|
|
9182
9182
|
} else
|
|
9183
9183
|
G.set(te, [Y]);
|
|
9184
|
-
K.set(
|
|
9185
|
-
}, J = (Y) => new Promise((te,
|
|
9184
|
+
K.set(ne, Y);
|
|
9185
|
+
}, J = (Y) => new Promise((te, ne) => {
|
|
9186
9186
|
const ie = Y.map((oe) => oe());
|
|
9187
9187
|
Promise.all(ie).then((oe) => {
|
|
9188
9188
|
te(oe);
|
|
9189
9189
|
}).catch((oe) => {
|
|
9190
|
-
|
|
9190
|
+
ne(oe);
|
|
9191
9191
|
});
|
|
9192
|
-
}), Z = (Y) => new Promise(async (te,
|
|
9192
|
+
}), Z = (Y) => new Promise(async (te, ne) => {
|
|
9193
9193
|
if (Y) {
|
|
9194
9194
|
if (typeof Y == "string") {
|
|
9195
9195
|
const ie = K.get(Y);
|
|
9196
9196
|
if (typeof ie == "function") {
|
|
9197
|
-
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)));
|
|
9198
9198
|
ie(), request.interceptors.response.eject(oe);
|
|
9199
9199
|
}
|
|
9200
9200
|
}
|
|
@@ -9223,7 +9223,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9223
9223
|
R.emit(REFRESH_PAGE);
|
|
9224
9224
|
}
|
|
9225
9225
|
});
|
|
9226
|
-
const
|
|
9226
|
+
const ee = (Y) => {
|
|
9227
9227
|
R.on(REFRESH_PAGE, () => Y()), onMounted(() => {
|
|
9228
9228
|
R.off(REFRESH_PAGE);
|
|
9229
9229
|
});
|
|
@@ -9231,18 +9231,18 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9231
9231
|
return watchEffect(() => {
|
|
9232
9232
|
var Y;
|
|
9233
9233
|
if ((Y = unref(s)) != null && Y.length && unref(u) !== "design") {
|
|
9234
|
-
const { jumpType: te, jumpTime:
|
|
9235
|
-
if (
|
|
9234
|
+
const { jumpType: te, jumpTime: ne, jumpPage: ie, jumpLink: oe } = e;
|
|
9235
|
+
if (ne != null && ne.value) {
|
|
9236
9236
|
let le = 0;
|
|
9237
|
-
switch (
|
|
9237
|
+
switch (ne == null ? void 0 : ne.suffix) {
|
|
9238
9238
|
case "hours":
|
|
9239
|
-
le =
|
|
9239
|
+
le = ne.value * 60 * 60 * 1e3;
|
|
9240
9240
|
break;
|
|
9241
9241
|
case "minute":
|
|
9242
|
-
le =
|
|
9242
|
+
le = ne.value * 60 * 1e3;
|
|
9243
9243
|
break;
|
|
9244
9244
|
case "seconds":
|
|
9245
|
-
le =
|
|
9245
|
+
le = ne.value * 1e3;
|
|
9246
9246
|
break;
|
|
9247
9247
|
}
|
|
9248
9248
|
setTimeout(() => {
|
|
@@ -9256,7 +9256,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9256
9256
|
}), r({
|
|
9257
9257
|
touchRequest: Z,
|
|
9258
9258
|
getGlobalModel: b,
|
|
9259
|
-
onRefreshPage:
|
|
9259
|
+
onRefreshPage: ee,
|
|
9260
9260
|
emitEvent: N,
|
|
9261
9261
|
getRecordValueByKeyName: k,
|
|
9262
9262
|
props: e
|
|
@@ -9358,8 +9358,8 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9358
9358
|
}
|
|
9359
9359
|
K.sort((J, Z) => J - Z), K = K.map((J) => {
|
|
9360
9360
|
const Z = String(J).split("").reverse(), X = [];
|
|
9361
|
-
for (let
|
|
9362
|
-
Z && Z[
|
|
9361
|
+
for (let ee = 0; ee < G; ee++)
|
|
9362
|
+
Z && Z[ee] ? X.push(Z[ee]) : X.push("0");
|
|
9363
9363
|
return j && X.splice(j, 0, "."), (N < 0 ? "-" : "") + X.reverse().join("");
|
|
9364
9364
|
}), K.push(N);
|
|
9365
9365
|
let H = 0;
|
|
@@ -9462,23 +9462,23 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9462
9462
|
const K = U[G], H = (W = K == null ? void 0 : K.slice(1, K.length - 1)) == null ? void 0 : W.trim();
|
|
9463
9463
|
let J = H;
|
|
9464
9464
|
const Z = H.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
9465
|
-
for (let
|
|
9466
|
-
const Y = Z[
|
|
9465
|
+
for (let ee = 0; ee < Z.length; ee++) {
|
|
9466
|
+
const Y = Z[ee], te = S[Y];
|
|
9467
9467
|
if (te)
|
|
9468
9468
|
J = H.replace(Y, u(String(te)) || te);
|
|
9469
9469
|
else {
|
|
9470
|
-
const
|
|
9471
|
-
|
|
9470
|
+
const ne = getPageUrlParams(E);
|
|
9471
|
+
ne[Y] && (J = decodeURIComponent(ne[Y]));
|
|
9472
9472
|
}
|
|
9473
9473
|
}
|
|
9474
9474
|
if (/\(.*\)/g.test(J)) {
|
|
9475
|
-
const
|
|
9476
|
-
|
|
9475
|
+
const ee = runCode(J);
|
|
9476
|
+
ee != null && (J = ee);
|
|
9477
9477
|
}
|
|
9478
9478
|
let X = J;
|
|
9479
9479
|
if (X === H && (X = e.variableDefaultValue), X != null) {
|
|
9480
|
-
const
|
|
9481
|
-
if (
|
|
9480
|
+
const ee = e.format;
|
|
9481
|
+
if (ee === "percentage")
|
|
9482
9482
|
if (X = +X, isNaN(X))
|
|
9483
9483
|
V = V.replace(K, `<span class="${j}" style="color:${v("0.00") || e.variableColor};font-size:${unref(o)};${unref(m)}">0%</span>`);
|
|
9484
9484
|
else if (X >= 0) {
|
|
@@ -9507,7 +9507,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9507
9507
|
);
|
|
9508
9508
|
}
|
|
9509
9509
|
else
|
|
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>`))) :
|
|
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>`);
|
|
9511
9511
|
}
|
|
9512
9512
|
}
|
|
9513
9513
|
if (N || (N = `<span class="${j}" style="color: ${v(V)};${unref(m)}">${V}</span>`), e.unitShow && e.unitText) {
|
|
@@ -10986,20 +10986,20 @@ const __default__$2 = defineComponent({
|
|
|
10986
10986
|
}
|
|
10987
10987
|
return H;
|
|
10988
10988
|
});
|
|
10989
|
-
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]) => {
|
|
10990
10990
|
if (unref(o).every((te) => !te) || unref(n) === "design") {
|
|
10991
|
-
let te = null,
|
|
10992
|
-
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) {
|
|
10993
10993
|
const { type: ie, value: oe, mode: le } = Y;
|
|
10994
10994
|
switch (ie) {
|
|
10995
10995
|
case "add":
|
|
10996
|
-
te = te && te.add(oe, le),
|
|
10996
|
+
te = te && te.add(oe, le), ne = ne && ne.add(oe, le);
|
|
10997
10997
|
break;
|
|
10998
10998
|
case "minus":
|
|
10999
|
-
te = te && te.subtract(oe, le),
|
|
10999
|
+
te = te && te.subtract(oe, le), ne = ne && ne.subtract(oe, le);
|
|
11000
11000
|
}
|
|
11001
11001
|
}
|
|
11002
|
-
o.value = [te,
|
|
11002
|
+
o.value = [te, ne], unref(r) && G();
|
|
11003
11003
|
}
|
|
11004
11004
|
}, {
|
|
11005
11005
|
immediate: !0
|
|
@@ -11009,15 +11009,15 @@ const __default__$2 = defineComponent({
|
|
|
11009
11009
|
Array.isArray(H) ? (C = H[0], p = H[1], v = Z.range) : (C = null, p = null);
|
|
11010
11010
|
}, E = (H) => {
|
|
11011
11011
|
let J = !1, { limitStartTime: Z, limitEndTime: X } = e;
|
|
11012
|
-
const
|
|
11012
|
+
const ee = {
|
|
11013
11013
|
startTime: `${C || ""}`,
|
|
11014
11014
|
endTime: `${p || ""}`
|
|
11015
11015
|
};
|
|
11016
|
-
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) {
|
|
11017
11017
|
let Y = null;
|
|
11018
11018
|
if (v === "start" ? Y = C : v === "end" && (Y = p), Y) {
|
|
11019
|
-
const te = Y.startOf("year"),
|
|
11020
|
-
J = !(te <= H && H <
|
|
11019
|
+
const te = Y.startOf("year"), ne = Y.endOf("year");
|
|
11020
|
+
J = !(te <= H && H < ne);
|
|
11021
11021
|
}
|
|
11022
11022
|
}
|
|
11023
11023
|
if (!J) {
|
|
@@ -11115,7 +11115,7 @@ const __default__$2 = defineComponent({
|
|
|
11115
11115
|
}
|
|
11116
11116
|
function G() {
|
|
11117
11117
|
const { limitStartTime: H, limitEndTime: J, limitInterval: Z, isAllowSpanYear: X } = e;
|
|
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((
|
|
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();
|
|
11119
11119
|
}
|
|
11120
11120
|
function K(H) {
|
|
11121
11121
|
const J = [];
|
|
@@ -11508,11 +11508,11 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11508
11508
|
const { value: H, label: J } = e.dataFieldNames, Z = [];
|
|
11509
11509
|
if (Array.isArray(unref(u)))
|
|
11510
11510
|
for (const X of unref(u)) {
|
|
11511
|
-
const
|
|
11512
|
-
|
|
11511
|
+
const ee = unref(c).find((Y) => Y[H] === X);
|
|
11512
|
+
ee && Z.push(ee[J]);
|
|
11513
11513
|
}
|
|
11514
11514
|
else {
|
|
11515
|
-
const X = unref(c).find((
|
|
11515
|
+
const X = unref(c).find((ee) => ee[H] === unref(u));
|
|
11516
11516
|
X && Z.push(X[J]);
|
|
11517
11517
|
}
|
|
11518
11518
|
return Z.join(",");
|
|
@@ -11531,52 +11531,52 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11531
11531
|
}
|
|
11532
11532
|
}), g = e.dataFieldNames;
|
|
11533
11533
|
watch(() => [e.value, e.mode, e.selectFirstOption, e.valueType, c.value], () => {
|
|
11534
|
-
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;
|
|
11535
11535
|
if (H === "multiple" || H === "tags" || H === "combobox") {
|
|
11536
11536
|
if (X)
|
|
11537
11537
|
f.value = X.split(",");
|
|
11538
11538
|
else if (J) {
|
|
11539
11539
|
const Y = unref(c)[0];
|
|
11540
|
-
f.value = Y ? [Y[
|
|
11540
|
+
f.value = Y ? [Y[ee]] : [];
|
|
11541
11541
|
}
|
|
11542
11542
|
} else if (X)
|
|
11543
11543
|
f.value = X;
|
|
11544
11544
|
else if (J) {
|
|
11545
11545
|
const Y = unref(c)[0];
|
|
11546
|
-
f.value = Y ? Y[
|
|
11546
|
+
f.value = Y ? Y[ee] : "";
|
|
11547
11547
|
}
|
|
11548
11548
|
}, {
|
|
11549
11549
|
immediate: !0
|
|
11550
11550
|
});
|
|
11551
11551
|
const w = (H, J) => {
|
|
11552
11552
|
const Z = g.label, X = g.value;
|
|
11553
|
-
let
|
|
11553
|
+
let ee;
|
|
11554
11554
|
const Y = J[Z], te = J[X];
|
|
11555
|
-
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;
|
|
11556
11556
|
}, C = (H) => {
|
|
11557
11557
|
const { label: J, value: Z, options: X } = e.dataFieldNames;
|
|
11558
11558
|
if (X && Array.isArray(H))
|
|
11559
|
-
if (H.some((
|
|
11560
|
-
const
|
|
11559
|
+
if (H.some((ee) => X in ee)) {
|
|
11560
|
+
const ee = {}, Y = [];
|
|
11561
11561
|
H.forEach((te) => {
|
|
11562
|
-
|
|
11562
|
+
ee[te[X]] || (ee[te[X]] = []), ee[te[X]].push({
|
|
11563
11563
|
[J]: te[J],
|
|
11564
11564
|
[Z]: te[Z]
|
|
11565
11565
|
});
|
|
11566
11566
|
});
|
|
11567
|
-
for (const te in
|
|
11567
|
+
for (const te in ee)
|
|
11568
11568
|
Y.push({
|
|
11569
11569
|
[J]: te,
|
|
11570
|
-
[X]:
|
|
11570
|
+
[X]: ee[te]
|
|
11571
11571
|
});
|
|
11572
11572
|
return Y;
|
|
11573
11573
|
} else
|
|
11574
11574
|
return H;
|
|
11575
11575
|
else {
|
|
11576
11576
|
if (!X && Array.isArray(H))
|
|
11577
|
-
return H = H.map((
|
|
11578
|
-
label:
|
|
11579
|
-
value:
|
|
11577
|
+
return H = H.map((ee) => ({
|
|
11578
|
+
label: ee[J],
|
|
11579
|
+
value: ee[Z]
|
|
11580
11580
|
})), H;
|
|
11581
11581
|
if (!X && !Array.isArray(H))
|
|
11582
11582
|
return H;
|
|
@@ -11586,8 +11586,8 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11586
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) {
|
|
11587
11587
|
let X = unref(c)[0];
|
|
11588
11588
|
if (g.options) {
|
|
11589
|
-
const
|
|
11590
|
-
|
|
11589
|
+
const ee = X[g.options];
|
|
11590
|
+
ee && ee.length && (X = ee[0]);
|
|
11591
11591
|
}
|
|
11592
11592
|
f.value = X[g.value];
|
|
11593
11593
|
}
|
|
@@ -11616,7 +11616,7 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11616
11616
|
if (e.mode === "multiple")
|
|
11617
11617
|
H = unref(c).filter((X) => unref(f).includes(X[Z])).map((X) => X[J]);
|
|
11618
11618
|
else {
|
|
11619
|
-
const X = unref(c).find((
|
|
11619
|
+
const X = unref(c).find((ee) => unref(f) === ee[Z]);
|
|
11620
11620
|
X && (H = X[J]);
|
|
11621
11621
|
}
|
|
11622
11622
|
}
|
|
@@ -11665,19 +11665,19 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11665
11665
|
var Z, X;
|
|
11666
11666
|
const J = C(H);
|
|
11667
11667
|
if ((X = (Z = e == null ? void 0 : e.graphicConfig) == null ? void 0 : Z.formFields) != null && X.hasAllOption) {
|
|
11668
|
-
const
|
|
11668
|
+
const ee = g.label, Y = g.value;
|
|
11669
11669
|
J.unshift({
|
|
11670
|
-
[
|
|
11670
|
+
[ee]: "全部",
|
|
11671
11671
|
[Y]: ""
|
|
11672
11672
|
});
|
|
11673
11673
|
}
|
|
11674
11674
|
if (c.value = J, e.selectFirstOption) {
|
|
11675
|
-
let
|
|
11675
|
+
let ee = unref(c)[0];
|
|
11676
11676
|
if (g.options) {
|
|
11677
|
-
const Y =
|
|
11678
|
-
Y && Y.length && (
|
|
11677
|
+
const Y = ee[g.options];
|
|
11678
|
+
Y && Y.length && (ee = Y[0]);
|
|
11679
11679
|
}
|
|
11680
|
-
f.value =
|
|
11680
|
+
f.value = ee[g.value];
|
|
11681
11681
|
}
|
|
11682
11682
|
y(e.id, {
|
|
11683
11683
|
type: e.type,
|
|
@@ -11686,16 +11686,16 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11686
11686
|
recordData: unref(F)
|
|
11687
11687
|
});
|
|
11688
11688
|
}, B = (H) => {
|
|
11689
|
-
var
|
|
11689
|
+
var ee;
|
|
11690
11690
|
const { data: J } = (H == null ? void 0 : H.data) || {}, Z = g.label, X = g.value;
|
|
11691
11691
|
if (J) {
|
|
11692
|
-
const { rows: Y = [] } = ((
|
|
11692
|
+
const { rows: Y = [] } = ((ee = H == null ? void 0 : H.data) == null ? void 0 : ee.data) || {};
|
|
11693
11693
|
D.value = Y;
|
|
11694
11694
|
const te = Y.map((oe) => ({
|
|
11695
11695
|
[Z]: oe.label,
|
|
11696
11696
|
[X]: oe.value
|
|
11697
|
-
})), { id:
|
|
11698
|
-
y(
|
|
11697
|
+
})), { id: ne } = e, ie = d(ne);
|
|
11698
|
+
y(ne, { ...ie, ...unref(M) }), _(ne, !0), I(te);
|
|
11699
11699
|
} else
|
|
11700
11700
|
I([]);
|
|
11701
11701
|
}, A = useIndicatorData(e, B), S = async () => {
|
|
@@ -12591,8 +12591,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12591
12591
|
let D;
|
|
12592
12592
|
const M = () => {
|
|
12593
12593
|
p.value = parseFloat(d) / parseFloat(m);
|
|
12594
|
-
const Y = parseFloat(y) / parseFloat(g), te = document.body.offsetWidth,
|
|
12595
|
-
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 = {
|
|
12596
12596
|
width: `${unref(C)}px`,
|
|
12597
12597
|
height: `${unref(v)}px`,
|
|
12598
12598
|
border: `${e.borderWidth} solid ${e.borderColor}`,
|
|
@@ -12632,8 +12632,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12632
12632
|
touchRequest: () => {
|
|
12633
12633
|
}
|
|
12634
12634
|
}), I = ref(""), B = () => {
|
|
12635
|
-
var
|
|
12636
|
-
const { title: Y } = e, te = (
|
|
12635
|
+
var ne;
|
|
12636
|
+
const { title: Y } = e, te = (ne = unref(c)) == null ? void 0 : ne.RECORD;
|
|
12637
12637
|
return te ? useVariablesInText(
|
|
12638
12638
|
Y,
|
|
12639
12639
|
{
|
|
@@ -12667,8 +12667,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12667
12667
|
}
|
|
12668
12668
|
}), G = computed(() => {
|
|
12669
12669
|
let Y = e.componentList;
|
|
12670
|
-
const te = cloneDeep(e.componentList),
|
|
12671
|
-
containerMap:
|
|
12670
|
+
const te = cloneDeep(e.componentList), ne = o(), ie = s(), oe = {
|
|
12671
|
+
containerMap: ne,
|
|
12672
12672
|
combinationMap: ie
|
|
12673
12673
|
};
|
|
12674
12674
|
i && (Y = compatibleMobileList({
|
|
@@ -12683,7 +12683,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12683
12683
|
const le = [];
|
|
12684
12684
|
for (const he of Y)
|
|
12685
12685
|
if (he.type === "ecanCirculate") {
|
|
12686
|
-
const de = moveToComponentList(
|
|
12686
|
+
const de = moveToComponentList(ne, unref(te), he.id);
|
|
12687
12687
|
he.componentList = de, le.push(...de.map((ye) => ye.id));
|
|
12688
12688
|
}
|
|
12689
12689
|
if (le != null && le.length)
|
|
@@ -12695,8 +12695,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12695
12695
|
}), K = () => {
|
|
12696
12696
|
const Y = e.id;
|
|
12697
12697
|
let te = [];
|
|
12698
|
-
const
|
|
12699
|
-
Array.isArray(
|
|
12698
|
+
const ne = e.componentList;
|
|
12699
|
+
Array.isArray(ne) && (te = ne.map((ie) => ie.id), N(Y, [...new Set(te)]));
|
|
12700
12700
|
}, H = ref(!1), J = {};
|
|
12701
12701
|
for (const Y of e.requestList)
|
|
12702
12702
|
J[Y.requestName] = useRequestData(Y);
|
|
@@ -13980,9 +13980,9 @@ const _sfc_main$c = defineComponent({
|
|
|
13980
13980
|
let m;
|
|
13981
13981
|
const g = computed(() => s.value ? ZOOM_FONT_SIZE : 12), w = computed(() => {
|
|
13982
13982
|
const { gradientShow: W, gradientColors: G, gradientOffset: K, barBorderRadius: H } = e, J = unref(x), Z = J.length, X = [];
|
|
13983
|
-
for (let
|
|
13983
|
+
for (let ee = 0; ee < Z; ee++) {
|
|
13984
13984
|
const Y = {
|
|
13985
|
-
...J[
|
|
13985
|
+
...J[ee],
|
|
13986
13986
|
type: "bar",
|
|
13987
13987
|
barWidth: e.barWidth.value + e.barWidth.suffix,
|
|
13988
13988
|
showBackground: e.showBarBackground
|
|
@@ -13995,10 +13995,10 @@ const _sfc_main$c = defineComponent({
|
|
|
13995
13995
|
width: e.labelWidth,
|
|
13996
13996
|
overflow: e.labelOverflow,
|
|
13997
13997
|
formatter: (te) => {
|
|
13998
|
-
let
|
|
13998
|
+
let ne = "", ie = e.labelFormatter;
|
|
13999
13999
|
ie === "" && (ie = "{c}");
|
|
14000
14000
|
const { seriesName: oe, name: le, value: he, data: de } = te || {};
|
|
14001
|
-
return
|
|
14001
|
+
return ne += useVariablesInText(
|
|
14002
14002
|
ie,
|
|
14003
14003
|
{
|
|
14004
14004
|
textData: {
|
|
@@ -14014,7 +14014,7 @@ const _sfc_main$c = defineComponent({
|
|
|
14014
14014
|
useNewline: !0,
|
|
14015
14015
|
useSpace: !0
|
|
14016
14016
|
}
|
|
14017
|
-
),
|
|
14017
|
+
), ne;
|
|
14018
14018
|
}
|
|
14019
14019
|
}, Y.itemStyle = {}, W && (Y.itemStyle = {
|
|
14020
14020
|
color: {
|
|
@@ -14024,24 +14024,24 @@ const _sfc_main$c = defineComponent({
|
|
|
14024
14024
|
y2: e.isUseHorizontalAxis ? 0 : 1,
|
|
14025
14025
|
colorStops: [{
|
|
14026
14026
|
offset: 0,
|
|
14027
|
-
color: e.colors[
|
|
14027
|
+
color: e.colors[ee]
|
|
14028
14028
|
}, {
|
|
14029
14029
|
offset: K,
|
|
14030
|
-
color: G[
|
|
14030
|
+
color: G[ee]
|
|
14031
14031
|
}, {
|
|
14032
14032
|
offset: 1,
|
|
14033
|
-
color: G[
|
|
14033
|
+
color: G[ee]
|
|
14034
14034
|
}]
|
|
14035
14035
|
}
|
|
14036
14036
|
}), H) {
|
|
14037
14037
|
const te = H.split(",");
|
|
14038
14038
|
if (te != null && te.length) {
|
|
14039
|
-
const
|
|
14039
|
+
const ne = [];
|
|
14040
14040
|
for (const ie of te) {
|
|
14041
14041
|
const oe = parseFloat(ie);
|
|
14042
|
-
isNaN(oe) ||
|
|
14042
|
+
isNaN(oe) || ne.push(oe);
|
|
14043
14043
|
}
|
|
14044
|
-
Y.itemStyle.borderRadius =
|
|
14044
|
+
Y.itemStyle.borderRadius = ne;
|
|
14045
14045
|
}
|
|
14046
14046
|
}
|
|
14047
14047
|
e.isShowMarkLine && (Y.markLine = {
|
|
@@ -14128,21 +14128,21 @@ const _sfc_main$c = defineComponent({
|
|
|
14128
14128
|
const H = K.length;
|
|
14129
14129
|
let J = "", Z = e.tooltipFormatter;
|
|
14130
14130
|
m = (X = K[0]) == null ? void 0 : X.data, Z === "" && (Z = "{marker} {a} {c}");
|
|
14131
|
-
for (let
|
|
14132
|
-
const { marker: Y, seriesName: te, name:
|
|
14133
|
-
if (
|
|
14134
|
-
let le =
|
|
14135
|
-
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/>`;
|
|
14136
14136
|
}
|
|
14137
14137
|
J += useVariablesInText(
|
|
14138
14138
|
Z,
|
|
14139
14139
|
{
|
|
14140
14140
|
textData: {
|
|
14141
14141
|
marker: Y,
|
|
14142
|
-
name:
|
|
14142
|
+
name: ne,
|
|
14143
14143
|
value: ie,
|
|
14144
14144
|
a: te,
|
|
14145
|
-
b:
|
|
14145
|
+
b: ne,
|
|
14146
14146
|
c: ie || 0,
|
|
14147
14147
|
...oe
|
|
14148
14148
|
}
|
|
@@ -14385,14 +14385,14 @@ const _sfc_main$c = defineComponent({
|
|
|
14385
14385
|
await A(W, G);
|
|
14386
14386
|
}, A = (W, G) => new Promise((K) => {
|
|
14387
14387
|
setTimeout(() => {
|
|
14388
|
-
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] || {};
|
|
14389
14389
|
H.forEach((Y, te) => {
|
|
14390
|
-
const
|
|
14390
|
+
const ne = Y.data;
|
|
14391
14391
|
let ie = "";
|
|
14392
|
-
G % 2 ? ie = J[te] + "a8" : ie = J[te],
|
|
14392
|
+
G % 2 ? ie = J[te] + "a8" : ie = J[te], ne[c.value].itemStyle = {
|
|
14393
14393
|
color: ie
|
|
14394
14394
|
};
|
|
14395
|
-
}), 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();
|
|
14396
14396
|
}, 200);
|
|
14397
14397
|
});
|
|
14398
14398
|
r({
|
|
@@ -14967,7 +14967,8 @@ const _sfc_main$b = defineComponent({
|
|
|
14967
14967
|
setGlobalModel: (S, R) => {
|
|
14968
14968
|
}
|
|
14969
14969
|
}), b = () => {
|
|
14970
|
-
|
|
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;
|
|
14971
14972
|
R && S && (x.value = R[0], u.value = R[1], y.value = S[0], d.value = S[1]);
|
|
14972
14973
|
}, E = computed(() => {
|
|
14973
14974
|
let S = e.dataFieldNames;
|
|
@@ -15467,9 +15468,9 @@ const _sfc_main$9 = defineComponent({
|
|
|
15467
15468
|
let H = "", J = e.tooltipFormatter;
|
|
15468
15469
|
y = (X = G[0]) == null ? void 0 : X.data, J === "" && (J = "{marker} {a} {c}");
|
|
15469
15470
|
const Z = e.seriesTypes;
|
|
15470
|
-
for (let
|
|
15471
|
-
const Y = Z[
|
|
15472
|
-
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) {
|
|
15473
15474
|
let de = oe;
|
|
15474
15475
|
typeof oe == "string" && oe[0] === "0" && !isNaN(+oe) && (de = (+oe).toString()), H += `${useValueFormatter(e.xAxisLabelFormatter, de)}<br/>`;
|
|
15475
15476
|
}
|
|
@@ -15478,7 +15479,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
15478
15479
|
te || J,
|
|
15479
15480
|
{
|
|
15480
15481
|
textData: {
|
|
15481
|
-
marker:
|
|
15482
|
+
marker: ne,
|
|
15482
15483
|
name: oe,
|
|
15483
15484
|
value: le,
|
|
15484
15485
|
seriesName: ie,
|
|
@@ -15581,15 +15582,15 @@ const _sfc_main$9 = defineComponent({
|
|
|
15581
15582
|
function P(G) {
|
|
15582
15583
|
const K = [], H = G.length, J = e.seriesTypes;
|
|
15583
15584
|
for (let Z = 0; Z < H; Z++) {
|
|
15584
|
-
const X = J[Z], { type:
|
|
15585
|
+
const X = J[Z], { type: ee, axisIndex: Y } = X || {};
|
|
15585
15586
|
let te = {
|
|
15586
|
-
type:
|
|
15587
|
+
type: ee,
|
|
15587
15588
|
yAxisIndex: Y,
|
|
15588
15589
|
...G[Z]
|
|
15589
15590
|
};
|
|
15590
|
-
if (
|
|
15591
|
-
const
|
|
15592
|
-
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 = {
|
|
15593
15594
|
...te,
|
|
15594
15595
|
symbolSize: e.symbolSize,
|
|
15595
15596
|
smooth: e.smooth,
|
|
@@ -15616,12 +15617,12 @@ const _sfc_main$9 = defineComponent({
|
|
|
15616
15617
|
},
|
|
15617
15618
|
lineStyle: {
|
|
15618
15619
|
width: e.lineStyleWidth,
|
|
15619
|
-
...
|
|
15620
|
+
...ne
|
|
15620
15621
|
}
|
|
15621
15622
|
};
|
|
15622
15623
|
}
|
|
15623
|
-
if (
|
|
15624
|
-
const { gradientShow:
|
|
15624
|
+
if (ee === "bar") {
|
|
15625
|
+
const { gradientShow: ne, gradientColors: ie, gradientOffset: oe } = e, le = {
|
|
15625
15626
|
color: e.colors[Z]
|
|
15626
15627
|
};
|
|
15627
15628
|
if (e.barBorderRadius) {
|
|
@@ -15635,7 +15636,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
15635
15636
|
le.borderRadius = de;
|
|
15636
15637
|
}
|
|
15637
15638
|
}
|
|
15638
|
-
|
|
15639
|
+
ne && (le.color = {
|
|
15639
15640
|
x: 0,
|
|
15640
15641
|
y: 0,
|
|
15641
15642
|
x2: 0,
|
|
@@ -15794,14 +15795,14 @@ const _sfc_main$9 = defineComponent({
|
|
|
15794
15795
|
await T(G, K);
|
|
15795
15796
|
}, T = (G, K) => new Promise((H) => {
|
|
15796
15797
|
setTimeout(() => {
|
|
15797
|
-
const { series: J, color: Z, xAxis: X } = G,
|
|
15798
|
-
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) => {
|
|
15799
15800
|
const ie = te.data;
|
|
15800
15801
|
let oe = "";
|
|
15801
|
-
K % 2 ? oe = Z[
|
|
15802
|
+
K % 2 ? oe = Z[ne] + "a8" : oe = Z[ne], ie[u.value].itemStyle = {
|
|
15802
15803
|
color: oe
|
|
15803
15804
|
};
|
|
15804
|
-
}), 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();
|
|
15805
15806
|
}, 200);
|
|
15806
15807
|
});
|
|
15807
15808
|
r({
|
|
@@ -16925,20 +16926,20 @@ const _sfc_main$5 = defineComponent({
|
|
|
16925
16926
|
W.index = G + 1;
|
|
16926
16927
|
const K = nanoid(), H = cloneDeep(I);
|
|
16927
16928
|
for (const J of H) {
|
|
16928
|
-
const Z = L.find((
|
|
16929
|
+
const Z = L.find((ee) => ee.keyName === J.keyName), X = nanoid();
|
|
16929
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) {
|
|
16930
|
-
const
|
|
16931
|
+
const ee = J.text.match(/\{(.+?)\}/g);
|
|
16931
16932
|
switch (J.type) {
|
|
16932
16933
|
case "ecanText": {
|
|
16933
16934
|
J.data = {
|
|
16934
16935
|
value: String(W[Z.fieldName])
|
|
16935
|
-
},
|
|
16936
|
+
}, ee != null && ee.length || (J.text = "{value}");
|
|
16936
16937
|
break;
|
|
16937
16938
|
}
|
|
16938
16939
|
case "ecanProportion": {
|
|
16939
16940
|
J.data = {
|
|
16940
16941
|
percent: String(W[Z.fieldName])
|
|
16941
|
-
},
|
|
16942
|
+
}, ee != null && ee.length || (J.text = "{percent}");
|
|
16942
16943
|
break;
|
|
16943
16944
|
}
|
|
16944
16945
|
}
|
|
@@ -19026,18 +19027,18 @@ var lottie$1 = { exports: {} };
|
|
|
19026
19027
|
function d(A, S, R) {
|
|
19027
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);
|
|
19028
19029
|
}
|
|
19029
|
-
function y(A, S, R, T, V, U, N, j, W, G, K, H, J, Z, X,
|
|
19030
|
-
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;
|
|
19031
19032
|
}
|
|
19032
19033
|
function m(A, S, R) {
|
|
19033
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;
|
|
19034
19035
|
}
|
|
19035
|
-
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) {
|
|
19036
19037
|
var Y = this.props;
|
|
19037
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)
|
|
19038
|
-
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] *=
|
|
19039
|
-
var te = Y[0],
|
|
19040
|
-
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;
|
|
19041
19042
|
}
|
|
19042
19043
|
function w(A) {
|
|
19043
19044
|
var S = A.props;
|
|
@@ -21545,21 +21546,21 @@ var lottie$1 = { exports: {} };
|
|
|
21545
21546
|
x = d.length, c = 0, f = 0;
|
|
21546
21547
|
var q = e.finalSize * 1.2 * 0.714, $ = !0, I, B, A, S, R;
|
|
21547
21548
|
S = i.length;
|
|
21548
|
-
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;
|
|
21549
21550
|
if (e.j === 2 || e.j === 1) {
|
|
21550
|
-
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;
|
|
21551
21552
|
for (u = 0; u < x; u += 1)
|
|
21552
21553
|
if (d[u].n) {
|
|
21553
|
-
for (de && (de += ye);
|
|
21554
|
-
d[
|
|
21554
|
+
for (de && (de += ye); Ee < u; )
|
|
21555
|
+
d[Ee].animatorJustifyOffset = de, Ee += 1;
|
|
21555
21556
|
de = 0, Te = !0;
|
|
21556
21557
|
} else {
|
|
21557
21558
|
for (A = 0; A < S; A += 1)
|
|
21558
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);
|
|
21559
21560
|
Te = !1;
|
|
21560
21561
|
}
|
|
21561
|
-
for (de && (de += ye);
|
|
21562
|
-
d[
|
|
21562
|
+
for (de && (de += ye); Ee < u; )
|
|
21563
|
+
d[Ee].animatorJustifyOffset = de, Ee += 1;
|
|
21563
21564
|
}
|
|
21564
21565
|
for (u = 0; u < x; u += 1) {
|
|
21565
21566
|
if (o.reset(), J = 1, d[u].n)
|
|
@@ -21578,17 +21579,17 @@ var lottie$1 = { exports: {} };
|
|
|
21578
21579
|
H = d[u].line;
|
|
21579
21580
|
}
|
|
21580
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;
|
|
21581
|
-
var
|
|
21582
|
+
var Se = 0;
|
|
21582
21583
|
for (A = 0; A < S; A += 1)
|
|
21583
|
-
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);
|
|
21584
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; )
|
|
21585
|
-
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));
|
|
21586
21587
|
U = d[u].an / 2 - d[u].add, o.translate(-U, 0, 0);
|
|
21587
21588
|
} else
|
|
21588
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);
|
|
21589
21590
|
for (A = 0; A < S; A += 1)
|
|
21590
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));
|
|
21591
|
-
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)
|
|
21592
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));
|
|
21593
21594
|
for (A = 0; A < S; A += 1)
|
|
21594
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));
|
|
@@ -21599,17 +21600,17 @@ var lottie$1 = { exports: {} };
|
|
|
21599
21600
|
if (e.fillColorAnim && e.fc) {
|
|
21600
21601
|
if (I.fc.propType)
|
|
21601
21602
|
for (Y = 0; Y < 3; Y += 1)
|
|
21602
|
-
T.length ?
|
|
21603
|
-
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));
|
|
21604
21605
|
}
|
|
21605
21606
|
}
|
|
21606
21607
|
for (A = 0; A < S; A += 1)
|
|
21607
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));
|
|
21608
|
-
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) {
|
|
21609
21610
|
if (o.translate(0, -e.ls), o.translate(0, n[1] * q * 0.01 + f, 0), this._pathData.p.v) {
|
|
21610
21611
|
M = (g.point[1] - b.point[1]) / (g.point[0] - b.point[0]);
|
|
21611
|
-
var
|
|
21612
|
-
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);
|
|
21613
21614
|
}
|
|
21614
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);
|
|
21615
21616
|
} else {
|
|
@@ -21625,7 +21626,7 @@ var lottie$1 = { exports: {} };
|
|
|
21625
21626
|
}
|
|
21626
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;
|
|
21627
21628
|
}
|
|
21628
|
-
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);
|
|
21629
21630
|
}
|
|
21630
21631
|
}
|
|
21631
21632
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -25083,46 +25084,46 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25083
25084
|
const { pageMode: n } = inject(GLOBAL_CONFIG, {
|
|
25084
25085
|
pageMode: "normal"
|
|
25085
25086
|
}), i = ref(!1), a = computed(() => unref(n) !== "design" && e.isAutoScroll), o = ref({}), s = ref(!1), l = computed(() => {
|
|
25086
|
-
const
|
|
25087
|
-
return e.isUseSeq &&
|
|
25087
|
+
const Q = cloneDeep(e.columns);
|
|
25088
|
+
return e.isUseSeq && Q.unshift({
|
|
25088
25089
|
title: e.seqName,
|
|
25089
25090
|
dataIndex: "SEQ",
|
|
25090
25091
|
align: "center",
|
|
25091
25092
|
width: e.seqWidth
|
|
25092
|
-
}), e.isUseAction &&
|
|
25093
|
+
}), e.isUseAction && Q.push({
|
|
25093
25094
|
title: "操作",
|
|
25094
25095
|
dataIndex: "ACTION",
|
|
25095
25096
|
width: e.actionColumnWidth
|
|
25096
|
-
}),
|
|
25097
|
+
}), Q;
|
|
25097
25098
|
}), c = ref(), f = ref(!1), u = usePickComponentStyle(e), x = ref([]), d = computed(() => e.scrollX), y = ref(parseFloat(e.height)), m = () => {
|
|
25098
|
-
let
|
|
25099
|
+
let Q = 0;
|
|
25099
25100
|
switch (e.size) {
|
|
25100
25101
|
case "small":
|
|
25101
|
-
|
|
25102
|
+
Q = 50;
|
|
25102
25103
|
break;
|
|
25103
25104
|
case "middle":
|
|
25104
|
-
|
|
25105
|
+
Q = 53;
|
|
25105
25106
|
break;
|
|
25106
25107
|
default:
|
|
25107
|
-
|
|
25108
|
+
Q = 65;
|
|
25108
25109
|
break;
|
|
25109
25110
|
}
|
|
25110
|
-
return
|
|
25111
|
+
return Q;
|
|
25111
25112
|
}, g = ref(0), w = ref(""), C = ref(0);
|
|
25112
25113
|
watchEffect(() => {
|
|
25113
|
-
var
|
|
25114
|
-
(
|
|
25115
|
-
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`);
|
|
25116
25117
|
const ce = document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);
|
|
25117
25118
|
let fe = 0;
|
|
25118
|
-
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) {
|
|
25119
25120
|
let se = 0;
|
|
25120
|
-
se = m(), se && (
|
|
25121
|
+
se = m(), se && (re -= se);
|
|
25121
25122
|
}
|
|
25122
|
-
(ae == null ? void 0 : ae.clientHeight) >
|
|
25123
|
+
(ae == null ? void 0 : ae.clientHeight) > re ? y.value = re : y.value = 0, nextTick(() => {
|
|
25123
25124
|
if (fe) {
|
|
25124
25125
|
const se = document.querySelector(`#ecanTable-${e.id} .ant-table-summary`), ge = (se == null ? void 0 : se.clientHeight) || 0;
|
|
25125
|
-
fe !== ge && unref(y) && (y.value =
|
|
25126
|
+
fe !== ge && unref(y) && (y.value = re + fe - ge);
|
|
25126
25127
|
}
|
|
25127
25128
|
e.isAutoScroll && i.value && setTimeout(() => {
|
|
25128
25129
|
var Ce;
|
|
@@ -25134,22 +25135,22 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25134
25135
|
};
|
|
25135
25136
|
const xe = document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);
|
|
25136
25137
|
if (w.value = (Ce = document.querySelector(`#ecanTable-${e.id} .ant-table`)) == null ? void 0 : Ce.className, xe) {
|
|
25137
|
-
const
|
|
25138
|
+
const we = xe.cloneNode(!0);
|
|
25138
25139
|
xe.style.visibility = "hidden", setTimeout(() => {
|
|
25139
25140
|
ge == null || ge.setAttribute("id", "hiddenTableBody");
|
|
25140
25141
|
}, 0);
|
|
25141
|
-
const
|
|
25142
|
-
if (
|
|
25143
|
-
for (const
|
|
25144
|
-
|
|
25145
|
-
const
|
|
25146
|
-
if (
|
|
25147
|
-
for (const
|
|
25148
|
-
p(
|
|
25149
|
-
const
|
|
25150
|
-
|
|
25151
|
-
var
|
|
25152
|
-
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;
|
|
25153
25154
|
});
|
|
25154
25155
|
}
|
|
25155
25156
|
}
|
|
@@ -25157,127 +25158,127 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25157
25158
|
});
|
|
25158
25159
|
}, 0);
|
|
25159
25160
|
});
|
|
25160
|
-
function p(
|
|
25161
|
-
|
|
25162
|
-
const ue = v(
|
|
25161
|
+
function p(Q) {
|
|
25162
|
+
Q.addEventListener("click", (re) => {
|
|
25163
|
+
const ue = v(re.target).getAttribute("dix");
|
|
25163
25164
|
if (ue) {
|
|
25164
25165
|
const ce = document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ue}"]`);
|
|
25165
25166
|
ce && ce.click();
|
|
25166
25167
|
}
|
|
25167
25168
|
});
|
|
25168
25169
|
}
|
|
25169
|
-
function v(
|
|
25170
|
-
return
|
|
25170
|
+
function v(Q) {
|
|
25171
|
+
return Q.className.includes("ant-table-cell") ? Q : v(Q.parentElement);
|
|
25171
25172
|
}
|
|
25172
|
-
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) => {
|
|
25173
25174
|
let ae = "";
|
|
25174
|
-
return
|
|
25175
|
+
return Q.forEach((ue, ce) => {
|
|
25175
25176
|
const { value: fe, rule: se } = ue;
|
|
25176
|
-
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 + " " : ""}`;
|
|
25177
25178
|
}), ae;
|
|
25178
|
-
}, L = (
|
|
25179
|
-
var
|
|
25180
|
-
if (Array.isArray(
|
|
25181
|
-
let ue =
|
|
25179
|
+
}, L = (Q = []) => {
|
|
25180
|
+
var re, ae;
|
|
25181
|
+
if (Array.isArray(Q) && Q.length > 0) {
|
|
25182
|
+
let ue = Q.length;
|
|
25182
25183
|
const ce = e.columnsFixedNum;
|
|
25183
|
-
if (e.dataType === "indicator" && ((
|
|
25184
|
+
if (e.dataType === "indicator" && ((re = unref(l)) != null && re.length) && !unref(l).find((fe) => {
|
|
25184
25185
|
var se;
|
|
25185
25186
|
return (se = fe.children) == null ? void 0 : se.length;
|
|
25186
25187
|
})) {
|
|
25187
25188
|
const { graphicConfig: { indicators: fe = [] } } = e;
|
|
25188
|
-
|
|
25189
|
+
Q.forEach((se, ge) => {
|
|
25189
25190
|
if (unref(l)[ge])
|
|
25190
|
-
for (const
|
|
25191
|
-
["dataIndex", "title"].includes(
|
|
25192
|
-
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 || {};
|
|
25193
25194
|
Ce && (se.title = Ce);
|
|
25194
25195
|
});
|
|
25195
25196
|
}
|
|
25196
25197
|
for (let fe = ue - 1; fe >= 0; fe--)
|
|
25197
|
-
(ae =
|
|
25198
|
-
ue =
|
|
25198
|
+
(ae = Q[fe]) != null && ae.isHidden && Q.splice(fe, 1);
|
|
25199
|
+
ue = Q.length;
|
|
25199
25200
|
for (let fe = 0; fe < ue; fe++) {
|
|
25200
|
-
const se =
|
|
25201
|
+
const se = Q[fe];
|
|
25201
25202
|
if (fe < ce ? se.fixed = "left" : se.fixed = !1, e.isSortByFront && se.sorter) {
|
|
25202
|
-
const
|
|
25203
|
-
se.sorter = (
|
|
25203
|
+
const Ye = se.dataIndex;
|
|
25204
|
+
se.sorter = (Je, Ze) => Je[Ye] - Ze[Ye];
|
|
25204
25205
|
}
|
|
25205
25206
|
const {
|
|
25206
25207
|
cellAlign: ge = "center",
|
|
25207
25208
|
cellColor: xe,
|
|
25208
25209
|
dataIndex: Ce,
|
|
25209
|
-
title:
|
|
25210
|
-
tableFilter:
|
|
25211
|
-
headerCellAlign:
|
|
25212
|
-
headerCellColor:
|
|
25213
|
-
overflow:
|
|
25214
|
-
conditions:
|
|
25210
|
+
title: we,
|
|
25211
|
+
tableFilter: Me,
|
|
25212
|
+
headerCellAlign: qe,
|
|
25213
|
+
headerCellColor: We,
|
|
25214
|
+
overflow: Ue,
|
|
25215
|
+
conditions: Ke
|
|
25215
25216
|
} = se;
|
|
25216
|
-
|
|
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 = () => ({
|
|
25217
25218
|
style: {
|
|
25218
25219
|
display: "table-cell",
|
|
25219
25220
|
verticalAlign: "middle",
|
|
25220
25221
|
fontSize: e.headerFontSize,
|
|
25221
25222
|
fontWeight: e.headerFontWeight,
|
|
25222
|
-
textAlign:
|
|
25223
|
-
color:
|
|
25223
|
+
textAlign: qe || "center",
|
|
25224
|
+
color: We || e.headerFontColor,
|
|
25224
25225
|
borderBottomColor: e.borderColor,
|
|
25225
25226
|
backgroundColor: e.headerBackgroundColor
|
|
25226
25227
|
}
|
|
25227
|
-
}), se.customCell = (
|
|
25228
|
+
}), se.customCell = (Ye, Je, Ze) => ({
|
|
25228
25229
|
style: {
|
|
25229
25230
|
textAlign: ge,
|
|
25230
|
-
color: q(
|
|
25231
|
+
color: q(Ze) ? e.linkTextColor : xe || e.cellFontColor,
|
|
25231
25232
|
backgroundColor: e.cellBackgroundColor,
|
|
25232
25233
|
borderBottomColor: e.borderColor
|
|
25233
25234
|
},
|
|
25234
25235
|
class: {
|
|
25235
|
-
highlight: unref(he) ===
|
|
25236
|
-
linkText: q(
|
|
25236
|
+
highlight: unref(he) === Je && e.clickHighlight,
|
|
25237
|
+
linkText: q(Ze)
|
|
25237
25238
|
},
|
|
25238
|
-
dix:
|
|
25239
|
+
dix: Ze.dataIndex + "_" + Je,
|
|
25239
25240
|
onClick: X("click", () => {
|
|
25240
|
-
const Xe = e.id, it =
|
|
25241
|
-
|
|
25241
|
+
const Xe = e.id, it = ee(Xe);
|
|
25242
|
+
Ye = {
|
|
25242
25243
|
dataIndex: Ce,
|
|
25243
|
-
title:
|
|
25244
|
-
...
|
|
25245
|
-
}, 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(() => {
|
|
25246
25247
|
if (!e.linkPage && !e.href)
|
|
25247
25248
|
return;
|
|
25248
25249
|
let Qe = !1;
|
|
25249
|
-
(q(
|
|
25250
|
+
(q(Ze) || e.clickTarget !== "cell") && (Qe = !0), Qe && handleJumpLink(e, {
|
|
25250
25251
|
pageMode: unref(n),
|
|
25251
25252
|
getRecordValueByKeyName: te
|
|
25252
25253
|
});
|
|
25253
25254
|
}, 0);
|
|
25254
25255
|
})
|
|
25255
|
-
}),
|
|
25256
|
+
}), Ue === "ellipsis" ? se.ellipsis = !0 : se.ellipsis = !1, Array.isArray(se.children) && L(se.children);
|
|
25256
25257
|
}
|
|
25257
25258
|
}
|
|
25258
25259
|
};
|
|
25259
|
-
function q(
|
|
25260
|
-
let
|
|
25261
|
-
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;
|
|
25262
25263
|
}
|
|
25263
|
-
const $ = (
|
|
25264
|
+
const $ = (Q = []) => {
|
|
25264
25265
|
var ae;
|
|
25265
|
-
let
|
|
25266
|
-
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({
|
|
25267
25268
|
title: e.seqName,
|
|
25268
25269
|
dataIndex: "SEQ",
|
|
25269
25270
|
align: "center",
|
|
25270
25271
|
width: e.seqWidth
|
|
25271
|
-
}), e.isUseAction &&
|
|
25272
|
+
}), e.isUseAction && re.push({
|
|
25272
25273
|
title: "操作",
|
|
25273
25274
|
dataIndex: "ACTION",
|
|
25274
25275
|
width: e.actionColumnWidth
|
|
25275
|
-
}), L(
|
|
25276
|
+
}), L(re), re;
|
|
25276
25277
|
};
|
|
25277
25278
|
watch(M, () => {
|
|
25278
25279
|
D.value = 1, be(!1);
|
|
25279
|
-
}), watch(c, (
|
|
25280
|
-
f.value = !!
|
|
25280
|
+
}), watch(c, (Q) => {
|
|
25281
|
+
f.value = !!Q;
|
|
25281
25282
|
}), watch(() => [
|
|
25282
25283
|
e.columns,
|
|
25283
25284
|
e.isUseSeq,
|
|
@@ -25296,23 +25297,23 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25296
25297
|
}, {
|
|
25297
25298
|
immediate: !0,
|
|
25298
25299
|
deep: !0
|
|
25299
|
-
}), watch(() => [e.data, e.dataType], ([
|
|
25300
|
-
|
|
25300
|
+
}), watch(() => [e.data, e.dataType], ([Q, re]) => {
|
|
25301
|
+
re === "static" && (E.value = Q);
|
|
25301
25302
|
}, {
|
|
25302
25303
|
immediate: !0
|
|
25303
25304
|
});
|
|
25304
|
-
const I = ref({}), B = (
|
|
25305
|
-
if (Array.isArray(
|
|
25306
|
-
const
|
|
25307
|
-
for (let se = 0; se <
|
|
25308
|
-
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];
|
|
25309
25310
|
for (let xe = 0; xe < ue; xe++) {
|
|
25310
25311
|
const Ce = ae[xe];
|
|
25311
25312
|
if (ce[Ce])
|
|
25312
25313
|
ce[Ce].add(ge[Ce]);
|
|
25313
25314
|
else {
|
|
25314
|
-
const
|
|
25315
|
-
|
|
25315
|
+
const we = /* @__PURE__ */ new Set();
|
|
25316
|
+
we.add(ge[Ce]), ce[Ce] = we;
|
|
25316
25317
|
}
|
|
25317
25318
|
}
|
|
25318
25319
|
}
|
|
@@ -25326,24 +25327,24 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25326
25327
|
}
|
|
25327
25328
|
};
|
|
25328
25329
|
watch(() => [e.isReverse, b.value, E.value], () => {
|
|
25329
|
-
const
|
|
25330
|
-
if (B(
|
|
25331
|
-
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));
|
|
25332
25333
|
_.value = ae, x.value = ue.map((ce) => ({ key: nanoid(6), ...ce }));
|
|
25333
25334
|
} else
|
|
25334
|
-
_.value =
|
|
25335
|
+
_.value = Q, x.value = re.map((ae) => ({ key: nanoid(6), ...ae }));
|
|
25335
25336
|
}, {
|
|
25336
25337
|
immediate: !0
|
|
25337
25338
|
});
|
|
25338
|
-
const A = (
|
|
25339
|
-
const ae =
|
|
25339
|
+
const A = (Q, re) => {
|
|
25340
|
+
const ae = Q[0], ue = [{
|
|
25340
25341
|
title: ae.title,
|
|
25341
25342
|
dataIndex: "col0",
|
|
25342
25343
|
key: "col0",
|
|
25343
25344
|
align: "center"
|
|
25344
25345
|
}];
|
|
25345
|
-
for (let fe = 0; fe <
|
|
25346
|
-
const se =
|
|
25346
|
+
for (let fe = 0; fe < re.length; fe++) {
|
|
25347
|
+
const se = re[fe], ge = "col" + (fe + 1);
|
|
25347
25348
|
ue.push({
|
|
25348
25349
|
title: se[ae.dataIndex],
|
|
25349
25350
|
dataIndex: ge,
|
|
@@ -25352,10 +25353,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25352
25353
|
});
|
|
25353
25354
|
}
|
|
25354
25355
|
const ce = [];
|
|
25355
|
-
for (let fe = 1; fe <
|
|
25356
|
-
const se =
|
|
25357
|
-
for (let xe = 0; xe <
|
|
25358
|
-
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];
|
|
25359
25360
|
ge[`col${xe + 1}`] = Ce[se.dataIndex];
|
|
25360
25361
|
}
|
|
25361
25362
|
ce.push(ge);
|
|
@@ -25364,13 +25365,13 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25364
25365
|
columns: ue,
|
|
25365
25366
|
dataSource: ce
|
|
25366
25367
|
};
|
|
25367
|
-
}, S = ref(""), R = (
|
|
25368
|
+
}, S = ref(""), R = (Q) => {
|
|
25368
25369
|
var ue;
|
|
25369
|
-
const { rows:
|
|
25370
|
-
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")) {
|
|
25371
25372
|
const { requestParams: ce = [] } = e, fe = ce.find((se) => se.key === "dataSqlId");
|
|
25372
25373
|
if ((fe == null ? void 0 : fe.value) === "xt_jxzebg") {
|
|
25373
|
-
const se =
|
|
25374
|
+
const se = re.filter((ge) => !ge.绩效总额).map((ge) => ge.ORG_NAME);
|
|
25374
25375
|
se != null && se.length && nextTick(() => {
|
|
25375
25376
|
notification.warning({
|
|
25376
25377
|
message: "提示",
|
|
@@ -25381,23 +25382,23 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25381
25382
|
}
|
|
25382
25383
|
}
|
|
25383
25384
|
i.value = !0;
|
|
25384
|
-
}, T = useRequestData(e), V = async (
|
|
25385
|
+
}, T = useRequestData(e), V = async (Q = !0, re = {}) => {
|
|
25385
25386
|
try {
|
|
25386
|
-
|
|
25387
|
+
Q && (s.value = !0), unref(S) && (re.orderCondition = unref(S)), e.paginationShow && (re = {
|
|
25387
25388
|
pageNum: unref(D),
|
|
25388
25389
|
pageSize: unref(M) || "10",
|
|
25389
25390
|
layer: "1",
|
|
25390
|
-
...
|
|
25391
|
+
...re
|
|
25391
25392
|
});
|
|
25392
|
-
const ae = await T(
|
|
25393
|
+
const ae = await T(re);
|
|
25393
25394
|
R(ae);
|
|
25394
25395
|
} catch (ae) {
|
|
25395
25396
|
console.error(ae);
|
|
25396
25397
|
} finally {
|
|
25397
25398
|
s.value = !1;
|
|
25398
25399
|
}
|
|
25399
|
-
}, U = ({ current:
|
|
25400
|
-
if (D.value =
|
|
25400
|
+
}, U = ({ current: Q }, re, ae) => {
|
|
25401
|
+
if (D.value = Q, ae && Object.keys(ae).length > 0) {
|
|
25401
25402
|
const { field: ue, order: ce } = ae, se = {
|
|
25402
25403
|
ascend: "asc",
|
|
25403
25404
|
descend: "desc"
|
|
@@ -25406,10 +25407,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25406
25407
|
}
|
|
25407
25408
|
e.isSortByFront || be(!1);
|
|
25408
25409
|
}, N = computed(() => {
|
|
25409
|
-
const
|
|
25410
|
+
const Q = e.simple, re = [e.paginationPosition], ae = {};
|
|
25410
25411
|
return e.isShowTotal && (ae.showTotal = (ue) => `共 ${ue} 条数据`), e.paginationShow && {
|
|
25411
|
-
simple:
|
|
25412
|
-
position:
|
|
25412
|
+
simple: Q,
|
|
25413
|
+
position: re,
|
|
25413
25414
|
total: unref(P),
|
|
25414
25415
|
current: unref(D),
|
|
25415
25416
|
pageSize: unref(M) || "10",
|
|
@@ -25417,11 +25418,11 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25417
25418
|
size: "large",
|
|
25418
25419
|
...ae
|
|
25419
25420
|
};
|
|
25420
|
-
}), j = (
|
|
25421
|
-
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;
|
|
25422
25423
|
let se = "";
|
|
25423
25424
|
if (ae == null || ae === "")
|
|
25424
|
-
se =
|
|
25425
|
+
se = Q;
|
|
25425
25426
|
else {
|
|
25426
25427
|
const ge = {
|
|
25427
25428
|
money: formatMoney,
|
|
@@ -25431,116 +25432,116 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25431
25432
|
decimals: formatDecimals,
|
|
25432
25433
|
custom: formatCustom
|
|
25433
25434
|
};
|
|
25434
|
-
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) || "";
|
|
25435
25436
|
}
|
|
25436
25437
|
return se || (se = fe), se;
|
|
25437
|
-
}, G = (
|
|
25438
|
-
const { text:
|
|
25438
|
+
}, G = (Q) => Q === "contrast" ? "upDown" : "", K = (Q) => {
|
|
25439
|
+
const { text: re, format: ae, declineColor: ue = "#39cf93", increaseColor: ce = "#ff512e" } = Q;
|
|
25439
25440
|
if (ae === "contrast") {
|
|
25440
25441
|
const fe = {
|
|
25441
25442
|
fontSize: e.fontSize
|
|
25442
|
-
}, se = parseFloat(
|
|
25443
|
+
}, se = parseFloat(re + "");
|
|
25443
25444
|
return se >= 0 ? fe.color = ce : se < 0 && (fe.color = ue), fe;
|
|
25444
25445
|
} else
|
|
25445
25446
|
return {};
|
|
25446
25447
|
}, H = computed(() => {
|
|
25447
|
-
const { fontSize:
|
|
25448
|
+
const { fontSize: Q } = e;
|
|
25448
25449
|
return {
|
|
25449
|
-
width:
|
|
25450
|
-
height:
|
|
25451
|
-
textIndent: `-${parseFloat(
|
|
25450
|
+
width: Q,
|
|
25451
|
+
height: Q,
|
|
25452
|
+
textIndent: `-${parseFloat(Q) * 2}px`,
|
|
25452
25453
|
overflow: "hidden"
|
|
25453
25454
|
};
|
|
25454
|
-
}), J = (
|
|
25455
|
-
const { text:
|
|
25455
|
+
}), J = (Q) => {
|
|
25456
|
+
const { text: re, declineColor: ae = "#39cf93", increaseColor: ue = "#ff512e" } = Q, { fontSize: ce } = e, fe = parseFloat(re + ""), se = {
|
|
25456
25457
|
width: ce,
|
|
25457
25458
|
verticalAlign: "unset"
|
|
25458
25459
|
};
|
|
25459
25460
|
return fe >= 0 ? se.filter = `drop-shadow(${ue || "#ff512e"} ${ce} -1px)` : fe < 0 && (se.filter = `drop-shadow(${ae || "#39cf93"} ${ce} -1px)`), se;
|
|
25460
|
-
}, Z = (
|
|
25461
|
-
const
|
|
25462
|
-
if (
|
|
25461
|
+
}, Z = (Q) => {
|
|
25462
|
+
const re = parseFloat(Q + "");
|
|
25463
|
+
if (re >= 0)
|
|
25463
25464
|
return goUp;
|
|
25464
|
-
if (
|
|
25465
|
+
if (re < 0)
|
|
25465
25466
|
return goDown;
|
|
25466
|
-
}, X = useEmitEvent(e), { getGlobalModel:
|
|
25467
|
+
}, X = useEmitEvent(e), { getGlobalModel: ee, setGlobalModel: Y, getRecordValueByKeyName: te } = inject(GLOBAL_MODEL, {
|
|
25467
25468
|
// @ts-ignore
|
|
25468
25469
|
// eslint-disable-next-line no-void
|
|
25469
|
-
getGlobalModel: (
|
|
25470
|
+
getGlobalModel: (Q) => {
|
|
25470
25471
|
},
|
|
25471
25472
|
// @ts-ignore
|
|
25472
25473
|
// eslint-disable-next-line no-void
|
|
25473
|
-
setGlobalModel: (
|
|
25474
|
+
setGlobalModel: (Q, re) => {
|
|
25474
25475
|
},
|
|
25475
25476
|
// @ts-ignore
|
|
25476
25477
|
// eslint-disable-next-line no-void
|
|
25477
|
-
getRecordValueByKeyName: (
|
|
25478
|
+
getRecordValueByKeyName: (Q) => {
|
|
25478
25479
|
}
|
|
25479
25480
|
});
|
|
25480
25481
|
Y(e.id, {
|
|
25481
25482
|
type: e.type,
|
|
25482
25483
|
RECORD: ""
|
|
25483
25484
|
});
|
|
25484
|
-
const
|
|
25485
|
-
let ae =
|
|
25485
|
+
const ne = (Q = [], re = []) => {
|
|
25486
|
+
let ae = Q.map((ue) => ({ title: ue, dataIndex: ue, key: ue }));
|
|
25486
25487
|
unref(l).find((ue) => {
|
|
25487
25488
|
var ce;
|
|
25488
25489
|
return (ce = ue.children) == null ? void 0 : ce.length;
|
|
25489
|
-
}) && (ae = cloneDeep(unref(l))), k.value = cloneDeep(ae), b.value = $(ae), E.value =
|
|
25490
|
-
}, ie = (
|
|
25491
|
-
var
|
|
25492
|
-
|
|
25493
|
-
}, 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) => {
|
|
25494
25495
|
try {
|
|
25495
|
-
|
|
25496
|
-
const
|
|
25496
|
+
Q && (s.value = !0);
|
|
25497
|
+
const re = unref(S).split(" "), ae = {};
|
|
25497
25498
|
e.isSortByFront || (ae.sort = {
|
|
25498
|
-
order:
|
|
25499
|
-
field:
|
|
25499
|
+
order: re[1],
|
|
25500
|
+
field: re[0]
|
|
25500
25501
|
});
|
|
25501
25502
|
const ue = await oe(ae);
|
|
25502
25503
|
ie(ue);
|
|
25503
|
-
} catch (
|
|
25504
|
-
console.error(
|
|
25504
|
+
} catch (re) {
|
|
25505
|
+
console.error(re);
|
|
25505
25506
|
} finally {
|
|
25506
25507
|
s.value = !1;
|
|
25507
25508
|
}
|
|
25508
25509
|
}, he = ref(-1), { loadedData: de } = inject(LOADED_DATA, {
|
|
25509
25510
|
loadedData: {}
|
|
25510
25511
|
}), ye = ref(!1);
|
|
25511
|
-
watch(de, (
|
|
25512
|
+
watch(de, (Q) => {
|
|
25512
25513
|
if (e.dataType === "indicator") {
|
|
25513
|
-
const
|
|
25514
|
-
|
|
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));
|
|
25515
25516
|
}
|
|
25516
25517
|
}, {
|
|
25517
25518
|
deep: !0
|
|
25518
25519
|
});
|
|
25519
|
-
const be = (
|
|
25520
|
+
const be = (Q = !0) => {
|
|
25520
25521
|
switch (e.dataType) {
|
|
25521
25522
|
case "request":
|
|
25522
|
-
V(
|
|
25523
|
+
V(Q);
|
|
25523
25524
|
break;
|
|
25524
25525
|
case "indicator":
|
|
25525
|
-
canRequestIndicator(e.graphicConfig, unref(de)) && le(
|
|
25526
|
+
canRequestIndicator(e.graphicConfig, unref(de)) && le(Q);
|
|
25526
25527
|
break;
|
|
25527
25528
|
}
|
|
25528
|
-
},
|
|
25529
|
-
const
|
|
25530
|
-
Y(
|
|
25529
|
+
}, Ee = () => {
|
|
25530
|
+
const Q = e.id, re = ee(Q);
|
|
25531
|
+
Y(Q, { ...re, type: e.type, RECORD: "" });
|
|
25531
25532
|
}, Te = computed(() => {
|
|
25532
|
-
const
|
|
25533
|
-
let
|
|
25533
|
+
const Q = unref(_);
|
|
25534
|
+
let re = 0;
|
|
25534
25535
|
const { subTotalColumn: ae, subTotalName: ue } = e;
|
|
25535
|
-
ae && (
|
|
25536
|
+
ae && (re = Q.findIndex((xe) => xe.dataIndex === ae), re < 0 && (re = 0));
|
|
25536
25537
|
const ce = [];
|
|
25537
25538
|
let fe = 0;
|
|
25538
|
-
for (let xe = 0; xe <
|
|
25539
|
-
const Ce =
|
|
25540
|
-
xe ===
|
|
25539
|
+
for (let xe = 0; xe < Q.length; xe++) {
|
|
25540
|
+
const Ce = Q[xe], { isCalcTotal: we } = Ce;
|
|
25541
|
+
xe === re ? ce.push({
|
|
25541
25542
|
...Ce,
|
|
25542
25543
|
total: ue
|
|
25543
|
-
}) :
|
|
25544
|
+
}) : we ? (ce.push({
|
|
25544
25545
|
...Ce,
|
|
25545
25546
|
index: xe,
|
|
25546
25547
|
total: 0
|
|
@@ -25550,121 +25551,121 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25550
25551
|
}
|
|
25551
25552
|
if (fe === 0)
|
|
25552
25553
|
return [];
|
|
25553
|
-
const se = unref(x), ge =
|
|
25554
|
+
const se = unref(x), ge = Se(ce);
|
|
25554
25555
|
for (let xe = 0; xe < ge.length; xe++) {
|
|
25555
25556
|
const Ce = ge[xe];
|
|
25556
|
-
let
|
|
25557
|
-
const { isCalcTotal:
|
|
25558
|
-
if (
|
|
25559
|
-
for (let
|
|
25560
|
-
const
|
|
25561
|
-
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());
|
|
25562
25563
|
}
|
|
25563
|
-
Ce.total =
|
|
25564
|
+
Ce.total = we;
|
|
25564
25565
|
}
|
|
25565
25566
|
}
|
|
25566
25567
|
return ge;
|
|
25567
25568
|
});
|
|
25568
|
-
function
|
|
25569
|
+
function Se(Q) {
|
|
25569
25570
|
var ae;
|
|
25570
|
-
const
|
|
25571
|
-
for (const ue of
|
|
25572
|
-
(ae = ue.children) != null && ae.length ?
|
|
25573
|
-
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;
|
|
25574
25575
|
}
|
|
25575
|
-
const { setRequest:
|
|
25576
|
-
setRequest: (
|
|
25576
|
+
const { setRequest: ke } = inject(REQUEST_MODEL, {
|
|
25577
|
+
setRequest: (Q) => {
|
|
25577
25578
|
}
|
|
25578
25579
|
});
|
|
25579
|
-
typeof
|
|
25580
|
+
typeof ke == "function" && ke({
|
|
25580
25581
|
id: e.id,
|
|
25581
25582
|
requestFn: be,
|
|
25582
25583
|
sortNum: e.requestSort
|
|
25583
25584
|
}), r({
|
|
25584
25585
|
refreshData: be
|
|
25585
25586
|
});
|
|
25586
|
-
const
|
|
25587
|
-
if (
|
|
25587
|
+
const Ge = (Q = "", re) => useVariablesInText(Q, re), Ve = (Q) => {
|
|
25588
|
+
if (Q !== "event")
|
|
25588
25589
|
return {
|
|
25589
25590
|
self: "_self",
|
|
25590
25591
|
blank: "_blank"
|
|
25591
|
-
}[
|
|
25592
|
-
},
|
|
25593
|
-
|
|
25592
|
+
}[Q];
|
|
25593
|
+
}, pe = (Q, re = "") => {
|
|
25594
|
+
Q === "event" && window.parent.postMessage({
|
|
25594
25595
|
type: "openPage",
|
|
25595
|
-
url:
|
|
25596
|
+
url: re
|
|
25596
25597
|
}, "*");
|
|
25597
|
-
},
|
|
25598
|
-
|
|
25599
|
-
},
|
|
25600
|
-
|
|
25601
|
-
},
|
|
25602
|
-
},
|
|
25603
|
-
const
|
|
25604
|
-
if (typeof
|
|
25605
|
-
let ae = unref(I)[
|
|
25606
|
-
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();
|
|
25607
25608
|
return Array.isArray(ae) ? (ae = ae.filter((ce) => typeof ce.label == "string" ? ce.label.toLowerCase().includes(ue.toLowerCase()) : !0), ae) : [];
|
|
25608
25609
|
}
|
|
25609
25610
|
return [];
|
|
25610
|
-
},
|
|
25611
|
-
var Ce,
|
|
25612
|
-
const
|
|
25611
|
+
}, Be = async () => {
|
|
25612
|
+
var Ce, we;
|
|
25613
|
+
const Q = "EXPORT_KEY";
|
|
25613
25614
|
message.loading({
|
|
25614
|
-
key:
|
|
25615
|
+
key: Q,
|
|
25615
25616
|
content: "正在导出...",
|
|
25616
25617
|
duration: 0
|
|
25617
25618
|
});
|
|
25618
|
-
let
|
|
25619
|
+
let re = [];
|
|
25619
25620
|
if (e.dataType === "static")
|
|
25620
|
-
|
|
25621
|
+
re = e.data;
|
|
25621
25622
|
else if (e.dataType === "request") {
|
|
25622
|
-
const
|
|
25623
|
-
unref(S) && (
|
|
25624
|
-
const
|
|
25625
|
-
|
|
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) || {};
|
|
25626
25627
|
}
|
|
25627
25628
|
const ae = unref(_), ue = [], ce = [];
|
|
25628
|
-
ae == null || ae.forEach((
|
|
25629
|
-
ue.push(
|
|
25629
|
+
ae == null || ae.forEach((Me) => {
|
|
25630
|
+
ue.push(Me.dataIndex), ce.push(Me.title);
|
|
25630
25631
|
});
|
|
25631
|
-
const fe =
|
|
25632
|
-
utils.book_append_sheet(se, xe, "sheet"), writeFile(se, "表格数据.xlsx"), message.success({ key:
|
|
25633
|
-
},
|
|
25634
|
-
const ae = +
|
|
25635
|
-
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);
|
|
25636
25637
|
};
|
|
25637
25638
|
useOnEvent(e, {
|
|
25638
|
-
resetRecord:
|
|
25639
|
+
resetRecord: Ee,
|
|
25639
25640
|
refreshData: be,
|
|
25640
|
-
exportTableData:
|
|
25641
|
+
exportTableData: Be
|
|
25641
25642
|
});
|
|
25642
|
-
const
|
|
25643
|
+
const He = (Q, re) => {
|
|
25643
25644
|
let ae = null;
|
|
25644
|
-
return e.stripedShow && (ae =
|
|
25645
|
-
},
|
|
25646
|
-
let
|
|
25647
|
-
const { height:
|
|
25648
|
-
return ae &&
|
|
25649
|
-
}),
|
|
25650
|
-
let
|
|
25651
|
-
return e.headerBackgroundColor && (
|
|
25652
|
-
}),
|
|
25653
|
-
let
|
|
25654
|
-
return (e.cellBackgroundColor || e.stripedShow && e.stripedColor) && (
|
|
25655
|
-
}),
|
|
25656
|
-
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 = "";
|
|
25657
25658
|
const {
|
|
25658
|
-
paginationColor:
|
|
25659
|
+
paginationColor: re,
|
|
25659
25660
|
paginationBgColor: ae,
|
|
25660
25661
|
activePaginationColor: ue,
|
|
25661
25662
|
activePaginationBgColor: ce,
|
|
25662
25663
|
hoverBackgroundColor: fe
|
|
25663
25664
|
} = e;
|
|
25664
|
-
return
|
|
25665
|
-
}),
|
|
25666
|
-
const { conditionCode: ae } =
|
|
25667
|
-
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 });
|
|
25668
25669
|
};
|
|
25669
25670
|
return {
|
|
25670
25671
|
x: d,
|
|
@@ -25676,25 +25677,25 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25676
25677
|
tableChange: U,
|
|
25677
25678
|
summaryList: Te,
|
|
25678
25679
|
loading: s,
|
|
25679
|
-
onTouchHrefEvent:
|
|
25680
|
-
handleHref:
|
|
25681
|
-
handleHrefTarget:
|
|
25680
|
+
onTouchHrefEvent: pe,
|
|
25681
|
+
handleHref: Ge,
|
|
25682
|
+
handleHrefTarget: Ve,
|
|
25682
25683
|
useRowIndex: he,
|
|
25683
25684
|
tableColumns: _,
|
|
25684
25685
|
tableDataSource: x,
|
|
25685
|
-
useFilterOptions:
|
|
25686
|
-
useSetSelectedKeys:
|
|
25687
|
-
onResetFilter:
|
|
25688
|
-
onSearchFilterOptions:
|
|
25689
|
-
exportTableData:
|
|
25690
|
-
handleProgressText:
|
|
25686
|
+
useFilterOptions: _e,
|
|
25687
|
+
useSetSelectedKeys: me,
|
|
25688
|
+
onResetFilter: ve,
|
|
25689
|
+
onSearchFilterOptions: Ae,
|
|
25690
|
+
exportTableData: Be,
|
|
25691
|
+
handleProgressText: Ne,
|
|
25691
25692
|
pageSizeVisible: f,
|
|
25692
25693
|
pageSize: M,
|
|
25693
25694
|
tableRef: c,
|
|
25694
|
-
rowClassName:
|
|
25695
|
-
tableHeight:
|
|
25696
|
-
tableHeaderBgColor:
|
|
25697
|
-
tableBodyBgColor:
|
|
25695
|
+
rowClassName: He,
|
|
25696
|
+
tableHeight: ze,
|
|
25697
|
+
tableHeaderBgColor: Ie,
|
|
25698
|
+
tableBodyBgColor: je,
|
|
25698
25699
|
getChgStyle: K,
|
|
25699
25700
|
chgBoxStyle: H,
|
|
25700
25701
|
getChgBoxImgStyle: J,
|
|
@@ -25702,32 +25703,32 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25702
25703
|
seqIcon1,
|
|
25703
25704
|
seqIcon2,
|
|
25704
25705
|
seqIcon3,
|
|
25705
|
-
iconSize:
|
|
25706
|
-
containerClass:
|
|
25707
|
-
getCellStyle: (
|
|
25708
|
-
const { overflow: ae, conditionCode: ue, attribute: ce } =
|
|
25709
|
-
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;
|
|
25710
25711
|
},
|
|
25711
|
-
isMatchCondition:
|
|
25712
|
-
getAttrImgSrc: (
|
|
25713
|
-
const { attribute:
|
|
25712
|
+
isMatchCondition: De,
|
|
25713
|
+
getAttrImgSrc: (Q) => {
|
|
25714
|
+
const { attribute: re } = Q;
|
|
25714
25715
|
let ae = "";
|
|
25715
|
-
return
|
|
25716
|
+
return re != null && re.icon && (ae = useImagePath(re.icon)), ae;
|
|
25716
25717
|
},
|
|
25717
|
-
getAttrImgStyle: (
|
|
25718
|
-
let
|
|
25719
|
-
return (
|
|
25718
|
+
getAttrImgStyle: (Q) => {
|
|
25719
|
+
let re = {};
|
|
25720
|
+
return (Q == null ? void 0 : Q.cellAlign) === "right" ? re = {
|
|
25720
25721
|
marginRight: "5px"
|
|
25721
|
-
} :
|
|
25722
|
+
} : re = {
|
|
25722
25723
|
position: "absolute",
|
|
25723
25724
|
marginLeft: "5px"
|
|
25724
25725
|
}, {
|
|
25725
25726
|
width: "auto",
|
|
25726
25727
|
height: parseFloat(e.fontSize) + 6 + "px",
|
|
25727
|
-
...
|
|
25728
|
+
...re
|
|
25728
25729
|
};
|
|
25729
25730
|
},
|
|
25730
|
-
getCellText: (
|
|
25731
|
+
getCellText: (Q, re) => Q || Q === 0 ? Q : re == null ? void 0 : re.defaultVal,
|
|
25731
25732
|
autoScrollHeight: g,
|
|
25732
25733
|
autoScrollClass: w,
|
|
25733
25734
|
autoScrollTop: C,
|
|
@@ -26168,8 +26169,8 @@ const _sfc_main$2 = defineComponent({
|
|
|
26168
26169
|
let H = K.slice(1, -1).trim();
|
|
26169
26170
|
const J = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, Z = H.match(J);
|
|
26170
26171
|
for (let X = 0; X < Z.length; X++) {
|
|
26171
|
-
const
|
|
26172
|
-
Y != null && (H = H.replace(
|
|
26172
|
+
const ee = Z[X], Y = N[ee];
|
|
26173
|
+
Y != null && (H = H.replace(ee, Y));
|
|
26173
26174
|
}
|
|
26174
26175
|
j = j.replace(K, H);
|
|
26175
26176
|
}
|
|
@@ -26188,9 +26189,9 @@ const _sfc_main$2 = defineComponent({
|
|
|
26188
26189
|
const J = ((H = (K = G == null ? void 0 : G.data) == null ? void 0 : K.data) == null ? void 0 : H.rows) || [];
|
|
26189
26190
|
let Z = "";
|
|
26190
26191
|
for (const X of J) {
|
|
26191
|
-
const
|
|
26192
|
-
if (
|
|
26193
|
-
for (const Y of
|
|
26192
|
+
const ee = d(X) || [];
|
|
26193
|
+
if (ee != null && ee.length)
|
|
26194
|
+
for (const Y of ee)
|
|
26194
26195
|
Z += `<div style="word-break: break-all;white-space: normal;">${Y}</div>`;
|
|
26195
26196
|
}
|
|
26196
26197
|
Z = `<div style="max-width:200px;">${Z}</div>`, a.value = Z, j(unref(m), Z);
|
|
@@ -26274,13 +26275,13 @@ const _sfc_main$2 = defineComponent({
|
|
|
26274
26275
|
if (!J) {
|
|
26275
26276
|
let Z = "", X = e.tooltipFormatter;
|
|
26276
26277
|
X === "" && (X = "{name}:{value}");
|
|
26277
|
-
const
|
|
26278
|
-
return
|
|
26278
|
+
const ee = unref(p).find((Y) => Y.name === H);
|
|
26279
|
+
return ee ? (Z += useVariablesInText(
|
|
26279
26280
|
X,
|
|
26280
26281
|
{
|
|
26281
26282
|
textData: {
|
|
26282
26283
|
name: H,
|
|
26283
|
-
...
|
|
26284
|
+
...ee
|
|
26284
26285
|
}
|
|
26285
26286
|
},
|
|
26286
26287
|
{
|