@ecan-bi/datav 1.4.5 → 1.4.7
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 +1114 -1106
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +36 -36
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/graph/scatter/Scatter.vue.d.ts +8 -0
- package/types/graph/scatter/index.d.ts +8 -0
- package/types/graph/scatter/props.d.ts +5 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.7 */
|
|
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,
|
|
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, G = D, W = M, H = F, K = O, j = 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 = G & H ^ G & j ^ H & j, Re = W & K ^ W & J ^ K & J, Oe = (G >>> 28 | W << 4) ^ (G << 30 | W >>> 2) ^ (G << 25 | W >>> 7), Le = (W >>> 28 | G << 4) ^ (W << 30 | G >>> 2) ^ (W << 25 | G >>> 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 = j, X = J, j = H, J = K, H = G, K = W, W = ce + se | 0, G = fe + ge + (W >>> 0 < ce >>> 0 ? 1 : 0) | 0;
|
|
3217
3217
|
}
|
|
3218
|
-
M = C.low = M + W, C.high = D +
|
|
3218
|
+
M = C.low = M + W, C.high = D + G + (M >>> 0 < W >>> 0 ? 1 : 0), O = p.low = O + K, p.high = F + H + (O >>> 0 < K >>> 0 ? 1 : 0), q = v.low = q + J, v.high = L + j + (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;
|
|
@@ -3345,8 +3345,8 @@ function requireSha3() {
|
|
|
3345
3345
|
U.high = N.high, U.low = N.low;
|
|
3346
3346
|
for (var D = 0; D < 5; D++)
|
|
3347
3347
|
for (var O = 0; O < 5; O++) {
|
|
3348
|
-
var A = D + 5 * O, k = p[A],
|
|
3349
|
-
k.high =
|
|
3348
|
+
var A = D + 5 * O, k = p[A], G = m[A], W = m[(D + 1) % 5 + 5 * O], H = m[(D + 2) % 5 + 5 * O];
|
|
3349
|
+
k.high = G.high ^ ~W.high & H.high, k.low = G.low ^ ~W.low & H.low;
|
|
3350
3350
|
}
|
|
3351
3351
|
var k = p[0], K = y[P];
|
|
3352
3352
|
k.high ^= K.high, k.low ^= K.low;
|
|
@@ -3724,11 +3724,11 @@ function requireRipemd160() {
|
|
|
3724
3724
|
var D = k + P, M = _[D];
|
|
3725
3725
|
_[D] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360;
|
|
3726
3726
|
}
|
|
3727
|
-
var F = this._hash.words, O = y.words, L = m.words, q = f.words, $ = u.words, I = x.words, B = d.words, A, S, R, T, V, U, N,
|
|
3728
|
-
U = A = F[0], N = S = F[1],
|
|
3727
|
+
var F = this._hash.words, O = y.words, L = m.words, q = f.words, $ = u.words, I = x.words, B = d.words, A, S, R, T, V, U, N, G, W, H;
|
|
3728
|
+
U = A = F[0], N = S = F[1], G = R = F[2], W = T = F[3], H = V = F[4];
|
|
3729
3729
|
for (var K, P = 0; P < 80; P += 1)
|
|
3730
|
-
K = A + _[k + q[P]] | 0, P < 16 ? K += w(S, R, T) + O[0] : P < 32 ? K += C(S, R, T) + O[1] : P < 48 ? K += p(S, R, T) + O[2] : P < 64 ? K += v(S, R, T) + O[3] : K += b(S, R, T) + O[4], K = K | 0, K = E(K, I[P]), K = K + V | 0, A = V, V = T, T = E(R, 10), R = S, S = K, K = U + _[k + $[P]] | 0, P < 16 ? K += b(N,
|
|
3731
|
-
K = F[1] + R + W | 0, F[1] = F[2] + T +
|
|
3730
|
+
K = A + _[k + q[P]] | 0, P < 16 ? K += w(S, R, T) + O[0] : P < 32 ? K += C(S, R, T) + O[1] : P < 48 ? K += p(S, R, T) + O[2] : P < 64 ? K += v(S, R, T) + O[3] : K += b(S, R, T) + O[4], K = K | 0, K = E(K, I[P]), K = K + V | 0, A = V, V = T, T = E(R, 10), R = S, S = K, K = U + _[k + $[P]] | 0, P < 16 ? K += b(N, G, W) + L[0] : P < 32 ? K += v(N, G, W) + L[1] : P < 48 ? K += p(N, G, W) + L[2] : P < 64 ? K += C(N, G, W) + L[3] : K += w(N, G, W) + L[4], K = K | 0, K = E(K, B[P]), K = K + H | 0, U = H, H = W, W = E(G, 10), G = N, N = K;
|
|
3731
|
+
K = F[1] + R + W | 0, F[1] = F[2] + T + H | 0, F[2] = F[3] + V + U | 0, F[3] = F[4] + A + N | 0, F[4] = F[0] + S + G | 0, F[0] = K;
|
|
3732
3732
|
},
|
|
3733
3733
|
_doFinalize: function() {
|
|
3734
3734
|
var _ = this._data, k = _.words, P = this._nDataBytes * 8, D = _.sigBytes * 8;
|
|
@@ -7929,38 +7929,38 @@ const runCode = (e, r) => {
|
|
|
7929
7929
|
}
|
|
7930
7930
|
if (typeof T == "object" && T != null && T.id) {
|
|
7931
7931
|
let V = {};
|
|
7932
|
-
const { id: U, prop: N, propKey:
|
|
7933
|
-
let
|
|
7932
|
+
const { id: U, prop: N, propKey: G, operate: W } = T;
|
|
7933
|
+
let H = !1;
|
|
7934
7934
|
try {
|
|
7935
|
-
JSON.parse(U),
|
|
7935
|
+
JSON.parse(U), H = !0;
|
|
7936
7936
|
} catch {
|
|
7937
|
-
|
|
7937
|
+
H = !1;
|
|
7938
7938
|
}
|
|
7939
7939
|
U === "THIS" ? V = _(unref(b)) || {} : V = _(U) || {};
|
|
7940
7940
|
const K = unref(V[N]);
|
|
7941
|
-
let
|
|
7941
|
+
let j = 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
|
-
|
|
7947
|
+
j = unref(K).add(Z, ee);
|
|
7948
7948
|
break;
|
|
7949
7949
|
case "minus":
|
|
7950
|
-
|
|
7950
|
+
j = unref(K).subtract(Z, ee);
|
|
7951
7951
|
break;
|
|
7952
7952
|
}
|
|
7953
|
-
|
|
7953
|
+
j == null && (j = unref(K)), j = (j == null ? void 0 : j.format((G == null ? void 0 : G.trim()) || V.format)) || "";
|
|
7954
7954
|
} else if (Object.prototype.toString.call(K) === "[object Object]")
|
|
7955
|
-
|
|
7955
|
+
G ? j = K[G] : j = N ? K[N] : K;
|
|
7956
7956
|
else if (lowerCaseIncludes(V == null ? void 0 : V.type, "select") && unref(K) && N && Array.isArray(unref(K)))
|
|
7957
|
-
|
|
7958
|
-
else if (
|
|
7957
|
+
j = unref(K).map((Z) => Object.prototype.hasOwnProperty.call(Z, N) ? Z[N] : Z);
|
|
7958
|
+
else if (H) {
|
|
7959
7959
|
const Z = JSON.parse(U);
|
|
7960
|
-
console.log(Z, "urlvalue"),
|
|
7960
|
+
console.log(Z, "urlvalue"), j = Z.value;
|
|
7961
7961
|
} else
|
|
7962
|
-
|
|
7963
|
-
F[R] =
|
|
7962
|
+
j = K;
|
|
7963
|
+
F[R] = j;
|
|
7964
7964
|
} else
|
|
7965
7965
|
typeof T == "object" && T.id === null && g === 1 ? (console.log(T.propKey, "value.propKey"), F[R] = T.propKey) : typeof T == "string" && (F[R] = useVariablesInText(T));
|
|
7966
7966
|
}
|
|
@@ -8022,8 +8022,8 @@ const runCode = (e, r) => {
|
|
|
8022
8022
|
if (typeof T[U] == "string") {
|
|
8023
8023
|
const N = T[U].match(/\${(.+?)\}/g);
|
|
8024
8024
|
if (N != null && N.length) {
|
|
8025
|
-
const
|
|
8026
|
-
|
|
8025
|
+
const G = N[0].slice(2, -1);
|
|
8026
|
+
G && V[G] ? T[U] = V[G] : T[U] = "";
|
|
8027
8027
|
}
|
|
8028
8028
|
}
|
|
8029
8029
|
}
|
|
@@ -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,
|
|
@@ -8152,13 +8152,13 @@ const runCode = (e, r) => {
|
|
|
8152
8152
|
return [];
|
|
8153
8153
|
const { interval: B, intervalUnit: A, startTime: S, endTime: R, operate: T, useCurrentTime: V } = I || {};
|
|
8154
8154
|
if (V && (q = dayjs().subtract(B, A), $ = dayjs()), S && (q = dayjs(S)), R && ($ = dayjs(R)), T) {
|
|
8155
|
-
const { type: U, value: N, mode:
|
|
8155
|
+
const { type: U, value: N, mode: G } = T;
|
|
8156
8156
|
switch (U) {
|
|
8157
8157
|
case "add":
|
|
8158
|
-
q = q && q.add(N,
|
|
8158
|
+
q = q && q.add(N, G), $ = $ && $.add(N, G);
|
|
8159
8159
|
break;
|
|
8160
8160
|
case "minus":
|
|
8161
|
-
q = q && q.subtract(N,
|
|
8161
|
+
q = q && q.subtract(N, G), $ = $ && $.subtract(N, G);
|
|
8162
8162
|
}
|
|
8163
8163
|
}
|
|
8164
8164
|
} else {
|
|
@@ -8224,8 +8224,8 @@ const runCode = (e, r) => {
|
|
|
8224
8224
|
}), D;
|
|
8225
8225
|
}, x = (k = {}, P) => {
|
|
8226
8226
|
if (k != null && k.sortCpnts && P) {
|
|
8227
|
-
const
|
|
8228
|
-
|
|
8227
|
+
const H = v(k);
|
|
8228
|
+
H && (P.sort = H);
|
|
8229
8229
|
}
|
|
8230
8230
|
const {
|
|
8231
8231
|
label: D,
|
|
@@ -8245,16 +8245,16 @@ const runCode = (e, r) => {
|
|
|
8245
8245
|
dimByCount: U,
|
|
8246
8246
|
dataTo: N
|
|
8247
8247
|
} = k;
|
|
8248
|
-
let
|
|
8249
|
-
if (R && (
|
|
8250
|
-
const
|
|
8251
|
-
return C(
|
|
8248
|
+
let G;
|
|
8249
|
+
if (R && (G = u(R)), $ === "COMPONENT") {
|
|
8250
|
+
const H = {};
|
|
8251
|
+
return C(H, B), {
|
|
8252
8252
|
label: D.trim(),
|
|
8253
8253
|
columnName: M,
|
|
8254
8254
|
show: O,
|
|
8255
8255
|
calcType: $,
|
|
8256
8256
|
componentAlias: A,
|
|
8257
|
-
componentValue:
|
|
8257
|
+
componentValue: H.fieldValue || null
|
|
8258
8258
|
};
|
|
8259
8259
|
}
|
|
8260
8260
|
const W = {
|
|
@@ -8269,16 +8269,16 @@ const runCode = (e, r) => {
|
|
|
8269
8269
|
builtInFormula: I,
|
|
8270
8270
|
builtInValueSource: B,
|
|
8271
8271
|
formula: S,
|
|
8272
|
-
conditions:
|
|
8272
|
+
conditions: G
|
|
8273
8273
|
};
|
|
8274
8274
|
if (I === "DATE_OFFSET") {
|
|
8275
|
-
const
|
|
8276
|
-
if ((
|
|
8277
|
-
let K =
|
|
8278
|
-
return
|
|
8275
|
+
const H = A.split("-");
|
|
8276
|
+
if ((H == null ? void 0 : H.length) === 3) {
|
|
8277
|
+
let K = H[0];
|
|
8278
|
+
return H[2] === "before" && H[0] !== "0" && (K = `-${H[0]}`), {
|
|
8279
8279
|
...W,
|
|
8280
8280
|
calcWays: [K],
|
|
8281
|
-
dateCalcTypes: [
|
|
8281
|
+
dateCalcTypes: [H[1]]
|
|
8282
8282
|
};
|
|
8283
8283
|
}
|
|
8284
8284
|
} else
|
|
@@ -8314,8 +8314,8 @@ const runCode = (e, r) => {
|
|
|
8314
8314
|
const V = getConditions((T == null ? void 0 : T.conditions) || []);
|
|
8315
8315
|
if (V != null && V.length) {
|
|
8316
8316
|
const U = V.filter((N) => (N == null ? void 0 : N.dataType) === "component").map((N) => {
|
|
8317
|
-
const
|
|
8318
|
-
return N != null && N.dateFormat && (
|
|
8317
|
+
const G = {};
|
|
8318
|
+
return N != null && N.dateFormat && (G.format = N.dateFormat), N.fieldValue === "PARENT" && (G.id = "PARENT", G.keyName = N.modelKey, G.modelKey = N.modelKey, G.prop = N.prop), {
|
|
8319
8319
|
conditionKey: N.fieldName,
|
|
8320
8320
|
conditionLabel: N.fieldName,
|
|
8321
8321
|
conditionName: N.fieldName,
|
|
@@ -8327,12 +8327,12 @@ const runCode = (e, r) => {
|
|
|
8327
8327
|
indexCode: N.indexCode,
|
|
8328
8328
|
typeGuid: N.typeGuid,
|
|
8329
8329
|
indexCodeNum: N.indexCodeNum,
|
|
8330
|
-
...
|
|
8330
|
+
...G
|
|
8331
8331
|
};
|
|
8332
8332
|
});
|
|
8333
8333
|
if (U != null && U.length)
|
|
8334
8334
|
for (const N of U)
|
|
8335
|
-
A.find((
|
|
8335
|
+
A.find((G) => G.keyName === N.keyName) || A.push(N);
|
|
8336
8336
|
}
|
|
8337
8337
|
}
|
|
8338
8338
|
const S = A.length, R = P;
|
|
@@ -8343,13 +8343,13 @@ const runCode = (e, r) => {
|
|
|
8343
8343
|
const {
|
|
8344
8344
|
id: U,
|
|
8345
8345
|
keyName: N,
|
|
8346
|
-
prop:
|
|
8346
|
+
prop: G,
|
|
8347
8347
|
format: W,
|
|
8348
|
-
modelKey:
|
|
8348
|
+
modelKey: H,
|
|
8349
8349
|
dataType: K = "component",
|
|
8350
|
-
customValue:
|
|
8350
|
+
customValue: j
|
|
8351
8351
|
} = V, J = y(V);
|
|
8352
|
-
C(J, U, { prop:
|
|
8352
|
+
C(J, U, { prop: G, dateFormat: W, modelKey: H, keyName: N }), K === "" && (J.fieldValue = j || ""), R.push(J);
|
|
8353
8353
|
}
|
|
8354
8354
|
for (let T = R.length - 1; T >= 0; T--) {
|
|
8355
8355
|
const V = R[T];
|
|
@@ -8449,51 +8449,51 @@ const runCode = (e, r) => {
|
|
|
8449
8449
|
function C(k, P, D) {
|
|
8450
8450
|
const { prop: M = "", dateFormat: F = "", modelKey: O = "", keyName: L = "", operateValue: q, operateMode: $, operateType: I } = D || {}, B = O || L;
|
|
8451
8451
|
if (P === "PARENT" && B && M) {
|
|
8452
|
-
const
|
|
8453
|
-
let W = M,
|
|
8452
|
+
const G = window.config.record;
|
|
8453
|
+
let W = M, H = F;
|
|
8454
8454
|
const K = M.match(/\{(.+?)\}/g);
|
|
8455
8455
|
if (K != null && K.length) {
|
|
8456
|
-
const
|
|
8457
|
-
W = M.replace(K[0], ""),
|
|
8456
|
+
const j = K[0].slice(1, -1).trim();
|
|
8457
|
+
W = M.replace(K[0], ""), H = j, k.dateFormat = H;
|
|
8458
8458
|
}
|
|
8459
|
-
if (
|
|
8460
|
-
const
|
|
8461
|
-
dayjs.isDayjs(
|
|
8459
|
+
if (G && G[B]) {
|
|
8460
|
+
const j = unref(G[B][W]);
|
|
8461
|
+
dayjs.isDayjs(j) ? k.fieldValue = j.format(H || "YYYY-MM-DD") : k.fieldValue = j;
|
|
8462
8462
|
}
|
|
8463
8463
|
return;
|
|
8464
8464
|
}
|
|
8465
8465
|
const A = o(P) || {}, { value: S, format: R = "YYYY-MM-DD", type: T = "", useCurrentTime: V, RECORD: U } = A || {}, N = F || R;
|
|
8466
8466
|
if (lowerCaseIncludes(A.type, "date")) {
|
|
8467
|
-
let
|
|
8468
|
-
if (V ? S ?
|
|
8467
|
+
let G;
|
|
8468
|
+
if (V ? S ? G = unref(S) : G = dayjs() : G = unref(S), q && $ && I)
|
|
8469
8469
|
switch (I) {
|
|
8470
8470
|
case "add":
|
|
8471
|
-
|
|
8471
|
+
G = G.add(q, $);
|
|
8472
8472
|
break;
|
|
8473
8473
|
case "minus":
|
|
8474
|
-
|
|
8474
|
+
G = G.subtract(q, $);
|
|
8475
8475
|
break;
|
|
8476
8476
|
}
|
|
8477
|
-
k.fieldValue =
|
|
8477
|
+
k.fieldValue = G == null ? void 0 : G.format(N), k.dateFormat = N;
|
|
8478
8478
|
} else if (T === "ecanRangePicker") {
|
|
8479
|
-
let
|
|
8479
|
+
let G = M;
|
|
8480
8480
|
if (!M) {
|
|
8481
|
-
const
|
|
8482
|
-
|
|
8481
|
+
const H = L && L.split("-");
|
|
8482
|
+
H != null && H.length && (G = H[H.length - 1]);
|
|
8483
8483
|
}
|
|
8484
|
-
if (!
|
|
8484
|
+
if (!G)
|
|
8485
8485
|
return;
|
|
8486
8486
|
let W = null;
|
|
8487
|
-
if (unref(A[
|
|
8487
|
+
if (unref(A[G]) && (W = dayjs(unref(A[G]))), q && $ && I) {
|
|
8488
8488
|
if (q === "rangeValue") {
|
|
8489
8489
|
if (A.startTime && A.endTime) {
|
|
8490
|
-
const
|
|
8490
|
+
const H = unref(A.endTime).diff(unref(A.startTime), $) + 1;
|
|
8491
8491
|
switch (I) {
|
|
8492
8492
|
case "add":
|
|
8493
|
-
W = W && W.add(
|
|
8493
|
+
W = W && W.add(H, $);
|
|
8494
8494
|
break;
|
|
8495
8495
|
case "minus":
|
|
8496
|
-
W = W && W.subtract(
|
|
8496
|
+
W = W && W.subtract(H, $);
|
|
8497
8497
|
}
|
|
8498
8498
|
}
|
|
8499
8499
|
} else if (!isNaN(+q))
|
|
@@ -8505,9 +8505,9 @@ const runCode = (e, r) => {
|
|
|
8505
8505
|
W = W && W.subtract(q, $);
|
|
8506
8506
|
}
|
|
8507
8507
|
}
|
|
8508
|
-
if (W && (k.fieldValue = W == null ? void 0 : W.format(N)),
|
|
8509
|
-
const
|
|
8510
|
-
|
|
8508
|
+
if (W && (k.fieldValue = W == null ? void 0 : W.format(N)), G === "rangeValue" && A.startTime && A.endTime) {
|
|
8509
|
+
const H = getFormatStep(N);
|
|
8510
|
+
H && (k.fieldValue = unref(A.endTime).diff(unref(A.startTime), H) + 1);
|
|
8511
8511
|
}
|
|
8512
8512
|
k.dateFormat = N;
|
|
8513
8513
|
} else
|
|
@@ -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 {
|
|
@@ -8578,12 +8578,12 @@ const runCode = (e, r) => {
|
|
|
8578
8578
|
rightAxisList: V = [],
|
|
8579
8579
|
queryColumnList: U = [],
|
|
8580
8580
|
indicators: N = [],
|
|
8581
|
-
controlList:
|
|
8581
|
+
controlList: G = [],
|
|
8582
8582
|
formFields: W = {},
|
|
8583
|
-
variableList:
|
|
8583
|
+
variableList: H = [],
|
|
8584
8584
|
variableConditions: K = [],
|
|
8585
8585
|
// dataSourceId, // 所属数据源ID
|
|
8586
|
-
idxLibMode:
|
|
8586
|
+
idxLibMode: j,
|
|
8587
8587
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
8588
8588
|
preview: J = !1,
|
|
8589
8589
|
// 预览开关
|
|
@@ -8600,7 +8600,7 @@ const runCode = (e, r) => {
|
|
|
8600
8600
|
...pe,
|
|
8601
8601
|
...me
|
|
8602
8602
|
};
|
|
8603
|
-
}), K != null && K.length && (X = X.concat(K))) : (X = d(P),
|
|
8603
|
+
}), K != null && K.length && (X = X.concat(K))) : (X = d(P), H != null && H.length && (X = X.concat(w(H)))), X != null && X.length) {
|
|
8604
8604
|
const pe = X.filter((ve) => ve.globalCondition), me = X.filter((ve) => !ve.globalCondition);
|
|
8605
8605
|
(pe == null ? void 0 : pe.length) > 1 && (X = [
|
|
8606
8606
|
{
|
|
@@ -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) {
|
|
@@ -8777,7 +8777,7 @@ const runCode = (e, r) => {
|
|
|
8777
8777
|
}
|
|
8778
8778
|
}
|
|
8779
8779
|
if (D !== "ecanScatter" && ((Te = Object.keys(W)) != null && Te.length)) {
|
|
8780
|
-
const pe = getConditions(
|
|
8780
|
+
const pe = getConditions(G).find((ve) => ve.conditionKey === "parentCode"), me = {};
|
|
8781
8781
|
if (pe) {
|
|
8782
8782
|
const ve = o(pe.id) || {};
|
|
8783
8783
|
if (ve != null && ve.itemCodes)
|
|
@@ -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,49 +8824,49 @@ 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: '',
|
|
8852
8858
|
// dataSourceId,
|
|
8853
|
-
idxLibMode:
|
|
8859
|
+
idxLibMode: j,
|
|
8854
8860
|
preview: J,
|
|
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,52 +9158,52 @@ 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,
|
|
9168
9168
|
offEvent: U,
|
|
9169
9169
|
emitEvent: N
|
|
9170
9170
|
});
|
|
9171
|
-
const
|
|
9171
|
+
const G = ref(0);
|
|
9172
9172
|
provide(GLOBAL_TOKEN, {
|
|
9173
9173
|
requestToken: () => {
|
|
9174
|
-
|
|
9174
|
+
G.value = unref(G) + 1;
|
|
9175
9175
|
}
|
|
9176
9176
|
});
|
|
9177
|
-
const
|
|
9178
|
-
}, sortNum: te = 0, id:
|
|
9179
|
-
if (
|
|
9180
|
-
const ie =
|
|
9177
|
+
const H = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), j = ({ requestFn: Y = () => {
|
|
9178
|
+
}, sortNum: te = 0, id: ne = "" }) => {
|
|
9179
|
+
if (H.has(te)) {
|
|
9180
|
+
const ie = H.get(te);
|
|
9181
9181
|
ie == null || ie.push(Y);
|
|
9182
9182
|
} else
|
|
9183
|
-
|
|
9184
|
-
K.set(
|
|
9185
|
-
}, J = (Y) => new Promise((te,
|
|
9183
|
+
H.set(te, [Y]);
|
|
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
|
}
|
|
9201
9201
|
} else {
|
|
9202
|
-
const ie = Array.from(
|
|
9202
|
+
const ie = Array.from(H);
|
|
9203
9203
|
ie.sort((le, he) => he[0] - le[0]);
|
|
9204
9204
|
const oe = ie.length;
|
|
9205
9205
|
try {
|
|
9206
|
-
e.pageMode !== "design" && unref(
|
|
9206
|
+
e.pageMode !== "design" && unref(G) > 0;
|
|
9207
9207
|
for (let le = 0; le < oe; le++) {
|
|
9208
9208
|
const he = ie[le][1];
|
|
9209
9209
|
await J(he);
|
|
@@ -9211,19 +9211,19 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9211
9211
|
} catch (le) {
|
|
9212
9212
|
console.error(le);
|
|
9213
9213
|
} finally {
|
|
9214
|
-
|
|
9214
|
+
H.clear(), te(null);
|
|
9215
9215
|
}
|
|
9216
9216
|
}
|
|
9217
9217
|
});
|
|
9218
9218
|
provide(REQUEST_MODEL, {
|
|
9219
|
-
setRequest:
|
|
9219
|
+
setRequest: j,
|
|
9220
9220
|
touchRequest: Z
|
|
9221
9221
|
}), provide(REFRESH_PAGE, {
|
|
9222
9222
|
emitRefreshPage: () => {
|
|
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(() => {
|
|
@@ -9252,11 +9252,11 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_r
|
|
|
9252
9252
|
}
|
|
9253
9253
|
}
|
|
9254
9254
|
}), onBeforeUnmount(() => {
|
|
9255
|
-
|
|
9255
|
+
H == null || H.clear(), K == null || K.clear();
|
|
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
|
|
@@ -9345,12 +9345,12 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9345
9345
|
return;
|
|
9346
9346
|
}
|
|
9347
9347
|
const N = +S[U];
|
|
9348
|
-
let
|
|
9348
|
+
let G = 0;
|
|
9349
9349
|
if (isNaN(N))
|
|
9350
9350
|
a.value = S;
|
|
9351
9351
|
else {
|
|
9352
|
-
String(N).includes(".") && (
|
|
9353
|
-
const W = Math.abs(N) * Math.pow(10,
|
|
9352
|
+
String(N).includes(".") && (G = ((T = String(N).split(".")[1]) == null ? void 0 : T.length) || 0);
|
|
9353
|
+
const W = Math.abs(N) * Math.pow(10, G), H = String(W).length;
|
|
9354
9354
|
let K = [];
|
|
9355
9355
|
for (let J = 0; J < 5; J++) {
|
|
9356
9356
|
const Z = Math.ceil(Math.random() * (W + 1) - 1);
|
|
@@ -9358,18 +9358,18 @@ 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[
|
|
9363
|
-
return
|
|
9361
|
+
for (let ee = 0; ee < H; ee++)
|
|
9362
|
+
Z && Z[ee] ? X.push(Z[ee]) : X.push("0");
|
|
9363
|
+
return G && X.splice(G, 0, "."), (N < 0 ? "-" : "") + X.reverse().join("");
|
|
9364
9364
|
}), K.push(N);
|
|
9365
|
-
let
|
|
9365
|
+
let j = 0;
|
|
9366
9366
|
for (const J of K)
|
|
9367
9367
|
setTimeout(() => {
|
|
9368
9368
|
a.value = {
|
|
9369
9369
|
...unref(a),
|
|
9370
9370
|
[U]: J
|
|
9371
9371
|
};
|
|
9372
|
-
},
|
|
9372
|
+
}, j * 1e3), j += 0.1;
|
|
9373
9373
|
}
|
|
9374
9374
|
} else
|
|
9375
9375
|
a.value = S;
|
|
@@ -9440,53 +9440,53 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9440
9440
|
let V = e.text;
|
|
9441
9441
|
V = V == null ? void 0 : V.replace(/\n|\\n/g, "<br/>"), V = V == null ? void 0 : V.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
9442
9442
|
const U = V.match(/\{(.+?)\}/g) || [];
|
|
9443
|
-
let N = "",
|
|
9444
|
-
if (e.exceedConfig === "wrap" ?
|
|
9443
|
+
let N = "", G = "";
|
|
9444
|
+
if (e.exceedConfig === "wrap" ? G = "show-wrap" : e.exceedConfig === "ellipsis" && (G = "show-ellipsis"), U == null || U.length === 0) {
|
|
9445
9445
|
if (V && e.format === "percentage" && !isNaN(+V)) {
|
|
9446
|
-
const
|
|
9447
|
-
|
|
9446
|
+
const H = parseFloat(V), K = H * 100, j = v(K.toFixed(2));
|
|
9447
|
+
H >= 0 ? V = `<span class="${G}" style="color: ${j || R || "#ED6643"};font-size:${unref(o)};display: inline-block;${unref(m)}">
|
|
9448
9448
|
<div class="percentage-img-box">
|
|
9449
|
-
<img style="width: ${unref(o)};filter: ${`drop-shadow(${
|
|
9449
|
+
<img style="width: ${unref(o)};filter: ${`drop-shadow(${j || R || "#ED6643"} ${unref(o)} 0px)`};" src="${goUp}"/>
|
|
9450
9450
|
</div>
|
|
9451
|
-
<span style="color: ${
|
|
9452
|
-
</span>` : V = `<span class="${
|
|
9451
|
+
<span style="color: ${j || e.color};${unref(m)}">${Math.abs(+K).toFixed(2)}%</span>
|
|
9452
|
+
</span>` : V = `<span class="${G}" style="color: ${j || T || "#6ACB97"};font-size:${unref(o)};display: inline-block;${unref(m)}">
|
|
9453
9453
|
<div class="percentage-img-box">
|
|
9454
|
-
<img style="width: ${unref(o)};filter: ${`drop-shadow(${
|
|
9454
|
+
<img style="width: ${unref(o)};filter: ${`drop-shadow(${j || T || "#6ACB97"} ${unref(o)} 0px)`};" src="${goDown}"/>
|
|
9455
9455
|
</div>
|
|
9456
|
-
<span style="color: ${
|
|
9456
|
+
<span style="color: ${j || e.color};${unref(m)}">${e.minusSignShow ? "-" : ""}${Math.abs(+K).toFixed(2)}%</span>
|
|
9457
9457
|
</span>`;
|
|
9458
9458
|
}
|
|
9459
9459
|
N = V;
|
|
9460
9460
|
}
|
|
9461
|
-
for (let
|
|
9462
|
-
const K = U[
|
|
9463
|
-
let J =
|
|
9464
|
-
const Z =
|
|
9465
|
-
for (let
|
|
9466
|
-
const Y = Z[
|
|
9461
|
+
for (let H = 0; H < U.length; H++) {
|
|
9462
|
+
const K = U[H], j = (W = K == null ? void 0 : K.slice(1, K.length - 1)) == null ? void 0 : W.trim();
|
|
9463
|
+
let J = j;
|
|
9464
|
+
const Z = j.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
9465
|
+
for (let ee = 0; ee < Z.length; ee++) {
|
|
9466
|
+
const Y = Z[ee], te = S[Y];
|
|
9467
9467
|
if (te)
|
|
9468
|
-
J =
|
|
9468
|
+
J = j.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
|
-
if (X ===
|
|
9480
|
-
const
|
|
9481
|
-
if (
|
|
9479
|
+
if (X === j && (X = e.variableDefaultValue), X != null) {
|
|
9480
|
+
const ee = e.format;
|
|
9481
|
+
if (ee === "percentage")
|
|
9482
9482
|
if (X = +X, isNaN(X))
|
|
9483
|
-
V = V.replace(K, `<span class="${
|
|
9483
|
+
V = V.replace(K, `<span class="${G}" style="color:${v("0.00") || e.variableColor};font-size:${unref(o)};${unref(m)}">0%</span>`);
|
|
9484
9484
|
else if (X >= 0) {
|
|
9485
9485
|
X = X * 100;
|
|
9486
9486
|
const Y = v(X.toFixed(2));
|
|
9487
9487
|
V = V.replace(
|
|
9488
9488
|
K,
|
|
9489
|
-
`<span class="${
|
|
9489
|
+
`<span class="${G}" style="color: ${Y || R || "#ED6643"};font-size:${unref(o)};display: inline-block;${unref(m)}">
|
|
9490
9490
|
<div class="percentage-img-box">
|
|
9491
9491
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${Y || R || "#ED6643"} ${unref(o)} 0px)`};" src="${goUp}"/>
|
|
9492
9492
|
</div>
|
|
@@ -9498,7 +9498,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9498
9498
|
const Y = v(X.toFixed(2));
|
|
9499
9499
|
V = V.replace(
|
|
9500
9500
|
K,
|
|
9501
|
-
`<span class="${
|
|
9501
|
+
`<span class="${G}" style="color: ${Y || T || "#6ACB97"};font-size:${unref(o)};display: inline-block;${unref(m)}">
|
|
9502
9502
|
<div class="percentage-img-box">
|
|
9503
9503
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${Y || T || "#6ACB97"} ${unref(o)} 0px)`};" src="${goDown}"/>
|
|
9504
9504
|
</div>
|
|
@@ -9507,15 +9507,15 @@ 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="${
|
|
9510
|
+
e.format === "percent" ? (X = +X, isNaN(X) || (X = (X * 100).toFixed(2), V = V.replace(K, `<span class="${G}" 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="${G}" 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="${G}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`))) : V = V.replace(K, `<span class="${G}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`);
|
|
9511
9511
|
}
|
|
9512
9512
|
}
|
|
9513
|
-
if (N || (N = `<span class="${
|
|
9514
|
-
const { unitTop:
|
|
9515
|
-
let
|
|
9516
|
-
|
|
9513
|
+
if (N || (N = `<span class="${G}" style="color: ${v(V)};${unref(m)}">${V}</span>`), e.unitShow && e.unitText) {
|
|
9514
|
+
const { unitTop: H, unitLeft: K } = e;
|
|
9515
|
+
let j = "position:relative;";
|
|
9516
|
+
H && (j += `top:${H};`), K && (j += `margin-left:${K};`), N += `<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${j};${unref(m)}'>${e.unitText}</span>`;
|
|
9517
9517
|
}
|
|
9518
|
-
return e.exceedConfig && (N = `<span class="${
|
|
9518
|
+
return e.exceedConfig && (N = `<span class="${G}" style="display: inline-block;color: ${v(N)};">${N}</span>`), N.includes("span") || (N = `<span class="${G}" style="color: ${v(N)};">${N}</span>`), N;
|
|
9519
9519
|
});
|
|
9520
9520
|
function v(S) {
|
|
9521
9521
|
let R = "", T = !1;
|
|
@@ -9568,18 +9568,18 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _s
|
|
|
9568
9568
|
const { data: R } = (S == null ? void 0 : S.data) || {};
|
|
9569
9569
|
if (R) {
|
|
9570
9570
|
n.value = !1;
|
|
9571
|
-
const { columns: U = [], rows: N = [] } = ((T = S == null ? void 0 : S.data) == null ? void 0 : T.data) ?? {}, { graphicConfig:
|
|
9571
|
+
const { columns: U = [], rows: N = [] } = ((T = S == null ? void 0 : S.data) == null ? void 0 : T.data) ?? {}, { graphicConfig: G } = e;
|
|
9572
9572
|
let W = {};
|
|
9573
9573
|
if (U.length > 0)
|
|
9574
|
-
if ((V =
|
|
9575
|
-
const
|
|
9576
|
-
|
|
9577
|
-
value: N[0][
|
|
9574
|
+
if ((V = G == null ? void 0 : G.dimensionList) != null && V.length) {
|
|
9575
|
+
const H = U[0];
|
|
9576
|
+
H && (N != null && N.length) && (W = {
|
|
9577
|
+
value: N[0][H]
|
|
9578
9578
|
});
|
|
9579
9579
|
} else {
|
|
9580
|
-
const
|
|
9581
|
-
|
|
9582
|
-
value: isNaN(N[
|
|
9580
|
+
const H = U.find((K) => !!K);
|
|
9581
|
+
H && (W = {
|
|
9582
|
+
value: isNaN(N[H]) ? 0 : N[H] || 0
|
|
9583
9583
|
});
|
|
9584
9584
|
}
|
|
9585
9585
|
D(W == null ? void 0 : W.value), l(W);
|
|
@@ -10975,64 +10975,64 @@ const __default__$2 = defineComponent({
|
|
|
10975
10975
|
const r = inject("isMobile", !1), { pageMode: n } = inject(GLOBAL_CONFIG, {
|
|
10976
10976
|
pageMode: "normal"
|
|
10977
10977
|
}), i = usePickComponentStyle(e), a = () => document.getElementById("ProviderConfig") || document.body, o = ref([null, null]), s = ref(!1), l = ref([]), c = ref([]), f = ref(), u = ref(), x = ref(), d = ref(), y = ref(0), m = ref({}), g = ref(""), w = computed(() => {
|
|
10978
|
-
let
|
|
10978
|
+
let j = ["year", "month", "day"];
|
|
10979
10979
|
switch (e.picker) {
|
|
10980
10980
|
case "year":
|
|
10981
|
-
|
|
10981
|
+
j = ["year"];
|
|
10982
10982
|
break;
|
|
10983
10983
|
case "month":
|
|
10984
|
-
|
|
10984
|
+
j = ["year", "month"];
|
|
10985
10985
|
break;
|
|
10986
10986
|
}
|
|
10987
|
-
return
|
|
10987
|
+
return j;
|
|
10988
10988
|
});
|
|
10989
|
-
watch(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([
|
|
10989
|
+
watch(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([j, 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()), j && (te = dayjs(useVariablesInText(j))), 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) && H();
|
|
11003
11003
|
}
|
|
11004
11004
|
}, {
|
|
11005
11005
|
immediate: !0
|
|
11006
11006
|
});
|
|
11007
11007
|
let C = unref(o)[0], p = unref(o)[1], v = "";
|
|
11008
|
-
const b = (
|
|
11009
|
-
Array.isArray(
|
|
11010
|
-
}, E = (
|
|
11008
|
+
const b = (j, J, Z) => {
|
|
11009
|
+
Array.isArray(j) ? (C = j[0], p = j[1], v = Z.range) : (C = null, p = null);
|
|
11010
|
+
}, E = (j) => {
|
|
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) < j && j < dayjs(X)) : Z ? J = dayjs(Z) > j : X && (J = dayjs(X) < j), !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 <=
|
|
11019
|
+
const te = Y.startOf("year"), ne = Y.endOf("year");
|
|
11020
|
+
J = !(te <= j && j < ne);
|
|
11021
11021
|
}
|
|
11022
11022
|
}
|
|
11023
11023
|
if (!J) {
|
|
11024
11024
|
const { value: Y = 0, mode: te = "year" } = e.limitInterval || {};
|
|
11025
|
-
Y && (v === "start" ? J = C.add(Y, te) <
|
|
11025
|
+
Y && (v === "start" ? J = C.add(Y, te) < j : v === "end" && (J = p.subtract(Y, te) > j));
|
|
11026
11026
|
}
|
|
11027
11027
|
return J;
|
|
11028
11028
|
}, { getGlobalModel: _, setGlobalModel: k } = inject(GLOBAL_MODEL, {
|
|
11029
11029
|
// @ts-ignore
|
|
11030
11030
|
// eslint-disable-next-line no-void
|
|
11031
|
-
getGlobalModel: (
|
|
11031
|
+
getGlobalModel: (j) => {
|
|
11032
11032
|
},
|
|
11033
11033
|
// @ts-ignore
|
|
11034
11034
|
// eslint-disable-next-line no-void
|
|
11035
|
-
setGlobalModel: (
|
|
11035
|
+
setGlobalModel: (j, J) => {
|
|
11036
11036
|
}
|
|
11037
11037
|
}), P = computed(() => Array.isArray(unref(o)) ? unref(o)[0] : null), D = computed(() => Array.isArray(unref(o)) ? unref(o)[1] : null), { pageId: M } = inject("templateOperate", {
|
|
11038
11038
|
pageId: ""
|
|
@@ -11051,17 +11051,17 @@ const __default__$2 = defineComponent({
|
|
|
11051
11051
|
let O = !1;
|
|
11052
11052
|
const L = F("dateChange", () => {
|
|
11053
11053
|
var Z;
|
|
11054
|
-
const
|
|
11055
|
-
(Z = o.value) != null && Z.length || (o.value = [null, null]),
|
|
11056
|
-
}), q = (
|
|
11054
|
+
const j = getNewValueFromUrlParams(M, e.keyName, "startTime"), J = getNewValueFromUrlParams(M, e.keyName, "endTime");
|
|
11055
|
+
(Z = o.value) != null && Z.length || (o.value = [null, null]), j && (o.value[0] = dayjs(j)), J && (o.value[1] = dayjs(J));
|
|
11056
|
+
}), q = (j) => {
|
|
11057
11057
|
const J = unref(o), Z = J && J[0] && J[1];
|
|
11058
|
-
|
|
11058
|
+
j === !1 && O === !0 && Z && (L(), O = !1), j || (v = "");
|
|
11059
11059
|
}, $ = () => {
|
|
11060
11060
|
O = !0;
|
|
11061
11061
|
}, I = () => {
|
|
11062
|
-
const { associated:
|
|
11063
|
-
if (
|
|
11064
|
-
const J = _(
|
|
11062
|
+
const { associated: j } = e;
|
|
11063
|
+
if (j) {
|
|
11064
|
+
const J = _(j) || {};
|
|
11065
11065
|
if (J) {
|
|
11066
11066
|
const { value: Z } = J;
|
|
11067
11067
|
if (Z)
|
|
@@ -11080,19 +11080,19 @@ const __default__$2 = defineComponent({
|
|
|
11080
11080
|
}
|
|
11081
11081
|
L();
|
|
11082
11082
|
}, B = () => {
|
|
11083
|
-
|
|
11083
|
+
G(unref(o)), s.value = !0;
|
|
11084
11084
|
}, A = () => {
|
|
11085
|
-
|
|
11085
|
+
G(), g.value = "", o.value = [null, null];
|
|
11086
11086
|
}, S = () => {
|
|
11087
|
-
o.value = [dayjs(unref(l).join("-")), dayjs(unref(c).join("-"))],
|
|
11087
|
+
o.value = [dayjs(unref(l).join("-")), dayjs(unref(c).join("-"))], G(unref(o)), W(), U(), s.value = !1, L();
|
|
11088
11088
|
}, R = () => {
|
|
11089
11089
|
N(), s.value = !1;
|
|
11090
11090
|
}, T = () => {
|
|
11091
|
-
var
|
|
11092
|
-
(
|
|
11091
|
+
var j, J;
|
|
11092
|
+
(j = unref(l)) != null && j.length && e.format && (x.value = new Date(unref(l).join("-")), (J = unref(c)) != null && J.length && dayjs(unref(c).join("-")).isBefore(dayjs(unref(l).join("-"))) && (c.value = cloneDeep(unref(l))));
|
|
11093
11093
|
}, V = () => {
|
|
11094
|
-
var
|
|
11095
|
-
(
|
|
11094
|
+
var j, J;
|
|
11095
|
+
(j = unref(c)) != null && j.length && e.format && (u.value = new Date(unref(c).join("-")), (J = unref(l)) != null && J.length && dayjs(unref(l).join("-")).isAfter(dayjs(unref(c).join("-"))) && (l.value = cloneDeep(unref(c))));
|
|
11096
11096
|
};
|
|
11097
11097
|
function U() {
|
|
11098
11098
|
m.value = {
|
|
@@ -11105,22 +11105,22 @@ const __default__$2 = defineComponent({
|
|
|
11105
11105
|
function N() {
|
|
11106
11106
|
f.value = unref(m).startMinDate, u.value = unref(m).startMaxDate, x.value = unref(m).endMinDate, d.value = unref(m).endMaxDate;
|
|
11107
11107
|
}
|
|
11108
|
-
function j
|
|
11109
|
-
l.value = K(
|
|
11108
|
+
function G(j = []) {
|
|
11109
|
+
l.value = K(j[0] || dayjs()), c.value = K(j[1] || dayjs());
|
|
11110
11110
|
}
|
|
11111
11111
|
function W() {
|
|
11112
11112
|
var Z, X;
|
|
11113
|
-
const
|
|
11114
|
-
g.value =
|
|
11113
|
+
const j = (Z = unref(l)) != null && Z.length ? dayjs(unref(l).join("-")) : "", J = (X = unref(c)) != null && X.length ? dayjs(unref(c).join("-")) : "";
|
|
11114
|
+
g.value = j && J && `${j.format(e.format)} 至 ${J.format(e.format)}`;
|
|
11115
11115
|
}
|
|
11116
|
-
function
|
|
11117
|
-
const { limitStartTime:
|
|
11118
|
-
|
|
11116
|
+
function H() {
|
|
11117
|
+
const { limitStartTime: j, limitEndTime: J, limitInterval: Z, isAllowSpanYear: X } = e;
|
|
11118
|
+
G(unref(o)), j && (f.value = new Date(j), x.value = new Date(j), unref(o)[0].isBefore(dayjs(j)) && (unref(o)[0] = dayjs(j), 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
|
-
function K(
|
|
11120
|
+
function K(j) {
|
|
11121
11121
|
const J = [];
|
|
11122
11122
|
for (const Z of unref(w))
|
|
11123
|
-
Z === "day" ? J.push(
|
|
11123
|
+
Z === "day" ? J.push(j.date()) : J.push(j[Z]() + (Z === "month" ? 1 : 0));
|
|
11124
11124
|
return J;
|
|
11125
11125
|
}
|
|
11126
11126
|
return useOnEvent(e, {
|
|
@@ -11491,103 +11491,103 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11491
11491
|
...selectComponentProps
|
|
11492
11492
|
},
|
|
11493
11493
|
setup(e, { expose: r }) {
|
|
11494
|
-
var W,
|
|
11494
|
+
var W, H, K;
|
|
11495
11495
|
const n = inject("isMobile", !1), i = ref(!1), a = {
|
|
11496
11496
|
text: ((W = e.dataFieldNames) == null ? void 0 : W.label) || "label",
|
|
11497
|
-
value: ((
|
|
11497
|
+
value: ((H = e.dataFieldNames) == null ? void 0 : H.value) || "value"
|
|
11498
11498
|
}, o = ref([]), s = usePickComponentStyle(e), l = () => document.getElementById("ProviderConfig") || document.body, c = ref(e.data || []), f = ref(), u = computed({
|
|
11499
11499
|
get: () => {
|
|
11500
11500
|
var J;
|
|
11501
|
-
const { mode:
|
|
11502
|
-
return (J = unref(c)) != null && J.length ? f.value :
|
|
11501
|
+
const { mode: j } = e;
|
|
11502
|
+
return (J = unref(c)) != null && J.length ? f.value : j === "multiple" || j === "tags" || j === "combobox" ? [] : "";
|
|
11503
11503
|
},
|
|
11504
|
-
set: (
|
|
11505
|
-
f.value =
|
|
11504
|
+
set: (j) => {
|
|
11505
|
+
f.value = j;
|
|
11506
11506
|
}
|
|
11507
11507
|
}), x = computed(() => {
|
|
11508
|
-
const { value:
|
|
11508
|
+
const { value: j, 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[j] === 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[j] === unref(u));
|
|
11516
11516
|
X && Z.push(X[J]);
|
|
11517
11517
|
}
|
|
11518
11518
|
return Z.join(",");
|
|
11519
11519
|
}), { getGlobalModel: d, setGlobalModel: y, getRecordValueByKeyName: m } = inject(GLOBAL_MODEL, {
|
|
11520
11520
|
// @ts-ignore
|
|
11521
11521
|
// eslint-disable-next-line no-void
|
|
11522
|
-
getGlobalModel: (
|
|
11522
|
+
getGlobalModel: (j) => {
|
|
11523
11523
|
},
|
|
11524
11524
|
// @ts-ignore
|
|
11525
11525
|
// eslint-disable-next-line no-void
|
|
11526
|
-
setGlobalModel: (
|
|
11526
|
+
setGlobalModel: (j, J) => {
|
|
11527
11527
|
},
|
|
11528
11528
|
// @ts-ignore
|
|
11529
11529
|
// eslint-disable-next-line no-void
|
|
11530
|
-
getRecordValueByKeyName: (
|
|
11530
|
+
getRecordValueByKeyName: (j) => {
|
|
11531
11531
|
}
|
|
11532
11532
|
}), g = e.dataFieldNames;
|
|
11533
11533
|
watch(() => [e.value, e.mode, e.selectFirstOption, e.valueType, c.value], () => {
|
|
11534
|
-
const { mode:
|
|
11535
|
-
if (
|
|
11534
|
+
const { mode: j, selectFirstOption: J, value: Z } = e, X = m(Z), ee = g.value;
|
|
11535
|
+
if (j === "multiple" || j === "tags" || j === "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
|
-
const w = (
|
|
11551
|
+
const w = (j, 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 ?
|
|
11556
|
-
}, C = (
|
|
11555
|
+
return Y != null ? ee = Y : te != null && (ee = te), (ee == null ? void 0 : ee.toLowerCase().indexOf(j == null ? void 0 : j.toLowerCase())) >= 0;
|
|
11556
|
+
}, C = (j) => {
|
|
11557
11557
|
const { label: J, value: Z, options: X } = e.dataFieldNames;
|
|
11558
|
-
if (X && Array.isArray(
|
|
11559
|
-
if (
|
|
11560
|
-
const
|
|
11561
|
-
|
|
11562
|
-
|
|
11558
|
+
if (X && Array.isArray(j))
|
|
11559
|
+
if (j.some((ee) => X in ee)) {
|
|
11560
|
+
const ee = {}, Y = [];
|
|
11561
|
+
j.forEach((te) => {
|
|
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
|
-
return
|
|
11574
|
+
return j;
|
|
11575
11575
|
else {
|
|
11576
|
-
if (!X && Array.isArray(
|
|
11577
|
-
return
|
|
11578
|
-
label:
|
|
11579
|
-
value:
|
|
11580
|
-
})),
|
|
11581
|
-
if (!X && !Array.isArray(
|
|
11582
|
-
return
|
|
11583
|
-
}
|
|
11584
|
-
}, p = ref(!1), v = (
|
|
11576
|
+
if (!X && Array.isArray(j))
|
|
11577
|
+
return j = j.map((ee) => ({
|
|
11578
|
+
label: ee[J],
|
|
11579
|
+
value: ee[Z]
|
|
11580
|
+
})), j;
|
|
11581
|
+
if (!X && !Array.isArray(j))
|
|
11582
|
+
return j;
|
|
11583
|
+
}
|
|
11584
|
+
}, p = ref(!1), v = (j) => {
|
|
11585
11585
|
var J, Z;
|
|
11586
|
-
if (c.value = C(((Z = (J =
|
|
11586
|
+
if (c.value = C(((Z = (J = j == null ? void 0 : j.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
|
}
|
|
@@ -11595,10 +11595,10 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11595
11595
|
if (e.dataType === "request") {
|
|
11596
11596
|
p.value = !0;
|
|
11597
11597
|
try {
|
|
11598
|
-
const
|
|
11599
|
-
v(
|
|
11600
|
-
} catch (
|
|
11601
|
-
console.error(
|
|
11598
|
+
const j = await b();
|
|
11599
|
+
v(j);
|
|
11600
|
+
} catch (j) {
|
|
11601
|
+
console.error(j);
|
|
11602
11602
|
} finally {
|
|
11603
11603
|
p.value = !1;
|
|
11604
11604
|
}
|
|
@@ -11606,33 +11606,33 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11606
11606
|
}, { setLoadedData: _, loadedData: k } = inject(LOADED_DATA, {
|
|
11607
11607
|
// @ts-ignore
|
|
11608
11608
|
// eslint-disable-next-line no-void
|
|
11609
|
-
setLoadedData: (
|
|
11609
|
+
setLoadedData: (j, J) => {
|
|
11610
11610
|
},
|
|
11611
11611
|
loadedData: {}
|
|
11612
11612
|
}), P = computed(() => {
|
|
11613
|
-
let
|
|
11613
|
+
let j = f.value;
|
|
11614
11614
|
if (e.valueType === "label" && unref(f) && unref(c)) {
|
|
11615
11615
|
const J = g.label, Z = g.value;
|
|
11616
11616
|
if (e.mode === "multiple")
|
|
11617
|
-
|
|
11617
|
+
j = unref(c).filter((X) => unref(f).includes(X[Z])).map((X) => X[J]);
|
|
11618
11618
|
else {
|
|
11619
|
-
const X = unref(c).find((
|
|
11620
|
-
X && (
|
|
11619
|
+
const X = unref(c).find((ee) => unref(f) === ee[Z]);
|
|
11620
|
+
X && (j = X[J]);
|
|
11621
11621
|
}
|
|
11622
11622
|
}
|
|
11623
|
-
return
|
|
11623
|
+
return j;
|
|
11624
11624
|
}), D = ref([]), M = computed(() => {
|
|
11625
|
-
const
|
|
11625
|
+
const j = {};
|
|
11626
11626
|
if (e.mode !== "multiple") {
|
|
11627
11627
|
const J = unref(D).find((Z) => Z.value === unref(f));
|
|
11628
|
-
J && (
|
|
11628
|
+
J && (j.itemCodes = J.item_codes);
|
|
11629
11629
|
}
|
|
11630
|
-
return
|
|
11630
|
+
return j;
|
|
11631
11631
|
}), F = computed(() => {
|
|
11632
|
-
const { value:
|
|
11632
|
+
const { value: j, label: J } = g, Z = unref(c).find((X) => X[j] === unref(u));
|
|
11633
11633
|
return Z ? {
|
|
11634
11634
|
label: Z[J],
|
|
11635
|
-
value: Z[
|
|
11635
|
+
value: Z[j]
|
|
11636
11636
|
} : {};
|
|
11637
11637
|
}), { pageId: O } = inject("templateOperate", {
|
|
11638
11638
|
pageId: ""
|
|
@@ -11645,8 +11645,8 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11645
11645
|
recordData: unref(F)
|
|
11646
11646
|
});
|
|
11647
11647
|
const L = useEmitEvent(e), q = L("selectChange", () => {
|
|
11648
|
-
const
|
|
11649
|
-
y(
|
|
11648
|
+
const j = e.id, J = d(j);
|
|
11649
|
+
y(j, {
|
|
11650
11650
|
...J,
|
|
11651
11651
|
...unref(M),
|
|
11652
11652
|
RECORD: P,
|
|
@@ -11656,28 +11656,28 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11656
11656
|
Z && (u.value = Z);
|
|
11657
11657
|
}), $ = L("clearValue", () => {
|
|
11658
11658
|
["multiple", "tags", "combobox"].includes(e.mode) ? f.value = [] : f.value = null;
|
|
11659
|
-
const
|
|
11660
|
-
y(
|
|
11659
|
+
const j = e.id;
|
|
11660
|
+
y(j, {
|
|
11661
11661
|
RECORD: "",
|
|
11662
11662
|
recordData: unref(F)
|
|
11663
11663
|
});
|
|
11664
|
-
}), I = (
|
|
11664
|
+
}), I = (j = []) => {
|
|
11665
11665
|
var Z, X;
|
|
11666
|
-
const J = C(
|
|
11666
|
+
const J = C(j);
|
|
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,
|
|
@@ -11685,35 +11685,35 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11685
11685
|
...unref(M),
|
|
11686
11686
|
recordData: unref(F)
|
|
11687
11687
|
});
|
|
11688
|
-
}, B = (
|
|
11689
|
-
var
|
|
11690
|
-
const { data: J } = (
|
|
11688
|
+
}, B = (j) => {
|
|
11689
|
+
var ee;
|
|
11690
|
+
const { data: J } = (j == null ? void 0 : j.data) || {}, Z = g.label, X = g.value;
|
|
11691
11691
|
if (J) {
|
|
11692
|
-
const { rows: Y = [] } = ((
|
|
11692
|
+
const { rows: Y = [] } = ((ee = j == null ? void 0 : j.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 () => {
|
|
11702
11702
|
try {
|
|
11703
11703
|
p.value = !0;
|
|
11704
|
-
const
|
|
11705
|
-
B(
|
|
11706
|
-
} catch (
|
|
11707
|
-
console.error(
|
|
11704
|
+
const j = await A();
|
|
11705
|
+
B(j);
|
|
11706
|
+
} catch (j) {
|
|
11707
|
+
console.error(j);
|
|
11708
11708
|
} finally {
|
|
11709
11709
|
p.value = !1;
|
|
11710
11710
|
}
|
|
11711
11711
|
}, R = computed(() => {
|
|
11712
|
-
var
|
|
11713
|
-
return (J = getConditions(((
|
|
11712
|
+
var j, J;
|
|
11713
|
+
return (J = getConditions(((j = e == null ? void 0 : e.graphicConfig) == null ? void 0 : j.controlList) || [])) == null ? void 0 : J.find((Z) => Z.conditionKey === "parentCode");
|
|
11714
11714
|
}), T = ref(!1);
|
|
11715
|
-
watch(k, (
|
|
11716
|
-
!unref(T) && unref(R) &&
|
|
11715
|
+
watch(k, (j) => {
|
|
11716
|
+
!unref(T) && unref(R) && j[unref(R).id] && (T.value = !0, V());
|
|
11717
11717
|
}, {
|
|
11718
11718
|
deep: !0
|
|
11719
11719
|
});
|
|
@@ -11722,8 +11722,8 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11722
11722
|
case "indicator": {
|
|
11723
11723
|
if (unref(R)) {
|
|
11724
11724
|
if (unref(k)[unref(R).id]) {
|
|
11725
|
-
const { mode:
|
|
11726
|
-
|
|
11725
|
+
const { mode: j } = e;
|
|
11726
|
+
j === "multiple" || j === "tags" || j === "combobox" ? u.value = [] : u.value = "", S();
|
|
11727
11727
|
}
|
|
11728
11728
|
} else
|
|
11729
11729
|
S();
|
|
@@ -11742,7 +11742,7 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11742
11742
|
const { setRequest: U } = inject(REQUEST_MODEL, {
|
|
11743
11743
|
// @ts-ignore
|
|
11744
11744
|
// eslint-disable-next-line no-void
|
|
11745
|
-
setRequest: ({ id:
|
|
11745
|
+
setRequest: ({ id: j, sortNum: J, requestFn: Z }) => {
|
|
11746
11746
|
}
|
|
11747
11747
|
});
|
|
11748
11748
|
return typeof U == "function" && U({
|
|
@@ -11768,8 +11768,8 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_ren
|
|
|
11768
11768
|
},
|
|
11769
11769
|
mobileValue: x,
|
|
11770
11770
|
openPicker: () => {
|
|
11771
|
-
var
|
|
11772
|
-
!Array.isArray(unref(u)) && ((
|
|
11771
|
+
var j;
|
|
11772
|
+
!Array.isArray(unref(u)) && ((j = unref(c)) != null && j.length) && e.dataFieldNames.value && (o.value = unref(u) ? [unref(u)] : [unref(c)[0][e.dataFieldNames.value]]), i.value = !0;
|
|
11773
11773
|
},
|
|
11774
11774
|
mobileSelectValue: o
|
|
11775
11775
|
};
|
|
@@ -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
|
{
|
|
@@ -12658,17 +12658,17 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12658
12658
|
T();
|
|
12659
12659
|
}, U = () => {
|
|
12660
12660
|
T(), l();
|
|
12661
|
-
}, { setModalModel: N, pushUseModalIds:
|
|
12661
|
+
}, { setModalModel: N, pushUseModalIds: G, popUseModalIds: W } = inject(MODAL_MODEL, {
|
|
12662
12662
|
pushUseModalIds: (Y) => {
|
|
12663
12663
|
},
|
|
12664
12664
|
popUseModalIds: () => {
|
|
12665
12665
|
},
|
|
12666
12666
|
setModalModel: (Y, te) => {
|
|
12667
12667
|
}
|
|
12668
|
-
}),
|
|
12668
|
+
}), H = 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,14 +12695,14 @@ 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(
|
|
12700
|
-
},
|
|
12698
|
+
const ne = e.componentList;
|
|
12699
|
+
Array.isArray(ne) && (te = ne.map((ie) => ie.id), N(Y, [...new Set(te)]));
|
|
12700
|
+
}, j = ref(!1), J = {};
|
|
12701
12701
|
for (const Y of e.requestList)
|
|
12702
12702
|
J[Y.requestName] = useRequestData(Y);
|
|
12703
12703
|
watch(() => q.value, async (Y) => {
|
|
12704
12704
|
if (Y)
|
|
12705
|
-
k.value = !1,
|
|
12705
|
+
k.value = !1, G(e.id), K(), await nextTick(() => {
|
|
12706
12706
|
M(), window.addEventListener("resize", F), O(), k.value = !0;
|
|
12707
12707
|
}), $();
|
|
12708
12708
|
else {
|
|
@@ -12734,7 +12734,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12734
12734
|
isFullWidth: Z,
|
|
12735
12735
|
wrapClassName: X,
|
|
12736
12736
|
ready: k,
|
|
12737
|
-
usedComponentList:
|
|
12737
|
+
usedComponentList: H,
|
|
12738
12738
|
isMobile: i,
|
|
12739
12739
|
readyIds: n,
|
|
12740
12740
|
hasOwn,
|
|
@@ -12742,7 +12742,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_rende
|
|
|
12742
12742
|
n.value.push(Y);
|
|
12743
12743
|
},
|
|
12744
12744
|
formatTitle: I,
|
|
12745
|
-
requestLoaded:
|
|
12745
|
+
requestLoaded: j
|
|
12746
12746
|
};
|
|
12747
12747
|
}
|
|
12748
12748
|
}), Modal_vue_vue_type_style_index_0_scoped_e56696cd_lang = "", Modal_vue_vue_type_style_index_1_lang = "";
|
|
@@ -13420,22 +13420,22 @@ const _sfc_main$d = defineComponent({
|
|
|
13420
13420
|
let T = "", V = e.tooltipFormatter;
|
|
13421
13421
|
d = (U = S[0]) == null ? void 0 : U.data, V === "" && (V = "{marker} {a} {c}");
|
|
13422
13422
|
for (let N = 0; N < R; N++) {
|
|
13423
|
-
const { marker:
|
|
13423
|
+
const { marker: G, seriesName: W, name: H, value: K, data: j } = S[N] || {};
|
|
13424
13424
|
if (N === 0) {
|
|
13425
|
-
let J =
|
|
13426
|
-
typeof
|
|
13425
|
+
let J = H;
|
|
13426
|
+
typeof H == "string" && H[0] === "0" && !isNaN(+H) && (J = (+H).toString()), T += `${useValueFormatter(B, J)}<br/>`;
|
|
13427
13427
|
}
|
|
13428
13428
|
T += useVariablesInText(
|
|
13429
13429
|
V,
|
|
13430
13430
|
{
|
|
13431
13431
|
textData: {
|
|
13432
|
-
marker:
|
|
13433
|
-
name:
|
|
13432
|
+
marker: G,
|
|
13433
|
+
name: H,
|
|
13434
13434
|
value: K,
|
|
13435
13435
|
a: W,
|
|
13436
|
-
b:
|
|
13436
|
+
b: H,
|
|
13437
13437
|
c: K || 0,
|
|
13438
|
-
...
|
|
13438
|
+
...j
|
|
13439
13439
|
}
|
|
13440
13440
|
},
|
|
13441
13441
|
{
|
|
@@ -13629,11 +13629,11 @@ const _sfc_main$d = defineComponent({
|
|
|
13629
13629
|
const T = useTransformChartDataByAttrKey(B, S ? A : null, !0);
|
|
13630
13630
|
c.value = T.dimensions, y.value = T.dataset;
|
|
13631
13631
|
const V = T.dataset, U = [], N = V.length;
|
|
13632
|
-
for (let
|
|
13632
|
+
for (let G = 0; G < N; G++) {
|
|
13633
13633
|
const W = {};
|
|
13634
13634
|
e.shadowColor && (W.shadowColor = e.shadowColor, W.shadowBlur = e.shadowBlur, W.shadowOffsetY = e.shadowOffsetY, W.shadowOffsetX = e.shadowOffsetX), U.push({
|
|
13635
13635
|
type: "line",
|
|
13636
|
-
...V[
|
|
13636
|
+
...V[G],
|
|
13637
13637
|
symbolSize: e.symbolSize,
|
|
13638
13638
|
smooth: e.smooth,
|
|
13639
13639
|
areaStyle: {
|
|
@@ -13645,13 +13645,13 @@ const _sfc_main$d = defineComponent({
|
|
|
13645
13645
|
y2: 1,
|
|
13646
13646
|
colorStops: [{
|
|
13647
13647
|
offset: 0,
|
|
13648
|
-
color: e.colors[
|
|
13648
|
+
color: e.colors[G]
|
|
13649
13649
|
}, {
|
|
13650
13650
|
offset: 1,
|
|
13651
13651
|
color: e.areaGradientColor || "transparent"
|
|
13652
13652
|
}],
|
|
13653
13653
|
global: !1
|
|
13654
|
-
} : e.colors[
|
|
13654
|
+
} : e.colors[G],
|
|
13655
13655
|
opacity: e.areaStyleOpacity
|
|
13656
13656
|
},
|
|
13657
13657
|
lineStyle: {
|
|
@@ -13979,10 +13979,10 @@ const _sfc_main$c = defineComponent({
|
|
|
13979
13979
|
}), a = inject("usedComponentList", []), o = ref(), s = ref(!1), l = ref(!1), c = ref(null), f = ref([]), u = usePickComponentStyle(e), x = ref([]), d = ref(), y = ref({});
|
|
13980
13980
|
let m;
|
|
13981
13981
|
const g = computed(() => s.value ? ZOOM_FONT_SIZE : 12), w = computed(() => {
|
|
13982
|
-
const { gradientShow: W, gradientColors:
|
|
13983
|
-
for (let
|
|
13982
|
+
const { gradientShow: W, gradientColors: H, gradientOffset: K, barBorderRadius: j } = e, J = unref(x), Z = J.length, X = [];
|
|
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:
|
|
14030
|
+
color: H[ee]
|
|
14031
14031
|
}, {
|
|
14032
14032
|
offset: 1,
|
|
14033
|
-
color:
|
|
14033
|
+
color: H[ee]
|
|
14034
14034
|
}]
|
|
14035
14035
|
}
|
|
14036
|
-
}),
|
|
14037
|
-
const te =
|
|
14036
|
+
}), j) {
|
|
14037
|
+
const te = j.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 = {
|
|
@@ -14050,7 +14050,7 @@ const _sfc_main$c = defineComponent({
|
|
|
14050
14050
|
}
|
|
14051
14051
|
return X;
|
|
14052
14052
|
}), C = ref([]), p = ref(!1), v = computed(() => {
|
|
14053
|
-
const W = e.yAxisLabelFormatter,
|
|
14053
|
+
const W = e.yAxisLabelFormatter, H = e.xAxisLabelFormatter;
|
|
14054
14054
|
return {
|
|
14055
14055
|
textStyle: {
|
|
14056
14056
|
fontFamily: unref(i)
|
|
@@ -14068,8 +14068,8 @@ const _sfc_main$c = defineComponent({
|
|
|
14068
14068
|
icon: "path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",
|
|
14069
14069
|
onclick() {
|
|
14070
14070
|
l.value = !0;
|
|
14071
|
-
const K = o.value.chart.getOption(), { xAxis:
|
|
14072
|
-
|
|
14071
|
+
const K = o.value.chart.getOption(), { xAxis: j } = K || {};
|
|
14072
|
+
j && j.length && (f.value = j[0].data);
|
|
14073
14073
|
}
|
|
14074
14074
|
},
|
|
14075
14075
|
myDownload: {
|
|
@@ -14125,24 +14125,24 @@ const _sfc_main$c = defineComponent({
|
|
|
14125
14125
|
show: e.tooltipShow,
|
|
14126
14126
|
formatter: (K) => {
|
|
14127
14127
|
var X;
|
|
14128
|
-
const
|
|
14128
|
+
const j = 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 < j; 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(H, 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
|
}
|
|
@@ -14185,10 +14185,10 @@ const _sfc_main$c = defineComponent({
|
|
|
14185
14185
|
itemHeight: e.legendItemHeight,
|
|
14186
14186
|
itemWidth: e.legendItemWidth,
|
|
14187
14187
|
itemGap: e.legendItemGap,
|
|
14188
|
-
data: unref(x).map((K,
|
|
14188
|
+
data: unref(x).map((K, j) => ({
|
|
14189
14189
|
name: K.name,
|
|
14190
14190
|
itemStyle: {
|
|
14191
|
-
color: e.colors[
|
|
14191
|
+
color: e.colors[j]
|
|
14192
14192
|
},
|
|
14193
14193
|
icon: e.legendType
|
|
14194
14194
|
})),
|
|
@@ -14221,7 +14221,7 @@ const _sfc_main$c = defineComponent({
|
|
|
14221
14221
|
overflow: e.xAxisLabelOverflow,
|
|
14222
14222
|
fontSize: e.xAxisLabelFontSize,
|
|
14223
14223
|
formatter(K) {
|
|
14224
|
-
return typeof K == "string" && K[0] === "0" && !isNaN(+K) && (K = (+K).toString()), useValueFormatter(
|
|
14224
|
+
return typeof K == "string" && K[0] === "0" && !isNaN(+K) && (K = (+K).toString()), useValueFormatter(H, K);
|
|
14225
14225
|
}
|
|
14226
14226
|
},
|
|
14227
14227
|
axisLine: {
|
|
@@ -14285,30 +14285,30 @@ const _sfc_main$c = defineComponent({
|
|
|
14285
14285
|
};
|
|
14286
14286
|
}), b = () => {
|
|
14287
14287
|
s.value = !1;
|
|
14288
|
-
}, E = (W = [],
|
|
14288
|
+
}, E = (W = [], H = !1) => {
|
|
14289
14289
|
let K = {};
|
|
14290
14290
|
if (e.dataFieldConfigType === "key") {
|
|
14291
|
-
const
|
|
14292
|
-
K = useTransformChartDataByAttrKey(W,
|
|
14291
|
+
const j = H ? e.keyTypeDataFieldNames : null;
|
|
14292
|
+
K = useTransformChartDataByAttrKey(W, j);
|
|
14293
14293
|
} else if (e.dataFieldConfigType === "value") {
|
|
14294
|
-
const
|
|
14295
|
-
K = useTransformChartDataByAttrValue(W,
|
|
14294
|
+
const j = H ? e.valueTypeDataFieldNames : null;
|
|
14295
|
+
K = useTransformChartDataByAttrValue(W, j);
|
|
14296
14296
|
}
|
|
14297
14297
|
x.value = K.dataset, C.value = K.dimensions;
|
|
14298
|
-
}, _ = (W = [],
|
|
14299
|
-
const J = useTransformChartDataByAttrKey(W, K ?
|
|
14298
|
+
}, _ = (W = [], H, K = !1) => {
|
|
14299
|
+
const J = useTransformChartDataByAttrKey(W, K ? H : null, !0);
|
|
14300
14300
|
e.defaultRangeValue && setDefaultRangeVal({
|
|
14301
14301
|
props: e,
|
|
14302
14302
|
componentList: unref(a),
|
|
14303
14303
|
getGlobalModel: R
|
|
14304
14304
|
}, J), x.value = J.dataset, C.value = J.dimensions;
|
|
14305
14305
|
}, k = computed(() => unref(C).map((W) => {
|
|
14306
|
-
let
|
|
14307
|
-
return W && typeof W == "object" ?
|
|
14306
|
+
let H = {};
|
|
14307
|
+
return W && typeof W == "object" ? H = {
|
|
14308
14308
|
...W
|
|
14309
|
-
} :
|
|
14309
|
+
} : H = {
|
|
14310
14310
|
value: W
|
|
14311
|
-
},
|
|
14311
|
+
}, H;
|
|
14312
14312
|
}));
|
|
14313
14313
|
watch(() => [
|
|
14314
14314
|
e.data,
|
|
@@ -14325,11 +14325,11 @@ const _sfc_main$c = defineComponent({
|
|
|
14325
14325
|
deep: !0
|
|
14326
14326
|
});
|
|
14327
14327
|
const P = useRequestData(e), D = async () => {
|
|
14328
|
-
var W,
|
|
14328
|
+
var W, H;
|
|
14329
14329
|
try {
|
|
14330
14330
|
p.value = !0;
|
|
14331
14331
|
const K = await P();
|
|
14332
|
-
E((
|
|
14332
|
+
E((H = (W = K == null ? void 0 : K.data) == null ? void 0 : W.data) == null ? void 0 : H.rows, !0);
|
|
14333
14333
|
} catch (K) {
|
|
14334
14334
|
console.error(K);
|
|
14335
14335
|
} finally {
|
|
@@ -14337,15 +14337,15 @@ const _sfc_main$c = defineComponent({
|
|
|
14337
14337
|
}
|
|
14338
14338
|
}, M = (W) => {
|
|
14339
14339
|
var J;
|
|
14340
|
-
const { columns:
|
|
14341
|
-
let
|
|
14342
|
-
|
|
14343
|
-
name:
|
|
14344
|
-
types:
|
|
14340
|
+
const { columns: H = [], rows: K = [] } = ((J = W == null ? void 0 : W.data) == null ? void 0 : J.data) ?? {};
|
|
14341
|
+
let j;
|
|
14342
|
+
H.length > 0 && (j = {
|
|
14343
|
+
name: H[0],
|
|
14344
|
+
types: H.slice(1).map((Z) => ({
|
|
14345
14345
|
label: Z,
|
|
14346
14346
|
value: Z
|
|
14347
14347
|
}))
|
|
14348
|
-
}), _(K,
|
|
14348
|
+
}), _(K, j, !0);
|
|
14349
14349
|
}, F = useIndicatorData(e, (W) => {
|
|
14350
14350
|
e.isViewRedrawing && o.value.clear(), M(W);
|
|
14351
14351
|
}), O = async () => {
|
|
@@ -14363,8 +14363,8 @@ const _sfc_main$c = defineComponent({
|
|
|
14363
14363
|
}), q = ref(!1);
|
|
14364
14364
|
watch(L, (W) => {
|
|
14365
14365
|
if (e.dataType === "indicator") {
|
|
14366
|
-
const
|
|
14367
|
-
|
|
14366
|
+
const H = getFixedValueDatas(e.graphicConfig);
|
|
14367
|
+
H != null && H.length && (!unref(q) && canRequestIndicator(e.graphicConfig, W) ? (q.value = !0, $()) : canRequestIndicator(e.graphicConfig, W) || (q.value = !1));
|
|
14368
14368
|
}
|
|
14369
14369
|
}, {
|
|
14370
14370
|
deep: !0
|
|
@@ -14378,21 +14378,21 @@ const _sfc_main$c = defineComponent({
|
|
|
14378
14378
|
D();
|
|
14379
14379
|
break;
|
|
14380
14380
|
}
|
|
14381
|
-
}, I = (W,
|
|
14381
|
+
}, I = (W, H) => !!unref(f)[H.value].value.includes(W), B = async () => {
|
|
14382
14382
|
l.value = !1;
|
|
14383
14383
|
const W = o.value.chart.getOption();
|
|
14384
|
-
for (let
|
|
14385
|
-
await A(W,
|
|
14386
|
-
}, A = (W,
|
|
14384
|
+
for (let H = 0; H < 7; H++)
|
|
14385
|
+
await A(W, H);
|
|
14386
|
+
}, A = (W, H) => new Promise((K) => {
|
|
14387
14387
|
setTimeout(() => {
|
|
14388
|
-
const { series:
|
|
14389
|
-
|
|
14390
|
-
const
|
|
14388
|
+
const { series: j, color: J, xAxis: Z } = W, X = o.value.chart, { splitArea: ee = {} } = Z[0] || {};
|
|
14389
|
+
j.forEach((Y, te) => {
|
|
14390
|
+
const ne = Y.data;
|
|
14391
14391
|
let ie = "";
|
|
14392
|
-
|
|
14392
|
+
H % 2 ? ie = J[te] + "a8" : ie = J[te], ne[c.value].itemStyle = {
|
|
14393
14393
|
color: ie
|
|
14394
14394
|
};
|
|
14395
|
-
}),
|
|
14395
|
+
}), H % 2 ? (ee.show = !0, ee.areaStyle.color = unref(f).map((Y, te) => te === c.value ? "#ff003b26" : "")) : ee.show = !1, X.setOption({ series: j, xAxis: Z }), K();
|
|
14396
14396
|
}, 200);
|
|
14397
14397
|
});
|
|
14398
14398
|
r({
|
|
@@ -14405,7 +14405,7 @@ const _sfc_main$c = defineComponent({
|
|
|
14405
14405
|
},
|
|
14406
14406
|
// @ts-ignore
|
|
14407
14407
|
// eslint-disable-next-line no-void
|
|
14408
|
-
setGlobalModel: (W,
|
|
14408
|
+
setGlobalModel: (W, H) => {
|
|
14409
14409
|
}
|
|
14410
14410
|
});
|
|
14411
14411
|
T(e.id, {
|
|
@@ -14413,8 +14413,8 @@ const _sfc_main$c = defineComponent({
|
|
|
14413
14413
|
RECORD: ""
|
|
14414
14414
|
});
|
|
14415
14415
|
const V = S("click", (W) => {
|
|
14416
|
-
const
|
|
14417
|
-
T(e.id, { ...
|
|
14416
|
+
const H = R(e.id);
|
|
14417
|
+
T(e.id, { ...H, type: e.type, RECORD: e.tooltipShow ? m : W.data });
|
|
14418
14418
|
}), { setRequest: U } = inject(REQUEST_MODEL, {
|
|
14419
14419
|
setRequest: (W) => {
|
|
14420
14420
|
}
|
|
@@ -14425,12 +14425,12 @@ const _sfc_main$c = defineComponent({
|
|
|
14425
14425
|
sortNum: e.requestSort
|
|
14426
14426
|
});
|
|
14427
14427
|
const N = () => {
|
|
14428
|
-
const W = e.id,
|
|
14429
|
-
T(W, { ...
|
|
14430
|
-
},
|
|
14428
|
+
const W = e.id, H = R(W);
|
|
14429
|
+
T(W, { ...H, RECORD: "" });
|
|
14430
|
+
}, G = (W) => {
|
|
14431
14431
|
o.value.chart.containPixel("grid", [W.offsetX, W.offsetY]) && V();
|
|
14432
14432
|
};
|
|
14433
|
-
return e.tooltipShow ? y.value["zr:click"] =
|
|
14433
|
+
return e.tooltipShow ? y.value["zr:click"] = G : y.value.click = V, useOnEvent(e, {
|
|
14434
14434
|
refreshData: $,
|
|
14435
14435
|
click: V,
|
|
14436
14436
|
resetRecord: N
|
|
@@ -14619,7 +14619,8 @@ const Bar = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$e
|
|
|
14619
14619
|
xAxisMin: null,
|
|
14620
14620
|
yAxisMax: null,
|
|
14621
14621
|
yAxisMin: null,
|
|
14622
|
-
xAxisLabelShow: !0
|
|
14622
|
+
xAxisLabelShow: !0,
|
|
14623
|
+
crossShow: !0
|
|
14623
14624
|
}, scatterComponentProps = transformToComponentProps(scatterProps), scatterEvents = ["click", "refreshData", "resetRecord"];
|
|
14624
14625
|
use([
|
|
14625
14626
|
CanvasRenderer,
|
|
@@ -14648,32 +14649,38 @@ const _sfc_main$b = defineComponent({
|
|
|
14648
14649
|
}), a = ref(), o = ref(!1), s = usePickComponentStyle(e), l = ref([]), c = ref(), f = computed(() => o.value ? ZOOM_FONT_SIZE : 12), u = ref(), x = ref(), d = ref(), y = ref(), m = computed(() => {
|
|
14649
14650
|
const { xAxisMarkLineValue: S = [], yAxisMarkLineValue: R = [] } = e, T = S.map((N) => ({ ...N, x: !0 })), V = R.map((N) => ({ ...N, y: !0 })), U = T.concat(V);
|
|
14650
14651
|
if (U != null && U.length) {
|
|
14651
|
-
const N = []
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14652
|
+
const N = [];
|
|
14653
|
+
for (const G of U) {
|
|
14654
|
+
const W = {
|
|
14655
|
+
label: {
|
|
14656
|
+
show: !0,
|
|
14657
|
+
formatter: "",
|
|
14658
|
+
rich: {
|
|
14659
|
+
ft: {}
|
|
14660
|
+
}
|
|
14661
|
+
}
|
|
14662
|
+
}, H = {};
|
|
14663
|
+
let K = G.value;
|
|
14664
|
+
const j = K.match(/\{(.+?)\}/g);
|
|
14665
|
+
let J = "";
|
|
14666
|
+
if (W.label.formatter = G.label ? `{ft|${G.label}}` : "", (G.offsetHorizontal || G.offsetVertical) && (G.x ? W.label.rich.ft.padding = [0, G.offsetHorizontal || 0, G.offsetVertical || 0, 0] : G.y && (W.label.rich.ft.padding = [G.offsetVertical || 0, 0, 0, G.offsetHorizontal || 0])), G.labelColor && (W.label.rich.ft.color = G.labelColor), G.lineColor && (H.color = G.lineColor), G.x ? J = "xAxis" : G.y && (J = "yAxis"), j != null && j.length) {
|
|
14667
|
+
for (const Z of j)
|
|
14668
|
+
K = K.replace(Z, Z.slice(1, -1));
|
|
14669
|
+
if (K) {
|
|
14670
|
+
const Z = runCode(K, {
|
|
14671
|
+
max: G.x ? unref(u) : G.y ? unref(d) : 0,
|
|
14672
|
+
min: G.x ? unref(x) : G.y ? unref(y) : 0
|
|
14667
14673
|
});
|
|
14668
|
-
isNaN(+
|
|
14669
|
-
[
|
|
14670
|
-
...
|
|
14674
|
+
isNaN(+Z) || N.push({
|
|
14675
|
+
[J]: +Z,
|
|
14676
|
+
...W
|
|
14671
14677
|
});
|
|
14672
14678
|
}
|
|
14673
14679
|
} else
|
|
14674
|
-
isNaN(+
|
|
14675
|
-
[
|
|
14676
|
-
|
|
14680
|
+
isNaN(+G.value) || N.push({
|
|
14681
|
+
[J]: G.value,
|
|
14682
|
+
lineStyle: H,
|
|
14683
|
+
...W
|
|
14677
14684
|
});
|
|
14678
14685
|
}
|
|
14679
14686
|
return {
|
|
@@ -14721,9 +14728,9 @@ const _sfc_main$b = defineComponent({
|
|
|
14721
14728
|
for (const U in T)
|
|
14722
14729
|
if (U !== "color") {
|
|
14723
14730
|
let N = T[U];
|
|
14724
|
-
const
|
|
14725
|
-
if (
|
|
14726
|
-
for (const W of
|
|
14731
|
+
const G = N.match(/\{(.+?)\}/g);
|
|
14732
|
+
if (G != null && G.length) {
|
|
14733
|
+
for (const W of G)
|
|
14727
14734
|
N = N.replace(W, W.slice(1, -1));
|
|
14728
14735
|
if (N) {
|
|
14729
14736
|
const W = runCode(N, {
|
|
@@ -14811,7 +14818,7 @@ const _sfc_main$b = defineComponent({
|
|
|
14811
14818
|
},
|
|
14812
14819
|
color: e.colors,
|
|
14813
14820
|
xAxis: {
|
|
14814
|
-
z:
|
|
14821
|
+
z: 5,
|
|
14815
14822
|
// type: 'value'
|
|
14816
14823
|
splitLine: {
|
|
14817
14824
|
show: e.xAxisSplitLineShow,
|
|
@@ -14858,7 +14865,7 @@ const _sfc_main$b = defineComponent({
|
|
|
14858
14865
|
min: e.xAxisMin
|
|
14859
14866
|
},
|
|
14860
14867
|
yAxis: {
|
|
14861
|
-
z:
|
|
14868
|
+
z: 5,
|
|
14862
14869
|
splitLine: {
|
|
14863
14870
|
show: e.yAxisSplitLineShow,
|
|
14864
14871
|
lineStyle: {
|
|
@@ -14906,7 +14913,7 @@ const _sfc_main$b = defineComponent({
|
|
|
14906
14913
|
trigger: e.tooltipTrigger,
|
|
14907
14914
|
formatter(T) {
|
|
14908
14915
|
var K;
|
|
14909
|
-
const { marker: V, seriesName: U, componentType: N } = T,
|
|
14916
|
+
const { marker: V, seriesName: U, componentType: N } = T, G = ((K = T == null ? void 0 : T.data) == null ? void 0 : K.record) ?? {}, W = G[unref(E).name], H = G[unref(E).value];
|
|
14910
14917
|
return ["markLine", "markArea"].includes(N) ? "" : useVariablesInText(
|
|
14911
14918
|
e.tooltipFormatter,
|
|
14912
14919
|
{
|
|
@@ -14915,8 +14922,8 @@ const _sfc_main$b = defineComponent({
|
|
|
14915
14922
|
seriesName: U,
|
|
14916
14923
|
a: U,
|
|
14917
14924
|
b: W,
|
|
14918
|
-
c:
|
|
14919
|
-
...
|
|
14925
|
+
c: H,
|
|
14926
|
+
...G
|
|
14920
14927
|
}
|
|
14921
14928
|
},
|
|
14922
14929
|
{
|
|
@@ -14926,7 +14933,7 @@ const _sfc_main$b = defineComponent({
|
|
|
14926
14933
|
);
|
|
14927
14934
|
},
|
|
14928
14935
|
axisPointer: {
|
|
14929
|
-
type: "cross"
|
|
14936
|
+
type: e.crossShow || e.crossShow === void 0 ? "cross" : ""
|
|
14930
14937
|
},
|
|
14931
14938
|
textStyle: {
|
|
14932
14939
|
fontSize: f.value
|
|
@@ -14967,7 +14974,8 @@ const _sfc_main$b = defineComponent({
|
|
|
14967
14974
|
setGlobalModel: (S, R) => {
|
|
14968
14975
|
}
|
|
14969
14976
|
}), b = () => {
|
|
14970
|
-
|
|
14977
|
+
var T, V;
|
|
14978
|
+
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
14979
|
R && S && (x.value = R[0], u.value = R[1], y.value = S[0], d.value = S[1]);
|
|
14972
14980
|
}, E = computed(() => {
|
|
14973
14981
|
let S = e.dataFieldNames;
|
|
@@ -15349,11 +15357,11 @@ const _sfc_main$9 = defineComponent({
|
|
|
15349
15357
|
}), a = inject("usedComponentList", []), { getGlobalModel: o, setGlobalModel: s } = inject(GLOBAL_MODEL, {
|
|
15350
15358
|
// @ts-ignore
|
|
15351
15359
|
// eslint-disable-next-line no-void
|
|
15352
|
-
getGlobalModel: (
|
|
15360
|
+
getGlobalModel: (H) => {
|
|
15353
15361
|
},
|
|
15354
15362
|
// @ts-ignore
|
|
15355
15363
|
// eslint-disable-next-line no-void
|
|
15356
|
-
setGlobalModel: (
|
|
15364
|
+
setGlobalModel: (H, K) => {
|
|
15357
15365
|
}
|
|
15358
15366
|
}), l = ref(), c = ref(!1), f = ref(!1), u = ref(null), x = ref([]), d = ref({});
|
|
15359
15367
|
let y;
|
|
@@ -15384,7 +15392,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
15384
15392
|
icon: "path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",
|
|
15385
15393
|
onclick() {
|
|
15386
15394
|
f.value = !0;
|
|
15387
|
-
const
|
|
15395
|
+
const H = l.value.chart.getOption(), { xAxis: K } = H || {};
|
|
15388
15396
|
K && K.length && (x.value = K[0].data);
|
|
15389
15397
|
}
|
|
15390
15398
|
},
|
|
@@ -15401,8 +15409,8 @@ const _sfc_main$9 = defineComponent({
|
|
|
15401
15409
|
title: "放大",
|
|
15402
15410
|
icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
|
|
15403
15411
|
onclick() {
|
|
15404
|
-
var
|
|
15405
|
-
c.value = !0, (
|
|
15412
|
+
var H;
|
|
15413
|
+
c.value = !0, (H = C.value) == null || H.showModal();
|
|
15406
15414
|
}
|
|
15407
15415
|
},
|
|
15408
15416
|
myInfo: {
|
|
@@ -15447,38 +15455,38 @@ const _sfc_main$9 = defineComponent({
|
|
|
15447
15455
|
itemHeight: e.legendItemHeight,
|
|
15448
15456
|
itemWidth: e.legendItemWidth,
|
|
15449
15457
|
itemGap: e.legendItemGap,
|
|
15450
|
-
data: unref(p).map((
|
|
15451
|
-
name:
|
|
15458
|
+
data: unref(p).map((H, K) => ({
|
|
15459
|
+
name: H.name,
|
|
15452
15460
|
itemStyle: {
|
|
15453
15461
|
color: e.colors[K]
|
|
15454
15462
|
},
|
|
15455
15463
|
icon: e.legendType
|
|
15456
15464
|
})),
|
|
15457
|
-
formatter: (
|
|
15458
|
-
name:
|
|
15465
|
+
formatter: (H) => getLegendFormat(e.legendFormatter, {
|
|
15466
|
+
name: H
|
|
15459
15467
|
})
|
|
15460
15468
|
},
|
|
15461
15469
|
tooltip: {
|
|
15462
15470
|
trigger: "axis",
|
|
15463
15471
|
show: e.tooltipShow,
|
|
15464
|
-
formatter: (
|
|
15472
|
+
formatter: (H) => {
|
|
15465
15473
|
var X;
|
|
15466
|
-
const K =
|
|
15467
|
-
let
|
|
15468
|
-
y = (X =
|
|
15474
|
+
const K = H.length;
|
|
15475
|
+
let j = "", J = e.tooltipFormatter;
|
|
15476
|
+
y = (X = H[0]) == null ? void 0 : X.data, J === "" && (J = "{marker} {a} {c}");
|
|
15469
15477
|
const Z = e.seriesTypes;
|
|
15470
|
-
for (let
|
|
15471
|
-
const Y = Z[
|
|
15472
|
-
if (
|
|
15478
|
+
for (let ee = 0; ee < K; ee++) {
|
|
15479
|
+
const Y = Z[ee], { tooltipFormatter: te } = Y || {}, { marker: ne, seriesName: ie, name: oe, value: le, data: he } = H[ee] || {};
|
|
15480
|
+
if (ee === 0) {
|
|
15473
15481
|
let de = oe;
|
|
15474
|
-
typeof oe == "string" && oe[0] === "0" && !isNaN(+oe) && (de = (+oe).toString()),
|
|
15482
|
+
typeof oe == "string" && oe[0] === "0" && !isNaN(+oe) && (de = (+oe).toString()), j += `${useValueFormatter(e.xAxisLabelFormatter, de)}<br/>`;
|
|
15475
15483
|
}
|
|
15476
|
-
|
|
15484
|
+
j += useVariablesInText(
|
|
15477
15485
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
15478
15486
|
te || J,
|
|
15479
15487
|
{
|
|
15480
15488
|
textData: {
|
|
15481
|
-
marker:
|
|
15489
|
+
marker: ne,
|
|
15482
15490
|
name: oe,
|
|
15483
15491
|
value: le,
|
|
15484
15492
|
seriesName: ie,
|
|
@@ -15492,9 +15500,9 @@ const _sfc_main$9 = defineComponent({
|
|
|
15492
15500
|
useNewline: !0,
|
|
15493
15501
|
useSpace: !0
|
|
15494
15502
|
}
|
|
15495
|
-
),
|
|
15503
|
+
), j += "<br/>";
|
|
15496
15504
|
}
|
|
15497
|
-
return
|
|
15505
|
+
return j;
|
|
15498
15506
|
},
|
|
15499
15507
|
textStyle: {
|
|
15500
15508
|
color: e.tooltipTextStyleColor,
|
|
@@ -15505,12 +15513,12 @@ const _sfc_main$9 = defineComponent({
|
|
|
15505
15513
|
xAxis: {
|
|
15506
15514
|
minInterval: e.xAxisMinInterval,
|
|
15507
15515
|
type: "category",
|
|
15508
|
-
data: unref(w).map((
|
|
15516
|
+
data: unref(w).map((H) => {
|
|
15509
15517
|
let K = {};
|
|
15510
|
-
return
|
|
15511
|
-
...
|
|
15518
|
+
return H && typeof H == "object" ? K = {
|
|
15519
|
+
...H
|
|
15512
15520
|
} : K = {
|
|
15513
|
-
value:
|
|
15521
|
+
value: H
|
|
15514
15522
|
}, K;
|
|
15515
15523
|
}),
|
|
15516
15524
|
splitLine: {
|
|
@@ -15531,8 +15539,8 @@ const _sfc_main$9 = defineComponent({
|
|
|
15531
15539
|
width: e.xAxisLabelWidth,
|
|
15532
15540
|
overflow: e.xAxisLabelOverflow,
|
|
15533
15541
|
fontSize: e.xAxisLabelFontSize,
|
|
15534
|
-
formatter(
|
|
15535
|
-
return typeof
|
|
15542
|
+
formatter(H) {
|
|
15543
|
+
return typeof H == "string" && H[0] === "0" && !isNaN(+H) && (H = (+H).toString()), useValueFormatter(e.xAxisLabelFormatter, H);
|
|
15536
15544
|
}
|
|
15537
15545
|
},
|
|
15538
15546
|
axisLine: {
|
|
@@ -15556,20 +15564,20 @@ const _sfc_main$9 = defineComponent({
|
|
|
15556
15564
|
series: unref(g)
|
|
15557
15565
|
})), E = () => {
|
|
15558
15566
|
c.value = !1;
|
|
15559
|
-
}, _ = (
|
|
15560
|
-
let
|
|
15567
|
+
}, _ = (H = [], K = !1) => {
|
|
15568
|
+
let j;
|
|
15561
15569
|
if (e.dataFieldConfigType === "key") {
|
|
15562
15570
|
const Z = K ? e.keyTypeDataFieldNames : null;
|
|
15563
|
-
|
|
15571
|
+
j = useTransformChartDataByAttrKey(H, Z);
|
|
15564
15572
|
} else if (e.dataFieldConfigType === "value") {
|
|
15565
15573
|
const Z = K ? e.valueTypeDataFieldNames : null;
|
|
15566
|
-
|
|
15574
|
+
j = useTransformChartDataByAttrValue(H, Z);
|
|
15567
15575
|
}
|
|
15568
|
-
w.value =
|
|
15569
|
-
const J =
|
|
15570
|
-
p.value =
|
|
15571
|
-
}, k = (
|
|
15572
|
-
const Z = useTransformChartDataByAttrKey(
|
|
15576
|
+
w.value = j.dimensions;
|
|
15577
|
+
const J = j.dataset;
|
|
15578
|
+
p.value = j.dataset, g.value = P(J);
|
|
15579
|
+
}, k = (H = [], K, j = !1) => {
|
|
15580
|
+
const Z = useTransformChartDataByAttrKey(H, j ? K : null, !0);
|
|
15573
15581
|
e.defaultRangeValue && setDefaultRangeVal({
|
|
15574
15582
|
props: e,
|
|
15575
15583
|
componentList: unref(a),
|
|
@@ -15578,18 +15586,18 @@ const _sfc_main$9 = defineComponent({
|
|
|
15578
15586
|
const X = Z.dataset;
|
|
15579
15587
|
p.value = Z.dataset, g.value = P(X);
|
|
15580
15588
|
};
|
|
15581
|
-
function P(
|
|
15582
|
-
const K = [],
|
|
15583
|
-
for (let Z = 0; Z <
|
|
15584
|
-
const X = J[Z], { type:
|
|
15589
|
+
function P(H) {
|
|
15590
|
+
const K = [], j = H.length, J = e.seriesTypes;
|
|
15591
|
+
for (let Z = 0; Z < j; Z++) {
|
|
15592
|
+
const X = J[Z], { type: ee, axisIndex: Y } = X || {};
|
|
15585
15593
|
let te = {
|
|
15586
|
-
type:
|
|
15594
|
+
type: ee,
|
|
15587
15595
|
yAxisIndex: Y,
|
|
15588
|
-
...
|
|
15596
|
+
...H[Z]
|
|
15589
15597
|
};
|
|
15590
|
-
if (
|
|
15591
|
-
const
|
|
15592
|
-
e.shadowColor && (
|
|
15598
|
+
if (ee === "line") {
|
|
15599
|
+
const ne = {};
|
|
15600
|
+
e.shadowColor && (ne.shadowColor = e.shadowColor, ne.shadowBlur = e.shadowBlur, ne.shadowOffsetY = e.shadowOffsetY, ne.shadowOffsetX = e.shadowOffsetX), te = {
|
|
15593
15601
|
...te,
|
|
15594
15602
|
symbolSize: e.symbolSize,
|
|
15595
15603
|
smooth: e.smooth,
|
|
@@ -15616,12 +15624,12 @@ const _sfc_main$9 = defineComponent({
|
|
|
15616
15624
|
},
|
|
15617
15625
|
lineStyle: {
|
|
15618
15626
|
width: e.lineStyleWidth,
|
|
15619
|
-
...
|
|
15627
|
+
...ne
|
|
15620
15628
|
}
|
|
15621
15629
|
};
|
|
15622
15630
|
}
|
|
15623
|
-
if (
|
|
15624
|
-
const { gradientShow:
|
|
15631
|
+
if (ee === "bar") {
|
|
15632
|
+
const { gradientShow: ne, gradientColors: ie, gradientOffset: oe } = e, le = {
|
|
15625
15633
|
color: e.colors[Z]
|
|
15626
15634
|
};
|
|
15627
15635
|
if (e.barBorderRadius) {
|
|
@@ -15635,7 +15643,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
15635
15643
|
le.borderRadius = de;
|
|
15636
15644
|
}
|
|
15637
15645
|
}
|
|
15638
|
-
|
|
15646
|
+
ne && (le.color = {
|
|
15639
15647
|
x: 0,
|
|
15640
15648
|
y: 0,
|
|
15641
15649
|
x2: 0,
|
|
@@ -15689,22 +15697,22 @@ const _sfc_main$9 = defineComponent({
|
|
|
15689
15697
|
e.legendHeight,
|
|
15690
15698
|
e.legendTextWidth,
|
|
15691
15699
|
e.legendScroll
|
|
15692
|
-
], ([
|
|
15693
|
-
(e.dataType === "static" || unref(n) === "design") && _(
|
|
15700
|
+
], ([H]) => {
|
|
15701
|
+
(e.dataType === "static" || unref(n) === "design") && _(H);
|
|
15694
15702
|
}, {
|
|
15695
15703
|
immediate: !0,
|
|
15696
15704
|
deep: !0
|
|
15697
15705
|
});
|
|
15698
15706
|
const D = computed(() => {
|
|
15699
|
-
const
|
|
15700
|
-
return
|
|
15707
|
+
const H = e.yAxis;
|
|
15708
|
+
return H == null ? void 0 : H.map((K, j) => ({
|
|
15701
15709
|
type: "value",
|
|
15702
15710
|
minInterval: e.yAxisMinInterval,
|
|
15703
15711
|
splitLine: {
|
|
15704
|
-
show:
|
|
15712
|
+
show: j === 0 ? e.yAxisLeftSplitLineShow : e.yAxisRightSplitLineShow,
|
|
15705
15713
|
lineStyle: {
|
|
15706
15714
|
color: e.yAxisSplitLineStyleColor,
|
|
15707
|
-
type:
|
|
15715
|
+
type: j === 0 ? e.yAxisLeftSplitLineType : e.yAxisRightSplitLineType
|
|
15708
15716
|
}
|
|
15709
15717
|
},
|
|
15710
15718
|
splitArea: {
|
|
@@ -15724,29 +15732,29 @@ const _sfc_main$9 = defineComponent({
|
|
|
15724
15732
|
color: e.yAxisLineStyleColor
|
|
15725
15733
|
}
|
|
15726
15734
|
},
|
|
15727
|
-
name:
|
|
15735
|
+
name: j === 0 ? e.yAxisLeftName : e.yAxisRightName,
|
|
15728
15736
|
nameTextStyle: {
|
|
15729
15737
|
fontSize: e.yAxisLabelFontSize,
|
|
15730
15738
|
color: e.yAxisLabelColor,
|
|
15731
|
-
align:
|
|
15739
|
+
align: j === 0 ? "right" : "left"
|
|
15732
15740
|
},
|
|
15733
15741
|
max: e.yAxisMaxValue || null
|
|
15734
15742
|
}));
|
|
15735
15743
|
}), M = ref(!1), F = useRequestData(e), O = async () => {
|
|
15736
|
-
var
|
|
15744
|
+
var H, K;
|
|
15737
15745
|
if (e.dataType === "request")
|
|
15738
15746
|
try {
|
|
15739
15747
|
M.value = !0;
|
|
15740
|
-
const
|
|
15741
|
-
_((K = (
|
|
15742
|
-
} catch (
|
|
15743
|
-
console.error(
|
|
15748
|
+
const j = await F();
|
|
15749
|
+
_((K = (H = j == null ? void 0 : j.data) == null ? void 0 : H.data) == null ? void 0 : K.rows, !0);
|
|
15750
|
+
} catch (j) {
|
|
15751
|
+
console.error(j);
|
|
15744
15752
|
} finally {
|
|
15745
15753
|
M.value = !1;
|
|
15746
15754
|
}
|
|
15747
|
-
}, L = (
|
|
15755
|
+
}, L = (H) => {
|
|
15748
15756
|
var Z;
|
|
15749
|
-
const { columns: K = [], rows:
|
|
15757
|
+
const { columns: K = [], rows: j = [] } = ((Z = H == null ? void 0 : H.data) == null ? void 0 : Z.data) ?? {};
|
|
15750
15758
|
let J;
|
|
15751
15759
|
K.length > 0 && (J = {
|
|
15752
15760
|
name: K[0],
|
|
@@ -15754,26 +15762,26 @@ const _sfc_main$9 = defineComponent({
|
|
|
15754
15762
|
label: X,
|
|
15755
15763
|
value: X
|
|
15756
15764
|
}))
|
|
15757
|
-
}), k(
|
|
15758
|
-
}, q = useIndicatorData(e, (
|
|
15759
|
-
e.isViewRedrawing && l.value.clear(), L(
|
|
15765
|
+
}), k(j, J, !0);
|
|
15766
|
+
}, q = useIndicatorData(e, (H) => {
|
|
15767
|
+
e.isViewRedrawing && l.value.clear(), L(H);
|
|
15760
15768
|
}), $ = async () => {
|
|
15761
15769
|
try {
|
|
15762
15770
|
M.value = !0;
|
|
15763
|
-
const
|
|
15764
|
-
L(
|
|
15765
|
-
} catch (
|
|
15766
|
-
console.error(
|
|
15771
|
+
const H = await q();
|
|
15772
|
+
L(H);
|
|
15773
|
+
} catch (H) {
|
|
15774
|
+
console.error(H);
|
|
15767
15775
|
} finally {
|
|
15768
15776
|
M.value = !1;
|
|
15769
15777
|
}
|
|
15770
15778
|
}, { loadedData: I } = inject(LOADED_DATA, {
|
|
15771
15779
|
loadedData: {}
|
|
15772
15780
|
}), B = ref(!1);
|
|
15773
|
-
watch(I, (
|
|
15781
|
+
watch(I, (H) => {
|
|
15774
15782
|
if (e.dataType === "indicator") {
|
|
15775
15783
|
const K = getFixedValueDatas(e.graphicConfig);
|
|
15776
|
-
K != null && K.length && (!unref(B) && canRequestIndicator(e.graphicConfig,
|
|
15784
|
+
K != null && K.length && (!unref(B) && canRequestIndicator(e.graphicConfig, H) ? (B.value = !0, A()) : canRequestIndicator(e.graphicConfig, H) || (B.value = !1));
|
|
15777
15785
|
}
|
|
15778
15786
|
}, {
|
|
15779
15787
|
deep: !0
|
|
@@ -15787,21 +15795,21 @@ const _sfc_main$9 = defineComponent({
|
|
|
15787
15795
|
O();
|
|
15788
15796
|
break;
|
|
15789
15797
|
}
|
|
15790
|
-
}, S = (
|
|
15798
|
+
}, S = (H, K) => !!unref(x)[K.value].value.includes(H), R = async () => {
|
|
15791
15799
|
f.value = !1;
|
|
15792
|
-
const
|
|
15800
|
+
const H = l.value.chart.getOption();
|
|
15793
15801
|
for (let K = 0; K < 7; K++)
|
|
15794
|
-
await T(
|
|
15795
|
-
}, T = (
|
|
15802
|
+
await T(H, K);
|
|
15803
|
+
}, T = (H, K) => new Promise((j) => {
|
|
15796
15804
|
setTimeout(() => {
|
|
15797
|
-
const { series: J, color: Z, xAxis: X } =
|
|
15798
|
-
J.forEach((te,
|
|
15805
|
+
const { series: J, color: Z, xAxis: X } = H, ee = l.value.chart, { splitArea: Y = {} } = X[0] || {};
|
|
15806
|
+
J.forEach((te, ne) => {
|
|
15799
15807
|
const ie = te.data;
|
|
15800
15808
|
let oe = "";
|
|
15801
|
-
K % 2 ? oe = Z[
|
|
15809
|
+
K % 2 ? oe = Z[ne] + "a8" : oe = Z[ne], ie[u.value].itemStyle = {
|
|
15802
15810
|
color: oe
|
|
15803
15811
|
};
|
|
15804
|
-
}), K % 2 ? (Y.show = !0, Y.areaStyle.color = unref(x).map((te,
|
|
15812
|
+
}), 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 }), j();
|
|
15805
15813
|
}, 200);
|
|
15806
15814
|
});
|
|
15807
15815
|
r({
|
|
@@ -15812,25 +15820,25 @@ const _sfc_main$9 = defineComponent({
|
|
|
15812
15820
|
type: e.type,
|
|
15813
15821
|
RECORD: ""
|
|
15814
15822
|
});
|
|
15815
|
-
const U = V("click", (
|
|
15823
|
+
const U = V("click", (H) => {
|
|
15816
15824
|
const K = o(e.id);
|
|
15817
|
-
s(e.id, { ...K, type: e.type, RECORD: e.tooltipShow ? y :
|
|
15818
|
-
}), N = (
|
|
15819
|
-
l.value.chart.containPixel("grid", [
|
|
15825
|
+
s(e.id, { ...K, type: e.type, RECORD: e.tooltipShow ? y : H == null ? void 0 : H.data });
|
|
15826
|
+
}), N = (H) => {
|
|
15827
|
+
l.value.chart.containPixel("grid", [H.offsetX, H.offsetY]) && U();
|
|
15820
15828
|
};
|
|
15821
15829
|
e.tooltipShow ? d.value["zr:click"] = N : d.value.click = U;
|
|
15822
|
-
const { setRequest:
|
|
15823
|
-
setRequest: (
|
|
15830
|
+
const { setRequest: G } = inject(REQUEST_MODEL, {
|
|
15831
|
+
setRequest: (H) => {
|
|
15824
15832
|
}
|
|
15825
15833
|
});
|
|
15826
|
-
return typeof
|
|
15834
|
+
return typeof G == "function" && G({
|
|
15827
15835
|
id: e.id,
|
|
15828
15836
|
requestFn: A,
|
|
15829
15837
|
sortNum: e.requestSort
|
|
15830
15838
|
}), useOnEvent(e, {
|
|
15831
15839
|
resetRecord: () => {
|
|
15832
|
-
const
|
|
15833
|
-
s(
|
|
15840
|
+
const H = e.id, K = o(H);
|
|
15841
|
+
s(H, { ...K, RECORD: "" });
|
|
15834
15842
|
},
|
|
15835
15843
|
refreshData: A,
|
|
15836
15844
|
click: U
|
|
@@ -16033,7 +16041,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
16033
16041
|
}];
|
|
16034
16042
|
let V = e.colors[A];
|
|
16035
16043
|
if (e.gradientShow) {
|
|
16036
|
-
const { gradientOffset: N, gradientColors:
|
|
16044
|
+
const { gradientOffset: N, gradientColors: G } = e;
|
|
16037
16045
|
V = {
|
|
16038
16046
|
x: 0.7,
|
|
16039
16047
|
y: 0,
|
|
@@ -16044,10 +16052,10 @@ const _sfc_main$8 = defineComponent({
|
|
|
16044
16052
|
color: e.colors[A]
|
|
16045
16053
|
}, {
|
|
16046
16054
|
offset: N,
|
|
16047
|
-
color:
|
|
16055
|
+
color: G[A]
|
|
16048
16056
|
}, {
|
|
16049
16057
|
offset: 1,
|
|
16050
|
-
color:
|
|
16058
|
+
color: G[A]
|
|
16051
16059
|
}]
|
|
16052
16060
|
};
|
|
16053
16061
|
}
|
|
@@ -16074,12 +16082,12 @@ const _sfc_main$8 = defineComponent({
|
|
|
16074
16082
|
width: e.labelWidth,
|
|
16075
16083
|
overflow: e.labelOverflow,
|
|
16076
16084
|
formatter: (N) => {
|
|
16077
|
-
const { data:
|
|
16078
|
-
let
|
|
16079
|
-
if (
|
|
16080
|
-
for (const
|
|
16081
|
-
|
|
16082
|
-
return
|
|
16085
|
+
const { data: G, value: W } = N;
|
|
16086
|
+
let H = 0, K = "0%";
|
|
16087
|
+
if (G)
|
|
16088
|
+
for (const j of G.value)
|
|
16089
|
+
H += +j;
|
|
16090
|
+
return H && (K = `${(W / H * 100).toFixed(2)}%`), useVariablesInText(
|
|
16083
16091
|
e.labelFormatter,
|
|
16084
16092
|
{
|
|
16085
16093
|
textData: {
|
|
@@ -16920,31 +16928,31 @@ const _sfc_main$5 = defineComponent({
|
|
|
16920
16928
|
const A = y(I);
|
|
16921
16929
|
if (P != null && P.length) {
|
|
16922
16930
|
const { width: T, left: V, height: U } = A;
|
|
16923
|
-
let N = 0,
|
|
16924
|
-
P.forEach((W,
|
|
16925
|
-
W.index =
|
|
16926
|
-
const K = nanoid(),
|
|
16927
|
-
for (const J of
|
|
16928
|
-
const Z = L.find((
|
|
16929
|
-
if (J.left = (parseFloat(J.left) + N) * unref(x) + "px", J.top = (parseFloat(J.top) +
|
|
16930
|
-
const
|
|
16931
|
+
let N = 0, G = 0;
|
|
16932
|
+
P.forEach((W, H) => {
|
|
16933
|
+
W.index = H + 1;
|
|
16934
|
+
const K = nanoid(), j = cloneDeep(I);
|
|
16935
|
+
for (const J of j) {
|
|
16936
|
+
const Z = L.find((ee) => ee.keyName === J.keyName), X = nanoid();
|
|
16937
|
+
if (J.left = (parseFloat(J.left) + N) * unref(x) + "px", J.top = (parseFloat(J.top) + G) * unref(x) + "px", J.scale = unref(x), J.id = X, J.keyName = J.name + "_" + X, J.unitId = K, Z != null && Z.fieldName) {
|
|
16938
|
+
const ee = J.text.match(/\{(.+?)\}/g);
|
|
16931
16939
|
switch (J.type) {
|
|
16932
16940
|
case "ecanText": {
|
|
16933
16941
|
J.data = {
|
|
16934
16942
|
value: String(W[Z.fieldName])
|
|
16935
|
-
},
|
|
16943
|
+
}, ee != null && ee.length || (J.text = "{value}");
|
|
16936
16944
|
break;
|
|
16937
16945
|
}
|
|
16938
16946
|
case "ecanProportion": {
|
|
16939
16947
|
J.data = {
|
|
16940
16948
|
percent: String(W[Z.fieldName])
|
|
16941
|
-
},
|
|
16949
|
+
}, ee != null && ee.length || (J.text = "{percent}");
|
|
16942
16950
|
break;
|
|
16943
16951
|
}
|
|
16944
16952
|
}
|
|
16945
16953
|
}
|
|
16946
16954
|
}
|
|
16947
|
-
$ && W.index % $ === 0 ? (N = 0,
|
|
16955
|
+
$ && W.index % $ === 0 ? (N = 0, G += q + U) : N += q + T, D.push(...j), m.value[K] = W;
|
|
16948
16956
|
}), f.value = {
|
|
16949
16957
|
width: (($ || P.length) * (T + q) + V) * unref(x) + "px",
|
|
16950
16958
|
height: ($ ? Math.ceil(P.length / $) * (q + U) : q + U) * unref(x) + "px"
|
|
@@ -17630,7 +17638,7 @@ var lottie$1 = { exports: {} };
|
|
|
17630
17638
|
A[S].ty === "gr" && I(A[S].it);
|
|
17631
17639
|
}
|
|
17632
17640
|
function B(A) {
|
|
17633
|
-
var S, R, T = A.length, V, U, N,
|
|
17641
|
+
var S, R, T = A.length, V, U, N, G;
|
|
17634
17642
|
for (R = 0; R < T; R += 1) {
|
|
17635
17643
|
if (S = A[R], S.hasMask) {
|
|
17636
17644
|
var W = S.masksProperties;
|
|
@@ -17638,7 +17646,7 @@ var lottie$1 = { exports: {} };
|
|
|
17638
17646
|
if (W[V].pt.k.i)
|
|
17639
17647
|
W[V].pt.k.c = W[V].cl;
|
|
17640
17648
|
else
|
|
17641
|
-
for (
|
|
17649
|
+
for (G = W[V].pt.k.length, N = 0; N < G; N += 1)
|
|
17642
17650
|
W[V].pt.k[N].s && (W[V].pt.k[N].s[0].c = W[V].cl), W[V].pt.k[N].e && (W[V].pt.k[N].e[0].c = W[V].cl);
|
|
17643
17651
|
}
|
|
17644
17652
|
S.ty === 4 && I(S.shapes);
|
|
@@ -19026,18 +19034,18 @@ var lottie$1 = { exports: {} };
|
|
|
19026
19034
|
function d(A, S, R) {
|
|
19027
19035
|
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
19036
|
}
|
|
19029
|
-
function y(A, S, R, T, V, U, N,
|
|
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] =
|
|
19037
|
+
function y(A, S, R, T, V, U, N, G, W, H, K, j, J, Z, X, ee) {
|
|
19038
|
+
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] = G, this.props[8] = W, this.props[9] = H, this.props[10] = K, this.props[11] = j, this.props[12] = J, this.props[13] = Z, this.props[14] = X, this.props[15] = ee, this;
|
|
19031
19039
|
}
|
|
19032
19040
|
function m(A, S, R) {
|
|
19033
19041
|
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
19042
|
}
|
|
19035
|
-
function g(A, S, R, T, V, U, N,
|
|
19043
|
+
function g(A, S, R, T, V, U, N, G, W, H, K, j, J, Z, X, ee) {
|
|
19036
19044
|
var Y = this.props;
|
|
19037
|
-
if (A === 1 && S === 0 && R === 0 && T === 0 && V === 0 && U === 1 && N === 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 +
|
|
19045
|
+
if (A === 1 && S === 0 && R === 0 && T === 0 && V === 0 && U === 1 && N === 0 && G === 0 && W === 0 && H === 0 && K === 1 && j === 0)
|
|
19046
|
+
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;
|
|
19047
|
+
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];
|
|
19048
|
+
return Y[0] = te * A + ne * V + ie * W + oe * J, Y[1] = te * S + ne * U + ie * H + oe * Z, Y[2] = te * R + ne * N + ie * K + oe * X, Y[3] = te * T + ne * G + ie * j + oe * ee, Y[4] = le * A + he * V + de * W + ye * J, Y[5] = le * S + he * U + de * H + ye * Z, Y[6] = le * R + he * N + de * K + ye * X, Y[7] = le * T + he * G + de * j + ye * ee, Y[8] = be * A + Ee * V + Te * W + Se * J, Y[9] = be * S + Ee * U + Te * H + Se * Z, Y[10] = be * R + Ee * N + Te * K + Se * X, Y[11] = be * T + Ee * G + Te * j + Se * ee, Y[12] = ke * A + Ge * V + Ve * W + pe * J, Y[13] = ke * S + Ge * U + Ve * H + pe * Z, Y[14] = ke * R + Ge * N + Ve * K + pe * X, Y[15] = ke * T + Ge * G + Ve * j + pe * ee, this._identityCalculated = !1, this;
|
|
19041
19049
|
}
|
|
19042
19050
|
function w(A) {
|
|
19043
19051
|
var S = A.props;
|
|
@@ -19082,8 +19090,8 @@ var lottie$1 = { exports: {} };
|
|
|
19082
19090
|
return A * this.props[2] + S * this.props[6] + R * this.props[10] + this.props[14];
|
|
19083
19091
|
}
|
|
19084
19092
|
function D() {
|
|
19085
|
-
var A = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / A, R = -this.props[1] / A, T = -this.props[4] / A, V = this.props[0] / A, U = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / A, N = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / A,
|
|
19086
|
-
return
|
|
19093
|
+
var A = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / A, R = -this.props[1] / A, T = -this.props[4] / A, V = this.props[0] / A, U = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / A, N = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / A, G = new Matrix();
|
|
19094
|
+
return G.props[0] = S, G.props[1] = R, G.props[4] = T, G.props[5] = V, G.props[12] = U, G.props[13] = N, G;
|
|
19087
19095
|
}
|
|
19088
19096
|
function M(A) {
|
|
19089
19097
|
var S = this.getInverseMatrix();
|
|
@@ -19100,8 +19108,8 @@ var lottie$1 = { exports: {} };
|
|
|
19100
19108
|
if (this.isIdentity())
|
|
19101
19109
|
T[0] = A[0], T[1] = A[1], T[2] = S[0], T[3] = S[1], T[4] = R[0], T[5] = R[1];
|
|
19102
19110
|
else {
|
|
19103
|
-
var V = this.props[0], U = this.props[1], N = this.props[4],
|
|
19104
|
-
T[0] = A[0] * V + A[1] * N + W, T[1] = A[0] * U + A[1] *
|
|
19111
|
+
var V = this.props[0], U = this.props[1], N = this.props[4], G = this.props[5], W = this.props[12], H = this.props[13];
|
|
19112
|
+
T[0] = A[0] * V + A[1] * N + W, T[1] = A[0] * U + A[1] * G + H, T[2] = S[0] * V + S[1] * N + W, T[3] = S[0] * U + S[1] * G + H, T[4] = R[0] * V + R[1] * N + W, T[5] = R[0] * U + R[1] * G + H;
|
|
19105
19113
|
}
|
|
19106
19114
|
return T;
|
|
19107
19115
|
}
|
|
@@ -20024,8 +20032,8 @@ var lottie$1 = { exports: {} };
|
|
|
20024
20032
|
A[S].loaded = !0, T -= 1;
|
|
20025
20033
|
else if (A[S].fOrigin === "p" || A[S].origin === 3) {
|
|
20026
20034
|
if (U = document.querySelectorAll('style[f-forigin="p"][f-family="' + A[S].fFamily + '"], style[f-origin="3"][f-family="' + A[S].fFamily + '"]'), U.length > 0 && (V = !1), V) {
|
|
20027
|
-
var
|
|
20028
|
-
|
|
20035
|
+
var G = createTag("style");
|
|
20036
|
+
G.setAttribute("f-forigin", A[S].fOrigin), G.setAttribute("f-origin", A[S].origin), G.setAttribute("f-family", A[S].fFamily), G.type = "text/css", G.innerText = "@font-face {font-family: " + A[S].fFamily + "; font-style: normal; src: url('" + A[S].fPath + "');}", B.appendChild(G);
|
|
20029
20037
|
}
|
|
20030
20038
|
} else if (A[S].fOrigin === "g" || A[S].origin === 1) {
|
|
20031
20039
|
for (U = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), N = 0; N < U.length; N += 1)
|
|
@@ -20038,8 +20046,8 @@ var lottie$1 = { exports: {} };
|
|
|
20038
20046
|
for (U = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), N = 0; N < U.length; N += 1)
|
|
20039
20047
|
A[S].fPath === U[N].src && (V = !1);
|
|
20040
20048
|
if (V) {
|
|
20041
|
-
var
|
|
20042
|
-
|
|
20049
|
+
var H = createTag("link");
|
|
20050
|
+
H.setAttribute("f-forigin", A[S].fOrigin), H.setAttribute("f-origin", A[S].origin), H.setAttribute("rel", "stylesheet"), H.setAttribute("href", A[S].fPath), B.appendChild(H);
|
|
20043
20051
|
}
|
|
20044
20052
|
}
|
|
20045
20053
|
A[S].helper = g(A[S], B), A[S].cache = {}, this.fonts.push(A[S]);
|
|
@@ -21545,28 +21553,28 @@ var lottie$1 = { exports: {} };
|
|
|
21545
21553
|
x = d.length, c = 0, f = 0;
|
|
21546
21554
|
var q = e.finalSize * 1.2 * 0.714, $ = !0, I, B, A, S, R;
|
|
21547
21555
|
S = i.length;
|
|
21548
|
-
var T, V = -1, U, N,
|
|
21556
|
+
var T, V = -1, U, N, G, W = m, H = v, K = p, j = -1, J, Z, X, ee, Y, te, ne, ie, oe = "", le = this.defaultPropsArray, he;
|
|
21549
21557
|
if (e.j === 2 || e.j === 1) {
|
|
21550
|
-
var de = 0, ye = 0, be = e.j === 2 ? -0.5 : -1,
|
|
21558
|
+
var de = 0, ye = 0, be = e.j === 2 ? -0.5 : -1, Ee = 0, Te = !0;
|
|
21551
21559
|
for (u = 0; u < x; u += 1)
|
|
21552
21560
|
if (d[u].n) {
|
|
21553
|
-
for (de && (de += ye);
|
|
21554
|
-
d[
|
|
21561
|
+
for (de && (de += ye); Ee < u; )
|
|
21562
|
+
d[Ee].animatorJustifyOffset = de, Ee += 1;
|
|
21555
21563
|
de = 0, Te = !0;
|
|
21556
21564
|
} else {
|
|
21557
21565
|
for (A = 0; A < S; A += 1)
|
|
21558
21566
|
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
21567
|
Te = !1;
|
|
21560
21568
|
}
|
|
21561
|
-
for (de && (de += ye);
|
|
21562
|
-
d[
|
|
21569
|
+
for (de && (de += ye); Ee < u; )
|
|
21570
|
+
d[Ee].animatorJustifyOffset = de, Ee += 1;
|
|
21563
21571
|
}
|
|
21564
21572
|
for (u = 0; u < x; u += 1) {
|
|
21565
21573
|
if (o.reset(), J = 1, d[u].n)
|
|
21566
|
-
c = 0, f += e.yOffset, f += $ ? 1 : 0, m = W, $ = !1, this._hasMaskedPath && (v =
|
|
21574
|
+
c = 0, f += e.yOffset, f += $ ? 1 : 0, m = W, $ = !1, this._hasMaskedPath && (v = H, p = K, E = _[v].points, b = E[p - 1], g = E[p], k = g.partialLength, w = 0), oe = "", ie = "", te = "", he = "", le = this.defaultPropsArray;
|
|
21567
21575
|
else {
|
|
21568
21576
|
if (this._hasMaskedPath) {
|
|
21569
|
-
if (
|
|
21577
|
+
if (j !== d[u].line) {
|
|
21570
21578
|
switch (e.j) {
|
|
21571
21579
|
case 1:
|
|
21572
21580
|
m += P - e.lineWidths[d[u].line];
|
|
@@ -21575,20 +21583,20 @@ var lottie$1 = { exports: {} };
|
|
|
21575
21583
|
m += (P - e.lineWidths[d[u].line]) / 2;
|
|
21576
21584
|
break;
|
|
21577
21585
|
}
|
|
21578
|
-
|
|
21586
|
+
j = d[u].line;
|
|
21579
21587
|
}
|
|
21580
21588
|
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
|
|
21589
|
+
var Se = 0;
|
|
21582
21590
|
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 ?
|
|
21591
|
+
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
21592
|
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 +
|
|
21593
|
+
w + k >= m + Se || !E ? (D = (m + Se - w) / g.partialLength, N = b.point[0] + (g.point[0] - b.point[0]) * D, G = 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
21594
|
U = d[u].an / 2 - d[u].add, o.translate(-U, 0, 0);
|
|
21587
21595
|
} else
|
|
21588
21596
|
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
21597
|
for (A = 0; A < S; A += 1)
|
|
21590
21598
|
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 && (
|
|
21599
|
+
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
21600
|
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
21601
|
for (A = 0; A < S; A += 1)
|
|
21594
21602
|
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,19 +21607,19 @@ var lottie$1 = { exports: {} };
|
|
|
21599
21607
|
if (e.fillColorAnim && e.fc) {
|
|
21600
21608
|
if (I.fc.propType)
|
|
21601
21609
|
for (Y = 0; Y < 3; Y += 1)
|
|
21602
|
-
T.length ?
|
|
21603
|
-
I.fh.propType && (T.length ?
|
|
21610
|
+
T.length ? ee[Y] += (I.fc.v[Y] - ee[Y]) * T[0] : ee[Y] += (I.fc.v[Y] - ee[Y]) * T;
|
|
21611
|
+
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
21612
|
}
|
|
21605
21613
|
}
|
|
21606
21614
|
for (A = 0; A < S; A += 1)
|
|
21607
21615
|
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 && (
|
|
21616
|
+
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
21617
|
if (o.translate(0, -e.ls), o.translate(0, n[1] * q * 0.01 + f, 0), this._pathData.p.v) {
|
|
21610
21618
|
M = (g.point[1] - b.point[1]) / (g.point[0] - b.point[0]);
|
|
21611
|
-
var
|
|
21612
|
-
g.point[0] < b.point[0] && (
|
|
21619
|
+
var ke = Math.atan(M) * 180 / Math.PI;
|
|
21620
|
+
g.point[0] < b.point[0] && (ke += 180), o.rotate(-ke * Math.PI / 180);
|
|
21613
21621
|
}
|
|
21614
|
-
o.translate(N,
|
|
21622
|
+
o.translate(N, G, 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
21623
|
} else {
|
|
21616
21624
|
switch (o.translate(c, f, 0), e.ps && o.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
|
|
21617
21625
|
case 1:
|
|
@@ -21625,7 +21633,7 @@ var lottie$1 = { exports: {} };
|
|
|
21625
21633
|
}
|
|
21626
21634
|
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
21635
|
}
|
|
21628
|
-
l <= u ? (R = new LetterProps(he, te,
|
|
21636
|
+
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
21637
|
}
|
|
21630
21638
|
}
|
|
21631
21639
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -25083,46 +25091,46 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25083
25091
|
const { pageMode: n } = inject(GLOBAL_CONFIG, {
|
|
25084
25092
|
pageMode: "normal"
|
|
25085
25093
|
}), i = ref(!1), a = computed(() => unref(n) !== "design" && e.isAutoScroll), o = ref({}), s = ref(!1), l = computed(() => {
|
|
25086
|
-
const
|
|
25087
|
-
return e.isUseSeq &&
|
|
25094
|
+
const Q = cloneDeep(e.columns);
|
|
25095
|
+
return e.isUseSeq && Q.unshift({
|
|
25088
25096
|
title: e.seqName,
|
|
25089
25097
|
dataIndex: "SEQ",
|
|
25090
25098
|
align: "center",
|
|
25091
25099
|
width: e.seqWidth
|
|
25092
|
-
}), e.isUseAction &&
|
|
25100
|
+
}), e.isUseAction && Q.push({
|
|
25093
25101
|
title: "操作",
|
|
25094
25102
|
dataIndex: "ACTION",
|
|
25095
25103
|
width: e.actionColumnWidth
|
|
25096
|
-
}),
|
|
25104
|
+
}), Q;
|
|
25097
25105
|
}), c = ref(), f = ref(!1), u = usePickComponentStyle(e), x = ref([]), d = computed(() => e.scrollX), y = ref(parseFloat(e.height)), m = () => {
|
|
25098
|
-
let
|
|
25106
|
+
let Q = 0;
|
|
25099
25107
|
switch (e.size) {
|
|
25100
25108
|
case "small":
|
|
25101
|
-
|
|
25109
|
+
Q = 50;
|
|
25102
25110
|
break;
|
|
25103
25111
|
case "middle":
|
|
25104
|
-
|
|
25112
|
+
Q = 53;
|
|
25105
25113
|
break;
|
|
25106
25114
|
default:
|
|
25107
|
-
|
|
25115
|
+
Q = 65;
|
|
25108
25116
|
break;
|
|
25109
25117
|
}
|
|
25110
|
-
return
|
|
25118
|
+
return Q;
|
|
25111
25119
|
}, g = ref(0), w = ref(""), C = ref(0);
|
|
25112
25120
|
watchEffect(() => {
|
|
25113
|
-
var
|
|
25114
|
-
(
|
|
25115
|
-
let
|
|
25121
|
+
var Q;
|
|
25122
|
+
(Q = x.value) != null && Q.length && e.height && setTimeout(() => {
|
|
25123
|
+
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
25124
|
const ce = document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);
|
|
25117
25125
|
let fe = 0;
|
|
25118
|
-
if (ue && (
|
|
25126
|
+
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
25127
|
let se = 0;
|
|
25120
|
-
se = m(), se && (
|
|
25128
|
+
se = m(), se && (re -= se);
|
|
25121
25129
|
}
|
|
25122
|
-
(ae == null ? void 0 : ae.clientHeight) >
|
|
25130
|
+
(ae == null ? void 0 : ae.clientHeight) > re ? y.value = re : y.value = 0, nextTick(() => {
|
|
25123
25131
|
if (fe) {
|
|
25124
25132
|
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 =
|
|
25133
|
+
fe !== ge && unref(y) && (y.value = re + fe - ge);
|
|
25126
25134
|
}
|
|
25127
25135
|
e.isAutoScroll && i.value && setTimeout(() => {
|
|
25128
25136
|
var Ce;
|
|
@@ -25134,22 +25142,22 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25134
25142
|
};
|
|
25135
25143
|
const xe = document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);
|
|
25136
25144
|
if (w.value = (Ce = document.querySelector(`#ecanTable-${e.id} .ant-table`)) == null ? void 0 : Ce.className, xe) {
|
|
25137
|
-
const
|
|
25145
|
+
const we = xe.cloneNode(!0);
|
|
25138
25146
|
xe.style.visibility = "hidden", setTimeout(() => {
|
|
25139
25147
|
ge == null || ge.setAttribute("id", "hiddenTableBody");
|
|
25140
25148
|
}, 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 = ((
|
|
25149
|
+
const Me = document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);
|
|
25150
|
+
if (Me != null && Me.length) {
|
|
25151
|
+
for (const Ue of Me)
|
|
25152
|
+
Ue.append(we.cloneNode(!0));
|
|
25153
|
+
const qe = document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);
|
|
25154
|
+
if (qe != null && qe.length)
|
|
25155
|
+
for (const Ue of qe)
|
|
25156
|
+
p(Ue);
|
|
25157
|
+
const We = document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);
|
|
25158
|
+
We && We.addEventListener("scroll", (Ue) => {
|
|
25159
|
+
var Ke;
|
|
25160
|
+
document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft = ((Ke = Ue == null ? void 0 : Ue.target) == null ? void 0 : Ke.scrollLeft) || 0;
|
|
25153
25161
|
});
|
|
25154
25162
|
}
|
|
25155
25163
|
}
|
|
@@ -25157,127 +25165,127 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25157
25165
|
});
|
|
25158
25166
|
}, 0);
|
|
25159
25167
|
});
|
|
25160
|
-
function p(
|
|
25161
|
-
|
|
25162
|
-
const ue = v(
|
|
25168
|
+
function p(Q) {
|
|
25169
|
+
Q.addEventListener("click", (re) => {
|
|
25170
|
+
const ue = v(re.target).getAttribute("dix");
|
|
25163
25171
|
if (ue) {
|
|
25164
25172
|
const ce = document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ue}"]`);
|
|
25165
25173
|
ce && ce.click();
|
|
25166
25174
|
}
|
|
25167
25175
|
});
|
|
25168
25176
|
}
|
|
25169
|
-
function v(
|
|
25170
|
-
return
|
|
25177
|
+
function v(Q) {
|
|
25178
|
+
return Q.className.includes("ant-table-cell") ? Q : v(Q.parentElement);
|
|
25171
25179
|
}
|
|
25172
|
-
const b = ref([]), E = ref([]), _ = ref([]), k = ref([]), P = ref(0), D = ref(1), M = ref(e.paginationPageSize || 10), F = reactive([]), O = (
|
|
25180
|
+
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
25181
|
let ae = "";
|
|
25174
|
-
return
|
|
25182
|
+
return Q.forEach((ue, ce) => {
|
|
25175
25183
|
const { value: fe, rule: se } = ue;
|
|
25176
|
-
ue.conditions ? ae += `(${O(ue.conditions, ue.join)})` : fe && se && (ae += `value ${se} '${fe}'`), ae += `${ce ===
|
|
25184
|
+
ue.conditions ? ae += `(${O(ue.conditions, ue.join)})` : fe && se && (ae += `value ${se} '${fe}'`), ae += `${ce === Q.length - 1 ? "" : re ? " " + re + " " : ""}`;
|
|
25177
25185
|
}), ae;
|
|
25178
|
-
}, L = (
|
|
25179
|
-
var
|
|
25180
|
-
if (Array.isArray(
|
|
25181
|
-
let ue =
|
|
25186
|
+
}, L = (Q = []) => {
|
|
25187
|
+
var re, ae;
|
|
25188
|
+
if (Array.isArray(Q) && Q.length > 0) {
|
|
25189
|
+
let ue = Q.length;
|
|
25182
25190
|
const ce = e.columnsFixedNum;
|
|
25183
|
-
if (e.dataType === "indicator" && ((
|
|
25191
|
+
if (e.dataType === "indicator" && ((re = unref(l)) != null && re.length) && !unref(l).find((fe) => {
|
|
25184
25192
|
var se;
|
|
25185
25193
|
return (se = fe.children) == null ? void 0 : se.length;
|
|
25186
25194
|
})) {
|
|
25187
25195
|
const { graphicConfig: { indicators: fe = [] } } = e;
|
|
25188
|
-
|
|
25196
|
+
Q.forEach((se, ge) => {
|
|
25189
25197
|
if (unref(l)[ge])
|
|
25190
|
-
for (const
|
|
25191
|
-
["dataIndex", "title"].includes(
|
|
25192
|
-
const xe = fe.find((
|
|
25198
|
+
for (const we in unref(l)[ge])
|
|
25199
|
+
["dataIndex", "title"].includes(we) || (se[we] = unref(l)[ge][we]);
|
|
25200
|
+
const xe = fe.find((we) => we.label === se.title), { showLabel: Ce = "" } = xe || {};
|
|
25193
25201
|
Ce && (se.title = Ce);
|
|
25194
25202
|
});
|
|
25195
25203
|
}
|
|
25196
25204
|
for (let fe = ue - 1; fe >= 0; fe--)
|
|
25197
|
-
(ae =
|
|
25198
|
-
ue =
|
|
25205
|
+
(ae = Q[fe]) != null && ae.isHidden && Q.splice(fe, 1);
|
|
25206
|
+
ue = Q.length;
|
|
25199
25207
|
for (let fe = 0; fe < ue; fe++) {
|
|
25200
|
-
const se =
|
|
25208
|
+
const se = Q[fe];
|
|
25201
25209
|
if (fe < ce ? se.fixed = "left" : se.fixed = !1, e.isSortByFront && se.sorter) {
|
|
25202
|
-
const
|
|
25203
|
-
se.sorter = (
|
|
25210
|
+
const Ye = se.dataIndex;
|
|
25211
|
+
se.sorter = (Je, Ze) => Je[Ye] - Ze[Ye];
|
|
25204
25212
|
}
|
|
25205
25213
|
const {
|
|
25206
25214
|
cellAlign: ge = "center",
|
|
25207
25215
|
cellColor: xe,
|
|
25208
25216
|
dataIndex: Ce,
|
|
25209
|
-
title:
|
|
25210
|
-
tableFilter:
|
|
25211
|
-
headerCellAlign:
|
|
25212
|
-
headerCellColor:
|
|
25213
|
-
overflow:
|
|
25214
|
-
conditions:
|
|
25217
|
+
title: we,
|
|
25218
|
+
tableFilter: Me,
|
|
25219
|
+
headerCellAlign: qe,
|
|
25220
|
+
headerCellColor: We,
|
|
25221
|
+
overflow: Ue,
|
|
25222
|
+
conditions: Ke
|
|
25215
25223
|
} = se;
|
|
25216
|
-
|
|
25224
|
+
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
25225
|
style: {
|
|
25218
25226
|
display: "table-cell",
|
|
25219
25227
|
verticalAlign: "middle",
|
|
25220
25228
|
fontSize: e.headerFontSize,
|
|
25221
25229
|
fontWeight: e.headerFontWeight,
|
|
25222
|
-
textAlign:
|
|
25223
|
-
color:
|
|
25230
|
+
textAlign: qe || "center",
|
|
25231
|
+
color: We || e.headerFontColor,
|
|
25224
25232
|
borderBottomColor: e.borderColor,
|
|
25225
25233
|
backgroundColor: e.headerBackgroundColor
|
|
25226
25234
|
}
|
|
25227
|
-
}), se.customCell = (
|
|
25235
|
+
}), se.customCell = (Ye, Je, Ze) => ({
|
|
25228
25236
|
style: {
|
|
25229
25237
|
textAlign: ge,
|
|
25230
|
-
color: q(
|
|
25238
|
+
color: q(Ze) ? e.linkTextColor : xe || e.cellFontColor,
|
|
25231
25239
|
backgroundColor: e.cellBackgroundColor,
|
|
25232
25240
|
borderBottomColor: e.borderColor
|
|
25233
25241
|
},
|
|
25234
25242
|
class: {
|
|
25235
|
-
highlight: unref(he) ===
|
|
25236
|
-
linkText: q(
|
|
25243
|
+
highlight: unref(he) === Je && e.clickHighlight,
|
|
25244
|
+
linkText: q(Ze)
|
|
25237
25245
|
},
|
|
25238
|
-
dix:
|
|
25246
|
+
dix: Ze.dataIndex + "_" + Je,
|
|
25239
25247
|
onClick: X("click", () => {
|
|
25240
|
-
const Xe = e.id, it =
|
|
25241
|
-
|
|
25248
|
+
const Xe = e.id, it = ee(Xe);
|
|
25249
|
+
Ye = {
|
|
25242
25250
|
dataIndex: Ce,
|
|
25243
|
-
title:
|
|
25244
|
-
...
|
|
25245
|
-
}, Y(Xe, { ...it, type: e.type, RECORD:
|
|
25251
|
+
title: we,
|
|
25252
|
+
...Ye
|
|
25253
|
+
}, Y(Xe, { ...it, type: e.type, RECORD: Ye }), he.value = Je, setTimeout(() => {
|
|
25246
25254
|
if (!e.linkPage && !e.href)
|
|
25247
25255
|
return;
|
|
25248
25256
|
let Qe = !1;
|
|
25249
|
-
(q(
|
|
25257
|
+
(q(Ze) || e.clickTarget !== "cell") && (Qe = !0), Qe && handleJumpLink(e, {
|
|
25250
25258
|
pageMode: unref(n),
|
|
25251
25259
|
getRecordValueByKeyName: te
|
|
25252
25260
|
});
|
|
25253
25261
|
}, 0);
|
|
25254
25262
|
})
|
|
25255
|
-
}),
|
|
25263
|
+
}), Ue === "ellipsis" ? se.ellipsis = !0 : se.ellipsis = !1, Array.isArray(se.children) && L(se.children);
|
|
25256
25264
|
}
|
|
25257
25265
|
}
|
|
25258
25266
|
};
|
|
25259
|
-
function q(
|
|
25260
|
-
let
|
|
25261
|
-
return e.clickTarget === "cell" && e.clickTargetColumns.includes(
|
|
25267
|
+
function q(Q) {
|
|
25268
|
+
let re = !1;
|
|
25269
|
+
return e.clickTarget === "cell" && e.clickTargetColumns.includes(Q.dataIndex) && (re = !0), re;
|
|
25262
25270
|
}
|
|
25263
|
-
const $ = (
|
|
25271
|
+
const $ = (Q = []) => {
|
|
25264
25272
|
var ae;
|
|
25265
|
-
let
|
|
25266
|
-
return (ae = unref(k)) != null && ae.length && (
|
|
25273
|
+
let re = cloneDeep(Q);
|
|
25274
|
+
return (ae = unref(k)) != null && ae.length && (re = cloneDeep(unref(k))), e.isUseSeq && re.unshift({
|
|
25267
25275
|
title: e.seqName,
|
|
25268
25276
|
dataIndex: "SEQ",
|
|
25269
25277
|
align: "center",
|
|
25270
25278
|
width: e.seqWidth
|
|
25271
|
-
}), e.isUseAction &&
|
|
25279
|
+
}), e.isUseAction && re.push({
|
|
25272
25280
|
title: "操作",
|
|
25273
25281
|
dataIndex: "ACTION",
|
|
25274
25282
|
width: e.actionColumnWidth
|
|
25275
|
-
}), L(
|
|
25283
|
+
}), L(re), re;
|
|
25276
25284
|
};
|
|
25277
25285
|
watch(M, () => {
|
|
25278
25286
|
D.value = 1, be(!1);
|
|
25279
|
-
}), watch(c, (
|
|
25280
|
-
f.value = !!
|
|
25287
|
+
}), watch(c, (Q) => {
|
|
25288
|
+
f.value = !!Q;
|
|
25281
25289
|
}), watch(() => [
|
|
25282
25290
|
e.columns,
|
|
25283
25291
|
e.isUseSeq,
|
|
@@ -25296,23 +25304,23 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25296
25304
|
}, {
|
|
25297
25305
|
immediate: !0,
|
|
25298
25306
|
deep: !0
|
|
25299
|
-
}), watch(() => [e.data, e.dataType], ([
|
|
25300
|
-
|
|
25307
|
+
}), watch(() => [e.data, e.dataType], ([Q, re]) => {
|
|
25308
|
+
re === "static" && (E.value = Q);
|
|
25301
25309
|
}, {
|
|
25302
25310
|
immediate: !0
|
|
25303
25311
|
});
|
|
25304
|
-
const I = ref({}), B = (
|
|
25305
|
-
if (Array.isArray(
|
|
25306
|
-
const
|
|
25307
|
-
for (let se = 0; se <
|
|
25308
|
-
const ge =
|
|
25312
|
+
const I = ref({}), B = (Q) => {
|
|
25313
|
+
if (Array.isArray(Q)) {
|
|
25314
|
+
const re = Q.length, ae = F, ue = ae.length, ce = {};
|
|
25315
|
+
for (let se = 0; se < re; se++) {
|
|
25316
|
+
const ge = Q[se];
|
|
25309
25317
|
for (let xe = 0; xe < ue; xe++) {
|
|
25310
25318
|
const Ce = ae[xe];
|
|
25311
25319
|
if (ce[Ce])
|
|
25312
25320
|
ce[Ce].add(ge[Ce]);
|
|
25313
25321
|
else {
|
|
25314
|
-
const
|
|
25315
|
-
|
|
25322
|
+
const we = /* @__PURE__ */ new Set();
|
|
25323
|
+
we.add(ge[Ce]), ce[Ce] = we;
|
|
25316
25324
|
}
|
|
25317
25325
|
}
|
|
25318
25326
|
}
|
|
@@ -25326,24 +25334,24 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25326
25334
|
}
|
|
25327
25335
|
};
|
|
25328
25336
|
watch(() => [e.isReverse, b.value, E.value], () => {
|
|
25329
|
-
const
|
|
25330
|
-
if (B(
|
|
25331
|
-
const { columns: ae, dataSource: ue } = A(cloneDeep(
|
|
25337
|
+
const Q = unref(b), re = unref(E);
|
|
25338
|
+
if (B(re), e.isReverse) {
|
|
25339
|
+
const { columns: ae, dataSource: ue } = A(cloneDeep(Q), cloneDeep(re));
|
|
25332
25340
|
_.value = ae, x.value = ue.map((ce) => ({ key: nanoid(6), ...ce }));
|
|
25333
25341
|
} else
|
|
25334
|
-
_.value =
|
|
25342
|
+
_.value = Q, x.value = re.map((ae) => ({ key: nanoid(6), ...ae }));
|
|
25335
25343
|
}, {
|
|
25336
25344
|
immediate: !0
|
|
25337
25345
|
});
|
|
25338
|
-
const A = (
|
|
25339
|
-
const ae =
|
|
25346
|
+
const A = (Q, re) => {
|
|
25347
|
+
const ae = Q[0], ue = [{
|
|
25340
25348
|
title: ae.title,
|
|
25341
25349
|
dataIndex: "col0",
|
|
25342
25350
|
key: "col0",
|
|
25343
25351
|
align: "center"
|
|
25344
25352
|
}];
|
|
25345
|
-
for (let fe = 0; fe <
|
|
25346
|
-
const se =
|
|
25353
|
+
for (let fe = 0; fe < re.length; fe++) {
|
|
25354
|
+
const se = re[fe], ge = "col" + (fe + 1);
|
|
25347
25355
|
ue.push({
|
|
25348
25356
|
title: se[ae.dataIndex],
|
|
25349
25357
|
dataIndex: ge,
|
|
@@ -25352,10 +25360,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25352
25360
|
});
|
|
25353
25361
|
}
|
|
25354
25362
|
const ce = [];
|
|
25355
|
-
for (let fe = 1; fe <
|
|
25356
|
-
const se =
|
|
25357
|
-
for (let xe = 0; xe <
|
|
25358
|
-
const Ce =
|
|
25363
|
+
for (let fe = 1; fe < Q.length; fe++) {
|
|
25364
|
+
const se = Q[fe], ge = { col0: se.title };
|
|
25365
|
+
for (let xe = 0; xe < re.length; xe++) {
|
|
25366
|
+
const Ce = re[xe];
|
|
25359
25367
|
ge[`col${xe + 1}`] = Ce[se.dataIndex];
|
|
25360
25368
|
}
|
|
25361
25369
|
ce.push(ge);
|
|
@@ -25364,13 +25372,13 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25364
25372
|
columns: ue,
|
|
25365
25373
|
dataSource: ce
|
|
25366
25374
|
};
|
|
25367
|
-
}, S = ref(""), R = (
|
|
25375
|
+
}, S = ref(""), R = (Q) => {
|
|
25368
25376
|
var ue;
|
|
25369
|
-
const { rows:
|
|
25370
|
-
if (P.value = ae, Array.isArray(
|
|
25377
|
+
const { rows: re = [], total: ae = 0 } = ((ue = Q == null ? void 0 : Q.data) == null ? void 0 : ue.data) || {};
|
|
25378
|
+
if (P.value = ae, Array.isArray(re) && (E.value = re), window.config.routerBaseURL.includes("1523545080925487106")) {
|
|
25371
25379
|
const { requestParams: ce = [] } = e, fe = ce.find((se) => se.key === "dataSqlId");
|
|
25372
25380
|
if ((fe == null ? void 0 : fe.value) === "xt_jxzebg") {
|
|
25373
|
-
const se =
|
|
25381
|
+
const se = re.filter((ge) => !ge.绩效总额).map((ge) => ge.ORG_NAME);
|
|
25374
25382
|
se != null && se.length && nextTick(() => {
|
|
25375
25383
|
notification.warning({
|
|
25376
25384
|
message: "提示",
|
|
@@ -25381,23 +25389,23 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25381
25389
|
}
|
|
25382
25390
|
}
|
|
25383
25391
|
i.value = !0;
|
|
25384
|
-
}, T = useRequestData(e), V = async (
|
|
25392
|
+
}, T = useRequestData(e), V = async (Q = !0, re = {}) => {
|
|
25385
25393
|
try {
|
|
25386
|
-
|
|
25394
|
+
Q && (s.value = !0), unref(S) && (re.orderCondition = unref(S)), e.paginationShow && (re = {
|
|
25387
25395
|
pageNum: unref(D),
|
|
25388
25396
|
pageSize: unref(M) || "10",
|
|
25389
25397
|
layer: "1",
|
|
25390
|
-
...
|
|
25398
|
+
...re
|
|
25391
25399
|
});
|
|
25392
|
-
const ae = await T(
|
|
25400
|
+
const ae = await T(re);
|
|
25393
25401
|
R(ae);
|
|
25394
25402
|
} catch (ae) {
|
|
25395
25403
|
console.error(ae);
|
|
25396
25404
|
} finally {
|
|
25397
25405
|
s.value = !1;
|
|
25398
25406
|
}
|
|
25399
|
-
}, U = ({ current:
|
|
25400
|
-
if (D.value =
|
|
25407
|
+
}, U = ({ current: Q }, re, ae) => {
|
|
25408
|
+
if (D.value = Q, ae && Object.keys(ae).length > 0) {
|
|
25401
25409
|
const { field: ue, order: ce } = ae, se = {
|
|
25402
25410
|
ascend: "asc",
|
|
25403
25411
|
descend: "desc"
|
|
@@ -25406,10 +25414,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25406
25414
|
}
|
|
25407
25415
|
e.isSortByFront || be(!1);
|
|
25408
25416
|
}, N = computed(() => {
|
|
25409
|
-
const
|
|
25417
|
+
const Q = e.simple, re = [e.paginationPosition], ae = {};
|
|
25410
25418
|
return e.isShowTotal && (ae.showTotal = (ue) => `共 ${ue} 条数据`), e.paginationShow && {
|
|
25411
|
-
simple:
|
|
25412
|
-
position:
|
|
25419
|
+
simple: Q,
|
|
25420
|
+
position: re,
|
|
25413
25421
|
total: unref(P),
|
|
25414
25422
|
current: unref(D),
|
|
25415
25423
|
pageSize: unref(M) || "10",
|
|
@@ -25417,130 +25425,130 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25417
25425
|
size: "large",
|
|
25418
25426
|
...ae
|
|
25419
25427
|
};
|
|
25420
|
-
}),
|
|
25421
|
-
const { format: ae, retentiondigit: ue, customFormatter: ce, defaultVal: fe } =
|
|
25428
|
+
}), G = (Q) => +Q == 1 ? "是" : +Q == 0 ? "否" : Q, W = (Q, re) => {
|
|
25429
|
+
const { format: ae, retentiondigit: ue, customFormatter: ce, defaultVal: fe } = re;
|
|
25422
25430
|
let se = "";
|
|
25423
25431
|
if (ae == null || ae === "")
|
|
25424
|
-
se =
|
|
25432
|
+
se = Q;
|
|
25425
25433
|
else {
|
|
25426
25434
|
const ge = {
|
|
25427
25435
|
money: formatMoney,
|
|
25428
25436
|
percentage: formatPercentage,
|
|
25429
25437
|
contrast: formatPercentage,
|
|
25430
|
-
boolean:
|
|
25438
|
+
boolean: G,
|
|
25431
25439
|
decimals: formatDecimals,
|
|
25432
25440
|
custom: formatCustom
|
|
25433
25441
|
};
|
|
25434
|
-
ge[ae] || (se = ""), ae === "decimals" ? se = ge[ae](
|
|
25442
|
+
ge[ae] || (se = ""), ae === "decimals" ? se = ge[ae](Q, ue) || "" : ae === "custom" ? se = ge[ae](Q, ce) || "" : se = ge[ae](Q) || "";
|
|
25435
25443
|
}
|
|
25436
25444
|
return se || (se = fe), se;
|
|
25437
|
-
},
|
|
25438
|
-
const { text:
|
|
25445
|
+
}, H = (Q) => Q === "contrast" ? "upDown" : "", K = (Q) => {
|
|
25446
|
+
const { text: re, format: ae, declineColor: ue = "#39cf93", increaseColor: ce = "#ff512e" } = Q;
|
|
25439
25447
|
if (ae === "contrast") {
|
|
25440
25448
|
const fe = {
|
|
25441
25449
|
fontSize: e.fontSize
|
|
25442
|
-
}, se = parseFloat(
|
|
25450
|
+
}, se = parseFloat(re + "");
|
|
25443
25451
|
return se >= 0 ? fe.color = ce : se < 0 && (fe.color = ue), fe;
|
|
25444
25452
|
} else
|
|
25445
25453
|
return {};
|
|
25446
|
-
},
|
|
25447
|
-
const { fontSize:
|
|
25454
|
+
}, j = computed(() => {
|
|
25455
|
+
const { fontSize: Q } = e;
|
|
25448
25456
|
return {
|
|
25449
|
-
width:
|
|
25450
|
-
height:
|
|
25451
|
-
textIndent: `-${parseFloat(
|
|
25457
|
+
width: Q,
|
|
25458
|
+
height: Q,
|
|
25459
|
+
textIndent: `-${parseFloat(Q) * 2}px`,
|
|
25452
25460
|
overflow: "hidden"
|
|
25453
25461
|
};
|
|
25454
|
-
}), J = (
|
|
25455
|
-
const { text:
|
|
25462
|
+
}), J = (Q) => {
|
|
25463
|
+
const { text: re, declineColor: ae = "#39cf93", increaseColor: ue = "#ff512e" } = Q, { fontSize: ce } = e, fe = parseFloat(re + ""), se = {
|
|
25456
25464
|
width: ce,
|
|
25457
25465
|
verticalAlign: "unset"
|
|
25458
25466
|
};
|
|
25459
25467
|
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 (
|
|
25468
|
+
}, Z = (Q) => {
|
|
25469
|
+
const re = parseFloat(Q + "");
|
|
25470
|
+
if (re >= 0)
|
|
25463
25471
|
return goUp;
|
|
25464
|
-
if (
|
|
25472
|
+
if (re < 0)
|
|
25465
25473
|
return goDown;
|
|
25466
|
-
}, X = useEmitEvent(e), { getGlobalModel:
|
|
25474
|
+
}, X = useEmitEvent(e), { getGlobalModel: ee, setGlobalModel: Y, getRecordValueByKeyName: te } = inject(GLOBAL_MODEL, {
|
|
25467
25475
|
// @ts-ignore
|
|
25468
25476
|
// eslint-disable-next-line no-void
|
|
25469
|
-
getGlobalModel: (
|
|
25477
|
+
getGlobalModel: (Q) => {
|
|
25470
25478
|
},
|
|
25471
25479
|
// @ts-ignore
|
|
25472
25480
|
// eslint-disable-next-line no-void
|
|
25473
|
-
setGlobalModel: (
|
|
25481
|
+
setGlobalModel: (Q, re) => {
|
|
25474
25482
|
},
|
|
25475
25483
|
// @ts-ignore
|
|
25476
25484
|
// eslint-disable-next-line no-void
|
|
25477
|
-
getRecordValueByKeyName: (
|
|
25485
|
+
getRecordValueByKeyName: (Q) => {
|
|
25478
25486
|
}
|
|
25479
25487
|
});
|
|
25480
25488
|
Y(e.id, {
|
|
25481
25489
|
type: e.type,
|
|
25482
25490
|
RECORD: ""
|
|
25483
25491
|
});
|
|
25484
|
-
const
|
|
25485
|
-
let ae =
|
|
25492
|
+
const ne = (Q = [], re = []) => {
|
|
25493
|
+
let ae = Q.map((ue) => ({ title: ue, dataIndex: ue, key: ue }));
|
|
25486
25494
|
unref(l).find((ue) => {
|
|
25487
25495
|
var ce;
|
|
25488
25496
|
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 (
|
|
25497
|
+
}) && (ae = cloneDeep(unref(l))), k.value = cloneDeep(ae), b.value = $(ae), E.value = re, i.value = !0;
|
|
25498
|
+
}, ie = (Q) => {
|
|
25499
|
+
var re, ae, ue, ce;
|
|
25500
|
+
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);
|
|
25501
|
+
}, oe = useIndicatorData(e, ie), le = async (Q = !0) => {
|
|
25494
25502
|
try {
|
|
25495
|
-
|
|
25496
|
-
const
|
|
25503
|
+
Q && (s.value = !0);
|
|
25504
|
+
const re = unref(S).split(" "), ae = {};
|
|
25497
25505
|
e.isSortByFront || (ae.sort = {
|
|
25498
|
-
order:
|
|
25499
|
-
field:
|
|
25506
|
+
order: re[1],
|
|
25507
|
+
field: re[0]
|
|
25500
25508
|
});
|
|
25501
25509
|
const ue = await oe(ae);
|
|
25502
25510
|
ie(ue);
|
|
25503
|
-
} catch (
|
|
25504
|
-
console.error(
|
|
25511
|
+
} catch (re) {
|
|
25512
|
+
console.error(re);
|
|
25505
25513
|
} finally {
|
|
25506
25514
|
s.value = !1;
|
|
25507
25515
|
}
|
|
25508
25516
|
}, he = ref(-1), { loadedData: de } = inject(LOADED_DATA, {
|
|
25509
25517
|
loadedData: {}
|
|
25510
25518
|
}), ye = ref(!1);
|
|
25511
|
-
watch(de, (
|
|
25519
|
+
watch(de, (Q) => {
|
|
25512
25520
|
if (e.dataType === "indicator") {
|
|
25513
|
-
const
|
|
25514
|
-
|
|
25521
|
+
const re = getFixedValueDatas(e.graphicConfig);
|
|
25522
|
+
re != null && re.length && (!unref(ye) && canRequestIndicator(e.graphicConfig, Q) ? (ye.value = !0, be()) : canRequestIndicator(e.graphicConfig, Q) || (ye.value = !1));
|
|
25515
25523
|
}
|
|
25516
25524
|
}, {
|
|
25517
25525
|
deep: !0
|
|
25518
25526
|
});
|
|
25519
|
-
const be = (
|
|
25527
|
+
const be = (Q = !0) => {
|
|
25520
25528
|
switch (e.dataType) {
|
|
25521
25529
|
case "request":
|
|
25522
|
-
V(
|
|
25530
|
+
V(Q);
|
|
25523
25531
|
break;
|
|
25524
25532
|
case "indicator":
|
|
25525
|
-
canRequestIndicator(e.graphicConfig, unref(de)) && le(
|
|
25533
|
+
canRequestIndicator(e.graphicConfig, unref(de)) && le(Q);
|
|
25526
25534
|
break;
|
|
25527
25535
|
}
|
|
25528
|
-
},
|
|
25529
|
-
const
|
|
25530
|
-
Y(
|
|
25536
|
+
}, Ee = () => {
|
|
25537
|
+
const Q = e.id, re = ee(Q);
|
|
25538
|
+
Y(Q, { ...re, type: e.type, RECORD: "" });
|
|
25531
25539
|
}, Te = computed(() => {
|
|
25532
|
-
const
|
|
25533
|
-
let
|
|
25540
|
+
const Q = unref(_);
|
|
25541
|
+
let re = 0;
|
|
25534
25542
|
const { subTotalColumn: ae, subTotalName: ue } = e;
|
|
25535
|
-
ae && (
|
|
25543
|
+
ae && (re = Q.findIndex((xe) => xe.dataIndex === ae), re < 0 && (re = 0));
|
|
25536
25544
|
const ce = [];
|
|
25537
25545
|
let fe = 0;
|
|
25538
|
-
for (let xe = 0; xe <
|
|
25539
|
-
const Ce =
|
|
25540
|
-
xe ===
|
|
25546
|
+
for (let xe = 0; xe < Q.length; xe++) {
|
|
25547
|
+
const Ce = Q[xe], { isCalcTotal: we } = Ce;
|
|
25548
|
+
xe === re ? ce.push({
|
|
25541
25549
|
...Ce,
|
|
25542
25550
|
total: ue
|
|
25543
|
-
}) :
|
|
25551
|
+
}) : we ? (ce.push({
|
|
25544
25552
|
...Ce,
|
|
25545
25553
|
index: xe,
|
|
25546
25554
|
total: 0
|
|
@@ -25550,121 +25558,121 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25550
25558
|
}
|
|
25551
25559
|
if (fe === 0)
|
|
25552
25560
|
return [];
|
|
25553
|
-
const se = unref(x), ge =
|
|
25561
|
+
const se = unref(x), ge = Se(ce);
|
|
25554
25562
|
for (let xe = 0; xe < ge.length; xe++) {
|
|
25555
25563
|
const Ce = ge[xe];
|
|
25556
|
-
let
|
|
25557
|
-
const { isCalcTotal:
|
|
25558
|
-
if (
|
|
25559
|
-
for (let
|
|
25560
|
-
const
|
|
25561
|
-
isNaN(
|
|
25564
|
+
let we = 0;
|
|
25565
|
+
const { isCalcTotal: Me, dataIndex: qe } = Ce;
|
|
25566
|
+
if (Me === !0) {
|
|
25567
|
+
for (let We = 0; We < se.length; We++) {
|
|
25568
|
+
const Ke = +se[We][qe];
|
|
25569
|
+
isNaN(Ke) || (we = new Big(we).add(Ke).toNumber());
|
|
25562
25570
|
}
|
|
25563
|
-
Ce.total =
|
|
25571
|
+
Ce.total = we;
|
|
25564
25572
|
}
|
|
25565
25573
|
}
|
|
25566
25574
|
return ge;
|
|
25567
25575
|
});
|
|
25568
|
-
function
|
|
25576
|
+
function Se(Q) {
|
|
25569
25577
|
var ae;
|
|
25570
|
-
const
|
|
25571
|
-
for (const ue of
|
|
25572
|
-
(ae = ue.children) != null && ae.length ?
|
|
25573
|
-
return
|
|
25578
|
+
const re = [];
|
|
25579
|
+
for (const ue of Q)
|
|
25580
|
+
(ae = ue.children) != null && ae.length ? re.push(...Se(ue.children)) : re.push(ue);
|
|
25581
|
+
return re;
|
|
25574
25582
|
}
|
|
25575
|
-
const { setRequest:
|
|
25576
|
-
setRequest: (
|
|
25583
|
+
const { setRequest: ke } = inject(REQUEST_MODEL, {
|
|
25584
|
+
setRequest: (Q) => {
|
|
25577
25585
|
}
|
|
25578
25586
|
});
|
|
25579
|
-
typeof
|
|
25587
|
+
typeof ke == "function" && ke({
|
|
25580
25588
|
id: e.id,
|
|
25581
25589
|
requestFn: be,
|
|
25582
25590
|
sortNum: e.requestSort
|
|
25583
25591
|
}), r({
|
|
25584
25592
|
refreshData: be
|
|
25585
25593
|
});
|
|
25586
|
-
const
|
|
25587
|
-
if (
|
|
25594
|
+
const Ge = (Q = "", re) => useVariablesInText(Q, re), Ve = (Q) => {
|
|
25595
|
+
if (Q !== "event")
|
|
25588
25596
|
return {
|
|
25589
25597
|
self: "_self",
|
|
25590
25598
|
blank: "_blank"
|
|
25591
|
-
}[
|
|
25592
|
-
},
|
|
25593
|
-
|
|
25599
|
+
}[Q];
|
|
25600
|
+
}, pe = (Q, re = "") => {
|
|
25601
|
+
Q === "event" && window.parent.postMessage({
|
|
25594
25602
|
type: "openPage",
|
|
25595
|
-
url:
|
|
25603
|
+
url: re
|
|
25596
25604
|
}, "*");
|
|
25597
|
-
},
|
|
25598
|
-
|
|
25599
|
-
},
|
|
25600
|
-
|
|
25601
|
-
},
|
|
25602
|
-
},
|
|
25603
|
-
const
|
|
25604
|
-
if (typeof
|
|
25605
|
-
let ae = unref(I)[
|
|
25606
|
-
const ue = unref(
|
|
25605
|
+
}, me = (Q, re) => {
|
|
25606
|
+
Q(re.filterCheckboxGroupValue);
|
|
25607
|
+
}, ve = (Q, re) => {
|
|
25608
|
+
Q({ confirm: !0 }), re.filterOptionsInputValue = "", re.filterCheckboxGroupValue = [];
|
|
25609
|
+
}, Ae = () => {
|
|
25610
|
+
}, _e = (Q) => {
|
|
25611
|
+
const re = Q.dataIndex;
|
|
25612
|
+
if (typeof re == "string") {
|
|
25613
|
+
let ae = unref(I)[re];
|
|
25614
|
+
const ue = unref(Q.filterOptionsInputValue).trim();
|
|
25607
25615
|
return Array.isArray(ae) ? (ae = ae.filter((ce) => typeof ce.label == "string" ? ce.label.toLowerCase().includes(ue.toLowerCase()) : !0), ae) : [];
|
|
25608
25616
|
}
|
|
25609
25617
|
return [];
|
|
25610
|
-
},
|
|
25611
|
-
var Ce,
|
|
25612
|
-
const
|
|
25618
|
+
}, Be = async () => {
|
|
25619
|
+
var Ce, we;
|
|
25620
|
+
const Q = "EXPORT_KEY";
|
|
25613
25621
|
message.loading({
|
|
25614
|
-
key:
|
|
25622
|
+
key: Q,
|
|
25615
25623
|
content: "正在导出...",
|
|
25616
25624
|
duration: 0
|
|
25617
25625
|
});
|
|
25618
|
-
let
|
|
25626
|
+
let re = [];
|
|
25619
25627
|
if (e.dataType === "static")
|
|
25620
|
-
|
|
25628
|
+
re = e.data;
|
|
25621
25629
|
else if (e.dataType === "request") {
|
|
25622
|
-
const
|
|
25623
|
-
unref(S) && (
|
|
25624
|
-
const
|
|
25625
|
-
|
|
25630
|
+
const Me = { layer: "1" };
|
|
25631
|
+
unref(S) && (Me.orderCondition = unref(S));
|
|
25632
|
+
const qe = await T(Me);
|
|
25633
|
+
re = ((we = (Ce = qe == null ? void 0 : qe.data) == null ? void 0 : Ce.data) == null ? void 0 : we.rows) || {};
|
|
25626
25634
|
}
|
|
25627
25635
|
const ae = unref(_), ue = [], ce = [];
|
|
25628
|
-
ae == null || ae.forEach((
|
|
25629
|
-
ue.push(
|
|
25636
|
+
ae == null || ae.forEach((Me) => {
|
|
25637
|
+
ue.push(Me.dataIndex), ce.push(Me.title);
|
|
25630
25638
|
});
|
|
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(
|
|
25639
|
+
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" });
|
|
25640
|
+
utils.book_append_sheet(se, xe, "sheet"), writeFile(se, "表格数据.xlsx"), message.success({ key: Q, content: "导出成功" });
|
|
25641
|
+
}, Ne = (Q, re = 2) => {
|
|
25642
|
+
const ae = +Q * 100;
|
|
25643
|
+
return isNaN(ae) || ae <= 0 ? 0 : ae >= 100 ? 100 : ae.toFixed(re);
|
|
25636
25644
|
};
|
|
25637
25645
|
useOnEvent(e, {
|
|
25638
|
-
resetRecord:
|
|
25646
|
+
resetRecord: Ee,
|
|
25639
25647
|
refreshData: be,
|
|
25640
|
-
exportTableData:
|
|
25648
|
+
exportTableData: Be
|
|
25641
25649
|
});
|
|
25642
|
-
const
|
|
25650
|
+
const He = (Q, re) => {
|
|
25643
25651
|
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
|
|
25652
|
+
return e.stripedShow && (ae = re % 2 === 1 ? "table-striped" : null), ae;
|
|
25653
|
+
}, ze = computed(() => {
|
|
25654
|
+
let Q = 0;
|
|
25655
|
+
const { height: re, isPageBottom: ae } = e;
|
|
25656
|
+
return ae && re && (Q = parseFloat(re) - m()), Q ? Q + "px" : "100%";
|
|
25657
|
+
}), Ie = computed(() => {
|
|
25658
|
+
let Q = "#071655";
|
|
25659
|
+
return e.headerBackgroundColor && (Q = "transparent"), Q;
|
|
25660
|
+
}), je = computed(() => {
|
|
25661
|
+
let Q = "#071655";
|
|
25662
|
+
return (e.cellBackgroundColor || e.stripedShow && e.stripedColor) && (Q = "transparent"), Q;
|
|
25663
|
+
}), Fe = computed(() => parseFloat(e.fontSize) + 16), Pe = computed(() => {
|
|
25664
|
+
let Q = "";
|
|
25657
25665
|
const {
|
|
25658
|
-
paginationColor:
|
|
25666
|
+
paginationColor: re,
|
|
25659
25667
|
paginationBgColor: ae,
|
|
25660
25668
|
activePaginationColor: ue,
|
|
25661
25669
|
activePaginationBgColor: ce,
|
|
25662
25670
|
hoverBackgroundColor: fe
|
|
25663
25671
|
} = e;
|
|
25664
|
-
return
|
|
25665
|
-
}),
|
|
25666
|
-
const { conditionCode: ae } =
|
|
25667
|
-
return runCode(ae, { value:
|
|
25672
|
+
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;
|
|
25673
|
+
}), De = (Q, re) => {
|
|
25674
|
+
const { conditionCode: ae } = Q;
|
|
25675
|
+
return runCode(ae, { value: re });
|
|
25668
25676
|
};
|
|
25669
25677
|
return {
|
|
25670
25678
|
x: d,
|
|
@@ -25672,62 +25680,62 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_rende
|
|
|
25672
25680
|
style: u,
|
|
25673
25681
|
pagination: N,
|
|
25674
25682
|
formatFn: W,
|
|
25675
|
-
contrastClass:
|
|
25683
|
+
contrastClass: H,
|
|
25676
25684
|
tableChange: U,
|
|
25677
25685
|
summaryList: Te,
|
|
25678
25686
|
loading: s,
|
|
25679
|
-
onTouchHrefEvent:
|
|
25680
|
-
handleHref:
|
|
25681
|
-
handleHrefTarget:
|
|
25687
|
+
onTouchHrefEvent: pe,
|
|
25688
|
+
handleHref: Ge,
|
|
25689
|
+
handleHrefTarget: Ve,
|
|
25682
25690
|
useRowIndex: he,
|
|
25683
25691
|
tableColumns: _,
|
|
25684
25692
|
tableDataSource: x,
|
|
25685
|
-
useFilterOptions:
|
|
25686
|
-
useSetSelectedKeys:
|
|
25687
|
-
onResetFilter:
|
|
25688
|
-
onSearchFilterOptions:
|
|
25689
|
-
exportTableData:
|
|
25690
|
-
handleProgressText:
|
|
25693
|
+
useFilterOptions: _e,
|
|
25694
|
+
useSetSelectedKeys: me,
|
|
25695
|
+
onResetFilter: ve,
|
|
25696
|
+
onSearchFilterOptions: Ae,
|
|
25697
|
+
exportTableData: Be,
|
|
25698
|
+
handleProgressText: Ne,
|
|
25691
25699
|
pageSizeVisible: f,
|
|
25692
25700
|
pageSize: M,
|
|
25693
25701
|
tableRef: c,
|
|
25694
|
-
rowClassName:
|
|
25695
|
-
tableHeight:
|
|
25696
|
-
tableHeaderBgColor:
|
|
25697
|
-
tableBodyBgColor:
|
|
25702
|
+
rowClassName: He,
|
|
25703
|
+
tableHeight: ze,
|
|
25704
|
+
tableHeaderBgColor: Ie,
|
|
25705
|
+
tableBodyBgColor: je,
|
|
25698
25706
|
getChgStyle: K,
|
|
25699
|
-
chgBoxStyle:
|
|
25707
|
+
chgBoxStyle: j,
|
|
25700
25708
|
getChgBoxImgStyle: J,
|
|
25701
25709
|
getChgBoxImgSrc: Z,
|
|
25702
25710
|
seqIcon1,
|
|
25703
25711
|
seqIcon2,
|
|
25704
25712
|
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) &&
|
|
25713
|
+
iconSize: Fe,
|
|
25714
|
+
containerClass: Pe,
|
|
25715
|
+
getCellStyle: (Q, re) => {
|
|
25716
|
+
const { overflow: ae, conditionCode: ue, attribute: ce } = Q, fe = {};
|
|
25717
|
+
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
25718
|
},
|
|
25711
|
-
isMatchCondition:
|
|
25712
|
-
getAttrImgSrc: (
|
|
25713
|
-
const { attribute:
|
|
25719
|
+
isMatchCondition: De,
|
|
25720
|
+
getAttrImgSrc: (Q) => {
|
|
25721
|
+
const { attribute: re } = Q;
|
|
25714
25722
|
let ae = "";
|
|
25715
|
-
return
|
|
25723
|
+
return re != null && re.icon && (ae = useImagePath(re.icon)), ae;
|
|
25716
25724
|
},
|
|
25717
|
-
getAttrImgStyle: (
|
|
25718
|
-
let
|
|
25719
|
-
return (
|
|
25725
|
+
getAttrImgStyle: (Q) => {
|
|
25726
|
+
let re = {};
|
|
25727
|
+
return (Q == null ? void 0 : Q.cellAlign) === "right" ? re = {
|
|
25720
25728
|
marginRight: "5px"
|
|
25721
|
-
} :
|
|
25729
|
+
} : re = {
|
|
25722
25730
|
position: "absolute",
|
|
25723
25731
|
marginLeft: "5px"
|
|
25724
25732
|
}, {
|
|
25725
25733
|
width: "auto",
|
|
25726
25734
|
height: parseFloat(e.fontSize) + 6 + "px",
|
|
25727
|
-
...
|
|
25735
|
+
...re
|
|
25728
25736
|
};
|
|
25729
25737
|
},
|
|
25730
|
-
getCellText: (
|
|
25738
|
+
getCellText: (Q, re) => Q || Q === 0 ? Q : re == null ? void 0 : re.defaultVal,
|
|
25731
25739
|
autoScrollHeight: g,
|
|
25732
25740
|
autoScrollClass: w,
|
|
25733
25741
|
autoScrollTop: C,
|
|
@@ -26159,49 +26167,49 @@ const _sfc_main$2 = defineComponent({
|
|
|
26159
26167
|
const N = e.symbolImage;
|
|
26160
26168
|
return e.symbolImage ? "image://" + useImagePath(N) : "circle";
|
|
26161
26169
|
}), d = (N) => {
|
|
26162
|
-
let
|
|
26163
|
-
const W =
|
|
26170
|
+
let G = e.tooltipFormatter;
|
|
26171
|
+
const W = G.match(/\{(.+?)\}/g);
|
|
26164
26172
|
if (W == null || W.length === 0)
|
|
26165
|
-
return
|
|
26166
|
-
for (let
|
|
26167
|
-
const K = W[
|
|
26168
|
-
let
|
|
26169
|
-
const J = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, Z =
|
|
26173
|
+
return G;
|
|
26174
|
+
for (let H = 0; H < W.length; H++) {
|
|
26175
|
+
const K = W[H];
|
|
26176
|
+
let j = K.slice(1, -1).trim();
|
|
26177
|
+
const J = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, Z = j.match(J);
|
|
26170
26178
|
for (let X = 0; X < Z.length; X++) {
|
|
26171
|
-
const
|
|
26172
|
-
Y != null && (
|
|
26179
|
+
const ee = Z[X], Y = N[ee];
|
|
26180
|
+
Y != null && (j = j.replace(ee, Y));
|
|
26173
26181
|
}
|
|
26174
|
-
|
|
26182
|
+
G = G.replace(K, j);
|
|
26175
26183
|
}
|
|
26176
|
-
return
|
|
26184
|
+
return G.split(`
|
|
26177
26185
|
`);
|
|
26178
26186
|
}, y = ref(!1), m = ref("");
|
|
26179
26187
|
let g = new AbortController();
|
|
26180
|
-
const w = (N,
|
|
26188
|
+
const w = (N, G) => {
|
|
26181
26189
|
const W = g.signal;
|
|
26182
26190
|
y.value = !0, i.value = N, r({
|
|
26183
26191
|
name: N,
|
|
26184
26192
|
signal: W
|
|
26185
|
-
}).then((
|
|
26186
|
-
var K,
|
|
26187
|
-
if (
|
|
26188
|
-
const J = ((
|
|
26193
|
+
}).then((H) => {
|
|
26194
|
+
var K, j;
|
|
26195
|
+
if (H) {
|
|
26196
|
+
const J = ((j = (K = H == null ? void 0 : H.data) == null ? void 0 : K.data) == null ? void 0 : j.rows) || [];
|
|
26189
26197
|
let Z = "";
|
|
26190
26198
|
for (const X of J) {
|
|
26191
|
-
const
|
|
26192
|
-
if (
|
|
26193
|
-
for (const Y of
|
|
26199
|
+
const ee = d(X) || [];
|
|
26200
|
+
if (ee != null && ee.length)
|
|
26201
|
+
for (const Y of ee)
|
|
26194
26202
|
Z += `<div style="word-break: break-all;white-space: normal;">${Y}</div>`;
|
|
26195
26203
|
}
|
|
26196
|
-
Z = `<div style="max-width:200px;">${Z}</div>`, a.value = Z,
|
|
26204
|
+
Z = `<div style="max-width:200px;">${Z}</div>`, a.value = Z, G(unref(m), Z);
|
|
26197
26205
|
} else
|
|
26198
|
-
W.aborted ? a.value = "Loading" : a.value = N,
|
|
26206
|
+
W.aborted ? a.value = "Loading" : a.value = N, G(unref(m), a.value);
|
|
26199
26207
|
y.value = !1;
|
|
26200
26208
|
});
|
|
26201
26209
|
}, C = ref(), p = computed(() => e.dataType === "request" ? C.value : e.data), v = computed(() => {
|
|
26202
|
-
const N = [], { mapAreaStyleConfig:
|
|
26203
|
-
if (
|
|
26204
|
-
for (const W of
|
|
26210
|
+
const N = [], { mapAreaStyleConfig: G } = e;
|
|
26211
|
+
if (G != null && G.length)
|
|
26212
|
+
for (const W of G)
|
|
26205
26213
|
N.push({
|
|
26206
26214
|
...W,
|
|
26207
26215
|
key: nanoid(6)
|
|
@@ -26209,27 +26217,27 @@ const _sfc_main$2 = defineComponent({
|
|
|
26209
26217
|
return N;
|
|
26210
26218
|
}), b = computed(() => {
|
|
26211
26219
|
const N = [];
|
|
26212
|
-
for (const
|
|
26220
|
+
for (const G of unref(v)) {
|
|
26213
26221
|
let W = "";
|
|
26214
|
-
|
|
26222
|
+
G.value1 && (W += `value ${G.rule1} ${G.value1}`), G.value2 && (W += `${G.value1 ? "&&" : ""} value ${G.rule2} ${G.value2}`), W && N.push({
|
|
26215
26223
|
rule: W,
|
|
26216
|
-
color:
|
|
26217
|
-
key:
|
|
26224
|
+
color: G.color,
|
|
26225
|
+
key: G.key
|
|
26218
26226
|
});
|
|
26219
26227
|
}
|
|
26220
26228
|
return N.reverse();
|
|
26221
26229
|
}), E = computed(() => {
|
|
26222
26230
|
var W;
|
|
26223
|
-
const N = [], { areaStyleKeyName:
|
|
26231
|
+
const N = [], { areaStyleKeyName: G } = e;
|
|
26224
26232
|
if ((W = unref(p)) != null && W.length)
|
|
26225
|
-
for (const
|
|
26226
|
-
const K = G
|
|
26233
|
+
for (const H of unref(p)) {
|
|
26234
|
+
const K = H[G];
|
|
26227
26235
|
if (K || K === 0) {
|
|
26228
|
-
const
|
|
26229
|
-
|
|
26230
|
-
name:
|
|
26236
|
+
const j = unref(b).find((J) => runCode(J.rule, { value: K }));
|
|
26237
|
+
j && N.push({
|
|
26238
|
+
name: H.name,
|
|
26231
26239
|
itemStyle: {
|
|
26232
|
-
areaColor: unref(f).includes(
|
|
26240
|
+
areaColor: unref(f).includes(j.key) ? e.geoItemStyleAreaColor : j.color
|
|
26233
26241
|
}
|
|
26234
26242
|
});
|
|
26235
26243
|
}
|
|
@@ -26237,8 +26245,8 @@ const _sfc_main$2 = defineComponent({
|
|
|
26237
26245
|
return N;
|
|
26238
26246
|
}), _ = computed(() => {
|
|
26239
26247
|
const N = e.geoCenter;
|
|
26240
|
-
let
|
|
26241
|
-
return typeof N == "string" && N !== "" && (
|
|
26248
|
+
let G;
|
|
26249
|
+
return typeof N == "string" && N !== "" && (G = N.split(",")), {
|
|
26242
26250
|
// backgroundColor: unref(background),
|
|
26243
26251
|
tooltip: {
|
|
26244
26252
|
show: !0
|
|
@@ -26258,7 +26266,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
26258
26266
|
geo: {
|
|
26259
26267
|
zoom: e.geoZoom,
|
|
26260
26268
|
roam: e.geoRoam,
|
|
26261
|
-
center:
|
|
26269
|
+
center: G,
|
|
26262
26270
|
map: `map-${e.id}`,
|
|
26263
26271
|
tooltip: {
|
|
26264
26272
|
show: e.tooltipShow,
|
|
@@ -26268,33 +26276,33 @@ const _sfc_main$2 = defineComponent({
|
|
|
26268
26276
|
textStyle: {
|
|
26269
26277
|
color: e.tooltipTextStyleColor
|
|
26270
26278
|
},
|
|
26271
|
-
formatter: (W,
|
|
26272
|
-
m.value =
|
|
26273
|
-
const { name:
|
|
26279
|
+
formatter: (W, H, K) => {
|
|
26280
|
+
m.value = H;
|
|
26281
|
+
const { name: j = "" } = W, { requestUrl: J } = e.tooltipRequestData;
|
|
26274
26282
|
if (!J) {
|
|
26275
26283
|
let Z = "", X = e.tooltipFormatter;
|
|
26276
26284
|
X === "" && (X = "{name}:{value}");
|
|
26277
|
-
const
|
|
26278
|
-
return
|
|
26285
|
+
const ee = unref(p).find((Y) => Y.name === j);
|
|
26286
|
+
return ee ? (Z += useVariablesInText(
|
|
26279
26287
|
X,
|
|
26280
26288
|
{
|
|
26281
26289
|
textData: {
|
|
26282
|
-
name:
|
|
26283
|
-
...
|
|
26290
|
+
name: j,
|
|
26291
|
+
...ee
|
|
26284
26292
|
}
|
|
26285
26293
|
},
|
|
26286
26294
|
{
|
|
26287
26295
|
useNewline: !0,
|
|
26288
26296
|
useSpace: !0
|
|
26289
26297
|
}
|
|
26290
|
-
), Z) :
|
|
26298
|
+
), Z) : j;
|
|
26291
26299
|
}
|
|
26292
26300
|
if (unref(y))
|
|
26293
|
-
unref(i) !==
|
|
26301
|
+
unref(i) !== j && (g.abort(), g = new AbortController());
|
|
26294
26302
|
else {
|
|
26295
|
-
if (unref(i) ===
|
|
26303
|
+
if (unref(i) === j)
|
|
26296
26304
|
return unref(a);
|
|
26297
|
-
w(
|
|
26305
|
+
w(j, K);
|
|
26298
26306
|
}
|
|
26299
26307
|
return "Loading";
|
|
26300
26308
|
}
|
|
@@ -26356,12 +26364,12 @@ const _sfc_main$2 = defineComponent({
|
|
|
26356
26364
|
}), k = ref(!1), P = async () => {
|
|
26357
26365
|
var W;
|
|
26358
26366
|
k.value = !1;
|
|
26359
|
-
const N = e.mapJson,
|
|
26367
|
+
const N = e.mapJson, G = `map-${e.id}`;
|
|
26360
26368
|
if (N != null && N.path) {
|
|
26361
|
-
const
|
|
26362
|
-
registerMap(
|
|
26369
|
+
const H = await request(((W = window == null ? void 0 : window.config) == null ? void 0 : W.uploadPath) + N.path);
|
|
26370
|
+
registerMap(G, (H == null ? void 0 : H.data) || {});
|
|
26363
26371
|
} else
|
|
26364
|
-
registerMap(
|
|
26372
|
+
registerMap(G, {});
|
|
26365
26373
|
k.value = !0;
|
|
26366
26374
|
};
|
|
26367
26375
|
watch(() => e.mapJson, () => {
|
|
@@ -26371,14 +26379,14 @@ const _sfc_main$2 = defineComponent({
|
|
|
26371
26379
|
deep: !0
|
|
26372
26380
|
});
|
|
26373
26381
|
const D = async (N) => {
|
|
26374
|
-
var
|
|
26375
|
-
const
|
|
26376
|
-
if (
|
|
26377
|
-
const Z = await request(
|
|
26382
|
+
var H, K, j, J;
|
|
26383
|
+
const G = (K = (H = N == null ? void 0 : N.data) == null ? void 0 : H.data) == null ? void 0 : K.rows, W = `map-${e.id}`;
|
|
26384
|
+
if (G != null && G.path) {
|
|
26385
|
+
const Z = await request(G.path);
|
|
26378
26386
|
registerMap(W, (Z == null ? void 0 : Z.data) || {});
|
|
26379
|
-
} else if (Array.isArray(
|
|
26380
|
-
if (C.value =
|
|
26381
|
-
const Z = await request((J =
|
|
26387
|
+
} else if (Array.isArray(G))
|
|
26388
|
+
if (C.value = G, (j = G[0]) != null && j.mapUrl) {
|
|
26389
|
+
const Z = await request((J = G[0]) == null ? void 0 : J.mapUrl);
|
|
26382
26390
|
registerMap(W, (Z == null ? void 0 : Z.data) || {});
|
|
26383
26391
|
} else
|
|
26384
26392
|
registerMap(W, {});
|
|
@@ -26413,7 +26421,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
26413
26421
|
},
|
|
26414
26422
|
// @ts-ignore
|
|
26415
26423
|
// eslint-disable-next-line no-void
|
|
26416
|
-
setGlobalModel: (N,
|
|
26424
|
+
setGlobalModel: (N, G) => {
|
|
26417
26425
|
}
|
|
26418
26426
|
}), I = useEmitEvent(e)("click", () => {
|
|
26419
26427
|
const N = L(e.id);
|
|
@@ -26436,40 +26444,40 @@ const _sfc_main$2 = defineComponent({
|
|
|
26436
26444
|
}, S = (N = {}) => {
|
|
26437
26445
|
N.componentType === "geo" && N.region ? n.value = N.region : n.value = null;
|
|
26438
26446
|
}, R = computed(() => {
|
|
26439
|
-
const N = {}, { legendTop:
|
|
26440
|
-
return
|
|
26447
|
+
const N = {}, { legendTop: G, legendLeft: W, legendBoxShadow: H } = e;
|
|
26448
|
+
return H && (N.boxShadow = H), G === "bottom" ? N.bottom = 0 : G === "top" && (N.top = 0), W === "left" ? N.left = 0 : W === "right" && (N.right = 0), N;
|
|
26441
26449
|
}), T = computed(() => {
|
|
26442
26450
|
const N = {};
|
|
26443
26451
|
return e.legendOrient === "vertical" && (N.flexDirection = "column"), N;
|
|
26444
26452
|
}), V = computed(() => {
|
|
26445
26453
|
var N;
|
|
26446
26454
|
if ((N = unref(v)) != null && N.length) {
|
|
26447
|
-
const
|
|
26455
|
+
const G = [];
|
|
26448
26456
|
for (const W of unref(v)) {
|
|
26449
|
-
const { value1:
|
|
26450
|
-
|
|
26451
|
-
text: `${
|
|
26457
|
+
const { value1: H, value2: K, rule1: j, rule2: J, color: Z } = W;
|
|
26458
|
+
H && K ? +H < +K ? j.includes(">") && J.includes("<") && G.push({
|
|
26459
|
+
text: `${H} - ${K}`,
|
|
26452
26460
|
color: Z,
|
|
26453
26461
|
key: W.key
|
|
26454
|
-
}) : +
|
|
26455
|
-
text: `${K} - ${
|
|
26462
|
+
}) : +H > +K ? j.includes("<") && J.includes(">") && G.push({
|
|
26463
|
+
text: `${K} - ${H}`,
|
|
26456
26464
|
color: Z,
|
|
26457
26465
|
key: W.key
|
|
26458
|
-
}) : +
|
|
26459
|
-
text: `${
|
|
26466
|
+
}) : +H == +K && G.push({
|
|
26467
|
+
text: `${H} - ${K}`,
|
|
26460
26468
|
color: Z,
|
|
26461
26469
|
key: W.key
|
|
26462
|
-
}) :
|
|
26463
|
-
text: `${
|
|
26470
|
+
}) : H ? G.push({
|
|
26471
|
+
text: `${j} ${H}`,
|
|
26464
26472
|
color: Z,
|
|
26465
26473
|
key: W.key
|
|
26466
|
-
}) : K &&
|
|
26474
|
+
}) : K && G.push({
|
|
26467
26475
|
text: `${J} ${K}`,
|
|
26468
26476
|
color: Z,
|
|
26469
26477
|
key: W.key
|
|
26470
26478
|
});
|
|
26471
26479
|
}
|
|
26472
|
-
return
|
|
26480
|
+
return G;
|
|
26473
26481
|
} else
|
|
26474
26482
|
return [];
|
|
26475
26483
|
});
|
|
@@ -26486,8 +26494,8 @@ const _sfc_main$2 = defineComponent({
|
|
|
26486
26494
|
customClick: A,
|
|
26487
26495
|
onMouseOver: S,
|
|
26488
26496
|
handleToggleVisible: (N) => {
|
|
26489
|
-
const
|
|
26490
|
-
|
|
26497
|
+
const G = unref(f).findIndex((W) => W === N);
|
|
26498
|
+
G >= 0 ? f.value.splice(G, 1) : f.value.push(N);
|
|
26491
26499
|
}
|
|
26492
26500
|
};
|
|
26493
26501
|
}
|
|
@@ -28581,18 +28589,18 @@ var stdin_default$7 = defineComponent({
|
|
|
28581
28589
|
return;
|
|
28582
28590
|
const {
|
|
28583
28591
|
active: N
|
|
28584
|
-
} = o,
|
|
28592
|
+
} = o, G = v(T), W = b(G, V);
|
|
28585
28593
|
if (e.loop) {
|
|
28586
28594
|
if (c[0] && W !== y.value) {
|
|
28587
|
-
const
|
|
28588
|
-
c[0].setOffset(
|
|
28595
|
+
const H = W < y.value;
|
|
28596
|
+
c[0].setOffset(H ? g.value : 0);
|
|
28589
28597
|
}
|
|
28590
28598
|
if (c[u.value - 1] && W !== 0) {
|
|
28591
|
-
const
|
|
28592
|
-
c[u.value - 1].setOffset(
|
|
28599
|
+
const H = W > 0;
|
|
28600
|
+
c[u.value - 1].setOffset(H ? -g.value : 0);
|
|
28593
28601
|
}
|
|
28594
28602
|
}
|
|
28595
|
-
o.active =
|
|
28603
|
+
o.active = G, o.offset = W, U && G !== N && r("change", w.value);
|
|
28596
28604
|
}, _ = () => {
|
|
28597
28605
|
o.swiping = !0, o.active <= -1 ? E({
|
|
28598
28606
|
pace: u.value
|
|
@@ -28625,14 +28633,14 @@ var stdin_default$7 = defineComponent({
|
|
|
28625
28633
|
const V = () => {
|
|
28626
28634
|
var U, N;
|
|
28627
28635
|
if (!isHidden(i)) {
|
|
28628
|
-
const
|
|
28636
|
+
const G = {
|
|
28629
28637
|
width: i.value.offsetWidth,
|
|
28630
28638
|
height: i.value.offsetHeight
|
|
28631
28639
|
};
|
|
28632
|
-
o.rect =
|
|
28640
|
+
o.rect = G, o.width = +((U = e.width) != null ? U : G.width), o.height = +((N = e.height) != null ? N : G.height);
|
|
28633
28641
|
}
|
|
28634
|
-
u.value && (T = Math.min(u.value - 1, T), T === -1 && (T = u.value - 1)), o.active = T, o.swiping = !0, o.offset = b(T), c.forEach((
|
|
28635
|
-
|
|
28642
|
+
u.value && (T = Math.min(u.value - 1, T), T === -1 && (T = u.value - 1)), o.active = T, o.swiping = !0, o.offset = b(T), c.forEach((G) => {
|
|
28643
|
+
G.setOffset(0);
|
|
28636
28644
|
}), F();
|
|
28637
28645
|
};
|
|
28638
28646
|
isHidden(i) ? nextTick().then(V) : V();
|
|
@@ -28653,9 +28661,9 @@ var stdin_default$7 = defineComponent({
|
|
|
28653
28661
|
const T = Date.now() - q, V = d.value / T;
|
|
28654
28662
|
if ((Math.abs(V) > 0.25 || Math.abs(d.value) > x.value / 2) && C.value) {
|
|
28655
28663
|
const N = e.vertical ? l.offsetY.value : l.offsetX.value;
|
|
28656
|
-
let
|
|
28657
|
-
e.loop ?
|
|
28658
|
-
pace:
|
|
28664
|
+
let G = 0;
|
|
28665
|
+
e.loop ? G = N > 0 ? d.value > 0 ? -1 : 1 : 0 : G = -Math[d.value > 0 ? "ceil" : "floor"](d.value / x.value), E({
|
|
28666
|
+
pace: G,
|
|
28659
28667
|
emitChange: !0
|
|
28660
28668
|
});
|
|
28661
28669
|
} else
|
|
@@ -28823,100 +28831,100 @@ var stdin_default$5 = defineComponent({
|
|
|
28823
28831
|
}), v = computed(() => w.length > +e.swipeThreshold || !e.ellipsis || e.shrink), b = computed(() => ({
|
|
28824
28832
|
borderColor: e.color,
|
|
28825
28833
|
background: e.background
|
|
28826
|
-
})), E = (
|
|
28827
|
-
var
|
|
28828
|
-
return (
|
|
28834
|
+
})), E = (G, W) => {
|
|
28835
|
+
var H;
|
|
28836
|
+
return (H = G.name) != null ? H : W;
|
|
28829
28837
|
}, _ = computed(() => {
|
|
28830
|
-
const
|
|
28831
|
-
if (
|
|
28832
|
-
return E(
|
|
28833
|
-
}), k = computed(() => unitToPx(e.offsetTop)), P = computed(() => e.sticky ? k.value + i : 0), D = (
|
|
28834
|
-
const W = f.value,
|
|
28835
|
-
if (!v.value || !W || !
|
|
28838
|
+
const G = w[p.currentIndex];
|
|
28839
|
+
if (G)
|
|
28840
|
+
return E(G, p.currentIndex);
|
|
28841
|
+
}), k = computed(() => unitToPx(e.offsetTop)), P = computed(() => e.sticky ? k.value + i : 0), D = (G) => {
|
|
28842
|
+
const W = f.value, H = m.value;
|
|
28843
|
+
if (!v.value || !W || !H || !H[p.currentIndex])
|
|
28836
28844
|
return;
|
|
28837
|
-
const K =
|
|
28838
|
-
s && s(), s = scrollLeftTo(W,
|
|
28845
|
+
const K = H[p.currentIndex].$el, j = K.offsetLeft - (W.offsetWidth - K.offsetWidth) / 2;
|
|
28846
|
+
s && s(), s = scrollLeftTo(W, j, G ? 0 : +e.duration);
|
|
28839
28847
|
}, M = () => {
|
|
28840
|
-
const
|
|
28848
|
+
const G = p.inited;
|
|
28841
28849
|
nextTick(() => {
|
|
28842
28850
|
const W = m.value;
|
|
28843
28851
|
if (!W || !W[p.currentIndex] || e.type !== "line" || isHidden(c.value))
|
|
28844
28852
|
return;
|
|
28845
|
-
const
|
|
28853
|
+
const H = W[p.currentIndex].$el, {
|
|
28846
28854
|
lineWidth: K,
|
|
28847
|
-
lineHeight:
|
|
28848
|
-
} = e, J =
|
|
28855
|
+
lineHeight: j
|
|
28856
|
+
} = e, J = H.offsetLeft + H.offsetWidth / 2, Z = {
|
|
28849
28857
|
width: addUnit(K),
|
|
28850
28858
|
backgroundColor: e.color,
|
|
28851
28859
|
transform: `translateX(${J}px) translateX(-50%)`
|
|
28852
28860
|
};
|
|
28853
|
-
if (
|
|
28854
|
-
const X = addUnit(
|
|
28861
|
+
if (G && (Z.transitionDuration = `${e.duration}s`), isDef(j)) {
|
|
28862
|
+
const X = addUnit(j);
|
|
28855
28863
|
Z.height = X, Z.borderRadius = X;
|
|
28856
28864
|
}
|
|
28857
28865
|
p.lineStyle = Z;
|
|
28858
28866
|
});
|
|
28859
|
-
}, F = (
|
|
28860
|
-
const W =
|
|
28861
|
-
for (;
|
|
28862
|
-
if (!w[
|
|
28863
|
-
return
|
|
28864
|
-
|
|
28865
|
-
}
|
|
28866
|
-
}, O = (
|
|
28867
|
-
const
|
|
28868
|
-
if (!isDef(
|
|
28867
|
+
}, F = (G) => {
|
|
28868
|
+
const W = G < p.currentIndex ? -1 : 1;
|
|
28869
|
+
for (; G >= 0 && G < w.length; ) {
|
|
28870
|
+
if (!w[G].disabled)
|
|
28871
|
+
return G;
|
|
28872
|
+
G += W;
|
|
28873
|
+
}
|
|
28874
|
+
}, O = (G, W) => {
|
|
28875
|
+
const H = F(G);
|
|
28876
|
+
if (!isDef(H))
|
|
28869
28877
|
return;
|
|
28870
|
-
const K = w[
|
|
28871
|
-
p.currentIndex !==
|
|
28872
|
-
}, L = (
|
|
28873
|
-
const
|
|
28878
|
+
const K = w[H], j = E(K, H), J = p.currentIndex !== null;
|
|
28879
|
+
p.currentIndex !== H && (p.currentIndex = H, W || D(), M()), j !== e.active && (r("update:active", j), J && r("change", j, K.title)), o && !e.scrollspy && setRootScrollTop(Math.ceil(getElementTop(c.value) - k.value));
|
|
28880
|
+
}, L = (G, W) => {
|
|
28881
|
+
const H = w.find((j, J) => E(j, J) === G), K = H ? w.indexOf(H) : 0;
|
|
28874
28882
|
O(K, W);
|
|
28875
|
-
}, q = (
|
|
28883
|
+
}, q = (G = !1) => {
|
|
28876
28884
|
if (e.scrollspy) {
|
|
28877
28885
|
const W = w[p.currentIndex].$el;
|
|
28878
28886
|
if (W && y.value) {
|
|
28879
|
-
const
|
|
28880
|
-
a = !0, l && l(), l = scrollTopTo(y.value,
|
|
28887
|
+
const H = getElementTop(W, y.value) - P.value;
|
|
28888
|
+
a = !0, l && l(), l = scrollTopTo(y.value, H, G ? 0 : +e.duration, () => {
|
|
28881
28889
|
a = !1;
|
|
28882
28890
|
});
|
|
28883
28891
|
}
|
|
28884
28892
|
}
|
|
28885
|
-
}, $ = (
|
|
28893
|
+
}, $ = (G, W, H) => {
|
|
28886
28894
|
const {
|
|
28887
28895
|
title: K,
|
|
28888
|
-
disabled:
|
|
28896
|
+
disabled: j
|
|
28889
28897
|
} = w[W], J = E(w[W], W);
|
|
28890
|
-
|
|
28898
|
+
j || (callInterceptor(e.beforeChange, {
|
|
28891
28899
|
args: [J],
|
|
28892
28900
|
done: () => {
|
|
28893
28901
|
O(W), q();
|
|
28894
28902
|
}
|
|
28895
|
-
}), route(
|
|
28903
|
+
}), route(G)), r("clickTab", {
|
|
28896
28904
|
name: J,
|
|
28897
28905
|
title: K,
|
|
28898
|
-
event:
|
|
28899
|
-
disabled:
|
|
28906
|
+
event: H,
|
|
28907
|
+
disabled: j
|
|
28900
28908
|
});
|
|
28901
|
-
}, I = (
|
|
28902
|
-
o =
|
|
28903
|
-
}, B = (
|
|
28909
|
+
}, I = (G) => {
|
|
28910
|
+
o = G.isFixed, r("scroll", G);
|
|
28911
|
+
}, B = (G) => {
|
|
28904
28912
|
nextTick(() => {
|
|
28905
|
-
L(
|
|
28913
|
+
L(G), q(!0);
|
|
28906
28914
|
});
|
|
28907
28915
|
}, A = () => {
|
|
28908
|
-
for (let
|
|
28916
|
+
for (let G = 0; G < w.length; G++) {
|
|
28909
28917
|
const {
|
|
28910
28918
|
top: W
|
|
28911
|
-
} = useRect(w[
|
|
28919
|
+
} = useRect(w[G].$el);
|
|
28912
28920
|
if (W > P.value)
|
|
28913
|
-
return
|
|
28921
|
+
return G === 0 ? 0 : G - 1;
|
|
28914
28922
|
}
|
|
28915
28923
|
return w.length - 1;
|
|
28916
28924
|
}, S = () => {
|
|
28917
28925
|
if (e.scrollspy && !a) {
|
|
28918
|
-
const
|
|
28919
|
-
O(
|
|
28926
|
+
const G = A();
|
|
28927
|
+
O(G);
|
|
28920
28928
|
}
|
|
28921
28929
|
}, R = () => {
|
|
28922
28930
|
if (e.type === "line" && w.length)
|
|
@@ -28925,15 +28933,15 @@ var stdin_default$5 = defineComponent({
|
|
|
28925
28933
|
style: p.lineStyle
|
|
28926
28934
|
}, null);
|
|
28927
28935
|
}, T = () => {
|
|
28928
|
-
var
|
|
28936
|
+
var G, W, H;
|
|
28929
28937
|
const {
|
|
28930
28938
|
type: K,
|
|
28931
|
-
border:
|
|
28939
|
+
border: j,
|
|
28932
28940
|
sticky: J
|
|
28933
28941
|
} = e, Z = [createVNode("div", {
|
|
28934
28942
|
ref: J ? void 0 : u,
|
|
28935
28943
|
class: [bem$4("wrap"), {
|
|
28936
|
-
[BORDER_TOP_BOTTOM]: K === "line" &&
|
|
28944
|
+
[BORDER_TOP_BOTTOM]: K === "line" && j
|
|
28937
28945
|
}]
|
|
28938
28946
|
}, [createVNode("div", {
|
|
28939
28947
|
ref: f,
|
|
@@ -28944,18 +28952,18 @@ var stdin_default$5 = defineComponent({
|
|
|
28944
28952
|
}]),
|
|
28945
28953
|
style: b.value,
|
|
28946
28954
|
"aria-orientation": "horizontal"
|
|
28947
|
-
}, [(
|
|
28955
|
+
}, [(G = n["nav-left"]) == null ? void 0 : G.call(n), w.map((X) => X.renderTitle($)), R(), (W = n["nav-right"]) == null ? void 0 : W.call(n)])]), (H = n["nav-bottom"]) == null ? void 0 : H.call(n)];
|
|
28948
28956
|
return J ? createVNode("div", {
|
|
28949
28957
|
ref: u
|
|
28950
28958
|
}, [Z]) : Z;
|
|
28951
28959
|
}, V = () => {
|
|
28952
28960
|
M(), nextTick(() => {
|
|
28953
|
-
var
|
|
28954
|
-
D(!0), (W = (
|
|
28961
|
+
var G, W;
|
|
28962
|
+
D(!0), (W = (G = x.value) == null ? void 0 : G.swipeRef.value) == null || W.resize();
|
|
28955
28963
|
});
|
|
28956
28964
|
};
|
|
28957
|
-
watch(() => [e.color, e.duration, e.lineWidth, e.lineHeight], M), watch(windowWidth, V), watch(() => e.active, (
|
|
28958
|
-
|
|
28965
|
+
watch(() => [e.color, e.duration, e.lineWidth, e.lineHeight], M), watch(windowWidth, V), watch(() => e.active, (G) => {
|
|
28966
|
+
G !== _.value && L(G);
|
|
28959
28967
|
}), watch(() => w.length, () => {
|
|
28960
28968
|
p.inited && (L(e.active), M(), nextTick(() => {
|
|
28961
28969
|
D(!0);
|
|
@@ -28965,7 +28973,7 @@ var stdin_default$5 = defineComponent({
|
|
|
28965
28973
|
L(e.active, !0), nextTick(() => {
|
|
28966
28974
|
p.inited = !0, u.value && (i = useRect(u.value).height), D(!0);
|
|
28967
28975
|
});
|
|
28968
|
-
}, N = (
|
|
28976
|
+
}, N = (G, W) => r("rendered", G, W);
|
|
28969
28977
|
return useExpose({
|
|
28970
28978
|
resize: V,
|
|
28971
28979
|
scrollTo: B
|
|
@@ -29002,8 +29010,8 @@ var stdin_default$5 = defineComponent({
|
|
|
29002
29010
|
onChange: O
|
|
29003
29011
|
}, {
|
|
29004
29012
|
default: () => {
|
|
29005
|
-
var
|
|
29006
|
-
return [(
|
|
29013
|
+
var G;
|
|
29014
|
+
return [(G = n.default) == null ? void 0 : G.call(n)];
|
|
29007
29015
|
}
|
|
29008
29016
|
})]);
|
|
29009
29017
|
}
|