@ecan-bi/datav 1.3.87 → 1.3.88
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 +733 -711
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/media/iframe/Iframe.vue.d.ts +16 -0
- package/types/media/iframe/index.d.ts +16 -0
- package/types/media/iframe/props.d.ts +11 -0
- package/types/table/table/Table.vue.d.ts +26 -3
- package/types/table/table/index.d.ts +26 -3
- package/types/table/table/props.d.ts +15 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
1
|
+
/*! @ecan-bi/datav@1.3.88 */
|
|
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";
|
|
@@ -1561,14 +1561,14 @@ const withInstall$1 = (e, r) => {
|
|
|
1561
1561
|
const n = without(styleList, ...r);
|
|
1562
1562
|
return computed(() => pick$1(e, n));
|
|
1563
1563
|
}, EVENT_BUS = "EVENT_BUS", GLOBAL_CONFIG = "GLOBAL_CONFIG", GLOBAL_MODEL = "GLOBAL_MODEL", REQUEST_MODEL = "REQUEST_MODEL", GLOBAL_TOKEN = "GLOBAL_TOKEN", REFRESH_PAGE = "REFRESH_PAGE", MODAL_MODEL = "MODAL_MODEL", LOADED_DATA = "LOADED_DATA", ZOOM_FONT_SIZE = 18, CONTEXT = "ygt";
|
|
1564
|
-
var Xe;
|
|
1565
|
-
const INDICATOR_URL = ((Xe = window == null ? void 0 : window.config) == null ? void 0 : Xe.indicatorURL) || "";
|
|
1566
|
-
var Qe;
|
|
1567
|
-
(Qe = window == null ? void 0 : window.config) != null && Qe.uploadPath;
|
|
1568
1564
|
var et;
|
|
1569
|
-
const
|
|
1565
|
+
const INDICATOR_URL = ((et = window == null ? void 0 : window.config) == null ? void 0 : et.indicatorURL) || "";
|
|
1570
1566
|
var tt;
|
|
1571
|
-
|
|
1567
|
+
(tt = window == null ? void 0 : window.config) != null && tt.uploadPath;
|
|
1568
|
+
var rt;
|
|
1569
|
+
const BASE_URL = ((rt = window == null ? void 0 : window.config) == null ? void 0 : rt.routerBaseURL) || "./";
|
|
1570
|
+
var nt;
|
|
1571
|
+
const ERD_URL = ((nt = window == null ? void 0 : window.config) == null ? void 0 : nt.erdURL) || "", MODEL_KEY_LIST = ["table", "bar", "combograph", "line", "pie", "radar", "scatter", "list", "circulate"], useOnEvent = (e, r) => {
|
|
1572
1572
|
watch(() => e.id, (n) => {
|
|
1573
1573
|
const i = inject(EVENT_BUS, {
|
|
1574
1574
|
// @ts-ignore
|
|
@@ -2969,18 +2969,18 @@ function requireSha512() {
|
|
|
2969
2969
|
]);
|
|
2970
2970
|
},
|
|
2971
2971
|
_doProcessBlock: function(m, g) {
|
|
2972
|
-
for (var A = this._hash.words, C = A[0], p = A[1], v = A[2], b = A[3], w = A[4], k = A[5], I = A[6], _ = A[7], O = C.high, B = C.low, D = p.high, L = p.low, N = v.high, q = v.low, $ = b.high, P = b.low, M = w.high, E = w.low, S = k.high, F = k.low, T = I.high, R = I.low, G = _.high, H = _.low, U = O, W = B, j = D, V = L, Y = N, J = q, ee = $,
|
|
2973
|
-
var
|
|
2972
|
+
for (var A = this._hash.words, C = A[0], p = A[1], v = A[2], b = A[3], w = A[4], k = A[5], I = A[6], _ = A[7], O = C.high, B = C.low, D = p.high, L = p.low, N = v.high, q = v.low, $ = b.high, P = b.low, M = w.high, E = w.low, S = k.high, F = k.low, T = I.high, R = I.low, G = _.high, H = _.low, U = O, W = B, j = D, V = L, Y = N, J = q, ee = $, X = P, Z = M, K = E, te = S, ne = F, ie = T, ae = R, ce = G, he = H, de = 0; de < 80; de++) {
|
|
2973
|
+
var be, Ce, we = u[de];
|
|
2974
2974
|
if (de < 16)
|
|
2975
|
-
Ce = we.high = m[g + de * 2] | 0,
|
|
2975
|
+
Ce = we.high = m[g + de * 2] | 0, be = we.low = m[g + de * 2 + 1] | 0;
|
|
2976
2976
|
else {
|
|
2977
|
-
var
|
|
2978
|
-
|
|
2977
|
+
var Te = u[de - 15], Se = Te.high, ke = Te.low, pe = (Se >>> 1 | ke << 31) ^ (Se >>> 8 | ke << 24) ^ Se >>> 7, ve = (ke >>> 1 | Se << 31) ^ (ke >>> 8 | Se << 24) ^ (ke >>> 7 | Se << 25), me = u[de - 2], Ae = me.high, _e = me.low, Oe = (Ae >>> 19 | _e << 13) ^ (Ae << 3 | _e >>> 29) ^ Ae >>> 6, Le = (_e >>> 19 | Ae << 13) ^ (_e << 3 | Ae >>> 29) ^ (_e >>> 6 | Ae << 26), Ve = u[de - 7], qe = Ve.high, Ie = Ve.low, Ge = u[de - 16], Fe = Ge.high, Pe = Ge.low;
|
|
2978
|
+
be = ve + Ie, Ce = pe + qe + (be >>> 0 < ve >>> 0 ? 1 : 0), be = be + Le, Ce = Ce + Oe + (be >>> 0 < Le >>> 0 ? 1 : 0), be = be + Pe, Ce = Ce + Fe + (be >>> 0 < Pe >>> 0 ? 1 : 0), we.high = Ce, we.low = be;
|
|
2979
2979
|
}
|
|
2980
|
-
var Re =
|
|
2981
|
-
ce =
|
|
2980
|
+
var Re = Z & te ^ ~Z & ie, Me = K & ne ^ ~K & ae, Be = U & j ^ U & Y ^ j & Y, Ne = W & V ^ W & J ^ V & J, $e = (U >>> 28 | W << 4) ^ (U << 30 | W >>> 2) ^ (U << 25 | W >>> 7), He = (W >>> 28 | U << 4) ^ (W << 30 | U >>> 2) ^ (W << 25 | U >>> 7), Ye = (Z >>> 14 | K << 18) ^ (Z >>> 18 | K << 14) ^ (Z << 23 | K >>> 9), Q = (K >>> 14 | Z << 18) ^ (K >>> 18 | Z << 14) ^ (K << 23 | Z >>> 9), re = x[de], oe = re.high, ue = re.low, le = he + Q, fe = ce + Ye + (le >>> 0 < he >>> 0 ? 1 : 0), le = le + Me, fe = fe + Re + (le >>> 0 < Me >>> 0 ? 1 : 0), le = le + ue, fe = fe + oe + (le >>> 0 < ue >>> 0 ? 1 : 0), le = le + be, fe = fe + Ce + (le >>> 0 < be >>> 0 ? 1 : 0), se = He + Ne, ge = $e + Be + (se >>> 0 < He >>> 0 ? 1 : 0);
|
|
2981
|
+
ce = ie, he = ae, ie = te, ae = ne, te = Z, ne = K, K = X + le | 0, Z = ee + fe + (K >>> 0 < X >>> 0 ? 1 : 0) | 0, ee = Y, X = J, Y = j, J = V, j = U, V = W, W = le + se | 0, U = fe + ge + (W >>> 0 < le >>> 0 ? 1 : 0) | 0;
|
|
2982
2982
|
}
|
|
2983
|
-
B = C.low = B + W, C.high = O + U + (B >>> 0 < W >>> 0 ? 1 : 0), L = p.low = L + V, p.high = D + j + (L >>> 0 < V >>> 0 ? 1 : 0), q = v.low = q + J, v.high = N + Y + (q >>> 0 < J >>> 0 ? 1 : 0), P = b.low = P +
|
|
2983
|
+
B = C.low = B + W, C.high = O + U + (B >>> 0 < W >>> 0 ? 1 : 0), L = p.low = L + V, p.high = D + j + (L >>> 0 < V >>> 0 ? 1 : 0), q = v.low = q + J, v.high = N + Y + (q >>> 0 < J >>> 0 ? 1 : 0), P = b.low = P + X, b.high = $ + ee + (P >>> 0 < X >>> 0 ? 1 : 0), E = w.low = E + K, w.high = M + Z + (E >>> 0 < K >>> 0 ? 1 : 0), F = k.low = F + ne, k.high = S + te + (F >>> 0 < ne >>> 0 ? 1 : 0), R = I.low = R + ae, I.high = T + ie + (R >>> 0 < ae >>> 0 ? 1 : 0), H = _.low = H + he, _.high = G + ce + (H >>> 0 < he >>> 0 ? 1 : 0);
|
|
2984
2984
|
},
|
|
2985
2985
|
_doFinalize: function() {
|
|
2986
2986
|
var m = this._data, g = m.words, A = this._nDataBytes * 8, C = m.sigBytes * 8;
|
|
@@ -7920,25 +7920,25 @@ const runCode = (e, r) => {
|
|
|
7920
7920
|
H === "THIS" ? G = I(unref(w)) || {} : G = I(H) || {};
|
|
7921
7921
|
const Y = unref(G[U]);
|
|
7922
7922
|
let J = null;
|
|
7923
|
-
if (["date", "range"].some((
|
|
7924
|
-
const { value:
|
|
7925
|
-
if (
|
|
7926
|
-
switch (
|
|
7923
|
+
if (["date", "range"].some((X) => lowerCaseIncludes(G == null ? void 0 : G.type, X))) {
|
|
7924
|
+
const { value: X, type: Z, mode: K } = j || {};
|
|
7925
|
+
if (X && Z && K)
|
|
7926
|
+
switch (Z) {
|
|
7927
7927
|
case "add":
|
|
7928
|
-
J = unref(Y).add(
|
|
7928
|
+
J = unref(Y).add(X, K);
|
|
7929
7929
|
break;
|
|
7930
7930
|
case "minus":
|
|
7931
|
-
J = unref(Y).subtract(
|
|
7931
|
+
J = unref(Y).subtract(X, K);
|
|
7932
7932
|
break;
|
|
7933
7933
|
}
|
|
7934
7934
|
J == null && (J = unref(Y)), J = (J == null ? void 0 : J.format((W == null ? void 0 : W.trim()) || G.format)) || "";
|
|
7935
7935
|
} else if (Object.prototype.toString.call(Y) === "[object Object]")
|
|
7936
7936
|
W ? J = Y[W] : J = U ? Y[U] : Y;
|
|
7937
7937
|
else if (lowerCaseIncludes(G == null ? void 0 : G.type, "select") && unref(Y) && U && Array.isArray(unref(Y)))
|
|
7938
|
-
J = unref(Y).map((
|
|
7938
|
+
J = unref(Y).map((X) => Object.prototype.hasOwnProperty.call(X, U) ? X[U] : X);
|
|
7939
7939
|
else if (V) {
|
|
7940
|
-
const
|
|
7941
|
-
console.log(
|
|
7940
|
+
const X = JSON.parse(H);
|
|
7941
|
+
console.log(X, "urlvalue"), J = X.value;
|
|
7942
7942
|
} else
|
|
7943
7943
|
J = Y;
|
|
7944
7944
|
L[T] = J;
|
|
@@ -8538,7 +8538,7 @@ const runCode = (e, r) => {
|
|
|
8538
8538
|
type: "NORMAL"
|
|
8539
8539
|
}), B;
|
|
8540
8540
|
}, w = async (_ = {}) => {
|
|
8541
|
-
var
|
|
8541
|
+
var be, Ce, we, Te, Se, ke;
|
|
8542
8542
|
e.isViewRedrawing && r.value.clear(), o(e.id, !1);
|
|
8543
8543
|
const { graphicConfig: O, type: B, isGroupTable: D = !1 } = e;
|
|
8544
8544
|
let {
|
|
@@ -8570,65 +8570,65 @@ const runCode = (e, r) => {
|
|
|
8570
8570
|
// 预览开关
|
|
8571
8571
|
edvDataSetId: ee
|
|
8572
8572
|
// 数据集id
|
|
8573
|
-
} = O || {},
|
|
8574
|
-
if ((O == null ? void 0 : O.pageMode) === "design" ? (
|
|
8575
|
-
const
|
|
8576
|
-
if (!f(pe, "globalCondition") && !pe.join && (
|
|
8577
|
-
const
|
|
8578
|
-
|
|
8573
|
+
} = O || {}, X = [];
|
|
8574
|
+
if ((O == null ? void 0 : O.pageMode) === "design" ? (X = (O.sqlConditions ?? []).map((pe) => {
|
|
8575
|
+
const ve = {};
|
|
8576
|
+
if (!f(pe, "globalCondition") && !pe.join && (ve.globalCondition = !0), !pe.join) {
|
|
8577
|
+
const me = pe.rule || "EQUAL";
|
|
8578
|
+
ve.rule = me === "NONE" ? "EQUAL" : me;
|
|
8579
8579
|
}
|
|
8580
8580
|
return {
|
|
8581
8581
|
...pe,
|
|
8582
|
-
...
|
|
8582
|
+
...ve
|
|
8583
8583
|
};
|
|
8584
|
-
}), V != null && V.length && (
|
|
8585
|
-
const pe =
|
|
8586
|
-
(pe == null ? void 0 : pe.length) > 1 && (
|
|
8584
|
+
}), V != null && V.length && (X = X.concat(V))) : (X = y(O), j != null && j.length && (X = X.concat(C(j)))), X != null && X.length) {
|
|
8585
|
+
const pe = X.filter((me) => me.globalCondition), ve = X.filter((me) => !me.globalCondition);
|
|
8586
|
+
(pe == null ? void 0 : pe.length) > 1 && (X = [
|
|
8587
8587
|
{
|
|
8588
8588
|
join: "&&",
|
|
8589
8589
|
conditions: pe
|
|
8590
8590
|
},
|
|
8591
|
-
...
|
|
8591
|
+
...ve
|
|
8592
8592
|
]);
|
|
8593
8593
|
}
|
|
8594
|
-
|
|
8595
|
-
let
|
|
8594
|
+
X != null && X.length && (X = x(X, "1")), $ == null && (lowerCaseIncludes(B, ["table"]) || lowerCaseIncludes(B, ["list", "circulate"]) && (M == null ? void 0 : M.length) > 1 ? $ = "1" : lowerCaseIncludes(B, ["select", "checkbox", "radio"]) ? $ = "3" : $ = "2");
|
|
8595
|
+
let Z;
|
|
8596
8596
|
const K = [];
|
|
8597
8597
|
let te = "";
|
|
8598
8598
|
if (Array.isArray(M) && M.length > 0 && (!["ecanList", "ecanCirculate"].includes(B) || (M == null ? void 0 : M.length) === 1)) {
|
|
8599
8599
|
const pe = M.length;
|
|
8600
|
-
for (let
|
|
8601
|
-
const
|
|
8600
|
+
for (let ve = 0; ve < pe; ve++) {
|
|
8601
|
+
const me = M[ve] || {}, {
|
|
8602
8602
|
label: Ae = "",
|
|
8603
8603
|
name: _e = "",
|
|
8604
|
-
show:
|
|
8605
|
-
sort:
|
|
8606
|
-
customGroup:
|
|
8604
|
+
show: Oe = !1,
|
|
8605
|
+
sort: Le,
|
|
8606
|
+
customGroup: Ve,
|
|
8607
8607
|
conditions: qe,
|
|
8608
|
-
dateFormat:
|
|
8608
|
+
dateFormat: Ie,
|
|
8609
8609
|
typeGuid: Ge = "",
|
|
8610
8610
|
truncations: Fe = []
|
|
8611
|
-
} =
|
|
8612
|
-
if (
|
|
8613
|
-
te = Ge,
|
|
8611
|
+
} = me;
|
|
8612
|
+
if (Oe || pe === 1) {
|
|
8613
|
+
te = Ge, Z = {
|
|
8614
8614
|
label: Ae.trim(),
|
|
8615
8615
|
columnName: _e,
|
|
8616
|
-
show:
|
|
8617
|
-
sort: b(
|
|
8618
|
-
customGroup:
|
|
8616
|
+
show: Oe,
|
|
8617
|
+
sort: b(me) || v(Le) || Le,
|
|
8618
|
+
customGroup: Ve,
|
|
8619
8619
|
conditions: x(qe),
|
|
8620
8620
|
typeGuid: Ge
|
|
8621
|
-
},
|
|
8621
|
+
}, Ie && (Z.dateFormat = Ie), _e === "the_date" && !Z.dateFormat && (Z.dateFormat = "YYYY-MM");
|
|
8622
8622
|
const Pe = {};
|
|
8623
8623
|
if (Array.isArray(Fe) && Fe.length > 0) {
|
|
8624
8624
|
const Re = Fe.length;
|
|
8625
|
-
for (let
|
|
8626
|
-
const
|
|
8625
|
+
for (let Me = 0; Me < Re; Me++) {
|
|
8626
|
+
const Be = Fe[Me] || {}, { rule: Ne = "", num: $e = 0, name: He = "" } = Be;
|
|
8627
8627
|
Ne && $e && (Pe.num = $e, Pe.rule = Ne, He && (Pe.otherGroupName = He));
|
|
8628
8628
|
}
|
|
8629
8629
|
}
|
|
8630
|
-
if ((
|
|
8631
|
-
K.push(
|
|
8630
|
+
if ((be = Object.keys(Pe)) != null && be.length && (Z.truncation = Pe), lowerCaseIncludes(B, "scatter"))
|
|
8631
|
+
K.push(Z);
|
|
8632
8632
|
else
|
|
8633
8633
|
break;
|
|
8634
8634
|
}
|
|
@@ -8637,69 +8637,69 @@ const runCode = (e, r) => {
|
|
|
8637
8637
|
let ne;
|
|
8638
8638
|
if (Array.isArray(F) && F.length > 0) {
|
|
8639
8639
|
const pe = F.length;
|
|
8640
|
-
for (let
|
|
8641
|
-
const
|
|
8642
|
-
if (
|
|
8640
|
+
for (let ve = 0; ve < pe; ve++) {
|
|
8641
|
+
const me = F[ve] || {}, { label: Ae = "", name: _e = "", show: Oe = !1, sort: Le, customGroup: Ve, conditions: qe, typeGuid: Ie } = me;
|
|
8642
|
+
if (Oe || pe === 1) {
|
|
8643
8643
|
ne = {
|
|
8644
8644
|
label: Ae.trim(),
|
|
8645
8645
|
columnName: _e,
|
|
8646
|
-
show:
|
|
8647
|
-
sort: v(
|
|
8648
|
-
customGroup:
|
|
8646
|
+
show: Oe,
|
|
8647
|
+
sort: v(Le),
|
|
8648
|
+
customGroup: Ve,
|
|
8649
8649
|
conditions: x(qe),
|
|
8650
|
-
typeGuid:
|
|
8650
|
+
typeGuid: Ie
|
|
8651
8651
|
};
|
|
8652
8652
|
break;
|
|
8653
8653
|
}
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
|
-
const
|
|
8656
|
+
const ie = [];
|
|
8657
8657
|
T == null || T.forEach((pe) => {
|
|
8658
|
-
pe.location = "LEFT",
|
|
8658
|
+
pe.location = "LEFT", ie.push(u(pe, Z));
|
|
8659
8659
|
}), R == null || R.forEach((pe) => {
|
|
8660
|
-
pe.location = "RIGHT",
|
|
8660
|
+
pe.location = "RIGHT", ie.push(u(pe, Z));
|
|
8661
8661
|
}), H == null || H.forEach((pe) => {
|
|
8662
|
-
pe.location = "LEFT",
|
|
8662
|
+
pe.location = "LEFT", ie.push(u(pe, Z));
|
|
8663
8663
|
});
|
|
8664
|
-
const
|
|
8664
|
+
const ae = [];
|
|
8665
8665
|
["ecanList", "ecanCirculate"].includes(B) && (M == null ? void 0 : M.length) > 1 && (G = M), G == null || G.forEach((pe) => {
|
|
8666
|
-
const { label:
|
|
8667
|
-
let Fe = v(
|
|
8666
|
+
const { label: ve, name: me, location: Ae, show: _e, indexCode: Oe, sort: Le, typeGuid: Ve, indexCodeNum: qe, dateFormat: Ie, conditions: Ge } = pe;
|
|
8667
|
+
let Fe = v(Le);
|
|
8668
8668
|
if (_.sort) {
|
|
8669
|
-
const { field: Re, order:
|
|
8670
|
-
let
|
|
8671
|
-
!
|
|
8672
|
-
columnName:
|
|
8669
|
+
const { field: Re, order: Me } = _.sort;
|
|
8670
|
+
let Be = ie.find((Ne) => Ne.label === Re);
|
|
8671
|
+
!Be && ve === Re && (Be = pe), Be && (Fe = {
|
|
8672
|
+
columnName: Be.columnName,
|
|
8673
8673
|
label: _.sort.field,
|
|
8674
|
-
order:
|
|
8674
|
+
order: Me.toUpperCase(),
|
|
8675
8675
|
type: "NORMAL"
|
|
8676
8676
|
});
|
|
8677
8677
|
}
|
|
8678
8678
|
const Pe = {
|
|
8679
|
-
label:
|
|
8680
|
-
columnName:
|
|
8679
|
+
label: ve,
|
|
8680
|
+
columnName: me,
|
|
8681
8681
|
location: Ae,
|
|
8682
8682
|
show: _e,
|
|
8683
8683
|
sort: Fe,
|
|
8684
8684
|
calcType: "COLUMN",
|
|
8685
|
-
hrpIndexCode:
|
|
8685
|
+
hrpIndexCode: Oe,
|
|
8686
8686
|
hrpIndexCodeNum: qe,
|
|
8687
8687
|
conditions: x(Ge),
|
|
8688
|
-
typeGuid:
|
|
8688
|
+
typeGuid: Ve
|
|
8689
8689
|
};
|
|
8690
|
-
|
|
8690
|
+
Ie && (Pe.dateFormat = Ie), me === "the_date" && !Pe.dateFormat && (Pe.dateFormat = "YYYY-MM"), ae.push(Pe);
|
|
8691
8691
|
});
|
|
8692
8692
|
const ce = [];
|
|
8693
8693
|
let he = [];
|
|
8694
8694
|
if (Array.isArray(E) && E.length > 0 ? he = E : Array.isArray(S) && S.length > 0 && (he = S), he != null && he.length) {
|
|
8695
8695
|
const pe = he.length;
|
|
8696
|
-
for (let
|
|
8697
|
-
const
|
|
8698
|
-
let Pe = v(
|
|
8696
|
+
for (let ve = 0; ve < pe; ve++) {
|
|
8697
|
+
const me = he[ve] || {}, { label: Ae = "", name: _e = "", show: Oe = !1, sort: Le, customGroup: Ve, conditions: qe, truncations: Ie, typeGuid: Ge = "", dateFormat: Fe } = me;
|
|
8698
|
+
let Pe = v(Le);
|
|
8699
8699
|
if (_.sort) {
|
|
8700
|
-
const { field:
|
|
8701
|
-
let $e =
|
|
8702
|
-
!$e &&
|
|
8700
|
+
const { field: Be, order: Ne } = _.sort;
|
|
8701
|
+
let $e = ie.find((He) => He.label === Be);
|
|
8702
|
+
!$e && me.label === Be && ($e = me), $e && (Pe = {
|
|
8703
8703
|
columnName: $e.columnName,
|
|
8704
8704
|
label: _.sort.field,
|
|
8705
8705
|
order: Ne.toUpperCase(),
|
|
@@ -8709,36 +8709,36 @@ const runCode = (e, r) => {
|
|
|
8709
8709
|
const Re = {
|
|
8710
8710
|
label: Ae.trim(),
|
|
8711
8711
|
columnName: _e,
|
|
8712
|
-
show:
|
|
8712
|
+
show: Oe,
|
|
8713
8713
|
sort: Pe,
|
|
8714
|
-
customGroup:
|
|
8714
|
+
customGroup: Ve,
|
|
8715
8715
|
conditions: x(qe),
|
|
8716
8716
|
typeGuid: Ge
|
|
8717
8717
|
};
|
|
8718
8718
|
Fe && (Re.dateFormat = Fe), _e === "the_date" && !Re.dateFormat && (Re.dateFormat = "YYYY-MM");
|
|
8719
|
-
const
|
|
8720
|
-
if (Array.isArray(
|
|
8721
|
-
const
|
|
8722
|
-
for (let Ne = 0; Ne <
|
|
8723
|
-
const $e =
|
|
8724
|
-
He &&
|
|
8719
|
+
const Me = {};
|
|
8720
|
+
if (Array.isArray(Ie) && Ie.length > 0) {
|
|
8721
|
+
const Be = Ie.length;
|
|
8722
|
+
for (let Ne = 0; Ne < Be; Ne++) {
|
|
8723
|
+
const $e = Ie[Ne] || {}, { rule: He = "", num: Ye = 0, name: Q = "" } = $e;
|
|
8724
|
+
He && Ye && (Me.num = Ye, Me.rule = He, Q && (Me.otherGroupName = Q));
|
|
8725
8725
|
}
|
|
8726
8726
|
}
|
|
8727
|
-
(Ce = Object.keys(
|
|
8727
|
+
(Ce = Object.keys(Me)) != null && Ce.length && (Re.truncation = Me), ce.push(Re);
|
|
8728
8728
|
}
|
|
8729
8729
|
}
|
|
8730
8730
|
if (lowerCaseIncludes(B, ["text", "proportion", "counter"]) && (P = "zb"), D) {
|
|
8731
|
-
if (ce.length === 0 ||
|
|
8731
|
+
if (ce.length === 0 || ie.length === 0)
|
|
8732
8732
|
return;
|
|
8733
8733
|
P = "grouptable";
|
|
8734
8734
|
} else {
|
|
8735
|
-
if ($ === "1" &&
|
|
8735
|
+
if ($ === "1" && ae.length === 0)
|
|
8736
8736
|
return;
|
|
8737
|
-
if ($ === "2" &&
|
|
8737
|
+
if ($ === "2" && ie.length === 0)
|
|
8738
8738
|
return;
|
|
8739
8739
|
if ($ === "3" && (!te || !W.labelField || !W.valueField))
|
|
8740
8740
|
return;
|
|
8741
|
-
if ($ === "3" && B === "ecanDataSelect" &&
|
|
8741
|
+
if ($ === "3" && B === "ecanDataSelect" && ie.length === 0)
|
|
8742
8742
|
return;
|
|
8743
8743
|
}
|
|
8744
8744
|
S != null && S.length && ($ = "1", P = "grouptable");
|
|
@@ -8746,22 +8746,22 @@ const runCode = (e, r) => {
|
|
|
8746
8746
|
if (!de) {
|
|
8747
8747
|
const { pathname: pe } = window == null ? void 0 : window.location;
|
|
8748
8748
|
if (pe) {
|
|
8749
|
-
const
|
|
8750
|
-
|
|
8749
|
+
const ve = pe.split("/");
|
|
8750
|
+
ve != null && ve.length && (de = ve[ve.length - 1]);
|
|
8751
8751
|
}
|
|
8752
8752
|
}
|
|
8753
|
-
if (B !== "ecanScatter" && ((
|
|
8754
|
-
const pe = getConditions(U).find((
|
|
8753
|
+
if (B !== "ecanScatter" && ((Te = Object.keys(W)) != null && Te.length)) {
|
|
8754
|
+
const pe = getConditions(U).find((me) => me.conditionKey === "parentCode"), ve = {};
|
|
8755
8755
|
if (pe) {
|
|
8756
|
-
const
|
|
8757
|
-
if (
|
|
8758
|
-
|
|
8756
|
+
const me = s(pe.id) || {};
|
|
8757
|
+
if (me != null && me.itemCodes)
|
|
8758
|
+
ve.parentItemCodes = me.itemCodes;
|
|
8759
8759
|
else
|
|
8760
8760
|
return;
|
|
8761
8761
|
}
|
|
8762
|
-
B === "ecanDataSelect" && (
|
|
8762
|
+
B === "ecanDataSelect" && (ve.indicatorList = ie.filter((me) => me.show));
|
|
8763
8763
|
try {
|
|
8764
|
-
const
|
|
8764
|
+
const me = await request.post(
|
|
8765
8765
|
`${INDICATOR_URL}/diagram/formData`,
|
|
8766
8766
|
{
|
|
8767
8767
|
source: L,
|
|
@@ -8774,10 +8774,10 @@ const runCode = (e, r) => {
|
|
|
8774
8774
|
labelField: W.labelField,
|
|
8775
8775
|
valueField: W.valueField,
|
|
8776
8776
|
pageId: de,
|
|
8777
|
-
sqlConditions:
|
|
8777
|
+
sqlConditions: X,
|
|
8778
8778
|
idxLibMode: "WITH_DATE_DIM_TABLE",
|
|
8779
8779
|
keyName: e.keyName,
|
|
8780
|
-
...
|
|
8780
|
+
...ve
|
|
8781
8781
|
},
|
|
8782
8782
|
{
|
|
8783
8783
|
headers: {
|
|
@@ -8787,9 +8787,9 @@ const runCode = (e, r) => {
|
|
|
8787
8787
|
}
|
|
8788
8788
|
}
|
|
8789
8789
|
);
|
|
8790
|
-
return _ != null && _.isTimer && n(
|
|
8791
|
-
} catch (
|
|
8792
|
-
console.error(
|
|
8790
|
+
return _ != null && _.isTimer && n(me), me;
|
|
8791
|
+
} catch (me) {
|
|
8792
|
+
console.error(me);
|
|
8793
8793
|
} finally {
|
|
8794
8794
|
}
|
|
8795
8795
|
} else
|
|
@@ -8798,9 +8798,9 @@ const runCode = (e, r) => {
|
|
|
8798
8798
|
lowerCaseIncludes(B, "scatter") ? pe = {
|
|
8799
8799
|
classifications: K
|
|
8800
8800
|
} : pe = {
|
|
8801
|
-
classification:
|
|
8801
|
+
classification: Z
|
|
8802
8802
|
};
|
|
8803
|
-
const
|
|
8803
|
+
const ve = await request.post(
|
|
8804
8804
|
`${INDICATOR_URL}/diagram`,
|
|
8805
8805
|
{
|
|
8806
8806
|
source: L,
|
|
@@ -8810,15 +8810,15 @@ const runCode = (e, r) => {
|
|
|
8810
8810
|
chartType: P,
|
|
8811
8811
|
...pe,
|
|
8812
8812
|
series: ne,
|
|
8813
|
-
indicatorList:
|
|
8814
|
-
queryColumns: D ? [] :
|
|
8813
|
+
indicatorList: ie,
|
|
8814
|
+
queryColumns: D ? [] : ae,
|
|
8815
8815
|
pageFlag: !0,
|
|
8816
8816
|
pageId: de,
|
|
8817
8817
|
edvDataSetId: ee || "",
|
|
8818
|
-
sqlConditions:
|
|
8819
|
-
const { fieldValue: Ae } =
|
|
8818
|
+
sqlConditions: X.map((me) => {
|
|
8819
|
+
const { fieldValue: Ae } = me, _e = {};
|
|
8820
8820
|
return Ae && Array.isArray(Ae) && (_e.fieldValue = JSON.stringify(Ae)), {
|
|
8821
|
-
...
|
|
8821
|
+
...me,
|
|
8822
8822
|
..._e
|
|
8823
8823
|
};
|
|
8824
8824
|
}),
|
|
@@ -8832,12 +8832,12 @@ const runCode = (e, r) => {
|
|
|
8832
8832
|
{
|
|
8833
8833
|
headers: {
|
|
8834
8834
|
// @ts-ignore
|
|
8835
|
-
Authentication: (
|
|
8835
|
+
Authentication: (ke = window == null ? void 0 : window.config) == null ? void 0 : ke.indicatorToken,
|
|
8836
8836
|
operateContext: CONTEXT
|
|
8837
8837
|
}
|
|
8838
8838
|
}
|
|
8839
8839
|
);
|
|
8840
|
-
return _ != null && _.isTimer && n(
|
|
8840
|
+
return _ != null && _.isTimer && n(ve), ve;
|
|
8841
8841
|
} catch (pe) {
|
|
8842
8842
|
console.error(pe);
|
|
8843
8843
|
} finally {
|
|
@@ -9031,16 +9031,16 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9031
9031
|
setTemplateData: (K) => {
|
|
9032
9032
|
var te;
|
|
9033
9033
|
if (K != null && K.pageId) {
|
|
9034
|
-
const { componentId: ne, ...
|
|
9035
|
-
(te = window.config) != null && te.urlParams || (window.config.urlParams = {}), window.config.urlParams[K.pageId] =
|
|
9034
|
+
const { componentId: ne, ...ie } = K;
|
|
9035
|
+
(te = window.config) != null && te.urlParams || (window.config.urlParams = {}), window.config.urlParams[K.pageId] = ie, n("templateChange", K);
|
|
9036
9036
|
}
|
|
9037
9037
|
}
|
|
9038
9038
|
});
|
|
9039
9039
|
const p = ref(), v = /* @__PURE__ */ new Map(), b = (K) => v.get(K), w = (K, te) => {
|
|
9040
9040
|
var ne;
|
|
9041
9041
|
if (p.value = te, v.set(K, te), !e.pageId) {
|
|
9042
|
-
const
|
|
9043
|
-
|
|
9042
|
+
const ie = unref(s).find((ae) => ae.id === K);
|
|
9043
|
+
ie && ((ne = window.config) != null && ne.record || (window.config.record = {}), window.config.record[ie.keyName] = te);
|
|
9044
9044
|
}
|
|
9045
9045
|
}, k = () => {
|
|
9046
9046
|
p.value = null;
|
|
@@ -9049,29 +9049,29 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9049
9049
|
if (te) {
|
|
9050
9050
|
const ne = K.match(/\{(.+?)\}/g);
|
|
9051
9051
|
if (ne != null && ne.length) {
|
|
9052
|
-
let
|
|
9053
|
-
const
|
|
9052
|
+
let ie = ne[0].slice(1, -1).trim();
|
|
9053
|
+
const ae = ie.match(/\[(.+?)\]/g);
|
|
9054
9054
|
let ce = "";
|
|
9055
|
-
|
|
9056
|
-
const he = unref(c).find((de) => de.keyName ===
|
|
9055
|
+
ae != null && ae.length && (ie = ie.replace(ae[0], ""), ce = ae[0].slice(1, -1).trim());
|
|
9056
|
+
const he = unref(c).find((de) => de.keyName === ie);
|
|
9057
9057
|
if (he) {
|
|
9058
|
-
const de = b(he.id), { type:
|
|
9059
|
-
lowerCaseIncludes(
|
|
9058
|
+
const de = b(he.id), { type: be, value: Ce, RECORD: we, recordData: Te } = de || {};
|
|
9059
|
+
lowerCaseIncludes(be, MODEL_KEY_LIST) ? te = we[ce] : lowerCaseIncludes(be, "select") ? te = Te[ce] : lowerCaseIncludes(be, ["rangePicker", "date"]) ? dayjs.isDayjs(unref(de[ce])) ? te = unref(de[ce]).format(de.format) : te = unref(de[ce]) : te = Ce;
|
|
9060
9060
|
} else
|
|
9061
|
-
te = (window.config.requestParams || {})[
|
|
9061
|
+
te = (window.config.requestParams || {})[ie] || "";
|
|
9062
9062
|
}
|
|
9063
9063
|
}
|
|
9064
9064
|
return te;
|
|
9065
9065
|
}, _ = /* @__PURE__ */ new Map(), O = {}, B = async (K, te) => {
|
|
9066
9066
|
var he;
|
|
9067
|
-
const { requestName: ne } = K,
|
|
9067
|
+
const { requestName: ne } = K, ie = await useRequestData({
|
|
9068
9068
|
...K,
|
|
9069
9069
|
projectRequestUrl: unref(f),
|
|
9070
9070
|
getModel: b
|
|
9071
|
-
})(),
|
|
9071
|
+
})(), ae = ((he = ie == null ? void 0 : ie.data) == null ? void 0 : he.data) || {}, ce = _.get(ne);
|
|
9072
9072
|
if (ce != null && ce.length && (!te || O[ne])) {
|
|
9073
9073
|
for (const de of ce)
|
|
9074
|
-
de(
|
|
9074
|
+
de(ae);
|
|
9075
9075
|
te || _.delete(ne);
|
|
9076
9076
|
}
|
|
9077
9077
|
};
|
|
@@ -9082,12 +9082,12 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9082
9082
|
getRecordValueByKeyName: I,
|
|
9083
9083
|
hanldePageRequestData: (K, te) => {
|
|
9084
9084
|
O[K] && (clearInterval(O[K]), delete O[K], _.delete(K));
|
|
9085
|
-
const ne = unref(c).filter((
|
|
9086
|
-
if ((ne == null ? void 0 : ne.length) >
|
|
9087
|
-
const
|
|
9088
|
-
|
|
9089
|
-
B(
|
|
9090
|
-
},
|
|
9085
|
+
const ne = unref(c).filter((ae) => !ae.openCustomRequestData && ae.customRequestName === K), ie = _.get(K) || [];
|
|
9086
|
+
if ((ne == null ? void 0 : ne.length) > ie.length && (ie.push(te), _.set(K, ie), (ne == null ? void 0 : ne.length) === ie.length)) {
|
|
9087
|
+
const ae = unref(g).find((ce) => ce.requestName === K);
|
|
9088
|
+
ae && (ae != null && ae.isOpenRequestTimer && (ae != null && ae.requestInterval) ? (B(ae, !0), O[K] = setInterval(() => {
|
|
9089
|
+
B(ae, !0);
|
|
9090
|
+
}, ae.requestInterval * 1e3)) : B(ae));
|
|
9091
9091
|
}
|
|
9092
9092
|
},
|
|
9093
9093
|
interactiveData: p
|
|
@@ -9114,8 +9114,8 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9114
9114
|
});
|
|
9115
9115
|
const F = mitt(), T = /* @__PURE__ */ new Set(), R = (K, te) => {
|
|
9116
9116
|
T.add(K), F.on(K, (ne) => {
|
|
9117
|
-
const { eventName:
|
|
9118
|
-
return typeof te[
|
|
9117
|
+
const { eventName: ie, params: ae } = ne;
|
|
9118
|
+
return typeof te[ie] == "function" && te[ie](ae);
|
|
9119
9119
|
}), onBeforeUnmount(() => {
|
|
9120
9120
|
G(K);
|
|
9121
9121
|
});
|
|
@@ -9123,15 +9123,15 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9123
9123
|
T.delete(K), F.off(K);
|
|
9124
9124
|
}, H = (K, te, ne = {}) => {
|
|
9125
9125
|
if (K === "PAGE") {
|
|
9126
|
-
const
|
|
9127
|
-
let
|
|
9128
|
-
if (
|
|
9129
|
-
|
|
9126
|
+
const ie = q.length;
|
|
9127
|
+
let ae = [];
|
|
9128
|
+
if (ie === 0)
|
|
9129
|
+
ae = [...T];
|
|
9130
9130
|
else {
|
|
9131
|
-
const ce = q[
|
|
9132
|
-
|
|
9131
|
+
const ce = q[ie - 1];
|
|
9132
|
+
ae = [...E(ce)];
|
|
9133
9133
|
}
|
|
9134
|
-
|
|
9134
|
+
ae.forEach((ce) => {
|
|
9135
9135
|
F.emit(ce, { eventName: te, params: ne });
|
|
9136
9136
|
});
|
|
9137
9137
|
} else
|
|
@@ -9151,35 +9151,35 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9151
9151
|
const j = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), Y = ({ requestFn: K = () => {
|
|
9152
9152
|
}, sortNum: te = 0, id: ne = "" }) => {
|
|
9153
9153
|
if (j.has(te)) {
|
|
9154
|
-
const
|
|
9155
|
-
|
|
9154
|
+
const ie = j.get(te);
|
|
9155
|
+
ie == null || ie.push(K);
|
|
9156
9156
|
} else
|
|
9157
9157
|
j.set(te, [K]);
|
|
9158
9158
|
V.set(ne, K);
|
|
9159
9159
|
}, J = (K) => new Promise((te, ne) => {
|
|
9160
|
-
const
|
|
9161
|
-
Promise.all(
|
|
9162
|
-
te(
|
|
9163
|
-
}).catch((
|
|
9164
|
-
ne(
|
|
9160
|
+
const ie = K.map((ae) => ae());
|
|
9161
|
+
Promise.all(ie).then((ae) => {
|
|
9162
|
+
te(ae);
|
|
9163
|
+
}).catch((ae) => {
|
|
9164
|
+
ne(ae);
|
|
9165
9165
|
});
|
|
9166
9166
|
}), ee = (K) => new Promise(async (te, ne) => {
|
|
9167
9167
|
if (K) {
|
|
9168
9168
|
if (typeof K == "string") {
|
|
9169
|
-
const
|
|
9170
|
-
if (typeof
|
|
9171
|
-
const
|
|
9172
|
-
|
|
9169
|
+
const ie = V.get(K);
|
|
9170
|
+
if (typeof ie == "function") {
|
|
9171
|
+
const ae = request.interceptors.response.use((ce) => (te(ce), ce), (ce) => (ne(ce), Promise.reject(ce)));
|
|
9172
|
+
ie(), request.interceptors.response.eject(ae);
|
|
9173
9173
|
}
|
|
9174
9174
|
}
|
|
9175
9175
|
} else {
|
|
9176
|
-
const
|
|
9177
|
-
|
|
9178
|
-
const
|
|
9176
|
+
const ie = Array.from(j);
|
|
9177
|
+
ie.sort((ce, he) => he[0] - ce[0]);
|
|
9178
|
+
const ae = ie.length;
|
|
9179
9179
|
try {
|
|
9180
9180
|
e.pageMode !== "design" && unref(U) > 0;
|
|
9181
|
-
for (let ce = 0; ce <
|
|
9182
|
-
const he =
|
|
9181
|
+
for (let ce = 0; ce < ae; ce++) {
|
|
9182
|
+
const he = ie[ce][1];
|
|
9183
9183
|
await J(he);
|
|
9184
9184
|
}
|
|
9185
9185
|
} catch (ce) {
|
|
@@ -9197,7 +9197,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9197
9197
|
F.emit(REFRESH_PAGE);
|
|
9198
9198
|
}
|
|
9199
9199
|
});
|
|
9200
|
-
const
|
|
9200
|
+
const Z = (K) => {
|
|
9201
9201
|
F.on(REFRESH_PAGE, () => K()), onMounted(() => {
|
|
9202
9202
|
F.off(REFRESH_PAGE);
|
|
9203
9203
|
});
|
|
@@ -9205,7 +9205,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9205
9205
|
return watchEffect(() => {
|
|
9206
9206
|
var K;
|
|
9207
9207
|
if ((K = unref(s)) != null && K.length && unref(d) !== "design") {
|
|
9208
|
-
const { jumpType: te, jumpTime: ne, jumpPage:
|
|
9208
|
+
const { jumpType: te, jumpTime: ne, jumpPage: ie, jumpLink: ae } = e;
|
|
9209
9209
|
if (ne != null && ne.value) {
|
|
9210
9210
|
let ce = 0;
|
|
9211
9211
|
switch (ne == null ? void 0 : ne.suffix) {
|
|
@@ -9221,7 +9221,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9221
9221
|
}
|
|
9222
9222
|
setTimeout(() => {
|
|
9223
9223
|
let he = "";
|
|
9224
|
-
te === "page" &&
|
|
9224
|
+
te === "page" && ie ? he = usePageUrl(unref(d), ie) : te === "link" && ae && (he = ae), he = useVariablesInText(he), window.open(he, "_self");
|
|
9225
9225
|
}, ce);
|
|
9226
9226
|
}
|
|
9227
9227
|
}
|
|
@@ -9230,7 +9230,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["render", _sfc_r
|
|
|
9230
9230
|
}), r({
|
|
9231
9231
|
touchRequest: ee,
|
|
9232
9232
|
getGlobalModel: b,
|
|
9233
|
-
onRefreshPage:
|
|
9233
|
+
onRefreshPage: Z,
|
|
9234
9234
|
emitEvent: H,
|
|
9235
9235
|
props: e
|
|
9236
9236
|
}), {
|
|
@@ -9330,10 +9330,10 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9330
9330
|
V.includes(ee) || V.push(ee);
|
|
9331
9331
|
}
|
|
9332
9332
|
V.sort((J, ee) => J - ee), V = V.map((J) => {
|
|
9333
|
-
const ee = String(J).split("").reverse(),
|
|
9334
|
-
for (let
|
|
9335
|
-
ee && ee[
|
|
9336
|
-
return U &&
|
|
9333
|
+
const ee = String(J).split("").reverse(), X = [];
|
|
9334
|
+
for (let Z = 0; Z < j; Z++)
|
|
9335
|
+
ee && ee[Z] ? X.push(ee[Z]) : X.push("0");
|
|
9336
|
+
return U && X.splice(U, 0, "."), (H < 0 ? "-" : "") + X.reverse().join("");
|
|
9337
9337
|
}), V.push(H);
|
|
9338
9338
|
let Y = 0;
|
|
9339
9339
|
for (const J of V)
|
|
@@ -9435,8 +9435,8 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9435
9435
|
const V = G[j], Y = (W = V == null ? void 0 : V.slice(1, V.length - 1)) == null ? void 0 : W.trim();
|
|
9436
9436
|
let J = Y;
|
|
9437
9437
|
const ee = Y.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
9438
|
-
for (let
|
|
9439
|
-
const K = ee[
|
|
9438
|
+
for (let Z = 0; Z < ee.length; Z++) {
|
|
9439
|
+
const K = ee[Z], te = S[K];
|
|
9440
9440
|
if (te)
|
|
9441
9441
|
J = Y.replace(K, d(String(te)) || te);
|
|
9442
9442
|
else {
|
|
@@ -9445,42 +9445,42 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _s
|
|
|
9445
9445
|
}
|
|
9446
9446
|
}
|
|
9447
9447
|
if (/\(.*\)/g.test(J)) {
|
|
9448
|
-
const
|
|
9449
|
-
|
|
9450
|
-
}
|
|
9451
|
-
let
|
|
9452
|
-
if (
|
|
9453
|
-
const
|
|
9454
|
-
if (
|
|
9455
|
-
if (
|
|
9448
|
+
const Z = runCode(J);
|
|
9449
|
+
Z != null && (J = Z);
|
|
9450
|
+
}
|
|
9451
|
+
let X = J;
|
|
9452
|
+
if (X === Y && (X = e.variableDefaultValue), X != null) {
|
|
9453
|
+
const Z = e.format;
|
|
9454
|
+
if (Z === "percentage")
|
|
9455
|
+
if (X = +X, isNaN(X))
|
|
9456
9456
|
R = R.replace(V, `<span class="${U}" style="color:${v("0.00") || e.variableColor};font-size:${unref(o)};${unref(m)}">0%</span>`);
|
|
9457
|
-
else if (
|
|
9458
|
-
|
|
9459
|
-
const K = v(
|
|
9457
|
+
else if (X >= 0) {
|
|
9458
|
+
X = X * 100;
|
|
9459
|
+
const K = v(X.toFixed(2));
|
|
9460
9460
|
R = R.replace(
|
|
9461
9461
|
V,
|
|
9462
9462
|
`<span class="${U}" style="color: ${K || F || "#ED6643"};font-size:${unref(o)};display: inline-block;${unref(m)}">
|
|
9463
9463
|
<div class="percentage-img-box">
|
|
9464
9464
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${K || F || "#ED6643"} ${unref(o)} 0px)`};" src="${goUp}"/>
|
|
9465
9465
|
</div>
|
|
9466
|
-
<span style="color: ${K || e.color};${unref(m)}">${Math.abs(+
|
|
9466
|
+
<span style="color: ${K || e.color};${unref(m)}">${Math.abs(+X).toFixed(2)}%</span>
|
|
9467
9467
|
</span>`
|
|
9468
9468
|
);
|
|
9469
9469
|
} else {
|
|
9470
|
-
|
|
9471
|
-
const K = v(
|
|
9470
|
+
X = X * 100;
|
|
9471
|
+
const K = v(X.toFixed(2));
|
|
9472
9472
|
R = R.replace(
|
|
9473
9473
|
V,
|
|
9474
9474
|
`<span class="${U}" style="color: ${K || T || "#6ACB97"};font-size:${unref(o)};display: inline-block;${unref(m)}">
|
|
9475
9475
|
<div class="percentage-img-box">
|
|
9476
9476
|
<img style="width: ${unref(o)};filter: ${`drop-shadow(${K || T || "#6ACB97"} ${unref(o)} 0px)`};" src="${goDown}"/>
|
|
9477
9477
|
</div>
|
|
9478
|
-
<span style="color: ${K || e.color};${unref(m)}">${e.minusSignShow ? "-" : ""}${Math.abs(+
|
|
9478
|
+
<span style="color: ${K || e.color};${unref(m)}">${e.minusSignShow ? "-" : ""}${Math.abs(+X).toFixed(2)}%</span>
|
|
9479
9479
|
</span>`
|
|
9480
9480
|
);
|
|
9481
9481
|
}
|
|
9482
9482
|
else
|
|
9483
|
-
e.format === "percent" ? (
|
|
9483
|
+
e.format === "percent" ? (X = +X, isNaN(X) || (X = (X * 100).toFixed(2), R = R.replace(V, `<span class="${U}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}%</span>`))) : e.format === "money" ? (X = +X, isNaN(X) || (X = formatMoney(X), R = R.replace(V, `<span class="${U}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`))) : Z === "thousands" ? (X = +X, isNaN(X) || (X = formatThousands(X), R = R.replace(V, `<span class="${U}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`))) : R = R.replace(V, `<span class="${U}" style="color:${v(X) || e.variableColor};font-size:${unref(o)};${unref(m)}">${X}</span>`);
|
|
9484
9484
|
}
|
|
9485
9485
|
}
|
|
9486
9486
|
if (H || (H = `<span class="${U}" style="color: ${v(R)};${unref(m)}">${R}</span>`), e.unitShow && e.unitText) {
|
|
@@ -10967,17 +10967,17 @@ const __default__$2 = defineComponent({
|
|
|
10967
10967
|
}
|
|
10968
10968
|
return V;
|
|
10969
10969
|
});
|
|
10970
|
-
watch(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([V, Y, J, ee,
|
|
10970
|
+
watch(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([V, Y, J, ee, X, Z]) => {
|
|
10971
10971
|
if (unref(o).every((K) => !K) || unref(n) === "design") {
|
|
10972
10972
|
let K = null, te = null;
|
|
10973
|
-
if (J && (K = dayjs().subtract(ee,
|
|
10974
|
-
const { type: ne, value:
|
|
10973
|
+
if (J && (K = dayjs().subtract(ee, X), te = dayjs()), V && (K = dayjs(useVariablesInText(V))), Y && (te = dayjs(useVariablesInText(Y))), Z) {
|
|
10974
|
+
const { type: ne, value: ie, mode: ae } = Z;
|
|
10975
10975
|
switch (ne) {
|
|
10976
10976
|
case "add":
|
|
10977
|
-
K = K && K.add(
|
|
10977
|
+
K = K && K.add(ie, ae), te = te && te.add(ie, ae);
|
|
10978
10978
|
break;
|
|
10979
10979
|
case "minus":
|
|
10980
|
-
K = K && K.subtract(
|
|
10980
|
+
K = K && K.subtract(ie, ae), te = te && te.subtract(ie, ae);
|
|
10981
10981
|
}
|
|
10982
10982
|
}
|
|
10983
10983
|
o.value = [K, te], unref(r) && W();
|
|
@@ -10990,20 +10990,20 @@ const __default__$2 = defineComponent({
|
|
|
10990
10990
|
Array.isArray(V) ? (C = V[0], p = V[1], v = J.range) : (C = null, p = null);
|
|
10991
10991
|
}, w = (V) => {
|
|
10992
10992
|
let Y = !1, { limitStartTime: J, limitEndTime: ee } = e;
|
|
10993
|
-
const
|
|
10993
|
+
const X = {
|
|
10994
10994
|
startTime: `${C || ""}`,
|
|
10995
10995
|
endTime: `${p || ""}`
|
|
10996
10996
|
};
|
|
10997
|
-
if (J = useVariablesInText(J, { codeData:
|
|
10998
|
-
let
|
|
10999
|
-
if (v === "start" ?
|
|
11000
|
-
const K =
|
|
10997
|
+
if (J = useVariablesInText(J, { codeData: X }), ee = useVariablesInText(ee, { codeData: X }), J && ee ? Y = !(dayjs(J) < V && V < dayjs(ee)) : J ? Y = dayjs(J) > V : ee && (Y = dayjs(ee) < V), !e.isAllowSpanYear && v) {
|
|
10998
|
+
let Z = null;
|
|
10999
|
+
if (v === "start" ? Z = C : v === "end" && (Z = p), Z) {
|
|
11000
|
+
const K = Z.startOf("year"), te = Z.endOf("year");
|
|
11001
11001
|
Y = !(K <= V && V < te);
|
|
11002
11002
|
}
|
|
11003
11003
|
}
|
|
11004
11004
|
if (!Y) {
|
|
11005
|
-
const { value:
|
|
11006
|
-
|
|
11005
|
+
const { value: Z = 0, mode: K = "year" } = e.limitInterval || {};
|
|
11006
|
+
Z && (v === "start" ? Y = C.add(Z, K) < V : v === "end" && (Y = p.subtract(Z, K) > V));
|
|
11007
11007
|
}
|
|
11008
11008
|
return Y;
|
|
11009
11009
|
}, { getGlobalModel: k, setGlobalModel: I } = inject(GLOBAL_MODEL, {
|
|
@@ -11091,7 +11091,7 @@ const __default__$2 = defineComponent({
|
|
|
11091
11091
|
}
|
|
11092
11092
|
function W() {
|
|
11093
11093
|
const { limitStartTime: V, limitEndTime: Y, limitInterval: J, isAllowSpanYear: ee } = e;
|
|
11094
|
-
H(unref(o)), V && (f.value = new Date(V), x.value = new Date(V), unref(o)[0].isBefore(dayjs(V)) && (unref(o)[0] = dayjs(V), 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((
|
|
11094
|
+
H(unref(o)), V && (f.value = new Date(V), x.value = new Date(V), unref(o)[0].isBefore(dayjs(V)) && (unref(o)[0] = dayjs(V), 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();
|
|
11095
11095
|
}
|
|
11096
11096
|
function j(V) {
|
|
11097
11097
|
const Y = [];
|
|
@@ -11487,11 +11487,11 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11487
11487
|
const { value: V, label: Y } = e.dataFieldNames, J = [];
|
|
11488
11488
|
if (Array.isArray(unref(d)))
|
|
11489
11489
|
for (const ee of unref(d)) {
|
|
11490
|
-
const
|
|
11491
|
-
|
|
11490
|
+
const X = unref(c).find((Z) => Z[V] === ee);
|
|
11491
|
+
X && J.push(X[Y]);
|
|
11492
11492
|
}
|
|
11493
11493
|
else {
|
|
11494
|
-
const ee = unref(c).find((
|
|
11494
|
+
const ee = unref(c).find((X) => X[V] === unref(d));
|
|
11495
11495
|
ee && J.push(ee[Y]);
|
|
11496
11496
|
}
|
|
11497
11497
|
return J.join(",");
|
|
@@ -11510,52 +11510,52 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11510
11510
|
}
|
|
11511
11511
|
}), g = e.dataFieldNames;
|
|
11512
11512
|
watch(() => [e.value, e.mode, e.selectFirstOption, e.valueType, c.value], () => {
|
|
11513
|
-
const { mode: V, selectFirstOption: Y, value: J } = e, ee = m(J),
|
|
11513
|
+
const { mode: V, selectFirstOption: Y, value: J } = e, ee = m(J), X = g.value;
|
|
11514
11514
|
if (V === "multiple" || V === "tags" || V === "combobox") {
|
|
11515
11515
|
if (ee)
|
|
11516
11516
|
f.value = ee.split(",");
|
|
11517
11517
|
else if (Y) {
|
|
11518
|
-
const
|
|
11519
|
-
f.value =
|
|
11518
|
+
const Z = unref(c)[0];
|
|
11519
|
+
f.value = Z ? [Z[X]] : [];
|
|
11520
11520
|
}
|
|
11521
11521
|
} else if (ee)
|
|
11522
11522
|
f.value = ee;
|
|
11523
11523
|
else if (Y) {
|
|
11524
|
-
const
|
|
11525
|
-
f.value =
|
|
11524
|
+
const Z = unref(c)[0];
|
|
11525
|
+
f.value = Z ? Z[X] : "";
|
|
11526
11526
|
}
|
|
11527
11527
|
}, {
|
|
11528
11528
|
immediate: !0
|
|
11529
11529
|
});
|
|
11530
11530
|
const A = (V, Y) => {
|
|
11531
11531
|
const J = g.label, ee = g.value;
|
|
11532
|
-
let
|
|
11533
|
-
const
|
|
11534
|
-
return
|
|
11532
|
+
let X;
|
|
11533
|
+
const Z = Y[J], K = Y[ee];
|
|
11534
|
+
return Z != null ? X = Z : K != null && (X = K), (X == null ? void 0 : X.toLowerCase().indexOf(V == null ? void 0 : V.toLowerCase())) >= 0;
|
|
11535
11535
|
}, C = (V) => {
|
|
11536
11536
|
const { label: Y, value: J, options: ee } = e.dataFieldNames;
|
|
11537
11537
|
if (ee && Array.isArray(V))
|
|
11538
|
-
if (V.some((
|
|
11539
|
-
const
|
|
11538
|
+
if (V.some((X) => ee in X)) {
|
|
11539
|
+
const X = {}, Z = [];
|
|
11540
11540
|
V.forEach((K) => {
|
|
11541
|
-
|
|
11541
|
+
X[K[ee]] || (X[K[ee]] = []), X[K[ee]].push({
|
|
11542
11542
|
[Y]: K[Y],
|
|
11543
11543
|
[J]: K[J]
|
|
11544
11544
|
});
|
|
11545
11545
|
});
|
|
11546
|
-
for (const K in
|
|
11547
|
-
|
|
11546
|
+
for (const K in X)
|
|
11547
|
+
Z.push({
|
|
11548
11548
|
[Y]: K,
|
|
11549
|
-
[ee]:
|
|
11549
|
+
[ee]: X[K]
|
|
11550
11550
|
});
|
|
11551
|
-
return
|
|
11551
|
+
return Z;
|
|
11552
11552
|
} else
|
|
11553
11553
|
return V;
|
|
11554
11554
|
else {
|
|
11555
11555
|
if (!ee && Array.isArray(V))
|
|
11556
|
-
return V = V.map((
|
|
11557
|
-
label:
|
|
11558
|
-
value:
|
|
11556
|
+
return V = V.map((X) => ({
|
|
11557
|
+
label: X[Y],
|
|
11558
|
+
value: X[J]
|
|
11559
11559
|
})), V;
|
|
11560
11560
|
if (!ee && !Array.isArray(V))
|
|
11561
11561
|
return V;
|
|
@@ -11565,8 +11565,8 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11565
11565
|
if (c.value = C(((J = (Y = V == null ? void 0 : V.data) == null ? void 0 : Y.data) == null ? void 0 : J.rows) || []), e.selectFirstOption) {
|
|
11566
11566
|
let ee = unref(c)[0];
|
|
11567
11567
|
if (g.options) {
|
|
11568
|
-
const
|
|
11569
|
-
|
|
11568
|
+
const X = ee[g.options];
|
|
11569
|
+
X && X.length && (ee = X[0]);
|
|
11570
11570
|
}
|
|
11571
11571
|
f.value = ee[g.value];
|
|
11572
11572
|
}
|
|
@@ -11595,7 +11595,7 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11595
11595
|
if (e.mode === "multiple")
|
|
11596
11596
|
V = unref(c).filter((ee) => unref(f).includes(ee[J])).map((ee) => ee[Y]);
|
|
11597
11597
|
else {
|
|
11598
|
-
const ee = unref(c).find((
|
|
11598
|
+
const ee = unref(c).find((X) => unref(f) === X[J]);
|
|
11599
11599
|
ee && (V = ee[Y]);
|
|
11600
11600
|
}
|
|
11601
11601
|
}
|
|
@@ -11640,19 +11640,19 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11640
11640
|
var J, ee;
|
|
11641
11641
|
const Y = C(V);
|
|
11642
11642
|
if ((ee = (J = e == null ? void 0 : e.graphicConfig) == null ? void 0 : J.formFields) != null && ee.hasAllOption) {
|
|
11643
|
-
const
|
|
11643
|
+
const X = g.label, Z = g.value;
|
|
11644
11644
|
Y.unshift({
|
|
11645
|
-
[
|
|
11646
|
-
[
|
|
11645
|
+
[X]: "全部",
|
|
11646
|
+
[Z]: ""
|
|
11647
11647
|
});
|
|
11648
11648
|
}
|
|
11649
11649
|
if (c.value = Y, e.selectFirstOption) {
|
|
11650
|
-
let
|
|
11650
|
+
let X = unref(c)[0];
|
|
11651
11651
|
if (g.options) {
|
|
11652
|
-
const
|
|
11653
|
-
|
|
11652
|
+
const Z = X[g.options];
|
|
11653
|
+
Z && Z.length && (X = Z[0]);
|
|
11654
11654
|
}
|
|
11655
|
-
f.value =
|
|
11655
|
+
f.value = X[g.value];
|
|
11656
11656
|
}
|
|
11657
11657
|
y(e.id, {
|
|
11658
11658
|
type: e.type,
|
|
@@ -11661,14 +11661,14 @@ const Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_ren
|
|
|
11661
11661
|
recordData: unref(D)
|
|
11662
11662
|
});
|
|
11663
11663
|
}, P = (V) => {
|
|
11664
|
-
var
|
|
11664
|
+
var X;
|
|
11665
11665
|
const { data: Y } = (V == null ? void 0 : V.data) || {}, J = g.label, ee = g.value;
|
|
11666
11666
|
if (Y) {
|
|
11667
|
-
const { rows:
|
|
11668
|
-
O.value =
|
|
11669
|
-
const K =
|
|
11670
|
-
[J]:
|
|
11671
|
-
[ee]:
|
|
11667
|
+
const { rows: Z = [] } = ((X = V == null ? void 0 : V.data) == null ? void 0 : X.data) || {};
|
|
11668
|
+
O.value = Z;
|
|
11669
|
+
const K = Z.map((ie) => ({
|
|
11670
|
+
[J]: ie.label,
|
|
11671
|
+
[ee]: ie.value
|
|
11672
11672
|
})), { id: te } = e, ne = u(te);
|
|
11673
11673
|
y(te, { ...ne, ...unref(B) }), k(te, !0), $(K);
|
|
11674
11674
|
} else
|
|
@@ -12542,7 +12542,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12542
12542
|
}), { clearInteractiveData: s, interactiveData: l, setRequestData: c } = inject(GLOBAL_MODEL, {
|
|
12543
12543
|
// @ts-ignore
|
|
12544
12544
|
// eslint-disable-next-line no-void
|
|
12545
|
-
setRequestData: (
|
|
12545
|
+
setRequestData: (Z, K) => {
|
|
12546
12546
|
},
|
|
12547
12547
|
// @ts-ignore
|
|
12548
12548
|
// eslint-disable-next-line no-void
|
|
@@ -12550,21 +12550,21 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12550
12550
|
},
|
|
12551
12551
|
interactiveData: null
|
|
12552
12552
|
}), f = () => document.getElementById("ProviderConfig") || document.body, d = computed(() => {
|
|
12553
|
-
const
|
|
12553
|
+
const Z = e.position;
|
|
12554
12554
|
return {
|
|
12555
12555
|
verticalAlign: {
|
|
12556
12556
|
default: "",
|
|
12557
12557
|
top: "top",
|
|
12558
12558
|
center: "middle",
|
|
12559
12559
|
bottom: "bottom"
|
|
12560
|
-
}[
|
|
12560
|
+
}[Z]
|
|
12561
12561
|
};
|
|
12562
12562
|
}), x = e.fullModal ? "1920px" : e.width, u = e.fullModal ? "1080px" : e.height, y = e.originalWidth, m = e.originalHeight, g = ref("80%"), A = ref(0), C = ref(), p = ref(0), v = ref({}), b = usePickComponentStyle(e), w = ref({}), k = ref(!1), I = ref();
|
|
12563
12563
|
let _;
|
|
12564
12564
|
const O = () => {
|
|
12565
12565
|
C.value = parseFloat(x) / parseFloat(y);
|
|
12566
|
-
const
|
|
12567
|
-
A.value = K * unref(C), p.value = te *
|
|
12566
|
+
const Z = parseFloat(u) / parseFloat(m), K = document.body.offsetWidth, te = document.body.offsetHeight;
|
|
12567
|
+
A.value = K * unref(C), p.value = te * Z, g.value = `${unref(C) * 100}%`, v.value = {
|
|
12568
12568
|
width: `${unref(A)}px`,
|
|
12569
12569
|
height: `${unref(p)}px`,
|
|
12570
12570
|
border: `${e.borderWidth} solid ${e.borderColor}`,
|
|
@@ -12586,8 +12586,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12586
12586
|
}, B = debounce(() => {
|
|
12587
12587
|
O();
|
|
12588
12588
|
}, 100), D = () => {
|
|
12589
|
-
const
|
|
12590
|
-
_ = new
|
|
12589
|
+
const Z = window.MutationObserver;
|
|
12590
|
+
_ = new Z(B), _.observe(document.body, {
|
|
12591
12591
|
attributes: !0,
|
|
12592
12592
|
attributeFilter: ["style"],
|
|
12593
12593
|
attributeOldValue: !0
|
|
@@ -12601,9 +12601,9 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12601
12601
|
}
|
|
12602
12602
|
}), $ = ref(""), P = () => {
|
|
12603
12603
|
var te;
|
|
12604
|
-
const { title:
|
|
12604
|
+
const { title: Z } = e, K = (te = unref(l)) == null ? void 0 : te.RECORD;
|
|
12605
12605
|
return K ? useVariablesInText(
|
|
12606
|
-
|
|
12606
|
+
Z,
|
|
12607
12607
|
{
|
|
12608
12608
|
textData: K
|
|
12609
12609
|
},
|
|
@@ -12611,7 +12611,7 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12611
12611
|
useNewline: !1,
|
|
12612
12612
|
useSpace: !1
|
|
12613
12613
|
}
|
|
12614
|
-
) :
|
|
12614
|
+
) : Z;
|
|
12615
12615
|
}, M = useEmitEvent(e), E = () => {
|
|
12616
12616
|
i && (document.documentElement.style.overflow = "hidden"), $.value = P(), N.value = !0;
|
|
12617
12617
|
}, S = M("hideModal", () => {
|
|
@@ -12621,49 +12621,49 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12621
12621
|
}, T = () => {
|
|
12622
12622
|
S(), s();
|
|
12623
12623
|
}, { setModalModel: R, pushUseModalIds: G, popUseModalIds: H } = inject(MODAL_MODEL, {
|
|
12624
|
-
pushUseModalIds: (
|
|
12624
|
+
pushUseModalIds: (Z) => {
|
|
12625
12625
|
},
|
|
12626
12626
|
popUseModalIds: () => {
|
|
12627
12627
|
},
|
|
12628
|
-
setModalModel: (
|
|
12628
|
+
setModalModel: (Z, K) => {
|
|
12629
12629
|
}
|
|
12630
12630
|
}), U = computed(() => {
|
|
12631
|
-
let
|
|
12632
|
-
const K = cloneDeep(e.componentList), te = a(), ne = o(),
|
|
12631
|
+
let Z = e.componentList;
|
|
12632
|
+
const K = cloneDeep(e.componentList), te = a(), ne = o(), ie = {
|
|
12633
12633
|
containerMap: te,
|
|
12634
12634
|
combinationMap: ne
|
|
12635
12635
|
};
|
|
12636
|
-
i && (
|
|
12637
|
-
...
|
|
12636
|
+
i && (Z = compatibleMobileList({
|
|
12637
|
+
...ie,
|
|
12638
12638
|
componentList: K,
|
|
12639
12639
|
sourceList: e.allComponentList
|
|
12640
|
-
})),
|
|
12641
|
-
...
|
|
12642
|
-
componentList:
|
|
12640
|
+
})), Z = handleScrollCombinations({
|
|
12641
|
+
...ie,
|
|
12642
|
+
componentList: Z,
|
|
12643
12643
|
sourceList: e.allComponentList
|
|
12644
12644
|
});
|
|
12645
|
-
const
|
|
12646
|
-
for (const ce of
|
|
12645
|
+
const ae = [];
|
|
12646
|
+
for (const ce of Z)
|
|
12647
12647
|
if (ce.type === "ecanCirculate") {
|
|
12648
12648
|
const he = moveToComponentList(te, unref(K), ce.id);
|
|
12649
|
-
ce.componentList = he,
|
|
12649
|
+
ce.componentList = he, ae.push(...he.map((de) => de.id));
|
|
12650
12650
|
}
|
|
12651
|
-
if (
|
|
12652
|
-
for (const ce of
|
|
12653
|
-
const he =
|
|
12654
|
-
he !== -1 &&
|
|
12651
|
+
if (ae != null && ae.length)
|
|
12652
|
+
for (const ce of ae) {
|
|
12653
|
+
const he = Z.findIndex((de) => de.id === ce);
|
|
12654
|
+
he !== -1 && Z.splice(he, 1);
|
|
12655
12655
|
}
|
|
12656
|
-
return
|
|
12656
|
+
return Z;
|
|
12657
12657
|
}), W = () => {
|
|
12658
|
-
const
|
|
12658
|
+
const Z = e.id;
|
|
12659
12659
|
let K = [];
|
|
12660
12660
|
const te = e.componentList;
|
|
12661
|
-
Array.isArray(te) && (K = te.map((ne) => ne.id), R(
|
|
12661
|
+
Array.isArray(te) && (K = te.map((ne) => ne.id), R(Z, [...new Set(K)]));
|
|
12662
12662
|
}, j = ref(!1), V = {};
|
|
12663
|
-
for (const
|
|
12664
|
-
V[
|
|
12665
|
-
watch(() => N.value, async (
|
|
12666
|
-
if (
|
|
12663
|
+
for (const Z of e.requestList)
|
|
12664
|
+
V[Z.requestName] = useRequestData(Z);
|
|
12665
|
+
watch(() => N.value, async (Z) => {
|
|
12666
|
+
if (Z)
|
|
12667
12667
|
k.value = !1, G(e.id), W(), await nextTick(() => {
|
|
12668
12668
|
O(), window.addEventListener("resize", B), D(), k.value = !0;
|
|
12669
12669
|
}), q();
|
|
@@ -12674,8 +12674,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12674
12674
|
}
|
|
12675
12675
|
});
|
|
12676
12676
|
const Y = computed(() => unref(C) >= 1), J = computed(() => e.fullModal), ee = computed(() => {
|
|
12677
|
-
let
|
|
12678
|
-
return unref(Y) && (
|
|
12677
|
+
let Z = "ecan-modal";
|
|
12678
|
+
return unref(Y) && (Z += " ecan-full-width-modal"), unref(J) && (Z += " ecan-full-modal"), Z;
|
|
12679
12679
|
});
|
|
12680
12680
|
return useOnEvent(e, {
|
|
12681
12681
|
showModal: E,
|
|
@@ -12700,8 +12700,8 @@ const Render = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_rende
|
|
|
12700
12700
|
isMobile: i,
|
|
12701
12701
|
readyIds: n,
|
|
12702
12702
|
hasOwn,
|
|
12703
|
-
onComponentReady: (
|
|
12704
|
-
n.value.push(
|
|
12703
|
+
onComponentReady: (Z) => {
|
|
12704
|
+
n.value.push(Z);
|
|
12705
12705
|
},
|
|
12706
12706
|
formatTitle: $,
|
|
12707
12707
|
requestLoaded: j
|
|
@@ -13930,10 +13930,10 @@ const _sfc_main$b = defineComponent({
|
|
|
13930
13930
|
}), a = inject("usedComponentList", []), o = ref(), s = ref(!1), l = ref(!1), c = ref(null), f = ref([]), d = usePickComponentStyle(e), x = ref([]), u = ref(), y = ref({});
|
|
13931
13931
|
let m;
|
|
13932
13932
|
const g = computed(() => s.value ? ZOOM_FONT_SIZE : 12), A = computed(() => {
|
|
13933
|
-
const { gradientShow: W, gradientColors: j, gradientOffset: V, barBorderRadius: Y } = e, J = unref(x), ee = J.length,
|
|
13934
|
-
for (let
|
|
13933
|
+
const { gradientShow: W, gradientColors: j, gradientOffset: V, barBorderRadius: Y } = e, J = unref(x), ee = J.length, X = [];
|
|
13934
|
+
for (let Z = 0; Z < ee; Z++) {
|
|
13935
13935
|
const K = {
|
|
13936
|
-
...J[
|
|
13936
|
+
...J[Z],
|
|
13937
13937
|
type: "bar",
|
|
13938
13938
|
barWidth: e.barWidth.value + e.barWidth.suffix,
|
|
13939
13939
|
showBackground: e.showBarBackground
|
|
@@ -13946,16 +13946,16 @@ const _sfc_main$b = defineComponent({
|
|
|
13946
13946
|
width: e.labelWidth,
|
|
13947
13947
|
overflow: e.labelOverflow,
|
|
13948
13948
|
formatter: (te) => {
|
|
13949
|
-
let ne = "",
|
|
13950
|
-
|
|
13951
|
-
const { seriesName:
|
|
13949
|
+
let ne = "", ie = e.labelFormatter;
|
|
13950
|
+
ie === "" && (ie = "{c}");
|
|
13951
|
+
const { seriesName: ae, name: ce, value: he, data: de } = te || {};
|
|
13952
13952
|
return ne += useVariablesInText(
|
|
13953
|
-
|
|
13953
|
+
ie,
|
|
13954
13954
|
{
|
|
13955
13955
|
textData: {
|
|
13956
13956
|
name: ce,
|
|
13957
13957
|
value: he,
|
|
13958
|
-
a:
|
|
13958
|
+
a: ae,
|
|
13959
13959
|
b: ce,
|
|
13960
13960
|
c: he || 0,
|
|
13961
13961
|
...de
|
|
@@ -13975,31 +13975,31 @@ const _sfc_main$b = defineComponent({
|
|
|
13975
13975
|
y2: e.isUseHorizontalAxis ? 0 : 1,
|
|
13976
13976
|
colorStops: [{
|
|
13977
13977
|
offset: 0,
|
|
13978
|
-
color: e.colors[
|
|
13978
|
+
color: e.colors[Z]
|
|
13979
13979
|
}, {
|
|
13980
13980
|
offset: V,
|
|
13981
|
-
color: j[
|
|
13981
|
+
color: j[Z]
|
|
13982
13982
|
}, {
|
|
13983
13983
|
offset: 1,
|
|
13984
|
-
color: j[
|
|
13984
|
+
color: j[Z]
|
|
13985
13985
|
}]
|
|
13986
13986
|
}
|
|
13987
13987
|
}), Y) {
|
|
13988
13988
|
const te = Y.split(",");
|
|
13989
13989
|
if (te != null && te.length) {
|
|
13990
13990
|
const ne = [];
|
|
13991
|
-
for (const
|
|
13992
|
-
const
|
|
13993
|
-
isNaN(
|
|
13991
|
+
for (const ie of te) {
|
|
13992
|
+
const ae = parseFloat(ie);
|
|
13993
|
+
isNaN(ae) || ne.push(ae);
|
|
13994
13994
|
}
|
|
13995
13995
|
K.itemStyle.borderRadius = ne;
|
|
13996
13996
|
}
|
|
13997
13997
|
}
|
|
13998
13998
|
e.isShowMarkLine && (K.markLine = {
|
|
13999
13999
|
data: [{ type: e.markLineType }]
|
|
14000
|
-
}),
|
|
14000
|
+
}), X.push(K);
|
|
14001
14001
|
}
|
|
14002
|
-
return
|
|
14002
|
+
return X;
|
|
14003
14003
|
}), C = ref([]), p = ref(!1), v = computed(() => {
|
|
14004
14004
|
const W = e.yAxisLabelFormatter, j = e.xAxisLabelFormatter;
|
|
14005
14005
|
return {
|
|
@@ -14075,13 +14075,13 @@ const _sfc_main$b = defineComponent({
|
|
|
14075
14075
|
trigger: "axis",
|
|
14076
14076
|
show: e.tooltipShow,
|
|
14077
14077
|
formatter: (V) => {
|
|
14078
|
-
var
|
|
14078
|
+
var X;
|
|
14079
14079
|
const Y = V.length;
|
|
14080
14080
|
let J = "", ee = e.tooltipFormatter;
|
|
14081
|
-
m = (
|
|
14082
|
-
for (let
|
|
14083
|
-
const { marker: K, seriesName: te, name: ne, value:
|
|
14084
|
-
if (
|
|
14081
|
+
m = (X = V[0]) == null ? void 0 : X.data, ee === "" && (ee = "{marker} {a} {c}");
|
|
14082
|
+
for (let Z = 0; Z < Y; Z++) {
|
|
14083
|
+
const { marker: K, seriesName: te, name: ne, value: ie, data: ae } = V[Z] || {};
|
|
14084
|
+
if (Z === 0) {
|
|
14085
14085
|
let ce = ne;
|
|
14086
14086
|
typeof ne == "string" && ne[0] === "0" && !isNaN(+ne) && (ce = (+ne).toString()), J += `${useValueFormatter(j, ce)}<br/>`;
|
|
14087
14087
|
}
|
|
@@ -14091,11 +14091,11 @@ const _sfc_main$b = defineComponent({
|
|
|
14091
14091
|
textData: {
|
|
14092
14092
|
marker: K,
|
|
14093
14093
|
name: ne,
|
|
14094
|
-
value:
|
|
14094
|
+
value: ie,
|
|
14095
14095
|
a: te,
|
|
14096
14096
|
b: ne,
|
|
14097
|
-
c:
|
|
14098
|
-
...
|
|
14097
|
+
c: ie || 0,
|
|
14098
|
+
...ae
|
|
14099
14099
|
}
|
|
14100
14100
|
},
|
|
14101
14101
|
{
|
|
@@ -14336,14 +14336,14 @@ const _sfc_main$b = defineComponent({
|
|
|
14336
14336
|
await E(W, j);
|
|
14337
14337
|
}, E = (W, j) => new Promise((V) => {
|
|
14338
14338
|
setTimeout(() => {
|
|
14339
|
-
const { series: Y, color: J, xAxis: ee } = W,
|
|
14339
|
+
const { series: Y, color: J, xAxis: ee } = W, X = o.value.chart, { splitArea: Z = {} } = ee[0] || {};
|
|
14340
14340
|
Y.forEach((K, te) => {
|
|
14341
14341
|
const ne = K.data;
|
|
14342
|
-
let
|
|
14343
|
-
j % 2 ?
|
|
14344
|
-
color:
|
|
14342
|
+
let ie = "";
|
|
14343
|
+
j % 2 ? ie = J[te] + "a8" : ie = J[te], ne[c.value].itemStyle = {
|
|
14344
|
+
color: ie
|
|
14345
14345
|
};
|
|
14346
|
-
}), j % 2 ? (
|
|
14346
|
+
}), j % 2 ? (Z.show = !0, Z.areaStyle.color = unref(f).map((K, te) => te === c.value ? "#ff003b26" : "")) : Z.show = !1, X.setOption({ series: Y, xAxis: ee }), V();
|
|
14347
14347
|
}, 200);
|
|
14348
14348
|
});
|
|
14349
14349
|
r({
|
|
@@ -15411,16 +15411,16 @@ const _sfc_main$8 = defineComponent({
|
|
|
15411
15411
|
trigger: "axis",
|
|
15412
15412
|
show: e.tooltipShow,
|
|
15413
15413
|
formatter: (j) => {
|
|
15414
|
-
var
|
|
15414
|
+
var X;
|
|
15415
15415
|
const V = j.length;
|
|
15416
15416
|
let Y = "", J = e.tooltipFormatter;
|
|
15417
|
-
y = (
|
|
15417
|
+
y = (X = j[0]) == null ? void 0 : X.data, J === "" && (J = "{marker} {a} {c}");
|
|
15418
15418
|
const ee = e.seriesTypes;
|
|
15419
|
-
for (let
|
|
15420
|
-
const K = ee[
|
|
15421
|
-
if (
|
|
15422
|
-
let de =
|
|
15423
|
-
typeof
|
|
15419
|
+
for (let Z = 0; Z < V; Z++) {
|
|
15420
|
+
const K = ee[Z], { tooltipFormatter: te } = K || {}, { marker: ne, seriesName: ie, name: ae, value: ce, data: he } = j[Z] || {};
|
|
15421
|
+
if (Z === 0) {
|
|
15422
|
+
let de = ae;
|
|
15423
|
+
typeof ae == "string" && ae[0] === "0" && !isNaN(+ae) && (de = (+ae).toString()), Y += `${useValueFormatter(e.xAxisLabelFormatter, de)}<br/>`;
|
|
15424
15424
|
}
|
|
15425
15425
|
Y += useVariablesInText(
|
|
15426
15426
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
@@ -15428,11 +15428,11 @@ const _sfc_main$8 = defineComponent({
|
|
|
15428
15428
|
{
|
|
15429
15429
|
textData: {
|
|
15430
15430
|
marker: ne,
|
|
15431
|
-
name:
|
|
15431
|
+
name: ae,
|
|
15432
15432
|
value: ce,
|
|
15433
|
-
seriesName:
|
|
15434
|
-
a:
|
|
15435
|
-
b:
|
|
15433
|
+
seriesName: ie,
|
|
15434
|
+
a: ie,
|
|
15435
|
+
b: ae,
|
|
15436
15436
|
c: ce || 0,
|
|
15437
15437
|
...he
|
|
15438
15438
|
}
|
|
@@ -15523,19 +15523,19 @@ const _sfc_main$8 = defineComponent({
|
|
|
15523
15523
|
componentList: unref(a),
|
|
15524
15524
|
getGlobalModel: o
|
|
15525
15525
|
}, ee), A.value = ee.dimensions;
|
|
15526
|
-
const
|
|
15527
|
-
p.value = ee.dataset, g.value = _(
|
|
15526
|
+
const X = ee.dataset;
|
|
15527
|
+
p.value = ee.dataset, g.value = _(X);
|
|
15528
15528
|
};
|
|
15529
15529
|
function _(j) {
|
|
15530
15530
|
const V = [], Y = j.length, J = e.seriesTypes;
|
|
15531
15531
|
for (let ee = 0; ee < Y; ee++) {
|
|
15532
|
-
const
|
|
15532
|
+
const X = J[ee], { type: Z, axisIndex: K } = X || {};
|
|
15533
15533
|
let te = {
|
|
15534
|
-
type:
|
|
15534
|
+
type: Z,
|
|
15535
15535
|
yAxisIndex: K,
|
|
15536
15536
|
...j[ee]
|
|
15537
15537
|
};
|
|
15538
|
-
if (
|
|
15538
|
+
if (Z === "line") {
|
|
15539
15539
|
const ne = {};
|
|
15540
15540
|
e.shadowColor && (ne.shadowColor = e.shadowColor, ne.shadowBlur = e.shadowBlur, ne.shadowOffsetY = e.shadowOffsetY, ne.shadowOffsetX = e.shadowOffsetX), te = {
|
|
15541
15541
|
...te,
|
|
@@ -15568,16 +15568,16 @@ const _sfc_main$8 = defineComponent({
|
|
|
15568
15568
|
}
|
|
15569
15569
|
};
|
|
15570
15570
|
}
|
|
15571
|
-
if (
|
|
15572
|
-
const { gradientShow: ne, gradientColors:
|
|
15571
|
+
if (Z === "bar") {
|
|
15572
|
+
const { gradientShow: ne, gradientColors: ie, gradientOffset: ae } = e, ce = {
|
|
15573
15573
|
color: e.colors[ee]
|
|
15574
15574
|
};
|
|
15575
15575
|
if (e.barBorderRadius) {
|
|
15576
15576
|
const he = e.barBorderRadius.split(",");
|
|
15577
15577
|
if (he != null && he.length) {
|
|
15578
15578
|
const de = [];
|
|
15579
|
-
for (const
|
|
15580
|
-
const Ce = parseFloat(
|
|
15579
|
+
for (const be of he) {
|
|
15580
|
+
const Ce = parseFloat(be);
|
|
15581
15581
|
isNaN(Ce) || de.push(Ce);
|
|
15582
15582
|
}
|
|
15583
15583
|
ce.borderRadius = de;
|
|
@@ -15592,11 +15592,11 @@ const _sfc_main$8 = defineComponent({
|
|
|
15592
15592
|
offset: 0,
|
|
15593
15593
|
color: e.colors[ee]
|
|
15594
15594
|
}, {
|
|
15595
|
-
offset:
|
|
15596
|
-
color:
|
|
15595
|
+
offset: ae,
|
|
15596
|
+
color: ie[ee]
|
|
15597
15597
|
}, {
|
|
15598
15598
|
offset: 1,
|
|
15599
|
-
color:
|
|
15599
|
+
color: ie[ee]
|
|
15600
15600
|
}]
|
|
15601
15601
|
}), te = {
|
|
15602
15602
|
...te,
|
|
@@ -15701,9 +15701,9 @@ const _sfc_main$8 = defineComponent({
|
|
|
15701
15701
|
let J;
|
|
15702
15702
|
V.length > 0 && (J = {
|
|
15703
15703
|
name: V[0],
|
|
15704
|
-
types: V.slice(1).map((
|
|
15705
|
-
label:
|
|
15706
|
-
value:
|
|
15704
|
+
types: V.slice(1).map((X) => ({
|
|
15705
|
+
label: X,
|
|
15706
|
+
value: X
|
|
15707
15707
|
}))
|
|
15708
15708
|
}), I(Y, J, !0);
|
|
15709
15709
|
}, q = useIndicatorData(e, l, N), $ = async () => {
|
|
@@ -15743,14 +15743,14 @@ const _sfc_main$8 = defineComponent({
|
|
|
15743
15743
|
await T(j, V);
|
|
15744
15744
|
}, T = (j, V) => new Promise((Y) => {
|
|
15745
15745
|
setTimeout(() => {
|
|
15746
|
-
const { series: J, color: ee, xAxis:
|
|
15746
|
+
const { series: J, color: ee, xAxis: X } = j, Z = l.value.chart, { splitArea: K = {} } = X[0] || {};
|
|
15747
15747
|
J.forEach((te, ne) => {
|
|
15748
|
-
const
|
|
15749
|
-
let
|
|
15750
|
-
V % 2 ?
|
|
15751
|
-
color:
|
|
15748
|
+
const ie = te.data;
|
|
15749
|
+
let ae = "";
|
|
15750
|
+
V % 2 ? ae = ee[ne] + "a8" : ae = ee[ne], ie[d.value].itemStyle = {
|
|
15751
|
+
color: ae
|
|
15752
15752
|
};
|
|
15753
|
-
}), V % 2 ? (K.show = !0, K.areaStyle.color = unref(x).map((te, ne) => ne === d.value ? "#ff003b26" : "")) : K.show = !1,
|
|
15753
|
+
}), V % 2 ? (K.show = !0, K.areaStyle.color = unref(x).map((te, ne) => ne === d.value ? "#ff003b26" : "")) : K.show = !1, Z.setOption({ series: J, xAxis: X }), Y();
|
|
15754
15754
|
}, 200);
|
|
15755
15755
|
});
|
|
15756
15756
|
r({
|
|
@@ -16875,20 +16875,20 @@ const _sfc_main$4 = defineComponent({
|
|
|
16875
16875
|
W.index = j + 1;
|
|
16876
16876
|
const V = nanoid(), Y = cloneDeep(P);
|
|
16877
16877
|
for (const J of Y) {
|
|
16878
|
-
const ee = N.find((
|
|
16879
|
-
if (J.left = (parseFloat(J.left) + H) * unref(x) + "px", J.top = (parseFloat(J.top) + U) * unref(x) + "px", J.scale = unref(x), J.id =
|
|
16880
|
-
const
|
|
16878
|
+
const ee = N.find((Z) => Z.keyName === J.keyName), X = nanoid();
|
|
16879
|
+
if (J.left = (parseFloat(J.left) + H) * unref(x) + "px", J.top = (parseFloat(J.top) + U) * unref(x) + "px", J.scale = unref(x), J.id = X, J.keyName = J.name + "_" + X, J.unitId = V, ee != null && ee.fieldName) {
|
|
16880
|
+
const Z = J.text.match(/\{(.+?)\}/g);
|
|
16881
16881
|
switch (J.type) {
|
|
16882
16882
|
case "ecanText": {
|
|
16883
16883
|
J.data = {
|
|
16884
16884
|
value: String(W[ee.fieldName])
|
|
16885
|
-
},
|
|
16885
|
+
}, Z != null && Z.length || (J.text = "{value}");
|
|
16886
16886
|
break;
|
|
16887
16887
|
}
|
|
16888
16888
|
case "ecanProportion": {
|
|
16889
16889
|
J.data = {
|
|
16890
16890
|
percent: String(W[ee.fieldName])
|
|
16891
|
-
},
|
|
16891
|
+
}, Z != null && Z.length || (J.text = "{percent}");
|
|
16892
16892
|
break;
|
|
16893
16893
|
}
|
|
16894
16894
|
}
|
|
@@ -18976,18 +18976,18 @@ var lottie$1 = { exports: {} };
|
|
|
18976
18976
|
function u(E, S, F) {
|
|
18977
18977
|
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);
|
|
18978
18978
|
}
|
|
18979
|
-
function y(E, S, F, T, R, G, H, U, W, j, V, Y, J, ee,
|
|
18980
|
-
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] = V, this.props[11] = Y, this.props[12] = J, this.props[13] = ee, this.props[14] =
|
|
18979
|
+
function y(E, S, F, T, R, G, H, U, W, j, V, Y, J, ee, X, Z) {
|
|
18980
|
+
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] = V, this.props[11] = Y, this.props[12] = J, this.props[13] = ee, this.props[14] = X, this.props[15] = Z, this;
|
|
18981
18981
|
}
|
|
18982
18982
|
function m(E, S, F) {
|
|
18983
18983
|
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;
|
|
18984
18984
|
}
|
|
18985
|
-
function g(E, S, F, T, R, G, H, U, W, j, V, Y, J, ee,
|
|
18985
|
+
function g(E, S, F, T, R, G, H, U, W, j, V, Y, J, ee, X, Z) {
|
|
18986
18986
|
var K = this.props;
|
|
18987
18987
|
if (E === 1 && S === 0 && F === 0 && T === 0 && R === 0 && G === 1 && H === 0 && U === 0 && W === 0 && j === 0 && V === 1 && Y === 0)
|
|
18988
|
-
return K[12] = K[12] * E + K[15] * J, K[13] = K[13] * G + K[15] * ee, K[14] = K[14] * V + K[15] *
|
|
18989
|
-
var te = K[0], ne = K[1],
|
|
18990
|
-
return K[0] = te * E + ne * R +
|
|
18988
|
+
return K[12] = K[12] * E + K[15] * J, K[13] = K[13] * G + K[15] * ee, K[14] = K[14] * V + K[15] * X, K[15] *= Z, this._identityCalculated = !1, this;
|
|
18989
|
+
var te = K[0], ne = K[1], ie = K[2], ae = K[3], ce = K[4], he = K[5], de = K[6], be = K[7], Ce = K[8], we = K[9], Te = K[10], Se = K[11], ke = K[12], pe = K[13], ve = K[14], me = K[15];
|
|
18990
|
+
return K[0] = te * E + ne * R + ie * W + ae * J, K[1] = te * S + ne * G + ie * j + ae * ee, K[2] = te * F + ne * H + ie * V + ae * X, K[3] = te * T + ne * U + ie * Y + ae * Z, K[4] = ce * E + he * R + de * W + be * J, K[5] = ce * S + he * G + de * j + be * ee, K[6] = ce * F + he * H + de * V + be * X, K[7] = ce * T + he * U + de * Y + be * Z, K[8] = Ce * E + we * R + Te * W + Se * J, K[9] = Ce * S + we * G + Te * j + Se * ee, K[10] = Ce * F + we * H + Te * V + Se * X, K[11] = Ce * T + we * U + Te * Y + Se * Z, K[12] = ke * E + pe * R + ve * W + me * J, K[13] = ke * S + pe * G + ve * j + me * ee, K[14] = ke * F + pe * H + ve * V + me * X, K[15] = ke * T + pe * U + ve * Y + me * Z, this._identityCalculated = !1, this;
|
|
18991
18991
|
}
|
|
18992
18992
|
function A(E) {
|
|
18993
18993
|
var S = E.props;
|
|
@@ -21495,25 +21495,25 @@ var lottie$1 = { exports: {} };
|
|
|
21495
21495
|
x = u.length, c = 0, f = 0;
|
|
21496
21496
|
var q = e.finalSize * 1.2 * 0.714, $ = !0, P, M, E, S, F;
|
|
21497
21497
|
S = i.length;
|
|
21498
|
-
var T, R = -1, G, H, U, W = m, j = v, V = p, Y = -1, J, ee,
|
|
21498
|
+
var T, R = -1, G, H, U, W = m, j = v, V = p, Y = -1, J, ee, X, Z, K, te, ne, ie, ae = "", ce = this.defaultPropsArray, he;
|
|
21499
21499
|
if (e.j === 2 || e.j === 1) {
|
|
21500
|
-
var de = 0,
|
|
21500
|
+
var de = 0, be = 0, Ce = e.j === 2 ? -0.5 : -1, we = 0, Te = !0;
|
|
21501
21501
|
for (d = 0; d < x; d += 1)
|
|
21502
21502
|
if (u[d].n) {
|
|
21503
|
-
for (de && (de +=
|
|
21503
|
+
for (de && (de += be); we < d; )
|
|
21504
21504
|
u[we].animatorJustifyOffset = de, we += 1;
|
|
21505
|
-
de = 0,
|
|
21505
|
+
de = 0, Te = !0;
|
|
21506
21506
|
} else {
|
|
21507
21507
|
for (E = 0; E < S; E += 1)
|
|
21508
|
-
P = i[E].a, P.t.propType && (
|
|
21509
|
-
|
|
21508
|
+
P = i[E].a, P.t.propType && (Te && e.j === 2 && (be += P.t.v * Ce), M = i[E].s, T = M.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), T.length ? de += P.t.v * T[0] * Ce : de += P.t.v * T * Ce);
|
|
21509
|
+
Te = !1;
|
|
21510
21510
|
}
|
|
21511
|
-
for (de && (de +=
|
|
21511
|
+
for (de && (de += be); we < d; )
|
|
21512
21512
|
u[we].animatorJustifyOffset = de, we += 1;
|
|
21513
21513
|
}
|
|
21514
21514
|
for (d = 0; d < x; d += 1) {
|
|
21515
21515
|
if (o.reset(), J = 1, u[d].n)
|
|
21516
|
-
c = 0, f += e.yOffset, f += $ ? 1 : 0, m = W, $ = !1, this._hasMaskedPath && (v = j, p = V, w = k[v].points, b = w[p - 1], g = w[p], I = g.partialLength, A = 0),
|
|
21516
|
+
c = 0, f += e.yOffset, f += $ ? 1 : 0, m = W, $ = !1, this._hasMaskedPath && (v = j, p = V, w = k[v].points, b = w[p - 1], g = w[p], I = g.partialLength, A = 0), ae = "", ie = "", te = "", he = "", ce = this.defaultPropsArray;
|
|
21517
21517
|
else {
|
|
21518
21518
|
if (this._hasMaskedPath) {
|
|
21519
21519
|
if (Y !== u[d].line) {
|
|
@@ -21538,28 +21538,28 @@ var lottie$1 = { exports: {} };
|
|
|
21538
21538
|
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);
|
|
21539
21539
|
for (E = 0; E < S; E += 1)
|
|
21540
21540
|
P = i[E].a, P.t.propType && (M = i[E].s, T = M.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? T.length ? m += P.t.v * T[0] : m += P.t.v * T : T.length ? c += P.t.v * T[0] : c += P.t.v * T));
|
|
21541
|
-
for (e.strokeWidthAnim && (
|
|
21541
|
+
for (e.strokeWidthAnim && (X = e.sw || 0), e.strokeColorAnim && (e.sc ? ee = [e.sc[0], e.sc[1], e.sc[2]] : ee = [0, 0, 0]), e.fillColorAnim && e.fc && (Z = [e.fc[0], e.fc[1], e.fc[2]]), E = 0; E < S; E += 1)
|
|
21542
21542
|
P = i[E].a, P.a.propType && (M = i[E].s, T = M.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), T.length ? o.translate(-P.a.v[0] * T[0], -P.a.v[1] * T[1], P.a.v[2] * T[2]) : o.translate(-P.a.v[0] * T, -P.a.v[1] * T, P.a.v[2] * T));
|
|
21543
21543
|
for (E = 0; E < S; E += 1)
|
|
21544
21544
|
P = i[E].a, P.s.propType && (M = i[E].s, T = M.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), T.length ? o.scale(1 + (P.s.v[0] - 1) * T[0], 1 + (P.s.v[1] - 1) * T[1], 1) : o.scale(1 + (P.s.v[0] - 1) * T, 1 + (P.s.v[1] - 1) * T, 1));
|
|
21545
21545
|
for (E = 0; E < S; E += 1) {
|
|
21546
|
-
if (P = i[E].a, M = i[E].s, T = M.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), P.sk.propType && (T.length ? o.skewFromAxis(-P.sk.v * T[0], P.sa.v * T[1]) : o.skewFromAxis(-P.sk.v * T, P.sa.v * T)), P.r.propType && (T.length ? o.rotateZ(-P.r.v * T[2]) : o.rotateZ(-P.r.v * T)), P.ry.propType && (T.length ? o.rotateY(P.ry.v * T[1]) : o.rotateY(P.ry.v * T)), P.rx.propType && (T.length ? o.rotateX(P.rx.v * T[0]) : o.rotateX(P.rx.v * T)), P.o.propType && (T.length ? J += (P.o.v * T[0] - J) * T[0] : J += (P.o.v * T - J) * T), e.strokeWidthAnim && P.sw.propType && (T.length ?
|
|
21546
|
+
if (P = i[E].a, M = i[E].s, T = M.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), P.sk.propType && (T.length ? o.skewFromAxis(-P.sk.v * T[0], P.sa.v * T[1]) : o.skewFromAxis(-P.sk.v * T, P.sa.v * T)), P.r.propType && (T.length ? o.rotateZ(-P.r.v * T[2]) : o.rotateZ(-P.r.v * T)), P.ry.propType && (T.length ? o.rotateY(P.ry.v * T[1]) : o.rotateY(P.ry.v * T)), P.rx.propType && (T.length ? o.rotateX(P.rx.v * T[0]) : o.rotateX(P.rx.v * T)), P.o.propType && (T.length ? J += (P.o.v * T[0] - J) * T[0] : J += (P.o.v * T - J) * T), e.strokeWidthAnim && P.sw.propType && (T.length ? X += P.sw.v * T[0] : X += P.sw.v * T), e.strokeColorAnim && P.sc.propType)
|
|
21547
21547
|
for (K = 0; K < 3; K += 1)
|
|
21548
21548
|
T.length ? ee[K] += (P.sc.v[K] - ee[K]) * T[0] : ee[K] += (P.sc.v[K] - ee[K]) * T;
|
|
21549
21549
|
if (e.fillColorAnim && e.fc) {
|
|
21550
21550
|
if (P.fc.propType)
|
|
21551
21551
|
for (K = 0; K < 3; K += 1)
|
|
21552
|
-
T.length ?
|
|
21553
|
-
P.fh.propType && (T.length ?
|
|
21552
|
+
T.length ? Z[K] += (P.fc.v[K] - Z[K]) * T[0] : Z[K] += (P.fc.v[K] - Z[K]) * T;
|
|
21553
|
+
P.fh.propType && (T.length ? Z = addHueToRGB(Z, P.fh.v * T[0]) : Z = addHueToRGB(Z, P.fh.v * T)), P.fs.propType && (T.length ? Z = addSaturationToRGB(Z, P.fs.v * T[0]) : Z = addSaturationToRGB(Z, P.fs.v * T)), P.fb.propType && (T.length ? Z = addBrightnessToRGB(Z, P.fb.v * T[0]) : Z = addBrightnessToRGB(Z, P.fb.v * T));
|
|
21554
21554
|
}
|
|
21555
21555
|
}
|
|
21556
21556
|
for (E = 0; E < S; E += 1)
|
|
21557
21557
|
P = i[E].a, P.p.propType && (M = i[E].s, T = M.getMult(u[d].anIndexes[E], a.a[E].s.totalChars), this._hasMaskedPath ? T.length ? o.translate(0, P.p.v[1] * T[0], -P.p.v[2] * T[1]) : o.translate(0, P.p.v[1] * T, -P.p.v[2] * T) : T.length ? o.translate(P.p.v[0] * T[0], P.p.v[1] * T[1], -P.p.v[2] * T[2]) : o.translate(P.p.v[0] * T, P.p.v[1] * T, -P.p.v[2] * T));
|
|
21558
|
-
if (e.strokeWidthAnim && (te =
|
|
21558
|
+
if (e.strokeWidthAnim && (te = X < 0 ? 0 : X), e.strokeColorAnim && (ne = "rgb(" + Math.round(ee[0] * 255) + "," + Math.round(ee[1] * 255) + "," + Math.round(ee[2] * 255) + ")"), e.fillColorAnim && e.fc && (ie = "rgb(" + Math.round(Z[0] * 255) + "," + Math.round(Z[1] * 255) + "," + Math.round(Z[2] * 255) + ")"), this._hasMaskedPath) {
|
|
21559
21559
|
if (o.translate(0, -e.ls), o.translate(0, n[1] * q * 0.01 + f, 0), this._pathData.p.v) {
|
|
21560
21560
|
B = (g.point[1] - b.point[1]) / (g.point[0] - b.point[0]);
|
|
21561
|
-
var
|
|
21562
|
-
g.point[0] < b.point[0] && (
|
|
21561
|
+
var ke = Math.atan(B) * 180 / Math.PI;
|
|
21562
|
+
g.point[0] < b.point[0] && (ke += 180), o.rotate(-ke * Math.PI / 180);
|
|
21563
21563
|
}
|
|
21564
21564
|
o.translate(H, U, 0), m -= n[0] * u[d].an * 5e-3, u[d + 1] && R !== u[d + 1].ind && (m += u[d].an / 2, m += e.tr * 1e-3 * e.finalSize);
|
|
21565
21565
|
} else {
|
|
@@ -21573,9 +21573,9 @@ var lottie$1 = { exports: {} };
|
|
|
21573
21573
|
}
|
|
21574
21574
|
o.translate(0, -e.ls), o.translate(G, 0, 0), o.translate(n[0] * u[d].an * 5e-3, n[1] * q * 0.01, 0), c += u[d].l + e.tr * 1e-3 * e.finalSize;
|
|
21575
21575
|
}
|
|
21576
|
-
s === "html" ?
|
|
21576
|
+
s === "html" ? ae = o.toCSS() : s === "svg" ? ae = o.to2dCSS() : ce = [o.props[0], o.props[1], o.props[2], o.props[3], o.props[4], o.props[5], o.props[6], o.props[7], o.props[8], o.props[9], o.props[10], o.props[11], o.props[12], o.props[13], o.props[14], o.props[15]], he = J;
|
|
21577
21577
|
}
|
|
21578
|
-
l <= d ? (F = new LetterProps(he, te, ne,
|
|
21578
|
+
l <= d ? (F = new LetterProps(he, te, ne, ie, ae, ce), this.renderedLetters.push(F), l += 1, this.lettersChangedFlag = !0) : (F = this.renderedLetters[d], this.lettersChangedFlag = F.update(he, te, ne, ie, ae, ce) || this.lettersChangedFlag);
|
|
21579
21579
|
}
|
|
21580
21580
|
}
|
|
21581
21581
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -24868,7 +24868,8 @@ const Image$1 = /* @__PURE__ */ _export_sfc$1(__default__$1, [["render", _sfc_re
|
|
|
24868
24868
|
width: "300px",
|
|
24869
24869
|
height: "300px",
|
|
24870
24870
|
link: "",
|
|
24871
|
-
linkType: "web"
|
|
24871
|
+
linkType: "web",
|
|
24872
|
+
transParams: []
|
|
24872
24873
|
}, iframeComponentProps = transformToComponentProps(iframeProps), _sfc_main$2 = defineComponent({
|
|
24873
24874
|
name: "EcanIframe",
|
|
24874
24875
|
props: {
|
|
@@ -24877,20 +24878,35 @@ const Image$1 = /* @__PURE__ */ _export_sfc$1(__default__$1, [["render", _sfc_re
|
|
|
24877
24878
|
setup(e) {
|
|
24878
24879
|
const r = usePickComponentStyle(e), { contextRequestUrl: n } = inject(GLOBAL_CONFIG, {
|
|
24879
24880
|
contextRequestUrl: ""
|
|
24880
|
-
}), i =
|
|
24881
|
-
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
o[o.length - 1] === "/" ? o += "erdReport" : o += "/erdReport", a = `${ERD_URL || o}?_t=0&uid=${a}`;
|
|
24881
|
+
}), { getRecordValueByKeyName: i } = inject(GLOBAL_MODEL, {
|
|
24882
|
+
// @ts-ignore
|
|
24883
|
+
// eslint-disable-next-line no-void
|
|
24884
|
+
getRecordValueByKeyName: (o) => {
|
|
24885
24885
|
}
|
|
24886
|
-
|
|
24886
|
+
}), a = computed(() => {
|
|
24887
|
+
var s;
|
|
24888
|
+
let o = useVariablesInText(e.link);
|
|
24889
|
+
if (e.linkType === "erd" && o != null) {
|
|
24890
|
+
let l = unref(n);
|
|
24891
|
+
l[l.length - 1] === "/" ? l += "erdReport" : l += "/erdReport", o = `${ERD_URL || l}?_t=0&uid=${o}`;
|
|
24892
|
+
}
|
|
24893
|
+
if ((s = e.transParams) != null && s.length) {
|
|
24894
|
+
o.includes("?") ? o += "&" : o += "?";
|
|
24895
|
+
const l = [];
|
|
24896
|
+
for (const c of e.transParams) {
|
|
24897
|
+
const f = i(String(c.fieldName));
|
|
24898
|
+
l.push(`${c.keyName}=${f}`);
|
|
24899
|
+
}
|
|
24900
|
+
o += l.join("&");
|
|
24901
|
+
}
|
|
24902
|
+
return o;
|
|
24887
24903
|
});
|
|
24888
24904
|
return {
|
|
24889
24905
|
style: r,
|
|
24890
|
-
myLink:
|
|
24906
|
+
myLink: a
|
|
24891
24907
|
};
|
|
24892
24908
|
}
|
|
24893
|
-
}),
|
|
24909
|
+
}), Iframe_vue_vue_type_style_index_0_scoped_06253280_lang = "", _hoisted_1$2 = ["src"];
|
|
24894
24910
|
function _sfc_render$3(e, r, n, i, a, o) {
|
|
24895
24911
|
return e.myLink ? (openBlock(), createElementBlock("iframe", {
|
|
24896
24912
|
key: 0,
|
|
@@ -24902,7 +24918,7 @@ function _sfc_render$3(e, r, n, i, a, o) {
|
|
|
24902
24918
|
style: normalizeStyle$1(e.style)
|
|
24903
24919
|
}, " 请填写网页链接 ", 4));
|
|
24904
24920
|
}
|
|
24905
|
-
const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
24921
|
+
const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$3], ["__scopeId", "data-v-06253280"]]), EcanIframe = withInstall$1(Iframe), tableProps = {
|
|
24906
24922
|
...props,
|
|
24907
24923
|
zIndex: 2,
|
|
24908
24924
|
name: "表格",
|
|
@@ -24991,7 +25007,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
24991
25007
|
target: "self",
|
|
24992
25008
|
href: "",
|
|
24993
25009
|
isAutoScroll: !1,
|
|
24994
|
-
scrollSpeed: 10
|
|
25010
|
+
scrollSpeed: 10,
|
|
25011
|
+
clickTarget: "row",
|
|
25012
|
+
clickTargetColumns: [],
|
|
25013
|
+
linkTextColor: ""
|
|
24995
25014
|
}, tableComponentProps = transformToComponentProps(tableProps), tableEvents = ["click", "refreshData", "resetRecord", "exportTableData"], seqIcon1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC", seqIcon2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==", seqIcon3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==", __default__ = defineComponent({
|
|
24996
25015
|
name: "EcanTable",
|
|
24997
25016
|
components: {
|
|
@@ -25039,44 +25058,45 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25039
25058
|
break;
|
|
25040
25059
|
}
|
|
25041
25060
|
return Q;
|
|
25042
|
-
}, g = ref(0), A = ref(0);
|
|
25061
|
+
}, g = ref(0), A = ref(""), C = ref(0);
|
|
25043
25062
|
watchEffect(() => {
|
|
25044
25063
|
var Q;
|
|
25045
25064
|
(Q = x.value) != null && Q.length && e.height && setTimeout(() => {
|
|
25046
25065
|
let re = parseFloat(e.height);
|
|
25047
|
-
const
|
|
25066
|
+
const oe = document.querySelector(`#ecanTable-${e.id} .ant-table-body`), ue = document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`), le = document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`), fe = document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);
|
|
25048
25067
|
let se = 0;
|
|
25049
|
-
if (
|
|
25050
|
-
let
|
|
25051
|
-
|
|
25068
|
+
if (le && (re -= (le == null ? void 0 : le.clientHeight) || 0), fe && e.isSummaryFixed && (se = (fe == null ? void 0 : fe.clientHeight) || 0, re -= se), e.paginationShow && !e.isAutoScroll) {
|
|
25069
|
+
let ge = 0;
|
|
25070
|
+
ge = m(), ge && (re -= ge);
|
|
25052
25071
|
}
|
|
25053
|
-
(
|
|
25072
|
+
(ue == null ? void 0 : ue.clientHeight) > re ? y.value = re : y.value = 0, nextTick(() => {
|
|
25073
|
+
var ge;
|
|
25054
25074
|
if (se) {
|
|
25055
|
-
const
|
|
25056
|
-
se !==
|
|
25075
|
+
const ye = document.querySelector(`#ecanTable-${e.id} .ant-table-summary`), xe = (ye == null ? void 0 : ye.clientHeight) || 0;
|
|
25076
|
+
se !== xe && unref(y) && (y.value = re + se - xe);
|
|
25057
25077
|
}
|
|
25058
25078
|
if (e.isAutoScroll && i.value) {
|
|
25059
|
-
g.value = (
|
|
25060
|
-
height: ((
|
|
25079
|
+
g.value = (oe == null ? void 0 : oe.clientHeight) || 0, C.value = (le == null ? void 0 : le.clientHeight) || 0, o.value = {
|
|
25080
|
+
height: ((ue == null ? void 0 : ue.clientHeight) || 0) + "px"
|
|
25061
25081
|
};
|
|
25062
|
-
const
|
|
25063
|
-
if (
|
|
25064
|
-
const
|
|
25065
|
-
|
|
25066
|
-
|
|
25082
|
+
const ye = document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);
|
|
25083
|
+
if (A.value = (ge = document.querySelector(`#ecanTable-${e.id} .ant-table`)) == null ? void 0 : ge.className, ye) {
|
|
25084
|
+
const xe = ye.cloneNode(!0);
|
|
25085
|
+
ye.style.visibility = "hidden", setTimeout(() => {
|
|
25086
|
+
oe.setAttribute("id", "hiddenTableBody");
|
|
25067
25087
|
}, 0);
|
|
25068
|
-
const
|
|
25069
|
-
if (
|
|
25070
|
-
for (const
|
|
25071
|
-
|
|
25072
|
-
const
|
|
25073
|
-
if (
|
|
25074
|
-
for (const
|
|
25075
|
-
|
|
25076
|
-
const
|
|
25077
|
-
|
|
25078
|
-
var
|
|
25079
|
-
document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft = ((
|
|
25088
|
+
const Ee = document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);
|
|
25089
|
+
if (Ee != null && Ee.length) {
|
|
25090
|
+
for (const ze of Ee)
|
|
25091
|
+
ze.append(xe.cloneNode(!0));
|
|
25092
|
+
const De = document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);
|
|
25093
|
+
if (De != null && De.length)
|
|
25094
|
+
for (const ze of De)
|
|
25095
|
+
p(ze);
|
|
25096
|
+
const je = document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);
|
|
25097
|
+
je && je.addEventListener("scroll", (ze) => {
|
|
25098
|
+
var Je;
|
|
25099
|
+
document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft = ((Je = ze == null ? void 0 : ze.target) == null ? void 0 : Je.scrollLeft) || 0;
|
|
25080
25100
|
});
|
|
25081
25101
|
}
|
|
25082
25102
|
}
|
|
@@ -25084,106 +25104,113 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25084
25104
|
});
|
|
25085
25105
|
}, 0);
|
|
25086
25106
|
});
|
|
25087
|
-
function
|
|
25107
|
+
function p(Q) {
|
|
25088
25108
|
Q.addEventListener("click", (re) => {
|
|
25089
|
-
const
|
|
25090
|
-
if (
|
|
25091
|
-
const
|
|
25092
|
-
|
|
25109
|
+
const ue = v(re.target).getAttribute("dix");
|
|
25110
|
+
if (ue) {
|
|
25111
|
+
const le = document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ue}"]`);
|
|
25112
|
+
le && le.click();
|
|
25093
25113
|
}
|
|
25094
25114
|
});
|
|
25095
25115
|
}
|
|
25096
|
-
function
|
|
25097
|
-
return Q.className.includes("ant-table-cell") ? Q :
|
|
25098
|
-
}
|
|
25099
|
-
const
|
|
25100
|
-
let
|
|
25101
|
-
return Q.forEach((
|
|
25102
|
-
const { value:
|
|
25103
|
-
|
|
25104
|
-
}),
|
|
25105
|
-
},
|
|
25106
|
-
var re,
|
|
25116
|
+
function v(Q) {
|
|
25117
|
+
return Q.className.includes("ant-table-cell") ? Q : v(Q.parentElement);
|
|
25118
|
+
}
|
|
25119
|
+
const b = ref([]), w = ref([]), k = ref([]), I = ref([]), _ = ref(0), O = ref(1), B = ref(e.paginationPageSize || 10), D = reactive([]), L = (Q, re) => {
|
|
25120
|
+
let oe = "";
|
|
25121
|
+
return Q.forEach((ue, le) => {
|
|
25122
|
+
const { value: fe, rule: se } = ue;
|
|
25123
|
+
ue.conditions ? oe += `(${L(ue.conditions, ue.join)})` : fe && se && (oe += `value ${se} '${fe}'`), oe += `${le === Q.length - 1 ? "" : re ? " " + re + " " : ""}`;
|
|
25124
|
+
}), oe;
|
|
25125
|
+
}, N = (Q = []) => {
|
|
25126
|
+
var re, oe;
|
|
25107
25127
|
if (Array.isArray(Q) && Q.length > 0) {
|
|
25108
|
-
let
|
|
25109
|
-
const
|
|
25110
|
-
if (e.dataType === "indicator" && ((re = unref(l)) != null && re.length) && !unref(l).find((
|
|
25128
|
+
let ue = Q.length;
|
|
25129
|
+
const le = e.columnsFixedNum;
|
|
25130
|
+
if (e.dataType === "indicator" && ((re = unref(l)) != null && re.length) && !unref(l).find((fe) => {
|
|
25111
25131
|
var se;
|
|
25112
|
-
return (se =
|
|
25132
|
+
return (se = fe.children) == null ? void 0 : se.length;
|
|
25113
25133
|
})) {
|
|
25114
|
-
const { graphicConfig: { indicators:
|
|
25115
|
-
Q.forEach((se,
|
|
25116
|
-
if (unref(l)[
|
|
25117
|
-
for (const Ee in unref(l)[
|
|
25118
|
-
["dataIndex", "title"].includes(Ee) || (se[Ee] = unref(l)[
|
|
25119
|
-
const
|
|
25134
|
+
const { graphicConfig: { indicators: fe = [] } } = e;
|
|
25135
|
+
Q.forEach((se, ge) => {
|
|
25136
|
+
if (unref(l)[ge])
|
|
25137
|
+
for (const Ee in unref(l)[ge])
|
|
25138
|
+
["dataIndex", "title"].includes(Ee) || (se[Ee] = unref(l)[ge][Ee]);
|
|
25139
|
+
const ye = fe.find((Ee) => Ee.label === se.title), { showLabel: xe = "" } = ye || {};
|
|
25120
25140
|
xe && (se.title = xe);
|
|
25121
25141
|
});
|
|
25122
25142
|
}
|
|
25123
|
-
for (let
|
|
25124
|
-
(
|
|
25125
|
-
|
|
25126
|
-
for (let
|
|
25127
|
-
const se = Q[
|
|
25128
|
-
if (
|
|
25143
|
+
for (let fe = ue - 1; fe >= 0; fe--)
|
|
25144
|
+
(oe = Q[fe]) != null && oe.isHidden && Q.splice(fe, 1);
|
|
25145
|
+
ue = Q.length;
|
|
25146
|
+
for (let fe = 0; fe < ue; fe++) {
|
|
25147
|
+
const se = Q[fe];
|
|
25148
|
+
if (fe < le ? se.fixed = "left" : se.fixed = !1, e.isSortByFront && se.sorter) {
|
|
25129
25149
|
const Ue = se.dataIndex;
|
|
25130
|
-
se.sorter = (We,
|
|
25150
|
+
se.sorter = (We, Ke) => We[Ue] - Ke[Ue];
|
|
25131
25151
|
}
|
|
25132
25152
|
const {
|
|
25133
|
-
cellAlign:
|
|
25134
|
-
cellColor:
|
|
25153
|
+
cellAlign: ge = "center",
|
|
25154
|
+
cellColor: ye,
|
|
25135
25155
|
dataIndex: xe,
|
|
25136
25156
|
title: Ee,
|
|
25137
|
-
tableFilter:
|
|
25138
|
-
headerCellAlign:
|
|
25139
|
-
headerCellColor:
|
|
25157
|
+
tableFilter: De,
|
|
25158
|
+
headerCellAlign: je,
|
|
25159
|
+
headerCellColor: ze,
|
|
25140
25160
|
overflow: Je,
|
|
25141
|
-
conditions:
|
|
25161
|
+
conditions: Ze
|
|
25142
25162
|
} = se;
|
|
25143
|
-
|
|
25163
|
+
De && (D.push(xe), se.filterOptionsInputValue = "", se.filterCheckboxGroupValue = [], se.customFilterDropdown = !0, se.onFilter = (Ue, We) => We[xe].toString().toLowerCase().includes(Ue.toLowerCase())), Ze && (se.conditionCode = L(Ze)), se.customHeaderCell = () => ({
|
|
25144
25164
|
style: {
|
|
25145
25165
|
display: "table-cell",
|
|
25146
25166
|
verticalAlign: "middle",
|
|
25147
25167
|
fontSize: e.headerFontSize,
|
|
25148
25168
|
fontWeight: e.headerFontWeight,
|
|
25149
|
-
textAlign:
|
|
25150
|
-
color:
|
|
25169
|
+
textAlign: je || "center",
|
|
25170
|
+
color: ze || e.headerFontColor,
|
|
25151
25171
|
borderBottomColor: e.borderColor,
|
|
25152
25172
|
backgroundColor: e.headerBackgroundColor
|
|
25153
25173
|
}
|
|
25154
|
-
}), se.customCell = (Ue, We,
|
|
25174
|
+
}), se.customCell = (Ue, We, Ke) => ({
|
|
25155
25175
|
style: {
|
|
25156
|
-
textAlign:
|
|
25157
|
-
color:
|
|
25176
|
+
textAlign: ge,
|
|
25177
|
+
color: q(Ke) ? e.linkTextColor : ye || e.cellFontColor,
|
|
25158
25178
|
backgroundColor: e.cellBackgroundColor,
|
|
25159
25179
|
borderBottomColor: e.borderColor
|
|
25160
25180
|
},
|
|
25161
25181
|
class: {
|
|
25162
|
-
highlight: unref(
|
|
25182
|
+
highlight: unref(he) === We && e.clickHighlight,
|
|
25183
|
+
linkText: q(Ke)
|
|
25163
25184
|
},
|
|
25164
|
-
dix:
|
|
25165
|
-
onClick:
|
|
25166
|
-
|
|
25167
|
-
return;
|
|
25168
|
-
const Ze = e.id, rt = ee(Ze);
|
|
25185
|
+
dix: Ke.dataIndex + "_" + We,
|
|
25186
|
+
onClick: X("click", () => {
|
|
25187
|
+
const Xe = e.id, it = Z(Xe);
|
|
25169
25188
|
Ue = {
|
|
25170
25189
|
dataIndex: xe,
|
|
25171
25190
|
title: Ee,
|
|
25172
25191
|
...Ue
|
|
25173
|
-
},
|
|
25174
|
-
|
|
25192
|
+
}, K(Xe, { ...it, type: e.type, RECORD: Ue }), he.value = We, setTimeout(() => {
|
|
25193
|
+
if (!e.linkPage && !e.href)
|
|
25194
|
+
return;
|
|
25195
|
+
let Qe = !1;
|
|
25196
|
+
(q(Ke) || e.clickTarget !== "cell") && (Qe = !0), Qe && handleJumpLink(e, {
|
|
25175
25197
|
pageMode: unref(n),
|
|
25176
|
-
getRecordValueByKeyName:
|
|
25198
|
+
getRecordValueByKeyName: te
|
|
25177
25199
|
});
|
|
25178
25200
|
}, 0);
|
|
25179
25201
|
})
|
|
25180
|
-
}), Je === "ellipsis" ? se.ellipsis = !0 : se.ellipsis = !1, Array.isArray(se.children) &&
|
|
25202
|
+
}), Je === "ellipsis" ? se.ellipsis = !0 : se.ellipsis = !1, Array.isArray(se.children) && N(se.children);
|
|
25181
25203
|
}
|
|
25182
25204
|
}
|
|
25183
|
-
}
|
|
25184
|
-
|
|
25205
|
+
};
|
|
25206
|
+
function q(Q) {
|
|
25207
|
+
let re = !1;
|
|
25208
|
+
return e.clickTarget === "cell" && e.clickTargetColumns.includes(Q.dataIndex) && (re = !0), re;
|
|
25209
|
+
}
|
|
25210
|
+
const $ = (Q = []) => {
|
|
25211
|
+
var oe;
|
|
25185
25212
|
let re = cloneDeep(Q);
|
|
25186
|
-
return (
|
|
25213
|
+
return (oe = unref(I)) != null && oe.length && (re = cloneDeep(unref(I))), e.isUseSeq && re.unshift({
|
|
25187
25214
|
title: e.seqName,
|
|
25188
25215
|
dataIndex: "SEQ",
|
|
25189
25216
|
align: "center",
|
|
@@ -25192,10 +25219,10 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25192
25219
|
title: "操作",
|
|
25193
25220
|
dataIndex: "ACTION",
|
|
25194
25221
|
width: e.actionColumnWidth
|
|
25195
|
-
}),
|
|
25222
|
+
}), N(re), re;
|
|
25196
25223
|
};
|
|
25197
|
-
watch(
|
|
25198
|
-
|
|
25224
|
+
watch(B, () => {
|
|
25225
|
+
O.value = 1, Ce(!1);
|
|
25199
25226
|
}), watch(c, (Q) => {
|
|
25200
25227
|
f.value = !!Q;
|
|
25201
25228
|
}), watch(() => [
|
|
@@ -25212,85 +25239,85 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25212
25239
|
e.borderColor,
|
|
25213
25240
|
e.stripedColor
|
|
25214
25241
|
], () => {
|
|
25215
|
-
|
|
25242
|
+
b.value = $(cloneDeep(e.columns));
|
|
25216
25243
|
}, {
|
|
25217
25244
|
immediate: !0,
|
|
25218
25245
|
deep: !0
|
|
25219
25246
|
}), watch(() => [e.data, e.dataType], ([Q, re]) => {
|
|
25220
|
-
re === "static" && (
|
|
25247
|
+
re === "static" && (w.value = Q);
|
|
25221
25248
|
}, {
|
|
25222
25249
|
immediate: !0
|
|
25223
25250
|
});
|
|
25224
|
-
const
|
|
25251
|
+
const P = ref({}), M = (Q) => {
|
|
25225
25252
|
if (Array.isArray(Q)) {
|
|
25226
|
-
const re = Q.length,
|
|
25253
|
+
const re = Q.length, oe = D, ue = oe.length, le = {};
|
|
25227
25254
|
for (let se = 0; se < re; se++) {
|
|
25228
|
-
const
|
|
25229
|
-
for (let
|
|
25230
|
-
const xe =
|
|
25231
|
-
if (
|
|
25232
|
-
|
|
25255
|
+
const ge = Q[se];
|
|
25256
|
+
for (let ye = 0; ye < ue; ye++) {
|
|
25257
|
+
const xe = oe[ye];
|
|
25258
|
+
if (le[xe])
|
|
25259
|
+
le[xe].add(ge[xe]);
|
|
25233
25260
|
else {
|
|
25234
25261
|
const Ee = /* @__PURE__ */ new Set();
|
|
25235
|
-
Ee.add(
|
|
25262
|
+
Ee.add(ge[xe]), le[xe] = Ee;
|
|
25236
25263
|
}
|
|
25237
25264
|
}
|
|
25238
25265
|
}
|
|
25239
|
-
const
|
|
25240
|
-
for (const se in
|
|
25241
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
25242
|
-
const
|
|
25243
|
-
|
|
25266
|
+
const fe = {};
|
|
25267
|
+
for (const se in le)
|
|
25268
|
+
if (Object.prototype.hasOwnProperty.call(le, se)) {
|
|
25269
|
+
const ge = le[se], ye = Array.from(ge);
|
|
25270
|
+
fe[se] = ye.map((xe) => ({ label: xe, value: xe }));
|
|
25244
25271
|
}
|
|
25245
|
-
|
|
25272
|
+
P.value = fe;
|
|
25246
25273
|
}
|
|
25247
25274
|
};
|
|
25248
|
-
watch(() => [e.isReverse,
|
|
25249
|
-
const Q = unref(
|
|
25250
|
-
if (
|
|
25251
|
-
const { columns:
|
|
25252
|
-
|
|
25275
|
+
watch(() => [e.isReverse, b.value, w.value], () => {
|
|
25276
|
+
const Q = unref(b), re = unref(w);
|
|
25277
|
+
if (M(re), e.isReverse) {
|
|
25278
|
+
const { columns: oe, dataSource: ue } = E(cloneDeep(Q), cloneDeep(re));
|
|
25279
|
+
k.value = oe, x.value = ue.map((le) => ({ key: nanoid(6), ...le }));
|
|
25253
25280
|
} else
|
|
25254
|
-
|
|
25281
|
+
k.value = Q, x.value = re.map((oe) => ({ key: nanoid(6), ...oe }));
|
|
25255
25282
|
}, {
|
|
25256
25283
|
immediate: !0
|
|
25257
25284
|
});
|
|
25258
|
-
const
|
|
25259
|
-
const
|
|
25260
|
-
title:
|
|
25285
|
+
const E = (Q, re) => {
|
|
25286
|
+
const oe = Q[0], ue = [{
|
|
25287
|
+
title: oe.title,
|
|
25261
25288
|
dataIndex: "col0",
|
|
25262
25289
|
key: "col0",
|
|
25263
25290
|
align: "center"
|
|
25264
25291
|
}];
|
|
25265
|
-
for (let
|
|
25266
|
-
const se = re[
|
|
25267
|
-
|
|
25268
|
-
title: se[
|
|
25269
|
-
dataIndex:
|
|
25270
|
-
key:
|
|
25292
|
+
for (let fe = 0; fe < re.length; fe++) {
|
|
25293
|
+
const se = re[fe], ge = "col" + (fe + 1);
|
|
25294
|
+
ue.push({
|
|
25295
|
+
title: se[oe.dataIndex],
|
|
25296
|
+
dataIndex: ge,
|
|
25297
|
+
key: ge,
|
|
25271
25298
|
align: "center"
|
|
25272
25299
|
});
|
|
25273
25300
|
}
|
|
25274
|
-
const
|
|
25275
|
-
for (let
|
|
25276
|
-
const se = Q[
|
|
25277
|
-
for (let
|
|
25278
|
-
const xe = re[
|
|
25279
|
-
|
|
25301
|
+
const le = [];
|
|
25302
|
+
for (let fe = 1; fe < Q.length; fe++) {
|
|
25303
|
+
const se = Q[fe], ge = { col0: se.title };
|
|
25304
|
+
for (let ye = 0; ye < re.length; ye++) {
|
|
25305
|
+
const xe = re[ye];
|
|
25306
|
+
ge[`col${ye + 1}`] = xe[se.dataIndex];
|
|
25280
25307
|
}
|
|
25281
|
-
|
|
25308
|
+
le.push(ge);
|
|
25282
25309
|
}
|
|
25283
25310
|
return {
|
|
25284
|
-
columns:
|
|
25285
|
-
dataSource:
|
|
25311
|
+
columns: ue,
|
|
25312
|
+
dataSource: le
|
|
25286
25313
|
};
|
|
25287
|
-
},
|
|
25288
|
-
var
|
|
25289
|
-
const { rows: re = [], total:
|
|
25290
|
-
if (
|
|
25291
|
-
const { requestParams:
|
|
25292
|
-
if ((
|
|
25293
|
-
const se = re.filter((
|
|
25314
|
+
}, S = ref(""), F = (Q) => {
|
|
25315
|
+
var ue;
|
|
25316
|
+
const { rows: re = [], total: oe = 0 } = ((ue = Q == null ? void 0 : Q.data) == null ? void 0 : ue.data) || {};
|
|
25317
|
+
if (_.value = oe, Array.isArray(re) && (w.value = re), window.config.routerBaseURL.includes("1523545080925487106")) {
|
|
25318
|
+
const { requestParams: le = [] } = e, fe = le.find((se) => se.key === "dataSqlId");
|
|
25319
|
+
if ((fe == null ? void 0 : fe.value) === "xt_jxzebg") {
|
|
25320
|
+
const se = re.filter((ge) => !ge.绩效总额).map((ge) => ge.ORG_NAME);
|
|
25294
25321
|
se != null && se.length && nextTick(() => {
|
|
25295
25322
|
notification.warning({
|
|
25296
25323
|
message: "提示",
|
|
@@ -25301,69 +25328,69 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25301
25328
|
}
|
|
25302
25329
|
}
|
|
25303
25330
|
i.value = !0;
|
|
25304
|
-
},
|
|
25331
|
+
}, T = useRequestData(e, F), R = async (Q = !0, re = {}) => {
|
|
25305
25332
|
try {
|
|
25306
|
-
Q && (s.value = !0), unref(
|
|
25307
|
-
pageNum: unref(
|
|
25308
|
-
pageSize: unref(
|
|
25333
|
+
Q && (s.value = !0), unref(S) && (re.orderCondition = unref(S)), e.paginationShow && (re = {
|
|
25334
|
+
pageNum: unref(O),
|
|
25335
|
+
pageSize: unref(B) || "10",
|
|
25309
25336
|
layer: "1",
|
|
25310
25337
|
...re
|
|
25311
25338
|
});
|
|
25312
|
-
const
|
|
25313
|
-
|
|
25314
|
-
} catch (
|
|
25315
|
-
console.error(
|
|
25339
|
+
const oe = await T(re);
|
|
25340
|
+
F(oe);
|
|
25341
|
+
} catch (oe) {
|
|
25342
|
+
console.error(oe);
|
|
25316
25343
|
} finally {
|
|
25317
25344
|
s.value = !1;
|
|
25318
25345
|
}
|
|
25319
|
-
},
|
|
25320
|
-
if (
|
|
25321
|
-
const { field:
|
|
25346
|
+
}, G = ({ current: Q }, re, oe) => {
|
|
25347
|
+
if (O.value = Q, oe && Object.keys(oe).length > 0) {
|
|
25348
|
+
const { field: ue, order: le } = oe, se = {
|
|
25322
25349
|
ascend: "asc",
|
|
25323
25350
|
descend: "desc"
|
|
25324
|
-
}[
|
|
25325
|
-
|
|
25351
|
+
}[le];
|
|
25352
|
+
ue != null && se != null && se ? S.value = ue + " " + se : se || (S.value = "");
|
|
25326
25353
|
}
|
|
25327
|
-
e.isSortByFront ||
|
|
25328
|
-
},
|
|
25329
|
-
const Q = e.simple, re = [e.paginationPosition],
|
|
25330
|
-
return e.isShowTotal && (
|
|
25354
|
+
e.isSortByFront || Ce(!1);
|
|
25355
|
+
}, H = computed(() => {
|
|
25356
|
+
const Q = e.simple, re = [e.paginationPosition], oe = {};
|
|
25357
|
+
return e.isShowTotal && (oe.showTotal = (ue) => `共 ${ue} 条数据`), e.paginationShow && {
|
|
25331
25358
|
simple: Q,
|
|
25332
25359
|
position: re,
|
|
25333
|
-
total: unref(
|
|
25334
|
-
current: unref(
|
|
25335
|
-
pageSize: unref(
|
|
25360
|
+
total: unref(_),
|
|
25361
|
+
current: unref(O),
|
|
25362
|
+
pageSize: unref(B) || "10",
|
|
25336
25363
|
showSizeChanger: !1,
|
|
25337
25364
|
size: "large",
|
|
25338
|
-
...
|
|
25365
|
+
...oe
|
|
25339
25366
|
};
|
|
25340
|
-
}),
|
|
25341
|
-
const { format:
|
|
25367
|
+
}), U = (Q) => +Q == 1 ? "是" : +Q == 0 ? "否" : Q, W = (Q, re) => {
|
|
25368
|
+
const { format: oe, retentiondigit: ue, customFormatter: le, defaultVal: fe } = re;
|
|
25342
25369
|
let se = "";
|
|
25343
|
-
if (
|
|
25370
|
+
if (oe == null || oe === "")
|
|
25344
25371
|
se = Q;
|
|
25345
25372
|
else {
|
|
25346
|
-
const
|
|
25373
|
+
const ge = {
|
|
25347
25374
|
money: formatMoney,
|
|
25348
25375
|
percentage: formatPercentage,
|
|
25349
25376
|
contrast: formatPercentage,
|
|
25350
|
-
boolean:
|
|
25377
|
+
boolean: U,
|
|
25351
25378
|
decimals: formatDecimals,
|
|
25352
25379
|
custom: formatCustom
|
|
25353
25380
|
};
|
|
25354
|
-
|
|
25381
|
+
ge[oe] || (se = ""), oe === "decimals" ? se = ge[oe](Q, ue) || "" : oe === "custom" ? se = ge[oe](Q, le) || "" : se = ge[oe](Q) || "";
|
|
25355
25382
|
}
|
|
25356
|
-
return se || (se =
|
|
25357
|
-
},
|
|
25358
|
-
const { text: re, format:
|
|
25359
|
-
if (
|
|
25360
|
-
const
|
|
25383
|
+
return se || (se = fe), se;
|
|
25384
|
+
}, j = (Q) => Q === "contrast" ? "upDown" : "", V = (Q) => {
|
|
25385
|
+
const { text: re, format: oe, declineColor: ue = "#39cf93", increaseColor: le = "#ff512e" } = Q;
|
|
25386
|
+
if (oe === "contrast") {
|
|
25387
|
+
const fe = {
|
|
25361
25388
|
fontSize: e.fontSize
|
|
25362
25389
|
}, se = parseFloat(re + "");
|
|
25363
|
-
return se >= 0 ?
|
|
25390
|
+
return se >= 0 ? fe.color = le : se < 0 && (fe.color = ue), fe;
|
|
25364
25391
|
} else
|
|
25365
25392
|
return {};
|
|
25366
|
-
},
|
|
25393
|
+
}, Y = computed(() => {
|
|
25367
25394
|
const { fontSize: Q } = e;
|
|
25368
25395
|
return {
|
|
25369
25396
|
width: Q,
|
|
@@ -25371,19 +25398,19 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25371
25398
|
textIndent: `-${parseFloat(Q) * 2}px`,
|
|
25372
25399
|
overflow: "hidden"
|
|
25373
25400
|
};
|
|
25374
|
-
}),
|
|
25375
|
-
const { text: re, declineColor:
|
|
25376
|
-
width:
|
|
25401
|
+
}), J = (Q) => {
|
|
25402
|
+
const { text: re, declineColor: oe = "#39cf93", increaseColor: ue = "#ff512e" } = Q, { fontSize: le } = e, fe = parseFloat(re + ""), se = {
|
|
25403
|
+
width: le,
|
|
25377
25404
|
verticalAlign: "unset"
|
|
25378
25405
|
};
|
|
25379
|
-
return
|
|
25380
|
-
},
|
|
25406
|
+
return fe >= 0 ? se.filter = `drop-shadow(${ue || "#ff512e"} ${le} -1px)` : fe < 0 && (se.filter = `drop-shadow(${oe || "#39cf93"} ${le} -1px)`), se;
|
|
25407
|
+
}, ee = (Q) => {
|
|
25381
25408
|
const re = parseFloat(Q + "");
|
|
25382
25409
|
if (re >= 0)
|
|
25383
25410
|
return goUp;
|
|
25384
25411
|
if (re < 0)
|
|
25385
25412
|
return goDown;
|
|
25386
|
-
},
|
|
25413
|
+
}, X = useEmitEvent(e), { getGlobalModel: Z, setGlobalModel: K, getRecordValueByKeyName: te } = inject(GLOBAL_MODEL, {
|
|
25387
25414
|
// @ts-ignore
|
|
25388
25415
|
// eslint-disable-next-line no-void
|
|
25389
25416
|
getGlobalModel: (Q) => {
|
|
@@ -25397,142 +25424,137 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25397
25424
|
getRecordValueByKeyName: (Q) => {
|
|
25398
25425
|
}
|
|
25399
25426
|
});
|
|
25400
|
-
|
|
25427
|
+
K(e.id, {
|
|
25401
25428
|
type: e.type,
|
|
25402
25429
|
RECORD: ""
|
|
25403
25430
|
});
|
|
25404
|
-
const
|
|
25405
|
-
let
|
|
25406
|
-
unref(l).find((
|
|
25407
|
-
var
|
|
25408
|
-
return (
|
|
25409
|
-
}) && (
|
|
25410
|
-
},
|
|
25411
|
-
var re,
|
|
25412
|
-
|
|
25413
|
-
},
|
|
25431
|
+
const ne = (Q = [], re = []) => {
|
|
25432
|
+
let oe = Q.map((ue) => ({ title: ue, dataIndex: ue, key: ue }));
|
|
25433
|
+
unref(l).find((ue) => {
|
|
25434
|
+
var le;
|
|
25435
|
+
return (le = ue.children) == null ? void 0 : le.length;
|
|
25436
|
+
}) && (oe = cloneDeep(unref(l))), I.value = cloneDeep(oe), b.value = $(oe), w.value = re, i.value = !0;
|
|
25437
|
+
}, ie = (Q) => {
|
|
25438
|
+
var re, oe, ue, le;
|
|
25439
|
+
ne((oe = (re = Q == null ? void 0 : Q.data) == null ? void 0 : re.data) == null ? void 0 : oe.columns, (le = (ue = Q == null ? void 0 : Q.data) == null ? void 0 : ue.data) == null ? void 0 : le.rows);
|
|
25440
|
+
}, ae = useIndicatorData(e, ie), ce = async (Q = !0) => {
|
|
25414
25441
|
try {
|
|
25415
25442
|
Q && (s.value = !0);
|
|
25416
|
-
const re = unref(
|
|
25417
|
-
e.isSortByFront || (
|
|
25443
|
+
const re = unref(S).split(" "), oe = {};
|
|
25444
|
+
e.isSortByFront || (oe.sort = {
|
|
25418
25445
|
order: re[1],
|
|
25419
25446
|
field: re[0]
|
|
25420
25447
|
});
|
|
25421
|
-
const
|
|
25422
|
-
|
|
25448
|
+
const ue = await ae(oe);
|
|
25449
|
+
ie(ue);
|
|
25423
25450
|
} catch (re) {
|
|
25424
25451
|
console.error(re);
|
|
25425
25452
|
} finally {
|
|
25426
25453
|
s.value = !1;
|
|
25427
25454
|
}
|
|
25428
|
-
},
|
|
25429
|
-
onClick: J("rowClick", () => {
|
|
25430
|
-
const ie = e.id, fe = ee(ie);
|
|
25431
|
-
Z(ie, { ...fe, type: e.type, RECORD: Q }), oe.value = re;
|
|
25432
|
-
})
|
|
25433
|
-
}), { loadedData: he } = inject(LOADED_DATA, {
|
|
25455
|
+
}, he = ref(-1), { loadedData: de } = inject(LOADED_DATA, {
|
|
25434
25456
|
loadedData: {}
|
|
25435
|
-
}),
|
|
25436
|
-
watch(
|
|
25457
|
+
}), be = ref(!1);
|
|
25458
|
+
watch(de, (Q) => {
|
|
25437
25459
|
if (e.dataType === "indicator") {
|
|
25438
25460
|
const re = getFixedValueDatas(e.graphicConfig);
|
|
25439
|
-
re != null && re.length && (!unref(
|
|
25461
|
+
re != null && re.length && (!unref(be) && canRequestIndicator(e.graphicConfig, Q) ? (be.value = !0, Ce()) : canRequestIndicator(e.graphicConfig, Q) || (be.value = !1));
|
|
25440
25462
|
}
|
|
25441
25463
|
}, {
|
|
25442
25464
|
deep: !0
|
|
25443
25465
|
});
|
|
25444
|
-
const
|
|
25466
|
+
const Ce = (Q = !0) => {
|
|
25445
25467
|
switch (e.dataType) {
|
|
25446
25468
|
case "request":
|
|
25447
|
-
|
|
25469
|
+
R(Q);
|
|
25448
25470
|
break;
|
|
25449
25471
|
case "indicator":
|
|
25450
|
-
canRequestIndicator(e.graphicConfig, unref(
|
|
25472
|
+
canRequestIndicator(e.graphicConfig, unref(de)) && ce(Q);
|
|
25451
25473
|
break;
|
|
25452
25474
|
}
|
|
25453
|
-
},
|
|
25454
|
-
const Q = e.id, re =
|
|
25455
|
-
|
|
25456
|
-
},
|
|
25457
|
-
const Q = unref(
|
|
25475
|
+
}, we = () => {
|
|
25476
|
+
const Q = e.id, re = Z(Q);
|
|
25477
|
+
K(Q, { ...re, type: e.type, RECORD: "" });
|
|
25478
|
+
}, Te = computed(() => {
|
|
25479
|
+
const Q = unref(k);
|
|
25458
25480
|
let re = 0;
|
|
25459
|
-
const { subTotalColumn:
|
|
25460
|
-
|
|
25461
|
-
const
|
|
25462
|
-
let
|
|
25463
|
-
for (let
|
|
25464
|
-
const xe = Q[
|
|
25465
|
-
|
|
25481
|
+
const { subTotalColumn: oe, subTotalName: ue } = e;
|
|
25482
|
+
oe && (re = Q.findIndex((ye) => ye.dataIndex === oe), re < 0 && (re = 0));
|
|
25483
|
+
const le = [];
|
|
25484
|
+
let fe = 0;
|
|
25485
|
+
for (let ye = 0; ye < Q.length; ye++) {
|
|
25486
|
+
const xe = Q[ye], { isCalcTotal: Ee } = xe;
|
|
25487
|
+
ye === re ? le.push({
|
|
25466
25488
|
...xe,
|
|
25467
|
-
total:
|
|
25468
|
-
}) : Ee ? (
|
|
25489
|
+
total: ue
|
|
25490
|
+
}) : Ee ? (le.push({
|
|
25469
25491
|
...xe,
|
|
25470
|
-
index:
|
|
25492
|
+
index: ye,
|
|
25471
25493
|
total: 0
|
|
25472
|
-
}),
|
|
25494
|
+
}), fe++) : le.push({
|
|
25473
25495
|
...xe
|
|
25474
25496
|
});
|
|
25475
25497
|
}
|
|
25476
|
-
if (
|
|
25498
|
+
if (fe === 0)
|
|
25477
25499
|
return [];
|
|
25478
|
-
const se = unref(x),
|
|
25479
|
-
for (let
|
|
25480
|
-
const xe =
|
|
25500
|
+
const se = unref(x), ge = Se(le);
|
|
25501
|
+
for (let ye = 0; ye < ge.length; ye++) {
|
|
25502
|
+
const xe = ge[ye];
|
|
25481
25503
|
let Ee = 0;
|
|
25482
|
-
const { isCalcTotal:
|
|
25483
|
-
if (
|
|
25484
|
-
for (let
|
|
25485
|
-
const
|
|
25486
|
-
isNaN(
|
|
25504
|
+
const { isCalcTotal: De, dataIndex: je } = xe;
|
|
25505
|
+
if (De === !0) {
|
|
25506
|
+
for (let ze = 0; ze < se.length; ze++) {
|
|
25507
|
+
const Ze = +se[ze][je];
|
|
25508
|
+
isNaN(Ze) || (Ee = new Big(Ee).add(Ze).toNumber());
|
|
25487
25509
|
}
|
|
25488
25510
|
xe.total = Ee;
|
|
25489
25511
|
}
|
|
25490
25512
|
}
|
|
25491
|
-
return
|
|
25513
|
+
return ge;
|
|
25492
25514
|
});
|
|
25493
|
-
function
|
|
25494
|
-
var
|
|
25515
|
+
function Se(Q) {
|
|
25516
|
+
var oe;
|
|
25495
25517
|
const re = [];
|
|
25496
|
-
for (const
|
|
25497
|
-
(
|
|
25518
|
+
for (const ue of Q)
|
|
25519
|
+
(oe = ue.children) != null && oe.length ? re.push(...Se(ue.children)) : re.push(ue);
|
|
25498
25520
|
return re;
|
|
25499
25521
|
}
|
|
25500
|
-
const { setRequest:
|
|
25522
|
+
const { setRequest: ke } = inject(REQUEST_MODEL, {
|
|
25501
25523
|
setRequest: (Q) => {
|
|
25502
25524
|
}
|
|
25503
25525
|
});
|
|
25504
|
-
typeof
|
|
25526
|
+
typeof ke == "function" && ke({
|
|
25505
25527
|
id: e.id,
|
|
25506
|
-
requestFn:
|
|
25528
|
+
requestFn: Ce,
|
|
25507
25529
|
sortNum: e.requestSort
|
|
25508
25530
|
}), r({
|
|
25509
|
-
refreshData:
|
|
25531
|
+
refreshData: Ce
|
|
25510
25532
|
});
|
|
25511
|
-
const
|
|
25533
|
+
const pe = (Q = "", re) => useVariablesInText(Q, re), ve = (Q) => {
|
|
25512
25534
|
if (Q !== "event")
|
|
25513
25535
|
return {
|
|
25514
25536
|
self: "_self",
|
|
25515
25537
|
blank: "_blank"
|
|
25516
25538
|
}[Q];
|
|
25517
|
-
},
|
|
25539
|
+
}, me = (Q, re = "") => {
|
|
25518
25540
|
Q === "event" && window.parent.postMessage({
|
|
25519
25541
|
type: "openPage",
|
|
25520
25542
|
url: re
|
|
25521
25543
|
}, "*");
|
|
25522
|
-
}, ve = (Q, re) => {
|
|
25523
|
-
Q(re.filterCheckboxGroupValue);
|
|
25524
25544
|
}, Ae = (Q, re) => {
|
|
25545
|
+
Q(re.filterCheckboxGroupValue);
|
|
25546
|
+
}, _e = (Q, re) => {
|
|
25525
25547
|
Q({ confirm: !0 }), re.filterOptionsInputValue = "", re.filterCheckboxGroupValue = [];
|
|
25526
|
-
},
|
|
25527
|
-
},
|
|
25548
|
+
}, Oe = () => {
|
|
25549
|
+
}, Le = (Q) => {
|
|
25528
25550
|
const re = Q.dataIndex;
|
|
25529
25551
|
if (typeof re == "string") {
|
|
25530
|
-
let
|
|
25531
|
-
const
|
|
25532
|
-
return Array.isArray(
|
|
25552
|
+
let oe = unref(P)[re];
|
|
25553
|
+
const ue = unref(Q.filterOptionsInputValue).trim();
|
|
25554
|
+
return Array.isArray(oe) ? (oe = oe.filter((le) => typeof le.label == "string" ? le.label.toLowerCase().includes(ue.toLowerCase()) : !0), oe) : [];
|
|
25533
25555
|
}
|
|
25534
25556
|
return [];
|
|
25535
|
-
},
|
|
25557
|
+
}, Ve = async () => {
|
|
25536
25558
|
var xe, Ee;
|
|
25537
25559
|
const Q = "EXPORT_KEY";
|
|
25538
25560
|
message.loading({
|
|
@@ -25544,101 +25566,100 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25544
25566
|
if (e.dataType === "static")
|
|
25545
25567
|
re = e.data;
|
|
25546
25568
|
else if (e.dataType === "request") {
|
|
25547
|
-
const
|
|
25548
|
-
unref(
|
|
25549
|
-
const
|
|
25550
|
-
re = ((Ee = (xe =
|
|
25551
|
-
}
|
|
25552
|
-
const
|
|
25553
|
-
|
|
25554
|
-
|
|
25569
|
+
const De = { layer: "1" };
|
|
25570
|
+
unref(S) && (De.orderCondition = unref(S));
|
|
25571
|
+
const je = await T(De);
|
|
25572
|
+
re = ((Ee = (xe = je == null ? void 0 : je.data) == null ? void 0 : xe.data) == null ? void 0 : Ee.rows) || {};
|
|
25573
|
+
}
|
|
25574
|
+
const oe = unref(k), ue = [], le = [];
|
|
25575
|
+
oe == null || oe.forEach((De) => {
|
|
25576
|
+
ue.push(De.dataIndex), le.push(De.title);
|
|
25555
25577
|
});
|
|
25556
|
-
const
|
|
25557
|
-
utils.book_append_sheet(se,
|
|
25558
|
-
},
|
|
25559
|
-
const
|
|
25560
|
-
return isNaN(
|
|
25578
|
+
const fe = re.map((De) => pick$1(De, ue)), se = utils.book_new(), ge = utils.aoa_to_sheet([le]), ye = utils.sheet_add_json(ge, fe, { skipHeader: !0, origin: "A2" });
|
|
25579
|
+
utils.book_append_sheet(se, ye, "sheet"), writeFile(se, "表格数据.xlsx"), message.success({ key: Q, content: "导出成功" });
|
|
25580
|
+
}, qe = (Q, re = 2) => {
|
|
25581
|
+
const oe = +Q * 100;
|
|
25582
|
+
return isNaN(oe) || oe <= 0 ? 0 : oe >= 100 ? 100 : oe.toFixed(re);
|
|
25561
25583
|
};
|
|
25562
25584
|
useOnEvent(e, {
|
|
25563
|
-
resetRecord:
|
|
25564
|
-
refreshData:
|
|
25565
|
-
exportTableData:
|
|
25585
|
+
resetRecord: we,
|
|
25586
|
+
refreshData: Ce,
|
|
25587
|
+
exportTableData: Ve
|
|
25566
25588
|
});
|
|
25567
|
-
const
|
|
25568
|
-
let
|
|
25569
|
-
return e.stripedShow && (
|
|
25570
|
-
},
|
|
25589
|
+
const Ie = (Q, re) => {
|
|
25590
|
+
let oe = null;
|
|
25591
|
+
return e.stripedShow && (oe = re % 2 === 1 ? "table-striped" : null), oe;
|
|
25592
|
+
}, Ge = computed(() => {
|
|
25571
25593
|
let Q = 0;
|
|
25572
|
-
const { height: re, isPageBottom:
|
|
25573
|
-
return
|
|
25574
|
-
}),
|
|
25594
|
+
const { height: re, isPageBottom: oe } = e;
|
|
25595
|
+
return oe && re && (Q = parseFloat(re) - m()), Q ? Q + "px" : "100%";
|
|
25596
|
+
}), Fe = computed(() => {
|
|
25575
25597
|
let Q = "#071655";
|
|
25576
25598
|
return e.headerBackgroundColor && (Q = "transparent"), Q;
|
|
25577
|
-
}),
|
|
25599
|
+
}), Pe = computed(() => {
|
|
25578
25600
|
let Q = "#071655";
|
|
25579
25601
|
return (e.cellBackgroundColor || e.stripedShow && e.stripedColor) && (Q = "transparent"), Q;
|
|
25580
|
-
}),
|
|
25602
|
+
}), Re = computed(() => parseFloat(e.fontSize) + 16), Me = computed(() => {
|
|
25581
25603
|
let Q = "";
|
|
25582
25604
|
const {
|
|
25583
25605
|
paginationColor: re,
|
|
25584
|
-
paginationBgColor:
|
|
25585
|
-
activePaginationColor:
|
|
25586
|
-
activePaginationBgColor:
|
|
25587
|
-
hoverBackgroundColor:
|
|
25606
|
+
paginationBgColor: oe,
|
|
25607
|
+
activePaginationColor: ue,
|
|
25608
|
+
activePaginationBgColor: le,
|
|
25609
|
+
hoverBackgroundColor: fe
|
|
25588
25610
|
} = e;
|
|
25589
|
-
return re && (Q += "p-color "),
|
|
25590
|
-
}),
|
|
25591
|
-
const { conditionCode:
|
|
25592
|
-
return runCode(
|
|
25611
|
+
return re && (Q += "p-color "), oe && (Q += "p-bg-color "), ue && (Q += "active-p-color "), le && (Q += "active-p-bg-color "), fe && (Q += "hover-bg-color "), Q;
|
|
25612
|
+
}), Be = (Q, re) => {
|
|
25613
|
+
const { conditionCode: oe } = Q;
|
|
25614
|
+
return runCode(oe, { value: re });
|
|
25593
25615
|
};
|
|
25594
25616
|
return {
|
|
25595
25617
|
x: u,
|
|
25596
25618
|
y,
|
|
25597
25619
|
style: d,
|
|
25598
|
-
|
|
25599
|
-
|
|
25600
|
-
|
|
25601
|
-
|
|
25602
|
-
|
|
25603
|
-
summaryList: we,
|
|
25620
|
+
pagination: H,
|
|
25621
|
+
formatFn: W,
|
|
25622
|
+
contrastClass: j,
|
|
25623
|
+
tableChange: G,
|
|
25624
|
+
summaryList: Te,
|
|
25604
25625
|
loading: s,
|
|
25605
|
-
onTouchHrefEvent:
|
|
25606
|
-
handleHref:
|
|
25607
|
-
handleHrefTarget:
|
|
25608
|
-
useRowIndex:
|
|
25609
|
-
tableColumns:
|
|
25626
|
+
onTouchHrefEvent: me,
|
|
25627
|
+
handleHref: pe,
|
|
25628
|
+
handleHrefTarget: ve,
|
|
25629
|
+
useRowIndex: he,
|
|
25630
|
+
tableColumns: k,
|
|
25610
25631
|
tableDataSource: x,
|
|
25611
|
-
useFilterOptions:
|
|
25612
|
-
useSetSelectedKeys:
|
|
25613
|
-
onResetFilter:
|
|
25614
|
-
onSearchFilterOptions:
|
|
25615
|
-
exportTableData:
|
|
25616
|
-
handleProgressText:
|
|
25632
|
+
useFilterOptions: Le,
|
|
25633
|
+
useSetSelectedKeys: Ae,
|
|
25634
|
+
onResetFilter: _e,
|
|
25635
|
+
onSearchFilterOptions: Oe,
|
|
25636
|
+
exportTableData: Ve,
|
|
25637
|
+
handleProgressText: qe,
|
|
25617
25638
|
pageSizeVisible: f,
|
|
25618
|
-
pageSize:
|
|
25639
|
+
pageSize: B,
|
|
25619
25640
|
tableRef: c,
|
|
25620
|
-
rowClassName:
|
|
25621
|
-
tableHeight:
|
|
25622
|
-
tableHeaderBgColor:
|
|
25623
|
-
tableBodyBgColor:
|
|
25624
|
-
getChgStyle:
|
|
25625
|
-
chgBoxStyle:
|
|
25626
|
-
getChgBoxImgStyle:
|
|
25627
|
-
getChgBoxImgSrc:
|
|
25641
|
+
rowClassName: Ie,
|
|
25642
|
+
tableHeight: Ge,
|
|
25643
|
+
tableHeaderBgColor: Fe,
|
|
25644
|
+
tableBodyBgColor: Pe,
|
|
25645
|
+
getChgStyle: V,
|
|
25646
|
+
chgBoxStyle: Y,
|
|
25647
|
+
getChgBoxImgStyle: J,
|
|
25648
|
+
getChgBoxImgSrc: ee,
|
|
25628
25649
|
seqIcon1,
|
|
25629
25650
|
seqIcon2,
|
|
25630
25651
|
seqIcon3,
|
|
25631
|
-
iconSize:
|
|
25632
|
-
containerClass:
|
|
25652
|
+
iconSize: Re,
|
|
25653
|
+
containerClass: Me,
|
|
25633
25654
|
getCellStyle: (Q, re) => {
|
|
25634
|
-
const { overflow:
|
|
25635
|
-
return
|
|
25655
|
+
const { overflow: oe, conditionCode: ue, attribute: le } = Q, fe = {};
|
|
25656
|
+
return oe === "ellipsis" && (fe.overflow = "hidden", fe.textOverflow = "ellipsis"), ue && (le != null && le.color) && Be(Q, re) && (fe.color = le.color), le != null && le.icon && (Q == null ? void 0 : Q.cellAlign) === "right" && (fe.display = "flex", fe.alignItems = "center", fe.justifyContent = "flex-end"), fe;
|
|
25636
25657
|
},
|
|
25637
|
-
isMatchCondition:
|
|
25658
|
+
isMatchCondition: Be,
|
|
25638
25659
|
getAttrImgSrc: (Q) => {
|
|
25639
25660
|
const { attribute: re } = Q;
|
|
25640
|
-
let
|
|
25641
|
-
return re != null && re.icon && (
|
|
25661
|
+
let oe = "";
|
|
25662
|
+
return re != null && re.icon && (oe = useImagePath(re.icon)), oe;
|
|
25642
25663
|
},
|
|
25643
25664
|
getAttrImgStyle: (Q) => {
|
|
25644
25665
|
let re = {};
|
|
@@ -25655,25 +25676,27 @@ const Iframe = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_rende
|
|
|
25655
25676
|
},
|
|
25656
25677
|
getCellText: (Q, re) => Q || Q === 0 ? Q : re == null ? void 0 : re.defaultVal,
|
|
25657
25678
|
autoScrollHeight: g,
|
|
25658
|
-
|
|
25679
|
+
autoScrollClass: A,
|
|
25680
|
+
autoScrollTop: C,
|
|
25659
25681
|
isScroll: a,
|
|
25660
|
-
scrollWrapStyle: o
|
|
25682
|
+
scrollWrapStyle: o,
|
|
25683
|
+
isLinkStyle: q
|
|
25661
25684
|
};
|
|
25662
25685
|
}
|
|
25663
25686
|
}), __injectCSSVars__ = () => {
|
|
25664
25687
|
useCssVars((e) => ({
|
|
25665
|
-
|
|
25666
|
-
"
|
|
25667
|
-
"
|
|
25668
|
-
"
|
|
25669
|
-
"
|
|
25670
|
-
"
|
|
25671
|
-
"
|
|
25672
|
-
"
|
|
25688
|
+
b8448ce6: e.stripedColor,
|
|
25689
|
+
"033efaf8": e.tableHeaderBgColor,
|
|
25690
|
+
"75bb6ae2": e.tableBodyBgColor,
|
|
25691
|
+
"5cf8c823": e.paginationBgColor,
|
|
25692
|
+
"2716c2b0": e.paginationColor,
|
|
25693
|
+
"69238b06": e.activePaginationBgColor,
|
|
25694
|
+
"5b1240fc": e.activePaginationColor,
|
|
25695
|
+
"0d3a3e9a": e.hoverBackgroundColor
|
|
25673
25696
|
}));
|
|
25674
25697
|
}, __setup__ = __default__.setup;
|
|
25675
25698
|
__default__.setup = __setup__ ? (e, r) => (__injectCSSVars__(), __setup__(e, r)) : __injectCSSVars__;
|
|
25676
|
-
const
|
|
25699
|
+
const Table_vue_vue_type_style_index_0_scoped_8780c326_lang = "", Table_vue_vue_type_style_index_1_lang = "", _withScopeId = (e) => (pushScopeId("data-v-8780c326"), e = e(), popScopeId(), e), _hoisted_1$1 = ["id"], _hoisted_2 = {
|
|
25677
25700
|
key: 0,
|
|
25678
25701
|
class: "table-tool"
|
|
25679
25702
|
}, _hoisted_3 = /* @__PURE__ */ createTextVNode("导出数据"), _hoisted_4 = {
|
|
@@ -25721,7 +25744,6 @@ function _sfc_render$2(e, r, n, i, a, o) {
|
|
|
25721
25744
|
"data-source": e.tableDataSource,
|
|
25722
25745
|
bordered: e.bordered,
|
|
25723
25746
|
size: e.size,
|
|
25724
|
-
customRow: e.customRow,
|
|
25725
25747
|
scroll: e.y ? { x: e.x, y: e.y } : { x: e.x },
|
|
25726
25748
|
pagination: e.isAutoScroll ? !1 : e.pagination,
|
|
25727
25749
|
"row-class-name": e.rowClassName,
|
|
@@ -25855,7 +25877,7 @@ function _sfc_render$2(e, r, n, i, a, o) {
|
|
|
25855
25877
|
key: 3,
|
|
25856
25878
|
style: normalizeStyle$1({
|
|
25857
25879
|
fontSize: e.fontSize,
|
|
25858
|
-
fontWeight: e.fontWeight,
|
|
25880
|
+
fontWeight: e.isLinkStyle(p) ? "bold" : e.fontWeight,
|
|
25859
25881
|
...e.getCellStyle(p, b)
|
|
25860
25882
|
})
|
|
25861
25883
|
}, [
|
|
@@ -25941,7 +25963,7 @@ function _sfc_render$2(e, r, n, i, a, o) {
|
|
|
25941
25963
|
}, 8, ["fixed"])) : createCommentVNode("", !0)
|
|
25942
25964
|
]),
|
|
25943
25965
|
_: 1
|
|
25944
|
-
}, 8, ["style", "columns", "data-source", "bordered", "size", "
|
|
25966
|
+
}, 8, ["style", "columns", "data-source", "bordered", "size", "scroll", "pagination", "row-class-name", "show-header", "onChange"]),
|
|
25945
25967
|
e.paginationShow ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
25946
25968
|
(C = e.tableDataSource) != null && C.length && !e.simple && e.pageSizeShow && e.pageSizeVisible ? (openBlock(), createBlock(Teleport, {
|
|
25947
25969
|
key: 0,
|
|
@@ -25960,7 +25982,7 @@ function _sfc_render$2(e, r, n, i, a, o) {
|
|
|
25960
25982
|
], 64)) : createCommentVNode("", !0),
|
|
25961
25983
|
e.isAutoScroll ? (openBlock(), createElementBlock("div", {
|
|
25962
25984
|
key: 2,
|
|
25963
|
-
class: "auto-scroll-content ant-table
|
|
25985
|
+
class: normalizeClass$1(["auto-scroll-content ant-table-wrapper table", e.autoScrollClass]),
|
|
25964
25986
|
style: normalizeStyle$1({
|
|
25965
25987
|
width: "100%",
|
|
25966
25988
|
position: "absolute",
|
|
@@ -25987,14 +26009,14 @@ function _sfc_render$2(e, r, n, i, a, o) {
|
|
|
25987
26009
|
]),
|
|
25988
26010
|
_: 1
|
|
25989
26011
|
}, 8, ["visible", "step"])
|
|
25990
|
-
],
|
|
26012
|
+
], 6)) : createCommentVNode("", !0)
|
|
25991
26013
|
];
|
|
25992
26014
|
}),
|
|
25993
26015
|
_: 1
|
|
25994
26016
|
}, 8, ["loading"])
|
|
25995
26017
|
], 14, _hoisted_1$1);
|
|
25996
26018
|
}
|
|
25997
|
-
const Table = /* @__PURE__ */ _export_sfc$1(__default__, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
26019
|
+
const Table = /* @__PURE__ */ _export_sfc$1(__default__, [["render", _sfc_render$2], ["__scopeId", "data-v-8780c326"]]), EcanTable = withInstall$1(Table), mapProps = {
|
|
25998
26020
|
...props,
|
|
25999
26021
|
mapJson: null,
|
|
26000
26022
|
data: [],
|
|
@@ -28486,8 +28508,8 @@ var stdin_default$5 = defineComponent({
|
|
|
28486
28508
|
transform: `translateX(${J}px) translateX(-50%)`
|
|
28487
28509
|
};
|
|
28488
28510
|
if (U && (ee.transitionDuration = `${e.duration}s`), isDef(Y)) {
|
|
28489
|
-
const
|
|
28490
|
-
ee.height =
|
|
28511
|
+
const X = addUnit(Y);
|
|
28512
|
+
ee.height = X, ee.borderRadius = X;
|
|
28491
28513
|
}
|
|
28492
28514
|
p.lineStyle = ee;
|
|
28493
28515
|
});
|
|
@@ -28579,7 +28601,7 @@ var stdin_default$5 = defineComponent({
|
|
|
28579
28601
|
}]),
|
|
28580
28602
|
style: b.value,
|
|
28581
28603
|
"aria-orientation": "horizontal"
|
|
28582
|
-
}, [(U = n["nav-left"]) == null ? void 0 : U.call(n), A.map((
|
|
28604
|
+
}, [(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)];
|
|
28583
28605
|
return J ? createVNode("div", {
|
|
28584
28606
|
ref: d
|
|
28585
28607
|
}, [ee]) : ee;
|