@ecan-bi/datav 1.1.70 → 1.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +743 -740
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/date-picker/DatePicker.vue.d.ts +1 -1
- package/types/control/date-picker/index.d.ts +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as N, computed as q, unref as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.71 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as b, watchEffect as uo, defineComponent as Q, shallowRef as vt, toRefs as On, onMounted as Ue, onUnmounted as ft, h as dt, nextTick as mt, createVNode as G, resolveComponent as H, openBlock as D, createElementBlock as $, createBlock as Re, renderSlot as gt, withCtx as Y, ref as M, normalizeStyle as U, createCommentVNode as ve, provide as ze, onBeforeUnmount as Tt, toDisplayString as be, Fragment as Me, renderList as De, createElementVNode as ee, normalizeClass as Lt, pushScopeId as fo, popScopeId as mo, createSlots as Rn, resolveDynamicComponent as Fn, mergeProps as zn, withModifiers as go, reactive as $n, createTextVNode as Ot, withDirectives as Nn, vShow as Pn } from "vue";
|
|
3
3
|
import { throttle as Bn, init as Un, use as qe, registerMap as Gn } from "echarts/core";
|
|
4
4
|
import { addListener as qn, removeListener as jn } from "resize-detector";
|
|
5
5
|
import { Spin as Wn, Skeleton as Vn, message as Be, Progress as Hn, Input as ho, DatePicker as Zn, Select as Jn, RangePicker as Yn, Button as yo, CheckboxGroup as bo, Modal as Ae, Table as Qn, TableSummary as Kn, TableSummaryRow as Xn, TableSummaryCell as ea } from "ant-design-vue";
|
|
@@ -59,8 +59,8 @@ function ua(e, o) {
|
|
|
59
59
|
}
|
|
60
60
|
function fa(e, o, t) {
|
|
61
61
|
let n = null;
|
|
62
|
-
ne([t, e, o], ([a, l,
|
|
63
|
-
a && l &&
|
|
62
|
+
ne([t, e, o], ([a, l, i], r, s) => {
|
|
63
|
+
a && l && i && (n = Bn(() => {
|
|
64
64
|
l.resize();
|
|
65
65
|
}, 100), qn(a, n)), s(() => {
|
|
66
66
|
n && a && jn(a, n);
|
|
@@ -72,7 +72,7 @@ const ma = {
|
|
|
72
72
|
}, ga = "ecLoadingOptions";
|
|
73
73
|
function ha(e, o, t) {
|
|
74
74
|
const n = N(ga, {}), a = q(() => ({
|
|
75
|
-
...
|
|
75
|
+
...b(n),
|
|
76
76
|
...t == null ? void 0 : t.value
|
|
77
77
|
}));
|
|
78
78
|
uo(() => {
|
|
@@ -108,26 +108,26 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
108
108
|
inheritAttrs: !1,
|
|
109
109
|
// @ts-expect-error listeners for Vue 2 compatibility
|
|
110
110
|
setup(e, { attrs: o, listeners: t }) {
|
|
111
|
-
const n = vt(), a = vt(), l = vt(),
|
|
111
|
+
const n = vt(), a = vt(), l = vt(), i = N(Sa, null), r = N(
|
|
112
112
|
wa,
|
|
113
113
|
null
|
|
114
114
|
), s = N(
|
|
115
115
|
xa,
|
|
116
116
|
null
|
|
117
|
-
), { autoresize: f, manualUpdate:
|
|
117
|
+
), { autoresize: f, manualUpdate: C, loading: v, loadingOptions: x } = On(e), d = q(
|
|
118
118
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
119
|
-
), u = q(() => e.theme ||
|
|
120
|
-
() => e.initOptions ||
|
|
119
|
+
), u = q(() => e.theme || b(i) || {}), y = q(
|
|
120
|
+
() => e.initOptions || b(r) || {}
|
|
121
121
|
), g = q(
|
|
122
|
-
() => e.updateOptions ||
|
|
123
|
-
),
|
|
124
|
-
function p(
|
|
122
|
+
() => e.updateOptions || b(s) || {}
|
|
123
|
+
), h = q(() => pa(o));
|
|
124
|
+
function p(w) {
|
|
125
125
|
if (a.value || !n.value)
|
|
126
126
|
return;
|
|
127
127
|
const c = a.value = Un(
|
|
128
128
|
n.value,
|
|
129
129
|
u.value,
|
|
130
|
-
|
|
130
|
+
y.value
|
|
131
131
|
);
|
|
132
132
|
e.group && (c.group = e.group);
|
|
133
133
|
let m = t;
|
|
@@ -149,23 +149,23 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
function R() {
|
|
152
|
-
c.setOption(
|
|
152
|
+
c.setOption(w || d.value, g.value);
|
|
153
153
|
}
|
|
154
154
|
f.value ? mt(() => {
|
|
155
155
|
k(), R();
|
|
156
156
|
}) : R();
|
|
157
157
|
}
|
|
158
|
-
function _(
|
|
159
|
-
e.manualUpdate && (l.value =
|
|
158
|
+
function _(w, c) {
|
|
159
|
+
e.manualUpdate && (l.value = w), a.value ? a.value.setOption(w, c || {}) : p(w);
|
|
160
160
|
}
|
|
161
161
|
function I() {
|
|
162
162
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
163
163
|
}
|
|
164
|
-
let
|
|
164
|
+
let S = null;
|
|
165
165
|
ne(
|
|
166
|
-
|
|
167
|
-
(
|
|
168
|
-
typeof
|
|
166
|
+
C,
|
|
167
|
+
(w) => {
|
|
168
|
+
typeof S == "function" && (S(), S = null), w || (S = ne(
|
|
169
169
|
() => e.option,
|
|
170
170
|
(c) => {
|
|
171
171
|
c && (a.value ? a.value.setOption(c, g.value) : p());
|
|
@@ -177,7 +177,7 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
177
177
|
immediate: !0
|
|
178
178
|
}
|
|
179
179
|
), ne(
|
|
180
|
-
[u,
|
|
180
|
+
[u, y],
|
|
181
181
|
() => {
|
|
182
182
|
I(), p();
|
|
183
183
|
},
|
|
@@ -188,13 +188,13 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
188
188
|
e.group && a.value && (a.value.group = e.group);
|
|
189
189
|
});
|
|
190
190
|
const A = ua(a, p);
|
|
191
|
-
return ha(a,
|
|
191
|
+
return ha(a, v, x), fa(a, f, n), Ue(() => {
|
|
192
192
|
e.option && p();
|
|
193
193
|
}), ft(I), {
|
|
194
194
|
chart: a,
|
|
195
195
|
root: n,
|
|
196
196
|
setOption: _,
|
|
197
|
-
nonEventAttrs:
|
|
197
|
+
nonEventAttrs: h,
|
|
198
198
|
...A
|
|
199
199
|
};
|
|
200
200
|
},
|
|
@@ -238,36 +238,36 @@ function La(e, o, t) {
|
|
|
238
238
|
if (e = xe(e, 360), o = xe(o, 100), t = xe(t, 100), o === 0)
|
|
239
239
|
a = t, l = t, n = t;
|
|
240
240
|
else {
|
|
241
|
-
var
|
|
242
|
-
n = St(
|
|
241
|
+
var i = t < 0.5 ? t * (1 + o) : t + o - t * o, r = 2 * t - i;
|
|
242
|
+
n = St(r, i, e + 1 / 3), a = St(r, i, e), l = St(r, i, e - 1 / 3);
|
|
243
243
|
}
|
|
244
244
|
return { r: n * 255, g: a * 255, b: l * 255 };
|
|
245
245
|
}
|
|
246
246
|
function Ia(e, o, t) {
|
|
247
247
|
e = xe(e, 255), o = xe(o, 255), t = xe(t, 255);
|
|
248
|
-
var n = Math.max(e, o, t), a = Math.min(e, o, t), l = 0,
|
|
248
|
+
var n = Math.max(e, o, t), a = Math.min(e, o, t), l = 0, i = n, r = n - a, s = n === 0 ? 0 : r / n;
|
|
249
249
|
if (n === a)
|
|
250
250
|
l = 0;
|
|
251
251
|
else {
|
|
252
252
|
switch (n) {
|
|
253
253
|
case e:
|
|
254
|
-
l = (o - t) /
|
|
254
|
+
l = (o - t) / r + (o < t ? 6 : 0);
|
|
255
255
|
break;
|
|
256
256
|
case o:
|
|
257
|
-
l = (t - e) /
|
|
257
|
+
l = (t - e) / r + 2;
|
|
258
258
|
break;
|
|
259
259
|
case t:
|
|
260
|
-
l = (e - o) /
|
|
260
|
+
l = (e - o) / r + 4;
|
|
261
261
|
break;
|
|
262
262
|
}
|
|
263
263
|
l /= 6;
|
|
264
264
|
}
|
|
265
|
-
return { h: l, s, v:
|
|
265
|
+
return { h: l, s, v: i };
|
|
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),
|
|
270
|
-
return { r: f * 255, g:
|
|
269
|
+
var n = Math.floor(e), a = e - n, l = t * (1 - o), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), s = n % 6, f = [t, i, l, l, r, t][s], C = [r, t, t, i, l, l][s], v = [l, l, r, t, t, i][s];
|
|
270
|
+
return { r: f * 255, g: C * 255, b: v * 255 };
|
|
271
271
|
}
|
|
272
272
|
function Ea(e, o, t, n) {
|
|
273
273
|
var a = [
|
|
@@ -434,10 +434,10 @@ var qt = {
|
|
|
434
434
|
yellowgreen: "#9acd32"
|
|
435
435
|
};
|
|
436
436
|
function He(e) {
|
|
437
|
-
var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, l = null,
|
|
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),
|
|
439
|
-
ok:
|
|
440
|
-
format: e.format ||
|
|
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 = 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
|
+
ok: i,
|
|
440
|
+
format: e.format || r,
|
|
441
441
|
r: Math.min(255, Math.max(o.r, 0)),
|
|
442
442
|
g: Math.min(255, Math.max(o.g, 0)),
|
|
443
443
|
b: Math.min(255, Math.max(o.b, 0)),
|
|
@@ -560,24 +560,24 @@ function Zt(e, o, t) {
|
|
|
560
560
|
}
|
|
561
561
|
function It(e) {
|
|
562
562
|
for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = He(e), a = Ao; a > 0; a -= 1) {
|
|
563
|
-
var l = Wt(n),
|
|
563
|
+
var l = Wt(n), i = st(He({
|
|
564
564
|
h: Vt(l, a, !0),
|
|
565
565
|
s: Ht(l, a, !0),
|
|
566
566
|
v: Zt(l, a, !0)
|
|
567
567
|
}));
|
|
568
|
-
t.push(
|
|
568
|
+
t.push(i);
|
|
569
569
|
}
|
|
570
570
|
t.push(st(n));
|
|
571
|
-
for (var
|
|
571
|
+
for (var r = 1; r <= _o; r += 1) {
|
|
572
572
|
var s = Wt(n), f = st(He({
|
|
573
|
-
h: Vt(s,
|
|
574
|
-
s: Ht(s,
|
|
575
|
-
v: Zt(s,
|
|
573
|
+
h: Vt(s, r),
|
|
574
|
+
s: Ht(s, r),
|
|
575
|
+
v: Zt(s, r)
|
|
576
576
|
}));
|
|
577
577
|
t.push(f);
|
|
578
578
|
}
|
|
579
|
-
return o.theme === "dark" ? Na.map(function(
|
|
580
|
-
var
|
|
579
|
+
return o.theme === "dark" ? Na.map(function(C) {
|
|
580
|
+
var v = C.index, x = C.opacity, d = st(Pa(He(o.backgroundColor || "#141414"), He(t[v]), x * 100));
|
|
581
581
|
return d;
|
|
582
582
|
}) : t;
|
|
583
583
|
}
|
|
@@ -763,16 +763,16 @@ function Xa() {
|
|
|
763
763
|
return ct({}, Ye);
|
|
764
764
|
}
|
|
765
765
|
var We = function(o, t) {
|
|
766
|
-
var n = ct({}, o, t.attrs), a = n.icon, l = n.primaryColor,
|
|
766
|
+
var n = ct({}, o, t.attrs), a = n.icon, l = n.primaryColor, i = n.secondaryColor, r = Ja(n, Za), s = Ye;
|
|
767
767
|
if (l && (s = {
|
|
768
768
|
primaryColor: l,
|
|
769
|
-
secondaryColor:
|
|
769
|
+
secondaryColor: i || To(l)
|
|
770
770
|
}), Ha(), Wa(Qt(a), "icon should be icon definiton, but got ".concat(a)), !Qt(a))
|
|
771
771
|
return null;
|
|
772
772
|
var f = a;
|
|
773
773
|
return f && typeof f.icon == "function" && (f = ct({}, f, {
|
|
774
774
|
icon: f.icon(s.primaryColor, s.secondaryColor)
|
|
775
|
-
})), Mt(f.icon, "svg-".concat(f.name), ct({},
|
|
775
|
+
})), Mt(f.icon, "svg-".concat(f.name), ct({}, r, {
|
|
776
776
|
"data-icon": f.name,
|
|
777
777
|
width: "1em",
|
|
778
778
|
height: "1em",
|
|
@@ -818,18 +818,18 @@ function Xt(e, o) {
|
|
|
818
818
|
function nl(e, o) {
|
|
819
819
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
820
820
|
if (t != null) {
|
|
821
|
-
var n = [], a = !0, l = !1,
|
|
821
|
+
var n = [], a = !0, l = !1, i, r;
|
|
822
822
|
try {
|
|
823
|
-
for (t = t.call(e); !(a = (
|
|
823
|
+
for (t = t.call(e); !(a = (i = t.next()).done) && (n.push(i.value), !(o && n.length === o)); a = !0)
|
|
824
824
|
;
|
|
825
825
|
} catch (s) {
|
|
826
|
-
l = !0,
|
|
826
|
+
l = !0, r = s;
|
|
827
827
|
} finally {
|
|
828
828
|
try {
|
|
829
829
|
!a && t.return != null && t.return();
|
|
830
830
|
} finally {
|
|
831
831
|
if (l)
|
|
832
|
-
throw
|
|
832
|
+
throw r;
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
return n;
|
|
@@ -878,18 +878,18 @@ function eo(e, o) {
|
|
|
878
878
|
function dl(e, o) {
|
|
879
879
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
880
880
|
if (t != null) {
|
|
881
|
-
var n = [], a = !0, l = !1,
|
|
881
|
+
var n = [], a = !0, l = !1, i, r;
|
|
882
882
|
try {
|
|
883
|
-
for (t = t.call(e); !(a = (
|
|
883
|
+
for (t = t.call(e); !(a = (i = t.next()).done) && (n.push(i.value), !(o && n.length === o)); a = !0)
|
|
884
884
|
;
|
|
885
885
|
} catch (s) {
|
|
886
|
-
l = !0,
|
|
886
|
+
l = !0, r = s;
|
|
887
887
|
} finally {
|
|
888
888
|
try {
|
|
889
889
|
!a && t.return != null && t.return();
|
|
890
890
|
} finally {
|
|
891
891
|
if (l)
|
|
892
|
-
throw
|
|
892
|
+
throw r;
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
return n;
|
|
@@ -934,23 +934,23 @@ 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,
|
|
937
|
+
var n, a = to({}, o, t.attrs), l = a.class, i = a.icon, r = a.spin, s = a.rotate, f = a.tabindex, C = a.twoToneColor, v = a.onClick, x = fl(a, il), d = (n = {
|
|
938
938
|
anticon: !0
|
|
939
|
-
}, Et(n, "anticon-".concat(
|
|
940
|
-
|
|
939
|
+
}, Et(n, "anticon-".concat(i.name), Boolean(i.name)), Et(n, l, l), n), u = r === "" || r || i.name === "loading" ? "anticon-spin" : "", y = f;
|
|
940
|
+
y === void 0 && v && (y = -1, x.tabindex = y);
|
|
941
941
|
var g = s ? {
|
|
942
942
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
943
943
|
transform: "rotate(".concat(s, "deg)")
|
|
944
|
-
} : void 0,
|
|
944
|
+
} : void 0, h = Lo(C), p = rl(h, 2), _ = p[0], I = p[1];
|
|
945
945
|
return G("span", to({
|
|
946
946
|
role: "img",
|
|
947
|
-
"aria-label":
|
|
948
|
-
},
|
|
949
|
-
onClick:
|
|
947
|
+
"aria-label": i.name
|
|
948
|
+
}, x, {
|
|
949
|
+
onClick: v,
|
|
950
950
|
class: d
|
|
951
951
|
}), [G(zt, {
|
|
952
952
|
class: u,
|
|
953
|
-
icon:
|
|
953
|
+
icon: i,
|
|
954
954
|
primaryColor: _,
|
|
955
955
|
secondaryColor: I,
|
|
956
956
|
style: g
|
|
@@ -1020,9 +1020,9 @@ const K = (e, o) => {
|
|
|
1020
1020
|
return t;
|
|
1021
1021
|
}, Cl = { class: "spin-wrapper" };
|
|
1022
1022
|
function Sl(e, o, t, n, a, l) {
|
|
1023
|
-
const
|
|
1023
|
+
const i = H("a-spin");
|
|
1024
1024
|
return D(), $("div", Cl, [
|
|
1025
|
-
e.spinning ? (D(), Re(
|
|
1025
|
+
e.spinning ? (D(), Re(i, {
|
|
1026
1026
|
key: 0,
|
|
1027
1027
|
class: "spin",
|
|
1028
1028
|
spinning: e.spinning,
|
|
@@ -1044,8 +1044,8 @@ const tt = /* @__PURE__ */ K(pl, [["render", Sl]]), wl = Q({
|
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
1046
|
function xl(e, o, t, n, a, l) {
|
|
1047
|
-
const
|
|
1048
|
-
return D(), Re(
|
|
1047
|
+
const i = H("a-skeleton");
|
|
1048
|
+
return D(), Re(i, {
|
|
1049
1049
|
active: "",
|
|
1050
1050
|
loading: e.loading
|
|
1051
1051
|
}, {
|
|
@@ -1162,19 +1162,19 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1162
1162
|
const o = e.events, t = e.id, n = N(Nt, {
|
|
1163
1163
|
// @ts-ignore
|
|
1164
1164
|
// eslint-disable-next-line no-void
|
|
1165
|
-
emitEvent: (l,
|
|
1165
|
+
emitEvent: (l, i) => {
|
|
1166
1166
|
}
|
|
1167
1167
|
}), { touchEventId: a } = N(fe, {
|
|
1168
1168
|
touchEventId: M("")
|
|
1169
1169
|
});
|
|
1170
|
-
return (l,
|
|
1170
|
+
return (l, i = () => {
|
|
1171
1171
|
}) => function() {
|
|
1172
|
-
|
|
1173
|
-
const { emitEvent:
|
|
1172
|
+
i.call(this, ...arguments);
|
|
1173
|
+
const { emitEvent: r } = n;
|
|
1174
1174
|
o.forEach((s) => {
|
|
1175
1175
|
if (l === s.on)
|
|
1176
1176
|
try {
|
|
1177
|
-
a.value = t,
|
|
1177
|
+
a.value = t, r(s.target, s.emit);
|
|
1178
1178
|
} catch (f) {
|
|
1179
1179
|
console.error(f);
|
|
1180
1180
|
}
|
|
@@ -1183,20 +1183,20 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1183
1183
|
}, Qe = (e, o) => {
|
|
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
|
-
const l = /* @__PURE__ */ new Set(),
|
|
1187
|
-
for (let
|
|
1188
|
-
const
|
|
1189
|
-
if (l.add(
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1186
|
+
const l = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), r = e.length;
|
|
1187
|
+
for (let C = 0; C < r; C++) {
|
|
1188
|
+
const v = e[C], x = v[t] || "", d = v[n] || "", u = v[a] || "";
|
|
1189
|
+
if (l.add(x), i.has(u)) {
|
|
1190
|
+
const y = i.get(u);
|
|
1191
|
+
y.push({ name: x, value: d, ...v }), i.set(u, y);
|
|
1192
1192
|
} else
|
|
1193
|
-
|
|
1193
|
+
i.set(u, [{ name: x, value: d, ...v }]);
|
|
1194
1194
|
}
|
|
1195
1195
|
const s = Array.from(l), f = [];
|
|
1196
|
-
for (const [
|
|
1196
|
+
for (const [C, v] of i)
|
|
1197
1197
|
f.push({
|
|
1198
|
-
name:
|
|
1199
|
-
data:
|
|
1198
|
+
name: C,
|
|
1199
|
+
data: v
|
|
1200
1200
|
});
|
|
1201
1201
|
return {
|
|
1202
1202
|
dimensions: s,
|
|
@@ -1252,30 +1252,30 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1252
1252
|
};
|
|
1253
1253
|
let n = "";
|
|
1254
1254
|
const a = [];
|
|
1255
|
-
for (const
|
|
1256
|
-
n += `${
|
|
1255
|
+
for (const r in t)
|
|
1256
|
+
n += `${r},`, a.push(t[r]);
|
|
1257
1257
|
n = n.replace(/,$/, "");
|
|
1258
1258
|
const l = `function (${n}){return ${e}}`;
|
|
1259
|
-
let
|
|
1259
|
+
let i;
|
|
1260
1260
|
try {
|
|
1261
|
-
|
|
1261
|
+
i = Function(`"use strict";return (${l})`)()(...a);
|
|
1262
1262
|
} catch {
|
|
1263
1263
|
return e;
|
|
1264
1264
|
}
|
|
1265
|
-
return
|
|
1265
|
+
return i;
|
|
1266
1266
|
}, de = (e = "", { textData: o, codeData: t } = {}, { useNewline: n = !1, useSpace: a = !1 } = {}) => {
|
|
1267
|
-
const
|
|
1268
|
-
if (
|
|
1267
|
+
const i = { ...window.config || {}, ...o }, r = e.match(/\{(.+?)\}/g);
|
|
1268
|
+
if (r == null || r.length === 0)
|
|
1269
1269
|
return e;
|
|
1270
|
-
for (let s = 0; s <
|
|
1271
|
-
const f =
|
|
1272
|
-
let
|
|
1273
|
-
const
|
|
1274
|
-
for (let d = 0; d <
|
|
1275
|
-
const u =
|
|
1276
|
-
|
|
1270
|
+
for (let s = 0; s < r.length; s++) {
|
|
1271
|
+
const f = r[s];
|
|
1272
|
+
let C = f.slice(1, -1).trim();
|
|
1273
|
+
const v = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, x = C.match(v);
|
|
1274
|
+
for (let d = 0; d < x.length; d++) {
|
|
1275
|
+
const u = x[d], y = i[u];
|
|
1276
|
+
y != null && (C = C.replace(u, y));
|
|
1277
1277
|
}
|
|
1278
|
-
/\(.*\)/g.test(
|
|
1278
|
+
/\(.*\)/g.test(C) && (C = yt(C, t)), e = e.replace(f, C);
|
|
1279
1279
|
}
|
|
1280
1280
|
return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
1281
1281
|
}, _e = (e, o = () => {
|
|
@@ -1285,98 +1285,98 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1285
1285
|
requestMethod: n,
|
|
1286
1286
|
requestHeaders: a,
|
|
1287
1287
|
requestParams: l,
|
|
1288
|
-
requestInterval:
|
|
1289
|
-
isOpenRequestTimer:
|
|
1290
|
-
} = e, { contextRequestUrl: s, pageMode: f, touchEventId:
|
|
1288
|
+
requestInterval: i,
|
|
1289
|
+
isOpenRequestTimer: r
|
|
1290
|
+
} = e, { contextRequestUrl: s, pageMode: f, touchEventId: C } = N(fe, {
|
|
1291
1291
|
contextRequestUrl: "",
|
|
1292
1292
|
pageMode: "normal",
|
|
1293
1293
|
touchEventId: ""
|
|
1294
|
-
}), { getGlobalModel:
|
|
1294
|
+
}), { getGlobalModel: v } = N(ye, {
|
|
1295
1295
|
// @ts-ignore
|
|
1296
1296
|
// eslint-disable-next-line no-void
|
|
1297
|
-
getGlobalModel: (
|
|
1297
|
+
getGlobalModel: (y) => {
|
|
1298
1298
|
}
|
|
1299
|
-
}),
|
|
1300
|
-
if (!
|
|
1299
|
+
}), x = de(t), d = async (y = {}) => {
|
|
1300
|
+
if (!x || !n || !a || b(f) === "design")
|
|
1301
1301
|
return;
|
|
1302
1302
|
let g = {};
|
|
1303
|
-
l.forEach((
|
|
1304
|
-
const { key: A, value:
|
|
1305
|
-
if (typeof
|
|
1303
|
+
l.forEach((S) => {
|
|
1304
|
+
const { key: A, value: w } = S;
|
|
1305
|
+
if (typeof w == "object" && w != null && w.id) {
|
|
1306
1306
|
let c = {};
|
|
1307
|
-
const { id: m, prop: k, propKey: R, operate: E } =
|
|
1308
|
-
m === "THIS" ? c =
|
|
1309
|
-
const T =
|
|
1307
|
+
const { id: m, prop: k, propKey: R, operate: E } = w;
|
|
1308
|
+
m === "THIS" ? c = v(b(C)) || {} : c = v(m) || {};
|
|
1309
|
+
const T = b(c[k]);
|
|
1310
1310
|
let j = null;
|
|
1311
1311
|
if (["date", "range"].some((F) => Dt(c == null ? void 0 : c.type, F))) {
|
|
1312
1312
|
const { value: F, type: B, mode: z } = E || {};
|
|
1313
1313
|
if (F && B && z)
|
|
1314
1314
|
switch (B) {
|
|
1315
1315
|
case "add":
|
|
1316
|
-
j =
|
|
1316
|
+
j = b(T).add(F, z);
|
|
1317
1317
|
break;
|
|
1318
1318
|
case "minus":
|
|
1319
|
-
j =
|
|
1319
|
+
j = b(T).subtract(F, z);
|
|
1320
1320
|
break;
|
|
1321
1321
|
}
|
|
1322
|
-
j == null && (j =
|
|
1322
|
+
j == null && (j = b(T)), j = (j == null ? void 0 : j.format((R == null ? void 0 : R.trim()) || c.format)) || "";
|
|
1323
1323
|
} else
|
|
1324
1324
|
Object.prototype.toString.call(T) === "[object Object]" ? j = T[R || "value"] : j = T;
|
|
1325
1325
|
g[A] = j;
|
|
1326
1326
|
} else
|
|
1327
|
-
typeof
|
|
1328
|
-
}), g = { ...window.config.requestParams, ...
|
|
1329
|
-
let
|
|
1327
|
+
typeof w == "string" && (g[A] = de(w));
|
|
1328
|
+
}), g = { ...window.config.requestParams, ...y, ...g };
|
|
1329
|
+
let h = "";
|
|
1330
1330
|
const p = Object.keys(g), _ = p.length - 1, I = p.length;
|
|
1331
|
-
p.forEach((
|
|
1332
|
-
A === 0 ? I !== 1 ?
|
|
1331
|
+
p.forEach((S, A) => {
|
|
1332
|
+
A === 0 ? I !== 1 ? h += `?${S}=${g[S]}&` : h += `?${S}=${g[S]}` : A === _ ? h += `${S}=${g[S]}` : h += `${S}=${g[S]}&`;
|
|
1333
1333
|
});
|
|
1334
1334
|
try {
|
|
1335
|
-
const
|
|
1336
|
-
baseURL:
|
|
1337
|
-
url:
|
|
1335
|
+
const S = ["get", "head"].includes(n), A = await Fe({
|
|
1336
|
+
baseURL: b(s) || "",
|
|
1337
|
+
url: S ? x + h : x,
|
|
1338
1338
|
method: n,
|
|
1339
1339
|
headers: a,
|
|
1340
|
-
data:
|
|
1340
|
+
data: S ? {} : g
|
|
1341
1341
|
});
|
|
1342
1342
|
return o(A), A;
|
|
1343
|
-
} catch (
|
|
1344
|
-
console.error(
|
|
1343
|
+
} catch (S) {
|
|
1344
|
+
console.error(S);
|
|
1345
1345
|
}
|
|
1346
|
-
}, u =
|
|
1346
|
+
}, u = r && setInterval(d, i * 1e3);
|
|
1347
1347
|
return ft(() => {
|
|
1348
1348
|
clearInterval(u);
|
|
1349
1349
|
}), d;
|
|
1350
1350
|
}, Ge = (e = [], o) => {
|
|
1351
1351
|
let { name: t = "name", types: n = [] } = o || {};
|
|
1352
1352
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1353
|
-
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(),
|
|
1354
|
-
if (
|
|
1355
|
-
const
|
|
1356
|
-
for (let
|
|
1357
|
-
const d = n[
|
|
1358
|
-
a.add(u),
|
|
1353
|
+
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), i = e.length, r = n.length;
|
|
1354
|
+
if (i === 1) {
|
|
1355
|
+
const C = [];
|
|
1356
|
+
for (let x = 0; x < r; x++) {
|
|
1357
|
+
const d = n[x], { label: u, value: y } = d, g = { ...e[0], value: e[0][y] };
|
|
1358
|
+
a.add(u), C.push(g);
|
|
1359
1359
|
}
|
|
1360
|
-
const
|
|
1361
|
-
l.set(
|
|
1360
|
+
const v = e[0][t] || "";
|
|
1361
|
+
l.set(v, C);
|
|
1362
1362
|
} else
|
|
1363
|
-
for (let
|
|
1364
|
-
const
|
|
1365
|
-
a.add(
|
|
1366
|
-
for (let d = 0; d <
|
|
1367
|
-
const u = n[d], { label:
|
|
1368
|
-
if (l.has(
|
|
1369
|
-
const p = l.get(
|
|
1370
|
-
p.push(
|
|
1363
|
+
for (let C = 0; C < i; C++) {
|
|
1364
|
+
const v = e[C], x = v[t];
|
|
1365
|
+
a.add(x);
|
|
1366
|
+
for (let d = 0; d < r; d++) {
|
|
1367
|
+
const u = n[d], { label: y, value: g } = u, h = { ...v, value: v[g] };
|
|
1368
|
+
if (l.has(y)) {
|
|
1369
|
+
const p = l.get(y);
|
|
1370
|
+
p.push(h), l.set(y, p);
|
|
1371
1371
|
} else
|
|
1372
|
-
l.set(
|
|
1372
|
+
l.set(y, [h]);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
const s = Array.from(a), f = [];
|
|
1376
|
-
for (const [
|
|
1376
|
+
for (const [C, v] of l)
|
|
1377
1377
|
f.push({
|
|
1378
|
-
name:
|
|
1379
|
-
data:
|
|
1378
|
+
name: C,
|
|
1379
|
+
data: v
|
|
1380
1380
|
});
|
|
1381
1381
|
return {
|
|
1382
1382
|
dimensions: s,
|
|
@@ -1400,16 +1400,16 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1400
1400
|
return o;
|
|
1401
1401
|
const n = t.length;
|
|
1402
1402
|
for (let l = 0; l < n; l++) {
|
|
1403
|
-
const
|
|
1404
|
-
if (
|
|
1403
|
+
const i = t[l];
|
|
1404
|
+
if (i == null || i === "")
|
|
1405
1405
|
break;
|
|
1406
|
-
let
|
|
1407
|
-
|
|
1406
|
+
let r = (a = i.slice(1, -1)) == null ? void 0 : a.trim();
|
|
1407
|
+
r = r == null ? void 0 : r.replace(/value/g, o);
|
|
1408
1408
|
try {
|
|
1409
|
-
let s =
|
|
1410
|
-
(/\(.*\)/g.test(
|
|
1409
|
+
let s = r;
|
|
1410
|
+
(/\(.*\)/g.test(r) || /[+/\\*]/g.test(r)) && (s = yt(r)), e = e.replace(i, s);
|
|
1411
1411
|
} catch {
|
|
1412
|
-
e = e.replace(
|
|
1412
|
+
e = e.replace(i, r);
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
return e;
|
|
@@ -1421,69 +1421,69 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1421
1421
|
}
|
|
1422
1422
|
});
|
|
1423
1423
|
e.dataType === "indicator" && o();
|
|
1424
|
-
const t = (
|
|
1425
|
-
const { label:
|
|
1424
|
+
const t = (i = {}) => {
|
|
1425
|
+
const { label: r, name: s, location: f, show: C, indexCode: v } = i;
|
|
1426
1426
|
return {
|
|
1427
|
-
label:
|
|
1427
|
+
label: r,
|
|
1428
1428
|
columnName: s,
|
|
1429
1429
|
location: f,
|
|
1430
|
-
show:
|
|
1430
|
+
show: C,
|
|
1431
1431
|
calcType: "COLUMN",
|
|
1432
|
-
hrpIndexCode:
|
|
1432
|
+
hrpIndexCode: v
|
|
1433
1433
|
};
|
|
1434
|
-
}, n = (
|
|
1434
|
+
}, n = (i = {}) => {
|
|
1435
1435
|
const {
|
|
1436
|
-
label:
|
|
1436
|
+
label: r,
|
|
1437
1437
|
name: s,
|
|
1438
1438
|
location: f,
|
|
1439
|
-
show:
|
|
1440
|
-
indexCode:
|
|
1441
|
-
calcType:
|
|
1439
|
+
show: C,
|
|
1440
|
+
indexCode: v,
|
|
1441
|
+
calcType: x = "COLUMN",
|
|
1442
1442
|
builtInFormula: d,
|
|
1443
1443
|
builtInValueSource: u,
|
|
1444
|
-
builtInCalcWay:
|
|
1444
|
+
builtInCalcWay: y,
|
|
1445
1445
|
formula: g,
|
|
1446
|
-
conditions:
|
|
1447
|
-
} =
|
|
1446
|
+
conditions: h
|
|
1447
|
+
} = i;
|
|
1448
1448
|
return {
|
|
1449
|
-
label:
|
|
1449
|
+
label: r,
|
|
1450
1450
|
columnName: s,
|
|
1451
1451
|
location: f,
|
|
1452
|
-
show:
|
|
1453
|
-
calcType:
|
|
1454
|
-
hrpIndexCode:
|
|
1452
|
+
show: C,
|
|
1453
|
+
calcType: x,
|
|
1454
|
+
hrpIndexCode: v,
|
|
1455
1455
|
aggregate: "SUM",
|
|
1456
1456
|
builtInFormula: d,
|
|
1457
1457
|
builtInValueSource: u,
|
|
1458
|
-
builtInCalcWay:
|
|
1458
|
+
builtInCalcWay: y,
|
|
1459
1459
|
formula: g,
|
|
1460
|
-
conditions:
|
|
1460
|
+
conditions: h
|
|
1461
1461
|
};
|
|
1462
1462
|
}, { getGlobalModel: a } = N(ye, {
|
|
1463
1463
|
// @ts-ignore
|
|
1464
1464
|
// eslint-disable-next-line no-void
|
|
1465
|
-
getGlobalModel: (
|
|
1465
|
+
getGlobalModel: (i) => {
|
|
1466
1466
|
}
|
|
1467
|
-
}), l = (
|
|
1467
|
+
}), l = (i = []) => {
|
|
1468
1468
|
var f;
|
|
1469
|
-
const
|
|
1470
|
-
for (let
|
|
1471
|
-
const
|
|
1472
|
-
id:
|
|
1469
|
+
const r = i.length, s = [];
|
|
1470
|
+
for (let C = 0; C < r; C++) {
|
|
1471
|
+
const v = i[C], {
|
|
1472
|
+
id: x,
|
|
1473
1473
|
conditionLabel: d,
|
|
1474
1474
|
conditionKey: u,
|
|
1475
|
-
conditionValueType:
|
|
1476
|
-
} =
|
|
1475
|
+
conditionValueType: y
|
|
1476
|
+
} = v, g = {
|
|
1477
1477
|
rule: "NONE",
|
|
1478
1478
|
label: d,
|
|
1479
1479
|
fieldName: u,
|
|
1480
1480
|
fieldValue: "",
|
|
1481
1481
|
// 在关联控件中取
|
|
1482
|
-
valueType:
|
|
1483
|
-
},
|
|
1484
|
-
if (Dt(
|
|
1485
|
-
const { value: p, format: _ } =
|
|
1486
|
-
g.fieldValue = (f =
|
|
1482
|
+
valueType: y
|
|
1483
|
+
}, h = a(x) || {};
|
|
1484
|
+
if (Dt(h.type, "date")) {
|
|
1485
|
+
const { value: p, format: _ } = h || {};
|
|
1486
|
+
g.fieldValue = (f = b(p)) == null ? void 0 : f.format(_), g.dateFormat = _;
|
|
1487
1487
|
}
|
|
1488
1488
|
s.push(g);
|
|
1489
1489
|
}
|
|
@@ -1491,38 +1491,38 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1491
1491
|
};
|
|
1492
1492
|
return async () => {
|
|
1493
1493
|
var E;
|
|
1494
|
-
const { graphicConfig:
|
|
1494
|
+
const { graphicConfig: i, type: r } = e;
|
|
1495
1495
|
let {
|
|
1496
1496
|
source: s,
|
|
1497
1497
|
dataViewId: f,
|
|
1498
|
-
plugin:
|
|
1498
|
+
plugin: C = "1",
|
|
1499
1499
|
// 插件类型
|
|
1500
|
-
layer:
|
|
1500
|
+
layer: v,
|
|
1501
1501
|
// 后台图表类型,值分0,1
|
|
1502
|
-
chartType:
|
|
1502
|
+
chartType: x,
|
|
1503
1503
|
// 前端图表类型,实测没用
|
|
1504
1504
|
classificationList: d = [],
|
|
1505
1505
|
seriesList: u = [],
|
|
1506
|
-
leftAxisList:
|
|
1506
|
+
leftAxisList: y = [],
|
|
1507
1507
|
rightAxisList: g = [],
|
|
1508
|
-
queryColumnList:
|
|
1508
|
+
queryColumnList: h = [],
|
|
1509
1509
|
indicators: p = [],
|
|
1510
1510
|
controlList: _ = [],
|
|
1511
1511
|
dataSourceId: I,
|
|
1512
1512
|
// 所属数据源ID
|
|
1513
|
-
idxLibMode:
|
|
1513
|
+
idxLibMode: S,
|
|
1514
1514
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1515
1515
|
preview: A = !1
|
|
1516
1516
|
// 预览开关
|
|
1517
|
-
} =
|
|
1518
|
-
|
|
1519
|
-
let
|
|
1517
|
+
} = i || {};
|
|
1518
|
+
v == null && (Dt(r, "table") ? v = "1" : v = "2");
|
|
1519
|
+
let w;
|
|
1520
1520
|
if (Array.isArray(d) && d.length > 0) {
|
|
1521
1521
|
const T = d.length;
|
|
1522
1522
|
for (let j = 0; j < T; j++) {
|
|
1523
1523
|
const J = d[j] || {}, { label: F = "", name: B = "", show: z = !1, sort: W, customGroup: X, conditions: ie } = J;
|
|
1524
1524
|
if (z || T === 1) {
|
|
1525
|
-
|
|
1525
|
+
w = {
|
|
1526
1526
|
label: F,
|
|
1527
1527
|
columnName: B,
|
|
1528
1528
|
show: z,
|
|
@@ -1553,32 +1553,32 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
1555
|
const m = [];
|
|
1556
|
-
|
|
1556
|
+
h == null || h.forEach((T) => {
|
|
1557
1557
|
m.push(t(T));
|
|
1558
1558
|
});
|
|
1559
1559
|
const k = [];
|
|
1560
|
-
if (
|
|
1560
|
+
if (y == null || y.forEach((T) => {
|
|
1561
1561
|
T.location = "LEFT", k.push(n(T));
|
|
1562
1562
|
}), g == null || g.forEach((T) => {
|
|
1563
1563
|
T.location = "RIGHT", k.push(n(T));
|
|
1564
1564
|
}), p == null || p.forEach((T) => {
|
|
1565
1565
|
T.location = "LEFT", k.push(n(T));
|
|
1566
|
-
}),
|
|
1566
|
+
}), v === "1" && m.length === 0)
|
|
1567
1567
|
return;
|
|
1568
|
-
if (
|
|
1568
|
+
if (v === "2" && k.length === 0)
|
|
1569
1569
|
return;
|
|
1570
1570
|
let R;
|
|
1571
|
-
(
|
|
1571
|
+
(i == null ? void 0 : i.pageMode) === "design" ? R = i.sqlConditions ?? [] : R = l(_);
|
|
1572
1572
|
try {
|
|
1573
1573
|
return await Fe.post(
|
|
1574
1574
|
`${Ro}/diagram`,
|
|
1575
1575
|
{
|
|
1576
1576
|
source: s,
|
|
1577
1577
|
dataViewId: f,
|
|
1578
|
-
plugin:
|
|
1579
|
-
layer:
|
|
1580
|
-
chartType:
|
|
1581
|
-
classification:
|
|
1578
|
+
plugin: C,
|
|
1579
|
+
layer: v,
|
|
1580
|
+
chartType: x,
|
|
1581
|
+
classification: w,
|
|
1582
1582
|
series: c,
|
|
1583
1583
|
indicatorList: k,
|
|
1584
1584
|
queryColumns: m,
|
|
@@ -1586,7 +1586,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1586
1586
|
sqlConditions: R,
|
|
1587
1587
|
// fixedDimSql: '',
|
|
1588
1588
|
dataSourceId: I,
|
|
1589
|
-
idxLibMode:
|
|
1589
|
+
idxLibMode: S,
|
|
1590
1590
|
preview: A
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
@@ -1609,8 +1609,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1609
1609
|
continue;
|
|
1610
1610
|
const l = a.split("=");
|
|
1611
1611
|
if (Array.isArray(l)) {
|
|
1612
|
-
const
|
|
1613
|
-
window.config[
|
|
1612
|
+
const i = l[0], r = l[1];
|
|
1613
|
+
window.config[i] = r;
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
1616
|
}, Il = Q({
|
|
@@ -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 = M(0), n = M(0), a = M(0), l = M(0),
|
|
1629
|
+
})), t = M(0), n = M(0), a = M(0), l = M(0), i = M(!1), r = M();
|
|
1630
1630
|
let s;
|
|
1631
|
-
const f = () => new Promise((
|
|
1631
|
+
const f = () => new Promise((y) => {
|
|
1632
1632
|
mt(() => {
|
|
1633
|
-
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value =
|
|
1633
|
+
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, n.value = r.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), y();
|
|
1634
1634
|
});
|
|
1635
|
-
}),
|
|
1636
|
-
t.value && n.value ? (
|
|
1637
|
-
},
|
|
1638
|
-
const
|
|
1639
|
-
|
|
1640
|
-
},
|
|
1641
|
-
await f(),
|
|
1635
|
+
}), C = () => {
|
|
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
|
+
}, v = () => {
|
|
1638
|
+
const y = document.body.clientWidth, g = document.body.clientHeight, h = t.value || a.value, p = n.value || l.value, _ = y / h, I = g / p;
|
|
1639
|
+
r.value && (r.value.style.transform = `scale(${_}, ${I})`);
|
|
1640
|
+
}, x = Rt(async () => {
|
|
1641
|
+
await f(), v();
|
|
1642
1642
|
}, 100), d = () => {
|
|
1643
|
-
const
|
|
1644
|
-
s = new
|
|
1643
|
+
const y = window.MutationObserver;
|
|
1644
|
+
s = new y(x), s.observe(r.value, {
|
|
1645
1645
|
attributes: !0,
|
|
1646
1646
|
attributeFilter: ["style"],
|
|
1647
1647
|
attributeOldValue: !0
|
|
@@ -1650,13 +1650,13 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1650
1650
|
s && (s.disconnect(), s.takeRecords(), s = null);
|
|
1651
1651
|
};
|
|
1652
1652
|
return Ue(async () => {
|
|
1653
|
-
|
|
1653
|
+
i.value = !1, await f(), C(), v(), window.addEventListener("resize", x), d(), i.value = !0;
|
|
1654
1654
|
}), ft(() => {
|
|
1655
|
-
window.removeEventListener("resize",
|
|
1655
|
+
window.removeEventListener("resize", x), u();
|
|
1656
1656
|
}), {
|
|
1657
1657
|
style: o,
|
|
1658
|
-
container:
|
|
1659
|
-
ready:
|
|
1658
|
+
container: r,
|
|
1659
|
+
ready: i
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
@@ -1696,15 +1696,15 @@ 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),
|
|
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,
|
|
1703
1703
|
// 模式(设计、预览、正常):目前主要配置初始化是否发起请求
|
|
1704
1704
|
pageMode: l,
|
|
1705
1705
|
// 主题
|
|
1706
|
-
theme:
|
|
1707
|
-
touchEventId:
|
|
1706
|
+
theme: i,
|
|
1707
|
+
touchEventId: r
|
|
1708
1708
|
});
|
|
1709
1709
|
const s = /* @__PURE__ */ new Map(), f = (F) => s.get(F);
|
|
1710
1710
|
ze(ye, {
|
|
@@ -1713,50 +1713,50 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1713
1713
|
s.set(F, B);
|
|
1714
1714
|
}
|
|
1715
1715
|
});
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1716
|
+
const v = [], x = () => {
|
|
1717
|
+
v.pop();
|
|
1718
1718
|
}, d = (F) => {
|
|
1719
|
-
|
|
1720
|
-
}, u = /* @__PURE__ */ new Map(),
|
|
1719
|
+
v.push(F);
|
|
1720
|
+
}, u = /* @__PURE__ */ new Map(), y = (F) => u.get(F);
|
|
1721
1721
|
ze(Oo, {
|
|
1722
|
-
popUseModalIds:
|
|
1722
|
+
popUseModalIds: x,
|
|
1723
1723
|
pushUseModalIds: d,
|
|
1724
|
-
getModalModel:
|
|
1724
|
+
getModalModel: y,
|
|
1725
1725
|
setModalModel: (F, B) => {
|
|
1726
1726
|
u.set(F, B);
|
|
1727
1727
|
}
|
|
1728
1728
|
});
|
|
1729
|
-
const
|
|
1730
|
-
p.add(F),
|
|
1729
|
+
const h = oa(), p = /* @__PURE__ */ new Set(), _ = (F, B) => {
|
|
1730
|
+
p.add(F), h.on(F, (z) => typeof B[z] == "function" && B[z]()), Tt(() => {
|
|
1731
1731
|
I(F);
|
|
1732
1732
|
});
|
|
1733
1733
|
}, I = (F) => {
|
|
1734
|
-
p.delete(F),
|
|
1734
|
+
p.delete(F), h.off(F);
|
|
1735
1735
|
};
|
|
1736
1736
|
ze(Nt, {
|
|
1737
1737
|
onEvent: _,
|
|
1738
1738
|
offEvent: I,
|
|
1739
1739
|
emitEvent: (F, B) => {
|
|
1740
1740
|
if (F === "PAGE") {
|
|
1741
|
-
const z =
|
|
1741
|
+
const z = v.length;
|
|
1742
1742
|
let W = [];
|
|
1743
1743
|
if (z === 0)
|
|
1744
1744
|
W = [...p];
|
|
1745
1745
|
else {
|
|
1746
|
-
const X =
|
|
1747
|
-
W = [...
|
|
1746
|
+
const X = v[z - 1];
|
|
1747
|
+
W = [...y(X)];
|
|
1748
1748
|
}
|
|
1749
1749
|
W.forEach((X) => {
|
|
1750
|
-
|
|
1750
|
+
h.emit(X, B);
|
|
1751
1751
|
});
|
|
1752
1752
|
} else
|
|
1753
|
-
|
|
1753
|
+
h.emit(F, B);
|
|
1754
1754
|
}
|
|
1755
1755
|
});
|
|
1756
1756
|
const A = M(0);
|
|
1757
1757
|
ze(Do, {
|
|
1758
1758
|
requestToken: () => {
|
|
1759
|
-
A.value =
|
|
1759
|
+
A.value = b(A) + 1;
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
1762
|
const c = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), k = ({ requestFn: F = () => {
|
|
@@ -1798,7 +1798,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1798
1798
|
W.sort((ie, at) => at[0] - ie[0]);
|
|
1799
1799
|
const X = W.length;
|
|
1800
1800
|
try {
|
|
1801
|
-
e.pageMode !== "design" &&
|
|
1801
|
+
e.pageMode !== "design" && b(A) > 0 && await E();
|
|
1802
1802
|
for (let ie = 0; ie < X; ie++) {
|
|
1803
1803
|
const at = W[ie][1];
|
|
1804
1804
|
await R(at);
|
|
@@ -1815,12 +1815,12 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1815
1815
|
touchRequest: T
|
|
1816
1816
|
}), ze(Je, {
|
|
1817
1817
|
emitRefreshPage: () => {
|
|
1818
|
-
|
|
1818
|
+
h.emit(Je);
|
|
1819
1819
|
}
|
|
1820
1820
|
});
|
|
1821
1821
|
const J = (F) => {
|
|
1822
|
-
|
|
1823
|
-
|
|
1822
|
+
h.on(Je, () => F()), Ue(() => {
|
|
1823
|
+
h.off(Je);
|
|
1824
1824
|
});
|
|
1825
1825
|
};
|
|
1826
1826
|
return Tt(() => {
|
|
@@ -1874,54 +1874,54 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1874
1874
|
},
|
|
1875
1875
|
setup(e) {
|
|
1876
1876
|
const o = re(e), t = M({});
|
|
1877
|
-
ne(() => [e.data, e.dataType], ([
|
|
1878
|
-
d === "static" && (t.value =
|
|
1877
|
+
ne(() => [e.data, e.dataType], ([x, d]) => {
|
|
1878
|
+
d === "static" && (t.value = x);
|
|
1879
1879
|
}, {
|
|
1880
1880
|
immediate: !0
|
|
1881
1881
|
});
|
|
1882
1882
|
const n = q(() => {
|
|
1883
|
-
var
|
|
1884
|
-
const
|
|
1883
|
+
var y;
|
|
1884
|
+
const x = b(t);
|
|
1885
1885
|
let d = e.text;
|
|
1886
1886
|
d = d == null ? void 0 : d.replace(/\n|\\n/g, "<br/>"), d = d == null ? void 0 : d.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
1887
1887
|
const u = d.match(/\{(.+?)\}/g);
|
|
1888
1888
|
if (u == null || u.length === 0)
|
|
1889
1889
|
return d;
|
|
1890
1890
|
for (let g = 0; g < u.length; g++) {
|
|
1891
|
-
const
|
|
1891
|
+
const h = u[g], p = (y = h == null ? void 0 : h.slice(1, h.length - 1)) == null ? void 0 : y.trim();
|
|
1892
1892
|
let _ = p;
|
|
1893
1893
|
const I = p.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1894
1894
|
for (let A = 0; A < I.length; A++) {
|
|
1895
|
-
const
|
|
1896
|
-
c && (_ = p.replace(
|
|
1895
|
+
const w = I[A], c = x[w];
|
|
1896
|
+
c && (_ = p.replace(w, c));
|
|
1897
1897
|
}
|
|
1898
1898
|
if (/\(.*\)/g.test(_)) {
|
|
1899
1899
|
const A = yt(_);
|
|
1900
1900
|
A != null && (_ = A);
|
|
1901
1901
|
}
|
|
1902
|
-
let
|
|
1903
|
-
if (
|
|
1902
|
+
let S = _;
|
|
1903
|
+
if (S === p && (S = e.variableDefaultValue), S != null) {
|
|
1904
1904
|
const A = e.format;
|
|
1905
|
-
A === "percentage" ? (
|
|
1905
|
+
A === "percentage" ? (S = +S, isNaN(S) ? d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : S >= 0 ? (S = (S * 100).toFixed(2), d = d.replace(h, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${S}%</span>`)) : (S = (S * 100).toFixed(2), d = d.replace(h, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+S)}%</span>`))) : e.format === "percent" ? (S = +S, isNaN(S) || (S = (S * 100).toFixed(2), d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}%</span>`))) : e.format === "money" ? (S = +S, isNaN(S) || (S = Pt(S), d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : A === "thousands" ? (S = +S, isNaN(S) || (S = Tl(S), d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`))) : d = d.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${S}</span>`);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
return `<span>${d}</span>`;
|
|
1909
1909
|
}), { pageMode: a } = N(fe, {
|
|
1910
1910
|
pageMode: "normal"
|
|
1911
|
-
}), l = _e(e),
|
|
1912
|
-
var
|
|
1913
|
-
if (
|
|
1911
|
+
}), l = _e(e), i = M(!1), r = async () => {
|
|
1912
|
+
var x;
|
|
1913
|
+
if (b(a) !== "design")
|
|
1914
1914
|
try {
|
|
1915
|
-
|
|
1915
|
+
i.value = !0;
|
|
1916
1916
|
const d = await l();
|
|
1917
|
-
t.value = ((
|
|
1917
|
+
t.value = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || {};
|
|
1918
1918
|
} catch (d) {
|
|
1919
1919
|
console.error(d);
|
|
1920
1920
|
} finally {
|
|
1921
|
-
|
|
1921
|
+
i.value = !1;
|
|
1922
1922
|
}
|
|
1923
1923
|
}, s = () => {
|
|
1924
|
-
e.dataType !== "static" &&
|
|
1924
|
+
e.dataType !== "static" && r();
|
|
1925
1925
|
};
|
|
1926
1926
|
he(e, {
|
|
1927
1927
|
refreshData: s
|
|
@@ -1929,7 +1929,7 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1929
1929
|
const { setRequest: f } = N(Se, {
|
|
1930
1930
|
// @ts-ignore
|
|
1931
1931
|
// eslint-disable-next-line no-void
|
|
1932
|
-
setRequest: ({ id:
|
|
1932
|
+
setRequest: ({ id: x, sortNum: d, requestFn: u }) => {
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
1935
|
f({
|
|
@@ -1939,14 +1939,14 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1939
1939
|
}), he(e, {
|
|
1940
1940
|
refreshData: s
|
|
1941
1941
|
});
|
|
1942
|
-
const
|
|
1942
|
+
const v = me(e)("click", () => {
|
|
1943
1943
|
if (!e.linkPage && !e.href)
|
|
1944
1944
|
return;
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1947
|
-
|
|
1945
|
+
const x = e.linkPage || "", d = Fo(b(a), x), u = e.href;
|
|
1946
|
+
let y = u || d;
|
|
1947
|
+
y = de(y);
|
|
1948
1948
|
const g = e.target;
|
|
1949
|
-
g && (g !== "event" ? window.open(
|
|
1949
|
+
g && (g !== "event" ? window.open(y, "_" + g) : window.parent.postMessage({
|
|
1950
1950
|
type: "openPage",
|
|
1951
1951
|
url: u
|
|
1952
1952
|
}, "*"));
|
|
@@ -1954,26 +1954,26 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1954
1954
|
return {
|
|
1955
1955
|
style: o,
|
|
1956
1956
|
myText: n,
|
|
1957
|
-
loading:
|
|
1958
|
-
click:
|
|
1957
|
+
loading: i,
|
|
1958
|
+
click: v
|
|
1959
1959
|
};
|
|
1960
1960
|
}
|
|
1961
1961
|
});
|
|
1962
1962
|
const ql = ["innerHTML"];
|
|
1963
1963
|
function jl(e, o, t, n, a, l) {
|
|
1964
|
-
const
|
|
1964
|
+
const i = H("skeleton");
|
|
1965
1965
|
return e.loading ? (D(), $("div", {
|
|
1966
1966
|
key: 0,
|
|
1967
1967
|
class: "skeleton-wrapper",
|
|
1968
1968
|
style: U(e.style)
|
|
1969
1969
|
}, [
|
|
1970
|
-
G(
|
|
1970
|
+
G(i, { loading: e.loading }, null, 8, ["loading"])
|
|
1971
1971
|
], 4)) : (D(), $("div", {
|
|
1972
1972
|
key: 1,
|
|
1973
1973
|
class: "ecan-text",
|
|
1974
1974
|
style: U(e.style),
|
|
1975
1975
|
innerHTML: e.myText,
|
|
1976
|
-
onClick: o[0] || (o[0] = (...
|
|
1976
|
+
onClick: o[0] || (o[0] = (...r) => e.click && e.click(...r))
|
|
1977
1977
|
}, null, 12, ql));
|
|
1978
1978
|
}
|
|
1979
1979
|
const Wl = /* @__PURE__ */ K(Gl, [["render", jl], ["__scopeId", "data-v-f9ba6c3f"]]), Vl = ae(Wl), Hl = Q({
|
|
@@ -2078,13 +2078,13 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2078
2078
|
textAlign: "center"
|
|
2079
2079
|
} : {
|
|
2080
2080
|
textAlign: "left"
|
|
2081
|
-
}), a = (u,
|
|
2081
|
+
}), a = (u, y) => y == null || y === "" ? u : {
|
|
2082
2082
|
money: Pt,
|
|
2083
2083
|
percentage: ut,
|
|
2084
2084
|
contrast: ut
|
|
2085
|
-
}[
|
|
2085
|
+
}[y](u) || "", l = (u, y) => {
|
|
2086
2086
|
const g = parseFloat(u + "");
|
|
2087
|
-
if (
|
|
2087
|
+
if (y !== "contrast")
|
|
2088
2088
|
return "";
|
|
2089
2089
|
switch (!0) {
|
|
2090
2090
|
case g >= 0:
|
|
@@ -2092,31 +2092,31 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2092
2092
|
case g < 0:
|
|
2093
2093
|
return "goDown";
|
|
2094
2094
|
}
|
|
2095
|
-
},
|
|
2095
|
+
}, i = _e(e), { pageMode: r } = N(fe, {
|
|
2096
2096
|
pageMode: "normal"
|
|
2097
2097
|
}), s = M(!1), f = async () => {
|
|
2098
2098
|
var u;
|
|
2099
|
-
if (!(e.dataType !== "request" ||
|
|
2099
|
+
if (!(e.dataType !== "request" || b(r) === "design"))
|
|
2100
2100
|
try {
|
|
2101
2101
|
s.value = !0;
|
|
2102
|
-
const
|
|
2103
|
-
o.value = ((u =
|
|
2104
|
-
} catch (
|
|
2105
|
-
console.error(
|
|
2102
|
+
const y = await i();
|
|
2103
|
+
o.value = ((u = y == null ? void 0 : y.data) == null ? void 0 : u.data.rows) || [];
|
|
2104
|
+
} catch (y) {
|
|
2105
|
+
console.error(y);
|
|
2106
2106
|
} finally {
|
|
2107
2107
|
s.value = !1;
|
|
2108
2108
|
}
|
|
2109
|
-
},
|
|
2109
|
+
}, C = () => {
|
|
2110
2110
|
f();
|
|
2111
|
-
},
|
|
2111
|
+
}, x = me(e)("click", () => {
|
|
2112
2112
|
});
|
|
2113
2113
|
he(e, {
|
|
2114
|
-
refreshData:
|
|
2114
|
+
refreshData: C
|
|
2115
2115
|
});
|
|
2116
2116
|
const { setRequest: d } = N(Se, {
|
|
2117
2117
|
// @ts-ignore
|
|
2118
2118
|
// eslint-disable-next-line no-void
|
|
2119
|
-
setRequest: ({ id: u, sortNum:
|
|
2119
|
+
setRequest: ({ id: u, sortNum: y, requestFn: g }) => {
|
|
2120
2120
|
}
|
|
2121
2121
|
});
|
|
2122
2122
|
return d({
|
|
@@ -2130,7 +2130,7 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2130
2130
|
contrastClass: l,
|
|
2131
2131
|
dataSource: o,
|
|
2132
2132
|
loading: s,
|
|
2133
|
-
click:
|
|
2133
|
+
click: x
|
|
2134
2134
|
};
|
|
2135
2135
|
}
|
|
2136
2136
|
});
|
|
@@ -2151,23 +2151,23 @@ const ai = (e) => (fo("data-v-211785ca"), e = e(), mo(), e), li = {
|
|
|
2151
2151
|
class: "empty"
|
|
2152
2152
|
};
|
|
2153
2153
|
function fi(e, o, t, n, a, l) {
|
|
2154
|
-
const
|
|
2154
|
+
const i = H("skeleton");
|
|
2155
2155
|
return D(), $("div", {
|
|
2156
2156
|
class: "ecan-list",
|
|
2157
2157
|
style: U(e.style)
|
|
2158
2158
|
}, [
|
|
2159
|
-
G(
|
|
2159
|
+
G(i, { loading: e.loading }, {
|
|
2160
2160
|
default: Y(() => [
|
|
2161
2161
|
e.useTitle ? (D(), $("div", li, [
|
|
2162
|
-
(D(!0), $(Me, null, De(e.columnCount, (
|
|
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,
|
|
2166
2166
|
height: e.itemHeight,
|
|
2167
2167
|
width: `calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount - 1}/ ${e.columnCount})`,
|
|
2168
|
-
marginRight:
|
|
2168
|
+
marginRight: r % e.columnCount !== 0 ? e.itemColSpan : ""
|
|
2169
2169
|
}),
|
|
2170
|
-
key:
|
|
2170
|
+
key: r
|
|
2171
2171
|
}, [
|
|
2172
2172
|
e.useRanking ? (D(), $("div", ii)) : ve("", !0),
|
|
2173
2173
|
(D(!0), $(Me, null, De(e.columns, (s, f) => (D(), $("div", {
|
|
@@ -2188,7 +2188,7 @@ function fi(e, o, t, n, a, l) {
|
|
|
2188
2188
|
marginBottom: e.itemRowSpan
|
|
2189
2189
|
})
|
|
2190
2190
|
}, null, 4)) : ve("", !0),
|
|
2191
|
-
(D(!0), $(Me, null, De(e.dataSource.slice(0, e.sliceCount), (
|
|
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,
|
|
@@ -2197,7 +2197,7 @@ function fi(e, o, t, n, a, l) {
|
|
|
2197
2197
|
marginRight: (s + 1) % e.columnCount !== 0 ? e.itemColSpan : "",
|
|
2198
2198
|
marginBottom: e.itemRowSpan
|
|
2199
2199
|
}),
|
|
2200
|
-
key:
|
|
2200
|
+
key: r.id || s,
|
|
2201
2201
|
onClick: o[0] || (o[0] = (...f) => e.click && e.click(...f))
|
|
2202
2202
|
}, [
|
|
2203
2203
|
e.useRanking ? (D(), $("div", si, [
|
|
@@ -2205,15 +2205,15 @@ function fi(e, o, t, n, a, l) {
|
|
|
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
|
-
class: Lt(["column", e.contrastClass(
|
|
2208
|
+
class: Lt(["column", e.contrastClass(r[f.key], f.format)]),
|
|
2209
2209
|
key: f.key,
|
|
2210
2210
|
style: U({
|
|
2211
2211
|
fontSize: f.fontSize,
|
|
2212
|
-
color: e.contrastClass(
|
|
2212
|
+
color: e.contrastClass(r[f.key], f.format) === "" ? f.color : "",
|
|
2213
2213
|
fontWeight: f.fontWeight,
|
|
2214
2214
|
...e.columnStyle
|
|
2215
2215
|
})
|
|
2216
|
-
}, be((f.format != null || f.format !== "") && e.formatFn(
|
|
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
|
]),
|
|
@@ -2261,58 +2261,58 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2261
2261
|
return parseFloat(u);
|
|
2262
2262
|
}), a = M({});
|
|
2263
2263
|
ne(() => e.data, () => {
|
|
2264
|
-
(e.dataType === "static" ||
|
|
2264
|
+
(e.dataType === "static" || b(o) === "design") && (a.value = e.data);
|
|
2265
2265
|
}, {
|
|
2266
2266
|
immediate: !0,
|
|
2267
2267
|
deep: !0
|
|
2268
2268
|
});
|
|
2269
2269
|
const l = q(() => {
|
|
2270
|
-
const u =
|
|
2270
|
+
const u = b(a), y = +e.variableDefaultValue;
|
|
2271
2271
|
if (u == null)
|
|
2272
|
-
return isNaN(
|
|
2272
|
+
return isNaN(y) ? 0 : y;
|
|
2273
2273
|
const g = e.text.match(/\{.+\}/g) || [];
|
|
2274
|
-
let
|
|
2274
|
+
let h;
|
|
2275
2275
|
const p = new Set(Object.keys(u));
|
|
2276
2276
|
for (let _ = 0; _ < g.length; _++) {
|
|
2277
|
-
const I = g[_],
|
|
2278
|
-
if (p.has(
|
|
2279
|
-
|
|
2277
|
+
const I = g[_], S = I.slice(1, I.length - 1);
|
|
2278
|
+
if (p.has(S)) {
|
|
2279
|
+
h = u[S];
|
|
2280
2280
|
break;
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
|
-
return typeof
|
|
2284
|
-
}),
|
|
2283
|
+
return typeof h == "number" ? h = h * 100 : typeof h == "string" && !isNaN(+h) ? h = +h * 100 : isNaN(y) ? h = 0 : h = y * 100, e.decimalFormat && (h = +h.toFixed(2)), h;
|
|
2284
|
+
}), i = q(() => {
|
|
2285
2285
|
var p;
|
|
2286
2286
|
let u = e.text;
|
|
2287
2287
|
if (u === "")
|
|
2288
|
-
return
|
|
2289
|
-
const
|
|
2290
|
-
for (let _ = 0; _ <
|
|
2291
|
-
const I =
|
|
2292
|
-
let
|
|
2293
|
-
const A = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,
|
|
2294
|
-
for (let m = 0; m < (
|
|
2295
|
-
const k = (p =
|
|
2296
|
-
g[k] != null && (
|
|
2288
|
+
return b(l);
|
|
2289
|
+
const y = e.variableDefaultValue, g = b(a), h = u.match(/\{.+\}/g) || [];
|
|
2290
|
+
for (let _ = 0; _ < h.length; _++) {
|
|
2291
|
+
const I = h[_];
|
|
2292
|
+
let S = I.slice(1, I.length - 1);
|
|
2293
|
+
const A = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, w = I.match(A);
|
|
2294
|
+
for (let m = 0; m < (w == null ? void 0 : w.length); m++) {
|
|
2295
|
+
const k = (p = w[m]) == null ? void 0 : p.trim();
|
|
2296
|
+
g[k] != null && (S = S.replace(k, g[k]));
|
|
2297
2297
|
}
|
|
2298
|
-
let c =
|
|
2298
|
+
let c = S;
|
|
2299
2299
|
try {
|
|
2300
|
-
/\(.*\)/g.test(
|
|
2300
|
+
/\(.*\)/g.test(S) && (c = yt(S));
|
|
2301
2301
|
} catch (m) {
|
|
2302
2302
|
console.error(m);
|
|
2303
2303
|
}
|
|
2304
|
-
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c =
|
|
2304
|
+
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c = y, u = u.replace(I, c + "");
|
|
2305
2305
|
}
|
|
2306
2306
|
return u;
|
|
2307
|
-
}),
|
|
2307
|
+
}), r = _e(e), s = M(!1), f = async () => {
|
|
2308
2308
|
var u;
|
|
2309
|
-
if (!(e.dataType !== "request" ||
|
|
2309
|
+
if (!(e.dataType !== "request" || b(o) === "design"))
|
|
2310
2310
|
try {
|
|
2311
2311
|
s.value = !0;
|
|
2312
|
-
const
|
|
2313
|
-
a.value = ((u =
|
|
2314
|
-
} catch (
|
|
2315
|
-
console.error(
|
|
2312
|
+
const y = await r();
|
|
2313
|
+
a.value = ((u = y == null ? void 0 : y.data) == null ? void 0 : u.data) || {};
|
|
2314
|
+
} catch (y) {
|
|
2315
|
+
console.error(y);
|
|
2316
2316
|
} finally {
|
|
2317
2317
|
s.value = !1;
|
|
2318
2318
|
}
|
|
@@ -2322,11 +2322,11 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2322
2322
|
f();
|
|
2323
2323
|
}
|
|
2324
2324
|
});
|
|
2325
|
-
const
|
|
2325
|
+
const x = me(e)("click", () => {
|
|
2326
2326
|
}), { setRequest: d } = N(Se, {
|
|
2327
2327
|
// @ts-ignore
|
|
2328
2328
|
// eslint-disable-next-line no-void
|
|
2329
|
-
setRequest: ({ id: u, sortNum:
|
|
2329
|
+
setRequest: ({ id: u, sortNum: y, requestFn: g }) => {
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
2332
|
return d({
|
|
@@ -2336,20 +2336,20 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2336
2336
|
}), {
|
|
2337
2337
|
style: t,
|
|
2338
2338
|
myWidth: n,
|
|
2339
|
-
text:
|
|
2339
|
+
text: i,
|
|
2340
2340
|
myValue: l,
|
|
2341
2341
|
loading: s,
|
|
2342
|
-
click:
|
|
2342
|
+
click: x
|
|
2343
2343
|
};
|
|
2344
2344
|
}
|
|
2345
2345
|
});
|
|
2346
2346
|
function bi(e, o, t, n, a, l) {
|
|
2347
|
-
const
|
|
2347
|
+
const i = H("skeleton"), r = H("a-progress");
|
|
2348
2348
|
return D(), $("div", {
|
|
2349
2349
|
class: "ecan-proportion",
|
|
2350
2350
|
style: U(e.style)
|
|
2351
2351
|
}, [
|
|
2352
|
-
G(
|
|
2352
|
+
G(r, {
|
|
2353
2353
|
class: "progress",
|
|
2354
2354
|
percent: e.myValue,
|
|
2355
2355
|
width: e.myWidth,
|
|
@@ -2362,7 +2362,7 @@ function bi(e, o, t, n, a, l) {
|
|
|
2362
2362
|
onClick: e.click
|
|
2363
2363
|
}, {
|
|
2364
2364
|
format: Y(() => [
|
|
2365
|
-
e.loading ? (D(), Re(
|
|
2365
|
+
e.loading ? (D(), Re(i, {
|
|
2366
2366
|
key: 0,
|
|
2367
2367
|
loading: e.loading
|
|
2368
2368
|
}, null, 8, ["loading"])) : (D(), $("div", {
|
|
@@ -2415,7 +2415,7 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2415
2415
|
},
|
|
2416
2416
|
// @ts-ignore
|
|
2417
2417
|
// eslint-disable-next-line no-void
|
|
2418
|
-
setGlobalModel: (f,
|
|
2418
|
+
setGlobalModel: (f, C) => {
|
|
2419
2419
|
}
|
|
2420
2420
|
});
|
|
2421
2421
|
a(e.id, {
|
|
@@ -2425,28 +2425,28 @@ 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
|
-
},
|
|
2428
|
+
}, i = me(e), r = Rt(i("inputChange", () => {
|
|
2429
2429
|
l();
|
|
2430
|
-
}), 300), s =
|
|
2430
|
+
}), 300), s = i("inputBlur", () => {
|
|
2431
2431
|
});
|
|
2432
2432
|
return {
|
|
2433
2433
|
style: o,
|
|
2434
2434
|
myValue: t,
|
|
2435
2435
|
inputBlur: s,
|
|
2436
|
-
inputChange:
|
|
2436
|
+
inputChange: r
|
|
2437
2437
|
};
|
|
2438
2438
|
}
|
|
2439
2439
|
});
|
|
2440
2440
|
function wi(e, o, t, n, a, l) {
|
|
2441
|
-
const
|
|
2441
|
+
const i = H("a-input");
|
|
2442
2442
|
return D(), $("div", {
|
|
2443
2443
|
class: "ecan-input",
|
|
2444
2444
|
style: U(e.style)
|
|
2445
2445
|
}, [
|
|
2446
|
-
G(
|
|
2446
|
+
G(i, {
|
|
2447
2447
|
class: "input",
|
|
2448
2448
|
value: e.myValue,
|
|
2449
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2449
|
+
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
2450
2450
|
placeholder: e.placeholder,
|
|
2451
2451
|
onChange: e.inputChange,
|
|
2452
2452
|
onBlur: e.inputBlur
|
|
@@ -2480,19 +2480,19 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2480
2480
|
},
|
|
2481
2481
|
setup(e) {
|
|
2482
2482
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M(null);
|
|
2483
|
-
ne(() => [e.value, e.useCurrentTime, e.operate], ([
|
|
2484
|
-
let
|
|
2485
|
-
if (
|
|
2486
|
-
const { type: x, value:
|
|
2483
|
+
ne(() => [e.value, e.useCurrentTime, e.operate], ([s, f, C]) => {
|
|
2484
|
+
let v = null;
|
|
2485
|
+
if (s ? v = Ce(de(s)) : f && (v = Ce()), C && v) {
|
|
2486
|
+
const { type: x, value: d, mode: u } = C;
|
|
2487
2487
|
switch (x) {
|
|
2488
2488
|
case "add":
|
|
2489
|
-
|
|
2489
|
+
v = v.add(d, u);
|
|
2490
2490
|
break;
|
|
2491
2491
|
case "minus":
|
|
2492
|
-
|
|
2492
|
+
v = v.subtract(d, u);
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
|
-
n.value =
|
|
2495
|
+
n.value = v;
|
|
2496
2496
|
}, {
|
|
2497
2497
|
deep: !0,
|
|
2498
2498
|
immediate: !0
|
|
@@ -2500,7 +2500,7 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2500
2500
|
const { setGlobalModel: a } = N(ye, {
|
|
2501
2501
|
// @ts-ignore
|
|
2502
2502
|
// eslint-disable-next-line no-void
|
|
2503
|
-
setGlobalModel: (
|
|
2503
|
+
setGlobalModel: (s, f) => {
|
|
2504
2504
|
}
|
|
2505
2505
|
});
|
|
2506
2506
|
a(e.id, {
|
|
@@ -2508,35 +2508,37 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2508
2508
|
format: e.format,
|
|
2509
2509
|
value: n
|
|
2510
2510
|
});
|
|
2511
|
-
const
|
|
2512
|
-
})
|
|
2511
|
+
const i = me(e)("dateChange", () => {
|
|
2512
|
+
}), r = () => {
|
|
2513
|
+
b(n) && i();
|
|
2514
|
+
};
|
|
2513
2515
|
return he(e, {
|
|
2514
|
-
dateChange:
|
|
2516
|
+
dateChange: i
|
|
2515
2517
|
}), {
|
|
2516
2518
|
style: o,
|
|
2517
2519
|
getPopupContainer: t,
|
|
2518
2520
|
myValue: n,
|
|
2519
2521
|
locale: Co,
|
|
2520
|
-
|
|
2522
|
+
change: r
|
|
2521
2523
|
};
|
|
2522
2524
|
}
|
|
2523
2525
|
});
|
|
2524
2526
|
function Ti(e, o, t, n, a, l) {
|
|
2525
|
-
const
|
|
2527
|
+
const i = H("a-date-picker");
|
|
2526
2528
|
return D(), $("div", {
|
|
2527
2529
|
class: "ecan-date-picker",
|
|
2528
2530
|
style: U(e.style)
|
|
2529
2531
|
}, [
|
|
2530
|
-
G(
|
|
2532
|
+
G(i, {
|
|
2531
2533
|
class: "date-picker",
|
|
2532
2534
|
dropdownClassName: "ecan-date-picker-dropdown",
|
|
2533
2535
|
value: e.myValue,
|
|
2534
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2536
|
+
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
2535
2537
|
format: e.format,
|
|
2536
2538
|
picker: e.picker,
|
|
2537
2539
|
showTime: e.showTime,
|
|
2538
2540
|
locale: e.locale,
|
|
2539
|
-
onChange: e.
|
|
2541
|
+
onChange: e.change,
|
|
2540
2542
|
getPopupContainer: e.getPopupContainer
|
|
2541
2543
|
}, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "getPopupContainer"])
|
|
2542
2544
|
], 4);
|
|
@@ -2569,62 +2571,62 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2569
2571
|
setup(e) {
|
|
2570
2572
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } = N(fe, {
|
|
2571
2573
|
pageMode: "normal"
|
|
2572
|
-
}), l = M(e.data),
|
|
2573
|
-
const p =
|
|
2574
|
+
}), l = M(e.data), i = M(e.value || e.data[0]), r = e.dataFieldNames, s = (g, h) => {
|
|
2575
|
+
const p = r.label, _ = r.value;
|
|
2574
2576
|
let I;
|
|
2575
|
-
const
|
|
2576
|
-
return
|
|
2577
|
-
}, f = M(!1),
|
|
2578
|
-
var g,
|
|
2579
|
-
if (!(e.dataType !== "request" ||
|
|
2577
|
+
const S = h[p], A = h[_];
|
|
2578
|
+
return S != null ? I = S : A != null && (I = A), (I == null ? void 0 : I.toLowerCase().indexOf(g == null ? void 0 : g.toLowerCase())) >= 0;
|
|
2579
|
+
}, f = M(!1), C = async () => {
|
|
2580
|
+
var g, h;
|
|
2581
|
+
if (!(e.dataType !== "request" || b(a) === "design")) {
|
|
2580
2582
|
f.value = !0;
|
|
2581
2583
|
try {
|
|
2582
2584
|
const p = await n();
|
|
2583
|
-
l.value = ((
|
|
2584
|
-
const _ =
|
|
2585
|
-
e.value === "" && _ != null && (
|
|
2585
|
+
l.value = ((h = (g = p == null ? void 0 : p.data) == null ? void 0 : g.data) == null ? void 0 : h.rows) || [];
|
|
2586
|
+
const _ = b(l)[0];
|
|
2587
|
+
e.value === "" && _ != null && (i.value = _[r.value]);
|
|
2586
2588
|
} catch (p) {
|
|
2587
2589
|
console.error(p);
|
|
2588
2590
|
} finally {
|
|
2589
2591
|
f.value = !1;
|
|
2590
2592
|
}
|
|
2591
2593
|
}
|
|
2592
|
-
}, { getGlobalModel:
|
|
2594
|
+
}, { getGlobalModel: v, setGlobalModel: x } = N(ye, {
|
|
2593
2595
|
// @ts-ignore
|
|
2594
2596
|
// eslint-disable-next-line no-void
|
|
2595
2597
|
getGlobalModel: (g) => {
|
|
2596
2598
|
},
|
|
2597
2599
|
// @ts-ignore
|
|
2598
2600
|
// eslint-disable-next-line no-void
|
|
2599
|
-
setGlobalModel: (g,
|
|
2601
|
+
setGlobalModel: (g, h) => {
|
|
2600
2602
|
}
|
|
2601
2603
|
});
|
|
2602
|
-
|
|
2604
|
+
x(e.id, {
|
|
2603
2605
|
type: e.type,
|
|
2604
|
-
value:
|
|
2606
|
+
value: i
|
|
2605
2607
|
});
|
|
2606
2608
|
const u = me(e)("selectChange", () => {
|
|
2607
|
-
const g = e.id,
|
|
2608
|
-
|
|
2609
|
+
const g = e.id, h = v(g);
|
|
2610
|
+
x(g, { ...h, RECORD: i });
|
|
2609
2611
|
});
|
|
2610
2612
|
he(e, {
|
|
2611
2613
|
selectChange: u,
|
|
2612
|
-
refreshData:
|
|
2614
|
+
refreshData: C
|
|
2613
2615
|
});
|
|
2614
|
-
const { setRequest:
|
|
2616
|
+
const { setRequest: y } = N(Se, {
|
|
2615
2617
|
// @ts-ignore
|
|
2616
2618
|
// eslint-disable-next-line no-void
|
|
2617
|
-
setRequest: ({ id: g, sortNum:
|
|
2619
|
+
setRequest: ({ id: g, sortNum: h, requestFn: p }) => {
|
|
2618
2620
|
}
|
|
2619
2621
|
});
|
|
2620
|
-
return
|
|
2622
|
+
return y({
|
|
2621
2623
|
id: e.id,
|
|
2622
|
-
requestFn:
|
|
2624
|
+
requestFn: C,
|
|
2623
2625
|
sortNum: e.requestSort
|
|
2624
2626
|
}), {
|
|
2625
2627
|
style: o,
|
|
2626
2628
|
getPopupContainer: t,
|
|
2627
|
-
myValue:
|
|
2629
|
+
myValue: i,
|
|
2628
2630
|
selectChange: u,
|
|
2629
2631
|
options: l,
|
|
2630
2632
|
filterOption: s,
|
|
@@ -2633,15 +2635,15 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2633
2635
|
}
|
|
2634
2636
|
});
|
|
2635
2637
|
function Di(e, o, t, n, a, l) {
|
|
2636
|
-
const
|
|
2638
|
+
const i = H("a-select");
|
|
2637
2639
|
return D(), $("div", {
|
|
2638
2640
|
class: "ecan-select",
|
|
2639
2641
|
style: U(e.style)
|
|
2640
2642
|
}, [
|
|
2641
|
-
G(
|
|
2643
|
+
G(i, {
|
|
2642
2644
|
class: "select",
|
|
2643
2645
|
value: e.myValue,
|
|
2644
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2646
|
+
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
2645
2647
|
options: e.options,
|
|
2646
2648
|
mode: e.mode,
|
|
2647
2649
|
getPopupContainer: e.getPopupContainer,
|
|
@@ -2682,51 +2684,52 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2682
2684
|
},
|
|
2683
2685
|
setup(e) {
|
|
2684
2686
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M([null, null]);
|
|
2685
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([g,
|
|
2686
|
-
let A = null,
|
|
2687
|
-
if (p && (A = Ce().subtract(_, I),
|
|
2688
|
-
const { type: c, value: m, mode: k } =
|
|
2687
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([g, h, p, _, I, S]) => {
|
|
2688
|
+
let A = null, w = null;
|
|
2689
|
+
if (p && (A = Ce().subtract(_, I), w = Ce()), g && (A = Ce(de(g))), h && (w = Ce(de(h))), S) {
|
|
2690
|
+
const { type: c, value: m, mode: k } = S;
|
|
2689
2691
|
switch (c) {
|
|
2690
2692
|
case "add":
|
|
2691
|
-
A = A && A.add(m, k),
|
|
2693
|
+
A = A && A.add(m, k), w = w && w.add(m, k);
|
|
2692
2694
|
break;
|
|
2693
2695
|
case "minus":
|
|
2694
|
-
A = A && A.subtract(m, k),
|
|
2696
|
+
A = A && A.subtract(m, k), w = w && w.subtract(m, k);
|
|
2695
2697
|
}
|
|
2696
2698
|
}
|
|
2697
|
-
n.value = [A,
|
|
2699
|
+
n.value = [A, w];
|
|
2698
2700
|
}, {
|
|
2699
2701
|
immediate: !0
|
|
2700
2702
|
});
|
|
2701
|
-
let a =
|
|
2702
|
-
const
|
|
2703
|
+
let a = b(n)[0], l = b(n)[1];
|
|
2704
|
+
const i = (g) => {
|
|
2703
2705
|
Array.isArray(g) ? (a = g[0], l = g[1]) : (a = null, l = null);
|
|
2704
|
-
},
|
|
2705
|
-
let
|
|
2706
|
+
}, r = (g) => {
|
|
2707
|
+
let h = !1, { limitStartTime: p, limitEndTime: _ } = e;
|
|
2706
2708
|
const I = {
|
|
2707
2709
|
startTime: `${a || ""}`,
|
|
2708
2710
|
endTime: `${l || ""}`
|
|
2709
2711
|
};
|
|
2710
|
-
return p = de(p, { codeData: I }), _ = de(_, { codeData: I }), p && _ ?
|
|
2712
|
+
return p = de(p, { codeData: I }), _ = de(_, { codeData: I }), p && _ ? h = !(Ce(p) < g && g < Ce(_)) : p ? h = Ce(p) > g : _ && (h = Ce(_) < g), h;
|
|
2711
2713
|
}, { setGlobalModel: s } = N(ye, {
|
|
2712
2714
|
// @ts-ignore
|
|
2713
2715
|
// eslint-disable-next-line no-void
|
|
2714
|
-
setGlobalModel: (g,
|
|
2716
|
+
setGlobalModel: (g, h) => {
|
|
2715
2717
|
}
|
|
2716
|
-
}), f = q(() => Array.isArray(
|
|
2718
|
+
}), f = q(() => Array.isArray(b(n)) ? b(n)[0] : null), C = q(() => Array.isArray(b(n)) ? b(n)[1] : null);
|
|
2717
2719
|
s(e.id, {
|
|
2718
2720
|
type: e.type,
|
|
2719
2721
|
format: e.format,
|
|
2720
2722
|
startTime: f,
|
|
2721
|
-
endTime:
|
|
2723
|
+
endTime: C
|
|
2722
2724
|
});
|
|
2723
|
-
const
|
|
2724
|
-
let
|
|
2725
|
-
const d =
|
|
2725
|
+
const v = me(e);
|
|
2726
|
+
let x = !1;
|
|
2727
|
+
const d = v("dateChange", () => {
|
|
2726
2728
|
}), u = (g) => {
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2729
|
+
const h = b(n), p = h && h[0] && h[1];
|
|
2730
|
+
g === !1 && x === !0 && p && (d(), x = !1);
|
|
2731
|
+
}, y = () => {
|
|
2732
|
+
x = !0;
|
|
2730
2733
|
};
|
|
2731
2734
|
return he(e, {
|
|
2732
2735
|
dateChange: d
|
|
@@ -2736,24 +2739,24 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2736
2739
|
locale: Co,
|
|
2737
2740
|
dateChange: d,
|
|
2738
2741
|
myValue: n,
|
|
2739
|
-
disabledDate:
|
|
2740
|
-
calendarChange:
|
|
2742
|
+
disabledDate: r,
|
|
2743
|
+
calendarChange: i,
|
|
2741
2744
|
openChange: u,
|
|
2742
|
-
change:
|
|
2745
|
+
change: y
|
|
2743
2746
|
};
|
|
2744
2747
|
}
|
|
2745
2748
|
});
|
|
2746
2749
|
function $i(e, o, t, n, a, l) {
|
|
2747
|
-
const
|
|
2750
|
+
const i = H("a-range-picker");
|
|
2748
2751
|
return D(), $("div", {
|
|
2749
2752
|
class: "ecan-range-picker",
|
|
2750
2753
|
style: U(e.style)
|
|
2751
2754
|
}, [
|
|
2752
|
-
G(
|
|
2755
|
+
G(i, {
|
|
2753
2756
|
class: "range-picker",
|
|
2754
2757
|
dropdownClassName: "ecan-range-picker-dropdown",
|
|
2755
2758
|
value: e.myValue,
|
|
2756
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2759
|
+
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
2757
2760
|
format: e.format,
|
|
2758
2761
|
picker: e.picker,
|
|
2759
2762
|
locale: e.locale,
|
|
@@ -2765,7 +2768,7 @@ function $i(e, o, t, n, a, l) {
|
|
|
2765
2768
|
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "disabled-date", "onChange", "onCalendarChange", "onOpenChange"])
|
|
2766
2769
|
], 4);
|
|
2767
2770
|
}
|
|
2768
|
-
const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-
|
|
2771
|
+
const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-7a08450d"]]), Pi = ae(Ni), en = {
|
|
2769
2772
|
...se,
|
|
2770
2773
|
width: "200px",
|
|
2771
2774
|
name: "按钮",
|
|
@@ -2789,35 +2792,35 @@ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-a3f2ce0b
|
|
|
2789
2792
|
},
|
|
2790
2793
|
setup(e) {
|
|
2791
2794
|
const o = re(e), n = me(e)("click", () => {
|
|
2792
|
-
const
|
|
2793
|
-
|
|
2795
|
+
const r = b(l);
|
|
2796
|
+
r && e.target === "event" && window.parent.postMessage({
|
|
2794
2797
|
type: "openPage",
|
|
2795
|
-
url:
|
|
2798
|
+
url: r
|
|
2796
2799
|
}, "*");
|
|
2797
|
-
}), a = q(() => de(e.text)), l = q(() => de(e.href) || null),
|
|
2798
|
-
const
|
|
2799
|
-
if (!(
|
|
2800
|
+
}), a = q(() => de(e.text)), l = q(() => de(e.href) || null), i = q(() => {
|
|
2801
|
+
const r = e.target;
|
|
2802
|
+
if (!(r === "event" || b(l) == null))
|
|
2800
2803
|
return {
|
|
2801
2804
|
self: "_self",
|
|
2802
2805
|
blank: "_blank"
|
|
2803
|
-
}[
|
|
2806
|
+
}[r];
|
|
2804
2807
|
});
|
|
2805
2808
|
return {
|
|
2806
2809
|
style: o,
|
|
2807
2810
|
click: n,
|
|
2808
2811
|
myText: a,
|
|
2809
2812
|
myHref: l,
|
|
2810
|
-
myTarget:
|
|
2813
|
+
myTarget: i
|
|
2811
2814
|
};
|
|
2812
2815
|
}
|
|
2813
2816
|
});
|
|
2814
2817
|
function Gi(e, o, t, n, a, l) {
|
|
2815
|
-
const
|
|
2818
|
+
const i = H("a-button");
|
|
2816
2819
|
return D(), $("div", {
|
|
2817
2820
|
class: "ecan-button",
|
|
2818
2821
|
style: U(e.style)
|
|
2819
2822
|
}, [
|
|
2820
|
-
G(
|
|
2823
|
+
G(i, {
|
|
2821
2824
|
block: "",
|
|
2822
2825
|
onClick: e.click,
|
|
2823
2826
|
type: e.mode,
|
|
@@ -2865,10 +2868,10 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2865
2868
|
setup(e) {
|
|
2866
2869
|
const o = re(e), t = M([]), n = M([]), a = (d) => {
|
|
2867
2870
|
const u = e.value;
|
|
2868
|
-
let
|
|
2871
|
+
let y = [];
|
|
2869
2872
|
d.forEach((g) => {
|
|
2870
|
-
g.checked &&
|
|
2871
|
-
}), typeof u == "string" && u !== "" ?
|
|
2873
|
+
g.checked && y.push(g.value);
|
|
2874
|
+
}), typeof u == "string" && u !== "" ? y = y.concat(u.split(",")) : Array.isArray(u) && (y = y.concat(u)), t.value = d, n.value = y;
|
|
2872
2875
|
};
|
|
2873
2876
|
ne(() => [e.data, e.value], ([d]) => {
|
|
2874
2877
|
a(d);
|
|
@@ -2876,13 +2879,13 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2876
2879
|
immediate: !0,
|
|
2877
2880
|
deep: !0
|
|
2878
2881
|
});
|
|
2879
|
-
const l = _e(e), { pageMode:
|
|
2882
|
+
const l = _e(e), { pageMode: i } = N(fe, {
|
|
2880
2883
|
pageMode: "normal"
|
|
2881
|
-
}),
|
|
2882
|
-
var
|
|
2883
|
-
if (e.dataType !== "request" ||
|
|
2884
|
+
}), r = async () => {
|
|
2885
|
+
var y, g;
|
|
2886
|
+
if (e.dataType !== "request" || b(i) === "design")
|
|
2884
2887
|
return;
|
|
2885
|
-
const d = await l(), u = ((g = (
|
|
2888
|
+
const d = await l(), u = ((g = (y = d == null ? void 0 : d.data) == null ? void 0 : y.data) == null ? void 0 : g.rows) || [];
|
|
2886
2889
|
a(u);
|
|
2887
2890
|
}, { getGlobalModel: s, setGlobalModel: f } = N(ye, {
|
|
2888
2891
|
// @ts-ignore
|
|
@@ -2898,37 +2901,37 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2898
2901
|
type: e.type,
|
|
2899
2902
|
value: n
|
|
2900
2903
|
});
|
|
2901
|
-
const
|
|
2904
|
+
const v = me(e)("checkboxChange", () => {
|
|
2902
2905
|
const d = s(e.id);
|
|
2903
2906
|
f(e.id, { ...d, RECORD: n });
|
|
2904
|
-
}), { setRequest:
|
|
2907
|
+
}), { setRequest: x } = N(Se, {
|
|
2905
2908
|
// @ts-ignore
|
|
2906
2909
|
// eslint-disable-next-line no-void
|
|
2907
|
-
setRequest: ({ id: d, sortNum: u, requestFn:
|
|
2910
|
+
setRequest: ({ id: d, sortNum: u, requestFn: y }) => {
|
|
2908
2911
|
}
|
|
2909
2912
|
});
|
|
2910
|
-
return
|
|
2913
|
+
return x({
|
|
2911
2914
|
id: e.id,
|
|
2912
|
-
requestFn:
|
|
2915
|
+
requestFn: r,
|
|
2913
2916
|
sortNum: e.requestSort
|
|
2914
2917
|
}), {
|
|
2915
2918
|
myOption: t,
|
|
2916
2919
|
style: o,
|
|
2917
2920
|
myValue: n,
|
|
2918
|
-
checkboxChange:
|
|
2921
|
+
checkboxChange: v
|
|
2919
2922
|
};
|
|
2920
2923
|
}
|
|
2921
2924
|
});
|
|
2922
2925
|
function Hi(e, o, t, n, a, l) {
|
|
2923
|
-
const
|
|
2926
|
+
const i = H("a-checkbox-group");
|
|
2924
2927
|
return D(), $("div", {
|
|
2925
2928
|
class: "ecan-checkbox",
|
|
2926
2929
|
style: U(e.style)
|
|
2927
2930
|
}, [
|
|
2928
|
-
G(
|
|
2931
|
+
G(i, {
|
|
2929
2932
|
options: e.myOption,
|
|
2930
2933
|
value: e.myValue,
|
|
2931
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2934
|
+
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
2932
2935
|
onChange: e.checkboxChange
|
|
2933
2936
|
}, null, 8, ["options", "value", "onChange"])
|
|
2934
2937
|
], 4);
|
|
@@ -3002,8 +3005,8 @@ const Zi = /* @__PURE__ */ K(Vi, [["render", Hi]]), Ji = ae(Zi), an = {
|
|
|
3002
3005
|
var s;
|
|
3003
3006
|
const o = await Fe.post(e, {}, {
|
|
3004
3007
|
responseType: "blob"
|
|
3005
|
-
}), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), l = new Blob([t]),
|
|
3006
|
-
|
|
3008
|
+
}), { 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);
|
|
3009
|
+
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);
|
|
3007
3010
|
};
|
|
3008
3011
|
qe([
|
|
3009
3012
|
je,
|
|
@@ -3026,12 +3029,12 @@ const Qi = Q({
|
|
|
3026
3029
|
setup(e, { expose: o }) {
|
|
3027
3030
|
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3028
3031
|
a.value = !1;
|
|
3029
|
-
},
|
|
3030
|
-
let { data: A = [] } =
|
|
3032
|
+
}, i = q(() => {
|
|
3033
|
+
let { data: A = [] } = b(n)[0] || {};
|
|
3031
3034
|
if (Array.isArray(e.colors)) {
|
|
3032
|
-
const
|
|
3035
|
+
const w = e.isUseLabelColors, c = e.colors;
|
|
3033
3036
|
A = A.map((m, k) => ({
|
|
3034
|
-
label:
|
|
3037
|
+
label: w ? { color: c[k] } : {},
|
|
3035
3038
|
...m
|
|
3036
3039
|
}));
|
|
3037
3040
|
}
|
|
@@ -3088,8 +3091,8 @@ const Qi = Q({
|
|
|
3088
3091
|
tooltip: {
|
|
3089
3092
|
show: e.tooltipShow,
|
|
3090
3093
|
trigger: e.tooltipTrigger,
|
|
3091
|
-
formatter: (
|
|
3092
|
-
const { marker: c, seriesName: m, name: k, value: R, percent: E, data: T } =
|
|
3094
|
+
formatter: (w) => {
|
|
3095
|
+
const { marker: c, seriesName: m, name: k, value: R, percent: E, data: T } = w || {};
|
|
3093
3096
|
return de(
|
|
3094
3097
|
e.tooltipFormatter,
|
|
3095
3098
|
{
|
|
@@ -3163,52 +3166,52 @@ const Qi = Q({
|
|
|
3163
3166
|
}
|
|
3164
3167
|
]
|
|
3165
3168
|
};
|
|
3166
|
-
}), { getGlobalModel:
|
|
3169
|
+
}), { getGlobalModel: r, setGlobalModel: s } = N(ye, {
|
|
3167
3170
|
// @ts-ignore
|
|
3168
3171
|
// eslint-disable-next-line no-void
|
|
3169
3172
|
getGlobalModel: (A) => {
|
|
3170
3173
|
},
|
|
3171
3174
|
// @ts-ignore
|
|
3172
3175
|
// eslint-disable-next-line no-void
|
|
3173
|
-
setGlobalModel: (A,
|
|
3176
|
+
setGlobalModel: (A, w) => {
|
|
3174
3177
|
}
|
|
3175
3178
|
}), { pageMode: f } = N(fe, {
|
|
3176
3179
|
pageMode: "normal"
|
|
3177
|
-
}),
|
|
3178
|
-
const { dataset: c } = Qe(A,
|
|
3180
|
+
}), C = (A = [], w) => {
|
|
3181
|
+
const { dataset: c } = Qe(A, w);
|
|
3179
3182
|
n.value = c;
|
|
3180
|
-
},
|
|
3181
|
-
const c = Qe(A,
|
|
3183
|
+
}, v = (A = [], w) => {
|
|
3184
|
+
const c = Qe(A, w);
|
|
3182
3185
|
n.value = c.dataset;
|
|
3183
3186
|
};
|
|
3184
3187
|
ne(() => e.data, (A) => {
|
|
3185
|
-
(e.dataType === "static" ||
|
|
3188
|
+
(e.dataType === "static" || b(f) === "design") && C(A);
|
|
3186
3189
|
}, {
|
|
3187
3190
|
immediate: !0,
|
|
3188
3191
|
deep: !0
|
|
3189
3192
|
});
|
|
3190
|
-
const
|
|
3191
|
-
var A,
|
|
3192
|
-
if (!(e.dataType !== "request" ||
|
|
3193
|
+
const x = M(!1), d = _e(e), u = async () => {
|
|
3194
|
+
var A, w;
|
|
3195
|
+
if (!(e.dataType !== "request" || b(f) === "design"))
|
|
3193
3196
|
try {
|
|
3194
|
-
|
|
3197
|
+
x.value = !0;
|
|
3195
3198
|
const c = await d();
|
|
3196
|
-
|
|
3199
|
+
C((w = (A = c == null ? void 0 : c.data) == null ? void 0 : A.data) == null ? void 0 : w.rows, e.valueTypeDataFieldNames);
|
|
3197
3200
|
} catch (c) {
|
|
3198
3201
|
console.error(c);
|
|
3199
3202
|
} finally {
|
|
3200
|
-
|
|
3203
|
+
x.value = !1;
|
|
3201
3204
|
}
|
|
3202
3205
|
}, g = me(e)("click", (A) => {
|
|
3203
|
-
const
|
|
3204
|
-
s(e.id, { ...
|
|
3205
|
-
}),
|
|
3206
|
+
const w = r(e.id);
|
|
3207
|
+
s(e.id, { ...w, RECORD: A == null ? void 0 : A.data });
|
|
3208
|
+
}), h = ot(e), p = async () => {
|
|
3206
3209
|
var A;
|
|
3207
3210
|
try {
|
|
3208
|
-
|
|
3209
|
-
const
|
|
3211
|
+
x.value = !0;
|
|
3212
|
+
const w = await h(), { data: c } = w.data || {};
|
|
3210
3213
|
if (c) {
|
|
3211
|
-
const { columns: m = [], rows: k = [] } = ((A =
|
|
3214
|
+
const { columns: m = [], rows: k = [] } = ((A = w == null ? void 0 : w.data) == null ? void 0 : A.data) ?? {};
|
|
3212
3215
|
let R = [];
|
|
3213
3216
|
if (m.length > 0) {
|
|
3214
3217
|
const E = m[0], T = m[1];
|
|
@@ -3217,15 +3220,15 @@ const Qi = Q({
|
|
|
3217
3220
|
value: j[T]
|
|
3218
3221
|
}));
|
|
3219
3222
|
}
|
|
3220
|
-
|
|
3223
|
+
v(R);
|
|
3221
3224
|
}
|
|
3222
|
-
} catch (
|
|
3223
|
-
console.error(
|
|
3225
|
+
} catch (w) {
|
|
3226
|
+
console.error(w);
|
|
3224
3227
|
} finally {
|
|
3225
|
-
|
|
3228
|
+
x.value = !1;
|
|
3226
3229
|
}
|
|
3227
3230
|
}, _ = () => {
|
|
3228
|
-
if (
|
|
3231
|
+
if (b(f) !== "design")
|
|
3229
3232
|
switch (e.dataType) {
|
|
3230
3233
|
case "indicator":
|
|
3231
3234
|
p();
|
|
@@ -3237,40 +3240,40 @@ const Qi = Q({
|
|
|
3237
3240
|
};
|
|
3238
3241
|
he(e, {
|
|
3239
3242
|
resetRecord: () => {
|
|
3240
|
-
const A = e.id,
|
|
3241
|
-
s(A, { ...
|
|
3243
|
+
const A = e.id, w = r(A);
|
|
3244
|
+
s(A, { ...w, RECORD: "" });
|
|
3242
3245
|
},
|
|
3243
3246
|
refreshData: _,
|
|
3244
3247
|
click: g
|
|
3245
3248
|
}), o({
|
|
3246
3249
|
refreshData: _
|
|
3247
3250
|
});
|
|
3248
|
-
const { setRequest:
|
|
3251
|
+
const { setRequest: S } = N(Se, {
|
|
3249
3252
|
setRequest: (A) => {
|
|
3250
3253
|
}
|
|
3251
3254
|
});
|
|
3252
|
-
return typeof
|
|
3255
|
+
return typeof S == "function" && S({
|
|
3253
3256
|
id: e.id,
|
|
3254
3257
|
requestFn: _,
|
|
3255
3258
|
sortNum: e.requestSort
|
|
3256
3259
|
}), {
|
|
3257
|
-
option:
|
|
3260
|
+
option: i,
|
|
3258
3261
|
style: t,
|
|
3259
3262
|
click: g,
|
|
3260
|
-
loading:
|
|
3263
|
+
loading: x,
|
|
3261
3264
|
visible: a,
|
|
3262
3265
|
hideModal: l
|
|
3263
3266
|
};
|
|
3264
3267
|
}
|
|
3265
3268
|
});
|
|
3266
3269
|
function Ki(e, o, t, n, a, l) {
|
|
3267
|
-
const
|
|
3270
|
+
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
3268
3271
|
return D(), $("div", {
|
|
3269
3272
|
style: U(e.style)
|
|
3270
3273
|
}, [
|
|
3271
|
-
G(
|
|
3274
|
+
G(r, { spinning: e.loading }, {
|
|
3272
3275
|
default: Y(() => [
|
|
3273
|
-
G(
|
|
3276
|
+
G(i, {
|
|
3274
3277
|
option: e.option,
|
|
3275
3278
|
autoresize: "",
|
|
3276
3279
|
onClick: e.click
|
|
@@ -3286,9 +3289,9 @@ function Ki(e, o, t, n, a, l) {
|
|
|
3286
3289
|
onCancel: e.hideModal
|
|
3287
3290
|
}, {
|
|
3288
3291
|
default: Y(() => [
|
|
3289
|
-
G(
|
|
3292
|
+
G(r, { spinning: e.loading }, {
|
|
3290
3293
|
default: Y(() => [
|
|
3291
|
-
G(
|
|
3294
|
+
G(i, {
|
|
3292
3295
|
option: e.option,
|
|
3293
3296
|
"update-options": { notMerge: !0 },
|
|
3294
3297
|
autoresize: ""
|
|
@@ -3390,10 +3393,10 @@ const or = Q({
|
|
|
3390
3393
|
AModal: Ae
|
|
3391
3394
|
},
|
|
3392
3395
|
setup(e, { expose: o }) {
|
|
3393
|
-
const t = re(e), n = M([]), a = M([]), l = M(!1),
|
|
3396
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
|
|
3394
3397
|
l.value = !1;
|
|
3395
|
-
},
|
|
3396
|
-
const
|
|
3398
|
+
}, r = q(() => {
|
|
3399
|
+
const w = e.xAxisLabelFormatter, c = e.yAxisLabelFormatter;
|
|
3397
3400
|
return {
|
|
3398
3401
|
toolbox: {
|
|
3399
3402
|
show: e.toolboxShow,
|
|
@@ -3477,7 +3480,7 @@ const or = Q({
|
|
|
3477
3480
|
},
|
|
3478
3481
|
xAxis: {
|
|
3479
3482
|
type: "category",
|
|
3480
|
-
data:
|
|
3483
|
+
data: b(a),
|
|
3481
3484
|
minInterval: e.xAxisMinInterval,
|
|
3482
3485
|
splitLine: {
|
|
3483
3486
|
show: e.xAxisSplitLineShow,
|
|
@@ -3492,7 +3495,7 @@ const or = Q({
|
|
|
3492
3495
|
width: e.xAxisLabelWidth,
|
|
3493
3496
|
overflow: e.xAxisLabelOverflow,
|
|
3494
3497
|
formatter(m) {
|
|
3495
|
-
return Ne(
|
|
3498
|
+
return Ne(w, m);
|
|
3496
3499
|
}
|
|
3497
3500
|
},
|
|
3498
3501
|
axisLine: {
|
|
@@ -3532,27 +3535,27 @@ const or = Q({
|
|
|
3532
3535
|
top: e.legendTop,
|
|
3533
3536
|
left: e.legendLeft
|
|
3534
3537
|
},
|
|
3535
|
-
series:
|
|
3538
|
+
series: b(n)
|
|
3536
3539
|
};
|
|
3537
3540
|
}), { getGlobalModel: s, setGlobalModel: f } = N(ye, {
|
|
3538
3541
|
// @ts-ignore
|
|
3539
3542
|
// eslint-disable-next-line no-void
|
|
3540
|
-
getGlobalModel: (
|
|
3543
|
+
getGlobalModel: (w) => {
|
|
3541
3544
|
},
|
|
3542
3545
|
// @ts-ignore
|
|
3543
3546
|
// eslint-disable-next-line no-void
|
|
3544
|
-
setGlobalModel: (
|
|
3547
|
+
setGlobalModel: (w, c) => {
|
|
3545
3548
|
}
|
|
3546
|
-
}), { pageMode:
|
|
3549
|
+
}), { pageMode: C } = N(fe, {
|
|
3547
3550
|
pageMode: "normal"
|
|
3548
|
-
}),
|
|
3551
|
+
}), v = (w = [], c = !1) => {
|
|
3549
3552
|
let m;
|
|
3550
3553
|
if (e.dataFieldConfigType === "key") {
|
|
3551
3554
|
const T = c ? e.keyTypeDataFieldNames : null;
|
|
3552
|
-
m = Ge(
|
|
3555
|
+
m = Ge(w, T);
|
|
3553
3556
|
} else if (e.dataFieldConfigType === "value") {
|
|
3554
3557
|
const T = c ? e.valueTypeDataFieldNames : null;
|
|
3555
|
-
m = Qe(
|
|
3558
|
+
m = Qe(w, T);
|
|
3556
3559
|
}
|
|
3557
3560
|
a.value = m.dimensions;
|
|
3558
3561
|
const k = m.dataset, R = [], E = k.length;
|
|
@@ -3583,8 +3586,8 @@ const or = Q({
|
|
|
3583
3586
|
}
|
|
3584
3587
|
});
|
|
3585
3588
|
n.value = R;
|
|
3586
|
-
},
|
|
3587
|
-
const R = Ge(
|
|
3589
|
+
}, x = (w = [], c, m = !1) => {
|
|
3590
|
+
const R = Ge(w, m ? c : null);
|
|
3588
3591
|
a.value = R.dimensions;
|
|
3589
3592
|
const E = R.dataset, T = [], j = E.length;
|
|
3590
3593
|
for (let J = 0; J < j; J++)
|
|
@@ -3599,32 +3602,32 @@ const or = Q({
|
|
|
3599
3602
|
});
|
|
3600
3603
|
n.value = T;
|
|
3601
3604
|
};
|
|
3602
|
-
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
3603
|
-
(e.dataType === "static" ||
|
|
3605
|
+
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([w]) => {
|
|
3606
|
+
(e.dataType === "static" || b(C) === "design") && v(w);
|
|
3604
3607
|
}, {
|
|
3605
3608
|
immediate: !0,
|
|
3606
3609
|
deep: !0
|
|
3607
3610
|
});
|
|
3608
|
-
const d = M(!1), u = _e(e),
|
|
3609
|
-
var
|
|
3610
|
-
if (!(e.dataType !== "request" ||
|
|
3611
|
+
const d = M(!1), u = _e(e), y = async () => {
|
|
3612
|
+
var w, c;
|
|
3613
|
+
if (!(e.dataType !== "request" || b(C) === "design"))
|
|
3611
3614
|
try {
|
|
3612
3615
|
d.value = !0;
|
|
3613
3616
|
const m = await u();
|
|
3614
|
-
|
|
3617
|
+
v((c = (w = m == null ? void 0 : m.data) == null ? void 0 : w.data) == null ? void 0 : c.rows, !0);
|
|
3615
3618
|
} catch (m) {
|
|
3616
3619
|
console.error(m);
|
|
3617
3620
|
} finally {
|
|
3618
3621
|
d.value = !1;
|
|
3619
3622
|
}
|
|
3620
|
-
},
|
|
3623
|
+
}, h = me(e)("click", (w) => {
|
|
3621
3624
|
const c = s(e.id);
|
|
3622
|
-
f(e.id, { ...c, RECORD:
|
|
3625
|
+
f(e.id, { ...c, RECORD: w == null ? void 0 : w.data });
|
|
3623
3626
|
}), p = ot(e), _ = async () => {
|
|
3624
|
-
var
|
|
3627
|
+
var w;
|
|
3625
3628
|
try {
|
|
3626
3629
|
d.value = !0;
|
|
3627
|
-
const c = await p(), { columns: m = [], rows: k = [] } = ((
|
|
3630
|
+
const c = await p(), { columns: m = [], rows: k = [] } = ((w = c == null ? void 0 : c.data) == null ? void 0 : w.data) ?? {};
|
|
3628
3631
|
let R;
|
|
3629
3632
|
m.length > 0 && (R = {
|
|
3630
3633
|
name: m[0],
|
|
@@ -3632,33 +3635,33 @@ const or = Q({
|
|
|
3632
3635
|
label: E,
|
|
3633
3636
|
value: E
|
|
3634
3637
|
}))
|
|
3635
|
-
}),
|
|
3638
|
+
}), x(k, R, !0);
|
|
3636
3639
|
} catch (c) {
|
|
3637
3640
|
console.error(c);
|
|
3638
3641
|
} finally {
|
|
3639
3642
|
d.value = !1;
|
|
3640
3643
|
}
|
|
3641
3644
|
}, I = () => {
|
|
3642
|
-
if (
|
|
3645
|
+
if (b(C) !== "design")
|
|
3643
3646
|
switch (e.dataType) {
|
|
3644
3647
|
case "indicator":
|
|
3645
3648
|
_();
|
|
3646
3649
|
break;
|
|
3647
3650
|
case "request":
|
|
3648
|
-
|
|
3651
|
+
y();
|
|
3649
3652
|
break;
|
|
3650
3653
|
}
|
|
3651
3654
|
};
|
|
3652
3655
|
he(e, {
|
|
3653
3656
|
refreshData: I,
|
|
3654
3657
|
resetRecord: () => {
|
|
3655
|
-
const
|
|
3656
|
-
f(
|
|
3658
|
+
const w = e.id, c = s(w);
|
|
3659
|
+
f(w, { ...c, RECORD: "" });
|
|
3657
3660
|
},
|
|
3658
|
-
click:
|
|
3661
|
+
click: h
|
|
3659
3662
|
});
|
|
3660
3663
|
const { setRequest: A } = N(Se, {
|
|
3661
|
-
setRequest: (
|
|
3664
|
+
setRequest: (w) => {
|
|
3662
3665
|
}
|
|
3663
3666
|
});
|
|
3664
3667
|
return typeof A == "function" && A({
|
|
@@ -3668,23 +3671,23 @@ const or = Q({
|
|
|
3668
3671
|
}), o({
|
|
3669
3672
|
refreshData: I
|
|
3670
3673
|
}), {
|
|
3671
|
-
option:
|
|
3674
|
+
option: r,
|
|
3672
3675
|
style: t,
|
|
3673
|
-
click:
|
|
3676
|
+
click: h,
|
|
3674
3677
|
loading: d,
|
|
3675
3678
|
visible: l,
|
|
3676
|
-
hideModal:
|
|
3679
|
+
hideModal: i
|
|
3677
3680
|
};
|
|
3678
3681
|
}
|
|
3679
3682
|
});
|
|
3680
3683
|
function nr(e, o, t, n, a, l) {
|
|
3681
|
-
const
|
|
3684
|
+
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
3682
3685
|
return D(), $("div", {
|
|
3683
3686
|
style: U(e.style)
|
|
3684
3687
|
}, [
|
|
3685
|
-
G(
|
|
3688
|
+
G(r, { spinning: e.loading }, {
|
|
3686
3689
|
default: Y(() => [
|
|
3687
|
-
G(
|
|
3690
|
+
G(i, {
|
|
3688
3691
|
option: e.option,
|
|
3689
3692
|
autoresize: "",
|
|
3690
3693
|
onClick: e.click
|
|
@@ -3700,9 +3703,9 @@ function nr(e, o, t, n, a, l) {
|
|
|
3700
3703
|
onCancel: e.hideModal
|
|
3701
3704
|
}, {
|
|
3702
3705
|
default: Y(() => [
|
|
3703
|
-
G(
|
|
3706
|
+
G(r, { spinning: e.loading }, {
|
|
3704
3707
|
default: Y(() => [
|
|
3705
|
-
G(
|
|
3708
|
+
G(i, {
|
|
3706
3709
|
option: e.option,
|
|
3707
3710
|
"update-options": { notMerge: !0 },
|
|
3708
3711
|
autoresize: ""
|
|
@@ -3827,8 +3830,8 @@ const rr = Q({
|
|
|
3827
3830
|
setup(e, { expose: o }) {
|
|
3828
3831
|
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3829
3832
|
a.value = !1;
|
|
3830
|
-
},
|
|
3831
|
-
const c =
|
|
3833
|
+
}, i = q(() => {
|
|
3834
|
+
const c = b(n), m = c.length, k = [];
|
|
3832
3835
|
for (let R = 0; R < m; R++) {
|
|
3833
3836
|
const E = {
|
|
3834
3837
|
...c[R],
|
|
@@ -3843,7 +3846,7 @@ const rr = Q({
|
|
|
3843
3846
|
}, k.push(E);
|
|
3844
3847
|
}
|
|
3845
3848
|
return k;
|
|
3846
|
-
}),
|
|
3849
|
+
}), r = M([]), s = M(!1), f = q(() => {
|
|
3847
3850
|
const c = e.yAxisLabelFormatter, m = e.xAxisLabelFormatter;
|
|
3848
3851
|
return {
|
|
3849
3852
|
toolbox: {
|
|
@@ -3943,7 +3946,7 @@ const rr = Q({
|
|
|
3943
3946
|
},
|
|
3944
3947
|
xAxis: {
|
|
3945
3948
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
3946
|
-
data: e.isUseHorizontalAxis ? null :
|
|
3949
|
+
data: e.isUseHorizontalAxis ? null : b(r),
|
|
3947
3950
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
3948
3951
|
minInterval: e.xAxisMinInterval,
|
|
3949
3952
|
splitLine: {
|
|
@@ -3973,7 +3976,7 @@ const rr = Q({
|
|
|
3973
3976
|
},
|
|
3974
3977
|
yAxis: {
|
|
3975
3978
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
3976
|
-
data: e.isUseHorizontalAxis ?
|
|
3979
|
+
data: e.isUseHorizontalAxis ? b(r) : null,
|
|
3977
3980
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
3978
3981
|
minInterval: e.yAxisMinInterval,
|
|
3979
3982
|
splitLine: {
|
|
@@ -3997,11 +4000,11 @@ const rr = Q({
|
|
|
3997
4000
|
}
|
|
3998
4001
|
}
|
|
3999
4002
|
},
|
|
4000
|
-
series:
|
|
4003
|
+
series: b(i)
|
|
4001
4004
|
};
|
|
4002
|
-
}), { pageMode:
|
|
4005
|
+
}), { pageMode: C } = N(fe, {
|
|
4003
4006
|
pageMode: "normal"
|
|
4004
|
-
}),
|
|
4007
|
+
}), v = (c = [], m = !1) => {
|
|
4005
4008
|
let k = {};
|
|
4006
4009
|
if (e.dataFieldConfigType === "key") {
|
|
4007
4010
|
const R = m ? e.keyTypeDataFieldNames : null;
|
|
@@ -4010,13 +4013,13 @@ const rr = Q({
|
|
|
4010
4013
|
const R = m ? e.valueTypeDataFieldNames : null;
|
|
4011
4014
|
k = Qe(c, R);
|
|
4012
4015
|
}
|
|
4013
|
-
n.value = k.dataset,
|
|
4014
|
-
},
|
|
4016
|
+
n.value = k.dataset, r.value = k.dimensions;
|
|
4017
|
+
}, x = (c = [], m, k = !1) => {
|
|
4015
4018
|
const E = Ge(c, k ? m : null);
|
|
4016
|
-
n.value = E.dataset,
|
|
4019
|
+
n.value = E.dataset, r.value = E.dimensions;
|
|
4017
4020
|
};
|
|
4018
4021
|
ne(() => e.data, (c) => {
|
|
4019
|
-
(e.dataType === "static" ||
|
|
4022
|
+
(e.dataType === "static" || b(C) === "design") && v(c);
|
|
4020
4023
|
}, {
|
|
4021
4024
|
immediate: !0,
|
|
4022
4025
|
deep: !0
|
|
@@ -4026,17 +4029,17 @@ const rr = Q({
|
|
|
4026
4029
|
try {
|
|
4027
4030
|
s.value = !0;
|
|
4028
4031
|
const k = await d();
|
|
4029
|
-
|
|
4032
|
+
v((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
|
|
4030
4033
|
} catch (k) {
|
|
4031
4034
|
console.error(k);
|
|
4032
4035
|
} finally {
|
|
4033
4036
|
s.value = !1;
|
|
4034
4037
|
}
|
|
4035
|
-
},
|
|
4038
|
+
}, y = ot(e), g = async () => {
|
|
4036
4039
|
var c;
|
|
4037
4040
|
try {
|
|
4038
4041
|
s.value = !0;
|
|
4039
|
-
const m = await
|
|
4042
|
+
const m = await y(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
|
|
4040
4043
|
let E;
|
|
4041
4044
|
k.length > 0 && (E = {
|
|
4042
4045
|
name: k[0],
|
|
@@ -4044,14 +4047,14 @@ const rr = Q({
|
|
|
4044
4047
|
label: T,
|
|
4045
4048
|
value: T
|
|
4046
4049
|
}))
|
|
4047
|
-
}),
|
|
4050
|
+
}), x(R, E, !0);
|
|
4048
4051
|
} catch (m) {
|
|
4049
4052
|
console.error(m);
|
|
4050
4053
|
} finally {
|
|
4051
4054
|
s.value = !1;
|
|
4052
4055
|
}
|
|
4053
|
-
},
|
|
4054
|
-
if (
|
|
4056
|
+
}, h = () => {
|
|
4057
|
+
if (b(C) !== "design")
|
|
4055
4058
|
switch (e.dataType) {
|
|
4056
4059
|
case "indicator":
|
|
4057
4060
|
g();
|
|
@@ -4062,7 +4065,7 @@ const rr = Q({
|
|
|
4062
4065
|
}
|
|
4063
4066
|
};
|
|
4064
4067
|
o({
|
|
4065
|
-
refreshData:
|
|
4068
|
+
refreshData: h
|
|
4066
4069
|
});
|
|
4067
4070
|
const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
|
|
4068
4071
|
// @ts-ignore
|
|
@@ -4073,7 +4076,7 @@ const rr = Q({
|
|
|
4073
4076
|
// eslint-disable-next-line no-void
|
|
4074
4077
|
setGlobalModel: (c, m) => {
|
|
4075
4078
|
}
|
|
4076
|
-
}),
|
|
4079
|
+
}), S = p("click", (c) => {
|
|
4077
4080
|
const m = _(e.id);
|
|
4078
4081
|
I(e.id, { ...m, RECORD: c.data });
|
|
4079
4082
|
}), { setRequest: A } = N(Se, {
|
|
@@ -4082,11 +4085,11 @@ const rr = Q({
|
|
|
4082
4085
|
});
|
|
4083
4086
|
return typeof A == "function" && A({
|
|
4084
4087
|
id: e.id,
|
|
4085
|
-
requestFn:
|
|
4088
|
+
requestFn: h,
|
|
4086
4089
|
sortNum: e.requestSort
|
|
4087
4090
|
}), he(e, {
|
|
4088
|
-
refreshData:
|
|
4089
|
-
click:
|
|
4091
|
+
refreshData: h,
|
|
4092
|
+
click: S,
|
|
4090
4093
|
resetRecord: () => {
|
|
4091
4094
|
const c = e.id, m = _(c);
|
|
4092
4095
|
I(c, { ...m, RECORD: "" });
|
|
@@ -4094,8 +4097,8 @@ const rr = Q({
|
|
|
4094
4097
|
}), {
|
|
4095
4098
|
option: f,
|
|
4096
4099
|
style: t,
|
|
4097
|
-
refreshData:
|
|
4098
|
-
click:
|
|
4100
|
+
refreshData: h,
|
|
4101
|
+
click: S,
|
|
4099
4102
|
loading: s,
|
|
4100
4103
|
visible: a,
|
|
4101
4104
|
hideModal: l
|
|
@@ -4103,14 +4106,14 @@ const rr = Q({
|
|
|
4103
4106
|
}
|
|
4104
4107
|
});
|
|
4105
4108
|
function sr(e, o, t, n, a, l) {
|
|
4106
|
-
const
|
|
4109
|
+
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4107
4110
|
return D(), $("div", {
|
|
4108
4111
|
class: "ecan-bar",
|
|
4109
4112
|
style: U(e.style)
|
|
4110
4113
|
}, [
|
|
4111
|
-
G(
|
|
4114
|
+
G(r, { spinning: e.loading }, {
|
|
4112
4115
|
default: Y(() => [
|
|
4113
|
-
G(
|
|
4116
|
+
G(i, {
|
|
4114
4117
|
option: e.option,
|
|
4115
4118
|
"update-options": { notMerge: !0 },
|
|
4116
4119
|
autoresize: "",
|
|
@@ -4127,9 +4130,9 @@ function sr(e, o, t, n, a, l) {
|
|
|
4127
4130
|
onCancel: e.hideModal
|
|
4128
4131
|
}, {
|
|
4129
4132
|
default: Y(() => [
|
|
4130
|
-
G(
|
|
4133
|
+
G(r, { spinning: e.loading }, {
|
|
4131
4134
|
default: Y(() => [
|
|
4132
|
-
G(
|
|
4135
|
+
G(i, {
|
|
4133
4136
|
option: e.option,
|
|
4134
4137
|
"update-options": { notMerge: !0 },
|
|
4135
4138
|
autoresize: ""
|
|
@@ -4329,15 +4332,15 @@ const fr = Q({
|
|
|
4329
4332
|
trigger: e.tooltipTrigger,
|
|
4330
4333
|
formatter: function(I) {
|
|
4331
4334
|
var k;
|
|
4332
|
-
const { marker:
|
|
4335
|
+
const { marker: S, seriesName: A } = I, w = ((k = I == null ? void 0 : I.data) == null ? void 0 : k.record) ?? {}, { name: c, value: m } = w;
|
|
4333
4336
|
return de(e.tooltipFormatter, {
|
|
4334
4337
|
textData: {
|
|
4335
|
-
marker:
|
|
4338
|
+
marker: S,
|
|
4336
4339
|
seriesName: A,
|
|
4337
4340
|
a: A,
|
|
4338
4341
|
b: c,
|
|
4339
4342
|
c: m,
|
|
4340
|
-
...
|
|
4343
|
+
...w
|
|
4341
4344
|
}
|
|
4342
4345
|
});
|
|
4343
4346
|
},
|
|
@@ -4354,13 +4357,13 @@ const fr = Q({
|
|
|
4354
4357
|
},
|
|
4355
4358
|
series: [
|
|
4356
4359
|
{
|
|
4357
|
-
data:
|
|
4360
|
+
data: b(t),
|
|
4358
4361
|
type: "scatter",
|
|
4359
4362
|
symbolSize: e.symbolSize
|
|
4360
4363
|
}
|
|
4361
4364
|
]
|
|
4362
4365
|
};
|
|
4363
|
-
}), { getGlobalModel:
|
|
4366
|
+
}), { getGlobalModel: i, setGlobalModel: r } = N(ye, {
|
|
4364
4367
|
// @ts-ignore
|
|
4365
4368
|
// eslint-disable-next-line no-void
|
|
4366
4369
|
getGlobalModel: (p) => {
|
|
@@ -4372,68 +4375,68 @@ const fr = Q({
|
|
|
4372
4375
|
}), { pageMode: s } = N(fe, {
|
|
4373
4376
|
pageMode: "normal"
|
|
4374
4377
|
}), f = (p = [], _) => {
|
|
4375
|
-
const { name: I = "name", value:
|
|
4376
|
-
t.value = p.map((A) => ({ value: [A[I], A[
|
|
4378
|
+
const { name: I = "name", value: S = "value" } = _ || {};
|
|
4379
|
+
t.value = p.map((A) => ({ value: [A[I], A[S]], record: A }));
|
|
4377
4380
|
};
|
|
4378
4381
|
ne(() => e.data, (p) => {
|
|
4379
|
-
(e.dataType === "static" ||
|
|
4382
|
+
(e.dataType === "static" || b(s) === "design") && f(p);
|
|
4380
4383
|
}, {
|
|
4381
4384
|
immediate: !0,
|
|
4382
4385
|
deep: !0
|
|
4383
4386
|
});
|
|
4384
|
-
const
|
|
4387
|
+
const C = M(!1), v = _e(e), x = async () => {
|
|
4385
4388
|
var p, _;
|
|
4386
|
-
if (!(e.dataType !== "request" ||
|
|
4387
|
-
|
|
4389
|
+
if (!(e.dataType !== "request" || b(s) === "design")) {
|
|
4390
|
+
C.value = !0;
|
|
4388
4391
|
try {
|
|
4389
|
-
const I = await
|
|
4392
|
+
const I = await v();
|
|
4390
4393
|
f((_ = (p = I == null ? void 0 : I.data) == null ? void 0 : p.data) == null ? void 0 : _.rows, e.dataFieldNames);
|
|
4391
4394
|
} catch (I) {
|
|
4392
4395
|
console.error(I);
|
|
4393
4396
|
} finally {
|
|
4394
|
-
|
|
4397
|
+
C.value = !1;
|
|
4395
4398
|
}
|
|
4396
4399
|
}
|
|
4397
4400
|
}, u = me(e)("click", (p) => {
|
|
4398
|
-
const _ = e.id, I =
|
|
4399
|
-
|
|
4401
|
+
const _ = e.id, I = i(_);
|
|
4402
|
+
r(_, { ...I, RECORD: p == null ? void 0 : p.data });
|
|
4400
4403
|
});
|
|
4401
4404
|
he(e, {
|
|
4402
4405
|
refreshData: () => {
|
|
4403
|
-
|
|
4406
|
+
x();
|
|
4404
4407
|
},
|
|
4405
4408
|
click: u,
|
|
4406
4409
|
resetRecord: () => {
|
|
4407
|
-
const p = e.id, _ =
|
|
4408
|
-
|
|
4410
|
+
const p = e.id, _ = i(p);
|
|
4411
|
+
r(p, { ..._, RECORD: "" });
|
|
4409
4412
|
}
|
|
4410
4413
|
});
|
|
4411
|
-
const { setRequest:
|
|
4414
|
+
const { setRequest: h } = N(Se, {
|
|
4412
4415
|
setRequest: (p) => {
|
|
4413
4416
|
}
|
|
4414
4417
|
});
|
|
4415
|
-
return typeof
|
|
4418
|
+
return typeof h == "function" && h({
|
|
4416
4419
|
id: e.id,
|
|
4417
|
-
requestFn:
|
|
4420
|
+
requestFn: x,
|
|
4418
4421
|
sortNum: e.requestSort
|
|
4419
4422
|
}), {
|
|
4420
4423
|
option: l,
|
|
4421
4424
|
style: o,
|
|
4422
4425
|
click: u,
|
|
4423
|
-
loading:
|
|
4426
|
+
loading: C,
|
|
4424
4427
|
visible: n,
|
|
4425
4428
|
hideModal: a
|
|
4426
4429
|
};
|
|
4427
4430
|
}
|
|
4428
4431
|
});
|
|
4429
4432
|
function mr(e, o, t, n, a, l) {
|
|
4430
|
-
const
|
|
4433
|
+
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4431
4434
|
return D(), $("div", {
|
|
4432
4435
|
style: U(e.style)
|
|
4433
4436
|
}, [
|
|
4434
|
-
G(
|
|
4437
|
+
G(r, { spinning: e.loading }, {
|
|
4435
4438
|
default: Y(() => [
|
|
4436
|
-
G(
|
|
4439
|
+
G(i, {
|
|
4437
4440
|
option: e.option,
|
|
4438
4441
|
autoresize: "",
|
|
4439
4442
|
onClick: e.click
|
|
@@ -4449,9 +4452,9 @@ function mr(e, o, t, n, a, l) {
|
|
|
4449
4452
|
onCancel: e.hideModal
|
|
4450
4453
|
}, {
|
|
4451
4454
|
default: Y(() => [
|
|
4452
|
-
G(
|
|
4455
|
+
G(r, { spinning: e.loading }, {
|
|
4453
4456
|
default: Y(() => [
|
|
4454
|
-
G(
|
|
4457
|
+
G(i, {
|
|
4455
4458
|
option: e.option,
|
|
4456
4459
|
"update-options": { notMerge: !0 },
|
|
4457
4460
|
autoresize: ""
|
|
@@ -4501,11 +4504,11 @@ const gr = /* @__PURE__ */ K(fr, [["render", mr]]), hr = ae(gr), mn = {
|
|
|
4501
4504
|
}
|
|
4502
4505
|
});
|
|
4503
4506
|
function br(e, o, t, n, a, l) {
|
|
4504
|
-
const
|
|
4507
|
+
const i = H("echarts");
|
|
4505
4508
|
return D(), $("div", {
|
|
4506
4509
|
style: U(e.style)
|
|
4507
4510
|
}, [
|
|
4508
|
-
G(
|
|
4511
|
+
G(i, {
|
|
4509
4512
|
option: e.myOption,
|
|
4510
4513
|
"update-options": { notMerge: !0 },
|
|
4511
4514
|
autoresize: ""
|
|
@@ -4644,9 +4647,9 @@ const Sr = Q({
|
|
|
4644
4647
|
AModal: Ae
|
|
4645
4648
|
},
|
|
4646
4649
|
setup(e, { expose: o }) {
|
|
4647
|
-
const t = re(e), n = M([]), a = M([]), l = M(!1),
|
|
4650
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
|
|
4648
4651
|
l.value = !1;
|
|
4649
|
-
},
|
|
4652
|
+
}, r = q(() => ({
|
|
4650
4653
|
title: {
|
|
4651
4654
|
text: e.titleText,
|
|
4652
4655
|
subtext: e.titleSubtext,
|
|
@@ -4745,7 +4748,7 @@ const Sr = Q({
|
|
|
4745
4748
|
xAxis: {
|
|
4746
4749
|
minInterval: e.xAxisMinInterval,
|
|
4747
4750
|
type: "category",
|
|
4748
|
-
data:
|
|
4751
|
+
data: b(a),
|
|
4749
4752
|
splitLine: {
|
|
4750
4753
|
show: e.xAxisSplitLineShow,
|
|
4751
4754
|
lineStyle: {
|
|
@@ -4768,8 +4771,8 @@ const Sr = Q({
|
|
|
4768
4771
|
show: e.xAxisTickShow
|
|
4769
4772
|
}
|
|
4770
4773
|
},
|
|
4771
|
-
yAxis: v
|
|
4772
|
-
series:
|
|
4774
|
+
yAxis: b(v),
|
|
4775
|
+
series: b(n)
|
|
4773
4776
|
})), { pageMode: s } = N(fe, {
|
|
4774
4777
|
pageMode: "normal"
|
|
4775
4778
|
}), f = (c = [], m = !1) => {
|
|
@@ -4806,7 +4809,7 @@ const Sr = Q({
|
|
|
4806
4809
|
}), E.push(W);
|
|
4807
4810
|
}
|
|
4808
4811
|
n.value = E;
|
|
4809
|
-
},
|
|
4812
|
+
}, C = (c = [], m, k = !1) => {
|
|
4810
4813
|
const E = Ge(c, k ? m : null);
|
|
4811
4814
|
a.value = E.dimensions;
|
|
4812
4815
|
const T = E.dataset, j = [], J = T.length, F = e.seriesTypes;
|
|
@@ -4821,12 +4824,12 @@ const Sr = Q({
|
|
|
4821
4824
|
n.value = j;
|
|
4822
4825
|
};
|
|
4823
4826
|
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([c]) => {
|
|
4824
|
-
(e.dataType === "static" ||
|
|
4827
|
+
(e.dataType === "static" || b(s) === "design") && f(c);
|
|
4825
4828
|
}, {
|
|
4826
4829
|
immediate: !0,
|
|
4827
4830
|
deep: !0
|
|
4828
4831
|
});
|
|
4829
|
-
const
|
|
4832
|
+
const v = q(() => {
|
|
4830
4833
|
const c = e.yAxis;
|
|
4831
4834
|
return c == null ? void 0 : c.map((m) => ({
|
|
4832
4835
|
type: "value",
|
|
@@ -4849,23 +4852,23 @@ const Sr = Q({
|
|
|
4849
4852
|
}
|
|
4850
4853
|
}
|
|
4851
4854
|
}));
|
|
4852
|
-
}),
|
|
4855
|
+
}), x = M(!1), d = _e(e), u = async () => {
|
|
4853
4856
|
var c, m;
|
|
4854
|
-
if (!(e.dataType !== "request" ||
|
|
4857
|
+
if (!(e.dataType !== "request" || b(s) === "design"))
|
|
4855
4858
|
try {
|
|
4856
|
-
|
|
4859
|
+
x.value = !0;
|
|
4857
4860
|
const k = await d();
|
|
4858
4861
|
f((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
|
|
4859
4862
|
} catch (k) {
|
|
4860
4863
|
console.error(k);
|
|
4861
4864
|
} finally {
|
|
4862
|
-
|
|
4865
|
+
x.value = !1;
|
|
4863
4866
|
}
|
|
4864
|
-
},
|
|
4867
|
+
}, y = ot(e), g = async () => {
|
|
4865
4868
|
var c;
|
|
4866
4869
|
try {
|
|
4867
|
-
|
|
4868
|
-
const m = await
|
|
4870
|
+
x.value = !0;
|
|
4871
|
+
const m = await y(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
|
|
4869
4872
|
let E;
|
|
4870
4873
|
k.length > 0 && (E = {
|
|
4871
4874
|
name: k[0],
|
|
@@ -4873,14 +4876,14 @@ const Sr = Q({
|
|
|
4873
4876
|
label: T,
|
|
4874
4877
|
value: T
|
|
4875
4878
|
}))
|
|
4876
|
-
}),
|
|
4879
|
+
}), C(R, E, !0);
|
|
4877
4880
|
} catch (m) {
|
|
4878
4881
|
console.error(m);
|
|
4879
4882
|
} finally {
|
|
4880
|
-
|
|
4883
|
+
x.value = !1;
|
|
4881
4884
|
}
|
|
4882
|
-
},
|
|
4883
|
-
if (
|
|
4885
|
+
}, h = () => {
|
|
4886
|
+
if (b(s) !== "design")
|
|
4884
4887
|
switch (e.dataType) {
|
|
4885
4888
|
case "indicator":
|
|
4886
4889
|
g();
|
|
@@ -4891,7 +4894,7 @@ const Sr = Q({
|
|
|
4891
4894
|
}
|
|
4892
4895
|
};
|
|
4893
4896
|
o({
|
|
4894
|
-
refreshData:
|
|
4897
|
+
refreshData: h
|
|
4895
4898
|
});
|
|
4896
4899
|
const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
|
|
4897
4900
|
// @ts-ignore
|
|
@@ -4902,7 +4905,7 @@ const Sr = Q({
|
|
|
4902
4905
|
// eslint-disable-next-line no-void
|
|
4903
4906
|
setGlobalModel: (c, m) => {
|
|
4904
4907
|
}
|
|
4905
|
-
}),
|
|
4908
|
+
}), S = p("click", (c) => {
|
|
4906
4909
|
const m = _(e.id);
|
|
4907
4910
|
I(e.id, { ...m, RECORD: c == null ? void 0 : c.data });
|
|
4908
4911
|
}), { setRequest: A } = N(Se, {
|
|
@@ -4911,33 +4914,33 @@ const Sr = Q({
|
|
|
4911
4914
|
});
|
|
4912
4915
|
return typeof A == "function" && A({
|
|
4913
4916
|
id: e.id,
|
|
4914
|
-
requestFn:
|
|
4917
|
+
requestFn: h,
|
|
4915
4918
|
sortNum: e.requestSort
|
|
4916
4919
|
}), he(e, {
|
|
4917
4920
|
resetRecord: () => {
|
|
4918
4921
|
const c = e.id, m = _(c);
|
|
4919
4922
|
I(c, { ...m, RECORD: "" });
|
|
4920
4923
|
},
|
|
4921
|
-
refreshData:
|
|
4922
|
-
click:
|
|
4924
|
+
refreshData: h,
|
|
4925
|
+
click: S
|
|
4923
4926
|
}), {
|
|
4924
4927
|
style: t,
|
|
4925
|
-
option:
|
|
4926
|
-
click:
|
|
4927
|
-
loading:
|
|
4928
|
+
option: r,
|
|
4929
|
+
click: S,
|
|
4930
|
+
loading: x,
|
|
4928
4931
|
visible: l,
|
|
4929
|
-
hideModal:
|
|
4932
|
+
hideModal: i
|
|
4930
4933
|
};
|
|
4931
4934
|
}
|
|
4932
4935
|
});
|
|
4933
4936
|
function wr(e, o, t, n, a, l) {
|
|
4934
|
-
const
|
|
4937
|
+
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4935
4938
|
return D(), $("div", {
|
|
4936
4939
|
style: U(e.style)
|
|
4937
4940
|
}, [
|
|
4938
|
-
G(
|
|
4941
|
+
G(r, { spinning: e.loading }, {
|
|
4939
4942
|
default: Y(() => [
|
|
4940
|
-
G(
|
|
4943
|
+
G(i, {
|
|
4941
4944
|
option: e.option,
|
|
4942
4945
|
"update-options": { notMerge: !0 },
|
|
4943
4946
|
autoresize: "",
|
|
@@ -4954,9 +4957,9 @@ function wr(e, o, t, n, a, l) {
|
|
|
4954
4957
|
onCancel: e.hideModal
|
|
4955
4958
|
}, {
|
|
4956
4959
|
default: Y(() => [
|
|
4957
|
-
G(
|
|
4960
|
+
G(r, { spinning: e.loading }, {
|
|
4958
4961
|
default: Y(() => [
|
|
4959
|
-
G(
|
|
4962
|
+
G(i, {
|
|
4960
4963
|
option: e.option,
|
|
4961
4964
|
"update-options": { notMerge: !0 },
|
|
4962
4965
|
autoresize: "",
|
|
@@ -5008,24 +5011,24 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
5008
5011
|
width: "100%",
|
|
5009
5012
|
height: "100%"
|
|
5010
5013
|
})), l = me(e)("click", () => {
|
|
5011
|
-
}),
|
|
5014
|
+
}), i = M([]);
|
|
5012
5015
|
ne(() => e.data, (s) => {
|
|
5013
|
-
|
|
5016
|
+
i.value = s;
|
|
5014
5017
|
}, {
|
|
5015
5018
|
immediate: !0,
|
|
5016
5019
|
deep: !0
|
|
5017
5020
|
}), he(e, {
|
|
5018
5021
|
click: l
|
|
5019
5022
|
});
|
|
5020
|
-
const { setGlobalModel:
|
|
5023
|
+
const { setGlobalModel: r } = N(ye, {
|
|
5021
5024
|
// @ts-ignore
|
|
5022
5025
|
// eslint-disable-next-line no-void
|
|
5023
5026
|
setGlobalModel: (s, f) => {
|
|
5024
5027
|
}
|
|
5025
5028
|
});
|
|
5026
|
-
return
|
|
5029
|
+
return r(e.id, {
|
|
5027
5030
|
type: e.type,
|
|
5028
|
-
value:
|
|
5031
|
+
value: i
|
|
5029
5032
|
}), {
|
|
5030
5033
|
style: o,
|
|
5031
5034
|
click: l,
|
|
@@ -5048,7 +5051,7 @@ function jr(e, o, t, n, a, l) {
|
|
|
5048
5051
|
return D(), $("div", {
|
|
5049
5052
|
class: "ecan-border",
|
|
5050
5053
|
style: U(e.style),
|
|
5051
|
-
onClick: o[0] || (o[0] = (...
|
|
5054
|
+
onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
|
|
5052
5055
|
}, [
|
|
5053
5056
|
e.mode === "no-title" ? (D(), $("div", {
|
|
5054
5057
|
key: 0,
|
|
@@ -5123,21 +5126,21 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5123
5126
|
bottom: "bottom"
|
|
5124
5127
|
}[z]
|
|
5125
5128
|
};
|
|
5126
|
-
}), n = e.width, a = e.height, l = e.originalWidth,
|
|
5129
|
+
}), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r = M("80%"), s = M(0), f = M(), C = M(0), v = M({}), x = re(e), d = M({}), u = M(!1), y = M();
|
|
5127
5130
|
let g;
|
|
5128
|
-
const
|
|
5131
|
+
const h = () => {
|
|
5129
5132
|
f.value = parseFloat(n) / parseFloat(l);
|
|
5130
|
-
const z = parseFloat(a) / parseFloat(
|
|
5131
|
-
s.value = W *
|
|
5132
|
-
width: `${
|
|
5133
|
-
height: `${
|
|
5133
|
+
const z = parseFloat(a) / parseFloat(i), W = document.body.offsetWidth, X = document.body.offsetHeight;
|
|
5134
|
+
s.value = W * b(f), C.value = X * z, r.value = `${b(f) * 100}%`, v.value = {
|
|
5135
|
+
width: `${b(s)}px`,
|
|
5136
|
+
height: `${b(C)}px`
|
|
5134
5137
|
}, d.value = {
|
|
5135
|
-
...
|
|
5138
|
+
...b(x),
|
|
5136
5139
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
5137
|
-
transform: `scale(${
|
|
5140
|
+
transform: `scale(${b(s) / parseFloat(n)},${b(C) / parseFloat(a)})`
|
|
5138
5141
|
};
|
|
5139
5142
|
}, p = Rt(() => {
|
|
5140
|
-
|
|
5143
|
+
h();
|
|
5141
5144
|
}, 100), _ = () => {
|
|
5142
5145
|
const z = window.MutationObserver;
|
|
5143
5146
|
g = new z(p), g.observe(document.body, {
|
|
@@ -5147,15 +5150,15 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5147
5150
|
});
|
|
5148
5151
|
}, I = () => {
|
|
5149
5152
|
g && (g.disconnect(), g.takeRecords(), g = null);
|
|
5150
|
-
},
|
|
5153
|
+
}, S = M(!1), { touchRequest: A } = N(Se, {
|
|
5151
5154
|
// @ts-ignore
|
|
5152
5155
|
// eslint-disable-next-line no-void
|
|
5153
5156
|
touchRequest: () => {
|
|
5154
5157
|
}
|
|
5155
|
-
}),
|
|
5156
|
-
|
|
5158
|
+
}), w = () => {
|
|
5159
|
+
S.value = !0;
|
|
5157
5160
|
}, c = () => {
|
|
5158
|
-
|
|
5161
|
+
S.value = !1;
|
|
5159
5162
|
}, m = () => {
|
|
5160
5163
|
c();
|
|
5161
5164
|
}, k = () => {
|
|
@@ -5173,28 +5176,28 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5173
5176
|
const X = e.componentList;
|
|
5174
5177
|
console.log("componentList", X), Array.isArray(X) && (W = X.map((ie) => ie.id), R(z, [...new Set(W)]));
|
|
5175
5178
|
};
|
|
5176
|
-
ne(() =>
|
|
5179
|
+
ne(() => S.value, async (z) => {
|
|
5177
5180
|
z ? (u.value = !1, E(e.id), j(), await mt(() => {
|
|
5178
|
-
|
|
5181
|
+
h(), window.addEventListener("resize", p), _(), u.value = !0;
|
|
5179
5182
|
}), A()) : (T(), window.removeEventListener("resize", p), I());
|
|
5180
5183
|
});
|
|
5181
|
-
const J = q(() =>
|
|
5184
|
+
const J = q(() => b(f) >= 1), F = q(() => e.fullModal), B = q(() => {
|
|
5182
5185
|
let z = "ecan-modal";
|
|
5183
|
-
return
|
|
5186
|
+
return b(J) && (z += " ecan-full-width-modal"), b(F) && (z += " ecan-full-modal"), z;
|
|
5184
5187
|
});
|
|
5185
5188
|
return he(e, {
|
|
5186
|
-
showModal:
|
|
5189
|
+
showModal: w
|
|
5187
5190
|
}), {
|
|
5188
|
-
modalRef:
|
|
5189
|
-
containStyle:
|
|
5191
|
+
modalRef: y,
|
|
5192
|
+
containStyle: v,
|
|
5190
5193
|
contentStyle: d,
|
|
5191
5194
|
getContainer: o,
|
|
5192
5195
|
modalStyle: t,
|
|
5193
|
-
modalWith:
|
|
5196
|
+
modalWith: r,
|
|
5194
5197
|
isFullModal: F,
|
|
5195
|
-
style:
|
|
5196
|
-
visible:
|
|
5197
|
-
showModal:
|
|
5198
|
+
style: x,
|
|
5199
|
+
visible: S,
|
|
5200
|
+
showModal: w,
|
|
5198
5201
|
onOk: m,
|
|
5199
5202
|
onCancel: k,
|
|
5200
5203
|
isFullWidth: J,
|
|
@@ -5204,8 +5207,8 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5204
5207
|
}
|
|
5205
5208
|
});
|
|
5206
5209
|
function Jr(e, o, t, n, a, l) {
|
|
5207
|
-
const
|
|
5208
|
-
return D(), Re(
|
|
5210
|
+
const i = H("a-modal");
|
|
5211
|
+
return D(), Re(i, {
|
|
5209
5212
|
getContainer: e.getContainer,
|
|
5210
5213
|
wrapClassName: e.wrapClassName,
|
|
5211
5214
|
centered: "",
|
|
@@ -5229,9 +5232,9 @@ function Jr(e, o, t, n, a, l) {
|
|
|
5229
5232
|
class: "content",
|
|
5230
5233
|
style: U(e.contentStyle)
|
|
5231
5234
|
}, [
|
|
5232
|
-
(D(!0), $(Me, null, De(e.componentList, (
|
|
5233
|
-
key:
|
|
5234
|
-
},
|
|
5235
|
+
(D(!0), $(Me, null, De(e.componentList, (r, s) => (D(), Re(Fn(r.type), zn({
|
|
5236
|
+
key: r.id + s
|
|
5237
|
+
}, r), null, 16))), 128))
|
|
5235
5238
|
], 4)) : ve("", !0)
|
|
5236
5239
|
], 4)
|
|
5237
5240
|
]),
|
|
@@ -5304,49 +5307,49 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5304
5307
|
});
|
|
5305
5308
|
let a = null;
|
|
5306
5309
|
const l = () => {
|
|
5307
|
-
const d = Array.isArray(
|
|
5310
|
+
const d = Array.isArray(b(i)) ? b(i).length - 1 : 0;
|
|
5308
5311
|
e.autoSwitch && d > 0 && (a = setInterval(() => {
|
|
5309
|
-
const u =
|
|
5310
|
-
u <= d ? t.value = u : t.value = 0,
|
|
5312
|
+
const u = b(t) + 1;
|
|
5313
|
+
u <= d ? t.value = u : t.value = 0, r.value = b(i)[b(t)], v();
|
|
5311
5314
|
}, e.autoSwitchInterval * 1e3));
|
|
5312
5315
|
};
|
|
5313
5316
|
Ue(() => {
|
|
5314
|
-
|
|
5317
|
+
b(n) !== "design" && l();
|
|
5315
5318
|
}), Tt(() => {
|
|
5316
5319
|
clearInterval(a);
|
|
5317
5320
|
});
|
|
5318
|
-
const
|
|
5321
|
+
const i = M([]), r = M({});
|
|
5319
5322
|
ne(() => e.data, (d) => {
|
|
5320
|
-
|
|
5323
|
+
i.value = d, r.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
|
|
5321
5324
|
}, {
|
|
5322
5325
|
immediate: !0,
|
|
5323
5326
|
deep: !0
|
|
5324
5327
|
});
|
|
5325
|
-
const s = (d) => t.value === d, f = me(e), { setGlobalModel:
|
|
5328
|
+
const s = (d) => t.value === d, f = me(e), { setGlobalModel: C } = N(ye, {
|
|
5326
5329
|
// @ts-ignore
|
|
5327
5330
|
// eslint-disable-next-line no-void
|
|
5328
5331
|
setGlobalModel: (d, u) => {
|
|
5329
5332
|
}
|
|
5330
5333
|
});
|
|
5331
|
-
|
|
5332
|
-
value:
|
|
5334
|
+
C(e.id, {
|
|
5335
|
+
value: r,
|
|
5333
5336
|
activeKey: t
|
|
5334
5337
|
});
|
|
5335
|
-
const { emitRefreshPage:
|
|
5338
|
+
const { emitRefreshPage: v } = N(Je, {
|
|
5336
5339
|
// eslint-disable-next-line no-void
|
|
5337
5340
|
emitRefreshPage: () => {
|
|
5338
5341
|
}
|
|
5339
|
-
}),
|
|
5340
|
-
u !==
|
|
5342
|
+
}), x = f("tabChange", (d, u) => {
|
|
5343
|
+
u !== b(t) && (r.value = d, t.value = u, v());
|
|
5341
5344
|
});
|
|
5342
5345
|
return he(e, {
|
|
5343
|
-
tabChange:
|
|
5346
|
+
tabChange: x
|
|
5344
5347
|
}), {
|
|
5345
5348
|
style: o,
|
|
5346
5349
|
activeKey: t,
|
|
5347
5350
|
isActive: s,
|
|
5348
|
-
tabChange:
|
|
5349
|
-
myData:
|
|
5351
|
+
tabChange: x,
|
|
5352
|
+
myData: i,
|
|
5350
5353
|
useImagePath: $e
|
|
5351
5354
|
};
|
|
5352
5355
|
}
|
|
@@ -5366,25 +5369,25 @@ function ts(e, o, t, n, a, l) {
|
|
|
5366
5369
|
flexDirection: e.tabFlexDirection
|
|
5367
5370
|
})
|
|
5368
5371
|
}, [
|
|
5369
|
-
(D(!0), $(Me, null, De(e.myData, (
|
|
5372
|
+
(D(!0), $(Me, null, De(e.myData, (i, r) => (D(), $("div", {
|
|
5370
5373
|
class: "tab",
|
|
5371
5374
|
style: U({
|
|
5372
5375
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
5373
|
-
color: e.isActive(
|
|
5374
|
-
backgroundImage: e.isActive(
|
|
5376
|
+
color: e.isActive(r) ? e.activeTabColor : e.tabColor,
|
|
5377
|
+
backgroundImage: e.isActive(r) ? e.useImagePath(e.activeTabBackgroundImage, !0) : e.useImagePath(e.tabBackgroundImage, !0),
|
|
5375
5378
|
marginRight: e.tabFlexDirection === "row" ? e.tabBarGutter : null,
|
|
5376
5379
|
marginBottom: e.tabFlexDirection === "column" ? e.tabBarGutter : null,
|
|
5377
5380
|
fontWeight: e.tabFontWeight
|
|
5378
5381
|
}),
|
|
5379
|
-
key:
|
|
5380
|
-
onClick: go((s) => e.tabChange(
|
|
5382
|
+
key: r,
|
|
5383
|
+
onClick: go((s) => e.tabChange(i, r), ["prevent", "stop"])
|
|
5381
5384
|
}, [
|
|
5382
5385
|
ee("div", {
|
|
5383
5386
|
class: "tab-inner",
|
|
5384
5387
|
style: U({
|
|
5385
|
-
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(
|
|
5388
|
+
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(r) ? e.activeTabColor : "transparent"}` : ""
|
|
5386
5389
|
})
|
|
5387
|
-
}, be(
|
|
5390
|
+
}, be(i.title), 5)
|
|
5388
5391
|
], 12, es))), 128))
|
|
5389
5392
|
], 4)
|
|
5390
5393
|
], 4);
|
|
@@ -5415,13 +5418,13 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5415
5418
|
onClick: () => {
|
|
5416
5419
|
if (!e.linkPage && !e.href)
|
|
5417
5420
|
return;
|
|
5418
|
-
const l = e.linkPage || "",
|
|
5419
|
-
let s =
|
|
5421
|
+
const l = e.linkPage || "", i = Fo(b(n), l), r = e.href;
|
|
5422
|
+
let s = r || i;
|
|
5420
5423
|
s = de(s);
|
|
5421
5424
|
const f = e.target;
|
|
5422
5425
|
f && (f !== "event" ? window.open(s, "_" + f) : window.parent.postMessage({
|
|
5423
5426
|
type: "openPage",
|
|
5424
|
-
url:
|
|
5427
|
+
url: r
|
|
5425
5428
|
}, "*"));
|
|
5426
5429
|
}
|
|
5427
5430
|
};
|
|
@@ -5433,7 +5436,7 @@ function is(e, o, t, n, a, l) {
|
|
|
5433
5436
|
key: 0,
|
|
5434
5437
|
style: U(e.style),
|
|
5435
5438
|
src: e.myImgUrl,
|
|
5436
|
-
onClick: o[0] || (o[0] = (...
|
|
5439
|
+
onClick: o[0] || (o[0] = (...i) => e.onClick && e.onClick(...i))
|
|
5437
5440
|
}, null, 12, ls)) : (D(), $("div", {
|
|
5438
5441
|
key: 1,
|
|
5439
5442
|
class: "image-placeholder",
|
|
@@ -5460,7 +5463,7 @@ const rs = /* @__PURE__ */ K(as, [["render", is], ["__scopeId", "data-v-ef7a7bee
|
|
|
5460
5463
|
}), n = q(() => {
|
|
5461
5464
|
let a = de(e.link);
|
|
5462
5465
|
if (e.linkType === "erd" && a != null) {
|
|
5463
|
-
let l =
|
|
5466
|
+
let l = b(t);
|
|
5464
5467
|
l[l.length - 1] === "/" ? l += "erdReport" : l += "/erdReport", a = `${Al || l}?_t=0&uid=${a}`;
|
|
5465
5468
|
}
|
|
5466
5469
|
return a;
|
|
@@ -5580,7 +5583,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5580
5583
|
default:
|
|
5581
5584
|
return 55;
|
|
5582
5585
|
}
|
|
5583
|
-
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) -
|
|
5586
|
+
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - b(n)), i = M([]), r = M([]), s = M([]), f = M([]), C = M(0), v = M(1), x = q(() => e.paginationPageSize), d = $n([]), u = (L = []) => {
|
|
5584
5587
|
if (Array.isArray(L) && L.length > 0) {
|
|
5585
5588
|
const O = L.length, V = e.columnsFixedNum;
|
|
5586
5589
|
for (let Z = 0; Z < O; Z++) {
|
|
@@ -5613,7 +5616,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5613
5616
|
borderBottomColor: e.borderColor
|
|
5614
5617
|
},
|
|
5615
5618
|
class: {
|
|
5616
|
-
highlight:
|
|
5619
|
+
highlight: b(W) === bt && e.clickHighlight
|
|
5617
5620
|
},
|
|
5618
5621
|
onClick: E("click", () => {
|
|
5619
5622
|
const Ut = e.id, Dn = j(Ut);
|
|
@@ -5626,7 +5629,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5626
5629
|
}), Array.isArray(P.children) && u(P.children);
|
|
5627
5630
|
}
|
|
5628
5631
|
}
|
|
5629
|
-
},
|
|
5632
|
+
}, y = (L = []) => (e.isUseSeq && L.unshift({
|
|
5630
5633
|
title: "序号",
|
|
5631
5634
|
dataIndex: "SEQ",
|
|
5632
5635
|
align: "center"
|
|
@@ -5644,16 +5647,16 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5644
5647
|
e.cellBackgroundColor,
|
|
5645
5648
|
e.borderColor
|
|
5646
5649
|
], () => {
|
|
5647
|
-
|
|
5650
|
+
i.value = y(pt(e.columns));
|
|
5648
5651
|
}, {
|
|
5649
5652
|
immediate: !0,
|
|
5650
5653
|
deep: !0
|
|
5651
5654
|
}), ne(() => [e.data, e.dataType], ([L, O]) => {
|
|
5652
|
-
O === "static" && (
|
|
5655
|
+
O === "static" && (r.value = L);
|
|
5653
5656
|
}, {
|
|
5654
5657
|
immediate: !0
|
|
5655
5658
|
});
|
|
5656
|
-
const g = M({}),
|
|
5659
|
+
const g = M({}), h = (L) => {
|
|
5657
5660
|
if (Array.isArray(L)) {
|
|
5658
5661
|
const O = L.length, V = d, Z = V.length, P = {};
|
|
5659
5662
|
for (let oe = 0; oe < O; oe++) {
|
|
@@ -5677,9 +5680,9 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5677
5680
|
g.value = te;
|
|
5678
5681
|
}
|
|
5679
5682
|
};
|
|
5680
|
-
ne(() => [e.isReverse,
|
|
5681
|
-
const L =
|
|
5682
|
-
if (
|
|
5683
|
+
ne(() => [e.isReverse, i.value, r.value], () => {
|
|
5684
|
+
const L = b(i), O = b(r);
|
|
5685
|
+
if (h(O), e.isReverse) {
|
|
5683
5686
|
const { columns: V, dataSource: Z } = p(pt(L), pt(O));
|
|
5684
5687
|
s.value = V, f.value = Z;
|
|
5685
5688
|
} else
|
|
@@ -5716,29 +5719,29 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5716
5719
|
columns: Z,
|
|
5717
5720
|
dataSource: P
|
|
5718
5721
|
};
|
|
5719
|
-
}, _ = M(""), I = _e(e),
|
|
5722
|
+
}, _ = M(""), I = _e(e), S = M(!1), A = async (L = !0, O = {}) => {
|
|
5720
5723
|
var V;
|
|
5721
5724
|
try {
|
|
5722
|
-
L && (
|
|
5723
|
-
pageNum: v
|
|
5724
|
-
pageSize:
|
|
5725
|
+
L && (S.value = !0), b(_) && (O.orderCondition = b(_)), e.paginationShow && (O = {
|
|
5726
|
+
pageNum: b(v),
|
|
5727
|
+
pageSize: b(x),
|
|
5725
5728
|
layer: "1",
|
|
5726
5729
|
...O
|
|
5727
5730
|
});
|
|
5728
5731
|
const Z = await I(O), { rows: P = [], total: te = 0 } = ((V = Z == null ? void 0 : Z.data) == null ? void 0 : V.data) || {};
|
|
5729
|
-
|
|
5732
|
+
C.value = te, Array.isArray(P) && (r.value = P);
|
|
5730
5733
|
} catch (Z) {
|
|
5731
5734
|
console.error(Z);
|
|
5732
5735
|
} finally {
|
|
5733
|
-
|
|
5736
|
+
S.value = !1;
|
|
5734
5737
|
}
|
|
5735
|
-
},
|
|
5736
|
-
if (
|
|
5738
|
+
}, w = ({ current: L }, O, V) => {
|
|
5739
|
+
if (v.value = L, V && Object.keys(V).length > 0) {
|
|
5737
5740
|
const { field: Z, order: P } = V, oe = {
|
|
5738
5741
|
ascend: "asc",
|
|
5739
5742
|
descend: "desc"
|
|
5740
5743
|
}[P];
|
|
5741
|
-
Z != null && oe != null && (_.value = Z + " " + oe,
|
|
5744
|
+
Z != null && oe != null && (_.value = Z + " " + oe, v.value = 1);
|
|
5742
5745
|
}
|
|
5743
5746
|
ie(!1);
|
|
5744
5747
|
}, c = q(() => {
|
|
@@ -5746,9 +5749,9 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5746
5749
|
return e.paginationShow && {
|
|
5747
5750
|
simple: L,
|
|
5748
5751
|
position: O,
|
|
5749
|
-
total:
|
|
5750
|
-
current: v
|
|
5751
|
-
pageSize:
|
|
5752
|
+
total: b(C),
|
|
5753
|
+
current: b(v),
|
|
5754
|
+
pageSize: b(x),
|
|
5752
5755
|
showSizeChanger: !1
|
|
5753
5756
|
};
|
|
5754
5757
|
}), m = (L) => +L == 1 ? "是" : +L == 0 ? "否" : L, k = (L, O) => O == null || O === "" ? L : {
|
|
@@ -5779,17 +5782,17 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5779
5782
|
}
|
|
5780
5783
|
}), F = (L = [], O = []) => {
|
|
5781
5784
|
const V = L.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5782
|
-
|
|
5785
|
+
i.value = y(V), r.value = O;
|
|
5783
5786
|
}, B = ot(e), z = async () => {
|
|
5784
5787
|
var L, O, V, Z;
|
|
5785
5788
|
try {
|
|
5786
|
-
|
|
5789
|
+
S.value = !0;
|
|
5787
5790
|
const P = await B();
|
|
5788
5791
|
F((O = (L = P == null ? void 0 : P.data) == null ? void 0 : L.data) == null ? void 0 : O.columns, (Z = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : Z.rows);
|
|
5789
5792
|
} catch (P) {
|
|
5790
5793
|
console.error(P);
|
|
5791
5794
|
} finally {
|
|
5792
|
-
|
|
5795
|
+
S.value = !1;
|
|
5793
5796
|
}
|
|
5794
5797
|
}, W = M(-1), X = (L, O) => ({
|
|
5795
5798
|
onClick: E("rowClick", () => {
|
|
@@ -5797,7 +5800,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5797
5800
|
J(V, { ...Z, RECORD: L }), W.value = O;
|
|
5798
5801
|
})
|
|
5799
5802
|
}), ie = (L = !0) => {
|
|
5800
|
-
if (
|
|
5803
|
+
if (b(T) !== "design")
|
|
5801
5804
|
switch (e.dataType) {
|
|
5802
5805
|
case "request":
|
|
5803
5806
|
A(L);
|
|
@@ -5815,7 +5818,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5815
5818
|
refreshData: ie
|
|
5816
5819
|
});
|
|
5817
5820
|
const En = q(() => {
|
|
5818
|
-
const L =
|
|
5821
|
+
const L = b(s), O = [];
|
|
5819
5822
|
let V = 0;
|
|
5820
5823
|
for (let P = 0; P < L.length; P++) {
|
|
5821
5824
|
const te = L[P], { isCalcTotal: oe } = te;
|
|
@@ -5832,7 +5835,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5832
5835
|
}
|
|
5833
5836
|
if (V === 0)
|
|
5834
5837
|
return [];
|
|
5835
|
-
const Z =
|
|
5838
|
+
const Z = b(f);
|
|
5836
5839
|
for (let P = 0; P < O.length; P++) {
|
|
5837
5840
|
const te = O[P];
|
|
5838
5841
|
let oe = 0;
|
|
@@ -5864,9 +5867,9 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5864
5867
|
pagination: c,
|
|
5865
5868
|
formatFn: k,
|
|
5866
5869
|
contrastClass: R,
|
|
5867
|
-
tableChange:
|
|
5870
|
+
tableChange: w,
|
|
5868
5871
|
summaryList: En,
|
|
5869
|
-
loading:
|
|
5872
|
+
loading: S,
|
|
5870
5873
|
onTouchHrefEvent: (L, O = "") => {
|
|
5871
5874
|
L === "event" && window.parent.postMessage({
|
|
5872
5875
|
type: "openPage",
|
|
@@ -5887,8 +5890,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5887
5890
|
useFilterOptions: (L) => {
|
|
5888
5891
|
const O = L.dataIndex;
|
|
5889
5892
|
if (typeof O == "string") {
|
|
5890
|
-
let V =
|
|
5891
|
-
const Z =
|
|
5893
|
+
let V = b(g)[O];
|
|
5894
|
+
const Z = b(L.filterOptionsInputValue).trim();
|
|
5892
5895
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(Z.toLowerCase()) : !0), V) : [];
|
|
5893
5896
|
}
|
|
5894
5897
|
return [];
|
|
@@ -5914,11 +5917,11 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5914
5917
|
O = e.data;
|
|
5915
5918
|
else if (e.dataType === "request") {
|
|
5916
5919
|
const we = { layer: "1" };
|
|
5917
|
-
|
|
5920
|
+
b(_) && (we.orderCondition = b(_));
|
|
5918
5921
|
const Le = await I(we);
|
|
5919
5922
|
O = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
5920
5923
|
}
|
|
5921
|
-
const V =
|
|
5924
|
+
const V = b(s), Z = [], P = [];
|
|
5922
5925
|
V == null || V.forEach((we) => {
|
|
5923
5926
|
Z.push(we.dataIndex), P.push(we.title);
|
|
5924
5927
|
});
|
|
@@ -5936,7 +5939,7 @@ const ys = {
|
|
|
5936
5939
|
class: "action-list"
|
|
5937
5940
|
}, ws = ["href", "target", "onClick"];
|
|
5938
5941
|
function xs(e, o, t, n, a, l) {
|
|
5939
|
-
const
|
|
5942
|
+
const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"), C = H("a-table-summary-row"), v = H("a-table-summary"), x = H("a-table"), d = H("skeleton");
|
|
5940
5943
|
return D(), $("div", {
|
|
5941
5944
|
class: "ecan-table",
|
|
5942
5945
|
style: U(e.style)
|
|
@@ -5944,7 +5947,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5944
5947
|
G(d, { loading: e.loading }, {
|
|
5945
5948
|
default: Y(() => [
|
|
5946
5949
|
e.isUseExport ? (D(), $("div", ys, [
|
|
5947
|
-
G(
|
|
5950
|
+
G(i, {
|
|
5948
5951
|
class: "export-button",
|
|
5949
5952
|
onClick: e.exportTable
|
|
5950
5953
|
}, {
|
|
@@ -5954,7 +5957,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5954
5957
|
_: 1
|
|
5955
5958
|
}, 8, ["onClick"])
|
|
5956
5959
|
])) : ve("", !0),
|
|
5957
|
-
G(
|
|
5960
|
+
G(x, {
|
|
5958
5961
|
class: "table",
|
|
5959
5962
|
style: {
|
|
5960
5963
|
height: "100%"
|
|
@@ -5968,14 +5971,14 @@ function xs(e, o, t, n, a, l) {
|
|
|
5968
5971
|
pagination: e.pagination,
|
|
5969
5972
|
onChange: e.tableChange
|
|
5970
5973
|
}, {
|
|
5971
|
-
customFilterDropdown: Y(({ column: u, selectedKeys:
|
|
5974
|
+
customFilterDropdown: Y(({ column: u, selectedKeys: y, setSelectedKeys: g, confirm: h, clearFilters: p }) => [
|
|
5972
5975
|
ee("div", {
|
|
5973
5976
|
class: "ecan-table-filter",
|
|
5974
5977
|
style: U({
|
|
5975
5978
|
height: e.filterDropdownHeight
|
|
5976
5979
|
})
|
|
5977
5980
|
}, [
|
|
5978
|
-
G(
|
|
5981
|
+
G(r, {
|
|
5979
5982
|
value: u.filterOptionsInputValue,
|
|
5980
5983
|
"onUpdate:value": (_) => u.filterOptionsInputValue = _,
|
|
5981
5984
|
placeholder: "请输入关键字",
|
|
@@ -5990,18 +5993,18 @@ function xs(e, o, t, n, a, l) {
|
|
|
5990
5993
|
onChange: (_) => e.useSetSelectedKeys(g, u)
|
|
5991
5994
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
5992
5995
|
ee("div", null, [
|
|
5993
|
-
G(
|
|
5996
|
+
G(i, {
|
|
5994
5997
|
type: "primary",
|
|
5995
5998
|
size: "small",
|
|
5996
5999
|
style: { width: "90px", "margin-right": "8px" },
|
|
5997
|
-
onClick: () =>
|
|
6000
|
+
onClick: () => h()
|
|
5998
6001
|
}, {
|
|
5999
6002
|
default: Y(() => [
|
|
6000
6003
|
vs
|
|
6001
6004
|
]),
|
|
6002
6005
|
_: 2
|
|
6003
6006
|
}, 1032, ["onClick"]),
|
|
6004
|
-
G(
|
|
6007
|
+
G(i, {
|
|
6005
6008
|
size: "small",
|
|
6006
6009
|
style: { width: "90px" },
|
|
6007
6010
|
onClick: go((_) => e.onResetFilter(p, u), ["stop"])
|
|
@@ -6014,22 +6017,22 @@ function xs(e, o, t, n, a, l) {
|
|
|
6014
6017
|
])
|
|
6015
6018
|
], 4)
|
|
6016
6019
|
]),
|
|
6017
|
-
bodyCell: Y(({ column: u, index:
|
|
6018
|
-
u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(
|
|
6020
|
+
bodyCell: Y(({ column: u, index: y, text: g, record: h }) => [
|
|
6021
|
+
u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(y + 1), 1)) : ve("", !0),
|
|
6019
6022
|
u.dataIndex === "ACTION" ? (D(), $("div", Ss, [
|
|
6020
6023
|
(D(!0), $(Me, null, De(e.actionList, (p, _) => (D(), $("div", {
|
|
6021
6024
|
class: "action",
|
|
6022
6025
|
key: _
|
|
6023
6026
|
}, [
|
|
6024
6027
|
ee("a", {
|
|
6025
|
-
href: e.handleHref(p.href,
|
|
6028
|
+
href: e.handleHref(p.href, h),
|
|
6026
6029
|
target: e.handleHrefTarget(p.target),
|
|
6027
6030
|
style: U({
|
|
6028
6031
|
color: p.color,
|
|
6029
6032
|
fontSize: e.fontSize,
|
|
6030
6033
|
fontWeight: e.fontWeight
|
|
6031
6034
|
}),
|
|
6032
|
-
onClick: (I) => e.onTouchHrefEvent(p.target, e.handleHref(p.href,
|
|
6035
|
+
onClick: (I) => e.onTouchHrefEvent(p.target, e.handleHref(p.href, h))
|
|
6033
6036
|
}, be(p.title), 13, ws)
|
|
6034
6037
|
]))), 128))
|
|
6035
6038
|
])) : (D(), $("div", {
|
|
@@ -6042,13 +6045,13 @@ function xs(e, o, t, n, a, l) {
|
|
|
6042
6045
|
}, be(u.format != null ? e.formatFn(g, u.format) : g), 7))
|
|
6043
6046
|
]),
|
|
6044
6047
|
summary: Y(() => [
|
|
6045
|
-
e.summaryList.length > 0 ? (D(), Re(
|
|
6048
|
+
e.summaryList.length > 0 ? (D(), Re(v, { key: 0 }, {
|
|
6046
6049
|
default: Y(() => [
|
|
6047
|
-
G(
|
|
6050
|
+
G(C, null, {
|
|
6048
6051
|
default: Y(() => [
|
|
6049
|
-
(D(!0), $(Me, null, De(e.summaryList, (u,
|
|
6050
|
-
key:
|
|
6051
|
-
index:
|
|
6052
|
+
(D(!0), $(Me, null, De(e.summaryList, (u, y) => (D(), Re(f, {
|
|
6053
|
+
key: y,
|
|
6054
|
+
index: y,
|
|
6052
6055
|
style: U({
|
|
6053
6056
|
backgroundColor: e.cellBackgroundColor,
|
|
6054
6057
|
textAlign: u.cellAlign || "center",
|
|
@@ -6141,15 +6144,15 @@ const _s = Q({
|
|
|
6141
6144
|
},
|
|
6142
6145
|
setup(e) {
|
|
6143
6146
|
const o = re(e, ["backgroundImage"]), t = M(), n = q(() => $e(e.geoBackgroundImage)), a = q(() => $e(e.backgroundImage)), l = q(() => e.geoBackgroundImage ? {
|
|
6144
|
-
image:
|
|
6147
|
+
image: b(t),
|
|
6145
6148
|
repeat: e.geoBackgroundImageRepeat
|
|
6146
|
-
} : e.geoItemStyleAreaColor),
|
|
6147
|
-
const
|
|
6148
|
-
return e.symbolImage ? "image://" + $e(
|
|
6149
|
-
}),
|
|
6150
|
-
const
|
|
6151
|
-
let
|
|
6152
|
-
return typeof
|
|
6149
|
+
} : e.geoItemStyleAreaColor), i = q(() => {
|
|
6150
|
+
const C = e.symbolImage;
|
|
6151
|
+
return e.symbolImage ? "image://" + $e(C) : "circle";
|
|
6152
|
+
}), r = q(() => {
|
|
6153
|
+
const C = e.geoCenter;
|
|
6154
|
+
let v;
|
|
6155
|
+
return typeof C == "string" && C !== "" && (v = C.split(",")), {
|
|
6153
6156
|
// backgroundColor: unref(background),
|
|
6154
6157
|
tooltip: {
|
|
6155
6158
|
show: !0
|
|
@@ -6161,7 +6164,7 @@ const _s = Q({
|
|
|
6161
6164
|
style: {
|
|
6162
6165
|
width: parseFloat(e.width),
|
|
6163
6166
|
height: parseFloat(e.height),
|
|
6164
|
-
image:
|
|
6167
|
+
image: b(a)
|
|
6165
6168
|
},
|
|
6166
6169
|
top: "center"
|
|
6167
6170
|
}
|
|
@@ -6169,7 +6172,7 @@ const _s = Q({
|
|
|
6169
6172
|
geo: {
|
|
6170
6173
|
zoom: e.geoZoom,
|
|
6171
6174
|
roam: e.geoRoam,
|
|
6172
|
-
center:
|
|
6175
|
+
center: v,
|
|
6173
6176
|
map: "map",
|
|
6174
6177
|
tooltip: {
|
|
6175
6178
|
show: !1
|
|
@@ -6182,7 +6185,7 @@ const _s = Q({
|
|
|
6182
6185
|
},
|
|
6183
6186
|
itemStyle: {
|
|
6184
6187
|
// 地图上板块属性
|
|
6185
|
-
areaColor:
|
|
6188
|
+
areaColor: b(l),
|
|
6186
6189
|
borderColor: e.geoItemStyleBorderColor,
|
|
6187
6190
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6188
6191
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6209,7 +6212,7 @@ const _s = Q({
|
|
|
6209
6212
|
itemStyle: {
|
|
6210
6213
|
color: e.itemStyleColor
|
|
6211
6214
|
},
|
|
6212
|
-
symbol:
|
|
6215
|
+
symbol: b(i),
|
|
6213
6216
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6214
6217
|
label: {
|
|
6215
6218
|
show: e.labelShow,
|
|
@@ -6229,11 +6232,11 @@ const _s = Q({
|
|
|
6229
6232
|
]
|
|
6230
6233
|
};
|
|
6231
6234
|
}), s = M(!1), f = async () => {
|
|
6232
|
-
var
|
|
6233
|
-
const
|
|
6234
|
-
if (
|
|
6235
|
-
const
|
|
6236
|
-
Gn("map", (
|
|
6235
|
+
var v;
|
|
6236
|
+
const C = e.mapJson;
|
|
6237
|
+
if (C != null && C.path) {
|
|
6238
|
+
const x = await Fe(((v = window == null ? void 0 : window.config) == null ? void 0 : v.uploadPath) + C.path);
|
|
6239
|
+
Gn("map", (x == null ? void 0 : x.data) || {});
|
|
6237
6240
|
}
|
|
6238
6241
|
s.value = !0;
|
|
6239
6242
|
};
|
|
@@ -6243,7 +6246,7 @@ const _s = Q({
|
|
|
6243
6246
|
immediate: !0,
|
|
6244
6247
|
deep: !0
|
|
6245
6248
|
}), {
|
|
6246
|
-
option:
|
|
6249
|
+
option: r,
|
|
6247
6250
|
style: o,
|
|
6248
6251
|
isLoadedData: s,
|
|
6249
6252
|
geoBackgroundImageRef: t,
|
|
@@ -6253,12 +6256,12 @@ const _s = Q({
|
|
|
6253
6256
|
});
|
|
6254
6257
|
const Ts = ["src"];
|
|
6255
6258
|
function Ls(e, o, t, n, a, l) {
|
|
6256
|
-
const
|
|
6259
|
+
const i = H("echarts");
|
|
6257
6260
|
return D(), $("div", {
|
|
6258
6261
|
class: "ecan-map",
|
|
6259
6262
|
style: U(e.style)
|
|
6260
6263
|
}, [
|
|
6261
|
-
e.isLoadedData ? (D(), Re(
|
|
6264
|
+
e.isLoadedData ? (D(), Re(i, {
|
|
6262
6265
|
key: 0,
|
|
6263
6266
|
option: e.option,
|
|
6264
6267
|
"update-options": { notMerge: !0 },
|