@ecan-bi/datav 1.3.84 → 1.3.85
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 +348 -335
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
1
|
+
/*! @ecan-bi/datav@1.3.85 */
|
|
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";
|
|
@@ -2969,7 +2969,7 @@ function requireSha512() {
|
|
|
2969
2969
|
]);
|
|
2970
2970
|
},
|
|
2971
2971
|
_doProcessBlock: function(p, y) {
|
|
2972
|
-
for (var A = this._hash.words, v = A[0], g = A[1], m = A[2], x = A[3], w = A[4], k = A[5], I = A[6], _ = A[7], O = v.high, M = v.low, D = g.high, V = g.low, N = m.high, q = m.low, $ = x.high, P = x.low, B = w.high, E = w.low, S = k.high, F = k.low, T = I.high, R = I.low, G = _.high, H = _.low,
|
|
2972
|
+
for (var A = this._hash.words, v = A[0], g = A[1], m = A[2], x = A[3], w = A[4], k = A[5], I = A[6], _ = A[7], O = v.high, M = v.low, D = g.high, V = g.low, N = m.high, q = m.low, $ = x.high, P = x.low, B = w.high, E = w.low, S = k.high, F = k.low, T = I.high, R = I.low, G = _.high, H = _.low, U = O, W = M, j = D, L = V, Y = N, J = q, ee = $, X = P, Z = B, K = E, te = S, ie = F, ae = T, oe = R, le = G, he = H, de = 0; de < 80; de++) {
|
|
2973
2973
|
var be, Ce, Se = u[de];
|
|
2974
2974
|
if (de < 16)
|
|
2975
2975
|
Ce = Se.high = p[y + de * 2] | 0, be = Se.low = p[y + de * 2 + 1] | 0;
|
|
@@ -2977,10 +2977,10 @@ function requireSha512() {
|
|
|
2977
2977
|
var Pe = u[de - 15], Ee = Pe.high, Te = Pe.low, pe = (Ee >>> 1 | Te << 31) ^ (Ee >>> 8 | Te << 24) ^ Ee >>> 7, ve = (Te >>> 1 | Ee << 31) ^ (Te >>> 8 | Ee << 24) ^ (Te >>> 7 | Ee << 25), me = u[de - 2], _e = me.high, ke = me.low, De = (_e >>> 19 | ke << 13) ^ (_e << 3 | ke >>> 29) ^ _e >>> 6, Fe = (ke >>> 19 | _e << 13) ^ (ke << 3 | _e >>> 29) ^ (ke >>> 6 | _e << 26), Re = u[de - 7], Le = Re.high, Ie = Re.low, Ve = u[de - 16], Oe = Ve.high, Q = Ve.low;
|
|
2978
2978
|
be = ve + Ie, Ce = pe + Le + (be >>> 0 < ve >>> 0 ? 1 : 0), be = be + Fe, Ce = Ce + De + (be >>> 0 < Fe >>> 0 ? 1 : 0), be = be + Q, Ce = Ce + Oe + (be >>> 0 < Q >>> 0 ? 1 : 0), Se.high = Ce, Se.low = be;
|
|
2979
2979
|
}
|
|
2980
|
-
var re = Z & te ^ ~Z & ae, ne = K & ie ^ ~K & oe, ce =
|
|
2981
|
-
le = ae, he = oe, ae = te, oe = ie, te = Z, ie = K, K = X + Ae | 0, Z = ee + Be + (K >>> 0 < X >>> 0 ? 1 : 0) | 0, ee = Y, X = J, Y = j, J = L, j =
|
|
2980
|
+
var re = Z & te ^ ~Z & ae, ne = K & ie ^ ~K & oe, ce = U & j ^ U & Y ^ j & Y, ue = W & L ^ W & J ^ L & J, fe = (U >>> 28 | W << 4) ^ (U << 30 | W >>> 2) ^ (U << 25 | W >>> 7), se = (W >>> 28 | U << 4) ^ (W << 30 | U >>> 2) ^ (W << 25 | U >>> 7), ge = (Z >>> 14 | K << 18) ^ (Z >>> 18 | K << 14) ^ (Z << 23 | K >>> 9), ye = (K >>> 14 | Z << 18) ^ (K >>> 18 | Z << 14) ^ (K << 23 | Z >>> 9), xe = C[de], we = xe.high, Me = xe.low, Ae = he + ye, Be = le + ge + (Ae >>> 0 < he >>> 0 ? 1 : 0), Ae = Ae + ne, Be = Be + re + (Ae >>> 0 < ne >>> 0 ? 1 : 0), Ae = Ae + Me, Be = Be + we + (Ae >>> 0 < Me >>> 0 ? 1 : 0), Ae = Ae + be, Be = Be + Ce + (Ae >>> 0 < be >>> 0 ? 1 : 0), $e = se + ue, ze = fe + ce + ($e >>> 0 < se >>> 0 ? 1 : 0);
|
|
2981
|
+
le = ae, he = oe, ae = te, oe = ie, te = Z, ie = K, K = X + Ae | 0, Z = ee + Be + (K >>> 0 < X >>> 0 ? 1 : 0) | 0, ee = Y, X = J, Y = j, J = L, j = U, L = W, W = Ae + $e | 0, U = Be + ze + (W >>> 0 < Ae >>> 0 ? 1 : 0) | 0;
|
|
2982
2982
|
}
|
|
2983
|
-
M = v.low = M +
|
|
2983
|
+
M = v.low = M + W, v.high = O + U + (M >>> 0 < W >>> 0 ? 1 : 0), V = g.low = V + L, g.high = D + j + (V >>> 0 < L >>> 0 ? 1 : 0), q = m.low = q + J, m.high = N + Y + (q >>> 0 < J >>> 0 ? 1 : 0), P = x.low = P + X, x.high = $ + ee + (P >>> 0 < X >>> 0 ? 1 : 0), E = w.low = E + K, w.high = B + Z + (E >>> 0 < K >>> 0 ? 1 : 0), F = k.low = F + ie, k.high = S + te + (F >>> 0 < ie >>> 0 ? 1 : 0), R = I.low = R + oe, I.high = T + ae + (R >>> 0 < oe >>> 0 ? 1 : 0), H = _.low = H + he, _.high = G + le + (H >>> 0 < he >>> 0 ? 1 : 0);
|
|
2984
2984
|
},
|
|
2985
2985
|
_doFinalize: function() {
|
|
2986
2986
|
var p = this._data, y = p.words, A = this._nDataBytes * 8, v = p.sigBytes * 8;
|
|
@@ -3110,8 +3110,8 @@ function requireSha3() {
|
|
|
3110
3110
|
G.high = H.high, G.low = H.low;
|
|
3111
3111
|
for (var O = 0; O < 5; O++)
|
|
3112
3112
|
for (var V = 0; V < 5; V++) {
|
|
3113
|
-
var E = O + 5 * V, I = g[E],
|
|
3114
|
-
I.high =
|
|
3113
|
+
var E = O + 5 * V, I = g[E], U = p[E], W = p[(O + 1) % 5 + 5 * V], j = p[(O + 2) % 5 + 5 * V];
|
|
3114
|
+
I.high = U.high ^ ~W.high & j.high, I.low = U.low ^ ~W.low & j.low;
|
|
3115
3115
|
}
|
|
3116
3116
|
var I = g[0], L = b[_];
|
|
3117
3117
|
I.high ^= L.high, I.low ^= L.low;
|
|
@@ -3489,11 +3489,11 @@ function requireRipemd160() {
|
|
|
3489
3489
|
var O = I + _, M = k[O];
|
|
3490
3490
|
k[O] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360;
|
|
3491
3491
|
}
|
|
3492
|
-
var D = this._hash.words, V = b.words, N = p.words, q = f.words, $ = d.words, P = C.words, B = u.words, E, S, F, T, R, G, H,
|
|
3493
|
-
G = E = D[0], H = S = D[1],
|
|
3492
|
+
var D = this._hash.words, V = b.words, N = p.words, q = f.words, $ = d.words, P = C.words, B = u.words, E, S, F, T, R, G, H, U, W, j;
|
|
3493
|
+
G = E = D[0], H = S = D[1], U = F = D[2], W = T = D[3], j = R = D[4];
|
|
3494
3494
|
for (var L, _ = 0; _ < 80; _ += 1)
|
|
3495
|
-
L = E + k[I + q[_]] | 0, _ < 16 ? L += A(S, F, T) + V[0] : _ < 32 ? L += v(S, F, T) + V[1] : _ < 48 ? L += g(S, F, T) + V[2] : _ < 64 ? L += m(S, F, T) + V[3] : L += x(S, F, T) + V[4], L = L | 0, L = w(L, P[_]), L = L + R | 0, E = R, R = T, T = w(F, 10), F = S, S = L, L = G + k[I + $[_]] | 0, _ < 16 ? L += x(H,
|
|
3496
|
-
L = D[1] + F +
|
|
3495
|
+
L = E + k[I + q[_]] | 0, _ < 16 ? L += A(S, F, T) + V[0] : _ < 32 ? L += v(S, F, T) + V[1] : _ < 48 ? L += g(S, F, T) + V[2] : _ < 64 ? L += m(S, F, T) + V[3] : L += x(S, F, T) + V[4], L = L | 0, L = w(L, P[_]), L = L + R | 0, E = R, R = T, T = w(F, 10), F = S, S = L, L = G + k[I + $[_]] | 0, _ < 16 ? L += x(H, U, W) + N[0] : _ < 32 ? L += m(H, U, W) + N[1] : _ < 48 ? L += g(H, U, W) + N[2] : _ < 64 ? L += v(H, U, W) + N[3] : L += A(H, U, W) + N[4], L = L | 0, L = w(L, B[_]), L = L + j | 0, G = j, j = W, W = w(U, 10), U = H, H = L;
|
|
3496
|
+
L = D[1] + F + W | 0, D[1] = D[2] + T + j | 0, D[2] = D[3] + R + G | 0, D[3] = D[4] + E + H | 0, D[4] = D[0] + S + U | 0, D[0] = L;
|
|
3497
3497
|
},
|
|
3498
3498
|
_doFinalize: function() {
|
|
3499
3499
|
var k = this._data, I = k.words, _ = this._nDataBytes * 8, O = k.sigBytes * 8;
|
|
@@ -7879,7 +7879,9 @@ const runCode = (e, r) => {
|
|
|
7879
7879
|
// 页面请求模式0常规1数据集
|
|
7880
7880
|
requestType: A,
|
|
7881
7881
|
dataType: v
|
|
7882
|
-
} = e
|
|
7882
|
+
} = e;
|
|
7883
|
+
console.log(e, "props");
|
|
7884
|
+
const { pageMode: g } = inject(GLOBAL_CONFIG, {
|
|
7883
7885
|
pageMode: "normal"
|
|
7884
7886
|
}) || {}, { pageId: m } = inject("templateOperate", {
|
|
7885
7887
|
pageId: ""
|
|
@@ -7903,14 +7905,14 @@ const runCode = (e, r) => {
|
|
|
7903
7905
|
if ((R == null ? void 0 : R.id) === "PARENT" && (R != null && R.prop)) {
|
|
7904
7906
|
const H = (((S = window.config) == null ? void 0 : S.record) || {})[R.prop];
|
|
7905
7907
|
if (H) {
|
|
7906
|
-
const
|
|
7907
|
-
|
|
7908
|
+
const U = H[R.propKey || "value"];
|
|
7909
|
+
U && (["date", "range"].some((j) => lowerCaseIncludes(H == null ? void 0 : H.type, j)) ? V[T] = unref(U).format(H.format || "YYYY-MM-DD") : V[T] = unref(U));
|
|
7908
7910
|
}
|
|
7909
7911
|
continue;
|
|
7910
7912
|
}
|
|
7911
|
-
if (c && r.value.clear(), typeof R == "object" && R != null && R.id) {
|
|
7913
|
+
if (c && e.dataType !== "indicator" && r.value.clear(), typeof R == "object" && R != null && R.id) {
|
|
7912
7914
|
let G = {};
|
|
7913
|
-
const { id: H, prop:
|
|
7915
|
+
const { id: H, prop: U, propKey: W, operate: j } = R;
|
|
7914
7916
|
let L = !1;
|
|
7915
7917
|
try {
|
|
7916
7918
|
JSON.parse(H), L = !0;
|
|
@@ -7918,7 +7920,7 @@ const runCode = (e, r) => {
|
|
|
7918
7920
|
L = !1;
|
|
7919
7921
|
}
|
|
7920
7922
|
H === "THIS" ? G = I(unref(w)) || {} : G = I(H) || {};
|
|
7921
|
-
const Y = unref(G[
|
|
7923
|
+
const Y = unref(G[U]);
|
|
7922
7924
|
let J = null;
|
|
7923
7925
|
if (["date", "range"].some((X) => lowerCaseIncludes(G == null ? void 0 : G.type, X))) {
|
|
7924
7926
|
const { value: X, type: Z, mode: K } = j || {};
|
|
@@ -7931,19 +7933,27 @@ const runCode = (e, r) => {
|
|
|
7931
7933
|
J = unref(Y).subtract(X, K);
|
|
7932
7934
|
break;
|
|
7933
7935
|
}
|
|
7934
|
-
J == null && (J = unref(Y)), J = (J == null ? void 0 : J.format((
|
|
7936
|
+
J == null && (J = unref(Y)), J = (J == null ? void 0 : J.format((W == null ? void 0 : W.trim()) || G.format)) || "";
|
|
7937
|
+
} else if (Object.prototype.toString.call(Y) === "[object Object]")
|
|
7938
|
+
W ? J = Y[W] : J = U ? Y[U] : Y;
|
|
7939
|
+
else if (lowerCaseIncludes(G == null ? void 0 : G.type, "select") && unref(Y) && U && Array.isArray(unref(Y)))
|
|
7940
|
+
J = unref(Y).map((X) => Object.prototype.hasOwnProperty.call(X, U) ? X[U] : X);
|
|
7941
|
+
else if (L) {
|
|
7942
|
+
const X = JSON.parse(H);
|
|
7943
|
+
console.log(X, "urlvalue"), J = X.value;
|
|
7935
7944
|
} else
|
|
7936
|
-
|
|
7945
|
+
J = Y;
|
|
7937
7946
|
V[T] = J;
|
|
7938
7947
|
} else
|
|
7939
|
-
typeof R == "object" && R.id === null && A === 1 ? V[T] = R.propKey : typeof R == "string" && (V[T] = useVariablesInText(R));
|
|
7948
|
+
typeof R == "object" && R.id === null && A === 1 ? (console.log(R.propKey, "value.propKey"), V[T] = R.propKey) : typeof R == "string" && (V[T] = useVariablesInText(R));
|
|
7940
7949
|
}
|
|
7941
7950
|
if (A === 1) {
|
|
7951
|
+
console.log(V, "_params");
|
|
7942
7952
|
const F = Object.entries(V);
|
|
7943
7953
|
y.param = y.param.map((T, R) => ({
|
|
7944
7954
|
...T,
|
|
7945
7955
|
paramKey: F[R][0],
|
|
7946
|
-
defaultValue: F[R][1] || "
|
|
7956
|
+
defaultValue: F[R][1] || ""
|
|
7947
7957
|
})), V = y;
|
|
7948
7958
|
}
|
|
7949
7959
|
if (b === "2" && p !== "{}") {
|
|
@@ -7957,8 +7967,8 @@ const runCode = (e, r) => {
|
|
|
7957
7967
|
if (typeof R == "string") {
|
|
7958
7968
|
const H = R.match(/\${(.+?)\}/g);
|
|
7959
7969
|
if (H != null && H.length) {
|
|
7960
|
-
const
|
|
7961
|
-
|
|
7970
|
+
const U = H[0].slice(2, -1);
|
|
7971
|
+
U && T[U] ? F[G] = T[U] : F[G] = "";
|
|
7962
7972
|
}
|
|
7963
7973
|
} else
|
|
7964
7974
|
N(R);
|
|
@@ -7993,10 +8003,10 @@ const runCode = (e, r) => {
|
|
|
7993
8003
|
if (Object.prototype.toString.call(R) === "[object Object]") {
|
|
7994
8004
|
for (const H in R)
|
|
7995
8005
|
if (typeof R[H] == "string") {
|
|
7996
|
-
const
|
|
7997
|
-
if (
|
|
7998
|
-
const
|
|
7999
|
-
|
|
8006
|
+
const U = R[H].match(/\${(.+?)\}/g);
|
|
8007
|
+
if (U != null && U.length) {
|
|
8008
|
+
const W = U[0].slice(2, -1);
|
|
8009
|
+
W && G[W] ? R[H] = G[W] : R[H] = "";
|
|
8000
8010
|
}
|
|
8001
8011
|
}
|
|
8002
8012
|
}
|
|
@@ -8125,13 +8135,13 @@ const runCode = (e, r) => {
|
|
|
8125
8135
|
return [];
|
|
8126
8136
|
const { interval: E, intervalUnit: S, startTime: F, endTime: T, operate: R, useCurrentTime: G } = B || {};
|
|
8127
8137
|
if (G && ($ = dayjs().subtract(E, S), P = dayjs()), F && ($ = dayjs(F)), T && (P = dayjs(T)), R) {
|
|
8128
|
-
const { type: H, value:
|
|
8138
|
+
const { type: H, value: U, mode: W } = R;
|
|
8129
8139
|
switch (H) {
|
|
8130
8140
|
case "add":
|
|
8131
|
-
$ = $ && $.add(
|
|
8141
|
+
$ = $ && $.add(U, W), P = P && P.add(U, W);
|
|
8132
8142
|
break;
|
|
8133
8143
|
case "minus":
|
|
8134
|
-
$ = $ && $.subtract(
|
|
8144
|
+
$ = $ && $.subtract(U, W), P = P && P.subtract(U, W);
|
|
8135
8145
|
}
|
|
8136
8146
|
}
|
|
8137
8147
|
} else {
|
|
@@ -8216,10 +8226,10 @@ const runCode = (e, r) => {
|
|
|
8216
8226
|
aggregate: R,
|
|
8217
8227
|
distinct: G,
|
|
8218
8228
|
dimByCount: H,
|
|
8219
|
-
dataTo:
|
|
8229
|
+
dataTo: U
|
|
8220
8230
|
} = _;
|
|
8221
|
-
let
|
|
8222
|
-
if (T && (
|
|
8231
|
+
let W;
|
|
8232
|
+
if (T && (W = C(T)), P === "COMPONENT") {
|
|
8223
8233
|
const L = {};
|
|
8224
8234
|
return g(L, E), {
|
|
8225
8235
|
label: M.trim(),
|
|
@@ -8235,14 +8245,14 @@ const runCode = (e, r) => {
|
|
|
8235
8245
|
columnName: D,
|
|
8236
8246
|
location: V,
|
|
8237
8247
|
show: N,
|
|
8238
|
-
calcType:
|
|
8248
|
+
calcType: U === "1" ? "VIEW" : P,
|
|
8239
8249
|
hrpIndexCode: q,
|
|
8240
8250
|
hrpIndexCodeNum: $,
|
|
8241
8251
|
aggregate: R,
|
|
8242
8252
|
builtInFormula: B,
|
|
8243
8253
|
builtInValueSource: E,
|
|
8244
8254
|
formula: F,
|
|
8245
|
-
conditions:
|
|
8255
|
+
conditions: W
|
|
8246
8256
|
};
|
|
8247
8257
|
if (B === "DATE_OFFSET") {
|
|
8248
8258
|
const L = S.split("-");
|
|
@@ -8286,26 +8296,26 @@ const runCode = (e, r) => {
|
|
|
8286
8296
|
for (const R of E) {
|
|
8287
8297
|
const G = getConditions((R == null ? void 0 : R.conditions) || []);
|
|
8288
8298
|
if (G != null && G.length) {
|
|
8289
|
-
const H = G.filter((
|
|
8290
|
-
const
|
|
8291
|
-
return
|
|
8292
|
-
conditionKey:
|
|
8293
|
-
conditionLabel:
|
|
8294
|
-
conditionName:
|
|
8295
|
-
conditionValueType:
|
|
8296
|
-
id:
|
|
8297
|
-
keyName:
|
|
8298
|
-
rule:
|
|
8299
|
+
const H = G.filter((U) => (U == null ? void 0 : U.dataType) === "component").map((U) => {
|
|
8300
|
+
const W = {};
|
|
8301
|
+
return U != null && U.dateFormat && (W.format = U.dateFormat), U.fieldValue === "PARENT" && (W.id = "PARENT", W.keyName = U.modelKey, W.modelKey = U.modelKey, W.prop = U.prop), {
|
|
8302
|
+
conditionKey: U.fieldName,
|
|
8303
|
+
conditionLabel: U.fieldName,
|
|
8304
|
+
conditionName: U.fieldName,
|
|
8305
|
+
conditionValueType: U.fieldType,
|
|
8306
|
+
id: U.componentId,
|
|
8307
|
+
keyName: U.fieldValue,
|
|
8308
|
+
rule: U.rule,
|
|
8299
8309
|
notGlobal: !0,
|
|
8300
|
-
indexCode:
|
|
8301
|
-
typeGuid:
|
|
8302
|
-
indexCodeNum:
|
|
8303
|
-
...
|
|
8310
|
+
indexCode: U.indexCode,
|
|
8311
|
+
typeGuid: U.typeGuid,
|
|
8312
|
+
indexCodeNum: U.indexCodeNum,
|
|
8313
|
+
...W
|
|
8304
8314
|
};
|
|
8305
8315
|
});
|
|
8306
8316
|
if (H != null && H.length)
|
|
8307
|
-
for (const
|
|
8308
|
-
S.find((
|
|
8317
|
+
for (const U of H)
|
|
8318
|
+
S.find((W) => W.keyName === U.keyName) || S.push(U);
|
|
8309
8319
|
}
|
|
8310
8320
|
}
|
|
8311
8321
|
const F = S.length, T = O;
|
|
@@ -8315,18 +8325,18 @@ const runCode = (e, r) => {
|
|
|
8315
8325
|
continue;
|
|
8316
8326
|
const {
|
|
8317
8327
|
id: H,
|
|
8318
|
-
keyName:
|
|
8319
|
-
prop:
|
|
8328
|
+
keyName: U,
|
|
8329
|
+
prop: W,
|
|
8320
8330
|
format: j,
|
|
8321
8331
|
modelKey: L,
|
|
8322
8332
|
dataType: Y = "component",
|
|
8323
8333
|
customValue: J
|
|
8324
8334
|
} = G, ee = p(G);
|
|
8325
|
-
g(ee, H, { prop:
|
|
8335
|
+
g(ee, H, { prop: W, dateFormat: j, modelKey: L, keyName: U }), Y === "" && (ee.fieldValue = J || ""), T.push(ee);
|
|
8326
8336
|
}
|
|
8327
8337
|
for (let R = T.length - 1; R >= 0; R--) {
|
|
8328
8338
|
const G = T[R];
|
|
8329
|
-
G.globalCondition || getConditions(T).find((
|
|
8339
|
+
G.globalCondition || getConditions(T).find((U) => U.alias === G.alias && U.globalCondition) && T.splice(R, 1);
|
|
8330
8340
|
}
|
|
8331
8341
|
return T;
|
|
8332
8342
|
};
|
|
@@ -8422,36 +8432,36 @@ const runCode = (e, r) => {
|
|
|
8422
8432
|
function g(_, O, M) {
|
|
8423
8433
|
const { prop: D = "", dateFormat: V = "", modelKey: N = "", keyName: q = "", operateValue: $, operateMode: P, operateType: B } = M || {}, E = N || q;
|
|
8424
8434
|
if (O === "PARENT" && E && D) {
|
|
8425
|
-
const
|
|
8426
|
-
if (
|
|
8427
|
-
const j = unref(
|
|
8435
|
+
const W = window.config.record;
|
|
8436
|
+
if (W && W[E]) {
|
|
8437
|
+
const j = unref(W[E][D]);
|
|
8428
8438
|
dayjs.isDayjs(j) ? _.fieldValue = j.format(V || "YYYY-MM-DD") : _.fieldValue = j;
|
|
8429
8439
|
}
|
|
8430
8440
|
return;
|
|
8431
8441
|
}
|
|
8432
|
-
const S = s(O) || {}, { value: F, format: T = "YYYY-MM-DD", type: R = "", useCurrentTime: G, RECORD: H } = S || {},
|
|
8442
|
+
const S = s(O) || {}, { value: F, format: T = "YYYY-MM-DD", type: R = "", useCurrentTime: G, RECORD: H } = S || {}, U = V || T;
|
|
8433
8443
|
if (lowerCaseIncludes(S.type, "date")) {
|
|
8434
|
-
let
|
|
8435
|
-
if (G ? F ?
|
|
8444
|
+
let W;
|
|
8445
|
+
if (G ? F ? W = unref(F) : W = dayjs() : W = unref(F), $ && P && B)
|
|
8436
8446
|
switch (B) {
|
|
8437
8447
|
case "add":
|
|
8438
|
-
|
|
8448
|
+
W = W.add($, P);
|
|
8439
8449
|
break;
|
|
8440
8450
|
case "minus":
|
|
8441
|
-
|
|
8451
|
+
W = W.subtract($, P);
|
|
8442
8452
|
break;
|
|
8443
8453
|
}
|
|
8444
|
-
_.fieldValue =
|
|
8454
|
+
_.fieldValue = W == null ? void 0 : W.format(U), _.dateFormat = U;
|
|
8445
8455
|
} else if (R === "ecanRangePicker") {
|
|
8446
|
-
let
|
|
8456
|
+
let W = D;
|
|
8447
8457
|
if (!D) {
|
|
8448
8458
|
const L = q && q.split("-");
|
|
8449
|
-
L != null && L.length && (
|
|
8459
|
+
L != null && L.length && (W = L[L.length - 1]);
|
|
8450
8460
|
}
|
|
8451
|
-
if (!
|
|
8461
|
+
if (!W)
|
|
8452
8462
|
return;
|
|
8453
8463
|
let j = null;
|
|
8454
|
-
if (unref(S[
|
|
8464
|
+
if (unref(S[W]) && (j = dayjs(unref(S[W]))), $ && P && B) {
|
|
8455
8465
|
if ($ === "rangeValue") {
|
|
8456
8466
|
if (S.startTime && S.endTime) {
|
|
8457
8467
|
const L = unref(S.endTime).diff(unref(S.startTime), P) + 1;
|
|
@@ -8472,11 +8482,11 @@ const runCode = (e, r) => {
|
|
|
8472
8482
|
j = j && j.subtract($, P);
|
|
8473
8483
|
}
|
|
8474
8484
|
}
|
|
8475
|
-
if (j && (_.fieldValue = j == null ? void 0 : j.format(
|
|
8476
|
-
const L = getFormatStep(
|
|
8485
|
+
if (j && (_.fieldValue = j == null ? void 0 : j.format(U)), W === "rangeValue" && S.startTime && S.endTime) {
|
|
8486
|
+
const L = getFormatStep(U);
|
|
8477
8487
|
L && (_.fieldValue = unref(S.endTime).diff(unref(S.startTime), L) + 1);
|
|
8478
8488
|
}
|
|
8479
|
-
_.dateFormat =
|
|
8489
|
+
_.dateFormat = U;
|
|
8480
8490
|
} else
|
|
8481
8491
|
lowerCaseIncludes(R, MODEL_KEY_LIST) ? N && H ? _.fieldValue = H[N] : !N && H ? _.fieldValue = H.value : _.fieldValue = unref(F) : _.fieldValue = unref(F);
|
|
8482
8492
|
}
|
|
@@ -8545,8 +8555,8 @@ const runCode = (e, r) => {
|
|
|
8545
8555
|
rightAxisList: R = [],
|
|
8546
8556
|
queryColumnList: G = [],
|
|
8547
8557
|
indicators: H = [],
|
|
8548
|
-
controlList:
|
|
8549
|
-
formFields:
|
|
8558
|
+
controlList: U = [],
|
|
8559
|
+
formFields: W = {},
|
|
8550
8560
|
variableList: j = [],
|
|
8551
8561
|
variableConditions: L = [],
|
|
8552
8562
|
// dataSourceId, // 所属数据源ID
|
|
@@ -8722,7 +8732,7 @@ const runCode = (e, r) => {
|
|
|
8722
8732
|
return;
|
|
8723
8733
|
if ($ === "2" && ae.length === 0)
|
|
8724
8734
|
return;
|
|
8725
|
-
if ($ === "3" && (!te || !
|
|
8735
|
+
if ($ === "3" && (!te || !W.labelField || !W.valueField))
|
|
8726
8736
|
return;
|
|
8727
8737
|
if ($ === "3" && M === "ecanDataSelect" && ae.length === 0)
|
|
8728
8738
|
return;
|
|
@@ -8736,8 +8746,8 @@ const runCode = (e, r) => {
|
|
|
8736
8746
|
ve != null && ve.length && (de = ve[ve.length - 1]);
|
|
8737
8747
|
}
|
|
8738
8748
|
}
|
|
8739
|
-
if (M !== "ecanScatter" && ((Pe = Object.keys(
|
|
8740
|
-
const pe = getConditions(
|
|
8749
|
+
if (M !== "ecanScatter" && ((Pe = Object.keys(W)) != null && Pe.length)) {
|
|
8750
|
+
const pe = getConditions(U).find((me) => me.conditionKey === "parentCode"), ve = {};
|
|
8741
8751
|
if (pe) {
|
|
8742
8752
|
const me = s(pe.id) || {};
|
|
8743
8753
|
if (me != null && me.itemCodes)
|
|
@@ -8757,8 +8767,8 @@ const runCode = (e, r) => {
|
|
|
8757
8767
|
chartType: "normalSelect",
|
|
8758
8768
|
rangeIndexTypeGuid: te,
|
|
8759
8769
|
type: M === "ecanDataSelect" ? "normalSelectData" : "normalSelect",
|
|
8760
|
-
labelField:
|
|
8761
|
-
valueField:
|
|
8770
|
+
labelField: W.labelField,
|
|
8771
|
+
valueField: W.valueField,
|
|
8762
8772
|
pageId: de,
|
|
8763
8773
|
sqlConditions: X,
|
|
8764
8774
|
idxLibMode: "WITH_DATE_DIM_TABLE",
|
|
@@ -9128,10 +9138,10 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9128
9138
|
offEvent: G,
|
|
9129
9139
|
emitEvent: H
|
|
9130
9140
|
});
|
|
9131
|
-
const
|
|
9141
|
+
const U = ref(0);
|
|
9132
9142
|
provide(GLOBAL_TOKEN, {
|
|
9133
9143
|
requestToken: () => {
|
|
9134
|
-
|
|
9144
|
+
U.value = unref(U) + 1;
|
|
9135
9145
|
}
|
|
9136
9146
|
});
|
|
9137
9147
|
const j = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), Y = ({ requestFn: K = () => {
|
|
@@ -9163,7 +9173,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9163
9173
|
ae.sort((le, he) => he[0] - le[0]);
|
|
9164
9174
|
const oe = ae.length;
|
|
9165
9175
|
try {
|
|
9166
|
-
e.pageMode !== "design" && unref(
|
|
9176
|
+
e.pageMode !== "design" && unref(U) > 0;
|
|
9167
9177
|
for (let le = 0; le < oe; le++) {
|
|
9168
9178
|
const he = ae[le][1];
|
|
9169
9179
|
await J(he);
|
|
@@ -9304,22 +9314,22 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9304
9314
|
return;
|
|
9305
9315
|
}
|
|
9306
9316
|
const H = +S[G];
|
|
9307
|
-
let
|
|
9317
|
+
let U = 0;
|
|
9308
9318
|
if (isNaN(H))
|
|
9309
9319
|
a.value = S;
|
|
9310
9320
|
else {
|
|
9311
|
-
String(H).includes(".") && (
|
|
9312
|
-
const
|
|
9321
|
+
String(H).includes(".") && (U = ((T = String(H).split(".")[1]) == null ? void 0 : T.length) || 0);
|
|
9322
|
+
const W = Math.abs(H) * Math.pow(10, U), j = String(W).length;
|
|
9313
9323
|
let L = [];
|
|
9314
9324
|
for (let J = 0; J < 5; J++) {
|
|
9315
|
-
const ee = Math.ceil(Math.random() * (
|
|
9325
|
+
const ee = Math.ceil(Math.random() * (W + 1) - 1);
|
|
9316
9326
|
L.includes(ee) || L.push(ee);
|
|
9317
9327
|
}
|
|
9318
9328
|
L.sort((J, ee) => J - ee), L = L.map((J) => {
|
|
9319
9329
|
const ee = String(J).split("").reverse(), X = [];
|
|
9320
9330
|
for (let Z = 0; Z < j; Z++)
|
|
9321
9331
|
ee && ee[Z] ? X.push(ee[Z]) : X.push("0");
|
|
9322
|
-
return
|
|
9332
|
+
return U && X.splice(U, 0, "."), (H < 0 ? "-" : "") + X.reverse().join("");
|
|
9323
9333
|
}), L.push(H);
|
|
9324
9334
|
let Y = 0;
|
|
9325
9335
|
for (const J of L)
|
|
@@ -9390,7 +9400,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9390
9400
|
const S = {};
|
|
9391
9401
|
return e.linkPage && (S.cursor = "pointer", S.userSelect = "none"), S;
|
|
9392
9402
|
}), v = ref(1), g = computed(() => {
|
|
9393
|
-
var
|
|
9403
|
+
var W;
|
|
9394
9404
|
if (unref(n))
|
|
9395
9405
|
return "NaN";
|
|
9396
9406
|
if (!v.value)
|
|
@@ -9399,16 +9409,16 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9399
9409
|
let R = e.text;
|
|
9400
9410
|
R = R == null ? void 0 : R.replace(/\n|\\n/g, "<br/>"), R = R == null ? void 0 : R.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
9401
9411
|
const G = R.match(/\{(.+?)\}/g) || [];
|
|
9402
|
-
let H = "",
|
|
9403
|
-
if (e.exceedConfig === "wrap" ?
|
|
9412
|
+
let H = "", U = "";
|
|
9413
|
+
if (e.exceedConfig === "wrap" ? U = "show-wrap" : e.exceedConfig === "ellipsis" && (U = "show-ellipsis"), G == null || G.length === 0) {
|
|
9404
9414
|
if (R && e.format === "percentage" && !isNaN(+R)) {
|
|
9405
9415
|
const j = parseFloat(R), L = j * 100, Y = m(L.toFixed(2));
|
|
9406
|
-
j >= 0 ? R = `<span class="${
|
|
9416
|
+
j >= 0 ? R = `<span class="${U}" style="color: ${Y || F || "#ED6643"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9407
9417
|
<div class="percentage-img-box">
|
|
9408
9418
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${Y || F || "#ED6643"} ${unref(o)} 0px)`};" src="${goUp}"/>
|
|
9409
9419
|
</div>
|
|
9410
9420
|
<span style="color: ${Y || e.color};${unref(p)}">${Math.abs(+L).toFixed(2)}%</span>
|
|
9411
|
-
</span>` : R = `<span class="${
|
|
9421
|
+
</span>` : R = `<span class="${U}" style="color: ${Y || T || "#6ACB97"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9412
9422
|
<div class="percentage-img-box">
|
|
9413
9423
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${Y || T || "#6ACB97"} ${unref(o)} 0px)`};" src="${goDown}"/>
|
|
9414
9424
|
</div>
|
|
@@ -9418,7 +9428,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9418
9428
|
H = R;
|
|
9419
9429
|
}
|
|
9420
9430
|
for (let j = 0; j < G.length; j++) {
|
|
9421
|
-
const L = G[j], Y = (
|
|
9431
|
+
const L = G[j], Y = (W = L == null ? void 0 : L.slice(1, L.length - 1)) == null ? void 0 : W.trim();
|
|
9422
9432
|
let J = Y;
|
|
9423
9433
|
const ee = Y.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
9424
9434
|
for (let Z = 0; Z < ee.length; Z++) {
|
|
@@ -9439,13 +9449,13 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9439
9449
|
const Z = e.format;
|
|
9440
9450
|
if (Z === "percentage")
|
|
9441
9451
|
if (X = +X, isNaN(X))
|
|
9442
|
-
R = R.replace(L, `<span class="${
|
|
9452
|
+
R = R.replace(L, `<span class="${U}" style="color:${m("0.00") || e.variableColor};font-size:${unref(o)};${unref(p)}">0%</span>`);
|
|
9443
9453
|
else if (X >= 0) {
|
|
9444
9454
|
X = X * 100;
|
|
9445
9455
|
const K = m(X.toFixed(2));
|
|
9446
9456
|
R = R.replace(
|
|
9447
9457
|
L,
|
|
9448
|
-
`<span class="${
|
|
9458
|
+
`<span class="${U}" style="color: ${K || F || "#ED6643"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9449
9459
|
<div class="percentage-img-box">
|
|
9450
9460
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${K || F || "#ED6643"} ${unref(o)} 0px)`};" src="${goUp}"/>
|
|
9451
9461
|
</div>
|
|
@@ -9457,7 +9467,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9457
9467
|
const K = m(X.toFixed(2));
|
|
9458
9468
|
R = R.replace(
|
|
9459
9469
|
L,
|
|
9460
|
-
`<span class="${
|
|
9470
|
+
`<span class="${U}" style="color: ${K || T || "#6ACB97"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9461
9471
|
<div class="percentage-img-box">
|
|
9462
9472
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${K || T || "#6ACB97"} ${unref(o)} 0px)`};" src="${goDown}"/>
|
|
9463
9473
|
</div>
|
|
@@ -9466,15 +9476,15 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9466
9476
|
);
|
|
9467
9477
|
}
|
|
9468
9478
|
else
|
|
9469
|
-
e.format === "percent" ? (X = +X, isNaN(X) || (X = (X * 100).toFixed(2), R = R.replace(L, `<span class="${
|
|
9479
|
+
e.format === "percent" ? (X = +X, isNaN(X) || (X = (X * 100).toFixed(2), R = R.replace(L, `<span class="${U}" style="color:${m(X) || e.variableColor};font-size:${unref(o)};${unref(p)}">${X}%</span>`))) : e.format === "money" ? (X = +X, isNaN(X) || (X = formatMoney(X), R = R.replace(L, `<span class="${U}" style="color:${m(X) || e.variableColor};font-size:${unref(o)};${unref(p)}">${X}</span>`))) : Z === "thousands" ? (X = +X, isNaN(X) || (X = formatThousands(X), R = R.replace(L, `<span class="${U}" style="color:${m(X) || e.variableColor};font-size:${unref(o)};${unref(p)}">${X}</span>`))) : R = R.replace(L, `<span class="${U}" style="color:${m(X) || e.variableColor};font-size:${unref(o)};${unref(p)}">${X}</span>`);
|
|
9470
9480
|
}
|
|
9471
9481
|
}
|
|
9472
|
-
if (H || (H = `<span class="${
|
|
9482
|
+
if (H || (H = `<span class="${U}" style="color: ${m(R)};${unref(p)}">${R}</span>`), e.unitShow && e.unitText) {
|
|
9473
9483
|
const { unitTop: j, unitLeft: L } = e;
|
|
9474
9484
|
let Y = "position:relative;";
|
|
9475
9485
|
j && (Y += `top:${j};`), L && (Y += `margin-left:${L};`), H += `<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${Y};${unref(p)}'>${e.unitText}</span>`;
|
|
9476
9486
|
}
|
|
9477
|
-
return e.exceedConfig && (H = `<span class="${
|
|
9487
|
+
return e.exceedConfig && (H = `<span class="${U}" style="display: inline-block;color: ${m(H)};">${H}</span>`), H.includes("span") || (H = `<span class="${U}" style="color: ${m(H)};">${H}</span>`), H;
|
|
9478
9488
|
});
|
|
9479
9489
|
function m(S) {
|
|
9480
9490
|
let F = "", T = !1;
|
|
@@ -9530,21 +9540,21 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9530
9540
|
const { data: F } = (S == null ? void 0 : S.data) || {};
|
|
9531
9541
|
if (F) {
|
|
9532
9542
|
n.value = !1;
|
|
9533
|
-
const { columns: G = [], rows: H = [] } = ((T = S == null ? void 0 : S.data) == null ? void 0 : T.data) ?? {}, { graphicConfig:
|
|
9534
|
-
let
|
|
9543
|
+
const { columns: G = [], rows: H = [] } = ((T = S == null ? void 0 : S.data) == null ? void 0 : T.data) ?? {}, { graphicConfig: U } = e;
|
|
9544
|
+
let W = {};
|
|
9535
9545
|
if (G.length > 0)
|
|
9536
|
-
if ((R =
|
|
9546
|
+
if ((R = U == null ? void 0 : U.dimensionList) != null && R.length) {
|
|
9537
9547
|
const j = G[0];
|
|
9538
|
-
j && (H != null && H.length) && (
|
|
9548
|
+
j && (H != null && H.length) && (W = {
|
|
9539
9549
|
value: H[0][j]
|
|
9540
9550
|
});
|
|
9541
9551
|
} else {
|
|
9542
9552
|
const j = G.find((L) => !!L);
|
|
9543
|
-
j && (
|
|
9553
|
+
j && (W = {
|
|
9544
9554
|
value: isNaN(H[j]) ? 0 : H[j] || 0
|
|
9545
9555
|
});
|
|
9546
9556
|
}
|
|
9547
|
-
O(
|
|
9557
|
+
O(W == null ? void 0 : W.value), l(W);
|
|
9548
9558
|
} else
|
|
9549
9559
|
n.value = !0, O("NaN"), l({
|
|
9550
9560
|
value: "NaN"
|
|
@@ -10966,7 +10976,7 @@ const __default__$2 = defineComponent({
|
|
|
10966
10976
|
K = K && K.subtract(ae, oe), te = te && te.subtract(ae, oe);
|
|
10967
10977
|
}
|
|
10968
10978
|
}
|
|
10969
|
-
o.value = [K, te], unref(r) &&
|
|
10979
|
+
o.value = [K, te], unref(r) && W();
|
|
10970
10980
|
}
|
|
10971
10981
|
}, {
|
|
10972
10982
|
immediate: !0
|
|
@@ -11046,7 +11056,7 @@ const __default__$2 = defineComponent({
|
|
|
11046
11056
|
}, B = () => {
|
|
11047
11057
|
H(), y.value = "", o.value = [null, null];
|
|
11048
11058
|
}, E = () => {
|
|
11049
|
-
o.value = [dayjs(unref(l).join("-")), dayjs(unref(c).join("-"))], H(unref(o)),
|
|
11059
|
+
o.value = [dayjs(unref(l).join("-")), dayjs(unref(c).join("-"))], H(unref(o)), U(), R(), s.value = !1, V();
|
|
11050
11060
|
}, S = () => {
|
|
11051
11061
|
G(), s.value = !1;
|
|
11052
11062
|
}, F = () => {
|
|
@@ -11070,14 +11080,14 @@ const __default__$2 = defineComponent({
|
|
|
11070
11080
|
function H(L = []) {
|
|
11071
11081
|
l.value = j(L[0] || dayjs()), c.value = j(L[1] || dayjs());
|
|
11072
11082
|
}
|
|
11073
|
-
function
|
|
11083
|
+
function U() {
|
|
11074
11084
|
var J, ee;
|
|
11075
11085
|
const L = (J = unref(l)) != null && J.length ? dayjs(unref(l).join("-")) : "", Y = (ee = unref(c)) != null && ee.length ? dayjs(unref(c).join("-")) : "";
|
|
11076
11086
|
y.value = L && Y && `${L.format(e.format)} 至 ${Y.format(e.format)}`;
|
|
11077
11087
|
}
|
|
11078
|
-
function
|
|
11088
|
+
function W() {
|
|
11079
11089
|
const { limitStartTime: L, limitEndTime: Y, limitInterval: J, isAllowSpanYear: ee } = e;
|
|
11080
|
-
H(unref(o)), L && (f.value = new Date(L), C.value = new Date(L), unref(o)[0].isBefore(dayjs(L)) && (unref(o)[0] = dayjs(L), l.value = j(unref(o)[0]))), Y && (d.value = new Date(Y), u.value = new Date(Y), unref(o)[1].isAfter(dayjs(Y)) && (unref(o)[1] = dayjs(Y), c.value = j(unref(o)[1]))), unref(o).every((X) => X) && (J != null && J.value) && unref(o)[1].diff(unref(o)[0], J.mode) > J.value && (unref(o)[0] = unref(o)[1].subtract(J.value, J.mode), l.value = j(unref(o)[0])), unref(o).every((X) => X) && !ee && unref(o)[0].year() !== unref(o)[1].year() && (unref(o)[0] = dayjs(`${unref(o)[1].year()}-01-01`), l.value = j(unref(o)[0])), R(),
|
|
11090
|
+
H(unref(o)), L && (f.value = new Date(L), C.value = new Date(L), unref(o)[0].isBefore(dayjs(L)) && (unref(o)[0] = dayjs(L), l.value = j(unref(o)[0]))), Y && (d.value = new Date(Y), u.value = new Date(Y), unref(o)[1].isAfter(dayjs(Y)) && (unref(o)[1] = dayjs(Y), c.value = j(unref(o)[1]))), unref(o).every((X) => X) && (J != null && J.value) && unref(o)[1].diff(unref(o)[0], J.mode) > J.value && (unref(o)[0] = unref(o)[1].subtract(J.value, J.mode), l.value = j(unref(o)[0])), unref(o).every((X) => X) && !ee && unref(o)[0].year() !== unref(o)[1].year() && (unref(o)[0] = dayjs(`${unref(o)[1].year()}-01-01`), l.value = j(unref(o)[0])), R(), U();
|
|
11081
11091
|
}
|
|
11082
11092
|
function j(L) {
|
|
11083
11093
|
const Y = [];
|
|
@@ -11456,10 +11466,10 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11456
11466
|
...selectComponentProps
|
|
11457
11467
|
},
|
|
11458
11468
|
setup(e, { expose: r }) {
|
|
11459
|
-
var
|
|
11469
|
+
var U, W, j;
|
|
11460
11470
|
const n = inject("isMobile", !1), i = ref(!1), a = {
|
|
11461
|
-
text: ((
|
|
11462
|
-
value: ((
|
|
11471
|
+
text: ((U = e.dataFieldNames) == null ? void 0 : U.label) || "label",
|
|
11472
|
+
value: ((W = e.dataFieldNames) == null ? void 0 : W.value) || "value"
|
|
11463
11473
|
}, o = ref([]), s = usePickComponentStyle(e), l = () => document.getElementById("ProviderConfig") || document.body, c = ref(e.data || []), f = ref(), d = computed({
|
|
11464
11474
|
get: () => {
|
|
11465
11475
|
var Y;
|
|
@@ -12613,7 +12623,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12613
12623
|
},
|
|
12614
12624
|
setModalModel: (Z, K) => {
|
|
12615
12625
|
}
|
|
12616
|
-
}),
|
|
12626
|
+
}), U = computed(() => {
|
|
12617
12627
|
let Z = e.componentList;
|
|
12618
12628
|
const K = cloneDeep(e.componentList), te = a(), ie = o(), ae = {
|
|
12619
12629
|
containerMap: te,
|
|
@@ -12640,7 +12650,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12640
12650
|
he !== -1 && Z.splice(he, 1);
|
|
12641
12651
|
}
|
|
12642
12652
|
return Z;
|
|
12643
|
-
}),
|
|
12653
|
+
}), W = () => {
|
|
12644
12654
|
const Z = e.id;
|
|
12645
12655
|
let K = [];
|
|
12646
12656
|
const te = e.componentList;
|
|
@@ -12650,7 +12660,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12650
12660
|
L[Z.requestName] = useRequestData(Z);
|
|
12651
12661
|
watch(() => N.value, async (Z) => {
|
|
12652
12662
|
if (Z)
|
|
12653
|
-
k.value = !1, G(e.id),
|
|
12663
|
+
k.value = !1, G(e.id), W(), await nextTick(() => {
|
|
12654
12664
|
O(), window.addEventListener("resize", M), D(), k.value = !0;
|
|
12655
12665
|
}), q();
|
|
12656
12666
|
else {
|
|
@@ -12682,7 +12692,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12682
12692
|
isFullWidth: Y,
|
|
12683
12693
|
wrapClassName: ee,
|
|
12684
12694
|
ready: k,
|
|
12685
|
-
usedComponentList:
|
|
12695
|
+
usedComponentList: U,
|
|
12686
12696
|
isMobile: i,
|
|
12687
12697
|
readyIds: n,
|
|
12688
12698
|
hasOwn,
|
|
@@ -13358,7 +13368,7 @@ const _sfc_main$c = defineComponent({
|
|
|
13358
13368
|
let T = "", R = e.tooltipFormatter;
|
|
13359
13369
|
u = (G = S[0]) == null ? void 0 : G.data, R === "" && (R = "{marker} {a} {c}");
|
|
13360
13370
|
for (let H = 0; H < F; H++) {
|
|
13361
|
-
const { marker:
|
|
13371
|
+
const { marker: U, seriesName: W, name: j, value: L, data: Y } = S[H] || {};
|
|
13362
13372
|
if (H === 0) {
|
|
13363
13373
|
let J = j;
|
|
13364
13374
|
typeof j == "string" && j[0] === "0" && !isNaN(+j) && (J = (+j).toString()), T += `${useValueFormatter(B, J)}<br/>`;
|
|
@@ -13367,10 +13377,10 @@ const _sfc_main$c = defineComponent({
|
|
|
13367
13377
|
R,
|
|
13368
13378
|
{
|
|
13369
13379
|
textData: {
|
|
13370
|
-
marker:
|
|
13380
|
+
marker: U,
|
|
13371
13381
|
name: j,
|
|
13372
13382
|
value: L,
|
|
13373
|
-
a:
|
|
13383
|
+
a: W,
|
|
13374
13384
|
b: j,
|
|
13375
13385
|
c: L || 0,
|
|
13376
13386
|
...Y
|
|
@@ -13566,11 +13576,11 @@ const _sfc_main$c = defineComponent({
|
|
|
13566
13576
|
const T = useTransformChartDataByAttrKey(B, S ? E : null, !0);
|
|
13567
13577
|
c.value = T.dimensions, b.value = T.dataset;
|
|
13568
13578
|
const R = T.dataset, G = [], H = R.length;
|
|
13569
|
-
for (let
|
|
13570
|
-
const
|
|
13571
|
-
e.shadowColor && (
|
|
13579
|
+
for (let U = 0; U < H; U++) {
|
|
13580
|
+
const W = {};
|
|
13581
|
+
e.shadowColor && (W.shadowColor = e.shadowColor, W.shadowBlur = e.shadowBlur, W.shadowOffsetY = e.shadowOffsetY, W.shadowOffsetX = e.shadowOffsetX), G.push({
|
|
13572
13582
|
type: "line",
|
|
13573
|
-
...R[
|
|
13583
|
+
...R[U],
|
|
13574
13584
|
symbolSize: e.symbolSize,
|
|
13575
13585
|
smooth: e.smooth,
|
|
13576
13586
|
areaStyle: {
|
|
@@ -13582,18 +13592,18 @@ const _sfc_main$c = defineComponent({
|
|
|
13582
13592
|
y2: 1,
|
|
13583
13593
|
colorStops: [{
|
|
13584
13594
|
offset: 0,
|
|
13585
|
-
color: e.colors[
|
|
13595
|
+
color: e.colors[U]
|
|
13586
13596
|
}, {
|
|
13587
13597
|
offset: 1,
|
|
13588
13598
|
color: e.areaGradientColor || "transparent"
|
|
13589
13599
|
}],
|
|
13590
13600
|
global: !1
|
|
13591
|
-
} : e.colors[
|
|
13601
|
+
} : e.colors[U],
|
|
13592
13602
|
opacity: e.areaStyleOpacity
|
|
13593
13603
|
},
|
|
13594
13604
|
lineStyle: {
|
|
13595
13605
|
width: e.lineStyleWidth,
|
|
13596
|
-
...
|
|
13606
|
+
...W
|
|
13597
13607
|
},
|
|
13598
13608
|
...unref(g)
|
|
13599
13609
|
});
|
|
@@ -13916,7 +13926,7 @@ const _sfc_main$b = defineComponent({
|
|
|
13916
13926
|
}), a = inject("usedComponentList", []), o = ref(), s = ref(!1), l = ref(!1), c = ref(null), f = ref([]), d = usePickComponentStyle(e), C = ref([]), u = ref(), b = ref({});
|
|
13917
13927
|
let p;
|
|
13918
13928
|
const y = computed(() => s.value ? ZOOM_FONT_SIZE : 12), A = computed(() => {
|
|
13919
|
-
const { gradientShow:
|
|
13929
|
+
const { gradientShow: W, gradientColors: j, gradientOffset: L, barBorderRadius: Y } = e, J = unref(C), ee = J.length, X = [];
|
|
13920
13930
|
for (let Z = 0; Z < ee; Z++) {
|
|
13921
13931
|
const K = {
|
|
13922
13932
|
...J[Z],
|
|
@@ -13953,7 +13963,7 @@ const _sfc_main$b = defineComponent({
|
|
|
13953
13963
|
}
|
|
13954
13964
|
), ie;
|
|
13955
13965
|
}
|
|
13956
|
-
}, K.itemStyle = {},
|
|
13966
|
+
}, K.itemStyle = {}, W && (K.itemStyle = {
|
|
13957
13967
|
color: {
|
|
13958
13968
|
x: e.isUseHorizontalAxis ? 1 : 0,
|
|
13959
13969
|
y: 0,
|
|
@@ -13987,7 +13997,7 @@ const _sfc_main$b = defineComponent({
|
|
|
13987
13997
|
}
|
|
13988
13998
|
return X;
|
|
13989
13999
|
}), v = ref([]), g = ref(!1), m = computed(() => {
|
|
13990
|
-
const
|
|
14000
|
+
const W = e.yAxisLabelFormatter, j = e.xAxisLabelFormatter;
|
|
13991
14001
|
return {
|
|
13992
14002
|
textStyle: {
|
|
13993
14003
|
fontFamily: unref(i)
|
|
@@ -14200,7 +14210,7 @@ const _sfc_main$b = defineComponent({
|
|
|
14200
14210
|
width: e.yAxisLabelWidth,
|
|
14201
14211
|
overflow: e.yAxisLabelOverflow,
|
|
14202
14212
|
formatter(L) {
|
|
14203
|
-
return useValueFormatter(
|
|
14213
|
+
return useValueFormatter(W, L);
|
|
14204
14214
|
}
|
|
14205
14215
|
},
|
|
14206
14216
|
axisLine: {
|
|
@@ -14221,29 +14231,29 @@ const _sfc_main$b = defineComponent({
|
|
|
14221
14231
|
};
|
|
14222
14232
|
}), x = () => {
|
|
14223
14233
|
s.value = !1;
|
|
14224
|
-
}, w = (
|
|
14234
|
+
}, w = (W = [], j = !1) => {
|
|
14225
14235
|
let L = {};
|
|
14226
14236
|
if (e.dataFieldConfigType === "key") {
|
|
14227
14237
|
const Y = j ? e.keyTypeDataFieldNames : null;
|
|
14228
|
-
L = useTransformChartDataByAttrKey(
|
|
14238
|
+
L = useTransformChartDataByAttrKey(W, Y);
|
|
14229
14239
|
} else if (e.dataFieldConfigType === "value") {
|
|
14230
14240
|
const Y = j ? e.valueTypeDataFieldNames : null;
|
|
14231
|
-
L = useTransformChartDataByAttrValue(
|
|
14241
|
+
L = useTransformChartDataByAttrValue(W, Y);
|
|
14232
14242
|
}
|
|
14233
14243
|
C.value = L.dataset, v.value = L.dimensions;
|
|
14234
|
-
}, k = (
|
|
14235
|
-
const J = useTransformChartDataByAttrKey(
|
|
14244
|
+
}, k = (W = [], j, L = !1) => {
|
|
14245
|
+
const J = useTransformChartDataByAttrKey(W, L ? j : null, !0);
|
|
14236
14246
|
e.defaultRangeValue && setDefaultRangeVal({
|
|
14237
14247
|
props: e,
|
|
14238
14248
|
componentList: unref(a),
|
|
14239
14249
|
getGlobalModel: F
|
|
14240
14250
|
}, J), C.value = J.dataset, v.value = J.dimensions;
|
|
14241
|
-
}, I = computed(() => unref(v).map((
|
|
14251
|
+
}, I = computed(() => unref(v).map((W) => {
|
|
14242
14252
|
let j = {};
|
|
14243
|
-
return
|
|
14244
|
-
...
|
|
14253
|
+
return W && typeof W == "object" ? j = {
|
|
14254
|
+
...W
|
|
14245
14255
|
} : j = {
|
|
14246
|
-
value:
|
|
14256
|
+
value: W
|
|
14247
14257
|
}, j;
|
|
14248
14258
|
}));
|
|
14249
14259
|
watch(() => [
|
|
@@ -14254,29 +14264,29 @@ const _sfc_main$b = defineComponent({
|
|
|
14254
14264
|
e.legendHeight,
|
|
14255
14265
|
e.legendTextWidth,
|
|
14256
14266
|
e.legendScroll
|
|
14257
|
-
], ([
|
|
14258
|
-
(e.dataType === "static" || unref(n) === "design") && w(
|
|
14267
|
+
], ([W]) => {
|
|
14268
|
+
(e.dataType === "static" || unref(n) === "design") && w(W);
|
|
14259
14269
|
}, {
|
|
14260
14270
|
immediate: !0,
|
|
14261
14271
|
deep: !0
|
|
14262
14272
|
});
|
|
14263
|
-
const _ = useRequestData(e, o, (
|
|
14273
|
+
const _ = useRequestData(e, o, (W) => {
|
|
14264
14274
|
var j, L;
|
|
14265
|
-
w((L = (j =
|
|
14275
|
+
w((L = (j = W == null ? void 0 : W.data) == null ? void 0 : j.data) == null ? void 0 : L.rows, !0);
|
|
14266
14276
|
}), O = async () => {
|
|
14267
|
-
var
|
|
14277
|
+
var W, j;
|
|
14268
14278
|
try {
|
|
14269
14279
|
g.value = !0;
|
|
14270
14280
|
const L = await _();
|
|
14271
|
-
w((j = (
|
|
14281
|
+
w((j = (W = L == null ? void 0 : L.data) == null ? void 0 : W.data) == null ? void 0 : j.rows, !0);
|
|
14272
14282
|
} catch (L) {
|
|
14273
14283
|
console.error(L);
|
|
14274
14284
|
} finally {
|
|
14275
14285
|
g.value = !1;
|
|
14276
14286
|
}
|
|
14277
|
-
}, M = (
|
|
14287
|
+
}, M = (W) => {
|
|
14278
14288
|
var J;
|
|
14279
|
-
const { columns: j = [], rows: L = [] } = ((J =
|
|
14289
|
+
const { columns: j = [], rows: L = [] } = ((J = W == null ? void 0 : W.data) == null ? void 0 : J.data) ?? {};
|
|
14280
14290
|
let Y;
|
|
14281
14291
|
j.length > 0 && (Y = {
|
|
14282
14292
|
name: j[0],
|
|
@@ -14288,20 +14298,20 @@ const _sfc_main$b = defineComponent({
|
|
|
14288
14298
|
}, D = useIndicatorData(e, o, M), V = async () => {
|
|
14289
14299
|
try {
|
|
14290
14300
|
g.value = !0;
|
|
14291
|
-
const
|
|
14292
|
-
M(
|
|
14293
|
-
} catch (
|
|
14294
|
-
console.error(
|
|
14301
|
+
const W = await D();
|
|
14302
|
+
M(W);
|
|
14303
|
+
} catch (W) {
|
|
14304
|
+
console.error(W);
|
|
14295
14305
|
} finally {
|
|
14296
14306
|
g.value = !1;
|
|
14297
14307
|
}
|
|
14298
14308
|
}, { loadedData: N } = inject(LOADED_DATA, {
|
|
14299
14309
|
loadedData: {}
|
|
14300
14310
|
}), q = ref(!1);
|
|
14301
|
-
watch(N, (
|
|
14311
|
+
watch(N, (W) => {
|
|
14302
14312
|
if (e.dataType === "indicator") {
|
|
14303
14313
|
const j = getFixedValueDatas(e.graphicConfig);
|
|
14304
|
-
j != null && j.length && (!unref(q) && canRequestIndicator(e.graphicConfig,
|
|
14314
|
+
j != null && j.length && (!unref(q) && canRequestIndicator(e.graphicConfig, W) ? (q.value = !0, $()) : canRequestIndicator(e.graphicConfig, W) || (q.value = !1));
|
|
14305
14315
|
}
|
|
14306
14316
|
}, {
|
|
14307
14317
|
deep: !0
|
|
@@ -14315,14 +14325,14 @@ const _sfc_main$b = defineComponent({
|
|
|
14315
14325
|
O();
|
|
14316
14326
|
break;
|
|
14317
14327
|
}
|
|
14318
|
-
}, P = (
|
|
14328
|
+
}, P = (W, j) => !!unref(f)[j.value].value.includes(W), B = async () => {
|
|
14319
14329
|
l.value = !1;
|
|
14320
|
-
const
|
|
14330
|
+
const W = o.value.chart.getOption();
|
|
14321
14331
|
for (let j = 0; j < 7; j++)
|
|
14322
|
-
await E(
|
|
14323
|
-
}, E = (
|
|
14332
|
+
await E(W, j);
|
|
14333
|
+
}, E = (W, j) => new Promise((L) => {
|
|
14324
14334
|
setTimeout(() => {
|
|
14325
|
-
const { series: Y, color: J, xAxis: ee } =
|
|
14335
|
+
const { series: Y, color: J, xAxis: ee } = W, X = o.value.chart, { splitArea: Z = {} } = ee[0] || {};
|
|
14326
14336
|
Y.forEach((K, te) => {
|
|
14327
14337
|
const ie = K.data;
|
|
14328
14338
|
let ae = "";
|
|
@@ -14338,22 +14348,22 @@ const _sfc_main$b = defineComponent({
|
|
|
14338
14348
|
const S = useEmitEvent(e), { getGlobalModel: F, setGlobalModel: T } = inject(GLOBAL_MODEL, {
|
|
14339
14349
|
// @ts-ignore
|
|
14340
14350
|
// eslint-disable-next-line no-void
|
|
14341
|
-
getGlobalModel: (
|
|
14351
|
+
getGlobalModel: (W) => {
|
|
14342
14352
|
},
|
|
14343
14353
|
// @ts-ignore
|
|
14344
14354
|
// eslint-disable-next-line no-void
|
|
14345
|
-
setGlobalModel: (
|
|
14355
|
+
setGlobalModel: (W, j) => {
|
|
14346
14356
|
}
|
|
14347
14357
|
});
|
|
14348
14358
|
T(e.id, {
|
|
14349
14359
|
type: e.type,
|
|
14350
14360
|
RECORD: ""
|
|
14351
14361
|
});
|
|
14352
|
-
const R = S("click", (
|
|
14362
|
+
const R = S("click", (W) => {
|
|
14353
14363
|
const j = F(e.id);
|
|
14354
|
-
T(e.id, { ...j, type: e.type, RECORD: e.tooltipShow ? p :
|
|
14364
|
+
T(e.id, { ...j, type: e.type, RECORD: e.tooltipShow ? p : W.data });
|
|
14355
14365
|
}), { setRequest: G } = inject(REQUEST_MODEL, {
|
|
14356
|
-
setRequest: (
|
|
14366
|
+
setRequest: (W) => {
|
|
14357
14367
|
}
|
|
14358
14368
|
});
|
|
14359
14369
|
typeof G == "function" && G({
|
|
@@ -14362,12 +14372,12 @@ const _sfc_main$b = defineComponent({
|
|
|
14362
14372
|
sortNum: e.requestSort
|
|
14363
14373
|
});
|
|
14364
14374
|
const H = () => {
|
|
14365
|
-
const
|
|
14366
|
-
T(
|
|
14367
|
-
},
|
|
14368
|
-
o.value.chart.containPixel("grid", [
|
|
14375
|
+
const W = e.id, j = F(W);
|
|
14376
|
+
T(W, { ...j, RECORD: "" });
|
|
14377
|
+
}, U = (W) => {
|
|
14378
|
+
o.value.chart.containPixel("grid", [W.offsetX, W.offsetY]) && R();
|
|
14369
14379
|
};
|
|
14370
|
-
return e.tooltipShow ? b.value["zr:click"] =
|
|
14380
|
+
return e.tooltipShow ? b.value["zr:click"] = U : b.value.click = R, useOnEvent(e, {
|
|
14371
14381
|
refreshData: $,
|
|
14372
14382
|
click: R,
|
|
14373
14383
|
resetRecord: H
|
|
@@ -14584,32 +14594,32 @@ const _sfc_main$a = defineComponent({
|
|
|
14584
14594
|
}), a = ref(), o = ref(!1), s = usePickComponentStyle(e), l = ref([]), c = ref(), f = computed(() => o.value ? ZOOM_FONT_SIZE : 12), d = ref(), C = ref(), u = ref(), b = ref(), p = computed(() => {
|
|
14585
14595
|
const { xAxisMarkLineValue: S = [], yAxisMarkLineValue: F = [] } = e, T = S.map((H) => ({ ...H, x: !0 })), R = F.map((H) => ({ ...H, y: !0 })), G = T.concat(R);
|
|
14586
14596
|
if (G != null && G.length) {
|
|
14587
|
-
const H = [],
|
|
14597
|
+
const H = [], U = {
|
|
14588
14598
|
label: {
|
|
14589
14599
|
show: !1
|
|
14590
14600
|
}
|
|
14591
14601
|
};
|
|
14592
|
-
for (const
|
|
14593
|
-
let j =
|
|
14602
|
+
for (const W of G) {
|
|
14603
|
+
let j = W.value;
|
|
14594
14604
|
const L = j.match(/\{(.+?)\}/g);
|
|
14595
14605
|
let Y = "";
|
|
14596
|
-
if (
|
|
14606
|
+
if (W.x ? Y = "xAxis" : W.y && (Y = "yAxis"), L != null && L.length) {
|
|
14597
14607
|
for (const J of L)
|
|
14598
14608
|
j = j.replace(J, J.slice(1, -1));
|
|
14599
14609
|
if (j) {
|
|
14600
14610
|
const J = runCode(j, {
|
|
14601
|
-
max:
|
|
14602
|
-
min:
|
|
14611
|
+
max: W.x ? unref(d) : W.y ? unref(u) : 0,
|
|
14612
|
+
min: W.x ? unref(C) : W.y ? unref(b) : 0
|
|
14603
14613
|
});
|
|
14604
14614
|
isNaN(+J) || H.push({
|
|
14605
14615
|
[Y]: +J,
|
|
14606
|
-
...
|
|
14616
|
+
...U
|
|
14607
14617
|
});
|
|
14608
14618
|
}
|
|
14609
14619
|
} else
|
|
14610
|
-
isNaN(+
|
|
14611
|
-
[Y]:
|
|
14612
|
-
...
|
|
14620
|
+
isNaN(+W.value) || H.push({
|
|
14621
|
+
[Y]: W.value,
|
|
14622
|
+
...U
|
|
14613
14623
|
});
|
|
14614
14624
|
}
|
|
14615
14625
|
return {
|
|
@@ -14657,18 +14667,18 @@ const _sfc_main$a = defineComponent({
|
|
|
14657
14667
|
for (const G in T)
|
|
14658
14668
|
if (G !== "color") {
|
|
14659
14669
|
let H = T[G];
|
|
14660
|
-
const
|
|
14661
|
-
if (
|
|
14662
|
-
for (const
|
|
14663
|
-
H = H.replace(
|
|
14670
|
+
const U = H.match(/\{(.+?)\}/g);
|
|
14671
|
+
if (U != null && U.length) {
|
|
14672
|
+
for (const W of U)
|
|
14673
|
+
H = H.replace(W, W.slice(1, -1));
|
|
14664
14674
|
if (H) {
|
|
14665
|
-
const
|
|
14675
|
+
const W = runCode(H, {
|
|
14666
14676
|
xMax: unref(d),
|
|
14667
14677
|
xMin: unref(C),
|
|
14668
14678
|
yMax: unref(u),
|
|
14669
14679
|
yMin: unref(b)
|
|
14670
14680
|
});
|
|
14671
|
-
isNaN(+
|
|
14681
|
+
isNaN(+W) || y(R, G, W);
|
|
14672
14682
|
}
|
|
14673
14683
|
} else
|
|
14674
14684
|
isNaN(+T[G]) || y(R, G, T[G]);
|
|
@@ -14841,7 +14851,7 @@ const _sfc_main$a = defineComponent({
|
|
|
14841
14851
|
trigger: e.tooltipTrigger,
|
|
14842
14852
|
formatter(T) {
|
|
14843
14853
|
var L;
|
|
14844
|
-
const { marker: R, seriesName: G, componentType: H } = T,
|
|
14854
|
+
const { marker: R, seriesName: G, componentType: H } = T, U = ((L = T == null ? void 0 : T.data) == null ? void 0 : L.record) ?? {}, W = U[unref(w).name], j = U[unref(w).value];
|
|
14845
14855
|
return ["markLine", "markArea"].includes(H) ? "" : useVariablesInText(
|
|
14846
14856
|
e.tooltipFormatter,
|
|
14847
14857
|
{
|
|
@@ -14849,9 +14859,9 @@ const _sfc_main$a = defineComponent({
|
|
|
14849
14859
|
marker: R,
|
|
14850
14860
|
seriesName: G,
|
|
14851
14861
|
a: G,
|
|
14852
|
-
b:
|
|
14862
|
+
b: W,
|
|
14853
14863
|
c: j,
|
|
14854
|
-
...
|
|
14864
|
+
...U
|
|
14855
14865
|
}
|
|
14856
14866
|
},
|
|
14857
14867
|
{
|
|
@@ -15754,11 +15764,11 @@ const _sfc_main$8 = defineComponent({
|
|
|
15754
15764
|
l.value.chart.containPixel("grid", [j.offsetX, j.offsetY]) && G();
|
|
15755
15765
|
};
|
|
15756
15766
|
e.tooltipShow ? u.value["zr:click"] = H : u.value.click = G;
|
|
15757
|
-
const { setRequest:
|
|
15767
|
+
const { setRequest: U } = inject(REQUEST_MODEL, {
|
|
15758
15768
|
setRequest: (j) => {
|
|
15759
15769
|
}
|
|
15760
15770
|
});
|
|
15761
|
-
return typeof
|
|
15771
|
+
return typeof U == "function" && U({
|
|
15762
15772
|
id: e.id,
|
|
15763
15773
|
requestFn: E,
|
|
15764
15774
|
sortNum: e.requestSort
|
|
@@ -15968,7 +15978,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
15968
15978
|
}];
|
|
15969
15979
|
let R = e.colors[E];
|
|
15970
15980
|
if (e.gradientShow) {
|
|
15971
|
-
const { gradientOffset: H, gradientColors:
|
|
15981
|
+
const { gradientOffset: H, gradientColors: U } = e;
|
|
15972
15982
|
R = {
|
|
15973
15983
|
x: 0.7,
|
|
15974
15984
|
y: 0,
|
|
@@ -15979,10 +15989,10 @@ const _sfc_main$7 = defineComponent({
|
|
|
15979
15989
|
color: e.colors[E]
|
|
15980
15990
|
}, {
|
|
15981
15991
|
offset: H,
|
|
15982
|
-
color:
|
|
15992
|
+
color: U[E]
|
|
15983
15993
|
}, {
|
|
15984
15994
|
offset: 1,
|
|
15985
|
-
color:
|
|
15995
|
+
color: U[E]
|
|
15986
15996
|
}]
|
|
15987
15997
|
};
|
|
15988
15998
|
}
|
|
@@ -16009,16 +16019,16 @@ const _sfc_main$7 = defineComponent({
|
|
|
16009
16019
|
width: e.labelWidth,
|
|
16010
16020
|
overflow: e.labelOverflow,
|
|
16011
16021
|
formatter: (H) => {
|
|
16012
|
-
const { data:
|
|
16022
|
+
const { data: U, value: W } = H;
|
|
16013
16023
|
let j = 0, L = "0%";
|
|
16014
|
-
if (
|
|
16015
|
-
for (const Y of
|
|
16024
|
+
if (U)
|
|
16025
|
+
for (const Y of U.value)
|
|
16016
16026
|
j += +Y;
|
|
16017
|
-
return j && (L = `${(
|
|
16027
|
+
return j && (L = `${(W / j * 100).toFixed(2)}%`), useVariablesInText(
|
|
16018
16028
|
e.labelFormatter,
|
|
16019
16029
|
{
|
|
16020
16030
|
textData: {
|
|
16021
|
-
value:
|
|
16031
|
+
value: W,
|
|
16022
16032
|
percent: L
|
|
16023
16033
|
}
|
|
16024
16034
|
},
|
|
@@ -16856,31 +16866,31 @@ const _sfc_main$4 = defineComponent({
|
|
|
16856
16866
|
const E = b(P);
|
|
16857
16867
|
if (_ != null && _.length) {
|
|
16858
16868
|
const { width: T, left: R, height: G } = E;
|
|
16859
|
-
let H = 0,
|
|
16860
|
-
_.forEach((
|
|
16861
|
-
|
|
16869
|
+
let H = 0, U = 0;
|
|
16870
|
+
_.forEach((W, j) => {
|
|
16871
|
+
W.index = j + 1;
|
|
16862
16872
|
const L = nanoid(), Y = cloneDeep(P);
|
|
16863
16873
|
for (const J of Y) {
|
|
16864
16874
|
const ee = N.find((Z) => Z.keyName === J.keyName), X = nanoid();
|
|
16865
|
-
if (J.left = (parseFloat(J.left) + H) * unref(C) + "px", J.top = (parseFloat(J.top) +
|
|
16875
|
+
if (J.left = (parseFloat(J.left) + H) * unref(C) + "px", J.top = (parseFloat(J.top) + U) * unref(C) + "px", J.scale = unref(C), J.id = X, J.keyName = J.name + "_" + X, J.unitId = L, ee != null && ee.fieldName) {
|
|
16866
16876
|
const Z = J.text.match(/\{(.+?)\}/g);
|
|
16867
16877
|
switch (J.type) {
|
|
16868
16878
|
case "ecanText": {
|
|
16869
16879
|
J.data = {
|
|
16870
|
-
value: String(
|
|
16880
|
+
value: String(W[ee.fieldName])
|
|
16871
16881
|
}, Z != null && Z.length || (J.text = "{value}");
|
|
16872
16882
|
break;
|
|
16873
16883
|
}
|
|
16874
16884
|
case "ecanProportion": {
|
|
16875
16885
|
J.data = {
|
|
16876
|
-
percent: String(
|
|
16886
|
+
percent: String(W[ee.fieldName])
|
|
16877
16887
|
}, Z != null && Z.length || (J.text = "{percent}");
|
|
16878
16888
|
break;
|
|
16879
16889
|
}
|
|
16880
16890
|
}
|
|
16881
16891
|
}
|
|
16882
16892
|
}
|
|
16883
|
-
$ &&
|
|
16893
|
+
$ && W.index % $ === 0 ? (H = 0, U += q + G) : H += q + T, O.push(...Y), p.value[L] = W;
|
|
16884
16894
|
}), f.value = {
|
|
16885
16895
|
width: (($ || _.length) * (T + q) + R) * unref(C) + "px",
|
|
16886
16896
|
height: ($ ? Math.ceil(_.length / $) * (q + G) : q + G) * unref(C) + "px"
|
|
@@ -17566,16 +17576,16 @@ var lottie$1 = { exports: {} };
|
|
|
17566
17576
|
E[S].ty === "gr" && P(E[S].it);
|
|
17567
17577
|
}
|
|
17568
17578
|
function B(E) {
|
|
17569
|
-
var S, F, T = E.length, R, G, H,
|
|
17579
|
+
var S, F, T = E.length, R, G, H, U;
|
|
17570
17580
|
for (F = 0; F < T; F += 1) {
|
|
17571
17581
|
if (S = E[F], S.hasMask) {
|
|
17572
|
-
var
|
|
17573
|
-
for (G =
|
|
17574
|
-
if (
|
|
17575
|
-
|
|
17582
|
+
var W = S.masksProperties;
|
|
17583
|
+
for (G = W.length, R = 0; R < G; R += 1)
|
|
17584
|
+
if (W[R].pt.k.i)
|
|
17585
|
+
W[R].pt.k.c = W[R].cl;
|
|
17576
17586
|
else
|
|
17577
|
-
for (
|
|
17578
|
-
|
|
17587
|
+
for (U = W[R].pt.k.length, H = 0; H < U; H += 1)
|
|
17588
|
+
W[R].pt.k[H].s && (W[R].pt.k[H].s[0].c = W[R].cl), W[R].pt.k[H].e && (W[R].pt.k[H].e[0].c = W[R].cl);
|
|
17579
17589
|
}
|
|
17580
17590
|
S.ty === 4 && P(S.shapes);
|
|
17581
17591
|
}
|
|
@@ -18962,18 +18972,18 @@ var lottie$1 = { exports: {} };
|
|
|
18962
18972
|
function u(E, S, F) {
|
|
18963
18973
|
return !F && F !== 0 && (F = 1), E === 1 && S === 1 && F === 1 ? this : this._t(E, 0, 0, 0, 0, S, 0, 0, 0, 0, F, 0, 0, 0, 0, 1);
|
|
18964
18974
|
}
|
|
18965
|
-
function b(E, S, F, T, R, G, H,
|
|
18966
|
-
return this.props[0] = E, this.props[1] = S, this.props[2] = F, this.props[3] = T, this.props[4] = R, this.props[5] = G, this.props[6] = H, this.props[7] =
|
|
18975
|
+
function b(E, S, F, T, R, G, H, U, W, j, L, Y, J, ee, X, Z) {
|
|
18976
|
+
return this.props[0] = E, this.props[1] = S, this.props[2] = F, this.props[3] = T, this.props[4] = R, this.props[5] = G, this.props[6] = H, this.props[7] = U, this.props[8] = W, this.props[9] = j, this.props[10] = L, this.props[11] = Y, this.props[12] = J, this.props[13] = ee, this.props[14] = X, this.props[15] = Z, this;
|
|
18967
18977
|
}
|
|
18968
18978
|
function p(E, S, F) {
|
|
18969
18979
|
return F = F || 0, E !== 0 || S !== 0 || F !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, E, S, F, 1) : this;
|
|
18970
18980
|
}
|
|
18971
|
-
function y(E, S, F, T, R, G, H,
|
|
18981
|
+
function y(E, S, F, T, R, G, H, U, W, j, L, Y, J, ee, X, Z) {
|
|
18972
18982
|
var K = this.props;
|
|
18973
|
-
if (E === 1 && S === 0 && F === 0 && T === 0 && R === 0 && G === 1 && H === 0 &&
|
|
18983
|
+
if (E === 1 && S === 0 && F === 0 && T === 0 && R === 0 && G === 1 && H === 0 && U === 0 && W === 0 && j === 0 && L === 1 && Y === 0)
|
|
18974
18984
|
return K[12] = K[12] * E + K[15] * J, K[13] = K[13] * G + K[15] * ee, K[14] = K[14] * L + K[15] * X, K[15] *= Z, this._identityCalculated = !1, this;
|
|
18975
18985
|
var te = K[0], ie = K[1], ae = K[2], oe = K[3], le = K[4], he = K[5], de = K[6], be = K[7], Ce = K[8], Se = K[9], Pe = K[10], Ee = K[11], Te = K[12], pe = K[13], ve = K[14], me = K[15];
|
|
18976
|
-
return K[0] = te * E + ie * R + ae *
|
|
18986
|
+
return K[0] = te * E + ie * R + ae * W + oe * J, K[1] = te * S + ie * G + ae * j + oe * ee, K[2] = te * F + ie * H + ae * L + oe * X, K[3] = te * T + ie * U + ae * Y + oe * Z, K[4] = le * E + he * R + de * W + be * J, K[5] = le * S + he * G + de * j + be * ee, K[6] = le * F + he * H + de * L + be * X, K[7] = le * T + he * U + de * Y + be * Z, K[8] = Ce * E + Se * R + Pe * W + Ee * J, K[9] = Ce * S + Se * G + Pe * j + Ee * ee, K[10] = Ce * F + Se * H + Pe * L + Ee * X, K[11] = Ce * T + Se * U + Pe * Y + Ee * Z, K[12] = Te * E + pe * R + ve * W + me * J, K[13] = Te * S + pe * G + ve * j + me * ee, K[14] = Te * F + pe * H + ve * L + me * X, K[15] = Te * T + pe * U + ve * Y + me * Z, this._identityCalculated = !1, this;
|
|
18977
18987
|
}
|
|
18978
18988
|
function A(E) {
|
|
18979
18989
|
var S = E.props;
|
|
@@ -19018,8 +19028,8 @@ var lottie$1 = { exports: {} };
|
|
|
19018
19028
|
return E * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14];
|
|
19019
19029
|
}
|
|
19020
19030
|
function O() {
|
|
19021
|
-
var E = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / E, F = -this.props[1] / E, T = -this.props[4] / E, R = this.props[0] / E, G = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / E, H = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / E,
|
|
19022
|
-
return
|
|
19031
|
+
var E = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / E, F = -this.props[1] / E, T = -this.props[4] / E, R = this.props[0] / E, G = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / E, H = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / E, U = new Matrix();
|
|
19032
|
+
return U.props[0] = S, U.props[1] = F, U.props[4] = T, U.props[5] = R, U.props[12] = G, U.props[13] = H, U;
|
|
19023
19033
|
}
|
|
19024
19034
|
function M(E) {
|
|
19025
19035
|
var S = this.getInverseMatrix();
|
|
@@ -19036,8 +19046,8 @@ var lottie$1 = { exports: {} };
|
|
|
19036
19046
|
if (this.isIdentity())
|
|
19037
19047
|
T[0] = E[0], T[1] = E[1], T[2] = S[0], T[3] = S[1], T[4] = F[0], T[5] = F[1];
|
|
19038
19048
|
else {
|
|
19039
|
-
var R = this.props[0], G = this.props[1], H = this.props[4],
|
|
19040
|
-
T[0] = E[0] * R + E[1] * H +
|
|
19049
|
+
var R = this.props[0], G = this.props[1], H = this.props[4], U = this.props[5], W = this.props[12], j = this.props[13];
|
|
19050
|
+
T[0] = E[0] * R + E[1] * H + W, T[1] = E[0] * G + E[1] * U + j, T[2] = S[0] * R + S[1] * H + W, T[3] = S[0] * G + S[1] * U + j, T[4] = F[0] * R + F[1] * H + W, T[5] = F[0] * G + F[1] * U + j;
|
|
19041
19051
|
}
|
|
19042
19052
|
return T;
|
|
19043
19053
|
}
|
|
@@ -19960,15 +19970,15 @@ var lottie$1 = { exports: {} };
|
|
|
19960
19970
|
E[S].loaded = !0, T -= 1;
|
|
19961
19971
|
else if (E[S].fOrigin === "p" || E[S].origin === 3) {
|
|
19962
19972
|
if (G = document.querySelectorAll('style[f-forigin="p"][f-family="' + E[S].fFamily + '"], style[f-origin="3"][f-family="' + E[S].fFamily + '"]'), G.length > 0 && (R = !1), R) {
|
|
19963
|
-
var
|
|
19964
|
-
|
|
19973
|
+
var U = createTag("style");
|
|
19974
|
+
U.setAttribute("f-forigin", E[S].fOrigin), U.setAttribute("f-origin", E[S].origin), U.setAttribute("f-family", E[S].fFamily), U.type = "text/css", U.innerText = "@font-face {font-family: " + E[S].fFamily + "; font-style: normal; src: url('" + E[S].fPath + "');}", B.appendChild(U);
|
|
19965
19975
|
}
|
|
19966
19976
|
} else if (E[S].fOrigin === "g" || E[S].origin === 1) {
|
|
19967
19977
|
for (G = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), H = 0; H < G.length; H += 1)
|
|
19968
19978
|
G[H].href.indexOf(E[S].fPath) !== -1 && (R = !1);
|
|
19969
19979
|
if (R) {
|
|
19970
|
-
var
|
|
19971
|
-
|
|
19980
|
+
var W = createTag("link");
|
|
19981
|
+
W.setAttribute("f-forigin", E[S].fOrigin), W.setAttribute("f-origin", E[S].origin), W.type = "text/css", W.rel = "stylesheet", W.href = E[S].fPath, document.body.appendChild(W);
|
|
19972
19982
|
}
|
|
19973
19983
|
} else if (E[S].fOrigin === "t" || E[S].origin === 2) {
|
|
19974
19984
|
for (G = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), H = 0; H < G.length; H += 1)
|
|
@@ -21481,7 +21491,7 @@ var lottie$1 = { exports: {} };
|
|
|
21481
21491
|
C = u.length, c = 0, f = 0;
|
|
21482
21492
|
var q = e.finalSize * 1.2 * 0.714, $ = !0, P, B, E, S, F;
|
|
21483
21493
|
S = i.length;
|
|
21484
|
-
var T, R = -1, G, H,
|
|
21494
|
+
var T, R = -1, G, H, U, W = p, j = m, L = g, Y = -1, J, ee, X, Z, K, te, ie, ae, oe = "", le = this.defaultPropsArray, he;
|
|
21485
21495
|
if (e.j === 2 || e.j === 1) {
|
|
21486
21496
|
var de = 0, be = 0, Ce = e.j === 2 ? -0.5 : -1, Se = 0, Pe = !0;
|
|
21487
21497
|
for (d = 0; d < C; d += 1)
|
|
@@ -21499,7 +21509,7 @@ var lottie$1 = { exports: {} };
|
|
|
21499
21509
|
}
|
|
21500
21510
|
for (d = 0; d < C; d += 1) {
|
|
21501
21511
|
if (o.reset(), J = 1, u[d].n)
|
|
21502
|
-
c = 0, f += e.yOffset, f += $ ? 1 : 0, p =
|
|
21512
|
+
c = 0, f += e.yOffset, f += $ ? 1 : 0, p = W, $ = !1, this._hasMaskedPath && (m = j, g = L, w = k[m].points, x = w[g - 1], y = w[g], I = y.partialLength, A = 0), oe = "", ae = "", te = "", he = "", le = this.defaultPropsArray;
|
|
21503
21513
|
else {
|
|
21504
21514
|
if (this._hasMaskedPath) {
|
|
21505
21515
|
if (Y !== u[d].line) {
|
|
@@ -21518,7 +21528,7 @@ var lottie$1 = { exports: {} };
|
|
|
21518
21528
|
for (E = 0; E < S; E += 1)
|
|
21519
21529
|
P = i[E].a, P.p.propType && (B = i[E].s, T = B.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), T.length ? Ee += P.p.v[0] * T[0] : Ee += P.p.v[0] * T), P.a.propType && (B = i[E].s, T = B.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), T.length ? Ee += P.a.v[0] * T[0] : Ee += P.a.v[0] * T);
|
|
21520
21530
|
for (v = !0, this._pathData.a.v && (p = u[0].an * 0.5 + (_ - this._pathData.f.v - u[0].an * 0.5 - u[u.length - 1].an * 0.5) * R / (C - 1), p += this._pathData.f.v); v; )
|
|
21521
|
-
A + I >= p + Ee || !w ? (O = (p + Ee - A) / y.partialLength, H = x.point[0] + (y.point[0] - x.point[0]) * O,
|
|
21531
|
+
A + I >= p + Ee || !w ? (O = (p + Ee - A) / y.partialLength, H = x.point[0] + (y.point[0] - x.point[0]) * O, U = x.point[1] + (y.point[1] - x.point[1]) * O, o.translate(-n[0] * u[d].an * 5e-3, -(n[1] * q) * 0.01), v = !1) : w && (A += y.partialLength, g += 1, g >= w.length && (g = 0, m += 1, k[m] ? w = k[m].points : D.v.c ? (g = 0, m = 0, w = k[m].points) : (A -= y.partialLength, w = null)), w && (x = y, y = w[g], I = y.partialLength));
|
|
21522
21532
|
G = u[d].an / 2 - u[d].add, o.translate(-G, 0, 0);
|
|
21523
21533
|
} else
|
|
21524
21534
|
G = u[d].an / 2 - u[d].add, o.translate(-G, 0, 0), o.translate(-n[0] * u[d].an * 5e-3, -n[1] * q * 0.01, 0);
|
|
@@ -21547,7 +21557,7 @@ var lottie$1 = { exports: {} };
|
|
|
21547
21557
|
var Te = Math.atan(M) * 180 / Math.PI;
|
|
21548
21558
|
y.point[0] < x.point[0] && (Te += 180), o.rotate(-Te * Math.PI / 180);
|
|
21549
21559
|
}
|
|
21550
|
-
o.translate(H,
|
|
21560
|
+
o.translate(H, U, 0), p -= n[0] * u[d].an * 5e-3, u[d + 1] && R !== u[d + 1].ind && (p += u[d].an / 2, p += e.tr * 1e-3 * e.finalSize);
|
|
21551
21561
|
} else {
|
|
21552
21562
|
switch (o.translate(c, f, 0), e.ps && o.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
|
|
21553
21563
|
case 1:
|
|
@@ -25114,10 +25124,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25114
25124
|
dataIndex: xe,
|
|
25115
25125
|
title: we,
|
|
25116
25126
|
...Ne
|
|
25117
|
-
},
|
|
25127
|
+
}, U(Ge, { ...Ke, type: e.type, RECORD: Ne }), setTimeout(() => {
|
|
25118
25128
|
handleJumpLink(e, {
|
|
25119
25129
|
pageMode: unref(n),
|
|
25120
|
-
getRecordValueByKeyName:
|
|
25130
|
+
getRecordValueByKeyName: W
|
|
25121
25131
|
});
|
|
25122
25132
|
}, 0);
|
|
25123
25133
|
})
|
|
@@ -25326,7 +25336,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25326
25336
|
return goUp;
|
|
25327
25337
|
if (re < 0)
|
|
25328
25338
|
return goDown;
|
|
25329
|
-
}, G = useEmitEvent(e), { getGlobalModel: H, setGlobalModel:
|
|
25339
|
+
}, G = useEmitEvent(e), { getGlobalModel: H, setGlobalModel: U, getRecordValueByKeyName: W } = inject(GLOBAL_MODEL, {
|
|
25330
25340
|
// @ts-ignore
|
|
25331
25341
|
// eslint-disable-next-line no-void
|
|
25332
25342
|
getGlobalModel: (Q) => {
|
|
@@ -25340,7 +25350,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25340
25350
|
getRecordValueByKeyName: (Q) => {
|
|
25341
25351
|
}
|
|
25342
25352
|
});
|
|
25343
|
-
|
|
25353
|
+
U(e.id, {
|
|
25344
25354
|
type: e.type,
|
|
25345
25355
|
RECORD: ""
|
|
25346
25356
|
});
|
|
@@ -25371,7 +25381,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25371
25381
|
}, ee = ref(-1), X = (Q, re) => ({
|
|
25372
25382
|
onClick: G("rowClick", () => {
|
|
25373
25383
|
const ne = e.id, ce = H(ne);
|
|
25374
|
-
|
|
25384
|
+
U(ne, { ...ce, type: e.type, RECORD: Q }), ee.value = re;
|
|
25375
25385
|
})
|
|
25376
25386
|
}), { loadedData: Z } = inject(LOADED_DATA, {
|
|
25377
25387
|
loadedData: {}
|
|
@@ -25395,7 +25405,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25395
25405
|
}
|
|
25396
25406
|
}, ie = () => {
|
|
25397
25407
|
const Q = e.id, re = H(Q);
|
|
25398
|
-
|
|
25408
|
+
U(Q, { ...re, type: e.type, RECORD: "" });
|
|
25399
25409
|
}, ae = computed(() => {
|
|
25400
25410
|
const Q = unref(p);
|
|
25401
25411
|
let re = 0;
|
|
@@ -25987,9 +25997,9 @@ const _sfc_main$1 = defineComponent({
|
|
|
25987
25997
|
for (let T = 0; T < F.length; T++) {
|
|
25988
25998
|
const R = F[T];
|
|
25989
25999
|
let G = R.slice(1, -1).trim();
|
|
25990
|
-
const H = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,
|
|
25991
|
-
for (let
|
|
25992
|
-
const j = W
|
|
26000
|
+
const H = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, U = G.match(H);
|
|
26001
|
+
for (let W = 0; W < U.length; W++) {
|
|
26002
|
+
const j = U[W], L = E[j];
|
|
25993
26003
|
L != null && (G = G.replace(j, L));
|
|
25994
26004
|
}
|
|
25995
26005
|
S = S.replace(R, G);
|
|
@@ -26007,14 +26017,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
26007
26017
|
var R, G;
|
|
26008
26018
|
if (T) {
|
|
26009
26019
|
const H = ((G = (R = T == null ? void 0 : T.data) == null ? void 0 : R.data) == null ? void 0 : G.rows) || [];
|
|
26010
|
-
let
|
|
26011
|
-
for (const
|
|
26012
|
-
const j = C(
|
|
26020
|
+
let U = "";
|
|
26021
|
+
for (const W of H) {
|
|
26022
|
+
const j = C(W) || [];
|
|
26013
26023
|
if (j != null && j.length)
|
|
26014
26024
|
for (const L of j)
|
|
26015
|
-
|
|
26025
|
+
U += `<div style="word-break: break-all;white-space: normal;">${L}</div>`;
|
|
26016
26026
|
}
|
|
26017
|
-
|
|
26027
|
+
U = `<div style="max-width:200px;">${U}</div>`, a.value = U, S(unref(b), U);
|
|
26018
26028
|
} else
|
|
26019
26029
|
F.aborted ? a.value = "Loading" : a.value = E, S(unref(b), a.value);
|
|
26020
26030
|
u.value = !1;
|
|
@@ -26083,11 +26093,11 @@ const _sfc_main$1 = defineComponent({
|
|
|
26083
26093
|
b.value = T;
|
|
26084
26094
|
const { name: G = "" } = F, { requestUrl: H } = e.tooltipRequestData;
|
|
26085
26095
|
if (!H) {
|
|
26086
|
-
let
|
|
26087
|
-
|
|
26096
|
+
let U = "", W = e.tooltipFormatter;
|
|
26097
|
+
W === "" && (W = "{name}:{value}");
|
|
26088
26098
|
const j = unref(v).find((L) => L.name === G);
|
|
26089
|
-
return j ? (
|
|
26090
|
-
|
|
26099
|
+
return j ? (U += useVariablesInText(
|
|
26100
|
+
W,
|
|
26091
26101
|
{
|
|
26092
26102
|
textData: {
|
|
26093
26103
|
name: G,
|
|
@@ -26098,7 +26108,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
26098
26108
|
useNewline: !0,
|
|
26099
26109
|
useSpace: !0
|
|
26100
26110
|
}
|
|
26101
|
-
),
|
|
26111
|
+
), U) : G;
|
|
26102
26112
|
}
|
|
26103
26113
|
if (unref(u))
|
|
26104
26114
|
unref(i) !== G && (p.abort(), p = new AbortController());
|
|
@@ -26174,21 +26184,23 @@ const _sfc_main$1 = defineComponent({
|
|
|
26174
26184
|
} else
|
|
26175
26185
|
registerMap(S, {});
|
|
26176
26186
|
w.value = !0;
|
|
26177
|
-
}
|
|
26178
|
-
|
|
26179
|
-
|
|
26180
|
-
}, {
|
|
26181
|
-
immediate: !0,
|
|
26182
|
-
deep: !0
|
|
26183
|
-
});
|
|
26184
|
-
const I = async (E) => {
|
|
26185
|
-
var T, R;
|
|
26186
|
-
const S = ((R = (T = E == null ? void 0 : E.data) == null ? void 0 : T.data) == null ? void 0 : R.rows) || {}, F = `map-${e.id}`;
|
|
26187
|
+
}, I = async (E) => {
|
|
26188
|
+
var T, R, G, H;
|
|
26189
|
+
const S = (R = (T = E == null ? void 0 : E.data) == null ? void 0 : T.data) == null ? void 0 : R.rows, F = `map-${e.id}`;
|
|
26187
26190
|
if (S != null && S.path) {
|
|
26188
|
-
const
|
|
26189
|
-
registerMap(F, (
|
|
26190
|
-
} else
|
|
26191
|
+
const U = await request(S.path);
|
|
26192
|
+
registerMap(F, (U == null ? void 0 : U.data) || {});
|
|
26193
|
+
} else if (Array.isArray(S))
|
|
26194
|
+
if (A.value = S, (G = S[0]) != null && G.mapUrl) {
|
|
26195
|
+
const U = await request((H = S[0]) == null ? void 0 : H.mapUrl);
|
|
26196
|
+
registerMap(F, (U == null ? void 0 : U.data) || {});
|
|
26197
|
+
} else
|
|
26198
|
+
registerMap(F, {});
|
|
26199
|
+
else
|
|
26191
26200
|
registerMap(F, {});
|
|
26201
|
+
nextTick(() => {
|
|
26202
|
+
w.value = !0;
|
|
26203
|
+
});
|
|
26192
26204
|
}, _ = useRequestData(e, I), O = async () => {
|
|
26193
26205
|
if (e.dataType === "request") {
|
|
26194
26206
|
w.value = !1;
|
|
@@ -26196,13 +26208,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
26196
26208
|
const E = await _();
|
|
26197
26209
|
I(E);
|
|
26198
26210
|
} catch (E) {
|
|
26199
|
-
console.error(E);
|
|
26200
|
-
} finally {
|
|
26201
|
-
w.value = !0;
|
|
26211
|
+
console.error(E), w.value = !0;
|
|
26202
26212
|
}
|
|
26203
26213
|
}
|
|
26204
26214
|
}, M = () => {
|
|
26205
26215
|
switch (e.dataType) {
|
|
26216
|
+
case "static":
|
|
26217
|
+
k();
|
|
26218
|
+
break;
|
|
26206
26219
|
case "request":
|
|
26207
26220
|
O();
|
|
26208
26221
|
break;
|
|
@@ -26245,7 +26258,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
26245
26258
|
}
|
|
26246
26259
|
};
|
|
26247
26260
|
}
|
|
26248
|
-
}),
|
|
26261
|
+
}), Map_vue_vue_type_style_index_0_scoped_61d923b0_lang = "", _hoisted_1 = ["src"];
|
|
26249
26262
|
function _sfc_render$1(e, r, n, i, a, o) {
|
|
26250
26263
|
const s = resolveComponent("echarts");
|
|
26251
26264
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26268,7 +26281,7 @@ function _sfc_render$1(e, r, n, i, a, o) {
|
|
|
26268
26281
|
])
|
|
26269
26282
|
], 4);
|
|
26270
26283
|
}
|
|
26271
|
-
const Map$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
26284
|
+
const Map$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-61d923b0"]]), EcanMap = withInstall$1(Map$1), dataSelectProps = {
|
|
26272
26285
|
...props,
|
|
26273
26286
|
name: "下拉框选择器-数据",
|
|
26274
26287
|
keyName: "下拉框选择器-数据",
|
|
@@ -28122,18 +28135,18 @@ var stdin_default$7 = defineComponent({
|
|
|
28122
28135
|
return;
|
|
28123
28136
|
const {
|
|
28124
28137
|
active: H
|
|
28125
|
-
} = o,
|
|
28138
|
+
} = o, U = m(T), W = x(U, R);
|
|
28126
28139
|
if (e.loop) {
|
|
28127
|
-
if (c[0] &&
|
|
28128
|
-
const j =
|
|
28140
|
+
if (c[0] && W !== b.value) {
|
|
28141
|
+
const j = W < b.value;
|
|
28129
28142
|
c[0].setOffset(j ? y.value : 0);
|
|
28130
28143
|
}
|
|
28131
|
-
if (c[d.value - 1] &&
|
|
28132
|
-
const j =
|
|
28144
|
+
if (c[d.value - 1] && W !== 0) {
|
|
28145
|
+
const j = W > 0;
|
|
28133
28146
|
c[d.value - 1].setOffset(j ? -y.value : 0);
|
|
28134
28147
|
}
|
|
28135
28148
|
}
|
|
28136
|
-
o.active =
|
|
28149
|
+
o.active = U, o.offset = W, G && U !== H && r("change", A.value);
|
|
28137
28150
|
}, k = () => {
|
|
28138
28151
|
o.swiping = !0, o.active <= -1 ? w({
|
|
28139
28152
|
pace: d.value
|
|
@@ -28166,14 +28179,14 @@ var stdin_default$7 = defineComponent({
|
|
|
28166
28179
|
const R = () => {
|
|
28167
28180
|
var G, H;
|
|
28168
28181
|
if (!isHidden(i)) {
|
|
28169
|
-
const
|
|
28182
|
+
const U = {
|
|
28170
28183
|
width: i.value.offsetWidth,
|
|
28171
28184
|
height: i.value.offsetHeight
|
|
28172
28185
|
};
|
|
28173
|
-
o.rect =
|
|
28186
|
+
o.rect = U, o.width = +((G = e.width) != null ? G : U.width), o.height = +((H = e.height) != null ? H : U.height);
|
|
28174
28187
|
}
|
|
28175
|
-
d.value && (T = Math.min(d.value - 1, T), T === -1 && (T = d.value - 1)), o.active = T, o.swiping = !0, o.offset = x(T), c.forEach((
|
|
28176
|
-
|
|
28188
|
+
d.value && (T = Math.min(d.value - 1, T), T === -1 && (T = d.value - 1)), o.active = T, o.swiping = !0, o.offset = x(T), c.forEach((U) => {
|
|
28189
|
+
U.setOffset(0);
|
|
28177
28190
|
}), D();
|
|
28178
28191
|
};
|
|
28179
28192
|
isHidden(i) ? nextTick().then(R) : R();
|
|
@@ -28194,9 +28207,9 @@ var stdin_default$7 = defineComponent({
|
|
|
28194
28207
|
const T = Date.now() - q, R = u.value / T;
|
|
28195
28208
|
if ((Math.abs(R) > 0.25 || Math.abs(u.value) > C.value / 2) && v.value) {
|
|
28196
28209
|
const H = e.vertical ? l.offsetY.value : l.offsetX.value;
|
|
28197
|
-
let
|
|
28198
|
-
e.loop ?
|
|
28199
|
-
pace:
|
|
28210
|
+
let U = 0;
|
|
28211
|
+
e.loop ? U = H > 0 ? u.value > 0 ? -1 : 1 : 0 : U = -Math[u.value > 0 ? "ceil" : "floor"](u.value / C.value), w({
|
|
28212
|
+
pace: U,
|
|
28200
28213
|
emitChange: !0
|
|
28201
28214
|
});
|
|
28202
28215
|
} else
|
|
@@ -28364,26 +28377,26 @@ var stdin_default$5 = defineComponent({
|
|
|
28364
28377
|
}), m = computed(() => A.length > +e.swipeThreshold || !e.ellipsis || e.shrink), x = computed(() => ({
|
|
28365
28378
|
borderColor: e.color,
|
|
28366
28379
|
background: e.background
|
|
28367
|
-
})), w = (
|
|
28380
|
+
})), w = (U, W) => {
|
|
28368
28381
|
var j;
|
|
28369
|
-
return (j =
|
|
28382
|
+
return (j = U.name) != null ? j : W;
|
|
28370
28383
|
}, k = computed(() => {
|
|
28371
|
-
const
|
|
28372
|
-
if (
|
|
28373
|
-
return w(
|
|
28374
|
-
}), I = computed(() => unitToPx(e.offsetTop)), _ = computed(() => e.sticky ? I.value + i : 0), O = (
|
|
28375
|
-
const
|
|
28376
|
-
if (!m.value || !
|
|
28384
|
+
const U = A[g.currentIndex];
|
|
28385
|
+
if (U)
|
|
28386
|
+
return w(U, g.currentIndex);
|
|
28387
|
+
}), I = computed(() => unitToPx(e.offsetTop)), _ = computed(() => e.sticky ? I.value + i : 0), O = (U) => {
|
|
28388
|
+
const W = f.value, j = p.value;
|
|
28389
|
+
if (!m.value || !W || !j || !j[g.currentIndex])
|
|
28377
28390
|
return;
|
|
28378
|
-
const L = j[g.currentIndex].$el, Y = L.offsetLeft - (
|
|
28379
|
-
s && s(), s = scrollLeftTo(
|
|
28391
|
+
const L = j[g.currentIndex].$el, Y = L.offsetLeft - (W.offsetWidth - L.offsetWidth) / 2;
|
|
28392
|
+
s && s(), s = scrollLeftTo(W, Y, U ? 0 : +e.duration);
|
|
28380
28393
|
}, M = () => {
|
|
28381
|
-
const
|
|
28394
|
+
const U = g.inited;
|
|
28382
28395
|
nextTick(() => {
|
|
28383
|
-
const
|
|
28384
|
-
if (!
|
|
28396
|
+
const W = p.value;
|
|
28397
|
+
if (!W || !W[g.currentIndex] || e.type !== "line" || isHidden(c.value))
|
|
28385
28398
|
return;
|
|
28386
|
-
const j =
|
|
28399
|
+
const j = W[g.currentIndex].$el, {
|
|
28387
28400
|
lineWidth: L,
|
|
28388
28401
|
lineHeight: Y
|
|
28389
28402
|
} = e, J = j.offsetLeft + j.offsetWidth / 2, ee = {
|
|
@@ -28391,73 +28404,73 @@ var stdin_default$5 = defineComponent({
|
|
|
28391
28404
|
backgroundColor: e.color,
|
|
28392
28405
|
transform: `translateX(${J}px) translateX(-50%)`
|
|
28393
28406
|
};
|
|
28394
|
-
if (
|
|
28407
|
+
if (U && (ee.transitionDuration = `${e.duration}s`), isDef(Y)) {
|
|
28395
28408
|
const X = addUnit(Y);
|
|
28396
28409
|
ee.height = X, ee.borderRadius = X;
|
|
28397
28410
|
}
|
|
28398
28411
|
g.lineStyle = ee;
|
|
28399
28412
|
});
|
|
28400
|
-
}, D = (
|
|
28401
|
-
const
|
|
28402
|
-
for (;
|
|
28403
|
-
if (!A[
|
|
28404
|
-
return
|
|
28405
|
-
|
|
28406
|
-
}
|
|
28407
|
-
}, V = (
|
|
28408
|
-
const j = D(
|
|
28413
|
+
}, D = (U) => {
|
|
28414
|
+
const W = U < g.currentIndex ? -1 : 1;
|
|
28415
|
+
for (; U >= 0 && U < A.length; ) {
|
|
28416
|
+
if (!A[U].disabled)
|
|
28417
|
+
return U;
|
|
28418
|
+
U += W;
|
|
28419
|
+
}
|
|
28420
|
+
}, V = (U, W) => {
|
|
28421
|
+
const j = D(U);
|
|
28409
28422
|
if (!isDef(j))
|
|
28410
28423
|
return;
|
|
28411
28424
|
const L = A[j], Y = w(L, j), J = g.currentIndex !== null;
|
|
28412
|
-
g.currentIndex !== j && (g.currentIndex = j,
|
|
28413
|
-
}, N = (
|
|
28414
|
-
const j = A.find((Y, J) => w(Y, J) ===
|
|
28415
|
-
V(L,
|
|
28416
|
-
}, q = (
|
|
28425
|
+
g.currentIndex !== j && (g.currentIndex = j, W || O(), M()), Y !== e.active && (r("update:active", Y), J && r("change", Y, L.title)), o && !e.scrollspy && setRootScrollTop(Math.ceil(getElementTop(c.value) - I.value));
|
|
28426
|
+
}, N = (U, W) => {
|
|
28427
|
+
const j = A.find((Y, J) => w(Y, J) === U), L = j ? A.indexOf(j) : 0;
|
|
28428
|
+
V(L, W);
|
|
28429
|
+
}, q = (U = !1) => {
|
|
28417
28430
|
if (e.scrollspy) {
|
|
28418
|
-
const
|
|
28419
|
-
if (
|
|
28420
|
-
const j = getElementTop(
|
|
28421
|
-
a = !0, l && l(), l = scrollTopTo(b.value, j,
|
|
28431
|
+
const W = A[g.currentIndex].$el;
|
|
28432
|
+
if (W && b.value) {
|
|
28433
|
+
const j = getElementTop(W, b.value) - _.value;
|
|
28434
|
+
a = !0, l && l(), l = scrollTopTo(b.value, j, U ? 0 : +e.duration, () => {
|
|
28422
28435
|
a = !1;
|
|
28423
28436
|
});
|
|
28424
28437
|
}
|
|
28425
28438
|
}
|
|
28426
|
-
}, $ = (
|
|
28439
|
+
}, $ = (U, W, j) => {
|
|
28427
28440
|
const {
|
|
28428
28441
|
title: L,
|
|
28429
28442
|
disabled: Y
|
|
28430
|
-
} = A[
|
|
28443
|
+
} = A[W], J = w(A[W], W);
|
|
28431
28444
|
Y || (callInterceptor(e.beforeChange, {
|
|
28432
28445
|
args: [J],
|
|
28433
28446
|
done: () => {
|
|
28434
|
-
V(
|
|
28447
|
+
V(W), q();
|
|
28435
28448
|
}
|
|
28436
|
-
}), route(
|
|
28449
|
+
}), route(U)), r("clickTab", {
|
|
28437
28450
|
name: J,
|
|
28438
28451
|
title: L,
|
|
28439
28452
|
event: j,
|
|
28440
28453
|
disabled: Y
|
|
28441
28454
|
});
|
|
28442
|
-
}, P = (
|
|
28443
|
-
o =
|
|
28444
|
-
}, B = (
|
|
28455
|
+
}, P = (U) => {
|
|
28456
|
+
o = U.isFixed, r("scroll", U);
|
|
28457
|
+
}, B = (U) => {
|
|
28445
28458
|
nextTick(() => {
|
|
28446
|
-
N(
|
|
28459
|
+
N(U), q(!0);
|
|
28447
28460
|
});
|
|
28448
28461
|
}, E = () => {
|
|
28449
|
-
for (let
|
|
28462
|
+
for (let U = 0; U < A.length; U++) {
|
|
28450
28463
|
const {
|
|
28451
|
-
top:
|
|
28452
|
-
} = useRect(A[
|
|
28453
|
-
if (
|
|
28454
|
-
return
|
|
28464
|
+
top: W
|
|
28465
|
+
} = useRect(A[U].$el);
|
|
28466
|
+
if (W > _.value)
|
|
28467
|
+
return U === 0 ? 0 : U - 1;
|
|
28455
28468
|
}
|
|
28456
28469
|
return A.length - 1;
|
|
28457
28470
|
}, S = () => {
|
|
28458
28471
|
if (e.scrollspy && !a) {
|
|
28459
|
-
const
|
|
28460
|
-
V(
|
|
28472
|
+
const U = E();
|
|
28473
|
+
V(U);
|
|
28461
28474
|
}
|
|
28462
28475
|
}, F = () => {
|
|
28463
28476
|
if (e.type === "line" && A.length)
|
|
@@ -28466,7 +28479,7 @@ var stdin_default$5 = defineComponent({
|
|
|
28466
28479
|
style: g.lineStyle
|
|
28467
28480
|
}, null);
|
|
28468
28481
|
}, T = () => {
|
|
28469
|
-
var
|
|
28482
|
+
var U, W, j;
|
|
28470
28483
|
const {
|
|
28471
28484
|
type: L,
|
|
28472
28485
|
border: Y,
|
|
@@ -28485,18 +28498,18 @@ var stdin_default$5 = defineComponent({
|
|
|
28485
28498
|
}]),
|
|
28486
28499
|
style: x.value,
|
|
28487
28500
|
"aria-orientation": "horizontal"
|
|
28488
|
-
}, [(
|
|
28501
|
+
}, [(U = n["nav-left"]) == null ? void 0 : U.call(n), A.map((X) => X.renderTitle($)), F(), (W = n["nav-right"]) == null ? void 0 : W.call(n)])]), (j = n["nav-bottom"]) == null ? void 0 : j.call(n)];
|
|
28489
28502
|
return J ? createVNode("div", {
|
|
28490
28503
|
ref: d
|
|
28491
28504
|
}, [ee]) : ee;
|
|
28492
28505
|
}, R = () => {
|
|
28493
28506
|
M(), nextTick(() => {
|
|
28494
|
-
var
|
|
28495
|
-
O(!0), (
|
|
28507
|
+
var U, W;
|
|
28508
|
+
O(!0), (W = (U = C.value) == null ? void 0 : U.swipeRef.value) == null || W.resize();
|
|
28496
28509
|
});
|
|
28497
28510
|
};
|
|
28498
|
-
watch(() => [e.color, e.duration, e.lineWidth, e.lineHeight], M), watch(windowWidth, R), watch(() => e.active, (
|
|
28499
|
-
|
|
28511
|
+
watch(() => [e.color, e.duration, e.lineWidth, e.lineHeight], M), watch(windowWidth, R), watch(() => e.active, (U) => {
|
|
28512
|
+
U !== k.value && N(U);
|
|
28500
28513
|
}), watch(() => A.length, () => {
|
|
28501
28514
|
g.inited && (N(e.active), M(), nextTick(() => {
|
|
28502
28515
|
O(!0);
|
|
@@ -28506,7 +28519,7 @@ var stdin_default$5 = defineComponent({
|
|
|
28506
28519
|
N(e.active, !0), nextTick(() => {
|
|
28507
28520
|
g.inited = !0, d.value && (i = useRect(d.value).height), O(!0);
|
|
28508
28521
|
});
|
|
28509
|
-
}, H = (
|
|
28522
|
+
}, H = (U, W) => r("rendered", U, W);
|
|
28510
28523
|
return useExpose({
|
|
28511
28524
|
resize: R,
|
|
28512
28525
|
scrollTo: B
|
|
@@ -28543,8 +28556,8 @@ var stdin_default$5 = defineComponent({
|
|
|
28543
28556
|
onChange: V
|
|
28544
28557
|
}, {
|
|
28545
28558
|
default: () => {
|
|
28546
|
-
var
|
|
28547
|
-
return [(
|
|
28559
|
+
var U;
|
|
28560
|
+
return [(U = n.default) == null ? void 0 : U.call(n)];
|
|
28548
28561
|
}
|
|
28549
28562
|
})]);
|
|
28550
28563
|
}
|