@ecan-bi/datav 1.1.36 → 1.1.38
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 +795 -775
- 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/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as $, computed as q, unref as k, watchEffect as rn, defineComponent as Q, shallowRef as yt, toRefs as Io, onMounted as Je, onUnmounted as ut, h as st, nextTick as ft, createVNode as j, resolveComponent as Z, openBlock as E, createElementBlock as R, createBlock as Oe, renderSlot as mt, withCtx as Y, ref as
|
|
3
|
-
import { throttle as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.38 */
|
|
2
|
+
import { watch as ne, inject as $, computed as q, unref as k, watchEffect as rn, defineComponent as Q, shallowRef as yt, toRefs as Io, onMounted as Je, onUnmounted as ut, h as st, nextTick as ft, createVNode as j, resolveComponent as Z, openBlock as E, createElementBlock as R, createBlock as Oe, renderSlot as mt, withCtx as Y, ref as I, normalizeStyle as G, createCommentVNode as pe, provide as Fe, onBeforeUnmount as Nt, toDisplayString as he, Fragment as Le, renderList as Ie, createElementVNode as X, normalizeClass as xt, pushScopeId as sn, popScopeId as cn, createSlots as Mo, resolveDynamicComponent as Eo, mergeProps as Oo, withModifiers as Fo, reactive as Ro, createTextVNode as dn, withDirectives as Do, vShow as zo } from "vue";
|
|
3
|
+
import { throttle as No, init as $o, use as $e, registerMap as Po } from "echarts/core";
|
|
4
4
|
import { addListener as Bo, removeListener as Go } from "resize-detector";
|
|
5
5
|
import { Spin as Uo, Skeleton as qo, message as Ve, Progress as jo, Input as un, DatePicker as Wo, Select as Vo, RangePicker as Ho, Button as Zo, CheckboxGroup as fn, Modal as ke, Table as Jo, TableSummary as Yo, TableSummaryRow as Qo, TableSummaryCell as Ko } from "ant-design-vue";
|
|
6
6
|
import "ant-design-vue/es/spin/style";
|
|
@@ -58,8 +58,8 @@ function da(e, n) {
|
|
|
58
58
|
}
|
|
59
59
|
function ua(e, n, t) {
|
|
60
60
|
let o = null;
|
|
61
|
-
ne([t, e, n], ([a, i,
|
|
62
|
-
a && i &&
|
|
61
|
+
ne([t, e, n], ([a, i, s], r, l) => {
|
|
62
|
+
a && i && s && (o = No(() => {
|
|
63
63
|
i.resize();
|
|
64
64
|
}, 100), Bo(a, o)), l(() => {
|
|
65
65
|
o && a && Go(a, o);
|
|
@@ -90,7 +90,7 @@ function va(e) {
|
|
|
90
90
|
ba(t) || (n[t] = e[t]);
|
|
91
91
|
return n;
|
|
92
92
|
}
|
|
93
|
-
const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdateOptions",
|
|
93
|
+
const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdateOptions", ze = Q({
|
|
94
94
|
name: "echarts",
|
|
95
95
|
props: {
|
|
96
96
|
option: Object,
|
|
@@ -107,7 +107,7 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
107
107
|
inheritAttrs: !1,
|
|
108
108
|
// @ts-expect-error listeners for Vue 2 compatibility
|
|
109
109
|
setup(e, { attrs: n, listeners: t }) {
|
|
110
|
-
const o = yt(), a = yt(), i = yt(),
|
|
110
|
+
const o = yt(), a = yt(), i = yt(), s = $(Ca, null), r = $(
|
|
111
111
|
Sa,
|
|
112
112
|
null
|
|
113
113
|
), l = $(
|
|
@@ -115,12 +115,12 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
115
115
|
null
|
|
116
116
|
), { autoresize: d, manualUpdate: c, loading: m, loadingOptions: g } = Io(e), b = q(
|
|
117
117
|
() => i.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
118
|
-
), f = q(() => e.theme || k(
|
|
119
|
-
() => e.initOptions || k(
|
|
118
|
+
), f = q(() => e.theme || k(s) || {}), v = q(
|
|
119
|
+
() => e.initOptions || k(r) || {}
|
|
120
120
|
), y = q(
|
|
121
121
|
() => e.updateOptions || k(l) || {}
|
|
122
122
|
), h = q(() => va(n));
|
|
123
|
-
function A(
|
|
123
|
+
function A(C) {
|
|
124
124
|
if (a.value || !o.value)
|
|
125
125
|
return;
|
|
126
126
|
const u = a.value = $o(
|
|
@@ -131,13 +131,13 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
131
131
|
e.group && (u.group = e.group);
|
|
132
132
|
let p = t;
|
|
133
133
|
p || (p = {}, Object.keys(n).filter((S) => S.indexOf("on") === 0 && S.length > 2).forEach((S) => {
|
|
134
|
-
const
|
|
135
|
-
p[
|
|
134
|
+
const _ = S.charAt(2).toLowerCase() + S.slice(3);
|
|
135
|
+
p[_] = n[S];
|
|
136
136
|
})), Object.keys(p).forEach((S) => {
|
|
137
|
-
const
|
|
138
|
-
|
|
137
|
+
const _ = p[S];
|
|
138
|
+
_ && (S.indexOf("zr:") === 0 ? u.getZr().on(S.slice(3).toLowerCase(), _) : u.on(S.toLowerCase(), _));
|
|
139
139
|
});
|
|
140
|
-
function
|
|
140
|
+
function T() {
|
|
141
141
|
if (u && !u.isDisposed())
|
|
142
142
|
try {
|
|
143
143
|
u.resize();
|
|
@@ -148,23 +148,23 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function F() {
|
|
151
|
-
u.setOption(
|
|
151
|
+
u.setOption(C || b.value, y.value);
|
|
152
152
|
}
|
|
153
153
|
d.value ? ft(() => {
|
|
154
|
-
|
|
154
|
+
T(), F();
|
|
155
155
|
}) : F();
|
|
156
156
|
}
|
|
157
|
-
function C
|
|
158
|
-
e.manualUpdate && (i.value =
|
|
157
|
+
function x(C, u) {
|
|
158
|
+
e.manualUpdate && (i.value = C), a.value ? a.value.setOption(C, u || {}) : A(C);
|
|
159
159
|
}
|
|
160
160
|
function B() {
|
|
161
161
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
162
162
|
}
|
|
163
|
-
let
|
|
163
|
+
let w = null;
|
|
164
164
|
ne(
|
|
165
165
|
c,
|
|
166
|
-
(
|
|
167
|
-
typeof
|
|
166
|
+
(C) => {
|
|
167
|
+
typeof w == "function" && (w(), w = null), C || (w = ne(
|
|
168
168
|
() => e.option,
|
|
169
169
|
(u) => {
|
|
170
170
|
u && (a.value ? a.value.setOption(u, y.value) : A());
|
|
@@ -186,15 +186,15 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
186
186
|
), rn(() => {
|
|
187
187
|
e.group && a.value && (a.value.group = e.group);
|
|
188
188
|
});
|
|
189
|
-
const
|
|
189
|
+
const L = da(a, A);
|
|
190
190
|
return ga(a, m, g), ua(a, d, o), Je(() => {
|
|
191
191
|
e.option && A();
|
|
192
192
|
}), ut(B), {
|
|
193
193
|
chart: a,
|
|
194
194
|
root: o,
|
|
195
|
-
setOption:
|
|
195
|
+
setOption: x,
|
|
196
196
|
nonEventAttrs: h,
|
|
197
|
-
...
|
|
197
|
+
...L
|
|
198
198
|
};
|
|
199
199
|
},
|
|
200
200
|
render() {
|
|
@@ -237,35 +237,35 @@ function _a(e, n, t) {
|
|
|
237
237
|
if (e = Se(e, 360), n = Se(n, 100), t = Se(t, 100), n === 0)
|
|
238
238
|
a = t, i = t, o = t;
|
|
239
239
|
else {
|
|
240
|
-
var
|
|
241
|
-
o = pt(
|
|
240
|
+
var s = t < 0.5 ? t * (1 + n) : t + n - t * n, r = 2 * t - s;
|
|
241
|
+
o = pt(r, s, e + 1 / 3), a = pt(r, s, e), i = pt(r, s, e - 1 / 3);
|
|
242
242
|
}
|
|
243
243
|
return { r: o * 255, g: a * 255, b: i * 255 };
|
|
244
244
|
}
|
|
245
245
|
function La(e, n, t) {
|
|
246
246
|
e = Se(e, 255), n = Se(n, 255), t = Se(t, 255);
|
|
247
|
-
var o = Math.max(e, n, t), a = Math.min(e, n, t), i = 0,
|
|
247
|
+
var o = Math.max(e, n, t), a = Math.min(e, n, t), i = 0, s = o, r = o - a, l = o === 0 ? 0 : r / o;
|
|
248
248
|
if (o === a)
|
|
249
249
|
i = 0;
|
|
250
250
|
else {
|
|
251
251
|
switch (o) {
|
|
252
252
|
case e:
|
|
253
|
-
i = (n - t) /
|
|
253
|
+
i = (n - t) / r + (n < t ? 6 : 0);
|
|
254
254
|
break;
|
|
255
255
|
case n:
|
|
256
|
-
i = (t - e) /
|
|
256
|
+
i = (t - e) / r + 2;
|
|
257
257
|
break;
|
|
258
258
|
case t:
|
|
259
|
-
i = (e - n) /
|
|
259
|
+
i = (e - n) / r + 4;
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
262
|
i /= 6;
|
|
263
263
|
}
|
|
264
|
-
return { h: i, s: l, v:
|
|
264
|
+
return { h: i, s: l, v: s };
|
|
265
265
|
}
|
|
266
266
|
function Ia(e, n, t) {
|
|
267
267
|
e = Se(e, 360) * 6, n = Se(n, 100), t = Se(t, 100);
|
|
268
|
-
var o = Math.floor(e), a = e - o, i = t * (1 - n),
|
|
268
|
+
var o = Math.floor(e), a = e - o, i = t * (1 - n), s = t * (1 - a * n), r = t * (1 - (1 - a) * n), l = o % 6, d = [t, s, i, i, r, t][l], c = [r, t, t, s, i, i][l], m = [i, i, r, t, t, s][l];
|
|
269
269
|
return { r: d * 255, g: c * 255, b: m * 255 };
|
|
270
270
|
}
|
|
271
271
|
function Ma(e, n, t, o) {
|
|
@@ -433,10 +433,10 @@ var Pt = {
|
|
|
433
433
|
yellowgreen: "#9acd32"
|
|
434
434
|
};
|
|
435
435
|
function je(e) {
|
|
436
|
-
var n = { r: 0, g: 0, b: 0 }, t = 1, o = null, a = null, i = null,
|
|
437
|
-
return typeof e == "string" && (e = Fa(e)), typeof e == "object" && (_e(e.r) && _e(e.g) && _e(e.b) ? (n = Ta(e.r, e.g, e.b),
|
|
438
|
-
ok:
|
|
439
|
-
format: e.format ||
|
|
436
|
+
var n = { r: 0, g: 0, b: 0 }, t = 1, o = null, a = null, i = null, s = !1, r = !1;
|
|
437
|
+
return typeof e == "string" && (e = Fa(e)), typeof e == "object" && (_e(e.r) && _e(e.g) && _e(e.b) ? (n = Ta(e.r, e.g, e.b), s = !0, r = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : _e(e.h) && _e(e.s) && _e(e.v) ? (o = at(e.s), a = at(e.v), n = Ia(e.h, o, a), s = !0, r = "hsv") : _e(e.h) && _e(e.s) && _e(e.l) && (o = at(e.s), i = at(e.l), n = _a(e.h, o, i), s = !0, r = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = xa(t), {
|
|
438
|
+
ok: s,
|
|
439
|
+
format: e.format || r,
|
|
440
440
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
441
441
|
g: Math.min(255, Math.max(n.g, 0)),
|
|
442
442
|
b: Math.min(255, Math.max(n.b, 0)),
|
|
@@ -492,7 +492,7 @@ function Fa(e) {
|
|
|
492
492
|
function _e(e) {
|
|
493
493
|
return Boolean(we.CSS_UNIT.exec(String(e)));
|
|
494
494
|
}
|
|
495
|
-
var lt = 2, Bt = 0.16, Ra = 0.05, Da = 0.05,
|
|
495
|
+
var lt = 2, Bt = 0.16, Ra = 0.05, Da = 0.05, za = 0.15, pn = 5, Cn = 4, Na = [{
|
|
496
496
|
index: 7,
|
|
497
497
|
opacity: 0.15
|
|
498
498
|
}, {
|
|
@@ -555,27 +555,27 @@ function qt(e, n, t) {
|
|
|
555
555
|
}
|
|
556
556
|
function jt(e, n, t) {
|
|
557
557
|
var o;
|
|
558
|
-
return t ? o = e.v + Da * n : o = e.v -
|
|
558
|
+
return t ? o = e.v + Da * n : o = e.v - za * n, o > 1 && (o = 1), Number(o.toFixed(2));
|
|
559
559
|
}
|
|
560
560
|
function Tt(e) {
|
|
561
561
|
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], o = je(e), a = pn; a > 0; a -= 1) {
|
|
562
|
-
var i = Gt(o),
|
|
562
|
+
var i = Gt(o), s = it(je({
|
|
563
563
|
h: Ut(i, a, !0),
|
|
564
564
|
s: qt(i, a, !0),
|
|
565
565
|
v: jt(i, a, !0)
|
|
566
566
|
}));
|
|
567
|
-
t.push(
|
|
567
|
+
t.push(s);
|
|
568
568
|
}
|
|
569
569
|
t.push(it(o));
|
|
570
|
-
for (var
|
|
570
|
+
for (var r = 1; r <= Cn; r += 1) {
|
|
571
571
|
var l = Gt(o), d = it(je({
|
|
572
|
-
h: Ut(l,
|
|
573
|
-
s: qt(l,
|
|
574
|
-
v: jt(l,
|
|
572
|
+
h: Ut(l, r),
|
|
573
|
+
s: qt(l, r),
|
|
574
|
+
v: jt(l, r)
|
|
575
575
|
}));
|
|
576
576
|
t.push(d);
|
|
577
577
|
}
|
|
578
|
-
return n.theme === "dark" ?
|
|
578
|
+
return n.theme === "dark" ? Na.map(function(c) {
|
|
579
579
|
var m = c.index, g = c.opacity, b = it($a(je(n.backgroundColor || "#141414"), je(t[m]), g * 100));
|
|
580
580
|
return b;
|
|
581
581
|
}) : t;
|
|
@@ -762,16 +762,16 @@ function Ka() {
|
|
|
762
762
|
return rt({}, Ze);
|
|
763
763
|
}
|
|
764
764
|
var Be = function(n, t) {
|
|
765
|
-
var o = rt({}, n, t.attrs), a = o.icon, i = o.primaryColor,
|
|
765
|
+
var o = rt({}, n, t.attrs), a = o.icon, i = o.primaryColor, s = o.secondaryColor, r = Za(o, Ha), l = Ze;
|
|
766
766
|
if (i && (l = {
|
|
767
767
|
primaryColor: i,
|
|
768
|
-
secondaryColor:
|
|
768
|
+
secondaryColor: s || Sn(i)
|
|
769
769
|
}), Va(), ja(Ht(a), "icon should be icon definiton, but got ".concat(a)), !Ht(a))
|
|
770
770
|
return null;
|
|
771
771
|
var d = a;
|
|
772
772
|
return d && typeof d.icon == "function" && (d = rt({}, d, {
|
|
773
773
|
icon: d.icon(l.primaryColor, l.secondaryColor)
|
|
774
|
-
})), _t(d.icon, "svg-".concat(d.name), rt({},
|
|
774
|
+
})), _t(d.icon, "svg-".concat(d.name), rt({}, r, {
|
|
775
775
|
"data-icon": d.name,
|
|
776
776
|
width: "1em",
|
|
777
777
|
height: "1em",
|
|
@@ -817,18 +817,18 @@ function Jt(e, n) {
|
|
|
817
817
|
function nl(e, n) {
|
|
818
818
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
819
819
|
if (t != null) {
|
|
820
|
-
var o = [], a = !0, i = !1,
|
|
820
|
+
var o = [], a = !0, i = !1, s, r;
|
|
821
821
|
try {
|
|
822
|
-
for (t = t.call(e); !(a = (
|
|
822
|
+
for (t = t.call(e); !(a = (s = t.next()).done) && (o.push(s.value), !(n && o.length === n)); a = !0)
|
|
823
823
|
;
|
|
824
824
|
} catch (l) {
|
|
825
|
-
i = !0,
|
|
825
|
+
i = !0, r = l;
|
|
826
826
|
} finally {
|
|
827
827
|
try {
|
|
828
828
|
!a && t.return != null && t.return();
|
|
829
829
|
} finally {
|
|
830
830
|
if (i)
|
|
831
|
-
throw
|
|
831
|
+
throw r;
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
return o;
|
|
@@ -877,18 +877,18 @@ function Yt(e, n) {
|
|
|
877
877
|
function cl(e, n) {
|
|
878
878
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
879
879
|
if (t != null) {
|
|
880
|
-
var o = [], a = !0, i = !1,
|
|
880
|
+
var o = [], a = !0, i = !1, s, r;
|
|
881
881
|
try {
|
|
882
|
-
for (t = t.call(e); !(a = (
|
|
882
|
+
for (t = t.call(e); !(a = (s = t.next()).done) && (o.push(s.value), !(n && o.length === n)); a = !0)
|
|
883
883
|
;
|
|
884
884
|
} catch (l) {
|
|
885
|
-
i = !0,
|
|
885
|
+
i = !0, r = l;
|
|
886
886
|
} finally {
|
|
887
887
|
try {
|
|
888
888
|
!a && t.return != null && t.return();
|
|
889
889
|
} finally {
|
|
890
890
|
if (i)
|
|
891
|
-
throw
|
|
891
|
+
throw r;
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
return o;
|
|
@@ -933,24 +933,24 @@ function fl(e, n) {
|
|
|
933
933
|
}
|
|
934
934
|
kn("#1890ff");
|
|
935
935
|
var Ge = function(n, t) {
|
|
936
|
-
var o, a = Qt({}, n, t.attrs), i = a.class,
|
|
936
|
+
var o, a = Qt({}, n, t.attrs), i = a.class, s = a.icon, r = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, m = a.onClick, g = ul(a, ll), b = (o = {
|
|
937
937
|
anticon: !0
|
|
938
|
-
}, Lt(o, "anticon-".concat(
|
|
938
|
+
}, Lt(o, "anticon-".concat(s.name), Boolean(s.name)), Lt(o, i, i), o), f = r === "" || r || s.name === "loading" ? "anticon-spin" : "", v = d;
|
|
939
939
|
v === void 0 && m && (v = -1, g.tabindex = v);
|
|
940
940
|
var y = l ? {
|
|
941
941
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
942
942
|
transform: "rotate(".concat(l, "deg)")
|
|
943
|
-
} : void 0, h = wn(c), A = il(h, 2),
|
|
943
|
+
} : void 0, h = wn(c), A = il(h, 2), x = A[0], B = A[1];
|
|
944
944
|
return j("span", Qt({
|
|
945
945
|
role: "img",
|
|
946
|
-
"aria-label":
|
|
946
|
+
"aria-label": s.name
|
|
947
947
|
}, g, {
|
|
948
948
|
onClick: m,
|
|
949
949
|
class: b
|
|
950
950
|
}), [j(Et, {
|
|
951
951
|
class: f,
|
|
952
|
-
icon:
|
|
953
|
-
primaryColor:
|
|
952
|
+
icon: s,
|
|
953
|
+
primaryColor: x,
|
|
954
954
|
secondaryColor: B,
|
|
955
955
|
style: y
|
|
956
956
|
}, null)]);
|
|
@@ -1019,9 +1019,9 @@ const K = (e, n) => {
|
|
|
1019
1019
|
return t;
|
|
1020
1020
|
}, pl = { class: "spin-wrapper" };
|
|
1021
1021
|
function Cl(e, n, t, o, a, i) {
|
|
1022
|
-
const
|
|
1022
|
+
const s = Z("a-spin");
|
|
1023
1023
|
return E(), R("div", pl, [
|
|
1024
|
-
e.spinning ? (E(), Oe(
|
|
1024
|
+
e.spinning ? (E(), Oe(s, {
|
|
1025
1025
|
key: 0,
|
|
1026
1026
|
class: "spin",
|
|
1027
1027
|
spinning: e.spinning,
|
|
@@ -1043,8 +1043,8 @@ const et = /* @__PURE__ */ K(vl, [["render", Cl]]), Sl = Q({
|
|
|
1043
1043
|
}
|
|
1044
1044
|
});
|
|
1045
1045
|
function wl(e, n, t, o, a, i) {
|
|
1046
|
-
const
|
|
1047
|
-
return E(), Oe(
|
|
1046
|
+
const s = Z("a-skeleton");
|
|
1047
|
+
return E(), Oe(s, {
|
|
1048
1048
|
active: "",
|
|
1049
1049
|
loading: e.loading
|
|
1050
1050
|
}, {
|
|
@@ -1153,19 +1153,19 @@ const Al = ((ln = window == null ? void 0 : window.config) == null ? void 0 : ln
|
|
|
1153
1153
|
const n = e.events, t = e.id, o = $(Ft, {
|
|
1154
1154
|
// @ts-ignore
|
|
1155
1155
|
// eslint-disable-next-line no-void
|
|
1156
|
-
emitEvent: (i,
|
|
1156
|
+
emitEvent: (i, s) => {
|
|
1157
1157
|
}
|
|
1158
1158
|
}), { touchEventId: a } = $(ce, {
|
|
1159
|
-
touchEventId:
|
|
1159
|
+
touchEventId: I("")
|
|
1160
1160
|
});
|
|
1161
|
-
return (i,
|
|
1161
|
+
return (i, s = () => {
|
|
1162
1162
|
}) => function() {
|
|
1163
|
-
|
|
1164
|
-
const { emitEvent:
|
|
1163
|
+
s.call(this, ...arguments);
|
|
1164
|
+
const { emitEvent: r } = o;
|
|
1165
1165
|
n.forEach((l) => {
|
|
1166
1166
|
if (i === l.on)
|
|
1167
1167
|
try {
|
|
1168
|
-
a.value = t,
|
|
1168
|
+
a.value = t, r(l.target, l.emit);
|
|
1169
1169
|
} catch (d) {
|
|
1170
1170
|
console.error(d);
|
|
1171
1171
|
}
|
|
@@ -1174,17 +1174,17 @@ const Al = ((ln = window == null ? void 0 : window.config) == null ? void 0 : ln
|
|
|
1174
1174
|
}, Ye = (e, n) => {
|
|
1175
1175
|
let { name: t = "name", value: o = "value", type: a = "type" } = n || {};
|
|
1176
1176
|
t = t == null ? void 0 : t.trim(), o = o == null ? void 0 : o.trim(), a = a == null ? void 0 : a.trim();
|
|
1177
|
-
const i = /* @__PURE__ */ new Set(),
|
|
1178
|
-
for (let c = 0; c <
|
|
1177
|
+
const i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), r = e.length;
|
|
1178
|
+
for (let c = 0; c < r; c++) {
|
|
1179
1179
|
const m = e[c], g = m[t] || "", b = m[o] || "", f = m[a] || "";
|
|
1180
|
-
if (i.add(g),
|
|
1181
|
-
const v =
|
|
1182
|
-
v.push({ name: g, value: b, ...m }),
|
|
1180
|
+
if (i.add(g), s.has(f)) {
|
|
1181
|
+
const v = s.get(f);
|
|
1182
|
+
v.push({ name: g, value: b, ...m }), s.set(f, v);
|
|
1183
1183
|
} else
|
|
1184
|
-
|
|
1184
|
+
s.set(f, [{ name: g, value: b, ...m }]);
|
|
1185
1185
|
}
|
|
1186
1186
|
const l = Array.from(i), d = [];
|
|
1187
|
-
for (const [c, m] of
|
|
1187
|
+
for (const [c, m] of s)
|
|
1188
1188
|
d.push({
|
|
1189
1189
|
name: c,
|
|
1190
1190
|
data: m
|
|
@@ -1240,9 +1240,9 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1240
1240
|
const i = e.match(/\{(.+?)\}/g);
|
|
1241
1241
|
if (i == null || i.length === 0)
|
|
1242
1242
|
return e;
|
|
1243
|
-
for (let
|
|
1244
|
-
const
|
|
1245
|
-
let l =
|
|
1243
|
+
for (let s = 0; s < i.length; s++) {
|
|
1244
|
+
const r = i[s];
|
|
1245
|
+
let l = r.slice(1, -1).trim();
|
|
1246
1246
|
const d = /[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g, c = l.match(d);
|
|
1247
1247
|
for (let m = 0; m < c.length; m++) {
|
|
1248
1248
|
const g = c[m], b = n[g];
|
|
@@ -1251,7 +1251,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1251
1251
|
l = (0, eval)(l);
|
|
1252
1252
|
} catch {
|
|
1253
1253
|
}
|
|
1254
|
-
e = e.replace(
|
|
1254
|
+
e = e.replace(r, l);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
return t && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), o && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
@@ -1262,8 +1262,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1262
1262
|
requestMethod: o,
|
|
1263
1263
|
requestHeaders: a,
|
|
1264
1264
|
requestParams: i,
|
|
1265
|
-
requestInterval:
|
|
1266
|
-
isOpenRequestTimer:
|
|
1265
|
+
requestInterval: s,
|
|
1266
|
+
isOpenRequestTimer: r
|
|
1267
1267
|
} = e, { contextRequestUrl: l, pageMode: d, touchEventId: c } = $(ce, {
|
|
1268
1268
|
contextRequestUrl: "",
|
|
1269
1269
|
pageMode: "normal",
|
|
@@ -1277,70 +1277,70 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1277
1277
|
if (!g || !o || !a || k(d) === "design")
|
|
1278
1278
|
return;
|
|
1279
1279
|
let y = {};
|
|
1280
|
-
i.forEach((
|
|
1281
|
-
const { key:
|
|
1282
|
-
if (typeof
|
|
1280
|
+
i.forEach((w) => {
|
|
1281
|
+
const { key: L, value: C } = w;
|
|
1282
|
+
if (typeof C == "object" && C.id) {
|
|
1283
1283
|
let u = {};
|
|
1284
|
-
const { id: p, prop:
|
|
1284
|
+
const { id: p, prop: T, propKey: F, operate: S } = C;
|
|
1285
1285
|
p === "THIS" ? u = m(k(c)) || {} : u = m(p) || {};
|
|
1286
|
-
const
|
|
1286
|
+
const _ = k(u[T]);
|
|
1287
1287
|
let U = null;
|
|
1288
1288
|
if (["date", "range"].some((O) => Ln(u == null ? void 0 : u.type, O))) {
|
|
1289
|
-
const { value: O, type:
|
|
1290
|
-
if (O &&
|
|
1291
|
-
switch (
|
|
1289
|
+
const { value: O, type: N, mode: z } = S || {};
|
|
1290
|
+
if (O && N && z)
|
|
1291
|
+
switch (N) {
|
|
1292
1292
|
case "add":
|
|
1293
|
-
U = k(
|
|
1293
|
+
U = k(_).add(O, z);
|
|
1294
1294
|
break;
|
|
1295
1295
|
case "minus":
|
|
1296
|
-
U = k(
|
|
1296
|
+
U = k(_).subtract(O, z);
|
|
1297
1297
|
break;
|
|
1298
1298
|
}
|
|
1299
|
-
U == null && (U = k(
|
|
1299
|
+
U == null && (U = k(_)), U = (U == null ? void 0 : U.format((F == null ? void 0 : F.trim()) || u.format)) || "";
|
|
1300
1300
|
} else
|
|
1301
|
-
Object.prototype.toString.call(
|
|
1302
|
-
y[
|
|
1301
|
+
Object.prototype.toString.call(_) === "[object Object]" ? U = _[F || "value"] : U = _;
|
|
1302
|
+
y[L] = U;
|
|
1303
1303
|
} else
|
|
1304
|
-
typeof
|
|
1304
|
+
typeof C == "string" && (y[L] = be(C));
|
|
1305
1305
|
}), y = { ...window.config.requestParams, ...v, ...y };
|
|
1306
1306
|
let h = "";
|
|
1307
|
-
const A = Object.keys(y),
|
|
1308
|
-
A.forEach((
|
|
1309
|
-
|
|
1307
|
+
const A = Object.keys(y), x = A.length - 1, B = A.length;
|
|
1308
|
+
A.forEach((w, L) => {
|
|
1309
|
+
L === 0 ? B !== 1 ? h += `?${w}=${y[w]}&` : h += `?${w}=${y[w]}` : L === x ? h += `${w}=${y[w]}` : h += `${w}=${y[w]}&`;
|
|
1310
1310
|
});
|
|
1311
1311
|
try {
|
|
1312
|
-
const
|
|
1312
|
+
const w = ["get", "head"].includes(o), L = await xe({
|
|
1313
1313
|
baseURL: k(l) || "",
|
|
1314
|
-
url:
|
|
1314
|
+
url: w ? g + h : g,
|
|
1315
1315
|
method: o,
|
|
1316
1316
|
headers: a,
|
|
1317
|
-
data:
|
|
1317
|
+
data: w ? {} : y
|
|
1318
1318
|
});
|
|
1319
|
-
return n(
|
|
1320
|
-
} catch (
|
|
1321
|
-
console.error(
|
|
1319
|
+
return n(L), L;
|
|
1320
|
+
} catch (w) {
|
|
1321
|
+
console.error(w);
|
|
1322
1322
|
}
|
|
1323
|
-
}, f =
|
|
1323
|
+
}, f = r && setInterval(b, s * 1e3);
|
|
1324
1324
|
return ut(() => {
|
|
1325
1325
|
clearInterval(f);
|
|
1326
1326
|
}), b;
|
|
1327
|
-
},
|
|
1327
|
+
}, Ne = (e = [], n) => {
|
|
1328
1328
|
let { name: t = "name", types: o = [] } = n || {};
|
|
1329
1329
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1330
|
-
const a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(),
|
|
1331
|
-
if (
|
|
1330
|
+
const a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), s = e.length, r = o.length;
|
|
1331
|
+
if (s === 1) {
|
|
1332
1332
|
const c = [];
|
|
1333
|
-
for (let g = 0; g <
|
|
1333
|
+
for (let g = 0; g < r; g++) {
|
|
1334
1334
|
const b = o[g], { label: f, value: v } = b, y = { ...e[0], value: e[0][v] };
|
|
1335
1335
|
a.add(f), c.push(y);
|
|
1336
1336
|
}
|
|
1337
1337
|
const m = e[0][t] || "";
|
|
1338
1338
|
i.set(m, c);
|
|
1339
1339
|
} else
|
|
1340
|
-
for (let c = 0; c <
|
|
1340
|
+
for (let c = 0; c < s; c++) {
|
|
1341
1341
|
const m = e[c], g = m[t];
|
|
1342
1342
|
a.add(g);
|
|
1343
|
-
for (let b = 0; b <
|
|
1343
|
+
for (let b = 0; b < r; b++) {
|
|
1344
1344
|
const f = o[b], { label: v, value: y } = f, h = { ...m, value: m[y] };
|
|
1345
1345
|
if (i.has(v)) {
|
|
1346
1346
|
const A = i.get(v);
|
|
@@ -1420,8 +1420,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1420
1420
|
}, A = n(y) || {};
|
|
1421
1421
|
if (b === "the_date" ? h.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(b) && (h.valueType = "TEXT"), A.type === "ecanDatePicker") {
|
|
1422
1422
|
h.dateFormat = A.format;
|
|
1423
|
-
const
|
|
1424
|
-
typeof
|
|
1423
|
+
const x = (c = k(A)) == null ? void 0 : c.value.format;
|
|
1424
|
+
typeof x == "function" && (h.fieldValue = x(A == null ? void 0 : A.format));
|
|
1425
1425
|
}
|
|
1426
1426
|
d.push(h);
|
|
1427
1427
|
}
|
|
@@ -1444,11 +1444,11 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1444
1444
|
}, c.customGroup.groupList.forEach((m, g) => {
|
|
1445
1445
|
g !== 0 && (l.customGroup.groupInfoMap[m.key] = m.value);
|
|
1446
1446
|
}), l.customGroup.otherGroupName = c.customGroup.otherName || ""), l.rangeIndexTypeGuid = c.typeGuid, l.customFilterSqlPart = c.filterSql || "";
|
|
1447
|
-
},
|
|
1447
|
+
}, s = (l, d) => {
|
|
1448
1448
|
for (let c = 0; c < l.children.length; c++)
|
|
1449
1449
|
if (l.children[c].children.length > 0) {
|
|
1450
1450
|
let m = "";
|
|
1451
|
-
l.type === "and" ? m = "&&" : m = "||", d.push({ conditions: [], join: m }),
|
|
1451
|
+
l.type === "and" ? m = "&&" : m = "||", d.push({ conditions: [], join: m }), s(l.children[c], d[d.length - 1].conditions);
|
|
1452
1452
|
} else if (l.children[c].fieldName) {
|
|
1453
1453
|
let m = "";
|
|
1454
1454
|
const g = {
|
|
@@ -1471,7 +1471,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1471
1471
|
}
|
|
1472
1472
|
g.fieldValue = m, l.children.length > 1 && c !== l.children.length - 1 && (l.type === "and" ? g.join = "&&" : g.join = "||"), d.push(g);
|
|
1473
1473
|
}
|
|
1474
|
-
},
|
|
1474
|
+
}, r = (l, d, c) => {
|
|
1475
1475
|
if (!l)
|
|
1476
1476
|
return;
|
|
1477
1477
|
const m = c[d].find((f) => f.name === l.label);
|
|
@@ -1480,11 +1480,11 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1480
1480
|
const g = [], b = m.filterList;
|
|
1481
1481
|
if (b)
|
|
1482
1482
|
for (let f = 0; f < b.length; f++)
|
|
1483
|
-
b[f].children.length > 0 &&
|
|
1483
|
+
b[f].children.length > 0 && s(b[f], g);
|
|
1484
1484
|
return g;
|
|
1485
1485
|
};
|
|
1486
1486
|
return async function() {
|
|
1487
|
-
var
|
|
1487
|
+
var w, L;
|
|
1488
1488
|
const l = e.type;
|
|
1489
1489
|
let d = e.graphicConfig;
|
|
1490
1490
|
(!d || Object.keys(d).length === 0) && (d = {
|
|
@@ -1506,13 +1506,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1506
1506
|
const g = t(d);
|
|
1507
1507
|
let b;
|
|
1508
1508
|
if (Array.isArray(d.series) && d.series.length > 0) {
|
|
1509
|
-
const
|
|
1509
|
+
const C = (w = d.seriesList) == null ? void 0 : w.find((u) => {
|
|
1510
1510
|
const p = d.series[0];
|
|
1511
1511
|
return u.name === p || u.nameBak === p;
|
|
1512
1512
|
});
|
|
1513
|
-
|
|
1514
|
-
label:
|
|
1515
|
-
columnName:
|
|
1513
|
+
C != null && (b = {
|
|
1514
|
+
label: C.name,
|
|
1515
|
+
columnName: C.label
|
|
1516
1516
|
});
|
|
1517
1517
|
}
|
|
1518
1518
|
let f;
|
|
@@ -1521,16 +1521,16 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1521
1521
|
label: c[0],
|
|
1522
1522
|
columnName: c[0]
|
|
1523
1523
|
};
|
|
1524
|
-
const
|
|
1525
|
-
f.columnName =
|
|
1524
|
+
const C = ((L = d.classifyList) == null ? void 0 : L.find((u) => (u == null ? void 0 : u.name) === c[0] || (u == null ? void 0 : u.nameBak) === c[0])) || {};
|
|
1525
|
+
f.columnName = C.label, i(f, d.classifyList), f.conditions = r(f, "classifyList", d) || [];
|
|
1526
1526
|
}
|
|
1527
|
-
b && (i(b, d.seriesList), b.conditions =
|
|
1528
|
-
for (let
|
|
1529
|
-
g[
|
|
1527
|
+
b && (i(b, d.seriesList), b.conditions = r(b, "seriesList", d) || []);
|
|
1528
|
+
for (let C = 0; C < g.length; C++)
|
|
1529
|
+
g[C].location === "RIGHT" ? g[C].conditions = r(g[C], "rightAxisList", d) : g[C].conditions = r(g[C], "leftAxisList", d);
|
|
1530
1530
|
let v;
|
|
1531
1531
|
(d == null ? void 0 : d.pageMode) === "design" ? v = d.sqlConditions ?? [] : v = a(d == null ? void 0 : d.relativeList);
|
|
1532
|
-
let y = "SQL_VIEW", h = "", A = "",
|
|
1533
|
-
d.source === "INDICATOR_LIB" && (y = "INDICATOR_LIB", h = d.fixedDimSql, A = d.dataSourceId,
|
|
1532
|
+
let y = "SQL_VIEW", h = "", A = "", x = "";
|
|
1533
|
+
d.source === "INDICATOR_LIB" && (y = "INDICATOR_LIB", h = d.fixedDimSql, A = d.dataSourceId, x = d.idxLibMode);
|
|
1534
1534
|
const B = {
|
|
1535
1535
|
ecanBar: "bar",
|
|
1536
1536
|
ecanLine: "line",
|
|
@@ -1538,7 +1538,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1538
1538
|
ecanScatter: "scatter"
|
|
1539
1539
|
};
|
|
1540
1540
|
try {
|
|
1541
|
-
const
|
|
1541
|
+
const C = await xe.get(`${ct}/user/anonymous?username=admin`, {
|
|
1542
1542
|
headers: {
|
|
1543
1543
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1544
1544
|
current_context: "ygt"
|
|
@@ -1556,32 +1556,38 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1556
1556
|
source: y,
|
|
1557
1557
|
fixedDimSql: h,
|
|
1558
1558
|
dataSourceId: A,
|
|
1559
|
-
idxLibMode:
|
|
1559
|
+
idxLibMode: x
|
|
1560
1560
|
}, {
|
|
1561
|
-
headers: { Authentication:
|
|
1561
|
+
headers: { Authentication: C.data.data.token }
|
|
1562
1562
|
});
|
|
1563
|
-
} catch (
|
|
1564
|
-
console.error(
|
|
1563
|
+
} catch (C) {
|
|
1564
|
+
console.error(C);
|
|
1565
1565
|
}
|
|
1566
1566
|
};
|
|
1567
1567
|
}, De = (e, n) => {
|
|
1568
|
+
var a;
|
|
1568
1569
|
if (e == null)
|
|
1569
1570
|
return n;
|
|
1570
1571
|
const t = e.match(/\{.*\}/g);
|
|
1571
1572
|
if (t == null || t.length === 0)
|
|
1572
1573
|
return n;
|
|
1573
1574
|
const o = t.length;
|
|
1574
|
-
for (let
|
|
1575
|
-
const
|
|
1576
|
-
if (
|
|
1575
|
+
for (let i = 0; i < o; i++) {
|
|
1576
|
+
const s = t[i];
|
|
1577
|
+
if (s == null || s === "")
|
|
1577
1578
|
break;
|
|
1578
|
-
let r =
|
|
1579
|
+
let r = (a = s.slice(1, -1)) == null ? void 0 : a.trim();
|
|
1579
1580
|
r = r == null ? void 0 : r.replace(/value/g, n);
|
|
1580
1581
|
try {
|
|
1581
|
-
let
|
|
1582
|
-
r !== n.toString()
|
|
1582
|
+
let l = r;
|
|
1583
|
+
if (r !== n.toString())
|
|
1584
|
+
try {
|
|
1585
|
+
l = (0, eval)(r);
|
|
1586
|
+
} catch {
|
|
1587
|
+
}
|
|
1588
|
+
e = e.replace(s, l);
|
|
1583
1589
|
} catch {
|
|
1584
|
-
e = e.replace(
|
|
1590
|
+
e = e.replace(s, r);
|
|
1585
1591
|
}
|
|
1586
1592
|
}
|
|
1587
1593
|
return e;
|
|
@@ -1593,19 +1599,19 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1593
1599
|
}
|
|
1594
1600
|
});
|
|
1595
1601
|
e.dataType === "indicator" && n();
|
|
1596
|
-
const t = (
|
|
1597
|
-
const { label:
|
|
1602
|
+
const t = (s = {}) => {
|
|
1603
|
+
const { label: r, name: l, location: d, show: c, indexCode: m } = s;
|
|
1598
1604
|
return {
|
|
1599
|
-
label:
|
|
1605
|
+
label: r,
|
|
1600
1606
|
columnName: l,
|
|
1601
1607
|
location: d,
|
|
1602
1608
|
show: c,
|
|
1603
1609
|
calcType: "COLUMN",
|
|
1604
1610
|
hrpIndexCode: m
|
|
1605
1611
|
};
|
|
1606
|
-
}, o = (
|
|
1612
|
+
}, o = (s = {}) => {
|
|
1607
1613
|
const {
|
|
1608
|
-
label:
|
|
1614
|
+
label: r,
|
|
1609
1615
|
name: l,
|
|
1610
1616
|
location: d,
|
|
1611
1617
|
show: c,
|
|
@@ -1616,9 +1622,9 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1616
1622
|
builtInCalcWay: v,
|
|
1617
1623
|
formula: y,
|
|
1618
1624
|
conditions: h
|
|
1619
|
-
} =
|
|
1625
|
+
} = s;
|
|
1620
1626
|
return {
|
|
1621
|
-
label:
|
|
1627
|
+
label: r,
|
|
1622
1628
|
columnName: l,
|
|
1623
1629
|
location: d,
|
|
1624
1630
|
show: c,
|
|
@@ -1634,13 +1640,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1634
1640
|
}, { getGlobalModel: a } = $(de, {
|
|
1635
1641
|
// @ts-ignore
|
|
1636
1642
|
// eslint-disable-next-line no-void
|
|
1637
|
-
getGlobalModel: (
|
|
1643
|
+
getGlobalModel: (s) => {
|
|
1638
1644
|
}
|
|
1639
|
-
}), i = (
|
|
1645
|
+
}), i = (s = []) => {
|
|
1640
1646
|
var d;
|
|
1641
|
-
const
|
|
1642
|
-
for (let c = 0; c <
|
|
1643
|
-
const m =
|
|
1647
|
+
const r = s.length, l = [];
|
|
1648
|
+
for (let c = 0; c < r; c++) {
|
|
1649
|
+
const m = s[c], {
|
|
1644
1650
|
id: g,
|
|
1645
1651
|
conditionLabel: b,
|
|
1646
1652
|
conditionKey: f,
|
|
@@ -1654,8 +1660,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1654
1660
|
valueType: v
|
|
1655
1661
|
}, h = a(g) || {};
|
|
1656
1662
|
if (Ln(h.type, "date")) {
|
|
1657
|
-
const { value: A, format:
|
|
1658
|
-
y.fieldValue = (d = k(A)) == null ? void 0 : d.format(
|
|
1663
|
+
const { value: A, format: x } = h || {};
|
|
1664
|
+
y.fieldValue = (d = k(A)) == null ? void 0 : d.format(x), y.dateFormat = x;
|
|
1659
1665
|
}
|
|
1660
1666
|
l.push(y);
|
|
1661
1667
|
}
|
|
@@ -1663,8 +1669,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1663
1669
|
};
|
|
1664
1670
|
return async () => {
|
|
1665
1671
|
var F;
|
|
1666
|
-
const { graphicConfig:
|
|
1667
|
-
source:
|
|
1672
|
+
const { graphicConfig: s } = e, {
|
|
1673
|
+
source: r,
|
|
1668
1674
|
dataViewId: l,
|
|
1669
1675
|
plugin: d,
|
|
1670
1676
|
layer: c,
|
|
@@ -1676,21 +1682,21 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1676
1682
|
queryColumnList: y = [],
|
|
1677
1683
|
indicators: h = [],
|
|
1678
1684
|
controlList: A = [],
|
|
1679
|
-
dataSourceId:
|
|
1685
|
+
dataSourceId: x,
|
|
1680
1686
|
idxLibMode: B,
|
|
1681
|
-
preview:
|
|
1682
|
-
} =
|
|
1683
|
-
let
|
|
1687
|
+
preview: w = !1
|
|
1688
|
+
} = s || {};
|
|
1689
|
+
let L;
|
|
1684
1690
|
if (Array.isArray(g) && g.length > 0) {
|
|
1685
1691
|
const S = g.length;
|
|
1686
|
-
for (let
|
|
1687
|
-
const U = g[
|
|
1688
|
-
if (
|
|
1689
|
-
|
|
1692
|
+
for (let _ = 0; _ < S; _++) {
|
|
1693
|
+
const U = g[_] || {}, { label: H = "", name: O = "", show: N = !1, sort: z, customGroup: W, conditions: ee } = U;
|
|
1694
|
+
if (N || S === 1) {
|
|
1695
|
+
L = {
|
|
1690
1696
|
label: H,
|
|
1691
1697
|
columnName: O,
|
|
1692
|
-
show:
|
|
1693
|
-
sort:
|
|
1698
|
+
show: N,
|
|
1699
|
+
sort: z,
|
|
1694
1700
|
customGroup: W,
|
|
1695
1701
|
conditions: ee
|
|
1696
1702
|
};
|
|
@@ -1698,17 +1704,17 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1698
1704
|
}
|
|
1699
1705
|
}
|
|
1700
1706
|
}
|
|
1701
|
-
let
|
|
1707
|
+
let C;
|
|
1702
1708
|
if (Array.isArray(b) && b.length > 0) {
|
|
1703
1709
|
const S = b.length;
|
|
1704
|
-
for (let
|
|
1705
|
-
const U = b[
|
|
1706
|
-
if (
|
|
1707
|
-
|
|
1710
|
+
for (let _ = 0; _ < S; _++) {
|
|
1711
|
+
const U = b[_] || {}, { label: H = "", name: O = "", show: N = !1, sort: z, customGroup: W, conditions: ee } = U;
|
|
1712
|
+
if (N || S === 1) {
|
|
1713
|
+
C = {
|
|
1708
1714
|
label: H,
|
|
1709
1715
|
columnName: O,
|
|
1710
|
-
show:
|
|
1711
|
-
sort:
|
|
1716
|
+
show: N,
|
|
1717
|
+
sort: z,
|
|
1712
1718
|
customGroup: W,
|
|
1713
1719
|
conditions: ee
|
|
1714
1720
|
};
|
|
@@ -1731,27 +1737,27 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1731
1737
|
return;
|
|
1732
1738
|
if (c === "2" && p.length === 0)
|
|
1733
1739
|
return;
|
|
1734
|
-
let
|
|
1735
|
-
(
|
|
1740
|
+
let T;
|
|
1741
|
+
(s == null ? void 0 : s.pageMode) === "design" ? T = s.sqlConditions ?? [] : T = i(A);
|
|
1736
1742
|
try {
|
|
1737
1743
|
return await xe.post(
|
|
1738
1744
|
`${ct}/diagram`,
|
|
1739
1745
|
{
|
|
1740
|
-
source:
|
|
1746
|
+
source: r,
|
|
1741
1747
|
dataViewId: l,
|
|
1742
1748
|
plugin: d,
|
|
1743
1749
|
layer: c,
|
|
1744
1750
|
chartType: m,
|
|
1745
|
-
classification:
|
|
1746
|
-
series:
|
|
1751
|
+
classification: L,
|
|
1752
|
+
series: C,
|
|
1747
1753
|
indicatorList: p,
|
|
1748
1754
|
queryColumns: u,
|
|
1749
1755
|
pageFlag: !0,
|
|
1750
|
-
sqlConditions:
|
|
1756
|
+
sqlConditions: T,
|
|
1751
1757
|
// fixedDimSql: '',
|
|
1752
|
-
dataSourceId:
|
|
1758
|
+
dataSourceId: x,
|
|
1753
1759
|
idxLibMode: B,
|
|
1754
|
-
preview:
|
|
1760
|
+
preview: w
|
|
1755
1761
|
},
|
|
1756
1762
|
{
|
|
1757
1763
|
headers: {
|
|
@@ -1773,8 +1779,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1773
1779
|
continue;
|
|
1774
1780
|
const i = a.split("=");
|
|
1775
1781
|
if (Array.isArray(i)) {
|
|
1776
|
-
const
|
|
1777
|
-
window.config[
|
|
1782
|
+
const s = i[0], r = i[1];
|
|
1783
|
+
window.config[s] = r;
|
|
1778
1784
|
}
|
|
1779
1785
|
}
|
|
1780
1786
|
}, Ll = Q({
|
|
@@ -1790,22 +1796,22 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1790
1796
|
backgroundColor: e.backgroundColor,
|
|
1791
1797
|
backgroundImage: Re(e.backgroundImage, !0),
|
|
1792
1798
|
backgroundSize: e.backgroundSize
|
|
1793
|
-
})), t =
|
|
1799
|
+
})), t = I(0), o = I(0), a = I(0), i = I(0), s = I(!1), r = I();
|
|
1794
1800
|
let l;
|
|
1795
1801
|
const d = () => new Promise((v) => {
|
|
1796
1802
|
ft(() => {
|
|
1797
|
-
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value =
|
|
1803
|
+
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, o.value = r.value.clientHeight), (!a.value || !i.value) && (a.value = window.screen.width, i.value = window.screen.height), v();
|
|
1798
1804
|
});
|
|
1799
1805
|
}), c = () => {
|
|
1800
|
-
t.value && o.value ? (
|
|
1806
|
+
t.value && o.value ? (r.value.style.width = `${t.value}px`, r.value.style.height = `${o.value}px`) : (r.value.style.width = `${a.value}px`, r.value.style.height = `${i.value}px`);
|
|
1801
1807
|
}, m = () => {
|
|
1802
|
-
const v = document.body.clientWidth, y = document.body.clientHeight, h = t.value || a.value, A = o.value || i.value,
|
|
1803
|
-
|
|
1808
|
+
const v = document.body.clientWidth, y = document.body.clientHeight, h = t.value || a.value, A = o.value || i.value, x = v / h, B = y / A;
|
|
1809
|
+
r.value && (r.value.style.transform = `scale(${x}, ${B})`);
|
|
1804
1810
|
}, g = It(async () => {
|
|
1805
1811
|
await d(), m();
|
|
1806
1812
|
}, 100), b = () => {
|
|
1807
1813
|
const v = window.MutationObserver;
|
|
1808
|
-
l = new v(g), l.observe(
|
|
1814
|
+
l = new v(g), l.observe(r.value, {
|
|
1809
1815
|
attributes: !0,
|
|
1810
1816
|
attributeFilter: ["style"],
|
|
1811
1817
|
attributeOldValue: !0
|
|
@@ -1814,13 +1820,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1814
1820
|
l && (l.disconnect(), l.takeRecords(), l = null);
|
|
1815
1821
|
};
|
|
1816
1822
|
return Je(async () => {
|
|
1817
|
-
|
|
1823
|
+
s.value = !1, await d(), c(), m(), window.addEventListener("resize", g), b(), s.value = !0;
|
|
1818
1824
|
}), ut(() => {
|
|
1819
1825
|
window.removeEventListener("resize", g), f();
|
|
1820
1826
|
}), {
|
|
1821
1827
|
style: n,
|
|
1822
|
-
container:
|
|
1823
|
-
ready:
|
|
1828
|
+
container: r,
|
|
1829
|
+
ready: s
|
|
1824
1830
|
};
|
|
1825
1831
|
}
|
|
1826
1832
|
});
|
|
@@ -1852,7 +1858,7 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1852
1858
|
},
|
|
1853
1859
|
setup(e, { expose: n }) {
|
|
1854
1860
|
_l();
|
|
1855
|
-
const t =
|
|
1861
|
+
const t = I(), o = () => {
|
|
1856
1862
|
t.value.setAttribute("datav-theme", e.theme);
|
|
1857
1863
|
};
|
|
1858
1864
|
ne(() => e.theme, () => {
|
|
@@ -1860,21 +1866,21 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1860
1866
|
}), Je(() => {
|
|
1861
1867
|
o();
|
|
1862
1868
|
});
|
|
1863
|
-
const a = q(() => be(e.contextRequestUrl)), i = q(() => e.pageMode),
|
|
1869
|
+
const a = q(() => be(e.contextRequestUrl)), i = q(() => e.pageMode), s = q(() => e.theme), r = I("");
|
|
1864
1870
|
Fe(ce, {
|
|
1865
1871
|
// 请求地址
|
|
1866
1872
|
contextRequestUrl: a,
|
|
1867
1873
|
// 模式(设计、预览、正常):目前主要配置初始化是否发起请求
|
|
1868
1874
|
pageMode: i,
|
|
1869
1875
|
// 主题
|
|
1870
|
-
theme:
|
|
1871
|
-
touchEventId:
|
|
1876
|
+
theme: s,
|
|
1877
|
+
touchEventId: r
|
|
1872
1878
|
});
|
|
1873
1879
|
const l = /* @__PURE__ */ new Map(), d = (O) => l.get(O);
|
|
1874
1880
|
Fe(de, {
|
|
1875
1881
|
getGlobalModel: d,
|
|
1876
|
-
setGlobalModel: (O,
|
|
1877
|
-
l.set(O,
|
|
1882
|
+
setGlobalModel: (O, N) => {
|
|
1883
|
+
l.set(O, N);
|
|
1878
1884
|
}
|
|
1879
1885
|
});
|
|
1880
1886
|
const m = [], g = () => {
|
|
@@ -1886,73 +1892,73 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1886
1892
|
popUseModalIds: g,
|
|
1887
1893
|
pushUseModalIds: b,
|
|
1888
1894
|
getModalModel: v,
|
|
1889
|
-
setModalModel: (O,
|
|
1890
|
-
f.set(O,
|
|
1895
|
+
setModalModel: (O, N) => {
|
|
1896
|
+
f.set(O, N);
|
|
1891
1897
|
}
|
|
1892
1898
|
});
|
|
1893
|
-
const h = na(), A = /* @__PURE__ */ new Set(),
|
|
1894
|
-
A.add(O), h.on(O, (
|
|
1899
|
+
const h = na(), A = /* @__PURE__ */ new Set(), x = (O, N) => {
|
|
1900
|
+
A.add(O), h.on(O, (z) => typeof N[z] == "function" && N[z]()), Nt(() => {
|
|
1895
1901
|
B(O);
|
|
1896
1902
|
});
|
|
1897
1903
|
}, B = (O) => {
|
|
1898
1904
|
A.delete(O), h.off(O);
|
|
1899
1905
|
};
|
|
1900
1906
|
Fe(Ft, {
|
|
1901
|
-
onEvent:
|
|
1907
|
+
onEvent: x,
|
|
1902
1908
|
offEvent: B,
|
|
1903
|
-
emitEvent: (O,
|
|
1909
|
+
emitEvent: (O, N) => {
|
|
1904
1910
|
if (O === "PAGE") {
|
|
1905
|
-
const
|
|
1911
|
+
const z = m.length;
|
|
1906
1912
|
let W = [];
|
|
1907
|
-
if (
|
|
1913
|
+
if (z === 0)
|
|
1908
1914
|
W = [...A];
|
|
1909
1915
|
else {
|
|
1910
|
-
const ee = m[
|
|
1916
|
+
const ee = m[z - 1];
|
|
1911
1917
|
W = [...v(ee)];
|
|
1912
1918
|
}
|
|
1913
1919
|
W.forEach((ee) => {
|
|
1914
|
-
h.emit(ee,
|
|
1920
|
+
h.emit(ee, N);
|
|
1915
1921
|
});
|
|
1916
1922
|
} else
|
|
1917
|
-
h.emit(O,
|
|
1923
|
+
h.emit(O, N);
|
|
1918
1924
|
}
|
|
1919
1925
|
});
|
|
1920
|
-
const
|
|
1926
|
+
const L = I(0);
|
|
1921
1927
|
Fe(Tn, {
|
|
1922
1928
|
requestToken: () => {
|
|
1923
|
-
|
|
1929
|
+
L.value = k(L) + 1;
|
|
1924
1930
|
}
|
|
1925
1931
|
});
|
|
1926
|
-
const u = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(),
|
|
1927
|
-
}, sortNum:
|
|
1928
|
-
if (u.has(
|
|
1929
|
-
const W = u.get(
|
|
1932
|
+
const u = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), T = ({ requestFn: O = () => {
|
|
1933
|
+
}, sortNum: N = 0, id: z = "" }) => {
|
|
1934
|
+
if (u.has(N)) {
|
|
1935
|
+
const W = u.get(N);
|
|
1930
1936
|
W == null || W.push(O);
|
|
1931
1937
|
} else
|
|
1932
|
-
u.set(
|
|
1933
|
-
p.set(
|
|
1934
|
-
}, F = (O) => new Promise((
|
|
1938
|
+
u.set(N, [O]);
|
|
1939
|
+
p.set(z, O);
|
|
1940
|
+
}, F = (O) => new Promise((N, z) => {
|
|
1935
1941
|
const W = O.map((ee) => ee());
|
|
1936
1942
|
Promise.all(W).then((ee) => {
|
|
1937
|
-
z(ee);
|
|
1938
|
-
}).catch((ee) => {
|
|
1939
1943
|
N(ee);
|
|
1944
|
+
}).catch((ee) => {
|
|
1945
|
+
z(ee);
|
|
1940
1946
|
});
|
|
1941
1947
|
}), S = async () => {
|
|
1942
|
-
var
|
|
1948
|
+
var N;
|
|
1943
1949
|
const O = await mn.get(`${ct}/user/anonymous?username=admin`, {
|
|
1944
1950
|
headers: {
|
|
1945
1951
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1946
1952
|
current_context: "ygt"
|
|
1947
1953
|
}
|
|
1948
1954
|
});
|
|
1949
|
-
config.indicatorToken = (
|
|
1950
|
-
},
|
|
1955
|
+
config.indicatorToken = (N = O.data.data) == null ? void 0 : N.token;
|
|
1956
|
+
}, _ = (O) => new Promise(async (N, z) => {
|
|
1951
1957
|
if (O) {
|
|
1952
1958
|
if (typeof O == "string") {
|
|
1953
1959
|
const W = p.get(O);
|
|
1954
1960
|
if (typeof W == "function") {
|
|
1955
|
-
const ee = xe.interceptors.response.use((se) => (
|
|
1961
|
+
const ee = xe.interceptors.response.use((se) => (N(se), se), (se) => (z(se), Promise.reject(se)));
|
|
1956
1962
|
W(), xe.interceptors.response.eject(ee);
|
|
1957
1963
|
}
|
|
1958
1964
|
}
|
|
@@ -1961,7 +1967,7 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1961
1967
|
W.sort((se, nt) => nt[0] - se[0]);
|
|
1962
1968
|
const ee = W.length;
|
|
1963
1969
|
try {
|
|
1964
|
-
e.pageMode !== "design" && k(
|
|
1970
|
+
e.pageMode !== "design" && k(L) > 0 && await S();
|
|
1965
1971
|
for (let se = 0; se < ee; se++) {
|
|
1966
1972
|
const nt = W[se][1];
|
|
1967
1973
|
await F(nt);
|
|
@@ -1969,13 +1975,13 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1969
1975
|
} catch (se) {
|
|
1970
1976
|
console.error(se);
|
|
1971
1977
|
} finally {
|
|
1972
|
-
u.clear(),
|
|
1978
|
+
u.clear(), N(null);
|
|
1973
1979
|
}
|
|
1974
1980
|
}
|
|
1975
1981
|
});
|
|
1976
1982
|
Fe(Ce, {
|
|
1977
|
-
setRequest:
|
|
1978
|
-
touchRequest:
|
|
1983
|
+
setRequest: T,
|
|
1984
|
+
touchRequest: _
|
|
1979
1985
|
}), Fe(He, {
|
|
1980
1986
|
emitRefreshPage: () => {
|
|
1981
1987
|
h.emit(He);
|
|
@@ -1986,10 +1992,10 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1986
1992
|
h.off(He);
|
|
1987
1993
|
});
|
|
1988
1994
|
};
|
|
1989
|
-
return
|
|
1995
|
+
return Nt(() => {
|
|
1990
1996
|
u == null || u.clear(), p == null || p.clear();
|
|
1991
1997
|
}), n({
|
|
1992
|
-
touchRequest:
|
|
1998
|
+
touchRequest: _,
|
|
1993
1999
|
getGlobalModel: d,
|
|
1994
2000
|
onRefreshPage: H
|
|
1995
2001
|
}), {
|
|
@@ -2005,7 +2011,7 @@ function Dl(e, n, t, o, a, i) {
|
|
|
2005
2011
|
mt(e.$slots, "default")
|
|
2006
2012
|
], 512);
|
|
2007
2013
|
}
|
|
2008
|
-
const
|
|
2014
|
+
const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
2009
2015
|
...re,
|
|
2010
2016
|
name: "文本",
|
|
2011
2017
|
keyName: "文本",
|
|
@@ -2036,7 +2042,7 @@ const Nl = /* @__PURE__ */ K(Fl, [["render", Dl]]), zl = oe(Nl), Fn = {
|
|
|
2036
2042
|
...Rn
|
|
2037
2043
|
},
|
|
2038
2044
|
setup(e) {
|
|
2039
|
-
const n = ie(e), t =
|
|
2045
|
+
const n = ie(e), t = I({});
|
|
2040
2046
|
ne(() => [e.data, e.dataType], ([g, b]) => {
|
|
2041
2047
|
b === "static" && (t.value = g);
|
|
2042
2048
|
}, {
|
|
@@ -2047,35 +2053,49 @@ const Nl = /* @__PURE__ */ K(Fl, [["render", Dl]]), zl = oe(Nl), Fn = {
|
|
|
2047
2053
|
const g = k(t);
|
|
2048
2054
|
let b = e.text;
|
|
2049
2055
|
b = b == null ? void 0 : b.replace(/\n|\\n/g, "<br/>"), b = b == null ? void 0 : b.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
2050
|
-
const f = b.match(/\{\
|
|
2056
|
+
const f = b.match(/\{(.+?)\}/g);
|
|
2051
2057
|
if (f == null || f.length === 0)
|
|
2052
2058
|
return b;
|
|
2053
2059
|
for (let y = 0; y < f.length; y++) {
|
|
2054
2060
|
const h = f[y], A = (v = h == null ? void 0 : h.slice(1, h.length - 1)) == null ? void 0 : v.trim();
|
|
2055
|
-
let
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2061
|
+
let x = A;
|
|
2062
|
+
const B = A.match(/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g);
|
|
2063
|
+
for (let L = 0; L < B.length; L++) {
|
|
2064
|
+
const C = B[L], u = g[C];
|
|
2065
|
+
u && (x = A.replace(C, u));
|
|
2066
|
+
}
|
|
2067
|
+
if (A !== x) {
|
|
2068
|
+
let L = null;
|
|
2069
|
+
try {
|
|
2070
|
+
L = (0, eval)(x);
|
|
2071
|
+
} catch {
|
|
2072
|
+
}
|
|
2073
|
+
L != null && (x = L);
|
|
2074
|
+
}
|
|
2075
|
+
let w = x;
|
|
2076
|
+
if (w != null) {
|
|
2077
|
+
const L = e.format;
|
|
2078
|
+
L === "percentage" ? (w = +w, isNaN(w) ? b = b.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : w >= 0 ? (w = (w * 100).toFixed(2), b = b.replace(h, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Pl}"/>${w}%</span>`)) : (w = (w * 100).toFixed(2), b = b.replace(h, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${Math.abs(+w)}%</span>`))) : L === "percent" ? (w = +w, isNaN(w) || (w = (w * 100).toFixed(2), b = b.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}%</span>`))) : e.format === "money" ? (w = +w, isNaN(w) || (w = Rt(w), b = b.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : L === "thousands" ? (w = +w, isNaN(w) || (w = Tl(w), b = b.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : b = b.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`);
|
|
2059
2079
|
} else
|
|
2060
2080
|
b = b.replace(h, e.variableDefaultValue);
|
|
2061
2081
|
}
|
|
2062
2082
|
return `<span>${b}</span>`;
|
|
2063
2083
|
}), { pageMode: a } = $(ce, {
|
|
2064
2084
|
pageMode: "normal"
|
|
2065
|
-
}), i = Ae(e),
|
|
2085
|
+
}), i = Ae(e), s = I(!1), r = async () => {
|
|
2066
2086
|
var g;
|
|
2067
2087
|
if (k(a) !== "design")
|
|
2068
2088
|
try {
|
|
2069
|
-
|
|
2089
|
+
s.value = !0;
|
|
2070
2090
|
const b = await i();
|
|
2071
2091
|
t.value = ((g = b == null ? void 0 : b.data) == null ? void 0 : g.data) || {};
|
|
2072
2092
|
} catch (b) {
|
|
2073
2093
|
console.error(b);
|
|
2074
2094
|
} finally {
|
|
2075
|
-
|
|
2095
|
+
s.value = !1;
|
|
2076
2096
|
}
|
|
2077
2097
|
}, l = () => {
|
|
2078
|
-
e.dataType !== "static" &&
|
|
2098
|
+
e.dataType !== "static" && r();
|
|
2079
2099
|
};
|
|
2080
2100
|
ge(e, {
|
|
2081
2101
|
refreshData: l
|
|
@@ -2108,33 +2128,33 @@ const Nl = /* @__PURE__ */ K(Fl, [["render", Dl]]), zl = oe(Nl), Fn = {
|
|
|
2108
2128
|
return {
|
|
2109
2129
|
style: n,
|
|
2110
2130
|
myText: o,
|
|
2111
|
-
loading:
|
|
2131
|
+
loading: s,
|
|
2112
2132
|
click: m
|
|
2113
2133
|
};
|
|
2114
2134
|
}
|
|
2115
2135
|
});
|
|
2116
2136
|
const Ul = ["innerHTML"];
|
|
2117
2137
|
function ql(e, n, t, o, a, i) {
|
|
2118
|
-
const
|
|
2138
|
+
const s = Z("skeleton");
|
|
2119
2139
|
return e.loading ? (E(), R("div", {
|
|
2120
2140
|
key: 0,
|
|
2121
2141
|
class: "skeleton-wrapper",
|
|
2122
2142
|
style: G(e.style)
|
|
2123
2143
|
}, [
|
|
2124
|
-
j(
|
|
2144
|
+
j(s, { loading: e.loading }, null, 8, ["loading"])
|
|
2125
2145
|
], 4)) : (E(), R("div", {
|
|
2126
2146
|
key: 1,
|
|
2127
2147
|
class: "ecan-text",
|
|
2128
2148
|
style: G(e.style),
|
|
2129
2149
|
innerHTML: e.myText,
|
|
2130
|
-
onClick: n[0] || (n[0] = (...
|
|
2150
|
+
onClick: n[0] || (n[0] = (...r) => e.click && e.click(...r))
|
|
2131
2151
|
}, null, 12, Ul));
|
|
2132
2152
|
}
|
|
2133
|
-
const jl = /* @__PURE__ */ K(Gl, [["render", ql], ["__scopeId", "data-v-
|
|
2153
|
+
const jl = /* @__PURE__ */ K(Gl, [["render", ql], ["__scopeId", "data-v-2309a080"]]), Wl = oe(jl), Vl = Q({
|
|
2134
2154
|
name: "EcanScrollText",
|
|
2135
2155
|
setup() {
|
|
2136
2156
|
return {
|
|
2137
|
-
text:
|
|
2157
|
+
text: I("基础文本")
|
|
2138
2158
|
};
|
|
2139
2159
|
}
|
|
2140
2160
|
});
|
|
@@ -2157,13 +2177,13 @@ const Jl = /* @__PURE__ */ K(Vl, [["render", Zl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2157
2177
|
fontWeight: 400,
|
|
2158
2178
|
textShadow: "",
|
|
2159
2179
|
verticalAlign: "middle"
|
|
2160
|
-
},
|
|
2180
|
+
}, zn = ae(Dn), Ql = Q({
|
|
2161
2181
|
name: "EcanTimeDisplay",
|
|
2162
2182
|
props: {
|
|
2163
|
-
...
|
|
2183
|
+
...zn
|
|
2164
2184
|
},
|
|
2165
2185
|
setup(e) {
|
|
2166
|
-
const n = ie(e), t =
|
|
2186
|
+
const n = ie(e), t = I(Me().format(e.format));
|
|
2167
2187
|
let o = null;
|
|
2168
2188
|
const a = () => {
|
|
2169
2189
|
clearInterval(o), o = null;
|
|
@@ -2188,7 +2208,7 @@ function Kl(e, n, t, o, a, i) {
|
|
|
2188
2208
|
style: G(e.style)
|
|
2189
2209
|
}, he(e.time), 5);
|
|
2190
2210
|
}
|
|
2191
|
-
const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3"]]), ei = oe(Xl),
|
|
2211
|
+
const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3"]]), ei = oe(Xl), Nn = {
|
|
2192
2212
|
...re,
|
|
2193
2213
|
type: "ecanList",
|
|
2194
2214
|
name: "列表",
|
|
@@ -2221,14 +2241,14 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3
|
|
|
2221
2241
|
key: "age"
|
|
2222
2242
|
}
|
|
2223
2243
|
]
|
|
2224
|
-
}, $n = ae(
|
|
2244
|
+
}, $n = ae(Nn), ti = ["refreshData", "click"], ni = Q({
|
|
2225
2245
|
name: "EcanList",
|
|
2226
2246
|
components: { Skeleton: gt },
|
|
2227
2247
|
props: {
|
|
2228
2248
|
...$n
|
|
2229
2249
|
},
|
|
2230
2250
|
setup(e) {
|
|
2231
|
-
const n =
|
|
2251
|
+
const n = I(e.data), t = ie(e, ["backgroundColor"]), o = q(() => e.useRanking ? {
|
|
2232
2252
|
textAlign: "center"
|
|
2233
2253
|
} : {
|
|
2234
2254
|
textAlign: "left"
|
|
@@ -2246,14 +2266,14 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3
|
|
|
2246
2266
|
case y < 0:
|
|
2247
2267
|
return "goDown";
|
|
2248
2268
|
}
|
|
2249
|
-
},
|
|
2269
|
+
}, s = Ae(e), { pageMode: r } = $(ce, {
|
|
2250
2270
|
pageMode: "normal"
|
|
2251
|
-
}), l =
|
|
2271
|
+
}), l = I(!1), d = async () => {
|
|
2252
2272
|
var f;
|
|
2253
|
-
if (!(e.dataType !== "request" || k(
|
|
2273
|
+
if (!(e.dataType !== "request" || k(r) === "design"))
|
|
2254
2274
|
try {
|
|
2255
2275
|
l.value = !0;
|
|
2256
|
-
const v = await
|
|
2276
|
+
const v = await s();
|
|
2257
2277
|
n.value = ((f = v == null ? void 0 : v.data) == null ? void 0 : f.data.rows) || [];
|
|
2258
2278
|
} catch (v) {
|
|
2259
2279
|
console.error(v);
|
|
@@ -2305,23 +2325,23 @@ const oi = (e) => (sn("data-v-baf2ff0c"), e = e(), cn(), e), ai = {
|
|
|
2305
2325
|
class: "empty"
|
|
2306
2326
|
};
|
|
2307
2327
|
function ui(e, n, t, o, a, i) {
|
|
2308
|
-
const
|
|
2328
|
+
const s = Z("skeleton");
|
|
2309
2329
|
return E(), R("div", {
|
|
2310
2330
|
class: "ecan-list",
|
|
2311
2331
|
style: G(e.style)
|
|
2312
2332
|
}, [
|
|
2313
|
-
j(
|
|
2333
|
+
j(s, { loading: e.loading }, {
|
|
2314
2334
|
default: Y(() => [
|
|
2315
2335
|
e.useTitle ? (E(), R("div", ai, [
|
|
2316
|
-
(E(!0), R(Le, null, Ie(e.columnCount, (
|
|
2336
|
+
(E(!0), R(Le, null, Ie(e.columnCount, (r) => (E(), R("div", {
|
|
2317
2337
|
class: "title-inner",
|
|
2318
2338
|
style: G({
|
|
2319
2339
|
backgroundColor: e.backgroundColor,
|
|
2320
2340
|
height: e.itemHeight,
|
|
2321
2341
|
width: `calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount - 1}/ ${e.columnCount})`,
|
|
2322
|
-
marginRight:
|
|
2342
|
+
marginRight: r % e.columnCount !== 0 ? e.itemColSpan : ""
|
|
2323
2343
|
}),
|
|
2324
|
-
key:
|
|
2344
|
+
key: r
|
|
2325
2345
|
}, [
|
|
2326
2346
|
e.useRanking ? (E(), R("div", li)) : pe("", !0),
|
|
2327
2347
|
(E(!0), R(Le, null, Ie(e.columns, (l, d) => (E(), R("div", {
|
|
@@ -2342,7 +2362,7 @@ function ui(e, n, t, o, a, i) {
|
|
|
2342
2362
|
marginBottom: e.itemRowSpan
|
|
2343
2363
|
})
|
|
2344
2364
|
}, null, 4)) : pe("", !0),
|
|
2345
|
-
(E(!0), R(Le, null, Ie(e.dataSource.slice(0, e.sliceCount), (
|
|
2365
|
+
(E(!0), R(Le, null, Ie(e.dataSource.slice(0, e.sliceCount), (r, l) => (E(), R("div", {
|
|
2346
2366
|
class: "item",
|
|
2347
2367
|
style: G({
|
|
2348
2368
|
backgroundColor: e.backgroundColor,
|
|
@@ -2351,7 +2371,7 @@ function ui(e, n, t, o, a, i) {
|
|
|
2351
2371
|
marginRight: (l + 1) % e.columnCount !== 0 ? e.itemColSpan : "",
|
|
2352
2372
|
marginBottom: e.itemRowSpan
|
|
2353
2373
|
}),
|
|
2354
|
-
key:
|
|
2374
|
+
key: r.id || l,
|
|
2355
2375
|
onClick: n[0] || (n[0] = (...d) => e.click && e.click(...d))
|
|
2356
2376
|
}, [
|
|
2357
2377
|
e.useRanking ? (E(), R("div", ri, [
|
|
@@ -2359,15 +2379,15 @@ function ui(e, n, t, o, a, i) {
|
|
|
2359
2379
|
X("div", ci, " Top " + he(l + 1), 1)
|
|
2360
2380
|
])) : pe("", !0),
|
|
2361
2381
|
(E(!0), R(Le, null, Ie(e.columns, (d) => (E(), R("div", {
|
|
2362
|
-
class: xt(["column", e.contrastClass(
|
|
2382
|
+
class: xt(["column", e.contrastClass(r[d.key], d.format)]),
|
|
2363
2383
|
key: d.key,
|
|
2364
2384
|
style: G({
|
|
2365
2385
|
fontSize: d.fontSize,
|
|
2366
|
-
color: e.contrastClass(
|
|
2386
|
+
color: e.contrastClass(r[d.key], d.format) === "" ? d.color : "",
|
|
2367
2387
|
fontWeight: d.fontWeight,
|
|
2368
2388
|
...e.columnStyle
|
|
2369
2389
|
})
|
|
2370
|
-
}, he((d.format != null || d.format !== "") && e.formatFn(
|
|
2390
|
+
}, he((d.format != null || d.format !== "") && e.formatFn(r[d.key], d.format)), 7))), 128))
|
|
2371
2391
|
], 4))), 128))
|
|
2372
2392
|
])) : (E(), R("div", di, " 暂无数据 "))
|
|
2373
2393
|
]),
|
|
@@ -2413,7 +2433,7 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2413
2433
|
}), t = ie(e), o = q(() => {
|
|
2414
2434
|
const f = e.width;
|
|
2415
2435
|
return parseFloat(f);
|
|
2416
|
-
}), a =
|
|
2436
|
+
}), a = I({});
|
|
2417
2437
|
ne(() => e.data, () => {
|
|
2418
2438
|
(e.dataType === "static" || k(n) === "design") && (a.value = e.data);
|
|
2419
2439
|
}, {
|
|
@@ -2427,43 +2447,43 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2427
2447
|
const y = e.text.match(/\{.+\}/g) || [];
|
|
2428
2448
|
let h;
|
|
2429
2449
|
const A = new Set(Object.keys(f));
|
|
2430
|
-
for (let
|
|
2431
|
-
const B = y[
|
|
2432
|
-
if (A.has(
|
|
2433
|
-
h = f[
|
|
2450
|
+
for (let x = 0; x < y.length; x++) {
|
|
2451
|
+
const B = y[x], w = B.slice(1, B.length - 1);
|
|
2452
|
+
if (A.has(w)) {
|
|
2453
|
+
h = f[w];
|
|
2434
2454
|
break;
|
|
2435
2455
|
}
|
|
2436
2456
|
}
|
|
2437
2457
|
return typeof h == "number" ? h = h * 100 : typeof h == "string" && !isNaN(+h) ? h = +h * 100 : isNaN(v) ? h = 0 : h = v * 100, e.decimalFormat && (h = +h.toFixed(2)), h;
|
|
2438
|
-
}),
|
|
2458
|
+
}), s = q(() => {
|
|
2439
2459
|
var A;
|
|
2440
2460
|
let f = e.text;
|
|
2441
2461
|
if (f === "")
|
|
2442
2462
|
return k(i);
|
|
2443
2463
|
const v = e.variableDefaultValue, y = k(a), h = f.match(/\{.+\}/g) || [];
|
|
2444
|
-
for (let
|
|
2445
|
-
const B = h[
|
|
2446
|
-
let
|
|
2447
|
-
const
|
|
2448
|
-
for (let u = 0; u < (
|
|
2449
|
-
const p = (A =
|
|
2450
|
-
y[p] != null ?
|
|
2464
|
+
for (let x = 0; x < h.length; x++) {
|
|
2465
|
+
const B = h[x];
|
|
2466
|
+
let w = B.slice(1, B.length - 1);
|
|
2467
|
+
const L = w.match(/.*/g);
|
|
2468
|
+
for (let u = 0; u < (L == null ? void 0 : L.length); u++) {
|
|
2469
|
+
const p = (A = L[x]) == null ? void 0 : A.trim();
|
|
2470
|
+
y[p] != null ? w = w.replace(p, y[p]) : w = w.replace(p, v);
|
|
2451
2471
|
}
|
|
2452
|
-
let
|
|
2472
|
+
let C = w;
|
|
2453
2473
|
try {
|
|
2454
|
-
/\w+[+\-*/%]+\w+/g.test(
|
|
2474
|
+
/\w+[+\-*/%]+\w+/g.test(w) && (C = (0, eval)(w));
|
|
2455
2475
|
} catch (u) {
|
|
2456
2476
|
console.error(u);
|
|
2457
2477
|
}
|
|
2458
|
-
(typeof
|
|
2478
|
+
(typeof C == "number" || !isNaN(+C)) && (C = +C * 100, e.decimalFormat && (C = C.toFixed(2))), f = f.replace(B, C + "");
|
|
2459
2479
|
}
|
|
2460
2480
|
return f;
|
|
2461
|
-
}),
|
|
2481
|
+
}), r = Ae(e), l = I(!1), d = async () => {
|
|
2462
2482
|
var f;
|
|
2463
2483
|
if (!(e.dataType !== "request" || k(n) === "design"))
|
|
2464
2484
|
try {
|
|
2465
2485
|
l.value = !0;
|
|
2466
|
-
const v = await
|
|
2486
|
+
const v = await r();
|
|
2467
2487
|
a.value = ((f = v == null ? void 0 : v.data) == null ? void 0 : f.data) || {};
|
|
2468
2488
|
} catch (v) {
|
|
2469
2489
|
console.error(v);
|
|
@@ -2490,7 +2510,7 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2490
2510
|
}), {
|
|
2491
2511
|
style: t,
|
|
2492
2512
|
myWidth: o,
|
|
2493
|
-
text:
|
|
2513
|
+
text: s,
|
|
2494
2514
|
myValue: i,
|
|
2495
2515
|
loading: l,
|
|
2496
2516
|
click: g
|
|
@@ -2498,12 +2518,12 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2498
2518
|
}
|
|
2499
2519
|
});
|
|
2500
2520
|
function yi(e, n, t, o, a, i) {
|
|
2501
|
-
const
|
|
2521
|
+
const s = Z("skeleton"), r = Z("a-progress");
|
|
2502
2522
|
return E(), R("div", {
|
|
2503
2523
|
class: "ecan-proportion",
|
|
2504
2524
|
style: G(e.style)
|
|
2505
2525
|
}, [
|
|
2506
|
-
j(
|
|
2526
|
+
j(r, {
|
|
2507
2527
|
class: "progress",
|
|
2508
2528
|
percent: e.myValue,
|
|
2509
2529
|
width: e.myWidth,
|
|
@@ -2516,7 +2536,7 @@ function yi(e, n, t, o, a, i) {
|
|
|
2516
2536
|
onClick: e.click
|
|
2517
2537
|
}, {
|
|
2518
2538
|
format: Y(() => [
|
|
2519
|
-
e.loading ? (E(), Oe(
|
|
2539
|
+
e.loading ? (E(), Oe(s, {
|
|
2520
2540
|
key: 0,
|
|
2521
2541
|
loading: e.loading
|
|
2522
2542
|
}, null, 8, ["loading"])) : (E(), R("div", {
|
|
@@ -2556,7 +2576,7 @@ const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-304d430d
|
|
|
2556
2576
|
...Un
|
|
2557
2577
|
},
|
|
2558
2578
|
setup(e) {
|
|
2559
|
-
const n = ie(e), t =
|
|
2579
|
+
const n = ie(e), t = I("");
|
|
2560
2580
|
ne(() => e.value, (c) => {
|
|
2561
2581
|
t.value = c;
|
|
2562
2582
|
}, {
|
|
@@ -2576,12 +2596,12 @@ const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-304d430d
|
|
|
2576
2596
|
type: e.type,
|
|
2577
2597
|
value: t
|
|
2578
2598
|
});
|
|
2579
|
-
const
|
|
2599
|
+
const s = () => {
|
|
2580
2600
|
const c = a(o);
|
|
2581
2601
|
i(o, { ...c, RECORD: t });
|
|
2582
|
-
},
|
|
2583
|
-
|
|
2584
|
-
}), 300), d =
|
|
2602
|
+
}, r = ue(e), l = It(r("inputChange", () => {
|
|
2603
|
+
s();
|
|
2604
|
+
}), 300), d = r("inputBlur", () => {
|
|
2585
2605
|
});
|
|
2586
2606
|
return {
|
|
2587
2607
|
style: n,
|
|
@@ -2592,15 +2612,15 @@ const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-304d430d
|
|
|
2592
2612
|
}
|
|
2593
2613
|
});
|
|
2594
2614
|
function Si(e, n, t, o, a, i) {
|
|
2595
|
-
const
|
|
2615
|
+
const s = Z("a-input");
|
|
2596
2616
|
return E(), R("div", {
|
|
2597
2617
|
class: "ecan-input",
|
|
2598
2618
|
style: G(e.style)
|
|
2599
2619
|
}, [
|
|
2600
|
-
j(
|
|
2620
|
+
j(s, {
|
|
2601
2621
|
class: "input",
|
|
2602
2622
|
value: e.myValue,
|
|
2603
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2623
|
+
"onUpdate:value": n[0] || (n[0] = (r) => e.myValue = r),
|
|
2604
2624
|
placeholder: e.placeholder,
|
|
2605
2625
|
onChange: e.inputChange,
|
|
2606
2626
|
onBlur: e.inputBlur
|
|
@@ -2633,10 +2653,10 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), qn = {
|
|
|
2633
2653
|
ADatePicker: Wo
|
|
2634
2654
|
},
|
|
2635
2655
|
setup(e) {
|
|
2636
|
-
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o =
|
|
2637
|
-
ne(() => [e.value, e.useCurrentTime, e.operate], ([
|
|
2656
|
+
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I(null);
|
|
2657
|
+
ne(() => [e.value, e.useCurrentTime, e.operate], ([r, l, d]) => {
|
|
2638
2658
|
let c = null;
|
|
2639
|
-
if (
|
|
2659
|
+
if (r ? c = Me(r) : l && (c = Me()), d && c) {
|
|
2640
2660
|
const { type: m, value: g, mode: b } = d;
|
|
2641
2661
|
switch (m) {
|
|
2642
2662
|
case "add":
|
|
@@ -2654,7 +2674,7 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), qn = {
|
|
|
2654
2674
|
const { setGlobalModel: a } = $(de, {
|
|
2655
2675
|
// @ts-ignore
|
|
2656
2676
|
// eslint-disable-next-line no-void
|
|
2657
|
-
setGlobalModel: (
|
|
2677
|
+
setGlobalModel: (r, l) => {
|
|
2658
2678
|
}
|
|
2659
2679
|
});
|
|
2660
2680
|
a(e.id, {
|
|
@@ -2662,30 +2682,30 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), qn = {
|
|
|
2662
2682
|
format: e.format,
|
|
2663
2683
|
value: o
|
|
2664
2684
|
});
|
|
2665
|
-
const
|
|
2685
|
+
const s = ue(e)("dateChange", () => {
|
|
2666
2686
|
});
|
|
2667
2687
|
return ge(e, {
|
|
2668
|
-
dateChange:
|
|
2688
|
+
dateChange: s
|
|
2669
2689
|
}), {
|
|
2670
2690
|
style: n,
|
|
2671
2691
|
getPopupContainer: t,
|
|
2672
2692
|
myValue: o,
|
|
2673
2693
|
locale: gn,
|
|
2674
|
-
dateChange:
|
|
2694
|
+
dateChange: s
|
|
2675
2695
|
};
|
|
2676
2696
|
}
|
|
2677
2697
|
});
|
|
2678
2698
|
function Ti(e, n, t, o, a, i) {
|
|
2679
|
-
const
|
|
2699
|
+
const s = Z("a-date-picker");
|
|
2680
2700
|
return E(), R("div", {
|
|
2681
2701
|
class: "ecan-date-picker",
|
|
2682
2702
|
style: G(e.style)
|
|
2683
2703
|
}, [
|
|
2684
|
-
j(
|
|
2704
|
+
j(s, {
|
|
2685
2705
|
class: "date-picker",
|
|
2686
2706
|
dropdownClassName: "ecan-date-picker-dropdown",
|
|
2687
2707
|
value: e.myValue,
|
|
2688
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2708
|
+
"onUpdate:value": n[0] || (n[0] = (r) => e.myValue = r),
|
|
2689
2709
|
format: e.format,
|
|
2690
2710
|
picker: e.picker,
|
|
2691
2711
|
showTime: e.showTime,
|
|
@@ -2722,20 +2742,20 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2722
2742
|
setup(e) {
|
|
2723
2743
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = Ae(e), { pageMode: a } = $(ce, {
|
|
2724
2744
|
pageMode: "normal"
|
|
2725
|
-
}), i =
|
|
2726
|
-
const A =
|
|
2745
|
+
}), i = I(e.data), s = I(e.value || e.data[0]), r = e.dataFieldNames, l = (y, h) => {
|
|
2746
|
+
const A = r.label, x = r.value;
|
|
2727
2747
|
let B;
|
|
2728
|
-
const
|
|
2729
|
-
return
|
|
2730
|
-
}, d =
|
|
2748
|
+
const w = h[A], L = h[x];
|
|
2749
|
+
return w != null ? B = w : L != null && (B = L), (B == null ? void 0 : B.toLowerCase().indexOf(y == null ? void 0 : y.toLowerCase())) >= 0;
|
|
2750
|
+
}, d = I(!1), c = async () => {
|
|
2731
2751
|
var y, h;
|
|
2732
2752
|
if (!(e.dataType !== "request" || k(a) === "design")) {
|
|
2733
2753
|
d.value = !0;
|
|
2734
2754
|
try {
|
|
2735
2755
|
const A = await o();
|
|
2736
2756
|
i.value = ((h = (y = A == null ? void 0 : A.data) == null ? void 0 : y.data) == null ? void 0 : h.rows) || [];
|
|
2737
|
-
const
|
|
2738
|
-
e.value === "" &&
|
|
2757
|
+
const x = k(i)[0];
|
|
2758
|
+
e.value === "" && x != null && (s.value = x[r.value]);
|
|
2739
2759
|
} catch (A) {
|
|
2740
2760
|
console.error(A);
|
|
2741
2761
|
} finally {
|
|
@@ -2754,11 +2774,11 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2754
2774
|
});
|
|
2755
2775
|
g(e.id, {
|
|
2756
2776
|
type: e.type,
|
|
2757
|
-
value:
|
|
2777
|
+
value: s
|
|
2758
2778
|
});
|
|
2759
2779
|
const f = ue(e)("selectChange", () => {
|
|
2760
2780
|
const y = e.id, h = m(y);
|
|
2761
|
-
g(y, { ...h, RECORD:
|
|
2781
|
+
g(y, { ...h, RECORD: s });
|
|
2762
2782
|
});
|
|
2763
2783
|
ge(e, {
|
|
2764
2784
|
selectChange: f
|
|
@@ -2776,7 +2796,7 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2776
2796
|
}), {
|
|
2777
2797
|
style: n,
|
|
2778
2798
|
getPopupContainer: t,
|
|
2779
|
-
myValue:
|
|
2799
|
+
myValue: s,
|
|
2780
2800
|
selectChange: f,
|
|
2781
2801
|
options: i,
|
|
2782
2802
|
filterOption: l,
|
|
@@ -2785,15 +2805,15 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2785
2805
|
}
|
|
2786
2806
|
});
|
|
2787
2807
|
function Ei(e, n, t, o, a, i) {
|
|
2788
|
-
const
|
|
2808
|
+
const s = Z("a-select");
|
|
2789
2809
|
return E(), R("div", {
|
|
2790
2810
|
class: "ecan-select",
|
|
2791
2811
|
style: G(e.style)
|
|
2792
2812
|
}, [
|
|
2793
|
-
j(
|
|
2813
|
+
j(s, {
|
|
2794
2814
|
class: "select",
|
|
2795
2815
|
value: e.myValue,
|
|
2796
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2816
|
+
"onUpdate:value": n[0] || (n[0] = (r) => e.myValue = r),
|
|
2797
2817
|
options: e.options,
|
|
2798
2818
|
mode: e.mode,
|
|
2799
2819
|
getPopupContainer: e.getPopupContainer,
|
|
@@ -2830,17 +2850,17 @@ const Oi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-dd2bcf63
|
|
|
2830
2850
|
...Zn
|
|
2831
2851
|
},
|
|
2832
2852
|
setup(e) {
|
|
2833
|
-
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o =
|
|
2853
|
+
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I([null, null]);
|
|
2834
2854
|
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, m, g, b, f]) => {
|
|
2835
2855
|
let v = null, y = null;
|
|
2836
2856
|
if (m && (v = Me().subtract(g, b), y = Me()), d && (v = Me(d)), c && (y = Me(c)), f) {
|
|
2837
|
-
const { type: h, value: A, mode:
|
|
2857
|
+
const { type: h, value: A, mode: x } = f;
|
|
2838
2858
|
switch (h) {
|
|
2839
2859
|
case "add":
|
|
2840
|
-
v = v && v.add(A,
|
|
2860
|
+
v = v && v.add(A, x), y = y && y.add(A, x);
|
|
2841
2861
|
break;
|
|
2842
2862
|
case "minus":
|
|
2843
|
-
v = v && v.subtract(A,
|
|
2863
|
+
v = v && v.subtract(A, x), y = y && y.subtract(A, x);
|
|
2844
2864
|
}
|
|
2845
2865
|
}
|
|
2846
2866
|
o.value = [v, y];
|
|
@@ -2852,12 +2872,12 @@ const Oi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-dd2bcf63
|
|
|
2852
2872
|
// eslint-disable-next-line no-void
|
|
2853
2873
|
setGlobalModel: (d, c) => {
|
|
2854
2874
|
}
|
|
2855
|
-
}), i = q(() => k(o)[0]),
|
|
2875
|
+
}), i = q(() => k(o)[0]), s = q(() => k(o)[1]);
|
|
2856
2876
|
a(e.id, {
|
|
2857
2877
|
type: e.type,
|
|
2858
2878
|
format: e.format,
|
|
2859
2879
|
startTime: i,
|
|
2860
|
-
endTime:
|
|
2880
|
+
endTime: s
|
|
2861
2881
|
});
|
|
2862
2882
|
const l = ue(e)("dateChange", () => {
|
|
2863
2883
|
});
|
|
@@ -2872,17 +2892,17 @@ const Oi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-dd2bcf63
|
|
|
2872
2892
|
};
|
|
2873
2893
|
}
|
|
2874
2894
|
});
|
|
2875
|
-
function
|
|
2876
|
-
const
|
|
2895
|
+
function zi(e, n, t, o, a, i) {
|
|
2896
|
+
const s = Z("a-range-picker");
|
|
2877
2897
|
return E(), R("div", {
|
|
2878
2898
|
class: "ecan-range-picker",
|
|
2879
2899
|
style: G(e.style)
|
|
2880
2900
|
}, [
|
|
2881
|
-
j(
|
|
2901
|
+
j(s, {
|
|
2882
2902
|
class: "range-picker",
|
|
2883
2903
|
dropdownClassName: "ecan-range-picker-dropdown",
|
|
2884
2904
|
value: e.myValue,
|
|
2885
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2905
|
+
"onUpdate:value": n[0] || (n[0] = (r) => e.myValue = r),
|
|
2886
2906
|
format: e.format,
|
|
2887
2907
|
picker: e.picker,
|
|
2888
2908
|
locale: e.locale,
|
|
@@ -2891,7 +2911,7 @@ function Ni(e, n, t, o, a, i) {
|
|
|
2891
2911
|
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
|
|
2892
2912
|
], 4);
|
|
2893
2913
|
}
|
|
2894
|
-
const
|
|
2914
|
+
const Ni = /* @__PURE__ */ K(Di, [["render", zi], ["__scopeId", "data-v-adf450ac"]]), $i = oe(Ni), Jn = {
|
|
2895
2915
|
...re,
|
|
2896
2916
|
width: "200px",
|
|
2897
2917
|
name: "按钮",
|
|
@@ -2915,35 +2935,35 @@ const zi = /* @__PURE__ */ K(Di, [["render", Ni], ["__scopeId", "data-v-adf450ac
|
|
|
2915
2935
|
},
|
|
2916
2936
|
setup(e) {
|
|
2917
2937
|
const n = ie(e), o = ue(e)("click", () => {
|
|
2918
|
-
const
|
|
2919
|
-
|
|
2938
|
+
const r = k(i);
|
|
2939
|
+
r && e.target === "event" && window.parent.postMessage({
|
|
2920
2940
|
type: "openPage",
|
|
2921
|
-
url:
|
|
2941
|
+
url: r
|
|
2922
2942
|
}, "*");
|
|
2923
|
-
}), a = q(() => be(e.text)), i = q(() => be(e.href) || null),
|
|
2924
|
-
const
|
|
2925
|
-
if (!(
|
|
2943
|
+
}), a = q(() => be(e.text)), i = q(() => be(e.href) || null), s = q(() => {
|
|
2944
|
+
const r = e.target;
|
|
2945
|
+
if (!(r === "event" || k(i) == null))
|
|
2926
2946
|
return {
|
|
2927
2947
|
self: "_self",
|
|
2928
2948
|
blank: "_blank"
|
|
2929
|
-
}[
|
|
2949
|
+
}[r];
|
|
2930
2950
|
});
|
|
2931
2951
|
return {
|
|
2932
2952
|
style: n,
|
|
2933
2953
|
click: o,
|
|
2934
2954
|
myText: a,
|
|
2935
2955
|
myHref: i,
|
|
2936
|
-
myTarget:
|
|
2956
|
+
myTarget: s
|
|
2937
2957
|
};
|
|
2938
2958
|
}
|
|
2939
2959
|
});
|
|
2940
2960
|
function Gi(e, n, t, o, a, i) {
|
|
2941
|
-
const
|
|
2961
|
+
const s = Z("a-button");
|
|
2942
2962
|
return E(), R("div", {
|
|
2943
2963
|
class: "ecan-button",
|
|
2944
2964
|
style: G(e.style)
|
|
2945
2965
|
}, [
|
|
2946
|
-
j(
|
|
2966
|
+
j(s, {
|
|
2947
2967
|
block: "",
|
|
2948
2968
|
onClick: e.click,
|
|
2949
2969
|
type: e.mode,
|
|
@@ -2989,7 +3009,7 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
2989
3009
|
...Kn
|
|
2990
3010
|
},
|
|
2991
3011
|
setup(e) {
|
|
2992
|
-
const n = ie(e), t =
|
|
3012
|
+
const n = ie(e), t = I([]), o = I([]), a = (f) => {
|
|
2993
3013
|
const v = e.value;
|
|
2994
3014
|
let y = [];
|
|
2995
3015
|
f.forEach((h) => {
|
|
@@ -3002,11 +3022,11 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3002
3022
|
immediate: !0,
|
|
3003
3023
|
deep: !0
|
|
3004
3024
|
});
|
|
3005
|
-
const i = Ae(e), { pageMode:
|
|
3025
|
+
const i = Ae(e), { pageMode: s } = $(ce, {
|
|
3006
3026
|
pageMode: "normal"
|
|
3007
|
-
}),
|
|
3027
|
+
}), r = async () => {
|
|
3008
3028
|
var y, h;
|
|
3009
|
-
if (e.dataType !== "request" || k(
|
|
3029
|
+
if (e.dataType !== "request" || k(s) === "design")
|
|
3010
3030
|
return;
|
|
3011
3031
|
const f = await i(), v = ((h = (y = f == null ? void 0 : f.data) == null ? void 0 : y.data) == null ? void 0 : h.rows) || [];
|
|
3012
3032
|
a(v);
|
|
@@ -3035,7 +3055,7 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3035
3055
|
});
|
|
3036
3056
|
return b({
|
|
3037
3057
|
id: e.id,
|
|
3038
|
-
requestFn:
|
|
3058
|
+
requestFn: r,
|
|
3039
3059
|
sortNum: e.requestSort
|
|
3040
3060
|
}), {
|
|
3041
3061
|
myOption: t,
|
|
@@ -3046,15 +3066,15 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3046
3066
|
}
|
|
3047
3067
|
});
|
|
3048
3068
|
function Vi(e, n, t, o, a, i) {
|
|
3049
|
-
const
|
|
3069
|
+
const s = Z("a-checkbox-group");
|
|
3050
3070
|
return E(), R("div", {
|
|
3051
3071
|
class: "ecan-checkbox",
|
|
3052
3072
|
style: G(e.style)
|
|
3053
3073
|
}, [
|
|
3054
|
-
j(
|
|
3074
|
+
j(s, {
|
|
3055
3075
|
options: e.myOption,
|
|
3056
3076
|
value: e.myValue,
|
|
3057
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
3077
|
+
"onUpdate:value": n[0] || (n[0] = (r) => e.myValue = r),
|
|
3058
3078
|
onChange: e.checkboxChange
|
|
3059
3079
|
}, null, 8, ["options", "value", "onChange"])
|
|
3060
3080
|
], 4);
|
|
@@ -3093,7 +3113,7 @@ const Hi = /* @__PURE__ */ K(Wi, [["render", Vi]]), Zi = oe(Hi), Xn = {
|
|
|
3093
3113
|
outerRadius: "60%",
|
|
3094
3114
|
centerLeft: "50%",
|
|
3095
3115
|
centerTop: "50%",
|
|
3096
|
-
minAngle:
|
|
3116
|
+
minAngle: 0,
|
|
3097
3117
|
labelShow: !0,
|
|
3098
3118
|
labelColor: "#333",
|
|
3099
3119
|
isUseLabelColors: !1,
|
|
@@ -3125,8 +3145,8 @@ const Hi = /* @__PURE__ */ K(Wi, [["render", Vi]]), Zi = oe(Hi), Xn = {
|
|
|
3125
3145
|
var l;
|
|
3126
3146
|
const n = await xe.post(e, {}, {
|
|
3127
3147
|
responseType: "blob"
|
|
3128
|
-
}), { data: t, headers: o } = n, a = o["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), i = new Blob([t]),
|
|
3129
|
-
|
|
3148
|
+
}), { data: t, headers: o } = n, a = o["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), i = new Blob([t]), s = document.createElement("a"), r = window.URL.createObjectURL(i);
|
|
3149
|
+
s.href = r, s.download = decodeURI(a), s.style.display = "none", document.body.appendChild(s), s.click(), (l = s.parentNode) == null || l.removeChild(s), window.URL.revokeObjectURL(r);
|
|
3130
3150
|
};
|
|
3131
3151
|
$e([
|
|
3132
3152
|
Pe,
|
|
@@ -3143,18 +3163,18 @@ const Yi = Q({
|
|
|
3143
3163
|
},
|
|
3144
3164
|
components: {
|
|
3145
3165
|
Spin: et,
|
|
3146
|
-
Echarts:
|
|
3166
|
+
Echarts: ze,
|
|
3147
3167
|
AModal: ke
|
|
3148
3168
|
},
|
|
3149
3169
|
setup(e) {
|
|
3150
|
-
const n = ie(e), t =
|
|
3170
|
+
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
3151
3171
|
o.value = !1;
|
|
3152
3172
|
}, i = q(() => {
|
|
3153
|
-
let { data:
|
|
3173
|
+
let { data: L = [] } = k(t)[0] || {};
|
|
3154
3174
|
if (Array.isArray(e.colors)) {
|
|
3155
|
-
const
|
|
3156
|
-
|
|
3157
|
-
label:
|
|
3175
|
+
const C = e.isUseLabelColors, u = e.colors;
|
|
3176
|
+
L = L.map((p, T) => ({
|
|
3177
|
+
label: C ? { color: u[T] } : {},
|
|
3158
3178
|
...p
|
|
3159
3179
|
}));
|
|
3160
3180
|
}
|
|
@@ -3211,20 +3231,20 @@ const Yi = Q({
|
|
|
3211
3231
|
tooltip: {
|
|
3212
3232
|
show: e.tooltipShow,
|
|
3213
3233
|
trigger: e.tooltipTrigger,
|
|
3214
|
-
formatter: (
|
|
3215
|
-
const { marker: u, seriesName: p, name:
|
|
3234
|
+
formatter: (C) => {
|
|
3235
|
+
const { marker: u, seriesName: p, name: T, value: F, percent: S, data: _ } = C || {};
|
|
3216
3236
|
return be(
|
|
3217
3237
|
e.tooltipFormatter,
|
|
3218
3238
|
{
|
|
3219
3239
|
marker: u,
|
|
3220
|
-
name:
|
|
3240
|
+
name: T,
|
|
3221
3241
|
value: F,
|
|
3222
3242
|
percent: S,
|
|
3223
3243
|
a: p,
|
|
3224
|
-
b:
|
|
3244
|
+
b: T,
|
|
3225
3245
|
c: F,
|
|
3226
3246
|
d: S,
|
|
3227
|
-
...
|
|
3247
|
+
..._
|
|
3228
3248
|
},
|
|
3229
3249
|
{
|
|
3230
3250
|
useNewline: !0,
|
|
@@ -3249,7 +3269,7 @@ const Yi = Q({
|
|
|
3249
3269
|
color: e.colors,
|
|
3250
3270
|
series: [
|
|
3251
3271
|
{
|
|
3252
|
-
data:
|
|
3272
|
+
data: L,
|
|
3253
3273
|
type: "pie",
|
|
3254
3274
|
radius: [e.innerRadius, e.outerRadius],
|
|
3255
3275
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3284,60 +3304,60 @@ const Yi = Q({
|
|
|
3284
3304
|
}
|
|
3285
3305
|
]
|
|
3286
3306
|
};
|
|
3287
|
-
}), { getGlobalModel:
|
|
3307
|
+
}), { getGlobalModel: s, setGlobalModel: r } = $(de, {
|
|
3288
3308
|
// @ts-ignore
|
|
3289
3309
|
// eslint-disable-next-line no-void
|
|
3290
|
-
getGlobalModel: (
|
|
3310
|
+
getGlobalModel: (L) => {
|
|
3291
3311
|
},
|
|
3292
3312
|
// @ts-ignore
|
|
3293
3313
|
// eslint-disable-next-line no-void
|
|
3294
|
-
setGlobalModel: (
|
|
3314
|
+
setGlobalModel: (L, C) => {
|
|
3295
3315
|
}
|
|
3296
3316
|
}), { pageMode: l } = $(ce, {
|
|
3297
3317
|
pageMode: "normal"
|
|
3298
|
-
}), d = (
|
|
3299
|
-
const { dataset: u } = Ye(
|
|
3318
|
+
}), d = (L = [], C) => {
|
|
3319
|
+
const { dataset: u } = Ye(L, C);
|
|
3300
3320
|
t.value = u;
|
|
3301
|
-
}, c = (
|
|
3302
|
-
const u = Ye(
|
|
3321
|
+
}, c = (L = [], C) => {
|
|
3322
|
+
const u = Ye(L, C);
|
|
3303
3323
|
t.value = u.dataset;
|
|
3304
3324
|
};
|
|
3305
|
-
ne(() => e.data, (
|
|
3306
|
-
(e.dataType === "static" || k(l) === "design") && d(
|
|
3325
|
+
ne(() => e.data, (L) => {
|
|
3326
|
+
(e.dataType === "static" || k(l) === "design") && d(L);
|
|
3307
3327
|
}, {
|
|
3308
3328
|
immediate: !0,
|
|
3309
3329
|
deep: !0
|
|
3310
3330
|
});
|
|
3311
|
-
const m =
|
|
3312
|
-
var
|
|
3331
|
+
const m = I(!1), g = Ae(e), b = async () => {
|
|
3332
|
+
var L, C;
|
|
3313
3333
|
if (!(e.dataType !== "request" || k(l) === "design"))
|
|
3314
3334
|
try {
|
|
3315
3335
|
m.value = !0;
|
|
3316
3336
|
const u = await g();
|
|
3317
|
-
d((
|
|
3337
|
+
d((C = (L = u == null ? void 0 : u.data) == null ? void 0 : L.data) == null ? void 0 : C.rows, e.valueTypeDataFieldNames);
|
|
3318
3338
|
} catch (u) {
|
|
3319
3339
|
console.error(u);
|
|
3320
3340
|
} finally {
|
|
3321
3341
|
m.value = !1;
|
|
3322
3342
|
}
|
|
3323
|
-
}, v = ue(e)("click", (
|
|
3324
|
-
const
|
|
3325
|
-
|
|
3343
|
+
}, v = ue(e)("click", (L) => {
|
|
3344
|
+
const C = e.id, u = s(C);
|
|
3345
|
+
r(C, { ...u, RECORD: L == null ? void 0 : L.data });
|
|
3326
3346
|
}), y = Dt(e), h = async () => {
|
|
3327
|
-
var
|
|
3347
|
+
var L, C, u, p, T, F;
|
|
3328
3348
|
if (!(e.dataType !== "indicator" || k(l) === "design"))
|
|
3329
3349
|
try {
|
|
3330
3350
|
m.value = !0;
|
|
3331
3351
|
const S = await y();
|
|
3332
|
-
let
|
|
3333
|
-
if (((u = (
|
|
3352
|
+
let _ = [];
|
|
3353
|
+
if (((u = (C = (L = S == null ? void 0 : S.data) == null ? void 0 : L.data) == null ? void 0 : C.columns) == null ? void 0 : u.length) > 0) {
|
|
3334
3354
|
const U = S.data.data.columns[0], H = S.data.data.columns[1];
|
|
3335
|
-
|
|
3355
|
+
_ = (F = (T = (p = S == null ? void 0 : S.data) == null ? void 0 : p.data) == null ? void 0 : T.rows) == null ? void 0 : F.map((O) => ({
|
|
3336
3356
|
name: O[U],
|
|
3337
3357
|
value: O[H]
|
|
3338
3358
|
}));
|
|
3339
3359
|
}
|
|
3340
|
-
c(
|
|
3360
|
+
c(_);
|
|
3341
3361
|
} catch (S) {
|
|
3342
3362
|
console.error(S);
|
|
3343
3363
|
} finally {
|
|
@@ -3348,21 +3368,21 @@ const Yi = Q({
|
|
|
3348
3368
|
};
|
|
3349
3369
|
ge(e, {
|
|
3350
3370
|
resetRecord: () => {
|
|
3351
|
-
const
|
|
3352
|
-
|
|
3371
|
+
const L = e.id, C = s(L);
|
|
3372
|
+
r(L, { ...C, RECORD: "" });
|
|
3353
3373
|
},
|
|
3354
3374
|
refreshData: () => {
|
|
3355
3375
|
A();
|
|
3356
3376
|
},
|
|
3357
3377
|
click: v
|
|
3358
3378
|
});
|
|
3359
|
-
const { setRequest:
|
|
3379
|
+
const { setRequest: w } = $(Ce, {
|
|
3360
3380
|
// @ts-ignore
|
|
3361
3381
|
// eslint-disable-next-line no-void
|
|
3362
|
-
setRequest: ({ id:
|
|
3382
|
+
setRequest: ({ id: L, sortNum: C, requestFn: u }) => {
|
|
3363
3383
|
}
|
|
3364
3384
|
});
|
|
3365
|
-
return
|
|
3385
|
+
return w({
|
|
3366
3386
|
id: e.id,
|
|
3367
3387
|
requestFn: A,
|
|
3368
3388
|
sortNum: e.requestSort
|
|
@@ -3377,13 +3397,13 @@ const Yi = Q({
|
|
|
3377
3397
|
}
|
|
3378
3398
|
});
|
|
3379
3399
|
function Qi(e, n, t, o, a, i) {
|
|
3380
|
-
const
|
|
3400
|
+
const s = Z("echarts"), r = Z("spin"), l = Z("a-modal");
|
|
3381
3401
|
return E(), R("div", {
|
|
3382
3402
|
style: G(e.style)
|
|
3383
3403
|
}, [
|
|
3384
|
-
j(
|
|
3404
|
+
j(r, { spinning: e.loading }, {
|
|
3385
3405
|
default: Y(() => [
|
|
3386
|
-
j(
|
|
3406
|
+
j(s, {
|
|
3387
3407
|
option: e.option,
|
|
3388
3408
|
autoresize: "",
|
|
3389
3409
|
onClick: e.click
|
|
@@ -3399,9 +3419,9 @@ function Qi(e, n, t, o, a, i) {
|
|
|
3399
3419
|
onCancel: e.hideModal
|
|
3400
3420
|
}, {
|
|
3401
3421
|
default: Y(() => [
|
|
3402
|
-
j(
|
|
3422
|
+
j(r, { spinning: e.loading }, {
|
|
3403
3423
|
default: Y(() => [
|
|
3404
|
-
j(
|
|
3424
|
+
j(s, {
|
|
3405
3425
|
option: e.option,
|
|
3406
3426
|
"update-options": { notMerge: !0 },
|
|
3407
3427
|
autoresize: ""
|
|
@@ -3492,14 +3512,14 @@ const tr = Q({
|
|
|
3492
3512
|
},
|
|
3493
3513
|
components: {
|
|
3494
3514
|
Spin: et,
|
|
3495
|
-
Echarts:
|
|
3515
|
+
Echarts: ze,
|
|
3496
3516
|
AModal: ke
|
|
3497
3517
|
},
|
|
3498
3518
|
setup(e) {
|
|
3499
|
-
const n = ie(e), t =
|
|
3519
|
+
const n = ie(e), t = I([]), o = I([]), a = I(!1), i = () => {
|
|
3500
3520
|
a.value = !1;
|
|
3501
|
-
},
|
|
3502
|
-
const
|
|
3521
|
+
}, s = q(() => {
|
|
3522
|
+
const C = e.xAxisLabelFormatter, u = e.yAxisLabelFormatter;
|
|
3503
3523
|
return {
|
|
3504
3524
|
toolbox: {
|
|
3505
3525
|
show: e.toolboxShow,
|
|
@@ -3554,21 +3574,21 @@ const tr = Q({
|
|
|
3554
3574
|
trigger: "axis",
|
|
3555
3575
|
show: e.tooltipShow,
|
|
3556
3576
|
formatter: (p) => {
|
|
3557
|
-
const
|
|
3577
|
+
const T = p.length;
|
|
3558
3578
|
let F = "", S = e.tooltipFormatter;
|
|
3559
3579
|
S === "" && (S = "{marker} {a} {c}");
|
|
3560
|
-
for (let
|
|
3561
|
-
const { marker: U, seriesName: H, name: O, value:
|
|
3562
|
-
|
|
3580
|
+
for (let _ = 0; _ < T; _++) {
|
|
3581
|
+
const { marker: U, seriesName: H, name: O, value: N, data: z } = p[_] || {};
|
|
3582
|
+
_ === 0 && (F += `${O}<br/>`), F += be(
|
|
3563
3583
|
S,
|
|
3564
3584
|
{
|
|
3565
3585
|
marker: U,
|
|
3566
3586
|
name: O,
|
|
3567
|
-
value:
|
|
3587
|
+
value: N,
|
|
3568
3588
|
a: H,
|
|
3569
3589
|
b: O,
|
|
3570
|
-
c:
|
|
3571
|
-
...
|
|
3590
|
+
c: N,
|
|
3591
|
+
...z
|
|
3572
3592
|
},
|
|
3573
3593
|
{
|
|
3574
3594
|
useNewline: !0,
|
|
@@ -3592,7 +3612,7 @@ const tr = Q({
|
|
|
3592
3612
|
axisLabel: {
|
|
3593
3613
|
color: e.xAxisLabelColor,
|
|
3594
3614
|
formatter(p) {
|
|
3595
|
-
return De(
|
|
3615
|
+
return De(C, p);
|
|
3596
3616
|
}
|
|
3597
3617
|
},
|
|
3598
3618
|
axisLine: {
|
|
@@ -3634,32 +3654,32 @@ const tr = Q({
|
|
|
3634
3654
|
},
|
|
3635
3655
|
series: k(t)
|
|
3636
3656
|
};
|
|
3637
|
-
}), { getGlobalModel:
|
|
3657
|
+
}), { getGlobalModel: r, setGlobalModel: l } = $(de, {
|
|
3638
3658
|
// @ts-ignore
|
|
3639
3659
|
// eslint-disable-next-line no-void
|
|
3640
|
-
getGlobalModel: (
|
|
3660
|
+
getGlobalModel: (C) => {
|
|
3641
3661
|
},
|
|
3642
3662
|
// @ts-ignore
|
|
3643
3663
|
// eslint-disable-next-line no-void
|
|
3644
|
-
setGlobalModel: (
|
|
3664
|
+
setGlobalModel: (C, u) => {
|
|
3645
3665
|
}
|
|
3646
3666
|
}), { pageMode: d } = $(ce, {
|
|
3647
3667
|
pageMode: "normal"
|
|
3648
|
-
}), c = (
|
|
3668
|
+
}), c = (C = [], u = !1) => {
|
|
3649
3669
|
let p;
|
|
3650
3670
|
if (e.dataFieldConfigType === "key") {
|
|
3651
|
-
const
|
|
3652
|
-
p =
|
|
3671
|
+
const _ = u ? e.keyTypeDataFieldNames : null;
|
|
3672
|
+
p = Ne(C, _);
|
|
3653
3673
|
} else if (e.dataFieldConfigType === "value") {
|
|
3654
|
-
const
|
|
3655
|
-
p = Ye(
|
|
3674
|
+
const _ = u ? e.valueTypeDataFieldNames : null;
|
|
3675
|
+
p = Ye(C, _);
|
|
3656
3676
|
}
|
|
3657
3677
|
o.value = p.dimensions;
|
|
3658
|
-
const
|
|
3659
|
-
for (let
|
|
3678
|
+
const T = p.dataset, F = [], S = T.length;
|
|
3679
|
+
for (let _ = 0; _ < S; _++)
|
|
3660
3680
|
F.push({
|
|
3661
3681
|
type: "line",
|
|
3662
|
-
...
|
|
3682
|
+
...T[_],
|
|
3663
3683
|
symbolSize: e.symbolSize,
|
|
3664
3684
|
smooth: e.smooth,
|
|
3665
3685
|
areaStyle: {
|
|
@@ -3683,12 +3703,12 @@ const tr = Q({
|
|
|
3683
3703
|
}
|
|
3684
3704
|
});
|
|
3685
3705
|
t.value = F;
|
|
3686
|
-
}, m = (
|
|
3687
|
-
const F =
|
|
3706
|
+
}, m = (C = [], u, p = !1) => {
|
|
3707
|
+
const F = Ne(C, p ? u : null);
|
|
3688
3708
|
o.value = F.dimensions;
|
|
3689
|
-
const S = F.dataset,
|
|
3709
|
+
const S = F.dataset, _ = [], U = S.length;
|
|
3690
3710
|
for (let H = 0; H < U; H++)
|
|
3691
|
-
|
|
3711
|
+
_.push({
|
|
3692
3712
|
type: "line",
|
|
3693
3713
|
...S[H],
|
|
3694
3714
|
symbolSize: e.symbolSize,
|
|
@@ -3697,70 +3717,70 @@ const tr = Q({
|
|
|
3697
3717
|
width: e.lineStyleWidth
|
|
3698
3718
|
}
|
|
3699
3719
|
});
|
|
3700
|
-
t.value =
|
|
3720
|
+
t.value = _;
|
|
3701
3721
|
};
|
|
3702
|
-
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
3703
|
-
(e.dataType === "static" || k(d) === "design") && c(
|
|
3722
|
+
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([C]) => {
|
|
3723
|
+
(e.dataType === "static" || k(d) === "design") && c(C);
|
|
3704
3724
|
}, {
|
|
3705
3725
|
immediate: !0,
|
|
3706
3726
|
deep: !0
|
|
3707
3727
|
});
|
|
3708
|
-
const g =
|
|
3709
|
-
var
|
|
3728
|
+
const g = I(!1), b = Ae(e), f = async () => {
|
|
3729
|
+
var C, u;
|
|
3710
3730
|
if (!(e.dataType !== "request" || k(d) === "design"))
|
|
3711
3731
|
try {
|
|
3712
3732
|
g.value = !0;
|
|
3713
3733
|
const p = await b();
|
|
3714
|
-
c((u = (
|
|
3734
|
+
c((u = (C = p == null ? void 0 : p.data) == null ? void 0 : C.data) == null ? void 0 : u.rows, !0);
|
|
3715
3735
|
} catch (p) {
|
|
3716
3736
|
console.error(p);
|
|
3717
3737
|
} finally {
|
|
3718
3738
|
g.value = !1;
|
|
3719
3739
|
}
|
|
3720
|
-
}, y = ue(e)("click", (
|
|
3721
|
-
const u = e.id, p =
|
|
3722
|
-
l(u, { ...p, RECORD:
|
|
3740
|
+
}, y = ue(e)("click", (C) => {
|
|
3741
|
+
const u = e.id, p = r(u);
|
|
3742
|
+
l(u, { ...p, RECORD: C == null ? void 0 : C.data });
|
|
3723
3743
|
}), h = Dt(e), A = async () => {
|
|
3724
|
-
var
|
|
3744
|
+
var C, u, p, T, F;
|
|
3725
3745
|
if (!(e.dataType !== "indicator" || k(d) === "design"))
|
|
3726
3746
|
try {
|
|
3727
3747
|
g.value = !0;
|
|
3728
3748
|
const S = await h();
|
|
3729
|
-
let
|
|
3730
|
-
((p = (u = (
|
|
3749
|
+
let _;
|
|
3750
|
+
((p = (u = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : u.columns) == null ? void 0 : p.length) > 0 && (_ = {
|
|
3731
3751
|
name: S.data.data.columns[0],
|
|
3732
3752
|
types: S.data.data.columns.slice(1).map((U) => ({ label: U, value: U }))
|
|
3733
|
-
}), m((F = (
|
|
3753
|
+
}), m((F = (T = S == null ? void 0 : S.data) == null ? void 0 : T.data) == null ? void 0 : F.rows, _, !0);
|
|
3734
3754
|
} catch (S) {
|
|
3735
3755
|
console.error(S);
|
|
3736
3756
|
} finally {
|
|
3737
3757
|
g.value = !1;
|
|
3738
3758
|
}
|
|
3739
|
-
},
|
|
3759
|
+
}, x = () => {
|
|
3740
3760
|
k(d) !== "design" && (A(), f());
|
|
3741
3761
|
};
|
|
3742
3762
|
ge(e, {
|
|
3743
3763
|
refreshData: () => {
|
|
3744
|
-
|
|
3764
|
+
x();
|
|
3745
3765
|
},
|
|
3746
3766
|
resetRecord: () => {
|
|
3747
|
-
const
|
|
3748
|
-
l(
|
|
3767
|
+
const C = e.id, u = r(C);
|
|
3768
|
+
l(C, { ...u, RECORD: "" });
|
|
3749
3769
|
},
|
|
3750
3770
|
click: y
|
|
3751
3771
|
});
|
|
3752
|
-
const { setRequest:
|
|
3772
|
+
const { setRequest: L } = $(Ce, {
|
|
3753
3773
|
// @ts-ignore
|
|
3754
3774
|
// eslint-disable-next-line no-void
|
|
3755
|
-
setRequest: ({ id:
|
|
3775
|
+
setRequest: ({ id: C, sortNum: u, requestFn: p }) => {
|
|
3756
3776
|
}
|
|
3757
3777
|
});
|
|
3758
|
-
return
|
|
3778
|
+
return L({
|
|
3759
3779
|
id: e.id,
|
|
3760
|
-
requestFn:
|
|
3780
|
+
requestFn: x,
|
|
3761
3781
|
sortNum: e.requestSort
|
|
3762
3782
|
}), {
|
|
3763
|
-
option:
|
|
3783
|
+
option: s,
|
|
3764
3784
|
style: n,
|
|
3765
3785
|
click: y,
|
|
3766
3786
|
loading: g,
|
|
@@ -3770,13 +3790,13 @@ const tr = Q({
|
|
|
3770
3790
|
}
|
|
3771
3791
|
});
|
|
3772
3792
|
function nr(e, n, t, o, a, i) {
|
|
3773
|
-
const
|
|
3793
|
+
const s = Z("echarts"), r = Z("spin"), l = Z("a-modal");
|
|
3774
3794
|
return E(), R("div", {
|
|
3775
3795
|
style: G(e.style)
|
|
3776
3796
|
}, [
|
|
3777
|
-
j(
|
|
3797
|
+
j(r, { spinning: e.loading }, {
|
|
3778
3798
|
default: Y(() => [
|
|
3779
|
-
j(
|
|
3799
|
+
j(s, {
|
|
3780
3800
|
option: e.option,
|
|
3781
3801
|
autoresize: "",
|
|
3782
3802
|
onClick: e.click
|
|
@@ -3792,9 +3812,9 @@ function nr(e, n, t, o, a, i) {
|
|
|
3792
3812
|
onCancel: e.hideModal
|
|
3793
3813
|
}, {
|
|
3794
3814
|
default: Y(() => [
|
|
3795
|
-
j(
|
|
3815
|
+
j(r, { spinning: e.loading }, {
|
|
3796
3816
|
default: Y(() => [
|
|
3797
|
-
j(
|
|
3817
|
+
j(s, {
|
|
3798
3818
|
option: e.option,
|
|
3799
3819
|
"update-options": { notMerge: !0 },
|
|
3800
3820
|
autoresize: ""
|
|
@@ -3916,14 +3936,14 @@ const ir = Q({
|
|
|
3916
3936
|
},
|
|
3917
3937
|
components: {
|
|
3918
3938
|
Spin: et,
|
|
3919
|
-
Echarts:
|
|
3939
|
+
Echarts: ze,
|
|
3920
3940
|
AModal: ke
|
|
3921
3941
|
},
|
|
3922
3942
|
setup(e, { expose: n }) {
|
|
3923
|
-
const t = ie(e), o =
|
|
3943
|
+
const t = ie(e), o = I([]), a = I(!1), i = () => {
|
|
3924
3944
|
a.value = !1;
|
|
3925
|
-
},
|
|
3926
|
-
const u = k(o), p = u.length,
|
|
3945
|
+
}, s = q(() => {
|
|
3946
|
+
const u = k(o), p = u.length, T = [];
|
|
3927
3947
|
for (let F = 0; F < p; F++) {
|
|
3928
3948
|
const S = {
|
|
3929
3949
|
...u[F],
|
|
@@ -3935,10 +3955,10 @@ const ir = Q({
|
|
|
3935
3955
|
fontSize: e.labelFontSize,
|
|
3936
3956
|
position: e.labelPosition,
|
|
3937
3957
|
color: e.labelColor
|
|
3938
|
-
},
|
|
3958
|
+
}, T.push(S);
|
|
3939
3959
|
}
|
|
3940
|
-
return
|
|
3941
|
-
}),
|
|
3960
|
+
return T;
|
|
3961
|
+
}), r = I([]), l = I(!1), d = q(() => {
|
|
3942
3962
|
const u = e.yAxisLabelFormatter, p = e.xAxisLabelFormatter;
|
|
3943
3963
|
return {
|
|
3944
3964
|
toolbox: {
|
|
@@ -3993,21 +4013,21 @@ const ir = Q({
|
|
|
3993
4013
|
tooltip: {
|
|
3994
4014
|
trigger: "axis",
|
|
3995
4015
|
show: e.tooltipShow,
|
|
3996
|
-
formatter: (
|
|
3997
|
-
const F =
|
|
3998
|
-
let S = "",
|
|
3999
|
-
|
|
4016
|
+
formatter: (T) => {
|
|
4017
|
+
const F = T.length;
|
|
4018
|
+
let S = "", _ = e.tooltipFormatter;
|
|
4019
|
+
_ === "" && (_ = "{marker} {a} {c}");
|
|
4000
4020
|
for (let U = 0; U < F; U++) {
|
|
4001
|
-
const { marker: H, seriesName: O, name:
|
|
4002
|
-
U === 0 && (S += `${
|
|
4003
|
-
|
|
4021
|
+
const { marker: H, seriesName: O, name: N, value: z, data: W } = T[U] || {};
|
|
4022
|
+
U === 0 && (S += `${N}<br/>`), S += be(
|
|
4023
|
+
_,
|
|
4004
4024
|
{
|
|
4005
4025
|
marker: H,
|
|
4006
|
-
name:
|
|
4007
|
-
value:
|
|
4026
|
+
name: N,
|
|
4027
|
+
value: z,
|
|
4008
4028
|
a: O,
|
|
4009
|
-
b:
|
|
4010
|
-
c:
|
|
4029
|
+
b: N,
|
|
4030
|
+
c: z,
|
|
4011
4031
|
...W
|
|
4012
4032
|
},
|
|
4013
4033
|
{
|
|
@@ -4036,7 +4056,7 @@ const ir = Q({
|
|
|
4036
4056
|
},
|
|
4037
4057
|
xAxis: {
|
|
4038
4058
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4039
|
-
data: e.isUseHorizontalAxis ? null : k(
|
|
4059
|
+
data: e.isUseHorizontalAxis ? null : k(r),
|
|
4040
4060
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4041
4061
|
minInterval: e.xAxisMinInterval,
|
|
4042
4062
|
splitLine: {
|
|
@@ -4051,8 +4071,8 @@ const ir = Q({
|
|
|
4051
4071
|
rotate: e.xAxisLabelRotate,
|
|
4052
4072
|
width: e.xAxisLabelWidth,
|
|
4053
4073
|
overflow: e.xAxisLabelOverflow,
|
|
4054
|
-
formatter(
|
|
4055
|
-
return De(p,
|
|
4074
|
+
formatter(T) {
|
|
4075
|
+
return De(p, T);
|
|
4056
4076
|
}
|
|
4057
4077
|
},
|
|
4058
4078
|
axisLine: {
|
|
@@ -4066,7 +4086,7 @@ const ir = Q({
|
|
|
4066
4086
|
},
|
|
4067
4087
|
yAxis: {
|
|
4068
4088
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4069
|
-
data: e.isUseHorizontalAxis ? k(
|
|
4089
|
+
data: e.isUseHorizontalAxis ? k(r) : null,
|
|
4070
4090
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4071
4091
|
minInterval: e.yAxisMinInterval,
|
|
4072
4092
|
splitLine: {
|
|
@@ -4080,8 +4100,8 @@ const ir = Q({
|
|
|
4080
4100
|
rotate: e.yAxisLabelRotate,
|
|
4081
4101
|
width: e.yAxisLabelWidth,
|
|
4082
4102
|
overflow: e.yAxisLabelOverflow,
|
|
4083
|
-
formatter(
|
|
4084
|
-
return De(u,
|
|
4103
|
+
formatter(T) {
|
|
4104
|
+
return De(u, T);
|
|
4085
4105
|
}
|
|
4086
4106
|
},
|
|
4087
4107
|
axisLine: {
|
|
@@ -4090,23 +4110,23 @@ const ir = Q({
|
|
|
4090
4110
|
}
|
|
4091
4111
|
}
|
|
4092
4112
|
},
|
|
4093
|
-
series: k(
|
|
4113
|
+
series: k(s)
|
|
4094
4114
|
};
|
|
4095
4115
|
}), { pageMode: c } = $(ce, {
|
|
4096
4116
|
pageMode: "normal"
|
|
4097
4117
|
}), m = (u = [], p = !1) => {
|
|
4098
|
-
let
|
|
4118
|
+
let T = {};
|
|
4099
4119
|
if (e.dataFieldConfigType === "key") {
|
|
4100
4120
|
const F = p ? e.keyTypeDataFieldNames : null;
|
|
4101
|
-
|
|
4121
|
+
T = Ne(u, F);
|
|
4102
4122
|
} else if (e.dataFieldConfigType === "value") {
|
|
4103
4123
|
const F = p ? e.valueTypeDataFieldNames : null;
|
|
4104
|
-
|
|
4124
|
+
T = Ye(u, F);
|
|
4105
4125
|
}
|
|
4106
|
-
o.value =
|
|
4107
|
-
}, g = (u = [], p,
|
|
4108
|
-
const S =
|
|
4109
|
-
o.value = S.dataset,
|
|
4126
|
+
o.value = T.dataset, r.value = T.dimensions;
|
|
4127
|
+
}, g = (u = [], p, T = !1) => {
|
|
4128
|
+
const S = Ne(u, T ? p : null);
|
|
4129
|
+
o.value = S.dataset, r.value = S.dimensions;
|
|
4110
4130
|
};
|
|
4111
4131
|
ne(() => e.data, (u) => {
|
|
4112
4132
|
(e.dataType === "static" || k(c) === "design") && m(u);
|
|
@@ -4118,10 +4138,10 @@ const ir = Q({
|
|
|
4118
4138
|
var u, p;
|
|
4119
4139
|
try {
|
|
4120
4140
|
l.value = !0;
|
|
4121
|
-
const
|
|
4122
|
-
m((p = (u =
|
|
4123
|
-
} catch (
|
|
4124
|
-
console.error(
|
|
4141
|
+
const T = await b();
|
|
4142
|
+
m((p = (u = T == null ? void 0 : T.data) == null ? void 0 : u.data) == null ? void 0 : p.rows, !0);
|
|
4143
|
+
} catch (T) {
|
|
4144
|
+
console.error(T);
|
|
4125
4145
|
} finally {
|
|
4126
4146
|
l.value = !1;
|
|
4127
4147
|
}
|
|
@@ -4129,13 +4149,13 @@ const ir = Q({
|
|
|
4129
4149
|
var u;
|
|
4130
4150
|
try {
|
|
4131
4151
|
l.value = !0;
|
|
4132
|
-
const p = await v(), { columns:
|
|
4152
|
+
const p = await v(), { columns: T = [], rows: F = [] } = ((u = p == null ? void 0 : p.data) == null ? void 0 : u.data) ?? {};
|
|
4133
4153
|
let S;
|
|
4134
|
-
|
|
4135
|
-
name:
|
|
4136
|
-
types:
|
|
4137
|
-
label:
|
|
4138
|
-
value:
|
|
4154
|
+
T.length > 0 && (S = {
|
|
4155
|
+
name: T[0],
|
|
4156
|
+
types: T.slice(1).map((_) => ({
|
|
4157
|
+
label: _,
|
|
4158
|
+
value: _
|
|
4139
4159
|
}))
|
|
4140
4160
|
}), g(F, S, !0);
|
|
4141
4161
|
} catch (p) {
|
|
@@ -4157,7 +4177,7 @@ const ir = Q({
|
|
|
4157
4177
|
n({
|
|
4158
4178
|
refreshData: h
|
|
4159
4179
|
});
|
|
4160
|
-
const A = ue(e), { getGlobalModel:
|
|
4180
|
+
const A = ue(e), { getGlobalModel: x, setGlobalModel: B } = $(de, {
|
|
4161
4181
|
// @ts-ignore
|
|
4162
4182
|
// eslint-disable-next-line no-void
|
|
4163
4183
|
getGlobalModel: (u) => {
|
|
@@ -4166,31 +4186,31 @@ const ir = Q({
|
|
|
4166
4186
|
// eslint-disable-next-line no-void
|
|
4167
4187
|
setGlobalModel: (u, p) => {
|
|
4168
4188
|
}
|
|
4169
|
-
}),
|
|
4170
|
-
const p = e.id,
|
|
4171
|
-
B(p, { ...
|
|
4172
|
-
}), { setRequest:
|
|
4189
|
+
}), w = A("click", (u) => {
|
|
4190
|
+
const p = e.id, T = x(p);
|
|
4191
|
+
B(p, { ...T, RECORD: u.data });
|
|
4192
|
+
}), { setRequest: L } = $(Ce, {
|
|
4173
4193
|
// @ts-ignore
|
|
4174
4194
|
// eslint-disable-next-line no-void
|
|
4175
|
-
setRequest: ({ id: u, sortNum: p, requestFn:
|
|
4195
|
+
setRequest: ({ id: u, sortNum: p, requestFn: T }) => {
|
|
4176
4196
|
}
|
|
4177
4197
|
});
|
|
4178
|
-
return
|
|
4198
|
+
return L({
|
|
4179
4199
|
id: e.id,
|
|
4180
4200
|
requestFn: h,
|
|
4181
4201
|
sortNum: e.requestSort
|
|
4182
4202
|
}), ge(e, {
|
|
4183
4203
|
refreshData: h,
|
|
4184
|
-
click:
|
|
4204
|
+
click: w,
|
|
4185
4205
|
resetRecord: () => {
|
|
4186
|
-
const u = e.id, p =
|
|
4206
|
+
const u = e.id, p = x(u);
|
|
4187
4207
|
B(u, { ...p, RECORD: "" });
|
|
4188
4208
|
}
|
|
4189
4209
|
}), {
|
|
4190
4210
|
option: d,
|
|
4191
4211
|
style: t,
|
|
4192
4212
|
refreshData: h,
|
|
4193
|
-
click:
|
|
4213
|
+
click: w,
|
|
4194
4214
|
loading: l,
|
|
4195
4215
|
visible: a,
|
|
4196
4216
|
hideModal: i
|
|
@@ -4198,14 +4218,14 @@ const ir = Q({
|
|
|
4198
4218
|
}
|
|
4199
4219
|
});
|
|
4200
4220
|
function rr(e, n, t, o, a, i) {
|
|
4201
|
-
const
|
|
4221
|
+
const s = Z("echarts"), r = Z("spin"), l = Z("a-modal");
|
|
4202
4222
|
return E(), R("div", {
|
|
4203
4223
|
class: "ecan-bar",
|
|
4204
4224
|
style: G(e.style)
|
|
4205
4225
|
}, [
|
|
4206
|
-
j(
|
|
4226
|
+
j(r, { spinning: e.loading }, {
|
|
4207
4227
|
default: Y(() => [
|
|
4208
|
-
j(
|
|
4228
|
+
j(s, {
|
|
4209
4229
|
option: e.option,
|
|
4210
4230
|
"update-options": { notMerge: !0 },
|
|
4211
4231
|
autoresize: "",
|
|
@@ -4222,9 +4242,9 @@ function rr(e, n, t, o, a, i) {
|
|
|
4222
4242
|
onCancel: e.hideModal
|
|
4223
4243
|
}, {
|
|
4224
4244
|
default: Y(() => [
|
|
4225
|
-
j(
|
|
4245
|
+
j(r, { spinning: e.loading }, {
|
|
4226
4246
|
default: Y(() => [
|
|
4227
|
-
j(
|
|
4247
|
+
j(s, {
|
|
4228
4248
|
option: e.option,
|
|
4229
4249
|
"update-options": { notMerge: !0 },
|
|
4230
4250
|
autoresize: ""
|
|
@@ -4307,11 +4327,11 @@ const ur = Q({
|
|
|
4307
4327
|
},
|
|
4308
4328
|
components: {
|
|
4309
4329
|
Spin: et,
|
|
4310
|
-
Echarts:
|
|
4330
|
+
Echarts: ze,
|
|
4311
4331
|
AModal: ke
|
|
4312
4332
|
},
|
|
4313
4333
|
setup(e) {
|
|
4314
|
-
const n = ie(e), t =
|
|
4334
|
+
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
4315
4335
|
o.value = !1;
|
|
4316
4336
|
}, i = q(() => {
|
|
4317
4337
|
const h = e.xAxisLabelFormatter, A = e.yAxisLabelFormatter;
|
|
@@ -4375,8 +4395,8 @@ const ur = Q({
|
|
|
4375
4395
|
},
|
|
4376
4396
|
axisLabel: {
|
|
4377
4397
|
color: e.xAxisLabelColor,
|
|
4378
|
-
formatter(
|
|
4379
|
-
return De(h,
|
|
4398
|
+
formatter(x) {
|
|
4399
|
+
return De(h, x);
|
|
4380
4400
|
}
|
|
4381
4401
|
},
|
|
4382
4402
|
axisLine: {
|
|
@@ -4397,8 +4417,8 @@ const ur = Q({
|
|
|
4397
4417
|
},
|
|
4398
4418
|
axisLabel: {
|
|
4399
4419
|
color: e.yAxisLabelColor,
|
|
4400
|
-
formatter(
|
|
4401
|
-
return De(A,
|
|
4420
|
+
formatter(x) {
|
|
4421
|
+
return De(A, x);
|
|
4402
4422
|
}
|
|
4403
4423
|
},
|
|
4404
4424
|
axisLine: {
|
|
@@ -4411,16 +4431,16 @@ const ur = Q({
|
|
|
4411
4431
|
tooltip: {
|
|
4412
4432
|
show: e.tooltipShow,
|
|
4413
4433
|
trigger: e.tooltipTrigger,
|
|
4414
|
-
formatter: function(
|
|
4434
|
+
formatter: function(x) {
|
|
4415
4435
|
var p;
|
|
4416
|
-
const { marker: B, seriesName:
|
|
4436
|
+
const { marker: B, seriesName: w } = x, L = ((p = x == null ? void 0 : x.data) == null ? void 0 : p.record) ?? {}, { name: C, value: u } = L;
|
|
4417
4437
|
return be(e.tooltipFormatter, {
|
|
4418
4438
|
marker: B,
|
|
4419
|
-
seriesName:
|
|
4420
|
-
a:
|
|
4421
|
-
b:
|
|
4439
|
+
seriesName: w,
|
|
4440
|
+
a: w,
|
|
4441
|
+
b: C,
|
|
4422
4442
|
c: u,
|
|
4423
|
-
...
|
|
4443
|
+
...L
|
|
4424
4444
|
});
|
|
4425
4445
|
},
|
|
4426
4446
|
axisPointer: {
|
|
@@ -4442,7 +4462,7 @@ const ur = Q({
|
|
|
4442
4462
|
}
|
|
4443
4463
|
]
|
|
4444
4464
|
};
|
|
4445
|
-
}), { getGlobalModel:
|
|
4465
|
+
}), { getGlobalModel: s, setGlobalModel: r } = $(de, {
|
|
4446
4466
|
// @ts-ignore
|
|
4447
4467
|
// eslint-disable-next-line no-void
|
|
4448
4468
|
getGlobalModel: (h) => {
|
|
@@ -4454,8 +4474,8 @@ const ur = Q({
|
|
|
4454
4474
|
}), { pageMode: l } = $(ce, {
|
|
4455
4475
|
pageMode: "normal"
|
|
4456
4476
|
}), d = (h = [], A) => {
|
|
4457
|
-
const { name:
|
|
4458
|
-
t.value = h.map((
|
|
4477
|
+
const { name: x = "name", value: B = "value" } = A || {};
|
|
4478
|
+
t.value = h.map((w) => ({ value: [w[x], w[B]], record: w }));
|
|
4459
4479
|
};
|
|
4460
4480
|
ne(() => e.data, (h) => {
|
|
4461
4481
|
(e.dataType === "static" || k(l) === "design") && d(h);
|
|
@@ -4463,22 +4483,22 @@ const ur = Q({
|
|
|
4463
4483
|
immediate: !0,
|
|
4464
4484
|
deep: !0
|
|
4465
4485
|
});
|
|
4466
|
-
const c =
|
|
4486
|
+
const c = I(!1), m = Ae(e), g = async () => {
|
|
4467
4487
|
var h, A;
|
|
4468
4488
|
if (!(e.dataType !== "request" || k(l) === "design")) {
|
|
4469
4489
|
c.value = !0;
|
|
4470
4490
|
try {
|
|
4471
|
-
const
|
|
4472
|
-
d((A = (h =
|
|
4473
|
-
} catch (
|
|
4474
|
-
console.error(
|
|
4491
|
+
const x = await m();
|
|
4492
|
+
d((A = (h = x == null ? void 0 : x.data) == null ? void 0 : h.data) == null ? void 0 : A.rows, e.dataFieldNames);
|
|
4493
|
+
} catch (x) {
|
|
4494
|
+
console.error(x);
|
|
4475
4495
|
} finally {
|
|
4476
4496
|
c.value = !1;
|
|
4477
4497
|
}
|
|
4478
4498
|
}
|
|
4479
4499
|
}, f = ue(e)("click", (h) => {
|
|
4480
|
-
const A = e.id,
|
|
4481
|
-
|
|
4500
|
+
const A = e.id, x = s(A);
|
|
4501
|
+
r(A, { ...x, RECORD: h == null ? void 0 : h.data });
|
|
4482
4502
|
});
|
|
4483
4503
|
ge(e, {
|
|
4484
4504
|
refreshData: () => {
|
|
@@ -4489,7 +4509,7 @@ const ur = Q({
|
|
|
4489
4509
|
const { setRequest: y } = $(Ce, {
|
|
4490
4510
|
// @ts-ignore
|
|
4491
4511
|
// eslint-disable-next-line no-void
|
|
4492
|
-
setRequest: ({ id: h, sortNum: A, requestFn:
|
|
4512
|
+
setRequest: ({ id: h, sortNum: A, requestFn: x }) => {
|
|
4493
4513
|
}
|
|
4494
4514
|
});
|
|
4495
4515
|
return y({
|
|
@@ -4507,13 +4527,13 @@ const ur = Q({
|
|
|
4507
4527
|
}
|
|
4508
4528
|
});
|
|
4509
4529
|
function fr(e, n, t, o, a, i) {
|
|
4510
|
-
const
|
|
4530
|
+
const s = Z("echarts"), r = Z("spin"), l = Z("a-modal");
|
|
4511
4531
|
return E(), R("div", {
|
|
4512
4532
|
style: G(e.style)
|
|
4513
4533
|
}, [
|
|
4514
|
-
j(
|
|
4534
|
+
j(r, { spinning: e.loading }, {
|
|
4515
4535
|
default: Y(() => [
|
|
4516
|
-
j(
|
|
4536
|
+
j(s, {
|
|
4517
4537
|
option: e.option,
|
|
4518
4538
|
autoresize: "",
|
|
4519
4539
|
onClick: e.click
|
|
@@ -4529,9 +4549,9 @@ function fr(e, n, t, o, a, i) {
|
|
|
4529
4549
|
onCancel: e.hideModal
|
|
4530
4550
|
}, {
|
|
4531
4551
|
default: Y(() => [
|
|
4532
|
-
j(
|
|
4552
|
+
j(r, { spinning: e.loading }, {
|
|
4533
4553
|
default: Y(() => [
|
|
4534
|
-
j(
|
|
4554
|
+
j(s, {
|
|
4535
4555
|
option: e.option,
|
|
4536
4556
|
"update-options": { notMerge: !0 },
|
|
4537
4557
|
autoresize: ""
|
|
@@ -4560,10 +4580,10 @@ const mr = /* @__PURE__ */ K(ur, [["render", fr]]), gr = oe(mr), ro = {
|
|
|
4560
4580
|
...so
|
|
4561
4581
|
},
|
|
4562
4582
|
components: {
|
|
4563
|
-
Echarts:
|
|
4583
|
+
Echarts: ze
|
|
4564
4584
|
},
|
|
4565
4585
|
setup(e) {
|
|
4566
|
-
const n = ie(e), t =
|
|
4586
|
+
const n = ie(e), t = I();
|
|
4567
4587
|
return ne(() => e.optionCode, (o) => {
|
|
4568
4588
|
try {
|
|
4569
4589
|
const a = eval;
|
|
@@ -4581,11 +4601,11 @@ const mr = /* @__PURE__ */ K(ur, [["render", fr]]), gr = oe(mr), ro = {
|
|
|
4581
4601
|
}
|
|
4582
4602
|
});
|
|
4583
4603
|
function yr(e, n, t, o, a, i) {
|
|
4584
|
-
const
|
|
4604
|
+
const s = Z("echarts");
|
|
4585
4605
|
return E(), R("div", {
|
|
4586
4606
|
style: G(e.style)
|
|
4587
4607
|
}, [
|
|
4588
|
-
j(
|
|
4608
|
+
j(s, {
|
|
4589
4609
|
option: e.myOption,
|
|
4590
4610
|
"update-options": { notMerge: !0 },
|
|
4591
4611
|
autoresize: ""
|
|
@@ -4713,13 +4733,13 @@ const Cr = Q({
|
|
|
4713
4733
|
},
|
|
4714
4734
|
components: {
|
|
4715
4735
|
Spin: et,
|
|
4716
|
-
Echarts:
|
|
4736
|
+
Echarts: ze,
|
|
4717
4737
|
AModal: ke
|
|
4718
4738
|
},
|
|
4719
4739
|
setup(e) {
|
|
4720
|
-
const n = ie(e), t =
|
|
4740
|
+
const n = ie(e), t = I([]), o = I([]), a = I(!1), i = () => {
|
|
4721
4741
|
a.value = !1;
|
|
4722
|
-
},
|
|
4742
|
+
}, s = q(() => ({
|
|
4723
4743
|
title: {
|
|
4724
4744
|
text: e.titleText,
|
|
4725
4745
|
subtext: e.titleSubtext,
|
|
@@ -4783,21 +4803,21 @@ const Cr = Q({
|
|
|
4783
4803
|
show: e.tooltipShow,
|
|
4784
4804
|
formatter: (u) => {
|
|
4785
4805
|
const p = u.length;
|
|
4786
|
-
let
|
|
4806
|
+
let T = "", F = e.tooltipFormatter;
|
|
4787
4807
|
F === "" && (F = "{marker} {a} {c}");
|
|
4788
4808
|
const S = e.seriesTypes;
|
|
4789
|
-
for (let
|
|
4790
|
-
const U = S[
|
|
4791
|
-
|
|
4809
|
+
for (let _ = 0; _ < p; _++) {
|
|
4810
|
+
const U = S[_], { tooltipFormatter: H } = U || {}, { marker: O, seriesName: N, name: z, value: W, data: ee } = u[_] || {};
|
|
4811
|
+
_ === 0 && (T += `${z}<br/>`), T += be(
|
|
4792
4812
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4793
4813
|
H || F,
|
|
4794
4814
|
{
|
|
4795
4815
|
marker: O,
|
|
4796
|
-
name:
|
|
4816
|
+
name: z,
|
|
4797
4817
|
value: W,
|
|
4798
|
-
seriesName:
|
|
4799
|
-
a:
|
|
4800
|
-
b:
|
|
4818
|
+
seriesName: N,
|
|
4819
|
+
a: N,
|
|
4820
|
+
b: z,
|
|
4801
4821
|
c: W,
|
|
4802
4822
|
...ee
|
|
4803
4823
|
},
|
|
@@ -4805,9 +4825,9 @@ const Cr = Q({
|
|
|
4805
4825
|
useNewline: !0,
|
|
4806
4826
|
useSpace: !0
|
|
4807
4827
|
}
|
|
4808
|
-
),
|
|
4828
|
+
), T += "<br/>";
|
|
4809
4829
|
}
|
|
4810
|
-
return
|
|
4830
|
+
return T;
|
|
4811
4831
|
},
|
|
4812
4832
|
textStyle: {
|
|
4813
4833
|
color: e.tooltipTextStyleColor
|
|
@@ -4837,27 +4857,27 @@ const Cr = Q({
|
|
|
4837
4857
|
},
|
|
4838
4858
|
yAxis: k(c),
|
|
4839
4859
|
series: k(t)
|
|
4840
|
-
})), { pageMode:
|
|
4860
|
+
})), { pageMode: r } = $(ce, {
|
|
4841
4861
|
pageMode: "normal"
|
|
4842
4862
|
}), l = (u = [], p = !1) => {
|
|
4843
|
-
let
|
|
4863
|
+
let T;
|
|
4844
4864
|
if (e.dataFieldConfigType === "key") {
|
|
4845
4865
|
const H = p ? e.keyTypeDataFieldNames : null;
|
|
4846
|
-
|
|
4866
|
+
T = Ne(u, H);
|
|
4847
4867
|
} else if (e.dataFieldConfigType === "value") {
|
|
4848
4868
|
const H = p ? e.valueTypeDataFieldNames : null;
|
|
4849
|
-
|
|
4869
|
+
T = Ye(u, H);
|
|
4850
4870
|
}
|
|
4851
|
-
o.value =
|
|
4852
|
-
const F =
|
|
4853
|
-
for (let H = 0; H <
|
|
4854
|
-
const O = U[H], { type:
|
|
4871
|
+
o.value = T.dimensions;
|
|
4872
|
+
const F = T.dataset, S = [], _ = F.length, U = e.seriesTypes;
|
|
4873
|
+
for (let H = 0; H < _; H++) {
|
|
4874
|
+
const O = U[H], { type: N, axisIndex: z } = O || {};
|
|
4855
4875
|
let W = {
|
|
4856
|
-
type:
|
|
4857
|
-
yAxisIndex:
|
|
4876
|
+
type: N,
|
|
4877
|
+
yAxisIndex: z,
|
|
4858
4878
|
...F[H]
|
|
4859
4879
|
};
|
|
4860
|
-
|
|
4880
|
+
N === "line" && (W = {
|
|
4861
4881
|
...W,
|
|
4862
4882
|
symbolSize: e.symbolSize,
|
|
4863
4883
|
smooth: e.smooth,
|
|
@@ -4867,28 +4887,28 @@ const Cr = Q({
|
|
|
4867
4887
|
lineStyle: {
|
|
4868
4888
|
width: e.lineStyleWidth
|
|
4869
4889
|
}
|
|
4870
|
-
}),
|
|
4890
|
+
}), N === "bar" && (W = {
|
|
4871
4891
|
...W,
|
|
4872
4892
|
barWidth: e.barWidth
|
|
4873
4893
|
}), S.push(W);
|
|
4874
4894
|
}
|
|
4875
4895
|
t.value = S;
|
|
4876
|
-
}, d = (u = [], p,
|
|
4877
|
-
const S =
|
|
4896
|
+
}, d = (u = [], p, T = !1) => {
|
|
4897
|
+
const S = Ne(u, T ? p : null);
|
|
4878
4898
|
o.value = S.dimensions;
|
|
4879
|
-
const
|
|
4880
|
-
for (let
|
|
4881
|
-
const
|
|
4899
|
+
const _ = S.dataset, U = [], H = _.length, O = e.seriesTypes;
|
|
4900
|
+
for (let N = 0; N < H; N++) {
|
|
4901
|
+
const z = O[N];
|
|
4882
4902
|
U.push({
|
|
4883
|
-
type:
|
|
4884
|
-
yAxisIndex:
|
|
4885
|
-
...
|
|
4903
|
+
type: z == null ? void 0 : z.type,
|
|
4904
|
+
yAxisIndex: z == null ? void 0 : z.axisIndex,
|
|
4905
|
+
..._[N]
|
|
4886
4906
|
});
|
|
4887
4907
|
}
|
|
4888
4908
|
t.value = U;
|
|
4889
4909
|
};
|
|
4890
4910
|
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([u]) => {
|
|
4891
|
-
(e.dataType === "static" || k(
|
|
4911
|
+
(e.dataType === "static" || k(r) === "design") && l(u);
|
|
4892
4912
|
}, {
|
|
4893
4913
|
immediate: !0,
|
|
4894
4914
|
deep: !0
|
|
@@ -4906,8 +4926,8 @@ const Cr = Q({
|
|
|
4906
4926
|
},
|
|
4907
4927
|
axisLabel: {
|
|
4908
4928
|
color: e.yAxisLabelColor,
|
|
4909
|
-
formatter(
|
|
4910
|
-
return De(p.axisLabelFormatter,
|
|
4929
|
+
formatter(T) {
|
|
4930
|
+
return De(p.axisLabelFormatter, T);
|
|
4911
4931
|
}
|
|
4912
4932
|
},
|
|
4913
4933
|
axisLine: {
|
|
@@ -4916,39 +4936,39 @@ const Cr = Q({
|
|
|
4916
4936
|
}
|
|
4917
4937
|
}
|
|
4918
4938
|
}));
|
|
4919
|
-
}), m =
|
|
4939
|
+
}), m = I(!1), g = Ae(e), b = async () => {
|
|
4920
4940
|
var u, p;
|
|
4921
|
-
if (!(e.dataType !== "request" || k(
|
|
4941
|
+
if (!(e.dataType !== "request" || k(r) === "design"))
|
|
4922
4942
|
try {
|
|
4923
4943
|
m.value = !0;
|
|
4924
|
-
const
|
|
4925
|
-
l((p = (u =
|
|
4926
|
-
} catch (
|
|
4927
|
-
console.error(
|
|
4944
|
+
const T = await g();
|
|
4945
|
+
l((p = (u = T == null ? void 0 : T.data) == null ? void 0 : u.data) == null ? void 0 : p.rows, !0);
|
|
4946
|
+
} catch (T) {
|
|
4947
|
+
console.error(T);
|
|
4928
4948
|
} finally {
|
|
4929
4949
|
m.value = !1;
|
|
4930
4950
|
}
|
|
4931
4951
|
}, f = Dt(e), v = async () => {
|
|
4932
|
-
var u, p,
|
|
4933
|
-
if (!(e.dataType !== "indicator" || k(
|
|
4952
|
+
var u, p, T, F, S;
|
|
4953
|
+
if (!(e.dataType !== "indicator" || k(r) === "design"))
|
|
4934
4954
|
try {
|
|
4935
4955
|
m.value = !0;
|
|
4936
|
-
const
|
|
4956
|
+
const _ = await f();
|
|
4937
4957
|
let U;
|
|
4938
|
-
((
|
|
4939
|
-
name:
|
|
4940
|
-
types:
|
|
4941
|
-
}), d((S = (F =
|
|
4942
|
-
} catch (
|
|
4943
|
-
console.error(
|
|
4958
|
+
((T = (p = (u = _ == null ? void 0 : _.data) == null ? void 0 : u.data) == null ? void 0 : p.columns) == null ? void 0 : T.length) > 0 && (U = {
|
|
4959
|
+
name: _.data.data.columns[0],
|
|
4960
|
+
types: _.data.data.columns.slice(1).map((H) => ({ label: H, value: H }))
|
|
4961
|
+
}), d((S = (F = _ == null ? void 0 : _.data) == null ? void 0 : F.data) == null ? void 0 : S.rows, U, !0);
|
|
4962
|
+
} catch (_) {
|
|
4963
|
+
console.error(_);
|
|
4944
4964
|
} finally {
|
|
4945
4965
|
m.value = !1;
|
|
4946
4966
|
}
|
|
4947
4967
|
}, y = () => {
|
|
4948
|
-
k(
|
|
4968
|
+
k(r) !== "design" && (v(), b());
|
|
4949
4969
|
}, h = () => {
|
|
4950
4970
|
y();
|
|
4951
|
-
}, A = ue(e), { getGlobalModel:
|
|
4971
|
+
}, A = ue(e), { getGlobalModel: x, setGlobalModel: B } = $(de, {
|
|
4952
4972
|
// @ts-ignore
|
|
4953
4973
|
// eslint-disable-next-line no-void
|
|
4954
4974
|
getGlobalModel: (u) => {
|
|
@@ -4957,30 +4977,30 @@ const Cr = Q({
|
|
|
4957
4977
|
// eslint-disable-next-line no-void
|
|
4958
4978
|
setGlobalModel: (u, p) => {
|
|
4959
4979
|
}
|
|
4960
|
-
}),
|
|
4961
|
-
const p = e.id,
|
|
4962
|
-
B(p, { ...
|
|
4963
|
-
}), { setRequest:
|
|
4980
|
+
}), w = A("click", (u) => {
|
|
4981
|
+
const p = e.id, T = x(p);
|
|
4982
|
+
B(p, { ...T, RECORD: u == null ? void 0 : u.data });
|
|
4983
|
+
}), { setRequest: L } = $(Ce, {
|
|
4964
4984
|
// @ts-ignore
|
|
4965
4985
|
// eslint-disable-next-line no-void
|
|
4966
|
-
setRequest: ({ id: u, sortNum: p, requestFn:
|
|
4986
|
+
setRequest: ({ id: u, sortNum: p, requestFn: T }) => {
|
|
4967
4987
|
}
|
|
4968
4988
|
});
|
|
4969
|
-
return
|
|
4989
|
+
return L({
|
|
4970
4990
|
id: e.id,
|
|
4971
4991
|
requestFn: y,
|
|
4972
4992
|
sortNum: e.requestSort
|
|
4973
4993
|
}), ge(e, {
|
|
4974
4994
|
resetRecord: () => {
|
|
4975
|
-
const u = e.id, p =
|
|
4995
|
+
const u = e.id, p = x(u);
|
|
4976
4996
|
B(u, { ...p, RECORD: "" });
|
|
4977
4997
|
},
|
|
4978
4998
|
refreshData: h,
|
|
4979
|
-
click:
|
|
4999
|
+
click: w
|
|
4980
5000
|
}), {
|
|
4981
5001
|
style: n,
|
|
4982
|
-
option:
|
|
4983
|
-
click:
|
|
5002
|
+
option: s,
|
|
5003
|
+
click: w,
|
|
4984
5004
|
loading: m,
|
|
4985
5005
|
visible: a,
|
|
4986
5006
|
hideModal: i
|
|
@@ -4988,13 +5008,13 @@ const Cr = Q({
|
|
|
4988
5008
|
}
|
|
4989
5009
|
});
|
|
4990
5010
|
function Sr(e, n, t, o, a, i) {
|
|
4991
|
-
const
|
|
5011
|
+
const s = Z("echarts"), r = Z("spin"), l = Z("a-modal");
|
|
4992
5012
|
return E(), R("div", {
|
|
4993
5013
|
style: G(e.style)
|
|
4994
5014
|
}, [
|
|
4995
|
-
j(
|
|
5015
|
+
j(r, { spinning: e.loading }, {
|
|
4996
5016
|
default: Y(() => [
|
|
4997
|
-
j(
|
|
5017
|
+
j(s, {
|
|
4998
5018
|
option: e.option,
|
|
4999
5019
|
"update-options": { notMerge: !0 },
|
|
5000
5020
|
autoresize: "",
|
|
@@ -5011,9 +5031,9 @@ function Sr(e, n, t, o, a, i) {
|
|
|
5011
5031
|
onCancel: e.hideModal
|
|
5012
5032
|
}, {
|
|
5013
5033
|
default: Y(() => [
|
|
5014
|
-
j(
|
|
5034
|
+
j(r, { spinning: e.loading }, {
|
|
5015
5035
|
default: Y(() => [
|
|
5016
|
-
j(
|
|
5036
|
+
j(s, {
|
|
5017
5037
|
option: e.option,
|
|
5018
5038
|
"update-options": { notMerge: !0 },
|
|
5019
5039
|
autoresize: "",
|
|
@@ -5065,24 +5085,24 @@ const wr = /* @__PURE__ */ K(Cr, [["render", Sr]]), kr = oe(wr), fo = {
|
|
|
5065
5085
|
width: "100%",
|
|
5066
5086
|
height: "100%"
|
|
5067
5087
|
})), i = ue(e)("click", () => {
|
|
5068
|
-
}),
|
|
5088
|
+
}), s = I([]);
|
|
5069
5089
|
ne(() => e.data, (l) => {
|
|
5070
|
-
|
|
5090
|
+
s.value = l;
|
|
5071
5091
|
}, {
|
|
5072
5092
|
immediate: !0,
|
|
5073
5093
|
deep: !0
|
|
5074
5094
|
}), ge(e, {
|
|
5075
5095
|
click: i
|
|
5076
5096
|
});
|
|
5077
|
-
const { setGlobalModel:
|
|
5097
|
+
const { setGlobalModel: r } = $(de, {
|
|
5078
5098
|
// @ts-ignore
|
|
5079
5099
|
// eslint-disable-next-line no-void
|
|
5080
5100
|
setGlobalModel: (l, d) => {
|
|
5081
5101
|
}
|
|
5082
5102
|
});
|
|
5083
|
-
return
|
|
5103
|
+
return r(e.id, {
|
|
5084
5104
|
type: e.type,
|
|
5085
|
-
value:
|
|
5105
|
+
value: s
|
|
5086
5106
|
}), {
|
|
5087
5107
|
style: n,
|
|
5088
5108
|
click: i,
|
|
@@ -5094,10 +5114,10 @@ const wr = /* @__PURE__ */ K(Cr, [["render", Sr]]), kr = oe(wr), fo = {
|
|
|
5094
5114
|
const Te = (e) => (sn("data-v-f3fc1305"), e = e(), cn(), e), Lr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "top-left border-item" }, null, -1)), Ir = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "top-right border-item" }, null, -1)), Mr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "bottom-left border-item" }, null, -1)), Er = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "bottom-right border-item" }, null, -1)), Or = { class: "title-item-wrapper" }, Fr = { class: "title-item" }, Rr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("img", {
|
|
5095
5115
|
class: "title-decoration-left",
|
|
5096
5116
|
src: Tr
|
|
5097
|
-
}, null, -1)), Dr = { class: "title" },
|
|
5117
|
+
}, null, -1)), Dr = { class: "title" }, zr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("img", {
|
|
5098
5118
|
class: "title-decoration-right",
|
|
5099
5119
|
src: _r
|
|
5100
|
-
}, null, -1)),
|
|
5120
|
+
}, null, -1)), Nr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "top-left border-item" }, null, -1)), $r = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "top-right border-item" }, null, -1)), Pr = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "bottom-left border-item" }, null, -1)), Br = /* @__PURE__ */ Te(() => /* @__PURE__ */ X("div", { class: "bottom-right border-item" }, null, -1)), Gr = {
|
|
5101
5121
|
key: 2,
|
|
5102
5122
|
class: "left-title"
|
|
5103
5123
|
}, Ur = { class: "title" };
|
|
@@ -5105,7 +5125,7 @@ function qr(e, n, t, o, a, i) {
|
|
|
5105
5125
|
return E(), R("div", {
|
|
5106
5126
|
class: "ecan-border",
|
|
5107
5127
|
style: G(e.style),
|
|
5108
|
-
onClick: n[0] || (n[0] = (...
|
|
5128
|
+
onClick: n[0] || (n[0] = (...s) => e.click && e.click(...s))
|
|
5109
5129
|
}, [
|
|
5110
5130
|
e.mode === "no-title" ? (E(), R("div", {
|
|
5111
5131
|
key: 0,
|
|
@@ -5128,10 +5148,10 @@ function qr(e, n, t, o, a, i) {
|
|
|
5128
5148
|
X("div", Fr, [
|
|
5129
5149
|
Rr,
|
|
5130
5150
|
X("div", Dr, he(e.title), 1),
|
|
5131
|
-
|
|
5151
|
+
zr
|
|
5132
5152
|
])
|
|
5133
5153
|
]),
|
|
5134
|
-
|
|
5154
|
+
Nr,
|
|
5135
5155
|
$r,
|
|
5136
5156
|
Pr,
|
|
5137
5157
|
Br
|
|
@@ -5171,21 +5191,21 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-f3fc1305
|
|
|
5171
5191
|
},
|
|
5172
5192
|
setup(e) {
|
|
5173
5193
|
const n = () => document.getElementById("ProviderConfig") || document.body, t = q(() => {
|
|
5174
|
-
const
|
|
5194
|
+
const z = e.position;
|
|
5175
5195
|
return {
|
|
5176
5196
|
verticalAlign: {
|
|
5177
5197
|
default: "",
|
|
5178
5198
|
top: "top",
|
|
5179
5199
|
center: "middle",
|
|
5180
5200
|
bottom: "bottom"
|
|
5181
|
-
}[
|
|
5201
|
+
}[z]
|
|
5182
5202
|
};
|
|
5183
|
-
}), o = e.width, a = e.height, i = e.originalWidth,
|
|
5203
|
+
}), o = e.width, a = e.height, i = e.originalWidth, s = e.originalHeight, r = I("80%"), l = I(0), d = I(), c = I(0), m = I({}), g = ie(e), b = I({}), f = I(!1), v = I();
|
|
5184
5204
|
let y;
|
|
5185
5205
|
const h = () => {
|
|
5186
5206
|
d.value = parseFloat(o) / parseFloat(i);
|
|
5187
|
-
const
|
|
5188
|
-
l.value = W * k(d), c.value = ee *
|
|
5207
|
+
const z = parseFloat(a) / parseFloat(s), W = document.body.offsetWidth, ee = document.body.offsetHeight;
|
|
5208
|
+
l.value = W * k(d), c.value = ee * z, r.value = `${k(d) * 100}%`, m.value = {
|
|
5189
5209
|
width: `${k(l)}px`,
|
|
5190
5210
|
height: `${k(c)}px`
|
|
5191
5211
|
}, b.value = {
|
|
@@ -5195,74 +5215,74 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-f3fc1305
|
|
|
5195
5215
|
};
|
|
5196
5216
|
}, A = It(() => {
|
|
5197
5217
|
h();
|
|
5198
|
-
}, 100),
|
|
5199
|
-
const
|
|
5200
|
-
y = new
|
|
5218
|
+
}, 100), x = () => {
|
|
5219
|
+
const z = window.MutationObserver;
|
|
5220
|
+
y = new z(A), y.observe(document.body, {
|
|
5201
5221
|
attributes: !0,
|
|
5202
5222
|
attributeFilter: ["style"],
|
|
5203
5223
|
attributeOldValue: !0
|
|
5204
5224
|
});
|
|
5205
5225
|
}, B = () => {
|
|
5206
5226
|
y && (y.disconnect(), y.takeRecords(), y = null);
|
|
5207
|
-
},
|
|
5227
|
+
}, w = I(!1), { touchRequest: L } = $(Ce, {
|
|
5208
5228
|
// @ts-ignore
|
|
5209
5229
|
// eslint-disable-next-line no-void
|
|
5210
5230
|
touchRequest: () => {
|
|
5211
5231
|
}
|
|
5212
|
-
}),
|
|
5213
|
-
|
|
5232
|
+
}), C = () => {
|
|
5233
|
+
w.value = !0;
|
|
5214
5234
|
}, u = () => {
|
|
5215
|
-
|
|
5235
|
+
w.value = !1;
|
|
5216
5236
|
}, p = () => {
|
|
5217
5237
|
u();
|
|
5218
|
-
},
|
|
5238
|
+
}, T = () => {
|
|
5219
5239
|
u();
|
|
5220
|
-
}, { setModalModel: F, pushUseModalIds: S, popUseModalIds:
|
|
5221
|
-
pushUseModalIds: (
|
|
5240
|
+
}, { setModalModel: F, pushUseModalIds: S, popUseModalIds: _ } = $(_n, {
|
|
5241
|
+
pushUseModalIds: (z) => {
|
|
5222
5242
|
},
|
|
5223
5243
|
popUseModalIds: () => {
|
|
5224
5244
|
},
|
|
5225
|
-
setModalModel: (
|
|
5245
|
+
setModalModel: (z, W) => {
|
|
5226
5246
|
}
|
|
5227
5247
|
}), U = () => {
|
|
5228
|
-
const
|
|
5248
|
+
const z = e.id;
|
|
5229
5249
|
let W = [];
|
|
5230
5250
|
const ee = e.componentList;
|
|
5231
|
-
Array.isArray(ee) && (W = ee.map((se) => se.id), F(
|
|
5251
|
+
Array.isArray(ee) && (W = ee.map((se) => se.id), F(z, [...new Set(W)]));
|
|
5232
5252
|
};
|
|
5233
|
-
ne(() =>
|
|
5234
|
-
|
|
5235
|
-
h(), window.addEventListener("resize", A),
|
|
5236
|
-
}),
|
|
5253
|
+
ne(() => w.value, async (z) => {
|
|
5254
|
+
z ? (f.value = !1, S(e.id), U(), await ft(() => {
|
|
5255
|
+
h(), window.addEventListener("resize", A), x(), f.value = !0;
|
|
5256
|
+
}), L()) : (_(), window.removeEventListener("resize", A), B());
|
|
5237
5257
|
});
|
|
5238
|
-
const H = q(() => k(d) >= 1), O = q(() => e.fullModal),
|
|
5239
|
-
let
|
|
5240
|
-
return k(H) && (
|
|
5258
|
+
const H = q(() => k(d) >= 1), O = q(() => e.fullModal), N = q(() => {
|
|
5259
|
+
let z = "ecan-modal";
|
|
5260
|
+
return k(H) && (z += " ecan-full-width-modal"), k(O) && (z += " ecan-full-modal"), z;
|
|
5241
5261
|
});
|
|
5242
5262
|
return ge(e, {
|
|
5243
|
-
showModal:
|
|
5263
|
+
showModal: C
|
|
5244
5264
|
}), {
|
|
5245
5265
|
modalRef: v,
|
|
5246
5266
|
containStyle: m,
|
|
5247
5267
|
contentStyle: b,
|
|
5248
5268
|
getContainer: n,
|
|
5249
5269
|
modalStyle: t,
|
|
5250
|
-
modalWith:
|
|
5270
|
+
modalWith: r,
|
|
5251
5271
|
isFullModal: O,
|
|
5252
5272
|
style: g,
|
|
5253
|
-
visible:
|
|
5254
|
-
showModal:
|
|
5273
|
+
visible: w,
|
|
5274
|
+
showModal: C,
|
|
5255
5275
|
onOk: p,
|
|
5256
|
-
onCancel:
|
|
5276
|
+
onCancel: T,
|
|
5257
5277
|
isFullWidth: H,
|
|
5258
|
-
wrapClassName:
|
|
5278
|
+
wrapClassName: N,
|
|
5259
5279
|
ready: f
|
|
5260
5280
|
};
|
|
5261
5281
|
}
|
|
5262
5282
|
});
|
|
5263
5283
|
function Zr(e, n, t, o, a, i) {
|
|
5264
|
-
const
|
|
5265
|
-
return E(), Oe(
|
|
5284
|
+
const s = Z("a-modal");
|
|
5285
|
+
return E(), Oe(s, {
|
|
5266
5286
|
getContainer: e.getContainer,
|
|
5267
5287
|
wrapClassName: e.wrapClassName,
|
|
5268
5288
|
centered: "",
|
|
@@ -5286,9 +5306,9 @@ function Zr(e, n, t, o, a, i) {
|
|
|
5286
5306
|
class: "content",
|
|
5287
5307
|
style: G(e.contentStyle)
|
|
5288
5308
|
}, [
|
|
5289
|
-
(E(!0), R(Le, null, Ie(e.componentList, (
|
|
5290
|
-
key:
|
|
5291
|
-
},
|
|
5309
|
+
(E(!0), R(Le, null, Ie(e.componentList, (r, l) => (E(), Oe(Eo(r.type), Oo({
|
|
5310
|
+
key: r.id + l
|
|
5311
|
+
}, r), null, 16))), 128))
|
|
5292
5312
|
], 4)) : pe("", !0)
|
|
5293
5313
|
], 4)
|
|
5294
5314
|
]),
|
|
@@ -5349,26 +5369,26 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-0447cd77
|
|
|
5349
5369
|
},
|
|
5350
5370
|
setup(e) {
|
|
5351
5371
|
var c;
|
|
5352
|
-
const n = ie(e), t =
|
|
5372
|
+
const n = ie(e), t = I(0);
|
|
5353
5373
|
ne(() => e.activeKey, (m) => {
|
|
5354
5374
|
t.value = m;
|
|
5355
5375
|
}, {
|
|
5356
5376
|
immediate: !0
|
|
5357
5377
|
});
|
|
5358
|
-
const o =
|
|
5378
|
+
const o = I([]);
|
|
5359
5379
|
ne(() => e.data, (m) => {
|
|
5360
5380
|
o.value = m;
|
|
5361
5381
|
}, {
|
|
5362
5382
|
immediate: !0,
|
|
5363
5383
|
deep: !0
|
|
5364
5384
|
});
|
|
5365
|
-
const a = (m) => t.value === m, i =
|
|
5385
|
+
const a = (m) => t.value === m, i = I(e.value || k(o)[0] && ((c = k(o)[0]) == null ? void 0 : c.value) || ""), s = ue(e), { setGlobalModel: r } = $(de, {
|
|
5366
5386
|
// @ts-ignore
|
|
5367
5387
|
// eslint-disable-next-line no-void
|
|
5368
5388
|
setGlobalModel: (m, g) => {
|
|
5369
5389
|
}
|
|
5370
5390
|
});
|
|
5371
|
-
|
|
5391
|
+
r(e.id, {
|
|
5372
5392
|
value: i,
|
|
5373
5393
|
activeKey: t
|
|
5374
5394
|
});
|
|
@@ -5376,7 +5396,7 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-0447cd77
|
|
|
5376
5396
|
// eslint-disable-next-line no-void
|
|
5377
5397
|
emitRefreshPage: () => {
|
|
5378
5398
|
}
|
|
5379
|
-
}), d =
|
|
5399
|
+
}), d = s("tabChange", (m, g) => {
|
|
5380
5400
|
g !== k(t) && (i.value = (m == null ? void 0 : m.value) || "", t.value = g, l());
|
|
5381
5401
|
});
|
|
5382
5402
|
return ge(e, {
|
|
@@ -5406,25 +5426,25 @@ function es(e, n, t, o, a, i) {
|
|
|
5406
5426
|
flexDirection: e.tabFlexDirection
|
|
5407
5427
|
})
|
|
5408
5428
|
}, [
|
|
5409
|
-
(E(!0), R(Le, null, Ie(e.myData, (
|
|
5429
|
+
(E(!0), R(Le, null, Ie(e.myData, (s, r) => (E(), R("div", {
|
|
5410
5430
|
class: "tab",
|
|
5411
5431
|
style: G({
|
|
5412
5432
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
5413
|
-
color: e.isActive(
|
|
5414
|
-
backgroundImage: e.isActive(
|
|
5433
|
+
color: e.isActive(r) ? e.activeTabColor : e.tabColor,
|
|
5434
|
+
backgroundImage: e.isActive(r) ? e.useImagePath(e.activeTabBackgroundImage, !0) : e.useImagePath(e.tabBackgroundImage, !0),
|
|
5415
5435
|
marginRight: e.tabFlexDirection === "row" ? e.tabBarGutter : null,
|
|
5416
5436
|
marginBottom: e.tabFlexDirection === "column" ? e.tabBarGutter : null,
|
|
5417
5437
|
fontWeight: e.tabFontWeight
|
|
5418
5438
|
}),
|
|
5419
|
-
key:
|
|
5420
|
-
onClick: Fo((l) => e.tabChange(
|
|
5439
|
+
key: r,
|
|
5440
|
+
onClick: Fo((l) => e.tabChange(s, r), ["prevent", "stop"])
|
|
5421
5441
|
}, [
|
|
5422
5442
|
X("div", {
|
|
5423
5443
|
class: "tab-inner",
|
|
5424
5444
|
style: G({
|
|
5425
|
-
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(
|
|
5445
|
+
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(r) ? e.activeTabColor : "transparent"}` : ""
|
|
5426
5446
|
})
|
|
5427
|
-
}, he(
|
|
5447
|
+
}, he(s.title), 5)
|
|
5428
5448
|
], 12, Xr))), 128))
|
|
5429
5449
|
], 4)
|
|
5430
5450
|
], 4);
|
|
@@ -5455,13 +5475,13 @@ const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-3db5a989
|
|
|
5455
5475
|
onClick: () => {
|
|
5456
5476
|
if (!e.linkPage && !e.href)
|
|
5457
5477
|
return;
|
|
5458
|
-
const i = e.linkPage || "",
|
|
5459
|
-
let l =
|
|
5478
|
+
const i = e.linkPage || "", s = In(k(o), i), r = e.href;
|
|
5479
|
+
let l = r || s;
|
|
5460
5480
|
l = be(l);
|
|
5461
5481
|
const d = e.target;
|
|
5462
5482
|
d == null || d === "" || (d !== "event" ? window.open(l, "_" + d) : window.parent.postMessage({
|
|
5463
5483
|
type: "openPage",
|
|
5464
|
-
url:
|
|
5484
|
+
url: r
|
|
5465
5485
|
}, "*"));
|
|
5466
5486
|
}
|
|
5467
5487
|
};
|
|
@@ -5473,7 +5493,7 @@ function ls(e, n, t, o, a, i) {
|
|
|
5473
5493
|
key: 0,
|
|
5474
5494
|
style: G(e.style),
|
|
5475
5495
|
src: e.myImgUrl,
|
|
5476
|
-
onClick: n[0] || (n[0] = (...
|
|
5496
|
+
onClick: n[0] || (n[0] = (...s) => e.onClick && e.onClick(...s))
|
|
5477
5497
|
}, null, 12, as)) : (E(), R("div", {
|
|
5478
5498
|
key: 1,
|
|
5479
5499
|
class: "image-placeholder",
|
|
@@ -5625,11 +5645,11 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5625
5645
|
default:
|
|
5626
5646
|
return 55;
|
|
5627
5647
|
}
|
|
5628
|
-
}), a = q(() => e.scrollX), i = q(() => parseFloat(e.height) - k(o)),
|
|
5629
|
-
if (Array.isArray(
|
|
5630
|
-
const D =
|
|
5648
|
+
}), a = q(() => e.scrollX), i = q(() => parseFloat(e.height) - k(o)), s = I([]), r = I([]), l = I([]), d = I([]), c = I(0), m = I(1), g = q(() => e.paginationPageSize), b = Ro([]), f = (M = []) => {
|
|
5649
|
+
if (Array.isArray(M) && M.length > 0) {
|
|
5650
|
+
const D = M.length, V = e.columnsFixedNum;
|
|
5631
5651
|
for (let J = 0; J < D; J++) {
|
|
5632
|
-
const P =
|
|
5652
|
+
const P = M[J];
|
|
5633
5653
|
J < V ? P.fixed = "left" : P.fixed = !1;
|
|
5634
5654
|
const {
|
|
5635
5655
|
cellAlign: te = "center",
|
|
@@ -5661,25 +5681,25 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5661
5681
|
highlight: k(W) === ht && e.clickHighlight
|
|
5662
5682
|
},
|
|
5663
5683
|
onClick: S("click", () => {
|
|
5664
|
-
const
|
|
5684
|
+
const zt = e.id, Lo = U(zt);
|
|
5665
5685
|
qe = {
|
|
5666
5686
|
dataIndex: fe,
|
|
5667
5687
|
title: ye,
|
|
5668
5688
|
...qe
|
|
5669
|
-
}, H(
|
|
5689
|
+
}, H(zt, { ...Lo, RECORD: qe });
|
|
5670
5690
|
})
|
|
5671
5691
|
}), Array.isArray(P.children) && f(P.children);
|
|
5672
5692
|
}
|
|
5673
5693
|
}
|
|
5674
|
-
}, v = (
|
|
5694
|
+
}, v = (M = []) => (e.isUseSeq && M.unshift({
|
|
5675
5695
|
title: "序号",
|
|
5676
5696
|
dataIndex: "SEQ",
|
|
5677
5697
|
align: "center"
|
|
5678
|
-
}), e.isUseAction &&
|
|
5698
|
+
}), e.isUseAction && M.push({
|
|
5679
5699
|
title: "操作",
|
|
5680
5700
|
dataIndex: "ACTION",
|
|
5681
5701
|
width: e.actionColumnWidth
|
|
5682
|
-
}), f(
|
|
5702
|
+
}), f(M), M);
|
|
5683
5703
|
ne(() => [
|
|
5684
5704
|
e.columns,
|
|
5685
5705
|
e.isUseSeq,
|
|
@@ -5689,20 +5709,20 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5689
5709
|
e.cellBackgroundColor,
|
|
5690
5710
|
e.borderColor
|
|
5691
5711
|
], () => {
|
|
5692
|
-
|
|
5712
|
+
s.value = v(bt(e.columns));
|
|
5693
5713
|
}, {
|
|
5694
5714
|
immediate: !0,
|
|
5695
5715
|
deep: !0
|
|
5696
|
-
}), ne(() => [e.data, e.dataType], ([
|
|
5697
|
-
D === "static" && (
|
|
5716
|
+
}), ne(() => [e.data, e.dataType], ([M, D]) => {
|
|
5717
|
+
D === "static" && (r.value = M);
|
|
5698
5718
|
}, {
|
|
5699
5719
|
immediate: !0
|
|
5700
5720
|
});
|
|
5701
|
-
const y =
|
|
5702
|
-
if (Array.isArray(
|
|
5703
|
-
const D =
|
|
5721
|
+
const y = I({}), h = (M) => {
|
|
5722
|
+
if (Array.isArray(M)) {
|
|
5723
|
+
const D = M.length, V = b, J = V.length, P = {};
|
|
5704
5724
|
for (let le = 0; le < D; le++) {
|
|
5705
|
-
const fe =
|
|
5725
|
+
const fe = M[le];
|
|
5706
5726
|
for (let ye = 0; ye < J; ye++) {
|
|
5707
5727
|
const me = V[ye];
|
|
5708
5728
|
if (P[me])
|
|
@@ -5722,16 +5742,16 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5722
5742
|
y.value = te;
|
|
5723
5743
|
}
|
|
5724
5744
|
};
|
|
5725
|
-
ne(() => [e.isReverse,
|
|
5726
|
-
const
|
|
5745
|
+
ne(() => [e.isReverse, s.value, r.value], () => {
|
|
5746
|
+
const M = k(s), D = k(r);
|
|
5727
5747
|
if (h(D), e.isReverse) {
|
|
5728
|
-
const { columns: V, dataSource: J } = A(bt(
|
|
5748
|
+
const { columns: V, dataSource: J } = A(bt(M), bt(D));
|
|
5729
5749
|
l.value = V, d.value = J;
|
|
5730
5750
|
} else
|
|
5731
|
-
l.value =
|
|
5751
|
+
l.value = M, d.value = D;
|
|
5732
5752
|
});
|
|
5733
|
-
const A = (
|
|
5734
|
-
const V =
|
|
5753
|
+
const A = (M, D) => {
|
|
5754
|
+
const V = M[0], J = [{
|
|
5735
5755
|
title: V.title,
|
|
5736
5756
|
dataIndex: "col0",
|
|
5737
5757
|
key: "col0",
|
|
@@ -5747,8 +5767,8 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5747
5767
|
});
|
|
5748
5768
|
}
|
|
5749
5769
|
const P = [];
|
|
5750
|
-
for (let te = 1; te <
|
|
5751
|
-
const le =
|
|
5770
|
+
for (let te = 1; te < M.length; te++) {
|
|
5771
|
+
const le = M[te], fe = { col0: le.title };
|
|
5752
5772
|
for (let ye = 0; ye < D.length; ye++) {
|
|
5753
5773
|
const me = D[ye];
|
|
5754
5774
|
fe[`col${ye + 1}`] = me[le.dataIndex];
|
|
@@ -5759,50 +5779,50 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5759
5779
|
columns: J,
|
|
5760
5780
|
dataSource: P
|
|
5761
5781
|
};
|
|
5762
|
-
},
|
|
5782
|
+
}, x = I(""), B = Ae(e), w = I(!1), L = async (M = !0) => {
|
|
5763
5783
|
var D;
|
|
5764
5784
|
try {
|
|
5765
|
-
|
|
5785
|
+
M && (w.value = !0);
|
|
5766
5786
|
let V = {};
|
|
5767
|
-
k(
|
|
5787
|
+
k(x) && (V.orderCondition = k(x)), e.paginationShow && (V = {
|
|
5768
5788
|
pageNum: k(m),
|
|
5769
5789
|
pageSize: k(g),
|
|
5770
5790
|
layer: "1",
|
|
5771
5791
|
...V
|
|
5772
5792
|
});
|
|
5773
5793
|
const J = await B(V), { rows: P = [], total: te = 0 } = ((D = J == null ? void 0 : J.data) == null ? void 0 : D.data) || {};
|
|
5774
|
-
c.value = te, Array.isArray(P) && (
|
|
5794
|
+
c.value = te, Array.isArray(P) && (r.value = P);
|
|
5775
5795
|
} catch (V) {
|
|
5776
5796
|
console.error(V);
|
|
5777
5797
|
} finally {
|
|
5778
|
-
|
|
5798
|
+
w.value = !1;
|
|
5779
5799
|
}
|
|
5780
|
-
},
|
|
5781
|
-
if (m.value =
|
|
5800
|
+
}, C = ({ current: M }, D, V) => {
|
|
5801
|
+
if (m.value = M, V && Object.keys(V).length > 0) {
|
|
5782
5802
|
const { field: J, order: P } = V, le = {
|
|
5783
5803
|
ascend: "asc",
|
|
5784
5804
|
descend: "desc"
|
|
5785
5805
|
}[P];
|
|
5786
|
-
J != null && le != null && (
|
|
5806
|
+
J != null && le != null && (x.value = J + " " + le, m.value = 1);
|
|
5787
5807
|
}
|
|
5788
5808
|
se(!1);
|
|
5789
5809
|
}, u = q(() => {
|
|
5790
|
-
const
|
|
5810
|
+
const M = e.simple, D = [e.paginationPosition];
|
|
5791
5811
|
return e.paginationShow && {
|
|
5792
|
-
simple:
|
|
5812
|
+
simple: M,
|
|
5793
5813
|
position: D,
|
|
5794
5814
|
total: k(c),
|
|
5795
5815
|
current: k(m),
|
|
5796
5816
|
pageSize: k(g),
|
|
5797
5817
|
showSizeChanger: !1
|
|
5798
5818
|
};
|
|
5799
|
-
}), p = (
|
|
5819
|
+
}), p = (M) => +M == 1 ? "是" : +M == 0 ? "否" : M, T = (M, D) => D == null || D === "" ? M : {
|
|
5800
5820
|
money: Rt,
|
|
5801
5821
|
percentage: dt,
|
|
5802
5822
|
contrast: dt,
|
|
5803
5823
|
boolean: p
|
|
5804
|
-
}[D](
|
|
5805
|
-
const V = parseFloat(
|
|
5824
|
+
}[D](M) || "", F = (M, D) => {
|
|
5825
|
+
const V = parseFloat(M + "");
|
|
5806
5826
|
if (D !== "contrast")
|
|
5807
5827
|
return "";
|
|
5808
5828
|
switch (!0) {
|
|
@@ -5811,59 +5831,59 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5811
5831
|
case V < 0:
|
|
5812
5832
|
return "goDown";
|
|
5813
5833
|
}
|
|
5814
|
-
}, S = ue(e), { pageMode:
|
|
5834
|
+
}, S = ue(e), { pageMode: _ } = $(ce, {
|
|
5815
5835
|
pageMode: "normal"
|
|
5816
5836
|
}), { getGlobalModel: U, setGlobalModel: H } = $(de, {
|
|
5817
5837
|
// @ts-ignore
|
|
5818
5838
|
// eslint-disable-next-line no-void
|
|
5819
|
-
getGlobalModel: (
|
|
5839
|
+
getGlobalModel: (M) => {
|
|
5820
5840
|
},
|
|
5821
5841
|
// @ts-ignore
|
|
5822
5842
|
// eslint-disable-next-line no-void
|
|
5823
|
-
setGlobalModel: (
|
|
5843
|
+
setGlobalModel: (M, D) => {
|
|
5824
5844
|
}
|
|
5825
|
-
}), O = (
|
|
5826
|
-
const V =
|
|
5827
|
-
|
|
5828
|
-
},
|
|
5829
|
-
var
|
|
5845
|
+
}), O = (M = [], D = []) => {
|
|
5846
|
+
const V = M.map((J) => ({ title: J, dataIndex: J, key: J }));
|
|
5847
|
+
s.value = v(V), r.value = D;
|
|
5848
|
+
}, N = Mn(e), z = async () => {
|
|
5849
|
+
var M, D, V, J;
|
|
5830
5850
|
try {
|
|
5831
|
-
|
|
5832
|
-
const P = await
|
|
5833
|
-
O((D = (
|
|
5851
|
+
w.value = !0;
|
|
5852
|
+
const P = await N();
|
|
5853
|
+
O((D = (M = P == null ? void 0 : P.data) == null ? void 0 : M.data) == null ? void 0 : D.columns, (J = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : J.rows);
|
|
5834
5854
|
} catch (P) {
|
|
5835
5855
|
console.error(P);
|
|
5836
5856
|
} finally {
|
|
5837
|
-
|
|
5857
|
+
w.value = !1;
|
|
5838
5858
|
}
|
|
5839
|
-
}, W =
|
|
5859
|
+
}, W = I(-1), ee = (M, D) => ({
|
|
5840
5860
|
onClick: S("rowClick", () => {
|
|
5841
5861
|
const V = e.id, J = U(V);
|
|
5842
|
-
H(V, { ...J, RECORD:
|
|
5862
|
+
H(V, { ...J, RECORD: M }), W.value = D;
|
|
5843
5863
|
})
|
|
5844
|
-
}), se = (
|
|
5845
|
-
if (k(
|
|
5864
|
+
}), se = (M = !0) => {
|
|
5865
|
+
if (k(_) !== "design")
|
|
5846
5866
|
switch (e.dataType) {
|
|
5847
5867
|
case "request":
|
|
5848
|
-
M
|
|
5868
|
+
L(M);
|
|
5849
5869
|
break;
|
|
5850
5870
|
case "indicator":
|
|
5851
|
-
|
|
5871
|
+
z();
|
|
5852
5872
|
break;
|
|
5853
5873
|
}
|
|
5854
5874
|
};
|
|
5855
5875
|
ge(e, {
|
|
5856
5876
|
resetRecord: () => {
|
|
5857
|
-
const
|
|
5858
|
-
H(
|
|
5877
|
+
const M = e.id, D = U(M);
|
|
5878
|
+
H(M, { ...D, RECORD: "" });
|
|
5859
5879
|
},
|
|
5860
5880
|
refreshData: se
|
|
5861
5881
|
});
|
|
5862
5882
|
const To = q(() => {
|
|
5863
|
-
const
|
|
5883
|
+
const M = k(l), D = [];
|
|
5864
5884
|
let V = 0;
|
|
5865
|
-
for (let P = 0; P <
|
|
5866
|
-
const te =
|
|
5885
|
+
for (let P = 0; P < M.length; P++) {
|
|
5886
|
+
const te = M[P], { isCalcTotal: le } = te;
|
|
5867
5887
|
e.isUseSeq && P === 0 ? D.push({
|
|
5868
5888
|
...te,
|
|
5869
5889
|
total: "小计"
|
|
@@ -5898,7 +5918,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5898
5918
|
}), { setRequest: _o } = $(Ce, {
|
|
5899
5919
|
// @ts-ignore
|
|
5900
5920
|
// eslint-disable-next-line no-void
|
|
5901
|
-
setRequest: ({ id:
|
|
5921
|
+
setRequest: ({ id: M, sortNum: D, requestFn: V }) => {
|
|
5902
5922
|
}
|
|
5903
5923
|
});
|
|
5904
5924
|
return _o({
|
|
@@ -5913,42 +5933,42 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5913
5933
|
style: t,
|
|
5914
5934
|
customRow: ee,
|
|
5915
5935
|
pagination: u,
|
|
5916
|
-
formatFn:
|
|
5936
|
+
formatFn: T,
|
|
5917
5937
|
contrastClass: F,
|
|
5918
|
-
tableChange:
|
|
5938
|
+
tableChange: C,
|
|
5919
5939
|
summaryList: To,
|
|
5920
|
-
loading:
|
|
5921
|
-
onTouchHrefEvent: (
|
|
5922
|
-
|
|
5940
|
+
loading: w,
|
|
5941
|
+
onTouchHrefEvent: (M, D = "") => {
|
|
5942
|
+
M === "event" && window.parent.postMessage({
|
|
5923
5943
|
type: "openPage",
|
|
5924
5944
|
url: D
|
|
5925
5945
|
}, "*");
|
|
5926
5946
|
},
|
|
5927
|
-
handleHref: (
|
|
5928
|
-
handleHrefTarget: (
|
|
5929
|
-
if (
|
|
5947
|
+
handleHref: (M = "", D) => be(M, D),
|
|
5948
|
+
handleHrefTarget: (M) => {
|
|
5949
|
+
if (M !== "event")
|
|
5930
5950
|
return {
|
|
5931
5951
|
self: "_self",
|
|
5932
5952
|
blank: "_blank"
|
|
5933
|
-
}[
|
|
5953
|
+
}[M];
|
|
5934
5954
|
},
|
|
5935
5955
|
useRowIndex: W,
|
|
5936
5956
|
tableColumns: l,
|
|
5937
5957
|
tableDataSource: d,
|
|
5938
|
-
useFilterOptions: (
|
|
5939
|
-
const D =
|
|
5958
|
+
useFilterOptions: (M) => {
|
|
5959
|
+
const D = M.dataIndex;
|
|
5940
5960
|
if (typeof D == "string") {
|
|
5941
5961
|
let V = k(y)[D];
|
|
5942
|
-
const J = k(
|
|
5962
|
+
const J = k(M.filterOptionsInputValue).trim();
|
|
5943
5963
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(J.toLowerCase()) : !0), V) : [];
|
|
5944
5964
|
}
|
|
5945
5965
|
return [];
|
|
5946
5966
|
},
|
|
5947
|
-
useSetSelectedKeys: (
|
|
5948
|
-
|
|
5967
|
+
useSetSelectedKeys: (M, D) => {
|
|
5968
|
+
M(D.filterCheckboxGroupValue);
|
|
5949
5969
|
},
|
|
5950
|
-
onResetFilter: (
|
|
5951
|
-
|
|
5970
|
+
onResetFilter: (M, D) => {
|
|
5971
|
+
M({ confirm: !0 }), D.filterOptionsInputValue = "", D.filterCheckboxGroupValue = [];
|
|
5952
5972
|
},
|
|
5953
5973
|
onSearchFilterOptions: () => {
|
|
5954
5974
|
}
|
|
@@ -5960,7 +5980,7 @@ const hs = /* @__PURE__ */ dn(" 搜索 "), ys = /* @__PURE__ */ dn(" 重置 "),
|
|
|
5960
5980
|
class: "action-list"
|
|
5961
5981
|
}, ps = ["href", "target", "onClick"];
|
|
5962
5982
|
function Cs(e, n, t, o, a, i) {
|
|
5963
|
-
const
|
|
5983
|
+
const s = Z("a-input"), r = Z("a-checkbox-group"), l = Z("a-button"), d = Z("a-table-summary-cell"), c = Z("a-table-summary-row"), m = Z("a-table-summary"), g = Z("a-table"), b = Z("skeleton");
|
|
5964
5984
|
return E(), R("div", {
|
|
5965
5985
|
class: "ecan-table",
|
|
5966
5986
|
style: G(e.style)
|
|
@@ -5988,19 +6008,19 @@ function Cs(e, n, t, o, a, i) {
|
|
|
5988
6008
|
height: e.filterDropdownHeight
|
|
5989
6009
|
})
|
|
5990
6010
|
}, [
|
|
5991
|
-
j(
|
|
6011
|
+
j(s, {
|
|
5992
6012
|
value: f.filterOptionsInputValue,
|
|
5993
|
-
"onUpdate:value": (
|
|
6013
|
+
"onUpdate:value": (x) => f.filterOptionsInputValue = x,
|
|
5994
6014
|
placeholder: "请输入关键字",
|
|
5995
6015
|
class: "filter-input",
|
|
5996
6016
|
onChange: e.onSearchFilterOptions
|
|
5997
6017
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
5998
|
-
j(
|
|
6018
|
+
j(r, {
|
|
5999
6019
|
value: f.filterCheckboxGroupValue,
|
|
6000
|
-
"onUpdate:value": (
|
|
6020
|
+
"onUpdate:value": (x) => f.filterCheckboxGroupValue = x,
|
|
6001
6021
|
class: "filter-checkbox",
|
|
6002
6022
|
options: e.useFilterOptions(f),
|
|
6003
|
-
onChange: (
|
|
6023
|
+
onChange: (x) => e.useSetSelectedKeys(y, f)
|
|
6004
6024
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6005
6025
|
X("div", null, [
|
|
6006
6026
|
j(l, {
|
|
@@ -6017,7 +6037,7 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6017
6037
|
j(l, {
|
|
6018
6038
|
size: "small",
|
|
6019
6039
|
style: { width: "90px" },
|
|
6020
|
-
onClick: (
|
|
6040
|
+
onClick: (x) => e.onResetFilter(A, f)
|
|
6021
6041
|
}, {
|
|
6022
6042
|
default: Y(() => [
|
|
6023
6043
|
ys
|
|
@@ -6030,9 +6050,9 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6030
6050
|
bodyCell: Y(({ column: f, index: v, text: y, record: h }) => [
|
|
6031
6051
|
f.dataIndex === "SEQ" ? (E(), R("span", bs, he(v + 1), 1)) : pe("", !0),
|
|
6032
6052
|
f.dataIndex === "ACTION" ? (E(), R("div", vs, [
|
|
6033
|
-
(E(!0), R(Le, null, Ie(e.actionList, (A,
|
|
6053
|
+
(E(!0), R(Le, null, Ie(e.actionList, (A, x) => (E(), R("div", {
|
|
6034
6054
|
class: "action",
|
|
6035
|
-
key:
|
|
6055
|
+
key: x
|
|
6036
6056
|
}, [
|
|
6037
6057
|
X("a", {
|
|
6038
6058
|
href: e.handleHref(A.href, h),
|
|
@@ -6147,19 +6167,19 @@ $e([
|
|
|
6147
6167
|
const ks = Q({
|
|
6148
6168
|
name: "EcanMap",
|
|
6149
6169
|
components: {
|
|
6150
|
-
Echarts:
|
|
6170
|
+
Echarts: ze
|
|
6151
6171
|
},
|
|
6152
6172
|
props: {
|
|
6153
6173
|
...xo
|
|
6154
6174
|
},
|
|
6155
6175
|
setup(e) {
|
|
6156
|
-
const n = ie(e, ["backgroundImage"]), t =
|
|
6176
|
+
const n = ie(e, ["backgroundImage"]), t = I(), o = q(() => Re(e.geoBackgroundImage)), a = q(() => Re(e.backgroundImage)), i = q(() => e.geoBackgroundImage ? {
|
|
6157
6177
|
image: k(t),
|
|
6158
6178
|
repeat: e.geoBackgroundImageRepeat
|
|
6159
|
-
} : e.geoItemStyleAreaColor),
|
|
6179
|
+
} : e.geoItemStyleAreaColor), s = q(() => {
|
|
6160
6180
|
const c = e.symbolImage;
|
|
6161
6181
|
return e.symbolImage ? "image://" + Re(c) : "circle";
|
|
6162
|
-
}),
|
|
6182
|
+
}), r = q(() => {
|
|
6163
6183
|
const c = e.geoCenter;
|
|
6164
6184
|
let m;
|
|
6165
6185
|
return typeof c == "string" && c !== "" && (m = c.split(",")), {
|
|
@@ -6222,7 +6242,7 @@ const ks = Q({
|
|
|
6222
6242
|
itemStyle: {
|
|
6223
6243
|
color: e.itemStyleColor
|
|
6224
6244
|
},
|
|
6225
|
-
symbol: k(
|
|
6245
|
+
symbol: k(s),
|
|
6226
6246
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6227
6247
|
label: {
|
|
6228
6248
|
show: e.labelShow,
|
|
@@ -6241,7 +6261,7 @@ const ks = Q({
|
|
|
6241
6261
|
}
|
|
6242
6262
|
]
|
|
6243
6263
|
};
|
|
6244
|
-
}), l =
|
|
6264
|
+
}), l = I(!1), d = async () => {
|
|
6245
6265
|
var m;
|
|
6246
6266
|
const c = e.mapJson;
|
|
6247
6267
|
if (c != null && c.path) {
|
|
@@ -6256,7 +6276,7 @@ const ks = Q({
|
|
|
6256
6276
|
immediate: !0,
|
|
6257
6277
|
deep: !0
|
|
6258
6278
|
}), {
|
|
6259
|
-
option:
|
|
6279
|
+
option: r,
|
|
6260
6280
|
style: n,
|
|
6261
6281
|
isLoadedData: l,
|
|
6262
6282
|
geoBackgroundImageRef: t,
|
|
@@ -6266,12 +6286,12 @@ const ks = Q({
|
|
|
6266
6286
|
});
|
|
6267
6287
|
const As = ["src"];
|
|
6268
6288
|
function xs(e, n, t, o, a, i) {
|
|
6269
|
-
const
|
|
6289
|
+
const s = Z("echarts");
|
|
6270
6290
|
return E(), R("div", {
|
|
6271
6291
|
class: "ecan-map",
|
|
6272
6292
|
style: G(e.style)
|
|
6273
6293
|
}, [
|
|
6274
|
-
e.isLoadedData ? (E(), Oe(
|
|
6294
|
+
e.isLoadedData ? (E(), Oe(s, {
|
|
6275
6295
|
key: 0,
|
|
6276
6296
|
option: e.option,
|
|
6277
6297
|
"update-options": { notMerge: !0 },
|
|
@@ -6281,7 +6301,7 @@ function xs(e, n, t, o, a, i) {
|
|
|
6281
6301
|
ref: "geoBackgroundImageRef",
|
|
6282
6302
|
src: e.myGeoBackgroundImage
|
|
6283
6303
|
}, null, 8, As), [
|
|
6284
|
-
[
|
|
6304
|
+
[zo, !1]
|
|
6285
6305
|
])
|
|
6286
6306
|
], 4);
|
|
6287
6307
|
}
|
|
@@ -6304,7 +6324,7 @@ const Ts = /* @__PURE__ */ K(ks, [["render", xs], ["__scopeId", "data-v-1eea2b3c
|
|
|
6304
6324
|
EcanPageConfig: Ol,
|
|
6305
6325
|
EcanPie: Xi,
|
|
6306
6326
|
EcanProportion: vi,
|
|
6307
|
-
EcanProviderConfig:
|
|
6327
|
+
EcanProviderConfig: Nl,
|
|
6308
6328
|
EcanRangePicker: $i,
|
|
6309
6329
|
EcanScatter: gr,
|
|
6310
6330
|
EcanScrollText: Yl,
|
|
@@ -6345,7 +6365,7 @@ const Ts = /* @__PURE__ */ K(ks, [["render", xs], ["__scopeId", "data-v-1eea2b3c
|
|
|
6345
6365
|
lineProps: to,
|
|
6346
6366
|
listComponentProps: $n,
|
|
6347
6367
|
listEvents: ti,
|
|
6348
|
-
listProps:
|
|
6368
|
+
listProps: Nn,
|
|
6349
6369
|
mapComponentProps: xo,
|
|
6350
6370
|
mapProps: Ao,
|
|
6351
6371
|
modalComponentProps: ho,
|
|
@@ -6379,7 +6399,7 @@ const Ts = /* @__PURE__ */ K(ks, [["render", xs], ["__scopeId", "data-v-1eea2b3c
|
|
|
6379
6399
|
textComponentProps: Rn,
|
|
6380
6400
|
textEvents: $l,
|
|
6381
6401
|
textProps: Fn,
|
|
6382
|
-
timeDisplayComponentProps:
|
|
6402
|
+
timeDisplayComponentProps: zn,
|
|
6383
6403
|
timeDisplayProps: Dn
|
|
6384
6404
|
}, Symbol.toStringTag, { value: "Module" })), Ls = (e) => {
|
|
6385
6405
|
Object.keys(tn).forEach((n) => {
|
|
@@ -6407,7 +6427,7 @@ export {
|
|
|
6407
6427
|
Ol as EcanPageConfig,
|
|
6408
6428
|
Xi as EcanPie,
|
|
6409
6429
|
vi as EcanProportion,
|
|
6410
|
-
|
|
6430
|
+
Nl as EcanProviderConfig,
|
|
6411
6431
|
$i as EcanRangePicker,
|
|
6412
6432
|
gr as EcanScatter,
|
|
6413
6433
|
Yl as EcanScrollText,
|
|
@@ -6449,7 +6469,7 @@ export {
|
|
|
6449
6469
|
to as lineProps,
|
|
6450
6470
|
$n as listComponentProps,
|
|
6451
6471
|
ti as listEvents,
|
|
6452
|
-
|
|
6472
|
+
Nn as listProps,
|
|
6453
6473
|
xo as mapComponentProps,
|
|
6454
6474
|
Ao as mapProps,
|
|
6455
6475
|
ho as modalComponentProps,
|
|
@@ -6483,7 +6503,7 @@ export {
|
|
|
6483
6503
|
Rn as textComponentProps,
|
|
6484
6504
|
$l as textEvents,
|
|
6485
6505
|
Fn as textProps,
|
|
6486
|
-
|
|
6506
|
+
zn as timeDisplayComponentProps,
|
|
6487
6507
|
Dn as timeDisplayProps
|
|
6488
6508
|
};
|
|
6489
6509
|
//# sourceMappingURL=index.es.js.map
|