@ecan-bi/datav 1.1.69 → 1.1.71
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 +775 -764
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/date-picker/DatePicker.vue.d.ts +1 -1
- package/types/control/date-picker/index.d.ts +1 -1
- package/types/control/range-picker/RangePicker.vue.d.ts +2 -0
- package/types/control/range-picker/index.d.ts +2 -0
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as N, computed as q, unref as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.71 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as b, watchEffect as uo, defineComponent as Q, shallowRef as vt, toRefs as On, onMounted as Ue, onUnmounted as ft, h as dt, nextTick as mt, createVNode as G, resolveComponent as H, openBlock as D, createElementBlock as $, createBlock as Re, renderSlot as gt, withCtx as Y, ref as M, normalizeStyle as U, createCommentVNode as ve, provide as ze, onBeforeUnmount as Tt, toDisplayString as be, Fragment as Me, renderList as De, createElementVNode as ee, normalizeClass as Lt, pushScopeId as fo, popScopeId as mo, createSlots as Rn, resolveDynamicComponent as Fn, mergeProps as zn, withModifiers as go, reactive as $n, createTextVNode as Ot, withDirectives as Nn, vShow as Pn } from "vue";
|
|
3
3
|
import { throttle as Bn, init as Un, use as qe, registerMap as Gn } from "echarts/core";
|
|
4
4
|
import { addListener as qn, removeListener as jn } from "resize-detector";
|
|
5
5
|
import { Spin as Wn, Skeleton as Vn, message as Be, Progress as Hn, Input as ho, DatePicker as Zn, Select as Jn, RangePicker as Yn, Button as yo, CheckboxGroup as bo, Modal as Ae, Table as Qn, TableSummary as Kn, TableSummaryRow as Xn, TableSummaryCell as ea } from "ant-design-vue";
|
|
@@ -72,7 +72,7 @@ const ma = {
|
|
|
72
72
|
}, ga = "ecLoadingOptions";
|
|
73
73
|
function ha(e, o, t) {
|
|
74
74
|
const n = N(ga, {}), a = q(() => ({
|
|
75
|
-
...
|
|
75
|
+
...b(n),
|
|
76
76
|
...t == null ? void 0 : t.value
|
|
77
77
|
}));
|
|
78
78
|
uo(() => {
|
|
@@ -114,28 +114,28 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
114
114
|
), s = N(
|
|
115
115
|
xa,
|
|
116
116
|
null
|
|
117
|
-
), { autoresize: f, manualUpdate:
|
|
117
|
+
), { autoresize: f, manualUpdate: C, loading: v, loadingOptions: x } = On(e), d = q(
|
|
118
118
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
119
|
-
), u = q(() => e.theme ||
|
|
120
|
-
() => e.initOptions ||
|
|
121
|
-
),
|
|
122
|
-
() => e.updateOptions ||
|
|
123
|
-
),
|
|
124
|
-
function w
|
|
119
|
+
), u = q(() => e.theme || b(i) || {}), y = q(
|
|
120
|
+
() => e.initOptions || b(r) || {}
|
|
121
|
+
), g = q(
|
|
122
|
+
() => e.updateOptions || b(s) || {}
|
|
123
|
+
), h = q(() => pa(o));
|
|
124
|
+
function p(w) {
|
|
125
125
|
if (a.value || !n.value)
|
|
126
126
|
return;
|
|
127
127
|
const c = a.value = Un(
|
|
128
128
|
n.value,
|
|
129
129
|
u.value,
|
|
130
|
-
|
|
130
|
+
y.value
|
|
131
131
|
);
|
|
132
132
|
e.group && (c.group = e.group);
|
|
133
|
-
let
|
|
134
|
-
|
|
133
|
+
let m = t;
|
|
134
|
+
m || (m = {}, Object.keys(o).filter((E) => E.indexOf("on") === 0 && E.length > 2).forEach((E) => {
|
|
135
135
|
const T = E.charAt(2).toLowerCase() + E.slice(3);
|
|
136
|
-
|
|
137
|
-
})), Object.keys(
|
|
138
|
-
const T =
|
|
136
|
+
m[T] = o[E];
|
|
137
|
+
})), Object.keys(m).forEach((E) => {
|
|
138
|
+
const T = m[E];
|
|
139
139
|
T && (E.indexOf("zr:") === 0 ? c.getZr().on(E.slice(3).toLowerCase(), T) : c.on(E.toLowerCase(), T));
|
|
140
140
|
});
|
|
141
141
|
function k() {
|
|
@@ -149,26 +149,26 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
function R() {
|
|
152
|
-
c.setOption(
|
|
152
|
+
c.setOption(w || d.value, g.value);
|
|
153
153
|
}
|
|
154
154
|
f.value ? mt(() => {
|
|
155
155
|
k(), R();
|
|
156
156
|
}) : R();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
e.manualUpdate && (l.value =
|
|
158
|
+
function _(w, c) {
|
|
159
|
+
e.manualUpdate && (l.value = w), a.value ? a.value.setOption(w, c || {}) : p(w);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function I() {
|
|
162
162
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
163
163
|
}
|
|
164
|
-
let
|
|
164
|
+
let S = null;
|
|
165
165
|
ne(
|
|
166
|
-
|
|
167
|
-
(
|
|
168
|
-
typeof
|
|
166
|
+
C,
|
|
167
|
+
(w) => {
|
|
168
|
+
typeof S == "function" && (S(), S = null), w || (S = ne(
|
|
169
169
|
() => e.option,
|
|
170
170
|
(c) => {
|
|
171
|
-
c && (a.value ? a.value.setOption(c,
|
|
171
|
+
c && (a.value ? a.value.setOption(c, g.value) : p());
|
|
172
172
|
},
|
|
173
173
|
{ deep: !0 }
|
|
174
174
|
));
|
|
@@ -177,9 +177,9 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
177
177
|
immediate: !0
|
|
178
178
|
}
|
|
179
179
|
), ne(
|
|
180
|
-
[u,
|
|
180
|
+
[u, y],
|
|
181
181
|
() => {
|
|
182
|
-
|
|
182
|
+
I(), p();
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
deep: !0
|
|
@@ -187,15 +187,15 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
187
187
|
), uo(() => {
|
|
188
188
|
e.group && a.value && (a.value.group = e.group);
|
|
189
189
|
});
|
|
190
|
-
const
|
|
191
|
-
return ha(a,
|
|
192
|
-
e.option &&
|
|
193
|
-
}), ft(
|
|
190
|
+
const A = ua(a, p);
|
|
191
|
+
return ha(a, v, x), fa(a, f, n), Ue(() => {
|
|
192
|
+
e.option && p();
|
|
193
|
+
}), ft(I), {
|
|
194
194
|
chart: a,
|
|
195
195
|
root: n,
|
|
196
|
-
setOption:
|
|
197
|
-
nonEventAttrs:
|
|
198
|
-
...
|
|
196
|
+
setOption: _,
|
|
197
|
+
nonEventAttrs: h,
|
|
198
|
+
...A
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
render() {
|
|
@@ -266,8 +266,8 @@ function Ia(e, o, t) {
|
|
|
266
266
|
}
|
|
267
267
|
function Ma(e, o, t) {
|
|
268
268
|
e = xe(e, 360) * 6, o = xe(o, 100), t = xe(t, 100);
|
|
269
|
-
var n = Math.floor(e), a = e - n, l = t * (1 - o), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), s = n % 6, f = [t, i, l, l, r, t][s],
|
|
270
|
-
return { r: f * 255, g:
|
|
269
|
+
var n = Math.floor(e), a = e - n, l = t * (1 - o), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), s = n % 6, f = [t, i, l, l, r, t][s], C = [r, t, t, i, l, l][s], v = [l, l, r, t, t, i][s];
|
|
270
|
+
return { r: f * 255, g: C * 255, b: v * 255 };
|
|
271
271
|
}
|
|
272
272
|
function Ea(e, o, t, n) {
|
|
273
273
|
var a = [
|
|
@@ -576,8 +576,8 @@ function It(e) {
|
|
|
576
576
|
}));
|
|
577
577
|
t.push(f);
|
|
578
578
|
}
|
|
579
|
-
return o.theme === "dark" ? Na.map(function(
|
|
580
|
-
var
|
|
579
|
+
return o.theme === "dark" ? Na.map(function(C) {
|
|
580
|
+
var v = C.index, x = C.opacity, d = st(Pa(He(o.backgroundColor || "#141414"), He(t[v]), x * 100));
|
|
581
581
|
return d;
|
|
582
582
|
}) : t;
|
|
583
583
|
}
|
|
@@ -934,26 +934,26 @@ function ml(e, o) {
|
|
|
934
934
|
}
|
|
935
935
|
Io("#1890ff");
|
|
936
936
|
var Ve = function(o, t) {
|
|
937
|
-
var n, a = to({}, o, t.attrs), l = a.class, i = a.icon, r = a.spin, s = a.rotate, f = a.tabindex,
|
|
937
|
+
var n, a = to({}, o, t.attrs), l = a.class, i = a.icon, r = a.spin, s = a.rotate, f = a.tabindex, C = a.twoToneColor, v = a.onClick, x = fl(a, il), d = (n = {
|
|
938
938
|
anticon: !0
|
|
939
|
-
}, Et(n, "anticon-".concat(i.name), Boolean(i.name)), Et(n, l, l), n), u = r === "" || r || i.name === "loading" ? "anticon-spin" : "",
|
|
940
|
-
|
|
941
|
-
var
|
|
939
|
+
}, Et(n, "anticon-".concat(i.name), Boolean(i.name)), Et(n, l, l), n), u = r === "" || r || i.name === "loading" ? "anticon-spin" : "", y = f;
|
|
940
|
+
y === void 0 && v && (y = -1, x.tabindex = y);
|
|
941
|
+
var g = s ? {
|
|
942
942
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
943
943
|
transform: "rotate(".concat(s, "deg)")
|
|
944
|
-
} : void 0,
|
|
944
|
+
} : void 0, h = Lo(C), p = rl(h, 2), _ = p[0], I = p[1];
|
|
945
945
|
return G("span", to({
|
|
946
946
|
role: "img",
|
|
947
947
|
"aria-label": i.name
|
|
948
|
-
},
|
|
949
|
-
onClick:
|
|
948
|
+
}, x, {
|
|
949
|
+
onClick: v,
|
|
950
950
|
class: d
|
|
951
951
|
}), [G(zt, {
|
|
952
952
|
class: u,
|
|
953
953
|
icon: i,
|
|
954
|
-
primaryColor:
|
|
955
|
-
secondaryColor:
|
|
956
|
-
style:
|
|
954
|
+
primaryColor: _,
|
|
955
|
+
secondaryColor: I,
|
|
956
|
+
style: g
|
|
957
957
|
}, null)]);
|
|
958
958
|
};
|
|
959
959
|
Ve.props = {
|
|
@@ -1184,19 +1184,19 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1184
1184
|
let { name: t = "name", value: n = "value", type: a = "type" } = o || {};
|
|
1185
1185
|
t = t == null ? void 0 : t.trim(), n = n == null ? void 0 : n.trim(), a = a == null ? void 0 : a.trim();
|
|
1186
1186
|
const l = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), r = e.length;
|
|
1187
|
-
for (let
|
|
1188
|
-
const
|
|
1189
|
-
if (l.add(
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1187
|
+
for (let C = 0; C < r; C++) {
|
|
1188
|
+
const v = e[C], x = v[t] || "", d = v[n] || "", u = v[a] || "";
|
|
1189
|
+
if (l.add(x), i.has(u)) {
|
|
1190
|
+
const y = i.get(u);
|
|
1191
|
+
y.push({ name: x, value: d, ...v }), i.set(u, y);
|
|
1192
1192
|
} else
|
|
1193
|
-
i.set(u, [{ name:
|
|
1193
|
+
i.set(u, [{ name: x, value: d, ...v }]);
|
|
1194
1194
|
}
|
|
1195
1195
|
const s = Array.from(l), f = [];
|
|
1196
|
-
for (const [
|
|
1196
|
+
for (const [C, v] of i)
|
|
1197
1197
|
f.push({
|
|
1198
|
-
name:
|
|
1199
|
-
data:
|
|
1198
|
+
name: C,
|
|
1199
|
+
data: v
|
|
1200
1200
|
});
|
|
1201
1201
|
return {
|
|
1202
1202
|
dimensions: s,
|
|
@@ -1269,13 +1269,13 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1269
1269
|
return e;
|
|
1270
1270
|
for (let s = 0; s < r.length; s++) {
|
|
1271
1271
|
const f = r[s];
|
|
1272
|
-
let
|
|
1273
|
-
const
|
|
1274
|
-
for (let d = 0; d <
|
|
1275
|
-
const u =
|
|
1276
|
-
|
|
1272
|
+
let C = f.slice(1, -1).trim();
|
|
1273
|
+
const v = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, x = C.match(v);
|
|
1274
|
+
for (let d = 0; d < x.length; d++) {
|
|
1275
|
+
const u = x[d], y = i[u];
|
|
1276
|
+
y != null && (C = C.replace(u, y));
|
|
1277
1277
|
}
|
|
1278
|
-
/\(.*\)/g.test(
|
|
1278
|
+
/\(.*\)/g.test(C) && (C = yt(C, t)), e = e.replace(f, C);
|
|
1279
1279
|
}
|
|
1280
1280
|
return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
1281
1281
|
}, _e = (e, o = () => {
|
|
@@ -1287,61 +1287,61 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1287
1287
|
requestParams: l,
|
|
1288
1288
|
requestInterval: i,
|
|
1289
1289
|
isOpenRequestTimer: r
|
|
1290
|
-
} = e, { contextRequestUrl: s, pageMode: f, touchEventId:
|
|
1290
|
+
} = e, { contextRequestUrl: s, pageMode: f, touchEventId: C } = N(fe, {
|
|
1291
1291
|
contextRequestUrl: "",
|
|
1292
1292
|
pageMode: "normal",
|
|
1293
1293
|
touchEventId: ""
|
|
1294
|
-
}), { getGlobalModel:
|
|
1294
|
+
}), { getGlobalModel: v } = N(ye, {
|
|
1295
1295
|
// @ts-ignore
|
|
1296
1296
|
// eslint-disable-next-line no-void
|
|
1297
|
-
getGlobalModel: (
|
|
1297
|
+
getGlobalModel: (y) => {
|
|
1298
1298
|
}
|
|
1299
|
-
}),
|
|
1300
|
-
if (!
|
|
1299
|
+
}), x = de(t), d = async (y = {}) => {
|
|
1300
|
+
if (!x || !n || !a || b(f) === "design")
|
|
1301
1301
|
return;
|
|
1302
|
-
let
|
|
1303
|
-
l.forEach((
|
|
1304
|
-
const { key:
|
|
1305
|
-
if (typeof
|
|
1302
|
+
let g = {};
|
|
1303
|
+
l.forEach((S) => {
|
|
1304
|
+
const { key: A, value: w } = S;
|
|
1305
|
+
if (typeof w == "object" && w != null && w.id) {
|
|
1306
1306
|
let c = {};
|
|
1307
|
-
const { id:
|
|
1308
|
-
|
|
1309
|
-
const T =
|
|
1307
|
+
const { id: m, prop: k, propKey: R, operate: E } = w;
|
|
1308
|
+
m === "THIS" ? c = v(b(C)) || {} : c = v(m) || {};
|
|
1309
|
+
const T = b(c[k]);
|
|
1310
1310
|
let j = null;
|
|
1311
1311
|
if (["date", "range"].some((F) => Dt(c == null ? void 0 : c.type, F))) {
|
|
1312
1312
|
const { value: F, type: B, mode: z } = E || {};
|
|
1313
1313
|
if (F && B && z)
|
|
1314
1314
|
switch (B) {
|
|
1315
1315
|
case "add":
|
|
1316
|
-
j =
|
|
1316
|
+
j = b(T).add(F, z);
|
|
1317
1317
|
break;
|
|
1318
1318
|
case "minus":
|
|
1319
|
-
j =
|
|
1319
|
+
j = b(T).subtract(F, z);
|
|
1320
1320
|
break;
|
|
1321
1321
|
}
|
|
1322
|
-
j == null && (j =
|
|
1322
|
+
j == null && (j = b(T)), j = (j == null ? void 0 : j.format((R == null ? void 0 : R.trim()) || c.format)) || "";
|
|
1323
1323
|
} else
|
|
1324
1324
|
Object.prototype.toString.call(T) === "[object Object]" ? j = T[R || "value"] : j = T;
|
|
1325
|
-
|
|
1325
|
+
g[A] = j;
|
|
1326
1326
|
} else
|
|
1327
|
-
typeof
|
|
1328
|
-
}),
|
|
1329
|
-
let
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1327
|
+
typeof w == "string" && (g[A] = de(w));
|
|
1328
|
+
}), g = { ...window.config.requestParams, ...y, ...g };
|
|
1329
|
+
let h = "";
|
|
1330
|
+
const p = Object.keys(g), _ = p.length - 1, I = p.length;
|
|
1331
|
+
p.forEach((S, A) => {
|
|
1332
|
+
A === 0 ? I !== 1 ? h += `?${S}=${g[S]}&` : h += `?${S}=${g[S]}` : A === _ ? h += `${S}=${g[S]}` : h += `${S}=${g[S]}&`;
|
|
1333
1333
|
});
|
|
1334
1334
|
try {
|
|
1335
|
-
const
|
|
1336
|
-
baseURL:
|
|
1337
|
-
url:
|
|
1335
|
+
const S = ["get", "head"].includes(n), A = await Fe({
|
|
1336
|
+
baseURL: b(s) || "",
|
|
1337
|
+
url: S ? x + h : x,
|
|
1338
1338
|
method: n,
|
|
1339
1339
|
headers: a,
|
|
1340
|
-
data:
|
|
1340
|
+
data: S ? {} : g
|
|
1341
1341
|
});
|
|
1342
|
-
return o(
|
|
1343
|
-
} catch (
|
|
1344
|
-
console.error(
|
|
1342
|
+
return o(A), A;
|
|
1343
|
+
} catch (S) {
|
|
1344
|
+
console.error(S);
|
|
1345
1345
|
}
|
|
1346
1346
|
}, u = r && setInterval(d, i * 1e3);
|
|
1347
1347
|
return ft(() => {
|
|
@@ -1352,31 +1352,31 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1352
1352
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1353
1353
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), i = e.length, r = n.length;
|
|
1354
1354
|
if (i === 1) {
|
|
1355
|
-
const
|
|
1356
|
-
for (let
|
|
1357
|
-
const d = n[
|
|
1358
|
-
a.add(u),
|
|
1355
|
+
const C = [];
|
|
1356
|
+
for (let x = 0; x < r; x++) {
|
|
1357
|
+
const d = n[x], { label: u, value: y } = d, g = { ...e[0], value: e[0][y] };
|
|
1358
|
+
a.add(u), C.push(g);
|
|
1359
1359
|
}
|
|
1360
|
-
const
|
|
1361
|
-
l.set(
|
|
1360
|
+
const v = e[0][t] || "";
|
|
1361
|
+
l.set(v, C);
|
|
1362
1362
|
} else
|
|
1363
|
-
for (let
|
|
1364
|
-
const
|
|
1365
|
-
a.add(
|
|
1363
|
+
for (let C = 0; C < i; C++) {
|
|
1364
|
+
const v = e[C], x = v[t];
|
|
1365
|
+
a.add(x);
|
|
1366
1366
|
for (let d = 0; d < r; d++) {
|
|
1367
|
-
const u = n[d], { label:
|
|
1368
|
-
if (l.has(
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1367
|
+
const u = n[d], { label: y, value: g } = u, h = { ...v, value: v[g] };
|
|
1368
|
+
if (l.has(y)) {
|
|
1369
|
+
const p = l.get(y);
|
|
1370
|
+
p.push(h), l.set(y, p);
|
|
1371
1371
|
} else
|
|
1372
|
-
l.set(
|
|
1372
|
+
l.set(y, [h]);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
const s = Array.from(a), f = [];
|
|
1376
|
-
for (const [
|
|
1376
|
+
for (const [C, v] of l)
|
|
1377
1377
|
f.push({
|
|
1378
|
-
name:
|
|
1379
|
-
data:
|
|
1378
|
+
name: C,
|
|
1379
|
+
data: v
|
|
1380
1380
|
});
|
|
1381
1381
|
return {
|
|
1382
1382
|
dimensions: s,
|
|
@@ -1407,7 +1407,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1407
1407
|
r = r == null ? void 0 : r.replace(/value/g, o);
|
|
1408
1408
|
try {
|
|
1409
1409
|
let s = r;
|
|
1410
|
-
/\(.*\)/g.test(r) && (s = yt(r)), e = e.replace(i, s);
|
|
1410
|
+
(/\(.*\)/g.test(r) || /[+/\\*]/g.test(r)) && (s = yt(r)), e = e.replace(i, s);
|
|
1411
1411
|
} catch {
|
|
1412
1412
|
e = e.replace(i, r);
|
|
1413
1413
|
}
|
|
@@ -1422,42 +1422,42 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1422
1422
|
});
|
|
1423
1423
|
e.dataType === "indicator" && o();
|
|
1424
1424
|
const t = (i = {}) => {
|
|
1425
|
-
const { label: r, name: s, location: f, show:
|
|
1425
|
+
const { label: r, name: s, location: f, show: C, indexCode: v } = i;
|
|
1426
1426
|
return {
|
|
1427
1427
|
label: r,
|
|
1428
1428
|
columnName: s,
|
|
1429
1429
|
location: f,
|
|
1430
|
-
show:
|
|
1430
|
+
show: C,
|
|
1431
1431
|
calcType: "COLUMN",
|
|
1432
|
-
hrpIndexCode:
|
|
1432
|
+
hrpIndexCode: v
|
|
1433
1433
|
};
|
|
1434
1434
|
}, n = (i = {}) => {
|
|
1435
1435
|
const {
|
|
1436
1436
|
label: r,
|
|
1437
1437
|
name: s,
|
|
1438
1438
|
location: f,
|
|
1439
|
-
show:
|
|
1440
|
-
indexCode:
|
|
1441
|
-
calcType:
|
|
1439
|
+
show: C,
|
|
1440
|
+
indexCode: v,
|
|
1441
|
+
calcType: x = "COLUMN",
|
|
1442
1442
|
builtInFormula: d,
|
|
1443
1443
|
builtInValueSource: u,
|
|
1444
|
-
builtInCalcWay:
|
|
1445
|
-
formula:
|
|
1446
|
-
conditions:
|
|
1444
|
+
builtInCalcWay: y,
|
|
1445
|
+
formula: g,
|
|
1446
|
+
conditions: h
|
|
1447
1447
|
} = i;
|
|
1448
1448
|
return {
|
|
1449
1449
|
label: r,
|
|
1450
1450
|
columnName: s,
|
|
1451
1451
|
location: f,
|
|
1452
|
-
show:
|
|
1453
|
-
calcType:
|
|
1454
|
-
hrpIndexCode:
|
|
1452
|
+
show: C,
|
|
1453
|
+
calcType: x,
|
|
1454
|
+
hrpIndexCode: v,
|
|
1455
1455
|
aggregate: "SUM",
|
|
1456
1456
|
builtInFormula: d,
|
|
1457
1457
|
builtInValueSource: u,
|
|
1458
|
-
builtInCalcWay:
|
|
1459
|
-
formula:
|
|
1460
|
-
conditions:
|
|
1458
|
+
builtInCalcWay: y,
|
|
1459
|
+
formula: g,
|
|
1460
|
+
conditions: h
|
|
1461
1461
|
};
|
|
1462
1462
|
}, { getGlobalModel: a } = N(ye, {
|
|
1463
1463
|
// @ts-ignore
|
|
@@ -1467,25 +1467,25 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1467
1467
|
}), l = (i = []) => {
|
|
1468
1468
|
var f;
|
|
1469
1469
|
const r = i.length, s = [];
|
|
1470
|
-
for (let
|
|
1471
|
-
const
|
|
1472
|
-
id:
|
|
1470
|
+
for (let C = 0; C < r; C++) {
|
|
1471
|
+
const v = i[C], {
|
|
1472
|
+
id: x,
|
|
1473
1473
|
conditionLabel: d,
|
|
1474
1474
|
conditionKey: u,
|
|
1475
|
-
conditionValueType:
|
|
1476
|
-
} =
|
|
1475
|
+
conditionValueType: y
|
|
1476
|
+
} = v, g = {
|
|
1477
1477
|
rule: "NONE",
|
|
1478
1478
|
label: d,
|
|
1479
1479
|
fieldName: u,
|
|
1480
1480
|
fieldValue: "",
|
|
1481
1481
|
// 在关联控件中取
|
|
1482
|
-
valueType:
|
|
1483
|
-
},
|
|
1484
|
-
if (Dt(
|
|
1485
|
-
const { value:
|
|
1486
|
-
|
|
1482
|
+
valueType: y
|
|
1483
|
+
}, h = a(x) || {};
|
|
1484
|
+
if (Dt(h.type, "date")) {
|
|
1485
|
+
const { value: p, format: _ } = h || {};
|
|
1486
|
+
g.fieldValue = (f = b(p)) == null ? void 0 : f.format(_), g.dateFormat = _;
|
|
1487
1487
|
}
|
|
1488
|
-
s.push(
|
|
1488
|
+
s.push(g);
|
|
1489
1489
|
}
|
|
1490
1490
|
return s;
|
|
1491
1491
|
};
|
|
@@ -1495,34 +1495,34 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1495
1495
|
let {
|
|
1496
1496
|
source: s,
|
|
1497
1497
|
dataViewId: f,
|
|
1498
|
-
plugin:
|
|
1498
|
+
plugin: C = "1",
|
|
1499
1499
|
// 插件类型
|
|
1500
|
-
layer:
|
|
1500
|
+
layer: v,
|
|
1501
1501
|
// 后台图表类型,值分0,1
|
|
1502
|
-
chartType:
|
|
1502
|
+
chartType: x,
|
|
1503
1503
|
// 前端图表类型,实测没用
|
|
1504
1504
|
classificationList: d = [],
|
|
1505
1505
|
seriesList: u = [],
|
|
1506
|
-
leftAxisList:
|
|
1507
|
-
rightAxisList:
|
|
1508
|
-
queryColumnList:
|
|
1509
|
-
indicators:
|
|
1510
|
-
controlList:
|
|
1511
|
-
dataSourceId:
|
|
1506
|
+
leftAxisList: y = [],
|
|
1507
|
+
rightAxisList: g = [],
|
|
1508
|
+
queryColumnList: h = [],
|
|
1509
|
+
indicators: p = [],
|
|
1510
|
+
controlList: _ = [],
|
|
1511
|
+
dataSourceId: I,
|
|
1512
1512
|
// 所属数据源ID
|
|
1513
|
-
idxLibMode:
|
|
1513
|
+
idxLibMode: S,
|
|
1514
1514
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1515
|
-
preview:
|
|
1515
|
+
preview: A = !1
|
|
1516
1516
|
// 预览开关
|
|
1517
1517
|
} = i || {};
|
|
1518
|
-
|
|
1519
|
-
let
|
|
1518
|
+
v == null && (Dt(r, "table") ? v = "1" : v = "2");
|
|
1519
|
+
let w;
|
|
1520
1520
|
if (Array.isArray(d) && d.length > 0) {
|
|
1521
1521
|
const T = d.length;
|
|
1522
1522
|
for (let j = 0; j < T; j++) {
|
|
1523
1523
|
const J = d[j] || {}, { label: F = "", name: B = "", show: z = !1, sort: W, customGroup: X, conditions: ie } = J;
|
|
1524
1524
|
if (z || T === 1) {
|
|
1525
|
-
|
|
1525
|
+
w = {
|
|
1526
1526
|
label: F,
|
|
1527
1527
|
columnName: B,
|
|
1528
1528
|
show: z,
|
|
@@ -1552,42 +1552,42 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1557
|
-
|
|
1555
|
+
const m = [];
|
|
1556
|
+
h == null || h.forEach((T) => {
|
|
1557
|
+
m.push(t(T));
|
|
1558
1558
|
});
|
|
1559
1559
|
const k = [];
|
|
1560
|
-
if (
|
|
1560
|
+
if (y == null || y.forEach((T) => {
|
|
1561
1561
|
T.location = "LEFT", k.push(n(T));
|
|
1562
|
-
}),
|
|
1562
|
+
}), g == null || g.forEach((T) => {
|
|
1563
1563
|
T.location = "RIGHT", k.push(n(T));
|
|
1564
|
-
}),
|
|
1564
|
+
}), p == null || p.forEach((T) => {
|
|
1565
1565
|
T.location = "LEFT", k.push(n(T));
|
|
1566
|
-
}),
|
|
1566
|
+
}), v === "1" && m.length === 0)
|
|
1567
1567
|
return;
|
|
1568
|
-
if (
|
|
1568
|
+
if (v === "2" && k.length === 0)
|
|
1569
1569
|
return;
|
|
1570
1570
|
let R;
|
|
1571
|
-
(i == null ? void 0 : i.pageMode) === "design" ? R = i.sqlConditions ?? [] : R = l(
|
|
1571
|
+
(i == null ? void 0 : i.pageMode) === "design" ? R = i.sqlConditions ?? [] : R = l(_);
|
|
1572
1572
|
try {
|
|
1573
1573
|
return await Fe.post(
|
|
1574
1574
|
`${Ro}/diagram`,
|
|
1575
1575
|
{
|
|
1576
1576
|
source: s,
|
|
1577
1577
|
dataViewId: f,
|
|
1578
|
-
plugin:
|
|
1579
|
-
layer:
|
|
1580
|
-
chartType:
|
|
1581
|
-
classification:
|
|
1578
|
+
plugin: C,
|
|
1579
|
+
layer: v,
|
|
1580
|
+
chartType: x,
|
|
1581
|
+
classification: w,
|
|
1582
1582
|
series: c,
|
|
1583
1583
|
indicatorList: k,
|
|
1584
|
-
queryColumns:
|
|
1584
|
+
queryColumns: m,
|
|
1585
1585
|
pageFlag: !0,
|
|
1586
1586
|
sqlConditions: R,
|
|
1587
1587
|
// fixedDimSql: '',
|
|
1588
|
-
dataSourceId:
|
|
1589
|
-
idxLibMode:
|
|
1590
|
-
preview:
|
|
1588
|
+
dataSourceId: I,
|
|
1589
|
+
idxLibMode: S,
|
|
1590
|
+
preview: A
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
1593
1593
|
headers: {
|
|
@@ -1628,20 +1628,20 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1628
1628
|
backgroundSize: e.backgroundSize
|
|
1629
1629
|
})), t = M(0), n = M(0), a = M(0), l = M(0), i = M(!1), r = M();
|
|
1630
1630
|
let s;
|
|
1631
|
-
const f = () => new Promise((
|
|
1631
|
+
const f = () => new Promise((y) => {
|
|
1632
1632
|
mt(() => {
|
|
1633
|
-
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, n.value = r.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height),
|
|
1633
|
+
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, n.value = r.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), y();
|
|
1634
1634
|
});
|
|
1635
|
-
}),
|
|
1635
|
+
}), C = () => {
|
|
1636
1636
|
t.value && n.value ? (r.value.style.width = `${t.value}px`, r.value.style.height = `${n.value}px`) : (r.value.style.width = `${a.value}px`, r.value.style.height = `${l.value}px`);
|
|
1637
|
-
},
|
|
1638
|
-
const
|
|
1639
|
-
r.value && (r.value.style.transform = `scale(${
|
|
1640
|
-
},
|
|
1641
|
-
await f(),
|
|
1637
|
+
}, v = () => {
|
|
1638
|
+
const y = document.body.clientWidth, g = document.body.clientHeight, h = t.value || a.value, p = n.value || l.value, _ = y / h, I = g / p;
|
|
1639
|
+
r.value && (r.value.style.transform = `scale(${_}, ${I})`);
|
|
1640
|
+
}, x = Rt(async () => {
|
|
1641
|
+
await f(), v();
|
|
1642
1642
|
}, 100), d = () => {
|
|
1643
|
-
const
|
|
1644
|
-
s = new
|
|
1643
|
+
const y = window.MutationObserver;
|
|
1644
|
+
s = new y(x), s.observe(r.value, {
|
|
1645
1645
|
attributes: !0,
|
|
1646
1646
|
attributeFilter: ["style"],
|
|
1647
1647
|
attributeOldValue: !0
|
|
@@ -1650,9 +1650,9 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1650
1650
|
s && (s.disconnect(), s.takeRecords(), s = null);
|
|
1651
1651
|
};
|
|
1652
1652
|
return Ue(async () => {
|
|
1653
|
-
i.value = !1, await f(),
|
|
1653
|
+
i.value = !1, await f(), C(), v(), window.addEventListener("resize", x), d(), i.value = !0;
|
|
1654
1654
|
}), ft(() => {
|
|
1655
|
-
window.removeEventListener("resize",
|
|
1655
|
+
window.removeEventListener("resize", x), u();
|
|
1656
1656
|
}), {
|
|
1657
1657
|
style: o,
|
|
1658
1658
|
container: r,
|
|
@@ -1713,60 +1713,60 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1713
1713
|
s.set(F, B);
|
|
1714
1714
|
}
|
|
1715
1715
|
});
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1716
|
+
const v = [], x = () => {
|
|
1717
|
+
v.pop();
|
|
1718
1718
|
}, d = (F) => {
|
|
1719
|
-
|
|
1720
|
-
}, u = /* @__PURE__ */ new Map(),
|
|
1719
|
+
v.push(F);
|
|
1720
|
+
}, u = /* @__PURE__ */ new Map(), y = (F) => u.get(F);
|
|
1721
1721
|
ze(Oo, {
|
|
1722
|
-
popUseModalIds:
|
|
1722
|
+
popUseModalIds: x,
|
|
1723
1723
|
pushUseModalIds: d,
|
|
1724
|
-
getModalModel:
|
|
1724
|
+
getModalModel: y,
|
|
1725
1725
|
setModalModel: (F, B) => {
|
|
1726
1726
|
u.set(F, B);
|
|
1727
1727
|
}
|
|
1728
1728
|
});
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1731
|
-
|
|
1729
|
+
const h = oa(), p = /* @__PURE__ */ new Set(), _ = (F, B) => {
|
|
1730
|
+
p.add(F), h.on(F, (z) => typeof B[z] == "function" && B[z]()), Tt(() => {
|
|
1731
|
+
I(F);
|
|
1732
1732
|
});
|
|
1733
|
-
},
|
|
1734
|
-
|
|
1733
|
+
}, I = (F) => {
|
|
1734
|
+
p.delete(F), h.off(F);
|
|
1735
1735
|
};
|
|
1736
1736
|
ze(Nt, {
|
|
1737
|
-
onEvent:
|
|
1738
|
-
offEvent:
|
|
1737
|
+
onEvent: _,
|
|
1738
|
+
offEvent: I,
|
|
1739
1739
|
emitEvent: (F, B) => {
|
|
1740
1740
|
if (F === "PAGE") {
|
|
1741
|
-
const z =
|
|
1741
|
+
const z = v.length;
|
|
1742
1742
|
let W = [];
|
|
1743
1743
|
if (z === 0)
|
|
1744
|
-
W = [...
|
|
1744
|
+
W = [...p];
|
|
1745
1745
|
else {
|
|
1746
|
-
const X =
|
|
1747
|
-
W = [...
|
|
1746
|
+
const X = v[z - 1];
|
|
1747
|
+
W = [...y(X)];
|
|
1748
1748
|
}
|
|
1749
1749
|
W.forEach((X) => {
|
|
1750
|
-
|
|
1750
|
+
h.emit(X, B);
|
|
1751
1751
|
});
|
|
1752
1752
|
} else
|
|
1753
|
-
|
|
1753
|
+
h.emit(F, B);
|
|
1754
1754
|
}
|
|
1755
1755
|
});
|
|
1756
|
-
const
|
|
1756
|
+
const A = M(0);
|
|
1757
1757
|
ze(Do, {
|
|
1758
1758
|
requestToken: () => {
|
|
1759
|
-
|
|
1759
|
+
A.value = b(A) + 1;
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
|
-
const c = /* @__PURE__ */ new Map(),
|
|
1762
|
+
const c = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), k = ({ requestFn: F = () => {
|
|
1763
1763
|
}, sortNum: B = 0, id: z = "" }) => {
|
|
1764
1764
|
if (c.has(B)) {
|
|
1765
1765
|
const W = c.get(B);
|
|
1766
1766
|
W == null || W.push(F);
|
|
1767
1767
|
} else
|
|
1768
1768
|
c.set(B, [F]);
|
|
1769
|
-
|
|
1769
|
+
m.set(z, F);
|
|
1770
1770
|
}, R = (F) => new Promise((B, z) => {
|
|
1771
1771
|
const W = F.map((X) => X());
|
|
1772
1772
|
Promise.all(W).then((X) => {
|
|
@@ -1787,7 +1787,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1787
1787
|
}, T = (F) => new Promise(async (B, z) => {
|
|
1788
1788
|
if (F) {
|
|
1789
1789
|
if (typeof F == "string") {
|
|
1790
|
-
const W =
|
|
1790
|
+
const W = m.get(F);
|
|
1791
1791
|
if (typeof W == "function") {
|
|
1792
1792
|
const X = Fe.interceptors.response.use((ie) => (B(ie), ie), (ie) => (z(ie), Promise.reject(ie)));
|
|
1793
1793
|
W(), Fe.interceptors.response.eject(X);
|
|
@@ -1798,7 +1798,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1798
1798
|
W.sort((ie, at) => at[0] - ie[0]);
|
|
1799
1799
|
const X = W.length;
|
|
1800
1800
|
try {
|
|
1801
|
-
e.pageMode !== "design" &&
|
|
1801
|
+
e.pageMode !== "design" && b(A) > 0 && await E();
|
|
1802
1802
|
for (let ie = 0; ie < X; ie++) {
|
|
1803
1803
|
const at = W[ie][1];
|
|
1804
1804
|
await R(at);
|
|
@@ -1815,16 +1815,16 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1815
1815
|
touchRequest: T
|
|
1816
1816
|
}), ze(Je, {
|
|
1817
1817
|
emitRefreshPage: () => {
|
|
1818
|
-
|
|
1818
|
+
h.emit(Je);
|
|
1819
1819
|
}
|
|
1820
1820
|
});
|
|
1821
1821
|
const J = (F) => {
|
|
1822
|
-
|
|
1823
|
-
|
|
1822
|
+
h.on(Je, () => F()), Ue(() => {
|
|
1823
|
+
h.off(Je);
|
|
1824
1824
|
});
|
|
1825
1825
|
};
|
|
1826
1826
|
return Tt(() => {
|
|
1827
|
-
c == null || c.clear(),
|
|
1827
|
+
c == null || c.clear(), m == null || m.clear();
|
|
1828
1828
|
}), o({
|
|
1829
1829
|
touchRequest: T,
|
|
1830
1830
|
getGlobalModel: f,
|
|
@@ -1874,47 +1874,47 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1874
1874
|
},
|
|
1875
1875
|
setup(e) {
|
|
1876
1876
|
const o = re(e), t = M({});
|
|
1877
|
-
ne(() => [e.data, e.dataType], ([
|
|
1878
|
-
d === "static" && (t.value =
|
|
1877
|
+
ne(() => [e.data, e.dataType], ([x, d]) => {
|
|
1878
|
+
d === "static" && (t.value = x);
|
|
1879
1879
|
}, {
|
|
1880
1880
|
immediate: !0
|
|
1881
1881
|
});
|
|
1882
1882
|
const n = q(() => {
|
|
1883
|
-
var
|
|
1884
|
-
const
|
|
1883
|
+
var y;
|
|
1884
|
+
const x = b(t);
|
|
1885
1885
|
let d = e.text;
|
|
1886
1886
|
d = d == null ? void 0 : d.replace(/\n|\\n/g, "<br/>"), d = d == null ? void 0 : d.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
1887
1887
|
const u = d.match(/\{(.+?)\}/g);
|
|
1888
1888
|
if (u == null || u.length === 0)
|
|
1889
1889
|
return d;
|
|
1890
|
-
for (let
|
|
1891
|
-
const
|
|
1892
|
-
let
|
|
1893
|
-
const
|
|
1894
|
-
for (let
|
|
1895
|
-
const
|
|
1896
|
-
c && (
|
|
1890
|
+
for (let g = 0; g < u.length; g++) {
|
|
1891
|
+
const h = u[g], p = (y = h == null ? void 0 : h.slice(1, h.length - 1)) == null ? void 0 : y.trim();
|
|
1892
|
+
let _ = p;
|
|
1893
|
+
const I = p.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1894
|
+
for (let A = 0; A < I.length; A++) {
|
|
1895
|
+
const w = I[A], c = x[w];
|
|
1896
|
+
c && (_ = p.replace(w, c));
|
|
1897
1897
|
}
|
|
1898
|
-
if (/\(.*\)/g.test(
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1898
|
+
if (/\(.*\)/g.test(_)) {
|
|
1899
|
+
const A = yt(_);
|
|
1900
|
+
A != null && (_ = A);
|
|
1901
1901
|
}
|
|
1902
|
-
let
|
|
1903
|
-
if (
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1902
|
+
let S = _;
|
|
1903
|
+
if (S === p && (S = e.variableDefaultValue), S != null) {
|
|
1904
|
+
const A = e.format;
|
|
1905
|
+
A === "percentage" ? (S = +S, isNaN(S) ? d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : S >= 0 ? (S = (S * 100).toFixed(2), d = d.replace(h, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${S}%</span>`)) : (S = (S * 100).toFixed(2), d = d.replace(h, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+S)}%</span>`))) : e.format === "percent" ? (S = +S, isNaN(S) || (S = (S * 100).toFixed(2), d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}%</span>`))) : e.format === "money" ? (S = +S, isNaN(S) || (S = Pt(S), d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : A === "thousands" ? (S = +S, isNaN(S) || (S = Tl(S), d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
return `<span>${d}</span>`;
|
|
1909
1909
|
}), { pageMode: a } = N(fe, {
|
|
1910
1910
|
pageMode: "normal"
|
|
1911
1911
|
}), l = _e(e), i = M(!1), r = async () => {
|
|
1912
|
-
var
|
|
1913
|
-
if (
|
|
1912
|
+
var x;
|
|
1913
|
+
if (b(a) !== "design")
|
|
1914
1914
|
try {
|
|
1915
1915
|
i.value = !0;
|
|
1916
1916
|
const d = await l();
|
|
1917
|
-
t.value = ((
|
|
1917
|
+
t.value = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || {};
|
|
1918
1918
|
} catch (d) {
|
|
1919
1919
|
console.error(d);
|
|
1920
1920
|
} finally {
|
|
@@ -1929,7 +1929,7 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1929
1929
|
const { setRequest: f } = N(Se, {
|
|
1930
1930
|
// @ts-ignore
|
|
1931
1931
|
// eslint-disable-next-line no-void
|
|
1932
|
-
setRequest: ({ id:
|
|
1932
|
+
setRequest: ({ id: x, sortNum: d, requestFn: u }) => {
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
1935
|
f({
|
|
@@ -1939,14 +1939,14 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1939
1939
|
}), he(e, {
|
|
1940
1940
|
refreshData: s
|
|
1941
1941
|
});
|
|
1942
|
-
const
|
|
1942
|
+
const v = me(e)("click", () => {
|
|
1943
1943
|
if (!e.linkPage && !e.href)
|
|
1944
1944
|
return;
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1947
|
-
|
|
1948
|
-
const
|
|
1949
|
-
|
|
1945
|
+
const x = e.linkPage || "", d = Fo(b(a), x), u = e.href;
|
|
1946
|
+
let y = u || d;
|
|
1947
|
+
y = de(y);
|
|
1948
|
+
const g = e.target;
|
|
1949
|
+
g && (g !== "event" ? window.open(y, "_" + g) : window.parent.postMessage({
|
|
1950
1950
|
type: "openPage",
|
|
1951
1951
|
url: u
|
|
1952
1952
|
}, "*"));
|
|
@@ -1955,7 +1955,7 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1955
1955
|
style: o,
|
|
1956
1956
|
myText: n,
|
|
1957
1957
|
loading: i,
|
|
1958
|
-
click:
|
|
1958
|
+
click: v
|
|
1959
1959
|
};
|
|
1960
1960
|
}
|
|
1961
1961
|
});
|
|
@@ -2078,45 +2078,45 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2078
2078
|
textAlign: "center"
|
|
2079
2079
|
} : {
|
|
2080
2080
|
textAlign: "left"
|
|
2081
|
-
}), a = (u,
|
|
2081
|
+
}), a = (u, y) => y == null || y === "" ? u : {
|
|
2082
2082
|
money: Pt,
|
|
2083
2083
|
percentage: ut,
|
|
2084
2084
|
contrast: ut
|
|
2085
|
-
}[
|
|
2086
|
-
const
|
|
2087
|
-
if (
|
|
2085
|
+
}[y](u) || "", l = (u, y) => {
|
|
2086
|
+
const g = parseFloat(u + "");
|
|
2087
|
+
if (y !== "contrast")
|
|
2088
2088
|
return "";
|
|
2089
2089
|
switch (!0) {
|
|
2090
|
-
case
|
|
2090
|
+
case g >= 0:
|
|
2091
2091
|
return "goUp";
|
|
2092
|
-
case
|
|
2092
|
+
case g < 0:
|
|
2093
2093
|
return "goDown";
|
|
2094
2094
|
}
|
|
2095
2095
|
}, i = _e(e), { pageMode: r } = N(fe, {
|
|
2096
2096
|
pageMode: "normal"
|
|
2097
2097
|
}), s = M(!1), f = async () => {
|
|
2098
2098
|
var u;
|
|
2099
|
-
if (!(e.dataType !== "request" ||
|
|
2099
|
+
if (!(e.dataType !== "request" || b(r) === "design"))
|
|
2100
2100
|
try {
|
|
2101
2101
|
s.value = !0;
|
|
2102
|
-
const
|
|
2103
|
-
o.value = ((u =
|
|
2104
|
-
} catch (
|
|
2105
|
-
console.error(
|
|
2102
|
+
const y = await i();
|
|
2103
|
+
o.value = ((u = y == null ? void 0 : y.data) == null ? void 0 : u.data.rows) || [];
|
|
2104
|
+
} catch (y) {
|
|
2105
|
+
console.error(y);
|
|
2106
2106
|
} finally {
|
|
2107
2107
|
s.value = !1;
|
|
2108
2108
|
}
|
|
2109
|
-
},
|
|
2109
|
+
}, C = () => {
|
|
2110
2110
|
f();
|
|
2111
|
-
},
|
|
2111
|
+
}, x = me(e)("click", () => {
|
|
2112
2112
|
});
|
|
2113
2113
|
he(e, {
|
|
2114
|
-
refreshData:
|
|
2114
|
+
refreshData: C
|
|
2115
2115
|
});
|
|
2116
2116
|
const { setRequest: d } = N(Se, {
|
|
2117
2117
|
// @ts-ignore
|
|
2118
2118
|
// eslint-disable-next-line no-void
|
|
2119
|
-
setRequest: ({ id: u, sortNum:
|
|
2119
|
+
setRequest: ({ id: u, sortNum: y, requestFn: g }) => {
|
|
2120
2120
|
}
|
|
2121
2121
|
});
|
|
2122
2122
|
return d({
|
|
@@ -2130,7 +2130,7 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2130
2130
|
contrastClass: l,
|
|
2131
2131
|
dataSource: o,
|
|
2132
2132
|
loading: s,
|
|
2133
|
-
click:
|
|
2133
|
+
click: x
|
|
2134
2134
|
};
|
|
2135
2135
|
}
|
|
2136
2136
|
});
|
|
@@ -2261,58 +2261,58 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2261
2261
|
return parseFloat(u);
|
|
2262
2262
|
}), a = M({});
|
|
2263
2263
|
ne(() => e.data, () => {
|
|
2264
|
-
(e.dataType === "static" ||
|
|
2264
|
+
(e.dataType === "static" || b(o) === "design") && (a.value = e.data);
|
|
2265
2265
|
}, {
|
|
2266
2266
|
immediate: !0,
|
|
2267
2267
|
deep: !0
|
|
2268
2268
|
});
|
|
2269
2269
|
const l = q(() => {
|
|
2270
|
-
const u =
|
|
2270
|
+
const u = b(a), y = +e.variableDefaultValue;
|
|
2271
2271
|
if (u == null)
|
|
2272
|
-
return isNaN(
|
|
2273
|
-
const
|
|
2274
|
-
let
|
|
2275
|
-
const
|
|
2276
|
-
for (let
|
|
2277
|
-
const
|
|
2278
|
-
if (
|
|
2279
|
-
|
|
2272
|
+
return isNaN(y) ? 0 : y;
|
|
2273
|
+
const g = e.text.match(/\{.+\}/g) || [];
|
|
2274
|
+
let h;
|
|
2275
|
+
const p = new Set(Object.keys(u));
|
|
2276
|
+
for (let _ = 0; _ < g.length; _++) {
|
|
2277
|
+
const I = g[_], S = I.slice(1, I.length - 1);
|
|
2278
|
+
if (p.has(S)) {
|
|
2279
|
+
h = u[S];
|
|
2280
2280
|
break;
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
|
-
return typeof
|
|
2283
|
+
return typeof h == "number" ? h = h * 100 : typeof h == "string" && !isNaN(+h) ? h = +h * 100 : isNaN(y) ? h = 0 : h = y * 100, e.decimalFormat && (h = +h.toFixed(2)), h;
|
|
2284
2284
|
}), i = q(() => {
|
|
2285
|
-
var
|
|
2285
|
+
var p;
|
|
2286
2286
|
let u = e.text;
|
|
2287
2287
|
if (u === "")
|
|
2288
|
-
return
|
|
2289
|
-
const
|
|
2290
|
-
for (let
|
|
2291
|
-
const
|
|
2292
|
-
let
|
|
2293
|
-
const
|
|
2294
|
-
for (let
|
|
2295
|
-
const k = (
|
|
2296
|
-
|
|
2288
|
+
return b(l);
|
|
2289
|
+
const y = e.variableDefaultValue, g = b(a), h = u.match(/\{.+\}/g) || [];
|
|
2290
|
+
for (let _ = 0; _ < h.length; _++) {
|
|
2291
|
+
const I = h[_];
|
|
2292
|
+
let S = I.slice(1, I.length - 1);
|
|
2293
|
+
const A = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, w = I.match(A);
|
|
2294
|
+
for (let m = 0; m < (w == null ? void 0 : w.length); m++) {
|
|
2295
|
+
const k = (p = w[m]) == null ? void 0 : p.trim();
|
|
2296
|
+
g[k] != null && (S = S.replace(k, g[k]));
|
|
2297
2297
|
}
|
|
2298
|
-
let c =
|
|
2298
|
+
let c = S;
|
|
2299
2299
|
try {
|
|
2300
|
-
/\(.*\)/g.test(
|
|
2301
|
-
} catch (
|
|
2302
|
-
console.error(
|
|
2300
|
+
/\(.*\)/g.test(S) && (c = yt(S));
|
|
2301
|
+
} catch (m) {
|
|
2302
|
+
console.error(m);
|
|
2303
2303
|
}
|
|
2304
|
-
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c =
|
|
2304
|
+
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c = y, u = u.replace(I, c + "");
|
|
2305
2305
|
}
|
|
2306
2306
|
return u;
|
|
2307
2307
|
}), r = _e(e), s = M(!1), f = async () => {
|
|
2308
2308
|
var u;
|
|
2309
|
-
if (!(e.dataType !== "request" ||
|
|
2309
|
+
if (!(e.dataType !== "request" || b(o) === "design"))
|
|
2310
2310
|
try {
|
|
2311
2311
|
s.value = !0;
|
|
2312
|
-
const
|
|
2313
|
-
a.value = ((u =
|
|
2314
|
-
} catch (
|
|
2315
|
-
console.error(
|
|
2312
|
+
const y = await r();
|
|
2313
|
+
a.value = ((u = y == null ? void 0 : y.data) == null ? void 0 : u.data) || {};
|
|
2314
|
+
} catch (y) {
|
|
2315
|
+
console.error(y);
|
|
2316
2316
|
} finally {
|
|
2317
2317
|
s.value = !1;
|
|
2318
2318
|
}
|
|
@@ -2322,11 +2322,11 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2322
2322
|
f();
|
|
2323
2323
|
}
|
|
2324
2324
|
});
|
|
2325
|
-
const
|
|
2325
|
+
const x = me(e)("click", () => {
|
|
2326
2326
|
}), { setRequest: d } = N(Se, {
|
|
2327
2327
|
// @ts-ignore
|
|
2328
2328
|
// eslint-disable-next-line no-void
|
|
2329
|
-
setRequest: ({ id: u, sortNum:
|
|
2329
|
+
setRequest: ({ id: u, sortNum: y, requestFn: g }) => {
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
2332
|
return d({
|
|
@@ -2339,7 +2339,7 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2339
2339
|
text: i,
|
|
2340
2340
|
myValue: l,
|
|
2341
2341
|
loading: s,
|
|
2342
|
-
click:
|
|
2342
|
+
click: x
|
|
2343
2343
|
};
|
|
2344
2344
|
}
|
|
2345
2345
|
});
|
|
@@ -2415,7 +2415,7 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2415
2415
|
},
|
|
2416
2416
|
// @ts-ignore
|
|
2417
2417
|
// eslint-disable-next-line no-void
|
|
2418
|
-
setGlobalModel: (f,
|
|
2418
|
+
setGlobalModel: (f, C) => {
|
|
2419
2419
|
}
|
|
2420
2420
|
});
|
|
2421
2421
|
a(e.id, {
|
|
@@ -2480,19 +2480,19 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2480
2480
|
},
|
|
2481
2481
|
setup(e) {
|
|
2482
2482
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M(null);
|
|
2483
|
-
ne(() => [e.value, e.useCurrentTime, e.operate], ([
|
|
2484
|
-
let
|
|
2485
|
-
if (
|
|
2486
|
-
const { type:
|
|
2487
|
-
switch (
|
|
2483
|
+
ne(() => [e.value, e.useCurrentTime, e.operate], ([s, f, C]) => {
|
|
2484
|
+
let v = null;
|
|
2485
|
+
if (s ? v = Ce(de(s)) : f && (v = Ce()), C && v) {
|
|
2486
|
+
const { type: x, value: d, mode: u } = C;
|
|
2487
|
+
switch (x) {
|
|
2488
2488
|
case "add":
|
|
2489
|
-
|
|
2489
|
+
v = v.add(d, u);
|
|
2490
2490
|
break;
|
|
2491
2491
|
case "minus":
|
|
2492
|
-
|
|
2492
|
+
v = v.subtract(d, u);
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
|
-
n.value =
|
|
2495
|
+
n.value = v;
|
|
2496
2496
|
}, {
|
|
2497
2497
|
deep: !0,
|
|
2498
2498
|
immediate: !0
|
|
@@ -2500,7 +2500,7 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2500
2500
|
const { setGlobalModel: a } = N(ye, {
|
|
2501
2501
|
// @ts-ignore
|
|
2502
2502
|
// eslint-disable-next-line no-void
|
|
2503
|
-
setGlobalModel: (
|
|
2503
|
+
setGlobalModel: (s, f) => {
|
|
2504
2504
|
}
|
|
2505
2505
|
});
|
|
2506
2506
|
a(e.id, {
|
|
@@ -2509,7 +2509,9 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2509
2509
|
value: n
|
|
2510
2510
|
});
|
|
2511
2511
|
const i = me(e)("dateChange", () => {
|
|
2512
|
-
})
|
|
2512
|
+
}), r = () => {
|
|
2513
|
+
b(n) && i();
|
|
2514
|
+
};
|
|
2513
2515
|
return he(e, {
|
|
2514
2516
|
dateChange: i
|
|
2515
2517
|
}), {
|
|
@@ -2517,7 +2519,7 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2517
2519
|
getPopupContainer: t,
|
|
2518
2520
|
myValue: n,
|
|
2519
2521
|
locale: Co,
|
|
2520
|
-
|
|
2522
|
+
change: r
|
|
2521
2523
|
};
|
|
2522
2524
|
}
|
|
2523
2525
|
});
|
|
@@ -2536,7 +2538,7 @@ function Ti(e, o, t, n, a, l) {
|
|
|
2536
2538
|
picker: e.picker,
|
|
2537
2539
|
showTime: e.showTime,
|
|
2538
2540
|
locale: e.locale,
|
|
2539
|
-
onChange: e.
|
|
2541
|
+
onChange: e.change,
|
|
2540
2542
|
getPopupContainer: e.getPopupContainer
|
|
2541
2543
|
}, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "getPopupContainer"])
|
|
2542
2544
|
], 4);
|
|
@@ -2569,57 +2571,57 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2569
2571
|
setup(e) {
|
|
2570
2572
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } = N(fe, {
|
|
2571
2573
|
pageMode: "normal"
|
|
2572
|
-
}), l = M(e.data), i = M(e.value || e.data[0]), r = e.dataFieldNames, s = (
|
|
2573
|
-
const
|
|
2574
|
-
let
|
|
2575
|
-
const
|
|
2576
|
-
return
|
|
2577
|
-
}, f = M(!1),
|
|
2578
|
-
var
|
|
2579
|
-
if (!(e.dataType !== "request" ||
|
|
2574
|
+
}), l = M(e.data), i = M(e.value || e.data[0]), r = e.dataFieldNames, s = (g, h) => {
|
|
2575
|
+
const p = r.label, _ = r.value;
|
|
2576
|
+
let I;
|
|
2577
|
+
const S = h[p], A = h[_];
|
|
2578
|
+
return S != null ? I = S : A != null && (I = A), (I == null ? void 0 : I.toLowerCase().indexOf(g == null ? void 0 : g.toLowerCase())) >= 0;
|
|
2579
|
+
}, f = M(!1), C = async () => {
|
|
2580
|
+
var g, h;
|
|
2581
|
+
if (!(e.dataType !== "request" || b(a) === "design")) {
|
|
2580
2582
|
f.value = !0;
|
|
2581
2583
|
try {
|
|
2582
|
-
const
|
|
2583
|
-
l.value = ((
|
|
2584
|
-
const
|
|
2585
|
-
e.value === "" &&
|
|
2586
|
-
} catch (
|
|
2587
|
-
console.error(
|
|
2584
|
+
const p = await n();
|
|
2585
|
+
l.value = ((h = (g = p == null ? void 0 : p.data) == null ? void 0 : g.data) == null ? void 0 : h.rows) || [];
|
|
2586
|
+
const _ = b(l)[0];
|
|
2587
|
+
e.value === "" && _ != null && (i.value = _[r.value]);
|
|
2588
|
+
} catch (p) {
|
|
2589
|
+
console.error(p);
|
|
2588
2590
|
} finally {
|
|
2589
2591
|
f.value = !1;
|
|
2590
2592
|
}
|
|
2591
2593
|
}
|
|
2592
|
-
}, { getGlobalModel:
|
|
2594
|
+
}, { getGlobalModel: v, setGlobalModel: x } = N(ye, {
|
|
2593
2595
|
// @ts-ignore
|
|
2594
2596
|
// eslint-disable-next-line no-void
|
|
2595
|
-
getGlobalModel: (
|
|
2597
|
+
getGlobalModel: (g) => {
|
|
2596
2598
|
},
|
|
2597
2599
|
// @ts-ignore
|
|
2598
2600
|
// eslint-disable-next-line no-void
|
|
2599
|
-
setGlobalModel: (
|
|
2601
|
+
setGlobalModel: (g, h) => {
|
|
2600
2602
|
}
|
|
2601
2603
|
});
|
|
2602
|
-
|
|
2604
|
+
x(e.id, {
|
|
2603
2605
|
type: e.type,
|
|
2604
2606
|
value: i
|
|
2605
2607
|
});
|
|
2606
2608
|
const u = me(e)("selectChange", () => {
|
|
2607
|
-
const
|
|
2608
|
-
|
|
2609
|
+
const g = e.id, h = v(g);
|
|
2610
|
+
x(g, { ...h, RECORD: i });
|
|
2609
2611
|
});
|
|
2610
2612
|
he(e, {
|
|
2611
2613
|
selectChange: u,
|
|
2612
|
-
refreshData:
|
|
2614
|
+
refreshData: C
|
|
2613
2615
|
});
|
|
2614
|
-
const { setRequest:
|
|
2616
|
+
const { setRequest: y } = N(Se, {
|
|
2615
2617
|
// @ts-ignore
|
|
2616
2618
|
// eslint-disable-next-line no-void
|
|
2617
|
-
setRequest: ({ id:
|
|
2619
|
+
setRequest: ({ id: g, sortNum: h, requestFn: p }) => {
|
|
2618
2620
|
}
|
|
2619
2621
|
});
|
|
2620
|
-
return
|
|
2622
|
+
return y({
|
|
2621
2623
|
id: e.id,
|
|
2622
|
-
requestFn:
|
|
2624
|
+
requestFn: C,
|
|
2623
2625
|
sortNum: e.requestSort
|
|
2624
2626
|
}), {
|
|
2625
2627
|
style: o,
|
|
@@ -2682,57 +2684,65 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2682
2684
|
},
|
|
2683
2685
|
setup(e) {
|
|
2684
2686
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M([null, null]);
|
|
2685
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([
|
|
2686
|
-
let A = null,
|
|
2687
|
-
if (
|
|
2688
|
-
const { type:
|
|
2689
|
-
switch (
|
|
2687
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([g, h, p, _, I, S]) => {
|
|
2688
|
+
let A = null, w = null;
|
|
2689
|
+
if (p && (A = Ce().subtract(_, I), w = Ce()), g && (A = Ce(de(g))), h && (w = Ce(de(h))), S) {
|
|
2690
|
+
const { type: c, value: m, mode: k } = S;
|
|
2691
|
+
switch (c) {
|
|
2690
2692
|
case "add":
|
|
2691
|
-
A = A && A.add(
|
|
2693
|
+
A = A && A.add(m, k), w = w && w.add(m, k);
|
|
2692
2694
|
break;
|
|
2693
2695
|
case "minus":
|
|
2694
|
-
A = A && A.subtract(
|
|
2696
|
+
A = A && A.subtract(m, k), w = w && w.subtract(m, k);
|
|
2695
2697
|
}
|
|
2696
2698
|
}
|
|
2697
|
-
n.value = [A,
|
|
2699
|
+
n.value = [A, w];
|
|
2698
2700
|
}, {
|
|
2699
2701
|
immediate: !0
|
|
2700
2702
|
});
|
|
2701
|
-
let a =
|
|
2702
|
-
const i = (
|
|
2703
|
-
Array.isArray(
|
|
2704
|
-
}, r = (
|
|
2705
|
-
let
|
|
2706
|
-
const
|
|
2703
|
+
let a = b(n)[0], l = b(n)[1];
|
|
2704
|
+
const i = (g) => {
|
|
2705
|
+
Array.isArray(g) ? (a = g[0], l = g[1]) : (a = null, l = null);
|
|
2706
|
+
}, r = (g) => {
|
|
2707
|
+
let h = !1, { limitStartTime: p, limitEndTime: _ } = e;
|
|
2708
|
+
const I = {
|
|
2707
2709
|
startTime: `${a || ""}`,
|
|
2708
2710
|
endTime: `${l || ""}`
|
|
2709
2711
|
};
|
|
2710
|
-
return
|
|
2712
|
+
return p = de(p, { codeData: I }), _ = de(_, { codeData: I }), p && _ ? h = !(Ce(p) < g && g < Ce(_)) : p ? h = Ce(p) > g : _ && (h = Ce(_) < g), h;
|
|
2711
2713
|
}, { setGlobalModel: s } = N(ye, {
|
|
2712
2714
|
// @ts-ignore
|
|
2713
2715
|
// eslint-disable-next-line no-void
|
|
2714
|
-
setGlobalModel: (
|
|
2716
|
+
setGlobalModel: (g, h) => {
|
|
2715
2717
|
}
|
|
2716
|
-
}), f = q(() => Array.isArray(
|
|
2718
|
+
}), f = q(() => Array.isArray(b(n)) ? b(n)[0] : null), C = q(() => Array.isArray(b(n)) ? b(n)[1] : null);
|
|
2717
2719
|
s(e.id, {
|
|
2718
2720
|
type: e.type,
|
|
2719
2721
|
format: e.format,
|
|
2720
2722
|
startTime: f,
|
|
2721
|
-
endTime:
|
|
2722
|
-
});
|
|
2723
|
-
const C = me(e)("dateChange", () => {
|
|
2724
|
-
console.log("dateChange");
|
|
2723
|
+
endTime: C
|
|
2725
2724
|
});
|
|
2725
|
+
const v = me(e);
|
|
2726
|
+
let x = !1;
|
|
2727
|
+
const d = v("dateChange", () => {
|
|
2728
|
+
}), u = (g) => {
|
|
2729
|
+
const h = b(n), p = h && h[0] && h[1];
|
|
2730
|
+
g === !1 && x === !0 && p && (d(), x = !1);
|
|
2731
|
+
}, y = () => {
|
|
2732
|
+
x = !0;
|
|
2733
|
+
};
|
|
2726
2734
|
return he(e, {
|
|
2727
|
-
dateChange:
|
|
2735
|
+
dateChange: d
|
|
2728
2736
|
}), {
|
|
2729
2737
|
style: o,
|
|
2730
2738
|
getPopupContainer: t,
|
|
2731
2739
|
locale: Co,
|
|
2732
|
-
dateChange:
|
|
2740
|
+
dateChange: d,
|
|
2733
2741
|
myValue: n,
|
|
2734
2742
|
disabledDate: r,
|
|
2735
|
-
calendarChange: i
|
|
2743
|
+
calendarChange: i,
|
|
2744
|
+
openChange: u,
|
|
2745
|
+
change: y
|
|
2736
2746
|
};
|
|
2737
2747
|
}
|
|
2738
2748
|
});
|
|
@@ -2752,12 +2762,13 @@ function $i(e, o, t, n, a, l) {
|
|
|
2752
2762
|
locale: e.locale,
|
|
2753
2763
|
getPopupContainer: e.getPopupContainer,
|
|
2754
2764
|
"disabled-date": e.disabledDate,
|
|
2755
|
-
onChange: e.
|
|
2756
|
-
onCalendarChange: e.calendarChange
|
|
2757
|
-
|
|
2765
|
+
onChange: e.change,
|
|
2766
|
+
onCalendarChange: e.calendarChange,
|
|
2767
|
+
onOpenChange: e.openChange
|
|
2768
|
+
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "disabled-date", "onChange", "onCalendarChange", "onOpenChange"])
|
|
2758
2769
|
], 4);
|
|
2759
2770
|
}
|
|
2760
|
-
const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-
|
|
2771
|
+
const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-7a08450d"]]), Pi = ae(Ni), en = {
|
|
2761
2772
|
...se,
|
|
2762
2773
|
width: "200px",
|
|
2763
2774
|
name: "按钮",
|
|
@@ -2781,14 +2792,14 @@ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-24f19e2d
|
|
|
2781
2792
|
},
|
|
2782
2793
|
setup(e) {
|
|
2783
2794
|
const o = re(e), n = me(e)("click", () => {
|
|
2784
|
-
const r =
|
|
2795
|
+
const r = b(l);
|
|
2785
2796
|
r && e.target === "event" && window.parent.postMessage({
|
|
2786
2797
|
type: "openPage",
|
|
2787
2798
|
url: r
|
|
2788
2799
|
}, "*");
|
|
2789
2800
|
}), a = q(() => de(e.text)), l = q(() => de(e.href) || null), i = q(() => {
|
|
2790
2801
|
const r = e.target;
|
|
2791
|
-
if (!(r === "event" ||
|
|
2802
|
+
if (!(r === "event" || b(l) == null))
|
|
2792
2803
|
return {
|
|
2793
2804
|
self: "_self",
|
|
2794
2805
|
blank: "_blank"
|
|
@@ -2857,10 +2868,10 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2857
2868
|
setup(e) {
|
|
2858
2869
|
const o = re(e), t = M([]), n = M([]), a = (d) => {
|
|
2859
2870
|
const u = e.value;
|
|
2860
|
-
let
|
|
2861
|
-
d.forEach((
|
|
2862
|
-
|
|
2863
|
-
}), typeof u == "string" && u !== "" ?
|
|
2871
|
+
let y = [];
|
|
2872
|
+
d.forEach((g) => {
|
|
2873
|
+
g.checked && y.push(g.value);
|
|
2874
|
+
}), typeof u == "string" && u !== "" ? y = y.concat(u.split(",")) : Array.isArray(u) && (y = y.concat(u)), t.value = d, n.value = y;
|
|
2864
2875
|
};
|
|
2865
2876
|
ne(() => [e.data, e.value], ([d]) => {
|
|
2866
2877
|
a(d);
|
|
@@ -2871,10 +2882,10 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2871
2882
|
const l = _e(e), { pageMode: i } = N(fe, {
|
|
2872
2883
|
pageMode: "normal"
|
|
2873
2884
|
}), r = async () => {
|
|
2874
|
-
var
|
|
2875
|
-
if (e.dataType !== "request" ||
|
|
2885
|
+
var y, g;
|
|
2886
|
+
if (e.dataType !== "request" || b(i) === "design")
|
|
2876
2887
|
return;
|
|
2877
|
-
const d = await l(), u = ((
|
|
2888
|
+
const d = await l(), u = ((g = (y = d == null ? void 0 : d.data) == null ? void 0 : y.data) == null ? void 0 : g.rows) || [];
|
|
2878
2889
|
a(u);
|
|
2879
2890
|
}, { getGlobalModel: s, setGlobalModel: f } = N(ye, {
|
|
2880
2891
|
// @ts-ignore
|
|
@@ -2890,16 +2901,16 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2890
2901
|
type: e.type,
|
|
2891
2902
|
value: n
|
|
2892
2903
|
});
|
|
2893
|
-
const
|
|
2904
|
+
const v = me(e)("checkboxChange", () => {
|
|
2894
2905
|
const d = s(e.id);
|
|
2895
2906
|
f(e.id, { ...d, RECORD: n });
|
|
2896
|
-
}), { setRequest:
|
|
2907
|
+
}), { setRequest: x } = N(Se, {
|
|
2897
2908
|
// @ts-ignore
|
|
2898
2909
|
// eslint-disable-next-line no-void
|
|
2899
|
-
setRequest: ({ id: d, sortNum: u, requestFn:
|
|
2910
|
+
setRequest: ({ id: d, sortNum: u, requestFn: y }) => {
|
|
2900
2911
|
}
|
|
2901
2912
|
});
|
|
2902
|
-
return
|
|
2913
|
+
return x({
|
|
2903
2914
|
id: e.id,
|
|
2904
2915
|
requestFn: r,
|
|
2905
2916
|
sortNum: e.requestSort
|
|
@@ -2907,7 +2918,7 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2907
2918
|
myOption: t,
|
|
2908
2919
|
style: o,
|
|
2909
2920
|
myValue: n,
|
|
2910
|
-
checkboxChange:
|
|
2921
|
+
checkboxChange: v
|
|
2911
2922
|
};
|
|
2912
2923
|
}
|
|
2913
2924
|
});
|
|
@@ -3019,12 +3030,12 @@ const Qi = Q({
|
|
|
3019
3030
|
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3020
3031
|
a.value = !1;
|
|
3021
3032
|
}, i = q(() => {
|
|
3022
|
-
let { data:
|
|
3033
|
+
let { data: A = [] } = b(n)[0] || {};
|
|
3023
3034
|
if (Array.isArray(e.colors)) {
|
|
3024
|
-
const
|
|
3025
|
-
|
|
3026
|
-
label:
|
|
3027
|
-
...
|
|
3035
|
+
const w = e.isUseLabelColors, c = e.colors;
|
|
3036
|
+
A = A.map((m, k) => ({
|
|
3037
|
+
label: w ? { color: c[k] } : {},
|
|
3038
|
+
...m
|
|
3028
3039
|
}));
|
|
3029
3040
|
}
|
|
3030
3041
|
return {
|
|
@@ -3080,8 +3091,8 @@ const Qi = Q({
|
|
|
3080
3091
|
tooltip: {
|
|
3081
3092
|
show: e.tooltipShow,
|
|
3082
3093
|
trigger: e.tooltipTrigger,
|
|
3083
|
-
formatter: (
|
|
3084
|
-
const { marker: c, seriesName:
|
|
3094
|
+
formatter: (w) => {
|
|
3095
|
+
const { marker: c, seriesName: m, name: k, value: R, percent: E, data: T } = w || {};
|
|
3085
3096
|
return de(
|
|
3086
3097
|
e.tooltipFormatter,
|
|
3087
3098
|
{
|
|
@@ -3090,7 +3101,7 @@ const Qi = Q({
|
|
|
3090
3101
|
name: k,
|
|
3091
3102
|
value: R,
|
|
3092
3103
|
percent: E,
|
|
3093
|
-
a:
|
|
3104
|
+
a: m,
|
|
3094
3105
|
b: k,
|
|
3095
3106
|
c: R,
|
|
3096
3107
|
d: E,
|
|
@@ -3120,7 +3131,7 @@ const Qi = Q({
|
|
|
3120
3131
|
color: e.colors,
|
|
3121
3132
|
series: [
|
|
3122
3133
|
{
|
|
3123
|
-
data:
|
|
3134
|
+
data: A,
|
|
3124
3135
|
type: "pie",
|
|
3125
3136
|
radius: [e.innerRadius, e.outerRadius],
|
|
3126
3137
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3158,69 +3169,69 @@ const Qi = Q({
|
|
|
3158
3169
|
}), { getGlobalModel: r, setGlobalModel: s } = N(ye, {
|
|
3159
3170
|
// @ts-ignore
|
|
3160
3171
|
// eslint-disable-next-line no-void
|
|
3161
|
-
getGlobalModel: (
|
|
3172
|
+
getGlobalModel: (A) => {
|
|
3162
3173
|
},
|
|
3163
3174
|
// @ts-ignore
|
|
3164
3175
|
// eslint-disable-next-line no-void
|
|
3165
|
-
setGlobalModel: (
|
|
3176
|
+
setGlobalModel: (A, w) => {
|
|
3166
3177
|
}
|
|
3167
3178
|
}), { pageMode: f } = N(fe, {
|
|
3168
3179
|
pageMode: "normal"
|
|
3169
|
-
}),
|
|
3170
|
-
const { dataset: c } = Qe(
|
|
3180
|
+
}), C = (A = [], w) => {
|
|
3181
|
+
const { dataset: c } = Qe(A, w);
|
|
3171
3182
|
n.value = c;
|
|
3172
|
-
},
|
|
3173
|
-
const c = Qe(
|
|
3183
|
+
}, v = (A = [], w) => {
|
|
3184
|
+
const c = Qe(A, w);
|
|
3174
3185
|
n.value = c.dataset;
|
|
3175
3186
|
};
|
|
3176
|
-
ne(() => e.data, (
|
|
3177
|
-
(e.dataType === "static" ||
|
|
3187
|
+
ne(() => e.data, (A) => {
|
|
3188
|
+
(e.dataType === "static" || b(f) === "design") && C(A);
|
|
3178
3189
|
}, {
|
|
3179
3190
|
immediate: !0,
|
|
3180
3191
|
deep: !0
|
|
3181
3192
|
});
|
|
3182
|
-
const
|
|
3183
|
-
var
|
|
3184
|
-
if (!(e.dataType !== "request" ||
|
|
3193
|
+
const x = M(!1), d = _e(e), u = async () => {
|
|
3194
|
+
var A, w;
|
|
3195
|
+
if (!(e.dataType !== "request" || b(f) === "design"))
|
|
3185
3196
|
try {
|
|
3186
|
-
|
|
3197
|
+
x.value = !0;
|
|
3187
3198
|
const c = await d();
|
|
3188
|
-
|
|
3199
|
+
C((w = (A = c == null ? void 0 : c.data) == null ? void 0 : A.data) == null ? void 0 : w.rows, e.valueTypeDataFieldNames);
|
|
3189
3200
|
} catch (c) {
|
|
3190
3201
|
console.error(c);
|
|
3191
3202
|
} finally {
|
|
3192
|
-
|
|
3203
|
+
x.value = !1;
|
|
3193
3204
|
}
|
|
3194
|
-
},
|
|
3195
|
-
const
|
|
3196
|
-
s(e.id, { ...
|
|
3197
|
-
}),
|
|
3198
|
-
var
|
|
3205
|
+
}, g = me(e)("click", (A) => {
|
|
3206
|
+
const w = r(e.id);
|
|
3207
|
+
s(e.id, { ...w, RECORD: A == null ? void 0 : A.data });
|
|
3208
|
+
}), h = ot(e), p = async () => {
|
|
3209
|
+
var A;
|
|
3199
3210
|
try {
|
|
3200
|
-
|
|
3201
|
-
const
|
|
3211
|
+
x.value = !0;
|
|
3212
|
+
const w = await h(), { data: c } = w.data || {};
|
|
3202
3213
|
if (c) {
|
|
3203
|
-
const { columns:
|
|
3214
|
+
const { columns: m = [], rows: k = [] } = ((A = w == null ? void 0 : w.data) == null ? void 0 : A.data) ?? {};
|
|
3204
3215
|
let R = [];
|
|
3205
|
-
if (
|
|
3206
|
-
const E =
|
|
3216
|
+
if (m.length > 0) {
|
|
3217
|
+
const E = m[0], T = m[1];
|
|
3207
3218
|
R = k.map((j) => ({
|
|
3208
3219
|
name: j[E],
|
|
3209
3220
|
value: j[T]
|
|
3210
3221
|
}));
|
|
3211
3222
|
}
|
|
3212
|
-
|
|
3223
|
+
v(R);
|
|
3213
3224
|
}
|
|
3214
|
-
} catch (
|
|
3215
|
-
console.error(
|
|
3225
|
+
} catch (w) {
|
|
3226
|
+
console.error(w);
|
|
3216
3227
|
} finally {
|
|
3217
|
-
|
|
3228
|
+
x.value = !1;
|
|
3218
3229
|
}
|
|
3219
|
-
},
|
|
3220
|
-
if (
|
|
3230
|
+
}, _ = () => {
|
|
3231
|
+
if (b(f) !== "design")
|
|
3221
3232
|
switch (e.dataType) {
|
|
3222
3233
|
case "indicator":
|
|
3223
|
-
|
|
3234
|
+
p();
|
|
3224
3235
|
break;
|
|
3225
3236
|
case "request":
|
|
3226
3237
|
u();
|
|
@@ -3229,27 +3240,27 @@ const Qi = Q({
|
|
|
3229
3240
|
};
|
|
3230
3241
|
he(e, {
|
|
3231
3242
|
resetRecord: () => {
|
|
3232
|
-
const
|
|
3233
|
-
s(
|
|
3243
|
+
const A = e.id, w = r(A);
|
|
3244
|
+
s(A, { ...w, RECORD: "" });
|
|
3234
3245
|
},
|
|
3235
|
-
refreshData:
|
|
3236
|
-
click:
|
|
3246
|
+
refreshData: _,
|
|
3247
|
+
click: g
|
|
3237
3248
|
}), o({
|
|
3238
|
-
refreshData:
|
|
3249
|
+
refreshData: _
|
|
3239
3250
|
});
|
|
3240
|
-
const { setRequest:
|
|
3241
|
-
setRequest: (
|
|
3251
|
+
const { setRequest: S } = N(Se, {
|
|
3252
|
+
setRequest: (A) => {
|
|
3242
3253
|
}
|
|
3243
3254
|
});
|
|
3244
|
-
return typeof
|
|
3255
|
+
return typeof S == "function" && S({
|
|
3245
3256
|
id: e.id,
|
|
3246
|
-
requestFn:
|
|
3257
|
+
requestFn: _,
|
|
3247
3258
|
sortNum: e.requestSort
|
|
3248
3259
|
}), {
|
|
3249
3260
|
option: i,
|
|
3250
3261
|
style: t,
|
|
3251
|
-
click:
|
|
3252
|
-
loading:
|
|
3262
|
+
click: g,
|
|
3263
|
+
loading: x,
|
|
3253
3264
|
visible: a,
|
|
3254
3265
|
hideModal: l
|
|
3255
3266
|
};
|
|
@@ -3385,7 +3396,7 @@ const or = Q({
|
|
|
3385
3396
|
const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
|
|
3386
3397
|
l.value = !1;
|
|
3387
3398
|
}, r = q(() => {
|
|
3388
|
-
const
|
|
3399
|
+
const w = e.xAxisLabelFormatter, c = e.yAxisLabelFormatter;
|
|
3389
3400
|
return {
|
|
3390
3401
|
toolbox: {
|
|
3391
3402
|
show: e.toolboxShow,
|
|
@@ -3439,12 +3450,12 @@ const or = Q({
|
|
|
3439
3450
|
tooltip: {
|
|
3440
3451
|
trigger: "axis",
|
|
3441
3452
|
show: e.tooltipShow,
|
|
3442
|
-
formatter: (
|
|
3443
|
-
const k =
|
|
3453
|
+
formatter: (m) => {
|
|
3454
|
+
const k = m.length;
|
|
3444
3455
|
let R = "", E = e.tooltipFormatter;
|
|
3445
3456
|
E === "" && (E = "{marker} {a} {c}");
|
|
3446
3457
|
for (let T = 0; T < k; T++) {
|
|
3447
|
-
const { marker: j, seriesName: J, name: F, value: B, data: z } =
|
|
3458
|
+
const { marker: j, seriesName: J, name: F, value: B, data: z } = m[T] || {};
|
|
3448
3459
|
T === 0 && (R += `${F}<br/>`), R += de(
|
|
3449
3460
|
E,
|
|
3450
3461
|
{
|
|
@@ -3469,7 +3480,7 @@ const or = Q({
|
|
|
3469
3480
|
},
|
|
3470
3481
|
xAxis: {
|
|
3471
3482
|
type: "category",
|
|
3472
|
-
data:
|
|
3483
|
+
data: b(a),
|
|
3473
3484
|
minInterval: e.xAxisMinInterval,
|
|
3474
3485
|
splitLine: {
|
|
3475
3486
|
show: e.xAxisSplitLineShow,
|
|
@@ -3483,8 +3494,8 @@ const or = Q({
|
|
|
3483
3494
|
rotate: e.xAxisLabelRotate,
|
|
3484
3495
|
width: e.xAxisLabelWidth,
|
|
3485
3496
|
overflow: e.xAxisLabelOverflow,
|
|
3486
|
-
formatter(
|
|
3487
|
-
return Ne(
|
|
3497
|
+
formatter(m) {
|
|
3498
|
+
return Ne(w, m);
|
|
3488
3499
|
}
|
|
3489
3500
|
},
|
|
3490
3501
|
axisLine: {
|
|
@@ -3507,8 +3518,8 @@ const or = Q({
|
|
|
3507
3518
|
},
|
|
3508
3519
|
axisLabel: {
|
|
3509
3520
|
color: e.yAxisLabelColor,
|
|
3510
|
-
formatter(
|
|
3511
|
-
return Ne(c,
|
|
3521
|
+
formatter(m) {
|
|
3522
|
+
return Ne(c, m);
|
|
3512
3523
|
}
|
|
3513
3524
|
},
|
|
3514
3525
|
axisLine: {
|
|
@@ -3524,30 +3535,30 @@ const or = Q({
|
|
|
3524
3535
|
top: e.legendTop,
|
|
3525
3536
|
left: e.legendLeft
|
|
3526
3537
|
},
|
|
3527
|
-
series:
|
|
3538
|
+
series: b(n)
|
|
3528
3539
|
};
|
|
3529
3540
|
}), { getGlobalModel: s, setGlobalModel: f } = N(ye, {
|
|
3530
3541
|
// @ts-ignore
|
|
3531
3542
|
// eslint-disable-next-line no-void
|
|
3532
|
-
getGlobalModel: (
|
|
3543
|
+
getGlobalModel: (w) => {
|
|
3533
3544
|
},
|
|
3534
3545
|
// @ts-ignore
|
|
3535
3546
|
// eslint-disable-next-line no-void
|
|
3536
|
-
setGlobalModel: (
|
|
3547
|
+
setGlobalModel: (w, c) => {
|
|
3537
3548
|
}
|
|
3538
|
-
}), { pageMode:
|
|
3549
|
+
}), { pageMode: C } = N(fe, {
|
|
3539
3550
|
pageMode: "normal"
|
|
3540
|
-
}),
|
|
3541
|
-
let
|
|
3551
|
+
}), v = (w = [], c = !1) => {
|
|
3552
|
+
let m;
|
|
3542
3553
|
if (e.dataFieldConfigType === "key") {
|
|
3543
3554
|
const T = c ? e.keyTypeDataFieldNames : null;
|
|
3544
|
-
|
|
3555
|
+
m = Ge(w, T);
|
|
3545
3556
|
} else if (e.dataFieldConfigType === "value") {
|
|
3546
3557
|
const T = c ? e.valueTypeDataFieldNames : null;
|
|
3547
|
-
|
|
3558
|
+
m = Qe(w, T);
|
|
3548
3559
|
}
|
|
3549
|
-
a.value =
|
|
3550
|
-
const k =
|
|
3560
|
+
a.value = m.dimensions;
|
|
3561
|
+
const k = m.dataset, R = [], E = k.length;
|
|
3551
3562
|
for (let T = 0; T < E; T++)
|
|
3552
3563
|
R.push({
|
|
3553
3564
|
type: "line",
|
|
@@ -3575,8 +3586,8 @@ const or = Q({
|
|
|
3575
3586
|
}
|
|
3576
3587
|
});
|
|
3577
3588
|
n.value = R;
|
|
3578
|
-
},
|
|
3579
|
-
const R = Ge(
|
|
3589
|
+
}, x = (w = [], c, m = !1) => {
|
|
3590
|
+
const R = Ge(w, m ? c : null);
|
|
3580
3591
|
a.value = R.dimensions;
|
|
3581
3592
|
const E = R.dataset, T = [], j = E.length;
|
|
3582
3593
|
for (let J = 0; J < j; J++)
|
|
@@ -3591,78 +3602,78 @@ const or = Q({
|
|
|
3591
3602
|
});
|
|
3592
3603
|
n.value = T;
|
|
3593
3604
|
};
|
|
3594
|
-
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
3595
|
-
(e.dataType === "static" ||
|
|
3605
|
+
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([w]) => {
|
|
3606
|
+
(e.dataType === "static" || b(C) === "design") && v(w);
|
|
3596
3607
|
}, {
|
|
3597
3608
|
immediate: !0,
|
|
3598
3609
|
deep: !0
|
|
3599
3610
|
});
|
|
3600
|
-
const d = M(!1), u = _e(e),
|
|
3601
|
-
var
|
|
3602
|
-
if (!(e.dataType !== "request" ||
|
|
3611
|
+
const d = M(!1), u = _e(e), y = async () => {
|
|
3612
|
+
var w, c;
|
|
3613
|
+
if (!(e.dataType !== "request" || b(C) === "design"))
|
|
3603
3614
|
try {
|
|
3604
3615
|
d.value = !0;
|
|
3605
|
-
const
|
|
3606
|
-
|
|
3607
|
-
} catch (
|
|
3608
|
-
console.error(
|
|
3616
|
+
const m = await u();
|
|
3617
|
+
v((c = (w = m == null ? void 0 : m.data) == null ? void 0 : w.data) == null ? void 0 : c.rows, !0);
|
|
3618
|
+
} catch (m) {
|
|
3619
|
+
console.error(m);
|
|
3609
3620
|
} finally {
|
|
3610
3621
|
d.value = !1;
|
|
3611
3622
|
}
|
|
3612
|
-
},
|
|
3623
|
+
}, h = me(e)("click", (w) => {
|
|
3613
3624
|
const c = s(e.id);
|
|
3614
|
-
f(e.id, { ...c, RECORD:
|
|
3615
|
-
}),
|
|
3616
|
-
var
|
|
3625
|
+
f(e.id, { ...c, RECORD: w == null ? void 0 : w.data });
|
|
3626
|
+
}), p = ot(e), _ = async () => {
|
|
3627
|
+
var w;
|
|
3617
3628
|
try {
|
|
3618
3629
|
d.value = !0;
|
|
3619
|
-
const c = await
|
|
3630
|
+
const c = await p(), { columns: m = [], rows: k = [] } = ((w = c == null ? void 0 : c.data) == null ? void 0 : w.data) ?? {};
|
|
3620
3631
|
let R;
|
|
3621
|
-
|
|
3622
|
-
name:
|
|
3623
|
-
types:
|
|
3632
|
+
m.length > 0 && (R = {
|
|
3633
|
+
name: m[0],
|
|
3634
|
+
types: m.slice(1).map((E) => ({
|
|
3624
3635
|
label: E,
|
|
3625
3636
|
value: E
|
|
3626
3637
|
}))
|
|
3627
|
-
}),
|
|
3638
|
+
}), x(k, R, !0);
|
|
3628
3639
|
} catch (c) {
|
|
3629
3640
|
console.error(c);
|
|
3630
3641
|
} finally {
|
|
3631
3642
|
d.value = !1;
|
|
3632
3643
|
}
|
|
3633
|
-
},
|
|
3634
|
-
if (
|
|
3644
|
+
}, I = () => {
|
|
3645
|
+
if (b(C) !== "design")
|
|
3635
3646
|
switch (e.dataType) {
|
|
3636
3647
|
case "indicator":
|
|
3637
|
-
|
|
3648
|
+
_();
|
|
3638
3649
|
break;
|
|
3639
3650
|
case "request":
|
|
3640
|
-
|
|
3651
|
+
y();
|
|
3641
3652
|
break;
|
|
3642
3653
|
}
|
|
3643
3654
|
};
|
|
3644
3655
|
he(e, {
|
|
3645
|
-
refreshData:
|
|
3656
|
+
refreshData: I,
|
|
3646
3657
|
resetRecord: () => {
|
|
3647
|
-
const
|
|
3648
|
-
f(
|
|
3658
|
+
const w = e.id, c = s(w);
|
|
3659
|
+
f(w, { ...c, RECORD: "" });
|
|
3649
3660
|
},
|
|
3650
|
-
click:
|
|
3661
|
+
click: h
|
|
3651
3662
|
});
|
|
3652
|
-
const { setRequest:
|
|
3653
|
-
setRequest: (
|
|
3663
|
+
const { setRequest: A } = N(Se, {
|
|
3664
|
+
setRequest: (w) => {
|
|
3654
3665
|
}
|
|
3655
3666
|
});
|
|
3656
|
-
return typeof
|
|
3667
|
+
return typeof A == "function" && A({
|
|
3657
3668
|
id: e.id,
|
|
3658
|
-
requestFn:
|
|
3669
|
+
requestFn: I,
|
|
3659
3670
|
sortNum: e.requestSort
|
|
3660
3671
|
}), o({
|
|
3661
|
-
refreshData:
|
|
3672
|
+
refreshData: I
|
|
3662
3673
|
}), {
|
|
3663
3674
|
option: r,
|
|
3664
3675
|
style: t,
|
|
3665
|
-
click:
|
|
3676
|
+
click: h,
|
|
3666
3677
|
loading: d,
|
|
3667
3678
|
visible: l,
|
|
3668
3679
|
hideModal: i
|
|
@@ -3820,8 +3831,8 @@ const rr = Q({
|
|
|
3820
3831
|
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3821
3832
|
a.value = !1;
|
|
3822
3833
|
}, i = q(() => {
|
|
3823
|
-
const c =
|
|
3824
|
-
for (let R = 0; R <
|
|
3834
|
+
const c = b(n), m = c.length, k = [];
|
|
3835
|
+
for (let R = 0; R < m; R++) {
|
|
3825
3836
|
const E = {
|
|
3826
3837
|
...c[R],
|
|
3827
3838
|
type: "bar",
|
|
@@ -3836,7 +3847,7 @@ const rr = Q({
|
|
|
3836
3847
|
}
|
|
3837
3848
|
return k;
|
|
3838
3849
|
}), r = M([]), s = M(!1), f = q(() => {
|
|
3839
|
-
const c = e.yAxisLabelFormatter,
|
|
3850
|
+
const c = e.yAxisLabelFormatter, m = e.xAxisLabelFormatter;
|
|
3840
3851
|
return {
|
|
3841
3852
|
toolbox: {
|
|
3842
3853
|
show: e.toolboxShow,
|
|
@@ -3935,7 +3946,7 @@ const rr = Q({
|
|
|
3935
3946
|
},
|
|
3936
3947
|
xAxis: {
|
|
3937
3948
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
3938
|
-
data: e.isUseHorizontalAxis ? null :
|
|
3949
|
+
data: e.isUseHorizontalAxis ? null : b(r),
|
|
3939
3950
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
3940
3951
|
minInterval: e.xAxisMinInterval,
|
|
3941
3952
|
splitLine: {
|
|
@@ -3951,7 +3962,7 @@ const rr = Q({
|
|
|
3951
3962
|
width: e.xAxisLabelWidth,
|
|
3952
3963
|
overflow: e.xAxisLabelOverflow,
|
|
3953
3964
|
formatter(k) {
|
|
3954
|
-
return Ne(
|
|
3965
|
+
return Ne(m, k);
|
|
3955
3966
|
}
|
|
3956
3967
|
},
|
|
3957
3968
|
axisLine: {
|
|
@@ -3965,7 +3976,7 @@ const rr = Q({
|
|
|
3965
3976
|
},
|
|
3966
3977
|
yAxis: {
|
|
3967
3978
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
3968
|
-
data: e.isUseHorizontalAxis ?
|
|
3979
|
+
data: e.isUseHorizontalAxis ? b(r) : null,
|
|
3969
3980
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
3970
3981
|
minInterval: e.yAxisMinInterval,
|
|
3971
3982
|
splitLine: {
|
|
@@ -3989,46 +4000,46 @@ const rr = Q({
|
|
|
3989
4000
|
}
|
|
3990
4001
|
}
|
|
3991
4002
|
},
|
|
3992
|
-
series:
|
|
4003
|
+
series: b(i)
|
|
3993
4004
|
};
|
|
3994
|
-
}), { pageMode:
|
|
4005
|
+
}), { pageMode: C } = N(fe, {
|
|
3995
4006
|
pageMode: "normal"
|
|
3996
|
-
}),
|
|
4007
|
+
}), v = (c = [], m = !1) => {
|
|
3997
4008
|
let k = {};
|
|
3998
4009
|
if (e.dataFieldConfigType === "key") {
|
|
3999
|
-
const R =
|
|
4010
|
+
const R = m ? e.keyTypeDataFieldNames : null;
|
|
4000
4011
|
k = Ge(c, R);
|
|
4001
4012
|
} else if (e.dataFieldConfigType === "value") {
|
|
4002
|
-
const R =
|
|
4013
|
+
const R = m ? e.valueTypeDataFieldNames : null;
|
|
4003
4014
|
k = Qe(c, R);
|
|
4004
4015
|
}
|
|
4005
4016
|
n.value = k.dataset, r.value = k.dimensions;
|
|
4006
|
-
},
|
|
4007
|
-
const E = Ge(c, k ?
|
|
4017
|
+
}, x = (c = [], m, k = !1) => {
|
|
4018
|
+
const E = Ge(c, k ? m : null);
|
|
4008
4019
|
n.value = E.dataset, r.value = E.dimensions;
|
|
4009
4020
|
};
|
|
4010
4021
|
ne(() => e.data, (c) => {
|
|
4011
|
-
(e.dataType === "static" ||
|
|
4022
|
+
(e.dataType === "static" || b(C) === "design") && v(c);
|
|
4012
4023
|
}, {
|
|
4013
4024
|
immediate: !0,
|
|
4014
4025
|
deep: !0
|
|
4015
4026
|
});
|
|
4016
4027
|
const d = _e(e), u = async () => {
|
|
4017
|
-
var c,
|
|
4028
|
+
var c, m;
|
|
4018
4029
|
try {
|
|
4019
4030
|
s.value = !0;
|
|
4020
4031
|
const k = await d();
|
|
4021
|
-
|
|
4032
|
+
v((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
|
|
4022
4033
|
} catch (k) {
|
|
4023
4034
|
console.error(k);
|
|
4024
4035
|
} finally {
|
|
4025
4036
|
s.value = !1;
|
|
4026
4037
|
}
|
|
4027
|
-
},
|
|
4038
|
+
}, y = ot(e), g = async () => {
|
|
4028
4039
|
var c;
|
|
4029
4040
|
try {
|
|
4030
4041
|
s.value = !0;
|
|
4031
|
-
const
|
|
4042
|
+
const m = await y(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
|
|
4032
4043
|
let E;
|
|
4033
4044
|
k.length > 0 && (E = {
|
|
4034
4045
|
name: k[0],
|
|
@@ -4036,17 +4047,17 @@ const rr = Q({
|
|
|
4036
4047
|
label: T,
|
|
4037
4048
|
value: T
|
|
4038
4049
|
}))
|
|
4039
|
-
}),
|
|
4040
|
-
} catch (
|
|
4041
|
-
console.error(
|
|
4050
|
+
}), x(R, E, !0);
|
|
4051
|
+
} catch (m) {
|
|
4052
|
+
console.error(m);
|
|
4042
4053
|
} finally {
|
|
4043
4054
|
s.value = !1;
|
|
4044
4055
|
}
|
|
4045
|
-
},
|
|
4046
|
-
if (
|
|
4056
|
+
}, h = () => {
|
|
4057
|
+
if (b(C) !== "design")
|
|
4047
4058
|
switch (e.dataType) {
|
|
4048
4059
|
case "indicator":
|
|
4049
|
-
|
|
4060
|
+
g();
|
|
4050
4061
|
break;
|
|
4051
4062
|
case "request":
|
|
4052
4063
|
u();
|
|
@@ -4054,40 +4065,40 @@ const rr = Q({
|
|
|
4054
4065
|
}
|
|
4055
4066
|
};
|
|
4056
4067
|
o({
|
|
4057
|
-
refreshData:
|
|
4068
|
+
refreshData: h
|
|
4058
4069
|
});
|
|
4059
|
-
const
|
|
4070
|
+
const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
|
|
4060
4071
|
// @ts-ignore
|
|
4061
4072
|
// eslint-disable-next-line no-void
|
|
4062
4073
|
getGlobalModel: (c) => {
|
|
4063
4074
|
},
|
|
4064
4075
|
// @ts-ignore
|
|
4065
4076
|
// eslint-disable-next-line no-void
|
|
4066
|
-
setGlobalModel: (c,
|
|
4077
|
+
setGlobalModel: (c, m) => {
|
|
4067
4078
|
}
|
|
4068
|
-
}),
|
|
4069
|
-
const
|
|
4070
|
-
|
|
4071
|
-
}), { setRequest:
|
|
4079
|
+
}), S = p("click", (c) => {
|
|
4080
|
+
const m = _(e.id);
|
|
4081
|
+
I(e.id, { ...m, RECORD: c.data });
|
|
4082
|
+
}), { setRequest: A } = N(Se, {
|
|
4072
4083
|
setRequest: (c) => {
|
|
4073
4084
|
}
|
|
4074
4085
|
});
|
|
4075
|
-
return typeof
|
|
4086
|
+
return typeof A == "function" && A({
|
|
4076
4087
|
id: e.id,
|
|
4077
|
-
requestFn:
|
|
4088
|
+
requestFn: h,
|
|
4078
4089
|
sortNum: e.requestSort
|
|
4079
4090
|
}), he(e, {
|
|
4080
|
-
refreshData:
|
|
4081
|
-
click:
|
|
4091
|
+
refreshData: h,
|
|
4092
|
+
click: S,
|
|
4082
4093
|
resetRecord: () => {
|
|
4083
|
-
const c = e.id,
|
|
4084
|
-
|
|
4094
|
+
const c = e.id, m = _(c);
|
|
4095
|
+
I(c, { ...m, RECORD: "" });
|
|
4085
4096
|
}
|
|
4086
4097
|
}), {
|
|
4087
4098
|
option: f,
|
|
4088
4099
|
style: t,
|
|
4089
|
-
refreshData:
|
|
4090
|
-
click:
|
|
4100
|
+
refreshData: h,
|
|
4101
|
+
click: S,
|
|
4091
4102
|
loading: s,
|
|
4092
4103
|
visible: a,
|
|
4093
4104
|
hideModal: l
|
|
@@ -4218,7 +4229,7 @@ const fr = Q({
|
|
|
4218
4229
|
const o = re(e), t = M([]), n = M(!1), a = () => {
|
|
4219
4230
|
n.value = !1;
|
|
4220
4231
|
}, l = q(() => {
|
|
4221
|
-
const
|
|
4232
|
+
const p = e.xAxisLabelFormatter, _ = e.yAxisLabelFormatter;
|
|
4222
4233
|
return {
|
|
4223
4234
|
toolbox: {
|
|
4224
4235
|
show: e.toolboxShow,
|
|
@@ -4283,8 +4294,8 @@ const fr = Q({
|
|
|
4283
4294
|
rotate: e.xAxisLabelRotate,
|
|
4284
4295
|
width: e.xAxisLabelWidth,
|
|
4285
4296
|
overflow: e.xAxisLabelOverflow,
|
|
4286
|
-
formatter(
|
|
4287
|
-
return Ne(
|
|
4297
|
+
formatter(I) {
|
|
4298
|
+
return Ne(p, I);
|
|
4288
4299
|
}
|
|
4289
4300
|
},
|
|
4290
4301
|
axisLine: {
|
|
@@ -4305,8 +4316,8 @@ const fr = Q({
|
|
|
4305
4316
|
},
|
|
4306
4317
|
axisLabel: {
|
|
4307
4318
|
color: e.yAxisLabelColor,
|
|
4308
|
-
formatter(
|
|
4309
|
-
return Ne(
|
|
4319
|
+
formatter(I) {
|
|
4320
|
+
return Ne(_, I);
|
|
4310
4321
|
}
|
|
4311
4322
|
},
|
|
4312
4323
|
axisLine: {
|
|
@@ -4319,17 +4330,17 @@ const fr = Q({
|
|
|
4319
4330
|
tooltip: {
|
|
4320
4331
|
show: e.tooltipShow,
|
|
4321
4332
|
trigger: e.tooltipTrigger,
|
|
4322
|
-
formatter: function(
|
|
4333
|
+
formatter: function(I) {
|
|
4323
4334
|
var k;
|
|
4324
|
-
const { marker:
|
|
4335
|
+
const { marker: S, seriesName: A } = I, w = ((k = I == null ? void 0 : I.data) == null ? void 0 : k.record) ?? {}, { name: c, value: m } = w;
|
|
4325
4336
|
return de(e.tooltipFormatter, {
|
|
4326
4337
|
textData: {
|
|
4327
|
-
marker:
|
|
4328
|
-
seriesName:
|
|
4329
|
-
a:
|
|
4338
|
+
marker: S,
|
|
4339
|
+
seriesName: A,
|
|
4340
|
+
a: A,
|
|
4330
4341
|
b: c,
|
|
4331
|
-
c:
|
|
4332
|
-
...
|
|
4342
|
+
c: m,
|
|
4343
|
+
...w
|
|
4333
4344
|
}
|
|
4334
4345
|
});
|
|
4335
4346
|
},
|
|
@@ -4346,7 +4357,7 @@ const fr = Q({
|
|
|
4346
4357
|
},
|
|
4347
4358
|
series: [
|
|
4348
4359
|
{
|
|
4349
|
-
data:
|
|
4360
|
+
data: b(t),
|
|
4350
4361
|
type: "scatter",
|
|
4351
4362
|
symbolSize: e.symbolSize
|
|
4352
4363
|
}
|
|
@@ -4355,64 +4366,64 @@ const fr = Q({
|
|
|
4355
4366
|
}), { getGlobalModel: i, setGlobalModel: r } = N(ye, {
|
|
4356
4367
|
// @ts-ignore
|
|
4357
4368
|
// eslint-disable-next-line no-void
|
|
4358
|
-
getGlobalModel: (
|
|
4369
|
+
getGlobalModel: (p) => {
|
|
4359
4370
|
},
|
|
4360
4371
|
// @ts-ignore
|
|
4361
4372
|
// eslint-disable-next-line no-void
|
|
4362
|
-
setGlobalModel: (
|
|
4373
|
+
setGlobalModel: (p, _) => {
|
|
4363
4374
|
}
|
|
4364
4375
|
}), { pageMode: s } = N(fe, {
|
|
4365
4376
|
pageMode: "normal"
|
|
4366
|
-
}), f = (
|
|
4367
|
-
const { name:
|
|
4368
|
-
t.value =
|
|
4377
|
+
}), f = (p = [], _) => {
|
|
4378
|
+
const { name: I = "name", value: S = "value" } = _ || {};
|
|
4379
|
+
t.value = p.map((A) => ({ value: [A[I], A[S]], record: A }));
|
|
4369
4380
|
};
|
|
4370
|
-
ne(() => e.data, (
|
|
4371
|
-
(e.dataType === "static" ||
|
|
4381
|
+
ne(() => e.data, (p) => {
|
|
4382
|
+
(e.dataType === "static" || b(s) === "design") && f(p);
|
|
4372
4383
|
}, {
|
|
4373
4384
|
immediate: !0,
|
|
4374
4385
|
deep: !0
|
|
4375
4386
|
});
|
|
4376
|
-
const
|
|
4377
|
-
var
|
|
4378
|
-
if (!(e.dataType !== "request" ||
|
|
4379
|
-
|
|
4387
|
+
const C = M(!1), v = _e(e), x = async () => {
|
|
4388
|
+
var p, _;
|
|
4389
|
+
if (!(e.dataType !== "request" || b(s) === "design")) {
|
|
4390
|
+
C.value = !0;
|
|
4380
4391
|
try {
|
|
4381
|
-
const
|
|
4382
|
-
f((
|
|
4383
|
-
} catch (
|
|
4384
|
-
console.error(
|
|
4392
|
+
const I = await v();
|
|
4393
|
+
f((_ = (p = I == null ? void 0 : I.data) == null ? void 0 : p.data) == null ? void 0 : _.rows, e.dataFieldNames);
|
|
4394
|
+
} catch (I) {
|
|
4395
|
+
console.error(I);
|
|
4385
4396
|
} finally {
|
|
4386
|
-
|
|
4397
|
+
C.value = !1;
|
|
4387
4398
|
}
|
|
4388
4399
|
}
|
|
4389
|
-
}, u = me(e)("click", (
|
|
4390
|
-
const
|
|
4391
|
-
r(
|
|
4400
|
+
}, u = me(e)("click", (p) => {
|
|
4401
|
+
const _ = e.id, I = i(_);
|
|
4402
|
+
r(_, { ...I, RECORD: p == null ? void 0 : p.data });
|
|
4392
4403
|
});
|
|
4393
4404
|
he(e, {
|
|
4394
4405
|
refreshData: () => {
|
|
4395
|
-
|
|
4406
|
+
x();
|
|
4396
4407
|
},
|
|
4397
4408
|
click: u,
|
|
4398
4409
|
resetRecord: () => {
|
|
4399
|
-
const
|
|
4400
|
-
r(
|
|
4410
|
+
const p = e.id, _ = i(p);
|
|
4411
|
+
r(p, { ..._, RECORD: "" });
|
|
4401
4412
|
}
|
|
4402
4413
|
});
|
|
4403
|
-
const { setRequest:
|
|
4404
|
-
setRequest: (
|
|
4414
|
+
const { setRequest: h } = N(Se, {
|
|
4415
|
+
setRequest: (p) => {
|
|
4405
4416
|
}
|
|
4406
4417
|
});
|
|
4407
|
-
return typeof
|
|
4418
|
+
return typeof h == "function" && h({
|
|
4408
4419
|
id: e.id,
|
|
4409
|
-
requestFn:
|
|
4420
|
+
requestFn: x,
|
|
4410
4421
|
sortNum: e.requestSort
|
|
4411
4422
|
}), {
|
|
4412
4423
|
option: l,
|
|
4413
4424
|
style: o,
|
|
4414
4425
|
click: u,
|
|
4415
|
-
loading:
|
|
4426
|
+
loading: C,
|
|
4416
4427
|
visible: n,
|
|
4417
4428
|
hideModal: a
|
|
4418
4429
|
};
|
|
@@ -4701,11 +4712,11 @@ const Sr = Q({
|
|
|
4701
4712
|
trigger: "axis",
|
|
4702
4713
|
show: e.tooltipShow,
|
|
4703
4714
|
formatter: (c) => {
|
|
4704
|
-
const
|
|
4715
|
+
const m = c.length;
|
|
4705
4716
|
let k = "", R = e.tooltipFormatter;
|
|
4706
4717
|
R === "" && (R = "{marker} {a} {c}");
|
|
4707
4718
|
const E = e.seriesTypes;
|
|
4708
|
-
for (let T = 0; T <
|
|
4719
|
+
for (let T = 0; T < m; T++) {
|
|
4709
4720
|
const j = E[T], { tooltipFormatter: J } = j || {}, { marker: F, seriesName: B, name: z, value: W, data: X } = c[T] || {};
|
|
4710
4721
|
T === 0 && (k += `${z}<br/>`), k += de(
|
|
4711
4722
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
@@ -4737,7 +4748,7 @@ const Sr = Q({
|
|
|
4737
4748
|
xAxis: {
|
|
4738
4749
|
minInterval: e.xAxisMinInterval,
|
|
4739
4750
|
type: "category",
|
|
4740
|
-
data:
|
|
4751
|
+
data: b(a),
|
|
4741
4752
|
splitLine: {
|
|
4742
4753
|
show: e.xAxisSplitLineShow,
|
|
4743
4754
|
lineStyle: {
|
|
@@ -4760,17 +4771,17 @@ const Sr = Q({
|
|
|
4760
4771
|
show: e.xAxisTickShow
|
|
4761
4772
|
}
|
|
4762
4773
|
},
|
|
4763
|
-
yAxis: v
|
|
4764
|
-
series:
|
|
4774
|
+
yAxis: b(v),
|
|
4775
|
+
series: b(n)
|
|
4765
4776
|
})), { pageMode: s } = N(fe, {
|
|
4766
4777
|
pageMode: "normal"
|
|
4767
|
-
}), f = (c = [],
|
|
4778
|
+
}), f = (c = [], m = !1) => {
|
|
4768
4779
|
let k;
|
|
4769
4780
|
if (e.dataFieldConfigType === "key") {
|
|
4770
|
-
const J =
|
|
4781
|
+
const J = m ? e.keyTypeDataFieldNames : null;
|
|
4771
4782
|
k = Ge(c, J);
|
|
4772
4783
|
} else if (e.dataFieldConfigType === "value") {
|
|
4773
|
-
const J =
|
|
4784
|
+
const J = m ? e.valueTypeDataFieldNames : null;
|
|
4774
4785
|
k = Qe(c, J);
|
|
4775
4786
|
}
|
|
4776
4787
|
a.value = k.dimensions;
|
|
@@ -4798,8 +4809,8 @@ const Sr = Q({
|
|
|
4798
4809
|
}), E.push(W);
|
|
4799
4810
|
}
|
|
4800
4811
|
n.value = E;
|
|
4801
|
-
},
|
|
4802
|
-
const E = Ge(c, k ?
|
|
4812
|
+
}, C = (c = [], m, k = !1) => {
|
|
4813
|
+
const E = Ge(c, k ? m : null);
|
|
4803
4814
|
a.value = E.dimensions;
|
|
4804
4815
|
const T = E.dataset, j = [], J = T.length, F = e.seriesTypes;
|
|
4805
4816
|
for (let B = 0; B < J; B++) {
|
|
@@ -4813,14 +4824,14 @@ const Sr = Q({
|
|
|
4813
4824
|
n.value = j;
|
|
4814
4825
|
};
|
|
4815
4826
|
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([c]) => {
|
|
4816
|
-
(e.dataType === "static" ||
|
|
4827
|
+
(e.dataType === "static" || b(s) === "design") && f(c);
|
|
4817
4828
|
}, {
|
|
4818
4829
|
immediate: !0,
|
|
4819
4830
|
deep: !0
|
|
4820
4831
|
});
|
|
4821
|
-
const
|
|
4832
|
+
const v = q(() => {
|
|
4822
4833
|
const c = e.yAxis;
|
|
4823
|
-
return c == null ? void 0 : c.map((
|
|
4834
|
+
return c == null ? void 0 : c.map((m) => ({
|
|
4824
4835
|
type: "value",
|
|
4825
4836
|
minInterval: e.yAxisMinInterval,
|
|
4826
4837
|
splitLine: {
|
|
@@ -4832,7 +4843,7 @@ const Sr = Q({
|
|
|
4832
4843
|
axisLabel: {
|
|
4833
4844
|
color: e.yAxisLabelColor,
|
|
4834
4845
|
formatter(k) {
|
|
4835
|
-
return Ne(
|
|
4846
|
+
return Ne(m.axisLabelFormatter, k);
|
|
4836
4847
|
}
|
|
4837
4848
|
},
|
|
4838
4849
|
axisLine: {
|
|
@@ -4841,23 +4852,23 @@ const Sr = Q({
|
|
|
4841
4852
|
}
|
|
4842
4853
|
}
|
|
4843
4854
|
}));
|
|
4844
|
-
}),
|
|
4845
|
-
var c,
|
|
4846
|
-
if (!(e.dataType !== "request" ||
|
|
4855
|
+
}), x = M(!1), d = _e(e), u = async () => {
|
|
4856
|
+
var c, m;
|
|
4857
|
+
if (!(e.dataType !== "request" || b(s) === "design"))
|
|
4847
4858
|
try {
|
|
4848
|
-
|
|
4859
|
+
x.value = !0;
|
|
4849
4860
|
const k = await d();
|
|
4850
|
-
f((
|
|
4861
|
+
f((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
|
|
4851
4862
|
} catch (k) {
|
|
4852
4863
|
console.error(k);
|
|
4853
4864
|
} finally {
|
|
4854
|
-
|
|
4865
|
+
x.value = !1;
|
|
4855
4866
|
}
|
|
4856
|
-
},
|
|
4867
|
+
}, y = ot(e), g = async () => {
|
|
4857
4868
|
var c;
|
|
4858
4869
|
try {
|
|
4859
|
-
|
|
4860
|
-
const
|
|
4870
|
+
x.value = !0;
|
|
4871
|
+
const m = await y(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
|
|
4861
4872
|
let E;
|
|
4862
4873
|
k.length > 0 && (E = {
|
|
4863
4874
|
name: k[0],
|
|
@@ -4865,17 +4876,17 @@ const Sr = Q({
|
|
|
4865
4876
|
label: T,
|
|
4866
4877
|
value: T
|
|
4867
4878
|
}))
|
|
4868
|
-
}),
|
|
4869
|
-
} catch (
|
|
4870
|
-
console.error(
|
|
4879
|
+
}), C(R, E, !0);
|
|
4880
|
+
} catch (m) {
|
|
4881
|
+
console.error(m);
|
|
4871
4882
|
} finally {
|
|
4872
|
-
|
|
4883
|
+
x.value = !1;
|
|
4873
4884
|
}
|
|
4874
|
-
},
|
|
4875
|
-
if (
|
|
4885
|
+
}, h = () => {
|
|
4886
|
+
if (b(s) !== "design")
|
|
4876
4887
|
switch (e.dataType) {
|
|
4877
4888
|
case "indicator":
|
|
4878
|
-
|
|
4889
|
+
g();
|
|
4879
4890
|
break;
|
|
4880
4891
|
case "request":
|
|
4881
4892
|
u();
|
|
@@ -4883,40 +4894,40 @@ const Sr = Q({
|
|
|
4883
4894
|
}
|
|
4884
4895
|
};
|
|
4885
4896
|
o({
|
|
4886
|
-
refreshData:
|
|
4897
|
+
refreshData: h
|
|
4887
4898
|
});
|
|
4888
|
-
const
|
|
4899
|
+
const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
|
|
4889
4900
|
// @ts-ignore
|
|
4890
4901
|
// eslint-disable-next-line no-void
|
|
4891
4902
|
getGlobalModel: (c) => {
|
|
4892
4903
|
},
|
|
4893
4904
|
// @ts-ignore
|
|
4894
4905
|
// eslint-disable-next-line no-void
|
|
4895
|
-
setGlobalModel: (c,
|
|
4906
|
+
setGlobalModel: (c, m) => {
|
|
4896
4907
|
}
|
|
4897
|
-
}),
|
|
4898
|
-
const
|
|
4899
|
-
|
|
4900
|
-
}), { setRequest:
|
|
4908
|
+
}), S = p("click", (c) => {
|
|
4909
|
+
const m = _(e.id);
|
|
4910
|
+
I(e.id, { ...m, RECORD: c == null ? void 0 : c.data });
|
|
4911
|
+
}), { setRequest: A } = N(Se, {
|
|
4901
4912
|
setRequest: (c) => {
|
|
4902
4913
|
}
|
|
4903
4914
|
});
|
|
4904
|
-
return typeof
|
|
4915
|
+
return typeof A == "function" && A({
|
|
4905
4916
|
id: e.id,
|
|
4906
|
-
requestFn:
|
|
4917
|
+
requestFn: h,
|
|
4907
4918
|
sortNum: e.requestSort
|
|
4908
4919
|
}), he(e, {
|
|
4909
4920
|
resetRecord: () => {
|
|
4910
|
-
const c = e.id,
|
|
4911
|
-
|
|
4921
|
+
const c = e.id, m = _(c);
|
|
4922
|
+
I(c, { ...m, RECORD: "" });
|
|
4912
4923
|
},
|
|
4913
|
-
refreshData:
|
|
4914
|
-
click:
|
|
4924
|
+
refreshData: h,
|
|
4925
|
+
click: S
|
|
4915
4926
|
}), {
|
|
4916
4927
|
style: t,
|
|
4917
4928
|
option: r,
|
|
4918
|
-
click:
|
|
4919
|
-
loading:
|
|
4929
|
+
click: S,
|
|
4930
|
+
loading: x,
|
|
4920
4931
|
visible: l,
|
|
4921
4932
|
hideModal: i
|
|
4922
4933
|
};
|
|
@@ -5115,40 +5126,40 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5115
5126
|
bottom: "bottom"
|
|
5116
5127
|
}[z]
|
|
5117
5128
|
};
|
|
5118
|
-
}), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r = M("80%"), s = M(0), f = M(),
|
|
5119
|
-
let
|
|
5120
|
-
const
|
|
5129
|
+
}), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r = M("80%"), s = M(0), f = M(), C = M(0), v = M({}), x = re(e), d = M({}), u = M(!1), y = M();
|
|
5130
|
+
let g;
|
|
5131
|
+
const h = () => {
|
|
5121
5132
|
f.value = parseFloat(n) / parseFloat(l);
|
|
5122
5133
|
const z = parseFloat(a) / parseFloat(i), W = document.body.offsetWidth, X = document.body.offsetHeight;
|
|
5123
|
-
s.value = W *
|
|
5124
|
-
width: `${
|
|
5125
|
-
height: `${
|
|
5134
|
+
s.value = W * b(f), C.value = X * z, r.value = `${b(f) * 100}%`, v.value = {
|
|
5135
|
+
width: `${b(s)}px`,
|
|
5136
|
+
height: `${b(C)}px`
|
|
5126
5137
|
}, d.value = {
|
|
5127
|
-
...
|
|
5138
|
+
...b(x),
|
|
5128
5139
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
5129
|
-
transform: `scale(${
|
|
5140
|
+
transform: `scale(${b(s) / parseFloat(n)},${b(C) / parseFloat(a)})`
|
|
5130
5141
|
};
|
|
5131
|
-
},
|
|
5132
|
-
|
|
5133
|
-
}, 100),
|
|
5142
|
+
}, p = Rt(() => {
|
|
5143
|
+
h();
|
|
5144
|
+
}, 100), _ = () => {
|
|
5134
5145
|
const z = window.MutationObserver;
|
|
5135
|
-
|
|
5146
|
+
g = new z(p), g.observe(document.body, {
|
|
5136
5147
|
attributes: !0,
|
|
5137
5148
|
attributeFilter: ["style"],
|
|
5138
5149
|
attributeOldValue: !0
|
|
5139
5150
|
});
|
|
5140
|
-
},
|
|
5141
|
-
|
|
5142
|
-
},
|
|
5151
|
+
}, I = () => {
|
|
5152
|
+
g && (g.disconnect(), g.takeRecords(), g = null);
|
|
5153
|
+
}, S = M(!1), { touchRequest: A } = N(Se, {
|
|
5143
5154
|
// @ts-ignore
|
|
5144
5155
|
// eslint-disable-next-line no-void
|
|
5145
5156
|
touchRequest: () => {
|
|
5146
5157
|
}
|
|
5147
|
-
}),
|
|
5148
|
-
|
|
5158
|
+
}), w = () => {
|
|
5159
|
+
S.value = !0;
|
|
5149
5160
|
}, c = () => {
|
|
5150
|
-
|
|
5151
|
-
},
|
|
5161
|
+
S.value = !1;
|
|
5162
|
+
}, m = () => {
|
|
5152
5163
|
c();
|
|
5153
5164
|
}, k = () => {
|
|
5154
5165
|
c();
|
|
@@ -5165,29 +5176,29 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5165
5176
|
const X = e.componentList;
|
|
5166
5177
|
console.log("componentList", X), Array.isArray(X) && (W = X.map((ie) => ie.id), R(z, [...new Set(W)]));
|
|
5167
5178
|
};
|
|
5168
|
-
ne(() =>
|
|
5179
|
+
ne(() => S.value, async (z) => {
|
|
5169
5180
|
z ? (u.value = !1, E(e.id), j(), await mt(() => {
|
|
5170
|
-
|
|
5171
|
-
}),
|
|
5181
|
+
h(), window.addEventListener("resize", p), _(), u.value = !0;
|
|
5182
|
+
}), A()) : (T(), window.removeEventListener("resize", p), I());
|
|
5172
5183
|
});
|
|
5173
|
-
const J = q(() =>
|
|
5184
|
+
const J = q(() => b(f) >= 1), F = q(() => e.fullModal), B = q(() => {
|
|
5174
5185
|
let z = "ecan-modal";
|
|
5175
|
-
return
|
|
5186
|
+
return b(J) && (z += " ecan-full-width-modal"), b(F) && (z += " ecan-full-modal"), z;
|
|
5176
5187
|
});
|
|
5177
5188
|
return he(e, {
|
|
5178
|
-
showModal:
|
|
5189
|
+
showModal: w
|
|
5179
5190
|
}), {
|
|
5180
|
-
modalRef:
|
|
5181
|
-
containStyle:
|
|
5191
|
+
modalRef: y,
|
|
5192
|
+
containStyle: v,
|
|
5182
5193
|
contentStyle: d,
|
|
5183
5194
|
getContainer: o,
|
|
5184
5195
|
modalStyle: t,
|
|
5185
5196
|
modalWith: r,
|
|
5186
5197
|
isFullModal: F,
|
|
5187
|
-
style:
|
|
5188
|
-
visible:
|
|
5189
|
-
showModal:
|
|
5190
|
-
onOk:
|
|
5198
|
+
style: x,
|
|
5199
|
+
visible: S,
|
|
5200
|
+
showModal: w,
|
|
5201
|
+
onOk: m,
|
|
5191
5202
|
onCancel: k,
|
|
5192
5203
|
isFullWidth: J,
|
|
5193
5204
|
wrapClassName: B,
|
|
@@ -5296,14 +5307,14 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5296
5307
|
});
|
|
5297
5308
|
let a = null;
|
|
5298
5309
|
const l = () => {
|
|
5299
|
-
const d = Array.isArray(
|
|
5310
|
+
const d = Array.isArray(b(i)) ? b(i).length - 1 : 0;
|
|
5300
5311
|
e.autoSwitch && d > 0 && (a = setInterval(() => {
|
|
5301
|
-
const u =
|
|
5302
|
-
u <= d ? t.value = u : t.value = 0, r.value =
|
|
5312
|
+
const u = b(t) + 1;
|
|
5313
|
+
u <= d ? t.value = u : t.value = 0, r.value = b(i)[b(t)], v();
|
|
5303
5314
|
}, e.autoSwitchInterval * 1e3));
|
|
5304
5315
|
};
|
|
5305
5316
|
Ue(() => {
|
|
5306
|
-
|
|
5317
|
+
b(n) !== "design" && l();
|
|
5307
5318
|
}), Tt(() => {
|
|
5308
5319
|
clearInterval(a);
|
|
5309
5320
|
});
|
|
@@ -5314,30 +5325,30 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5314
5325
|
immediate: !0,
|
|
5315
5326
|
deep: !0
|
|
5316
5327
|
});
|
|
5317
|
-
const s = (d) => t.value === d, f = me(e), { setGlobalModel:
|
|
5328
|
+
const s = (d) => t.value === d, f = me(e), { setGlobalModel: C } = N(ye, {
|
|
5318
5329
|
// @ts-ignore
|
|
5319
5330
|
// eslint-disable-next-line no-void
|
|
5320
5331
|
setGlobalModel: (d, u) => {
|
|
5321
5332
|
}
|
|
5322
5333
|
});
|
|
5323
|
-
|
|
5334
|
+
C(e.id, {
|
|
5324
5335
|
value: r,
|
|
5325
5336
|
activeKey: t
|
|
5326
5337
|
});
|
|
5327
|
-
const { emitRefreshPage:
|
|
5338
|
+
const { emitRefreshPage: v } = N(Je, {
|
|
5328
5339
|
// eslint-disable-next-line no-void
|
|
5329
5340
|
emitRefreshPage: () => {
|
|
5330
5341
|
}
|
|
5331
|
-
}),
|
|
5332
|
-
u !==
|
|
5342
|
+
}), x = f("tabChange", (d, u) => {
|
|
5343
|
+
u !== b(t) && (r.value = d, t.value = u, v());
|
|
5333
5344
|
});
|
|
5334
5345
|
return he(e, {
|
|
5335
|
-
tabChange:
|
|
5346
|
+
tabChange: x
|
|
5336
5347
|
}), {
|
|
5337
5348
|
style: o,
|
|
5338
5349
|
activeKey: t,
|
|
5339
5350
|
isActive: s,
|
|
5340
|
-
tabChange:
|
|
5351
|
+
tabChange: x,
|
|
5341
5352
|
myData: i,
|
|
5342
5353
|
useImagePath: $e
|
|
5343
5354
|
};
|
|
@@ -5407,7 +5418,7 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5407
5418
|
onClick: () => {
|
|
5408
5419
|
if (!e.linkPage && !e.href)
|
|
5409
5420
|
return;
|
|
5410
|
-
const l = e.linkPage || "", i = Fo(
|
|
5421
|
+
const l = e.linkPage || "", i = Fo(b(n), l), r = e.href;
|
|
5411
5422
|
let s = r || i;
|
|
5412
5423
|
s = de(s);
|
|
5413
5424
|
const f = e.target;
|
|
@@ -5452,7 +5463,7 @@ const rs = /* @__PURE__ */ K(as, [["render", is], ["__scopeId", "data-v-ef7a7bee
|
|
|
5452
5463
|
}), n = q(() => {
|
|
5453
5464
|
let a = de(e.link);
|
|
5454
5465
|
if (e.linkType === "erd" && a != null) {
|
|
5455
|
-
let l =
|
|
5466
|
+
let l = b(t);
|
|
5456
5467
|
l[l.length - 1] === "/" ? l += "erdReport" : l += "/erdReport", a = `${Al || l}?_t=0&uid=${a}`;
|
|
5457
5468
|
}
|
|
5458
5469
|
return a;
|
|
@@ -5572,11 +5583,11 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5572
5583
|
default:
|
|
5573
5584
|
return 55;
|
|
5574
5585
|
}
|
|
5575
|
-
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) -
|
|
5576
|
-
if (Array.isArray(
|
|
5577
|
-
const O =
|
|
5586
|
+
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - b(n)), i = M([]), r = M([]), s = M([]), f = M([]), C = M(0), v = M(1), x = q(() => e.paginationPageSize), d = $n([]), u = (L = []) => {
|
|
5587
|
+
if (Array.isArray(L) && L.length > 0) {
|
|
5588
|
+
const O = L.length, V = e.columnsFixedNum;
|
|
5578
5589
|
for (let Z = 0; Z < O; Z++) {
|
|
5579
|
-
const P =
|
|
5590
|
+
const P = L[Z];
|
|
5580
5591
|
Z < V ? P.fixed = "left" : P.fixed = !1;
|
|
5581
5592
|
const {
|
|
5582
5593
|
cellAlign: te = "center",
|
|
@@ -5605,7 +5616,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5605
5616
|
borderBottomColor: e.borderColor
|
|
5606
5617
|
},
|
|
5607
5618
|
class: {
|
|
5608
|
-
highlight:
|
|
5619
|
+
highlight: b(W) === bt && e.clickHighlight
|
|
5609
5620
|
},
|
|
5610
5621
|
onClick: E("click", () => {
|
|
5611
5622
|
const Ut = e.id, Dn = j(Ut);
|
|
@@ -5618,15 +5629,15 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5618
5629
|
}), Array.isArray(P.children) && u(P.children);
|
|
5619
5630
|
}
|
|
5620
5631
|
}
|
|
5621
|
-
},
|
|
5632
|
+
}, y = (L = []) => (e.isUseSeq && L.unshift({
|
|
5622
5633
|
title: "序号",
|
|
5623
5634
|
dataIndex: "SEQ",
|
|
5624
5635
|
align: "center"
|
|
5625
|
-
}), e.isUseAction &&
|
|
5636
|
+
}), e.isUseAction && L.push({
|
|
5626
5637
|
title: "操作",
|
|
5627
5638
|
dataIndex: "ACTION",
|
|
5628
5639
|
width: e.actionColumnWidth
|
|
5629
|
-
}), u(
|
|
5640
|
+
}), u(L), L);
|
|
5630
5641
|
ne(() => [
|
|
5631
5642
|
e.columns,
|
|
5632
5643
|
e.isUseSeq,
|
|
@@ -5636,20 +5647,20 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5636
5647
|
e.cellBackgroundColor,
|
|
5637
5648
|
e.borderColor
|
|
5638
5649
|
], () => {
|
|
5639
|
-
i.value =
|
|
5650
|
+
i.value = y(pt(e.columns));
|
|
5640
5651
|
}, {
|
|
5641
5652
|
immediate: !0,
|
|
5642
5653
|
deep: !0
|
|
5643
|
-
}), ne(() => [e.data, e.dataType], ([
|
|
5644
|
-
O === "static" && (r.value =
|
|
5654
|
+
}), ne(() => [e.data, e.dataType], ([L, O]) => {
|
|
5655
|
+
O === "static" && (r.value = L);
|
|
5645
5656
|
}, {
|
|
5646
5657
|
immediate: !0
|
|
5647
5658
|
});
|
|
5648
|
-
const
|
|
5649
|
-
if (Array.isArray(
|
|
5650
|
-
const O =
|
|
5659
|
+
const g = M({}), h = (L) => {
|
|
5660
|
+
if (Array.isArray(L)) {
|
|
5661
|
+
const O = L.length, V = d, Z = V.length, P = {};
|
|
5651
5662
|
for (let oe = 0; oe < O; oe++) {
|
|
5652
|
-
const ue =
|
|
5663
|
+
const ue = L[oe];
|
|
5653
5664
|
for (let ge = 0; ge < Z; ge++) {
|
|
5654
5665
|
const ce = V[ge];
|
|
5655
5666
|
if (P[ce])
|
|
@@ -5666,21 +5677,21 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5666
5677
|
const ue = P[oe], ge = Array.from(ue);
|
|
5667
5678
|
te[oe] = ge.map((ce) => ({ label: ce, value: ce }));
|
|
5668
5679
|
}
|
|
5669
|
-
|
|
5680
|
+
g.value = te;
|
|
5670
5681
|
}
|
|
5671
5682
|
};
|
|
5672
5683
|
ne(() => [e.isReverse, i.value, r.value], () => {
|
|
5673
|
-
const
|
|
5674
|
-
if (
|
|
5675
|
-
const { columns: V, dataSource: Z } =
|
|
5684
|
+
const L = b(i), O = b(r);
|
|
5685
|
+
if (h(O), e.isReverse) {
|
|
5686
|
+
const { columns: V, dataSource: Z } = p(pt(L), pt(O));
|
|
5676
5687
|
s.value = V, f.value = Z;
|
|
5677
5688
|
} else
|
|
5678
|
-
s.value =
|
|
5689
|
+
s.value = L, f.value = O;
|
|
5679
5690
|
}, {
|
|
5680
5691
|
immediate: !0
|
|
5681
5692
|
});
|
|
5682
|
-
const
|
|
5683
|
-
const V =
|
|
5693
|
+
const p = (L, O) => {
|
|
5694
|
+
const V = L[0], Z = [{
|
|
5684
5695
|
title: V.title,
|
|
5685
5696
|
dataIndex: "col0",
|
|
5686
5697
|
key: "col0",
|
|
@@ -5696,8 +5707,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5696
5707
|
});
|
|
5697
5708
|
}
|
|
5698
5709
|
const P = [];
|
|
5699
|
-
for (let te = 1; te <
|
|
5700
|
-
const oe =
|
|
5710
|
+
for (let te = 1; te < L.length; te++) {
|
|
5711
|
+
const oe = L[te], ue = { col0: oe.title };
|
|
5701
5712
|
for (let ge = 0; ge < O.length; ge++) {
|
|
5702
5713
|
const ce = O[ge];
|
|
5703
5714
|
ue[`col${ge + 1}`] = ce[oe.dataIndex];
|
|
@@ -5708,48 +5719,48 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5708
5719
|
columns: Z,
|
|
5709
5720
|
dataSource: P
|
|
5710
5721
|
};
|
|
5711
|
-
},
|
|
5722
|
+
}, _ = M(""), I = _e(e), S = M(!1), A = async (L = !0, O = {}) => {
|
|
5712
5723
|
var V;
|
|
5713
5724
|
try {
|
|
5714
|
-
|
|
5715
|
-
pageNum: v
|
|
5716
|
-
pageSize:
|
|
5725
|
+
L && (S.value = !0), b(_) && (O.orderCondition = b(_)), e.paginationShow && (O = {
|
|
5726
|
+
pageNum: b(v),
|
|
5727
|
+
pageSize: b(x),
|
|
5717
5728
|
layer: "1",
|
|
5718
5729
|
...O
|
|
5719
5730
|
});
|
|
5720
|
-
const Z = await
|
|
5721
|
-
|
|
5731
|
+
const Z = await I(O), { rows: P = [], total: te = 0 } = ((V = Z == null ? void 0 : Z.data) == null ? void 0 : V.data) || {};
|
|
5732
|
+
C.value = te, Array.isArray(P) && (r.value = P);
|
|
5722
5733
|
} catch (Z) {
|
|
5723
5734
|
console.error(Z);
|
|
5724
5735
|
} finally {
|
|
5725
|
-
|
|
5736
|
+
S.value = !1;
|
|
5726
5737
|
}
|
|
5727
|
-
},
|
|
5728
|
-
if (
|
|
5738
|
+
}, w = ({ current: L }, O, V) => {
|
|
5739
|
+
if (v.value = L, V && Object.keys(V).length > 0) {
|
|
5729
5740
|
const { field: Z, order: P } = V, oe = {
|
|
5730
5741
|
ascend: "asc",
|
|
5731
5742
|
descend: "desc"
|
|
5732
5743
|
}[P];
|
|
5733
|
-
Z != null && oe != null && (
|
|
5744
|
+
Z != null && oe != null && (_.value = Z + " " + oe, v.value = 1);
|
|
5734
5745
|
}
|
|
5735
5746
|
ie(!1);
|
|
5736
5747
|
}, c = q(() => {
|
|
5737
|
-
const
|
|
5748
|
+
const L = e.simple, O = [e.paginationPosition];
|
|
5738
5749
|
return e.paginationShow && {
|
|
5739
|
-
simple:
|
|
5750
|
+
simple: L,
|
|
5740
5751
|
position: O,
|
|
5741
|
-
total:
|
|
5742
|
-
current: v
|
|
5743
|
-
pageSize:
|
|
5752
|
+
total: b(C),
|
|
5753
|
+
current: b(v),
|
|
5754
|
+
pageSize: b(x),
|
|
5744
5755
|
showSizeChanger: !1
|
|
5745
5756
|
};
|
|
5746
|
-
}),
|
|
5757
|
+
}), m = (L) => +L == 1 ? "是" : +L == 0 ? "否" : L, k = (L, O) => O == null || O === "" ? L : {
|
|
5747
5758
|
money: Pt,
|
|
5748
5759
|
percentage: ut,
|
|
5749
5760
|
contrast: ut,
|
|
5750
|
-
boolean:
|
|
5751
|
-
}[O](
|
|
5752
|
-
const V = parseFloat(
|
|
5761
|
+
boolean: m
|
|
5762
|
+
}[O](L) || "", R = (L, O) => {
|
|
5763
|
+
const V = parseFloat(L + "");
|
|
5753
5764
|
if (O !== "contrast")
|
|
5754
5765
|
return "";
|
|
5755
5766
|
switch (!0) {
|
|
@@ -5763,36 +5774,36 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5763
5774
|
}), { getGlobalModel: j, setGlobalModel: J } = N(ye, {
|
|
5764
5775
|
// @ts-ignore
|
|
5765
5776
|
// eslint-disable-next-line no-void
|
|
5766
|
-
getGlobalModel: (
|
|
5777
|
+
getGlobalModel: (L) => {
|
|
5767
5778
|
},
|
|
5768
5779
|
// @ts-ignore
|
|
5769
5780
|
// eslint-disable-next-line no-void
|
|
5770
|
-
setGlobalModel: (
|
|
5781
|
+
setGlobalModel: (L, O) => {
|
|
5771
5782
|
}
|
|
5772
|
-
}), F = (
|
|
5773
|
-
const V =
|
|
5774
|
-
i.value =
|
|
5783
|
+
}), F = (L = [], O = []) => {
|
|
5784
|
+
const V = L.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5785
|
+
i.value = y(V), r.value = O;
|
|
5775
5786
|
}, B = ot(e), z = async () => {
|
|
5776
|
-
var
|
|
5787
|
+
var L, O, V, Z;
|
|
5777
5788
|
try {
|
|
5778
|
-
|
|
5789
|
+
S.value = !0;
|
|
5779
5790
|
const P = await B();
|
|
5780
|
-
F((O = (
|
|
5791
|
+
F((O = (L = P == null ? void 0 : P.data) == null ? void 0 : L.data) == null ? void 0 : O.columns, (Z = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : Z.rows);
|
|
5781
5792
|
} catch (P) {
|
|
5782
5793
|
console.error(P);
|
|
5783
5794
|
} finally {
|
|
5784
|
-
|
|
5795
|
+
S.value = !1;
|
|
5785
5796
|
}
|
|
5786
|
-
}, W = M(-1), X = (
|
|
5797
|
+
}, W = M(-1), X = (L, O) => ({
|
|
5787
5798
|
onClick: E("rowClick", () => {
|
|
5788
5799
|
const V = e.id, Z = j(V);
|
|
5789
|
-
J(V, { ...Z, RECORD:
|
|
5800
|
+
J(V, { ...Z, RECORD: L }), W.value = O;
|
|
5790
5801
|
})
|
|
5791
|
-
}), ie = (
|
|
5792
|
-
if (
|
|
5802
|
+
}), ie = (L = !0) => {
|
|
5803
|
+
if (b(T) !== "design")
|
|
5793
5804
|
switch (e.dataType) {
|
|
5794
5805
|
case "request":
|
|
5795
|
-
|
|
5806
|
+
A(L);
|
|
5796
5807
|
break;
|
|
5797
5808
|
case "indicator":
|
|
5798
5809
|
z();
|
|
@@ -5801,16 +5812,16 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5801
5812
|
};
|
|
5802
5813
|
he(e, {
|
|
5803
5814
|
resetRecord: () => {
|
|
5804
|
-
const
|
|
5805
|
-
J(
|
|
5815
|
+
const L = e.id, O = j(L);
|
|
5816
|
+
J(L, { ...O, RECORD: "" });
|
|
5806
5817
|
},
|
|
5807
5818
|
refreshData: ie
|
|
5808
5819
|
});
|
|
5809
5820
|
const En = q(() => {
|
|
5810
|
-
const
|
|
5821
|
+
const L = b(s), O = [];
|
|
5811
5822
|
let V = 0;
|
|
5812
|
-
for (let P = 0; P <
|
|
5813
|
-
const te =
|
|
5823
|
+
for (let P = 0; P < L.length; P++) {
|
|
5824
|
+
const te = L[P], { isCalcTotal: oe } = te;
|
|
5814
5825
|
e.isUseSeq && P === 0 ? O.push({
|
|
5815
5826
|
...te,
|
|
5816
5827
|
total: "小计"
|
|
@@ -5824,7 +5835,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5824
5835
|
}
|
|
5825
5836
|
if (V === 0)
|
|
5826
5837
|
return [];
|
|
5827
|
-
const Z =
|
|
5838
|
+
const Z = b(f);
|
|
5828
5839
|
for (let P = 0; P < O.length; P++) {
|
|
5829
5840
|
const te = O[P];
|
|
5830
5841
|
let oe = 0;
|
|
@@ -5839,7 +5850,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5839
5850
|
}
|
|
5840
5851
|
return O;
|
|
5841
5852
|
}), { setRequest: Bt } = N(Se, {
|
|
5842
|
-
setRequest: (
|
|
5853
|
+
setRequest: (L) => {
|
|
5843
5854
|
}
|
|
5844
5855
|
});
|
|
5845
5856
|
return typeof Bt == "function" && Bt({
|
|
@@ -5856,48 +5867,48 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5856
5867
|
pagination: c,
|
|
5857
5868
|
formatFn: k,
|
|
5858
5869
|
contrastClass: R,
|
|
5859
|
-
tableChange:
|
|
5870
|
+
tableChange: w,
|
|
5860
5871
|
summaryList: En,
|
|
5861
|
-
loading:
|
|
5862
|
-
onTouchHrefEvent: (
|
|
5863
|
-
|
|
5872
|
+
loading: S,
|
|
5873
|
+
onTouchHrefEvent: (L, O = "") => {
|
|
5874
|
+
L === "event" && window.parent.postMessage({
|
|
5864
5875
|
type: "openPage",
|
|
5865
5876
|
url: O
|
|
5866
5877
|
}, "*");
|
|
5867
5878
|
},
|
|
5868
|
-
handleHref: (
|
|
5869
|
-
handleHrefTarget: (
|
|
5870
|
-
if (
|
|
5879
|
+
handleHref: (L = "", O) => de(L, O),
|
|
5880
|
+
handleHrefTarget: (L) => {
|
|
5881
|
+
if (L !== "event")
|
|
5871
5882
|
return {
|
|
5872
5883
|
self: "_self",
|
|
5873
5884
|
blank: "_blank"
|
|
5874
|
-
}[
|
|
5885
|
+
}[L];
|
|
5875
5886
|
},
|
|
5876
5887
|
useRowIndex: W,
|
|
5877
5888
|
tableColumns: s,
|
|
5878
5889
|
tableDataSource: f,
|
|
5879
|
-
useFilterOptions: (
|
|
5880
|
-
const O =
|
|
5890
|
+
useFilterOptions: (L) => {
|
|
5891
|
+
const O = L.dataIndex;
|
|
5881
5892
|
if (typeof O == "string") {
|
|
5882
|
-
let V =
|
|
5883
|
-
const Z =
|
|
5893
|
+
let V = b(g)[O];
|
|
5894
|
+
const Z = b(L.filterOptionsInputValue).trim();
|
|
5884
5895
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(Z.toLowerCase()) : !0), V) : [];
|
|
5885
5896
|
}
|
|
5886
5897
|
return [];
|
|
5887
5898
|
},
|
|
5888
|
-
useSetSelectedKeys: (
|
|
5889
|
-
|
|
5899
|
+
useSetSelectedKeys: (L, O) => {
|
|
5900
|
+
L(O.filterCheckboxGroupValue);
|
|
5890
5901
|
},
|
|
5891
|
-
onResetFilter: (
|
|
5892
|
-
|
|
5902
|
+
onResetFilter: (L, O) => {
|
|
5903
|
+
L({ confirm: !0 }), O.filterOptionsInputValue = "", O.filterCheckboxGroupValue = [];
|
|
5893
5904
|
},
|
|
5894
5905
|
onSearchFilterOptions: () => {
|
|
5895
5906
|
},
|
|
5896
5907
|
exportTable: async () => {
|
|
5897
5908
|
var ce, Ee;
|
|
5898
|
-
const
|
|
5909
|
+
const L = "EXPORT_KEY";
|
|
5899
5910
|
Be.loading({
|
|
5900
|
-
key:
|
|
5911
|
+
key: L,
|
|
5901
5912
|
content: "正在导出...",
|
|
5902
5913
|
duration: 0
|
|
5903
5914
|
});
|
|
@@ -5906,16 +5917,16 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5906
5917
|
O = e.data;
|
|
5907
5918
|
else if (e.dataType === "request") {
|
|
5908
5919
|
const we = { layer: "1" };
|
|
5909
|
-
|
|
5910
|
-
const Le = await
|
|
5920
|
+
b(_) && (we.orderCondition = b(_));
|
|
5921
|
+
const Le = await I(we);
|
|
5911
5922
|
O = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
5912
5923
|
}
|
|
5913
|
-
const V =
|
|
5924
|
+
const V = b(s), Z = [], P = [];
|
|
5914
5925
|
V == null || V.forEach((we) => {
|
|
5915
5926
|
Z.push(we.dataIndex), P.push(we.title);
|
|
5916
5927
|
});
|
|
5917
5928
|
const te = O.map((we) => vo(we, Z)), oe = lt.book_new(), ue = lt.aoa_to_sheet([P]), ge = lt.sheet_add_json(ue, te, { skipHeader: !0, origin: "A2" });
|
|
5918
|
-
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key:
|
|
5929
|
+
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key: L, content: "导出成功" });
|
|
5919
5930
|
}
|
|
5920
5931
|
};
|
|
5921
5932
|
}
|
|
@@ -5928,7 +5939,7 @@ const ys = {
|
|
|
5928
5939
|
class: "action-list"
|
|
5929
5940
|
}, ws = ["href", "target", "onClick"];
|
|
5930
5941
|
function xs(e, o, t, n, a, l) {
|
|
5931
|
-
const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"),
|
|
5942
|
+
const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"), C = H("a-table-summary-row"), v = H("a-table-summary"), x = H("a-table"), d = H("skeleton");
|
|
5932
5943
|
return D(), $("div", {
|
|
5933
5944
|
class: "ecan-table",
|
|
5934
5945
|
style: U(e.style)
|
|
@@ -5946,7 +5957,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5946
5957
|
_: 1
|
|
5947
5958
|
}, 8, ["onClick"])
|
|
5948
5959
|
])) : ve("", !0),
|
|
5949
|
-
G(
|
|
5960
|
+
G(x, {
|
|
5950
5961
|
class: "table",
|
|
5951
5962
|
style: {
|
|
5952
5963
|
height: "100%"
|
|
@@ -5960,7 +5971,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5960
5971
|
pagination: e.pagination,
|
|
5961
5972
|
onChange: e.tableChange
|
|
5962
5973
|
}, {
|
|
5963
|
-
customFilterDropdown: Y(({ column: u, selectedKeys:
|
|
5974
|
+
customFilterDropdown: Y(({ column: u, selectedKeys: y, setSelectedKeys: g, confirm: h, clearFilters: p }) => [
|
|
5964
5975
|
ee("div", {
|
|
5965
5976
|
class: "ecan-table-filter",
|
|
5966
5977
|
style: U({
|
|
@@ -5969,24 +5980,24 @@ function xs(e, o, t, n, a, l) {
|
|
|
5969
5980
|
}, [
|
|
5970
5981
|
G(r, {
|
|
5971
5982
|
value: u.filterOptionsInputValue,
|
|
5972
|
-
"onUpdate:value": (
|
|
5983
|
+
"onUpdate:value": (_) => u.filterOptionsInputValue = _,
|
|
5973
5984
|
placeholder: "请输入关键字",
|
|
5974
5985
|
class: "filter-input",
|
|
5975
5986
|
onChange: e.onSearchFilterOptions
|
|
5976
5987
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
5977
5988
|
G(s, {
|
|
5978
5989
|
value: u.filterCheckboxGroupValue,
|
|
5979
|
-
"onUpdate:value": (
|
|
5990
|
+
"onUpdate:value": (_) => u.filterCheckboxGroupValue = _,
|
|
5980
5991
|
class: "filter-checkbox",
|
|
5981
5992
|
options: e.useFilterOptions(u),
|
|
5982
|
-
onChange: (
|
|
5993
|
+
onChange: (_) => e.useSetSelectedKeys(g, u)
|
|
5983
5994
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
5984
5995
|
ee("div", null, [
|
|
5985
5996
|
G(i, {
|
|
5986
5997
|
type: "primary",
|
|
5987
5998
|
size: "small",
|
|
5988
5999
|
style: { width: "90px", "margin-right": "8px" },
|
|
5989
|
-
onClick: () =>
|
|
6000
|
+
onClick: () => h()
|
|
5990
6001
|
}, {
|
|
5991
6002
|
default: Y(() => [
|
|
5992
6003
|
vs
|
|
@@ -5996,7 +6007,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5996
6007
|
G(i, {
|
|
5997
6008
|
size: "small",
|
|
5998
6009
|
style: { width: "90px" },
|
|
5999
|
-
onClick: go((
|
|
6010
|
+
onClick: go((_) => e.onResetFilter(p, u), ["stop"])
|
|
6000
6011
|
}, {
|
|
6001
6012
|
default: Y(() => [
|
|
6002
6013
|
ps
|
|
@@ -6006,41 +6017,41 @@ function xs(e, o, t, n, a, l) {
|
|
|
6006
6017
|
])
|
|
6007
6018
|
], 4)
|
|
6008
6019
|
]),
|
|
6009
|
-
bodyCell: Y(({ column: u, index:
|
|
6010
|
-
u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(
|
|
6020
|
+
bodyCell: Y(({ column: u, index: y, text: g, record: h }) => [
|
|
6021
|
+
u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(y + 1), 1)) : ve("", !0),
|
|
6011
6022
|
u.dataIndex === "ACTION" ? (D(), $("div", Ss, [
|
|
6012
|
-
(D(!0), $(Me, null, De(e.actionList, (
|
|
6023
|
+
(D(!0), $(Me, null, De(e.actionList, (p, _) => (D(), $("div", {
|
|
6013
6024
|
class: "action",
|
|
6014
|
-
key:
|
|
6025
|
+
key: _
|
|
6015
6026
|
}, [
|
|
6016
6027
|
ee("a", {
|
|
6017
|
-
href: e.handleHref(
|
|
6018
|
-
target: e.handleHrefTarget(
|
|
6028
|
+
href: e.handleHref(p.href, h),
|
|
6029
|
+
target: e.handleHrefTarget(p.target),
|
|
6019
6030
|
style: U({
|
|
6020
|
-
color:
|
|
6031
|
+
color: p.color,
|
|
6021
6032
|
fontSize: e.fontSize,
|
|
6022
6033
|
fontWeight: e.fontWeight
|
|
6023
6034
|
}),
|
|
6024
|
-
onClick: (
|
|
6025
|
-
}, be(
|
|
6035
|
+
onClick: (I) => e.onTouchHrefEvent(p.target, e.handleHref(p.href, h))
|
|
6036
|
+
}, be(p.title), 13, ws)
|
|
6026
6037
|
]))), 128))
|
|
6027
6038
|
])) : (D(), $("div", {
|
|
6028
6039
|
key: 2,
|
|
6029
|
-
class: Lt([e.contrastClass(
|
|
6040
|
+
class: Lt([e.contrastClass(g, u.format)]),
|
|
6030
6041
|
style: U({
|
|
6031
6042
|
fontSize: e.fontSize,
|
|
6032
6043
|
fontWeight: e.fontWeight
|
|
6033
6044
|
})
|
|
6034
|
-
}, be(u.format != null ? e.formatFn(
|
|
6045
|
+
}, be(u.format != null ? e.formatFn(g, u.format) : g), 7))
|
|
6035
6046
|
]),
|
|
6036
6047
|
summary: Y(() => [
|
|
6037
|
-
e.summaryList.length > 0 ? (D(), Re(
|
|
6048
|
+
e.summaryList.length > 0 ? (D(), Re(v, { key: 0 }, {
|
|
6038
6049
|
default: Y(() => [
|
|
6039
|
-
G(
|
|
6050
|
+
G(C, null, {
|
|
6040
6051
|
default: Y(() => [
|
|
6041
|
-
(D(!0), $(Me, null, De(e.summaryList, (u,
|
|
6042
|
-
key:
|
|
6043
|
-
index:
|
|
6052
|
+
(D(!0), $(Me, null, De(e.summaryList, (u, y) => (D(), Re(f, {
|
|
6053
|
+
key: y,
|
|
6054
|
+
index: y,
|
|
6044
6055
|
style: U({
|
|
6045
6056
|
backgroundColor: e.cellBackgroundColor,
|
|
6046
6057
|
textAlign: u.cellAlign || "center",
|
|
@@ -6133,15 +6144,15 @@ const _s = Q({
|
|
|
6133
6144
|
},
|
|
6134
6145
|
setup(e) {
|
|
6135
6146
|
const o = re(e, ["backgroundImage"]), t = M(), n = q(() => $e(e.geoBackgroundImage)), a = q(() => $e(e.backgroundImage)), l = q(() => e.geoBackgroundImage ? {
|
|
6136
|
-
image:
|
|
6147
|
+
image: b(t),
|
|
6137
6148
|
repeat: e.geoBackgroundImageRepeat
|
|
6138
6149
|
} : e.geoItemStyleAreaColor), i = q(() => {
|
|
6139
|
-
const
|
|
6140
|
-
return e.symbolImage ? "image://" + $e(
|
|
6150
|
+
const C = e.symbolImage;
|
|
6151
|
+
return e.symbolImage ? "image://" + $e(C) : "circle";
|
|
6141
6152
|
}), r = q(() => {
|
|
6142
|
-
const
|
|
6143
|
-
let
|
|
6144
|
-
return typeof
|
|
6153
|
+
const C = e.geoCenter;
|
|
6154
|
+
let v;
|
|
6155
|
+
return typeof C == "string" && C !== "" && (v = C.split(",")), {
|
|
6145
6156
|
// backgroundColor: unref(background),
|
|
6146
6157
|
tooltip: {
|
|
6147
6158
|
show: !0
|
|
@@ -6153,7 +6164,7 @@ const _s = Q({
|
|
|
6153
6164
|
style: {
|
|
6154
6165
|
width: parseFloat(e.width),
|
|
6155
6166
|
height: parseFloat(e.height),
|
|
6156
|
-
image:
|
|
6167
|
+
image: b(a)
|
|
6157
6168
|
},
|
|
6158
6169
|
top: "center"
|
|
6159
6170
|
}
|
|
@@ -6161,7 +6172,7 @@ const _s = Q({
|
|
|
6161
6172
|
geo: {
|
|
6162
6173
|
zoom: e.geoZoom,
|
|
6163
6174
|
roam: e.geoRoam,
|
|
6164
|
-
center:
|
|
6175
|
+
center: v,
|
|
6165
6176
|
map: "map",
|
|
6166
6177
|
tooltip: {
|
|
6167
6178
|
show: !1
|
|
@@ -6174,7 +6185,7 @@ const _s = Q({
|
|
|
6174
6185
|
},
|
|
6175
6186
|
itemStyle: {
|
|
6176
6187
|
// 地图上板块属性
|
|
6177
|
-
areaColor:
|
|
6188
|
+
areaColor: b(l),
|
|
6178
6189
|
borderColor: e.geoItemStyleBorderColor,
|
|
6179
6190
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6180
6191
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6201,7 +6212,7 @@ const _s = Q({
|
|
|
6201
6212
|
itemStyle: {
|
|
6202
6213
|
color: e.itemStyleColor
|
|
6203
6214
|
},
|
|
6204
|
-
symbol:
|
|
6215
|
+
symbol: b(i),
|
|
6205
6216
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6206
6217
|
label: {
|
|
6207
6218
|
show: e.labelShow,
|
|
@@ -6221,11 +6232,11 @@ const _s = Q({
|
|
|
6221
6232
|
]
|
|
6222
6233
|
};
|
|
6223
6234
|
}), s = M(!1), f = async () => {
|
|
6224
|
-
var
|
|
6225
|
-
const
|
|
6226
|
-
if (
|
|
6227
|
-
const
|
|
6228
|
-
Gn("map", (
|
|
6235
|
+
var v;
|
|
6236
|
+
const C = e.mapJson;
|
|
6237
|
+
if (C != null && C.path) {
|
|
6238
|
+
const x = await Fe(((v = window == null ? void 0 : window.config) == null ? void 0 : v.uploadPath) + C.path);
|
|
6239
|
+
Gn("map", (x == null ? void 0 : x.data) || {});
|
|
6229
6240
|
}
|
|
6230
6241
|
s.value = !0;
|
|
6231
6242
|
};
|