@ecan-bi/datav 1.1.51 → 1.1.53
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 +247 -248
- 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 +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.53 */
|
|
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";
|
|
@@ -115,7 +115,7 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
115
115
|
null
|
|
116
116
|
), { autoresize: d, manualUpdate: c, loading: g, loadingOptions: h } = Mo(e), m = q(
|
|
117
117
|
() => r.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
118
|
-
),
|
|
118
|
+
), f = q(() => e.theme || k(i) || {}), y = q(
|
|
119
119
|
() => e.initOptions || k(s) || {}
|
|
120
120
|
), v = q(
|
|
121
121
|
() => e.updateOptions || k(l) || {}
|
|
@@ -123,24 +123,24 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
123
123
|
function A(w) {
|
|
124
124
|
if (a.value || !o.value)
|
|
125
125
|
return;
|
|
126
|
-
const
|
|
126
|
+
const u = a.value = Po(
|
|
127
127
|
o.value,
|
|
128
|
-
|
|
128
|
+
f.value,
|
|
129
129
|
y.value
|
|
130
130
|
);
|
|
131
|
-
e.group && (
|
|
131
|
+
e.group && (u.group = e.group);
|
|
132
132
|
let p = t;
|
|
133
133
|
p || (p = {}, Object.keys(n).filter((C) => C.indexOf("on") === 0 && C.length > 2).forEach((C) => {
|
|
134
134
|
const _ = C.charAt(2).toLowerCase() + C.slice(3);
|
|
135
135
|
p[_] = n[C];
|
|
136
136
|
})), Object.keys(p).forEach((C) => {
|
|
137
137
|
const _ = p[C];
|
|
138
|
-
_ && (C.indexOf("zr:") === 0 ?
|
|
138
|
+
_ && (C.indexOf("zr:") === 0 ? u.getZr().on(C.slice(3).toLowerCase(), _) : u.on(C.toLowerCase(), _));
|
|
139
139
|
});
|
|
140
140
|
function T() {
|
|
141
|
-
if (
|
|
141
|
+
if (u && !u.isDisposed())
|
|
142
142
|
try {
|
|
143
|
-
|
|
143
|
+
u.resize();
|
|
144
144
|
} catch (C) {
|
|
145
145
|
if (C.message === "Cannot read property 'get' of undefined")
|
|
146
146
|
return;
|
|
@@ -148,14 +148,14 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function O() {
|
|
151
|
-
|
|
151
|
+
u.setOption(w || m.value, v.value);
|
|
152
152
|
}
|
|
153
153
|
d.value ? ft(() => {
|
|
154
154
|
T(), O();
|
|
155
155
|
}) : O();
|
|
156
156
|
}
|
|
157
|
-
function x(w,
|
|
158
|
-
e.manualUpdate && (r.value = w), a.value ? a.value.setOption(w,
|
|
157
|
+
function x(w, u) {
|
|
158
|
+
e.manualUpdate && (r.value = w), a.value ? a.value.setOption(w, u || {}) : A(w);
|
|
159
159
|
}
|
|
160
160
|
function B() {
|
|
161
161
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
@@ -166,8 +166,8 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
166
166
|
(w) => {
|
|
167
167
|
typeof S == "function" && (S(), S = null), w || (S = ne(
|
|
168
168
|
() => e.option,
|
|
169
|
-
(
|
|
170
|
-
|
|
169
|
+
(u) => {
|
|
170
|
+
u && (a.value ? a.value.setOption(u, v.value) : A());
|
|
171
171
|
},
|
|
172
172
|
{ deep: !0 }
|
|
173
173
|
));
|
|
@@ -176,7 +176,7 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
176
176
|
immediate: !0
|
|
177
177
|
}
|
|
178
178
|
), ne(
|
|
179
|
-
[
|
|
179
|
+
[f, y],
|
|
180
180
|
() => {
|
|
181
181
|
B(), A();
|
|
182
182
|
},
|
|
@@ -935,7 +935,7 @@ An("#1890ff");
|
|
|
935
935
|
var Ue = function(n, t) {
|
|
936
936
|
var o, a = Kt({}, n, t.attrs), r = a.class, i = a.icon, s = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, g = a.onClick, h = ul(a, ll), m = (o = {
|
|
937
937
|
anticon: !0
|
|
938
|
-
}, Mt(o, "anticon-".concat(i.name), Boolean(i.name)), Mt(o, r, r), o),
|
|
938
|
+
}, Mt(o, "anticon-".concat(i.name), Boolean(i.name)), Mt(o, r, r), o), f = s === "" || s || i.name === "loading" ? "anticon-spin" : "", y = d;
|
|
939
939
|
y === void 0 && g && (y = -1, h.tabindex = y);
|
|
940
940
|
var v = l ? {
|
|
941
941
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
@@ -948,7 +948,7 @@ var Ue = function(n, t) {
|
|
|
948
948
|
onClick: g,
|
|
949
949
|
class: m
|
|
950
950
|
}), [j(Ot, {
|
|
951
|
-
class:
|
|
951
|
+
class: f,
|
|
952
952
|
icon: i,
|
|
953
953
|
primaryColor: x,
|
|
954
954
|
secondaryColor: B,
|
|
@@ -1184,12 +1184,12 @@ const Al = ((rn = window == null ? void 0 : window.config) == null ? void 0 : rn
|
|
|
1184
1184
|
t = t == null ? void 0 : t.trim(), o = o == null ? void 0 : o.trim(), a = a == null ? void 0 : a.trim();
|
|
1185
1185
|
const r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), s = e.length;
|
|
1186
1186
|
for (let c = 0; c < s; c++) {
|
|
1187
|
-
const g = e[c], h = g[t] || "", m = g[o] || "",
|
|
1188
|
-
if (r.add(h), i.has(
|
|
1189
|
-
const y = i.get(
|
|
1190
|
-
y.push({ name: h, value: m, ...g }), i.set(
|
|
1187
|
+
const g = e[c], h = g[t] || "", m = g[o] || "", f = g[a] || "";
|
|
1188
|
+
if (r.add(h), i.has(f)) {
|
|
1189
|
+
const y = i.get(f);
|
|
1190
|
+
y.push({ name: h, value: m, ...g }), i.set(f, y);
|
|
1191
1191
|
} else
|
|
1192
|
-
i.set(
|
|
1192
|
+
i.set(f, [{ name: h, value: m, ...g }]);
|
|
1193
1193
|
}
|
|
1194
1194
|
const l = Array.from(r), d = [];
|
|
1195
1195
|
for (const [c, g] of i)
|
|
@@ -1301,12 +1301,12 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1301
1301
|
r.forEach((S) => {
|
|
1302
1302
|
const { key: L, value: w } = S;
|
|
1303
1303
|
if (typeof w == "object" && w.id) {
|
|
1304
|
-
let
|
|
1304
|
+
let u = {};
|
|
1305
1305
|
const { id: p, prop: T, propKey: O, operate: C } = w;
|
|
1306
|
-
p === "THIS" ?
|
|
1307
|
-
const _ = k(
|
|
1306
|
+
p === "THIS" ? u = g(k(c)) || {} : u = g(p) || {};
|
|
1307
|
+
const _ = k(u[T]);
|
|
1308
1308
|
let U = null;
|
|
1309
|
-
if (["date", "range"].some((F) => In(
|
|
1309
|
+
if (["date", "range"].some((F) => In(u == null ? void 0 : u.type, F))) {
|
|
1310
1310
|
const { value: F, type: $, mode: z } = C || {};
|
|
1311
1311
|
if (F && $ && z)
|
|
1312
1312
|
switch ($) {
|
|
@@ -1317,7 +1317,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1317
1317
|
U = k(_).subtract(F, z);
|
|
1318
1318
|
break;
|
|
1319
1319
|
}
|
|
1320
|
-
U == null && (U = k(_)), U = (U == null ? void 0 : U.format((O == null ? void 0 : O.trim()) ||
|
|
1320
|
+
U == null && (U = k(_)), U = (U == null ? void 0 : U.format((O == null ? void 0 : O.trim()) || u.format)) || "";
|
|
1321
1321
|
} else
|
|
1322
1322
|
Object.prototype.toString.call(_) === "[object Object]" ? U = _[O || "value"] : U = _;
|
|
1323
1323
|
v[L] = U;
|
|
@@ -1341,9 +1341,9 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1341
1341
|
} catch (S) {
|
|
1342
1342
|
console.error(S);
|
|
1343
1343
|
}
|
|
1344
|
-
},
|
|
1344
|
+
}, f = s && setInterval(m, i * 1e3);
|
|
1345
1345
|
return ut(() => {
|
|
1346
|
-
clearInterval(
|
|
1346
|
+
clearInterval(f);
|
|
1347
1347
|
}), m;
|
|
1348
1348
|
}, $e = (e = [], n) => {
|
|
1349
1349
|
let { name: t = "name", types: o = [] } = n || {};
|
|
@@ -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:
|
|
1356
|
-
a.add(
|
|
1355
|
+
const m = o[h], { label: f, value: y } = m, v = { ...e[0], value: e[0][y] };
|
|
1356
|
+
a.add(f), c.push(v);
|
|
1357
1357
|
}
|
|
1358
1358
|
const g = e[0][t] || "";
|
|
1359
1359
|
r.set(g, c);
|
|
@@ -1362,7 +1362,7 @@ 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
|
|
1365
|
+
const f = o[m], { label: y, value: v } = f, b = { ...g, value: g[v] };
|
|
1366
1366
|
if (r.has(y)) {
|
|
1367
1367
|
const A = r.get(y);
|
|
1368
1368
|
A.push(b), r.set(y, A);
|
|
@@ -1431,10 +1431,10 @@ 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:
|
|
1434
|
+
const { keyName: h, searchName: m, searchType: f, variateName: y, id: v } = l[g], b = {
|
|
1435
1435
|
alias: h,
|
|
1436
1436
|
fieldName: m,
|
|
1437
|
-
rule:
|
|
1437
|
+
rule: f || "NONE",
|
|
1438
1438
|
fieldValue: "",
|
|
1439
1439
|
valueType: "",
|
|
1440
1440
|
variateName: y
|
|
@@ -1486,8 +1486,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1486
1486
|
h.dateFormat = l.children[c].format, h.dateCalcTypes = l.children[c].dateCalcTypes, h.calcWays = l.children[c].calcWays, l.children[c].selectType === "time" ? l.children[c].absoluteBool && (g = "#######", h.calcWays = l.children[c].calcWays) : l.children[c].selectType === "component" && (g = "${" + l.children[c].relateCompent + "}"), h.dateFormat = l.children[c].format, h.dateCalcTypes = l.children[c].dateCalcTypes, h.calcWays = l.children[c].calcWays;
|
|
1487
1487
|
else if (Object.prototype.toString.call(g) === "[object Array]") {
|
|
1488
1488
|
const m = [];
|
|
1489
|
-
for (let
|
|
1490
|
-
g[
|
|
1489
|
+
for (let f = 0; f < g.length; f++)
|
|
1490
|
+
g[f] !== "全选" && m.push(g[f]);
|
|
1491
1491
|
g = m.join(",");
|
|
1492
1492
|
}
|
|
1493
1493
|
h.fieldValue = g, l.children.length > 1 && c !== l.children.length - 1 && (l.type === "and" ? h.join = "&&" : h.join = "||"), d.push(h);
|
|
@@ -1495,13 +1495,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1495
1495
|
}, s = (l, d, c) => {
|
|
1496
1496
|
if (!l)
|
|
1497
1497
|
return;
|
|
1498
|
-
const g = c[d].find((
|
|
1498
|
+
const g = c[d].find((f) => f.name === l.label);
|
|
1499
1499
|
if (!g)
|
|
1500
1500
|
return;
|
|
1501
1501
|
const h = [], m = g.filterList;
|
|
1502
1502
|
if (m)
|
|
1503
|
-
for (let
|
|
1504
|
-
m[
|
|
1503
|
+
for (let f = 0; f < m.length; f++)
|
|
1504
|
+
m[f].children.length > 0 && i(m[f], h);
|
|
1505
1505
|
return h;
|
|
1506
1506
|
};
|
|
1507
1507
|
return async function() {
|
|
@@ -1527,23 +1527,23 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1527
1527
|
const h = t(d);
|
|
1528
1528
|
let m;
|
|
1529
1529
|
if (Array.isArray(d.series) && d.series.length > 0) {
|
|
1530
|
-
const w = (S = d.seriesList) == null ? void 0 : S.find((
|
|
1530
|
+
const w = (S = d.seriesList) == null ? void 0 : S.find((u) => {
|
|
1531
1531
|
const p = d.series[0];
|
|
1532
|
-
return
|
|
1532
|
+
return u.name === p || u.nameBak === p;
|
|
1533
1533
|
});
|
|
1534
1534
|
w != null && (m = {
|
|
1535
1535
|
label: w.name,
|
|
1536
1536
|
columnName: w.label
|
|
1537
1537
|
});
|
|
1538
1538
|
}
|
|
1539
|
-
let
|
|
1539
|
+
let f;
|
|
1540
1540
|
if (c.length > 0) {
|
|
1541
|
-
|
|
1541
|
+
f = {
|
|
1542
1542
|
label: c[0],
|
|
1543
1543
|
columnName: c[0]
|
|
1544
1544
|
};
|
|
1545
|
-
const w = ((L = d.classifyList) == null ? void 0 : L.find((
|
|
1546
|
-
|
|
1545
|
+
const w = ((L = d.classifyList) == null ? void 0 : L.find((u) => (u == null ? void 0 : u.name) === c[0] || (u == null ? void 0 : u.nameBak) === c[0])) || {};
|
|
1546
|
+
f.columnName = w.label, r(f, d.classifyList), f.conditions = s(f, "classifyList", d) || [];
|
|
1547
1547
|
}
|
|
1548
1548
|
m && (r(m, d.seriesList), m.conditions = s(m, "seriesList", d) || []);
|
|
1549
1549
|
for (let w = 0; w < h.length; w++)
|
|
@@ -1570,7 +1570,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1570
1570
|
plugin: "1",
|
|
1571
1571
|
layer: "2",
|
|
1572
1572
|
chartType: B[l],
|
|
1573
|
-
classification:
|
|
1573
|
+
classification: f,
|
|
1574
1574
|
indicatorList: h,
|
|
1575
1575
|
series: m,
|
|
1576
1576
|
sqlConditions: y,
|
|
@@ -1634,7 +1634,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1634
1634
|
indexCode: g,
|
|
1635
1635
|
calcType: h = "COLUMN",
|
|
1636
1636
|
builtInFormula: m,
|
|
1637
|
-
builtInValueSource:
|
|
1637
|
+
builtInValueSource: f,
|
|
1638
1638
|
builtInCalcWay: y,
|
|
1639
1639
|
formula: v,
|
|
1640
1640
|
conditions: b
|
|
@@ -1648,7 +1648,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1648
1648
|
hrpIndexCode: g,
|
|
1649
1649
|
aggregate: "SUM",
|
|
1650
1650
|
builtInFormula: m,
|
|
1651
|
-
builtInValueSource:
|
|
1651
|
+
builtInValueSource: f,
|
|
1652
1652
|
builtInCalcWay: y,
|
|
1653
1653
|
formula: v,
|
|
1654
1654
|
conditions: b
|
|
@@ -1665,12 +1665,12 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1665
1665
|
const g = i[c], {
|
|
1666
1666
|
id: h,
|
|
1667
1667
|
conditionLabel: m,
|
|
1668
|
-
conditionKey:
|
|
1668
|
+
conditionKey: f,
|
|
1669
1669
|
conditionValueType: y
|
|
1670
1670
|
} = g, v = {
|
|
1671
1671
|
rule: "NONE",
|
|
1672
1672
|
label: m,
|
|
1673
|
-
fieldName:
|
|
1673
|
+
fieldName: f,
|
|
1674
1674
|
fieldValue: "",
|
|
1675
1675
|
// 在关联控件中取
|
|
1676
1676
|
valueType: y
|
|
@@ -1693,7 +1693,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1693
1693
|
chartType: g,
|
|
1694
1694
|
classificationList: h = [],
|
|
1695
1695
|
seriesList: m = [],
|
|
1696
|
-
leftAxisList:
|
|
1696
|
+
leftAxisList: f = [],
|
|
1697
1697
|
rightAxisList: y = [],
|
|
1698
1698
|
queryColumnList: v = [],
|
|
1699
1699
|
indicators: b = [],
|
|
@@ -1738,18 +1738,18 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
const
|
|
1741
|
+
const u = [];
|
|
1742
1742
|
v == null || v.forEach((C) => {
|
|
1743
|
-
|
|
1743
|
+
u.push(t(C));
|
|
1744
1744
|
});
|
|
1745
1745
|
const p = [];
|
|
1746
|
-
if (
|
|
1746
|
+
if (f == null || f.forEach((C) => {
|
|
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
|
}), b == null || b.forEach((C) => {
|
|
1751
1751
|
C.location = "LEFT", p.push(o(C));
|
|
1752
|
-
}), c === "1" &&
|
|
1752
|
+
}), c === "1" && u.length === 0)
|
|
1753
1753
|
return;
|
|
1754
1754
|
if (c === "2" && p.length === 0)
|
|
1755
1755
|
return;
|
|
@@ -1767,7 +1767,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1767
1767
|
classification: L,
|
|
1768
1768
|
series: w,
|
|
1769
1769
|
indicatorList: p,
|
|
1770
|
-
queryColumns:
|
|
1770
|
+
queryColumns: u,
|
|
1771
1771
|
pageFlag: !0,
|
|
1772
1772
|
sqlConditions: T,
|
|
1773
1773
|
// fixedDimSql: '',
|
|
@@ -1832,13 +1832,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1832
1832
|
attributeFilter: ["style"],
|
|
1833
1833
|
attributeOldValue: !0
|
|
1834
1834
|
});
|
|
1835
|
-
},
|
|
1835
|
+
}, f = () => {
|
|
1836
1836
|
l && (l.disconnect(), l.takeRecords(), l = null);
|
|
1837
1837
|
};
|
|
1838
1838
|
return Ne(async () => {
|
|
1839
1839
|
i.value = !1, await d(), c(), g(), window.addEventListener("resize", h), m(), i.value = !0;
|
|
1840
1840
|
}), ut(() => {
|
|
1841
|
-
window.removeEventListener("resize", h),
|
|
1841
|
+
window.removeEventListener("resize", h), f();
|
|
1842
1842
|
}), {
|
|
1843
1843
|
style: n,
|
|
1844
1844
|
container: s,
|
|
@@ -1903,13 +1903,13 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1903
1903
|
g.pop();
|
|
1904
1904
|
}, m = (F) => {
|
|
1905
1905
|
g.push(F);
|
|
1906
|
-
},
|
|
1906
|
+
}, f = /* @__PURE__ */ new Map(), y = (F) => f.get(F);
|
|
1907
1907
|
Oe(Ln, {
|
|
1908
1908
|
popUseModalIds: h,
|
|
1909
1909
|
pushUseModalIds: m,
|
|
1910
1910
|
getModalModel: y,
|
|
1911
1911
|
setModalModel: (F, $) => {
|
|
1912
|
-
|
|
1912
|
+
f.set(F, $);
|
|
1913
1913
|
}
|
|
1914
1914
|
});
|
|
1915
1915
|
const b = na(), A = /* @__PURE__ */ new Set(), x = (F, $) => {
|
|
@@ -1945,13 +1945,13 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1945
1945
|
L.value = k(L) + 1;
|
|
1946
1946
|
}
|
|
1947
1947
|
});
|
|
1948
|
-
const
|
|
1948
|
+
const u = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), T = ({ requestFn: F = () => {
|
|
1949
1949
|
}, sortNum: $ = 0, id: z = "" }) => {
|
|
1950
|
-
if (
|
|
1951
|
-
const W =
|
|
1950
|
+
if (u.has($)) {
|
|
1951
|
+
const W = u.get($);
|
|
1952
1952
|
W == null || W.push(F);
|
|
1953
1953
|
} else
|
|
1954
|
-
|
|
1954
|
+
u.set($, [F]);
|
|
1955
1955
|
p.set(z, F);
|
|
1956
1956
|
}, O = (F) => new Promise(($, z) => {
|
|
1957
1957
|
const W = F.map((ee) => ee());
|
|
@@ -1979,7 +1979,7 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
} else {
|
|
1982
|
-
const W = Array.from(
|
|
1982
|
+
const W = Array.from(u);
|
|
1983
1983
|
W.sort((se, nt) => nt[0] - se[0]);
|
|
1984
1984
|
const ee = W.length;
|
|
1985
1985
|
try {
|
|
@@ -1991,7 +1991,7 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1991
1991
|
} catch (se) {
|
|
1992
1992
|
console.error(se);
|
|
1993
1993
|
} finally {
|
|
1994
|
-
|
|
1994
|
+
u.clear(), $(null);
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
@@ -2009,7 +2009,7 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
2009
2009
|
});
|
|
2010
2010
|
};
|
|
2011
2011
|
return Tt(() => {
|
|
2012
|
-
|
|
2012
|
+
u == null || u.clear(), p == null || p.clear();
|
|
2013
2013
|
}), n({
|
|
2014
2014
|
touchRequest: _,
|
|
2015
2015
|
getGlobalModel: d,
|
|
@@ -2069,16 +2069,16 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2069
2069
|
const h = k(t);
|
|
2070
2070
|
let m = e.text;
|
|
2071
2071
|
m = m == null ? void 0 : m.replace(/\n|\\n/g, "<br/>"), m = m == null ? void 0 : m.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
2072
|
-
const
|
|
2073
|
-
if (
|
|
2072
|
+
const f = m.match(/\{(.+?)\}/g);
|
|
2073
|
+
if (f == null || f.length === 0)
|
|
2074
2074
|
return m;
|
|
2075
|
-
for (let v = 0; v <
|
|
2076
|
-
const b =
|
|
2075
|
+
for (let v = 0; v < f.length; v++) {
|
|
2076
|
+
const b = f[v], A = (y = b == null ? void 0 : b.slice(1, b.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++) {
|
|
2080
|
-
const w = B[L],
|
|
2081
|
-
|
|
2080
|
+
const w = B[L], u = h[w];
|
|
2081
|
+
u && (x = A.replace(w, u));
|
|
2082
2082
|
}
|
|
2083
2083
|
if (/\(.*\)/g.test(x)) {
|
|
2084
2084
|
const L = ht(x);
|
|
@@ -2114,7 +2114,7 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2114
2114
|
const { setRequest: d } = N(Ce, {
|
|
2115
2115
|
// @ts-ignore
|
|
2116
2116
|
// eslint-disable-next-line no-void
|
|
2117
|
-
setRequest: ({ id: h, sortNum: m, requestFn:
|
|
2117
|
+
setRequest: ({ id: h, sortNum: m, requestFn: f }) => {
|
|
2118
2118
|
}
|
|
2119
2119
|
});
|
|
2120
2120
|
d({
|
|
@@ -2127,13 +2127,13 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2127
2127
|
const g = fe(e)("click", () => {
|
|
2128
2128
|
if (!e.linkPage && !e.href)
|
|
2129
2129
|
return;
|
|
2130
|
-
const h = e.linkPage || "", m = Mn(k(a), h),
|
|
2131
|
-
let y =
|
|
2130
|
+
const h = e.linkPage || "", m = Mn(k(a), h), f = e.href;
|
|
2131
|
+
let y = f || m;
|
|
2132
2132
|
y = de(y);
|
|
2133
2133
|
const v = e.target;
|
|
2134
2134
|
v && (v !== "event" ? window.open(y, "_" + v) : window.parent.postMessage({
|
|
2135
2135
|
type: "openPage",
|
|
2136
|
-
url:
|
|
2136
|
+
url: f
|
|
2137
2137
|
}, "*"));
|
|
2138
2138
|
});
|
|
2139
2139
|
return {
|
|
@@ -2263,12 +2263,12 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-47d57d2d
|
|
|
2263
2263
|
textAlign: "center"
|
|
2264
2264
|
} : {
|
|
2265
2265
|
textAlign: "left"
|
|
2266
|
-
}), a = (
|
|
2266
|
+
}), a = (f, y) => y == null || y === "" ? f : {
|
|
2267
2267
|
money: zt,
|
|
2268
2268
|
percentage: dt,
|
|
2269
2269
|
contrast: dt
|
|
2270
|
-
}[y](
|
|
2271
|
-
const v = parseFloat(
|
|
2270
|
+
}[y](f) || "", r = (f, y) => {
|
|
2271
|
+
const v = parseFloat(f + "");
|
|
2272
2272
|
if (y !== "contrast")
|
|
2273
2273
|
return "";
|
|
2274
2274
|
switch (!0) {
|
|
@@ -2280,12 +2280,12 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-47d57d2d
|
|
|
2280
2280
|
}, i = Ae(e), { pageMode: s } = N(ce, {
|
|
2281
2281
|
pageMode: "normal"
|
|
2282
2282
|
}), l = I(!1), d = async () => {
|
|
2283
|
-
var
|
|
2283
|
+
var f;
|
|
2284
2284
|
if (!(e.dataType !== "request" || k(s) === "design"))
|
|
2285
2285
|
try {
|
|
2286
2286
|
l.value = !0;
|
|
2287
2287
|
const y = await i();
|
|
2288
|
-
n.value = ((
|
|
2288
|
+
n.value = ((f = y == null ? void 0 : y.data) == null ? void 0 : f.data.rows) || [];
|
|
2289
2289
|
} catch (y) {
|
|
2290
2290
|
console.error(y);
|
|
2291
2291
|
} finally {
|
|
@@ -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:
|
|
2304
|
+
setRequest: ({ id: f, sortNum: y, requestFn: v }) => {
|
|
2305
2305
|
}
|
|
2306
2306
|
});
|
|
2307
2307
|
return m({
|
|
@@ -2442,8 +2442,8 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-211785ca
|
|
|
2442
2442
|
const { pageMode: n } = N(ce, {
|
|
2443
2443
|
pageMode: "normal"
|
|
2444
2444
|
}), t = ie(e), o = q(() => {
|
|
2445
|
-
const
|
|
2446
|
-
return parseFloat(
|
|
2445
|
+
const f = e.width;
|
|
2446
|
+
return parseFloat(f);
|
|
2447
2447
|
}), a = I({});
|
|
2448
2448
|
ne(() => e.data, () => {
|
|
2449
2449
|
(e.dataType === "static" || k(n) === "design") && (a.value = e.data);
|
|
@@ -2452,50 +2452,50 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-211785ca
|
|
|
2452
2452
|
deep: !0
|
|
2453
2453
|
});
|
|
2454
2454
|
const r = q(() => {
|
|
2455
|
-
const
|
|
2456
|
-
if (
|
|
2455
|
+
const f = k(a), y = +e.variableDefaultValue;
|
|
2456
|
+
if (f == null)
|
|
2457
2457
|
return isNaN(y) ? 0 : y;
|
|
2458
2458
|
const v = e.text.match(/\{.+\}/g) || [];
|
|
2459
2459
|
let b;
|
|
2460
|
-
const A = new Set(Object.keys(
|
|
2460
|
+
const A = new Set(Object.keys(f));
|
|
2461
2461
|
for (let x = 0; x < v.length; x++) {
|
|
2462
2462
|
const B = v[x], S = B.slice(1, B.length - 1);
|
|
2463
2463
|
if (A.has(S)) {
|
|
2464
|
-
b =
|
|
2464
|
+
b = f[S];
|
|
2465
2465
|
break;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
return typeof b == "number" ? b = b * 100 : typeof b == "string" && !isNaN(+b) ? b = +b * 100 : isNaN(y) ? b = 0 : b = y * 100, e.decimalFormat && (b = +b.toFixed(2)), b;
|
|
2469
2469
|
}), i = q(() => {
|
|
2470
2470
|
var A;
|
|
2471
|
-
let
|
|
2472
|
-
if (
|
|
2471
|
+
let f = e.text;
|
|
2472
|
+
if (f === "")
|
|
2473
2473
|
return k(r);
|
|
2474
|
-
const y = e.variableDefaultValue, v = k(a), b =
|
|
2474
|
+
const y = e.variableDefaultValue, v = k(a), b = f.match(/\{.+\}/g) || [];
|
|
2475
2475
|
for (let x = 0; x < b.length; x++) {
|
|
2476
2476
|
const B = b[x];
|
|
2477
2477
|
let S = B.slice(1, B.length - 1);
|
|
2478
2478
|
const L = S.match(/.*/g);
|
|
2479
|
-
for (let
|
|
2479
|
+
for (let u = 0; u < (L == null ? void 0 : L.length); u++) {
|
|
2480
2480
|
const p = (A = L[x]) == null ? void 0 : A.trim();
|
|
2481
2481
|
v[p] != null ? S = S.replace(p, v[p]) : S = S.replace(p, y);
|
|
2482
2482
|
}
|
|
2483
2483
|
let w = S;
|
|
2484
2484
|
try {
|
|
2485
2485
|
/\(.*\)/g.test(S) && (w = ht(S));
|
|
2486
|
-
} catch (
|
|
2487
|
-
console.error(
|
|
2486
|
+
} catch (u) {
|
|
2487
|
+
console.error(u);
|
|
2488
2488
|
}
|
|
2489
|
-
(typeof w == "number" || !isNaN(+w)) && (w = +w * 100, e.decimalFormat && (w = w.toFixed(2))),
|
|
2489
|
+
(typeof w == "number" || !isNaN(+w)) && (w = +w * 100, e.decimalFormat && (w = w.toFixed(2))), f = f.replace(B, w + "");
|
|
2490
2490
|
}
|
|
2491
|
-
return
|
|
2491
|
+
return f;
|
|
2492
2492
|
}), s = Ae(e), l = I(!1), d = async () => {
|
|
2493
|
-
var
|
|
2493
|
+
var f;
|
|
2494
2494
|
if (!(e.dataType !== "request" || k(n) === "design"))
|
|
2495
2495
|
try {
|
|
2496
2496
|
l.value = !0;
|
|
2497
2497
|
const y = await s();
|
|
2498
|
-
a.value = ((
|
|
2498
|
+
a.value = ((f = y == null ? void 0 : y.data) == null ? void 0 : f.data) || {};
|
|
2499
2499
|
} catch (y) {
|
|
2500
2500
|
console.error(y);
|
|
2501
2501
|
} finally {
|
|
@@ -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:
|
|
2514
|
+
setRequest: ({ id: f, sortNum: y, requestFn: v }) => {
|
|
2515
2515
|
}
|
|
2516
2516
|
});
|
|
2517
2517
|
return m({
|
|
@@ -2667,7 +2667,7 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), jn = {
|
|
|
2667
2667
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I(null);
|
|
2668
2668
|
ne(() => [e.value, e.useCurrentTime, e.operate], ([s, l, d]) => {
|
|
2669
2669
|
let c = null;
|
|
2670
|
-
if (
|
|
2670
|
+
if (s ? c = Ie(de(s)) : l && (c = Ie()), d && c) {
|
|
2671
2671
|
const { type: g, value: h, mode: m } = d;
|
|
2672
2672
|
switch (g) {
|
|
2673
2673
|
case "add":
|
|
@@ -2787,12 +2787,12 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Vn = {
|
|
|
2787
2787
|
type: e.type,
|
|
2788
2788
|
value: i
|
|
2789
2789
|
});
|
|
2790
|
-
const
|
|
2790
|
+
const f = fe(e)("selectChange", () => {
|
|
2791
2791
|
const v = e.id, b = g(v);
|
|
2792
2792
|
h(v, { ...b, RECORD: i });
|
|
2793
2793
|
});
|
|
2794
2794
|
he(e, {
|
|
2795
|
-
selectChange:
|
|
2795
|
+
selectChange: f
|
|
2796
2796
|
});
|
|
2797
2797
|
const { setRequest: y } = N(Ce, {
|
|
2798
2798
|
// @ts-ignore
|
|
@@ -2808,7 +2808,7 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Vn = {
|
|
|
2808
2808
|
style: n,
|
|
2809
2809
|
getPopupContainer: t,
|
|
2810
2810
|
myValue: i,
|
|
2811
|
-
selectChange:
|
|
2811
|
+
selectChange: f,
|
|
2812
2812
|
options: r,
|
|
2813
2813
|
filterOption: l,
|
|
2814
2814
|
loading: d
|
|
@@ -2862,10 +2862,10 @@ const Fi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-ef197aff
|
|
|
2862
2862
|
},
|
|
2863
2863
|
setup(e) {
|
|
2864
2864
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I([null, null]);
|
|
2865
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, g, h, m,
|
|
2865
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, g, h, m, f]) => {
|
|
2866
2866
|
let y = null, v = null;
|
|
2867
|
-
if (g && (y = Ie().subtract(h, m), v = Ie()), d && (y = Ie(de(d))), c && (v = Ie(de(c))),
|
|
2868
|
-
const { type: b, value: A, mode: x } =
|
|
2867
|
+
if (g && (y = Ie().subtract(h, m), v = Ie()), d && (y = Ie(de(d))), c && (v = Ie(de(c))), f) {
|
|
2868
|
+
const { type: b, value: A, mode: x } = f;
|
|
2869
2869
|
switch (b) {
|
|
2870
2870
|
case "add":
|
|
2871
2871
|
y = y && y.add(A, x), v = v && v.add(A, x);
|
|
@@ -3021,11 +3021,11 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Kn = {
|
|
|
3021
3021
|
},
|
|
3022
3022
|
setup(e) {
|
|
3023
3023
|
const n = ie(e), t = I([]), o = I([]), a = (m) => {
|
|
3024
|
-
const
|
|
3024
|
+
const f = e.value;
|
|
3025
3025
|
let y = [];
|
|
3026
3026
|
m.forEach((v) => {
|
|
3027
3027
|
v.checked && y.push(v.value);
|
|
3028
|
-
}), typeof
|
|
3028
|
+
}), typeof f == "string" && f !== "" ? y = y.concat(f.split(",")) : Array.isArray(f) && (y = y.concat(f)), t.value = m, o.value = y;
|
|
3029
3029
|
};
|
|
3030
3030
|
ne(() => [e.data, e.value], ([m]) => {
|
|
3031
3031
|
a(m);
|
|
@@ -3039,8 +3039,8 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Kn = {
|
|
|
3039
3039
|
var y, v;
|
|
3040
3040
|
if (e.dataType !== "request" || k(i) === "design")
|
|
3041
3041
|
return;
|
|
3042
|
-
const m = await r(),
|
|
3043
|
-
a(
|
|
3042
|
+
const m = await r(), f = ((v = (y = m == null ? void 0 : m.data) == null ? void 0 : y.data) == null ? void 0 : v.rows) || [];
|
|
3043
|
+
a(f);
|
|
3044
3044
|
}, { getGlobalModel: l, setGlobalModel: d } = N(ue, {
|
|
3045
3045
|
// @ts-ignore
|
|
3046
3046
|
// eslint-disable-next-line no-void
|
|
@@ -3048,7 +3048,7 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Kn = {
|
|
|
3048
3048
|
},
|
|
3049
3049
|
// @ts-ignore
|
|
3050
3050
|
// eslint-disable-next-line no-void
|
|
3051
|
-
setGlobalModel: (m,
|
|
3051
|
+
setGlobalModel: (m, f) => {
|
|
3052
3052
|
}
|
|
3053
3053
|
});
|
|
3054
3054
|
d(e.id, {
|
|
@@ -3061,7 +3061,7 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Kn = {
|
|
|
3061
3061
|
}), { setRequest: h } = N(Ce, {
|
|
3062
3062
|
// @ts-ignore
|
|
3063
3063
|
// eslint-disable-next-line no-void
|
|
3064
|
-
setRequest: ({ id: m, sortNum:
|
|
3064
|
+
setRequest: ({ id: m, sortNum: f, requestFn: y }) => {
|
|
3065
3065
|
}
|
|
3066
3066
|
});
|
|
3067
3067
|
return h({
|
|
@@ -3183,9 +3183,9 @@ const Yi = Q({
|
|
|
3183
3183
|
}, r = q(() => {
|
|
3184
3184
|
let { data: L = [] } = k(t)[0] || {};
|
|
3185
3185
|
if (Array.isArray(e.colors)) {
|
|
3186
|
-
const w = e.isUseLabelColors,
|
|
3186
|
+
const w = e.isUseLabelColors, u = e.colors;
|
|
3187
3187
|
L = L.map((p, T) => ({
|
|
3188
|
-
label: w ? { color:
|
|
3188
|
+
label: w ? { color: u[T] } : {},
|
|
3189
3189
|
...p
|
|
3190
3190
|
}));
|
|
3191
3191
|
}
|
|
@@ -3243,11 +3243,11 @@ const Yi = Q({
|
|
|
3243
3243
|
show: e.tooltipShow,
|
|
3244
3244
|
trigger: e.tooltipTrigger,
|
|
3245
3245
|
formatter: (w) => {
|
|
3246
|
-
const { marker:
|
|
3246
|
+
const { marker: u, seriesName: p, name: T, value: O, percent: C, data: _ } = w || {};
|
|
3247
3247
|
return de(
|
|
3248
3248
|
e.tooltipFormatter,
|
|
3249
3249
|
{
|
|
3250
|
-
marker:
|
|
3250
|
+
marker: u,
|
|
3251
3251
|
name: T,
|
|
3252
3252
|
value: O,
|
|
3253
3253
|
percent: C,
|
|
@@ -3327,11 +3327,11 @@ const Yi = Q({
|
|
|
3327
3327
|
}), { pageMode: l } = N(ce, {
|
|
3328
3328
|
pageMode: "normal"
|
|
3329
3329
|
}), d = (L = [], w) => {
|
|
3330
|
-
const { dataset:
|
|
3331
|
-
t.value =
|
|
3330
|
+
const { dataset: u } = Ye(L, w);
|
|
3331
|
+
t.value = u;
|
|
3332
3332
|
}, c = (L = [], w) => {
|
|
3333
|
-
const
|
|
3334
|
-
t.value =
|
|
3333
|
+
const u = Ye(L, w);
|
|
3334
|
+
t.value = u.dataset;
|
|
3335
3335
|
};
|
|
3336
3336
|
ne(() => e.data, (L) => {
|
|
3337
3337
|
(e.dataType === "static" || k(l) === "design") && d(L);
|
|
@@ -3344,10 +3344,10 @@ const Yi = Q({
|
|
|
3344
3344
|
if (!(e.dataType !== "request" || k(l) === "design"))
|
|
3345
3345
|
try {
|
|
3346
3346
|
g.value = !0;
|
|
3347
|
-
const
|
|
3348
|
-
d((w = (L =
|
|
3349
|
-
} catch (
|
|
3350
|
-
console.error(
|
|
3347
|
+
const u = await h();
|
|
3348
|
+
d((w = (L = u == null ? void 0 : u.data) == null ? void 0 : L.data) == null ? void 0 : w.rows, e.valueTypeDataFieldNames);
|
|
3349
|
+
} catch (u) {
|
|
3350
|
+
console.error(u);
|
|
3351
3351
|
} finally {
|
|
3352
3352
|
g.value = !1;
|
|
3353
3353
|
}
|
|
@@ -3355,13 +3355,13 @@ const Yi = Q({
|
|
|
3355
3355
|
const w = i(e.id);
|
|
3356
3356
|
s(e.id, { ...w, RECORD: L == null ? void 0 : L.data });
|
|
3357
3357
|
}), v = Nt(e), b = async () => {
|
|
3358
|
-
var L, w,
|
|
3358
|
+
var L, w, u, p, T, O;
|
|
3359
3359
|
if (!(e.dataType !== "indicator" || k(l) === "design"))
|
|
3360
3360
|
try {
|
|
3361
3361
|
g.value = !0;
|
|
3362
3362
|
const C = await v();
|
|
3363
3363
|
let _ = [];
|
|
3364
|
-
if (((
|
|
3364
|
+
if (((u = (w = (L = C == null ? void 0 : C.data) == null ? void 0 : L.data) == null ? void 0 : w.columns) == null ? void 0 : u.length) > 0) {
|
|
3365
3365
|
const U = C.data.data.columns[0], H = C.data.data.columns[1];
|
|
3366
3366
|
_ = (O = (T = (p = C == null ? void 0 : C.data) == null ? void 0 : p.data) == null ? void 0 : T.rows) == null ? void 0 : O.map((F) => ({
|
|
3367
3367
|
name: F[U],
|
|
@@ -3390,7 +3390,7 @@ const Yi = Q({
|
|
|
3390
3390
|
const { setRequest: S } = N(Ce, {
|
|
3391
3391
|
// @ts-ignore
|
|
3392
3392
|
// eslint-disable-next-line no-void
|
|
3393
|
-
setRequest: ({ id: L, sortNum: w, requestFn:
|
|
3393
|
+
setRequest: ({ id: L, sortNum: w, requestFn: u }) => {
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
return S({
|
|
@@ -3533,7 +3533,7 @@ const tr = Q({
|
|
|
3533
3533
|
const n = ie(e), t = I([]), o = I([]), a = I(!1), r = () => {
|
|
3534
3534
|
a.value = !1;
|
|
3535
3535
|
}, i = q(() => {
|
|
3536
|
-
const w = e.xAxisLabelFormatter,
|
|
3536
|
+
const w = e.xAxisLabelFormatter, u = e.yAxisLabelFormatter;
|
|
3537
3537
|
return {
|
|
3538
3538
|
toolbox: {
|
|
3539
3539
|
show: e.toolboxShow,
|
|
@@ -3654,7 +3654,7 @@ const tr = Q({
|
|
|
3654
3654
|
axisLabel: {
|
|
3655
3655
|
color: e.yAxisLabelColor,
|
|
3656
3656
|
formatter(p) {
|
|
3657
|
-
return De(
|
|
3657
|
+
return De(u, p);
|
|
3658
3658
|
}
|
|
3659
3659
|
},
|
|
3660
3660
|
axisLine: {
|
|
@@ -3679,17 +3679,17 @@ const tr = Q({
|
|
|
3679
3679
|
},
|
|
3680
3680
|
// @ts-ignore
|
|
3681
3681
|
// eslint-disable-next-line no-void
|
|
3682
|
-
setGlobalModel: (w,
|
|
3682
|
+
setGlobalModel: (w, u) => {
|
|
3683
3683
|
}
|
|
3684
3684
|
}), { pageMode: d } = N(ce, {
|
|
3685
3685
|
pageMode: "normal"
|
|
3686
|
-
}), c = (w = [],
|
|
3686
|
+
}), c = (w = [], u = !1) => {
|
|
3687
3687
|
let p;
|
|
3688
3688
|
if (e.dataFieldConfigType === "key") {
|
|
3689
|
-
const _ =
|
|
3689
|
+
const _ = u ? e.keyTypeDataFieldNames : null;
|
|
3690
3690
|
p = $e(w, _);
|
|
3691
3691
|
} else if (e.dataFieldConfigType === "value") {
|
|
3692
|
-
const _ =
|
|
3692
|
+
const _ = u ? e.valueTypeDataFieldNames : null;
|
|
3693
3693
|
p = Ye(w, _);
|
|
3694
3694
|
}
|
|
3695
3695
|
o.value = p.dimensions;
|
|
@@ -3721,8 +3721,8 @@ const tr = Q({
|
|
|
3721
3721
|
}
|
|
3722
3722
|
});
|
|
3723
3723
|
t.value = O;
|
|
3724
|
-
}, g = (w = [],
|
|
3725
|
-
const O = $e(w, p ?
|
|
3724
|
+
}, g = (w = [], u, p = !1) => {
|
|
3725
|
+
const O = $e(w, p ? u : null);
|
|
3726
3726
|
o.value = O.dimensions;
|
|
3727
3727
|
const C = O.dataset, _ = [], U = C.length;
|
|
3728
3728
|
for (let H = 0; H < U; H++)
|
|
@@ -3743,29 +3743,29 @@ const tr = Q({
|
|
|
3743
3743
|
immediate: !0,
|
|
3744
3744
|
deep: !0
|
|
3745
3745
|
});
|
|
3746
|
-
const h = I(!1), m = Ae(e),
|
|
3747
|
-
var w,
|
|
3746
|
+
const h = I(!1), m = Ae(e), f = async () => {
|
|
3747
|
+
var w, u;
|
|
3748
3748
|
if (!(e.dataType !== "request" || k(d) === "design"))
|
|
3749
3749
|
try {
|
|
3750
3750
|
h.value = !0;
|
|
3751
3751
|
const p = await m();
|
|
3752
|
-
c((
|
|
3752
|
+
c((u = (w = p == null ? void 0 : p.data) == null ? void 0 : w.data) == null ? void 0 : u.rows, !0);
|
|
3753
3753
|
} catch (p) {
|
|
3754
3754
|
console.error(p);
|
|
3755
3755
|
} finally {
|
|
3756
3756
|
h.value = !1;
|
|
3757
3757
|
}
|
|
3758
3758
|
}, v = fe(e)("click", (w) => {
|
|
3759
|
-
const
|
|
3760
|
-
l(e.id, { ...
|
|
3759
|
+
const u = s(e.id);
|
|
3760
|
+
l(e.id, { ...u, RECORD: w == null ? void 0 : w.data });
|
|
3761
3761
|
}), b = Nt(e), A = async () => {
|
|
3762
|
-
var w,
|
|
3762
|
+
var w, u, p, T, O;
|
|
3763
3763
|
if (!(e.dataType !== "indicator" || k(d) === "design"))
|
|
3764
3764
|
try {
|
|
3765
3765
|
h.value = !0;
|
|
3766
3766
|
const C = await b();
|
|
3767
3767
|
let _;
|
|
3768
|
-
((p = (
|
|
3768
|
+
((p = (u = (w = C == null ? void 0 : C.data) == null ? void 0 : w.data) == null ? void 0 : u.columns) == null ? void 0 : p.length) > 0 && (_ = {
|
|
3769
3769
|
name: C.data.data.columns[0],
|
|
3770
3770
|
types: C.data.data.columns.slice(1).map((U) => ({ label: U, value: U }))
|
|
3771
3771
|
}), g((O = (T = C == null ? void 0 : C.data) == null ? void 0 : T.data) == null ? void 0 : O.rows, _, !0);
|
|
@@ -3775,22 +3775,22 @@ const tr = Q({
|
|
|
3775
3775
|
h.value = !1;
|
|
3776
3776
|
}
|
|
3777
3777
|
}, x = () => {
|
|
3778
|
-
k(d) !== "design" && (A(),
|
|
3778
|
+
k(d) !== "design" && (A(), f());
|
|
3779
3779
|
};
|
|
3780
3780
|
he(e, {
|
|
3781
3781
|
refreshData: () => {
|
|
3782
3782
|
x();
|
|
3783
3783
|
},
|
|
3784
3784
|
resetRecord: () => {
|
|
3785
|
-
const w = e.id,
|
|
3786
|
-
l(w, { ...
|
|
3785
|
+
const w = e.id, u = s(w);
|
|
3786
|
+
l(w, { ...u, RECORD: "" });
|
|
3787
3787
|
},
|
|
3788
3788
|
click: v
|
|
3789
3789
|
});
|
|
3790
3790
|
const { setRequest: L } = N(Ce, {
|
|
3791
3791
|
// @ts-ignore
|
|
3792
3792
|
// eslint-disable-next-line no-void
|
|
3793
|
-
setRequest: ({ id: w, sortNum:
|
|
3793
|
+
setRequest: ({ id: w, sortNum: u, requestFn: p }) => {
|
|
3794
3794
|
}
|
|
3795
3795
|
});
|
|
3796
3796
|
return L({
|
|
@@ -3961,10 +3961,10 @@ const ir = Q({
|
|
|
3961
3961
|
const t = ie(e), o = I([]), a = I(!1), r = () => {
|
|
3962
3962
|
a.value = !1;
|
|
3963
3963
|
}, i = q(() => {
|
|
3964
|
-
const
|
|
3964
|
+
const u = k(o), p = u.length, T = [];
|
|
3965
3965
|
for (let O = 0; O < p; O++) {
|
|
3966
3966
|
const C = {
|
|
3967
|
-
...
|
|
3967
|
+
...u[O],
|
|
3968
3968
|
type: "bar",
|
|
3969
3969
|
barWidth: e.barWidth
|
|
3970
3970
|
};
|
|
@@ -3977,7 +3977,7 @@ const ir = Q({
|
|
|
3977
3977
|
}
|
|
3978
3978
|
return T;
|
|
3979
3979
|
}), s = I([]), l = I(!1), d = q(() => {
|
|
3980
|
-
const
|
|
3980
|
+
const u = e.yAxisLabelFormatter, p = e.xAxisLabelFormatter;
|
|
3981
3981
|
return {
|
|
3982
3982
|
toolbox: {
|
|
3983
3983
|
show: e.toolboxShow,
|
|
@@ -4119,7 +4119,7 @@ const ir = Q({
|
|
|
4119
4119
|
width: e.yAxisLabelWidth,
|
|
4120
4120
|
overflow: e.yAxisLabelOverflow,
|
|
4121
4121
|
formatter(T) {
|
|
4122
|
-
return De(
|
|
4122
|
+
return De(u, T);
|
|
4123
4123
|
}
|
|
4124
4124
|
},
|
|
4125
4125
|
axisLine: {
|
|
@@ -4132,42 +4132,42 @@ const ir = Q({
|
|
|
4132
4132
|
};
|
|
4133
4133
|
}), { pageMode: c } = N(ce, {
|
|
4134
4134
|
pageMode: "normal"
|
|
4135
|
-
}), g = (
|
|
4135
|
+
}), g = (u = [], p = !1) => {
|
|
4136
4136
|
let T = {};
|
|
4137
4137
|
if (e.dataFieldConfigType === "key") {
|
|
4138
4138
|
const O = p ? e.keyTypeDataFieldNames : null;
|
|
4139
|
-
T = $e(
|
|
4139
|
+
T = $e(u, O);
|
|
4140
4140
|
} else if (e.dataFieldConfigType === "value") {
|
|
4141
4141
|
const O = p ? e.valueTypeDataFieldNames : null;
|
|
4142
|
-
T = Ye(
|
|
4142
|
+
T = Ye(u, O);
|
|
4143
4143
|
}
|
|
4144
4144
|
o.value = T.dataset, s.value = T.dimensions;
|
|
4145
|
-
}, h = (
|
|
4146
|
-
const C = $e(
|
|
4145
|
+
}, h = (u = [], p, T = !1) => {
|
|
4146
|
+
const C = $e(u, T ? p : null);
|
|
4147
4147
|
o.value = C.dataset, s.value = C.dimensions;
|
|
4148
4148
|
};
|
|
4149
|
-
ne(() => e.data, (
|
|
4150
|
-
(e.dataType === "static" || k(c) === "design") && g(
|
|
4149
|
+
ne(() => e.data, (u) => {
|
|
4150
|
+
(e.dataType === "static" || k(c) === "design") && g(u);
|
|
4151
4151
|
}, {
|
|
4152
4152
|
immediate: !0,
|
|
4153
4153
|
deep: !0
|
|
4154
4154
|
});
|
|
4155
|
-
const m = Ae(e),
|
|
4156
|
-
var
|
|
4155
|
+
const m = Ae(e), f = async () => {
|
|
4156
|
+
var u, p;
|
|
4157
4157
|
try {
|
|
4158
4158
|
l.value = !0;
|
|
4159
4159
|
const T = await m();
|
|
4160
|
-
g((p = (
|
|
4160
|
+
g((p = (u = T == null ? void 0 : T.data) == null ? void 0 : u.data) == null ? void 0 : p.rows, !0);
|
|
4161
4161
|
} catch (T) {
|
|
4162
4162
|
console.error(T);
|
|
4163
4163
|
} finally {
|
|
4164
4164
|
l.value = !1;
|
|
4165
4165
|
}
|
|
4166
4166
|
}, y = En(e), v = async () => {
|
|
4167
|
-
var
|
|
4167
|
+
var u;
|
|
4168
4168
|
try {
|
|
4169
4169
|
l.value = !0;
|
|
4170
|
-
const p = await y(), { columns: T = [], rows: O = [] } = ((
|
|
4170
|
+
const p = await y(), { columns: T = [], rows: O = [] } = ((u = p == null ? void 0 : p.data) == null ? void 0 : u.data) ?? {};
|
|
4171
4171
|
let C;
|
|
4172
4172
|
T.length > 0 && (C = {
|
|
4173
4173
|
name: T[0],
|
|
@@ -4188,7 +4188,7 @@ const ir = Q({
|
|
|
4188
4188
|
v();
|
|
4189
4189
|
break;
|
|
4190
4190
|
case "request":
|
|
4191
|
-
|
|
4191
|
+
f();
|
|
4192
4192
|
break;
|
|
4193
4193
|
}
|
|
4194
4194
|
};
|
|
@@ -4198,19 +4198,19 @@ const ir = Q({
|
|
|
4198
4198
|
const A = fe(e), { getGlobalModel: x, setGlobalModel: B } = N(ue, {
|
|
4199
4199
|
// @ts-ignore
|
|
4200
4200
|
// eslint-disable-next-line no-void
|
|
4201
|
-
getGlobalModel: (
|
|
4201
|
+
getGlobalModel: (u) => {
|
|
4202
4202
|
},
|
|
4203
4203
|
// @ts-ignore
|
|
4204
4204
|
// eslint-disable-next-line no-void
|
|
4205
|
-
setGlobalModel: (
|
|
4205
|
+
setGlobalModel: (u, p) => {
|
|
4206
4206
|
}
|
|
4207
|
-
}), S = A("click", (
|
|
4207
|
+
}), S = A("click", (u) => {
|
|
4208
4208
|
const p = x(e.id);
|
|
4209
|
-
B(e.id, { ...p, RECORD:
|
|
4209
|
+
B(e.id, { ...p, RECORD: u.data });
|
|
4210
4210
|
}), { setRequest: L } = N(Ce, {
|
|
4211
4211
|
// @ts-ignore
|
|
4212
4212
|
// eslint-disable-next-line no-void
|
|
4213
|
-
setRequest: ({ id:
|
|
4213
|
+
setRequest: ({ id: u, sortNum: p, requestFn: T }) => {
|
|
4214
4214
|
}
|
|
4215
4215
|
});
|
|
4216
4216
|
return L({
|
|
@@ -4221,8 +4221,8 @@ const ir = Q({
|
|
|
4221
4221
|
refreshData: b,
|
|
4222
4222
|
click: S,
|
|
4223
4223
|
resetRecord: () => {
|
|
4224
|
-
const
|
|
4225
|
-
B(
|
|
4224
|
+
const u = e.id, p = x(u);
|
|
4225
|
+
B(u, { ...p, RECORD: "" });
|
|
4226
4226
|
}
|
|
4227
4227
|
}), {
|
|
4228
4228
|
option: d,
|
|
@@ -4451,13 +4451,13 @@ const ur = Q({
|
|
|
4451
4451
|
trigger: e.tooltipTrigger,
|
|
4452
4452
|
formatter: function(x) {
|
|
4453
4453
|
var p;
|
|
4454
|
-
const { marker: B, seriesName: S } = x, L = ((p = x == null ? void 0 : x.data) == null ? void 0 : p.record) ?? {}, { name: w, value:
|
|
4454
|
+
const { marker: B, seriesName: S } = x, L = ((p = x == null ? void 0 : x.data) == null ? void 0 : p.record) ?? {}, { name: w, value: u } = L;
|
|
4455
4455
|
return de(e.tooltipFormatter, {
|
|
4456
4456
|
marker: B,
|
|
4457
4457
|
seriesName: S,
|
|
4458
4458
|
a: S,
|
|
4459
4459
|
b: w,
|
|
4460
|
-
c:
|
|
4460
|
+
c: u,
|
|
4461
4461
|
...L
|
|
4462
4462
|
});
|
|
4463
4463
|
},
|
|
@@ -4514,7 +4514,7 @@ const ur = Q({
|
|
|
4514
4514
|
c.value = !1;
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
4517
|
-
},
|
|
4517
|
+
}, f = fe(e)("click", (b) => {
|
|
4518
4518
|
const A = e.id, x = i(A);
|
|
4519
4519
|
s(A, { ...x, RECORD: b == null ? void 0 : b.data });
|
|
4520
4520
|
});
|
|
@@ -4522,7 +4522,7 @@ const ur = Q({
|
|
|
4522
4522
|
refreshData: () => {
|
|
4523
4523
|
h();
|
|
4524
4524
|
},
|
|
4525
|
-
click:
|
|
4525
|
+
click: f
|
|
4526
4526
|
});
|
|
4527
4527
|
const { setRequest: v } = N(Ce, {
|
|
4528
4528
|
// @ts-ignore
|
|
@@ -4537,7 +4537,7 @@ const ur = Q({
|
|
|
4537
4537
|
}), {
|
|
4538
4538
|
option: r,
|
|
4539
4539
|
style: n,
|
|
4540
|
-
click:
|
|
4540
|
+
click: f,
|
|
4541
4541
|
loading: c,
|
|
4542
4542
|
visible: o,
|
|
4543
4543
|
hideModal: a
|
|
@@ -4819,13 +4819,13 @@ const Cr = Q({
|
|
|
4819
4819
|
tooltip: {
|
|
4820
4820
|
trigger: "axis",
|
|
4821
4821
|
show: e.tooltipShow,
|
|
4822
|
-
formatter: (
|
|
4823
|
-
const p =
|
|
4822
|
+
formatter: (u) => {
|
|
4823
|
+
const p = u.length;
|
|
4824
4824
|
let T = "", O = e.tooltipFormatter;
|
|
4825
4825
|
O === "" && (O = "{marker} {a} {c}");
|
|
4826
4826
|
const C = e.seriesTypes;
|
|
4827
4827
|
for (let _ = 0; _ < p; _++) {
|
|
4828
|
-
const U = C[_], { tooltipFormatter: H } = U || {}, { marker: F, seriesName: $, name: z, value: W, data: ee } =
|
|
4828
|
+
const U = C[_], { tooltipFormatter: H } = U || {}, { marker: F, seriesName: $, name: z, value: W, data: ee } = u[_] || {};
|
|
4829
4829
|
_ === 0 && (T += `${z}<br/>`), T += de(
|
|
4830
4830
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4831
4831
|
H || O,
|
|
@@ -4877,14 +4877,14 @@ const Cr = Q({
|
|
|
4877
4877
|
series: k(t)
|
|
4878
4878
|
})), { pageMode: s } = N(ce, {
|
|
4879
4879
|
pageMode: "normal"
|
|
4880
|
-
}), l = (
|
|
4880
|
+
}), l = (u = [], p = !1) => {
|
|
4881
4881
|
let T;
|
|
4882
4882
|
if (e.dataFieldConfigType === "key") {
|
|
4883
4883
|
const H = p ? e.keyTypeDataFieldNames : null;
|
|
4884
|
-
T = $e(
|
|
4884
|
+
T = $e(u, H);
|
|
4885
4885
|
} else if (e.dataFieldConfigType === "value") {
|
|
4886
4886
|
const H = p ? e.valueTypeDataFieldNames : null;
|
|
4887
|
-
T = Ye(
|
|
4887
|
+
T = Ye(u, H);
|
|
4888
4888
|
}
|
|
4889
4889
|
o.value = T.dimensions;
|
|
4890
4890
|
const O = T.dataset, C = [], _ = O.length, U = e.seriesTypes;
|
|
@@ -4911,8 +4911,8 @@ const Cr = Q({
|
|
|
4911
4911
|
}), C.push(W);
|
|
4912
4912
|
}
|
|
4913
4913
|
t.value = C;
|
|
4914
|
-
}, d = (
|
|
4915
|
-
const C = $e(
|
|
4914
|
+
}, d = (u = [], p, T = !1) => {
|
|
4915
|
+
const C = $e(u, T ? p : null);
|
|
4916
4916
|
o.value = C.dimensions;
|
|
4917
4917
|
const _ = C.dataset, U = [], H = _.length, F = e.seriesTypes;
|
|
4918
4918
|
for (let $ = 0; $ < H; $++) {
|
|
@@ -4925,15 +4925,15 @@ const Cr = Q({
|
|
|
4925
4925
|
}
|
|
4926
4926
|
t.value = U;
|
|
4927
4927
|
};
|
|
4928
|
-
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([
|
|
4929
|
-
(e.dataType === "static" || k(s) === "design") && l(
|
|
4928
|
+
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([u]) => {
|
|
4929
|
+
(e.dataType === "static" || k(s) === "design") && l(u);
|
|
4930
4930
|
}, {
|
|
4931
4931
|
immediate: !0,
|
|
4932
4932
|
deep: !0
|
|
4933
4933
|
});
|
|
4934
4934
|
const c = q(() => {
|
|
4935
|
-
const
|
|
4936
|
-
return
|
|
4935
|
+
const u = e.yAxis;
|
|
4936
|
+
return u == null ? void 0 : u.map((p) => ({
|
|
4937
4937
|
type: "value",
|
|
4938
4938
|
minInterval: e.yAxisMinInterval,
|
|
4939
4939
|
splitLine: {
|
|
@@ -4955,25 +4955,25 @@ const Cr = Q({
|
|
|
4955
4955
|
}
|
|
4956
4956
|
}));
|
|
4957
4957
|
}), g = I(!1), h = Ae(e), m = async () => {
|
|
4958
|
-
var
|
|
4958
|
+
var u, p;
|
|
4959
4959
|
if (!(e.dataType !== "request" || k(s) === "design"))
|
|
4960
4960
|
try {
|
|
4961
4961
|
g.value = !0;
|
|
4962
4962
|
const T = await h();
|
|
4963
|
-
l((p = (
|
|
4963
|
+
l((p = (u = T == null ? void 0 : T.data) == null ? void 0 : u.data) == null ? void 0 : p.rows, !0);
|
|
4964
4964
|
} catch (T) {
|
|
4965
4965
|
console.error(T);
|
|
4966
4966
|
} finally {
|
|
4967
4967
|
g.value = !1;
|
|
4968
4968
|
}
|
|
4969
|
-
},
|
|
4970
|
-
var
|
|
4969
|
+
}, f = Nt(e), y = async () => {
|
|
4970
|
+
var u, p, T, O, C;
|
|
4971
4971
|
if (!(e.dataType !== "indicator" || k(s) === "design"))
|
|
4972
4972
|
try {
|
|
4973
4973
|
g.value = !0;
|
|
4974
|
-
const _ = await
|
|
4974
|
+
const _ = await f();
|
|
4975
4975
|
let U;
|
|
4976
|
-
((T = (p = (
|
|
4976
|
+
((T = (p = (u = _ == null ? void 0 : _.data) == null ? void 0 : u.data) == null ? void 0 : p.columns) == null ? void 0 : T.length) > 0 && (U = {
|
|
4977
4977
|
name: _.data.data.columns[0],
|
|
4978
4978
|
types: _.data.data.columns.slice(1).map((H) => ({ label: H, value: H }))
|
|
4979
4979
|
}), d((C = (O = _ == null ? void 0 : _.data) == null ? void 0 : O.data) == null ? void 0 : C.rows, U, !0);
|
|
@@ -4989,19 +4989,19 @@ const Cr = Q({
|
|
|
4989
4989
|
}, A = fe(e), { getGlobalModel: x, setGlobalModel: B } = N(ue, {
|
|
4990
4990
|
// @ts-ignore
|
|
4991
4991
|
// eslint-disable-next-line no-void
|
|
4992
|
-
getGlobalModel: (
|
|
4992
|
+
getGlobalModel: (u) => {
|
|
4993
4993
|
},
|
|
4994
4994
|
// @ts-ignore
|
|
4995
4995
|
// eslint-disable-next-line no-void
|
|
4996
|
-
setGlobalModel: (
|
|
4996
|
+
setGlobalModel: (u, p) => {
|
|
4997
4997
|
}
|
|
4998
|
-
}), S = A("click", (
|
|
4998
|
+
}), S = A("click", (u) => {
|
|
4999
4999
|
const p = x(e.id);
|
|
5000
|
-
B(e.id, { ...p, RECORD:
|
|
5000
|
+
B(e.id, { ...p, RECORD: u == null ? void 0 : u.data });
|
|
5001
5001
|
}), { setRequest: L } = N(Ce, {
|
|
5002
5002
|
// @ts-ignore
|
|
5003
5003
|
// eslint-disable-next-line no-void
|
|
5004
|
-
setRequest: ({ id:
|
|
5004
|
+
setRequest: ({ id: u, sortNum: p, requestFn: T }) => {
|
|
5005
5005
|
}
|
|
5006
5006
|
});
|
|
5007
5007
|
return L({
|
|
@@ -5010,8 +5010,8 @@ const Cr = Q({
|
|
|
5010
5010
|
sortNum: e.requestSort
|
|
5011
5011
|
}), he(e, {
|
|
5012
5012
|
resetRecord: () => {
|
|
5013
|
-
const
|
|
5014
|
-
B(
|
|
5013
|
+
const u = e.id, p = x(u);
|
|
5014
|
+
B(u, { ...p, RECORD: "" });
|
|
5015
5015
|
},
|
|
5016
5016
|
refreshData: b,
|
|
5017
5017
|
click: S
|
|
@@ -5218,7 +5218,7 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5218
5218
|
bottom: "bottom"
|
|
5219
5219
|
}[z]
|
|
5220
5220
|
};
|
|
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({}),
|
|
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({}), f = I(!1), y = I();
|
|
5222
5222
|
let v;
|
|
5223
5223
|
const b = () => {
|
|
5224
5224
|
d.value = parseFloat(o) / parseFloat(r);
|
|
@@ -5249,12 +5249,12 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5249
5249
|
}
|
|
5250
5250
|
}), w = () => {
|
|
5251
5251
|
S.value = !0;
|
|
5252
|
-
},
|
|
5252
|
+
}, u = () => {
|
|
5253
5253
|
S.value = !1;
|
|
5254
5254
|
}, p = () => {
|
|
5255
|
-
|
|
5255
|
+
u();
|
|
5256
5256
|
}, T = () => {
|
|
5257
|
-
|
|
5257
|
+
u();
|
|
5258
5258
|
}, { setModalModel: O, pushUseModalIds: C, popUseModalIds: _ } = N(Ln, {
|
|
5259
5259
|
pushUseModalIds: (z) => {
|
|
5260
5260
|
},
|
|
@@ -5269,8 +5269,8 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5269
5269
|
Array.isArray(ee) && (W = ee.map((se) => se.id), O(z, [...new Set(W)]));
|
|
5270
5270
|
};
|
|
5271
5271
|
ne(() => S.value, async (z) => {
|
|
5272
|
-
z ? (
|
|
5273
|
-
b(), window.addEventListener("resize", A), x(),
|
|
5272
|
+
z ? (f.value = !1, C(e.id), U(), await ft(() => {
|
|
5273
|
+
b(), window.addEventListener("resize", A), x(), f.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(() => {
|
|
@@ -5294,7 +5294,7 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5294
5294
|
onCancel: T,
|
|
5295
5295
|
isFullWidth: H,
|
|
5296
5296
|
wrapClassName: $,
|
|
5297
|
-
ready:
|
|
5297
|
+
ready: f
|
|
5298
5298
|
};
|
|
5299
5299
|
}
|
|
5300
5300
|
});
|
|
@@ -5366,7 +5366,7 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-2db14456
|
|
|
5366
5366
|
value: "",
|
|
5367
5367
|
activeKey: 0,
|
|
5368
5368
|
autoSwitch: !1,
|
|
5369
|
-
autoSwitchInterval:
|
|
5369
|
+
autoSwitchInterval: 5,
|
|
5370
5370
|
contains: [],
|
|
5371
5371
|
tabFlexDirection: "row",
|
|
5372
5372
|
data: [
|
|
@@ -5388,10 +5388,9 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-2db14456
|
|
|
5388
5388
|
...vo
|
|
5389
5389
|
},
|
|
5390
5390
|
setup(e) {
|
|
5391
|
-
var m;
|
|
5392
5391
|
const n = ie(e), t = I(0);
|
|
5393
|
-
ne(() => e.activeKey, (
|
|
5394
|
-
t.value =
|
|
5392
|
+
ne(() => e.activeKey, (m) => {
|
|
5393
|
+
t.value = m;
|
|
5395
5394
|
}, {
|
|
5396
5395
|
immediate: !0
|
|
5397
5396
|
});
|
|
@@ -5400,10 +5399,10 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-2db14456
|
|
|
5400
5399
|
});
|
|
5401
5400
|
let a = null;
|
|
5402
5401
|
const r = () => {
|
|
5403
|
-
const
|
|
5404
|
-
e.autoSwitch &&
|
|
5405
|
-
const
|
|
5406
|
-
|
|
5402
|
+
const m = Array.isArray(k(i)) ? k(i).length - 1 : 0;
|
|
5403
|
+
e.autoSwitch && m > 0 && (a = setInterval(() => {
|
|
5404
|
+
const f = k(t) + 1;
|
|
5405
|
+
f <= m ? t.value = f : t.value = 0, s.value = k(i)[k(t)], g();
|
|
5407
5406
|
}, e.autoSwitchInterval * 1e3));
|
|
5408
5407
|
};
|
|
5409
5408
|
Ne(() => {
|
|
@@ -5411,36 +5410,36 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-2db14456
|
|
|
5411
5410
|
}), Tt(() => {
|
|
5412
5411
|
clearInterval(a);
|
|
5413
5412
|
});
|
|
5414
|
-
const i = I([]);
|
|
5415
|
-
ne(() => e.data, (
|
|
5416
|
-
i.value =
|
|
5413
|
+
const i = I([]), s = I({});
|
|
5414
|
+
ne(() => e.data, (m) => {
|
|
5415
|
+
i.value = m, s.value = Array.isArray(m) && m.length > 0 ? m[0] : {};
|
|
5417
5416
|
}, {
|
|
5418
5417
|
immediate: !0,
|
|
5419
5418
|
deep: !0
|
|
5420
5419
|
});
|
|
5421
|
-
const
|
|
5420
|
+
const l = (m) => t.value === m, d = fe(e), { setGlobalModel: c } = N(ue, {
|
|
5422
5421
|
// @ts-ignore
|
|
5423
5422
|
// eslint-disable-next-line no-void
|
|
5424
|
-
setGlobalModel: (
|
|
5423
|
+
setGlobalModel: (m, f) => {
|
|
5425
5424
|
}
|
|
5426
5425
|
});
|
|
5427
5426
|
c(e.id, {
|
|
5428
|
-
value:
|
|
5427
|
+
value: s,
|
|
5429
5428
|
activeKey: t
|
|
5430
5429
|
});
|
|
5431
5430
|
const { emitRefreshPage: g } = N(Ze, {
|
|
5432
5431
|
// eslint-disable-next-line no-void
|
|
5433
5432
|
emitRefreshPage: () => {
|
|
5434
5433
|
}
|
|
5435
|
-
}), h = d("tabChange", (
|
|
5436
|
-
|
|
5434
|
+
}), h = d("tabChange", (m, f) => {
|
|
5435
|
+
f !== k(t) && (s.value = m, t.value = f, g());
|
|
5437
5436
|
});
|
|
5438
5437
|
return he(e, {
|
|
5439
5438
|
tabChange: h
|
|
5440
5439
|
}), {
|
|
5441
5440
|
style: n,
|
|
5442
5441
|
activeKey: t,
|
|
5443
|
-
isActive:
|
|
5442
|
+
isActive: l,
|
|
5444
5443
|
tabChange: h,
|
|
5445
5444
|
myData: i,
|
|
5446
5445
|
useImagePath: Re
|
|
@@ -5485,7 +5484,7 @@ function es(e, n, t, o, a, r) {
|
|
|
5485
5484
|
], 4)
|
|
5486
5485
|
], 4);
|
|
5487
5486
|
}
|
|
5488
|
-
const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-
|
|
5487
|
+
const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-a2045b93"]]), ns = oe(ts), po = {
|
|
5489
5488
|
...re,
|
|
5490
5489
|
name: "图片",
|
|
5491
5490
|
keyName: "图片",
|
|
@@ -5681,7 +5680,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5681
5680
|
default:
|
|
5682
5681
|
return 55;
|
|
5683
5682
|
}
|
|
5684
|
-
}), a = q(() => e.scrollX), r = q(() => parseFloat(e.height) - k(o)), i = I([]), s = I([]), l = I([]), d = I([]), c = I(0), g = I(1), h = q(() => e.paginationPageSize), m = Do([]),
|
|
5683
|
+
}), a = q(() => e.scrollX), r = q(() => parseFloat(e.height) - k(o)), i = I([]), s = I([]), l = I([]), d = I([]), c = I(0), g = I(1), h = q(() => e.paginationPageSize), m = Do([]), f = (M = []) => {
|
|
5685
5684
|
if (Array.isArray(M) && M.length > 0) {
|
|
5686
5685
|
const D = M.length, V = e.columnsFixedNum;
|
|
5687
5686
|
for (let J = 0; J < D; J++) {
|
|
@@ -5724,7 +5723,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5724
5723
|
...je
|
|
5725
5724
|
}, H($t, { ...Io, RECORD: je });
|
|
5726
5725
|
})
|
|
5727
|
-
}), Array.isArray(P.children) &&
|
|
5726
|
+
}), Array.isArray(P.children) && f(P.children);
|
|
5728
5727
|
}
|
|
5729
5728
|
}
|
|
5730
5729
|
}, y = (M = []) => (e.isUseSeq && M.unshift({
|
|
@@ -5735,7 +5734,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5735
5734
|
title: "操作",
|
|
5736
5735
|
dataIndex: "ACTION",
|
|
5737
5736
|
width: e.actionColumnWidth
|
|
5738
|
-
}),
|
|
5737
|
+
}), f(M), M);
|
|
5739
5738
|
ne(() => [
|
|
5740
5739
|
e.columns,
|
|
5741
5740
|
e.isUseSeq,
|
|
@@ -5842,7 +5841,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5842
5841
|
J != null && le != null && (x.value = J + " " + le, g.value = 1);
|
|
5843
5842
|
}
|
|
5844
5843
|
se(!1);
|
|
5845
|
-
},
|
|
5844
|
+
}, u = q(() => {
|
|
5846
5845
|
const M = e.simple, D = [e.paginationPosition];
|
|
5847
5846
|
return e.paginationShow && {
|
|
5848
5847
|
simple: M,
|
|
@@ -5968,7 +5967,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5968
5967
|
y: r,
|
|
5969
5968
|
style: t,
|
|
5970
5969
|
customRow: ee,
|
|
5971
|
-
pagination:
|
|
5970
|
+
pagination: u,
|
|
5972
5971
|
formatFn: T,
|
|
5973
5972
|
contrastClass: O,
|
|
5974
5973
|
tableChange: w,
|
|
@@ -6037,7 +6036,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6037
6036
|
pagination: e.pagination,
|
|
6038
6037
|
onChange: e.tableChange
|
|
6039
6038
|
}, {
|
|
6040
|
-
customFilterDropdown: Y(({ column:
|
|
6039
|
+
customFilterDropdown: Y(({ column: f, selectedKeys: y, setSelectedKeys: v, confirm: b, clearFilters: A }) => [
|
|
6041
6040
|
X("div", {
|
|
6042
6041
|
class: "ecan-table-filter",
|
|
6043
6042
|
style: G({
|
|
@@ -6045,18 +6044,18 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6045
6044
|
})
|
|
6046
6045
|
}, [
|
|
6047
6046
|
j(i, {
|
|
6048
|
-
value:
|
|
6049
|
-
"onUpdate:value": (x) =>
|
|
6047
|
+
value: f.filterOptionsInputValue,
|
|
6048
|
+
"onUpdate:value": (x) => f.filterOptionsInputValue = x,
|
|
6050
6049
|
placeholder: "请输入关键字",
|
|
6051
6050
|
class: "filter-input",
|
|
6052
6051
|
onChange: e.onSearchFilterOptions
|
|
6053
6052
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
6054
6053
|
j(s, {
|
|
6055
|
-
value:
|
|
6056
|
-
"onUpdate:value": (x) =>
|
|
6054
|
+
value: f.filterCheckboxGroupValue,
|
|
6055
|
+
"onUpdate:value": (x) => f.filterCheckboxGroupValue = x,
|
|
6057
6056
|
class: "filter-checkbox",
|
|
6058
|
-
options: e.useFilterOptions(
|
|
6059
|
-
onChange: (x) => e.useSetSelectedKeys(v,
|
|
6057
|
+
options: e.useFilterOptions(f),
|
|
6058
|
+
onChange: (x) => e.useSetSelectedKeys(v, f)
|
|
6060
6059
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6061
6060
|
X("div", null, [
|
|
6062
6061
|
j(l, {
|
|
@@ -6073,7 +6072,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6073
6072
|
j(l, {
|
|
6074
6073
|
size: "small",
|
|
6075
6074
|
style: { width: "90px" },
|
|
6076
|
-
onClick: (x) => e.onResetFilter(A,
|
|
6075
|
+
onClick: (x) => e.onResetFilter(A, f)
|
|
6077
6076
|
}, {
|
|
6078
6077
|
default: Y(() => [
|
|
6079
6078
|
ys
|
|
@@ -6083,9 +6082,9 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6083
6082
|
])
|
|
6084
6083
|
], 4)
|
|
6085
6084
|
]),
|
|
6086
|
-
bodyCell: Y(({ column:
|
|
6087
|
-
|
|
6088
|
-
|
|
6085
|
+
bodyCell: Y(({ column: f, index: y, text: v, record: b }) => [
|
|
6086
|
+
f.dataIndex === "SEQ" ? (E(), R("span", bs, ye(y + 1), 1)) : pe("", !0),
|
|
6087
|
+
f.dataIndex === "ACTION" ? (E(), R("div", vs, [
|
|
6089
6088
|
(E(!0), R(Le, null, Me(e.actionList, (A, x) => (E(), R("div", {
|
|
6090
6089
|
class: "action",
|
|
6091
6090
|
key: x
|
|
@@ -6103,36 +6102,36 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6103
6102
|
]))), 128))
|
|
6104
6103
|
])) : (E(), R("div", {
|
|
6105
6104
|
key: 2,
|
|
6106
|
-
class: _t([e.contrastClass(v,
|
|
6105
|
+
class: _t([e.contrastClass(v, f.format)]),
|
|
6107
6106
|
style: G({
|
|
6108
6107
|
fontSize: e.fontSize,
|
|
6109
6108
|
fontWeight: e.fontWeight
|
|
6110
6109
|
})
|
|
6111
|
-
}, ye(
|
|
6110
|
+
}, ye(f.format != null ? e.formatFn(v, f.format) : v), 7))
|
|
6112
6111
|
]),
|
|
6113
6112
|
summary: Y(() => [
|
|
6114
6113
|
e.summaryList.length > 0 ? (E(), Fe(g, { key: 0 }, {
|
|
6115
6114
|
default: Y(() => [
|
|
6116
6115
|
j(c, null, {
|
|
6117
6116
|
default: Y(() => [
|
|
6118
|
-
(E(!0), R(Le, null, Me(e.summaryList, (
|
|
6117
|
+
(E(!0), R(Le, null, Me(e.summaryList, (f, y) => (E(), Fe(d, {
|
|
6119
6118
|
key: y,
|
|
6120
6119
|
index: y,
|
|
6121
6120
|
style: G({
|
|
6122
6121
|
backgroundColor: e.cellBackgroundColor,
|
|
6123
|
-
textAlign:
|
|
6124
|
-
color:
|
|
6122
|
+
textAlign: f.cellAlign || "center",
|
|
6123
|
+
color: f.cellColor,
|
|
6125
6124
|
borderBottomColor: e.borderColor
|
|
6126
6125
|
})
|
|
6127
6126
|
}, {
|
|
6128
6127
|
default: Y(() => [
|
|
6129
6128
|
X("div", {
|
|
6130
|
-
class: _t([e.contrastClass(
|
|
6129
|
+
class: _t([e.contrastClass(f.total, f.format)]),
|
|
6131
6130
|
style: G({
|
|
6132
6131
|
fontSize: e.fontSize,
|
|
6133
6132
|
fontWeight: e.fontWeight
|
|
6134
6133
|
})
|
|
6135
|
-
}, ye((
|
|
6134
|
+
}, ye((f.format != null || f.format !== "") && e.formatFn(f.total, f.format)), 7)
|
|
6136
6135
|
]),
|
|
6137
6136
|
_: 2
|
|
6138
6137
|
}, 1032, ["index", "style"]))), 128))
|