@ecan-bi/datav 1.2.0 → 1.2.2
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 +940 -913
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/select/Select.vue.d.ts +4 -0
- package/types/control/select/index.d.ts +4 -0
- package/types/control/select/props.d.ts +3 -0
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.2.
|
|
2
|
-
import { watch as ee, inject as V, computed as j, unref as
|
|
1
|
+
/*! @ecan-bi/datav@1.2.2 */
|
|
2
|
+
import { watch as ee, inject as V, computed as j, unref as w, watchEffect as ko, defineComponent as te, shallowRef as Ot, toRefs as Jn, onMounted as Je, onUnmounted as kt, h as St, nextTick as At, createVNode as U, resolveComponent as Z, openBlock as O, createElementBlock as z, createBlock as ze, renderSlot as rt, withCtx as K, ref as T, normalizeStyle as q, createCommentVNode as ke, provide as je, onBeforeUnmount as Bt, toDisplayString as Ce, Fragment as De, renderList as Fe, createElementVNode as X, normalizeClass as Ut, pushScopeId as _t, popScopeId as Tt, resolveDynamicComponent as Yn, mergeProps as Ao, toHandlers as Qn, createTextVNode as ct, withModifiers as _o, reactive as Kn, withDirectives as Xn, vShow as ea } from "vue";
|
|
3
3
|
import { throttle as ta, init as oa, use as Ke, registerMap as na } from "echarts/core";
|
|
4
4
|
import { addListener as aa, removeListener as la } from "resize-detector";
|
|
5
5
|
import { Spin as ia, Skeleton as sa, message as Ze, Progress as ra, Input as To, DatePicker as ca, RangePicker as da, Button as Lo, CheckboxGroup as Io, Select as ua, TreeSelect as fa, Modal as Ge, Table as ma, TableSummary as ha, TableSummaryRow as ga, TableSummaryCell as ya } from "ant-design-vue";
|
|
@@ -73,7 +73,7 @@ const Ia = {
|
|
|
73
73
|
}, Ma = "ecLoadingOptions";
|
|
74
74
|
function Oa(e, o, t) {
|
|
75
75
|
const n = V(Ma, {}), a = j(() => ({
|
|
76
|
-
...
|
|
76
|
+
...w(n),
|
|
77
77
|
...t == null ? void 0 : t.value
|
|
78
78
|
}));
|
|
79
79
|
ko(() => {
|
|
@@ -117,32 +117,32 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
|
|
|
117
117
|
null
|
|
118
118
|
), { autoresize: u, manualUpdate: g, loading: m, loadingOptions: p } = Jn(e), d = j(
|
|
119
119
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
120
|
-
), r = j(() => e.theme ||
|
|
121
|
-
() => e.initOptions ||
|
|
122
|
-
),
|
|
123
|
-
() => e.updateOptions ||
|
|
120
|
+
), r = j(() => e.theme || w(i) || {}), h = j(
|
|
121
|
+
() => e.initOptions || w(s) || {}
|
|
122
|
+
), C = j(
|
|
123
|
+
() => e.updateOptions || w(c) || {}
|
|
124
124
|
), v = j(() => za(o));
|
|
125
|
-
function
|
|
125
|
+
function S(A) {
|
|
126
126
|
if (a.value || !n.value)
|
|
127
127
|
return;
|
|
128
|
-
const
|
|
128
|
+
const _ = a.value = oa(
|
|
129
129
|
n.value,
|
|
130
130
|
r.value,
|
|
131
|
-
|
|
131
|
+
h.value
|
|
132
132
|
);
|
|
133
|
-
e.group && (
|
|
134
|
-
let
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
})), Object.keys(
|
|
139
|
-
const
|
|
140
|
-
|
|
133
|
+
e.group && (_.group = e.group);
|
|
134
|
+
let F = t;
|
|
135
|
+
F || (F = {}, Object.keys(o).filter((B) => B.indexOf("on") === 0 && B.length > 2).forEach((B) => {
|
|
136
|
+
const L = B.charAt(2).toLowerCase() + B.slice(3);
|
|
137
|
+
F[L] = o[B];
|
|
138
|
+
})), Object.keys(F).forEach((B) => {
|
|
139
|
+
const L = F[B];
|
|
140
|
+
L && (B.indexOf("zr:") === 0 ? _.getZr().on(B.slice(3).toLowerCase(), L) : _.on(B.toLowerCase(), L));
|
|
141
141
|
});
|
|
142
142
|
function W() {
|
|
143
|
-
if (
|
|
143
|
+
if (_ && !_.isDisposed())
|
|
144
144
|
try {
|
|
145
|
-
|
|
145
|
+
_.resize();
|
|
146
146
|
} catch (B) {
|
|
147
147
|
if (B.message === "Cannot read property 'get' of undefined")
|
|
148
148
|
return;
|
|
@@ -150,26 +150,26 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
function le() {
|
|
153
|
-
|
|
153
|
+
_.setOption(A || d.value, C.value);
|
|
154
154
|
}
|
|
155
155
|
u.value ? At(() => {
|
|
156
156
|
W(), le();
|
|
157
157
|
}) : le();
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
e.manualUpdate && (l.value =
|
|
159
|
+
function M(A, _) {
|
|
160
|
+
e.manualUpdate && (l.value = A), a.value ? a.value.setOption(A, _ || {}) : S(A);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function x() {
|
|
163
163
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
164
164
|
}
|
|
165
|
-
let
|
|
165
|
+
let D = null;
|
|
166
166
|
ee(
|
|
167
167
|
g,
|
|
168
|
-
(
|
|
169
|
-
typeof
|
|
168
|
+
(A) => {
|
|
169
|
+
typeof D == "function" && (D(), D = null), A || (D = ee(
|
|
170
170
|
() => e.option,
|
|
171
|
-
(
|
|
172
|
-
|
|
171
|
+
(_) => {
|
|
172
|
+
_ && (a.value ? a.value.setOption(_, C.value) : S());
|
|
173
173
|
},
|
|
174
174
|
{ deep: !0 }
|
|
175
175
|
));
|
|
@@ -178,9 +178,9 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
|
|
|
178
178
|
immediate: !0
|
|
179
179
|
}
|
|
180
180
|
), ee(
|
|
181
|
-
[r,
|
|
181
|
+
[r, h],
|
|
182
182
|
() => {
|
|
183
|
-
|
|
183
|
+
x(), S();
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
deep: !0
|
|
@@ -188,15 +188,15 @@ const Ra = "x-vue-echarts", $a = "ecTheme", Na = "ecInitOptions", Pa = "ecUpdate
|
|
|
188
188
|
), ko(() => {
|
|
189
189
|
e.group && a.value && (a.value.group = e.group);
|
|
190
190
|
});
|
|
191
|
-
const
|
|
191
|
+
const f = Ta(a, S);
|
|
192
192
|
return Oa(a, m, p), La(a, u, n), Je(() => {
|
|
193
|
-
e.option &&
|
|
194
|
-
}), kt(
|
|
193
|
+
e.option && S();
|
|
194
|
+
}), kt(x), {
|
|
195
195
|
chart: a,
|
|
196
196
|
root: n,
|
|
197
|
-
setOption:
|
|
197
|
+
setOption: M,
|
|
198
198
|
nonEventAttrs: v,
|
|
199
|
-
...
|
|
199
|
+
...f
|
|
200
200
|
};
|
|
201
201
|
},
|
|
202
202
|
render() {
|
|
@@ -937,12 +937,12 @@ Uo("#1890ff");
|
|
|
937
937
|
var tt = function(o, t) {
|
|
938
938
|
var n, a = ho({}, o, t.attrs), l = a.class, i = a.icon, s = a.spin, c = a.rotate, u = a.tabindex, g = a.twoToneColor, m = a.onClick, p = Ll(a, wl), d = (n = {
|
|
939
939
|
anticon: !0
|
|
940
|
-
}, jt(n, "anticon-".concat(i.name), !!i.name), jt(n, l, l), n), r = s === "" || s || i.name === "loading" ? "anticon-spin" : "",
|
|
941
|
-
|
|
942
|
-
var
|
|
940
|
+
}, jt(n, "anticon-".concat(i.name), !!i.name), jt(n, l, l), n), r = s === "" || s || i.name === "loading" ? "anticon-spin" : "", h = u;
|
|
941
|
+
h === void 0 && m && (h = -1, p.tabindex = h);
|
|
942
|
+
var C = c ? {
|
|
943
943
|
msTransform: "rotate(".concat(c, "deg)"),
|
|
944
944
|
transform: "rotate(".concat(c, "deg)")
|
|
945
|
-
} : void 0, v = Bo(g),
|
|
945
|
+
} : void 0, v = Bo(g), S = xl(v, 2), M = S[0], x = S[1];
|
|
946
946
|
return U("span", ho({
|
|
947
947
|
role: "img",
|
|
948
948
|
"aria-label": i.name
|
|
@@ -952,9 +952,9 @@ var tt = function(o, t) {
|
|
|
952
952
|
}), [U(Ht, {
|
|
953
953
|
class: r,
|
|
954
954
|
icon: i,
|
|
955
|
-
primaryColor:
|
|
956
|
-
secondaryColor:
|
|
957
|
-
style:
|
|
955
|
+
primaryColor: M,
|
|
956
|
+
secondaryColor: x,
|
|
957
|
+
style: C
|
|
958
958
|
}, null)]);
|
|
959
959
|
};
|
|
960
960
|
tt.props = {
|
|
@@ -1047,8 +1047,8 @@ const oe = (e, o) => {
|
|
|
1047
1047
|
}, Pl = { class: "spin-wrapper" };
|
|
1048
1048
|
function Bl(e, o, t, n, a, l) {
|
|
1049
1049
|
const i = Z("a-spin");
|
|
1050
|
-
return
|
|
1051
|
-
e.spinning ? (
|
|
1050
|
+
return O(), z("div", Pl, [
|
|
1051
|
+
e.spinning ? (O(), ze(i, {
|
|
1052
1052
|
key: 0,
|
|
1053
1053
|
class: "spin",
|
|
1054
1054
|
spinning: e.spinning,
|
|
@@ -1071,7 +1071,7 @@ const mt = /* @__PURE__ */ oe(Nl, [["render", Bl]]), Ul = te({
|
|
|
1071
1071
|
});
|
|
1072
1072
|
function Gl(e, o, t, n, a, l) {
|
|
1073
1073
|
const i = Z("a-skeleton");
|
|
1074
|
-
return
|
|
1074
|
+
return O(), ze(i, {
|
|
1075
1075
|
active: "",
|
|
1076
1076
|
loading: e.loading
|
|
1077
1077
|
}, {
|
|
@@ -1191,7 +1191,7 @@ const jl = ((xo = window == null ? void 0 : window.config) == null ? void 0 : xo
|
|
|
1191
1191
|
emitEvent: (l, i) => {
|
|
1192
1192
|
}
|
|
1193
1193
|
}), { touchEventId: a } = V(Ae, {
|
|
1194
|
-
touchEventId:
|
|
1194
|
+
touchEventId: T("")
|
|
1195
1195
|
});
|
|
1196
1196
|
return (l, i = () => {
|
|
1197
1197
|
}) => function() {
|
|
@@ -1213,8 +1213,8 @@ const jl = ((xo = window == null ? void 0 : window.config) == null ? void 0 : xo
|
|
|
1213
1213
|
for (let g = 0; g < s; g++) {
|
|
1214
1214
|
const m = e[g], p = m[t] || "", d = m[n] || "", r = m[a] || "";
|
|
1215
1215
|
if (l.add(p), i.has(r)) {
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1216
|
+
const h = i.get(r);
|
|
1217
|
+
h.push({ name: p, value: d, ...m }), i.set(r, h);
|
|
1218
1218
|
} else
|
|
1219
1219
|
i.set(r, [{ name: p, value: d, ...m }]);
|
|
1220
1220
|
}
|
|
@@ -1298,8 +1298,8 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1298
1298
|
let g = u.slice(1, -1).trim();
|
|
1299
1299
|
const m = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, p = g.match(m);
|
|
1300
1300
|
for (let d = 0; d < p.length; d++) {
|
|
1301
|
-
const r = p[d],
|
|
1302
|
-
|
|
1301
|
+
const r = p[d], h = i[r];
|
|
1302
|
+
h != null && (g = g.replace(r, h));
|
|
1303
1303
|
}
|
|
1304
1304
|
(/\(.*\)/g.test(g) || /[+/\\*]/g.test(g)) && (g = It(g, t)), e = e.replace(u, g);
|
|
1305
1305
|
}
|
|
@@ -1322,53 +1322,53 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1322
1322
|
}), m = ye(t), p = async (r = {}) => {
|
|
1323
1323
|
if (!m || !n || !a)
|
|
1324
1324
|
return;
|
|
1325
|
-
let
|
|
1326
|
-
l.forEach((
|
|
1327
|
-
const { key:
|
|
1328
|
-
if (typeof
|
|
1329
|
-
let
|
|
1330
|
-
const { id:
|
|
1331
|
-
|
|
1332
|
-
const B =
|
|
1333
|
-
let
|
|
1334
|
-
if (["date", "range"].some((N) => xt(
|
|
1335
|
-
const { value: N, type: P, mode:
|
|
1336
|
-
if (N && P &&
|
|
1325
|
+
let h = {};
|
|
1326
|
+
l.forEach((x) => {
|
|
1327
|
+
const { key: D, value: f } = x;
|
|
1328
|
+
if (typeof f == "object" && f != null && f.id) {
|
|
1329
|
+
let A = {};
|
|
1330
|
+
const { id: _, prop: F, propKey: W, operate: le } = f;
|
|
1331
|
+
_ === "THIS" ? A = g(w(u)) || {} : A = g(_) || {};
|
|
1332
|
+
const B = w(A[F]);
|
|
1333
|
+
let L = null;
|
|
1334
|
+
if (["date", "range"].some((N) => xt(A == null ? void 0 : A.type, N))) {
|
|
1335
|
+
const { value: N, type: P, mode: k } = le || {};
|
|
1336
|
+
if (N && P && k)
|
|
1337
1337
|
switch (P) {
|
|
1338
1338
|
case "add":
|
|
1339
|
-
|
|
1339
|
+
L = w(B).add(N, k);
|
|
1340
1340
|
break;
|
|
1341
1341
|
case "minus":
|
|
1342
|
-
|
|
1342
|
+
L = w(B).subtract(N, k);
|
|
1343
1343
|
break;
|
|
1344
1344
|
}
|
|
1345
|
-
|
|
1345
|
+
L == null && (L = w(B)), L = (L == null ? void 0 : L.format((W == null ? void 0 : W.trim()) || A.format)) || "";
|
|
1346
1346
|
} else
|
|
1347
|
-
Object.prototype.toString.call(B) === "[object Object]" ? W ?
|
|
1348
|
-
|
|
1347
|
+
Object.prototype.toString.call(B) === "[object Object]" ? W ? L = B[W] : L = F ? B[F] : B : xt(A == null ? void 0 : A.type, "select") && w(B) && F && Array.isArray(w(B)) ? L = w(B).map((N) => Object.prototype.hasOwnProperty.call(N, F) ? N[F] : N) : L = B;
|
|
1348
|
+
h[D] = L;
|
|
1349
1349
|
} else
|
|
1350
|
-
typeof
|
|
1351
|
-
}),
|
|
1352
|
-
let
|
|
1353
|
-
const v = Object.keys(
|
|
1354
|
-
v.forEach((
|
|
1355
|
-
let
|
|
1356
|
-
Object.prototype.toString.call(
|
|
1350
|
+
typeof f == "string" && (h[D] = ye(f));
|
|
1351
|
+
}), h = { ...window.config.requestParams, ...r, ...h };
|
|
1352
|
+
let C = "";
|
|
1353
|
+
const v = Object.keys(h), S = v.length - 1, M = v.length;
|
|
1354
|
+
v.forEach((x, D) => {
|
|
1355
|
+
let f = h[x];
|
|
1356
|
+
Object.prototype.toString.call(f) === "[object Object]" && (f = JSON.stringify(f)), D === 0 ? M !== 1 ? C += `?${x}=${f}&` : C += `?${x}=${f}` : D === S ? C += `${x}=${f}` : C += `${x}=${f}&`;
|
|
1357
1357
|
});
|
|
1358
1358
|
try {
|
|
1359
|
-
const
|
|
1360
|
-
let
|
|
1361
|
-
|
|
1362
|
-
const
|
|
1363
|
-
baseURL:
|
|
1364
|
-
url:
|
|
1359
|
+
const x = ["get", "head"].includes(n);
|
|
1360
|
+
let D = x ? m + C : m;
|
|
1361
|
+
h.dataSqlId && !D.includes("dataSqlId") && (D += `${D.includes("?") ? "&" : "?"}dataSqlId=${h.dataSqlId}`);
|
|
1362
|
+
const f = await qe({
|
|
1363
|
+
baseURL: w(c) || "",
|
|
1364
|
+
url: D,
|
|
1365
1365
|
method: n,
|
|
1366
1366
|
headers: a,
|
|
1367
|
-
data:
|
|
1367
|
+
data: x ? {} : h
|
|
1368
1368
|
});
|
|
1369
|
-
return o(
|
|
1370
|
-
} catch (
|
|
1371
|
-
console.error(
|
|
1369
|
+
return o(f), f;
|
|
1370
|
+
} catch (x) {
|
|
1371
|
+
console.error(x);
|
|
1372
1372
|
}
|
|
1373
1373
|
}, d = s && setInterval(p, i * 1e3);
|
|
1374
1374
|
return kt(() => {
|
|
@@ -1381,8 +1381,8 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1381
1381
|
if (i === 1) {
|
|
1382
1382
|
const g = [];
|
|
1383
1383
|
for (let p = 0; p < s; p++) {
|
|
1384
|
-
const d = n[p], { label: r, value:
|
|
1385
|
-
a.add(r), g.push(
|
|
1384
|
+
const d = n[p], { label: r, value: h } = d, C = { ...e[0], value: e[0][h] };
|
|
1385
|
+
a.add(r), g.push(C);
|
|
1386
1386
|
}
|
|
1387
1387
|
const m = e[0][t] || "";
|
|
1388
1388
|
l.set(m, g);
|
|
@@ -1391,12 +1391,12 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1391
1391
|
const m = e[g], p = m[t];
|
|
1392
1392
|
a.add(p);
|
|
1393
1393
|
for (let d = 0; d < s; d++) {
|
|
1394
|
-
const r = n[d], { label:
|
|
1395
|
-
if (l.has(
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1394
|
+
const r = n[d], { label: h, value: C } = r, v = { ...m, value: m[C] };
|
|
1395
|
+
if (l.has(h)) {
|
|
1396
|
+
const S = l.get(h);
|
|
1397
|
+
S.push(v), l.set(h, S);
|
|
1398
1398
|
} else
|
|
1399
|
-
l.set(
|
|
1399
|
+
l.set(h, [v]);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
const c = Array.from(a), u = [];
|
|
@@ -1468,8 +1468,8 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1468
1468
|
calcType: p = "COLUMN",
|
|
1469
1469
|
builtInFormula: d,
|
|
1470
1470
|
builtInValueSource: r,
|
|
1471
|
-
builtInCalcWay:
|
|
1472
|
-
formula:
|
|
1471
|
+
builtInCalcWay: h,
|
|
1472
|
+
formula: C,
|
|
1473
1473
|
conditions: v
|
|
1474
1474
|
} = i;
|
|
1475
1475
|
return {
|
|
@@ -1482,8 +1482,8 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1482
1482
|
aggregate: "SUM",
|
|
1483
1483
|
builtInFormula: d,
|
|
1484
1484
|
builtInValueSource: r,
|
|
1485
|
-
builtInCalcWay:
|
|
1486
|
-
formula:
|
|
1485
|
+
builtInCalcWay: h,
|
|
1486
|
+
formula: C,
|
|
1487
1487
|
conditions: v
|
|
1488
1488
|
};
|
|
1489
1489
|
}, { getGlobalModel: a } = V(we, {
|
|
@@ -1501,21 +1501,21 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1501
1501
|
id: p,
|
|
1502
1502
|
conditionLabel: d,
|
|
1503
1503
|
conditionKey: r,
|
|
1504
|
-
conditionValueType:
|
|
1505
|
-
} = m,
|
|
1504
|
+
conditionValueType: h
|
|
1505
|
+
} = m, C = {
|
|
1506
1506
|
rule: "NONE",
|
|
1507
1507
|
label: d,
|
|
1508
1508
|
fieldName: r,
|
|
1509
1509
|
fieldValue: "2020-02",
|
|
1510
1510
|
// 在关联控件中取
|
|
1511
1511
|
dateFormat: "YYYY-MM",
|
|
1512
|
-
valueType:
|
|
1512
|
+
valueType: h
|
|
1513
1513
|
}, v = a(p) || {};
|
|
1514
1514
|
if (console.log("model", v), xt(v.type, "date")) {
|
|
1515
|
-
const { value:
|
|
1516
|
-
|
|
1515
|
+
const { value: S, format: M } = v || {};
|
|
1516
|
+
C.fieldValue = (u = w(S)) == null ? void 0 : u.format(M), C.dateFormat = M;
|
|
1517
1517
|
}
|
|
1518
|
-
c.push(
|
|
1518
|
+
c.push(C);
|
|
1519
1519
|
}
|
|
1520
1520
|
return c;
|
|
1521
1521
|
};
|
|
@@ -1533,71 +1533,71 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1533
1533
|
// 前端图表类型,实测没用
|
|
1534
1534
|
classificationList: d = [],
|
|
1535
1535
|
seriesList: r = [],
|
|
1536
|
-
leftAxisList:
|
|
1537
|
-
rightAxisList:
|
|
1536
|
+
leftAxisList: h = [],
|
|
1537
|
+
rightAxisList: C = [],
|
|
1538
1538
|
queryColumnList: v = [],
|
|
1539
|
-
indicators:
|
|
1540
|
-
controlList:
|
|
1541
|
-
dataSourceId:
|
|
1539
|
+
indicators: S = [],
|
|
1540
|
+
controlList: M = [],
|
|
1541
|
+
dataSourceId: x,
|
|
1542
1542
|
// 所属数据源ID
|
|
1543
|
-
idxLibMode:
|
|
1543
|
+
idxLibMode: D,
|
|
1544
1544
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1545
|
-
preview:
|
|
1545
|
+
preview: f = !1
|
|
1546
1546
|
// 预览开关
|
|
1547
1547
|
} = i || {};
|
|
1548
1548
|
m == null && (xt(s, "table") ? m = "1" : m = "2");
|
|
1549
|
-
let
|
|
1549
|
+
let A;
|
|
1550
1550
|
if (Array.isArray(d) && d.length > 0) {
|
|
1551
|
-
const
|
|
1552
|
-
for (let H = 0; H <
|
|
1553
|
-
const N = d[H] || {}, { label: P = "", name:
|
|
1554
|
-
if (
|
|
1555
|
-
|
|
1551
|
+
const L = d.length;
|
|
1552
|
+
for (let H = 0; H < L; H++) {
|
|
1553
|
+
const N = d[H] || {}, { label: P = "", name: k = "", show: y = !1, sort: b, customGroup: I, conditions: R } = N;
|
|
1554
|
+
if (y || L === 1) {
|
|
1555
|
+
A = {
|
|
1556
1556
|
label: P,
|
|
1557
|
-
columnName:
|
|
1558
|
-
show:
|
|
1559
|
-
sort:
|
|
1557
|
+
columnName: k,
|
|
1558
|
+
show: y,
|
|
1559
|
+
sort: b,
|
|
1560
1560
|
customGroup: I,
|
|
1561
|
-
conditions:
|
|
1561
|
+
conditions: R
|
|
1562
1562
|
};
|
|
1563
1563
|
break;
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
let
|
|
1567
|
+
let _;
|
|
1568
1568
|
if (Array.isArray(r) && r.length > 0) {
|
|
1569
|
-
const
|
|
1570
|
-
for (let H = 0; H <
|
|
1571
|
-
const N = r[H] || {}, { label: P = "", name:
|
|
1572
|
-
if (
|
|
1573
|
-
|
|
1569
|
+
const L = r.length;
|
|
1570
|
+
for (let H = 0; H < L; H++) {
|
|
1571
|
+
const N = r[H] || {}, { label: P = "", name: k = "", show: y = !1, sort: b, customGroup: I, conditions: R } = N;
|
|
1572
|
+
if (y || L === 1) {
|
|
1573
|
+
_ = {
|
|
1574
1574
|
label: P,
|
|
1575
|
-
columnName:
|
|
1576
|
-
show:
|
|
1577
|
-
sort:
|
|
1575
|
+
columnName: k,
|
|
1576
|
+
show: y,
|
|
1577
|
+
sort: b,
|
|
1578
1578
|
customGroup: I,
|
|
1579
|
-
conditions:
|
|
1579
|
+
conditions: R
|
|
1580
1580
|
};
|
|
1581
1581
|
break;
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
|
-
const
|
|
1586
|
-
v == null || v.forEach((
|
|
1587
|
-
|
|
1585
|
+
const F = [];
|
|
1586
|
+
v == null || v.forEach((L) => {
|
|
1587
|
+
F.push(t(L));
|
|
1588
1588
|
});
|
|
1589
1589
|
const W = [];
|
|
1590
|
-
if (
|
|
1591
|
-
|
|
1592
|
-
}),
|
|
1593
|
-
|
|
1594
|
-
}),
|
|
1595
|
-
|
|
1596
|
-
}), m === "1" &&
|
|
1590
|
+
if (h == null || h.forEach((L) => {
|
|
1591
|
+
L.location = "LEFT", W.push(n(L));
|
|
1592
|
+
}), C == null || C.forEach((L) => {
|
|
1593
|
+
L.location = "RIGHT", W.push(n(L));
|
|
1594
|
+
}), S == null || S.forEach((L) => {
|
|
1595
|
+
L.location = "LEFT", W.push(n(L));
|
|
1596
|
+
}), m === "1" && F.length === 0)
|
|
1597
1597
|
return;
|
|
1598
1598
|
if (m === "2" && W.length === 0)
|
|
1599
1599
|
return;
|
|
1600
|
-
const le = l(
|
|
1600
|
+
const le = l(M);
|
|
1601
1601
|
try {
|
|
1602
1602
|
return await qe.post(
|
|
1603
1603
|
`${Ho}/diagram`,
|
|
@@ -1607,16 +1607,16 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1607
1607
|
plugin: g,
|
|
1608
1608
|
layer: m,
|
|
1609
1609
|
chartType: p,
|
|
1610
|
-
classification:
|
|
1611
|
-
series:
|
|
1610
|
+
classification: A,
|
|
1611
|
+
series: _,
|
|
1612
1612
|
indicatorList: W,
|
|
1613
|
-
queryColumns:
|
|
1613
|
+
queryColumns: F,
|
|
1614
1614
|
pageFlag: !0,
|
|
1615
1615
|
sqlConditions: le,
|
|
1616
1616
|
// fixedDimSql: '',
|
|
1617
|
-
dataSourceId:
|
|
1618
|
-
idxLibMode:
|
|
1619
|
-
preview:
|
|
1617
|
+
dataSourceId: x,
|
|
1618
|
+
idxLibMode: D,
|
|
1619
|
+
preview: f
|
|
1620
1620
|
},
|
|
1621
1621
|
{
|
|
1622
1622
|
headers: {
|
|
@@ -1626,8 +1626,8 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
1628
|
);
|
|
1629
|
-
} catch (
|
|
1630
|
-
console.error(
|
|
1629
|
+
} catch (L) {
|
|
1630
|
+
console.error(L);
|
|
1631
1631
|
}
|
|
1632
1632
|
};
|
|
1633
1633
|
}, Hl = () => {
|
|
@@ -1664,22 +1664,22 @@ const Vl = (e) => e.replace(/\\n/g, `
|
|
|
1664
1664
|
backgroundColor: e.backgroundColor,
|
|
1665
1665
|
backgroundImage: Ve(e.backgroundImage, !0),
|
|
1666
1666
|
backgroundSize: e.backgroundSize
|
|
1667
|
-
})), t =
|
|
1667
|
+
})), t = T(0), n = T(0), a = T(0), l = T(0), i = T(!1), s = T();
|
|
1668
1668
|
let c;
|
|
1669
|
-
const u = () => new Promise((
|
|
1669
|
+
const u = () => new Promise((h) => {
|
|
1670
1670
|
At(() => {
|
|
1671
|
-
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = s.value.clientWidth, n.value = s.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height),
|
|
1671
|
+
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = s.value.clientWidth, n.value = s.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), h();
|
|
1672
1672
|
});
|
|
1673
1673
|
}), g = () => {
|
|
1674
1674
|
t.value && n.value ? (s.value.style.width = `${t.value}px`, s.value.style.height = `${n.value}px`) : (s.value.style.width = `${a.value}px`, s.value.style.height = `${l.value}px`);
|
|
1675
1675
|
}, m = () => {
|
|
1676
|
-
const
|
|
1677
|
-
s.value && (s.value.style.transform = `scale(${
|
|
1676
|
+
const h = document.body.clientWidth, C = document.body.clientHeight, v = t.value || a.value, S = n.value || l.value, M = h / v, x = C / S;
|
|
1677
|
+
s.value && (s.value.style.transform = `scale(${M}, ${x})`);
|
|
1678
1678
|
}, p = Vt(async () => {
|
|
1679
1679
|
await u(), m();
|
|
1680
1680
|
}, 100), d = () => {
|
|
1681
|
-
const
|
|
1682
|
-
c = new
|
|
1681
|
+
const h = window.MutationObserver;
|
|
1682
|
+
c = new h(p), c.observe(s.value, {
|
|
1683
1683
|
attributes: !0,
|
|
1684
1684
|
attributeFilter: ["style"],
|
|
1685
1685
|
attributeOldValue: !0
|
|
@@ -1703,8 +1703,8 @@ const Jl = {
|
|
|
1703
1703
|
ref: "container"
|
|
1704
1704
|
};
|
|
1705
1705
|
function Yl(e, o, t, n, a, l) {
|
|
1706
|
-
return
|
|
1707
|
-
e.ready ? (
|
|
1706
|
+
return O(), z("div", Jl, [
|
|
1707
|
+
e.ready ? (O(), z("div", {
|
|
1708
1708
|
key: 0,
|
|
1709
1709
|
class: "page-config",
|
|
1710
1710
|
style: q(e.style)
|
|
@@ -1726,7 +1726,7 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
|
|
|
1726
1726
|
},
|
|
1727
1727
|
setup(e, { expose: o }) {
|
|
1728
1728
|
Hl();
|
|
1729
|
-
const t =
|
|
1729
|
+
const t = T(), n = () => {
|
|
1730
1730
|
t.value.setAttribute("datav-theme", e.theme);
|
|
1731
1731
|
};
|
|
1732
1732
|
ee(() => e.theme, () => {
|
|
@@ -1734,7 +1734,7 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
|
|
|
1734
1734
|
}), Je(() => {
|
|
1735
1735
|
n();
|
|
1736
1736
|
});
|
|
1737
|
-
const a = j(() => ye(e.contextRequestUrl)), l = j(() => e.pageMode), i = j(() => e.theme), s =
|
|
1737
|
+
const a = j(() => ye(e.contextRequestUrl)), l = j(() => e.pageMode), i = j(() => e.theme), s = T("");
|
|
1738
1738
|
je(Ae, {
|
|
1739
1739
|
// 请求地址
|
|
1740
1740
|
contextRequestUrl: a,
|
|
@@ -1749,110 +1749,110 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
|
|
|
1749
1749
|
const u = (P) => c.get(P);
|
|
1750
1750
|
je(we, {
|
|
1751
1751
|
getGlobalModel: u,
|
|
1752
|
-
setGlobalModel: (P,
|
|
1753
|
-
c.set(P,
|
|
1752
|
+
setGlobalModel: (P, k) => {
|
|
1753
|
+
c.set(P, k);
|
|
1754
1754
|
}
|
|
1755
1755
|
});
|
|
1756
1756
|
const m = [], p = () => {
|
|
1757
1757
|
m.pop();
|
|
1758
1758
|
}, d = (P) => {
|
|
1759
1759
|
m.push(P);
|
|
1760
|
-
}, r = /* @__PURE__ */ new Map(),
|
|
1760
|
+
}, r = /* @__PURE__ */ new Map(), h = (P) => r.get(P);
|
|
1761
1761
|
je(Wo, {
|
|
1762
1762
|
popUseModalIds: p,
|
|
1763
1763
|
pushUseModalIds: d,
|
|
1764
|
-
getModalModel:
|
|
1765
|
-
setModalModel: (P,
|
|
1766
|
-
r.set(P,
|
|
1764
|
+
getModalModel: h,
|
|
1765
|
+
setModalModel: (P, k) => {
|
|
1766
|
+
r.set(P, k);
|
|
1767
1767
|
}
|
|
1768
1768
|
});
|
|
1769
|
-
const v = va(),
|
|
1770
|
-
|
|
1771
|
-
|
|
1769
|
+
const v = va(), S = /* @__PURE__ */ new Set(), M = (P, k) => {
|
|
1770
|
+
S.add(P), v.on(P, (y) => typeof k[y] == "function" && k[y]()), Bt(() => {
|
|
1771
|
+
x(P);
|
|
1772
1772
|
});
|
|
1773
|
-
},
|
|
1774
|
-
|
|
1773
|
+
}, x = (P) => {
|
|
1774
|
+
S.delete(P), v.off(P);
|
|
1775
1775
|
};
|
|
1776
1776
|
je(Yt, {
|
|
1777
|
-
onEvent:
|
|
1778
|
-
offEvent:
|
|
1779
|
-
emitEvent: (P,
|
|
1777
|
+
onEvent: M,
|
|
1778
|
+
offEvent: x,
|
|
1779
|
+
emitEvent: (P, k) => {
|
|
1780
1780
|
if (P === "PAGE") {
|
|
1781
|
-
const
|
|
1782
|
-
let
|
|
1783
|
-
if (
|
|
1784
|
-
|
|
1781
|
+
const y = m.length;
|
|
1782
|
+
let b = [];
|
|
1783
|
+
if (y === 0)
|
|
1784
|
+
b = [...S];
|
|
1785
1785
|
else {
|
|
1786
|
-
const I = m[
|
|
1787
|
-
|
|
1786
|
+
const I = m[y - 1];
|
|
1787
|
+
b = [...h(I)];
|
|
1788
1788
|
}
|
|
1789
|
-
|
|
1790
|
-
v.emit(I,
|
|
1789
|
+
b.forEach((I) => {
|
|
1790
|
+
v.emit(I, k);
|
|
1791
1791
|
});
|
|
1792
1792
|
} else
|
|
1793
|
-
v.emit(P,
|
|
1793
|
+
v.emit(P, k);
|
|
1794
1794
|
}
|
|
1795
1795
|
});
|
|
1796
|
-
const
|
|
1796
|
+
const f = T(0);
|
|
1797
1797
|
je(Vo, {
|
|
1798
1798
|
requestToken: () => {
|
|
1799
|
-
|
|
1799
|
+
f.value = w(f) + 1;
|
|
1800
1800
|
}
|
|
1801
1801
|
});
|
|
1802
|
-
const
|
|
1803
|
-
}, sortNum:
|
|
1804
|
-
if (
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1802
|
+
const _ = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), W = ({ requestFn: P = () => {
|
|
1803
|
+
}, sortNum: k = 0, id: y = "" }) => {
|
|
1804
|
+
if (_.has(k)) {
|
|
1805
|
+
const b = _.get(k);
|
|
1806
|
+
b == null || b.push(P);
|
|
1807
1807
|
} else
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
}, le = (P) => new Promise((
|
|
1811
|
-
const
|
|
1812
|
-
Promise.all(
|
|
1813
|
-
|
|
1808
|
+
_.set(k, [P]);
|
|
1809
|
+
F.set(y, P);
|
|
1810
|
+
}, le = (P) => new Promise((k, y) => {
|
|
1811
|
+
const b = P.map((I) => I());
|
|
1812
|
+
Promise.all(b).then((I) => {
|
|
1813
|
+
k(I);
|
|
1814
1814
|
}).catch((I) => {
|
|
1815
|
-
|
|
1815
|
+
y(I);
|
|
1816
1816
|
});
|
|
1817
1817
|
}), B = async () => {
|
|
1818
|
-
var
|
|
1818
|
+
var y;
|
|
1819
1819
|
const P = await Oo.get(`${Ho}/user/anonymous?username=admin&businessOfficeId=350421`, {
|
|
1820
1820
|
headers: {
|
|
1821
1821
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1822
1822
|
current_context: "ygt",
|
|
1823
1823
|
Authentication: ""
|
|
1824
1824
|
}
|
|
1825
|
-
}), { token:
|
|
1826
|
-
window.config.indicatorToken =
|
|
1827
|
-
},
|
|
1825
|
+
}), { token: k } = ((y = P.data) == null ? void 0 : y.data) || {};
|
|
1826
|
+
window.config.indicatorToken = k;
|
|
1827
|
+
}, L = (P) => new Promise(async (k, y) => {
|
|
1828
1828
|
if (P) {
|
|
1829
1829
|
if (typeof P == "string") {
|
|
1830
|
-
const
|
|
1831
|
-
if (typeof
|
|
1832
|
-
const I = qe.interceptors.response.use((
|
|
1833
|
-
|
|
1830
|
+
const b = F.get(P);
|
|
1831
|
+
if (typeof b == "function") {
|
|
1832
|
+
const I = qe.interceptors.response.use((R) => (k(R), R), (R) => (y(R), Promise.reject(R)));
|
|
1833
|
+
b(), qe.interceptors.response.eject(I);
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
1836
1836
|
} else {
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1839
|
-
const I =
|
|
1837
|
+
const b = Array.from(_);
|
|
1838
|
+
b.sort((R, Y) => Y[0] - R[0]);
|
|
1839
|
+
const I = b.length;
|
|
1840
1840
|
try {
|
|
1841
|
-
e.pageMode !== "design" &&
|
|
1842
|
-
for (let
|
|
1843
|
-
const Y =
|
|
1841
|
+
e.pageMode !== "design" && w(f) > 0 && await B();
|
|
1842
|
+
for (let R = 0; R < I; R++) {
|
|
1843
|
+
const Y = b[R][1];
|
|
1844
1844
|
await le(Y);
|
|
1845
1845
|
}
|
|
1846
|
-
} catch (
|
|
1847
|
-
console.error(
|
|
1846
|
+
} catch (R) {
|
|
1847
|
+
console.error(R);
|
|
1848
1848
|
} finally {
|
|
1849
|
-
|
|
1849
|
+
_.clear(), k(null);
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
1852
1852
|
});
|
|
1853
1853
|
je(_e, {
|
|
1854
1854
|
setRequest: W,
|
|
1855
|
-
touchRequest:
|
|
1855
|
+
touchRequest: L
|
|
1856
1856
|
}), je(lt, {
|
|
1857
1857
|
emitRefreshPage: () => {
|
|
1858
1858
|
v.emit(lt);
|
|
@@ -1864,9 +1864,9 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
|
|
|
1864
1864
|
});
|
|
1865
1865
|
};
|
|
1866
1866
|
return Bt(() => {
|
|
1867
|
-
|
|
1867
|
+
_ == null || _.clear(), F == null || F.clear();
|
|
1868
1868
|
}), o({
|
|
1869
|
-
touchRequest:
|
|
1869
|
+
touchRequest: L,
|
|
1870
1870
|
getGlobalModel: u,
|
|
1871
1871
|
onRefreshPage: N
|
|
1872
1872
|
}), {
|
|
@@ -1878,7 +1878,7 @@ const Ql = /* @__PURE__ */ oe(Zl, [["render", Yl], ["__scopeId", "data-v-242d350
|
|
|
1878
1878
|
ref: "providerConfig"
|
|
1879
1879
|
};
|
|
1880
1880
|
function ti(e, o, t, n, a, l) {
|
|
1881
|
-
return
|
|
1881
|
+
return O(), z("div", ei, [
|
|
1882
1882
|
rt(e.$slots, "default")
|
|
1883
1883
|
], 512);
|
|
1884
1884
|
}
|
|
@@ -1913,42 +1913,42 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
|
|
|
1913
1913
|
...Ko
|
|
1914
1914
|
},
|
|
1915
1915
|
setup(e) {
|
|
1916
|
-
const o = ue(e), t =
|
|
1916
|
+
const o = ue(e), t = T({});
|
|
1917
1917
|
ee(() => [e.data, e.dataType], ([d, r]) => {
|
|
1918
1918
|
r === "static" && (t.value = d);
|
|
1919
1919
|
}, {
|
|
1920
1920
|
immediate: !0
|
|
1921
1921
|
});
|
|
1922
1922
|
const n = j(() => {
|
|
1923
|
-
var
|
|
1924
|
-
const d =
|
|
1923
|
+
var C;
|
|
1924
|
+
const d = w(t);
|
|
1925
1925
|
let r = e.text;
|
|
1926
1926
|
r = r == null ? void 0 : r.replace(/\n|\\n/g, "<br/>"), r = r == null ? void 0 : r.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
1927
|
-
const
|
|
1928
|
-
if (
|
|
1927
|
+
const h = r.match(/\{(.+?)\}/g);
|
|
1928
|
+
if (h == null || h.length === 0)
|
|
1929
1929
|
return r;
|
|
1930
|
-
for (let v = 0; v <
|
|
1931
|
-
const
|
|
1932
|
-
let
|
|
1933
|
-
const
|
|
1934
|
-
for (let
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1930
|
+
for (let v = 0; v < h.length; v++) {
|
|
1931
|
+
const S = h[v], M = (C = S == null ? void 0 : S.slice(1, S.length - 1)) == null ? void 0 : C.trim();
|
|
1932
|
+
let x = M;
|
|
1933
|
+
const D = M.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1934
|
+
for (let A = 0; A < D.length; A++) {
|
|
1935
|
+
const _ = D[A], F = d[_];
|
|
1936
|
+
F && (x = M.replace(_, F));
|
|
1937
1937
|
}
|
|
1938
|
-
if (/\(.*\)/g.test(
|
|
1939
|
-
const
|
|
1940
|
-
|
|
1938
|
+
if (/\(.*\)/g.test(x)) {
|
|
1939
|
+
const A = It(x);
|
|
1940
|
+
A != null && (x = A);
|
|
1941
1941
|
}
|
|
1942
|
-
let
|
|
1943
|
-
if (
|
|
1944
|
-
const
|
|
1945
|
-
|
|
1942
|
+
let f = x;
|
|
1943
|
+
if (f === M && (f = e.variableDefaultValue), f != null) {
|
|
1944
|
+
const A = e.format;
|
|
1945
|
+
A === "percentage" ? (f = +f, isNaN(f) ? r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`) : f >= 0 ? (f = (f * 100).toFixed(2), r = r.replace(S, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${li}"/>${f}%</span>`)) : (f = (f * 100).toFixed(2), r = r.replace(S, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ii}"/>${Math.abs(+f)}%</span>`))) : e.format === "percent" ? (f = +f, isNaN(f) || (f = (f * 100).toFixed(2), r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}%</span>`))) : e.format === "money" ? (f = +f, isNaN(f) || (f = Qt(f), r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}</span>`))) : A === "thousands" ? (f = +f, isNaN(f) || (f = Wl(f), r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}</span>`))) : r = r.replace(S, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${f}</span>`);
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
1948
|
return `<span>${r}</span>`;
|
|
1949
1949
|
}), { pageMode: a } = V(Ae, {
|
|
1950
1950
|
pageMode: "normal"
|
|
1951
|
-
}), l = Oe(e), i =
|
|
1951
|
+
}), l = Oe(e), i = T(!1), s = async () => {
|
|
1952
1952
|
var d;
|
|
1953
1953
|
try {
|
|
1954
1954
|
i.value = !0;
|
|
@@ -1968,7 +1968,7 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
|
|
|
1968
1968
|
const { setRequest: u } = V(_e, {
|
|
1969
1969
|
// @ts-ignore
|
|
1970
1970
|
// eslint-disable-next-line no-void
|
|
1971
|
-
setRequest: ({ id: d, sortNum: r, requestFn:
|
|
1971
|
+
setRequest: ({ id: d, sortNum: r, requestFn: h }) => {
|
|
1972
1972
|
}
|
|
1973
1973
|
});
|
|
1974
1974
|
u({
|
|
@@ -1981,13 +1981,13 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
|
|
|
1981
1981
|
const g = be(e), m = g("click", () => {
|
|
1982
1982
|
if (!e.linkPage && !e.href)
|
|
1983
1983
|
return;
|
|
1984
|
-
const d = e.linkPage || "", r = Zo(
|
|
1985
|
-
let
|
|
1986
|
-
|
|
1984
|
+
const d = e.linkPage || "", r = Zo(w(a), d), h = e.href;
|
|
1985
|
+
let C = h || r;
|
|
1986
|
+
C = ye(C);
|
|
1987
1987
|
const v = e.target;
|
|
1988
|
-
v && (v !== "event" ? window.open(
|
|
1988
|
+
v && (v !== "event" ? window.open(C, "_" + v) : window.parent.postMessage({
|
|
1989
1989
|
type: "openPage",
|
|
1990
|
-
url:
|
|
1990
|
+
url: h
|
|
1991
1991
|
}, "*"));
|
|
1992
1992
|
}), p = g("valueChange", () => {
|
|
1993
1993
|
});
|
|
@@ -2004,13 +2004,13 @@ const oi = /* @__PURE__ */ oe(Xl, [["render", ti]]), ni = ae(oi), Qo = {
|
|
|
2004
2004
|
const ri = ["innerHTML"];
|
|
2005
2005
|
function ci(e, o, t, n, a, l) {
|
|
2006
2006
|
const i = Z("skeleton");
|
|
2007
|
-
return e.loading ? (
|
|
2007
|
+
return e.loading ? (O(), z("div", {
|
|
2008
2008
|
key: 0,
|
|
2009
2009
|
class: "skeleton-wrapper",
|
|
2010
2010
|
style: q(e.style)
|
|
2011
2011
|
}, [
|
|
2012
2012
|
U(i, { loading: e.loading }, null, 8, ["loading"])
|
|
2013
|
-
], 4)) : (
|
|
2013
|
+
], 4)) : (O(), z("div", {
|
|
2014
2014
|
key: 1,
|
|
2015
2015
|
class: "ecan-text",
|
|
2016
2016
|
style: q(e.style),
|
|
@@ -2022,13 +2022,13 @@ const di = /* @__PURE__ */ oe(si, [["render", ci], ["__scopeId", "data-v-e3658bc
|
|
|
2022
2022
|
name: "EcanScrollText",
|
|
2023
2023
|
setup() {
|
|
2024
2024
|
return {
|
|
2025
|
-
text:
|
|
2025
|
+
text: T("基础文本")
|
|
2026
2026
|
};
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
const mi = { class: "red" };
|
|
2030
2030
|
function hi(e, o, t, n, a, l) {
|
|
2031
|
-
return
|
|
2031
|
+
return O(), z("div", mi, Ce(e.text), 1);
|
|
2032
2032
|
}
|
|
2033
2033
|
const gi = /* @__PURE__ */ oe(fi, [["render", hi], ["__scopeId", "data-v-4dd9c03e"]]), yi = ae(gi), Xo = {
|
|
2034
2034
|
...me,
|
|
@@ -2067,7 +2067,7 @@ const gi = /* @__PURE__ */ oe(fi, [["render", hi], ["__scopeId", "data-v-4dd9c03
|
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
2069
|
return m.format(u);
|
|
2070
|
-
}, n =
|
|
2070
|
+
}, n = T();
|
|
2071
2071
|
ee(() => [e.operate, e.format], () => {
|
|
2072
2072
|
n.value = t();
|
|
2073
2073
|
}, {
|
|
@@ -2110,7 +2110,7 @@ const gi = /* @__PURE__ */ oe(fi, [["render", hi], ["__scopeId", "data-v-4dd9c03
|
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
2112
|
function pi(e, o, t, n, a, l) {
|
|
2113
|
-
return
|
|
2113
|
+
return O(), z("div", {
|
|
2114
2114
|
class: "time-display",
|
|
2115
2115
|
style: q(e.style)
|
|
2116
2116
|
}, Ce(e.time), 5);
|
|
@@ -2155,7 +2155,7 @@ const Ci = /* @__PURE__ */ oe(vi, [["render", pi], ["__scopeId", "data-v-b628fca
|
|
|
2155
2155
|
...on
|
|
2156
2156
|
},
|
|
2157
2157
|
setup(e) {
|
|
2158
|
-
const o =
|
|
2158
|
+
const o = T(e.data), t = ue(e, ["backgroundColor"]), n = j(() => e.useRanking ? {
|
|
2159
2159
|
textAlign: "center"
|
|
2160
2160
|
} : {
|
|
2161
2161
|
textAlign: "left"
|
|
@@ -2164,16 +2164,16 @@ const Ci = /* @__PURE__ */ oe(vi, [["render", pi], ["__scopeId", "data-v-b628fca
|
|
|
2164
2164
|
percentage: wt,
|
|
2165
2165
|
contrast: wt
|
|
2166
2166
|
}[r](d) || "", l = (d, r) => {
|
|
2167
|
-
const
|
|
2167
|
+
const h = parseFloat(d + "");
|
|
2168
2168
|
if (r !== "contrast")
|
|
2169
2169
|
return "";
|
|
2170
2170
|
switch (!0) {
|
|
2171
|
-
case
|
|
2171
|
+
case h >= 0:
|
|
2172
2172
|
return "goUp";
|
|
2173
|
-
case
|
|
2173
|
+
case h < 0:
|
|
2174
2174
|
return "goDown";
|
|
2175
2175
|
}
|
|
2176
|
-
}, i = Oe(e), s =
|
|
2176
|
+
}, i = Oe(e), s = T(!1), c = async () => {
|
|
2177
2177
|
var d;
|
|
2178
2178
|
if (e.dataType === "request")
|
|
2179
2179
|
try {
|
|
@@ -2195,7 +2195,7 @@ const Ci = /* @__PURE__ */ oe(vi, [["render", pi], ["__scopeId", "data-v-b628fca
|
|
|
2195
2195
|
const { setRequest: p } = V(_e, {
|
|
2196
2196
|
// @ts-ignore
|
|
2197
2197
|
// eslint-disable-next-line no-void
|
|
2198
|
-
setRequest: ({ id: d, sortNum: r, requestFn:
|
|
2198
|
+
setRequest: ({ id: d, sortNum: r, requestFn: h }) => {
|
|
2199
2199
|
}
|
|
2200
2200
|
});
|
|
2201
2201
|
return p({
|
|
@@ -2231,14 +2231,14 @@ const ki = (e) => (_t("data-v-7aa27677"), e = e(), Tt(), e), Ai = {
|
|
|
2231
2231
|
};
|
|
2232
2232
|
function Ei(e, o, t, n, a, l) {
|
|
2233
2233
|
const i = Z("skeleton");
|
|
2234
|
-
return
|
|
2234
|
+
return O(), z("div", {
|
|
2235
2235
|
class: "ecan-list",
|
|
2236
2236
|
style: q(e.style)
|
|
2237
2237
|
}, [
|
|
2238
2238
|
U(i, { loading: e.loading }, {
|
|
2239
2239
|
default: K(() => [
|
|
2240
|
-
e.useTitle ? (
|
|
2241
|
-
(
|
|
2240
|
+
e.useTitle ? (O(), z("div", Ai, [
|
|
2241
|
+
(O(!0), z(De, null, Fe(e.columnCount, (s) => (O(), z("div", {
|
|
2242
2242
|
class: "title-inner",
|
|
2243
2243
|
style: q({
|
|
2244
2244
|
backgroundColor: e.backgroundColor,
|
|
@@ -2248,8 +2248,8 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2248
2248
|
}),
|
|
2249
2249
|
key: s
|
|
2250
2250
|
}, [
|
|
2251
|
-
e.useRanking ? (
|
|
2252
|
-
(
|
|
2251
|
+
e.useRanking ? (O(), z("div", _i)) : ke("", !0),
|
|
2252
|
+
(O(!0), z(De, null, Fe(e.columns, (c, u) => (O(), z("div", {
|
|
2253
2253
|
class: "column",
|
|
2254
2254
|
key: c.key || u,
|
|
2255
2255
|
style: q({
|
|
@@ -2259,15 +2259,15 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2259
2259
|
}, Ce(c.title), 5))), 128))
|
|
2260
2260
|
], 4))), 128))
|
|
2261
2261
|
])) : ke("", !0),
|
|
2262
|
-
e.dataSource.length > 0 ? (
|
|
2263
|
-
e.useTitle ? (
|
|
2262
|
+
e.dataSource.length > 0 ? (O(), z("div", Ti, [
|
|
2263
|
+
e.useTitle ? (O(), z("div", {
|
|
2264
2264
|
key: 0,
|
|
2265
2265
|
class: "title-placeholder",
|
|
2266
2266
|
style: q({
|
|
2267
2267
|
marginBottom: e.itemRowSpan
|
|
2268
2268
|
})
|
|
2269
2269
|
}, null, 4)) : ke("", !0),
|
|
2270
|
-
(
|
|
2270
|
+
(O(!0), z(De, null, Fe(e.dataSource.slice(0, e.sliceCount), (s, c) => (O(), z("div", {
|
|
2271
2271
|
class: "item",
|
|
2272
2272
|
style: q({
|
|
2273
2273
|
backgroundColor: e.backgroundColor,
|
|
@@ -2279,11 +2279,11 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2279
2279
|
key: s.id || c,
|
|
2280
2280
|
onClick: o[0] || (o[0] = (...u) => e.click && e.click(...u))
|
|
2281
2281
|
}, [
|
|
2282
|
-
e.useRanking ? (
|
|
2282
|
+
e.useRanking ? (O(), z("div", Li, [
|
|
2283
2283
|
Ii,
|
|
2284
2284
|
X("div", Mi, " Top " + Ce(c + 1), 1)
|
|
2285
2285
|
])) : ke("", !0),
|
|
2286
|
-
(
|
|
2286
|
+
(O(!0), z(De, null, Fe(e.columns, (u) => (O(), z("div", {
|
|
2287
2287
|
class: Ut(["column", e.contrastClass(s[u.key], u.format)]),
|
|
2288
2288
|
key: u.key,
|
|
2289
2289
|
style: q({
|
|
@@ -2294,7 +2294,7 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2294
2294
|
})
|
|
2295
2295
|
}, Ce((u.format != null || u.format !== "") && e.formatFn(s[u.key], u.format)), 7))), 128))
|
|
2296
2296
|
], 4))), 128))
|
|
2297
|
-
])) : (
|
|
2297
|
+
])) : (O(), z("div", Oi, " 暂无数据 "))
|
|
2298
2298
|
]),
|
|
2299
2299
|
_: 1
|
|
2300
2300
|
}, 8, ["loading"])
|
|
@@ -2338,60 +2338,60 @@ const Di = /* @__PURE__ */ oe(xi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2338
2338
|
}), t = ue(e), n = j(() => {
|
|
2339
2339
|
const r = e.width;
|
|
2340
2340
|
return parseFloat(r);
|
|
2341
|
-
}), a =
|
|
2341
|
+
}), a = T({});
|
|
2342
2342
|
ee(() => e.data, () => {
|
|
2343
|
-
(e.dataType === "static" ||
|
|
2343
|
+
(e.dataType === "static" || w(o) === "design") && (a.value = e.data);
|
|
2344
2344
|
}, {
|
|
2345
2345
|
immediate: !0,
|
|
2346
2346
|
deep: !0
|
|
2347
2347
|
});
|
|
2348
2348
|
const l = j(() => {
|
|
2349
|
-
const r =
|
|
2349
|
+
const r = w(a), h = +e.variableDefaultValue;
|
|
2350
2350
|
if (r == null)
|
|
2351
|
-
return isNaN(
|
|
2352
|
-
const
|
|
2351
|
+
return isNaN(h) ? 0 : h;
|
|
2352
|
+
const C = e.text.match(/\{.+\}/g) || [];
|
|
2353
2353
|
let v;
|
|
2354
|
-
const
|
|
2355
|
-
for (let
|
|
2356
|
-
const
|
|
2357
|
-
if (
|
|
2358
|
-
v = r[
|
|
2354
|
+
const S = new Set(Object.keys(r));
|
|
2355
|
+
for (let M = 0; M < C.length; M++) {
|
|
2356
|
+
const x = C[M], D = x.slice(1, x.length - 1);
|
|
2357
|
+
if (S.has(D)) {
|
|
2358
|
+
v = r[D];
|
|
2359
2359
|
break;
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
|
-
return typeof v == "number" ? v = v * 100 : typeof v == "string" && !isNaN(+v) ? v = +v * 100 : isNaN(
|
|
2362
|
+
return typeof v == "number" ? v = v * 100 : typeof v == "string" && !isNaN(+v) ? v = +v * 100 : isNaN(h) ? v = 0 : v = h * 100, e.decimalFormat && (v = +v.toFixed(2)), v;
|
|
2363
2363
|
}), i = j(() => {
|
|
2364
|
-
var
|
|
2364
|
+
var S;
|
|
2365
2365
|
let r = e.text;
|
|
2366
2366
|
if (r === "")
|
|
2367
|
-
return
|
|
2368
|
-
const
|
|
2369
|
-
for (let
|
|
2370
|
-
const
|
|
2371
|
-
let
|
|
2372
|
-
const
|
|
2373
|
-
for (let
|
|
2374
|
-
const W = (
|
|
2375
|
-
|
|
2367
|
+
return w(l);
|
|
2368
|
+
const h = e.variableDefaultValue, C = w(a), v = r.match(/\{.+\}/g) || [];
|
|
2369
|
+
for (let M = 0; M < v.length; M++) {
|
|
2370
|
+
const x = v[M];
|
|
2371
|
+
let D = x.slice(1, x.length - 1);
|
|
2372
|
+
const f = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, A = x.match(f);
|
|
2373
|
+
for (let F = 0; F < (A == null ? void 0 : A.length); F++) {
|
|
2374
|
+
const W = (S = A[F]) == null ? void 0 : S.trim();
|
|
2375
|
+
C[W] != null && (D = D.replace(W, C[W]));
|
|
2376
2376
|
}
|
|
2377
|
-
let
|
|
2377
|
+
let _ = D;
|
|
2378
2378
|
try {
|
|
2379
|
-
/\(.*\)/g.test(
|
|
2380
|
-
} catch (
|
|
2381
|
-
console.error(
|
|
2379
|
+
/\(.*\)/g.test(D) && (_ = It(D));
|
|
2380
|
+
} catch (F) {
|
|
2381
|
+
console.error(F);
|
|
2382
2382
|
}
|
|
2383
|
-
typeof +
|
|
2383
|
+
typeof +_ == "number" && !isNaN(+_) ? (_ = +_ * 100, e.decimalFormat && (_ = _.toFixed(2))) : _ = h, r = r.replace(x, _ + "");
|
|
2384
2384
|
}
|
|
2385
2385
|
return r;
|
|
2386
|
-
}), s = Oe(e), c =
|
|
2386
|
+
}), s = Oe(e), c = T(!1), u = async () => {
|
|
2387
2387
|
var r;
|
|
2388
2388
|
if (e.dataType === "request")
|
|
2389
2389
|
try {
|
|
2390
2390
|
c.value = !0;
|
|
2391
|
-
const
|
|
2392
|
-
a.value = ((r =
|
|
2393
|
-
} catch (
|
|
2394
|
-
console.error(
|
|
2391
|
+
const h = await s();
|
|
2392
|
+
a.value = ((r = h == null ? void 0 : h.data) == null ? void 0 : r.data) || {};
|
|
2393
|
+
} catch (h) {
|
|
2394
|
+
console.error(h);
|
|
2395
2395
|
} finally {
|
|
2396
2396
|
c.value = !1;
|
|
2397
2397
|
}
|
|
@@ -2405,7 +2405,7 @@ const Di = /* @__PURE__ */ oe(xi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2405
2405
|
}), { setRequest: d } = V(_e, {
|
|
2406
2406
|
// @ts-ignore
|
|
2407
2407
|
// eslint-disable-next-line no-void
|
|
2408
|
-
setRequest: ({ id: r, sortNum:
|
|
2408
|
+
setRequest: ({ id: r, sortNum: h, requestFn: C }) => {
|
|
2409
2409
|
}
|
|
2410
2410
|
});
|
|
2411
2411
|
return d({
|
|
@@ -2424,7 +2424,7 @@ const Di = /* @__PURE__ */ oe(xi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2424
2424
|
});
|
|
2425
2425
|
function $i(e, o, t, n, a, l) {
|
|
2426
2426
|
const i = Z("skeleton"), s = Z("a-progress");
|
|
2427
|
-
return
|
|
2427
|
+
return O(), z("div", {
|
|
2428
2428
|
class: "ecan-proportion",
|
|
2429
2429
|
style: q(e.style)
|
|
2430
2430
|
}, [
|
|
@@ -2441,10 +2441,10 @@ function $i(e, o, t, n, a, l) {
|
|
|
2441
2441
|
onClick: e.click
|
|
2442
2442
|
}, {
|
|
2443
2443
|
format: K(() => [
|
|
2444
|
-
e.loading ? (
|
|
2444
|
+
e.loading ? (O(), ze(i, {
|
|
2445
2445
|
key: 0,
|
|
2446
2446
|
loading: e.loading
|
|
2447
|
-
}, null, 8, ["loading"])) : (
|
|
2447
|
+
}, null, 8, ["loading"])) : (O(), z("div", {
|
|
2448
2448
|
key: 1,
|
|
2449
2449
|
class: "format",
|
|
2450
2450
|
style: q({
|
|
@@ -2481,7 +2481,7 @@ const Ni = /* @__PURE__ */ oe(Ri, [["render", $i], ["__scopeId", "data-v-00244f8
|
|
|
2481
2481
|
...sn
|
|
2482
2482
|
},
|
|
2483
2483
|
setup(e) {
|
|
2484
|
-
const o = ue(e), t =
|
|
2484
|
+
const o = ue(e), t = T("");
|
|
2485
2485
|
ee(() => e.value, (u) => {
|
|
2486
2486
|
t.value = u;
|
|
2487
2487
|
}, {
|
|
@@ -2518,7 +2518,7 @@ const Ni = /* @__PURE__ */ oe(Ri, [["render", $i], ["__scopeId", "data-v-00244f8
|
|
|
2518
2518
|
});
|
|
2519
2519
|
function Gi(e, o, t, n, a, l) {
|
|
2520
2520
|
const i = Z("a-input");
|
|
2521
|
-
return
|
|
2521
|
+
return O(), z("div", {
|
|
2522
2522
|
class: "ecan-input",
|
|
2523
2523
|
style: q(e.style)
|
|
2524
2524
|
}, [
|
|
@@ -2558,7 +2558,7 @@ const qi = /* @__PURE__ */ oe(Ui, [["render", Gi]]), ji = ae(qi), rn = {
|
|
|
2558
2558
|
ADatePicker: ca
|
|
2559
2559
|
},
|
|
2560
2560
|
setup(e) {
|
|
2561
|
-
const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2561
|
+
const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = T(null);
|
|
2562
2562
|
ee(() => [e.value, e.useCurrentTime, e.operate], ([c, u, g]) => {
|
|
2563
2563
|
let m = null;
|
|
2564
2564
|
if (c ? m = Ie(ye(c)) : u && (m = Ie()), g && m) {
|
|
@@ -2589,7 +2589,7 @@ const qi = /* @__PURE__ */ oe(Ui, [["render", Gi]]), ji = ae(qi), rn = {
|
|
|
2589
2589
|
});
|
|
2590
2590
|
const i = be(e)("dateChange", () => {
|
|
2591
2591
|
}), s = () => {
|
|
2592
|
-
|
|
2592
|
+
w(n) && i();
|
|
2593
2593
|
};
|
|
2594
2594
|
return Se(e, {
|
|
2595
2595
|
dateChange: i
|
|
@@ -2604,7 +2604,7 @@ const qi = /* @__PURE__ */ oe(Ui, [["render", Gi]]), ji = ae(qi), rn = {
|
|
|
2604
2604
|
});
|
|
2605
2605
|
function Hi(e, o, t, n, a, l) {
|
|
2606
2606
|
const i = Z("a-date-picker");
|
|
2607
|
-
return
|
|
2607
|
+
return O(), z("div", {
|
|
2608
2608
|
class: "ecan-date-picker",
|
|
2609
2609
|
style: q(e.style)
|
|
2610
2610
|
}, [
|
|
@@ -2648,39 +2648,39 @@ const Zi = /* @__PURE__ */ oe(Wi, [["render", Hi]]), Ji = ae(Zi), dn = {
|
|
|
2648
2648
|
...un
|
|
2649
2649
|
},
|
|
2650
2650
|
setup(e) {
|
|
2651
|
-
const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2652
|
-
ee(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([
|
|
2653
|
-
let
|
|
2654
|
-
if (
|
|
2655
|
-
const { type:
|
|
2656
|
-
switch (
|
|
2651
|
+
const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = T([null, null]);
|
|
2652
|
+
ee(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([C, v, S, M, x, D]) => {
|
|
2653
|
+
let f = null, A = null;
|
|
2654
|
+
if (S && (f = Ie().subtract(M, x), A = Ie()), C && (f = Ie(ye(C))), v && (A = Ie(ye(v))), D) {
|
|
2655
|
+
const { type: _, value: F, mode: W } = D;
|
|
2656
|
+
switch (_) {
|
|
2657
2657
|
case "add":
|
|
2658
|
-
|
|
2658
|
+
f = f && f.add(F, W), A = A && A.add(F, W);
|
|
2659
2659
|
break;
|
|
2660
2660
|
case "minus":
|
|
2661
|
-
|
|
2661
|
+
f = f && f.subtract(F, W), A = A && A.subtract(F, W);
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
2664
|
-
n.value = [
|
|
2664
|
+
n.value = [f, A];
|
|
2665
2665
|
}, {
|
|
2666
2666
|
immediate: !0
|
|
2667
2667
|
});
|
|
2668
|
-
let a =
|
|
2669
|
-
const i = (
|
|
2670
|
-
Array.isArray(
|
|
2671
|
-
}, s = (
|
|
2672
|
-
let v = !1, { limitStartTime:
|
|
2673
|
-
const
|
|
2668
|
+
let a = w(n)[0], l = w(n)[1];
|
|
2669
|
+
const i = (C) => {
|
|
2670
|
+
Array.isArray(C) ? (a = C[0], l = C[1]) : (a = null, l = null);
|
|
2671
|
+
}, s = (C) => {
|
|
2672
|
+
let v = !1, { limitStartTime: S, limitEndTime: M } = e;
|
|
2673
|
+
const x = {
|
|
2674
2674
|
startTime: `${a || ""}`,
|
|
2675
2675
|
endTime: `${l || ""}`
|
|
2676
2676
|
};
|
|
2677
|
-
return
|
|
2677
|
+
return S = ye(S, { codeData: x }), M = ye(M, { codeData: x }), S && M ? v = !(Ie(S) < C && C < Ie(M)) : S ? v = Ie(S) > C : M && (v = Ie(M) < C), v;
|
|
2678
2678
|
}, { setGlobalModel: c } = V(we, {
|
|
2679
2679
|
// @ts-ignore
|
|
2680
2680
|
// eslint-disable-next-line no-void
|
|
2681
|
-
setGlobalModel: (
|
|
2681
|
+
setGlobalModel: (C, v) => {
|
|
2682
2682
|
}
|
|
2683
|
-
}), u = j(() => Array.isArray(
|
|
2683
|
+
}), u = j(() => Array.isArray(w(n)) ? w(n)[0] : null), g = j(() => Array.isArray(w(n)) ? w(n)[1] : null);
|
|
2684
2684
|
c(e.id, {
|
|
2685
2685
|
type: e.type,
|
|
2686
2686
|
format: e.format,
|
|
@@ -2690,10 +2690,10 @@ const Zi = /* @__PURE__ */ oe(Wi, [["render", Hi]]), Ji = ae(Zi), dn = {
|
|
|
2690
2690
|
const m = be(e);
|
|
2691
2691
|
let p = !1;
|
|
2692
2692
|
const d = m("dateChange", () => {
|
|
2693
|
-
}), r = (
|
|
2694
|
-
const v =
|
|
2695
|
-
|
|
2696
|
-
},
|
|
2693
|
+
}), r = (C) => {
|
|
2694
|
+
const v = w(n), S = v && v[0] && v[1];
|
|
2695
|
+
C === !1 && p === !0 && S && (d(), p = !1);
|
|
2696
|
+
}, h = () => {
|
|
2697
2697
|
p = !0;
|
|
2698
2698
|
};
|
|
2699
2699
|
return Se(e, {
|
|
@@ -2707,13 +2707,13 @@ const Zi = /* @__PURE__ */ oe(Wi, [["render", Hi]]), Ji = ae(Zi), dn = {
|
|
|
2707
2707
|
disabledDate: s,
|
|
2708
2708
|
calendarChange: i,
|
|
2709
2709
|
openChange: r,
|
|
2710
|
-
change:
|
|
2710
|
+
change: h
|
|
2711
2711
|
};
|
|
2712
2712
|
}
|
|
2713
2713
|
});
|
|
2714
2714
|
function Ki(e, o, t, n, a, l) {
|
|
2715
2715
|
const i = Z("a-range-picker");
|
|
2716
|
-
return
|
|
2716
|
+
return O(), z("div", {
|
|
2717
2717
|
class: "ecan-range-picker",
|
|
2718
2718
|
style: q(e.style)
|
|
2719
2719
|
}, [
|
|
@@ -2757,14 +2757,14 @@ const Xi = /* @__PURE__ */ oe(Qi, [["render", Ki], ["__scopeId", "data-v-5a46a4a
|
|
|
2757
2757
|
},
|
|
2758
2758
|
setup(e) {
|
|
2759
2759
|
const o = ue(e), n = be(e)("click", () => {
|
|
2760
|
-
const s =
|
|
2760
|
+
const s = w(l);
|
|
2761
2761
|
s && e.target === "event" && window.parent.postMessage({
|
|
2762
2762
|
type: "openPage",
|
|
2763
2763
|
url: s
|
|
2764
2764
|
}, "*");
|
|
2765
2765
|
}), a = j(() => ye(e.text)), l = j(() => ye(e.href) || null), i = j(() => {
|
|
2766
2766
|
const s = e.target;
|
|
2767
|
-
if (!(s === "event" ||
|
|
2767
|
+
if (!(s === "event" || w(l) == null))
|
|
2768
2768
|
return {
|
|
2769
2769
|
self: "_self",
|
|
2770
2770
|
blank: "_blank"
|
|
@@ -2781,7 +2781,7 @@ const Xi = /* @__PURE__ */ oe(Qi, [["render", Ki], ["__scopeId", "data-v-5a46a4a
|
|
|
2781
2781
|
});
|
|
2782
2782
|
function ns(e, o, t, n, a, l) {
|
|
2783
2783
|
const i = Z("a-button");
|
|
2784
|
-
return
|
|
2784
|
+
return O(), z("div", {
|
|
2785
2785
|
class: "ecan-button",
|
|
2786
2786
|
style: q(e.style)
|
|
2787
2787
|
}, [
|
|
@@ -2831,11 +2831,11 @@ const as = /* @__PURE__ */ oe(os, [["render", ns]]), ls = ae(as), hn = {
|
|
|
2831
2831
|
...gn
|
|
2832
2832
|
},
|
|
2833
2833
|
setup(e) {
|
|
2834
|
-
const o = ue(e), t =
|
|
2834
|
+
const o = ue(e), t = T([]), n = T([]), a = (p) => {
|
|
2835
2835
|
const d = e.value;
|
|
2836
2836
|
let r = [];
|
|
2837
|
-
p.forEach((
|
|
2838
|
-
|
|
2837
|
+
p.forEach((h) => {
|
|
2838
|
+
h.checked && r.push(h.value);
|
|
2839
2839
|
}), typeof d == "string" && d !== "" ? r = r.concat(d.split(",")) : Array.isArray(d) && (r = r.concat(d)), t.value = p, n.value = r;
|
|
2840
2840
|
};
|
|
2841
2841
|
ee(() => [e.data, e.value], ([p]) => {
|
|
@@ -2845,10 +2845,10 @@ const as = /* @__PURE__ */ oe(os, [["render", ns]]), ls = ae(as), hn = {
|
|
|
2845
2845
|
deep: !0
|
|
2846
2846
|
});
|
|
2847
2847
|
const l = Oe(e), i = async () => {
|
|
2848
|
-
var r,
|
|
2848
|
+
var r, h;
|
|
2849
2849
|
if (e.dataType !== "request")
|
|
2850
2850
|
return;
|
|
2851
|
-
const p = await l(), d = ((
|
|
2851
|
+
const p = await l(), d = ((h = (r = p == null ? void 0 : p.data) == null ? void 0 : r.data) == null ? void 0 : h.rows) || [];
|
|
2852
2852
|
a(d);
|
|
2853
2853
|
}, { getGlobalModel: s, setGlobalModel: c } = V(we, {
|
|
2854
2854
|
// @ts-ignore
|
|
@@ -2887,7 +2887,7 @@ const as = /* @__PURE__ */ oe(os, [["render", ns]]), ls = ae(as), hn = {
|
|
|
2887
2887
|
});
|
|
2888
2888
|
function rs(e, o, t, n, a, l) {
|
|
2889
2889
|
const i = Z("a-checkbox-group");
|
|
2890
|
-
return
|
|
2890
|
+
return O(), z("div", {
|
|
2891
2891
|
class: "ecan-checkbox",
|
|
2892
2892
|
style: q(e.style)
|
|
2893
2893
|
}, [
|
|
@@ -2913,7 +2913,7 @@ const cs = /* @__PURE__ */ oe(ss, [["render", rs]]), ds = ae(cs), yn = {
|
|
|
2913
2913
|
{ label: "选项三", value: "3" }
|
|
2914
2914
|
],
|
|
2915
2915
|
value: void 0,
|
|
2916
|
-
dataFieldNames: { label: "label", value: "value" },
|
|
2916
|
+
dataFieldNames: { label: "label", value: "value", options: "" },
|
|
2917
2917
|
maxTagCount: 3,
|
|
2918
2918
|
autoClearSearchValue: !0,
|
|
2919
2919
|
placeholder: "请选择",
|
|
@@ -2927,79 +2927,106 @@ const cs = /* @__PURE__ */ oe(ss, [["render", rs]]), ds = ae(cs), yn = {
|
|
|
2927
2927
|
...bn
|
|
2928
2928
|
},
|
|
2929
2929
|
setup(e) {
|
|
2930
|
-
const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = Oe(e), a =
|
|
2930
|
+
const o = ue(e), t = () => document.getElementById("ProviderConfig") || document.body, n = Oe(e), a = T(e.data || []), l = T();
|
|
2931
2931
|
ee(() => [e.value, e.mode, e.selectFirstOption], () => {
|
|
2932
|
-
const { mode:
|
|
2933
|
-
|
|
2932
|
+
const { mode: C, selectFirstOption: v, value: S } = e;
|
|
2933
|
+
C === "multiple" || C === "tags" || C === "combobox" ? S ? l.value = S.split(",") : v && (l.value = [w(a)[0]]) : S ? l.value = S : v && (l.value = w(a)[0]);
|
|
2934
2934
|
}, {
|
|
2935
2935
|
immediate: !0
|
|
2936
2936
|
});
|
|
2937
|
-
const i = e.dataFieldNames, s = (
|
|
2938
|
-
const
|
|
2939
|
-
let
|
|
2940
|
-
const
|
|
2941
|
-
return
|
|
2942
|
-
}, c =
|
|
2943
|
-
|
|
2937
|
+
const i = e.dataFieldNames, s = (C, v) => {
|
|
2938
|
+
const S = i.label, M = i.value;
|
|
2939
|
+
let x;
|
|
2940
|
+
const D = v[S], f = v[M];
|
|
2941
|
+
return D != null ? x = D : f != null && (x = f), (x == null ? void 0 : x.toLowerCase().indexOf(C == null ? void 0 : C.toLowerCase())) >= 0;
|
|
2942
|
+
}, c = (C) => {
|
|
2943
|
+
const { label: v, value: S, options: M } = e.dataFieldNames;
|
|
2944
|
+
if (M && Array.isArray(C))
|
|
2945
|
+
if (C.some((x) => M in x)) {
|
|
2946
|
+
const x = {}, D = [];
|
|
2947
|
+
C.forEach((f) => {
|
|
2948
|
+
x[f[M]] || (x[f[M]] = []), x[f[M]].push({
|
|
2949
|
+
[v]: f[v],
|
|
2950
|
+
[S]: f[S]
|
|
2951
|
+
});
|
|
2952
|
+
});
|
|
2953
|
+
for (const f in x)
|
|
2954
|
+
D.push({
|
|
2955
|
+
[v]: f,
|
|
2956
|
+
[M]: x[f]
|
|
2957
|
+
});
|
|
2958
|
+
return D;
|
|
2959
|
+
} else
|
|
2960
|
+
return C;
|
|
2961
|
+
else if (!M)
|
|
2962
|
+
return C;
|
|
2963
|
+
}, u = T(!1), g = async () => {
|
|
2964
|
+
var C, v;
|
|
2944
2965
|
if (e.dataType === "request") {
|
|
2945
|
-
|
|
2966
|
+
u.value = !0;
|
|
2946
2967
|
try {
|
|
2947
|
-
const
|
|
2948
|
-
a.value = ((
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2968
|
+
const S = await n();
|
|
2969
|
+
if (a.value = c(((v = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : v.rows) || []), e.selectFirstOption) {
|
|
2970
|
+
console.log(w(a));
|
|
2971
|
+
let M = w(a)[0];
|
|
2972
|
+
if (i.options) {
|
|
2973
|
+
const x = M[i.options];
|
|
2974
|
+
x && x.length && (M = x[0]);
|
|
2975
|
+
}
|
|
2976
|
+
l.value = M[i.value];
|
|
2977
|
+
}
|
|
2978
|
+
} catch (S) {
|
|
2979
|
+
console.error(S);
|
|
2953
2980
|
} finally {
|
|
2954
|
-
|
|
2981
|
+
u.value = !1;
|
|
2955
2982
|
}
|
|
2956
2983
|
}
|
|
2957
|
-
}, { getGlobalModel:
|
|
2984
|
+
}, { getGlobalModel: m, setGlobalModel: p } = V(we, {
|
|
2958
2985
|
// @ts-ignore
|
|
2959
2986
|
// eslint-disable-next-line no-void
|
|
2960
|
-
getGlobalModel: (
|
|
2987
|
+
getGlobalModel: (C) => {
|
|
2961
2988
|
},
|
|
2962
2989
|
// @ts-ignore
|
|
2963
2990
|
// eslint-disable-next-line no-void
|
|
2964
|
-
setGlobalModel: (
|
|
2991
|
+
setGlobalModel: (C, v) => {
|
|
2965
2992
|
}
|
|
2966
2993
|
});
|
|
2967
|
-
|
|
2994
|
+
p(e.id, {
|
|
2968
2995
|
type: e.type,
|
|
2969
2996
|
value: l
|
|
2970
2997
|
});
|
|
2971
|
-
const
|
|
2972
|
-
const
|
|
2973
|
-
|
|
2998
|
+
const r = be(e)("selectChange", () => {
|
|
2999
|
+
const C = e.id, v = m(C);
|
|
3000
|
+
p(C, { ...v, RECORD: l });
|
|
2974
3001
|
});
|
|
2975
3002
|
Se(e, {
|
|
2976
|
-
selectChange:
|
|
2977
|
-
refreshData:
|
|
3003
|
+
selectChange: r,
|
|
3004
|
+
refreshData: g
|
|
2978
3005
|
});
|
|
2979
|
-
const { setRequest:
|
|
3006
|
+
const { setRequest: h } = V(_e, {
|
|
2980
3007
|
// @ts-ignore
|
|
2981
3008
|
// eslint-disable-next-line no-void
|
|
2982
|
-
setRequest: ({ id:
|
|
3009
|
+
setRequest: ({ id: C, sortNum: v, requestFn: S }) => {
|
|
2983
3010
|
}
|
|
2984
3011
|
});
|
|
2985
|
-
return
|
|
3012
|
+
return h({
|
|
2986
3013
|
id: e.id,
|
|
2987
|
-
requestFn:
|
|
3014
|
+
requestFn: g,
|
|
2988
3015
|
sortNum: e.requestSort
|
|
2989
3016
|
}), {
|
|
2990
3017
|
style: o,
|
|
2991
3018
|
getPopupContainer: t,
|
|
2992
3019
|
myValue: l,
|
|
2993
|
-
selectChange:
|
|
3020
|
+
selectChange: r,
|
|
2994
3021
|
options: a,
|
|
2995
3022
|
filterOption: s,
|
|
2996
|
-
loading:
|
|
3023
|
+
loading: u
|
|
2997
3024
|
};
|
|
2998
3025
|
}
|
|
2999
3026
|
});
|
|
3000
3027
|
function ms(e, o, t, n, a, l) {
|
|
3001
3028
|
const i = Z("a-select");
|
|
3002
|
-
return
|
|
3029
|
+
return O(), z("div", {
|
|
3003
3030
|
class: "ecan-select",
|
|
3004
3031
|
style: q(e.style)
|
|
3005
3032
|
}, [
|
|
@@ -3022,7 +3049,7 @@ function ms(e, o, t, n, a, l) {
|
|
|
3022
3049
|
}, null, 8, ["value", "placeholder", "options", "mode", "getPopupContainer", "fieldNames", "maxTagCount", "filterOption", "loading", "autoClearSearchValue", "onChange"])
|
|
3023
3050
|
], 4);
|
|
3024
3051
|
}
|
|
3025
|
-
const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-
|
|
3052
|
+
const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-2e86a327"]]), gs = ae(hs), vn = {
|
|
3026
3053
|
...me,
|
|
3027
3054
|
name: "树形下拉框选择器",
|
|
3028
3055
|
keyName: "树形下拉框选择器",
|
|
@@ -3064,29 +3091,29 @@ const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-c0b8fe0
|
|
|
3064
3091
|
...pn
|
|
3065
3092
|
},
|
|
3066
3093
|
setup(e) {
|
|
3067
|
-
const o = ue(e), t =
|
|
3068
|
-
const
|
|
3069
|
-
let
|
|
3070
|
-
const
|
|
3071
|
-
return
|
|
3072
|
-
}, a =
|
|
3094
|
+
const o = ue(e), t = T(e.data), n = (d, r) => {
|
|
3095
|
+
const h = e.dataFieldNames, C = h.label, v = h.value;
|
|
3096
|
+
let S;
|
|
3097
|
+
const M = r[C], x = r[v];
|
|
3098
|
+
return M != null ? S = M : x != null && (S = x), (S == null ? void 0 : S.toLowerCase().indexOf(d == null ? void 0 : d.toLowerCase())) >= 0;
|
|
3099
|
+
}, a = T();
|
|
3073
3100
|
ee(() => [e.multiple, e.value, e.treeCheckable, e.selectFirstOption], () => {
|
|
3074
|
-
const { multiple: d, value: r, selectFirstOption:
|
|
3075
|
-
d ? r ? a.value = r.split(",") :
|
|
3101
|
+
const { multiple: d, value: r, selectFirstOption: h } = e;
|
|
3102
|
+
d ? r ? a.value = r.split(",") : h && (a.value = [w(t)[0]]) : r ? a.value = r : h && (a.value = w(t)[0]);
|
|
3076
3103
|
}, {
|
|
3077
3104
|
immediate: !0
|
|
3078
3105
|
});
|
|
3079
|
-
const l =
|
|
3106
|
+
const l = T(!1), i = Oe(e), s = async () => {
|
|
3080
3107
|
var d, r;
|
|
3081
3108
|
if (e.dataType === "request") {
|
|
3082
3109
|
l.value = !0;
|
|
3083
3110
|
try {
|
|
3084
|
-
const
|
|
3085
|
-
t.value = ((r = (d =
|
|
3086
|
-
const
|
|
3087
|
-
e.value === "" &&
|
|
3088
|
-
} catch (
|
|
3089
|
-
console.error(
|
|
3111
|
+
const h = await i();
|
|
3112
|
+
t.value = ((r = (d = h == null ? void 0 : h.data) == null ? void 0 : d.data) == null ? void 0 : r.rows) || [];
|
|
3113
|
+
const C = w(t)[0];
|
|
3114
|
+
e.value === "" && C != null && (a.value = C[e.dataFieldNames.value]);
|
|
3115
|
+
} catch (h) {
|
|
3116
|
+
console.error(h);
|
|
3090
3117
|
} finally {
|
|
3091
3118
|
l.value = !1;
|
|
3092
3119
|
}
|
|
@@ -3116,7 +3143,7 @@ const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-c0b8fe0
|
|
|
3116
3143
|
const { setRequest: p } = V(_e, {
|
|
3117
3144
|
// @ts-ignore
|
|
3118
3145
|
// eslint-disable-next-line no-void
|
|
3119
|
-
setRequest: ({ id: d, sortNum: r, requestFn:
|
|
3146
|
+
setRequest: ({ id: d, sortNum: r, requestFn: h }) => {
|
|
3120
3147
|
}
|
|
3121
3148
|
});
|
|
3122
3149
|
return p({
|
|
@@ -3135,7 +3162,7 @@ const hs = /* @__PURE__ */ oe(fs, [["render", ms], ["__scopeId", "data-v-c0b8fe0
|
|
|
3135
3162
|
};
|
|
3136
3163
|
function vs(e, o, t, n, a, l) {
|
|
3137
3164
|
const i = Z("a-tree-select");
|
|
3138
|
-
return
|
|
3165
|
+
return O(), z("div", {
|
|
3139
3166
|
class: "ecan-tree-select",
|
|
3140
3167
|
style: q(n.style)
|
|
3141
3168
|
}, [
|
|
@@ -3257,99 +3284,99 @@ const ps = /* @__PURE__ */ oe(bs, [["render", vs], ["__scopeId", "data-v-3723642
|
|
|
3257
3284
|
},
|
|
3258
3285
|
setup(e, { emit: o }) {
|
|
3259
3286
|
const t = () => document.getElementById("ProviderConfig") || document.body, n = j(() => {
|
|
3260
|
-
const
|
|
3287
|
+
const b = e.position;
|
|
3261
3288
|
return {
|
|
3262
3289
|
verticalAlign: {
|
|
3263
3290
|
default: "",
|
|
3264
3291
|
top: "top",
|
|
3265
3292
|
center: "middle",
|
|
3266
3293
|
bottom: "bottom"
|
|
3267
|
-
}[
|
|
3294
|
+
}[b]
|
|
3268
3295
|
};
|
|
3269
|
-
}), a = e.width, l = e.height, i = e.originalWidth, s = e.originalHeight, c =
|
|
3296
|
+
}), a = e.width, l = e.height, i = e.originalWidth, s = e.originalHeight, c = T("80%"), u = T(0), g = T(), m = T(0), p = T({}), d = ue(e), r = T({}), h = T(!1), C = T();
|
|
3270
3297
|
let v;
|
|
3271
|
-
const
|
|
3298
|
+
const S = () => {
|
|
3272
3299
|
g.value = parseFloat(a) / parseFloat(i);
|
|
3273
|
-
const
|
|
3274
|
-
u.value = I *
|
|
3275
|
-
width: `${
|
|
3276
|
-
height: `${
|
|
3300
|
+
const b = parseFloat(l) / parseFloat(s), I = document.body.offsetWidth, R = document.body.offsetHeight;
|
|
3301
|
+
u.value = I * w(g), m.value = R * b, c.value = `${w(g) * 100}%`, p.value = {
|
|
3302
|
+
width: `${w(u)}px`,
|
|
3303
|
+
height: `${w(m)}px`
|
|
3277
3304
|
}, r.value = {
|
|
3278
|
-
...
|
|
3305
|
+
...w(d),
|
|
3279
3306
|
backgroundImage: Ve(e.backgroundImage, !0),
|
|
3280
|
-
transform: `scale(${
|
|
3307
|
+
transform: `scale(${w(u) / parseFloat(a)},${w(m) / parseFloat(l)})`
|
|
3281
3308
|
};
|
|
3282
|
-
},
|
|
3283
|
-
|
|
3284
|
-
}, 100),
|
|
3285
|
-
const
|
|
3286
|
-
v = new
|
|
3309
|
+
}, M = Vt(() => {
|
|
3310
|
+
S();
|
|
3311
|
+
}, 100), x = () => {
|
|
3312
|
+
const b = window.MutationObserver;
|
|
3313
|
+
v = new b(M), v.observe(document.body, {
|
|
3287
3314
|
attributes: !0,
|
|
3288
3315
|
attributeFilter: ["style"],
|
|
3289
3316
|
attributeOldValue: !0
|
|
3290
3317
|
});
|
|
3291
|
-
},
|
|
3318
|
+
}, D = () => {
|
|
3292
3319
|
v && (v.disconnect(), v.takeRecords(), v = null);
|
|
3293
|
-
},
|
|
3320
|
+
}, f = T(!1), { touchRequest: A } = V(_e, {
|
|
3294
3321
|
// @ts-ignore
|
|
3295
3322
|
// eslint-disable-next-line no-void
|
|
3296
3323
|
touchRequest: () => {
|
|
3297
3324
|
}
|
|
3298
|
-
}),
|
|
3299
|
-
|
|
3300
|
-
},
|
|
3301
|
-
o("close"),
|
|
3325
|
+
}), _ = () => {
|
|
3326
|
+
f.value = !0;
|
|
3327
|
+
}, F = () => {
|
|
3328
|
+
o("close"), f.value = !1;
|
|
3302
3329
|
}, W = () => {
|
|
3303
|
-
|
|
3330
|
+
F();
|
|
3304
3331
|
}, le = () => {
|
|
3305
|
-
|
|
3306
|
-
}, { setModalModel: B, pushUseModalIds:
|
|
3307
|
-
pushUseModalIds: (
|
|
3332
|
+
F();
|
|
3333
|
+
}, { setModalModel: B, pushUseModalIds: L, popUseModalIds: H } = V(Wo, {
|
|
3334
|
+
pushUseModalIds: (b) => {
|
|
3308
3335
|
},
|
|
3309
3336
|
popUseModalIds: () => {
|
|
3310
3337
|
},
|
|
3311
|
-
setModalModel: (
|
|
3338
|
+
setModalModel: (b, I) => {
|
|
3312
3339
|
}
|
|
3313
3340
|
}), N = () => {
|
|
3314
|
-
const
|
|
3341
|
+
const b = e.id;
|
|
3315
3342
|
let I = [];
|
|
3316
|
-
const
|
|
3317
|
-
console.log("componentList",
|
|
3343
|
+
const R = e.componentList;
|
|
3344
|
+
console.log("componentList", R), Array.isArray(R) && (I = R.map((Y) => Y.id), B(b, [...new Set(I)]));
|
|
3318
3345
|
};
|
|
3319
|
-
ee(() =>
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
}),
|
|
3346
|
+
ee(() => f.value, async (b) => {
|
|
3347
|
+
b ? (h.value = !1, L(e.id), N(), await At(() => {
|
|
3348
|
+
S(), window.addEventListener("resize", M), x(), h.value = !0;
|
|
3349
|
+
}), A()) : (H(), window.removeEventListener("resize", M), D());
|
|
3323
3350
|
});
|
|
3324
|
-
const P = j(() =>
|
|
3325
|
-
let
|
|
3326
|
-
return
|
|
3351
|
+
const P = j(() => w(g) >= 1), k = j(() => e.fullModal), y = j(() => {
|
|
3352
|
+
let b = "ecan-modal";
|
|
3353
|
+
return w(P) && (b += " ecan-full-width-modal"), w(k) && (b += " ecan-full-modal"), b;
|
|
3327
3354
|
});
|
|
3328
3355
|
return Se(e, {
|
|
3329
|
-
showModal:
|
|
3356
|
+
showModal: _
|
|
3330
3357
|
}), {
|
|
3331
|
-
modalRef:
|
|
3358
|
+
modalRef: C,
|
|
3332
3359
|
containStyle: p,
|
|
3333
3360
|
contentStyle: r,
|
|
3334
3361
|
getContainer: t,
|
|
3335
3362
|
modalStyle: n,
|
|
3336
3363
|
modalWith: c,
|
|
3337
|
-
isFullModal:
|
|
3364
|
+
isFullModal: k,
|
|
3338
3365
|
style: d,
|
|
3339
|
-
visible:
|
|
3340
|
-
showModal:
|
|
3366
|
+
visible: f,
|
|
3367
|
+
showModal: _,
|
|
3341
3368
|
onOk: W,
|
|
3342
3369
|
onCancel: le,
|
|
3343
3370
|
isFullWidth: P,
|
|
3344
|
-
wrapClassName:
|
|
3345
|
-
ready:
|
|
3371
|
+
wrapClassName: y,
|
|
3372
|
+
ready: h
|
|
3346
3373
|
};
|
|
3347
3374
|
}
|
|
3348
3375
|
});
|
|
3349
3376
|
const ks = { key: 0 };
|
|
3350
3377
|
function As(e, o, t, n, a, l) {
|
|
3351
3378
|
const i = Z("close-outlined"), s = Z("a-modal");
|
|
3352
|
-
return
|
|
3379
|
+
return O(), ze(s, {
|
|
3353
3380
|
getContainer: e.getContainer,
|
|
3354
3381
|
wrapClassName: e.wrapClassName,
|
|
3355
3382
|
centered: "",
|
|
@@ -3369,7 +3396,7 @@ function As(e, o, t, n, a, l) {
|
|
|
3369
3396
|
ref: "containRef",
|
|
3370
3397
|
style: q(e.containStyle)
|
|
3371
3398
|
}, [
|
|
3372
|
-
e.ready ? (
|
|
3399
|
+
e.ready ? (O(), z("div", {
|
|
3373
3400
|
key: 0,
|
|
3374
3401
|
class: "content",
|
|
3375
3402
|
style: q(e.contentStyle)
|
|
@@ -3381,7 +3408,7 @@ function As(e, o, t, n, a, l) {
|
|
|
3381
3408
|
padding: "20px 30px"
|
|
3382
3409
|
})
|
|
3383
3410
|
}, [
|
|
3384
|
-
e.title ? (
|
|
3411
|
+
e.title ? (O(), z("div", {
|
|
3385
3412
|
key: 0,
|
|
3386
3413
|
class: "ant-modal-title",
|
|
3387
3414
|
style: q({
|
|
@@ -3394,8 +3421,8 @@ function As(e, o, t, n, a, l) {
|
|
|
3394
3421
|
onClick: e.onCancel
|
|
3395
3422
|
}, null, 8, ["onClick"])
|
|
3396
3423
|
], 4),
|
|
3397
|
-
e.componentList.length ? (
|
|
3398
|
-
(
|
|
3424
|
+
e.componentList.length ? (O(), z("div", ks, [
|
|
3425
|
+
(O(!0), z(De, null, Fe(e.componentList, (c, u) => (O(), ze(Yn(c.type), Ao({
|
|
3399
3426
|
key: c.id + u
|
|
3400
3427
|
}, c), null, 16))), 128))
|
|
3401
3428
|
])) : rt(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
@@ -3425,12 +3452,12 @@ const Ts = te({
|
|
|
3425
3452
|
EcanModal: ot
|
|
3426
3453
|
},
|
|
3427
3454
|
setup(e, { expose: o }) {
|
|
3428
|
-
const t =
|
|
3429
|
-
let { data:
|
|
3455
|
+
const t = T(!1), n = ue(e), a = T([]), l = T(), i = j(() => {
|
|
3456
|
+
let { data: A = [] } = w(a)[0] || {};
|
|
3430
3457
|
if (Array.isArray(e.colors)) {
|
|
3431
|
-
const
|
|
3432
|
-
|
|
3433
|
-
label:
|
|
3458
|
+
const _ = e.isUseLabelColors, F = e.colors;
|
|
3459
|
+
A = A.map((W, le) => ({
|
|
3460
|
+
label: _ ? { color: F[le] } : {},
|
|
3434
3461
|
...W
|
|
3435
3462
|
}));
|
|
3436
3463
|
}
|
|
@@ -3455,8 +3482,8 @@ const Ts = te({
|
|
|
3455
3482
|
title: "放大",
|
|
3456
3483
|
icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
|
|
3457
3484
|
onclick() {
|
|
3458
|
-
var
|
|
3459
|
-
t.value = !0, (
|
|
3485
|
+
var _;
|
|
3486
|
+
t.value = !0, (_ = l.value) == null || _.showModal();
|
|
3460
3487
|
}
|
|
3461
3488
|
},
|
|
3462
3489
|
myInfo: {
|
|
@@ -3488,20 +3515,20 @@ const Ts = te({
|
|
|
3488
3515
|
tooltip: {
|
|
3489
3516
|
show: e.tooltipShow,
|
|
3490
3517
|
trigger: e.tooltipTrigger,
|
|
3491
|
-
formatter: (
|
|
3492
|
-
const { marker:
|
|
3518
|
+
formatter: (_) => {
|
|
3519
|
+
const { marker: F, seriesName: W, name: le, value: B, percent: L, data: H } = _ || {};
|
|
3493
3520
|
return ye(
|
|
3494
3521
|
e.tooltipFormatter,
|
|
3495
3522
|
{
|
|
3496
3523
|
textData: {
|
|
3497
|
-
marker:
|
|
3524
|
+
marker: F,
|
|
3498
3525
|
name: le,
|
|
3499
3526
|
value: B,
|
|
3500
|
-
percent:
|
|
3527
|
+
percent: L,
|
|
3501
3528
|
a: W,
|
|
3502
3529
|
b: le,
|
|
3503
3530
|
c: B,
|
|
3504
|
-
d:
|
|
3531
|
+
d: L,
|
|
3505
3532
|
...H
|
|
3506
3533
|
}
|
|
3507
3534
|
},
|
|
@@ -3529,7 +3556,7 @@ const Ts = te({
|
|
|
3529
3556
|
color: e.colors,
|
|
3530
3557
|
series: [
|
|
3531
3558
|
{
|
|
3532
|
-
data:
|
|
3559
|
+
data: A,
|
|
3533
3560
|
type: "pie",
|
|
3534
3561
|
radius: [e.innerRadius, e.outerRadius],
|
|
3535
3562
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3569,91 +3596,91 @@ const Ts = te({
|
|
|
3569
3596
|
}, { getGlobalModel: c, setGlobalModel: u } = V(we, {
|
|
3570
3597
|
// @ts-ignore
|
|
3571
3598
|
// eslint-disable-next-line no-void
|
|
3572
|
-
getGlobalModel: (
|
|
3599
|
+
getGlobalModel: (A) => {
|
|
3573
3600
|
},
|
|
3574
3601
|
// @ts-ignore
|
|
3575
3602
|
// eslint-disable-next-line no-void
|
|
3576
|
-
setGlobalModel: (
|
|
3603
|
+
setGlobalModel: (A, _) => {
|
|
3577
3604
|
}
|
|
3578
3605
|
}), { pageMode: g } = V(Ae, {
|
|
3579
3606
|
pageMode: "normal"
|
|
3580
|
-
}), m = (
|
|
3581
|
-
const { dataset:
|
|
3582
|
-
a.value =
|
|
3583
|
-
}, p = (
|
|
3584
|
-
const
|
|
3585
|
-
a.value =
|
|
3607
|
+
}), m = (A = [], _) => {
|
|
3608
|
+
const { dataset: F } = st(A, _);
|
|
3609
|
+
a.value = F;
|
|
3610
|
+
}, p = (A = [], _) => {
|
|
3611
|
+
const F = st(A, _);
|
|
3612
|
+
a.value = F.dataset;
|
|
3586
3613
|
};
|
|
3587
|
-
ee(() => e.data, (
|
|
3588
|
-
(e.dataType === "static" ||
|
|
3614
|
+
ee(() => e.data, (A) => {
|
|
3615
|
+
(e.dataType === "static" || w(g) === "design") && m(A);
|
|
3589
3616
|
}, {
|
|
3590
3617
|
immediate: !0,
|
|
3591
3618
|
deep: !0
|
|
3592
3619
|
});
|
|
3593
|
-
const d =
|
|
3594
|
-
var
|
|
3620
|
+
const d = T(!1), r = Oe(e), h = async () => {
|
|
3621
|
+
var A, _;
|
|
3595
3622
|
if (e.dataType === "request")
|
|
3596
3623
|
try {
|
|
3597
3624
|
d.value = !0;
|
|
3598
|
-
const
|
|
3599
|
-
m((
|
|
3600
|
-
} catch (
|
|
3601
|
-
console.error(
|
|
3625
|
+
const F = await r();
|
|
3626
|
+
m((_ = (A = F == null ? void 0 : F.data) == null ? void 0 : A.data) == null ? void 0 : _.rows, e.valueTypeDataFieldNames);
|
|
3627
|
+
} catch (F) {
|
|
3628
|
+
console.error(F);
|
|
3602
3629
|
} finally {
|
|
3603
3630
|
d.value = !1;
|
|
3604
3631
|
}
|
|
3605
|
-
}, v = be(e)("click", (
|
|
3606
|
-
const
|
|
3607
|
-
u(e.id, { ...
|
|
3608
|
-
}),
|
|
3609
|
-
var
|
|
3632
|
+
}, v = be(e)("click", (A) => {
|
|
3633
|
+
const _ = c(e.id);
|
|
3634
|
+
u(e.id, { ..._, RECORD: A == null ? void 0 : A.data });
|
|
3635
|
+
}), S = ht(e), M = async () => {
|
|
3636
|
+
var A;
|
|
3610
3637
|
try {
|
|
3611
3638
|
d.value = !0;
|
|
3612
|
-
const
|
|
3613
|
-
if (
|
|
3614
|
-
const { columns: W = [], rows: le = [] } = ((
|
|
3639
|
+
const _ = await S(), { data: F } = _.data || {};
|
|
3640
|
+
if (F) {
|
|
3641
|
+
const { columns: W = [], rows: le = [] } = ((A = _ == null ? void 0 : _.data) == null ? void 0 : A.data) ?? {};
|
|
3615
3642
|
let B = [];
|
|
3616
3643
|
if (W.length > 0) {
|
|
3617
|
-
const
|
|
3644
|
+
const L = W[0], H = W[1];
|
|
3618
3645
|
B = le.map((N) => ({
|
|
3619
|
-
name: N[
|
|
3646
|
+
name: N[L],
|
|
3620
3647
|
value: N[H]
|
|
3621
3648
|
}));
|
|
3622
3649
|
}
|
|
3623
3650
|
p(B);
|
|
3624
3651
|
}
|
|
3625
|
-
} catch (
|
|
3626
|
-
console.error(
|
|
3652
|
+
} catch (_) {
|
|
3653
|
+
console.error(_);
|
|
3627
3654
|
} finally {
|
|
3628
3655
|
d.value = !1;
|
|
3629
3656
|
}
|
|
3630
|
-
},
|
|
3657
|
+
}, x = () => {
|
|
3631
3658
|
switch (e.dataType) {
|
|
3632
3659
|
case "indicator":
|
|
3633
|
-
|
|
3660
|
+
M();
|
|
3634
3661
|
break;
|
|
3635
3662
|
case "request":
|
|
3636
|
-
|
|
3663
|
+
h();
|
|
3637
3664
|
break;
|
|
3638
3665
|
}
|
|
3639
3666
|
};
|
|
3640
3667
|
Se(e, {
|
|
3641
3668
|
resetRecord: () => {
|
|
3642
|
-
const
|
|
3643
|
-
u(
|
|
3669
|
+
const A = e.id, _ = c(A);
|
|
3670
|
+
u(A, { ..._, RECORD: "" });
|
|
3644
3671
|
},
|
|
3645
|
-
refreshData:
|
|
3672
|
+
refreshData: x,
|
|
3646
3673
|
click: v
|
|
3647
3674
|
}), o({
|
|
3648
|
-
refreshData:
|
|
3675
|
+
refreshData: x
|
|
3649
3676
|
});
|
|
3650
|
-
const { setRequest:
|
|
3651
|
-
setRequest: (
|
|
3677
|
+
const { setRequest: f } = V(_e, {
|
|
3678
|
+
setRequest: (A) => {
|
|
3652
3679
|
}
|
|
3653
3680
|
});
|
|
3654
|
-
return typeof
|
|
3681
|
+
return typeof f == "function" && f({
|
|
3655
3682
|
id: e.id,
|
|
3656
|
-
requestFn:
|
|
3683
|
+
requestFn: x,
|
|
3657
3684
|
sortNum: e.requestSort
|
|
3658
3685
|
}), {
|
|
3659
3686
|
option: i,
|
|
@@ -3667,7 +3694,7 @@ const Ts = te({
|
|
|
3667
3694
|
});
|
|
3668
3695
|
function Ls(e, o, t, n, a, l) {
|
|
3669
3696
|
const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal");
|
|
3670
|
-
return
|
|
3697
|
+
return O(), z("div", {
|
|
3671
3698
|
style: q(e.style)
|
|
3672
3699
|
}, [
|
|
3673
3700
|
U(s, { spinning: e.loading }, {
|
|
@@ -3794,10 +3821,10 @@ const Es = te({
|
|
|
3794
3821
|
EcanModal: ot
|
|
3795
3822
|
},
|
|
3796
3823
|
setup(e, { expose: o }) {
|
|
3797
|
-
const t =
|
|
3824
|
+
const t = T(), n = T(!1), a = ue(e), l = T([]), i = T([]), s = T(), c = j(() => n.value ? Ye : 12), u = T({});
|
|
3798
3825
|
let g;
|
|
3799
3826
|
const m = j(() => {
|
|
3800
|
-
const
|
|
3827
|
+
const L = e.xAxisLabelFormatter, H = e.yAxisLabelFormatter;
|
|
3801
3828
|
return {
|
|
3802
3829
|
toolbox: {
|
|
3803
3830
|
show: e.toolboxShow,
|
|
@@ -3856,17 +3883,17 @@ const Es = te({
|
|
|
3856
3883
|
},
|
|
3857
3884
|
show: e.tooltipShow,
|
|
3858
3885
|
formatter: (N) => {
|
|
3859
|
-
var
|
|
3886
|
+
var b;
|
|
3860
3887
|
const P = N.length;
|
|
3861
|
-
let
|
|
3862
|
-
g = (
|
|
3888
|
+
let k = "", y = e.tooltipFormatter;
|
|
3889
|
+
g = (b = N[0]) == null ? void 0 : b.data, y === "" && (y = "{marker} {a} {c}");
|
|
3863
3890
|
for (let I = 0; I < P; I++) {
|
|
3864
|
-
const { marker:
|
|
3865
|
-
I === 0 && (
|
|
3866
|
-
|
|
3891
|
+
const { marker: R, seriesName: Y, name: ce, value: ne, data: ve } = N[I] || {};
|
|
3892
|
+
I === 0 && (k += `${ce}<br/>`), k += ye(
|
|
3893
|
+
y,
|
|
3867
3894
|
{
|
|
3868
3895
|
textData: {
|
|
3869
|
-
marker:
|
|
3896
|
+
marker: R,
|
|
3870
3897
|
name: ce,
|
|
3871
3898
|
value: ne,
|
|
3872
3899
|
a: Y,
|
|
@@ -3879,14 +3906,14 @@ const Es = te({
|
|
|
3879
3906
|
useNewline: !0,
|
|
3880
3907
|
useSpace: !0
|
|
3881
3908
|
}
|
|
3882
|
-
),
|
|
3909
|
+
), k += "<br/>";
|
|
3883
3910
|
}
|
|
3884
|
-
return
|
|
3911
|
+
return k;
|
|
3885
3912
|
}
|
|
3886
3913
|
},
|
|
3887
3914
|
xAxis: {
|
|
3888
3915
|
type: "category",
|
|
3889
|
-
data:
|
|
3916
|
+
data: w(i).map((N) => {
|
|
3890
3917
|
let P = {};
|
|
3891
3918
|
return N && typeof N == "object" ? P = {
|
|
3892
3919
|
...N,
|
|
@@ -3914,7 +3941,7 @@ const Es = te({
|
|
|
3914
3941
|
width: e.xAxisLabelWidth,
|
|
3915
3942
|
overflow: e.xAxisLabelOverflow,
|
|
3916
3943
|
formatter(N) {
|
|
3917
|
-
return We(
|
|
3944
|
+
return We(L, N);
|
|
3918
3945
|
}
|
|
3919
3946
|
},
|
|
3920
3947
|
axisLine: {
|
|
@@ -3958,36 +3985,36 @@ const Es = te({
|
|
|
3958
3985
|
fontSize: c.value
|
|
3959
3986
|
}
|
|
3960
3987
|
},
|
|
3961
|
-
series:
|
|
3988
|
+
series: w(l)
|
|
3962
3989
|
};
|
|
3963
3990
|
}), p = () => {
|
|
3964
3991
|
n.value = !1;
|
|
3965
3992
|
}, { getGlobalModel: d, setGlobalModel: r } = V(we, {
|
|
3966
3993
|
// @ts-ignore
|
|
3967
3994
|
// eslint-disable-next-line no-void
|
|
3968
|
-
getGlobalModel: (
|
|
3995
|
+
getGlobalModel: (L) => {
|
|
3969
3996
|
},
|
|
3970
3997
|
// @ts-ignore
|
|
3971
3998
|
// eslint-disable-next-line no-void
|
|
3972
|
-
setGlobalModel: (
|
|
3999
|
+
setGlobalModel: (L, H) => {
|
|
3973
4000
|
}
|
|
3974
|
-
}), { pageMode:
|
|
4001
|
+
}), { pageMode: h } = V(Ae, {
|
|
3975
4002
|
pageMode: "normal"
|
|
3976
|
-
}),
|
|
4003
|
+
}), C = (L = [], H = !1) => {
|
|
3977
4004
|
let N;
|
|
3978
4005
|
if (e.dataFieldConfigType === "key") {
|
|
3979
|
-
const
|
|
3980
|
-
N = Qe(
|
|
4006
|
+
const b = H ? e.keyTypeDataFieldNames : null;
|
|
4007
|
+
N = Qe(L, b);
|
|
3981
4008
|
} else if (e.dataFieldConfigType === "value") {
|
|
3982
|
-
const
|
|
3983
|
-
N = st(
|
|
4009
|
+
const b = H ? e.valueTypeDataFieldNames : null;
|
|
4010
|
+
N = st(L, b);
|
|
3984
4011
|
}
|
|
3985
4012
|
i.value = N.dimensions;
|
|
3986
|
-
const P = N.dataset,
|
|
3987
|
-
for (let
|
|
3988
|
-
|
|
4013
|
+
const P = N.dataset, k = [], y = P.length;
|
|
4014
|
+
for (let b = 0; b < y; b++)
|
|
4015
|
+
k.push({
|
|
3989
4016
|
type: "line",
|
|
3990
|
-
...P[
|
|
4017
|
+
...P[b],
|
|
3991
4018
|
symbolSize: e.symbolSize,
|
|
3992
4019
|
smooth: e.smooth,
|
|
3993
4020
|
areaStyle: {
|
|
@@ -4010,86 +4037,86 @@ const Es = te({
|
|
|
4010
4037
|
width: e.lineStyleWidth
|
|
4011
4038
|
}
|
|
4012
4039
|
});
|
|
4013
|
-
l.value =
|
|
4014
|
-
}, v = (
|
|
4015
|
-
const
|
|
4016
|
-
i.value =
|
|
4017
|
-
const
|
|
4018
|
-
for (let
|
|
4019
|
-
|
|
4040
|
+
l.value = k;
|
|
4041
|
+
}, v = (L = [], H, N = !1) => {
|
|
4042
|
+
const k = Qe(L, N ? H : null);
|
|
4043
|
+
i.value = k.dimensions;
|
|
4044
|
+
const y = k.dataset, b = [], I = y.length;
|
|
4045
|
+
for (let R = 0; R < I; R++)
|
|
4046
|
+
b.push({
|
|
4020
4047
|
type: "line",
|
|
4021
|
-
...
|
|
4048
|
+
...y[R],
|
|
4022
4049
|
symbolSize: e.symbolSize,
|
|
4023
4050
|
smooth: e.smooth,
|
|
4024
4051
|
lineStyle: {
|
|
4025
4052
|
width: e.lineStyleWidth
|
|
4026
4053
|
}
|
|
4027
4054
|
});
|
|
4028
|
-
l.value =
|
|
4055
|
+
l.value = b;
|
|
4029
4056
|
};
|
|
4030
|
-
ee(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
4031
|
-
(e.dataType === "static" ||
|
|
4057
|
+
ee(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([L]) => {
|
|
4058
|
+
(e.dataType === "static" || w(h) === "design") && C(L);
|
|
4032
4059
|
}, {
|
|
4033
4060
|
immediate: !0,
|
|
4034
4061
|
deep: !0
|
|
4035
4062
|
});
|
|
4036
|
-
const
|
|
4037
|
-
var
|
|
4063
|
+
const S = T(!1), M = Oe(e), x = async () => {
|
|
4064
|
+
var L, H;
|
|
4038
4065
|
if (e.dataType === "request")
|
|
4039
4066
|
try {
|
|
4040
|
-
|
|
4041
|
-
const N = await
|
|
4042
|
-
|
|
4067
|
+
S.value = !0;
|
|
4068
|
+
const N = await M();
|
|
4069
|
+
C((H = (L = N == null ? void 0 : N.data) == null ? void 0 : L.data) == null ? void 0 : H.rows, !0);
|
|
4043
4070
|
} catch (N) {
|
|
4044
4071
|
console.error(N);
|
|
4045
4072
|
} finally {
|
|
4046
|
-
|
|
4073
|
+
S.value = !1;
|
|
4047
4074
|
}
|
|
4048
|
-
},
|
|
4075
|
+
}, f = be(e)("click", (L) => {
|
|
4049
4076
|
const H = d(e.id);
|
|
4050
|
-
r(e.id, { ...H, RECORD: e.tooltipShow ? g :
|
|
4051
|
-
}),
|
|
4052
|
-
t.value.chart.containPixel("grid", [
|
|
4077
|
+
r(e.id, { ...H, RECORD: e.tooltipShow ? g : L.data });
|
|
4078
|
+
}), A = (L) => {
|
|
4079
|
+
t.value.chart.containPixel("grid", [L.offsetX, L.offsetY]) && f();
|
|
4053
4080
|
};
|
|
4054
|
-
e.tooltipShow ? u.value["zr:click"] =
|
|
4055
|
-
const
|
|
4056
|
-
var
|
|
4081
|
+
e.tooltipShow ? u.value["zr:click"] = A : u.value.click = f;
|
|
4082
|
+
const _ = ht(e), F = async () => {
|
|
4083
|
+
var L;
|
|
4057
4084
|
try {
|
|
4058
|
-
|
|
4059
|
-
const H = await
|
|
4060
|
-
let
|
|
4061
|
-
N.length > 0 && (
|
|
4085
|
+
S.value = !0;
|
|
4086
|
+
const H = await _(), { columns: N = [], rows: P = [] } = ((L = H == null ? void 0 : H.data) == null ? void 0 : L.data) ?? {};
|
|
4087
|
+
let k;
|
|
4088
|
+
N.length > 0 && (k = {
|
|
4062
4089
|
name: N[0],
|
|
4063
|
-
types: N.slice(1).map((
|
|
4064
|
-
label:
|
|
4065
|
-
value:
|
|
4090
|
+
types: N.slice(1).map((y) => ({
|
|
4091
|
+
label: y,
|
|
4092
|
+
value: y
|
|
4066
4093
|
}))
|
|
4067
|
-
}), v(P,
|
|
4094
|
+
}), v(P, k, !0);
|
|
4068
4095
|
} catch (H) {
|
|
4069
4096
|
console.error(H);
|
|
4070
4097
|
} finally {
|
|
4071
|
-
|
|
4098
|
+
S.value = !1;
|
|
4072
4099
|
}
|
|
4073
4100
|
}, W = () => {
|
|
4074
4101
|
switch (e.dataType) {
|
|
4075
4102
|
case "indicator":
|
|
4076
|
-
|
|
4103
|
+
F();
|
|
4077
4104
|
break;
|
|
4078
4105
|
case "request":
|
|
4079
|
-
|
|
4106
|
+
x();
|
|
4080
4107
|
break;
|
|
4081
4108
|
}
|
|
4082
4109
|
};
|
|
4083
4110
|
Se(e, {
|
|
4084
4111
|
refreshData: W,
|
|
4085
4112
|
resetRecord: () => {
|
|
4086
|
-
const
|
|
4087
|
-
r(
|
|
4113
|
+
const L = e.id, H = d(L);
|
|
4114
|
+
r(L, { ...H, RECORD: "" });
|
|
4088
4115
|
},
|
|
4089
|
-
click:
|
|
4116
|
+
click: f
|
|
4090
4117
|
});
|
|
4091
4118
|
const { setRequest: B } = V(_e, {
|
|
4092
|
-
setRequest: (
|
|
4119
|
+
setRequest: (L) => {
|
|
4093
4120
|
}
|
|
4094
4121
|
});
|
|
4095
4122
|
return typeof B == "function" && B({
|
|
@@ -4101,8 +4128,8 @@ const Es = te({
|
|
|
4101
4128
|
}), {
|
|
4102
4129
|
option: m,
|
|
4103
4130
|
style: a,
|
|
4104
|
-
click:
|
|
4105
|
-
loading:
|
|
4131
|
+
click: f,
|
|
4132
|
+
loading: S,
|
|
4106
4133
|
onClose: p,
|
|
4107
4134
|
ecanModal: s,
|
|
4108
4135
|
eventObj: u,
|
|
@@ -4112,7 +4139,7 @@ const Es = te({
|
|
|
4112
4139
|
});
|
|
4113
4140
|
function Ds(e, o, t, n, a, l) {
|
|
4114
4141
|
const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal");
|
|
4115
|
-
return
|
|
4142
|
+
return O(), z("div", {
|
|
4116
4143
|
style: q(e.style)
|
|
4117
4144
|
}, [
|
|
4118
4145
|
U(s, { spinning: e.loading }, {
|
|
@@ -4262,11 +4289,11 @@ const $s = te({
|
|
|
4262
4289
|
AModal: Ge
|
|
4263
4290
|
},
|
|
4264
4291
|
setup(e, { expose: o }) {
|
|
4265
|
-
const t =
|
|
4266
|
-
const
|
|
4267
|
-
for (let
|
|
4292
|
+
const t = T(), n = T(!1), a = T(!1), l = T(null), i = T([]), s = ue(e), c = T([]), u = T(), g = j(() => n.value ? Ye : 12), m = j(() => {
|
|
4293
|
+
const y = w(c), b = y.length, I = [];
|
|
4294
|
+
for (let R = 0; R < b; R++) {
|
|
4268
4295
|
const Y = {
|
|
4269
|
-
...
|
|
4296
|
+
...y[R],
|
|
4270
4297
|
type: "bar",
|
|
4271
4298
|
barWidth: e.barWidth
|
|
4272
4299
|
};
|
|
@@ -4278,8 +4305,8 @@ const $s = te({
|
|
|
4278
4305
|
}, I.push(Y);
|
|
4279
4306
|
}
|
|
4280
4307
|
return I;
|
|
4281
|
-
}), p =
|
|
4282
|
-
const
|
|
4308
|
+
}), p = T([]), d = T(!1), r = j(() => {
|
|
4309
|
+
const y = e.yAxisLabelFormatter, b = e.xAxisLabelFormatter;
|
|
4283
4310
|
return {
|
|
4284
4311
|
toolbox: {
|
|
4285
4312
|
show: e.toolboxShow,
|
|
@@ -4294,8 +4321,8 @@ const $s = te({
|
|
|
4294
4321
|
icon: "path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",
|
|
4295
4322
|
onclick() {
|
|
4296
4323
|
a.value = !0;
|
|
4297
|
-
const I = t.value.chart.getOption(), { xAxis:
|
|
4298
|
-
|
|
4324
|
+
const I = t.value.chart.getOption(), { xAxis: R } = I || {};
|
|
4325
|
+
R && R.length && (i.value = R[0].data);
|
|
4299
4326
|
}
|
|
4300
4327
|
},
|
|
4301
4328
|
myDownload: {
|
|
@@ -4345,10 +4372,10 @@ const $s = te({
|
|
|
4345
4372
|
trigger: "axis",
|
|
4346
4373
|
show: e.tooltipShow,
|
|
4347
4374
|
formatter: (I) => {
|
|
4348
|
-
const
|
|
4375
|
+
const R = I.length;
|
|
4349
4376
|
let Y = "", ce = e.tooltipFormatter;
|
|
4350
4377
|
ce === "" && (ce = "{marker} {a} {c}");
|
|
4351
|
-
for (let ne = 0; ne <
|
|
4378
|
+
for (let ne = 0; ne < R; ne++) {
|
|
4352
4379
|
const { marker: ve, seriesName: fe, name: de, value: he, data: $e } = I[ne] || {};
|
|
4353
4380
|
ne === 0 && (Y += `${de}<br/>`), Y += ye(
|
|
4354
4381
|
ce,
|
|
@@ -4391,7 +4418,7 @@ const $s = te({
|
|
|
4391
4418
|
},
|
|
4392
4419
|
xAxis: {
|
|
4393
4420
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4394
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4421
|
+
data: e.isUseHorizontalAxis ? null : w(M),
|
|
4395
4422
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4396
4423
|
minInterval: e.xAxisMinInterval,
|
|
4397
4424
|
splitLine: {
|
|
@@ -4407,7 +4434,7 @@ const $s = te({
|
|
|
4407
4434
|
width: e.xAxisLabelWidth,
|
|
4408
4435
|
overflow: e.xAxisLabelOverflow,
|
|
4409
4436
|
formatter(I) {
|
|
4410
|
-
return We(
|
|
4437
|
+
return We(b, I);
|
|
4411
4438
|
}
|
|
4412
4439
|
},
|
|
4413
4440
|
axisLine: {
|
|
@@ -4421,7 +4448,7 @@ const $s = te({
|
|
|
4421
4448
|
},
|
|
4422
4449
|
yAxis: {
|
|
4423
4450
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4424
|
-
data: e.isUseHorizontalAxis ?
|
|
4451
|
+
data: e.isUseHorizontalAxis ? w(p) : null,
|
|
4425
4452
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4426
4453
|
minInterval: e.yAxisMinInterval,
|
|
4427
4454
|
splitLine: {
|
|
@@ -4437,7 +4464,7 @@ const $s = te({
|
|
|
4437
4464
|
width: e.yAxisLabelWidth,
|
|
4438
4465
|
overflow: e.yAxisLabelOverflow,
|
|
4439
4466
|
formatter(I) {
|
|
4440
|
-
return We(
|
|
4467
|
+
return We(y, I);
|
|
4441
4468
|
}
|
|
4442
4469
|
},
|
|
4443
4470
|
axisLine: {
|
|
@@ -4446,61 +4473,61 @@ const $s = te({
|
|
|
4446
4473
|
}
|
|
4447
4474
|
}
|
|
4448
4475
|
},
|
|
4449
|
-
series:
|
|
4476
|
+
series: w(m)
|
|
4450
4477
|
};
|
|
4451
|
-
}), { pageMode:
|
|
4478
|
+
}), { pageMode: h } = V(Ae, {
|
|
4452
4479
|
pageMode: "normal"
|
|
4453
|
-
}),
|
|
4480
|
+
}), C = () => {
|
|
4454
4481
|
n.value = !1;
|
|
4455
|
-
}, v = (
|
|
4482
|
+
}, v = (y = [], b = !1) => {
|
|
4456
4483
|
let I = {};
|
|
4457
4484
|
if (e.dataFieldConfigType === "key") {
|
|
4458
|
-
const
|
|
4459
|
-
I = Qe(
|
|
4485
|
+
const R = b ? e.keyTypeDataFieldNames : null;
|
|
4486
|
+
I = Qe(y, R);
|
|
4460
4487
|
} else if (e.dataFieldConfigType === "value") {
|
|
4461
|
-
const
|
|
4462
|
-
I = st(
|
|
4488
|
+
const R = b ? e.valueTypeDataFieldNames : null;
|
|
4489
|
+
I = st(y, R);
|
|
4463
4490
|
}
|
|
4464
4491
|
c.value = I.dataset, p.value = I.dimensions;
|
|
4465
|
-
},
|
|
4466
|
-
const Y = Qe(
|
|
4492
|
+
}, S = (y = [], b, I = !1) => {
|
|
4493
|
+
const Y = Qe(y, I ? b : null);
|
|
4467
4494
|
c.value = Y.dataset, p.value = Y.dimensions;
|
|
4468
|
-
},
|
|
4469
|
-
let
|
|
4470
|
-
return
|
|
4471
|
-
...
|
|
4495
|
+
}, M = j(() => w(p).map((y) => {
|
|
4496
|
+
let b = {};
|
|
4497
|
+
return y && typeof y == "object" ? b = {
|
|
4498
|
+
...y,
|
|
4472
4499
|
textStyle: {
|
|
4473
4500
|
fontSize: g.value
|
|
4474
4501
|
}
|
|
4475
|
-
} :
|
|
4476
|
-
value:
|
|
4502
|
+
} : b = {
|
|
4503
|
+
value: y,
|
|
4477
4504
|
textStyle: {
|
|
4478
4505
|
fontSize: g.value
|
|
4479
4506
|
}
|
|
4480
|
-
},
|
|
4507
|
+
}, b;
|
|
4481
4508
|
}));
|
|
4482
|
-
ee(() => e.data, (
|
|
4483
|
-
(e.dataType === "static" ||
|
|
4509
|
+
ee(() => e.data, (y) => {
|
|
4510
|
+
(e.dataType === "static" || w(h) === "design") && v(y);
|
|
4484
4511
|
}, {
|
|
4485
4512
|
immediate: !0,
|
|
4486
4513
|
deep: !0
|
|
4487
4514
|
});
|
|
4488
|
-
const
|
|
4489
|
-
var
|
|
4515
|
+
const x = Oe(e), D = async () => {
|
|
4516
|
+
var y, b;
|
|
4490
4517
|
try {
|
|
4491
4518
|
d.value = !0;
|
|
4492
|
-
const I = await
|
|
4493
|
-
v((
|
|
4519
|
+
const I = await x();
|
|
4520
|
+
v((b = (y = I == null ? void 0 : I.data) == null ? void 0 : y.data) == null ? void 0 : b.rows, !0);
|
|
4494
4521
|
} catch (I) {
|
|
4495
4522
|
console.error(I);
|
|
4496
4523
|
} finally {
|
|
4497
4524
|
d.value = !1;
|
|
4498
4525
|
}
|
|
4499
|
-
},
|
|
4500
|
-
var
|
|
4526
|
+
}, f = ht(e), A = async () => {
|
|
4527
|
+
var y;
|
|
4501
4528
|
try {
|
|
4502
4529
|
d.value = !0;
|
|
4503
|
-
const
|
|
4530
|
+
const b = await f(), { columns: I = [], rows: R = [] } = ((y = b == null ? void 0 : b.data) == null ? void 0 : y.data) ?? {};
|
|
4504
4531
|
let Y;
|
|
4505
4532
|
I.length > 0 && (Y = {
|
|
4506
4533
|
name: I[0],
|
|
@@ -4508,79 +4535,79 @@ const $s = te({
|
|
|
4508
4535
|
label: ce,
|
|
4509
4536
|
value: ce
|
|
4510
4537
|
}))
|
|
4511
|
-
}),
|
|
4512
|
-
} catch (
|
|
4513
|
-
console.error(
|
|
4538
|
+
}), S(R, Y, !0);
|
|
4539
|
+
} catch (b) {
|
|
4540
|
+
console.error(b);
|
|
4514
4541
|
} finally {
|
|
4515
4542
|
d.value = !1;
|
|
4516
4543
|
}
|
|
4517
|
-
},
|
|
4544
|
+
}, _ = () => {
|
|
4518
4545
|
switch (e.dataType) {
|
|
4519
4546
|
case "indicator":
|
|
4520
|
-
|
|
4547
|
+
A();
|
|
4521
4548
|
break;
|
|
4522
4549
|
case "request":
|
|
4523
|
-
|
|
4550
|
+
D();
|
|
4524
4551
|
break;
|
|
4525
4552
|
}
|
|
4526
|
-
},
|
|
4553
|
+
}, F = (y, b) => !!w(i)[b.value].value.includes(y), W = async () => {
|
|
4527
4554
|
a.value = !1;
|
|
4528
|
-
const
|
|
4529
|
-
for (let
|
|
4530
|
-
await le(
|
|
4531
|
-
}, le = (
|
|
4555
|
+
const y = t.value.chart.getOption();
|
|
4556
|
+
for (let b = 0; b < 7; b++)
|
|
4557
|
+
await le(y, b);
|
|
4558
|
+
}, le = (y, b) => new Promise((I) => {
|
|
4532
4559
|
setTimeout(() => {
|
|
4533
|
-
const { series:
|
|
4534
|
-
|
|
4560
|
+
const { series: R, color: Y, xAxis: ce } = y, ne = t.value.chart, { splitArea: ve = {} } = ce[0] || {};
|
|
4561
|
+
R.forEach((fe, de) => {
|
|
4535
4562
|
const he = fe.data;
|
|
4536
4563
|
let $e = "";
|
|
4537
|
-
|
|
4564
|
+
b % 2 ? $e = Y[de] + "a8" : $e = Y[de], he[l.value].itemStyle = {
|
|
4538
4565
|
color: $e
|
|
4539
4566
|
};
|
|
4540
|
-
}),
|
|
4567
|
+
}), b % 2 ? (ve.show = !0, ve.areaStyle.color = w(i).map((fe, de) => de === l.value ? "#ff003b26" : "")) : ve.show = !1, ne.setOption({ series: R, xAxis: ce }), I();
|
|
4541
4568
|
}, 200);
|
|
4542
4569
|
});
|
|
4543
4570
|
o({
|
|
4544
|
-
refreshData:
|
|
4571
|
+
refreshData: _
|
|
4545
4572
|
});
|
|
4546
|
-
const B = be(e), { getGlobalModel:
|
|
4573
|
+
const B = be(e), { getGlobalModel: L, setGlobalModel: H } = V(we, {
|
|
4547
4574
|
// @ts-ignore
|
|
4548
4575
|
// eslint-disable-next-line no-void
|
|
4549
|
-
getGlobalModel: (
|
|
4576
|
+
getGlobalModel: (y) => {
|
|
4550
4577
|
},
|
|
4551
4578
|
// @ts-ignore
|
|
4552
4579
|
// eslint-disable-next-line no-void
|
|
4553
|
-
setGlobalModel: (
|
|
4580
|
+
setGlobalModel: (y, b) => {
|
|
4554
4581
|
}
|
|
4555
|
-
}), N = B("click", (
|
|
4556
|
-
const
|
|
4557
|
-
H(e.id, { ...
|
|
4582
|
+
}), N = B("click", (y) => {
|
|
4583
|
+
const b = L(e.id);
|
|
4584
|
+
H(e.id, { ...b, RECORD: y.data });
|
|
4558
4585
|
}), { setRequest: P } = V(_e, {
|
|
4559
|
-
setRequest: (
|
|
4586
|
+
setRequest: (y) => {
|
|
4560
4587
|
}
|
|
4561
4588
|
});
|
|
4562
4589
|
return typeof P == "function" && P({
|
|
4563
4590
|
id: e.id,
|
|
4564
|
-
requestFn:
|
|
4591
|
+
requestFn: _,
|
|
4565
4592
|
sortNum: e.requestSort
|
|
4566
4593
|
}), Se(e, {
|
|
4567
|
-
refreshData:
|
|
4594
|
+
refreshData: _,
|
|
4568
4595
|
click: N,
|
|
4569
4596
|
resetRecord: () => {
|
|
4570
|
-
const
|
|
4571
|
-
H(
|
|
4597
|
+
const y = e.id, b = L(y);
|
|
4598
|
+
H(y, { ...b, RECORD: "" });
|
|
4572
4599
|
}
|
|
4573
4600
|
}), {
|
|
4574
4601
|
option: r,
|
|
4575
4602
|
style: s,
|
|
4576
|
-
refreshData:
|
|
4603
|
+
refreshData: _,
|
|
4577
4604
|
click: N,
|
|
4578
4605
|
loading: d,
|
|
4579
|
-
onClose:
|
|
4606
|
+
onClose: C,
|
|
4580
4607
|
ecanModal: u,
|
|
4581
4608
|
echartRef: t,
|
|
4582
4609
|
handleLocationOk: W,
|
|
4583
|
-
onFilterOption:
|
|
4610
|
+
onFilterOption: F,
|
|
4584
4611
|
locationVisible: a,
|
|
4585
4612
|
locationValue: l,
|
|
4586
4613
|
locationNames: i
|
|
@@ -4590,7 +4617,7 @@ const $s = te({
|
|
|
4590
4617
|
const Ns = (e) => (_t("data-v-447bc52f"), e = e(), Tt(), e), Ps = { class: "location-wrap" }, Bs = /* @__PURE__ */ Ns(() => /* @__PURE__ */ X("div", { class: "location-text" }, "选择分类:", -1));
|
|
4591
4618
|
function Us(e, o, t, n, a, l) {
|
|
4592
4619
|
const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal"), u = Z("a-select-option"), g = Z("a-select"), m = Z("a-modal");
|
|
4593
|
-
return
|
|
4620
|
+
return O(), z("div", {
|
|
4594
4621
|
class: "ecan-bar",
|
|
4595
4622
|
style: q(e.style)
|
|
4596
4623
|
}, [
|
|
@@ -4647,7 +4674,7 @@ function Us(e, o, t, n, a, l) {
|
|
|
4647
4674
|
"filter-option": e.onFilterOption
|
|
4648
4675
|
}, {
|
|
4649
4676
|
default: K(() => [
|
|
4650
|
-
(
|
|
4677
|
+
(O(!0), z(De, null, Fe(e.locationNames, (p, d) => (O(), ze(u, {
|
|
4651
4678
|
key: d,
|
|
4652
4679
|
value: d
|
|
4653
4680
|
}, {
|
|
@@ -4746,8 +4773,8 @@ const Vs = te({
|
|
|
4746
4773
|
EcanModal: ot
|
|
4747
4774
|
},
|
|
4748
4775
|
setup(e) {
|
|
4749
|
-
const o =
|
|
4750
|
-
const
|
|
4776
|
+
const o = T(!1), t = ue(e), n = T([]), a = T(), l = j(() => o.value ? Ye : 12), i = j(() => {
|
|
4777
|
+
const x = e.xAxisLabelFormatter, D = e.yAxisLabelFormatter;
|
|
4751
4778
|
return {
|
|
4752
4779
|
toolbox: {
|
|
4753
4780
|
show: e.toolboxShow,
|
|
@@ -4769,8 +4796,8 @@ const Vs = te({
|
|
|
4769
4796
|
title: "放大",
|
|
4770
4797
|
icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
|
|
4771
4798
|
onclick() {
|
|
4772
|
-
var
|
|
4773
|
-
o.value = !0, (
|
|
4799
|
+
var f;
|
|
4800
|
+
o.value = !0, (f = a.value) == null || f.showModal();
|
|
4774
4801
|
}
|
|
4775
4802
|
},
|
|
4776
4803
|
myInfo: {
|
|
@@ -4814,8 +4841,8 @@ const Vs = te({
|
|
|
4814
4841
|
rotate: e.xAxisLabelRotate,
|
|
4815
4842
|
width: e.xAxisLabelWidth,
|
|
4816
4843
|
overflow: e.xAxisLabelOverflow,
|
|
4817
|
-
formatter(
|
|
4818
|
-
return We(
|
|
4844
|
+
formatter(f) {
|
|
4845
|
+
return We(x, f);
|
|
4819
4846
|
}
|
|
4820
4847
|
},
|
|
4821
4848
|
axisLine: {
|
|
@@ -4837,8 +4864,8 @@ const Vs = te({
|
|
|
4837
4864
|
axisLabel: {
|
|
4838
4865
|
fontSize: l.value,
|
|
4839
4866
|
color: e.yAxisLabelColor,
|
|
4840
|
-
formatter(
|
|
4841
|
-
return We(
|
|
4867
|
+
formatter(f) {
|
|
4868
|
+
return We(D, f);
|
|
4842
4869
|
}
|
|
4843
4870
|
},
|
|
4844
4871
|
axisLine: {
|
|
@@ -4851,17 +4878,17 @@ const Vs = te({
|
|
|
4851
4878
|
tooltip: {
|
|
4852
4879
|
show: e.tooltipShow,
|
|
4853
4880
|
trigger: e.tooltipTrigger,
|
|
4854
|
-
formatter(
|
|
4881
|
+
formatter(f) {
|
|
4855
4882
|
var B;
|
|
4856
|
-
const { marker:
|
|
4883
|
+
const { marker: A, seriesName: _ } = f, F = ((B = f == null ? void 0 : f.data) == null ? void 0 : B.record) ?? {}, { name: W, value: le } = F;
|
|
4857
4884
|
return ye(e.tooltipFormatter, {
|
|
4858
4885
|
textData: {
|
|
4859
|
-
marker:
|
|
4860
|
-
seriesName:
|
|
4861
|
-
a:
|
|
4886
|
+
marker: A,
|
|
4887
|
+
seriesName: _,
|
|
4888
|
+
a: _,
|
|
4862
4889
|
b: W,
|
|
4863
4890
|
c: le,
|
|
4864
|
-
...
|
|
4891
|
+
...F
|
|
4865
4892
|
}
|
|
4866
4893
|
});
|
|
4867
4894
|
},
|
|
@@ -4884,7 +4911,7 @@ const Vs = te({
|
|
|
4884
4911
|
},
|
|
4885
4912
|
series: [
|
|
4886
4913
|
{
|
|
4887
|
-
data:
|
|
4914
|
+
data: w(n),
|
|
4888
4915
|
type: "scatter",
|
|
4889
4916
|
symbolSize: e.symbolSize
|
|
4890
4917
|
}
|
|
@@ -4893,65 +4920,65 @@ const Vs = te({
|
|
|
4893
4920
|
}), { getGlobalModel: s, setGlobalModel: c } = V(we, {
|
|
4894
4921
|
// @ts-ignore
|
|
4895
4922
|
// eslint-disable-next-line no-void
|
|
4896
|
-
getGlobalModel: (
|
|
4923
|
+
getGlobalModel: (x) => {
|
|
4897
4924
|
},
|
|
4898
4925
|
// @ts-ignore
|
|
4899
4926
|
// eslint-disable-next-line no-void
|
|
4900
|
-
setGlobalModel: (
|
|
4927
|
+
setGlobalModel: (x, D) => {
|
|
4901
4928
|
}
|
|
4902
4929
|
}), { pageMode: u } = V(Ae, {
|
|
4903
4930
|
pageMode: "normal"
|
|
4904
|
-
}), g = (
|
|
4905
|
-
const { name:
|
|
4906
|
-
n.value =
|
|
4931
|
+
}), g = (x = [], D) => {
|
|
4932
|
+
const { name: f = "name", value: A = "value" } = D || {};
|
|
4933
|
+
n.value = x.map((_) => ({ value: [_[f], _[A]], record: _ }));
|
|
4907
4934
|
};
|
|
4908
|
-
ee(() => e.data, (
|
|
4909
|
-
(e.dataType === "static" ||
|
|
4935
|
+
ee(() => e.data, (x) => {
|
|
4936
|
+
(e.dataType === "static" || w(u) === "design") && g(x);
|
|
4910
4937
|
}, {
|
|
4911
4938
|
immediate: !0,
|
|
4912
4939
|
deep: !0
|
|
4913
4940
|
});
|
|
4914
|
-
const m =
|
|
4915
|
-
var
|
|
4941
|
+
const m = T(!1), p = Oe(e), d = async () => {
|
|
4942
|
+
var x, D;
|
|
4916
4943
|
if (e.dataType === "request") {
|
|
4917
4944
|
m.value = !0;
|
|
4918
4945
|
try {
|
|
4919
|
-
const
|
|
4920
|
-
g((
|
|
4921
|
-
} catch (
|
|
4922
|
-
console.error(
|
|
4946
|
+
const f = await p();
|
|
4947
|
+
g((D = (x = f == null ? void 0 : f.data) == null ? void 0 : x.data) == null ? void 0 : D.rows, e.dataFieldNames);
|
|
4948
|
+
} catch (f) {
|
|
4949
|
+
console.error(f);
|
|
4923
4950
|
} finally {
|
|
4924
4951
|
m.value = !1;
|
|
4925
4952
|
}
|
|
4926
4953
|
}
|
|
4927
4954
|
}, r = () => {
|
|
4928
4955
|
o.value = !1;
|
|
4929
|
-
},
|
|
4930
|
-
const
|
|
4931
|
-
c(
|
|
4956
|
+
}, C = be(e)("click", (x) => {
|
|
4957
|
+
const D = e.id, f = s(D);
|
|
4958
|
+
c(D, { ...f, RECORD: x == null ? void 0 : x.data });
|
|
4932
4959
|
});
|
|
4933
4960
|
Se(e, {
|
|
4934
4961
|
refreshData: () => {
|
|
4935
4962
|
d();
|
|
4936
4963
|
},
|
|
4937
|
-
click:
|
|
4964
|
+
click: C,
|
|
4938
4965
|
resetRecord: () => {
|
|
4939
|
-
const
|
|
4940
|
-
c(
|
|
4966
|
+
const x = e.id, D = s(x);
|
|
4967
|
+
c(x, { ...D, RECORD: "" });
|
|
4941
4968
|
}
|
|
4942
4969
|
});
|
|
4943
|
-
const { setRequest:
|
|
4944
|
-
setRequest: (
|
|
4970
|
+
const { setRequest: M } = V(_e, {
|
|
4971
|
+
setRequest: (x) => {
|
|
4945
4972
|
}
|
|
4946
4973
|
});
|
|
4947
|
-
return typeof
|
|
4974
|
+
return typeof M == "function" && M({
|
|
4948
4975
|
id: e.id,
|
|
4949
4976
|
requestFn: d,
|
|
4950
4977
|
sortNum: e.requestSort
|
|
4951
4978
|
}), {
|
|
4952
4979
|
option: i,
|
|
4953
4980
|
style: t,
|
|
4954
|
-
click:
|
|
4981
|
+
click: C,
|
|
4955
4982
|
loading: m,
|
|
4956
4983
|
onClose: r,
|
|
4957
4984
|
ecanModal: a
|
|
@@ -4960,7 +4987,7 @@ const Vs = te({
|
|
|
4960
4987
|
});
|
|
4961
4988
|
function Ws(e, o, t, n, a, l) {
|
|
4962
4989
|
const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal");
|
|
4963
|
-
return
|
|
4990
|
+
return O(), z("div", {
|
|
4964
4991
|
style: q(e.style)
|
|
4965
4992
|
}, [
|
|
4966
4993
|
U(s, { spinning: e.loading }, {
|
|
@@ -5017,7 +5044,7 @@ const Hs = /* @__PURE__ */ oe(Vs, [["render", Ws]]), Zs = ae(Hs), Mn = {
|
|
|
5017
5044
|
Echarts: He
|
|
5018
5045
|
},
|
|
5019
5046
|
setup(e) {
|
|
5020
|
-
const o = ue(e), t =
|
|
5047
|
+
const o = ue(e), t = T();
|
|
5021
5048
|
return ee(() => e.optionCode, (n) => {
|
|
5022
5049
|
try {
|
|
5023
5050
|
const a = eval;
|
|
@@ -5036,7 +5063,7 @@ const Hs = /* @__PURE__ */ oe(Vs, [["render", Ws]]), Zs = ae(Hs), Mn = {
|
|
|
5036
5063
|
});
|
|
5037
5064
|
function Ys(e, o, t, n, a, l) {
|
|
5038
5065
|
const i = Z("echarts");
|
|
5039
|
-
return
|
|
5066
|
+
return O(), z("div", {
|
|
5040
5067
|
style: q(e.style)
|
|
5041
5068
|
}, [
|
|
5042
5069
|
U(i, {
|
|
@@ -5180,7 +5207,7 @@ const er = te({
|
|
|
5180
5207
|
AModal: Ge
|
|
5181
5208
|
},
|
|
5182
5209
|
setup(e, { expose: o }) {
|
|
5183
|
-
const t =
|
|
5210
|
+
const t = T(), n = T(!1), a = T(!1), l = T(null), i = T([]), s = ue(e), c = T([]), u = T([]), g = T(), m = j(() => n.value ? Ye : 12), p = j(() => ({
|
|
5184
5211
|
title: {
|
|
5185
5212
|
text: e.titleText,
|
|
5186
5213
|
subtext: e.titleSubtext,
|
|
@@ -5199,8 +5226,8 @@ const er = te({
|
|
|
5199
5226
|
icon: "path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",
|
|
5200
5227
|
onclick() {
|
|
5201
5228
|
a.value = !0;
|
|
5202
|
-
const
|
|
5203
|
-
|
|
5229
|
+
const k = t.value.chart.getOption(), { xAxis: y } = k || {};
|
|
5230
|
+
y && y.length && (i.value = y[0].data);
|
|
5204
5231
|
}
|
|
5205
5232
|
},
|
|
5206
5233
|
myDownload: {
|
|
@@ -5216,8 +5243,8 @@ const er = te({
|
|
|
5216
5243
|
title: "放大",
|
|
5217
5244
|
icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
|
|
5218
5245
|
onclick() {
|
|
5219
|
-
var
|
|
5220
|
-
n.value = !0, (
|
|
5246
|
+
var k;
|
|
5247
|
+
n.value = !0, (k = g.value) == null || k.showModal();
|
|
5221
5248
|
}
|
|
5222
5249
|
},
|
|
5223
5250
|
myInfo: {
|
|
@@ -5254,14 +5281,14 @@ const er = te({
|
|
|
5254
5281
|
tooltip: {
|
|
5255
5282
|
trigger: "axis",
|
|
5256
5283
|
show: e.tooltipShow,
|
|
5257
|
-
formatter: (
|
|
5258
|
-
const
|
|
5259
|
-
let
|
|
5284
|
+
formatter: (k) => {
|
|
5285
|
+
const y = k.length;
|
|
5286
|
+
let b = "", I = e.tooltipFormatter;
|
|
5260
5287
|
I === "" && (I = "{marker} {a} {c}");
|
|
5261
|
-
const
|
|
5262
|
-
for (let Y = 0; Y <
|
|
5263
|
-
const ce =
|
|
5264
|
-
Y === 0 && (
|
|
5288
|
+
const R = e.seriesTypes;
|
|
5289
|
+
for (let Y = 0; Y < y; Y++) {
|
|
5290
|
+
const ce = R[Y], { tooltipFormatter: ne } = ce || {}, { marker: ve, seriesName: fe, name: de, value: he, data: $e } = k[Y] || {};
|
|
5291
|
+
Y === 0 && (b += `${de}<br/>`), b += ye(
|
|
5265
5292
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
5266
5293
|
ne || I,
|
|
5267
5294
|
{
|
|
@@ -5280,9 +5307,9 @@ const er = te({
|
|
|
5280
5307
|
useNewline: !0,
|
|
5281
5308
|
useSpace: !0
|
|
5282
5309
|
}
|
|
5283
|
-
),
|
|
5310
|
+
), b += "<br/>";
|
|
5284
5311
|
}
|
|
5285
|
-
return
|
|
5312
|
+
return b;
|
|
5286
5313
|
},
|
|
5287
5314
|
textStyle: {
|
|
5288
5315
|
color: e.tooltipTextStyleColor,
|
|
@@ -5292,19 +5319,19 @@ const er = te({
|
|
|
5292
5319
|
xAxis: {
|
|
5293
5320
|
minInterval: e.xAxisMinInterval,
|
|
5294
5321
|
type: "category",
|
|
5295
|
-
data:
|
|
5296
|
-
let
|
|
5297
|
-
return
|
|
5298
|
-
...
|
|
5322
|
+
data: w(u).map((k) => {
|
|
5323
|
+
let y = {};
|
|
5324
|
+
return k && typeof k == "object" ? y = {
|
|
5325
|
+
...k,
|
|
5299
5326
|
textStyle: {
|
|
5300
5327
|
fontSize: m.value
|
|
5301
5328
|
}
|
|
5302
|
-
} :
|
|
5303
|
-
value:
|
|
5329
|
+
} : y = {
|
|
5330
|
+
value: k,
|
|
5304
5331
|
textStyle: {
|
|
5305
5332
|
fontSize: m.value
|
|
5306
5333
|
}
|
|
5307
|
-
},
|
|
5334
|
+
}, y;
|
|
5308
5335
|
}),
|
|
5309
5336
|
splitLine: {
|
|
5310
5337
|
show: e.xAxisSplitLineShow,
|
|
@@ -5328,23 +5355,23 @@ const er = te({
|
|
|
5328
5355
|
show: e.xAxisTickShow
|
|
5329
5356
|
}
|
|
5330
5357
|
},
|
|
5331
|
-
yAxis:
|
|
5332
|
-
series:
|
|
5358
|
+
yAxis: w(v),
|
|
5359
|
+
series: w(c)
|
|
5333
5360
|
})), { pageMode: d } = V(Ae, {
|
|
5334
5361
|
pageMode: "normal"
|
|
5335
5362
|
}), r = () => {
|
|
5336
5363
|
n.value = !1;
|
|
5337
|
-
},
|
|
5338
|
-
let
|
|
5364
|
+
}, h = (k = [], y = !1) => {
|
|
5365
|
+
let b;
|
|
5339
5366
|
if (e.dataFieldConfigType === "key") {
|
|
5340
|
-
const ne =
|
|
5341
|
-
|
|
5367
|
+
const ne = y ? e.keyTypeDataFieldNames : null;
|
|
5368
|
+
b = Qe(k, ne);
|
|
5342
5369
|
} else if (e.dataFieldConfigType === "value") {
|
|
5343
|
-
const ne =
|
|
5344
|
-
|
|
5370
|
+
const ne = y ? e.valueTypeDataFieldNames : null;
|
|
5371
|
+
b = st(k, ne);
|
|
5345
5372
|
}
|
|
5346
|
-
u.value =
|
|
5347
|
-
const I =
|
|
5373
|
+
u.value = b.dimensions;
|
|
5374
|
+
const I = b.dataset, R = [], Y = I.length, ce = e.seriesTypes;
|
|
5348
5375
|
for (let ne = 0; ne < Y; ne++) {
|
|
5349
5376
|
const ve = ce[ne], { type: fe, axisIndex: de } = ve || {};
|
|
5350
5377
|
let he = {
|
|
@@ -5365,13 +5392,13 @@ const er = te({
|
|
|
5365
5392
|
}), fe === "bar" && (he = {
|
|
5366
5393
|
...he,
|
|
5367
5394
|
barWidth: e.barWidth
|
|
5368
|
-
}),
|
|
5395
|
+
}), R.push(he);
|
|
5369
5396
|
}
|
|
5370
|
-
c.value =
|
|
5371
|
-
},
|
|
5372
|
-
const
|
|
5373
|
-
u.value =
|
|
5374
|
-
const Y =
|
|
5397
|
+
c.value = R;
|
|
5398
|
+
}, C = (k = [], y, b = !1) => {
|
|
5399
|
+
const R = Qe(k, b ? y : null);
|
|
5400
|
+
u.value = R.dimensions;
|
|
5401
|
+
const Y = R.dataset, ce = [], ne = Y.length, ve = e.seriesTypes;
|
|
5375
5402
|
for (let fe = 0; fe < ne; fe++) {
|
|
5376
5403
|
const de = ve[fe];
|
|
5377
5404
|
ce.push({
|
|
@@ -5382,15 +5409,15 @@ const er = te({
|
|
|
5382
5409
|
}
|
|
5383
5410
|
c.value = ce;
|
|
5384
5411
|
};
|
|
5385
|
-
ee(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([
|
|
5386
|
-
(e.dataType === "static" ||
|
|
5412
|
+
ee(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([k]) => {
|
|
5413
|
+
(e.dataType === "static" || w(d) === "design") && h(k);
|
|
5387
5414
|
}, {
|
|
5388
5415
|
immediate: !0,
|
|
5389
5416
|
deep: !0
|
|
5390
5417
|
});
|
|
5391
5418
|
const v = j(() => {
|
|
5392
|
-
const
|
|
5393
|
-
return
|
|
5419
|
+
const k = e.yAxis;
|
|
5420
|
+
return k == null ? void 0 : k.map((y) => ({
|
|
5394
5421
|
type: "value",
|
|
5395
5422
|
minInterval: e.yAxisMinInterval,
|
|
5396
5423
|
splitLine: {
|
|
@@ -5402,8 +5429,8 @@ const er = te({
|
|
|
5402
5429
|
axisLabel: {
|
|
5403
5430
|
fontSize: m.value,
|
|
5404
5431
|
color: e.yAxisLabelColor,
|
|
5405
|
-
formatter(
|
|
5406
|
-
return We(
|
|
5432
|
+
formatter(b) {
|
|
5433
|
+
return We(y.axisLabelFormatter, b);
|
|
5407
5434
|
}
|
|
5408
5435
|
},
|
|
5409
5436
|
axisLine: {
|
|
@@ -5412,102 +5439,102 @@ const er = te({
|
|
|
5412
5439
|
}
|
|
5413
5440
|
}
|
|
5414
5441
|
}));
|
|
5415
|
-
}),
|
|
5416
|
-
var
|
|
5442
|
+
}), S = T(!1), M = Oe(e), x = async () => {
|
|
5443
|
+
var k, y;
|
|
5417
5444
|
if (e.dataType === "request")
|
|
5418
5445
|
try {
|
|
5419
|
-
|
|
5420
|
-
const
|
|
5421
|
-
|
|
5422
|
-
} catch (
|
|
5423
|
-
console.error(
|
|
5446
|
+
S.value = !0;
|
|
5447
|
+
const b = await M();
|
|
5448
|
+
h((y = (k = b == null ? void 0 : b.data) == null ? void 0 : k.data) == null ? void 0 : y.rows, !0);
|
|
5449
|
+
} catch (b) {
|
|
5450
|
+
console.error(b);
|
|
5424
5451
|
} finally {
|
|
5425
|
-
|
|
5452
|
+
S.value = !1;
|
|
5426
5453
|
}
|
|
5427
|
-
},
|
|
5428
|
-
var
|
|
5454
|
+
}, D = ht(e), f = async () => {
|
|
5455
|
+
var k;
|
|
5429
5456
|
try {
|
|
5430
|
-
|
|
5431
|
-
const
|
|
5432
|
-
let
|
|
5433
|
-
|
|
5434
|
-
name:
|
|
5435
|
-
types:
|
|
5457
|
+
S.value = !0;
|
|
5458
|
+
const y = await D(), { columns: b = [], rows: I = [] } = ((k = y == null ? void 0 : y.data) == null ? void 0 : k.data) ?? {};
|
|
5459
|
+
let R;
|
|
5460
|
+
b.length > 0 && (R = {
|
|
5461
|
+
name: b[0],
|
|
5462
|
+
types: b.slice(1).map((Y) => ({
|
|
5436
5463
|
label: Y,
|
|
5437
5464
|
value: Y
|
|
5438
5465
|
}))
|
|
5439
|
-
}),
|
|
5440
|
-
} catch (
|
|
5441
|
-
console.error(
|
|
5466
|
+
}), C(I, R, !0);
|
|
5467
|
+
} catch (y) {
|
|
5468
|
+
console.error(y);
|
|
5442
5469
|
} finally {
|
|
5443
|
-
|
|
5470
|
+
S.value = !1;
|
|
5444
5471
|
}
|
|
5445
|
-
},
|
|
5472
|
+
}, A = () => {
|
|
5446
5473
|
switch (e.dataType) {
|
|
5447
5474
|
case "indicator":
|
|
5448
|
-
|
|
5475
|
+
f();
|
|
5449
5476
|
break;
|
|
5450
5477
|
case "request":
|
|
5451
|
-
|
|
5478
|
+
x();
|
|
5452
5479
|
break;
|
|
5453
5480
|
}
|
|
5454
|
-
},
|
|
5481
|
+
}, _ = (k, y) => !!w(i)[y.value].value.includes(k), F = async () => {
|
|
5455
5482
|
a.value = !1;
|
|
5456
|
-
const
|
|
5457
|
-
for (let
|
|
5458
|
-
await W(
|
|
5459
|
-
}, W = (
|
|
5483
|
+
const k = t.value.chart.getOption();
|
|
5484
|
+
for (let y = 0; y < 7; y++)
|
|
5485
|
+
await W(k, y);
|
|
5486
|
+
}, W = (k, y) => new Promise((b) => {
|
|
5460
5487
|
setTimeout(() => {
|
|
5461
|
-
const { series: I, color:
|
|
5488
|
+
const { series: I, color: R, xAxis: Y } = k, ce = t.value.chart, { splitArea: ne = {} } = Y[0] || {};
|
|
5462
5489
|
I.forEach((ve, fe) => {
|
|
5463
5490
|
const de = ve.data;
|
|
5464
5491
|
let he = "";
|
|
5465
|
-
|
|
5492
|
+
y % 2 ? he = R[fe] + "a8" : he = R[fe], de[l.value].itemStyle = {
|
|
5466
5493
|
color: he
|
|
5467
5494
|
};
|
|
5468
|
-
}),
|
|
5495
|
+
}), y % 2 ? (ne.show = !0, ne.areaStyle.color = w(i).map((ve, fe) => fe === l.value ? "#ff003b26" : "")) : ne.show = !1, ce.setOption({ series: I, xAxis: Y }), b();
|
|
5469
5496
|
}, 200);
|
|
5470
5497
|
});
|
|
5471
5498
|
o({
|
|
5472
|
-
refreshData:
|
|
5499
|
+
refreshData: A
|
|
5473
5500
|
});
|
|
5474
|
-
const le = be(e), { getGlobalModel: B, setGlobalModel:
|
|
5501
|
+
const le = be(e), { getGlobalModel: B, setGlobalModel: L } = V(we, {
|
|
5475
5502
|
// @ts-ignore
|
|
5476
5503
|
// eslint-disable-next-line no-void
|
|
5477
|
-
getGlobalModel: (
|
|
5504
|
+
getGlobalModel: (k) => {
|
|
5478
5505
|
},
|
|
5479
5506
|
// @ts-ignore
|
|
5480
5507
|
// eslint-disable-next-line no-void
|
|
5481
|
-
setGlobalModel: (
|
|
5508
|
+
setGlobalModel: (k, y) => {
|
|
5482
5509
|
}
|
|
5483
|
-
}), H = le("click", (
|
|
5484
|
-
const
|
|
5485
|
-
|
|
5510
|
+
}), H = le("click", (k) => {
|
|
5511
|
+
const y = B(e.id);
|
|
5512
|
+
L(e.id, { ...y, RECORD: k == null ? void 0 : k.data });
|
|
5486
5513
|
}), { setRequest: N } = V(_e, {
|
|
5487
|
-
setRequest: (
|
|
5514
|
+
setRequest: (k) => {
|
|
5488
5515
|
}
|
|
5489
5516
|
});
|
|
5490
5517
|
return typeof N == "function" && N({
|
|
5491
5518
|
id: e.id,
|
|
5492
|
-
requestFn:
|
|
5519
|
+
requestFn: A,
|
|
5493
5520
|
sortNum: e.requestSort
|
|
5494
5521
|
}), Se(e, {
|
|
5495
5522
|
resetRecord: () => {
|
|
5496
|
-
const
|
|
5497
|
-
|
|
5523
|
+
const k = e.id, y = B(k);
|
|
5524
|
+
L(k, { ...y, RECORD: "" });
|
|
5498
5525
|
},
|
|
5499
|
-
refreshData:
|
|
5526
|
+
refreshData: A,
|
|
5500
5527
|
click: H
|
|
5501
5528
|
}), {
|
|
5502
5529
|
style: s,
|
|
5503
5530
|
option: p,
|
|
5504
5531
|
click: H,
|
|
5505
|
-
loading:
|
|
5532
|
+
loading: S,
|
|
5506
5533
|
onClose: r,
|
|
5507
5534
|
ecanModal: g,
|
|
5508
5535
|
echartRef: t,
|
|
5509
|
-
handleLocationOk:
|
|
5510
|
-
onFilterOption:
|
|
5536
|
+
handleLocationOk: F,
|
|
5537
|
+
onFilterOption: _,
|
|
5511
5538
|
locationVisible: a,
|
|
5512
5539
|
locationValue: l,
|
|
5513
5540
|
locationNames: i
|
|
@@ -5517,7 +5544,7 @@ const er = te({
|
|
|
5517
5544
|
const tr = (e) => (_t("data-v-b207f1d1"), e = e(), Tt(), e), or = { class: "location-wrap" }, nr = /* @__PURE__ */ tr(() => /* @__PURE__ */ X("div", { class: "location-text" }, "选择分类:", -1));
|
|
5518
5545
|
function ar(e, o, t, n, a, l) {
|
|
5519
5546
|
const i = Z("echarts"), s = Z("spin"), c = Z("ecan-modal"), u = Z("a-select-option"), g = Z("a-select"), m = Z("a-modal");
|
|
5520
|
-
return
|
|
5547
|
+
return O(), z("div", {
|
|
5521
5548
|
style: q(e.style)
|
|
5522
5549
|
}, [
|
|
5523
5550
|
U(s, { spinning: e.loading }, {
|
|
@@ -5574,7 +5601,7 @@ function ar(e, o, t, n, a, l) {
|
|
|
5574
5601
|
"filter-option": e.onFilterOption
|
|
5575
5602
|
}, {
|
|
5576
5603
|
default: K(() => [
|
|
5577
|
-
(
|
|
5604
|
+
(O(!0), z(De, null, Fe(e.locationNames, (p, d) => (O(), ze(u, {
|
|
5578
5605
|
key: d,
|
|
5579
5606
|
value: d
|
|
5580
5607
|
}, {
|
|
@@ -5630,7 +5657,7 @@ const lr = /* @__PURE__ */ oe(er, [["render", ar], ["__scopeId", "data-v-b207f1d
|
|
|
5630
5657
|
width: "100%",
|
|
5631
5658
|
height: "100%"
|
|
5632
5659
|
})), l = be(e)("click", () => {
|
|
5633
|
-
}), i =
|
|
5660
|
+
}), i = T([]);
|
|
5634
5661
|
ee(() => e.data, (c) => {
|
|
5635
5662
|
i.value = c;
|
|
5636
5663
|
}, {
|
|
@@ -5667,24 +5694,24 @@ const Re = (e) => (_t("data-v-1550b11b"), e = e(), Tt(), e), ur = /* @__PURE__ *
|
|
|
5667
5694
|
class: "left-title"
|
|
5668
5695
|
}, Ar = { class: "title" };
|
|
5669
5696
|
function _r(e, o, t, n, a, l) {
|
|
5670
|
-
return
|
|
5697
|
+
return O(), z("div", {
|
|
5671
5698
|
class: "ecan-border",
|
|
5672
5699
|
style: q(e.style),
|
|
5673
5700
|
onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
|
|
5674
5701
|
}, [
|
|
5675
|
-
e.mode === "no-title" ? (
|
|
5702
|
+
e.mode === "no-title" ? (O(), z("div", {
|
|
5676
5703
|
key: 0,
|
|
5677
5704
|
class: "no-title",
|
|
5678
5705
|
style: q(e.borderStyle)
|
|
5679
5706
|
}, [
|
|
5680
|
-
e.useBorderModify ? (
|
|
5707
|
+
e.useBorderModify ? (O(), z(De, { key: 0 }, [
|
|
5681
5708
|
ur,
|
|
5682
5709
|
fr,
|
|
5683
5710
|
mr,
|
|
5684
5711
|
hr
|
|
5685
5712
|
], 64)) : ke("", !0)
|
|
5686
5713
|
], 4)) : ke("", !0),
|
|
5687
|
-
e.mode === "top-title" ? (
|
|
5714
|
+
e.mode === "top-title" ? (O(), z("div", {
|
|
5688
5715
|
key: 1,
|
|
5689
5716
|
class: "top-title",
|
|
5690
5717
|
style: q(e.borderStyle)
|
|
@@ -5701,7 +5728,7 @@ function _r(e, o, t, n, a, l) {
|
|
|
5701
5728
|
wr,
|
|
5702
5729
|
xr
|
|
5703
5730
|
], 4)) : ke("", !0),
|
|
5704
|
-
e.mode === "left-title" ? (
|
|
5731
|
+
e.mode === "left-title" ? (O(), z("div", kr, [
|
|
5705
5732
|
X("div", Ar, [
|
|
5706
5733
|
X("span", null, Ce(e.title), 1)
|
|
5707
5734
|
])
|
|
@@ -5749,7 +5776,7 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
|
|
|
5749
5776
|
...$n
|
|
5750
5777
|
},
|
|
5751
5778
|
setup(e) {
|
|
5752
|
-
const o = ue(e), t =
|
|
5779
|
+
const o = ue(e), t = T(0);
|
|
5753
5780
|
ee(() => e.activeKey, (d) => {
|
|
5754
5781
|
t.value = d;
|
|
5755
5782
|
}, {
|
|
@@ -5760,18 +5787,18 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
|
|
|
5760
5787
|
});
|
|
5761
5788
|
let a = null;
|
|
5762
5789
|
const l = () => {
|
|
5763
|
-
const d = Array.isArray(
|
|
5790
|
+
const d = Array.isArray(w(i)) ? w(i).length - 1 : 0;
|
|
5764
5791
|
e.autoSwitch && d > 0 && (a = setInterval(() => {
|
|
5765
|
-
const r =
|
|
5766
|
-
r <= d ? t.value = r : t.value = 0, s.value =
|
|
5792
|
+
const r = w(t) + 1;
|
|
5793
|
+
r <= d ? t.value = r : t.value = 0, s.value = w(i)[w(t)], m();
|
|
5767
5794
|
}, e.autoSwitchInterval * 1e3));
|
|
5768
5795
|
};
|
|
5769
5796
|
Je(() => {
|
|
5770
|
-
|
|
5797
|
+
w(n) !== "design" && l();
|
|
5771
5798
|
}), Bt(() => {
|
|
5772
5799
|
clearInterval(a);
|
|
5773
5800
|
});
|
|
5774
|
-
const i =
|
|
5801
|
+
const i = T([]), s = T({});
|
|
5775
5802
|
ee(() => e.data, (d) => {
|
|
5776
5803
|
i.value = d, s.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
|
|
5777
5804
|
}, {
|
|
@@ -5793,7 +5820,7 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
|
|
|
5793
5820
|
emitRefreshPage: () => {
|
|
5794
5821
|
}
|
|
5795
5822
|
}), p = u("tabChange", (d, r) => {
|
|
5796
|
-
r !==
|
|
5823
|
+
r !== w(t) && (s.value = d, t.value = r, m());
|
|
5797
5824
|
});
|
|
5798
5825
|
return Se(e, {
|
|
5799
5826
|
tabChange: p
|
|
@@ -5809,7 +5836,7 @@ const Tr = /* @__PURE__ */ oe(rr, [["render", _r], ["__scopeId", "data-v-1550b11
|
|
|
5809
5836
|
});
|
|
5810
5837
|
const Or = ["onClick"];
|
|
5811
5838
|
function Er(e, o, t, n, a, l) {
|
|
5812
|
-
return
|
|
5839
|
+
return O(), z("div", {
|
|
5813
5840
|
class: "ecan-tabs",
|
|
5814
5841
|
style: q(e.style)
|
|
5815
5842
|
}, [
|
|
@@ -5822,7 +5849,7 @@ function Er(e, o, t, n, a, l) {
|
|
|
5822
5849
|
flexDirection: e.tabFlexDirection
|
|
5823
5850
|
})
|
|
5824
5851
|
}, [
|
|
5825
|
-
(
|
|
5852
|
+
(O(!0), z(De, null, Fe(e.myData, (i, s) => (O(), z("div", {
|
|
5826
5853
|
class: "tab",
|
|
5827
5854
|
style: q({
|
|
5828
5855
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
@@ -5871,7 +5898,7 @@ const Dr = /* @__PURE__ */ oe(Mr, [["render", Er], ["__scopeId", "data-v-a2045b9
|
|
|
5871
5898
|
onClick: () => {
|
|
5872
5899
|
if (!e.linkPage && !e.href)
|
|
5873
5900
|
return;
|
|
5874
|
-
const l = e.linkPage || "", i = Zo(
|
|
5901
|
+
const l = e.linkPage || "", i = Zo(w(n), l), s = e.href;
|
|
5875
5902
|
let c = s || i;
|
|
5876
5903
|
c = ye(c);
|
|
5877
5904
|
const u = e.target;
|
|
@@ -5885,12 +5912,12 @@ const Dr = /* @__PURE__ */ oe(Mr, [["render", Er], ["__scopeId", "data-v-a2045b9
|
|
|
5885
5912
|
});
|
|
5886
5913
|
const Rr = ["src"];
|
|
5887
5914
|
function $r(e, o, t, n, a, l) {
|
|
5888
|
-
return e.myImgUrl !== "" ? (
|
|
5915
|
+
return e.myImgUrl !== "" ? (O(), z("img", {
|
|
5889
5916
|
key: 0,
|
|
5890
5917
|
style: q(e.style),
|
|
5891
5918
|
src: e.myImgUrl,
|
|
5892
5919
|
onClick: o[0] || (o[0] = (...i) => e.onClick && e.onClick(...i))
|
|
5893
|
-
}, null, 12, Rr)) : (
|
|
5920
|
+
}, null, 12, Rr)) : (O(), z("div", {
|
|
5894
5921
|
key: 1,
|
|
5895
5922
|
class: "image-placeholder",
|
|
5896
5923
|
style: q(e.style)
|
|
@@ -5916,7 +5943,7 @@ const Nr = /* @__PURE__ */ oe(zr, [["render", $r], ["__scopeId", "data-v-ef7a7be
|
|
|
5916
5943
|
}), n = j(() => {
|
|
5917
5944
|
let a = ye(e.link);
|
|
5918
5945
|
if (e.linkType === "erd" && a != null) {
|
|
5919
|
-
let l =
|
|
5946
|
+
let l = w(t);
|
|
5920
5947
|
l[l.length - 1] === "/" ? l += "erdReport" : l += "/erdReport", a = `${jl || l}?_t=0&uid=${a}`;
|
|
5921
5948
|
}
|
|
5922
5949
|
return a;
|
|
@@ -5929,11 +5956,11 @@ const Nr = /* @__PURE__ */ oe(zr, [["render", $r], ["__scopeId", "data-v-ef7a7be
|
|
|
5929
5956
|
});
|
|
5930
5957
|
const Ur = ["src"];
|
|
5931
5958
|
function Gr(e, o, t, n, a, l) {
|
|
5932
|
-
return e.myLink ? (
|
|
5959
|
+
return e.myLink ? (O(), z("iframe", {
|
|
5933
5960
|
key: 0,
|
|
5934
5961
|
src: e.myLink,
|
|
5935
5962
|
style: q(e.style)
|
|
5936
|
-
}, null, 12, Ur)) : (
|
|
5963
|
+
}, null, 12, Ur)) : (O(), z("div", {
|
|
5937
5964
|
key: 1,
|
|
5938
5965
|
class: "iframe-placeholder",
|
|
5939
5966
|
style: q(e.style)
|
|
@@ -6036,10 +6063,10 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6036
6063
|
default:
|
|
6037
6064
|
return 55;
|
|
6038
6065
|
}
|
|
6039
|
-
}), a = j(() => e.scrollX), l = j(() => parseFloat(e.height) -
|
|
6066
|
+
}), a = j(() => e.scrollX), l = j(() => parseFloat(e.height) - w(n)), i = T([]), s = T([]), c = T([]), u = T([]), g = T(0), m = T(1), p = j(() => e.paginationPageSize), d = Kn([]), r = (E = []) => {
|
|
6040
6067
|
if (Array.isArray(E) && E.length > 0) {
|
|
6041
|
-
const
|
|
6042
|
-
for (let Q = 0; Q <
|
|
6068
|
+
const $ = E.length, J = e.columnsFixedNum;
|
|
6069
|
+
for (let Q = 0; Q < $; Q++) {
|
|
6043
6070
|
const G = E[Q];
|
|
6044
6071
|
Q < J ? G.fixed = "left" : G.fixed = !1;
|
|
6045
6072
|
const {
|
|
@@ -6069,10 +6096,10 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6069
6096
|
borderBottomColor: e.borderColor
|
|
6070
6097
|
},
|
|
6071
6098
|
class: {
|
|
6072
|
-
highlight:
|
|
6099
|
+
highlight: w(y) === Mt && e.clickHighlight
|
|
6073
6100
|
},
|
|
6074
6101
|
onClick: B("click", () => {
|
|
6075
|
-
const Xt = e.id, Zn =
|
|
6102
|
+
const Xt = e.id, Zn = L(Xt);
|
|
6076
6103
|
Ne = {
|
|
6077
6104
|
dataIndex: pe,
|
|
6078
6105
|
title: xe,
|
|
@@ -6082,7 +6109,7 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6082
6109
|
}), Array.isArray(G.children) && r(G.children);
|
|
6083
6110
|
}
|
|
6084
6111
|
}
|
|
6085
|
-
},
|
|
6112
|
+
}, h = (E = []) => (e.isUseSeq && E.unshift({
|
|
6086
6113
|
title: "序号",
|
|
6087
6114
|
dataIndex: "SEQ",
|
|
6088
6115
|
align: "center"
|
|
@@ -6100,19 +6127,19 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6100
6127
|
e.cellBackgroundColor,
|
|
6101
6128
|
e.borderColor
|
|
6102
6129
|
], () => {
|
|
6103
|
-
i.value =
|
|
6130
|
+
i.value = h(Et(e.columns));
|
|
6104
6131
|
}, {
|
|
6105
6132
|
immediate: !0,
|
|
6106
6133
|
deep: !0
|
|
6107
|
-
}), ee(() => [e.data, e.dataType], ([E,
|
|
6108
|
-
|
|
6134
|
+
}), ee(() => [e.data, e.dataType], ([E, $]) => {
|
|
6135
|
+
$ === "static" && (s.value = E);
|
|
6109
6136
|
}, {
|
|
6110
6137
|
immediate: !0
|
|
6111
6138
|
});
|
|
6112
|
-
const
|
|
6139
|
+
const C = T({}), v = (E) => {
|
|
6113
6140
|
if (Array.isArray(E)) {
|
|
6114
|
-
const
|
|
6115
|
-
for (let se = 0; se <
|
|
6141
|
+
const $ = E.length, J = d, Q = J.length, G = {};
|
|
6142
|
+
for (let se = 0; se < $; se++) {
|
|
6116
6143
|
const pe = E[se];
|
|
6117
6144
|
for (let xe = 0; xe < Q; xe++) {
|
|
6118
6145
|
const ge = J[xe];
|
|
@@ -6130,28 +6157,28 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6130
6157
|
const pe = G[se], xe = Array.from(pe);
|
|
6131
6158
|
ie[se] = xe.map((ge) => ({ label: ge, value: ge }));
|
|
6132
6159
|
}
|
|
6133
|
-
|
|
6160
|
+
C.value = ie;
|
|
6134
6161
|
}
|
|
6135
6162
|
};
|
|
6136
6163
|
ee(() => [e.isReverse, i.value, s.value], () => {
|
|
6137
|
-
const E =
|
|
6138
|
-
if (v(
|
|
6139
|
-
const { columns: J, dataSource: Q } =
|
|
6164
|
+
const E = w(i), $ = w(s);
|
|
6165
|
+
if (v($), e.isReverse) {
|
|
6166
|
+
const { columns: J, dataSource: Q } = S(Et(E), Et($));
|
|
6140
6167
|
c.value = J, u.value = Q;
|
|
6141
6168
|
} else
|
|
6142
|
-
c.value = E, u.value =
|
|
6169
|
+
c.value = E, u.value = $;
|
|
6143
6170
|
}, {
|
|
6144
6171
|
immediate: !0
|
|
6145
6172
|
});
|
|
6146
|
-
const
|
|
6173
|
+
const S = (E, $) => {
|
|
6147
6174
|
const J = E[0], Q = [{
|
|
6148
6175
|
title: J.title,
|
|
6149
6176
|
dataIndex: "col0",
|
|
6150
6177
|
key: "col0",
|
|
6151
6178
|
align: "center"
|
|
6152
6179
|
}];
|
|
6153
|
-
for (let ie = 0; ie <
|
|
6154
|
-
const se =
|
|
6180
|
+
for (let ie = 0; ie < $.length; ie++) {
|
|
6181
|
+
const se = $[ie], pe = "col" + (ie + 1);
|
|
6155
6182
|
Q.push({
|
|
6156
6183
|
title: se[J.dataIndex],
|
|
6157
6184
|
dataIndex: pe,
|
|
@@ -6162,8 +6189,8 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6162
6189
|
const G = [];
|
|
6163
6190
|
for (let ie = 1; ie < E.length; ie++) {
|
|
6164
6191
|
const se = E[ie], pe = { col0: se.title };
|
|
6165
|
-
for (let xe = 0; xe <
|
|
6166
|
-
const ge =
|
|
6192
|
+
for (let xe = 0; xe < $.length; xe++) {
|
|
6193
|
+
const ge = $[xe];
|
|
6167
6194
|
pe[`col${xe + 1}`] = ge[se.dataIndex];
|
|
6168
6195
|
}
|
|
6169
6196
|
G.push(pe);
|
|
@@ -6172,49 +6199,49 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6172
6199
|
columns: Q,
|
|
6173
6200
|
dataSource: G
|
|
6174
6201
|
};
|
|
6175
|
-
},
|
|
6202
|
+
}, M = T(""), x = Oe(e), D = T(!1), f = async (E = !0, $ = {}) => {
|
|
6176
6203
|
var J;
|
|
6177
6204
|
try {
|
|
6178
|
-
E && (
|
|
6179
|
-
pageNum:
|
|
6180
|
-
pageSize:
|
|
6205
|
+
E && (D.value = !0), w(M) && ($.orderCondition = w(M)), e.paginationShow && ($ = {
|
|
6206
|
+
pageNum: w(m),
|
|
6207
|
+
pageSize: w(p),
|
|
6181
6208
|
layer: "1",
|
|
6182
|
-
|
|
6209
|
+
...$
|
|
6183
6210
|
});
|
|
6184
|
-
const Q = await
|
|
6211
|
+
const Q = await x($), { rows: G = [], total: ie = 0 } = ((J = Q == null ? void 0 : Q.data) == null ? void 0 : J.data) || {};
|
|
6185
6212
|
g.value = ie, Array.isArray(G) && (s.value = G);
|
|
6186
6213
|
} catch (Q) {
|
|
6187
6214
|
console.error(Q);
|
|
6188
6215
|
} finally {
|
|
6189
|
-
|
|
6216
|
+
D.value = !1;
|
|
6190
6217
|
}
|
|
6191
|
-
},
|
|
6218
|
+
}, A = ({ current: E }, $, J) => {
|
|
6192
6219
|
if (m.value = E, J && Object.keys(J).length > 0) {
|
|
6193
6220
|
const { field: Q, order: G } = J, se = {
|
|
6194
6221
|
ascend: "asc",
|
|
6195
6222
|
descend: "desc"
|
|
6196
6223
|
}[G];
|
|
6197
|
-
Q != null && se != null && (
|
|
6224
|
+
Q != null && se != null && (M.value = Q + " " + se, m.value = 1);
|
|
6198
6225
|
}
|
|
6199
6226
|
I(!1);
|
|
6200
|
-
},
|
|
6201
|
-
const E = e.simple,
|
|
6227
|
+
}, _ = j(() => {
|
|
6228
|
+
const E = e.simple, $ = [e.paginationPosition];
|
|
6202
6229
|
return e.paginationShow && {
|
|
6203
6230
|
simple: E,
|
|
6204
|
-
position:
|
|
6205
|
-
total:
|
|
6206
|
-
current:
|
|
6207
|
-
pageSize:
|
|
6231
|
+
position: $,
|
|
6232
|
+
total: w(g),
|
|
6233
|
+
current: w(m),
|
|
6234
|
+
pageSize: w(p),
|
|
6208
6235
|
showSizeChanger: !1
|
|
6209
6236
|
};
|
|
6210
|
-
}),
|
|
6237
|
+
}), F = (E) => +E == 1 ? "是" : +E == 0 ? "否" : E, W = (E, $) => $ == null || $ === "" ? E : {
|
|
6211
6238
|
money: Qt,
|
|
6212
6239
|
percentage: wt,
|
|
6213
6240
|
contrast: wt,
|
|
6214
|
-
boolean:
|
|
6215
|
-
}[
|
|
6241
|
+
boolean: F
|
|
6242
|
+
}[$](E) || "", le = (E, $) => {
|
|
6216
6243
|
const J = parseFloat(E + "");
|
|
6217
|
-
if (
|
|
6244
|
+
if ($ !== "contrast")
|
|
6218
6245
|
return "";
|
|
6219
6246
|
switch (!0) {
|
|
6220
6247
|
case J >= 0:
|
|
@@ -6222,67 +6249,67 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6222
6249
|
case J < 0:
|
|
6223
6250
|
return "goDown";
|
|
6224
6251
|
}
|
|
6225
|
-
}, B = be(e), { getGlobalModel:
|
|
6252
|
+
}, B = be(e), { getGlobalModel: L, setGlobalModel: H } = V(we, {
|
|
6226
6253
|
// @ts-ignore
|
|
6227
6254
|
// eslint-disable-next-line no-void
|
|
6228
6255
|
getGlobalModel: (E) => {
|
|
6229
6256
|
},
|
|
6230
6257
|
// @ts-ignore
|
|
6231
6258
|
// eslint-disable-next-line no-void
|
|
6232
|
-
setGlobalModel: (E,
|
|
6259
|
+
setGlobalModel: (E, $) => {
|
|
6233
6260
|
}
|
|
6234
|
-
}), N = (E = [],
|
|
6261
|
+
}), N = (E = [], $ = []) => {
|
|
6235
6262
|
const J = E.map((Q) => ({ title: Q, dataIndex: Q, key: Q }));
|
|
6236
|
-
i.value =
|
|
6237
|
-
}, P = ht(e),
|
|
6238
|
-
var E,
|
|
6263
|
+
i.value = h(J), s.value = $;
|
|
6264
|
+
}, P = ht(e), k = async () => {
|
|
6265
|
+
var E, $, J, Q;
|
|
6239
6266
|
try {
|
|
6240
|
-
|
|
6267
|
+
D.value = !0;
|
|
6241
6268
|
const G = await P();
|
|
6242
|
-
N((
|
|
6269
|
+
N(($ = (E = G == null ? void 0 : G.data) == null ? void 0 : E.data) == null ? void 0 : $.columns, (Q = (J = G == null ? void 0 : G.data) == null ? void 0 : J.data) == null ? void 0 : Q.rows);
|
|
6243
6270
|
} catch (G) {
|
|
6244
6271
|
console.error(G);
|
|
6245
6272
|
} finally {
|
|
6246
|
-
|
|
6273
|
+
D.value = !1;
|
|
6247
6274
|
}
|
|
6248
|
-
},
|
|
6275
|
+
}, y = T(-1), b = (E, $) => ({
|
|
6249
6276
|
onClick: B("rowClick", () => {
|
|
6250
|
-
const J = e.id, Q =
|
|
6251
|
-
H(J, { ...Q, RECORD: E }),
|
|
6277
|
+
const J = e.id, Q = L(J);
|
|
6278
|
+
H(J, { ...Q, RECORD: E }), y.value = $;
|
|
6252
6279
|
})
|
|
6253
6280
|
}), I = (E = !0) => {
|
|
6254
6281
|
switch (e.dataType) {
|
|
6255
6282
|
case "request":
|
|
6256
|
-
|
|
6283
|
+
f(E);
|
|
6257
6284
|
break;
|
|
6258
6285
|
case "indicator":
|
|
6259
|
-
|
|
6286
|
+
k();
|
|
6260
6287
|
break;
|
|
6261
6288
|
}
|
|
6262
|
-
},
|
|
6263
|
-
const E = e.id,
|
|
6264
|
-
H(E, {
|
|
6289
|
+
}, R = () => {
|
|
6290
|
+
const E = e.id, $ = L(E);
|
|
6291
|
+
H(E, { ...$, RECORD: "" });
|
|
6265
6292
|
}, Y = j(() => {
|
|
6266
|
-
const E =
|
|
6293
|
+
const E = w(c), $ = [];
|
|
6267
6294
|
let J = 0;
|
|
6268
6295
|
for (let G = 0; G < E.length; G++) {
|
|
6269
6296
|
const ie = E[G], { isCalcTotal: se } = ie;
|
|
6270
|
-
e.isUseSeq && G === 0 ?
|
|
6297
|
+
e.isUseSeq && G === 0 ? $.push({
|
|
6271
6298
|
...ie,
|
|
6272
6299
|
total: "小计"
|
|
6273
|
-
}) : se ? (
|
|
6300
|
+
}) : se ? ($.push({
|
|
6274
6301
|
...ie,
|
|
6275
6302
|
index: G,
|
|
6276
6303
|
total: 0
|
|
6277
|
-
}), J++) :
|
|
6304
|
+
}), J++) : $.push({
|
|
6278
6305
|
...ie
|
|
6279
6306
|
});
|
|
6280
6307
|
}
|
|
6281
6308
|
if (J === 0)
|
|
6282
6309
|
return [];
|
|
6283
|
-
const Q =
|
|
6284
|
-
for (let G = 0; G <
|
|
6285
|
-
const ie =
|
|
6310
|
+
const Q = w(u);
|
|
6311
|
+
for (let G = 0; G < $.length; G++) {
|
|
6312
|
+
const ie = $[G];
|
|
6286
6313
|
let se = 0;
|
|
6287
6314
|
const { isCalcTotal: pe, dataIndex: xe } = ie;
|
|
6288
6315
|
if (pe === !0) {
|
|
@@ -6293,7 +6320,7 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6293
6320
|
ie.total = se;
|
|
6294
6321
|
}
|
|
6295
6322
|
}
|
|
6296
|
-
return
|
|
6323
|
+
return $;
|
|
6297
6324
|
}), { setRequest: ce } = V(_e, {
|
|
6298
6325
|
setRequest: (E) => {
|
|
6299
6326
|
}
|
|
@@ -6305,27 +6332,27 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6305
6332
|
}), o({
|
|
6306
6333
|
refreshData: I
|
|
6307
6334
|
});
|
|
6308
|
-
const ne = (E = "",
|
|
6335
|
+
const ne = (E = "", $) => ye(E, $), ve = (E) => {
|
|
6309
6336
|
if (E !== "event")
|
|
6310
6337
|
return {
|
|
6311
6338
|
self: "_self",
|
|
6312
6339
|
blank: "_blank"
|
|
6313
6340
|
}[E];
|
|
6314
|
-
}, fe = (E,
|
|
6341
|
+
}, fe = (E, $ = "") => {
|
|
6315
6342
|
E === "event" && window.parent.postMessage({
|
|
6316
6343
|
type: "openPage",
|
|
6317
|
-
url:
|
|
6344
|
+
url: $
|
|
6318
6345
|
}, "*");
|
|
6319
|
-
}, de = (E,
|
|
6320
|
-
E(
|
|
6321
|
-
}, he = (E,
|
|
6322
|
-
E({ confirm: !0 }),
|
|
6346
|
+
}, de = (E, $) => {
|
|
6347
|
+
E($.filterCheckboxGroupValue);
|
|
6348
|
+
}, he = (E, $) => {
|
|
6349
|
+
E({ confirm: !0 }), $.filterOptionsInputValue = "", $.filterCheckboxGroupValue = [];
|
|
6323
6350
|
}, $e = () => {
|
|
6324
6351
|
}, Wn = (E) => {
|
|
6325
|
-
const
|
|
6326
|
-
if (typeof
|
|
6327
|
-
let J = C
|
|
6328
|
-
const Q =
|
|
6352
|
+
const $ = E.dataIndex;
|
|
6353
|
+
if (typeof $ == "string") {
|
|
6354
|
+
let J = w(C)[$];
|
|
6355
|
+
const Q = w(E.filterOptionsInputValue).trim();
|
|
6329
6356
|
return Array.isArray(J) ? (J = J.filter((G) => typeof G.label == "string" ? G.label.toLowerCase().includes(Q.toLowerCase()) : !0), J) : [];
|
|
6330
6357
|
}
|
|
6331
6358
|
return [];
|
|
@@ -6337,44 +6364,44 @@ const qr = /* @__PURE__ */ oe(Br, [["render", Gr], ["__scopeId", "data-v-19bc100
|
|
|
6337
6364
|
content: "正在导出...",
|
|
6338
6365
|
duration: 0
|
|
6339
6366
|
});
|
|
6340
|
-
let
|
|
6367
|
+
let $ = [];
|
|
6341
6368
|
if (e.dataType === "static")
|
|
6342
|
-
|
|
6369
|
+
$ = e.data;
|
|
6343
6370
|
else if (e.dataType === "request") {
|
|
6344
6371
|
const Le = { layer: "1" };
|
|
6345
|
-
|
|
6346
|
-
const Ne = await
|
|
6347
|
-
|
|
6372
|
+
w(M) && (Le.orderCondition = w(M));
|
|
6373
|
+
const Ne = await x(Le);
|
|
6374
|
+
$ = ((Be = (ge = Ne == null ? void 0 : Ne.data) == null ? void 0 : ge.data) == null ? void 0 : Be.rows) || {};
|
|
6348
6375
|
}
|
|
6349
|
-
const J =
|
|
6376
|
+
const J = w(c), Q = [], G = [];
|
|
6350
6377
|
J == null || J.forEach((Le) => {
|
|
6351
6378
|
Q.push(Le.dataIndex), G.push(Le.title);
|
|
6352
6379
|
});
|
|
6353
|
-
const ie =
|
|
6380
|
+
const ie = $.map((Le) => Mo(Le, Q)), se = yt.book_new(), pe = yt.aoa_to_sheet([G]), xe = yt.sheet_add_json(pe, ie, { skipHeader: !0, origin: "A2" });
|
|
6354
6381
|
yt.book_append_sheet(se, xe, "sheet"), ka(se, "表格数据.xlsx"), Ze.success({ key: E, content: "导出成功" });
|
|
6355
|
-
}, Hn = (E,
|
|
6382
|
+
}, Hn = (E, $ = 2) => {
|
|
6356
6383
|
const J = +E * 100;
|
|
6357
|
-
return isNaN(J) || J <= 0 ? 0 : J >= 100 ? 100 : J.toFixed(
|
|
6384
|
+
return isNaN(J) || J <= 0 ? 0 : J >= 100 ? 100 : J.toFixed($);
|
|
6358
6385
|
};
|
|
6359
6386
|
return Se(e, {
|
|
6360
|
-
resetRecord:
|
|
6387
|
+
resetRecord: R,
|
|
6361
6388
|
refreshData: I,
|
|
6362
6389
|
exportTableData: Kt
|
|
6363
6390
|
}), {
|
|
6364
6391
|
x: a,
|
|
6365
6392
|
y: l,
|
|
6366
6393
|
style: t,
|
|
6367
|
-
customRow:
|
|
6368
|
-
pagination:
|
|
6394
|
+
customRow: b,
|
|
6395
|
+
pagination: _,
|
|
6369
6396
|
formatFn: W,
|
|
6370
6397
|
contrastClass: le,
|
|
6371
|
-
tableChange:
|
|
6398
|
+
tableChange: A,
|
|
6372
6399
|
summaryList: Y,
|
|
6373
|
-
loading:
|
|
6400
|
+
loading: D,
|
|
6374
6401
|
onTouchHrefEvent: fe,
|
|
6375
6402
|
handleHref: ne,
|
|
6376
6403
|
handleHrefTarget: ve,
|
|
6377
|
-
useRowIndex:
|
|
6404
|
+
useRowIndex: y,
|
|
6378
6405
|
tableColumns: c,
|
|
6379
6406
|
tableDataSource: u,
|
|
6380
6407
|
useFilterOptions: Wn,
|
|
@@ -6398,13 +6425,13 @@ const Hr = {
|
|
|
6398
6425
|
};
|
|
6399
6426
|
function tc(e, o, t, n, a, l) {
|
|
6400
6427
|
const i = Z("a-button"), s = Z("a-input"), c = Z("a-checkbox-group"), u = Z("a-table-summary-cell"), g = Z("a-table-summary-row"), m = Z("a-table-summary"), p = Z("a-table"), d = Z("skeleton");
|
|
6401
|
-
return
|
|
6428
|
+
return O(), z("div", {
|
|
6402
6429
|
class: "ecan-table",
|
|
6403
6430
|
style: q(e.style)
|
|
6404
6431
|
}, [
|
|
6405
6432
|
U(d, { loading: e.loading }, {
|
|
6406
6433
|
default: K(() => [
|
|
6407
|
-
e.isUseExport ? (
|
|
6434
|
+
e.isUseExport ? (O(), z("div", Hr, [
|
|
6408
6435
|
U(i, {
|
|
6409
6436
|
class: "export-button",
|
|
6410
6437
|
onClick: e.exportTableData
|
|
@@ -6429,7 +6456,7 @@ function tc(e, o, t, n, a, l) {
|
|
|
6429
6456
|
pagination: e.pagination,
|
|
6430
6457
|
onChange: e.tableChange
|
|
6431
6458
|
}, {
|
|
6432
|
-
customFilterDropdown: K(({ column: r, selectedKeys:
|
|
6459
|
+
customFilterDropdown: K(({ column: r, selectedKeys: h, setSelectedKeys: C, confirm: v, clearFilters: S }) => [
|
|
6433
6460
|
X("div", {
|
|
6434
6461
|
class: "ecan-table-filter",
|
|
6435
6462
|
style: q({
|
|
@@ -6438,17 +6465,17 @@ function tc(e, o, t, n, a, l) {
|
|
|
6438
6465
|
}, [
|
|
6439
6466
|
U(s, {
|
|
6440
6467
|
value: r.filterOptionsInputValue,
|
|
6441
|
-
"onUpdate:value": (
|
|
6468
|
+
"onUpdate:value": (M) => r.filterOptionsInputValue = M,
|
|
6442
6469
|
placeholder: "请输入关键字",
|
|
6443
6470
|
class: "filter-input",
|
|
6444
6471
|
onChange: e.onSearchFilterOptions
|
|
6445
6472
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
6446
6473
|
U(c, {
|
|
6447
6474
|
value: r.filterCheckboxGroupValue,
|
|
6448
|
-
"onUpdate:value": (
|
|
6475
|
+
"onUpdate:value": (M) => r.filterCheckboxGroupValue = M,
|
|
6449
6476
|
class: "filter-checkbox",
|
|
6450
6477
|
options: e.useFilterOptions(r),
|
|
6451
|
-
onChange: (
|
|
6478
|
+
onChange: (M) => e.useSetSelectedKeys(C, r)
|
|
6452
6479
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6453
6480
|
X("div", null, [
|
|
6454
6481
|
U(i, {
|
|
@@ -6465,7 +6492,7 @@ function tc(e, o, t, n, a, l) {
|
|
|
6465
6492
|
U(i, {
|
|
6466
6493
|
size: "small",
|
|
6467
6494
|
style: { width: "90px" },
|
|
6468
|
-
onClick: _o((
|
|
6495
|
+
onClick: _o((M) => e.onResetFilter(S, r), ["stop"])
|
|
6469
6496
|
}, {
|
|
6470
6497
|
default: K(() => [
|
|
6471
6498
|
Yr
|
|
@@ -6475,55 +6502,55 @@ function tc(e, o, t, n, a, l) {
|
|
|
6475
6502
|
])
|
|
6476
6503
|
], 4)
|
|
6477
6504
|
]),
|
|
6478
|
-
bodyCell: K(({ column: r, index:
|
|
6479
|
-
r.dataIndex === "SEQ" ? (
|
|
6480
|
-
(
|
|
6505
|
+
bodyCell: K(({ column: r, index: h, text: C, record: v }) => [
|
|
6506
|
+
r.dataIndex === "SEQ" ? (O(), z("span", Qr, Ce(h + 1), 1)) : r.dataIndex === "ACTION" ? (O(), z("div", Kr, [
|
|
6507
|
+
(O(!0), z(De, null, Fe(e.actionList, (S, M) => (O(), z("div", {
|
|
6481
6508
|
class: "action",
|
|
6482
|
-
key:
|
|
6509
|
+
key: M
|
|
6483
6510
|
}, [
|
|
6484
6511
|
X("a", {
|
|
6485
|
-
href: e.handleHref(
|
|
6486
|
-
target: e.handleHrefTarget(
|
|
6512
|
+
href: e.handleHref(S.href, v),
|
|
6513
|
+
target: e.handleHrefTarget(S.target),
|
|
6487
6514
|
style: q({
|
|
6488
|
-
color:
|
|
6515
|
+
color: S.color,
|
|
6489
6516
|
fontSize: e.fontSize,
|
|
6490
6517
|
fontWeight: e.fontWeight
|
|
6491
6518
|
}),
|
|
6492
|
-
onClick: (
|
|
6493
|
-
}, Ce(
|
|
6519
|
+
onClick: (x) => e.onTouchHrefEvent(S.target, e.handleHref(S.href, v))
|
|
6520
|
+
}, Ce(S.title), 13, Xr)
|
|
6494
6521
|
]))), 128))
|
|
6495
|
-
])) : r.format === "progress" ? (
|
|
6522
|
+
])) : r.format === "progress" ? (O(), z("div", ec, [
|
|
6496
6523
|
X("div", {
|
|
6497
6524
|
class: "progress",
|
|
6498
6525
|
style: q({
|
|
6499
6526
|
background: r.progressColor || "#1890ff",
|
|
6500
6527
|
height: r.progressWidth || "18px",
|
|
6501
|
-
width: `${e.handleProgressText(
|
|
6528
|
+
width: `${e.handleProgressText(C, r.progressTextDecimalPlaces)}%`
|
|
6502
6529
|
})
|
|
6503
6530
|
}, null, 4),
|
|
6504
6531
|
X("div", {
|
|
6505
6532
|
class: "progress-text",
|
|
6506
6533
|
style: q({
|
|
6507
|
-
color: e.handleProgressText(
|
|
6534
|
+
color: e.handleProgressText(C) < 100 ? r.progressTextColor || "#333" : r.progressFinishedTextColor || "#fff"
|
|
6508
6535
|
})
|
|
6509
|
-
}, Ce(e.handleProgressText(
|
|
6510
|
-
])) : (
|
|
6536
|
+
}, Ce(e.handleProgressText(C, r.progressTextDecimalPlaces)) + "% ", 5)
|
|
6537
|
+
])) : (O(), z("div", {
|
|
6511
6538
|
key: 3,
|
|
6512
|
-
class: Ut([e.contrastClass(
|
|
6539
|
+
class: Ut([e.contrastClass(C, r.format)]),
|
|
6513
6540
|
style: q({
|
|
6514
6541
|
fontSize: e.fontSize,
|
|
6515
6542
|
fontWeight: e.fontWeight
|
|
6516
6543
|
})
|
|
6517
|
-
}, Ce(r.format != null ? e.formatFn(
|
|
6544
|
+
}, Ce(r.format != null ? e.formatFn(C, r.format) : C), 7))
|
|
6518
6545
|
]),
|
|
6519
6546
|
summary: K(() => [
|
|
6520
|
-
e.summaryList.length > 0 ? (
|
|
6547
|
+
e.summaryList.length > 0 ? (O(), ze(m, { key: 0 }, {
|
|
6521
6548
|
default: K(() => [
|
|
6522
6549
|
U(g, null, {
|
|
6523
6550
|
default: K(() => [
|
|
6524
|
-
(
|
|
6525
|
-
key:
|
|
6526
|
-
index:
|
|
6551
|
+
(O(!0), z(De, null, Fe(e.summaryList, (r, h) => (O(), ze(u, {
|
|
6552
|
+
key: h,
|
|
6553
|
+
index: h,
|
|
6527
6554
|
style: q({
|
|
6528
6555
|
backgroundColor: e.cellBackgroundColor,
|
|
6529
6556
|
textAlign: r.cellAlign || "center",
|
|
@@ -6615,8 +6642,8 @@ const ac = te({
|
|
|
6615
6642
|
...Vn
|
|
6616
6643
|
},
|
|
6617
6644
|
setup(e) {
|
|
6618
|
-
const o = ue(e, ["backgroundImage"]), t =
|
|
6619
|
-
image:
|
|
6645
|
+
const o = ue(e, ["backgroundImage"]), t = T(), n = j(() => Ve(e.geoBackgroundImage)), a = j(() => Ve(e.backgroundImage)), l = j(() => e.geoBackgroundImage ? {
|
|
6646
|
+
image: w(t),
|
|
6620
6647
|
repeat: e.geoBackgroundImageRepeat
|
|
6621
6648
|
} : e.geoItemStyleAreaColor), i = j(() => {
|
|
6622
6649
|
const g = e.symbolImage;
|
|
@@ -6636,7 +6663,7 @@ const ac = te({
|
|
|
6636
6663
|
style: {
|
|
6637
6664
|
width: parseFloat(e.width),
|
|
6638
6665
|
height: parseFloat(e.height),
|
|
6639
|
-
image:
|
|
6666
|
+
image: w(a)
|
|
6640
6667
|
},
|
|
6641
6668
|
top: "center"
|
|
6642
6669
|
}
|
|
@@ -6657,7 +6684,7 @@ const ac = te({
|
|
|
6657
6684
|
},
|
|
6658
6685
|
itemStyle: {
|
|
6659
6686
|
// 地图上板块属性
|
|
6660
|
-
areaColor:
|
|
6687
|
+
areaColor: w(l),
|
|
6661
6688
|
borderColor: e.geoItemStyleBorderColor,
|
|
6662
6689
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6663
6690
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6684,7 +6711,7 @@ const ac = te({
|
|
|
6684
6711
|
itemStyle: {
|
|
6685
6712
|
color: e.itemStyleColor
|
|
6686
6713
|
},
|
|
6687
|
-
symbol:
|
|
6714
|
+
symbol: w(i),
|
|
6688
6715
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6689
6716
|
label: {
|
|
6690
6717
|
show: e.labelShow,
|
|
@@ -6703,7 +6730,7 @@ const ac = te({
|
|
|
6703
6730
|
}
|
|
6704
6731
|
]
|
|
6705
6732
|
};
|
|
6706
|
-
}), c =
|
|
6733
|
+
}), c = T(!1), u = async () => {
|
|
6707
6734
|
var m;
|
|
6708
6735
|
const g = e.mapJson;
|
|
6709
6736
|
if (g != null && g.path) {
|
|
@@ -6729,11 +6756,11 @@ const ac = te({
|
|
|
6729
6756
|
const lc = ["src"];
|
|
6730
6757
|
function ic(e, o, t, n, a, l) {
|
|
6731
6758
|
const i = Z("echarts");
|
|
6732
|
-
return
|
|
6759
|
+
return O(), z("div", {
|
|
6733
6760
|
class: "ecan-map",
|
|
6734
6761
|
style: q(e.style)
|
|
6735
6762
|
}, [
|
|
6736
|
-
e.isLoadedData ? (
|
|
6763
|
+
e.isLoadedData ? (O(), ze(i, {
|
|
6737
6764
|
key: 0,
|
|
6738
6765
|
option: e.option,
|
|
6739
6766
|
"update-options": { notMerge: !0 },
|