@ecan-bi/datav 1.1.56 → 1.1.57
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 +649 -649
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +2 -3
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.57 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as C, watchEffect as cn, defineComponent as Q, shallowRef as bt, toRefs as Fo, onMounted as Ne, onUnmounted as ut, h as st, nextTick as ft, createVNode as U, resolveComponent as Z, openBlock as E, createElementBlock as $, createBlock as Oe, renderSlot as mt, withCtx as Y, ref as M, normalizeStyle as G, createCommentVNode as ve, provide as Re, onBeforeUnmount as Tt, toDisplayString as ye, Fragment as Ie, renderList as Ee, createElementVNode as ee, normalizeClass as _t, pushScopeId as dn, popScopeId as un, createSlots as Oo, resolveDynamicComponent as Ro, mergeProps as Do, withModifiers as fn, reactive as $o, createTextVNode as Et, withDirectives as zo, vShow as No } from "vue";
|
|
3
3
|
import { throttle as Po, init as Bo, use as Be, registerMap as Go } from "echarts/core";
|
|
4
4
|
import { addListener as Uo, removeListener as qo } from "resize-detector";
|
|
5
5
|
import { Spin as jo, Skeleton as Wo, message as Ze, Progress as Vo, Input as mn, DatePicker as Ho, Select as Zo, RangePicker as Jo, Button as gn, CheckboxGroup as hn, Modal as Ae, Table as Yo, TableSummary as Qo, TableSummaryRow as Ko, TableSummaryCell as Xo } from "ant-design-vue";
|
|
@@ -72,7 +72,7 @@ const ga = {
|
|
|
72
72
|
}, ha = "ecLoadingOptions";
|
|
73
73
|
function ya(e, n, t) {
|
|
74
74
|
const o = N(ha, {}), a = q(() => ({
|
|
75
|
-
...
|
|
75
|
+
...C(o),
|
|
76
76
|
...t == null ? void 0 : t.value
|
|
77
77
|
}));
|
|
78
78
|
cn(() => {
|
|
@@ -116,32 +116,32 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
116
116
|
null
|
|
117
117
|
), { autoresize: d, manualUpdate: c, loading: h, loadingOptions: g } = Fo(e), u = q(
|
|
118
118
|
() => r.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
119
|
-
),
|
|
120
|
-
() => e.initOptions ||
|
|
119
|
+
), m = q(() => e.theme || C(s) || {}), b = q(
|
|
120
|
+
() => e.initOptions || C(i) || {}
|
|
121
121
|
), v = q(
|
|
122
|
-
() => e.updateOptions ||
|
|
123
|
-
),
|
|
124
|
-
function
|
|
122
|
+
() => e.updateOptions || C(l) || {}
|
|
123
|
+
), y = q(() => Ca(n));
|
|
124
|
+
function A(S) {
|
|
125
125
|
if (a.value || !o.value)
|
|
126
126
|
return;
|
|
127
|
-
const
|
|
127
|
+
const f = a.value = Bo(
|
|
128
128
|
o.value,
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
m.value,
|
|
130
|
+
b.value
|
|
131
131
|
);
|
|
132
|
-
e.group && (
|
|
132
|
+
e.group && (f.group = e.group);
|
|
133
133
|
let p = t;
|
|
134
134
|
p || (p = {}, Object.keys(n).filter((w) => w.indexOf("on") === 0 && w.length > 2).forEach((w) => {
|
|
135
135
|
const L = w.charAt(2).toLowerCase() + w.slice(3);
|
|
136
136
|
p[L] = n[w];
|
|
137
137
|
})), Object.keys(p).forEach((w) => {
|
|
138
138
|
const L = p[w];
|
|
139
|
-
L && (w.indexOf("zr:") === 0 ?
|
|
139
|
+
L && (w.indexOf("zr:") === 0 ? f.getZr().on(w.slice(3).toLowerCase(), L) : f.on(w.toLowerCase(), L));
|
|
140
140
|
});
|
|
141
|
-
function
|
|
142
|
-
if (
|
|
141
|
+
function T() {
|
|
142
|
+
if (f && !f.isDisposed())
|
|
143
143
|
try {
|
|
144
|
-
|
|
144
|
+
f.resize();
|
|
145
145
|
} catch (w) {
|
|
146
146
|
if (w.message === "Cannot read property 'get' of undefined")
|
|
147
147
|
return;
|
|
@@ -149,26 +149,26 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
function R() {
|
|
152
|
-
|
|
152
|
+
f.setOption(S || u.value, v.value);
|
|
153
153
|
}
|
|
154
154
|
d.value ? ft(() => {
|
|
155
|
-
|
|
155
|
+
T(), R();
|
|
156
156
|
}) : R();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
e.manualUpdate && (r.value =
|
|
158
|
+
function x(S, f) {
|
|
159
|
+
e.manualUpdate && (r.value = S), a.value ? a.value.setOption(S, f || {}) : A(S);
|
|
160
160
|
}
|
|
161
161
|
function O() {
|
|
162
162
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
163
163
|
}
|
|
164
|
-
let
|
|
164
|
+
let k = null;
|
|
165
165
|
ne(
|
|
166
166
|
c,
|
|
167
|
-
(
|
|
168
|
-
typeof
|
|
167
|
+
(S) => {
|
|
168
|
+
typeof k == "function" && (k(), k = null), S || (k = ne(
|
|
169
169
|
() => e.option,
|
|
170
|
-
(
|
|
171
|
-
|
|
170
|
+
(f) => {
|
|
171
|
+
f && (a.value ? a.value.setOption(f, v.value) : A());
|
|
172
172
|
},
|
|
173
173
|
{ deep: !0 }
|
|
174
174
|
));
|
|
@@ -177,9 +177,9 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
177
177
|
immediate: !0
|
|
178
178
|
}
|
|
179
179
|
), ne(
|
|
180
|
-
[
|
|
180
|
+
[m, b],
|
|
181
181
|
() => {
|
|
182
|
-
O(),
|
|
182
|
+
O(), A();
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
deep: !0
|
|
@@ -187,15 +187,15 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
187
187
|
), cn(() => {
|
|
188
188
|
e.group && a.value && (a.value.group = e.group);
|
|
189
189
|
});
|
|
190
|
-
const
|
|
190
|
+
const _ = fa(a, A);
|
|
191
191
|
return ya(a, h, g), ma(a, d, o), Ne(() => {
|
|
192
|
-
e.option &&
|
|
192
|
+
e.option && A();
|
|
193
193
|
}), ut(O), {
|
|
194
194
|
chart: a,
|
|
195
195
|
root: o,
|
|
196
|
-
setOption:
|
|
197
|
-
nonEventAttrs:
|
|
198
|
-
...
|
|
196
|
+
setOption: x,
|
|
197
|
+
nonEventAttrs: y,
|
|
198
|
+
..._
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
render() {
|
|
@@ -936,12 +936,12 @@ Tn("#1890ff");
|
|
|
936
936
|
var qe = function(n, t) {
|
|
937
937
|
var o, a = Xt({}, n, t.attrs), r = a.class, s = a.icon, i = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, h = a.onClick, g = ml(a, rl), u = (o = {
|
|
938
938
|
anticon: !0
|
|
939
|
-
}, Mt(o, "anticon-".concat(s.name), Boolean(s.name)), Mt(o, r, r), o),
|
|
940
|
-
|
|
939
|
+
}, Mt(o, "anticon-".concat(s.name), Boolean(s.name)), Mt(o, r, r), o), m = i === "" || i || s.name === "loading" ? "anticon-spin" : "", b = d;
|
|
940
|
+
b === void 0 && h && (b = -1, g.tabindex = b);
|
|
941
941
|
var v = l ? {
|
|
942
942
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
943
943
|
transform: "rotate(".concat(l, "deg)")
|
|
944
|
-
} : void 0,
|
|
944
|
+
} : void 0, y = xn(c), A = sl(y, 2), x = A[0], O = A[1];
|
|
945
945
|
return U("span", Xt({
|
|
946
946
|
role: "img",
|
|
947
947
|
"aria-label": s.name
|
|
@@ -949,9 +949,9 @@ var qe = function(n, t) {
|
|
|
949
949
|
onClick: h,
|
|
950
950
|
class: u
|
|
951
951
|
}), [U(Rt, {
|
|
952
|
-
class:
|
|
952
|
+
class: m,
|
|
953
953
|
icon: s,
|
|
954
|
-
primaryColor:
|
|
954
|
+
primaryColor: x,
|
|
955
955
|
secondaryColor: O,
|
|
956
956
|
style: v
|
|
957
957
|
}, null)]);
|
|
@@ -1185,12 +1185,12 @@ const Tl = ((sn = window == null ? void 0 : window.config) == null ? void 0 : sn
|
|
|
1185
1185
|
t = t == null ? void 0 : t.trim(), o = o == null ? void 0 : o.trim(), a = a == null ? void 0 : a.trim();
|
|
1186
1186
|
const r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), i = e.length;
|
|
1187
1187
|
for (let c = 0; c < i; c++) {
|
|
1188
|
-
const h = e[c], g = h[t] || "", u = h[o] || "",
|
|
1189
|
-
if (r.add(g), s.has(
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1188
|
+
const h = e[c], g = h[t] || "", u = h[o] || "", m = h[a] || "";
|
|
1189
|
+
if (r.add(g), s.has(m)) {
|
|
1190
|
+
const b = s.get(m);
|
|
1191
|
+
b.push({ name: g, value: u, ...h }), s.set(m, b);
|
|
1192
1192
|
} else
|
|
1193
|
-
s.set(
|
|
1193
|
+
s.set(m, [{ name: g, value: u, ...h }]);
|
|
1194
1194
|
}
|
|
1195
1195
|
const l = Array.from(r), d = [];
|
|
1196
1196
|
for (const [c, h] of s)
|
|
@@ -1271,8 +1271,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1271
1271
|
let c = d.slice(1, -1).trim();
|
|
1272
1272
|
const h = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, g = c.match(h);
|
|
1273
1273
|
for (let u = 0; u < g.length; u++) {
|
|
1274
|
-
const
|
|
1275
|
-
|
|
1274
|
+
const m = g[u], b = s[m];
|
|
1275
|
+
b != null && (c = c.replace(m, b));
|
|
1276
1276
|
}
|
|
1277
1277
|
/\(.*\)/g.test(c) && (c = ht(c, t)), e = e.replace(d, c);
|
|
1278
1278
|
}
|
|
@@ -1293,58 +1293,58 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1293
1293
|
}), { getGlobalModel: h } = N(ue, {
|
|
1294
1294
|
// @ts-ignore
|
|
1295
1295
|
// eslint-disable-next-line no-void
|
|
1296
|
-
getGlobalModel: (
|
|
1296
|
+
getGlobalModel: (b) => {
|
|
1297
1297
|
}
|
|
1298
|
-
}), g = se(t), u = async (
|
|
1299
|
-
if (!g || !o || !a ||
|
|
1298
|
+
}), g = se(t), u = async (b = {}) => {
|
|
1299
|
+
if (!g || !o || !a || C(d) === "design")
|
|
1300
1300
|
return;
|
|
1301
1301
|
let v = {};
|
|
1302
|
-
r.forEach((
|
|
1303
|
-
const { key:
|
|
1304
|
-
if (typeof
|
|
1305
|
-
let
|
|
1306
|
-
const { id: p, prop:
|
|
1307
|
-
p === "THIS" ?
|
|
1308
|
-
const L =
|
|
1302
|
+
r.forEach((k) => {
|
|
1303
|
+
const { key: _, value: S } = k;
|
|
1304
|
+
if (typeof S == "object" && S != null && S.id) {
|
|
1305
|
+
let f = {};
|
|
1306
|
+
const { id: p, prop: T, propKey: R, operate: w } = S;
|
|
1307
|
+
p === "THIS" ? f = h(C(c)) || {} : f = h(p) || {};
|
|
1308
|
+
const L = C(f[T]);
|
|
1309
1309
|
let j = null;
|
|
1310
|
-
if (["date", "range"].some((F) => En(
|
|
1310
|
+
if (["date", "range"].some((F) => En(f == null ? void 0 : f.type, F))) {
|
|
1311
1311
|
const { value: F, type: P, mode: z } = w || {};
|
|
1312
1312
|
if (F && P && z)
|
|
1313
1313
|
switch (P) {
|
|
1314
1314
|
case "add":
|
|
1315
|
-
j =
|
|
1315
|
+
j = C(L).add(F, z);
|
|
1316
1316
|
break;
|
|
1317
1317
|
case "minus":
|
|
1318
|
-
j =
|
|
1318
|
+
j = C(L).subtract(F, z);
|
|
1319
1319
|
break;
|
|
1320
1320
|
}
|
|
1321
|
-
j == null && (j =
|
|
1321
|
+
j == null && (j = C(L)), j = (j == null ? void 0 : j.format((R == null ? void 0 : R.trim()) || f.format)) || "";
|
|
1322
1322
|
} else
|
|
1323
1323
|
Object.prototype.toString.call(L) === "[object Object]" ? j = L[R || "value"] : j = L;
|
|
1324
|
-
v[
|
|
1324
|
+
v[_] = j;
|
|
1325
1325
|
} else
|
|
1326
|
-
typeof
|
|
1327
|
-
}), v = { ...window.config.requestParams, ...
|
|
1328
|
-
let
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1331
|
-
|
|
1326
|
+
typeof S == "string" && (v[_] = se(S));
|
|
1327
|
+
}), v = { ...window.config.requestParams, ...b, ...v };
|
|
1328
|
+
let y = "";
|
|
1329
|
+
const A = Object.keys(v), x = A.length - 1, O = A.length;
|
|
1330
|
+
A.forEach((k, _) => {
|
|
1331
|
+
_ === 0 ? O !== 1 ? y += `?${k}=${v[k]}&` : y += `?${k}=${v[k]}` : _ === x ? y += `${k}=${v[k]}` : y += `${k}=${v[k]}&`;
|
|
1332
1332
|
});
|
|
1333
1333
|
try {
|
|
1334
|
-
const
|
|
1335
|
-
baseURL:
|
|
1336
|
-
url:
|
|
1334
|
+
const k = ["get", "head"].includes(o), _ = await Te({
|
|
1335
|
+
baseURL: C(l) || "",
|
|
1336
|
+
url: k ? g + y : g,
|
|
1337
1337
|
method: o,
|
|
1338
1338
|
headers: a,
|
|
1339
|
-
data:
|
|
1339
|
+
data: k ? {} : v
|
|
1340
1340
|
});
|
|
1341
|
-
return n(
|
|
1342
|
-
} catch (
|
|
1343
|
-
console.error(
|
|
1341
|
+
return n(_), _;
|
|
1342
|
+
} catch (k) {
|
|
1343
|
+
console.error(k);
|
|
1344
1344
|
}
|
|
1345
|
-
},
|
|
1345
|
+
}, m = i && setInterval(u, s * 1e3);
|
|
1346
1346
|
return ut(() => {
|
|
1347
|
-
clearInterval(
|
|
1347
|
+
clearInterval(m);
|
|
1348
1348
|
}), u;
|
|
1349
1349
|
}, Pe = (e = [], n) => {
|
|
1350
1350
|
let { name: t = "name", types: o = [] } = n || {};
|
|
@@ -1353,8 +1353,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1353
1353
|
if (s === 1) {
|
|
1354
1354
|
const c = [];
|
|
1355
1355
|
for (let g = 0; g < i; g++) {
|
|
1356
|
-
const u = o[g], { label:
|
|
1357
|
-
a.add(
|
|
1356
|
+
const u = o[g], { label: m, value: b } = u, v = { ...e[0], value: e[0][b] };
|
|
1357
|
+
a.add(m), c.push(v);
|
|
1358
1358
|
}
|
|
1359
1359
|
const h = e[0][t] || "";
|
|
1360
1360
|
r.set(h, c);
|
|
@@ -1363,12 +1363,12 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1363
1363
|
const h = e[c], g = h[t];
|
|
1364
1364
|
a.add(g);
|
|
1365
1365
|
for (let u = 0; u < i; u++) {
|
|
1366
|
-
const
|
|
1367
|
-
if (r.has(
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1366
|
+
const m = o[u], { label: b, value: v } = m, y = { ...h, value: h[v] };
|
|
1367
|
+
if (r.has(b)) {
|
|
1368
|
+
const A = r.get(b);
|
|
1369
|
+
A.push(y), r.set(b, A);
|
|
1370
1370
|
} else
|
|
1371
|
-
r.set(
|
|
1371
|
+
r.set(b, [y]);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
const l = Array.from(a), d = [];
|
|
@@ -1432,20 +1432,20 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1432
1432
|
var c;
|
|
1433
1433
|
const d = [];
|
|
1434
1434
|
for (let h = 0; h < l.length; h++) {
|
|
1435
|
-
const { keyName: g, searchName: u, searchType:
|
|
1435
|
+
const { keyName: g, searchName: u, searchType: m, variateName: b, id: v } = l[h], y = {
|
|
1436
1436
|
alias: g,
|
|
1437
1437
|
fieldName: u,
|
|
1438
|
-
rule:
|
|
1438
|
+
rule: m || "NONE",
|
|
1439
1439
|
fieldValue: "",
|
|
1440
1440
|
valueType: "",
|
|
1441
|
-
variateName:
|
|
1442
|
-
},
|
|
1443
|
-
if (u === "the_date" ?
|
|
1444
|
-
|
|
1445
|
-
const
|
|
1446
|
-
typeof
|
|
1441
|
+
variateName: b
|
|
1442
|
+
}, A = n(v) || {};
|
|
1443
|
+
if (u === "the_date" ? y.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(u) && (y.valueType = "TEXT"), A.type === "ecanDatePicker") {
|
|
1444
|
+
y.dateFormat = A.format;
|
|
1445
|
+
const x = (c = C(A)) == null ? void 0 : c.value.format;
|
|
1446
|
+
typeof x == "function" && (y.fieldValue = x(A == null ? void 0 : A.format));
|
|
1447
1447
|
}
|
|
1448
|
-
d.push(
|
|
1448
|
+
d.push(y);
|
|
1449
1449
|
}
|
|
1450
1450
|
return d;
|
|
1451
1451
|
}, r = (l, d) => {
|
|
@@ -1487,8 +1487,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1487
1487
|
g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays, l.children[c].selectType === "time" ? l.children[c].absoluteBool && (h = "#######", g.calcWays = l.children[c].calcWays) : l.children[c].selectType === "component" && (h = "${" + l.children[c].relateCompent + "}"), g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays;
|
|
1488
1488
|
else if (Object.prototype.toString.call(h) === "[object Array]") {
|
|
1489
1489
|
const u = [];
|
|
1490
|
-
for (let
|
|
1491
|
-
h[
|
|
1490
|
+
for (let m = 0; m < h.length; m++)
|
|
1491
|
+
h[m] !== "全选" && u.push(h[m]);
|
|
1492
1492
|
h = u.join(",");
|
|
1493
1493
|
}
|
|
1494
1494
|
g.fieldValue = h, l.children.length > 1 && c !== l.children.length - 1 && (l.type === "and" ? g.join = "&&" : g.join = "||"), d.push(g);
|
|
@@ -1496,17 +1496,17 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1496
1496
|
}, i = (l, d, c) => {
|
|
1497
1497
|
if (!l)
|
|
1498
1498
|
return;
|
|
1499
|
-
const h = c[d].find((
|
|
1499
|
+
const h = c[d].find((m) => m.name === l.label);
|
|
1500
1500
|
if (!h)
|
|
1501
1501
|
return;
|
|
1502
1502
|
const g = [], u = h.filterList;
|
|
1503
1503
|
if (u)
|
|
1504
|
-
for (let
|
|
1505
|
-
u[
|
|
1504
|
+
for (let m = 0; m < u.length; m++)
|
|
1505
|
+
u[m].children.length > 0 && s(u[m], g);
|
|
1506
1506
|
return g;
|
|
1507
1507
|
};
|
|
1508
1508
|
return async function() {
|
|
1509
|
-
var
|
|
1509
|
+
var k, _;
|
|
1510
1510
|
const l = e.type;
|
|
1511
1511
|
let d = e.graphicConfig;
|
|
1512
1512
|
(!d || Object.keys(d).length === 0) && (d = {
|
|
@@ -1528,31 +1528,31 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1528
1528
|
const g = t(d);
|
|
1529
1529
|
let u;
|
|
1530
1530
|
if (Array.isArray(d.series) && d.series.length > 0) {
|
|
1531
|
-
const
|
|
1531
|
+
const S = (k = d.seriesList) == null ? void 0 : k.find((f) => {
|
|
1532
1532
|
const p = d.series[0];
|
|
1533
|
-
return
|
|
1533
|
+
return f.name === p || f.nameBak === p;
|
|
1534
1534
|
});
|
|
1535
|
-
|
|
1536
|
-
label:
|
|
1537
|
-
columnName:
|
|
1535
|
+
S != null && (u = {
|
|
1536
|
+
label: S.name,
|
|
1537
|
+
columnName: S.label
|
|
1538
1538
|
});
|
|
1539
1539
|
}
|
|
1540
|
-
let
|
|
1540
|
+
let m;
|
|
1541
1541
|
if (c.length > 0) {
|
|
1542
|
-
|
|
1542
|
+
m = {
|
|
1543
1543
|
label: c[0],
|
|
1544
1544
|
columnName: c[0]
|
|
1545
1545
|
};
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1546
|
+
const S = ((_ = d.classifyList) == null ? void 0 : _.find((f) => (f == null ? void 0 : f.name) === c[0] || (f == null ? void 0 : f.nameBak) === c[0])) || {};
|
|
1547
|
+
m.columnName = S.label, r(m, d.classifyList), m.conditions = i(m, "classifyList", d) || [];
|
|
1548
1548
|
}
|
|
1549
1549
|
u && (r(u, d.seriesList), u.conditions = i(u, "seriesList", d) || []);
|
|
1550
|
-
for (let
|
|
1551
|
-
g[
|
|
1552
|
-
let
|
|
1553
|
-
(d == null ? void 0 : d.pageMode) === "design" ?
|
|
1554
|
-
let v = "SQL_VIEW",
|
|
1555
|
-
d.source === "INDICATOR_LIB" && (v = "INDICATOR_LIB",
|
|
1550
|
+
for (let S = 0; S < g.length; S++)
|
|
1551
|
+
g[S].location === "RIGHT" ? g[S].conditions = i(g[S], "rightAxisList", d) : g[S].conditions = i(g[S], "leftAxisList", d);
|
|
1552
|
+
let b;
|
|
1553
|
+
(d == null ? void 0 : d.pageMode) === "design" ? b = d.sqlConditions ?? [] : b = a(d == null ? void 0 : d.relativeList);
|
|
1554
|
+
let v = "SQL_VIEW", y = "", A = "", x = "";
|
|
1555
|
+
d.source === "INDICATOR_LIB" && (v = "INDICATOR_LIB", y = d.fixedDimSql, A = d.dataSourceId, x = d.idxLibMode);
|
|
1556
1556
|
const O = {
|
|
1557
1557
|
ecanBar: "bar",
|
|
1558
1558
|
ecanLine: "line",
|
|
@@ -1560,7 +1560,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1560
1560
|
ecanScatter: "scatter"
|
|
1561
1561
|
};
|
|
1562
1562
|
try {
|
|
1563
|
-
const
|
|
1563
|
+
const S = await Te.get(`${ct}/user/anonymous?username=admin`, {
|
|
1564
1564
|
headers: {
|
|
1565
1565
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1566
1566
|
current_context: "ygt"
|
|
@@ -1571,19 +1571,19 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1571
1571
|
plugin: "1",
|
|
1572
1572
|
layer: "2",
|
|
1573
1573
|
chartType: O[l],
|
|
1574
|
-
classification:
|
|
1574
|
+
classification: m,
|
|
1575
1575
|
indicatorList: g,
|
|
1576
1576
|
series: u,
|
|
1577
|
-
sqlConditions:
|
|
1577
|
+
sqlConditions: b,
|
|
1578
1578
|
source: v,
|
|
1579
|
-
fixedDimSql:
|
|
1580
|
-
dataSourceId:
|
|
1581
|
-
idxLibMode:
|
|
1579
|
+
fixedDimSql: y,
|
|
1580
|
+
dataSourceId: A,
|
|
1581
|
+
idxLibMode: x
|
|
1582
1582
|
}, {
|
|
1583
|
-
headers: { Authentication:
|
|
1583
|
+
headers: { Authentication: S.data.data.token }
|
|
1584
1584
|
});
|
|
1585
|
-
} catch (
|
|
1586
|
-
console.error(
|
|
1585
|
+
} catch (S) {
|
|
1586
|
+
console.error(S);
|
|
1587
1587
|
}
|
|
1588
1588
|
};
|
|
1589
1589
|
}, $e = (e, n) => {
|
|
@@ -1635,10 +1635,10 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1635
1635
|
indexCode: h,
|
|
1636
1636
|
calcType: g = "COLUMN",
|
|
1637
1637
|
builtInFormula: u,
|
|
1638
|
-
builtInValueSource:
|
|
1639
|
-
builtInCalcWay:
|
|
1638
|
+
builtInValueSource: m,
|
|
1639
|
+
builtInCalcWay: b,
|
|
1640
1640
|
formula: v,
|
|
1641
|
-
conditions:
|
|
1641
|
+
conditions: y
|
|
1642
1642
|
} = s;
|
|
1643
1643
|
return {
|
|
1644
1644
|
label: i,
|
|
@@ -1649,10 +1649,10 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1649
1649
|
hrpIndexCode: h,
|
|
1650
1650
|
aggregate: "SUM",
|
|
1651
1651
|
builtInFormula: u,
|
|
1652
|
-
builtInValueSource:
|
|
1653
|
-
builtInCalcWay:
|
|
1652
|
+
builtInValueSource: m,
|
|
1653
|
+
builtInCalcWay: b,
|
|
1654
1654
|
formula: v,
|
|
1655
|
-
conditions:
|
|
1655
|
+
conditions: y
|
|
1656
1656
|
};
|
|
1657
1657
|
}, { getGlobalModel: a } = N(ue, {
|
|
1658
1658
|
// @ts-ignore
|
|
@@ -1666,19 +1666,19 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1666
1666
|
const h = s[c], {
|
|
1667
1667
|
id: g,
|
|
1668
1668
|
conditionLabel: u,
|
|
1669
|
-
conditionKey:
|
|
1670
|
-
conditionValueType:
|
|
1669
|
+
conditionKey: m,
|
|
1670
|
+
conditionValueType: b
|
|
1671
1671
|
} = h, v = {
|
|
1672
1672
|
rule: "NONE",
|
|
1673
1673
|
label: u,
|
|
1674
|
-
fieldName:
|
|
1674
|
+
fieldName: m,
|
|
1675
1675
|
fieldValue: "",
|
|
1676
1676
|
// 在关联控件中取
|
|
1677
|
-
valueType:
|
|
1678
|
-
},
|
|
1679
|
-
if (En(
|
|
1680
|
-
const { value:
|
|
1681
|
-
v.fieldValue = (d =
|
|
1677
|
+
valueType: b
|
|
1678
|
+
}, y = a(g) || {};
|
|
1679
|
+
if (En(y.type, "date")) {
|
|
1680
|
+
const { value: A, format: x } = y || {};
|
|
1681
|
+
v.fieldValue = (d = C(A)) == null ? void 0 : d.format(x), v.dateFormat = x;
|
|
1682
1682
|
}
|
|
1683
1683
|
l.push(v);
|
|
1684
1684
|
}
|
|
@@ -1694,22 +1694,22 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1694
1694
|
chartType: h,
|
|
1695
1695
|
classificationList: g = [],
|
|
1696
1696
|
seriesList: u = [],
|
|
1697
|
-
leftAxisList:
|
|
1698
|
-
rightAxisList:
|
|
1697
|
+
leftAxisList: m = [],
|
|
1698
|
+
rightAxisList: b = [],
|
|
1699
1699
|
queryColumnList: v = [],
|
|
1700
|
-
indicators:
|
|
1701
|
-
controlList:
|
|
1702
|
-
dataSourceId:
|
|
1700
|
+
indicators: y = [],
|
|
1701
|
+
controlList: A = [],
|
|
1702
|
+
dataSourceId: x,
|
|
1703
1703
|
idxLibMode: O,
|
|
1704
|
-
preview:
|
|
1704
|
+
preview: k = !1
|
|
1705
1705
|
} = s || {};
|
|
1706
|
-
let
|
|
1706
|
+
let _;
|
|
1707
1707
|
if (Array.isArray(g) && g.length > 0) {
|
|
1708
1708
|
const w = g.length;
|
|
1709
1709
|
for (let L = 0; L < w; L++) {
|
|
1710
1710
|
const j = g[L] || {}, { label: H = "", name: F = "", show: P = !1, sort: z, customGroup: V, conditions: K } = j;
|
|
1711
1711
|
if (P || w === 1) {
|
|
1712
|
-
|
|
1712
|
+
_ = {
|
|
1713
1713
|
label: H,
|
|
1714
1714
|
columnName: F,
|
|
1715
1715
|
show: P,
|
|
@@ -1721,13 +1721,13 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
|
-
let
|
|
1724
|
+
let S;
|
|
1725
1725
|
if (Array.isArray(u) && u.length > 0) {
|
|
1726
1726
|
const w = u.length;
|
|
1727
1727
|
for (let L = 0; L < w; L++) {
|
|
1728
1728
|
const j = u[L] || {}, { label: H = "", name: F = "", show: P = !1, sort: z, customGroup: V, conditions: K } = j;
|
|
1729
1729
|
if (P || w === 1) {
|
|
1730
|
-
|
|
1730
|
+
S = {
|
|
1731
1731
|
label: H,
|
|
1732
1732
|
columnName: F,
|
|
1733
1733
|
show: P,
|
|
@@ -1739,23 +1739,23 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const f = [];
|
|
1743
1743
|
v == null || v.forEach((w) => {
|
|
1744
|
-
|
|
1744
|
+
f.push(t(w));
|
|
1745
1745
|
});
|
|
1746
1746
|
const p = [];
|
|
1747
|
-
if (
|
|
1747
|
+
if (m == null || m.forEach((w) => {
|
|
1748
1748
|
w.location = "LEFT", p.push(o(w));
|
|
1749
|
-
}), y == null || y.forEach((w) => {
|
|
1750
|
-
w.location = "RIGHT", p.push(o(w));
|
|
1751
1749
|
}), b == null || b.forEach((w) => {
|
|
1750
|
+
w.location = "RIGHT", p.push(o(w));
|
|
1751
|
+
}), y == null || y.forEach((w) => {
|
|
1752
1752
|
w.location = "LEFT", p.push(o(w));
|
|
1753
|
-
}), c === "1" &&
|
|
1753
|
+
}), c === "1" && f.length === 0)
|
|
1754
1754
|
return;
|
|
1755
1755
|
if (c === "2" && p.length === 0)
|
|
1756
1756
|
return;
|
|
1757
|
-
let
|
|
1758
|
-
(s == null ? void 0 : s.pageMode) === "design" ?
|
|
1757
|
+
let T;
|
|
1758
|
+
(s == null ? void 0 : s.pageMode) === "design" ? T = s.sqlConditions ?? [] : T = r(A);
|
|
1759
1759
|
try {
|
|
1760
1760
|
return await Te.post(
|
|
1761
1761
|
`${ct}/diagram`,
|
|
@@ -1765,16 +1765,16 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1765
1765
|
plugin: d,
|
|
1766
1766
|
layer: c,
|
|
1767
1767
|
chartType: h,
|
|
1768
|
-
classification:
|
|
1769
|
-
series:
|
|
1768
|
+
classification: _,
|
|
1769
|
+
series: S,
|
|
1770
1770
|
indicatorList: p,
|
|
1771
|
-
queryColumns:
|
|
1771
|
+
queryColumns: f,
|
|
1772
1772
|
pageFlag: !0,
|
|
1773
|
-
sqlConditions:
|
|
1773
|
+
sqlConditions: T,
|
|
1774
1774
|
// fixedDimSql: '',
|
|
1775
|
-
dataSourceId:
|
|
1775
|
+
dataSourceId: x,
|
|
1776
1776
|
idxLibMode: O,
|
|
1777
|
-
preview:
|
|
1777
|
+
preview: k
|
|
1778
1778
|
},
|
|
1779
1779
|
{
|
|
1780
1780
|
headers: {
|
|
@@ -1815,31 +1815,31 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1815
1815
|
backgroundSize: e.backgroundSize
|
|
1816
1816
|
})), t = M(0), o = M(0), a = M(0), r = M(0), s = M(!1), i = M();
|
|
1817
1817
|
let l;
|
|
1818
|
-
const d = () => new Promise((
|
|
1818
|
+
const d = () => new Promise((b) => {
|
|
1819
1819
|
ft(() => {
|
|
1820
|
-
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = i.value.clientWidth, o.value = i.value.clientHeight), (!a.value || !r.value) && (a.value = window.screen.width, r.value = window.screen.height),
|
|
1820
|
+
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = i.value.clientWidth, o.value = i.value.clientHeight), (!a.value || !r.value) && (a.value = window.screen.width, r.value = window.screen.height), b();
|
|
1821
1821
|
});
|
|
1822
1822
|
}), c = () => {
|
|
1823
1823
|
t.value && o.value ? (i.value.style.width = `${t.value}px`, i.value.style.height = `${o.value}px`) : (i.value.style.width = `${a.value}px`, i.value.style.height = `${r.value}px`);
|
|
1824
1824
|
}, h = () => {
|
|
1825
|
-
const
|
|
1826
|
-
i.value && (i.value.style.transform = `scale(${
|
|
1825
|
+
const b = document.body.clientWidth, v = document.body.clientHeight, y = t.value || a.value, A = o.value || r.value, x = b / y, O = v / A;
|
|
1826
|
+
i.value && (i.value.style.transform = `scale(${x}, ${O})`);
|
|
1827
1827
|
}, g = Ft(async () => {
|
|
1828
1828
|
await d(), h();
|
|
1829
1829
|
}, 100), u = () => {
|
|
1830
|
-
const
|
|
1831
|
-
l = new
|
|
1830
|
+
const b = window.MutationObserver;
|
|
1831
|
+
l = new b(g), l.observe(i.value, {
|
|
1832
1832
|
attributes: !0,
|
|
1833
1833
|
attributeFilter: ["style"],
|
|
1834
1834
|
attributeOldValue: !0
|
|
1835
1835
|
});
|
|
1836
|
-
},
|
|
1836
|
+
}, m = () => {
|
|
1837
1837
|
l && (l.disconnect(), l.takeRecords(), l = null);
|
|
1838
1838
|
};
|
|
1839
1839
|
return Ne(async () => {
|
|
1840
1840
|
s.value = !1, await d(), c(), h(), window.addEventListener("resize", g), u(), s.value = !0;
|
|
1841
1841
|
}), ut(() => {
|
|
1842
|
-
window.removeEventListener("resize", g),
|
|
1842
|
+
window.removeEventListener("resize", g), m();
|
|
1843
1843
|
}), {
|
|
1844
1844
|
style: n,
|
|
1845
1845
|
container: i,
|
|
@@ -1904,55 +1904,55 @@ const Ol = /* @__PURE__ */ X(Ml, [["render", Fl], ["__scopeId", "data-v-242d350e
|
|
|
1904
1904
|
h.pop();
|
|
1905
1905
|
}, u = (F) => {
|
|
1906
1906
|
h.push(F);
|
|
1907
|
-
},
|
|
1907
|
+
}, m = /* @__PURE__ */ new Map(), b = (F) => m.get(F);
|
|
1908
1908
|
Re(Mn, {
|
|
1909
1909
|
popUseModalIds: g,
|
|
1910
1910
|
pushUseModalIds: u,
|
|
1911
|
-
getModalModel:
|
|
1911
|
+
getModalModel: b,
|
|
1912
1912
|
setModalModel: (F, P) => {
|
|
1913
|
-
|
|
1913
|
+
m.set(F, P);
|
|
1914
1914
|
}
|
|
1915
1915
|
});
|
|
1916
|
-
const
|
|
1917
|
-
|
|
1916
|
+
const y = na(), A = /* @__PURE__ */ new Set(), x = (F, P) => {
|
|
1917
|
+
A.add(F), y.on(F, (z) => typeof P[z] == "function" && P[z]()), Tt(() => {
|
|
1918
1918
|
O(F);
|
|
1919
1919
|
});
|
|
1920
1920
|
}, O = (F) => {
|
|
1921
|
-
|
|
1921
|
+
A.delete(F), y.off(F);
|
|
1922
1922
|
};
|
|
1923
1923
|
Re($t, {
|
|
1924
|
-
onEvent:
|
|
1924
|
+
onEvent: x,
|
|
1925
1925
|
offEvent: O,
|
|
1926
1926
|
emitEvent: (F, P) => {
|
|
1927
1927
|
if (F === "PAGE") {
|
|
1928
1928
|
const z = h.length;
|
|
1929
1929
|
let V = [];
|
|
1930
1930
|
if (z === 0)
|
|
1931
|
-
V = [...
|
|
1931
|
+
V = [...A];
|
|
1932
1932
|
else {
|
|
1933
1933
|
const K = h[z - 1];
|
|
1934
|
-
V = [...
|
|
1934
|
+
V = [...b(K)];
|
|
1935
1935
|
}
|
|
1936
1936
|
V.forEach((K) => {
|
|
1937
|
-
|
|
1937
|
+
y.emit(K, P);
|
|
1938
1938
|
});
|
|
1939
1939
|
} else
|
|
1940
|
-
|
|
1940
|
+
y.emit(F, P);
|
|
1941
1941
|
}
|
|
1942
1942
|
});
|
|
1943
|
-
const
|
|
1943
|
+
const _ = M(0);
|
|
1944
1944
|
Re(In, {
|
|
1945
1945
|
requestToken: () => {
|
|
1946
|
-
|
|
1946
|
+
_.value = C(_) + 1;
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
|
-
const
|
|
1949
|
+
const f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), T = ({ requestFn: F = () => {
|
|
1950
1950
|
}, sortNum: P = 0, id: z = "" }) => {
|
|
1951
|
-
if (
|
|
1952
|
-
const V =
|
|
1951
|
+
if (f.has(P)) {
|
|
1952
|
+
const V = f.get(P);
|
|
1953
1953
|
V == null || V.push(F);
|
|
1954
1954
|
} else
|
|
1955
|
-
|
|
1955
|
+
f.set(P, [F]);
|
|
1956
1956
|
p.set(z, F);
|
|
1957
1957
|
}, R = (F) => new Promise((P, z) => {
|
|
1958
1958
|
const V = F.map((K) => K());
|
|
@@ -1980,11 +1980,11 @@ const Ol = /* @__PURE__ */ X(Ml, [["render", Fl], ["__scopeId", "data-v-242d350e
|
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
1982
|
} else {
|
|
1983
|
-
const V = Array.from(
|
|
1983
|
+
const V = Array.from(f);
|
|
1984
1984
|
V.sort((de, Me) => Me[0] - de[0]);
|
|
1985
1985
|
const K = V.length;
|
|
1986
1986
|
try {
|
|
1987
|
-
e.pageMode !== "design" &&
|
|
1987
|
+
e.pageMode !== "design" && C(_) > 0 && await w();
|
|
1988
1988
|
for (let de = 0; de < K; de++) {
|
|
1989
1989
|
const Me = V[de][1];
|
|
1990
1990
|
await R(Me);
|
|
@@ -1992,25 +1992,25 @@ const Ol = /* @__PURE__ */ X(Ml, [["render", Fl], ["__scopeId", "data-v-242d350e
|
|
|
1992
1992
|
} catch (de) {
|
|
1993
1993
|
console.error(de);
|
|
1994
1994
|
} finally {
|
|
1995
|
-
|
|
1995
|
+
f.clear(), P(null);
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
1998
|
});
|
|
1999
1999
|
Re(Se, {
|
|
2000
|
-
setRequest:
|
|
2000
|
+
setRequest: T,
|
|
2001
2001
|
touchRequest: L
|
|
2002
2002
|
}), Re(Je, {
|
|
2003
2003
|
emitRefreshPage: () => {
|
|
2004
|
-
|
|
2004
|
+
y.emit(Je);
|
|
2005
2005
|
}
|
|
2006
2006
|
});
|
|
2007
2007
|
const H = (F) => {
|
|
2008
|
-
|
|
2009
|
-
|
|
2008
|
+
y.on(Je, () => F()), Ne(() => {
|
|
2009
|
+
y.off(Je);
|
|
2010
2010
|
});
|
|
2011
2011
|
};
|
|
2012
2012
|
return Tt(() => {
|
|
2013
|
-
|
|
2013
|
+
f == null || f.clear(), p == null || p.clear();
|
|
2014
2014
|
}), n({
|
|
2015
2015
|
touchRequest: L,
|
|
2016
2016
|
getGlobalModel: d,
|
|
@@ -2066,29 +2066,29 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2066
2066
|
immediate: !0
|
|
2067
2067
|
});
|
|
2068
2068
|
const o = q(() => {
|
|
2069
|
-
var
|
|
2070
|
-
const g =
|
|
2069
|
+
var b;
|
|
2070
|
+
const g = C(t);
|
|
2071
2071
|
let u = e.text;
|
|
2072
2072
|
u = u == null ? void 0 : u.replace(/\n|\\n/g, "<br/>"), u = u == null ? void 0 : u.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
2073
|
-
const
|
|
2074
|
-
if (
|
|
2073
|
+
const m = u.match(/\{(.+?)\}/g);
|
|
2074
|
+
if (m == null || m.length === 0)
|
|
2075
2075
|
return u;
|
|
2076
|
-
for (let v = 0; v <
|
|
2077
|
-
const
|
|
2078
|
-
let
|
|
2079
|
-
const O =
|
|
2080
|
-
for (let
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2076
|
+
for (let v = 0; v < m.length; v++) {
|
|
2077
|
+
const y = m[v], A = (b = y == null ? void 0 : y.slice(1, y.length - 1)) == null ? void 0 : b.trim();
|
|
2078
|
+
let x = A;
|
|
2079
|
+
const O = A.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
2080
|
+
for (let _ = 0; _ < O.length; _++) {
|
|
2081
|
+
const S = O[_], f = g[S];
|
|
2082
|
+
f && (x = A.replace(S, f));
|
|
2083
2083
|
}
|
|
2084
|
-
if (/\(.*\)/g.test(
|
|
2085
|
-
const
|
|
2086
|
-
|
|
2084
|
+
if (/\(.*\)/g.test(x)) {
|
|
2085
|
+
const _ = ht(x);
|
|
2086
|
+
_ != null && (x = _);
|
|
2087
2087
|
}
|
|
2088
|
-
let
|
|
2089
|
-
if (
|
|
2090
|
-
const
|
|
2091
|
-
|
|
2088
|
+
let k = x;
|
|
2089
|
+
if (k === A && (k = e.variableDefaultValue), k != null) {
|
|
2090
|
+
const _ = e.format;
|
|
2091
|
+
_ === "percentage" ? (k = +k, isNaN(k) ? u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : k >= 0 ? (k = (k * 100).toFixed(2), u = u.replace(y, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Gl}"/>${k}%</span>`)) : (k = (k * 100).toFixed(2), u = u.replace(y, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+k)}%</span>`))) : e.format === "percent" ? (k = +k, isNaN(k) || (k = (k * 100).toFixed(2), u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}%</span>`))) : e.format === "money" ? (k = +k, isNaN(k) || (k = zt(k), u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}</span>`))) : _ === "thousands" ? (k = +k, isNaN(k) || (k = Ll(k), u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}</span>`))) : u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}</span>`);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
return `<span>${u}</span>`;
|
|
@@ -2096,7 +2096,7 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2096
2096
|
pageMode: "normal"
|
|
2097
2097
|
}), r = xe(e), s = M(!1), i = async () => {
|
|
2098
2098
|
var g;
|
|
2099
|
-
if (
|
|
2099
|
+
if (C(a) !== "design")
|
|
2100
2100
|
try {
|
|
2101
2101
|
s.value = !0;
|
|
2102
2102
|
const u = await r();
|
|
@@ -2115,7 +2115,7 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2115
2115
|
const { setRequest: d } = N(Se, {
|
|
2116
2116
|
// @ts-ignore
|
|
2117
2117
|
// eslint-disable-next-line no-void
|
|
2118
|
-
setRequest: ({ id: g, sortNum: u, requestFn:
|
|
2118
|
+
setRequest: ({ id: g, sortNum: u, requestFn: m }) => {
|
|
2119
2119
|
}
|
|
2120
2120
|
});
|
|
2121
2121
|
d({
|
|
@@ -2128,13 +2128,13 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2128
2128
|
const h = fe(e)("click", () => {
|
|
2129
2129
|
if (!e.linkPage && !e.href)
|
|
2130
2130
|
return;
|
|
2131
|
-
const g = e.linkPage || "", u = Fn(
|
|
2132
|
-
let
|
|
2133
|
-
|
|
2131
|
+
const g = e.linkPage || "", u = Fn(C(a), g), m = e.href;
|
|
2132
|
+
let b = m || u;
|
|
2133
|
+
b = se(b);
|
|
2134
2134
|
const v = e.target;
|
|
2135
|
-
v && (v !== "event" ? window.open(
|
|
2135
|
+
v && (v !== "event" ? window.open(b, "_" + v) : window.parent.postMessage({
|
|
2136
2136
|
type: "openPage",
|
|
2137
|
-
url:
|
|
2137
|
+
url: m
|
|
2138
2138
|
}, "*"));
|
|
2139
2139
|
});
|
|
2140
2140
|
return {
|
|
@@ -2264,13 +2264,13 @@ const ti = /* @__PURE__ */ X(Xl, [["render", ei], ["__scopeId", "data-v-47d57d2d
|
|
|
2264
2264
|
textAlign: "center"
|
|
2265
2265
|
} : {
|
|
2266
2266
|
textAlign: "left"
|
|
2267
|
-
}), a = (
|
|
2267
|
+
}), a = (m, b) => b == null || b === "" ? m : {
|
|
2268
2268
|
money: zt,
|
|
2269
2269
|
percentage: dt,
|
|
2270
2270
|
contrast: dt
|
|
2271
|
-
}[
|
|
2272
|
-
const v = parseFloat(
|
|
2273
|
-
if (
|
|
2271
|
+
}[b](m) || "", r = (m, b) => {
|
|
2272
|
+
const v = parseFloat(m + "");
|
|
2273
|
+
if (b !== "contrast")
|
|
2274
2274
|
return "";
|
|
2275
2275
|
switch (!0) {
|
|
2276
2276
|
case v >= 0:
|
|
@@ -2281,14 +2281,14 @@ const ti = /* @__PURE__ */ X(Xl, [["render", ei], ["__scopeId", "data-v-47d57d2d
|
|
|
2281
2281
|
}, s = xe(e), { pageMode: i } = N(ce, {
|
|
2282
2282
|
pageMode: "normal"
|
|
2283
2283
|
}), l = M(!1), d = async () => {
|
|
2284
|
-
var
|
|
2285
|
-
if (!(e.dataType !== "request" ||
|
|
2284
|
+
var m;
|
|
2285
|
+
if (!(e.dataType !== "request" || C(i) === "design"))
|
|
2286
2286
|
try {
|
|
2287
2287
|
l.value = !0;
|
|
2288
|
-
const
|
|
2289
|
-
n.value = ((
|
|
2290
|
-
} catch (
|
|
2291
|
-
console.error(
|
|
2288
|
+
const b = await s();
|
|
2289
|
+
n.value = ((m = b == null ? void 0 : b.data) == null ? void 0 : m.data.rows) || [];
|
|
2290
|
+
} catch (b) {
|
|
2291
|
+
console.error(b);
|
|
2292
2292
|
} finally {
|
|
2293
2293
|
l.value = !1;
|
|
2294
2294
|
}
|
|
@@ -2302,7 +2302,7 @@ const ti = /* @__PURE__ */ X(Xl, [["render", ei], ["__scopeId", "data-v-47d57d2d
|
|
|
2302
2302
|
const { setRequest: u } = N(Se, {
|
|
2303
2303
|
// @ts-ignore
|
|
2304
2304
|
// eslint-disable-next-line no-void
|
|
2305
|
-
setRequest: ({ id:
|
|
2305
|
+
setRequest: ({ id: m, sortNum: b, requestFn: v }) => {
|
|
2306
2306
|
}
|
|
2307
2307
|
});
|
|
2308
2308
|
return u({
|
|
@@ -2443,62 +2443,62 @@ const gi = /* @__PURE__ */ X(ai, [["render", mi], ["__scopeId", "data-v-211785ca
|
|
|
2443
2443
|
const { pageMode: n } = N(ce, {
|
|
2444
2444
|
pageMode: "normal"
|
|
2445
2445
|
}), t = ie(e), o = q(() => {
|
|
2446
|
-
const
|
|
2447
|
-
return parseFloat(
|
|
2446
|
+
const m = e.width;
|
|
2447
|
+
return parseFloat(m);
|
|
2448
2448
|
}), a = M({});
|
|
2449
2449
|
ne(() => e.data, () => {
|
|
2450
|
-
(e.dataType === "static" ||
|
|
2450
|
+
(e.dataType === "static" || C(n) === "design") && (a.value = e.data);
|
|
2451
2451
|
}, {
|
|
2452
2452
|
immediate: !0,
|
|
2453
2453
|
deep: !0
|
|
2454
2454
|
});
|
|
2455
2455
|
const r = q(() => {
|
|
2456
|
-
const
|
|
2457
|
-
if (
|
|
2458
|
-
return isNaN(
|
|
2456
|
+
const m = C(a), b = +e.variableDefaultValue;
|
|
2457
|
+
if (m == null)
|
|
2458
|
+
return isNaN(b) ? 0 : b;
|
|
2459
2459
|
const v = e.text.match(/\{.+\}/g) || [];
|
|
2460
|
-
let
|
|
2461
|
-
const
|
|
2462
|
-
for (let
|
|
2463
|
-
const O = v[
|
|
2464
|
-
if (
|
|
2465
|
-
|
|
2460
|
+
let y;
|
|
2461
|
+
const A = new Set(Object.keys(m));
|
|
2462
|
+
for (let x = 0; x < v.length; x++) {
|
|
2463
|
+
const O = v[x], k = O.slice(1, O.length - 1);
|
|
2464
|
+
if (A.has(k)) {
|
|
2465
|
+
y = m[k];
|
|
2466
2466
|
break;
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
|
-
return typeof
|
|
2469
|
+
return typeof y == "number" ? y = y * 100 : typeof y == "string" && !isNaN(+y) ? y = +y * 100 : isNaN(b) ? y = 0 : y = b * 100, e.decimalFormat && (y = +y.toFixed(2)), y;
|
|
2470
2470
|
}), s = q(() => {
|
|
2471
|
-
var
|
|
2472
|
-
let
|
|
2473
|
-
if (
|
|
2474
|
-
return
|
|
2475
|
-
const
|
|
2476
|
-
for (let
|
|
2477
|
-
const
|
|
2478
|
-
let
|
|
2479
|
-
const
|
|
2480
|
-
for (let
|
|
2481
|
-
const
|
|
2482
|
-
|
|
2471
|
+
var A;
|
|
2472
|
+
let m = e.text;
|
|
2473
|
+
if (m === "")
|
|
2474
|
+
return C(r);
|
|
2475
|
+
const b = e.variableDefaultValue, v = C(a), y = m.match(/\{.+\}/g) || [];
|
|
2476
|
+
for (let x = 0; x < y.length; x++) {
|
|
2477
|
+
const O = y[x];
|
|
2478
|
+
let k = O.slice(1, O.length - 1);
|
|
2479
|
+
const _ = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, S = O.match(_);
|
|
2480
|
+
for (let p = 0; p < (S == null ? void 0 : S.length); p++) {
|
|
2481
|
+
const T = (A = S[p]) == null ? void 0 : A.trim();
|
|
2482
|
+
v[T] != null && (k = k.replace(T, v[T]));
|
|
2483
2483
|
}
|
|
2484
|
-
let
|
|
2484
|
+
let f = k;
|
|
2485
2485
|
try {
|
|
2486
|
-
/\(.*\)/g.test(
|
|
2487
|
-
} catch (
|
|
2488
|
-
console.error(
|
|
2486
|
+
/\(.*\)/g.test(k) && (f = ht(k));
|
|
2487
|
+
} catch (p) {
|
|
2488
|
+
console.error(p);
|
|
2489
2489
|
}
|
|
2490
|
-
|
|
2490
|
+
typeof +f == "number" || !isNaN(+f) ? e.decimalFormat && (f = +f * 100, f = f.toFixed(2)) : f = b, m = m.replace(O, f + "");
|
|
2491
2491
|
}
|
|
2492
|
-
return
|
|
2492
|
+
return m;
|
|
2493
2493
|
}), i = xe(e), l = M(!1), d = async () => {
|
|
2494
|
-
var
|
|
2495
|
-
if (!(e.dataType !== "request" ||
|
|
2494
|
+
var m;
|
|
2495
|
+
if (!(e.dataType !== "request" || C(n) === "design"))
|
|
2496
2496
|
try {
|
|
2497
2497
|
l.value = !0;
|
|
2498
|
-
const
|
|
2499
|
-
a.value = ((
|
|
2500
|
-
} catch (
|
|
2501
|
-
console.error(
|
|
2498
|
+
const b = await i();
|
|
2499
|
+
a.value = ((m = b == null ? void 0 : b.data) == null ? void 0 : m.data) || {};
|
|
2500
|
+
} catch (b) {
|
|
2501
|
+
console.error(b);
|
|
2502
2502
|
} finally {
|
|
2503
2503
|
l.value = !1;
|
|
2504
2504
|
}
|
|
@@ -2512,7 +2512,7 @@ const gi = /* @__PURE__ */ X(ai, [["render", mi], ["__scopeId", "data-v-211785ca
|
|
|
2512
2512
|
}), { setRequest: u } = N(Se, {
|
|
2513
2513
|
// @ts-ignore
|
|
2514
2514
|
// eslint-disable-next-line no-void
|
|
2515
|
-
setRequest: ({ id:
|
|
2515
|
+
setRequest: ({ id: m, sortNum: b, requestFn: v }) => {
|
|
2516
2516
|
}
|
|
2517
2517
|
});
|
|
2518
2518
|
return u({
|
|
@@ -2567,7 +2567,7 @@ function vi(e, n, t, o, a, r) {
|
|
|
2567
2567
|
}, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
|
|
2568
2568
|
], 4);
|
|
2569
2569
|
}
|
|
2570
|
-
const pi = /* @__PURE__ */ X(bi, [["render", vi], ["__scopeId", "data-v-
|
|
2570
|
+
const pi = /* @__PURE__ */ X(bi, [["render", vi], ["__scopeId", "data-v-8bb4b60f"]]), Ci = oe(pi), jn = {
|
|
2571
2571
|
...re,
|
|
2572
2572
|
width: "200px",
|
|
2573
2573
|
id: "",
|
|
@@ -2754,22 +2754,22 @@ const Ii = /* @__PURE__ */ X(_i, [["render", Li]]), Mi = oe(Ii), Zn = {
|
|
|
2754
2754
|
setup(e) {
|
|
2755
2755
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = xe(e), { pageMode: a } = N(ce, {
|
|
2756
2756
|
pageMode: "normal"
|
|
2757
|
-
}), r = M(e.data), s = M(e.value || e.data[0]), i = e.dataFieldNames, l = (v,
|
|
2758
|
-
const
|
|
2757
|
+
}), r = M(e.data), s = M(e.value || e.data[0]), i = e.dataFieldNames, l = (v, y) => {
|
|
2758
|
+
const A = i.label, x = i.value;
|
|
2759
2759
|
let O;
|
|
2760
|
-
const
|
|
2761
|
-
return
|
|
2760
|
+
const k = y[A], _ = y[x];
|
|
2761
|
+
return k != null ? O = k : _ != null && (O = _), (O == null ? void 0 : O.toLowerCase().indexOf(v == null ? void 0 : v.toLowerCase())) >= 0;
|
|
2762
2762
|
}, d = M(!1), c = async () => {
|
|
2763
|
-
var v,
|
|
2764
|
-
if (!(e.dataType !== "request" ||
|
|
2763
|
+
var v, y;
|
|
2764
|
+
if (!(e.dataType !== "request" || C(a) === "design")) {
|
|
2765
2765
|
d.value = !0;
|
|
2766
2766
|
try {
|
|
2767
|
-
const
|
|
2768
|
-
r.value = ((
|
|
2769
|
-
const
|
|
2770
|
-
e.value === "" &&
|
|
2771
|
-
} catch (
|
|
2772
|
-
console.error(
|
|
2767
|
+
const A = await o();
|
|
2768
|
+
r.value = ((y = (v = A == null ? void 0 : A.data) == null ? void 0 : v.data) == null ? void 0 : y.rows) || [];
|
|
2769
|
+
const x = C(r)[0];
|
|
2770
|
+
e.value === "" && x != null && (s.value = x[i.value]);
|
|
2771
|
+
} catch (A) {
|
|
2772
|
+
console.error(A);
|
|
2773
2773
|
} finally {
|
|
2774
2774
|
d.value = !1;
|
|
2775
2775
|
}
|
|
@@ -2781,27 +2781,27 @@ const Ii = /* @__PURE__ */ X(_i, [["render", Li]]), Mi = oe(Ii), Zn = {
|
|
|
2781
2781
|
},
|
|
2782
2782
|
// @ts-ignore
|
|
2783
2783
|
// eslint-disable-next-line no-void
|
|
2784
|
-
setGlobalModel: (v,
|
|
2784
|
+
setGlobalModel: (v, y) => {
|
|
2785
2785
|
}
|
|
2786
2786
|
});
|
|
2787
2787
|
g(e.id, {
|
|
2788
2788
|
type: e.type,
|
|
2789
2789
|
value: s
|
|
2790
2790
|
});
|
|
2791
|
-
const
|
|
2792
|
-
const v = e.id,
|
|
2793
|
-
g(v, { ...
|
|
2791
|
+
const m = fe(e)("selectChange", () => {
|
|
2792
|
+
const v = e.id, y = h(v);
|
|
2793
|
+
g(v, { ...y, RECORD: s });
|
|
2794
2794
|
});
|
|
2795
2795
|
he(e, {
|
|
2796
|
-
selectChange:
|
|
2796
|
+
selectChange: m
|
|
2797
2797
|
});
|
|
2798
|
-
const { setRequest:
|
|
2798
|
+
const { setRequest: b } = N(Se, {
|
|
2799
2799
|
// @ts-ignore
|
|
2800
2800
|
// eslint-disable-next-line no-void
|
|
2801
|
-
setRequest: ({ id: v, sortNum:
|
|
2801
|
+
setRequest: ({ id: v, sortNum: y, requestFn: A }) => {
|
|
2802
2802
|
}
|
|
2803
2803
|
});
|
|
2804
|
-
return
|
|
2804
|
+
return b({
|
|
2805
2805
|
id: e.id,
|
|
2806
2806
|
requestFn: c,
|
|
2807
2807
|
sortNum: e.requestSort
|
|
@@ -2809,7 +2809,7 @@ const Ii = /* @__PURE__ */ X(_i, [["render", Li]]), Mi = oe(Ii), Zn = {
|
|
|
2809
2809
|
style: n,
|
|
2810
2810
|
getPopupContainer: t,
|
|
2811
2811
|
myValue: s,
|
|
2812
|
-
selectChange:
|
|
2812
|
+
selectChange: m,
|
|
2813
2813
|
options: r,
|
|
2814
2814
|
filterOption: l,
|
|
2815
2815
|
loading: d
|
|
@@ -2865,38 +2865,38 @@ const Ri = /* @__PURE__ */ X(Fi, [["render", Oi], ["__scopeId", "data-v-ef197aff
|
|
|
2865
2865
|
},
|
|
2866
2866
|
setup(e) {
|
|
2867
2867
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = M([null, null]);
|
|
2868
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([u,
|
|
2869
|
-
let
|
|
2870
|
-
if (
|
|
2871
|
-
const { type:
|
|
2872
|
-
switch (
|
|
2868
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([u, m, b, v, y, A]) => {
|
|
2869
|
+
let x = null, O = null;
|
|
2870
|
+
if (b && (x = Ce().subtract(v, y), O = Ce()), u && (x = Ce(se(u))), m && (O = Ce(se(m))), A) {
|
|
2871
|
+
const { type: k, value: _, mode: S } = A;
|
|
2872
|
+
switch (k) {
|
|
2873
2873
|
case "add":
|
|
2874
|
-
|
|
2874
|
+
x = x && x.add(_, S), O = O && O.add(_, S);
|
|
2875
2875
|
break;
|
|
2876
2876
|
case "minus":
|
|
2877
|
-
|
|
2877
|
+
x = x && x.subtract(_, S), O = O && O.subtract(_, S);
|
|
2878
2878
|
}
|
|
2879
2879
|
}
|
|
2880
|
-
o.value = [
|
|
2880
|
+
o.value = [x, O];
|
|
2881
2881
|
}, {
|
|
2882
2882
|
immediate: !0
|
|
2883
2883
|
});
|
|
2884
|
-
let a =
|
|
2884
|
+
let a = C(o)[0], r = C(o)[1];
|
|
2885
2885
|
const s = (u) => {
|
|
2886
2886
|
Array.isArray(u) ? (a = u[0], r = u[1]) : (a = null, r = null);
|
|
2887
2887
|
}, i = (u) => {
|
|
2888
|
-
let
|
|
2889
|
-
const
|
|
2888
|
+
let m = !1, { limitStartTime: b, limitEndTime: v } = e;
|
|
2889
|
+
const y = {
|
|
2890
2890
|
startTime: `${a || ""}`,
|
|
2891
2891
|
endTime: `${r || ""}`
|
|
2892
2892
|
};
|
|
2893
|
-
return
|
|
2893
|
+
return b = se(b, { codeData: y }), v = se(v, { codeData: y }), b && v ? m = !(Ce(b) < u && u < Ce(v)) : b ? m = Ce(b) > u : v && (m = Ce(v) < u), m;
|
|
2894
2894
|
}, { setGlobalModel: l } = N(ue, {
|
|
2895
2895
|
// @ts-ignore
|
|
2896
2896
|
// eslint-disable-next-line no-void
|
|
2897
|
-
setGlobalModel: (u,
|
|
2897
|
+
setGlobalModel: (u, m) => {
|
|
2898
2898
|
}
|
|
2899
|
-
}), d = q(() => Array.isArray(
|
|
2899
|
+
}), d = q(() => Array.isArray(C(o)) ? C(o)[0] : null), c = q(() => Array.isArray(C(o)) ? C(o)[1] : null);
|
|
2900
2900
|
l(e.id, {
|
|
2901
2901
|
type: e.type,
|
|
2902
2902
|
format: e.format,
|
|
@@ -2964,14 +2964,14 @@ const Pi = /* @__PURE__ */ X(zi, [["render", Ni], ["__scopeId", "data-v-24f19e2d
|
|
|
2964
2964
|
},
|
|
2965
2965
|
setup(e) {
|
|
2966
2966
|
const n = ie(e), o = fe(e)("click", () => {
|
|
2967
|
-
const i =
|
|
2967
|
+
const i = C(r);
|
|
2968
2968
|
i && e.target === "event" && window.parent.postMessage({
|
|
2969
2969
|
type: "openPage",
|
|
2970
2970
|
url: i
|
|
2971
2971
|
}, "*");
|
|
2972
2972
|
}), a = q(() => se(e.text)), r = q(() => se(e.href) || null), s = q(() => {
|
|
2973
2973
|
const i = e.target;
|
|
2974
|
-
if (!(i === "event" ||
|
|
2974
|
+
if (!(i === "event" || C(r) == null))
|
|
2975
2975
|
return {
|
|
2976
2976
|
self: "_self",
|
|
2977
2977
|
blank: "_blank"
|
|
@@ -3039,11 +3039,11 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3039
3039
|
},
|
|
3040
3040
|
setup(e) {
|
|
3041
3041
|
const n = ie(e), t = M([]), o = M([]), a = (u) => {
|
|
3042
|
-
const
|
|
3043
|
-
let
|
|
3042
|
+
const m = e.value;
|
|
3043
|
+
let b = [];
|
|
3044
3044
|
u.forEach((v) => {
|
|
3045
|
-
v.checked &&
|
|
3046
|
-
}), typeof
|
|
3045
|
+
v.checked && b.push(v.value);
|
|
3046
|
+
}), typeof m == "string" && m !== "" ? b = b.concat(m.split(",")) : Array.isArray(m) && (b = b.concat(m)), t.value = u, o.value = b;
|
|
3047
3047
|
};
|
|
3048
3048
|
ne(() => [e.data, e.value], ([u]) => {
|
|
3049
3049
|
a(u);
|
|
@@ -3054,11 +3054,11 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3054
3054
|
const r = xe(e), { pageMode: s } = N(ce, {
|
|
3055
3055
|
pageMode: "normal"
|
|
3056
3056
|
}), i = async () => {
|
|
3057
|
-
var
|
|
3058
|
-
if (e.dataType !== "request" ||
|
|
3057
|
+
var b, v;
|
|
3058
|
+
if (e.dataType !== "request" || C(s) === "design")
|
|
3059
3059
|
return;
|
|
3060
|
-
const u = await r(),
|
|
3061
|
-
a(
|
|
3060
|
+
const u = await r(), m = ((v = (b = u == null ? void 0 : u.data) == null ? void 0 : b.data) == null ? void 0 : v.rows) || [];
|
|
3061
|
+
a(m);
|
|
3062
3062
|
}, { getGlobalModel: l, setGlobalModel: d } = N(ue, {
|
|
3063
3063
|
// @ts-ignore
|
|
3064
3064
|
// eslint-disable-next-line no-void
|
|
@@ -3066,7 +3066,7 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3066
3066
|
},
|
|
3067
3067
|
// @ts-ignore
|
|
3068
3068
|
// eslint-disable-next-line no-void
|
|
3069
|
-
setGlobalModel: (u,
|
|
3069
|
+
setGlobalModel: (u, m) => {
|
|
3070
3070
|
}
|
|
3071
3071
|
});
|
|
3072
3072
|
d(e.id, {
|
|
@@ -3079,7 +3079,7 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3079
3079
|
}), { setRequest: g } = N(Se, {
|
|
3080
3080
|
// @ts-ignore
|
|
3081
3081
|
// eslint-disable-next-line no-void
|
|
3082
|
-
setRequest: ({ id: u, sortNum:
|
|
3082
|
+
setRequest: ({ id: u, sortNum: m, requestFn: b }) => {
|
|
3083
3083
|
}
|
|
3084
3084
|
});
|
|
3085
3085
|
return g({
|
|
@@ -3199,11 +3199,11 @@ const Ki = Q({
|
|
|
3199
3199
|
const n = ie(e), t = M([]), o = M(!1), a = () => {
|
|
3200
3200
|
o.value = !1;
|
|
3201
3201
|
}, r = q(() => {
|
|
3202
|
-
let { data:
|
|
3202
|
+
let { data: _ = [] } = C(t)[0] || {};
|
|
3203
3203
|
if (Array.isArray(e.colors)) {
|
|
3204
|
-
const
|
|
3205
|
-
|
|
3206
|
-
label:
|
|
3204
|
+
const S = e.isUseLabelColors, f = e.colors;
|
|
3205
|
+
_ = _.map((p, T) => ({
|
|
3206
|
+
label: S ? { color: f[T] } : {},
|
|
3207
3207
|
...p
|
|
3208
3208
|
}));
|
|
3209
3209
|
}
|
|
@@ -3260,17 +3260,17 @@ const Ki = Q({
|
|
|
3260
3260
|
tooltip: {
|
|
3261
3261
|
show: e.tooltipShow,
|
|
3262
3262
|
trigger: e.tooltipTrigger,
|
|
3263
|
-
formatter: (
|
|
3264
|
-
const { marker:
|
|
3263
|
+
formatter: (S) => {
|
|
3264
|
+
const { marker: f, seriesName: p, name: T, value: R, percent: w, data: L } = S || {};
|
|
3265
3265
|
return se(
|
|
3266
3266
|
e.tooltipFormatter,
|
|
3267
3267
|
{
|
|
3268
|
-
marker:
|
|
3269
|
-
name:
|
|
3268
|
+
marker: f,
|
|
3269
|
+
name: T,
|
|
3270
3270
|
value: R,
|
|
3271
3271
|
percent: w,
|
|
3272
3272
|
a: p,
|
|
3273
|
-
b:
|
|
3273
|
+
b: T,
|
|
3274
3274
|
c: R,
|
|
3275
3275
|
d: w,
|
|
3276
3276
|
...L
|
|
@@ -3298,7 +3298,7 @@ const Ki = Q({
|
|
|
3298
3298
|
color: e.colors,
|
|
3299
3299
|
series: [
|
|
3300
3300
|
{
|
|
3301
|
-
data:
|
|
3301
|
+
data: _,
|
|
3302
3302
|
type: "pie",
|
|
3303
3303
|
radius: [e.innerRadius, e.outerRadius],
|
|
3304
3304
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3336,52 +3336,52 @@ const Ki = Q({
|
|
|
3336
3336
|
}), { getGlobalModel: s, setGlobalModel: i } = N(ue, {
|
|
3337
3337
|
// @ts-ignore
|
|
3338
3338
|
// eslint-disable-next-line no-void
|
|
3339
|
-
getGlobalModel: (
|
|
3339
|
+
getGlobalModel: (_) => {
|
|
3340
3340
|
},
|
|
3341
3341
|
// @ts-ignore
|
|
3342
3342
|
// eslint-disable-next-line no-void
|
|
3343
|
-
setGlobalModel: (
|
|
3343
|
+
setGlobalModel: (_, S) => {
|
|
3344
3344
|
}
|
|
3345
3345
|
}), { pageMode: l } = N(ce, {
|
|
3346
3346
|
pageMode: "normal"
|
|
3347
|
-
}), d = (
|
|
3348
|
-
const { dataset:
|
|
3349
|
-
t.value =
|
|
3350
|
-
}, c = (
|
|
3351
|
-
const
|
|
3352
|
-
t.value =
|
|
3347
|
+
}), d = (_ = [], S) => {
|
|
3348
|
+
const { dataset: f } = Qe(_, S);
|
|
3349
|
+
t.value = f;
|
|
3350
|
+
}, c = (_ = [], S) => {
|
|
3351
|
+
const f = Qe(_, S);
|
|
3352
|
+
t.value = f.dataset;
|
|
3353
3353
|
};
|
|
3354
|
-
ne(() => e.data, (
|
|
3355
|
-
(e.dataType === "static" ||
|
|
3354
|
+
ne(() => e.data, (_) => {
|
|
3355
|
+
(e.dataType === "static" || C(l) === "design") && d(_);
|
|
3356
3356
|
}, {
|
|
3357
3357
|
immediate: !0,
|
|
3358
3358
|
deep: !0
|
|
3359
3359
|
});
|
|
3360
3360
|
const h = M(!1), g = xe(e), u = async () => {
|
|
3361
|
-
var
|
|
3362
|
-
if (!(e.dataType !== "request" ||
|
|
3361
|
+
var _, S;
|
|
3362
|
+
if (!(e.dataType !== "request" || C(l) === "design"))
|
|
3363
3363
|
try {
|
|
3364
3364
|
h.value = !0;
|
|
3365
|
-
const
|
|
3366
|
-
d((
|
|
3367
|
-
} catch (
|
|
3368
|
-
console.error(
|
|
3365
|
+
const f = await g();
|
|
3366
|
+
d((S = (_ = f == null ? void 0 : f.data) == null ? void 0 : _.data) == null ? void 0 : S.rows, e.valueTypeDataFieldNames);
|
|
3367
|
+
} catch (f) {
|
|
3368
|
+
console.error(f);
|
|
3369
3369
|
} finally {
|
|
3370
3370
|
h.value = !1;
|
|
3371
3371
|
}
|
|
3372
|
-
},
|
|
3373
|
-
const
|
|
3374
|
-
i(e.id, { ...
|
|
3375
|
-
}), v = Nt(e),
|
|
3376
|
-
var
|
|
3377
|
-
if (!(e.dataType !== "indicator" ||
|
|
3372
|
+
}, b = fe(e)("click", (_) => {
|
|
3373
|
+
const S = s(e.id);
|
|
3374
|
+
i(e.id, { ...S, RECORD: _ == null ? void 0 : _.data });
|
|
3375
|
+
}), v = Nt(e), y = async () => {
|
|
3376
|
+
var _, S, f, p, T, R;
|
|
3377
|
+
if (!(e.dataType !== "indicator" || C(l) === "design"))
|
|
3378
3378
|
try {
|
|
3379
3379
|
h.value = !0;
|
|
3380
3380
|
const w = await v();
|
|
3381
3381
|
let L = [];
|
|
3382
|
-
if (((
|
|
3382
|
+
if (((f = (S = (_ = w == null ? void 0 : w.data) == null ? void 0 : _.data) == null ? void 0 : S.columns) == null ? void 0 : f.length) > 0) {
|
|
3383
3383
|
const j = w.data.data.columns[0], H = w.data.data.columns[1];
|
|
3384
|
-
L = (R = (
|
|
3384
|
+
L = (R = (T = (p = w == null ? void 0 : w.data) == null ? void 0 : p.data) == null ? void 0 : T.rows) == null ? void 0 : R.map((F) => ({
|
|
3385
3385
|
name: F[j],
|
|
3386
3386
|
value: F[H]
|
|
3387
3387
|
}));
|
|
@@ -3392,33 +3392,33 @@ const Ki = Q({
|
|
|
3392
3392
|
} finally {
|
|
3393
3393
|
h.value = !1;
|
|
3394
3394
|
}
|
|
3395
|
-
},
|
|
3396
|
-
|
|
3395
|
+
}, A = () => {
|
|
3396
|
+
C(l) !== "design" && (y(), u());
|
|
3397
3397
|
};
|
|
3398
3398
|
he(e, {
|
|
3399
3399
|
resetRecord: () => {
|
|
3400
|
-
const
|
|
3401
|
-
i(
|
|
3400
|
+
const _ = e.id, S = s(_);
|
|
3401
|
+
i(_, { ...S, RECORD: "" });
|
|
3402
3402
|
},
|
|
3403
3403
|
refreshData: () => {
|
|
3404
|
-
|
|
3404
|
+
A();
|
|
3405
3405
|
},
|
|
3406
|
-
click:
|
|
3406
|
+
click: b
|
|
3407
3407
|
});
|
|
3408
|
-
const { setRequest:
|
|
3408
|
+
const { setRequest: k } = N(Se, {
|
|
3409
3409
|
// @ts-ignore
|
|
3410
3410
|
// eslint-disable-next-line no-void
|
|
3411
|
-
setRequest: ({ id:
|
|
3411
|
+
setRequest: ({ id: _, sortNum: S, requestFn: f }) => {
|
|
3412
3412
|
}
|
|
3413
3413
|
});
|
|
3414
|
-
return
|
|
3414
|
+
return k({
|
|
3415
3415
|
id: e.id,
|
|
3416
|
-
requestFn:
|
|
3416
|
+
requestFn: A,
|
|
3417
3417
|
sortNum: e.requestSort
|
|
3418
3418
|
}), {
|
|
3419
3419
|
option: r,
|
|
3420
3420
|
style: n,
|
|
3421
|
-
click:
|
|
3421
|
+
click: b,
|
|
3422
3422
|
loading: h,
|
|
3423
3423
|
visible: o,
|
|
3424
3424
|
hideModal: a
|
|
@@ -3552,7 +3552,7 @@ const or = Q({
|
|
|
3552
3552
|
const n = ie(e), t = M([]), o = M([]), a = M(!1), r = () => {
|
|
3553
3553
|
a.value = !1;
|
|
3554
3554
|
}, s = q(() => {
|
|
3555
|
-
const
|
|
3555
|
+
const S = e.xAxisLabelFormatter, f = e.yAxisLabelFormatter;
|
|
3556
3556
|
return {
|
|
3557
3557
|
toolbox: {
|
|
3558
3558
|
show: e.toolboxShow,
|
|
@@ -3607,10 +3607,10 @@ const or = Q({
|
|
|
3607
3607
|
trigger: "axis",
|
|
3608
3608
|
show: e.tooltipShow,
|
|
3609
3609
|
formatter: (p) => {
|
|
3610
|
-
const
|
|
3610
|
+
const T = p.length;
|
|
3611
3611
|
let R = "", w = e.tooltipFormatter;
|
|
3612
3612
|
w === "" && (w = "{marker} {a} {c}");
|
|
3613
|
-
for (let L = 0; L <
|
|
3613
|
+
for (let L = 0; L < T; L++) {
|
|
3614
3614
|
const { marker: j, seriesName: H, name: F, value: P, data: z } = p[L] || {};
|
|
3615
3615
|
L === 0 && (R += `${F}<br/>`), R += se(
|
|
3616
3616
|
w,
|
|
@@ -3634,7 +3634,7 @@ const or = Q({
|
|
|
3634
3634
|
},
|
|
3635
3635
|
xAxis: {
|
|
3636
3636
|
type: "category",
|
|
3637
|
-
data:
|
|
3637
|
+
data: C(o),
|
|
3638
3638
|
minInterval: e.xAxisMinInterval,
|
|
3639
3639
|
splitLine: {
|
|
3640
3640
|
show: e.xAxisSplitLineShow,
|
|
@@ -3649,7 +3649,7 @@ const or = Q({
|
|
|
3649
3649
|
width: e.xAxisLabelWidth,
|
|
3650
3650
|
overflow: e.xAxisLabelOverflow,
|
|
3651
3651
|
formatter(p) {
|
|
3652
|
-
return $e(
|
|
3652
|
+
return $e(S, p);
|
|
3653
3653
|
}
|
|
3654
3654
|
},
|
|
3655
3655
|
axisLine: {
|
|
@@ -3673,7 +3673,7 @@ const or = Q({
|
|
|
3673
3673
|
axisLabel: {
|
|
3674
3674
|
color: e.yAxisLabelColor,
|
|
3675
3675
|
formatter(p) {
|
|
3676
|
-
return $e(
|
|
3676
|
+
return $e(f, p);
|
|
3677
3677
|
}
|
|
3678
3678
|
},
|
|
3679
3679
|
axisLine: {
|
|
@@ -3689,34 +3689,34 @@ const or = Q({
|
|
|
3689
3689
|
top: e.legendTop,
|
|
3690
3690
|
left: e.legendLeft
|
|
3691
3691
|
},
|
|
3692
|
-
series:
|
|
3692
|
+
series: C(t)
|
|
3693
3693
|
};
|
|
3694
3694
|
}), { getGlobalModel: i, setGlobalModel: l } = N(ue, {
|
|
3695
3695
|
// @ts-ignore
|
|
3696
3696
|
// eslint-disable-next-line no-void
|
|
3697
|
-
getGlobalModel: (
|
|
3697
|
+
getGlobalModel: (S) => {
|
|
3698
3698
|
},
|
|
3699
3699
|
// @ts-ignore
|
|
3700
3700
|
// eslint-disable-next-line no-void
|
|
3701
|
-
setGlobalModel: (
|
|
3701
|
+
setGlobalModel: (S, f) => {
|
|
3702
3702
|
}
|
|
3703
3703
|
}), { pageMode: d } = N(ce, {
|
|
3704
3704
|
pageMode: "normal"
|
|
3705
|
-
}), c = (
|
|
3705
|
+
}), c = (S = [], f = !1) => {
|
|
3706
3706
|
let p;
|
|
3707
3707
|
if (e.dataFieldConfigType === "key") {
|
|
3708
|
-
const L =
|
|
3709
|
-
p = Pe(
|
|
3708
|
+
const L = f ? e.keyTypeDataFieldNames : null;
|
|
3709
|
+
p = Pe(S, L);
|
|
3710
3710
|
} else if (e.dataFieldConfigType === "value") {
|
|
3711
|
-
const L =
|
|
3712
|
-
p = Qe(
|
|
3711
|
+
const L = f ? e.valueTypeDataFieldNames : null;
|
|
3712
|
+
p = Qe(S, L);
|
|
3713
3713
|
}
|
|
3714
3714
|
o.value = p.dimensions;
|
|
3715
|
-
const
|
|
3715
|
+
const T = p.dataset, R = [], w = T.length;
|
|
3716
3716
|
for (let L = 0; L < w; L++)
|
|
3717
3717
|
R.push({
|
|
3718
3718
|
type: "line",
|
|
3719
|
-
...
|
|
3719
|
+
...T[L],
|
|
3720
3720
|
symbolSize: e.symbolSize,
|
|
3721
3721
|
smooth: e.smooth,
|
|
3722
3722
|
areaStyle: {
|
|
@@ -3740,8 +3740,8 @@ const or = Q({
|
|
|
3740
3740
|
}
|
|
3741
3741
|
});
|
|
3742
3742
|
t.value = R;
|
|
3743
|
-
}, h = (
|
|
3744
|
-
const R = Pe(
|
|
3743
|
+
}, h = (S = [], f, p = !1) => {
|
|
3744
|
+
const R = Pe(S, p ? f : null);
|
|
3745
3745
|
o.value = R.dimensions;
|
|
3746
3746
|
const w = R.dataset, L = [], j = w.length;
|
|
3747
3747
|
for (let H = 0; H < j; H++)
|
|
@@ -3756,65 +3756,65 @@ const or = Q({
|
|
|
3756
3756
|
});
|
|
3757
3757
|
t.value = L;
|
|
3758
3758
|
};
|
|
3759
|
-
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
3760
|
-
(e.dataType === "static" ||
|
|
3759
|
+
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([S]) => {
|
|
3760
|
+
(e.dataType === "static" || C(d) === "design") && c(S);
|
|
3761
3761
|
}, {
|
|
3762
3762
|
immediate: !0,
|
|
3763
3763
|
deep: !0
|
|
3764
3764
|
});
|
|
3765
|
-
const g = M(!1), u = xe(e),
|
|
3766
|
-
var
|
|
3767
|
-
if (!(e.dataType !== "request" ||
|
|
3765
|
+
const g = M(!1), u = xe(e), m = async () => {
|
|
3766
|
+
var S, f;
|
|
3767
|
+
if (!(e.dataType !== "request" || C(d) === "design"))
|
|
3768
3768
|
try {
|
|
3769
3769
|
g.value = !0;
|
|
3770
3770
|
const p = await u();
|
|
3771
|
-
c((
|
|
3771
|
+
c((f = (S = p == null ? void 0 : p.data) == null ? void 0 : S.data) == null ? void 0 : f.rows, !0);
|
|
3772
3772
|
} catch (p) {
|
|
3773
3773
|
console.error(p);
|
|
3774
3774
|
} finally {
|
|
3775
3775
|
g.value = !1;
|
|
3776
3776
|
}
|
|
3777
|
-
}, v = fe(e)("click", (
|
|
3778
|
-
const
|
|
3779
|
-
l(e.id, { ...
|
|
3780
|
-
}),
|
|
3781
|
-
var
|
|
3782
|
-
if (!(e.dataType !== "indicator" ||
|
|
3777
|
+
}, v = fe(e)("click", (S) => {
|
|
3778
|
+
const f = i(e.id);
|
|
3779
|
+
l(e.id, { ...f, RECORD: S == null ? void 0 : S.data });
|
|
3780
|
+
}), y = Nt(e), A = async () => {
|
|
3781
|
+
var S, f, p, T, R;
|
|
3782
|
+
if (!(e.dataType !== "indicator" || C(d) === "design"))
|
|
3783
3783
|
try {
|
|
3784
3784
|
g.value = !0;
|
|
3785
|
-
const w = await
|
|
3785
|
+
const w = await y();
|
|
3786
3786
|
let L;
|
|
3787
|
-
((p = (
|
|
3787
|
+
((p = (f = (S = w == null ? void 0 : w.data) == null ? void 0 : S.data) == null ? void 0 : f.columns) == null ? void 0 : p.length) > 0 && (L = {
|
|
3788
3788
|
name: w.data.data.columns[0],
|
|
3789
3789
|
types: w.data.data.columns.slice(1).map((j) => ({ label: j, value: j }))
|
|
3790
|
-
}), h((R = (
|
|
3790
|
+
}), h((R = (T = w == null ? void 0 : w.data) == null ? void 0 : T.data) == null ? void 0 : R.rows, L, !0);
|
|
3791
3791
|
} catch (w) {
|
|
3792
3792
|
console.error(w);
|
|
3793
3793
|
} finally {
|
|
3794
3794
|
g.value = !1;
|
|
3795
3795
|
}
|
|
3796
|
-
},
|
|
3797
|
-
|
|
3796
|
+
}, x = () => {
|
|
3797
|
+
C(d) !== "design" && (A(), m());
|
|
3798
3798
|
};
|
|
3799
3799
|
he(e, {
|
|
3800
3800
|
refreshData: () => {
|
|
3801
|
-
|
|
3801
|
+
x();
|
|
3802
3802
|
},
|
|
3803
3803
|
resetRecord: () => {
|
|
3804
|
-
const
|
|
3805
|
-
l(
|
|
3804
|
+
const S = e.id, f = i(S);
|
|
3805
|
+
l(S, { ...f, RECORD: "" });
|
|
3806
3806
|
},
|
|
3807
3807
|
click: v
|
|
3808
3808
|
});
|
|
3809
|
-
const { setRequest:
|
|
3809
|
+
const { setRequest: _ } = N(Se, {
|
|
3810
3810
|
// @ts-ignore
|
|
3811
3811
|
// eslint-disable-next-line no-void
|
|
3812
|
-
setRequest: ({ id:
|
|
3812
|
+
setRequest: ({ id: S, sortNum: f, requestFn: p }) => {
|
|
3813
3813
|
}
|
|
3814
3814
|
});
|
|
3815
|
-
return
|
|
3815
|
+
return _({
|
|
3816
3816
|
id: e.id,
|
|
3817
|
-
requestFn:
|
|
3817
|
+
requestFn: x,
|
|
3818
3818
|
sortNum: e.requestSort
|
|
3819
3819
|
}), {
|
|
3820
3820
|
option: s,
|
|
@@ -3981,10 +3981,10 @@ const sr = Q({
|
|
|
3981
3981
|
const t = ie(e), o = M([]), a = M(!1), r = () => {
|
|
3982
3982
|
a.value = !1;
|
|
3983
3983
|
}, s = q(() => {
|
|
3984
|
-
const
|
|
3984
|
+
const f = C(o), p = f.length, T = [];
|
|
3985
3985
|
for (let R = 0; R < p; R++) {
|
|
3986
3986
|
const w = {
|
|
3987
|
-
...
|
|
3987
|
+
...f[R],
|
|
3988
3988
|
type: "bar",
|
|
3989
3989
|
barWidth: e.barWidth
|
|
3990
3990
|
};
|
|
@@ -3993,11 +3993,11 @@ const sr = Q({
|
|
|
3993
3993
|
fontSize: e.labelFontSize,
|
|
3994
3994
|
position: e.labelPosition,
|
|
3995
3995
|
color: e.labelColor
|
|
3996
|
-
},
|
|
3996
|
+
}, T.push(w);
|
|
3997
3997
|
}
|
|
3998
|
-
return
|
|
3998
|
+
return T;
|
|
3999
3999
|
}), i = M([]), l = M(!1), d = q(() => {
|
|
4000
|
-
const
|
|
4000
|
+
const f = e.yAxisLabelFormatter, p = e.xAxisLabelFormatter;
|
|
4001
4001
|
return {
|
|
4002
4002
|
toolbox: {
|
|
4003
4003
|
show: e.toolboxShow,
|
|
@@ -4051,12 +4051,12 @@ const sr = Q({
|
|
|
4051
4051
|
tooltip: {
|
|
4052
4052
|
trigger: "axis",
|
|
4053
4053
|
show: e.tooltipShow,
|
|
4054
|
-
formatter: (
|
|
4055
|
-
const R =
|
|
4054
|
+
formatter: (T) => {
|
|
4055
|
+
const R = T.length;
|
|
4056
4056
|
let w = "", L = e.tooltipFormatter;
|
|
4057
4057
|
L === "" && (L = "{marker} {a} {c}");
|
|
4058
4058
|
for (let j = 0; j < R; j++) {
|
|
4059
|
-
const { marker: H, seriesName: F, name: P, value: z, data: V } =
|
|
4059
|
+
const { marker: H, seriesName: F, name: P, value: z, data: V } = T[j] || {};
|
|
4060
4060
|
j === 0 && (w += `${P}<br/>`), w += se(
|
|
4061
4061
|
L,
|
|
4062
4062
|
{
|
|
@@ -4094,7 +4094,7 @@ const sr = Q({
|
|
|
4094
4094
|
},
|
|
4095
4095
|
xAxis: {
|
|
4096
4096
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4097
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4097
|
+
data: e.isUseHorizontalAxis ? null : C(i),
|
|
4098
4098
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4099
4099
|
minInterval: e.xAxisMinInterval,
|
|
4100
4100
|
splitLine: {
|
|
@@ -4109,8 +4109,8 @@ const sr = Q({
|
|
|
4109
4109
|
rotate: e.xAxisLabelRotate,
|
|
4110
4110
|
width: e.xAxisLabelWidth,
|
|
4111
4111
|
overflow: e.xAxisLabelOverflow,
|
|
4112
|
-
formatter(
|
|
4113
|
-
return $e(p,
|
|
4112
|
+
formatter(T) {
|
|
4113
|
+
return $e(p, T);
|
|
4114
4114
|
}
|
|
4115
4115
|
},
|
|
4116
4116
|
axisLine: {
|
|
@@ -4124,7 +4124,7 @@ const sr = Q({
|
|
|
4124
4124
|
},
|
|
4125
4125
|
yAxis: {
|
|
4126
4126
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4127
|
-
data: e.isUseHorizontalAxis ?
|
|
4127
|
+
data: e.isUseHorizontalAxis ? C(i) : null,
|
|
4128
4128
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4129
4129
|
minInterval: e.yAxisMinInterval,
|
|
4130
4130
|
splitLine: {
|
|
@@ -4138,8 +4138,8 @@ const sr = Q({
|
|
|
4138
4138
|
rotate: e.yAxisLabelRotate,
|
|
4139
4139
|
width: e.yAxisLabelWidth,
|
|
4140
4140
|
overflow: e.yAxisLabelOverflow,
|
|
4141
|
-
formatter(
|
|
4142
|
-
return $e(
|
|
4141
|
+
formatter(T) {
|
|
4142
|
+
return $e(f, T);
|
|
4143
4143
|
}
|
|
4144
4144
|
},
|
|
4145
4145
|
axisLine: {
|
|
@@ -4148,50 +4148,50 @@ const sr = Q({
|
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
4150
|
},
|
|
4151
|
-
series:
|
|
4151
|
+
series: C(s)
|
|
4152
4152
|
};
|
|
4153
4153
|
}), { pageMode: c } = N(ce, {
|
|
4154
4154
|
pageMode: "normal"
|
|
4155
|
-
}), h = (
|
|
4156
|
-
let
|
|
4155
|
+
}), h = (f = [], p = !1) => {
|
|
4156
|
+
let T = {};
|
|
4157
4157
|
if (e.dataFieldConfigType === "key") {
|
|
4158
4158
|
const R = p ? e.keyTypeDataFieldNames : null;
|
|
4159
|
-
|
|
4159
|
+
T = Pe(f, R);
|
|
4160
4160
|
} else if (e.dataFieldConfigType === "value") {
|
|
4161
4161
|
const R = p ? e.valueTypeDataFieldNames : null;
|
|
4162
|
-
|
|
4162
|
+
T = Qe(f, R);
|
|
4163
4163
|
}
|
|
4164
|
-
o.value =
|
|
4165
|
-
}, g = (
|
|
4166
|
-
const w = Pe(
|
|
4164
|
+
o.value = T.dataset, i.value = T.dimensions;
|
|
4165
|
+
}, g = (f = [], p, T = !1) => {
|
|
4166
|
+
const w = Pe(f, T ? p : null);
|
|
4167
4167
|
o.value = w.dataset, i.value = w.dimensions;
|
|
4168
4168
|
};
|
|
4169
|
-
ne(() => e.data, (
|
|
4170
|
-
(e.dataType === "static" ||
|
|
4169
|
+
ne(() => e.data, (f) => {
|
|
4170
|
+
(e.dataType === "static" || C(c) === "design") && h(f);
|
|
4171
4171
|
}, {
|
|
4172
4172
|
immediate: !0,
|
|
4173
4173
|
deep: !0
|
|
4174
4174
|
});
|
|
4175
|
-
const u = xe(e),
|
|
4176
|
-
var
|
|
4175
|
+
const u = xe(e), m = async () => {
|
|
4176
|
+
var f, p;
|
|
4177
4177
|
try {
|
|
4178
4178
|
l.value = !0;
|
|
4179
|
-
const
|
|
4180
|
-
h((p = (
|
|
4181
|
-
} catch (
|
|
4182
|
-
console.error(
|
|
4179
|
+
const T = await u();
|
|
4180
|
+
h((p = (f = T == null ? void 0 : T.data) == null ? void 0 : f.data) == null ? void 0 : p.rows, !0);
|
|
4181
|
+
} catch (T) {
|
|
4182
|
+
console.error(T);
|
|
4183
4183
|
} finally {
|
|
4184
4184
|
l.value = !1;
|
|
4185
4185
|
}
|
|
4186
|
-
},
|
|
4187
|
-
var
|
|
4186
|
+
}, b = On(e), v = async () => {
|
|
4187
|
+
var f;
|
|
4188
4188
|
try {
|
|
4189
4189
|
l.value = !0;
|
|
4190
|
-
const p = await
|
|
4190
|
+
const p = await b(), { columns: T = [], rows: R = [] } = ((f = p == null ? void 0 : p.data) == null ? void 0 : f.data) ?? {};
|
|
4191
4191
|
let w;
|
|
4192
|
-
|
|
4193
|
-
name:
|
|
4194
|
-
types:
|
|
4192
|
+
T.length > 0 && (w = {
|
|
4193
|
+
name: T[0],
|
|
4194
|
+
types: T.slice(1).map((L) => ({
|
|
4195
4195
|
label: L,
|
|
4196
4196
|
value: L
|
|
4197
4197
|
}))
|
|
@@ -4201,54 +4201,54 @@ const sr = Q({
|
|
|
4201
4201
|
} finally {
|
|
4202
4202
|
l.value = !1;
|
|
4203
4203
|
}
|
|
4204
|
-
},
|
|
4205
|
-
if (
|
|
4204
|
+
}, y = () => {
|
|
4205
|
+
if (C(c) !== "design")
|
|
4206
4206
|
switch (e.dataType) {
|
|
4207
4207
|
case "indicator":
|
|
4208
4208
|
v();
|
|
4209
4209
|
break;
|
|
4210
4210
|
case "request":
|
|
4211
|
-
|
|
4211
|
+
m();
|
|
4212
4212
|
break;
|
|
4213
4213
|
}
|
|
4214
4214
|
};
|
|
4215
4215
|
n({
|
|
4216
|
-
refreshData:
|
|
4216
|
+
refreshData: y
|
|
4217
4217
|
});
|
|
4218
|
-
const
|
|
4218
|
+
const A = fe(e), { getGlobalModel: x, setGlobalModel: O } = N(ue, {
|
|
4219
4219
|
// @ts-ignore
|
|
4220
4220
|
// eslint-disable-next-line no-void
|
|
4221
|
-
getGlobalModel: (
|
|
4221
|
+
getGlobalModel: (f) => {
|
|
4222
4222
|
},
|
|
4223
4223
|
// @ts-ignore
|
|
4224
4224
|
// eslint-disable-next-line no-void
|
|
4225
|
-
setGlobalModel: (
|
|
4225
|
+
setGlobalModel: (f, p) => {
|
|
4226
4226
|
}
|
|
4227
|
-
}),
|
|
4228
|
-
const p =
|
|
4229
|
-
O(e.id, { ...p, RECORD:
|
|
4230
|
-
}), { setRequest:
|
|
4227
|
+
}), k = A("click", (f) => {
|
|
4228
|
+
const p = x(e.id);
|
|
4229
|
+
O(e.id, { ...p, RECORD: f.data });
|
|
4230
|
+
}), { setRequest: _ } = N(Se, {
|
|
4231
4231
|
// @ts-ignore
|
|
4232
4232
|
// eslint-disable-next-line no-void
|
|
4233
|
-
setRequest: ({ id:
|
|
4233
|
+
setRequest: ({ id: f, sortNum: p, requestFn: T }) => {
|
|
4234
4234
|
}
|
|
4235
4235
|
});
|
|
4236
|
-
return
|
|
4236
|
+
return _({
|
|
4237
4237
|
id: e.id,
|
|
4238
|
-
requestFn:
|
|
4238
|
+
requestFn: y,
|
|
4239
4239
|
sortNum: e.requestSort
|
|
4240
4240
|
}), he(e, {
|
|
4241
|
-
refreshData:
|
|
4242
|
-
click:
|
|
4241
|
+
refreshData: y,
|
|
4242
|
+
click: k,
|
|
4243
4243
|
resetRecord: () => {
|
|
4244
|
-
const
|
|
4245
|
-
O(
|
|
4244
|
+
const f = e.id, p = x(f);
|
|
4245
|
+
O(f, { ...p, RECORD: "" });
|
|
4246
4246
|
}
|
|
4247
4247
|
}), {
|
|
4248
4248
|
option: d,
|
|
4249
4249
|
style: t,
|
|
4250
|
-
refreshData:
|
|
4251
|
-
click:
|
|
4250
|
+
refreshData: y,
|
|
4251
|
+
click: k,
|
|
4252
4252
|
loading: l,
|
|
4253
4253
|
visible: a,
|
|
4254
4254
|
hideModal: r
|
|
@@ -4372,7 +4372,7 @@ const mr = Q({
|
|
|
4372
4372
|
const n = ie(e), t = M([]), o = M(!1), a = () => {
|
|
4373
4373
|
o.value = !1;
|
|
4374
4374
|
}, r = q(() => {
|
|
4375
|
-
const
|
|
4375
|
+
const y = e.xAxisLabelFormatter, A = e.yAxisLabelFormatter;
|
|
4376
4376
|
return {
|
|
4377
4377
|
toolbox: {
|
|
4378
4378
|
show: e.toolboxShow,
|
|
@@ -4433,8 +4433,8 @@ const mr = Q({
|
|
|
4433
4433
|
},
|
|
4434
4434
|
axisLabel: {
|
|
4435
4435
|
color: e.xAxisLabelColor,
|
|
4436
|
-
formatter(
|
|
4437
|
-
return $e(
|
|
4436
|
+
formatter(x) {
|
|
4437
|
+
return $e(y, x);
|
|
4438
4438
|
}
|
|
4439
4439
|
},
|
|
4440
4440
|
axisLine: {
|
|
@@ -4455,8 +4455,8 @@ const mr = Q({
|
|
|
4455
4455
|
},
|
|
4456
4456
|
axisLabel: {
|
|
4457
4457
|
color: e.yAxisLabelColor,
|
|
4458
|
-
formatter(
|
|
4459
|
-
return $e(
|
|
4458
|
+
formatter(x) {
|
|
4459
|
+
return $e(A, x);
|
|
4460
4460
|
}
|
|
4461
4461
|
},
|
|
4462
4462
|
axisLine: {
|
|
@@ -4469,16 +4469,16 @@ const mr = Q({
|
|
|
4469
4469
|
tooltip: {
|
|
4470
4470
|
show: e.tooltipShow,
|
|
4471
4471
|
trigger: e.tooltipTrigger,
|
|
4472
|
-
formatter: function(
|
|
4472
|
+
formatter: function(x) {
|
|
4473
4473
|
var p;
|
|
4474
|
-
const { marker: O, seriesName:
|
|
4474
|
+
const { marker: O, seriesName: k } = x, _ = ((p = x == null ? void 0 : x.data) == null ? void 0 : p.record) ?? {}, { name: S, value: f } = _;
|
|
4475
4475
|
return se(e.tooltipFormatter, {
|
|
4476
4476
|
marker: O,
|
|
4477
|
-
seriesName:
|
|
4478
|
-
a:
|
|
4479
|
-
b:
|
|
4480
|
-
c:
|
|
4481
|
-
...
|
|
4477
|
+
seriesName: k,
|
|
4478
|
+
a: k,
|
|
4479
|
+
b: S,
|
|
4480
|
+
c: f,
|
|
4481
|
+
..._
|
|
4482
4482
|
});
|
|
4483
4483
|
},
|
|
4484
4484
|
axisPointer: {
|
|
@@ -4494,7 +4494,7 @@ const mr = Q({
|
|
|
4494
4494
|
},
|
|
4495
4495
|
series: [
|
|
4496
4496
|
{
|
|
4497
|
-
data:
|
|
4497
|
+
data: C(t),
|
|
4498
4498
|
type: "scatter",
|
|
4499
4499
|
symbolSize: e.symbolSize
|
|
4500
4500
|
}
|
|
@@ -4503,51 +4503,51 @@ const mr = Q({
|
|
|
4503
4503
|
}), { getGlobalModel: s, setGlobalModel: i } = N(ue, {
|
|
4504
4504
|
// @ts-ignore
|
|
4505
4505
|
// eslint-disable-next-line no-void
|
|
4506
|
-
getGlobalModel: (
|
|
4506
|
+
getGlobalModel: (y) => {
|
|
4507
4507
|
},
|
|
4508
4508
|
// @ts-ignore
|
|
4509
4509
|
// eslint-disable-next-line no-void
|
|
4510
|
-
setGlobalModel: (
|
|
4510
|
+
setGlobalModel: (y, A) => {
|
|
4511
4511
|
}
|
|
4512
4512
|
}), { pageMode: l } = N(ce, {
|
|
4513
4513
|
pageMode: "normal"
|
|
4514
|
-
}), d = (
|
|
4515
|
-
const { name:
|
|
4516
|
-
t.value =
|
|
4514
|
+
}), d = (y = [], A) => {
|
|
4515
|
+
const { name: x = "name", value: O = "value" } = A || {};
|
|
4516
|
+
t.value = y.map((k) => ({ value: [k[x], k[O]], record: k }));
|
|
4517
4517
|
};
|
|
4518
|
-
ne(() => e.data, (
|
|
4519
|
-
(e.dataType === "static" ||
|
|
4518
|
+
ne(() => e.data, (y) => {
|
|
4519
|
+
(e.dataType === "static" || C(l) === "design") && d(y);
|
|
4520
4520
|
}, {
|
|
4521
4521
|
immediate: !0,
|
|
4522
4522
|
deep: !0
|
|
4523
4523
|
});
|
|
4524
4524
|
const c = M(!1), h = xe(e), g = async () => {
|
|
4525
|
-
var
|
|
4526
|
-
if (!(e.dataType !== "request" ||
|
|
4525
|
+
var y, A;
|
|
4526
|
+
if (!(e.dataType !== "request" || C(l) === "design")) {
|
|
4527
4527
|
c.value = !0;
|
|
4528
4528
|
try {
|
|
4529
|
-
const
|
|
4530
|
-
d((
|
|
4531
|
-
} catch (
|
|
4532
|
-
console.error(
|
|
4529
|
+
const x = await h();
|
|
4530
|
+
d((A = (y = x == null ? void 0 : x.data) == null ? void 0 : y.data) == null ? void 0 : A.rows, e.dataFieldNames);
|
|
4531
|
+
} catch (x) {
|
|
4532
|
+
console.error(x);
|
|
4533
4533
|
} finally {
|
|
4534
4534
|
c.value = !1;
|
|
4535
4535
|
}
|
|
4536
4536
|
}
|
|
4537
|
-
},
|
|
4538
|
-
const
|
|
4539
|
-
i(
|
|
4537
|
+
}, m = fe(e)("click", (y) => {
|
|
4538
|
+
const A = e.id, x = s(A);
|
|
4539
|
+
i(A, { ...x, RECORD: y == null ? void 0 : y.data });
|
|
4540
4540
|
});
|
|
4541
4541
|
he(e, {
|
|
4542
4542
|
refreshData: () => {
|
|
4543
4543
|
g();
|
|
4544
4544
|
},
|
|
4545
|
-
click:
|
|
4545
|
+
click: m
|
|
4546
4546
|
});
|
|
4547
4547
|
const { setRequest: v } = N(Se, {
|
|
4548
4548
|
// @ts-ignore
|
|
4549
4549
|
// eslint-disable-next-line no-void
|
|
4550
|
-
setRequest: ({ id:
|
|
4550
|
+
setRequest: ({ id: y, sortNum: A, requestFn: x }) => {
|
|
4551
4551
|
}
|
|
4552
4552
|
});
|
|
4553
4553
|
return v({
|
|
@@ -4557,7 +4557,7 @@ const mr = Q({
|
|
|
4557
4557
|
}), {
|
|
4558
4558
|
option: r,
|
|
4559
4559
|
style: n,
|
|
4560
|
-
click:
|
|
4560
|
+
click: m,
|
|
4561
4561
|
loading: c,
|
|
4562
4562
|
visible: o,
|
|
4563
4563
|
hideModal: a
|
|
@@ -4840,14 +4840,14 @@ const wr = Q({
|
|
|
4840
4840
|
tooltip: {
|
|
4841
4841
|
trigger: "axis",
|
|
4842
4842
|
show: e.tooltipShow,
|
|
4843
|
-
formatter: (
|
|
4844
|
-
const p =
|
|
4845
|
-
let
|
|
4843
|
+
formatter: (f) => {
|
|
4844
|
+
const p = f.length;
|
|
4845
|
+
let T = "", R = e.tooltipFormatter;
|
|
4846
4846
|
R === "" && (R = "{marker} {a} {c}");
|
|
4847
4847
|
const w = e.seriesTypes;
|
|
4848
4848
|
for (let L = 0; L < p; L++) {
|
|
4849
|
-
const j = w[L], { tooltipFormatter: H } = j || {}, { marker: F, seriesName: P, name: z, value: V, data: K } =
|
|
4850
|
-
L === 0 && (
|
|
4849
|
+
const j = w[L], { tooltipFormatter: H } = j || {}, { marker: F, seriesName: P, name: z, value: V, data: K } = f[L] || {};
|
|
4850
|
+
L === 0 && (T += `${z}<br/>`), T += se(
|
|
4851
4851
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4852
4852
|
H || R,
|
|
4853
4853
|
{
|
|
@@ -4864,9 +4864,9 @@ const wr = Q({
|
|
|
4864
4864
|
useNewline: !0,
|
|
4865
4865
|
useSpace: !0
|
|
4866
4866
|
}
|
|
4867
|
-
),
|
|
4867
|
+
), T += "<br/>";
|
|
4868
4868
|
}
|
|
4869
|
-
return
|
|
4869
|
+
return T;
|
|
4870
4870
|
},
|
|
4871
4871
|
textStyle: {
|
|
4872
4872
|
color: e.tooltipTextStyleColor
|
|
@@ -4875,7 +4875,7 @@ const wr = Q({
|
|
|
4875
4875
|
xAxis: {
|
|
4876
4876
|
minInterval: e.xAxisMinInterval,
|
|
4877
4877
|
type: "category",
|
|
4878
|
-
data:
|
|
4878
|
+
data: C(o),
|
|
4879
4879
|
splitLine: {
|
|
4880
4880
|
show: e.xAxisSplitLineShow,
|
|
4881
4881
|
lineStyle: {
|
|
@@ -4894,21 +4894,21 @@ const wr = Q({
|
|
|
4894
4894
|
show: e.xAxisTickShow
|
|
4895
4895
|
}
|
|
4896
4896
|
},
|
|
4897
|
-
yAxis:
|
|
4898
|
-
series:
|
|
4897
|
+
yAxis: C(c),
|
|
4898
|
+
series: C(t)
|
|
4899
4899
|
})), { pageMode: i } = N(ce, {
|
|
4900
4900
|
pageMode: "normal"
|
|
4901
|
-
}), l = (
|
|
4902
|
-
let
|
|
4901
|
+
}), l = (f = [], p = !1) => {
|
|
4902
|
+
let T;
|
|
4903
4903
|
if (e.dataFieldConfigType === "key") {
|
|
4904
4904
|
const H = p ? e.keyTypeDataFieldNames : null;
|
|
4905
|
-
|
|
4905
|
+
T = Pe(f, H);
|
|
4906
4906
|
} else if (e.dataFieldConfigType === "value") {
|
|
4907
4907
|
const H = p ? e.valueTypeDataFieldNames : null;
|
|
4908
|
-
|
|
4908
|
+
T = Qe(f, H);
|
|
4909
4909
|
}
|
|
4910
|
-
o.value =
|
|
4911
|
-
const R =
|
|
4910
|
+
o.value = T.dimensions;
|
|
4911
|
+
const R = T.dataset, w = [], L = R.length, j = e.seriesTypes;
|
|
4912
4912
|
for (let H = 0; H < L; H++) {
|
|
4913
4913
|
const F = j[H], { type: P, axisIndex: z } = F || {};
|
|
4914
4914
|
let V = {
|
|
@@ -4932,8 +4932,8 @@ const wr = Q({
|
|
|
4932
4932
|
}), w.push(V);
|
|
4933
4933
|
}
|
|
4934
4934
|
t.value = w;
|
|
4935
|
-
}, d = (
|
|
4936
|
-
const w = Pe(
|
|
4935
|
+
}, d = (f = [], p, T = !1) => {
|
|
4936
|
+
const w = Pe(f, T ? p : null);
|
|
4937
4937
|
o.value = w.dimensions;
|
|
4938
4938
|
const L = w.dataset, j = [], H = L.length, F = e.seriesTypes;
|
|
4939
4939
|
for (let P = 0; P < H; P++) {
|
|
@@ -4946,15 +4946,15 @@ const wr = Q({
|
|
|
4946
4946
|
}
|
|
4947
4947
|
t.value = j;
|
|
4948
4948
|
};
|
|
4949
|
-
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([
|
|
4950
|
-
(e.dataType === "static" ||
|
|
4949
|
+
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([f]) => {
|
|
4950
|
+
(e.dataType === "static" || C(i) === "design") && l(f);
|
|
4951
4951
|
}, {
|
|
4952
4952
|
immediate: !0,
|
|
4953
4953
|
deep: !0
|
|
4954
4954
|
});
|
|
4955
4955
|
const c = q(() => {
|
|
4956
|
-
const
|
|
4957
|
-
return
|
|
4956
|
+
const f = e.yAxis;
|
|
4957
|
+
return f == null ? void 0 : f.map((p) => ({
|
|
4958
4958
|
type: "value",
|
|
4959
4959
|
minInterval: e.yAxisMinInterval,
|
|
4960
4960
|
splitLine: {
|
|
@@ -4965,8 +4965,8 @@ const wr = Q({
|
|
|
4965
4965
|
},
|
|
4966
4966
|
axisLabel: {
|
|
4967
4967
|
color: e.yAxisLabelColor,
|
|
4968
|
-
formatter(
|
|
4969
|
-
return $e(p.axisLabelFormatter,
|
|
4968
|
+
formatter(T) {
|
|
4969
|
+
return $e(p.axisLabelFormatter, T);
|
|
4970
4970
|
}
|
|
4971
4971
|
},
|
|
4972
4972
|
axisLine: {
|
|
@@ -4976,25 +4976,25 @@ const wr = Q({
|
|
|
4976
4976
|
}
|
|
4977
4977
|
}));
|
|
4978
4978
|
}), h = M(!1), g = xe(e), u = async () => {
|
|
4979
|
-
var
|
|
4980
|
-
if (!(e.dataType !== "request" ||
|
|
4979
|
+
var f, p;
|
|
4980
|
+
if (!(e.dataType !== "request" || C(i) === "design"))
|
|
4981
4981
|
try {
|
|
4982
4982
|
h.value = !0;
|
|
4983
|
-
const
|
|
4984
|
-
l((p = (
|
|
4985
|
-
} catch (
|
|
4986
|
-
console.error(
|
|
4983
|
+
const T = await g();
|
|
4984
|
+
l((p = (f = T == null ? void 0 : T.data) == null ? void 0 : f.data) == null ? void 0 : p.rows, !0);
|
|
4985
|
+
} catch (T) {
|
|
4986
|
+
console.error(T);
|
|
4987
4987
|
} finally {
|
|
4988
4988
|
h.value = !1;
|
|
4989
4989
|
}
|
|
4990
|
-
},
|
|
4991
|
-
var
|
|
4992
|
-
if (!(e.dataType !== "indicator" ||
|
|
4990
|
+
}, m = Nt(e), b = async () => {
|
|
4991
|
+
var f, p, T, R, w;
|
|
4992
|
+
if (!(e.dataType !== "indicator" || C(i) === "design"))
|
|
4993
4993
|
try {
|
|
4994
4994
|
h.value = !0;
|
|
4995
|
-
const L = await
|
|
4995
|
+
const L = await m();
|
|
4996
4996
|
let j;
|
|
4997
|
-
((
|
|
4997
|
+
((T = (p = (f = L == null ? void 0 : L.data) == null ? void 0 : f.data) == null ? void 0 : p.columns) == null ? void 0 : T.length) > 0 && (j = {
|
|
4998
4998
|
name: L.data.data.columns[0],
|
|
4999
4999
|
types: L.data.data.columns.slice(1).map((H) => ({ label: H, value: H }))
|
|
5000
5000
|
}), d((w = (R = L == null ? void 0 : L.data) == null ? void 0 : R.data) == null ? void 0 : w.rows, j, !0);
|
|
@@ -5004,42 +5004,42 @@ const wr = Q({
|
|
|
5004
5004
|
h.value = !1;
|
|
5005
5005
|
}
|
|
5006
5006
|
}, v = () => {
|
|
5007
|
-
|
|
5008
|
-
},
|
|
5007
|
+
C(i) !== "design" && (b(), u());
|
|
5008
|
+
}, y = () => {
|
|
5009
5009
|
v();
|
|
5010
|
-
},
|
|
5010
|
+
}, A = fe(e), { getGlobalModel: x, setGlobalModel: O } = N(ue, {
|
|
5011
5011
|
// @ts-ignore
|
|
5012
5012
|
// eslint-disable-next-line no-void
|
|
5013
|
-
getGlobalModel: (
|
|
5013
|
+
getGlobalModel: (f) => {
|
|
5014
5014
|
},
|
|
5015
5015
|
// @ts-ignore
|
|
5016
5016
|
// eslint-disable-next-line no-void
|
|
5017
|
-
setGlobalModel: (
|
|
5017
|
+
setGlobalModel: (f, p) => {
|
|
5018
5018
|
}
|
|
5019
|
-
}),
|
|
5020
|
-
const p =
|
|
5021
|
-
O(e.id, { ...p, RECORD:
|
|
5022
|
-
}), { setRequest:
|
|
5019
|
+
}), k = A("click", (f) => {
|
|
5020
|
+
const p = x(e.id);
|
|
5021
|
+
O(e.id, { ...p, RECORD: f == null ? void 0 : f.data });
|
|
5022
|
+
}), { setRequest: _ } = N(Se, {
|
|
5023
5023
|
// @ts-ignore
|
|
5024
5024
|
// eslint-disable-next-line no-void
|
|
5025
|
-
setRequest: ({ id:
|
|
5025
|
+
setRequest: ({ id: f, sortNum: p, requestFn: T }) => {
|
|
5026
5026
|
}
|
|
5027
5027
|
});
|
|
5028
|
-
return
|
|
5028
|
+
return _({
|
|
5029
5029
|
id: e.id,
|
|
5030
5030
|
requestFn: v,
|
|
5031
5031
|
sortNum: e.requestSort
|
|
5032
5032
|
}), he(e, {
|
|
5033
5033
|
resetRecord: () => {
|
|
5034
|
-
const
|
|
5035
|
-
O(
|
|
5034
|
+
const f = e.id, p = x(f);
|
|
5035
|
+
O(f, { ...p, RECORD: "" });
|
|
5036
5036
|
},
|
|
5037
|
-
refreshData:
|
|
5038
|
-
click:
|
|
5037
|
+
refreshData: y,
|
|
5038
|
+
click: k
|
|
5039
5039
|
}), {
|
|
5040
5040
|
style: n,
|
|
5041
5041
|
option: s,
|
|
5042
|
-
click:
|
|
5042
|
+
click: k,
|
|
5043
5043
|
loading: h,
|
|
5044
5044
|
visible: a,
|
|
5045
5045
|
hideModal: r
|
|
@@ -5239,43 +5239,43 @@ const Vr = /* @__PURE__ */ X(_r, [["render", Wr], ["__scopeId", "data-v-1550b11b
|
|
|
5239
5239
|
bottom: "bottom"
|
|
5240
5240
|
}[z]
|
|
5241
5241
|
};
|
|
5242
|
-
}), o = e.width, a = e.height, r = e.originalWidth, s = e.originalHeight, i = M("80%"), l = M(0), d = M(), c = M(0), h = M({}), g = ie(e), u = M({}),
|
|
5242
|
+
}), o = e.width, a = e.height, r = e.originalWidth, s = e.originalHeight, i = M("80%"), l = M(0), d = M(), c = M(0), h = M({}), g = ie(e), u = M({}), m = M(!1), b = M();
|
|
5243
5243
|
let v;
|
|
5244
|
-
const
|
|
5244
|
+
const y = () => {
|
|
5245
5245
|
d.value = parseFloat(o) / parseFloat(r);
|
|
5246
5246
|
const z = parseFloat(a) / parseFloat(s), V = document.body.offsetWidth, K = document.body.offsetHeight;
|
|
5247
|
-
l.value = V *
|
|
5248
|
-
width: `${
|
|
5249
|
-
height: `${
|
|
5247
|
+
l.value = V * C(d), c.value = K * z, i.value = `${C(d) * 100}%`, h.value = {
|
|
5248
|
+
width: `${C(l)}px`,
|
|
5249
|
+
height: `${C(c)}px`
|
|
5250
5250
|
}, u.value = {
|
|
5251
|
-
...
|
|
5251
|
+
...C(g),
|
|
5252
5252
|
backgroundImage: De(e.backgroundImage, !0),
|
|
5253
|
-
transform: `scale(${
|
|
5253
|
+
transform: `scale(${C(l) / parseFloat(o)},${C(c) / parseFloat(a)})`
|
|
5254
5254
|
};
|
|
5255
|
-
},
|
|
5256
|
-
|
|
5257
|
-
}, 100),
|
|
5255
|
+
}, A = Ft(() => {
|
|
5256
|
+
y();
|
|
5257
|
+
}, 100), x = () => {
|
|
5258
5258
|
const z = window.MutationObserver;
|
|
5259
|
-
v = new z(
|
|
5259
|
+
v = new z(A), v.observe(document.body, {
|
|
5260
5260
|
attributes: !0,
|
|
5261
5261
|
attributeFilter: ["style"],
|
|
5262
5262
|
attributeOldValue: !0
|
|
5263
5263
|
});
|
|
5264
5264
|
}, O = () => {
|
|
5265
5265
|
v && (v.disconnect(), v.takeRecords(), v = null);
|
|
5266
|
-
},
|
|
5266
|
+
}, k = M(!1), { touchRequest: _ } = N(Se, {
|
|
5267
5267
|
// @ts-ignore
|
|
5268
5268
|
// eslint-disable-next-line no-void
|
|
5269
5269
|
touchRequest: () => {
|
|
5270
5270
|
}
|
|
5271
|
-
}),
|
|
5272
|
-
|
|
5273
|
-
},
|
|
5274
|
-
|
|
5271
|
+
}), S = () => {
|
|
5272
|
+
k.value = !0;
|
|
5273
|
+
}, f = () => {
|
|
5274
|
+
k.value = !1;
|
|
5275
5275
|
}, p = () => {
|
|
5276
|
-
|
|
5277
|
-
},
|
|
5278
|
-
|
|
5276
|
+
f();
|
|
5277
|
+
}, T = () => {
|
|
5278
|
+
f();
|
|
5279
5279
|
}, { setModalModel: R, pushUseModalIds: w, popUseModalIds: L } = N(Mn, {
|
|
5280
5280
|
pushUseModalIds: (z) => {
|
|
5281
5281
|
},
|
|
@@ -5289,19 +5289,19 @@ const Vr = /* @__PURE__ */ X(_r, [["render", Wr], ["__scopeId", "data-v-1550b11b
|
|
|
5289
5289
|
const K = e.componentList;
|
|
5290
5290
|
Array.isArray(K) && (V = K.map((de) => de.id), R(z, [...new Set(V)]));
|
|
5291
5291
|
};
|
|
5292
|
-
ne(() =>
|
|
5293
|
-
z ? (
|
|
5294
|
-
|
|
5295
|
-
}),
|
|
5292
|
+
ne(() => k.value, async (z) => {
|
|
5293
|
+
z ? (m.value = !1, w(e.id), j(), await ft(() => {
|
|
5294
|
+
y(), window.addEventListener("resize", A), x(), m.value = !0;
|
|
5295
|
+
}), _()) : (L(), window.removeEventListener("resize", A), O());
|
|
5296
5296
|
});
|
|
5297
|
-
const H = q(() =>
|
|
5297
|
+
const H = q(() => C(d) >= 1), F = q(() => e.fullModal), P = q(() => {
|
|
5298
5298
|
let z = "ecan-modal";
|
|
5299
|
-
return
|
|
5299
|
+
return C(H) && (z += " ecan-full-width-modal"), C(F) && (z += " ecan-full-modal"), z;
|
|
5300
5300
|
});
|
|
5301
5301
|
return he(e, {
|
|
5302
|
-
showModal:
|
|
5302
|
+
showModal: S
|
|
5303
5303
|
}), {
|
|
5304
|
-
modalRef:
|
|
5304
|
+
modalRef: b,
|
|
5305
5305
|
containStyle: h,
|
|
5306
5306
|
contentStyle: u,
|
|
5307
5307
|
getContainer: n,
|
|
@@ -5309,13 +5309,13 @@ const Vr = /* @__PURE__ */ X(_r, [["render", Wr], ["__scopeId", "data-v-1550b11b
|
|
|
5309
5309
|
modalWith: i,
|
|
5310
5310
|
isFullModal: F,
|
|
5311
5311
|
style: g,
|
|
5312
|
-
visible:
|
|
5313
|
-
showModal:
|
|
5312
|
+
visible: k,
|
|
5313
|
+
showModal: S,
|
|
5314
5314
|
onOk: p,
|
|
5315
|
-
onCancel:
|
|
5315
|
+
onCancel: T,
|
|
5316
5316
|
isFullWidth: H,
|
|
5317
5317
|
wrapClassName: P,
|
|
5318
|
-
ready:
|
|
5318
|
+
ready: m
|
|
5319
5319
|
};
|
|
5320
5320
|
}
|
|
5321
5321
|
});
|
|
@@ -5420,14 +5420,14 @@ const Qr = /* @__PURE__ */ X(Jr, [["render", Yr], ["__scopeId", "data-v-2db14456
|
|
|
5420
5420
|
});
|
|
5421
5421
|
let a = null;
|
|
5422
5422
|
const r = () => {
|
|
5423
|
-
const u = Array.isArray(
|
|
5423
|
+
const u = Array.isArray(C(s)) ? C(s).length - 1 : 0;
|
|
5424
5424
|
e.autoSwitch && u > 0 && (a = setInterval(() => {
|
|
5425
|
-
const
|
|
5426
|
-
|
|
5425
|
+
const m = C(t) + 1;
|
|
5426
|
+
m <= u ? t.value = m : t.value = 0, i.value = C(s)[C(t)], h();
|
|
5427
5427
|
}, e.autoSwitchInterval * 1e3));
|
|
5428
5428
|
};
|
|
5429
5429
|
Ne(() => {
|
|
5430
|
-
|
|
5430
|
+
C(o) !== "design" && r();
|
|
5431
5431
|
}), Tt(() => {
|
|
5432
5432
|
clearInterval(a);
|
|
5433
5433
|
});
|
|
@@ -5441,7 +5441,7 @@ const Qr = /* @__PURE__ */ X(Jr, [["render", Yr], ["__scopeId", "data-v-2db14456
|
|
|
5441
5441
|
const l = (u) => t.value === u, d = fe(e), { setGlobalModel: c } = N(ue, {
|
|
5442
5442
|
// @ts-ignore
|
|
5443
5443
|
// eslint-disable-next-line no-void
|
|
5444
|
-
setGlobalModel: (u,
|
|
5444
|
+
setGlobalModel: (u, m) => {
|
|
5445
5445
|
}
|
|
5446
5446
|
});
|
|
5447
5447
|
c(e.id, {
|
|
@@ -5452,8 +5452,8 @@ const Qr = /* @__PURE__ */ X(Jr, [["render", Yr], ["__scopeId", "data-v-2db14456
|
|
|
5452
5452
|
// eslint-disable-next-line no-void
|
|
5453
5453
|
emitRefreshPage: () => {
|
|
5454
5454
|
}
|
|
5455
|
-
}), g = d("tabChange", (u,
|
|
5456
|
-
|
|
5455
|
+
}), g = d("tabChange", (u, m) => {
|
|
5456
|
+
m !== C(t) && (i.value = u, t.value = m, h());
|
|
5457
5457
|
});
|
|
5458
5458
|
return he(e, {
|
|
5459
5459
|
tabChange: g
|
|
@@ -5531,7 +5531,7 @@ const os = /* @__PURE__ */ X(es, [["render", ns], ["__scopeId", "data-v-a2045b93
|
|
|
5531
5531
|
onClick: () => {
|
|
5532
5532
|
if (!e.linkPage && !e.href)
|
|
5533
5533
|
return;
|
|
5534
|
-
const r = e.linkPage || "", s = Fn(
|
|
5534
|
+
const r = e.linkPage || "", s = Fn(C(o), r), i = e.href;
|
|
5535
5535
|
let l = i || s;
|
|
5536
5536
|
l = se(l);
|
|
5537
5537
|
const d = e.target;
|
|
@@ -5576,7 +5576,7 @@ const ss = /* @__PURE__ */ X(ls, [["render", rs], ["__scopeId", "data-v-ef7a7bee
|
|
|
5576
5576
|
}), o = q(() => {
|
|
5577
5577
|
let a = se(e.link);
|
|
5578
5578
|
if (e.linkType === "erd" && a != null) {
|
|
5579
|
-
let r =
|
|
5579
|
+
let r = C(t);
|
|
5580
5580
|
r[r.length - 1] === "/" ? r += "erdReport" : r += "/erdReport", a = `${Tl || r}?_t=0&uid=${a}`;
|
|
5581
5581
|
}
|
|
5582
5582
|
return a;
|
|
@@ -5703,7 +5703,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5703
5703
|
default:
|
|
5704
5704
|
return 55;
|
|
5705
5705
|
}
|
|
5706
|
-
}), r = q(() => e.scrollX), s = q(() => parseFloat(e.height) -
|
|
5706
|
+
}), r = q(() => e.scrollX), s = q(() => parseFloat(e.height) - C(a)), i = M([]), l = M([]), d = M([]), c = M([]), h = M(0), g = M(1), u = q(() => e.paginationPageSize), m = $o([]), b = (I = []) => {
|
|
5707
5707
|
if (Array.isArray(I) && I.length > 0) {
|
|
5708
5708
|
const D = I.length, W = e.columnsFixedNum;
|
|
5709
5709
|
for (let J = 0; J < D; J++) {
|
|
@@ -5718,7 +5718,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5718
5718
|
headerCellAlign: je,
|
|
5719
5719
|
headerCellColor: ot
|
|
5720
5720
|
} = B;
|
|
5721
|
-
ge && (
|
|
5721
|
+
ge && (m.push(me), B.filterOptionsInputValue = "", B.filterCheckboxGroupValue = [], B.customFilterDropdown = !0, B.onFilter = (We, yt) => yt[me].toString().toLowerCase().includes(We.toLowerCase())), B.customHeaderCell = () => ({
|
|
5722
5722
|
style: {
|
|
5723
5723
|
display: "table-cell",
|
|
5724
5724
|
verticalAlign: "middle",
|
|
@@ -5736,7 +5736,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5736
5736
|
borderBottomColor: e.borderColor
|
|
5737
5737
|
},
|
|
5738
5738
|
class: {
|
|
5739
|
-
highlight:
|
|
5739
|
+
highlight: C(K) === yt && e.clickHighlight
|
|
5740
5740
|
},
|
|
5741
5741
|
onClick: L("click", () => {
|
|
5742
5742
|
const Pt = e.id, Eo = H(Pt);
|
|
@@ -5746,7 +5746,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5746
5746
|
...We
|
|
5747
5747
|
}, F(Pt, { ...Eo, RECORD: We });
|
|
5748
5748
|
})
|
|
5749
|
-
}), Array.isArray(B.children) &&
|
|
5749
|
+
}), Array.isArray(B.children) && b(B.children);
|
|
5750
5750
|
}
|
|
5751
5751
|
}
|
|
5752
5752
|
}, v = (I = []) => (e.isUseSeq && I.unshift({
|
|
@@ -5757,7 +5757,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5757
5757
|
title: "操作",
|
|
5758
5758
|
dataIndex: "ACTION",
|
|
5759
5759
|
width: e.actionColumnWidth
|
|
5760
|
-
}),
|
|
5760
|
+
}), b(I), I);
|
|
5761
5761
|
ne(() => [
|
|
5762
5762
|
e.columns,
|
|
5763
5763
|
e.isUseSeq,
|
|
@@ -5776,9 +5776,9 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5776
5776
|
}, {
|
|
5777
5777
|
immediate: !0
|
|
5778
5778
|
});
|
|
5779
|
-
const
|
|
5779
|
+
const y = M({}), A = (I) => {
|
|
5780
5780
|
if (Array.isArray(I)) {
|
|
5781
|
-
const D = I.length, W =
|
|
5781
|
+
const D = I.length, W = m, J = W.length, B = {};
|
|
5782
5782
|
for (let le = 0; le < D; le++) {
|
|
5783
5783
|
const me = I[le];
|
|
5784
5784
|
for (let be = 0; be < J; be++) {
|
|
@@ -5797,20 +5797,20 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5797
5797
|
const me = B[le], be = Array.from(me);
|
|
5798
5798
|
te[le] = be.map((ge) => ({ label: ge, value: ge }));
|
|
5799
5799
|
}
|
|
5800
|
-
|
|
5800
|
+
y.value = te;
|
|
5801
5801
|
}
|
|
5802
5802
|
};
|
|
5803
5803
|
ne(() => [e.isReverse, i.value, l.value], () => {
|
|
5804
|
-
const I =
|
|
5805
|
-
if (
|
|
5806
|
-
const { columns: W, dataSource: J } =
|
|
5804
|
+
const I = C(i), D = C(l);
|
|
5805
|
+
if (A(D), e.isReverse) {
|
|
5806
|
+
const { columns: W, dataSource: J } = x(vt(I), vt(D));
|
|
5807
5807
|
d.value = W, c.value = J;
|
|
5808
5808
|
} else
|
|
5809
5809
|
d.value = I, c.value = D;
|
|
5810
5810
|
}, {
|
|
5811
5811
|
immediate: !0
|
|
5812
5812
|
});
|
|
5813
|
-
const
|
|
5813
|
+
const x = (I, D) => {
|
|
5814
5814
|
const W = I[0], J = [{
|
|
5815
5815
|
title: W.title,
|
|
5816
5816
|
dataIndex: "col0",
|
|
@@ -5839,25 +5839,25 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5839
5839
|
columns: J,
|
|
5840
5840
|
dataSource: B
|
|
5841
5841
|
};
|
|
5842
|
-
}, O = M(""),
|
|
5842
|
+
}, O = M(""), k = xe(e), _ = M(!1), S = async (I = !0) => {
|
|
5843
5843
|
var D;
|
|
5844
5844
|
try {
|
|
5845
|
-
I && (
|
|
5845
|
+
I && (_.value = !0);
|
|
5846
5846
|
let W = {};
|
|
5847
|
-
|
|
5848
|
-
pageNum:
|
|
5849
|
-
pageSize:
|
|
5847
|
+
C(O) && (W.orderCondition = C(O)), e.paginationShow && (W = {
|
|
5848
|
+
pageNum: C(g),
|
|
5849
|
+
pageSize: C(u),
|
|
5850
5850
|
layer: "1",
|
|
5851
5851
|
...W
|
|
5852
5852
|
});
|
|
5853
|
-
const J = await
|
|
5854
|
-
h.value = te, Array.isArray(B) && (l.value =
|
|
5853
|
+
const J = await k(W), { rows: B = [], total: te = 0 } = ((D = J == null ? void 0 : J.data) == null ? void 0 : D.data) || {};
|
|
5854
|
+
h.value = te, Array.isArray(B) && (l.value = C(l).concat(B));
|
|
5855
5855
|
} catch (W) {
|
|
5856
5856
|
console.error(W);
|
|
5857
5857
|
} finally {
|
|
5858
|
-
|
|
5858
|
+
_.value = !1;
|
|
5859
5859
|
}
|
|
5860
|
-
},
|
|
5860
|
+
}, f = ({ current: I }, D, W) => {
|
|
5861
5861
|
if (g.value = I, W && Object.keys(W).length > 0) {
|
|
5862
5862
|
const { field: J, order: B } = W, le = {
|
|
5863
5863
|
ascend: "asc",
|
|
@@ -5871,16 +5871,16 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5871
5871
|
return e.paginationShow && {
|
|
5872
5872
|
simple: I,
|
|
5873
5873
|
position: D,
|
|
5874
|
-
total:
|
|
5875
|
-
current:
|
|
5876
|
-
pageSize:
|
|
5874
|
+
total: C(h),
|
|
5875
|
+
current: C(g),
|
|
5876
|
+
pageSize: C(u),
|
|
5877
5877
|
showSizeChanger: !1
|
|
5878
5878
|
};
|
|
5879
|
-
}),
|
|
5879
|
+
}), T = (I) => +I == 1 ? "是" : +I == 0 ? "否" : I, R = (I, D) => D == null || D === "" ? I : {
|
|
5880
5880
|
money: zt,
|
|
5881
5881
|
percentage: dt,
|
|
5882
5882
|
contrast: dt,
|
|
5883
|
-
boolean:
|
|
5883
|
+
boolean: T
|
|
5884
5884
|
}[D](I) || "", w = (I, D) => {
|
|
5885
5885
|
const W = parseFloat(I + "");
|
|
5886
5886
|
if (D !== "contrast")
|
|
@@ -5908,13 +5908,13 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5908
5908
|
}, z = On(e), V = async () => {
|
|
5909
5909
|
var I, D, W, J;
|
|
5910
5910
|
try {
|
|
5911
|
-
|
|
5911
|
+
_.value = !0;
|
|
5912
5912
|
const B = await z();
|
|
5913
5913
|
P((D = (I = B == null ? void 0 : B.data) == null ? void 0 : I.data) == null ? void 0 : D.columns, (J = (W = B == null ? void 0 : B.data) == null ? void 0 : W.data) == null ? void 0 : J.rows);
|
|
5914
5914
|
} catch (B) {
|
|
5915
5915
|
console.error(B);
|
|
5916
5916
|
} finally {
|
|
5917
|
-
|
|
5917
|
+
_.value = !1;
|
|
5918
5918
|
}
|
|
5919
5919
|
}, K = M(-1), de = (I, D) => ({
|
|
5920
5920
|
onClick: L("rowClick", () => {
|
|
@@ -5922,10 +5922,10 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5922
5922
|
F(W, { ...J, RECORD: I }), K.value = D;
|
|
5923
5923
|
})
|
|
5924
5924
|
}), Me = (I = !0) => {
|
|
5925
|
-
if (
|
|
5925
|
+
if (C(j) !== "design")
|
|
5926
5926
|
switch (e.dataType) {
|
|
5927
5927
|
case "request":
|
|
5928
|
-
|
|
5928
|
+
S(I);
|
|
5929
5929
|
break;
|
|
5930
5930
|
case "indicator":
|
|
5931
5931
|
V();
|
|
@@ -5940,7 +5940,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5940
5940
|
refreshData: Me
|
|
5941
5941
|
});
|
|
5942
5942
|
const Io = q(() => {
|
|
5943
|
-
const I =
|
|
5943
|
+
const I = C(d), D = [];
|
|
5944
5944
|
let W = 0;
|
|
5945
5945
|
for (let B = 0; B < I.length; B++) {
|
|
5946
5946
|
const te = I[B], { isCalcTotal: le } = te;
|
|
@@ -5959,8 +5959,8 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5959
5959
|
return [];
|
|
5960
5960
|
let J = [];
|
|
5961
5961
|
if (e.paginationShow) {
|
|
5962
|
-
const B = (
|
|
5963
|
-
J =
|
|
5962
|
+
const B = (C(g) - 1) * C(u), te = B + C(u);
|
|
5963
|
+
J = C(c).slice(B, te);
|
|
5964
5964
|
}
|
|
5965
5965
|
for (let B = 0; B < D.length; B++) {
|
|
5966
5966
|
const te = D[B];
|
|
@@ -5995,9 +5995,9 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5995
5995
|
pagination: p,
|
|
5996
5996
|
formatFn: R,
|
|
5997
5997
|
contrastClass: w,
|
|
5998
|
-
tableChange:
|
|
5998
|
+
tableChange: f,
|
|
5999
5999
|
summaryList: Io,
|
|
6000
|
-
loading:
|
|
6000
|
+
loading: _,
|
|
6001
6001
|
onTouchHrefEvent: (I, D = "") => {
|
|
6002
6002
|
I === "event" && window.parent.postMessage({
|
|
6003
6003
|
type: "openPage",
|
|
@@ -6018,8 +6018,8 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
6018
6018
|
useFilterOptions: (I) => {
|
|
6019
6019
|
const D = I.dataIndex;
|
|
6020
6020
|
if (typeof D == "string") {
|
|
6021
|
-
let W =
|
|
6022
|
-
const J =
|
|
6021
|
+
let W = C(y)[D];
|
|
6022
|
+
const J = C(I.filterOptionsInputValue).trim();
|
|
6023
6023
|
return Array.isArray(W) ? (W = W.filter((B) => typeof B.label == "string" ? B.label.toLowerCase().includes(J.toLowerCase()) : !0), W) : [];
|
|
6024
6024
|
}
|
|
6025
6025
|
return [];
|
|
@@ -6034,7 +6034,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
6034
6034
|
},
|
|
6035
6035
|
exportTable: () => {
|
|
6036
6036
|
var D;
|
|
6037
|
-
const I = (D =
|
|
6037
|
+
const I = (D = C(o)) == null ? void 0 : D.$el;
|
|
6038
6038
|
I && sa(ca.table_to_book(I), "表格数据.xlsx");
|
|
6039
6039
|
},
|
|
6040
6040
|
tableRef: o
|
|
@@ -6082,7 +6082,7 @@ function As(e, n, t, o, a, r) {
|
|
|
6082
6082
|
pagination: e.pagination,
|
|
6083
6083
|
onChange: e.tableChange
|
|
6084
6084
|
}, {
|
|
6085
|
-
customFilterDropdown: Y(({ column:
|
|
6085
|
+
customFilterDropdown: Y(({ column: m, selectedKeys: b, setSelectedKeys: v, confirm: y, clearFilters: A }) => [
|
|
6086
6086
|
ee("div", {
|
|
6087
6087
|
class: "ecan-table-filter",
|
|
6088
6088
|
style: G({
|
|
@@ -6090,25 +6090,25 @@ function As(e, n, t, o, a, r) {
|
|
|
6090
6090
|
})
|
|
6091
6091
|
}, [
|
|
6092
6092
|
U(i, {
|
|
6093
|
-
value:
|
|
6094
|
-
"onUpdate:value": (
|
|
6093
|
+
value: m.filterOptionsInputValue,
|
|
6094
|
+
"onUpdate:value": (x) => m.filterOptionsInputValue = x,
|
|
6095
6095
|
placeholder: "请输入关键字",
|
|
6096
6096
|
class: "filter-input",
|
|
6097
6097
|
onChange: e.onSearchFilterOptions
|
|
6098
6098
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
6099
6099
|
U(l, {
|
|
6100
|
-
value:
|
|
6101
|
-
"onUpdate:value": (
|
|
6100
|
+
value: m.filterCheckboxGroupValue,
|
|
6101
|
+
"onUpdate:value": (x) => m.filterCheckboxGroupValue = x,
|
|
6102
6102
|
class: "filter-checkbox",
|
|
6103
|
-
options: e.useFilterOptions(
|
|
6104
|
-
onChange: (
|
|
6103
|
+
options: e.useFilterOptions(m),
|
|
6104
|
+
onChange: (x) => e.useSetSelectedKeys(v, m)
|
|
6105
6105
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6106
6106
|
ee("div", null, [
|
|
6107
6107
|
U(s, {
|
|
6108
6108
|
type: "primary",
|
|
6109
6109
|
size: "small",
|
|
6110
6110
|
style: { width: "90px", "margin-right": "8px" },
|
|
6111
|
-
onClick: () =>
|
|
6111
|
+
onClick: () => y()
|
|
6112
6112
|
}, {
|
|
6113
6113
|
default: Y(() => [
|
|
6114
6114
|
ps
|
|
@@ -6118,7 +6118,7 @@ function As(e, n, t, o, a, r) {
|
|
|
6118
6118
|
U(s, {
|
|
6119
6119
|
size: "small",
|
|
6120
6120
|
style: { width: "90px" },
|
|
6121
|
-
onClick: fn((
|
|
6121
|
+
onClick: fn((x) => e.onResetFilter(A, m), ["stop"])
|
|
6122
6122
|
}, {
|
|
6123
6123
|
default: Y(() => [
|
|
6124
6124
|
Cs
|
|
@@ -6128,56 +6128,56 @@ function As(e, n, t, o, a, r) {
|
|
|
6128
6128
|
])
|
|
6129
6129
|
], 4)
|
|
6130
6130
|
]),
|
|
6131
|
-
bodyCell: Y(({ column:
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
(E(!0), $(Ie, null, Ee(e.actionList, (
|
|
6131
|
+
bodyCell: Y(({ column: m, index: b, text: v, record: y }) => [
|
|
6132
|
+
m.dataIndex === "SEQ" ? (E(), $("span", Ss, ye(b + 1), 1)) : ve("", !0),
|
|
6133
|
+
m.dataIndex === "ACTION" ? (E(), $("div", ws, [
|
|
6134
|
+
(E(!0), $(Ie, null, Ee(e.actionList, (A, x) => (E(), $("div", {
|
|
6135
6135
|
class: "action",
|
|
6136
|
-
key:
|
|
6136
|
+
key: x
|
|
6137
6137
|
}, [
|
|
6138
6138
|
ee("a", {
|
|
6139
|
-
href: e.handleHref(
|
|
6140
|
-
target: e.handleHrefTarget(
|
|
6139
|
+
href: e.handleHref(A.href, y),
|
|
6140
|
+
target: e.handleHrefTarget(A.target),
|
|
6141
6141
|
style: G({
|
|
6142
|
-
color:
|
|
6142
|
+
color: A.color,
|
|
6143
6143
|
fontSize: e.fontSize,
|
|
6144
6144
|
fontWeight: e.fontWeight
|
|
6145
6145
|
}),
|
|
6146
|
-
onClick: (O) => e.onTouchHrefEvent(
|
|
6147
|
-
}, ye(
|
|
6146
|
+
onClick: (O) => e.onTouchHrefEvent(A.target, e.handleHref(A.href, y))
|
|
6147
|
+
}, ye(A.title), 13, ks)
|
|
6148
6148
|
]))), 128))
|
|
6149
6149
|
])) : (E(), $("div", {
|
|
6150
6150
|
key: 2,
|
|
6151
|
-
class: _t([e.contrastClass(v,
|
|
6151
|
+
class: _t([e.contrastClass(v, m.format)]),
|
|
6152
6152
|
style: G({
|
|
6153
6153
|
fontSize: e.fontSize,
|
|
6154
6154
|
fontWeight: e.fontWeight
|
|
6155
6155
|
})
|
|
6156
|
-
}, ye(
|
|
6156
|
+
}, ye(m.format != null ? e.formatFn(v, m.format) : v), 7))
|
|
6157
6157
|
]),
|
|
6158
6158
|
summary: Y(() => [
|
|
6159
6159
|
e.summaryList.length > 0 ? (E(), Oe(h, { key: 0 }, {
|
|
6160
6160
|
default: Y(() => [
|
|
6161
6161
|
U(c, null, {
|
|
6162
6162
|
default: Y(() => [
|
|
6163
|
-
(E(!0), $(Ie, null, Ee(e.summaryList, (
|
|
6164
|
-
key:
|
|
6165
|
-
index:
|
|
6163
|
+
(E(!0), $(Ie, null, Ee(e.summaryList, (m, b) => (E(), Oe(d, {
|
|
6164
|
+
key: b,
|
|
6165
|
+
index: b,
|
|
6166
6166
|
style: G({
|
|
6167
6167
|
backgroundColor: e.cellBackgroundColor,
|
|
6168
|
-
textAlign:
|
|
6169
|
-
color:
|
|
6168
|
+
textAlign: m.cellAlign || "center",
|
|
6169
|
+
color: m.cellColor,
|
|
6170
6170
|
borderBottomColor: e.borderColor
|
|
6171
6171
|
})
|
|
6172
6172
|
}, {
|
|
6173
6173
|
default: Y(() => [
|
|
6174
6174
|
ee("div", {
|
|
6175
|
-
class: _t([e.contrastClass(
|
|
6175
|
+
class: _t([e.contrastClass(m.total, m.format)]),
|
|
6176
6176
|
style: G({
|
|
6177
6177
|
fontSize: e.fontSize,
|
|
6178
6178
|
fontWeight: e.fontWeight
|
|
6179
6179
|
})
|
|
6180
|
-
}, ye((
|
|
6180
|
+
}, ye((m.format != null || m.format !== "") && e.formatFn(m.total, m.format)), 7)
|
|
6181
6181
|
]),
|
|
6182
6182
|
_: 2
|
|
6183
6183
|
}, 1032, ["index", "style"]))), 128))
|
|
@@ -6255,7 +6255,7 @@ const _s = Q({
|
|
|
6255
6255
|
},
|
|
6256
6256
|
setup(e) {
|
|
6257
6257
|
const n = ie(e, ["backgroundImage"]), t = M(), o = q(() => De(e.geoBackgroundImage)), a = q(() => De(e.backgroundImage)), r = q(() => e.geoBackgroundImage ? {
|
|
6258
|
-
image:
|
|
6258
|
+
image: C(t),
|
|
6259
6259
|
repeat: e.geoBackgroundImageRepeat
|
|
6260
6260
|
} : e.geoItemStyleAreaColor), s = q(() => {
|
|
6261
6261
|
const c = e.symbolImage;
|
|
@@ -6275,7 +6275,7 @@ const _s = Q({
|
|
|
6275
6275
|
style: {
|
|
6276
6276
|
width: parseFloat(e.width),
|
|
6277
6277
|
height: parseFloat(e.height),
|
|
6278
|
-
image:
|
|
6278
|
+
image: C(a)
|
|
6279
6279
|
},
|
|
6280
6280
|
top: "center"
|
|
6281
6281
|
}
|
|
@@ -6296,7 +6296,7 @@ const _s = Q({
|
|
|
6296
6296
|
},
|
|
6297
6297
|
itemStyle: {
|
|
6298
6298
|
// 地图上板块属性
|
|
6299
|
-
areaColor:
|
|
6299
|
+
areaColor: C(r),
|
|
6300
6300
|
borderColor: e.geoItemStyleBorderColor,
|
|
6301
6301
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6302
6302
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6323,7 +6323,7 @@ const _s = Q({
|
|
|
6323
6323
|
itemStyle: {
|
|
6324
6324
|
color: e.itemStyleColor
|
|
6325
6325
|
},
|
|
6326
|
-
symbol:
|
|
6326
|
+
symbol: C(s),
|
|
6327
6327
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6328
6328
|
label: {
|
|
6329
6329
|
show: e.labelShow,
|