@ecan-bi/datav 1.1.52 → 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 +373 -375
- 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 +1 -1
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,32 +115,32 @@ 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) || {}
|
|
122
|
-
),
|
|
122
|
+
), b = q(() => va(n));
|
|
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
|
},
|
|
@@ -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: b,
|
|
197
197
|
...L
|
|
198
198
|
};
|
|
199
199
|
},
|
|
@@ -935,12 +935,12 @@ 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
|
-
var
|
|
940
|
+
var v = l ? {
|
|
941
941
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
942
942
|
transform: "rotate(".concat(l, "deg)")
|
|
943
|
-
} : void 0,
|
|
943
|
+
} : void 0, b = kn(c), A = il(b, 2), x = A[0], B = A[1];
|
|
944
944
|
return j("span", Kt({
|
|
945
945
|
role: "img",
|
|
946
946
|
"aria-label": i.name
|
|
@@ -948,11 +948,11 @@ 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,
|
|
955
|
-
style:
|
|
955
|
+
style: v
|
|
956
956
|
}, null)]);
|
|
957
957
|
};
|
|
958
958
|
Ue.props = {
|
|
@@ -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)
|
|
@@ -1297,16 +1297,16 @@ 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 v = {};
|
|
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,33 +1317,33 @@ 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;
|
|
1324
1324
|
} else
|
|
1325
|
-
typeof w == "string" && (
|
|
1326
|
-
}),
|
|
1327
|
-
let
|
|
1328
|
-
const A = Object.keys(
|
|
1325
|
+
typeof w == "string" && (v[L] = de(w));
|
|
1326
|
+
}), v = { ...window.config.requestParams, ...y, ...v };
|
|
1327
|
+
let b = "";
|
|
1328
|
+
const A = Object.keys(v), x = A.length - 1, B = A.length;
|
|
1329
1329
|
A.forEach((S, L) => {
|
|
1330
|
-
L === 0 ? B !== 1 ?
|
|
1330
|
+
L === 0 ? B !== 1 ? b += `?${S}=${v[S]}&` : b += `?${S}=${v[S]}` : L === x ? b += `${S}=${v[S]}` : b += `${S}=${v[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 + b : h,
|
|
1336
1336
|
method: o,
|
|
1337
1337
|
headers: a,
|
|
1338
|
-
data: S ? {} :
|
|
1338
|
+
data: S ? {} : v
|
|
1339
1339
|
});
|
|
1340
1340
|
return n(L), L;
|
|
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,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
|
|
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
|
-
A.push(
|
|
1368
|
+
A.push(b), r.set(y, A);
|
|
1369
1369
|
} else
|
|
1370
|
-
r.set(y, [
|
|
1370
|
+
r.set(y, [b]);
|
|
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:
|
|
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
|
|
1441
|
-
}, A = n(
|
|
1442
|
-
if (m === "the_date" ?
|
|
1443
|
-
|
|
1441
|
+
}, A = n(v) || {};
|
|
1442
|
+
if (m === "the_date" ? b.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(m) && (b.valueType = "TEXT"), A.type === "ecanDatePicker") {
|
|
1443
|
+
b.dateFormat = A.format;
|
|
1444
1444
|
const x = (c = k(A)) == null ? void 0 : c.value.format;
|
|
1445
|
-
typeof x == "function" && (
|
|
1445
|
+
typeof x == "function" && (b.fieldValue = x(A == null ? void 0 : A.format));
|
|
1446
1446
|
}
|
|
1447
|
-
d.push(
|
|
1447
|
+
d.push(b);
|
|
1448
1448
|
}
|
|
1449
1449
|
return d;
|
|
1450
1450
|
}, r = (l, d) => {
|
|
@@ -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,31 +1527,31 @@ 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++)
|
|
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 v = "SQL_VIEW", b = "", A = "", x = "";
|
|
1554
|
+
d.source === "INDICATOR_LIB" && (v = "INDICATOR_LIB", b = d.fixedDimSql, A = d.dataSourceId, x = d.idxLibMode);
|
|
1555
1555
|
const B = {
|
|
1556
1556
|
ecanBar: "bar",
|
|
1557
1557
|
ecanLine: "line",
|
|
@@ -1570,12 +1570,12 @@ 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,
|
|
1577
|
-
source:
|
|
1578
|
-
fixedDimSql:
|
|
1577
|
+
source: v,
|
|
1578
|
+
fixedDimSql: b,
|
|
1579
1579
|
dataSourceId: A,
|
|
1580
1580
|
idxLibMode: x
|
|
1581
1581
|
}, {
|
|
@@ -1634,10 +1634,10 @@ 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
|
-
formula:
|
|
1640
|
-
conditions:
|
|
1639
|
+
formula: v,
|
|
1640
|
+
conditions: b
|
|
1641
1641
|
} = i;
|
|
1642
1642
|
return {
|
|
1643
1643
|
label: s,
|
|
@@ -1648,10 +1648,10 @@ 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
|
-
formula:
|
|
1654
|
-
conditions:
|
|
1653
|
+
formula: v,
|
|
1654
|
+
conditions: b
|
|
1655
1655
|
};
|
|
1656
1656
|
}, { getGlobalModel: a } = N(ue, {
|
|
1657
1657
|
// @ts-ignore
|
|
@@ -1665,21 +1665,21 @@ 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
|
-
} = g,
|
|
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
|
|
1677
|
-
},
|
|
1678
|
-
if (In(
|
|
1679
|
-
const { value: A, format: x } =
|
|
1680
|
-
|
|
1677
|
+
}, b = a(h) || {};
|
|
1678
|
+
if (In(b.type, "date")) {
|
|
1679
|
+
const { value: A, format: x } = b || {};
|
|
1680
|
+
v.fieldValue = (d = k(A)) == null ? void 0 : d.format(x), v.dateFormat = x;
|
|
1681
1681
|
}
|
|
1682
|
-
l.push(
|
|
1682
|
+
l.push(v);
|
|
1683
1683
|
}
|
|
1684
1684
|
return l;
|
|
1685
1685
|
};
|
|
@@ -1693,10 +1693,10 @@ 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
|
-
queryColumnList:
|
|
1699
|
-
indicators:
|
|
1698
|
+
queryColumnList: v = [],
|
|
1699
|
+
indicators: b = [],
|
|
1700
1700
|
controlList: A = [],
|
|
1701
1701
|
dataSourceId: x,
|
|
1702
1702
|
idxLibMode: B,
|
|
@@ -1738,18 +1738,18 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1743
|
-
|
|
1741
|
+
const u = [];
|
|
1742
|
+
v == null || v.forEach((C) => {
|
|
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: '',
|
|
@@ -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, v = document.body.clientHeight, b = t.value || a.value, A = o.value || r.value, x = y / b, B = v / A;
|
|
1825
1825
|
s.value && (s.value.style.transform = `scale(${x}, ${B})`);
|
|
1826
1826
|
}, h = Et(async () => {
|
|
1827
1827
|
await d(), g();
|
|
@@ -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,21 +1903,21 @@ 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
|
-
const
|
|
1916
|
-
A.add(F),
|
|
1915
|
+
const b = na(), A = /* @__PURE__ */ new Set(), x = (F, $) => {
|
|
1916
|
+
A.add(F), b.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), b.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
|
+
b.emit(ee, $);
|
|
1937
1937
|
});
|
|
1938
1938
|
} else
|
|
1939
|
-
|
|
1939
|
+
b.emit(F, $);
|
|
1940
1940
|
}
|
|
1941
1941
|
});
|
|
1942
1942
|
const L = I(0);
|
|
@@ -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
|
});
|
|
@@ -2000,16 +2000,16 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
2000
2000
|
touchRequest: _
|
|
2001
2001
|
}), Oe(Ze, {
|
|
2002
2002
|
emitRefreshPage: () => {
|
|
2003
|
-
|
|
2003
|
+
b.emit(Ze);
|
|
2004
2004
|
}
|
|
2005
2005
|
});
|
|
2006
2006
|
const H = (F) => {
|
|
2007
|
-
|
|
2008
|
-
|
|
2007
|
+
b.on(Ze, () => F()), Ne(() => {
|
|
2008
|
+
b.off(Ze);
|
|
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
|
|
2076
|
-
const
|
|
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);
|
|
@@ -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(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : S >= 0 ? (S = (S * 100).toFixed(2), m = m.replace(b, `<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(b, `<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(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}%</span>`))) : e.format === "money" ? (S = +S, isNaN(S) || (S = zt(S), m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : L === "thousands" ? (S = +S, isNaN(S) || (S = Tl(S), m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`);
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
return `<span>${m}</span>`;
|
|
@@ -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
|
-
const
|
|
2134
|
-
|
|
2133
|
+
const v = e.target;
|
|
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,29 +2263,29 @@ 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
|
|
2270
|
+
}[y](f) || "", r = (f, y) => {
|
|
2271
|
+
const v = parseFloat(f + "");
|
|
2272
2272
|
if (y !== "contrast")
|
|
2273
2273
|
return "";
|
|
2274
2274
|
switch (!0) {
|
|
2275
|
-
case
|
|
2275
|
+
case v >= 0:
|
|
2276
2276
|
return "goUp";
|
|
2277
|
-
case
|
|
2277
|
+
case v < 0:
|
|
2278
2278
|
return "goDown";
|
|
2279
2279
|
}
|
|
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
|
-
const
|
|
2459
|
-
let
|
|
2460
|
-
const A = new Set(Object.keys(
|
|
2461
|
-
for (let x = 0; x <
|
|
2462
|
-
const B =
|
|
2458
|
+
const v = e.text.match(/\{.+\}/g) || [];
|
|
2459
|
+
let b;
|
|
2460
|
+
const A = new Set(Object.keys(f));
|
|
2461
|
+
for (let x = 0; x < v.length; x++) {
|
|
2462
|
+
const B = v[x], S = B.slice(1, B.length - 1);
|
|
2463
2463
|
if (A.has(S)) {
|
|
2464
|
-
|
|
2464
|
+
b = f[S];
|
|
2465
2465
|
break;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
|
-
return typeof
|
|
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,
|
|
2475
|
-
for (let x = 0; x <
|
|
2476
|
-
const B =
|
|
2474
|
+
const y = e.variableDefaultValue, v = k(a), b = f.match(/\{.+\}/g) || [];
|
|
2475
|
+
for (let x = 0; x < b.length; x++) {
|
|
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":
|
|
@@ -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 = (v, b) => {
|
|
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 = b[A], L = b[x];
|
|
2760
|
+
return S != null ? B = S : L != null && (B = L), (B == null ? void 0 : B.toLowerCase().indexOf(v == null ? void 0 : v.toLowerCase())) >= 0;
|
|
2761
2761
|
}, d = I(!1), c = async () => {
|
|
2762
|
-
var
|
|
2762
|
+
var v, b;
|
|
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 = ((b = (v = A == null ? void 0 : A.data) == null ? void 0 : v.data) == null ? void 0 : b.rows) || [];
|
|
2768
2768
|
const x = k(r)[0];
|
|
2769
2769
|
e.value === "" && x != null && (i.value = x[s.value]);
|
|
2770
2770
|
} catch (A) {
|
|
@@ -2776,28 +2776,28 @@ 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: (v) => {
|
|
2780
2780
|
},
|
|
2781
2781
|
// @ts-ignore
|
|
2782
2782
|
// eslint-disable-next-line no-void
|
|
2783
|
-
setGlobalModel: (
|
|
2783
|
+
setGlobalModel: (v, b) => {
|
|
2784
2784
|
}
|
|
2785
2785
|
});
|
|
2786
2786
|
h(e.id, {
|
|
2787
2787
|
type: e.type,
|
|
2788
2788
|
value: i
|
|
2789
2789
|
});
|
|
2790
|
-
const
|
|
2791
|
-
const
|
|
2792
|
-
h(
|
|
2790
|
+
const f = fe(e)("selectChange", () => {
|
|
2791
|
+
const v = e.id, b = g(v);
|
|
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
|
|
2799
2799
|
// eslint-disable-next-line no-void
|
|
2800
|
-
setRequest: ({ id:
|
|
2800
|
+
setRequest: ({ id: v, sortNum: b, requestFn: A }) => {
|
|
2801
2801
|
}
|
|
2802
2802
|
});
|
|
2803
2803
|
return y({
|
|
@@ -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,19 +2862,19 @@ 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,
|
|
2866
|
-
let y = null,
|
|
2867
|
-
if (g && (y = Ie().subtract(h, m),
|
|
2868
|
-
const { type:
|
|
2869
|
-
switch (
|
|
2865
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, g, h, m, f]) => {
|
|
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))), f) {
|
|
2868
|
+
const { type: b, value: A, mode: x } = f;
|
|
2869
|
+
switch (b) {
|
|
2870
2870
|
case "add":
|
|
2871
|
-
y = y && y.add(A, x),
|
|
2871
|
+
y = y && y.add(A, x), v = v && v.add(A, x);
|
|
2872
2872
|
break;
|
|
2873
2873
|
case "minus":
|
|
2874
|
-
y = y && y.subtract(A, x),
|
|
2874
|
+
y = y && y.subtract(A, x), v = v && v.subtract(A, x);
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
|
-
o.value = [y,
|
|
2877
|
+
o.value = [y, v];
|
|
2878
2878
|
}, {
|
|
2879
2879
|
immediate: !0
|
|
2880
2880
|
});
|
|
@@ -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
|
-
m.forEach((
|
|
3027
|
-
|
|
3028
|
-
}), typeof
|
|
3026
|
+
m.forEach((v) => {
|
|
3027
|
+
v.checked && y.push(v.value);
|
|
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);
|
|
@@ -3036,11 +3036,11 @@ 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, 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,24 +3344,24 @@ 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
|
}
|
|
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
|
-
}),
|
|
3358
|
-
var L, w,
|
|
3357
|
+
}), v = Nt(e), b = async () => {
|
|
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
|
-
const C = await
|
|
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],
|
|
@@ -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" && (b(), m());
|
|
3379
3379
|
};
|
|
3380
3380
|
he(e, {
|
|
3381
3381
|
resetRecord: () => {
|
|
@@ -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
|
-
},
|
|
3759
|
-
const
|
|
3760
|
-
l(e.id, { ...
|
|
3761
|
-
}),
|
|
3762
|
-
var w,
|
|
3758
|
+
}, v = fe(e)("click", (w) => {
|
|
3759
|
+
const u = s(e.id);
|
|
3760
|
+
l(e.id, { ...u, RECORD: w == null ? void 0 : w.data });
|
|
3761
|
+
}), b = Nt(e), A = async () => {
|
|
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
|
-
const C = await
|
|
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
|
-
click:
|
|
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({
|
|
@@ -3800,7 +3800,7 @@ const tr = Q({
|
|
|
3800
3800
|
}), {
|
|
3801
3801
|
option: i,
|
|
3802
3802
|
style: n,
|
|
3803
|
-
click:
|
|
3803
|
+
click: v,
|
|
3804
3804
|
loading: h,
|
|
3805
3805
|
visible: a,
|
|
3806
3806
|
hideModal: r
|
|
@@ -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
|
-
}, y = En(e),
|
|
4167
|
-
var
|
|
4166
|
+
}, y = En(e), v = async () => {
|
|
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],
|
|
@@ -4181,53 +4181,53 @@ const ir = Q({
|
|
|
4181
4181
|
} finally {
|
|
4182
4182
|
l.value = !1;
|
|
4183
4183
|
}
|
|
4184
|
-
},
|
|
4184
|
+
}, b = () => {
|
|
4185
4185
|
if (k(c) !== "design")
|
|
4186
4186
|
switch (e.dataType) {
|
|
4187
4187
|
case "indicator":
|
|
4188
|
-
|
|
4188
|
+
v();
|
|
4189
4189
|
break;
|
|
4190
4190
|
case "request":
|
|
4191
|
-
|
|
4191
|
+
f();
|
|
4192
4192
|
break;
|
|
4193
4193
|
}
|
|
4194
4194
|
};
|
|
4195
4195
|
n({
|
|
4196
|
-
refreshData:
|
|
4196
|
+
refreshData: b
|
|
4197
4197
|
});
|
|
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({
|
|
4217
4217
|
id: e.id,
|
|
4218
|
-
requestFn:
|
|
4218
|
+
requestFn: b,
|
|
4219
4219
|
sortNum: e.requestSort
|
|
4220
4220
|
}), he(e, {
|
|
4221
|
-
refreshData:
|
|
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,
|
|
4229
4229
|
style: t,
|
|
4230
|
-
refreshData:
|
|
4230
|
+
refreshData: b,
|
|
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 b = 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(b, x);
|
|
4418
4418
|
}
|
|
4419
4419
|
},
|
|
4420
4420
|
axisLine: {
|
|
@@ -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
|
},
|
|
@@ -4483,61 +4483,61 @@ 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: (b) => {
|
|
4487
4487
|
},
|
|
4488
4488
|
// @ts-ignore
|
|
4489
4489
|
// eslint-disable-next-line no-void
|
|
4490
|
-
setGlobalModel: (
|
|
4490
|
+
setGlobalModel: (b, A) => {
|
|
4491
4491
|
}
|
|
4492
4492
|
}), { pageMode: l } = N(ce, {
|
|
4493
4493
|
pageMode: "normal"
|
|
4494
|
-
}), d = (
|
|
4494
|
+
}), d = (b = [], A) => {
|
|
4495
4495
|
const { name: x = "name", value: B = "value" } = A || {};
|
|
4496
|
-
t.value =
|
|
4496
|
+
t.value = b.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, (b) => {
|
|
4499
|
+
(e.dataType === "static" || k(l) === "design") && d(b);
|
|
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 b, 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 = (b = x == null ? void 0 : x.data) == null ? void 0 : b.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
|
-
},
|
|
4517
|
+
}, f = fe(e)("click", (b) => {
|
|
4518
4518
|
const A = e.id, x = i(A);
|
|
4519
|
-
s(A, { ...x, RECORD:
|
|
4519
|
+
s(A, { ...x, RECORD: b == null ? void 0 : b.data });
|
|
4520
4520
|
});
|
|
4521
4521
|
he(e, {
|
|
4522
4522
|
refreshData: () => {
|
|
4523
4523
|
h();
|
|
4524
4524
|
},
|
|
4525
|
-
click:
|
|
4525
|
+
click: f
|
|
4526
4526
|
});
|
|
4527
|
-
const { setRequest:
|
|
4527
|
+
const { setRequest: v } = N(Ce, {
|
|
4528
4528
|
// @ts-ignore
|
|
4529
4529
|
// eslint-disable-next-line no-void
|
|
4530
|
-
setRequest: ({ id:
|
|
4530
|
+
setRequest: ({ id: b, sortNum: A, requestFn: x }) => {
|
|
4531
4531
|
}
|
|
4532
4532
|
});
|
|
4533
|
-
return
|
|
4533
|
+
return v({
|
|
4534
4534
|
id: e.id,
|
|
4535
4535
|
requestFn: h,
|
|
4536
4536
|
sortNum: e.requestSort
|
|
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);
|
|
@@ -4982,38 +4982,38 @@ const Cr = Q({
|
|
|
4982
4982
|
} finally {
|
|
4983
4983
|
g.value = !1;
|
|
4984
4984
|
}
|
|
4985
|
-
}, b = () => {
|
|
4986
|
-
k(s) !== "design" && (y(), m());
|
|
4987
4985
|
}, v = () => {
|
|
4988
|
-
|
|
4986
|
+
k(s) !== "design" && (y(), m());
|
|
4987
|
+
}, b = () => {
|
|
4988
|
+
v();
|
|
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({
|
|
5008
5008
|
id: e.id,
|
|
5009
|
-
requestFn:
|
|
5009
|
+
requestFn: v,
|
|
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
|
-
refreshData:
|
|
5016
|
+
refreshData: b,
|
|
5017
5017
|
click: S
|
|
5018
5018
|
}), {
|
|
5019
5019
|
style: n,
|
|
@@ -5218,9 +5218,9 @@ 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({}),
|
|
5222
|
-
let
|
|
5223
|
-
const
|
|
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
|
+
let v;
|
|
5223
|
+
const b = () => {
|
|
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
|
+
b();
|
|
5236
5236
|
}, 100), x = () => {
|
|
5237
5237
|
const z = window.MutationObserver;
|
|
5238
|
-
|
|
5238
|
+
v = new z(A), v.observe(document.body, {
|
|
5239
5239
|
attributes: !0,
|
|
5240
5240
|
attributeFilter: ["style"],
|
|
5241
5241
|
attributeOldValue: !0
|
|
5242
5242
|
});
|
|
5243
5243
|
}, B = () => {
|
|
5244
|
-
|
|
5244
|
+
v && (v.disconnect(), v.takeRecords(), v = null);
|
|
5245
5245
|
}, S = I(!1), { touchRequest: L } = N(Ce, {
|
|
5246
5246
|
// @ts-ignore
|
|
5247
5247
|
// eslint-disable-next-line no-void
|
|
@@ -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
|
-
|
|
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,11 +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
|
-
|
|
5406
|
-
|
|
5407
|
-
y <= u ? (t.value = y, l.value = ((b = i[y]) == null ? void 0 : b.value) || "") : t.value = 0, g();
|
|
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();
|
|
5408
5406
|
}, e.autoSwitchInterval * 1e3));
|
|
5409
5407
|
};
|
|
5410
5408
|
Ne(() => {
|
|
@@ -5412,36 +5410,36 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-2db14456
|
|
|
5412
5410
|
}), Tt(() => {
|
|
5413
5411
|
clearInterval(a);
|
|
5414
5412
|
});
|
|
5415
|
-
const i = I([]);
|
|
5416
|
-
ne(() => e.data, (
|
|
5417
|
-
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] : {};
|
|
5418
5416
|
}, {
|
|
5419
5417
|
immediate: !0,
|
|
5420
5418
|
deep: !0
|
|
5421
5419
|
});
|
|
5422
|
-
const
|
|
5420
|
+
const l = (m) => t.value === m, d = fe(e), { setGlobalModel: c } = N(ue, {
|
|
5423
5421
|
// @ts-ignore
|
|
5424
5422
|
// eslint-disable-next-line no-void
|
|
5425
|
-
setGlobalModel: (
|
|
5423
|
+
setGlobalModel: (m, f) => {
|
|
5426
5424
|
}
|
|
5427
5425
|
});
|
|
5428
5426
|
c(e.id, {
|
|
5429
|
-
value:
|
|
5427
|
+
value: s,
|
|
5430
5428
|
activeKey: t
|
|
5431
5429
|
});
|
|
5432
5430
|
const { emitRefreshPage: g } = N(Ze, {
|
|
5433
5431
|
// eslint-disable-next-line no-void
|
|
5434
5432
|
emitRefreshPage: () => {
|
|
5435
5433
|
}
|
|
5436
|
-
}), h = d("tabChange", (
|
|
5437
|
-
|
|
5434
|
+
}), h = d("tabChange", (m, f) => {
|
|
5435
|
+
f !== k(t) && (s.value = m, t.value = f, g());
|
|
5438
5436
|
});
|
|
5439
5437
|
return he(e, {
|
|
5440
5438
|
tabChange: h
|
|
5441
5439
|
}), {
|
|
5442
5440
|
style: n,
|
|
5443
5441
|
activeKey: t,
|
|
5444
|
-
isActive:
|
|
5442
|
+
isActive: l,
|
|
5445
5443
|
tabChange: h,
|
|
5446
5444
|
myData: i,
|
|
5447
5445
|
useImagePath: Re
|
|
@@ -5486,7 +5484,7 @@ function es(e, n, t, o, a, r) {
|
|
|
5486
5484
|
], 4)
|
|
5487
5485
|
], 4);
|
|
5488
5486
|
}
|
|
5489
|
-
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 = {
|
|
5490
5488
|
...re,
|
|
5491
5489
|
name: "图片",
|
|
5492
5490
|
keyName: "图片",
|
|
@@ -5682,7 +5680,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5682
5680
|
default:
|
|
5683
5681
|
return 55;
|
|
5684
5682
|
}
|
|
5685
|
-
}), 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 = []) => {
|
|
5686
5684
|
if (Array.isArray(M) && M.length > 0) {
|
|
5687
5685
|
const D = M.length, V = e.columnsFixedNum;
|
|
5688
5686
|
for (let J = 0; J < D; J++) {
|
|
@@ -5725,7 +5723,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5725
5723
|
...je
|
|
5726
5724
|
}, H($t, { ...Io, RECORD: je });
|
|
5727
5725
|
})
|
|
5728
|
-
}), Array.isArray(P.children) &&
|
|
5726
|
+
}), Array.isArray(P.children) && f(P.children);
|
|
5729
5727
|
}
|
|
5730
5728
|
}
|
|
5731
5729
|
}, y = (M = []) => (e.isUseSeq && M.unshift({
|
|
@@ -5736,7 +5734,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5736
5734
|
title: "操作",
|
|
5737
5735
|
dataIndex: "ACTION",
|
|
5738
5736
|
width: e.actionColumnWidth
|
|
5739
|
-
}),
|
|
5737
|
+
}), f(M), M);
|
|
5740
5738
|
ne(() => [
|
|
5741
5739
|
e.columns,
|
|
5742
5740
|
e.isUseSeq,
|
|
@@ -5755,7 +5753,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5755
5753
|
}, {
|
|
5756
5754
|
immediate: !0
|
|
5757
5755
|
});
|
|
5758
|
-
const
|
|
5756
|
+
const v = I({}), b = (M) => {
|
|
5759
5757
|
if (Array.isArray(M)) {
|
|
5760
5758
|
const D = M.length, V = m, J = V.length, P = {};
|
|
5761
5759
|
for (let le = 0; le < D; le++) {
|
|
@@ -5776,12 +5774,12 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5776
5774
|
const me = P[le], be = Array.from(me);
|
|
5777
5775
|
te[le] = be.map((ge) => ({ label: ge, value: ge }));
|
|
5778
5776
|
}
|
|
5779
|
-
|
|
5777
|
+
v.value = te;
|
|
5780
5778
|
}
|
|
5781
5779
|
};
|
|
5782
5780
|
ne(() => [e.isReverse, i.value, s.value], () => {
|
|
5783
5781
|
const M = k(i), D = k(s);
|
|
5784
|
-
if (
|
|
5782
|
+
if (b(D), e.isReverse) {
|
|
5785
5783
|
const { columns: V, dataSource: J } = A(vt(M), vt(D));
|
|
5786
5784
|
l.value = V, d.value = J;
|
|
5787
5785
|
} else
|
|
@@ -5843,7 +5841,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5843
5841
|
J != null && le != null && (x.value = J + " " + le, g.value = 1);
|
|
5844
5842
|
}
|
|
5845
5843
|
se(!1);
|
|
5846
|
-
},
|
|
5844
|
+
}, u = q(() => {
|
|
5847
5845
|
const M = e.simple, D = [e.paginationPosition];
|
|
5848
5846
|
return e.paginationShow && {
|
|
5849
5847
|
simple: M,
|
|
@@ -5969,7 +5967,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5969
5967
|
y: r,
|
|
5970
5968
|
style: t,
|
|
5971
5969
|
customRow: ee,
|
|
5972
|
-
pagination:
|
|
5970
|
+
pagination: u,
|
|
5973
5971
|
formatFn: T,
|
|
5974
5972
|
contrastClass: O,
|
|
5975
5973
|
tableChange: w,
|
|
@@ -5995,7 +5993,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5995
5993
|
useFilterOptions: (M) => {
|
|
5996
5994
|
const D = M.dataIndex;
|
|
5997
5995
|
if (typeof D == "string") {
|
|
5998
|
-
let V = k(
|
|
5996
|
+
let V = k(v)[D];
|
|
5999
5997
|
const J = k(M.filterOptionsInputValue).trim();
|
|
6000
5998
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(J.toLowerCase()) : !0), V) : [];
|
|
6001
5999
|
}
|
|
@@ -6038,7 +6036,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6038
6036
|
pagination: e.pagination,
|
|
6039
6037
|
onChange: e.tableChange
|
|
6040
6038
|
}, {
|
|
6041
|
-
customFilterDropdown: Y(({ column:
|
|
6039
|
+
customFilterDropdown: Y(({ column: f, selectedKeys: y, setSelectedKeys: v, confirm: b, clearFilters: A }) => [
|
|
6042
6040
|
X("div", {
|
|
6043
6041
|
class: "ecan-table-filter",
|
|
6044
6042
|
style: G({
|
|
@@ -6046,25 +6044,25 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6046
6044
|
})
|
|
6047
6045
|
}, [
|
|
6048
6046
|
j(i, {
|
|
6049
|
-
value:
|
|
6050
|
-
"onUpdate:value": (x) =>
|
|
6047
|
+
value: f.filterOptionsInputValue,
|
|
6048
|
+
"onUpdate:value": (x) => f.filterOptionsInputValue = x,
|
|
6051
6049
|
placeholder: "请输入关键字",
|
|
6052
6050
|
class: "filter-input",
|
|
6053
6051
|
onChange: e.onSearchFilterOptions
|
|
6054
6052
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
6055
6053
|
j(s, {
|
|
6056
|
-
value:
|
|
6057
|
-
"onUpdate:value": (x) =>
|
|
6054
|
+
value: f.filterCheckboxGroupValue,
|
|
6055
|
+
"onUpdate:value": (x) => f.filterCheckboxGroupValue = x,
|
|
6058
6056
|
class: "filter-checkbox",
|
|
6059
|
-
options: e.useFilterOptions(
|
|
6060
|
-
onChange: (x) => e.useSetSelectedKeys(
|
|
6057
|
+
options: e.useFilterOptions(f),
|
|
6058
|
+
onChange: (x) => e.useSetSelectedKeys(v, f)
|
|
6061
6059
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6062
6060
|
X("div", null, [
|
|
6063
6061
|
j(l, {
|
|
6064
6062
|
type: "primary",
|
|
6065
6063
|
size: "small",
|
|
6066
6064
|
style: { width: "90px", "margin-right": "8px" },
|
|
6067
|
-
onClick: () =>
|
|
6065
|
+
onClick: () => b()
|
|
6068
6066
|
}, {
|
|
6069
6067
|
default: Y(() => [
|
|
6070
6068
|
hs
|
|
@@ -6074,7 +6072,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6074
6072
|
j(l, {
|
|
6075
6073
|
size: "small",
|
|
6076
6074
|
style: { width: "90px" },
|
|
6077
|
-
onClick: (x) => e.onResetFilter(A,
|
|
6075
|
+
onClick: (x) => e.onResetFilter(A, f)
|
|
6078
6076
|
}, {
|
|
6079
6077
|
default: Y(() => [
|
|
6080
6078
|
ys
|
|
@@ -6084,56 +6082,56 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6084
6082
|
])
|
|
6085
6083
|
], 4)
|
|
6086
6084
|
]),
|
|
6087
|
-
bodyCell: Y(({ column:
|
|
6088
|
-
|
|
6089
|
-
|
|
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, [
|
|
6090
6088
|
(E(!0), R(Le, null, Me(e.actionList, (A, x) => (E(), R("div", {
|
|
6091
6089
|
class: "action",
|
|
6092
6090
|
key: x
|
|
6093
6091
|
}, [
|
|
6094
6092
|
X("a", {
|
|
6095
|
-
href: e.handleHref(A.href,
|
|
6093
|
+
href: e.handleHref(A.href, b),
|
|
6096
6094
|
target: e.handleHrefTarget(A.target),
|
|
6097
6095
|
style: G({
|
|
6098
6096
|
color: A.color,
|
|
6099
6097
|
fontSize: e.fontSize,
|
|
6100
6098
|
fontWeight: e.fontWeight
|
|
6101
6099
|
}),
|
|
6102
|
-
onClick: (B) => e.onTouchHrefEvent(A.target, e.handleHref(A.href,
|
|
6100
|
+
onClick: (B) => e.onTouchHrefEvent(A.target, e.handleHref(A.href, b))
|
|
6103
6101
|
}, ye(A.title), 13, ps)
|
|
6104
6102
|
]))), 128))
|
|
6105
6103
|
])) : (E(), R("div", {
|
|
6106
6104
|
key: 2,
|
|
6107
|
-
class: _t([e.contrastClass(
|
|
6105
|
+
class: _t([e.contrastClass(v, f.format)]),
|
|
6108
6106
|
style: G({
|
|
6109
6107
|
fontSize: e.fontSize,
|
|
6110
6108
|
fontWeight: e.fontWeight
|
|
6111
6109
|
})
|
|
6112
|
-
}, ye(
|
|
6110
|
+
}, ye(f.format != null ? e.formatFn(v, f.format) : v), 7))
|
|
6113
6111
|
]),
|
|
6114
6112
|
summary: Y(() => [
|
|
6115
6113
|
e.summaryList.length > 0 ? (E(), Fe(g, { key: 0 }, {
|
|
6116
6114
|
default: Y(() => [
|
|
6117
6115
|
j(c, null, {
|
|
6118
6116
|
default: Y(() => [
|
|
6119
|
-
(E(!0), R(Le, null, Me(e.summaryList, (
|
|
6117
|
+
(E(!0), R(Le, null, Me(e.summaryList, (f, y) => (E(), Fe(d, {
|
|
6120
6118
|
key: y,
|
|
6121
6119
|
index: y,
|
|
6122
6120
|
style: G({
|
|
6123
6121
|
backgroundColor: e.cellBackgroundColor,
|
|
6124
|
-
textAlign:
|
|
6125
|
-
color:
|
|
6122
|
+
textAlign: f.cellAlign || "center",
|
|
6123
|
+
color: f.cellColor,
|
|
6126
6124
|
borderBottomColor: e.borderColor
|
|
6127
6125
|
})
|
|
6128
6126
|
}, {
|
|
6129
6127
|
default: Y(() => [
|
|
6130
6128
|
X("div", {
|
|
6131
|
-
class: _t([e.contrastClass(
|
|
6129
|
+
class: _t([e.contrastClass(f.total, f.format)]),
|
|
6132
6130
|
style: G({
|
|
6133
6131
|
fontSize: e.fontSize,
|
|
6134
6132
|
fontWeight: e.fontWeight
|
|
6135
6133
|
})
|
|
6136
|
-
}, ye((
|
|
6134
|
+
}, ye((f.format != null || f.format !== "") && e.formatFn(f.total, f.format)), 7)
|
|
6137
6135
|
]),
|
|
6138
6136
|
_: 2
|
|
6139
6137
|
}, 1032, ["index", "style"]))), 128))
|