@ecan-bi/datav 1.1.25 → 1.1.26
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 +1047 -1022
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/container/modal/Modal.vue.d.ts +5 -180
- package/types/container/modal/index.d.ts +5 -180
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as
|
|
3
|
-
import { throttle as Rn, init as Dn, use as
|
|
4
|
-
import { addListener as
|
|
5
|
-
import { Spin as Pn, Skeleton as Bn, message as We, Progress as Gn, Input as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.26 */
|
|
2
|
+
import { watch as ee, inject as z, computed as B, unref as A, watchEffect as lo, defineComponent as Z, shallowRef as ht, toRefs as Tn, onMounted as Ze, onUnmounted as ut, h as st, nextTick as Je, createVNode as G, resolveComponent as q, openBlock as E, createElementBlock as R, createBlock as Ie, renderSlot as ft, withCtx as V, ref as L, normalizeStyle as P, createCommentVNode as be, provide as De, onBeforeUnmount as Nt, toDisplayString as me, Fragment as xe, renderList as Te, createElementVNode as K, normalizeClass as At, pushScopeId as io, popScopeId as ro, createSlots as _n, resolveDynamicComponent as Ln, mergeProps as In, withModifiers as Mn, reactive as En, createTextVNode as so, withDirectives as Fn, vShow as On } from "vue";
|
|
3
|
+
import { throttle as Rn, init as Dn, use as Ne, registerMap as zn } from "echarts/core";
|
|
4
|
+
import { addListener as Nn, removeListener as $n } from "resize-detector";
|
|
5
|
+
import { Spin as Pn, Skeleton as Bn, message as We, Progress as Gn, Input as co, DatePicker as Un, Select as qn, RangePicker as jn, Button as Wn, CheckboxGroup as uo, Modal as Se, Table as Vn, TableSummary as Hn, TableSummaryRow as Zn, TableSummaryCell as Jn } from "ant-design-vue";
|
|
6
6
|
import "ant-design-vue/es/spin/style";
|
|
7
7
|
import "ant-design-vue/es/skeleton/style";
|
|
8
|
-
import { mapValues as Yn, without as Qn, pick as Kn, debounce as
|
|
9
|
-
import
|
|
8
|
+
import { mapValues as Yn, without as Qn, pick as Kn, debounce as Lt, cloneDeep as yt } from "lodash-es";
|
|
9
|
+
import It from "axios";
|
|
10
10
|
import Xn from "mitt";
|
|
11
11
|
import _e from "dayjs";
|
|
12
12
|
import "ant-design-vue/es/progress/style";
|
|
@@ -18,7 +18,7 @@ import "ant-design-vue/es/button/style";
|
|
|
18
18
|
import "ant-design-vue/es/checkbox/style";
|
|
19
19
|
import { CanvasRenderer as $e } from "echarts/renderers";
|
|
20
20
|
import { PieChart as ea, LineChart as mo, BarChart as go, ScatterChart as ho, MapChart as ta } from "echarts/charts";
|
|
21
|
-
import { TitleComponent as
|
|
21
|
+
import { TitleComponent as Qe, ToolboxComponent as Ke, TooltipComponent as Mt, LegendComponent as Xe, DatasetComponent as yo, VisualMapComponent as oa, GraphicComponent as na } from "echarts/components";
|
|
22
22
|
import * as aa from "echarts";
|
|
23
23
|
import "ant-design-vue/es/modal/style";
|
|
24
24
|
import "ant-design-vue/es/table/style";
|
|
@@ -58,10 +58,10 @@ function ra(e, o) {
|
|
|
58
58
|
}
|
|
59
59
|
function sa(e, o, t) {
|
|
60
60
|
let n = null;
|
|
61
|
-
|
|
61
|
+
ee([t, e, o], ([a, i, r], s, l) => {
|
|
62
62
|
a && i && r && (n = Rn(() => {
|
|
63
63
|
i.resize();
|
|
64
|
-
}, 100),
|
|
64
|
+
}, 100), Nn(a, n)), l(() => {
|
|
65
65
|
n && a && $n(a, n);
|
|
66
66
|
});
|
|
67
67
|
});
|
|
@@ -70,11 +70,11 @@ const ca = {
|
|
|
70
70
|
autoresize: Boolean
|
|
71
71
|
}, da = "ecLoadingOptions";
|
|
72
72
|
function ua(e, o, t) {
|
|
73
|
-
const n = z(da, {}), a =
|
|
73
|
+
const n = z(da, {}), a = B(() => ({
|
|
74
74
|
...A(n),
|
|
75
75
|
...t == null ? void 0 : t.value
|
|
76
76
|
}));
|
|
77
|
-
|
|
77
|
+
lo(() => {
|
|
78
78
|
const i = e.value;
|
|
79
79
|
i && (o.value ? i.showLoading(a.value) : i.hideLoading());
|
|
80
80
|
});
|
|
@@ -113,20 +113,20 @@ const ya = "x-vue-echarts", ba = "ecTheme", va = "ecInitOptions", pa = "ecUpdate
|
|
|
113
113
|
), l = z(
|
|
114
114
|
pa,
|
|
115
115
|
null
|
|
116
|
-
), { autoresize: d, manualUpdate: c, loading: f, loadingOptions: g } = Tn(e), y =
|
|
116
|
+
), { autoresize: d, manualUpdate: c, loading: f, loadingOptions: g } = Tn(e), y = B(
|
|
117
117
|
() => i.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
118
|
-
), m =
|
|
118
|
+
), m = B(() => e.theme || A(r) || {}), S = B(
|
|
119
119
|
() => e.initOptions || A(s) || {}
|
|
120
|
-
),
|
|
120
|
+
), b = B(
|
|
121
121
|
() => e.updateOptions || A(l) || {}
|
|
122
|
-
), h =
|
|
123
|
-
function x(
|
|
122
|
+
), h = B(() => ha(o));
|
|
123
|
+
function x(k) {
|
|
124
124
|
if (a.value || !n.value)
|
|
125
125
|
return;
|
|
126
126
|
const u = a.value = Dn(
|
|
127
127
|
n.value,
|
|
128
128
|
m.value,
|
|
129
|
-
|
|
129
|
+
S.value
|
|
130
130
|
);
|
|
131
131
|
e.group && (u.group = e.group);
|
|
132
132
|
let p = t;
|
|
@@ -137,7 +137,7 @@ const ya = "x-vue-echarts", ba = "ecTheme", va = "ecInitOptions", pa = "ecUpdate
|
|
|
137
137
|
const T = p[C];
|
|
138
138
|
T && (C.indexOf("zr:") === 0 ? u.getZr().on(C.slice(3).toLowerCase(), T) : u.on(C.toLowerCase(), T));
|
|
139
139
|
});
|
|
140
|
-
function
|
|
140
|
+
function v() {
|
|
141
141
|
if (u && !u.isDisposed())
|
|
142
142
|
try {
|
|
143
143
|
u.resize();
|
|
@@ -148,26 +148,26 @@ const ya = "x-vue-echarts", ba = "ecTheme", va = "ecInitOptions", pa = "ecUpdate
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function _() {
|
|
151
|
-
u.setOption(
|
|
151
|
+
u.setOption(k || y.value, b.value);
|
|
152
152
|
}
|
|
153
|
-
d.value ?
|
|
154
|
-
|
|
153
|
+
d.value ? Je(() => {
|
|
154
|
+
v(), _();
|
|
155
155
|
}) : _();
|
|
156
156
|
}
|
|
157
|
-
function k
|
|
158
|
-
e.manualUpdate && (i.value =
|
|
157
|
+
function w(k, u) {
|
|
158
|
+
e.manualUpdate && (i.value = k), a.value ? a.value.setOption(k, u || {}) : x(k);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function $() {
|
|
161
161
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
162
162
|
}
|
|
163
163
|
let I = null;
|
|
164
|
-
|
|
164
|
+
ee(
|
|
165
165
|
c,
|
|
166
|
-
(
|
|
167
|
-
typeof I == "function" && (I(), I = null),
|
|
166
|
+
(k) => {
|
|
167
|
+
typeof I == "function" && (I(), I = null), k || (I = ee(
|
|
168
168
|
() => e.option,
|
|
169
169
|
(u) => {
|
|
170
|
-
u && (a.value ? a.value.setOption(u,
|
|
170
|
+
u && (a.value ? a.value.setOption(u, b.value) : x());
|
|
171
171
|
},
|
|
172
172
|
{ deep: !0 }
|
|
173
173
|
));
|
|
@@ -175,31 +175,31 @@ const ya = "x-vue-echarts", ba = "ecTheme", va = "ecInitOptions", pa = "ecUpdate
|
|
|
175
175
|
{
|
|
176
176
|
immediate: !0
|
|
177
177
|
}
|
|
178
|
-
),
|
|
179
|
-
[m,
|
|
178
|
+
), ee(
|
|
179
|
+
[m, S],
|
|
180
180
|
() => {
|
|
181
|
-
|
|
181
|
+
$(), x();
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
deep: !0
|
|
185
185
|
}
|
|
186
|
-
),
|
|
186
|
+
), lo(() => {
|
|
187
187
|
e.group && a.value && (a.value.group = e.group);
|
|
188
188
|
});
|
|
189
|
-
const
|
|
189
|
+
const F = ra(a, x);
|
|
190
190
|
return ua(a, f, g), sa(a, d, n), Ze(() => {
|
|
191
191
|
e.option && x();
|
|
192
|
-
}),
|
|
192
|
+
}), ut($), {
|
|
193
193
|
chart: a,
|
|
194
194
|
root: n,
|
|
195
|
-
setOption:
|
|
195
|
+
setOption: w,
|
|
196
196
|
nonEventAttrs: h,
|
|
197
|
-
...
|
|
197
|
+
...F
|
|
198
198
|
};
|
|
199
199
|
},
|
|
200
200
|
render() {
|
|
201
201
|
const e = { ...this.nonEventAttrs };
|
|
202
|
-
return e.ref = "root", e.class = e.class ? ["echarts"].concat(e.class) : "echarts",
|
|
202
|
+
return e.ref = "root", e.class = e.class ? ["echarts"].concat(e.class) : "echarts", st(ya, e);
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
function pe(e, o) {
|
|
@@ -213,16 +213,16 @@ function Ca(e) {
|
|
|
213
213
|
function Sa(e) {
|
|
214
214
|
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function wa(e) {
|
|
217
217
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function at(e) {
|
|
220
220
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
221
221
|
}
|
|
222
222
|
function bt(e) {
|
|
223
223
|
return e.length === 1 ? "0" + e : String(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function ka(e, o, t) {
|
|
226
226
|
return {
|
|
227
227
|
r: pe(e, 255) * 255,
|
|
228
228
|
g: pe(o, 255) * 255,
|
|
@@ -276,13 +276,13 @@ function _a(e, o, t, n) {
|
|
|
276
276
|
];
|
|
277
277
|
return n && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function $t(e) {
|
|
280
280
|
return ye(e) / 255;
|
|
281
281
|
}
|
|
282
282
|
function ye(e) {
|
|
283
283
|
return parseInt(e, 16);
|
|
284
284
|
}
|
|
285
|
-
var
|
|
285
|
+
var Pt = {
|
|
286
286
|
aliceblue: "#f0f8ff",
|
|
287
287
|
antiquewhite: "#faebd7",
|
|
288
288
|
aqua: "#00ffff",
|
|
@@ -434,7 +434,7 @@ var $t = {
|
|
|
434
434
|
};
|
|
435
435
|
function qe(e) {
|
|
436
436
|
var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, i = null, r = !1, s = !1;
|
|
437
|
-
return typeof e == "string" && (e = Ma(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (o =
|
|
437
|
+
return typeof e == "string" && (e = Ma(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (o = ka(e.r, e.g, e.b), r = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(e.h) && Ae(e.s) && Ae(e.v) ? (n = at(e.s), a = at(e.v), o = Ta(e.h, n, a), r = !0, s = "hsv") : Ae(e.h) && Ae(e.s) && Ae(e.l) && (n = at(e.s), i = at(e.l), o = Aa(e.h, n, i), r = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = wa(t), {
|
|
438
438
|
ok: r,
|
|
439
439
|
format: e.format || s,
|
|
440
440
|
r: Math.min(255, Math.max(o.r, 0)),
|
|
@@ -460,8 +460,8 @@ function Ma(e) {
|
|
|
460
460
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
461
461
|
return !1;
|
|
462
462
|
var o = !1;
|
|
463
|
-
if (
|
|
464
|
-
e =
|
|
463
|
+
if (Pt[e])
|
|
464
|
+
e = Pt[e], o = !0;
|
|
465
465
|
else if (e === "transparent")
|
|
466
466
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
467
467
|
var t = Ce.rgb.exec(e);
|
|
@@ -469,7 +469,7 @@ function Ma(e) {
|
|
|
469
469
|
r: ye(t[1]),
|
|
470
470
|
g: ye(t[2]),
|
|
471
471
|
b: ye(t[3]),
|
|
472
|
-
a:
|
|
472
|
+
a: $t(t[4]),
|
|
473
473
|
format: o ? "name" : "hex8"
|
|
474
474
|
} : (t = Ce.hex6.exec(e), t ? {
|
|
475
475
|
r: ye(t[1]),
|
|
@@ -480,7 +480,7 @@ function Ma(e) {
|
|
|
480
480
|
r: ye(t[1] + t[1]),
|
|
481
481
|
g: ye(t[2] + t[2]),
|
|
482
482
|
b: ye(t[3] + t[3]),
|
|
483
|
-
a:
|
|
483
|
+
a: $t(t[4] + t[4]),
|
|
484
484
|
format: o ? "name" : "hex8"
|
|
485
485
|
} : (t = Ce.hex3.exec(e), t ? {
|
|
486
486
|
r: ye(t[1] + t[1]),
|
|
@@ -492,7 +492,7 @@ function Ma(e) {
|
|
|
492
492
|
function Ae(e) {
|
|
493
493
|
return Boolean(Ce.CSS_UNIT.exec(String(e)));
|
|
494
494
|
}
|
|
495
|
-
var
|
|
495
|
+
var lt = 2, Bt = 0.16, Ea = 0.05, Fa = 0.05, Oa = 0.15, bo = 5, vo = 4, Ra = [{
|
|
496
496
|
index: 7,
|
|
497
497
|
opacity: 0.15
|
|
498
498
|
}, {
|
|
@@ -523,7 +523,7 @@ var at = 2, Pt = 0.16, Ea = 0.05, Fa = 0.05, Oa = 0.15, bo = 5, vo = 4, Ra = [{
|
|
|
523
523
|
index: 1,
|
|
524
524
|
opacity: 0.98
|
|
525
525
|
}];
|
|
526
|
-
function
|
|
526
|
+
function Gt(e) {
|
|
527
527
|
var o = e.r, t = e.g, n = e.b, a = xa(o, t, n);
|
|
528
528
|
return {
|
|
529
529
|
h: a.h * 360,
|
|
@@ -531,7 +531,7 @@ function Bt(e) {
|
|
|
531
531
|
v: a.v
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function it(e) {
|
|
535
535
|
var o = e.r, t = e.g, n = e.b;
|
|
536
536
|
return "#".concat(_a(o, t, n, !1));
|
|
537
537
|
}
|
|
@@ -543,40 +543,40 @@ function Da(e, o, t) {
|
|
|
543
543
|
};
|
|
544
544
|
return a;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Ut(e, o, t) {
|
|
547
547
|
var n;
|
|
548
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = t ? Math.round(e.h) -
|
|
548
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = t ? Math.round(e.h) - lt * o : Math.round(e.h) + lt * o : n = t ? Math.round(e.h) + lt * o : Math.round(e.h) - lt * o, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function qt(e, o, t) {
|
|
551
551
|
if (e.h === 0 && e.s === 0)
|
|
552
552
|
return e.s;
|
|
553
553
|
var n;
|
|
554
|
-
return t ? n = e.s -
|
|
554
|
+
return t ? n = e.s - Bt * o : o === vo ? n = e.s + Bt : n = e.s + Ea * o, n > 1 && (n = 1), t && o === bo && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function jt(e, o, t) {
|
|
557
557
|
var n;
|
|
558
558
|
return t ? n = e.v + Fa * o : n = e.v - Oa * o, n > 1 && (n = 1), Number(n.toFixed(2));
|
|
559
559
|
}
|
|
560
560
|
function xt(e) {
|
|
561
561
|
for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = qe(e), a = bo; a > 0; a -= 1) {
|
|
562
|
-
var i =
|
|
563
|
-
h:
|
|
564
|
-
s:
|
|
565
|
-
v:
|
|
562
|
+
var i = Gt(n), r = it(qe({
|
|
563
|
+
h: Ut(i, a, !0),
|
|
564
|
+
s: qt(i, a, !0),
|
|
565
|
+
v: jt(i, a, !0)
|
|
566
566
|
}));
|
|
567
567
|
t.push(r);
|
|
568
568
|
}
|
|
569
|
-
t.push(
|
|
569
|
+
t.push(it(n));
|
|
570
570
|
for (var s = 1; s <= vo; s += 1) {
|
|
571
|
-
var l =
|
|
572
|
-
h:
|
|
573
|
-
s:
|
|
574
|
-
v:
|
|
571
|
+
var l = Gt(n), d = it(qe({
|
|
572
|
+
h: Ut(l, s),
|
|
573
|
+
s: qt(l, s),
|
|
574
|
+
v: jt(l, s)
|
|
575
575
|
}));
|
|
576
576
|
t.push(d);
|
|
577
577
|
}
|
|
578
578
|
return o.theme === "dark" ? Ra.map(function(c) {
|
|
579
|
-
var f = c.index, g = c.opacity, y =
|
|
579
|
+
var f = c.index, g = c.opacity, y = it(Da(qe(o.backgroundColor || "#141414"), qe(t[f]), g * 100));
|
|
580
580
|
return y;
|
|
581
581
|
}) : t;
|
|
582
582
|
}
|
|
@@ -594,27 +594,27 @@ var St = {
|
|
|
594
594
|
purple: "#722ED1",
|
|
595
595
|
magenta: "#EB2F96",
|
|
596
596
|
grey: "#666666"
|
|
597
|
-
},
|
|
597
|
+
}, wt = {}, kt = {};
|
|
598
598
|
Object.keys(St).forEach(function(e) {
|
|
599
|
-
|
|
599
|
+
wt[e] = xt(St[e]), wt[e].primary = wt[e][5], kt[e] = xt(St[e], {
|
|
600
600
|
theme: "dark",
|
|
601
601
|
backgroundColor: "#141414"
|
|
602
|
-
}),
|
|
602
|
+
}), kt[e].primary = kt[e][5];
|
|
603
603
|
});
|
|
604
|
-
var
|
|
605
|
-
function
|
|
604
|
+
var Wt = [], je = [], za = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
605
|
+
function Na() {
|
|
606
606
|
var e = document.createElement("style");
|
|
607
607
|
return e.setAttribute("type", "text/css"), e;
|
|
608
608
|
}
|
|
609
609
|
function $a(e, o) {
|
|
610
610
|
if (o = o || {}, e === void 0)
|
|
611
|
-
throw new Error(
|
|
612
|
-
var t = o.prepend === !0 ? "prepend" : "append", n = o.container !== void 0 ? o.container : document.querySelector("head"), a =
|
|
613
|
-
a === -1 && (a =
|
|
611
|
+
throw new Error(za);
|
|
612
|
+
var t = o.prepend === !0 ? "prepend" : "append", n = o.container !== void 0 ? o.container : document.querySelector("head"), a = Wt.indexOf(n);
|
|
613
|
+
a === -1 && (a = Wt.push(n) - 1, je[a] = {});
|
|
614
614
|
var i;
|
|
615
|
-
return je[a] !== void 0 && je[a][t] !== void 0 ? i = je[a][t] : (i = je[a][t] =
|
|
615
|
+
return je[a] !== void 0 && je[a][t] !== void 0 ? i = je[a][t] : (i = je[a][t] = Na(), t === "prepend" ? n.insertBefore(i, n.childNodes[0]) : n.appendChild(i)), e.charCodeAt(0) === 65279 && (e = e.substr(1, e.length)), i.styleSheet ? i.styleSheet.cssText += e : i.textContent += e, i;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Vt(e) {
|
|
618
618
|
for (var o = 1; o < arguments.length; o++) {
|
|
619
619
|
var t = arguments[o] != null ? Object(arguments[o]) : {}, n = Object.keys(t);
|
|
620
620
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
@@ -634,15 +634,15 @@ function Ba(e, o) {
|
|
|
634
634
|
function Ga(e, o) {
|
|
635
635
|
Ba(e, "[@ant-design/icons-vue] ".concat(o));
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Ht(e) {
|
|
638
638
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
639
639
|
}
|
|
640
640
|
function Tt(e, o, t) {
|
|
641
|
-
return t ?
|
|
641
|
+
return t ? st(e.tag, Vt({
|
|
642
642
|
key: o
|
|
643
643
|
}, t, e.attrs), (e.children || []).map(function(n, a) {
|
|
644
644
|
return Tt(n, "".concat(o, "-").concat(e.tag, "-").concat(a));
|
|
645
|
-
})) :
|
|
645
|
+
})) : st(e.tag, Vt({
|
|
646
646
|
key: o
|
|
647
647
|
}, e.attrs), (e.children || []).map(function(n, a) {
|
|
648
648
|
return Tt(n, "".concat(o, "-").concat(e.tag, "-").concat(a));
|
|
@@ -708,12 +708,12 @@ var Ua = `
|
|
|
708
708
|
transform: rotate(360deg);
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
`,
|
|
711
|
+
`, Zt = !1, qa = function() {
|
|
712
712
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ua;
|
|
713
|
-
|
|
714
|
-
|
|
713
|
+
Je(function() {
|
|
714
|
+
Zt || (typeof window < "u" && window.document && window.document.documentElement && $a(o, {
|
|
715
715
|
prepend: !0
|
|
716
|
-
}),
|
|
716
|
+
}), Zt = !0);
|
|
717
717
|
});
|
|
718
718
|
}, ja = ["icon", "primaryColor", "secondaryColor"];
|
|
719
719
|
function Wa(e, o) {
|
|
@@ -735,7 +735,7 @@ function Va(e, o) {
|
|
|
735
735
|
a = n[i], !(o.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
736
736
|
return t;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function rt(e) {
|
|
739
739
|
for (var o = 1; o < arguments.length; o++) {
|
|
740
740
|
var t = arguments[o] != null ? Object(arguments[o]) : {}, n = Object.keys(t);
|
|
741
741
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
@@ -759,19 +759,19 @@ function Za(e) {
|
|
|
759
759
|
He.primaryColor = o, He.secondaryColor = t || po(o), He.calculated = !!t;
|
|
760
760
|
}
|
|
761
761
|
function Ja() {
|
|
762
|
-
return
|
|
762
|
+
return rt({}, He);
|
|
763
763
|
}
|
|
764
764
|
var Pe = function(o, t) {
|
|
765
|
-
var n =
|
|
765
|
+
var n = rt({}, o, t.attrs), a = n.icon, i = n.primaryColor, r = n.secondaryColor, s = Wa(n, ja), l = He;
|
|
766
766
|
if (i && (l = {
|
|
767
767
|
primaryColor: i,
|
|
768
768
|
secondaryColor: r || po(i)
|
|
769
|
-
}), qa(), Ga(
|
|
769
|
+
}), qa(), Ga(Ht(a), "icon should be icon definiton, but got ".concat(a)), !Ht(a))
|
|
770
770
|
return null;
|
|
771
771
|
var d = a;
|
|
772
|
-
return d && typeof d.icon == "function" && (d =
|
|
772
|
+
return d && typeof d.icon == "function" && (d = rt({}, d, {
|
|
773
773
|
icon: d.icon(l.primaryColor, l.secondaryColor)
|
|
774
|
-
})), Tt(d.icon, "svg-".concat(d.name),
|
|
774
|
+
})), Tt(d.icon, "svg-".concat(d.name), rt({}, s, {
|
|
775
775
|
"data-icon": d.name,
|
|
776
776
|
width: "1em",
|
|
777
777
|
height: "1em",
|
|
@@ -789,7 +789,7 @@ Pe.inheritAttrs = !1;
|
|
|
789
789
|
Pe.displayName = "IconBase";
|
|
790
790
|
Pe.getTwoToneColors = Ja;
|
|
791
791
|
Pe.setTwoToneColors = Za;
|
|
792
|
-
const
|
|
792
|
+
const Et = Pe;
|
|
793
793
|
function Ya(e, o) {
|
|
794
794
|
return el(e) || Xa(e, o) || Ka(e, o) || Qa();
|
|
795
795
|
}
|
|
@@ -800,15 +800,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
800
800
|
function Ka(e, o) {
|
|
801
801
|
if (e) {
|
|
802
802
|
if (typeof e == "string")
|
|
803
|
-
return
|
|
803
|
+
return Jt(e, o);
|
|
804
804
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
805
805
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
806
806
|
return Array.from(e);
|
|
807
807
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
808
|
-
return
|
|
808
|
+
return Jt(e, o);
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Jt(e, o) {
|
|
812
812
|
(o == null || o > e.length) && (o = e.length);
|
|
813
813
|
for (var t = 0, n = new Array(o); t < o; t++)
|
|
814
814
|
n[t] = e[t];
|
|
@@ -840,13 +840,13 @@ function el(e) {
|
|
|
840
840
|
}
|
|
841
841
|
function So(e) {
|
|
842
842
|
var o = Co(e), t = Ya(o, 2), n = t[0], a = t[1];
|
|
843
|
-
return
|
|
843
|
+
return Et.setTwoToneColors({
|
|
844
844
|
primaryColor: n,
|
|
845
845
|
secondaryColor: a
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
848
|
function tl() {
|
|
849
|
-
var e =
|
|
849
|
+
var e = Et.getTwoToneColors();
|
|
850
850
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
851
851
|
}
|
|
852
852
|
var ol = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
@@ -860,15 +860,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
860
860
|
function ll(e, o) {
|
|
861
861
|
if (e) {
|
|
862
862
|
if (typeof e == "string")
|
|
863
|
-
return
|
|
863
|
+
return Yt(e, o);
|
|
864
864
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
865
865
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
866
866
|
return Array.from(e);
|
|
867
867
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
868
|
-
return
|
|
868
|
+
return Yt(e, o);
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Yt(e, o) {
|
|
872
872
|
(o == null || o > e.length) && (o = e.length);
|
|
873
873
|
for (var t = 0, n = new Array(o); t < o; t++)
|
|
874
874
|
n[t] = e[t];
|
|
@@ -898,7 +898,7 @@ function rl(e) {
|
|
|
898
898
|
if (Array.isArray(e))
|
|
899
899
|
return e;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Qt(e) {
|
|
902
902
|
for (var o = 1; o < arguments.length; o++) {
|
|
903
903
|
var t = arguments[o] != null ? Object(arguments[o]) : {}, n = Object.keys(t);
|
|
904
904
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
@@ -933,26 +933,26 @@ function cl(e, o) {
|
|
|
933
933
|
}
|
|
934
934
|
So("#1890ff");
|
|
935
935
|
var Be = function(o, t) {
|
|
936
|
-
var n, a =
|
|
936
|
+
var n, a = Qt({}, o, t.attrs), i = a.class, r = a.icon, s = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, f = a.onClick, g = sl(a, ol), y = (n = {
|
|
937
937
|
anticon: !0
|
|
938
|
-
}, _t(n, "anticon-".concat(r.name), Boolean(r.name)), _t(n, i, i), n), m = s === "" || s || r.name === "loading" ? "anticon-spin" : "",
|
|
939
|
-
|
|
940
|
-
var
|
|
938
|
+
}, _t(n, "anticon-".concat(r.name), Boolean(r.name)), _t(n, i, i), n), m = s === "" || s || r.name === "loading" ? "anticon-spin" : "", S = d;
|
|
939
|
+
S === void 0 && f && (S = -1, g.tabindex = S);
|
|
940
|
+
var b = l ? {
|
|
941
941
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
942
942
|
transform: "rotate(".concat(l, "deg)")
|
|
943
|
-
} : void 0, h = Co(c), x = nl(h, 2),
|
|
944
|
-
return G("span",
|
|
943
|
+
} : void 0, h = Co(c), x = nl(h, 2), w = x[0], $ = x[1];
|
|
944
|
+
return G("span", Qt({
|
|
945
945
|
role: "img",
|
|
946
946
|
"aria-label": r.name
|
|
947
947
|
}, g, {
|
|
948
948
|
onClick: f,
|
|
949
949
|
class: y
|
|
950
|
-
}), [G(
|
|
950
|
+
}), [G(Et, {
|
|
951
951
|
class: m,
|
|
952
952
|
icon: r,
|
|
953
|
-
primaryColor:
|
|
954
|
-
secondaryColor:
|
|
955
|
-
style:
|
|
953
|
+
primaryColor: w,
|
|
954
|
+
secondaryColor: $,
|
|
955
|
+
style: b
|
|
956
956
|
}, null)]);
|
|
957
957
|
};
|
|
958
958
|
Be.props = {
|
|
@@ -968,7 +968,7 @@ Be.setTwoToneColor = So;
|
|
|
968
968
|
const dl = Be;
|
|
969
969
|
var ul = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" };
|
|
970
970
|
const fl = ul;
|
|
971
|
-
function
|
|
971
|
+
function Kt(e) {
|
|
972
972
|
for (var o = 1; o < arguments.length; o++) {
|
|
973
973
|
var t = arguments[o] != null ? Object(arguments[o]) : {}, n = Object.keys(t);
|
|
974
974
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
@@ -982,15 +982,15 @@ function Qt(e) {
|
|
|
982
982
|
function ml(e, o, t) {
|
|
983
983
|
return o in e ? Object.defineProperty(e, o, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = t, e;
|
|
984
984
|
}
|
|
985
|
-
var
|
|
986
|
-
var n =
|
|
987
|
-
return G(dl,
|
|
985
|
+
var Ft = function(o, t) {
|
|
986
|
+
var n = Kt({}, o, t.attrs);
|
|
987
|
+
return G(dl, Kt({}, n, {
|
|
988
988
|
icon: fl
|
|
989
989
|
}), null);
|
|
990
990
|
};
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
const gl =
|
|
991
|
+
Ft.displayName = "LoadingOutlined";
|
|
992
|
+
Ft.inheritAttrs = !1;
|
|
993
|
+
const gl = Ft, hl = Z({
|
|
994
994
|
props: {
|
|
995
995
|
spinning: {
|
|
996
996
|
type: Boolean,
|
|
@@ -1002,7 +1002,7 @@ const gl = Et, hl = Z({
|
|
|
1002
1002
|
},
|
|
1003
1003
|
setup() {
|
|
1004
1004
|
return {
|
|
1005
|
-
indicator:
|
|
1005
|
+
indicator: st(gl, {
|
|
1006
1006
|
style: {
|
|
1007
1007
|
fontSize: "24px",
|
|
1008
1008
|
color: "#1890ff"
|
|
@@ -1020,8 +1020,8 @@ const Y = (e, o) => {
|
|
|
1020
1020
|
}, yl = { class: "spin-wrapper" };
|
|
1021
1021
|
function bl(e, o, t, n, a, i) {
|
|
1022
1022
|
const r = q("a-spin");
|
|
1023
|
-
return
|
|
1024
|
-
e.spinning ? (
|
|
1023
|
+
return E(), R("div", yl, [
|
|
1024
|
+
e.spinning ? (E(), Ie(r, {
|
|
1025
1025
|
key: 0,
|
|
1026
1026
|
class: "spin",
|
|
1027
1027
|
spinning: e.spinning,
|
|
@@ -1030,7 +1030,7 @@ function bl(e, o, t, n, a, i) {
|
|
|
1030
1030
|
}, null, 8, ["spinning", "indicator"])) : ft(e.$slots, "default", { key: 1 })
|
|
1031
1031
|
]);
|
|
1032
1032
|
}
|
|
1033
|
-
const
|
|
1033
|
+
const et = /* @__PURE__ */ Y(hl, [["render", bl]]), vl = Z({
|
|
1034
1034
|
name: "Skeleton",
|
|
1035
1035
|
props: {
|
|
1036
1036
|
loading: {
|
|
@@ -1044,7 +1044,7 @@ const Xe = /* @__PURE__ */ Y(hl, [["render", bl]]), vl = Z({
|
|
|
1044
1044
|
});
|
|
1045
1045
|
function pl(e, o, t, n, a, i) {
|
|
1046
1046
|
const r = q("a-skeleton");
|
|
1047
|
-
return
|
|
1047
|
+
return E(), Ie(r, {
|
|
1048
1048
|
active: "",
|
|
1049
1049
|
loading: e.loading
|
|
1050
1050
|
}, {
|
|
@@ -1057,7 +1057,7 @@ function pl(e, o, t, n, a, i) {
|
|
|
1057
1057
|
const mt = /* @__PURE__ */ Y(vl, [["render", pl]]);
|
|
1058
1058
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1059
1059
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1060
|
-
const
|
|
1060
|
+
const te = (e, o) => {
|
|
1061
1061
|
if (e.install = (t) => {
|
|
1062
1062
|
for (const n of [e, ...Object.values(o ?? {})])
|
|
1063
1063
|
t.component(n.name, n);
|
|
@@ -1091,7 +1091,7 @@ const ee = (e, o) => {
|
|
|
1091
1091
|
}, oe = (e) => Yn(e, (o) => o == null ? {} : {
|
|
1092
1092
|
type: o.constructor,
|
|
1093
1093
|
default: o
|
|
1094
|
-
}),
|
|
1094
|
+
}), wo = {
|
|
1095
1095
|
width: "1920px",
|
|
1096
1096
|
height: "1080px",
|
|
1097
1097
|
backgroundColor: "#ffffff",
|
|
@@ -1099,7 +1099,7 @@ const ee = (e, o) => {
|
|
|
1099
1099
|
backgroundSize: "100% 100%",
|
|
1100
1100
|
contextRequestUrl: "",
|
|
1101
1101
|
mode: "normal"
|
|
1102
|
-
},
|
|
1102
|
+
}, ko = oe(wo), Cl = [
|
|
1103
1103
|
"width",
|
|
1104
1104
|
"height",
|
|
1105
1105
|
"color",
|
|
@@ -1127,18 +1127,18 @@ const ee = (e, o) => {
|
|
|
1127
1127
|
"zIndex"
|
|
1128
1128
|
], ae = (e, o = []) => {
|
|
1129
1129
|
const t = Qn(Cl, ...o);
|
|
1130
|
-
return
|
|
1131
|
-
},
|
|
1132
|
-
var eo;
|
|
1133
|
-
const st = (eo = window == null ? void 0 : window.config) == null ? void 0 : eo.indicatorURL;
|
|
1130
|
+
return B(() => Kn(e, t));
|
|
1131
|
+
}, Ot = "EVENT_BUS", re = "GLOBAL_CONFIG", se = "GLOBAL_MODEL", ve = "REQUEST_MODEL", Ao = "GLOBAL_TOKEN", Ve = "REFRESH_PAGE";
|
|
1134
1132
|
var to;
|
|
1135
|
-
(to = window == null ? void 0 : window.config)
|
|
1133
|
+
const ct = (to = window == null ? void 0 : window.config) == null ? void 0 : to.indicatorURL;
|
|
1136
1134
|
var oo;
|
|
1137
|
-
|
|
1135
|
+
(oo = window == null ? void 0 : window.config) != null && oo.uploadPath;
|
|
1138
1136
|
var no;
|
|
1139
|
-
const
|
|
1140
|
-
|
|
1141
|
-
|
|
1137
|
+
const Xt = ((no = window == null ? void 0 : window.config) == null ? void 0 : no.routerBaseURL) || "./";
|
|
1138
|
+
var ao;
|
|
1139
|
+
const Sl = ((ao = window == null ? void 0 : window.config) == null ? void 0 : ao.erdURL) || "", fe = (e, o) => {
|
|
1140
|
+
ee(() => e.id, (t, n) => {
|
|
1141
|
+
const a = z(Ot, {
|
|
1142
1142
|
// @ts-ignore
|
|
1143
1143
|
// eslint-disable-next-line no-void
|
|
1144
1144
|
onEvent: (i, r) => {
|
|
@@ -1153,13 +1153,13 @@ const Sl = ((no = window == null ? void 0 : window.config) == null ? void 0 : no
|
|
|
1153
1153
|
immediate: !0
|
|
1154
1154
|
});
|
|
1155
1155
|
}, ce = (e) => {
|
|
1156
|
-
const o = e.events, t = e.id, n = z(
|
|
1156
|
+
const o = e.events, t = e.id, n = z(Ot, {
|
|
1157
1157
|
// @ts-ignore
|
|
1158
1158
|
// eslint-disable-next-line no-void
|
|
1159
1159
|
emitEvent: (i, r) => {
|
|
1160
1160
|
}
|
|
1161
1161
|
}), { touchEventId: a } = z(re, {
|
|
1162
|
-
touchEventId:
|
|
1162
|
+
touchEventId: L("")
|
|
1163
1163
|
});
|
|
1164
1164
|
return (i, r = () => {
|
|
1165
1165
|
}) => function() {
|
|
@@ -1175,15 +1175,15 @@ const Sl = ((no = window == null ? void 0 : window.config) == null ? void 0 : no
|
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
1177
|
};
|
|
1178
|
-
},
|
|
1178
|
+
}, Ye = (e, o) => {
|
|
1179
1179
|
let { name: t = "name", value: n = "value", type: a = "type" } = o || {};
|
|
1180
1180
|
t = t == null ? void 0 : t.trim(), n = n == null ? void 0 : n.trim(), a = a == null ? void 0 : a.trim();
|
|
1181
1181
|
const i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), s = e.length;
|
|
1182
1182
|
for (let c = 0; c < s; c++) {
|
|
1183
1183
|
const f = e[c], g = f[t] || "", y = f[n] || "", m = f[a] || "";
|
|
1184
1184
|
if (i.add(g), r.has(m)) {
|
|
1185
|
-
const
|
|
1186
|
-
|
|
1185
|
+
const S = r.get(m);
|
|
1186
|
+
S.push({ name: g, value: y, ...f }), r.set(m, S);
|
|
1187
1187
|
} else
|
|
1188
1188
|
r.set(m, [{ name: g, value: y, ...f }]);
|
|
1189
1189
|
}
|
|
@@ -1197,11 +1197,11 @@ const Sl = ((no = window == null ? void 0 : window.config) == null ? void 0 : no
|
|
|
1197
1197
|
dimensions: l,
|
|
1198
1198
|
dataset: d
|
|
1199
1199
|
};
|
|
1200
|
-
},
|
|
1201
|
-
`),
|
|
1200
|
+
}, wl = (e) => e.replace(/\\n/g, `
|
|
1201
|
+
`), Rt = (e, o = 2) => {
|
|
1202
1202
|
const t = parseFloat(e + "");
|
|
1203
1203
|
return isNaN(t) || t < 0 ? e : t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
|
|
1204
|
-
},
|
|
1204
|
+
}, dt = (e, o = 2) => {
|
|
1205
1205
|
const t = e + "";
|
|
1206
1206
|
if (t.includes("%"))
|
|
1207
1207
|
return e;
|
|
@@ -1222,13 +1222,12 @@ const Sl = ((no = window == null ? void 0 : window.config) == null ? void 0 : no
|
|
|
1222
1222
|
}
|
|
1223
1223
|
try {
|
|
1224
1224
|
l = (0, eval)(l);
|
|
1225
|
-
} catch
|
|
1226
|
-
console.error(f);
|
|
1225
|
+
} catch {
|
|
1227
1226
|
}
|
|
1228
1227
|
e = e.replace(s, l);
|
|
1229
1228
|
}
|
|
1230
1229
|
return t && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), n && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
1231
|
-
},
|
|
1230
|
+
}, we = (e, o = () => {
|
|
1232
1231
|
}) => {
|
|
1233
1232
|
const {
|
|
1234
1233
|
requestUrl: t,
|
|
@@ -1244,68 +1243,68 @@ const Sl = ((no = window == null ? void 0 : window.config) == null ? void 0 : no
|
|
|
1244
1243
|
}), { getGlobalModel: f } = z(se, {
|
|
1245
1244
|
// @ts-ignore
|
|
1246
1245
|
// eslint-disable-next-line no-void
|
|
1247
|
-
getGlobalModel: (
|
|
1246
|
+
getGlobalModel: (S) => {
|
|
1248
1247
|
}
|
|
1249
|
-
}), g = he(t), y = async (
|
|
1248
|
+
}), g = he(t), y = async (S = {}) => {
|
|
1250
1249
|
if (!g || !n || !a || A(d) === "design")
|
|
1251
1250
|
return;
|
|
1252
|
-
let
|
|
1251
|
+
let b = {};
|
|
1253
1252
|
i.forEach((I) => {
|
|
1254
|
-
const { key:
|
|
1255
|
-
if (typeof
|
|
1253
|
+
const { key: F, value: k } = I;
|
|
1254
|
+
if (typeof k == "object" && k.id) {
|
|
1256
1255
|
let u = {};
|
|
1257
|
-
const { id: p, prop:
|
|
1256
|
+
const { id: p, prop: v, propKey: _, operate: C } = k;
|
|
1258
1257
|
p === "THIS" ? u = f(A(c)) || {} : u = f(p) || {};
|
|
1259
|
-
const T = A(u[
|
|
1260
|
-
let
|
|
1261
|
-
if (["date", "range"].some((
|
|
1262
|
-
const { value:
|
|
1263
|
-
if (
|
|
1258
|
+
const T = A(u[v]);
|
|
1259
|
+
let O = null;
|
|
1260
|
+
if (["date", "range"].some((J) => xo(u == null ? void 0 : u.type, J))) {
|
|
1261
|
+
const { value: J, type: H, mode: Q } = C || {};
|
|
1262
|
+
if (J && H && Q)
|
|
1264
1263
|
switch (H) {
|
|
1265
1264
|
case "add":
|
|
1266
|
-
|
|
1265
|
+
O = A(T).add(J, Q);
|
|
1267
1266
|
break;
|
|
1268
1267
|
case "minus":
|
|
1269
|
-
|
|
1268
|
+
O = A(T).subtract(J, Q);
|
|
1270
1269
|
break;
|
|
1271
1270
|
}
|
|
1272
|
-
|
|
1271
|
+
O == null && (O = A(T)), O = (O == null ? void 0 : O.format((_ == null ? void 0 : _.trim()) || u.format)) || "";
|
|
1273
1272
|
} else
|
|
1274
|
-
Object.prototype.toString.call(T) === "[object Object]" ?
|
|
1275
|
-
|
|
1273
|
+
Object.prototype.toString.call(T) === "[object Object]" ? O = T[_ || "value"] : O = T;
|
|
1274
|
+
b[F] = O;
|
|
1276
1275
|
} else
|
|
1277
|
-
typeof
|
|
1278
|
-
}),
|
|
1276
|
+
typeof k == "string" && (b[F] = he(k));
|
|
1277
|
+
}), b = { ...window.config.requestParams, ...S, ...b };
|
|
1279
1278
|
let h = "";
|
|
1280
|
-
const x = Object.keys(
|
|
1281
|
-
x.forEach((I,
|
|
1282
|
-
|
|
1279
|
+
const x = Object.keys(b), w = x.length - 1, $ = x.length;
|
|
1280
|
+
x.forEach((I, F) => {
|
|
1281
|
+
F === 0 ? $ !== 1 ? h += `?${I}=${b[I]}&` : h += `?${I}=${b[I]}` : F === w ? h += `${I}=${b[I]}` : h += `${I}=${b[I]}&`;
|
|
1283
1282
|
});
|
|
1284
1283
|
try {
|
|
1285
|
-
const I = ["get", "head"].includes(n),
|
|
1284
|
+
const I = ["get", "head"].includes(n), F = await It({
|
|
1286
1285
|
baseURL: A(l),
|
|
1287
1286
|
url: I ? g + h : g,
|
|
1288
1287
|
method: n,
|
|
1289
1288
|
headers: a,
|
|
1290
|
-
data: I ? {} :
|
|
1289
|
+
data: I ? {} : b
|
|
1291
1290
|
});
|
|
1292
|
-
return o(
|
|
1291
|
+
return o(F), F;
|
|
1293
1292
|
} catch (I) {
|
|
1294
1293
|
console.error(I);
|
|
1295
1294
|
}
|
|
1296
1295
|
}, m = s && setInterval(y, r * 1e3);
|
|
1297
|
-
return
|
|
1296
|
+
return ut(() => {
|
|
1298
1297
|
clearInterval(m);
|
|
1299
1298
|
}), y;
|
|
1300
|
-
},
|
|
1299
|
+
}, ze = (e = [], o) => {
|
|
1301
1300
|
let { name: t = "name", types: n = [] } = o || {};
|
|
1302
1301
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1303
1302
|
const a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), r = e.length, s = n.length;
|
|
1304
1303
|
if (r === 1) {
|
|
1305
1304
|
const c = [];
|
|
1306
1305
|
for (let g = 0; g < s; g++) {
|
|
1307
|
-
const y = n[g], { label: m, value:
|
|
1308
|
-
a.add(m), c.push(
|
|
1306
|
+
const y = n[g], { label: m, value: S } = y, b = { ...e[0], value: e[0][S] };
|
|
1307
|
+
a.add(m), c.push(b);
|
|
1309
1308
|
}
|
|
1310
1309
|
const f = e[0][t] || "";
|
|
1311
1310
|
i.set(f, c);
|
|
@@ -1314,12 +1313,12 @@ const Sl = ((no = window == null ? void 0 : window.config) == null ? void 0 : no
|
|
|
1314
1313
|
const f = e[c], g = f[t];
|
|
1315
1314
|
a.add(g);
|
|
1316
1315
|
for (let y = 0; y < s; y++) {
|
|
1317
|
-
const m = n[y], { label:
|
|
1318
|
-
if (i.has(
|
|
1319
|
-
const x = i.get(
|
|
1320
|
-
x.push(h), i.set(
|
|
1316
|
+
const m = n[y], { label: S, value: b } = m, h = { ...f, value: f[b] };
|
|
1317
|
+
if (i.has(S)) {
|
|
1318
|
+
const x = i.get(S);
|
|
1319
|
+
x.push(h), i.set(S, x);
|
|
1321
1320
|
} else
|
|
1322
|
-
i.set(
|
|
1321
|
+
i.set(S, [h]);
|
|
1323
1322
|
}
|
|
1324
1323
|
}
|
|
1325
1324
|
const l = Array.from(a), d = [];
|
|
@@ -1339,9 +1338,9 @@ const Sl = ((no = window == null ? void 0 : window.config) == null ? void 0 : no
|
|
|
1339
1338
|
let t = "";
|
|
1340
1339
|
return e != null && e.includes("://") ? t = e : t = ((n = window == null ? void 0 : window.config) == null ? void 0 : n.uploadPath) + e, o && (t = `url(${t})`), t;
|
|
1341
1340
|
}, To = (e, o) => {
|
|
1342
|
-
const t = `${
|
|
1341
|
+
const t = `${Xt}/preview?pageId=${o}`, n = `${Xt}/${o}`;
|
|
1343
1342
|
return e === "preview" ? t : n;
|
|
1344
|
-
}, Fe =
|
|
1343
|
+
}, Fe = It.create({
|
|
1345
1344
|
// timeout: 1000 * 15
|
|
1346
1345
|
});
|
|
1347
1346
|
Fe.interceptors.request.use((e) => e, (e) => Promise.reject(e));
|
|
@@ -1369,7 +1368,7 @@ Fe.interceptors.response.use((e) => {
|
|
|
1369
1368
|
}
|
|
1370
1369
|
return Promise.reject(e);
|
|
1371
1370
|
});
|
|
1372
|
-
const
|
|
1371
|
+
const Dt = (e) => {
|
|
1373
1372
|
const { getGlobalModel: o } = z(se, {
|
|
1374
1373
|
// @ts-ignore
|
|
1375
1374
|
// eslint-disable-next-line no-void
|
|
@@ -1411,18 +1410,18 @@ const Rt = (e) => {
|
|
|
1411
1410
|
var c;
|
|
1412
1411
|
const d = [];
|
|
1413
1412
|
for (let f = 0; f < l.length; f++) {
|
|
1414
|
-
const { keyName: g, searchName: y, searchType: m, variateName:
|
|
1413
|
+
const { keyName: g, searchName: y, searchType: m, variateName: S, id: b } = l[f], h = {
|
|
1415
1414
|
alias: g,
|
|
1416
1415
|
fieldName: y,
|
|
1417
1416
|
rule: m || "NONE",
|
|
1418
1417
|
fieldValue: "",
|
|
1419
1418
|
valueType: "",
|
|
1420
|
-
variateName:
|
|
1421
|
-
}, x = o(
|
|
1419
|
+
variateName: S
|
|
1420
|
+
}, x = o(b) || {};
|
|
1422
1421
|
if (y === "the_date" ? h.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(y) && (h.valueType = "TEXT"), x.type === "ecanDatePicker") {
|
|
1423
1422
|
h.dateFormat = x.format;
|
|
1424
|
-
const
|
|
1425
|
-
typeof
|
|
1423
|
+
const w = (c = A(x)) == null ? void 0 : c.value.format;
|
|
1424
|
+
typeof w == "function" && (h.fieldValue = w(x == null ? void 0 : x.format));
|
|
1426
1425
|
}
|
|
1427
1426
|
d.push(h);
|
|
1428
1427
|
}
|
|
@@ -1485,7 +1484,7 @@ const Rt = (e) => {
|
|
|
1485
1484
|
return g;
|
|
1486
1485
|
};
|
|
1487
1486
|
return async function() {
|
|
1488
|
-
var I,
|
|
1487
|
+
var I, F;
|
|
1489
1488
|
const l = e.type;
|
|
1490
1489
|
let d = e.graphicConfig;
|
|
1491
1490
|
(!d || Object.keys(d).length === 0) && (d = {
|
|
@@ -1507,13 +1506,13 @@ const Rt = (e) => {
|
|
|
1507
1506
|
const g = t(d);
|
|
1508
1507
|
let y;
|
|
1509
1508
|
if (Array.isArray(d.series) && d.series.length > 0) {
|
|
1510
|
-
const
|
|
1509
|
+
const k = (I = d.seriesList) == null ? void 0 : I.find((u) => {
|
|
1511
1510
|
const p = d.series[0];
|
|
1512
1511
|
return u.name === p || u.nameBak === p;
|
|
1513
1512
|
});
|
|
1514
|
-
|
|
1515
|
-
label:
|
|
1516
|
-
columnName:
|
|
1513
|
+
k != null && (y = {
|
|
1514
|
+
label: k.name,
|
|
1515
|
+
columnName: k.label
|
|
1517
1516
|
});
|
|
1518
1517
|
}
|
|
1519
1518
|
let m;
|
|
@@ -1522,47 +1521,47 @@ const Rt = (e) => {
|
|
|
1522
1521
|
label: c[0],
|
|
1523
1522
|
columnName: c[0]
|
|
1524
1523
|
};
|
|
1525
|
-
const
|
|
1526
|
-
m.columnName =
|
|
1524
|
+
const k = ((F = d.classifyList) == null ? void 0 : F.find((u) => (u == null ? void 0 : u.name) === c[0] || (u == null ? void 0 : u.nameBak) === c[0])) || {};
|
|
1525
|
+
m.columnName = k.label, i(m, d.classifyList), m.conditions = s(m, "classifyList", d) || [];
|
|
1527
1526
|
}
|
|
1528
1527
|
y && (i(y, d.seriesList), y.conditions = s(y, "seriesList", d) || []);
|
|
1529
|
-
for (let
|
|
1530
|
-
g[
|
|
1531
|
-
let
|
|
1532
|
-
(d == null ? void 0 : d.pageMode) === "design" ?
|
|
1533
|
-
let
|
|
1534
|
-
d.source === "INDICATOR_LIB" && (
|
|
1535
|
-
const
|
|
1528
|
+
for (let k = 0; k < g.length; k++)
|
|
1529
|
+
g[k].location === "RIGHT" ? g[k].conditions = s(g[k], "rightAxisList", d) : g[k].conditions = s(g[k], "leftAxisList", d);
|
|
1530
|
+
let S;
|
|
1531
|
+
(d == null ? void 0 : d.pageMode) === "design" ? S = d.sqlConditions ?? [] : S = a(d == null ? void 0 : d.relativeList);
|
|
1532
|
+
let b = "SQL_VIEW", h = "", x = "", w = "";
|
|
1533
|
+
d.source === "INDICATOR_LIB" && (b = "INDICATOR_LIB", h = d.fixedDimSql, x = d.dataSourceId, w = d.idxLibMode);
|
|
1534
|
+
const $ = {
|
|
1536
1535
|
ecanBar: "bar",
|
|
1537
1536
|
ecanLine: "line",
|
|
1538
1537
|
ecanPie: "pie",
|
|
1539
1538
|
ecanScatter: "scatter"
|
|
1540
1539
|
};
|
|
1541
1540
|
try {
|
|
1542
|
-
const
|
|
1541
|
+
const k = await Fe.get(`${ct}/user/anonymous?username=admin`, {
|
|
1543
1542
|
headers: {
|
|
1544
1543
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1545
1544
|
current_context: "ygt"
|
|
1546
1545
|
}
|
|
1547
1546
|
});
|
|
1548
|
-
return Fe.post(`${
|
|
1547
|
+
return Fe.post(`${ct}/diagram`, {
|
|
1549
1548
|
dataViewId: d.dataViewId,
|
|
1550
1549
|
plugin: "1",
|
|
1551
1550
|
layer: "2",
|
|
1552
|
-
chartType:
|
|
1551
|
+
chartType: $[l],
|
|
1553
1552
|
classification: m,
|
|
1554
1553
|
indicatorList: g,
|
|
1555
1554
|
series: y,
|
|
1556
|
-
sqlConditions:
|
|
1557
|
-
source:
|
|
1555
|
+
sqlConditions: S,
|
|
1556
|
+
source: b,
|
|
1558
1557
|
fixedDimSql: h,
|
|
1559
1558
|
dataSourceId: x,
|
|
1560
|
-
idxLibMode:
|
|
1559
|
+
idxLibMode: w
|
|
1561
1560
|
}, {
|
|
1562
|
-
headers: { Authentication:
|
|
1561
|
+
headers: { Authentication: k.data.data.token }
|
|
1563
1562
|
});
|
|
1564
|
-
} catch (
|
|
1565
|
-
console.error(
|
|
1563
|
+
} catch (k) {
|
|
1564
|
+
console.error(k);
|
|
1566
1565
|
}
|
|
1567
1566
|
};
|
|
1568
1567
|
}, Oe = (e, o) => {
|
|
@@ -1614,8 +1613,8 @@ const Rt = (e) => {
|
|
|
1614
1613
|
calcType: g = "COLUMN",
|
|
1615
1614
|
builtInFormula: y,
|
|
1616
1615
|
builtInValueSource: m,
|
|
1617
|
-
builtInCalcWay:
|
|
1618
|
-
formula:
|
|
1616
|
+
builtInCalcWay: S,
|
|
1617
|
+
formula: b,
|
|
1619
1618
|
conditions: h
|
|
1620
1619
|
} = r;
|
|
1621
1620
|
return {
|
|
@@ -1628,8 +1627,8 @@ const Rt = (e) => {
|
|
|
1628
1627
|
aggregate: "SUM",
|
|
1629
1628
|
builtInFormula: y,
|
|
1630
1629
|
builtInValueSource: m,
|
|
1631
|
-
builtInCalcWay:
|
|
1632
|
-
formula:
|
|
1630
|
+
builtInCalcWay: S,
|
|
1631
|
+
formula: b,
|
|
1633
1632
|
conditions: h
|
|
1634
1633
|
};
|
|
1635
1634
|
}, { getGlobalModel: a } = z(se, {
|
|
@@ -1645,20 +1644,20 @@ const Rt = (e) => {
|
|
|
1645
1644
|
id: g,
|
|
1646
1645
|
conditionLabel: y,
|
|
1647
1646
|
conditionKey: m,
|
|
1648
|
-
conditionValueType:
|
|
1649
|
-
} = f,
|
|
1647
|
+
conditionValueType: S
|
|
1648
|
+
} = f, b = {
|
|
1650
1649
|
rule: "NONE",
|
|
1651
1650
|
label: y,
|
|
1652
1651
|
fieldName: m,
|
|
1653
1652
|
fieldValue: "",
|
|
1654
1653
|
// 在关联控件中取
|
|
1655
|
-
valueType:
|
|
1654
|
+
valueType: S
|
|
1656
1655
|
}, h = a(g) || {};
|
|
1657
1656
|
if (xo(h.type, "date")) {
|
|
1658
|
-
const { value: x, format:
|
|
1659
|
-
|
|
1657
|
+
const { value: x, format: w } = h || {};
|
|
1658
|
+
b.fieldValue = (d = A(x)) == null ? void 0 : d.format(w), b.dateFormat = w;
|
|
1660
1659
|
}
|
|
1661
|
-
l.push(
|
|
1660
|
+
l.push(b);
|
|
1662
1661
|
}
|
|
1663
1662
|
return l;
|
|
1664
1663
|
};
|
|
@@ -1673,23 +1672,23 @@ const Rt = (e) => {
|
|
|
1673
1672
|
classificationList: g = [],
|
|
1674
1673
|
seriesList: y = [],
|
|
1675
1674
|
leftAxisList: m = [],
|
|
1676
|
-
rightAxisList:
|
|
1677
|
-
queryColumnList:
|
|
1675
|
+
rightAxisList: S = [],
|
|
1676
|
+
queryColumnList: b = [],
|
|
1678
1677
|
indicators: h = [],
|
|
1679
1678
|
controlList: x = [],
|
|
1680
|
-
dataSourceId:
|
|
1681
|
-
idxLibMode:
|
|
1679
|
+
dataSourceId: w,
|
|
1680
|
+
idxLibMode: $,
|
|
1682
1681
|
preview: I = !1
|
|
1683
1682
|
} = r || {};
|
|
1684
|
-
let
|
|
1683
|
+
let F;
|
|
1685
1684
|
if (Array.isArray(g) && g.length > 0) {
|
|
1686
1685
|
const C = g.length;
|
|
1687
1686
|
for (let T = 0; T < C; T++) {
|
|
1688
|
-
const
|
|
1687
|
+
const O = g[T] || {}, { label: j = "", name: J = "", show: H = !1, sort: Q, customGroup: ie, conditions: Me } = O;
|
|
1689
1688
|
if (H || C === 1) {
|
|
1690
|
-
|
|
1689
|
+
F = {
|
|
1691
1690
|
label: j,
|
|
1692
|
-
columnName:
|
|
1691
|
+
columnName: J,
|
|
1693
1692
|
show: H,
|
|
1694
1693
|
sort: Q,
|
|
1695
1694
|
customGroup: ie,
|
|
@@ -1699,15 +1698,15 @@ const Rt = (e) => {
|
|
|
1699
1698
|
}
|
|
1700
1699
|
}
|
|
1701
1700
|
}
|
|
1702
|
-
let
|
|
1701
|
+
let k;
|
|
1703
1702
|
if (Array.isArray(y) && y.length > 0) {
|
|
1704
1703
|
const C = y.length;
|
|
1705
1704
|
for (let T = 0; T < C; T++) {
|
|
1706
|
-
const
|
|
1705
|
+
const O = y[T] || {}, { label: j = "", name: J = "", show: H = !1, sort: Q, customGroup: ie, conditions: Me } = O;
|
|
1707
1706
|
if (H || C === 1) {
|
|
1708
|
-
|
|
1707
|
+
k = {
|
|
1709
1708
|
label: j,
|
|
1710
|
-
columnName:
|
|
1709
|
+
columnName: J,
|
|
1711
1710
|
show: H,
|
|
1712
1711
|
sort: Q,
|
|
1713
1712
|
customGroup: ie,
|
|
@@ -1718,13 +1717,13 @@ const Rt = (e) => {
|
|
|
1718
1717
|
}
|
|
1719
1718
|
}
|
|
1720
1719
|
const u = [];
|
|
1721
|
-
|
|
1720
|
+
b == null || b.forEach((C) => {
|
|
1722
1721
|
u.push(t(C));
|
|
1723
1722
|
});
|
|
1724
1723
|
const p = [];
|
|
1725
1724
|
if (m == null || m.forEach((C) => {
|
|
1726
1725
|
C.location = "LEFT", p.push(n(C));
|
|
1727
|
-
}),
|
|
1726
|
+
}), S == null || S.forEach((C) => {
|
|
1728
1727
|
C.location = "RIGHT", p.push(n(C));
|
|
1729
1728
|
}), h == null || h.forEach((C) => {
|
|
1730
1729
|
C.location = "LEFT", p.push(n(C));
|
|
@@ -1732,26 +1731,26 @@ const Rt = (e) => {
|
|
|
1732
1731
|
return;
|
|
1733
1732
|
if (c === "2" && p.length === 0)
|
|
1734
1733
|
return;
|
|
1735
|
-
let
|
|
1736
|
-
(r == null ? void 0 : r.pageMode) === "design" ?
|
|
1734
|
+
let v;
|
|
1735
|
+
(r == null ? void 0 : r.pageMode) === "design" ? v = r.sqlConditions ?? [] : v = i(x);
|
|
1737
1736
|
try {
|
|
1738
1737
|
return await Fe.post(
|
|
1739
|
-
`${
|
|
1738
|
+
`${ct}/diagram`,
|
|
1740
1739
|
{
|
|
1741
1740
|
source: s,
|
|
1742
1741
|
dataViewId: l,
|
|
1743
1742
|
plugin: d,
|
|
1744
1743
|
layer: c,
|
|
1745
1744
|
chartType: f,
|
|
1746
|
-
classification:
|
|
1747
|
-
series:
|
|
1745
|
+
classification: F,
|
|
1746
|
+
series: k,
|
|
1748
1747
|
indicatorList: p,
|
|
1749
1748
|
queryColumns: u,
|
|
1750
1749
|
pageFlag: !0,
|
|
1751
|
-
sqlConditions:
|
|
1750
|
+
sqlConditions: v,
|
|
1752
1751
|
// fixedDimSql: '',
|
|
1753
|
-
dataSourceId:
|
|
1754
|
-
idxLibMode:
|
|
1752
|
+
dataSourceId: w,
|
|
1753
|
+
idxLibMode: $,
|
|
1755
1754
|
preview: I
|
|
1756
1755
|
},
|
|
1757
1756
|
{
|
|
@@ -1766,7 +1765,7 @@ const Rt = (e) => {
|
|
|
1766
1765
|
console.error(C);
|
|
1767
1766
|
}
|
|
1768
1767
|
};
|
|
1769
|
-
},
|
|
1768
|
+
}, kl = () => {
|
|
1770
1769
|
const o = window.location.search.slice(1).split("&"), t = o.length;
|
|
1771
1770
|
for (let n = 0; n < t; n++) {
|
|
1772
1771
|
const a = o[n];
|
|
@@ -1782,31 +1781,31 @@ const Rt = (e) => {
|
|
|
1782
1781
|
name: "EcanPageConfig",
|
|
1783
1782
|
inheritAttrs: !1,
|
|
1784
1783
|
props: {
|
|
1785
|
-
...
|
|
1784
|
+
...ko
|
|
1786
1785
|
},
|
|
1787
1786
|
setup(e) {
|
|
1788
|
-
const o =
|
|
1787
|
+
const o = B(() => ({
|
|
1789
1788
|
width: e.width,
|
|
1790
1789
|
height: e.height,
|
|
1791
1790
|
backgroundColor: e.backgroundColor,
|
|
1792
1791
|
backgroundImage: Ee(e.backgroundImage, !0),
|
|
1793
1792
|
backgroundSize: e.backgroundSize
|
|
1794
|
-
})), t =
|
|
1793
|
+
})), t = L(0), n = L(0), a = L(0), i = L(0), r = L(!1), s = L();
|
|
1795
1794
|
let l;
|
|
1796
|
-
const d = () => new Promise((
|
|
1797
|
-
|
|
1798
|
-
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = s.value.clientWidth, n.value = s.value.clientHeight), (!a.value || !i.value) && (a.value = window.screen.width, i.value = window.screen.height),
|
|
1795
|
+
const d = () => new Promise((S) => {
|
|
1796
|
+
Je(() => {
|
|
1797
|
+
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = s.value.clientWidth, n.value = s.value.clientHeight), (!a.value || !i.value) && (a.value = window.screen.width, i.value = window.screen.height), S();
|
|
1799
1798
|
});
|
|
1800
1799
|
}), c = () => {
|
|
1801
1800
|
t.value && n.value ? (s.value.style.width = `${t.value}px`, s.value.style.height = `${n.value}px`) : (s.value.style.width = `${a.value}px`, s.value.style.height = `${i.value}px`);
|
|
1802
1801
|
}, f = () => {
|
|
1803
|
-
const
|
|
1804
|
-
s.value && (s.value.style.transform = `scale(${
|
|
1805
|
-
}, g = async () => {
|
|
1802
|
+
const S = document.body.clientWidth, b = document.body.clientHeight, h = t.value || a.value, x = n.value || i.value, w = S / h, $ = b / x;
|
|
1803
|
+
s.value && (s.value.style.transform = `scale(${w}, ${$})`);
|
|
1804
|
+
}, g = Lt(async () => {
|
|
1806
1805
|
await d(), f();
|
|
1807
|
-
}, y = () => {
|
|
1808
|
-
const
|
|
1809
|
-
l = new
|
|
1806
|
+
}, 100), y = () => {
|
|
1807
|
+
const S = window.MutationObserver;
|
|
1808
|
+
l = new S(g), l.observe(s.value, {
|
|
1810
1809
|
attributes: !0,
|
|
1811
1810
|
attributeFilter: ["style"],
|
|
1812
1811
|
attributeOldValue: !0
|
|
@@ -1815,8 +1814,8 @@ const Rt = (e) => {
|
|
|
1815
1814
|
l && (l.disconnect(), l.takeRecords(), l = null);
|
|
1816
1815
|
};
|
|
1817
1816
|
return Ze(async () => {
|
|
1818
|
-
r.value = !1, await d(), c(), f(), window.addEventListener("resize",
|
|
1819
|
-
}),
|
|
1817
|
+
r.value = !1, await d(), c(), f(), window.addEventListener("resize", g), y(), r.value = !0;
|
|
1818
|
+
}), ut(() => {
|
|
1820
1819
|
window.removeEventListener("resize", g), m();
|
|
1821
1820
|
}), {
|
|
1822
1821
|
style: o,
|
|
@@ -1830,17 +1829,17 @@ const xl = {
|
|
|
1830
1829
|
ref: "container"
|
|
1831
1830
|
};
|
|
1832
1831
|
function Tl(e, o, t, n, a, i) {
|
|
1833
|
-
return
|
|
1834
|
-
e.ready ? (
|
|
1832
|
+
return E(), R("div", xl, [
|
|
1833
|
+
e.ready ? (E(), R("div", {
|
|
1835
1834
|
key: 0,
|
|
1836
1835
|
class: "page-config",
|
|
1837
|
-
style:
|
|
1836
|
+
style: P(e.style)
|
|
1838
1837
|
}, [
|
|
1839
1838
|
ft(e.$slots, "default", {}, void 0, !0)
|
|
1840
|
-
], 4)) :
|
|
1839
|
+
], 4)) : be("", !0)
|
|
1841
1840
|
], 512);
|
|
1842
1841
|
}
|
|
1843
|
-
const _l = /* @__PURE__ */ Y(Al, [["render", Tl], ["__scopeId", "data-v-
|
|
1842
|
+
const _l = /* @__PURE__ */ Y(Al, [["render", Tl], ["__scopeId", "data-v-242d350e"]]), Ll = te(_l), Lo = {
|
|
1844
1843
|
contextRequestUrl: "",
|
|
1845
1844
|
pageMode: "normal",
|
|
1846
1845
|
theme: "light",
|
|
@@ -1852,16 +1851,16 @@ const _l = /* @__PURE__ */ Y(Al, [["render", Tl], ["__scopeId", "data-v-6eb7f225
|
|
|
1852
1851
|
...Io
|
|
1853
1852
|
},
|
|
1854
1853
|
setup(e, { expose: o }) {
|
|
1855
|
-
|
|
1856
|
-
const t =
|
|
1854
|
+
kl();
|
|
1855
|
+
const t = L(), n = () => {
|
|
1857
1856
|
t.value.setAttribute("datav-theme", e.theme);
|
|
1858
1857
|
};
|
|
1859
|
-
|
|
1858
|
+
ee(() => e.theme, () => {
|
|
1860
1859
|
n();
|
|
1861
1860
|
}), Ze(() => {
|
|
1862
1861
|
n();
|
|
1863
1862
|
});
|
|
1864
|
-
const a =
|
|
1863
|
+
const a = B(() => he(e.contextRequestUrl)), i = B(() => e.pageMode), r = B(() => e.theme), s = L("");
|
|
1865
1864
|
De(re, {
|
|
1866
1865
|
// 请求地址
|
|
1867
1866
|
contextRequestUrl: a,
|
|
@@ -1871,72 +1870,72 @@ const _l = /* @__PURE__ */ Y(Al, [["render", Tl], ["__scopeId", "data-v-6eb7f225
|
|
|
1871
1870
|
theme: r,
|
|
1872
1871
|
touchEventId: s
|
|
1873
1872
|
});
|
|
1874
|
-
const l = /* @__PURE__ */ new Map(), d = (
|
|
1873
|
+
const l = /* @__PURE__ */ new Map(), d = (v) => l.get(v);
|
|
1875
1874
|
De(se, {
|
|
1876
1875
|
getGlobalModel: d,
|
|
1877
|
-
setGlobalModel: (
|
|
1878
|
-
l.set(
|
|
1876
|
+
setGlobalModel: (v, _) => {
|
|
1877
|
+
l.set(v, _);
|
|
1879
1878
|
}
|
|
1880
1879
|
});
|
|
1881
1880
|
const f = Xn(), g = /* @__PURE__ */ new Set();
|
|
1882
|
-
De(
|
|
1883
|
-
onEvent: (
|
|
1884
|
-
g.has(
|
|
1885
|
-
f.off(
|
|
1881
|
+
De(Ot, {
|
|
1882
|
+
onEvent: (v, _) => {
|
|
1883
|
+
g.has(v) && f.off(v), f.on(v, (C) => (g.add(v), Object.prototype.toString.call(_[C]) === "[object Function]" && _[C]())), Nt(() => {
|
|
1884
|
+
f.off(v);
|
|
1886
1885
|
});
|
|
1887
1886
|
},
|
|
1888
|
-
offEvent: (
|
|
1889
|
-
f.off(
|
|
1887
|
+
offEvent: (v) => {
|
|
1888
|
+
f.off(v);
|
|
1890
1889
|
},
|
|
1891
|
-
emitEvent: (
|
|
1892
|
-
f.emit(
|
|
1890
|
+
emitEvent: (v, _) => {
|
|
1891
|
+
f.emit(v, _);
|
|
1893
1892
|
}
|
|
1894
1893
|
});
|
|
1895
|
-
const
|
|
1894
|
+
const b = L(0);
|
|
1896
1895
|
De(Ao, {
|
|
1897
1896
|
requestToken: () => {
|
|
1898
|
-
|
|
1897
|
+
b.value = A(b) + 1;
|
|
1899
1898
|
}
|
|
1900
1899
|
});
|
|
1901
|
-
const x = /* @__PURE__ */ new Map(),
|
|
1900
|
+
const x = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), $ = ({ requestFn: v = () => {
|
|
1902
1901
|
}, sortNum: _ = 0, id: C = "" }) => {
|
|
1903
1902
|
if (x.has(_)) {
|
|
1904
1903
|
const T = x.get(_);
|
|
1905
|
-
T == null || T.push(
|
|
1904
|
+
T == null || T.push(v);
|
|
1906
1905
|
} else
|
|
1907
|
-
x.set(_, [
|
|
1908
|
-
|
|
1909
|
-
}, I = (
|
|
1910
|
-
const T =
|
|
1911
|
-
Promise.all(T).then((
|
|
1912
|
-
_(
|
|
1913
|
-
}).catch((
|
|
1914
|
-
C(
|
|
1906
|
+
x.set(_, [v]);
|
|
1907
|
+
w.set(C, v);
|
|
1908
|
+
}, I = (v) => new Promise((_, C) => {
|
|
1909
|
+
const T = v.map((O) => O());
|
|
1910
|
+
Promise.all(T).then((O) => {
|
|
1911
|
+
_(O);
|
|
1912
|
+
}).catch((O) => {
|
|
1913
|
+
C(O);
|
|
1915
1914
|
});
|
|
1916
|
-
}),
|
|
1915
|
+
}), F = async () => {
|
|
1917
1916
|
var _;
|
|
1918
|
-
const
|
|
1917
|
+
const v = await It.get(`${ct}/user/anonymous?username=admin`, {
|
|
1919
1918
|
headers: {
|
|
1920
1919
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1921
1920
|
current_context: "ygt"
|
|
1922
1921
|
}
|
|
1923
1922
|
});
|
|
1924
|
-
config.indicatorToken = (_ =
|
|
1925
|
-
},
|
|
1926
|
-
if (
|
|
1927
|
-
if (typeof
|
|
1928
|
-
const _ =
|
|
1923
|
+
config.indicatorToken = (_ = v.data.data) == null ? void 0 : _.token;
|
|
1924
|
+
}, k = async (v) => {
|
|
1925
|
+
if (v) {
|
|
1926
|
+
if (typeof v == "string") {
|
|
1927
|
+
const _ = w.get(v);
|
|
1929
1928
|
typeof _ == "function" && _();
|
|
1930
1929
|
}
|
|
1931
1930
|
} else {
|
|
1932
1931
|
const _ = Array.from(x);
|
|
1933
|
-
_.sort((T,
|
|
1932
|
+
_.sort((T, O) => O[0] - T[0]);
|
|
1934
1933
|
const C = _.length;
|
|
1935
1934
|
try {
|
|
1936
|
-
e.pageMode !== "design" && A(
|
|
1935
|
+
e.pageMode !== "design" && A(b) > 0 && await F();
|
|
1937
1936
|
for (let T = 0; T < C; T++) {
|
|
1938
|
-
const
|
|
1939
|
-
await I(
|
|
1937
|
+
const O = _[T][1];
|
|
1938
|
+
await I(O);
|
|
1940
1939
|
}
|
|
1941
1940
|
} catch (T) {
|
|
1942
1941
|
console.error(T);
|
|
@@ -1945,23 +1944,23 @@ const _l = /* @__PURE__ */ Y(Al, [["render", Tl], ["__scopeId", "data-v-6eb7f225
|
|
|
1945
1944
|
}
|
|
1946
1945
|
}
|
|
1947
1946
|
};
|
|
1948
|
-
De(
|
|
1949
|
-
setRequest:
|
|
1950
|
-
touchRequest:
|
|
1947
|
+
De(ve, {
|
|
1948
|
+
setRequest: $,
|
|
1949
|
+
touchRequest: k
|
|
1951
1950
|
}), De(Ve, {
|
|
1952
1951
|
emitRefreshPage: () => {
|
|
1953
1952
|
f.emit(Ve);
|
|
1954
1953
|
}
|
|
1955
1954
|
});
|
|
1956
|
-
const p = (
|
|
1957
|
-
f.on(Ve, () =>
|
|
1955
|
+
const p = (v) => {
|
|
1956
|
+
f.on(Ve, () => v()), Ze(() => {
|
|
1958
1957
|
f.off(Ve);
|
|
1959
1958
|
});
|
|
1960
1959
|
};
|
|
1961
1960
|
return Nt(() => {
|
|
1962
|
-
x == null || x.clear(),
|
|
1961
|
+
x == null || x.clear(), w == null || w.clear();
|
|
1963
1962
|
}), o({
|
|
1964
|
-
touchRequest:
|
|
1963
|
+
touchRequest: k,
|
|
1965
1964
|
getGlobalModel: d,
|
|
1966
1965
|
onRefreshPage: p
|
|
1967
1966
|
}), {
|
|
@@ -1973,11 +1972,11 @@ const _l = /* @__PURE__ */ Y(Al, [["render", Tl], ["__scopeId", "data-v-6eb7f225
|
|
|
1973
1972
|
ref: "providerConfig"
|
|
1974
1973
|
};
|
|
1975
1974
|
function El(e, o, t, n, a, i) {
|
|
1976
|
-
return
|
|
1975
|
+
return E(), R("div", Ml, [
|
|
1977
1976
|
ft(e.$slots, "default")
|
|
1978
1977
|
], 512);
|
|
1979
1978
|
}
|
|
1980
|
-
const Fl = /* @__PURE__ */ Y(Il, [["render", El]]), Ol =
|
|
1979
|
+
const Fl = /* @__PURE__ */ Y(Il, [["render", El]]), Ol = te(Fl), Mo = {
|
|
1981
1980
|
...le,
|
|
1982
1981
|
name: "文本",
|
|
1983
1982
|
keyName: "文本",
|
|
@@ -2000,40 +1999,40 @@ const Fl = /* @__PURE__ */ Y(Il, [["render", El]]), Ol = ee(Fl), Mo = {
|
|
|
2000
1999
|
target: "self",
|
|
2001
2000
|
href: "",
|
|
2002
2001
|
linkPage: ""
|
|
2003
|
-
}, Eo = oe(Mo), Rl = ["refreshData", "click"], Dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",
|
|
2002
|
+
}, Eo = oe(Mo), Rl = ["refreshData", "click"], Dl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=", zl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==", Nl = Z({
|
|
2004
2003
|
name: "EcanText",
|
|
2005
2004
|
components: { Skeleton: mt },
|
|
2006
2005
|
props: {
|
|
2007
2006
|
...Eo
|
|
2008
2007
|
},
|
|
2009
2008
|
setup(e) {
|
|
2010
|
-
const o = ae(e), t =
|
|
2011
|
-
|
|
2009
|
+
const o = ae(e), t = L({});
|
|
2010
|
+
ee(() => [e.data, e.dataType], ([g, y]) => {
|
|
2012
2011
|
y === "static" && (t.value = g);
|
|
2013
2012
|
}, {
|
|
2014
2013
|
immediate: !0
|
|
2015
2014
|
});
|
|
2016
|
-
const n =
|
|
2017
|
-
var
|
|
2015
|
+
const n = B(() => {
|
|
2016
|
+
var S;
|
|
2018
2017
|
const g = A(t);
|
|
2019
2018
|
let y = e.text;
|
|
2020
2019
|
y = y == null ? void 0 : y.replace(/\n|\\n/g, "<br/>"), y = y == null ? void 0 : y.replace(/\s/g, " ");
|
|
2021
2020
|
const m = y.match(/\{\s*[\w\u4e00-\u9fa5]*\s*\}/g);
|
|
2022
2021
|
if (m == null || m.length === 0)
|
|
2023
2022
|
return y;
|
|
2024
|
-
for (let
|
|
2025
|
-
const h = m[
|
|
2026
|
-
let
|
|
2027
|
-
if (
|
|
2028
|
-
const
|
|
2029
|
-
|
|
2023
|
+
for (let b = 0; b < m.length; b++) {
|
|
2024
|
+
const h = m[b], x = (S = h == null ? void 0 : h.slice(1, h.length - 1)) == null ? void 0 : S.trim();
|
|
2025
|
+
let w = g[x];
|
|
2026
|
+
if (w != null) {
|
|
2027
|
+
const $ = e.format;
|
|
2028
|
+
$ === "percentage" ? (w = +w, isNaN(w) ? y = y.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : (w = (w * 100).toFixed(2), w >= 0 ? y = y.replace(h, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Dl}"/>${w}%</span>`) : y = y.replace(h, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${zl}"/>${Math.abs(w)}%</span>`))) : $ === "percent" ? (w = +w, isNaN(w) || (w = (w * 100).toFixed(2), y = y.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}%</span>`))) : e.format === "money" ? (w = +w, isNaN(w) || (w = Rt(w), y = y.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : y = y.replace(h, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`);
|
|
2030
2029
|
} else
|
|
2031
2030
|
y = y.replace(h, e.variableDefaultValue);
|
|
2032
2031
|
}
|
|
2033
2032
|
return `<span>${y}</span>`;
|
|
2034
2033
|
}), { pageMode: a } = z(re, {
|
|
2035
2034
|
pageMode: "normal"
|
|
2036
|
-
}), i =
|
|
2035
|
+
}), i = we(e), r = L(!1), s = async () => {
|
|
2037
2036
|
var g;
|
|
2038
2037
|
if (A(a) !== "design")
|
|
2039
2038
|
try {
|
|
@@ -2051,7 +2050,7 @@ const Fl = /* @__PURE__ */ Y(Il, [["render", El]]), Ol = ee(Fl), Mo = {
|
|
|
2051
2050
|
fe(e, {
|
|
2052
2051
|
refreshData: l
|
|
2053
2052
|
});
|
|
2054
|
-
const { setRequest: d } = z(
|
|
2053
|
+
const { setRequest: d } = z(ve, {
|
|
2055
2054
|
// @ts-ignore
|
|
2056
2055
|
// eslint-disable-next-line no-void
|
|
2057
2056
|
setRequest: ({ id: g, sortNum: y, requestFn: m }) => {
|
|
@@ -2068,10 +2067,10 @@ const Fl = /* @__PURE__ */ Y(Il, [["render", El]]), Ol = ee(Fl), Mo = {
|
|
|
2068
2067
|
if (!e.linkPage && !e.href)
|
|
2069
2068
|
return;
|
|
2070
2069
|
const g = e.linkPage || "", y = To(A(a), g), m = e.href;
|
|
2071
|
-
let
|
|
2072
|
-
|
|
2073
|
-
const
|
|
2074
|
-
|
|
2070
|
+
let S = m || y;
|
|
2071
|
+
S = he(S);
|
|
2072
|
+
const b = e.target;
|
|
2073
|
+
b == null || b === "" || (b !== "event" ? window.open(S, "_" + b) : window.parent.postMessage({
|
|
2075
2074
|
type: "openPage",
|
|
2076
2075
|
url: m
|
|
2077
2076
|
}, "*"));
|
|
@@ -2087,33 +2086,33 @@ const Fl = /* @__PURE__ */ Y(Il, [["render", El]]), Ol = ee(Fl), Mo = {
|
|
|
2087
2086
|
const $l = ["innerHTML"];
|
|
2088
2087
|
function Pl(e, o, t, n, a, i) {
|
|
2089
2088
|
const r = q("skeleton");
|
|
2090
|
-
return e.loading ? (
|
|
2089
|
+
return e.loading ? (E(), R("div", {
|
|
2091
2090
|
key: 0,
|
|
2092
2091
|
class: "skeleton-wrapper",
|
|
2093
|
-
style:
|
|
2092
|
+
style: P(e.style)
|
|
2094
2093
|
}, [
|
|
2095
2094
|
G(r, { loading: e.loading }, null, 8, ["loading"])
|
|
2096
|
-
], 4)) : (
|
|
2095
|
+
], 4)) : (E(), R("div", {
|
|
2097
2096
|
key: 1,
|
|
2098
2097
|
class: "ecan-text",
|
|
2099
|
-
style:
|
|
2098
|
+
style: P(e.style),
|
|
2100
2099
|
innerHTML: e.myText,
|
|
2101
2100
|
onClick: o[0] || (o[0] = (...s) => e.click && e.click(...s))
|
|
2102
2101
|
}, null, 12, $l));
|
|
2103
2102
|
}
|
|
2104
|
-
const Bl = /* @__PURE__ */ Y(
|
|
2103
|
+
const Bl = /* @__PURE__ */ Y(Nl, [["render", Pl], ["__scopeId", "data-v-1cb788d9"]]), Gl = te(Bl), Ul = Z({
|
|
2105
2104
|
name: "EcanScrollText",
|
|
2106
2105
|
setup() {
|
|
2107
2106
|
return {
|
|
2108
|
-
text:
|
|
2107
|
+
text: L("基础文本")
|
|
2109
2108
|
};
|
|
2110
2109
|
}
|
|
2111
2110
|
});
|
|
2112
2111
|
const ql = { class: "red" };
|
|
2113
2112
|
function jl(e, o, t, n, a, i) {
|
|
2114
|
-
return
|
|
2113
|
+
return E(), R("div", ql, me(e.text), 1);
|
|
2115
2114
|
}
|
|
2116
|
-
const Wl = /* @__PURE__ */ Y(Ul, [["render", jl], ["__scopeId", "data-v-4dd9c03e"]]), Vl =
|
|
2115
|
+
const Wl = /* @__PURE__ */ Y(Ul, [["render", jl], ["__scopeId", "data-v-4dd9c03e"]]), Vl = te(Wl), Fo = {
|
|
2117
2116
|
...le,
|
|
2118
2117
|
name: "时间展示",
|
|
2119
2118
|
keyName: "时间展示",
|
|
@@ -2134,7 +2133,7 @@ const Wl = /* @__PURE__ */ Y(Ul, [["render", jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2134
2133
|
...Oo
|
|
2135
2134
|
},
|
|
2136
2135
|
setup(e) {
|
|
2137
|
-
const o = ae(e), t =
|
|
2136
|
+
const o = ae(e), t = L(_e().format(e.format));
|
|
2138
2137
|
let n = null;
|
|
2139
2138
|
const a = () => {
|
|
2140
2139
|
clearInterval(n), n = null;
|
|
@@ -2145,7 +2144,7 @@ const Wl = /* @__PURE__ */ Y(Ul, [["render", jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2145
2144
|
};
|
|
2146
2145
|
return Ze(() => {
|
|
2147
2146
|
i();
|
|
2148
|
-
}),
|
|
2147
|
+
}), ut(() => {
|
|
2149
2148
|
a();
|
|
2150
2149
|
}), {
|
|
2151
2150
|
style: o,
|
|
@@ -2154,12 +2153,12 @@ const Wl = /* @__PURE__ */ Y(Ul, [["render", jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2154
2153
|
}
|
|
2155
2154
|
});
|
|
2156
2155
|
function Zl(e, o, t, n, a, i) {
|
|
2157
|
-
return
|
|
2156
|
+
return E(), R("div", {
|
|
2158
2157
|
class: "time-display",
|
|
2159
|
-
style:
|
|
2158
|
+
style: P(e.style)
|
|
2160
2159
|
}, me(e.time), 5);
|
|
2161
2160
|
}
|
|
2162
|
-
const Jl = /* @__PURE__ */ Y(Hl, [["render", Zl], ["__scopeId", "data-v-07d3cde3"]]), Yl =
|
|
2161
|
+
const Jl = /* @__PURE__ */ Y(Hl, [["render", Zl], ["__scopeId", "data-v-07d3cde3"]]), Yl = te(Jl), Ro = {
|
|
2163
2162
|
...le,
|
|
2164
2163
|
type: "ecanList",
|
|
2165
2164
|
name: "列表",
|
|
@@ -2199,35 +2198,35 @@ const Jl = /* @__PURE__ */ Y(Hl, [["render", Zl], ["__scopeId", "data-v-07d3cde3
|
|
|
2199
2198
|
...Do
|
|
2200
2199
|
},
|
|
2201
2200
|
setup(e) {
|
|
2202
|
-
const o =
|
|
2201
|
+
const o = L(e.data), t = ae(e, ["backgroundColor"]), n = B(() => e.useRanking ? {
|
|
2203
2202
|
textAlign: "center"
|
|
2204
2203
|
} : {
|
|
2205
2204
|
textAlign: "left"
|
|
2206
|
-
}), a = (m,
|
|
2207
|
-
money:
|
|
2208
|
-
percentage:
|
|
2209
|
-
contrast:
|
|
2210
|
-
}[
|
|
2211
|
-
const
|
|
2212
|
-
if (
|
|
2205
|
+
}), a = (m, S) => S == null || S === "" ? m : {
|
|
2206
|
+
money: Rt,
|
|
2207
|
+
percentage: dt,
|
|
2208
|
+
contrast: dt
|
|
2209
|
+
}[S](m) || "", i = (m, S) => {
|
|
2210
|
+
const b = parseFloat(m + "");
|
|
2211
|
+
if (S !== "contrast")
|
|
2213
2212
|
return "";
|
|
2214
2213
|
switch (!0) {
|
|
2215
|
-
case
|
|
2214
|
+
case b >= 0:
|
|
2216
2215
|
return "goUp";
|
|
2217
|
-
case
|
|
2216
|
+
case b < 0:
|
|
2218
2217
|
return "goDown";
|
|
2219
2218
|
}
|
|
2220
|
-
}, r =
|
|
2219
|
+
}, r = we(e), { pageMode: s } = z(re, {
|
|
2221
2220
|
pageMode: "normal"
|
|
2222
|
-
}), l =
|
|
2221
|
+
}), l = L(!1), d = async () => {
|
|
2223
2222
|
var m;
|
|
2224
2223
|
if (!(e.dataType !== "request" || A(s) === "design"))
|
|
2225
2224
|
try {
|
|
2226
2225
|
l.value = !0;
|
|
2227
|
-
const
|
|
2228
|
-
o.value = ((m =
|
|
2229
|
-
} catch (
|
|
2230
|
-
console.error(
|
|
2226
|
+
const S = await r();
|
|
2227
|
+
o.value = ((m = S == null ? void 0 : S.data) == null ? void 0 : m.data.rows) || [];
|
|
2228
|
+
} catch (S) {
|
|
2229
|
+
console.error(S);
|
|
2231
2230
|
} finally {
|
|
2232
2231
|
l.value = !1;
|
|
2233
2232
|
}
|
|
@@ -2238,10 +2237,10 @@ const Jl = /* @__PURE__ */ Y(Hl, [["render", Zl], ["__scopeId", "data-v-07d3cde3
|
|
|
2238
2237
|
fe(e, {
|
|
2239
2238
|
refreshData: c
|
|
2240
2239
|
});
|
|
2241
|
-
const { setRequest: y } = z(
|
|
2240
|
+
const { setRequest: y } = z(ve, {
|
|
2242
2241
|
// @ts-ignore
|
|
2243
2242
|
// eslint-disable-next-line no-void
|
|
2244
|
-
setRequest: ({ id: m, sortNum:
|
|
2243
|
+
setRequest: ({ id: m, sortNum: S, requestFn: b }) => {
|
|
2245
2244
|
}
|
|
2246
2245
|
});
|
|
2247
2246
|
return y({
|
|
@@ -2259,7 +2258,7 @@ const Jl = /* @__PURE__ */ Y(Hl, [["render", Zl], ["__scopeId", "data-v-07d3cde3
|
|
|
2259
2258
|
};
|
|
2260
2259
|
}
|
|
2261
2260
|
});
|
|
2262
|
-
const Xl = (e) => (
|
|
2261
|
+
const Xl = (e) => (io("data-v-baf2ff0c"), e = e(), ro(), e), ei = {
|
|
2263
2262
|
key: 0,
|
|
2264
2263
|
class: "title"
|
|
2265
2264
|
}, ti = {
|
|
@@ -2271,22 +2270,22 @@ const Xl = (e) => (lo("data-v-baf2ff0c"), e = e(), io(), e), ei = {
|
|
|
2271
2270
|
}, ni = {
|
|
2272
2271
|
key: 0,
|
|
2273
2272
|
class: "ranking"
|
|
2274
|
-
}, ai = /* @__PURE__ */ Xl(() => /* @__PURE__ */
|
|
2273
|
+
}, ai = /* @__PURE__ */ Xl(() => /* @__PURE__ */ K("div", { class: "icon" }, null, -1)), li = { class: "sort" }, ii = {
|
|
2275
2274
|
key: 2,
|
|
2276
2275
|
class: "empty"
|
|
2277
2276
|
};
|
|
2278
2277
|
function ri(e, o, t, n, a, i) {
|
|
2279
2278
|
const r = q("skeleton");
|
|
2280
|
-
return
|
|
2279
|
+
return E(), R("div", {
|
|
2281
2280
|
class: "ecan-list",
|
|
2282
|
-
style:
|
|
2281
|
+
style: P(e.style)
|
|
2283
2282
|
}, [
|
|
2284
2283
|
G(r, { loading: e.loading }, {
|
|
2285
2284
|
default: V(() => [
|
|
2286
|
-
e.useTitle ? (
|
|
2287
|
-
(
|
|
2285
|
+
e.useTitle ? (E(), R("div", ei, [
|
|
2286
|
+
(E(!0), R(xe, null, Te(e.columnCount, (s) => (E(), R("div", {
|
|
2288
2287
|
class: "title-inner",
|
|
2289
|
-
style:
|
|
2288
|
+
style: P({
|
|
2290
2289
|
backgroundColor: e.backgroundColor,
|
|
2291
2290
|
height: e.itemHeight,
|
|
2292
2291
|
width: `calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount - 1}/ ${e.columnCount})`,
|
|
@@ -2294,28 +2293,28 @@ function ri(e, o, t, n, a, i) {
|
|
|
2294
2293
|
}),
|
|
2295
2294
|
key: s
|
|
2296
2295
|
}, [
|
|
2297
|
-
e.useRanking ? (
|
|
2298
|
-
(
|
|
2296
|
+
e.useRanking ? (E(), R("div", ti)) : be("", !0),
|
|
2297
|
+
(E(!0), R(xe, null, Te(e.columns, (l, d) => (E(), R("div", {
|
|
2299
2298
|
class: "column",
|
|
2300
2299
|
key: l.key || d,
|
|
2301
|
-
style:
|
|
2300
|
+
style: P({
|
|
2302
2301
|
color: l.titleColor,
|
|
2303
2302
|
...e.columnStyle
|
|
2304
2303
|
})
|
|
2305
2304
|
}, me(l.title), 5))), 128))
|
|
2306
2305
|
], 4))), 128))
|
|
2307
|
-
])) :
|
|
2308
|
-
e.dataSource.length > 0 ? (
|
|
2309
|
-
e.useTitle ? (
|
|
2306
|
+
])) : be("", !0),
|
|
2307
|
+
e.dataSource.length > 0 ? (E(), R("div", oi, [
|
|
2308
|
+
e.useTitle ? (E(), R("div", {
|
|
2310
2309
|
key: 0,
|
|
2311
2310
|
class: "title-placeholder",
|
|
2312
|
-
style:
|
|
2311
|
+
style: P({
|
|
2313
2312
|
marginBottom: e.itemRowSpan
|
|
2314
2313
|
})
|
|
2315
|
-
}, null, 4)) :
|
|
2316
|
-
(
|
|
2314
|
+
}, null, 4)) : be("", !0),
|
|
2315
|
+
(E(!0), R(xe, null, Te(e.dataSource.slice(0, e.sliceCount), (s, l) => (E(), R("div", {
|
|
2317
2316
|
class: "item",
|
|
2318
|
-
style:
|
|
2317
|
+
style: P({
|
|
2319
2318
|
backgroundColor: e.backgroundColor,
|
|
2320
2319
|
height: e.itemHeight,
|
|
2321
2320
|
width: `calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount - 1} / ${e.columnCount})`,
|
|
@@ -2325,14 +2324,14 @@ function ri(e, o, t, n, a, i) {
|
|
|
2325
2324
|
key: s.id || l,
|
|
2326
2325
|
onClick: o[0] || (o[0] = (...d) => e.click && e.click(...d))
|
|
2327
2326
|
}, [
|
|
2328
|
-
e.useRanking ? (
|
|
2327
|
+
e.useRanking ? (E(), R("div", ni, [
|
|
2329
2328
|
ai,
|
|
2330
|
-
|
|
2331
|
-
])) :
|
|
2332
|
-
(
|
|
2329
|
+
K("div", li, " Top " + me(l + 1), 1)
|
|
2330
|
+
])) : be("", !0),
|
|
2331
|
+
(E(!0), R(xe, null, Te(e.columns, (d) => (E(), R("div", {
|
|
2333
2332
|
class: At(["column", e.contrastClass(s[d.key], d.format)]),
|
|
2334
2333
|
key: d.key,
|
|
2335
|
-
style:
|
|
2334
|
+
style: P({
|
|
2336
2335
|
fontSize: d.fontSize,
|
|
2337
2336
|
color: e.contrastClass(s[d.key], d.format) === "" ? d.color : "",
|
|
2338
2337
|
fontWeight: d.fontWeight,
|
|
@@ -2340,13 +2339,13 @@ function ri(e, o, t, n, a, i) {
|
|
|
2340
2339
|
})
|
|
2341
2340
|
}, me((d.format != null || d.format !== "") && e.formatFn(s[d.key], d.format)), 7))), 128))
|
|
2342
2341
|
], 4))), 128))
|
|
2343
|
-
])) : (
|
|
2342
|
+
])) : (E(), R("div", ii, " 暂无数据 "))
|
|
2344
2343
|
]),
|
|
2345
2344
|
_: 1
|
|
2346
2345
|
}, 8, ["loading"])
|
|
2347
2346
|
], 4);
|
|
2348
2347
|
}
|
|
2349
|
-
const si = /* @__PURE__ */ Y(Kl, [["render", ri], ["__scopeId", "data-v-baf2ff0c"]]), ci =
|
|
2348
|
+
const si = /* @__PURE__ */ Y(Kl, [["render", ri], ["__scopeId", "data-v-baf2ff0c"]]), ci = te(si), zo = {
|
|
2350
2349
|
...le,
|
|
2351
2350
|
name: "占比图",
|
|
2352
2351
|
keyName: "占比图",
|
|
@@ -2369,75 +2368,75 @@ const si = /* @__PURE__ */ Y(Kl, [["render", ri], ["__scopeId", "data-v-baf2ff0c
|
|
|
2369
2368
|
lineHeight: "26px",
|
|
2370
2369
|
decimalFormat: !1,
|
|
2371
2370
|
variableDefaultValue: "0"
|
|
2372
|
-
},
|
|
2371
|
+
}, No = oe(zo), di = ["refreshData", "click"], ui = Z({
|
|
2373
2372
|
name: "EcanProportion",
|
|
2374
2373
|
components: {
|
|
2375
2374
|
AProgress: Gn,
|
|
2376
2375
|
Skeleton: mt
|
|
2377
2376
|
},
|
|
2378
2377
|
props: {
|
|
2379
|
-
...
|
|
2378
|
+
...No
|
|
2380
2379
|
},
|
|
2381
2380
|
setup(e) {
|
|
2382
2381
|
const { pageMode: o } = z(re, {
|
|
2383
2382
|
pageMode: "normal"
|
|
2384
|
-
}), t = ae(e), n =
|
|
2383
|
+
}), t = ae(e), n = B(() => {
|
|
2385
2384
|
const m = e.width;
|
|
2386
2385
|
return parseFloat(m);
|
|
2387
|
-
}), a =
|
|
2388
|
-
|
|
2386
|
+
}), a = L({});
|
|
2387
|
+
ee(() => e.data, () => {
|
|
2389
2388
|
(e.dataType === "static" || A(o) === "design") && (a.value = e.data);
|
|
2390
2389
|
}, {
|
|
2391
2390
|
immediate: !0,
|
|
2392
2391
|
deep: !0
|
|
2393
2392
|
});
|
|
2394
|
-
const i =
|
|
2395
|
-
const m = A(a),
|
|
2393
|
+
const i = B(() => {
|
|
2394
|
+
const m = A(a), S = +e.variableDefaultValue;
|
|
2396
2395
|
if (m == null)
|
|
2397
|
-
return isNaN(
|
|
2398
|
-
const
|
|
2396
|
+
return isNaN(S) ? 0 : S;
|
|
2397
|
+
const b = e.text.match(/\{.+\}/g) || [];
|
|
2399
2398
|
let h;
|
|
2400
2399
|
const x = new Set(Object.keys(m));
|
|
2401
|
-
for (let
|
|
2402
|
-
const
|
|
2400
|
+
for (let w = 0; w < b.length; w++) {
|
|
2401
|
+
const $ = b[w], I = $.slice(1, $.length - 1);
|
|
2403
2402
|
if (x.has(I)) {
|
|
2404
2403
|
h = m[I];
|
|
2405
2404
|
break;
|
|
2406
2405
|
}
|
|
2407
2406
|
}
|
|
2408
|
-
return typeof h == "number" ? h = h * 100 : typeof h == "string" && !isNaN(+h) ? h = +h * 100 : isNaN(
|
|
2409
|
-
}), r =
|
|
2407
|
+
return typeof h == "number" ? h = h * 100 : typeof h == "string" && !isNaN(+h) ? h = +h * 100 : isNaN(S) ? h = 0 : h = S * 100, e.decimalFormat && (h = +h.toFixed(2)), h;
|
|
2408
|
+
}), r = B(() => {
|
|
2410
2409
|
var x;
|
|
2411
2410
|
let m = e.text;
|
|
2412
2411
|
if (m === "")
|
|
2413
2412
|
return A(i);
|
|
2414
|
-
const
|
|
2415
|
-
for (let
|
|
2416
|
-
const
|
|
2417
|
-
let I =
|
|
2418
|
-
const
|
|
2419
|
-
for (let u = 0; u < (
|
|
2420
|
-
const p = (x =
|
|
2421
|
-
|
|
2413
|
+
const S = e.variableDefaultValue, b = A(a), h = m.match(/\{.+\}/g) || [];
|
|
2414
|
+
for (let w = 0; w < h.length; w++) {
|
|
2415
|
+
const $ = h[w];
|
|
2416
|
+
let I = $.slice(1, $.length - 1);
|
|
2417
|
+
const F = I.match(/.*/g);
|
|
2418
|
+
for (let u = 0; u < (F == null ? void 0 : F.length); u++) {
|
|
2419
|
+
const p = (x = F[w]) == null ? void 0 : x.trim();
|
|
2420
|
+
b[p] != null ? I = I.replace(p, b[p]) : I = I.replace(p, S);
|
|
2422
2421
|
}
|
|
2423
|
-
let
|
|
2422
|
+
let k = I;
|
|
2424
2423
|
try {
|
|
2425
|
-
/\w+[+\-*/%]+\w+/g.test(I) && (
|
|
2424
|
+
/\w+[+\-*/%]+\w+/g.test(I) && (k = (0, eval)(I));
|
|
2426
2425
|
} catch (u) {
|
|
2427
2426
|
console.error(u);
|
|
2428
2427
|
}
|
|
2429
|
-
(typeof
|
|
2428
|
+
(typeof k == "number" || !isNaN(+k)) && (k = +k * 100, e.decimalFormat && (k = k.toFixed(2))), m = m.replace($, k + "");
|
|
2430
2429
|
}
|
|
2431
2430
|
return m;
|
|
2432
|
-
}), s =
|
|
2431
|
+
}), s = we(e), l = L(!1), d = async () => {
|
|
2433
2432
|
var m;
|
|
2434
2433
|
if (!(e.dataType !== "request" || A(o) === "design"))
|
|
2435
2434
|
try {
|
|
2436
2435
|
l.value = !0;
|
|
2437
|
-
const
|
|
2438
|
-
a.value = ((m =
|
|
2439
|
-
} catch (
|
|
2440
|
-
console.error(
|
|
2436
|
+
const S = await s();
|
|
2437
|
+
a.value = ((m = S == null ? void 0 : S.data) == null ? void 0 : m.data) || {};
|
|
2438
|
+
} catch (S) {
|
|
2439
|
+
console.error(S);
|
|
2441
2440
|
} finally {
|
|
2442
2441
|
l.value = !1;
|
|
2443
2442
|
}
|
|
@@ -2448,10 +2447,10 @@ const si = /* @__PURE__ */ Y(Kl, [["render", ri], ["__scopeId", "data-v-baf2ff0c
|
|
|
2448
2447
|
}
|
|
2449
2448
|
});
|
|
2450
2449
|
const g = ce(e)("click", () => {
|
|
2451
|
-
}), { setRequest: y } = z(
|
|
2450
|
+
}), { setRequest: y } = z(ve, {
|
|
2452
2451
|
// @ts-ignore
|
|
2453
2452
|
// eslint-disable-next-line no-void
|
|
2454
|
-
setRequest: ({ id: m, sortNum:
|
|
2453
|
+
setRequest: ({ id: m, sortNum: S, requestFn: b }) => {
|
|
2455
2454
|
}
|
|
2456
2455
|
});
|
|
2457
2456
|
return y({
|
|
@@ -2470,9 +2469,9 @@ const si = /* @__PURE__ */ Y(Kl, [["render", ri], ["__scopeId", "data-v-baf2ff0c
|
|
|
2470
2469
|
});
|
|
2471
2470
|
function fi(e, o, t, n, a, i) {
|
|
2472
2471
|
const r = q("skeleton"), s = q("a-progress");
|
|
2473
|
-
return
|
|
2472
|
+
return E(), R("div", {
|
|
2474
2473
|
class: "ecan-proportion",
|
|
2475
|
-
style:
|
|
2474
|
+
style: P(e.style)
|
|
2476
2475
|
}, [
|
|
2477
2476
|
G(s, {
|
|
2478
2477
|
class: "progress",
|
|
@@ -2487,13 +2486,13 @@ function fi(e, o, t, n, a, i) {
|
|
|
2487
2486
|
onClick: e.click
|
|
2488
2487
|
}, {
|
|
2489
2488
|
format: V(() => [
|
|
2490
|
-
e.loading ? (
|
|
2489
|
+
e.loading ? (E(), Ie(r, {
|
|
2491
2490
|
key: 0,
|
|
2492
2491
|
loading: e.loading
|
|
2493
|
-
}, null, 8, ["loading"])) : (
|
|
2492
|
+
}, null, 8, ["loading"])) : (E(), R("div", {
|
|
2494
2493
|
key: 1,
|
|
2495
2494
|
class: "format",
|
|
2496
|
-
style:
|
|
2495
|
+
style: P({
|
|
2497
2496
|
width: e.strokeTextWidth,
|
|
2498
2497
|
fontSize: e.fontSize,
|
|
2499
2498
|
color: e.color,
|
|
@@ -2506,7 +2505,7 @@ function fi(e, o, t, n, a, i) {
|
|
|
2506
2505
|
}, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
|
|
2507
2506
|
], 4);
|
|
2508
2507
|
}
|
|
2509
|
-
const mi = /* @__PURE__ */ Y(ui, [["render", fi], ["__scopeId", "data-v-304d430d"]]), gi =
|
|
2508
|
+
const mi = /* @__PURE__ */ Y(ui, [["render", fi], ["__scopeId", "data-v-304d430d"]]), gi = te(mi), $o = {
|
|
2510
2509
|
...le,
|
|
2511
2510
|
width: "200px",
|
|
2512
2511
|
id: "",
|
|
@@ -2521,14 +2520,14 @@ const mi = /* @__PURE__ */ Y(ui, [["render", fi], ["__scopeId", "data-v-304d430d
|
|
|
2521
2520
|
}, Po = oe($o), hi = ["inputChange", "inputBlur"], yi = Z({
|
|
2522
2521
|
name: "EcanInput",
|
|
2523
2522
|
components: {
|
|
2524
|
-
AInput:
|
|
2523
|
+
AInput: co
|
|
2525
2524
|
},
|
|
2526
2525
|
props: {
|
|
2527
2526
|
...Po
|
|
2528
2527
|
},
|
|
2529
2528
|
setup(e) {
|
|
2530
|
-
const o = ae(e), t =
|
|
2531
|
-
|
|
2529
|
+
const o = ae(e), t = L("");
|
|
2530
|
+
ee(() => e.value, (c) => {
|
|
2532
2531
|
t.value = c;
|
|
2533
2532
|
}, {
|
|
2534
2533
|
immediate: !0
|
|
@@ -2550,7 +2549,7 @@ const mi = /* @__PURE__ */ Y(ui, [["render", fi], ["__scopeId", "data-v-304d430d
|
|
|
2550
2549
|
const r = () => {
|
|
2551
2550
|
const c = a(n);
|
|
2552
2551
|
i(n, { ...c, RECORD: t });
|
|
2553
|
-
}, s = ce(e), l =
|
|
2552
|
+
}, s = ce(e), l = Lt(s("inputChange", () => {
|
|
2554
2553
|
r();
|
|
2555
2554
|
}), 300), d = s("inputBlur", () => {
|
|
2556
2555
|
});
|
|
@@ -2564,9 +2563,9 @@ const mi = /* @__PURE__ */ Y(ui, [["render", fi], ["__scopeId", "data-v-304d430d
|
|
|
2564
2563
|
});
|
|
2565
2564
|
function bi(e, o, t, n, a, i) {
|
|
2566
2565
|
const r = q("a-input");
|
|
2567
|
-
return
|
|
2566
|
+
return E(), R("div", {
|
|
2568
2567
|
class: "ecan-input",
|
|
2569
|
-
style:
|
|
2568
|
+
style: P(e.style)
|
|
2570
2569
|
}, [
|
|
2571
2570
|
G(r, {
|
|
2572
2571
|
class: "input",
|
|
@@ -2578,7 +2577,7 @@ function bi(e, o, t, n, a, i) {
|
|
|
2578
2577
|
}, null, 8, ["value", "placeholder", "onChange", "onBlur"])
|
|
2579
2578
|
], 4);
|
|
2580
2579
|
}
|
|
2581
|
-
const vi = /* @__PURE__ */ Y(yi, [["render", bi]]), pi =
|
|
2580
|
+
const vi = /* @__PURE__ */ Y(yi, [["render", bi]]), pi = te(vi), Bo = {
|
|
2582
2581
|
...le,
|
|
2583
2582
|
height: "33px",
|
|
2584
2583
|
width: "130px",
|
|
@@ -2603,8 +2602,8 @@ const vi = /* @__PURE__ */ Y(yi, [["render", bi]]), pi = ee(vi), Bo = {
|
|
|
2603
2602
|
ADatePicker: Un
|
|
2604
2603
|
},
|
|
2605
2604
|
setup(e) {
|
|
2606
|
-
const o = ae(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2607
|
-
|
|
2605
|
+
const o = ae(e), t = () => document.getElementById("ProviderConfig") || document.body, n = L(null);
|
|
2606
|
+
ee(() => [e.value, e.useCurrentTime], ([s, l]) => {
|
|
2608
2607
|
let d = null;
|
|
2609
2608
|
s ? d = _e(s) : l && (d = _e()), n.value = d;
|
|
2610
2609
|
}, {
|
|
@@ -2634,11 +2633,11 @@ const vi = /* @__PURE__ */ Y(yi, [["render", bi]]), pi = ee(vi), Bo = {
|
|
|
2634
2633
|
};
|
|
2635
2634
|
}
|
|
2636
2635
|
});
|
|
2637
|
-
function
|
|
2636
|
+
function wi(e, o, t, n, a, i) {
|
|
2638
2637
|
const r = q("a-date-picker");
|
|
2639
|
-
return
|
|
2638
|
+
return E(), R("div", {
|
|
2640
2639
|
class: "ecan-date-picker",
|
|
2641
|
-
style:
|
|
2640
|
+
style: P(e.style)
|
|
2642
2641
|
}, [
|
|
2643
2642
|
G(r, {
|
|
2644
2643
|
class: "date-picker",
|
|
@@ -2654,7 +2653,7 @@ function ki(e, o, t, n, a, i) {
|
|
|
2654
2653
|
}, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "getPopupContainer"])
|
|
2655
2654
|
], 4);
|
|
2656
2655
|
}
|
|
2657
|
-
const
|
|
2656
|
+
const ki = /* @__PURE__ */ Y(Si, [["render", wi]]), Ai = te(ki), Uo = {
|
|
2658
2657
|
...le,
|
|
2659
2658
|
name: "选择器",
|
|
2660
2659
|
keyName: "选择器",
|
|
@@ -2679,22 +2678,22 @@ const wi = /* @__PURE__ */ Y(Si, [["render", ki]]), Ai = ee(wi), Uo = {
|
|
|
2679
2678
|
...qo
|
|
2680
2679
|
},
|
|
2681
2680
|
setup(e) {
|
|
2682
|
-
const o = ae(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2681
|
+
const o = ae(e), t = () => document.getElementById("ProviderConfig") || document.body, n = we(e), { pageMode: a } = z(re, {
|
|
2683
2682
|
pageMode: "normal"
|
|
2684
|
-
}), i =
|
|
2685
|
-
const x = s.label,
|
|
2686
|
-
let
|
|
2687
|
-
const I = h[x],
|
|
2688
|
-
return I != null ?
|
|
2689
|
-
}, d =
|
|
2690
|
-
var
|
|
2683
|
+
}), i = L(e.data), r = L(e.value || e.data[0]), s = e.dataFieldNames, l = (b, h) => {
|
|
2684
|
+
const x = s.label, w = s.value;
|
|
2685
|
+
let $;
|
|
2686
|
+
const I = h[x], F = h[w];
|
|
2687
|
+
return I != null ? $ = I : F != null && ($ = F), ($ == null ? void 0 : $.toLowerCase().indexOf(b == null ? void 0 : b.toLowerCase())) >= 0;
|
|
2688
|
+
}, d = L(!1), c = async () => {
|
|
2689
|
+
var b, h;
|
|
2691
2690
|
if (!(e.dataType !== "request" || A(a) === "design")) {
|
|
2692
2691
|
d.value = !0;
|
|
2693
2692
|
try {
|
|
2694
2693
|
const x = await n();
|
|
2695
|
-
i.value = ((h = (
|
|
2696
|
-
const
|
|
2697
|
-
e.value === "" &&
|
|
2694
|
+
i.value = ((h = (b = x == null ? void 0 : x.data) == null ? void 0 : b.data) == null ? void 0 : h.rows) || [];
|
|
2695
|
+
const w = A(i)[0];
|
|
2696
|
+
e.value === "" && w != null && (r.value = w[s.value]);
|
|
2698
2697
|
} catch (x) {
|
|
2699
2698
|
console.error(x);
|
|
2700
2699
|
} finally {
|
|
@@ -2704,11 +2703,11 @@ const wi = /* @__PURE__ */ Y(Si, [["render", ki]]), Ai = ee(wi), Uo = {
|
|
|
2704
2703
|
}, { getGlobalModel: f, setGlobalModel: g } = z(se, {
|
|
2705
2704
|
// @ts-ignore
|
|
2706
2705
|
// eslint-disable-next-line no-void
|
|
2707
|
-
getGlobalModel: (
|
|
2706
|
+
getGlobalModel: (b) => {
|
|
2708
2707
|
},
|
|
2709
2708
|
// @ts-ignore
|
|
2710
2709
|
// eslint-disable-next-line no-void
|
|
2711
|
-
setGlobalModel: (
|
|
2710
|
+
setGlobalModel: (b, h) => {
|
|
2712
2711
|
}
|
|
2713
2712
|
});
|
|
2714
2713
|
g(e.id, {
|
|
@@ -2716,19 +2715,19 @@ const wi = /* @__PURE__ */ Y(Si, [["render", ki]]), Ai = ee(wi), Uo = {
|
|
|
2716
2715
|
value: r
|
|
2717
2716
|
});
|
|
2718
2717
|
const m = ce(e)("selectChange", () => {
|
|
2719
|
-
const
|
|
2720
|
-
g(
|
|
2718
|
+
const b = e.id, h = f(b);
|
|
2719
|
+
g(b, { ...h, RECORD: r });
|
|
2721
2720
|
});
|
|
2722
2721
|
fe(e, {
|
|
2723
2722
|
selectChange: m
|
|
2724
2723
|
});
|
|
2725
|
-
const { setRequest:
|
|
2724
|
+
const { setRequest: S } = z(ve, {
|
|
2726
2725
|
// @ts-ignore
|
|
2727
2726
|
// eslint-disable-next-line no-void
|
|
2728
|
-
setRequest: ({ id:
|
|
2727
|
+
setRequest: ({ id: b, sortNum: h, requestFn: x }) => {
|
|
2729
2728
|
}
|
|
2730
2729
|
});
|
|
2731
|
-
return
|
|
2730
|
+
return S({
|
|
2732
2731
|
id: e.id,
|
|
2733
2732
|
requestFn: c,
|
|
2734
2733
|
sortNum: e.requestSort
|
|
@@ -2745,9 +2744,9 @@ const wi = /* @__PURE__ */ Y(Si, [["render", ki]]), Ai = ee(wi), Uo = {
|
|
|
2745
2744
|
});
|
|
2746
2745
|
function _i(e, o, t, n, a, i) {
|
|
2747
2746
|
const r = q("a-select");
|
|
2748
|
-
return
|
|
2747
|
+
return E(), R("div", {
|
|
2749
2748
|
class: "ecan-select",
|
|
2750
|
-
style:
|
|
2749
|
+
style: P(e.style)
|
|
2751
2750
|
}, [
|
|
2752
2751
|
G(r, {
|
|
2753
2752
|
class: "select",
|
|
@@ -2765,7 +2764,7 @@ function _i(e, o, t, n, a, i) {
|
|
|
2765
2764
|
}, null, 8, ["value", "options", "mode", "getPopupContainer", "field-names", "maxTagCount", "filter-option", "onChange", "loading"])
|
|
2766
2765
|
], 4);
|
|
2767
2766
|
}
|
|
2768
|
-
const Li = /* @__PURE__ */ Y(Ti, [["render", _i], ["__scopeId", "data-v-dd2bcf63"]]), Ii =
|
|
2767
|
+
const Li = /* @__PURE__ */ Y(Ti, [["render", _i], ["__scopeId", "data-v-dd2bcf63"]]), Ii = te(Li), jo = {
|
|
2769
2768
|
...le,
|
|
2770
2769
|
name: "范围选择器",
|
|
2771
2770
|
keyName: "范围选择器",
|
|
@@ -2788,10 +2787,10 @@ const Li = /* @__PURE__ */ Y(Ti, [["render", _i], ["__scopeId", "data-v-dd2bcf63
|
|
|
2788
2787
|
...Wo
|
|
2789
2788
|
},
|
|
2790
2789
|
setup(e) {
|
|
2791
|
-
const o = ae(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2792
|
-
|
|
2793
|
-
let m = null,
|
|
2794
|
-
f && (m = _e().subtract(g, y),
|
|
2790
|
+
const o = ae(e), t = () => document.getElementById("ProviderConfig") || document.body, n = L([null, null]);
|
|
2791
|
+
ee(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit], ([d, c, f, g, y]) => {
|
|
2792
|
+
let m = null, S = null;
|
|
2793
|
+
f && (m = _e().subtract(g, y), S = _e()), d && (m = _e(d)), c && (S = _e(c)), n.value = [m, S];
|
|
2795
2794
|
}, {
|
|
2796
2795
|
immediate: !0
|
|
2797
2796
|
});
|
|
@@ -2800,7 +2799,7 @@ const Li = /* @__PURE__ */ Y(Ti, [["render", _i], ["__scopeId", "data-v-dd2bcf63
|
|
|
2800
2799
|
// eslint-disable-next-line no-void
|
|
2801
2800
|
setGlobalModel: (d, c) => {
|
|
2802
2801
|
}
|
|
2803
|
-
}), i =
|
|
2802
|
+
}), i = B(() => A(n)[0]), r = B(() => A(n)[1]);
|
|
2804
2803
|
a(e.id, {
|
|
2805
2804
|
type: e.type,
|
|
2806
2805
|
format: e.format,
|
|
@@ -2822,9 +2821,9 @@ const Li = /* @__PURE__ */ Y(Ti, [["render", _i], ["__scopeId", "data-v-dd2bcf63
|
|
|
2822
2821
|
});
|
|
2823
2822
|
function Fi(e, o, t, n, a, i) {
|
|
2824
2823
|
const r = q("a-range-picker");
|
|
2825
|
-
return
|
|
2824
|
+
return E(), R("div", {
|
|
2826
2825
|
class: "ecan-range-picker",
|
|
2827
|
-
style:
|
|
2826
|
+
style: P(e.style)
|
|
2828
2827
|
}, [
|
|
2829
2828
|
G(r, {
|
|
2830
2829
|
class: "range-picker",
|
|
@@ -2839,7 +2838,7 @@ function Fi(e, o, t, n, a, i) {
|
|
|
2839
2838
|
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
|
|
2840
2839
|
], 4);
|
|
2841
2840
|
}
|
|
2842
|
-
const Oi = /* @__PURE__ */ Y(Ei, [["render", Fi], ["__scopeId", "data-v-81675950"]]), Ri =
|
|
2841
|
+
const Oi = /* @__PURE__ */ Y(Ei, [["render", Fi], ["__scopeId", "data-v-81675950"]]), Ri = te(Oi), Vo = {
|
|
2843
2842
|
...le,
|
|
2844
2843
|
width: "200px",
|
|
2845
2844
|
name: "按钮",
|
|
@@ -2853,7 +2852,7 @@ const Oi = /* @__PURE__ */ Y(Ei, [["render", Fi], ["__scopeId", "data-v-81675950
|
|
|
2853
2852
|
target: "self",
|
|
2854
2853
|
fontSize: "14px",
|
|
2855
2854
|
fontWeight: 400
|
|
2856
|
-
}, Ho = oe(Vo), Di = ["click"],
|
|
2855
|
+
}, Ho = oe(Vo), Di = ["click"], zi = Z({
|
|
2857
2856
|
name: "EcanButton",
|
|
2858
2857
|
components: {
|
|
2859
2858
|
AButton: Wn
|
|
@@ -2868,7 +2867,7 @@ const Oi = /* @__PURE__ */ Y(Ei, [["render", Fi], ["__scopeId", "data-v-81675950
|
|
|
2868
2867
|
type: "openPage",
|
|
2869
2868
|
url: s
|
|
2870
2869
|
}, "*");
|
|
2871
|
-
}), a =
|
|
2870
|
+
}), a = B(() => he(e.text)), i = B(() => he(e.href) || null), r = B(() => {
|
|
2872
2871
|
const s = e.target;
|
|
2873
2872
|
if (!(s === "event" || A(i) == null))
|
|
2874
2873
|
return {
|
|
@@ -2885,11 +2884,11 @@ const Oi = /* @__PURE__ */ Y(Ei, [["render", Fi], ["__scopeId", "data-v-81675950
|
|
|
2885
2884
|
};
|
|
2886
2885
|
}
|
|
2887
2886
|
});
|
|
2888
|
-
function
|
|
2887
|
+
function Ni(e, o, t, n, a, i) {
|
|
2889
2888
|
const r = q("a-button");
|
|
2890
|
-
return
|
|
2889
|
+
return E(), R("div", {
|
|
2891
2890
|
class: "ecan-button",
|
|
2892
|
-
style:
|
|
2891
|
+
style: P(e.style)
|
|
2893
2892
|
}, [
|
|
2894
2893
|
G(r, {
|
|
2895
2894
|
block: "",
|
|
@@ -2901,8 +2900,8 @@ function zi(e, o, t, n, a, i) {
|
|
|
2901
2900
|
target: e.myTarget
|
|
2902
2901
|
}, {
|
|
2903
2902
|
default: V(() => [
|
|
2904
|
-
|
|
2905
|
-
style:
|
|
2903
|
+
K("span", {
|
|
2904
|
+
style: P({
|
|
2906
2905
|
fontSize: e.fontSize,
|
|
2907
2906
|
fontWeight: e.fontWeight
|
|
2908
2907
|
})
|
|
@@ -2912,7 +2911,7 @@ function zi(e, o, t, n, a, i) {
|
|
|
2912
2911
|
}, 8, ["onClick", "type", "danger", "shape", "href", "target"])
|
|
2913
2912
|
], 4);
|
|
2914
2913
|
}
|
|
2915
|
-
const $i = /* @__PURE__ */ Y(
|
|
2914
|
+
const $i = /* @__PURE__ */ Y(zi, [["render", Ni]]), Pi = te($i), Zo = {
|
|
2916
2915
|
...le,
|
|
2917
2916
|
width: "240px",
|
|
2918
2917
|
id: "",
|
|
@@ -2931,33 +2930,33 @@ const $i = /* @__PURE__ */ Y(Ni, [["render", zi]]), Pi = ee($i), Zo = {
|
|
|
2931
2930
|
}, Jo = oe(Zo), Bi = ["checkboxChange"], Gi = Z({
|
|
2932
2931
|
name: "EcanCheckbox",
|
|
2933
2932
|
components: {
|
|
2934
|
-
ACheckboxGroup:
|
|
2933
|
+
ACheckboxGroup: uo
|
|
2935
2934
|
},
|
|
2936
2935
|
props: {
|
|
2937
2936
|
...Jo
|
|
2938
2937
|
},
|
|
2939
2938
|
setup(e) {
|
|
2940
|
-
const o = ae(e), t =
|
|
2941
|
-
const
|
|
2942
|
-
let
|
|
2939
|
+
const o = ae(e), t = L([]), n = L([]), a = (m) => {
|
|
2940
|
+
const S = e.value;
|
|
2941
|
+
let b = [];
|
|
2943
2942
|
m.forEach((h) => {
|
|
2944
|
-
h.checked &&
|
|
2945
|
-
}), typeof
|
|
2943
|
+
h.checked && b.push(h.value);
|
|
2944
|
+
}), typeof S == "string" && S !== "" ? b = b.concat(S.split(",")) : Array.isArray(S) && (b = b.concat(S)), t.value = m, n.value = b;
|
|
2946
2945
|
};
|
|
2947
|
-
|
|
2946
|
+
ee(() => [e.data, e.value], ([m]) => {
|
|
2948
2947
|
a(m);
|
|
2949
2948
|
}, {
|
|
2950
2949
|
immediate: !0,
|
|
2951
2950
|
deep: !0
|
|
2952
2951
|
});
|
|
2953
|
-
const i =
|
|
2952
|
+
const i = we(e), { pageMode: r } = z(re, {
|
|
2954
2953
|
pageMode: "normal"
|
|
2955
2954
|
}), s = async () => {
|
|
2956
|
-
var
|
|
2955
|
+
var b, h;
|
|
2957
2956
|
if (e.dataType !== "request" || A(r) === "design")
|
|
2958
2957
|
return;
|
|
2959
|
-
const m = await i(),
|
|
2960
|
-
a(
|
|
2958
|
+
const m = await i(), S = ((h = (b = m == null ? void 0 : m.data) == null ? void 0 : b.data) == null ? void 0 : h.rows) || [];
|
|
2959
|
+
a(S);
|
|
2961
2960
|
}, l = e.id, { getGlobalModel: d, setGlobalModel: c } = z(se, {
|
|
2962
2961
|
// @ts-ignore
|
|
2963
2962
|
// eslint-disable-next-line no-void
|
|
@@ -2965,7 +2964,7 @@ const $i = /* @__PURE__ */ Y(Ni, [["render", zi]]), Pi = ee($i), Zo = {
|
|
|
2965
2964
|
},
|
|
2966
2965
|
// @ts-ignore
|
|
2967
2966
|
// eslint-disable-next-line no-void
|
|
2968
|
-
setGlobalModel: (m,
|
|
2967
|
+
setGlobalModel: (m, S) => {
|
|
2969
2968
|
}
|
|
2970
2969
|
});
|
|
2971
2970
|
c(e.id, {
|
|
@@ -2975,10 +2974,10 @@ const $i = /* @__PURE__ */ Y(Ni, [["render", zi]]), Pi = ee($i), Zo = {
|
|
|
2975
2974
|
const g = ce(e)("checkboxChange", () => {
|
|
2976
2975
|
const m = d(l);
|
|
2977
2976
|
c(l, { ...m, RECORD: n });
|
|
2978
|
-
}), { setRequest: y } = z(
|
|
2977
|
+
}), { setRequest: y } = z(ve, {
|
|
2979
2978
|
// @ts-ignore
|
|
2980
2979
|
// eslint-disable-next-line no-void
|
|
2981
|
-
setRequest: ({ id: m, sortNum:
|
|
2980
|
+
setRequest: ({ id: m, sortNum: S, requestFn: b }) => {
|
|
2982
2981
|
}
|
|
2983
2982
|
});
|
|
2984
2983
|
return y({
|
|
@@ -2995,9 +2994,9 @@ const $i = /* @__PURE__ */ Y(Ni, [["render", zi]]), Pi = ee($i), Zo = {
|
|
|
2995
2994
|
});
|
|
2996
2995
|
function Ui(e, o, t, n, a, i) {
|
|
2997
2996
|
const r = q("a-checkbox-group");
|
|
2998
|
-
return
|
|
2997
|
+
return E(), R("div", {
|
|
2999
2998
|
class: "ecan-checkbox",
|
|
3000
|
-
style:
|
|
2999
|
+
style: P(e.style)
|
|
3001
3000
|
}, [
|
|
3002
3001
|
G(r, {
|
|
3003
3002
|
options: e.myOption,
|
|
@@ -3007,7 +3006,7 @@ function Ui(e, o, t, n, a, i) {
|
|
|
3007
3006
|
}, null, 8, ["options", "value", "onChange"])
|
|
3008
3007
|
], 4);
|
|
3009
3008
|
}
|
|
3010
|
-
const qi = /* @__PURE__ */ Y(Gi, [["render", Ui]]), ji =
|
|
3009
|
+
const qi = /* @__PURE__ */ Y(Gi, [["render", Ui]]), ji = te(qi), Yo = {
|
|
3011
3010
|
...le,
|
|
3012
3011
|
id: "",
|
|
3013
3012
|
name: "饼图",
|
|
@@ -3068,20 +3067,20 @@ const qi = /* @__PURE__ */ Y(Gi, [["render", Ui]]), ji = ee(qi), Yo = {
|
|
|
3068
3067
|
toolboxIconStyleBorderColor: "#666",
|
|
3069
3068
|
toolboxDownloadUrl: "",
|
|
3070
3069
|
toolboxInfoText: "当前无说明信息"
|
|
3071
|
-
}, Qo = oe(Yo), Wi = ["click", "refreshData", "resetRecord"],
|
|
3070
|
+
}, Qo = oe(Yo), Wi = ["click", "refreshData", "resetRecord"], tt = async (e) => {
|
|
3072
3071
|
var l;
|
|
3073
3072
|
const o = await Fe.post(e, {}, {
|
|
3074
3073
|
responseType: "blob"
|
|
3075
3074
|
}), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), i = new Blob([t]), r = document.createElement("a"), s = window.URL.createObjectURL(i);
|
|
3076
3075
|
r.href = s, r.download = decodeURI(a), r.style.display = "none", document.body.appendChild(r), r.click(), (l = r.parentNode) == null || l.removeChild(r), window.URL.revokeObjectURL(s);
|
|
3077
3076
|
};
|
|
3078
|
-
|
|
3077
|
+
Ne([
|
|
3079
3078
|
$e,
|
|
3080
3079
|
ea,
|
|
3081
|
-
Ye,
|
|
3082
3080
|
Qe,
|
|
3083
|
-
|
|
3084
|
-
|
|
3081
|
+
Ke,
|
|
3082
|
+
Mt,
|
|
3083
|
+
Xe
|
|
3085
3084
|
]);
|
|
3086
3085
|
const Vi = Z({
|
|
3087
3086
|
name: "EcanPie",
|
|
@@ -3089,19 +3088,19 @@ const Vi = Z({
|
|
|
3089
3088
|
...Qo
|
|
3090
3089
|
},
|
|
3091
3090
|
components: {
|
|
3092
|
-
Spin:
|
|
3091
|
+
Spin: et,
|
|
3093
3092
|
Echarts: Re,
|
|
3094
3093
|
AModal: Se
|
|
3095
3094
|
},
|
|
3096
3095
|
setup(e) {
|
|
3097
|
-
const o = ae(e), t =
|
|
3096
|
+
const o = ae(e), t = L([]), n = L(!1), a = () => {
|
|
3098
3097
|
n.value = !1;
|
|
3099
|
-
}, i =
|
|
3100
|
-
let { data:
|
|
3098
|
+
}, i = B(() => {
|
|
3099
|
+
let { data: F = [] } = A(t)[0] || {};
|
|
3101
3100
|
if (Array.isArray(e.colors)) {
|
|
3102
|
-
const
|
|
3103
|
-
|
|
3104
|
-
label:
|
|
3101
|
+
const k = e.isUseLabelColors, u = e.colors;
|
|
3102
|
+
F = F.map((p, v) => ({
|
|
3103
|
+
label: k ? { color: u[v] } : {},
|
|
3105
3104
|
...p
|
|
3106
3105
|
}));
|
|
3107
3106
|
}
|
|
@@ -3118,7 +3117,7 @@ const Vi = Z({
|
|
|
3118
3117
|
title: "数据下载",
|
|
3119
3118
|
icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
|
|
3120
3119
|
onclick() {
|
|
3121
|
-
|
|
3120
|
+
tt(e.toolboxDownloadUrl);
|
|
3122
3121
|
}
|
|
3123
3122
|
},
|
|
3124
3123
|
myDataZoom: {
|
|
@@ -3158,17 +3157,17 @@ const Vi = Z({
|
|
|
3158
3157
|
tooltip: {
|
|
3159
3158
|
show: e.tooltipShow,
|
|
3160
3159
|
trigger: e.tooltipTrigger,
|
|
3161
|
-
formatter: (
|
|
3162
|
-
const { marker: u, seriesName: p, name:
|
|
3160
|
+
formatter: (k) => {
|
|
3161
|
+
const { marker: u, seriesName: p, name: v, value: _, percent: C, data: T } = k || {};
|
|
3163
3162
|
return he(
|
|
3164
3163
|
e.tooltipFormatter,
|
|
3165
3164
|
{
|
|
3166
3165
|
marker: u,
|
|
3167
|
-
name:
|
|
3166
|
+
name: v,
|
|
3168
3167
|
value: _,
|
|
3169
3168
|
percent: C,
|
|
3170
3169
|
a: p,
|
|
3171
|
-
b,
|
|
3170
|
+
b: v,
|
|
3172
3171
|
c: _,
|
|
3173
3172
|
d: C,
|
|
3174
3173
|
...T
|
|
@@ -3196,7 +3195,7 @@ const Vi = Z({
|
|
|
3196
3195
|
color: e.colors,
|
|
3197
3196
|
series: [
|
|
3198
3197
|
{
|
|
3199
|
-
data:
|
|
3198
|
+
data: F,
|
|
3200
3199
|
type: "pie",
|
|
3201
3200
|
radius: [e.innerRadius, e.outerRadius],
|
|
3202
3201
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3210,7 +3209,7 @@ const Vi = Z({
|
|
|
3210
3209
|
color: e.labelColor,
|
|
3211
3210
|
fontSize: e.labelFontSize,
|
|
3212
3211
|
position: e.labelPosition,
|
|
3213
|
-
formatter:
|
|
3212
|
+
formatter: wl(e.labelFormatter)
|
|
3214
3213
|
},
|
|
3215
3214
|
labelLine: {
|
|
3216
3215
|
show: e.labelLineShow,
|
|
@@ -3233,54 +3232,54 @@ const Vi = Z({
|
|
|
3233
3232
|
}), { getGlobalModel: r, setGlobalModel: s } = z(se, {
|
|
3234
3233
|
// @ts-ignore
|
|
3235
3234
|
// eslint-disable-next-line no-void
|
|
3236
|
-
getGlobalModel: (
|
|
3235
|
+
getGlobalModel: (F) => {
|
|
3237
3236
|
},
|
|
3238
3237
|
// @ts-ignore
|
|
3239
3238
|
// eslint-disable-next-line no-void
|
|
3240
|
-
setGlobalModel: (
|
|
3239
|
+
setGlobalModel: (F, k) => {
|
|
3241
3240
|
}
|
|
3242
3241
|
}), { pageMode: l } = z(re, {
|
|
3243
3242
|
pageMode: "normal"
|
|
3244
|
-
}), d = (
|
|
3245
|
-
const { dataset: u } =
|
|
3243
|
+
}), d = (F = [], k) => {
|
|
3244
|
+
const { dataset: u } = Ye(F, k);
|
|
3246
3245
|
t.value = u;
|
|
3247
|
-
}, c = (
|
|
3248
|
-
const u =
|
|
3246
|
+
}, c = (F = [], k) => {
|
|
3247
|
+
const u = Ye(F, k);
|
|
3249
3248
|
t.value = u.dataset;
|
|
3250
3249
|
};
|
|
3251
|
-
|
|
3252
|
-
(e.dataType === "static" || A(l) === "design") && d(
|
|
3250
|
+
ee(() => e.data, (F) => {
|
|
3251
|
+
(e.dataType === "static" || A(l) === "design") && d(F);
|
|
3253
3252
|
}, {
|
|
3254
3253
|
immediate: !0,
|
|
3255
3254
|
deep: !0
|
|
3256
3255
|
});
|
|
3257
|
-
const f =
|
|
3258
|
-
var
|
|
3256
|
+
const f = L(!1), g = we(e), y = async () => {
|
|
3257
|
+
var F, k;
|
|
3259
3258
|
if (!(e.dataType !== "request" || A(l) === "design"))
|
|
3260
3259
|
try {
|
|
3261
3260
|
f.value = !0;
|
|
3262
3261
|
const u = await g();
|
|
3263
|
-
d((
|
|
3262
|
+
d((k = (F = u == null ? void 0 : u.data) == null ? void 0 : F.data) == null ? void 0 : k.rows, e.valueTypeDataFieldNames);
|
|
3264
3263
|
} catch (u) {
|
|
3265
3264
|
console.error(u);
|
|
3266
3265
|
} finally {
|
|
3267
3266
|
f.value = !1;
|
|
3268
3267
|
}
|
|
3269
|
-
},
|
|
3270
|
-
const
|
|
3271
|
-
s(
|
|
3272
|
-
}),
|
|
3273
|
-
var
|
|
3268
|
+
}, S = ce(e)("click", (F) => {
|
|
3269
|
+
const k = e.id, u = r(k);
|
|
3270
|
+
s(k, { ...u, RECORD: F == null ? void 0 : F.data });
|
|
3271
|
+
}), b = Dt(e), h = async () => {
|
|
3272
|
+
var F, k, u, p, v, _;
|
|
3274
3273
|
if (!(e.dataType !== "indicator" || A(l) === "design"))
|
|
3275
3274
|
try {
|
|
3276
3275
|
f.value = !0;
|
|
3277
|
-
const C = await
|
|
3276
|
+
const C = await b();
|
|
3278
3277
|
let T = [];
|
|
3279
|
-
if (((u = (
|
|
3280
|
-
const
|
|
3281
|
-
T = (_ = (
|
|
3282
|
-
name:
|
|
3283
|
-
value:
|
|
3278
|
+
if (((u = (k = (F = C == null ? void 0 : C.data) == null ? void 0 : F.data) == null ? void 0 : k.columns) == null ? void 0 : u.length) > 0) {
|
|
3279
|
+
const O = C.data.data.columns[0], j = C.data.data.columns[1];
|
|
3280
|
+
T = (_ = (v = (p = C == null ? void 0 : C.data) == null ? void 0 : p.data) == null ? void 0 : v.rows) == null ? void 0 : _.map((J) => ({
|
|
3281
|
+
name: J[O],
|
|
3282
|
+
value: J[j]
|
|
3284
3283
|
}));
|
|
3285
3284
|
}
|
|
3286
3285
|
c(T);
|
|
@@ -3294,18 +3293,18 @@ const Vi = Z({
|
|
|
3294
3293
|
};
|
|
3295
3294
|
fe(e, {
|
|
3296
3295
|
resetRecord: () => {
|
|
3297
|
-
const
|
|
3298
|
-
s(
|
|
3296
|
+
const F = e.id, k = r(F);
|
|
3297
|
+
s(F, { ...k, RECORD: "" });
|
|
3299
3298
|
},
|
|
3300
3299
|
refreshData: () => {
|
|
3301
3300
|
x();
|
|
3302
3301
|
},
|
|
3303
|
-
click:
|
|
3302
|
+
click: S
|
|
3304
3303
|
});
|
|
3305
|
-
const { setRequest: I } = z(
|
|
3304
|
+
const { setRequest: I } = z(ve, {
|
|
3306
3305
|
// @ts-ignore
|
|
3307
3306
|
// eslint-disable-next-line no-void
|
|
3308
|
-
setRequest: ({ id:
|
|
3307
|
+
setRequest: ({ id: F, sortNum: k, requestFn: u }) => {
|
|
3309
3308
|
}
|
|
3310
3309
|
});
|
|
3311
3310
|
return I({
|
|
@@ -3315,7 +3314,7 @@ const Vi = Z({
|
|
|
3315
3314
|
}), {
|
|
3316
3315
|
option: i,
|
|
3317
3316
|
style: o,
|
|
3318
|
-
click:
|
|
3317
|
+
click: S,
|
|
3319
3318
|
loading: f,
|
|
3320
3319
|
visible: n,
|
|
3321
3320
|
hideModal: a
|
|
@@ -3324,8 +3323,8 @@ const Vi = Z({
|
|
|
3324
3323
|
});
|
|
3325
3324
|
function Hi(e, o, t, n, a, i) {
|
|
3326
3325
|
const r = q("echarts"), s = q("spin"), l = q("a-modal");
|
|
3327
|
-
return
|
|
3328
|
-
style:
|
|
3326
|
+
return E(), R("div", {
|
|
3327
|
+
style: P(e.style)
|
|
3329
3328
|
}, [
|
|
3330
3329
|
G(s, { spinning: e.loading }, {
|
|
3331
3330
|
default: V(() => [
|
|
@@ -3360,7 +3359,7 @@ function Hi(e, o, t, n, a, i) {
|
|
|
3360
3359
|
}, 8, ["visible", "onCancel"])
|
|
3361
3360
|
], 4);
|
|
3362
3361
|
}
|
|
3363
|
-
const Zi = /* @__PURE__ */ Y(Vi, [["render", Hi]]), Ji =
|
|
3362
|
+
const Zi = /* @__PURE__ */ Y(Vi, [["render", Hi]]), Ji = te(Zi), Ko = {
|
|
3364
3363
|
...le,
|
|
3365
3364
|
id: "",
|
|
3366
3365
|
name: "折线图",
|
|
@@ -3422,12 +3421,12 @@ const Zi = /* @__PURE__ */ Y(Vi, [["render", Hi]]), Ji = ee(Zi), Ko = {
|
|
|
3422
3421
|
toolboxInfoText: "当前无说明信息",
|
|
3423
3422
|
areaStyleOpacity: 0
|
|
3424
3423
|
}, Xo = oe(Ko), Yi = ["click", "refreshData", "resetRecord"];
|
|
3425
|
-
|
|
3424
|
+
Ne([
|
|
3426
3425
|
$e,
|
|
3427
3426
|
mo,
|
|
3427
|
+
Ke,
|
|
3428
3428
|
Qe,
|
|
3429
|
-
|
|
3430
|
-
Ke
|
|
3429
|
+
Xe
|
|
3431
3430
|
]);
|
|
3432
3431
|
const Qi = Z({
|
|
3433
3432
|
name: "EcanLine",
|
|
@@ -3435,15 +3434,15 @@ const Qi = Z({
|
|
|
3435
3434
|
...Xo
|
|
3436
3435
|
},
|
|
3437
3436
|
components: {
|
|
3438
|
-
Spin:
|
|
3437
|
+
Spin: et,
|
|
3439
3438
|
Echarts: Re,
|
|
3440
3439
|
AModal: Se
|
|
3441
3440
|
},
|
|
3442
3441
|
setup(e) {
|
|
3443
|
-
const o = ae(e), t =
|
|
3442
|
+
const o = ae(e), t = L([]), n = L([]), a = L(!1), i = () => {
|
|
3444
3443
|
a.value = !1;
|
|
3445
|
-
}, r =
|
|
3446
|
-
const
|
|
3444
|
+
}, r = B(() => {
|
|
3445
|
+
const k = e.xAxisLabelFormatter, u = e.yAxisLabelFormatter;
|
|
3447
3446
|
return {
|
|
3448
3447
|
toolbox: {
|
|
3449
3448
|
show: e.toolboxShow,
|
|
@@ -3457,7 +3456,7 @@ const Qi = Z({
|
|
|
3457
3456
|
title: "数据下载",
|
|
3458
3457
|
icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
|
|
3459
3458
|
onclick() {
|
|
3460
|
-
|
|
3459
|
+
tt(e.toolboxDownloadUrl);
|
|
3461
3460
|
}
|
|
3462
3461
|
},
|
|
3463
3462
|
myDataZoom: {
|
|
@@ -3498,19 +3497,19 @@ const Qi = Z({
|
|
|
3498
3497
|
trigger: "axis",
|
|
3499
3498
|
show: e.tooltipShow,
|
|
3500
3499
|
formatter: (p) => {
|
|
3501
|
-
const
|
|
3500
|
+
const v = p.length;
|
|
3502
3501
|
let _ = "", C = e.tooltipFormatter;
|
|
3503
3502
|
C === "" && (C = "{marker} {a} {c}");
|
|
3504
|
-
for (let T = 0; T <
|
|
3505
|
-
const { marker:
|
|
3506
|
-
T === 0 && (_ += `${
|
|
3503
|
+
for (let T = 0; T < v; T++) {
|
|
3504
|
+
const { marker: O, seriesName: j, name: J, value: H, data: Q } = p[T] || {};
|
|
3505
|
+
T === 0 && (_ += `${J}<br/>`), _ += he(
|
|
3507
3506
|
C,
|
|
3508
3507
|
{
|
|
3509
|
-
marker:
|
|
3510
|
-
name:
|
|
3508
|
+
marker: O,
|
|
3509
|
+
name: J,
|
|
3511
3510
|
value: H,
|
|
3512
3511
|
a: j,
|
|
3513
|
-
b:
|
|
3512
|
+
b: J,
|
|
3514
3513
|
c: H,
|
|
3515
3514
|
...Q
|
|
3516
3515
|
},
|
|
@@ -3535,7 +3534,7 @@ const Qi = Z({
|
|
|
3535
3534
|
axisLabel: {
|
|
3536
3535
|
color: e.xAxisLabelColor,
|
|
3537
3536
|
formatter(p) {
|
|
3538
|
-
return Oe(
|
|
3537
|
+
return Oe(k, p);
|
|
3539
3538
|
}
|
|
3540
3539
|
},
|
|
3541
3540
|
axisLine: {
|
|
@@ -3579,29 +3578,29 @@ const Qi = Z({
|
|
|
3579
3578
|
}), { getGlobalModel: s, setGlobalModel: l } = z(se, {
|
|
3580
3579
|
// @ts-ignore
|
|
3581
3580
|
// eslint-disable-next-line no-void
|
|
3582
|
-
getGlobalModel: (
|
|
3581
|
+
getGlobalModel: (k) => {
|
|
3583
3582
|
},
|
|
3584
3583
|
// @ts-ignore
|
|
3585
3584
|
// eslint-disable-next-line no-void
|
|
3586
|
-
setGlobalModel: (
|
|
3585
|
+
setGlobalModel: (k, u) => {
|
|
3587
3586
|
}
|
|
3588
3587
|
}), { pageMode: d } = z(re, {
|
|
3589
3588
|
pageMode: "normal"
|
|
3590
|
-
}), c = (
|
|
3589
|
+
}), c = (k = [], u = !1) => {
|
|
3591
3590
|
let p;
|
|
3592
3591
|
if (e.dataFieldConfigType === "key") {
|
|
3593
3592
|
const T = u ? e.keyTypeDataFieldNames : null;
|
|
3594
|
-
p =
|
|
3593
|
+
p = ze(k, T);
|
|
3595
3594
|
} else if (e.dataFieldConfigType === "value") {
|
|
3596
3595
|
const T = u ? e.valueTypeDataFieldNames : null;
|
|
3597
|
-
p =
|
|
3596
|
+
p = Ye(k, T);
|
|
3598
3597
|
}
|
|
3599
3598
|
n.value = p.dimensions;
|
|
3600
|
-
const
|
|
3599
|
+
const v = p.dataset, _ = [], C = v.length;
|
|
3601
3600
|
for (let T = 0; T < C; T++)
|
|
3602
3601
|
_.push({
|
|
3603
3602
|
type: "line",
|
|
3604
|
-
...
|
|
3603
|
+
...v[T],
|
|
3605
3604
|
symbolSize: e.symbolSize,
|
|
3606
3605
|
smooth: e.smooth,
|
|
3607
3606
|
areaStyle: {
|
|
@@ -3625,11 +3624,11 @@ const Qi = Z({
|
|
|
3625
3624
|
}
|
|
3626
3625
|
});
|
|
3627
3626
|
t.value = _;
|
|
3628
|
-
}, f = (
|
|
3629
|
-
const _ =
|
|
3627
|
+
}, f = (k = [], u, p = !1) => {
|
|
3628
|
+
const _ = ze(k, p ? u : null);
|
|
3630
3629
|
n.value = _.dimensions;
|
|
3631
|
-
const C = _.dataset, T = [],
|
|
3632
|
-
for (let j = 0; j <
|
|
3630
|
+
const C = _.dataset, T = [], O = C.length;
|
|
3631
|
+
for (let j = 0; j < O; j++)
|
|
3633
3632
|
T.push({
|
|
3634
3633
|
type: "line",
|
|
3635
3634
|
...C[j],
|
|
@@ -3641,70 +3640,70 @@ const Qi = Z({
|
|
|
3641
3640
|
});
|
|
3642
3641
|
t.value = T;
|
|
3643
3642
|
};
|
|
3644
|
-
|
|
3645
|
-
(e.dataType === "static" || A(d) === "design") && c(
|
|
3643
|
+
ee(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([k]) => {
|
|
3644
|
+
(e.dataType === "static" || A(d) === "design") && c(k);
|
|
3646
3645
|
}, {
|
|
3647
3646
|
immediate: !0,
|
|
3648
3647
|
deep: !0
|
|
3649
3648
|
});
|
|
3650
|
-
const g =
|
|
3651
|
-
var
|
|
3649
|
+
const g = L(!1), y = we(e), m = async () => {
|
|
3650
|
+
var k, u;
|
|
3652
3651
|
if (!(e.dataType !== "request" || A(d) === "design"))
|
|
3653
3652
|
try {
|
|
3654
3653
|
g.value = !0;
|
|
3655
3654
|
const p = await y();
|
|
3656
|
-
c((u = (
|
|
3655
|
+
c((u = (k = p == null ? void 0 : p.data) == null ? void 0 : k.data) == null ? void 0 : u.rows, !0);
|
|
3657
3656
|
} catch (p) {
|
|
3658
3657
|
console.error(p);
|
|
3659
3658
|
} finally {
|
|
3660
3659
|
g.value = !1;
|
|
3661
3660
|
}
|
|
3662
|
-
},
|
|
3661
|
+
}, b = ce(e)("click", (k) => {
|
|
3663
3662
|
const u = e.id, p = s(u);
|
|
3664
|
-
l(u, { ...p, RECORD:
|
|
3665
|
-
}), h =
|
|
3666
|
-
var
|
|
3663
|
+
l(u, { ...p, RECORD: k == null ? void 0 : k.data });
|
|
3664
|
+
}), h = Dt(e), x = async () => {
|
|
3665
|
+
var k, u, p, v, _;
|
|
3667
3666
|
if (!(e.dataType !== "indicator" || A(d) === "design"))
|
|
3668
3667
|
try {
|
|
3669
3668
|
g.value = !0;
|
|
3670
3669
|
const C = await h();
|
|
3671
3670
|
let T;
|
|
3672
|
-
((p = (u = (
|
|
3671
|
+
((p = (u = (k = C == null ? void 0 : C.data) == null ? void 0 : k.data) == null ? void 0 : u.columns) == null ? void 0 : p.length) > 0 && (T = {
|
|
3673
3672
|
name: C.data.data.columns[0],
|
|
3674
|
-
types: C.data.data.columns.slice(1).map((
|
|
3675
|
-
}), f((_ = (
|
|
3673
|
+
types: C.data.data.columns.slice(1).map((O) => ({ label: O, value: O }))
|
|
3674
|
+
}), f((_ = (v = C == null ? void 0 : C.data) == null ? void 0 : v.data) == null ? void 0 : _.rows, T, !0);
|
|
3676
3675
|
} catch (C) {
|
|
3677
3676
|
console.error(C);
|
|
3678
3677
|
} finally {
|
|
3679
3678
|
g.value = !1;
|
|
3680
3679
|
}
|
|
3681
|
-
},
|
|
3680
|
+
}, w = () => {
|
|
3682
3681
|
A(d) !== "design" && (x(), m());
|
|
3683
3682
|
};
|
|
3684
3683
|
fe(e, {
|
|
3685
3684
|
refreshData: () => {
|
|
3686
|
-
|
|
3685
|
+
w();
|
|
3687
3686
|
},
|
|
3688
3687
|
resetRecord: () => {
|
|
3689
|
-
const
|
|
3690
|
-
l(
|
|
3688
|
+
const k = e.id, u = s(k);
|
|
3689
|
+
l(k, { ...u, RECORD: "" });
|
|
3691
3690
|
},
|
|
3692
|
-
click:
|
|
3691
|
+
click: b
|
|
3693
3692
|
});
|
|
3694
|
-
const { setRequest:
|
|
3693
|
+
const { setRequest: F } = z(ve, {
|
|
3695
3694
|
// @ts-ignore
|
|
3696
3695
|
// eslint-disable-next-line no-void
|
|
3697
|
-
setRequest: ({ id:
|
|
3696
|
+
setRequest: ({ id: k, sortNum: u, requestFn: p }) => {
|
|
3698
3697
|
}
|
|
3699
3698
|
});
|
|
3700
|
-
return
|
|
3699
|
+
return F({
|
|
3701
3700
|
id: e.id,
|
|
3702
|
-
requestFn:
|
|
3701
|
+
requestFn: w,
|
|
3703
3702
|
sortNum: e.requestSort
|
|
3704
3703
|
}), {
|
|
3705
3704
|
option: r,
|
|
3706
3705
|
style: o,
|
|
3707
|
-
click:
|
|
3706
|
+
click: b,
|
|
3708
3707
|
loading: g,
|
|
3709
3708
|
visible: a,
|
|
3710
3709
|
hideModal: i
|
|
@@ -3713,8 +3712,8 @@ const Qi = Z({
|
|
|
3713
3712
|
});
|
|
3714
3713
|
function Ki(e, o, t, n, a, i) {
|
|
3715
3714
|
const r = q("echarts"), s = q("spin"), l = q("a-modal");
|
|
3716
|
-
return
|
|
3717
|
-
style:
|
|
3715
|
+
return E(), R("div", {
|
|
3716
|
+
style: P(e.style)
|
|
3718
3717
|
}, [
|
|
3719
3718
|
G(s, { spinning: e.loading }, {
|
|
3720
3719
|
default: V(() => [
|
|
@@ -3749,7 +3748,7 @@ function Ki(e, o, t, n, a, i) {
|
|
|
3749
3748
|
}, 8, ["visible", "onCancel"])
|
|
3750
3749
|
], 4);
|
|
3751
3750
|
}
|
|
3752
|
-
const Xi = /* @__PURE__ */ Y(Qi, [["render", Ki]]), er =
|
|
3751
|
+
const Xi = /* @__PURE__ */ Y(Qi, [["render", Ki]]), er = te(Xi), en = {
|
|
3753
3752
|
...le,
|
|
3754
3753
|
id: "",
|
|
3755
3754
|
name: "柱状图",
|
|
@@ -3841,13 +3840,13 @@ const Xi = /* @__PURE__ */ Y(Qi, [["render", Ki]]), er = ee(Xi), en = {
|
|
|
3841
3840
|
labelPosition: "inside",
|
|
3842
3841
|
labelColor: ""
|
|
3843
3842
|
}, tn = oe(en), tr = ["refreshData", "click", "resetRecord"];
|
|
3844
|
-
|
|
3843
|
+
Ne([
|
|
3845
3844
|
$e,
|
|
3846
3845
|
go,
|
|
3847
|
-
|
|
3848
|
-
|
|
3846
|
+
Qe,
|
|
3847
|
+
Xe,
|
|
3849
3848
|
yo,
|
|
3850
|
-
|
|
3849
|
+
Ke
|
|
3851
3850
|
]);
|
|
3852
3851
|
const or = Z({
|
|
3853
3852
|
name: "EcanBar",
|
|
@@ -3855,15 +3854,15 @@ const or = Z({
|
|
|
3855
3854
|
...tn
|
|
3856
3855
|
},
|
|
3857
3856
|
components: {
|
|
3858
|
-
Spin:
|
|
3857
|
+
Spin: et,
|
|
3859
3858
|
Echarts: Re,
|
|
3860
3859
|
AModal: Se
|
|
3861
3860
|
},
|
|
3862
3861
|
setup(e, { expose: o }) {
|
|
3863
|
-
const t = ae(e), n =
|
|
3862
|
+
const t = ae(e), n = L([]), a = L(!1), i = () => {
|
|
3864
3863
|
a.value = !1;
|
|
3865
|
-
}, r =
|
|
3866
|
-
const u = A(n), p = u.length,
|
|
3864
|
+
}, r = B(() => {
|
|
3865
|
+
const u = A(n), p = u.length, v = [];
|
|
3867
3866
|
for (let _ = 0; _ < p; _++) {
|
|
3868
3867
|
const C = {
|
|
3869
3868
|
...u[_],
|
|
@@ -3875,10 +3874,10 @@ const or = Z({
|
|
|
3875
3874
|
fontSize: e.labelFontSize,
|
|
3876
3875
|
position: e.labelPosition,
|
|
3877
3876
|
color: e.labelColor
|
|
3878
|
-
},
|
|
3877
|
+
}, v.push(C);
|
|
3879
3878
|
}
|
|
3880
|
-
return
|
|
3881
|
-
}), s =
|
|
3879
|
+
return v;
|
|
3880
|
+
}), s = L([]), l = L(!1), d = B(() => {
|
|
3882
3881
|
const u = e.yAxisLabelFormatter, p = e.xAxisLabelFormatter;
|
|
3883
3882
|
return {
|
|
3884
3883
|
toolbox: {
|
|
@@ -3893,7 +3892,7 @@ const or = Z({
|
|
|
3893
3892
|
title: "数据下载",
|
|
3894
3893
|
icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
|
|
3895
3894
|
onclick() {
|
|
3896
|
-
|
|
3895
|
+
tt(e.toolboxDownloadUrl);
|
|
3897
3896
|
}
|
|
3898
3897
|
},
|
|
3899
3898
|
myDataZoom: {
|
|
@@ -3933,19 +3932,19 @@ const or = Z({
|
|
|
3933
3932
|
tooltip: {
|
|
3934
3933
|
trigger: "axis",
|
|
3935
3934
|
show: e.tooltipShow,
|
|
3936
|
-
formatter: (
|
|
3937
|
-
const _ =
|
|
3935
|
+
formatter: (v) => {
|
|
3936
|
+
const _ = v.length;
|
|
3938
3937
|
let C = "", T = e.tooltipFormatter;
|
|
3939
3938
|
T === "" && (T = "{marker} {a} {c}");
|
|
3940
|
-
for (let
|
|
3941
|
-
const { marker: j, seriesName:
|
|
3942
|
-
|
|
3939
|
+
for (let O = 0; O < _; O++) {
|
|
3940
|
+
const { marker: j, seriesName: J, name: H, value: Q, data: ie } = v[O] || {};
|
|
3941
|
+
O === 0 && (C += `${H}<br/>`), C += he(
|
|
3943
3942
|
T,
|
|
3944
3943
|
{
|
|
3945
3944
|
marker: j,
|
|
3946
3945
|
name: H,
|
|
3947
3946
|
value: Q,
|
|
3948
|
-
a:
|
|
3947
|
+
a: J,
|
|
3949
3948
|
b: H,
|
|
3950
3949
|
c: Q,
|
|
3951
3950
|
...ie
|
|
@@ -3990,8 +3989,8 @@ const or = Z({
|
|
|
3990
3989
|
rotate: e.xAxisLabelRotate,
|
|
3991
3990
|
width: e.xAxisLabelWidth,
|
|
3992
3991
|
overflow: e.xAxisLabelOverflow,
|
|
3993
|
-
formatter(
|
|
3994
|
-
return Oe(p,
|
|
3992
|
+
formatter(v) {
|
|
3993
|
+
return Oe(p, v);
|
|
3995
3994
|
}
|
|
3996
3995
|
},
|
|
3997
3996
|
axisLine: {
|
|
@@ -4018,8 +4017,8 @@ const or = Z({
|
|
|
4018
4017
|
rotate: e.yAxisLabelRotate,
|
|
4019
4018
|
width: e.yAxisLabelWidth,
|
|
4020
4019
|
overflow: e.yAxisLabelOverflow,
|
|
4021
|
-
formatter(
|
|
4022
|
-
return Oe(u,
|
|
4020
|
+
formatter(v) {
|
|
4021
|
+
return Oe(u, v);
|
|
4023
4022
|
}
|
|
4024
4023
|
},
|
|
4025
4024
|
axisLine: {
|
|
@@ -4033,45 +4032,45 @@ const or = Z({
|
|
|
4033
4032
|
}), { pageMode: c } = z(re, {
|
|
4034
4033
|
pageMode: "normal"
|
|
4035
4034
|
}), f = (u = [], p = !1) => {
|
|
4036
|
-
let
|
|
4035
|
+
let v = {};
|
|
4037
4036
|
if (e.dataFieldConfigType === "key") {
|
|
4038
4037
|
const _ = p ? e.keyTypeDataFieldNames : null;
|
|
4039
|
-
|
|
4038
|
+
v = ze(u, _);
|
|
4040
4039
|
} else if (e.dataFieldConfigType === "value") {
|
|
4041
4040
|
const _ = p ? e.valueTypeDataFieldNames : null;
|
|
4042
|
-
|
|
4041
|
+
v = Ye(u, _);
|
|
4043
4042
|
}
|
|
4044
|
-
n.value =
|
|
4045
|
-
}, g = (u = [], p,
|
|
4046
|
-
const C =
|
|
4043
|
+
n.value = v.dataset, s.value = v.dimensions;
|
|
4044
|
+
}, g = (u = [], p, v = !1) => {
|
|
4045
|
+
const C = ze(u, v ? p : null);
|
|
4047
4046
|
n.value = C.dataset, s.value = C.dimensions;
|
|
4048
4047
|
};
|
|
4049
|
-
|
|
4048
|
+
ee(() => e.data, (u) => {
|
|
4050
4049
|
(e.dataType === "static" || A(c) === "design") && f(u);
|
|
4051
4050
|
}, {
|
|
4052
4051
|
immediate: !0,
|
|
4053
4052
|
deep: !0
|
|
4054
4053
|
});
|
|
4055
|
-
const y =
|
|
4054
|
+
const y = we(e), m = async () => {
|
|
4056
4055
|
var u, p;
|
|
4057
4056
|
try {
|
|
4058
4057
|
l.value = !0;
|
|
4059
|
-
const
|
|
4060
|
-
f((p = (u =
|
|
4061
|
-
} catch (
|
|
4062
|
-
console.error(
|
|
4058
|
+
const v = await y();
|
|
4059
|
+
f((p = (u = v == null ? void 0 : v.data) == null ? void 0 : u.data) == null ? void 0 : p.rows, !0);
|
|
4060
|
+
} catch (v) {
|
|
4061
|
+
console.error(v);
|
|
4063
4062
|
} finally {
|
|
4064
4063
|
l.value = !1;
|
|
4065
4064
|
}
|
|
4066
|
-
},
|
|
4065
|
+
}, S = _o(e), b = async () => {
|
|
4067
4066
|
var u;
|
|
4068
4067
|
try {
|
|
4069
4068
|
l.value = !0;
|
|
4070
|
-
const p = await
|
|
4069
|
+
const p = await S(), { columns: v = [], rows: _ = [] } = ((u = p == null ? void 0 : p.data) == null ? void 0 : u.data) ?? {};
|
|
4071
4070
|
let C;
|
|
4072
|
-
|
|
4073
|
-
name:
|
|
4074
|
-
types:
|
|
4071
|
+
v.length > 0 && (C = {
|
|
4072
|
+
name: v[0],
|
|
4073
|
+
types: v.slice(1).map((T) => ({
|
|
4075
4074
|
label: T,
|
|
4076
4075
|
value: T
|
|
4077
4076
|
}))
|
|
@@ -4085,7 +4084,7 @@ const or = Z({
|
|
|
4085
4084
|
if (A(c) !== "design")
|
|
4086
4085
|
switch (e.dataType) {
|
|
4087
4086
|
case "indicator":
|
|
4088
|
-
|
|
4087
|
+
b();
|
|
4089
4088
|
break;
|
|
4090
4089
|
case "request":
|
|
4091
4090
|
m();
|
|
@@ -4095,7 +4094,7 @@ const or = Z({
|
|
|
4095
4094
|
o({
|
|
4096
4095
|
refreshData: h
|
|
4097
4096
|
});
|
|
4098
|
-
const x = ce(e), { getGlobalModel:
|
|
4097
|
+
const x = ce(e), { getGlobalModel: w, setGlobalModel: $ } = z(se, {
|
|
4099
4098
|
// @ts-ignore
|
|
4100
4099
|
// eslint-disable-next-line no-void
|
|
4101
4100
|
getGlobalModel: (u) => {
|
|
@@ -4105,15 +4104,15 @@ const or = Z({
|
|
|
4105
4104
|
setGlobalModel: (u, p) => {
|
|
4106
4105
|
}
|
|
4107
4106
|
}), I = x("click", (u) => {
|
|
4108
|
-
const p = e.id,
|
|
4109
|
-
|
|
4110
|
-
}), { setRequest:
|
|
4107
|
+
const p = e.id, v = w(p);
|
|
4108
|
+
$(p, { ...v, RECORD: u.data });
|
|
4109
|
+
}), { setRequest: F } = z(ve, {
|
|
4111
4110
|
// @ts-ignore
|
|
4112
4111
|
// eslint-disable-next-line no-void
|
|
4113
|
-
setRequest: ({ id: u, sortNum: p, requestFn:
|
|
4112
|
+
setRequest: ({ id: u, sortNum: p, requestFn: v }) => {
|
|
4114
4113
|
}
|
|
4115
4114
|
});
|
|
4116
|
-
return
|
|
4115
|
+
return F({
|
|
4117
4116
|
id: e.id,
|
|
4118
4117
|
requestFn: h,
|
|
4119
4118
|
sortNum: e.requestSort
|
|
@@ -4121,8 +4120,8 @@ const or = Z({
|
|
|
4121
4120
|
refreshData: h,
|
|
4122
4121
|
click: I,
|
|
4123
4122
|
resetRecord: () => {
|
|
4124
|
-
const u = e.id, p =
|
|
4125
|
-
|
|
4123
|
+
const u = e.id, p = w(u);
|
|
4124
|
+
$(u, { ...p, RECORD: "" });
|
|
4126
4125
|
}
|
|
4127
4126
|
}), {
|
|
4128
4127
|
option: d,
|
|
@@ -4137,9 +4136,9 @@ const or = Z({
|
|
|
4137
4136
|
});
|
|
4138
4137
|
function nr(e, o, t, n, a, i) {
|
|
4139
4138
|
const r = q("echarts"), s = q("spin"), l = q("a-modal");
|
|
4140
|
-
return
|
|
4139
|
+
return E(), R("div", {
|
|
4141
4140
|
class: "ecan-bar",
|
|
4142
|
-
style:
|
|
4141
|
+
style: P(e.style)
|
|
4143
4142
|
}, [
|
|
4144
4143
|
G(s, { spinning: e.loading }, {
|
|
4145
4144
|
default: V(() => [
|
|
@@ -4175,7 +4174,7 @@ function nr(e, o, t, n, a, i) {
|
|
|
4175
4174
|
}, 8, ["visible", "onCancel"])
|
|
4176
4175
|
], 4);
|
|
4177
4176
|
}
|
|
4178
|
-
const ar = /* @__PURE__ */ Y(or, [["render", nr]]), lr =
|
|
4177
|
+
const ar = /* @__PURE__ */ Y(or, [["render", nr]]), lr = te(ar), on = {
|
|
4179
4178
|
...le,
|
|
4180
4179
|
id: "",
|
|
4181
4180
|
name: "散点图",
|
|
@@ -4230,13 +4229,13 @@ const ar = /* @__PURE__ */ Y(or, [["render", nr]]), lr = ee(ar), on = {
|
|
|
4230
4229
|
toolboxDownloadUrl: "",
|
|
4231
4230
|
toolboxInfoText: "当前无说明信息"
|
|
4232
4231
|
}, nn = oe(on), ir = ["click", "refreshData"];
|
|
4233
|
-
|
|
4232
|
+
Ne([
|
|
4234
4233
|
$e,
|
|
4235
4234
|
ho,
|
|
4235
|
+
Ke,
|
|
4236
4236
|
Qe,
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
Ke
|
|
4237
|
+
Mt,
|
|
4238
|
+
Xe
|
|
4240
4239
|
]);
|
|
4241
4240
|
const rr = Z({
|
|
4242
4241
|
name: "EcanScatter",
|
|
@@ -4244,14 +4243,14 @@ const rr = Z({
|
|
|
4244
4243
|
...nn
|
|
4245
4244
|
},
|
|
4246
4245
|
components: {
|
|
4247
|
-
Spin:
|
|
4246
|
+
Spin: et,
|
|
4248
4247
|
Echarts: Re,
|
|
4249
4248
|
AModal: Se
|
|
4250
4249
|
},
|
|
4251
4250
|
setup(e) {
|
|
4252
|
-
const o = ae(e), t =
|
|
4251
|
+
const o = ae(e), t = L([]), n = L(!1), a = () => {
|
|
4253
4252
|
n.value = !1;
|
|
4254
|
-
}, i =
|
|
4253
|
+
}, i = B(() => {
|
|
4255
4254
|
const h = e.xAxisLabelFormatter, x = e.yAxisLabelFormatter;
|
|
4256
4255
|
return {
|
|
4257
4256
|
toolbox: {
|
|
@@ -4266,7 +4265,7 @@ const rr = Z({
|
|
|
4266
4265
|
title: "数据下载",
|
|
4267
4266
|
icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
|
|
4268
4267
|
onclick() {
|
|
4269
|
-
|
|
4268
|
+
tt(e.toolboxDownloadUrl);
|
|
4270
4269
|
}
|
|
4271
4270
|
},
|
|
4272
4271
|
myDataZoom: {
|
|
@@ -4313,8 +4312,8 @@ const rr = Z({
|
|
|
4313
4312
|
},
|
|
4314
4313
|
axisLabel: {
|
|
4315
4314
|
color: e.xAxisLabelColor,
|
|
4316
|
-
formatter(
|
|
4317
|
-
return Oe(h,
|
|
4315
|
+
formatter(w) {
|
|
4316
|
+
return Oe(h, w);
|
|
4318
4317
|
}
|
|
4319
4318
|
},
|
|
4320
4319
|
axisLine: {
|
|
@@ -4335,8 +4334,8 @@ const rr = Z({
|
|
|
4335
4334
|
},
|
|
4336
4335
|
axisLabel: {
|
|
4337
4336
|
color: e.yAxisLabelColor,
|
|
4338
|
-
formatter(
|
|
4339
|
-
return Oe(x,
|
|
4337
|
+
formatter(w) {
|
|
4338
|
+
return Oe(x, w);
|
|
4340
4339
|
}
|
|
4341
4340
|
},
|
|
4342
4341
|
axisLine: {
|
|
@@ -4349,16 +4348,16 @@ const rr = Z({
|
|
|
4349
4348
|
tooltip: {
|
|
4350
4349
|
show: e.tooltipShow,
|
|
4351
4350
|
trigger: e.tooltipTrigger,
|
|
4352
|
-
formatter: function(
|
|
4351
|
+
formatter: function(w) {
|
|
4353
4352
|
var p;
|
|
4354
|
-
const { marker:
|
|
4353
|
+
const { marker: $, seriesName: I } = w, F = ((p = w == null ? void 0 : w.data) == null ? void 0 : p.record) ?? {}, { name: k, value: u } = F;
|
|
4355
4354
|
return he(e.tooltipFormatter, {
|
|
4356
|
-
marker:
|
|
4355
|
+
marker: $,
|
|
4357
4356
|
seriesName: I,
|
|
4358
4357
|
a: I,
|
|
4359
|
-
b:
|
|
4358
|
+
b: k,
|
|
4360
4359
|
c: u,
|
|
4361
|
-
...
|
|
4360
|
+
...F
|
|
4362
4361
|
});
|
|
4363
4362
|
},
|
|
4364
4363
|
axisPointer: {
|
|
@@ -4392,31 +4391,31 @@ const rr = Z({
|
|
|
4392
4391
|
}), { pageMode: l } = z(re, {
|
|
4393
4392
|
pageMode: "normal"
|
|
4394
4393
|
}), d = (h = [], x) => {
|
|
4395
|
-
const { name:
|
|
4396
|
-
t.value = h.map((I) => ({ value: [I[
|
|
4394
|
+
const { name: w = "name", value: $ = "value" } = x || {};
|
|
4395
|
+
t.value = h.map((I) => ({ value: [I[w], I[$]], record: I }));
|
|
4397
4396
|
};
|
|
4398
|
-
|
|
4397
|
+
ee(() => e.data, (h) => {
|
|
4399
4398
|
(e.dataType === "static" || A(l) === "design") && d(h);
|
|
4400
4399
|
}, {
|
|
4401
4400
|
immediate: !0,
|
|
4402
4401
|
deep: !0
|
|
4403
4402
|
});
|
|
4404
|
-
const c =
|
|
4403
|
+
const c = L(!1), f = we(e), g = async () => {
|
|
4405
4404
|
var h, x;
|
|
4406
4405
|
if (!(e.dataType !== "request" || A(l) === "design")) {
|
|
4407
4406
|
c.value = !0;
|
|
4408
4407
|
try {
|
|
4409
|
-
const
|
|
4410
|
-
d((x = (h =
|
|
4411
|
-
} catch (
|
|
4412
|
-
console.error(
|
|
4408
|
+
const w = await f();
|
|
4409
|
+
d((x = (h = w == null ? void 0 : w.data) == null ? void 0 : h.data) == null ? void 0 : x.rows, e.dataFieldNames);
|
|
4410
|
+
} catch (w) {
|
|
4411
|
+
console.error(w);
|
|
4413
4412
|
} finally {
|
|
4414
4413
|
c.value = !1;
|
|
4415
4414
|
}
|
|
4416
4415
|
}
|
|
4417
4416
|
}, m = ce(e)("click", (h) => {
|
|
4418
|
-
const x = e.id,
|
|
4419
|
-
s(x, { ...
|
|
4417
|
+
const x = e.id, w = r(x);
|
|
4418
|
+
s(x, { ...w, RECORD: h == null ? void 0 : h.data });
|
|
4420
4419
|
});
|
|
4421
4420
|
fe(e, {
|
|
4422
4421
|
refreshData: () => {
|
|
@@ -4424,13 +4423,13 @@ const rr = Z({
|
|
|
4424
4423
|
},
|
|
4425
4424
|
click: m
|
|
4426
4425
|
});
|
|
4427
|
-
const { setRequest:
|
|
4426
|
+
const { setRequest: b } = z(ve, {
|
|
4428
4427
|
// @ts-ignore
|
|
4429
4428
|
// eslint-disable-next-line no-void
|
|
4430
|
-
setRequest: ({ id: h, sortNum: x, requestFn:
|
|
4429
|
+
setRequest: ({ id: h, sortNum: x, requestFn: w }) => {
|
|
4431
4430
|
}
|
|
4432
4431
|
});
|
|
4433
|
-
return
|
|
4432
|
+
return b({
|
|
4434
4433
|
id: e.id,
|
|
4435
4434
|
requestFn: g,
|
|
4436
4435
|
sortNum: e.requestSort
|
|
@@ -4446,8 +4445,8 @@ const rr = Z({
|
|
|
4446
4445
|
});
|
|
4447
4446
|
function sr(e, o, t, n, a, i) {
|
|
4448
4447
|
const r = q("echarts"), s = q("spin"), l = q("a-modal");
|
|
4449
|
-
return
|
|
4450
|
-
style:
|
|
4448
|
+
return E(), R("div", {
|
|
4449
|
+
style: P(e.style)
|
|
4451
4450
|
}, [
|
|
4452
4451
|
G(s, { spinning: e.loading }, {
|
|
4453
4452
|
default: V(() => [
|
|
@@ -4482,7 +4481,7 @@ function sr(e, o, t, n, a, i) {
|
|
|
4482
4481
|
}, 8, ["visible", "onCancel"])
|
|
4483
4482
|
], 4);
|
|
4484
4483
|
}
|
|
4485
|
-
const cr = /* @__PURE__ */ Y(rr, [["render", sr]]), dr =
|
|
4484
|
+
const cr = /* @__PURE__ */ Y(rr, [["render", sr]]), dr = te(cr), an = {
|
|
4486
4485
|
...le,
|
|
4487
4486
|
id: "",
|
|
4488
4487
|
name: "自定义图表",
|
|
@@ -4501,8 +4500,8 @@ const cr = /* @__PURE__ */ Y(rr, [["render", sr]]), dr = ee(cr), an = {
|
|
|
4501
4500
|
Echarts: Re
|
|
4502
4501
|
},
|
|
4503
4502
|
setup(e) {
|
|
4504
|
-
const o = ae(e), t =
|
|
4505
|
-
return
|
|
4503
|
+
const o = ae(e), t = L();
|
|
4504
|
+
return ee(() => e.optionCode, (n) => {
|
|
4506
4505
|
try {
|
|
4507
4506
|
const a = eval;
|
|
4508
4507
|
t.value = a(n);
|
|
@@ -4520,8 +4519,8 @@ const cr = /* @__PURE__ */ Y(rr, [["render", sr]]), dr = ee(cr), an = {
|
|
|
4520
4519
|
});
|
|
4521
4520
|
function fr(e, o, t, n, a, i) {
|
|
4522
4521
|
const r = q("echarts");
|
|
4523
|
-
return
|
|
4524
|
-
style:
|
|
4522
|
+
return E(), R("div", {
|
|
4523
|
+
style: P(e.style)
|
|
4525
4524
|
}, [
|
|
4526
4525
|
G(r, {
|
|
4527
4526
|
option: e.myOption,
|
|
@@ -4530,7 +4529,7 @@ function fr(e, o, t, n, a, i) {
|
|
|
4530
4529
|
}, null, 8, ["option"])
|
|
4531
4530
|
], 4);
|
|
4532
4531
|
}
|
|
4533
|
-
const mr = /* @__PURE__ */ Y(ur, [["render", fr]]), gr =
|
|
4532
|
+
const mr = /* @__PURE__ */ Y(ur, [["render", fr]]), gr = te(mr), rn = {
|
|
4534
4533
|
...le,
|
|
4535
4534
|
id: "",
|
|
4536
4535
|
name: "组合图表",
|
|
@@ -4633,14 +4632,14 @@ const mr = /* @__PURE__ */ Y(ur, [["render", fr]]), gr = ee(mr), rn = {
|
|
|
4633
4632
|
smooth: !1,
|
|
4634
4633
|
barWidth: "40%"
|
|
4635
4634
|
}, sn = oe(rn), hr = ["refreshData", "click", "resetRecord"];
|
|
4636
|
-
|
|
4635
|
+
Ne([
|
|
4637
4636
|
$e,
|
|
4638
4637
|
go,
|
|
4639
4638
|
mo,
|
|
4640
|
-
|
|
4641
|
-
|
|
4639
|
+
Qe,
|
|
4640
|
+
Xe,
|
|
4642
4641
|
yo,
|
|
4643
|
-
|
|
4642
|
+
Ke
|
|
4644
4643
|
]);
|
|
4645
4644
|
const yr = Z({
|
|
4646
4645
|
name: "EcanComboGraph",
|
|
@@ -4648,14 +4647,14 @@ const yr = Z({
|
|
|
4648
4647
|
...sn
|
|
4649
4648
|
},
|
|
4650
4649
|
components: {
|
|
4651
|
-
Spin:
|
|
4650
|
+
Spin: et,
|
|
4652
4651
|
Echarts: Re,
|
|
4653
4652
|
AModal: Se
|
|
4654
4653
|
},
|
|
4655
4654
|
setup(e) {
|
|
4656
|
-
const o = ae(e), t =
|
|
4655
|
+
const o = ae(e), t = L([]), n = L([]), a = L(!1), i = () => {
|
|
4657
4656
|
a.value = !1;
|
|
4658
|
-
}, r =
|
|
4657
|
+
}, r = B(() => ({
|
|
4659
4658
|
title: {
|
|
4660
4659
|
text: e.titleText,
|
|
4661
4660
|
subtext: e.titleSubtext,
|
|
@@ -4673,7 +4672,7 @@ const yr = Z({
|
|
|
4673
4672
|
title: "数据下载",
|
|
4674
4673
|
icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
|
|
4675
4674
|
onclick() {
|
|
4676
|
-
|
|
4675
|
+
tt(e.toolboxDownloadUrl);
|
|
4677
4676
|
}
|
|
4678
4677
|
},
|
|
4679
4678
|
myDataZoom: {
|
|
@@ -4719,16 +4718,16 @@ const yr = Z({
|
|
|
4719
4718
|
show: e.tooltipShow,
|
|
4720
4719
|
formatter: (u) => {
|
|
4721
4720
|
const p = u.length;
|
|
4722
|
-
let
|
|
4721
|
+
let v = "", _ = e.tooltipFormatter;
|
|
4723
4722
|
_ === "" && (_ = "{marker} {a} {c}");
|
|
4724
4723
|
const C = e.seriesTypes;
|
|
4725
4724
|
for (let T = 0; T < p; T++) {
|
|
4726
|
-
const
|
|
4727
|
-
T === 0 && (
|
|
4725
|
+
const O = C[T], { tooltipFormatter: j } = O || {}, { marker: J, seriesName: H, name: Q, value: ie, data: Me } = u[T] || {};
|
|
4726
|
+
T === 0 && (v += `${Q}<br/>`), v += he(
|
|
4728
4727
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4729
4728
|
j || _,
|
|
4730
4729
|
{
|
|
4731
|
-
marker:
|
|
4730
|
+
marker: J,
|
|
4732
4731
|
name: Q,
|
|
4733
4732
|
value: ie,
|
|
4734
4733
|
seriesName: H,
|
|
@@ -4741,9 +4740,9 @@ const yr = Z({
|
|
|
4741
4740
|
useNewline: !0,
|
|
4742
4741
|
useSpace: !0
|
|
4743
4742
|
}
|
|
4744
|
-
),
|
|
4743
|
+
), v += "<br/>";
|
|
4745
4744
|
}
|
|
4746
|
-
return
|
|
4745
|
+
return v;
|
|
4747
4746
|
},
|
|
4748
4747
|
textStyle: {
|
|
4749
4748
|
color: e.tooltipTextStyleColor
|
|
@@ -4775,18 +4774,18 @@ const yr = Z({
|
|
|
4775
4774
|
})), { pageMode: s } = z(re, {
|
|
4776
4775
|
pageMode: "normal"
|
|
4777
4776
|
}), l = (u = [], p = !1) => {
|
|
4778
|
-
let
|
|
4777
|
+
let v;
|
|
4779
4778
|
if (e.dataFieldConfigType === "key") {
|
|
4780
4779
|
const j = p ? e.keyTypeDataFieldNames : null;
|
|
4781
|
-
|
|
4780
|
+
v = ze(u, j);
|
|
4782
4781
|
} else if (e.dataFieldConfigType === "value") {
|
|
4783
4782
|
const j = p ? e.valueTypeDataFieldNames : null;
|
|
4784
|
-
|
|
4783
|
+
v = Ye(u, j);
|
|
4785
4784
|
}
|
|
4786
|
-
n.value =
|
|
4787
|
-
const _ =
|
|
4785
|
+
n.value = v.dimensions;
|
|
4786
|
+
const _ = v.dataset, C = [], T = _.length, O = e.seriesTypes;
|
|
4788
4787
|
for (let j = 0; j < T; j++) {
|
|
4789
|
-
const
|
|
4788
|
+
const J = O[j], { type: H, axisIndex: Q } = J || {};
|
|
4790
4789
|
let ie = {
|
|
4791
4790
|
type: H,
|
|
4792
4791
|
yAxisIndex: Q,
|
|
@@ -4808,27 +4807,27 @@ const yr = Z({
|
|
|
4808
4807
|
}), C.push(ie);
|
|
4809
4808
|
}
|
|
4810
4809
|
t.value = C;
|
|
4811
|
-
}, d = (u = [], p,
|
|
4812
|
-
const C =
|
|
4810
|
+
}, d = (u = [], p, v = !1) => {
|
|
4811
|
+
const C = ze(u, v ? p : null);
|
|
4813
4812
|
n.value = C.dimensions;
|
|
4814
|
-
const T = C.dataset,
|
|
4813
|
+
const T = C.dataset, O = [], j = T.length, J = e.seriesTypes;
|
|
4815
4814
|
for (let H = 0; H < j; H++) {
|
|
4816
|
-
const Q =
|
|
4817
|
-
|
|
4815
|
+
const Q = J[H];
|
|
4816
|
+
O.push({
|
|
4818
4817
|
type: Q == null ? void 0 : Q.type,
|
|
4819
4818
|
yAxisIndex: Q == null ? void 0 : Q.axisIndex,
|
|
4820
4819
|
...T[H]
|
|
4821
4820
|
});
|
|
4822
4821
|
}
|
|
4823
|
-
t.value =
|
|
4822
|
+
t.value = O;
|
|
4824
4823
|
};
|
|
4825
|
-
|
|
4824
|
+
ee(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([u]) => {
|
|
4826
4825
|
(e.dataType === "static" || A(s) === "design") && l(u);
|
|
4827
4826
|
}, {
|
|
4828
4827
|
immediate: !0,
|
|
4829
4828
|
deep: !0
|
|
4830
4829
|
});
|
|
4831
|
-
const c =
|
|
4830
|
+
const c = B(() => {
|
|
4832
4831
|
const u = e.yAxis;
|
|
4833
4832
|
return u == null ? void 0 : u.map((p) => ({
|
|
4834
4833
|
type: "value",
|
|
@@ -4840,8 +4839,8 @@ const yr = Z({
|
|
|
4840
4839
|
},
|
|
4841
4840
|
axisLabel: {
|
|
4842
4841
|
color: e.yAxisLabelColor,
|
|
4843
|
-
formatter(
|
|
4844
|
-
return Oe(p.axisLabelFormatter,
|
|
4842
|
+
formatter(v) {
|
|
4843
|
+
return Oe(p.axisLabelFormatter, v);
|
|
4845
4844
|
}
|
|
4846
4845
|
},
|
|
4847
4846
|
axisLine: {
|
|
@@ -4850,39 +4849,39 @@ const yr = Z({
|
|
|
4850
4849
|
}
|
|
4851
4850
|
}
|
|
4852
4851
|
}));
|
|
4853
|
-
}), f =
|
|
4852
|
+
}), f = L(!1), g = we(e), y = async () => {
|
|
4854
4853
|
var u, p;
|
|
4855
4854
|
if (!(e.dataType !== "request" || A(s) === "design"))
|
|
4856
4855
|
try {
|
|
4857
4856
|
f.value = !0;
|
|
4858
|
-
const
|
|
4859
|
-
l((p = (u =
|
|
4860
|
-
} catch (
|
|
4861
|
-
console.error(
|
|
4857
|
+
const v = await g();
|
|
4858
|
+
l((p = (u = v == null ? void 0 : v.data) == null ? void 0 : u.data) == null ? void 0 : p.rows, !0);
|
|
4859
|
+
} catch (v) {
|
|
4860
|
+
console.error(v);
|
|
4862
4861
|
} finally {
|
|
4863
4862
|
f.value = !1;
|
|
4864
4863
|
}
|
|
4865
|
-
}, m =
|
|
4866
|
-
var u, p,
|
|
4864
|
+
}, m = Dt(e), S = async () => {
|
|
4865
|
+
var u, p, v, _, C;
|
|
4867
4866
|
if (!(e.dataType !== "indicator" || A(s) === "design"))
|
|
4868
4867
|
try {
|
|
4869
4868
|
f.value = !0;
|
|
4870
4869
|
const T = await m();
|
|
4871
|
-
let
|
|
4872
|
-
((
|
|
4870
|
+
let O;
|
|
4871
|
+
((v = (p = (u = T == null ? void 0 : T.data) == null ? void 0 : u.data) == null ? void 0 : p.columns) == null ? void 0 : v.length) > 0 && (O = {
|
|
4873
4872
|
name: T.data.data.columns[0],
|
|
4874
4873
|
types: T.data.data.columns.slice(1).map((j) => ({ label: j, value: j }))
|
|
4875
|
-
}), d((C = (_ = T == null ? void 0 : T.data) == null ? void 0 : _.data) == null ? void 0 : C.rows,
|
|
4874
|
+
}), d((C = (_ = T == null ? void 0 : T.data) == null ? void 0 : _.data) == null ? void 0 : C.rows, O, !0);
|
|
4876
4875
|
} catch (T) {
|
|
4877
4876
|
console.error(T);
|
|
4878
4877
|
} finally {
|
|
4879
4878
|
f.value = !1;
|
|
4880
4879
|
}
|
|
4881
|
-
},
|
|
4882
|
-
A(s) !== "design" && (
|
|
4880
|
+
}, b = () => {
|
|
4881
|
+
A(s) !== "design" && (S(), y());
|
|
4883
4882
|
}, h = () => {
|
|
4884
|
-
|
|
4885
|
-
}, x = ce(e), { getGlobalModel:
|
|
4883
|
+
b();
|
|
4884
|
+
}, x = ce(e), { getGlobalModel: w, setGlobalModel: $ } = z(se, {
|
|
4886
4885
|
// @ts-ignore
|
|
4887
4886
|
// eslint-disable-next-line no-void
|
|
4888
4887
|
getGlobalModel: (u) => {
|
|
@@ -4892,22 +4891,22 @@ const yr = Z({
|
|
|
4892
4891
|
setGlobalModel: (u, p) => {
|
|
4893
4892
|
}
|
|
4894
4893
|
}), I = x("click", (u) => {
|
|
4895
|
-
const p = e.id,
|
|
4896
|
-
|
|
4897
|
-
}), { setRequest:
|
|
4894
|
+
const p = e.id, v = w(p);
|
|
4895
|
+
$(p, { ...v, RECORD: u == null ? void 0 : u.data });
|
|
4896
|
+
}), { setRequest: F } = z(ve, {
|
|
4898
4897
|
// @ts-ignore
|
|
4899
4898
|
// eslint-disable-next-line no-void
|
|
4900
|
-
setRequest: ({ id: u, sortNum: p, requestFn:
|
|
4899
|
+
setRequest: ({ id: u, sortNum: p, requestFn: v }) => {
|
|
4901
4900
|
}
|
|
4902
4901
|
});
|
|
4903
|
-
return
|
|
4902
|
+
return F({
|
|
4904
4903
|
id: e.id,
|
|
4905
|
-
requestFn:
|
|
4904
|
+
requestFn: b,
|
|
4906
4905
|
sortNum: e.requestSort
|
|
4907
4906
|
}), fe(e, {
|
|
4908
4907
|
resetRecord: () => {
|
|
4909
|
-
const u = e.id, p =
|
|
4910
|
-
|
|
4908
|
+
const u = e.id, p = w(u);
|
|
4909
|
+
$(u, { ...p, RECORD: "" });
|
|
4911
4910
|
},
|
|
4912
4911
|
refreshData: h,
|
|
4913
4912
|
click: I
|
|
@@ -4923,8 +4922,8 @@ const yr = Z({
|
|
|
4923
4922
|
});
|
|
4924
4923
|
function br(e, o, t, n, a, i) {
|
|
4925
4924
|
const r = q("echarts"), s = q("spin"), l = q("a-modal");
|
|
4926
|
-
return
|
|
4927
|
-
style:
|
|
4925
|
+
return E(), R("div", {
|
|
4926
|
+
style: P(e.style)
|
|
4928
4927
|
}, [
|
|
4929
4928
|
G(s, { spinning: e.loading }, {
|
|
4930
4929
|
default: V(() => [
|
|
@@ -4961,7 +4960,7 @@ function br(e, o, t, n, a, i) {
|
|
|
4961
4960
|
}, 8, ["visible", "onCancel"])
|
|
4962
4961
|
], 4);
|
|
4963
4962
|
}
|
|
4964
|
-
const vr = /* @__PURE__ */ Y(yr, [["render", br]]), pr =
|
|
4963
|
+
const vr = /* @__PURE__ */ Y(yr, [["render", br]]), pr = te(vr), cn = {
|
|
4965
4964
|
...le,
|
|
4966
4965
|
name: "边框",
|
|
4967
4966
|
keyName: "边框",
|
|
@@ -4990,7 +4989,7 @@ const vr = /* @__PURE__ */ Y(yr, [["render", br]]), pr = ee(vr), cn = {
|
|
|
4990
4989
|
setup(e) {
|
|
4991
4990
|
const o = ae(e, ["background"]), { theme: t } = z(re, {
|
|
4992
4991
|
theme: "light"
|
|
4993
|
-
}), n =
|
|
4992
|
+
}), n = B(() => ({
|
|
4994
4993
|
// borderWidth: props.borderWidth,
|
|
4995
4994
|
// borderStyle: props.borderStyle,
|
|
4996
4995
|
// borderRadius: props.borderRadius,
|
|
@@ -4999,8 +4998,8 @@ const vr = /* @__PURE__ */ Y(yr, [["render", br]]), pr = ee(vr), cn = {
|
|
|
4999
4998
|
width: "100%",
|
|
5000
4999
|
height: "100%"
|
|
5001
5000
|
})), i = ce(e)("click", () => {
|
|
5002
|
-
}), r =
|
|
5003
|
-
|
|
5001
|
+
}), r = L([]);
|
|
5002
|
+
ee(() => e.data, (l) => {
|
|
5004
5003
|
r.value = l;
|
|
5005
5004
|
}, {
|
|
5006
5005
|
immediate: !0,
|
|
@@ -5024,60 +5023,60 @@ const vr = /* @__PURE__ */ Y(yr, [["render", br]]), pr = ee(vr), cn = {
|
|
|
5024
5023
|
theme: t
|
|
5025
5024
|
};
|
|
5026
5025
|
}
|
|
5027
|
-
}),
|
|
5028
|
-
const
|
|
5026
|
+
}), wr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=", kr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==";
|
|
5027
|
+
const ke = (e) => (io("data-v-f3fc1305"), e = e(), ro(), e), Ar = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "top-left border-item" }, null, -1)), xr = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "top-right border-item" }, null, -1)), Tr = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "bottom-left border-item" }, null, -1)), _r = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "bottom-right border-item" }, null, -1)), Lr = { class: "title-item-wrapper" }, Ir = { class: "title-item" }, Mr = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("img", {
|
|
5029
5028
|
class: "title-decoration-left",
|
|
5030
|
-
src: kr
|
|
5031
|
-
}, null, -1)), Er = { class: "title" }, Fr = /* @__PURE__ */ we(() => /* @__PURE__ */ J("img", {
|
|
5032
|
-
class: "title-decoration-right",
|
|
5033
5029
|
src: wr
|
|
5034
|
-
}, null, -1)),
|
|
5030
|
+
}, null, -1)), Er = { class: "title" }, Fr = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("img", {
|
|
5031
|
+
class: "title-decoration-right",
|
|
5032
|
+
src: kr
|
|
5033
|
+
}, null, -1)), Or = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "top-left border-item" }, null, -1)), Rr = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "top-right border-item" }, null, -1)), Dr = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "bottom-left border-item" }, null, -1)), zr = /* @__PURE__ */ ke(() => /* @__PURE__ */ K("div", { class: "bottom-right border-item" }, null, -1)), Nr = {
|
|
5035
5034
|
key: 2,
|
|
5036
5035
|
class: "left-title"
|
|
5037
5036
|
}, $r = { class: "title" };
|
|
5038
5037
|
function Pr(e, o, t, n, a, i) {
|
|
5039
|
-
return
|
|
5038
|
+
return E(), R("div", {
|
|
5040
5039
|
class: "ecan-border",
|
|
5041
|
-
style:
|
|
5040
|
+
style: P(e.style),
|
|
5042
5041
|
onClick: o[0] || (o[0] = (...r) => e.click && e.click(...r))
|
|
5043
5042
|
}, [
|
|
5044
|
-
e.mode === "no-title" ? (
|
|
5043
|
+
e.mode === "no-title" ? (E(), R("div", {
|
|
5045
5044
|
key: 0,
|
|
5046
5045
|
class: "no-title",
|
|
5047
|
-
style:
|
|
5046
|
+
style: P(e.borderStyle)
|
|
5048
5047
|
}, [
|
|
5049
|
-
e.useBorderModify ? (
|
|
5048
|
+
e.useBorderModify ? (E(), R(xe, { key: 0 }, [
|
|
5050
5049
|
Ar,
|
|
5051
5050
|
xr,
|
|
5052
5051
|
Tr,
|
|
5053
5052
|
_r
|
|
5054
|
-
], 64)) :
|
|
5055
|
-
], 4)) :
|
|
5056
|
-
e.mode === "top-title" ? (
|
|
5053
|
+
], 64)) : be("", !0)
|
|
5054
|
+
], 4)) : be("", !0),
|
|
5055
|
+
e.mode === "top-title" ? (E(), R("div", {
|
|
5057
5056
|
key: 1,
|
|
5058
5057
|
class: "top-title",
|
|
5059
|
-
style:
|
|
5058
|
+
style: P(e.borderStyle)
|
|
5060
5059
|
}, [
|
|
5061
|
-
|
|
5062
|
-
|
|
5060
|
+
K("div", Lr, [
|
|
5061
|
+
K("div", Ir, [
|
|
5063
5062
|
Mr,
|
|
5064
|
-
|
|
5063
|
+
K("div", Er, me(e.title), 1),
|
|
5065
5064
|
Fr
|
|
5066
5065
|
])
|
|
5067
5066
|
]),
|
|
5068
5067
|
Or,
|
|
5069
5068
|
Rr,
|
|
5070
5069
|
Dr,
|
|
5071
|
-
|
|
5072
|
-
], 4)) :
|
|
5073
|
-
e.mode === "left-title" ? (
|
|
5074
|
-
|
|
5075
|
-
|
|
5070
|
+
zr
|
|
5071
|
+
], 4)) : be("", !0),
|
|
5072
|
+
e.mode === "left-title" ? (E(), R("div", Nr, [
|
|
5073
|
+
K("div", $r, [
|
|
5074
|
+
K("span", null, me(e.title), 1)
|
|
5076
5075
|
])
|
|
5077
|
-
])) :
|
|
5076
|
+
])) : be("", !0)
|
|
5078
5077
|
], 4);
|
|
5079
5078
|
}
|
|
5080
|
-
const Br = /* @__PURE__ */ Y(Sr, [["render", Pr], ["__scopeId", "data-v-f3fc1305"]]), Gr =
|
|
5079
|
+
const Br = /* @__PURE__ */ Y(Sr, [["render", Pr], ["__scopeId", "data-v-f3fc1305"]]), Gr = te(Br), un = {
|
|
5081
5080
|
id: "",
|
|
5082
5081
|
type: "ecanModal",
|
|
5083
5082
|
title: "",
|
|
@@ -5104,65 +5103,89 @@ const Br = /* @__PURE__ */ Y(Sr, [["render", Pr], ["__scopeId", "data-v-f3fc1305
|
|
|
5104
5103
|
...fn
|
|
5105
5104
|
},
|
|
5106
5105
|
setup(e) {
|
|
5107
|
-
const o = () => document.getElementById("ProviderConfig") || document.body, t =
|
|
5108
|
-
const
|
|
5106
|
+
const o = () => document.getElementById("ProviderConfig") || document.body, t = B(() => {
|
|
5107
|
+
const O = e.position;
|
|
5109
5108
|
return {
|
|
5110
5109
|
verticalAlign: {
|
|
5111
5110
|
default: "",
|
|
5112
5111
|
top: "top",
|
|
5113
5112
|
center: "middle",
|
|
5114
5113
|
bottom: "bottom"
|
|
5115
|
-
}[
|
|
5114
|
+
}[O]
|
|
5116
5115
|
};
|
|
5117
|
-
}), n = e.width, a = e.height, i = e.originalWidth, r = e.originalHeight, s =
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5116
|
+
}), n = e.width, a = e.height, i = e.originalWidth, r = e.originalHeight, s = L("80%"), l = L(0), d = L(), c = L(0), f = L({}), g = ae(e), y = L({}), m = L(!1), S = L();
|
|
5117
|
+
let b;
|
|
5118
|
+
const h = () => {
|
|
5119
|
+
d.value = parseFloat(n) / parseFloat(i);
|
|
5120
|
+
const O = parseFloat(a) / parseFloat(r), j = document.body.offsetWidth, J = document.body.offsetHeight;
|
|
5121
|
+
l.value = j * A(d), c.value = J * O, s.value = `${A(d) * 100}%`, f.value = {
|
|
5122
|
+
width: `${A(l)}px`,
|
|
5123
|
+
height: `${A(c)}px`
|
|
5124
|
+
}, y.value = {
|
|
5125
|
+
...A(g),
|
|
5126
|
+
backgroundImage: Ee(e.backgroundImage, !0),
|
|
5127
|
+
transform: `scale(${A(l) / parseFloat(n)},${A(c) / parseFloat(a)})`
|
|
5128
|
+
};
|
|
5129
|
+
}, x = Lt(() => {
|
|
5130
|
+
h();
|
|
5131
|
+
}, 100), w = () => {
|
|
5132
|
+
const O = window.MutationObserver;
|
|
5133
|
+
b = new O(x), b.observe(document.body, {
|
|
5134
|
+
attributes: !0,
|
|
5135
|
+
attributeFilter: ["style"],
|
|
5136
|
+
attributeOldValue: !0
|
|
5137
|
+
});
|
|
5138
|
+
}, $ = () => {
|
|
5139
|
+
b && (b.disconnect(), b.takeRecords(), b = null);
|
|
5140
|
+
}, I = L(!1), { touchRequest: F } = z(ve, {
|
|
5128
5141
|
// @ts-ignore
|
|
5129
5142
|
// eslint-disable-next-line no-void
|
|
5130
5143
|
touchRequest: () => {
|
|
5131
5144
|
}
|
|
5132
|
-
}),
|
|
5133
|
-
|
|
5134
|
-
|
|
5145
|
+
}), k = () => {
|
|
5146
|
+
I.value = !0, Je(() => {
|
|
5147
|
+
F();
|
|
5135
5148
|
});
|
|
5136
5149
|
}, u = () => {
|
|
5137
|
-
|
|
5150
|
+
I.value = !1;
|
|
5138
5151
|
}, p = () => {
|
|
5139
5152
|
u();
|
|
5140
|
-
},
|
|
5153
|
+
}, v = () => {
|
|
5141
5154
|
u();
|
|
5142
5155
|
};
|
|
5156
|
+
ee(() => I.value, (O) => {
|
|
5157
|
+
O ? (m.value = !1, Je(() => {
|
|
5158
|
+
h(), window.addEventListener("resize", x), w(), m.value = !0;
|
|
5159
|
+
})) : (window.removeEventListener("resize", x), $());
|
|
5160
|
+
});
|
|
5161
|
+
const _ = B(() => A(d) >= 1), C = B(() => e.fullModal), T = B(() => {
|
|
5162
|
+
let O = "ecan-modal";
|
|
5163
|
+
return A(_) && (O += " ecan-full-width-modal"), A(C) && (O += " ecan-full-modal"), O;
|
|
5164
|
+
});
|
|
5143
5165
|
return fe(e, {
|
|
5144
|
-
showModal:
|
|
5166
|
+
showModal: k
|
|
5145
5167
|
}), {
|
|
5146
|
-
|
|
5147
|
-
containStyle:
|
|
5148
|
-
contentStyle:
|
|
5168
|
+
modalRef: S,
|
|
5169
|
+
containStyle: f,
|
|
5170
|
+
contentStyle: y,
|
|
5149
5171
|
getContainer: o,
|
|
5150
5172
|
modalStyle: t,
|
|
5151
|
-
modalWith:
|
|
5152
|
-
isFullModal:
|
|
5153
|
-
style:
|
|
5154
|
-
visible:
|
|
5155
|
-
showModal:
|
|
5173
|
+
modalWith: s,
|
|
5174
|
+
isFullModal: C,
|
|
5175
|
+
style: g,
|
|
5176
|
+
visible: I,
|
|
5177
|
+
showModal: k,
|
|
5156
5178
|
onOk: p,
|
|
5157
|
-
onCancel:
|
|
5158
|
-
isFullWidth:
|
|
5159
|
-
wrapClassName:
|
|
5179
|
+
onCancel: v,
|
|
5180
|
+
isFullWidth: _,
|
|
5181
|
+
wrapClassName: T,
|
|
5182
|
+
ready: m
|
|
5160
5183
|
};
|
|
5161
5184
|
}
|
|
5162
5185
|
});
|
|
5163
5186
|
function jr(e, o, t, n, a, i) {
|
|
5164
5187
|
const r = q("a-modal");
|
|
5165
|
-
return
|
|
5188
|
+
return E(), Ie(r, {
|
|
5166
5189
|
getContainer: e.getContainer,
|
|
5167
5190
|
wrapClassName: e.wrapClassName,
|
|
5168
5191
|
centered: "",
|
|
@@ -5170,24 +5193,26 @@ function jr(e, o, t, n, a, i) {
|
|
|
5170
5193
|
footer: null,
|
|
5171
5194
|
width: e.isFullModal || e.isFullWidth ? "100%" : e.modalWith,
|
|
5172
5195
|
destroyOnClose: e.destroyOnClose,
|
|
5173
|
-
style:
|
|
5196
|
+
style: P(e.modalStyle),
|
|
5174
5197
|
onOk: e.onOk,
|
|
5175
|
-
onCancel: e.onCancel
|
|
5198
|
+
onCancel: e.onCancel,
|
|
5199
|
+
ref: "modalRef"
|
|
5176
5200
|
}, _n({
|
|
5177
5201
|
default: V(() => [
|
|
5178
|
-
|
|
5202
|
+
K("div", {
|
|
5179
5203
|
class: "contain",
|
|
5180
|
-
ref: "
|
|
5181
|
-
style:
|
|
5204
|
+
ref: "containRef",
|
|
5205
|
+
style: P(e.containStyle)
|
|
5182
5206
|
}, [
|
|
5183
|
-
|
|
5207
|
+
e.ready ? (E(), R("div", {
|
|
5208
|
+
key: 0,
|
|
5184
5209
|
class: "content",
|
|
5185
|
-
style:
|
|
5210
|
+
style: P(e.contentStyle)
|
|
5186
5211
|
}, [
|
|
5187
|
-
(
|
|
5212
|
+
(E(!0), R(xe, null, Te(e.componentList, (s, l) => (E(), Ie(Ln(s.type), In({
|
|
5188
5213
|
key: s.id + l
|
|
5189
5214
|
}, s), null, 16))), 128))
|
|
5190
|
-
], 4)
|
|
5215
|
+
], 4)) : be("", !0)
|
|
5191
5216
|
], 4)
|
|
5192
5217
|
]),
|
|
5193
5218
|
_: 2
|
|
@@ -5195,8 +5220,8 @@ function jr(e, o, t, n, a, i) {
|
|
|
5195
5220
|
e.title ? {
|
|
5196
5221
|
name: "title",
|
|
5197
5222
|
fn: V(() => [
|
|
5198
|
-
|
|
5199
|
-
style:
|
|
5223
|
+
K("div", {
|
|
5224
|
+
style: P({
|
|
5200
5225
|
fontSize: e.titleFontSize,
|
|
5201
5226
|
color: e.titleColor,
|
|
5202
5227
|
backgroundColor: e.backgroundColor,
|
|
@@ -5207,7 +5232,7 @@ function jr(e, o, t, n, a, i) {
|
|
|
5207
5232
|
} : void 0
|
|
5208
5233
|
]), 1032, ["getContainer", "wrapClassName", "visible", "width", "destroyOnClose", "style", "onOk", "onCancel"]);
|
|
5209
5234
|
}
|
|
5210
|
-
const Wr = /* @__PURE__ */ Y(qr, [["render", jr], ["__scopeId", "data-v-
|
|
5235
|
+
const Wr = /* @__PURE__ */ Y(qr, [["render", jr], ["__scopeId", "data-v-d4c1c742"]]), Vr = te(Wr), mn = {
|
|
5211
5236
|
...le,
|
|
5212
5237
|
tabHorizontalPadding: "0px",
|
|
5213
5238
|
type: "ecanTabs",
|
|
@@ -5247,20 +5272,20 @@ const Wr = /* @__PURE__ */ Y(qr, [["render", jr], ["__scopeId", "data-v-aeb20a2b
|
|
|
5247
5272
|
},
|
|
5248
5273
|
setup(e) {
|
|
5249
5274
|
var c;
|
|
5250
|
-
const o = ae(e), t =
|
|
5251
|
-
|
|
5275
|
+
const o = ae(e), t = L(0);
|
|
5276
|
+
ee(() => e.activeKey, (f) => {
|
|
5252
5277
|
t.value = f;
|
|
5253
5278
|
}, {
|
|
5254
5279
|
immediate: !0
|
|
5255
5280
|
});
|
|
5256
|
-
const n =
|
|
5257
|
-
|
|
5281
|
+
const n = L([]);
|
|
5282
|
+
ee(() => e.data, (f) => {
|
|
5258
5283
|
n.value = f;
|
|
5259
5284
|
}, {
|
|
5260
5285
|
immediate: !0,
|
|
5261
5286
|
deep: !0
|
|
5262
5287
|
});
|
|
5263
|
-
const a = (f) => t.value === f, i =
|
|
5288
|
+
const a = (f) => t.value === f, i = L(e.value || A(n)[0] && ((c = A(n)[0]) == null ? void 0 : c.value) || ""), r = ce(e), { setGlobalModel: s } = z(se, {
|
|
5264
5289
|
// @ts-ignore
|
|
5265
5290
|
// eslint-disable-next-line no-void
|
|
5266
5291
|
setGlobalModel: (f, g) => {
|
|
@@ -5291,22 +5316,22 @@ const Wr = /* @__PURE__ */ Y(qr, [["render", jr], ["__scopeId", "data-v-aeb20a2b
|
|
|
5291
5316
|
});
|
|
5292
5317
|
const Jr = ["onClick"];
|
|
5293
5318
|
function Yr(e, o, t, n, a, i) {
|
|
5294
|
-
return
|
|
5319
|
+
return E(), R("div", {
|
|
5295
5320
|
class: "ecan-tabs",
|
|
5296
|
-
style:
|
|
5321
|
+
style: P(e.style)
|
|
5297
5322
|
}, [
|
|
5298
|
-
|
|
5323
|
+
K("div", {
|
|
5299
5324
|
class: "tabs-header",
|
|
5300
|
-
style:
|
|
5325
|
+
style: P({
|
|
5301
5326
|
fontSize: e.tabFontSize,
|
|
5302
5327
|
alignItems: e.tabAlignItems,
|
|
5303
5328
|
justifyContent: e.tabJustifyContent,
|
|
5304
5329
|
flexDirection: e.tabFlexDirection
|
|
5305
5330
|
})
|
|
5306
5331
|
}, [
|
|
5307
|
-
(
|
|
5332
|
+
(E(!0), R(xe, null, Te(e.myData, (r, s) => (E(), R("div", {
|
|
5308
5333
|
class: "tab",
|
|
5309
|
-
style:
|
|
5334
|
+
style: P({
|
|
5310
5335
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
5311
5336
|
color: e.isActive(s) ? e.activeTabColor : e.tabColor,
|
|
5312
5337
|
backgroundImage: e.isActive(s) ? e.useImagePath(e.activeTabBackgroundImage, !0) : e.useImagePath(e.tabBackgroundImage, !0),
|
|
@@ -5317,9 +5342,9 @@ function Yr(e, o, t, n, a, i) {
|
|
|
5317
5342
|
key: s,
|
|
5318
5343
|
onClick: Mn((l) => e.tabChange(r, s), ["prevent", "stop"])
|
|
5319
5344
|
}, [
|
|
5320
|
-
|
|
5345
|
+
K("div", {
|
|
5321
5346
|
class: "tab-inner",
|
|
5322
|
-
style:
|
|
5347
|
+
style: P({
|
|
5323
5348
|
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(s) ? e.activeTabColor : "transparent"}` : ""
|
|
5324
5349
|
})
|
|
5325
5350
|
}, me(r.title), 5)
|
|
@@ -5327,7 +5352,7 @@ function Yr(e, o, t, n, a, i) {
|
|
|
5327
5352
|
], 4)
|
|
5328
5353
|
], 4);
|
|
5329
5354
|
}
|
|
5330
|
-
const Qr = /* @__PURE__ */ Y(Zr, [["render", Yr], ["__scopeId", "data-v-3db5a989"]]), Kr =
|
|
5355
|
+
const Qr = /* @__PURE__ */ Y(Zr, [["render", Yr], ["__scopeId", "data-v-3db5a989"]]), Kr = te(Qr), hn = {
|
|
5331
5356
|
...le,
|
|
5332
5357
|
name: "图片",
|
|
5333
5358
|
keyName: "图片",
|
|
@@ -5344,7 +5369,7 @@ const Qr = /* @__PURE__ */ Y(Zr, [["render", Yr], ["__scopeId", "data-v-3db5a989
|
|
|
5344
5369
|
...yn
|
|
5345
5370
|
},
|
|
5346
5371
|
setup(e) {
|
|
5347
|
-
const o = ae(e), t =
|
|
5372
|
+
const o = ae(e), t = B(() => Ee(e.imgUrl)), { pageMode: n } = z(re, {
|
|
5348
5373
|
pageMode: "normal"
|
|
5349
5374
|
});
|
|
5350
5375
|
return {
|
|
@@ -5367,18 +5392,18 @@ const Qr = /* @__PURE__ */ Y(Zr, [["render", Yr], ["__scopeId", "data-v-3db5a989
|
|
|
5367
5392
|
});
|
|
5368
5393
|
const es = ["src"];
|
|
5369
5394
|
function ts(e, o, t, n, a, i) {
|
|
5370
|
-
return e.myImgUrl !== "" ? (
|
|
5395
|
+
return e.myImgUrl !== "" ? (E(), R("img", {
|
|
5371
5396
|
key: 0,
|
|
5372
|
-
style:
|
|
5397
|
+
style: P(e.style),
|
|
5373
5398
|
src: e.myImgUrl,
|
|
5374
5399
|
onClick: o[0] || (o[0] = (...r) => e.onClick && e.onClick(...r))
|
|
5375
|
-
}, null, 12, es)) : (
|
|
5400
|
+
}, null, 12, es)) : (E(), R("div", {
|
|
5376
5401
|
key: 1,
|
|
5377
5402
|
class: "image-placeholder",
|
|
5378
|
-
style:
|
|
5403
|
+
style: P(e.style)
|
|
5379
5404
|
}, " 请上传图片 ", 4));
|
|
5380
5405
|
}
|
|
5381
|
-
const os = /* @__PURE__ */ Y(Xr, [["render", ts], ["__scopeId", "data-v-9706b851"]]), ns =
|
|
5406
|
+
const os = /* @__PURE__ */ Y(Xr, [["render", ts], ["__scopeId", "data-v-9706b851"]]), ns = te(os), bn = {
|
|
5382
5407
|
...le,
|
|
5383
5408
|
name: "网页",
|
|
5384
5409
|
keyName: "网页",
|
|
@@ -5395,7 +5420,7 @@ const os = /* @__PURE__ */ Y(Xr, [["render", ts], ["__scopeId", "data-v-9706b851
|
|
|
5395
5420
|
setup(e) {
|
|
5396
5421
|
const o = ae(e), { contextRequestUrl: t } = z(re, {
|
|
5397
5422
|
contextRequestUrl: ""
|
|
5398
|
-
}), n =
|
|
5423
|
+
}), n = B(() => {
|
|
5399
5424
|
let a = he(e.link);
|
|
5400
5425
|
if (e.linkType === "erd" && a != null) {
|
|
5401
5426
|
let i = A(t);
|
|
@@ -5411,17 +5436,17 @@ const os = /* @__PURE__ */ Y(Xr, [["render", ts], ["__scopeId", "data-v-9706b851
|
|
|
5411
5436
|
});
|
|
5412
5437
|
const ls = ["src"];
|
|
5413
5438
|
function is(e, o, t, n, a, i) {
|
|
5414
|
-
return e.myLink ? (
|
|
5439
|
+
return e.myLink ? (E(), R("iframe", {
|
|
5415
5440
|
key: 0,
|
|
5416
5441
|
src: e.myLink,
|
|
5417
|
-
style:
|
|
5418
|
-
}, null, 12, ls)) : (
|
|
5442
|
+
style: P(e.style)
|
|
5443
|
+
}, null, 12, ls)) : (E(), R("div", {
|
|
5419
5444
|
key: 1,
|
|
5420
5445
|
class: "iframe-placeholder",
|
|
5421
|
-
style:
|
|
5446
|
+
style: P(e.style)
|
|
5422
5447
|
}, " 请填写网页链接 ", 4));
|
|
5423
5448
|
}
|
|
5424
|
-
const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8"]]), ss =
|
|
5449
|
+
const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8"]]), ss = te(rs), pn = {
|
|
5425
5450
|
...le,
|
|
5426
5451
|
zIndex: 2,
|
|
5427
5452
|
name: "表格",
|
|
@@ -5493,8 +5518,8 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5493
5518
|
name: "EcanTable",
|
|
5494
5519
|
components: {
|
|
5495
5520
|
Skeleton: mt,
|
|
5496
|
-
AInput:
|
|
5497
|
-
ACheckboxGroup:
|
|
5521
|
+
AInput: co,
|
|
5522
|
+
ACheckboxGroup: uo,
|
|
5498
5523
|
ATable: Vn,
|
|
5499
5524
|
ATableSummary: Hn,
|
|
5500
5525
|
ATableSummaryRow: Zn,
|
|
@@ -5504,7 +5529,7 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5504
5529
|
...Cn
|
|
5505
5530
|
},
|
|
5506
5531
|
setup(e, { expose: o }) {
|
|
5507
|
-
const t = ae(e), n =
|
|
5532
|
+
const t = ae(e), n = B(() => {
|
|
5508
5533
|
if (e.paginationShow)
|
|
5509
5534
|
switch (e.size) {
|
|
5510
5535
|
case "small":
|
|
@@ -5523,12 +5548,12 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5523
5548
|
default:
|
|
5524
5549
|
return 55;
|
|
5525
5550
|
}
|
|
5526
|
-
}), a =
|
|
5527
|
-
if (Array.isArray(
|
|
5528
|
-
const
|
|
5529
|
-
for (let W = 0; W <
|
|
5530
|
-
const
|
|
5531
|
-
W < U ?
|
|
5551
|
+
}), a = B(() => e.scrollX), i = B(() => parseFloat(e.height) - A(n)), r = L([]), s = L([]), l = L([]), d = L([]), c = L(0), f = L(1), g = B(() => e.paginationPageSize), y = En([]), m = (M = []) => {
|
|
5552
|
+
if (Array.isArray(M) && M.length > 0) {
|
|
5553
|
+
const D = M.length, U = e.columnsFixedNum;
|
|
5554
|
+
for (let W = 0; W < D; W++) {
|
|
5555
|
+
const N = M[W];
|
|
5556
|
+
W < U ? N.fixed = "left" : N.fixed = !1;
|
|
5532
5557
|
const {
|
|
5533
5558
|
cellAlign: X = "center",
|
|
5534
5559
|
cellColor: ne,
|
|
@@ -5536,19 +5561,19 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5536
5561
|
title: ge,
|
|
5537
5562
|
tableFilter: ue,
|
|
5538
5563
|
headerCellAlign: Ge,
|
|
5539
|
-
headerCellColor:
|
|
5540
|
-
} =
|
|
5541
|
-
ue && (y.push(de),
|
|
5564
|
+
headerCellColor: nt
|
|
5565
|
+
} = N;
|
|
5566
|
+
ue && (y.push(de), N.filterOptionsInputValue = "", N.filterCheckboxGroupValue = [], N.customFilterDropdown = !0, N.onFilter = (Ue, gt) => gt[de].toString().toLowerCase().includes(Ue.toLowerCase())), N.customHeaderCell = () => ({
|
|
5542
5567
|
style: {
|
|
5543
5568
|
display: "table-cell",
|
|
5544
5569
|
verticalAlign: "middle",
|
|
5545
5570
|
fontSize: e.headerFontSize,
|
|
5546
5571
|
fontWeight: e.headerFontWeight,
|
|
5547
5572
|
textAlign: Ge || "center",
|
|
5548
|
-
color:
|
|
5573
|
+
color: nt,
|
|
5549
5574
|
borderBottomColor: e.borderColor
|
|
5550
5575
|
}
|
|
5551
|
-
}),
|
|
5576
|
+
}), N.customCell = (Ue, gt) => ({
|
|
5552
5577
|
style: {
|
|
5553
5578
|
textAlign: X,
|
|
5554
5579
|
color: ne,
|
|
@@ -5559,26 +5584,26 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5559
5584
|
highlight: A(ie) === gt && e.clickHighlight
|
|
5560
5585
|
},
|
|
5561
5586
|
onClick: C("click", () => {
|
|
5562
|
-
const
|
|
5587
|
+
const zt = e.id, xn = O(zt);
|
|
5563
5588
|
Ue = {
|
|
5564
5589
|
dataIndex: de,
|
|
5565
5590
|
title: ge,
|
|
5566
5591
|
...Ue
|
|
5567
|
-
}, j(
|
|
5592
|
+
}, j(zt, { ...xn, RECORD: Ue });
|
|
5568
5593
|
})
|
|
5569
|
-
}), Array.isArray(
|
|
5594
|
+
}), Array.isArray(N.children) && m(N.children);
|
|
5570
5595
|
}
|
|
5571
5596
|
}
|
|
5572
|
-
},
|
|
5597
|
+
}, S = (M = []) => (e.isUseSeq && M.unshift({
|
|
5573
5598
|
title: "序号",
|
|
5574
5599
|
dataIndex: "SEQ",
|
|
5575
5600
|
align: "center"
|
|
5576
|
-
}), e.isUseAction &&
|
|
5601
|
+
}), e.isUseAction && M.push({
|
|
5577
5602
|
title: "操作",
|
|
5578
5603
|
dataIndex: "ACTION",
|
|
5579
5604
|
width: e.actionColumnWidth
|
|
5580
|
-
}), m(
|
|
5581
|
-
|
|
5605
|
+
}), m(M), M);
|
|
5606
|
+
ee(() => [
|
|
5582
5607
|
e.columns,
|
|
5583
5608
|
e.isUseSeq,
|
|
5584
5609
|
e.isUseAction,
|
|
@@ -5587,59 +5612,59 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5587
5612
|
e.cellBackgroundColor,
|
|
5588
5613
|
e.borderColor
|
|
5589
5614
|
], () => {
|
|
5590
|
-
r.value =
|
|
5615
|
+
r.value = S(yt(e.columns));
|
|
5591
5616
|
}, {
|
|
5592
5617
|
immediate: !0,
|
|
5593
5618
|
deep: !0
|
|
5594
|
-
}),
|
|
5595
|
-
|
|
5619
|
+
}), ee(() => [e.data, e.dataType], ([M, D]) => {
|
|
5620
|
+
D === "static" && (s.value = M);
|
|
5596
5621
|
}, {
|
|
5597
5622
|
immediate: !0
|
|
5598
5623
|
});
|
|
5599
|
-
const
|
|
5600
|
-
if (Array.isArray(
|
|
5601
|
-
const
|
|
5602
|
-
for (let ne = 0; ne <
|
|
5603
|
-
const de =
|
|
5624
|
+
const b = L({}), h = (M) => {
|
|
5625
|
+
if (Array.isArray(M)) {
|
|
5626
|
+
const D = M.length, U = y, W = U.length, N = {};
|
|
5627
|
+
for (let ne = 0; ne < D; ne++) {
|
|
5628
|
+
const de = M[ne];
|
|
5604
5629
|
for (let ge = 0; ge < W; ge++) {
|
|
5605
5630
|
const ue = U[ge];
|
|
5606
|
-
if (
|
|
5607
|
-
|
|
5631
|
+
if (N[ue])
|
|
5632
|
+
N[ue].add(de[ue]);
|
|
5608
5633
|
else {
|
|
5609
5634
|
const Ge = /* @__PURE__ */ new Set();
|
|
5610
|
-
Ge.add(de[ue]),
|
|
5635
|
+
Ge.add(de[ue]), N[ue] = Ge;
|
|
5611
5636
|
}
|
|
5612
5637
|
}
|
|
5613
5638
|
}
|
|
5614
5639
|
const X = {};
|
|
5615
|
-
for (const ne in
|
|
5616
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5617
|
-
const de =
|
|
5640
|
+
for (const ne in N)
|
|
5641
|
+
if (Object.prototype.hasOwnProperty.call(N, ne)) {
|
|
5642
|
+
const de = N[ne], ge = Array.from(de);
|
|
5618
5643
|
X[ne] = ge.map((ue) => ({ label: ue, value: ue }));
|
|
5619
5644
|
}
|
|
5620
|
-
|
|
5645
|
+
b.value = X;
|
|
5621
5646
|
}
|
|
5622
5647
|
};
|
|
5623
|
-
|
|
5624
|
-
const
|
|
5625
|
-
if (h(
|
|
5626
|
-
const { columns: U, dataSource: W } = x(yt(
|
|
5648
|
+
ee(() => [e.isReverse, r.value, s.value], () => {
|
|
5649
|
+
const M = A(r), D = A(s);
|
|
5650
|
+
if (h(D), e.isReverse) {
|
|
5651
|
+
const { columns: U, dataSource: W } = x(yt(M), yt(D));
|
|
5627
5652
|
l.value = U, d.value = W;
|
|
5628
5653
|
} else
|
|
5629
|
-
l.value =
|
|
5654
|
+
l.value = M, d.value = D;
|
|
5630
5655
|
}, {
|
|
5631
5656
|
immediate: !0,
|
|
5632
5657
|
flush: "post"
|
|
5633
5658
|
});
|
|
5634
|
-
const x = (
|
|
5635
|
-
const U =
|
|
5659
|
+
const x = (M, D) => {
|
|
5660
|
+
const U = M[0], W = [{
|
|
5636
5661
|
title: U.title,
|
|
5637
5662
|
dataIndex: "col0",
|
|
5638
5663
|
key: "col0",
|
|
5639
5664
|
align: "center"
|
|
5640
5665
|
}];
|
|
5641
|
-
for (let X = 0; X <
|
|
5642
|
-
const ne =
|
|
5666
|
+
for (let X = 0; X < D.length; X++) {
|
|
5667
|
+
const ne = D[X], de = "col" + (X + 1);
|
|
5643
5668
|
W.push({
|
|
5644
5669
|
title: ne[U.dataIndex],
|
|
5645
5670
|
dataIndex: de,
|
|
@@ -5647,64 +5672,64 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5647
5672
|
align: "center"
|
|
5648
5673
|
});
|
|
5649
5674
|
}
|
|
5650
|
-
const
|
|
5651
|
-
for (let X = 1; X <
|
|
5652
|
-
const ne =
|
|
5653
|
-
for (let ge = 0; ge <
|
|
5654
|
-
const ue =
|
|
5675
|
+
const N = [];
|
|
5676
|
+
for (let X = 1; X < M.length; X++) {
|
|
5677
|
+
const ne = M[X], de = { col0: ne.title };
|
|
5678
|
+
for (let ge = 0; ge < D.length; ge++) {
|
|
5679
|
+
const ue = D[ge];
|
|
5655
5680
|
de[`col${ge + 1}`] = ue[ne.dataIndex];
|
|
5656
5681
|
}
|
|
5657
|
-
|
|
5682
|
+
N.push(de);
|
|
5658
5683
|
}
|
|
5659
5684
|
return {
|
|
5660
5685
|
columns: W,
|
|
5661
|
-
dataSource:
|
|
5686
|
+
dataSource: N
|
|
5662
5687
|
};
|
|
5663
|
-
},
|
|
5664
|
-
var
|
|
5688
|
+
}, w = L(""), $ = we(e), I = L(!1), F = async (M = !0) => {
|
|
5689
|
+
var D;
|
|
5665
5690
|
try {
|
|
5666
|
-
|
|
5691
|
+
M && (I.value = !0);
|
|
5667
5692
|
let U = {};
|
|
5668
|
-
A(
|
|
5693
|
+
A(w) && (U.orderCondition = A(w)), e.paginationShow && (U = {
|
|
5669
5694
|
pageNum: A(f),
|
|
5670
5695
|
pageSize: A(g),
|
|
5671
5696
|
layer: "1",
|
|
5672
5697
|
...U
|
|
5673
5698
|
});
|
|
5674
|
-
const W = await
|
|
5675
|
-
c.value = X, Array.isArray(
|
|
5699
|
+
const W = await $(U), { rows: N = [], total: X = 0 } = ((D = W == null ? void 0 : W.data) == null ? void 0 : D.data) || {};
|
|
5700
|
+
c.value = X, Array.isArray(N) && (s.value = N);
|
|
5676
5701
|
} catch (U) {
|
|
5677
5702
|
console.error(U);
|
|
5678
5703
|
} finally {
|
|
5679
5704
|
I.value = !1;
|
|
5680
5705
|
}
|
|
5681
|
-
},
|
|
5682
|
-
if (f.value =
|
|
5683
|
-
const { field: W, order:
|
|
5706
|
+
}, k = ({ current: M }, D, U) => {
|
|
5707
|
+
if (f.value = M, U && Object.keys(U).length > 0) {
|
|
5708
|
+
const { field: W, order: N } = U, ne = {
|
|
5684
5709
|
ascend: "asc",
|
|
5685
5710
|
descend: "desc"
|
|
5686
|
-
}[
|
|
5687
|
-
W != null && ne != null && (
|
|
5711
|
+
}[N];
|
|
5712
|
+
W != null && ne != null && (w.value = W + " " + ne, f.value = 1);
|
|
5688
5713
|
}
|
|
5689
|
-
|
|
5690
|
-
}, u =
|
|
5691
|
-
const
|
|
5714
|
+
ot(!1);
|
|
5715
|
+
}, u = B(() => {
|
|
5716
|
+
const M = e.simple, D = [e.paginationPosition];
|
|
5692
5717
|
return e.paginationShow && {
|
|
5693
|
-
simple:
|
|
5694
|
-
position:
|
|
5718
|
+
simple: M,
|
|
5719
|
+
position: D,
|
|
5695
5720
|
total: A(c),
|
|
5696
5721
|
current: A(f),
|
|
5697
5722
|
pageSize: A(g),
|
|
5698
5723
|
showSizeChanger: !1
|
|
5699
5724
|
};
|
|
5700
|
-
}), p = (
|
|
5701
|
-
money:
|
|
5702
|
-
percentage:
|
|
5703
|
-
contrast:
|
|
5725
|
+
}), p = (M) => +M == 1 ? "是" : +M == 0 ? "否" : M, v = (M, D) => D == null || D === "" ? M : {
|
|
5726
|
+
money: Rt,
|
|
5727
|
+
percentage: dt,
|
|
5728
|
+
contrast: dt,
|
|
5704
5729
|
boolean: p
|
|
5705
|
-
}[
|
|
5706
|
-
const U = parseFloat(
|
|
5707
|
-
if (
|
|
5730
|
+
}[D](M) || "", _ = (M, D) => {
|
|
5731
|
+
const U = parseFloat(M + "");
|
|
5732
|
+
if (D !== "contrast")
|
|
5708
5733
|
return "";
|
|
5709
5734
|
switch (!0) {
|
|
5710
5735
|
case U >= 0:
|
|
@@ -5714,39 +5739,39 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5714
5739
|
}
|
|
5715
5740
|
}, C = ce(e), { pageMode: T } = z(re, {
|
|
5716
5741
|
pageMode: "normal"
|
|
5717
|
-
}), { getGlobalModel:
|
|
5742
|
+
}), { getGlobalModel: O, setGlobalModel: j } = z(se, {
|
|
5718
5743
|
// @ts-ignore
|
|
5719
5744
|
// eslint-disable-next-line no-void
|
|
5720
|
-
getGlobalModel: (
|
|
5745
|
+
getGlobalModel: (M) => {
|
|
5721
5746
|
},
|
|
5722
5747
|
// @ts-ignore
|
|
5723
5748
|
// eslint-disable-next-line no-void
|
|
5724
|
-
setGlobalModel: (
|
|
5749
|
+
setGlobalModel: (M, D) => {
|
|
5725
5750
|
}
|
|
5726
|
-
}),
|
|
5727
|
-
const U =
|
|
5728
|
-
r.value =
|
|
5751
|
+
}), J = (M = [], D = []) => {
|
|
5752
|
+
const U = M.map((W) => ({ title: W, dataIndex: W, key: W }));
|
|
5753
|
+
r.value = S(U), s.value = D;
|
|
5729
5754
|
}, H = _o(e), Q = async () => {
|
|
5730
|
-
var
|
|
5755
|
+
var M, D, U, W;
|
|
5731
5756
|
try {
|
|
5732
5757
|
I.value = !0;
|
|
5733
|
-
const
|
|
5734
|
-
|
|
5735
|
-
} catch (
|
|
5736
|
-
console.error(
|
|
5758
|
+
const N = await H();
|
|
5759
|
+
J((D = (M = N == null ? void 0 : N.data) == null ? void 0 : M.data) == null ? void 0 : D.columns, (W = (U = N == null ? void 0 : N.data) == null ? void 0 : U.data) == null ? void 0 : W.rows);
|
|
5760
|
+
} catch (N) {
|
|
5761
|
+
console.error(N);
|
|
5737
5762
|
} finally {
|
|
5738
5763
|
I.value = !1;
|
|
5739
5764
|
}
|
|
5740
|
-
}, ie =
|
|
5765
|
+
}, ie = L(-1), Me = (M, D) => ({
|
|
5741
5766
|
onClick: C("rowClick", () => {
|
|
5742
|
-
const U = e.id, W =
|
|
5743
|
-
j(U, { ...W, RECORD:
|
|
5767
|
+
const U = e.id, W = O(U);
|
|
5768
|
+
j(U, { ...W, RECORD: M }), ie.value = D;
|
|
5744
5769
|
})
|
|
5745
|
-
}),
|
|
5770
|
+
}), ot = (M = !0) => {
|
|
5746
5771
|
if (A(T) !== "design")
|
|
5747
5772
|
switch (e.dataType) {
|
|
5748
5773
|
case "request":
|
|
5749
|
-
|
|
5774
|
+
F(M);
|
|
5750
5775
|
break;
|
|
5751
5776
|
case "indicator":
|
|
5752
5777
|
Q();
|
|
@@ -5755,24 +5780,24 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5755
5780
|
};
|
|
5756
5781
|
fe(e, {
|
|
5757
5782
|
resetRecord: () => {
|
|
5758
|
-
const
|
|
5759
|
-
j(
|
|
5783
|
+
const M = e.id, D = O(M);
|
|
5784
|
+
j(M, { ...D, RECORD: "" });
|
|
5760
5785
|
},
|
|
5761
|
-
refreshData:
|
|
5786
|
+
refreshData: ot
|
|
5762
5787
|
});
|
|
5763
|
-
const
|
|
5764
|
-
const
|
|
5788
|
+
const kn = B(() => {
|
|
5789
|
+
const M = A(l), D = [];
|
|
5765
5790
|
let U = 0;
|
|
5766
|
-
for (let
|
|
5767
|
-
const X =
|
|
5768
|
-
e.isUseSeq &&
|
|
5791
|
+
for (let N = 0; N < M.length; N++) {
|
|
5792
|
+
const X = M[N], { isCalcTotal: ne } = X;
|
|
5793
|
+
e.isUseSeq && N === 0 ? D.push({
|
|
5769
5794
|
...X,
|
|
5770
5795
|
total: "小计"
|
|
5771
|
-
}) : ne ? (
|
|
5796
|
+
}) : ne ? (D.push({
|
|
5772
5797
|
...X,
|
|
5773
|
-
index:
|
|
5798
|
+
index: N,
|
|
5774
5799
|
total: 0
|
|
5775
|
-
}), U++) :
|
|
5800
|
+
}), U++) : D.push({
|
|
5776
5801
|
...X
|
|
5777
5802
|
});
|
|
5778
5803
|
}
|
|
@@ -5780,91 +5805,91 @@ const rs = /* @__PURE__ */ Y(as, [["render", is], ["__scopeId", "data-v-b0be60e8
|
|
|
5780
5805
|
return [];
|
|
5781
5806
|
let W = A(d);
|
|
5782
5807
|
if (e.paginationShow) {
|
|
5783
|
-
const
|
|
5784
|
-
W = W.slice(
|
|
5808
|
+
const N = (A(f) - 1) * A(g), X = N + A(g);
|
|
5809
|
+
W = W.slice(N, X);
|
|
5785
5810
|
}
|
|
5786
|
-
for (let
|
|
5787
|
-
const X =
|
|
5811
|
+
for (let N = 0; N < D.length; N++) {
|
|
5812
|
+
const X = D[N];
|
|
5788
5813
|
let ne = 0;
|
|
5789
5814
|
const { isCalcTotal: de, dataIndex: ge } = X;
|
|
5790
5815
|
if (de === !0) {
|
|
5791
5816
|
for (let ue = 0; ue < W.length; ue++) {
|
|
5792
|
-
const
|
|
5793
|
-
isNaN(
|
|
5817
|
+
const nt = +W[ue][ge];
|
|
5818
|
+
isNaN(nt) || (ne = new la(ne).add(nt).toNumber());
|
|
5794
5819
|
}
|
|
5795
5820
|
X.total = ne;
|
|
5796
5821
|
}
|
|
5797
5822
|
}
|
|
5798
|
-
return
|
|
5799
|
-
}), { setRequest: An } = z(
|
|
5823
|
+
return D;
|
|
5824
|
+
}), { setRequest: An } = z(ve, {
|
|
5800
5825
|
// @ts-ignore
|
|
5801
5826
|
// eslint-disable-next-line no-void
|
|
5802
|
-
setRequest: ({ id:
|
|
5827
|
+
setRequest: ({ id: M, sortNum: D, requestFn: U }) => {
|
|
5803
5828
|
}
|
|
5804
5829
|
});
|
|
5805
5830
|
return An({
|
|
5806
5831
|
id: e.id,
|
|
5807
|
-
requestFn:
|
|
5832
|
+
requestFn: ot,
|
|
5808
5833
|
sortNum: e.requestSort
|
|
5809
5834
|
}), o({
|
|
5810
|
-
refreshData:
|
|
5835
|
+
refreshData: ot
|
|
5811
5836
|
}), {
|
|
5812
5837
|
x: a,
|
|
5813
5838
|
y: i,
|
|
5814
5839
|
style: t,
|
|
5815
5840
|
customRow: Me,
|
|
5816
5841
|
pagination: u,
|
|
5817
|
-
formatFn:
|
|
5842
|
+
formatFn: v,
|
|
5818
5843
|
contrastClass: _,
|
|
5819
|
-
tableChange:
|
|
5820
|
-
summaryList:
|
|
5844
|
+
tableChange: k,
|
|
5845
|
+
summaryList: kn,
|
|
5821
5846
|
loading: I,
|
|
5822
|
-
onTouchHrefEvent: (
|
|
5823
|
-
|
|
5847
|
+
onTouchHrefEvent: (M, D = "") => {
|
|
5848
|
+
M === "event" && window.parent.postMessage({
|
|
5824
5849
|
type: "openPage",
|
|
5825
|
-
url:
|
|
5850
|
+
url: D
|
|
5826
5851
|
}, "*");
|
|
5827
5852
|
},
|
|
5828
|
-
handleHref: (
|
|
5829
|
-
handleHrefTarget: (
|
|
5830
|
-
if (
|
|
5853
|
+
handleHref: (M = "", D) => he(M, D),
|
|
5854
|
+
handleHrefTarget: (M) => {
|
|
5855
|
+
if (M !== "event")
|
|
5831
5856
|
return {
|
|
5832
5857
|
self: "_self",
|
|
5833
5858
|
blank: "_blank"
|
|
5834
|
-
}[
|
|
5859
|
+
}[M];
|
|
5835
5860
|
},
|
|
5836
5861
|
useRowIndex: ie,
|
|
5837
5862
|
tableColumns: l,
|
|
5838
5863
|
tableDataSource: d,
|
|
5839
|
-
useFilterOptions: (
|
|
5840
|
-
const
|
|
5841
|
-
if (typeof
|
|
5842
|
-
let U = A(
|
|
5843
|
-
const W = A(
|
|
5844
|
-
return Array.isArray(U) ? (U = U.filter((
|
|
5864
|
+
useFilterOptions: (M) => {
|
|
5865
|
+
const D = M.dataIndex;
|
|
5866
|
+
if (typeof D == "string") {
|
|
5867
|
+
let U = A(b)[D];
|
|
5868
|
+
const W = A(M.filterOptionsInputValue).trim();
|
|
5869
|
+
return Array.isArray(U) ? (U = U.filter((N) => typeof N.label == "string" ? N.label.toLowerCase().includes(W.toLowerCase()) : !0), U) : [];
|
|
5845
5870
|
}
|
|
5846
5871
|
return [];
|
|
5847
5872
|
},
|
|
5848
|
-
useSetSelectedKeys: (
|
|
5849
|
-
|
|
5873
|
+
useSetSelectedKeys: (M, D) => {
|
|
5874
|
+
M(D.filterCheckboxGroupValue);
|
|
5850
5875
|
},
|
|
5851
|
-
onResetFilter: (
|
|
5852
|
-
|
|
5876
|
+
onResetFilter: (M, D) => {
|
|
5877
|
+
M({ confirm: !0 }), D.filterOptionsInputValue = "", D.filterCheckboxGroupValue = [];
|
|
5853
5878
|
},
|
|
5854
5879
|
onSearchFilterOptions: () => {
|
|
5855
5880
|
}
|
|
5856
5881
|
};
|
|
5857
5882
|
}
|
|
5858
5883
|
});
|
|
5859
|
-
const us = /* @__PURE__ */
|
|
5884
|
+
const us = /* @__PURE__ */ so(" 搜索 "), fs = /* @__PURE__ */ so(" 重置 "), ms = { key: 0 }, gs = {
|
|
5860
5885
|
key: 1,
|
|
5861
5886
|
class: "action-list"
|
|
5862
5887
|
}, hs = ["href", "target", "onClick"];
|
|
5863
5888
|
function ys(e, o, t, n, a, i) {
|
|
5864
5889
|
const r = q("a-input"), s = q("a-checkbox-group"), l = q("a-button"), d = q("a-table-summary-cell"), c = q("a-table-summary-row"), f = q("a-table-summary"), g = q("a-table"), y = q("skeleton");
|
|
5865
|
-
return
|
|
5890
|
+
return E(), R("div", {
|
|
5866
5891
|
class: "ecan-table",
|
|
5867
|
-
style:
|
|
5892
|
+
style: P(e.style)
|
|
5868
5893
|
}, [
|
|
5869
5894
|
G(y, { loading: e.loading }, {
|
|
5870
5895
|
default: V(() => [
|
|
@@ -5882,28 +5907,28 @@ function ys(e, o, t, n, a, i) {
|
|
|
5882
5907
|
pagination: e.pagination,
|
|
5883
5908
|
onChange: e.tableChange
|
|
5884
5909
|
}, {
|
|
5885
|
-
customFilterDropdown: V(({ column: m, selectedKeys:
|
|
5886
|
-
|
|
5910
|
+
customFilterDropdown: V(({ column: m, selectedKeys: S, setSelectedKeys: b, confirm: h, clearFilters: x }) => [
|
|
5911
|
+
K("div", {
|
|
5887
5912
|
class: "ecan-table-filter",
|
|
5888
|
-
style:
|
|
5913
|
+
style: P({
|
|
5889
5914
|
height: e.filterDropdownHeight
|
|
5890
5915
|
})
|
|
5891
5916
|
}, [
|
|
5892
5917
|
G(r, {
|
|
5893
5918
|
value: m.filterOptionsInputValue,
|
|
5894
|
-
"onUpdate:value": (
|
|
5919
|
+
"onUpdate:value": (w) => m.filterOptionsInputValue = w,
|
|
5895
5920
|
placeholder: "请输入关键字",
|
|
5896
5921
|
class: "filter-input",
|
|
5897
5922
|
onChange: e.onSearchFilterOptions
|
|
5898
5923
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
5899
5924
|
G(s, {
|
|
5900
5925
|
value: m.filterCheckboxGroupValue,
|
|
5901
|
-
"onUpdate:value": (
|
|
5926
|
+
"onUpdate:value": (w) => m.filterCheckboxGroupValue = w,
|
|
5902
5927
|
class: "filter-checkbox",
|
|
5903
5928
|
options: e.useFilterOptions(m),
|
|
5904
|
-
onChange: (
|
|
5929
|
+
onChange: (w) => e.useSetSelectedKeys(b, m)
|
|
5905
5930
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
5906
|
-
|
|
5931
|
+
K("div", null, [
|
|
5907
5932
|
G(l, {
|
|
5908
5933
|
type: "primary",
|
|
5909
5934
|
size: "small",
|
|
@@ -5918,7 +5943,7 @@ function ys(e, o, t, n, a, i) {
|
|
|
5918
5943
|
G(l, {
|
|
5919
5944
|
size: "small",
|
|
5920
5945
|
style: { width: "90px" },
|
|
5921
|
-
onClick: (
|
|
5946
|
+
onClick: (w) => e.onResetFilter(x, m)
|
|
5922
5947
|
}, {
|
|
5923
5948
|
default: V(() => [
|
|
5924
5949
|
fs
|
|
@@ -5928,42 +5953,42 @@ function ys(e, o, t, n, a, i) {
|
|
|
5928
5953
|
])
|
|
5929
5954
|
], 4)
|
|
5930
5955
|
]),
|
|
5931
|
-
bodyCell: V(({ column: m, index:
|
|
5932
|
-
m.dataIndex === "SEQ" ? (
|
|
5933
|
-
m.dataIndex === "ACTION" ? (
|
|
5934
|
-
(
|
|
5956
|
+
bodyCell: V(({ column: m, index: S, text: b, record: h }) => [
|
|
5957
|
+
m.dataIndex === "SEQ" ? (E(), R("span", ms, me(S + 1), 1)) : be("", !0),
|
|
5958
|
+
m.dataIndex === "ACTION" ? (E(), R("div", gs, [
|
|
5959
|
+
(E(!0), R(xe, null, Te(e.actionList, (x, w) => (E(), R("div", {
|
|
5935
5960
|
class: "action",
|
|
5936
|
-
key:
|
|
5961
|
+
key: w
|
|
5937
5962
|
}, [
|
|
5938
|
-
|
|
5963
|
+
K("a", {
|
|
5939
5964
|
href: e.handleHref(x.href, h),
|
|
5940
5965
|
target: e.handleHrefTarget(x.target),
|
|
5941
|
-
style:
|
|
5966
|
+
style: P({
|
|
5942
5967
|
color: x.color,
|
|
5943
5968
|
fontSize: e.fontSize,
|
|
5944
5969
|
fontWeight: e.fontWeight
|
|
5945
5970
|
}),
|
|
5946
|
-
onClick: (
|
|
5971
|
+
onClick: ($) => e.onTouchHrefEvent(x.target, e.handleHref(x.href, h))
|
|
5947
5972
|
}, me(x.title), 13, hs)
|
|
5948
5973
|
]))), 128))
|
|
5949
|
-
])) : (
|
|
5974
|
+
])) : (E(), R("div", {
|
|
5950
5975
|
key: 2,
|
|
5951
|
-
class: At([e.contrastClass(
|
|
5952
|
-
style:
|
|
5976
|
+
class: At([e.contrastClass(b, m.format)]),
|
|
5977
|
+
style: P({
|
|
5953
5978
|
fontSize: e.fontSize,
|
|
5954
5979
|
fontWeight: e.fontWeight
|
|
5955
5980
|
})
|
|
5956
|
-
}, me(m.format != null ? e.formatFn(
|
|
5981
|
+
}, me(m.format != null ? e.formatFn(b, m.format) : b), 7))
|
|
5957
5982
|
]),
|
|
5958
5983
|
summary: V(() => [
|
|
5959
|
-
e.summaryList.length > 0 ? (
|
|
5984
|
+
e.summaryList.length > 0 ? (E(), Ie(f, { key: 0 }, {
|
|
5960
5985
|
default: V(() => [
|
|
5961
5986
|
G(c, null, {
|
|
5962
5987
|
default: V(() => [
|
|
5963
|
-
(
|
|
5964
|
-
key:
|
|
5965
|
-
index:
|
|
5966
|
-
style:
|
|
5988
|
+
(E(!0), R(xe, null, Te(e.summaryList, (m, S) => (E(), Ie(d, {
|
|
5989
|
+
key: S,
|
|
5990
|
+
index: S,
|
|
5991
|
+
style: P({
|
|
5967
5992
|
backgroundColor: e.cellBackgroundColor,
|
|
5968
5993
|
textAlign: m.cellAlign || "center",
|
|
5969
5994
|
color: m.cellColor,
|
|
@@ -5971,9 +5996,9 @@ function ys(e, o, t, n, a, i) {
|
|
|
5971
5996
|
})
|
|
5972
5997
|
}, {
|
|
5973
5998
|
default: V(() => [
|
|
5974
|
-
|
|
5999
|
+
K("div", {
|
|
5975
6000
|
class: At([e.contrastClass(m.total, m.format)]),
|
|
5976
|
-
style:
|
|
6001
|
+
style: P({
|
|
5977
6002
|
fontSize: e.fontSize,
|
|
5978
6003
|
fontWeight: e.fontWeight
|
|
5979
6004
|
})
|
|
@@ -5986,7 +6011,7 @@ function ys(e, o, t, n, a, i) {
|
|
|
5986
6011
|
})
|
|
5987
6012
|
]),
|
|
5988
6013
|
_: 1
|
|
5989
|
-
})) :
|
|
6014
|
+
})) : be("", !0)
|
|
5990
6015
|
]),
|
|
5991
6016
|
_: 1
|
|
5992
6017
|
}, 8, ["columns", "data-source", "bordered", "size", "customRow", "scroll", "pagination", "onChange"])
|
|
@@ -5995,7 +6020,7 @@ function ys(e, o, t, n, a, i) {
|
|
|
5995
6020
|
}, 8, ["loading"])
|
|
5996
6021
|
], 4);
|
|
5997
6022
|
}
|
|
5998
|
-
const bs = /* @__PURE__ */ Y(ds, [["render", ys], ["__scopeId", "data-v-4292daa2"]]), vs =
|
|
6023
|
+
const bs = /* @__PURE__ */ Y(ds, [["render", ys], ["__scopeId", "data-v-4292daa2"]]), vs = te(bs), Sn = {
|
|
5999
6024
|
...le,
|
|
6000
6025
|
mapJson: null,
|
|
6001
6026
|
data: [],
|
|
@@ -6036,13 +6061,13 @@ const bs = /* @__PURE__ */ Y(ds, [["render", ys], ["__scopeId", "data-v-4292daa2
|
|
|
6036
6061
|
tooltipShow: !0,
|
|
6037
6062
|
tooltipTextStyleColor: "",
|
|
6038
6063
|
tooltipFormatter: "{b}"
|
|
6039
|
-
},
|
|
6040
|
-
|
|
6064
|
+
}, wn = oe(Sn);
|
|
6065
|
+
Ne([
|
|
6041
6066
|
$e,
|
|
6042
6067
|
ta,
|
|
6043
6068
|
ho,
|
|
6044
6069
|
oa,
|
|
6045
|
-
|
|
6070
|
+
Mt,
|
|
6046
6071
|
na
|
|
6047
6072
|
]);
|
|
6048
6073
|
const ps = Z({
|
|
@@ -6051,16 +6076,16 @@ const ps = Z({
|
|
|
6051
6076
|
Echarts: Re
|
|
6052
6077
|
},
|
|
6053
6078
|
props: {
|
|
6054
|
-
...
|
|
6079
|
+
...wn
|
|
6055
6080
|
},
|
|
6056
6081
|
setup(e) {
|
|
6057
|
-
const o = ae(e, ["backgroundImage"]), t =
|
|
6082
|
+
const o = ae(e, ["backgroundImage"]), t = L(), n = B(() => Ee(e.geoBackgroundImage)), a = B(() => Ee(e.backgroundImage)), i = B(() => e.geoBackgroundImage ? {
|
|
6058
6083
|
image: A(t),
|
|
6059
6084
|
repeat: e.geoBackgroundImageRepeat
|
|
6060
|
-
} : e.geoItemStyleAreaColor), r =
|
|
6085
|
+
} : e.geoItemStyleAreaColor), r = B(() => {
|
|
6061
6086
|
const c = e.symbolImage;
|
|
6062
6087
|
return e.symbolImage ? "image://" + Ee(c) : "circle";
|
|
6063
|
-
}), s =
|
|
6088
|
+
}), s = B(() => {
|
|
6064
6089
|
const c = e.geoCenter;
|
|
6065
6090
|
let f;
|
|
6066
6091
|
return typeof c == "string" && c !== "" && (f = c.split(",")), {
|
|
@@ -6142,16 +6167,16 @@ const ps = Z({
|
|
|
6142
6167
|
}
|
|
6143
6168
|
]
|
|
6144
6169
|
};
|
|
6145
|
-
}), l =
|
|
6170
|
+
}), l = L(!1), d = async () => {
|
|
6146
6171
|
var f;
|
|
6147
6172
|
const c = e.mapJson;
|
|
6148
6173
|
if (c != null && c.path) {
|
|
6149
6174
|
const g = await Fe(((f = window == null ? void 0 : window.config) == null ? void 0 : f.uploadPath) + c.path);
|
|
6150
|
-
|
|
6175
|
+
zn("map", (g == null ? void 0 : g.data) || {});
|
|
6151
6176
|
}
|
|
6152
6177
|
l.value = !0;
|
|
6153
6178
|
};
|
|
6154
|
-
return
|
|
6179
|
+
return ee(() => e.mapJson, () => {
|
|
6155
6180
|
d();
|
|
6156
6181
|
}, {
|
|
6157
6182
|
immediate: !0,
|
|
@@ -6168,17 +6193,17 @@ const ps = Z({
|
|
|
6168
6193
|
const Cs = ["src"];
|
|
6169
6194
|
function Ss(e, o, t, n, a, i) {
|
|
6170
6195
|
const r = q("echarts");
|
|
6171
|
-
return
|
|
6196
|
+
return E(), R("div", {
|
|
6172
6197
|
class: "ecan-map",
|
|
6173
|
-
style:
|
|
6198
|
+
style: P(e.style)
|
|
6174
6199
|
}, [
|
|
6175
|
-
e.isLoadedData ? (
|
|
6200
|
+
e.isLoadedData ? (E(), Ie(r, {
|
|
6176
6201
|
key: 0,
|
|
6177
6202
|
option: e.option,
|
|
6178
6203
|
"update-options": { notMerge: !0 },
|
|
6179
6204
|
autoresize: ""
|
|
6180
|
-
}, null, 8, ["option"])) :
|
|
6181
|
-
Fn(
|
|
6205
|
+
}, null, 8, ["option"])) : be("", !0),
|
|
6206
|
+
Fn(K("img", {
|
|
6182
6207
|
ref: "geoBackgroundImageRef",
|
|
6183
6208
|
src: e.myGeoBackgroundImage
|
|
6184
6209
|
}, null, 8, Cs), [
|
|
@@ -6186,7 +6211,7 @@ function Ss(e, o, t, n, a, i) {
|
|
|
6186
6211
|
])
|
|
6187
6212
|
], 4);
|
|
6188
6213
|
}
|
|
6189
|
-
const
|
|
6214
|
+
const ws = /* @__PURE__ */ Y(ps, [["render", Ss], ["__scopeId", "data-v-1eea2b3c"]]), ks = te(ws), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6190
6215
|
__proto__: null,
|
|
6191
6216
|
EcanBar: lr,
|
|
6192
6217
|
EcanBorder: Gr,
|
|
@@ -6200,7 +6225,7 @@ const ks = /* @__PURE__ */ Y(ps, [["render", Ss], ["__scopeId", "data-v-1eea2b3c
|
|
|
6200
6225
|
EcanInput: pi,
|
|
6201
6226
|
EcanLine: er,
|
|
6202
6227
|
EcanList: ci,
|
|
6203
|
-
EcanMap:
|
|
6228
|
+
EcanMap: ks,
|
|
6204
6229
|
EcanModal: Vr,
|
|
6205
6230
|
EcanPageConfig: Ll,
|
|
6206
6231
|
EcanPie: Ji,
|
|
@@ -6247,19 +6272,19 @@ const ks = /* @__PURE__ */ Y(ps, [["render", Ss], ["__scopeId", "data-v-1eea2b3c
|
|
|
6247
6272
|
listComponentProps: Do,
|
|
6248
6273
|
listEvents: Ql,
|
|
6249
6274
|
listProps: Ro,
|
|
6250
|
-
mapComponentProps:
|
|
6275
|
+
mapComponentProps: wn,
|
|
6251
6276
|
mapProps: Sn,
|
|
6252
6277
|
modalComponentProps: fn,
|
|
6253
6278
|
modalEvents: Ur,
|
|
6254
6279
|
modalProps: un,
|
|
6255
|
-
pageConfig:
|
|
6256
|
-
pageConfigComponentProps:
|
|
6280
|
+
pageConfig: wo,
|
|
6281
|
+
pageConfigComponentProps: ko,
|
|
6257
6282
|
pieComponentProps: Qo,
|
|
6258
6283
|
pieEvents: Wi,
|
|
6259
6284
|
pieProps: Yo,
|
|
6260
|
-
proportionComponentProps:
|
|
6285
|
+
proportionComponentProps: No,
|
|
6261
6286
|
proportionEvents: di,
|
|
6262
|
-
proportionProps:
|
|
6287
|
+
proportionProps: zo,
|
|
6263
6288
|
providerConfig: Lo,
|
|
6264
6289
|
providerConfigComponentProps: Io,
|
|
6265
6290
|
rangePickerComponentProps: Wo,
|
|
@@ -6283,8 +6308,8 @@ const ks = /* @__PURE__ */ Y(ps, [["render", Ss], ["__scopeId", "data-v-1eea2b3c
|
|
|
6283
6308
|
timeDisplayComponentProps: Oo,
|
|
6284
6309
|
timeDisplayProps: Fo
|
|
6285
6310
|
}, Symbol.toStringTag, { value: "Module" })), As = (e) => {
|
|
6286
|
-
Object.keys(
|
|
6287
|
-
const t =
|
|
6311
|
+
Object.keys(eo).forEach((o) => {
|
|
6312
|
+
const t = eo[o];
|
|
6288
6313
|
t.install && e.use(t);
|
|
6289
6314
|
});
|
|
6290
6315
|
}, oc = {
|
|
@@ -6303,7 +6328,7 @@ export {
|
|
|
6303
6328
|
pi as EcanInput,
|
|
6304
6329
|
er as EcanLine,
|
|
6305
6330
|
ci as EcanList,
|
|
6306
|
-
|
|
6331
|
+
ks as EcanMap,
|
|
6307
6332
|
Vr as EcanModal,
|
|
6308
6333
|
Ll as EcanPageConfig,
|
|
6309
6334
|
Ji as EcanPie,
|
|
@@ -6351,19 +6376,19 @@ export {
|
|
|
6351
6376
|
Do as listComponentProps,
|
|
6352
6377
|
Ql as listEvents,
|
|
6353
6378
|
Ro as listProps,
|
|
6354
|
-
|
|
6379
|
+
wn as mapComponentProps,
|
|
6355
6380
|
Sn as mapProps,
|
|
6356
6381
|
fn as modalComponentProps,
|
|
6357
6382
|
Ur as modalEvents,
|
|
6358
6383
|
un as modalProps,
|
|
6359
|
-
|
|
6360
|
-
|
|
6384
|
+
wo as pageConfig,
|
|
6385
|
+
ko as pageConfigComponentProps,
|
|
6361
6386
|
Qo as pieComponentProps,
|
|
6362
6387
|
Wi as pieEvents,
|
|
6363
6388
|
Yo as pieProps,
|
|
6364
|
-
|
|
6389
|
+
No as proportionComponentProps,
|
|
6365
6390
|
di as proportionEvents,
|
|
6366
|
-
|
|
6391
|
+
zo as proportionProps,
|
|
6367
6392
|
Lo as providerConfig,
|
|
6368
6393
|
Io as providerConfigComponentProps,
|
|
6369
6394
|
Wo as rangePickerComponentProps,
|