@ecan-bi/datav 1.1.50 → 1.1.52
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 +153 -152
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.52 */
|
|
2
2
|
import { watch as ne, inject as N, computed as q, unref as k, watchEffect as sn, defineComponent as Q, shallowRef as bt, toRefs as Mo, onMounted as Ne, onUnmounted as ut, h as st, nextTick as ft, createVNode as j, resolveComponent as Z, openBlock as E, createElementBlock as R, createBlock as Fe, renderSlot as mt, withCtx as Y, ref as I, normalizeStyle as G, createCommentVNode as pe, provide as Oe, onBeforeUnmount as Tt, toDisplayString as ye, Fragment as Le, renderList as Me, createElementVNode as X, normalizeClass as _t, pushScopeId as cn, popScopeId as dn, createSlots as Eo, resolveDynamicComponent as Fo, mergeProps as Oo, withModifiers as Ro, reactive as Do, createTextVNode as un, withDirectives as zo, vShow as No } from "vue";
|
|
3
3
|
import { throttle as $o, init as Po, use as Pe, registerMap as Bo } from "echarts/core";
|
|
4
4
|
import { addListener as Go, removeListener as Uo } from "resize-detector";
|
|
@@ -117,9 +117,9 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
117
117
|
() => r.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
118
118
|
), u = q(() => e.theme || k(i) || {}), y = q(
|
|
119
119
|
() => e.initOptions || k(s) || {}
|
|
120
|
-
),
|
|
120
|
+
), b = q(
|
|
121
121
|
() => e.updateOptions || k(l) || {}
|
|
122
|
-
),
|
|
122
|
+
), v = q(() => va(n));
|
|
123
123
|
function A(w) {
|
|
124
124
|
if (a.value || !o.value)
|
|
125
125
|
return;
|
|
@@ -148,7 +148,7 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function O() {
|
|
151
|
-
f.setOption(w || m.value,
|
|
151
|
+
f.setOption(w || m.value, b.value);
|
|
152
152
|
}
|
|
153
153
|
d.value ? ft(() => {
|
|
154
154
|
T(), O();
|
|
@@ -167,7 +167,7 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
167
167
|
typeof S == "function" && (S(), S = null), w || (S = ne(
|
|
168
168
|
() => e.option,
|
|
169
169
|
(f) => {
|
|
170
|
-
f && (a.value ? a.value.setOption(f,
|
|
170
|
+
f && (a.value ? a.value.setOption(f, b.value) : A());
|
|
171
171
|
},
|
|
172
172
|
{ deep: !0 }
|
|
173
173
|
));
|
|
@@ -193,7 +193,7 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
193
193
|
chart: a,
|
|
194
194
|
root: o,
|
|
195
195
|
setOption: x,
|
|
196
|
-
nonEventAttrs:
|
|
196
|
+
nonEventAttrs: v,
|
|
197
197
|
...L
|
|
198
198
|
};
|
|
199
199
|
},
|
|
@@ -937,10 +937,10 @@ var Ue = function(n, t) {
|
|
|
937
937
|
anticon: !0
|
|
938
938
|
}, Mt(o, "anticon-".concat(i.name), Boolean(i.name)), Mt(o, r, r), o), u = s === "" || s || i.name === "loading" ? "anticon-spin" : "", y = d;
|
|
939
939
|
y === void 0 && g && (y = -1, h.tabindex = y);
|
|
940
|
-
var
|
|
940
|
+
var b = l ? {
|
|
941
941
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
942
942
|
transform: "rotate(".concat(l, "deg)")
|
|
943
|
-
} : void 0,
|
|
943
|
+
} : void 0, v = kn(c), A = il(v, 2), x = A[0], B = A[1];
|
|
944
944
|
return j("span", Kt({
|
|
945
945
|
role: "img",
|
|
946
946
|
"aria-label": i.name
|
|
@@ -952,7 +952,7 @@ var Ue = function(n, t) {
|
|
|
952
952
|
icon: i,
|
|
953
953
|
primaryColor: x,
|
|
954
954
|
secondaryColor: B,
|
|
955
|
-
style:
|
|
955
|
+
style: b
|
|
956
956
|
}, null)]);
|
|
957
957
|
};
|
|
958
958
|
Ue.props = {
|
|
@@ -1297,7 +1297,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1297
1297
|
}), h = de(t), m = async (y = {}) => {
|
|
1298
1298
|
if (!h || !o || !a || k(d) === "design")
|
|
1299
1299
|
return;
|
|
1300
|
-
let
|
|
1300
|
+
let b = {};
|
|
1301
1301
|
r.forEach((S) => {
|
|
1302
1302
|
const { key: L, value: w } = S;
|
|
1303
1303
|
if (typeof w == "object" && w.id) {
|
|
@@ -1320,22 +1320,22 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1320
1320
|
U == null && (U = k(_)), U = (U == null ? void 0 : U.format((O == null ? void 0 : O.trim()) || f.format)) || "";
|
|
1321
1321
|
} else
|
|
1322
1322
|
Object.prototype.toString.call(_) === "[object Object]" ? U = _[O || "value"] : U = _;
|
|
1323
|
-
|
|
1323
|
+
b[L] = U;
|
|
1324
1324
|
} else
|
|
1325
|
-
typeof w == "string" && (
|
|
1326
|
-
}),
|
|
1327
|
-
let
|
|
1328
|
-
const A = Object.keys(
|
|
1325
|
+
typeof w == "string" && (b[L] = de(w));
|
|
1326
|
+
}), b = { ...window.config.requestParams, ...y, ...b };
|
|
1327
|
+
let v = "";
|
|
1328
|
+
const A = Object.keys(b), x = A.length - 1, B = A.length;
|
|
1329
1329
|
A.forEach((S, L) => {
|
|
1330
|
-
L === 0 ? B !== 1 ?
|
|
1330
|
+
L === 0 ? B !== 1 ? v += `?${S}=${b[S]}&` : v += `?${S}=${b[S]}` : L === x ? v += `${S}=${b[S]}` : v += `${S}=${b[S]}&`;
|
|
1331
1331
|
});
|
|
1332
1332
|
try {
|
|
1333
1333
|
const S = ["get", "head"].includes(o), L = await xe({
|
|
1334
1334
|
baseURL: k(l) || "",
|
|
1335
|
-
url: S ? h +
|
|
1335
|
+
url: S ? h + v : h,
|
|
1336
1336
|
method: o,
|
|
1337
1337
|
headers: a,
|
|
1338
|
-
data: S ? {} :
|
|
1338
|
+
data: S ? {} : b
|
|
1339
1339
|
});
|
|
1340
1340
|
return n(L), L;
|
|
1341
1341
|
} catch (S) {
|
|
@@ -1352,8 +1352,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1352
1352
|
if (i === 1) {
|
|
1353
1353
|
const c = [];
|
|
1354
1354
|
for (let h = 0; h < s; h++) {
|
|
1355
|
-
const m = o[h], { label: u, value: y } = m,
|
|
1356
|
-
a.add(u), c.push(
|
|
1355
|
+
const m = o[h], { label: u, value: y } = m, b = { ...e[0], value: e[0][y] };
|
|
1356
|
+
a.add(u), c.push(b);
|
|
1357
1357
|
}
|
|
1358
1358
|
const g = e[0][t] || "";
|
|
1359
1359
|
r.set(g, c);
|
|
@@ -1362,12 +1362,12 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1362
1362
|
const g = e[c], h = g[t];
|
|
1363
1363
|
a.add(h);
|
|
1364
1364
|
for (let m = 0; m < s; m++) {
|
|
1365
|
-
const u = o[m], { label: y, value:
|
|
1365
|
+
const u = o[m], { label: y, value: b } = u, v = { ...g, value: g[b] };
|
|
1366
1366
|
if (r.has(y)) {
|
|
1367
1367
|
const A = r.get(y);
|
|
1368
|
-
A.push(
|
|
1368
|
+
A.push(v), r.set(y, A);
|
|
1369
1369
|
} else
|
|
1370
|
-
r.set(y, [
|
|
1370
|
+
r.set(y, [v]);
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
const l = Array.from(a), d = [];
|
|
@@ -1431,20 +1431,20 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1431
1431
|
var c;
|
|
1432
1432
|
const d = [];
|
|
1433
1433
|
for (let g = 0; g < l.length; g++) {
|
|
1434
|
-
const { keyName: h, searchName: m, searchType: u, variateName: y, id:
|
|
1434
|
+
const { keyName: h, searchName: m, searchType: u, variateName: y, id: b } = l[g], v = {
|
|
1435
1435
|
alias: h,
|
|
1436
1436
|
fieldName: m,
|
|
1437
1437
|
rule: u || "NONE",
|
|
1438
1438
|
fieldValue: "",
|
|
1439
1439
|
valueType: "",
|
|
1440
1440
|
variateName: y
|
|
1441
|
-
}, A = n(
|
|
1442
|
-
if (m === "the_date" ?
|
|
1443
|
-
|
|
1441
|
+
}, A = n(b) || {};
|
|
1442
|
+
if (m === "the_date" ? v.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(m) && (v.valueType = "TEXT"), A.type === "ecanDatePicker") {
|
|
1443
|
+
v.dateFormat = A.format;
|
|
1444
1444
|
const x = (c = k(A)) == null ? void 0 : c.value.format;
|
|
1445
|
-
typeof x == "function" && (
|
|
1445
|
+
typeof x == "function" && (v.fieldValue = x(A == null ? void 0 : A.format));
|
|
1446
1446
|
}
|
|
1447
|
-
d.push(
|
|
1447
|
+
d.push(v);
|
|
1448
1448
|
}
|
|
1449
1449
|
return d;
|
|
1450
1450
|
}, r = (l, d) => {
|
|
@@ -1550,8 +1550,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1550
1550
|
h[w].location === "RIGHT" ? h[w].conditions = s(h[w], "rightAxisList", d) : h[w].conditions = s(h[w], "leftAxisList", d);
|
|
1551
1551
|
let y;
|
|
1552
1552
|
(d == null ? void 0 : d.pageMode) === "design" ? y = d.sqlConditions ?? [] : y = a(d == null ? void 0 : d.relativeList);
|
|
1553
|
-
let
|
|
1554
|
-
d.source === "INDICATOR_LIB" && (
|
|
1553
|
+
let b = "SQL_VIEW", v = "", A = "", x = "";
|
|
1554
|
+
d.source === "INDICATOR_LIB" && (b = "INDICATOR_LIB", v = d.fixedDimSql, A = d.dataSourceId, x = d.idxLibMode);
|
|
1555
1555
|
const B = {
|
|
1556
1556
|
ecanBar: "bar",
|
|
1557
1557
|
ecanLine: "line",
|
|
@@ -1574,8 +1574,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1574
1574
|
indicatorList: h,
|
|
1575
1575
|
series: m,
|
|
1576
1576
|
sqlConditions: y,
|
|
1577
|
-
source:
|
|
1578
|
-
fixedDimSql:
|
|
1577
|
+
source: b,
|
|
1578
|
+
fixedDimSql: v,
|
|
1579
1579
|
dataSourceId: A,
|
|
1580
1580
|
idxLibMode: x
|
|
1581
1581
|
}, {
|
|
@@ -1636,8 +1636,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1636
1636
|
builtInFormula: m,
|
|
1637
1637
|
builtInValueSource: u,
|
|
1638
1638
|
builtInCalcWay: y,
|
|
1639
|
-
formula:
|
|
1640
|
-
conditions:
|
|
1639
|
+
formula: b,
|
|
1640
|
+
conditions: v
|
|
1641
1641
|
} = i;
|
|
1642
1642
|
return {
|
|
1643
1643
|
label: s,
|
|
@@ -1650,8 +1650,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1650
1650
|
builtInFormula: m,
|
|
1651
1651
|
builtInValueSource: u,
|
|
1652
1652
|
builtInCalcWay: y,
|
|
1653
|
-
formula:
|
|
1654
|
-
conditions:
|
|
1653
|
+
formula: b,
|
|
1654
|
+
conditions: v
|
|
1655
1655
|
};
|
|
1656
1656
|
}, { getGlobalModel: a } = N(ue, {
|
|
1657
1657
|
// @ts-ignore
|
|
@@ -1667,19 +1667,19 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1667
1667
|
conditionLabel: m,
|
|
1668
1668
|
conditionKey: u,
|
|
1669
1669
|
conditionValueType: y
|
|
1670
|
-
} = g,
|
|
1670
|
+
} = g, b = {
|
|
1671
1671
|
rule: "NONE",
|
|
1672
1672
|
label: m,
|
|
1673
1673
|
fieldName: u,
|
|
1674
1674
|
fieldValue: "",
|
|
1675
1675
|
// 在关联控件中取
|
|
1676
1676
|
valueType: y
|
|
1677
|
-
},
|
|
1678
|
-
if (In(
|
|
1679
|
-
const { value: A, format: x } =
|
|
1680
|
-
|
|
1677
|
+
}, v = a(h) || {};
|
|
1678
|
+
if (In(v.type, "date")) {
|
|
1679
|
+
const { value: A, format: x } = v || {};
|
|
1680
|
+
b.fieldValue = (d = k(A)) == null ? void 0 : d.format(x), b.dateFormat = x;
|
|
1681
1681
|
}
|
|
1682
|
-
l.push(
|
|
1682
|
+
l.push(b);
|
|
1683
1683
|
}
|
|
1684
1684
|
return l;
|
|
1685
1685
|
};
|
|
@@ -1695,8 +1695,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1695
1695
|
seriesList: m = [],
|
|
1696
1696
|
leftAxisList: u = [],
|
|
1697
1697
|
rightAxisList: y = [],
|
|
1698
|
-
queryColumnList:
|
|
1699
|
-
indicators:
|
|
1698
|
+
queryColumnList: b = [],
|
|
1699
|
+
indicators: v = [],
|
|
1700
1700
|
controlList: A = [],
|
|
1701
1701
|
dataSourceId: x,
|
|
1702
1702
|
idxLibMode: B,
|
|
@@ -1739,7 +1739,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
const f = [];
|
|
1742
|
-
|
|
1742
|
+
b == null || b.forEach((C) => {
|
|
1743
1743
|
f.push(t(C));
|
|
1744
1744
|
});
|
|
1745
1745
|
const p = [];
|
|
@@ -1747,7 +1747,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1747
1747
|
C.location = "LEFT", p.push(o(C));
|
|
1748
1748
|
}), y == null || y.forEach((C) => {
|
|
1749
1749
|
C.location = "RIGHT", p.push(o(C));
|
|
1750
|
-
}),
|
|
1750
|
+
}), v == null || v.forEach((C) => {
|
|
1751
1751
|
C.location = "LEFT", p.push(o(C));
|
|
1752
1752
|
}), c === "1" && f.length === 0)
|
|
1753
1753
|
return;
|
|
@@ -1821,7 +1821,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1821
1821
|
}), c = () => {
|
|
1822
1822
|
t.value && o.value ? (s.value.style.width = `${t.value}px`, s.value.style.height = `${o.value}px`) : (s.value.style.width = `${a.value}px`, s.value.style.height = `${r.value}px`);
|
|
1823
1823
|
}, g = () => {
|
|
1824
|
-
const y = document.body.clientWidth,
|
|
1824
|
+
const y = document.body.clientWidth, b = document.body.clientHeight, v = t.value || a.value, A = o.value || r.value, x = y / v, B = b / A;
|
|
1825
1825
|
s.value && (s.value.style.transform = `scale(${x}, ${B})`);
|
|
1826
1826
|
}, h = Et(async () => {
|
|
1827
1827
|
await d(), g();
|
|
@@ -1912,12 +1912,12 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1912
1912
|
u.set(F, $);
|
|
1913
1913
|
}
|
|
1914
1914
|
});
|
|
1915
|
-
const
|
|
1916
|
-
A.add(F),
|
|
1915
|
+
const v = na(), A = /* @__PURE__ */ new Set(), x = (F, $) => {
|
|
1916
|
+
A.add(F), v.on(F, (z) => typeof $[z] == "function" && $[z]()), Tt(() => {
|
|
1917
1917
|
B(F);
|
|
1918
1918
|
});
|
|
1919
1919
|
}, B = (F) => {
|
|
1920
|
-
A.delete(F),
|
|
1920
|
+
A.delete(F), v.off(F);
|
|
1921
1921
|
};
|
|
1922
1922
|
Oe(Dt, {
|
|
1923
1923
|
onEvent: x,
|
|
@@ -1933,10 +1933,10 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1933
1933
|
W = [...y(ee)];
|
|
1934
1934
|
}
|
|
1935
1935
|
W.forEach((ee) => {
|
|
1936
|
-
|
|
1936
|
+
v.emit(ee, $);
|
|
1937
1937
|
});
|
|
1938
1938
|
} else
|
|
1939
|
-
|
|
1939
|
+
v.emit(F, $);
|
|
1940
1940
|
}
|
|
1941
1941
|
});
|
|
1942
1942
|
const L = I(0);
|
|
@@ -2000,12 +2000,12 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
2000
2000
|
touchRequest: _
|
|
2001
2001
|
}), Oe(Ze, {
|
|
2002
2002
|
emitRefreshPage: () => {
|
|
2003
|
-
|
|
2003
|
+
v.emit(Ze);
|
|
2004
2004
|
}
|
|
2005
2005
|
});
|
|
2006
2006
|
const H = (F) => {
|
|
2007
|
-
|
|
2008
|
-
|
|
2007
|
+
v.on(Ze, () => F()), Ne(() => {
|
|
2008
|
+
v.off(Ze);
|
|
2009
2009
|
});
|
|
2010
2010
|
};
|
|
2011
2011
|
return Tt(() => {
|
|
@@ -2072,8 +2072,8 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2072
2072
|
const u = m.match(/\{(.+?)\}/g);
|
|
2073
2073
|
if (u == null || u.length === 0)
|
|
2074
2074
|
return m;
|
|
2075
|
-
for (let
|
|
2076
|
-
const
|
|
2075
|
+
for (let b = 0; b < u.length; b++) {
|
|
2076
|
+
const v = u[b], A = (y = v == null ? void 0 : v.slice(1, v.length - 1)) == null ? void 0 : y.trim();
|
|
2077
2077
|
let x = A;
|
|
2078
2078
|
const B = A.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
2079
2079
|
for (let L = 0; L < B.length; L++) {
|
|
@@ -2087,7 +2087,7 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2087
2087
|
let S = x;
|
|
2088
2088
|
if (S === A && (S = e.variableDefaultValue), S != null) {
|
|
2089
2089
|
const L = e.format;
|
|
2090
|
-
L === "percentage" ? (S = +S, isNaN(S) ? m = m.replace(
|
|
2090
|
+
L === "percentage" ? (S = +S, isNaN(S) ? m = m.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : S >= 0 ? (S = (S * 100).toFixed(2), m = m.replace(v, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Pl}"/>${S}%</span>`)) : (S = (S * 100).toFixed(2), m = m.replace(v, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${Math.abs(+S)}%</span>`))) : e.format === "percent" ? (S = +S, isNaN(S) || (S = (S * 100).toFixed(2), m = m.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}%</span>`))) : e.format === "money" ? (S = +S, isNaN(S) || (S = zt(S), m = m.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : L === "thousands" ? (S = +S, isNaN(S) || (S = Tl(S), m = m.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : m = m.replace(v, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`);
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
return `<span>${m}</span>`;
|
|
@@ -2130,8 +2130,8 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2130
2130
|
const h = e.linkPage || "", m = Mn(k(a), h), u = e.href;
|
|
2131
2131
|
let y = u || m;
|
|
2132
2132
|
y = de(y);
|
|
2133
|
-
const
|
|
2134
|
-
|
|
2133
|
+
const b = e.target;
|
|
2134
|
+
b && (b !== "event" ? window.open(y, "_" + b) : window.parent.postMessage({
|
|
2135
2135
|
type: "openPage",
|
|
2136
2136
|
url: u
|
|
2137
2137
|
}, "*"));
|
|
@@ -2268,13 +2268,13 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-47d57d2d
|
|
|
2268
2268
|
percentage: dt,
|
|
2269
2269
|
contrast: dt
|
|
2270
2270
|
}[y](u) || "", r = (u, y) => {
|
|
2271
|
-
const
|
|
2271
|
+
const b = parseFloat(u + "");
|
|
2272
2272
|
if (y !== "contrast")
|
|
2273
2273
|
return "";
|
|
2274
2274
|
switch (!0) {
|
|
2275
|
-
case
|
|
2275
|
+
case b >= 0:
|
|
2276
2276
|
return "goUp";
|
|
2277
|
-
case
|
|
2277
|
+
case b < 0:
|
|
2278
2278
|
return "goDown";
|
|
2279
2279
|
}
|
|
2280
2280
|
}, i = Ae(e), { pageMode: s } = N(ce, {
|
|
@@ -2301,7 +2301,7 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-47d57d2d
|
|
|
2301
2301
|
const { setRequest: m } = N(Ce, {
|
|
2302
2302
|
// @ts-ignore
|
|
2303
2303
|
// eslint-disable-next-line no-void
|
|
2304
|
-
setRequest: ({ id: u, sortNum: y, requestFn:
|
|
2304
|
+
setRequest: ({ id: u, sortNum: y, requestFn: b }) => {
|
|
2305
2305
|
}
|
|
2306
2306
|
});
|
|
2307
2307
|
return m({
|
|
@@ -2455,30 +2455,30 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-211785ca
|
|
|
2455
2455
|
const u = k(a), y = +e.variableDefaultValue;
|
|
2456
2456
|
if (u == null)
|
|
2457
2457
|
return isNaN(y) ? 0 : y;
|
|
2458
|
-
const
|
|
2459
|
-
let
|
|
2458
|
+
const b = e.text.match(/\{.+\}/g) || [];
|
|
2459
|
+
let v;
|
|
2460
2460
|
const A = new Set(Object.keys(u));
|
|
2461
|
-
for (let x = 0; x <
|
|
2462
|
-
const B =
|
|
2461
|
+
for (let x = 0; x < b.length; x++) {
|
|
2462
|
+
const B = b[x], S = B.slice(1, B.length - 1);
|
|
2463
2463
|
if (A.has(S)) {
|
|
2464
|
-
|
|
2464
|
+
v = u[S];
|
|
2465
2465
|
break;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
|
-
return typeof
|
|
2468
|
+
return typeof v == "number" ? v = v * 100 : typeof v == "string" && !isNaN(+v) ? v = +v * 100 : isNaN(y) ? v = 0 : v = y * 100, e.decimalFormat && (v = +v.toFixed(2)), v;
|
|
2469
2469
|
}), i = q(() => {
|
|
2470
2470
|
var A;
|
|
2471
2471
|
let u = e.text;
|
|
2472
2472
|
if (u === "")
|
|
2473
2473
|
return k(r);
|
|
2474
|
-
const y = e.variableDefaultValue,
|
|
2475
|
-
for (let x = 0; x <
|
|
2476
|
-
const B =
|
|
2474
|
+
const y = e.variableDefaultValue, b = k(a), v = u.match(/\{.+\}/g) || [];
|
|
2475
|
+
for (let x = 0; x < v.length; x++) {
|
|
2476
|
+
const B = v[x];
|
|
2477
2477
|
let S = B.slice(1, B.length - 1);
|
|
2478
2478
|
const L = S.match(/.*/g);
|
|
2479
2479
|
for (let f = 0; f < (L == null ? void 0 : L.length); f++) {
|
|
2480
2480
|
const p = (A = L[x]) == null ? void 0 : A.trim();
|
|
2481
|
-
|
|
2481
|
+
b[p] != null ? S = S.replace(p, b[p]) : S = S.replace(p, y);
|
|
2482
2482
|
}
|
|
2483
2483
|
let w = S;
|
|
2484
2484
|
try {
|
|
@@ -2511,7 +2511,7 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-211785ca
|
|
|
2511
2511
|
}), { setRequest: m } = N(Ce, {
|
|
2512
2512
|
// @ts-ignore
|
|
2513
2513
|
// eslint-disable-next-line no-void
|
|
2514
|
-
setRequest: ({ id: u, sortNum: y, requestFn:
|
|
2514
|
+
setRequest: ({ id: u, sortNum: y, requestFn: b }) => {
|
|
2515
2515
|
}
|
|
2516
2516
|
});
|
|
2517
2517
|
return m({
|
|
@@ -2753,18 +2753,18 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Vn = {
|
|
|
2753
2753
|
setup(e) {
|
|
2754
2754
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = Ae(e), { pageMode: a } = N(ce, {
|
|
2755
2755
|
pageMode: "normal"
|
|
2756
|
-
}), r = I(e.data), i = I(e.value || e.data[0]), s = e.dataFieldNames, l = (
|
|
2756
|
+
}), r = I(e.data), i = I(e.value || e.data[0]), s = e.dataFieldNames, l = (b, v) => {
|
|
2757
2757
|
const A = s.label, x = s.value;
|
|
2758
2758
|
let B;
|
|
2759
|
-
const S =
|
|
2760
|
-
return S != null ? B = S : L != null && (B = L), (B == null ? void 0 : B.toLowerCase().indexOf(
|
|
2759
|
+
const S = v[A], L = v[x];
|
|
2760
|
+
return S != null ? B = S : L != null && (B = L), (B == null ? void 0 : B.toLowerCase().indexOf(b == null ? void 0 : b.toLowerCase())) >= 0;
|
|
2761
2761
|
}, d = I(!1), c = async () => {
|
|
2762
|
-
var
|
|
2762
|
+
var b, v;
|
|
2763
2763
|
if (!(e.dataType !== "request" || k(a) === "design")) {
|
|
2764
2764
|
d.value = !0;
|
|
2765
2765
|
try {
|
|
2766
2766
|
const A = await o();
|
|
2767
|
-
r.value = ((
|
|
2767
|
+
r.value = ((v = (b = A == null ? void 0 : A.data) == null ? void 0 : b.data) == null ? void 0 : v.rows) || [];
|
|
2768
2768
|
const x = k(r)[0];
|
|
2769
2769
|
e.value === "" && x != null && (i.value = x[s.value]);
|
|
2770
2770
|
} catch (A) {
|
|
@@ -2776,11 +2776,11 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Vn = {
|
|
|
2776
2776
|
}, { getGlobalModel: g, setGlobalModel: h } = N(ue, {
|
|
2777
2777
|
// @ts-ignore
|
|
2778
2778
|
// eslint-disable-next-line no-void
|
|
2779
|
-
getGlobalModel: (
|
|
2779
|
+
getGlobalModel: (b) => {
|
|
2780
2780
|
},
|
|
2781
2781
|
// @ts-ignore
|
|
2782
2782
|
// eslint-disable-next-line no-void
|
|
2783
|
-
setGlobalModel: (
|
|
2783
|
+
setGlobalModel: (b, v) => {
|
|
2784
2784
|
}
|
|
2785
2785
|
});
|
|
2786
2786
|
h(e.id, {
|
|
@@ -2788,8 +2788,8 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Vn = {
|
|
|
2788
2788
|
value: i
|
|
2789
2789
|
});
|
|
2790
2790
|
const u = fe(e)("selectChange", () => {
|
|
2791
|
-
const
|
|
2792
|
-
h(
|
|
2791
|
+
const b = e.id, v = g(b);
|
|
2792
|
+
h(b, { ...v, RECORD: i });
|
|
2793
2793
|
});
|
|
2794
2794
|
he(e, {
|
|
2795
2795
|
selectChange: u
|
|
@@ -2797,7 +2797,7 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Vn = {
|
|
|
2797
2797
|
const { setRequest: y } = N(Ce, {
|
|
2798
2798
|
// @ts-ignore
|
|
2799
2799
|
// eslint-disable-next-line no-void
|
|
2800
|
-
setRequest: ({ id:
|
|
2800
|
+
setRequest: ({ id: b, sortNum: v, requestFn: A }) => {
|
|
2801
2801
|
}
|
|
2802
2802
|
});
|
|
2803
2803
|
return y({
|
|
@@ -2863,18 +2863,18 @@ const Fi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-ef197aff
|
|
|
2863
2863
|
setup(e) {
|
|
2864
2864
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I([null, null]);
|
|
2865
2865
|
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, g, h, m, u]) => {
|
|
2866
|
-
let y = null,
|
|
2867
|
-
if (g && (y = Ie().subtract(h, m),
|
|
2868
|
-
const { type:
|
|
2869
|
-
switch (
|
|
2866
|
+
let y = null, b = null;
|
|
2867
|
+
if (g && (y = Ie().subtract(h, m), b = Ie()), d && (y = Ie(de(d))), c && (b = Ie(de(c))), u) {
|
|
2868
|
+
const { type: v, value: A, mode: x } = u;
|
|
2869
|
+
switch (v) {
|
|
2870
2870
|
case "add":
|
|
2871
|
-
y = y && y.add(A, x),
|
|
2871
|
+
y = y && y.add(A, x), b = b && b.add(A, x);
|
|
2872
2872
|
break;
|
|
2873
2873
|
case "minus":
|
|
2874
|
-
y = y && y.subtract(A, x),
|
|
2874
|
+
y = y && y.subtract(A, x), b = b && b.subtract(A, x);
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
|
-
o.value = [y,
|
|
2877
|
+
o.value = [y, b];
|
|
2878
2878
|
}, {
|
|
2879
2879
|
immediate: !0
|
|
2880
2880
|
});
|
|
@@ -3023,8 +3023,8 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Kn = {
|
|
|
3023
3023
|
const n = ie(e), t = I([]), o = I([]), a = (m) => {
|
|
3024
3024
|
const u = e.value;
|
|
3025
3025
|
let y = [];
|
|
3026
|
-
m.forEach((
|
|
3027
|
-
|
|
3026
|
+
m.forEach((b) => {
|
|
3027
|
+
b.checked && y.push(b.value);
|
|
3028
3028
|
}), typeof u == "string" && u !== "" ? y = y.concat(u.split(",")) : Array.isArray(u) && (y = y.concat(u)), t.value = m, o.value = y;
|
|
3029
3029
|
};
|
|
3030
3030
|
ne(() => [e.data, e.value], ([m]) => {
|
|
@@ -3036,10 +3036,10 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Kn = {
|
|
|
3036
3036
|
const r = Ae(e), { pageMode: i } = N(ce, {
|
|
3037
3037
|
pageMode: "normal"
|
|
3038
3038
|
}), s = async () => {
|
|
3039
|
-
var y,
|
|
3039
|
+
var y, b;
|
|
3040
3040
|
if (e.dataType !== "request" || k(i) === "design")
|
|
3041
3041
|
return;
|
|
3042
|
-
const m = await r(), u = ((
|
|
3042
|
+
const m = await r(), u = ((b = (y = m == null ? void 0 : m.data) == null ? void 0 : y.data) == null ? void 0 : b.rows) || [];
|
|
3043
3043
|
a(u);
|
|
3044
3044
|
}, { getGlobalModel: l, setGlobalModel: d } = N(ue, {
|
|
3045
3045
|
// @ts-ignore
|
|
@@ -3354,12 +3354,12 @@ const Yi = Q({
|
|
|
3354
3354
|
}, y = fe(e)("click", (L) => {
|
|
3355
3355
|
const w = i(e.id);
|
|
3356
3356
|
s(e.id, { ...w, RECORD: L == null ? void 0 : L.data });
|
|
3357
|
-
}),
|
|
3357
|
+
}), b = Nt(e), v = async () => {
|
|
3358
3358
|
var L, w, f, p, T, O;
|
|
3359
3359
|
if (!(e.dataType !== "indicator" || k(l) === "design"))
|
|
3360
3360
|
try {
|
|
3361
3361
|
g.value = !0;
|
|
3362
|
-
const C = await
|
|
3362
|
+
const C = await b();
|
|
3363
3363
|
let _ = [];
|
|
3364
3364
|
if (((f = (w = (L = C == null ? void 0 : C.data) == null ? void 0 : L.data) == null ? void 0 : w.columns) == null ? void 0 : f.length) > 0) {
|
|
3365
3365
|
const U = C.data.data.columns[0], H = C.data.data.columns[1];
|
|
@@ -3375,7 +3375,7 @@ const Yi = Q({
|
|
|
3375
3375
|
g.value = !1;
|
|
3376
3376
|
}
|
|
3377
3377
|
}, A = () => {
|
|
3378
|
-
k(l) !== "design" && (
|
|
3378
|
+
k(l) !== "design" && (v(), m());
|
|
3379
3379
|
};
|
|
3380
3380
|
he(e, {
|
|
3381
3381
|
resetRecord: () => {
|
|
@@ -3755,15 +3755,15 @@ const tr = Q({
|
|
|
3755
3755
|
} finally {
|
|
3756
3756
|
h.value = !1;
|
|
3757
3757
|
}
|
|
3758
|
-
},
|
|
3758
|
+
}, b = fe(e)("click", (w) => {
|
|
3759
3759
|
const f = s(e.id);
|
|
3760
3760
|
l(e.id, { ...f, RECORD: w == null ? void 0 : w.data });
|
|
3761
|
-
}),
|
|
3761
|
+
}), v = Nt(e), A = async () => {
|
|
3762
3762
|
var w, f, p, T, O;
|
|
3763
3763
|
if (!(e.dataType !== "indicator" || k(d) === "design"))
|
|
3764
3764
|
try {
|
|
3765
3765
|
h.value = !0;
|
|
3766
|
-
const C = await
|
|
3766
|
+
const C = await v();
|
|
3767
3767
|
let _;
|
|
3768
3768
|
((p = (f = (w = C == null ? void 0 : C.data) == null ? void 0 : w.data) == null ? void 0 : f.columns) == null ? void 0 : p.length) > 0 && (_ = {
|
|
3769
3769
|
name: C.data.data.columns[0],
|
|
@@ -3785,7 +3785,7 @@ const tr = Q({
|
|
|
3785
3785
|
const w = e.id, f = s(w);
|
|
3786
3786
|
l(w, { ...f, RECORD: "" });
|
|
3787
3787
|
},
|
|
3788
|
-
click:
|
|
3788
|
+
click: b
|
|
3789
3789
|
});
|
|
3790
3790
|
const { setRequest: L } = N(Ce, {
|
|
3791
3791
|
// @ts-ignore
|
|
@@ -3800,7 +3800,7 @@ const tr = Q({
|
|
|
3800
3800
|
}), {
|
|
3801
3801
|
option: i,
|
|
3802
3802
|
style: n,
|
|
3803
|
-
click:
|
|
3803
|
+
click: b,
|
|
3804
3804
|
loading: h,
|
|
3805
3805
|
visible: a,
|
|
3806
3806
|
hideModal: r
|
|
@@ -4163,7 +4163,7 @@ const ir = Q({
|
|
|
4163
4163
|
} finally {
|
|
4164
4164
|
l.value = !1;
|
|
4165
4165
|
}
|
|
4166
|
-
}, y = En(e),
|
|
4166
|
+
}, y = En(e), b = async () => {
|
|
4167
4167
|
var f;
|
|
4168
4168
|
try {
|
|
4169
4169
|
l.value = !0;
|
|
@@ -4181,11 +4181,11 @@ const ir = Q({
|
|
|
4181
4181
|
} finally {
|
|
4182
4182
|
l.value = !1;
|
|
4183
4183
|
}
|
|
4184
|
-
},
|
|
4184
|
+
}, v = () => {
|
|
4185
4185
|
if (k(c) !== "design")
|
|
4186
4186
|
switch (e.dataType) {
|
|
4187
4187
|
case "indicator":
|
|
4188
|
-
|
|
4188
|
+
b();
|
|
4189
4189
|
break;
|
|
4190
4190
|
case "request":
|
|
4191
4191
|
u();
|
|
@@ -4193,7 +4193,7 @@ const ir = Q({
|
|
|
4193
4193
|
}
|
|
4194
4194
|
};
|
|
4195
4195
|
n({
|
|
4196
|
-
refreshData:
|
|
4196
|
+
refreshData: v
|
|
4197
4197
|
});
|
|
4198
4198
|
const A = fe(e), { getGlobalModel: x, setGlobalModel: B } = N(ue, {
|
|
4199
4199
|
// @ts-ignore
|
|
@@ -4215,10 +4215,10 @@ const ir = Q({
|
|
|
4215
4215
|
});
|
|
4216
4216
|
return L({
|
|
4217
4217
|
id: e.id,
|
|
4218
|
-
requestFn:
|
|
4218
|
+
requestFn: v,
|
|
4219
4219
|
sortNum: e.requestSort
|
|
4220
4220
|
}), he(e, {
|
|
4221
|
-
refreshData:
|
|
4221
|
+
refreshData: v,
|
|
4222
4222
|
click: S,
|
|
4223
4223
|
resetRecord: () => {
|
|
4224
4224
|
const f = e.id, p = x(f);
|
|
@@ -4227,7 +4227,7 @@ const ir = Q({
|
|
|
4227
4227
|
}), {
|
|
4228
4228
|
option: d,
|
|
4229
4229
|
style: t,
|
|
4230
|
-
refreshData:
|
|
4230
|
+
refreshData: v,
|
|
4231
4231
|
click: S,
|
|
4232
4232
|
loading: l,
|
|
4233
4233
|
visible: a,
|
|
@@ -4352,7 +4352,7 @@ const ur = Q({
|
|
|
4352
4352
|
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
4353
4353
|
o.value = !1;
|
|
4354
4354
|
}, r = q(() => {
|
|
4355
|
-
const
|
|
4355
|
+
const v = e.xAxisLabelFormatter, A = e.yAxisLabelFormatter;
|
|
4356
4356
|
return {
|
|
4357
4357
|
toolbox: {
|
|
4358
4358
|
show: e.toolboxShow,
|
|
@@ -4414,7 +4414,7 @@ const ur = Q({
|
|
|
4414
4414
|
axisLabel: {
|
|
4415
4415
|
color: e.xAxisLabelColor,
|
|
4416
4416
|
formatter(x) {
|
|
4417
|
-
return De(
|
|
4417
|
+
return De(v, x);
|
|
4418
4418
|
}
|
|
4419
4419
|
},
|
|
4420
4420
|
axisLine: {
|
|
@@ -4483,40 +4483,40 @@ const ur = Q({
|
|
|
4483
4483
|
}), { getGlobalModel: i, setGlobalModel: s } = N(ue, {
|
|
4484
4484
|
// @ts-ignore
|
|
4485
4485
|
// eslint-disable-next-line no-void
|
|
4486
|
-
getGlobalModel: (
|
|
4486
|
+
getGlobalModel: (v) => {
|
|
4487
4487
|
},
|
|
4488
4488
|
// @ts-ignore
|
|
4489
4489
|
// eslint-disable-next-line no-void
|
|
4490
|
-
setGlobalModel: (
|
|
4490
|
+
setGlobalModel: (v, A) => {
|
|
4491
4491
|
}
|
|
4492
4492
|
}), { pageMode: l } = N(ce, {
|
|
4493
4493
|
pageMode: "normal"
|
|
4494
|
-
}), d = (
|
|
4494
|
+
}), d = (v = [], A) => {
|
|
4495
4495
|
const { name: x = "name", value: B = "value" } = A || {};
|
|
4496
|
-
t.value =
|
|
4496
|
+
t.value = v.map((S) => ({ value: [S[x], S[B]], record: S }));
|
|
4497
4497
|
};
|
|
4498
|
-
ne(() => e.data, (
|
|
4499
|
-
(e.dataType === "static" || k(l) === "design") && d(
|
|
4498
|
+
ne(() => e.data, (v) => {
|
|
4499
|
+
(e.dataType === "static" || k(l) === "design") && d(v);
|
|
4500
4500
|
}, {
|
|
4501
4501
|
immediate: !0,
|
|
4502
4502
|
deep: !0
|
|
4503
4503
|
});
|
|
4504
4504
|
const c = I(!1), g = Ae(e), h = async () => {
|
|
4505
|
-
var
|
|
4505
|
+
var v, A;
|
|
4506
4506
|
if (!(e.dataType !== "request" || k(l) === "design")) {
|
|
4507
4507
|
c.value = !0;
|
|
4508
4508
|
try {
|
|
4509
4509
|
const x = await g();
|
|
4510
|
-
d((A = (
|
|
4510
|
+
d((A = (v = x == null ? void 0 : x.data) == null ? void 0 : v.data) == null ? void 0 : A.rows, e.dataFieldNames);
|
|
4511
4511
|
} catch (x) {
|
|
4512
4512
|
console.error(x);
|
|
4513
4513
|
} finally {
|
|
4514
4514
|
c.value = !1;
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
4517
|
-
}, u = fe(e)("click", (
|
|
4517
|
+
}, u = fe(e)("click", (v) => {
|
|
4518
4518
|
const A = e.id, x = i(A);
|
|
4519
|
-
s(A, { ...x, RECORD:
|
|
4519
|
+
s(A, { ...x, RECORD: v == null ? void 0 : v.data });
|
|
4520
4520
|
});
|
|
4521
4521
|
he(e, {
|
|
4522
4522
|
refreshData: () => {
|
|
@@ -4524,13 +4524,13 @@ const ur = Q({
|
|
|
4524
4524
|
},
|
|
4525
4525
|
click: u
|
|
4526
4526
|
});
|
|
4527
|
-
const { setRequest:
|
|
4527
|
+
const { setRequest: b } = N(Ce, {
|
|
4528
4528
|
// @ts-ignore
|
|
4529
4529
|
// eslint-disable-next-line no-void
|
|
4530
|
-
setRequest: ({ id:
|
|
4530
|
+
setRequest: ({ id: v, sortNum: A, requestFn: x }) => {
|
|
4531
4531
|
}
|
|
4532
4532
|
});
|
|
4533
|
-
return
|
|
4533
|
+
return b({
|
|
4534
4534
|
id: e.id,
|
|
4535
4535
|
requestFn: h,
|
|
4536
4536
|
sortNum: e.requestSort
|
|
@@ -4982,10 +4982,10 @@ const Cr = Q({
|
|
|
4982
4982
|
} finally {
|
|
4983
4983
|
g.value = !1;
|
|
4984
4984
|
}
|
|
4985
|
-
}, v = () => {
|
|
4986
|
-
k(s) !== "design" && (y(), m());
|
|
4987
4985
|
}, b = () => {
|
|
4988
|
-
|
|
4986
|
+
k(s) !== "design" && (y(), m());
|
|
4987
|
+
}, v = () => {
|
|
4988
|
+
b();
|
|
4989
4989
|
}, A = fe(e), { getGlobalModel: x, setGlobalModel: B } = N(ue, {
|
|
4990
4990
|
// @ts-ignore
|
|
4991
4991
|
// eslint-disable-next-line no-void
|
|
@@ -5006,14 +5006,14 @@ const Cr = Q({
|
|
|
5006
5006
|
});
|
|
5007
5007
|
return L({
|
|
5008
5008
|
id: e.id,
|
|
5009
|
-
requestFn:
|
|
5009
|
+
requestFn: b,
|
|
5010
5010
|
sortNum: e.requestSort
|
|
5011
5011
|
}), he(e, {
|
|
5012
5012
|
resetRecord: () => {
|
|
5013
5013
|
const f = e.id, p = x(f);
|
|
5014
5014
|
B(f, { ...p, RECORD: "" });
|
|
5015
5015
|
},
|
|
5016
|
-
refreshData:
|
|
5016
|
+
refreshData: v,
|
|
5017
5017
|
click: S
|
|
5018
5018
|
}), {
|
|
5019
5019
|
style: n,
|
|
@@ -5219,8 +5219,8 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5219
5219
|
}[z]
|
|
5220
5220
|
};
|
|
5221
5221
|
}), o = e.width, a = e.height, r = e.originalWidth, i = e.originalHeight, s = I("80%"), l = I(0), d = I(), c = I(0), g = I({}), h = ie(e), m = I({}), u = I(!1), y = I();
|
|
5222
|
-
let
|
|
5223
|
-
const
|
|
5222
|
+
let b;
|
|
5223
|
+
const v = () => {
|
|
5224
5224
|
d.value = parseFloat(o) / parseFloat(r);
|
|
5225
5225
|
const z = parseFloat(a) / parseFloat(i), W = document.body.offsetWidth, ee = document.body.offsetHeight;
|
|
5226
5226
|
l.value = W * k(d), c.value = ee * z, s.value = `${k(d) * 100}%`, g.value = {
|
|
@@ -5232,16 +5232,16 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5232
5232
|
transform: `scale(${k(l) / parseFloat(o)},${k(c) / parseFloat(a)})`
|
|
5233
5233
|
};
|
|
5234
5234
|
}, A = Et(() => {
|
|
5235
|
-
|
|
5235
|
+
v();
|
|
5236
5236
|
}, 100), x = () => {
|
|
5237
5237
|
const z = window.MutationObserver;
|
|
5238
|
-
|
|
5238
|
+
b = new z(A), b.observe(document.body, {
|
|
5239
5239
|
attributes: !0,
|
|
5240
5240
|
attributeFilter: ["style"],
|
|
5241
5241
|
attributeOldValue: !0
|
|
5242
5242
|
});
|
|
5243
5243
|
}, B = () => {
|
|
5244
|
-
|
|
5244
|
+
b && (b.disconnect(), b.takeRecords(), b = null);
|
|
5245
5245
|
}, S = I(!1), { touchRequest: L } = N(Ce, {
|
|
5246
5246
|
// @ts-ignore
|
|
5247
5247
|
// eslint-disable-next-line no-void
|
|
@@ -5270,7 +5270,7 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5270
5270
|
};
|
|
5271
5271
|
ne(() => S.value, async (z) => {
|
|
5272
5272
|
z ? (u.value = !1, C(e.id), U(), await ft(() => {
|
|
5273
|
-
|
|
5273
|
+
v(), window.addEventListener("resize", A), x(), u.value = !0;
|
|
5274
5274
|
}), L()) : (_(), window.removeEventListener("resize", A), B());
|
|
5275
5275
|
});
|
|
5276
5276
|
const H = q(() => k(d) >= 1), F = q(() => e.fullModal), $ = q(() => {
|
|
@@ -5402,8 +5402,9 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-2db14456
|
|
|
5402
5402
|
const r = () => {
|
|
5403
5403
|
const u = Array.isArray(k(i)) ? k(i).length - 1 : 0;
|
|
5404
5404
|
e.autoSwitch && u > 0 && (a = setInterval(() => {
|
|
5405
|
+
var b;
|
|
5405
5406
|
const y = k(t) + 1;
|
|
5406
|
-
y <= u ? t.value = y : t.value = 0, g();
|
|
5407
|
+
y <= u ? (t.value = y, l.value = ((b = i[y]) == null ? void 0 : b.value) || "") : t.value = 0, g();
|
|
5407
5408
|
}, e.autoSwitchInterval * 1e3));
|
|
5408
5409
|
};
|
|
5409
5410
|
Ne(() => {
|
|
@@ -5485,7 +5486,7 @@ function es(e, n, t, o, a, r) {
|
|
|
5485
5486
|
], 4)
|
|
5486
5487
|
], 4);
|
|
5487
5488
|
}
|
|
5488
|
-
const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-
|
|
5489
|
+
const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-614fba56"]]), ns = oe(ts), po = {
|
|
5489
5490
|
...re,
|
|
5490
5491
|
name: "图片",
|
|
5491
5492
|
keyName: "图片",
|
|
@@ -5754,7 +5755,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5754
5755
|
}, {
|
|
5755
5756
|
immediate: !0
|
|
5756
5757
|
});
|
|
5757
|
-
const
|
|
5758
|
+
const b = I({}), v = (M) => {
|
|
5758
5759
|
if (Array.isArray(M)) {
|
|
5759
5760
|
const D = M.length, V = m, J = V.length, P = {};
|
|
5760
5761
|
for (let le = 0; le < D; le++) {
|
|
@@ -5775,12 +5776,12 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5775
5776
|
const me = P[le], be = Array.from(me);
|
|
5776
5777
|
te[le] = be.map((ge) => ({ label: ge, value: ge }));
|
|
5777
5778
|
}
|
|
5778
|
-
|
|
5779
|
+
b.value = te;
|
|
5779
5780
|
}
|
|
5780
5781
|
};
|
|
5781
5782
|
ne(() => [e.isReverse, i.value, s.value], () => {
|
|
5782
5783
|
const M = k(i), D = k(s);
|
|
5783
|
-
if (
|
|
5784
|
+
if (v(D), e.isReverse) {
|
|
5784
5785
|
const { columns: V, dataSource: J } = A(vt(M), vt(D));
|
|
5785
5786
|
l.value = V, d.value = J;
|
|
5786
5787
|
} else
|
|
@@ -5994,7 +5995,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5994
5995
|
useFilterOptions: (M) => {
|
|
5995
5996
|
const D = M.dataIndex;
|
|
5996
5997
|
if (typeof D == "string") {
|
|
5997
|
-
let V = k(
|
|
5998
|
+
let V = k(b)[D];
|
|
5998
5999
|
const J = k(M.filterOptionsInputValue).trim();
|
|
5999
6000
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(J.toLowerCase()) : !0), V) : [];
|
|
6000
6001
|
}
|
|
@@ -6037,7 +6038,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6037
6038
|
pagination: e.pagination,
|
|
6038
6039
|
onChange: e.tableChange
|
|
6039
6040
|
}, {
|
|
6040
|
-
customFilterDropdown: Y(({ column: u, selectedKeys: y, setSelectedKeys:
|
|
6041
|
+
customFilterDropdown: Y(({ column: u, selectedKeys: y, setSelectedKeys: b, confirm: v, clearFilters: A }) => [
|
|
6041
6042
|
X("div", {
|
|
6042
6043
|
class: "ecan-table-filter",
|
|
6043
6044
|
style: G({
|
|
@@ -6056,14 +6057,14 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6056
6057
|
"onUpdate:value": (x) => u.filterCheckboxGroupValue = x,
|
|
6057
6058
|
class: "filter-checkbox",
|
|
6058
6059
|
options: e.useFilterOptions(u),
|
|
6059
|
-
onChange: (x) => e.useSetSelectedKeys(
|
|
6060
|
+
onChange: (x) => e.useSetSelectedKeys(b, u)
|
|
6060
6061
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6061
6062
|
X("div", null, [
|
|
6062
6063
|
j(l, {
|
|
6063
6064
|
type: "primary",
|
|
6064
6065
|
size: "small",
|
|
6065
6066
|
style: { width: "90px", "margin-right": "8px" },
|
|
6066
|
-
onClick: () =>
|
|
6067
|
+
onClick: () => v()
|
|
6067
6068
|
}, {
|
|
6068
6069
|
default: Y(() => [
|
|
6069
6070
|
hs
|
|
@@ -6083,7 +6084,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6083
6084
|
])
|
|
6084
6085
|
], 4)
|
|
6085
6086
|
]),
|
|
6086
|
-
bodyCell: Y(({ column: u, index: y, text:
|
|
6087
|
+
bodyCell: Y(({ column: u, index: y, text: b, record: v }) => [
|
|
6087
6088
|
u.dataIndex === "SEQ" ? (E(), R("span", bs, ye(y + 1), 1)) : pe("", !0),
|
|
6088
6089
|
u.dataIndex === "ACTION" ? (E(), R("div", vs, [
|
|
6089
6090
|
(E(!0), R(Le, null, Me(e.actionList, (A, x) => (E(), R("div", {
|
|
@@ -6091,24 +6092,24 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6091
6092
|
key: x
|
|
6092
6093
|
}, [
|
|
6093
6094
|
X("a", {
|
|
6094
|
-
href: e.handleHref(A.href,
|
|
6095
|
+
href: e.handleHref(A.href, v),
|
|
6095
6096
|
target: e.handleHrefTarget(A.target),
|
|
6096
6097
|
style: G({
|
|
6097
6098
|
color: A.color,
|
|
6098
6099
|
fontSize: e.fontSize,
|
|
6099
6100
|
fontWeight: e.fontWeight
|
|
6100
6101
|
}),
|
|
6101
|
-
onClick: (B) => e.onTouchHrefEvent(A.target, e.handleHref(A.href,
|
|
6102
|
+
onClick: (B) => e.onTouchHrefEvent(A.target, e.handleHref(A.href, v))
|
|
6102
6103
|
}, ye(A.title), 13, ps)
|
|
6103
6104
|
]))), 128))
|
|
6104
6105
|
])) : (E(), R("div", {
|
|
6105
6106
|
key: 2,
|
|
6106
|
-
class: _t([e.contrastClass(
|
|
6107
|
+
class: _t([e.contrastClass(b, u.format)]),
|
|
6107
6108
|
style: G({
|
|
6108
6109
|
fontSize: e.fontSize,
|
|
6109
6110
|
fontWeight: e.fontWeight
|
|
6110
6111
|
})
|
|
6111
|
-
}, ye(u.format != null ? e.formatFn(
|
|
6112
|
+
}, ye(u.format != null ? e.formatFn(b, u.format) : b), 7))
|
|
6112
6113
|
]),
|
|
6113
6114
|
summary: Y(() => [
|
|
6114
6115
|
e.summaryList.length > 0 ? (E(), Fe(g, { key: 0 }, {
|