@ecan-bi/datav 1.1.92 → 1.1.94
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 +710 -710
- 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 +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as K, inject as j, computed as q, unref as w, watchEffect as yo, defineComponent as te, shallowRef as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.94 */
|
|
2
|
+
import { watch as K, inject as j, computed as q, unref as w, watchEffect as yo, defineComponent as te, shallowRef as St, toRefs as Zn, onMounted as Ue, onUnmounted as yt, h as mt, nextTick as bt, createVNode as W, resolveComponent as Z, openBlock as O, createElementBlock as F, createBlock as ze, renderSlot as tt, withCtx as X, ref as I, normalizeStyle as G, createCommentVNode as be, provide as Re, onBeforeUnmount as Mt, toDisplayString as ye, Fragment as Me, renderList as Oe, createElementVNode as ee, normalizeClass as Et, pushScopeId as bo, popScopeId as vo, resolveDynamicComponent as Jn, mergeProps as Yn, withModifiers as po, reactive as Qn, createTextVNode as Ft, withDirectives as Kn, vShow as Xn } from "vue";
|
|
3
3
|
import { throttle as ea, init as ta, use as je, registerMap as oa } from "echarts/core";
|
|
4
4
|
import { addListener as na, removeListener as aa } from "resize-detector";
|
|
5
5
|
import { Spin as la, Skeleton as ia, message as Be, Progress as ra, Input as Co, DatePicker as sa, RangePicker as ca, Button as So, CheckboxGroup as wo, Select as da, TreeSelect as ua, Modal as We, Table as fa, TableSummary as ma, TableSummaryRow as ga, TableSummaryCell as ha } from "ant-design-vue";
|
|
6
6
|
import "ant-design-vue/es/spin/style";
|
|
7
7
|
import "ant-design-vue/es/skeleton/style";
|
|
8
|
-
import { without as ya, pick as xo, debounce as Rt, cloneDeep as
|
|
8
|
+
import { without as ya, pick as xo, debounce as Rt, cloneDeep as wt } from "lodash-es";
|
|
9
9
|
import we from "dayjs";
|
|
10
10
|
import ko from "axios";
|
|
11
11
|
import ba from "mitt";
|
|
@@ -109,67 +109,67 @@ const Fa = "x-vue-echarts", Ra = "ecTheme", $a = "ecInitOptions", Na = "ecUpdate
|
|
|
109
109
|
inheritAttrs: !1,
|
|
110
110
|
// @ts-expect-error listeners for Vue 2 compatibility
|
|
111
111
|
setup(e, { attrs: o, listeners: t }) {
|
|
112
|
-
const n =
|
|
112
|
+
const n = St(), a = St(), l = St(), i = j(Ra, null), r = j(
|
|
113
113
|
$a,
|
|
114
114
|
null
|
|
115
115
|
), c = j(
|
|
116
116
|
Na,
|
|
117
117
|
null
|
|
118
|
-
), { autoresize: f, manualUpdate:
|
|
118
|
+
), { autoresize: f, manualUpdate: p, loading: m, loadingOptions: x } = Zn(e), u = q(
|
|
119
119
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
120
120
|
), s = q(() => e.theme || w(i) || {}), d = q(
|
|
121
121
|
() => e.initOptions || w(r) || {}
|
|
122
|
-
),
|
|
122
|
+
), S = q(
|
|
123
123
|
() => e.updateOptions || w(c) || {}
|
|
124
124
|
), y = q(() => za(o));
|
|
125
|
-
function T(
|
|
125
|
+
function T(k) {
|
|
126
126
|
if (a.value || !n.value)
|
|
127
127
|
return;
|
|
128
|
-
const
|
|
128
|
+
const A = a.value = ta(
|
|
129
129
|
n.value,
|
|
130
130
|
s.value,
|
|
131
131
|
d.value
|
|
132
132
|
);
|
|
133
|
-
e.group && (
|
|
133
|
+
e.group && (A.group = e.group);
|
|
134
134
|
let L = t;
|
|
135
|
-
L || (L = {}, Object.keys(o).filter((
|
|
136
|
-
const
|
|
137
|
-
L[
|
|
138
|
-
})), Object.keys(L).forEach((
|
|
139
|
-
const
|
|
140
|
-
|
|
135
|
+
L || (L = {}, Object.keys(o).filter((b) => b.indexOf("on") === 0 && b.length > 2).forEach((b) => {
|
|
136
|
+
const v = b.charAt(2).toLowerCase() + b.slice(3);
|
|
137
|
+
L[v] = o[b];
|
|
138
|
+
})), Object.keys(L).forEach((b) => {
|
|
139
|
+
const v = L[b];
|
|
140
|
+
v && (b.indexOf("zr:") === 0 ? A.getZr().on(b.slice(3).toLowerCase(), v) : A.on(b.toLowerCase(), v));
|
|
141
141
|
});
|
|
142
|
-
function
|
|
143
|
-
if (
|
|
142
|
+
function C() {
|
|
143
|
+
if (A && !A.isDisposed())
|
|
144
144
|
try {
|
|
145
|
-
|
|
146
|
-
} catch (
|
|
147
|
-
if (
|
|
145
|
+
A.resize();
|
|
146
|
+
} catch (b) {
|
|
147
|
+
if (b.message === "Cannot read property 'get' of undefined")
|
|
148
148
|
return;
|
|
149
|
-
throw
|
|
149
|
+
throw b;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
function h() {
|
|
153
|
-
|
|
153
|
+
A.setOption(k || u.value, S.value);
|
|
154
154
|
}
|
|
155
|
-
f.value ?
|
|
156
|
-
|
|
155
|
+
f.value ? bt(() => {
|
|
156
|
+
C(), h();
|
|
157
157
|
}) : h();
|
|
158
158
|
}
|
|
159
|
-
function M(
|
|
160
|
-
e.manualUpdate && (l.value =
|
|
159
|
+
function M(k, A) {
|
|
160
|
+
e.manualUpdate && (l.value = k), a.value ? a.value.setOption(k, A || {}) : T(k);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function _() {
|
|
163
163
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
164
164
|
}
|
|
165
|
-
let
|
|
165
|
+
let R = null;
|
|
166
166
|
K(
|
|
167
|
-
|
|
168
|
-
(
|
|
169
|
-
typeof
|
|
167
|
+
p,
|
|
168
|
+
(k) => {
|
|
169
|
+
typeof R == "function" && (R(), R = null), k || (R = K(
|
|
170
170
|
() => e.option,
|
|
171
|
-
(
|
|
172
|
-
|
|
171
|
+
(A) => {
|
|
172
|
+
A && (a.value ? a.value.setOption(A, S.value) : T());
|
|
173
173
|
},
|
|
174
174
|
{ deep: !0 }
|
|
175
175
|
));
|
|
@@ -180,7 +180,7 @@ const Fa = "x-vue-echarts", Ra = "ecTheme", $a = "ecInitOptions", Na = "ecUpdate
|
|
|
180
180
|
), K(
|
|
181
181
|
[s, d],
|
|
182
182
|
() => {
|
|
183
|
-
|
|
183
|
+
_(), T();
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
deep: !0
|
|
@@ -191,7 +191,7 @@ const Fa = "x-vue-echarts", Ra = "ecTheme", $a = "ecInitOptions", Na = "ecUpdate
|
|
|
191
191
|
const g = _a(a, T);
|
|
192
192
|
return Ma(a, m, x), Ta(a, f, n), Ue(() => {
|
|
193
193
|
e.option && T();
|
|
194
|
-
}),
|
|
194
|
+
}), yt(_), {
|
|
195
195
|
chart: a,
|
|
196
196
|
root: n,
|
|
197
197
|
setOption: M,
|
|
@@ -221,7 +221,7 @@ function Ua(e) {
|
|
|
221
221
|
function ct(e) {
|
|
222
222
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function xt(e) {
|
|
225
225
|
return e.length === 1 ? "0" + e : String(e);
|
|
226
226
|
}
|
|
227
227
|
function Ga(e, o, t) {
|
|
@@ -231,7 +231,7 @@ function Ga(e, o, t) {
|
|
|
231
231
|
b: xe(t, 255) * 255
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function kt(e, o, t) {
|
|
235
235
|
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (o - e) * (6 * t) : t < 1 / 2 ? o : t < 2 / 3 ? e + (o - e) * (2 / 3 - t) * 6 : e;
|
|
236
236
|
}
|
|
237
237
|
function qa(e, o, t) {
|
|
@@ -240,7 +240,7 @@ function qa(e, o, t) {
|
|
|
240
240
|
a = t, l = t, n = t;
|
|
241
241
|
else {
|
|
242
242
|
var i = t < 0.5 ? t * (1 + o) : t + o - t * o, r = 2 * t - i;
|
|
243
|
-
n =
|
|
243
|
+
n = kt(r, i, e + 1 / 3), a = kt(r, i, e), l = kt(r, i, e - 1 / 3);
|
|
244
244
|
}
|
|
245
245
|
return { r: n * 255, g: a * 255, b: l * 255 };
|
|
246
246
|
}
|
|
@@ -267,14 +267,14 @@ function ja(e, o, t) {
|
|
|
267
267
|
}
|
|
268
268
|
function Wa(e, o, t) {
|
|
269
269
|
e = xe(e, 360) * 6, o = xe(o, 100), t = xe(t, 100);
|
|
270
|
-
var n = Math.floor(e), a = e - n, l = t * (1 - o), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), c = n % 6, f = [t, i, l, l, r, t][c],
|
|
271
|
-
return { r: f * 255, g:
|
|
270
|
+
var n = Math.floor(e), a = e - n, l = t * (1 - o), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), c = n % 6, f = [t, i, l, l, r, t][c], p = [r, t, t, i, l, l][c], m = [l, l, r, t, t, i][c];
|
|
271
|
+
return { r: f * 255, g: p * 255, b: m * 255 };
|
|
272
272
|
}
|
|
273
273
|
function Va(e, o, t, n) {
|
|
274
274
|
var a = [
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
xt(Math.round(e).toString(16)),
|
|
276
|
+
xt(Math.round(o).toString(16)),
|
|
277
|
+
xt(Math.round(t).toString(16))
|
|
278
278
|
];
|
|
279
279
|
return n && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
|
|
280
280
|
}
|
|
@@ -445,14 +445,14 @@ function Ye(e) {
|
|
|
445
445
|
a: t
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
var Ha = "[-\\+]?\\d+%?", Za = "[-\\+]?\\d*\\.\\d+%?", De = "(?:".concat(Za, ")|(?:").concat(Ha, ")"),
|
|
448
|
+
var Ha = "[-\\+]?\\d+%?", Za = "[-\\+]?\\d*\\.\\d+%?", De = "(?:".concat(Za, ")|(?:").concat(Ha, ")"), At = "[\\s|\\(]+(".concat(De, ")[,|\\s]+(").concat(De, ")[,|\\s]+(").concat(De, ")\\s*\\)?"), _t = "[\\s|\\(]+(".concat(De, ")[,|\\s]+(").concat(De, ")[,|\\s]+(").concat(De, ")[,|\\s]+(").concat(De, ")\\s*\\)?"), _e = {
|
|
449
449
|
CSS_UNIT: new RegExp(De),
|
|
450
|
-
rgb: new RegExp("rgb" +
|
|
451
|
-
rgba: new RegExp("rgba" +
|
|
452
|
-
hsl: new RegExp("hsl" +
|
|
453
|
-
hsla: new RegExp("hsla" +
|
|
454
|
-
hsv: new RegExp("hsv" +
|
|
455
|
-
hsva: new RegExp("hsva" +
|
|
450
|
+
rgb: new RegExp("rgb" + At),
|
|
451
|
+
rgba: new RegExp("rgba" + _t),
|
|
452
|
+
hsl: new RegExp("hsl" + At),
|
|
453
|
+
hsla: new RegExp("hsla" + _t),
|
|
454
|
+
hsv: new RegExp("hsv" + At),
|
|
455
|
+
hsva: new RegExp("hsva" + _t),
|
|
456
456
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
457
457
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
458
458
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
@@ -559,7 +559,7 @@ function Kt(e, o, t) {
|
|
|
559
559
|
var n;
|
|
560
560
|
return t ? n = e.v + Qa * o : n = e.v - Ka * o, n > 1 && (n = 1), Number(n.toFixed(2));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Ot(e) {
|
|
563
563
|
for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = Ye(e), a = Mo; a > 0; a -= 1) {
|
|
564
564
|
var l = Jt(n), i = ut(Ye({
|
|
565
565
|
h: Yt(l, a, !0),
|
|
@@ -577,12 +577,12 @@ function Et(e) {
|
|
|
577
577
|
}));
|
|
578
578
|
t.push(f);
|
|
579
579
|
}
|
|
580
|
-
return o.theme === "dark" ? Xa.map(function(
|
|
581
|
-
var m =
|
|
580
|
+
return o.theme === "dark" ? Xa.map(function(p) {
|
|
581
|
+
var m = p.index, x = p.opacity, u = ut(el(Ye(o.backgroundColor || "#141414"), Ye(t[m]), x * 100));
|
|
582
582
|
return u;
|
|
583
583
|
}) : t;
|
|
584
584
|
}
|
|
585
|
-
var
|
|
585
|
+
var Tt = {
|
|
586
586
|
red: "#F5222D",
|
|
587
587
|
volcano: "#FA541C",
|
|
588
588
|
orange: "#FA8C16",
|
|
@@ -596,12 +596,12 @@ var _t = {
|
|
|
596
596
|
purple: "#722ED1",
|
|
597
597
|
magenta: "#EB2F96",
|
|
598
598
|
grey: "#666666"
|
|
599
|
-
},
|
|
600
|
-
Object.keys(
|
|
601
|
-
|
|
599
|
+
}, Lt = {}, It = {};
|
|
600
|
+
Object.keys(Tt).forEach(function(e) {
|
|
601
|
+
Lt[e] = Ot(Tt[e]), Lt[e].primary = Lt[e][5], It[e] = Ot(Tt[e], {
|
|
602
602
|
theme: "dark",
|
|
603
603
|
backgroundColor: "#141414"
|
|
604
|
-
}),
|
|
604
|
+
}), It[e].primary = It[e][5];
|
|
605
605
|
});
|
|
606
606
|
var Xt = [], Qe = [], tl = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
607
607
|
function ol() {
|
|
@@ -639,19 +639,19 @@ function il(e, o) {
|
|
|
639
639
|
function to(e) {
|
|
640
640
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Dt(e, o, t) {
|
|
643
643
|
return t ? mt(e.tag, eo({
|
|
644
644
|
key: o
|
|
645
645
|
}, t, e.attrs), (e.children || []).map(function(n, a) {
|
|
646
|
-
return
|
|
646
|
+
return Dt(n, "".concat(o, "-").concat(e.tag, "-").concat(a));
|
|
647
647
|
})) : mt(e.tag, eo({
|
|
648
648
|
key: o
|
|
649
649
|
}, e.attrs), (e.children || []).map(function(n, a) {
|
|
650
|
-
return
|
|
650
|
+
return Dt(n, "".concat(o, "-").concat(e.tag, "-").concat(a));
|
|
651
651
|
}));
|
|
652
652
|
}
|
|
653
653
|
function Oo(e) {
|
|
654
|
-
return
|
|
654
|
+
return Ot(e)[0];
|
|
655
655
|
}
|
|
656
656
|
function Do(e) {
|
|
657
657
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
@@ -712,7 +712,7 @@ var rl = `
|
|
|
712
712
|
}
|
|
713
713
|
`, oo = !1, sl = function() {
|
|
714
714
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : rl;
|
|
715
|
-
|
|
715
|
+
bt(function() {
|
|
716
716
|
oo || (typeof window < "u" && window.document && window.document.documentElement && nl(o, {
|
|
717
717
|
prepend: !0
|
|
718
718
|
}), oo = !0);
|
|
@@ -773,7 +773,7 @@ var He = function(o, t) {
|
|
|
773
773
|
var f = a;
|
|
774
774
|
return f && typeof f.icon == "function" && (f = ft({}, f, {
|
|
775
775
|
icon: f.icon(c.primaryColor, c.secondaryColor)
|
|
776
|
-
})),
|
|
776
|
+
})), Dt(f.icon, "svg-".concat(f.name), ft({}, r, {
|
|
777
777
|
"data-icon": f.name,
|
|
778
778
|
width: "1em",
|
|
779
779
|
height: "1em",
|
|
@@ -906,12 +906,12 @@ function lo(e) {
|
|
|
906
906
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
907
907
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
908
908
|
}))), n.forEach(function(a) {
|
|
909
|
-
|
|
909
|
+
zt(e, a, t[a]);
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
912
|
return e;
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function zt(e, o, t) {
|
|
915
915
|
return o in e ? Object.defineProperty(e, o, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = t, e;
|
|
916
916
|
}
|
|
917
917
|
function Tl(e, o) {
|
|
@@ -935,14 +935,14 @@ function Ll(e, o) {
|
|
|
935
935
|
}
|
|
936
936
|
zo("#1890ff");
|
|
937
937
|
var Ze = function(o, t) {
|
|
938
|
-
var n, a = lo({}, o, t.attrs), l = a.class, i = a.icon, r = a.spin, c = a.rotate, f = a.tabindex,
|
|
938
|
+
var n, a = lo({}, o, t.attrs), l = a.class, i = a.icon, r = a.spin, c = a.rotate, f = a.tabindex, p = a.twoToneColor, m = a.onClick, x = Tl(a, Sl), u = (n = {
|
|
939
939
|
anticon: !0
|
|
940
|
-
},
|
|
940
|
+
}, zt(n, "anticon-".concat(i.name), !!i.name), zt(n, l, l), n), s = r === "" || r || i.name === "loading" ? "anticon-spin" : "", d = f;
|
|
941
941
|
d === void 0 && m && (d = -1, x.tabindex = d);
|
|
942
|
-
var
|
|
942
|
+
var S = c ? {
|
|
943
943
|
msTransform: "rotate(".concat(c, "deg)"),
|
|
944
944
|
transform: "rotate(".concat(c, "deg)")
|
|
945
|
-
} : void 0, y = Do(
|
|
945
|
+
} : void 0, y = Do(p), T = wl(y, 2), M = T[0], _ = T[1];
|
|
946
946
|
return W("span", lo({
|
|
947
947
|
role: "img",
|
|
948
948
|
"aria-label": i.name
|
|
@@ -953,8 +953,8 @@ var Ze = function(o, t) {
|
|
|
953
953
|
class: s,
|
|
954
954
|
icon: i,
|
|
955
955
|
primaryColor: M,
|
|
956
|
-
secondaryColor:
|
|
957
|
-
style:
|
|
956
|
+
secondaryColor: _,
|
|
957
|
+
style: S
|
|
958
958
|
}, null)]);
|
|
959
959
|
};
|
|
960
960
|
Ze.props = {
|
|
@@ -1047,7 +1047,7 @@ const oe = (e, o) => {
|
|
|
1047
1047
|
}, Nl = { class: "spin-wrapper" };
|
|
1048
1048
|
function Pl(e, o, t, n, a, l) {
|
|
1049
1049
|
const i = Z("a-spin");
|
|
1050
|
-
return O(),
|
|
1050
|
+
return O(), F("div", Nl, [
|
|
1051
1051
|
e.spinning ? (O(), ze(i, {
|
|
1052
1052
|
key: 0,
|
|
1053
1053
|
class: "spin",
|
|
@@ -1081,7 +1081,7 @@ function Ul(e, o, t, n, a, l) {
|
|
|
1081
1081
|
_: 3
|
|
1082
1082
|
}, 8, ["loading"]);
|
|
1083
1083
|
}
|
|
1084
|
-
const
|
|
1084
|
+
const vt = /* @__PURE__ */ oe(Bl, [["render", Ul]]);
|
|
1085
1085
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1086
1086
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1087
1087
|
const ne = (e, o) => {
|
|
@@ -1210,8 +1210,8 @@ const ql = ((ho = window == null ? void 0 : window.config) == null ? void 0 : ho
|
|
|
1210
1210
|
let { name: t = "name", value: n = "value", type: a = "type" } = o || {};
|
|
1211
1211
|
t = t == null ? void 0 : t.trim(), n = n == null ? void 0 : n.trim(), a = a == null ? void 0 : a.trim();
|
|
1212
1212
|
const l = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), r = e.length;
|
|
1213
|
-
for (let
|
|
1214
|
-
const m = e[
|
|
1213
|
+
for (let p = 0; p < r; p++) {
|
|
1214
|
+
const m = e[p], x = m[t] || "", u = m[n] || "", s = m[a] || "";
|
|
1215
1215
|
if (l.add(x), i.has(s)) {
|
|
1216
1216
|
const d = i.get(s);
|
|
1217
1217
|
d.push({ name: x, value: u, ...m }), i.set(s, d);
|
|
@@ -1219,9 +1219,9 @@ const ql = ((ho = window == null ? void 0 : window.config) == null ? void 0 : ho
|
|
|
1219
1219
|
i.set(s, [{ name: x, value: u, ...m }]);
|
|
1220
1220
|
}
|
|
1221
1221
|
const c = Array.from(l), f = [];
|
|
1222
|
-
for (const [
|
|
1222
|
+
for (const [p, m] of i)
|
|
1223
1223
|
f.push({
|
|
1224
|
-
name:
|
|
1224
|
+
name: p,
|
|
1225
1225
|
data: m
|
|
1226
1226
|
});
|
|
1227
1227
|
return {
|
|
@@ -1271,7 +1271,7 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1271
1271
|
return e;
|
|
1272
1272
|
const n = parseFloat(t);
|
|
1273
1273
|
return isNaN(n) ? e : `${(n * 100).toFixed(o)}%`;
|
|
1274
|
-
},
|
|
1274
|
+
}, ht = (e, o) => typeof e == "string" && typeof o == "string" ? e.toLocaleLowerCase().includes(o.toLocaleLowerCase()) : !1, pt = (e, o) => {
|
|
1275
1275
|
const t = {
|
|
1276
1276
|
dayjs: we,
|
|
1277
1277
|
...o
|
|
@@ -1295,13 +1295,13 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1295
1295
|
return e;
|
|
1296
1296
|
for (let c = 0; c < r.length; c++) {
|
|
1297
1297
|
const f = r[c];
|
|
1298
|
-
let
|
|
1299
|
-
const m = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, x =
|
|
1298
|
+
let p = f.slice(1, -1).trim();
|
|
1299
|
+
const m = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, x = p.match(m);
|
|
1300
1300
|
for (let u = 0; u < x.length; u++) {
|
|
1301
1301
|
const s = x[u], d = i[s];
|
|
1302
|
-
d != null && (
|
|
1302
|
+
d != null && (p = p.replace(s, d));
|
|
1303
1303
|
}
|
|
1304
|
-
(/\(.*\)/g.test(
|
|
1304
|
+
(/\(.*\)/g.test(p) || /[+/\\*]/g.test(p)) && (p = pt(p, t)), e = e.replace(f, p);
|
|
1305
1305
|
}
|
|
1306
1306
|
return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
1307
1307
|
}, ke = (e, o = () => {
|
|
@@ -1316,59 +1316,59 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1316
1316
|
} = e, { contextRequestUrl: c, touchEventId: f } = j(ve, {
|
|
1317
1317
|
contextRequestUrl: "",
|
|
1318
1318
|
touchEventId: ""
|
|
1319
|
-
}), { getGlobalModel:
|
|
1319
|
+
}), { getGlobalModel: p } = j(ge, {
|
|
1320
1320
|
getGlobalModel: (s) => {
|
|
1321
1321
|
}
|
|
1322
1322
|
}), m = de(t), x = async (s = {}) => {
|
|
1323
1323
|
if (!m || !n || !a)
|
|
1324
1324
|
return;
|
|
1325
1325
|
let d = {};
|
|
1326
|
-
l.forEach((
|
|
1327
|
-
const { key:
|
|
1326
|
+
l.forEach((_) => {
|
|
1327
|
+
const { key: R, value: g } = _;
|
|
1328
1328
|
if (typeof g == "object" && g != null && g.id) {
|
|
1329
|
-
let
|
|
1330
|
-
const { id:
|
|
1331
|
-
|
|
1332
|
-
const
|
|
1333
|
-
let
|
|
1334
|
-
if (["date", "range"].some((
|
|
1335
|
-
const { value:
|
|
1336
|
-
if (
|
|
1329
|
+
let k = {};
|
|
1330
|
+
const { id: A, prop: L, propKey: C, operate: h } = g;
|
|
1331
|
+
A === "THIS" ? k = p(w(f)) || {} : k = p(A) || {};
|
|
1332
|
+
const b = w(k[L]);
|
|
1333
|
+
let v = null;
|
|
1334
|
+
if (["date", "range"].some((D) => ht(k == null ? void 0 : k.type, D))) {
|
|
1335
|
+
const { value: D, type: $, mode: N } = h || {};
|
|
1336
|
+
if (D && $ && N)
|
|
1337
1337
|
switch ($) {
|
|
1338
1338
|
case "add":
|
|
1339
|
-
|
|
1339
|
+
v = w(b).add(D, N);
|
|
1340
1340
|
break;
|
|
1341
1341
|
case "minus":
|
|
1342
|
-
|
|
1342
|
+
v = w(b).subtract(D, N);
|
|
1343
1343
|
break;
|
|
1344
1344
|
}
|
|
1345
|
-
|
|
1345
|
+
v == null && (v = w(b)), v = (v == null ? void 0 : v.format((C == null ? void 0 : C.trim()) || k.format)) || "";
|
|
1346
1346
|
} else
|
|
1347
|
-
Object.prototype.toString.call(
|
|
1348
|
-
d[
|
|
1347
|
+
Object.prototype.toString.call(b) === "[object Object]" ? C == null ? v = b : v = b[C] : ht(k == null ? void 0 : k.type, "select") && w(b) && C && Array.isArray(w(b)) ? v = w(b).map((D) => Object.prototype.hasOwnProperty.call(D, C) ? D[C] : D) : v = b;
|
|
1348
|
+
d[R] = v;
|
|
1349
1349
|
} else
|
|
1350
|
-
typeof g == "string" && (d[
|
|
1350
|
+
typeof g == "string" && (d[R] = de(g));
|
|
1351
1351
|
}), d = { ...window.config.requestParams, ...s, ...d };
|
|
1352
|
-
let
|
|
1352
|
+
let S = "";
|
|
1353
1353
|
const y = Object.keys(d), T = y.length - 1, M = y.length;
|
|
1354
|
-
y.forEach((
|
|
1355
|
-
let g = d[
|
|
1356
|
-
Object.prototype.toString.call(g) === "[object Object]" && (g = JSON.stringify(g)),
|
|
1354
|
+
y.forEach((_, R) => {
|
|
1355
|
+
let g = d[_];
|
|
1356
|
+
Object.prototype.toString.call(g) === "[object Object]" && (g = JSON.stringify(g)), R === 0 ? M !== 1 ? S += `?${_}=${g}&` : S += `?${_}=${g}` : R === T ? S += `${_}=${g}` : S += `${_}=${g}&`;
|
|
1357
1357
|
});
|
|
1358
1358
|
try {
|
|
1359
|
-
const
|
|
1359
|
+
const _ = ["get", "head"].includes(n), R = await Fe({
|
|
1360
1360
|
baseURL: w(c) || "",
|
|
1361
|
-
url:
|
|
1361
|
+
url: _ ? m + S : m,
|
|
1362
1362
|
method: n,
|
|
1363
1363
|
headers: a,
|
|
1364
|
-
data:
|
|
1364
|
+
data: _ ? {} : d
|
|
1365
1365
|
});
|
|
1366
|
-
return o(
|
|
1367
|
-
} catch (
|
|
1368
|
-
console.error(
|
|
1366
|
+
return o(R), R;
|
|
1367
|
+
} catch (_) {
|
|
1368
|
+
console.error(_);
|
|
1369
1369
|
}
|
|
1370
1370
|
}, u = r && setInterval(x, i * 1e3);
|
|
1371
|
-
return
|
|
1371
|
+
return yt(() => {
|
|
1372
1372
|
clearInterval(u);
|
|
1373
1373
|
}), x;
|
|
1374
1374
|
}, qe = (e = [], o) => {
|
|
@@ -1376,19 +1376,19 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1376
1376
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1377
1377
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), i = e.length, r = n.length;
|
|
1378
1378
|
if (i === 1) {
|
|
1379
|
-
const
|
|
1379
|
+
const p = [];
|
|
1380
1380
|
for (let x = 0; x < r; x++) {
|
|
1381
|
-
const u = n[x], { label: s, value: d } = u,
|
|
1382
|
-
a.add(s),
|
|
1381
|
+
const u = n[x], { label: s, value: d } = u, S = { ...e[0], value: e[0][d] };
|
|
1382
|
+
a.add(s), p.push(S);
|
|
1383
1383
|
}
|
|
1384
1384
|
const m = e[0][t] || "";
|
|
1385
|
-
l.set(m,
|
|
1385
|
+
l.set(m, p);
|
|
1386
1386
|
} else
|
|
1387
|
-
for (let
|
|
1388
|
-
const m = e[
|
|
1387
|
+
for (let p = 0; p < i; p++) {
|
|
1388
|
+
const m = e[p], x = m[t];
|
|
1389
1389
|
a.add(x);
|
|
1390
1390
|
for (let u = 0; u < r; u++) {
|
|
1391
|
-
const s = n[u], { label: d, value:
|
|
1391
|
+
const s = n[u], { label: d, value: S } = s, y = { ...m, value: m[S] };
|
|
1392
1392
|
if (l.has(d)) {
|
|
1393
1393
|
const T = l.get(d);
|
|
1394
1394
|
T.push(y), l.set(d, T);
|
|
@@ -1397,9 +1397,9 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
const c = Array.from(a), f = [];
|
|
1400
|
-
for (const [
|
|
1400
|
+
for (const [p, m] of l)
|
|
1401
1401
|
f.push({
|
|
1402
|
-
name:
|
|
1402
|
+
name: p,
|
|
1403
1403
|
data: m
|
|
1404
1404
|
});
|
|
1405
1405
|
return {
|
|
@@ -1431,7 +1431,7 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1431
1431
|
r = r == null ? void 0 : r.replace(/value/g, o);
|
|
1432
1432
|
try {
|
|
1433
1433
|
let c = r;
|
|
1434
|
-
(/\(.*\)/g.test(r) || /[+/\\*]/g.test(r)) && (c =
|
|
1434
|
+
(/\(.*\)/g.test(r) || /[+/\\*]/g.test(r)) && (c = pt(r)), e = e.replace(i, c);
|
|
1435
1435
|
} catch {
|
|
1436
1436
|
e = e.replace(i, r);
|
|
1437
1437
|
}
|
|
@@ -1446,12 +1446,12 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1446
1446
|
});
|
|
1447
1447
|
e.dataType === "indicator" && o();
|
|
1448
1448
|
const t = (i = {}) => {
|
|
1449
|
-
const { label: r, name: c, location: f, show:
|
|
1449
|
+
const { label: r, name: c, location: f, show: p, indexCode: m } = i;
|
|
1450
1450
|
return {
|
|
1451
1451
|
label: r,
|
|
1452
1452
|
columnName: c,
|
|
1453
1453
|
location: f,
|
|
1454
|
-
show:
|
|
1454
|
+
show: p,
|
|
1455
1455
|
calcType: "COLUMN",
|
|
1456
1456
|
hrpIndexCode: m
|
|
1457
1457
|
};
|
|
@@ -1460,27 +1460,27 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1460
1460
|
label: r,
|
|
1461
1461
|
name: c,
|
|
1462
1462
|
location: f,
|
|
1463
|
-
show:
|
|
1463
|
+
show: p,
|
|
1464
1464
|
indexCode: m,
|
|
1465
1465
|
calcType: x = "COLUMN",
|
|
1466
1466
|
builtInFormula: u,
|
|
1467
1467
|
builtInValueSource: s,
|
|
1468
1468
|
builtInCalcWay: d,
|
|
1469
|
-
formula:
|
|
1469
|
+
formula: S,
|
|
1470
1470
|
conditions: y
|
|
1471
1471
|
} = i;
|
|
1472
1472
|
return {
|
|
1473
1473
|
label: r,
|
|
1474
1474
|
columnName: c,
|
|
1475
1475
|
location: f,
|
|
1476
|
-
show:
|
|
1476
|
+
show: p,
|
|
1477
1477
|
calcType: x,
|
|
1478
1478
|
hrpIndexCode: m,
|
|
1479
1479
|
aggregate: "SUM",
|
|
1480
1480
|
builtInFormula: u,
|
|
1481
1481
|
builtInValueSource: s,
|
|
1482
1482
|
builtInCalcWay: d,
|
|
1483
|
-
formula:
|
|
1483
|
+
formula: S,
|
|
1484
1484
|
conditions: y
|
|
1485
1485
|
};
|
|
1486
1486
|
}, { getGlobalModel: a } = j(ge, {
|
|
@@ -1493,13 +1493,13 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1493
1493
|
const r = i.length;
|
|
1494
1494
|
console.log("controlList", i);
|
|
1495
1495
|
const c = [];
|
|
1496
|
-
for (let
|
|
1497
|
-
const m = i[
|
|
1496
|
+
for (let p = 0; p < r; p++) {
|
|
1497
|
+
const m = i[p], {
|
|
1498
1498
|
id: x,
|
|
1499
1499
|
conditionLabel: u,
|
|
1500
1500
|
conditionKey: s,
|
|
1501
1501
|
conditionValueType: d
|
|
1502
|
-
} = m,
|
|
1502
|
+
} = m, S = {
|
|
1503
1503
|
rule: "NONE",
|
|
1504
1504
|
label: u,
|
|
1505
1505
|
fieldName: s,
|
|
@@ -1508,21 +1508,21 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1508
1508
|
dateFormat: "YYYY-MM",
|
|
1509
1509
|
valueType: d
|
|
1510
1510
|
}, y = a(x) || {};
|
|
1511
|
-
if (console.log("model", y),
|
|
1511
|
+
if (console.log("model", y), ht(y.type, "date")) {
|
|
1512
1512
|
const { value: T, format: M } = y || {};
|
|
1513
|
-
|
|
1513
|
+
S.fieldValue = (f = w(T)) == null ? void 0 : f.format(M), S.dateFormat = M;
|
|
1514
1514
|
}
|
|
1515
|
-
c.push(
|
|
1515
|
+
c.push(S);
|
|
1516
1516
|
}
|
|
1517
1517
|
return c;
|
|
1518
1518
|
};
|
|
1519
1519
|
return async () => {
|
|
1520
|
-
var
|
|
1520
|
+
var b;
|
|
1521
1521
|
const { graphicConfig: i, type: r } = e;
|
|
1522
1522
|
let {
|
|
1523
1523
|
source: c,
|
|
1524
1524
|
dataViewId: f,
|
|
1525
|
-
plugin:
|
|
1525
|
+
plugin: p = "1",
|
|
1526
1526
|
// 插件类型
|
|
1527
1527
|
layer: m,
|
|
1528
1528
|
// 后台图表类型,值分0,1
|
|
@@ -1531,25 +1531,25 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1531
1531
|
classificationList: u = [],
|
|
1532
1532
|
seriesList: s = [],
|
|
1533
1533
|
leftAxisList: d = [],
|
|
1534
|
-
rightAxisList:
|
|
1534
|
+
rightAxisList: S = [],
|
|
1535
1535
|
queryColumnList: y = [],
|
|
1536
1536
|
indicators: T = [],
|
|
1537
1537
|
controlList: M = [],
|
|
1538
|
-
dataSourceId:
|
|
1538
|
+
dataSourceId: _,
|
|
1539
1539
|
// 所属数据源ID
|
|
1540
|
-
idxLibMode:
|
|
1540
|
+
idxLibMode: R,
|
|
1541
1541
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1542
1542
|
preview: g = !1
|
|
1543
1543
|
// 预览开关
|
|
1544
1544
|
} = i || {};
|
|
1545
|
-
m == null && (
|
|
1546
|
-
let
|
|
1545
|
+
m == null && (ht(r, "table") ? m = "1" : m = "2");
|
|
1546
|
+
let k;
|
|
1547
1547
|
if (Array.isArray(u) && u.length > 0) {
|
|
1548
|
-
const
|
|
1549
|
-
for (let P = 0; P <
|
|
1550
|
-
const
|
|
1551
|
-
if (J ||
|
|
1552
|
-
|
|
1548
|
+
const v = u.length;
|
|
1549
|
+
for (let P = 0; P < v; P++) {
|
|
1550
|
+
const D = u[P] || {}, { label: $ = "", name: N = "", show: J = !1, sort: B, customGroup: V, conditions: Y } = D;
|
|
1551
|
+
if (J || v === 1) {
|
|
1552
|
+
k = {
|
|
1553
1553
|
label: $,
|
|
1554
1554
|
columnName: N,
|
|
1555
1555
|
show: J,
|
|
@@ -1561,13 +1561,13 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
|
-
let
|
|
1564
|
+
let A;
|
|
1565
1565
|
if (Array.isArray(s) && s.length > 0) {
|
|
1566
|
-
const
|
|
1567
|
-
for (let P = 0; P <
|
|
1568
|
-
const
|
|
1569
|
-
if (J ||
|
|
1570
|
-
|
|
1566
|
+
const v = s.length;
|
|
1567
|
+
for (let P = 0; P < v; P++) {
|
|
1568
|
+
const D = s[P] || {}, { label: $ = "", name: N = "", show: J = !1, sort: B, customGroup: V, conditions: Y } = D;
|
|
1569
|
+
if (J || v === 1) {
|
|
1570
|
+
A = {
|
|
1571
1571
|
label: $,
|
|
1572
1572
|
columnName: N,
|
|
1573
1573
|
show: J,
|
|
@@ -1580,19 +1580,19 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
1582
|
const L = [];
|
|
1583
|
-
y == null || y.forEach((
|
|
1584
|
-
L.push(t(
|
|
1583
|
+
y == null || y.forEach((v) => {
|
|
1584
|
+
L.push(t(v));
|
|
1585
1585
|
});
|
|
1586
|
-
const
|
|
1587
|
-
if (d == null || d.forEach((
|
|
1588
|
-
|
|
1589
|
-
}),
|
|
1590
|
-
|
|
1591
|
-
}), T == null || T.forEach((
|
|
1592
|
-
|
|
1586
|
+
const C = [];
|
|
1587
|
+
if (d == null || d.forEach((v) => {
|
|
1588
|
+
v.location = "LEFT", C.push(n(v));
|
|
1589
|
+
}), S == null || S.forEach((v) => {
|
|
1590
|
+
v.location = "RIGHT", C.push(n(v));
|
|
1591
|
+
}), T == null || T.forEach((v) => {
|
|
1592
|
+
v.location = "LEFT", C.push(n(v));
|
|
1593
1593
|
}), m === "1" && L.length === 0)
|
|
1594
1594
|
return;
|
|
1595
|
-
if (m === "2" &&
|
|
1595
|
+
if (m === "2" && C.length === 0)
|
|
1596
1596
|
return;
|
|
1597
1597
|
const h = l(M);
|
|
1598
1598
|
try {
|
|
@@ -1601,30 +1601,30 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1601
1601
|
{
|
|
1602
1602
|
source: c,
|
|
1603
1603
|
dataViewId: f,
|
|
1604
|
-
plugin:
|
|
1604
|
+
plugin: p,
|
|
1605
1605
|
layer: m,
|
|
1606
1606
|
chartType: x,
|
|
1607
|
-
classification:
|
|
1608
|
-
series:
|
|
1609
|
-
indicatorList:
|
|
1607
|
+
classification: k,
|
|
1608
|
+
series: A,
|
|
1609
|
+
indicatorList: C,
|
|
1610
1610
|
queryColumns: L,
|
|
1611
1611
|
pageFlag: !0,
|
|
1612
1612
|
sqlConditions: h,
|
|
1613
1613
|
// fixedDimSql: '',
|
|
1614
|
-
dataSourceId:
|
|
1615
|
-
idxLibMode:
|
|
1614
|
+
dataSourceId: _,
|
|
1615
|
+
idxLibMode: R,
|
|
1616
1616
|
preview: g
|
|
1617
1617
|
},
|
|
1618
1618
|
{
|
|
1619
1619
|
headers: {
|
|
1620
1620
|
// @ts-ignore
|
|
1621
|
-
Authentication: (
|
|
1621
|
+
Authentication: (b = window == null ? void 0 : window.config) == null ? void 0 : b.indicatorToken,
|
|
1622
1622
|
operateContext: "ygt"
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
);
|
|
1626
|
-
} catch (
|
|
1627
|
-
console.error(
|
|
1626
|
+
} catch (v) {
|
|
1627
|
+
console.error(v);
|
|
1628
1628
|
}
|
|
1629
1629
|
};
|
|
1630
1630
|
}, Vl = () => {
|
|
@@ -1664,14 +1664,14 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1664
1664
|
})), t = I(0), n = I(0), a = I(0), l = I(0), i = I(!1), r = I();
|
|
1665
1665
|
let c;
|
|
1666
1666
|
const f = () => new Promise((d) => {
|
|
1667
|
-
|
|
1667
|
+
bt(() => {
|
|
1668
1668
|
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, n.value = r.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), d();
|
|
1669
1669
|
});
|
|
1670
|
-
}),
|
|
1670
|
+
}), p = () => {
|
|
1671
1671
|
t.value && n.value ? (r.value.style.width = `${t.value}px`, r.value.style.height = `${n.value}px`) : (r.value.style.width = `${a.value}px`, r.value.style.height = `${l.value}px`);
|
|
1672
1672
|
}, m = () => {
|
|
1673
|
-
const d = document.body.clientWidth,
|
|
1674
|
-
r.value && (r.value.style.transform = `scale(${M}, ${
|
|
1673
|
+
const d = document.body.clientWidth, S = document.body.clientHeight, y = t.value || a.value, T = n.value || l.value, M = d / y, _ = S / T;
|
|
1674
|
+
r.value && (r.value.style.transform = `scale(${M}, ${_})`);
|
|
1675
1675
|
}, x = Rt(async () => {
|
|
1676
1676
|
await f(), m();
|
|
1677
1677
|
}, 100), u = () => {
|
|
@@ -1685,8 +1685,8 @@ const jl = (e) => e.replace(/\\n/g, `
|
|
|
1685
1685
|
c && (c.disconnect(), c.takeRecords(), c = null);
|
|
1686
1686
|
};
|
|
1687
1687
|
return Ue(async () => {
|
|
1688
|
-
i.value = !1, await f(),
|
|
1689
|
-
}),
|
|
1688
|
+
i.value = !1, await f(), p(), m(), window.addEventListener("resize", x), u(), i.value = !0;
|
|
1689
|
+
}), yt(() => {
|
|
1690
1690
|
window.removeEventListener("resize", x), s();
|
|
1691
1691
|
}), {
|
|
1692
1692
|
style: o,
|
|
@@ -1700,8 +1700,8 @@ const Zl = {
|
|
|
1700
1700
|
ref: "container"
|
|
1701
1701
|
};
|
|
1702
1702
|
function Jl(e, o, t, n, a, l) {
|
|
1703
|
-
return O(),
|
|
1704
|
-
e.ready ? (O(),
|
|
1703
|
+
return O(), F("div", Zl, [
|
|
1704
|
+
e.ready ? (O(), F("div", {
|
|
1705
1705
|
key: 0,
|
|
1706
1706
|
class: "page-config",
|
|
1707
1707
|
style: G(e.style)
|
|
@@ -1764,15 +1764,15 @@ const Yl = /* @__PURE__ */ oe(Hl, [["render", Jl], ["__scopeId", "data-v-242d350
|
|
|
1764
1764
|
}
|
|
1765
1765
|
});
|
|
1766
1766
|
const y = ba(), T = /* @__PURE__ */ new Set(), M = ($, N) => {
|
|
1767
|
-
T.add($), y.on($, (J) => typeof N[J] == "function" && N[J]()),
|
|
1768
|
-
|
|
1767
|
+
T.add($), y.on($, (J) => typeof N[J] == "function" && N[J]()), Mt(() => {
|
|
1768
|
+
_($);
|
|
1769
1769
|
});
|
|
1770
|
-
},
|
|
1770
|
+
}, _ = ($) => {
|
|
1771
1771
|
T.delete($), y.off($);
|
|
1772
1772
|
};
|
|
1773
1773
|
Re(Ut, {
|
|
1774
1774
|
onEvent: M,
|
|
1775
|
-
offEvent:
|
|
1775
|
+
offEvent: _,
|
|
1776
1776
|
emitEvent: ($, N) => {
|
|
1777
1777
|
if ($ === "PAGE") {
|
|
1778
1778
|
const J = m.length;
|
|
@@ -1796,13 +1796,13 @@ const Yl = /* @__PURE__ */ oe(Hl, [["render", Jl], ["__scopeId", "data-v-242d350
|
|
|
1796
1796
|
g.value = w(g) + 1;
|
|
1797
1797
|
}
|
|
1798
1798
|
});
|
|
1799
|
-
const
|
|
1799
|
+
const A = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), C = ({ requestFn: $ = () => {
|
|
1800
1800
|
}, sortNum: N = 0, id: J = "" }) => {
|
|
1801
|
-
if (
|
|
1802
|
-
const B =
|
|
1801
|
+
if (A.has(N)) {
|
|
1802
|
+
const B = A.get(N);
|
|
1803
1803
|
B == null || B.push($);
|
|
1804
1804
|
} else
|
|
1805
|
-
|
|
1805
|
+
A.set(N, [$]);
|
|
1806
1806
|
L.set(J, $);
|
|
1807
1807
|
}, h = ($) => new Promise((N, J) => {
|
|
1808
1808
|
const B = $.map((V) => V());
|
|
@@ -1811,7 +1811,7 @@ const Yl = /* @__PURE__ */ oe(Hl, [["render", Jl], ["__scopeId", "data-v-242d350
|
|
|
1811
1811
|
}).catch((V) => {
|
|
1812
1812
|
J(V);
|
|
1813
1813
|
});
|
|
1814
|
-
}),
|
|
1814
|
+
}), b = async () => {
|
|
1815
1815
|
var J;
|
|
1816
1816
|
const $ = await ko.get(`${Bo}/user/anonymous?username=admin&businessOfficeId=350421`, {
|
|
1817
1817
|
headers: {
|
|
@@ -1821,7 +1821,7 @@ const Yl = /* @__PURE__ */ oe(Hl, [["render", Jl], ["__scopeId", "data-v-242d350
|
|
|
1821
1821
|
}
|
|
1822
1822
|
}), { token: N } = ((J = $.data) == null ? void 0 : J.data) || {};
|
|
1823
1823
|
window.config.indicatorToken = N;
|
|
1824
|
-
},
|
|
1824
|
+
}, v = ($) => new Promise(async (N, J) => {
|
|
1825
1825
|
if ($) {
|
|
1826
1826
|
if (typeof $ == "string") {
|
|
1827
1827
|
const B = L.get($);
|
|
@@ -1831,11 +1831,11 @@ const Yl = /* @__PURE__ */ oe(Hl, [["render", Jl], ["__scopeId", "data-v-242d350
|
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
} else {
|
|
1834
|
-
const B = Array.from(
|
|
1834
|
+
const B = Array.from(A);
|
|
1835
1835
|
B.sort((Y, Ae) => Ae[0] - Y[0]);
|
|
1836
1836
|
const V = B.length;
|
|
1837
1837
|
try {
|
|
1838
|
-
e.pageMode !== "design" && w(g) > 0 && await
|
|
1838
|
+
e.pageMode !== "design" && w(g) > 0 && await b();
|
|
1839
1839
|
for (let Y = 0; Y < V; Y++) {
|
|
1840
1840
|
const Ae = B[Y][1];
|
|
1841
1841
|
await h(Ae);
|
|
@@ -1843,29 +1843,29 @@ const Yl = /* @__PURE__ */ oe(Hl, [["render", Jl], ["__scopeId", "data-v-242d350
|
|
|
1843
1843
|
} catch (Y) {
|
|
1844
1844
|
console.error(Y);
|
|
1845
1845
|
} finally {
|
|
1846
|
-
|
|
1846
|
+
A.clear(), N(null);
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
1849
|
});
|
|
1850
1850
|
Re(pe, {
|
|
1851
|
-
setRequest:
|
|
1852
|
-
touchRequest:
|
|
1851
|
+
setRequest: C,
|
|
1852
|
+
touchRequest: v
|
|
1853
1853
|
}), Re(Ke, {
|
|
1854
1854
|
emitRefreshPage: () => {
|
|
1855
1855
|
y.emit(Ke);
|
|
1856
1856
|
}
|
|
1857
1857
|
});
|
|
1858
|
-
const
|
|
1858
|
+
const D = ($) => {
|
|
1859
1859
|
y.on(Ke, () => $()), Ue(() => {
|
|
1860
1860
|
y.off(Ke);
|
|
1861
1861
|
});
|
|
1862
1862
|
};
|
|
1863
|
-
return
|
|
1864
|
-
|
|
1863
|
+
return Mt(() => {
|
|
1864
|
+
A == null || A.clear(), L == null || L.clear();
|
|
1865
1865
|
}), o({
|
|
1866
|
-
touchRequest:
|
|
1866
|
+
touchRequest: v,
|
|
1867
1867
|
getGlobalModel: f,
|
|
1868
|
-
onRefreshPage:
|
|
1868
|
+
onRefreshPage: D
|
|
1869
1869
|
}), {
|
|
1870
1870
|
providerConfig: t
|
|
1871
1871
|
};
|
|
@@ -1875,7 +1875,7 @@ const Yl = /* @__PURE__ */ oe(Hl, [["render", Jl], ["__scopeId", "data-v-242d350
|
|
|
1875
1875
|
ref: "providerConfig"
|
|
1876
1876
|
};
|
|
1877
1877
|
function ei(e, o, t, n, a, l) {
|
|
1878
|
-
return O(),
|
|
1878
|
+
return O(), F("div", Xl, [
|
|
1879
1879
|
tt(e.$slots, "default")
|
|
1880
1880
|
], 512);
|
|
1881
1881
|
}
|
|
@@ -1905,7 +1905,7 @@ const ti = /* @__PURE__ */ oe(Kl, [["render", ei]]), oi = ne(ti), jo = {
|
|
|
1905
1905
|
data: {}
|
|
1906
1906
|
}, Wo = ie(jo), ni = ["refreshData", "click", "valueChange"], ai = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=", li = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==", ii = te({
|
|
1907
1907
|
name: "EcanText",
|
|
1908
|
-
components: { Skeleton:
|
|
1908
|
+
components: { Skeleton: vt },
|
|
1909
1909
|
props: {
|
|
1910
1910
|
...Wo
|
|
1911
1911
|
},
|
|
@@ -1917,7 +1917,7 @@ const ti = /* @__PURE__ */ oe(Kl, [["render", ei]]), oi = ne(ti), jo = {
|
|
|
1917
1917
|
immediate: !0
|
|
1918
1918
|
});
|
|
1919
1919
|
const n = q(() => {
|
|
1920
|
-
var
|
|
1920
|
+
var S;
|
|
1921
1921
|
const u = w(t);
|
|
1922
1922
|
let s = e.text;
|
|
1923
1923
|
s = s == null ? void 0 : s.replace(/\n|\\n/g, "<br/>"), s = s == null ? void 0 : s.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
@@ -1925,21 +1925,21 @@ const ti = /* @__PURE__ */ oe(Kl, [["render", ei]]), oi = ne(ti), jo = {
|
|
|
1925
1925
|
if (d == null || d.length === 0)
|
|
1926
1926
|
return s;
|
|
1927
1927
|
for (let y = 0; y < d.length; y++) {
|
|
1928
|
-
const T = d[y], M = (
|
|
1929
|
-
let
|
|
1930
|
-
const
|
|
1931
|
-
for (let
|
|
1932
|
-
const
|
|
1933
|
-
L && (
|
|
1928
|
+
const T = d[y], M = (S = T == null ? void 0 : T.slice(1, T.length - 1)) == null ? void 0 : S.trim();
|
|
1929
|
+
let _ = M;
|
|
1930
|
+
const R = M.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1931
|
+
for (let k = 0; k < R.length; k++) {
|
|
1932
|
+
const A = R[k], L = u[A];
|
|
1933
|
+
L && (_ = M.replace(A, L));
|
|
1934
1934
|
}
|
|
1935
|
-
if (/\(.*\)/g.test(
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1935
|
+
if (/\(.*\)/g.test(_)) {
|
|
1936
|
+
const k = pt(_);
|
|
1937
|
+
k != null && (_ = k);
|
|
1938
1938
|
}
|
|
1939
|
-
let g =
|
|
1939
|
+
let g = _;
|
|
1940
1940
|
if (g === M && (g = e.variableDefaultValue), g != null) {
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1941
|
+
const k = e.format;
|
|
1942
|
+
k === "percentage" ? (g = +g, isNaN(g) ? s = s.replace(T, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`) : g >= 0 ? (g = (g * 100).toFixed(2), s = s.replace(T, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ai}"/>${g}%</span>`)) : (g = (g * 100).toFixed(2), s = s.replace(T, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${li}"/>${Math.abs(+g)}%</span>`))) : e.format === "percent" ? (g = +g, isNaN(g) || (g = (g * 100).toFixed(2), s = s.replace(T, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${g}%</span>`))) : e.format === "money" ? (g = +g, isNaN(g) || (g = Gt(g), s = s.replace(T, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${g}</span>`))) : k === "thousands" ? (g = +g, isNaN(g) || (g = Wl(g), s = s.replace(T, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${g}</span>`))) : s = s.replace(T, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${g}</span>`);
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
1945
|
return `<span>${s}</span>`;
|
|
@@ -1975,18 +1975,18 @@ const ti = /* @__PURE__ */ oe(Kl, [["render", ei]]), oi = ne(ti), jo = {
|
|
|
1975
1975
|
}), me(e, {
|
|
1976
1976
|
refreshData: c
|
|
1977
1977
|
});
|
|
1978
|
-
const
|
|
1978
|
+
const p = ue(e), m = p("click", () => {
|
|
1979
1979
|
if (!e.linkPage && !e.href)
|
|
1980
1980
|
return;
|
|
1981
1981
|
const u = e.linkPage || "", s = Uo(w(a), u), d = e.href;
|
|
1982
|
-
let
|
|
1983
|
-
|
|
1982
|
+
let S = d || s;
|
|
1983
|
+
S = de(S);
|
|
1984
1984
|
const y = e.target;
|
|
1985
|
-
y && (y !== "event" ? window.open(
|
|
1985
|
+
y && (y !== "event" ? window.open(S, "_" + y) : window.parent.postMessage({
|
|
1986
1986
|
type: "openPage",
|
|
1987
1987
|
url: d
|
|
1988
1988
|
}, "*"));
|
|
1989
|
-
}), x =
|
|
1989
|
+
}), x = p("valueChange", () => {
|
|
1990
1990
|
});
|
|
1991
1991
|
return K(() => n.value, (u, s) => {
|
|
1992
1992
|
u !== s && x();
|
|
@@ -2001,13 +2001,13 @@ const ti = /* @__PURE__ */ oe(Kl, [["render", ei]]), oi = ne(ti), jo = {
|
|
|
2001
2001
|
const ri = ["innerHTML"];
|
|
2002
2002
|
function si(e, o, t, n, a, l) {
|
|
2003
2003
|
const i = Z("skeleton");
|
|
2004
|
-
return e.loading ? (O(),
|
|
2004
|
+
return e.loading ? (O(), F("div", {
|
|
2005
2005
|
key: 0,
|
|
2006
2006
|
class: "skeleton-wrapper",
|
|
2007
2007
|
style: G(e.style)
|
|
2008
2008
|
}, [
|
|
2009
2009
|
W(i, { loading: e.loading }, null, 8, ["loading"])
|
|
2010
|
-
], 4)) : (O(),
|
|
2010
|
+
], 4)) : (O(), F("div", {
|
|
2011
2011
|
key: 1,
|
|
2012
2012
|
class: "ecan-text",
|
|
2013
2013
|
style: G(e.style),
|
|
@@ -2025,7 +2025,7 @@ const ci = /* @__PURE__ */ oe(ii, [["render", si], ["__scopeId", "data-v-e3658bc
|
|
|
2025
2025
|
});
|
|
2026
2026
|
const fi = { class: "red" };
|
|
2027
2027
|
function mi(e, o, t, n, a, l) {
|
|
2028
|
-
return O(),
|
|
2028
|
+
return O(), F("div", fi, ye(e.text), 1);
|
|
2029
2029
|
}
|
|
2030
2030
|
const gi = /* @__PURE__ */ oe(ui, [["render", mi], ["__scopeId", "data-v-4dd9c03e"]]), hi = ne(gi), Vo = {
|
|
2031
2031
|
...se,
|
|
@@ -2051,10 +2051,10 @@ const gi = /* @__PURE__ */ oe(ui, [["render", mi], ["__scopeId", "data-v-4dd9c03
|
|
|
2051
2051
|
},
|
|
2052
2052
|
setup(e) {
|
|
2053
2053
|
const o = re(e), t = () => {
|
|
2054
|
-
const { format: f, operate:
|
|
2054
|
+
const { format: f, operate: p } = e;
|
|
2055
2055
|
let m = we();
|
|
2056
|
-
if (
|
|
2057
|
-
const { type: x, value: u, mode: s } =
|
|
2056
|
+
if (p) {
|
|
2057
|
+
const { type: x, value: u, mode: s } = p;
|
|
2058
2058
|
switch (x) {
|
|
2059
2059
|
case "add":
|
|
2060
2060
|
m = m.add(u, s);
|
|
@@ -2082,8 +2082,8 @@ const gi = /* @__PURE__ */ oe(ui, [["render", mi], ["__scopeId", "data-v-4dd9c03
|
|
|
2082
2082
|
}), c = () => {
|
|
2083
2083
|
a && l();
|
|
2084
2084
|
let f = 1e3;
|
|
2085
|
-
const { value:
|
|
2086
|
-
|
|
2085
|
+
const { value: p, mode: m } = e.updateInterval || {};
|
|
2086
|
+
p && (f = f * p);
|
|
2087
2087
|
const x = {
|
|
2088
2088
|
second: 1,
|
|
2089
2089
|
minute: 60,
|
|
@@ -2098,7 +2098,7 @@ const gi = /* @__PURE__ */ oe(ui, [["render", mi], ["__scopeId", "data-v-4dd9c03
|
|
|
2098
2098
|
timeChange: r
|
|
2099
2099
|
}), Ue(() => {
|
|
2100
2100
|
c();
|
|
2101
|
-
}),
|
|
2101
|
+
}), yt(() => {
|
|
2102
2102
|
l();
|
|
2103
2103
|
}), {
|
|
2104
2104
|
style: o,
|
|
@@ -2107,7 +2107,7 @@ const gi = /* @__PURE__ */ oe(ui, [["render", mi], ["__scopeId", "data-v-4dd9c03
|
|
|
2107
2107
|
}
|
|
2108
2108
|
});
|
|
2109
2109
|
function vi(e, o, t, n, a, l) {
|
|
2110
|
-
return O(),
|
|
2110
|
+
return O(), F("div", {
|
|
2111
2111
|
class: "time-display",
|
|
2112
2112
|
style: G(e.style)
|
|
2113
2113
|
}, ye(e.time), 5);
|
|
@@ -2147,7 +2147,7 @@ const pi = /* @__PURE__ */ oe(bi, [["render", vi], ["__scopeId", "data-v-b628fca
|
|
|
2147
2147
|
]
|
|
2148
2148
|
}, Jo = ie(Zo), Si = ["refreshData", "click"], wi = te({
|
|
2149
2149
|
name: "EcanList",
|
|
2150
|
-
components: { Skeleton:
|
|
2150
|
+
components: { Skeleton: vt },
|
|
2151
2151
|
props: {
|
|
2152
2152
|
...Jo
|
|
2153
2153
|
},
|
|
@@ -2228,14 +2228,14 @@ const xi = (e) => (bo("data-v-7aa27677"), e = e(), vo(), e), ki = {
|
|
|
2228
2228
|
};
|
|
2229
2229
|
function Ei(e, o, t, n, a, l) {
|
|
2230
2230
|
const i = Z("skeleton");
|
|
2231
|
-
return O(),
|
|
2231
|
+
return O(), F("div", {
|
|
2232
2232
|
class: "ecan-list",
|
|
2233
2233
|
style: G(e.style)
|
|
2234
2234
|
}, [
|
|
2235
2235
|
W(i, { loading: e.loading }, {
|
|
2236
2236
|
default: X(() => [
|
|
2237
|
-
e.useTitle ? (O(),
|
|
2238
|
-
(O(!0),
|
|
2237
|
+
e.useTitle ? (O(), F("div", ki, [
|
|
2238
|
+
(O(!0), F(Me, null, Oe(e.columnCount, (r) => (O(), F("div", {
|
|
2239
2239
|
class: "title-inner",
|
|
2240
2240
|
style: G({
|
|
2241
2241
|
backgroundColor: e.backgroundColor,
|
|
@@ -2245,8 +2245,8 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2245
2245
|
}),
|
|
2246
2246
|
key: r
|
|
2247
2247
|
}, [
|
|
2248
|
-
e.useRanking ? (O(),
|
|
2249
|
-
(O(!0),
|
|
2248
|
+
e.useRanking ? (O(), F("div", Ai)) : be("", !0),
|
|
2249
|
+
(O(!0), F(Me, null, Oe(e.columns, (c, f) => (O(), F("div", {
|
|
2250
2250
|
class: "column",
|
|
2251
2251
|
key: c.key || f,
|
|
2252
2252
|
style: G({
|
|
@@ -2256,15 +2256,15 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2256
2256
|
}, ye(c.title), 5))), 128))
|
|
2257
2257
|
], 4))), 128))
|
|
2258
2258
|
])) : be("", !0),
|
|
2259
|
-
e.dataSource.length > 0 ? (O(),
|
|
2260
|
-
e.useTitle ? (O(),
|
|
2259
|
+
e.dataSource.length > 0 ? (O(), F("div", _i, [
|
|
2260
|
+
e.useTitle ? (O(), F("div", {
|
|
2261
2261
|
key: 0,
|
|
2262
2262
|
class: "title-placeholder",
|
|
2263
2263
|
style: G({
|
|
2264
2264
|
marginBottom: e.itemRowSpan
|
|
2265
2265
|
})
|
|
2266
2266
|
}, null, 4)) : be("", !0),
|
|
2267
|
-
(O(!0),
|
|
2267
|
+
(O(!0), F(Me, null, Oe(e.dataSource.slice(0, e.sliceCount), (r, c) => (O(), F("div", {
|
|
2268
2268
|
class: "item",
|
|
2269
2269
|
style: G({
|
|
2270
2270
|
backgroundColor: e.backgroundColor,
|
|
@@ -2276,12 +2276,12 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2276
2276
|
key: r.id || c,
|
|
2277
2277
|
onClick: o[0] || (o[0] = (...f) => e.click && e.click(...f))
|
|
2278
2278
|
}, [
|
|
2279
|
-
e.useRanking ? (O(),
|
|
2279
|
+
e.useRanking ? (O(), F("div", Ti, [
|
|
2280
2280
|
Li,
|
|
2281
2281
|
ee("div", Ii, " Top " + ye(c + 1), 1)
|
|
2282
2282
|
])) : be("", !0),
|
|
2283
|
-
(O(!0),
|
|
2284
|
-
class:
|
|
2283
|
+
(O(!0), F(Me, null, Oe(e.columns, (f) => (O(), F("div", {
|
|
2284
|
+
class: Et(["column", e.contrastClass(r[f.key], f.format)]),
|
|
2285
2285
|
key: f.key,
|
|
2286
2286
|
style: G({
|
|
2287
2287
|
fontSize: f.fontSize,
|
|
@@ -2291,7 +2291,7 @@ function Ei(e, o, t, n, a, l) {
|
|
|
2291
2291
|
})
|
|
2292
2292
|
}, ye((f.format != null || f.format !== "") && e.formatFn(r[f.key], f.format)), 7))), 128))
|
|
2293
2293
|
], 4))), 128))
|
|
2294
|
-
])) : (O(),
|
|
2294
|
+
])) : (O(), F("div", Mi, " 暂无数据 "))
|
|
2295
2295
|
]),
|
|
2296
2296
|
_: 1
|
|
2297
2297
|
}, 8, ["loading"])
|
|
@@ -2324,7 +2324,7 @@ const Oi = /* @__PURE__ */ oe(wi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2324
2324
|
name: "EcanProportion",
|
|
2325
2325
|
components: {
|
|
2326
2326
|
AProgress: ra,
|
|
2327
|
-
Skeleton:
|
|
2327
|
+
Skeleton: vt
|
|
2328
2328
|
},
|
|
2329
2329
|
props: {
|
|
2330
2330
|
...Qo
|
|
@@ -2346,13 +2346,13 @@ const Oi = /* @__PURE__ */ oe(wi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2346
2346
|
const s = w(a), d = +e.variableDefaultValue;
|
|
2347
2347
|
if (s == null)
|
|
2348
2348
|
return isNaN(d) ? 0 : d;
|
|
2349
|
-
const
|
|
2349
|
+
const S = e.text.match(/\{.+\}/g) || [];
|
|
2350
2350
|
let y;
|
|
2351
2351
|
const T = new Set(Object.keys(s));
|
|
2352
|
-
for (let M = 0; M <
|
|
2353
|
-
const
|
|
2354
|
-
if (T.has(
|
|
2355
|
-
y = s[
|
|
2352
|
+
for (let M = 0; M < S.length; M++) {
|
|
2353
|
+
const _ = S[M], R = _.slice(1, _.length - 1);
|
|
2354
|
+
if (T.has(R)) {
|
|
2355
|
+
y = s[R];
|
|
2356
2356
|
break;
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
@@ -2362,22 +2362,22 @@ const Oi = /* @__PURE__ */ oe(wi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2362
2362
|
let s = e.text;
|
|
2363
2363
|
if (s === "")
|
|
2364
2364
|
return w(l);
|
|
2365
|
-
const d = e.variableDefaultValue,
|
|
2365
|
+
const d = e.variableDefaultValue, S = w(a), y = s.match(/\{.+\}/g) || [];
|
|
2366
2366
|
for (let M = 0; M < y.length; M++) {
|
|
2367
|
-
const
|
|
2368
|
-
let
|
|
2369
|
-
const g = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,
|
|
2370
|
-
for (let L = 0; L < (
|
|
2371
|
-
const
|
|
2372
|
-
C
|
|
2367
|
+
const _ = y[M];
|
|
2368
|
+
let R = _.slice(1, _.length - 1);
|
|
2369
|
+
const g = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, k = _.match(g);
|
|
2370
|
+
for (let L = 0; L < (k == null ? void 0 : k.length); L++) {
|
|
2371
|
+
const C = (T = k[L]) == null ? void 0 : T.trim();
|
|
2372
|
+
S[C] != null && (R = R.replace(C, S[C]));
|
|
2373
2373
|
}
|
|
2374
|
-
let
|
|
2374
|
+
let A = R;
|
|
2375
2375
|
try {
|
|
2376
|
-
/\(.*\)/g.test(
|
|
2376
|
+
/\(.*\)/g.test(R) && (A = pt(R));
|
|
2377
2377
|
} catch (L) {
|
|
2378
2378
|
console.error(L);
|
|
2379
2379
|
}
|
|
2380
|
-
typeof +
|
|
2380
|
+
typeof +A == "number" && !isNaN(+A) ? (A = +A * 100, e.decimalFormat && (A = A.toFixed(2))) : A = d, s = s.replace(_, A + "");
|
|
2381
2381
|
}
|
|
2382
2382
|
return s;
|
|
2383
2383
|
}), r = ke(e), c = I(!1), f = async () => {
|
|
@@ -2402,7 +2402,7 @@ const Oi = /* @__PURE__ */ oe(wi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2402
2402
|
}), { setRequest: u } = j(pe, {
|
|
2403
2403
|
// @ts-ignore
|
|
2404
2404
|
// eslint-disable-next-line no-void
|
|
2405
|
-
setRequest: ({ id: s, sortNum: d, requestFn:
|
|
2405
|
+
setRequest: ({ id: s, sortNum: d, requestFn: S }) => {
|
|
2406
2406
|
}
|
|
2407
2407
|
});
|
|
2408
2408
|
return u({
|
|
@@ -2421,7 +2421,7 @@ const Oi = /* @__PURE__ */ oe(wi, [["render", Ei], ["__scopeId", "data-v-7aa2767
|
|
|
2421
2421
|
});
|
|
2422
2422
|
function Ri(e, o, t, n, a, l) {
|
|
2423
2423
|
const i = Z("skeleton"), r = Z("a-progress");
|
|
2424
|
-
return O(),
|
|
2424
|
+
return O(), F("div", {
|
|
2425
2425
|
class: "ecan-proportion",
|
|
2426
2426
|
style: G(e.style)
|
|
2427
2427
|
}, [
|
|
@@ -2441,7 +2441,7 @@ function Ri(e, o, t, n, a, l) {
|
|
|
2441
2441
|
e.loading ? (O(), ze(i, {
|
|
2442
2442
|
key: 0,
|
|
2443
2443
|
loading: e.loading
|
|
2444
|
-
}, null, 8, ["loading"])) : (O(),
|
|
2444
|
+
}, null, 8, ["loading"])) : (O(), F("div", {
|
|
2445
2445
|
key: 1,
|
|
2446
2446
|
class: "format",
|
|
2447
2447
|
style: G({
|
|
@@ -2491,7 +2491,7 @@ const $i = /* @__PURE__ */ oe(Fi, [["render", Ri], ["__scopeId", "data-v-00244f8
|
|
|
2491
2491
|
},
|
|
2492
2492
|
// @ts-ignore
|
|
2493
2493
|
// eslint-disable-next-line no-void
|
|
2494
|
-
setGlobalModel: (f,
|
|
2494
|
+
setGlobalModel: (f, p) => {
|
|
2495
2495
|
}
|
|
2496
2496
|
});
|
|
2497
2497
|
a(e.id, {
|
|
@@ -2515,7 +2515,7 @@ const $i = /* @__PURE__ */ oe(Fi, [["render", Ri], ["__scopeId", "data-v-00244f8
|
|
|
2515
2515
|
});
|
|
2516
2516
|
function Ui(e, o, t, n, a, l) {
|
|
2517
2517
|
const i = Z("a-input");
|
|
2518
|
-
return O(),
|
|
2518
|
+
return O(), F("div", {
|
|
2519
2519
|
class: "ecan-input",
|
|
2520
2520
|
style: G(e.style)
|
|
2521
2521
|
}, [
|
|
@@ -2556,10 +2556,10 @@ const Gi = /* @__PURE__ */ oe(Bi, [["render", Ui]]), qi = ne(Gi), en = {
|
|
|
2556
2556
|
},
|
|
2557
2557
|
setup(e) {
|
|
2558
2558
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = I(null);
|
|
2559
|
-
K(() => [e.value, e.useCurrentTime, e.operate], ([c, f,
|
|
2559
|
+
K(() => [e.value, e.useCurrentTime, e.operate], ([c, f, p]) => {
|
|
2560
2560
|
let m = null;
|
|
2561
|
-
if (c ? m = we(de(c)) : f && (m = we()),
|
|
2562
|
-
const { type: x, value: u, mode: s } =
|
|
2561
|
+
if (c ? m = we(de(c)) : f && (m = we()), p && m) {
|
|
2562
|
+
const { type: x, value: u, mode: s } = p;
|
|
2563
2563
|
switch (x) {
|
|
2564
2564
|
case "add":
|
|
2565
2565
|
m = m.add(u, s);
|
|
@@ -2601,7 +2601,7 @@ const Gi = /* @__PURE__ */ oe(Bi, [["render", Ui]]), qi = ne(Gi), en = {
|
|
|
2601
2601
|
});
|
|
2602
2602
|
function Vi(e, o, t, n, a, l) {
|
|
2603
2603
|
const i = Z("a-date-picker");
|
|
2604
|
-
return O(),
|
|
2604
|
+
return O(), F("div", {
|
|
2605
2605
|
class: "ecan-date-picker",
|
|
2606
2606
|
style: G(e.style)
|
|
2607
2607
|
}, [
|
|
@@ -2646,50 +2646,50 @@ const Hi = /* @__PURE__ */ oe(Wi, [["render", Vi]]), Zi = ne(Hi), on = {
|
|
|
2646
2646
|
},
|
|
2647
2647
|
setup(e) {
|
|
2648
2648
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = I([null, null]);
|
|
2649
|
-
K(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([
|
|
2650
|
-
let g = null,
|
|
2651
|
-
if (T && (g = we().subtract(M,
|
|
2652
|
-
const { type:
|
|
2653
|
-
switch (
|
|
2649
|
+
K(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([S, y, T, M, _, R]) => {
|
|
2650
|
+
let g = null, k = null;
|
|
2651
|
+
if (T && (g = we().subtract(M, _), k = we()), S && (g = we(de(S))), y && (k = we(de(y))), R) {
|
|
2652
|
+
const { type: A, value: L, mode: C } = R;
|
|
2653
|
+
switch (A) {
|
|
2654
2654
|
case "add":
|
|
2655
|
-
g = g && g.add(L,
|
|
2655
|
+
g = g && g.add(L, C), k = k && k.add(L, C);
|
|
2656
2656
|
break;
|
|
2657
2657
|
case "minus":
|
|
2658
|
-
g = g && g.subtract(L,
|
|
2658
|
+
g = g && g.subtract(L, C), k = k && k.subtract(L, C);
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
|
-
n.value = [g,
|
|
2661
|
+
n.value = [g, k];
|
|
2662
2662
|
}, {
|
|
2663
2663
|
immediate: !0
|
|
2664
2664
|
});
|
|
2665
2665
|
let a = w(n)[0], l = w(n)[1];
|
|
2666
|
-
const i = (
|
|
2667
|
-
Array.isArray(
|
|
2668
|
-
}, r = (
|
|
2666
|
+
const i = (S) => {
|
|
2667
|
+
Array.isArray(S) ? (a = S[0], l = S[1]) : (a = null, l = null);
|
|
2668
|
+
}, r = (S) => {
|
|
2669
2669
|
let y = !1, { limitStartTime: T, limitEndTime: M } = e;
|
|
2670
|
-
const
|
|
2670
|
+
const _ = {
|
|
2671
2671
|
startTime: `${a || ""}`,
|
|
2672
2672
|
endTime: `${l || ""}`
|
|
2673
2673
|
};
|
|
2674
|
-
return T = de(T, { codeData:
|
|
2674
|
+
return T = de(T, { codeData: _ }), M = de(M, { codeData: _ }), T && M ? y = !(we(T) < S && S < we(M)) : T ? y = we(T) > S : M && (y = we(M) < S), y;
|
|
2675
2675
|
}, { setGlobalModel: c } = j(ge, {
|
|
2676
2676
|
// @ts-ignore
|
|
2677
2677
|
// eslint-disable-next-line no-void
|
|
2678
|
-
setGlobalModel: (
|
|
2678
|
+
setGlobalModel: (S, y) => {
|
|
2679
2679
|
}
|
|
2680
|
-
}), f = q(() => Array.isArray(w(n)) ? w(n)[0] : null),
|
|
2680
|
+
}), f = q(() => Array.isArray(w(n)) ? w(n)[0] : null), p = q(() => Array.isArray(w(n)) ? w(n)[1] : null);
|
|
2681
2681
|
c(e.id, {
|
|
2682
2682
|
type: e.type,
|
|
2683
2683
|
format: e.format,
|
|
2684
2684
|
startTime: f,
|
|
2685
|
-
endTime:
|
|
2685
|
+
endTime: p
|
|
2686
2686
|
});
|
|
2687
2687
|
const m = ue(e);
|
|
2688
2688
|
let x = !1;
|
|
2689
2689
|
const u = m("dateChange", () => {
|
|
2690
|
-
}), s = (
|
|
2690
|
+
}), s = (S) => {
|
|
2691
2691
|
const y = w(n), T = y && y[0] && y[1];
|
|
2692
|
-
|
|
2692
|
+
S === !1 && x === !0 && T && (u(), x = !1);
|
|
2693
2693
|
}, d = () => {
|
|
2694
2694
|
x = !0;
|
|
2695
2695
|
};
|
|
@@ -2710,7 +2710,7 @@ const Hi = /* @__PURE__ */ oe(Wi, [["render", Vi]]), Zi = ne(Hi), on = {
|
|
|
2710
2710
|
});
|
|
2711
2711
|
function Qi(e, o, t, n, a, l) {
|
|
2712
2712
|
const i = Z("a-range-picker");
|
|
2713
|
-
return O(),
|
|
2713
|
+
return O(), F("div", {
|
|
2714
2714
|
class: "ecan-range-picker",
|
|
2715
2715
|
style: G(e.style)
|
|
2716
2716
|
}, [
|
|
@@ -2778,7 +2778,7 @@ const Ki = /* @__PURE__ */ oe(Yi, [["render", Qi], ["__scopeId", "data-v-5a46a4a
|
|
|
2778
2778
|
});
|
|
2779
2779
|
function or(e, o, t, n, a, l) {
|
|
2780
2780
|
const i = Z("a-button");
|
|
2781
|
-
return O(),
|
|
2781
|
+
return O(), F("div", {
|
|
2782
2782
|
class: "ecan-button",
|
|
2783
2783
|
style: G(e.style)
|
|
2784
2784
|
}, [
|
|
@@ -2861,7 +2861,7 @@ const nr = /* @__PURE__ */ oe(tr, [["render", or]]), ar = ne(nr), rn = {
|
|
|
2861
2861
|
type: e.type,
|
|
2862
2862
|
value: n
|
|
2863
2863
|
});
|
|
2864
|
-
const
|
|
2864
|
+
const p = ue(e)("checkboxChange", () => {
|
|
2865
2865
|
const x = r(e.id);
|
|
2866
2866
|
c(e.id, { ...x, RECORD: n });
|
|
2867
2867
|
}), { setRequest: m } = j(pe, {
|
|
@@ -2878,13 +2878,13 @@ const nr = /* @__PURE__ */ oe(tr, [["render", or]]), ar = ne(nr), rn = {
|
|
|
2878
2878
|
myOption: t,
|
|
2879
2879
|
style: o,
|
|
2880
2880
|
myValue: n,
|
|
2881
|
-
checkboxChange:
|
|
2881
|
+
checkboxChange: p
|
|
2882
2882
|
};
|
|
2883
2883
|
}
|
|
2884
2884
|
});
|
|
2885
2885
|
function rr(e, o, t, n, a, l) {
|
|
2886
2886
|
const i = Z("a-checkbox-group");
|
|
2887
|
-
return O(),
|
|
2887
|
+
return O(), F("div", {
|
|
2888
2888
|
class: "ecan-checkbox",
|
|
2889
2889
|
style: G(e.style)
|
|
2890
2890
|
}, [
|
|
@@ -2926,23 +2926,23 @@ const sr = /* @__PURE__ */ oe(ir, [["render", rr]]), cr = ne(sr), cn = {
|
|
|
2926
2926
|
setup(e) {
|
|
2927
2927
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = ke(e), a = I(e.data || []), l = I();
|
|
2928
2928
|
K(() => [e.value, e.mode, e.selectFirstOption], () => {
|
|
2929
|
-
const { mode: d, selectFirstOption:
|
|
2930
|
-
d === "multiple" || d === "tags" || d === "combobox" ? y ? l.value = y.split(",") :
|
|
2929
|
+
const { mode: d, selectFirstOption: S, value: y } = e;
|
|
2930
|
+
d === "multiple" || d === "tags" || d === "combobox" ? y ? l.value = y.split(",") : S && (l.value = [w(a)[0]]) : y ? l.value = y : S && (l.value = w(a)[0]);
|
|
2931
2931
|
}, {
|
|
2932
2932
|
immediate: !0
|
|
2933
2933
|
});
|
|
2934
|
-
const i = e.dataFieldNames, r = (d,
|
|
2934
|
+
const i = e.dataFieldNames, r = (d, S) => {
|
|
2935
2935
|
const y = i.label, T = i.value;
|
|
2936
2936
|
let M;
|
|
2937
|
-
const
|
|
2938
|
-
return
|
|
2937
|
+
const _ = S[y], R = S[T];
|
|
2938
|
+
return _ != null ? M = _ : R != null && (M = R), (M == null ? void 0 : M.toLowerCase().indexOf(d == null ? void 0 : d.toLowerCase())) >= 0;
|
|
2939
2939
|
}, c = I(!1), f = async () => {
|
|
2940
|
-
var d,
|
|
2940
|
+
var d, S;
|
|
2941
2941
|
if (e.dataType === "request") {
|
|
2942
2942
|
c.value = !0;
|
|
2943
2943
|
try {
|
|
2944
2944
|
const y = await n();
|
|
2945
|
-
a.value = ((
|
|
2945
|
+
a.value = ((S = (d = y == null ? void 0 : y.data) == null ? void 0 : d.data) == null ? void 0 : S.rows) || [];
|
|
2946
2946
|
const T = w(a)[0];
|
|
2947
2947
|
e.value === "" && T != null && (l.value = T[i.value]);
|
|
2948
2948
|
} catch (y) {
|
|
@@ -2951,14 +2951,14 @@ const sr = /* @__PURE__ */ oe(ir, [["render", rr]]), cr = ne(sr), cn = {
|
|
|
2951
2951
|
c.value = !1;
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
|
-
}, { getGlobalModel:
|
|
2954
|
+
}, { getGlobalModel: p, setGlobalModel: m } = j(ge, {
|
|
2955
2955
|
// @ts-ignore
|
|
2956
2956
|
// eslint-disable-next-line no-void
|
|
2957
2957
|
getGlobalModel: (d) => {
|
|
2958
2958
|
},
|
|
2959
2959
|
// @ts-ignore
|
|
2960
2960
|
// eslint-disable-next-line no-void
|
|
2961
|
-
setGlobalModel: (d,
|
|
2961
|
+
setGlobalModel: (d, S) => {
|
|
2962
2962
|
}
|
|
2963
2963
|
});
|
|
2964
2964
|
m(e.id, {
|
|
@@ -2966,8 +2966,8 @@ const sr = /* @__PURE__ */ oe(ir, [["render", rr]]), cr = ne(sr), cn = {
|
|
|
2966
2966
|
value: l
|
|
2967
2967
|
});
|
|
2968
2968
|
const u = ue(e)("selectChange", () => {
|
|
2969
|
-
const d = e.id,
|
|
2970
|
-
m(d, { ...
|
|
2969
|
+
const d = e.id, S = p(d);
|
|
2970
|
+
m(d, { ...S, RECORD: l });
|
|
2971
2971
|
});
|
|
2972
2972
|
me(e, {
|
|
2973
2973
|
selectChange: u,
|
|
@@ -2976,7 +2976,7 @@ const sr = /* @__PURE__ */ oe(ir, [["render", rr]]), cr = ne(sr), cn = {
|
|
|
2976
2976
|
const { setRequest: s } = j(pe, {
|
|
2977
2977
|
// @ts-ignore
|
|
2978
2978
|
// eslint-disable-next-line no-void
|
|
2979
|
-
setRequest: ({ id: d, sortNum:
|
|
2979
|
+
setRequest: ({ id: d, sortNum: S, requestFn: y }) => {
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
2982
2982
|
return s({
|
|
@@ -2996,7 +2996,7 @@ const sr = /* @__PURE__ */ oe(ir, [["render", rr]]), cr = ne(sr), cn = {
|
|
|
2996
2996
|
});
|
|
2997
2997
|
function fr(e, o, t, n, a, l) {
|
|
2998
2998
|
const i = Z("a-select");
|
|
2999
|
-
return O(),
|
|
2999
|
+
return O(), F("div", {
|
|
3000
3000
|
class: "ecan-select",
|
|
3001
3001
|
style: G(e.style)
|
|
3002
3002
|
}, [
|
|
@@ -3062,10 +3062,10 @@ const mr = /* @__PURE__ */ oe(ur, [["render", fr], ["__scopeId", "data-v-c0b8fe0
|
|
|
3062
3062
|
},
|
|
3063
3063
|
setup(e) {
|
|
3064
3064
|
const o = re(e), t = I(e.data), n = (u, s) => {
|
|
3065
|
-
const d = e.dataFieldNames,
|
|
3065
|
+
const d = e.dataFieldNames, S = d.label, y = d.value;
|
|
3066
3066
|
let T;
|
|
3067
|
-
const M = s[
|
|
3068
|
-
return M != null ? T = M :
|
|
3067
|
+
const M = s[S], _ = s[y];
|
|
3068
|
+
return M != null ? T = M : _ != null && (T = _), (T == null ? void 0 : T.toLowerCase().indexOf(u == null ? void 0 : u.toLowerCase())) >= 0;
|
|
3069
3069
|
}, a = I();
|
|
3070
3070
|
K(() => [e.multiple, e.value, e.treeCheckable, e.selectFirstOption], () => {
|
|
3071
3071
|
const { multiple: u, value: s, selectFirstOption: d } = e;
|
|
@@ -3080,8 +3080,8 @@ const mr = /* @__PURE__ */ oe(ur, [["render", fr], ["__scopeId", "data-v-c0b8fe0
|
|
|
3080
3080
|
try {
|
|
3081
3081
|
const d = await i();
|
|
3082
3082
|
t.value = ((s = (u = d == null ? void 0 : d.data) == null ? void 0 : u.data) == null ? void 0 : s.rows) || [];
|
|
3083
|
-
const
|
|
3084
|
-
e.value === "" &&
|
|
3083
|
+
const S = w(t)[0];
|
|
3084
|
+
e.value === "" && S != null && (a.value = S[e.dataFieldNames.value]);
|
|
3085
3085
|
} catch (d) {
|
|
3086
3086
|
console.error(d);
|
|
3087
3087
|
} finally {
|
|
@@ -3132,7 +3132,7 @@ const mr = /* @__PURE__ */ oe(ur, [["render", fr], ["__scopeId", "data-v-c0b8fe0
|
|
|
3132
3132
|
};
|
|
3133
3133
|
function br(e, o, t, n, a, l) {
|
|
3134
3134
|
const i = Z("a-tree-select");
|
|
3135
|
-
return O(),
|
|
3135
|
+
return O(), F("div", {
|
|
3136
3136
|
class: "ecan-tree-select",
|
|
3137
3137
|
style: G(n.style)
|
|
3138
3138
|
}, [
|
|
@@ -3263,12 +3263,12 @@ const vr = /* @__PURE__ */ oe(yr, [["render", br], ["__scopeId", "data-v-3723642
|
|
|
3263
3263
|
bottom: "bottom"
|
|
3264
3264
|
}[B]
|
|
3265
3265
|
};
|
|
3266
|
-
}), a = e.width, l = e.height, i = e.originalWidth, r = e.originalHeight, c = I("80%"), f = I(0),
|
|
3266
|
+
}), a = e.width, l = e.height, i = e.originalWidth, r = e.originalHeight, c = I("80%"), f = I(0), p = I(), m = I(0), x = I({}), u = re(e), s = I({}), d = I(!1), S = I();
|
|
3267
3267
|
let y;
|
|
3268
3268
|
const T = () => {
|
|
3269
|
-
|
|
3269
|
+
p.value = parseFloat(a) / parseFloat(i);
|
|
3270
3270
|
const B = parseFloat(l) / parseFloat(r), V = document.body.offsetWidth, Y = document.body.offsetHeight;
|
|
3271
|
-
f.value = V * w(
|
|
3271
|
+
f.value = V * w(p), m.value = Y * B, c.value = `${w(p) * 100}%`, x.value = {
|
|
3272
3272
|
width: `${w(f)}px`,
|
|
3273
3273
|
height: `${w(m)}px`
|
|
3274
3274
|
}, s.value = {
|
|
@@ -3278,54 +3278,54 @@ const vr = /* @__PURE__ */ oe(yr, [["render", br], ["__scopeId", "data-v-3723642
|
|
|
3278
3278
|
};
|
|
3279
3279
|
}, M = Rt(() => {
|
|
3280
3280
|
T();
|
|
3281
|
-
}, 100),
|
|
3281
|
+
}, 100), _ = () => {
|
|
3282
3282
|
const B = window.MutationObserver;
|
|
3283
3283
|
y = new B(M), y.observe(document.body, {
|
|
3284
3284
|
attributes: !0,
|
|
3285
3285
|
attributeFilter: ["style"],
|
|
3286
3286
|
attributeOldValue: !0
|
|
3287
3287
|
});
|
|
3288
|
-
},
|
|
3288
|
+
}, R = () => {
|
|
3289
3289
|
y && (y.disconnect(), y.takeRecords(), y = null);
|
|
3290
|
-
}, g = I(!1), { touchRequest:
|
|
3290
|
+
}, g = I(!1), { touchRequest: k } = j(pe, {
|
|
3291
3291
|
// @ts-ignore
|
|
3292
3292
|
// eslint-disable-next-line no-void
|
|
3293
3293
|
touchRequest: () => {
|
|
3294
3294
|
}
|
|
3295
|
-
}),
|
|
3295
|
+
}), A = () => {
|
|
3296
3296
|
g.value = !0;
|
|
3297
3297
|
}, L = () => {
|
|
3298
3298
|
o("close"), g.value = !1;
|
|
3299
|
-
},
|
|
3299
|
+
}, C = () => {
|
|
3300
3300
|
L();
|
|
3301
3301
|
}, h = () => {
|
|
3302
3302
|
L();
|
|
3303
|
-
}, { setModalModel:
|
|
3303
|
+
}, { setModalModel: b, pushUseModalIds: v, popUseModalIds: P } = j(Po, {
|
|
3304
3304
|
pushUseModalIds: (B) => {
|
|
3305
3305
|
},
|
|
3306
3306
|
popUseModalIds: () => {
|
|
3307
3307
|
},
|
|
3308
3308
|
setModalModel: (B, V) => {
|
|
3309
3309
|
}
|
|
3310
|
-
}),
|
|
3310
|
+
}), D = () => {
|
|
3311
3311
|
const B = e.id;
|
|
3312
3312
|
let V = [];
|
|
3313
3313
|
const Y = e.componentList;
|
|
3314
|
-
console.log("componentList", Y), Array.isArray(Y) && (V = Y.map((Ae) => Ae.id),
|
|
3314
|
+
console.log("componentList", Y), Array.isArray(Y) && (V = Y.map((Ae) => Ae.id), b(B, [...new Set(V)]));
|
|
3315
3315
|
};
|
|
3316
3316
|
K(() => g.value, async (B) => {
|
|
3317
|
-
B ? (d.value = !1,
|
|
3318
|
-
T(), window.addEventListener("resize", M),
|
|
3319
|
-
}),
|
|
3317
|
+
B ? (d.value = !1, v(e.id), D(), await bt(() => {
|
|
3318
|
+
T(), window.addEventListener("resize", M), _(), d.value = !0;
|
|
3319
|
+
}), k()) : (P(), window.removeEventListener("resize", M), R());
|
|
3320
3320
|
});
|
|
3321
|
-
const $ = q(() => w(
|
|
3321
|
+
const $ = q(() => w(p) >= 1), N = q(() => e.fullModal), J = q(() => {
|
|
3322
3322
|
let B = "ecan-modal";
|
|
3323
3323
|
return w($) && (B += " ecan-full-width-modal"), w(N) && (B += " ecan-full-modal"), B;
|
|
3324
3324
|
});
|
|
3325
3325
|
return me(e, {
|
|
3326
|
-
showModal:
|
|
3326
|
+
showModal: A
|
|
3327
3327
|
}), {
|
|
3328
|
-
modalRef:
|
|
3328
|
+
modalRef: S,
|
|
3329
3329
|
containStyle: x,
|
|
3330
3330
|
contentStyle: s,
|
|
3331
3331
|
getContainer: t,
|
|
@@ -3334,8 +3334,8 @@ const vr = /* @__PURE__ */ oe(yr, [["render", br], ["__scopeId", "data-v-3723642
|
|
|
3334
3334
|
isFullModal: N,
|
|
3335
3335
|
style: u,
|
|
3336
3336
|
visible: g,
|
|
3337
|
-
showModal:
|
|
3338
|
-
onOk:
|
|
3337
|
+
showModal: A,
|
|
3338
|
+
onOk: C,
|
|
3339
3339
|
onCancel: h,
|
|
3340
3340
|
isFullWidth: $,
|
|
3341
3341
|
wrapClassName: J,
|
|
@@ -3366,7 +3366,7 @@ function kr(e, o, t, n, a, l) {
|
|
|
3366
3366
|
ref: "containRef",
|
|
3367
3367
|
style: G(e.containStyle)
|
|
3368
3368
|
}, [
|
|
3369
|
-
e.ready ? (O(),
|
|
3369
|
+
e.ready ? (O(), F("div", {
|
|
3370
3370
|
key: 0,
|
|
3371
3371
|
class: "content",
|
|
3372
3372
|
style: G(e.contentStyle)
|
|
@@ -3378,7 +3378,7 @@ function kr(e, o, t, n, a, l) {
|
|
|
3378
3378
|
padding: "20px 30px"
|
|
3379
3379
|
})
|
|
3380
3380
|
}, [
|
|
3381
|
-
e.title ? (O(),
|
|
3381
|
+
e.title ? (O(), F("div", {
|
|
3382
3382
|
key: 0,
|
|
3383
3383
|
class: "ant-modal-title",
|
|
3384
3384
|
style: G({
|
|
@@ -3391,8 +3391,8 @@ function kr(e, o, t, n, a, l) {
|
|
|
3391
3391
|
onClick: e.onCancel
|
|
3392
3392
|
}, null, 8, ["onClick"])
|
|
3393
3393
|
], 4),
|
|
3394
|
-
e.componentList.length ? (O(),
|
|
3395
|
-
(O(!0),
|
|
3394
|
+
e.componentList.length ? (O(), F("div", xr, [
|
|
3395
|
+
(O(!0), F(Me, null, Oe(e.componentList, (c, f) => (O(), ze(Jn(c.type), Yn({
|
|
3396
3396
|
key: c.id + f
|
|
3397
3397
|
}, c), null, 16))), 128))
|
|
3398
3398
|
])) : tt(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
@@ -3423,12 +3423,12 @@ const _r = te({
|
|
|
3423
3423
|
},
|
|
3424
3424
|
setup(e, { expose: o }) {
|
|
3425
3425
|
const t = I(!1), n = re(e), a = I([]), l = I(), i = q(() => {
|
|
3426
|
-
let { data:
|
|
3426
|
+
let { data: k = [] } = w(a)[0] || {};
|
|
3427
3427
|
if (Array.isArray(e.colors)) {
|
|
3428
|
-
const
|
|
3429
|
-
|
|
3430
|
-
label:
|
|
3431
|
-
...
|
|
3428
|
+
const A = e.isUseLabelColors, L = e.colors;
|
|
3429
|
+
k = k.map((C, h) => ({
|
|
3430
|
+
label: A ? { color: L[h] } : {},
|
|
3431
|
+
...C
|
|
3432
3432
|
}));
|
|
3433
3433
|
}
|
|
3434
3434
|
return {
|
|
@@ -3452,8 +3452,8 @@ const _r = te({
|
|
|
3452
3452
|
title: "放大",
|
|
3453
3453
|
icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
|
|
3454
3454
|
onclick() {
|
|
3455
|
-
var
|
|
3456
|
-
t.value = !0, (
|
|
3455
|
+
var A;
|
|
3456
|
+
t.value = !0, (A = l.value) == null || A.showModal();
|
|
3457
3457
|
}
|
|
3458
3458
|
},
|
|
3459
3459
|
myInfo: {
|
|
@@ -3485,20 +3485,20 @@ const _r = te({
|
|
|
3485
3485
|
tooltip: {
|
|
3486
3486
|
show: e.tooltipShow,
|
|
3487
3487
|
trigger: e.tooltipTrigger,
|
|
3488
|
-
formatter: (
|
|
3489
|
-
const { marker: L, seriesName:
|
|
3488
|
+
formatter: (A) => {
|
|
3489
|
+
const { marker: L, seriesName: C, name: h, value: b, percent: v, data: P } = A || {};
|
|
3490
3490
|
return de(
|
|
3491
3491
|
e.tooltipFormatter,
|
|
3492
3492
|
{
|
|
3493
3493
|
textData: {
|
|
3494
3494
|
marker: L,
|
|
3495
3495
|
name: h,
|
|
3496
|
-
value:
|
|
3497
|
-
percent:
|
|
3498
|
-
a:
|
|
3496
|
+
value: b,
|
|
3497
|
+
percent: v,
|
|
3498
|
+
a: C,
|
|
3499
3499
|
b: h,
|
|
3500
|
-
c:
|
|
3501
|
-
d:
|
|
3500
|
+
c: b,
|
|
3501
|
+
d: v,
|
|
3502
3502
|
...P
|
|
3503
3503
|
}
|
|
3504
3504
|
},
|
|
@@ -3526,7 +3526,7 @@ const _r = te({
|
|
|
3526
3526
|
color: e.colors,
|
|
3527
3527
|
series: [
|
|
3528
3528
|
{
|
|
3529
|
-
data:
|
|
3529
|
+
data: k,
|
|
3530
3530
|
type: "pie",
|
|
3531
3531
|
radius: [e.innerRadius, e.outerRadius],
|
|
3532
3532
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3566,65 +3566,65 @@ const _r = te({
|
|
|
3566
3566
|
}, { getGlobalModel: c, setGlobalModel: f } = j(ge, {
|
|
3567
3567
|
// @ts-ignore
|
|
3568
3568
|
// eslint-disable-next-line no-void
|
|
3569
|
-
getGlobalModel: (
|
|
3569
|
+
getGlobalModel: (k) => {
|
|
3570
3570
|
},
|
|
3571
3571
|
// @ts-ignore
|
|
3572
3572
|
// eslint-disable-next-line no-void
|
|
3573
|
-
setGlobalModel: (
|
|
3573
|
+
setGlobalModel: (k, A) => {
|
|
3574
3574
|
}
|
|
3575
|
-
}), { pageMode:
|
|
3575
|
+
}), { pageMode: p } = j(ve, {
|
|
3576
3576
|
pageMode: "normal"
|
|
3577
|
-
}), m = (
|
|
3578
|
-
const { dataset: L } = et(
|
|
3577
|
+
}), m = (k = [], A) => {
|
|
3578
|
+
const { dataset: L } = et(k, A);
|
|
3579
3579
|
a.value = L;
|
|
3580
|
-
}, x = (
|
|
3581
|
-
const L = et(
|
|
3580
|
+
}, x = (k = [], A) => {
|
|
3581
|
+
const L = et(k, A);
|
|
3582
3582
|
a.value = L.dataset;
|
|
3583
3583
|
};
|
|
3584
|
-
K(() => e.data, (
|
|
3585
|
-
(e.dataType === "static" || w(
|
|
3584
|
+
K(() => e.data, (k) => {
|
|
3585
|
+
(e.dataType === "static" || w(p) === "design") && m(k);
|
|
3586
3586
|
}, {
|
|
3587
3587
|
immediate: !0,
|
|
3588
3588
|
deep: !0
|
|
3589
3589
|
});
|
|
3590
3590
|
const u = I(!1), s = ke(e), d = async () => {
|
|
3591
|
-
var
|
|
3591
|
+
var k, A;
|
|
3592
3592
|
if (e.dataType === "request")
|
|
3593
3593
|
try {
|
|
3594
3594
|
u.value = !0;
|
|
3595
3595
|
const L = await s();
|
|
3596
|
-
m((
|
|
3596
|
+
m((A = (k = L == null ? void 0 : L.data) == null ? void 0 : k.data) == null ? void 0 : A.rows, e.valueTypeDataFieldNames);
|
|
3597
3597
|
} catch (L) {
|
|
3598
3598
|
console.error(L);
|
|
3599
3599
|
} finally {
|
|
3600
3600
|
u.value = !1;
|
|
3601
3601
|
}
|
|
3602
|
-
}, y = ue(e)("click", (
|
|
3603
|
-
const
|
|
3604
|
-
f(e.id, { ...
|
|
3602
|
+
}, y = ue(e)("click", (k) => {
|
|
3603
|
+
const A = c(e.id);
|
|
3604
|
+
f(e.id, { ...A, RECORD: k == null ? void 0 : k.data });
|
|
3605
3605
|
}), T = it(e), M = async () => {
|
|
3606
|
-
var
|
|
3606
|
+
var k;
|
|
3607
3607
|
try {
|
|
3608
3608
|
u.value = !0;
|
|
3609
|
-
const
|
|
3609
|
+
const A = await T(), { data: L } = A.data || {};
|
|
3610
3610
|
if (L) {
|
|
3611
|
-
const { columns:
|
|
3612
|
-
let
|
|
3613
|
-
if (
|
|
3614
|
-
const
|
|
3615
|
-
|
|
3616
|
-
name:
|
|
3617
|
-
value:
|
|
3611
|
+
const { columns: C = [], rows: h = [] } = ((k = A == null ? void 0 : A.data) == null ? void 0 : k.data) ?? {};
|
|
3612
|
+
let b = [];
|
|
3613
|
+
if (C.length > 0) {
|
|
3614
|
+
const v = C[0], P = C[1];
|
|
3615
|
+
b = h.map((D) => ({
|
|
3616
|
+
name: D[v],
|
|
3617
|
+
value: D[P]
|
|
3618
3618
|
}));
|
|
3619
3619
|
}
|
|
3620
|
-
x(
|
|
3620
|
+
x(b);
|
|
3621
3621
|
}
|
|
3622
|
-
} catch (
|
|
3623
|
-
console.error(
|
|
3622
|
+
} catch (A) {
|
|
3623
|
+
console.error(A);
|
|
3624
3624
|
} finally {
|
|
3625
3625
|
u.value = !1;
|
|
3626
3626
|
}
|
|
3627
|
-
},
|
|
3627
|
+
}, _ = () => {
|
|
3628
3628
|
switch (e.dataType) {
|
|
3629
3629
|
case "indicator":
|
|
3630
3630
|
M();
|
|
@@ -3636,21 +3636,21 @@ const _r = te({
|
|
|
3636
3636
|
};
|
|
3637
3637
|
me(e, {
|
|
3638
3638
|
resetRecord: () => {
|
|
3639
|
-
const
|
|
3640
|
-
f(
|
|
3639
|
+
const k = e.id, A = c(k);
|
|
3640
|
+
f(k, { ...A, RECORD: "" });
|
|
3641
3641
|
},
|
|
3642
|
-
refreshData:
|
|
3642
|
+
refreshData: _,
|
|
3643
3643
|
click: y
|
|
3644
3644
|
}), o({
|
|
3645
|
-
refreshData:
|
|
3645
|
+
refreshData: _
|
|
3646
3646
|
});
|
|
3647
3647
|
const { setRequest: g } = j(pe, {
|
|
3648
|
-
setRequest: (
|
|
3648
|
+
setRequest: (k) => {
|
|
3649
3649
|
}
|
|
3650
3650
|
});
|
|
3651
3651
|
return typeof g == "function" && g({
|
|
3652
3652
|
id: e.id,
|
|
3653
|
-
requestFn:
|
|
3653
|
+
requestFn: _,
|
|
3654
3654
|
sortNum: e.requestSort
|
|
3655
3655
|
}), {
|
|
3656
3656
|
option: i,
|
|
@@ -3664,7 +3664,7 @@ const _r = te({
|
|
|
3664
3664
|
});
|
|
3665
3665
|
function Tr(e, o, t, n, a, l) {
|
|
3666
3666
|
const i = Z("echarts"), r = Z("spin"), c = Z("ecan-modal");
|
|
3667
|
-
return O(),
|
|
3667
|
+
return O(), F("div", {
|
|
3668
3668
|
style: G(e.style)
|
|
3669
3669
|
}, [
|
|
3670
3670
|
W(r, { spinning: e.loading }, {
|
|
@@ -3792,7 +3792,7 @@ const Er = te({
|
|
|
3792
3792
|
},
|
|
3793
3793
|
setup(e, { expose: o }) {
|
|
3794
3794
|
const t = I(!1), n = re(e), a = I([]), l = I([]), i = I(), r = q(() => t.value ? Ge : 12), c = q(() => {
|
|
3795
|
-
const L = e.xAxisLabelFormatter,
|
|
3795
|
+
const L = e.xAxisLabelFormatter, C = e.yAxisLabelFormatter;
|
|
3796
3796
|
return {
|
|
3797
3797
|
toolbox: {
|
|
3798
3798
|
show: e.toolboxShow,
|
|
@@ -3851,12 +3851,12 @@ const Er = te({
|
|
|
3851
3851
|
},
|
|
3852
3852
|
show: e.tooltipShow,
|
|
3853
3853
|
formatter: (h) => {
|
|
3854
|
-
const
|
|
3855
|
-
let
|
|
3854
|
+
const b = h.length;
|
|
3855
|
+
let v = "", P = e.tooltipFormatter;
|
|
3856
3856
|
P === "" && (P = "{marker} {a} {c}");
|
|
3857
|
-
for (let
|
|
3858
|
-
const { marker: $, seriesName: N, name: J, value: B, data: V } = h[
|
|
3859
|
-
|
|
3857
|
+
for (let D = 0; D < b; D++) {
|
|
3858
|
+
const { marker: $, seriesName: N, name: J, value: B, data: V } = h[D] || {};
|
|
3859
|
+
D === 0 && (v += `${J}<br/>`), v += de(
|
|
3860
3860
|
P,
|
|
3861
3861
|
{
|
|
3862
3862
|
textData: {
|
|
@@ -3873,26 +3873,26 @@ const Er = te({
|
|
|
3873
3873
|
useNewline: !0,
|
|
3874
3874
|
useSpace: !0
|
|
3875
3875
|
}
|
|
3876
|
-
),
|
|
3876
|
+
), v += "<br/>";
|
|
3877
3877
|
}
|
|
3878
|
-
return
|
|
3878
|
+
return v;
|
|
3879
3879
|
}
|
|
3880
3880
|
},
|
|
3881
3881
|
xAxis: {
|
|
3882
3882
|
type: "category",
|
|
3883
3883
|
data: w(l).map((h) => {
|
|
3884
|
-
let
|
|
3885
|
-
return h && typeof h == "object" ?
|
|
3884
|
+
let b = {};
|
|
3885
|
+
return h && typeof h == "object" ? b = {
|
|
3886
3886
|
...h,
|
|
3887
3887
|
textStyle: {
|
|
3888
3888
|
fontSize: r.value
|
|
3889
3889
|
}
|
|
3890
|
-
} :
|
|
3890
|
+
} : b = {
|
|
3891
3891
|
value: h,
|
|
3892
3892
|
textStyle: {
|
|
3893
3893
|
fontSize: r.value
|
|
3894
3894
|
}
|
|
3895
|
-
},
|
|
3895
|
+
}, b;
|
|
3896
3896
|
}),
|
|
3897
3897
|
minInterval: e.xAxisMinInterval,
|
|
3898
3898
|
splitLine: {
|
|
@@ -3933,7 +3933,7 @@ const Er = te({
|
|
|
3933
3933
|
fontSize: r.value,
|
|
3934
3934
|
color: e.yAxisLabelColor,
|
|
3935
3935
|
formatter(h) {
|
|
3936
|
-
return Ne(
|
|
3936
|
+
return Ne(C, h);
|
|
3937
3937
|
}
|
|
3938
3938
|
},
|
|
3939
3939
|
axisLine: {
|
|
@@ -3956,32 +3956,32 @@ const Er = te({
|
|
|
3956
3956
|
};
|
|
3957
3957
|
}), f = () => {
|
|
3958
3958
|
t.value = !1;
|
|
3959
|
-
}, { getGlobalModel:
|
|
3959
|
+
}, { getGlobalModel: p, setGlobalModel: m } = j(ge, {
|
|
3960
3960
|
// @ts-ignore
|
|
3961
3961
|
// eslint-disable-next-line no-void
|
|
3962
3962
|
getGlobalModel: (L) => {
|
|
3963
3963
|
},
|
|
3964
3964
|
// @ts-ignore
|
|
3965
3965
|
// eslint-disable-next-line no-void
|
|
3966
|
-
setGlobalModel: (L,
|
|
3966
|
+
setGlobalModel: (L, C) => {
|
|
3967
3967
|
}
|
|
3968
3968
|
}), { pageMode: x } = j(ve, {
|
|
3969
3969
|
pageMode: "normal"
|
|
3970
|
-
}), u = (L = [],
|
|
3970
|
+
}), u = (L = [], C = !1) => {
|
|
3971
3971
|
let h;
|
|
3972
3972
|
if (e.dataFieldConfigType === "key") {
|
|
3973
|
-
const
|
|
3974
|
-
h = qe(L,
|
|
3973
|
+
const D = C ? e.keyTypeDataFieldNames : null;
|
|
3974
|
+
h = qe(L, D);
|
|
3975
3975
|
} else if (e.dataFieldConfigType === "value") {
|
|
3976
|
-
const
|
|
3977
|
-
h = et(L,
|
|
3976
|
+
const D = C ? e.valueTypeDataFieldNames : null;
|
|
3977
|
+
h = et(L, D);
|
|
3978
3978
|
}
|
|
3979
3979
|
l.value = h.dimensions;
|
|
3980
|
-
const
|
|
3981
|
-
for (let
|
|
3982
|
-
|
|
3980
|
+
const b = h.dataset, v = [], P = b.length;
|
|
3981
|
+
for (let D = 0; D < P; D++)
|
|
3982
|
+
v.push({
|
|
3983
3983
|
type: "line",
|
|
3984
|
-
...
|
|
3984
|
+
...b[D],
|
|
3985
3985
|
symbolSize: e.symbolSize,
|
|
3986
3986
|
smooth: e.smooth,
|
|
3987
3987
|
areaStyle: {
|
|
@@ -4004,13 +4004,13 @@ const Er = te({
|
|
|
4004
4004
|
width: e.lineStyleWidth
|
|
4005
4005
|
}
|
|
4006
4006
|
});
|
|
4007
|
-
a.value =
|
|
4008
|
-
}, s = (L = [],
|
|
4009
|
-
const
|
|
4010
|
-
l.value =
|
|
4011
|
-
const P =
|
|
4007
|
+
a.value = v;
|
|
4008
|
+
}, s = (L = [], C, h = !1) => {
|
|
4009
|
+
const v = qe(L, h ? C : null);
|
|
4010
|
+
l.value = v.dimensions;
|
|
4011
|
+
const P = v.dataset, D = [], $ = P.length;
|
|
4012
4012
|
for (let N = 0; N < $; N++)
|
|
4013
|
-
|
|
4013
|
+
D.push({
|
|
4014
4014
|
type: "line",
|
|
4015
4015
|
...P[N],
|
|
4016
4016
|
symbolSize: e.symbolSize,
|
|
@@ -4019,7 +4019,7 @@ const Er = te({
|
|
|
4019
4019
|
width: e.lineStyleWidth
|
|
4020
4020
|
}
|
|
4021
4021
|
});
|
|
4022
|
-
a.value =
|
|
4022
|
+
a.value = D;
|
|
4023
4023
|
};
|
|
4024
4024
|
K(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([L]) => {
|
|
4025
4025
|
(e.dataType === "static" || w(x) === "design") && u(L);
|
|
@@ -4027,43 +4027,43 @@ const Er = te({
|
|
|
4027
4027
|
immediate: !0,
|
|
4028
4028
|
deep: !0
|
|
4029
4029
|
});
|
|
4030
|
-
const d = I(!1),
|
|
4031
|
-
var L,
|
|
4030
|
+
const d = I(!1), S = ke(e), y = async () => {
|
|
4031
|
+
var L, C;
|
|
4032
4032
|
if (e.dataType === "request")
|
|
4033
4033
|
try {
|
|
4034
4034
|
d.value = !0;
|
|
4035
|
-
const h = await
|
|
4036
|
-
u((
|
|
4035
|
+
const h = await S();
|
|
4036
|
+
u((C = (L = h == null ? void 0 : h.data) == null ? void 0 : L.data) == null ? void 0 : C.rows, !0);
|
|
4037
4037
|
} catch (h) {
|
|
4038
4038
|
console.error(h);
|
|
4039
4039
|
} finally {
|
|
4040
4040
|
d.value = !1;
|
|
4041
4041
|
}
|
|
4042
4042
|
}, M = ue(e)("click", (L) => {
|
|
4043
|
-
const
|
|
4044
|
-
m(e.id, { ...
|
|
4045
|
-
}),
|
|
4043
|
+
const C = p(e.id);
|
|
4044
|
+
m(e.id, { ...C, RECORD: L == null ? void 0 : L.data });
|
|
4045
|
+
}), _ = it(e), R = async () => {
|
|
4046
4046
|
var L;
|
|
4047
4047
|
try {
|
|
4048
4048
|
d.value = !0;
|
|
4049
|
-
const
|
|
4050
|
-
let
|
|
4051
|
-
h.length > 0 && (
|
|
4049
|
+
const C = await _(), { columns: h = [], rows: b = [] } = ((L = C == null ? void 0 : C.data) == null ? void 0 : L.data) ?? {};
|
|
4050
|
+
let v;
|
|
4051
|
+
h.length > 0 && (v = {
|
|
4052
4052
|
name: h[0],
|
|
4053
4053
|
types: h.slice(1).map((P) => ({
|
|
4054
4054
|
label: P,
|
|
4055
4055
|
value: P
|
|
4056
4056
|
}))
|
|
4057
|
-
}), s(
|
|
4058
|
-
} catch (
|
|
4059
|
-
console.error(
|
|
4057
|
+
}), s(b, v, !0);
|
|
4058
|
+
} catch (C) {
|
|
4059
|
+
console.error(C);
|
|
4060
4060
|
} finally {
|
|
4061
4061
|
d.value = !1;
|
|
4062
4062
|
}
|
|
4063
4063
|
}, g = () => {
|
|
4064
4064
|
switch (e.dataType) {
|
|
4065
4065
|
case "indicator":
|
|
4066
|
-
|
|
4066
|
+
R();
|
|
4067
4067
|
break;
|
|
4068
4068
|
case "request":
|
|
4069
4069
|
y();
|
|
@@ -4073,16 +4073,16 @@ const Er = te({
|
|
|
4073
4073
|
me(e, {
|
|
4074
4074
|
refreshData: g,
|
|
4075
4075
|
resetRecord: () => {
|
|
4076
|
-
const L = e.id,
|
|
4077
|
-
m(L, { ...
|
|
4076
|
+
const L = e.id, C = p(L);
|
|
4077
|
+
m(L, { ...C, RECORD: "" });
|
|
4078
4078
|
},
|
|
4079
4079
|
click: M
|
|
4080
4080
|
});
|
|
4081
|
-
const { setRequest:
|
|
4081
|
+
const { setRequest: A } = j(pe, {
|
|
4082
4082
|
setRequest: (L) => {
|
|
4083
4083
|
}
|
|
4084
4084
|
});
|
|
4085
|
-
return typeof
|
|
4085
|
+
return typeof A == "function" && A({
|
|
4086
4086
|
id: e.id,
|
|
4087
4087
|
requestFn: g,
|
|
4088
4088
|
sortNum: e.requestSort
|
|
@@ -4100,7 +4100,7 @@ const Er = te({
|
|
|
4100
4100
|
});
|
|
4101
4101
|
function Or(e, o, t, n, a, l) {
|
|
4102
4102
|
const i = Z("echarts"), r = Z("spin"), c = Z("ecan-modal");
|
|
4103
|
-
return O(),
|
|
4103
|
+
return O(), F("div", {
|
|
4104
4104
|
style: G(e.style)
|
|
4105
4105
|
}, [
|
|
4106
4106
|
W(r, { spinning: e.loading }, {
|
|
@@ -4249,23 +4249,23 @@ const Rr = te({
|
|
|
4249
4249
|
},
|
|
4250
4250
|
setup(e, { expose: o }) {
|
|
4251
4251
|
const t = I(!1), n = re(e), a = I([]), l = I(), i = q(() => t.value ? Ge : 12), r = q(() => {
|
|
4252
|
-
const h = w(a),
|
|
4253
|
-
for (let P = 0; P <
|
|
4254
|
-
const
|
|
4252
|
+
const h = w(a), b = h.length, v = [];
|
|
4253
|
+
for (let P = 0; P < b; P++) {
|
|
4254
|
+
const D = {
|
|
4255
4255
|
...h[P],
|
|
4256
4256
|
type: "bar",
|
|
4257
4257
|
barWidth: e.barWidth
|
|
4258
4258
|
};
|
|
4259
|
-
e.isStack && (
|
|
4259
|
+
e.isStack && (D.stack = "stack"), D.label = {
|
|
4260
4260
|
show: e.labelShow,
|
|
4261
4261
|
fontSize: e.labelFontSize,
|
|
4262
4262
|
position: e.labelPosition,
|
|
4263
4263
|
color: e.labelColor
|
|
4264
|
-
},
|
|
4264
|
+
}, v.push(D);
|
|
4265
4265
|
}
|
|
4266
|
-
return
|
|
4267
|
-
}), c = I([]), f = I(!1),
|
|
4268
|
-
const h = e.yAxisLabelFormatter,
|
|
4266
|
+
return v;
|
|
4267
|
+
}), c = I([]), f = I(!1), p = q(() => {
|
|
4268
|
+
const h = e.yAxisLabelFormatter, b = e.xAxisLabelFormatter;
|
|
4269
4269
|
return {
|
|
4270
4270
|
toolbox: {
|
|
4271
4271
|
show: e.toolboxShow,
|
|
@@ -4287,8 +4287,8 @@ const Rr = te({
|
|
|
4287
4287
|
title: "放大",
|
|
4288
4288
|
icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
|
|
4289
4289
|
onclick() {
|
|
4290
|
-
var
|
|
4291
|
-
t.value = !0, (
|
|
4290
|
+
var v;
|
|
4291
|
+
t.value = !0, (v = l.value) == null || v.showModal();
|
|
4292
4292
|
}
|
|
4293
4293
|
},
|
|
4294
4294
|
myInfo: {
|
|
@@ -4320,13 +4320,13 @@ const Rr = te({
|
|
|
4320
4320
|
tooltip: {
|
|
4321
4321
|
trigger: "axis",
|
|
4322
4322
|
show: e.tooltipShow,
|
|
4323
|
-
formatter: (
|
|
4324
|
-
const P =
|
|
4325
|
-
let
|
|
4323
|
+
formatter: (v) => {
|
|
4324
|
+
const P = v.length;
|
|
4325
|
+
let D = "", $ = e.tooltipFormatter;
|
|
4326
4326
|
$ === "" && ($ = "{marker} {a} {c}");
|
|
4327
4327
|
for (let N = 0; N < P; N++) {
|
|
4328
|
-
const { marker: J, seriesName: B, name: V, value: Y, data: Ae } =
|
|
4329
|
-
N === 0 && (
|
|
4328
|
+
const { marker: J, seriesName: B, name: V, value: Y, data: Ae } = v[N] || {};
|
|
4329
|
+
N === 0 && (D += `${V}<br/>`), D += de(
|
|
4330
4330
|
$,
|
|
4331
4331
|
{
|
|
4332
4332
|
textData: {
|
|
@@ -4343,9 +4343,9 @@ const Rr = te({
|
|
|
4343
4343
|
useNewline: !0,
|
|
4344
4344
|
useSpace: !0
|
|
4345
4345
|
}
|
|
4346
|
-
),
|
|
4346
|
+
), D += "<br/>";
|
|
4347
4347
|
}
|
|
4348
|
-
return
|
|
4348
|
+
return D;
|
|
4349
4349
|
},
|
|
4350
4350
|
// valueFormatter: (value) => {
|
|
4351
4351
|
// return useVariablesInText(props.tooltipValueFormatter as string, { value })
|
|
@@ -4382,8 +4382,8 @@ const Rr = te({
|
|
|
4382
4382
|
rotate: e.xAxisLabelRotate,
|
|
4383
4383
|
width: e.xAxisLabelWidth,
|
|
4384
4384
|
overflow: e.xAxisLabelOverflow,
|
|
4385
|
-
formatter(
|
|
4386
|
-
return Ne(
|
|
4385
|
+
formatter(v) {
|
|
4386
|
+
return Ne(b, v);
|
|
4387
4387
|
}
|
|
4388
4388
|
},
|
|
4389
4389
|
axisLine: {
|
|
@@ -4412,8 +4412,8 @@ const Rr = te({
|
|
|
4412
4412
|
rotate: e.yAxisLabelRotate,
|
|
4413
4413
|
width: e.yAxisLabelWidth,
|
|
4414
4414
|
overflow: e.yAxisLabelOverflow,
|
|
4415
|
-
formatter(
|
|
4416
|
-
return Ne(h,
|
|
4415
|
+
formatter(v) {
|
|
4416
|
+
return Ne(h, v);
|
|
4417
4417
|
}
|
|
4418
4418
|
},
|
|
4419
4419
|
axisLine: {
|
|
@@ -4428,32 +4428,32 @@ const Rr = te({
|
|
|
4428
4428
|
pageMode: "normal"
|
|
4429
4429
|
}), x = () => {
|
|
4430
4430
|
t.value = !1;
|
|
4431
|
-
}, u = (h = [],
|
|
4432
|
-
let
|
|
4431
|
+
}, u = (h = [], b = !1) => {
|
|
4432
|
+
let v = {};
|
|
4433
4433
|
if (e.dataFieldConfigType === "key") {
|
|
4434
|
-
const P =
|
|
4435
|
-
|
|
4434
|
+
const P = b ? e.keyTypeDataFieldNames : null;
|
|
4435
|
+
v = qe(h, P);
|
|
4436
4436
|
} else if (e.dataFieldConfigType === "value") {
|
|
4437
|
-
const P =
|
|
4438
|
-
|
|
4437
|
+
const P = b ? e.valueTypeDataFieldNames : null;
|
|
4438
|
+
v = et(h, P);
|
|
4439
4439
|
}
|
|
4440
|
-
a.value =
|
|
4441
|
-
}, s = (h = [],
|
|
4442
|
-
const
|
|
4443
|
-
a.value =
|
|
4440
|
+
a.value = v.dataset, c.value = v.dimensions;
|
|
4441
|
+
}, s = (h = [], b, v = !1) => {
|
|
4442
|
+
const D = qe(h, v ? b : null);
|
|
4443
|
+
a.value = D.dataset, c.value = D.dimensions;
|
|
4444
4444
|
}, d = q(() => w(c).map((h) => {
|
|
4445
|
-
let
|
|
4446
|
-
return h && typeof h == "object" ?
|
|
4445
|
+
let b = {};
|
|
4446
|
+
return h && typeof h == "object" ? b = {
|
|
4447
4447
|
...h,
|
|
4448
4448
|
textStyle: {
|
|
4449
4449
|
fontSize: i.value
|
|
4450
4450
|
}
|
|
4451
|
-
} :
|
|
4451
|
+
} : b = {
|
|
4452
4452
|
value: h,
|
|
4453
4453
|
textStyle: {
|
|
4454
4454
|
fontSize: i.value
|
|
4455
4455
|
}
|
|
4456
|
-
},
|
|
4456
|
+
}, b;
|
|
4457
4457
|
}));
|
|
4458
4458
|
K(() => e.data, (h) => {
|
|
4459
4459
|
(e.dataType === "static" || w(m) === "design") && u(h);
|
|
@@ -4461,14 +4461,14 @@ const Rr = te({
|
|
|
4461
4461
|
immediate: !0,
|
|
4462
4462
|
deep: !0
|
|
4463
4463
|
});
|
|
4464
|
-
const
|
|
4465
|
-
var h,
|
|
4464
|
+
const S = ke(e), y = async () => {
|
|
4465
|
+
var h, b;
|
|
4466
4466
|
try {
|
|
4467
4467
|
f.value = !0;
|
|
4468
|
-
const
|
|
4469
|
-
u((
|
|
4470
|
-
} catch (
|
|
4471
|
-
console.error(
|
|
4468
|
+
const v = await S();
|
|
4469
|
+
u((b = (h = v == null ? void 0 : v.data) == null ? void 0 : h.data) == null ? void 0 : b.rows, !0);
|
|
4470
|
+
} catch (v) {
|
|
4471
|
+
console.error(v);
|
|
4472
4472
|
} finally {
|
|
4473
4473
|
f.value = !1;
|
|
4474
4474
|
}
|
|
@@ -4476,21 +4476,21 @@ const Rr = te({
|
|
|
4476
4476
|
var h;
|
|
4477
4477
|
try {
|
|
4478
4478
|
f.value = !0;
|
|
4479
|
-
const
|
|
4480
|
-
let
|
|
4481
|
-
|
|
4482
|
-
name:
|
|
4483
|
-
types:
|
|
4479
|
+
const b = await T(), { columns: v = [], rows: P = [] } = ((h = b == null ? void 0 : b.data) == null ? void 0 : h.data) ?? {};
|
|
4480
|
+
let D;
|
|
4481
|
+
v.length > 0 && (D = {
|
|
4482
|
+
name: v[0],
|
|
4483
|
+
types: v.slice(1).map(($) => ({
|
|
4484
4484
|
label: $,
|
|
4485
4485
|
value: $
|
|
4486
4486
|
}))
|
|
4487
|
-
}), s(P,
|
|
4488
|
-
} catch (
|
|
4489
|
-
console.error(
|
|
4487
|
+
}), s(P, D, !0);
|
|
4488
|
+
} catch (b) {
|
|
4489
|
+
console.error(b);
|
|
4490
4490
|
} finally {
|
|
4491
4491
|
f.value = !1;
|
|
4492
4492
|
}
|
|
4493
|
-
},
|
|
4493
|
+
}, _ = () => {
|
|
4494
4494
|
switch (e.dataType) {
|
|
4495
4495
|
case "indicator":
|
|
4496
4496
|
M();
|
|
@@ -4501,40 +4501,40 @@ const Rr = te({
|
|
|
4501
4501
|
}
|
|
4502
4502
|
};
|
|
4503
4503
|
o({
|
|
4504
|
-
refreshData:
|
|
4504
|
+
refreshData: _
|
|
4505
4505
|
});
|
|
4506
|
-
const
|
|
4506
|
+
const R = ue(e), { getGlobalModel: g, setGlobalModel: k } = j(ge, {
|
|
4507
4507
|
// @ts-ignore
|
|
4508
4508
|
// eslint-disable-next-line no-void
|
|
4509
4509
|
getGlobalModel: (h) => {
|
|
4510
4510
|
},
|
|
4511
4511
|
// @ts-ignore
|
|
4512
4512
|
// eslint-disable-next-line no-void
|
|
4513
|
-
setGlobalModel: (h,
|
|
4513
|
+
setGlobalModel: (h, b) => {
|
|
4514
4514
|
}
|
|
4515
|
-
}),
|
|
4516
|
-
const
|
|
4517
|
-
|
|
4515
|
+
}), A = R("click", (h) => {
|
|
4516
|
+
const b = g(e.id);
|
|
4517
|
+
k(e.id, { ...b, RECORD: h.data });
|
|
4518
4518
|
}), { setRequest: L } = j(pe, {
|
|
4519
4519
|
setRequest: (h) => {
|
|
4520
4520
|
}
|
|
4521
4521
|
});
|
|
4522
4522
|
return typeof L == "function" && L({
|
|
4523
4523
|
id: e.id,
|
|
4524
|
-
requestFn:
|
|
4524
|
+
requestFn: _,
|
|
4525
4525
|
sortNum: e.requestSort
|
|
4526
4526
|
}), me(e, {
|
|
4527
|
-
refreshData:
|
|
4528
|
-
click:
|
|
4527
|
+
refreshData: _,
|
|
4528
|
+
click: A,
|
|
4529
4529
|
resetRecord: () => {
|
|
4530
|
-
const h = e.id,
|
|
4531
|
-
|
|
4530
|
+
const h = e.id, b = g(h);
|
|
4531
|
+
k(h, { ...b, RECORD: "" });
|
|
4532
4532
|
}
|
|
4533
4533
|
}), {
|
|
4534
|
-
option:
|
|
4534
|
+
option: p,
|
|
4535
4535
|
style: n,
|
|
4536
|
-
refreshData:
|
|
4537
|
-
click:
|
|
4536
|
+
refreshData: _,
|
|
4537
|
+
click: A,
|
|
4538
4538
|
loading: f,
|
|
4539
4539
|
onClose: x,
|
|
4540
4540
|
ecanModal: l
|
|
@@ -4543,7 +4543,7 @@ const Rr = te({
|
|
|
4543
4543
|
});
|
|
4544
4544
|
function $r(e, o, t, n, a, l) {
|
|
4545
4545
|
const i = Z("echarts"), r = Z("spin"), c = Z("ecan-modal");
|
|
4546
|
-
return O(),
|
|
4546
|
+
return O(), F("div", {
|
|
4547
4547
|
class: "ecan-bar",
|
|
4548
4548
|
style: G(e.style)
|
|
4549
4549
|
}, [
|
|
@@ -4665,7 +4665,7 @@ const Ur = te({
|
|
|
4665
4665
|
},
|
|
4666
4666
|
setup(e) {
|
|
4667
4667
|
const o = I(!1), t = re(e), n = I([]), a = I(), l = q(() => o.value ? Ge : 12), i = q(() => {
|
|
4668
|
-
const
|
|
4668
|
+
const _ = e.xAxisLabelFormatter, R = e.yAxisLabelFormatter;
|
|
4669
4669
|
return {
|
|
4670
4670
|
toolbox: {
|
|
4671
4671
|
show: e.toolboxShow,
|
|
@@ -4733,7 +4733,7 @@ const Ur = te({
|
|
|
4733
4733
|
width: e.xAxisLabelWidth,
|
|
4734
4734
|
overflow: e.xAxisLabelOverflow,
|
|
4735
4735
|
formatter(g) {
|
|
4736
|
-
return Ne(
|
|
4736
|
+
return Ne(_, g);
|
|
4737
4737
|
}
|
|
4738
4738
|
},
|
|
4739
4739
|
axisLine: {
|
|
@@ -4756,7 +4756,7 @@ const Ur = te({
|
|
|
4756
4756
|
fontSize: l.value,
|
|
4757
4757
|
color: e.yAxisLabelColor,
|
|
4758
4758
|
formatter(g) {
|
|
4759
|
-
return Ne(
|
|
4759
|
+
return Ne(R, g);
|
|
4760
4760
|
}
|
|
4761
4761
|
},
|
|
4762
4762
|
axisLine: {
|
|
@@ -4770,14 +4770,14 @@ const Ur = te({
|
|
|
4770
4770
|
show: e.tooltipShow,
|
|
4771
4771
|
trigger: e.tooltipTrigger,
|
|
4772
4772
|
formatter(g) {
|
|
4773
|
-
var
|
|
4774
|
-
const { marker:
|
|
4773
|
+
var b;
|
|
4774
|
+
const { marker: k, seriesName: A } = g, L = ((b = g == null ? void 0 : g.data) == null ? void 0 : b.record) ?? {}, { name: C, value: h } = L;
|
|
4775
4775
|
return de(e.tooltipFormatter, {
|
|
4776
4776
|
textData: {
|
|
4777
|
-
marker:
|
|
4778
|
-
seriesName:
|
|
4779
|
-
a:
|
|
4780
|
-
b:
|
|
4777
|
+
marker: k,
|
|
4778
|
+
seriesName: A,
|
|
4779
|
+
a: A,
|
|
4780
|
+
b: C,
|
|
4781
4781
|
c: h,
|
|
4782
4782
|
...L
|
|
4783
4783
|
}
|
|
@@ -4811,31 +4811,31 @@ const Ur = te({
|
|
|
4811
4811
|
}), { getGlobalModel: r, setGlobalModel: c } = j(ge, {
|
|
4812
4812
|
// @ts-ignore
|
|
4813
4813
|
// eslint-disable-next-line no-void
|
|
4814
|
-
getGlobalModel: (
|
|
4814
|
+
getGlobalModel: (_) => {
|
|
4815
4815
|
},
|
|
4816
4816
|
// @ts-ignore
|
|
4817
4817
|
// eslint-disable-next-line no-void
|
|
4818
|
-
setGlobalModel: (
|
|
4818
|
+
setGlobalModel: (_, R) => {
|
|
4819
4819
|
}
|
|
4820
4820
|
}), { pageMode: f } = j(ve, {
|
|
4821
4821
|
pageMode: "normal"
|
|
4822
|
-
}),
|
|
4823
|
-
const { name: g = "name", value:
|
|
4824
|
-
n.value =
|
|
4822
|
+
}), p = (_ = [], R) => {
|
|
4823
|
+
const { name: g = "name", value: k = "value" } = R || {};
|
|
4824
|
+
n.value = _.map((A) => ({ value: [A[g], A[k]], record: A }));
|
|
4825
4825
|
};
|
|
4826
|
-
K(() => e.data, (
|
|
4827
|
-
(e.dataType === "static" || w(f) === "design") &&
|
|
4826
|
+
K(() => e.data, (_) => {
|
|
4827
|
+
(e.dataType === "static" || w(f) === "design") && p(_);
|
|
4828
4828
|
}, {
|
|
4829
4829
|
immediate: !0,
|
|
4830
4830
|
deep: !0
|
|
4831
4831
|
});
|
|
4832
4832
|
const m = I(!1), x = ke(e), u = async () => {
|
|
4833
|
-
var
|
|
4833
|
+
var _, R;
|
|
4834
4834
|
if (e.dataType === "request") {
|
|
4835
4835
|
m.value = !0;
|
|
4836
4836
|
try {
|
|
4837
4837
|
const g = await x();
|
|
4838
|
-
|
|
4838
|
+
p((R = (_ = g == null ? void 0 : g.data) == null ? void 0 : _.data) == null ? void 0 : R.rows, e.dataFieldNames);
|
|
4839
4839
|
} catch (g) {
|
|
4840
4840
|
console.error(g);
|
|
4841
4841
|
} finally {
|
|
@@ -4844,22 +4844,22 @@ const Ur = te({
|
|
|
4844
4844
|
}
|
|
4845
4845
|
}, s = () => {
|
|
4846
4846
|
o.value = !1;
|
|
4847
|
-
},
|
|
4848
|
-
const
|
|
4849
|
-
c(
|
|
4847
|
+
}, S = ue(e)("click", (_) => {
|
|
4848
|
+
const R = e.id, g = r(R);
|
|
4849
|
+
c(R, { ...g, RECORD: _ == null ? void 0 : _.data });
|
|
4850
4850
|
});
|
|
4851
4851
|
me(e, {
|
|
4852
4852
|
refreshData: () => {
|
|
4853
4853
|
u();
|
|
4854
4854
|
},
|
|
4855
|
-
click:
|
|
4855
|
+
click: S,
|
|
4856
4856
|
resetRecord: () => {
|
|
4857
|
-
const
|
|
4858
|
-
c(
|
|
4857
|
+
const _ = e.id, R = r(_);
|
|
4858
|
+
c(_, { ...R, RECORD: "" });
|
|
4859
4859
|
}
|
|
4860
4860
|
});
|
|
4861
4861
|
const { setRequest: M } = j(pe, {
|
|
4862
|
-
setRequest: (
|
|
4862
|
+
setRequest: (_) => {
|
|
4863
4863
|
}
|
|
4864
4864
|
});
|
|
4865
4865
|
return typeof M == "function" && M({
|
|
@@ -4869,7 +4869,7 @@ const Ur = te({
|
|
|
4869
4869
|
}), {
|
|
4870
4870
|
option: i,
|
|
4871
4871
|
style: t,
|
|
4872
|
-
click:
|
|
4872
|
+
click: S,
|
|
4873
4873
|
loading: m,
|
|
4874
4874
|
onClose: s,
|
|
4875
4875
|
ecanModal: a
|
|
@@ -4878,7 +4878,7 @@ const Ur = te({
|
|
|
4878
4878
|
});
|
|
4879
4879
|
function Gr(e, o, t, n, a, l) {
|
|
4880
4880
|
const i = Z("echarts"), r = Z("spin"), c = Z("ecan-modal");
|
|
4881
|
-
return O(),
|
|
4881
|
+
return O(), F("div", {
|
|
4882
4882
|
style: G(e.style)
|
|
4883
4883
|
}, [
|
|
4884
4884
|
W(r, { spinning: e.loading }, {
|
|
@@ -4954,7 +4954,7 @@ const qr = /* @__PURE__ */ oe(Ur, [["render", Gr]]), jr = ne(qr), xn = {
|
|
|
4954
4954
|
});
|
|
4955
4955
|
function Vr(e, o, t, n, a, l) {
|
|
4956
4956
|
const i = Z("echarts");
|
|
4957
|
-
return O(),
|
|
4957
|
+
return O(), F("div", {
|
|
4958
4958
|
style: G(e.style)
|
|
4959
4959
|
}, [
|
|
4960
4960
|
W(i, {
|
|
@@ -5122,8 +5122,8 @@ const Yr = te({
|
|
|
5122
5122
|
title: "放大",
|
|
5123
5123
|
icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
|
|
5124
5124
|
onclick() {
|
|
5125
|
-
var
|
|
5126
|
-
t.value = !0, (
|
|
5125
|
+
var C;
|
|
5126
|
+
t.value = !0, (C = i.value) == null || C.showModal();
|
|
5127
5127
|
}
|
|
5128
5128
|
},
|
|
5129
5129
|
myInfo: {
|
|
@@ -5160,16 +5160,16 @@ const Yr = te({
|
|
|
5160
5160
|
tooltip: {
|
|
5161
5161
|
trigger: "axis",
|
|
5162
5162
|
show: e.tooltipShow,
|
|
5163
|
-
formatter: (
|
|
5164
|
-
const h =
|
|
5165
|
-
let
|
|
5166
|
-
|
|
5163
|
+
formatter: (C) => {
|
|
5164
|
+
const h = C.length;
|
|
5165
|
+
let b = "", v = e.tooltipFormatter;
|
|
5166
|
+
v === "" && (v = "{marker} {a} {c}");
|
|
5167
5167
|
const P = e.seriesTypes;
|
|
5168
|
-
for (let
|
|
5169
|
-
const $ = P[
|
|
5170
|
-
|
|
5168
|
+
for (let D = 0; D < h; D++) {
|
|
5169
|
+
const $ = P[D], { tooltipFormatter: N } = $ || {}, { marker: J, seriesName: B, name: V, value: Y, data: Ae } = C[D] || {};
|
|
5170
|
+
D === 0 && (b += `${V}<br/>`), b += de(
|
|
5171
5171
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
5172
|
-
N ||
|
|
5172
|
+
N || v,
|
|
5173
5173
|
{
|
|
5174
5174
|
textData: {
|
|
5175
5175
|
marker: J,
|
|
@@ -5186,9 +5186,9 @@ const Yr = te({
|
|
|
5186
5186
|
useNewline: !0,
|
|
5187
5187
|
useSpace: !0
|
|
5188
5188
|
}
|
|
5189
|
-
),
|
|
5189
|
+
), b += "<br/>";
|
|
5190
5190
|
}
|
|
5191
|
-
return
|
|
5191
|
+
return b;
|
|
5192
5192
|
},
|
|
5193
5193
|
textStyle: {
|
|
5194
5194
|
color: e.tooltipTextStyleColor,
|
|
@@ -5198,15 +5198,15 @@ const Yr = te({
|
|
|
5198
5198
|
xAxis: {
|
|
5199
5199
|
minInterval: e.xAxisMinInterval,
|
|
5200
5200
|
type: "category",
|
|
5201
|
-
data: w(l).map((
|
|
5201
|
+
data: w(l).map((C) => {
|
|
5202
5202
|
let h = {};
|
|
5203
|
-
return
|
|
5204
|
-
...
|
|
5203
|
+
return C && typeof C == "object" ? h = {
|
|
5204
|
+
...C,
|
|
5205
5205
|
textStyle: {
|
|
5206
5206
|
fontSize: r.value
|
|
5207
5207
|
}
|
|
5208
5208
|
} : h = {
|
|
5209
|
-
value:
|
|
5209
|
+
value: C,
|
|
5210
5210
|
textStyle: {
|
|
5211
5211
|
fontSize: r.value
|
|
5212
5212
|
}
|
|
@@ -5238,25 +5238,25 @@ const Yr = te({
|
|
|
5238
5238
|
series: w(a)
|
|
5239
5239
|
})), { pageMode: f } = j(ve, {
|
|
5240
5240
|
pageMode: "normal"
|
|
5241
|
-
}),
|
|
5241
|
+
}), p = () => {
|
|
5242
5242
|
t.value = !1;
|
|
5243
|
-
}, m = (
|
|
5244
|
-
let
|
|
5243
|
+
}, m = (C = [], h = !1) => {
|
|
5244
|
+
let b;
|
|
5245
5245
|
if (e.dataFieldConfigType === "key") {
|
|
5246
5246
|
const N = h ? e.keyTypeDataFieldNames : null;
|
|
5247
|
-
|
|
5247
|
+
b = qe(C, N);
|
|
5248
5248
|
} else if (e.dataFieldConfigType === "value") {
|
|
5249
5249
|
const N = h ? e.valueTypeDataFieldNames : null;
|
|
5250
|
-
|
|
5250
|
+
b = et(C, N);
|
|
5251
5251
|
}
|
|
5252
|
-
l.value =
|
|
5253
|
-
const
|
|
5254
|
-
for (let N = 0; N <
|
|
5252
|
+
l.value = b.dimensions;
|
|
5253
|
+
const v = b.dataset, P = [], D = v.length, $ = e.seriesTypes;
|
|
5254
|
+
for (let N = 0; N < D; N++) {
|
|
5255
5255
|
const J = $[N], { type: B, axisIndex: V } = J || {};
|
|
5256
5256
|
let Y = {
|
|
5257
5257
|
type: B,
|
|
5258
5258
|
yAxisIndex: V,
|
|
5259
|
-
...
|
|
5259
|
+
...v[N]
|
|
5260
5260
|
};
|
|
5261
5261
|
B === "line" && (Y = {
|
|
5262
5262
|
...Y,
|
|
@@ -5274,29 +5274,29 @@ const Yr = te({
|
|
|
5274
5274
|
}), P.push(Y);
|
|
5275
5275
|
}
|
|
5276
5276
|
a.value = P;
|
|
5277
|
-
}, x = (
|
|
5278
|
-
const P = qe(
|
|
5277
|
+
}, x = (C = [], h, b = !1) => {
|
|
5278
|
+
const P = qe(C, b ? h : null);
|
|
5279
5279
|
l.value = P.dimensions;
|
|
5280
|
-
const
|
|
5280
|
+
const D = P.dataset, $ = [], N = D.length, J = e.seriesTypes;
|
|
5281
5281
|
for (let B = 0; B < N; B++) {
|
|
5282
5282
|
const V = J[B];
|
|
5283
5283
|
$.push({
|
|
5284
5284
|
type: V == null ? void 0 : V.type,
|
|
5285
5285
|
yAxisIndex: V == null ? void 0 : V.axisIndex,
|
|
5286
|
-
...
|
|
5286
|
+
...D[B]
|
|
5287
5287
|
});
|
|
5288
5288
|
}
|
|
5289
5289
|
a.value = $;
|
|
5290
5290
|
};
|
|
5291
|
-
K(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([
|
|
5292
|
-
(e.dataType === "static" || w(f) === "design") && m(
|
|
5291
|
+
K(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([C]) => {
|
|
5292
|
+
(e.dataType === "static" || w(f) === "design") && m(C);
|
|
5293
5293
|
}, {
|
|
5294
5294
|
immediate: !0,
|
|
5295
5295
|
deep: !0
|
|
5296
5296
|
});
|
|
5297
5297
|
const u = q(() => {
|
|
5298
|
-
const
|
|
5299
|
-
return
|
|
5298
|
+
const C = e.yAxis;
|
|
5299
|
+
return C == null ? void 0 : C.map((h) => ({
|
|
5300
5300
|
type: "value",
|
|
5301
5301
|
minInterval: e.yAxisMinInterval,
|
|
5302
5302
|
splitLine: {
|
|
@@ -5308,8 +5308,8 @@ const Yr = te({
|
|
|
5308
5308
|
axisLabel: {
|
|
5309
5309
|
fontSize: r.value,
|
|
5310
5310
|
color: e.yAxisLabelColor,
|
|
5311
|
-
formatter(
|
|
5312
|
-
return Ne(h.axisLabelFormatter,
|
|
5311
|
+
formatter(b) {
|
|
5312
|
+
return Ne(h.axisLabelFormatter, b);
|
|
5313
5313
|
}
|
|
5314
5314
|
},
|
|
5315
5315
|
axisLine: {
|
|
@@ -5318,31 +5318,31 @@ const Yr = te({
|
|
|
5318
5318
|
}
|
|
5319
5319
|
}
|
|
5320
5320
|
}));
|
|
5321
|
-
}), s = I(!1), d = ke(e),
|
|
5322
|
-
var
|
|
5321
|
+
}), s = I(!1), d = ke(e), S = async () => {
|
|
5322
|
+
var C, h;
|
|
5323
5323
|
if (e.dataType === "request")
|
|
5324
5324
|
try {
|
|
5325
5325
|
s.value = !0;
|
|
5326
|
-
const
|
|
5327
|
-
m((h = (
|
|
5328
|
-
} catch (
|
|
5329
|
-
console.error(
|
|
5326
|
+
const b = await d();
|
|
5327
|
+
m((h = (C = b == null ? void 0 : b.data) == null ? void 0 : C.data) == null ? void 0 : h.rows, !0);
|
|
5328
|
+
} catch (b) {
|
|
5329
|
+
console.error(b);
|
|
5330
5330
|
} finally {
|
|
5331
5331
|
s.value = !1;
|
|
5332
5332
|
}
|
|
5333
5333
|
}, y = it(e), T = async () => {
|
|
5334
|
-
var
|
|
5334
|
+
var C;
|
|
5335
5335
|
try {
|
|
5336
5336
|
s.value = !0;
|
|
5337
|
-
const h = await y(), { columns:
|
|
5337
|
+
const h = await y(), { columns: b = [], rows: v = [] } = ((C = h == null ? void 0 : h.data) == null ? void 0 : C.data) ?? {};
|
|
5338
5338
|
let P;
|
|
5339
|
-
|
|
5340
|
-
name:
|
|
5341
|
-
types:
|
|
5342
|
-
label:
|
|
5343
|
-
value:
|
|
5339
|
+
b.length > 0 && (P = {
|
|
5340
|
+
name: b[0],
|
|
5341
|
+
types: b.slice(1).map((D) => ({
|
|
5342
|
+
label: D,
|
|
5343
|
+
value: D
|
|
5344
5344
|
}))
|
|
5345
|
-
}), x(
|
|
5345
|
+
}), x(v, P, !0);
|
|
5346
5346
|
} catch (h) {
|
|
5347
5347
|
console.error(h);
|
|
5348
5348
|
} finally {
|
|
@@ -5354,53 +5354,53 @@ const Yr = te({
|
|
|
5354
5354
|
T();
|
|
5355
5355
|
break;
|
|
5356
5356
|
case "request":
|
|
5357
|
-
|
|
5357
|
+
S();
|
|
5358
5358
|
break;
|
|
5359
5359
|
}
|
|
5360
5360
|
};
|
|
5361
5361
|
o({
|
|
5362
5362
|
refreshData: M
|
|
5363
5363
|
});
|
|
5364
|
-
const
|
|
5364
|
+
const _ = ue(e), { getGlobalModel: R, setGlobalModel: g } = j(ge, {
|
|
5365
5365
|
// @ts-ignore
|
|
5366
5366
|
// eslint-disable-next-line no-void
|
|
5367
|
-
getGlobalModel: (
|
|
5367
|
+
getGlobalModel: (C) => {
|
|
5368
5368
|
},
|
|
5369
5369
|
// @ts-ignore
|
|
5370
5370
|
// eslint-disable-next-line no-void
|
|
5371
|
-
setGlobalModel: (
|
|
5371
|
+
setGlobalModel: (C, h) => {
|
|
5372
5372
|
}
|
|
5373
|
-
}),
|
|
5374
|
-
const h =
|
|
5375
|
-
g(e.id, { ...h, RECORD:
|
|
5376
|
-
}), { setRequest:
|
|
5377
|
-
setRequest: (
|
|
5373
|
+
}), k = _("click", (C) => {
|
|
5374
|
+
const h = R(e.id);
|
|
5375
|
+
g(e.id, { ...h, RECORD: C == null ? void 0 : C.data });
|
|
5376
|
+
}), { setRequest: A } = j(pe, {
|
|
5377
|
+
setRequest: (C) => {
|
|
5378
5378
|
}
|
|
5379
5379
|
});
|
|
5380
|
-
return typeof
|
|
5380
|
+
return typeof A == "function" && A({
|
|
5381
5381
|
id: e.id,
|
|
5382
5382
|
requestFn: M,
|
|
5383
5383
|
sortNum: e.requestSort
|
|
5384
5384
|
}), me(e, {
|
|
5385
5385
|
resetRecord: () => {
|
|
5386
|
-
const
|
|
5387
|
-
g(
|
|
5386
|
+
const C = e.id, h = R(C);
|
|
5387
|
+
g(C, { ...h, RECORD: "" });
|
|
5388
5388
|
},
|
|
5389
5389
|
refreshData: M,
|
|
5390
|
-
click:
|
|
5390
|
+
click: k
|
|
5391
5391
|
}), {
|
|
5392
5392
|
style: n,
|
|
5393
5393
|
option: c,
|
|
5394
|
-
click:
|
|
5394
|
+
click: k,
|
|
5395
5395
|
loading: s,
|
|
5396
|
-
onClose:
|
|
5396
|
+
onClose: p,
|
|
5397
5397
|
ecanModal: i
|
|
5398
5398
|
};
|
|
5399
5399
|
}
|
|
5400
5400
|
});
|
|
5401
5401
|
function Qr(e, o, t, n, a, l) {
|
|
5402
5402
|
const i = Z("echarts"), r = Z("spin"), c = Z("ecan-modal");
|
|
5403
|
-
return O(),
|
|
5403
|
+
return O(), F("div", {
|
|
5404
5404
|
style: G(e.style)
|
|
5405
5405
|
}, [
|
|
5406
5406
|
W(r, { spinning: e.loading }, {
|
|
@@ -5515,24 +5515,24 @@ const Te = (e) => (bo("data-v-1550b11b"), e = e(), vo(), e), as = /* @__PURE__ *
|
|
|
5515
5515
|
class: "left-title"
|
|
5516
5516
|
}, vs = { class: "title" };
|
|
5517
5517
|
function ps(e, o, t, n, a, l) {
|
|
5518
|
-
return O(),
|
|
5518
|
+
return O(), F("div", {
|
|
5519
5519
|
class: "ecan-border",
|
|
5520
5520
|
style: G(e.style),
|
|
5521
5521
|
onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
|
|
5522
5522
|
}, [
|
|
5523
|
-
e.mode === "no-title" ? (O(),
|
|
5523
|
+
e.mode === "no-title" ? (O(), F("div", {
|
|
5524
5524
|
key: 0,
|
|
5525
5525
|
class: "no-title",
|
|
5526
5526
|
style: G(e.borderStyle)
|
|
5527
5527
|
}, [
|
|
5528
|
-
e.useBorderModify ? (O(),
|
|
5528
|
+
e.useBorderModify ? (O(), F(Me, { key: 0 }, [
|
|
5529
5529
|
as,
|
|
5530
5530
|
ls,
|
|
5531
5531
|
is,
|
|
5532
5532
|
rs
|
|
5533
5533
|
], 64)) : be("", !0)
|
|
5534
5534
|
], 4)) : be("", !0),
|
|
5535
|
-
e.mode === "top-title" ? (O(),
|
|
5535
|
+
e.mode === "top-title" ? (O(), F("div", {
|
|
5536
5536
|
key: 1,
|
|
5537
5537
|
class: "top-title",
|
|
5538
5538
|
style: G(e.borderStyle)
|
|
@@ -5549,7 +5549,7 @@ function ps(e, o, t, n, a, l) {
|
|
|
5549
5549
|
hs,
|
|
5550
5550
|
ys
|
|
5551
5551
|
], 4)) : be("", !0),
|
|
5552
|
-
e.mode === "left-title" ? (O(),
|
|
5552
|
+
e.mode === "left-title" ? (O(), F("div", bs, [
|
|
5553
5553
|
ee("div", vs, [
|
|
5554
5554
|
ee("span", null, ye(e.title), 1)
|
|
5555
5555
|
])
|
|
@@ -5616,7 +5616,7 @@ const Cs = /* @__PURE__ */ oe(ts, [["render", ps], ["__scopeId", "data-v-1550b11
|
|
|
5616
5616
|
};
|
|
5617
5617
|
Ue(() => {
|
|
5618
5618
|
w(n) !== "design" && l();
|
|
5619
|
-
}),
|
|
5619
|
+
}), Mt(() => {
|
|
5620
5620
|
clearInterval(a);
|
|
5621
5621
|
});
|
|
5622
5622
|
const i = I([]), r = I({});
|
|
@@ -5626,13 +5626,13 @@ const Cs = /* @__PURE__ */ oe(ts, [["render", ps], ["__scopeId", "data-v-1550b11
|
|
|
5626
5626
|
immediate: !0,
|
|
5627
5627
|
deep: !0
|
|
5628
5628
|
});
|
|
5629
|
-
const c = (u) => t.value === u, f = ue(e), { setGlobalModel:
|
|
5629
|
+
const c = (u) => t.value === u, f = ue(e), { setGlobalModel: p } = j(ge, {
|
|
5630
5630
|
// @ts-ignore
|
|
5631
5631
|
// eslint-disable-next-line no-void
|
|
5632
5632
|
setGlobalModel: (u, s) => {
|
|
5633
5633
|
}
|
|
5634
5634
|
});
|
|
5635
|
-
|
|
5635
|
+
p(e.id, {
|
|
5636
5636
|
value: r,
|
|
5637
5637
|
activeKey: t
|
|
5638
5638
|
});
|
|
@@ -5657,7 +5657,7 @@ const Cs = /* @__PURE__ */ oe(ts, [["render", ps], ["__scopeId", "data-v-1550b11
|
|
|
5657
5657
|
});
|
|
5658
5658
|
const ks = ["onClick"];
|
|
5659
5659
|
function As(e, o, t, n, a, l) {
|
|
5660
|
-
return O(),
|
|
5660
|
+
return O(), F("div", {
|
|
5661
5661
|
class: "ecan-tabs",
|
|
5662
5662
|
style: G(e.style)
|
|
5663
5663
|
}, [
|
|
@@ -5670,7 +5670,7 @@ function As(e, o, t, n, a, l) {
|
|
|
5670
5670
|
flexDirection: e.tabFlexDirection
|
|
5671
5671
|
})
|
|
5672
5672
|
}, [
|
|
5673
|
-
(O(!0),
|
|
5673
|
+
(O(!0), F(Me, null, Oe(e.myData, (i, r) => (O(), F("div", {
|
|
5674
5674
|
class: "tab",
|
|
5675
5675
|
style: G({
|
|
5676
5676
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
@@ -5733,12 +5733,12 @@ const _s = /* @__PURE__ */ oe(xs, [["render", As], ["__scopeId", "data-v-a2045b9
|
|
|
5733
5733
|
});
|
|
5734
5734
|
const Is = ["src"];
|
|
5735
5735
|
function Ms(e, o, t, n, a, l) {
|
|
5736
|
-
return e.myImgUrl !== "" ? (O(),
|
|
5736
|
+
return e.myImgUrl !== "" ? (O(), F("img", {
|
|
5737
5737
|
key: 0,
|
|
5738
5738
|
style: G(e.style),
|
|
5739
5739
|
src: e.myImgUrl,
|
|
5740
5740
|
onClick: o[0] || (o[0] = (...i) => e.onClick && e.onClick(...i))
|
|
5741
|
-
}, null, 12, Is)) : (O(),
|
|
5741
|
+
}, null, 12, Is)) : (O(), F("div", {
|
|
5742
5742
|
key: 1,
|
|
5743
5743
|
class: "image-placeholder",
|
|
5744
5744
|
style: G(e.style)
|
|
@@ -5777,11 +5777,11 @@ const Es = /* @__PURE__ */ oe(Ls, [["render", Ms], ["__scopeId", "data-v-ef7a7be
|
|
|
5777
5777
|
});
|
|
5778
5778
|
const zs = ["src"];
|
|
5779
5779
|
function Fs(e, o, t, n, a, l) {
|
|
5780
|
-
return e.myLink ? (O(),
|
|
5780
|
+
return e.myLink ? (O(), F("iframe", {
|
|
5781
5781
|
key: 0,
|
|
5782
5782
|
src: e.myLink,
|
|
5783
5783
|
style: G(e.style)
|
|
5784
|
-
}, null, 12, zs)) : (O(),
|
|
5784
|
+
}, null, 12, zs)) : (O(), F("div", {
|
|
5785
5785
|
key: 1,
|
|
5786
5786
|
class: "iframe-placeholder",
|
|
5787
5787
|
style: G(e.style)
|
|
@@ -5852,7 +5852,7 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
5852
5852
|
}, Rn = ie(Fn), Ns = ["click", "refreshData", "resetRecord", "exportTableData"], Ps = te({
|
|
5853
5853
|
name: "EcanTable",
|
|
5854
5854
|
components: {
|
|
5855
|
-
Skeleton:
|
|
5855
|
+
Skeleton: vt,
|
|
5856
5856
|
AButton: So,
|
|
5857
5857
|
AInput: Co,
|
|
5858
5858
|
ACheckboxGroup: wo,
|
|
@@ -5884,10 +5884,10 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
5884
5884
|
default:
|
|
5885
5885
|
return 55;
|
|
5886
5886
|
}
|
|
5887
|
-
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - w(n)), i = I([]), r = I([]), c = I([]), f = I([]),
|
|
5887
|
+
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - w(n)), i = I([]), r = I([]), c = I([]), f = I([]), p = I(0), m = I(1), x = q(() => e.paginationPageSize), u = Qn([]), s = (E = []) => {
|
|
5888
5888
|
if (Array.isArray(E) && E.length > 0) {
|
|
5889
|
-
const
|
|
5890
|
-
for (let Q = 0; Q <
|
|
5889
|
+
const z = E.length, H = e.columnsFixedNum;
|
|
5890
|
+
for (let Q = 0; Q < z; Q++) {
|
|
5891
5891
|
const U = E[Q];
|
|
5892
5892
|
Q < H ? U.fixed = "left" : U.fixed = !1;
|
|
5893
5893
|
const {
|
|
@@ -5899,7 +5899,7 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
5899
5899
|
headerCellAlign: Ee,
|
|
5900
5900
|
headerCellColor: Se
|
|
5901
5901
|
} = U;
|
|
5902
|
-
ce && (u.push(fe), U.filterOptionsInputValue = "", U.filterCheckboxGroupValue = [], U.customFilterDropdown = !0, U.onFilter = (Le,
|
|
5902
|
+
ce && (u.push(fe), U.filterOptionsInputValue = "", U.filterCheckboxGroupValue = [], U.customFilterDropdown = !0, U.onFilter = (Le, Ct) => Ct[fe].toString().toLowerCase().includes(Le.toLowerCase())), U.customHeaderCell = () => ({
|
|
5903
5903
|
style: {
|
|
5904
5904
|
display: "table-cell",
|
|
5905
5905
|
verticalAlign: "middle",
|
|
@@ -5909,7 +5909,7 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
5909
5909
|
color: Se,
|
|
5910
5910
|
borderBottomColor: e.borderColor
|
|
5911
5911
|
}
|
|
5912
|
-
}), U.customCell = (Le,
|
|
5912
|
+
}), U.customCell = (Le, Ct) => ({
|
|
5913
5913
|
style: {
|
|
5914
5914
|
textAlign: ae,
|
|
5915
5915
|
color: le,
|
|
@@ -5917,10 +5917,10 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
5917
5917
|
borderBottomColor: e.borderColor
|
|
5918
5918
|
},
|
|
5919
5919
|
class: {
|
|
5920
|
-
highlight: w(J) ===
|
|
5920
|
+
highlight: w(J) === Ct && e.clickHighlight
|
|
5921
5921
|
},
|
|
5922
|
-
onClick:
|
|
5923
|
-
const Wt = e.id, Hn =
|
|
5922
|
+
onClick: b("click", () => {
|
|
5923
|
+
const Wt = e.id, Hn = v(Wt);
|
|
5924
5924
|
Le = {
|
|
5925
5925
|
dataIndex: fe,
|
|
5926
5926
|
title: he,
|
|
@@ -5948,19 +5948,19 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
5948
5948
|
e.cellBackgroundColor,
|
|
5949
5949
|
e.borderColor
|
|
5950
5950
|
], () => {
|
|
5951
|
-
i.value = d(
|
|
5951
|
+
i.value = d(wt(e.columns));
|
|
5952
5952
|
}, {
|
|
5953
5953
|
immediate: !0,
|
|
5954
5954
|
deep: !0
|
|
5955
|
-
}), K(() => [e.data, e.dataType], ([E,
|
|
5956
|
-
|
|
5955
|
+
}), K(() => [e.data, e.dataType], ([E, z]) => {
|
|
5956
|
+
z === "static" && (r.value = E);
|
|
5957
5957
|
}, {
|
|
5958
5958
|
immediate: !0
|
|
5959
5959
|
});
|
|
5960
|
-
const
|
|
5960
|
+
const S = I({}), y = (E) => {
|
|
5961
5961
|
if (Array.isArray(E)) {
|
|
5962
|
-
const
|
|
5963
|
-
for (let le = 0; le <
|
|
5962
|
+
const z = E.length, H = u, Q = H.length, U = {};
|
|
5963
|
+
for (let le = 0; le < z; le++) {
|
|
5964
5964
|
const fe = E[le];
|
|
5965
5965
|
for (let he = 0; he < Q; he++) {
|
|
5966
5966
|
const ce = H[he];
|
|
@@ -5978,28 +5978,28 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
5978
5978
|
const fe = U[le], he = Array.from(fe);
|
|
5979
5979
|
ae[le] = he.map((ce) => ({ label: ce, value: ce }));
|
|
5980
5980
|
}
|
|
5981
|
-
|
|
5981
|
+
S.value = ae;
|
|
5982
5982
|
}
|
|
5983
5983
|
};
|
|
5984
5984
|
K(() => [e.isReverse, i.value, r.value], () => {
|
|
5985
|
-
const E = w(i),
|
|
5986
|
-
if (y(
|
|
5987
|
-
const { columns: H, dataSource: Q } = T(
|
|
5985
|
+
const E = w(i), z = w(r);
|
|
5986
|
+
if (y(z), e.isReverse) {
|
|
5987
|
+
const { columns: H, dataSource: Q } = T(wt(E), wt(z));
|
|
5988
5988
|
c.value = H, f.value = Q;
|
|
5989
5989
|
} else
|
|
5990
|
-
c.value = E, f.value =
|
|
5990
|
+
c.value = E, f.value = z;
|
|
5991
5991
|
}, {
|
|
5992
5992
|
immediate: !0
|
|
5993
5993
|
});
|
|
5994
|
-
const T = (E,
|
|
5994
|
+
const T = (E, z) => {
|
|
5995
5995
|
const H = E[0], Q = [{
|
|
5996
5996
|
title: H.title,
|
|
5997
5997
|
dataIndex: "col0",
|
|
5998
5998
|
key: "col0",
|
|
5999
5999
|
align: "center"
|
|
6000
6000
|
}];
|
|
6001
|
-
for (let ae = 0; ae <
|
|
6002
|
-
const le =
|
|
6001
|
+
for (let ae = 0; ae < z.length; ae++) {
|
|
6002
|
+
const le = z[ae], fe = "col" + (ae + 1);
|
|
6003
6003
|
Q.push({
|
|
6004
6004
|
title: le[H.dataIndex],
|
|
6005
6005
|
dataIndex: fe,
|
|
@@ -6010,8 +6010,8 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6010
6010
|
const U = [];
|
|
6011
6011
|
for (let ae = 1; ae < E.length; ae++) {
|
|
6012
6012
|
const le = E[ae], fe = { col0: le.title };
|
|
6013
|
-
for (let he = 0; he <
|
|
6014
|
-
const ce =
|
|
6013
|
+
for (let he = 0; he < z.length; he++) {
|
|
6014
|
+
const ce = z[he];
|
|
6015
6015
|
fe[`col${he + 1}`] = ce[le.dataIndex];
|
|
6016
6016
|
}
|
|
6017
6017
|
U.push(fe);
|
|
@@ -6020,23 +6020,23 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6020
6020
|
columns: Q,
|
|
6021
6021
|
dataSource: U
|
|
6022
6022
|
};
|
|
6023
|
-
}, M = I(""),
|
|
6023
|
+
}, M = I(""), _ = ke(e), R = I(!1), g = async (E = !0, z = {}) => {
|
|
6024
6024
|
var H;
|
|
6025
6025
|
try {
|
|
6026
|
-
E && (
|
|
6026
|
+
E && (R.value = !0), w(M) && (z.orderCondition = w(M)), e.paginationShow && (z = {
|
|
6027
6027
|
pageNum: w(m),
|
|
6028
6028
|
pageSize: w(x),
|
|
6029
6029
|
layer: "1",
|
|
6030
|
-
...
|
|
6030
|
+
...z
|
|
6031
6031
|
});
|
|
6032
|
-
const Q = await
|
|
6033
|
-
|
|
6032
|
+
const Q = await _(z), { rows: U = [], total: ae = 0 } = ((H = Q == null ? void 0 : Q.data) == null ? void 0 : H.data) || {};
|
|
6033
|
+
p.value = ae, Array.isArray(U) && (r.value = U);
|
|
6034
6034
|
} catch (Q) {
|
|
6035
6035
|
console.error(Q);
|
|
6036
6036
|
} finally {
|
|
6037
|
-
|
|
6037
|
+
R.value = !1;
|
|
6038
6038
|
}
|
|
6039
|
-
},
|
|
6039
|
+
}, k = ({ current: E }, z, H) => {
|
|
6040
6040
|
if (m.value = E, H && Object.keys(H).length > 0) {
|
|
6041
6041
|
const { field: Q, order: U } = H, le = {
|
|
6042
6042
|
ascend: "asc",
|
|
@@ -6045,24 +6045,24 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6045
6045
|
Q != null && le != null && (M.value = Q + " " + le, m.value = 1);
|
|
6046
6046
|
}
|
|
6047
6047
|
V(!1);
|
|
6048
|
-
},
|
|
6049
|
-
const E = e.simple,
|
|
6048
|
+
}, A = q(() => {
|
|
6049
|
+
const E = e.simple, z = [e.paginationPosition];
|
|
6050
6050
|
return e.paginationShow && {
|
|
6051
6051
|
simple: E,
|
|
6052
|
-
position:
|
|
6053
|
-
total: w(
|
|
6052
|
+
position: z,
|
|
6053
|
+
total: w(p),
|
|
6054
6054
|
current: w(m),
|
|
6055
6055
|
pageSize: w(x),
|
|
6056
6056
|
showSizeChanger: !1
|
|
6057
6057
|
};
|
|
6058
|
-
}), L = (E) => +E == 1 ? "是" : +E == 0 ? "否" : E,
|
|
6058
|
+
}), L = (E) => +E == 1 ? "是" : +E == 0 ? "否" : E, C = (E, z) => z == null || z === "" ? E : {
|
|
6059
6059
|
money: Gt,
|
|
6060
6060
|
percentage: gt,
|
|
6061
6061
|
contrast: gt,
|
|
6062
6062
|
boolean: L
|
|
6063
|
-
}[
|
|
6063
|
+
}[z](E) || "", h = (E, z) => {
|
|
6064
6064
|
const H = parseFloat(E + "");
|
|
6065
|
-
if (
|
|
6065
|
+
if (z !== "contrast")
|
|
6066
6066
|
return "";
|
|
6067
6067
|
switch (!0) {
|
|
6068
6068
|
case H >= 0:
|
|
@@ -6070,33 +6070,33 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6070
6070
|
case H < 0:
|
|
6071
6071
|
return "goDown";
|
|
6072
6072
|
}
|
|
6073
|
-
},
|
|
6073
|
+
}, b = ue(e), { getGlobalModel: v, setGlobalModel: P } = j(ge, {
|
|
6074
6074
|
// @ts-ignore
|
|
6075
6075
|
// eslint-disable-next-line no-void
|
|
6076
6076
|
getGlobalModel: (E) => {
|
|
6077
6077
|
},
|
|
6078
6078
|
// @ts-ignore
|
|
6079
6079
|
// eslint-disable-next-line no-void
|
|
6080
|
-
setGlobalModel: (E,
|
|
6080
|
+
setGlobalModel: (E, z) => {
|
|
6081
6081
|
}
|
|
6082
|
-
}),
|
|
6082
|
+
}), D = (E = [], z = []) => {
|
|
6083
6083
|
const H = E.map((Q) => ({ title: Q, dataIndex: Q, key: Q }));
|
|
6084
|
-
i.value = d(H), r.value =
|
|
6084
|
+
i.value = d(H), r.value = z;
|
|
6085
6085
|
}, $ = it(e), N = async () => {
|
|
6086
|
-
var E,
|
|
6086
|
+
var E, z, H, Q;
|
|
6087
6087
|
try {
|
|
6088
|
-
|
|
6088
|
+
R.value = !0;
|
|
6089
6089
|
const U = await $();
|
|
6090
|
-
|
|
6090
|
+
D((z = (E = U == null ? void 0 : U.data) == null ? void 0 : E.data) == null ? void 0 : z.columns, (Q = (H = U == null ? void 0 : U.data) == null ? void 0 : H.data) == null ? void 0 : Q.rows);
|
|
6091
6091
|
} catch (U) {
|
|
6092
6092
|
console.error(U);
|
|
6093
6093
|
} finally {
|
|
6094
|
-
|
|
6094
|
+
R.value = !1;
|
|
6095
6095
|
}
|
|
6096
|
-
}, J = I(-1), B = (E,
|
|
6097
|
-
onClick:
|
|
6098
|
-
const H = e.id, Q =
|
|
6099
|
-
P(H, { ...Q, RECORD: E }), J.value =
|
|
6096
|
+
}, J = I(-1), B = (E, z) => ({
|
|
6097
|
+
onClick: b("rowClick", () => {
|
|
6098
|
+
const H = e.id, Q = v(H);
|
|
6099
|
+
P(H, { ...Q, RECORD: E }), J.value = z;
|
|
6100
6100
|
})
|
|
6101
6101
|
}), V = (E = !0) => {
|
|
6102
6102
|
switch (e.dataType) {
|
|
@@ -6108,29 +6108,29 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6108
6108
|
break;
|
|
6109
6109
|
}
|
|
6110
6110
|
}, Y = () => {
|
|
6111
|
-
const E = e.id,
|
|
6112
|
-
P(E, { ...
|
|
6111
|
+
const E = e.id, z = v(E);
|
|
6112
|
+
P(E, { ...z, RECORD: "" });
|
|
6113
6113
|
}, Ae = q(() => {
|
|
6114
|
-
const E = w(c),
|
|
6114
|
+
const E = w(c), z = [];
|
|
6115
6115
|
let H = 0;
|
|
6116
6116
|
for (let U = 0; U < E.length; U++) {
|
|
6117
6117
|
const ae = E[U], { isCalcTotal: le } = ae;
|
|
6118
|
-
e.isUseSeq && U === 0 ?
|
|
6118
|
+
e.isUseSeq && U === 0 ? z.push({
|
|
6119
6119
|
...ae,
|
|
6120
6120
|
total: "小计"
|
|
6121
|
-
}) : le ? (
|
|
6121
|
+
}) : le ? (z.push({
|
|
6122
6122
|
...ae,
|
|
6123
6123
|
index: U,
|
|
6124
6124
|
total: 0
|
|
6125
|
-
}), H++) :
|
|
6125
|
+
}), H++) : z.push({
|
|
6126
6126
|
...ae
|
|
6127
6127
|
});
|
|
6128
6128
|
}
|
|
6129
6129
|
if (H === 0)
|
|
6130
6130
|
return [];
|
|
6131
6131
|
const Q = w(f);
|
|
6132
|
-
for (let U = 0; U <
|
|
6133
|
-
const ae =
|
|
6132
|
+
for (let U = 0; U < z.length; U++) {
|
|
6133
|
+
const ae = z[U];
|
|
6134
6134
|
let le = 0;
|
|
6135
6135
|
const { isCalcTotal: fe, dataIndex: he } = ae;
|
|
6136
6136
|
if (fe === !0) {
|
|
@@ -6141,7 +6141,7 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6141
6141
|
ae.total = le;
|
|
6142
6142
|
}
|
|
6143
6143
|
}
|
|
6144
|
-
return
|
|
6144
|
+
return z;
|
|
6145
6145
|
}), { setRequest: qt } = j(pe, {
|
|
6146
6146
|
setRequest: (E) => {
|
|
6147
6147
|
}
|
|
@@ -6153,26 +6153,26 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6153
6153
|
}), o({
|
|
6154
6154
|
refreshData: V
|
|
6155
6155
|
});
|
|
6156
|
-
const Pn = (E = "",
|
|
6156
|
+
const Pn = (E = "", z) => de(E, z), Bn = (E) => {
|
|
6157
6157
|
if (E !== "event")
|
|
6158
6158
|
return {
|
|
6159
6159
|
self: "_self",
|
|
6160
6160
|
blank: "_blank"
|
|
6161
6161
|
}[E];
|
|
6162
|
-
}, Un = (E,
|
|
6162
|
+
}, Un = (E, z = "") => {
|
|
6163
6163
|
E === "event" && window.parent.postMessage({
|
|
6164
6164
|
type: "openPage",
|
|
6165
|
-
url:
|
|
6165
|
+
url: z
|
|
6166
6166
|
}, "*");
|
|
6167
|
-
}, Gn = (E,
|
|
6168
|
-
E(
|
|
6169
|
-
}, qn = (E,
|
|
6170
|
-
E({ confirm: !0 }),
|
|
6167
|
+
}, Gn = (E, z) => {
|
|
6168
|
+
E(z.filterCheckboxGroupValue);
|
|
6169
|
+
}, qn = (E, z) => {
|
|
6170
|
+
E({ confirm: !0 }), z.filterOptionsInputValue = "", z.filterCheckboxGroupValue = [];
|
|
6171
6171
|
}, jn = () => {
|
|
6172
6172
|
}, Wn = (E) => {
|
|
6173
|
-
const
|
|
6174
|
-
if (typeof
|
|
6175
|
-
let H = w(
|
|
6173
|
+
const z = E.dataIndex;
|
|
6174
|
+
if (typeof z == "string") {
|
|
6175
|
+
let H = w(S)[z];
|
|
6176
6176
|
const Q = w(E.filterOptionsInputValue).trim();
|
|
6177
6177
|
return Array.isArray(H) ? (H = H.filter((U) => typeof U.label == "string" ? U.label.toLowerCase().includes(Q.toLowerCase()) : !0), H) : [];
|
|
6178
6178
|
}
|
|
@@ -6185,24 +6185,24 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6185
6185
|
content: "正在导出...",
|
|
6186
6186
|
duration: 0
|
|
6187
6187
|
});
|
|
6188
|
-
let
|
|
6188
|
+
let z = [];
|
|
6189
6189
|
if (e.dataType === "static")
|
|
6190
|
-
|
|
6190
|
+
z = e.data;
|
|
6191
6191
|
else if (e.dataType === "request") {
|
|
6192
6192
|
const Se = { layer: "1" };
|
|
6193
6193
|
w(M) && (Se.orderCondition = w(M));
|
|
6194
|
-
const Le = await
|
|
6195
|
-
|
|
6194
|
+
const Le = await _(Se);
|
|
6195
|
+
z = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
6196
6196
|
}
|
|
6197
6197
|
const H = w(c), Q = [], U = [];
|
|
6198
6198
|
H == null || H.forEach((Se) => {
|
|
6199
6199
|
Q.push(Se.dataIndex), U.push(Se.title);
|
|
6200
6200
|
});
|
|
6201
|
-
const ae =
|
|
6201
|
+
const ae = z.map((Se) => xo(Se, Q)), le = st.book_new(), fe = st.aoa_to_sheet([U]), he = st.sheet_add_json(fe, ae, { skipHeader: !0, origin: "A2" });
|
|
6202
6202
|
st.book_append_sheet(le, he, "sheet"), xa(le, "表格数据.xlsx"), Be.success({ key: E, content: "导出成功" });
|
|
6203
|
-
}, Vn = (E,
|
|
6203
|
+
}, Vn = (E, z = 2) => {
|
|
6204
6204
|
const H = +E * 100;
|
|
6205
|
-
return isNaN(H) || H <= 0 ? 0 : H >= 100 ? 100 : H.toFixed(
|
|
6205
|
+
return isNaN(H) || H <= 0 ? 0 : H >= 100 ? 100 : H.toFixed(z);
|
|
6206
6206
|
};
|
|
6207
6207
|
return me(e, {
|
|
6208
6208
|
resetRecord: Y,
|
|
@@ -6213,12 +6213,12 @@ const Rs = /* @__PURE__ */ oe(Ds, [["render", Fs], ["__scopeId", "data-v-19bc100
|
|
|
6213
6213
|
y: l,
|
|
6214
6214
|
style: t,
|
|
6215
6215
|
customRow: B,
|
|
6216
|
-
pagination:
|
|
6217
|
-
formatFn:
|
|
6216
|
+
pagination: A,
|
|
6217
|
+
formatFn: C,
|
|
6218
6218
|
contrastClass: h,
|
|
6219
|
-
tableChange:
|
|
6219
|
+
tableChange: k,
|
|
6220
6220
|
summaryList: Ae,
|
|
6221
|
-
loading:
|
|
6221
|
+
loading: R,
|
|
6222
6222
|
onTouchHrefEvent: Un,
|
|
6223
6223
|
handleHref: Pn,
|
|
6224
6224
|
handleHrefTarget: Bn,
|
|
@@ -6245,14 +6245,14 @@ const Bs = {
|
|
|
6245
6245
|
class: "progress-cell"
|
|
6246
6246
|
};
|
|
6247
6247
|
function Zs(e, o, t, n, a, l) {
|
|
6248
|
-
const i = Z("a-button"), r = Z("a-input"), c = Z("a-checkbox-group"), f = Z("a-table-summary-cell"),
|
|
6249
|
-
return O(),
|
|
6248
|
+
const i = Z("a-button"), r = Z("a-input"), c = Z("a-checkbox-group"), f = Z("a-table-summary-cell"), p = Z("a-table-summary-row"), m = Z("a-table-summary"), x = Z("a-table"), u = Z("skeleton");
|
|
6249
|
+
return O(), F("div", {
|
|
6250
6250
|
class: "ecan-table",
|
|
6251
6251
|
style: G(e.style)
|
|
6252
6252
|
}, [
|
|
6253
6253
|
W(u, { loading: e.loading }, {
|
|
6254
6254
|
default: X(() => [
|
|
6255
|
-
e.isUseExport ? (O(),
|
|
6255
|
+
e.isUseExport ? (O(), F("div", Bs, [
|
|
6256
6256
|
W(i, {
|
|
6257
6257
|
class: "export-button",
|
|
6258
6258
|
onClick: e.exportTableData
|
|
@@ -6277,7 +6277,7 @@ function Zs(e, o, t, n, a, l) {
|
|
|
6277
6277
|
pagination: e.pagination,
|
|
6278
6278
|
onChange: e.tableChange
|
|
6279
6279
|
}, {
|
|
6280
|
-
customFilterDropdown: X(({ column: s, selectedKeys: d, setSelectedKeys:
|
|
6280
|
+
customFilterDropdown: X(({ column: s, selectedKeys: d, setSelectedKeys: S, confirm: y, clearFilters: T }) => [
|
|
6281
6281
|
ee("div", {
|
|
6282
6282
|
class: "ecan-table-filter",
|
|
6283
6283
|
style: G({
|
|
@@ -6296,7 +6296,7 @@ function Zs(e, o, t, n, a, l) {
|
|
|
6296
6296
|
"onUpdate:value": (M) => s.filterCheckboxGroupValue = M,
|
|
6297
6297
|
class: "filter-checkbox",
|
|
6298
6298
|
options: e.useFilterOptions(s),
|
|
6299
|
-
onChange: (M) => e.useSetSelectedKeys(
|
|
6299
|
+
onChange: (M) => e.useSetSelectedKeys(S, s)
|
|
6300
6300
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6301
6301
|
ee("div", null, [
|
|
6302
6302
|
W(i, {
|
|
@@ -6323,9 +6323,9 @@ function Zs(e, o, t, n, a, l) {
|
|
|
6323
6323
|
])
|
|
6324
6324
|
], 4)
|
|
6325
6325
|
]),
|
|
6326
|
-
bodyCell: X(({ column: s, index: d, text:
|
|
6327
|
-
s.dataIndex === "SEQ" ? (O(),
|
|
6328
|
-
(O(!0),
|
|
6326
|
+
bodyCell: X(({ column: s, index: d, text: S, record: y }) => [
|
|
6327
|
+
s.dataIndex === "SEQ" ? (O(), F("span", js, ye(d + 1), 1)) : s.dataIndex === "ACTION" ? (O(), F("div", Ws, [
|
|
6328
|
+
(O(!0), F(Me, null, Oe(e.actionList, (T, M) => (O(), F("div", {
|
|
6329
6329
|
class: "action",
|
|
6330
6330
|
key: M
|
|
6331
6331
|
}, [
|
|
@@ -6337,39 +6337,39 @@ function Zs(e, o, t, n, a, l) {
|
|
|
6337
6337
|
fontSize: e.fontSize,
|
|
6338
6338
|
fontWeight: e.fontWeight
|
|
6339
6339
|
}),
|
|
6340
|
-
onClick: (
|
|
6340
|
+
onClick: (_) => e.onTouchHrefEvent(T.target, e.handleHref(T.href, y))
|
|
6341
6341
|
}, ye(T.title), 13, Vs)
|
|
6342
6342
|
]))), 128))
|
|
6343
|
-
])) : s.format === "progress" ? (O(),
|
|
6343
|
+
])) : s.format === "progress" ? (O(), F("div", Hs, [
|
|
6344
6344
|
ee("div", {
|
|
6345
6345
|
class: "progress",
|
|
6346
6346
|
style: G({
|
|
6347
6347
|
background: s.progressColor || "#1890ff",
|
|
6348
6348
|
height: s.progressWidth || "18px",
|
|
6349
|
-
width: `${e.handleProgressText(
|
|
6349
|
+
width: `${e.handleProgressText(S, s.progressTextDecimalPlaces)}%`
|
|
6350
6350
|
})
|
|
6351
6351
|
}, null, 4),
|
|
6352
6352
|
ee("div", {
|
|
6353
6353
|
class: "progress-text",
|
|
6354
6354
|
style: G({
|
|
6355
|
-
color: e.handleProgressText(
|
|
6355
|
+
color: e.handleProgressText(S) < 100 ? s.progressTextColor || "#333" : s.progressFinishedTextColor || "#fff"
|
|
6356
6356
|
})
|
|
6357
|
-
}, ye(e.handleProgressText(
|
|
6358
|
-
])) : (O(),
|
|
6357
|
+
}, ye(e.handleProgressText(S, s.progressTextDecimalPlaces)) + "% ", 5)
|
|
6358
|
+
])) : (O(), F("div", {
|
|
6359
6359
|
key: 3,
|
|
6360
|
-
class:
|
|
6360
|
+
class: Et([e.contrastClass(S, s.format)]),
|
|
6361
6361
|
style: G({
|
|
6362
6362
|
fontSize: e.fontSize,
|
|
6363
6363
|
fontWeight: e.fontWeight
|
|
6364
6364
|
})
|
|
6365
|
-
}, ye(s.format != null ? e.formatFn(
|
|
6365
|
+
}, ye(s.format != null ? e.formatFn(S, s.format) : S), 7))
|
|
6366
6366
|
]),
|
|
6367
6367
|
summary: X(() => [
|
|
6368
6368
|
e.summaryList.length > 0 ? (O(), ze(m, { key: 0 }, {
|
|
6369
6369
|
default: X(() => [
|
|
6370
|
-
W(
|
|
6370
|
+
W(p, null, {
|
|
6371
6371
|
default: X(() => [
|
|
6372
|
-
(O(!0),
|
|
6372
|
+
(O(!0), F(Me, null, Oe(e.summaryList, (s, d) => (O(), ze(f, {
|
|
6373
6373
|
key: d,
|
|
6374
6374
|
index: d,
|
|
6375
6375
|
style: G({
|
|
@@ -6381,7 +6381,7 @@ function Zs(e, o, t, n, a, l) {
|
|
|
6381
6381
|
}, {
|
|
6382
6382
|
default: X(() => [
|
|
6383
6383
|
ee("div", {
|
|
6384
|
-
class:
|
|
6384
|
+
class: Et([e.contrastClass(s.total, s.format)]),
|
|
6385
6385
|
style: G({
|
|
6386
6386
|
fontSize: e.fontSize,
|
|
6387
6387
|
fontWeight: e.fontWeight
|
|
@@ -6467,12 +6467,12 @@ const Qs = te({
|
|
|
6467
6467
|
image: w(t),
|
|
6468
6468
|
repeat: e.geoBackgroundImageRepeat
|
|
6469
6469
|
} : e.geoItemStyleAreaColor), i = q(() => {
|
|
6470
|
-
const
|
|
6471
|
-
return e.symbolImage ? "image://" + $e(
|
|
6470
|
+
const p = e.symbolImage;
|
|
6471
|
+
return e.symbolImage ? "image://" + $e(p) : "circle";
|
|
6472
6472
|
}), r = q(() => {
|
|
6473
|
-
const
|
|
6473
|
+
const p = e.geoCenter;
|
|
6474
6474
|
let m;
|
|
6475
|
-
return typeof
|
|
6475
|
+
return typeof p == "string" && p !== "" && (m = p.split(",")), {
|
|
6476
6476
|
// backgroundColor: unref(background),
|
|
6477
6477
|
tooltip: {
|
|
6478
6478
|
show: !0
|
|
@@ -6553,9 +6553,9 @@ const Qs = te({
|
|
|
6553
6553
|
};
|
|
6554
6554
|
}), c = I(!1), f = async () => {
|
|
6555
6555
|
var m;
|
|
6556
|
-
const
|
|
6557
|
-
if (
|
|
6558
|
-
const x = await Fe(((m = window == null ? void 0 : window.config) == null ? void 0 : m.uploadPath) +
|
|
6556
|
+
const p = e.mapJson;
|
|
6557
|
+
if (p != null && p.path) {
|
|
6558
|
+
const x = await Fe(((m = window == null ? void 0 : window.config) == null ? void 0 : m.uploadPath) + p.path);
|
|
6559
6559
|
oa("map", (x == null ? void 0 : x.data) || {});
|
|
6560
6560
|
}
|
|
6561
6561
|
c.value = !0;
|
|
@@ -6577,7 +6577,7 @@ const Qs = te({
|
|
|
6577
6577
|
const Ks = ["src"];
|
|
6578
6578
|
function Xs(e, o, t, n, a, l) {
|
|
6579
6579
|
const i = Z("echarts");
|
|
6580
|
-
return O(),
|
|
6580
|
+
return O(), F("div", {
|
|
6581
6581
|
class: "ecan-map",
|
|
6582
6582
|
style: G(e.style)
|
|
6583
6583
|
}, [
|