@ecan-bi/datav 1.1.52 → 1.1.54
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 +523 -522
- 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/types/table/table/Table.vue.d.ts +5 -5
- package/types/table/table/index.d.ts +5 -5
- package/types/table/table/props.d.ts +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as N, computed as q, unref as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.54 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as S, 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";
|
|
5
5
|
import { Spin as qo, Skeleton as jo, message as He, Progress as Wo, Input as fn, DatePicker as Vo, Select as Ho, RangePicker as Zo, Button as Jo, CheckboxGroup as mn, Modal as ke, Table as Yo, TableSummary as Qo, TableSummaryRow as Ko, TableSummaryCell as Xo } 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 = N(ma, {}), a = q(() => ({
|
|
74
|
-
...
|
|
74
|
+
...S(o),
|
|
75
75
|
...t == null ? void 0 : t.value
|
|
76
76
|
}));
|
|
77
77
|
sn(() => {
|
|
@@ -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
|
-
),
|
|
119
|
-
() => e.initOptions ||
|
|
120
|
-
),
|
|
121
|
-
() => e.updateOptions ||
|
|
122
|
-
),
|
|
123
|
-
function A(
|
|
118
|
+
), f = q(() => e.theme || S(i) || {}), y = q(
|
|
119
|
+
() => e.initOptions || S(s) || {}
|
|
120
|
+
), v = q(
|
|
121
|
+
() => e.updateOptions || S(l) || {}
|
|
122
|
+
), b = q(() => va(n));
|
|
123
|
+
function A(k) {
|
|
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,26 +148,26 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function O() {
|
|
151
|
-
|
|
151
|
+
u.setOption(k || m.value, v.value);
|
|
152
152
|
}
|
|
153
153
|
d.value ? ft(() => {
|
|
154
154
|
T(), O();
|
|
155
155
|
}) : O();
|
|
156
156
|
}
|
|
157
|
-
function x(
|
|
158
|
-
e.manualUpdate && (r.value =
|
|
157
|
+
function x(k, u) {
|
|
158
|
+
e.manualUpdate && (r.value = k), a.value ? a.value.setOption(k, u || {}) : A(k);
|
|
159
159
|
}
|
|
160
160
|
function B() {
|
|
161
161
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
162
162
|
}
|
|
163
|
-
let
|
|
163
|
+
let w = null;
|
|
164
164
|
ne(
|
|
165
165
|
c,
|
|
166
|
-
(
|
|
167
|
-
typeof
|
|
166
|
+
(k) => {
|
|
167
|
+
typeof w == "function" && (w(), w = null), k || (w = 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)
|
|
@@ -1295,55 +1295,55 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1295
1295
|
getGlobalModel: (y) => {
|
|
1296
1296
|
}
|
|
1297
1297
|
}), h = de(t), m = async (y = {}) => {
|
|
1298
|
-
if (!h || !o || !a ||
|
|
1298
|
+
if (!h || !o || !a || S(d) === "design")
|
|
1299
1299
|
return;
|
|
1300
|
-
let
|
|
1301
|
-
r.forEach((
|
|
1302
|
-
const { key: L, value:
|
|
1303
|
-
if (typeof
|
|
1304
|
-
let
|
|
1305
|
-
const { id: p, prop: T, propKey: O, operate: C } =
|
|
1306
|
-
p === "THIS" ?
|
|
1307
|
-
const _ =
|
|
1300
|
+
let v = {};
|
|
1301
|
+
r.forEach((w) => {
|
|
1302
|
+
const { key: L, value: k } = w;
|
|
1303
|
+
if (typeof k == "object" && k.id) {
|
|
1304
|
+
let u = {};
|
|
1305
|
+
const { id: p, prop: T, propKey: O, operate: C } = k;
|
|
1306
|
+
p === "THIS" ? u = g(S(c)) || {} : u = g(p) || {};
|
|
1307
|
+
const _ = S(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 ($) {
|
|
1313
1313
|
case "add":
|
|
1314
|
-
U =
|
|
1314
|
+
U = S(_).add(F, z);
|
|
1315
1315
|
break;
|
|
1316
1316
|
case "minus":
|
|
1317
|
-
U =
|
|
1317
|
+
U = S(_).subtract(F, z);
|
|
1318
1318
|
break;
|
|
1319
1319
|
}
|
|
1320
|
-
U == null && (U =
|
|
1320
|
+
U == null && (U = S(_)), 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
|
|
1326
|
-
}),
|
|
1327
|
-
let
|
|
1328
|
-
const A = Object.keys(
|
|
1329
|
-
A.forEach((
|
|
1330
|
-
L === 0 ? B !== 1 ?
|
|
1325
|
+
typeof k == "string" && (v[L] = de(k));
|
|
1326
|
+
}), v = { ...window.config.requestParams, ...y, ...v };
|
|
1327
|
+
let b = "";
|
|
1328
|
+
const A = Object.keys(v), x = A.length - 1, B = A.length;
|
|
1329
|
+
A.forEach((w, L) => {
|
|
1330
|
+
L === 0 ? B !== 1 ? b += `?${w}=${v[w]}&` : b += `?${w}=${v[w]}` : L === x ? b += `${w}=${v[w]}` : b += `${w}=${v[w]}&`;
|
|
1331
1331
|
});
|
|
1332
1332
|
try {
|
|
1333
|
-
const
|
|
1334
|
-
baseURL:
|
|
1335
|
-
url:
|
|
1333
|
+
const w = ["get", "head"].includes(o), L = await xe({
|
|
1334
|
+
baseURL: S(l) || "",
|
|
1335
|
+
url: w ? h + b : h,
|
|
1336
1336
|
method: o,
|
|
1337
1337
|
headers: a,
|
|
1338
|
-
data:
|
|
1338
|
+
data: w ? {} : v
|
|
1339
1339
|
});
|
|
1340
1340
|
return n(L), L;
|
|
1341
|
-
} catch (
|
|
1342
|
-
console.error(
|
|
1341
|
+
} catch (w) {
|
|
1342
|
+
console.error(w);
|
|
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
|
-
|
|
1444
|
-
const x = (c =
|
|
1445
|
-
typeof x == "function" && (
|
|
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
|
+
const x = (c = S(A)) == null ? void 0 : c.value.format;
|
|
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,17 +1495,17 @@ 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() {
|
|
1508
|
-
var
|
|
1508
|
+
var w, L;
|
|
1509
1509
|
const l = e.type;
|
|
1510
1510
|
let d = e.graphicConfig;
|
|
1511
1511
|
(!d || Object.keys(d).length === 0) && (d = {
|
|
@@ -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
|
|
1530
|
+
const k = (w = d.seriesList) == null ? void 0 : w.find((u) => {
|
|
1531
1531
|
const p = d.series[0];
|
|
1532
|
-
return
|
|
1532
|
+
return u.name === p || u.nameBak === p;
|
|
1533
1533
|
});
|
|
1534
|
-
|
|
1535
|
-
label:
|
|
1536
|
-
columnName:
|
|
1534
|
+
k != null && (m = {
|
|
1535
|
+
label: k.name,
|
|
1536
|
+
columnName: k.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
|
|
1546
|
-
|
|
1545
|
+
const k = ((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 = k.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
|
-
for (let
|
|
1550
|
-
h[
|
|
1549
|
+
for (let k = 0; k < h.length; k++)
|
|
1550
|
+
h[k].location === "RIGHT" ? h[k].conditions = s(h[k], "rightAxisList", d) : h[k].conditions = s(h[k], "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",
|
|
@@ -1559,7 +1559,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1559
1559
|
ecanScatter: "scatter"
|
|
1560
1560
|
};
|
|
1561
1561
|
try {
|
|
1562
|
-
const
|
|
1562
|
+
const k = await xe.get(`${ct}/user/anonymous?username=admin`, {
|
|
1563
1563
|
headers: {
|
|
1564
1564
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1565
1565
|
current_context: "ygt"
|
|
@@ -1570,19 +1570,19 @@ 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
|
}, {
|
|
1582
|
-
headers: { Authentication:
|
|
1582
|
+
headers: { Authentication: k.data.data.token }
|
|
1583
1583
|
});
|
|
1584
|
-
} catch (
|
|
1585
|
-
console.error(
|
|
1584
|
+
} catch (k) {
|
|
1585
|
+
console.error(k);
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
1588
|
}, De = (e, n) => {
|
|
@@ -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 = S(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,14 +1693,14 @@ 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,
|
|
1703
|
-
preview:
|
|
1703
|
+
preview: w = !1
|
|
1704
1704
|
} = i || {};
|
|
1705
1705
|
let L;
|
|
1706
1706
|
if (Array.isArray(h) && h.length > 0) {
|
|
@@ -1720,13 +1720,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
let
|
|
1723
|
+
let k;
|
|
1724
1724
|
if (Array.isArray(m) && m.length > 0) {
|
|
1725
1725
|
const C = m.length;
|
|
1726
1726
|
for (let _ = 0; _ < C; _++) {
|
|
1727
1727
|
const U = m[_] || {}, { label: H = "", name: F = "", show: $ = !1, sort: z, customGroup: W, conditions: ee } = U;
|
|
1728
1728
|
if ($ || C === 1) {
|
|
1729
|
-
|
|
1729
|
+
k = {
|
|
1730
1730
|
label: H,
|
|
1731
1731
|
columnName: F,
|
|
1732
1732
|
show: $,
|
|
@@ -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;
|
|
@@ -1765,15 +1765,15 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1765
1765
|
layer: c,
|
|
1766
1766
|
chartType: g,
|
|
1767
1767
|
classification: L,
|
|
1768
|
-
series:
|
|
1768
|
+
series: k,
|
|
1769
1769
|
indicatorList: p,
|
|
1770
|
-
queryColumns:
|
|
1770
|
+
queryColumns: u,
|
|
1771
1771
|
pageFlag: !0,
|
|
1772
1772
|
sqlConditions: T,
|
|
1773
1773
|
// fixedDimSql: '',
|
|
1774
1774
|
dataSourceId: x,
|
|
1775
1775
|
idxLibMode: B,
|
|
1776
|
-
preview:
|
|
1776
|
+
preview: w
|
|
1777
1777
|
},
|
|
1778
1778
|
{
|
|
1779
1779
|
headers: {
|
|
@@ -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,25 +1933,25 @@ 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);
|
|
1943
1943
|
Oe(_n, {
|
|
1944
1944
|
requestToken: () => {
|
|
1945
|
-
L.value =
|
|
1945
|
+
L.value = S(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,11 +1979,11 @@ 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 {
|
|
1986
|
-
e.pageMode !== "design" &&
|
|
1986
|
+
e.pageMode !== "design" && S(L) > 0 && await C();
|
|
1987
1987
|
for (let se = 0; se < ee; se++) {
|
|
1988
1988
|
const nt = W[se][1];
|
|
1989
1989
|
await O(nt);
|
|
@@ -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,
|
|
@@ -2066,28 +2066,28 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2066
2066
|
});
|
|
2067
2067
|
const o = q(() => {
|
|
2068
2068
|
var y;
|
|
2069
|
-
const h =
|
|
2069
|
+
const h = S(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
|
|
2081
|
-
|
|
2080
|
+
const k = B[L], u = h[k];
|
|
2081
|
+
u && (x = A.replace(k, u));
|
|
2082
2082
|
}
|
|
2083
2083
|
if (/\(.*\)/g.test(x)) {
|
|
2084
2084
|
const L = ht(x);
|
|
2085
2085
|
L != null && (x = L);
|
|
2086
2086
|
}
|
|
2087
|
-
let
|
|
2088
|
-
if (
|
|
2087
|
+
let w = x;
|
|
2088
|
+
if (w === A && (w = e.variableDefaultValue), w != null) {
|
|
2089
2089
|
const L = e.format;
|
|
2090
|
-
L === "percentage" ? (
|
|
2090
|
+
L === "percentage" ? (w = +w, isNaN(w) ? m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : w >= 0 ? (w = (w * 100).toFixed(2), m = m.replace(b, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Pl}"/>${w}%</span>`)) : (w = (w * 100).toFixed(2), m = m.replace(b, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${Math.abs(+w)}%</span>`))) : e.format === "percent" ? (w = +w, isNaN(w) || (w = (w * 100).toFixed(2), m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}%</span>`))) : e.format === "money" ? (w = +w, isNaN(w) || (w = zt(w), m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : L === "thousands" ? (w = +w, isNaN(w) || (w = Tl(w), m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : m = m.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`);
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
return `<span>${m}</span>`;
|
|
@@ -2095,7 +2095,7 @@ const zl = /* @__PURE__ */ K(Ol, [["render", Dl]]), Nl = oe(zl), Rn = {
|
|
|
2095
2095
|
pageMode: "normal"
|
|
2096
2096
|
}), r = Ae(e), i = I(!1), s = async () => {
|
|
2097
2097
|
var h;
|
|
2098
|
-
if (
|
|
2098
|
+
if (S(a) !== "design")
|
|
2099
2099
|
try {
|
|
2100
2100
|
i.value = !0;
|
|
2101
2101
|
const m = await r();
|
|
@@ -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(
|
|
2131
|
-
let y =
|
|
2130
|
+
const h = e.linkPage || "", m = Mn(S(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
|
|
2284
|
-
if (!(e.dataType !== "request" ||
|
|
2283
|
+
var f;
|
|
2284
|
+
if (!(e.dataType !== "request" || S(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,60 +2442,60 @@ 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
|
-
(e.dataType === "static" ||
|
|
2449
|
+
(e.dataType === "static" || S(n) === "design") && (a.value = e.data);
|
|
2450
2450
|
}, {
|
|
2451
2451
|
immediate: !0,
|
|
2452
2452
|
deep: !0
|
|
2453
2453
|
});
|
|
2454
2454
|
const r = q(() => {
|
|
2455
|
-
const
|
|
2456
|
-
if (
|
|
2455
|
+
const f = S(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 =
|
|
2463
|
-
if (A.has(
|
|
2464
|
-
|
|
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], w = B.slice(1, B.length - 1);
|
|
2463
|
+
if (A.has(w)) {
|
|
2464
|
+
b = f[w];
|
|
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 (
|
|
2473
|
-
return
|
|
2474
|
-
const y = e.variableDefaultValue,
|
|
2475
|
-
for (let x = 0; x <
|
|
2476
|
-
const B =
|
|
2477
|
-
let
|
|
2478
|
-
const L =
|
|
2479
|
-
for (let
|
|
2471
|
+
let f = e.text;
|
|
2472
|
+
if (f === "")
|
|
2473
|
+
return S(r);
|
|
2474
|
+
const y = e.variableDefaultValue, v = S(a), b = f.match(/\{.+\}/g) || [];
|
|
2475
|
+
for (let x = 0; x < b.length; x++) {
|
|
2476
|
+
const B = b[x];
|
|
2477
|
+
let w = B.slice(1, B.length - 1);
|
|
2478
|
+
const L = w.match(/.*/g);
|
|
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 ? w = w.replace(p, v[p]) : w = w.replace(p, y);
|
|
2482
2482
|
}
|
|
2483
|
-
let
|
|
2483
|
+
let k = w;
|
|
2484
2484
|
try {
|
|
2485
|
-
/\(.*\)/g.test(
|
|
2486
|
-
} catch (
|
|
2487
|
-
console.error(
|
|
2485
|
+
/\(.*\)/g.test(w) && (k = ht(w));
|
|
2486
|
+
} catch (u) {
|
|
2487
|
+
console.error(u);
|
|
2488
2488
|
}
|
|
2489
|
-
(typeof
|
|
2489
|
+
(typeof k == "number" || !isNaN(+k)) && (k = +k * 100, e.decimalFormat && (k = k.toFixed(2))), f = f.replace(B, k + "");
|
|
2490
2490
|
}
|
|
2491
|
-
return
|
|
2491
|
+
return f;
|
|
2492
2492
|
}), s = Ae(e), l = I(!1), d = async () => {
|
|
2493
|
-
var
|
|
2494
|
-
if (!(e.dataType !== "request" ||
|
|
2493
|
+
var f;
|
|
2494
|
+
if (!(e.dataType !== "request" || S(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,19 +2753,19 @@ 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
|
|
2760
|
-
return
|
|
2759
|
+
const w = b[A], L = b[x];
|
|
2760
|
+
return w != null ? B = w : 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
|
|
2763
|
-
if (!(e.dataType !== "request" ||
|
|
2762
|
+
var v, b;
|
|
2763
|
+
if (!(e.dataType !== "request" || S(a) === "design")) {
|
|
2764
2764
|
d.value = !0;
|
|
2765
2765
|
try {
|
|
2766
2766
|
const A = await o();
|
|
2767
|
-
r.value = ((
|
|
2768
|
-
const x =
|
|
2767
|
+
r.value = ((b = (v = A == null ? void 0 : A.data) == null ? void 0 : v.data) == null ? void 0 : b.rows) || [];
|
|
2768
|
+
const x = S(r)[0];
|
|
2769
2769
|
e.value === "" && x != null && (i.value = x[s.value]);
|
|
2770
2770
|
} catch (A) {
|
|
2771
2771
|
console.error(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
|
});
|
|
@@ -2883,7 +2883,7 @@ const Fi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-ef197aff
|
|
|
2883
2883
|
// eslint-disable-next-line no-void
|
|
2884
2884
|
setGlobalModel: (d, c) => {
|
|
2885
2885
|
}
|
|
2886
|
-
}), r = q(() =>
|
|
2886
|
+
}), r = q(() => S(o)[0]), i = q(() => S(o)[1]);
|
|
2887
2887
|
a(e.id, {
|
|
2888
2888
|
type: e.type,
|
|
2889
2889
|
format: e.format,
|
|
@@ -2946,14 +2946,14 @@ const Ni = /* @__PURE__ */ K(Di, [["render", zi], ["__scopeId", "data-v-e4162acb
|
|
|
2946
2946
|
},
|
|
2947
2947
|
setup(e) {
|
|
2948
2948
|
const n = ie(e), o = fe(e)("click", () => {
|
|
2949
|
-
const s =
|
|
2949
|
+
const s = S(r);
|
|
2950
2950
|
s && e.target === "event" && window.parent.postMessage({
|
|
2951
2951
|
type: "openPage",
|
|
2952
2952
|
url: s
|
|
2953
2953
|
}, "*");
|
|
2954
2954
|
}), a = q(() => de(e.text)), r = q(() => de(e.href) || null), i = q(() => {
|
|
2955
2955
|
const s = e.target;
|
|
2956
|
-
if (!(s === "event" ||
|
|
2956
|
+
if (!(s === "event" || S(r) == null))
|
|
2957
2957
|
return {
|
|
2958
2958
|
self: "_self",
|
|
2959
2959
|
blank: "_blank"
|
|
@@ -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,
|
|
3040
|
-
if (e.dataType !== "request" ||
|
|
3039
|
+
var y, v;
|
|
3040
|
+
if (e.dataType !== "request" || S(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({
|
|
@@ -3181,11 +3181,11 @@ const Yi = Q({
|
|
|
3181
3181
|
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
3182
3182
|
o.value = !1;
|
|
3183
3183
|
}, r = q(() => {
|
|
3184
|
-
let { data: L = [] } =
|
|
3184
|
+
let { data: L = [] } = S(t)[0] || {};
|
|
3185
3185
|
if (Array.isArray(e.colors)) {
|
|
3186
|
-
const
|
|
3186
|
+
const k = e.isUseLabelColors, u = e.colors;
|
|
3187
3187
|
L = L.map((p, T) => ({
|
|
3188
|
-
label:
|
|
3188
|
+
label: k ? { color: u[T] } : {},
|
|
3189
3189
|
...p
|
|
3190
3190
|
}));
|
|
3191
3191
|
}
|
|
@@ -3242,12 +3242,12 @@ const Yi = Q({
|
|
|
3242
3242
|
tooltip: {
|
|
3243
3243
|
show: e.tooltipShow,
|
|
3244
3244
|
trigger: e.tooltipTrigger,
|
|
3245
|
-
formatter: (
|
|
3246
|
-
const { marker:
|
|
3245
|
+
formatter: (k) => {
|
|
3246
|
+
const { marker: u, seriesName: p, name: T, value: O, percent: C, data: _ } = k || {};
|
|
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,
|
|
@@ -3322,46 +3322,46 @@ const Yi = Q({
|
|
|
3322
3322
|
},
|
|
3323
3323
|
// @ts-ignore
|
|
3324
3324
|
// eslint-disable-next-line no-void
|
|
3325
|
-
setGlobalModel: (L,
|
|
3325
|
+
setGlobalModel: (L, k) => {
|
|
3326
3326
|
}
|
|
3327
3327
|
}), { pageMode: l } = N(ce, {
|
|
3328
3328
|
pageMode: "normal"
|
|
3329
|
-
}), d = (L = [],
|
|
3330
|
-
const { dataset:
|
|
3331
|
-
t.value =
|
|
3332
|
-
}, c = (L = [],
|
|
3333
|
-
const
|
|
3334
|
-
t.value =
|
|
3329
|
+
}), d = (L = [], k) => {
|
|
3330
|
+
const { dataset: u } = Ye(L, k);
|
|
3331
|
+
t.value = u;
|
|
3332
|
+
}, c = (L = [], k) => {
|
|
3333
|
+
const u = Ye(L, k);
|
|
3334
|
+
t.value = u.dataset;
|
|
3335
3335
|
};
|
|
3336
3336
|
ne(() => e.data, (L) => {
|
|
3337
|
-
(e.dataType === "static" ||
|
|
3337
|
+
(e.dataType === "static" || S(l) === "design") && d(L);
|
|
3338
3338
|
}, {
|
|
3339
3339
|
immediate: !0,
|
|
3340
3340
|
deep: !0
|
|
3341
3341
|
});
|
|
3342
3342
|
const g = I(!1), h = Ae(e), m = async () => {
|
|
3343
|
-
var L,
|
|
3344
|
-
if (!(e.dataType !== "request" ||
|
|
3343
|
+
var L, k;
|
|
3344
|
+
if (!(e.dataType !== "request" || S(l) === "design"))
|
|
3345
3345
|
try {
|
|
3346
3346
|
g.value = !0;
|
|
3347
|
-
const
|
|
3348
|
-
d((
|
|
3349
|
-
} catch (
|
|
3350
|
-
console.error(
|
|
3347
|
+
const u = await h();
|
|
3348
|
+
d((k = (L = u == null ? void 0 : u.data) == null ? void 0 : L.data) == null ? void 0 : k.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
|
-
const
|
|
3356
|
-
s(e.id, { ...
|
|
3357
|
-
}),
|
|
3358
|
-
var L,
|
|
3359
|
-
if (!(e.dataType !== "indicator" ||
|
|
3355
|
+
const k = i(e.id);
|
|
3356
|
+
s(e.id, { ...k, RECORD: L == null ? void 0 : L.data });
|
|
3357
|
+
}), v = Nt(e), b = async () => {
|
|
3358
|
+
var L, k, u, p, T, O;
|
|
3359
|
+
if (!(e.dataType !== "indicator" || S(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 = (k = (L = C == null ? void 0 : C.data) == null ? void 0 : L.data) == null ? void 0 : k.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,25 +3375,25 @@ const Yi = Q({
|
|
|
3375
3375
|
g.value = !1;
|
|
3376
3376
|
}
|
|
3377
3377
|
}, A = () => {
|
|
3378
|
-
|
|
3378
|
+
S(l) !== "design" && (b(), m());
|
|
3379
3379
|
};
|
|
3380
3380
|
he(e, {
|
|
3381
3381
|
resetRecord: () => {
|
|
3382
|
-
const L = e.id,
|
|
3383
|
-
s(L, { ...
|
|
3382
|
+
const L = e.id, k = i(L);
|
|
3383
|
+
s(L, { ...k, RECORD: "" });
|
|
3384
3384
|
},
|
|
3385
3385
|
refreshData: () => {
|
|
3386
3386
|
A();
|
|
3387
3387
|
},
|
|
3388
3388
|
click: y
|
|
3389
3389
|
});
|
|
3390
|
-
const { setRequest:
|
|
3390
|
+
const { setRequest: w } = N(Ce, {
|
|
3391
3391
|
// @ts-ignore
|
|
3392
3392
|
// eslint-disable-next-line no-void
|
|
3393
|
-
setRequest: ({ id: L, sortNum:
|
|
3393
|
+
setRequest: ({ id: L, sortNum: k, requestFn: u }) => {
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
|
-
return
|
|
3396
|
+
return w({
|
|
3397
3397
|
id: e.id,
|
|
3398
3398
|
requestFn: A,
|
|
3399
3399
|
sortNum: e.requestSort
|
|
@@ -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
|
|
3536
|
+
const k = e.xAxisLabelFormatter, u = e.yAxisLabelFormatter;
|
|
3537
3537
|
return {
|
|
3538
3538
|
toolbox: {
|
|
3539
3539
|
show: e.toolboxShow,
|
|
@@ -3615,7 +3615,7 @@ const tr = Q({
|
|
|
3615
3615
|
},
|
|
3616
3616
|
xAxis: {
|
|
3617
3617
|
type: "category",
|
|
3618
|
-
data:
|
|
3618
|
+
data: S(o),
|
|
3619
3619
|
minInterval: e.xAxisMinInterval,
|
|
3620
3620
|
splitLine: {
|
|
3621
3621
|
show: e.xAxisSplitLineShow,
|
|
@@ -3630,7 +3630,7 @@ const tr = Q({
|
|
|
3630
3630
|
width: e.xAxisLabelWidth,
|
|
3631
3631
|
overflow: e.xAxisLabelOverflow,
|
|
3632
3632
|
formatter(p) {
|
|
3633
|
-
return De(
|
|
3633
|
+
return De(k, p);
|
|
3634
3634
|
}
|
|
3635
3635
|
},
|
|
3636
3636
|
axisLine: {
|
|
@@ -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: {
|
|
@@ -3670,27 +3670,27 @@ const tr = Q({
|
|
|
3670
3670
|
top: e.legendTop,
|
|
3671
3671
|
left: e.legendLeft
|
|
3672
3672
|
},
|
|
3673
|
-
series:
|
|
3673
|
+
series: S(t)
|
|
3674
3674
|
};
|
|
3675
3675
|
}), { getGlobalModel: s, setGlobalModel: l } = N(ue, {
|
|
3676
3676
|
// @ts-ignore
|
|
3677
3677
|
// eslint-disable-next-line no-void
|
|
3678
|
-
getGlobalModel: (
|
|
3678
|
+
getGlobalModel: (k) => {
|
|
3679
3679
|
},
|
|
3680
3680
|
// @ts-ignore
|
|
3681
3681
|
// eslint-disable-next-line no-void
|
|
3682
|
-
setGlobalModel: (
|
|
3682
|
+
setGlobalModel: (k, u) => {
|
|
3683
3683
|
}
|
|
3684
3684
|
}), { pageMode: d } = N(ce, {
|
|
3685
3685
|
pageMode: "normal"
|
|
3686
|
-
}), c = (
|
|
3686
|
+
}), c = (k = [], u = !1) => {
|
|
3687
3687
|
let p;
|
|
3688
3688
|
if (e.dataFieldConfigType === "key") {
|
|
3689
|
-
const _ =
|
|
3690
|
-
p = $e(
|
|
3689
|
+
const _ = u ? e.keyTypeDataFieldNames : null;
|
|
3690
|
+
p = $e(k, _);
|
|
3691
3691
|
} else if (e.dataFieldConfigType === "value") {
|
|
3692
|
-
const _ =
|
|
3693
|
-
p = Ye(
|
|
3692
|
+
const _ = u ? e.valueTypeDataFieldNames : null;
|
|
3693
|
+
p = Ye(k, _);
|
|
3694
3694
|
}
|
|
3695
3695
|
o.value = p.dimensions;
|
|
3696
3696
|
const T = p.dataset, O = [], C = T.length;
|
|
@@ -3721,8 +3721,8 @@ const tr = Q({
|
|
|
3721
3721
|
}
|
|
3722
3722
|
});
|
|
3723
3723
|
t.value = O;
|
|
3724
|
-
}, g = (
|
|
3725
|
-
const O = $e(
|
|
3724
|
+
}, g = (k = [], u, p = !1) => {
|
|
3725
|
+
const O = $e(k, 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++)
|
|
@@ -3737,35 +3737,35 @@ const tr = Q({
|
|
|
3737
3737
|
});
|
|
3738
3738
|
t.value = _;
|
|
3739
3739
|
};
|
|
3740
|
-
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
3741
|
-
(e.dataType === "static" ||
|
|
3740
|
+
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([k]) => {
|
|
3741
|
+
(e.dataType === "static" || S(d) === "design") && c(k);
|
|
3742
3742
|
}, {
|
|
3743
3743
|
immediate: !0,
|
|
3744
3744
|
deep: !0
|
|
3745
3745
|
});
|
|
3746
|
-
const h = I(!1), m = Ae(e),
|
|
3747
|
-
var
|
|
3748
|
-
if (!(e.dataType !== "request" ||
|
|
3746
|
+
const h = I(!1), m = Ae(e), f = async () => {
|
|
3747
|
+
var k, u;
|
|
3748
|
+
if (!(e.dataType !== "request" || S(d) === "design"))
|
|
3749
3749
|
try {
|
|
3750
3750
|
h.value = !0;
|
|
3751
3751
|
const p = await m();
|
|
3752
|
-
c((
|
|
3752
|
+
c((u = (k = p == null ? void 0 : p.data) == null ? void 0 : k.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
|
|
3763
|
-
if (!(e.dataType !== "indicator" ||
|
|
3758
|
+
}, v = fe(e)("click", (k) => {
|
|
3759
|
+
const u = s(e.id);
|
|
3760
|
+
l(e.id, { ...u, RECORD: k == null ? void 0 : k.data });
|
|
3761
|
+
}), b = Nt(e), A = async () => {
|
|
3762
|
+
var k, u, p, T, O;
|
|
3763
|
+
if (!(e.dataType !== "indicator" || S(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 = (k = C == null ? void 0 : C.data) == null ? void 0 : k.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
|
-
|
|
3778
|
+
S(d) !== "design" && (A(), f());
|
|
3779
3779
|
};
|
|
3780
3780
|
he(e, {
|
|
3781
3781
|
refreshData: () => {
|
|
3782
3782
|
x();
|
|
3783
3783
|
},
|
|
3784
3784
|
resetRecord: () => {
|
|
3785
|
-
const
|
|
3786
|
-
l(
|
|
3785
|
+
const k = e.id, u = s(k);
|
|
3786
|
+
l(k, { ...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:
|
|
3793
|
+
setRequest: ({ id: k, 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 = S(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,
|
|
@@ -4074,7 +4074,7 @@ const ir = Q({
|
|
|
4074
4074
|
},
|
|
4075
4075
|
xAxis: {
|
|
4076
4076
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4077
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4077
|
+
data: e.isUseHorizontalAxis ? null : S(s),
|
|
4078
4078
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4079
4079
|
minInterval: e.xAxisMinInterval,
|
|
4080
4080
|
splitLine: {
|
|
@@ -4104,7 +4104,7 @@ const ir = Q({
|
|
|
4104
4104
|
},
|
|
4105
4105
|
yAxis: {
|
|
4106
4106
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4107
|
-
data: e.isUseHorizontalAxis ?
|
|
4107
|
+
data: e.isUseHorizontalAxis ? S(s) : null,
|
|
4108
4108
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4109
4109
|
minInterval: e.yAxisMinInterval,
|
|
4110
4110
|
splitLine: {
|
|
@@ -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: {
|
|
@@ -4128,46 +4128,46 @@ const ir = Q({
|
|
|
4128
4128
|
}
|
|
4129
4129
|
}
|
|
4130
4130
|
},
|
|
4131
|
-
series:
|
|
4131
|
+
series: S(i)
|
|
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" ||
|
|
4149
|
+
ne(() => e.data, (u) => {
|
|
4150
|
+
(e.dataType === "static" || S(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,54 +4181,54 @@ const ir = Q({
|
|
|
4181
4181
|
} finally {
|
|
4182
4182
|
l.value = !1;
|
|
4183
4183
|
}
|
|
4184
|
-
},
|
|
4185
|
-
if (
|
|
4184
|
+
}, b = () => {
|
|
4185
|
+
if (S(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
|
-
}),
|
|
4207
|
+
}), w = 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:
|
|
4222
|
-
click:
|
|
4221
|
+
refreshData: b,
|
|
4222
|
+
click: w,
|
|
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:
|
|
4231
|
-
click:
|
|
4230
|
+
refreshData: b,
|
|
4231
|
+
click: w,
|
|
4232
4232
|
loading: l,
|
|
4233
4233
|
visible: a,
|
|
4234
4234
|
hideModal: r
|
|
@@ -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:
|
|
4454
|
+
const { marker: B, seriesName: w } = x, L = ((p = x == null ? void 0 : x.data) == null ? void 0 : p.record) ?? {}, { name: k, value: u } = L;
|
|
4455
4455
|
return de(e.tooltipFormatter, {
|
|
4456
4456
|
marker: B,
|
|
4457
|
-
seriesName:
|
|
4458
|
-
a:
|
|
4459
|
-
b:
|
|
4460
|
-
c:
|
|
4457
|
+
seriesName: w,
|
|
4458
|
+
a: w,
|
|
4459
|
+
b: k,
|
|
4460
|
+
c: u,
|
|
4461
4461
|
...L
|
|
4462
4462
|
});
|
|
4463
4463
|
},
|
|
@@ -4474,7 +4474,7 @@ const ur = Q({
|
|
|
4474
4474
|
},
|
|
4475
4475
|
series: [
|
|
4476
4476
|
{
|
|
4477
|
-
data:
|
|
4477
|
+
data: S(t),
|
|
4478
4478
|
type: "scatter",
|
|
4479
4479
|
symbolSize: e.symbolSize
|
|
4480
4480
|
}
|
|
@@ -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((w) => ({ value: [w[x], w[B]], record: w }));
|
|
4497
4497
|
};
|
|
4498
|
-
ne(() => e.data, (
|
|
4499
|
-
(e.dataType === "static" ||
|
|
4498
|
+
ne(() => e.data, (b) => {
|
|
4499
|
+
(e.dataType === "static" || S(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
|
|
4506
|
-
if (!(e.dataType !== "request" ||
|
|
4505
|
+
var b, A;
|
|
4506
|
+
if (!(e.dataType !== "request" || S(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,
|
|
@@ -4854,7 +4854,7 @@ const Cr = Q({
|
|
|
4854
4854
|
xAxis: {
|
|
4855
4855
|
minInterval: e.xAxisMinInterval,
|
|
4856
4856
|
type: "category",
|
|
4857
|
-
data:
|
|
4857
|
+
data: S(o),
|
|
4858
4858
|
splitLine: {
|
|
4859
4859
|
show: e.xAxisSplitLineShow,
|
|
4860
4860
|
lineStyle: {
|
|
@@ -4873,18 +4873,18 @@ const Cr = Q({
|
|
|
4873
4873
|
show: e.xAxisTickShow
|
|
4874
4874
|
}
|
|
4875
4875
|
},
|
|
4876
|
-
yAxis:
|
|
4877
|
-
series:
|
|
4876
|
+
yAxis: S(c),
|
|
4877
|
+
series: S(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" ||
|
|
4928
|
+
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([u]) => {
|
|
4929
|
+
(e.dataType === "static" || S(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
|
|
4959
|
-
if (!(e.dataType !== "request" ||
|
|
4958
|
+
var u, p;
|
|
4959
|
+
if (!(e.dataType !== "request" || S(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
|
|
4971
|
-
if (!(e.dataType !== "indicator" ||
|
|
4969
|
+
}, f = Nt(e), y = async () => {
|
|
4970
|
+
var u, p, T, O, C;
|
|
4971
|
+
if (!(e.dataType !== "indicator" || S(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,43 +4982,43 @@ 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
|
+
S(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
|
-
}),
|
|
4998
|
+
}), w = 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:
|
|
5017
|
-
click:
|
|
5016
|
+
refreshData: b,
|
|
5017
|
+
click: w
|
|
5018
5018
|
}), {
|
|
5019
5019
|
style: n,
|
|
5020
5020
|
option: i,
|
|
5021
|
-
click:
|
|
5021
|
+
click: w,
|
|
5022
5022
|
loading: g,
|
|
5023
5023
|
visible: a,
|
|
5024
5024
|
hideModal: r
|
|
@@ -5218,43 +5218,43 @@ 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
|
-
l.value = W *
|
|
5227
|
-
width: `${
|
|
5228
|
-
height: `${
|
|
5226
|
+
l.value = W * S(d), c.value = ee * z, s.value = `${S(d) * 100}%`, g.value = {
|
|
5227
|
+
width: `${S(l)}px`,
|
|
5228
|
+
height: `${S(c)}px`
|
|
5229
5229
|
}, m.value = {
|
|
5230
|
-
...
|
|
5230
|
+
...S(h),
|
|
5231
5231
|
backgroundImage: Re(e.backgroundImage, !0),
|
|
5232
|
-
transform: `scale(${
|
|
5232
|
+
transform: `scale(${S(l) / parseFloat(o)},${S(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
|
-
|
|
5245
|
-
},
|
|
5244
|
+
v && (v.disconnect(), v.takeRecords(), v = null);
|
|
5245
|
+
}, w = I(!1), { touchRequest: L } = N(Ce, {
|
|
5246
5246
|
// @ts-ignore
|
|
5247
5247
|
// eslint-disable-next-line no-void
|
|
5248
5248
|
touchRequest: () => {
|
|
5249
5249
|
}
|
|
5250
|
-
}),
|
|
5251
|
-
|
|
5252
|
-
},
|
|
5253
|
-
|
|
5250
|
+
}), k = () => {
|
|
5251
|
+
w.value = !0;
|
|
5252
|
+
}, u = () => {
|
|
5253
|
+
w.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
|
},
|
|
@@ -5268,17 +5268,17 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5268
5268
|
const ee = e.componentList;
|
|
5269
5269
|
Array.isArray(ee) && (W = ee.map((se) => se.id), O(z, [...new Set(W)]));
|
|
5270
5270
|
};
|
|
5271
|
-
ne(() =>
|
|
5272
|
-
z ? (
|
|
5273
|
-
|
|
5271
|
+
ne(() => w.value, async (z) => {
|
|
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
|
-
const H = q(() =>
|
|
5276
|
+
const H = q(() => S(d) >= 1), F = q(() => e.fullModal), $ = q(() => {
|
|
5277
5277
|
let z = "ecan-modal";
|
|
5278
|
-
return
|
|
5278
|
+
return S(H) && (z += " ecan-full-width-modal"), S(F) && (z += " ecan-full-modal"), z;
|
|
5279
5279
|
});
|
|
5280
5280
|
return he(e, {
|
|
5281
|
-
showModal:
|
|
5281
|
+
showModal: k
|
|
5282
5282
|
}), {
|
|
5283
5283
|
modalRef: y,
|
|
5284
5284
|
containStyle: g,
|
|
@@ -5288,13 +5288,13 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-1550b11b
|
|
|
5288
5288
|
modalWith: s,
|
|
5289
5289
|
isFullModal: F,
|
|
5290
5290
|
style: h,
|
|
5291
|
-
visible:
|
|
5292
|
-
showModal:
|
|
5291
|
+
visible: w,
|
|
5292
|
+
showModal: k,
|
|
5293
5293
|
onOk: p,
|
|
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,48 +5399,47 @@ 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(S(i)) ? S(i).length - 1 : 0;
|
|
5403
|
+
e.autoSwitch && m > 0 && (a = setInterval(() => {
|
|
5404
|
+
const f = S(t) + 1;
|
|
5405
|
+
f <= m ? t.value = f : t.value = 0, s.value = S(i)[S(t)], g();
|
|
5408
5406
|
}, e.autoSwitchInterval * 1e3));
|
|
5409
5407
|
};
|
|
5410
5408
|
Ne(() => {
|
|
5411
|
-
|
|
5409
|
+
S(o) !== "design" && r();
|
|
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 !== S(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: "图片",
|
|
@@ -5512,7 +5510,7 @@ const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-614fba56
|
|
|
5512
5510
|
onClick: () => {
|
|
5513
5511
|
if (!e.linkPage && !e.href)
|
|
5514
5512
|
return;
|
|
5515
|
-
const r = e.linkPage || "", i = Mn(
|
|
5513
|
+
const r = e.linkPage || "", i = Mn(S(o), r), s = e.href;
|
|
5516
5514
|
let l = s || i;
|
|
5517
5515
|
l = de(l);
|
|
5518
5516
|
const d = e.target;
|
|
@@ -5557,7 +5555,7 @@ const is = /* @__PURE__ */ K(os, [["render", ls], ["__scopeId", "data-v-ef7a7bee
|
|
|
5557
5555
|
}), o = q(() => {
|
|
5558
5556
|
let a = de(e.link);
|
|
5559
5557
|
if (e.linkType === "erd" && a != null) {
|
|
5560
|
-
let r =
|
|
5558
|
+
let r = S(t);
|
|
5561
5559
|
r[r.length - 1] === "/" ? r += "erdReport" : r += "/erdReport", a = `${Al || r}?_t=0&uid=${a}`;
|
|
5562
5560
|
}
|
|
5563
5561
|
return a;
|
|
@@ -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) -
|
|
5683
|
+
}), a = q(() => e.scrollX), r = q(() => parseFloat(e.height) - S(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++) {
|
|
@@ -5715,7 +5713,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5715
5713
|
borderBottomColor: e.borderColor
|
|
5716
5714
|
},
|
|
5717
5715
|
class: {
|
|
5718
|
-
highlight:
|
|
5716
|
+
highlight: S(W) === yt && e.clickHighlight
|
|
5719
5717
|
},
|
|
5720
5718
|
onClick: C("click", () => {
|
|
5721
5719
|
const $t = e.id, Io = U($t);
|
|
@@ -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,16 +5774,18 @@ 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
|
-
const M =
|
|
5784
|
-
if (
|
|
5781
|
+
const M = S(i), D = S(s);
|
|
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
|
|
5788
5786
|
l.value = M, d.value = D;
|
|
5787
|
+
}, {
|
|
5788
|
+
immediate: !0
|
|
5789
5789
|
});
|
|
5790
5790
|
const A = (M, D) => {
|
|
5791
5791
|
const V = M[0], J = [{
|
|
@@ -5816,25 +5816,25 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5816
5816
|
columns: J,
|
|
5817
5817
|
dataSource: P
|
|
5818
5818
|
};
|
|
5819
|
-
}, x = I(""), B = Ae(e),
|
|
5819
|
+
}, x = I(""), B = Ae(e), w = I(!1), L = async (M = !0) => {
|
|
5820
5820
|
var D;
|
|
5821
5821
|
try {
|
|
5822
|
-
M && (
|
|
5822
|
+
M && (w.value = !0);
|
|
5823
5823
|
let V = {};
|
|
5824
|
-
|
|
5825
|
-
pageNum:
|
|
5826
|
-
pageSize:
|
|
5824
|
+
S(x) && (V.orderCondition = S(x)), e.paginationShow && (V = {
|
|
5825
|
+
pageNum: S(g),
|
|
5826
|
+
pageSize: S(h),
|
|
5827
5827
|
layer: "1",
|
|
5828
5828
|
...V
|
|
5829
5829
|
});
|
|
5830
5830
|
const J = await B(V), { rows: P = [], total: te = 0 } = ((D = J == null ? void 0 : J.data) == null ? void 0 : D.data) || {};
|
|
5831
|
-
c.value = te, Array.isArray(P) && (s.value = P);
|
|
5831
|
+
c.value = te, Array.isArray(P) && (s.value = S(s).concat(P));
|
|
5832
5832
|
} catch (V) {
|
|
5833
5833
|
console.error(V);
|
|
5834
5834
|
} finally {
|
|
5835
|
-
|
|
5835
|
+
w.value = !1;
|
|
5836
5836
|
}
|
|
5837
|
-
},
|
|
5837
|
+
}, k = ({ current: M }, D, V) => {
|
|
5838
5838
|
if (g.value = M, V && Object.keys(V).length > 0) {
|
|
5839
5839
|
const { field: J, order: P } = V, le = {
|
|
5840
5840
|
ascend: "asc",
|
|
@@ -5843,14 +5843,14 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5843
5843
|
J != null && le != null && (x.value = J + " " + le, g.value = 1);
|
|
5844
5844
|
}
|
|
5845
5845
|
se(!1);
|
|
5846
|
-
},
|
|
5846
|
+
}, u = q(() => {
|
|
5847
5847
|
const M = e.simple, D = [e.paginationPosition];
|
|
5848
5848
|
return e.paginationShow && {
|
|
5849
5849
|
simple: M,
|
|
5850
5850
|
position: D,
|
|
5851
|
-
total:
|
|
5852
|
-
current:
|
|
5853
|
-
pageSize:
|
|
5851
|
+
total: S(c),
|
|
5852
|
+
current: S(g),
|
|
5853
|
+
pageSize: S(h),
|
|
5854
5854
|
showSizeChanger: !1
|
|
5855
5855
|
};
|
|
5856
5856
|
}), p = (M) => +M == 1 ? "是" : +M == 0 ? "否" : M, T = (M, D) => D == null || D === "" ? M : {
|
|
@@ -5885,13 +5885,13 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5885
5885
|
}, $ = En(e), z = async () => {
|
|
5886
5886
|
var M, D, V, J;
|
|
5887
5887
|
try {
|
|
5888
|
-
|
|
5888
|
+
w.value = !0;
|
|
5889
5889
|
const P = await $();
|
|
5890
5890
|
F((D = (M = P == null ? void 0 : P.data) == null ? void 0 : M.data) == null ? void 0 : D.columns, (J = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : J.rows);
|
|
5891
5891
|
} catch (P) {
|
|
5892
5892
|
console.error(P);
|
|
5893
5893
|
} finally {
|
|
5894
|
-
|
|
5894
|
+
w.value = !1;
|
|
5895
5895
|
}
|
|
5896
5896
|
}, W = I(-1), ee = (M, D) => ({
|
|
5897
5897
|
onClick: C("rowClick", () => {
|
|
@@ -5899,7 +5899,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5899
5899
|
H(V, { ...J, RECORD: M }), W.value = D;
|
|
5900
5900
|
})
|
|
5901
5901
|
}), se = (M = !0) => {
|
|
5902
|
-
if (
|
|
5902
|
+
if (S(_) !== "design")
|
|
5903
5903
|
switch (e.dataType) {
|
|
5904
5904
|
case "request":
|
|
5905
5905
|
L(M);
|
|
@@ -5917,7 +5917,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5917
5917
|
refreshData: se
|
|
5918
5918
|
});
|
|
5919
5919
|
const _o = q(() => {
|
|
5920
|
-
const M =
|
|
5920
|
+
const M = S(l), D = [];
|
|
5921
5921
|
let V = 0;
|
|
5922
5922
|
for (let P = 0; P < M.length; P++) {
|
|
5923
5923
|
const te = M[P], { isCalcTotal: le } = te;
|
|
@@ -5934,11 +5934,12 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5934
5934
|
}
|
|
5935
5935
|
if (V === 0)
|
|
5936
5936
|
return [];
|
|
5937
|
-
let J =
|
|
5938
|
-
if (e.paginationShow) {
|
|
5939
|
-
const P = (
|
|
5940
|
-
J =
|
|
5937
|
+
let J = [];
|
|
5938
|
+
if (console.log("---", S(d)), console.log("paginationShow", e.paginationShow), e.paginationShow) {
|
|
5939
|
+
const P = (S(g) - 1) * S(h), te = P + S(h);
|
|
5940
|
+
J = S(d).slice(P, te);
|
|
5941
5941
|
}
|
|
5942
|
+
console.log("records", J);
|
|
5942
5943
|
for (let P = 0; P < D.length; P++) {
|
|
5943
5944
|
const te = D[P];
|
|
5944
5945
|
let le = 0;
|
|
@@ -5969,12 +5970,12 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5969
5970
|
y: r,
|
|
5970
5971
|
style: t,
|
|
5971
5972
|
customRow: ee,
|
|
5972
|
-
pagination:
|
|
5973
|
+
pagination: u,
|
|
5973
5974
|
formatFn: T,
|
|
5974
5975
|
contrastClass: O,
|
|
5975
|
-
tableChange:
|
|
5976
|
+
tableChange: k,
|
|
5976
5977
|
summaryList: _o,
|
|
5977
|
-
loading:
|
|
5978
|
+
loading: w,
|
|
5978
5979
|
onTouchHrefEvent: (M, D = "") => {
|
|
5979
5980
|
M === "event" && window.parent.postMessage({
|
|
5980
5981
|
type: "openPage",
|
|
@@ -5995,8 +5996,8 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-19bc100c
|
|
|
5995
5996
|
useFilterOptions: (M) => {
|
|
5996
5997
|
const D = M.dataIndex;
|
|
5997
5998
|
if (typeof D == "string") {
|
|
5998
|
-
let V =
|
|
5999
|
-
const J =
|
|
5999
|
+
let V = S(v)[D];
|
|
6000
|
+
const J = S(M.filterOptionsInputValue).trim();
|
|
6000
6001
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(J.toLowerCase()) : !0), V) : [];
|
|
6001
6002
|
}
|
|
6002
6003
|
return [];
|
|
@@ -6038,7 +6039,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6038
6039
|
pagination: e.pagination,
|
|
6039
6040
|
onChange: e.tableChange
|
|
6040
6041
|
}, {
|
|
6041
|
-
customFilterDropdown: Y(({ column:
|
|
6042
|
+
customFilterDropdown: Y(({ column: f, selectedKeys: y, setSelectedKeys: v, confirm: b, clearFilters: A }) => [
|
|
6042
6043
|
X("div", {
|
|
6043
6044
|
class: "ecan-table-filter",
|
|
6044
6045
|
style: G({
|
|
@@ -6046,25 +6047,25 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6046
6047
|
})
|
|
6047
6048
|
}, [
|
|
6048
6049
|
j(i, {
|
|
6049
|
-
value:
|
|
6050
|
-
"onUpdate:value": (x) =>
|
|
6050
|
+
value: f.filterOptionsInputValue,
|
|
6051
|
+
"onUpdate:value": (x) => f.filterOptionsInputValue = x,
|
|
6051
6052
|
placeholder: "请输入关键字",
|
|
6052
6053
|
class: "filter-input",
|
|
6053
6054
|
onChange: e.onSearchFilterOptions
|
|
6054
6055
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
6055
6056
|
j(s, {
|
|
6056
|
-
value:
|
|
6057
|
-
"onUpdate:value": (x) =>
|
|
6057
|
+
value: f.filterCheckboxGroupValue,
|
|
6058
|
+
"onUpdate:value": (x) => f.filterCheckboxGroupValue = x,
|
|
6058
6059
|
class: "filter-checkbox",
|
|
6059
|
-
options: e.useFilterOptions(
|
|
6060
|
-
onChange: (x) => e.useSetSelectedKeys(
|
|
6060
|
+
options: e.useFilterOptions(f),
|
|
6061
|
+
onChange: (x) => e.useSetSelectedKeys(v, f)
|
|
6061
6062
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6062
6063
|
X("div", null, [
|
|
6063
6064
|
j(l, {
|
|
6064
6065
|
type: "primary",
|
|
6065
6066
|
size: "small",
|
|
6066
6067
|
style: { width: "90px", "margin-right": "8px" },
|
|
6067
|
-
onClick: () =>
|
|
6068
|
+
onClick: () => b()
|
|
6068
6069
|
}, {
|
|
6069
6070
|
default: Y(() => [
|
|
6070
6071
|
hs
|
|
@@ -6074,7 +6075,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6074
6075
|
j(l, {
|
|
6075
6076
|
size: "small",
|
|
6076
6077
|
style: { width: "90px" },
|
|
6077
|
-
onClick: (x) => e.onResetFilter(A,
|
|
6078
|
+
onClick: (x) => e.onResetFilter(A, f)
|
|
6078
6079
|
}, {
|
|
6079
6080
|
default: Y(() => [
|
|
6080
6081
|
ys
|
|
@@ -6084,56 +6085,56 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6084
6085
|
])
|
|
6085
6086
|
], 4)
|
|
6086
6087
|
]),
|
|
6087
|
-
bodyCell: Y(({ column:
|
|
6088
|
-
|
|
6089
|
-
|
|
6088
|
+
bodyCell: Y(({ column: f, index: y, text: v, record: b }) => [
|
|
6089
|
+
f.dataIndex === "SEQ" ? (E(), R("span", bs, ye(y + 1), 1)) : pe("", !0),
|
|
6090
|
+
f.dataIndex === "ACTION" ? (E(), R("div", vs, [
|
|
6090
6091
|
(E(!0), R(Le, null, Me(e.actionList, (A, x) => (E(), R("div", {
|
|
6091
6092
|
class: "action",
|
|
6092
6093
|
key: x
|
|
6093
6094
|
}, [
|
|
6094
6095
|
X("a", {
|
|
6095
|
-
href: e.handleHref(A.href,
|
|
6096
|
+
href: e.handleHref(A.href, b),
|
|
6096
6097
|
target: e.handleHrefTarget(A.target),
|
|
6097
6098
|
style: G({
|
|
6098
6099
|
color: A.color,
|
|
6099
6100
|
fontSize: e.fontSize,
|
|
6100
6101
|
fontWeight: e.fontWeight
|
|
6101
6102
|
}),
|
|
6102
|
-
onClick: (B) => e.onTouchHrefEvent(A.target, e.handleHref(A.href,
|
|
6103
|
+
onClick: (B) => e.onTouchHrefEvent(A.target, e.handleHref(A.href, b))
|
|
6103
6104
|
}, ye(A.title), 13, ps)
|
|
6104
6105
|
]))), 128))
|
|
6105
6106
|
])) : (E(), R("div", {
|
|
6106
6107
|
key: 2,
|
|
6107
|
-
class: _t([e.contrastClass(
|
|
6108
|
+
class: _t([e.contrastClass(v, f.format)]),
|
|
6108
6109
|
style: G({
|
|
6109
6110
|
fontSize: e.fontSize,
|
|
6110
6111
|
fontWeight: e.fontWeight
|
|
6111
6112
|
})
|
|
6112
|
-
}, ye(
|
|
6113
|
+
}, ye(f.format != null ? e.formatFn(v, f.format) : v), 7))
|
|
6113
6114
|
]),
|
|
6114
6115
|
summary: Y(() => [
|
|
6115
6116
|
e.summaryList.length > 0 ? (E(), Fe(g, { key: 0 }, {
|
|
6116
6117
|
default: Y(() => [
|
|
6117
6118
|
j(c, null, {
|
|
6118
6119
|
default: Y(() => [
|
|
6119
|
-
(E(!0), R(Le, null, Me(e.summaryList, (
|
|
6120
|
+
(E(!0), R(Le, null, Me(e.summaryList, (f, y) => (E(), Fe(d, {
|
|
6120
6121
|
key: y,
|
|
6121
6122
|
index: y,
|
|
6122
6123
|
style: G({
|
|
6123
6124
|
backgroundColor: e.cellBackgroundColor,
|
|
6124
|
-
textAlign:
|
|
6125
|
-
color:
|
|
6125
|
+
textAlign: f.cellAlign || "center",
|
|
6126
|
+
color: f.cellColor,
|
|
6126
6127
|
borderBottomColor: e.borderColor
|
|
6127
6128
|
})
|
|
6128
6129
|
}, {
|
|
6129
6130
|
default: Y(() => [
|
|
6130
6131
|
X("div", {
|
|
6131
|
-
class: _t([e.contrastClass(
|
|
6132
|
+
class: _t([e.contrastClass(f.total, f.format)]),
|
|
6132
6133
|
style: G({
|
|
6133
6134
|
fontSize: e.fontSize,
|
|
6134
6135
|
fontWeight: e.fontWeight
|
|
6135
6136
|
})
|
|
6136
|
-
}, ye((
|
|
6137
|
+
}, ye((f.format != null || f.format !== "") && e.formatFn(f.total, f.format)), 7)
|
|
6137
6138
|
]),
|
|
6138
6139
|
_: 2
|
|
6139
6140
|
}, 1032, ["index", "style"]))), 128))
|
|
@@ -6151,7 +6152,7 @@ function Cs(e, n, t, o, a, r) {
|
|
|
6151
6152
|
}, 8, ["loading"])
|
|
6152
6153
|
], 4);
|
|
6153
6154
|
}
|
|
6154
|
-
const Ss = /* @__PURE__ */ K(gs, [["render", Cs], ["__scopeId", "data-v-
|
|
6155
|
+
const Ss = /* @__PURE__ */ K(gs, [["render", Cs], ["__scopeId", "data-v-f1e6390f"]]), ws = oe(Ss), xo = {
|
|
6155
6156
|
...re,
|
|
6156
6157
|
mapJson: null,
|
|
6157
6158
|
data: [],
|
|
@@ -6211,7 +6212,7 @@ const ks = Q({
|
|
|
6211
6212
|
},
|
|
6212
6213
|
setup(e) {
|
|
6213
6214
|
const n = ie(e, ["backgroundImage"]), t = I(), o = q(() => Re(e.geoBackgroundImage)), a = q(() => Re(e.backgroundImage)), r = q(() => e.geoBackgroundImage ? {
|
|
6214
|
-
image:
|
|
6215
|
+
image: S(t),
|
|
6215
6216
|
repeat: e.geoBackgroundImageRepeat
|
|
6216
6217
|
} : e.geoItemStyleAreaColor), i = q(() => {
|
|
6217
6218
|
const c = e.symbolImage;
|
|
@@ -6231,7 +6232,7 @@ const ks = Q({
|
|
|
6231
6232
|
style: {
|
|
6232
6233
|
width: parseFloat(e.width),
|
|
6233
6234
|
height: parseFloat(e.height),
|
|
6234
|
-
image:
|
|
6235
|
+
image: S(a)
|
|
6235
6236
|
},
|
|
6236
6237
|
top: "center"
|
|
6237
6238
|
}
|
|
@@ -6252,7 +6253,7 @@ const ks = Q({
|
|
|
6252
6253
|
},
|
|
6253
6254
|
itemStyle: {
|
|
6254
6255
|
// 地图上板块属性
|
|
6255
|
-
areaColor:
|
|
6256
|
+
areaColor: S(r),
|
|
6256
6257
|
borderColor: e.geoItemStyleBorderColor,
|
|
6257
6258
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6258
6259
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6279,7 +6280,7 @@ const ks = Q({
|
|
|
6279
6280
|
itemStyle: {
|
|
6280
6281
|
color: e.itemStyleColor
|
|
6281
6282
|
},
|
|
6282
|
-
symbol:
|
|
6283
|
+
symbol: S(i),
|
|
6283
6284
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6284
6285
|
label: {
|
|
6285
6286
|
show: e.labelShow,
|