@ecan-bi/datav 1.1.65 → 1.1.66
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 +829 -825
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as N, computed as q, unref as v, 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
|
|
1
|
+
/*! @ecan-bi/datav@1.1.66 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as v, 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";
|
|
6
6
|
import "ant-design-vue/es/spin/style";
|
|
7
7
|
import "ant-design-vue/es/skeleton/style";
|
|
8
|
-
import { without as ta, pick as vo, debounce as
|
|
8
|
+
import { without as ta, pick as vo, debounce as Rt, cloneDeep as pt } from "lodash-es";
|
|
9
9
|
import po from "axios";
|
|
10
10
|
import Ce from "dayjs";
|
|
11
11
|
import oa from "mitt";
|
|
@@ -18,7 +18,7 @@ import "ant-design-vue/es/button/style";
|
|
|
18
18
|
import "ant-design-vue/es/checkbox/style";
|
|
19
19
|
import { CanvasRenderer as je } from "echarts/renderers";
|
|
20
20
|
import { PieChart as na, LineChart as So, BarChart as wo, ScatterChart as xo, MapChart as aa } from "echarts/charts";
|
|
21
|
-
import { TitleComponent as Ke, ToolboxComponent as Xe, TooltipComponent as
|
|
21
|
+
import { TitleComponent as Ke, ToolboxComponent as Xe, TooltipComponent as Ft, LegendComponent as et, DatasetComponent as ko, VisualMapComponent as la, GraphicComponent as ia } from "echarts/components";
|
|
22
22
|
import * as ra from "echarts";
|
|
23
23
|
import "ant-design-vue/es/modal/style";
|
|
24
24
|
import "ant-design-vue/es/table/style";
|
|
@@ -114,61 +114,61 @@ 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: y, loading: S, loadingOptions: C } = On(e), d = q(
|
|
118
118
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
119
|
-
), u = q(() => e.theme || v(i) || {}),
|
|
119
|
+
), u = q(() => e.theme || v(i) || {}), m = q(
|
|
120
120
|
() => e.initOptions || v(r) || {}
|
|
121
|
-
),
|
|
121
|
+
), h = q(
|
|
122
122
|
() => e.updateOptions || v(s) || {}
|
|
123
|
-
),
|
|
124
|
-
function
|
|
123
|
+
), b = q(() => pa(o));
|
|
124
|
+
function w(x) {
|
|
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
|
+
m.value
|
|
131
131
|
);
|
|
132
132
|
e.group && (c.group = e.group);
|
|
133
|
-
let
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
})), Object.keys(
|
|
138
|
-
const
|
|
139
|
-
|
|
133
|
+
let g = t;
|
|
134
|
+
g || (g = {}, Object.keys(o).filter((E) => E.indexOf("on") === 0 && E.length > 2).forEach((E) => {
|
|
135
|
+
const T = E.charAt(2).toLowerCase() + E.slice(3);
|
|
136
|
+
g[T] = o[E];
|
|
137
|
+
})), Object.keys(g).forEach((E) => {
|
|
138
|
+
const T = g[E];
|
|
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() {
|
|
142
142
|
if (c && !c.isDisposed())
|
|
143
143
|
try {
|
|
144
144
|
c.resize();
|
|
145
|
-
} catch (
|
|
146
|
-
if (
|
|
145
|
+
} catch (E) {
|
|
146
|
+
if (E.message === "Cannot read property 'get' of undefined")
|
|
147
147
|
return;
|
|
148
|
-
throw
|
|
148
|
+
throw E;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
c.setOption(x || d.value,
|
|
151
|
+
function R() {
|
|
152
|
+
c.setOption(x || d.value, h.value);
|
|
153
153
|
}
|
|
154
154
|
f.value ? mt(() => {
|
|
155
|
-
k(),
|
|
156
|
-
}) :
|
|
155
|
+
k(), R();
|
|
156
|
+
}) : R();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
e.manualUpdate && (l.value = x), a.value ? a.value.setOption(x, c || {}) :
|
|
158
|
+
function A(x, c) {
|
|
159
|
+
e.manualUpdate && (l.value = x), a.value ? a.value.setOption(x, c || {}) : w(x);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function L() {
|
|
162
162
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
163
163
|
}
|
|
164
164
|
let p = null;
|
|
165
165
|
ne(
|
|
166
|
-
|
|
166
|
+
y,
|
|
167
167
|
(x) => {
|
|
168
168
|
typeof p == "function" && (p(), p = null), x || (p = ne(
|
|
169
169
|
() => e.option,
|
|
170
170
|
(c) => {
|
|
171
|
-
c && (a.value ? a.value.setOption(c,
|
|
171
|
+
c && (a.value ? a.value.setOption(c, h.value) : w());
|
|
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, m],
|
|
181
181
|
() => {
|
|
182
|
-
|
|
182
|
+
L(), w();
|
|
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
|
|
190
|
+
const _ = ua(a, w);
|
|
191
191
|
return ha(a, S, C), fa(a, f, n), Ue(() => {
|
|
192
|
-
e.option &&
|
|
193
|
-
}), ft(
|
|
192
|
+
e.option && w();
|
|
193
|
+
}), ft(L), {
|
|
194
194
|
chart: a,
|
|
195
195
|
root: n,
|
|
196
|
-
setOption:
|
|
197
|
-
nonEventAttrs:
|
|
198
|
-
...
|
|
196
|
+
setOption: A,
|
|
197
|
+
nonEventAttrs: b,
|
|
198
|
+
..._
|
|
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], y = [r, t, t, i, l, l][s], S = [l, l, r, t, t, i][s];
|
|
270
|
+
return { r: f * 255, g: y * 255, b: S * 255 };
|
|
271
271
|
}
|
|
272
272
|
function Ea(e, o, t, n) {
|
|
273
273
|
var a = [
|
|
@@ -435,7 +435,7 @@ var qt = {
|
|
|
435
435
|
};
|
|
436
436
|
function He(e) {
|
|
437
437
|
var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, l = null, i = !1, r = !1;
|
|
438
|
-
return typeof e == "string" && (e =
|
|
438
|
+
return typeof e == "string" && (e = Ra(e)), typeof e == "object" && (Ie(e.r) && Ie(e.g) && Ie(e.b) ? (o = Ta(e.r, e.g, e.b), i = !0, r = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ie(e.h) && Ie(e.s) && Ie(e.v) ? (n = it(e.s), a = it(e.v), o = Ma(e.h, n, a), i = !0, r = "hsv") : Ie(e.h) && Ie(e.s) && Ie(e.l) && (n = it(e.s), l = it(e.l), o = La(e.h, n, l), i = !0, r = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = _a(t), {
|
|
439
439
|
ok: i,
|
|
440
440
|
format: e.format || r,
|
|
441
441
|
r: Math.min(255, Math.max(o.r, 0)),
|
|
@@ -457,7 +457,7 @@ var Da = "[-\\+]?\\d+%?", Oa = "[-\\+]?\\d*\\.\\d+%?", Oe = "(?:".concat(Oa, ")|
|
|
|
457
457
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
458
458
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
459
459
|
};
|
|
460
|
-
function
|
|
460
|
+
function Ra(e) {
|
|
461
461
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
462
462
|
return !1;
|
|
463
463
|
var o = !1;
|
|
@@ -493,7 +493,7 @@ function Fa(e) {
|
|
|
493
493
|
function Ie(e) {
|
|
494
494
|
return Boolean(ke.CSS_UNIT.exec(String(e)));
|
|
495
495
|
}
|
|
496
|
-
var rt = 2, jt = 0.16,
|
|
496
|
+
var rt = 2, jt = 0.16, Fa = 0.05, za = 0.05, $a = 0.15, Ao = 5, _o = 4, Na = [{
|
|
497
497
|
index: 7,
|
|
498
498
|
opacity: 0.15
|
|
499
499
|
}, {
|
|
@@ -552,7 +552,7 @@ function Ht(e, o, t) {
|
|
|
552
552
|
if (e.h === 0 && e.s === 0)
|
|
553
553
|
return e.s;
|
|
554
554
|
var n;
|
|
555
|
-
return t ? n = e.s - jt * o : o === _o ? n = e.s + jt : n = e.s +
|
|
555
|
+
return t ? n = e.s - jt * o : o === _o ? n = e.s + jt : n = e.s + Fa * o, n > 1 && (n = 1), t && o === Ao && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
|
|
556
556
|
}
|
|
557
557
|
function Zt(e, o, t) {
|
|
558
558
|
var n;
|
|
@@ -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 S =
|
|
579
|
+
return o.theme === "dark" ? Na.map(function(y) {
|
|
580
|
+
var S = y.index, C = y.opacity, d = st(Pa(He(o.backgroundColor || "#141414"), He(t[S]), C * 100));
|
|
581
581
|
return d;
|
|
582
582
|
}) : t;
|
|
583
583
|
}
|
|
@@ -934,14 +934,14 @@ 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, y = a.twoToneColor, S = a.onClick, C = 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" : "", m = f;
|
|
940
|
+
m === void 0 && S && (m = -1, C.tabindex = m);
|
|
941
|
+
var h = s ? {
|
|
942
942
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
943
943
|
transform: "rotate(".concat(s, "deg)")
|
|
944
|
-
} : void 0,
|
|
944
|
+
} : void 0, b = Lo(y), w = rl(b, 2), A = w[0], L = w[1];
|
|
945
945
|
return G("span", to({
|
|
946
946
|
role: "img",
|
|
947
947
|
"aria-label": i.name
|
|
@@ -951,9 +951,9 @@ var Ve = function(o, t) {
|
|
|
951
951
|
}), [G(zt, {
|
|
952
952
|
class: u,
|
|
953
953
|
icon: i,
|
|
954
|
-
primaryColor:
|
|
955
|
-
secondaryColor:
|
|
956
|
-
style:
|
|
954
|
+
primaryColor: A,
|
|
955
|
+
secondaryColor: L,
|
|
956
|
+
style: h
|
|
957
957
|
}, null)]);
|
|
958
958
|
};
|
|
959
959
|
Ve.props = {
|
|
@@ -1021,8 +1021,8 @@ const K = (e, o) => {
|
|
|
1021
1021
|
}, Cl = { class: "spin-wrapper" };
|
|
1022
1022
|
function Sl(e, o, t, n, a, l) {
|
|
1023
1023
|
const i = H("a-spin");
|
|
1024
|
-
return
|
|
1025
|
-
e.spinning ? (
|
|
1024
|
+
return D(), $("div", Cl, [
|
|
1025
|
+
e.spinning ? (D(), Re(i, {
|
|
1026
1026
|
key: 0,
|
|
1027
1027
|
class: "spin",
|
|
1028
1028
|
spinning: e.spinning,
|
|
@@ -1045,7 +1045,7 @@ const tt = /* @__PURE__ */ K(pl, [["render", Sl]]), wl = Q({
|
|
|
1045
1045
|
});
|
|
1046
1046
|
function xl(e, o, t, n, a, l) {
|
|
1047
1047
|
const i = H("a-skeleton");
|
|
1048
|
-
return
|
|
1048
|
+
return D(), Re(i, {
|
|
1049
1049
|
active: "",
|
|
1050
1050
|
loading: e.loading
|
|
1051
1051
|
}, {
|
|
@@ -1140,7 +1140,7 @@ const ae = (e, o) => {
|
|
|
1140
1140
|
return q(() => vo(e, t));
|
|
1141
1141
|
}, Nt = "EVENT_BUS", fe = "GLOBAL_CONFIG", ye = "GLOBAL_MODEL", Se = "REQUEST_MODEL", Do = "GLOBAL_TOKEN", Je = "REFRESH_PAGE", Oo = "MODAL_MODEL";
|
|
1142
1142
|
var io;
|
|
1143
|
-
const
|
|
1143
|
+
const Ro = (io = window == null ? void 0 : window.config) == null ? void 0 : io.indicatorURL;
|
|
1144
1144
|
var ro;
|
|
1145
1145
|
(ro = window == null ? void 0 : window.config) != null && ro.uploadPath;
|
|
1146
1146
|
var so;
|
|
@@ -1165,7 +1165,7 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1165
1165
|
emitEvent: (l, i) => {
|
|
1166
1166
|
}
|
|
1167
1167
|
}), { touchEventId: a } = N(fe, {
|
|
1168
|
-
touchEventId:
|
|
1168
|
+
touchEventId: M("")
|
|
1169
1169
|
});
|
|
1170
1170
|
return (l, i = () => {
|
|
1171
1171
|
}) => function() {
|
|
@@ -1184,30 +1184,30 @@ 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 S = e[
|
|
1187
|
+
for (let y = 0; y < r; y++) {
|
|
1188
|
+
const S = e[y], C = S[t] || "", d = S[n] || "", u = S[a] || "";
|
|
1189
1189
|
if (l.add(C), i.has(u)) {
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1190
|
+
const m = i.get(u);
|
|
1191
|
+
m.push({ name: C, value: d, ...S }), i.set(u, m);
|
|
1192
1192
|
} else
|
|
1193
1193
|
i.set(u, [{ name: C, value: d, ...S }]);
|
|
1194
1194
|
}
|
|
1195
1195
|
const s = Array.from(l), f = [];
|
|
1196
|
-
for (const [
|
|
1196
|
+
for (const [y, S] of i)
|
|
1197
1197
|
f.push({
|
|
1198
|
-
name:
|
|
1198
|
+
name: y,
|
|
1199
1199
|
data: S
|
|
1200
1200
|
});
|
|
1201
1201
|
return {
|
|
1202
1202
|
dimensions: s,
|
|
1203
1203
|
dataset: f
|
|
1204
1204
|
};
|
|
1205
|
-
}, ao = window.config.requestErrorTip,
|
|
1205
|
+
}, ao = window.config.requestErrorTip, Fe = po.create({
|
|
1206
1206
|
// timeout: 1000 * 15
|
|
1207
1207
|
timeout: 1e3 * 180
|
|
1208
1208
|
});
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
Fe.interceptors.request.use((e) => e, (e) => Promise.reject(e));
|
|
1210
|
+
Fe.interceptors.response.use((e) => {
|
|
1211
1211
|
var o, t, n;
|
|
1212
1212
|
return ao && +((o = e == null ? void 0 : e.data) == null ? void 0 : o.code) == 500 && Be.error({
|
|
1213
1213
|
content: ((t = e == null ? void 0 : e.data) == null ? void 0 : t.msg) || ((n = e == null ? void 0 : e.data) == null ? void 0 : n.message) || "服务器异常",
|
|
@@ -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 S = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, C =
|
|
1272
|
+
let y = f.slice(1, -1).trim();
|
|
1273
|
+
const S = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, C = y.match(S);
|
|
1274
1274
|
for (let d = 0; d < C.length; d++) {
|
|
1275
|
-
const u = C[d],
|
|
1276
|
-
|
|
1275
|
+
const u = C[d], m = i[u];
|
|
1276
|
+
m != null && (y = y.replace(u, m));
|
|
1277
1277
|
}
|
|
1278
|
-
/\(.*\)/g.test(
|
|
1278
|
+
/\(.*\)/g.test(y) && (y = yt(y, t)), e = e.replace(f, y);
|
|
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,59 +1287,59 @@ 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: y } = N(fe, {
|
|
1291
1291
|
contextRequestUrl: "",
|
|
1292
1292
|
pageMode: "normal",
|
|
1293
1293
|
touchEventId: ""
|
|
1294
1294
|
}), { getGlobalModel: S } = N(ye, {
|
|
1295
1295
|
// @ts-ignore
|
|
1296
1296
|
// eslint-disable-next-line no-void
|
|
1297
|
-
getGlobalModel: (
|
|
1297
|
+
getGlobalModel: (m) => {
|
|
1298
1298
|
}
|
|
1299
|
-
}), C = de(t), d = async (
|
|
1299
|
+
}), C = de(t), d = async (m = {}) => {
|
|
1300
1300
|
if (!C || !n || !a || v(f) === "design")
|
|
1301
1301
|
return;
|
|
1302
|
-
let
|
|
1302
|
+
let h = {};
|
|
1303
1303
|
l.forEach((p) => {
|
|
1304
|
-
const { key:
|
|
1304
|
+
const { key: _, value: x } = p;
|
|
1305
1305
|
if (typeof x == "object" && x != null && x.id) {
|
|
1306
1306
|
let c = {};
|
|
1307
|
-
const { id:
|
|
1308
|
-
|
|
1309
|
-
const
|
|
1307
|
+
const { id: g, prop: k, propKey: R, operate: E } = x;
|
|
1308
|
+
g === "THIS" ? c = S(v(y)) || {} : c = S(g) || {};
|
|
1309
|
+
const T = v(c[k]);
|
|
1310
1310
|
let j = null;
|
|
1311
|
-
if (["date", "range"].some((
|
|
1312
|
-
const { value:
|
|
1313
|
-
if (
|
|
1311
|
+
if (["date", "range"].some((F) => Dt(c == null ? void 0 : c.type, F))) {
|
|
1312
|
+
const { value: F, type: B, mode: z } = E || {};
|
|
1313
|
+
if (F && B && z)
|
|
1314
1314
|
switch (B) {
|
|
1315
1315
|
case "add":
|
|
1316
|
-
j = v(
|
|
1316
|
+
j = v(T).add(F, z);
|
|
1317
1317
|
break;
|
|
1318
1318
|
case "minus":
|
|
1319
|
-
j = v(
|
|
1319
|
+
j = v(T).subtract(F, z);
|
|
1320
1320
|
break;
|
|
1321
1321
|
}
|
|
1322
|
-
j == null && (j = v(
|
|
1322
|
+
j == null && (j = v(T)), j = (j == null ? void 0 : j.format((R == null ? void 0 : R.trim()) || c.format)) || "";
|
|
1323
1323
|
} else
|
|
1324
|
-
Object.prototype.toString.call(
|
|
1325
|
-
|
|
1324
|
+
Object.prototype.toString.call(T) === "[object Object]" ? j = T[R || "value"] : j = T;
|
|
1325
|
+
h[_] = j;
|
|
1326
1326
|
} else
|
|
1327
|
-
typeof x == "string" && (
|
|
1328
|
-
}),
|
|
1329
|
-
let
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1327
|
+
typeof x == "string" && (h[_] = de(x));
|
|
1328
|
+
}), h = { ...window.config.requestParams, ...m, ...h };
|
|
1329
|
+
let b = "";
|
|
1330
|
+
const w = Object.keys(h), A = w.length - 1, L = w.length;
|
|
1331
|
+
w.forEach((p, _) => {
|
|
1332
|
+
_ === 0 ? L !== 1 ? b += `?${p}=${h[p]}&` : b += `?${p}=${h[p]}` : _ === A ? b += `${p}=${h[p]}` : b += `${p}=${h[p]}&`;
|
|
1333
1333
|
});
|
|
1334
1334
|
try {
|
|
1335
|
-
const p = ["get", "head"].includes(n),
|
|
1335
|
+
const p = ["get", "head"].includes(n), _ = await Fe({
|
|
1336
1336
|
baseURL: v(s) || "",
|
|
1337
|
-
url: p ? C +
|
|
1337
|
+
url: p ? C + b : C,
|
|
1338
1338
|
method: n,
|
|
1339
1339
|
headers: a,
|
|
1340
|
-
data: p ? {} :
|
|
1340
|
+
data: p ? {} : h
|
|
1341
1341
|
});
|
|
1342
|
-
return o(
|
|
1342
|
+
return o(_), _;
|
|
1343
1343
|
} catch (p) {
|
|
1344
1344
|
console.error(p);
|
|
1345
1345
|
}
|
|
@@ -1352,30 +1352,30 @@ 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
|
|
1355
|
+
const y = [];
|
|
1356
1356
|
for (let C = 0; C < r; C++) {
|
|
1357
|
-
const d = n[C], { label: u, value:
|
|
1358
|
-
a.add(u),
|
|
1357
|
+
const d = n[C], { label: u, value: m } = d, h = { ...e[0], value: e[0][m] };
|
|
1358
|
+
a.add(u), y.push(h);
|
|
1359
1359
|
}
|
|
1360
1360
|
const S = e[0][t] || "";
|
|
1361
|
-
l.set(S,
|
|
1361
|
+
l.set(S, y);
|
|
1362
1362
|
} else
|
|
1363
|
-
for (let
|
|
1364
|
-
const S = e[
|
|
1363
|
+
for (let y = 0; y < i; y++) {
|
|
1364
|
+
const S = e[y], C = S[t];
|
|
1365
1365
|
a.add(C);
|
|
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: m, value: h } = u, b = { ...S, value: S[h] };
|
|
1368
|
+
if (l.has(m)) {
|
|
1369
|
+
const w = l.get(m);
|
|
1370
|
+
w.push(b), l.set(m, w);
|
|
1371
1371
|
} else
|
|
1372
|
-
l.set(
|
|
1372
|
+
l.set(m, [b]);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
const s = Array.from(a), f = [];
|
|
1376
|
-
for (const [
|
|
1376
|
+
for (const [y, S] of l)
|
|
1377
1377
|
f.push({
|
|
1378
|
-
name:
|
|
1378
|
+
name: y,
|
|
1379
1379
|
data: S
|
|
1380
1380
|
});
|
|
1381
1381
|
return {
|
|
@@ -1388,7 +1388,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1388
1388
|
return e;
|
|
1389
1389
|
let t = "";
|
|
1390
1390
|
return e != null && e.includes("://") ? t = e : t = ((n = window == null ? void 0 : window.config) == null ? void 0 : n.uploadPath) + e, o && (t = `url(${t})`), t;
|
|
1391
|
-
},
|
|
1391
|
+
}, Fo = (e, o) => {
|
|
1392
1392
|
const t = `${no}/preview?pageId=${o}`, n = `${no}/${o}`;
|
|
1393
1393
|
return e === "preview" ? t : n;
|
|
1394
1394
|
}, Ne = (e, o) => {
|
|
@@ -1422,12 +1422,12 @@ 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: y, indexCode: S } = i;
|
|
1426
1426
|
return {
|
|
1427
1427
|
label: r,
|
|
1428
1428
|
columnName: s,
|
|
1429
1429
|
location: f,
|
|
1430
|
-
show:
|
|
1430
|
+
show: y,
|
|
1431
1431
|
calcType: "COLUMN",
|
|
1432
1432
|
hrpIndexCode: S
|
|
1433
1433
|
};
|
|
@@ -1436,28 +1436,28 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1436
1436
|
label: r,
|
|
1437
1437
|
name: s,
|
|
1438
1438
|
location: f,
|
|
1439
|
-
show:
|
|
1439
|
+
show: y,
|
|
1440
1440
|
indexCode: S,
|
|
1441
1441
|
calcType: C = "COLUMN",
|
|
1442
1442
|
builtInFormula: d,
|
|
1443
1443
|
builtInValueSource: u,
|
|
1444
|
-
builtInCalcWay:
|
|
1445
|
-
formula:
|
|
1446
|
-
conditions:
|
|
1444
|
+
builtInCalcWay: m,
|
|
1445
|
+
formula: h,
|
|
1446
|
+
conditions: b
|
|
1447
1447
|
} = i;
|
|
1448
1448
|
return {
|
|
1449
1449
|
label: r,
|
|
1450
1450
|
columnName: s,
|
|
1451
1451
|
location: f,
|
|
1452
|
-
show:
|
|
1452
|
+
show: y,
|
|
1453
1453
|
calcType: C,
|
|
1454
1454
|
hrpIndexCode: S,
|
|
1455
1455
|
aggregate: "SUM",
|
|
1456
1456
|
builtInFormula: d,
|
|
1457
1457
|
builtInValueSource: u,
|
|
1458
|
-
builtInCalcWay:
|
|
1459
|
-
formula:
|
|
1460
|
-
conditions:
|
|
1458
|
+
builtInCalcWay: m,
|
|
1459
|
+
formula: h,
|
|
1460
|
+
conditions: b
|
|
1461
1461
|
};
|
|
1462
1462
|
}, { getGlobalModel: a } = N(ye, {
|
|
1463
1463
|
// @ts-ignore
|
|
@@ -1467,35 +1467,35 @@ 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 S = i[
|
|
1470
|
+
for (let y = 0; y < r; y++) {
|
|
1471
|
+
const S = i[y], {
|
|
1472
1472
|
id: C,
|
|
1473
1473
|
conditionLabel: d,
|
|
1474
1474
|
conditionKey: u,
|
|
1475
|
-
conditionValueType:
|
|
1476
|
-
} = S,
|
|
1475
|
+
conditionValueType: m
|
|
1476
|
+
} = S, h = {
|
|
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: m
|
|
1483
|
+
}, b = a(C) || {};
|
|
1484
|
+
if (Dt(b.type, "date")) {
|
|
1485
|
+
const { value: w, format: A } = b || {};
|
|
1486
|
+
h.fieldValue = (f = v(w)) == null ? void 0 : f.format(A), h.dateFormat = A;
|
|
1487
1487
|
}
|
|
1488
|
-
s.push(
|
|
1488
|
+
s.push(h);
|
|
1489
1489
|
}
|
|
1490
1490
|
return s;
|
|
1491
1491
|
};
|
|
1492
1492
|
return async () => {
|
|
1493
|
-
var
|
|
1493
|
+
var E;
|
|
1494
1494
|
const { graphicConfig: i, type: r } = e;
|
|
1495
1495
|
let {
|
|
1496
1496
|
source: s,
|
|
1497
1497
|
dataViewId: f,
|
|
1498
|
-
plugin:
|
|
1498
|
+
plugin: y = "1",
|
|
1499
1499
|
// 插件类型
|
|
1500
1500
|
layer: S,
|
|
1501
1501
|
// 后台图表类型,值分0,1
|
|
@@ -1503,27 +1503,27 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1503
1503
|
// 前端图表类型,实测没用
|
|
1504
1504
|
classificationList: d = [],
|
|
1505
1505
|
seriesList: u = [],
|
|
1506
|
-
leftAxisList:
|
|
1507
|
-
rightAxisList:
|
|
1508
|
-
queryColumnList:
|
|
1509
|
-
indicators:
|
|
1510
|
-
controlList:
|
|
1511
|
-
dataSourceId:
|
|
1506
|
+
leftAxisList: m = [],
|
|
1507
|
+
rightAxisList: h = [],
|
|
1508
|
+
queryColumnList: b = [],
|
|
1509
|
+
indicators: w = [],
|
|
1510
|
+
controlList: A = [],
|
|
1511
|
+
dataSourceId: L,
|
|
1512
1512
|
// 所属数据源ID
|
|
1513
1513
|
idxLibMode: p,
|
|
1514
1514
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1515
|
-
preview:
|
|
1515
|
+
preview: _ = !1
|
|
1516
1516
|
// 预览开关
|
|
1517
1517
|
} = i || {};
|
|
1518
1518
|
S == null && (Dt(r, "table") ? S = "1" : S = "2");
|
|
1519
1519
|
let x;
|
|
1520
1520
|
if (Array.isArray(d) && d.length > 0) {
|
|
1521
|
-
const
|
|
1522
|
-
for (let j = 0; j <
|
|
1523
|
-
const J = d[j] || {}, { label:
|
|
1524
|
-
if (z ||
|
|
1521
|
+
const T = d.length;
|
|
1522
|
+
for (let j = 0; j < T; j++) {
|
|
1523
|
+
const J = d[j] || {}, { label: F = "", name: B = "", show: z = !1, sort: W, customGroup: X, conditions: ie } = J;
|
|
1524
|
+
if (z || T === 1) {
|
|
1525
1525
|
x = {
|
|
1526
|
-
label:
|
|
1526
|
+
label: F,
|
|
1527
1527
|
columnName: B,
|
|
1528
1528
|
show: z,
|
|
1529
1529
|
sort: W,
|
|
@@ -1536,12 +1536,12 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1536
1536
|
}
|
|
1537
1537
|
let c;
|
|
1538
1538
|
if (Array.isArray(u) && u.length > 0) {
|
|
1539
|
-
const
|
|
1540
|
-
for (let j = 0; j <
|
|
1541
|
-
const J = u[j] || {}, { label:
|
|
1542
|
-
if (z ||
|
|
1539
|
+
const T = u.length;
|
|
1540
|
+
for (let j = 0; j < T; j++) {
|
|
1541
|
+
const J = u[j] || {}, { label: F = "", name: B = "", show: z = !1, sort: W, customGroup: X, conditions: ie } = J;
|
|
1542
|
+
if (z || T === 1) {
|
|
1543
1543
|
c = {
|
|
1544
|
-
label:
|
|
1544
|
+
label: F,
|
|
1545
1545
|
columnName: B,
|
|
1546
1546
|
show: z,
|
|
1547
1547
|
sort: W,
|
|
@@ -1552,53 +1552,53 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1557
|
-
|
|
1555
|
+
const g = [];
|
|
1556
|
+
b == null || b.forEach((T) => {
|
|
1557
|
+
g.push(t(T));
|
|
1558
1558
|
});
|
|
1559
1559
|
const k = [];
|
|
1560
|
-
if (
|
|
1561
|
-
|
|
1562
|
-
}),
|
|
1563
|
-
|
|
1564
|
-
}),
|
|
1565
|
-
|
|
1566
|
-
}), S === "1" &&
|
|
1560
|
+
if (m == null || m.forEach((T) => {
|
|
1561
|
+
T.location = "LEFT", k.push(n(T));
|
|
1562
|
+
}), h == null || h.forEach((T) => {
|
|
1563
|
+
T.location = "RIGHT", k.push(n(T));
|
|
1564
|
+
}), w == null || w.forEach((T) => {
|
|
1565
|
+
T.location = "LEFT", k.push(n(T));
|
|
1566
|
+
}), S === "1" && g.length === 0)
|
|
1567
1567
|
return;
|
|
1568
1568
|
if (S === "2" && k.length === 0)
|
|
1569
1569
|
return;
|
|
1570
|
-
let
|
|
1571
|
-
(i == null ? void 0 : i.pageMode) === "design" ?
|
|
1570
|
+
let R;
|
|
1571
|
+
(i == null ? void 0 : i.pageMode) === "design" ? R = i.sqlConditions ?? [] : R = l(A);
|
|
1572
1572
|
try {
|
|
1573
|
-
return await
|
|
1574
|
-
`${
|
|
1573
|
+
return await Fe.post(
|
|
1574
|
+
`${Ro}/diagram`,
|
|
1575
1575
|
{
|
|
1576
1576
|
source: s,
|
|
1577
1577
|
dataViewId: f,
|
|
1578
|
-
plugin:
|
|
1578
|
+
plugin: y,
|
|
1579
1579
|
layer: S,
|
|
1580
1580
|
chartType: C,
|
|
1581
1581
|
classification: x,
|
|
1582
1582
|
series: c,
|
|
1583
1583
|
indicatorList: k,
|
|
1584
|
-
queryColumns:
|
|
1584
|
+
queryColumns: g,
|
|
1585
1585
|
pageFlag: !0,
|
|
1586
|
-
sqlConditions:
|
|
1586
|
+
sqlConditions: R,
|
|
1587
1587
|
// fixedDimSql: '',
|
|
1588
|
-
dataSourceId:
|
|
1588
|
+
dataSourceId: L,
|
|
1589
1589
|
idxLibMode: p,
|
|
1590
|
-
preview:
|
|
1590
|
+
preview: _
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
1593
1593
|
headers: {
|
|
1594
1594
|
// @ts-ignore
|
|
1595
|
-
Authentication: (
|
|
1595
|
+
Authentication: (E = window == null ? void 0 : window.config) == null ? void 0 : E.indicatorToken,
|
|
1596
1596
|
operateContext: "ygt"
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
1599
|
);
|
|
1600
|
-
} catch (
|
|
1601
|
-
console.error(
|
|
1600
|
+
} catch (T) {
|
|
1601
|
+
console.error(T);
|
|
1602
1602
|
}
|
|
1603
1603
|
};
|
|
1604
1604
|
}, Ll = () => {
|
|
@@ -1626,22 +1626,22 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1626
1626
|
backgroundColor: e.backgroundColor,
|
|
1627
1627
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
1628
1628
|
backgroundSize: e.backgroundSize
|
|
1629
|
-
})), t =
|
|
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((m) => {
|
|
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), m();
|
|
1634
1634
|
});
|
|
1635
|
-
}),
|
|
1635
|
+
}), y = () => {
|
|
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
1637
|
}, S = () => {
|
|
1638
|
-
const
|
|
1639
|
-
r.value && (r.value.style.transform = `scale(${
|
|
1640
|
-
}, C =
|
|
1638
|
+
const m = document.body.clientWidth, h = document.body.clientHeight, b = t.value || a.value, w = n.value || l.value, A = m / b, L = h / w;
|
|
1639
|
+
r.value && (r.value.style.transform = `scale(${A}, ${L})`);
|
|
1640
|
+
}, C = Rt(async () => {
|
|
1641
1641
|
await f(), S();
|
|
1642
1642
|
}, 100), d = () => {
|
|
1643
|
-
const
|
|
1644
|
-
s = new
|
|
1643
|
+
const m = window.MutationObserver;
|
|
1644
|
+
s = new m(C), s.observe(r.value, {
|
|
1645
1645
|
attributes: !0,
|
|
1646
1646
|
attributeFilter: ["style"],
|
|
1647
1647
|
attributeOldValue: !0
|
|
@@ -1650,7 +1650,7 @@ 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(), y(), S(), window.addEventListener("resize", C), d(), i.value = !0;
|
|
1654
1654
|
}), ft(() => {
|
|
1655
1655
|
window.removeEventListener("resize", C), u();
|
|
1656
1656
|
}), {
|
|
@@ -1665,8 +1665,8 @@ const Ml = {
|
|
|
1665
1665
|
ref: "container"
|
|
1666
1666
|
};
|
|
1667
1667
|
function El(e, o, t, n, a, l) {
|
|
1668
|
-
return
|
|
1669
|
-
e.ready ? (
|
|
1668
|
+
return D(), $("div", Ml, [
|
|
1669
|
+
e.ready ? (D(), $("div", {
|
|
1670
1670
|
key: 0,
|
|
1671
1671
|
class: "page-config",
|
|
1672
1672
|
style: U(e.style)
|
|
@@ -1680,7 +1680,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1680
1680
|
pageMode: "normal",
|
|
1681
1681
|
theme: "light",
|
|
1682
1682
|
containerMap: {}
|
|
1683
|
-
}, $o = le(zo),
|
|
1683
|
+
}, $o = le(zo), Rl = Q({
|
|
1684
1684
|
name: "EcanProviderConfig",
|
|
1685
1685
|
inheritAttrs: !1,
|
|
1686
1686
|
props: {
|
|
@@ -1688,7 +1688,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1688
1688
|
},
|
|
1689
1689
|
setup(e, { expose: o }) {
|
|
1690
1690
|
Ll();
|
|
1691
|
-
const t =
|
|
1691
|
+
const t = M(), n = () => {
|
|
1692
1692
|
t.value.setAttribute("datav-theme", e.theme);
|
|
1693
1693
|
};
|
|
1694
1694
|
ne(() => e.theme, () => {
|
|
@@ -1696,7 +1696,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1696
1696
|
}), Ue(() => {
|
|
1697
1697
|
n();
|
|
1698
1698
|
});
|
|
1699
|
-
const a = q(() => de(e.contextRequestUrl)), l = q(() => e.pageMode), i = q(() => e.theme), r =
|
|
1699
|
+
const a = q(() => de(e.contextRequestUrl)), l = q(() => e.pageMode), i = q(() => e.theme), r = M("");
|
|
1700
1700
|
ze(fe, {
|
|
1701
1701
|
// 请求地址
|
|
1702
1702
|
contextRequestUrl: a,
|
|
@@ -1706,91 +1706,91 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1706
1706
|
theme: i,
|
|
1707
1707
|
touchEventId: r
|
|
1708
1708
|
});
|
|
1709
|
-
const s = /* @__PURE__ */ new Map(), f = (
|
|
1709
|
+
const s = /* @__PURE__ */ new Map(), f = (F) => s.get(F);
|
|
1710
1710
|
ze(ye, {
|
|
1711
1711
|
getGlobalModel: f,
|
|
1712
|
-
setGlobalModel: (
|
|
1713
|
-
s.set(
|
|
1712
|
+
setGlobalModel: (F, B) => {
|
|
1713
|
+
s.set(F, B);
|
|
1714
1714
|
}
|
|
1715
1715
|
});
|
|
1716
1716
|
const S = [], C = () => {
|
|
1717
1717
|
S.pop();
|
|
1718
|
-
}, d = (
|
|
1719
|
-
S.push(
|
|
1720
|
-
}, u = /* @__PURE__ */ new Map(),
|
|
1718
|
+
}, d = (F) => {
|
|
1719
|
+
S.push(F);
|
|
1720
|
+
}, u = /* @__PURE__ */ new Map(), m = (F) => u.get(F);
|
|
1721
1721
|
ze(Oo, {
|
|
1722
1722
|
popUseModalIds: C,
|
|
1723
1723
|
pushUseModalIds: d,
|
|
1724
|
-
getModalModel:
|
|
1725
|
-
setModalModel: (
|
|
1726
|
-
u.set(
|
|
1724
|
+
getModalModel: m,
|
|
1725
|
+
setModalModel: (F, B) => {
|
|
1726
|
+
u.set(F, B);
|
|
1727
1727
|
}
|
|
1728
1728
|
});
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1731
|
-
|
|
1729
|
+
const b = oa(), w = /* @__PURE__ */ new Set(), A = (F, B) => {
|
|
1730
|
+
w.add(F), b.on(F, (z) => typeof B[z] == "function" && B[z]()), Tt(() => {
|
|
1731
|
+
L(F);
|
|
1732
1732
|
});
|
|
1733
|
-
},
|
|
1734
|
-
|
|
1733
|
+
}, L = (F) => {
|
|
1734
|
+
w.delete(F), b.off(F);
|
|
1735
1735
|
};
|
|
1736
1736
|
ze(Nt, {
|
|
1737
|
-
onEvent:
|
|
1738
|
-
offEvent:
|
|
1739
|
-
emitEvent: (
|
|
1740
|
-
if (
|
|
1737
|
+
onEvent: A,
|
|
1738
|
+
offEvent: L,
|
|
1739
|
+
emitEvent: (F, B) => {
|
|
1740
|
+
if (F === "PAGE") {
|
|
1741
1741
|
const z = S.length;
|
|
1742
1742
|
let W = [];
|
|
1743
1743
|
if (z === 0)
|
|
1744
|
-
W = [...
|
|
1744
|
+
W = [...w];
|
|
1745
1745
|
else {
|
|
1746
1746
|
const X = S[z - 1];
|
|
1747
|
-
W = [...
|
|
1747
|
+
W = [...m(X)];
|
|
1748
1748
|
}
|
|
1749
1749
|
W.forEach((X) => {
|
|
1750
|
-
|
|
1750
|
+
b.emit(X, B);
|
|
1751
1751
|
});
|
|
1752
1752
|
} else
|
|
1753
|
-
|
|
1753
|
+
b.emit(F, B);
|
|
1754
1754
|
}
|
|
1755
1755
|
});
|
|
1756
|
-
const
|
|
1756
|
+
const _ = M(0);
|
|
1757
1757
|
ze(Do, {
|
|
1758
1758
|
requestToken: () => {
|
|
1759
|
-
|
|
1759
|
+
_.value = v(_) + 1;
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
|
-
const c = /* @__PURE__ */ new Map(),
|
|
1762
|
+
const c = /* @__PURE__ */ new Map(), g = /* @__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
|
-
W == null || W.push(
|
|
1766
|
+
W == null || W.push(F);
|
|
1767
1767
|
} else
|
|
1768
|
-
c.set(B, [
|
|
1769
|
-
|
|
1770
|
-
},
|
|
1771
|
-
const W =
|
|
1768
|
+
c.set(B, [F]);
|
|
1769
|
+
g.set(z, F);
|
|
1770
|
+
}, R = (F) => new Promise((B, z) => {
|
|
1771
|
+
const W = F.map((X) => X());
|
|
1772
1772
|
Promise.all(W).then((X) => {
|
|
1773
1773
|
B(X);
|
|
1774
1774
|
}).catch((X) => {
|
|
1775
1775
|
z(X);
|
|
1776
1776
|
});
|
|
1777
|
-
}),
|
|
1777
|
+
}), E = async () => {
|
|
1778
1778
|
var z;
|
|
1779
|
-
const
|
|
1779
|
+
const F = await po.get(`${Ro}/user/anonymous?username=admin&businessOfficeId=350421`, {
|
|
1780
1780
|
headers: {
|
|
1781
1781
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1782
1782
|
current_context: "ygt",
|
|
1783
1783
|
Authentication: ""
|
|
1784
1784
|
}
|
|
1785
|
-
}), { token: B } = ((z =
|
|
1785
|
+
}), { token: B } = ((z = F.data) == null ? void 0 : z.data) || {};
|
|
1786
1786
|
window.config.indicatorToken = B;
|
|
1787
|
-
},
|
|
1788
|
-
if (
|
|
1789
|
-
if (typeof
|
|
1790
|
-
const W =
|
|
1787
|
+
}, T = (F) => new Promise(async (B, z) => {
|
|
1788
|
+
if (F) {
|
|
1789
|
+
if (typeof F == "string") {
|
|
1790
|
+
const W = g.get(F);
|
|
1791
1791
|
if (typeof W == "function") {
|
|
1792
|
-
const X =
|
|
1793
|
-
W(),
|
|
1792
|
+
const X = Fe.interceptors.response.use((ie) => (B(ie), ie), (ie) => (z(ie), Promise.reject(ie)));
|
|
1793
|
+
W(), Fe.interceptors.response.eject(X);
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
} else {
|
|
@@ -1798,10 +1798,10 @@ 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" && v(
|
|
1801
|
+
e.pageMode !== "design" && v(_) > 0 && await E();
|
|
1802
1802
|
for (let ie = 0; ie < X; ie++) {
|
|
1803
1803
|
const at = W[ie][1];
|
|
1804
|
-
await
|
|
1804
|
+
await R(at);
|
|
1805
1805
|
}
|
|
1806
1806
|
} catch (ie) {
|
|
1807
1807
|
console.error(ie);
|
|
@@ -1812,37 +1812,37 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1812
1812
|
});
|
|
1813
1813
|
ze(Se, {
|
|
1814
1814
|
setRequest: k,
|
|
1815
|
-
touchRequest:
|
|
1815
|
+
touchRequest: T
|
|
1816
1816
|
}), ze(Je, {
|
|
1817
1817
|
emitRefreshPage: () => {
|
|
1818
|
-
|
|
1818
|
+
b.emit(Je);
|
|
1819
1819
|
}
|
|
1820
1820
|
});
|
|
1821
|
-
const J = (
|
|
1822
|
-
|
|
1823
|
-
|
|
1821
|
+
const J = (F) => {
|
|
1822
|
+
b.on(Je, () => F()), Ue(() => {
|
|
1823
|
+
b.off(Je);
|
|
1824
1824
|
});
|
|
1825
1825
|
};
|
|
1826
1826
|
return Tt(() => {
|
|
1827
|
-
c == null || c.clear(),
|
|
1827
|
+
c == null || c.clear(), g == null || g.clear();
|
|
1828
1828
|
}), o({
|
|
1829
|
-
touchRequest:
|
|
1829
|
+
touchRequest: T,
|
|
1830
1830
|
getGlobalModel: f,
|
|
1831
1831
|
onRefreshPage: J
|
|
1832
1832
|
}), {
|
|
1833
1833
|
providerConfig: t
|
|
1834
1834
|
};
|
|
1835
1835
|
}
|
|
1836
|
-
}),
|
|
1836
|
+
}), Fl = {
|
|
1837
1837
|
id: "ProviderConfig",
|
|
1838
1838
|
ref: "providerConfig"
|
|
1839
1839
|
};
|
|
1840
1840
|
function zl(e, o, t, n, a, l) {
|
|
1841
|
-
return
|
|
1841
|
+
return D(), $("div", Fl, [
|
|
1842
1842
|
gt(e.$slots, "default")
|
|
1843
1843
|
], 512);
|
|
1844
1844
|
}
|
|
1845
|
-
const $l = /* @__PURE__ */ K(
|
|
1845
|
+
const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
1846
1846
|
...se,
|
|
1847
1847
|
name: "文本",
|
|
1848
1848
|
keyName: "文本",
|
|
@@ -1873,42 +1873,42 @@ const $l = /* @__PURE__ */ K(Fl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1873
1873
|
...Po
|
|
1874
1874
|
},
|
|
1875
1875
|
setup(e) {
|
|
1876
|
-
const o = re(e), t =
|
|
1876
|
+
const o = re(e), t = M({});
|
|
1877
1877
|
ne(() => [e.data, e.dataType], ([C, d]) => {
|
|
1878
1878
|
d === "static" && (t.value = C);
|
|
1879
1879
|
}, {
|
|
1880
1880
|
immediate: !0
|
|
1881
1881
|
});
|
|
1882
1882
|
const n = q(() => {
|
|
1883
|
-
var
|
|
1883
|
+
var m;
|
|
1884
1884
|
const C = v(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 x =
|
|
1896
|
-
c && (
|
|
1890
|
+
for (let h = 0; h < u.length; h++) {
|
|
1891
|
+
const b = u[h], w = (m = b == null ? void 0 : b.slice(1, b.length - 1)) == null ? void 0 : m.trim();
|
|
1892
|
+
let A = w;
|
|
1893
|
+
const L = w.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1894
|
+
for (let _ = 0; _ < L.length; _++) {
|
|
1895
|
+
const x = L[_], c = C[x];
|
|
1896
|
+
c && (A = w.replace(x, c));
|
|
1897
1897
|
}
|
|
1898
|
-
if (/\(.*\)/g.test(
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1898
|
+
if (/\(.*\)/g.test(A)) {
|
|
1899
|
+
const _ = yt(A);
|
|
1900
|
+
_ != null && (A = _);
|
|
1901
1901
|
}
|
|
1902
|
-
let p =
|
|
1903
|
-
if (p ===
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1902
|
+
let p = A;
|
|
1903
|
+
if (p === w && (p = e.variableDefaultValue), p != null) {
|
|
1904
|
+
const _ = e.format;
|
|
1905
|
+
_ === "percentage" ? (p = +p, isNaN(p) ? d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : p >= 0 ? (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${p}%</span>`)) : (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+p)}%</span>`))) : e.format === "percent" ? (p = +p, isNaN(p) || (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}%</span>`))) : e.format === "money" ? (p = +p, isNaN(p) || (p = Pt(p), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`))) : _ === "thousands" ? (p = +p, isNaN(p) || (p = Tl(p), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`))) : d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
return `<span>${d}</span>`;
|
|
1909
1909
|
}), { pageMode: a } = N(fe, {
|
|
1910
1910
|
pageMode: "normal"
|
|
1911
|
-
}), l = _e(e), i =
|
|
1911
|
+
}), l = _e(e), i = M(!1), r = async () => {
|
|
1912
1912
|
var C;
|
|
1913
1913
|
if (v(a) !== "design")
|
|
1914
1914
|
try {
|
|
@@ -1942,11 +1942,11 @@ const $l = /* @__PURE__ */ K(Fl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1942
1942
|
const S = me(e)("click", () => {
|
|
1943
1943
|
if (!e.linkPage && !e.href)
|
|
1944
1944
|
return;
|
|
1945
|
-
const C = e.linkPage || "", d =
|
|
1946
|
-
let
|
|
1947
|
-
|
|
1948
|
-
const
|
|
1949
|
-
|
|
1945
|
+
const C = e.linkPage || "", d = Fo(v(a), C), u = e.href;
|
|
1946
|
+
let m = u || d;
|
|
1947
|
+
m = de(m);
|
|
1948
|
+
const h = e.target;
|
|
1949
|
+
h && (h !== "event" ? window.open(m, "_" + h) : window.parent.postMessage({
|
|
1950
1950
|
type: "openPage",
|
|
1951
1951
|
url: u
|
|
1952
1952
|
}, "*"));
|
|
@@ -1962,13 +1962,13 @@ const $l = /* @__PURE__ */ K(Fl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1962
1962
|
const ql = ["innerHTML"];
|
|
1963
1963
|
function jl(e, o, t, n, a, l) {
|
|
1964
1964
|
const i = H("skeleton");
|
|
1965
|
-
return e.loading ? (
|
|
1965
|
+
return e.loading ? (D(), $("div", {
|
|
1966
1966
|
key: 0,
|
|
1967
1967
|
class: "skeleton-wrapper",
|
|
1968
1968
|
style: U(e.style)
|
|
1969
1969
|
}, [
|
|
1970
1970
|
G(i, { loading: e.loading }, null, 8, ["loading"])
|
|
1971
|
-
], 4)) : (
|
|
1971
|
+
], 4)) : (D(), $("div", {
|
|
1972
1972
|
key: 1,
|
|
1973
1973
|
class: "ecan-text",
|
|
1974
1974
|
style: U(e.style),
|
|
@@ -1980,13 +1980,13 @@ const Wl = /* @__PURE__ */ K(Gl, [["render", jl], ["__scopeId", "data-v-f9ba6c3f
|
|
|
1980
1980
|
name: "EcanScrollText",
|
|
1981
1981
|
setup() {
|
|
1982
1982
|
return {
|
|
1983
|
-
text:
|
|
1983
|
+
text: M("基础文本")
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
1986
1986
|
});
|
|
1987
1987
|
const Zl = { class: "red" };
|
|
1988
1988
|
function Jl(e, o, t, n, a, l) {
|
|
1989
|
-
return
|
|
1989
|
+
return D(), $("div", Zl, be(e.text), 1);
|
|
1990
1990
|
}
|
|
1991
1991
|
const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e"]]), Ql = ae(Yl), Bo = {
|
|
1992
1992
|
...se,
|
|
@@ -2009,7 +2009,7 @@ const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2009
2009
|
...Uo
|
|
2010
2010
|
},
|
|
2011
2011
|
setup(e) {
|
|
2012
|
-
const o = re(e), t =
|
|
2012
|
+
const o = re(e), t = M(Ce().format(e.format));
|
|
2013
2013
|
let n = null;
|
|
2014
2014
|
const a = () => {
|
|
2015
2015
|
clearInterval(n), n = null;
|
|
@@ -2029,7 +2029,7 @@ const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2029
2029
|
}
|
|
2030
2030
|
});
|
|
2031
2031
|
function Xl(e, o, t, n, a, l) {
|
|
2032
|
-
return
|
|
2032
|
+
return D(), $("div", {
|
|
2033
2033
|
class: "time-display",
|
|
2034
2034
|
style: U(e.style)
|
|
2035
2035
|
}, be(e.time), 5);
|
|
@@ -2074,49 +2074,49 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2074
2074
|
...qo
|
|
2075
2075
|
},
|
|
2076
2076
|
setup(e) {
|
|
2077
|
-
const o =
|
|
2077
|
+
const o = M(e.data), t = re(e, ["backgroundColor"]), n = q(() => e.useRanking ? {
|
|
2078
2078
|
textAlign: "center"
|
|
2079
2079
|
} : {
|
|
2080
2080
|
textAlign: "left"
|
|
2081
|
-
}), a = (u,
|
|
2081
|
+
}), a = (u, m) => m == null || m === "" ? u : {
|
|
2082
2082
|
money: Pt,
|
|
2083
2083
|
percentage: ut,
|
|
2084
2084
|
contrast: ut
|
|
2085
|
-
}[
|
|
2086
|
-
const
|
|
2087
|
-
if (
|
|
2085
|
+
}[m](u) || "", l = (u, m) => {
|
|
2086
|
+
const h = parseFloat(u + "");
|
|
2087
|
+
if (m !== "contrast")
|
|
2088
2088
|
return "";
|
|
2089
2089
|
switch (!0) {
|
|
2090
|
-
case
|
|
2090
|
+
case h >= 0:
|
|
2091
2091
|
return "goUp";
|
|
2092
|
-
case
|
|
2092
|
+
case h < 0:
|
|
2093
2093
|
return "goDown";
|
|
2094
2094
|
}
|
|
2095
2095
|
}, i = _e(e), { pageMode: r } = N(fe, {
|
|
2096
2096
|
pageMode: "normal"
|
|
2097
|
-
}), s =
|
|
2097
|
+
}), s = M(!1), f = async () => {
|
|
2098
2098
|
var u;
|
|
2099
2099
|
if (!(e.dataType !== "request" || v(r) === "design"))
|
|
2100
2100
|
try {
|
|
2101
2101
|
s.value = !0;
|
|
2102
|
-
const
|
|
2103
|
-
o.value = ((u =
|
|
2104
|
-
} catch (
|
|
2105
|
-
console.error(
|
|
2102
|
+
const m = await i();
|
|
2103
|
+
o.value = ((u = m == null ? void 0 : m.data) == null ? void 0 : u.data.rows) || [];
|
|
2104
|
+
} catch (m) {
|
|
2105
|
+
console.error(m);
|
|
2106
2106
|
} finally {
|
|
2107
2107
|
s.value = !1;
|
|
2108
2108
|
}
|
|
2109
|
-
},
|
|
2109
|
+
}, y = () => {
|
|
2110
2110
|
f();
|
|
2111
2111
|
}, C = me(e)("click", () => {
|
|
2112
2112
|
});
|
|
2113
2113
|
he(e, {
|
|
2114
|
-
refreshData:
|
|
2114
|
+
refreshData: y
|
|
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: m, requestFn: h }) => {
|
|
2120
2120
|
}
|
|
2121
2121
|
});
|
|
2122
2122
|
return d({
|
|
@@ -2152,14 +2152,14 @@ const ai = (e) => (fo("data-v-211785ca"), e = e(), mo(), e), li = {
|
|
|
2152
2152
|
};
|
|
2153
2153
|
function fi(e, o, t, n, a, l) {
|
|
2154
2154
|
const i = H("skeleton");
|
|
2155
|
-
return
|
|
2155
|
+
return D(), $("div", {
|
|
2156
2156
|
class: "ecan-list",
|
|
2157
2157
|
style: U(e.style)
|
|
2158
2158
|
}, [
|
|
2159
2159
|
G(i, { loading: e.loading }, {
|
|
2160
2160
|
default: Y(() => [
|
|
2161
|
-
e.useTitle ? (
|
|
2162
|
-
(
|
|
2161
|
+
e.useTitle ? (D(), $("div", li, [
|
|
2162
|
+
(D(!0), $(Me, null, De(e.columnCount, (r) => (D(), $("div", {
|
|
2163
2163
|
class: "title-inner",
|
|
2164
2164
|
style: U({
|
|
2165
2165
|
backgroundColor: e.backgroundColor,
|
|
@@ -2169,8 +2169,8 @@ function fi(e, o, t, n, a, l) {
|
|
|
2169
2169
|
}),
|
|
2170
2170
|
key: r
|
|
2171
2171
|
}, [
|
|
2172
|
-
e.useRanking ? (
|
|
2173
|
-
(
|
|
2172
|
+
e.useRanking ? (D(), $("div", ii)) : ve("", !0),
|
|
2173
|
+
(D(!0), $(Me, null, De(e.columns, (s, f) => (D(), $("div", {
|
|
2174
2174
|
class: "column",
|
|
2175
2175
|
key: s.key || f,
|
|
2176
2176
|
style: U({
|
|
@@ -2180,15 +2180,15 @@ function fi(e, o, t, n, a, l) {
|
|
|
2180
2180
|
}, be(s.title), 5))), 128))
|
|
2181
2181
|
], 4))), 128))
|
|
2182
2182
|
])) : ve("", !0),
|
|
2183
|
-
e.dataSource.length > 0 ? (
|
|
2184
|
-
e.useTitle ? (
|
|
2183
|
+
e.dataSource.length > 0 ? (D(), $("div", ri, [
|
|
2184
|
+
e.useTitle ? (D(), $("div", {
|
|
2185
2185
|
key: 0,
|
|
2186
2186
|
class: "title-placeholder",
|
|
2187
2187
|
style: U({
|
|
2188
2188
|
marginBottom: e.itemRowSpan
|
|
2189
2189
|
})
|
|
2190
2190
|
}, null, 4)) : ve("", !0),
|
|
2191
|
-
(
|
|
2191
|
+
(D(!0), $(Me, null, De(e.dataSource.slice(0, e.sliceCount), (r, s) => (D(), $("div", {
|
|
2192
2192
|
class: "item",
|
|
2193
2193
|
style: U({
|
|
2194
2194
|
backgroundColor: e.backgroundColor,
|
|
@@ -2200,11 +2200,11 @@ function fi(e, o, t, n, a, l) {
|
|
|
2200
2200
|
key: r.id || s,
|
|
2201
2201
|
onClick: o[0] || (o[0] = (...f) => e.click && e.click(...f))
|
|
2202
2202
|
}, [
|
|
2203
|
-
e.useRanking ? (
|
|
2203
|
+
e.useRanking ? (D(), $("div", si, [
|
|
2204
2204
|
ci,
|
|
2205
2205
|
ee("div", di, " Top " + be(s + 1), 1)
|
|
2206
2206
|
])) : ve("", !0),
|
|
2207
|
-
(
|
|
2207
|
+
(D(!0), $(Me, null, De(e.columns, (f) => (D(), $("div", {
|
|
2208
2208
|
class: Lt(["column", e.contrastClass(r[f.key], f.format)]),
|
|
2209
2209
|
key: f.key,
|
|
2210
2210
|
style: U({
|
|
@@ -2215,7 +2215,7 @@ function fi(e, o, t, n, a, l) {
|
|
|
2215
2215
|
})
|
|
2216
2216
|
}, be((f.format != null || f.format !== "") && e.formatFn(r[f.key], f.format)), 7))), 128))
|
|
2217
2217
|
], 4))), 128))
|
|
2218
|
-
])) : (
|
|
2218
|
+
])) : (D(), $("div", ui, " 暂无数据 "))
|
|
2219
2219
|
]),
|
|
2220
2220
|
_: 1
|
|
2221
2221
|
}, 8, ["loading"])
|
|
@@ -2259,7 +2259,7 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2259
2259
|
}), t = re(e), n = q(() => {
|
|
2260
2260
|
const u = e.width;
|
|
2261
2261
|
return parseFloat(u);
|
|
2262
|
-
}), a =
|
|
2262
|
+
}), a = M({});
|
|
2263
2263
|
ne(() => e.data, () => {
|
|
2264
2264
|
(e.dataType === "static" || v(o) === "design") && (a.value = e.data);
|
|
2265
2265
|
}, {
|
|
@@ -2267,52 +2267,52 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2267
2267
|
deep: !0
|
|
2268
2268
|
});
|
|
2269
2269
|
const l = q(() => {
|
|
2270
|
-
const u = v(a),
|
|
2270
|
+
const u = v(a), m = +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(m) ? 0 : m;
|
|
2273
|
+
const h = e.text.match(/\{.+\}/g) || [];
|
|
2274
|
+
let b;
|
|
2275
|
+
const w = new Set(Object.keys(u));
|
|
2276
|
+
for (let A = 0; A < h.length; A++) {
|
|
2277
|
+
const L = h[A], p = L.slice(1, L.length - 1);
|
|
2278
|
+
if (w.has(p)) {
|
|
2279
|
+
b = u[p];
|
|
2280
2280
|
break;
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
|
-
return typeof
|
|
2283
|
+
return typeof b == "number" ? b = b * 100 : typeof b == "string" && !isNaN(+b) ? b = +b * 100 : isNaN(m) ? b = 0 : b = m * 100, e.decimalFormat && (b = +b.toFixed(2)), b;
|
|
2284
2284
|
}), i = q(() => {
|
|
2285
|
-
var
|
|
2285
|
+
var w;
|
|
2286
2286
|
let u = e.text;
|
|
2287
2287
|
if (u === "")
|
|
2288
2288
|
return v(l);
|
|
2289
|
-
const
|
|
2290
|
-
for (let
|
|
2291
|
-
const
|
|
2292
|
-
let p =
|
|
2293
|
-
const
|
|
2294
|
-
for (let
|
|
2295
|
-
const k = (
|
|
2296
|
-
|
|
2289
|
+
const m = e.variableDefaultValue, h = v(a), b = u.match(/\{.+\}/g) || [];
|
|
2290
|
+
for (let A = 0; A < b.length; A++) {
|
|
2291
|
+
const L = b[A];
|
|
2292
|
+
let p = L.slice(1, L.length - 1);
|
|
2293
|
+
const _ = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, x = L.match(_);
|
|
2294
|
+
for (let g = 0; g < (x == null ? void 0 : x.length); g++) {
|
|
2295
|
+
const k = (w = x[g]) == null ? void 0 : w.trim();
|
|
2296
|
+
h[k] != null && (p = p.replace(k, h[k]));
|
|
2297
2297
|
}
|
|
2298
2298
|
let c = p;
|
|
2299
2299
|
try {
|
|
2300
2300
|
/\(.*\)/g.test(p) && (c = yt(p));
|
|
2301
|
-
} catch (
|
|
2302
|
-
console.error(
|
|
2301
|
+
} catch (g) {
|
|
2302
|
+
console.error(g);
|
|
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 = m, u = u.replace(L, c + "");
|
|
2305
2305
|
}
|
|
2306
2306
|
return u;
|
|
2307
|
-
}), r = _e(e), s =
|
|
2307
|
+
}), r = _e(e), s = M(!1), f = async () => {
|
|
2308
2308
|
var u;
|
|
2309
2309
|
if (!(e.dataType !== "request" || v(o) === "design"))
|
|
2310
2310
|
try {
|
|
2311
2311
|
s.value = !0;
|
|
2312
|
-
const
|
|
2313
|
-
a.value = ((u =
|
|
2314
|
-
} catch (
|
|
2315
|
-
console.error(
|
|
2312
|
+
const m = await r();
|
|
2313
|
+
a.value = ((u = m == null ? void 0 : m.data) == null ? void 0 : u.data) || {};
|
|
2314
|
+
} catch (m) {
|
|
2315
|
+
console.error(m);
|
|
2316
2316
|
} finally {
|
|
2317
2317
|
s.value = !1;
|
|
2318
2318
|
}
|
|
@@ -2326,7 +2326,7 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
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: m, requestFn: h }) => {
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
2332
|
return d({
|
|
@@ -2345,7 +2345,7 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2345
2345
|
});
|
|
2346
2346
|
function bi(e, o, t, n, a, l) {
|
|
2347
2347
|
const i = H("skeleton"), r = H("a-progress");
|
|
2348
|
-
return
|
|
2348
|
+
return D(), $("div", {
|
|
2349
2349
|
class: "ecan-proportion",
|
|
2350
2350
|
style: U(e.style)
|
|
2351
2351
|
}, [
|
|
@@ -2362,10 +2362,10 @@ function bi(e, o, t, n, a, l) {
|
|
|
2362
2362
|
onClick: e.click
|
|
2363
2363
|
}, {
|
|
2364
2364
|
format: Y(() => [
|
|
2365
|
-
e.loading ? (
|
|
2365
|
+
e.loading ? (D(), Re(i, {
|
|
2366
2366
|
key: 0,
|
|
2367
2367
|
loading: e.loading
|
|
2368
|
-
}, null, 8, ["loading"])) : (
|
|
2368
|
+
}, null, 8, ["loading"])) : (D(), $("div", {
|
|
2369
2369
|
key: 1,
|
|
2370
2370
|
class: "format",
|
|
2371
2371
|
style: U({
|
|
@@ -2402,7 +2402,7 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2402
2402
|
...Ho
|
|
2403
2403
|
},
|
|
2404
2404
|
setup(e) {
|
|
2405
|
-
const o = re(e), t =
|
|
2405
|
+
const o = re(e), t = M("");
|
|
2406
2406
|
ne(() => e.value, (f) => {
|
|
2407
2407
|
t.value = f;
|
|
2408
2408
|
}, {
|
|
@@ -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, y) => {
|
|
2419
2419
|
}
|
|
2420
2420
|
});
|
|
2421
2421
|
a(e.id, {
|
|
@@ -2425,7 +2425,7 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2425
2425
|
const l = () => {
|
|
2426
2426
|
const f = n(e.id);
|
|
2427
2427
|
a(e.id, { ...f, RECORD: t });
|
|
2428
|
-
}, i = me(e), r =
|
|
2428
|
+
}, i = me(e), r = Rt(i("inputChange", () => {
|
|
2429
2429
|
l();
|
|
2430
2430
|
}), 300), s = i("inputBlur", () => {
|
|
2431
2431
|
});
|
|
@@ -2439,7 +2439,7 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2439
2439
|
});
|
|
2440
2440
|
function wi(e, o, t, n, a, l) {
|
|
2441
2441
|
const i = H("a-input");
|
|
2442
|
-
return
|
|
2442
|
+
return D(), $("div", {
|
|
2443
2443
|
class: "ecan-input",
|
|
2444
2444
|
style: U(e.style)
|
|
2445
2445
|
}, [
|
|
@@ -2479,20 +2479,20 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2479
2479
|
ADatePicker: Zn
|
|
2480
2480
|
},
|
|
2481
2481
|
setup(e) {
|
|
2482
|
-
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2482
|
+
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M(null);
|
|
2483
2483
|
ne(() => [e.value, e.useCurrentTime, e.operate], ([r, s, f]) => {
|
|
2484
|
-
let
|
|
2485
|
-
if (r ?
|
|
2484
|
+
let y = null;
|
|
2485
|
+
if (r ? y = Ce(de(r)) : s && (y = Ce()), f && y) {
|
|
2486
2486
|
const { type: S, value: C, mode: d } = f;
|
|
2487
2487
|
switch (S) {
|
|
2488
2488
|
case "add":
|
|
2489
|
-
|
|
2489
|
+
y = y.add(C, d);
|
|
2490
2490
|
break;
|
|
2491
2491
|
case "minus":
|
|
2492
|
-
|
|
2492
|
+
y = y.subtract(C, d);
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
|
-
n.value =
|
|
2495
|
+
n.value = y;
|
|
2496
2496
|
}, {
|
|
2497
2497
|
deep: !0,
|
|
2498
2498
|
immediate: !0
|
|
@@ -2523,7 +2523,7 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2523
2523
|
});
|
|
2524
2524
|
function Ti(e, o, t, n, a, l) {
|
|
2525
2525
|
const i = H("a-date-picker");
|
|
2526
|
-
return
|
|
2526
|
+
return D(), $("div", {
|
|
2527
2527
|
class: "ecan-date-picker",
|
|
2528
2528
|
style: U(e.style)
|
|
2529
2529
|
}, [
|
|
@@ -2569,22 +2569,22 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2569
2569
|
setup(e) {
|
|
2570
2570
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } = N(fe, {
|
|
2571
2571
|
pageMode: "normal"
|
|
2572
|
-
}), l =
|
|
2573
|
-
const
|
|
2574
|
-
let
|
|
2575
|
-
const p =
|
|
2576
|
-
return p != null ?
|
|
2577
|
-
}, f =
|
|
2578
|
-
var
|
|
2572
|
+
}), l = M(e.data), i = M(e.value || e.data[0]), r = e.dataFieldNames, s = (h, b) => {
|
|
2573
|
+
const w = r.label, A = r.value;
|
|
2574
|
+
let L;
|
|
2575
|
+
const p = b[w], _ = b[A];
|
|
2576
|
+
return p != null ? L = p : _ != null && (L = _), (L == null ? void 0 : L.toLowerCase().indexOf(h == null ? void 0 : h.toLowerCase())) >= 0;
|
|
2577
|
+
}, f = M(!1), y = async () => {
|
|
2578
|
+
var h, b;
|
|
2579
2579
|
if (!(e.dataType !== "request" || v(a) === "design")) {
|
|
2580
2580
|
f.value = !0;
|
|
2581
2581
|
try {
|
|
2582
|
-
const
|
|
2583
|
-
l.value = ((
|
|
2584
|
-
const
|
|
2585
|
-
e.value === "" &&
|
|
2586
|
-
} catch (
|
|
2587
|
-
console.error(
|
|
2582
|
+
const w = await n();
|
|
2583
|
+
l.value = ((b = (h = w == null ? void 0 : w.data) == null ? void 0 : h.data) == null ? void 0 : b.rows) || [];
|
|
2584
|
+
const A = v(l)[0];
|
|
2585
|
+
e.value === "" && A != null && (i.value = A[r.value]);
|
|
2586
|
+
} catch (w) {
|
|
2587
|
+
console.error(w);
|
|
2588
2588
|
} finally {
|
|
2589
2589
|
f.value = !1;
|
|
2590
2590
|
}
|
|
@@ -2592,11 +2592,11 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2592
2592
|
}, { getGlobalModel: S, setGlobalModel: C } = N(ye, {
|
|
2593
2593
|
// @ts-ignore
|
|
2594
2594
|
// eslint-disable-next-line no-void
|
|
2595
|
-
getGlobalModel: (
|
|
2595
|
+
getGlobalModel: (h) => {
|
|
2596
2596
|
},
|
|
2597
2597
|
// @ts-ignore
|
|
2598
2598
|
// eslint-disable-next-line no-void
|
|
2599
|
-
setGlobalModel: (
|
|
2599
|
+
setGlobalModel: (h, b) => {
|
|
2600
2600
|
}
|
|
2601
2601
|
});
|
|
2602
2602
|
C(e.id, {
|
|
@@ -2604,22 +2604,22 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2604
2604
|
value: i
|
|
2605
2605
|
});
|
|
2606
2606
|
const u = me(e)("selectChange", () => {
|
|
2607
|
-
const
|
|
2608
|
-
C(
|
|
2607
|
+
const h = e.id, b = S(h);
|
|
2608
|
+
C(h, { ...b, RECORD: i });
|
|
2609
2609
|
});
|
|
2610
2610
|
he(e, {
|
|
2611
2611
|
selectChange: u,
|
|
2612
|
-
refreshData:
|
|
2612
|
+
refreshData: y
|
|
2613
2613
|
});
|
|
2614
|
-
const { setRequest:
|
|
2614
|
+
const { setRequest: m } = N(Se, {
|
|
2615
2615
|
// @ts-ignore
|
|
2616
2616
|
// eslint-disable-next-line no-void
|
|
2617
|
-
setRequest: ({ id:
|
|
2617
|
+
setRequest: ({ id: h, sortNum: b, requestFn: w }) => {
|
|
2618
2618
|
}
|
|
2619
2619
|
});
|
|
2620
|
-
return
|
|
2620
|
+
return m({
|
|
2621
2621
|
id: e.id,
|
|
2622
|
-
requestFn:
|
|
2622
|
+
requestFn: y,
|
|
2623
2623
|
sortNum: e.requestSort
|
|
2624
2624
|
}), {
|
|
2625
2625
|
style: o,
|
|
@@ -2634,7 +2634,7 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2634
2634
|
});
|
|
2635
2635
|
function Di(e, o, t, n, a, l) {
|
|
2636
2636
|
const i = H("a-select");
|
|
2637
|
-
return
|
|
2637
|
+
return D(), $("div", {
|
|
2638
2638
|
class: "ecan-select",
|
|
2639
2639
|
style: U(e.style)
|
|
2640
2640
|
}, [
|
|
@@ -2655,7 +2655,7 @@ function Di(e, o, t, n, a, l) {
|
|
|
2655
2655
|
}, null, 8, ["value", "options", "mode", "getPopupContainer", "field-names", "maxTagCount", "filter-option", "loading", "autoClearSearchValue", "onChange"])
|
|
2656
2656
|
], 4);
|
|
2657
2657
|
}
|
|
2658
|
-
const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54"]]),
|
|
2658
|
+
const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54"]]), Ri = ae(Oi), Ko = {
|
|
2659
2659
|
...se,
|
|
2660
2660
|
name: "日期范围选择器",
|
|
2661
2661
|
keyName: "日期范围选择器",
|
|
@@ -2672,7 +2672,7 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2672
2672
|
operate: null,
|
|
2673
2673
|
limitStartTime: "",
|
|
2674
2674
|
limitEndTime: ""
|
|
2675
|
-
}, Xo = le(Ko),
|
|
2675
|
+
}, Xo = le(Ko), Fi = ["dateChange"], zi = Q({
|
|
2676
2676
|
name: "EcanRangePicker",
|
|
2677
2677
|
components: {
|
|
2678
2678
|
ARangePicker: Yn
|
|
@@ -2681,20 +2681,20 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2681
2681
|
...Xo
|
|
2682
2682
|
},
|
|
2683
2683
|
setup(e) {
|
|
2684
|
-
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2685
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, u,
|
|
2686
|
-
let
|
|
2687
|
-
if (
|
|
2688
|
-
const { type: p, value:
|
|
2684
|
+
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], ([d, u, m, h, b, w]) => {
|
|
2686
|
+
let A = null, L = null;
|
|
2687
|
+
if (m && (A = Ce().subtract(h, b), L = Ce()), d && (A = Ce(de(d))), u && (L = Ce(de(u))), w) {
|
|
2688
|
+
const { type: p, value: _, mode: x } = w;
|
|
2689
2689
|
switch (p) {
|
|
2690
2690
|
case "add":
|
|
2691
|
-
|
|
2691
|
+
A = A && A.add(_, x), L = L && L.add(_, x);
|
|
2692
2692
|
break;
|
|
2693
2693
|
case "minus":
|
|
2694
|
-
|
|
2694
|
+
A = A && A.subtract(_, x), L = L && L.subtract(_, x);
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
|
-
n.value = [
|
|
2697
|
+
n.value = [A, L];
|
|
2698
2698
|
}, {
|
|
2699
2699
|
immediate: !0
|
|
2700
2700
|
});
|
|
@@ -2702,23 +2702,23 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2702
2702
|
const i = (d) => {
|
|
2703
2703
|
Array.isArray(d) ? (a = d[0], l = d[1]) : (a = null, l = null);
|
|
2704
2704
|
}, r = (d) => {
|
|
2705
|
-
let u = !1, { limitStartTime:
|
|
2706
|
-
const
|
|
2705
|
+
let u = !1, { limitStartTime: m, limitEndTime: h } = e;
|
|
2706
|
+
const b = {
|
|
2707
2707
|
startTime: `${a || ""}`,
|
|
2708
2708
|
endTime: `${l || ""}`
|
|
2709
2709
|
};
|
|
2710
|
-
return
|
|
2710
|
+
return m = de(m, { codeData: b }), h = de(h, { codeData: b }), m && h ? u = !(Ce(m) < d && d < Ce(h)) : m ? u = Ce(m) > d : h && (u = Ce(h) < d), u;
|
|
2711
2711
|
}, { setGlobalModel: s } = N(ye, {
|
|
2712
2712
|
// @ts-ignore
|
|
2713
2713
|
// eslint-disable-next-line no-void
|
|
2714
2714
|
setGlobalModel: (d, u) => {
|
|
2715
2715
|
}
|
|
2716
|
-
}), f = q(() => Array.isArray(v(n)) ? v(n)[0] : null),
|
|
2716
|
+
}), f = q(() => Array.isArray(v(n)) ? v(n)[0] : null), y = q(() => Array.isArray(v(n)) ? v(n)[1] : null);
|
|
2717
2717
|
s(e.id, {
|
|
2718
2718
|
type: e.type,
|
|
2719
2719
|
format: e.format,
|
|
2720
2720
|
startTime: f,
|
|
2721
|
-
endTime:
|
|
2721
|
+
endTime: y
|
|
2722
2722
|
});
|
|
2723
2723
|
const C = me(e)("dateChange", () => {
|
|
2724
2724
|
console.log("dateChange");
|
|
@@ -2738,7 +2738,7 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2738
2738
|
});
|
|
2739
2739
|
function $i(e, o, t, n, a, l) {
|
|
2740
2740
|
const i = H("a-range-picker");
|
|
2741
|
-
return
|
|
2741
|
+
return D(), $("div", {
|
|
2742
2742
|
class: "ecan-range-picker",
|
|
2743
2743
|
style: U(e.style)
|
|
2744
2744
|
}, [
|
|
@@ -2805,7 +2805,7 @@ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-24f19e2d
|
|
|
2805
2805
|
});
|
|
2806
2806
|
function Gi(e, o, t, n, a, l) {
|
|
2807
2807
|
const i = H("a-button");
|
|
2808
|
-
return
|
|
2808
|
+
return D(), $("div", {
|
|
2809
2809
|
class: "ecan-button",
|
|
2810
2810
|
style: U(e.style)
|
|
2811
2811
|
}, [
|
|
@@ -2855,12 +2855,12 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2855
2855
|
...nn
|
|
2856
2856
|
},
|
|
2857
2857
|
setup(e) {
|
|
2858
|
-
const o = re(e), t =
|
|
2858
|
+
const o = re(e), t = M([]), n = M([]), a = (d) => {
|
|
2859
2859
|
const u = e.value;
|
|
2860
|
-
let
|
|
2861
|
-
d.forEach((
|
|
2862
|
-
|
|
2863
|
-
}), typeof u == "string" && u !== "" ?
|
|
2860
|
+
let m = [];
|
|
2861
|
+
d.forEach((h) => {
|
|
2862
|
+
h.checked && m.push(h.value);
|
|
2863
|
+
}), typeof u == "string" && u !== "" ? m = m.concat(u.split(",")) : Array.isArray(u) && (m = m.concat(u)), t.value = d, n.value = m;
|
|
2864
2864
|
};
|
|
2865
2865
|
ne(() => [e.data, e.value], ([d]) => {
|
|
2866
2866
|
a(d);
|
|
@@ -2871,10 +2871,10 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2871
2871
|
const l = _e(e), { pageMode: i } = N(fe, {
|
|
2872
2872
|
pageMode: "normal"
|
|
2873
2873
|
}), r = async () => {
|
|
2874
|
-
var
|
|
2874
|
+
var m, h;
|
|
2875
2875
|
if (e.dataType !== "request" || v(i) === "design")
|
|
2876
2876
|
return;
|
|
2877
|
-
const d = await l(), u = ((
|
|
2877
|
+
const d = await l(), u = ((h = (m = d == null ? void 0 : d.data) == null ? void 0 : m.data) == null ? void 0 : h.rows) || [];
|
|
2878
2878
|
a(u);
|
|
2879
2879
|
}, { getGlobalModel: s, setGlobalModel: f } = N(ye, {
|
|
2880
2880
|
// @ts-ignore
|
|
@@ -2896,7 +2896,7 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2896
2896
|
}), { setRequest: C } = N(Se, {
|
|
2897
2897
|
// @ts-ignore
|
|
2898
2898
|
// eslint-disable-next-line no-void
|
|
2899
|
-
setRequest: ({ id: d, sortNum: u, requestFn:
|
|
2899
|
+
setRequest: ({ id: d, sortNum: u, requestFn: m }) => {
|
|
2900
2900
|
}
|
|
2901
2901
|
});
|
|
2902
2902
|
return C({
|
|
@@ -2913,7 +2913,7 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2913
2913
|
});
|
|
2914
2914
|
function Hi(e, o, t, n, a, l) {
|
|
2915
2915
|
const i = H("a-checkbox-group");
|
|
2916
|
-
return
|
|
2916
|
+
return D(), $("div", {
|
|
2917
2917
|
class: "ecan-checkbox",
|
|
2918
2918
|
style: U(e.style)
|
|
2919
2919
|
}, [
|
|
@@ -2992,7 +2992,7 @@ const Zi = /* @__PURE__ */ K(Vi, [["render", Hi]]), Ji = ae(Zi), an = {
|
|
|
2992
2992
|
toolboxInfoText: "当前无说明信息"
|
|
2993
2993
|
}, ln = le(an), Yi = ["click", "refreshData", "resetRecord"], nt = async (e) => {
|
|
2994
2994
|
var s;
|
|
2995
|
-
const o = await
|
|
2995
|
+
const o = await Fe.post(e, {}, {
|
|
2996
2996
|
responseType: "blob"
|
|
2997
2997
|
}), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), l = new Blob([t]), i = document.createElement("a"), r = window.URL.createObjectURL(l);
|
|
2998
2998
|
i.href = r, i.download = decodeURI(a), i.style.display = "none", document.body.appendChild(i), i.click(), (s = i.parentNode) == null || s.removeChild(i), window.URL.revokeObjectURL(r);
|
|
@@ -3002,7 +3002,7 @@ qe([
|
|
|
3002
3002
|
na,
|
|
3003
3003
|
Ke,
|
|
3004
3004
|
Xe,
|
|
3005
|
-
|
|
3005
|
+
Ft,
|
|
3006
3006
|
et
|
|
3007
3007
|
]);
|
|
3008
3008
|
const Qi = Q({
|
|
@@ -3016,15 +3016,15 @@ const Qi = Q({
|
|
|
3016
3016
|
AModal: Ae
|
|
3017
3017
|
},
|
|
3018
3018
|
setup(e, { expose: o }) {
|
|
3019
|
-
const t = re(e), n =
|
|
3019
|
+
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3020
3020
|
a.value = !1;
|
|
3021
3021
|
}, i = q(() => {
|
|
3022
|
-
let { data:
|
|
3022
|
+
let { data: _ = [] } = v(n)[0] || {};
|
|
3023
3023
|
if (Array.isArray(e.colors)) {
|
|
3024
3024
|
const x = e.isUseLabelColors, c = e.colors;
|
|
3025
|
-
|
|
3025
|
+
_ = _.map((g, k) => ({
|
|
3026
3026
|
label: x ? { color: c[k] } : {},
|
|
3027
|
-
...
|
|
3027
|
+
...g
|
|
3028
3028
|
}));
|
|
3029
3029
|
}
|
|
3030
3030
|
return {
|
|
@@ -3081,20 +3081,20 @@ const Qi = Q({
|
|
|
3081
3081
|
show: e.tooltipShow,
|
|
3082
3082
|
trigger: e.tooltipTrigger,
|
|
3083
3083
|
formatter: (x) => {
|
|
3084
|
-
const { marker: c, seriesName:
|
|
3084
|
+
const { marker: c, seriesName: g, name: k, value: R, percent: E, data: T } = x || {};
|
|
3085
3085
|
return de(
|
|
3086
3086
|
e.tooltipFormatter,
|
|
3087
3087
|
{
|
|
3088
3088
|
textData: {
|
|
3089
3089
|
marker: c,
|
|
3090
3090
|
name: k,
|
|
3091
|
-
value:
|
|
3092
|
-
percent:
|
|
3093
|
-
a:
|
|
3091
|
+
value: R,
|
|
3092
|
+
percent: E,
|
|
3093
|
+
a: g,
|
|
3094
3094
|
b: k,
|
|
3095
|
-
c:
|
|
3096
|
-
d:
|
|
3097
|
-
...
|
|
3095
|
+
c: R,
|
|
3096
|
+
d: E,
|
|
3097
|
+
...T
|
|
3098
3098
|
}
|
|
3099
3099
|
},
|
|
3100
3100
|
{
|
|
@@ -3120,7 +3120,7 @@ const Qi = Q({
|
|
|
3120
3120
|
color: e.colors,
|
|
3121
3121
|
series: [
|
|
3122
3122
|
{
|
|
3123
|
-
data:
|
|
3123
|
+
data: _,
|
|
3124
3124
|
type: "pie",
|
|
3125
3125
|
radius: [e.innerRadius, e.outerRadius],
|
|
3126
3126
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3158,69 +3158,69 @@ const Qi = Q({
|
|
|
3158
3158
|
}), { getGlobalModel: r, setGlobalModel: s } = N(ye, {
|
|
3159
3159
|
// @ts-ignore
|
|
3160
3160
|
// eslint-disable-next-line no-void
|
|
3161
|
-
getGlobalModel: (
|
|
3161
|
+
getGlobalModel: (_) => {
|
|
3162
3162
|
},
|
|
3163
3163
|
// @ts-ignore
|
|
3164
3164
|
// eslint-disable-next-line no-void
|
|
3165
|
-
setGlobalModel: (
|
|
3165
|
+
setGlobalModel: (_, x) => {
|
|
3166
3166
|
}
|
|
3167
3167
|
}), { pageMode: f } = N(fe, {
|
|
3168
3168
|
pageMode: "normal"
|
|
3169
|
-
}),
|
|
3170
|
-
const { dataset: c } = Qe(
|
|
3169
|
+
}), y = (_ = [], x) => {
|
|
3170
|
+
const { dataset: c } = Qe(_, x);
|
|
3171
3171
|
n.value = c;
|
|
3172
|
-
}, S = (
|
|
3173
|
-
const c = Qe(
|
|
3172
|
+
}, S = (_ = [], x) => {
|
|
3173
|
+
const c = Qe(_, x);
|
|
3174
3174
|
n.value = c.dataset;
|
|
3175
3175
|
};
|
|
3176
|
-
ne(() => e.data, (
|
|
3177
|
-
(e.dataType === "static" || v(f) === "design") &&
|
|
3176
|
+
ne(() => e.data, (_) => {
|
|
3177
|
+
(e.dataType === "static" || v(f) === "design") && y(_);
|
|
3178
3178
|
}, {
|
|
3179
3179
|
immediate: !0,
|
|
3180
3180
|
deep: !0
|
|
3181
3181
|
});
|
|
3182
|
-
const C =
|
|
3183
|
-
var
|
|
3182
|
+
const C = M(!1), d = _e(e), u = async () => {
|
|
3183
|
+
var _, x;
|
|
3184
3184
|
if (!(e.dataType !== "request" || v(f) === "design"))
|
|
3185
3185
|
try {
|
|
3186
3186
|
C.value = !0;
|
|
3187
3187
|
const c = await d();
|
|
3188
|
-
|
|
3188
|
+
y((x = (_ = c == null ? void 0 : c.data) == null ? void 0 : _.data) == null ? void 0 : x.rows, e.valueTypeDataFieldNames);
|
|
3189
3189
|
} catch (c) {
|
|
3190
3190
|
console.error(c);
|
|
3191
3191
|
} finally {
|
|
3192
3192
|
C.value = !1;
|
|
3193
3193
|
}
|
|
3194
|
-
},
|
|
3194
|
+
}, h = me(e)("click", (_) => {
|
|
3195
3195
|
const x = r(e.id);
|
|
3196
|
-
s(e.id, { ...x, RECORD:
|
|
3197
|
-
}),
|
|
3198
|
-
var
|
|
3196
|
+
s(e.id, { ...x, RECORD: _ == null ? void 0 : _.data });
|
|
3197
|
+
}), b = ot(e), w = async () => {
|
|
3198
|
+
var _;
|
|
3199
3199
|
try {
|
|
3200
3200
|
C.value = !0;
|
|
3201
|
-
const x = await
|
|
3201
|
+
const x = await b(), { data: c } = x.data || {};
|
|
3202
3202
|
if (c) {
|
|
3203
|
-
const { columns:
|
|
3204
|
-
let
|
|
3205
|
-
if (
|
|
3206
|
-
const
|
|
3207
|
-
|
|
3208
|
-
name: j[
|
|
3209
|
-
value: j[
|
|
3203
|
+
const { columns: g = [], rows: k = [] } = ((_ = x == null ? void 0 : x.data) == null ? void 0 : _.data) ?? {};
|
|
3204
|
+
let R = [];
|
|
3205
|
+
if (g.length > 0) {
|
|
3206
|
+
const E = g[0], T = g[1];
|
|
3207
|
+
R = k.map((j) => ({
|
|
3208
|
+
name: j[E],
|
|
3209
|
+
value: j[T]
|
|
3210
3210
|
}));
|
|
3211
3211
|
}
|
|
3212
|
-
S(
|
|
3212
|
+
S(R);
|
|
3213
3213
|
}
|
|
3214
3214
|
} catch (x) {
|
|
3215
3215
|
console.error(x);
|
|
3216
3216
|
} finally {
|
|
3217
3217
|
C.value = !1;
|
|
3218
3218
|
}
|
|
3219
|
-
},
|
|
3219
|
+
}, A = () => {
|
|
3220
3220
|
if (v(f) !== "design")
|
|
3221
3221
|
switch (e.dataType) {
|
|
3222
3222
|
case "indicator":
|
|
3223
|
-
|
|
3223
|
+
w();
|
|
3224
3224
|
break;
|
|
3225
3225
|
case "request":
|
|
3226
3226
|
u();
|
|
@@ -3229,26 +3229,26 @@ const Qi = Q({
|
|
|
3229
3229
|
};
|
|
3230
3230
|
he(e, {
|
|
3231
3231
|
resetRecord: () => {
|
|
3232
|
-
const
|
|
3233
|
-
s(
|
|
3232
|
+
const _ = e.id, x = r(_);
|
|
3233
|
+
s(_, { ...x, RECORD: "" });
|
|
3234
3234
|
},
|
|
3235
|
-
refreshData:
|
|
3236
|
-
click:
|
|
3235
|
+
refreshData: A,
|
|
3236
|
+
click: h
|
|
3237
3237
|
}), o({
|
|
3238
|
-
refreshData:
|
|
3238
|
+
refreshData: A
|
|
3239
3239
|
});
|
|
3240
3240
|
const { setRequest: p } = N(Se, {
|
|
3241
|
-
setRequest: (
|
|
3241
|
+
setRequest: (_) => {
|
|
3242
3242
|
}
|
|
3243
3243
|
});
|
|
3244
3244
|
return typeof p == "function" && p({
|
|
3245
3245
|
id: e.id,
|
|
3246
|
-
requestFn:
|
|
3246
|
+
requestFn: A,
|
|
3247
3247
|
sortNum: e.requestSort
|
|
3248
3248
|
}), {
|
|
3249
3249
|
option: i,
|
|
3250
3250
|
style: t,
|
|
3251
|
-
click:
|
|
3251
|
+
click: h,
|
|
3252
3252
|
loading: C,
|
|
3253
3253
|
visible: a,
|
|
3254
3254
|
hideModal: l
|
|
@@ -3257,7 +3257,7 @@ const Qi = Q({
|
|
|
3257
3257
|
});
|
|
3258
3258
|
function Ki(e, o, t, n, a, l) {
|
|
3259
3259
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
3260
|
-
return
|
|
3260
|
+
return D(), $("div", {
|
|
3261
3261
|
style: U(e.style)
|
|
3262
3262
|
}, [
|
|
3263
3263
|
G(r, { spinning: e.loading }, {
|
|
@@ -3382,7 +3382,7 @@ const or = Q({
|
|
|
3382
3382
|
AModal: Ae
|
|
3383
3383
|
},
|
|
3384
3384
|
setup(e, { expose: o }) {
|
|
3385
|
-
const t = re(e), n =
|
|
3385
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
|
|
3386
3386
|
l.value = !1;
|
|
3387
3387
|
}, r = q(() => {
|
|
3388
3388
|
const x = e.xAxisLabelFormatter, c = e.yAxisLabelFormatter;
|
|
@@ -3439,21 +3439,21 @@ const or = Q({
|
|
|
3439
3439
|
tooltip: {
|
|
3440
3440
|
trigger: "axis",
|
|
3441
3441
|
show: e.tooltipShow,
|
|
3442
|
-
formatter: (
|
|
3443
|
-
const k =
|
|
3444
|
-
let
|
|
3445
|
-
|
|
3446
|
-
for (let
|
|
3447
|
-
const { marker: j, seriesName: J, name:
|
|
3448
|
-
|
|
3449
|
-
|
|
3442
|
+
formatter: (g) => {
|
|
3443
|
+
const k = g.length;
|
|
3444
|
+
let R = "", E = e.tooltipFormatter;
|
|
3445
|
+
E === "" && (E = "{marker} {a} {c}");
|
|
3446
|
+
for (let T = 0; T < k; T++) {
|
|
3447
|
+
const { marker: j, seriesName: J, name: F, value: B, data: z } = g[T] || {};
|
|
3448
|
+
T === 0 && (R += `${F}<br/>`), R += de(
|
|
3449
|
+
E,
|
|
3450
3450
|
{
|
|
3451
3451
|
textData: {
|
|
3452
3452
|
marker: j,
|
|
3453
|
-
name:
|
|
3453
|
+
name: F,
|
|
3454
3454
|
value: B,
|
|
3455
3455
|
a: J,
|
|
3456
|
-
b:
|
|
3456
|
+
b: F,
|
|
3457
3457
|
c: B,
|
|
3458
3458
|
...z
|
|
3459
3459
|
}
|
|
@@ -3462,9 +3462,9 @@ const or = Q({
|
|
|
3462
3462
|
useNewline: !0,
|
|
3463
3463
|
useSpace: !0
|
|
3464
3464
|
}
|
|
3465
|
-
),
|
|
3465
|
+
), R += "<br/>";
|
|
3466
3466
|
}
|
|
3467
|
-
return
|
|
3467
|
+
return R;
|
|
3468
3468
|
}
|
|
3469
3469
|
},
|
|
3470
3470
|
xAxis: {
|
|
@@ -3483,8 +3483,8 @@ const or = Q({
|
|
|
3483
3483
|
rotate: e.xAxisLabelRotate,
|
|
3484
3484
|
width: e.xAxisLabelWidth,
|
|
3485
3485
|
overflow: e.xAxisLabelOverflow,
|
|
3486
|
-
formatter(
|
|
3487
|
-
return Ne(x,
|
|
3486
|
+
formatter(g) {
|
|
3487
|
+
return Ne(x, g);
|
|
3488
3488
|
}
|
|
3489
3489
|
},
|
|
3490
3490
|
axisLine: {
|
|
@@ -3507,8 +3507,8 @@ const or = Q({
|
|
|
3507
3507
|
},
|
|
3508
3508
|
axisLabel: {
|
|
3509
3509
|
color: e.yAxisLabelColor,
|
|
3510
|
-
formatter(
|
|
3511
|
-
return Ne(c,
|
|
3510
|
+
formatter(g) {
|
|
3511
|
+
return Ne(c, g);
|
|
3512
3512
|
}
|
|
3513
3513
|
},
|
|
3514
3514
|
axisLine: {
|
|
@@ -3535,23 +3535,23 @@ const or = Q({
|
|
|
3535
3535
|
// eslint-disable-next-line no-void
|
|
3536
3536
|
setGlobalModel: (x, c) => {
|
|
3537
3537
|
}
|
|
3538
|
-
}), { pageMode:
|
|
3538
|
+
}), { pageMode: y } = N(fe, {
|
|
3539
3539
|
pageMode: "normal"
|
|
3540
3540
|
}), S = (x = [], c = !1) => {
|
|
3541
|
-
let
|
|
3541
|
+
let g;
|
|
3542
3542
|
if (e.dataFieldConfigType === "key") {
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3543
|
+
const T = c ? e.keyTypeDataFieldNames : null;
|
|
3544
|
+
g = Ge(x, T);
|
|
3545
3545
|
} else if (e.dataFieldConfigType === "value") {
|
|
3546
|
-
const
|
|
3547
|
-
|
|
3546
|
+
const T = c ? e.valueTypeDataFieldNames : null;
|
|
3547
|
+
g = Qe(x, T);
|
|
3548
3548
|
}
|
|
3549
|
-
a.value =
|
|
3550
|
-
const k =
|
|
3551
|
-
for (let
|
|
3552
|
-
|
|
3549
|
+
a.value = g.dimensions;
|
|
3550
|
+
const k = g.dataset, R = [], E = k.length;
|
|
3551
|
+
for (let T = 0; T < E; T++)
|
|
3552
|
+
R.push({
|
|
3553
3553
|
type: "line",
|
|
3554
|
-
...k[
|
|
3554
|
+
...k[T],
|
|
3555
3555
|
symbolSize: e.symbolSize,
|
|
3556
3556
|
smooth: e.smooth,
|
|
3557
3557
|
areaStyle: {
|
|
@@ -3574,95 +3574,95 @@ const or = Q({
|
|
|
3574
3574
|
width: e.lineStyleWidth
|
|
3575
3575
|
}
|
|
3576
3576
|
});
|
|
3577
|
-
n.value =
|
|
3578
|
-
}, C = (x = [], c,
|
|
3579
|
-
const
|
|
3580
|
-
a.value =
|
|
3581
|
-
const
|
|
3577
|
+
n.value = R;
|
|
3578
|
+
}, C = (x = [], c, g = !1) => {
|
|
3579
|
+
const R = Ge(x, g ? c : null);
|
|
3580
|
+
a.value = R.dimensions;
|
|
3581
|
+
const E = R.dataset, T = [], j = E.length;
|
|
3582
3582
|
for (let J = 0; J < j; J++)
|
|
3583
|
-
|
|
3583
|
+
T.push({
|
|
3584
3584
|
type: "line",
|
|
3585
|
-
...
|
|
3585
|
+
...E[J],
|
|
3586
3586
|
symbolSize: e.symbolSize,
|
|
3587
3587
|
smooth: e.smooth,
|
|
3588
3588
|
lineStyle: {
|
|
3589
3589
|
width: e.lineStyleWidth
|
|
3590
3590
|
}
|
|
3591
3591
|
});
|
|
3592
|
-
n.value =
|
|
3592
|
+
n.value = T;
|
|
3593
3593
|
};
|
|
3594
3594
|
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([x]) => {
|
|
3595
|
-
(e.dataType === "static" || v(
|
|
3595
|
+
(e.dataType === "static" || v(y) === "design") && S(x);
|
|
3596
3596
|
}, {
|
|
3597
3597
|
immediate: !0,
|
|
3598
3598
|
deep: !0
|
|
3599
3599
|
});
|
|
3600
|
-
const d =
|
|
3600
|
+
const d = M(!1), u = _e(e), m = async () => {
|
|
3601
3601
|
var x, c;
|
|
3602
|
-
if (!(e.dataType !== "request" || v(
|
|
3602
|
+
if (!(e.dataType !== "request" || v(y) === "design"))
|
|
3603
3603
|
try {
|
|
3604
3604
|
d.value = !0;
|
|
3605
|
-
const
|
|
3606
|
-
S((c = (x =
|
|
3607
|
-
} catch (
|
|
3608
|
-
console.error(
|
|
3605
|
+
const g = await u();
|
|
3606
|
+
S((c = (x = g == null ? void 0 : g.data) == null ? void 0 : x.data) == null ? void 0 : c.rows, !0);
|
|
3607
|
+
} catch (g) {
|
|
3608
|
+
console.error(g);
|
|
3609
3609
|
} finally {
|
|
3610
3610
|
d.value = !1;
|
|
3611
3611
|
}
|
|
3612
|
-
},
|
|
3612
|
+
}, b = me(e)("click", (x) => {
|
|
3613
3613
|
const c = s(e.id);
|
|
3614
3614
|
f(e.id, { ...c, RECORD: x == null ? void 0 : x.data });
|
|
3615
|
-
}),
|
|
3615
|
+
}), w = ot(e), A = async () => {
|
|
3616
3616
|
var x;
|
|
3617
3617
|
try {
|
|
3618
3618
|
d.value = !0;
|
|
3619
|
-
const c = await
|
|
3620
|
-
let
|
|
3621
|
-
|
|
3622
|
-
name:
|
|
3623
|
-
types:
|
|
3624
|
-
label:
|
|
3625
|
-
value:
|
|
3619
|
+
const c = await w(), { columns: g = [], rows: k = [] } = ((x = c == null ? void 0 : c.data) == null ? void 0 : x.data) ?? {};
|
|
3620
|
+
let R;
|
|
3621
|
+
g.length > 0 && (R = {
|
|
3622
|
+
name: g[0],
|
|
3623
|
+
types: g.slice(1).map((E) => ({
|
|
3624
|
+
label: E,
|
|
3625
|
+
value: E
|
|
3626
3626
|
}))
|
|
3627
|
-
}), C(k,
|
|
3627
|
+
}), C(k, R, !0);
|
|
3628
3628
|
} catch (c) {
|
|
3629
3629
|
console.error(c);
|
|
3630
3630
|
} finally {
|
|
3631
3631
|
d.value = !1;
|
|
3632
3632
|
}
|
|
3633
|
-
},
|
|
3634
|
-
if (v(
|
|
3633
|
+
}, L = () => {
|
|
3634
|
+
if (v(y) !== "design")
|
|
3635
3635
|
switch (e.dataType) {
|
|
3636
3636
|
case "indicator":
|
|
3637
|
-
|
|
3637
|
+
A();
|
|
3638
3638
|
break;
|
|
3639
3639
|
case "request":
|
|
3640
|
-
|
|
3640
|
+
m();
|
|
3641
3641
|
break;
|
|
3642
3642
|
}
|
|
3643
3643
|
};
|
|
3644
3644
|
he(e, {
|
|
3645
|
-
refreshData:
|
|
3645
|
+
refreshData: L,
|
|
3646
3646
|
resetRecord: () => {
|
|
3647
3647
|
const x = e.id, c = s(x);
|
|
3648
3648
|
f(x, { ...c, RECORD: "" });
|
|
3649
3649
|
},
|
|
3650
|
-
click:
|
|
3650
|
+
click: b
|
|
3651
3651
|
});
|
|
3652
|
-
const { setRequest:
|
|
3652
|
+
const { setRequest: _ } = N(Se, {
|
|
3653
3653
|
setRequest: (x) => {
|
|
3654
3654
|
}
|
|
3655
3655
|
});
|
|
3656
|
-
return typeof
|
|
3656
|
+
return typeof _ == "function" && _({
|
|
3657
3657
|
id: e.id,
|
|
3658
|
-
requestFn:
|
|
3658
|
+
requestFn: L,
|
|
3659
3659
|
sortNum: e.requestSort
|
|
3660
3660
|
}), o({
|
|
3661
|
-
refreshData:
|
|
3661
|
+
refreshData: L
|
|
3662
3662
|
}), {
|
|
3663
3663
|
option: r,
|
|
3664
3664
|
style: t,
|
|
3665
|
-
click:
|
|
3665
|
+
click: b,
|
|
3666
3666
|
loading: d,
|
|
3667
3667
|
visible: l,
|
|
3668
3668
|
hideModal: i
|
|
@@ -3671,7 +3671,7 @@ const or = Q({
|
|
|
3671
3671
|
});
|
|
3672
3672
|
function nr(e, o, t, n, a, l) {
|
|
3673
3673
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
3674
|
-
return
|
|
3674
|
+
return D(), $("div", {
|
|
3675
3675
|
style: U(e.style)
|
|
3676
3676
|
}, [
|
|
3677
3677
|
G(r, { spinning: e.loading }, {
|
|
@@ -3817,26 +3817,26 @@ const rr = Q({
|
|
|
3817
3817
|
AModal: Ae
|
|
3818
3818
|
},
|
|
3819
3819
|
setup(e, { expose: o }) {
|
|
3820
|
-
const t = re(e), n =
|
|
3820
|
+
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3821
3821
|
a.value = !1;
|
|
3822
3822
|
}, i = q(() => {
|
|
3823
|
-
const c = v(n),
|
|
3824
|
-
for (let
|
|
3825
|
-
const
|
|
3826
|
-
...c[
|
|
3823
|
+
const c = v(n), g = c.length, k = [];
|
|
3824
|
+
for (let R = 0; R < g; R++) {
|
|
3825
|
+
const E = {
|
|
3826
|
+
...c[R],
|
|
3827
3827
|
type: "bar",
|
|
3828
3828
|
barWidth: e.barWidth
|
|
3829
3829
|
};
|
|
3830
|
-
e.isStack && (
|
|
3830
|
+
e.isStack && (E.stack = "stack"), E.label = {
|
|
3831
3831
|
show: e.labelShow,
|
|
3832
3832
|
fontSize: e.labelFontSize,
|
|
3833
3833
|
position: e.labelPosition,
|
|
3834
3834
|
color: e.labelColor
|
|
3835
|
-
}, k.push(
|
|
3835
|
+
}, k.push(E);
|
|
3836
3836
|
}
|
|
3837
3837
|
return k;
|
|
3838
|
-
}), r =
|
|
3839
|
-
const c = e.yAxisLabelFormatter,
|
|
3838
|
+
}), r = M([]), s = M(!1), f = q(() => {
|
|
3839
|
+
const c = e.yAxisLabelFormatter, g = e.xAxisLabelFormatter;
|
|
3840
3840
|
return {
|
|
3841
3841
|
toolbox: {
|
|
3842
3842
|
show: e.toolboxShow,
|
|
@@ -3891,19 +3891,19 @@ const rr = Q({
|
|
|
3891
3891
|
trigger: "axis",
|
|
3892
3892
|
show: e.tooltipShow,
|
|
3893
3893
|
formatter: (k) => {
|
|
3894
|
-
const
|
|
3895
|
-
let
|
|
3896
|
-
|
|
3897
|
-
for (let j = 0; j <
|
|
3898
|
-
const { marker: J, seriesName:
|
|
3899
|
-
j === 0 && (
|
|
3900
|
-
|
|
3894
|
+
const R = k.length;
|
|
3895
|
+
let E = "", T = e.tooltipFormatter;
|
|
3896
|
+
T === "" && (T = "{marker} {a} {c}");
|
|
3897
|
+
for (let j = 0; j < R; j++) {
|
|
3898
|
+
const { marker: J, seriesName: F, name: B, value: z, data: W } = k[j] || {};
|
|
3899
|
+
j === 0 && (E += `${B}<br/>`), E += de(
|
|
3900
|
+
T,
|
|
3901
3901
|
{
|
|
3902
3902
|
textData: {
|
|
3903
3903
|
marker: J,
|
|
3904
3904
|
name: B,
|
|
3905
3905
|
value: z,
|
|
3906
|
-
a:
|
|
3906
|
+
a: F,
|
|
3907
3907
|
b: B,
|
|
3908
3908
|
c: z,
|
|
3909
3909
|
...W
|
|
@@ -3913,9 +3913,9 @@ const rr = Q({
|
|
|
3913
3913
|
useNewline: !0,
|
|
3914
3914
|
useSpace: !0
|
|
3915
3915
|
}
|
|
3916
|
-
),
|
|
3916
|
+
), E += "<br/>";
|
|
3917
3917
|
}
|
|
3918
|
-
return
|
|
3918
|
+
return E;
|
|
3919
3919
|
},
|
|
3920
3920
|
// valueFormatter: (value) => {
|
|
3921
3921
|
// return useVariablesInText(props.tooltipValueFormatter as string, { value })
|
|
@@ -3951,7 +3951,7 @@ const rr = Q({
|
|
|
3951
3951
|
width: e.xAxisLabelWidth,
|
|
3952
3952
|
overflow: e.xAxisLabelOverflow,
|
|
3953
3953
|
formatter(k) {
|
|
3954
|
-
return Ne(
|
|
3954
|
+
return Ne(g, k);
|
|
3955
3955
|
}
|
|
3956
3956
|
},
|
|
3957
3957
|
axisLine: {
|
|
@@ -3991,62 +3991,62 @@ const rr = Q({
|
|
|
3991
3991
|
},
|
|
3992
3992
|
series: v(i)
|
|
3993
3993
|
};
|
|
3994
|
-
}), { pageMode:
|
|
3994
|
+
}), { pageMode: y } = N(fe, {
|
|
3995
3995
|
pageMode: "normal"
|
|
3996
|
-
}), S = (c = [],
|
|
3996
|
+
}), S = (c = [], g = !1) => {
|
|
3997
3997
|
let k = {};
|
|
3998
3998
|
if (e.dataFieldConfigType === "key") {
|
|
3999
|
-
const
|
|
4000
|
-
k = Ge(c,
|
|
3999
|
+
const R = g ? e.keyTypeDataFieldNames : null;
|
|
4000
|
+
k = Ge(c, R);
|
|
4001
4001
|
} else if (e.dataFieldConfigType === "value") {
|
|
4002
|
-
const
|
|
4003
|
-
k = Qe(c,
|
|
4002
|
+
const R = g ? e.valueTypeDataFieldNames : null;
|
|
4003
|
+
k = Qe(c, R);
|
|
4004
4004
|
}
|
|
4005
4005
|
n.value = k.dataset, r.value = k.dimensions;
|
|
4006
|
-
}, C = (c = [],
|
|
4007
|
-
const
|
|
4008
|
-
n.value =
|
|
4006
|
+
}, C = (c = [], g, k = !1) => {
|
|
4007
|
+
const E = Ge(c, k ? g : null);
|
|
4008
|
+
n.value = E.dataset, r.value = E.dimensions;
|
|
4009
4009
|
};
|
|
4010
4010
|
ne(() => e.data, (c) => {
|
|
4011
|
-
(e.dataType === "static" || v(
|
|
4011
|
+
(e.dataType === "static" || v(y) === "design") && S(c);
|
|
4012
4012
|
}, {
|
|
4013
4013
|
immediate: !0,
|
|
4014
4014
|
deep: !0
|
|
4015
4015
|
});
|
|
4016
4016
|
const d = _e(e), u = async () => {
|
|
4017
|
-
var c,
|
|
4017
|
+
var c, g;
|
|
4018
4018
|
try {
|
|
4019
4019
|
s.value = !0;
|
|
4020
4020
|
const k = await d();
|
|
4021
|
-
S((
|
|
4021
|
+
S((g = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : g.rows, !0);
|
|
4022
4022
|
} catch (k) {
|
|
4023
4023
|
console.error(k);
|
|
4024
4024
|
} finally {
|
|
4025
4025
|
s.value = !1;
|
|
4026
4026
|
}
|
|
4027
|
-
},
|
|
4027
|
+
}, m = ot(e), h = async () => {
|
|
4028
4028
|
var c;
|
|
4029
4029
|
try {
|
|
4030
4030
|
s.value = !0;
|
|
4031
|
-
const
|
|
4032
|
-
let
|
|
4033
|
-
k.length > 0 && (
|
|
4031
|
+
const g = await m(), { columns: k = [], rows: R = [] } = ((c = g == null ? void 0 : g.data) == null ? void 0 : c.data) ?? {};
|
|
4032
|
+
let E;
|
|
4033
|
+
k.length > 0 && (E = {
|
|
4034
4034
|
name: k[0],
|
|
4035
|
-
types: k.slice(1).map((
|
|
4036
|
-
label:
|
|
4037
|
-
value:
|
|
4035
|
+
types: k.slice(1).map((T) => ({
|
|
4036
|
+
label: T,
|
|
4037
|
+
value: T
|
|
4038
4038
|
}))
|
|
4039
|
-
}), C(
|
|
4040
|
-
} catch (
|
|
4041
|
-
console.error(
|
|
4039
|
+
}), C(R, E, !0);
|
|
4040
|
+
} catch (g) {
|
|
4041
|
+
console.error(g);
|
|
4042
4042
|
} finally {
|
|
4043
4043
|
s.value = !1;
|
|
4044
4044
|
}
|
|
4045
|
-
},
|
|
4046
|
-
if (v(
|
|
4045
|
+
}, b = () => {
|
|
4046
|
+
if (v(y) !== "design")
|
|
4047
4047
|
switch (e.dataType) {
|
|
4048
4048
|
case "indicator":
|
|
4049
|
-
|
|
4049
|
+
h();
|
|
4050
4050
|
break;
|
|
4051
4051
|
case "request":
|
|
4052
4052
|
u();
|
|
@@ -4054,39 +4054,39 @@ const rr = Q({
|
|
|
4054
4054
|
}
|
|
4055
4055
|
};
|
|
4056
4056
|
o({
|
|
4057
|
-
refreshData:
|
|
4057
|
+
refreshData: b
|
|
4058
4058
|
});
|
|
4059
|
-
const
|
|
4059
|
+
const w = me(e), { getGlobalModel: A, setGlobalModel: L } = N(ye, {
|
|
4060
4060
|
// @ts-ignore
|
|
4061
4061
|
// eslint-disable-next-line no-void
|
|
4062
4062
|
getGlobalModel: (c) => {
|
|
4063
4063
|
},
|
|
4064
4064
|
// @ts-ignore
|
|
4065
4065
|
// eslint-disable-next-line no-void
|
|
4066
|
-
setGlobalModel: (c,
|
|
4066
|
+
setGlobalModel: (c, g) => {
|
|
4067
4067
|
}
|
|
4068
|
-
}), p =
|
|
4069
|
-
const
|
|
4070
|
-
|
|
4071
|
-
}), { setRequest:
|
|
4068
|
+
}), p = w("click", (c) => {
|
|
4069
|
+
const g = A(e.id);
|
|
4070
|
+
L(e.id, { ...g, RECORD: c.data });
|
|
4071
|
+
}), { setRequest: _ } = N(Se, {
|
|
4072
4072
|
setRequest: (c) => {
|
|
4073
4073
|
}
|
|
4074
4074
|
});
|
|
4075
|
-
return typeof
|
|
4075
|
+
return typeof _ == "function" && _({
|
|
4076
4076
|
id: e.id,
|
|
4077
|
-
requestFn:
|
|
4077
|
+
requestFn: b,
|
|
4078
4078
|
sortNum: e.requestSort
|
|
4079
4079
|
}), he(e, {
|
|
4080
|
-
refreshData:
|
|
4080
|
+
refreshData: b,
|
|
4081
4081
|
click: p,
|
|
4082
4082
|
resetRecord: () => {
|
|
4083
|
-
const c = e.id,
|
|
4084
|
-
|
|
4083
|
+
const c = e.id, g = A(c);
|
|
4084
|
+
L(c, { ...g, RECORD: "" });
|
|
4085
4085
|
}
|
|
4086
4086
|
}), {
|
|
4087
4087
|
option: f,
|
|
4088
4088
|
style: t,
|
|
4089
|
-
refreshData:
|
|
4089
|
+
refreshData: b,
|
|
4090
4090
|
click: p,
|
|
4091
4091
|
loading: s,
|
|
4092
4092
|
visible: a,
|
|
@@ -4096,7 +4096,7 @@ const rr = Q({
|
|
|
4096
4096
|
});
|
|
4097
4097
|
function sr(e, o, t, n, a, l) {
|
|
4098
4098
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4099
|
-
return
|
|
4099
|
+
return D(), $("div", {
|
|
4100
4100
|
class: "ecan-bar",
|
|
4101
4101
|
style: U(e.style)
|
|
4102
4102
|
}, [
|
|
@@ -4195,13 +4195,13 @@ const cr = /* @__PURE__ */ K(rr, [["render", sr]]), dr = ae(cr), un = {
|
|
|
4195
4195
|
toolboxIconStyleBorderColor: "#666",
|
|
4196
4196
|
toolboxDownloadUrl: "",
|
|
4197
4197
|
toolboxInfoText: "当前无说明信息"
|
|
4198
|
-
}, fn = le(un), ur = ["click", "refreshData"];
|
|
4198
|
+
}, fn = le(un), ur = ["click", "refreshData", "resetRecord"];
|
|
4199
4199
|
qe([
|
|
4200
4200
|
je,
|
|
4201
4201
|
xo,
|
|
4202
4202
|
Xe,
|
|
4203
4203
|
Ke,
|
|
4204
|
-
|
|
4204
|
+
Ft,
|
|
4205
4205
|
et
|
|
4206
4206
|
]);
|
|
4207
4207
|
const fr = Q({
|
|
@@ -4215,10 +4215,10 @@ const fr = Q({
|
|
|
4215
4215
|
AModal: Ae
|
|
4216
4216
|
},
|
|
4217
4217
|
setup(e) {
|
|
4218
|
-
const o = re(e), t =
|
|
4218
|
+
const o = re(e), t = M([]), n = M(!1), a = () => {
|
|
4219
4219
|
n.value = !1;
|
|
4220
4220
|
}, l = q(() => {
|
|
4221
|
-
const
|
|
4221
|
+
const w = e.xAxisLabelFormatter, A = e.yAxisLabelFormatter;
|
|
4222
4222
|
return {
|
|
4223
4223
|
toolbox: {
|
|
4224
4224
|
show: e.toolboxShow,
|
|
@@ -4283,8 +4283,8 @@ const fr = Q({
|
|
|
4283
4283
|
rotate: e.xAxisLabelRotate,
|
|
4284
4284
|
width: e.xAxisLabelWidth,
|
|
4285
4285
|
overflow: e.xAxisLabelOverflow,
|
|
4286
|
-
formatter(
|
|
4287
|
-
return Ne(
|
|
4286
|
+
formatter(L) {
|
|
4287
|
+
return Ne(w, L);
|
|
4288
4288
|
}
|
|
4289
4289
|
},
|
|
4290
4290
|
axisLine: {
|
|
@@ -4305,8 +4305,8 @@ const fr = Q({
|
|
|
4305
4305
|
},
|
|
4306
4306
|
axisLabel: {
|
|
4307
4307
|
color: e.yAxisLabelColor,
|
|
4308
|
-
formatter(
|
|
4309
|
-
return Ne(A,
|
|
4308
|
+
formatter(L) {
|
|
4309
|
+
return Ne(A, L);
|
|
4310
4310
|
}
|
|
4311
4311
|
},
|
|
4312
4312
|
axisLine: {
|
|
@@ -4319,17 +4319,17 @@ const fr = Q({
|
|
|
4319
4319
|
tooltip: {
|
|
4320
4320
|
show: e.tooltipShow,
|
|
4321
4321
|
trigger: e.tooltipTrigger,
|
|
4322
|
-
formatter: function(
|
|
4323
|
-
var
|
|
4324
|
-
const { marker:
|
|
4322
|
+
formatter: function(L) {
|
|
4323
|
+
var k;
|
|
4324
|
+
const { marker: p, seriesName: _ } = L, x = ((k = L == null ? void 0 : L.data) == null ? void 0 : k.record) ?? {}, { name: c, value: g } = x;
|
|
4325
4325
|
return de(e.tooltipFormatter, {
|
|
4326
4326
|
textData: {
|
|
4327
|
-
marker:
|
|
4328
|
-
seriesName:
|
|
4329
|
-
a:
|
|
4330
|
-
b:
|
|
4331
|
-
c,
|
|
4332
|
-
...
|
|
4327
|
+
marker: p,
|
|
4328
|
+
seriesName: _,
|
|
4329
|
+
a: _,
|
|
4330
|
+
b: c,
|
|
4331
|
+
c: g,
|
|
4332
|
+
...x
|
|
4333
4333
|
}
|
|
4334
4334
|
});
|
|
4335
4335
|
},
|
|
@@ -4355,52 +4355,56 @@ const fr = Q({
|
|
|
4355
4355
|
}), { getGlobalModel: i, setGlobalModel: r } = N(ye, {
|
|
4356
4356
|
// @ts-ignore
|
|
4357
4357
|
// eslint-disable-next-line no-void
|
|
4358
|
-
getGlobalModel: (
|
|
4358
|
+
getGlobalModel: (w) => {
|
|
4359
4359
|
},
|
|
4360
4360
|
// @ts-ignore
|
|
4361
4361
|
// eslint-disable-next-line no-void
|
|
4362
|
-
setGlobalModel: (
|
|
4362
|
+
setGlobalModel: (w, A) => {
|
|
4363
4363
|
}
|
|
4364
4364
|
}), { pageMode: s } = N(fe, {
|
|
4365
4365
|
pageMode: "normal"
|
|
4366
|
-
}), f = (
|
|
4367
|
-
const { name:
|
|
4368
|
-
t.value =
|
|
4366
|
+
}), f = (w = [], A) => {
|
|
4367
|
+
const { name: L = "name", value: p = "value" } = A || {};
|
|
4368
|
+
t.value = w.map((_) => ({ value: [_[L], _[p]], record: _ }));
|
|
4369
4369
|
};
|
|
4370
|
-
ne(() => e.data, (
|
|
4371
|
-
(e.dataType === "static" || v(s) === "design") && f(
|
|
4370
|
+
ne(() => e.data, (w) => {
|
|
4371
|
+
(e.dataType === "static" || v(s) === "design") && f(w);
|
|
4372
4372
|
}, {
|
|
4373
4373
|
immediate: !0,
|
|
4374
4374
|
deep: !0
|
|
4375
4375
|
});
|
|
4376
|
-
const
|
|
4377
|
-
var
|
|
4376
|
+
const y = M(!1), S = _e(e), C = async () => {
|
|
4377
|
+
var w, A;
|
|
4378
4378
|
if (!(e.dataType !== "request" || v(s) === "design")) {
|
|
4379
|
-
|
|
4379
|
+
y.value = !0;
|
|
4380
4380
|
try {
|
|
4381
|
-
const
|
|
4382
|
-
f((A = (
|
|
4383
|
-
} catch (
|
|
4384
|
-
console.error(
|
|
4381
|
+
const L = await S();
|
|
4382
|
+
f((A = (w = L == null ? void 0 : L.data) == null ? void 0 : w.data) == null ? void 0 : A.rows, e.dataFieldNames);
|
|
4383
|
+
} catch (L) {
|
|
4384
|
+
console.error(L);
|
|
4385
4385
|
} finally {
|
|
4386
|
-
|
|
4386
|
+
y.value = !1;
|
|
4387
4387
|
}
|
|
4388
4388
|
}
|
|
4389
|
-
}, u = me(e)("click", (
|
|
4390
|
-
const A = e.id,
|
|
4391
|
-
r(A, { ...
|
|
4389
|
+
}, u = me(e)("click", (w) => {
|
|
4390
|
+
const A = e.id, L = i(A);
|
|
4391
|
+
r(A, { ...L, RECORD: w == null ? void 0 : w.data });
|
|
4392
4392
|
});
|
|
4393
4393
|
he(e, {
|
|
4394
4394
|
refreshData: () => {
|
|
4395
4395
|
C();
|
|
4396
4396
|
},
|
|
4397
|
-
click: u
|
|
4397
|
+
click: u,
|
|
4398
|
+
resetRecord: () => {
|
|
4399
|
+
const w = e.id, A = i(w);
|
|
4400
|
+
r(w, { ...A, RECORD: "" });
|
|
4401
|
+
}
|
|
4398
4402
|
});
|
|
4399
|
-
const { setRequest:
|
|
4400
|
-
setRequest: (
|
|
4403
|
+
const { setRequest: b } = N(Se, {
|
|
4404
|
+
setRequest: (w) => {
|
|
4401
4405
|
}
|
|
4402
4406
|
});
|
|
4403
|
-
return typeof
|
|
4407
|
+
return typeof b == "function" && b({
|
|
4404
4408
|
id: e.id,
|
|
4405
4409
|
requestFn: C,
|
|
4406
4410
|
sortNum: e.requestSort
|
|
@@ -4408,7 +4412,7 @@ const fr = Q({
|
|
|
4408
4412
|
option: l,
|
|
4409
4413
|
style: o,
|
|
4410
4414
|
click: u,
|
|
4411
|
-
loading:
|
|
4415
|
+
loading: y,
|
|
4412
4416
|
visible: n,
|
|
4413
4417
|
hideModal: a
|
|
4414
4418
|
};
|
|
@@ -4416,7 +4420,7 @@ const fr = Q({
|
|
|
4416
4420
|
});
|
|
4417
4421
|
function mr(e, o, t, n, a, l) {
|
|
4418
4422
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4419
|
-
return
|
|
4423
|
+
return D(), $("div", {
|
|
4420
4424
|
style: U(e.style)
|
|
4421
4425
|
}, [
|
|
4422
4426
|
G(r, { spinning: e.loading }, {
|
|
@@ -4471,7 +4475,7 @@ const gr = /* @__PURE__ */ K(fr, [["render", mr]]), hr = ae(gr), mn = {
|
|
|
4471
4475
|
Echarts: Pe
|
|
4472
4476
|
},
|
|
4473
4477
|
setup(e) {
|
|
4474
|
-
const o = re(e), t =
|
|
4478
|
+
const o = re(e), t = M();
|
|
4475
4479
|
return ne(() => e.optionCode, (n) => {
|
|
4476
4480
|
try {
|
|
4477
4481
|
const a = eval;
|
|
@@ -4490,7 +4494,7 @@ const gr = /* @__PURE__ */ K(fr, [["render", mr]]), hr = ae(gr), mn = {
|
|
|
4490
4494
|
});
|
|
4491
4495
|
function br(e, o, t, n, a, l) {
|
|
4492
4496
|
const i = H("echarts");
|
|
4493
|
-
return
|
|
4497
|
+
return D(), $("div", {
|
|
4494
4498
|
style: U(e.style)
|
|
4495
4499
|
}, [
|
|
4496
4500
|
G(i, {
|
|
@@ -4632,7 +4636,7 @@ const Sr = Q({
|
|
|
4632
4636
|
AModal: Ae
|
|
4633
4637
|
},
|
|
4634
4638
|
setup(e, { expose: o }) {
|
|
4635
|
-
const t = re(e), n =
|
|
4639
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
|
|
4636
4640
|
l.value = !1;
|
|
4637
4641
|
}, r = q(() => ({
|
|
4638
4642
|
title: {
|
|
@@ -4697,18 +4701,18 @@ const Sr = Q({
|
|
|
4697
4701
|
trigger: "axis",
|
|
4698
4702
|
show: e.tooltipShow,
|
|
4699
4703
|
formatter: (c) => {
|
|
4700
|
-
const
|
|
4701
|
-
let k = "",
|
|
4702
|
-
|
|
4703
|
-
const
|
|
4704
|
-
for (let
|
|
4705
|
-
const j =
|
|
4706
|
-
|
|
4704
|
+
const g = c.length;
|
|
4705
|
+
let k = "", R = e.tooltipFormatter;
|
|
4706
|
+
R === "" && (R = "{marker} {a} {c}");
|
|
4707
|
+
const E = e.seriesTypes;
|
|
4708
|
+
for (let T = 0; T < g; T++) {
|
|
4709
|
+
const j = E[T], { tooltipFormatter: J } = j || {}, { marker: F, seriesName: B, name: z, value: W, data: X } = c[T] || {};
|
|
4710
|
+
T === 0 && (k += `${z}<br/>`), k += de(
|
|
4707
4711
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4708
|
-
J ||
|
|
4712
|
+
J || R,
|
|
4709
4713
|
{
|
|
4710
4714
|
textData: {
|
|
4711
|
-
marker:
|
|
4715
|
+
marker: F,
|
|
4712
4716
|
name: z,
|
|
4713
4717
|
value: W,
|
|
4714
4718
|
seriesName: B,
|
|
@@ -4760,23 +4764,23 @@ const Sr = Q({
|
|
|
4760
4764
|
series: v(n)
|
|
4761
4765
|
})), { pageMode: s } = N(fe, {
|
|
4762
4766
|
pageMode: "normal"
|
|
4763
|
-
}), f = (c = [],
|
|
4767
|
+
}), f = (c = [], g = !1) => {
|
|
4764
4768
|
let k;
|
|
4765
4769
|
if (e.dataFieldConfigType === "key") {
|
|
4766
|
-
const J =
|
|
4770
|
+
const J = g ? e.keyTypeDataFieldNames : null;
|
|
4767
4771
|
k = Ge(c, J);
|
|
4768
4772
|
} else if (e.dataFieldConfigType === "value") {
|
|
4769
|
-
const J =
|
|
4773
|
+
const J = g ? e.valueTypeDataFieldNames : null;
|
|
4770
4774
|
k = Qe(c, J);
|
|
4771
4775
|
}
|
|
4772
4776
|
a.value = k.dimensions;
|
|
4773
|
-
const
|
|
4774
|
-
for (let J = 0; J <
|
|
4775
|
-
const
|
|
4777
|
+
const R = k.dataset, E = [], T = R.length, j = e.seriesTypes;
|
|
4778
|
+
for (let J = 0; J < T; J++) {
|
|
4779
|
+
const F = j[J], { type: B, axisIndex: z } = F || {};
|
|
4776
4780
|
let W = {
|
|
4777
4781
|
type: B,
|
|
4778
4782
|
yAxisIndex: z,
|
|
4779
|
-
...
|
|
4783
|
+
...R[J]
|
|
4780
4784
|
};
|
|
4781
4785
|
B === "line" && (W = {
|
|
4782
4786
|
...W,
|
|
@@ -4791,19 +4795,19 @@ const Sr = Q({
|
|
|
4791
4795
|
}), B === "bar" && (W = {
|
|
4792
4796
|
...W,
|
|
4793
4797
|
barWidth: e.barWidth
|
|
4794
|
-
}),
|
|
4798
|
+
}), E.push(W);
|
|
4795
4799
|
}
|
|
4796
|
-
n.value =
|
|
4797
|
-
},
|
|
4798
|
-
const
|
|
4799
|
-
a.value =
|
|
4800
|
-
const
|
|
4800
|
+
n.value = E;
|
|
4801
|
+
}, y = (c = [], g, k = !1) => {
|
|
4802
|
+
const E = Ge(c, k ? g : null);
|
|
4803
|
+
a.value = E.dimensions;
|
|
4804
|
+
const T = E.dataset, j = [], J = T.length, F = e.seriesTypes;
|
|
4801
4805
|
for (let B = 0; B < J; B++) {
|
|
4802
|
-
const z =
|
|
4806
|
+
const z = F[B];
|
|
4803
4807
|
j.push({
|
|
4804
4808
|
type: z == null ? void 0 : z.type,
|
|
4805
4809
|
yAxisIndex: z == null ? void 0 : z.axisIndex,
|
|
4806
|
-
...
|
|
4810
|
+
...T[B]
|
|
4807
4811
|
});
|
|
4808
4812
|
}
|
|
4809
4813
|
n.value = j;
|
|
@@ -4816,7 +4820,7 @@ const Sr = Q({
|
|
|
4816
4820
|
});
|
|
4817
4821
|
const S = q(() => {
|
|
4818
4822
|
const c = e.yAxis;
|
|
4819
|
-
return c == null ? void 0 : c.map((
|
|
4823
|
+
return c == null ? void 0 : c.map((g) => ({
|
|
4820
4824
|
type: "value",
|
|
4821
4825
|
minInterval: e.yAxisMinInterval,
|
|
4822
4826
|
splitLine: {
|
|
@@ -4828,7 +4832,7 @@ const Sr = Q({
|
|
|
4828
4832
|
axisLabel: {
|
|
4829
4833
|
color: e.yAxisLabelColor,
|
|
4830
4834
|
formatter(k) {
|
|
4831
|
-
return Ne(
|
|
4835
|
+
return Ne(g.axisLabelFormatter, k);
|
|
4832
4836
|
}
|
|
4833
4837
|
},
|
|
4834
4838
|
axisLine: {
|
|
@@ -4837,41 +4841,41 @@ const Sr = Q({
|
|
|
4837
4841
|
}
|
|
4838
4842
|
}
|
|
4839
4843
|
}));
|
|
4840
|
-
}), C =
|
|
4841
|
-
var c,
|
|
4844
|
+
}), C = M(!1), d = _e(e), u = async () => {
|
|
4845
|
+
var c, g;
|
|
4842
4846
|
if (!(e.dataType !== "request" || v(s) === "design"))
|
|
4843
4847
|
try {
|
|
4844
4848
|
C.value = !0;
|
|
4845
4849
|
const k = await d();
|
|
4846
|
-
f((
|
|
4850
|
+
f((g = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : g.rows, !0);
|
|
4847
4851
|
} catch (k) {
|
|
4848
4852
|
console.error(k);
|
|
4849
4853
|
} finally {
|
|
4850
4854
|
C.value = !1;
|
|
4851
4855
|
}
|
|
4852
|
-
},
|
|
4856
|
+
}, m = ot(e), h = async () => {
|
|
4853
4857
|
var c;
|
|
4854
4858
|
try {
|
|
4855
4859
|
C.value = !0;
|
|
4856
|
-
const
|
|
4857
|
-
let
|
|
4858
|
-
k.length > 0 && (
|
|
4860
|
+
const g = await m(), { columns: k = [], rows: R = [] } = ((c = g == null ? void 0 : g.data) == null ? void 0 : c.data) ?? {};
|
|
4861
|
+
let E;
|
|
4862
|
+
k.length > 0 && (E = {
|
|
4859
4863
|
name: k[0],
|
|
4860
|
-
types: k.slice(1).map((
|
|
4861
|
-
label:
|
|
4862
|
-
value:
|
|
4864
|
+
types: k.slice(1).map((T) => ({
|
|
4865
|
+
label: T,
|
|
4866
|
+
value: T
|
|
4863
4867
|
}))
|
|
4864
|
-
}),
|
|
4865
|
-
} catch (
|
|
4866
|
-
console.error(
|
|
4868
|
+
}), y(R, E, !0);
|
|
4869
|
+
} catch (g) {
|
|
4870
|
+
console.error(g);
|
|
4867
4871
|
} finally {
|
|
4868
4872
|
C.value = !1;
|
|
4869
4873
|
}
|
|
4870
|
-
},
|
|
4874
|
+
}, b = () => {
|
|
4871
4875
|
if (v(s) !== "design")
|
|
4872
4876
|
switch (e.dataType) {
|
|
4873
4877
|
case "indicator":
|
|
4874
|
-
|
|
4878
|
+
h();
|
|
4875
4879
|
break;
|
|
4876
4880
|
case "request":
|
|
4877
4881
|
u();
|
|
@@ -4879,34 +4883,34 @@ const Sr = Q({
|
|
|
4879
4883
|
}
|
|
4880
4884
|
};
|
|
4881
4885
|
o({
|
|
4882
|
-
refreshData:
|
|
4886
|
+
refreshData: b
|
|
4883
4887
|
});
|
|
4884
|
-
const
|
|
4888
|
+
const w = me(e), { getGlobalModel: A, setGlobalModel: L } = N(ye, {
|
|
4885
4889
|
// @ts-ignore
|
|
4886
4890
|
// eslint-disable-next-line no-void
|
|
4887
4891
|
getGlobalModel: (c) => {
|
|
4888
4892
|
},
|
|
4889
4893
|
// @ts-ignore
|
|
4890
4894
|
// eslint-disable-next-line no-void
|
|
4891
|
-
setGlobalModel: (c,
|
|
4895
|
+
setGlobalModel: (c, g) => {
|
|
4892
4896
|
}
|
|
4893
|
-
}), p =
|
|
4894
|
-
const
|
|
4895
|
-
|
|
4896
|
-
}), { setRequest:
|
|
4897
|
+
}), p = w("click", (c) => {
|
|
4898
|
+
const g = A(e.id);
|
|
4899
|
+
L(e.id, { ...g, RECORD: c == null ? void 0 : c.data });
|
|
4900
|
+
}), { setRequest: _ } = N(Se, {
|
|
4897
4901
|
setRequest: (c) => {
|
|
4898
4902
|
}
|
|
4899
4903
|
});
|
|
4900
|
-
return typeof
|
|
4904
|
+
return typeof _ == "function" && _({
|
|
4901
4905
|
id: e.id,
|
|
4902
|
-
requestFn:
|
|
4906
|
+
requestFn: b,
|
|
4903
4907
|
sortNum: e.requestSort
|
|
4904
4908
|
}), he(e, {
|
|
4905
4909
|
resetRecord: () => {
|
|
4906
|
-
const c = e.id,
|
|
4907
|
-
|
|
4910
|
+
const c = e.id, g = A(c);
|
|
4911
|
+
L(c, { ...g, RECORD: "" });
|
|
4908
4912
|
},
|
|
4909
|
-
refreshData:
|
|
4913
|
+
refreshData: b,
|
|
4910
4914
|
click: p
|
|
4911
4915
|
}), {
|
|
4912
4916
|
style: t,
|
|
@@ -4920,7 +4924,7 @@ const Sr = Q({
|
|
|
4920
4924
|
});
|
|
4921
4925
|
function wr(e, o, t, n, a, l) {
|
|
4922
4926
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4923
|
-
return
|
|
4927
|
+
return D(), $("div", {
|
|
4924
4928
|
style: U(e.style)
|
|
4925
4929
|
}, [
|
|
4926
4930
|
G(r, { spinning: e.loading }, {
|
|
@@ -4996,7 +5000,7 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
4996
5000
|
width: "100%",
|
|
4997
5001
|
height: "100%"
|
|
4998
5002
|
})), l = me(e)("click", () => {
|
|
4999
|
-
}), i =
|
|
5003
|
+
}), i = M([]);
|
|
5000
5004
|
ne(() => e.data, (s) => {
|
|
5001
5005
|
i.value = s;
|
|
5002
5006
|
}, {
|
|
@@ -5022,7 +5026,7 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
5022
5026
|
};
|
|
5023
5027
|
}
|
|
5024
5028
|
}), Tr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=", Lr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==";
|
|
5025
|
-
const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), Ir = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-left border-item" }, null, -1)), Mr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-right border-item" }, null, -1)), Er = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-left border-item" }, null, -1)), Dr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-right border-item" }, null, -1)), Or = { class: "title-item-wrapper" },
|
|
5029
|
+
const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), Ir = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-left border-item" }, null, -1)), Mr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-right border-item" }, null, -1)), Er = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-left border-item" }, null, -1)), Dr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-right border-item" }, null, -1)), Or = { class: "title-item-wrapper" }, Rr = { class: "title-item" }, Fr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("img", {
|
|
5026
5030
|
class: "title-decoration-left",
|
|
5027
5031
|
src: Tr
|
|
5028
5032
|
}, null, -1)), zr = { class: "title" }, $r = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("img", {
|
|
@@ -5033,31 +5037,31 @@ const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), Ir = /* @__PURE__ *
|
|
|
5033
5037
|
class: "left-title"
|
|
5034
5038
|
}, qr = { class: "title" };
|
|
5035
5039
|
function jr(e, o, t, n, a, l) {
|
|
5036
|
-
return
|
|
5040
|
+
return D(), $("div", {
|
|
5037
5041
|
class: "ecan-border",
|
|
5038
5042
|
style: U(e.style),
|
|
5039
5043
|
onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
|
|
5040
5044
|
}, [
|
|
5041
|
-
e.mode === "no-title" ? (
|
|
5045
|
+
e.mode === "no-title" ? (D(), $("div", {
|
|
5042
5046
|
key: 0,
|
|
5043
5047
|
class: "no-title",
|
|
5044
5048
|
style: U(e.borderStyle)
|
|
5045
5049
|
}, [
|
|
5046
|
-
e.useBorderModify ? (
|
|
5050
|
+
e.useBorderModify ? (D(), $(Me, { key: 0 }, [
|
|
5047
5051
|
Ir,
|
|
5048
5052
|
Mr,
|
|
5049
5053
|
Er,
|
|
5050
5054
|
Dr
|
|
5051
5055
|
], 64)) : ve("", !0)
|
|
5052
5056
|
], 4)) : ve("", !0),
|
|
5053
|
-
e.mode === "top-title" ? (
|
|
5057
|
+
e.mode === "top-title" ? (D(), $("div", {
|
|
5054
5058
|
key: 1,
|
|
5055
5059
|
class: "top-title",
|
|
5056
5060
|
style: U(e.borderStyle)
|
|
5057
5061
|
}, [
|
|
5058
5062
|
ee("div", Or, [
|
|
5059
|
-
ee("div",
|
|
5060
|
-
|
|
5063
|
+
ee("div", Rr, [
|
|
5064
|
+
Fr,
|
|
5061
5065
|
ee("div", zr, be(e.title), 1),
|
|
5062
5066
|
$r
|
|
5063
5067
|
])
|
|
@@ -5067,7 +5071,7 @@ function jr(e, o, t, n, a, l) {
|
|
|
5067
5071
|
Br,
|
|
5068
5072
|
Ur
|
|
5069
5073
|
], 4)) : ve("", !0),
|
|
5070
|
-
e.mode === "left-title" ? (
|
|
5074
|
+
e.mode === "left-title" ? (D(), $("div", Gr, [
|
|
5071
5075
|
ee("div", qr, [
|
|
5072
5076
|
ee("span", null, be(e.title), 1)
|
|
5073
5077
|
])
|
|
@@ -5111,31 +5115,31 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5111
5115
|
bottom: "bottom"
|
|
5112
5116
|
}[z]
|
|
5113
5117
|
};
|
|
5114
|
-
}), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r =
|
|
5115
|
-
let
|
|
5116
|
-
const
|
|
5118
|
+
}), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r = M("80%"), s = M(0), f = M(), y = M(0), S = M({}), C = re(e), d = M({}), u = M(!1), m = M();
|
|
5119
|
+
let h;
|
|
5120
|
+
const b = () => {
|
|
5117
5121
|
f.value = parseFloat(n) / parseFloat(l);
|
|
5118
5122
|
const z = parseFloat(a) / parseFloat(i), W = document.body.offsetWidth, X = document.body.offsetHeight;
|
|
5119
|
-
s.value = W * v(f),
|
|
5123
|
+
s.value = W * v(f), y.value = X * z, r.value = `${v(f) * 100}%`, S.value = {
|
|
5120
5124
|
width: `${v(s)}px`,
|
|
5121
|
-
height: `${v(
|
|
5125
|
+
height: `${v(y)}px`
|
|
5122
5126
|
}, d.value = {
|
|
5123
5127
|
...v(C),
|
|
5124
5128
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
5125
|
-
transform: `scale(${v(s) / parseFloat(n)},${v(
|
|
5129
|
+
transform: `scale(${v(s) / parseFloat(n)},${v(y) / parseFloat(a)})`
|
|
5126
5130
|
};
|
|
5127
|
-
},
|
|
5128
|
-
|
|
5129
|
-
}, 100),
|
|
5131
|
+
}, w = Rt(() => {
|
|
5132
|
+
b();
|
|
5133
|
+
}, 100), A = () => {
|
|
5130
5134
|
const z = window.MutationObserver;
|
|
5131
|
-
|
|
5135
|
+
h = new z(w), h.observe(document.body, {
|
|
5132
5136
|
attributes: !0,
|
|
5133
5137
|
attributeFilter: ["style"],
|
|
5134
5138
|
attributeOldValue: !0
|
|
5135
5139
|
});
|
|
5136
|
-
},
|
|
5137
|
-
|
|
5138
|
-
}, p =
|
|
5140
|
+
}, L = () => {
|
|
5141
|
+
h && (h.disconnect(), h.takeRecords(), h = null);
|
|
5142
|
+
}, p = M(!1), { touchRequest: _ } = N(Se, {
|
|
5139
5143
|
// @ts-ignore
|
|
5140
5144
|
// eslint-disable-next-line no-void
|
|
5141
5145
|
touchRequest: () => {
|
|
@@ -5144,11 +5148,11 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5144
5148
|
p.value = !0;
|
|
5145
5149
|
}, c = () => {
|
|
5146
5150
|
p.value = !1;
|
|
5147
|
-
},
|
|
5151
|
+
}, g = () => {
|
|
5148
5152
|
c();
|
|
5149
5153
|
}, k = () => {
|
|
5150
5154
|
c();
|
|
5151
|
-
}, { setModalModel:
|
|
5155
|
+
}, { setModalModel: R, pushUseModalIds: E, popUseModalIds: T } = N(Oo, {
|
|
5152
5156
|
pushUseModalIds: (z) => {
|
|
5153
5157
|
},
|
|
5154
5158
|
popUseModalIds: () => {
|
|
@@ -5159,31 +5163,31 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5159
5163
|
const z = e.id;
|
|
5160
5164
|
let W = [];
|
|
5161
5165
|
const X = e.componentList;
|
|
5162
|
-
console.log("componentList", X), Array.isArray(X) && (W = X.map((ie) => ie.id),
|
|
5166
|
+
console.log("componentList", X), Array.isArray(X) && (W = X.map((ie) => ie.id), R(z, [...new Set(W)]));
|
|
5163
5167
|
};
|
|
5164
5168
|
ne(() => p.value, async (z) => {
|
|
5165
|
-
z ? (u.value = !1,
|
|
5166
|
-
|
|
5167
|
-
}),
|
|
5169
|
+
z ? (u.value = !1, E(e.id), j(), await mt(() => {
|
|
5170
|
+
b(), window.addEventListener("resize", w), A(), u.value = !0;
|
|
5171
|
+
}), _()) : (T(), window.removeEventListener("resize", w), L());
|
|
5168
5172
|
});
|
|
5169
|
-
const J = q(() => v(f) >= 1),
|
|
5173
|
+
const J = q(() => v(f) >= 1), F = q(() => e.fullModal), B = q(() => {
|
|
5170
5174
|
let z = "ecan-modal";
|
|
5171
|
-
return v(J) && (z += " ecan-full-width-modal"), v(
|
|
5175
|
+
return v(J) && (z += " ecan-full-width-modal"), v(F) && (z += " ecan-full-modal"), z;
|
|
5172
5176
|
});
|
|
5173
5177
|
return he(e, {
|
|
5174
5178
|
showModal: x
|
|
5175
5179
|
}), {
|
|
5176
|
-
modalRef:
|
|
5180
|
+
modalRef: m,
|
|
5177
5181
|
containStyle: S,
|
|
5178
5182
|
contentStyle: d,
|
|
5179
5183
|
getContainer: o,
|
|
5180
5184
|
modalStyle: t,
|
|
5181
5185
|
modalWith: r,
|
|
5182
|
-
isFullModal:
|
|
5186
|
+
isFullModal: F,
|
|
5183
5187
|
style: C,
|
|
5184
5188
|
visible: p,
|
|
5185
5189
|
showModal: x,
|
|
5186
|
-
onOk:
|
|
5190
|
+
onOk: g,
|
|
5187
5191
|
onCancel: k,
|
|
5188
5192
|
isFullWidth: J,
|
|
5189
5193
|
wrapClassName: B,
|
|
@@ -5193,7 +5197,7 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5193
5197
|
});
|
|
5194
5198
|
function Jr(e, o, t, n, a, l) {
|
|
5195
5199
|
const i = H("a-modal");
|
|
5196
|
-
return
|
|
5200
|
+
return D(), Re(i, {
|
|
5197
5201
|
getContainer: e.getContainer,
|
|
5198
5202
|
wrapClassName: e.wrapClassName,
|
|
5199
5203
|
centered: "",
|
|
@@ -5205,19 +5209,19 @@ function Jr(e, o, t, n, a, l) {
|
|
|
5205
5209
|
onOk: e.onOk,
|
|
5206
5210
|
onCancel: e.onCancel,
|
|
5207
5211
|
ref: "modalRef"
|
|
5208
|
-
},
|
|
5212
|
+
}, Rn({
|
|
5209
5213
|
default: Y(() => [
|
|
5210
5214
|
ee("div", {
|
|
5211
5215
|
class: "contain",
|
|
5212
5216
|
ref: "containRef",
|
|
5213
5217
|
style: U(e.containStyle)
|
|
5214
5218
|
}, [
|
|
5215
|
-
e.ready ? (
|
|
5219
|
+
e.ready ? (D(), $("div", {
|
|
5216
5220
|
key: 0,
|
|
5217
5221
|
class: "content",
|
|
5218
5222
|
style: U(e.contentStyle)
|
|
5219
5223
|
}, [
|
|
5220
|
-
(
|
|
5224
|
+
(D(!0), $(Me, null, De(e.componentList, (r, s) => (D(), Re(Fn(r.type), zn({
|
|
5221
5225
|
key: r.id + s
|
|
5222
5226
|
}, r), null, 16))), 128))
|
|
5223
5227
|
], 4)) : ve("", !0)
|
|
@@ -5281,7 +5285,7 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5281
5285
|
...wn
|
|
5282
5286
|
},
|
|
5283
5287
|
setup(e) {
|
|
5284
|
-
const o = re(e), t =
|
|
5288
|
+
const o = re(e), t = M(0);
|
|
5285
5289
|
ne(() => e.activeKey, (d) => {
|
|
5286
5290
|
t.value = d;
|
|
5287
5291
|
}, {
|
|
@@ -5303,20 +5307,20 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5303
5307
|
}), Tt(() => {
|
|
5304
5308
|
clearInterval(a);
|
|
5305
5309
|
});
|
|
5306
|
-
const i =
|
|
5310
|
+
const i = M([]), r = M({});
|
|
5307
5311
|
ne(() => e.data, (d) => {
|
|
5308
5312
|
i.value = d, r.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
|
|
5309
5313
|
}, {
|
|
5310
5314
|
immediate: !0,
|
|
5311
5315
|
deep: !0
|
|
5312
5316
|
});
|
|
5313
|
-
const s = (d) => t.value === d, f = me(e), { setGlobalModel:
|
|
5317
|
+
const s = (d) => t.value === d, f = me(e), { setGlobalModel: y } = N(ye, {
|
|
5314
5318
|
// @ts-ignore
|
|
5315
5319
|
// eslint-disable-next-line no-void
|
|
5316
5320
|
setGlobalModel: (d, u) => {
|
|
5317
5321
|
}
|
|
5318
5322
|
});
|
|
5319
|
-
|
|
5323
|
+
y(e.id, {
|
|
5320
5324
|
value: r,
|
|
5321
5325
|
activeKey: t
|
|
5322
5326
|
});
|
|
@@ -5341,7 +5345,7 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5341
5345
|
});
|
|
5342
5346
|
const es = ["onClick"];
|
|
5343
5347
|
function ts(e, o, t, n, a, l) {
|
|
5344
|
-
return
|
|
5348
|
+
return D(), $("div", {
|
|
5345
5349
|
class: "ecan-tabs",
|
|
5346
5350
|
style: U(e.style)
|
|
5347
5351
|
}, [
|
|
@@ -5354,7 +5358,7 @@ function ts(e, o, t, n, a, l) {
|
|
|
5354
5358
|
flexDirection: e.tabFlexDirection
|
|
5355
5359
|
})
|
|
5356
5360
|
}, [
|
|
5357
|
-
(
|
|
5361
|
+
(D(!0), $(Me, null, De(e.myData, (i, r) => (D(), $("div", {
|
|
5358
5362
|
class: "tab",
|
|
5359
5363
|
style: U({
|
|
5360
5364
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
@@ -5403,7 +5407,7 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5403
5407
|
onClick: () => {
|
|
5404
5408
|
if (!e.linkPage && !e.href)
|
|
5405
5409
|
return;
|
|
5406
|
-
const l = e.linkPage || "", i =
|
|
5410
|
+
const l = e.linkPage || "", i = Fo(v(n), l), r = e.href;
|
|
5407
5411
|
let s = r || i;
|
|
5408
5412
|
s = de(s);
|
|
5409
5413
|
const f = e.target;
|
|
@@ -5417,12 +5421,12 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5417
5421
|
});
|
|
5418
5422
|
const ls = ["src"];
|
|
5419
5423
|
function is(e, o, t, n, a, l) {
|
|
5420
|
-
return e.myImgUrl !== "" ? (
|
|
5424
|
+
return e.myImgUrl !== "" ? (D(), $("img", {
|
|
5421
5425
|
key: 0,
|
|
5422
5426
|
style: U(e.style),
|
|
5423
5427
|
src: e.myImgUrl,
|
|
5424
5428
|
onClick: o[0] || (o[0] = (...i) => e.onClick && e.onClick(...i))
|
|
5425
|
-
}, null, 12, ls)) : (
|
|
5429
|
+
}, null, 12, ls)) : (D(), $("div", {
|
|
5426
5430
|
key: 1,
|
|
5427
5431
|
class: "image-placeholder",
|
|
5428
5432
|
style: U(e.style)
|
|
@@ -5461,11 +5465,11 @@ const rs = /* @__PURE__ */ K(as, [["render", is], ["__scopeId", "data-v-ef7a7bee
|
|
|
5461
5465
|
});
|
|
5462
5466
|
const ds = ["src"];
|
|
5463
5467
|
function us(e, o, t, n, a, l) {
|
|
5464
|
-
return e.myLink ? (
|
|
5468
|
+
return e.myLink ? (D(), $("iframe", {
|
|
5465
5469
|
key: 0,
|
|
5466
5470
|
src: e.myLink,
|
|
5467
5471
|
style: U(e.style)
|
|
5468
|
-
}, null, 12, ds)) : (
|
|
5472
|
+
}, null, 12, ds)) : (D(), $("div", {
|
|
5469
5473
|
key: 1,
|
|
5470
5474
|
class: "iframe-placeholder",
|
|
5471
5475
|
style: U(e.style)
|
|
@@ -5568,11 +5572,11 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5568
5572
|
default:
|
|
5569
5573
|
return 55;
|
|
5570
5574
|
}
|
|
5571
|
-
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - v(n)), i =
|
|
5572
|
-
if (Array.isArray(
|
|
5573
|
-
const O =
|
|
5575
|
+
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - v(n)), i = M([]), r = M([]), s = M([]), f = M([]), y = M(0), S = M(1), C = q(() => e.paginationPageSize), d = $n([]), u = (I = []) => {
|
|
5576
|
+
if (Array.isArray(I) && I.length > 0) {
|
|
5577
|
+
const O = I.length, V = e.columnsFixedNum;
|
|
5574
5578
|
for (let Z = 0; Z < O; Z++) {
|
|
5575
|
-
const P =
|
|
5579
|
+
const P = I[Z];
|
|
5576
5580
|
Z < V ? P.fixed = "left" : P.fixed = !1;
|
|
5577
5581
|
const {
|
|
5578
5582
|
cellAlign: te = "center",
|
|
@@ -5603,7 +5607,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5603
5607
|
class: {
|
|
5604
5608
|
highlight: v(W) === bt && e.clickHighlight
|
|
5605
5609
|
},
|
|
5606
|
-
onClick:
|
|
5610
|
+
onClick: E("click", () => {
|
|
5607
5611
|
const Ut = e.id, Dn = j(Ut);
|
|
5608
5612
|
Le = {
|
|
5609
5613
|
dataIndex: ue,
|
|
@@ -5614,15 +5618,15 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5614
5618
|
}), Array.isArray(P.children) && u(P.children);
|
|
5615
5619
|
}
|
|
5616
5620
|
}
|
|
5617
|
-
},
|
|
5621
|
+
}, m = (I = []) => (e.isUseSeq && I.unshift({
|
|
5618
5622
|
title: "序号",
|
|
5619
5623
|
dataIndex: "SEQ",
|
|
5620
5624
|
align: "center"
|
|
5621
|
-
}), e.isUseAction &&
|
|
5625
|
+
}), e.isUseAction && I.push({
|
|
5622
5626
|
title: "操作",
|
|
5623
5627
|
dataIndex: "ACTION",
|
|
5624
5628
|
width: e.actionColumnWidth
|
|
5625
|
-
}), u(
|
|
5629
|
+
}), u(I), I);
|
|
5626
5630
|
ne(() => [
|
|
5627
5631
|
e.columns,
|
|
5628
5632
|
e.isUseSeq,
|
|
@@ -5632,20 +5636,20 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5632
5636
|
e.cellBackgroundColor,
|
|
5633
5637
|
e.borderColor
|
|
5634
5638
|
], () => {
|
|
5635
|
-
i.value =
|
|
5639
|
+
i.value = m(pt(e.columns));
|
|
5636
5640
|
}, {
|
|
5637
5641
|
immediate: !0,
|
|
5638
5642
|
deep: !0
|
|
5639
|
-
}), ne(() => [e.data, e.dataType], ([
|
|
5640
|
-
O === "static" && (r.value =
|
|
5643
|
+
}), ne(() => [e.data, e.dataType], ([I, O]) => {
|
|
5644
|
+
O === "static" && (r.value = I);
|
|
5641
5645
|
}, {
|
|
5642
5646
|
immediate: !0
|
|
5643
5647
|
});
|
|
5644
|
-
const
|
|
5645
|
-
if (Array.isArray(
|
|
5646
|
-
const O =
|
|
5648
|
+
const h = M({}), b = (I) => {
|
|
5649
|
+
if (Array.isArray(I)) {
|
|
5650
|
+
const O = I.length, V = d, Z = V.length, P = {};
|
|
5647
5651
|
for (let oe = 0; oe < O; oe++) {
|
|
5648
|
-
const ue =
|
|
5652
|
+
const ue = I[oe];
|
|
5649
5653
|
for (let ge = 0; ge < Z; ge++) {
|
|
5650
5654
|
const ce = V[ge];
|
|
5651
5655
|
if (P[ce])
|
|
@@ -5662,21 +5666,21 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5662
5666
|
const ue = P[oe], ge = Array.from(ue);
|
|
5663
5667
|
te[oe] = ge.map((ce) => ({ label: ce, value: ce }));
|
|
5664
5668
|
}
|
|
5665
|
-
|
|
5669
|
+
h.value = te;
|
|
5666
5670
|
}
|
|
5667
5671
|
};
|
|
5668
5672
|
ne(() => [e.isReverse, i.value, r.value], () => {
|
|
5669
|
-
const
|
|
5670
|
-
if (
|
|
5671
|
-
const { columns: V, dataSource: Z } =
|
|
5673
|
+
const I = v(i), O = v(r);
|
|
5674
|
+
if (b(O), e.isReverse) {
|
|
5675
|
+
const { columns: V, dataSource: Z } = w(pt(I), pt(O));
|
|
5672
5676
|
s.value = V, f.value = Z;
|
|
5673
5677
|
} else
|
|
5674
|
-
s.value =
|
|
5678
|
+
s.value = I, f.value = O;
|
|
5675
5679
|
}, {
|
|
5676
5680
|
immediate: !0
|
|
5677
5681
|
});
|
|
5678
|
-
const
|
|
5679
|
-
const V =
|
|
5682
|
+
const w = (I, O) => {
|
|
5683
|
+
const V = I[0], Z = [{
|
|
5680
5684
|
title: V.title,
|
|
5681
5685
|
dataIndex: "col0",
|
|
5682
5686
|
key: "col0",
|
|
@@ -5692,8 +5696,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5692
5696
|
});
|
|
5693
5697
|
}
|
|
5694
5698
|
const P = [];
|
|
5695
|
-
for (let te = 1; te <
|
|
5696
|
-
const oe =
|
|
5699
|
+
for (let te = 1; te < I.length; te++) {
|
|
5700
|
+
const oe = I[te], ue = { col0: oe.title };
|
|
5697
5701
|
for (let ge = 0; ge < O.length; ge++) {
|
|
5698
5702
|
const ce = O[ge];
|
|
5699
5703
|
ue[`col${ge + 1}`] = ce[oe.dataIndex];
|
|
@@ -5704,48 +5708,48 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5704
5708
|
columns: Z,
|
|
5705
5709
|
dataSource: P
|
|
5706
5710
|
};
|
|
5707
|
-
},
|
|
5711
|
+
}, A = M(""), L = _e(e), p = M(!1), _ = async (I = !0, O = {}) => {
|
|
5708
5712
|
var V;
|
|
5709
5713
|
try {
|
|
5710
|
-
|
|
5714
|
+
I && (p.value = !0), v(A) && (O.orderCondition = v(A)), e.paginationShow && (O = {
|
|
5711
5715
|
pageNum: v(S),
|
|
5712
5716
|
pageSize: v(C),
|
|
5713
5717
|
layer: "1",
|
|
5714
5718
|
...O
|
|
5715
5719
|
});
|
|
5716
|
-
const Z = await
|
|
5717
|
-
|
|
5720
|
+
const Z = await L(O), { rows: P = [], total: te = 0 } = ((V = Z == null ? void 0 : Z.data) == null ? void 0 : V.data) || {};
|
|
5721
|
+
y.value = te, Array.isArray(P) && (r.value = P);
|
|
5718
5722
|
} catch (Z) {
|
|
5719
5723
|
console.error(Z);
|
|
5720
5724
|
} finally {
|
|
5721
5725
|
p.value = !1;
|
|
5722
5726
|
}
|
|
5723
|
-
}, x = ({ current:
|
|
5724
|
-
if (S.value =
|
|
5727
|
+
}, x = ({ current: I }, O, V) => {
|
|
5728
|
+
if (S.value = I, V && Object.keys(V).length > 0) {
|
|
5725
5729
|
const { field: Z, order: P } = V, oe = {
|
|
5726
5730
|
ascend: "asc",
|
|
5727
5731
|
descend: "desc"
|
|
5728
5732
|
}[P];
|
|
5729
|
-
Z != null && oe != null && (
|
|
5733
|
+
Z != null && oe != null && (A.value = Z + " " + oe, S.value = 1);
|
|
5730
5734
|
}
|
|
5731
5735
|
ie(!1);
|
|
5732
5736
|
}, c = q(() => {
|
|
5733
|
-
const
|
|
5737
|
+
const I = e.simple, O = [e.paginationPosition];
|
|
5734
5738
|
return e.paginationShow && {
|
|
5735
|
-
simple:
|
|
5739
|
+
simple: I,
|
|
5736
5740
|
position: O,
|
|
5737
|
-
total: v(
|
|
5741
|
+
total: v(y),
|
|
5738
5742
|
current: v(S),
|
|
5739
5743
|
pageSize: v(C),
|
|
5740
5744
|
showSizeChanger: !1
|
|
5741
5745
|
};
|
|
5742
|
-
}),
|
|
5746
|
+
}), g = (I) => +I == 1 ? "是" : +I == 0 ? "否" : I, k = (I, O) => O == null || O === "" ? I : {
|
|
5743
5747
|
money: Pt,
|
|
5744
5748
|
percentage: ut,
|
|
5745
5749
|
contrast: ut,
|
|
5746
|
-
boolean:
|
|
5747
|
-
}[O](
|
|
5748
|
-
const V = parseFloat(
|
|
5750
|
+
boolean: g
|
|
5751
|
+
}[O](I) || "", R = (I, O) => {
|
|
5752
|
+
const V = parseFloat(I + "");
|
|
5749
5753
|
if (O !== "contrast")
|
|
5750
5754
|
return "";
|
|
5751
5755
|
switch (!0) {
|
|
@@ -5754,41 +5758,41 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5754
5758
|
case V < 0:
|
|
5755
5759
|
return "goDown";
|
|
5756
5760
|
}
|
|
5757
|
-
},
|
|
5761
|
+
}, E = me(e), { pageMode: T } = N(fe, {
|
|
5758
5762
|
pageMode: "normal"
|
|
5759
5763
|
}), { getGlobalModel: j, setGlobalModel: J } = N(ye, {
|
|
5760
5764
|
// @ts-ignore
|
|
5761
5765
|
// eslint-disable-next-line no-void
|
|
5762
|
-
getGlobalModel: (
|
|
5766
|
+
getGlobalModel: (I) => {
|
|
5763
5767
|
},
|
|
5764
5768
|
// @ts-ignore
|
|
5765
5769
|
// eslint-disable-next-line no-void
|
|
5766
|
-
setGlobalModel: (
|
|
5770
|
+
setGlobalModel: (I, O) => {
|
|
5767
5771
|
}
|
|
5768
|
-
}),
|
|
5769
|
-
const V =
|
|
5770
|
-
i.value =
|
|
5772
|
+
}), F = (I = [], O = []) => {
|
|
5773
|
+
const V = I.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5774
|
+
i.value = m(V), r.value = O;
|
|
5771
5775
|
}, B = ot(e), z = async () => {
|
|
5772
|
-
var
|
|
5776
|
+
var I, O, V, Z;
|
|
5773
5777
|
try {
|
|
5774
5778
|
p.value = !0;
|
|
5775
5779
|
const P = await B();
|
|
5776
|
-
|
|
5780
|
+
F((O = (I = P == null ? void 0 : P.data) == null ? void 0 : I.data) == null ? void 0 : O.columns, (Z = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : Z.rows);
|
|
5777
5781
|
} catch (P) {
|
|
5778
5782
|
console.error(P);
|
|
5779
5783
|
} finally {
|
|
5780
5784
|
p.value = !1;
|
|
5781
5785
|
}
|
|
5782
|
-
}, W =
|
|
5783
|
-
onClick:
|
|
5786
|
+
}, W = M(-1), X = (I, O) => ({
|
|
5787
|
+
onClick: E("rowClick", () => {
|
|
5784
5788
|
const V = e.id, Z = j(V);
|
|
5785
|
-
J(V, { ...Z, RECORD:
|
|
5789
|
+
J(V, { ...Z, RECORD: I }), W.value = O;
|
|
5786
5790
|
})
|
|
5787
|
-
}), ie = (
|
|
5788
|
-
if (v(
|
|
5791
|
+
}), ie = (I = !0) => {
|
|
5792
|
+
if (v(T) !== "design")
|
|
5789
5793
|
switch (e.dataType) {
|
|
5790
5794
|
case "request":
|
|
5791
|
-
|
|
5795
|
+
_(I);
|
|
5792
5796
|
break;
|
|
5793
5797
|
case "indicator":
|
|
5794
5798
|
z();
|
|
@@ -5797,16 +5801,16 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5797
5801
|
};
|
|
5798
5802
|
he(e, {
|
|
5799
5803
|
resetRecord: () => {
|
|
5800
|
-
const
|
|
5801
|
-
J(
|
|
5804
|
+
const I = e.id, O = j(I);
|
|
5805
|
+
J(I, { ...O, RECORD: "" });
|
|
5802
5806
|
},
|
|
5803
5807
|
refreshData: ie
|
|
5804
5808
|
});
|
|
5805
5809
|
const En = q(() => {
|
|
5806
|
-
const
|
|
5810
|
+
const I = v(s), O = [];
|
|
5807
5811
|
let V = 0;
|
|
5808
|
-
for (let P = 0; P <
|
|
5809
|
-
const te =
|
|
5812
|
+
for (let P = 0; P < I.length; P++) {
|
|
5813
|
+
const te = I[P], { isCalcTotal: oe } = te;
|
|
5810
5814
|
e.isUseSeq && P === 0 ? O.push({
|
|
5811
5815
|
...te,
|
|
5812
5816
|
total: "小计"
|
|
@@ -5835,7 +5839,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5835
5839
|
}
|
|
5836
5840
|
return O;
|
|
5837
5841
|
}), { setRequest: Bt } = N(Se, {
|
|
5838
|
-
setRequest: (
|
|
5842
|
+
setRequest: (I) => {
|
|
5839
5843
|
}
|
|
5840
5844
|
});
|
|
5841
5845
|
return typeof Bt == "function" && Bt({
|
|
@@ -5851,49 +5855,49 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5851
5855
|
customRow: X,
|
|
5852
5856
|
pagination: c,
|
|
5853
5857
|
formatFn: k,
|
|
5854
|
-
contrastClass:
|
|
5858
|
+
contrastClass: R,
|
|
5855
5859
|
tableChange: x,
|
|
5856
5860
|
summaryList: En,
|
|
5857
5861
|
loading: p,
|
|
5858
|
-
onTouchHrefEvent: (
|
|
5859
|
-
|
|
5862
|
+
onTouchHrefEvent: (I, O = "") => {
|
|
5863
|
+
I === "event" && window.parent.postMessage({
|
|
5860
5864
|
type: "openPage",
|
|
5861
5865
|
url: O
|
|
5862
5866
|
}, "*");
|
|
5863
5867
|
},
|
|
5864
|
-
handleHref: (
|
|
5865
|
-
handleHrefTarget: (
|
|
5866
|
-
if (
|
|
5868
|
+
handleHref: (I = "", O) => de(I, O),
|
|
5869
|
+
handleHrefTarget: (I) => {
|
|
5870
|
+
if (I !== "event")
|
|
5867
5871
|
return {
|
|
5868
5872
|
self: "_self",
|
|
5869
5873
|
blank: "_blank"
|
|
5870
|
-
}[
|
|
5874
|
+
}[I];
|
|
5871
5875
|
},
|
|
5872
5876
|
useRowIndex: W,
|
|
5873
5877
|
tableColumns: s,
|
|
5874
5878
|
tableDataSource: f,
|
|
5875
|
-
useFilterOptions: (
|
|
5876
|
-
const O =
|
|
5879
|
+
useFilterOptions: (I) => {
|
|
5880
|
+
const O = I.dataIndex;
|
|
5877
5881
|
if (typeof O == "string") {
|
|
5878
|
-
let V = v(
|
|
5879
|
-
const Z = v(
|
|
5882
|
+
let V = v(h)[O];
|
|
5883
|
+
const Z = v(I.filterOptionsInputValue).trim();
|
|
5880
5884
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(Z.toLowerCase()) : !0), V) : [];
|
|
5881
5885
|
}
|
|
5882
5886
|
return [];
|
|
5883
5887
|
},
|
|
5884
|
-
useSetSelectedKeys: (
|
|
5885
|
-
|
|
5888
|
+
useSetSelectedKeys: (I, O) => {
|
|
5889
|
+
I(O.filterCheckboxGroupValue);
|
|
5886
5890
|
},
|
|
5887
|
-
onResetFilter: (
|
|
5888
|
-
|
|
5891
|
+
onResetFilter: (I, O) => {
|
|
5892
|
+
I({ confirm: !0 }), O.filterOptionsInputValue = "", O.filterCheckboxGroupValue = [];
|
|
5889
5893
|
},
|
|
5890
5894
|
onSearchFilterOptions: () => {
|
|
5891
5895
|
},
|
|
5892
5896
|
exportTable: async () => {
|
|
5893
5897
|
var ce, Ee;
|
|
5894
|
-
const
|
|
5898
|
+
const I = "EXPORT_KEY";
|
|
5895
5899
|
Be.loading({
|
|
5896
|
-
key:
|
|
5900
|
+
key: I,
|
|
5897
5901
|
content: "正在导出...",
|
|
5898
5902
|
duration: 0
|
|
5899
5903
|
});
|
|
@@ -5902,8 +5906,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5902
5906
|
O = e.data;
|
|
5903
5907
|
else if (e.dataType === "request") {
|
|
5904
5908
|
const we = { layer: "1" };
|
|
5905
|
-
v(
|
|
5906
|
-
const Le = await
|
|
5909
|
+
v(A) && (we.orderCondition = v(A));
|
|
5910
|
+
const Le = await L(we);
|
|
5907
5911
|
O = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
5908
5912
|
}
|
|
5909
5913
|
const V = v(s), Z = [], P = [];
|
|
@@ -5911,7 +5915,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5911
5915
|
Z.push(we.dataIndex), P.push(we.title);
|
|
5912
5916
|
});
|
|
5913
5917
|
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" });
|
|
5914
|
-
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key:
|
|
5918
|
+
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key: I, content: "导出成功" });
|
|
5915
5919
|
}
|
|
5916
5920
|
};
|
|
5917
5921
|
}
|
|
@@ -5924,14 +5928,14 @@ const ys = {
|
|
|
5924
5928
|
class: "action-list"
|
|
5925
5929
|
}, ws = ["href", "target", "onClick"];
|
|
5926
5930
|
function xs(e, o, t, n, a, l) {
|
|
5927
|
-
const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"),
|
|
5928
|
-
return
|
|
5931
|
+
const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"), y = H("a-table-summary-row"), S = H("a-table-summary"), C = H("a-table"), d = H("skeleton");
|
|
5932
|
+
return D(), $("div", {
|
|
5929
5933
|
class: "ecan-table",
|
|
5930
5934
|
style: U(e.style)
|
|
5931
5935
|
}, [
|
|
5932
5936
|
G(d, { loading: e.loading }, {
|
|
5933
5937
|
default: Y(() => [
|
|
5934
|
-
e.isUseExport ? (
|
|
5938
|
+
e.isUseExport ? (D(), $("div", ys, [
|
|
5935
5939
|
G(i, {
|
|
5936
5940
|
class: "export-button",
|
|
5937
5941
|
onClick: e.exportTable
|
|
@@ -5956,7 +5960,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5956
5960
|
pagination: e.pagination,
|
|
5957
5961
|
onChange: e.tableChange
|
|
5958
5962
|
}, {
|
|
5959
|
-
customFilterDropdown: Y(({ column: u, selectedKeys:
|
|
5963
|
+
customFilterDropdown: Y(({ column: u, selectedKeys: m, setSelectedKeys: h, confirm: b, clearFilters: w }) => [
|
|
5960
5964
|
ee("div", {
|
|
5961
5965
|
class: "ecan-table-filter",
|
|
5962
5966
|
style: U({
|
|
@@ -5965,24 +5969,24 @@ function xs(e, o, t, n, a, l) {
|
|
|
5965
5969
|
}, [
|
|
5966
5970
|
G(r, {
|
|
5967
5971
|
value: u.filterOptionsInputValue,
|
|
5968
|
-
"onUpdate:value": (
|
|
5972
|
+
"onUpdate:value": (A) => u.filterOptionsInputValue = A,
|
|
5969
5973
|
placeholder: "请输入关键字",
|
|
5970
5974
|
class: "filter-input",
|
|
5971
5975
|
onChange: e.onSearchFilterOptions
|
|
5972
5976
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
5973
5977
|
G(s, {
|
|
5974
5978
|
value: u.filterCheckboxGroupValue,
|
|
5975
|
-
"onUpdate:value": (
|
|
5979
|
+
"onUpdate:value": (A) => u.filterCheckboxGroupValue = A,
|
|
5976
5980
|
class: "filter-checkbox",
|
|
5977
5981
|
options: e.useFilterOptions(u),
|
|
5978
|
-
onChange: (
|
|
5982
|
+
onChange: (A) => e.useSetSelectedKeys(h, u)
|
|
5979
5983
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
5980
5984
|
ee("div", null, [
|
|
5981
5985
|
G(i, {
|
|
5982
5986
|
type: "primary",
|
|
5983
5987
|
size: "small",
|
|
5984
5988
|
style: { width: "90px", "margin-right": "8px" },
|
|
5985
|
-
onClick: () =>
|
|
5989
|
+
onClick: () => b()
|
|
5986
5990
|
}, {
|
|
5987
5991
|
default: Y(() => [
|
|
5988
5992
|
vs
|
|
@@ -5992,7 +5996,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5992
5996
|
G(i, {
|
|
5993
5997
|
size: "small",
|
|
5994
5998
|
style: { width: "90px" },
|
|
5995
|
-
onClick: go((
|
|
5999
|
+
onClick: go((A) => e.onResetFilter(w, u), ["stop"])
|
|
5996
6000
|
}, {
|
|
5997
6001
|
default: Y(() => [
|
|
5998
6002
|
ps
|
|
@@ -6002,41 +6006,41 @@ function xs(e, o, t, n, a, l) {
|
|
|
6002
6006
|
])
|
|
6003
6007
|
], 4)
|
|
6004
6008
|
]),
|
|
6005
|
-
bodyCell: Y(({ column: u, index:
|
|
6006
|
-
u.dataIndex === "SEQ" ? (
|
|
6007
|
-
u.dataIndex === "ACTION" ? (
|
|
6008
|
-
(
|
|
6009
|
+
bodyCell: Y(({ column: u, index: m, text: h, record: b }) => [
|
|
6010
|
+
u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(m + 1), 1)) : ve("", !0),
|
|
6011
|
+
u.dataIndex === "ACTION" ? (D(), $("div", Ss, [
|
|
6012
|
+
(D(!0), $(Me, null, De(e.actionList, (w, A) => (D(), $("div", {
|
|
6009
6013
|
class: "action",
|
|
6010
|
-
key:
|
|
6014
|
+
key: A
|
|
6011
6015
|
}, [
|
|
6012
6016
|
ee("a", {
|
|
6013
|
-
href: e.handleHref(
|
|
6014
|
-
target: e.handleHrefTarget(
|
|
6017
|
+
href: e.handleHref(w.href, b),
|
|
6018
|
+
target: e.handleHrefTarget(w.target),
|
|
6015
6019
|
style: U({
|
|
6016
|
-
color:
|
|
6020
|
+
color: w.color,
|
|
6017
6021
|
fontSize: e.fontSize,
|
|
6018
6022
|
fontWeight: e.fontWeight
|
|
6019
6023
|
}),
|
|
6020
|
-
onClick: (
|
|
6021
|
-
}, be(
|
|
6024
|
+
onClick: (L) => e.onTouchHrefEvent(w.target, e.handleHref(w.href, b))
|
|
6025
|
+
}, be(w.title), 13, ws)
|
|
6022
6026
|
]))), 128))
|
|
6023
|
-
])) : (
|
|
6027
|
+
])) : (D(), $("div", {
|
|
6024
6028
|
key: 2,
|
|
6025
|
-
class: Lt([e.contrastClass(
|
|
6029
|
+
class: Lt([e.contrastClass(h, u.format)]),
|
|
6026
6030
|
style: U({
|
|
6027
6031
|
fontSize: e.fontSize,
|
|
6028
6032
|
fontWeight: e.fontWeight
|
|
6029
6033
|
})
|
|
6030
|
-
}, be(u.format != null ? e.formatFn(
|
|
6034
|
+
}, be(u.format != null ? e.formatFn(h, u.format) : h), 7))
|
|
6031
6035
|
]),
|
|
6032
6036
|
summary: Y(() => [
|
|
6033
|
-
e.summaryList.length > 0 ? (
|
|
6037
|
+
e.summaryList.length > 0 ? (D(), Re(S, { key: 0 }, {
|
|
6034
6038
|
default: Y(() => [
|
|
6035
|
-
G(
|
|
6039
|
+
G(y, null, {
|
|
6036
6040
|
default: Y(() => [
|
|
6037
|
-
(
|
|
6038
|
-
key:
|
|
6039
|
-
index:
|
|
6041
|
+
(D(!0), $(Me, null, De(e.summaryList, (u, m) => (D(), Re(f, {
|
|
6042
|
+
key: m,
|
|
6043
|
+
index: m,
|
|
6040
6044
|
style: U({
|
|
6041
6045
|
backgroundColor: e.cellBackgroundColor,
|
|
6042
6046
|
textAlign: u.cellAlign || "center",
|
|
@@ -6116,7 +6120,7 @@ qe([
|
|
|
6116
6120
|
aa,
|
|
6117
6121
|
xo,
|
|
6118
6122
|
la,
|
|
6119
|
-
|
|
6123
|
+
Ft,
|
|
6120
6124
|
ia
|
|
6121
6125
|
]);
|
|
6122
6126
|
const _s = Q({
|
|
@@ -6128,16 +6132,16 @@ const _s = Q({
|
|
|
6128
6132
|
...Mn
|
|
6129
6133
|
},
|
|
6130
6134
|
setup(e) {
|
|
6131
|
-
const o = re(e, ["backgroundImage"]), t =
|
|
6135
|
+
const o = re(e, ["backgroundImage"]), t = M(), n = q(() => $e(e.geoBackgroundImage)), a = q(() => $e(e.backgroundImage)), l = q(() => e.geoBackgroundImage ? {
|
|
6132
6136
|
image: v(t),
|
|
6133
6137
|
repeat: e.geoBackgroundImageRepeat
|
|
6134
6138
|
} : e.geoItemStyleAreaColor), i = q(() => {
|
|
6135
|
-
const
|
|
6136
|
-
return e.symbolImage ? "image://" + $e(
|
|
6139
|
+
const y = e.symbolImage;
|
|
6140
|
+
return e.symbolImage ? "image://" + $e(y) : "circle";
|
|
6137
6141
|
}), r = q(() => {
|
|
6138
|
-
const
|
|
6142
|
+
const y = e.geoCenter;
|
|
6139
6143
|
let S;
|
|
6140
|
-
return typeof
|
|
6144
|
+
return typeof y == "string" && y !== "" && (S = y.split(",")), {
|
|
6141
6145
|
// backgroundColor: unref(background),
|
|
6142
6146
|
tooltip: {
|
|
6143
6147
|
show: !0
|
|
@@ -6216,11 +6220,11 @@ const _s = Q({
|
|
|
6216
6220
|
}
|
|
6217
6221
|
]
|
|
6218
6222
|
};
|
|
6219
|
-
}), s =
|
|
6223
|
+
}), s = M(!1), f = async () => {
|
|
6220
6224
|
var S;
|
|
6221
|
-
const
|
|
6222
|
-
if (
|
|
6223
|
-
const C = await
|
|
6225
|
+
const y = e.mapJson;
|
|
6226
|
+
if (y != null && y.path) {
|
|
6227
|
+
const C = await Fe(((S = window == null ? void 0 : window.config) == null ? void 0 : S.uploadPath) + y.path);
|
|
6224
6228
|
Gn("map", (C == null ? void 0 : C.data) || {});
|
|
6225
6229
|
}
|
|
6226
6230
|
s.value = !0;
|
|
@@ -6242,11 +6246,11 @@ const _s = Q({
|
|
|
6242
6246
|
const Ts = ["src"];
|
|
6243
6247
|
function Ls(e, o, t, n, a, l) {
|
|
6244
6248
|
const i = H("echarts");
|
|
6245
|
-
return
|
|
6249
|
+
return D(), $("div", {
|
|
6246
6250
|
class: "ecan-map",
|
|
6247
6251
|
style: U(e.style)
|
|
6248
6252
|
}, [
|
|
6249
|
-
e.isLoadedData ? (
|
|
6253
|
+
e.isLoadedData ? (D(), Re(i, {
|
|
6250
6254
|
key: 0,
|
|
6251
6255
|
option: e.option,
|
|
6252
6256
|
"update-options": { notMerge: !0 },
|
|
@@ -6283,7 +6287,7 @@ const Is = /* @__PURE__ */ K(_s, [["render", Ls], ["__scopeId", "data-v-1fb5cdee
|
|
|
6283
6287
|
EcanRangePicker: Pi,
|
|
6284
6288
|
EcanScatter: hr,
|
|
6285
6289
|
EcanScrollText: Ql,
|
|
6286
|
-
EcanSelect:
|
|
6290
|
+
EcanSelect: Ri,
|
|
6287
6291
|
EcanTable: As,
|
|
6288
6292
|
EcanTabs: ns,
|
|
6289
6293
|
EcanText: Vl,
|
|
@@ -6337,7 +6341,7 @@ const Is = /* @__PURE__ */ K(_s, [["render", Ls], ["__scopeId", "data-v-1fb5cdee
|
|
|
6337
6341
|
providerConfig: zo,
|
|
6338
6342
|
providerConfigComponentProps: $o,
|
|
6339
6343
|
rangePickerComponentProps: Xo,
|
|
6340
|
-
rangePickerEvents:
|
|
6344
|
+
rangePickerEvents: Fi,
|
|
6341
6345
|
rangePickerProps: Ko,
|
|
6342
6346
|
scatterComponentProps: fn,
|
|
6343
6347
|
scatterEvents: ur,
|
|
@@ -6386,7 +6390,7 @@ export {
|
|
|
6386
6390
|
Pi as EcanRangePicker,
|
|
6387
6391
|
hr as EcanScatter,
|
|
6388
6392
|
Ql as EcanScrollText,
|
|
6389
|
-
|
|
6393
|
+
Ri as EcanSelect,
|
|
6390
6394
|
As as EcanTable,
|
|
6391
6395
|
ns as EcanTabs,
|
|
6392
6396
|
Vl as EcanText,
|
|
@@ -6441,7 +6445,7 @@ export {
|
|
|
6441
6445
|
zo as providerConfig,
|
|
6442
6446
|
$o as providerConfigComponentProps,
|
|
6443
6447
|
Xo as rangePickerComponentProps,
|
|
6444
|
-
|
|
6448
|
+
Fi as rangePickerEvents,
|
|
6445
6449
|
Ko as rangePickerProps,
|
|
6446
6450
|
fn as scatterComponentProps,
|
|
6447
6451
|
ur as scatterEvents,
|