@ecan-bi/datav 1.3.84 → 1.3.86
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 +358 -339
- 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.86 */
|
|
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,42 @@ 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
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8435
|
+
const W = window.config.record;
|
|
8436
|
+
let j = D, L = V;
|
|
8437
|
+
const Y = D.match(/\{(.+?)\}/g);
|
|
8438
|
+
if (Y != null && Y.length) {
|
|
8439
|
+
const J = Y[0].slice(1, -1).trim();
|
|
8440
|
+
j = D.replace(Y[0], ""), L = J, _.dateFormat = L;
|
|
8441
|
+
}
|
|
8442
|
+
if (W && W[E]) {
|
|
8443
|
+
const J = unref(W[E][j]);
|
|
8444
|
+
dayjs.isDayjs(J) ? _.fieldValue = J.format(L || "YYYY-MM-DD") : _.fieldValue = J;
|
|
8429
8445
|
}
|
|
8430
8446
|
return;
|
|
8431
8447
|
}
|
|
8432
|
-
const S = s(O) || {}, { value: F, format: T = "YYYY-MM-DD", type: R = "", useCurrentTime: G, RECORD: H } = S || {},
|
|
8448
|
+
const S = s(O) || {}, { value: F, format: T = "YYYY-MM-DD", type: R = "", useCurrentTime: G, RECORD: H } = S || {}, U = V || T;
|
|
8433
8449
|
if (lowerCaseIncludes(S.type, "date")) {
|
|
8434
|
-
let
|
|
8435
|
-
if (G ? F ?
|
|
8450
|
+
let W;
|
|
8451
|
+
if (G ? F ? W = unref(F) : W = dayjs() : W = unref(F), $ && P && B)
|
|
8436
8452
|
switch (B) {
|
|
8437
8453
|
case "add":
|
|
8438
|
-
|
|
8454
|
+
W = W.add($, P);
|
|
8439
8455
|
break;
|
|
8440
8456
|
case "minus":
|
|
8441
|
-
|
|
8457
|
+
W = W.subtract($, P);
|
|
8442
8458
|
break;
|
|
8443
8459
|
}
|
|
8444
|
-
_.fieldValue =
|
|
8460
|
+
_.fieldValue = W == null ? void 0 : W.format(U), _.dateFormat = U;
|
|
8445
8461
|
} else if (R === "ecanRangePicker") {
|
|
8446
|
-
let
|
|
8462
|
+
let W = D;
|
|
8447
8463
|
if (!D) {
|
|
8448
8464
|
const L = q && q.split("-");
|
|
8449
|
-
L != null && L.length && (
|
|
8465
|
+
L != null && L.length && (W = L[L.length - 1]);
|
|
8450
8466
|
}
|
|
8451
|
-
if (!
|
|
8467
|
+
if (!W)
|
|
8452
8468
|
return;
|
|
8453
8469
|
let j = null;
|
|
8454
|
-
if (unref(S[
|
|
8470
|
+
if (unref(S[W]) && (j = dayjs(unref(S[W]))), $ && P && B) {
|
|
8455
8471
|
if ($ === "rangeValue") {
|
|
8456
8472
|
if (S.startTime && S.endTime) {
|
|
8457
8473
|
const L = unref(S.endTime).diff(unref(S.startTime), P) + 1;
|
|
@@ -8472,11 +8488,11 @@ const runCode = (e, r) => {
|
|
|
8472
8488
|
j = j && j.subtract($, P);
|
|
8473
8489
|
}
|
|
8474
8490
|
}
|
|
8475
|
-
if (j && (_.fieldValue = j == null ? void 0 : j.format(
|
|
8476
|
-
const L = getFormatStep(
|
|
8491
|
+
if (j && (_.fieldValue = j == null ? void 0 : j.format(U)), W === "rangeValue" && S.startTime && S.endTime) {
|
|
8492
|
+
const L = getFormatStep(U);
|
|
8477
8493
|
L && (_.fieldValue = unref(S.endTime).diff(unref(S.startTime), L) + 1);
|
|
8478
8494
|
}
|
|
8479
|
-
_.dateFormat =
|
|
8495
|
+
_.dateFormat = U;
|
|
8480
8496
|
} else
|
|
8481
8497
|
lowerCaseIncludes(R, MODEL_KEY_LIST) ? N && H ? _.fieldValue = H[N] : !N && H ? _.fieldValue = H.value : _.fieldValue = unref(F) : _.fieldValue = unref(F);
|
|
8482
8498
|
}
|
|
@@ -8545,8 +8561,8 @@ const runCode = (e, r) => {
|
|
|
8545
8561
|
rightAxisList: R = [],
|
|
8546
8562
|
queryColumnList: G = [],
|
|
8547
8563
|
indicators: H = [],
|
|
8548
|
-
controlList:
|
|
8549
|
-
formFields:
|
|
8564
|
+
controlList: U = [],
|
|
8565
|
+
formFields: W = {},
|
|
8550
8566
|
variableList: j = [],
|
|
8551
8567
|
variableConditions: L = [],
|
|
8552
8568
|
// dataSourceId, // 所属数据源ID
|
|
@@ -8722,7 +8738,7 @@ const runCode = (e, r) => {
|
|
|
8722
8738
|
return;
|
|
8723
8739
|
if ($ === "2" && ae.length === 0)
|
|
8724
8740
|
return;
|
|
8725
|
-
if ($ === "3" && (!te || !
|
|
8741
|
+
if ($ === "3" && (!te || !W.labelField || !W.valueField))
|
|
8726
8742
|
return;
|
|
8727
8743
|
if ($ === "3" && M === "ecanDataSelect" && ae.length === 0)
|
|
8728
8744
|
return;
|
|
@@ -8736,8 +8752,8 @@ const runCode = (e, r) => {
|
|
|
8736
8752
|
ve != null && ve.length && (de = ve[ve.length - 1]);
|
|
8737
8753
|
}
|
|
8738
8754
|
}
|
|
8739
|
-
if (M !== "ecanScatter" && ((Pe = Object.keys(
|
|
8740
|
-
const pe = getConditions(
|
|
8755
|
+
if (M !== "ecanScatter" && ((Pe = Object.keys(W)) != null && Pe.length)) {
|
|
8756
|
+
const pe = getConditions(U).find((me) => me.conditionKey === "parentCode"), ve = {};
|
|
8741
8757
|
if (pe) {
|
|
8742
8758
|
const me = s(pe.id) || {};
|
|
8743
8759
|
if (me != null && me.itemCodes)
|
|
@@ -8757,8 +8773,8 @@ const runCode = (e, r) => {
|
|
|
8757
8773
|
chartType: "normalSelect",
|
|
8758
8774
|
rangeIndexTypeGuid: te,
|
|
8759
8775
|
type: M === "ecanDataSelect" ? "normalSelectData" : "normalSelect",
|
|
8760
|
-
labelField:
|
|
8761
|
-
valueField:
|
|
8776
|
+
labelField: W.labelField,
|
|
8777
|
+
valueField: W.valueField,
|
|
8762
8778
|
pageId: de,
|
|
8763
8779
|
sqlConditions: X,
|
|
8764
8780
|
idxLibMode: "WITH_DATE_DIM_TABLE",
|
|
@@ -8874,7 +8890,7 @@ const runCode = (e, r) => {
|
|
|
8874
8890
|
const x = {};
|
|
8875
8891
|
return a || (x.width = r.value, x.height = n.value), {
|
|
8876
8892
|
...x,
|
|
8877
|
-
backgroundColor: e.backgroundColor,
|
|
8893
|
+
backgroundColor: e.pageId ? "transparent" : e.backgroundColor,
|
|
8878
8894
|
backgroundImage: useImagePath(e.backgroundImage, !0),
|
|
8879
8895
|
backgroundSize: e.backgroundSize
|
|
8880
8896
|
};
|
|
@@ -8927,7 +8943,7 @@ const runCode = (e, r) => {
|
|
|
8927
8943
|
ready: d
|
|
8928
8944
|
};
|
|
8929
8945
|
}
|
|
8930
|
-
}),
|
|
8946
|
+
}), PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang = "", _hoisted_1$g = {
|
|
8931
8947
|
id: "container",
|
|
8932
8948
|
ref: "container"
|
|
8933
8949
|
};
|
|
@@ -8942,7 +8958,7 @@ function _sfc_render$x(e, r, n, i, a, o) {
|
|
|
8942
8958
|
], 4)) : createCommentVNode("", !0)
|
|
8943
8959
|
], 512);
|
|
8944
8960
|
}
|
|
8945
|
-
const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$x], ["__scopeId", "data-v-
|
|
8961
|
+
const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_render$x], ["__scopeId", "data-v-e1e149bf"]]), EcanPageConfig = withInstall$1(PageConfig), providerConfig = {
|
|
8946
8962
|
contextRequestUrl: "",
|
|
8947
8963
|
pageMode: "normal",
|
|
8948
8964
|
theme: "light",
|
|
@@ -9128,10 +9144,10 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9128
9144
|
offEvent: G,
|
|
9129
9145
|
emitEvent: H
|
|
9130
9146
|
});
|
|
9131
|
-
const
|
|
9147
|
+
const U = ref(0);
|
|
9132
9148
|
provide(GLOBAL_TOKEN, {
|
|
9133
9149
|
requestToken: () => {
|
|
9134
|
-
|
|
9150
|
+
U.value = unref(U) + 1;
|
|
9135
9151
|
}
|
|
9136
9152
|
});
|
|
9137
9153
|
const j = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), Y = ({ requestFn: K = () => {
|
|
@@ -9163,7 +9179,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9163
9179
|
ae.sort((le, he) => he[0] - le[0]);
|
|
9164
9180
|
const oe = ae.length;
|
|
9165
9181
|
try {
|
|
9166
|
-
e.pageMode !== "design" && unref(
|
|
9182
|
+
e.pageMode !== "design" && unref(U) > 0;
|
|
9167
9183
|
for (let le = 0; le < oe; le++) {
|
|
9168
9184
|
const he = ae[le][1];
|
|
9169
9185
|
await J(he);
|
|
@@ -9304,22 +9320,22 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9304
9320
|
return;
|
|
9305
9321
|
}
|
|
9306
9322
|
const H = +S[G];
|
|
9307
|
-
let
|
|
9323
|
+
let U = 0;
|
|
9308
9324
|
if (isNaN(H))
|
|
9309
9325
|
a.value = S;
|
|
9310
9326
|
else {
|
|
9311
|
-
String(H).includes(".") && (
|
|
9312
|
-
const
|
|
9327
|
+
String(H).includes(".") && (U = ((T = String(H).split(".")[1]) == null ? void 0 : T.length) || 0);
|
|
9328
|
+
const W = Math.abs(H) * Math.pow(10, U), j = String(W).length;
|
|
9313
9329
|
let L = [];
|
|
9314
9330
|
for (let J = 0; J < 5; J++) {
|
|
9315
|
-
const ee = Math.ceil(Math.random() * (
|
|
9331
|
+
const ee = Math.ceil(Math.random() * (W + 1) - 1);
|
|
9316
9332
|
L.includes(ee) || L.push(ee);
|
|
9317
9333
|
}
|
|
9318
9334
|
L.sort((J, ee) => J - ee), L = L.map((J) => {
|
|
9319
9335
|
const ee = String(J).split("").reverse(), X = [];
|
|
9320
9336
|
for (let Z = 0; Z < j; Z++)
|
|
9321
9337
|
ee && ee[Z] ? X.push(ee[Z]) : X.push("0");
|
|
9322
|
-
return
|
|
9338
|
+
return U && X.splice(U, 0, "."), (H < 0 ? "-" : "") + X.reverse().join("");
|
|
9323
9339
|
}), L.push(H);
|
|
9324
9340
|
let Y = 0;
|
|
9325
9341
|
for (const J of L)
|
|
@@ -9390,7 +9406,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9390
9406
|
const S = {};
|
|
9391
9407
|
return e.linkPage && (S.cursor = "pointer", S.userSelect = "none"), S;
|
|
9392
9408
|
}), v = ref(1), g = computed(() => {
|
|
9393
|
-
var
|
|
9409
|
+
var W;
|
|
9394
9410
|
if (unref(n))
|
|
9395
9411
|
return "NaN";
|
|
9396
9412
|
if (!v.value)
|
|
@@ -9399,16 +9415,16 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9399
9415
|
let R = e.text;
|
|
9400
9416
|
R = R == null ? void 0 : R.replace(/\n|\\n/g, "<br/>"), R = R == null ? void 0 : R.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
9401
9417
|
const G = R.match(/\{(.+?)\}/g) || [];
|
|
9402
|
-
let H = "",
|
|
9403
|
-
if (e.exceedConfig === "wrap" ?
|
|
9418
|
+
let H = "", U = "";
|
|
9419
|
+
if (e.exceedConfig === "wrap" ? U = "show-wrap" : e.exceedConfig === "ellipsis" && (U = "show-ellipsis"), G == null || G.length === 0) {
|
|
9404
9420
|
if (R && e.format === "percentage" && !isNaN(+R)) {
|
|
9405
9421
|
const j = parseFloat(R), L = j * 100, Y = m(L.toFixed(2));
|
|
9406
|
-
j >= 0 ? R = `<span class="${
|
|
9422
|
+
j >= 0 ? R = `<span class="${U}" style="color: ${Y || F || "#ED6643"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9407
9423
|
<div class="percentage-img-box">
|
|
9408
9424
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${Y || F || "#ED6643"} ${unref(o)} 0px)`};" src="${goUp}"/>
|
|
9409
9425
|
</div>
|
|
9410
9426
|
<span style="color: ${Y || e.color};${unref(p)}">${Math.abs(+L).toFixed(2)}%</span>
|
|
9411
|
-
</span>` : R = `<span class="${
|
|
9427
|
+
</span>` : R = `<span class="${U}" style="color: ${Y || T || "#6ACB97"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9412
9428
|
<div class="percentage-img-box">
|
|
9413
9429
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${Y || T || "#6ACB97"} ${unref(o)} 0px)`};" src="${goDown}"/>
|
|
9414
9430
|
</div>
|
|
@@ -9418,7 +9434,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9418
9434
|
H = R;
|
|
9419
9435
|
}
|
|
9420
9436
|
for (let j = 0; j < G.length; j++) {
|
|
9421
|
-
const L = G[j], Y = (
|
|
9437
|
+
const L = G[j], Y = (W = L == null ? void 0 : L.slice(1, L.length - 1)) == null ? void 0 : W.trim();
|
|
9422
9438
|
let J = Y;
|
|
9423
9439
|
const ee = Y.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
9424
9440
|
for (let Z = 0; Z < ee.length; Z++) {
|
|
@@ -9439,13 +9455,13 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9439
9455
|
const Z = e.format;
|
|
9440
9456
|
if (Z === "percentage")
|
|
9441
9457
|
if (X = +X, isNaN(X))
|
|
9442
|
-
R = R.replace(L, `<span class="${
|
|
9458
|
+
R = R.replace(L, `<span class="${U}" style="color:${m("0.00") || e.variableColor};font-size:${unref(o)};${unref(p)}">0%</span>`);
|
|
9443
9459
|
else if (X >= 0) {
|
|
9444
9460
|
X = X * 100;
|
|
9445
9461
|
const K = m(X.toFixed(2));
|
|
9446
9462
|
R = R.replace(
|
|
9447
9463
|
L,
|
|
9448
|
-
`<span class="${
|
|
9464
|
+
`<span class="${U}" style="color: ${K || F || "#ED6643"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9449
9465
|
<div class="percentage-img-box">
|
|
9450
9466
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${K || F || "#ED6643"} ${unref(o)} 0px)`};" src="${goUp}"/>
|
|
9451
9467
|
</div>
|
|
@@ -9457,7 +9473,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9457
9473
|
const K = m(X.toFixed(2));
|
|
9458
9474
|
R = R.replace(
|
|
9459
9475
|
L,
|
|
9460
|
-
`<span class="${
|
|
9476
|
+
`<span class="${U}" style="color: ${K || T || "#6ACB97"};font-size:${unref(o)};display: inline-block;${unref(p)}">
|
|
9461
9477
|
<div class="percentage-img-box">
|
|
9462
9478
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${K || T || "#6ACB97"} ${unref(o)} 0px)`};" src="${goDown}"/>
|
|
9463
9479
|
</div>
|
|
@@ -9466,15 +9482,15 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9466
9482
|
);
|
|
9467
9483
|
}
|
|
9468
9484
|
else
|
|
9469
|
-
e.format === "percent" ? (X = +X, isNaN(X) || (X = (X * 100).toFixed(2), R = R.replace(L, `<span class="${
|
|
9485
|
+
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
9486
|
}
|
|
9471
9487
|
}
|
|
9472
|
-
if (H || (H = `<span class="${
|
|
9488
|
+
if (H || (H = `<span class="${U}" style="color: ${m(R)};${unref(p)}">${R}</span>`), e.unitShow && e.unitText) {
|
|
9473
9489
|
const { unitTop: j, unitLeft: L } = e;
|
|
9474
9490
|
let Y = "position:relative;";
|
|
9475
9491
|
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
9492
|
}
|
|
9477
|
-
return e.exceedConfig && (H = `<span class="${
|
|
9493
|
+
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
9494
|
});
|
|
9479
9495
|
function m(S) {
|
|
9480
9496
|
let F = "", T = !1;
|
|
@@ -9530,21 +9546,21 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9530
9546
|
const { data: F } = (S == null ? void 0 : S.data) || {};
|
|
9531
9547
|
if (F) {
|
|
9532
9548
|
n.value = !1;
|
|
9533
|
-
const { columns: G = [], rows: H = [] } = ((T = S == null ? void 0 : S.data) == null ? void 0 : T.data) ?? {}, { graphicConfig:
|
|
9534
|
-
let
|
|
9549
|
+
const { columns: G = [], rows: H = [] } = ((T = S == null ? void 0 : S.data) == null ? void 0 : T.data) ?? {}, { graphicConfig: U } = e;
|
|
9550
|
+
let W = {};
|
|
9535
9551
|
if (G.length > 0)
|
|
9536
|
-
if ((R =
|
|
9552
|
+
if ((R = U == null ? void 0 : U.dimensionList) != null && R.length) {
|
|
9537
9553
|
const j = G[0];
|
|
9538
|
-
j && (H != null && H.length) && (
|
|
9554
|
+
j && (H != null && H.length) && (W = {
|
|
9539
9555
|
value: H[0][j]
|
|
9540
9556
|
});
|
|
9541
9557
|
} else {
|
|
9542
9558
|
const j = G.find((L) => !!L);
|
|
9543
|
-
j && (
|
|
9559
|
+
j && (W = {
|
|
9544
9560
|
value: isNaN(H[j]) ? 0 : H[j] || 0
|
|
9545
9561
|
});
|
|
9546
9562
|
}
|
|
9547
|
-
O(
|
|
9563
|
+
O(W == null ? void 0 : W.value), l(W);
|
|
9548
9564
|
} else
|
|
9549
9565
|
n.value = !0, O("NaN"), l({
|
|
9550
9566
|
value: "NaN"
|
|
@@ -10966,7 +10982,7 @@ const __default__$2 = defineComponent({
|
|
|
10966
10982
|
K = K && K.subtract(ae, oe), te = te && te.subtract(ae, oe);
|
|
10967
10983
|
}
|
|
10968
10984
|
}
|
|
10969
|
-
o.value = [K, te], unref(r) &&
|
|
10985
|
+
o.value = [K, te], unref(r) && W();
|
|
10970
10986
|
}
|
|
10971
10987
|
}, {
|
|
10972
10988
|
immediate: !0
|
|
@@ -11046,7 +11062,7 @@ const __default__$2 = defineComponent({
|
|
|
11046
11062
|
}, B = () => {
|
|
11047
11063
|
H(), y.value = "", o.value = [null, null];
|
|
11048
11064
|
}, E = () => {
|
|
11049
|
-
o.value = [dayjs(unref(l).join("-")), dayjs(unref(c).join("-"))], H(unref(o)),
|
|
11065
|
+
o.value = [dayjs(unref(l).join("-")), dayjs(unref(c).join("-"))], H(unref(o)), U(), R(), s.value = !1, V();
|
|
11050
11066
|
}, S = () => {
|
|
11051
11067
|
G(), s.value = !1;
|
|
11052
11068
|
}, F = () => {
|
|
@@ -11070,14 +11086,14 @@ const __default__$2 = defineComponent({
|
|
|
11070
11086
|
function H(L = []) {
|
|
11071
11087
|
l.value = j(L[0] || dayjs()), c.value = j(L[1] || dayjs());
|
|
11072
11088
|
}
|
|
11073
|
-
function
|
|
11089
|
+
function U() {
|
|
11074
11090
|
var J, ee;
|
|
11075
11091
|
const L = (J = unref(l)) != null && J.length ? dayjs(unref(l).join("-")) : "", Y = (ee = unref(c)) != null && ee.length ? dayjs(unref(c).join("-")) : "";
|
|
11076
11092
|
y.value = L && Y && `${L.format(e.format)} 至 ${Y.format(e.format)}`;
|
|
11077
11093
|
}
|
|
11078
|
-
function
|
|
11094
|
+
function W() {
|
|
11079
11095
|
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(),
|
|
11096
|
+
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
11097
|
}
|
|
11082
11098
|
function j(L) {
|
|
11083
11099
|
const Y = [];
|
|
@@ -11456,10 +11472,10 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11456
11472
|
...selectComponentProps
|
|
11457
11473
|
},
|
|
11458
11474
|
setup(e, { expose: r }) {
|
|
11459
|
-
var
|
|
11475
|
+
var U, W, j;
|
|
11460
11476
|
const n = inject("isMobile", !1), i = ref(!1), a = {
|
|
11461
|
-
text: ((
|
|
11462
|
-
value: ((
|
|
11477
|
+
text: ((U = e.dataFieldNames) == null ? void 0 : U.label) || "label",
|
|
11478
|
+
value: ((W = e.dataFieldNames) == null ? void 0 : W.value) || "value"
|
|
11463
11479
|
}, o = ref([]), s = usePickComponentStyle(e), l = () => document.getElementById("ProviderConfig") || document.body, c = ref(e.data || []), f = ref(), d = computed({
|
|
11464
11480
|
get: () => {
|
|
11465
11481
|
var Y;
|
|
@@ -12613,7 +12629,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12613
12629
|
},
|
|
12614
12630
|
setModalModel: (Z, K) => {
|
|
12615
12631
|
}
|
|
12616
|
-
}),
|
|
12632
|
+
}), U = computed(() => {
|
|
12617
12633
|
let Z = e.componentList;
|
|
12618
12634
|
const K = cloneDeep(e.componentList), te = a(), ie = o(), ae = {
|
|
12619
12635
|
containerMap: te,
|
|
@@ -12640,7 +12656,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12640
12656
|
he !== -1 && Z.splice(he, 1);
|
|
12641
12657
|
}
|
|
12642
12658
|
return Z;
|
|
12643
|
-
}),
|
|
12659
|
+
}), W = () => {
|
|
12644
12660
|
const Z = e.id;
|
|
12645
12661
|
let K = [];
|
|
12646
12662
|
const te = e.componentList;
|
|
@@ -12650,7 +12666,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12650
12666
|
L[Z.requestName] = useRequestData(Z);
|
|
12651
12667
|
watch(() => N.value, async (Z) => {
|
|
12652
12668
|
if (Z)
|
|
12653
|
-
k.value = !1, G(e.id),
|
|
12669
|
+
k.value = !1, G(e.id), W(), await nextTick(() => {
|
|
12654
12670
|
O(), window.addEventListener("resize", M), D(), k.value = !0;
|
|
12655
12671
|
}), q();
|
|
12656
12672
|
else {
|
|
@@ -12682,7 +12698,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12682
12698
|
isFullWidth: Y,
|
|
12683
12699
|
wrapClassName: ee,
|
|
12684
12700
|
ready: k,
|
|
12685
|
-
usedComponentList:
|
|
12701
|
+
usedComponentList: U,
|
|
12686
12702
|
isMobile: i,
|
|
12687
12703
|
readyIds: n,
|
|
12688
12704
|
hasOwn,
|
|
@@ -13358,7 +13374,7 @@ const _sfc_main$c = defineComponent({
|
|
|
13358
13374
|
let T = "", R = e.tooltipFormatter;
|
|
13359
13375
|
u = (G = S[0]) == null ? void 0 : G.data, R === "" && (R = "{marker} {a} {c}");
|
|
13360
13376
|
for (let H = 0; H < F; H++) {
|
|
13361
|
-
const { marker:
|
|
13377
|
+
const { marker: U, seriesName: W, name: j, value: L, data: Y } = S[H] || {};
|
|
13362
13378
|
if (H === 0) {
|
|
13363
13379
|
let J = j;
|
|
13364
13380
|
typeof j == "string" && j[0] === "0" && !isNaN(+j) && (J = (+j).toString()), T += `${useValueFormatter(B, J)}<br/>`;
|
|
@@ -13367,10 +13383,10 @@ const _sfc_main$c = defineComponent({
|
|
|
13367
13383
|
R,
|
|
13368
13384
|
{
|
|
13369
13385
|
textData: {
|
|
13370
|
-
marker:
|
|
13386
|
+
marker: U,
|
|
13371
13387
|
name: j,
|
|
13372
13388
|
value: L,
|
|
13373
|
-
a:
|
|
13389
|
+
a: W,
|
|
13374
13390
|
b: j,
|
|
13375
13391
|
c: L || 0,
|
|
13376
13392
|
...Y
|
|
@@ -13566,11 +13582,11 @@ const _sfc_main$c = defineComponent({
|
|
|
13566
13582
|
const T = useTransformChartDataByAttrKey(B, S ? E : null, !0);
|
|
13567
13583
|
c.value = T.dimensions, b.value = T.dataset;
|
|
13568
13584
|
const R = T.dataset, G = [], H = R.length;
|
|
13569
|
-
for (let
|
|
13570
|
-
const
|
|
13571
|
-
e.shadowColor && (
|
|
13585
|
+
for (let U = 0; U < H; U++) {
|
|
13586
|
+
const W = {};
|
|
13587
|
+
e.shadowColor && (W.shadowColor = e.shadowColor, W.shadowBlur = e.shadowBlur, W.shadowOffsetY = e.shadowOffsetY, W.shadowOffsetX = e.shadowOffsetX), G.push({
|
|
13572
13588
|
type: "line",
|
|
13573
|
-
...R[
|
|
13589
|
+
...R[U],
|
|
13574
13590
|
symbolSize: e.symbolSize,
|
|
13575
13591
|
smooth: e.smooth,
|
|
13576
13592
|
areaStyle: {
|
|
@@ -13582,18 +13598,18 @@ const _sfc_main$c = defineComponent({
|
|
|
13582
13598
|
y2: 1,
|
|
13583
13599
|
colorStops: [{
|
|
13584
13600
|
offset: 0,
|
|
13585
|
-
color: e.colors[
|
|
13601
|
+
color: e.colors[U]
|
|
13586
13602
|
}, {
|
|
13587
13603
|
offset: 1,
|
|
13588
13604
|
color: e.areaGradientColor || "transparent"
|
|
13589
13605
|
}],
|
|
13590
13606
|
global: !1
|
|
13591
|
-
} : e.colors[
|
|
13607
|
+
} : e.colors[U],
|
|
13592
13608
|
opacity: e.areaStyleOpacity
|
|
13593
13609
|
},
|
|
13594
13610
|
lineStyle: {
|
|
13595
13611
|
width: e.lineStyleWidth,
|
|
13596
|
-
...
|
|
13612
|
+
...W
|
|
13597
13613
|
},
|
|
13598
13614
|
...unref(g)
|
|
13599
13615
|
});
|
|
@@ -13916,7 +13932,7 @@ const _sfc_main$b = defineComponent({
|
|
|
13916
13932
|
}), 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
13933
|
let p;
|
|
13918
13934
|
const y = computed(() => s.value ? ZOOM_FONT_SIZE : 12), A = computed(() => {
|
|
13919
|
-
const { gradientShow:
|
|
13935
|
+
const { gradientShow: W, gradientColors: j, gradientOffset: L, barBorderRadius: Y } = e, J = unref(C), ee = J.length, X = [];
|
|
13920
13936
|
for (let Z = 0; Z < ee; Z++) {
|
|
13921
13937
|
const K = {
|
|
13922
13938
|
...J[Z],
|
|
@@ -13953,7 +13969,7 @@ const _sfc_main$b = defineComponent({
|
|
|
13953
13969
|
}
|
|
13954
13970
|
), ie;
|
|
13955
13971
|
}
|
|
13956
|
-
}, K.itemStyle = {},
|
|
13972
|
+
}, K.itemStyle = {}, W && (K.itemStyle = {
|
|
13957
13973
|
color: {
|
|
13958
13974
|
x: e.isUseHorizontalAxis ? 1 : 0,
|
|
13959
13975
|
y: 0,
|
|
@@ -13987,7 +14003,7 @@ const _sfc_main$b = defineComponent({
|
|
|
13987
14003
|
}
|
|
13988
14004
|
return X;
|
|
13989
14005
|
}), v = ref([]), g = ref(!1), m = computed(() => {
|
|
13990
|
-
const
|
|
14006
|
+
const W = e.yAxisLabelFormatter, j = e.xAxisLabelFormatter;
|
|
13991
14007
|
return {
|
|
13992
14008
|
textStyle: {
|
|
13993
14009
|
fontFamily: unref(i)
|
|
@@ -14200,7 +14216,7 @@ const _sfc_main$b = defineComponent({
|
|
|
14200
14216
|
width: e.yAxisLabelWidth,
|
|
14201
14217
|
overflow: e.yAxisLabelOverflow,
|
|
14202
14218
|
formatter(L) {
|
|
14203
|
-
return useValueFormatter(
|
|
14219
|
+
return useValueFormatter(W, L);
|
|
14204
14220
|
}
|
|
14205
14221
|
},
|
|
14206
14222
|
axisLine: {
|
|
@@ -14221,29 +14237,29 @@ const _sfc_main$b = defineComponent({
|
|
|
14221
14237
|
};
|
|
14222
14238
|
}), x = () => {
|
|
14223
14239
|
s.value = !1;
|
|
14224
|
-
}, w = (
|
|
14240
|
+
}, w = (W = [], j = !1) => {
|
|
14225
14241
|
let L = {};
|
|
14226
14242
|
if (e.dataFieldConfigType === "key") {
|
|
14227
14243
|
const Y = j ? e.keyTypeDataFieldNames : null;
|
|
14228
|
-
L = useTransformChartDataByAttrKey(
|
|
14244
|
+
L = useTransformChartDataByAttrKey(W, Y);
|
|
14229
14245
|
} else if (e.dataFieldConfigType === "value") {
|
|
14230
14246
|
const Y = j ? e.valueTypeDataFieldNames : null;
|
|
14231
|
-
L = useTransformChartDataByAttrValue(
|
|
14247
|
+
L = useTransformChartDataByAttrValue(W, Y);
|
|
14232
14248
|
}
|
|
14233
14249
|
C.value = L.dataset, v.value = L.dimensions;
|
|
14234
|
-
}, k = (
|
|
14235
|
-
const J = useTransformChartDataByAttrKey(
|
|
14250
|
+
}, k = (W = [], j, L = !1) => {
|
|
14251
|
+
const J = useTransformChartDataByAttrKey(W, L ? j : null, !0);
|
|
14236
14252
|
e.defaultRangeValue && setDefaultRangeVal({
|
|
14237
14253
|
props: e,
|
|
14238
14254
|
componentList: unref(a),
|
|
14239
14255
|
getGlobalModel: F
|
|
14240
14256
|
}, J), C.value = J.dataset, v.value = J.dimensions;
|
|
14241
|
-
}, I = computed(() => unref(v).map((
|
|
14257
|
+
}, I = computed(() => unref(v).map((W) => {
|
|
14242
14258
|
let j = {};
|
|
14243
|
-
return
|
|
14244
|
-
...
|
|
14259
|
+
return W && typeof W == "object" ? j = {
|
|
14260
|
+
...W
|
|
14245
14261
|
} : j = {
|
|
14246
|
-
value:
|
|
14262
|
+
value: W
|
|
14247
14263
|
}, j;
|
|
14248
14264
|
}));
|
|
14249
14265
|
watch(() => [
|
|
@@ -14254,29 +14270,29 @@ const _sfc_main$b = defineComponent({
|
|
|
14254
14270
|
e.legendHeight,
|
|
14255
14271
|
e.legendTextWidth,
|
|
14256
14272
|
e.legendScroll
|
|
14257
|
-
], ([
|
|
14258
|
-
(e.dataType === "static" || unref(n) === "design") && w(
|
|
14273
|
+
], ([W]) => {
|
|
14274
|
+
(e.dataType === "static" || unref(n) === "design") && w(W);
|
|
14259
14275
|
}, {
|
|
14260
14276
|
immediate: !0,
|
|
14261
14277
|
deep: !0
|
|
14262
14278
|
});
|
|
14263
|
-
const _ = useRequestData(e, o, (
|
|
14279
|
+
const _ = useRequestData(e, o, (W) => {
|
|
14264
14280
|
var j, L;
|
|
14265
|
-
w((L = (j =
|
|
14281
|
+
w((L = (j = W == null ? void 0 : W.data) == null ? void 0 : j.data) == null ? void 0 : L.rows, !0);
|
|
14266
14282
|
}), O = async () => {
|
|
14267
|
-
var
|
|
14283
|
+
var W, j;
|
|
14268
14284
|
try {
|
|
14269
14285
|
g.value = !0;
|
|
14270
14286
|
const L = await _();
|
|
14271
|
-
w((j = (
|
|
14287
|
+
w((j = (W = L == null ? void 0 : L.data) == null ? void 0 : W.data) == null ? void 0 : j.rows, !0);
|
|
14272
14288
|
} catch (L) {
|
|
14273
14289
|
console.error(L);
|
|
14274
14290
|
} finally {
|
|
14275
14291
|
g.value = !1;
|
|
14276
14292
|
}
|
|
14277
|
-
}, M = (
|
|
14293
|
+
}, M = (W) => {
|
|
14278
14294
|
var J;
|
|
14279
|
-
const { columns: j = [], rows: L = [] } = ((J =
|
|
14295
|
+
const { columns: j = [], rows: L = [] } = ((J = W == null ? void 0 : W.data) == null ? void 0 : J.data) ?? {};
|
|
14280
14296
|
let Y;
|
|
14281
14297
|
j.length > 0 && (Y = {
|
|
14282
14298
|
name: j[0],
|
|
@@ -14288,20 +14304,20 @@ const _sfc_main$b = defineComponent({
|
|
|
14288
14304
|
}, D = useIndicatorData(e, o, M), V = async () => {
|
|
14289
14305
|
try {
|
|
14290
14306
|
g.value = !0;
|
|
14291
|
-
const
|
|
14292
|
-
M(
|
|
14293
|
-
} catch (
|
|
14294
|
-
console.error(
|
|
14307
|
+
const W = await D();
|
|
14308
|
+
M(W);
|
|
14309
|
+
} catch (W) {
|
|
14310
|
+
console.error(W);
|
|
14295
14311
|
} finally {
|
|
14296
14312
|
g.value = !1;
|
|
14297
14313
|
}
|
|
14298
14314
|
}, { loadedData: N } = inject(LOADED_DATA, {
|
|
14299
14315
|
loadedData: {}
|
|
14300
14316
|
}), q = ref(!1);
|
|
14301
|
-
watch(N, (
|
|
14317
|
+
watch(N, (W) => {
|
|
14302
14318
|
if (e.dataType === "indicator") {
|
|
14303
14319
|
const j = getFixedValueDatas(e.graphicConfig);
|
|
14304
|
-
j != null && j.length && (!unref(q) && canRequestIndicator(e.graphicConfig,
|
|
14320
|
+
j != null && j.length && (!unref(q) && canRequestIndicator(e.graphicConfig, W) ? (q.value = !0, $()) : canRequestIndicator(e.graphicConfig, W) || (q.value = !1));
|
|
14305
14321
|
}
|
|
14306
14322
|
}, {
|
|
14307
14323
|
deep: !0
|
|
@@ -14315,14 +14331,14 @@ const _sfc_main$b = defineComponent({
|
|
|
14315
14331
|
O();
|
|
14316
14332
|
break;
|
|
14317
14333
|
}
|
|
14318
|
-
}, P = (
|
|
14334
|
+
}, P = (W, j) => !!unref(f)[j.value].value.includes(W), B = async () => {
|
|
14319
14335
|
l.value = !1;
|
|
14320
|
-
const
|
|
14336
|
+
const W = o.value.chart.getOption();
|
|
14321
14337
|
for (let j = 0; j < 7; j++)
|
|
14322
|
-
await E(
|
|
14323
|
-
}, E = (
|
|
14338
|
+
await E(W, j);
|
|
14339
|
+
}, E = (W, j) => new Promise((L) => {
|
|
14324
14340
|
setTimeout(() => {
|
|
14325
|
-
const { series: Y, color: J, xAxis: ee } =
|
|
14341
|
+
const { series: Y, color: J, xAxis: ee } = W, X = o.value.chart, { splitArea: Z = {} } = ee[0] || {};
|
|
14326
14342
|
Y.forEach((K, te) => {
|
|
14327
14343
|
const ie = K.data;
|
|
14328
14344
|
let ae = "";
|
|
@@ -14338,22 +14354,22 @@ const _sfc_main$b = defineComponent({
|
|
|
14338
14354
|
const S = useEmitEvent(e), { getGlobalModel: F, setGlobalModel: T } = inject(GLOBAL_MODEL, {
|
|
14339
14355
|
// @ts-ignore
|
|
14340
14356
|
// eslint-disable-next-line no-void
|
|
14341
|
-
getGlobalModel: (
|
|
14357
|
+
getGlobalModel: (W) => {
|
|
14342
14358
|
},
|
|
14343
14359
|
// @ts-ignore
|
|
14344
14360
|
// eslint-disable-next-line no-void
|
|
14345
|
-
setGlobalModel: (
|
|
14361
|
+
setGlobalModel: (W, j) => {
|
|
14346
14362
|
}
|
|
14347
14363
|
});
|
|
14348
14364
|
T(e.id, {
|
|
14349
14365
|
type: e.type,
|
|
14350
14366
|
RECORD: ""
|
|
14351
14367
|
});
|
|
14352
|
-
const R = S("click", (
|
|
14368
|
+
const R = S("click", (W) => {
|
|
14353
14369
|
const j = F(e.id);
|
|
14354
|
-
T(e.id, { ...j, type: e.type, RECORD: e.tooltipShow ? p :
|
|
14370
|
+
T(e.id, { ...j, type: e.type, RECORD: e.tooltipShow ? p : W.data });
|
|
14355
14371
|
}), { setRequest: G } = inject(REQUEST_MODEL, {
|
|
14356
|
-
setRequest: (
|
|
14372
|
+
setRequest: (W) => {
|
|
14357
14373
|
}
|
|
14358
14374
|
});
|
|
14359
14375
|
typeof G == "function" && G({
|
|
@@ -14362,12 +14378,12 @@ const _sfc_main$b = defineComponent({
|
|
|
14362
14378
|
sortNum: e.requestSort
|
|
14363
14379
|
});
|
|
14364
14380
|
const H = () => {
|
|
14365
|
-
const
|
|
14366
|
-
T(
|
|
14367
|
-
},
|
|
14368
|
-
o.value.chart.containPixel("grid", [
|
|
14381
|
+
const W = e.id, j = F(W);
|
|
14382
|
+
T(W, { ...j, RECORD: "" });
|
|
14383
|
+
}, U = (W) => {
|
|
14384
|
+
o.value.chart.containPixel("grid", [W.offsetX, W.offsetY]) && R();
|
|
14369
14385
|
};
|
|
14370
|
-
return e.tooltipShow ? b.value["zr:click"] =
|
|
14386
|
+
return e.tooltipShow ? b.value["zr:click"] = U : b.value.click = R, useOnEvent(e, {
|
|
14371
14387
|
refreshData: $,
|
|
14372
14388
|
click: R,
|
|
14373
14389
|
resetRecord: H
|
|
@@ -14584,32 +14600,32 @@ const _sfc_main$a = defineComponent({
|
|
|
14584
14600
|
}), 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
14601
|
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
14602
|
if (G != null && G.length) {
|
|
14587
|
-
const H = [],
|
|
14603
|
+
const H = [], U = {
|
|
14588
14604
|
label: {
|
|
14589
14605
|
show: !1
|
|
14590
14606
|
}
|
|
14591
14607
|
};
|
|
14592
|
-
for (const
|
|
14593
|
-
let j =
|
|
14608
|
+
for (const W of G) {
|
|
14609
|
+
let j = W.value;
|
|
14594
14610
|
const L = j.match(/\{(.+?)\}/g);
|
|
14595
14611
|
let Y = "";
|
|
14596
|
-
if (
|
|
14612
|
+
if (W.x ? Y = "xAxis" : W.y && (Y = "yAxis"), L != null && L.length) {
|
|
14597
14613
|
for (const J of L)
|
|
14598
14614
|
j = j.replace(J, J.slice(1, -1));
|
|
14599
14615
|
if (j) {
|
|
14600
14616
|
const J = runCode(j, {
|
|
14601
|
-
max:
|
|
14602
|
-
min:
|
|
14617
|
+
max: W.x ? unref(d) : W.y ? unref(u) : 0,
|
|
14618
|
+
min: W.x ? unref(C) : W.y ? unref(b) : 0
|
|
14603
14619
|
});
|
|
14604
14620
|
isNaN(+J) || H.push({
|
|
14605
14621
|
[Y]: +J,
|
|
14606
|
-
...
|
|
14622
|
+
...U
|
|
14607
14623
|
});
|
|
14608
14624
|
}
|
|
14609
14625
|
} else
|
|
14610
|
-
isNaN(+
|
|
14611
|
-
[Y]:
|
|
14612
|
-
...
|
|
14626
|
+
isNaN(+W.value) || H.push({
|
|
14627
|
+
[Y]: W.value,
|
|
14628
|
+
...U
|
|
14613
14629
|
});
|
|
14614
14630
|
}
|
|
14615
14631
|
return {
|
|
@@ -14657,18 +14673,18 @@ const _sfc_main$a = defineComponent({
|
|
|
14657
14673
|
for (const G in T)
|
|
14658
14674
|
if (G !== "color") {
|
|
14659
14675
|
let H = T[G];
|
|
14660
|
-
const
|
|
14661
|
-
if (
|
|
14662
|
-
for (const
|
|
14663
|
-
H = H.replace(
|
|
14676
|
+
const U = H.match(/\{(.+?)\}/g);
|
|
14677
|
+
if (U != null && U.length) {
|
|
14678
|
+
for (const W of U)
|
|
14679
|
+
H = H.replace(W, W.slice(1, -1));
|
|
14664
14680
|
if (H) {
|
|
14665
|
-
const
|
|
14681
|
+
const W = runCode(H, {
|
|
14666
14682
|
xMax: unref(d),
|
|
14667
14683
|
xMin: unref(C),
|
|
14668
14684
|
yMax: unref(u),
|
|
14669
14685
|
yMin: unref(b)
|
|
14670
14686
|
});
|
|
14671
|
-
isNaN(+
|
|
14687
|
+
isNaN(+W) || y(R, G, W);
|
|
14672
14688
|
}
|
|
14673
14689
|
} else
|
|
14674
14690
|
isNaN(+T[G]) || y(R, G, T[G]);
|
|
@@ -14841,7 +14857,7 @@ const _sfc_main$a = defineComponent({
|
|
|
14841
14857
|
trigger: e.tooltipTrigger,
|
|
14842
14858
|
formatter(T) {
|
|
14843
14859
|
var L;
|
|
14844
|
-
const { marker: R, seriesName: G, componentType: H } = T,
|
|
14860
|
+
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
14861
|
return ["markLine", "markArea"].includes(H) ? "" : useVariablesInText(
|
|
14846
14862
|
e.tooltipFormatter,
|
|
14847
14863
|
{
|
|
@@ -14849,9 +14865,9 @@ const _sfc_main$a = defineComponent({
|
|
|
14849
14865
|
marker: R,
|
|
14850
14866
|
seriesName: G,
|
|
14851
14867
|
a: G,
|
|
14852
|
-
b:
|
|
14868
|
+
b: W,
|
|
14853
14869
|
c: j,
|
|
14854
|
-
...
|
|
14870
|
+
...U
|
|
14855
14871
|
}
|
|
14856
14872
|
},
|
|
14857
14873
|
{
|
|
@@ -15754,11 +15770,11 @@ const _sfc_main$8 = defineComponent({
|
|
|
15754
15770
|
l.value.chart.containPixel("grid", [j.offsetX, j.offsetY]) && G();
|
|
15755
15771
|
};
|
|
15756
15772
|
e.tooltipShow ? u.value["zr:click"] = H : u.value.click = G;
|
|
15757
|
-
const { setRequest:
|
|
15773
|
+
const { setRequest: U } = inject(REQUEST_MODEL, {
|
|
15758
15774
|
setRequest: (j) => {
|
|
15759
15775
|
}
|
|
15760
15776
|
});
|
|
15761
|
-
return typeof
|
|
15777
|
+
return typeof U == "function" && U({
|
|
15762
15778
|
id: e.id,
|
|
15763
15779
|
requestFn: E,
|
|
15764
15780
|
sortNum: e.requestSort
|
|
@@ -15968,7 +15984,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
15968
15984
|
}];
|
|
15969
15985
|
let R = e.colors[E];
|
|
15970
15986
|
if (e.gradientShow) {
|
|
15971
|
-
const { gradientOffset: H, gradientColors:
|
|
15987
|
+
const { gradientOffset: H, gradientColors: U } = e;
|
|
15972
15988
|
R = {
|
|
15973
15989
|
x: 0.7,
|
|
15974
15990
|
y: 0,
|
|
@@ -15979,10 +15995,10 @@ const _sfc_main$7 = defineComponent({
|
|
|
15979
15995
|
color: e.colors[E]
|
|
15980
15996
|
}, {
|
|
15981
15997
|
offset: H,
|
|
15982
|
-
color:
|
|
15998
|
+
color: U[E]
|
|
15983
15999
|
}, {
|
|
15984
16000
|
offset: 1,
|
|
15985
|
-
color:
|
|
16001
|
+
color: U[E]
|
|
15986
16002
|
}]
|
|
15987
16003
|
};
|
|
15988
16004
|
}
|
|
@@ -16009,16 +16025,16 @@ const _sfc_main$7 = defineComponent({
|
|
|
16009
16025
|
width: e.labelWidth,
|
|
16010
16026
|
overflow: e.labelOverflow,
|
|
16011
16027
|
formatter: (H) => {
|
|
16012
|
-
const { data:
|
|
16028
|
+
const { data: U, value: W } = H;
|
|
16013
16029
|
let j = 0, L = "0%";
|
|
16014
|
-
if (
|
|
16015
|
-
for (const Y of
|
|
16030
|
+
if (U)
|
|
16031
|
+
for (const Y of U.value)
|
|
16016
16032
|
j += +Y;
|
|
16017
|
-
return j && (L = `${(
|
|
16033
|
+
return j && (L = `${(W / j * 100).toFixed(2)}%`), useVariablesInText(
|
|
16018
16034
|
e.labelFormatter,
|
|
16019
16035
|
{
|
|
16020
16036
|
textData: {
|
|
16021
|
-
value:
|
|
16037
|
+
value: W,
|
|
16022
16038
|
percent: L
|
|
16023
16039
|
}
|
|
16024
16040
|
},
|
|
@@ -16856,31 +16872,31 @@ const _sfc_main$4 = defineComponent({
|
|
|
16856
16872
|
const E = b(P);
|
|
16857
16873
|
if (_ != null && _.length) {
|
|
16858
16874
|
const { width: T, left: R, height: G } = E;
|
|
16859
|
-
let H = 0,
|
|
16860
|
-
_.forEach((
|
|
16861
|
-
|
|
16875
|
+
let H = 0, U = 0;
|
|
16876
|
+
_.forEach((W, j) => {
|
|
16877
|
+
W.index = j + 1;
|
|
16862
16878
|
const L = nanoid(), Y = cloneDeep(P);
|
|
16863
16879
|
for (const J of Y) {
|
|
16864
16880
|
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) +
|
|
16881
|
+
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
16882
|
const Z = J.text.match(/\{(.+?)\}/g);
|
|
16867
16883
|
switch (J.type) {
|
|
16868
16884
|
case "ecanText": {
|
|
16869
16885
|
J.data = {
|
|
16870
|
-
value: String(
|
|
16886
|
+
value: String(W[ee.fieldName])
|
|
16871
16887
|
}, Z != null && Z.length || (J.text = "{value}");
|
|
16872
16888
|
break;
|
|
16873
16889
|
}
|
|
16874
16890
|
case "ecanProportion": {
|
|
16875
16891
|
J.data = {
|
|
16876
|
-
percent: String(
|
|
16892
|
+
percent: String(W[ee.fieldName])
|
|
16877
16893
|
}, Z != null && Z.length || (J.text = "{percent}");
|
|
16878
16894
|
break;
|
|
16879
16895
|
}
|
|
16880
16896
|
}
|
|
16881
16897
|
}
|
|
16882
16898
|
}
|
|
16883
|
-
$ &&
|
|
16899
|
+
$ && W.index % $ === 0 ? (H = 0, U += q + G) : H += q + T, O.push(...Y), p.value[L] = W;
|
|
16884
16900
|
}), f.value = {
|
|
16885
16901
|
width: (($ || _.length) * (T + q) + R) * unref(C) + "px",
|
|
16886
16902
|
height: ($ ? Math.ceil(_.length / $) * (q + G) : q + G) * unref(C) + "px"
|
|
@@ -17566,16 +17582,16 @@ var lottie$1 = { exports: {} };
|
|
|
17566
17582
|
E[S].ty === "gr" && P(E[S].it);
|
|
17567
17583
|
}
|
|
17568
17584
|
function B(E) {
|
|
17569
|
-
var S, F, T = E.length, R, G, H,
|
|
17585
|
+
var S, F, T = E.length, R, G, H, U;
|
|
17570
17586
|
for (F = 0; F < T; F += 1) {
|
|
17571
17587
|
if (S = E[F], S.hasMask) {
|
|
17572
|
-
var
|
|
17573
|
-
for (G =
|
|
17574
|
-
if (
|
|
17575
|
-
|
|
17588
|
+
var W = S.masksProperties;
|
|
17589
|
+
for (G = W.length, R = 0; R < G; R += 1)
|
|
17590
|
+
if (W[R].pt.k.i)
|
|
17591
|
+
W[R].pt.k.c = W[R].cl;
|
|
17576
17592
|
else
|
|
17577
|
-
for (
|
|
17578
|
-
|
|
17593
|
+
for (U = W[R].pt.k.length, H = 0; H < U; H += 1)
|
|
17594
|
+
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
17595
|
}
|
|
17580
17596
|
S.ty === 4 && P(S.shapes);
|
|
17581
17597
|
}
|
|
@@ -18962,18 +18978,18 @@ var lottie$1 = { exports: {} };
|
|
|
18962
18978
|
function u(E, S, F) {
|
|
18963
18979
|
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
18980
|
}
|
|
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] =
|
|
18981
|
+
function b(E, S, F, T, R, G, H, U, W, j, L, Y, J, ee, X, Z) {
|
|
18982
|
+
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
18983
|
}
|
|
18968
18984
|
function p(E, S, F) {
|
|
18969
18985
|
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
18986
|
}
|
|
18971
|
-
function y(E, S, F, T, R, G, H,
|
|
18987
|
+
function y(E, S, F, T, R, G, H, U, W, j, L, Y, J, ee, X, Z) {
|
|
18972
18988
|
var K = this.props;
|
|
18973
|
-
if (E === 1 && S === 0 && F === 0 && T === 0 && R === 0 && G === 1 && H === 0 &&
|
|
18989
|
+
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
18990
|
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
18991
|
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 *
|
|
18992
|
+
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
18993
|
}
|
|
18978
18994
|
function A(E) {
|
|
18979
18995
|
var S = E.props;
|
|
@@ -19018,8 +19034,8 @@ var lottie$1 = { exports: {} };
|
|
|
19018
19034
|
return E * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14];
|
|
19019
19035
|
}
|
|
19020
19036
|
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
|
|
19037
|
+
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();
|
|
19038
|
+
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
19039
|
}
|
|
19024
19040
|
function M(E) {
|
|
19025
19041
|
var S = this.getInverseMatrix();
|
|
@@ -19036,8 +19052,8 @@ var lottie$1 = { exports: {} };
|
|
|
19036
19052
|
if (this.isIdentity())
|
|
19037
19053
|
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
19054
|
else {
|
|
19039
|
-
var R = this.props[0], G = this.props[1], H = this.props[4],
|
|
19040
|
-
T[0] = E[0] * R + E[1] * H +
|
|
19055
|
+
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];
|
|
19056
|
+
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
19057
|
}
|
|
19042
19058
|
return T;
|
|
19043
19059
|
}
|
|
@@ -19960,15 +19976,15 @@ var lottie$1 = { exports: {} };
|
|
|
19960
19976
|
E[S].loaded = !0, T -= 1;
|
|
19961
19977
|
else if (E[S].fOrigin === "p" || E[S].origin === 3) {
|
|
19962
19978
|
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
|
-
|
|
19979
|
+
var U = createTag("style");
|
|
19980
|
+
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
19981
|
}
|
|
19966
19982
|
} else if (E[S].fOrigin === "g" || E[S].origin === 1) {
|
|
19967
19983
|
for (G = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), H = 0; H < G.length; H += 1)
|
|
19968
19984
|
G[H].href.indexOf(E[S].fPath) !== -1 && (R = !1);
|
|
19969
19985
|
if (R) {
|
|
19970
|
-
var
|
|
19971
|
-
|
|
19986
|
+
var W = createTag("link");
|
|
19987
|
+
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
19988
|
}
|
|
19973
19989
|
} else if (E[S].fOrigin === "t" || E[S].origin === 2) {
|
|
19974
19990
|
for (G = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), H = 0; H < G.length; H += 1)
|
|
@@ -21481,7 +21497,7 @@ var lottie$1 = { exports: {} };
|
|
|
21481
21497
|
C = u.length, c = 0, f = 0;
|
|
21482
21498
|
var q = e.finalSize * 1.2 * 0.714, $ = !0, P, B, E, S, F;
|
|
21483
21499
|
S = i.length;
|
|
21484
|
-
var T, R = -1, G, H,
|
|
21500
|
+
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
21501
|
if (e.j === 2 || e.j === 1) {
|
|
21486
21502
|
var de = 0, be = 0, Ce = e.j === 2 ? -0.5 : -1, Se = 0, Pe = !0;
|
|
21487
21503
|
for (d = 0; d < C; d += 1)
|
|
@@ -21499,7 +21515,7 @@ var lottie$1 = { exports: {} };
|
|
|
21499
21515
|
}
|
|
21500
21516
|
for (d = 0; d < C; d += 1) {
|
|
21501
21517
|
if (o.reset(), J = 1, u[d].n)
|
|
21502
|
-
c = 0, f += e.yOffset, f += $ ? 1 : 0, p =
|
|
21518
|
+
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
21519
|
else {
|
|
21504
21520
|
if (this._hasMaskedPath) {
|
|
21505
21521
|
if (Y !== u[d].line) {
|
|
@@ -21518,7 +21534,7 @@ var lottie$1 = { exports: {} };
|
|
|
21518
21534
|
for (E = 0; E < S; E += 1)
|
|
21519
21535
|
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
21536
|
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,
|
|
21537
|
+
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
21538
|
G = u[d].an / 2 - u[d].add, o.translate(-G, 0, 0);
|
|
21523
21539
|
} else
|
|
21524
21540
|
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 +21563,7 @@ var lottie$1 = { exports: {} };
|
|
|
21547
21563
|
var Te = Math.atan(M) * 180 / Math.PI;
|
|
21548
21564
|
y.point[0] < x.point[0] && (Te += 180), o.rotate(-Te * Math.PI / 180);
|
|
21549
21565
|
}
|
|
21550
|
-
o.translate(H,
|
|
21566
|
+
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
21567
|
} else {
|
|
21552
21568
|
switch (o.translate(c, f, 0), e.ps && o.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
|
|
21553
21569
|
case 1:
|
|
@@ -25114,10 +25130,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25114
25130
|
dataIndex: xe,
|
|
25115
25131
|
title: we,
|
|
25116
25132
|
...Ne
|
|
25117
|
-
},
|
|
25133
|
+
}, U(Ge, { ...Ke, type: e.type, RECORD: Ne }), setTimeout(() => {
|
|
25118
25134
|
handleJumpLink(e, {
|
|
25119
25135
|
pageMode: unref(n),
|
|
25120
|
-
getRecordValueByKeyName:
|
|
25136
|
+
getRecordValueByKeyName: W
|
|
25121
25137
|
});
|
|
25122
25138
|
}, 0);
|
|
25123
25139
|
})
|
|
@@ -25326,7 +25342,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25326
25342
|
return goUp;
|
|
25327
25343
|
if (re < 0)
|
|
25328
25344
|
return goDown;
|
|
25329
|
-
}, G = useEmitEvent(e), { getGlobalModel: H, setGlobalModel:
|
|
25345
|
+
}, G = useEmitEvent(e), { getGlobalModel: H, setGlobalModel: U, getRecordValueByKeyName: W } = inject(GLOBAL_MODEL, {
|
|
25330
25346
|
// @ts-ignore
|
|
25331
25347
|
// eslint-disable-next-line no-void
|
|
25332
25348
|
getGlobalModel: (Q) => {
|
|
@@ -25340,7 +25356,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25340
25356
|
getRecordValueByKeyName: (Q) => {
|
|
25341
25357
|
}
|
|
25342
25358
|
});
|
|
25343
|
-
|
|
25359
|
+
U(e.id, {
|
|
25344
25360
|
type: e.type,
|
|
25345
25361
|
RECORD: ""
|
|
25346
25362
|
});
|
|
@@ -25371,7 +25387,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25371
25387
|
}, ee = ref(-1), X = (Q, re) => ({
|
|
25372
25388
|
onClick: G("rowClick", () => {
|
|
25373
25389
|
const ne = e.id, ce = H(ne);
|
|
25374
|
-
|
|
25390
|
+
U(ne, { ...ce, type: e.type, RECORD: Q }), ee.value = re;
|
|
25375
25391
|
})
|
|
25376
25392
|
}), { loadedData: Z } = inject(LOADED_DATA, {
|
|
25377
25393
|
loadedData: {}
|
|
@@ -25395,7 +25411,7 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25395
25411
|
}
|
|
25396
25412
|
}, ie = () => {
|
|
25397
25413
|
const Q = e.id, re = H(Q);
|
|
25398
|
-
|
|
25414
|
+
U(Q, { ...re, type: e.type, RECORD: "" });
|
|
25399
25415
|
}, ae = computed(() => {
|
|
25400
25416
|
const Q = unref(p);
|
|
25401
25417
|
let re = 0;
|
|
@@ -25987,9 +26003,9 @@ const _sfc_main$1 = defineComponent({
|
|
|
25987
26003
|
for (let T = 0; T < F.length; T++) {
|
|
25988
26004
|
const R = F[T];
|
|
25989
26005
|
let G = R.slice(1, -1).trim();
|
|
25990
|
-
const H = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,
|
|
25991
|
-
for (let
|
|
25992
|
-
const j = W
|
|
26006
|
+
const H = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, U = G.match(H);
|
|
26007
|
+
for (let W = 0; W < U.length; W++) {
|
|
26008
|
+
const j = U[W], L = E[j];
|
|
25993
26009
|
L != null && (G = G.replace(j, L));
|
|
25994
26010
|
}
|
|
25995
26011
|
S = S.replace(R, G);
|
|
@@ -26007,14 +26023,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
26007
26023
|
var R, G;
|
|
26008
26024
|
if (T) {
|
|
26009
26025
|
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(
|
|
26026
|
+
let U = "";
|
|
26027
|
+
for (const W of H) {
|
|
26028
|
+
const j = C(W) || [];
|
|
26013
26029
|
if (j != null && j.length)
|
|
26014
26030
|
for (const L of j)
|
|
26015
|
-
|
|
26031
|
+
U += `<div style="word-break: break-all;white-space: normal;">${L}</div>`;
|
|
26016
26032
|
}
|
|
26017
|
-
|
|
26033
|
+
U = `<div style="max-width:200px;">${U}</div>`, a.value = U, S(unref(b), U);
|
|
26018
26034
|
} else
|
|
26019
26035
|
F.aborted ? a.value = "Loading" : a.value = E, S(unref(b), a.value);
|
|
26020
26036
|
u.value = !1;
|
|
@@ -26083,11 +26099,11 @@ const _sfc_main$1 = defineComponent({
|
|
|
26083
26099
|
b.value = T;
|
|
26084
26100
|
const { name: G = "" } = F, { requestUrl: H } = e.tooltipRequestData;
|
|
26085
26101
|
if (!H) {
|
|
26086
|
-
let
|
|
26087
|
-
|
|
26102
|
+
let U = "", W = e.tooltipFormatter;
|
|
26103
|
+
W === "" && (W = "{name}:{value}");
|
|
26088
26104
|
const j = unref(v).find((L) => L.name === G);
|
|
26089
|
-
return j ? (
|
|
26090
|
-
|
|
26105
|
+
return j ? (U += useVariablesInText(
|
|
26106
|
+
W,
|
|
26091
26107
|
{
|
|
26092
26108
|
textData: {
|
|
26093
26109
|
name: G,
|
|
@@ -26098,7 +26114,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
26098
26114
|
useNewline: !0,
|
|
26099
26115
|
useSpace: !0
|
|
26100
26116
|
}
|
|
26101
|
-
),
|
|
26117
|
+
), U) : G;
|
|
26102
26118
|
}
|
|
26103
26119
|
if (unref(u))
|
|
26104
26120
|
unref(i) !== G && (p.abort(), p = new AbortController());
|
|
@@ -26174,21 +26190,23 @@ const _sfc_main$1 = defineComponent({
|
|
|
26174
26190
|
} else
|
|
26175
26191
|
registerMap(S, {});
|
|
26176
26192
|
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}`;
|
|
26193
|
+
}, I = async (E) => {
|
|
26194
|
+
var T, R, G, H;
|
|
26195
|
+
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
26196
|
if (S != null && S.path) {
|
|
26188
|
-
const
|
|
26189
|
-
registerMap(F, (
|
|
26190
|
-
} else
|
|
26197
|
+
const U = await request(S.path);
|
|
26198
|
+
registerMap(F, (U == null ? void 0 : U.data) || {});
|
|
26199
|
+
} else if (Array.isArray(S))
|
|
26200
|
+
if (A.value = S, (G = S[0]) != null && G.mapUrl) {
|
|
26201
|
+
const U = await request((H = S[0]) == null ? void 0 : H.mapUrl);
|
|
26202
|
+
registerMap(F, (U == null ? void 0 : U.data) || {});
|
|
26203
|
+
} else
|
|
26204
|
+
registerMap(F, {});
|
|
26205
|
+
else
|
|
26191
26206
|
registerMap(F, {});
|
|
26207
|
+
nextTick(() => {
|
|
26208
|
+
w.value = !0;
|
|
26209
|
+
});
|
|
26192
26210
|
}, _ = useRequestData(e, I), O = async () => {
|
|
26193
26211
|
if (e.dataType === "request") {
|
|
26194
26212
|
w.value = !1;
|
|
@@ -26196,13 +26214,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
26196
26214
|
const E = await _();
|
|
26197
26215
|
I(E);
|
|
26198
26216
|
} catch (E) {
|
|
26199
|
-
console.error(E);
|
|
26200
|
-
} finally {
|
|
26201
|
-
w.value = !0;
|
|
26217
|
+
console.error(E), w.value = !0;
|
|
26202
26218
|
}
|
|
26203
26219
|
}
|
|
26204
26220
|
}, M = () => {
|
|
26205
26221
|
switch (e.dataType) {
|
|
26222
|
+
case "static":
|
|
26223
|
+
k();
|
|
26224
|
+
break;
|
|
26206
26225
|
case "request":
|
|
26207
26226
|
O();
|
|
26208
26227
|
break;
|
|
@@ -26245,7 +26264,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
26245
26264
|
}
|
|
26246
26265
|
};
|
|
26247
26266
|
}
|
|
26248
|
-
}),
|
|
26267
|
+
}), Map_vue_vue_type_style_index_0_scoped_61d923b0_lang = "", _hoisted_1 = ["src"];
|
|
26249
26268
|
function _sfc_render$1(e, r, n, i, a, o) {
|
|
26250
26269
|
const s = resolveComponent("echarts");
|
|
26251
26270
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26268,7 +26287,7 @@ function _sfc_render$1(e, r, n, i, a, o) {
|
|
|
26268
26287
|
])
|
|
26269
26288
|
], 4);
|
|
26270
26289
|
}
|
|
26271
|
-
const Map$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
26290
|
+
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
26291
|
...props,
|
|
26273
26292
|
name: "下拉框选择器-数据",
|
|
26274
26293
|
keyName: "下拉框选择器-数据",
|
|
@@ -28122,18 +28141,18 @@ var stdin_default$7 = defineComponent({
|
|
|
28122
28141
|
return;
|
|
28123
28142
|
const {
|
|
28124
28143
|
active: H
|
|
28125
|
-
} = o,
|
|
28144
|
+
} = o, U = m(T), W = x(U, R);
|
|
28126
28145
|
if (e.loop) {
|
|
28127
|
-
if (c[0] &&
|
|
28128
|
-
const j =
|
|
28146
|
+
if (c[0] && W !== b.value) {
|
|
28147
|
+
const j = W < b.value;
|
|
28129
28148
|
c[0].setOffset(j ? y.value : 0);
|
|
28130
28149
|
}
|
|
28131
|
-
if (c[d.value - 1] &&
|
|
28132
|
-
const j =
|
|
28150
|
+
if (c[d.value - 1] && W !== 0) {
|
|
28151
|
+
const j = W > 0;
|
|
28133
28152
|
c[d.value - 1].setOffset(j ? -y.value : 0);
|
|
28134
28153
|
}
|
|
28135
28154
|
}
|
|
28136
|
-
o.active =
|
|
28155
|
+
o.active = U, o.offset = W, G && U !== H && r("change", A.value);
|
|
28137
28156
|
}, k = () => {
|
|
28138
28157
|
o.swiping = !0, o.active <= -1 ? w({
|
|
28139
28158
|
pace: d.value
|
|
@@ -28166,14 +28185,14 @@ var stdin_default$7 = defineComponent({
|
|
|
28166
28185
|
const R = () => {
|
|
28167
28186
|
var G, H;
|
|
28168
28187
|
if (!isHidden(i)) {
|
|
28169
|
-
const
|
|
28188
|
+
const U = {
|
|
28170
28189
|
width: i.value.offsetWidth,
|
|
28171
28190
|
height: i.value.offsetHeight
|
|
28172
28191
|
};
|
|
28173
|
-
o.rect =
|
|
28192
|
+
o.rect = U, o.width = +((G = e.width) != null ? G : U.width), o.height = +((H = e.height) != null ? H : U.height);
|
|
28174
28193
|
}
|
|
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
|
-
|
|
28194
|
+
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) => {
|
|
28195
|
+
U.setOffset(0);
|
|
28177
28196
|
}), D();
|
|
28178
28197
|
};
|
|
28179
28198
|
isHidden(i) ? nextTick().then(R) : R();
|
|
@@ -28194,9 +28213,9 @@ var stdin_default$7 = defineComponent({
|
|
|
28194
28213
|
const T = Date.now() - q, R = u.value / T;
|
|
28195
28214
|
if ((Math.abs(R) > 0.25 || Math.abs(u.value) > C.value / 2) && v.value) {
|
|
28196
28215
|
const H = e.vertical ? l.offsetY.value : l.offsetX.value;
|
|
28197
|
-
let
|
|
28198
|
-
e.loop ?
|
|
28199
|
-
pace:
|
|
28216
|
+
let U = 0;
|
|
28217
|
+
e.loop ? U = H > 0 ? u.value > 0 ? -1 : 1 : 0 : U = -Math[u.value > 0 ? "ceil" : "floor"](u.value / C.value), w({
|
|
28218
|
+
pace: U,
|
|
28200
28219
|
emitChange: !0
|
|
28201
28220
|
});
|
|
28202
28221
|
} else
|
|
@@ -28364,26 +28383,26 @@ var stdin_default$5 = defineComponent({
|
|
|
28364
28383
|
}), m = computed(() => A.length > +e.swipeThreshold || !e.ellipsis || e.shrink), x = computed(() => ({
|
|
28365
28384
|
borderColor: e.color,
|
|
28366
28385
|
background: e.background
|
|
28367
|
-
})), w = (
|
|
28386
|
+
})), w = (U, W) => {
|
|
28368
28387
|
var j;
|
|
28369
|
-
return (j =
|
|
28388
|
+
return (j = U.name) != null ? j : W;
|
|
28370
28389
|
}, 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 || !
|
|
28390
|
+
const U = A[g.currentIndex];
|
|
28391
|
+
if (U)
|
|
28392
|
+
return w(U, g.currentIndex);
|
|
28393
|
+
}), I = computed(() => unitToPx(e.offsetTop)), _ = computed(() => e.sticky ? I.value + i : 0), O = (U) => {
|
|
28394
|
+
const W = f.value, j = p.value;
|
|
28395
|
+
if (!m.value || !W || !j || !j[g.currentIndex])
|
|
28377
28396
|
return;
|
|
28378
|
-
const L = j[g.currentIndex].$el, Y = L.offsetLeft - (
|
|
28379
|
-
s && s(), s = scrollLeftTo(
|
|
28397
|
+
const L = j[g.currentIndex].$el, Y = L.offsetLeft - (W.offsetWidth - L.offsetWidth) / 2;
|
|
28398
|
+
s && s(), s = scrollLeftTo(W, Y, U ? 0 : +e.duration);
|
|
28380
28399
|
}, M = () => {
|
|
28381
|
-
const
|
|
28400
|
+
const U = g.inited;
|
|
28382
28401
|
nextTick(() => {
|
|
28383
|
-
const
|
|
28384
|
-
if (!
|
|
28402
|
+
const W = p.value;
|
|
28403
|
+
if (!W || !W[g.currentIndex] || e.type !== "line" || isHidden(c.value))
|
|
28385
28404
|
return;
|
|
28386
|
-
const j =
|
|
28405
|
+
const j = W[g.currentIndex].$el, {
|
|
28387
28406
|
lineWidth: L,
|
|
28388
28407
|
lineHeight: Y
|
|
28389
28408
|
} = e, J = j.offsetLeft + j.offsetWidth / 2, ee = {
|
|
@@ -28391,73 +28410,73 @@ var stdin_default$5 = defineComponent({
|
|
|
28391
28410
|
backgroundColor: e.color,
|
|
28392
28411
|
transform: `translateX(${J}px) translateX(-50%)`
|
|
28393
28412
|
};
|
|
28394
|
-
if (
|
|
28413
|
+
if (U && (ee.transitionDuration = `${e.duration}s`), isDef(Y)) {
|
|
28395
28414
|
const X = addUnit(Y);
|
|
28396
28415
|
ee.height = X, ee.borderRadius = X;
|
|
28397
28416
|
}
|
|
28398
28417
|
g.lineStyle = ee;
|
|
28399
28418
|
});
|
|
28400
|
-
}, D = (
|
|
28401
|
-
const
|
|
28402
|
-
for (;
|
|
28403
|
-
if (!A[
|
|
28404
|
-
return
|
|
28405
|
-
|
|
28406
|
-
}
|
|
28407
|
-
}, V = (
|
|
28408
|
-
const j = D(
|
|
28419
|
+
}, D = (U) => {
|
|
28420
|
+
const W = U < g.currentIndex ? -1 : 1;
|
|
28421
|
+
for (; U >= 0 && U < A.length; ) {
|
|
28422
|
+
if (!A[U].disabled)
|
|
28423
|
+
return U;
|
|
28424
|
+
U += W;
|
|
28425
|
+
}
|
|
28426
|
+
}, V = (U, W) => {
|
|
28427
|
+
const j = D(U);
|
|
28409
28428
|
if (!isDef(j))
|
|
28410
28429
|
return;
|
|
28411
28430
|
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 = (
|
|
28431
|
+
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));
|
|
28432
|
+
}, N = (U, W) => {
|
|
28433
|
+
const j = A.find((Y, J) => w(Y, J) === U), L = j ? A.indexOf(j) : 0;
|
|
28434
|
+
V(L, W);
|
|
28435
|
+
}, q = (U = !1) => {
|
|
28417
28436
|
if (e.scrollspy) {
|
|
28418
|
-
const
|
|
28419
|
-
if (
|
|
28420
|
-
const j = getElementTop(
|
|
28421
|
-
a = !0, l && l(), l = scrollTopTo(b.value, j,
|
|
28437
|
+
const W = A[g.currentIndex].$el;
|
|
28438
|
+
if (W && b.value) {
|
|
28439
|
+
const j = getElementTop(W, b.value) - _.value;
|
|
28440
|
+
a = !0, l && l(), l = scrollTopTo(b.value, j, U ? 0 : +e.duration, () => {
|
|
28422
28441
|
a = !1;
|
|
28423
28442
|
});
|
|
28424
28443
|
}
|
|
28425
28444
|
}
|
|
28426
|
-
}, $ = (
|
|
28445
|
+
}, $ = (U, W, j) => {
|
|
28427
28446
|
const {
|
|
28428
28447
|
title: L,
|
|
28429
28448
|
disabled: Y
|
|
28430
|
-
} = A[
|
|
28449
|
+
} = A[W], J = w(A[W], W);
|
|
28431
28450
|
Y || (callInterceptor(e.beforeChange, {
|
|
28432
28451
|
args: [J],
|
|
28433
28452
|
done: () => {
|
|
28434
|
-
V(
|
|
28453
|
+
V(W), q();
|
|
28435
28454
|
}
|
|
28436
|
-
}), route(
|
|
28455
|
+
}), route(U)), r("clickTab", {
|
|
28437
28456
|
name: J,
|
|
28438
28457
|
title: L,
|
|
28439
28458
|
event: j,
|
|
28440
28459
|
disabled: Y
|
|
28441
28460
|
});
|
|
28442
|
-
}, P = (
|
|
28443
|
-
o =
|
|
28444
|
-
}, B = (
|
|
28461
|
+
}, P = (U) => {
|
|
28462
|
+
o = U.isFixed, r("scroll", U);
|
|
28463
|
+
}, B = (U) => {
|
|
28445
28464
|
nextTick(() => {
|
|
28446
|
-
N(
|
|
28465
|
+
N(U), q(!0);
|
|
28447
28466
|
});
|
|
28448
28467
|
}, E = () => {
|
|
28449
|
-
for (let
|
|
28468
|
+
for (let U = 0; U < A.length; U++) {
|
|
28450
28469
|
const {
|
|
28451
|
-
top:
|
|
28452
|
-
} = useRect(A[
|
|
28453
|
-
if (
|
|
28454
|
-
return
|
|
28470
|
+
top: W
|
|
28471
|
+
} = useRect(A[U].$el);
|
|
28472
|
+
if (W > _.value)
|
|
28473
|
+
return U === 0 ? 0 : U - 1;
|
|
28455
28474
|
}
|
|
28456
28475
|
return A.length - 1;
|
|
28457
28476
|
}, S = () => {
|
|
28458
28477
|
if (e.scrollspy && !a) {
|
|
28459
|
-
const
|
|
28460
|
-
V(
|
|
28478
|
+
const U = E();
|
|
28479
|
+
V(U);
|
|
28461
28480
|
}
|
|
28462
28481
|
}, F = () => {
|
|
28463
28482
|
if (e.type === "line" && A.length)
|
|
@@ -28466,7 +28485,7 @@ var stdin_default$5 = defineComponent({
|
|
|
28466
28485
|
style: g.lineStyle
|
|
28467
28486
|
}, null);
|
|
28468
28487
|
}, T = () => {
|
|
28469
|
-
var
|
|
28488
|
+
var U, W, j;
|
|
28470
28489
|
const {
|
|
28471
28490
|
type: L,
|
|
28472
28491
|
border: Y,
|
|
@@ -28485,18 +28504,18 @@ var stdin_default$5 = defineComponent({
|
|
|
28485
28504
|
}]),
|
|
28486
28505
|
style: x.value,
|
|
28487
28506
|
"aria-orientation": "horizontal"
|
|
28488
|
-
}, [(
|
|
28507
|
+
}, [(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
28508
|
return J ? createVNode("div", {
|
|
28490
28509
|
ref: d
|
|
28491
28510
|
}, [ee]) : ee;
|
|
28492
28511
|
}, R = () => {
|
|
28493
28512
|
M(), nextTick(() => {
|
|
28494
|
-
var
|
|
28495
|
-
O(!0), (
|
|
28513
|
+
var U, W;
|
|
28514
|
+
O(!0), (W = (U = C.value) == null ? void 0 : U.swipeRef.value) == null || W.resize();
|
|
28496
28515
|
});
|
|
28497
28516
|
};
|
|
28498
|
-
watch(() => [e.color, e.duration, e.lineWidth, e.lineHeight], M), watch(windowWidth, R), watch(() => e.active, (
|
|
28499
|
-
|
|
28517
|
+
watch(() => [e.color, e.duration, e.lineWidth, e.lineHeight], M), watch(windowWidth, R), watch(() => e.active, (U) => {
|
|
28518
|
+
U !== k.value && N(U);
|
|
28500
28519
|
}), watch(() => A.length, () => {
|
|
28501
28520
|
g.inited && (N(e.active), M(), nextTick(() => {
|
|
28502
28521
|
O(!0);
|
|
@@ -28506,7 +28525,7 @@ var stdin_default$5 = defineComponent({
|
|
|
28506
28525
|
N(e.active, !0), nextTick(() => {
|
|
28507
28526
|
g.inited = !0, d.value && (i = useRect(d.value).height), O(!0);
|
|
28508
28527
|
});
|
|
28509
|
-
}, H = (
|
|
28528
|
+
}, H = (U, W) => r("rendered", U, W);
|
|
28510
28529
|
return useExpose({
|
|
28511
28530
|
resize: R,
|
|
28512
28531
|
scrollTo: B
|
|
@@ -28543,8 +28562,8 @@ var stdin_default$5 = defineComponent({
|
|
|
28543
28562
|
onChange: V
|
|
28544
28563
|
}, {
|
|
28545
28564
|
default: () => {
|
|
28546
|
-
var
|
|
28547
|
-
return [(
|
|
28565
|
+
var U;
|
|
28566
|
+
return [(U = n.default) == null ? void 0 : U.call(n)];
|
|
28548
28567
|
}
|
|
28549
28568
|
})]);
|
|
28550
28569
|
}
|