@ecan-bi/datav 1.1.39 → 1.1.40
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 +1003 -985
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/container/tabs/Tabs.vue.d.ts +28 -0
- package/types/container/tabs/index.d.ts +28 -0
- package/types/container/tabs/props.d.ts +16 -0
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as
|
|
3
|
-
import { throttle as No, init as $o, use as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.40 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as k, watchEffect as rn, defineComponent as Q, shallowRef as yt, toRefs as Io, onMounted as Ne, onUnmounted as ut, h as st, nextTick as ft, createVNode as j, resolveComponent as Z, openBlock as E, createElementBlock as R, createBlock as Oe, renderSlot as mt, withCtx as Y, ref as I, normalizeStyle as G, createCommentVNode as pe, provide as Fe, onBeforeUnmount as xt, toDisplayString as he, Fragment as Le, renderList as Ie, createElementVNode as X, normalizeClass as Tt, pushScopeId as sn, popScopeId as cn, createSlots as Mo, resolveDynamicComponent as Eo, mergeProps as Oo, withModifiers as Fo, reactive as Ro, createTextVNode as dn, withDirectives as Do, vShow as zo } from "vue";
|
|
3
|
+
import { throttle as No, init as $o, use as Pe, registerMap as Po } from "echarts/core";
|
|
4
4
|
import { addListener as Bo, removeListener as Go } from "resize-detector";
|
|
5
|
-
import { Spin as Uo, Skeleton as qo, message as
|
|
5
|
+
import { Spin as Uo, Skeleton as qo, message as He, Progress as jo, Input as un, DatePicker as Wo, Select as Vo, RangePicker as Ho, Button as Zo, CheckboxGroup as fn, Modal as ke, Table as Jo, TableSummary as Yo, TableSummaryRow as Qo, TableSummaryCell as Ko } from "ant-design-vue";
|
|
6
6
|
import "ant-design-vue/es/spin/style";
|
|
7
7
|
import "ant-design-vue/es/skeleton/style";
|
|
8
|
-
import { mapValues as Xo, without as ea, pick as ta, debounce as
|
|
8
|
+
import { mapValues as Xo, without as ea, pick as ta, debounce as Mt, cloneDeep as bt } from "lodash-es";
|
|
9
9
|
import mn from "axios";
|
|
10
10
|
import na from "mitt";
|
|
11
11
|
import Me from "dayjs";
|
|
@@ -16,9 +16,9 @@ import gn from "ant-design-vue/es/date-picker/locale/zh_CN";
|
|
|
16
16
|
import "ant-design-vue/es/select/style";
|
|
17
17
|
import "ant-design-vue/es/button/style";
|
|
18
18
|
import "ant-design-vue/es/checkbox/style";
|
|
19
|
-
import { CanvasRenderer as
|
|
19
|
+
import { CanvasRenderer as Be } from "echarts/renderers";
|
|
20
20
|
import { PieChart as oa, LineChart as hn, BarChart as yn, ScatterChart as bn, MapChart as aa } from "echarts/charts";
|
|
21
|
-
import { TitleComponent as Qe, ToolboxComponent as Ke, TooltipComponent as
|
|
21
|
+
import { TitleComponent as Qe, ToolboxComponent as Ke, TooltipComponent as Et, LegendComponent as Xe, DatasetComponent as vn, VisualMapComponent as la, GraphicComponent as ia } from "echarts/components";
|
|
22
22
|
import * as ra from "echarts";
|
|
23
23
|
import "ant-design-vue/es/modal/style";
|
|
24
24
|
import "ant-design-vue/es/table/style";
|
|
@@ -58,8 +58,8 @@ function da(e, n) {
|
|
|
58
58
|
}
|
|
59
59
|
function ua(e, n, t) {
|
|
60
60
|
let o = null;
|
|
61
|
-
ne([t, e, n], ([a, i,
|
|
62
|
-
a && i &&
|
|
61
|
+
ne([t, e, n], ([a, i, r], s, l) => {
|
|
62
|
+
a && i && r && (o = No(() => {
|
|
63
63
|
i.resize();
|
|
64
64
|
}, 100), Bo(a, o)), l(() => {
|
|
65
65
|
o && a && Go(a, o);
|
|
@@ -70,8 +70,8 @@ const fa = {
|
|
|
70
70
|
autoresize: Boolean
|
|
71
71
|
}, ma = "ecLoadingOptions";
|
|
72
72
|
function ga(e, n, t) {
|
|
73
|
-
const o =
|
|
74
|
-
...
|
|
73
|
+
const o = N(ma, {}), a = q(() => ({
|
|
74
|
+
...k(o),
|
|
75
75
|
...t == null ? void 0 : t.value
|
|
76
76
|
}));
|
|
77
77
|
rn(() => {
|
|
@@ -107,40 +107,40 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
107
107
|
inheritAttrs: !1,
|
|
108
108
|
// @ts-expect-error listeners for Vue 2 compatibility
|
|
109
109
|
setup(e, { attrs: n, listeners: t }) {
|
|
110
|
-
const o = yt(), a = yt(), i = yt(),
|
|
110
|
+
const o = yt(), a = yt(), i = yt(), r = N(Ca, null), s = N(
|
|
111
111
|
Sa,
|
|
112
112
|
null
|
|
113
|
-
), l =
|
|
113
|
+
), l = N(
|
|
114
114
|
wa,
|
|
115
115
|
null
|
|
116
|
-
), { autoresize: d, manualUpdate: c, loading: m, loadingOptions: g } = Io(e),
|
|
116
|
+
), { autoresize: d, manualUpdate: c, loading: m, loadingOptions: g } = Io(e), b = q(
|
|
117
117
|
() => i.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
118
|
-
),
|
|
119
|
-
() => e.initOptions ||
|
|
120
|
-
),
|
|
121
|
-
() => e.updateOptions ||
|
|
122
|
-
),
|
|
123
|
-
function
|
|
118
|
+
), u = q(() => e.theme || k(r) || {}), h = q(
|
|
119
|
+
() => e.initOptions || k(s) || {}
|
|
120
|
+
), v = q(
|
|
121
|
+
() => e.updateOptions || k(l) || {}
|
|
122
|
+
), y = q(() => va(n));
|
|
123
|
+
function A(C) {
|
|
124
124
|
if (a.value || !o.value)
|
|
125
125
|
return;
|
|
126
|
-
const
|
|
126
|
+
const f = a.value = $o(
|
|
127
127
|
o.value,
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
u.value,
|
|
129
|
+
h.value
|
|
130
130
|
);
|
|
131
|
-
e.group && (
|
|
131
|
+
e.group && (f.group = e.group);
|
|
132
132
|
let p = t;
|
|
133
133
|
p || (p = {}, Object.keys(n).filter((S) => S.indexOf("on") === 0 && S.length > 2).forEach((S) => {
|
|
134
134
|
const _ = S.charAt(2).toLowerCase() + S.slice(3);
|
|
135
135
|
p[_] = n[S];
|
|
136
136
|
})), Object.keys(p).forEach((S) => {
|
|
137
137
|
const _ = p[S];
|
|
138
|
-
_ && (S.indexOf("zr:") === 0 ?
|
|
138
|
+
_ && (S.indexOf("zr:") === 0 ? f.getZr().on(S.slice(3).toLowerCase(), _) : f.on(S.toLowerCase(), _));
|
|
139
139
|
});
|
|
140
140
|
function T() {
|
|
141
|
-
if (
|
|
141
|
+
if (f && !f.isDisposed())
|
|
142
142
|
try {
|
|
143
|
-
|
|
143
|
+
f.resize();
|
|
144
144
|
} catch (S) {
|
|
145
145
|
if (S.message === "Cannot read property 'get' of undefined")
|
|
146
146
|
return;
|
|
@@ -148,14 +148,14 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function F() {
|
|
151
|
-
|
|
151
|
+
f.setOption(C || b.value, v.value);
|
|
152
152
|
}
|
|
153
153
|
d.value ? ft(() => {
|
|
154
154
|
T(), F();
|
|
155
155
|
}) : F();
|
|
156
156
|
}
|
|
157
|
-
function x(C,
|
|
158
|
-
e.manualUpdate && (i.value = C), a.value ? a.value.setOption(C,
|
|
157
|
+
function x(C, f) {
|
|
158
|
+
e.manualUpdate && (i.value = C), a.value ? a.value.setOption(C, f || {}) : A(C);
|
|
159
159
|
}
|
|
160
160
|
function B() {
|
|
161
161
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
@@ -166,8 +166,8 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
166
166
|
(C) => {
|
|
167
167
|
typeof w == "function" && (w(), w = null), C || (w = ne(
|
|
168
168
|
() => e.option,
|
|
169
|
-
(
|
|
170
|
-
|
|
169
|
+
(f) => {
|
|
170
|
+
f && (a.value ? a.value.setOption(f, v.value) : A());
|
|
171
171
|
},
|
|
172
172
|
{ deep: !0 }
|
|
173
173
|
));
|
|
@@ -176,9 +176,9 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
176
176
|
immediate: !0
|
|
177
177
|
}
|
|
178
178
|
), ne(
|
|
179
|
-
[
|
|
179
|
+
[u, h],
|
|
180
180
|
() => {
|
|
181
|
-
B(),
|
|
181
|
+
B(), A();
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
deep: !0
|
|
@@ -186,14 +186,14 @@ const pa = "x-vue-echarts", Ca = "ecTheme", Sa = "ecInitOptions", wa = "ecUpdate
|
|
|
186
186
|
), rn(() => {
|
|
187
187
|
e.group && a.value && (a.value.group = e.group);
|
|
188
188
|
});
|
|
189
|
-
const L = da(a,
|
|
190
|
-
return ga(a, m, g), ua(a, d, o),
|
|
191
|
-
e.option &&
|
|
189
|
+
const L = da(a, A);
|
|
190
|
+
return ga(a, m, g), ua(a, d, o), Ne(() => {
|
|
191
|
+
e.option && A();
|
|
192
192
|
}), ut(B), {
|
|
193
193
|
chart: a,
|
|
194
194
|
root: o,
|
|
195
195
|
setOption: x,
|
|
196
|
-
nonEventAttrs:
|
|
196
|
+
nonEventAttrs: y,
|
|
197
197
|
...L
|
|
198
198
|
};
|
|
199
199
|
},
|
|
@@ -237,35 +237,35 @@ function _a(e, n, t) {
|
|
|
237
237
|
if (e = Se(e, 360), n = Se(n, 100), t = Se(t, 100), n === 0)
|
|
238
238
|
a = t, i = t, o = t;
|
|
239
239
|
else {
|
|
240
|
-
var
|
|
241
|
-
o = pt(
|
|
240
|
+
var r = t < 0.5 ? t * (1 + n) : t + n - t * n, s = 2 * t - r;
|
|
241
|
+
o = pt(s, r, e + 1 / 3), a = pt(s, r, e), i = pt(s, r, e - 1 / 3);
|
|
242
242
|
}
|
|
243
243
|
return { r: o * 255, g: a * 255, b: i * 255 };
|
|
244
244
|
}
|
|
245
245
|
function La(e, n, t) {
|
|
246
246
|
e = Se(e, 255), n = Se(n, 255), t = Se(t, 255);
|
|
247
|
-
var o = Math.max(e, n, t), a = Math.min(e, n, t), i = 0,
|
|
247
|
+
var o = Math.max(e, n, t), a = Math.min(e, n, t), i = 0, r = o, s = o - a, l = o === 0 ? 0 : s / o;
|
|
248
248
|
if (o === a)
|
|
249
249
|
i = 0;
|
|
250
250
|
else {
|
|
251
251
|
switch (o) {
|
|
252
252
|
case e:
|
|
253
|
-
i = (n - t) /
|
|
253
|
+
i = (n - t) / s + (n < t ? 6 : 0);
|
|
254
254
|
break;
|
|
255
255
|
case n:
|
|
256
|
-
i = (t - e) /
|
|
256
|
+
i = (t - e) / s + 2;
|
|
257
257
|
break;
|
|
258
258
|
case t:
|
|
259
|
-
i = (e - n) /
|
|
259
|
+
i = (e - n) / s + 4;
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
262
|
i /= 6;
|
|
263
263
|
}
|
|
264
|
-
return { h: i, s: l, v:
|
|
264
|
+
return { h: i, s: l, v: r };
|
|
265
265
|
}
|
|
266
266
|
function Ia(e, n, t) {
|
|
267
267
|
e = Se(e, 360) * 6, n = Se(n, 100), t = Se(t, 100);
|
|
268
|
-
var o = Math.floor(e), a = e - o, i = t * (1 - n),
|
|
268
|
+
var o = Math.floor(e), a = e - o, i = t * (1 - n), r = t * (1 - a * n), s = t * (1 - (1 - a) * n), l = o % 6, d = [t, r, i, i, s, t][l], c = [s, t, t, r, i, i][l], m = [i, i, s, t, t, r][l];
|
|
269
269
|
return { r: d * 255, g: c * 255, b: m * 255 };
|
|
270
270
|
}
|
|
271
271
|
function Ma(e, n, t, o) {
|
|
@@ -432,11 +432,11 @@ var Pt = {
|
|
|
432
432
|
yellow: "#ffff00",
|
|
433
433
|
yellowgreen: "#9acd32"
|
|
434
434
|
};
|
|
435
|
-
function
|
|
436
|
-
var n = { r: 0, g: 0, b: 0 }, t = 1, o = null, a = null, i = null,
|
|
437
|
-
return typeof e == "string" && (e = Fa(e)), typeof e == "object" && (_e(e.r) && _e(e.g) && _e(e.b) ? (n = Ta(e.r, e.g, e.b),
|
|
438
|
-
ok:
|
|
439
|
-
format: e.format ||
|
|
435
|
+
function We(e) {
|
|
436
|
+
var n = { r: 0, g: 0, b: 0 }, t = 1, o = null, a = null, i = null, r = !1, s = !1;
|
|
437
|
+
return typeof e == "string" && (e = Fa(e)), typeof e == "object" && (_e(e.r) && _e(e.g) && _e(e.b) ? (n = Ta(e.r, e.g, e.b), r = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : _e(e.h) && _e(e.s) && _e(e.v) ? (o = at(e.s), a = at(e.v), n = Ia(e.h, o, a), r = !0, s = "hsv") : _e(e.h) && _e(e.s) && _e(e.l) && (o = at(e.s), i = at(e.l), n = _a(e.h, o, i), r = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = xa(t), {
|
|
438
|
+
ok: r,
|
|
439
|
+
format: e.format || s,
|
|
440
440
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
441
441
|
g: Math.min(255, Math.max(n.g, 0)),
|
|
442
442
|
b: Math.min(255, Math.max(n.b, 0)),
|
|
@@ -557,27 +557,27 @@ function jt(e, n, t) {
|
|
|
557
557
|
var o;
|
|
558
558
|
return t ? o = e.v + Da * n : o = e.v - za * n, o > 1 && (o = 1), Number(o.toFixed(2));
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], o =
|
|
562
|
-
var i = Gt(o),
|
|
560
|
+
function _t(e) {
|
|
561
|
+
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], o = We(e), a = pn; a > 0; a -= 1) {
|
|
562
|
+
var i = Gt(o), r = it(We({
|
|
563
563
|
h: Ut(i, a, !0),
|
|
564
564
|
s: qt(i, a, !0),
|
|
565
565
|
v: jt(i, a, !0)
|
|
566
566
|
}));
|
|
567
|
-
t.push(
|
|
567
|
+
t.push(r);
|
|
568
568
|
}
|
|
569
569
|
t.push(it(o));
|
|
570
|
-
for (var
|
|
571
|
-
var l = Gt(o), d = it(
|
|
572
|
-
h: Ut(l,
|
|
573
|
-
s: qt(l,
|
|
574
|
-
v: jt(l,
|
|
570
|
+
for (var s = 1; s <= Cn; s += 1) {
|
|
571
|
+
var l = Gt(o), d = it(We({
|
|
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 n.theme === "dark" ? Na.map(function(c) {
|
|
579
|
-
var m = c.index, g = c.opacity,
|
|
580
|
-
return
|
|
579
|
+
var m = c.index, g = c.opacity, b = it($a(We(n.backgroundColor || "#141414"), We(t[m]), g * 100));
|
|
580
|
+
return b;
|
|
581
581
|
}) : t;
|
|
582
582
|
}
|
|
583
583
|
var wt = {
|
|
@@ -596,12 +596,12 @@ var wt = {
|
|
|
596
596
|
grey: "#666666"
|
|
597
597
|
}, kt = {}, At = {};
|
|
598
598
|
Object.keys(wt).forEach(function(e) {
|
|
599
|
-
kt[e] =
|
|
599
|
+
kt[e] = _t(wt[e]), kt[e].primary = kt[e][5], At[e] = _t(wt[e], {
|
|
600
600
|
theme: "dark",
|
|
601
601
|
backgroundColor: "#141414"
|
|
602
602
|
}), At[e].primary = At[e][5];
|
|
603
603
|
});
|
|
604
|
-
var Wt = [],
|
|
604
|
+
var Wt = [], Ve = [], Pa = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
605
605
|
function Ba() {
|
|
606
606
|
var e = document.createElement("style");
|
|
607
607
|
return e.setAttribute("type", "text/css"), e;
|
|
@@ -610,9 +610,9 @@ function Ga(e, n) {
|
|
|
610
610
|
if (n = n || {}, e === void 0)
|
|
611
611
|
throw new Error(Pa);
|
|
612
612
|
var t = n.prepend === !0 ? "prepend" : "append", o = n.container !== void 0 ? n.container : document.querySelector("head"), a = Wt.indexOf(o);
|
|
613
|
-
a === -1 && (a = Wt.push(o) - 1,
|
|
613
|
+
a === -1 && (a = Wt.push(o) - 1, Ve[a] = {});
|
|
614
614
|
var i;
|
|
615
|
-
return
|
|
615
|
+
return Ve[a] !== void 0 && Ve[a][t] !== void 0 ? i = Ve[a][t] : (i = Ve[a][t] = Ba(), t === "prepend" ? o.insertBefore(i, o.childNodes[0]) : o.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
617
|
function Vt(e) {
|
|
618
618
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -637,19 +637,19 @@ function ja(e, n) {
|
|
|
637
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
|
-
function
|
|
640
|
+
function Lt(e, n, t) {
|
|
641
641
|
return t ? st(e.tag, Vt({
|
|
642
642
|
key: n
|
|
643
643
|
}, t, e.attrs), (e.children || []).map(function(o, a) {
|
|
644
|
-
return
|
|
644
|
+
return Lt(o, "".concat(n, "-").concat(e.tag, "-").concat(a));
|
|
645
645
|
})) : st(e.tag, Vt({
|
|
646
646
|
key: n
|
|
647
647
|
}, e.attrs), (e.children || []).map(function(o, a) {
|
|
648
|
-
return
|
|
648
|
+
return Lt(o, "".concat(n, "-").concat(e.tag, "-").concat(a));
|
|
649
649
|
}));
|
|
650
650
|
}
|
|
651
651
|
function Sn(e) {
|
|
652
|
-
return
|
|
652
|
+
return _t(e)[0];
|
|
653
653
|
}
|
|
654
654
|
function wn(e) {
|
|
655
655
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
@@ -749,29 +749,29 @@ function rt(e) {
|
|
|
749
749
|
function Ya(e, n, t) {
|
|
750
750
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
751
751
|
}
|
|
752
|
-
var
|
|
752
|
+
var Je = {
|
|
753
753
|
primaryColor: "#333",
|
|
754
754
|
secondaryColor: "#E6E6E6",
|
|
755
755
|
calculated: !1
|
|
756
756
|
};
|
|
757
757
|
function Qa(e) {
|
|
758
758
|
var n = e.primaryColor, t = e.secondaryColor;
|
|
759
|
-
|
|
759
|
+
Je.primaryColor = n, Je.secondaryColor = t || Sn(n), Je.calculated = !!t;
|
|
760
760
|
}
|
|
761
761
|
function Ka() {
|
|
762
|
-
return rt({},
|
|
762
|
+
return rt({}, Je);
|
|
763
763
|
}
|
|
764
|
-
var
|
|
765
|
-
var o = rt({}, n, t.attrs), a = o.icon, i = o.primaryColor,
|
|
764
|
+
var Ge = function(n, t) {
|
|
765
|
+
var o = rt({}, n, t.attrs), a = o.icon, i = o.primaryColor, r = o.secondaryColor, s = Za(o, Ha), l = Je;
|
|
766
766
|
if (i && (l = {
|
|
767
767
|
primaryColor: i,
|
|
768
|
-
secondaryColor:
|
|
768
|
+
secondaryColor: r || Sn(i)
|
|
769
769
|
}), Va(), ja(Ht(a), "icon should be icon definiton, but got ".concat(a)), !Ht(a))
|
|
770
770
|
return null;
|
|
771
771
|
var d = a;
|
|
772
772
|
return d && typeof d.icon == "function" && (d = rt({}, d, {
|
|
773
773
|
icon: d.icon(l.primaryColor, l.secondaryColor)
|
|
774
|
-
})),
|
|
774
|
+
})), Lt(d.icon, "svg-".concat(d.name), rt({}, s, {
|
|
775
775
|
"data-icon": d.name,
|
|
776
776
|
width: "1em",
|
|
777
777
|
height: "1em",
|
|
@@ -779,17 +779,17 @@ var Be = function(n, t) {
|
|
|
779
779
|
"aria-hidden": "true"
|
|
780
780
|
}));
|
|
781
781
|
};
|
|
782
|
-
|
|
782
|
+
Ge.props = {
|
|
783
783
|
icon: Object,
|
|
784
784
|
primaryColor: String,
|
|
785
785
|
secondaryColor: String,
|
|
786
786
|
focusable: String
|
|
787
787
|
};
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
const
|
|
788
|
+
Ge.inheritAttrs = !1;
|
|
789
|
+
Ge.displayName = "IconBase";
|
|
790
|
+
Ge.getTwoToneColors = Ka;
|
|
791
|
+
Ge.setTwoToneColors = Qa;
|
|
792
|
+
const Ot = Ge;
|
|
793
793
|
function Xa(e, n) {
|
|
794
794
|
return ol(e) || nl(e, n) || tl(e, n) || el();
|
|
795
795
|
}
|
|
@@ -817,18 +817,18 @@ function Jt(e, n) {
|
|
|
817
817
|
function nl(e, n) {
|
|
818
818
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
819
819
|
if (t != null) {
|
|
820
|
-
var o = [], a = !0, i = !1,
|
|
820
|
+
var o = [], a = !0, i = !1, r, s;
|
|
821
821
|
try {
|
|
822
|
-
for (t = t.call(e); !(a = (
|
|
822
|
+
for (t = t.call(e); !(a = (r = t.next()).done) && (o.push(r.value), !(n && o.length === n)); a = !0)
|
|
823
823
|
;
|
|
824
824
|
} catch (l) {
|
|
825
|
-
i = !0,
|
|
825
|
+
i = !0, s = l;
|
|
826
826
|
} finally {
|
|
827
827
|
try {
|
|
828
828
|
!a && t.return != null && t.return();
|
|
829
829
|
} finally {
|
|
830
830
|
if (i)
|
|
831
|
-
throw
|
|
831
|
+
throw s;
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
return o;
|
|
@@ -840,13 +840,13 @@ function ol(e) {
|
|
|
840
840
|
}
|
|
841
841
|
function kn(e) {
|
|
842
842
|
var n = wn(e), t = Xa(n, 2), o = t[0], a = t[1];
|
|
843
|
-
return
|
|
843
|
+
return Ot.setTwoToneColors({
|
|
844
844
|
primaryColor: o,
|
|
845
845
|
secondaryColor: a
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
848
|
function al() {
|
|
849
|
-
var e =
|
|
849
|
+
var e = Ot.getTwoToneColors();
|
|
850
850
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
851
851
|
}
|
|
852
852
|
var ll = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
@@ -877,18 +877,18 @@ function Yt(e, n) {
|
|
|
877
877
|
function cl(e, n) {
|
|
878
878
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
879
879
|
if (t != null) {
|
|
880
|
-
var o = [], a = !0, i = !1,
|
|
880
|
+
var o = [], a = !0, i = !1, r, s;
|
|
881
881
|
try {
|
|
882
|
-
for (t = t.call(e); !(a = (
|
|
882
|
+
for (t = t.call(e); !(a = (r = t.next()).done) && (o.push(r.value), !(n && o.length === n)); a = !0)
|
|
883
883
|
;
|
|
884
884
|
} catch (l) {
|
|
885
|
-
i = !0,
|
|
885
|
+
i = !0, s = l;
|
|
886
886
|
} finally {
|
|
887
887
|
try {
|
|
888
888
|
!a && t.return != null && t.return();
|
|
889
889
|
} finally {
|
|
890
890
|
if (i)
|
|
891
|
-
throw
|
|
891
|
+
throw s;
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
return o;
|
|
@@ -904,12 +904,12 @@ function Qt(e) {
|
|
|
904
904
|
typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
905
905
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
906
906
|
}))), o.forEach(function(a) {
|
|
907
|
-
|
|
907
|
+
It(e, a, t[a]);
|
|
908
908
|
});
|
|
909
909
|
}
|
|
910
910
|
return e;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function It(e, n, t) {
|
|
913
913
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
914
914
|
}
|
|
915
915
|
function ul(e, n) {
|
|
@@ -932,40 +932,40 @@ function fl(e, n) {
|
|
|
932
932
|
return t;
|
|
933
933
|
}
|
|
934
934
|
kn("#1890ff");
|
|
935
|
-
var
|
|
936
|
-
var o, a = Qt({}, n, t.attrs), i = a.class,
|
|
935
|
+
var Ue = function(n, t) {
|
|
936
|
+
var o, a = Qt({}, n, t.attrs), i = a.class, r = a.icon, s = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, m = a.onClick, g = ul(a, ll), b = (o = {
|
|
937
937
|
anticon: !0
|
|
938
|
-
},
|
|
939
|
-
|
|
940
|
-
var
|
|
938
|
+
}, It(o, "anticon-".concat(r.name), Boolean(r.name)), It(o, i, i), o), u = s === "" || s || r.name === "loading" ? "anticon-spin" : "", h = d;
|
|
939
|
+
h === void 0 && m && (h = -1, g.tabindex = h);
|
|
940
|
+
var v = l ? {
|
|
941
941
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
942
942
|
transform: "rotate(".concat(l, "deg)")
|
|
943
|
-
} : void 0,
|
|
943
|
+
} : void 0, y = wn(c), A = il(y, 2), x = A[0], B = A[1];
|
|
944
944
|
return j("span", Qt({
|
|
945
945
|
role: "img",
|
|
946
|
-
"aria-label":
|
|
946
|
+
"aria-label": r.name
|
|
947
947
|
}, g, {
|
|
948
948
|
onClick: m,
|
|
949
|
-
class:
|
|
950
|
-
}), [j(
|
|
951
|
-
class:
|
|
952
|
-
icon:
|
|
949
|
+
class: b
|
|
950
|
+
}), [j(Ot, {
|
|
951
|
+
class: u,
|
|
952
|
+
icon: r,
|
|
953
953
|
primaryColor: x,
|
|
954
954
|
secondaryColor: B,
|
|
955
|
-
style:
|
|
955
|
+
style: v
|
|
956
956
|
}, null)]);
|
|
957
957
|
};
|
|
958
|
-
|
|
958
|
+
Ue.props = {
|
|
959
959
|
spin: Boolean,
|
|
960
960
|
rotate: Number,
|
|
961
961
|
icon: Object,
|
|
962
962
|
twoToneColor: String
|
|
963
963
|
};
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
const ml =
|
|
964
|
+
Ue.displayName = "AntdIcon";
|
|
965
|
+
Ue.inheritAttrs = !1;
|
|
966
|
+
Ue.getTwoToneColor = al;
|
|
967
|
+
Ue.setTwoToneColor = kn;
|
|
968
|
+
const ml = Ue;
|
|
969
969
|
var gl = { 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 hl = gl;
|
|
971
971
|
function Kt(e) {
|
|
@@ -982,15 +982,15 @@ function Kt(e) {
|
|
|
982
982
|
function yl(e, n, t) {
|
|
983
983
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
984
984
|
}
|
|
985
|
-
var
|
|
985
|
+
var Ft = function(n, t) {
|
|
986
986
|
var o = Kt({}, n, t.attrs);
|
|
987
987
|
return j(ml, Kt({}, o, {
|
|
988
988
|
icon: hl
|
|
989
989
|
}), null);
|
|
990
990
|
};
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
const bl =
|
|
991
|
+
Ft.displayName = "LoadingOutlined";
|
|
992
|
+
Ft.inheritAttrs = !1;
|
|
993
|
+
const bl = Ft, vl = Q({
|
|
994
994
|
props: {
|
|
995
995
|
spinning: {
|
|
996
996
|
type: Boolean,
|
|
@@ -1019,9 +1019,9 @@ const K = (e, n) => {
|
|
|
1019
1019
|
return t;
|
|
1020
1020
|
}, pl = { class: "spin-wrapper" };
|
|
1021
1021
|
function Cl(e, n, t, o, a, i) {
|
|
1022
|
-
const
|
|
1022
|
+
const r = Z("a-spin");
|
|
1023
1023
|
return E(), R("div", pl, [
|
|
1024
|
-
e.spinning ? (E(), Oe(
|
|
1024
|
+
e.spinning ? (E(), Oe(r, {
|
|
1025
1025
|
key: 0,
|
|
1026
1026
|
class: "spin",
|
|
1027
1027
|
spinning: e.spinning,
|
|
@@ -1043,8 +1043,8 @@ const et = /* @__PURE__ */ K(vl, [["render", Cl]]), Sl = Q({
|
|
|
1043
1043
|
}
|
|
1044
1044
|
});
|
|
1045
1045
|
function wl(e, n, t, o, a, i) {
|
|
1046
|
-
const
|
|
1047
|
-
return E(), Oe(
|
|
1046
|
+
const r = Z("a-skeleton");
|
|
1047
|
+
return E(), Oe(r, {
|
|
1048
1048
|
active: "",
|
|
1049
1049
|
loading: e.loading
|
|
1050
1050
|
}, {
|
|
@@ -1129,7 +1129,7 @@ const oe = (e, n) => {
|
|
|
1129
1129
|
], ie = (e, n = []) => {
|
|
1130
1130
|
const t = ea(kl, ...n);
|
|
1131
1131
|
return q(() => ta(e, t));
|
|
1132
|
-
},
|
|
1132
|
+
}, Rt = "EVENT_BUS", ce = "GLOBAL_CONFIG", de = "GLOBAL_MODEL", Ce = "REQUEST_MODEL", Tn = "GLOBAL_TOKEN", Ze = "REFRESH_PAGE", _n = "MODAL_MODEL";
|
|
1133
1133
|
var nn;
|
|
1134
1134
|
const ct = (nn = window == null ? void 0 : window.config) == null ? void 0 : nn.indicatorURL;
|
|
1135
1135
|
var on;
|
|
@@ -1139,7 +1139,7 @@ const Xt = ((an = window == null ? void 0 : window.config) == null ? void 0 : an
|
|
|
1139
1139
|
var ln;
|
|
1140
1140
|
const Al = ((ln = window == null ? void 0 : window.config) == null ? void 0 : ln.erdURL) || "", ge = (e, n) => {
|
|
1141
1141
|
ne(() => e.id, (t) => {
|
|
1142
|
-
const o =
|
|
1142
|
+
const o = N(Rt, {
|
|
1143
1143
|
// @ts-ignore
|
|
1144
1144
|
// eslint-disable-next-line no-void
|
|
1145
1145
|
onEvent: (a, i) => {
|
|
@@ -1150,22 +1150,22 @@ const Al = ((ln = window == null ? void 0 : window.config) == null ? void 0 : ln
|
|
|
1150
1150
|
immediate: !0
|
|
1151
1151
|
});
|
|
1152
1152
|
}, ue = (e) => {
|
|
1153
|
-
const n = e.events, t = e.id, o =
|
|
1153
|
+
const n = e.events, t = e.id, o = N(Rt, {
|
|
1154
1154
|
// @ts-ignore
|
|
1155
1155
|
// eslint-disable-next-line no-void
|
|
1156
|
-
emitEvent: (i,
|
|
1156
|
+
emitEvent: (i, r) => {
|
|
1157
1157
|
}
|
|
1158
|
-
}), { touchEventId: a } =
|
|
1158
|
+
}), { touchEventId: a } = N(ce, {
|
|
1159
1159
|
touchEventId: I("")
|
|
1160
1160
|
});
|
|
1161
|
-
return (i,
|
|
1161
|
+
return (i, r = () => {
|
|
1162
1162
|
}) => function() {
|
|
1163
|
-
|
|
1164
|
-
const { emitEvent:
|
|
1163
|
+
r.call(this, ...arguments);
|
|
1164
|
+
const { emitEvent: s } = o;
|
|
1165
1165
|
n.forEach((l) => {
|
|
1166
1166
|
if (i === l.on)
|
|
1167
1167
|
try {
|
|
1168
|
-
a.value = t,
|
|
1168
|
+
a.value = t, s(l.target, l.emit);
|
|
1169
1169
|
} catch (d) {
|
|
1170
1170
|
console.error(d);
|
|
1171
1171
|
}
|
|
@@ -1174,17 +1174,17 @@ const Al = ((ln = window == null ? void 0 : window.config) == null ? void 0 : ln
|
|
|
1174
1174
|
}, Ye = (e, n) => {
|
|
1175
1175
|
let { name: t = "name", value: o = "value", type: a = "type" } = n || {};
|
|
1176
1176
|
t = t == null ? void 0 : t.trim(), o = o == null ? void 0 : o.trim(), a = a == null ? void 0 : a.trim();
|
|
1177
|
-
const i = /* @__PURE__ */ new Set(),
|
|
1178
|
-
for (let c = 0; c <
|
|
1179
|
-
const m = e[c], g = m[t] || "",
|
|
1180
|
-
if (i.add(g),
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1177
|
+
const i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), s = e.length;
|
|
1178
|
+
for (let c = 0; c < s; c++) {
|
|
1179
|
+
const m = e[c], g = m[t] || "", b = m[o] || "", u = m[a] || "";
|
|
1180
|
+
if (i.add(g), r.has(u)) {
|
|
1181
|
+
const h = r.get(u);
|
|
1182
|
+
h.push({ name: g, value: b, ...m }), r.set(u, h);
|
|
1183
1183
|
} else
|
|
1184
|
-
|
|
1184
|
+
r.set(u, [{ name: g, value: b, ...m }]);
|
|
1185
1185
|
}
|
|
1186
1186
|
const l = Array.from(i), d = [];
|
|
1187
|
-
for (const [c, m] of
|
|
1187
|
+
for (const [c, m] of r)
|
|
1188
1188
|
d.push({
|
|
1189
1189
|
name: c,
|
|
1190
1190
|
data: m
|
|
@@ -1199,23 +1199,23 @@ const Al = ((ln = window == null ? void 0 : window.config) == null ? void 0 : ln
|
|
|
1199
1199
|
xe.interceptors.request.use((e) => e, (e) => Promise.reject(e));
|
|
1200
1200
|
xe.interceptors.response.use((e) => {
|
|
1201
1201
|
var n, t, o;
|
|
1202
|
-
return en && +((n = e == null ? void 0 : e.data) == null ? void 0 : n.code) == 500 &&
|
|
1202
|
+
return en && +((n = e == null ? void 0 : e.data) == null ? void 0 : n.code) == 500 && He.error({
|
|
1203
1203
|
content: ((t = e == null ? void 0 : e.data) == null ? void 0 : t.msg) || ((o = e == null ? void 0 : e.data) == null ? void 0 : o.message) || "服务器异常",
|
|
1204
1204
|
key: "SERVER_ERROR"
|
|
1205
1205
|
}), e;
|
|
1206
1206
|
}, (e) => {
|
|
1207
1207
|
if (en)
|
|
1208
1208
|
if (e.message.includes("timeout"))
|
|
1209
|
-
|
|
1209
|
+
He.error({
|
|
1210
1210
|
content: "网络连接超时,请重试!",
|
|
1211
1211
|
key: "TIMEOUT"
|
|
1212
1212
|
});
|
|
1213
1213
|
else {
|
|
1214
1214
|
const { status: n } = (e == null ? void 0 : e.response) || {};
|
|
1215
|
-
n >= 400 && n < 500 &&
|
|
1215
|
+
n >= 400 && n < 500 && He.error({
|
|
1216
1216
|
content: "请求异常",
|
|
1217
1217
|
key: "REQUEST_ERROR"
|
|
1218
|
-
}), n >= 500 &&
|
|
1218
|
+
}), n >= 500 && He.error({
|
|
1219
1219
|
content: "服务器异常",
|
|
1220
1220
|
key: "REQUEST_ERROR"
|
|
1221
1221
|
});
|
|
@@ -1223,7 +1223,7 @@ xe.interceptors.response.use((e) => {
|
|
|
1223
1223
|
return Promise.reject(e);
|
|
1224
1224
|
});
|
|
1225
1225
|
const xl = (e) => e.replace(/\\n/g, `
|
|
1226
|
-
`),
|
|
1226
|
+
`), Dt = (e, n = 2) => {
|
|
1227
1227
|
const t = parseFloat(e + "");
|
|
1228
1228
|
return isNaN(t) ? e : t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
|
|
1229
1229
|
}, Tl = (e) => {
|
|
@@ -1240,18 +1240,18 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1240
1240
|
const i = e.match(/\{(.+?)\}/g);
|
|
1241
1241
|
if (i == null || i.length === 0)
|
|
1242
1242
|
return e;
|
|
1243
|
-
for (let
|
|
1244
|
-
const
|
|
1245
|
-
let l =
|
|
1243
|
+
for (let r = 0; r < i.length; r++) {
|
|
1244
|
+
const s = i[r];
|
|
1245
|
+
let l = s.slice(1, -1).trim();
|
|
1246
1246
|
const d = /[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g, c = l.match(d);
|
|
1247
1247
|
for (let m = 0; m < c.length; m++) {
|
|
1248
|
-
const g = c[m],
|
|
1249
|
-
if (
|
|
1248
|
+
const g = c[m], b = n[g];
|
|
1249
|
+
if (b != null && (l = l.replace(g, b)), b !== l)
|
|
1250
1250
|
try {
|
|
1251
1251
|
l = (0, eval)(l);
|
|
1252
1252
|
} catch {
|
|
1253
1253
|
}
|
|
1254
|
-
e = e.replace(
|
|
1254
|
+
e = e.replace(s, l);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
return t && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), o && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
@@ -1262,91 +1262,91 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1262
1262
|
requestMethod: o,
|
|
1263
1263
|
requestHeaders: a,
|
|
1264
1264
|
requestParams: i,
|
|
1265
|
-
requestInterval:
|
|
1266
|
-
isOpenRequestTimer:
|
|
1267
|
-
} = e, { contextRequestUrl: l, pageMode: d, touchEventId: c } =
|
|
1265
|
+
requestInterval: r,
|
|
1266
|
+
isOpenRequestTimer: s
|
|
1267
|
+
} = e, { contextRequestUrl: l, pageMode: d, touchEventId: c } = N(ce, {
|
|
1268
1268
|
contextRequestUrl: "",
|
|
1269
1269
|
pageMode: "normal",
|
|
1270
1270
|
touchEventId: ""
|
|
1271
|
-
}), { getGlobalModel: m } =
|
|
1271
|
+
}), { getGlobalModel: m } = N(de, {
|
|
1272
1272
|
// @ts-ignore
|
|
1273
1273
|
// eslint-disable-next-line no-void
|
|
1274
|
-
getGlobalModel: (
|
|
1274
|
+
getGlobalModel: (h) => {
|
|
1275
1275
|
}
|
|
1276
|
-
}), g = be(t),
|
|
1277
|
-
if (!g || !o || !a ||
|
|
1276
|
+
}), g = be(t), b = async (h = {}) => {
|
|
1277
|
+
if (!g || !o || !a || k(d) === "design")
|
|
1278
1278
|
return;
|
|
1279
|
-
let
|
|
1279
|
+
let v = {};
|
|
1280
1280
|
i.forEach((w) => {
|
|
1281
1281
|
const { key: L, value: C } = w;
|
|
1282
1282
|
if (typeof C == "object" && C.id) {
|
|
1283
|
-
let
|
|
1283
|
+
let f = {};
|
|
1284
1284
|
const { id: p, prop: T, propKey: F, operate: S } = C;
|
|
1285
|
-
p === "THIS" ?
|
|
1286
|
-
const _ =
|
|
1285
|
+
p === "THIS" ? f = m(k(c)) || {} : f = m(p) || {};
|
|
1286
|
+
const _ = k(f[T]);
|
|
1287
1287
|
let U = null;
|
|
1288
|
-
if (["date", "range"].some((O) => Ln(
|
|
1289
|
-
const { value: O, type:
|
|
1290
|
-
if (O &&
|
|
1291
|
-
switch (
|
|
1288
|
+
if (["date", "range"].some((O) => Ln(f == null ? void 0 : f.type, O))) {
|
|
1289
|
+
const { value: O, type: $, mode: z } = S || {};
|
|
1290
|
+
if (O && $ && z)
|
|
1291
|
+
switch ($) {
|
|
1292
1292
|
case "add":
|
|
1293
|
-
U =
|
|
1293
|
+
U = k(_).add(O, z);
|
|
1294
1294
|
break;
|
|
1295
1295
|
case "minus":
|
|
1296
|
-
U =
|
|
1296
|
+
U = k(_).subtract(O, z);
|
|
1297
1297
|
break;
|
|
1298
1298
|
}
|
|
1299
|
-
U == null && (U =
|
|
1299
|
+
U == null && (U = k(_)), U = (U == null ? void 0 : U.format((F == null ? void 0 : F.trim()) || f.format)) || "";
|
|
1300
1300
|
} else
|
|
1301
1301
|
Object.prototype.toString.call(_) === "[object Object]" ? U = _[F || "value"] : U = _;
|
|
1302
|
-
|
|
1302
|
+
v[L] = U;
|
|
1303
1303
|
} else
|
|
1304
|
-
typeof C == "string" && (
|
|
1305
|
-
}),
|
|
1306
|
-
let
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1309
|
-
L === 0 ? B !== 1 ?
|
|
1304
|
+
typeof C == "string" && (v[L] = be(C));
|
|
1305
|
+
}), v = { ...window.config.requestParams, ...h, ...v };
|
|
1306
|
+
let y = "";
|
|
1307
|
+
const A = Object.keys(v), x = A.length - 1, B = A.length;
|
|
1308
|
+
A.forEach((w, L) => {
|
|
1309
|
+
L === 0 ? B !== 1 ? y += `?${w}=${v[w]}&` : y += `?${w}=${v[w]}` : L === x ? y += `${w}=${v[w]}` : y += `${w}=${v[w]}&`;
|
|
1310
1310
|
});
|
|
1311
1311
|
try {
|
|
1312
1312
|
const w = ["get", "head"].includes(o), L = await xe({
|
|
1313
|
-
baseURL:
|
|
1314
|
-
url: w ? g +
|
|
1313
|
+
baseURL: k(l) || "",
|
|
1314
|
+
url: w ? g + y : g,
|
|
1315
1315
|
method: o,
|
|
1316
1316
|
headers: a,
|
|
1317
|
-
data: w ? {} :
|
|
1317
|
+
data: w ? {} : v
|
|
1318
1318
|
});
|
|
1319
1319
|
return n(L), L;
|
|
1320
1320
|
} catch (w) {
|
|
1321
1321
|
console.error(w);
|
|
1322
1322
|
}
|
|
1323
|
-
},
|
|
1323
|
+
}, u = s && setInterval(b, r * 1e3);
|
|
1324
1324
|
return ut(() => {
|
|
1325
|
-
clearInterval(
|
|
1326
|
-
}),
|
|
1327
|
-
},
|
|
1325
|
+
clearInterval(u);
|
|
1326
|
+
}), b;
|
|
1327
|
+
}, $e = (e = [], n) => {
|
|
1328
1328
|
let { name: t = "name", types: o = [] } = n || {};
|
|
1329
1329
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1330
|
-
const a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(),
|
|
1331
|
-
if (
|
|
1330
|
+
const a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), r = e.length, s = o.length;
|
|
1331
|
+
if (r === 1) {
|
|
1332
1332
|
const c = [];
|
|
1333
|
-
for (let g = 0; g <
|
|
1334
|
-
const
|
|
1335
|
-
a.add(
|
|
1333
|
+
for (let g = 0; g < s; g++) {
|
|
1334
|
+
const b = o[g], { label: u, value: h } = b, v = { ...e[0], value: e[0][h] };
|
|
1335
|
+
a.add(u), c.push(v);
|
|
1336
1336
|
}
|
|
1337
1337
|
const m = e[0][t] || "";
|
|
1338
1338
|
i.set(m, c);
|
|
1339
1339
|
} else
|
|
1340
|
-
for (let c = 0; c <
|
|
1340
|
+
for (let c = 0; c < r; c++) {
|
|
1341
1341
|
const m = e[c], g = m[t];
|
|
1342
1342
|
a.add(g);
|
|
1343
|
-
for (let
|
|
1344
|
-
const
|
|
1345
|
-
if (i.has(
|
|
1346
|
-
const
|
|
1347
|
-
|
|
1343
|
+
for (let b = 0; b < s; b++) {
|
|
1344
|
+
const u = o[b], { label: h, value: v } = u, y = { ...m, value: m[v] };
|
|
1345
|
+
if (i.has(h)) {
|
|
1346
|
+
const A = i.get(h);
|
|
1347
|
+
A.push(y), i.set(h, A);
|
|
1348
1348
|
} else
|
|
1349
|
-
i.set(
|
|
1349
|
+
i.set(h, [y]);
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
const l = Array.from(a), d = [];
|
|
@@ -1368,8 +1368,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1368
1368
|
}, In = (e, n) => {
|
|
1369
1369
|
const t = `${Xt}/preview?pageId=${n}`, o = `${Xt}/${n}`;
|
|
1370
1370
|
return e === "preview" ? t : o;
|
|
1371
|
-
},
|
|
1372
|
-
const { getGlobalModel: n } =
|
|
1371
|
+
}, zt = (e) => {
|
|
1372
|
+
const { getGlobalModel: n } = N(de, {
|
|
1373
1373
|
// @ts-ignore
|
|
1374
1374
|
// eslint-disable-next-line no-void
|
|
1375
1375
|
getGlobalModel: (l) => {
|
|
@@ -1410,20 +1410,20 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1410
1410
|
var c;
|
|
1411
1411
|
const d = [];
|
|
1412
1412
|
for (let m = 0; m < l.length; m++) {
|
|
1413
|
-
const { keyName: g, searchName:
|
|
1413
|
+
const { keyName: g, searchName: b, searchType: u, variateName: h, id: v } = l[m], y = {
|
|
1414
1414
|
alias: g,
|
|
1415
|
-
fieldName:
|
|
1416
|
-
rule:
|
|
1415
|
+
fieldName: b,
|
|
1416
|
+
rule: u || "NONE",
|
|
1417
1417
|
fieldValue: "",
|
|
1418
1418
|
valueType: "",
|
|
1419
|
-
variateName:
|
|
1420
|
-
},
|
|
1421
|
-
if (
|
|
1422
|
-
|
|
1423
|
-
const x = (c = A
|
|
1424
|
-
typeof x == "function" && (
|
|
1419
|
+
variateName: h
|
|
1420
|
+
}, A = n(v) || {};
|
|
1421
|
+
if (b === "the_date" ? y.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(b) && (y.valueType = "TEXT"), A.type === "ecanDatePicker") {
|
|
1422
|
+
y.dateFormat = A.format;
|
|
1423
|
+
const x = (c = k(A)) == null ? void 0 : c.value.format;
|
|
1424
|
+
typeof x == "function" && (y.fieldValue = x(A == null ? void 0 : A.format));
|
|
1425
1425
|
}
|
|
1426
|
-
d.push(
|
|
1426
|
+
d.push(y);
|
|
1427
1427
|
}
|
|
1428
1428
|
return d;
|
|
1429
1429
|
}, i = (l, d) => {
|
|
@@ -1444,11 +1444,11 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1444
1444
|
}, c.customGroup.groupList.forEach((m, g) => {
|
|
1445
1445
|
g !== 0 && (l.customGroup.groupInfoMap[m.key] = m.value);
|
|
1446
1446
|
}), l.customGroup.otherGroupName = c.customGroup.otherName || ""), l.rangeIndexTypeGuid = c.typeGuid, l.customFilterSqlPart = c.filterSql || "";
|
|
1447
|
-
},
|
|
1447
|
+
}, r = (l, d) => {
|
|
1448
1448
|
for (let c = 0; c < l.children.length; c++)
|
|
1449
1449
|
if (l.children[c].children.length > 0) {
|
|
1450
1450
|
let m = "";
|
|
1451
|
-
l.type === "and" ? m = "&&" : m = "||", d.push({ conditions: [], join: m }),
|
|
1451
|
+
l.type === "and" ? m = "&&" : m = "||", d.push({ conditions: [], join: m }), r(l.children[c], d[d.length - 1].conditions);
|
|
1452
1452
|
} else if (l.children[c].fieldName) {
|
|
1453
1453
|
let m = "";
|
|
1454
1454
|
const g = {
|
|
@@ -1464,23 +1464,23 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1464
1464
|
if (m = JSON.parse(JSON.stringify(l.children[c].fieldValue)), l.children[c].itemType === "DATE")
|
|
1465
1465
|
g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays, l.children[c].selectType === "time" ? l.children[c].absoluteBool && (m = "#######", g.calcWays = l.children[c].calcWays) : l.children[c].selectType === "component" && (m = "${" + l.children[c].relateCompent + "}"), g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays;
|
|
1466
1466
|
else if (Object.prototype.toString.call(m) === "[object Array]") {
|
|
1467
|
-
const
|
|
1468
|
-
for (let
|
|
1469
|
-
m[
|
|
1470
|
-
m =
|
|
1467
|
+
const b = [];
|
|
1468
|
+
for (let u = 0; u < m.length; u++)
|
|
1469
|
+
m[u] !== "全选" && b.push(m[u]);
|
|
1470
|
+
m = b.join(",");
|
|
1471
1471
|
}
|
|
1472
1472
|
g.fieldValue = m, l.children.length > 1 && c !== l.children.length - 1 && (l.type === "and" ? g.join = "&&" : g.join = "||"), d.push(g);
|
|
1473
1473
|
}
|
|
1474
|
-
},
|
|
1474
|
+
}, s = (l, d, c) => {
|
|
1475
1475
|
if (!l)
|
|
1476
1476
|
return;
|
|
1477
|
-
const m = c[d].find((
|
|
1477
|
+
const m = c[d].find((u) => u.name === l.label);
|
|
1478
1478
|
if (!m)
|
|
1479
1479
|
return;
|
|
1480
|
-
const g = [],
|
|
1481
|
-
if (
|
|
1482
|
-
for (let
|
|
1483
|
-
|
|
1480
|
+
const g = [], b = m.filterList;
|
|
1481
|
+
if (b)
|
|
1482
|
+
for (let u = 0; u < b.length; u++)
|
|
1483
|
+
b[u].children.length > 0 && r(b[u], g);
|
|
1484
1484
|
return g;
|
|
1485
1485
|
};
|
|
1486
1486
|
return async function() {
|
|
@@ -1500,37 +1500,37 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1500
1500
|
});
|
|
1501
1501
|
const c = d.classify;
|
|
1502
1502
|
if ([...d.leftAxis, ...d.rightAxis].length === 0) {
|
|
1503
|
-
|
|
1503
|
+
He.error("当前y轴无配置信息");
|
|
1504
1504
|
return;
|
|
1505
1505
|
}
|
|
1506
1506
|
const g = t(d);
|
|
1507
|
-
let
|
|
1507
|
+
let b;
|
|
1508
1508
|
if (Array.isArray(d.series) && d.series.length > 0) {
|
|
1509
|
-
const C = (w = d.seriesList) == null ? void 0 : w.find((
|
|
1509
|
+
const C = (w = d.seriesList) == null ? void 0 : w.find((f) => {
|
|
1510
1510
|
const p = d.series[0];
|
|
1511
|
-
return
|
|
1511
|
+
return f.name === p || f.nameBak === p;
|
|
1512
1512
|
});
|
|
1513
|
-
C != null && (
|
|
1513
|
+
C != null && (b = {
|
|
1514
1514
|
label: C.name,
|
|
1515
1515
|
columnName: C.label
|
|
1516
1516
|
});
|
|
1517
1517
|
}
|
|
1518
|
-
let
|
|
1518
|
+
let u;
|
|
1519
1519
|
if (c.length > 0) {
|
|
1520
|
-
|
|
1520
|
+
u = {
|
|
1521
1521
|
label: c[0],
|
|
1522
1522
|
columnName: c[0]
|
|
1523
1523
|
};
|
|
1524
|
-
const C = ((L = d.classifyList) == null ? void 0 : L.find((
|
|
1525
|
-
|
|
1524
|
+
const C = ((L = d.classifyList) == null ? void 0 : L.find((f) => (f == null ? void 0 : f.name) === c[0] || (f == null ? void 0 : f.nameBak) === c[0])) || {};
|
|
1525
|
+
u.columnName = C.label, i(u, d.classifyList), u.conditions = s(u, "classifyList", d) || [];
|
|
1526
1526
|
}
|
|
1527
|
-
|
|
1527
|
+
b && (i(b, d.seriesList), b.conditions = s(b, "seriesList", d) || []);
|
|
1528
1528
|
for (let C = 0; C < g.length; C++)
|
|
1529
|
-
g[C].location === "RIGHT" ? g[C].conditions =
|
|
1530
|
-
let
|
|
1531
|
-
(d == null ? void 0 : d.pageMode) === "design" ?
|
|
1532
|
-
let
|
|
1533
|
-
d.source === "INDICATOR_LIB" && (
|
|
1529
|
+
g[C].location === "RIGHT" ? g[C].conditions = s(g[C], "rightAxisList", d) : g[C].conditions = s(g[C], "leftAxisList", d);
|
|
1530
|
+
let h;
|
|
1531
|
+
(d == null ? void 0 : d.pageMode) === "design" ? h = d.sqlConditions ?? [] : h = a(d == null ? void 0 : d.relativeList);
|
|
1532
|
+
let v = "SQL_VIEW", y = "", A = "", x = "";
|
|
1533
|
+
d.source === "INDICATOR_LIB" && (v = "INDICATOR_LIB", y = d.fixedDimSql, A = d.dataSourceId, x = d.idxLibMode);
|
|
1534
1534
|
const B = {
|
|
1535
1535
|
ecanBar: "bar",
|
|
1536
1536
|
ecanLine: "line",
|
|
@@ -1549,13 +1549,13 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1549
1549
|
plugin: "1",
|
|
1550
1550
|
layer: "2",
|
|
1551
1551
|
chartType: B[l],
|
|
1552
|
-
classification:
|
|
1552
|
+
classification: u,
|
|
1553
1553
|
indicatorList: g,
|
|
1554
|
-
series:
|
|
1555
|
-
sqlConditions:
|
|
1556
|
-
source:
|
|
1557
|
-
fixedDimSql:
|
|
1558
|
-
dataSourceId:
|
|
1554
|
+
series: b,
|
|
1555
|
+
sqlConditions: h,
|
|
1556
|
+
source: v,
|
|
1557
|
+
fixedDimSql: y,
|
|
1558
|
+
dataSourceId: A,
|
|
1559
1559
|
idxLibMode: x
|
|
1560
1560
|
}, {
|
|
1561
1561
|
headers: { Authentication: C.data.data.token }
|
|
@@ -1573,129 +1573,129 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1573
1573
|
return n;
|
|
1574
1574
|
const o = t.length;
|
|
1575
1575
|
for (let i = 0; i < o; i++) {
|
|
1576
|
-
const
|
|
1577
|
-
if (
|
|
1576
|
+
const r = t[i];
|
|
1577
|
+
if (r == null || r === "")
|
|
1578
1578
|
break;
|
|
1579
|
-
let
|
|
1580
|
-
|
|
1579
|
+
let s = (a = r.slice(1, -1)) == null ? void 0 : a.trim();
|
|
1580
|
+
s = s == null ? void 0 : s.replace(/value/g, n);
|
|
1581
1581
|
try {
|
|
1582
|
-
let l =
|
|
1583
|
-
if (
|
|
1582
|
+
let l = s;
|
|
1583
|
+
if (s !== n.toString())
|
|
1584
1584
|
try {
|
|
1585
|
-
l = (0, eval)(
|
|
1585
|
+
l = (0, eval)(s);
|
|
1586
1586
|
} catch {
|
|
1587
1587
|
}
|
|
1588
|
-
e = e.replace(
|
|
1588
|
+
e = e.replace(r, l);
|
|
1589
1589
|
} catch {
|
|
1590
|
-
e = e.replace(
|
|
1590
|
+
e = e.replace(r, s);
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
return e;
|
|
1594
1594
|
}, Mn = (e = {}) => {
|
|
1595
|
-
const { requestToken: n } =
|
|
1595
|
+
const { requestToken: n } = N(Tn, {
|
|
1596
1596
|
// @ts-ignore
|
|
1597
1597
|
// eslint-disable-next-line no-void
|
|
1598
1598
|
requestToken: () => {
|
|
1599
1599
|
}
|
|
1600
1600
|
});
|
|
1601
1601
|
e.dataType === "indicator" && n();
|
|
1602
|
-
const t = (
|
|
1603
|
-
const { label:
|
|
1602
|
+
const t = (r = {}) => {
|
|
1603
|
+
const { label: s, name: l, location: d, show: c, indexCode: m } = r;
|
|
1604
1604
|
return {
|
|
1605
|
-
label:
|
|
1605
|
+
label: s,
|
|
1606
1606
|
columnName: l,
|
|
1607
1607
|
location: d,
|
|
1608
1608
|
show: c,
|
|
1609
1609
|
calcType: "COLUMN",
|
|
1610
1610
|
hrpIndexCode: m
|
|
1611
1611
|
};
|
|
1612
|
-
}, o = (
|
|
1612
|
+
}, o = (r = {}) => {
|
|
1613
1613
|
const {
|
|
1614
|
-
label:
|
|
1614
|
+
label: s,
|
|
1615
1615
|
name: l,
|
|
1616
1616
|
location: d,
|
|
1617
1617
|
show: c,
|
|
1618
1618
|
indexCode: m,
|
|
1619
1619
|
calcType: g = "COLUMN",
|
|
1620
|
-
builtInFormula:
|
|
1621
|
-
builtInValueSource:
|
|
1622
|
-
builtInCalcWay:
|
|
1623
|
-
formula:
|
|
1624
|
-
conditions:
|
|
1625
|
-
} =
|
|
1620
|
+
builtInFormula: b,
|
|
1621
|
+
builtInValueSource: u,
|
|
1622
|
+
builtInCalcWay: h,
|
|
1623
|
+
formula: v,
|
|
1624
|
+
conditions: y
|
|
1625
|
+
} = r;
|
|
1626
1626
|
return {
|
|
1627
|
-
label:
|
|
1627
|
+
label: s,
|
|
1628
1628
|
columnName: l,
|
|
1629
1629
|
location: d,
|
|
1630
1630
|
show: c,
|
|
1631
1631
|
calcType: g,
|
|
1632
1632
|
hrpIndexCode: m,
|
|
1633
1633
|
aggregate: "SUM",
|
|
1634
|
-
builtInFormula:
|
|
1635
|
-
builtInValueSource:
|
|
1636
|
-
builtInCalcWay:
|
|
1637
|
-
formula:
|
|
1638
|
-
conditions:
|
|
1634
|
+
builtInFormula: b,
|
|
1635
|
+
builtInValueSource: u,
|
|
1636
|
+
builtInCalcWay: h,
|
|
1637
|
+
formula: v,
|
|
1638
|
+
conditions: y
|
|
1639
1639
|
};
|
|
1640
|
-
}, { getGlobalModel: a } =
|
|
1640
|
+
}, { getGlobalModel: a } = N(de, {
|
|
1641
1641
|
// @ts-ignore
|
|
1642
1642
|
// eslint-disable-next-line no-void
|
|
1643
|
-
getGlobalModel: (
|
|
1643
|
+
getGlobalModel: (r) => {
|
|
1644
1644
|
}
|
|
1645
|
-
}), i = (
|
|
1645
|
+
}), i = (r = []) => {
|
|
1646
1646
|
var d;
|
|
1647
|
-
const
|
|
1648
|
-
for (let c = 0; c <
|
|
1649
|
-
const m =
|
|
1647
|
+
const s = r.length, l = [];
|
|
1648
|
+
for (let c = 0; c < s; c++) {
|
|
1649
|
+
const m = r[c], {
|
|
1650
1650
|
id: g,
|
|
1651
|
-
conditionLabel:
|
|
1652
|
-
conditionKey:
|
|
1653
|
-
conditionValueType:
|
|
1654
|
-
} = m,
|
|
1651
|
+
conditionLabel: b,
|
|
1652
|
+
conditionKey: u,
|
|
1653
|
+
conditionValueType: h
|
|
1654
|
+
} = m, v = {
|
|
1655
1655
|
rule: "NONE",
|
|
1656
|
-
label:
|
|
1657
|
-
fieldName:
|
|
1656
|
+
label: b,
|
|
1657
|
+
fieldName: u,
|
|
1658
1658
|
fieldValue: "",
|
|
1659
1659
|
// 在关联控件中取
|
|
1660
|
-
valueType:
|
|
1661
|
-
},
|
|
1662
|
-
if (Ln(
|
|
1663
|
-
const { value:
|
|
1664
|
-
|
|
1660
|
+
valueType: h
|
|
1661
|
+
}, y = a(g) || {};
|
|
1662
|
+
if (Ln(y.type, "date")) {
|
|
1663
|
+
const { value: A, format: x } = y || {};
|
|
1664
|
+
v.fieldValue = (d = k(A)) == null ? void 0 : d.format(x), v.dateFormat = x;
|
|
1665
1665
|
}
|
|
1666
|
-
l.push(
|
|
1666
|
+
l.push(v);
|
|
1667
1667
|
}
|
|
1668
1668
|
return l;
|
|
1669
1669
|
};
|
|
1670
1670
|
return async () => {
|
|
1671
1671
|
var F;
|
|
1672
|
-
const { graphicConfig:
|
|
1673
|
-
source:
|
|
1672
|
+
const { graphicConfig: r } = e, {
|
|
1673
|
+
source: s,
|
|
1674
1674
|
dataViewId: l,
|
|
1675
1675
|
plugin: d,
|
|
1676
1676
|
layer: c,
|
|
1677
1677
|
chartType: m,
|
|
1678
1678
|
classificationList: g = [],
|
|
1679
|
-
seriesList:
|
|
1680
|
-
leftAxisList:
|
|
1681
|
-
rightAxisList:
|
|
1682
|
-
queryColumnList:
|
|
1683
|
-
indicators:
|
|
1684
|
-
controlList:
|
|
1679
|
+
seriesList: b = [],
|
|
1680
|
+
leftAxisList: u = [],
|
|
1681
|
+
rightAxisList: h = [],
|
|
1682
|
+
queryColumnList: v = [],
|
|
1683
|
+
indicators: y = [],
|
|
1684
|
+
controlList: A = [],
|
|
1685
1685
|
dataSourceId: x,
|
|
1686
1686
|
idxLibMode: B,
|
|
1687
1687
|
preview: w = !1
|
|
1688
|
-
} =
|
|
1688
|
+
} = r || {};
|
|
1689
1689
|
let L;
|
|
1690
1690
|
if (Array.isArray(g) && g.length > 0) {
|
|
1691
1691
|
const S = g.length;
|
|
1692
1692
|
for (let _ = 0; _ < S; _++) {
|
|
1693
|
-
const U = g[_] || {}, { label: H = "", name: O = "", show:
|
|
1694
|
-
if (
|
|
1693
|
+
const U = g[_] || {}, { label: H = "", name: O = "", show: $ = !1, sort: z, customGroup: W, conditions: ee } = U;
|
|
1694
|
+
if ($ || S === 1) {
|
|
1695
1695
|
L = {
|
|
1696
1696
|
label: H,
|
|
1697
1697
|
columnName: O,
|
|
1698
|
-
show:
|
|
1698
|
+
show: $,
|
|
1699
1699
|
sort: z,
|
|
1700
1700
|
customGroup: W,
|
|
1701
1701
|
conditions: ee
|
|
@@ -1705,15 +1705,15 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
1707
|
let C;
|
|
1708
|
-
if (Array.isArray(
|
|
1709
|
-
const S =
|
|
1708
|
+
if (Array.isArray(b) && b.length > 0) {
|
|
1709
|
+
const S = b.length;
|
|
1710
1710
|
for (let _ = 0; _ < S; _++) {
|
|
1711
|
-
const U =
|
|
1712
|
-
if (
|
|
1711
|
+
const U = b[_] || {}, { label: H = "", name: O = "", show: $ = !1, sort: z, customGroup: W, conditions: ee } = U;
|
|
1712
|
+
if ($ || S === 1) {
|
|
1713
1713
|
C = {
|
|
1714
1714
|
label: H,
|
|
1715
1715
|
columnName: O,
|
|
1716
|
-
show:
|
|
1716
|
+
show: $,
|
|
1717
1717
|
sort: z,
|
|
1718
1718
|
customGroup: W,
|
|
1719
1719
|
conditions: ee
|
|
@@ -1722,28 +1722,28 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1727
|
-
|
|
1725
|
+
const f = [];
|
|
1726
|
+
v == null || v.forEach((S) => {
|
|
1727
|
+
f.push(t(S));
|
|
1728
1728
|
});
|
|
1729
1729
|
const p = [];
|
|
1730
|
-
if (
|
|
1730
|
+
if (u == null || u.forEach((S) => {
|
|
1731
1731
|
S.location = "LEFT", p.push(o(S));
|
|
1732
|
-
}), b == null || b.forEach((S) => {
|
|
1733
|
-
S.location = "RIGHT", p.push(o(S));
|
|
1734
1732
|
}), h == null || h.forEach((S) => {
|
|
1733
|
+
S.location = "RIGHT", p.push(o(S));
|
|
1734
|
+
}), y == null || y.forEach((S) => {
|
|
1735
1735
|
S.location = "LEFT", p.push(o(S));
|
|
1736
|
-
}), c === "1" &&
|
|
1736
|
+
}), c === "1" && f.length === 0)
|
|
1737
1737
|
return;
|
|
1738
1738
|
if (c === "2" && p.length === 0)
|
|
1739
1739
|
return;
|
|
1740
1740
|
let T;
|
|
1741
|
-
(
|
|
1741
|
+
(r == null ? void 0 : r.pageMode) === "design" ? T = r.sqlConditions ?? [] : T = i(A);
|
|
1742
1742
|
try {
|
|
1743
1743
|
return await xe.post(
|
|
1744
1744
|
`${ct}/diagram`,
|
|
1745
1745
|
{
|
|
1746
|
-
source:
|
|
1746
|
+
source: s,
|
|
1747
1747
|
dataViewId: l,
|
|
1748
1748
|
plugin: d,
|
|
1749
1749
|
layer: c,
|
|
@@ -1751,7 +1751,7 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1751
1751
|
classification: L,
|
|
1752
1752
|
series: C,
|
|
1753
1753
|
indicatorList: p,
|
|
1754
|
-
queryColumns:
|
|
1754
|
+
queryColumns: f,
|
|
1755
1755
|
pageFlag: !0,
|
|
1756
1756
|
sqlConditions: T,
|
|
1757
1757
|
// fixedDimSql: '',
|
|
@@ -1779,8 +1779,8 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1779
1779
|
continue;
|
|
1780
1780
|
const i = a.split("=");
|
|
1781
1781
|
if (Array.isArray(i)) {
|
|
1782
|
-
const
|
|
1783
|
-
window.config[
|
|
1782
|
+
const r = i[0], s = i[1];
|
|
1783
|
+
window.config[r] = s;
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
1786
|
}, Ll = Q({
|
|
@@ -1796,37 +1796,37 @@ const xl = (e) => e.replace(/\\n/g, `
|
|
|
1796
1796
|
backgroundColor: e.backgroundColor,
|
|
1797
1797
|
backgroundImage: Re(e.backgroundImage, !0),
|
|
1798
1798
|
backgroundSize: e.backgroundSize
|
|
1799
|
-
})), t = I(0), o = I(0), a = I(0), i = I(0),
|
|
1799
|
+
})), t = I(0), o = I(0), a = I(0), i = I(0), r = I(!1), s = I();
|
|
1800
1800
|
let l;
|
|
1801
|
-
const d = () => new Promise((
|
|
1801
|
+
const d = () => new Promise((h) => {
|
|
1802
1802
|
ft(() => {
|
|
1803
|
-
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value =
|
|
1803
|
+
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = s.value.clientWidth, o.value = s.value.clientHeight), (!a.value || !i.value) && (a.value = window.screen.width, i.value = window.screen.height), h();
|
|
1804
1804
|
});
|
|
1805
1805
|
}), c = () => {
|
|
1806
|
-
t.value && o.value ? (
|
|
1806
|
+
t.value && o.value ? (s.value.style.width = `${t.value}px`, s.value.style.height = `${o.value}px`) : (s.value.style.width = `${a.value}px`, s.value.style.height = `${i.value}px`);
|
|
1807
1807
|
}, m = () => {
|
|
1808
|
-
const
|
|
1809
|
-
|
|
1810
|
-
}, g =
|
|
1808
|
+
const h = document.body.clientWidth, v = document.body.clientHeight, y = t.value || a.value, A = o.value || i.value, x = h / y, B = v / A;
|
|
1809
|
+
s.value && (s.value.style.transform = `scale(${x}, ${B})`);
|
|
1810
|
+
}, g = Mt(async () => {
|
|
1811
1811
|
await d(), m();
|
|
1812
|
-
}, 100),
|
|
1813
|
-
const
|
|
1814
|
-
l = new
|
|
1812
|
+
}, 100), b = () => {
|
|
1813
|
+
const h = window.MutationObserver;
|
|
1814
|
+
l = new h(g), l.observe(s.value, {
|
|
1815
1815
|
attributes: !0,
|
|
1816
1816
|
attributeFilter: ["style"],
|
|
1817
1817
|
attributeOldValue: !0
|
|
1818
1818
|
});
|
|
1819
|
-
},
|
|
1819
|
+
}, u = () => {
|
|
1820
1820
|
l && (l.disconnect(), l.takeRecords(), l = null);
|
|
1821
1821
|
};
|
|
1822
|
-
return
|
|
1823
|
-
|
|
1822
|
+
return Ne(async () => {
|
|
1823
|
+
r.value = !1, await d(), c(), m(), window.addEventListener("resize", g), b(), r.value = !0;
|
|
1824
1824
|
}), ut(() => {
|
|
1825
|
-
window.removeEventListener("resize", g),
|
|
1825
|
+
window.removeEventListener("resize", g), u();
|
|
1826
1826
|
}), {
|
|
1827
1827
|
style: n,
|
|
1828
|
-
container:
|
|
1829
|
-
ready:
|
|
1828
|
+
container: s,
|
|
1829
|
+
ready: r
|
|
1830
1830
|
};
|
|
1831
1831
|
}
|
|
1832
1832
|
});
|
|
@@ -1863,111 +1863,111 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1863
1863
|
};
|
|
1864
1864
|
ne(() => e.theme, () => {
|
|
1865
1865
|
o();
|
|
1866
|
-
}),
|
|
1866
|
+
}), Ne(() => {
|
|
1867
1867
|
o();
|
|
1868
1868
|
});
|
|
1869
|
-
const a = q(() => be(e.contextRequestUrl)), i = q(() => e.pageMode),
|
|
1869
|
+
const a = q(() => be(e.contextRequestUrl)), i = q(() => e.pageMode), r = q(() => e.theme), s = I("");
|
|
1870
1870
|
Fe(ce, {
|
|
1871
1871
|
// 请求地址
|
|
1872
1872
|
contextRequestUrl: a,
|
|
1873
1873
|
// 模式(设计、预览、正常):目前主要配置初始化是否发起请求
|
|
1874
1874
|
pageMode: i,
|
|
1875
1875
|
// 主题
|
|
1876
|
-
theme:
|
|
1877
|
-
touchEventId:
|
|
1876
|
+
theme: r,
|
|
1877
|
+
touchEventId: s
|
|
1878
1878
|
});
|
|
1879
1879
|
const l = /* @__PURE__ */ new Map(), d = (O) => l.get(O);
|
|
1880
1880
|
Fe(de, {
|
|
1881
1881
|
getGlobalModel: d,
|
|
1882
|
-
setGlobalModel: (O,
|
|
1883
|
-
l.set(O,
|
|
1882
|
+
setGlobalModel: (O, $) => {
|
|
1883
|
+
l.set(O, $);
|
|
1884
1884
|
}
|
|
1885
1885
|
});
|
|
1886
1886
|
const m = [], g = () => {
|
|
1887
1887
|
m.pop();
|
|
1888
|
-
},
|
|
1888
|
+
}, b = (O) => {
|
|
1889
1889
|
m.push(O);
|
|
1890
|
-
},
|
|
1890
|
+
}, u = /* @__PURE__ */ new Map(), h = (O) => u.get(O);
|
|
1891
1891
|
Fe(_n, {
|
|
1892
1892
|
popUseModalIds: g,
|
|
1893
|
-
pushUseModalIds:
|
|
1894
|
-
getModalModel:
|
|
1895
|
-
setModalModel: (O,
|
|
1896
|
-
|
|
1893
|
+
pushUseModalIds: b,
|
|
1894
|
+
getModalModel: h,
|
|
1895
|
+
setModalModel: (O, $) => {
|
|
1896
|
+
u.set(O, $);
|
|
1897
1897
|
}
|
|
1898
1898
|
});
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1899
|
+
const y = na(), A = /* @__PURE__ */ new Set(), x = (O, $) => {
|
|
1900
|
+
A.add(O), y.on(O, (z) => typeof $[z] == "function" && $[z]()), xt(() => {
|
|
1901
1901
|
B(O);
|
|
1902
1902
|
});
|
|
1903
1903
|
}, B = (O) => {
|
|
1904
|
-
|
|
1904
|
+
A.delete(O), y.off(O);
|
|
1905
1905
|
};
|
|
1906
|
-
Fe(
|
|
1906
|
+
Fe(Rt, {
|
|
1907
1907
|
onEvent: x,
|
|
1908
1908
|
offEvent: B,
|
|
1909
|
-
emitEvent: (O,
|
|
1909
|
+
emitEvent: (O, $) => {
|
|
1910
1910
|
if (O === "PAGE") {
|
|
1911
1911
|
const z = m.length;
|
|
1912
1912
|
let W = [];
|
|
1913
1913
|
if (z === 0)
|
|
1914
|
-
W = [...
|
|
1914
|
+
W = [...A];
|
|
1915
1915
|
else {
|
|
1916
1916
|
const ee = m[z - 1];
|
|
1917
|
-
W = [...
|
|
1917
|
+
W = [...h(ee)];
|
|
1918
1918
|
}
|
|
1919
1919
|
W.forEach((ee) => {
|
|
1920
|
-
|
|
1920
|
+
y.emit(ee, $);
|
|
1921
1921
|
});
|
|
1922
1922
|
} else
|
|
1923
|
-
|
|
1923
|
+
y.emit(O, $);
|
|
1924
1924
|
}
|
|
1925
1925
|
});
|
|
1926
1926
|
const L = I(0);
|
|
1927
1927
|
Fe(Tn, {
|
|
1928
1928
|
requestToken: () => {
|
|
1929
|
-
L.value =
|
|
1929
|
+
L.value = k(L) + 1;
|
|
1930
1930
|
}
|
|
1931
1931
|
});
|
|
1932
|
-
const
|
|
1933
|
-
}, sortNum:
|
|
1934
|
-
if (
|
|
1935
|
-
const W =
|
|
1932
|
+
const f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), T = ({ requestFn: O = () => {
|
|
1933
|
+
}, sortNum: $ = 0, id: z = "" }) => {
|
|
1934
|
+
if (f.has($)) {
|
|
1935
|
+
const W = f.get($);
|
|
1936
1936
|
W == null || W.push(O);
|
|
1937
1937
|
} else
|
|
1938
|
-
|
|
1938
|
+
f.set($, [O]);
|
|
1939
1939
|
p.set(z, O);
|
|
1940
|
-
}, F = (O) => new Promise((
|
|
1940
|
+
}, F = (O) => new Promise(($, z) => {
|
|
1941
1941
|
const W = O.map((ee) => ee());
|
|
1942
1942
|
Promise.all(W).then((ee) => {
|
|
1943
|
-
|
|
1943
|
+
$(ee);
|
|
1944
1944
|
}).catch((ee) => {
|
|
1945
1945
|
z(ee);
|
|
1946
1946
|
});
|
|
1947
1947
|
}), S = async () => {
|
|
1948
|
-
var
|
|
1948
|
+
var $;
|
|
1949
1949
|
const O = await mn.get(`${ct}/user/anonymous?username=admin`, {
|
|
1950
1950
|
headers: {
|
|
1951
1951
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1952
1952
|
current_context: "ygt"
|
|
1953
1953
|
}
|
|
1954
1954
|
});
|
|
1955
|
-
config.indicatorToken = (
|
|
1956
|
-
}, _ = (O) => new Promise(async (
|
|
1955
|
+
config.indicatorToken = ($ = O.data.data) == null ? void 0 : $.token;
|
|
1956
|
+
}, _ = (O) => new Promise(async ($, z) => {
|
|
1957
1957
|
if (O) {
|
|
1958
1958
|
if (typeof O == "string") {
|
|
1959
1959
|
const W = p.get(O);
|
|
1960
1960
|
if (typeof W == "function") {
|
|
1961
|
-
const ee = xe.interceptors.response.use((se) => (
|
|
1961
|
+
const ee = xe.interceptors.response.use((se) => ($(se), se), (se) => (z(se), Promise.reject(se)));
|
|
1962
1962
|
W(), xe.interceptors.response.eject(ee);
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
1965
|
} else {
|
|
1966
|
-
const W = Array.from(
|
|
1966
|
+
const W = Array.from(f);
|
|
1967
1967
|
W.sort((se, nt) => nt[0] - se[0]);
|
|
1968
1968
|
const ee = W.length;
|
|
1969
1969
|
try {
|
|
1970
|
-
e.pageMode !== "design" &&
|
|
1970
|
+
e.pageMode !== "design" && k(L) > 0 && await S();
|
|
1971
1971
|
for (let se = 0; se < ee; se++) {
|
|
1972
1972
|
const nt = W[se][1];
|
|
1973
1973
|
await F(nt);
|
|
@@ -1975,25 +1975,25 @@ const El = /* @__PURE__ */ K(Ll, [["render", Ml], ["__scopeId", "data-v-242d350e
|
|
|
1975
1975
|
} catch (se) {
|
|
1976
1976
|
console.error(se);
|
|
1977
1977
|
} finally {
|
|
1978
|
-
|
|
1978
|
+
f.clear(), $(null);
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
});
|
|
1982
1982
|
Fe(Ce, {
|
|
1983
1983
|
setRequest: T,
|
|
1984
1984
|
touchRequest: _
|
|
1985
|
-
}), Fe(
|
|
1985
|
+
}), Fe(Ze, {
|
|
1986
1986
|
emitRefreshPage: () => {
|
|
1987
|
-
|
|
1987
|
+
y.emit(Ze);
|
|
1988
1988
|
}
|
|
1989
1989
|
});
|
|
1990
1990
|
const H = (O) => {
|
|
1991
|
-
|
|
1992
|
-
|
|
1991
|
+
y.on(Ze, () => O()), Ne(() => {
|
|
1992
|
+
y.off(Ze);
|
|
1993
1993
|
});
|
|
1994
1994
|
};
|
|
1995
|
-
return
|
|
1996
|
-
|
|
1995
|
+
return xt(() => {
|
|
1996
|
+
f == null || f.clear(), p == null || p.clear();
|
|
1997
1997
|
}), n({
|
|
1998
1998
|
touchRequest: _,
|
|
1999
1999
|
getGlobalModel: d,
|
|
@@ -2043,28 +2043,28 @@ const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
|
2043
2043
|
},
|
|
2044
2044
|
setup(e) {
|
|
2045
2045
|
const n = ie(e), t = I({});
|
|
2046
|
-
ne(() => [e.data, e.dataType], ([g,
|
|
2047
|
-
|
|
2046
|
+
ne(() => [e.data, e.dataType], ([g, b]) => {
|
|
2047
|
+
b === "static" && (t.value = g);
|
|
2048
2048
|
}, {
|
|
2049
2049
|
immediate: !0
|
|
2050
2050
|
});
|
|
2051
2051
|
const o = q(() => {
|
|
2052
|
-
var
|
|
2053
|
-
const g =
|
|
2054
|
-
let
|
|
2055
|
-
|
|
2056
|
-
const
|
|
2057
|
-
if (
|
|
2058
|
-
return
|
|
2059
|
-
for (let
|
|
2060
|
-
const
|
|
2061
|
-
let x =
|
|
2062
|
-
const B =
|
|
2052
|
+
var h;
|
|
2053
|
+
const g = k(t);
|
|
2054
|
+
let b = e.text;
|
|
2055
|
+
b = b == null ? void 0 : b.replace(/\n|\\n/g, "<br/>"), b = b == null ? void 0 : b.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
2056
|
+
const u = b.match(/\{(.+?)\}/g);
|
|
2057
|
+
if (u == null || u.length === 0)
|
|
2058
|
+
return b;
|
|
2059
|
+
for (let v = 0; v < u.length; v++) {
|
|
2060
|
+
const y = u[v], A = (h = y == null ? void 0 : y.slice(1, y.length - 1)) == null ? void 0 : h.trim();
|
|
2061
|
+
let x = A;
|
|
2062
|
+
const B = A.match(/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g);
|
|
2063
2063
|
for (let L = 0; L < B.length; L++) {
|
|
2064
|
-
const C = B[L],
|
|
2065
|
-
|
|
2064
|
+
const C = B[L], f = g[C];
|
|
2065
|
+
f && (x = A.replace(C, f));
|
|
2066
2066
|
}
|
|
2067
|
-
if (
|
|
2067
|
+
if (A !== x) {
|
|
2068
2068
|
let L = null;
|
|
2069
2069
|
try {
|
|
2070
2070
|
L = (0, eval)(x);
|
|
@@ -2073,36 +2073,36 @@ const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
|
2073
2073
|
L != null && (x = L);
|
|
2074
2074
|
}
|
|
2075
2075
|
let w = x;
|
|
2076
|
-
if (w ===
|
|
2076
|
+
if (w === A && (w = e.variableDefaultValue), w != null) {
|
|
2077
2077
|
const L = e.format;
|
|
2078
|
-
L === "percentage" ? (w = +w, isNaN(w) ?
|
|
2078
|
+
L === "percentage" ? (w = +w, isNaN(w) ? b = b.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : w >= 0 ? (w = (w * 100).toFixed(2), b = b.replace(y, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Pl}"/>${w}%</span>`)) : (w = (w * 100).toFixed(2), b = b.replace(y, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${Math.abs(+w)}%</span>`))) : L === "percent" ? (w = +w, isNaN(w) || (w = (w * 100).toFixed(2), b = b.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}%</span>`))) : e.format === "money" ? (w = +w, isNaN(w) || (w = Dt(w), b = b.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : L === "thousands" ? (w = +w, isNaN(w) || (w = Tl(w), b = b.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))) : b = b.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`);
|
|
2079
2079
|
}
|
|
2080
2080
|
}
|
|
2081
|
-
return `<span>${
|
|
2082
|
-
}), { pageMode: a } =
|
|
2081
|
+
return `<span>${b}</span>`;
|
|
2082
|
+
}), { pageMode: a } = N(ce, {
|
|
2083
2083
|
pageMode: "normal"
|
|
2084
|
-
}), i = Ae(e),
|
|
2084
|
+
}), i = Ae(e), r = I(!1), s = async () => {
|
|
2085
2085
|
var g;
|
|
2086
|
-
if (
|
|
2086
|
+
if (k(a) !== "design")
|
|
2087
2087
|
try {
|
|
2088
|
-
|
|
2089
|
-
const
|
|
2090
|
-
t.value = ((g =
|
|
2091
|
-
} catch (
|
|
2092
|
-
console.error(
|
|
2088
|
+
r.value = !0;
|
|
2089
|
+
const b = await i();
|
|
2090
|
+
t.value = ((g = b == null ? void 0 : b.data) == null ? void 0 : g.data) || {};
|
|
2091
|
+
} catch (b) {
|
|
2092
|
+
console.error(b);
|
|
2093
2093
|
} finally {
|
|
2094
|
-
|
|
2094
|
+
r.value = !1;
|
|
2095
2095
|
}
|
|
2096
2096
|
}, l = () => {
|
|
2097
|
-
e.dataType !== "static" &&
|
|
2097
|
+
e.dataType !== "static" && s();
|
|
2098
2098
|
};
|
|
2099
2099
|
ge(e, {
|
|
2100
2100
|
refreshData: l
|
|
2101
2101
|
});
|
|
2102
|
-
const { setRequest: d } =
|
|
2102
|
+
const { setRequest: d } = N(Ce, {
|
|
2103
2103
|
// @ts-ignore
|
|
2104
2104
|
// eslint-disable-next-line no-void
|
|
2105
|
-
setRequest: ({ id: g, sortNum:
|
|
2105
|
+
setRequest: ({ id: g, sortNum: b, requestFn: u }) => {
|
|
2106
2106
|
}
|
|
2107
2107
|
});
|
|
2108
2108
|
d({
|
|
@@ -2115,38 +2115,38 @@ const zl = /* @__PURE__ */ K(Fl, [["render", Dl]]), Nl = oe(zl), Fn = {
|
|
|
2115
2115
|
const m = ue(e)("click", () => {
|
|
2116
2116
|
if (!e.linkPage && !e.href)
|
|
2117
2117
|
return;
|
|
2118
|
-
const g = e.linkPage || "",
|
|
2119
|
-
let
|
|
2120
|
-
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2118
|
+
const g = e.linkPage || "", b = In(k(a), g), u = e.href;
|
|
2119
|
+
let h = u || b;
|
|
2120
|
+
h = be(h);
|
|
2121
|
+
const v = e.target;
|
|
2122
|
+
v == null || v === "" || (v !== "event" ? window.open(h, "_" + v) : window.parent.postMessage({
|
|
2123
2123
|
type: "openPage",
|
|
2124
|
-
url:
|
|
2124
|
+
url: u
|
|
2125
2125
|
}, "*"));
|
|
2126
2126
|
});
|
|
2127
2127
|
return {
|
|
2128
2128
|
style: n,
|
|
2129
2129
|
myText: o,
|
|
2130
|
-
loading:
|
|
2130
|
+
loading: r,
|
|
2131
2131
|
click: m
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
2135
|
const Ul = ["innerHTML"];
|
|
2136
2136
|
function ql(e, n, t, o, a, i) {
|
|
2137
|
-
const
|
|
2137
|
+
const r = Z("skeleton");
|
|
2138
2138
|
return e.loading ? (E(), R("div", {
|
|
2139
2139
|
key: 0,
|
|
2140
2140
|
class: "skeleton-wrapper",
|
|
2141
2141
|
style: G(e.style)
|
|
2142
2142
|
}, [
|
|
2143
|
-
j(
|
|
2143
|
+
j(r, { loading: e.loading }, null, 8, ["loading"])
|
|
2144
2144
|
], 4)) : (E(), R("div", {
|
|
2145
2145
|
key: 1,
|
|
2146
2146
|
class: "ecan-text",
|
|
2147
2147
|
style: G(e.style),
|
|
2148
2148
|
innerHTML: e.myText,
|
|
2149
|
-
onClick: n[0] || (n[0] = (...
|
|
2149
|
+
onClick: n[0] || (n[0] = (...s) => e.click && e.click(...s))
|
|
2150
2150
|
}, null, 12, Ul));
|
|
2151
2151
|
}
|
|
2152
2152
|
const jl = /* @__PURE__ */ K(Gl, [["render", ql], ["__scopeId", "data-v-1d477570"]]), Wl = oe(jl), Vl = Q({
|
|
@@ -2191,7 +2191,7 @@ const Jl = /* @__PURE__ */ K(Vl, [["render", Zl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2191
2191
|
t.value = Me().add(1, "s").format(e.format);
|
|
2192
2192
|
}, 1e3);
|
|
2193
2193
|
};
|
|
2194
|
-
return
|
|
2194
|
+
return Ne(() => {
|
|
2195
2195
|
i();
|
|
2196
2196
|
}), ut(() => {
|
|
2197
2197
|
a();
|
|
@@ -2251,31 +2251,31 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3
|
|
|
2251
2251
|
textAlign: "center"
|
|
2252
2252
|
} : {
|
|
2253
2253
|
textAlign: "left"
|
|
2254
|
-
}), a = (
|
|
2255
|
-
money:
|
|
2254
|
+
}), a = (u, h) => h == null || h === "" ? u : {
|
|
2255
|
+
money: Dt,
|
|
2256
2256
|
percentage: dt,
|
|
2257
2257
|
contrast: dt
|
|
2258
|
-
}[
|
|
2259
|
-
const
|
|
2260
|
-
if (
|
|
2258
|
+
}[h](u) || "", i = (u, h) => {
|
|
2259
|
+
const v = parseFloat(u + "");
|
|
2260
|
+
if (h !== "contrast")
|
|
2261
2261
|
return "";
|
|
2262
2262
|
switch (!0) {
|
|
2263
|
-
case
|
|
2263
|
+
case v >= 0:
|
|
2264
2264
|
return "goUp";
|
|
2265
|
-
case
|
|
2265
|
+
case v < 0:
|
|
2266
2266
|
return "goDown";
|
|
2267
2267
|
}
|
|
2268
|
-
},
|
|
2268
|
+
}, r = Ae(e), { pageMode: s } = N(ce, {
|
|
2269
2269
|
pageMode: "normal"
|
|
2270
2270
|
}), l = I(!1), d = async () => {
|
|
2271
|
-
var
|
|
2272
|
-
if (!(e.dataType !== "request" ||
|
|
2271
|
+
var u;
|
|
2272
|
+
if (!(e.dataType !== "request" || k(s) === "design"))
|
|
2273
2273
|
try {
|
|
2274
2274
|
l.value = !0;
|
|
2275
|
-
const
|
|
2276
|
-
n.value = ((
|
|
2277
|
-
} catch (
|
|
2278
|
-
console.error(
|
|
2275
|
+
const h = await r();
|
|
2276
|
+
n.value = ((u = h == null ? void 0 : h.data) == null ? void 0 : u.data.rows) || [];
|
|
2277
|
+
} catch (h) {
|
|
2278
|
+
console.error(h);
|
|
2279
2279
|
} finally {
|
|
2280
2280
|
l.value = !1;
|
|
2281
2281
|
}
|
|
@@ -2286,13 +2286,13 @@ const Xl = /* @__PURE__ */ K(Ql, [["render", Kl], ["__scopeId", "data-v-07d3cde3
|
|
|
2286
2286
|
ge(e, {
|
|
2287
2287
|
refreshData: c
|
|
2288
2288
|
});
|
|
2289
|
-
const { setRequest:
|
|
2289
|
+
const { setRequest: b } = N(Ce, {
|
|
2290
2290
|
// @ts-ignore
|
|
2291
2291
|
// eslint-disable-next-line no-void
|
|
2292
|
-
setRequest: ({ id:
|
|
2292
|
+
setRequest: ({ id: u, sortNum: h, requestFn: v }) => {
|
|
2293
2293
|
}
|
|
2294
2294
|
});
|
|
2295
|
-
return
|
|
2295
|
+
return b({
|
|
2296
2296
|
id: e.id,
|
|
2297
2297
|
requestFn: d,
|
|
2298
2298
|
sortNum: e.requestSort
|
|
@@ -2324,23 +2324,23 @@ const oi = (e) => (sn("data-v-baf2ff0c"), e = e(), cn(), e), ai = {
|
|
|
2324
2324
|
class: "empty"
|
|
2325
2325
|
};
|
|
2326
2326
|
function ui(e, n, t, o, a, i) {
|
|
2327
|
-
const
|
|
2327
|
+
const r = Z("skeleton");
|
|
2328
2328
|
return E(), R("div", {
|
|
2329
2329
|
class: "ecan-list",
|
|
2330
2330
|
style: G(e.style)
|
|
2331
2331
|
}, [
|
|
2332
|
-
j(
|
|
2332
|
+
j(r, { loading: e.loading }, {
|
|
2333
2333
|
default: Y(() => [
|
|
2334
2334
|
e.useTitle ? (E(), R("div", ai, [
|
|
2335
|
-
(E(!0), R(Le, null, Ie(e.columnCount, (
|
|
2335
|
+
(E(!0), R(Le, null, Ie(e.columnCount, (s) => (E(), R("div", {
|
|
2336
2336
|
class: "title-inner",
|
|
2337
2337
|
style: G({
|
|
2338
2338
|
backgroundColor: e.backgroundColor,
|
|
2339
2339
|
height: e.itemHeight,
|
|
2340
2340
|
width: `calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount - 1}/ ${e.columnCount})`,
|
|
2341
|
-
marginRight:
|
|
2341
|
+
marginRight: s % e.columnCount !== 0 ? e.itemColSpan : ""
|
|
2342
2342
|
}),
|
|
2343
|
-
key:
|
|
2343
|
+
key: s
|
|
2344
2344
|
}, [
|
|
2345
2345
|
e.useRanking ? (E(), R("div", li)) : pe("", !0),
|
|
2346
2346
|
(E(!0), R(Le, null, Ie(e.columns, (l, d) => (E(), R("div", {
|
|
@@ -2361,7 +2361,7 @@ function ui(e, n, t, o, a, i) {
|
|
|
2361
2361
|
marginBottom: e.itemRowSpan
|
|
2362
2362
|
})
|
|
2363
2363
|
}, null, 4)) : pe("", !0),
|
|
2364
|
-
(E(!0), R(Le, null, Ie(e.dataSource.slice(0, e.sliceCount), (
|
|
2364
|
+
(E(!0), R(Le, null, Ie(e.dataSource.slice(0, e.sliceCount), (s, l) => (E(), R("div", {
|
|
2365
2365
|
class: "item",
|
|
2366
2366
|
style: G({
|
|
2367
2367
|
backgroundColor: e.backgroundColor,
|
|
@@ -2370,7 +2370,7 @@ function ui(e, n, t, o, a, i) {
|
|
|
2370
2370
|
marginRight: (l + 1) % e.columnCount !== 0 ? e.itemColSpan : "",
|
|
2371
2371
|
marginBottom: e.itemRowSpan
|
|
2372
2372
|
}),
|
|
2373
|
-
key:
|
|
2373
|
+
key: s.id || l,
|
|
2374
2374
|
onClick: n[0] || (n[0] = (...d) => e.click && e.click(...d))
|
|
2375
2375
|
}, [
|
|
2376
2376
|
e.useRanking ? (E(), R("div", ri, [
|
|
@@ -2378,15 +2378,15 @@ function ui(e, n, t, o, a, i) {
|
|
|
2378
2378
|
X("div", ci, " Top " + he(l + 1), 1)
|
|
2379
2379
|
])) : pe("", !0),
|
|
2380
2380
|
(E(!0), R(Le, null, Ie(e.columns, (d) => (E(), R("div", {
|
|
2381
|
-
class:
|
|
2381
|
+
class: Tt(["column", e.contrastClass(s[d.key], d.format)]),
|
|
2382
2382
|
key: d.key,
|
|
2383
2383
|
style: G({
|
|
2384
2384
|
fontSize: d.fontSize,
|
|
2385
|
-
color: e.contrastClass(
|
|
2385
|
+
color: e.contrastClass(s[d.key], d.format) === "" ? d.color : "",
|
|
2386
2386
|
fontWeight: d.fontWeight,
|
|
2387
2387
|
...e.columnStyle
|
|
2388
2388
|
})
|
|
2389
|
-
}, he((d.format != null || d.format !== "") && e.formatFn(
|
|
2389
|
+
}, he((d.format != null || d.format !== "") && e.formatFn(s[d.key], d.format)), 7))), 128))
|
|
2390
2390
|
], 4))), 128))
|
|
2391
2391
|
])) : (E(), R("div", di, " 暂无数据 "))
|
|
2392
2392
|
]),
|
|
@@ -2427,65 +2427,65 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2427
2427
|
...Bn
|
|
2428
2428
|
},
|
|
2429
2429
|
setup(e) {
|
|
2430
|
-
const { pageMode: n } =
|
|
2430
|
+
const { pageMode: n } = N(ce, {
|
|
2431
2431
|
pageMode: "normal"
|
|
2432
2432
|
}), t = ie(e), o = q(() => {
|
|
2433
|
-
const
|
|
2434
|
-
return parseFloat(
|
|
2433
|
+
const u = e.width;
|
|
2434
|
+
return parseFloat(u);
|
|
2435
2435
|
}), a = I({});
|
|
2436
2436
|
ne(() => e.data, () => {
|
|
2437
|
-
(e.dataType === "static" ||
|
|
2437
|
+
(e.dataType === "static" || k(n) === "design") && (a.value = e.data);
|
|
2438
2438
|
}, {
|
|
2439
2439
|
immediate: !0,
|
|
2440
2440
|
deep: !0
|
|
2441
2441
|
});
|
|
2442
2442
|
const i = q(() => {
|
|
2443
|
-
const
|
|
2444
|
-
if (
|
|
2445
|
-
return isNaN(
|
|
2446
|
-
const
|
|
2447
|
-
let
|
|
2448
|
-
const
|
|
2449
|
-
for (let x = 0; x <
|
|
2450
|
-
const B =
|
|
2451
|
-
if (
|
|
2452
|
-
|
|
2443
|
+
const u = k(a), h = +e.variableDefaultValue;
|
|
2444
|
+
if (u == null)
|
|
2445
|
+
return isNaN(h) ? 0 : h;
|
|
2446
|
+
const v = e.text.match(/\{.+\}/g) || [];
|
|
2447
|
+
let y;
|
|
2448
|
+
const A = new Set(Object.keys(u));
|
|
2449
|
+
for (let x = 0; x < v.length; x++) {
|
|
2450
|
+
const B = v[x], w = B.slice(1, B.length - 1);
|
|
2451
|
+
if (A.has(w)) {
|
|
2452
|
+
y = u[w];
|
|
2453
2453
|
break;
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
|
-
return typeof
|
|
2457
|
-
}),
|
|
2458
|
-
var
|
|
2459
|
-
let
|
|
2460
|
-
if (
|
|
2461
|
-
return
|
|
2462
|
-
const
|
|
2463
|
-
for (let x = 0; x <
|
|
2464
|
-
const B =
|
|
2456
|
+
return typeof y == "number" ? y = y * 100 : typeof y == "string" && !isNaN(+y) ? y = +y * 100 : isNaN(h) ? y = 0 : y = h * 100, e.decimalFormat && (y = +y.toFixed(2)), y;
|
|
2457
|
+
}), r = q(() => {
|
|
2458
|
+
var A;
|
|
2459
|
+
let u = e.text;
|
|
2460
|
+
if (u === "")
|
|
2461
|
+
return k(i);
|
|
2462
|
+
const h = e.variableDefaultValue, v = k(a), y = u.match(/\{.+\}/g) || [];
|
|
2463
|
+
for (let x = 0; x < y.length; x++) {
|
|
2464
|
+
const B = y[x];
|
|
2465
2465
|
let w = B.slice(1, B.length - 1);
|
|
2466
2466
|
const L = w.match(/.*/g);
|
|
2467
|
-
for (let
|
|
2468
|
-
const p = (
|
|
2469
|
-
|
|
2467
|
+
for (let f = 0; f < (L == null ? void 0 : L.length); f++) {
|
|
2468
|
+
const p = (A = L[x]) == null ? void 0 : A.trim();
|
|
2469
|
+
v[p] != null ? w = w.replace(p, v[p]) : w = w.replace(p, h);
|
|
2470
2470
|
}
|
|
2471
2471
|
let C = w;
|
|
2472
2472
|
try {
|
|
2473
2473
|
/\w+[+\-*/%]+\w+/g.test(w) && (C = (0, eval)(w));
|
|
2474
|
-
} catch (
|
|
2475
|
-
console.error(
|
|
2474
|
+
} catch (f) {
|
|
2475
|
+
console.error(f);
|
|
2476
2476
|
}
|
|
2477
|
-
(typeof C == "number" || !isNaN(+C)) && (C = +C * 100, e.decimalFormat && (C = C.toFixed(2))),
|
|
2477
|
+
(typeof C == "number" || !isNaN(+C)) && (C = +C * 100, e.decimalFormat && (C = C.toFixed(2))), u = u.replace(B, C + "");
|
|
2478
2478
|
}
|
|
2479
|
-
return
|
|
2480
|
-
}),
|
|
2481
|
-
var
|
|
2482
|
-
if (!(e.dataType !== "request" ||
|
|
2479
|
+
return u;
|
|
2480
|
+
}), s = Ae(e), l = I(!1), d = async () => {
|
|
2481
|
+
var u;
|
|
2482
|
+
if (!(e.dataType !== "request" || k(n) === "design"))
|
|
2483
2483
|
try {
|
|
2484
2484
|
l.value = !0;
|
|
2485
|
-
const
|
|
2486
|
-
a.value = ((
|
|
2487
|
-
} catch (
|
|
2488
|
-
console.error(
|
|
2485
|
+
const h = await s();
|
|
2486
|
+
a.value = ((u = h == null ? void 0 : h.data) == null ? void 0 : u.data) || {};
|
|
2487
|
+
} catch (h) {
|
|
2488
|
+
console.error(h);
|
|
2489
2489
|
} finally {
|
|
2490
2490
|
l.value = !1;
|
|
2491
2491
|
}
|
|
@@ -2496,20 +2496,20 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2496
2496
|
}
|
|
2497
2497
|
});
|
|
2498
2498
|
const g = ue(e)("click", () => {
|
|
2499
|
-
}), { setRequest:
|
|
2499
|
+
}), { setRequest: b } = N(Ce, {
|
|
2500
2500
|
// @ts-ignore
|
|
2501
2501
|
// eslint-disable-next-line no-void
|
|
2502
|
-
setRequest: ({ id:
|
|
2502
|
+
setRequest: ({ id: u, sortNum: h, requestFn: v }) => {
|
|
2503
2503
|
}
|
|
2504
2504
|
});
|
|
2505
|
-
return
|
|
2505
|
+
return b({
|
|
2506
2506
|
id: e.id,
|
|
2507
2507
|
requestFn: d,
|
|
2508
2508
|
sortNum: e.requestSort
|
|
2509
2509
|
}), {
|
|
2510
2510
|
style: t,
|
|
2511
2511
|
myWidth: o,
|
|
2512
|
-
text:
|
|
2512
|
+
text: r,
|
|
2513
2513
|
myValue: i,
|
|
2514
2514
|
loading: l,
|
|
2515
2515
|
click: g
|
|
@@ -2517,12 +2517,12 @@ const fi = /* @__PURE__ */ K(ni, [["render", ui], ["__scopeId", "data-v-baf2ff0c
|
|
|
2517
2517
|
}
|
|
2518
2518
|
});
|
|
2519
2519
|
function yi(e, n, t, o, a, i) {
|
|
2520
|
-
const
|
|
2520
|
+
const r = Z("skeleton"), s = Z("a-progress");
|
|
2521
2521
|
return E(), R("div", {
|
|
2522
2522
|
class: "ecan-proportion",
|
|
2523
2523
|
style: G(e.style)
|
|
2524
2524
|
}, [
|
|
2525
|
-
j(
|
|
2525
|
+
j(s, {
|
|
2526
2526
|
class: "progress",
|
|
2527
2527
|
percent: e.myValue,
|
|
2528
2528
|
width: e.myWidth,
|
|
@@ -2535,7 +2535,7 @@ function yi(e, n, t, o, a, i) {
|
|
|
2535
2535
|
onClick: e.click
|
|
2536
2536
|
}, {
|
|
2537
2537
|
format: Y(() => [
|
|
2538
|
-
e.loading ? (E(), Oe(
|
|
2538
|
+
e.loading ? (E(), Oe(r, {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
loading: e.loading
|
|
2541
2541
|
}, null, 8, ["loading"])) : (E(), R("div", {
|
|
@@ -2581,7 +2581,7 @@ const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-304d430d
|
|
|
2581
2581
|
}, {
|
|
2582
2582
|
immediate: !0
|
|
2583
2583
|
});
|
|
2584
|
-
const o = e.id, { getGlobalModel: a, setGlobalModel: i } =
|
|
2584
|
+
const o = e.id, { getGlobalModel: a, setGlobalModel: i } = N(de, {
|
|
2585
2585
|
// @ts-ignore
|
|
2586
2586
|
// eslint-disable-next-line no-void
|
|
2587
2587
|
getGlobalModel: (c) => {
|
|
@@ -2595,12 +2595,12 @@ const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-304d430d
|
|
|
2595
2595
|
type: e.type,
|
|
2596
2596
|
value: t
|
|
2597
2597
|
});
|
|
2598
|
-
const
|
|
2598
|
+
const r = () => {
|
|
2599
2599
|
const c = a(o);
|
|
2600
2600
|
i(o, { ...c, RECORD: t });
|
|
2601
|
-
},
|
|
2602
|
-
|
|
2603
|
-
}), 300), d =
|
|
2601
|
+
}, s = ue(e), l = Mt(s("inputChange", () => {
|
|
2602
|
+
r();
|
|
2603
|
+
}), 300), d = s("inputBlur", () => {
|
|
2604
2604
|
});
|
|
2605
2605
|
return {
|
|
2606
2606
|
style: n,
|
|
@@ -2611,15 +2611,15 @@ const bi = /* @__PURE__ */ K(hi, [["render", yi], ["__scopeId", "data-v-304d430d
|
|
|
2611
2611
|
}
|
|
2612
2612
|
});
|
|
2613
2613
|
function Si(e, n, t, o, a, i) {
|
|
2614
|
-
const
|
|
2614
|
+
const r = Z("a-input");
|
|
2615
2615
|
return E(), R("div", {
|
|
2616
2616
|
class: "ecan-input",
|
|
2617
2617
|
style: G(e.style)
|
|
2618
2618
|
}, [
|
|
2619
|
-
j(
|
|
2619
|
+
j(r, {
|
|
2620
2620
|
class: "input",
|
|
2621
2621
|
value: e.myValue,
|
|
2622
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2622
|
+
"onUpdate:value": n[0] || (n[0] = (s) => e.myValue = s),
|
|
2623
2623
|
placeholder: e.placeholder,
|
|
2624
2624
|
onChange: e.inputChange,
|
|
2625
2625
|
onBlur: e.inputBlur
|
|
@@ -2653,16 +2653,16 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), qn = {
|
|
|
2653
2653
|
},
|
|
2654
2654
|
setup(e) {
|
|
2655
2655
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I(null);
|
|
2656
|
-
ne(() => [e.value, e.useCurrentTime, e.operate], ([
|
|
2656
|
+
ne(() => [e.value, e.useCurrentTime, e.operate], ([s, l, d]) => {
|
|
2657
2657
|
let c = null;
|
|
2658
|
-
if (
|
|
2659
|
-
const { type: m, value: g, mode:
|
|
2658
|
+
if (s ? c = Me(s) : l && (c = Me()), d && c) {
|
|
2659
|
+
const { type: m, value: g, mode: b } = d;
|
|
2660
2660
|
switch (m) {
|
|
2661
2661
|
case "add":
|
|
2662
|
-
c = c.add(g,
|
|
2662
|
+
c = c.add(g, b);
|
|
2663
2663
|
break;
|
|
2664
2664
|
case "minus":
|
|
2665
|
-
c = c.subtract(g,
|
|
2665
|
+
c = c.subtract(g, b);
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
2668
2668
|
o.value = c;
|
|
@@ -2670,10 +2670,10 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), qn = {
|
|
|
2670
2670
|
deep: !0,
|
|
2671
2671
|
immediate: !0
|
|
2672
2672
|
});
|
|
2673
|
-
const { setGlobalModel: a } =
|
|
2673
|
+
const { setGlobalModel: a } = N(de, {
|
|
2674
2674
|
// @ts-ignore
|
|
2675
2675
|
// eslint-disable-next-line no-void
|
|
2676
|
-
setGlobalModel: (
|
|
2676
|
+
setGlobalModel: (s, l) => {
|
|
2677
2677
|
}
|
|
2678
2678
|
});
|
|
2679
2679
|
a(e.id, {
|
|
@@ -2681,30 +2681,30 @@ const wi = /* @__PURE__ */ K(Ci, [["render", Si]]), ki = oe(wi), qn = {
|
|
|
2681
2681
|
format: e.format,
|
|
2682
2682
|
value: o
|
|
2683
2683
|
});
|
|
2684
|
-
const
|
|
2684
|
+
const r = ue(e)("dateChange", () => {
|
|
2685
2685
|
});
|
|
2686
2686
|
return ge(e, {
|
|
2687
|
-
dateChange:
|
|
2687
|
+
dateChange: r
|
|
2688
2688
|
}), {
|
|
2689
2689
|
style: n,
|
|
2690
2690
|
getPopupContainer: t,
|
|
2691
2691
|
myValue: o,
|
|
2692
2692
|
locale: gn,
|
|
2693
|
-
dateChange:
|
|
2693
|
+
dateChange: r
|
|
2694
2694
|
};
|
|
2695
2695
|
}
|
|
2696
2696
|
});
|
|
2697
2697
|
function Ti(e, n, t, o, a, i) {
|
|
2698
|
-
const
|
|
2698
|
+
const r = Z("a-date-picker");
|
|
2699
2699
|
return E(), R("div", {
|
|
2700
2700
|
class: "ecan-date-picker",
|
|
2701
2701
|
style: G(e.style)
|
|
2702
2702
|
}, [
|
|
2703
|
-
j(
|
|
2703
|
+
j(r, {
|
|
2704
2704
|
class: "date-picker",
|
|
2705
2705
|
dropdownClassName: "ecan-date-picker-dropdown",
|
|
2706
2706
|
value: e.myValue,
|
|
2707
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2707
|
+
"onUpdate:value": n[0] || (n[0] = (s) => e.myValue = s),
|
|
2708
2708
|
format: e.format,
|
|
2709
2709
|
picker: e.picker,
|
|
2710
2710
|
showTime: e.showTime,
|
|
@@ -2739,64 +2739,64 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2739
2739
|
...Vn
|
|
2740
2740
|
},
|
|
2741
2741
|
setup(e) {
|
|
2742
|
-
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = Ae(e), { pageMode: a } =
|
|
2742
|
+
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = Ae(e), { pageMode: a } = N(ce, {
|
|
2743
2743
|
pageMode: "normal"
|
|
2744
|
-
}), i = I(e.data),
|
|
2745
|
-
const
|
|
2744
|
+
}), i = I(e.data), r = I(e.value || e.data[0]), s = e.dataFieldNames, l = (v, y) => {
|
|
2745
|
+
const A = s.label, x = s.value;
|
|
2746
2746
|
let B;
|
|
2747
|
-
const w =
|
|
2748
|
-
return w != null ? B = w : L != null && (B = L), (B == null ? void 0 : B.toLowerCase().indexOf(
|
|
2747
|
+
const w = y[A], L = y[x];
|
|
2748
|
+
return w != null ? B = w : L != null && (B = L), (B == null ? void 0 : B.toLowerCase().indexOf(v == null ? void 0 : v.toLowerCase())) >= 0;
|
|
2749
2749
|
}, d = I(!1), c = async () => {
|
|
2750
|
-
var
|
|
2751
|
-
if (!(e.dataType !== "request" ||
|
|
2750
|
+
var v, y;
|
|
2751
|
+
if (!(e.dataType !== "request" || k(a) === "design")) {
|
|
2752
2752
|
d.value = !0;
|
|
2753
2753
|
try {
|
|
2754
|
-
const
|
|
2755
|
-
i.value = ((
|
|
2756
|
-
const x =
|
|
2757
|
-
e.value === "" && x != null && (
|
|
2758
|
-
} catch (
|
|
2759
|
-
console.error(
|
|
2754
|
+
const A = await o();
|
|
2755
|
+
i.value = ((y = (v = A == null ? void 0 : A.data) == null ? void 0 : v.data) == null ? void 0 : y.rows) || [];
|
|
2756
|
+
const x = k(i)[0];
|
|
2757
|
+
e.value === "" && x != null && (r.value = x[s.value]);
|
|
2758
|
+
} catch (A) {
|
|
2759
|
+
console.error(A);
|
|
2760
2760
|
} finally {
|
|
2761
2761
|
d.value = !1;
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
|
-
}, { getGlobalModel: m, setGlobalModel: g } =
|
|
2764
|
+
}, { getGlobalModel: m, setGlobalModel: g } = N(de, {
|
|
2765
2765
|
// @ts-ignore
|
|
2766
2766
|
// eslint-disable-next-line no-void
|
|
2767
|
-
getGlobalModel: (
|
|
2767
|
+
getGlobalModel: (v) => {
|
|
2768
2768
|
},
|
|
2769
2769
|
// @ts-ignore
|
|
2770
2770
|
// eslint-disable-next-line no-void
|
|
2771
|
-
setGlobalModel: (
|
|
2771
|
+
setGlobalModel: (v, y) => {
|
|
2772
2772
|
}
|
|
2773
2773
|
});
|
|
2774
2774
|
g(e.id, {
|
|
2775
2775
|
type: e.type,
|
|
2776
|
-
value:
|
|
2776
|
+
value: r
|
|
2777
2777
|
});
|
|
2778
|
-
const
|
|
2779
|
-
const
|
|
2780
|
-
g(
|
|
2778
|
+
const u = ue(e)("selectChange", () => {
|
|
2779
|
+
const v = e.id, y = m(v);
|
|
2780
|
+
g(v, { ...y, RECORD: r });
|
|
2781
2781
|
});
|
|
2782
2782
|
ge(e, {
|
|
2783
|
-
selectChange:
|
|
2783
|
+
selectChange: u
|
|
2784
2784
|
});
|
|
2785
|
-
const { setRequest:
|
|
2785
|
+
const { setRequest: h } = N(Ce, {
|
|
2786
2786
|
// @ts-ignore
|
|
2787
2787
|
// eslint-disable-next-line no-void
|
|
2788
|
-
setRequest: ({ id:
|
|
2788
|
+
setRequest: ({ id: v, sortNum: y, requestFn: A }) => {
|
|
2789
2789
|
}
|
|
2790
2790
|
});
|
|
2791
|
-
return
|
|
2791
|
+
return h({
|
|
2792
2792
|
id: e.id,
|
|
2793
2793
|
requestFn: c,
|
|
2794
2794
|
sortNum: e.requestSort
|
|
2795
2795
|
}), {
|
|
2796
2796
|
style: n,
|
|
2797
2797
|
getPopupContainer: t,
|
|
2798
|
-
myValue:
|
|
2799
|
-
selectChange:
|
|
2798
|
+
myValue: r,
|
|
2799
|
+
selectChange: u,
|
|
2800
2800
|
options: i,
|
|
2801
2801
|
filterOption: l,
|
|
2802
2802
|
loading: d
|
|
@@ -2804,15 +2804,15 @@ const _i = /* @__PURE__ */ K(xi, [["render", Ti]]), Li = oe(_i), Wn = {
|
|
|
2804
2804
|
}
|
|
2805
2805
|
});
|
|
2806
2806
|
function Ei(e, n, t, o, a, i) {
|
|
2807
|
-
const
|
|
2807
|
+
const r = Z("a-select");
|
|
2808
2808
|
return E(), R("div", {
|
|
2809
2809
|
class: "ecan-select",
|
|
2810
2810
|
style: G(e.style)
|
|
2811
2811
|
}, [
|
|
2812
|
-
j(
|
|
2812
|
+
j(r, {
|
|
2813
2813
|
class: "select",
|
|
2814
2814
|
value: e.myValue,
|
|
2815
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2815
|
+
"onUpdate:value": n[0] || (n[0] = (s) => e.myValue = s),
|
|
2816
2816
|
options: e.options,
|
|
2817
2817
|
mode: e.mode,
|
|
2818
2818
|
getPopupContainer: e.getPopupContainer,
|
|
@@ -2850,33 +2850,33 @@ const Oi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-dd2bcf63
|
|
|
2850
2850
|
},
|
|
2851
2851
|
setup(e) {
|
|
2852
2852
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = I([null, null]);
|
|
2853
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, m, g,
|
|
2854
|
-
let
|
|
2855
|
-
if (m && (
|
|
2856
|
-
const { type:
|
|
2857
|
-
switch (
|
|
2853
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, c, m, g, b, u]) => {
|
|
2854
|
+
let h = null, v = null;
|
|
2855
|
+
if (m && (h = Me().subtract(g, b), v = Me()), d && (h = Me(d)), c && (v = Me(c)), u) {
|
|
2856
|
+
const { type: y, value: A, mode: x } = u;
|
|
2857
|
+
switch (y) {
|
|
2858
2858
|
case "add":
|
|
2859
|
-
|
|
2859
|
+
h = h && h.add(A, x), v = v && v.add(A, x);
|
|
2860
2860
|
break;
|
|
2861
2861
|
case "minus":
|
|
2862
|
-
|
|
2862
|
+
h = h && h.subtract(A, x), v = v && v.subtract(A, x);
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
|
-
o.value = [
|
|
2865
|
+
o.value = [h, v];
|
|
2866
2866
|
}, {
|
|
2867
2867
|
immediate: !0
|
|
2868
2868
|
});
|
|
2869
|
-
const { setGlobalModel: a } =
|
|
2869
|
+
const { setGlobalModel: a } = N(de, {
|
|
2870
2870
|
// @ts-ignore
|
|
2871
2871
|
// eslint-disable-next-line no-void
|
|
2872
2872
|
setGlobalModel: (d, c) => {
|
|
2873
2873
|
}
|
|
2874
|
-
}), i = q(() =>
|
|
2874
|
+
}), i = q(() => k(o)[0]), r = q(() => k(o)[1]);
|
|
2875
2875
|
a(e.id, {
|
|
2876
2876
|
type: e.type,
|
|
2877
2877
|
format: e.format,
|
|
2878
2878
|
startTime: i,
|
|
2879
|
-
endTime:
|
|
2879
|
+
endTime: r
|
|
2880
2880
|
});
|
|
2881
2881
|
const l = ue(e)("dateChange", () => {
|
|
2882
2882
|
});
|
|
@@ -2892,16 +2892,16 @@ const Oi = /* @__PURE__ */ K(Mi, [["render", Ei], ["__scopeId", "data-v-dd2bcf63
|
|
|
2892
2892
|
}
|
|
2893
2893
|
});
|
|
2894
2894
|
function zi(e, n, t, o, a, i) {
|
|
2895
|
-
const
|
|
2895
|
+
const r = Z("a-range-picker");
|
|
2896
2896
|
return E(), R("div", {
|
|
2897
2897
|
class: "ecan-range-picker",
|
|
2898
2898
|
style: G(e.style)
|
|
2899
2899
|
}, [
|
|
2900
|
-
j(
|
|
2900
|
+
j(r, {
|
|
2901
2901
|
class: "range-picker",
|
|
2902
2902
|
dropdownClassName: "ecan-range-picker-dropdown",
|
|
2903
2903
|
value: e.myValue,
|
|
2904
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
2904
|
+
"onUpdate:value": n[0] || (n[0] = (s) => e.myValue = s),
|
|
2905
2905
|
format: e.format,
|
|
2906
2906
|
picker: e.picker,
|
|
2907
2907
|
locale: e.locale,
|
|
@@ -2934,35 +2934,35 @@ const Ni = /* @__PURE__ */ K(Di, [["render", zi], ["__scopeId", "data-v-adf450ac
|
|
|
2934
2934
|
},
|
|
2935
2935
|
setup(e) {
|
|
2936
2936
|
const n = ie(e), o = ue(e)("click", () => {
|
|
2937
|
-
const
|
|
2938
|
-
|
|
2937
|
+
const s = k(i);
|
|
2938
|
+
s && e.target === "event" && window.parent.postMessage({
|
|
2939
2939
|
type: "openPage",
|
|
2940
|
-
url:
|
|
2940
|
+
url: s
|
|
2941
2941
|
}, "*");
|
|
2942
|
-
}), a = q(() => be(e.text)), i = q(() => be(e.href) || null),
|
|
2943
|
-
const
|
|
2944
|
-
if (!(
|
|
2942
|
+
}), a = q(() => be(e.text)), i = q(() => be(e.href) || null), r = q(() => {
|
|
2943
|
+
const s = e.target;
|
|
2944
|
+
if (!(s === "event" || k(i) == null))
|
|
2945
2945
|
return {
|
|
2946
2946
|
self: "_self",
|
|
2947
2947
|
blank: "_blank"
|
|
2948
|
-
}[
|
|
2948
|
+
}[s];
|
|
2949
2949
|
});
|
|
2950
2950
|
return {
|
|
2951
2951
|
style: n,
|
|
2952
2952
|
click: o,
|
|
2953
2953
|
myText: a,
|
|
2954
2954
|
myHref: i,
|
|
2955
|
-
myTarget:
|
|
2955
|
+
myTarget: r
|
|
2956
2956
|
};
|
|
2957
2957
|
}
|
|
2958
2958
|
});
|
|
2959
2959
|
function Gi(e, n, t, o, a, i) {
|
|
2960
|
-
const
|
|
2960
|
+
const r = Z("a-button");
|
|
2961
2961
|
return E(), R("div", {
|
|
2962
2962
|
class: "ecan-button",
|
|
2963
2963
|
style: G(e.style)
|
|
2964
2964
|
}, [
|
|
2965
|
-
j(
|
|
2965
|
+
j(r, {
|
|
2966
2966
|
block: "",
|
|
2967
2967
|
onClick: e.click,
|
|
2968
2968
|
type: e.mode,
|
|
@@ -3008,35 +3008,35 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3008
3008
|
...Kn
|
|
3009
3009
|
},
|
|
3010
3010
|
setup(e) {
|
|
3011
|
-
const n = ie(e), t = I([]), o = I([]), a = (
|
|
3012
|
-
const
|
|
3013
|
-
let
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
}), typeof
|
|
3011
|
+
const n = ie(e), t = I([]), o = I([]), a = (u) => {
|
|
3012
|
+
const h = e.value;
|
|
3013
|
+
let v = [];
|
|
3014
|
+
u.forEach((y) => {
|
|
3015
|
+
y.checked && v.push(y.value);
|
|
3016
|
+
}), typeof h == "string" && h !== "" ? v = v.concat(h.split(",")) : Array.isArray(h) && (v = v.concat(h)), t.value = u, o.value = v;
|
|
3017
3017
|
};
|
|
3018
|
-
ne(() => [e.data, e.value], ([
|
|
3019
|
-
a(
|
|
3018
|
+
ne(() => [e.data, e.value], ([u]) => {
|
|
3019
|
+
a(u);
|
|
3020
3020
|
}, {
|
|
3021
3021
|
immediate: !0,
|
|
3022
3022
|
deep: !0
|
|
3023
3023
|
});
|
|
3024
|
-
const i = Ae(e), { pageMode:
|
|
3024
|
+
const i = Ae(e), { pageMode: r } = N(ce, {
|
|
3025
3025
|
pageMode: "normal"
|
|
3026
|
-
}),
|
|
3027
|
-
var
|
|
3028
|
-
if (e.dataType !== "request" ||
|
|
3026
|
+
}), s = async () => {
|
|
3027
|
+
var v, y;
|
|
3028
|
+
if (e.dataType !== "request" || k(r) === "design")
|
|
3029
3029
|
return;
|
|
3030
|
-
const
|
|
3031
|
-
a(
|
|
3032
|
-
}, l = e.id, { getGlobalModel: d, setGlobalModel: c } =
|
|
3030
|
+
const u = await i(), h = ((y = (v = u == null ? void 0 : u.data) == null ? void 0 : v.data) == null ? void 0 : y.rows) || [];
|
|
3031
|
+
a(h);
|
|
3032
|
+
}, l = e.id, { getGlobalModel: d, setGlobalModel: c } = N(de, {
|
|
3033
3033
|
// @ts-ignore
|
|
3034
3034
|
// eslint-disable-next-line no-void
|
|
3035
|
-
getGlobalModel: (
|
|
3035
|
+
getGlobalModel: (u) => {
|
|
3036
3036
|
},
|
|
3037
3037
|
// @ts-ignore
|
|
3038
3038
|
// eslint-disable-next-line no-void
|
|
3039
|
-
setGlobalModel: (
|
|
3039
|
+
setGlobalModel: (u, h) => {
|
|
3040
3040
|
}
|
|
3041
3041
|
});
|
|
3042
3042
|
c(e.id, {
|
|
@@ -3044,17 +3044,17 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3044
3044
|
value: o
|
|
3045
3045
|
});
|
|
3046
3046
|
const g = ue(e)("checkboxChange", () => {
|
|
3047
|
-
const
|
|
3048
|
-
c(l, { ...
|
|
3049
|
-
}), { setRequest:
|
|
3047
|
+
const u = d(l);
|
|
3048
|
+
c(l, { ...u, RECORD: o });
|
|
3049
|
+
}), { setRequest: b } = N(Ce, {
|
|
3050
3050
|
// @ts-ignore
|
|
3051
3051
|
// eslint-disable-next-line no-void
|
|
3052
|
-
setRequest: ({ id:
|
|
3052
|
+
setRequest: ({ id: u, sortNum: h, requestFn: v }) => {
|
|
3053
3053
|
}
|
|
3054
3054
|
});
|
|
3055
|
-
return
|
|
3055
|
+
return b({
|
|
3056
3056
|
id: e.id,
|
|
3057
|
-
requestFn:
|
|
3057
|
+
requestFn: s,
|
|
3058
3058
|
sortNum: e.requestSort
|
|
3059
3059
|
}), {
|
|
3060
3060
|
myOption: t,
|
|
@@ -3065,15 +3065,15 @@ const Ui = /* @__PURE__ */ K(Bi, [["render", Gi]]), qi = oe(Ui), Qn = {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
});
|
|
3067
3067
|
function Vi(e, n, t, o, a, i) {
|
|
3068
|
-
const
|
|
3068
|
+
const r = Z("a-checkbox-group");
|
|
3069
3069
|
return E(), R("div", {
|
|
3070
3070
|
class: "ecan-checkbox",
|
|
3071
3071
|
style: G(e.style)
|
|
3072
3072
|
}, [
|
|
3073
|
-
j(
|
|
3073
|
+
j(r, {
|
|
3074
3074
|
options: e.myOption,
|
|
3075
3075
|
value: e.myValue,
|
|
3076
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
3076
|
+
"onUpdate:value": n[0] || (n[0] = (s) => e.myValue = s),
|
|
3077
3077
|
onChange: e.checkboxChange
|
|
3078
3078
|
}, null, 8, ["options", "value", "onChange"])
|
|
3079
3079
|
], 4);
|
|
@@ -3144,15 +3144,15 @@ const Hi = /* @__PURE__ */ K(Wi, [["render", Vi]]), Zi = oe(Hi), Xn = {
|
|
|
3144
3144
|
var l;
|
|
3145
3145
|
const n = await xe.post(e, {}, {
|
|
3146
3146
|
responseType: "blob"
|
|
3147
|
-
}), { data: t, headers: o } = n, a = o["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), i = new Blob([t]),
|
|
3148
|
-
|
|
3147
|
+
}), { data: t, headers: o } = n, a = o["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), i = new Blob([t]), r = document.createElement("a"), s = window.URL.createObjectURL(i);
|
|
3148
|
+
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);
|
|
3149
3149
|
};
|
|
3150
|
-
|
|
3151
|
-
|
|
3150
|
+
Pe([
|
|
3151
|
+
Be,
|
|
3152
3152
|
oa,
|
|
3153
3153
|
Qe,
|
|
3154
3154
|
Ke,
|
|
3155
|
-
|
|
3155
|
+
Et,
|
|
3156
3156
|
Xe
|
|
3157
3157
|
]);
|
|
3158
3158
|
const Yi = Q({
|
|
@@ -3169,11 +3169,11 @@ const Yi = Q({
|
|
|
3169
3169
|
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
3170
3170
|
o.value = !1;
|
|
3171
3171
|
}, i = q(() => {
|
|
3172
|
-
let { data: L = [] } =
|
|
3172
|
+
let { data: L = [] } = k(t)[0] || {};
|
|
3173
3173
|
if (Array.isArray(e.colors)) {
|
|
3174
|
-
const C = e.isUseLabelColors,
|
|
3174
|
+
const C = e.isUseLabelColors, f = e.colors;
|
|
3175
3175
|
L = L.map((p, T) => ({
|
|
3176
|
-
label: C ? { color:
|
|
3176
|
+
label: C ? { color: f[T] } : {},
|
|
3177
3177
|
...p
|
|
3178
3178
|
}));
|
|
3179
3179
|
}
|
|
@@ -3231,11 +3231,11 @@ const Yi = Q({
|
|
|
3231
3231
|
show: e.tooltipShow,
|
|
3232
3232
|
trigger: e.tooltipTrigger,
|
|
3233
3233
|
formatter: (C) => {
|
|
3234
|
-
const { marker:
|
|
3234
|
+
const { marker: f, seriesName: p, name: T, value: F, percent: S, data: _ } = C || {};
|
|
3235
3235
|
return be(
|
|
3236
3236
|
e.tooltipFormatter,
|
|
3237
3237
|
{
|
|
3238
|
-
marker:
|
|
3238
|
+
marker: f,
|
|
3239
3239
|
name: T,
|
|
3240
3240
|
value: F,
|
|
3241
3241
|
percent: S,
|
|
@@ -3303,7 +3303,7 @@ const Yi = Q({
|
|
|
3303
3303
|
}
|
|
3304
3304
|
]
|
|
3305
3305
|
};
|
|
3306
|
-
}), { getGlobalModel:
|
|
3306
|
+
}), { getGlobalModel: r, setGlobalModel: s } = N(de, {
|
|
3307
3307
|
// @ts-ignore
|
|
3308
3308
|
// eslint-disable-next-line no-void
|
|
3309
3309
|
getGlobalModel: (L) => {
|
|
@@ -3312,44 +3312,44 @@ const Yi = Q({
|
|
|
3312
3312
|
// eslint-disable-next-line no-void
|
|
3313
3313
|
setGlobalModel: (L, C) => {
|
|
3314
3314
|
}
|
|
3315
|
-
}), { pageMode: l } =
|
|
3315
|
+
}), { pageMode: l } = N(ce, {
|
|
3316
3316
|
pageMode: "normal"
|
|
3317
3317
|
}), d = (L = [], C) => {
|
|
3318
|
-
const { dataset:
|
|
3319
|
-
t.value =
|
|
3318
|
+
const { dataset: f } = Ye(L, C);
|
|
3319
|
+
t.value = f;
|
|
3320
3320
|
}, c = (L = [], C) => {
|
|
3321
|
-
const
|
|
3322
|
-
t.value =
|
|
3321
|
+
const f = Ye(L, C);
|
|
3322
|
+
t.value = f.dataset;
|
|
3323
3323
|
};
|
|
3324
3324
|
ne(() => e.data, (L) => {
|
|
3325
|
-
(e.dataType === "static" ||
|
|
3325
|
+
(e.dataType === "static" || k(l) === "design") && d(L);
|
|
3326
3326
|
}, {
|
|
3327
3327
|
immediate: !0,
|
|
3328
3328
|
deep: !0
|
|
3329
3329
|
});
|
|
3330
|
-
const m = I(!1), g = Ae(e),
|
|
3330
|
+
const m = I(!1), g = Ae(e), b = async () => {
|
|
3331
3331
|
var L, C;
|
|
3332
|
-
if (!(e.dataType !== "request" ||
|
|
3332
|
+
if (!(e.dataType !== "request" || k(l) === "design"))
|
|
3333
3333
|
try {
|
|
3334
3334
|
m.value = !0;
|
|
3335
|
-
const
|
|
3336
|
-
d((C = (L =
|
|
3337
|
-
} catch (
|
|
3338
|
-
console.error(
|
|
3335
|
+
const f = await g();
|
|
3336
|
+
d((C = (L = f == null ? void 0 : f.data) == null ? void 0 : L.data) == null ? void 0 : C.rows, e.valueTypeDataFieldNames);
|
|
3337
|
+
} catch (f) {
|
|
3338
|
+
console.error(f);
|
|
3339
3339
|
} finally {
|
|
3340
3340
|
m.value = !1;
|
|
3341
3341
|
}
|
|
3342
|
-
},
|
|
3343
|
-
const C = e.id,
|
|
3344
|
-
|
|
3345
|
-
}),
|
|
3346
|
-
var L, C,
|
|
3347
|
-
if (!(e.dataType !== "indicator" ||
|
|
3342
|
+
}, h = ue(e)("click", (L) => {
|
|
3343
|
+
const C = e.id, f = r(C);
|
|
3344
|
+
s(C, { ...f, RECORD: L == null ? void 0 : L.data });
|
|
3345
|
+
}), v = zt(e), y = async () => {
|
|
3346
|
+
var L, C, f, p, T, F;
|
|
3347
|
+
if (!(e.dataType !== "indicator" || k(l) === "design"))
|
|
3348
3348
|
try {
|
|
3349
3349
|
m.value = !0;
|
|
3350
|
-
const S = await
|
|
3350
|
+
const S = await v();
|
|
3351
3351
|
let _ = [];
|
|
3352
|
-
if (((
|
|
3352
|
+
if (((f = (C = (L = S == null ? void 0 : S.data) == null ? void 0 : L.data) == null ? void 0 : C.columns) == null ? void 0 : f.length) > 0) {
|
|
3353
3353
|
const U = S.data.data.columns[0], H = S.data.data.columns[1];
|
|
3354
3354
|
_ = (F = (T = (p = S == null ? void 0 : S.data) == null ? void 0 : p.data) == null ? void 0 : T.rows) == null ? void 0 : F.map((O) => ({
|
|
3355
3355
|
name: O[U],
|
|
@@ -3362,33 +3362,33 @@ const Yi = Q({
|
|
|
3362
3362
|
} finally {
|
|
3363
3363
|
m.value = !1;
|
|
3364
3364
|
}
|
|
3365
|
-
},
|
|
3366
|
-
|
|
3365
|
+
}, A = () => {
|
|
3366
|
+
k(l) !== "design" && (y(), b());
|
|
3367
3367
|
};
|
|
3368
3368
|
ge(e, {
|
|
3369
3369
|
resetRecord: () => {
|
|
3370
|
-
const L = e.id, C =
|
|
3371
|
-
|
|
3370
|
+
const L = e.id, C = r(L);
|
|
3371
|
+
s(L, { ...C, RECORD: "" });
|
|
3372
3372
|
},
|
|
3373
3373
|
refreshData: () => {
|
|
3374
|
-
|
|
3374
|
+
A();
|
|
3375
3375
|
},
|
|
3376
|
-
click:
|
|
3376
|
+
click: h
|
|
3377
3377
|
});
|
|
3378
|
-
const { setRequest: w } =
|
|
3378
|
+
const { setRequest: w } = N(Ce, {
|
|
3379
3379
|
// @ts-ignore
|
|
3380
3380
|
// eslint-disable-next-line no-void
|
|
3381
|
-
setRequest: ({ id: L, sortNum: C, requestFn:
|
|
3381
|
+
setRequest: ({ id: L, sortNum: C, requestFn: f }) => {
|
|
3382
3382
|
}
|
|
3383
3383
|
});
|
|
3384
3384
|
return w({
|
|
3385
3385
|
id: e.id,
|
|
3386
|
-
requestFn:
|
|
3386
|
+
requestFn: A,
|
|
3387
3387
|
sortNum: e.requestSort
|
|
3388
3388
|
}), {
|
|
3389
3389
|
option: i,
|
|
3390
3390
|
style: n,
|
|
3391
|
-
click:
|
|
3391
|
+
click: h,
|
|
3392
3392
|
loading: m,
|
|
3393
3393
|
visible: o,
|
|
3394
3394
|
hideModal: a
|
|
@@ -3396,13 +3396,13 @@ const Yi = Q({
|
|
|
3396
3396
|
}
|
|
3397
3397
|
});
|
|
3398
3398
|
function Qi(e, n, t, o, a, i) {
|
|
3399
|
-
const
|
|
3399
|
+
const r = Z("echarts"), s = Z("spin"), l = Z("a-modal");
|
|
3400
3400
|
return E(), R("div", {
|
|
3401
3401
|
style: G(e.style)
|
|
3402
3402
|
}, [
|
|
3403
|
-
j(
|
|
3403
|
+
j(s, { spinning: e.loading }, {
|
|
3404
3404
|
default: Y(() => [
|
|
3405
|
-
j(
|
|
3405
|
+
j(r, {
|
|
3406
3406
|
option: e.option,
|
|
3407
3407
|
autoresize: "",
|
|
3408
3408
|
onClick: e.click
|
|
@@ -3418,9 +3418,9 @@ function Qi(e, n, t, o, a, i) {
|
|
|
3418
3418
|
onCancel: e.hideModal
|
|
3419
3419
|
}, {
|
|
3420
3420
|
default: Y(() => [
|
|
3421
|
-
j(
|
|
3421
|
+
j(s, { spinning: e.loading }, {
|
|
3422
3422
|
default: Y(() => [
|
|
3423
|
-
j(
|
|
3423
|
+
j(r, {
|
|
3424
3424
|
option: e.option,
|
|
3425
3425
|
"update-options": { notMerge: !0 },
|
|
3426
3426
|
autoresize: ""
|
|
@@ -3497,8 +3497,8 @@ const Ki = /* @__PURE__ */ K(Yi, [["render", Qi]]), Xi = oe(Ki), to = {
|
|
|
3497
3497
|
toolboxInfoText: "当前无说明信息",
|
|
3498
3498
|
areaStyleOpacity: 0
|
|
3499
3499
|
}, no = ae(to), er = ["click", "refreshData", "resetRecord"];
|
|
3500
|
-
|
|
3501
|
-
|
|
3500
|
+
Pe([
|
|
3501
|
+
Be,
|
|
3502
3502
|
hn,
|
|
3503
3503
|
Ke,
|
|
3504
3504
|
Qe,
|
|
@@ -3517,8 +3517,8 @@ const tr = Q({
|
|
|
3517
3517
|
setup(e) {
|
|
3518
3518
|
const n = ie(e), t = I([]), o = I([]), a = I(!1), i = () => {
|
|
3519
3519
|
a.value = !1;
|
|
3520
|
-
},
|
|
3521
|
-
const C = e.xAxisLabelFormatter,
|
|
3520
|
+
}, r = q(() => {
|
|
3521
|
+
const C = e.xAxisLabelFormatter, f = e.yAxisLabelFormatter;
|
|
3522
3522
|
return {
|
|
3523
3523
|
toolbox: {
|
|
3524
3524
|
show: e.toolboxShow,
|
|
@@ -3577,16 +3577,16 @@ const tr = Q({
|
|
|
3577
3577
|
let F = "", S = e.tooltipFormatter;
|
|
3578
3578
|
S === "" && (S = "{marker} {a} {c}");
|
|
3579
3579
|
for (let _ = 0; _ < T; _++) {
|
|
3580
|
-
const { marker: U, seriesName: H, name: O, value:
|
|
3580
|
+
const { marker: U, seriesName: H, name: O, value: $, data: z } = p[_] || {};
|
|
3581
3581
|
_ === 0 && (F += `${O}<br/>`), F += be(
|
|
3582
3582
|
S,
|
|
3583
3583
|
{
|
|
3584
3584
|
marker: U,
|
|
3585
3585
|
name: O,
|
|
3586
|
-
value:
|
|
3586
|
+
value: $,
|
|
3587
3587
|
a: H,
|
|
3588
3588
|
b: O,
|
|
3589
|
-
c:
|
|
3589
|
+
c: $,
|
|
3590
3590
|
...z
|
|
3591
3591
|
},
|
|
3592
3592
|
{
|
|
@@ -3600,7 +3600,7 @@ const tr = Q({
|
|
|
3600
3600
|
},
|
|
3601
3601
|
xAxis: {
|
|
3602
3602
|
type: "category",
|
|
3603
|
-
data:
|
|
3603
|
+
data: k(o),
|
|
3604
3604
|
minInterval: e.xAxisMinInterval,
|
|
3605
3605
|
splitLine: {
|
|
3606
3606
|
show: e.xAxisSplitLineShow,
|
|
@@ -3635,7 +3635,7 @@ const tr = Q({
|
|
|
3635
3635
|
axisLabel: {
|
|
3636
3636
|
color: e.yAxisLabelColor,
|
|
3637
3637
|
formatter(p) {
|
|
3638
|
-
return De(
|
|
3638
|
+
return De(f, p);
|
|
3639
3639
|
}
|
|
3640
3640
|
},
|
|
3641
3641
|
axisLine: {
|
|
@@ -3651,26 +3651,26 @@ const tr = Q({
|
|
|
3651
3651
|
top: e.legendTop,
|
|
3652
3652
|
left: e.legendLeft
|
|
3653
3653
|
},
|
|
3654
|
-
series:
|
|
3654
|
+
series: k(t)
|
|
3655
3655
|
};
|
|
3656
|
-
}), { getGlobalModel:
|
|
3656
|
+
}), { getGlobalModel: s, setGlobalModel: l } = N(de, {
|
|
3657
3657
|
// @ts-ignore
|
|
3658
3658
|
// eslint-disable-next-line no-void
|
|
3659
3659
|
getGlobalModel: (C) => {
|
|
3660
3660
|
},
|
|
3661
3661
|
// @ts-ignore
|
|
3662
3662
|
// eslint-disable-next-line no-void
|
|
3663
|
-
setGlobalModel: (C,
|
|
3663
|
+
setGlobalModel: (C, f) => {
|
|
3664
3664
|
}
|
|
3665
|
-
}), { pageMode: d } =
|
|
3665
|
+
}), { pageMode: d } = N(ce, {
|
|
3666
3666
|
pageMode: "normal"
|
|
3667
|
-
}), c = (C = [],
|
|
3667
|
+
}), c = (C = [], f = !1) => {
|
|
3668
3668
|
let p;
|
|
3669
3669
|
if (e.dataFieldConfigType === "key") {
|
|
3670
|
-
const _ =
|
|
3671
|
-
p =
|
|
3670
|
+
const _ = f ? e.keyTypeDataFieldNames : null;
|
|
3671
|
+
p = $e(C, _);
|
|
3672
3672
|
} else if (e.dataFieldConfigType === "value") {
|
|
3673
|
-
const _ =
|
|
3673
|
+
const _ = f ? e.valueTypeDataFieldNames : null;
|
|
3674
3674
|
p = Ye(C, _);
|
|
3675
3675
|
}
|
|
3676
3676
|
o.value = p.dimensions;
|
|
@@ -3702,8 +3702,8 @@ const tr = Q({
|
|
|
3702
3702
|
}
|
|
3703
3703
|
});
|
|
3704
3704
|
t.value = F;
|
|
3705
|
-
}, m = (C = [],
|
|
3706
|
-
const F =
|
|
3705
|
+
}, m = (C = [], f, p = !1) => {
|
|
3706
|
+
const F = $e(C, p ? f : null);
|
|
3707
3707
|
o.value = F.dimensions;
|
|
3708
3708
|
const S = F.dataset, _ = [], U = S.length;
|
|
3709
3709
|
for (let H = 0; H < U; H++)
|
|
@@ -3719,34 +3719,34 @@ const tr = Q({
|
|
|
3719
3719
|
t.value = _;
|
|
3720
3720
|
};
|
|
3721
3721
|
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([C]) => {
|
|
3722
|
-
(e.dataType === "static" ||
|
|
3722
|
+
(e.dataType === "static" || k(d) === "design") && c(C);
|
|
3723
3723
|
}, {
|
|
3724
3724
|
immediate: !0,
|
|
3725
3725
|
deep: !0
|
|
3726
3726
|
});
|
|
3727
|
-
const g = I(!1),
|
|
3728
|
-
var C,
|
|
3729
|
-
if (!(e.dataType !== "request" ||
|
|
3727
|
+
const g = I(!1), b = Ae(e), u = async () => {
|
|
3728
|
+
var C, f;
|
|
3729
|
+
if (!(e.dataType !== "request" || k(d) === "design"))
|
|
3730
3730
|
try {
|
|
3731
3731
|
g.value = !0;
|
|
3732
|
-
const p = await
|
|
3733
|
-
c((
|
|
3732
|
+
const p = await b();
|
|
3733
|
+
c((f = (C = p == null ? void 0 : p.data) == null ? void 0 : C.data) == null ? void 0 : f.rows, !0);
|
|
3734
3734
|
} catch (p) {
|
|
3735
3735
|
console.error(p);
|
|
3736
3736
|
} finally {
|
|
3737
3737
|
g.value = !1;
|
|
3738
3738
|
}
|
|
3739
|
-
},
|
|
3740
|
-
const
|
|
3741
|
-
l(
|
|
3742
|
-
}),
|
|
3743
|
-
var C,
|
|
3744
|
-
if (!(e.dataType !== "indicator" ||
|
|
3739
|
+
}, v = ue(e)("click", (C) => {
|
|
3740
|
+
const f = e.id, p = s(f);
|
|
3741
|
+
l(f, { ...p, RECORD: C == null ? void 0 : C.data });
|
|
3742
|
+
}), y = zt(e), A = async () => {
|
|
3743
|
+
var C, f, p, T, F;
|
|
3744
|
+
if (!(e.dataType !== "indicator" || k(d) === "design"))
|
|
3745
3745
|
try {
|
|
3746
3746
|
g.value = !0;
|
|
3747
|
-
const S = await
|
|
3747
|
+
const S = await y();
|
|
3748
3748
|
let _;
|
|
3749
|
-
((p = (
|
|
3749
|
+
((p = (f = (C = S == null ? void 0 : S.data) == null ? void 0 : C.data) == null ? void 0 : f.columns) == null ? void 0 : p.length) > 0 && (_ = {
|
|
3750
3750
|
name: S.data.data.columns[0],
|
|
3751
3751
|
types: S.data.data.columns.slice(1).map((U) => ({ label: U, value: U }))
|
|
3752
3752
|
}), m((F = (T = S == null ? void 0 : S.data) == null ? void 0 : T.data) == null ? void 0 : F.rows, _, !0);
|
|
@@ -3756,22 +3756,22 @@ const tr = Q({
|
|
|
3756
3756
|
g.value = !1;
|
|
3757
3757
|
}
|
|
3758
3758
|
}, x = () => {
|
|
3759
|
-
|
|
3759
|
+
k(d) !== "design" && (A(), u());
|
|
3760
3760
|
};
|
|
3761
3761
|
ge(e, {
|
|
3762
3762
|
refreshData: () => {
|
|
3763
3763
|
x();
|
|
3764
3764
|
},
|
|
3765
3765
|
resetRecord: () => {
|
|
3766
|
-
const C = e.id,
|
|
3767
|
-
l(C, { ...
|
|
3766
|
+
const C = e.id, f = s(C);
|
|
3767
|
+
l(C, { ...f, RECORD: "" });
|
|
3768
3768
|
},
|
|
3769
|
-
click:
|
|
3769
|
+
click: v
|
|
3770
3770
|
});
|
|
3771
|
-
const { setRequest: L } =
|
|
3771
|
+
const { setRequest: L } = N(Ce, {
|
|
3772
3772
|
// @ts-ignore
|
|
3773
3773
|
// eslint-disable-next-line no-void
|
|
3774
|
-
setRequest: ({ id: C, sortNum:
|
|
3774
|
+
setRequest: ({ id: C, sortNum: f, requestFn: p }) => {
|
|
3775
3775
|
}
|
|
3776
3776
|
});
|
|
3777
3777
|
return L({
|
|
@@ -3779,9 +3779,9 @@ const tr = Q({
|
|
|
3779
3779
|
requestFn: x,
|
|
3780
3780
|
sortNum: e.requestSort
|
|
3781
3781
|
}), {
|
|
3782
|
-
option:
|
|
3782
|
+
option: r,
|
|
3783
3783
|
style: n,
|
|
3784
|
-
click:
|
|
3784
|
+
click: v,
|
|
3785
3785
|
loading: g,
|
|
3786
3786
|
visible: a,
|
|
3787
3787
|
hideModal: i
|
|
@@ -3789,13 +3789,13 @@ const tr = Q({
|
|
|
3789
3789
|
}
|
|
3790
3790
|
});
|
|
3791
3791
|
function nr(e, n, t, o, a, i) {
|
|
3792
|
-
const
|
|
3792
|
+
const r = Z("echarts"), s = Z("spin"), l = Z("a-modal");
|
|
3793
3793
|
return E(), R("div", {
|
|
3794
3794
|
style: G(e.style)
|
|
3795
3795
|
}, [
|
|
3796
|
-
j(
|
|
3796
|
+
j(s, { spinning: e.loading }, {
|
|
3797
3797
|
default: Y(() => [
|
|
3798
|
-
j(
|
|
3798
|
+
j(r, {
|
|
3799
3799
|
option: e.option,
|
|
3800
3800
|
autoresize: "",
|
|
3801
3801
|
onClick: e.click
|
|
@@ -3811,9 +3811,9 @@ function nr(e, n, t, o, a, i) {
|
|
|
3811
3811
|
onCancel: e.hideModal
|
|
3812
3812
|
}, {
|
|
3813
3813
|
default: Y(() => [
|
|
3814
|
-
j(
|
|
3814
|
+
j(s, { spinning: e.loading }, {
|
|
3815
3815
|
default: Y(() => [
|
|
3816
|
-
j(
|
|
3816
|
+
j(r, {
|
|
3817
3817
|
option: e.option,
|
|
3818
3818
|
"update-options": { notMerge: !0 },
|
|
3819
3819
|
autoresize: ""
|
|
@@ -3920,8 +3920,8 @@ const or = /* @__PURE__ */ K(tr, [["render", nr]]), ar = oe(or), oo = {
|
|
|
3920
3920
|
labelPosition: "inside",
|
|
3921
3921
|
labelColor: ""
|
|
3922
3922
|
}, ao = ae(oo), lr = ["refreshData", "click", "resetRecord"];
|
|
3923
|
-
|
|
3924
|
-
|
|
3923
|
+
Pe([
|
|
3924
|
+
Be,
|
|
3925
3925
|
yn,
|
|
3926
3926
|
Qe,
|
|
3927
3927
|
Xe,
|
|
@@ -3941,11 +3941,11 @@ const ir = Q({
|
|
|
3941
3941
|
setup(e, { expose: n }) {
|
|
3942
3942
|
const t = ie(e), o = I([]), a = I(!1), i = () => {
|
|
3943
3943
|
a.value = !1;
|
|
3944
|
-
},
|
|
3945
|
-
const
|
|
3944
|
+
}, r = q(() => {
|
|
3945
|
+
const f = k(o), p = f.length, T = [];
|
|
3946
3946
|
for (let F = 0; F < p; F++) {
|
|
3947
3947
|
const S = {
|
|
3948
|
-
...
|
|
3948
|
+
...f[F],
|
|
3949
3949
|
type: "bar",
|
|
3950
3950
|
barWidth: e.barWidth
|
|
3951
3951
|
};
|
|
@@ -3957,8 +3957,8 @@ const ir = Q({
|
|
|
3957
3957
|
}, T.push(S);
|
|
3958
3958
|
}
|
|
3959
3959
|
return T;
|
|
3960
|
-
}),
|
|
3961
|
-
const
|
|
3960
|
+
}), s = I([]), l = I(!1), d = q(() => {
|
|
3961
|
+
const f = e.yAxisLabelFormatter, p = e.xAxisLabelFormatter;
|
|
3962
3962
|
return {
|
|
3963
3963
|
toolbox: {
|
|
3964
3964
|
show: e.toolboxShow,
|
|
@@ -4017,15 +4017,15 @@ const ir = Q({
|
|
|
4017
4017
|
let S = "", _ = e.tooltipFormatter;
|
|
4018
4018
|
_ === "" && (_ = "{marker} {a} {c}");
|
|
4019
4019
|
for (let U = 0; U < F; U++) {
|
|
4020
|
-
const { marker: H, seriesName: O, name:
|
|
4021
|
-
U === 0 && (S += `${
|
|
4020
|
+
const { marker: H, seriesName: O, name: $, value: z, data: W } = T[U] || {};
|
|
4021
|
+
U === 0 && (S += `${$}<br/>`), S += be(
|
|
4022
4022
|
_,
|
|
4023
4023
|
{
|
|
4024
4024
|
marker: H,
|
|
4025
|
-
name:
|
|
4025
|
+
name: $,
|
|
4026
4026
|
value: z,
|
|
4027
4027
|
a: O,
|
|
4028
|
-
b:
|
|
4028
|
+
b: $,
|
|
4029
4029
|
c: z,
|
|
4030
4030
|
...W
|
|
4031
4031
|
},
|
|
@@ -4055,7 +4055,7 @@ const ir = Q({
|
|
|
4055
4055
|
},
|
|
4056
4056
|
xAxis: {
|
|
4057
4057
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4058
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4058
|
+
data: e.isUseHorizontalAxis ? null : k(s),
|
|
4059
4059
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4060
4060
|
minInterval: e.xAxisMinInterval,
|
|
4061
4061
|
splitLine: {
|
|
@@ -4085,7 +4085,7 @@ const ir = Q({
|
|
|
4085
4085
|
},
|
|
4086
4086
|
yAxis: {
|
|
4087
4087
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4088
|
-
data: e.isUseHorizontalAxis ?
|
|
4088
|
+
data: e.isUseHorizontalAxis ? k(s) : null,
|
|
4089
4089
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4090
4090
|
minInterval: e.yAxisMinInterval,
|
|
4091
4091
|
splitLine: {
|
|
@@ -4100,7 +4100,7 @@ const ir = Q({
|
|
|
4100
4100
|
width: e.yAxisLabelWidth,
|
|
4101
4101
|
overflow: e.yAxisLabelOverflow,
|
|
4102
4102
|
formatter(T) {
|
|
4103
|
-
return De(
|
|
4103
|
+
return De(f, T);
|
|
4104
4104
|
}
|
|
4105
4105
|
},
|
|
4106
4106
|
axisLine: {
|
|
@@ -4109,46 +4109,46 @@ const ir = Q({
|
|
|
4109
4109
|
}
|
|
4110
4110
|
}
|
|
4111
4111
|
},
|
|
4112
|
-
series:
|
|
4112
|
+
series: k(r)
|
|
4113
4113
|
};
|
|
4114
|
-
}), { pageMode: c } =
|
|
4114
|
+
}), { pageMode: c } = N(ce, {
|
|
4115
4115
|
pageMode: "normal"
|
|
4116
|
-
}), m = (
|
|
4116
|
+
}), m = (f = [], p = !1) => {
|
|
4117
4117
|
let T = {};
|
|
4118
4118
|
if (e.dataFieldConfigType === "key") {
|
|
4119
4119
|
const F = p ? e.keyTypeDataFieldNames : null;
|
|
4120
|
-
T =
|
|
4120
|
+
T = $e(f, F);
|
|
4121
4121
|
} else if (e.dataFieldConfigType === "value") {
|
|
4122
4122
|
const F = p ? e.valueTypeDataFieldNames : null;
|
|
4123
|
-
T = Ye(
|
|
4123
|
+
T = Ye(f, F);
|
|
4124
4124
|
}
|
|
4125
|
-
o.value = T.dataset,
|
|
4126
|
-
}, g = (
|
|
4127
|
-
const S =
|
|
4128
|
-
o.value = S.dataset,
|
|
4125
|
+
o.value = T.dataset, s.value = T.dimensions;
|
|
4126
|
+
}, g = (f = [], p, T = !1) => {
|
|
4127
|
+
const S = $e(f, T ? p : null);
|
|
4128
|
+
o.value = S.dataset, s.value = S.dimensions;
|
|
4129
4129
|
};
|
|
4130
|
-
ne(() => e.data, (
|
|
4131
|
-
(e.dataType === "static" ||
|
|
4130
|
+
ne(() => e.data, (f) => {
|
|
4131
|
+
(e.dataType === "static" || k(c) === "design") && m(f);
|
|
4132
4132
|
}, {
|
|
4133
4133
|
immediate: !0,
|
|
4134
4134
|
deep: !0
|
|
4135
4135
|
});
|
|
4136
|
-
const
|
|
4137
|
-
var
|
|
4136
|
+
const b = Ae(e), u = async () => {
|
|
4137
|
+
var f, p;
|
|
4138
4138
|
try {
|
|
4139
4139
|
l.value = !0;
|
|
4140
|
-
const T = await
|
|
4141
|
-
m((p = (
|
|
4140
|
+
const T = await b();
|
|
4141
|
+
m((p = (f = T == null ? void 0 : T.data) == null ? void 0 : f.data) == null ? void 0 : p.rows, !0);
|
|
4142
4142
|
} catch (T) {
|
|
4143
4143
|
console.error(T);
|
|
4144
4144
|
} finally {
|
|
4145
4145
|
l.value = !1;
|
|
4146
4146
|
}
|
|
4147
|
-
},
|
|
4148
|
-
var
|
|
4147
|
+
}, h = Mn(e), v = async () => {
|
|
4148
|
+
var f;
|
|
4149
4149
|
try {
|
|
4150
4150
|
l.value = !0;
|
|
4151
|
-
const p = await
|
|
4151
|
+
const p = await h(), { columns: T = [], rows: F = [] } = ((f = p == null ? void 0 : p.data) == null ? void 0 : f.data) ?? {};
|
|
4152
4152
|
let S;
|
|
4153
4153
|
T.length > 0 && (S = {
|
|
4154
4154
|
name: T[0],
|
|
@@ -4162,53 +4162,53 @@ const ir = Q({
|
|
|
4162
4162
|
} finally {
|
|
4163
4163
|
l.value = !1;
|
|
4164
4164
|
}
|
|
4165
|
-
},
|
|
4166
|
-
if (
|
|
4165
|
+
}, y = () => {
|
|
4166
|
+
if (k(c) !== "design")
|
|
4167
4167
|
switch (e.dataType) {
|
|
4168
4168
|
case "indicator":
|
|
4169
|
-
|
|
4169
|
+
v();
|
|
4170
4170
|
break;
|
|
4171
4171
|
case "request":
|
|
4172
|
-
|
|
4172
|
+
u();
|
|
4173
4173
|
break;
|
|
4174
4174
|
}
|
|
4175
4175
|
};
|
|
4176
4176
|
n({
|
|
4177
|
-
refreshData:
|
|
4177
|
+
refreshData: y
|
|
4178
4178
|
});
|
|
4179
|
-
const
|
|
4179
|
+
const A = ue(e), { getGlobalModel: x, setGlobalModel: B } = N(de, {
|
|
4180
4180
|
// @ts-ignore
|
|
4181
4181
|
// eslint-disable-next-line no-void
|
|
4182
|
-
getGlobalModel: (
|
|
4182
|
+
getGlobalModel: (f) => {
|
|
4183
4183
|
},
|
|
4184
4184
|
// @ts-ignore
|
|
4185
4185
|
// eslint-disable-next-line no-void
|
|
4186
|
-
setGlobalModel: (
|
|
4186
|
+
setGlobalModel: (f, p) => {
|
|
4187
4187
|
}
|
|
4188
|
-
}), w =
|
|
4188
|
+
}), w = A("click", (f) => {
|
|
4189
4189
|
const p = e.id, T = x(p);
|
|
4190
|
-
B(p, { ...T, RECORD:
|
|
4191
|
-
}), { setRequest: L } =
|
|
4190
|
+
B(p, { ...T, RECORD: f.data });
|
|
4191
|
+
}), { setRequest: L } = N(Ce, {
|
|
4192
4192
|
// @ts-ignore
|
|
4193
4193
|
// eslint-disable-next-line no-void
|
|
4194
|
-
setRequest: ({ id:
|
|
4194
|
+
setRequest: ({ id: f, sortNum: p, requestFn: T }) => {
|
|
4195
4195
|
}
|
|
4196
4196
|
});
|
|
4197
4197
|
return L({
|
|
4198
4198
|
id: e.id,
|
|
4199
|
-
requestFn:
|
|
4199
|
+
requestFn: y,
|
|
4200
4200
|
sortNum: e.requestSort
|
|
4201
4201
|
}), ge(e, {
|
|
4202
|
-
refreshData:
|
|
4202
|
+
refreshData: y,
|
|
4203
4203
|
click: w,
|
|
4204
4204
|
resetRecord: () => {
|
|
4205
|
-
const
|
|
4206
|
-
B(
|
|
4205
|
+
const f = e.id, p = x(f);
|
|
4206
|
+
B(f, { ...p, RECORD: "" });
|
|
4207
4207
|
}
|
|
4208
4208
|
}), {
|
|
4209
4209
|
option: d,
|
|
4210
4210
|
style: t,
|
|
4211
|
-
refreshData:
|
|
4211
|
+
refreshData: y,
|
|
4212
4212
|
click: w,
|
|
4213
4213
|
loading: l,
|
|
4214
4214
|
visible: a,
|
|
@@ -4217,14 +4217,14 @@ const ir = Q({
|
|
|
4217
4217
|
}
|
|
4218
4218
|
});
|
|
4219
4219
|
function rr(e, n, t, o, a, i) {
|
|
4220
|
-
const
|
|
4220
|
+
const r = Z("echarts"), s = Z("spin"), l = Z("a-modal");
|
|
4221
4221
|
return E(), R("div", {
|
|
4222
4222
|
class: "ecan-bar",
|
|
4223
4223
|
style: G(e.style)
|
|
4224
4224
|
}, [
|
|
4225
|
-
j(
|
|
4225
|
+
j(s, { spinning: e.loading }, {
|
|
4226
4226
|
default: Y(() => [
|
|
4227
|
-
j(
|
|
4227
|
+
j(r, {
|
|
4228
4228
|
option: e.option,
|
|
4229
4229
|
"update-options": { notMerge: !0 },
|
|
4230
4230
|
autoresize: "",
|
|
@@ -4241,9 +4241,9 @@ function rr(e, n, t, o, a, i) {
|
|
|
4241
4241
|
onCancel: e.hideModal
|
|
4242
4242
|
}, {
|
|
4243
4243
|
default: Y(() => [
|
|
4244
|
-
j(
|
|
4244
|
+
j(s, { spinning: e.loading }, {
|
|
4245
4245
|
default: Y(() => [
|
|
4246
|
-
j(
|
|
4246
|
+
j(r, {
|
|
4247
4247
|
option: e.option,
|
|
4248
4248
|
"update-options": { notMerge: !0 },
|
|
4249
4249
|
autoresize: ""
|
|
@@ -4311,12 +4311,12 @@ const sr = /* @__PURE__ */ K(ir, [["render", rr]]), cr = oe(sr), lo = {
|
|
|
4311
4311
|
toolboxDownloadUrl: "",
|
|
4312
4312
|
toolboxInfoText: "当前无说明信息"
|
|
4313
4313
|
}, io = ae(lo), dr = ["click", "refreshData"];
|
|
4314
|
-
|
|
4315
|
-
|
|
4314
|
+
Pe([
|
|
4315
|
+
Be,
|
|
4316
4316
|
bn,
|
|
4317
4317
|
Ke,
|
|
4318
4318
|
Qe,
|
|
4319
|
-
|
|
4319
|
+
Et,
|
|
4320
4320
|
Xe
|
|
4321
4321
|
]);
|
|
4322
4322
|
const ur = Q({
|
|
@@ -4333,7 +4333,7 @@ const ur = Q({
|
|
|
4333
4333
|
const n = ie(e), t = I([]), o = I(!1), a = () => {
|
|
4334
4334
|
o.value = !1;
|
|
4335
4335
|
}, i = q(() => {
|
|
4336
|
-
const
|
|
4336
|
+
const y = e.xAxisLabelFormatter, A = e.yAxisLabelFormatter;
|
|
4337
4337
|
return {
|
|
4338
4338
|
toolbox: {
|
|
4339
4339
|
show: e.toolboxShow,
|
|
@@ -4395,7 +4395,7 @@ const ur = Q({
|
|
|
4395
4395
|
axisLabel: {
|
|
4396
4396
|
color: e.xAxisLabelColor,
|
|
4397
4397
|
formatter(x) {
|
|
4398
|
-
return De(
|
|
4398
|
+
return De(y, x);
|
|
4399
4399
|
}
|
|
4400
4400
|
},
|
|
4401
4401
|
axisLine: {
|
|
@@ -4417,7 +4417,7 @@ const ur = Q({
|
|
|
4417
4417
|
axisLabel: {
|
|
4418
4418
|
color: e.yAxisLabelColor,
|
|
4419
4419
|
formatter(x) {
|
|
4420
|
-
return De(
|
|
4420
|
+
return De(A, x);
|
|
4421
4421
|
}
|
|
4422
4422
|
},
|
|
4423
4423
|
axisLine: {
|
|
@@ -4432,13 +4432,13 @@ const ur = Q({
|
|
|
4432
4432
|
trigger: e.tooltipTrigger,
|
|
4433
4433
|
formatter: function(x) {
|
|
4434
4434
|
var p;
|
|
4435
|
-
const { marker: B, seriesName: w } = x, L = ((p = x == null ? void 0 : x.data) == null ? void 0 : p.record) ?? {}, { name: C, value:
|
|
4435
|
+
const { marker: B, seriesName: w } = x, L = ((p = x == null ? void 0 : x.data) == null ? void 0 : p.record) ?? {}, { name: C, value: f } = L;
|
|
4436
4436
|
return be(e.tooltipFormatter, {
|
|
4437
4437
|
marker: B,
|
|
4438
4438
|
seriesName: w,
|
|
4439
4439
|
a: w,
|
|
4440
4440
|
b: C,
|
|
4441
|
-
c:
|
|
4441
|
+
c: f,
|
|
4442
4442
|
...L
|
|
4443
4443
|
});
|
|
4444
4444
|
},
|
|
@@ -4455,70 +4455,70 @@ const ur = Q({
|
|
|
4455
4455
|
},
|
|
4456
4456
|
series: [
|
|
4457
4457
|
{
|
|
4458
|
-
data:
|
|
4458
|
+
data: k(t),
|
|
4459
4459
|
type: "scatter",
|
|
4460
4460
|
symbolSize: e.symbolSize
|
|
4461
4461
|
}
|
|
4462
4462
|
]
|
|
4463
4463
|
};
|
|
4464
|
-
}), { getGlobalModel:
|
|
4464
|
+
}), { getGlobalModel: r, setGlobalModel: s } = N(de, {
|
|
4465
4465
|
// @ts-ignore
|
|
4466
4466
|
// eslint-disable-next-line no-void
|
|
4467
|
-
getGlobalModel: (
|
|
4467
|
+
getGlobalModel: (y) => {
|
|
4468
4468
|
},
|
|
4469
4469
|
// @ts-ignore
|
|
4470
4470
|
// eslint-disable-next-line no-void
|
|
4471
|
-
setGlobalModel: (
|
|
4471
|
+
setGlobalModel: (y, A) => {
|
|
4472
4472
|
}
|
|
4473
|
-
}), { pageMode: l } =
|
|
4473
|
+
}), { pageMode: l } = N(ce, {
|
|
4474
4474
|
pageMode: "normal"
|
|
4475
|
-
}), d = (
|
|
4476
|
-
const { name: x = "name", value: B = "value" } =
|
|
4477
|
-
t.value =
|
|
4475
|
+
}), d = (y = [], A) => {
|
|
4476
|
+
const { name: x = "name", value: B = "value" } = A || {};
|
|
4477
|
+
t.value = y.map((w) => ({ value: [w[x], w[B]], record: w }));
|
|
4478
4478
|
};
|
|
4479
|
-
ne(() => e.data, (
|
|
4480
|
-
(e.dataType === "static" ||
|
|
4479
|
+
ne(() => e.data, (y) => {
|
|
4480
|
+
(e.dataType === "static" || k(l) === "design") && d(y);
|
|
4481
4481
|
}, {
|
|
4482
4482
|
immediate: !0,
|
|
4483
4483
|
deep: !0
|
|
4484
4484
|
});
|
|
4485
4485
|
const c = I(!1), m = Ae(e), g = async () => {
|
|
4486
|
-
var
|
|
4487
|
-
if (!(e.dataType !== "request" ||
|
|
4486
|
+
var y, A;
|
|
4487
|
+
if (!(e.dataType !== "request" || k(l) === "design")) {
|
|
4488
4488
|
c.value = !0;
|
|
4489
4489
|
try {
|
|
4490
4490
|
const x = await m();
|
|
4491
|
-
d((
|
|
4491
|
+
d((A = (y = x == null ? void 0 : x.data) == null ? void 0 : y.data) == null ? void 0 : A.rows, e.dataFieldNames);
|
|
4492
4492
|
} catch (x) {
|
|
4493
4493
|
console.error(x);
|
|
4494
4494
|
} finally {
|
|
4495
4495
|
c.value = !1;
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
|
-
},
|
|
4499
|
-
const
|
|
4500
|
-
|
|
4498
|
+
}, u = ue(e)("click", (y) => {
|
|
4499
|
+
const A = e.id, x = r(A);
|
|
4500
|
+
s(A, { ...x, RECORD: y == null ? void 0 : y.data });
|
|
4501
4501
|
});
|
|
4502
4502
|
ge(e, {
|
|
4503
4503
|
refreshData: () => {
|
|
4504
4504
|
g();
|
|
4505
4505
|
},
|
|
4506
|
-
click:
|
|
4506
|
+
click: u
|
|
4507
4507
|
});
|
|
4508
|
-
const { setRequest:
|
|
4508
|
+
const { setRequest: v } = N(Ce, {
|
|
4509
4509
|
// @ts-ignore
|
|
4510
4510
|
// eslint-disable-next-line no-void
|
|
4511
|
-
setRequest: ({ id:
|
|
4511
|
+
setRequest: ({ id: y, sortNum: A, requestFn: x }) => {
|
|
4512
4512
|
}
|
|
4513
4513
|
});
|
|
4514
|
-
return
|
|
4514
|
+
return v({
|
|
4515
4515
|
id: e.id,
|
|
4516
4516
|
requestFn: g,
|
|
4517
4517
|
sortNum: e.requestSort
|
|
4518
4518
|
}), {
|
|
4519
4519
|
option: i,
|
|
4520
4520
|
style: n,
|
|
4521
|
-
click:
|
|
4521
|
+
click: u,
|
|
4522
4522
|
loading: c,
|
|
4523
4523
|
visible: o,
|
|
4524
4524
|
hideModal: a
|
|
@@ -4526,13 +4526,13 @@ const ur = Q({
|
|
|
4526
4526
|
}
|
|
4527
4527
|
});
|
|
4528
4528
|
function fr(e, n, t, o, a, i) {
|
|
4529
|
-
const
|
|
4529
|
+
const r = Z("echarts"), s = Z("spin"), l = Z("a-modal");
|
|
4530
4530
|
return E(), R("div", {
|
|
4531
4531
|
style: G(e.style)
|
|
4532
4532
|
}, [
|
|
4533
|
-
j(
|
|
4533
|
+
j(s, { spinning: e.loading }, {
|
|
4534
4534
|
default: Y(() => [
|
|
4535
|
-
j(
|
|
4535
|
+
j(r, {
|
|
4536
4536
|
option: e.option,
|
|
4537
4537
|
autoresize: "",
|
|
4538
4538
|
onClick: e.click
|
|
@@ -4548,9 +4548,9 @@ function fr(e, n, t, o, a, i) {
|
|
|
4548
4548
|
onCancel: e.hideModal
|
|
4549
4549
|
}, {
|
|
4550
4550
|
default: Y(() => [
|
|
4551
|
-
j(
|
|
4551
|
+
j(s, { spinning: e.loading }, {
|
|
4552
4552
|
default: Y(() => [
|
|
4553
|
-
j(
|
|
4553
|
+
j(r, {
|
|
4554
4554
|
option: e.option,
|
|
4555
4555
|
"update-options": { notMerge: !0 },
|
|
4556
4556
|
autoresize: ""
|
|
@@ -4600,11 +4600,11 @@ const mr = /* @__PURE__ */ K(ur, [["render", fr]]), gr = oe(mr), ro = {
|
|
|
4600
4600
|
}
|
|
4601
4601
|
});
|
|
4602
4602
|
function yr(e, n, t, o, a, i) {
|
|
4603
|
-
const
|
|
4603
|
+
const r = Z("echarts");
|
|
4604
4604
|
return E(), R("div", {
|
|
4605
4605
|
style: G(e.style)
|
|
4606
4606
|
}, [
|
|
4607
|
-
j(
|
|
4607
|
+
j(r, {
|
|
4608
4608
|
option: e.myOption,
|
|
4609
4609
|
"update-options": { notMerge: !0 },
|
|
4610
4610
|
autoresize: ""
|
|
@@ -4716,8 +4716,8 @@ const br = /* @__PURE__ */ K(hr, [["render", yr]]), vr = oe(br), co = {
|
|
|
4716
4716
|
smooth: !1,
|
|
4717
4717
|
barWidth: "40%"
|
|
4718
4718
|
}, uo = ae(co), pr = ["refreshData", "click", "resetRecord"];
|
|
4719
|
-
|
|
4720
|
-
|
|
4719
|
+
Pe([
|
|
4720
|
+
Be,
|
|
4721
4721
|
yn,
|
|
4722
4722
|
hn,
|
|
4723
4723
|
Qe,
|
|
@@ -4738,7 +4738,7 @@ const Cr = Q({
|
|
|
4738
4738
|
setup(e) {
|
|
4739
4739
|
const n = ie(e), t = I([]), o = I([]), a = I(!1), i = () => {
|
|
4740
4740
|
a.value = !1;
|
|
4741
|
-
},
|
|
4741
|
+
}, r = q(() => ({
|
|
4742
4742
|
title: {
|
|
4743
4743
|
text: e.titleText,
|
|
4744
4744
|
subtext: e.titleSubtext,
|
|
@@ -4800,13 +4800,13 @@ const Cr = Q({
|
|
|
4800
4800
|
tooltip: {
|
|
4801
4801
|
trigger: "axis",
|
|
4802
4802
|
show: e.tooltipShow,
|
|
4803
|
-
formatter: (
|
|
4804
|
-
const p =
|
|
4803
|
+
formatter: (f) => {
|
|
4804
|
+
const p = f.length;
|
|
4805
4805
|
let T = "", F = e.tooltipFormatter;
|
|
4806
4806
|
F === "" && (F = "{marker} {a} {c}");
|
|
4807
4807
|
const S = e.seriesTypes;
|
|
4808
4808
|
for (let _ = 0; _ < p; _++) {
|
|
4809
|
-
const U = S[_], { tooltipFormatter: H } = U || {}, { marker: O, seriesName:
|
|
4809
|
+
const U = S[_], { tooltipFormatter: H } = U || {}, { marker: O, seriesName: $, name: z, value: W, data: ee } = f[_] || {};
|
|
4810
4810
|
_ === 0 && (T += `${z}<br/>`), T += be(
|
|
4811
4811
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4812
4812
|
H || F,
|
|
@@ -4814,8 +4814,8 @@ const Cr = Q({
|
|
|
4814
4814
|
marker: O,
|
|
4815
4815
|
name: z,
|
|
4816
4816
|
value: W,
|
|
4817
|
-
seriesName:
|
|
4818
|
-
a:
|
|
4817
|
+
seriesName: $,
|
|
4818
|
+
a: $,
|
|
4819
4819
|
b: z,
|
|
4820
4820
|
c: W,
|
|
4821
4821
|
...ee
|
|
@@ -4835,7 +4835,7 @@ const Cr = Q({
|
|
|
4835
4835
|
xAxis: {
|
|
4836
4836
|
minInterval: e.xAxisMinInterval,
|
|
4837
4837
|
type: "category",
|
|
4838
|
-
data:
|
|
4838
|
+
data: k(o),
|
|
4839
4839
|
splitLine: {
|
|
4840
4840
|
show: e.xAxisSplitLineShow,
|
|
4841
4841
|
lineStyle: {
|
|
@@ -4854,29 +4854,29 @@ const Cr = Q({
|
|
|
4854
4854
|
show: e.xAxisTickShow
|
|
4855
4855
|
}
|
|
4856
4856
|
},
|
|
4857
|
-
yAxis:
|
|
4858
|
-
series:
|
|
4859
|
-
})), { pageMode:
|
|
4857
|
+
yAxis: k(c),
|
|
4858
|
+
series: k(t)
|
|
4859
|
+
})), { pageMode: s } = N(ce, {
|
|
4860
4860
|
pageMode: "normal"
|
|
4861
|
-
}), l = (
|
|
4861
|
+
}), l = (f = [], p = !1) => {
|
|
4862
4862
|
let T;
|
|
4863
4863
|
if (e.dataFieldConfigType === "key") {
|
|
4864
4864
|
const H = p ? e.keyTypeDataFieldNames : null;
|
|
4865
|
-
T =
|
|
4865
|
+
T = $e(f, H);
|
|
4866
4866
|
} else if (e.dataFieldConfigType === "value") {
|
|
4867
4867
|
const H = p ? e.valueTypeDataFieldNames : null;
|
|
4868
|
-
T = Ye(
|
|
4868
|
+
T = Ye(f, H);
|
|
4869
4869
|
}
|
|
4870
4870
|
o.value = T.dimensions;
|
|
4871
4871
|
const F = T.dataset, S = [], _ = F.length, U = e.seriesTypes;
|
|
4872
4872
|
for (let H = 0; H < _; H++) {
|
|
4873
|
-
const O = U[H], { type:
|
|
4873
|
+
const O = U[H], { type: $, axisIndex: z } = O || {};
|
|
4874
4874
|
let W = {
|
|
4875
|
-
type:
|
|
4875
|
+
type: $,
|
|
4876
4876
|
yAxisIndex: z,
|
|
4877
4877
|
...F[H]
|
|
4878
4878
|
};
|
|
4879
|
-
|
|
4879
|
+
$ === "line" && (W = {
|
|
4880
4880
|
...W,
|
|
4881
4881
|
symbolSize: e.symbolSize,
|
|
4882
4882
|
smooth: e.smooth,
|
|
@@ -4886,35 +4886,35 @@ const Cr = Q({
|
|
|
4886
4886
|
lineStyle: {
|
|
4887
4887
|
width: e.lineStyleWidth
|
|
4888
4888
|
}
|
|
4889
|
-
}),
|
|
4889
|
+
}), $ === "bar" && (W = {
|
|
4890
4890
|
...W,
|
|
4891
4891
|
barWidth: e.barWidth
|
|
4892
4892
|
}), S.push(W);
|
|
4893
4893
|
}
|
|
4894
4894
|
t.value = S;
|
|
4895
|
-
}, d = (
|
|
4896
|
-
const S =
|
|
4895
|
+
}, d = (f = [], p, T = !1) => {
|
|
4896
|
+
const S = $e(f, T ? p : null);
|
|
4897
4897
|
o.value = S.dimensions;
|
|
4898
4898
|
const _ = S.dataset, U = [], H = _.length, O = e.seriesTypes;
|
|
4899
|
-
for (let
|
|
4900
|
-
const z = O[
|
|
4899
|
+
for (let $ = 0; $ < H; $++) {
|
|
4900
|
+
const z = O[$];
|
|
4901
4901
|
U.push({
|
|
4902
4902
|
type: z == null ? void 0 : z.type,
|
|
4903
4903
|
yAxisIndex: z == null ? void 0 : z.axisIndex,
|
|
4904
|
-
..._[
|
|
4904
|
+
..._[$]
|
|
4905
4905
|
});
|
|
4906
4906
|
}
|
|
4907
4907
|
t.value = U;
|
|
4908
4908
|
};
|
|
4909
|
-
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([
|
|
4910
|
-
(e.dataType === "static" ||
|
|
4909
|
+
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([f]) => {
|
|
4910
|
+
(e.dataType === "static" || k(s) === "design") && l(f);
|
|
4911
4911
|
}, {
|
|
4912
4912
|
immediate: !0,
|
|
4913
4913
|
deep: !0
|
|
4914
4914
|
});
|
|
4915
4915
|
const c = q(() => {
|
|
4916
|
-
const
|
|
4917
|
-
return
|
|
4916
|
+
const f = e.yAxis;
|
|
4917
|
+
return f == null ? void 0 : f.map((p) => ({
|
|
4918
4918
|
type: "value",
|
|
4919
4919
|
minInterval: e.yAxisMinInterval,
|
|
4920
4920
|
splitLine: {
|
|
@@ -4935,26 +4935,26 @@ const Cr = Q({
|
|
|
4935
4935
|
}
|
|
4936
4936
|
}
|
|
4937
4937
|
}));
|
|
4938
|
-
}), m = I(!1), g = Ae(e),
|
|
4939
|
-
var
|
|
4940
|
-
if (!(e.dataType !== "request" ||
|
|
4938
|
+
}), m = I(!1), g = Ae(e), b = async () => {
|
|
4939
|
+
var f, p;
|
|
4940
|
+
if (!(e.dataType !== "request" || k(s) === "design"))
|
|
4941
4941
|
try {
|
|
4942
4942
|
m.value = !0;
|
|
4943
4943
|
const T = await g();
|
|
4944
|
-
l((p = (
|
|
4944
|
+
l((p = (f = T == null ? void 0 : T.data) == null ? void 0 : f.data) == null ? void 0 : p.rows, !0);
|
|
4945
4945
|
} catch (T) {
|
|
4946
4946
|
console.error(T);
|
|
4947
4947
|
} finally {
|
|
4948
4948
|
m.value = !1;
|
|
4949
4949
|
}
|
|
4950
|
-
},
|
|
4951
|
-
var
|
|
4952
|
-
if (!(e.dataType !== "indicator" ||
|
|
4950
|
+
}, u = zt(e), h = async () => {
|
|
4951
|
+
var f, p, T, F, S;
|
|
4952
|
+
if (!(e.dataType !== "indicator" || k(s) === "design"))
|
|
4953
4953
|
try {
|
|
4954
4954
|
m.value = !0;
|
|
4955
|
-
const _ = await
|
|
4955
|
+
const _ = await u();
|
|
4956
4956
|
let U;
|
|
4957
|
-
((T = (p = (
|
|
4957
|
+
((T = (p = (f = _ == null ? void 0 : _.data) == null ? void 0 : f.data) == null ? void 0 : p.columns) == null ? void 0 : T.length) > 0 && (U = {
|
|
4958
4958
|
name: _.data.data.columns[0],
|
|
4959
4959
|
types: _.data.data.columns.slice(1).map((H) => ({ label: H, value: H }))
|
|
4960
4960
|
}), d((S = (F = _ == null ? void 0 : _.data) == null ? void 0 : F.data) == null ? void 0 : S.rows, U, !0);
|
|
@@ -4963,42 +4963,42 @@ const Cr = Q({
|
|
|
4963
4963
|
} finally {
|
|
4964
4964
|
m.value = !1;
|
|
4965
4965
|
}
|
|
4966
|
+
}, v = () => {
|
|
4967
|
+
k(s) !== "design" && (h(), b());
|
|
4966
4968
|
}, y = () => {
|
|
4967
|
-
|
|
4968
|
-
},
|
|
4969
|
-
y();
|
|
4970
|
-
}, k = ue(e), { getGlobalModel: x, setGlobalModel: B } = $(de, {
|
|
4969
|
+
v();
|
|
4970
|
+
}, A = ue(e), { getGlobalModel: x, setGlobalModel: B } = N(de, {
|
|
4971
4971
|
// @ts-ignore
|
|
4972
4972
|
// eslint-disable-next-line no-void
|
|
4973
|
-
getGlobalModel: (
|
|
4973
|
+
getGlobalModel: (f) => {
|
|
4974
4974
|
},
|
|
4975
4975
|
// @ts-ignore
|
|
4976
4976
|
// eslint-disable-next-line no-void
|
|
4977
|
-
setGlobalModel: (
|
|
4977
|
+
setGlobalModel: (f, p) => {
|
|
4978
4978
|
}
|
|
4979
|
-
}), w =
|
|
4979
|
+
}), w = A("click", (f) => {
|
|
4980
4980
|
const p = e.id, T = x(p);
|
|
4981
|
-
B(p, { ...T, RECORD:
|
|
4982
|
-
}), { setRequest: L } =
|
|
4981
|
+
B(p, { ...T, RECORD: f == null ? void 0 : f.data });
|
|
4982
|
+
}), { setRequest: L } = N(Ce, {
|
|
4983
4983
|
// @ts-ignore
|
|
4984
4984
|
// eslint-disable-next-line no-void
|
|
4985
|
-
setRequest: ({ id:
|
|
4985
|
+
setRequest: ({ id: f, sortNum: p, requestFn: T }) => {
|
|
4986
4986
|
}
|
|
4987
4987
|
});
|
|
4988
4988
|
return L({
|
|
4989
4989
|
id: e.id,
|
|
4990
|
-
requestFn:
|
|
4990
|
+
requestFn: v,
|
|
4991
4991
|
sortNum: e.requestSort
|
|
4992
4992
|
}), ge(e, {
|
|
4993
4993
|
resetRecord: () => {
|
|
4994
|
-
const
|
|
4995
|
-
B(
|
|
4994
|
+
const f = e.id, p = x(f);
|
|
4995
|
+
B(f, { ...p, RECORD: "" });
|
|
4996
4996
|
},
|
|
4997
|
-
refreshData:
|
|
4997
|
+
refreshData: y,
|
|
4998
4998
|
click: w
|
|
4999
4999
|
}), {
|
|
5000
5000
|
style: n,
|
|
5001
|
-
option:
|
|
5001
|
+
option: r,
|
|
5002
5002
|
click: w,
|
|
5003
5003
|
loading: m,
|
|
5004
5004
|
visible: a,
|
|
@@ -5007,13 +5007,13 @@ const Cr = Q({
|
|
|
5007
5007
|
}
|
|
5008
5008
|
});
|
|
5009
5009
|
function Sr(e, n, t, o, a, i) {
|
|
5010
|
-
const
|
|
5010
|
+
const r = Z("echarts"), s = Z("spin"), l = Z("a-modal");
|
|
5011
5011
|
return E(), R("div", {
|
|
5012
5012
|
style: G(e.style)
|
|
5013
5013
|
}, [
|
|
5014
|
-
j(
|
|
5014
|
+
j(s, { spinning: e.loading }, {
|
|
5015
5015
|
default: Y(() => [
|
|
5016
|
-
j(
|
|
5016
|
+
j(r, {
|
|
5017
5017
|
option: e.option,
|
|
5018
5018
|
"update-options": { notMerge: !0 },
|
|
5019
5019
|
autoresize: "",
|
|
@@ -5030,9 +5030,9 @@ function Sr(e, n, t, o, a, i) {
|
|
|
5030
5030
|
onCancel: e.hideModal
|
|
5031
5031
|
}, {
|
|
5032
5032
|
default: Y(() => [
|
|
5033
|
-
j(
|
|
5033
|
+
j(s, { spinning: e.loading }, {
|
|
5034
5034
|
default: Y(() => [
|
|
5035
|
-
j(
|
|
5035
|
+
j(r, {
|
|
5036
5036
|
option: e.option,
|
|
5037
5037
|
"update-options": { notMerge: !0 },
|
|
5038
5038
|
autoresize: "",
|
|
@@ -5073,7 +5073,7 @@ const wr = /* @__PURE__ */ K(Cr, [["render", Sr]]), kr = oe(wr), fo = {
|
|
|
5073
5073
|
...mo
|
|
5074
5074
|
},
|
|
5075
5075
|
setup(e) {
|
|
5076
|
-
const n = ie(e, ["background"]), { theme: t } =
|
|
5076
|
+
const n = ie(e, ["background"]), { theme: t } = N(ce, {
|
|
5077
5077
|
theme: "light"
|
|
5078
5078
|
}), o = q(() => ({
|
|
5079
5079
|
// borderWidth: props.borderWidth,
|
|
@@ -5084,24 +5084,24 @@ const wr = /* @__PURE__ */ K(Cr, [["render", Sr]]), kr = oe(wr), fo = {
|
|
|
5084
5084
|
width: "100%",
|
|
5085
5085
|
height: "100%"
|
|
5086
5086
|
})), i = ue(e)("click", () => {
|
|
5087
|
-
}),
|
|
5087
|
+
}), r = I([]);
|
|
5088
5088
|
ne(() => e.data, (l) => {
|
|
5089
|
-
|
|
5089
|
+
r.value = l;
|
|
5090
5090
|
}, {
|
|
5091
5091
|
immediate: !0,
|
|
5092
5092
|
deep: !0
|
|
5093
5093
|
}), ge(e, {
|
|
5094
5094
|
click: i
|
|
5095
5095
|
});
|
|
5096
|
-
const { setGlobalModel:
|
|
5096
|
+
const { setGlobalModel: s } = N(de, {
|
|
5097
5097
|
// @ts-ignore
|
|
5098
5098
|
// eslint-disable-next-line no-void
|
|
5099
5099
|
setGlobalModel: (l, d) => {
|
|
5100
5100
|
}
|
|
5101
5101
|
});
|
|
5102
|
-
return
|
|
5102
|
+
return s(e.id, {
|
|
5103
5103
|
type: e.type,
|
|
5104
|
-
value:
|
|
5104
|
+
value: r
|
|
5105
5105
|
}), {
|
|
5106
5106
|
style: n,
|
|
5107
5107
|
click: i,
|
|
@@ -5124,7 +5124,7 @@ function qr(e, n, t, o, a, i) {
|
|
|
5124
5124
|
return E(), R("div", {
|
|
5125
5125
|
class: "ecan-border",
|
|
5126
5126
|
style: G(e.style),
|
|
5127
|
-
onClick: n[0] || (n[0] = (...
|
|
5127
|
+
onClick: n[0] || (n[0] = (...r) => e.click && e.click(...r))
|
|
5128
5128
|
}, [
|
|
5129
5129
|
e.mode === "no-title" ? (E(), R("div", {
|
|
5130
5130
|
key: 0,
|
|
@@ -5199,44 +5199,44 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-f3fc1305
|
|
|
5199
5199
|
bottom: "bottom"
|
|
5200
5200
|
}[z]
|
|
5201
5201
|
};
|
|
5202
|
-
}), o = e.width, a = e.height, i = e.originalWidth,
|
|
5203
|
-
let
|
|
5204
|
-
const
|
|
5202
|
+
}), o = e.width, a = e.height, i = e.originalWidth, r = e.originalHeight, s = I("80%"), l = I(0), d = I(), c = I(0), m = I({}), g = ie(e), b = I({}), u = I(!1), h = I();
|
|
5203
|
+
let v;
|
|
5204
|
+
const y = () => {
|
|
5205
5205
|
d.value = parseFloat(o) / parseFloat(i);
|
|
5206
|
-
const z = parseFloat(a) / parseFloat(
|
|
5207
|
-
l.value = W *
|
|
5208
|
-
width: `${
|
|
5209
|
-
height: `${
|
|
5210
|
-
},
|
|
5211
|
-
...
|
|
5206
|
+
const z = parseFloat(a) / parseFloat(r), W = document.body.offsetWidth, ee = document.body.offsetHeight;
|
|
5207
|
+
l.value = W * k(d), c.value = ee * z, s.value = `${k(d) * 100}%`, m.value = {
|
|
5208
|
+
width: `${k(l)}px`,
|
|
5209
|
+
height: `${k(c)}px`
|
|
5210
|
+
}, b.value = {
|
|
5211
|
+
...k(g),
|
|
5212
5212
|
backgroundImage: Re(e.backgroundImage, !0),
|
|
5213
|
-
transform: `scale(${
|
|
5213
|
+
transform: `scale(${k(l) / parseFloat(o)},${k(c) / parseFloat(a)})`
|
|
5214
5214
|
};
|
|
5215
|
-
},
|
|
5216
|
-
|
|
5215
|
+
}, A = Mt(() => {
|
|
5216
|
+
y();
|
|
5217
5217
|
}, 100), x = () => {
|
|
5218
5218
|
const z = window.MutationObserver;
|
|
5219
|
-
|
|
5219
|
+
v = new z(A), v.observe(document.body, {
|
|
5220
5220
|
attributes: !0,
|
|
5221
5221
|
attributeFilter: ["style"],
|
|
5222
5222
|
attributeOldValue: !0
|
|
5223
5223
|
});
|
|
5224
5224
|
}, B = () => {
|
|
5225
|
-
|
|
5226
|
-
}, w = I(!1), { touchRequest: L } =
|
|
5225
|
+
v && (v.disconnect(), v.takeRecords(), v = null);
|
|
5226
|
+
}, w = I(!1), { touchRequest: L } = N(Ce, {
|
|
5227
5227
|
// @ts-ignore
|
|
5228
5228
|
// eslint-disable-next-line no-void
|
|
5229
5229
|
touchRequest: () => {
|
|
5230
5230
|
}
|
|
5231
5231
|
}), C = () => {
|
|
5232
5232
|
w.value = !0;
|
|
5233
|
-
},
|
|
5233
|
+
}, f = () => {
|
|
5234
5234
|
w.value = !1;
|
|
5235
5235
|
}, p = () => {
|
|
5236
|
-
|
|
5236
|
+
f();
|
|
5237
5237
|
}, T = () => {
|
|
5238
|
-
|
|
5239
|
-
}, { setModalModel: F, pushUseModalIds: S, popUseModalIds: _ } =
|
|
5238
|
+
f();
|
|
5239
|
+
}, { setModalModel: F, pushUseModalIds: S, popUseModalIds: _ } = N(_n, {
|
|
5240
5240
|
pushUseModalIds: (z) => {
|
|
5241
5241
|
},
|
|
5242
5242
|
popUseModalIds: () => {
|
|
@@ -5250,23 +5250,23 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-f3fc1305
|
|
|
5250
5250
|
Array.isArray(ee) && (W = ee.map((se) => se.id), F(z, [...new Set(W)]));
|
|
5251
5251
|
};
|
|
5252
5252
|
ne(() => w.value, async (z) => {
|
|
5253
|
-
z ? (
|
|
5254
|
-
|
|
5255
|
-
}), L()) : (_(), window.removeEventListener("resize",
|
|
5253
|
+
z ? (u.value = !1, S(e.id), U(), await ft(() => {
|
|
5254
|
+
y(), window.addEventListener("resize", A), x(), u.value = !0;
|
|
5255
|
+
}), L()) : (_(), window.removeEventListener("resize", A), B());
|
|
5256
5256
|
});
|
|
5257
|
-
const H = q(() =>
|
|
5257
|
+
const H = q(() => k(d) >= 1), O = q(() => e.fullModal), $ = q(() => {
|
|
5258
5258
|
let z = "ecan-modal";
|
|
5259
|
-
return
|
|
5259
|
+
return k(H) && (z += " ecan-full-width-modal"), k(O) && (z += " ecan-full-modal"), z;
|
|
5260
5260
|
});
|
|
5261
5261
|
return ge(e, {
|
|
5262
5262
|
showModal: C
|
|
5263
5263
|
}), {
|
|
5264
|
-
modalRef:
|
|
5264
|
+
modalRef: h,
|
|
5265
5265
|
containStyle: m,
|
|
5266
|
-
contentStyle:
|
|
5266
|
+
contentStyle: b,
|
|
5267
5267
|
getContainer: n,
|
|
5268
5268
|
modalStyle: t,
|
|
5269
|
-
modalWith:
|
|
5269
|
+
modalWith: s,
|
|
5270
5270
|
isFullModal: O,
|
|
5271
5271
|
style: g,
|
|
5272
5272
|
visible: w,
|
|
@@ -5274,14 +5274,14 @@ const jr = /* @__PURE__ */ K(xr, [["render", qr], ["__scopeId", "data-v-f3fc1305
|
|
|
5274
5274
|
onOk: p,
|
|
5275
5275
|
onCancel: T,
|
|
5276
5276
|
isFullWidth: H,
|
|
5277
|
-
wrapClassName:
|
|
5278
|
-
ready:
|
|
5277
|
+
wrapClassName: $,
|
|
5278
|
+
ready: u
|
|
5279
5279
|
};
|
|
5280
5280
|
}
|
|
5281
5281
|
});
|
|
5282
5282
|
function Zr(e, n, t, o, a, i) {
|
|
5283
|
-
const
|
|
5284
|
-
return E(), Oe(
|
|
5283
|
+
const r = Z("a-modal");
|
|
5284
|
+
return E(), Oe(r, {
|
|
5285
5285
|
getContainer: e.getContainer,
|
|
5286
5286
|
wrapClassName: e.wrapClassName,
|
|
5287
5287
|
centered: "",
|
|
@@ -5305,9 +5305,9 @@ function Zr(e, n, t, o, a, i) {
|
|
|
5305
5305
|
class: "content",
|
|
5306
5306
|
style: G(e.contentStyle)
|
|
5307
5307
|
}, [
|
|
5308
|
-
(E(!0), R(Le, null, Ie(e.componentList, (
|
|
5309
|
-
key:
|
|
5310
|
-
},
|
|
5308
|
+
(E(!0), R(Le, null, Ie(e.componentList, (s, l) => (E(), Oe(Eo(s.type), Oo({
|
|
5309
|
+
key: s.id + l
|
|
5310
|
+
}, s), null, 16))), 128))
|
|
5311
5311
|
], 4)) : pe("", !0)
|
|
5312
5312
|
], 4)
|
|
5313
5313
|
]),
|
|
@@ -5346,6 +5346,8 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-0447cd77
|
|
|
5346
5346
|
tabFontWeight: 400,
|
|
5347
5347
|
value: "",
|
|
5348
5348
|
activeKey: 0,
|
|
5349
|
+
autoSwitch: !1,
|
|
5350
|
+
autoSwitchInterval: 1,
|
|
5349
5351
|
contains: [],
|
|
5350
5352
|
tabFlexDirection: "row",
|
|
5351
5353
|
data: [
|
|
@@ -5367,45 +5369,61 @@ const Jr = /* @__PURE__ */ K(Hr, [["render", Zr], ["__scopeId", "data-v-0447cd77
|
|
|
5367
5369
|
...bo
|
|
5368
5370
|
},
|
|
5369
5371
|
setup(e) {
|
|
5370
|
-
var
|
|
5372
|
+
var b;
|
|
5371
5373
|
const n = ie(e), t = I(0);
|
|
5372
|
-
ne(() => e.activeKey, (
|
|
5373
|
-
t.value =
|
|
5374
|
+
ne(() => e.activeKey, (u) => {
|
|
5375
|
+
t.value = u;
|
|
5374
5376
|
}, {
|
|
5375
5377
|
immediate: !0
|
|
5376
5378
|
});
|
|
5377
|
-
const o =
|
|
5378
|
-
|
|
5379
|
-
|
|
5379
|
+
const { pageMode: o } = N(ce, {
|
|
5380
|
+
pageMode: "normal"
|
|
5381
|
+
});
|
|
5382
|
+
let a = null;
|
|
5383
|
+
const i = () => {
|
|
5384
|
+
const u = Array.isArray(k(r)) ? k(r).length - 1 : 0;
|
|
5385
|
+
e.autoSwitch && k(o) !== "design" && u > 0 && (a = setInterval(() => {
|
|
5386
|
+
const h = k(t) + 1;
|
|
5387
|
+
h <= u ? t.value = h : t.value = 0, m();
|
|
5388
|
+
}, e.autoSwitchInterval * 1e3));
|
|
5389
|
+
};
|
|
5390
|
+
Ne(() => {
|
|
5391
|
+
i();
|
|
5392
|
+
}), xt(() => {
|
|
5393
|
+
clearInterval(a);
|
|
5394
|
+
});
|
|
5395
|
+
const r = I([]);
|
|
5396
|
+
ne(() => e.data, (u) => {
|
|
5397
|
+
r.value = u;
|
|
5380
5398
|
}, {
|
|
5381
5399
|
immediate: !0,
|
|
5382
5400
|
deep: !0
|
|
5383
5401
|
});
|
|
5384
|
-
const
|
|
5402
|
+
const s = (u) => t.value === u, l = I(e.value || k(r)[0] && ((b = k(r)[0]) == null ? void 0 : b.value) || ""), d = ue(e), { setGlobalModel: c } = N(de, {
|
|
5385
5403
|
// @ts-ignore
|
|
5386
5404
|
// eslint-disable-next-line no-void
|
|
5387
|
-
setGlobalModel: (
|
|
5405
|
+
setGlobalModel: (u, h) => {
|
|
5388
5406
|
}
|
|
5389
5407
|
});
|
|
5390
|
-
|
|
5391
|
-
value:
|
|
5408
|
+
c(e.id, {
|
|
5409
|
+
value: l,
|
|
5392
5410
|
activeKey: t
|
|
5393
5411
|
});
|
|
5394
|
-
const { emitRefreshPage:
|
|
5412
|
+
const { emitRefreshPage: m } = N(Ze, {
|
|
5395
5413
|
// eslint-disable-next-line no-void
|
|
5396
5414
|
emitRefreshPage: () => {
|
|
5397
5415
|
}
|
|
5398
|
-
}),
|
|
5399
|
-
|
|
5416
|
+
}), g = d("tabChange", (u, h) => {
|
|
5417
|
+
h !== k(t) && (l.value = (u == null ? void 0 : u.value) || "", t.value = h, m());
|
|
5400
5418
|
});
|
|
5401
5419
|
return ge(e, {
|
|
5402
|
-
tabChange:
|
|
5420
|
+
tabChange: g
|
|
5403
5421
|
}), {
|
|
5404
5422
|
style: n,
|
|
5405
5423
|
activeKey: t,
|
|
5406
|
-
isActive:
|
|
5407
|
-
tabChange:
|
|
5408
|
-
myData:
|
|
5424
|
+
isActive: s,
|
|
5425
|
+
tabChange: g,
|
|
5426
|
+
myData: r,
|
|
5409
5427
|
useImagePath: Re
|
|
5410
5428
|
};
|
|
5411
5429
|
}
|
|
@@ -5425,30 +5443,30 @@ function es(e, n, t, o, a, i) {
|
|
|
5425
5443
|
flexDirection: e.tabFlexDirection
|
|
5426
5444
|
})
|
|
5427
5445
|
}, [
|
|
5428
|
-
(E(!0), R(Le, null, Ie(e.myData, (
|
|
5446
|
+
(E(!0), R(Le, null, Ie(e.myData, (r, s) => (E(), R("div", {
|
|
5429
5447
|
class: "tab",
|
|
5430
5448
|
style: G({
|
|
5431
5449
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
5432
|
-
color: e.isActive(
|
|
5433
|
-
backgroundImage: e.isActive(
|
|
5450
|
+
color: e.isActive(s) ? e.activeTabColor : e.tabColor,
|
|
5451
|
+
backgroundImage: e.isActive(s) ? e.useImagePath(e.activeTabBackgroundImage, !0) : e.useImagePath(e.tabBackgroundImage, !0),
|
|
5434
5452
|
marginRight: e.tabFlexDirection === "row" ? e.tabBarGutter : null,
|
|
5435
5453
|
marginBottom: e.tabFlexDirection === "column" ? e.tabBarGutter : null,
|
|
5436
5454
|
fontWeight: e.tabFontWeight
|
|
5437
5455
|
}),
|
|
5438
|
-
key:
|
|
5439
|
-
onClick: Fo((l) => e.tabChange(
|
|
5456
|
+
key: s,
|
|
5457
|
+
onClick: Fo((l) => e.tabChange(r, s), ["prevent", "stop"])
|
|
5440
5458
|
}, [
|
|
5441
5459
|
X("div", {
|
|
5442
5460
|
class: "tab-inner",
|
|
5443
5461
|
style: G({
|
|
5444
|
-
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(
|
|
5462
|
+
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(s) ? e.activeTabColor : "transparent"}` : ""
|
|
5445
5463
|
})
|
|
5446
|
-
}, he(
|
|
5464
|
+
}, he(r.title), 5)
|
|
5447
5465
|
], 12, Xr))), 128))
|
|
5448
5466
|
], 4)
|
|
5449
5467
|
], 4);
|
|
5450
5468
|
}
|
|
5451
|
-
const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-
|
|
5469
|
+
const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-9d6fb0a7"]]), ns = oe(ts), vo = {
|
|
5452
5470
|
...re,
|
|
5453
5471
|
name: "图片",
|
|
5454
5472
|
keyName: "图片",
|
|
@@ -5465,7 +5483,7 @@ const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-3db5a989
|
|
|
5465
5483
|
...po
|
|
5466
5484
|
},
|
|
5467
5485
|
setup(e) {
|
|
5468
|
-
const n = ie(e), t = q(() => Re(e.imgUrl)), { pageMode: o } =
|
|
5486
|
+
const n = ie(e), t = q(() => Re(e.imgUrl)), { pageMode: o } = N(ce, {
|
|
5469
5487
|
pageMode: "normal"
|
|
5470
5488
|
});
|
|
5471
5489
|
return {
|
|
@@ -5474,13 +5492,13 @@ const ts = /* @__PURE__ */ K(Kr, [["render", es], ["__scopeId", "data-v-3db5a989
|
|
|
5474
5492
|
onClick: () => {
|
|
5475
5493
|
if (!e.linkPage && !e.href)
|
|
5476
5494
|
return;
|
|
5477
|
-
const i = e.linkPage || "",
|
|
5478
|
-
let l =
|
|
5495
|
+
const i = e.linkPage || "", r = In(k(o), i), s = e.href;
|
|
5496
|
+
let l = s || r;
|
|
5479
5497
|
l = be(l);
|
|
5480
5498
|
const d = e.target;
|
|
5481
5499
|
d == null || d === "" || (d !== "event" ? window.open(l, "_" + d) : window.parent.postMessage({
|
|
5482
5500
|
type: "openPage",
|
|
5483
|
-
url:
|
|
5501
|
+
url: s
|
|
5484
5502
|
}, "*"));
|
|
5485
5503
|
}
|
|
5486
5504
|
};
|
|
@@ -5492,7 +5510,7 @@ function ls(e, n, t, o, a, i) {
|
|
|
5492
5510
|
key: 0,
|
|
5493
5511
|
style: G(e.style),
|
|
5494
5512
|
src: e.myImgUrl,
|
|
5495
|
-
onClick: n[0] || (n[0] = (...
|
|
5513
|
+
onClick: n[0] || (n[0] = (...r) => e.onClick && e.onClick(...r))
|
|
5496
5514
|
}, null, 12, as)) : (E(), R("div", {
|
|
5497
5515
|
key: 1,
|
|
5498
5516
|
class: "image-placeholder",
|
|
@@ -5514,12 +5532,12 @@ const is = /* @__PURE__ */ K(os, [["render", ls], ["__scopeId", "data-v-9706b851
|
|
|
5514
5532
|
...So
|
|
5515
5533
|
},
|
|
5516
5534
|
setup(e) {
|
|
5517
|
-
const n = ie(e), { contextRequestUrl: t } =
|
|
5535
|
+
const n = ie(e), { contextRequestUrl: t } = N(ce, {
|
|
5518
5536
|
contextRequestUrl: ""
|
|
5519
5537
|
}), o = q(() => {
|
|
5520
5538
|
let a = be(e.link);
|
|
5521
5539
|
if (e.linkType === "erd" && a != null) {
|
|
5522
|
-
let i =
|
|
5540
|
+
let i = k(t);
|
|
5523
5541
|
i[i.length - 1] === "/" ? i += "erdReport" : i += "/erdReport", a = `${Al || i}?_t=0&uid=${a}`;
|
|
5524
5542
|
}
|
|
5525
5543
|
return a;
|
|
@@ -5644,7 +5662,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5644
5662
|
default:
|
|
5645
5663
|
return 55;
|
|
5646
5664
|
}
|
|
5647
|
-
}), a = q(() => e.scrollX), i = q(() => parseFloat(e.height) -
|
|
5665
|
+
}), a = q(() => e.scrollX), i = q(() => parseFloat(e.height) - k(o)), r = I([]), s = I([]), l = I([]), d = I([]), c = I(0), m = I(1), g = q(() => e.paginationPageSize), b = Ro([]), u = (M = []) => {
|
|
5648
5666
|
if (Array.isArray(M) && M.length > 0) {
|
|
5649
5667
|
const D = M.length, V = e.columnsFixedNum;
|
|
5650
5668
|
for (let J = 0; J < D; J++) {
|
|
@@ -5656,20 +5674,20 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5656
5674
|
dataIndex: fe,
|
|
5657
5675
|
title: ye,
|
|
5658
5676
|
tableFilter: me,
|
|
5659
|
-
headerCellAlign:
|
|
5677
|
+
headerCellAlign: qe,
|
|
5660
5678
|
headerCellColor: ot
|
|
5661
5679
|
} = P;
|
|
5662
|
-
me && (
|
|
5680
|
+
me && (b.push(fe), P.filterOptionsInputValue = "", P.filterCheckboxGroupValue = [], P.customFilterDropdown = !0, P.onFilter = (je, ht) => ht[fe].toString().toLowerCase().includes(je.toLowerCase())), P.customHeaderCell = () => ({
|
|
5663
5681
|
style: {
|
|
5664
5682
|
display: "table-cell",
|
|
5665
5683
|
verticalAlign: "middle",
|
|
5666
5684
|
fontSize: e.headerFontSize,
|
|
5667
5685
|
fontWeight: e.headerFontWeight,
|
|
5668
|
-
textAlign:
|
|
5686
|
+
textAlign: qe || "center",
|
|
5669
5687
|
color: ot,
|
|
5670
5688
|
borderBottomColor: e.borderColor
|
|
5671
5689
|
}
|
|
5672
|
-
}), P.customCell = (
|
|
5690
|
+
}), P.customCell = (je, ht) => ({
|
|
5673
5691
|
style: {
|
|
5674
5692
|
textAlign: te,
|
|
5675
5693
|
color: le,
|
|
@@ -5677,20 +5695,20 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5677
5695
|
borderBottomColor: e.borderColor
|
|
5678
5696
|
},
|
|
5679
5697
|
class: {
|
|
5680
|
-
highlight:
|
|
5698
|
+
highlight: k(W) === ht && e.clickHighlight
|
|
5681
5699
|
},
|
|
5682
5700
|
onClick: S("click", () => {
|
|
5683
|
-
const
|
|
5684
|
-
|
|
5701
|
+
const Nt = e.id, Lo = U(Nt);
|
|
5702
|
+
je = {
|
|
5685
5703
|
dataIndex: fe,
|
|
5686
5704
|
title: ye,
|
|
5687
|
-
...
|
|
5688
|
-
}, H(
|
|
5705
|
+
...je
|
|
5706
|
+
}, H(Nt, { ...Lo, RECORD: je });
|
|
5689
5707
|
})
|
|
5690
|
-
}), Array.isArray(P.children) &&
|
|
5708
|
+
}), Array.isArray(P.children) && u(P.children);
|
|
5691
5709
|
}
|
|
5692
5710
|
}
|
|
5693
|
-
},
|
|
5711
|
+
}, h = (M = []) => (e.isUseSeq && M.unshift({
|
|
5694
5712
|
title: "序号",
|
|
5695
5713
|
dataIndex: "SEQ",
|
|
5696
5714
|
align: "center"
|
|
@@ -5698,7 +5716,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5698
5716
|
title: "操作",
|
|
5699
5717
|
dataIndex: "ACTION",
|
|
5700
5718
|
width: e.actionColumnWidth
|
|
5701
|
-
}),
|
|
5719
|
+
}), u(M), M);
|
|
5702
5720
|
ne(() => [
|
|
5703
5721
|
e.columns,
|
|
5704
5722
|
e.isUseSeq,
|
|
@@ -5708,18 +5726,18 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5708
5726
|
e.cellBackgroundColor,
|
|
5709
5727
|
e.borderColor
|
|
5710
5728
|
], () => {
|
|
5711
|
-
|
|
5729
|
+
r.value = h(bt(e.columns));
|
|
5712
5730
|
}, {
|
|
5713
5731
|
immediate: !0,
|
|
5714
5732
|
deep: !0
|
|
5715
5733
|
}), ne(() => [e.data, e.dataType], ([M, D]) => {
|
|
5716
|
-
D === "static" && (
|
|
5734
|
+
D === "static" && (s.value = M);
|
|
5717
5735
|
}, {
|
|
5718
5736
|
immediate: !0
|
|
5719
5737
|
});
|
|
5720
|
-
const
|
|
5738
|
+
const v = I({}), y = (M) => {
|
|
5721
5739
|
if (Array.isArray(M)) {
|
|
5722
|
-
const D = M.length, V =
|
|
5740
|
+
const D = M.length, V = b, J = V.length, P = {};
|
|
5723
5741
|
for (let le = 0; le < D; le++) {
|
|
5724
5742
|
const fe = M[le];
|
|
5725
5743
|
for (let ye = 0; ye < J; ye++) {
|
|
@@ -5727,8 +5745,8 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5727
5745
|
if (P[me])
|
|
5728
5746
|
P[me].add(fe[me]);
|
|
5729
5747
|
else {
|
|
5730
|
-
const
|
|
5731
|
-
|
|
5748
|
+
const qe = /* @__PURE__ */ new Set();
|
|
5749
|
+
qe.add(fe[me]), P[me] = qe;
|
|
5732
5750
|
}
|
|
5733
5751
|
}
|
|
5734
5752
|
}
|
|
@@ -5738,18 +5756,18 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5738
5756
|
const fe = P[le], ye = Array.from(fe);
|
|
5739
5757
|
te[le] = ye.map((me) => ({ label: me, value: me }));
|
|
5740
5758
|
}
|
|
5741
|
-
|
|
5759
|
+
v.value = te;
|
|
5742
5760
|
}
|
|
5743
5761
|
};
|
|
5744
|
-
ne(() => [e.isReverse,
|
|
5745
|
-
const M =
|
|
5746
|
-
if (
|
|
5747
|
-
const { columns: V, dataSource: J } =
|
|
5762
|
+
ne(() => [e.isReverse, r.value, s.value], () => {
|
|
5763
|
+
const M = k(r), D = k(s);
|
|
5764
|
+
if (y(D), e.isReverse) {
|
|
5765
|
+
const { columns: V, dataSource: J } = A(bt(M), bt(D));
|
|
5748
5766
|
l.value = V, d.value = J;
|
|
5749
5767
|
} else
|
|
5750
5768
|
l.value = M, d.value = D;
|
|
5751
5769
|
});
|
|
5752
|
-
const
|
|
5770
|
+
const A = (M, D) => {
|
|
5753
5771
|
const V = M[0], J = [{
|
|
5754
5772
|
title: V.title,
|
|
5755
5773
|
dataIndex: "col0",
|
|
@@ -5783,14 +5801,14 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5783
5801
|
try {
|
|
5784
5802
|
M && (w.value = !0);
|
|
5785
5803
|
let V = {};
|
|
5786
|
-
|
|
5787
|
-
pageNum:
|
|
5788
|
-
pageSize:
|
|
5804
|
+
k(x) && (V.orderCondition = k(x)), e.paginationShow && (V = {
|
|
5805
|
+
pageNum: k(m),
|
|
5806
|
+
pageSize: k(g),
|
|
5789
5807
|
layer: "1",
|
|
5790
5808
|
...V
|
|
5791
5809
|
});
|
|
5792
5810
|
const J = await B(V), { rows: P = [], total: te = 0 } = ((D = J == null ? void 0 : J.data) == null ? void 0 : D.data) || {};
|
|
5793
|
-
c.value = te, Array.isArray(P) && (
|
|
5811
|
+
c.value = te, Array.isArray(P) && (s.value = P);
|
|
5794
5812
|
} catch (V) {
|
|
5795
5813
|
console.error(V);
|
|
5796
5814
|
} finally {
|
|
@@ -5805,18 +5823,18 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5805
5823
|
J != null && le != null && (x.value = J + " " + le, m.value = 1);
|
|
5806
5824
|
}
|
|
5807
5825
|
se(!1);
|
|
5808
|
-
},
|
|
5826
|
+
}, f = q(() => {
|
|
5809
5827
|
const M = e.simple, D = [e.paginationPosition];
|
|
5810
5828
|
return e.paginationShow && {
|
|
5811
5829
|
simple: M,
|
|
5812
5830
|
position: D,
|
|
5813
|
-
total:
|
|
5814
|
-
current:
|
|
5815
|
-
pageSize:
|
|
5831
|
+
total: k(c),
|
|
5832
|
+
current: k(m),
|
|
5833
|
+
pageSize: k(g),
|
|
5816
5834
|
showSizeChanger: !1
|
|
5817
5835
|
};
|
|
5818
5836
|
}), p = (M) => +M == 1 ? "是" : +M == 0 ? "否" : M, T = (M, D) => D == null || D === "" ? M : {
|
|
5819
|
-
money:
|
|
5837
|
+
money: Dt,
|
|
5820
5838
|
percentage: dt,
|
|
5821
5839
|
contrast: dt,
|
|
5822
5840
|
boolean: p
|
|
@@ -5830,9 +5848,9 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5830
5848
|
case V < 0:
|
|
5831
5849
|
return "goDown";
|
|
5832
5850
|
}
|
|
5833
|
-
}, S = ue(e), { pageMode: _ } =
|
|
5851
|
+
}, S = ue(e), { pageMode: _ } = N(ce, {
|
|
5834
5852
|
pageMode: "normal"
|
|
5835
|
-
}), { getGlobalModel: U, setGlobalModel: H } =
|
|
5853
|
+
}), { getGlobalModel: U, setGlobalModel: H } = N(de, {
|
|
5836
5854
|
// @ts-ignore
|
|
5837
5855
|
// eslint-disable-next-line no-void
|
|
5838
5856
|
getGlobalModel: (M) => {
|
|
@@ -5843,12 +5861,12 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5843
5861
|
}
|
|
5844
5862
|
}), O = (M = [], D = []) => {
|
|
5845
5863
|
const V = M.map((J) => ({ title: J, dataIndex: J, key: J }));
|
|
5846
|
-
|
|
5847
|
-
},
|
|
5864
|
+
r.value = h(V), s.value = D;
|
|
5865
|
+
}, $ = Mn(e), z = async () => {
|
|
5848
5866
|
var M, D, V, J;
|
|
5849
5867
|
try {
|
|
5850
5868
|
w.value = !0;
|
|
5851
|
-
const P = await
|
|
5869
|
+
const P = await $();
|
|
5852
5870
|
O((D = (M = P == null ? void 0 : P.data) == null ? void 0 : M.data) == null ? void 0 : D.columns, (J = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : J.rows);
|
|
5853
5871
|
} catch (P) {
|
|
5854
5872
|
console.error(P);
|
|
@@ -5861,7 +5879,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5861
5879
|
H(V, { ...J, RECORD: M }), W.value = D;
|
|
5862
5880
|
})
|
|
5863
5881
|
}), se = (M = !0) => {
|
|
5864
|
-
if (
|
|
5882
|
+
if (k(_) !== "design")
|
|
5865
5883
|
switch (e.dataType) {
|
|
5866
5884
|
case "request":
|
|
5867
5885
|
L(M);
|
|
@@ -5879,7 +5897,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5879
5897
|
refreshData: se
|
|
5880
5898
|
});
|
|
5881
5899
|
const To = q(() => {
|
|
5882
|
-
const M =
|
|
5900
|
+
const M = k(l), D = [];
|
|
5883
5901
|
let V = 0;
|
|
5884
5902
|
for (let P = 0; P < M.length; P++) {
|
|
5885
5903
|
const te = M[P], { isCalcTotal: le } = te;
|
|
@@ -5896,9 +5914,9 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5896
5914
|
}
|
|
5897
5915
|
if (V === 0)
|
|
5898
5916
|
return [];
|
|
5899
|
-
let J =
|
|
5917
|
+
let J = k(d);
|
|
5900
5918
|
if (e.paginationShow) {
|
|
5901
|
-
const P = (
|
|
5919
|
+
const P = (k(m) - 1) * k(g), te = P + k(g);
|
|
5902
5920
|
J = J.slice(P, te);
|
|
5903
5921
|
}
|
|
5904
5922
|
for (let P = 0; P < D.length; P++) {
|
|
@@ -5914,7 +5932,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5914
5932
|
}
|
|
5915
5933
|
}
|
|
5916
5934
|
return D;
|
|
5917
|
-
}), { setRequest: _o } =
|
|
5935
|
+
}), { setRequest: _o } = N(Ce, {
|
|
5918
5936
|
// @ts-ignore
|
|
5919
5937
|
// eslint-disable-next-line no-void
|
|
5920
5938
|
setRequest: ({ id: M, sortNum: D, requestFn: V }) => {
|
|
@@ -5931,7 +5949,7 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5931
5949
|
y: i,
|
|
5932
5950
|
style: t,
|
|
5933
5951
|
customRow: ee,
|
|
5934
|
-
pagination:
|
|
5952
|
+
pagination: f,
|
|
5935
5953
|
formatFn: T,
|
|
5936
5954
|
contrastClass: F,
|
|
5937
5955
|
tableChange: C,
|
|
@@ -5957,8 +5975,8 @@ const us = /* @__PURE__ */ K(ss, [["render", ds], ["__scopeId", "data-v-b0be60e8
|
|
|
5957
5975
|
useFilterOptions: (M) => {
|
|
5958
5976
|
const D = M.dataIndex;
|
|
5959
5977
|
if (typeof D == "string") {
|
|
5960
|
-
let V =
|
|
5961
|
-
const J =
|
|
5978
|
+
let V = k(v)[D];
|
|
5979
|
+
const J = k(M.filterOptionsInputValue).trim();
|
|
5962
5980
|
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(J.toLowerCase()) : !0), V) : [];
|
|
5963
5981
|
}
|
|
5964
5982
|
return [];
|
|
@@ -5979,12 +5997,12 @@ const hs = /* @__PURE__ */ dn(" 搜索 "), ys = /* @__PURE__ */ dn(" 重置 "),
|
|
|
5979
5997
|
class: "action-list"
|
|
5980
5998
|
}, ps = ["href", "target", "onClick"];
|
|
5981
5999
|
function Cs(e, n, t, o, a, i) {
|
|
5982
|
-
const
|
|
6000
|
+
const r = Z("a-input"), s = Z("a-checkbox-group"), l = Z("a-button"), d = Z("a-table-summary-cell"), c = Z("a-table-summary-row"), m = Z("a-table-summary"), g = Z("a-table"), b = Z("skeleton");
|
|
5983
6001
|
return E(), R("div", {
|
|
5984
6002
|
class: "ecan-table",
|
|
5985
6003
|
style: G(e.style)
|
|
5986
6004
|
}, [
|
|
5987
|
-
j(
|
|
6005
|
+
j(b, { loading: e.loading }, {
|
|
5988
6006
|
default: Y(() => [
|
|
5989
6007
|
j(g, {
|
|
5990
6008
|
class: "table",
|
|
@@ -6000,33 +6018,33 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6000
6018
|
pagination: e.pagination,
|
|
6001
6019
|
onChange: e.tableChange
|
|
6002
6020
|
}, {
|
|
6003
|
-
customFilterDropdown: Y(({ column:
|
|
6021
|
+
customFilterDropdown: Y(({ column: u, selectedKeys: h, setSelectedKeys: v, confirm: y, clearFilters: A }) => [
|
|
6004
6022
|
X("div", {
|
|
6005
6023
|
class: "ecan-table-filter",
|
|
6006
6024
|
style: G({
|
|
6007
6025
|
height: e.filterDropdownHeight
|
|
6008
6026
|
})
|
|
6009
6027
|
}, [
|
|
6010
|
-
j(
|
|
6011
|
-
value:
|
|
6012
|
-
"onUpdate:value": (x) =>
|
|
6028
|
+
j(r, {
|
|
6029
|
+
value: u.filterOptionsInputValue,
|
|
6030
|
+
"onUpdate:value": (x) => u.filterOptionsInputValue = x,
|
|
6013
6031
|
placeholder: "请输入关键字",
|
|
6014
6032
|
class: "filter-input",
|
|
6015
6033
|
onChange: e.onSearchFilterOptions
|
|
6016
6034
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
6017
|
-
j(
|
|
6018
|
-
value:
|
|
6019
|
-
"onUpdate:value": (x) =>
|
|
6035
|
+
j(s, {
|
|
6036
|
+
value: u.filterCheckboxGroupValue,
|
|
6037
|
+
"onUpdate:value": (x) => u.filterCheckboxGroupValue = x,
|
|
6020
6038
|
class: "filter-checkbox",
|
|
6021
|
-
options: e.useFilterOptions(
|
|
6022
|
-
onChange: (x) => e.useSetSelectedKeys(
|
|
6039
|
+
options: e.useFilterOptions(u),
|
|
6040
|
+
onChange: (x) => e.useSetSelectedKeys(v, u)
|
|
6023
6041
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6024
6042
|
X("div", null, [
|
|
6025
6043
|
j(l, {
|
|
6026
6044
|
type: "primary",
|
|
6027
6045
|
size: "small",
|
|
6028
6046
|
style: { width: "90px", "margin-right": "8px" },
|
|
6029
|
-
onClick: () =>
|
|
6047
|
+
onClick: () => y()
|
|
6030
6048
|
}, {
|
|
6031
6049
|
default: Y(() => [
|
|
6032
6050
|
hs
|
|
@@ -6036,7 +6054,7 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6036
6054
|
j(l, {
|
|
6037
6055
|
size: "small",
|
|
6038
6056
|
style: { width: "90px" },
|
|
6039
|
-
onClick: (x) => e.onResetFilter(
|
|
6057
|
+
onClick: (x) => e.onResetFilter(A, u)
|
|
6040
6058
|
}, {
|
|
6041
6059
|
default: Y(() => [
|
|
6042
6060
|
ys
|
|
@@ -6046,56 +6064,56 @@ function Cs(e, n, t, o, a, i) {
|
|
|
6046
6064
|
])
|
|
6047
6065
|
], 4)
|
|
6048
6066
|
]),
|
|
6049
|
-
bodyCell: Y(({ column:
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
(E(!0), R(Le, null, Ie(e.actionList, (
|
|
6067
|
+
bodyCell: Y(({ column: u, index: h, text: v, record: y }) => [
|
|
6068
|
+
u.dataIndex === "SEQ" ? (E(), R("span", bs, he(h + 1), 1)) : pe("", !0),
|
|
6069
|
+
u.dataIndex === "ACTION" ? (E(), R("div", vs, [
|
|
6070
|
+
(E(!0), R(Le, null, Ie(e.actionList, (A, x) => (E(), R("div", {
|
|
6053
6071
|
class: "action",
|
|
6054
6072
|
key: x
|
|
6055
6073
|
}, [
|
|
6056
6074
|
X("a", {
|
|
6057
|
-
href: e.handleHref(
|
|
6058
|
-
target: e.handleHrefTarget(
|
|
6075
|
+
href: e.handleHref(A.href, y),
|
|
6076
|
+
target: e.handleHrefTarget(A.target),
|
|
6059
6077
|
style: G({
|
|
6060
|
-
color:
|
|
6078
|
+
color: A.color,
|
|
6061
6079
|
fontSize: e.fontSize,
|
|
6062
6080
|
fontWeight: e.fontWeight
|
|
6063
6081
|
}),
|
|
6064
|
-
onClick: (B) => e.onTouchHrefEvent(
|
|
6065
|
-
}, he(
|
|
6082
|
+
onClick: (B) => e.onTouchHrefEvent(A.target, e.handleHref(A.href, y))
|
|
6083
|
+
}, he(A.title), 13, ps)
|
|
6066
6084
|
]))), 128))
|
|
6067
6085
|
])) : (E(), R("div", {
|
|
6068
6086
|
key: 2,
|
|
6069
|
-
class:
|
|
6087
|
+
class: Tt([e.contrastClass(v, u.format)]),
|
|
6070
6088
|
style: G({
|
|
6071
6089
|
fontSize: e.fontSize,
|
|
6072
6090
|
fontWeight: e.fontWeight
|
|
6073
6091
|
})
|
|
6074
|
-
}, he(
|
|
6092
|
+
}, he(u.format != null ? e.formatFn(v, u.format) : v), 7))
|
|
6075
6093
|
]),
|
|
6076
6094
|
summary: Y(() => [
|
|
6077
6095
|
e.summaryList.length > 0 ? (E(), Oe(m, { key: 0 }, {
|
|
6078
6096
|
default: Y(() => [
|
|
6079
6097
|
j(c, null, {
|
|
6080
6098
|
default: Y(() => [
|
|
6081
|
-
(E(!0), R(Le, null, Ie(e.summaryList, (
|
|
6082
|
-
key:
|
|
6083
|
-
index:
|
|
6099
|
+
(E(!0), R(Le, null, Ie(e.summaryList, (u, h) => (E(), Oe(d, {
|
|
6100
|
+
key: h,
|
|
6101
|
+
index: h,
|
|
6084
6102
|
style: G({
|
|
6085
6103
|
backgroundColor: e.cellBackgroundColor,
|
|
6086
|
-
textAlign:
|
|
6087
|
-
color:
|
|
6104
|
+
textAlign: u.cellAlign || "center",
|
|
6105
|
+
color: u.cellColor,
|
|
6088
6106
|
borderBottomColor: e.borderColor
|
|
6089
6107
|
})
|
|
6090
6108
|
}, {
|
|
6091
6109
|
default: Y(() => [
|
|
6092
6110
|
X("div", {
|
|
6093
|
-
class:
|
|
6111
|
+
class: Tt([e.contrastClass(u.total, u.format)]),
|
|
6094
6112
|
style: G({
|
|
6095
6113
|
fontSize: e.fontSize,
|
|
6096
6114
|
fontWeight: e.fontWeight
|
|
6097
6115
|
})
|
|
6098
|
-
}, he((
|
|
6116
|
+
}, he((u.format != null || u.format !== "") && e.formatFn(u.total, u.format)), 7)
|
|
6099
6117
|
]),
|
|
6100
6118
|
_: 2
|
|
6101
6119
|
}, 1032, ["index", "style"]))), 128))
|
|
@@ -6155,12 +6173,12 @@ const Ss = /* @__PURE__ */ K(gs, [["render", Cs], ["__scopeId", "data-v-c77bd76b
|
|
|
6155
6173
|
tooltipTextStyleColor: "",
|
|
6156
6174
|
tooltipFormatter: "{b}"
|
|
6157
6175
|
}, xo = ae(Ao);
|
|
6158
|
-
|
|
6159
|
-
|
|
6176
|
+
Pe([
|
|
6177
|
+
Be,
|
|
6160
6178
|
aa,
|
|
6161
6179
|
bn,
|
|
6162
6180
|
la,
|
|
6163
|
-
|
|
6181
|
+
Et,
|
|
6164
6182
|
ia
|
|
6165
6183
|
]);
|
|
6166
6184
|
const ks = Q({
|
|
@@ -6173,12 +6191,12 @@ const ks = Q({
|
|
|
6173
6191
|
},
|
|
6174
6192
|
setup(e) {
|
|
6175
6193
|
const n = ie(e, ["backgroundImage"]), t = I(), o = q(() => Re(e.geoBackgroundImage)), a = q(() => Re(e.backgroundImage)), i = q(() => e.geoBackgroundImage ? {
|
|
6176
|
-
image:
|
|
6194
|
+
image: k(t),
|
|
6177
6195
|
repeat: e.geoBackgroundImageRepeat
|
|
6178
|
-
} : e.geoItemStyleAreaColor),
|
|
6196
|
+
} : e.geoItemStyleAreaColor), r = q(() => {
|
|
6179
6197
|
const c = e.symbolImage;
|
|
6180
6198
|
return e.symbolImage ? "image://" + Re(c) : "circle";
|
|
6181
|
-
}),
|
|
6199
|
+
}), s = q(() => {
|
|
6182
6200
|
const c = e.geoCenter;
|
|
6183
6201
|
let m;
|
|
6184
6202
|
return typeof c == "string" && c !== "" && (m = c.split(",")), {
|
|
@@ -6193,7 +6211,7 @@ const ks = Q({
|
|
|
6193
6211
|
style: {
|
|
6194
6212
|
width: parseFloat(e.width),
|
|
6195
6213
|
height: parseFloat(e.height),
|
|
6196
|
-
image:
|
|
6214
|
+
image: k(a)
|
|
6197
6215
|
},
|
|
6198
6216
|
top: "center"
|
|
6199
6217
|
}
|
|
@@ -6214,7 +6232,7 @@ const ks = Q({
|
|
|
6214
6232
|
},
|
|
6215
6233
|
itemStyle: {
|
|
6216
6234
|
// 地图上板块属性
|
|
6217
|
-
areaColor:
|
|
6235
|
+
areaColor: k(i),
|
|
6218
6236
|
borderColor: e.geoItemStyleBorderColor,
|
|
6219
6237
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6220
6238
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6241,7 +6259,7 @@ const ks = Q({
|
|
|
6241
6259
|
itemStyle: {
|
|
6242
6260
|
color: e.itemStyleColor
|
|
6243
6261
|
},
|
|
6244
|
-
symbol:
|
|
6262
|
+
symbol: k(r),
|
|
6245
6263
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6246
6264
|
label: {
|
|
6247
6265
|
show: e.labelShow,
|
|
@@ -6275,7 +6293,7 @@ const ks = Q({
|
|
|
6275
6293
|
immediate: !0,
|
|
6276
6294
|
deep: !0
|
|
6277
6295
|
}), {
|
|
6278
|
-
option:
|
|
6296
|
+
option: s,
|
|
6279
6297
|
style: n,
|
|
6280
6298
|
isLoadedData: l,
|
|
6281
6299
|
geoBackgroundImageRef: t,
|
|
@@ -6285,12 +6303,12 @@ const ks = Q({
|
|
|
6285
6303
|
});
|
|
6286
6304
|
const As = ["src"];
|
|
6287
6305
|
function xs(e, n, t, o, a, i) {
|
|
6288
|
-
const
|
|
6306
|
+
const r = Z("echarts");
|
|
6289
6307
|
return E(), R("div", {
|
|
6290
6308
|
class: "ecan-map",
|
|
6291
6309
|
style: G(e.style)
|
|
6292
6310
|
}, [
|
|
6293
|
-
e.isLoadedData ? (E(), Oe(
|
|
6311
|
+
e.isLoadedData ? (E(), Oe(r, {
|
|
6294
6312
|
key: 0,
|
|
6295
6313
|
option: e.option,
|
|
6296
6314
|
"update-options": { notMerge: !0 },
|