@ecan-bi/datav 1.1.38 → 1.1.39
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 +319 -320
- 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,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as $, computed as q, unref as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.39 */
|
|
2
|
+
import { watch as ne, inject as $, computed as q, unref as A, watchEffect as rn, defineComponent as Q, shallowRef as yt, toRefs as Io, onMounted as Je, onUnmounted as ut, h as st, nextTick as ft, createVNode as j, resolveComponent as Z, openBlock as E, createElementBlock as R, createBlock as Oe, renderSlot as mt, withCtx as Y, ref as I, normalizeStyle as G, createCommentVNode as pe, provide as Fe, onBeforeUnmount as Nt, toDisplayString as he, Fragment as Le, renderList as Ie, createElementVNode as X, normalizeClass as xt, pushScopeId as sn, popScopeId as cn, createSlots as Mo, resolveDynamicComponent as Eo, mergeProps as Oo, withModifiers as Fo, reactive as Ro, createTextVNode as dn, withDirectives as Do, vShow as zo } from "vue";
|
|
3
3
|
import { throttle as No, init as $o, use as $e, registerMap as Po } from "echarts/core";
|
|
4
4
|
import { addListener as Bo, removeListener as Go } from "resize-detector";
|
|
5
5
|
import { Spin as Uo, Skeleton as qo, message as Ve, Progress as jo, Input as un, DatePicker as Wo, Select as Vo, RangePicker as Ho, Button as Zo, CheckboxGroup as fn, Modal as ke, Table as Jo, TableSummary as Yo, TableSummaryRow as Qo, TableSummaryCell as Ko } from "ant-design-vue";
|
|
@@ -71,7 +71,7 @@ const fa = {
|
|
|
71
71
|
}, ma = "ecLoadingOptions";
|
|
72
72
|
function ga(e, n, t) {
|
|
73
73
|
const o = $(ma, {}), a = q(() => ({
|
|
74
|
-
...
|
|
74
|
+
...A(o),
|
|
75
75
|
...t == null ? void 0 : t.value
|
|
76
76
|
}));
|
|
77
77
|
rn(() => {
|
|
@@ -113,20 +113,20 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
113
113
|
), l = $(
|
|
114
114
|
wa,
|
|
115
115
|
null
|
|
116
|
-
), { autoresize: d, manualUpdate: c, loading: m, loadingOptions: g } = Io(e),
|
|
116
|
+
), { autoresize: d, manualUpdate: c, loading: m, loadingOptions: g } = Io(e), v = q(
|
|
117
117
|
() => i.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
118
|
-
), f = q(() => e.theme ||
|
|
119
|
-
() => e.initOptions ||
|
|
118
|
+
), f = q(() => e.theme || A(s) || {}), b = q(
|
|
119
|
+
() => e.initOptions || A(r) || {}
|
|
120
120
|
), y = q(
|
|
121
|
-
() => e.updateOptions ||
|
|
121
|
+
() => e.updateOptions || A(l) || {}
|
|
122
122
|
), h = q(() => va(n));
|
|
123
|
-
function
|
|
123
|
+
function k(C) {
|
|
124
124
|
if (a.value || !o.value)
|
|
125
125
|
return;
|
|
126
126
|
const u = a.value = $o(
|
|
127
127
|
o.value,
|
|
128
128
|
f.value,
|
|
129
|
-
|
|
129
|
+
b.value
|
|
130
130
|
);
|
|
131
131
|
e.group && (u.group = e.group);
|
|
132
132
|
let p = t;
|
|
@@ -148,14 +148,14 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function F() {
|
|
151
|
-
u.setOption(C ||
|
|
151
|
+
u.setOption(C || v.value, y.value);
|
|
152
152
|
}
|
|
153
153
|
d.value ? ft(() => {
|
|
154
154
|
T(), F();
|
|
155
155
|
}) : F();
|
|
156
156
|
}
|
|
157
157
|
function x(C, u) {
|
|
158
|
-
e.manualUpdate && (i.value = C), a.value ? a.value.setOption(C, u || {}) :
|
|
158
|
+
e.manualUpdate && (i.value = C), a.value ? a.value.setOption(C, u || {}) : k(C);
|
|
159
159
|
}
|
|
160
160
|
function B() {
|
|
161
161
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
@@ -167,7 +167,7 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
167
167
|
typeof w == "function" && (w(), w = null), C || (w = ne(
|
|
168
168
|
() => e.option,
|
|
169
169
|
(u) => {
|
|
170
|
-
u && (a.value ? a.value.setOption(u, y.value) :
|
|
170
|
+
u && (a.value ? a.value.setOption(u, y.value) : k());
|
|
171
171
|
},
|
|
172
172
|
{ deep: !0 }
|
|
173
173
|
));
|
|
@@ -176,9 +176,9 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
176
176
|
immediate: !0
|
|
177
177
|
}
|
|
178
178
|
), ne(
|
|
179
|
-
[f,
|
|
179
|
+
[f, b],
|
|
180
180
|
() => {
|
|
181
|
-
B(),
|
|
181
|
+
B(), k();
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
deep: !0
|
|
@@ -186,9 +186,9 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
186
186
|
), rn(() => {
|
|
187
187
|
e.group && a.value && (a.value.group = e.group);
|
|
188
188
|
});
|
|
189
|
-
const L = da(a,
|
|
189
|
+
const L = da(a, k);
|
|
190
190
|
return ga(a, m, g), ua(a, d, o), Je(() => {
|
|
191
|
-
e.option &&
|
|
191
|
+
e.option && k();
|
|
192
192
|
}), ut(B), {
|
|
193
193
|
chart: a,
|
|
194
194
|
root: o,
|
|
@@ -576,8 +576,8 @@ function Tt(e) {
|
|
|
576
576
|
t.push(d);
|
|
577
577
|
}
|
|
578
578
|
return n.theme === "dark" ? Na.map(function(c) {
|
|
579
|
-
var m = c.index, g = c.opacity,
|
|
580
|
-
return
|
|
579
|
+
var m = c.index, g = c.opacity, v = it($a(je(n.backgroundColor || "#141414"), je(t[m]), g * 100));
|
|
580
|
+
return v;
|
|
581
581
|
}) : t;
|
|
582
582
|
}
|
|
583
583
|
var wt = {
|
|
@@ -933,20 +933,20 @@ function fl(e, n) {
|
|
|
933
933
|
}
|
|
934
934
|
kn("#1890ff");
|
|
935
935
|
var Ge = function(n, t) {
|
|
936
|
-
var o, a = Qt({}, n, t.attrs), i = a.class, s = a.icon, r = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, m = a.onClick, g = ul(a, ll),
|
|
936
|
+
var o, a = Qt({}, n, t.attrs), i = a.class, s = a.icon, r = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, m = a.onClick, g = ul(a, ll), v = (o = {
|
|
937
937
|
anticon: !0
|
|
938
|
-
}, Lt(o, "anticon-".concat(s.name), Boolean(s.name)), Lt(o, i, i), o), f = r === "" || r || s.name === "loading" ? "anticon-spin" : "",
|
|
939
|
-
|
|
938
|
+
}, Lt(o, "anticon-".concat(s.name), Boolean(s.name)), Lt(o, i, i), o), f = r === "" || r || s.name === "loading" ? "anticon-spin" : "", b = d;
|
|
939
|
+
b === void 0 && m && (b = -1, g.tabindex = b);
|
|
940
940
|
var y = l ? {
|
|
941
941
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
942
942
|
transform: "rotate(".concat(l, "deg)")
|
|
943
|
-
} : void 0, h = wn(c),
|
|
943
|
+
} : void 0, h = wn(c), k = il(h, 2), x = k[0], B = k[1];
|
|
944
944
|
return j("span", Qt({
|
|
945
945
|
role: "img",
|
|
946
946
|
"aria-label": s.name
|
|
947
947
|
}, g, {
|
|
948
948
|
onClick: m,
|
|
949
|
-
class:
|
|
949
|
+
class: v
|
|
950
950
|
}), [j(Et, {
|
|
951
951
|
class: f,
|
|
952
952
|
icon: s,
|
|
@@ -1176,12 +1176,12 @@ const Al = ((ln = window == null ? void 0 : window.config) == null ? void 0 : ln
|
|
|
1176
1176
|
t = t == null ? void 0 : t.trim(), o = o == null ? void 0 : o.trim(), a = a == null ? void 0 : a.trim();
|
|
1177
1177
|
const i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), r = e.length;
|
|
1178
1178
|
for (let c = 0; c < r; c++) {
|
|
1179
|
-
const m = e[c], g = m[t] || "",
|
|
1179
|
+
const m = e[c], g = m[t] || "", v = m[o] || "", f = m[a] || "";
|
|
1180
1180
|
if (i.add(g), s.has(f)) {
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1181
|
+
const b = s.get(f);
|
|
1182
|
+
b.push({ name: g, value: v, ...m }), s.set(f, b);
|
|
1183
1183
|
} else
|
|
1184
|
-
s.set(f, [{ name: g, value:
|
|
1184
|
+
s.set(f, [{ name: g, value: v, ...m }]);
|
|
1185
1185
|
}
|
|
1186
1186
|
const l = Array.from(i), d = [];
|
|
1187
1187
|
for (const [c, m] of s)
|
|
@@ -1245,8 +1245,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1245
1245
|
let l = r.slice(1, -1).trim();
|
|
1246
1246
|
const d = /[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g, c = l.match(d);
|
|
1247
1247
|
for (let m = 0; m < c.length; m++) {
|
|
1248
|
-
const g = c[m],
|
|
1249
|
-
if (
|
|
1248
|
+
const g = c[m], v = n[g];
|
|
1249
|
+
if (v != null && (l = l.replace(g, v)), v !== l)
|
|
1250
1250
|
try {
|
|
1251
1251
|
l = (0, eval)(l);
|
|
1252
1252
|
} catch {
|
|
@@ -1271,10 +1271,10 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1271
1271
|
}), { getGlobalModel: m } = $(de, {
|
|
1272
1272
|
// @ts-ignore
|
|
1273
1273
|
// eslint-disable-next-line no-void
|
|
1274
|
-
getGlobalModel: (
|
|
1274
|
+
getGlobalModel: (b) => {
|
|
1275
1275
|
}
|
|
1276
|
-
}), g = be(t),
|
|
1277
|
-
if (!g || !o || !a ||
|
|
1276
|
+
}), g = be(t), v = async (b = {}) => {
|
|
1277
|
+
if (!g || !o || !a || A(d) === "design")
|
|
1278
1278
|
return;
|
|
1279
1279
|
let y = {};
|
|
1280
1280
|
i.forEach((w) => {
|
|
@@ -1282,35 +1282,35 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1282
1282
|
if (typeof C == "object" && C.id) {
|
|
1283
1283
|
let u = {};
|
|
1284
1284
|
const { id: p, prop: T, propKey: F, operate: S } = C;
|
|
1285
|
-
p === "THIS" ? u = m(
|
|
1286
|
-
const _ =
|
|
1285
|
+
p === "THIS" ? u = m(A(c)) || {} : u = m(p) || {};
|
|
1286
|
+
const _ = A(u[T]);
|
|
1287
1287
|
let U = null;
|
|
1288
1288
|
if (["date", "range"].some((O) => Ln(u == null ? void 0 : u.type, O))) {
|
|
1289
1289
|
const { value: O, type: N, mode: z } = S || {};
|
|
1290
1290
|
if (O && N && z)
|
|
1291
1291
|
switch (N) {
|
|
1292
1292
|
case "add":
|
|
1293
|
-
U =
|
|
1293
|
+
U = A(_).add(O, z);
|
|
1294
1294
|
break;
|
|
1295
1295
|
case "minus":
|
|
1296
|
-
U =
|
|
1296
|
+
U = A(_).subtract(O, z);
|
|
1297
1297
|
break;
|
|
1298
1298
|
}
|
|
1299
|
-
U == null && (U =
|
|
1299
|
+
U == null && (U = A(_)), U = (U == null ? void 0 : U.format((F == null ? void 0 : F.trim()) || u.format)) || "";
|
|
1300
1300
|
} else
|
|
1301
1301
|
Object.prototype.toString.call(_) === "[object Object]" ? U = _[F || "value"] : U = _;
|
|
1302
1302
|
y[L] = U;
|
|
1303
1303
|
} else
|
|
1304
1304
|
typeof C == "string" && (y[L] = be(C));
|
|
1305
|
-
}), y = { ...window.config.requestParams, ...
|
|
1305
|
+
}), y = { ...window.config.requestParams, ...b, ...y };
|
|
1306
1306
|
let h = "";
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1307
|
+
const k = Object.keys(y), x = k.length - 1, B = k.length;
|
|
1308
|
+
k.forEach((w, L) => {
|
|
1309
1309
|
L === 0 ? B !== 1 ? h += `?${w}=${y[w]}&` : h += `?${w}=${y[w]}` : L === x ? h += `${w}=${y[w]}` : h += `${w}=${y[w]}&`;
|
|
1310
1310
|
});
|
|
1311
1311
|
try {
|
|
1312
1312
|
const w = ["get", "head"].includes(o), L = await xe({
|
|
1313
|
-
baseURL:
|
|
1313
|
+
baseURL: A(l) || "",
|
|
1314
1314
|
url: w ? g + h : g,
|
|
1315
1315
|
method: o,
|
|
1316
1316
|
headers: a,
|
|
@@ -1320,10 +1320,10 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1320
1320
|
} catch (w) {
|
|
1321
1321
|
console.error(w);
|
|
1322
1322
|
}
|
|
1323
|
-
}, f = r && setInterval(
|
|
1323
|
+
}, f = r && setInterval(v, s * 1e3);
|
|
1324
1324
|
return ut(() => {
|
|
1325
1325
|
clearInterval(f);
|
|
1326
|
-
}),
|
|
1326
|
+
}), v;
|
|
1327
1327
|
}, Ne = (e = [], n) => {
|
|
1328
1328
|
let { name: t = "name", types: o = [] } = n || {};
|
|
1329
1329
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
@@ -1331,7 +1331,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1331
1331
|
if (s === 1) {
|
|
1332
1332
|
const c = [];
|
|
1333
1333
|
for (let g = 0; g < r; g++) {
|
|
1334
|
-
const
|
|
1334
|
+
const v = o[g], { label: f, value: b } = v, y = { ...e[0], value: e[0][b] };
|
|
1335
1335
|
a.add(f), c.push(y);
|
|
1336
1336
|
}
|
|
1337
1337
|
const m = e[0][t] || "";
|
|
@@ -1340,13 +1340,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1340
1340
|
for (let c = 0; c < s; c++) {
|
|
1341
1341
|
const m = e[c], g = m[t];
|
|
1342
1342
|
a.add(g);
|
|
1343
|
-
for (let
|
|
1344
|
-
const f = o[
|
|
1345
|
-
if (i.has(
|
|
1346
|
-
const
|
|
1347
|
-
|
|
1343
|
+
for (let v = 0; v < r; v++) {
|
|
1344
|
+
const f = o[v], { label: b, value: y } = f, h = { ...m, value: m[y] };
|
|
1345
|
+
if (i.has(b)) {
|
|
1346
|
+
const k = i.get(b);
|
|
1347
|
+
k.push(h), i.set(b, k);
|
|
1348
1348
|
} else
|
|
1349
|
-
i.set(
|
|
1349
|
+
i.set(b, [h]);
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
const l = Array.from(a), d = [];
|
|
@@ -1410,18 +1410,18 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1410
1410
|
var c;
|
|
1411
1411
|
const d = [];
|
|
1412
1412
|
for (let m = 0; m < l.length; m++) {
|
|
1413
|
-
const { keyName: g, searchName:
|
|
1413
|
+
const { keyName: g, searchName: v, searchType: f, variateName: b, id: y } = l[m], h = {
|
|
1414
1414
|
alias: g,
|
|
1415
|
-
fieldName:
|
|
1415
|
+
fieldName: v,
|
|
1416
1416
|
rule: f || "NONE",
|
|
1417
1417
|
fieldValue: "",
|
|
1418
1418
|
valueType: "",
|
|
1419
|
-
variateName:
|
|
1420
|
-
},
|
|
1421
|
-
if (
|
|
1422
|
-
h.dateFormat =
|
|
1423
|
-
const x = (c = k
|
|
1424
|
-
typeof x == "function" && (h.fieldValue = x(
|
|
1419
|
+
variateName: b
|
|
1420
|
+
}, k = n(y) || {};
|
|
1421
|
+
if (v === "the_date" ? h.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(v) && (h.valueType = "TEXT"), k.type === "ecanDatePicker") {
|
|
1422
|
+
h.dateFormat = k.format;
|
|
1423
|
+
const x = (c = A(k)) == null ? void 0 : c.value.format;
|
|
1424
|
+
typeof x == "function" && (h.fieldValue = x(k == null ? void 0 : k.format));
|
|
1425
1425
|
}
|
|
1426
1426
|
d.push(h);
|
|
1427
1427
|
}
|
|
@@ -1464,10 +1464,10 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1464
1464
|
if (m = JSON.parse(JSON.stringify(l.children[c].fieldValue)), l.children[c].itemType === "DATE")
|
|
1465
1465
|
g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays, l.children[c].selectType === "time" ? l.children[c].absoluteBool && (m = "#######", g.calcWays = l.children[c].calcWays) : l.children[c].selectType === "component" && (m = "${" + l.children[c].relateCompent + "}"), g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays;
|
|
1466
1466
|
else if (Object.prototype.toString.call(m) === "[object Array]") {
|
|
1467
|
-
const
|
|
1467
|
+
const v = [];
|
|
1468
1468
|
for (let f = 0; f < m.length; f++)
|
|
1469
|
-
m[f] !== "全选" &&
|
|
1470
|
-
m =
|
|
1469
|
+
m[f] !== "全选" && v.push(m[f]);
|
|
1470
|
+
m = v.join(",");
|
|
1471
1471
|
}
|
|
1472
1472
|
g.fieldValue = m, l.children.length > 1 && c !== l.children.length - 1 && (l.type === "and" ? g.join = "&&" : g.join = "||"), d.push(g);
|
|
1473
1473
|
}
|
|
@@ -1477,10 +1477,10 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1477
1477
|
const m = c[d].find((f) => f.name === l.label);
|
|
1478
1478
|
if (!m)
|
|
1479
1479
|
return;
|
|
1480
|
-
const g = [],
|
|
1481
|
-
if (
|
|
1482
|
-
for (let f = 0; f <
|
|
1483
|
-
|
|
1480
|
+
const g = [], v = m.filterList;
|
|
1481
|
+
if (v)
|
|
1482
|
+
for (let f = 0; f < v.length; f++)
|
|
1483
|
+
v[f].children.length > 0 && s(v[f], g);
|
|
1484
1484
|
return g;
|
|
1485
1485
|
};
|
|
1486
1486
|
return async function() {
|
|
@@ -1504,13 +1504,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1504
1504
|
return;
|
|
1505
1505
|
}
|
|
1506
1506
|
const g = t(d);
|
|
1507
|
-
let
|
|
1507
|
+
let v;
|
|
1508
1508
|
if (Array.isArray(d.series) && d.series.length > 0) {
|
|
1509
1509
|
const C = (w = d.seriesList) == null ? void 0 : w.find((u) => {
|
|
1510
1510
|
const p = d.series[0];
|
|
1511
1511
|
return u.name === p || u.nameBak === p;
|
|
1512
1512
|
});
|
|
1513
|
-
C != null && (
|
|
1513
|
+
C != null && (v = {
|
|
1514
1514
|
label: C.name,
|
|
1515
1515
|
columnName: C.label
|
|
1516
1516
|
});
|
|
@@ -1524,13 +1524,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1524
1524
|
const C = ((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])) || {};
|
|
1525
1525
|
f.columnName = C.label, i(f, d.classifyList), f.conditions = r(f, "classifyList", d) || [];
|
|
1526
1526
|
}
|
|
1527
|
-
|
|
1527
|
+
v && (i(v, d.seriesList), v.conditions = r(v, "seriesList", d) || []);
|
|
1528
1528
|
for (let C = 0; C < g.length; C++)
|
|
1529
1529
|
g[C].location === "RIGHT" ? g[C].conditions = r(g[C], "rightAxisList", d) : g[C].conditions = r(g[C], "leftAxisList", d);
|
|
1530
|
-
let
|
|
1531
|
-
(d == null ? void 0 : d.pageMode) === "design" ?
|
|
1532
|
-
let y = "SQL_VIEW", h = "",
|
|
1533
|
-
d.source === "INDICATOR_LIB" && (y = "INDICATOR_LIB", h = d.fixedDimSql,
|
|
1530
|
+
let b;
|
|
1531
|
+
(d == null ? void 0 : d.pageMode) === "design" ? b = d.sqlConditions ?? [] : b = a(d == null ? void 0 : d.relativeList);
|
|
1532
|
+
let y = "SQL_VIEW", h = "", k = "", x = "";
|
|
1533
|
+
d.source === "INDICATOR_LIB" && (y = "INDICATOR_LIB", h = d.fixedDimSql, k = d.dataSourceId, x = d.idxLibMode);
|
|
1534
1534
|
const B = {
|
|
1535
1535
|
ecanBar: "bar",
|
|
1536
1536
|
ecanLine: "line",
|
|
@@ -1551,11 +1551,11 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1551
1551
|
chartType: B[l],
|
|
1552
1552
|
classification: f,
|
|
1553
1553
|
indicatorList: g,
|
|
1554
|
-
series:
|
|
1555
|
-
sqlConditions:
|
|
1554
|
+
series: v,
|
|
1555
|
+
sqlConditions: b,
|
|
1556
1556
|
source: y,
|
|
1557
1557
|
fixedDimSql: h,
|
|
1558
|
-
dataSourceId:
|
|
1558
|
+
dataSourceId: k,
|
|
1559
1559
|
idxLibMode: x
|
|
1560
1560
|
}, {
|
|
1561
1561
|
headers: { Authentication: C.data.data.token }
|
|
@@ -1617,9 +1617,9 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1617
1617
|
show: c,
|
|
1618
1618
|
indexCode: m,
|
|
1619
1619
|
calcType: g = "COLUMN",
|
|
1620
|
-
builtInFormula:
|
|
1620
|
+
builtInFormula: v,
|
|
1621
1621
|
builtInValueSource: f,
|
|
1622
|
-
builtInCalcWay:
|
|
1622
|
+
builtInCalcWay: b,
|
|
1623
1623
|
formula: y,
|
|
1624
1624
|
conditions: h
|
|
1625
1625
|
} = s;
|
|
@@ -1631,9 +1631,9 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1631
1631
|
calcType: g,
|
|
1632
1632
|
hrpIndexCode: m,
|
|
1633
1633
|
aggregate: "SUM",
|
|
1634
|
-
builtInFormula:
|
|
1634
|
+
builtInFormula: v,
|
|
1635
1635
|
builtInValueSource: f,
|
|
1636
|
-
builtInCalcWay:
|
|
1636
|
+
builtInCalcWay: b,
|
|
1637
1637
|
formula: y,
|
|
1638
1638
|
conditions: h
|
|
1639
1639
|
};
|
|
@@ -1648,20 +1648,20 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1648
1648
|
for (let c = 0; c < r; c++) {
|
|
1649
1649
|
const m = s[c], {
|
|
1650
1650
|
id: g,
|
|
1651
|
-
conditionLabel:
|
|
1651
|
+
conditionLabel: v,
|
|
1652
1652
|
conditionKey: f,
|
|
1653
|
-
conditionValueType:
|
|
1653
|
+
conditionValueType: b
|
|
1654
1654
|
} = m, y = {
|
|
1655
1655
|
rule: "NONE",
|
|
1656
|
-
label:
|
|
1656
|
+
label: v,
|
|
1657
1657
|
fieldName: f,
|
|
1658
1658
|
fieldValue: "",
|
|
1659
1659
|
// 在关联控件中取
|
|
1660
|
-
valueType:
|
|
1660
|
+
valueType: b
|
|
1661
1661
|
}, h = a(g) || {};
|
|
1662
1662
|
if (Ln(h.type, "date")) {
|
|
1663
|
-
const { value:
|
|
1664
|
-
y.fieldValue = (d = k
|
|
1663
|
+
const { value: k, format: x } = h || {};
|
|
1664
|
+
y.fieldValue = (d = A(k)) == null ? void 0 : d.format(x), y.dateFormat = x;
|
|
1665
1665
|
}
|
|
1666
1666
|
l.push(y);
|
|
1667
1667
|
}
|
|
@@ -1676,12 +1676,12 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1676
1676
|
layer: c,
|
|
1677
1677
|
chartType: m,
|
|
1678
1678
|
classificationList: g = [],
|
|
1679
|
-
seriesList:
|
|
1679
|
+
seriesList: v = [],
|
|
1680
1680
|
leftAxisList: f = [],
|
|
1681
|
-
rightAxisList:
|
|
1681
|
+
rightAxisList: b = [],
|
|
1682
1682
|
queryColumnList: y = [],
|
|
1683
1683
|
indicators: h = [],
|
|
1684
|
-
controlList:
|
|
1684
|
+
controlList: k = [],
|
|
1685
1685
|
dataSourceId: x,
|
|
1686
1686
|
idxLibMode: B,
|
|
1687
1687
|
preview: w = !1
|
|
@@ -1705,10 +1705,10 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
1707
|
let C;
|
|
1708
|
-
if (Array.isArray(
|
|
1709
|
-
const S =
|
|
1708
|
+
if (Array.isArray(v) && v.length > 0) {
|
|
1709
|
+
const S = v.length;
|
|
1710
1710
|
for (let _ = 0; _ < S; _++) {
|
|
1711
|
-
const U =
|
|
1711
|
+
const U = v[_] || {}, { label: H = "", name: O = "", show: N = !1, sort: z, customGroup: W, conditions: ee } = U;
|
|
1712
1712
|
if (N || S === 1) {
|
|
1713
1713
|
C = {
|
|
1714
1714
|
label: H,
|
|
@@ -1729,7 +1729,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1729
1729
|
const p = [];
|
|
1730
1730
|
if (f == null || f.forEach((S) => {
|
|
1731
1731
|
S.location = "LEFT", p.push(o(S));
|
|
1732
|
-
}),
|
|
1732
|
+
}), b == null || b.forEach((S) => {
|
|
1733
1733
|
S.location = "RIGHT", p.push(o(S));
|
|
1734
1734
|
}), h == null || h.forEach((S) => {
|
|
1735
1735
|
S.location = "LEFT", p.push(o(S));
|
|
@@ -1738,7 +1738,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1738
1738
|
if (c === "2" && p.length === 0)
|
|
1739
1739
|
return;
|
|
1740
1740
|
let T;
|
|
1741
|
-
(s == null ? void 0 : s.pageMode) === "design" ? T = s.sqlConditions ?? [] : T = i(
|
|
1741
|
+
(s == null ? void 0 : s.pageMode) === "design" ? T = s.sqlConditions ?? [] : T = i(k);
|
|
1742
1742
|
try {
|
|
1743
1743
|
return await xe.post(
|
|
1744
1744
|
`${ct}/diagram`,
|
|
@@ -1798,20 +1798,20 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1798
1798
|
backgroundSize: e.backgroundSize
|
|
1799
1799
|
})), t = I(0), o = I(0), a = I(0), i = I(0), s = I(!1), r = I();
|
|
1800
1800
|
let l;
|
|
1801
|
-
const d = () => new Promise((
|
|
1801
|
+
const d = () => new Promise((b) => {
|
|
1802
1802
|
ft(() => {
|
|
1803
|
-
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, o.value = r.value.clientHeight), (!a.value || !i.value) && (a.value = window.screen.width, i.value = window.screen.height),
|
|
1803
|
+
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, o.value = r.value.clientHeight), (!a.value || !i.value) && (a.value = window.screen.width, i.value = window.screen.height), b();
|
|
1804
1804
|
});
|
|
1805
1805
|
}), c = () => {
|
|
1806
1806
|
t.value && o.value ? (r.value.style.width = `${t.value}px`, r.value.style.height = `${o.value}px`) : (r.value.style.width = `${a.value}px`, r.value.style.height = `${i.value}px`);
|
|
1807
1807
|
}, m = () => {
|
|
1808
|
-
const
|
|
1808
|
+
const b = document.body.clientWidth, y = document.body.clientHeight, h = t.value || a.value, k = o.value || i.value, x = b / h, B = y / k;
|
|
1809
1809
|
r.value && (r.value.style.transform = `scale(${x}, ${B})`);
|
|
1810
1810
|
}, g = It(async () => {
|
|
1811
1811
|
await d(), m();
|
|
1812
|
-
}, 100),
|
|
1813
|
-
const
|
|
1814
|
-
l = new
|
|
1812
|
+
}, 100), v = () => {
|
|
1813
|
+
const b = window.MutationObserver;
|
|
1814
|
+
l = new b(g), l.observe(r.value, {
|
|
1815
1815
|
attributes: !0,
|
|
1816
1816
|
attributeFilter: ["style"],
|
|
1817
1817
|
attributeOldValue: !0
|
|
@@ -1820,7 +1820,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1820
1820
|
l && (l.disconnect(), l.takeRecords(), l = null);
|
|
1821
1821
|
};
|
|
1822
1822
|
return Je(async () => {
|
|
1823
|
-
s.value = !1, await d(), c(), m(), window.addEventListener("resize", g),
|
|
1823
|
+
s.value = !1, await d(), c(), m(), window.addEventListener("resize", g), v(), s.value = !0;
|
|
1824
1824
|
}), ut(() => {
|
|
1825
1825
|
window.removeEventListener("resize", g), f();
|
|
1826
1826
|
}), {
|
|
@@ -1885,23 +1885,23 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1885
1885
|
});
|
|
1886
1886
|
const m = [], g = () => {
|
|
1887
1887
|
m.pop();
|
|
1888
|
-
},
|
|
1888
|
+
}, v = (O) => {
|
|
1889
1889
|
m.push(O);
|
|
1890
|
-
}, f = /* @__PURE__ */ new Map(),
|
|
1890
|
+
}, f = /* @__PURE__ */ new Map(), b = (O) => f.get(O);
|
|
1891
1891
|
Fe(_n, {
|
|
1892
1892
|
popUseModalIds: g,
|
|
1893
|
-
pushUseModalIds:
|
|
1894
|
-
getModalModel:
|
|
1893
|
+
pushUseModalIds: v,
|
|
1894
|
+
getModalModel: b,
|
|
1895
1895
|
setModalModel: (O, N) => {
|
|
1896
1896
|
f.set(O, N);
|
|
1897
1897
|
}
|
|
1898
1898
|
});
|
|
1899
|
-
const h = na(),
|
|
1900
|
-
|
|
1899
|
+
const h = na(), k = /* @__PURE__ */ new Set(), x = (O, N) => {
|
|
1900
|
+
k.add(O), h.on(O, (z) => typeof N[z] == "function" && N[z]()), Nt(() => {
|
|
1901
1901
|
B(O);
|
|
1902
1902
|
});
|
|
1903
1903
|
}, B = (O) => {
|
|
1904
|
-
|
|
1904
|
+
k.delete(O), h.off(O);
|
|
1905
1905
|
};
|
|
1906
1906
|
Fe(Ft, {
|
|
1907
1907
|
onEvent: x,
|
|
@@ -1911,10 +1911,10 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1911
1911
|
const z = m.length;
|
|
1912
1912
|
let W = [];
|
|
1913
1913
|
if (z === 0)
|
|
1914
|
-
W = [...
|
|
1914
|
+
W = [...k];
|
|
1915
1915
|
else {
|
|
1916
1916
|
const ee = m[z - 1];
|
|
1917
|
-
W = [...
|
|
1917
|
+
W = [...b(ee)];
|
|
1918
1918
|
}
|
|
1919
1919
|
W.forEach((ee) => {
|
|
1920
1920
|
h.emit(ee, N);
|
|
@@ -1926,7 +1926,7 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1926
1926
|
const L = I(0);
|
|
1927
1927
|
Fe(Tn, {
|
|
1928
1928
|
requestToken: () => {
|
|
1929
|
-
L.value =
|
|
1929
|
+
L.value = A(L) + 1;
|
|
1930
1930
|
}
|
|
1931
1931
|
});
|
|
1932
1932
|
const u = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), T = ({ requestFn: O = () => {
|
|
@@ -1967,7 +1967,7 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1967
1967
|
W.sort((se, nt) => nt[0] - se[0]);
|
|
1968
1968
|
const ee = W.length;
|
|
1969
1969
|
try {
|
|
1970
|
-
e.pageMode !== "design" &&
|
|
1970
|
+
e.pageMode !== "design" && A(L) > 0 && await S();
|
|
1971
1971
|
for (let se = 0; se < ee; se++) {
|
|
1972
1972
|
const nt = W[se][1];
|
|
1973
1973
|
await F(nt);
|
|
@@ -2043,28 +2043,28 @@ const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
|
2043
2043
|
},
|
|
2044
2044
|
setup(e) {
|
|
2045
2045
|
const n = ie(e), t = I({});
|
|
2046
|
-
ne(() => [e.data, e.dataType], ([g,
|
|
2047
|
-
|
|
2046
|
+
ne(() => [e.data, e.dataType], ([g, v]) => {
|
|
2047
|
+
v === "static" && (t.value = g);
|
|
2048
2048
|
}, {
|
|
2049
2049
|
immediate: !0
|
|
2050
2050
|
});
|
|
2051
2051
|
const o = q(() => {
|
|
2052
|
-
var
|
|
2053
|
-
const g =
|
|
2054
|
-
let
|
|
2055
|
-
|
|
2056
|
-
const f =
|
|
2052
|
+
var b;
|
|
2053
|
+
const g = A(t);
|
|
2054
|
+
let v = e.text;
|
|
2055
|
+
v = v == null ? void 0 : v.replace(/\n|\\n/g, "<br/>"), v = v == null ? void 0 : v.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
2056
|
+
const f = v.match(/\{(.+?)\}/g);
|
|
2057
2057
|
if (f == null || f.length === 0)
|
|
2058
|
-
return
|
|
2058
|
+
return v;
|
|
2059
2059
|
for (let y = 0; y < f.length; y++) {
|
|
2060
|
-
const h = f[y],
|
|
2061
|
-
let x =
|
|
2062
|
-
const B =
|
|
2060
|
+
const h = f[y], k = (b = h == null ? void 0 : h.slice(1, h.length - 1)) == null ? void 0 : b.trim();
|
|
2061
|
+
let x = k;
|
|
2062
|
+
const B = k.match(/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g);
|
|
2063
2063
|
for (let L = 0; L < B.length; L++) {
|
|
2064
2064
|
const C = B[L], u = g[C];
|
|
2065
|
-
u && (x =
|
|
2065
|
+
u && (x = k.replace(C, u));
|
|
2066
2066
|
}
|
|
2067
|
-
if (
|
|
2067
|
+
if (k !== x) {
|
|
2068
2068
|
let L = null;
|
|
2069
2069
|
try {
|
|
2070
2070
|
L = (0, eval)(x);
|
|
@@ -2073,24 +2073,23 @@ const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
|
2073
2073
|
L != null && (x = L);
|
|
2074
2074
|
}
|
|
2075
2075
|
let w = x;
|
|
2076
|
-
if (w != null) {
|
|
2076
|
+
if (w === k && (w = e.variableDefaultValue), w != null) {
|
|
2077
2077
|
const L = e.format;
|
|
2078
|
-
L === "percentage" ? (w = +w, isNaN(w) ?
|
|
2079
|
-
}
|
|
2080
|
-
b = b.replace(h, e.variableDefaultValue);
|
|
2078
|
+
L === "percentage" ? (w = +w, isNaN(w) ? v = v.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : w >= 0 ? (w = (w * 100).toFixed(2), v = v.replace(h, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Pl}"/>${w}%</span>`)) : (w = (w * 100).toFixed(2), v = v.replace(h, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${Math.abs(+w)}%</span>`))) : L === "percent" ? (w = +w, isNaN(w) || (w = (w * 100).toFixed(2), v = v.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}%</span>`))) : e.format === "money" ? (w = +w, isNaN(w) || (w = Rt(w), v = v.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : L === "thousands" ? (w = +w, isNaN(w) || (w = Tl(w), v = v.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : v = v.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`);
|
|
2079
|
+
}
|
|
2081
2080
|
}
|
|
2082
|
-
return `<span>${
|
|
2081
|
+
return `<span>${v}</span>`;
|
|
2083
2082
|
}), { pageMode: a } = $(ce, {
|
|
2084
2083
|
pageMode: "normal"
|
|
2085
2084
|
}), i = Ae(e), s = I(!1), r = async () => {
|
|
2086
2085
|
var g;
|
|
2087
|
-
if (
|
|
2086
|
+
if (A(a) !== "design")
|
|
2088
2087
|
try {
|
|
2089
2088
|
s.value = !0;
|
|
2090
|
-
const
|
|
2091
|
-
t.value = ((g =
|
|
2092
|
-
} catch (
|
|
2093
|
-
console.error(
|
|
2089
|
+
const v = await i();
|
|
2090
|
+
t.value = ((g = v == null ? void 0 : v.data) == null ? void 0 : g.data) || {};
|
|
2091
|
+
} catch (v) {
|
|
2092
|
+
console.error(v);
|
|
2094
2093
|
} finally {
|
|
2095
2094
|
s.value = !1;
|
|
2096
2095
|
}
|
|
@@ -2103,7 +2102,7 @@ const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
|
2103
2102
|
const { setRequest: d } = $(Ce, {
|
|
2104
2103
|
// @ts-ignore
|
|
2105
2104
|
// eslint-disable-next-line no-void
|
|
2106
|
-
setRequest: ({ id: g, sortNum:
|
|
2105
|
+
setRequest: ({ id: g, sortNum: v, requestFn: f }) => {
|
|
2107
2106
|
}
|
|
2108
2107
|
});
|
|
2109
2108
|
d({
|
|
@@ -2116,11 +2115,11 @@ const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
|
2116
2115
|
const m = ue(e)("click", () => {
|
|
2117
2116
|
if (!e.linkPage && !e.href)
|
|
2118
2117
|
return;
|
|
2119
|
-
const g = e.linkPage || "",
|
|
2120
|
-
let
|
|
2121
|
-
|
|
2118
|
+
const g = e.linkPage || "", v = In(A(a), g), f = e.href;
|
|
2119
|
+
let b = f || v;
|
|
2120
|
+
b = be(b);
|
|
2122
2121
|
const y = e.target;
|
|
2123
|
-
y == null || y === "" || (y !== "event" ? window.open(
|
|
2122
|
+
y == null || y === "" || (y !== "event" ? window.open(b, "_" + y) : window.parent.postMessage({
|
|
2124
2123
|
type: "openPage",
|
|
2125
2124
|
url: f
|
|
2126
2125
|
}, "*"));
|
|
@@ -2150,7 +2149,7 @@ function ql(e, n, t, o, a, i) {
|
|
|
2150
2149
|
onClick: n[0] || (n[0] = (...r) => e.click && e.click(...r))
|
|
2151
2150
|
}, null, 12, Ul));
|
|
2152
2151
|
}
|
|
2153
|
-
const jl = /* @__PURE__ */ K(Gl, [["render", ql], ["__scopeId", "data-v-
|
|
2152
|
+
const jl = /* @__PURE__ */ K(Gl, [["render", ql], ["__scopeId", "data-v-1d477570"]]), Wl = oe(jl), Vl = Q({
|
|
2154
2153
|
name: "EcanScrollText",
|
|
2155
2154
|
setup() {
|
|
2156
2155
|
return {
|
|
@@ -2252,13 +2251,13 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3
|
|
|
2252
2251
|
textAlign: "center"
|
|
2253
2252
|
} : {
|
|
2254
2253
|
textAlign: "left"
|
|
2255
|
-
}), a = (f,
|
|
2254
|
+
}), a = (f, b) => b == null || b === "" ? f : {
|
|
2256
2255
|
money: Rt,
|
|
2257
2256
|
percentage: dt,
|
|
2258
2257
|
contrast: dt
|
|
2259
|
-
}[
|
|
2258
|
+
}[b](f) || "", i = (f, b) => {
|
|
2260
2259
|
const y = parseFloat(f + "");
|
|
2261
|
-
if (
|
|
2260
|
+
if (b !== "contrast")
|
|
2262
2261
|
return "";
|
|
2263
2262
|
switch (!0) {
|
|
2264
2263
|
case y >= 0:
|
|
@@ -2270,13 +2269,13 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3
|
|
|
2270
2269
|
pageMode: "normal"
|
|
2271
2270
|
}), l = I(!1), d = async () => {
|
|
2272
2271
|
var f;
|
|
2273
|
-
if (!(e.dataType !== "request" ||
|
|
2272
|
+
if (!(e.dataType !== "request" || A(r) === "design"))
|
|
2274
2273
|
try {
|
|
2275
2274
|
l.value = !0;
|
|
2276
|
-
const
|
|
2277
|
-
n.value = ((f =
|
|
2278
|
-
} catch (
|
|
2279
|
-
console.error(
|
|
2275
|
+
const b = await s();
|
|
2276
|
+
n.value = ((f = b == null ? void 0 : b.data) == null ? void 0 : f.data.rows) || [];
|
|
2277
|
+
} catch (b) {
|
|
2278
|
+
console.error(b);
|
|
2280
2279
|
} finally {
|
|
2281
2280
|
l.value = !1;
|
|
2282
2281
|
}
|
|
@@ -2287,13 +2286,13 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3
|
|
|
2287
2286
|
ge(e, {
|
|
2288
2287
|
refreshData: c
|
|
2289
2288
|
});
|
|
2290
|
-
const { setRequest:
|
|
2289
|
+
const { setRequest: v } = $(Ce, {
|
|
2291
2290
|
// @ts-ignore
|
|
2292
2291
|
// eslint-disable-next-line no-void
|
|
2293
|
-
setRequest: ({ id: f, sortNum:
|
|
2292
|
+
setRequest: ({ id: f, sortNum: b, requestFn: y }) => {
|
|
2294
2293
|
}
|
|
2295
2294
|
});
|
|
2296
|
-
return
|
|
2295
|
+
return v({
|
|
2297
2296
|
id: e.id,
|
|
2298
2297
|
requestFn: d,
|
|
2299
2298
|
sortNum: e.requestSort
|
|
@@ -2435,39 +2434,39 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2435
2434
|
return parseFloat(f);
|
|
2436
2435
|
}), a = I({});
|
|
2437
2436
|
ne(() => e.data, () => {
|
|
2438
|
-
(e.dataType === "static" ||
|
|
2437
|
+
(e.dataType === "static" || A(n) === "design") && (a.value = e.data);
|
|
2439
2438
|
}, {
|
|
2440
2439
|
immediate: !0,
|
|
2441
2440
|
deep: !0
|
|
2442
2441
|
});
|
|
2443
2442
|
const i = q(() => {
|
|
2444
|
-
const f =
|
|
2443
|
+
const f = A(a), b = +e.variableDefaultValue;
|
|
2445
2444
|
if (f == null)
|
|
2446
|
-
return isNaN(
|
|
2445
|
+
return isNaN(b) ? 0 : b;
|
|
2447
2446
|
const y = e.text.match(/\{.+\}/g) || [];
|
|
2448
2447
|
let h;
|
|
2449
|
-
const
|
|
2448
|
+
const k = new Set(Object.keys(f));
|
|
2450
2449
|
for (let x = 0; x < y.length; x++) {
|
|
2451
2450
|
const B = y[x], w = B.slice(1, B.length - 1);
|
|
2452
|
-
if (
|
|
2451
|
+
if (k.has(w)) {
|
|
2453
2452
|
h = f[w];
|
|
2454
2453
|
break;
|
|
2455
2454
|
}
|
|
2456
2455
|
}
|
|
2457
|
-
return typeof h == "number" ? h = h * 100 : typeof h == "string" && !isNaN(+h) ? h = +h * 100 : isNaN(
|
|
2456
|
+
return typeof h == "number" ? h = h * 100 : typeof h == "string" && !isNaN(+h) ? h = +h * 100 : isNaN(b) ? h = 0 : h = b * 100, e.decimalFormat && (h = +h.toFixed(2)), h;
|
|
2458
2457
|
}), s = q(() => {
|
|
2459
|
-
var
|
|
2458
|
+
var k;
|
|
2460
2459
|
let f = e.text;
|
|
2461
2460
|
if (f === "")
|
|
2462
|
-
return
|
|
2463
|
-
const
|
|
2461
|
+
return A(i);
|
|
2462
|
+
const b = e.variableDefaultValue, y = A(a), h = f.match(/\{.+\}/g) || [];
|
|
2464
2463
|
for (let x = 0; x < h.length; x++) {
|
|
2465
2464
|
const B = h[x];
|
|
2466
2465
|
let w = B.slice(1, B.length - 1);
|
|
2467
2466
|
const L = w.match(/.*/g);
|
|
2468
2467
|
for (let u = 0; u < (L == null ? void 0 : L.length); u++) {
|
|
2469
|
-
const p = (
|
|
2470
|
-
y[p] != null ? w = w.replace(p, y[p]) : w = w.replace(p,
|
|
2468
|
+
const p = (k = L[x]) == null ? void 0 : k.trim();
|
|
2469
|
+
y[p] != null ? w = w.replace(p, y[p]) : w = w.replace(p, b);
|
|
2471
2470
|
}
|
|
2472
2471
|
let C = w;
|
|
2473
2472
|
try {
|
|
@@ -2480,13 +2479,13 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2480
2479
|
return f;
|
|
2481
2480
|
}), r = Ae(e), l = I(!1), d = async () => {
|
|
2482
2481
|
var f;
|
|
2483
|
-
if (!(e.dataType !== "request" ||
|
|
2482
|
+
if (!(e.dataType !== "request" || A(n) === "design"))
|
|
2484
2483
|
try {
|
|
2485
2484
|
l.value = !0;
|
|
2486
|
-
const
|
|
2487
|
-
a.value = ((f =
|
|
2488
|
-
} catch (
|
|
2489
|
-
console.error(
|
|
2485
|
+
const b = await r();
|
|
2486
|
+
a.value = ((f = b == null ? void 0 : b.data) == null ? void 0 : f.data) || {};
|
|
2487
|
+
} catch (b) {
|
|
2488
|
+
console.error(b);
|
|
2490
2489
|
} finally {
|
|
2491
2490
|
l.value = !1;
|
|
2492
2491
|
}
|
|
@@ -2497,13 +2496,13 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2497
2496
|
}
|
|
2498
2497
|
});
|
|
2499
2498
|
const g = ue(e)("click", () => {
|
|
2500
|
-
}), { setRequest:
|
|
2499
|
+
}), { setRequest: v } = $(Ce, {
|
|
2501
2500
|
// @ts-ignore
|
|
2502
2501
|
// eslint-disable-next-line no-void
|
|
2503
|
-
setRequest: ({ id: f, sortNum:
|
|
2502
|
+
setRequest: ({ id: f, sortNum: b, requestFn: y }) => {
|
|
2504
2503
|
}
|
|
2505
2504
|
});
|
|
2506
|
-
return
|
|
2505
|
+
return v({
|
|
2507
2506
|
id: e.id,
|
|
2508
2507
|
requestFn: d,
|
|
2509
2508
|
sortNum: e.requestSort
|
|
@@ -2657,13 +2656,13 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), qn = {
|
|
|
2657
2656
|
ne(() => [e.value, e.useCurrentTime, e.operate], ([r, l, d]) => {
|
|
2658
2657
|
let c = null;
|
|
2659
2658
|
if (r ? c = Me(r) : l && (c = Me()), d && c) {
|
|
2660
|
-
const { type: m, value: g, mode:
|
|
2659
|
+
const { type: m, value: g, mode: v } = d;
|
|
2661
2660
|
switch (m) {
|
|
2662
2661
|
case "add":
|
|
2663
|
-
c = c.add(g,
|
|
2662
|
+
c = c.add(g, v);
|
|
2664
2663
|
break;
|
|
2665
2664
|
case "minus":
|
|
2666
|
-
c = c.subtract(g,
|
|
2665
|
+
c = c.subtract(g, v);
|
|
2667
2666
|
}
|
|
2668
2667
|
}
|
|
2669
2668
|
o.value = c;
|
|
@@ -2743,21 +2742,21 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2743
2742
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = Ae(e), { pageMode: a } = $(ce, {
|
|
2744
2743
|
pageMode: "normal"
|
|
2745
2744
|
}), i = I(e.data), s = I(e.value || e.data[0]), r = e.dataFieldNames, l = (y, h) => {
|
|
2746
|
-
const
|
|
2745
|
+
const k = r.label, x = r.value;
|
|
2747
2746
|
let B;
|
|
2748
|
-
const w = h[
|
|
2747
|
+
const w = h[k], L = h[x];
|
|
2749
2748
|
return w != null ? B = w : L != null && (B = L), (B == null ? void 0 : B.toLowerCase().indexOf(y == null ? void 0 : y.toLowerCase())) >= 0;
|
|
2750
2749
|
}, d = I(!1), c = async () => {
|
|
2751
2750
|
var y, h;
|
|
2752
|
-
if (!(e.dataType !== "request" ||
|
|
2751
|
+
if (!(e.dataType !== "request" || A(a) === "design")) {
|
|
2753
2752
|
d.value = !0;
|
|
2754
2753
|
try {
|
|
2755
|
-
const
|
|
2756
|
-
i.value = ((h = (y =
|
|
2757
|
-
const x =
|
|
2754
|
+
const k = await o();
|
|
2755
|
+
i.value = ((h = (y = k == null ? void 0 : k.data) == null ? void 0 : y.data) == null ? void 0 : h.rows) || [];
|
|
2756
|
+
const x = A(i)[0];
|
|
2758
2757
|
e.value === "" && x != null && (s.value = x[r.value]);
|
|
2759
|
-
} catch (
|
|
2760
|
-
console.error(
|
|
2758
|
+
} catch (k) {
|
|
2759
|
+
console.error(k);
|
|
2761
2760
|
} finally {
|
|
2762
2761
|
d.value = !1;
|
|
2763
2762
|
}
|
|
@@ -2783,13 +2782,13 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2783
2782
|
ge(e, {
|
|
2784
2783
|
selectChange: f
|
|
2785
2784
|
});
|
|
2786
|
-
const { setRequest:
|
|
2785
|
+
const { setRequest: b } = $(Ce, {
|
|
2787
2786
|
// @ts-ignore
|
|
2788
2787
|
// eslint-disable-next-line no-void
|
|
2789
|
-
setRequest: ({ id: y, sortNum: h, requestFn:
|
|
2788
|
+
setRequest: ({ id: y, sortNum: h, requestFn: k }) => {
|
|
2790
2789
|
}
|
|
2791
2790
|
});
|
|
2792
|
-
return
|
|
2791
|
+
return b({
|
|
2793
2792
|
id: e.id,
|
|
2794
2793
|
requestFn: c,
|
|
2795
2794
|
sortNum: e.requestSort
|
|
@@ -2851,19 +2850,19 @@ const Oi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-dd2bcf63
|
|
|
2851
2850
|
},
|
|
2852
2851
|
setup(e) {
|
|
2853
2852
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I([null, null]);
|
|
2854
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, m, g,
|
|
2855
|
-
let
|
|
2856
|
-
if (m && (
|
|
2857
|
-
const { type: h, value:
|
|
2853
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, m, g, v, f]) => {
|
|
2854
|
+
let b = null, y = null;
|
|
2855
|
+
if (m && (b = Me().subtract(g, v), y = Me()), d && (b = Me(d)), c && (y = Me(c)), f) {
|
|
2856
|
+
const { type: h, value: k, mode: x } = f;
|
|
2858
2857
|
switch (h) {
|
|
2859
2858
|
case "add":
|
|
2860
|
-
|
|
2859
|
+
b = b && b.add(k, x), y = y && y.add(k, x);
|
|
2861
2860
|
break;
|
|
2862
2861
|
case "minus":
|
|
2863
|
-
|
|
2862
|
+
b = b && b.subtract(k, x), y = y && y.subtract(k, x);
|
|
2864
2863
|
}
|
|
2865
2864
|
}
|
|
2866
|
-
o.value = [
|
|
2865
|
+
o.value = [b, y];
|
|
2867
2866
|
}, {
|
|
2868
2867
|
immediate: !0
|
|
2869
2868
|
});
|
|
@@ -2872,7 +2871,7 @@ const Oi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-dd2bcf63
|
|
|
2872
2871
|
// eslint-disable-next-line no-void
|
|
2873
2872
|
setGlobalModel: (d, c) => {
|
|
2874
2873
|
}
|
|
2875
|
-
}), i = q(() =>
|
|
2874
|
+
}), i = q(() => A(o)[0]), s = q(() => A(o)[1]);
|
|
2876
2875
|
a(e.id, {
|
|
2877
2876
|
type: e.type,
|
|
2878
2877
|
format: e.format,
|
|
@@ -2935,14 +2934,14 @@ const Ni = /* @__PURE__ */ K(Di, [["render", zi], ["__scopeId", "data-v-adf450ac
|
|
|
2935
2934
|
},
|
|
2936
2935
|
setup(e) {
|
|
2937
2936
|
const n = ie(e), o = ue(e)("click", () => {
|
|
2938
|
-
const r =
|
|
2937
|
+
const r = A(i);
|
|
2939
2938
|
r && e.target === "event" && window.parent.postMessage({
|
|
2940
2939
|
type: "openPage",
|
|
2941
2940
|
url: r
|
|
2942
2941
|
}, "*");
|
|
2943
2942
|
}), a = q(() => be(e.text)), i = q(() => be(e.href) || null), s = q(() => {
|
|
2944
2943
|
const r = e.target;
|
|
2945
|
-
if (!(r === "event" ||
|
|
2944
|
+
if (!(r === "event" || A(i) == null))
|
|
2946
2945
|
return {
|
|
2947
2946
|
self: "_self",
|
|
2948
2947
|
blank: "_blank"
|
|
@@ -3010,11 +3009,11 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3010
3009
|
},
|
|
3011
3010
|
setup(e) {
|
|
3012
3011
|
const n = ie(e), t = I([]), o = I([]), a = (f) => {
|
|
3013
|
-
const
|
|
3012
|
+
const b = e.value;
|
|
3014
3013
|
let y = [];
|
|
3015
3014
|
f.forEach((h) => {
|
|
3016
3015
|
h.checked && y.push(h.value);
|
|
3017
|
-
}), typeof
|
|
3016
|
+
}), typeof b == "string" && b !== "" ? y = y.concat(b.split(",")) : Array.isArray(b) && (y = y.concat(b)), t.value = f, o.value = y;
|
|
3018
3017
|
};
|
|
3019
3018
|
ne(() => [e.data, e.value], ([f]) => {
|
|
3020
3019
|
a(f);
|
|
@@ -3026,10 +3025,10 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3026
3025
|
pageMode: "normal"
|
|
3027
3026
|
}), r = async () => {
|
|
3028
3027
|
var y, h;
|
|
3029
|
-
if (e.dataType !== "request" ||
|
|
3028
|
+
if (e.dataType !== "request" || A(s) === "design")
|
|
3030
3029
|
return;
|
|
3031
|
-
const f = await i(),
|
|
3032
|
-
a(
|
|
3030
|
+
const f = await i(), b = ((h = (y = f == null ? void 0 : f.data) == null ? void 0 : y.data) == null ? void 0 : h.rows) || [];
|
|
3031
|
+
a(b);
|
|
3033
3032
|
}, l = e.id, { getGlobalModel: d, setGlobalModel: c } = $(de, {
|
|
3034
3033
|
// @ts-ignore
|
|
3035
3034
|
// eslint-disable-next-line no-void
|
|
@@ -3037,7 +3036,7 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3037
3036
|
},
|
|
3038
3037
|
// @ts-ignore
|
|
3039
3038
|
// eslint-disable-next-line no-void
|
|
3040
|
-
setGlobalModel: (f,
|
|
3039
|
+
setGlobalModel: (f, b) => {
|
|
3041
3040
|
}
|
|
3042
3041
|
});
|
|
3043
3042
|
c(e.id, {
|
|
@@ -3047,13 +3046,13 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3047
3046
|
const g = ue(e)("checkboxChange", () => {
|
|
3048
3047
|
const f = d(l);
|
|
3049
3048
|
c(l, { ...f, RECORD: o });
|
|
3050
|
-
}), { setRequest:
|
|
3049
|
+
}), { setRequest: v } = $(Ce, {
|
|
3051
3050
|
// @ts-ignore
|
|
3052
3051
|
// eslint-disable-next-line no-void
|
|
3053
|
-
setRequest: ({ id: f, sortNum:
|
|
3052
|
+
setRequest: ({ id: f, sortNum: b, requestFn: y }) => {
|
|
3054
3053
|
}
|
|
3055
3054
|
});
|
|
3056
|
-
return
|
|
3055
|
+
return v({
|
|
3057
3056
|
id: e.id,
|
|
3058
3057
|
requestFn: r,
|
|
3059
3058
|
sortNum: e.requestSort
|
|
@@ -3170,7 +3169,7 @@ const Yi = Q({
|
|
|
3170
3169
|
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
3171
3170
|
o.value = !1;
|
|
3172
3171
|
}, i = q(() => {
|
|
3173
|
-
let { data: L = [] } =
|
|
3172
|
+
let { data: L = [] } = A(t)[0] || {};
|
|
3174
3173
|
if (Array.isArray(e.colors)) {
|
|
3175
3174
|
const C = e.isUseLabelColors, u = e.colors;
|
|
3176
3175
|
L = L.map((p, T) => ({
|
|
@@ -3323,14 +3322,14 @@ const Yi = Q({
|
|
|
3323
3322
|
t.value = u.dataset;
|
|
3324
3323
|
};
|
|
3325
3324
|
ne(() => e.data, (L) => {
|
|
3326
|
-
(e.dataType === "static" ||
|
|
3325
|
+
(e.dataType === "static" || A(l) === "design") && d(L);
|
|
3327
3326
|
}, {
|
|
3328
3327
|
immediate: !0,
|
|
3329
3328
|
deep: !0
|
|
3330
3329
|
});
|
|
3331
|
-
const m = I(!1), g = Ae(e),
|
|
3330
|
+
const m = I(!1), g = Ae(e), v = async () => {
|
|
3332
3331
|
var L, C;
|
|
3333
|
-
if (!(e.dataType !== "request" ||
|
|
3332
|
+
if (!(e.dataType !== "request" || A(l) === "design"))
|
|
3334
3333
|
try {
|
|
3335
3334
|
m.value = !0;
|
|
3336
3335
|
const u = await g();
|
|
@@ -3340,12 +3339,12 @@ const Yi = Q({
|
|
|
3340
3339
|
} finally {
|
|
3341
3340
|
m.value = !1;
|
|
3342
3341
|
}
|
|
3343
|
-
},
|
|
3342
|
+
}, b = ue(e)("click", (L) => {
|
|
3344
3343
|
const C = e.id, u = s(C);
|
|
3345
3344
|
r(C, { ...u, RECORD: L == null ? void 0 : L.data });
|
|
3346
3345
|
}), y = Dt(e), h = async () => {
|
|
3347
3346
|
var L, C, u, p, T, F;
|
|
3348
|
-
if (!(e.dataType !== "indicator" ||
|
|
3347
|
+
if (!(e.dataType !== "indicator" || A(l) === "design"))
|
|
3349
3348
|
try {
|
|
3350
3349
|
m.value = !0;
|
|
3351
3350
|
const S = await y();
|
|
@@ -3363,8 +3362,8 @@ const Yi = Q({
|
|
|
3363
3362
|
} finally {
|
|
3364
3363
|
m.value = !1;
|
|
3365
3364
|
}
|
|
3366
|
-
},
|
|
3367
|
-
|
|
3365
|
+
}, k = () => {
|
|
3366
|
+
A(l) !== "design" && (h(), v());
|
|
3368
3367
|
};
|
|
3369
3368
|
ge(e, {
|
|
3370
3369
|
resetRecord: () => {
|
|
@@ -3372,9 +3371,9 @@ const Yi = Q({
|
|
|
3372
3371
|
r(L, { ...C, RECORD: "" });
|
|
3373
3372
|
},
|
|
3374
3373
|
refreshData: () => {
|
|
3375
|
-
|
|
3374
|
+
k();
|
|
3376
3375
|
},
|
|
3377
|
-
click:
|
|
3376
|
+
click: b
|
|
3378
3377
|
});
|
|
3379
3378
|
const { setRequest: w } = $(Ce, {
|
|
3380
3379
|
// @ts-ignore
|
|
@@ -3384,12 +3383,12 @@ const Yi = Q({
|
|
|
3384
3383
|
});
|
|
3385
3384
|
return w({
|
|
3386
3385
|
id: e.id,
|
|
3387
|
-
requestFn:
|
|
3386
|
+
requestFn: k,
|
|
3388
3387
|
sortNum: e.requestSort
|
|
3389
3388
|
}), {
|
|
3390
3389
|
option: i,
|
|
3391
3390
|
style: n,
|
|
3392
|
-
click:
|
|
3391
|
+
click: b,
|
|
3393
3392
|
loading: m,
|
|
3394
3393
|
visible: o,
|
|
3395
3394
|
hideModal: a
|
|
@@ -3601,7 +3600,7 @@ const tr = Q({
|
|
|
3601
3600
|
},
|
|
3602
3601
|
xAxis: {
|
|
3603
3602
|
type: "category",
|
|
3604
|
-
data:
|
|
3603
|
+
data: A(o),
|
|
3605
3604
|
minInterval: e.xAxisMinInterval,
|
|
3606
3605
|
splitLine: {
|
|
3607
3606
|
show: e.xAxisSplitLineShow,
|
|
@@ -3652,7 +3651,7 @@ const tr = Q({
|
|
|
3652
3651
|
top: e.legendTop,
|
|
3653
3652
|
left: e.legendLeft
|
|
3654
3653
|
},
|
|
3655
|
-
series:
|
|
3654
|
+
series: A(t)
|
|
3656
3655
|
};
|
|
3657
3656
|
}), { getGlobalModel: r, setGlobalModel: l } = $(de, {
|
|
3658
3657
|
// @ts-ignore
|
|
@@ -3720,17 +3719,17 @@ const tr = Q({
|
|
|
3720
3719
|
t.value = _;
|
|
3721
3720
|
};
|
|
3722
3721
|
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([C]) => {
|
|
3723
|
-
(e.dataType === "static" ||
|
|
3722
|
+
(e.dataType === "static" || A(d) === "design") && c(C);
|
|
3724
3723
|
}, {
|
|
3725
3724
|
immediate: !0,
|
|
3726
3725
|
deep: !0
|
|
3727
3726
|
});
|
|
3728
|
-
const g = I(!1),
|
|
3727
|
+
const g = I(!1), v = Ae(e), f = async () => {
|
|
3729
3728
|
var C, u;
|
|
3730
|
-
if (!(e.dataType !== "request" ||
|
|
3729
|
+
if (!(e.dataType !== "request" || A(d) === "design"))
|
|
3731
3730
|
try {
|
|
3732
3731
|
g.value = !0;
|
|
3733
|
-
const p = await
|
|
3732
|
+
const p = await v();
|
|
3734
3733
|
c((u = (C = p == null ? void 0 : p.data) == null ? void 0 : C.data) == null ? void 0 : u.rows, !0);
|
|
3735
3734
|
} catch (p) {
|
|
3736
3735
|
console.error(p);
|
|
@@ -3740,9 +3739,9 @@ const tr = Q({
|
|
|
3740
3739
|
}, y = ue(e)("click", (C) => {
|
|
3741
3740
|
const u = e.id, p = r(u);
|
|
3742
3741
|
l(u, { ...p, RECORD: C == null ? void 0 : C.data });
|
|
3743
|
-
}), h = Dt(e),
|
|
3742
|
+
}), h = Dt(e), k = async () => {
|
|
3744
3743
|
var C, u, p, T, F;
|
|
3745
|
-
if (!(e.dataType !== "indicator" ||
|
|
3744
|
+
if (!(e.dataType !== "indicator" || A(d) === "design"))
|
|
3746
3745
|
try {
|
|
3747
3746
|
g.value = !0;
|
|
3748
3747
|
const S = await h();
|
|
@@ -3757,7 +3756,7 @@ const tr = Q({
|
|
|
3757
3756
|
g.value = !1;
|
|
3758
3757
|
}
|
|
3759
3758
|
}, x = () => {
|
|
3760
|
-
|
|
3759
|
+
A(d) !== "design" && (k(), f());
|
|
3761
3760
|
};
|
|
3762
3761
|
ge(e, {
|
|
3763
3762
|
refreshData: () => {
|
|
@@ -3943,7 +3942,7 @@ const ir = Q({
|
|
|
3943
3942
|
const t = ie(e), o = I([]), a = I(!1), i = () => {
|
|
3944
3943
|
a.value = !1;
|
|
3945
3944
|
}, s = q(() => {
|
|
3946
|
-
const u =
|
|
3945
|
+
const u = A(o), p = u.length, T = [];
|
|
3947
3946
|
for (let F = 0; F < p; F++) {
|
|
3948
3947
|
const S = {
|
|
3949
3948
|
...u[F],
|
|
@@ -4056,7 +4055,7 @@ const ir = Q({
|
|
|
4056
4055
|
},
|
|
4057
4056
|
xAxis: {
|
|
4058
4057
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4059
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4058
|
+
data: e.isUseHorizontalAxis ? null : A(r),
|
|
4060
4059
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4061
4060
|
minInterval: e.xAxisMinInterval,
|
|
4062
4061
|
splitLine: {
|
|
@@ -4086,7 +4085,7 @@ const ir = Q({
|
|
|
4086
4085
|
},
|
|
4087
4086
|
yAxis: {
|
|
4088
4087
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4089
|
-
data: e.isUseHorizontalAxis ?
|
|
4088
|
+
data: e.isUseHorizontalAxis ? A(r) : null,
|
|
4090
4089
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4091
4090
|
minInterval: e.yAxisMinInterval,
|
|
4092
4091
|
splitLine: {
|
|
@@ -4110,7 +4109,7 @@ const ir = Q({
|
|
|
4110
4109
|
}
|
|
4111
4110
|
}
|
|
4112
4111
|
},
|
|
4113
|
-
series:
|
|
4112
|
+
series: A(s)
|
|
4114
4113
|
};
|
|
4115
4114
|
}), { pageMode: c } = $(ce, {
|
|
4116
4115
|
pageMode: "normal"
|
|
@@ -4129,27 +4128,27 @@ const ir = Q({
|
|
|
4129
4128
|
o.value = S.dataset, r.value = S.dimensions;
|
|
4130
4129
|
};
|
|
4131
4130
|
ne(() => e.data, (u) => {
|
|
4132
|
-
(e.dataType === "static" ||
|
|
4131
|
+
(e.dataType === "static" || A(c) === "design") && m(u);
|
|
4133
4132
|
}, {
|
|
4134
4133
|
immediate: !0,
|
|
4135
4134
|
deep: !0
|
|
4136
4135
|
});
|
|
4137
|
-
const
|
|
4136
|
+
const v = Ae(e), f = async () => {
|
|
4138
4137
|
var u, p;
|
|
4139
4138
|
try {
|
|
4140
4139
|
l.value = !0;
|
|
4141
|
-
const T = await
|
|
4140
|
+
const T = await v();
|
|
4142
4141
|
m((p = (u = T == null ? void 0 : T.data) == null ? void 0 : u.data) == null ? void 0 : p.rows, !0);
|
|
4143
4142
|
} catch (T) {
|
|
4144
4143
|
console.error(T);
|
|
4145
4144
|
} finally {
|
|
4146
4145
|
l.value = !1;
|
|
4147
4146
|
}
|
|
4148
|
-
},
|
|
4147
|
+
}, b = Mn(e), y = async () => {
|
|
4149
4148
|
var u;
|
|
4150
4149
|
try {
|
|
4151
4150
|
l.value = !0;
|
|
4152
|
-
const p = await
|
|
4151
|
+
const p = await b(), { columns: T = [], rows: F = [] } = ((u = p == null ? void 0 : p.data) == null ? void 0 : u.data) ?? {};
|
|
4153
4152
|
let S;
|
|
4154
4153
|
T.length > 0 && (S = {
|
|
4155
4154
|
name: T[0],
|
|
@@ -4164,7 +4163,7 @@ const ir = Q({
|
|
|
4164
4163
|
l.value = !1;
|
|
4165
4164
|
}
|
|
4166
4165
|
}, h = () => {
|
|
4167
|
-
if (
|
|
4166
|
+
if (A(c) !== "design")
|
|
4168
4167
|
switch (e.dataType) {
|
|
4169
4168
|
case "indicator":
|
|
4170
4169
|
y();
|
|
@@ -4177,7 +4176,7 @@ const ir = Q({
|
|
|
4177
4176
|
n({
|
|
4178
4177
|
refreshData: h
|
|
4179
4178
|
});
|
|
4180
|
-
const
|
|
4179
|
+
const k = ue(e), { getGlobalModel: x, setGlobalModel: B } = $(de, {
|
|
4181
4180
|
// @ts-ignore
|
|
4182
4181
|
// eslint-disable-next-line no-void
|
|
4183
4182
|
getGlobalModel: (u) => {
|
|
@@ -4186,7 +4185,7 @@ const ir = Q({
|
|
|
4186
4185
|
// eslint-disable-next-line no-void
|
|
4187
4186
|
setGlobalModel: (u, p) => {
|
|
4188
4187
|
}
|
|
4189
|
-
}), w =
|
|
4188
|
+
}), w = k("click", (u) => {
|
|
4190
4189
|
const p = e.id, T = x(p);
|
|
4191
4190
|
B(p, { ...T, RECORD: u.data });
|
|
4192
4191
|
}), { setRequest: L } = $(Ce, {
|
|
@@ -4334,7 +4333,7 @@ const ur = Q({
|
|
|
4334
4333
|
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
4335
4334
|
o.value = !1;
|
|
4336
4335
|
}, i = q(() => {
|
|
4337
|
-
const h = e.xAxisLabelFormatter,
|
|
4336
|
+
const h = e.xAxisLabelFormatter, k = e.yAxisLabelFormatter;
|
|
4338
4337
|
return {
|
|
4339
4338
|
toolbox: {
|
|
4340
4339
|
show: e.toolboxShow,
|
|
@@ -4418,7 +4417,7 @@ const ur = Q({
|
|
|
4418
4417
|
axisLabel: {
|
|
4419
4418
|
color: e.yAxisLabelColor,
|
|
4420
4419
|
formatter(x) {
|
|
4421
|
-
return De(
|
|
4420
|
+
return De(k, x);
|
|
4422
4421
|
}
|
|
4423
4422
|
},
|
|
4424
4423
|
axisLine: {
|
|
@@ -4456,7 +4455,7 @@ const ur = Q({
|
|
|
4456
4455
|
},
|
|
4457
4456
|
series: [
|
|
4458
4457
|
{
|
|
4459
|
-
data:
|
|
4458
|
+
data: A(t),
|
|
4460
4459
|
type: "scatter",
|
|
4461
4460
|
symbolSize: e.symbolSize
|
|
4462
4461
|
}
|
|
@@ -4469,27 +4468,27 @@ const ur = Q({
|
|
|
4469
4468
|
},
|
|
4470
4469
|
// @ts-ignore
|
|
4471
4470
|
// eslint-disable-next-line no-void
|
|
4472
|
-
setGlobalModel: (h,
|
|
4471
|
+
setGlobalModel: (h, k) => {
|
|
4473
4472
|
}
|
|
4474
4473
|
}), { pageMode: l } = $(ce, {
|
|
4475
4474
|
pageMode: "normal"
|
|
4476
|
-
}), d = (h = [],
|
|
4477
|
-
const { name: x = "name", value: B = "value" } =
|
|
4475
|
+
}), d = (h = [], k) => {
|
|
4476
|
+
const { name: x = "name", value: B = "value" } = k || {};
|
|
4478
4477
|
t.value = h.map((w) => ({ value: [w[x], w[B]], record: w }));
|
|
4479
4478
|
};
|
|
4480
4479
|
ne(() => e.data, (h) => {
|
|
4481
|
-
(e.dataType === "static" ||
|
|
4480
|
+
(e.dataType === "static" || A(l) === "design") && d(h);
|
|
4482
4481
|
}, {
|
|
4483
4482
|
immediate: !0,
|
|
4484
4483
|
deep: !0
|
|
4485
4484
|
});
|
|
4486
4485
|
const c = I(!1), m = Ae(e), g = async () => {
|
|
4487
|
-
var h,
|
|
4488
|
-
if (!(e.dataType !== "request" ||
|
|
4486
|
+
var h, k;
|
|
4487
|
+
if (!(e.dataType !== "request" || A(l) === "design")) {
|
|
4489
4488
|
c.value = !0;
|
|
4490
4489
|
try {
|
|
4491
4490
|
const x = await m();
|
|
4492
|
-
d((
|
|
4491
|
+
d((k = (h = x == null ? void 0 : x.data) == null ? void 0 : h.data) == null ? void 0 : k.rows, e.dataFieldNames);
|
|
4493
4492
|
} catch (x) {
|
|
4494
4493
|
console.error(x);
|
|
4495
4494
|
} finally {
|
|
@@ -4497,8 +4496,8 @@ const ur = Q({
|
|
|
4497
4496
|
}
|
|
4498
4497
|
}
|
|
4499
4498
|
}, f = ue(e)("click", (h) => {
|
|
4500
|
-
const
|
|
4501
|
-
r(
|
|
4499
|
+
const k = e.id, x = s(k);
|
|
4500
|
+
r(k, { ...x, RECORD: h == null ? void 0 : h.data });
|
|
4502
4501
|
});
|
|
4503
4502
|
ge(e, {
|
|
4504
4503
|
refreshData: () => {
|
|
@@ -4509,7 +4508,7 @@ const ur = Q({
|
|
|
4509
4508
|
const { setRequest: y } = $(Ce, {
|
|
4510
4509
|
// @ts-ignore
|
|
4511
4510
|
// eslint-disable-next-line no-void
|
|
4512
|
-
setRequest: ({ id: h, sortNum:
|
|
4511
|
+
setRequest: ({ id: h, sortNum: k, requestFn: x }) => {
|
|
4513
4512
|
}
|
|
4514
4513
|
});
|
|
4515
4514
|
return y({
|
|
@@ -4836,7 +4835,7 @@ const Cr = Q({
|
|
|
4836
4835
|
xAxis: {
|
|
4837
4836
|
minInterval: e.xAxisMinInterval,
|
|
4838
4837
|
type: "category",
|
|
4839
|
-
data:
|
|
4838
|
+
data: A(o),
|
|
4840
4839
|
splitLine: {
|
|
4841
4840
|
show: e.xAxisSplitLineShow,
|
|
4842
4841
|
lineStyle: {
|
|
@@ -4855,8 +4854,8 @@ const Cr = Q({
|
|
|
4855
4854
|
show: e.xAxisTickShow
|
|
4856
4855
|
}
|
|
4857
4856
|
},
|
|
4858
|
-
yAxis:
|
|
4859
|
-
series:
|
|
4857
|
+
yAxis: A(c),
|
|
4858
|
+
series: A(t)
|
|
4860
4859
|
})), { pageMode: r } = $(ce, {
|
|
4861
4860
|
pageMode: "normal"
|
|
4862
4861
|
}), l = (u = [], p = !1) => {
|
|
@@ -4908,7 +4907,7 @@ const Cr = Q({
|
|
|
4908
4907
|
t.value = U;
|
|
4909
4908
|
};
|
|
4910
4909
|
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([u]) => {
|
|
4911
|
-
(e.dataType === "static" ||
|
|
4910
|
+
(e.dataType === "static" || A(r) === "design") && l(u);
|
|
4912
4911
|
}, {
|
|
4913
4912
|
immediate: !0,
|
|
4914
4913
|
deep: !0
|
|
@@ -4936,9 +4935,9 @@ const Cr = Q({
|
|
|
4936
4935
|
}
|
|
4937
4936
|
}
|
|
4938
4937
|
}));
|
|
4939
|
-
}), m = I(!1), g = Ae(e),
|
|
4938
|
+
}), m = I(!1), g = Ae(e), v = async () => {
|
|
4940
4939
|
var u, p;
|
|
4941
|
-
if (!(e.dataType !== "request" ||
|
|
4940
|
+
if (!(e.dataType !== "request" || A(r) === "design"))
|
|
4942
4941
|
try {
|
|
4943
4942
|
m.value = !0;
|
|
4944
4943
|
const T = await g();
|
|
@@ -4948,9 +4947,9 @@ const Cr = Q({
|
|
|
4948
4947
|
} finally {
|
|
4949
4948
|
m.value = !1;
|
|
4950
4949
|
}
|
|
4951
|
-
}, f = Dt(e),
|
|
4950
|
+
}, f = Dt(e), b = async () => {
|
|
4952
4951
|
var u, p, T, F, S;
|
|
4953
|
-
if (!(e.dataType !== "indicator" ||
|
|
4952
|
+
if (!(e.dataType !== "indicator" || A(r) === "design"))
|
|
4954
4953
|
try {
|
|
4955
4954
|
m.value = !0;
|
|
4956
4955
|
const _ = await f();
|
|
@@ -4965,10 +4964,10 @@ const Cr = Q({
|
|
|
4965
4964
|
m.value = !1;
|
|
4966
4965
|
}
|
|
4967
4966
|
}, y = () => {
|
|
4968
|
-
|
|
4967
|
+
A(r) !== "design" && (b(), v());
|
|
4969
4968
|
}, h = () => {
|
|
4970
4969
|
y();
|
|
4971
|
-
},
|
|
4970
|
+
}, k = ue(e), { getGlobalModel: x, setGlobalModel: B } = $(de, {
|
|
4972
4971
|
// @ts-ignore
|
|
4973
4972
|
// eslint-disable-next-line no-void
|
|
4974
4973
|
getGlobalModel: (u) => {
|
|
@@ -4977,7 +4976,7 @@ const Cr = Q({
|
|
|
4977
4976
|
// eslint-disable-next-line no-void
|
|
4978
4977
|
setGlobalModel: (u, p) => {
|
|
4979
4978
|
}
|
|
4980
|
-
}), w =
|
|
4979
|
+
}), w = k("click", (u) => {
|
|
4981
4980
|
const p = e.id, T = x(p);
|
|
4982
4981
|
B(p, { ...T, RECORD: u == null ? void 0 : u.data });
|
|
4983
4982
|
}), { setRequest: L } = $(Ce, {
|
|
@@ -5200,24 +5199,24 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-f3fc1305
|
|
|
5200
5199
|
bottom: "bottom"
|
|
5201
5200
|
}[z]
|
|
5202
5201
|
};
|
|
5203
|
-
}), o = e.width, a = e.height, i = e.originalWidth, s = e.originalHeight, r = I("80%"), l = I(0), d = I(), c = I(0), m = I({}), g = ie(e),
|
|
5202
|
+
}), o = e.width, a = e.height, i = e.originalWidth, s = e.originalHeight, r = I("80%"), l = I(0), d = I(), c = I(0), m = I({}), g = ie(e), v = I({}), f = I(!1), b = I();
|
|
5204
5203
|
let y;
|
|
5205
5204
|
const h = () => {
|
|
5206
5205
|
d.value = parseFloat(o) / parseFloat(i);
|
|
5207
5206
|
const z = parseFloat(a) / parseFloat(s), W = document.body.offsetWidth, ee = document.body.offsetHeight;
|
|
5208
|
-
l.value = W *
|
|
5209
|
-
width: `${
|
|
5210
|
-
height: `${
|
|
5211
|
-
},
|
|
5212
|
-
...
|
|
5207
|
+
l.value = W * A(d), c.value = ee * z, r.value = `${A(d) * 100}%`, m.value = {
|
|
5208
|
+
width: `${A(l)}px`,
|
|
5209
|
+
height: `${A(c)}px`
|
|
5210
|
+
}, v.value = {
|
|
5211
|
+
...A(g),
|
|
5213
5212
|
backgroundImage: Re(e.backgroundImage, !0),
|
|
5214
|
-
transform: `scale(${
|
|
5213
|
+
transform: `scale(${A(l) / parseFloat(o)},${A(c) / parseFloat(a)})`
|
|
5215
5214
|
};
|
|
5216
|
-
},
|
|
5215
|
+
}, k = It(() => {
|
|
5217
5216
|
h();
|
|
5218
5217
|
}, 100), x = () => {
|
|
5219
5218
|
const z = window.MutationObserver;
|
|
5220
|
-
y = new z(
|
|
5219
|
+
y = new z(k), y.observe(document.body, {
|
|
5221
5220
|
attributes: !0,
|
|
5222
5221
|
attributeFilter: ["style"],
|
|
5223
5222
|
attributeOldValue: !0
|
|
@@ -5252,19 +5251,19 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-f3fc1305
|
|
|
5252
5251
|
};
|
|
5253
5252
|
ne(() => w.value, async (z) => {
|
|
5254
5253
|
z ? (f.value = !1, S(e.id), U(), await ft(() => {
|
|
5255
|
-
h(), window.addEventListener("resize",
|
|
5256
|
-
}), L()) : (_(), window.removeEventListener("resize",
|
|
5254
|
+
h(), window.addEventListener("resize", k), x(), f.value = !0;
|
|
5255
|
+
}), L()) : (_(), window.removeEventListener("resize", k), B());
|
|
5257
5256
|
});
|
|
5258
|
-
const H = q(() =>
|
|
5257
|
+
const H = q(() => A(d) >= 1), O = q(() => e.fullModal), N = q(() => {
|
|
5259
5258
|
let z = "ecan-modal";
|
|
5260
|
-
return
|
|
5259
|
+
return A(H) && (z += " ecan-full-width-modal"), A(O) && (z += " ecan-full-modal"), z;
|
|
5261
5260
|
});
|
|
5262
5261
|
return ge(e, {
|
|
5263
5262
|
showModal: C
|
|
5264
5263
|
}), {
|
|
5265
|
-
modalRef:
|
|
5264
|
+
modalRef: b,
|
|
5266
5265
|
containStyle: m,
|
|
5267
|
-
contentStyle:
|
|
5266
|
+
contentStyle: v,
|
|
5268
5267
|
getContainer: n,
|
|
5269
5268
|
modalStyle: t,
|
|
5270
5269
|
modalWith: r,
|
|
@@ -5382,7 +5381,7 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-0447cd77
|
|
|
5382
5381
|
immediate: !0,
|
|
5383
5382
|
deep: !0
|
|
5384
5383
|
});
|
|
5385
|
-
const a = (m) => t.value === m, i = I(e.value ||
|
|
5384
|
+
const a = (m) => t.value === m, i = I(e.value || A(o)[0] && ((c = A(o)[0]) == null ? void 0 : c.value) || ""), s = ue(e), { setGlobalModel: r } = $(de, {
|
|
5386
5385
|
// @ts-ignore
|
|
5387
5386
|
// eslint-disable-next-line no-void
|
|
5388
5387
|
setGlobalModel: (m, g) => {
|
|
@@ -5397,7 +5396,7 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-0447cd77
|
|
|
5397
5396
|
emitRefreshPage: () => {
|
|
5398
5397
|
}
|
|
5399
5398
|
}), d = s("tabChange", (m, g) => {
|
|
5400
|
-
g !==
|
|
5399
|
+
g !== A(t) && (i.value = (m == null ? void 0 : m.value) || "", t.value = g, l());
|
|
5401
5400
|
});
|
|
5402
5401
|
return ge(e, {
|
|
5403
5402
|
tabChange: d
|
|
@@ -5475,7 +5474,7 @@ const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-3db5a989
|
|
|
5475
5474
|
onClick: () => {
|
|
5476
5475
|
if (!e.linkPage && !e.href)
|
|
5477
5476
|
return;
|
|
5478
|
-
const i = e.linkPage || "", s = In(
|
|
5477
|
+
const i = e.linkPage || "", s = In(A(o), i), r = e.href;
|
|
5479
5478
|
let l = r || s;
|
|
5480
5479
|
l = be(l);
|
|
5481
5480
|
const d = e.target;
|
|
@@ -5520,7 +5519,7 @@ const is = /* @__PURE__ */ K(os, [["render", ls], ["__scopeId", "data-v-9706b851
|
|
|
5520
5519
|
}), o = q(() => {
|
|
5521
5520
|
let a = be(e.link);
|
|
5522
5521
|
if (e.linkType === "erd" && a != null) {
|
|
5523
|
-
let i =
|
|
5522
|
+
let i = A(t);
|
|
5524
5523
|
i[i.length - 1] === "/" ? i += "erdReport" : i += "/erdReport", a = `${Al || i}?_t=0&uid=${a}`;
|
|
5525
5524
|
}
|
|
5526
5525
|
return a;
|
|
@@ -5645,7 +5644,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5645
5644
|
default:
|
|
5646
5645
|
return 55;
|
|
5647
5646
|
}
|
|
5648
|
-
}), a = q(() => e.scrollX), i = q(() => parseFloat(e.height) -
|
|
5647
|
+
}), a = q(() => e.scrollX), i = q(() => parseFloat(e.height) - A(o)), s = I([]), r = I([]), l = I([]), d = I([]), c = I(0), m = I(1), g = q(() => e.paginationPageSize), v = Ro([]), f = (M = []) => {
|
|
5649
5648
|
if (Array.isArray(M) && M.length > 0) {
|
|
5650
5649
|
const D = M.length, V = e.columnsFixedNum;
|
|
5651
5650
|
for (let J = 0; J < D; J++) {
|
|
@@ -5660,7 +5659,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5660
5659
|
headerCellAlign: Ue,
|
|
5661
5660
|
headerCellColor: ot
|
|
5662
5661
|
} = P;
|
|
5663
|
-
me && (
|
|
5662
|
+
me && (v.push(fe), P.filterOptionsInputValue = "", P.filterCheckboxGroupValue = [], P.customFilterDropdown = !0, P.onFilter = (qe, ht) => ht[fe].toString().toLowerCase().includes(qe.toLowerCase())), P.customHeaderCell = () => ({
|
|
5664
5663
|
style: {
|
|
5665
5664
|
display: "table-cell",
|
|
5666
5665
|
verticalAlign: "middle",
|
|
@@ -5678,7 +5677,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5678
5677
|
borderBottomColor: e.borderColor
|
|
5679
5678
|
},
|
|
5680
5679
|
class: {
|
|
5681
|
-
highlight:
|
|
5680
|
+
highlight: A(W) === ht && e.clickHighlight
|
|
5682
5681
|
},
|
|
5683
5682
|
onClick: S("click", () => {
|
|
5684
5683
|
const zt = e.id, Lo = U(zt);
|
|
@@ -5691,7 +5690,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5691
5690
|
}), Array.isArray(P.children) && f(P.children);
|
|
5692
5691
|
}
|
|
5693
5692
|
}
|
|
5694
|
-
},
|
|
5693
|
+
}, b = (M = []) => (e.isUseSeq && M.unshift({
|
|
5695
5694
|
title: "序号",
|
|
5696
5695
|
dataIndex: "SEQ",
|
|
5697
5696
|
align: "center"
|
|
@@ -5709,7 +5708,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5709
5708
|
e.cellBackgroundColor,
|
|
5710
5709
|
e.borderColor
|
|
5711
5710
|
], () => {
|
|
5712
|
-
s.value =
|
|
5711
|
+
s.value = b(bt(e.columns));
|
|
5713
5712
|
}, {
|
|
5714
5713
|
immediate: !0,
|
|
5715
5714
|
deep: !0
|
|
@@ -5720,7 +5719,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5720
5719
|
});
|
|
5721
5720
|
const y = I({}), h = (M) => {
|
|
5722
5721
|
if (Array.isArray(M)) {
|
|
5723
|
-
const D = M.length, V =
|
|
5722
|
+
const D = M.length, V = v, J = V.length, P = {};
|
|
5724
5723
|
for (let le = 0; le < D; le++) {
|
|
5725
5724
|
const fe = M[le];
|
|
5726
5725
|
for (let ye = 0; ye < J; ye++) {
|
|
@@ -5743,14 +5742,14 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5743
5742
|
}
|
|
5744
5743
|
};
|
|
5745
5744
|
ne(() => [e.isReverse, s.value, r.value], () => {
|
|
5746
|
-
const M =
|
|
5745
|
+
const M = A(s), D = A(r);
|
|
5747
5746
|
if (h(D), e.isReverse) {
|
|
5748
|
-
const { columns: V, dataSource: J } =
|
|
5747
|
+
const { columns: V, dataSource: J } = k(bt(M), bt(D));
|
|
5749
5748
|
l.value = V, d.value = J;
|
|
5750
5749
|
} else
|
|
5751
5750
|
l.value = M, d.value = D;
|
|
5752
5751
|
});
|
|
5753
|
-
const
|
|
5752
|
+
const k = (M, D) => {
|
|
5754
5753
|
const V = M[0], J = [{
|
|
5755
5754
|
title: V.title,
|
|
5756
5755
|
dataIndex: "col0",
|
|
@@ -5784,9 +5783,9 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5784
5783
|
try {
|
|
5785
5784
|
M && (w.value = !0);
|
|
5786
5785
|
let V = {};
|
|
5787
|
-
|
|
5788
|
-
pageNum:
|
|
5789
|
-
pageSize:
|
|
5786
|
+
A(x) && (V.orderCondition = A(x)), e.paginationShow && (V = {
|
|
5787
|
+
pageNum: A(m),
|
|
5788
|
+
pageSize: A(g),
|
|
5790
5789
|
layer: "1",
|
|
5791
5790
|
...V
|
|
5792
5791
|
});
|
|
@@ -5811,9 +5810,9 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5811
5810
|
return e.paginationShow && {
|
|
5812
5811
|
simple: M,
|
|
5813
5812
|
position: D,
|
|
5814
|
-
total:
|
|
5815
|
-
current:
|
|
5816
|
-
pageSize:
|
|
5813
|
+
total: A(c),
|
|
5814
|
+
current: A(m),
|
|
5815
|
+
pageSize: A(g),
|
|
5817
5816
|
showSizeChanger: !1
|
|
5818
5817
|
};
|
|
5819
5818
|
}), p = (M) => +M == 1 ? "是" : +M == 0 ? "否" : M, T = (M, D) => D == null || D === "" ? M : {
|
|
@@ -5844,7 +5843,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5844
5843
|
}
|
|
5845
5844
|
}), O = (M = [], D = []) => {
|
|
5846
5845
|
const V = M.map((J) => ({ title: J, dataIndex: J, key: J }));
|
|
5847
|
-
s.value =
|
|
5846
|
+
s.value = b(V), r.value = D;
|
|
5848
5847
|
}, N = Mn(e), z = async () => {
|
|
5849
5848
|
var M, D, V, J;
|
|
5850
5849
|
try {
|
|
@@ -5862,7 +5861,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5862
5861
|
H(V, { ...J, RECORD: M }), W.value = D;
|
|
5863
5862
|
})
|
|
5864
5863
|
}), se = (M = !0) => {
|
|
5865
|
-
if (
|
|
5864
|
+
if (A(_) !== "design")
|
|
5866
5865
|
switch (e.dataType) {
|
|
5867
5866
|
case "request":
|
|
5868
5867
|
L(M);
|
|
@@ -5880,7 +5879,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5880
5879
|
refreshData: se
|
|
5881
5880
|
});
|
|
5882
5881
|
const To = q(() => {
|
|
5883
|
-
const M =
|
|
5882
|
+
const M = A(l), D = [];
|
|
5884
5883
|
let V = 0;
|
|
5885
5884
|
for (let P = 0; P < M.length; P++) {
|
|
5886
5885
|
const te = M[P], { isCalcTotal: le } = te;
|
|
@@ -5897,9 +5896,9 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5897
5896
|
}
|
|
5898
5897
|
if (V === 0)
|
|
5899
5898
|
return [];
|
|
5900
|
-
let J =
|
|
5899
|
+
let J = A(d);
|
|
5901
5900
|
if (e.paginationShow) {
|
|
5902
|
-
const P = (
|
|
5901
|
+
const P = (A(m) - 1) * A(g), te = P + A(g);
|
|
5903
5902
|
J = J.slice(P, te);
|
|
5904
5903
|
}
|
|
5905
5904
|
for (let P = 0; P < D.length; P++) {
|
|
@@ -5958,8 +5957,8 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5958
5957
|
useFilterOptions: (M) => {
|
|
5959
5958
|
const D = M.dataIndex;
|
|
5960
5959
|
if (typeof D == "string") {
|
|
5961
|
-
let V =
|
|
5962
|
-
const J =
|
|
5960
|
+
let V = A(y)[D];
|
|
5961
|
+
const J = A(M.filterOptionsInputValue).trim();
|
|
5963
5962
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(J.toLowerCase()) : !0), V) : [];
|
|
5964
5963
|
}
|
|
5965
5964
|
return [];
|
|
@@ -5980,12 +5979,12 @@ const hs = /* @__PURE__ */ dn(" 搜索 "), ys = /* @__PURE__ */ dn(" 重置 "),
|
|
|
5980
5979
|
class: "action-list"
|
|
5981
5980
|
}, ps = ["href", "target", "onClick"];
|
|
5982
5981
|
function Cs(e, n, t, o, a, i) {
|
|
5983
|
-
const s = Z("a-input"), r = Z("a-checkbox-group"), l = Z("a-button"), d = Z("a-table-summary-cell"), c = Z("a-table-summary-row"), m = Z("a-table-summary"), g = Z("a-table"),
|
|
5982
|
+
const s = Z("a-input"), r = Z("a-checkbox-group"), l = Z("a-button"), d = Z("a-table-summary-cell"), c = Z("a-table-summary-row"), m = Z("a-table-summary"), g = Z("a-table"), v = Z("skeleton");
|
|
5984
5983
|
return E(), R("div", {
|
|
5985
5984
|
class: "ecan-table",
|
|
5986
5985
|
style: G(e.style)
|
|
5987
5986
|
}, [
|
|
5988
|
-
j(
|
|
5987
|
+
j(v, { loading: e.loading }, {
|
|
5989
5988
|
default: Y(() => [
|
|
5990
5989
|
j(g, {
|
|
5991
5990
|
class: "table",
|
|
@@ -6001,7 +6000,7 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6001
6000
|
pagination: e.pagination,
|
|
6002
6001
|
onChange: e.tableChange
|
|
6003
6002
|
}, {
|
|
6004
|
-
customFilterDropdown: Y(({ column: f, selectedKeys:
|
|
6003
|
+
customFilterDropdown: Y(({ column: f, selectedKeys: b, setSelectedKeys: y, confirm: h, clearFilters: k }) => [
|
|
6005
6004
|
X("div", {
|
|
6006
6005
|
class: "ecan-table-filter",
|
|
6007
6006
|
style: G({
|
|
@@ -6037,7 +6036,7 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6037
6036
|
j(l, {
|
|
6038
6037
|
size: "small",
|
|
6039
6038
|
style: { width: "90px" },
|
|
6040
|
-
onClick: (x) => e.onResetFilter(
|
|
6039
|
+
onClick: (x) => e.onResetFilter(k, f)
|
|
6041
6040
|
}, {
|
|
6042
6041
|
default: Y(() => [
|
|
6043
6042
|
ys
|
|
@@ -6047,23 +6046,23 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6047
6046
|
])
|
|
6048
6047
|
], 4)
|
|
6049
6048
|
]),
|
|
6050
|
-
bodyCell: Y(({ column: f, index:
|
|
6051
|
-
f.dataIndex === "SEQ" ? (E(), R("span", bs, he(
|
|
6049
|
+
bodyCell: Y(({ column: f, index: b, text: y, record: h }) => [
|
|
6050
|
+
f.dataIndex === "SEQ" ? (E(), R("span", bs, he(b + 1), 1)) : pe("", !0),
|
|
6052
6051
|
f.dataIndex === "ACTION" ? (E(), R("div", vs, [
|
|
6053
|
-
(E(!0), R(Le, null, Ie(e.actionList, (
|
|
6052
|
+
(E(!0), R(Le, null, Ie(e.actionList, (k, x) => (E(), R("div", {
|
|
6054
6053
|
class: "action",
|
|
6055
6054
|
key: x
|
|
6056
6055
|
}, [
|
|
6057
6056
|
X("a", {
|
|
6058
|
-
href: e.handleHref(
|
|
6059
|
-
target: e.handleHrefTarget(
|
|
6057
|
+
href: e.handleHref(k.href, h),
|
|
6058
|
+
target: e.handleHrefTarget(k.target),
|
|
6060
6059
|
style: G({
|
|
6061
|
-
color:
|
|
6060
|
+
color: k.color,
|
|
6062
6061
|
fontSize: e.fontSize,
|
|
6063
6062
|
fontWeight: e.fontWeight
|
|
6064
6063
|
}),
|
|
6065
|
-
onClick: (B) => e.onTouchHrefEvent(
|
|
6066
|
-
}, he(
|
|
6064
|
+
onClick: (B) => e.onTouchHrefEvent(k.target, e.handleHref(k.href, h))
|
|
6065
|
+
}, he(k.title), 13, ps)
|
|
6067
6066
|
]))), 128))
|
|
6068
6067
|
])) : (E(), R("div", {
|
|
6069
6068
|
key: 2,
|
|
@@ -6079,9 +6078,9 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6079
6078
|
default: Y(() => [
|
|
6080
6079
|
j(c, null, {
|
|
6081
6080
|
default: Y(() => [
|
|
6082
|
-
(E(!0), R(Le, null, Ie(e.summaryList, (f,
|
|
6083
|
-
key:
|
|
6084
|
-
index:
|
|
6081
|
+
(E(!0), R(Le, null, Ie(e.summaryList, (f, b) => (E(), Oe(d, {
|
|
6082
|
+
key: b,
|
|
6083
|
+
index: b,
|
|
6085
6084
|
style: G({
|
|
6086
6085
|
backgroundColor: e.cellBackgroundColor,
|
|
6087
6086
|
textAlign: f.cellAlign || "center",
|
|
@@ -6174,7 +6173,7 @@ const ks = Q({
|
|
|
6174
6173
|
},
|
|
6175
6174
|
setup(e) {
|
|
6176
6175
|
const n = ie(e, ["backgroundImage"]), t = I(), o = q(() => Re(e.geoBackgroundImage)), a = q(() => Re(e.backgroundImage)), i = q(() => e.geoBackgroundImage ? {
|
|
6177
|
-
image:
|
|
6176
|
+
image: A(t),
|
|
6178
6177
|
repeat: e.geoBackgroundImageRepeat
|
|
6179
6178
|
} : e.geoItemStyleAreaColor), s = q(() => {
|
|
6180
6179
|
const c = e.symbolImage;
|
|
@@ -6194,7 +6193,7 @@ const ks = Q({
|
|
|
6194
6193
|
style: {
|
|
6195
6194
|
width: parseFloat(e.width),
|
|
6196
6195
|
height: parseFloat(e.height),
|
|
6197
|
-
image:
|
|
6196
|
+
image: A(a)
|
|
6198
6197
|
},
|
|
6199
6198
|
top: "center"
|
|
6200
6199
|
}
|
|
@@ -6215,7 +6214,7 @@ const ks = Q({
|
|
|
6215
6214
|
},
|
|
6216
6215
|
itemStyle: {
|
|
6217
6216
|
// 地图上板块属性
|
|
6218
|
-
areaColor:
|
|
6217
|
+
areaColor: A(i),
|
|
6219
6218
|
borderColor: e.geoItemStyleBorderColor,
|
|
6220
6219
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6221
6220
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6242,7 +6241,7 @@ const ks = Q({
|
|
|
6242
6241
|
itemStyle: {
|
|
6243
6242
|
color: e.itemStyleColor
|
|
6244
6243
|
},
|
|
6245
|
-
symbol:
|
|
6244
|
+
symbol: A(s),
|
|
6246
6245
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6247
6246
|
label: {
|
|
6248
6247
|
show: e.labelShow,
|