@ecan-bi/datav 1.1.68 → 1.1.70
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 +1235 -1228
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/range-picker/RangePicker.vue.d.ts +2 -0
- package/types/control/range-picker/index.d.ts +2 -0
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.70 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as v, watchEffect as uo, defineComponent as Q, shallowRef as vt, toRefs as On, onMounted as Ue, onUnmounted as ft, h as dt, nextTick as mt, createVNode as G, resolveComponent as H, openBlock as D, createElementBlock as $, createBlock as Re, renderSlot as gt, withCtx as Y, ref as M, normalizeStyle as U, createCommentVNode as ve, provide as ze, onBeforeUnmount as Tt, toDisplayString as be, Fragment as Me, renderList as De, createElementVNode as ee, normalizeClass as Lt, pushScopeId as fo, popScopeId as mo, createSlots as Rn, resolveDynamicComponent as Fn, mergeProps as zn, withModifiers as go, reactive as $n, createTextVNode as Ot, withDirectives as Nn, vShow as Pn } from "vue";
|
|
3
3
|
import { throttle as Bn, init as Un, use as qe, registerMap as Gn } from "echarts/core";
|
|
4
4
|
import { addListener as qn, removeListener as jn } from "resize-detector";
|
|
5
5
|
import { Spin as Wn, Skeleton as Vn, message as Be, Progress as Hn, Input as ho, DatePicker as Zn, Select as Jn, RangePicker as Yn, Button as yo, CheckboxGroup as bo, Modal as Ae, Table as Qn, TableSummary as Kn, TableSummaryRow as Xn, TableSummaryCell as ea } from "ant-design-vue";
|
|
6
6
|
import "ant-design-vue/es/spin/style";
|
|
7
7
|
import "ant-design-vue/es/skeleton/style";
|
|
8
|
-
import { without as ta, pick as vo, debounce as Rt, cloneDeep as
|
|
8
|
+
import { without as ta, pick as vo, debounce as Rt, cloneDeep as pt } from "lodash-es";
|
|
9
9
|
import po from "axios";
|
|
10
10
|
import Ce from "dayjs";
|
|
11
11
|
import oa from "mitt";
|
|
@@ -59,8 +59,8 @@ function ua(e, o) {
|
|
|
59
59
|
}
|
|
60
60
|
function fa(e, o, t) {
|
|
61
61
|
let n = null;
|
|
62
|
-
ne([t, e, o], ([a, l,
|
|
63
|
-
a && l &&
|
|
62
|
+
ne([t, e, o], ([a, l, r], i, s) => {
|
|
63
|
+
a && l && r && (n = Bn(() => {
|
|
64
64
|
l.resize();
|
|
65
65
|
}, 100), qn(a, n)), s(() => {
|
|
66
66
|
n && a && jn(a, n);
|
|
@@ -71,7 +71,7 @@ const ma = {
|
|
|
71
71
|
autoresize: Boolean
|
|
72
72
|
}, ga = "ecLoadingOptions";
|
|
73
73
|
function ha(e, o, t) {
|
|
74
|
-
const n =
|
|
74
|
+
const n = N(ga, {}), a = q(() => ({
|
|
75
75
|
...v(n),
|
|
76
76
|
...t == null ? void 0 : t.value
|
|
77
77
|
}));
|
|
@@ -108,34 +108,34 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
108
108
|
inheritAttrs: !1,
|
|
109
109
|
// @ts-expect-error listeners for Vue 2 compatibility
|
|
110
110
|
setup(e, { attrs: o, listeners: t }) {
|
|
111
|
-
const n =
|
|
111
|
+
const n = vt(), a = vt(), l = vt(), r = N(Sa, null), i = N(
|
|
112
112
|
wa,
|
|
113
113
|
null
|
|
114
|
-
), s =
|
|
114
|
+
), s = N(
|
|
115
115
|
xa,
|
|
116
116
|
null
|
|
117
|
-
), { autoresize: f, manualUpdate:
|
|
117
|
+
), { autoresize: f, manualUpdate: b, loading: x, loadingOptions: w } = On(e), d = q(
|
|
118
118
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
119
|
-
), u =
|
|
120
|
-
() => e.initOptions || v(
|
|
121
|
-
),
|
|
119
|
+
), u = q(() => e.theme || v(r) || {}), h = q(
|
|
120
|
+
() => e.initOptions || v(i) || {}
|
|
121
|
+
), g = q(
|
|
122
122
|
() => e.updateOptions || v(s) || {}
|
|
123
|
-
),
|
|
124
|
-
function
|
|
123
|
+
), y = q(() => pa(o));
|
|
124
|
+
function p(S) {
|
|
125
125
|
if (a.value || !n.value)
|
|
126
126
|
return;
|
|
127
127
|
const c = a.value = Un(
|
|
128
128
|
n.value,
|
|
129
129
|
u.value,
|
|
130
|
-
|
|
130
|
+
h.value
|
|
131
131
|
);
|
|
132
132
|
e.group && (c.group = e.group);
|
|
133
|
-
let
|
|
134
|
-
|
|
133
|
+
let m = t;
|
|
134
|
+
m || (m = {}, Object.keys(o).filter((E) => E.indexOf("on") === 0 && E.length > 2).forEach((E) => {
|
|
135
135
|
const T = E.charAt(2).toLowerCase() + E.slice(3);
|
|
136
|
-
|
|
137
|
-
})), Object.keys(
|
|
138
|
-
const T =
|
|
136
|
+
m[T] = o[E];
|
|
137
|
+
})), Object.keys(m).forEach((E) => {
|
|
138
|
+
const T = m[E];
|
|
139
139
|
T && (E.indexOf("zr:") === 0 ? c.getZr().on(E.slice(3).toLowerCase(), T) : c.on(E.toLowerCase(), T));
|
|
140
140
|
});
|
|
141
141
|
function k() {
|
|
@@ -149,26 +149,26 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
function R() {
|
|
152
|
-
c.setOption(
|
|
152
|
+
c.setOption(S || d.value, g.value);
|
|
153
153
|
}
|
|
154
|
-
f.value ?
|
|
154
|
+
f.value ? mt(() => {
|
|
155
155
|
k(), R();
|
|
156
156
|
}) : R();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
e.manualUpdate && (l.value =
|
|
158
|
+
function _(S, c) {
|
|
159
|
+
e.manualUpdate && (l.value = S), a.value ? a.value.setOption(S, c || {}) : p(S);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function I() {
|
|
162
162
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
163
163
|
}
|
|
164
|
-
let
|
|
164
|
+
let C = null;
|
|
165
165
|
ne(
|
|
166
|
-
|
|
167
|
-
(
|
|
168
|
-
typeof
|
|
166
|
+
b,
|
|
167
|
+
(S) => {
|
|
168
|
+
typeof C == "function" && (C(), C = null), S || (C = ne(
|
|
169
169
|
() => e.option,
|
|
170
170
|
(c) => {
|
|
171
|
-
c && (a.value ? a.value.setOption(c,
|
|
171
|
+
c && (a.value ? a.value.setOption(c, g.value) : p());
|
|
172
172
|
},
|
|
173
173
|
{ deep: !0 }
|
|
174
174
|
));
|
|
@@ -177,9 +177,9 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
177
177
|
immediate: !0
|
|
178
178
|
}
|
|
179
179
|
), ne(
|
|
180
|
-
[u,
|
|
180
|
+
[u, h],
|
|
181
181
|
() => {
|
|
182
|
-
|
|
182
|
+
I(), p();
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
deep: !0
|
|
@@ -187,15 +187,15 @@ const Ca = "x-vue-echarts", Sa = "ecTheme", wa = "ecInitOptions", xa = "ecUpdate
|
|
|
187
187
|
), uo(() => {
|
|
188
188
|
e.group && a.value && (a.value.group = e.group);
|
|
189
189
|
});
|
|
190
|
-
const
|
|
191
|
-
return ha(a,
|
|
192
|
-
e.option &&
|
|
193
|
-
}),
|
|
190
|
+
const A = ua(a, p);
|
|
191
|
+
return ha(a, x, w), fa(a, f, n), Ue(() => {
|
|
192
|
+
e.option && p();
|
|
193
|
+
}), ft(I), {
|
|
194
194
|
chart: a,
|
|
195
195
|
root: n,
|
|
196
|
-
setOption:
|
|
197
|
-
nonEventAttrs:
|
|
198
|
-
...
|
|
196
|
+
setOption: _,
|
|
197
|
+
nonEventAttrs: y,
|
|
198
|
+
...A
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
render() {
|
|
@@ -220,7 +220,7 @@ function _a(e) {
|
|
|
220
220
|
function it(e) {
|
|
221
221
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ct(e) {
|
|
224
224
|
return e.length === 1 ? "0" + e : String(e);
|
|
225
225
|
}
|
|
226
226
|
function Ta(e, o, t) {
|
|
@@ -230,7 +230,7 @@ function Ta(e, o, t) {
|
|
|
230
230
|
b: xe(t, 255) * 255
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function St(e, o, t) {
|
|
234
234
|
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;
|
|
235
235
|
}
|
|
236
236
|
function La(e, o, t) {
|
|
@@ -238,42 +238,42 @@ function La(e, o, t) {
|
|
|
238
238
|
if (e = xe(e, 360), o = xe(o, 100), t = xe(t, 100), o === 0)
|
|
239
239
|
a = t, l = t, n = t;
|
|
240
240
|
else {
|
|
241
|
-
var
|
|
242
|
-
n =
|
|
241
|
+
var r = t < 0.5 ? t * (1 + o) : t + o - t * o, i = 2 * t - r;
|
|
242
|
+
n = St(i, r, e + 1 / 3), a = St(i, r, e), l = St(i, r, e - 1 / 3);
|
|
243
243
|
}
|
|
244
244
|
return { r: n * 255, g: a * 255, b: l * 255 };
|
|
245
245
|
}
|
|
246
246
|
function Ia(e, o, t) {
|
|
247
247
|
e = xe(e, 255), o = xe(o, 255), t = xe(t, 255);
|
|
248
|
-
var n = Math.max(e, o, t), a = Math.min(e, o, t), l = 0,
|
|
248
|
+
var n = Math.max(e, o, t), a = Math.min(e, o, t), l = 0, r = n, i = n - a, s = n === 0 ? 0 : i / n;
|
|
249
249
|
if (n === a)
|
|
250
250
|
l = 0;
|
|
251
251
|
else {
|
|
252
252
|
switch (n) {
|
|
253
253
|
case e:
|
|
254
|
-
l = (o - t) /
|
|
254
|
+
l = (o - t) / i + (o < t ? 6 : 0);
|
|
255
255
|
break;
|
|
256
256
|
case o:
|
|
257
|
-
l = (t - e) /
|
|
257
|
+
l = (t - e) / i + 2;
|
|
258
258
|
break;
|
|
259
259
|
case t:
|
|
260
|
-
l = (e - o) /
|
|
260
|
+
l = (e - o) / i + 4;
|
|
261
261
|
break;
|
|
262
262
|
}
|
|
263
263
|
l /= 6;
|
|
264
264
|
}
|
|
265
|
-
return { h: l, s, v:
|
|
265
|
+
return { h: l, s, v: r };
|
|
266
266
|
}
|
|
267
267
|
function Ma(e, o, t) {
|
|
268
268
|
e = xe(e, 360) * 6, o = xe(o, 100), t = xe(t, 100);
|
|
269
|
-
var n = Math.floor(e), a = e - n, l = t * (1 - o),
|
|
270
|
-
return { r: f * 255, g:
|
|
269
|
+
var n = Math.floor(e), a = e - n, l = t * (1 - o), r = t * (1 - a * o), i = t * (1 - (1 - a) * o), s = n % 6, f = [t, r, l, l, i, t][s], b = [i, t, t, r, l, l][s], x = [l, l, i, t, t, r][s];
|
|
270
|
+
return { r: f * 255, g: b * 255, b: x * 255 };
|
|
271
271
|
}
|
|
272
272
|
function Ea(e, o, t, n) {
|
|
273
273
|
var a = [
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
Ct(Math.round(e).toString(16)),
|
|
275
|
+
Ct(Math.round(o).toString(16)),
|
|
276
|
+
Ct(Math.round(t).toString(16))
|
|
277
277
|
];
|
|
278
278
|
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("");
|
|
279
279
|
}
|
|
@@ -434,24 +434,24 @@ var qt = {
|
|
|
434
434
|
yellowgreen: "#9acd32"
|
|
435
435
|
};
|
|
436
436
|
function He(e) {
|
|
437
|
-
var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, l = null,
|
|
438
|
-
return typeof e == "string" && (e = Ra(e)), typeof e == "object" && (Ie(e.r) && Ie(e.g) && Ie(e.b) ? (o = Ta(e.r, e.g, e.b),
|
|
439
|
-
ok:
|
|
440
|
-
format: e.format ||
|
|
437
|
+
var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, l = null, r = !1, i = !1;
|
|
438
|
+
return typeof e == "string" && (e = Ra(e)), typeof e == "object" && (Ie(e.r) && Ie(e.g) && Ie(e.b) ? (o = Ta(e.r, e.g, e.b), r = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ie(e.h) && Ie(e.s) && Ie(e.v) ? (n = it(e.s), a = it(e.v), o = Ma(e.h, n, a), r = !0, i = "hsv") : Ie(e.h) && Ie(e.s) && Ie(e.l) && (n = it(e.s), l = it(e.l), o = La(e.h, n, l), r = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = _a(t), {
|
|
439
|
+
ok: r,
|
|
440
|
+
format: e.format || i,
|
|
441
441
|
r: Math.min(255, Math.max(o.r, 0)),
|
|
442
442
|
g: Math.min(255, Math.max(o.g, 0)),
|
|
443
443
|
b: Math.min(255, Math.max(o.b, 0)),
|
|
444
444
|
a: t
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var Da = "[-\\+]?\\d+%?", Oa = "[-\\+]?\\d*\\.\\d+%?", Oe = "(?:".concat(Oa, ")|(?:").concat(Da, ")"),
|
|
447
|
+
var Da = "[-\\+]?\\d+%?", Oa = "[-\\+]?\\d*\\.\\d+%?", Oe = "(?:".concat(Oa, ")|(?:").concat(Da, ")"), wt = "[\\s|\\(]+(".concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")\\s*\\)?"), xt = "[\\s|\\(]+(".concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")\\s*\\)?"), ke = {
|
|
448
448
|
CSS_UNIT: new RegExp(Oe),
|
|
449
|
-
rgb: new RegExp("rgb" +
|
|
450
|
-
rgba: new RegExp("rgba" +
|
|
451
|
-
hsl: new RegExp("hsl" +
|
|
452
|
-
hsla: new RegExp("hsla" +
|
|
453
|
-
hsv: new RegExp("hsv" +
|
|
454
|
-
hsva: new RegExp("hsva" +
|
|
449
|
+
rgb: new RegExp("rgb" + wt),
|
|
450
|
+
rgba: new RegExp("rgba" + xt),
|
|
451
|
+
hsl: new RegExp("hsl" + wt),
|
|
452
|
+
hsla: new RegExp("hsla" + xt),
|
|
453
|
+
hsv: new RegExp("hsv" + wt),
|
|
454
|
+
hsva: new RegExp("hsva" + xt),
|
|
455
455
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
456
456
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
457
457
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
@@ -558,30 +558,30 @@ function Zt(e, o, t) {
|
|
|
558
558
|
var n;
|
|
559
559
|
return t ? n = e.v + za * o : n = e.v - $a * o, n > 1 && (n = 1), Number(n.toFixed(2));
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function It(e) {
|
|
562
562
|
for (var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = He(e), a = Ao; a > 0; a -= 1) {
|
|
563
|
-
var l = Wt(n),
|
|
563
|
+
var l = Wt(n), r = st(He({
|
|
564
564
|
h: Vt(l, a, !0),
|
|
565
565
|
s: Ht(l, a, !0),
|
|
566
566
|
v: Zt(l, a, !0)
|
|
567
567
|
}));
|
|
568
|
-
t.push(
|
|
568
|
+
t.push(r);
|
|
569
569
|
}
|
|
570
570
|
t.push(st(n));
|
|
571
|
-
for (var
|
|
571
|
+
for (var i = 1; i <= _o; i += 1) {
|
|
572
572
|
var s = Wt(n), f = st(He({
|
|
573
|
-
h: Vt(s,
|
|
574
|
-
s: Ht(s,
|
|
575
|
-
v: Zt(s,
|
|
573
|
+
h: Vt(s, i),
|
|
574
|
+
s: Ht(s, i),
|
|
575
|
+
v: Zt(s, i)
|
|
576
576
|
}));
|
|
577
577
|
t.push(f);
|
|
578
578
|
}
|
|
579
|
-
return o.theme === "dark" ? Na.map(function(
|
|
580
|
-
var
|
|
579
|
+
return o.theme === "dark" ? Na.map(function(b) {
|
|
580
|
+
var x = b.index, w = b.opacity, d = st(Pa(He(o.backgroundColor || "#141414"), He(t[x]), w * 100));
|
|
581
581
|
return d;
|
|
582
582
|
}) : t;
|
|
583
583
|
}
|
|
584
|
-
var
|
|
584
|
+
var kt = {
|
|
585
585
|
red: "#F5222D",
|
|
586
586
|
volcano: "#FA541C",
|
|
587
587
|
orange: "#FA8C16",
|
|
@@ -595,12 +595,12 @@ var At = {
|
|
|
595
595
|
purple: "#722ED1",
|
|
596
596
|
magenta: "#EB2F96",
|
|
597
597
|
grey: "#666666"
|
|
598
|
-
},
|
|
599
|
-
Object.keys(
|
|
600
|
-
|
|
598
|
+
}, At = {}, _t = {};
|
|
599
|
+
Object.keys(kt).forEach(function(e) {
|
|
600
|
+
At[e] = It(kt[e]), At[e].primary = At[e][5], _t[e] = It(kt[e], {
|
|
601
601
|
theme: "dark",
|
|
602
602
|
backgroundColor: "#141414"
|
|
603
|
-
}),
|
|
603
|
+
}), _t[e].primary = _t[e][5];
|
|
604
604
|
});
|
|
605
605
|
var Jt = [], Ze = [], Ba = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
606
606
|
function Ua() {
|
|
@@ -638,19 +638,19 @@ function Wa(e, o) {
|
|
|
638
638
|
function Qt(e) {
|
|
639
639
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Mt(e, o, t) {
|
|
642
642
|
return t ? dt(e.tag, Yt({
|
|
643
643
|
key: o
|
|
644
644
|
}, t, e.attrs), (e.children || []).map(function(n, a) {
|
|
645
|
-
return
|
|
645
|
+
return Mt(n, "".concat(o, "-").concat(e.tag, "-").concat(a));
|
|
646
646
|
})) : dt(e.tag, Yt({
|
|
647
647
|
key: o
|
|
648
648
|
}, e.attrs), (e.children || []).map(function(n, a) {
|
|
649
|
-
return
|
|
649
|
+
return Mt(n, "".concat(o, "-").concat(e.tag, "-").concat(a));
|
|
650
650
|
}));
|
|
651
651
|
}
|
|
652
652
|
function To(e) {
|
|
653
|
-
return
|
|
653
|
+
return It(e)[0];
|
|
654
654
|
}
|
|
655
655
|
function Lo(e) {
|
|
656
656
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
@@ -711,7 +711,7 @@ var Va = `
|
|
|
711
711
|
}
|
|
712
712
|
`, Kt = !1, Ha = function() {
|
|
713
713
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Va;
|
|
714
|
-
|
|
714
|
+
mt(function() {
|
|
715
715
|
Kt || (typeof window < "u" && window.document && window.document.documentElement && Ga(o, {
|
|
716
716
|
prepend: !0
|
|
717
717
|
}), Kt = !0);
|
|
@@ -763,16 +763,16 @@ function Xa() {
|
|
|
763
763
|
return ct({}, Ye);
|
|
764
764
|
}
|
|
765
765
|
var We = function(o, t) {
|
|
766
|
-
var n = ct({}, o, t.attrs), a = n.icon, l = n.primaryColor,
|
|
766
|
+
var n = ct({}, o, t.attrs), a = n.icon, l = n.primaryColor, r = n.secondaryColor, i = Ja(n, Za), s = Ye;
|
|
767
767
|
if (l && (s = {
|
|
768
768
|
primaryColor: l,
|
|
769
|
-
secondaryColor:
|
|
769
|
+
secondaryColor: r || To(l)
|
|
770
770
|
}), Ha(), Wa(Qt(a), "icon should be icon definiton, but got ".concat(a)), !Qt(a))
|
|
771
771
|
return null;
|
|
772
772
|
var f = a;
|
|
773
773
|
return f && typeof f.icon == "function" && (f = ct({}, f, {
|
|
774
774
|
icon: f.icon(s.primaryColor, s.secondaryColor)
|
|
775
|
-
})),
|
|
775
|
+
})), Mt(f.icon, "svg-".concat(f.name), ct({}, i, {
|
|
776
776
|
"data-icon": f.name,
|
|
777
777
|
width: "1em",
|
|
778
778
|
height: "1em",
|
|
@@ -818,18 +818,18 @@ function Xt(e, o) {
|
|
|
818
818
|
function nl(e, o) {
|
|
819
819
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
820
820
|
if (t != null) {
|
|
821
|
-
var n = [], a = !0, l = !1,
|
|
821
|
+
var n = [], a = !0, l = !1, r, i;
|
|
822
822
|
try {
|
|
823
|
-
for (t = t.call(e); !(a = (
|
|
823
|
+
for (t = t.call(e); !(a = (r = t.next()).done) && (n.push(r.value), !(o && n.length === o)); a = !0)
|
|
824
824
|
;
|
|
825
825
|
} catch (s) {
|
|
826
|
-
l = !0,
|
|
826
|
+
l = !0, i = s;
|
|
827
827
|
} finally {
|
|
828
828
|
try {
|
|
829
829
|
!a && t.return != null && t.return();
|
|
830
830
|
} finally {
|
|
831
831
|
if (l)
|
|
832
|
-
throw
|
|
832
|
+
throw i;
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
return n;
|
|
@@ -878,18 +878,18 @@ function eo(e, o) {
|
|
|
878
878
|
function dl(e, o) {
|
|
879
879
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
880
880
|
if (t != null) {
|
|
881
|
-
var n = [], a = !0, l = !1,
|
|
881
|
+
var n = [], a = !0, l = !1, r, i;
|
|
882
882
|
try {
|
|
883
|
-
for (t = t.call(e); !(a = (
|
|
883
|
+
for (t = t.call(e); !(a = (r = t.next()).done) && (n.push(r.value), !(o && n.length === o)); a = !0)
|
|
884
884
|
;
|
|
885
885
|
} catch (s) {
|
|
886
|
-
l = !0,
|
|
886
|
+
l = !0, i = s;
|
|
887
887
|
} finally {
|
|
888
888
|
try {
|
|
889
889
|
!a && t.return != null && t.return();
|
|
890
890
|
} finally {
|
|
891
891
|
if (l)
|
|
892
|
-
throw
|
|
892
|
+
throw i;
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
return n;
|
|
@@ -905,12 +905,12 @@ function to(e) {
|
|
|
905
905
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
906
906
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
907
907
|
}))), n.forEach(function(a) {
|
|
908
|
-
|
|
908
|
+
Et(e, a, t[a]);
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
911
|
return e;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Et(e, o, t) {
|
|
914
914
|
return o in e ? Object.defineProperty(e, o, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = t, e;
|
|
915
915
|
}
|
|
916
916
|
function fl(e, o) {
|
|
@@ -934,26 +934,26 @@ function ml(e, o) {
|
|
|
934
934
|
}
|
|
935
935
|
Io("#1890ff");
|
|
936
936
|
var Ve = function(o, t) {
|
|
937
|
-
var n, a = to({}, o, t.attrs), l = a.class,
|
|
937
|
+
var n, a = to({}, o, t.attrs), l = a.class, r = a.icon, i = a.spin, s = a.rotate, f = a.tabindex, b = a.twoToneColor, x = a.onClick, w = fl(a, il), d = (n = {
|
|
938
938
|
anticon: !0
|
|
939
|
-
},
|
|
940
|
-
|
|
941
|
-
var
|
|
939
|
+
}, Et(n, "anticon-".concat(r.name), Boolean(r.name)), Et(n, l, l), n), u = i === "" || i || r.name === "loading" ? "anticon-spin" : "", h = f;
|
|
940
|
+
h === void 0 && x && (h = -1, w.tabindex = h);
|
|
941
|
+
var g = s ? {
|
|
942
942
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
943
943
|
transform: "rotate(".concat(s, "deg)")
|
|
944
|
-
} : void 0,
|
|
945
|
-
return
|
|
944
|
+
} : void 0, y = Lo(b), p = rl(y, 2), _ = p[0], I = p[1];
|
|
945
|
+
return G("span", to({
|
|
946
946
|
role: "img",
|
|
947
|
-
"aria-label":
|
|
948
|
-
},
|
|
949
|
-
onClick:
|
|
947
|
+
"aria-label": r.name
|
|
948
|
+
}, w, {
|
|
949
|
+
onClick: x,
|
|
950
950
|
class: d
|
|
951
|
-
}), [
|
|
951
|
+
}), [G(zt, {
|
|
952
952
|
class: u,
|
|
953
|
-
icon:
|
|
954
|
-
primaryColor:
|
|
955
|
-
secondaryColor:
|
|
956
|
-
style:
|
|
953
|
+
icon: r,
|
|
954
|
+
primaryColor: _,
|
|
955
|
+
secondaryColor: I,
|
|
956
|
+
style: g
|
|
957
957
|
}, null)]);
|
|
958
958
|
};
|
|
959
959
|
Ve.props = {
|
|
@@ -985,7 +985,7 @@ function bl(e, o, t) {
|
|
|
985
985
|
}
|
|
986
986
|
var $t = function(o, t) {
|
|
987
987
|
var n = oo({}, o, t.attrs);
|
|
988
|
-
return
|
|
988
|
+
return G(gl, oo({}, n, {
|
|
989
989
|
icon: yl
|
|
990
990
|
}), null);
|
|
991
991
|
};
|
|
@@ -1020,15 +1020,15 @@ const K = (e, o) => {
|
|
|
1020
1020
|
return t;
|
|
1021
1021
|
}, Cl = { class: "spin-wrapper" };
|
|
1022
1022
|
function Sl(e, o, t, n, a, l) {
|
|
1023
|
-
const
|
|
1024
|
-
return D(),
|
|
1025
|
-
e.spinning ? (D(), Re(
|
|
1023
|
+
const r = H("a-spin");
|
|
1024
|
+
return D(), $("div", Cl, [
|
|
1025
|
+
e.spinning ? (D(), Re(r, {
|
|
1026
1026
|
key: 0,
|
|
1027
1027
|
class: "spin",
|
|
1028
1028
|
spinning: e.spinning,
|
|
1029
1029
|
indicator: e.indicator,
|
|
1030
1030
|
tip: "加载中..."
|
|
1031
|
-
}, null, 8, ["spinning", "indicator"])) :
|
|
1031
|
+
}, null, 8, ["spinning", "indicator"])) : gt(e.$slots, "default", { key: 1 })
|
|
1032
1032
|
]);
|
|
1033
1033
|
}
|
|
1034
1034
|
const tt = /* @__PURE__ */ K(pl, [["render", Sl]]), wl = Q({
|
|
@@ -1044,18 +1044,18 @@ const tt = /* @__PURE__ */ K(pl, [["render", Sl]]), wl = Q({
|
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
1046
|
function xl(e, o, t, n, a, l) {
|
|
1047
|
-
const
|
|
1048
|
-
return D(), Re(
|
|
1047
|
+
const r = H("a-skeleton");
|
|
1048
|
+
return D(), Re(r, {
|
|
1049
1049
|
active: "",
|
|
1050
1050
|
loading: e.loading
|
|
1051
1051
|
}, {
|
|
1052
1052
|
default: Y(() => [
|
|
1053
|
-
|
|
1053
|
+
gt(e.$slots, "default")
|
|
1054
1054
|
]),
|
|
1055
1055
|
_: 3
|
|
1056
1056
|
}, 8, ["loading"]);
|
|
1057
1057
|
}
|
|
1058
|
-
const
|
|
1058
|
+
const ht = /* @__PURE__ */ K(wl, [["render", xl]]);
|
|
1059
1059
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1060
1060
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1061
1061
|
const ae = (e, o) => {
|
|
@@ -1137,7 +1137,7 @@ const ae = (e, o) => {
|
|
|
1137
1137
|
"zIndex"
|
|
1138
1138
|
], re = (e, o = []) => {
|
|
1139
1139
|
const t = ta(kl, ...o);
|
|
1140
|
-
return
|
|
1140
|
+
return q(() => vo(e, t));
|
|
1141
1141
|
}, Nt = "EVENT_BUS", fe = "GLOBAL_CONFIG", ye = "GLOBAL_MODEL", Se = "REQUEST_MODEL", Do = "GLOBAL_TOKEN", Je = "REFRESH_PAGE", Oo = "MODAL_MODEL";
|
|
1142
1142
|
var io;
|
|
1143
1143
|
const Ro = (io = window == null ? void 0 : window.config) == null ? void 0 : io.indicatorURL;
|
|
@@ -1148,7 +1148,7 @@ const no = ((so = window == null ? void 0 : window.config) == null ? void 0 : so
|
|
|
1148
1148
|
var co;
|
|
1149
1149
|
const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co.erdURL) || "", he = (e, o) => {
|
|
1150
1150
|
ne(() => e.id, (t) => {
|
|
1151
|
-
const n =
|
|
1151
|
+
const n = N(Nt, {
|
|
1152
1152
|
// @ts-ignore
|
|
1153
1153
|
// eslint-disable-next-line no-void
|
|
1154
1154
|
onEvent: (a, l) => {
|
|
@@ -1159,22 +1159,22 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1159
1159
|
immediate: !0
|
|
1160
1160
|
});
|
|
1161
1161
|
}, me = (e) => {
|
|
1162
|
-
const o = e.events, t = e.id, n =
|
|
1162
|
+
const o = e.events, t = e.id, n = N(Nt, {
|
|
1163
1163
|
// @ts-ignore
|
|
1164
1164
|
// eslint-disable-next-line no-void
|
|
1165
|
-
emitEvent: (l,
|
|
1165
|
+
emitEvent: (l, r) => {
|
|
1166
1166
|
}
|
|
1167
|
-
}), { touchEventId: a } =
|
|
1167
|
+
}), { touchEventId: a } = N(fe, {
|
|
1168
1168
|
touchEventId: M("")
|
|
1169
1169
|
});
|
|
1170
|
-
return (l,
|
|
1170
|
+
return (l, r = () => {
|
|
1171
1171
|
}) => function() {
|
|
1172
|
-
|
|
1173
|
-
const { emitEvent:
|
|
1172
|
+
r.call(this, ...arguments);
|
|
1173
|
+
const { emitEvent: i } = n;
|
|
1174
1174
|
o.forEach((s) => {
|
|
1175
1175
|
if (l === s.on)
|
|
1176
1176
|
try {
|
|
1177
|
-
a.value = t,
|
|
1177
|
+
a.value = t, i(s.target, s.emit);
|
|
1178
1178
|
} catch (f) {
|
|
1179
1179
|
console.error(f);
|
|
1180
1180
|
}
|
|
@@ -1183,20 +1183,20 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
1183
1183
|
}, Qe = (e, o) => {
|
|
1184
1184
|
let { name: t = "name", value: n = "value", type: a = "type" } = o || {};
|
|
1185
1185
|
t = t == null ? void 0 : t.trim(), n = n == null ? void 0 : n.trim(), a = a == null ? void 0 : a.trim();
|
|
1186
|
-
const l = /* @__PURE__ */ new Set(),
|
|
1187
|
-
for (let
|
|
1188
|
-
const
|
|
1189
|
-
if (l.add(
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1186
|
+
const l = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = e.length;
|
|
1187
|
+
for (let b = 0; b < i; b++) {
|
|
1188
|
+
const x = e[b], w = x[t] || "", d = x[n] || "", u = x[a] || "";
|
|
1189
|
+
if (l.add(w), r.has(u)) {
|
|
1190
|
+
const h = r.get(u);
|
|
1191
|
+
h.push({ name: w, value: d, ...x }), r.set(u, h);
|
|
1192
1192
|
} else
|
|
1193
|
-
|
|
1193
|
+
r.set(u, [{ name: w, value: d, ...x }]);
|
|
1194
1194
|
}
|
|
1195
1195
|
const s = Array.from(l), f = [];
|
|
1196
|
-
for (const [
|
|
1196
|
+
for (const [b, x] of r)
|
|
1197
1197
|
f.push({
|
|
1198
|
-
name:
|
|
1199
|
-
data:
|
|
1198
|
+
name: b,
|
|
1199
|
+
data: x
|
|
1200
1200
|
});
|
|
1201
1201
|
return {
|
|
1202
1202
|
dimensions: s,
|
|
@@ -1245,37 +1245,37 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1245
1245
|
return e;
|
|
1246
1246
|
const n = parseFloat(t);
|
|
1247
1247
|
return isNaN(n) ? e : `${(n * 100).toFixed(o)}%`;
|
|
1248
|
-
},
|
|
1248
|
+
}, Dt = (e, o) => typeof e == "string" && typeof o == "string" ? e.toLocaleLowerCase().includes(o.toLocaleLowerCase()) : !1, yt = (e, o) => {
|
|
1249
1249
|
const t = {
|
|
1250
1250
|
dayjs: Ce,
|
|
1251
1251
|
...o
|
|
1252
1252
|
};
|
|
1253
1253
|
let n = "";
|
|
1254
1254
|
const a = [];
|
|
1255
|
-
for (const
|
|
1256
|
-
n += `${
|
|
1255
|
+
for (const i in t)
|
|
1256
|
+
n += `${i},`, a.push(t[i]);
|
|
1257
1257
|
n = n.replace(/,$/, "");
|
|
1258
1258
|
const l = `function (${n}){return ${e}}`;
|
|
1259
|
-
let
|
|
1259
|
+
let r;
|
|
1260
1260
|
try {
|
|
1261
|
-
|
|
1261
|
+
r = Function(`"use strict";return (${l})`)()(...a);
|
|
1262
1262
|
} catch {
|
|
1263
1263
|
return e;
|
|
1264
1264
|
}
|
|
1265
|
-
return
|
|
1265
|
+
return r;
|
|
1266
1266
|
}, de = (e = "", { textData: o, codeData: t } = {}, { useNewline: n = !1, useSpace: a = !1 } = {}) => {
|
|
1267
|
-
const
|
|
1268
|
-
if (
|
|
1267
|
+
const r = { ...window.config || {}, ...o }, i = e.match(/\{(.+?)\}/g);
|
|
1268
|
+
if (i == null || i.length === 0)
|
|
1269
1269
|
return e;
|
|
1270
|
-
for (let s = 0; s <
|
|
1271
|
-
const f =
|
|
1272
|
-
let
|
|
1273
|
-
const
|
|
1274
|
-
for (let d = 0; d <
|
|
1275
|
-
const u =
|
|
1276
|
-
|
|
1270
|
+
for (let s = 0; s < i.length; s++) {
|
|
1271
|
+
const f = i[s];
|
|
1272
|
+
let b = f.slice(1, -1).trim();
|
|
1273
|
+
const x = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, w = b.match(x);
|
|
1274
|
+
for (let d = 0; d < w.length; d++) {
|
|
1275
|
+
const u = w[d], h = r[u];
|
|
1276
|
+
h != null && (b = b.replace(u, h));
|
|
1277
1277
|
}
|
|
1278
|
-
/\(.*\)/g.test(
|
|
1278
|
+
/\(.*\)/g.test(b) && (b = yt(b, t)), e = e.replace(f, b);
|
|
1279
1279
|
}
|
|
1280
1280
|
return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
1281
1281
|
}, _e = (e, o = () => {
|
|
@@ -1285,99 +1285,98 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1285
1285
|
requestMethod: n,
|
|
1286
1286
|
requestHeaders: a,
|
|
1287
1287
|
requestParams: l,
|
|
1288
|
-
requestInterval:
|
|
1289
|
-
isOpenRequestTimer:
|
|
1290
|
-
} = e, { contextRequestUrl: s, pageMode: f, touchEventId:
|
|
1288
|
+
requestInterval: r,
|
|
1289
|
+
isOpenRequestTimer: i
|
|
1290
|
+
} = e, { contextRequestUrl: s, pageMode: f, touchEventId: b } = N(fe, {
|
|
1291
1291
|
contextRequestUrl: "",
|
|
1292
1292
|
pageMode: "normal",
|
|
1293
1293
|
touchEventId: ""
|
|
1294
|
-
}), { getGlobalModel:
|
|
1294
|
+
}), { getGlobalModel: x } = N(ye, {
|
|
1295
1295
|
// @ts-ignore
|
|
1296
1296
|
// eslint-disable-next-line no-void
|
|
1297
|
-
getGlobalModel: (
|
|
1297
|
+
getGlobalModel: (h) => {
|
|
1298
1298
|
}
|
|
1299
|
-
}),
|
|
1300
|
-
if (!
|
|
1299
|
+
}), w = de(t), d = async (h = {}) => {
|
|
1300
|
+
if (!w || !n || !a || v(f) === "design")
|
|
1301
1301
|
return;
|
|
1302
|
-
let
|
|
1303
|
-
l.forEach((
|
|
1304
|
-
const { key:
|
|
1305
|
-
if (typeof
|
|
1302
|
+
let g = {};
|
|
1303
|
+
l.forEach((C) => {
|
|
1304
|
+
const { key: A, value: S } = C;
|
|
1305
|
+
if (typeof S == "object" && S != null && S.id) {
|
|
1306
1306
|
let c = {};
|
|
1307
|
-
const { id:
|
|
1308
|
-
|
|
1307
|
+
const { id: m, prop: k, propKey: R, operate: E } = S;
|
|
1308
|
+
m === "THIS" ? c = x(v(b)) || {} : c = x(m) || {};
|
|
1309
1309
|
const T = v(c[k]);
|
|
1310
|
-
let
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
switch (z) {
|
|
1310
|
+
let j = null;
|
|
1311
|
+
if (["date", "range"].some((F) => Dt(c == null ? void 0 : c.type, F))) {
|
|
1312
|
+
const { value: F, type: B, mode: z } = E || {};
|
|
1313
|
+
if (F && B && z)
|
|
1314
|
+
switch (B) {
|
|
1316
1315
|
case "add":
|
|
1317
|
-
|
|
1316
|
+
j = v(T).add(F, z);
|
|
1318
1317
|
break;
|
|
1319
1318
|
case "minus":
|
|
1320
|
-
|
|
1319
|
+
j = v(T).subtract(F, z);
|
|
1321
1320
|
break;
|
|
1322
1321
|
}
|
|
1323
|
-
|
|
1322
|
+
j == null && (j = v(T)), j = (j == null ? void 0 : j.format((R == null ? void 0 : R.trim()) || c.format)) || "";
|
|
1324
1323
|
} else
|
|
1325
|
-
|
|
1326
|
-
|
|
1324
|
+
Object.prototype.toString.call(T) === "[object Object]" ? j = T[R || "value"] : j = T;
|
|
1325
|
+
g[A] = j;
|
|
1327
1326
|
} else
|
|
1328
|
-
|
|
1329
|
-
}),
|
|
1330
|
-
let
|
|
1331
|
-
const
|
|
1332
|
-
|
|
1333
|
-
|
|
1327
|
+
typeof S == "string" && (g[A] = de(S));
|
|
1328
|
+
}), g = { ...window.config.requestParams, ...h, ...g };
|
|
1329
|
+
let y = "";
|
|
1330
|
+
const p = Object.keys(g), _ = p.length - 1, I = p.length;
|
|
1331
|
+
p.forEach((C, A) => {
|
|
1332
|
+
A === 0 ? I !== 1 ? y += `?${C}=${g[C]}&` : y += `?${C}=${g[C]}` : A === _ ? y += `${C}=${g[C]}` : y += `${C}=${g[C]}&`;
|
|
1334
1333
|
});
|
|
1335
1334
|
try {
|
|
1336
|
-
const
|
|
1335
|
+
const C = ["get", "head"].includes(n), A = await Fe({
|
|
1337
1336
|
baseURL: v(s) || "",
|
|
1338
|
-
url:
|
|
1337
|
+
url: C ? w + y : w,
|
|
1339
1338
|
method: n,
|
|
1340
1339
|
headers: a,
|
|
1341
|
-
data:
|
|
1340
|
+
data: C ? {} : g
|
|
1342
1341
|
});
|
|
1343
|
-
return o(
|
|
1344
|
-
} catch (
|
|
1345
|
-
console.error(
|
|
1342
|
+
return o(A), A;
|
|
1343
|
+
} catch (C) {
|
|
1344
|
+
console.error(C);
|
|
1346
1345
|
}
|
|
1347
|
-
}, u =
|
|
1348
|
-
return
|
|
1346
|
+
}, u = i && setInterval(d, r * 1e3);
|
|
1347
|
+
return ft(() => {
|
|
1349
1348
|
clearInterval(u);
|
|
1350
1349
|
}), d;
|
|
1351
1350
|
}, Ge = (e = [], o) => {
|
|
1352
1351
|
let { name: t = "name", types: n = [] } = o || {};
|
|
1353
1352
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1354
|
-
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(),
|
|
1355
|
-
if (
|
|
1356
|
-
const
|
|
1357
|
-
for (let
|
|
1358
|
-
const d = n[
|
|
1359
|
-
a.add(u),
|
|
1353
|
+
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), r = e.length, i = n.length;
|
|
1354
|
+
if (r === 1) {
|
|
1355
|
+
const b = [];
|
|
1356
|
+
for (let w = 0; w < i; w++) {
|
|
1357
|
+
const d = n[w], { label: u, value: h } = d, g = { ...e[0], value: e[0][h] };
|
|
1358
|
+
a.add(u), b.push(g);
|
|
1360
1359
|
}
|
|
1361
|
-
const
|
|
1362
|
-
l.set(
|
|
1360
|
+
const x = e[0][t] || "";
|
|
1361
|
+
l.set(x, b);
|
|
1363
1362
|
} else
|
|
1364
|
-
for (let
|
|
1365
|
-
const
|
|
1366
|
-
a.add(
|
|
1367
|
-
for (let d = 0; d <
|
|
1368
|
-
const u = n[d], { label:
|
|
1369
|
-
if (l.has(
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1363
|
+
for (let b = 0; b < r; b++) {
|
|
1364
|
+
const x = e[b], w = x[t];
|
|
1365
|
+
a.add(w);
|
|
1366
|
+
for (let d = 0; d < i; d++) {
|
|
1367
|
+
const u = n[d], { label: h, value: g } = u, y = { ...x, value: x[g] };
|
|
1368
|
+
if (l.has(h)) {
|
|
1369
|
+
const p = l.get(h);
|
|
1370
|
+
p.push(y), l.set(h, p);
|
|
1372
1371
|
} else
|
|
1373
|
-
l.set(
|
|
1372
|
+
l.set(h, [y]);
|
|
1374
1373
|
}
|
|
1375
1374
|
}
|
|
1376
1375
|
const s = Array.from(a), f = [];
|
|
1377
|
-
for (const [
|
|
1376
|
+
for (const [b, x] of l)
|
|
1378
1377
|
f.push({
|
|
1379
|
-
name:
|
|
1380
|
-
data:
|
|
1378
|
+
name: b,
|
|
1379
|
+
data: x
|
|
1381
1380
|
});
|
|
1382
1381
|
return {
|
|
1383
1382
|
dimensions: s,
|
|
@@ -1401,133 +1400,133 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1401
1400
|
return o;
|
|
1402
1401
|
const n = t.length;
|
|
1403
1402
|
for (let l = 0; l < n; l++) {
|
|
1404
|
-
const
|
|
1405
|
-
if (
|
|
1403
|
+
const r = t[l];
|
|
1404
|
+
if (r == null || r === "")
|
|
1406
1405
|
break;
|
|
1407
|
-
let
|
|
1408
|
-
|
|
1406
|
+
let i = (a = r.slice(1, -1)) == null ? void 0 : a.trim();
|
|
1407
|
+
i = i == null ? void 0 : i.replace(/value/g, o);
|
|
1409
1408
|
try {
|
|
1410
|
-
let s =
|
|
1411
|
-
/\(.*\)/g.test(
|
|
1409
|
+
let s = i;
|
|
1410
|
+
(/\(.*\)/g.test(i) || /[+/\\*]/g.test(i)) && (s = yt(i)), e = e.replace(r, s);
|
|
1412
1411
|
} catch {
|
|
1413
|
-
e = e.replace(
|
|
1412
|
+
e = e.replace(r, i);
|
|
1414
1413
|
}
|
|
1415
1414
|
}
|
|
1416
1415
|
return e;
|
|
1417
1416
|
}, ot = (e = {}) => {
|
|
1418
|
-
const { requestToken: o } =
|
|
1417
|
+
const { requestToken: o } = N(Do, {
|
|
1419
1418
|
// @ts-ignore
|
|
1420
1419
|
// eslint-disable-next-line no-void
|
|
1421
1420
|
requestToken: () => {
|
|
1422
1421
|
}
|
|
1423
1422
|
});
|
|
1424
1423
|
e.dataType === "indicator" && o();
|
|
1425
|
-
const t = (
|
|
1426
|
-
const { label:
|
|
1424
|
+
const t = (r = {}) => {
|
|
1425
|
+
const { label: i, name: s, location: f, show: b, indexCode: x } = r;
|
|
1427
1426
|
return {
|
|
1428
|
-
label:
|
|
1427
|
+
label: i,
|
|
1429
1428
|
columnName: s,
|
|
1430
1429
|
location: f,
|
|
1431
|
-
show:
|
|
1430
|
+
show: b,
|
|
1432
1431
|
calcType: "COLUMN",
|
|
1433
|
-
hrpIndexCode:
|
|
1432
|
+
hrpIndexCode: x
|
|
1434
1433
|
};
|
|
1435
|
-
}, n = (
|
|
1434
|
+
}, n = (r = {}) => {
|
|
1436
1435
|
const {
|
|
1437
|
-
label:
|
|
1436
|
+
label: i,
|
|
1438
1437
|
name: s,
|
|
1439
1438
|
location: f,
|
|
1440
|
-
show:
|
|
1441
|
-
indexCode:
|
|
1442
|
-
calcType:
|
|
1439
|
+
show: b,
|
|
1440
|
+
indexCode: x,
|
|
1441
|
+
calcType: w = "COLUMN",
|
|
1443
1442
|
builtInFormula: d,
|
|
1444
1443
|
builtInValueSource: u,
|
|
1445
|
-
builtInCalcWay:
|
|
1446
|
-
formula:
|
|
1447
|
-
conditions:
|
|
1448
|
-
} =
|
|
1444
|
+
builtInCalcWay: h,
|
|
1445
|
+
formula: g,
|
|
1446
|
+
conditions: y
|
|
1447
|
+
} = r;
|
|
1449
1448
|
return {
|
|
1450
|
-
label:
|
|
1449
|
+
label: i,
|
|
1451
1450
|
columnName: s,
|
|
1452
1451
|
location: f,
|
|
1453
|
-
show:
|
|
1454
|
-
calcType:
|
|
1455
|
-
hrpIndexCode:
|
|
1452
|
+
show: b,
|
|
1453
|
+
calcType: w,
|
|
1454
|
+
hrpIndexCode: x,
|
|
1456
1455
|
aggregate: "SUM",
|
|
1457
1456
|
builtInFormula: d,
|
|
1458
1457
|
builtInValueSource: u,
|
|
1459
|
-
builtInCalcWay:
|
|
1460
|
-
formula:
|
|
1461
|
-
conditions:
|
|
1458
|
+
builtInCalcWay: h,
|
|
1459
|
+
formula: g,
|
|
1460
|
+
conditions: y
|
|
1462
1461
|
};
|
|
1463
|
-
}, { getGlobalModel: a } =
|
|
1462
|
+
}, { getGlobalModel: a } = N(ye, {
|
|
1464
1463
|
// @ts-ignore
|
|
1465
1464
|
// eslint-disable-next-line no-void
|
|
1466
|
-
getGlobalModel: (
|
|
1465
|
+
getGlobalModel: (r) => {
|
|
1467
1466
|
}
|
|
1468
|
-
}), l = (
|
|
1467
|
+
}), l = (r = []) => {
|
|
1469
1468
|
var f;
|
|
1470
|
-
const
|
|
1471
|
-
for (let
|
|
1472
|
-
const
|
|
1473
|
-
id:
|
|
1469
|
+
const i = r.length, s = [];
|
|
1470
|
+
for (let b = 0; b < i; b++) {
|
|
1471
|
+
const x = r[b], {
|
|
1472
|
+
id: w,
|
|
1474
1473
|
conditionLabel: d,
|
|
1475
1474
|
conditionKey: u,
|
|
1476
|
-
conditionValueType:
|
|
1477
|
-
} =
|
|
1475
|
+
conditionValueType: h
|
|
1476
|
+
} = x, g = {
|
|
1478
1477
|
rule: "NONE",
|
|
1479
1478
|
label: d,
|
|
1480
1479
|
fieldName: u,
|
|
1481
1480
|
fieldValue: "",
|
|
1482
1481
|
// 在关联控件中取
|
|
1483
|
-
valueType:
|
|
1484
|
-
},
|
|
1485
|
-
if (
|
|
1486
|
-
const { value:
|
|
1487
|
-
|
|
1482
|
+
valueType: h
|
|
1483
|
+
}, y = a(w) || {};
|
|
1484
|
+
if (Dt(y.type, "date")) {
|
|
1485
|
+
const { value: p, format: _ } = y || {};
|
|
1486
|
+
g.fieldValue = (f = v(p)) == null ? void 0 : f.format(_), g.dateFormat = _;
|
|
1488
1487
|
}
|
|
1489
|
-
s.push(
|
|
1488
|
+
s.push(g);
|
|
1490
1489
|
}
|
|
1491
1490
|
return s;
|
|
1492
1491
|
};
|
|
1493
1492
|
return async () => {
|
|
1494
1493
|
var E;
|
|
1495
|
-
const { graphicConfig:
|
|
1494
|
+
const { graphicConfig: r, type: i } = e;
|
|
1496
1495
|
let {
|
|
1497
1496
|
source: s,
|
|
1498
1497
|
dataViewId: f,
|
|
1499
|
-
plugin:
|
|
1498
|
+
plugin: b = "1",
|
|
1500
1499
|
// 插件类型
|
|
1501
|
-
layer:
|
|
1500
|
+
layer: x,
|
|
1502
1501
|
// 后台图表类型,值分0,1
|
|
1503
|
-
chartType:
|
|
1502
|
+
chartType: w,
|
|
1504
1503
|
// 前端图表类型,实测没用
|
|
1505
1504
|
classificationList: d = [],
|
|
1506
1505
|
seriesList: u = [],
|
|
1507
|
-
leftAxisList:
|
|
1508
|
-
rightAxisList:
|
|
1509
|
-
queryColumnList:
|
|
1510
|
-
indicators:
|
|
1511
|
-
controlList:
|
|
1512
|
-
dataSourceId:
|
|
1506
|
+
leftAxisList: h = [],
|
|
1507
|
+
rightAxisList: g = [],
|
|
1508
|
+
queryColumnList: y = [],
|
|
1509
|
+
indicators: p = [],
|
|
1510
|
+
controlList: _ = [],
|
|
1511
|
+
dataSourceId: I,
|
|
1513
1512
|
// 所属数据源ID
|
|
1514
|
-
idxLibMode:
|
|
1513
|
+
idxLibMode: C,
|
|
1515
1514
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1516
|
-
preview:
|
|
1515
|
+
preview: A = !1
|
|
1517
1516
|
// 预览开关
|
|
1518
|
-
} =
|
|
1519
|
-
|
|
1520
|
-
let
|
|
1517
|
+
} = r || {};
|
|
1518
|
+
x == null && (Dt(i, "table") ? x = "1" : x = "2");
|
|
1519
|
+
let S;
|
|
1521
1520
|
if (Array.isArray(d) && d.length > 0) {
|
|
1522
1521
|
const T = d.length;
|
|
1523
|
-
for (let
|
|
1524
|
-
const J = d[
|
|
1522
|
+
for (let j = 0; j < T; j++) {
|
|
1523
|
+
const J = d[j] || {}, { label: F = "", name: B = "", show: z = !1, sort: W, customGroup: X, conditions: ie } = J;
|
|
1525
1524
|
if (z || T === 1) {
|
|
1526
|
-
|
|
1527
|
-
label:
|
|
1528
|
-
columnName:
|
|
1525
|
+
S = {
|
|
1526
|
+
label: F,
|
|
1527
|
+
columnName: B,
|
|
1529
1528
|
show: z,
|
|
1530
|
-
sort:
|
|
1529
|
+
sort: W,
|
|
1531
1530
|
customGroup: X,
|
|
1532
1531
|
conditions: ie
|
|
1533
1532
|
};
|
|
@@ -1538,14 +1537,14 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1538
1537
|
let c;
|
|
1539
1538
|
if (Array.isArray(u) && u.length > 0) {
|
|
1540
1539
|
const T = u.length;
|
|
1541
|
-
for (let
|
|
1542
|
-
const J = u[
|
|
1540
|
+
for (let j = 0; j < T; j++) {
|
|
1541
|
+
const J = u[j] || {}, { label: F = "", name: B = "", show: z = !1, sort: W, customGroup: X, conditions: ie } = J;
|
|
1543
1542
|
if (z || T === 1) {
|
|
1544
1543
|
c = {
|
|
1545
|
-
label:
|
|
1546
|
-
columnName:
|
|
1544
|
+
label: F,
|
|
1545
|
+
columnName: B,
|
|
1547
1546
|
show: z,
|
|
1548
|
-
sort:
|
|
1547
|
+
sort: W,
|
|
1549
1548
|
customGroup: X,
|
|
1550
1549
|
conditions: ie
|
|
1551
1550
|
};
|
|
@@ -1553,42 +1552,42 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1553
1552
|
}
|
|
1554
1553
|
}
|
|
1555
1554
|
}
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
|
|
1555
|
+
const m = [];
|
|
1556
|
+
y == null || y.forEach((T) => {
|
|
1557
|
+
m.push(t(T));
|
|
1559
1558
|
});
|
|
1560
1559
|
const k = [];
|
|
1561
|
-
if (
|
|
1560
|
+
if (h == null || h.forEach((T) => {
|
|
1562
1561
|
T.location = "LEFT", k.push(n(T));
|
|
1563
|
-
}),
|
|
1562
|
+
}), g == null || g.forEach((T) => {
|
|
1564
1563
|
T.location = "RIGHT", k.push(n(T));
|
|
1565
|
-
}),
|
|
1564
|
+
}), p == null || p.forEach((T) => {
|
|
1566
1565
|
T.location = "LEFT", k.push(n(T));
|
|
1567
|
-
}),
|
|
1566
|
+
}), x === "1" && m.length === 0)
|
|
1568
1567
|
return;
|
|
1569
|
-
if (
|
|
1568
|
+
if (x === "2" && k.length === 0)
|
|
1570
1569
|
return;
|
|
1571
1570
|
let R;
|
|
1572
|
-
(
|
|
1571
|
+
(r == null ? void 0 : r.pageMode) === "design" ? R = r.sqlConditions ?? [] : R = l(_);
|
|
1573
1572
|
try {
|
|
1574
1573
|
return await Fe.post(
|
|
1575
1574
|
`${Ro}/diagram`,
|
|
1576
1575
|
{
|
|
1577
1576
|
source: s,
|
|
1578
1577
|
dataViewId: f,
|
|
1579
|
-
plugin:
|
|
1580
|
-
layer:
|
|
1581
|
-
chartType:
|
|
1582
|
-
classification:
|
|
1578
|
+
plugin: b,
|
|
1579
|
+
layer: x,
|
|
1580
|
+
chartType: w,
|
|
1581
|
+
classification: S,
|
|
1583
1582
|
series: c,
|
|
1584
1583
|
indicatorList: k,
|
|
1585
|
-
queryColumns:
|
|
1584
|
+
queryColumns: m,
|
|
1586
1585
|
pageFlag: !0,
|
|
1587
1586
|
sqlConditions: R,
|
|
1588
1587
|
// fixedDimSql: '',
|
|
1589
|
-
dataSourceId:
|
|
1590
|
-
idxLibMode:
|
|
1591
|
-
preview:
|
|
1588
|
+
dataSourceId: I,
|
|
1589
|
+
idxLibMode: C,
|
|
1590
|
+
preview: A
|
|
1592
1591
|
},
|
|
1593
1592
|
{
|
|
1594
1593
|
headers: {
|
|
@@ -1610,8 +1609,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1610
1609
|
continue;
|
|
1611
1610
|
const l = a.split("=");
|
|
1612
1611
|
if (Array.isArray(l)) {
|
|
1613
|
-
const
|
|
1614
|
-
window.config[
|
|
1612
|
+
const r = l[0], i = l[1];
|
|
1613
|
+
window.config[r] = i;
|
|
1615
1614
|
}
|
|
1616
1615
|
}
|
|
1617
1616
|
}, Il = Q({
|
|
@@ -1621,28 +1620,28 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1621
1620
|
...Eo
|
|
1622
1621
|
},
|
|
1623
1622
|
setup(e) {
|
|
1624
|
-
const o =
|
|
1623
|
+
const o = q(() => ({
|
|
1625
1624
|
width: e.width,
|
|
1626
1625
|
height: e.height,
|
|
1627
1626
|
backgroundColor: e.backgroundColor,
|
|
1628
1627
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
1629
1628
|
backgroundSize: e.backgroundSize
|
|
1630
|
-
})), t = M(0), n = M(0), a = M(0), l = M(0),
|
|
1629
|
+
})), t = M(0), n = M(0), a = M(0), l = M(0), r = M(!1), i = M();
|
|
1631
1630
|
let s;
|
|
1632
|
-
const f = () => new Promise((
|
|
1633
|
-
|
|
1634
|
-
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value =
|
|
1631
|
+
const f = () => new Promise((h) => {
|
|
1632
|
+
mt(() => {
|
|
1633
|
+
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = i.value.clientWidth, n.value = i.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), h();
|
|
1635
1634
|
});
|
|
1636
|
-
}),
|
|
1637
|
-
t.value && n.value ? (
|
|
1638
|
-
},
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
},
|
|
1642
|
-
await f(),
|
|
1635
|
+
}), b = () => {
|
|
1636
|
+
t.value && n.value ? (i.value.style.width = `${t.value}px`, i.value.style.height = `${n.value}px`) : (i.value.style.width = `${a.value}px`, i.value.style.height = `${l.value}px`);
|
|
1637
|
+
}, x = () => {
|
|
1638
|
+
const h = document.body.clientWidth, g = document.body.clientHeight, y = t.value || a.value, p = n.value || l.value, _ = h / y, I = g / p;
|
|
1639
|
+
i.value && (i.value.style.transform = `scale(${_}, ${I})`);
|
|
1640
|
+
}, w = Rt(async () => {
|
|
1641
|
+
await f(), x();
|
|
1643
1642
|
}, 100), d = () => {
|
|
1644
|
-
const
|
|
1645
|
-
s = new
|
|
1643
|
+
const h = window.MutationObserver;
|
|
1644
|
+
s = new h(w), s.observe(i.value, {
|
|
1646
1645
|
attributes: !0,
|
|
1647
1646
|
attributeFilter: ["style"],
|
|
1648
1647
|
attributeOldValue: !0
|
|
@@ -1651,13 +1650,13 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1651
1650
|
s && (s.disconnect(), s.takeRecords(), s = null);
|
|
1652
1651
|
};
|
|
1653
1652
|
return Ue(async () => {
|
|
1654
|
-
|
|
1655
|
-
}),
|
|
1656
|
-
window.removeEventListener("resize",
|
|
1653
|
+
r.value = !1, await f(), b(), x(), window.addEventListener("resize", w), d(), r.value = !0;
|
|
1654
|
+
}), ft(() => {
|
|
1655
|
+
window.removeEventListener("resize", w), u();
|
|
1657
1656
|
}), {
|
|
1658
1657
|
style: o,
|
|
1659
|
-
container:
|
|
1660
|
-
ready:
|
|
1658
|
+
container: i,
|
|
1659
|
+
ready: r
|
|
1661
1660
|
};
|
|
1662
1661
|
}
|
|
1663
1662
|
});
|
|
@@ -1666,13 +1665,13 @@ const Ml = {
|
|
|
1666
1665
|
ref: "container"
|
|
1667
1666
|
};
|
|
1668
1667
|
function El(e, o, t, n, a, l) {
|
|
1669
|
-
return D(),
|
|
1670
|
-
e.ready ? (D(),
|
|
1668
|
+
return D(), $("div", Ml, [
|
|
1669
|
+
e.ready ? (D(), $("div", {
|
|
1671
1670
|
key: 0,
|
|
1672
1671
|
class: "page-config",
|
|
1673
1672
|
style: U(e.style)
|
|
1674
1673
|
}, [
|
|
1675
|
-
|
|
1674
|
+
gt(e.$slots, "default", {}, void 0, !0)
|
|
1676
1675
|
], 4)) : ve("", !0)
|
|
1677
1676
|
], 512);
|
|
1678
1677
|
}
|
|
@@ -1697,117 +1696,117 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1697
1696
|
}), Ue(() => {
|
|
1698
1697
|
n();
|
|
1699
1698
|
});
|
|
1700
|
-
const a =
|
|
1699
|
+
const a = q(() => de(e.contextRequestUrl)), l = q(() => e.pageMode), r = q(() => e.theme), i = M("");
|
|
1701
1700
|
ze(fe, {
|
|
1702
1701
|
// 请求地址
|
|
1703
1702
|
contextRequestUrl: a,
|
|
1704
1703
|
// 模式(设计、预览、正常):目前主要配置初始化是否发起请求
|
|
1705
1704
|
pageMode: l,
|
|
1706
1705
|
// 主题
|
|
1707
|
-
theme:
|
|
1708
|
-
touchEventId:
|
|
1706
|
+
theme: r,
|
|
1707
|
+
touchEventId: i
|
|
1709
1708
|
});
|
|
1710
|
-
const s = /* @__PURE__ */ new Map(), f = (
|
|
1709
|
+
const s = /* @__PURE__ */ new Map(), f = (F) => s.get(F);
|
|
1711
1710
|
ze(ye, {
|
|
1712
1711
|
getGlobalModel: f,
|
|
1713
|
-
setGlobalModel: (
|
|
1714
|
-
s.set(
|
|
1712
|
+
setGlobalModel: (F, B) => {
|
|
1713
|
+
s.set(F, B);
|
|
1715
1714
|
}
|
|
1716
1715
|
});
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1719
|
-
}, d = (
|
|
1720
|
-
|
|
1721
|
-
}, u = /* @__PURE__ */ new Map(),
|
|
1716
|
+
const x = [], w = () => {
|
|
1717
|
+
x.pop();
|
|
1718
|
+
}, d = (F) => {
|
|
1719
|
+
x.push(F);
|
|
1720
|
+
}, u = /* @__PURE__ */ new Map(), h = (F) => u.get(F);
|
|
1722
1721
|
ze(Oo, {
|
|
1723
|
-
popUseModalIds:
|
|
1722
|
+
popUseModalIds: w,
|
|
1724
1723
|
pushUseModalIds: d,
|
|
1725
|
-
getModalModel:
|
|
1726
|
-
setModalModel: (
|
|
1727
|
-
u.set(
|
|
1724
|
+
getModalModel: h,
|
|
1725
|
+
setModalModel: (F, B) => {
|
|
1726
|
+
u.set(F, B);
|
|
1728
1727
|
}
|
|
1729
1728
|
});
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1732
|
-
|
|
1729
|
+
const y = oa(), p = /* @__PURE__ */ new Set(), _ = (F, B) => {
|
|
1730
|
+
p.add(F), y.on(F, (z) => typeof B[z] == "function" && B[z]()), Tt(() => {
|
|
1731
|
+
I(F);
|
|
1733
1732
|
});
|
|
1734
|
-
},
|
|
1735
|
-
|
|
1733
|
+
}, I = (F) => {
|
|
1734
|
+
p.delete(F), y.off(F);
|
|
1736
1735
|
};
|
|
1737
1736
|
ze(Nt, {
|
|
1738
|
-
onEvent:
|
|
1739
|
-
offEvent:
|
|
1740
|
-
emitEvent: (
|
|
1741
|
-
if (
|
|
1742
|
-
const z =
|
|
1743
|
-
let
|
|
1737
|
+
onEvent: _,
|
|
1738
|
+
offEvent: I,
|
|
1739
|
+
emitEvent: (F, B) => {
|
|
1740
|
+
if (F === "PAGE") {
|
|
1741
|
+
const z = x.length;
|
|
1742
|
+
let W = [];
|
|
1744
1743
|
if (z === 0)
|
|
1745
|
-
|
|
1744
|
+
W = [...p];
|
|
1746
1745
|
else {
|
|
1747
|
-
const X =
|
|
1748
|
-
|
|
1746
|
+
const X = x[z - 1];
|
|
1747
|
+
W = [...h(X)];
|
|
1749
1748
|
}
|
|
1750
|
-
|
|
1751
|
-
|
|
1749
|
+
W.forEach((X) => {
|
|
1750
|
+
y.emit(X, B);
|
|
1752
1751
|
});
|
|
1753
1752
|
} else
|
|
1754
|
-
|
|
1753
|
+
y.emit(F, B);
|
|
1755
1754
|
}
|
|
1756
1755
|
});
|
|
1757
|
-
const
|
|
1756
|
+
const A = M(0);
|
|
1758
1757
|
ze(Do, {
|
|
1759
1758
|
requestToken: () => {
|
|
1760
|
-
|
|
1759
|
+
A.value = v(A) + 1;
|
|
1761
1760
|
}
|
|
1762
1761
|
});
|
|
1763
|
-
const c = /* @__PURE__ */ new Map(),
|
|
1764
|
-
}, sortNum:
|
|
1765
|
-
if (c.has(
|
|
1766
|
-
const
|
|
1767
|
-
|
|
1762
|
+
const c = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), k = ({ requestFn: F = () => {
|
|
1763
|
+
}, sortNum: B = 0, id: z = "" }) => {
|
|
1764
|
+
if (c.has(B)) {
|
|
1765
|
+
const W = c.get(B);
|
|
1766
|
+
W == null || W.push(F);
|
|
1768
1767
|
} else
|
|
1769
|
-
c.set(
|
|
1770
|
-
|
|
1771
|
-
}, R = (
|
|
1772
|
-
const
|
|
1773
|
-
Promise.all(
|
|
1774
|
-
|
|
1768
|
+
c.set(B, [F]);
|
|
1769
|
+
m.set(z, F);
|
|
1770
|
+
}, R = (F) => new Promise((B, z) => {
|
|
1771
|
+
const W = F.map((X) => X());
|
|
1772
|
+
Promise.all(W).then((X) => {
|
|
1773
|
+
B(X);
|
|
1775
1774
|
}).catch((X) => {
|
|
1776
1775
|
z(X);
|
|
1777
1776
|
});
|
|
1778
1777
|
}), E = async () => {
|
|
1779
1778
|
var z;
|
|
1780
|
-
const
|
|
1779
|
+
const F = await po.get(`${Ro}/user/anonymous?username=admin&businessOfficeId=350421`, {
|
|
1781
1780
|
headers: {
|
|
1782
1781
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1783
1782
|
current_context: "ygt",
|
|
1784
1783
|
Authentication: ""
|
|
1785
1784
|
}
|
|
1786
|
-
}), { token:
|
|
1787
|
-
window.config.indicatorToken =
|
|
1788
|
-
}, T = (
|
|
1789
|
-
if (
|
|
1790
|
-
if (typeof
|
|
1791
|
-
const
|
|
1792
|
-
if (typeof
|
|
1793
|
-
const X = Fe.interceptors.response.use((ie) => (
|
|
1794
|
-
|
|
1785
|
+
}), { token: B } = ((z = F.data) == null ? void 0 : z.data) || {};
|
|
1786
|
+
window.config.indicatorToken = B;
|
|
1787
|
+
}, T = (F) => new Promise(async (B, z) => {
|
|
1788
|
+
if (F) {
|
|
1789
|
+
if (typeof F == "string") {
|
|
1790
|
+
const W = m.get(F);
|
|
1791
|
+
if (typeof W == "function") {
|
|
1792
|
+
const X = Fe.interceptors.response.use((ie) => (B(ie), ie), (ie) => (z(ie), Promise.reject(ie)));
|
|
1793
|
+
W(), Fe.interceptors.response.eject(X);
|
|
1795
1794
|
}
|
|
1796
1795
|
}
|
|
1797
1796
|
} else {
|
|
1798
|
-
const
|
|
1799
|
-
|
|
1800
|
-
const X =
|
|
1797
|
+
const W = Array.from(c);
|
|
1798
|
+
W.sort((ie, at) => at[0] - ie[0]);
|
|
1799
|
+
const X = W.length;
|
|
1801
1800
|
try {
|
|
1802
|
-
e.pageMode !== "design" && v(
|
|
1801
|
+
e.pageMode !== "design" && v(A) > 0 && await E();
|
|
1803
1802
|
for (let ie = 0; ie < X; ie++) {
|
|
1804
|
-
const at =
|
|
1803
|
+
const at = W[ie][1];
|
|
1805
1804
|
await R(at);
|
|
1806
1805
|
}
|
|
1807
1806
|
} catch (ie) {
|
|
1808
1807
|
console.error(ie);
|
|
1809
1808
|
} finally {
|
|
1810
|
-
c.clear(),
|
|
1809
|
+
c.clear(), B(null);
|
|
1811
1810
|
}
|
|
1812
1811
|
}
|
|
1813
1812
|
});
|
|
@@ -1816,16 +1815,16 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1816
1815
|
touchRequest: T
|
|
1817
1816
|
}), ze(Je, {
|
|
1818
1817
|
emitRefreshPage: () => {
|
|
1819
|
-
|
|
1818
|
+
y.emit(Je);
|
|
1820
1819
|
}
|
|
1821
1820
|
});
|
|
1822
|
-
const J = (
|
|
1823
|
-
|
|
1824
|
-
|
|
1821
|
+
const J = (F) => {
|
|
1822
|
+
y.on(Je, () => F()), Ue(() => {
|
|
1823
|
+
y.off(Je);
|
|
1825
1824
|
});
|
|
1826
1825
|
};
|
|
1827
|
-
return
|
|
1828
|
-
c == null || c.clear(),
|
|
1826
|
+
return Tt(() => {
|
|
1827
|
+
c == null || c.clear(), m == null || m.clear();
|
|
1829
1828
|
}), o({
|
|
1830
1829
|
touchRequest: T,
|
|
1831
1830
|
getGlobalModel: f,
|
|
@@ -1839,8 +1838,8 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1839
1838
|
ref: "providerConfig"
|
|
1840
1839
|
};
|
|
1841
1840
|
function zl(e, o, t, n, a, l) {
|
|
1842
|
-
return D(),
|
|
1843
|
-
|
|
1841
|
+
return D(), $("div", Fl, [
|
|
1842
|
+
gt(e.$slots, "default")
|
|
1844
1843
|
], 512);
|
|
1845
1844
|
}
|
|
1846
1845
|
const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
@@ -1869,68 +1868,68 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1869
1868
|
linkPage: ""
|
|
1870
1869
|
}, Po = le(No), Pl = ["refreshData", "click"], Bl = "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=", Ul = "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==", Gl = Q({
|
|
1871
1870
|
name: "EcanText",
|
|
1872
|
-
components: { Skeleton:
|
|
1871
|
+
components: { Skeleton: ht },
|
|
1873
1872
|
props: {
|
|
1874
1873
|
...Po
|
|
1875
1874
|
},
|
|
1876
1875
|
setup(e) {
|
|
1877
1876
|
const o = re(e), t = M({});
|
|
1878
|
-
ne(() => [e.data, e.dataType], ([
|
|
1879
|
-
d === "static" && (t.value =
|
|
1877
|
+
ne(() => [e.data, e.dataType], ([w, d]) => {
|
|
1878
|
+
d === "static" && (t.value = w);
|
|
1880
1879
|
}, {
|
|
1881
1880
|
immediate: !0
|
|
1882
1881
|
});
|
|
1883
|
-
const n =
|
|
1884
|
-
var
|
|
1885
|
-
const
|
|
1882
|
+
const n = q(() => {
|
|
1883
|
+
var h;
|
|
1884
|
+
const w = v(t);
|
|
1886
1885
|
let d = e.text;
|
|
1887
1886
|
d = d == null ? void 0 : d.replace(/\n|\\n/g, "<br/>"), d = d == null ? void 0 : d.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
1888
1887
|
const u = d.match(/\{(.+?)\}/g);
|
|
1889
1888
|
if (u == null || u.length === 0)
|
|
1890
1889
|
return d;
|
|
1891
|
-
for (let
|
|
1892
|
-
const
|
|
1893
|
-
let
|
|
1894
|
-
const
|
|
1895
|
-
for (let
|
|
1896
|
-
const
|
|
1897
|
-
c && (
|
|
1890
|
+
for (let g = 0; g < u.length; g++) {
|
|
1891
|
+
const y = u[g], p = (h = y == null ? void 0 : y.slice(1, y.length - 1)) == null ? void 0 : h.trim();
|
|
1892
|
+
let _ = p;
|
|
1893
|
+
const I = p.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1894
|
+
for (let A = 0; A < I.length; A++) {
|
|
1895
|
+
const S = I[A], c = w[S];
|
|
1896
|
+
c && (_ = p.replace(S, c));
|
|
1898
1897
|
}
|
|
1899
|
-
if (/\(.*\)/g.test(
|
|
1900
|
-
const
|
|
1901
|
-
|
|
1898
|
+
if (/\(.*\)/g.test(_)) {
|
|
1899
|
+
const A = yt(_);
|
|
1900
|
+
A != null && (_ = A);
|
|
1902
1901
|
}
|
|
1903
|
-
let
|
|
1904
|
-
if (
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1902
|
+
let C = _;
|
|
1903
|
+
if (C === p && (C = e.variableDefaultValue), C != null) {
|
|
1904
|
+
const A = e.format;
|
|
1905
|
+
A === "percentage" ? (C = +C, isNaN(C) ? d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : C >= 0 ? (C = (C * 100).toFixed(2), d = d.replace(y, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${C}%</span>`)) : (C = (C * 100).toFixed(2), d = d.replace(y, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+C)}%</span>`))) : e.format === "percent" ? (C = +C, isNaN(C) || (C = (C * 100).toFixed(2), d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}%</span>`))) : e.format === "money" ? (C = +C, isNaN(C) || (C = Pt(C), d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}</span>`))) : A === "thousands" ? (C = +C, isNaN(C) || (C = Tl(C), d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}</span>`))) : d = d.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${C}</span>`);
|
|
1907
1906
|
}
|
|
1908
1907
|
}
|
|
1909
1908
|
return `<span>${d}</span>`;
|
|
1910
|
-
}), { pageMode: a } =
|
|
1909
|
+
}), { pageMode: a } = N(fe, {
|
|
1911
1910
|
pageMode: "normal"
|
|
1912
|
-
}), l = _e(e),
|
|
1913
|
-
var
|
|
1911
|
+
}), l = _e(e), r = M(!1), i = async () => {
|
|
1912
|
+
var w;
|
|
1914
1913
|
if (v(a) !== "design")
|
|
1915
1914
|
try {
|
|
1916
|
-
|
|
1915
|
+
r.value = !0;
|
|
1917
1916
|
const d = await l();
|
|
1918
|
-
t.value = ((
|
|
1917
|
+
t.value = ((w = d == null ? void 0 : d.data) == null ? void 0 : w.data) || {};
|
|
1919
1918
|
} catch (d) {
|
|
1920
1919
|
console.error(d);
|
|
1921
1920
|
} finally {
|
|
1922
|
-
|
|
1921
|
+
r.value = !1;
|
|
1923
1922
|
}
|
|
1924
1923
|
}, s = () => {
|
|
1925
|
-
e.dataType !== "static" &&
|
|
1924
|
+
e.dataType !== "static" && i();
|
|
1926
1925
|
};
|
|
1927
1926
|
he(e, {
|
|
1928
1927
|
refreshData: s
|
|
1929
1928
|
});
|
|
1930
|
-
const { setRequest: f } =
|
|
1929
|
+
const { setRequest: f } = N(Se, {
|
|
1931
1930
|
// @ts-ignore
|
|
1932
1931
|
// eslint-disable-next-line no-void
|
|
1933
|
-
setRequest: ({ id:
|
|
1932
|
+
setRequest: ({ id: w, sortNum: d, requestFn: u }) => {
|
|
1934
1933
|
}
|
|
1935
1934
|
});
|
|
1936
1935
|
f({
|
|
@@ -1940,14 +1939,14 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1940
1939
|
}), he(e, {
|
|
1941
1940
|
refreshData: s
|
|
1942
1941
|
});
|
|
1943
|
-
const
|
|
1942
|
+
const x = me(e)("click", () => {
|
|
1944
1943
|
if (!e.linkPage && !e.href)
|
|
1945
1944
|
return;
|
|
1946
|
-
const
|
|
1947
|
-
let
|
|
1948
|
-
|
|
1949
|
-
const
|
|
1950
|
-
|
|
1945
|
+
const w = e.linkPage || "", d = Fo(v(a), w), u = e.href;
|
|
1946
|
+
let h = u || d;
|
|
1947
|
+
h = de(h);
|
|
1948
|
+
const g = e.target;
|
|
1949
|
+
g && (g !== "event" ? window.open(h, "_" + g) : window.parent.postMessage({
|
|
1951
1950
|
type: "openPage",
|
|
1952
1951
|
url: u
|
|
1953
1952
|
}, "*"));
|
|
@@ -1955,26 +1954,26 @@ const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1955
1954
|
return {
|
|
1956
1955
|
style: o,
|
|
1957
1956
|
myText: n,
|
|
1958
|
-
loading:
|
|
1959
|
-
click:
|
|
1957
|
+
loading: r,
|
|
1958
|
+
click: x
|
|
1960
1959
|
};
|
|
1961
1960
|
}
|
|
1962
1961
|
});
|
|
1963
1962
|
const ql = ["innerHTML"];
|
|
1964
1963
|
function jl(e, o, t, n, a, l) {
|
|
1965
|
-
const
|
|
1966
|
-
return e.loading ? (D(),
|
|
1964
|
+
const r = H("skeleton");
|
|
1965
|
+
return e.loading ? (D(), $("div", {
|
|
1967
1966
|
key: 0,
|
|
1968
1967
|
class: "skeleton-wrapper",
|
|
1969
1968
|
style: U(e.style)
|
|
1970
1969
|
}, [
|
|
1971
|
-
|
|
1972
|
-
], 4)) : (D(),
|
|
1970
|
+
G(r, { loading: e.loading }, null, 8, ["loading"])
|
|
1971
|
+
], 4)) : (D(), $("div", {
|
|
1973
1972
|
key: 1,
|
|
1974
1973
|
class: "ecan-text",
|
|
1975
1974
|
style: U(e.style),
|
|
1976
1975
|
innerHTML: e.myText,
|
|
1977
|
-
onClick: o[0] || (o[0] = (...
|
|
1976
|
+
onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
|
|
1978
1977
|
}, null, 12, ql));
|
|
1979
1978
|
}
|
|
1980
1979
|
const Wl = /* @__PURE__ */ K(Gl, [["render", jl], ["__scopeId", "data-v-f9ba6c3f"]]), Vl = ae(Wl), Hl = Q({
|
|
@@ -1987,7 +1986,7 @@ const Wl = /* @__PURE__ */ K(Gl, [["render", jl], ["__scopeId", "data-v-f9ba6c3f
|
|
|
1987
1986
|
});
|
|
1988
1987
|
const Zl = { class: "red" };
|
|
1989
1988
|
function Jl(e, o, t, n, a, l) {
|
|
1990
|
-
return D(),
|
|
1989
|
+
return D(), $("div", Zl, be(e.text), 1);
|
|
1991
1990
|
}
|
|
1992
1991
|
const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e"]]), Ql = ae(Yl), Bo = {
|
|
1993
1992
|
...se,
|
|
@@ -2021,7 +2020,7 @@ const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2021
2020
|
};
|
|
2022
2021
|
return Ue(() => {
|
|
2023
2022
|
l();
|
|
2024
|
-
}),
|
|
2023
|
+
}), ft(() => {
|
|
2025
2024
|
a();
|
|
2026
2025
|
}), {
|
|
2027
2026
|
style: o,
|
|
@@ -2030,7 +2029,7 @@ const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2030
2029
|
}
|
|
2031
2030
|
});
|
|
2032
2031
|
function Xl(e, o, t, n, a, l) {
|
|
2033
|
-
return D(),
|
|
2032
|
+
return D(), $("div", {
|
|
2034
2033
|
class: "time-display",
|
|
2035
2034
|
style: U(e.style)
|
|
2036
2035
|
}, be(e.time), 5);
|
|
@@ -2070,54 +2069,54 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2070
2069
|
]
|
|
2071
2070
|
}, qo = le(Go), oi = ["refreshData", "click"], ni = Q({
|
|
2072
2071
|
name: "EcanList",
|
|
2073
|
-
components: { Skeleton:
|
|
2072
|
+
components: { Skeleton: ht },
|
|
2074
2073
|
props: {
|
|
2075
2074
|
...qo
|
|
2076
2075
|
},
|
|
2077
2076
|
setup(e) {
|
|
2078
|
-
const o = M(e.data), t = re(e, ["backgroundColor"]), n =
|
|
2077
|
+
const o = M(e.data), t = re(e, ["backgroundColor"]), n = q(() => e.useRanking ? {
|
|
2079
2078
|
textAlign: "center"
|
|
2080
2079
|
} : {
|
|
2081
2080
|
textAlign: "left"
|
|
2082
|
-
}), a = (u,
|
|
2081
|
+
}), a = (u, h) => h == null || h === "" ? u : {
|
|
2083
2082
|
money: Pt,
|
|
2084
2083
|
percentage: ut,
|
|
2085
2084
|
contrast: ut
|
|
2086
|
-
}[
|
|
2087
|
-
const
|
|
2088
|
-
if (
|
|
2085
|
+
}[h](u) || "", l = (u, h) => {
|
|
2086
|
+
const g = parseFloat(u + "");
|
|
2087
|
+
if (h !== "contrast")
|
|
2089
2088
|
return "";
|
|
2090
2089
|
switch (!0) {
|
|
2091
|
-
case
|
|
2090
|
+
case g >= 0:
|
|
2092
2091
|
return "goUp";
|
|
2093
|
-
case
|
|
2092
|
+
case g < 0:
|
|
2094
2093
|
return "goDown";
|
|
2095
2094
|
}
|
|
2096
|
-
},
|
|
2095
|
+
}, r = _e(e), { pageMode: i } = N(fe, {
|
|
2097
2096
|
pageMode: "normal"
|
|
2098
2097
|
}), s = M(!1), f = async () => {
|
|
2099
2098
|
var u;
|
|
2100
|
-
if (!(e.dataType !== "request" || v(
|
|
2099
|
+
if (!(e.dataType !== "request" || v(i) === "design"))
|
|
2101
2100
|
try {
|
|
2102
2101
|
s.value = !0;
|
|
2103
|
-
const
|
|
2104
|
-
o.value = ((u =
|
|
2105
|
-
} catch (
|
|
2106
|
-
console.error(
|
|
2102
|
+
const h = await r();
|
|
2103
|
+
o.value = ((u = h == null ? void 0 : h.data) == null ? void 0 : u.data.rows) || [];
|
|
2104
|
+
} catch (h) {
|
|
2105
|
+
console.error(h);
|
|
2107
2106
|
} finally {
|
|
2108
2107
|
s.value = !1;
|
|
2109
2108
|
}
|
|
2110
|
-
},
|
|
2109
|
+
}, b = () => {
|
|
2111
2110
|
f();
|
|
2112
|
-
},
|
|
2111
|
+
}, w = me(e)("click", () => {
|
|
2113
2112
|
});
|
|
2114
2113
|
he(e, {
|
|
2115
|
-
refreshData:
|
|
2114
|
+
refreshData: b
|
|
2116
2115
|
});
|
|
2117
|
-
const { setRequest: d } =
|
|
2116
|
+
const { setRequest: d } = N(Se, {
|
|
2118
2117
|
// @ts-ignore
|
|
2119
2118
|
// eslint-disable-next-line no-void
|
|
2120
|
-
setRequest: ({ id: u, sortNum:
|
|
2119
|
+
setRequest: ({ id: u, sortNum: h, requestFn: g }) => {
|
|
2121
2120
|
}
|
|
2122
2121
|
});
|
|
2123
2122
|
return d({
|
|
@@ -2131,7 +2130,7 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2131
2130
|
contrastClass: l,
|
|
2132
2131
|
dataSource: o,
|
|
2133
2132
|
loading: s,
|
|
2134
|
-
click:
|
|
2133
|
+
click: w
|
|
2135
2134
|
};
|
|
2136
2135
|
}
|
|
2137
2136
|
});
|
|
@@ -2152,26 +2151,26 @@ const ai = (e) => (fo("data-v-211785ca"), e = e(), mo(), e), li = {
|
|
|
2152
2151
|
class: "empty"
|
|
2153
2152
|
};
|
|
2154
2153
|
function fi(e, o, t, n, a, l) {
|
|
2155
|
-
const
|
|
2156
|
-
return D(),
|
|
2154
|
+
const r = H("skeleton");
|
|
2155
|
+
return D(), $("div", {
|
|
2157
2156
|
class: "ecan-list",
|
|
2158
2157
|
style: U(e.style)
|
|
2159
2158
|
}, [
|
|
2160
|
-
|
|
2159
|
+
G(r, { loading: e.loading }, {
|
|
2161
2160
|
default: Y(() => [
|
|
2162
|
-
e.useTitle ? (D(),
|
|
2163
|
-
(D(!0),
|
|
2161
|
+
e.useTitle ? (D(), $("div", li, [
|
|
2162
|
+
(D(!0), $(Me, null, De(e.columnCount, (i) => (D(), $("div", {
|
|
2164
2163
|
class: "title-inner",
|
|
2165
2164
|
style: U({
|
|
2166
2165
|
backgroundColor: e.backgroundColor,
|
|
2167
2166
|
height: e.itemHeight,
|
|
2168
2167
|
width: `calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount - 1}/ ${e.columnCount})`,
|
|
2169
|
-
marginRight:
|
|
2168
|
+
marginRight: i % e.columnCount !== 0 ? e.itemColSpan : ""
|
|
2170
2169
|
}),
|
|
2171
|
-
key:
|
|
2170
|
+
key: i
|
|
2172
2171
|
}, [
|
|
2173
|
-
e.useRanking ? (D(),
|
|
2174
|
-
(D(!0),
|
|
2172
|
+
e.useRanking ? (D(), $("div", ii)) : ve("", !0),
|
|
2173
|
+
(D(!0), $(Me, null, De(e.columns, (s, f) => (D(), $("div", {
|
|
2175
2174
|
class: "column",
|
|
2176
2175
|
key: s.key || f,
|
|
2177
2176
|
style: U({
|
|
@@ -2181,15 +2180,15 @@ function fi(e, o, t, n, a, l) {
|
|
|
2181
2180
|
}, be(s.title), 5))), 128))
|
|
2182
2181
|
], 4))), 128))
|
|
2183
2182
|
])) : ve("", !0),
|
|
2184
|
-
e.dataSource.length > 0 ? (D(),
|
|
2185
|
-
e.useTitle ? (D(),
|
|
2183
|
+
e.dataSource.length > 0 ? (D(), $("div", ri, [
|
|
2184
|
+
e.useTitle ? (D(), $("div", {
|
|
2186
2185
|
key: 0,
|
|
2187
2186
|
class: "title-placeholder",
|
|
2188
2187
|
style: U({
|
|
2189
2188
|
marginBottom: e.itemRowSpan
|
|
2190
2189
|
})
|
|
2191
2190
|
}, null, 4)) : ve("", !0),
|
|
2192
|
-
(D(!0),
|
|
2191
|
+
(D(!0), $(Me, null, De(e.dataSource.slice(0, e.sliceCount), (i, s) => (D(), $("div", {
|
|
2193
2192
|
class: "item",
|
|
2194
2193
|
style: U({
|
|
2195
2194
|
backgroundColor: e.backgroundColor,
|
|
@@ -2198,25 +2197,25 @@ function fi(e, o, t, n, a, l) {
|
|
|
2198
2197
|
marginRight: (s + 1) % e.columnCount !== 0 ? e.itemColSpan : "",
|
|
2199
2198
|
marginBottom: e.itemRowSpan
|
|
2200
2199
|
}),
|
|
2201
|
-
key:
|
|
2200
|
+
key: i.id || s,
|
|
2202
2201
|
onClick: o[0] || (o[0] = (...f) => e.click && e.click(...f))
|
|
2203
2202
|
}, [
|
|
2204
|
-
e.useRanking ? (D(),
|
|
2203
|
+
e.useRanking ? (D(), $("div", si, [
|
|
2205
2204
|
ci,
|
|
2206
2205
|
ee("div", di, " Top " + be(s + 1), 1)
|
|
2207
2206
|
])) : ve("", !0),
|
|
2208
|
-
(D(!0),
|
|
2209
|
-
class:
|
|
2207
|
+
(D(!0), $(Me, null, De(e.columns, (f) => (D(), $("div", {
|
|
2208
|
+
class: Lt(["column", e.contrastClass(i[f.key], f.format)]),
|
|
2210
2209
|
key: f.key,
|
|
2211
2210
|
style: U({
|
|
2212
2211
|
fontSize: f.fontSize,
|
|
2213
|
-
color: e.contrastClass(
|
|
2212
|
+
color: e.contrastClass(i[f.key], f.format) === "" ? f.color : "",
|
|
2214
2213
|
fontWeight: f.fontWeight,
|
|
2215
2214
|
...e.columnStyle
|
|
2216
2215
|
})
|
|
2217
|
-
}, be((f.format != null || f.format !== "") && e.formatFn(
|
|
2216
|
+
}, be((f.format != null || f.format !== "") && e.formatFn(i[f.key], f.format)), 7))), 128))
|
|
2218
2217
|
], 4))), 128))
|
|
2219
|
-
])) : (D(),
|
|
2218
|
+
])) : (D(), $("div", ui, " 暂无数据 "))
|
|
2220
2219
|
]),
|
|
2221
2220
|
_: 1
|
|
2222
2221
|
}, 8, ["loading"])
|
|
@@ -2249,15 +2248,15 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2249
2248
|
name: "EcanProportion",
|
|
2250
2249
|
components: {
|
|
2251
2250
|
AProgress: Hn,
|
|
2252
|
-
Skeleton:
|
|
2251
|
+
Skeleton: ht
|
|
2253
2252
|
},
|
|
2254
2253
|
props: {
|
|
2255
2254
|
...Wo
|
|
2256
2255
|
},
|
|
2257
2256
|
setup(e) {
|
|
2258
|
-
const { pageMode: o } =
|
|
2257
|
+
const { pageMode: o } = N(fe, {
|
|
2259
2258
|
pageMode: "normal"
|
|
2260
|
-
}), t = re(e), n =
|
|
2259
|
+
}), t = re(e), n = q(() => {
|
|
2261
2260
|
const u = e.width;
|
|
2262
2261
|
return parseFloat(u);
|
|
2263
2262
|
}), a = M({});
|
|
@@ -2267,53 +2266,53 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2267
2266
|
immediate: !0,
|
|
2268
2267
|
deep: !0
|
|
2269
2268
|
});
|
|
2270
|
-
const l =
|
|
2271
|
-
const u = v(a),
|
|
2269
|
+
const l = q(() => {
|
|
2270
|
+
const u = v(a), h = +e.variableDefaultValue;
|
|
2272
2271
|
if (u == null)
|
|
2273
|
-
return isNaN(
|
|
2274
|
-
const
|
|
2275
|
-
let
|
|
2276
|
-
const
|
|
2277
|
-
for (let
|
|
2278
|
-
const
|
|
2279
|
-
if (
|
|
2280
|
-
|
|
2272
|
+
return isNaN(h) ? 0 : h;
|
|
2273
|
+
const g = e.text.match(/\{.+\}/g) || [];
|
|
2274
|
+
let y;
|
|
2275
|
+
const p = new Set(Object.keys(u));
|
|
2276
|
+
for (let _ = 0; _ < g.length; _++) {
|
|
2277
|
+
const I = g[_], C = I.slice(1, I.length - 1);
|
|
2278
|
+
if (p.has(C)) {
|
|
2279
|
+
y = u[C];
|
|
2281
2280
|
break;
|
|
2282
2281
|
}
|
|
2283
2282
|
}
|
|
2284
|
-
return typeof
|
|
2285
|
-
}),
|
|
2286
|
-
var
|
|
2283
|
+
return typeof y == "number" ? y = y * 100 : typeof y == "string" && !isNaN(+y) ? y = +y * 100 : isNaN(h) ? y = 0 : y = h * 100, e.decimalFormat && (y = +y.toFixed(2)), y;
|
|
2284
|
+
}), r = q(() => {
|
|
2285
|
+
var p;
|
|
2287
2286
|
let u = e.text;
|
|
2288
2287
|
if (u === "")
|
|
2289
2288
|
return v(l);
|
|
2290
|
-
const
|
|
2291
|
-
for (let
|
|
2292
|
-
const
|
|
2293
|
-
let
|
|
2294
|
-
const
|
|
2295
|
-
for (let
|
|
2296
|
-
const k = (
|
|
2297
|
-
|
|
2289
|
+
const h = e.variableDefaultValue, g = v(a), y = u.match(/\{.+\}/g) || [];
|
|
2290
|
+
for (let _ = 0; _ < y.length; _++) {
|
|
2291
|
+
const I = y[_];
|
|
2292
|
+
let C = I.slice(1, I.length - 1);
|
|
2293
|
+
const A = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, S = I.match(A);
|
|
2294
|
+
for (let m = 0; m < (S == null ? void 0 : S.length); m++) {
|
|
2295
|
+
const k = (p = S[m]) == null ? void 0 : p.trim();
|
|
2296
|
+
g[k] != null && (C = C.replace(k, g[k]));
|
|
2298
2297
|
}
|
|
2299
|
-
let c =
|
|
2298
|
+
let c = C;
|
|
2300
2299
|
try {
|
|
2301
|
-
/\(.*\)/g.test(
|
|
2302
|
-
} catch (
|
|
2303
|
-
console.error(
|
|
2300
|
+
/\(.*\)/g.test(C) && (c = yt(C));
|
|
2301
|
+
} catch (m) {
|
|
2302
|
+
console.error(m);
|
|
2304
2303
|
}
|
|
2305
|
-
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c =
|
|
2304
|
+
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c = h, u = u.replace(I, c + "");
|
|
2306
2305
|
}
|
|
2307
2306
|
return u;
|
|
2308
|
-
}),
|
|
2307
|
+
}), i = _e(e), s = M(!1), f = async () => {
|
|
2309
2308
|
var u;
|
|
2310
2309
|
if (!(e.dataType !== "request" || v(o) === "design"))
|
|
2311
2310
|
try {
|
|
2312
2311
|
s.value = !0;
|
|
2313
|
-
const
|
|
2314
|
-
a.value = ((u =
|
|
2315
|
-
} catch (
|
|
2316
|
-
console.error(
|
|
2312
|
+
const h = await i();
|
|
2313
|
+
a.value = ((u = h == null ? void 0 : h.data) == null ? void 0 : u.data) || {};
|
|
2314
|
+
} catch (h) {
|
|
2315
|
+
console.error(h);
|
|
2317
2316
|
} finally {
|
|
2318
2317
|
s.value = !1;
|
|
2319
2318
|
}
|
|
@@ -2323,11 +2322,11 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2323
2322
|
f();
|
|
2324
2323
|
}
|
|
2325
2324
|
});
|
|
2326
|
-
const
|
|
2327
|
-
}), { setRequest: d } =
|
|
2325
|
+
const w = me(e)("click", () => {
|
|
2326
|
+
}), { setRequest: d } = N(Se, {
|
|
2328
2327
|
// @ts-ignore
|
|
2329
2328
|
// eslint-disable-next-line no-void
|
|
2330
|
-
setRequest: ({ id: u, sortNum:
|
|
2329
|
+
setRequest: ({ id: u, sortNum: h, requestFn: g }) => {
|
|
2331
2330
|
}
|
|
2332
2331
|
});
|
|
2333
2332
|
return d({
|
|
@@ -2337,20 +2336,20 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2337
2336
|
}), {
|
|
2338
2337
|
style: t,
|
|
2339
2338
|
myWidth: n,
|
|
2340
|
-
text:
|
|
2339
|
+
text: r,
|
|
2341
2340
|
myValue: l,
|
|
2342
2341
|
loading: s,
|
|
2343
|
-
click:
|
|
2342
|
+
click: w
|
|
2344
2343
|
};
|
|
2345
2344
|
}
|
|
2346
2345
|
});
|
|
2347
2346
|
function bi(e, o, t, n, a, l) {
|
|
2348
|
-
const
|
|
2349
|
-
return D(),
|
|
2347
|
+
const r = H("skeleton"), i = H("a-progress");
|
|
2348
|
+
return D(), $("div", {
|
|
2350
2349
|
class: "ecan-proportion",
|
|
2351
2350
|
style: U(e.style)
|
|
2352
2351
|
}, [
|
|
2353
|
-
|
|
2352
|
+
G(i, {
|
|
2354
2353
|
class: "progress",
|
|
2355
2354
|
percent: e.myValue,
|
|
2356
2355
|
width: e.myWidth,
|
|
@@ -2363,10 +2362,10 @@ function bi(e, o, t, n, a, l) {
|
|
|
2363
2362
|
onClick: e.click
|
|
2364
2363
|
}, {
|
|
2365
2364
|
format: Y(() => [
|
|
2366
|
-
e.loading ? (D(), Re(
|
|
2365
|
+
e.loading ? (D(), Re(r, {
|
|
2367
2366
|
key: 0,
|
|
2368
2367
|
loading: e.loading
|
|
2369
|
-
}, null, 8, ["loading"])) : (D(),
|
|
2368
|
+
}, null, 8, ["loading"])) : (D(), $("div", {
|
|
2370
2369
|
key: 1,
|
|
2371
2370
|
class: "format",
|
|
2372
2371
|
style: U({
|
|
@@ -2409,14 +2408,14 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2409
2408
|
}, {
|
|
2410
2409
|
immediate: !0
|
|
2411
2410
|
});
|
|
2412
|
-
const { getGlobalModel: n, setGlobalModel: a } =
|
|
2411
|
+
const { getGlobalModel: n, setGlobalModel: a } = N(ye, {
|
|
2413
2412
|
// @ts-ignore
|
|
2414
2413
|
// eslint-disable-next-line no-void
|
|
2415
2414
|
getGlobalModel: (f) => {
|
|
2416
2415
|
},
|
|
2417
2416
|
// @ts-ignore
|
|
2418
2417
|
// eslint-disable-next-line no-void
|
|
2419
|
-
setGlobalModel: (f,
|
|
2418
|
+
setGlobalModel: (f, b) => {
|
|
2420
2419
|
}
|
|
2421
2420
|
});
|
|
2422
2421
|
a(e.id, {
|
|
@@ -2426,28 +2425,28 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2426
2425
|
const l = () => {
|
|
2427
2426
|
const f = n(e.id);
|
|
2428
2427
|
a(e.id, { ...f, RECORD: t });
|
|
2429
|
-
},
|
|
2428
|
+
}, r = me(e), i = Rt(r("inputChange", () => {
|
|
2430
2429
|
l();
|
|
2431
|
-
}), 300), s =
|
|
2430
|
+
}), 300), s = r("inputBlur", () => {
|
|
2432
2431
|
});
|
|
2433
2432
|
return {
|
|
2434
2433
|
style: o,
|
|
2435
2434
|
myValue: t,
|
|
2436
2435
|
inputBlur: s,
|
|
2437
|
-
inputChange:
|
|
2436
|
+
inputChange: i
|
|
2438
2437
|
};
|
|
2439
2438
|
}
|
|
2440
2439
|
});
|
|
2441
2440
|
function wi(e, o, t, n, a, l) {
|
|
2442
|
-
const
|
|
2443
|
-
return D(),
|
|
2441
|
+
const r = H("a-input");
|
|
2442
|
+
return D(), $("div", {
|
|
2444
2443
|
class: "ecan-input",
|
|
2445
2444
|
style: U(e.style)
|
|
2446
2445
|
}, [
|
|
2447
|
-
|
|
2446
|
+
G(r, {
|
|
2448
2447
|
class: "input",
|
|
2449
2448
|
value: e.myValue,
|
|
2450
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2449
|
+
"onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
|
|
2451
2450
|
placeholder: e.placeholder,
|
|
2452
2451
|
onChange: e.inputChange,
|
|
2453
2452
|
onBlur: e.inputBlur
|
|
@@ -2481,27 +2480,27 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2481
2480
|
},
|
|
2482
2481
|
setup(e) {
|
|
2483
2482
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M(null);
|
|
2484
|
-
ne(() => [e.value, e.useCurrentTime, e.operate], ([
|
|
2485
|
-
let
|
|
2486
|
-
if (
|
|
2487
|
-
const { type:
|
|
2488
|
-
switch (
|
|
2483
|
+
ne(() => [e.value, e.useCurrentTime, e.operate], ([i, s, f]) => {
|
|
2484
|
+
let b = null;
|
|
2485
|
+
if (i ? b = Ce(de(i)) : s && (b = Ce()), f && b) {
|
|
2486
|
+
const { type: x, value: w, mode: d } = f;
|
|
2487
|
+
switch (x) {
|
|
2489
2488
|
case "add":
|
|
2490
|
-
|
|
2489
|
+
b = b.add(w, d);
|
|
2491
2490
|
break;
|
|
2492
2491
|
case "minus":
|
|
2493
|
-
|
|
2492
|
+
b = b.subtract(w, d);
|
|
2494
2493
|
}
|
|
2495
2494
|
}
|
|
2496
|
-
n.value =
|
|
2495
|
+
n.value = b;
|
|
2497
2496
|
}, {
|
|
2498
2497
|
deep: !0,
|
|
2499
2498
|
immediate: !0
|
|
2500
2499
|
});
|
|
2501
|
-
const { setGlobalModel: a } =
|
|
2500
|
+
const { setGlobalModel: a } = N(ye, {
|
|
2502
2501
|
// @ts-ignore
|
|
2503
2502
|
// eslint-disable-next-line no-void
|
|
2504
|
-
setGlobalModel: (
|
|
2503
|
+
setGlobalModel: (i, s) => {
|
|
2505
2504
|
}
|
|
2506
2505
|
});
|
|
2507
2506
|
a(e.id, {
|
|
@@ -2509,30 +2508,30 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2509
2508
|
format: e.format,
|
|
2510
2509
|
value: n
|
|
2511
2510
|
});
|
|
2512
|
-
const
|
|
2511
|
+
const r = me(e)("dateChange", () => {
|
|
2513
2512
|
});
|
|
2514
2513
|
return he(e, {
|
|
2515
|
-
dateChange:
|
|
2514
|
+
dateChange: r
|
|
2516
2515
|
}), {
|
|
2517
2516
|
style: o,
|
|
2518
2517
|
getPopupContainer: t,
|
|
2519
2518
|
myValue: n,
|
|
2520
2519
|
locale: Co,
|
|
2521
|
-
dateChange:
|
|
2520
|
+
dateChange: r
|
|
2522
2521
|
};
|
|
2523
2522
|
}
|
|
2524
2523
|
});
|
|
2525
2524
|
function Ti(e, o, t, n, a, l) {
|
|
2526
|
-
const
|
|
2527
|
-
return D(),
|
|
2525
|
+
const r = H("a-date-picker");
|
|
2526
|
+
return D(), $("div", {
|
|
2528
2527
|
class: "ecan-date-picker",
|
|
2529
2528
|
style: U(e.style)
|
|
2530
2529
|
}, [
|
|
2531
|
-
|
|
2530
|
+
G(r, {
|
|
2532
2531
|
class: "date-picker",
|
|
2533
2532
|
dropdownClassName: "ecan-date-picker-dropdown",
|
|
2534
2533
|
value: e.myValue,
|
|
2535
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2534
|
+
"onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
|
|
2536
2535
|
format: e.format,
|
|
2537
2536
|
picker: e.picker,
|
|
2538
2537
|
showTime: e.showTime,
|
|
@@ -2568,64 +2567,64 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2568
2567
|
...Qo
|
|
2569
2568
|
},
|
|
2570
2569
|
setup(e) {
|
|
2571
|
-
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } =
|
|
2570
|
+
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } = N(fe, {
|
|
2572
2571
|
pageMode: "normal"
|
|
2573
|
-
}), l = M(e.data),
|
|
2574
|
-
const
|
|
2575
|
-
let
|
|
2576
|
-
const
|
|
2577
|
-
return
|
|
2578
|
-
}, f = M(!1),
|
|
2579
|
-
var
|
|
2572
|
+
}), l = M(e.data), r = M(e.value || e.data[0]), i = e.dataFieldNames, s = (g, y) => {
|
|
2573
|
+
const p = i.label, _ = i.value;
|
|
2574
|
+
let I;
|
|
2575
|
+
const C = y[p], A = y[_];
|
|
2576
|
+
return C != null ? I = C : A != null && (I = A), (I == null ? void 0 : I.toLowerCase().indexOf(g == null ? void 0 : g.toLowerCase())) >= 0;
|
|
2577
|
+
}, f = M(!1), b = async () => {
|
|
2578
|
+
var g, y;
|
|
2580
2579
|
if (!(e.dataType !== "request" || v(a) === "design")) {
|
|
2581
2580
|
f.value = !0;
|
|
2582
2581
|
try {
|
|
2583
|
-
const
|
|
2584
|
-
l.value = ((
|
|
2585
|
-
const
|
|
2586
|
-
e.value === "" &&
|
|
2587
|
-
} catch (
|
|
2588
|
-
console.error(
|
|
2582
|
+
const p = await n();
|
|
2583
|
+
l.value = ((y = (g = p == null ? void 0 : p.data) == null ? void 0 : g.data) == null ? void 0 : y.rows) || [];
|
|
2584
|
+
const _ = v(l)[0];
|
|
2585
|
+
e.value === "" && _ != null && (r.value = _[i.value]);
|
|
2586
|
+
} catch (p) {
|
|
2587
|
+
console.error(p);
|
|
2589
2588
|
} finally {
|
|
2590
2589
|
f.value = !1;
|
|
2591
2590
|
}
|
|
2592
2591
|
}
|
|
2593
|
-
}, { getGlobalModel:
|
|
2592
|
+
}, { getGlobalModel: x, setGlobalModel: w } = N(ye, {
|
|
2594
2593
|
// @ts-ignore
|
|
2595
2594
|
// eslint-disable-next-line no-void
|
|
2596
|
-
getGlobalModel: (
|
|
2595
|
+
getGlobalModel: (g) => {
|
|
2597
2596
|
},
|
|
2598
2597
|
// @ts-ignore
|
|
2599
2598
|
// eslint-disable-next-line no-void
|
|
2600
|
-
setGlobalModel: (
|
|
2599
|
+
setGlobalModel: (g, y) => {
|
|
2601
2600
|
}
|
|
2602
2601
|
});
|
|
2603
|
-
|
|
2602
|
+
w(e.id, {
|
|
2604
2603
|
type: e.type,
|
|
2605
|
-
value:
|
|
2604
|
+
value: r
|
|
2606
2605
|
});
|
|
2607
2606
|
const u = me(e)("selectChange", () => {
|
|
2608
|
-
const
|
|
2609
|
-
|
|
2607
|
+
const g = e.id, y = x(g);
|
|
2608
|
+
w(g, { ...y, RECORD: r });
|
|
2610
2609
|
});
|
|
2611
2610
|
he(e, {
|
|
2612
2611
|
selectChange: u,
|
|
2613
|
-
refreshData:
|
|
2612
|
+
refreshData: b
|
|
2614
2613
|
});
|
|
2615
|
-
const { setRequest:
|
|
2614
|
+
const { setRequest: h } = N(Se, {
|
|
2616
2615
|
// @ts-ignore
|
|
2617
2616
|
// eslint-disable-next-line no-void
|
|
2618
|
-
setRequest: ({ id:
|
|
2617
|
+
setRequest: ({ id: g, sortNum: y, requestFn: p }) => {
|
|
2619
2618
|
}
|
|
2620
2619
|
});
|
|
2621
|
-
return
|
|
2620
|
+
return h({
|
|
2622
2621
|
id: e.id,
|
|
2623
|
-
requestFn:
|
|
2622
|
+
requestFn: b,
|
|
2624
2623
|
sortNum: e.requestSort
|
|
2625
2624
|
}), {
|
|
2626
2625
|
style: o,
|
|
2627
2626
|
getPopupContainer: t,
|
|
2628
|
-
myValue:
|
|
2627
|
+
myValue: r,
|
|
2629
2628
|
selectChange: u,
|
|
2630
2629
|
options: l,
|
|
2631
2630
|
filterOption: s,
|
|
@@ -2634,15 +2633,15 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2634
2633
|
}
|
|
2635
2634
|
});
|
|
2636
2635
|
function Di(e, o, t, n, a, l) {
|
|
2637
|
-
const
|
|
2638
|
-
return D(),
|
|
2636
|
+
const r = H("a-select");
|
|
2637
|
+
return D(), $("div", {
|
|
2639
2638
|
class: "ecan-select",
|
|
2640
2639
|
style: U(e.style)
|
|
2641
2640
|
}, [
|
|
2642
|
-
|
|
2641
|
+
G(r, {
|
|
2643
2642
|
class: "select",
|
|
2644
2643
|
value: e.myValue,
|
|
2645
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2644
|
+
"onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
|
|
2646
2645
|
options: e.options,
|
|
2647
2646
|
mode: e.mode,
|
|
2648
2647
|
getPopupContainer: e.getPopupContainer,
|
|
@@ -2683,82 +2682,90 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2683
2682
|
},
|
|
2684
2683
|
setup(e) {
|
|
2685
2684
|
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M([null, null]);
|
|
2686
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([
|
|
2687
|
-
let A = null,
|
|
2688
|
-
if (
|
|
2689
|
-
const { type:
|
|
2690
|
-
switch (
|
|
2685
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([g, y, p, _, I, C]) => {
|
|
2686
|
+
let A = null, S = null;
|
|
2687
|
+
if (p && (A = Ce().subtract(_, I), S = Ce()), g && (A = Ce(de(g))), y && (S = Ce(de(y))), C) {
|
|
2688
|
+
const { type: c, value: m, mode: k } = C;
|
|
2689
|
+
switch (c) {
|
|
2691
2690
|
case "add":
|
|
2692
|
-
A = A && A.add(
|
|
2691
|
+
A = A && A.add(m, k), S = S && S.add(m, k);
|
|
2693
2692
|
break;
|
|
2694
2693
|
case "minus":
|
|
2695
|
-
A = A && A.subtract(
|
|
2694
|
+
A = A && A.subtract(m, k), S = S && S.subtract(m, k);
|
|
2696
2695
|
}
|
|
2697
2696
|
}
|
|
2698
|
-
n.value = [A,
|
|
2697
|
+
n.value = [A, S];
|
|
2699
2698
|
}, {
|
|
2700
2699
|
immediate: !0
|
|
2701
2700
|
});
|
|
2702
2701
|
let a = v(n)[0], l = v(n)[1];
|
|
2703
|
-
const
|
|
2704
|
-
Array.isArray(
|
|
2705
|
-
},
|
|
2706
|
-
let
|
|
2707
|
-
const
|
|
2702
|
+
const r = (g) => {
|
|
2703
|
+
Array.isArray(g) ? (a = g[0], l = g[1]) : (a = null, l = null);
|
|
2704
|
+
}, i = (g) => {
|
|
2705
|
+
let y = !1, { limitStartTime: p, limitEndTime: _ } = e;
|
|
2706
|
+
const I = {
|
|
2708
2707
|
startTime: `${a || ""}`,
|
|
2709
2708
|
endTime: `${l || ""}`
|
|
2710
2709
|
};
|
|
2711
|
-
return
|
|
2712
|
-
}, { setGlobalModel: s } =
|
|
2710
|
+
return p = de(p, { codeData: I }), _ = de(_, { codeData: I }), p && _ ? y = !(Ce(p) < g && g < Ce(_)) : p ? y = Ce(p) > g : _ && (y = Ce(_) < g), y;
|
|
2711
|
+
}, { setGlobalModel: s } = N(ye, {
|
|
2713
2712
|
// @ts-ignore
|
|
2714
2713
|
// eslint-disable-next-line no-void
|
|
2715
|
-
setGlobalModel: (
|
|
2714
|
+
setGlobalModel: (g, y) => {
|
|
2716
2715
|
}
|
|
2717
|
-
}), f =
|
|
2716
|
+
}), f = q(() => Array.isArray(v(n)) ? v(n)[0] : null), b = q(() => Array.isArray(v(n)) ? v(n)[1] : null);
|
|
2718
2717
|
s(e.id, {
|
|
2719
2718
|
type: e.type,
|
|
2720
2719
|
format: e.format,
|
|
2721
2720
|
startTime: f,
|
|
2722
|
-
endTime:
|
|
2723
|
-
});
|
|
2724
|
-
const C = me(e)("dateChange", () => {
|
|
2725
|
-
console.log("dateChange");
|
|
2721
|
+
endTime: b
|
|
2726
2722
|
});
|
|
2723
|
+
const x = me(e);
|
|
2724
|
+
let w = !1;
|
|
2725
|
+
const d = x("dateChange", () => {
|
|
2726
|
+
}), u = (g) => {
|
|
2727
|
+
g === !1 && w === !0 && (d(), w = !1);
|
|
2728
|
+
}, h = () => {
|
|
2729
|
+
w = !0;
|
|
2730
|
+
};
|
|
2727
2731
|
return he(e, {
|
|
2728
|
-
dateChange:
|
|
2732
|
+
dateChange: d
|
|
2729
2733
|
}), {
|
|
2730
2734
|
style: o,
|
|
2731
2735
|
getPopupContainer: t,
|
|
2732
2736
|
locale: Co,
|
|
2733
|
-
dateChange:
|
|
2737
|
+
dateChange: d,
|
|
2734
2738
|
myValue: n,
|
|
2735
|
-
disabledDate:
|
|
2736
|
-
calendarChange:
|
|
2739
|
+
disabledDate: i,
|
|
2740
|
+
calendarChange: r,
|
|
2741
|
+
openChange: u,
|
|
2742
|
+
change: h
|
|
2737
2743
|
};
|
|
2738
2744
|
}
|
|
2739
2745
|
});
|
|
2740
2746
|
function $i(e, o, t, n, a, l) {
|
|
2741
|
-
const
|
|
2742
|
-
return D(),
|
|
2747
|
+
const r = H("a-range-picker");
|
|
2748
|
+
return D(), $("div", {
|
|
2743
2749
|
class: "ecan-range-picker",
|
|
2744
2750
|
style: U(e.style)
|
|
2745
2751
|
}, [
|
|
2746
|
-
|
|
2752
|
+
G(r, {
|
|
2747
2753
|
class: "range-picker",
|
|
2748
2754
|
dropdownClassName: "ecan-range-picker-dropdown",
|
|
2749
2755
|
value: e.myValue,
|
|
2750
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2756
|
+
"onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
|
|
2751
2757
|
format: e.format,
|
|
2752
2758
|
picker: e.picker,
|
|
2753
2759
|
locale: e.locale,
|
|
2754
2760
|
getPopupContainer: e.getPopupContainer,
|
|
2755
2761
|
"disabled-date": e.disabledDate,
|
|
2756
|
-
onChange: e.
|
|
2757
|
-
onCalendarChange: e.calendarChange
|
|
2758
|
-
|
|
2762
|
+
onChange: e.change,
|
|
2763
|
+
onCalendarChange: e.calendarChange,
|
|
2764
|
+
onOpenChange: e.openChange
|
|
2765
|
+
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "disabled-date", "onChange", "onCalendarChange", "onOpenChange"])
|
|
2759
2766
|
], 4);
|
|
2760
2767
|
}
|
|
2761
|
-
const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-
|
|
2768
|
+
const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-a3f2ce0b"]]), Pi = ae(Ni), en = {
|
|
2762
2769
|
...se,
|
|
2763
2770
|
width: "200px",
|
|
2764
2771
|
name: "按钮",
|
|
@@ -2782,35 +2789,35 @@ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-24f19e2d
|
|
|
2782
2789
|
},
|
|
2783
2790
|
setup(e) {
|
|
2784
2791
|
const o = re(e), n = me(e)("click", () => {
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2792
|
+
const i = v(l);
|
|
2793
|
+
i && e.target === "event" && window.parent.postMessage({
|
|
2787
2794
|
type: "openPage",
|
|
2788
|
-
url:
|
|
2795
|
+
url: i
|
|
2789
2796
|
}, "*");
|
|
2790
|
-
}), a =
|
|
2791
|
-
const
|
|
2792
|
-
if (!(
|
|
2797
|
+
}), a = q(() => de(e.text)), l = q(() => de(e.href) || null), r = q(() => {
|
|
2798
|
+
const i = e.target;
|
|
2799
|
+
if (!(i === "event" || v(l) == null))
|
|
2793
2800
|
return {
|
|
2794
2801
|
self: "_self",
|
|
2795
2802
|
blank: "_blank"
|
|
2796
|
-
}[
|
|
2803
|
+
}[i];
|
|
2797
2804
|
});
|
|
2798
2805
|
return {
|
|
2799
2806
|
style: o,
|
|
2800
2807
|
click: n,
|
|
2801
2808
|
myText: a,
|
|
2802
2809
|
myHref: l,
|
|
2803
|
-
myTarget:
|
|
2810
|
+
myTarget: r
|
|
2804
2811
|
};
|
|
2805
2812
|
}
|
|
2806
2813
|
});
|
|
2807
2814
|
function Gi(e, o, t, n, a, l) {
|
|
2808
|
-
const
|
|
2809
|
-
return D(),
|
|
2815
|
+
const r = H("a-button");
|
|
2816
|
+
return D(), $("div", {
|
|
2810
2817
|
class: "ecan-button",
|
|
2811
2818
|
style: U(e.style)
|
|
2812
2819
|
}, [
|
|
2813
|
-
|
|
2820
|
+
G(r, {
|
|
2814
2821
|
block: "",
|
|
2815
2822
|
onClick: e.click,
|
|
2816
2823
|
type: e.mode,
|
|
@@ -2858,10 +2865,10 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2858
2865
|
setup(e) {
|
|
2859
2866
|
const o = re(e), t = M([]), n = M([]), a = (d) => {
|
|
2860
2867
|
const u = e.value;
|
|
2861
|
-
let
|
|
2862
|
-
d.forEach((
|
|
2863
|
-
|
|
2864
|
-
}), typeof u == "string" && u !== "" ?
|
|
2868
|
+
let h = [];
|
|
2869
|
+
d.forEach((g) => {
|
|
2870
|
+
g.checked && h.push(g.value);
|
|
2871
|
+
}), typeof u == "string" && u !== "" ? h = h.concat(u.split(",")) : Array.isArray(u) && (h = h.concat(u)), t.value = d, n.value = h;
|
|
2865
2872
|
};
|
|
2866
2873
|
ne(() => [e.data, e.value], ([d]) => {
|
|
2867
2874
|
a(d);
|
|
@@ -2869,15 +2876,15 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2869
2876
|
immediate: !0,
|
|
2870
2877
|
deep: !0
|
|
2871
2878
|
});
|
|
2872
|
-
const l = _e(e), { pageMode:
|
|
2879
|
+
const l = _e(e), { pageMode: r } = N(fe, {
|
|
2873
2880
|
pageMode: "normal"
|
|
2874
|
-
}),
|
|
2875
|
-
var
|
|
2876
|
-
if (e.dataType !== "request" || v(
|
|
2881
|
+
}), i = async () => {
|
|
2882
|
+
var h, g;
|
|
2883
|
+
if (e.dataType !== "request" || v(r) === "design")
|
|
2877
2884
|
return;
|
|
2878
|
-
const d = await l(), u = ((
|
|
2885
|
+
const d = await l(), u = ((g = (h = d == null ? void 0 : d.data) == null ? void 0 : h.data) == null ? void 0 : g.rows) || [];
|
|
2879
2886
|
a(u);
|
|
2880
|
-
}, { getGlobalModel: s, setGlobalModel: f } =
|
|
2887
|
+
}, { getGlobalModel: s, setGlobalModel: f } = N(ye, {
|
|
2881
2888
|
// @ts-ignore
|
|
2882
2889
|
// eslint-disable-next-line no-void
|
|
2883
2890
|
getGlobalModel: (d) => {
|
|
@@ -2891,37 +2898,37 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2891
2898
|
type: e.type,
|
|
2892
2899
|
value: n
|
|
2893
2900
|
});
|
|
2894
|
-
const
|
|
2901
|
+
const x = me(e)("checkboxChange", () => {
|
|
2895
2902
|
const d = s(e.id);
|
|
2896
2903
|
f(e.id, { ...d, RECORD: n });
|
|
2897
|
-
}), { setRequest:
|
|
2904
|
+
}), { setRequest: w } = N(Se, {
|
|
2898
2905
|
// @ts-ignore
|
|
2899
2906
|
// eslint-disable-next-line no-void
|
|
2900
|
-
setRequest: ({ id: d, sortNum: u, requestFn:
|
|
2907
|
+
setRequest: ({ id: d, sortNum: u, requestFn: h }) => {
|
|
2901
2908
|
}
|
|
2902
2909
|
});
|
|
2903
|
-
return
|
|
2910
|
+
return w({
|
|
2904
2911
|
id: e.id,
|
|
2905
|
-
requestFn:
|
|
2912
|
+
requestFn: i,
|
|
2906
2913
|
sortNum: e.requestSort
|
|
2907
2914
|
}), {
|
|
2908
2915
|
myOption: t,
|
|
2909
2916
|
style: o,
|
|
2910
2917
|
myValue: n,
|
|
2911
|
-
checkboxChange:
|
|
2918
|
+
checkboxChange: x
|
|
2912
2919
|
};
|
|
2913
2920
|
}
|
|
2914
2921
|
});
|
|
2915
2922
|
function Hi(e, o, t, n, a, l) {
|
|
2916
|
-
const
|
|
2917
|
-
return D(),
|
|
2923
|
+
const r = H("a-checkbox-group");
|
|
2924
|
+
return D(), $("div", {
|
|
2918
2925
|
class: "ecan-checkbox",
|
|
2919
2926
|
style: U(e.style)
|
|
2920
2927
|
}, [
|
|
2921
|
-
|
|
2928
|
+
G(r, {
|
|
2922
2929
|
options: e.myOption,
|
|
2923
2930
|
value: e.myValue,
|
|
2924
|
-
"onUpdate:value": o[0] || (o[0] = (
|
|
2931
|
+
"onUpdate:value": o[0] || (o[0] = (i) => e.myValue = i),
|
|
2925
2932
|
onChange: e.checkboxChange
|
|
2926
2933
|
}, null, 8, ["options", "value", "onChange"])
|
|
2927
2934
|
], 4);
|
|
@@ -2995,8 +3002,8 @@ const Zi = /* @__PURE__ */ K(Vi, [["render", Hi]]), Ji = ae(Zi), an = {
|
|
|
2995
3002
|
var s;
|
|
2996
3003
|
const o = await Fe.post(e, {}, {
|
|
2997
3004
|
responseType: "blob"
|
|
2998
|
-
}), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), l = new Blob([t]),
|
|
2999
|
-
|
|
3005
|
+
}), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), l = new Blob([t]), r = document.createElement("a"), i = window.URL.createObjectURL(l);
|
|
3006
|
+
r.href = i, r.download = decodeURI(a), r.style.display = "none", document.body.appendChild(r), r.click(), (s = r.parentNode) == null || s.removeChild(r), window.URL.revokeObjectURL(i);
|
|
3000
3007
|
};
|
|
3001
3008
|
qe([
|
|
3002
3009
|
je,
|
|
@@ -3019,13 +3026,13 @@ const Qi = Q({
|
|
|
3019
3026
|
setup(e, { expose: o }) {
|
|
3020
3027
|
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3021
3028
|
a.value = !1;
|
|
3022
|
-
},
|
|
3023
|
-
let { data:
|
|
3029
|
+
}, r = q(() => {
|
|
3030
|
+
let { data: A = [] } = v(n)[0] || {};
|
|
3024
3031
|
if (Array.isArray(e.colors)) {
|
|
3025
|
-
const
|
|
3026
|
-
|
|
3027
|
-
label:
|
|
3028
|
-
...
|
|
3032
|
+
const S = e.isUseLabelColors, c = e.colors;
|
|
3033
|
+
A = A.map((m, k) => ({
|
|
3034
|
+
label: S ? { color: c[k] } : {},
|
|
3035
|
+
...m
|
|
3029
3036
|
}));
|
|
3030
3037
|
}
|
|
3031
3038
|
return {
|
|
@@ -3081,8 +3088,8 @@ const Qi = Q({
|
|
|
3081
3088
|
tooltip: {
|
|
3082
3089
|
show: e.tooltipShow,
|
|
3083
3090
|
trigger: e.tooltipTrigger,
|
|
3084
|
-
formatter: (
|
|
3085
|
-
const { marker: c, seriesName:
|
|
3091
|
+
formatter: (S) => {
|
|
3092
|
+
const { marker: c, seriesName: m, name: k, value: R, percent: E, data: T } = S || {};
|
|
3086
3093
|
return de(
|
|
3087
3094
|
e.tooltipFormatter,
|
|
3088
3095
|
{
|
|
@@ -3091,7 +3098,7 @@ const Qi = Q({
|
|
|
3091
3098
|
name: k,
|
|
3092
3099
|
value: R,
|
|
3093
3100
|
percent: E,
|
|
3094
|
-
a:
|
|
3101
|
+
a: m,
|
|
3095
3102
|
b: k,
|
|
3096
3103
|
c: R,
|
|
3097
3104
|
d: E,
|
|
@@ -3121,7 +3128,7 @@ const Qi = Q({
|
|
|
3121
3128
|
color: e.colors,
|
|
3122
3129
|
series: [
|
|
3123
3130
|
{
|
|
3124
|
-
data:
|
|
3131
|
+
data: A,
|
|
3125
3132
|
type: "pie",
|
|
3126
3133
|
radius: [e.innerRadius, e.outerRadius],
|
|
3127
3134
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3156,72 +3163,72 @@ const Qi = Q({
|
|
|
3156
3163
|
}
|
|
3157
3164
|
]
|
|
3158
3165
|
};
|
|
3159
|
-
}), { getGlobalModel:
|
|
3166
|
+
}), { getGlobalModel: i, setGlobalModel: s } = N(ye, {
|
|
3160
3167
|
// @ts-ignore
|
|
3161
3168
|
// eslint-disable-next-line no-void
|
|
3162
|
-
getGlobalModel: (
|
|
3169
|
+
getGlobalModel: (A) => {
|
|
3163
3170
|
},
|
|
3164
3171
|
// @ts-ignore
|
|
3165
3172
|
// eslint-disable-next-line no-void
|
|
3166
|
-
setGlobalModel: (
|
|
3173
|
+
setGlobalModel: (A, S) => {
|
|
3167
3174
|
}
|
|
3168
|
-
}), { pageMode: f } =
|
|
3175
|
+
}), { pageMode: f } = N(fe, {
|
|
3169
3176
|
pageMode: "normal"
|
|
3170
|
-
}),
|
|
3171
|
-
const { dataset: c } = Qe(
|
|
3177
|
+
}), b = (A = [], S) => {
|
|
3178
|
+
const { dataset: c } = Qe(A, S);
|
|
3172
3179
|
n.value = c;
|
|
3173
|
-
},
|
|
3174
|
-
const c = Qe(
|
|
3180
|
+
}, x = (A = [], S) => {
|
|
3181
|
+
const c = Qe(A, S);
|
|
3175
3182
|
n.value = c.dataset;
|
|
3176
3183
|
};
|
|
3177
|
-
ne(() => e.data, (
|
|
3178
|
-
(e.dataType === "static" || v(f) === "design") &&
|
|
3184
|
+
ne(() => e.data, (A) => {
|
|
3185
|
+
(e.dataType === "static" || v(f) === "design") && b(A);
|
|
3179
3186
|
}, {
|
|
3180
3187
|
immediate: !0,
|
|
3181
3188
|
deep: !0
|
|
3182
3189
|
});
|
|
3183
|
-
const
|
|
3184
|
-
var
|
|
3190
|
+
const w = M(!1), d = _e(e), u = async () => {
|
|
3191
|
+
var A, S;
|
|
3185
3192
|
if (!(e.dataType !== "request" || v(f) === "design"))
|
|
3186
3193
|
try {
|
|
3187
|
-
|
|
3194
|
+
w.value = !0;
|
|
3188
3195
|
const c = await d();
|
|
3189
|
-
|
|
3196
|
+
b((S = (A = c == null ? void 0 : c.data) == null ? void 0 : A.data) == null ? void 0 : S.rows, e.valueTypeDataFieldNames);
|
|
3190
3197
|
} catch (c) {
|
|
3191
3198
|
console.error(c);
|
|
3192
3199
|
} finally {
|
|
3193
|
-
|
|
3200
|
+
w.value = !1;
|
|
3194
3201
|
}
|
|
3195
|
-
},
|
|
3196
|
-
const
|
|
3197
|
-
s(e.id, { ...
|
|
3198
|
-
}),
|
|
3199
|
-
var
|
|
3202
|
+
}, g = me(e)("click", (A) => {
|
|
3203
|
+
const S = i(e.id);
|
|
3204
|
+
s(e.id, { ...S, RECORD: A == null ? void 0 : A.data });
|
|
3205
|
+
}), y = ot(e), p = async () => {
|
|
3206
|
+
var A;
|
|
3200
3207
|
try {
|
|
3201
|
-
|
|
3202
|
-
const
|
|
3208
|
+
w.value = !0;
|
|
3209
|
+
const S = await y(), { data: c } = S.data || {};
|
|
3203
3210
|
if (c) {
|
|
3204
|
-
const { columns:
|
|
3211
|
+
const { columns: m = [], rows: k = [] } = ((A = S == null ? void 0 : S.data) == null ? void 0 : A.data) ?? {};
|
|
3205
3212
|
let R = [];
|
|
3206
|
-
if (
|
|
3207
|
-
const E =
|
|
3208
|
-
R = k.map((
|
|
3209
|
-
name:
|
|
3210
|
-
value:
|
|
3213
|
+
if (m.length > 0) {
|
|
3214
|
+
const E = m[0], T = m[1];
|
|
3215
|
+
R = k.map((j) => ({
|
|
3216
|
+
name: j[E],
|
|
3217
|
+
value: j[T]
|
|
3211
3218
|
}));
|
|
3212
3219
|
}
|
|
3213
|
-
|
|
3220
|
+
x(R);
|
|
3214
3221
|
}
|
|
3215
|
-
} catch (
|
|
3216
|
-
console.error(
|
|
3222
|
+
} catch (S) {
|
|
3223
|
+
console.error(S);
|
|
3217
3224
|
} finally {
|
|
3218
|
-
|
|
3225
|
+
w.value = !1;
|
|
3219
3226
|
}
|
|
3220
|
-
},
|
|
3227
|
+
}, _ = () => {
|
|
3221
3228
|
if (v(f) !== "design")
|
|
3222
3229
|
switch (e.dataType) {
|
|
3223
3230
|
case "indicator":
|
|
3224
|
-
|
|
3231
|
+
p();
|
|
3225
3232
|
break;
|
|
3226
3233
|
case "request":
|
|
3227
3234
|
u();
|
|
@@ -3230,40 +3237,40 @@ const Qi = Q({
|
|
|
3230
3237
|
};
|
|
3231
3238
|
he(e, {
|
|
3232
3239
|
resetRecord: () => {
|
|
3233
|
-
const
|
|
3234
|
-
s(
|
|
3240
|
+
const A = e.id, S = i(A);
|
|
3241
|
+
s(A, { ...S, RECORD: "" });
|
|
3235
3242
|
},
|
|
3236
|
-
refreshData:
|
|
3237
|
-
click:
|
|
3243
|
+
refreshData: _,
|
|
3244
|
+
click: g
|
|
3238
3245
|
}), o({
|
|
3239
|
-
refreshData:
|
|
3246
|
+
refreshData: _
|
|
3240
3247
|
});
|
|
3241
|
-
const { setRequest:
|
|
3242
|
-
setRequest: (
|
|
3248
|
+
const { setRequest: C } = N(Se, {
|
|
3249
|
+
setRequest: (A) => {
|
|
3243
3250
|
}
|
|
3244
3251
|
});
|
|
3245
|
-
return typeof
|
|
3252
|
+
return typeof C == "function" && C({
|
|
3246
3253
|
id: e.id,
|
|
3247
|
-
requestFn:
|
|
3254
|
+
requestFn: _,
|
|
3248
3255
|
sortNum: e.requestSort
|
|
3249
3256
|
}), {
|
|
3250
|
-
option:
|
|
3257
|
+
option: r,
|
|
3251
3258
|
style: t,
|
|
3252
|
-
click:
|
|
3253
|
-
loading:
|
|
3259
|
+
click: g,
|
|
3260
|
+
loading: w,
|
|
3254
3261
|
visible: a,
|
|
3255
3262
|
hideModal: l
|
|
3256
3263
|
};
|
|
3257
3264
|
}
|
|
3258
3265
|
});
|
|
3259
3266
|
function Ki(e, o, t, n, a, l) {
|
|
3260
|
-
const
|
|
3261
|
-
return D(),
|
|
3267
|
+
const r = H("echarts"), i = H("spin"), s = H("a-modal");
|
|
3268
|
+
return D(), $("div", {
|
|
3262
3269
|
style: U(e.style)
|
|
3263
3270
|
}, [
|
|
3264
|
-
|
|
3271
|
+
G(i, { spinning: e.loading }, {
|
|
3265
3272
|
default: Y(() => [
|
|
3266
|
-
|
|
3273
|
+
G(r, {
|
|
3267
3274
|
option: e.option,
|
|
3268
3275
|
autoresize: "",
|
|
3269
3276
|
onClick: e.click
|
|
@@ -3271,7 +3278,7 @@ function Ki(e, o, t, n, a, l) {
|
|
|
3271
3278
|
]),
|
|
3272
3279
|
_: 1
|
|
3273
3280
|
}, 8, ["spinning"]),
|
|
3274
|
-
|
|
3281
|
+
G(s, {
|
|
3275
3282
|
"wrap-class-name": "full-modal",
|
|
3276
3283
|
width: "100%",
|
|
3277
3284
|
visible: e.visible,
|
|
@@ -3279,9 +3286,9 @@ function Ki(e, o, t, n, a, l) {
|
|
|
3279
3286
|
onCancel: e.hideModal
|
|
3280
3287
|
}, {
|
|
3281
3288
|
default: Y(() => [
|
|
3282
|
-
|
|
3289
|
+
G(i, { spinning: e.loading }, {
|
|
3283
3290
|
default: Y(() => [
|
|
3284
|
-
|
|
3291
|
+
G(r, {
|
|
3285
3292
|
option: e.option,
|
|
3286
3293
|
"update-options": { notMerge: !0 },
|
|
3287
3294
|
autoresize: ""
|
|
@@ -3383,10 +3390,10 @@ const or = Q({
|
|
|
3383
3390
|
AModal: Ae
|
|
3384
3391
|
},
|
|
3385
3392
|
setup(e, { expose: o }) {
|
|
3386
|
-
const t = re(e), n = M([]), a = M([]), l = M(!1),
|
|
3393
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), r = () => {
|
|
3387
3394
|
l.value = !1;
|
|
3388
|
-
},
|
|
3389
|
-
const
|
|
3395
|
+
}, i = q(() => {
|
|
3396
|
+
const S = e.xAxisLabelFormatter, c = e.yAxisLabelFormatter;
|
|
3390
3397
|
return {
|
|
3391
3398
|
toolbox: {
|
|
3392
3399
|
show: e.toolboxShow,
|
|
@@ -3440,22 +3447,22 @@ const or = Q({
|
|
|
3440
3447
|
tooltip: {
|
|
3441
3448
|
trigger: "axis",
|
|
3442
3449
|
show: e.tooltipShow,
|
|
3443
|
-
formatter: (
|
|
3444
|
-
const k =
|
|
3450
|
+
formatter: (m) => {
|
|
3451
|
+
const k = m.length;
|
|
3445
3452
|
let R = "", E = e.tooltipFormatter;
|
|
3446
3453
|
E === "" && (E = "{marker} {a} {c}");
|
|
3447
3454
|
for (let T = 0; T < k; T++) {
|
|
3448
|
-
const { marker:
|
|
3449
|
-
T === 0 && (R += `${
|
|
3455
|
+
const { marker: j, seriesName: J, name: F, value: B, data: z } = m[T] || {};
|
|
3456
|
+
T === 0 && (R += `${F}<br/>`), R += de(
|
|
3450
3457
|
E,
|
|
3451
3458
|
{
|
|
3452
3459
|
textData: {
|
|
3453
|
-
marker:
|
|
3454
|
-
name:
|
|
3455
|
-
value:
|
|
3460
|
+
marker: j,
|
|
3461
|
+
name: F,
|
|
3462
|
+
value: B,
|
|
3456
3463
|
a: J,
|
|
3457
|
-
b:
|
|
3458
|
-
c:
|
|
3464
|
+
b: F,
|
|
3465
|
+
c: B,
|
|
3459
3466
|
...z
|
|
3460
3467
|
}
|
|
3461
3468
|
},
|
|
@@ -3484,8 +3491,8 @@ const or = Q({
|
|
|
3484
3491
|
rotate: e.xAxisLabelRotate,
|
|
3485
3492
|
width: e.xAxisLabelWidth,
|
|
3486
3493
|
overflow: e.xAxisLabelOverflow,
|
|
3487
|
-
formatter(
|
|
3488
|
-
return Ne(
|
|
3494
|
+
formatter(m) {
|
|
3495
|
+
return Ne(S, m);
|
|
3489
3496
|
}
|
|
3490
3497
|
},
|
|
3491
3498
|
axisLine: {
|
|
@@ -3508,8 +3515,8 @@ const or = Q({
|
|
|
3508
3515
|
},
|
|
3509
3516
|
axisLabel: {
|
|
3510
3517
|
color: e.yAxisLabelColor,
|
|
3511
|
-
formatter(
|
|
3512
|
-
return Ne(c,
|
|
3518
|
+
formatter(m) {
|
|
3519
|
+
return Ne(c, m);
|
|
3513
3520
|
}
|
|
3514
3521
|
},
|
|
3515
3522
|
axisLine: {
|
|
@@ -3527,28 +3534,28 @@ const or = Q({
|
|
|
3527
3534
|
},
|
|
3528
3535
|
series: v(n)
|
|
3529
3536
|
};
|
|
3530
|
-
}), { getGlobalModel: s, setGlobalModel: f } =
|
|
3537
|
+
}), { getGlobalModel: s, setGlobalModel: f } = N(ye, {
|
|
3531
3538
|
// @ts-ignore
|
|
3532
3539
|
// eslint-disable-next-line no-void
|
|
3533
|
-
getGlobalModel: (
|
|
3540
|
+
getGlobalModel: (S) => {
|
|
3534
3541
|
},
|
|
3535
3542
|
// @ts-ignore
|
|
3536
3543
|
// eslint-disable-next-line no-void
|
|
3537
|
-
setGlobalModel: (
|
|
3544
|
+
setGlobalModel: (S, c) => {
|
|
3538
3545
|
}
|
|
3539
|
-
}), { pageMode:
|
|
3546
|
+
}), { pageMode: b } = N(fe, {
|
|
3540
3547
|
pageMode: "normal"
|
|
3541
|
-
}),
|
|
3542
|
-
let
|
|
3548
|
+
}), x = (S = [], c = !1) => {
|
|
3549
|
+
let m;
|
|
3543
3550
|
if (e.dataFieldConfigType === "key") {
|
|
3544
3551
|
const T = c ? e.keyTypeDataFieldNames : null;
|
|
3545
|
-
|
|
3552
|
+
m = Ge(S, T);
|
|
3546
3553
|
} else if (e.dataFieldConfigType === "value") {
|
|
3547
3554
|
const T = c ? e.valueTypeDataFieldNames : null;
|
|
3548
|
-
|
|
3555
|
+
m = Qe(S, T);
|
|
3549
3556
|
}
|
|
3550
|
-
a.value =
|
|
3551
|
-
const k =
|
|
3557
|
+
a.value = m.dimensions;
|
|
3558
|
+
const k = m.dataset, R = [], E = k.length;
|
|
3552
3559
|
for (let T = 0; T < E; T++)
|
|
3553
3560
|
R.push({
|
|
3554
3561
|
type: "line",
|
|
@@ -3576,11 +3583,11 @@ const or = Q({
|
|
|
3576
3583
|
}
|
|
3577
3584
|
});
|
|
3578
3585
|
n.value = R;
|
|
3579
|
-
},
|
|
3580
|
-
const R = Ge(
|
|
3586
|
+
}, w = (S = [], c, m = !1) => {
|
|
3587
|
+
const R = Ge(S, m ? c : null);
|
|
3581
3588
|
a.value = R.dimensions;
|
|
3582
|
-
const E = R.dataset, T = [],
|
|
3583
|
-
for (let J = 0; J <
|
|
3589
|
+
const E = R.dataset, T = [], j = E.length;
|
|
3590
|
+
for (let J = 0; J < j; J++)
|
|
3584
3591
|
T.push({
|
|
3585
3592
|
type: "line",
|
|
3586
3593
|
...E[J],
|
|
@@ -3592,92 +3599,92 @@ const or = Q({
|
|
|
3592
3599
|
});
|
|
3593
3600
|
n.value = T;
|
|
3594
3601
|
};
|
|
3595
|
-
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
3596
|
-
(e.dataType === "static" || v(
|
|
3602
|
+
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([S]) => {
|
|
3603
|
+
(e.dataType === "static" || v(b) === "design") && x(S);
|
|
3597
3604
|
}, {
|
|
3598
3605
|
immediate: !0,
|
|
3599
3606
|
deep: !0
|
|
3600
3607
|
});
|
|
3601
|
-
const d = M(!1), u = _e(e),
|
|
3602
|
-
var
|
|
3603
|
-
if (!(e.dataType !== "request" || v(
|
|
3608
|
+
const d = M(!1), u = _e(e), h = async () => {
|
|
3609
|
+
var S, c;
|
|
3610
|
+
if (!(e.dataType !== "request" || v(b) === "design"))
|
|
3604
3611
|
try {
|
|
3605
3612
|
d.value = !0;
|
|
3606
|
-
const
|
|
3607
|
-
|
|
3608
|
-
} catch (
|
|
3609
|
-
console.error(
|
|
3613
|
+
const m = await u();
|
|
3614
|
+
x((c = (S = m == null ? void 0 : m.data) == null ? void 0 : S.data) == null ? void 0 : c.rows, !0);
|
|
3615
|
+
} catch (m) {
|
|
3616
|
+
console.error(m);
|
|
3610
3617
|
} finally {
|
|
3611
3618
|
d.value = !1;
|
|
3612
3619
|
}
|
|
3613
|
-
},
|
|
3620
|
+
}, y = me(e)("click", (S) => {
|
|
3614
3621
|
const c = s(e.id);
|
|
3615
|
-
f(e.id, { ...c, RECORD:
|
|
3616
|
-
}),
|
|
3617
|
-
var
|
|
3622
|
+
f(e.id, { ...c, RECORD: S == null ? void 0 : S.data });
|
|
3623
|
+
}), p = ot(e), _ = async () => {
|
|
3624
|
+
var S;
|
|
3618
3625
|
try {
|
|
3619
3626
|
d.value = !0;
|
|
3620
|
-
const c = await
|
|
3627
|
+
const c = await p(), { columns: m = [], rows: k = [] } = ((S = c == null ? void 0 : c.data) == null ? void 0 : S.data) ?? {};
|
|
3621
3628
|
let R;
|
|
3622
|
-
|
|
3623
|
-
name:
|
|
3624
|
-
types:
|
|
3629
|
+
m.length > 0 && (R = {
|
|
3630
|
+
name: m[0],
|
|
3631
|
+
types: m.slice(1).map((E) => ({
|
|
3625
3632
|
label: E,
|
|
3626
3633
|
value: E
|
|
3627
3634
|
}))
|
|
3628
|
-
}),
|
|
3635
|
+
}), w(k, R, !0);
|
|
3629
3636
|
} catch (c) {
|
|
3630
3637
|
console.error(c);
|
|
3631
3638
|
} finally {
|
|
3632
3639
|
d.value = !1;
|
|
3633
3640
|
}
|
|
3634
|
-
},
|
|
3635
|
-
if (v(
|
|
3641
|
+
}, I = () => {
|
|
3642
|
+
if (v(b) !== "design")
|
|
3636
3643
|
switch (e.dataType) {
|
|
3637
3644
|
case "indicator":
|
|
3638
|
-
|
|
3645
|
+
_();
|
|
3639
3646
|
break;
|
|
3640
3647
|
case "request":
|
|
3641
|
-
|
|
3648
|
+
h();
|
|
3642
3649
|
break;
|
|
3643
3650
|
}
|
|
3644
3651
|
};
|
|
3645
3652
|
he(e, {
|
|
3646
|
-
refreshData:
|
|
3653
|
+
refreshData: I,
|
|
3647
3654
|
resetRecord: () => {
|
|
3648
|
-
const
|
|
3649
|
-
f(
|
|
3655
|
+
const S = e.id, c = s(S);
|
|
3656
|
+
f(S, { ...c, RECORD: "" });
|
|
3650
3657
|
},
|
|
3651
|
-
click:
|
|
3658
|
+
click: y
|
|
3652
3659
|
});
|
|
3653
|
-
const { setRequest:
|
|
3654
|
-
setRequest: (
|
|
3660
|
+
const { setRequest: A } = N(Se, {
|
|
3661
|
+
setRequest: (S) => {
|
|
3655
3662
|
}
|
|
3656
3663
|
});
|
|
3657
|
-
return typeof
|
|
3664
|
+
return typeof A == "function" && A({
|
|
3658
3665
|
id: e.id,
|
|
3659
|
-
requestFn:
|
|
3666
|
+
requestFn: I,
|
|
3660
3667
|
sortNum: e.requestSort
|
|
3661
3668
|
}), o({
|
|
3662
|
-
refreshData:
|
|
3669
|
+
refreshData: I
|
|
3663
3670
|
}), {
|
|
3664
|
-
option:
|
|
3671
|
+
option: i,
|
|
3665
3672
|
style: t,
|
|
3666
|
-
click:
|
|
3673
|
+
click: y,
|
|
3667
3674
|
loading: d,
|
|
3668
3675
|
visible: l,
|
|
3669
|
-
hideModal:
|
|
3676
|
+
hideModal: r
|
|
3670
3677
|
};
|
|
3671
3678
|
}
|
|
3672
3679
|
});
|
|
3673
3680
|
function nr(e, o, t, n, a, l) {
|
|
3674
|
-
const
|
|
3675
|
-
return D(),
|
|
3681
|
+
const r = H("echarts"), i = H("spin"), s = H("a-modal");
|
|
3682
|
+
return D(), $("div", {
|
|
3676
3683
|
style: U(e.style)
|
|
3677
3684
|
}, [
|
|
3678
|
-
|
|
3685
|
+
G(i, { spinning: e.loading }, {
|
|
3679
3686
|
default: Y(() => [
|
|
3680
|
-
|
|
3687
|
+
G(r, {
|
|
3681
3688
|
option: e.option,
|
|
3682
3689
|
autoresize: "",
|
|
3683
3690
|
onClick: e.click
|
|
@@ -3685,7 +3692,7 @@ function nr(e, o, t, n, a, l) {
|
|
|
3685
3692
|
]),
|
|
3686
3693
|
_: 1
|
|
3687
3694
|
}, 8, ["spinning"]),
|
|
3688
|
-
|
|
3695
|
+
G(s, {
|
|
3689
3696
|
"wrap-class-name": "full-modal",
|
|
3690
3697
|
width: "100%",
|
|
3691
3698
|
visible: e.visible,
|
|
@@ -3693,9 +3700,9 @@ function nr(e, o, t, n, a, l) {
|
|
|
3693
3700
|
onCancel: e.hideModal
|
|
3694
3701
|
}, {
|
|
3695
3702
|
default: Y(() => [
|
|
3696
|
-
|
|
3703
|
+
G(i, { spinning: e.loading }, {
|
|
3697
3704
|
default: Y(() => [
|
|
3698
|
-
|
|
3705
|
+
G(r, {
|
|
3699
3706
|
option: e.option,
|
|
3700
3707
|
"update-options": { notMerge: !0 },
|
|
3701
3708
|
autoresize: ""
|
|
@@ -3820,9 +3827,9 @@ const rr = Q({
|
|
|
3820
3827
|
setup(e, { expose: o }) {
|
|
3821
3828
|
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3822
3829
|
a.value = !1;
|
|
3823
|
-
},
|
|
3824
|
-
const c = v(n),
|
|
3825
|
-
for (let R = 0; R <
|
|
3830
|
+
}, r = q(() => {
|
|
3831
|
+
const c = v(n), m = c.length, k = [];
|
|
3832
|
+
for (let R = 0; R < m; R++) {
|
|
3826
3833
|
const E = {
|
|
3827
3834
|
...c[R],
|
|
3828
3835
|
type: "bar",
|
|
@@ -3836,8 +3843,8 @@ const rr = Q({
|
|
|
3836
3843
|
}, k.push(E);
|
|
3837
3844
|
}
|
|
3838
3845
|
return k;
|
|
3839
|
-
}),
|
|
3840
|
-
const c = e.yAxisLabelFormatter,
|
|
3846
|
+
}), i = M([]), s = M(!1), f = q(() => {
|
|
3847
|
+
const c = e.yAxisLabelFormatter, m = e.xAxisLabelFormatter;
|
|
3841
3848
|
return {
|
|
3842
3849
|
toolbox: {
|
|
3843
3850
|
show: e.toolboxShow,
|
|
@@ -3895,19 +3902,19 @@ const rr = Q({
|
|
|
3895
3902
|
const R = k.length;
|
|
3896
3903
|
let E = "", T = e.tooltipFormatter;
|
|
3897
3904
|
T === "" && (T = "{marker} {a} {c}");
|
|
3898
|
-
for (let
|
|
3899
|
-
const { marker: J, seriesName:
|
|
3900
|
-
|
|
3905
|
+
for (let j = 0; j < R; j++) {
|
|
3906
|
+
const { marker: J, seriesName: F, name: B, value: z, data: W } = k[j] || {};
|
|
3907
|
+
j === 0 && (E += `${B}<br/>`), E += de(
|
|
3901
3908
|
T,
|
|
3902
3909
|
{
|
|
3903
3910
|
textData: {
|
|
3904
3911
|
marker: J,
|
|
3905
|
-
name:
|
|
3912
|
+
name: B,
|
|
3906
3913
|
value: z,
|
|
3907
|
-
a:
|
|
3908
|
-
b:
|
|
3914
|
+
a: F,
|
|
3915
|
+
b: B,
|
|
3909
3916
|
c: z,
|
|
3910
|
-
...
|
|
3917
|
+
...W
|
|
3911
3918
|
}
|
|
3912
3919
|
},
|
|
3913
3920
|
{
|
|
@@ -3936,7 +3943,7 @@ const rr = Q({
|
|
|
3936
3943
|
},
|
|
3937
3944
|
xAxis: {
|
|
3938
3945
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
3939
|
-
data: e.isUseHorizontalAxis ? null : v(
|
|
3946
|
+
data: e.isUseHorizontalAxis ? null : v(i),
|
|
3940
3947
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
3941
3948
|
minInterval: e.xAxisMinInterval,
|
|
3942
3949
|
splitLine: {
|
|
@@ -3952,7 +3959,7 @@ const rr = Q({
|
|
|
3952
3959
|
width: e.xAxisLabelWidth,
|
|
3953
3960
|
overflow: e.xAxisLabelOverflow,
|
|
3954
3961
|
formatter(k) {
|
|
3955
|
-
return Ne(
|
|
3962
|
+
return Ne(m, k);
|
|
3956
3963
|
}
|
|
3957
3964
|
},
|
|
3958
3965
|
axisLine: {
|
|
@@ -3966,7 +3973,7 @@ const rr = Q({
|
|
|
3966
3973
|
},
|
|
3967
3974
|
yAxis: {
|
|
3968
3975
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
3969
|
-
data: e.isUseHorizontalAxis ? v(
|
|
3976
|
+
data: e.isUseHorizontalAxis ? v(i) : null,
|
|
3970
3977
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
3971
3978
|
minInterval: e.yAxisMinInterval,
|
|
3972
3979
|
splitLine: {
|
|
@@ -3990,46 +3997,46 @@ const rr = Q({
|
|
|
3990
3997
|
}
|
|
3991
3998
|
}
|
|
3992
3999
|
},
|
|
3993
|
-
series: v(
|
|
4000
|
+
series: v(r)
|
|
3994
4001
|
};
|
|
3995
|
-
}), { pageMode:
|
|
4002
|
+
}), { pageMode: b } = N(fe, {
|
|
3996
4003
|
pageMode: "normal"
|
|
3997
|
-
}),
|
|
4004
|
+
}), x = (c = [], m = !1) => {
|
|
3998
4005
|
let k = {};
|
|
3999
4006
|
if (e.dataFieldConfigType === "key") {
|
|
4000
|
-
const R =
|
|
4007
|
+
const R = m ? e.keyTypeDataFieldNames : null;
|
|
4001
4008
|
k = Ge(c, R);
|
|
4002
4009
|
} else if (e.dataFieldConfigType === "value") {
|
|
4003
|
-
const R =
|
|
4010
|
+
const R = m ? e.valueTypeDataFieldNames : null;
|
|
4004
4011
|
k = Qe(c, R);
|
|
4005
4012
|
}
|
|
4006
|
-
n.value = k.dataset,
|
|
4007
|
-
},
|
|
4008
|
-
const E = Ge(c, k ?
|
|
4009
|
-
n.value = E.dataset,
|
|
4013
|
+
n.value = k.dataset, i.value = k.dimensions;
|
|
4014
|
+
}, w = (c = [], m, k = !1) => {
|
|
4015
|
+
const E = Ge(c, k ? m : null);
|
|
4016
|
+
n.value = E.dataset, i.value = E.dimensions;
|
|
4010
4017
|
};
|
|
4011
4018
|
ne(() => e.data, (c) => {
|
|
4012
|
-
(e.dataType === "static" || v(
|
|
4019
|
+
(e.dataType === "static" || v(b) === "design") && x(c);
|
|
4013
4020
|
}, {
|
|
4014
4021
|
immediate: !0,
|
|
4015
4022
|
deep: !0
|
|
4016
4023
|
});
|
|
4017
4024
|
const d = _e(e), u = async () => {
|
|
4018
|
-
var c,
|
|
4025
|
+
var c, m;
|
|
4019
4026
|
try {
|
|
4020
4027
|
s.value = !0;
|
|
4021
4028
|
const k = await d();
|
|
4022
|
-
|
|
4029
|
+
x((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
|
|
4023
4030
|
} catch (k) {
|
|
4024
4031
|
console.error(k);
|
|
4025
4032
|
} finally {
|
|
4026
4033
|
s.value = !1;
|
|
4027
4034
|
}
|
|
4028
|
-
},
|
|
4035
|
+
}, h = ot(e), g = async () => {
|
|
4029
4036
|
var c;
|
|
4030
4037
|
try {
|
|
4031
4038
|
s.value = !0;
|
|
4032
|
-
const
|
|
4039
|
+
const m = await h(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
|
|
4033
4040
|
let E;
|
|
4034
4041
|
k.length > 0 && (E = {
|
|
4035
4042
|
name: k[0],
|
|
@@ -4037,17 +4044,17 @@ const rr = Q({
|
|
|
4037
4044
|
label: T,
|
|
4038
4045
|
value: T
|
|
4039
4046
|
}))
|
|
4040
|
-
}),
|
|
4041
|
-
} catch (
|
|
4042
|
-
console.error(
|
|
4047
|
+
}), w(R, E, !0);
|
|
4048
|
+
} catch (m) {
|
|
4049
|
+
console.error(m);
|
|
4043
4050
|
} finally {
|
|
4044
4051
|
s.value = !1;
|
|
4045
4052
|
}
|
|
4046
|
-
},
|
|
4047
|
-
if (v(
|
|
4053
|
+
}, y = () => {
|
|
4054
|
+
if (v(b) !== "design")
|
|
4048
4055
|
switch (e.dataType) {
|
|
4049
4056
|
case "indicator":
|
|
4050
|
-
|
|
4057
|
+
g();
|
|
4051
4058
|
break;
|
|
4052
4059
|
case "request":
|
|
4053
4060
|
u();
|
|
@@ -4055,40 +4062,40 @@ const rr = Q({
|
|
|
4055
4062
|
}
|
|
4056
4063
|
};
|
|
4057
4064
|
o({
|
|
4058
|
-
refreshData:
|
|
4065
|
+
refreshData: y
|
|
4059
4066
|
});
|
|
4060
|
-
const
|
|
4067
|
+
const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
|
|
4061
4068
|
// @ts-ignore
|
|
4062
4069
|
// eslint-disable-next-line no-void
|
|
4063
4070
|
getGlobalModel: (c) => {
|
|
4064
4071
|
},
|
|
4065
4072
|
// @ts-ignore
|
|
4066
4073
|
// eslint-disable-next-line no-void
|
|
4067
|
-
setGlobalModel: (c,
|
|
4074
|
+
setGlobalModel: (c, m) => {
|
|
4068
4075
|
}
|
|
4069
|
-
}),
|
|
4070
|
-
const
|
|
4071
|
-
|
|
4072
|
-
}), { setRequest:
|
|
4076
|
+
}), C = p("click", (c) => {
|
|
4077
|
+
const m = _(e.id);
|
|
4078
|
+
I(e.id, { ...m, RECORD: c.data });
|
|
4079
|
+
}), { setRequest: A } = N(Se, {
|
|
4073
4080
|
setRequest: (c) => {
|
|
4074
4081
|
}
|
|
4075
4082
|
});
|
|
4076
|
-
return typeof
|
|
4083
|
+
return typeof A == "function" && A({
|
|
4077
4084
|
id: e.id,
|
|
4078
|
-
requestFn:
|
|
4085
|
+
requestFn: y,
|
|
4079
4086
|
sortNum: e.requestSort
|
|
4080
4087
|
}), he(e, {
|
|
4081
|
-
refreshData:
|
|
4082
|
-
click:
|
|
4088
|
+
refreshData: y,
|
|
4089
|
+
click: C,
|
|
4083
4090
|
resetRecord: () => {
|
|
4084
|
-
const c = e.id,
|
|
4085
|
-
|
|
4091
|
+
const c = e.id, m = _(c);
|
|
4092
|
+
I(c, { ...m, RECORD: "" });
|
|
4086
4093
|
}
|
|
4087
4094
|
}), {
|
|
4088
4095
|
option: f,
|
|
4089
4096
|
style: t,
|
|
4090
|
-
refreshData:
|
|
4091
|
-
click:
|
|
4097
|
+
refreshData: y,
|
|
4098
|
+
click: C,
|
|
4092
4099
|
loading: s,
|
|
4093
4100
|
visible: a,
|
|
4094
4101
|
hideModal: l
|
|
@@ -4096,14 +4103,14 @@ const rr = Q({
|
|
|
4096
4103
|
}
|
|
4097
4104
|
});
|
|
4098
4105
|
function sr(e, o, t, n, a, l) {
|
|
4099
|
-
const
|
|
4100
|
-
return D(),
|
|
4106
|
+
const r = H("echarts"), i = H("spin"), s = H("a-modal");
|
|
4107
|
+
return D(), $("div", {
|
|
4101
4108
|
class: "ecan-bar",
|
|
4102
4109
|
style: U(e.style)
|
|
4103
4110
|
}, [
|
|
4104
|
-
|
|
4111
|
+
G(i, { spinning: e.loading }, {
|
|
4105
4112
|
default: Y(() => [
|
|
4106
|
-
|
|
4113
|
+
G(r, {
|
|
4107
4114
|
option: e.option,
|
|
4108
4115
|
"update-options": { notMerge: !0 },
|
|
4109
4116
|
autoresize: "",
|
|
@@ -4112,7 +4119,7 @@ function sr(e, o, t, n, a, l) {
|
|
|
4112
4119
|
]),
|
|
4113
4120
|
_: 1
|
|
4114
4121
|
}, 8, ["spinning"]),
|
|
4115
|
-
|
|
4122
|
+
G(s, {
|
|
4116
4123
|
"wrap-class-name": "full-modal",
|
|
4117
4124
|
width: "100%",
|
|
4118
4125
|
visible: e.visible,
|
|
@@ -4120,9 +4127,9 @@ function sr(e, o, t, n, a, l) {
|
|
|
4120
4127
|
onCancel: e.hideModal
|
|
4121
4128
|
}, {
|
|
4122
4129
|
default: Y(() => [
|
|
4123
|
-
|
|
4130
|
+
G(i, { spinning: e.loading }, {
|
|
4124
4131
|
default: Y(() => [
|
|
4125
|
-
|
|
4132
|
+
G(r, {
|
|
4126
4133
|
option: e.option,
|
|
4127
4134
|
"update-options": { notMerge: !0 },
|
|
4128
4135
|
autoresize: ""
|
|
@@ -4218,8 +4225,8 @@ const fr = Q({
|
|
|
4218
4225
|
setup(e) {
|
|
4219
4226
|
const o = re(e), t = M([]), n = M(!1), a = () => {
|
|
4220
4227
|
n.value = !1;
|
|
4221
|
-
}, l =
|
|
4222
|
-
const
|
|
4228
|
+
}, l = q(() => {
|
|
4229
|
+
const p = e.xAxisLabelFormatter, _ = e.yAxisLabelFormatter;
|
|
4223
4230
|
return {
|
|
4224
4231
|
toolbox: {
|
|
4225
4232
|
show: e.toolboxShow,
|
|
@@ -4284,8 +4291,8 @@ const fr = Q({
|
|
|
4284
4291
|
rotate: e.xAxisLabelRotate,
|
|
4285
4292
|
width: e.xAxisLabelWidth,
|
|
4286
4293
|
overflow: e.xAxisLabelOverflow,
|
|
4287
|
-
formatter(
|
|
4288
|
-
return Ne(
|
|
4294
|
+
formatter(I) {
|
|
4295
|
+
return Ne(p, I);
|
|
4289
4296
|
}
|
|
4290
4297
|
},
|
|
4291
4298
|
axisLine: {
|
|
@@ -4306,8 +4313,8 @@ const fr = Q({
|
|
|
4306
4313
|
},
|
|
4307
4314
|
axisLabel: {
|
|
4308
4315
|
color: e.yAxisLabelColor,
|
|
4309
|
-
formatter(
|
|
4310
|
-
return Ne(
|
|
4316
|
+
formatter(I) {
|
|
4317
|
+
return Ne(_, I);
|
|
4311
4318
|
}
|
|
4312
4319
|
},
|
|
4313
4320
|
axisLine: {
|
|
@@ -4320,17 +4327,17 @@ const fr = Q({
|
|
|
4320
4327
|
tooltip: {
|
|
4321
4328
|
show: e.tooltipShow,
|
|
4322
4329
|
trigger: e.tooltipTrigger,
|
|
4323
|
-
formatter: function(
|
|
4330
|
+
formatter: function(I) {
|
|
4324
4331
|
var k;
|
|
4325
|
-
const { marker:
|
|
4332
|
+
const { marker: C, seriesName: A } = I, S = ((k = I == null ? void 0 : I.data) == null ? void 0 : k.record) ?? {}, { name: c, value: m } = S;
|
|
4326
4333
|
return de(e.tooltipFormatter, {
|
|
4327
4334
|
textData: {
|
|
4328
|
-
marker:
|
|
4329
|
-
seriesName:
|
|
4330
|
-
a:
|
|
4335
|
+
marker: C,
|
|
4336
|
+
seriesName: A,
|
|
4337
|
+
a: A,
|
|
4331
4338
|
b: c,
|
|
4332
|
-
c:
|
|
4333
|
-
...
|
|
4339
|
+
c: m,
|
|
4340
|
+
...S
|
|
4334
4341
|
}
|
|
4335
4342
|
});
|
|
4336
4343
|
},
|
|
@@ -4353,80 +4360,80 @@ const fr = Q({
|
|
|
4353
4360
|
}
|
|
4354
4361
|
]
|
|
4355
4362
|
};
|
|
4356
|
-
}), { getGlobalModel:
|
|
4363
|
+
}), { getGlobalModel: r, setGlobalModel: i } = N(ye, {
|
|
4357
4364
|
// @ts-ignore
|
|
4358
4365
|
// eslint-disable-next-line no-void
|
|
4359
|
-
getGlobalModel: (
|
|
4366
|
+
getGlobalModel: (p) => {
|
|
4360
4367
|
},
|
|
4361
4368
|
// @ts-ignore
|
|
4362
4369
|
// eslint-disable-next-line no-void
|
|
4363
|
-
setGlobalModel: (
|
|
4370
|
+
setGlobalModel: (p, _) => {
|
|
4364
4371
|
}
|
|
4365
|
-
}), { pageMode: s } =
|
|
4372
|
+
}), { pageMode: s } = N(fe, {
|
|
4366
4373
|
pageMode: "normal"
|
|
4367
|
-
}), f = (
|
|
4368
|
-
const { name:
|
|
4369
|
-
t.value =
|
|
4374
|
+
}), f = (p = [], _) => {
|
|
4375
|
+
const { name: I = "name", value: C = "value" } = _ || {};
|
|
4376
|
+
t.value = p.map((A) => ({ value: [A[I], A[C]], record: A }));
|
|
4370
4377
|
};
|
|
4371
|
-
ne(() => e.data, (
|
|
4372
|
-
(e.dataType === "static" || v(s) === "design") && f(
|
|
4378
|
+
ne(() => e.data, (p) => {
|
|
4379
|
+
(e.dataType === "static" || v(s) === "design") && f(p);
|
|
4373
4380
|
}, {
|
|
4374
4381
|
immediate: !0,
|
|
4375
4382
|
deep: !0
|
|
4376
4383
|
});
|
|
4377
|
-
const
|
|
4378
|
-
var
|
|
4384
|
+
const b = M(!1), x = _e(e), w = async () => {
|
|
4385
|
+
var p, _;
|
|
4379
4386
|
if (!(e.dataType !== "request" || v(s) === "design")) {
|
|
4380
|
-
|
|
4387
|
+
b.value = !0;
|
|
4381
4388
|
try {
|
|
4382
|
-
const
|
|
4383
|
-
f((
|
|
4384
|
-
} catch (
|
|
4385
|
-
console.error(
|
|
4389
|
+
const I = await x();
|
|
4390
|
+
f((_ = (p = I == null ? void 0 : I.data) == null ? void 0 : p.data) == null ? void 0 : _.rows, e.dataFieldNames);
|
|
4391
|
+
} catch (I) {
|
|
4392
|
+
console.error(I);
|
|
4386
4393
|
} finally {
|
|
4387
|
-
|
|
4394
|
+
b.value = !1;
|
|
4388
4395
|
}
|
|
4389
4396
|
}
|
|
4390
|
-
}, u = me(e)("click", (
|
|
4391
|
-
const
|
|
4392
|
-
|
|
4397
|
+
}, u = me(e)("click", (p) => {
|
|
4398
|
+
const _ = e.id, I = r(_);
|
|
4399
|
+
i(_, { ...I, RECORD: p == null ? void 0 : p.data });
|
|
4393
4400
|
});
|
|
4394
4401
|
he(e, {
|
|
4395
4402
|
refreshData: () => {
|
|
4396
|
-
|
|
4403
|
+
w();
|
|
4397
4404
|
},
|
|
4398
4405
|
click: u,
|
|
4399
4406
|
resetRecord: () => {
|
|
4400
|
-
const
|
|
4401
|
-
|
|
4407
|
+
const p = e.id, _ = r(p);
|
|
4408
|
+
i(p, { ..._, RECORD: "" });
|
|
4402
4409
|
}
|
|
4403
4410
|
});
|
|
4404
|
-
const { setRequest:
|
|
4405
|
-
setRequest: (
|
|
4411
|
+
const { setRequest: y } = N(Se, {
|
|
4412
|
+
setRequest: (p) => {
|
|
4406
4413
|
}
|
|
4407
4414
|
});
|
|
4408
|
-
return typeof
|
|
4415
|
+
return typeof y == "function" && y({
|
|
4409
4416
|
id: e.id,
|
|
4410
|
-
requestFn:
|
|
4417
|
+
requestFn: w,
|
|
4411
4418
|
sortNum: e.requestSort
|
|
4412
4419
|
}), {
|
|
4413
4420
|
option: l,
|
|
4414
4421
|
style: o,
|
|
4415
4422
|
click: u,
|
|
4416
|
-
loading:
|
|
4423
|
+
loading: b,
|
|
4417
4424
|
visible: n,
|
|
4418
4425
|
hideModal: a
|
|
4419
4426
|
};
|
|
4420
4427
|
}
|
|
4421
4428
|
});
|
|
4422
4429
|
function mr(e, o, t, n, a, l) {
|
|
4423
|
-
const
|
|
4424
|
-
return D(),
|
|
4430
|
+
const r = H("echarts"), i = H("spin"), s = H("a-modal");
|
|
4431
|
+
return D(), $("div", {
|
|
4425
4432
|
style: U(e.style)
|
|
4426
4433
|
}, [
|
|
4427
|
-
|
|
4434
|
+
G(i, { spinning: e.loading }, {
|
|
4428
4435
|
default: Y(() => [
|
|
4429
|
-
|
|
4436
|
+
G(r, {
|
|
4430
4437
|
option: e.option,
|
|
4431
4438
|
autoresize: "",
|
|
4432
4439
|
onClick: e.click
|
|
@@ -4434,7 +4441,7 @@ function mr(e, o, t, n, a, l) {
|
|
|
4434
4441
|
]),
|
|
4435
4442
|
_: 1
|
|
4436
4443
|
}, 8, ["spinning"]),
|
|
4437
|
-
|
|
4444
|
+
G(s, {
|
|
4438
4445
|
"wrap-class-name": "full-modal",
|
|
4439
4446
|
width: "100%",
|
|
4440
4447
|
visible: e.visible,
|
|
@@ -4442,9 +4449,9 @@ function mr(e, o, t, n, a, l) {
|
|
|
4442
4449
|
onCancel: e.hideModal
|
|
4443
4450
|
}, {
|
|
4444
4451
|
default: Y(() => [
|
|
4445
|
-
|
|
4452
|
+
G(i, { spinning: e.loading }, {
|
|
4446
4453
|
default: Y(() => [
|
|
4447
|
-
|
|
4454
|
+
G(r, {
|
|
4448
4455
|
option: e.option,
|
|
4449
4456
|
"update-options": { notMerge: !0 },
|
|
4450
4457
|
autoresize: ""
|
|
@@ -4494,11 +4501,11 @@ const gr = /* @__PURE__ */ K(fr, [["render", mr]]), hr = ae(gr), mn = {
|
|
|
4494
4501
|
}
|
|
4495
4502
|
});
|
|
4496
4503
|
function br(e, o, t, n, a, l) {
|
|
4497
|
-
const
|
|
4498
|
-
return D(),
|
|
4504
|
+
const r = H("echarts");
|
|
4505
|
+
return D(), $("div", {
|
|
4499
4506
|
style: U(e.style)
|
|
4500
4507
|
}, [
|
|
4501
|
-
|
|
4508
|
+
G(r, {
|
|
4502
4509
|
option: e.myOption,
|
|
4503
4510
|
"update-options": { notMerge: !0 },
|
|
4504
4511
|
autoresize: ""
|
|
@@ -4637,9 +4644,9 @@ const Sr = Q({
|
|
|
4637
4644
|
AModal: Ae
|
|
4638
4645
|
},
|
|
4639
4646
|
setup(e, { expose: o }) {
|
|
4640
|
-
const t = re(e), n = M([]), a = M([]), l = M(!1),
|
|
4647
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), r = () => {
|
|
4641
4648
|
l.value = !1;
|
|
4642
|
-
},
|
|
4649
|
+
}, i = q(() => ({
|
|
4643
4650
|
title: {
|
|
4644
4651
|
text: e.titleText,
|
|
4645
4652
|
subtext: e.titleSubtext,
|
|
@@ -4702,24 +4709,24 @@ const Sr = Q({
|
|
|
4702
4709
|
trigger: "axis",
|
|
4703
4710
|
show: e.tooltipShow,
|
|
4704
4711
|
formatter: (c) => {
|
|
4705
|
-
const
|
|
4712
|
+
const m = c.length;
|
|
4706
4713
|
let k = "", R = e.tooltipFormatter;
|
|
4707
4714
|
R === "" && (R = "{marker} {a} {c}");
|
|
4708
4715
|
const E = e.seriesTypes;
|
|
4709
|
-
for (let T = 0; T <
|
|
4710
|
-
const
|
|
4716
|
+
for (let T = 0; T < m; T++) {
|
|
4717
|
+
const j = E[T], { tooltipFormatter: J } = j || {}, { marker: F, seriesName: B, name: z, value: W, data: X } = c[T] || {};
|
|
4711
4718
|
T === 0 && (k += `${z}<br/>`), k += de(
|
|
4712
4719
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4713
4720
|
J || R,
|
|
4714
4721
|
{
|
|
4715
4722
|
textData: {
|
|
4716
|
-
marker:
|
|
4723
|
+
marker: F,
|
|
4717
4724
|
name: z,
|
|
4718
|
-
value:
|
|
4719
|
-
seriesName:
|
|
4720
|
-
a:
|
|
4725
|
+
value: W,
|
|
4726
|
+
seriesName: B,
|
|
4727
|
+
a: B,
|
|
4721
4728
|
b: z,
|
|
4722
|
-
c:
|
|
4729
|
+
c: W,
|
|
4723
4730
|
...X
|
|
4724
4731
|
}
|
|
4725
4732
|
},
|
|
@@ -4761,30 +4768,30 @@ const Sr = Q({
|
|
|
4761
4768
|
show: e.xAxisTickShow
|
|
4762
4769
|
}
|
|
4763
4770
|
},
|
|
4764
|
-
yAxis: v(
|
|
4771
|
+
yAxis: v(x),
|
|
4765
4772
|
series: v(n)
|
|
4766
|
-
})), { pageMode: s } =
|
|
4773
|
+
})), { pageMode: s } = N(fe, {
|
|
4767
4774
|
pageMode: "normal"
|
|
4768
|
-
}), f = (c = [],
|
|
4775
|
+
}), f = (c = [], m = !1) => {
|
|
4769
4776
|
let k;
|
|
4770
4777
|
if (e.dataFieldConfigType === "key") {
|
|
4771
|
-
const J =
|
|
4778
|
+
const J = m ? e.keyTypeDataFieldNames : null;
|
|
4772
4779
|
k = Ge(c, J);
|
|
4773
4780
|
} else if (e.dataFieldConfigType === "value") {
|
|
4774
|
-
const J =
|
|
4781
|
+
const J = m ? e.valueTypeDataFieldNames : null;
|
|
4775
4782
|
k = Qe(c, J);
|
|
4776
4783
|
}
|
|
4777
4784
|
a.value = k.dimensions;
|
|
4778
|
-
const R = k.dataset, E = [], T = R.length,
|
|
4785
|
+
const R = k.dataset, E = [], T = R.length, j = e.seriesTypes;
|
|
4779
4786
|
for (let J = 0; J < T; J++) {
|
|
4780
|
-
const
|
|
4781
|
-
let
|
|
4782
|
-
type:
|
|
4787
|
+
const F = j[J], { type: B, axisIndex: z } = F || {};
|
|
4788
|
+
let W = {
|
|
4789
|
+
type: B,
|
|
4783
4790
|
yAxisIndex: z,
|
|
4784
4791
|
...R[J]
|
|
4785
4792
|
};
|
|
4786
|
-
|
|
4787
|
-
...
|
|
4793
|
+
B === "line" && (W = {
|
|
4794
|
+
...W,
|
|
4788
4795
|
symbolSize: e.symbolSize,
|
|
4789
4796
|
smooth: e.smooth,
|
|
4790
4797
|
areaStyle: {
|
|
@@ -4793,25 +4800,25 @@ const Sr = Q({
|
|
|
4793
4800
|
lineStyle: {
|
|
4794
4801
|
width: e.lineStyleWidth
|
|
4795
4802
|
}
|
|
4796
|
-
}),
|
|
4797
|
-
...
|
|
4803
|
+
}), B === "bar" && (W = {
|
|
4804
|
+
...W,
|
|
4798
4805
|
barWidth: e.barWidth
|
|
4799
|
-
}), E.push(
|
|
4806
|
+
}), E.push(W);
|
|
4800
4807
|
}
|
|
4801
4808
|
n.value = E;
|
|
4802
|
-
},
|
|
4803
|
-
const E = Ge(c, k ?
|
|
4809
|
+
}, b = (c = [], m, k = !1) => {
|
|
4810
|
+
const E = Ge(c, k ? m : null);
|
|
4804
4811
|
a.value = E.dimensions;
|
|
4805
|
-
const T = E.dataset,
|
|
4806
|
-
for (let
|
|
4807
|
-
const z =
|
|
4808
|
-
|
|
4812
|
+
const T = E.dataset, j = [], J = T.length, F = e.seriesTypes;
|
|
4813
|
+
for (let B = 0; B < J; B++) {
|
|
4814
|
+
const z = F[B];
|
|
4815
|
+
j.push({
|
|
4809
4816
|
type: z == null ? void 0 : z.type,
|
|
4810
4817
|
yAxisIndex: z == null ? void 0 : z.axisIndex,
|
|
4811
|
-
...T[
|
|
4818
|
+
...T[B]
|
|
4812
4819
|
});
|
|
4813
4820
|
}
|
|
4814
|
-
n.value =
|
|
4821
|
+
n.value = j;
|
|
4815
4822
|
};
|
|
4816
4823
|
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([c]) => {
|
|
4817
4824
|
(e.dataType === "static" || v(s) === "design") && f(c);
|
|
@@ -4819,9 +4826,9 @@ const Sr = Q({
|
|
|
4819
4826
|
immediate: !0,
|
|
4820
4827
|
deep: !0
|
|
4821
4828
|
});
|
|
4822
|
-
const
|
|
4829
|
+
const x = q(() => {
|
|
4823
4830
|
const c = e.yAxis;
|
|
4824
|
-
return c == null ? void 0 : c.map((
|
|
4831
|
+
return c == null ? void 0 : c.map((m) => ({
|
|
4825
4832
|
type: "value",
|
|
4826
4833
|
minInterval: e.yAxisMinInterval,
|
|
4827
4834
|
splitLine: {
|
|
@@ -4833,7 +4840,7 @@ const Sr = Q({
|
|
|
4833
4840
|
axisLabel: {
|
|
4834
4841
|
color: e.yAxisLabelColor,
|
|
4835
4842
|
formatter(k) {
|
|
4836
|
-
return Ne(
|
|
4843
|
+
return Ne(m.axisLabelFormatter, k);
|
|
4837
4844
|
}
|
|
4838
4845
|
},
|
|
4839
4846
|
axisLine: {
|
|
@@ -4842,23 +4849,23 @@ const Sr = Q({
|
|
|
4842
4849
|
}
|
|
4843
4850
|
}
|
|
4844
4851
|
}));
|
|
4845
|
-
}),
|
|
4846
|
-
var c,
|
|
4852
|
+
}), w = M(!1), d = _e(e), u = async () => {
|
|
4853
|
+
var c, m;
|
|
4847
4854
|
if (!(e.dataType !== "request" || v(s) === "design"))
|
|
4848
4855
|
try {
|
|
4849
|
-
|
|
4856
|
+
w.value = !0;
|
|
4850
4857
|
const k = await d();
|
|
4851
|
-
f((
|
|
4858
|
+
f((m = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : m.rows, !0);
|
|
4852
4859
|
} catch (k) {
|
|
4853
4860
|
console.error(k);
|
|
4854
4861
|
} finally {
|
|
4855
|
-
|
|
4862
|
+
w.value = !1;
|
|
4856
4863
|
}
|
|
4857
|
-
},
|
|
4864
|
+
}, h = ot(e), g = async () => {
|
|
4858
4865
|
var c;
|
|
4859
4866
|
try {
|
|
4860
|
-
|
|
4861
|
-
const
|
|
4867
|
+
w.value = !0;
|
|
4868
|
+
const m = await h(), { columns: k = [], rows: R = [] } = ((c = m == null ? void 0 : m.data) == null ? void 0 : c.data) ?? {};
|
|
4862
4869
|
let E;
|
|
4863
4870
|
k.length > 0 && (E = {
|
|
4864
4871
|
name: k[0],
|
|
@@ -4866,17 +4873,17 @@ const Sr = Q({
|
|
|
4866
4873
|
label: T,
|
|
4867
4874
|
value: T
|
|
4868
4875
|
}))
|
|
4869
|
-
}),
|
|
4870
|
-
} catch (
|
|
4871
|
-
console.error(
|
|
4876
|
+
}), b(R, E, !0);
|
|
4877
|
+
} catch (m) {
|
|
4878
|
+
console.error(m);
|
|
4872
4879
|
} finally {
|
|
4873
|
-
|
|
4880
|
+
w.value = !1;
|
|
4874
4881
|
}
|
|
4875
|
-
},
|
|
4882
|
+
}, y = () => {
|
|
4876
4883
|
if (v(s) !== "design")
|
|
4877
4884
|
switch (e.dataType) {
|
|
4878
4885
|
case "indicator":
|
|
4879
|
-
|
|
4886
|
+
g();
|
|
4880
4887
|
break;
|
|
4881
4888
|
case "request":
|
|
4882
4889
|
u();
|
|
@@ -4884,53 +4891,53 @@ const Sr = Q({
|
|
|
4884
4891
|
}
|
|
4885
4892
|
};
|
|
4886
4893
|
o({
|
|
4887
|
-
refreshData:
|
|
4894
|
+
refreshData: y
|
|
4888
4895
|
});
|
|
4889
|
-
const
|
|
4896
|
+
const p = me(e), { getGlobalModel: _, setGlobalModel: I } = N(ye, {
|
|
4890
4897
|
// @ts-ignore
|
|
4891
4898
|
// eslint-disable-next-line no-void
|
|
4892
4899
|
getGlobalModel: (c) => {
|
|
4893
4900
|
},
|
|
4894
4901
|
// @ts-ignore
|
|
4895
4902
|
// eslint-disable-next-line no-void
|
|
4896
|
-
setGlobalModel: (c,
|
|
4903
|
+
setGlobalModel: (c, m) => {
|
|
4897
4904
|
}
|
|
4898
|
-
}),
|
|
4899
|
-
const
|
|
4900
|
-
|
|
4901
|
-
}), { setRequest:
|
|
4905
|
+
}), C = p("click", (c) => {
|
|
4906
|
+
const m = _(e.id);
|
|
4907
|
+
I(e.id, { ...m, RECORD: c == null ? void 0 : c.data });
|
|
4908
|
+
}), { setRequest: A } = N(Se, {
|
|
4902
4909
|
setRequest: (c) => {
|
|
4903
4910
|
}
|
|
4904
4911
|
});
|
|
4905
|
-
return typeof
|
|
4912
|
+
return typeof A == "function" && A({
|
|
4906
4913
|
id: e.id,
|
|
4907
|
-
requestFn:
|
|
4914
|
+
requestFn: y,
|
|
4908
4915
|
sortNum: e.requestSort
|
|
4909
4916
|
}), he(e, {
|
|
4910
4917
|
resetRecord: () => {
|
|
4911
|
-
const c = e.id,
|
|
4912
|
-
|
|
4918
|
+
const c = e.id, m = _(c);
|
|
4919
|
+
I(c, { ...m, RECORD: "" });
|
|
4913
4920
|
},
|
|
4914
|
-
refreshData:
|
|
4915
|
-
click:
|
|
4921
|
+
refreshData: y,
|
|
4922
|
+
click: C
|
|
4916
4923
|
}), {
|
|
4917
4924
|
style: t,
|
|
4918
|
-
option:
|
|
4919
|
-
click:
|
|
4920
|
-
loading:
|
|
4925
|
+
option: i,
|
|
4926
|
+
click: C,
|
|
4927
|
+
loading: w,
|
|
4921
4928
|
visible: l,
|
|
4922
|
-
hideModal:
|
|
4929
|
+
hideModal: r
|
|
4923
4930
|
};
|
|
4924
4931
|
}
|
|
4925
4932
|
});
|
|
4926
4933
|
function wr(e, o, t, n, a, l) {
|
|
4927
|
-
const
|
|
4928
|
-
return D(),
|
|
4934
|
+
const r = H("echarts"), i = H("spin"), s = H("a-modal");
|
|
4935
|
+
return D(), $("div", {
|
|
4929
4936
|
style: U(e.style)
|
|
4930
4937
|
}, [
|
|
4931
|
-
|
|
4938
|
+
G(i, { spinning: e.loading }, {
|
|
4932
4939
|
default: Y(() => [
|
|
4933
|
-
|
|
4940
|
+
G(r, {
|
|
4934
4941
|
option: e.option,
|
|
4935
4942
|
"update-options": { notMerge: !0 },
|
|
4936
4943
|
autoresize: "",
|
|
@@ -4939,7 +4946,7 @@ function wr(e, o, t, n, a, l) {
|
|
|
4939
4946
|
]),
|
|
4940
4947
|
_: 1
|
|
4941
4948
|
}, 8, ["spinning"]),
|
|
4942
|
-
|
|
4949
|
+
G(s, {
|
|
4943
4950
|
"wrap-class-name": "full-modal",
|
|
4944
4951
|
width: "100%",
|
|
4945
4952
|
visible: e.visible,
|
|
@@ -4947,9 +4954,9 @@ function wr(e, o, t, n, a, l) {
|
|
|
4947
4954
|
onCancel: e.hideModal
|
|
4948
4955
|
}, {
|
|
4949
4956
|
default: Y(() => [
|
|
4950
|
-
|
|
4957
|
+
G(i, { spinning: e.loading }, {
|
|
4951
4958
|
default: Y(() => [
|
|
4952
|
-
|
|
4959
|
+
G(r, {
|
|
4953
4960
|
option: e.option,
|
|
4954
4961
|
"update-options": { notMerge: !0 },
|
|
4955
4962
|
autoresize: "",
|
|
@@ -4990,9 +4997,9 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
4990
4997
|
...vn
|
|
4991
4998
|
},
|
|
4992
4999
|
setup(e) {
|
|
4993
|
-
const o = re(e, ["background"]), { theme: t } =
|
|
5000
|
+
const o = re(e, ["background"]), { theme: t } = N(fe, {
|
|
4994
5001
|
theme: "light"
|
|
4995
|
-
}), n =
|
|
5002
|
+
}), n = q(() => ({
|
|
4996
5003
|
// borderWidth: props.borderWidth,
|
|
4997
5004
|
// borderStyle: props.borderStyle,
|
|
4998
5005
|
// borderRadius: props.borderRadius,
|
|
@@ -5001,24 +5008,24 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
5001
5008
|
width: "100%",
|
|
5002
5009
|
height: "100%"
|
|
5003
5010
|
})), l = me(e)("click", () => {
|
|
5004
|
-
}),
|
|
5011
|
+
}), r = M([]);
|
|
5005
5012
|
ne(() => e.data, (s) => {
|
|
5006
|
-
|
|
5013
|
+
r.value = s;
|
|
5007
5014
|
}, {
|
|
5008
5015
|
immediate: !0,
|
|
5009
5016
|
deep: !0
|
|
5010
5017
|
}), he(e, {
|
|
5011
5018
|
click: l
|
|
5012
5019
|
});
|
|
5013
|
-
const { setGlobalModel:
|
|
5020
|
+
const { setGlobalModel: i } = N(ye, {
|
|
5014
5021
|
// @ts-ignore
|
|
5015
5022
|
// eslint-disable-next-line no-void
|
|
5016
5023
|
setGlobalModel: (s, f) => {
|
|
5017
5024
|
}
|
|
5018
5025
|
});
|
|
5019
|
-
return
|
|
5026
|
+
return i(e.id, {
|
|
5020
5027
|
type: e.type,
|
|
5021
|
-
value:
|
|
5028
|
+
value: r
|
|
5022
5029
|
}), {
|
|
5023
5030
|
style: o,
|
|
5024
5031
|
click: l,
|
|
@@ -5038,24 +5045,24 @@ const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), Ir = /* @__PURE__ *
|
|
|
5038
5045
|
class: "left-title"
|
|
5039
5046
|
}, qr = { class: "title" };
|
|
5040
5047
|
function jr(e, o, t, n, a, l) {
|
|
5041
|
-
return D(),
|
|
5048
|
+
return D(), $("div", {
|
|
5042
5049
|
class: "ecan-border",
|
|
5043
5050
|
style: U(e.style),
|
|
5044
|
-
onClick: o[0] || (o[0] = (...
|
|
5051
|
+
onClick: o[0] || (o[0] = (...r) => e.click && e.click(...r))
|
|
5045
5052
|
}, [
|
|
5046
|
-
e.mode === "no-title" ? (D(),
|
|
5053
|
+
e.mode === "no-title" ? (D(), $("div", {
|
|
5047
5054
|
key: 0,
|
|
5048
5055
|
class: "no-title",
|
|
5049
5056
|
style: U(e.borderStyle)
|
|
5050
5057
|
}, [
|
|
5051
|
-
e.useBorderModify ? (D(),
|
|
5058
|
+
e.useBorderModify ? (D(), $(Me, { key: 0 }, [
|
|
5052
5059
|
Ir,
|
|
5053
5060
|
Mr,
|
|
5054
5061
|
Er,
|
|
5055
5062
|
Dr
|
|
5056
5063
|
], 64)) : ve("", !0)
|
|
5057
5064
|
], 4)) : ve("", !0),
|
|
5058
|
-
e.mode === "top-title" ? (D(),
|
|
5065
|
+
e.mode === "top-title" ? (D(), $("div", {
|
|
5059
5066
|
key: 1,
|
|
5060
5067
|
class: "top-title",
|
|
5061
5068
|
style: U(e.borderStyle)
|
|
@@ -5072,7 +5079,7 @@ function jr(e, o, t, n, a, l) {
|
|
|
5072
5079
|
Br,
|
|
5073
5080
|
Ur
|
|
5074
5081
|
], 4)) : ve("", !0),
|
|
5075
|
-
e.mode === "left-title" ? (D(),
|
|
5082
|
+
e.mode === "left-title" ? (D(), $("div", Gr, [
|
|
5076
5083
|
ee("div", qr, [
|
|
5077
5084
|
ee("span", null, be(e.title), 1)
|
|
5078
5085
|
])
|
|
@@ -5106,7 +5113,7 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5106
5113
|
...Cn
|
|
5107
5114
|
},
|
|
5108
5115
|
setup(e) {
|
|
5109
|
-
const o = () => document.getElementById("ProviderConfig") || document.body, t =
|
|
5116
|
+
const o = () => document.getElementById("ProviderConfig") || document.body, t = q(() => {
|
|
5110
5117
|
const z = e.position;
|
|
5111
5118
|
return {
|
|
5112
5119
|
verticalAlign: {
|
|
@@ -5116,89 +5123,89 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5116
5123
|
bottom: "bottom"
|
|
5117
5124
|
}[z]
|
|
5118
5125
|
};
|
|
5119
|
-
}), n = e.width, a = e.height, l = e.originalWidth,
|
|
5120
|
-
let
|
|
5121
|
-
const
|
|
5126
|
+
}), n = e.width, a = e.height, l = e.originalWidth, r = e.originalHeight, i = M("80%"), s = M(0), f = M(), b = M(0), x = M({}), w = re(e), d = M({}), u = M(!1), h = M();
|
|
5127
|
+
let g;
|
|
5128
|
+
const y = () => {
|
|
5122
5129
|
f.value = parseFloat(n) / parseFloat(l);
|
|
5123
|
-
const z = parseFloat(a) / parseFloat(
|
|
5124
|
-
s.value =
|
|
5130
|
+
const z = parseFloat(a) / parseFloat(r), W = document.body.offsetWidth, X = document.body.offsetHeight;
|
|
5131
|
+
s.value = W * v(f), b.value = X * z, i.value = `${v(f) * 100}%`, x.value = {
|
|
5125
5132
|
width: `${v(s)}px`,
|
|
5126
|
-
height: `${v(
|
|
5133
|
+
height: `${v(b)}px`
|
|
5127
5134
|
}, d.value = {
|
|
5128
|
-
...v(
|
|
5135
|
+
...v(w),
|
|
5129
5136
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
5130
|
-
transform: `scale(${v(s) / parseFloat(n)},${v(
|
|
5137
|
+
transform: `scale(${v(s) / parseFloat(n)},${v(b) / parseFloat(a)})`
|
|
5131
5138
|
};
|
|
5132
|
-
},
|
|
5133
|
-
|
|
5134
|
-
}, 100),
|
|
5139
|
+
}, p = Rt(() => {
|
|
5140
|
+
y();
|
|
5141
|
+
}, 100), _ = () => {
|
|
5135
5142
|
const z = window.MutationObserver;
|
|
5136
|
-
|
|
5143
|
+
g = new z(p), g.observe(document.body, {
|
|
5137
5144
|
attributes: !0,
|
|
5138
5145
|
attributeFilter: ["style"],
|
|
5139
5146
|
attributeOldValue: !0
|
|
5140
5147
|
});
|
|
5141
|
-
},
|
|
5142
|
-
|
|
5143
|
-
},
|
|
5148
|
+
}, I = () => {
|
|
5149
|
+
g && (g.disconnect(), g.takeRecords(), g = null);
|
|
5150
|
+
}, C = M(!1), { touchRequest: A } = N(Se, {
|
|
5144
5151
|
// @ts-ignore
|
|
5145
5152
|
// eslint-disable-next-line no-void
|
|
5146
5153
|
touchRequest: () => {
|
|
5147
5154
|
}
|
|
5148
|
-
}),
|
|
5149
|
-
|
|
5155
|
+
}), S = () => {
|
|
5156
|
+
C.value = !0;
|
|
5150
5157
|
}, c = () => {
|
|
5151
|
-
|
|
5152
|
-
},
|
|
5158
|
+
C.value = !1;
|
|
5159
|
+
}, m = () => {
|
|
5153
5160
|
c();
|
|
5154
5161
|
}, k = () => {
|
|
5155
5162
|
c();
|
|
5156
|
-
}, { setModalModel: R, pushUseModalIds: E, popUseModalIds: T } =
|
|
5163
|
+
}, { setModalModel: R, pushUseModalIds: E, popUseModalIds: T } = N(Oo, {
|
|
5157
5164
|
pushUseModalIds: (z) => {
|
|
5158
5165
|
},
|
|
5159
5166
|
popUseModalIds: () => {
|
|
5160
5167
|
},
|
|
5161
|
-
setModalModel: (z,
|
|
5168
|
+
setModalModel: (z, W) => {
|
|
5162
5169
|
}
|
|
5163
|
-
}),
|
|
5170
|
+
}), j = () => {
|
|
5164
5171
|
const z = e.id;
|
|
5165
|
-
let
|
|
5172
|
+
let W = [];
|
|
5166
5173
|
const X = e.componentList;
|
|
5167
|
-
console.log("componentList", X), Array.isArray(X) && (
|
|
5174
|
+
console.log("componentList", X), Array.isArray(X) && (W = X.map((ie) => ie.id), R(z, [...new Set(W)]));
|
|
5168
5175
|
};
|
|
5169
|
-
ne(() =>
|
|
5170
|
-
z ? (u.value = !1, E(e.id),
|
|
5171
|
-
|
|
5172
|
-
}),
|
|
5176
|
+
ne(() => C.value, async (z) => {
|
|
5177
|
+
z ? (u.value = !1, E(e.id), j(), await mt(() => {
|
|
5178
|
+
y(), window.addEventListener("resize", p), _(), u.value = !0;
|
|
5179
|
+
}), A()) : (T(), window.removeEventListener("resize", p), I());
|
|
5173
5180
|
});
|
|
5174
|
-
const J =
|
|
5181
|
+
const J = q(() => v(f) >= 1), F = q(() => e.fullModal), B = q(() => {
|
|
5175
5182
|
let z = "ecan-modal";
|
|
5176
|
-
return v(J) && (z += " ecan-full-width-modal"), v(
|
|
5183
|
+
return v(J) && (z += " ecan-full-width-modal"), v(F) && (z += " ecan-full-modal"), z;
|
|
5177
5184
|
});
|
|
5178
5185
|
return he(e, {
|
|
5179
|
-
showModal:
|
|
5186
|
+
showModal: S
|
|
5180
5187
|
}), {
|
|
5181
|
-
modalRef:
|
|
5182
|
-
containStyle:
|
|
5188
|
+
modalRef: h,
|
|
5189
|
+
containStyle: x,
|
|
5183
5190
|
contentStyle: d,
|
|
5184
5191
|
getContainer: o,
|
|
5185
5192
|
modalStyle: t,
|
|
5186
|
-
modalWith:
|
|
5187
|
-
isFullModal:
|
|
5188
|
-
style:
|
|
5189
|
-
visible:
|
|
5190
|
-
showModal:
|
|
5191
|
-
onOk:
|
|
5193
|
+
modalWith: i,
|
|
5194
|
+
isFullModal: F,
|
|
5195
|
+
style: w,
|
|
5196
|
+
visible: C,
|
|
5197
|
+
showModal: S,
|
|
5198
|
+
onOk: m,
|
|
5192
5199
|
onCancel: k,
|
|
5193
5200
|
isFullWidth: J,
|
|
5194
|
-
wrapClassName:
|
|
5201
|
+
wrapClassName: B,
|
|
5195
5202
|
ready: u
|
|
5196
5203
|
};
|
|
5197
5204
|
}
|
|
5198
5205
|
});
|
|
5199
5206
|
function Jr(e, o, t, n, a, l) {
|
|
5200
|
-
const
|
|
5201
|
-
return D(), Re(
|
|
5207
|
+
const r = H("a-modal");
|
|
5208
|
+
return D(), Re(r, {
|
|
5202
5209
|
getContainer: e.getContainer,
|
|
5203
5210
|
wrapClassName: e.wrapClassName,
|
|
5204
5211
|
centered: "",
|
|
@@ -5217,14 +5224,14 @@ function Jr(e, o, t, n, a, l) {
|
|
|
5217
5224
|
ref: "containRef",
|
|
5218
5225
|
style: U(e.containStyle)
|
|
5219
5226
|
}, [
|
|
5220
|
-
e.ready ? (D(),
|
|
5227
|
+
e.ready ? (D(), $("div", {
|
|
5221
5228
|
key: 0,
|
|
5222
5229
|
class: "content",
|
|
5223
5230
|
style: U(e.contentStyle)
|
|
5224
5231
|
}, [
|
|
5225
|
-
(D(!0),
|
|
5226
|
-
key:
|
|
5227
|
-
},
|
|
5232
|
+
(D(!0), $(Me, null, De(e.componentList, (i, s) => (D(), Re(Fn(i.type), zn({
|
|
5233
|
+
key: i.id + s
|
|
5234
|
+
}, i), null, 16))), 128))
|
|
5228
5235
|
], 4)) : ve("", !0)
|
|
5229
5236
|
], 4)
|
|
5230
5237
|
]),
|
|
@@ -5292,61 +5299,61 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5292
5299
|
}, {
|
|
5293
5300
|
immediate: !0
|
|
5294
5301
|
});
|
|
5295
|
-
const { pageMode: n } =
|
|
5302
|
+
const { pageMode: n } = N(fe, {
|
|
5296
5303
|
pageMode: "normal"
|
|
5297
5304
|
});
|
|
5298
5305
|
let a = null;
|
|
5299
5306
|
const l = () => {
|
|
5300
|
-
const d = Array.isArray(v(
|
|
5307
|
+
const d = Array.isArray(v(r)) ? v(r).length - 1 : 0;
|
|
5301
5308
|
e.autoSwitch && d > 0 && (a = setInterval(() => {
|
|
5302
5309
|
const u = v(t) + 1;
|
|
5303
|
-
u <= d ? t.value = u : t.value = 0,
|
|
5310
|
+
u <= d ? t.value = u : t.value = 0, i.value = v(r)[v(t)], x();
|
|
5304
5311
|
}, e.autoSwitchInterval * 1e3));
|
|
5305
5312
|
};
|
|
5306
5313
|
Ue(() => {
|
|
5307
5314
|
v(n) !== "design" && l();
|
|
5308
|
-
}),
|
|
5315
|
+
}), Tt(() => {
|
|
5309
5316
|
clearInterval(a);
|
|
5310
5317
|
});
|
|
5311
|
-
const
|
|
5318
|
+
const r = M([]), i = M({});
|
|
5312
5319
|
ne(() => e.data, (d) => {
|
|
5313
|
-
|
|
5320
|
+
r.value = d, i.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
|
|
5314
5321
|
}, {
|
|
5315
5322
|
immediate: !0,
|
|
5316
5323
|
deep: !0
|
|
5317
5324
|
});
|
|
5318
|
-
const s = (d) => t.value === d, f = me(e), { setGlobalModel:
|
|
5325
|
+
const s = (d) => t.value === d, f = me(e), { setGlobalModel: b } = N(ye, {
|
|
5319
5326
|
// @ts-ignore
|
|
5320
5327
|
// eslint-disable-next-line no-void
|
|
5321
5328
|
setGlobalModel: (d, u) => {
|
|
5322
5329
|
}
|
|
5323
5330
|
});
|
|
5324
|
-
|
|
5325
|
-
value:
|
|
5331
|
+
b(e.id, {
|
|
5332
|
+
value: i,
|
|
5326
5333
|
activeKey: t
|
|
5327
5334
|
});
|
|
5328
|
-
const { emitRefreshPage:
|
|
5335
|
+
const { emitRefreshPage: x } = N(Je, {
|
|
5329
5336
|
// eslint-disable-next-line no-void
|
|
5330
5337
|
emitRefreshPage: () => {
|
|
5331
5338
|
}
|
|
5332
|
-
}),
|
|
5333
|
-
u !== v(t) && (
|
|
5339
|
+
}), w = f("tabChange", (d, u) => {
|
|
5340
|
+
u !== v(t) && (i.value = d, t.value = u, x());
|
|
5334
5341
|
});
|
|
5335
5342
|
return he(e, {
|
|
5336
|
-
tabChange:
|
|
5343
|
+
tabChange: w
|
|
5337
5344
|
}), {
|
|
5338
5345
|
style: o,
|
|
5339
5346
|
activeKey: t,
|
|
5340
5347
|
isActive: s,
|
|
5341
|
-
tabChange:
|
|
5342
|
-
myData:
|
|
5348
|
+
tabChange: w,
|
|
5349
|
+
myData: r,
|
|
5343
5350
|
useImagePath: $e
|
|
5344
5351
|
};
|
|
5345
5352
|
}
|
|
5346
5353
|
});
|
|
5347
5354
|
const es = ["onClick"];
|
|
5348
5355
|
function ts(e, o, t, n, a, l) {
|
|
5349
|
-
return D(),
|
|
5356
|
+
return D(), $("div", {
|
|
5350
5357
|
class: "ecan-tabs",
|
|
5351
5358
|
style: U(e.style)
|
|
5352
5359
|
}, [
|
|
@@ -5359,25 +5366,25 @@ function ts(e, o, t, n, a, l) {
|
|
|
5359
5366
|
flexDirection: e.tabFlexDirection
|
|
5360
5367
|
})
|
|
5361
5368
|
}, [
|
|
5362
|
-
(D(!0),
|
|
5369
|
+
(D(!0), $(Me, null, De(e.myData, (r, i) => (D(), $("div", {
|
|
5363
5370
|
class: "tab",
|
|
5364
5371
|
style: U({
|
|
5365
5372
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
5366
|
-
color: e.isActive(
|
|
5367
|
-
backgroundImage: e.isActive(
|
|
5373
|
+
color: e.isActive(i) ? e.activeTabColor : e.tabColor,
|
|
5374
|
+
backgroundImage: e.isActive(i) ? e.useImagePath(e.activeTabBackgroundImage, !0) : e.useImagePath(e.tabBackgroundImage, !0),
|
|
5368
5375
|
marginRight: e.tabFlexDirection === "row" ? e.tabBarGutter : null,
|
|
5369
5376
|
marginBottom: e.tabFlexDirection === "column" ? e.tabBarGutter : null,
|
|
5370
5377
|
fontWeight: e.tabFontWeight
|
|
5371
5378
|
}),
|
|
5372
|
-
key:
|
|
5373
|
-
onClick: go((s) => e.tabChange(
|
|
5379
|
+
key: i,
|
|
5380
|
+
onClick: go((s) => e.tabChange(r, i), ["prevent", "stop"])
|
|
5374
5381
|
}, [
|
|
5375
5382
|
ee("div", {
|
|
5376
5383
|
class: "tab-inner",
|
|
5377
5384
|
style: U({
|
|
5378
|
-
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(
|
|
5385
|
+
borderBottom: !e.activeTabBackgroundImage && !e.tabBackgroundImage ? `1px solid ${e.isActive(i) ? e.activeTabColor : "transparent"}` : ""
|
|
5379
5386
|
})
|
|
5380
|
-
}, be(
|
|
5387
|
+
}, be(r.title), 5)
|
|
5381
5388
|
], 12, es))), 128))
|
|
5382
5389
|
], 4)
|
|
5383
5390
|
], 4);
|
|
@@ -5399,7 +5406,7 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5399
5406
|
...kn
|
|
5400
5407
|
},
|
|
5401
5408
|
setup(e) {
|
|
5402
|
-
const o = re(e), t =
|
|
5409
|
+
const o = re(e), t = q(() => $e(e.imgUrl)), { pageMode: n } = N(fe, {
|
|
5403
5410
|
pageMode: "normal"
|
|
5404
5411
|
});
|
|
5405
5412
|
return {
|
|
@@ -5408,13 +5415,13 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5408
5415
|
onClick: () => {
|
|
5409
5416
|
if (!e.linkPage && !e.href)
|
|
5410
5417
|
return;
|
|
5411
|
-
const l = e.linkPage || "",
|
|
5412
|
-
let s =
|
|
5418
|
+
const l = e.linkPage || "", r = Fo(v(n), l), i = e.href;
|
|
5419
|
+
let s = i || r;
|
|
5413
5420
|
s = de(s);
|
|
5414
5421
|
const f = e.target;
|
|
5415
5422
|
f && (f !== "event" ? window.open(s, "_" + f) : window.parent.postMessage({
|
|
5416
5423
|
type: "openPage",
|
|
5417
|
-
url:
|
|
5424
|
+
url: i
|
|
5418
5425
|
}, "*"));
|
|
5419
5426
|
}
|
|
5420
5427
|
};
|
|
@@ -5422,12 +5429,12 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5422
5429
|
});
|
|
5423
5430
|
const ls = ["src"];
|
|
5424
5431
|
function is(e, o, t, n, a, l) {
|
|
5425
|
-
return e.myImgUrl !== "" ? (D(),
|
|
5432
|
+
return e.myImgUrl !== "" ? (D(), $("img", {
|
|
5426
5433
|
key: 0,
|
|
5427
5434
|
style: U(e.style),
|
|
5428
5435
|
src: e.myImgUrl,
|
|
5429
|
-
onClick: o[0] || (o[0] = (...
|
|
5430
|
-
}, null, 12, ls)) : (D(),
|
|
5436
|
+
onClick: o[0] || (o[0] = (...r) => e.onClick && e.onClick(...r))
|
|
5437
|
+
}, null, 12, ls)) : (D(), $("div", {
|
|
5431
5438
|
key: 1,
|
|
5432
5439
|
class: "image-placeholder",
|
|
5433
5440
|
style: U(e.style)
|
|
@@ -5448,9 +5455,9 @@ const rs = /* @__PURE__ */ K(as, [["render", is], ["__scopeId", "data-v-ef7a7bee
|
|
|
5448
5455
|
..._n
|
|
5449
5456
|
},
|
|
5450
5457
|
setup(e) {
|
|
5451
|
-
const o = re(e), { contextRequestUrl: t } =
|
|
5458
|
+
const o = re(e), { contextRequestUrl: t } = N(fe, {
|
|
5452
5459
|
contextRequestUrl: ""
|
|
5453
|
-
}), n =
|
|
5460
|
+
}), n = q(() => {
|
|
5454
5461
|
let a = de(e.link);
|
|
5455
5462
|
if (e.linkType === "erd" && a != null) {
|
|
5456
5463
|
let l = v(t);
|
|
@@ -5466,11 +5473,11 @@ const rs = /* @__PURE__ */ K(as, [["render", is], ["__scopeId", "data-v-ef7a7bee
|
|
|
5466
5473
|
});
|
|
5467
5474
|
const ds = ["src"];
|
|
5468
5475
|
function us(e, o, t, n, a, l) {
|
|
5469
|
-
return e.myLink ? (D(),
|
|
5476
|
+
return e.myLink ? (D(), $("iframe", {
|
|
5470
5477
|
key: 0,
|
|
5471
5478
|
src: e.myLink,
|
|
5472
5479
|
style: U(e.style)
|
|
5473
|
-
}, null, 12, ds)) : (D(),
|
|
5480
|
+
}, null, 12, ds)) : (D(), $("div", {
|
|
5474
5481
|
key: 1,
|
|
5475
5482
|
class: "iframe-placeholder",
|
|
5476
5483
|
style: U(e.style)
|
|
@@ -5541,7 +5548,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5541
5548
|
}, Ln = le(Tn), gs = ["click", "refreshData", "resetRecord"], hs = Q({
|
|
5542
5549
|
name: "EcanTable",
|
|
5543
5550
|
components: {
|
|
5544
|
-
Skeleton:
|
|
5551
|
+
Skeleton: ht,
|
|
5545
5552
|
AButton: yo,
|
|
5546
5553
|
AInput: ho,
|
|
5547
5554
|
ACheckboxGroup: bo,
|
|
@@ -5554,7 +5561,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5554
5561
|
...Ln
|
|
5555
5562
|
},
|
|
5556
5563
|
setup(e, { expose: o }) {
|
|
5557
|
-
const t = re(e), n =
|
|
5564
|
+
const t = re(e), n = q(() => {
|
|
5558
5565
|
if (e.paginationShow)
|
|
5559
5566
|
switch (e.size) {
|
|
5560
5567
|
case "small":
|
|
@@ -5573,12 +5580,12 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5573
5580
|
default:
|
|
5574
5581
|
return 55;
|
|
5575
5582
|
}
|
|
5576
|
-
}), a =
|
|
5577
|
-
if (Array.isArray(
|
|
5578
|
-
const O =
|
|
5583
|
+
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - v(n)), r = M([]), i = M([]), s = M([]), f = M([]), b = M(0), x = M(1), w = q(() => e.paginationPageSize), d = $n([]), u = (L = []) => {
|
|
5584
|
+
if (Array.isArray(L) && L.length > 0) {
|
|
5585
|
+
const O = L.length, V = e.columnsFixedNum;
|
|
5579
5586
|
for (let Z = 0; Z < O; Z++) {
|
|
5580
|
-
const
|
|
5581
|
-
Z < V ?
|
|
5587
|
+
const P = L[Z];
|
|
5588
|
+
Z < V ? P.fixed = "left" : P.fixed = !1;
|
|
5582
5589
|
const {
|
|
5583
5590
|
cellAlign: te = "center",
|
|
5584
5591
|
cellColor: oe,
|
|
@@ -5587,8 +5594,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5587
5594
|
tableFilter: ce,
|
|
5588
5595
|
headerCellAlign: Ee,
|
|
5589
5596
|
headerCellColor: we
|
|
5590
|
-
} =
|
|
5591
|
-
ce && (d.push(ue),
|
|
5597
|
+
} = P;
|
|
5598
|
+
ce && (d.push(ue), P.filterOptionsInputValue = "", P.filterCheckboxGroupValue = [], P.customFilterDropdown = !0, P.onFilter = (Le, bt) => bt[ue].toString().toLowerCase().includes(Le.toLowerCase())), P.customHeaderCell = () => ({
|
|
5592
5599
|
style: {
|
|
5593
5600
|
display: "table-cell",
|
|
5594
5601
|
verticalAlign: "middle",
|
|
@@ -5598,7 +5605,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5598
5605
|
color: we,
|
|
5599
5606
|
borderBottomColor: e.borderColor
|
|
5600
5607
|
}
|
|
5601
|
-
}),
|
|
5608
|
+
}), P.customCell = (Le, bt) => ({
|
|
5602
5609
|
style: {
|
|
5603
5610
|
textAlign: te,
|
|
5604
5611
|
color: oe,
|
|
@@ -5606,28 +5613,28 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5606
5613
|
borderBottomColor: e.borderColor
|
|
5607
5614
|
},
|
|
5608
5615
|
class: {
|
|
5609
|
-
highlight: v(
|
|
5616
|
+
highlight: v(W) === bt && e.clickHighlight
|
|
5610
5617
|
},
|
|
5611
5618
|
onClick: E("click", () => {
|
|
5612
|
-
const Ut = e.id, Dn =
|
|
5619
|
+
const Ut = e.id, Dn = j(Ut);
|
|
5613
5620
|
Le = {
|
|
5614
5621
|
dataIndex: ue,
|
|
5615
5622
|
title: ge,
|
|
5616
5623
|
...Le
|
|
5617
5624
|
}, J(Ut, { ...Dn, RECORD: Le });
|
|
5618
5625
|
})
|
|
5619
|
-
}), Array.isArray(
|
|
5626
|
+
}), Array.isArray(P.children) && u(P.children);
|
|
5620
5627
|
}
|
|
5621
5628
|
}
|
|
5622
|
-
},
|
|
5629
|
+
}, h = (L = []) => (e.isUseSeq && L.unshift({
|
|
5623
5630
|
title: "序号",
|
|
5624
5631
|
dataIndex: "SEQ",
|
|
5625
5632
|
align: "center"
|
|
5626
|
-
}), e.isUseAction &&
|
|
5633
|
+
}), e.isUseAction && L.push({
|
|
5627
5634
|
title: "操作",
|
|
5628
5635
|
dataIndex: "ACTION",
|
|
5629
5636
|
width: e.actionColumnWidth
|
|
5630
|
-
}), u(
|
|
5637
|
+
}), u(L), L);
|
|
5631
5638
|
ne(() => [
|
|
5632
5639
|
e.columns,
|
|
5633
5640
|
e.isUseSeq,
|
|
@@ -5637,51 +5644,51 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5637
5644
|
e.cellBackgroundColor,
|
|
5638
5645
|
e.borderColor
|
|
5639
5646
|
], () => {
|
|
5640
|
-
|
|
5647
|
+
r.value = h(pt(e.columns));
|
|
5641
5648
|
}, {
|
|
5642
5649
|
immediate: !0,
|
|
5643
5650
|
deep: !0
|
|
5644
|
-
}), ne(() => [e.data, e.dataType], ([
|
|
5645
|
-
O === "static" && (
|
|
5651
|
+
}), ne(() => [e.data, e.dataType], ([L, O]) => {
|
|
5652
|
+
O === "static" && (i.value = L);
|
|
5646
5653
|
}, {
|
|
5647
5654
|
immediate: !0
|
|
5648
5655
|
});
|
|
5649
|
-
const
|
|
5650
|
-
if (Array.isArray(
|
|
5651
|
-
const O =
|
|
5656
|
+
const g = M({}), y = (L) => {
|
|
5657
|
+
if (Array.isArray(L)) {
|
|
5658
|
+
const O = L.length, V = d, Z = V.length, P = {};
|
|
5652
5659
|
for (let oe = 0; oe < O; oe++) {
|
|
5653
|
-
const ue =
|
|
5660
|
+
const ue = L[oe];
|
|
5654
5661
|
for (let ge = 0; ge < Z; ge++) {
|
|
5655
5662
|
const ce = V[ge];
|
|
5656
|
-
if (
|
|
5657
|
-
|
|
5663
|
+
if (P[ce])
|
|
5664
|
+
P[ce].add(ue[ce]);
|
|
5658
5665
|
else {
|
|
5659
5666
|
const Ee = /* @__PURE__ */ new Set();
|
|
5660
|
-
Ee.add(ue[ce]),
|
|
5667
|
+
Ee.add(ue[ce]), P[ce] = Ee;
|
|
5661
5668
|
}
|
|
5662
5669
|
}
|
|
5663
5670
|
}
|
|
5664
5671
|
const te = {};
|
|
5665
|
-
for (const oe in
|
|
5666
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5667
|
-
const ue =
|
|
5672
|
+
for (const oe in P)
|
|
5673
|
+
if (Object.prototype.hasOwnProperty.call(P, oe)) {
|
|
5674
|
+
const ue = P[oe], ge = Array.from(ue);
|
|
5668
5675
|
te[oe] = ge.map((ce) => ({ label: ce, value: ce }));
|
|
5669
5676
|
}
|
|
5670
|
-
|
|
5677
|
+
g.value = te;
|
|
5671
5678
|
}
|
|
5672
5679
|
};
|
|
5673
|
-
ne(() => [e.isReverse,
|
|
5674
|
-
const
|
|
5675
|
-
if (
|
|
5676
|
-
const { columns: V, dataSource: Z } =
|
|
5680
|
+
ne(() => [e.isReverse, r.value, i.value], () => {
|
|
5681
|
+
const L = v(r), O = v(i);
|
|
5682
|
+
if (y(O), e.isReverse) {
|
|
5683
|
+
const { columns: V, dataSource: Z } = p(pt(L), pt(O));
|
|
5677
5684
|
s.value = V, f.value = Z;
|
|
5678
5685
|
} else
|
|
5679
|
-
s.value =
|
|
5686
|
+
s.value = L, f.value = O;
|
|
5680
5687
|
}, {
|
|
5681
5688
|
immediate: !0
|
|
5682
5689
|
});
|
|
5683
|
-
const
|
|
5684
|
-
const V =
|
|
5690
|
+
const p = (L, O) => {
|
|
5691
|
+
const V = L[0], Z = [{
|
|
5685
5692
|
title: V.title,
|
|
5686
5693
|
dataIndex: "col0",
|
|
5687
5694
|
key: "col0",
|
|
@@ -5696,61 +5703,61 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5696
5703
|
align: "center"
|
|
5697
5704
|
});
|
|
5698
5705
|
}
|
|
5699
|
-
const
|
|
5700
|
-
for (let te = 1; te <
|
|
5701
|
-
const oe =
|
|
5706
|
+
const P = [];
|
|
5707
|
+
for (let te = 1; te < L.length; te++) {
|
|
5708
|
+
const oe = L[te], ue = { col0: oe.title };
|
|
5702
5709
|
for (let ge = 0; ge < O.length; ge++) {
|
|
5703
5710
|
const ce = O[ge];
|
|
5704
5711
|
ue[`col${ge + 1}`] = ce[oe.dataIndex];
|
|
5705
5712
|
}
|
|
5706
|
-
|
|
5713
|
+
P.push(ue);
|
|
5707
5714
|
}
|
|
5708
5715
|
return {
|
|
5709
5716
|
columns: Z,
|
|
5710
|
-
dataSource:
|
|
5717
|
+
dataSource: P
|
|
5711
5718
|
};
|
|
5712
|
-
},
|
|
5719
|
+
}, _ = M(""), I = _e(e), C = M(!1), A = async (L = !0, O = {}) => {
|
|
5713
5720
|
var V;
|
|
5714
5721
|
try {
|
|
5715
|
-
|
|
5716
|
-
pageNum: v(
|
|
5717
|
-
pageSize: v(
|
|
5722
|
+
L && (C.value = !0), v(_) && (O.orderCondition = v(_)), e.paginationShow && (O = {
|
|
5723
|
+
pageNum: v(x),
|
|
5724
|
+
pageSize: v(w),
|
|
5718
5725
|
layer: "1",
|
|
5719
5726
|
...O
|
|
5720
5727
|
});
|
|
5721
|
-
const Z = await
|
|
5722
|
-
|
|
5728
|
+
const Z = await I(O), { rows: P = [], total: te = 0 } = ((V = Z == null ? void 0 : Z.data) == null ? void 0 : V.data) || {};
|
|
5729
|
+
b.value = te, Array.isArray(P) && (i.value = P);
|
|
5723
5730
|
} catch (Z) {
|
|
5724
5731
|
console.error(Z);
|
|
5725
5732
|
} finally {
|
|
5726
|
-
|
|
5733
|
+
C.value = !1;
|
|
5727
5734
|
}
|
|
5728
|
-
},
|
|
5729
|
-
if (
|
|
5730
|
-
const { field: Z, order:
|
|
5735
|
+
}, S = ({ current: L }, O, V) => {
|
|
5736
|
+
if (x.value = L, V && Object.keys(V).length > 0) {
|
|
5737
|
+
const { field: Z, order: P } = V, oe = {
|
|
5731
5738
|
ascend: "asc",
|
|
5732
5739
|
descend: "desc"
|
|
5733
|
-
}[
|
|
5734
|
-
Z != null && oe != null && (
|
|
5740
|
+
}[P];
|
|
5741
|
+
Z != null && oe != null && (_.value = Z + " " + oe, x.value = 1);
|
|
5735
5742
|
}
|
|
5736
5743
|
ie(!1);
|
|
5737
|
-
}, c =
|
|
5738
|
-
const
|
|
5744
|
+
}, c = q(() => {
|
|
5745
|
+
const L = e.simple, O = [e.paginationPosition];
|
|
5739
5746
|
return e.paginationShow && {
|
|
5740
|
-
simple:
|
|
5747
|
+
simple: L,
|
|
5741
5748
|
position: O,
|
|
5742
|
-
total: v(
|
|
5743
|
-
current: v(
|
|
5744
|
-
pageSize: v(
|
|
5749
|
+
total: v(b),
|
|
5750
|
+
current: v(x),
|
|
5751
|
+
pageSize: v(w),
|
|
5745
5752
|
showSizeChanger: !1
|
|
5746
5753
|
};
|
|
5747
|
-
}),
|
|
5754
|
+
}), m = (L) => +L == 1 ? "是" : +L == 0 ? "否" : L, k = (L, O) => O == null || O === "" ? L : {
|
|
5748
5755
|
money: Pt,
|
|
5749
5756
|
percentage: ut,
|
|
5750
5757
|
contrast: ut,
|
|
5751
|
-
boolean:
|
|
5752
|
-
}[O](
|
|
5753
|
-
const V = parseFloat(
|
|
5758
|
+
boolean: m
|
|
5759
|
+
}[O](L) || "", R = (L, O) => {
|
|
5760
|
+
const V = parseFloat(L + "");
|
|
5754
5761
|
if (O !== "contrast")
|
|
5755
5762
|
return "";
|
|
5756
5763
|
switch (!0) {
|
|
@@ -5759,41 +5766,41 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5759
5766
|
case V < 0:
|
|
5760
5767
|
return "goDown";
|
|
5761
5768
|
}
|
|
5762
|
-
}, E = me(e), { pageMode: T } =
|
|
5769
|
+
}, E = me(e), { pageMode: T } = N(fe, {
|
|
5763
5770
|
pageMode: "normal"
|
|
5764
|
-
}), { getGlobalModel:
|
|
5771
|
+
}), { getGlobalModel: j, setGlobalModel: J } = N(ye, {
|
|
5765
5772
|
// @ts-ignore
|
|
5766
5773
|
// eslint-disable-next-line no-void
|
|
5767
|
-
getGlobalModel: (
|
|
5774
|
+
getGlobalModel: (L) => {
|
|
5768
5775
|
},
|
|
5769
5776
|
// @ts-ignore
|
|
5770
5777
|
// eslint-disable-next-line no-void
|
|
5771
|
-
setGlobalModel: (
|
|
5778
|
+
setGlobalModel: (L, O) => {
|
|
5772
5779
|
}
|
|
5773
|
-
}),
|
|
5774
|
-
const V =
|
|
5775
|
-
|
|
5776
|
-
},
|
|
5777
|
-
var
|
|
5780
|
+
}), F = (L = [], O = []) => {
|
|
5781
|
+
const V = L.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5782
|
+
r.value = h(V), i.value = O;
|
|
5783
|
+
}, B = ot(e), z = async () => {
|
|
5784
|
+
var L, O, V, Z;
|
|
5778
5785
|
try {
|
|
5779
|
-
|
|
5780
|
-
const
|
|
5781
|
-
|
|
5782
|
-
} catch (
|
|
5783
|
-
console.error(
|
|
5786
|
+
C.value = !0;
|
|
5787
|
+
const P = await B();
|
|
5788
|
+
F((O = (L = P == null ? void 0 : P.data) == null ? void 0 : L.data) == null ? void 0 : O.columns, (Z = (V = P == null ? void 0 : P.data) == null ? void 0 : V.data) == null ? void 0 : Z.rows);
|
|
5789
|
+
} catch (P) {
|
|
5790
|
+
console.error(P);
|
|
5784
5791
|
} finally {
|
|
5785
|
-
|
|
5792
|
+
C.value = !1;
|
|
5786
5793
|
}
|
|
5787
|
-
},
|
|
5794
|
+
}, W = M(-1), X = (L, O) => ({
|
|
5788
5795
|
onClick: E("rowClick", () => {
|
|
5789
|
-
const V = e.id, Z =
|
|
5790
|
-
J(V, { ...Z, RECORD:
|
|
5796
|
+
const V = e.id, Z = j(V);
|
|
5797
|
+
J(V, { ...Z, RECORD: L }), W.value = O;
|
|
5791
5798
|
})
|
|
5792
|
-
}), ie = (
|
|
5799
|
+
}), ie = (L = !0) => {
|
|
5793
5800
|
if (v(T) !== "design")
|
|
5794
5801
|
switch (e.dataType) {
|
|
5795
5802
|
case "request":
|
|
5796
|
-
|
|
5803
|
+
A(L);
|
|
5797
5804
|
break;
|
|
5798
5805
|
case "indicator":
|
|
5799
5806
|
z();
|
|
@@ -5802,22 +5809,22 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5802
5809
|
};
|
|
5803
5810
|
he(e, {
|
|
5804
5811
|
resetRecord: () => {
|
|
5805
|
-
const
|
|
5806
|
-
J(
|
|
5812
|
+
const L = e.id, O = j(L);
|
|
5813
|
+
J(L, { ...O, RECORD: "" });
|
|
5807
5814
|
},
|
|
5808
5815
|
refreshData: ie
|
|
5809
5816
|
});
|
|
5810
|
-
const En =
|
|
5811
|
-
const
|
|
5817
|
+
const En = q(() => {
|
|
5818
|
+
const L = v(s), O = [];
|
|
5812
5819
|
let V = 0;
|
|
5813
|
-
for (let
|
|
5814
|
-
const te =
|
|
5815
|
-
e.isUseSeq &&
|
|
5820
|
+
for (let P = 0; P < L.length; P++) {
|
|
5821
|
+
const te = L[P], { isCalcTotal: oe } = te;
|
|
5822
|
+
e.isUseSeq && P === 0 ? O.push({
|
|
5816
5823
|
...te,
|
|
5817
5824
|
total: "小计"
|
|
5818
5825
|
}) : oe ? (O.push({
|
|
5819
5826
|
...te,
|
|
5820
|
-
index:
|
|
5827
|
+
index: P,
|
|
5821
5828
|
total: 0
|
|
5822
5829
|
}), V++) : O.push({
|
|
5823
5830
|
...te
|
|
@@ -5826,8 +5833,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5826
5833
|
if (V === 0)
|
|
5827
5834
|
return [];
|
|
5828
5835
|
const Z = v(f);
|
|
5829
|
-
for (let
|
|
5830
|
-
const te = O[
|
|
5836
|
+
for (let P = 0; P < O.length; P++) {
|
|
5837
|
+
const te = O[P];
|
|
5831
5838
|
let oe = 0;
|
|
5832
5839
|
const { isCalcTotal: ue, dataIndex: ge } = te;
|
|
5833
5840
|
if (ue === !0) {
|
|
@@ -5839,8 +5846,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5839
5846
|
}
|
|
5840
5847
|
}
|
|
5841
5848
|
return O;
|
|
5842
|
-
}), { setRequest: Bt } =
|
|
5843
|
-
setRequest: (
|
|
5849
|
+
}), { setRequest: Bt } = N(Se, {
|
|
5850
|
+
setRequest: (L) => {
|
|
5844
5851
|
}
|
|
5845
5852
|
});
|
|
5846
5853
|
return typeof Bt == "function" && Bt({
|
|
@@ -5857,48 +5864,48 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5857
5864
|
pagination: c,
|
|
5858
5865
|
formatFn: k,
|
|
5859
5866
|
contrastClass: R,
|
|
5860
|
-
tableChange:
|
|
5867
|
+
tableChange: S,
|
|
5861
5868
|
summaryList: En,
|
|
5862
|
-
loading:
|
|
5863
|
-
onTouchHrefEvent: (
|
|
5864
|
-
|
|
5869
|
+
loading: C,
|
|
5870
|
+
onTouchHrefEvent: (L, O = "") => {
|
|
5871
|
+
L === "event" && window.parent.postMessage({
|
|
5865
5872
|
type: "openPage",
|
|
5866
5873
|
url: O
|
|
5867
5874
|
}, "*");
|
|
5868
5875
|
},
|
|
5869
|
-
handleHref: (
|
|
5870
|
-
handleHrefTarget: (
|
|
5871
|
-
if (
|
|
5876
|
+
handleHref: (L = "", O) => de(L, O),
|
|
5877
|
+
handleHrefTarget: (L) => {
|
|
5878
|
+
if (L !== "event")
|
|
5872
5879
|
return {
|
|
5873
5880
|
self: "_self",
|
|
5874
5881
|
blank: "_blank"
|
|
5875
|
-
}[
|
|
5882
|
+
}[L];
|
|
5876
5883
|
},
|
|
5877
|
-
useRowIndex:
|
|
5884
|
+
useRowIndex: W,
|
|
5878
5885
|
tableColumns: s,
|
|
5879
5886
|
tableDataSource: f,
|
|
5880
|
-
useFilterOptions: (
|
|
5881
|
-
const O =
|
|
5887
|
+
useFilterOptions: (L) => {
|
|
5888
|
+
const O = L.dataIndex;
|
|
5882
5889
|
if (typeof O == "string") {
|
|
5883
|
-
let V = v(
|
|
5884
|
-
const Z = v(
|
|
5885
|
-
return Array.isArray(V) ? (V = V.filter((
|
|
5890
|
+
let V = v(g)[O];
|
|
5891
|
+
const Z = v(L.filterOptionsInputValue).trim();
|
|
5892
|
+
return Array.isArray(V) ? (V = V.filter((P) => typeof P.label == "string" ? P.label.toLowerCase().includes(Z.toLowerCase()) : !0), V) : [];
|
|
5886
5893
|
}
|
|
5887
5894
|
return [];
|
|
5888
5895
|
},
|
|
5889
|
-
useSetSelectedKeys: (
|
|
5890
|
-
|
|
5896
|
+
useSetSelectedKeys: (L, O) => {
|
|
5897
|
+
L(O.filterCheckboxGroupValue);
|
|
5891
5898
|
},
|
|
5892
|
-
onResetFilter: (
|
|
5893
|
-
|
|
5899
|
+
onResetFilter: (L, O) => {
|
|
5900
|
+
L({ confirm: !0 }), O.filterOptionsInputValue = "", O.filterCheckboxGroupValue = [];
|
|
5894
5901
|
},
|
|
5895
5902
|
onSearchFilterOptions: () => {
|
|
5896
5903
|
},
|
|
5897
5904
|
exportTable: async () => {
|
|
5898
5905
|
var ce, Ee;
|
|
5899
|
-
const
|
|
5906
|
+
const L = "EXPORT_KEY";
|
|
5900
5907
|
Be.loading({
|
|
5901
|
-
key:
|
|
5908
|
+
key: L,
|
|
5902
5909
|
content: "正在导出...",
|
|
5903
5910
|
duration: 0
|
|
5904
5911
|
});
|
|
@@ -5907,16 +5914,16 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5907
5914
|
O = e.data;
|
|
5908
5915
|
else if (e.dataType === "request") {
|
|
5909
5916
|
const we = { layer: "1" };
|
|
5910
|
-
v(
|
|
5911
|
-
const Le = await
|
|
5917
|
+
v(_) && (we.orderCondition = v(_));
|
|
5918
|
+
const Le = await I(we);
|
|
5912
5919
|
O = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
5913
5920
|
}
|
|
5914
|
-
const V = v(s), Z = [],
|
|
5921
|
+
const V = v(s), Z = [], P = [];
|
|
5915
5922
|
V == null || V.forEach((we) => {
|
|
5916
|
-
Z.push(we.dataIndex),
|
|
5923
|
+
Z.push(we.dataIndex), P.push(we.title);
|
|
5917
5924
|
});
|
|
5918
|
-
const te = O.map((we) => vo(we, Z)), oe = lt.book_new(), ue = lt.aoa_to_sheet([
|
|
5919
|
-
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key:
|
|
5925
|
+
const te = O.map((we) => vo(we, Z)), oe = lt.book_new(), ue = lt.aoa_to_sheet([P]), ge = lt.sheet_add_json(ue, te, { skipHeader: !0, origin: "A2" });
|
|
5926
|
+
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key: L, content: "导出成功" });
|
|
5920
5927
|
}
|
|
5921
5928
|
};
|
|
5922
5929
|
}
|
|
@@ -5929,15 +5936,15 @@ const ys = {
|
|
|
5929
5936
|
class: "action-list"
|
|
5930
5937
|
}, ws = ["href", "target", "onClick"];
|
|
5931
5938
|
function xs(e, o, t, n, a, l) {
|
|
5932
|
-
const
|
|
5933
|
-
return D(),
|
|
5939
|
+
const r = H("a-button"), i = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"), b = H("a-table-summary-row"), x = H("a-table-summary"), w = H("a-table"), d = H("skeleton");
|
|
5940
|
+
return D(), $("div", {
|
|
5934
5941
|
class: "ecan-table",
|
|
5935
5942
|
style: U(e.style)
|
|
5936
5943
|
}, [
|
|
5937
|
-
|
|
5944
|
+
G(d, { loading: e.loading }, {
|
|
5938
5945
|
default: Y(() => [
|
|
5939
|
-
e.isUseExport ? (D(),
|
|
5940
|
-
|
|
5946
|
+
e.isUseExport ? (D(), $("div", ys, [
|
|
5947
|
+
G(r, {
|
|
5941
5948
|
class: "export-button",
|
|
5942
5949
|
onClick: e.exportTable
|
|
5943
5950
|
}, {
|
|
@@ -5947,7 +5954,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5947
5954
|
_: 1
|
|
5948
5955
|
}, 8, ["onClick"])
|
|
5949
5956
|
])) : ve("", !0),
|
|
5950
|
-
|
|
5957
|
+
G(w, {
|
|
5951
5958
|
class: "table",
|
|
5952
5959
|
style: {
|
|
5953
5960
|
height: "100%"
|
|
@@ -5961,43 +5968,43 @@ function xs(e, o, t, n, a, l) {
|
|
|
5961
5968
|
pagination: e.pagination,
|
|
5962
5969
|
onChange: e.tableChange
|
|
5963
5970
|
}, {
|
|
5964
|
-
customFilterDropdown: Y(({ column: u, selectedKeys:
|
|
5971
|
+
customFilterDropdown: Y(({ column: u, selectedKeys: h, setSelectedKeys: g, confirm: y, clearFilters: p }) => [
|
|
5965
5972
|
ee("div", {
|
|
5966
5973
|
class: "ecan-table-filter",
|
|
5967
5974
|
style: U({
|
|
5968
5975
|
height: e.filterDropdownHeight
|
|
5969
5976
|
})
|
|
5970
5977
|
}, [
|
|
5971
|
-
|
|
5978
|
+
G(i, {
|
|
5972
5979
|
value: u.filterOptionsInputValue,
|
|
5973
|
-
"onUpdate:value": (
|
|
5980
|
+
"onUpdate:value": (_) => u.filterOptionsInputValue = _,
|
|
5974
5981
|
placeholder: "请输入关键字",
|
|
5975
5982
|
class: "filter-input",
|
|
5976
5983
|
onChange: e.onSearchFilterOptions
|
|
5977
5984
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
5978
|
-
|
|
5985
|
+
G(s, {
|
|
5979
5986
|
value: u.filterCheckboxGroupValue,
|
|
5980
|
-
"onUpdate:value": (
|
|
5987
|
+
"onUpdate:value": (_) => u.filterCheckboxGroupValue = _,
|
|
5981
5988
|
class: "filter-checkbox",
|
|
5982
5989
|
options: e.useFilterOptions(u),
|
|
5983
|
-
onChange: (
|
|
5990
|
+
onChange: (_) => e.useSetSelectedKeys(g, u)
|
|
5984
5991
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
5985
5992
|
ee("div", null, [
|
|
5986
|
-
|
|
5993
|
+
G(r, {
|
|
5987
5994
|
type: "primary",
|
|
5988
5995
|
size: "small",
|
|
5989
5996
|
style: { width: "90px", "margin-right": "8px" },
|
|
5990
|
-
onClick: () =>
|
|
5997
|
+
onClick: () => y()
|
|
5991
5998
|
}, {
|
|
5992
5999
|
default: Y(() => [
|
|
5993
6000
|
vs
|
|
5994
6001
|
]),
|
|
5995
6002
|
_: 2
|
|
5996
6003
|
}, 1032, ["onClick"]),
|
|
5997
|
-
|
|
6004
|
+
G(r, {
|
|
5998
6005
|
size: "small",
|
|
5999
6006
|
style: { width: "90px" },
|
|
6000
|
-
onClick: go((
|
|
6007
|
+
onClick: go((_) => e.onResetFilter(p, u), ["stop"])
|
|
6001
6008
|
}, {
|
|
6002
6009
|
default: Y(() => [
|
|
6003
6010
|
ps
|
|
@@ -6007,41 +6014,41 @@ function xs(e, o, t, n, a, l) {
|
|
|
6007
6014
|
])
|
|
6008
6015
|
], 4)
|
|
6009
6016
|
]),
|
|
6010
|
-
bodyCell: Y(({ column: u, index:
|
|
6011
|
-
u.dataIndex === "SEQ" ? (D(),
|
|
6012
|
-
u.dataIndex === "ACTION" ? (D(),
|
|
6013
|
-
(D(!0),
|
|
6017
|
+
bodyCell: Y(({ column: u, index: h, text: g, record: y }) => [
|
|
6018
|
+
u.dataIndex === "SEQ" ? (D(), $("span", Cs, be(h + 1), 1)) : ve("", !0),
|
|
6019
|
+
u.dataIndex === "ACTION" ? (D(), $("div", Ss, [
|
|
6020
|
+
(D(!0), $(Me, null, De(e.actionList, (p, _) => (D(), $("div", {
|
|
6014
6021
|
class: "action",
|
|
6015
|
-
key:
|
|
6022
|
+
key: _
|
|
6016
6023
|
}, [
|
|
6017
6024
|
ee("a", {
|
|
6018
|
-
href: e.handleHref(
|
|
6019
|
-
target: e.handleHrefTarget(
|
|
6025
|
+
href: e.handleHref(p.href, y),
|
|
6026
|
+
target: e.handleHrefTarget(p.target),
|
|
6020
6027
|
style: U({
|
|
6021
|
-
color:
|
|
6028
|
+
color: p.color,
|
|
6022
6029
|
fontSize: e.fontSize,
|
|
6023
6030
|
fontWeight: e.fontWeight
|
|
6024
6031
|
}),
|
|
6025
|
-
onClick: (
|
|
6026
|
-
}, be(
|
|
6032
|
+
onClick: (I) => e.onTouchHrefEvent(p.target, e.handleHref(p.href, y))
|
|
6033
|
+
}, be(p.title), 13, ws)
|
|
6027
6034
|
]))), 128))
|
|
6028
|
-
])) : (D(),
|
|
6035
|
+
])) : (D(), $("div", {
|
|
6029
6036
|
key: 2,
|
|
6030
|
-
class:
|
|
6037
|
+
class: Lt([e.contrastClass(g, u.format)]),
|
|
6031
6038
|
style: U({
|
|
6032
6039
|
fontSize: e.fontSize,
|
|
6033
6040
|
fontWeight: e.fontWeight
|
|
6034
6041
|
})
|
|
6035
|
-
}, be(u.format != null ? e.formatFn(
|
|
6042
|
+
}, be(u.format != null ? e.formatFn(g, u.format) : g), 7))
|
|
6036
6043
|
]),
|
|
6037
6044
|
summary: Y(() => [
|
|
6038
|
-
e.summaryList.length > 0 ? (D(), Re(
|
|
6045
|
+
e.summaryList.length > 0 ? (D(), Re(x, { key: 0 }, {
|
|
6039
6046
|
default: Y(() => [
|
|
6040
|
-
|
|
6047
|
+
G(b, null, {
|
|
6041
6048
|
default: Y(() => [
|
|
6042
|
-
(D(!0),
|
|
6043
|
-
key:
|
|
6044
|
-
index:
|
|
6049
|
+
(D(!0), $(Me, null, De(e.summaryList, (u, h) => (D(), Re(f, {
|
|
6050
|
+
key: h,
|
|
6051
|
+
index: h,
|
|
6045
6052
|
style: U({
|
|
6046
6053
|
backgroundColor: e.cellBackgroundColor,
|
|
6047
6054
|
textAlign: u.cellAlign || "center",
|
|
@@ -6051,7 +6058,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
6051
6058
|
}, {
|
|
6052
6059
|
default: Y(() => [
|
|
6053
6060
|
ee("div", {
|
|
6054
|
-
class:
|
|
6061
|
+
class: Lt([e.contrastClass(u.total, u.format)]),
|
|
6055
6062
|
style: U({
|
|
6056
6063
|
fontSize: e.fontSize,
|
|
6057
6064
|
fontWeight: e.fontWeight
|
|
@@ -6133,16 +6140,16 @@ const _s = Q({
|
|
|
6133
6140
|
...Mn
|
|
6134
6141
|
},
|
|
6135
6142
|
setup(e) {
|
|
6136
|
-
const o = re(e, ["backgroundImage"]), t = M(), n =
|
|
6143
|
+
const o = re(e, ["backgroundImage"]), t = M(), n = q(() => $e(e.geoBackgroundImage)), a = q(() => $e(e.backgroundImage)), l = q(() => e.geoBackgroundImage ? {
|
|
6137
6144
|
image: v(t),
|
|
6138
6145
|
repeat: e.geoBackgroundImageRepeat
|
|
6139
|
-
} : e.geoItemStyleAreaColor),
|
|
6140
|
-
const
|
|
6141
|
-
return e.symbolImage ? "image://" + $e(
|
|
6142
|
-
}),
|
|
6143
|
-
const
|
|
6144
|
-
let
|
|
6145
|
-
return typeof
|
|
6146
|
+
} : e.geoItemStyleAreaColor), r = q(() => {
|
|
6147
|
+
const b = e.symbolImage;
|
|
6148
|
+
return e.symbolImage ? "image://" + $e(b) : "circle";
|
|
6149
|
+
}), i = q(() => {
|
|
6150
|
+
const b = e.geoCenter;
|
|
6151
|
+
let x;
|
|
6152
|
+
return typeof b == "string" && b !== "" && (x = b.split(",")), {
|
|
6146
6153
|
// backgroundColor: unref(background),
|
|
6147
6154
|
tooltip: {
|
|
6148
6155
|
show: !0
|
|
@@ -6162,7 +6169,7 @@ const _s = Q({
|
|
|
6162
6169
|
geo: {
|
|
6163
6170
|
zoom: e.geoZoom,
|
|
6164
6171
|
roam: e.geoRoam,
|
|
6165
|
-
center:
|
|
6172
|
+
center: x,
|
|
6166
6173
|
map: "map",
|
|
6167
6174
|
tooltip: {
|
|
6168
6175
|
show: !1
|
|
@@ -6202,7 +6209,7 @@ const _s = Q({
|
|
|
6202
6209
|
itemStyle: {
|
|
6203
6210
|
color: e.itemStyleColor
|
|
6204
6211
|
},
|
|
6205
|
-
symbol: v(
|
|
6212
|
+
symbol: v(r),
|
|
6206
6213
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6207
6214
|
label: {
|
|
6208
6215
|
show: e.labelShow,
|
|
@@ -6222,11 +6229,11 @@ const _s = Q({
|
|
|
6222
6229
|
]
|
|
6223
6230
|
};
|
|
6224
6231
|
}), s = M(!1), f = async () => {
|
|
6225
|
-
var
|
|
6226
|
-
const
|
|
6227
|
-
if (
|
|
6228
|
-
const
|
|
6229
|
-
Gn("map", (
|
|
6232
|
+
var x;
|
|
6233
|
+
const b = e.mapJson;
|
|
6234
|
+
if (b != null && b.path) {
|
|
6235
|
+
const w = await Fe(((x = window == null ? void 0 : window.config) == null ? void 0 : x.uploadPath) + b.path);
|
|
6236
|
+
Gn("map", (w == null ? void 0 : w.data) || {});
|
|
6230
6237
|
}
|
|
6231
6238
|
s.value = !0;
|
|
6232
6239
|
};
|
|
@@ -6236,7 +6243,7 @@ const _s = Q({
|
|
|
6236
6243
|
immediate: !0,
|
|
6237
6244
|
deep: !0
|
|
6238
6245
|
}), {
|
|
6239
|
-
option:
|
|
6246
|
+
option: i,
|
|
6240
6247
|
style: o,
|
|
6241
6248
|
isLoadedData: s,
|
|
6242
6249
|
geoBackgroundImageRef: t,
|
|
@@ -6246,12 +6253,12 @@ const _s = Q({
|
|
|
6246
6253
|
});
|
|
6247
6254
|
const Ts = ["src"];
|
|
6248
6255
|
function Ls(e, o, t, n, a, l) {
|
|
6249
|
-
const
|
|
6250
|
-
return D(),
|
|
6256
|
+
const r = H("echarts");
|
|
6257
|
+
return D(), $("div", {
|
|
6251
6258
|
class: "ecan-map",
|
|
6252
6259
|
style: U(e.style)
|
|
6253
6260
|
}, [
|
|
6254
|
-
e.isLoadedData ? (D(), Re(
|
|
6261
|
+
e.isLoadedData ? (D(), Re(r, {
|
|
6255
6262
|
key: 0,
|
|
6256
6263
|
option: e.option,
|
|
6257
6264
|
"update-options": { notMerge: !0 },
|