@ecan-bi/datav 1.1.65 → 1.1.67
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 +1060 -1055
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.67 */
|
|
2
|
+
import { watch as ne, inject as P, computed as W, unref as v, watchEffect as uo, defineComponent as Q, shallowRef as pt, toRefs as On, onMounted as Ue, onUnmounted as mt, h as dt, nextTick as gt, createVNode as j, resolveComponent as H, openBlock as D, createElementBlock as F, createBlock as Re, renderSlot as ht, withCtx as Y, ref as M, normalizeStyle as U, createCommentVNode as ve, provide as ze, onBeforeUnmount as Lt, toDisplayString as be, Fragment as Me, renderList as De, createElementVNode as ee, normalizeClass as It, 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
|
|
8
|
+
import { without as ta, pick as vo, debounce as Rt, cloneDeep as Ct } from "lodash-es";
|
|
9
9
|
import po from "axios";
|
|
10
10
|
import Ce from "dayjs";
|
|
11
11
|
import oa from "mitt";
|
|
@@ -18,7 +18,7 @@ import "ant-design-vue/es/button/style";
|
|
|
18
18
|
import "ant-design-vue/es/checkbox/style";
|
|
19
19
|
import { CanvasRenderer as je } from "echarts/renderers";
|
|
20
20
|
import { PieChart as na, LineChart as So, BarChart as wo, ScatterChart as xo, MapChart as aa } from "echarts/charts";
|
|
21
|
-
import { TitleComponent as Ke, ToolboxComponent as Xe, TooltipComponent as
|
|
21
|
+
import { TitleComponent as Ke, ToolboxComponent as Xe, TooltipComponent as Ft, LegendComponent as et, DatasetComponent as ko, VisualMapComponent as la, GraphicComponent as ia } from "echarts/components";
|
|
22
22
|
import * as ra from "echarts";
|
|
23
23
|
import "ant-design-vue/es/modal/style";
|
|
24
24
|
import "ant-design-vue/es/table/style";
|
|
@@ -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 = P(ga, {}), a = W(() => ({
|
|
75
75
|
...v(n),
|
|
76
76
|
...t == null ? void 0 : t.value
|
|
77
77
|
}));
|
|
@@ -108,67 +108,67 @@ 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 = pt(), a = pt(), l = pt(), i = P(Sa, null), r = P(
|
|
112
112
|
wa,
|
|
113
113
|
null
|
|
114
|
-
), s =
|
|
114
|
+
), s = P(
|
|
115
115
|
xa,
|
|
116
116
|
null
|
|
117
|
-
), { autoresize: f, manualUpdate:
|
|
117
|
+
), { autoresize: f, manualUpdate: y, loading: S, loadingOptions: C } = On(e), d = W(
|
|
118
118
|
() => l.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
119
|
-
), u =
|
|
119
|
+
), u = W(() => e.theme || v(i) || {}), m = W(
|
|
120
120
|
() => e.initOptions || v(r) || {}
|
|
121
|
-
),
|
|
121
|
+
), h = W(
|
|
122
122
|
() => e.updateOptions || v(s) || {}
|
|
123
|
-
),
|
|
124
|
-
function
|
|
123
|
+
), b = W(() => pa(o));
|
|
124
|
+
function w(x) {
|
|
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
|
+
m.value
|
|
131
131
|
);
|
|
132
132
|
e.group && (c.group = e.group);
|
|
133
|
-
let
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
})), Object.keys(
|
|
138
|
-
const
|
|
139
|
-
|
|
133
|
+
let g = t;
|
|
134
|
+
g || (g = {}, Object.keys(o).filter((E) => E.indexOf("on") === 0 && E.length > 2).forEach((E) => {
|
|
135
|
+
const T = E.charAt(2).toLowerCase() + E.slice(3);
|
|
136
|
+
g[T] = o[E];
|
|
137
|
+
})), Object.keys(g).forEach((E) => {
|
|
138
|
+
const T = g[E];
|
|
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() {
|
|
142
142
|
if (c && !c.isDisposed())
|
|
143
143
|
try {
|
|
144
144
|
c.resize();
|
|
145
|
-
} catch (
|
|
146
|
-
if (
|
|
145
|
+
} catch (E) {
|
|
146
|
+
if (E.message === "Cannot read property 'get' of undefined")
|
|
147
147
|
return;
|
|
148
|
-
throw
|
|
148
|
+
throw E;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
c.setOption(x || d.value,
|
|
151
|
+
function R() {
|
|
152
|
+
c.setOption(x || d.value, h.value);
|
|
153
153
|
}
|
|
154
|
-
f.value ?
|
|
155
|
-
k(),
|
|
156
|
-
}) :
|
|
154
|
+
f.value ? gt(() => {
|
|
155
|
+
k(), R();
|
|
156
|
+
}) : R();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
e.manualUpdate && (l.value = x), a.value ? a.value.setOption(x, c || {}) :
|
|
158
|
+
function A(x, c) {
|
|
159
|
+
e.manualUpdate && (l.value = x), a.value ? a.value.setOption(x, c || {}) : w(x);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function L() {
|
|
162
162
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
163
163
|
}
|
|
164
164
|
let p = null;
|
|
165
165
|
ne(
|
|
166
|
-
|
|
166
|
+
y,
|
|
167
167
|
(x) => {
|
|
168
168
|
typeof p == "function" && (p(), p = null), x || (p = ne(
|
|
169
169
|
() => e.option,
|
|
170
170
|
(c) => {
|
|
171
|
-
c && (a.value ? a.value.setOption(c,
|
|
171
|
+
c && (a.value ? a.value.setOption(c, h.value) : w());
|
|
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, m],
|
|
181
181
|
() => {
|
|
182
|
-
|
|
182
|
+
L(), w();
|
|
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
|
|
190
|
+
const _ = ua(a, w);
|
|
191
191
|
return ha(a, S, C), fa(a, f, n), Ue(() => {
|
|
192
|
-
e.option &&
|
|
193
|
-
}),
|
|
192
|
+
e.option && w();
|
|
193
|
+
}), mt(L), {
|
|
194
194
|
chart: a,
|
|
195
195
|
root: n,
|
|
196
|
-
setOption:
|
|
197
|
-
nonEventAttrs:
|
|
198
|
-
...
|
|
196
|
+
setOption: A,
|
|
197
|
+
nonEventAttrs: b,
|
|
198
|
+
..._
|
|
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 St(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 wt(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) {
|
|
@@ -239,7 +239,7 @@ function La(e, o, t) {
|
|
|
239
239
|
a = t, l = t, n = t;
|
|
240
240
|
else {
|
|
241
241
|
var i = t < 0.5 ? t * (1 + o) : t + o - t * o, r = 2 * t - i;
|
|
242
|
-
n =
|
|
242
|
+
n = wt(r, i, e + 1 / 3), a = wt(r, i, e), l = wt(r, i, e - 1 / 3);
|
|
243
243
|
}
|
|
244
244
|
return { r: n * 255, g: a * 255, b: l * 255 };
|
|
245
245
|
}
|
|
@@ -266,14 +266,14 @@ function Ia(e, o, t) {
|
|
|
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), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), s = n % 6, f = [t, i, l, l, r, t][s],
|
|
270
|
-
return { r: f * 255, g:
|
|
269
|
+
var n = Math.floor(e), a = e - n, l = t * (1 - o), i = t * (1 - a * o), r = t * (1 - (1 - a) * o), s = n % 6, f = [t, i, l, l, r, t][s], y = [r, t, t, i, l, l][s], S = [l, l, r, t, t, i][s];
|
|
270
|
+
return { r: f * 255, g: y * 255, b: S * 255 };
|
|
271
271
|
}
|
|
272
272
|
function Ea(e, o, t, n) {
|
|
273
273
|
var a = [
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
St(Math.round(e).toString(16)),
|
|
275
|
+
St(Math.round(o).toString(16)),
|
|
276
|
+
St(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
|
}
|
|
@@ -435,7 +435,7 @@ var qt = {
|
|
|
435
435
|
};
|
|
436
436
|
function He(e) {
|
|
437
437
|
var o = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, l = null, i = !1, r = !1;
|
|
438
|
-
return typeof e == "string" && (e =
|
|
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), i = !0, r = 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), i = !0, r = "hsv") : Ie(e.h) && Ie(e.s) && Ie(e.l) && (n = it(e.s), l = it(e.l), o = La(e.h, n, l), i = !0, r = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = _a(t), {
|
|
439
439
|
ok: i,
|
|
440
440
|
format: e.format || r,
|
|
441
441
|
r: Math.min(255, Math.max(o.r, 0)),
|
|
@@ -444,20 +444,20 @@ function He(e) {
|
|
|
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, ")"), xt = "[\\s|\\(]+(".concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")\\s*\\)?"), kt = "[\\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" + xt),
|
|
450
|
+
rgba: new RegExp("rgba" + kt),
|
|
451
|
+
hsl: new RegExp("hsl" + xt),
|
|
452
|
+
hsla: new RegExp("hsla" + kt),
|
|
453
|
+
hsv: new RegExp("hsv" + xt),
|
|
454
|
+
hsva: new RegExp("hsva" + kt),
|
|
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})$/,
|
|
458
458
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
459
459
|
};
|
|
460
|
-
function
|
|
460
|
+
function Ra(e) {
|
|
461
461
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
462
462
|
return !1;
|
|
463
463
|
var o = !1;
|
|
@@ -493,7 +493,7 @@ function Fa(e) {
|
|
|
493
493
|
function Ie(e) {
|
|
494
494
|
return Boolean(ke.CSS_UNIT.exec(String(e)));
|
|
495
495
|
}
|
|
496
|
-
var rt = 2, jt = 0.16,
|
|
496
|
+
var rt = 2, jt = 0.16, Fa = 0.05, za = 0.05, $a = 0.15, Ao = 5, _o = 4, Na = [{
|
|
497
497
|
index: 7,
|
|
498
498
|
opacity: 0.15
|
|
499
499
|
}, {
|
|
@@ -552,13 +552,13 @@ function Ht(e, o, t) {
|
|
|
552
552
|
if (e.h === 0 && e.s === 0)
|
|
553
553
|
return e.s;
|
|
554
554
|
var n;
|
|
555
|
-
return t ? n = e.s - jt * o : o === _o ? n = e.s + jt : n = e.s +
|
|
555
|
+
return t ? n = e.s - jt * o : o === _o ? n = e.s + jt : n = e.s + Fa * o, n > 1 && (n = 1), t && o === Ao && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
|
|
556
556
|
}
|
|
557
557
|
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 Mt(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
563
|
var l = Wt(n), i = st(He({
|
|
564
564
|
h: Vt(l, a, !0),
|
|
@@ -576,12 +576,12 @@ function It(e) {
|
|
|
576
576
|
}));
|
|
577
577
|
t.push(f);
|
|
578
578
|
}
|
|
579
|
-
return o.theme === "dark" ? Na.map(function(
|
|
580
|
-
var S =
|
|
579
|
+
return o.theme === "dark" ? Na.map(function(y) {
|
|
580
|
+
var S = y.index, C = y.opacity, d = st(Pa(He(o.backgroundColor || "#141414"), He(t[S]), C * 100));
|
|
581
581
|
return d;
|
|
582
582
|
}) : t;
|
|
583
583
|
}
|
|
584
|
-
var
|
|
584
|
+
var At = {
|
|
585
585
|
red: "#F5222D",
|
|
586
586
|
volcano: "#FA541C",
|
|
587
587
|
orange: "#FA8C16",
|
|
@@ -595,12 +595,12 @@ var kt = {
|
|
|
595
595
|
purple: "#722ED1",
|
|
596
596
|
magenta: "#EB2F96",
|
|
597
597
|
grey: "#666666"
|
|
598
|
-
},
|
|
599
|
-
Object.keys(
|
|
600
|
-
|
|
598
|
+
}, _t = {}, Tt = {};
|
|
599
|
+
Object.keys(At).forEach(function(e) {
|
|
600
|
+
_t[e] = Mt(At[e]), _t[e].primary = _t[e][5], Tt[e] = Mt(At[e], {
|
|
601
601
|
theme: "dark",
|
|
602
602
|
backgroundColor: "#141414"
|
|
603
|
-
}),
|
|
603
|
+
}), Tt[e].primary = Tt[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 Et(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 Et(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 Et(n, "".concat(o, "-").concat(e.tag, "-").concat(a));
|
|
650
650
|
}));
|
|
651
651
|
}
|
|
652
652
|
function To(e) {
|
|
653
|
-
return
|
|
653
|
+
return Mt(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
|
+
gt(function() {
|
|
715
715
|
Kt || (typeof window < "u" && window.document && window.document.documentElement && Ga(o, {
|
|
716
716
|
prepend: !0
|
|
717
717
|
}), Kt = !0);
|
|
@@ -772,7 +772,7 @@ var We = function(o, t) {
|
|
|
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
|
+
})), Et(f.icon, "svg-".concat(f.name), ct({}, r, {
|
|
776
776
|
"data-icon": f.name,
|
|
777
777
|
width: "1em",
|
|
778
778
|
height: "1em",
|
|
@@ -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
|
+
Dt(e, a, t[a]);
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
911
|
return e;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Dt(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, i = a.icon, r = a.spin, s = a.rotate, f = a.tabindex,
|
|
937
|
+
var n, a = to({}, o, t.attrs), l = a.class, i = a.icon, r = a.spin, s = a.rotate, f = a.tabindex, y = a.twoToneColor, S = a.onClick, C = fl(a, il), d = (n = {
|
|
938
938
|
anticon: !0
|
|
939
|
-
},
|
|
940
|
-
|
|
941
|
-
var
|
|
939
|
+
}, Dt(n, "anticon-".concat(i.name), Boolean(i.name)), Dt(n, l, l), n), u = r === "" || r || i.name === "loading" ? "anticon-spin" : "", m = f;
|
|
940
|
+
m === void 0 && S && (m = -1, C.tabindex = m);
|
|
941
|
+
var h = s ? {
|
|
942
942
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
943
943
|
transform: "rotate(".concat(s, "deg)")
|
|
944
|
-
} : void 0,
|
|
945
|
-
return
|
|
944
|
+
} : void 0, b = Lo(y), w = rl(b, 2), A = w[0], L = w[1];
|
|
945
|
+
return j("span", to({
|
|
946
946
|
role: "img",
|
|
947
947
|
"aria-label": i.name
|
|
948
948
|
}, C, {
|
|
949
949
|
onClick: S,
|
|
950
950
|
class: d
|
|
951
|
-
}), [
|
|
951
|
+
}), [j(zt, {
|
|
952
952
|
class: u,
|
|
953
953
|
icon: i,
|
|
954
|
-
primaryColor:
|
|
955
|
-
secondaryColor:
|
|
956
|
-
style:
|
|
954
|
+
primaryColor: A,
|
|
955
|
+
secondaryColor: L,
|
|
956
|
+
style: h
|
|
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 j(gl, oo({}, n, {
|
|
989
989
|
icon: yl
|
|
990
990
|
}), null);
|
|
991
991
|
};
|
|
@@ -1021,14 +1021,14 @@ const K = (e, o) => {
|
|
|
1021
1021
|
}, Cl = { class: "spin-wrapper" };
|
|
1022
1022
|
function Sl(e, o, t, n, a, l) {
|
|
1023
1023
|
const i = H("a-spin");
|
|
1024
|
-
return
|
|
1025
|
-
e.spinning ? (
|
|
1024
|
+
return D(), F("div", Cl, [
|
|
1025
|
+
e.spinning ? (D(), Re(i, {
|
|
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"])) : ht(e.$slots, "default", { key: 1 })
|
|
1032
1032
|
]);
|
|
1033
1033
|
}
|
|
1034
1034
|
const tt = /* @__PURE__ */ K(pl, [["render", Sl]]), wl = Q({
|
|
@@ -1045,17 +1045,17 @@ const tt = /* @__PURE__ */ K(pl, [["render", Sl]]), wl = Q({
|
|
|
1045
1045
|
});
|
|
1046
1046
|
function xl(e, o, t, n, a, l) {
|
|
1047
1047
|
const i = H("a-skeleton");
|
|
1048
|
-
return
|
|
1048
|
+
return D(), Re(i, {
|
|
1049
1049
|
active: "",
|
|
1050
1050
|
loading: e.loading
|
|
1051
1051
|
}, {
|
|
1052
1052
|
default: Y(() => [
|
|
1053
|
-
|
|
1053
|
+
ht(e.$slots, "default")
|
|
1054
1054
|
]),
|
|
1055
1055
|
_: 3
|
|
1056
1056
|
}, 8, ["loading"]);
|
|
1057
1057
|
}
|
|
1058
|
-
const
|
|
1058
|
+
const yt = /* @__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,10 +1137,10 @@ const ae = (e, o) => {
|
|
|
1137
1137
|
"zIndex"
|
|
1138
1138
|
], re = (e, o = []) => {
|
|
1139
1139
|
const t = ta(kl, ...o);
|
|
1140
|
-
return
|
|
1140
|
+
return W(() => 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
|
-
const
|
|
1143
|
+
const Ro = (io = window == null ? void 0 : window.config) == null ? void 0 : io.indicatorURL;
|
|
1144
1144
|
var ro;
|
|
1145
1145
|
(ro = window == null ? void 0 : window.config) != null && ro.uploadPath;
|
|
1146
1146
|
var so;
|
|
@@ -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 = P(Nt, {
|
|
1152
1152
|
// @ts-ignore
|
|
1153
1153
|
// eslint-disable-next-line no-void
|
|
1154
1154
|
onEvent: (a, l) => {
|
|
@@ -1159,13 +1159,13 @@ 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 = P(Nt, {
|
|
1163
1163
|
// @ts-ignore
|
|
1164
1164
|
// eslint-disable-next-line no-void
|
|
1165
1165
|
emitEvent: (l, i) => {
|
|
1166
1166
|
}
|
|
1167
|
-
}), { touchEventId: a } =
|
|
1168
|
-
touchEventId:
|
|
1167
|
+
}), { touchEventId: a } = P(fe, {
|
|
1168
|
+
touchEventId: M("")
|
|
1169
1169
|
});
|
|
1170
1170
|
return (l, i = () => {
|
|
1171
1171
|
}) => function() {
|
|
@@ -1184,30 +1184,30 @@ const Al = ((co = window == null ? void 0 : window.config) == null ? void 0 : co
|
|
|
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
1186
|
const l = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), r = e.length;
|
|
1187
|
-
for (let
|
|
1188
|
-
const S = e[
|
|
1187
|
+
for (let y = 0; y < r; y++) {
|
|
1188
|
+
const S = e[y], C = S[t] || "", d = S[n] || "", u = S[a] || "";
|
|
1189
1189
|
if (l.add(C), i.has(u)) {
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1190
|
+
const m = i.get(u);
|
|
1191
|
+
m.push({ name: C, value: d, ...S }), i.set(u, m);
|
|
1192
1192
|
} else
|
|
1193
1193
|
i.set(u, [{ name: C, value: d, ...S }]);
|
|
1194
1194
|
}
|
|
1195
1195
|
const s = Array.from(l), f = [];
|
|
1196
|
-
for (const [
|
|
1196
|
+
for (const [y, S] of i)
|
|
1197
1197
|
f.push({
|
|
1198
|
-
name:
|
|
1198
|
+
name: y,
|
|
1199
1199
|
data: S
|
|
1200
1200
|
});
|
|
1201
1201
|
return {
|
|
1202
1202
|
dimensions: s,
|
|
1203
1203
|
dataset: f
|
|
1204
1204
|
};
|
|
1205
|
-
}, ao = window.config.requestErrorTip,
|
|
1205
|
+
}, ao = window.config.requestErrorTip, Fe = po.create({
|
|
1206
1206
|
// timeout: 1000 * 15
|
|
1207
1207
|
timeout: 1e3 * 180
|
|
1208
1208
|
});
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
Fe.interceptors.request.use((e) => e, (e) => Promise.reject(e));
|
|
1210
|
+
Fe.interceptors.response.use((e) => {
|
|
1211
1211
|
var o, t, n;
|
|
1212
1212
|
return ao && +((o = e == null ? void 0 : e.data) == null ? void 0 : o.code) == 500 && Be.error({
|
|
1213
1213
|
content: ((t = e == null ? void 0 : e.data) == null ? void 0 : t.msg) || ((n = e == null ? void 0 : e.data) == null ? void 0 : n.message) || "服务器异常",
|
|
@@ -1245,7 +1245,7 @@ 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
|
+
}, ft = (e, o) => typeof e == "string" && typeof o == "string" ? e.toLocaleLowerCase().includes(o.toLocaleLowerCase()) : !1, bt = (e, o) => {
|
|
1249
1249
|
const t = {
|
|
1250
1250
|
dayjs: Ce,
|
|
1251
1251
|
...o
|
|
@@ -1269,13 +1269,13 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1269
1269
|
return e;
|
|
1270
1270
|
for (let s = 0; s < r.length; s++) {
|
|
1271
1271
|
const f = r[s];
|
|
1272
|
-
let
|
|
1273
|
-
const S = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, C =
|
|
1272
|
+
let y = f.slice(1, -1).trim();
|
|
1273
|
+
const S = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, C = y.match(S);
|
|
1274
1274
|
for (let d = 0; d < C.length; d++) {
|
|
1275
|
-
const u = C[d],
|
|
1276
|
-
|
|
1275
|
+
const u = C[d], m = i[u];
|
|
1276
|
+
m != null && (y = y.replace(u, m));
|
|
1277
1277
|
}
|
|
1278
|
-
/\(.*\)/g.test(
|
|
1278
|
+
/\(.*\)/g.test(y) && (y = bt(y, t)), e = e.replace(f, y);
|
|
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 = () => {
|
|
@@ -1287,64 +1287,65 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1287
1287
|
requestParams: l,
|
|
1288
1288
|
requestInterval: i,
|
|
1289
1289
|
isOpenRequestTimer: r
|
|
1290
|
-
} = e, { contextRequestUrl: s, pageMode: f, touchEventId:
|
|
1290
|
+
} = e, { contextRequestUrl: s, pageMode: f, touchEventId: y } = P(fe, {
|
|
1291
1291
|
contextRequestUrl: "",
|
|
1292
1292
|
pageMode: "normal",
|
|
1293
1293
|
touchEventId: ""
|
|
1294
|
-
}), { getGlobalModel: S } =
|
|
1294
|
+
}), { getGlobalModel: S } = P(ye, {
|
|
1295
1295
|
// @ts-ignore
|
|
1296
1296
|
// eslint-disable-next-line no-void
|
|
1297
|
-
getGlobalModel: (
|
|
1297
|
+
getGlobalModel: (m) => {
|
|
1298
1298
|
}
|
|
1299
|
-
}), C = de(t), d = async (
|
|
1299
|
+
}), C = de(t), d = async (m = {}) => {
|
|
1300
1300
|
if (!C || !n || !a || v(f) === "design")
|
|
1301
1301
|
return;
|
|
1302
|
-
let
|
|
1302
|
+
let h = {};
|
|
1303
1303
|
l.forEach((p) => {
|
|
1304
|
-
const { key:
|
|
1304
|
+
const { key: _, value: x } = p;
|
|
1305
1305
|
if (typeof x == "object" && x != null && x.id) {
|
|
1306
1306
|
let c = {};
|
|
1307
|
-
const { id:
|
|
1308
|
-
|
|
1309
|
-
const
|
|
1310
|
-
let
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1307
|
+
const { id: g, prop: k, propKey: R, operate: E } = x;
|
|
1308
|
+
g === "THIS" ? c = S(v(y)) || {} : c = S(g) || {};
|
|
1309
|
+
const T = v(c[k]);
|
|
1310
|
+
let G = null;
|
|
1311
|
+
const J = ["date", "range"].some((N) => ft(c == null ? void 0 : c.type, N)), $ = ["select"].some((N) => ft(c == null ? void 0 : c.type, N));
|
|
1312
|
+
if (J) {
|
|
1313
|
+
const { value: N, type: z, mode: q } = E || {};
|
|
1314
|
+
if (N && z && q)
|
|
1315
|
+
switch (z) {
|
|
1315
1316
|
case "add":
|
|
1316
|
-
|
|
1317
|
+
G = v(T).add(N, q);
|
|
1317
1318
|
break;
|
|
1318
1319
|
case "minus":
|
|
1319
|
-
|
|
1320
|
+
G = v(T).subtract(N, q);
|
|
1320
1321
|
break;
|
|
1321
1322
|
}
|
|
1322
|
-
|
|
1323
|
+
G == null && (G = v(T)), G = (G == null ? void 0 : G.format((R == null ? void 0 : R.trim()) || c.format)) || "";
|
|
1323
1324
|
} else
|
|
1324
|
-
Object.prototype.toString.call(
|
|
1325
|
-
|
|
1325
|
+
$ ? Array.isArray(v(T)) && (G = v(T).join(",")) : Object.prototype.toString.call(T) === "[object Object]" ? G = T[R || "value"] : G = T;
|
|
1326
|
+
h[_] = G;
|
|
1326
1327
|
} else
|
|
1327
|
-
typeof x == "string" && (
|
|
1328
|
-
}),
|
|
1329
|
-
let
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1328
|
+
Array.isArray(x) || typeof x == "string" && (h[_] = de(x));
|
|
1329
|
+
}), h = { ...window.config.requestParams, ...m, ...h };
|
|
1330
|
+
let b = "";
|
|
1331
|
+
const w = Object.keys(h), A = w.length - 1, L = w.length;
|
|
1332
|
+
w.forEach((p, _) => {
|
|
1333
|
+
_ === 0 ? L !== 1 ? b += `?${p}=${h[p]}&` : b += `?${p}=${h[p]}` : _ === A ? b += `${p}=${h[p]}` : b += `${p}=${h[p]}&`;
|
|
1333
1334
|
});
|
|
1334
1335
|
try {
|
|
1335
|
-
const p = ["get", "head"].includes(n),
|
|
1336
|
+
const p = ["get", "head"].includes(n), _ = await Fe({
|
|
1336
1337
|
baseURL: v(s) || "",
|
|
1337
|
-
url: p ? C +
|
|
1338
|
+
url: p ? C + b : C,
|
|
1338
1339
|
method: n,
|
|
1339
1340
|
headers: a,
|
|
1340
|
-
data: p ? {} :
|
|
1341
|
+
data: p ? {} : h
|
|
1341
1342
|
});
|
|
1342
|
-
return o(
|
|
1343
|
+
return o(_), _;
|
|
1343
1344
|
} catch (p) {
|
|
1344
1345
|
console.error(p);
|
|
1345
1346
|
}
|
|
1346
1347
|
}, u = r && setInterval(d, i * 1e3);
|
|
1347
|
-
return
|
|
1348
|
+
return mt(() => {
|
|
1348
1349
|
clearInterval(u);
|
|
1349
1350
|
}), d;
|
|
1350
1351
|
}, Ge = (e = [], o) => {
|
|
@@ -1352,30 +1353,30 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1352
1353
|
t = (t == null ? void 0 : t.trim()) || t;
|
|
1353
1354
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), i = e.length, r = n.length;
|
|
1354
1355
|
if (i === 1) {
|
|
1355
|
-
const
|
|
1356
|
+
const y = [];
|
|
1356
1357
|
for (let C = 0; C < r; C++) {
|
|
1357
|
-
const d = n[C], { label: u, value:
|
|
1358
|
-
a.add(u),
|
|
1358
|
+
const d = n[C], { label: u, value: m } = d, h = { ...e[0], value: e[0][m] };
|
|
1359
|
+
a.add(u), y.push(h);
|
|
1359
1360
|
}
|
|
1360
1361
|
const S = e[0][t] || "";
|
|
1361
|
-
l.set(S,
|
|
1362
|
+
l.set(S, y);
|
|
1362
1363
|
} else
|
|
1363
|
-
for (let
|
|
1364
|
-
const S = e[
|
|
1364
|
+
for (let y = 0; y < i; y++) {
|
|
1365
|
+
const S = e[y], C = S[t];
|
|
1365
1366
|
a.add(C);
|
|
1366
1367
|
for (let d = 0; d < r; d++) {
|
|
1367
|
-
const u = n[d], { label:
|
|
1368
|
-
if (l.has(
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1368
|
+
const u = n[d], { label: m, value: h } = u, b = { ...S, value: S[h] };
|
|
1369
|
+
if (l.has(m)) {
|
|
1370
|
+
const w = l.get(m);
|
|
1371
|
+
w.push(b), l.set(m, w);
|
|
1371
1372
|
} else
|
|
1372
|
-
l.set(
|
|
1373
|
+
l.set(m, [b]);
|
|
1373
1374
|
}
|
|
1374
1375
|
}
|
|
1375
1376
|
const s = Array.from(a), f = [];
|
|
1376
|
-
for (const [
|
|
1377
|
+
for (const [y, S] of l)
|
|
1377
1378
|
f.push({
|
|
1378
|
-
name:
|
|
1379
|
+
name: y,
|
|
1379
1380
|
data: S
|
|
1380
1381
|
});
|
|
1381
1382
|
return {
|
|
@@ -1388,7 +1389,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1388
1389
|
return e;
|
|
1389
1390
|
let t = "";
|
|
1390
1391
|
return e != null && e.includes("://") ? t = e : t = ((n = window == null ? void 0 : window.config) == null ? void 0 : n.uploadPath) + e, o && (t = `url(${t})`), t;
|
|
1391
|
-
},
|
|
1392
|
+
}, Fo = (e, o) => {
|
|
1392
1393
|
const t = `${no}/preview?pageId=${o}`, n = `${no}/${o}`;
|
|
1393
1394
|
return e === "preview" ? t : n;
|
|
1394
1395
|
}, Ne = (e, o) => {
|
|
@@ -1407,14 +1408,14 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1407
1408
|
r = r == null ? void 0 : r.replace(/value/g, o);
|
|
1408
1409
|
try {
|
|
1409
1410
|
let s = r;
|
|
1410
|
-
/\(.*\)/g.test(r) && (s =
|
|
1411
|
+
/\(.*\)/g.test(r) && (s = bt(r)), e = e.replace(i, s);
|
|
1411
1412
|
} catch {
|
|
1412
1413
|
e = e.replace(i, r);
|
|
1413
1414
|
}
|
|
1414
1415
|
}
|
|
1415
1416
|
return e;
|
|
1416
1417
|
}, ot = (e = {}) => {
|
|
1417
|
-
const { requestToken: o } =
|
|
1418
|
+
const { requestToken: o } = P(Do, {
|
|
1418
1419
|
// @ts-ignore
|
|
1419
1420
|
// eslint-disable-next-line no-void
|
|
1420
1421
|
requestToken: () => {
|
|
@@ -1422,12 +1423,12 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1422
1423
|
});
|
|
1423
1424
|
e.dataType === "indicator" && o();
|
|
1424
1425
|
const t = (i = {}) => {
|
|
1425
|
-
const { label: r, name: s, location: f, show:
|
|
1426
|
+
const { label: r, name: s, location: f, show: y, indexCode: S } = i;
|
|
1426
1427
|
return {
|
|
1427
1428
|
label: r,
|
|
1428
1429
|
columnName: s,
|
|
1429
1430
|
location: f,
|
|
1430
|
-
show:
|
|
1431
|
+
show: y,
|
|
1431
1432
|
calcType: "COLUMN",
|
|
1432
1433
|
hrpIndexCode: S
|
|
1433
1434
|
};
|
|
@@ -1436,30 +1437,30 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1436
1437
|
label: r,
|
|
1437
1438
|
name: s,
|
|
1438
1439
|
location: f,
|
|
1439
|
-
show:
|
|
1440
|
+
show: y,
|
|
1440
1441
|
indexCode: S,
|
|
1441
1442
|
calcType: C = "COLUMN",
|
|
1442
1443
|
builtInFormula: d,
|
|
1443
1444
|
builtInValueSource: u,
|
|
1444
|
-
builtInCalcWay:
|
|
1445
|
-
formula:
|
|
1446
|
-
conditions:
|
|
1445
|
+
builtInCalcWay: m,
|
|
1446
|
+
formula: h,
|
|
1447
|
+
conditions: b
|
|
1447
1448
|
} = i;
|
|
1448
1449
|
return {
|
|
1449
1450
|
label: r,
|
|
1450
1451
|
columnName: s,
|
|
1451
1452
|
location: f,
|
|
1452
|
-
show:
|
|
1453
|
+
show: y,
|
|
1453
1454
|
calcType: C,
|
|
1454
1455
|
hrpIndexCode: S,
|
|
1455
1456
|
aggregate: "SUM",
|
|
1456
1457
|
builtInFormula: d,
|
|
1457
1458
|
builtInValueSource: u,
|
|
1458
|
-
builtInCalcWay:
|
|
1459
|
-
formula:
|
|
1460
|
-
conditions:
|
|
1459
|
+
builtInCalcWay: m,
|
|
1460
|
+
formula: h,
|
|
1461
|
+
conditions: b
|
|
1461
1462
|
};
|
|
1462
|
-
}, { getGlobalModel: a } =
|
|
1463
|
+
}, { getGlobalModel: a } = P(ye, {
|
|
1463
1464
|
// @ts-ignore
|
|
1464
1465
|
// eslint-disable-next-line no-void
|
|
1465
1466
|
getGlobalModel: (i) => {
|
|
@@ -1467,35 +1468,35 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1467
1468
|
}), l = (i = []) => {
|
|
1468
1469
|
var f;
|
|
1469
1470
|
const r = i.length, s = [];
|
|
1470
|
-
for (let
|
|
1471
|
-
const S = i[
|
|
1471
|
+
for (let y = 0; y < r; y++) {
|
|
1472
|
+
const S = i[y], {
|
|
1472
1473
|
id: C,
|
|
1473
1474
|
conditionLabel: d,
|
|
1474
1475
|
conditionKey: u,
|
|
1475
|
-
conditionValueType:
|
|
1476
|
-
} = S,
|
|
1476
|
+
conditionValueType: m
|
|
1477
|
+
} = S, h = {
|
|
1477
1478
|
rule: "NONE",
|
|
1478
1479
|
label: d,
|
|
1479
1480
|
fieldName: u,
|
|
1480
1481
|
fieldValue: "",
|
|
1481
1482
|
// 在关联控件中取
|
|
1482
|
-
valueType:
|
|
1483
|
-
},
|
|
1484
|
-
if (
|
|
1485
|
-
const { value:
|
|
1486
|
-
|
|
1483
|
+
valueType: m
|
|
1484
|
+
}, b = a(C) || {};
|
|
1485
|
+
if (ft(b.type, "date")) {
|
|
1486
|
+
const { value: w, format: A } = b || {};
|
|
1487
|
+
h.fieldValue = (f = v(w)) == null ? void 0 : f.format(A), h.dateFormat = A;
|
|
1487
1488
|
}
|
|
1488
|
-
s.push(
|
|
1489
|
+
s.push(h);
|
|
1489
1490
|
}
|
|
1490
1491
|
return s;
|
|
1491
1492
|
};
|
|
1492
1493
|
return async () => {
|
|
1493
|
-
var
|
|
1494
|
+
var E;
|
|
1494
1495
|
const { graphicConfig: i, type: r } = e;
|
|
1495
1496
|
let {
|
|
1496
1497
|
source: s,
|
|
1497
1498
|
dataViewId: f,
|
|
1498
|
-
plugin:
|
|
1499
|
+
plugin: y = "1",
|
|
1499
1500
|
// 插件类型
|
|
1500
1501
|
layer: S,
|
|
1501
1502
|
// 后台图表类型,值分0,1
|
|
@@ -1503,30 +1504,30 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1503
1504
|
// 前端图表类型,实测没用
|
|
1504
1505
|
classificationList: d = [],
|
|
1505
1506
|
seriesList: u = [],
|
|
1506
|
-
leftAxisList:
|
|
1507
|
-
rightAxisList:
|
|
1508
|
-
queryColumnList:
|
|
1509
|
-
indicators:
|
|
1510
|
-
controlList:
|
|
1511
|
-
dataSourceId:
|
|
1507
|
+
leftAxisList: m = [],
|
|
1508
|
+
rightAxisList: h = [],
|
|
1509
|
+
queryColumnList: b = [],
|
|
1510
|
+
indicators: w = [],
|
|
1511
|
+
controlList: A = [],
|
|
1512
|
+
dataSourceId: L,
|
|
1512
1513
|
// 所属数据源ID
|
|
1513
1514
|
idxLibMode: p,
|
|
1514
1515
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
1515
|
-
preview:
|
|
1516
|
+
preview: _ = !1
|
|
1516
1517
|
// 预览开关
|
|
1517
1518
|
} = i || {};
|
|
1518
|
-
S == null && (
|
|
1519
|
+
S == null && (ft(r, "table") ? S = "1" : S = "2");
|
|
1519
1520
|
let x;
|
|
1520
1521
|
if (Array.isArray(d) && d.length > 0) {
|
|
1521
|
-
const
|
|
1522
|
-
for (let
|
|
1523
|
-
const J = d[
|
|
1524
|
-
if (z ||
|
|
1522
|
+
const T = d.length;
|
|
1523
|
+
for (let G = 0; G < T; G++) {
|
|
1524
|
+
const J = d[G] || {}, { label: $ = "", name: N = "", show: z = !1, sort: q, customGroup: X, conditions: ie } = J;
|
|
1525
|
+
if (z || T === 1) {
|
|
1525
1526
|
x = {
|
|
1526
|
-
label:
|
|
1527
|
-
columnName:
|
|
1527
|
+
label: $,
|
|
1528
|
+
columnName: N,
|
|
1528
1529
|
show: z,
|
|
1529
|
-
sort:
|
|
1530
|
+
sort: q,
|
|
1530
1531
|
customGroup: X,
|
|
1531
1532
|
conditions: ie
|
|
1532
1533
|
};
|
|
@@ -1536,15 +1537,15 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1536
1537
|
}
|
|
1537
1538
|
let c;
|
|
1538
1539
|
if (Array.isArray(u) && u.length > 0) {
|
|
1539
|
-
const
|
|
1540
|
-
for (let
|
|
1541
|
-
const J = u[
|
|
1542
|
-
if (z ||
|
|
1540
|
+
const T = u.length;
|
|
1541
|
+
for (let G = 0; G < T; G++) {
|
|
1542
|
+
const J = u[G] || {}, { label: $ = "", name: N = "", show: z = !1, sort: q, customGroup: X, conditions: ie } = J;
|
|
1543
|
+
if (z || T === 1) {
|
|
1543
1544
|
c = {
|
|
1544
|
-
label:
|
|
1545
|
-
columnName:
|
|
1545
|
+
label: $,
|
|
1546
|
+
columnName: N,
|
|
1546
1547
|
show: z,
|
|
1547
|
-
sort:
|
|
1548
|
+
sort: q,
|
|
1548
1549
|
customGroup: X,
|
|
1549
1550
|
conditions: ie
|
|
1550
1551
|
};
|
|
@@ -1552,53 +1553,53 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1552
1553
|
}
|
|
1553
1554
|
}
|
|
1554
1555
|
}
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1557
|
-
|
|
1556
|
+
const g = [];
|
|
1557
|
+
b == null || b.forEach((T) => {
|
|
1558
|
+
g.push(t(T));
|
|
1558
1559
|
});
|
|
1559
1560
|
const k = [];
|
|
1560
|
-
if (
|
|
1561
|
-
|
|
1562
|
-
}),
|
|
1563
|
-
|
|
1564
|
-
}),
|
|
1565
|
-
|
|
1566
|
-
}), S === "1" &&
|
|
1561
|
+
if (m == null || m.forEach((T) => {
|
|
1562
|
+
T.location = "LEFT", k.push(n(T));
|
|
1563
|
+
}), h == null || h.forEach((T) => {
|
|
1564
|
+
T.location = "RIGHT", k.push(n(T));
|
|
1565
|
+
}), w == null || w.forEach((T) => {
|
|
1566
|
+
T.location = "LEFT", k.push(n(T));
|
|
1567
|
+
}), S === "1" && g.length === 0)
|
|
1567
1568
|
return;
|
|
1568
1569
|
if (S === "2" && k.length === 0)
|
|
1569
1570
|
return;
|
|
1570
|
-
let
|
|
1571
|
-
(i == null ? void 0 : i.pageMode) === "design" ?
|
|
1571
|
+
let R;
|
|
1572
|
+
(i == null ? void 0 : i.pageMode) === "design" ? R = i.sqlConditions ?? [] : R = l(A);
|
|
1572
1573
|
try {
|
|
1573
|
-
return await
|
|
1574
|
-
`${
|
|
1574
|
+
return await Fe.post(
|
|
1575
|
+
`${Ro}/diagram`,
|
|
1575
1576
|
{
|
|
1576
1577
|
source: s,
|
|
1577
1578
|
dataViewId: f,
|
|
1578
|
-
plugin:
|
|
1579
|
+
plugin: y,
|
|
1579
1580
|
layer: S,
|
|
1580
1581
|
chartType: C,
|
|
1581
1582
|
classification: x,
|
|
1582
1583
|
series: c,
|
|
1583
1584
|
indicatorList: k,
|
|
1584
|
-
queryColumns:
|
|
1585
|
+
queryColumns: g,
|
|
1585
1586
|
pageFlag: !0,
|
|
1586
|
-
sqlConditions:
|
|
1587
|
+
sqlConditions: R,
|
|
1587
1588
|
// fixedDimSql: '',
|
|
1588
|
-
dataSourceId:
|
|
1589
|
+
dataSourceId: L,
|
|
1589
1590
|
idxLibMode: p,
|
|
1590
|
-
preview:
|
|
1591
|
+
preview: _
|
|
1591
1592
|
},
|
|
1592
1593
|
{
|
|
1593
1594
|
headers: {
|
|
1594
1595
|
// @ts-ignore
|
|
1595
|
-
Authentication: (
|
|
1596
|
+
Authentication: (E = window == null ? void 0 : window.config) == null ? void 0 : E.indicatorToken,
|
|
1596
1597
|
operateContext: "ygt"
|
|
1597
1598
|
}
|
|
1598
1599
|
}
|
|
1599
1600
|
);
|
|
1600
|
-
} catch (
|
|
1601
|
-
console.error(
|
|
1601
|
+
} catch (T) {
|
|
1602
|
+
console.error(T);
|
|
1602
1603
|
}
|
|
1603
1604
|
};
|
|
1604
1605
|
}, Ll = () => {
|
|
@@ -1620,28 +1621,28 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1620
1621
|
...Eo
|
|
1621
1622
|
},
|
|
1622
1623
|
setup(e) {
|
|
1623
|
-
const o =
|
|
1624
|
+
const o = W(() => ({
|
|
1624
1625
|
width: e.width,
|
|
1625
1626
|
height: e.height,
|
|
1626
1627
|
backgroundColor: e.backgroundColor,
|
|
1627
1628
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
1628
1629
|
backgroundSize: e.backgroundSize
|
|
1629
|
-
})), t =
|
|
1630
|
+
})), t = M(0), n = M(0), a = M(0), l = M(0), i = M(!1), r = M();
|
|
1630
1631
|
let s;
|
|
1631
|
-
const f = () => new Promise((
|
|
1632
|
-
|
|
1633
|
-
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, n.value = r.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height),
|
|
1632
|
+
const f = () => new Promise((m) => {
|
|
1633
|
+
gt(() => {
|
|
1634
|
+
e.width && e.height ? (t.value = parseFloat(e.width), n.value = parseFloat(e.height)) : (t.value = r.value.clientWidth, n.value = r.value.clientHeight), (!a.value || !l.value) && (a.value = window.screen.width, l.value = window.screen.height), m();
|
|
1634
1635
|
});
|
|
1635
|
-
}),
|
|
1636
|
+
}), y = () => {
|
|
1636
1637
|
t.value && n.value ? (r.value.style.width = `${t.value}px`, r.value.style.height = `${n.value}px`) : (r.value.style.width = `${a.value}px`, r.value.style.height = `${l.value}px`);
|
|
1637
1638
|
}, S = () => {
|
|
1638
|
-
const
|
|
1639
|
-
r.value && (r.value.style.transform = `scale(${
|
|
1640
|
-
}, C =
|
|
1639
|
+
const m = document.body.clientWidth, h = document.body.clientHeight, b = t.value || a.value, w = n.value || l.value, A = m / b, L = h / w;
|
|
1640
|
+
r.value && (r.value.style.transform = `scale(${A}, ${L})`);
|
|
1641
|
+
}, C = Rt(async () => {
|
|
1641
1642
|
await f(), S();
|
|
1642
1643
|
}, 100), d = () => {
|
|
1643
|
-
const
|
|
1644
|
-
s = new
|
|
1644
|
+
const m = window.MutationObserver;
|
|
1645
|
+
s = new m(C), s.observe(r.value, {
|
|
1645
1646
|
attributes: !0,
|
|
1646
1647
|
attributeFilter: ["style"],
|
|
1647
1648
|
attributeOldValue: !0
|
|
@@ -1650,8 +1651,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1650
1651
|
s && (s.disconnect(), s.takeRecords(), s = null);
|
|
1651
1652
|
};
|
|
1652
1653
|
return Ue(async () => {
|
|
1653
|
-
i.value = !1, await f(),
|
|
1654
|
-
}),
|
|
1654
|
+
i.value = !1, await f(), y(), S(), window.addEventListener("resize", C), d(), i.value = !0;
|
|
1655
|
+
}), mt(() => {
|
|
1655
1656
|
window.removeEventListener("resize", C), u();
|
|
1656
1657
|
}), {
|
|
1657
1658
|
style: o,
|
|
@@ -1665,13 +1666,13 @@ const Ml = {
|
|
|
1665
1666
|
ref: "container"
|
|
1666
1667
|
};
|
|
1667
1668
|
function El(e, o, t, n, a, l) {
|
|
1668
|
-
return
|
|
1669
|
-
e.ready ? (
|
|
1669
|
+
return D(), F("div", Ml, [
|
|
1670
|
+
e.ready ? (D(), F("div", {
|
|
1670
1671
|
key: 0,
|
|
1671
1672
|
class: "page-config",
|
|
1672
1673
|
style: U(e.style)
|
|
1673
1674
|
}, [
|
|
1674
|
-
|
|
1675
|
+
ht(e.$slots, "default", {}, void 0, !0)
|
|
1675
1676
|
], 4)) : ve("", !0)
|
|
1676
1677
|
], 512);
|
|
1677
1678
|
}
|
|
@@ -1680,7 +1681,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1680
1681
|
pageMode: "normal",
|
|
1681
1682
|
theme: "light",
|
|
1682
1683
|
containerMap: {}
|
|
1683
|
-
}, $o = le(zo),
|
|
1684
|
+
}, $o = le(zo), Rl = Q({
|
|
1684
1685
|
name: "EcanProviderConfig",
|
|
1685
1686
|
inheritAttrs: !1,
|
|
1686
1687
|
props: {
|
|
@@ -1688,7 +1689,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1688
1689
|
},
|
|
1689
1690
|
setup(e, { expose: o }) {
|
|
1690
1691
|
Ll();
|
|
1691
|
-
const t =
|
|
1692
|
+
const t = M(), n = () => {
|
|
1692
1693
|
t.value.setAttribute("datav-theme", e.theme);
|
|
1693
1694
|
};
|
|
1694
1695
|
ne(() => e.theme, () => {
|
|
@@ -1696,7 +1697,7 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1696
1697
|
}), Ue(() => {
|
|
1697
1698
|
n();
|
|
1698
1699
|
});
|
|
1699
|
-
const a =
|
|
1700
|
+
const a = W(() => de(e.contextRequestUrl)), l = W(() => e.pageMode), i = W(() => e.theme), r = M("");
|
|
1700
1701
|
ze(fe, {
|
|
1701
1702
|
// 请求地址
|
|
1702
1703
|
contextRequestUrl: a,
|
|
@@ -1706,143 +1707,143 @@ const Dl = /* @__PURE__ */ K(Il, [["render", El], ["__scopeId", "data-v-242d350e
|
|
|
1706
1707
|
theme: i,
|
|
1707
1708
|
touchEventId: r
|
|
1708
1709
|
});
|
|
1709
|
-
const s = /* @__PURE__ */ new Map(), f = (
|
|
1710
|
+
const s = /* @__PURE__ */ new Map(), f = ($) => s.get($);
|
|
1710
1711
|
ze(ye, {
|
|
1711
1712
|
getGlobalModel: f,
|
|
1712
|
-
setGlobalModel: (
|
|
1713
|
-
s.set(
|
|
1713
|
+
setGlobalModel: ($, N) => {
|
|
1714
|
+
s.set($, N);
|
|
1714
1715
|
}
|
|
1715
1716
|
});
|
|
1716
1717
|
const S = [], C = () => {
|
|
1717
1718
|
S.pop();
|
|
1718
|
-
}, d = (
|
|
1719
|
-
S.push(
|
|
1720
|
-
}, u = /* @__PURE__ */ new Map(),
|
|
1719
|
+
}, d = ($) => {
|
|
1720
|
+
S.push($);
|
|
1721
|
+
}, u = /* @__PURE__ */ new Map(), m = ($) => u.get($);
|
|
1721
1722
|
ze(Oo, {
|
|
1722
1723
|
popUseModalIds: C,
|
|
1723
1724
|
pushUseModalIds: d,
|
|
1724
|
-
getModalModel:
|
|
1725
|
-
setModalModel: (
|
|
1726
|
-
u.set(
|
|
1725
|
+
getModalModel: m,
|
|
1726
|
+
setModalModel: ($, N) => {
|
|
1727
|
+
u.set($, N);
|
|
1727
1728
|
}
|
|
1728
1729
|
});
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1731
|
-
|
|
1730
|
+
const b = oa(), w = /* @__PURE__ */ new Set(), A = ($, N) => {
|
|
1731
|
+
w.add($), b.on($, (z) => typeof N[z] == "function" && N[z]()), Lt(() => {
|
|
1732
|
+
L($);
|
|
1732
1733
|
});
|
|
1733
|
-
},
|
|
1734
|
-
|
|
1734
|
+
}, L = ($) => {
|
|
1735
|
+
w.delete($), b.off($);
|
|
1735
1736
|
};
|
|
1736
1737
|
ze(Nt, {
|
|
1737
|
-
onEvent:
|
|
1738
|
-
offEvent:
|
|
1739
|
-
emitEvent: (
|
|
1740
|
-
if (
|
|
1738
|
+
onEvent: A,
|
|
1739
|
+
offEvent: L,
|
|
1740
|
+
emitEvent: ($, N) => {
|
|
1741
|
+
if ($ === "PAGE") {
|
|
1741
1742
|
const z = S.length;
|
|
1742
|
-
let
|
|
1743
|
+
let q = [];
|
|
1743
1744
|
if (z === 0)
|
|
1744
|
-
|
|
1745
|
+
q = [...w];
|
|
1745
1746
|
else {
|
|
1746
1747
|
const X = S[z - 1];
|
|
1747
|
-
|
|
1748
|
+
q = [...m(X)];
|
|
1748
1749
|
}
|
|
1749
|
-
|
|
1750
|
-
|
|
1750
|
+
q.forEach((X) => {
|
|
1751
|
+
b.emit(X, N);
|
|
1751
1752
|
});
|
|
1752
1753
|
} else
|
|
1753
|
-
|
|
1754
|
+
b.emit($, N);
|
|
1754
1755
|
}
|
|
1755
1756
|
});
|
|
1756
|
-
const
|
|
1757
|
+
const _ = M(0);
|
|
1757
1758
|
ze(Do, {
|
|
1758
1759
|
requestToken: () => {
|
|
1759
|
-
|
|
1760
|
+
_.value = v(_) + 1;
|
|
1760
1761
|
}
|
|
1761
1762
|
});
|
|
1762
|
-
const c = /* @__PURE__ */ new Map(),
|
|
1763
|
-
}, sortNum:
|
|
1764
|
-
if (c.has(
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1763
|
+
const c = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), k = ({ requestFn: $ = () => {
|
|
1764
|
+
}, sortNum: N = 0, id: z = "" }) => {
|
|
1765
|
+
if (c.has(N)) {
|
|
1766
|
+
const q = c.get(N);
|
|
1767
|
+
q == null || q.push($);
|
|
1767
1768
|
} else
|
|
1768
|
-
c.set(
|
|
1769
|
-
|
|
1770
|
-
},
|
|
1771
|
-
const
|
|
1772
|
-
Promise.all(
|
|
1773
|
-
|
|
1769
|
+
c.set(N, [$]);
|
|
1770
|
+
g.set(z, $);
|
|
1771
|
+
}, R = ($) => new Promise((N, z) => {
|
|
1772
|
+
const q = $.map((X) => X());
|
|
1773
|
+
Promise.all(q).then((X) => {
|
|
1774
|
+
N(X);
|
|
1774
1775
|
}).catch((X) => {
|
|
1775
1776
|
z(X);
|
|
1776
1777
|
});
|
|
1777
|
-
}),
|
|
1778
|
+
}), E = async () => {
|
|
1778
1779
|
var z;
|
|
1779
|
-
const
|
|
1780
|
+
const $ = await po.get(`${Ro}/user/anonymous?username=admin&businessOfficeId=350421`, {
|
|
1780
1781
|
headers: {
|
|
1781
1782
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1782
1783
|
current_context: "ygt",
|
|
1783
1784
|
Authentication: ""
|
|
1784
1785
|
}
|
|
1785
|
-
}), { token:
|
|
1786
|
-
window.config.indicatorToken =
|
|
1787
|
-
},
|
|
1788
|
-
if (
|
|
1789
|
-
if (typeof
|
|
1790
|
-
const
|
|
1791
|
-
if (typeof
|
|
1792
|
-
const X =
|
|
1793
|
-
|
|
1786
|
+
}), { token: N } = ((z = $.data) == null ? void 0 : z.data) || {};
|
|
1787
|
+
window.config.indicatorToken = N;
|
|
1788
|
+
}, T = ($) => new Promise(async (N, z) => {
|
|
1789
|
+
if ($) {
|
|
1790
|
+
if (typeof $ == "string") {
|
|
1791
|
+
const q = g.get($);
|
|
1792
|
+
if (typeof q == "function") {
|
|
1793
|
+
const X = Fe.interceptors.response.use((ie) => (N(ie), ie), (ie) => (z(ie), Promise.reject(ie)));
|
|
1794
|
+
q(), Fe.interceptors.response.eject(X);
|
|
1794
1795
|
}
|
|
1795
1796
|
}
|
|
1796
1797
|
} else {
|
|
1797
|
-
const
|
|
1798
|
-
|
|
1799
|
-
const X =
|
|
1798
|
+
const q = Array.from(c);
|
|
1799
|
+
q.sort((ie, at) => at[0] - ie[0]);
|
|
1800
|
+
const X = q.length;
|
|
1800
1801
|
try {
|
|
1801
|
-
e.pageMode !== "design" && v(
|
|
1802
|
+
e.pageMode !== "design" && v(_) > 0 && await E();
|
|
1802
1803
|
for (let ie = 0; ie < X; ie++) {
|
|
1803
|
-
const at =
|
|
1804
|
-
await
|
|
1804
|
+
const at = q[ie][1];
|
|
1805
|
+
await R(at);
|
|
1805
1806
|
}
|
|
1806
1807
|
} catch (ie) {
|
|
1807
1808
|
console.error(ie);
|
|
1808
1809
|
} finally {
|
|
1809
|
-
c.clear(),
|
|
1810
|
+
c.clear(), N(null);
|
|
1810
1811
|
}
|
|
1811
1812
|
}
|
|
1812
1813
|
});
|
|
1813
1814
|
ze(Se, {
|
|
1814
1815
|
setRequest: k,
|
|
1815
|
-
touchRequest:
|
|
1816
|
+
touchRequest: T
|
|
1816
1817
|
}), ze(Je, {
|
|
1817
1818
|
emitRefreshPage: () => {
|
|
1818
|
-
|
|
1819
|
+
b.emit(Je);
|
|
1819
1820
|
}
|
|
1820
1821
|
});
|
|
1821
|
-
const J = (
|
|
1822
|
-
|
|
1823
|
-
|
|
1822
|
+
const J = ($) => {
|
|
1823
|
+
b.on(Je, () => $()), Ue(() => {
|
|
1824
|
+
b.off(Je);
|
|
1824
1825
|
});
|
|
1825
1826
|
};
|
|
1826
|
-
return
|
|
1827
|
-
c == null || c.clear(),
|
|
1827
|
+
return Lt(() => {
|
|
1828
|
+
c == null || c.clear(), g == null || g.clear();
|
|
1828
1829
|
}), o({
|
|
1829
|
-
touchRequest:
|
|
1830
|
+
touchRequest: T,
|
|
1830
1831
|
getGlobalModel: f,
|
|
1831
1832
|
onRefreshPage: J
|
|
1832
1833
|
}), {
|
|
1833
1834
|
providerConfig: t
|
|
1834
1835
|
};
|
|
1835
1836
|
}
|
|
1836
|
-
}),
|
|
1837
|
+
}), Fl = {
|
|
1837
1838
|
id: "ProviderConfig",
|
|
1838
1839
|
ref: "providerConfig"
|
|
1839
1840
|
};
|
|
1840
1841
|
function zl(e, o, t, n, a, l) {
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1842
|
+
return D(), F("div", Fl, [
|
|
1843
|
+
ht(e.$slots, "default")
|
|
1843
1844
|
], 512);
|
|
1844
1845
|
}
|
|
1845
|
-
const $l = /* @__PURE__ */ K(
|
|
1846
|
+
const $l = /* @__PURE__ */ K(Rl, [["render", zl]]), Nl = ae($l), No = {
|
|
1846
1847
|
...se,
|
|
1847
1848
|
name: "文本",
|
|
1848
1849
|
keyName: "文本",
|
|
@@ -1868,47 +1869,47 @@ const $l = /* @__PURE__ */ K(Fl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1868
1869
|
linkPage: ""
|
|
1869
1870
|
}, 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({
|
|
1870
1871
|
name: "EcanText",
|
|
1871
|
-
components: { Skeleton:
|
|
1872
|
+
components: { Skeleton: yt },
|
|
1872
1873
|
props: {
|
|
1873
1874
|
...Po
|
|
1874
1875
|
},
|
|
1875
1876
|
setup(e) {
|
|
1876
|
-
const o = re(e), t =
|
|
1877
|
+
const o = re(e), t = M({});
|
|
1877
1878
|
ne(() => [e.data, e.dataType], ([C, d]) => {
|
|
1878
1879
|
d === "static" && (t.value = C);
|
|
1879
1880
|
}, {
|
|
1880
1881
|
immediate: !0
|
|
1881
1882
|
});
|
|
1882
|
-
const n =
|
|
1883
|
-
var
|
|
1883
|
+
const n = W(() => {
|
|
1884
|
+
var m;
|
|
1884
1885
|
const C = v(t);
|
|
1885
1886
|
let d = e.text;
|
|
1886
1887
|
d = d == null ? void 0 : d.replace(/\n|\\n/g, "<br/>"), d = d == null ? void 0 : d.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
1887
1888
|
const u = d.match(/\{(.+?)\}/g);
|
|
1888
1889
|
if (u == null || u.length === 0)
|
|
1889
1890
|
return d;
|
|
1890
|
-
for (let
|
|
1891
|
-
const
|
|
1892
|
-
let
|
|
1893
|
-
const
|
|
1894
|
-
for (let
|
|
1895
|
-
const x =
|
|
1896
|
-
c && (
|
|
1891
|
+
for (let h = 0; h < u.length; h++) {
|
|
1892
|
+
const b = u[h], w = (m = b == null ? void 0 : b.slice(1, b.length - 1)) == null ? void 0 : m.trim();
|
|
1893
|
+
let A = w;
|
|
1894
|
+
const L = w.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
1895
|
+
for (let _ = 0; _ < L.length; _++) {
|
|
1896
|
+
const x = L[_], c = C[x];
|
|
1897
|
+
c && (A = w.replace(x, c));
|
|
1897
1898
|
}
|
|
1898
|
-
if (/\(.*\)/g.test(
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1899
|
+
if (/\(.*\)/g.test(A)) {
|
|
1900
|
+
const _ = bt(A);
|
|
1901
|
+
_ != null && (A = _);
|
|
1901
1902
|
}
|
|
1902
|
-
let p =
|
|
1903
|
-
if (p ===
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1903
|
+
let p = A;
|
|
1904
|
+
if (p === w && (p = e.variableDefaultValue), p != null) {
|
|
1905
|
+
const _ = e.format;
|
|
1906
|
+
_ === "percentage" ? (p = +p, isNaN(p) ? d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : p >= 0 ? (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Bl}"/>${p}%</span>`)) : (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+p)}%</span>`))) : e.format === "percent" ? (p = +p, isNaN(p) || (p = (p * 100).toFixed(2), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}%</span>`))) : e.format === "money" ? (p = +p, isNaN(p) || (p = Pt(p), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`))) : _ === "thousands" ? (p = +p, isNaN(p) || (p = Tl(p), d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`))) : d = d.replace(b, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${p}</span>`);
|
|
1906
1907
|
}
|
|
1907
1908
|
}
|
|
1908
1909
|
return `<span>${d}</span>`;
|
|
1909
|
-
}), { pageMode: a } =
|
|
1910
|
+
}), { pageMode: a } = P(fe, {
|
|
1910
1911
|
pageMode: "normal"
|
|
1911
|
-
}), l = _e(e), i =
|
|
1912
|
+
}), l = _e(e), i = M(!1), r = async () => {
|
|
1912
1913
|
var C;
|
|
1913
1914
|
if (v(a) !== "design")
|
|
1914
1915
|
try {
|
|
@@ -1926,7 +1927,7 @@ const $l = /* @__PURE__ */ K(Fl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1926
1927
|
he(e, {
|
|
1927
1928
|
refreshData: s
|
|
1928
1929
|
});
|
|
1929
|
-
const { setRequest: f } =
|
|
1930
|
+
const { setRequest: f } = P(Se, {
|
|
1930
1931
|
// @ts-ignore
|
|
1931
1932
|
// eslint-disable-next-line no-void
|
|
1932
1933
|
setRequest: ({ id: C, sortNum: d, requestFn: u }) => {
|
|
@@ -1942,11 +1943,11 @@ const $l = /* @__PURE__ */ K(Fl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1942
1943
|
const S = me(e)("click", () => {
|
|
1943
1944
|
if (!e.linkPage && !e.href)
|
|
1944
1945
|
return;
|
|
1945
|
-
const C = e.linkPage || "", d =
|
|
1946
|
-
let
|
|
1947
|
-
|
|
1948
|
-
const
|
|
1949
|
-
|
|
1946
|
+
const C = e.linkPage || "", d = Fo(v(a), C), u = e.href;
|
|
1947
|
+
let m = u || d;
|
|
1948
|
+
m = de(m);
|
|
1949
|
+
const h = e.target;
|
|
1950
|
+
h && (h !== "event" ? window.open(m, "_" + h) : window.parent.postMessage({
|
|
1950
1951
|
type: "openPage",
|
|
1951
1952
|
url: u
|
|
1952
1953
|
}, "*"));
|
|
@@ -1962,13 +1963,13 @@ const $l = /* @__PURE__ */ K(Fl, [["render", zl]]), Nl = ae($l), No = {
|
|
|
1962
1963
|
const ql = ["innerHTML"];
|
|
1963
1964
|
function jl(e, o, t, n, a, l) {
|
|
1964
1965
|
const i = H("skeleton");
|
|
1965
|
-
return e.loading ? (
|
|
1966
|
+
return e.loading ? (D(), F("div", {
|
|
1966
1967
|
key: 0,
|
|
1967
1968
|
class: "skeleton-wrapper",
|
|
1968
1969
|
style: U(e.style)
|
|
1969
1970
|
}, [
|
|
1970
|
-
|
|
1971
|
-
], 4)) : (
|
|
1971
|
+
j(i, { loading: e.loading }, null, 8, ["loading"])
|
|
1972
|
+
], 4)) : (D(), F("div", {
|
|
1972
1973
|
key: 1,
|
|
1973
1974
|
class: "ecan-text",
|
|
1974
1975
|
style: U(e.style),
|
|
@@ -1980,13 +1981,13 @@ const Wl = /* @__PURE__ */ K(Gl, [["render", jl], ["__scopeId", "data-v-f9ba6c3f
|
|
|
1980
1981
|
name: "EcanScrollText",
|
|
1981
1982
|
setup() {
|
|
1982
1983
|
return {
|
|
1983
|
-
text:
|
|
1984
|
+
text: M("基础文本")
|
|
1984
1985
|
};
|
|
1985
1986
|
}
|
|
1986
1987
|
});
|
|
1987
1988
|
const Zl = { class: "red" };
|
|
1988
1989
|
function Jl(e, o, t, n, a, l) {
|
|
1989
|
-
return
|
|
1990
|
+
return D(), F("div", Zl, be(e.text), 1);
|
|
1990
1991
|
}
|
|
1991
1992
|
const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e"]]), Ql = ae(Yl), Bo = {
|
|
1992
1993
|
...se,
|
|
@@ -2009,7 +2010,7 @@ const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2009
2010
|
...Uo
|
|
2010
2011
|
},
|
|
2011
2012
|
setup(e) {
|
|
2012
|
-
const o = re(e), t =
|
|
2013
|
+
const o = re(e), t = M(Ce().format(e.format));
|
|
2013
2014
|
let n = null;
|
|
2014
2015
|
const a = () => {
|
|
2015
2016
|
clearInterval(n), n = null;
|
|
@@ -2020,7 +2021,7 @@ const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2020
2021
|
};
|
|
2021
2022
|
return Ue(() => {
|
|
2022
2023
|
l();
|
|
2023
|
-
}),
|
|
2024
|
+
}), mt(() => {
|
|
2024
2025
|
a();
|
|
2025
2026
|
}), {
|
|
2026
2027
|
style: o,
|
|
@@ -2029,7 +2030,7 @@ const Yl = /* @__PURE__ */ K(Hl, [["render", Jl], ["__scopeId", "data-v-4dd9c03e
|
|
|
2029
2030
|
}
|
|
2030
2031
|
});
|
|
2031
2032
|
function Xl(e, o, t, n, a, l) {
|
|
2032
|
-
return
|
|
2033
|
+
return D(), F("div", {
|
|
2033
2034
|
class: "time-display",
|
|
2034
2035
|
style: U(e.style)
|
|
2035
2036
|
}, be(e.time), 5);
|
|
@@ -2069,54 +2070,54 @@ const ei = /* @__PURE__ */ K(Kl, [["render", Xl], ["__scopeId", "data-v-47d57d2d
|
|
|
2069
2070
|
]
|
|
2070
2071
|
}, qo = le(Go), oi = ["refreshData", "click"], ni = Q({
|
|
2071
2072
|
name: "EcanList",
|
|
2072
|
-
components: { Skeleton:
|
|
2073
|
+
components: { Skeleton: yt },
|
|
2073
2074
|
props: {
|
|
2074
2075
|
...qo
|
|
2075
2076
|
},
|
|
2076
2077
|
setup(e) {
|
|
2077
|
-
const o =
|
|
2078
|
+
const o = M(e.data), t = re(e, ["backgroundColor"]), n = W(() => e.useRanking ? {
|
|
2078
2079
|
textAlign: "center"
|
|
2079
2080
|
} : {
|
|
2080
2081
|
textAlign: "left"
|
|
2081
|
-
}), a = (u,
|
|
2082
|
+
}), a = (u, m) => m == null || m === "" ? u : {
|
|
2082
2083
|
money: Pt,
|
|
2083
2084
|
percentage: ut,
|
|
2084
2085
|
contrast: ut
|
|
2085
|
-
}[
|
|
2086
|
-
const
|
|
2087
|
-
if (
|
|
2086
|
+
}[m](u) || "", l = (u, m) => {
|
|
2087
|
+
const h = parseFloat(u + "");
|
|
2088
|
+
if (m !== "contrast")
|
|
2088
2089
|
return "";
|
|
2089
2090
|
switch (!0) {
|
|
2090
|
-
case
|
|
2091
|
+
case h >= 0:
|
|
2091
2092
|
return "goUp";
|
|
2092
|
-
case
|
|
2093
|
+
case h < 0:
|
|
2093
2094
|
return "goDown";
|
|
2094
2095
|
}
|
|
2095
|
-
}, i = _e(e), { pageMode: r } =
|
|
2096
|
+
}, i = _e(e), { pageMode: r } = P(fe, {
|
|
2096
2097
|
pageMode: "normal"
|
|
2097
|
-
}), s =
|
|
2098
|
+
}), s = M(!1), f = async () => {
|
|
2098
2099
|
var u;
|
|
2099
2100
|
if (!(e.dataType !== "request" || v(r) === "design"))
|
|
2100
2101
|
try {
|
|
2101
2102
|
s.value = !0;
|
|
2102
|
-
const
|
|
2103
|
-
o.value = ((u =
|
|
2104
|
-
} catch (
|
|
2105
|
-
console.error(
|
|
2103
|
+
const m = await i();
|
|
2104
|
+
o.value = ((u = m == null ? void 0 : m.data) == null ? void 0 : u.data.rows) || [];
|
|
2105
|
+
} catch (m) {
|
|
2106
|
+
console.error(m);
|
|
2106
2107
|
} finally {
|
|
2107
2108
|
s.value = !1;
|
|
2108
2109
|
}
|
|
2109
|
-
},
|
|
2110
|
+
}, y = () => {
|
|
2110
2111
|
f();
|
|
2111
2112
|
}, C = me(e)("click", () => {
|
|
2112
2113
|
});
|
|
2113
2114
|
he(e, {
|
|
2114
|
-
refreshData:
|
|
2115
|
+
refreshData: y
|
|
2115
2116
|
});
|
|
2116
|
-
const { setRequest: d } =
|
|
2117
|
+
const { setRequest: d } = P(Se, {
|
|
2117
2118
|
// @ts-ignore
|
|
2118
2119
|
// eslint-disable-next-line no-void
|
|
2119
|
-
setRequest: ({ id: u, sortNum:
|
|
2120
|
+
setRequest: ({ id: u, sortNum: m, requestFn: h }) => {
|
|
2120
2121
|
}
|
|
2121
2122
|
});
|
|
2122
2123
|
return d({
|
|
@@ -2152,14 +2153,14 @@ const ai = (e) => (fo("data-v-211785ca"), e = e(), mo(), e), li = {
|
|
|
2152
2153
|
};
|
|
2153
2154
|
function fi(e, o, t, n, a, l) {
|
|
2154
2155
|
const i = H("skeleton");
|
|
2155
|
-
return
|
|
2156
|
+
return D(), F("div", {
|
|
2156
2157
|
class: "ecan-list",
|
|
2157
2158
|
style: U(e.style)
|
|
2158
2159
|
}, [
|
|
2159
|
-
|
|
2160
|
+
j(i, { loading: e.loading }, {
|
|
2160
2161
|
default: Y(() => [
|
|
2161
|
-
e.useTitle ? (
|
|
2162
|
-
(
|
|
2162
|
+
e.useTitle ? (D(), F("div", li, [
|
|
2163
|
+
(D(!0), F(Me, null, De(e.columnCount, (r) => (D(), F("div", {
|
|
2163
2164
|
class: "title-inner",
|
|
2164
2165
|
style: U({
|
|
2165
2166
|
backgroundColor: e.backgroundColor,
|
|
@@ -2169,8 +2170,8 @@ function fi(e, o, t, n, a, l) {
|
|
|
2169
2170
|
}),
|
|
2170
2171
|
key: r
|
|
2171
2172
|
}, [
|
|
2172
|
-
e.useRanking ? (
|
|
2173
|
-
(
|
|
2173
|
+
e.useRanking ? (D(), F("div", ii)) : ve("", !0),
|
|
2174
|
+
(D(!0), F(Me, null, De(e.columns, (s, f) => (D(), F("div", {
|
|
2174
2175
|
class: "column",
|
|
2175
2176
|
key: s.key || f,
|
|
2176
2177
|
style: U({
|
|
@@ -2180,15 +2181,15 @@ function fi(e, o, t, n, a, l) {
|
|
|
2180
2181
|
}, be(s.title), 5))), 128))
|
|
2181
2182
|
], 4))), 128))
|
|
2182
2183
|
])) : ve("", !0),
|
|
2183
|
-
e.dataSource.length > 0 ? (
|
|
2184
|
-
e.useTitle ? (
|
|
2184
|
+
e.dataSource.length > 0 ? (D(), F("div", ri, [
|
|
2185
|
+
e.useTitle ? (D(), F("div", {
|
|
2185
2186
|
key: 0,
|
|
2186
2187
|
class: "title-placeholder",
|
|
2187
2188
|
style: U({
|
|
2188
2189
|
marginBottom: e.itemRowSpan
|
|
2189
2190
|
})
|
|
2190
2191
|
}, null, 4)) : ve("", !0),
|
|
2191
|
-
(
|
|
2192
|
+
(D(!0), F(Me, null, De(e.dataSource.slice(0, e.sliceCount), (r, s) => (D(), F("div", {
|
|
2192
2193
|
class: "item",
|
|
2193
2194
|
style: U({
|
|
2194
2195
|
backgroundColor: e.backgroundColor,
|
|
@@ -2200,12 +2201,12 @@ function fi(e, o, t, n, a, l) {
|
|
|
2200
2201
|
key: r.id || s,
|
|
2201
2202
|
onClick: o[0] || (o[0] = (...f) => e.click && e.click(...f))
|
|
2202
2203
|
}, [
|
|
2203
|
-
e.useRanking ? (
|
|
2204
|
+
e.useRanking ? (D(), F("div", si, [
|
|
2204
2205
|
ci,
|
|
2205
2206
|
ee("div", di, " Top " + be(s + 1), 1)
|
|
2206
2207
|
])) : ve("", !0),
|
|
2207
|
-
(
|
|
2208
|
-
class:
|
|
2208
|
+
(D(!0), F(Me, null, De(e.columns, (f) => (D(), F("div", {
|
|
2209
|
+
class: It(["column", e.contrastClass(r[f.key], f.format)]),
|
|
2209
2210
|
key: f.key,
|
|
2210
2211
|
style: U({
|
|
2211
2212
|
fontSize: f.fontSize,
|
|
@@ -2215,7 +2216,7 @@ function fi(e, o, t, n, a, l) {
|
|
|
2215
2216
|
})
|
|
2216
2217
|
}, be((f.format != null || f.format !== "") && e.formatFn(r[f.key], f.format)), 7))), 128))
|
|
2217
2218
|
], 4))), 128))
|
|
2218
|
-
])) : (
|
|
2219
|
+
])) : (D(), F("div", ui, " 暂无数据 "))
|
|
2219
2220
|
]),
|
|
2220
2221
|
_: 1
|
|
2221
2222
|
}, 8, ["loading"])
|
|
@@ -2248,71 +2249,71 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2248
2249
|
name: "EcanProportion",
|
|
2249
2250
|
components: {
|
|
2250
2251
|
AProgress: Hn,
|
|
2251
|
-
Skeleton:
|
|
2252
|
+
Skeleton: yt
|
|
2252
2253
|
},
|
|
2253
2254
|
props: {
|
|
2254
2255
|
...Wo
|
|
2255
2256
|
},
|
|
2256
2257
|
setup(e) {
|
|
2257
|
-
const { pageMode: o } =
|
|
2258
|
+
const { pageMode: o } = P(fe, {
|
|
2258
2259
|
pageMode: "normal"
|
|
2259
|
-
}), t = re(e), n =
|
|
2260
|
+
}), t = re(e), n = W(() => {
|
|
2260
2261
|
const u = e.width;
|
|
2261
2262
|
return parseFloat(u);
|
|
2262
|
-
}), a =
|
|
2263
|
+
}), a = M({});
|
|
2263
2264
|
ne(() => e.data, () => {
|
|
2264
2265
|
(e.dataType === "static" || v(o) === "design") && (a.value = e.data);
|
|
2265
2266
|
}, {
|
|
2266
2267
|
immediate: !0,
|
|
2267
2268
|
deep: !0
|
|
2268
2269
|
});
|
|
2269
|
-
const l =
|
|
2270
|
-
const u = v(a),
|
|
2270
|
+
const l = W(() => {
|
|
2271
|
+
const u = v(a), m = +e.variableDefaultValue;
|
|
2271
2272
|
if (u == null)
|
|
2272
|
-
return isNaN(
|
|
2273
|
-
const
|
|
2274
|
-
let
|
|
2275
|
-
const
|
|
2276
|
-
for (let
|
|
2277
|
-
const
|
|
2278
|
-
if (
|
|
2279
|
-
|
|
2273
|
+
return isNaN(m) ? 0 : m;
|
|
2274
|
+
const h = e.text.match(/\{.+\}/g) || [];
|
|
2275
|
+
let b;
|
|
2276
|
+
const w = new Set(Object.keys(u));
|
|
2277
|
+
for (let A = 0; A < h.length; A++) {
|
|
2278
|
+
const L = h[A], p = L.slice(1, L.length - 1);
|
|
2279
|
+
if (w.has(p)) {
|
|
2280
|
+
b = u[p];
|
|
2280
2281
|
break;
|
|
2281
2282
|
}
|
|
2282
2283
|
}
|
|
2283
|
-
return typeof
|
|
2284
|
-
}), i =
|
|
2285
|
-
var
|
|
2284
|
+
return typeof b == "number" ? b = b * 100 : typeof b == "string" && !isNaN(+b) ? b = +b * 100 : isNaN(m) ? b = 0 : b = m * 100, e.decimalFormat && (b = +b.toFixed(2)), b;
|
|
2285
|
+
}), i = W(() => {
|
|
2286
|
+
var w;
|
|
2286
2287
|
let u = e.text;
|
|
2287
2288
|
if (u === "")
|
|
2288
2289
|
return v(l);
|
|
2289
|
-
const
|
|
2290
|
-
for (let
|
|
2291
|
-
const
|
|
2292
|
-
let p =
|
|
2293
|
-
const
|
|
2294
|
-
for (let
|
|
2295
|
-
const k = (
|
|
2296
|
-
|
|
2290
|
+
const m = e.variableDefaultValue, h = v(a), b = u.match(/\{.+\}/g) || [];
|
|
2291
|
+
for (let A = 0; A < b.length; A++) {
|
|
2292
|
+
const L = b[A];
|
|
2293
|
+
let p = L.slice(1, L.length - 1);
|
|
2294
|
+
const _ = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, x = L.match(_);
|
|
2295
|
+
for (let g = 0; g < (x == null ? void 0 : x.length); g++) {
|
|
2296
|
+
const k = (w = x[g]) == null ? void 0 : w.trim();
|
|
2297
|
+
h[k] != null && (p = p.replace(k, h[k]));
|
|
2297
2298
|
}
|
|
2298
2299
|
let c = p;
|
|
2299
2300
|
try {
|
|
2300
|
-
/\(.*\)/g.test(p) && (c =
|
|
2301
|
-
} catch (
|
|
2302
|
-
console.error(
|
|
2301
|
+
/\(.*\)/g.test(p) && (c = bt(p));
|
|
2302
|
+
} catch (g) {
|
|
2303
|
+
console.error(g);
|
|
2303
2304
|
}
|
|
2304
|
-
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c =
|
|
2305
|
+
typeof +c == "number" && !isNaN(+c) ? (c = +c * 100, e.decimalFormat && (c = c.toFixed(2))) : c = m, u = u.replace(L, c + "");
|
|
2305
2306
|
}
|
|
2306
2307
|
return u;
|
|
2307
|
-
}), r = _e(e), s =
|
|
2308
|
+
}), r = _e(e), s = M(!1), f = async () => {
|
|
2308
2309
|
var u;
|
|
2309
2310
|
if (!(e.dataType !== "request" || v(o) === "design"))
|
|
2310
2311
|
try {
|
|
2311
2312
|
s.value = !0;
|
|
2312
|
-
const
|
|
2313
|
-
a.value = ((u =
|
|
2314
|
-
} catch (
|
|
2315
|
-
console.error(
|
|
2313
|
+
const m = await r();
|
|
2314
|
+
a.value = ((u = m == null ? void 0 : m.data) == null ? void 0 : u.data) || {};
|
|
2315
|
+
} catch (m) {
|
|
2316
|
+
console.error(m);
|
|
2316
2317
|
} finally {
|
|
2317
2318
|
s.value = !1;
|
|
2318
2319
|
}
|
|
@@ -2323,10 +2324,10 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2323
2324
|
}
|
|
2324
2325
|
});
|
|
2325
2326
|
const C = me(e)("click", () => {
|
|
2326
|
-
}), { setRequest: d } =
|
|
2327
|
+
}), { setRequest: d } = P(Se, {
|
|
2327
2328
|
// @ts-ignore
|
|
2328
2329
|
// eslint-disable-next-line no-void
|
|
2329
|
-
setRequest: ({ id: u, sortNum:
|
|
2330
|
+
setRequest: ({ id: u, sortNum: m, requestFn: h }) => {
|
|
2330
2331
|
}
|
|
2331
2332
|
});
|
|
2332
2333
|
return d({
|
|
@@ -2345,11 +2346,11 @@ const mi = /* @__PURE__ */ K(ni, [["render", fi], ["__scopeId", "data-v-211785ca
|
|
|
2345
2346
|
});
|
|
2346
2347
|
function bi(e, o, t, n, a, l) {
|
|
2347
2348
|
const i = H("skeleton"), r = H("a-progress");
|
|
2348
|
-
return
|
|
2349
|
+
return D(), F("div", {
|
|
2349
2350
|
class: "ecan-proportion",
|
|
2350
2351
|
style: U(e.style)
|
|
2351
2352
|
}, [
|
|
2352
|
-
|
|
2353
|
+
j(r, {
|
|
2353
2354
|
class: "progress",
|
|
2354
2355
|
percent: e.myValue,
|
|
2355
2356
|
width: e.myWidth,
|
|
@@ -2362,10 +2363,10 @@ function bi(e, o, t, n, a, l) {
|
|
|
2362
2363
|
onClick: e.click
|
|
2363
2364
|
}, {
|
|
2364
2365
|
format: Y(() => [
|
|
2365
|
-
e.loading ? (
|
|
2366
|
+
e.loading ? (D(), Re(i, {
|
|
2366
2367
|
key: 0,
|
|
2367
2368
|
loading: e.loading
|
|
2368
|
-
}, null, 8, ["loading"])) : (
|
|
2369
|
+
}, null, 8, ["loading"])) : (D(), F("div", {
|
|
2369
2370
|
key: 1,
|
|
2370
2371
|
class: "format",
|
|
2371
2372
|
style: U({
|
|
@@ -2402,20 +2403,20 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2402
2403
|
...Ho
|
|
2403
2404
|
},
|
|
2404
2405
|
setup(e) {
|
|
2405
|
-
const o = re(e), t =
|
|
2406
|
+
const o = re(e), t = M("");
|
|
2406
2407
|
ne(() => e.value, (f) => {
|
|
2407
2408
|
t.value = f;
|
|
2408
2409
|
}, {
|
|
2409
2410
|
immediate: !0
|
|
2410
2411
|
});
|
|
2411
|
-
const { getGlobalModel: n, setGlobalModel: a } =
|
|
2412
|
+
const { getGlobalModel: n, setGlobalModel: a } = P(ye, {
|
|
2412
2413
|
// @ts-ignore
|
|
2413
2414
|
// eslint-disable-next-line no-void
|
|
2414
2415
|
getGlobalModel: (f) => {
|
|
2415
2416
|
},
|
|
2416
2417
|
// @ts-ignore
|
|
2417
2418
|
// eslint-disable-next-line no-void
|
|
2418
|
-
setGlobalModel: (f,
|
|
2419
|
+
setGlobalModel: (f, y) => {
|
|
2419
2420
|
}
|
|
2420
2421
|
});
|
|
2421
2422
|
a(e.id, {
|
|
@@ -2425,7 +2426,7 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2425
2426
|
const l = () => {
|
|
2426
2427
|
const f = n(e.id);
|
|
2427
2428
|
a(e.id, { ...f, RECORD: t });
|
|
2428
|
-
}, i = me(e), r =
|
|
2429
|
+
}, i = me(e), r = Rt(i("inputChange", () => {
|
|
2429
2430
|
l();
|
|
2430
2431
|
}), 300), s = i("inputBlur", () => {
|
|
2431
2432
|
});
|
|
@@ -2439,11 +2440,11 @@ const vi = /* @__PURE__ */ K(yi, [["render", bi], ["__scopeId", "data-v-33fedc2e
|
|
|
2439
2440
|
});
|
|
2440
2441
|
function wi(e, o, t, n, a, l) {
|
|
2441
2442
|
const i = H("a-input");
|
|
2442
|
-
return
|
|
2443
|
+
return D(), F("div", {
|
|
2443
2444
|
class: "ecan-input",
|
|
2444
2445
|
style: U(e.style)
|
|
2445
2446
|
}, [
|
|
2446
|
-
|
|
2447
|
+
j(i, {
|
|
2447
2448
|
class: "input",
|
|
2448
2449
|
value: e.myValue,
|
|
2449
2450
|
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
@@ -2479,25 +2480,25 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2479
2480
|
ADatePicker: Zn
|
|
2480
2481
|
},
|
|
2481
2482
|
setup(e) {
|
|
2482
|
-
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2483
|
+
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = M(null);
|
|
2483
2484
|
ne(() => [e.value, e.useCurrentTime, e.operate], ([r, s, f]) => {
|
|
2484
|
-
let
|
|
2485
|
-
if (r ?
|
|
2485
|
+
let y = null;
|
|
2486
|
+
if (r ? y = Ce(de(r)) : s && (y = Ce()), f && y) {
|
|
2486
2487
|
const { type: S, value: C, mode: d } = f;
|
|
2487
2488
|
switch (S) {
|
|
2488
2489
|
case "add":
|
|
2489
|
-
|
|
2490
|
+
y = y.add(C, d);
|
|
2490
2491
|
break;
|
|
2491
2492
|
case "minus":
|
|
2492
|
-
|
|
2493
|
+
y = y.subtract(C, d);
|
|
2493
2494
|
}
|
|
2494
2495
|
}
|
|
2495
|
-
n.value =
|
|
2496
|
+
n.value = y;
|
|
2496
2497
|
}, {
|
|
2497
2498
|
deep: !0,
|
|
2498
2499
|
immediate: !0
|
|
2499
2500
|
});
|
|
2500
|
-
const { setGlobalModel: a } =
|
|
2501
|
+
const { setGlobalModel: a } = P(ye, {
|
|
2501
2502
|
// @ts-ignore
|
|
2502
2503
|
// eslint-disable-next-line no-void
|
|
2503
2504
|
setGlobalModel: (r, s) => {
|
|
@@ -2523,11 +2524,11 @@ const xi = /* @__PURE__ */ K(Si, [["render", wi]]), ki = ae(xi), Zo = {
|
|
|
2523
2524
|
});
|
|
2524
2525
|
function Ti(e, o, t, n, a, l) {
|
|
2525
2526
|
const i = H("a-date-picker");
|
|
2526
|
-
return
|
|
2527
|
+
return D(), F("div", {
|
|
2527
2528
|
class: "ecan-date-picker",
|
|
2528
2529
|
style: U(e.style)
|
|
2529
2530
|
}, [
|
|
2530
|
-
|
|
2531
|
+
j(i, {
|
|
2531
2532
|
class: "date-picker",
|
|
2532
2533
|
dropdownClassName: "ecan-date-picker-dropdown",
|
|
2533
2534
|
value: e.myValue,
|
|
@@ -2567,36 +2568,36 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2567
2568
|
...Qo
|
|
2568
2569
|
},
|
|
2569
2570
|
setup(e) {
|
|
2570
|
-
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } =
|
|
2571
|
+
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n = _e(e), { pageMode: a } = P(fe, {
|
|
2571
2572
|
pageMode: "normal"
|
|
2572
|
-
}), l =
|
|
2573
|
-
const
|
|
2574
|
-
let
|
|
2575
|
-
const p =
|
|
2576
|
-
return p != null ?
|
|
2577
|
-
}, f =
|
|
2578
|
-
var
|
|
2573
|
+
}), l = M(e.data), i = M(e.value || e.data[0]), r = e.dataFieldNames, s = (h, b) => {
|
|
2574
|
+
const w = r.label, A = r.value;
|
|
2575
|
+
let L;
|
|
2576
|
+
const p = b[w], _ = b[A];
|
|
2577
|
+
return p != null ? L = p : _ != null && (L = _), (L == null ? void 0 : L.toLowerCase().indexOf(h == null ? void 0 : h.toLowerCase())) >= 0;
|
|
2578
|
+
}, f = M(!1), y = async () => {
|
|
2579
|
+
var h, b;
|
|
2579
2580
|
if (!(e.dataType !== "request" || v(a) === "design")) {
|
|
2580
2581
|
f.value = !0;
|
|
2581
2582
|
try {
|
|
2582
|
-
const
|
|
2583
|
-
l.value = ((
|
|
2584
|
-
const
|
|
2585
|
-
e.value === "" &&
|
|
2586
|
-
} catch (
|
|
2587
|
-
console.error(
|
|
2583
|
+
const w = await n();
|
|
2584
|
+
l.value = ((b = (h = w == null ? void 0 : w.data) == null ? void 0 : h.data) == null ? void 0 : b.rows) || [];
|
|
2585
|
+
const A = v(l)[0];
|
|
2586
|
+
e.value === "" && A != null && (i.value = A[r.value]);
|
|
2587
|
+
} catch (w) {
|
|
2588
|
+
console.error(w);
|
|
2588
2589
|
} finally {
|
|
2589
2590
|
f.value = !1;
|
|
2590
2591
|
}
|
|
2591
2592
|
}
|
|
2592
|
-
}, { getGlobalModel: S, setGlobalModel: C } =
|
|
2593
|
+
}, { getGlobalModel: S, setGlobalModel: C } = P(ye, {
|
|
2593
2594
|
// @ts-ignore
|
|
2594
2595
|
// eslint-disable-next-line no-void
|
|
2595
|
-
getGlobalModel: (
|
|
2596
|
+
getGlobalModel: (h) => {
|
|
2596
2597
|
},
|
|
2597
2598
|
// @ts-ignore
|
|
2598
2599
|
// eslint-disable-next-line no-void
|
|
2599
|
-
setGlobalModel: (
|
|
2600
|
+
setGlobalModel: (h, b) => {
|
|
2600
2601
|
}
|
|
2601
2602
|
});
|
|
2602
2603
|
C(e.id, {
|
|
@@ -2604,22 +2605,22 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2604
2605
|
value: i
|
|
2605
2606
|
});
|
|
2606
2607
|
const u = me(e)("selectChange", () => {
|
|
2607
|
-
const
|
|
2608
|
-
C(
|
|
2608
|
+
const h = e.id, b = S(h);
|
|
2609
|
+
C(h, { ...b, RECORD: i });
|
|
2609
2610
|
});
|
|
2610
2611
|
he(e, {
|
|
2611
2612
|
selectChange: u,
|
|
2612
|
-
refreshData:
|
|
2613
|
+
refreshData: y
|
|
2613
2614
|
});
|
|
2614
|
-
const { setRequest:
|
|
2615
|
+
const { setRequest: m } = P(Se, {
|
|
2615
2616
|
// @ts-ignore
|
|
2616
2617
|
// eslint-disable-next-line no-void
|
|
2617
|
-
setRequest: ({ id:
|
|
2618
|
+
setRequest: ({ id: h, sortNum: b, requestFn: w }) => {
|
|
2618
2619
|
}
|
|
2619
2620
|
});
|
|
2620
|
-
return
|
|
2621
|
+
return m({
|
|
2621
2622
|
id: e.id,
|
|
2622
|
-
requestFn:
|
|
2623
|
+
requestFn: y,
|
|
2623
2624
|
sortNum: e.requestSort
|
|
2624
2625
|
}), {
|
|
2625
2626
|
style: o,
|
|
@@ -2634,11 +2635,11 @@ const Li = /* @__PURE__ */ K(_i, [["render", Ti]]), Ii = ae(Li), Yo = {
|
|
|
2634
2635
|
});
|
|
2635
2636
|
function Di(e, o, t, n, a, l) {
|
|
2636
2637
|
const i = H("a-select");
|
|
2637
|
-
return
|
|
2638
|
+
return D(), F("div", {
|
|
2638
2639
|
class: "ecan-select",
|
|
2639
2640
|
style: U(e.style)
|
|
2640
2641
|
}, [
|
|
2641
|
-
|
|
2642
|
+
j(i, {
|
|
2642
2643
|
class: "select",
|
|
2643
2644
|
value: e.myValue,
|
|
2644
2645
|
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
@@ -2655,7 +2656,7 @@ function Di(e, o, t, n, a, l) {
|
|
|
2655
2656
|
}, null, 8, ["value", "options", "mode", "getPopupContainer", "field-names", "maxTagCount", "filter-option", "loading", "autoClearSearchValue", "onChange"])
|
|
2656
2657
|
], 4);
|
|
2657
2658
|
}
|
|
2658
|
-
const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54"]]),
|
|
2659
|
+
const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54"]]), Ri = ae(Oi), Ko = {
|
|
2659
2660
|
...se,
|
|
2660
2661
|
name: "日期范围选择器",
|
|
2661
2662
|
keyName: "日期范围选择器",
|
|
@@ -2672,7 +2673,7 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2672
2673
|
operate: null,
|
|
2673
2674
|
limitStartTime: "",
|
|
2674
2675
|
limitEndTime: ""
|
|
2675
|
-
}, Xo = le(Ko),
|
|
2676
|
+
}, Xo = le(Ko), Fi = ["dateChange"], zi = Q({
|
|
2676
2677
|
name: "EcanRangePicker",
|
|
2677
2678
|
components: {
|
|
2678
2679
|
ARangePicker: Yn
|
|
@@ -2681,20 +2682,20 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2681
2682
|
...Xo
|
|
2682
2683
|
},
|
|
2683
2684
|
setup(e) {
|
|
2684
|
-
const o = re(e), t = () => document.getElementById("ProviderConfig") || document.body, n =
|
|
2685
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([d, u,
|
|
2686
|
-
let
|
|
2687
|
-
if (
|
|
2688
|
-
const { type: p, value:
|
|
2685
|
+
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], ([d, u, m, h, b, w]) => {
|
|
2687
|
+
let A = null, L = null;
|
|
2688
|
+
if (m && (A = Ce().subtract(h, b), L = Ce()), d && (A = Ce(de(d))), u && (L = Ce(de(u))), w) {
|
|
2689
|
+
const { type: p, value: _, mode: x } = w;
|
|
2689
2690
|
switch (p) {
|
|
2690
2691
|
case "add":
|
|
2691
|
-
|
|
2692
|
+
A = A && A.add(_, x), L = L && L.add(_, x);
|
|
2692
2693
|
break;
|
|
2693
2694
|
case "minus":
|
|
2694
|
-
|
|
2695
|
+
A = A && A.subtract(_, x), L = L && L.subtract(_, x);
|
|
2695
2696
|
}
|
|
2696
2697
|
}
|
|
2697
|
-
n.value = [
|
|
2698
|
+
n.value = [A, L];
|
|
2698
2699
|
}, {
|
|
2699
2700
|
immediate: !0
|
|
2700
2701
|
});
|
|
@@ -2702,23 +2703,23 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2702
2703
|
const i = (d) => {
|
|
2703
2704
|
Array.isArray(d) ? (a = d[0], l = d[1]) : (a = null, l = null);
|
|
2704
2705
|
}, r = (d) => {
|
|
2705
|
-
let u = !1, { limitStartTime:
|
|
2706
|
-
const
|
|
2706
|
+
let u = !1, { limitStartTime: m, limitEndTime: h } = e;
|
|
2707
|
+
const b = {
|
|
2707
2708
|
startTime: `${a || ""}`,
|
|
2708
2709
|
endTime: `${l || ""}`
|
|
2709
2710
|
};
|
|
2710
|
-
return
|
|
2711
|
-
}, { setGlobalModel: s } =
|
|
2711
|
+
return m = de(m, { codeData: b }), h = de(h, { codeData: b }), m && h ? u = !(Ce(m) < d && d < Ce(h)) : m ? u = Ce(m) > d : h && (u = Ce(h) < d), u;
|
|
2712
|
+
}, { setGlobalModel: s } = P(ye, {
|
|
2712
2713
|
// @ts-ignore
|
|
2713
2714
|
// eslint-disable-next-line no-void
|
|
2714
2715
|
setGlobalModel: (d, u) => {
|
|
2715
2716
|
}
|
|
2716
|
-
}), f =
|
|
2717
|
+
}), f = W(() => Array.isArray(v(n)) ? v(n)[0] : null), y = W(() => Array.isArray(v(n)) ? v(n)[1] : null);
|
|
2717
2718
|
s(e.id, {
|
|
2718
2719
|
type: e.type,
|
|
2719
2720
|
format: e.format,
|
|
2720
2721
|
startTime: f,
|
|
2721
|
-
endTime:
|
|
2722
|
+
endTime: y
|
|
2722
2723
|
});
|
|
2723
2724
|
const C = me(e)("dateChange", () => {
|
|
2724
2725
|
console.log("dateChange");
|
|
@@ -2738,11 +2739,11 @@ const Oi = /* @__PURE__ */ K(Ei, [["render", Di], ["__scopeId", "data-v-3ca1ad54
|
|
|
2738
2739
|
});
|
|
2739
2740
|
function $i(e, o, t, n, a, l) {
|
|
2740
2741
|
const i = H("a-range-picker");
|
|
2741
|
-
return
|
|
2742
|
+
return D(), F("div", {
|
|
2742
2743
|
class: "ecan-range-picker",
|
|
2743
2744
|
style: U(e.style)
|
|
2744
2745
|
}, [
|
|
2745
|
-
|
|
2746
|
+
j(i, {
|
|
2746
2747
|
class: "range-picker",
|
|
2747
2748
|
dropdownClassName: "ecan-range-picker-dropdown",
|
|
2748
2749
|
value: e.myValue,
|
|
@@ -2786,7 +2787,7 @@ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-24f19e2d
|
|
|
2786
2787
|
type: "openPage",
|
|
2787
2788
|
url: r
|
|
2788
2789
|
}, "*");
|
|
2789
|
-
}), a =
|
|
2790
|
+
}), a = W(() => de(e.text)), l = W(() => de(e.href) || null), i = W(() => {
|
|
2790
2791
|
const r = e.target;
|
|
2791
2792
|
if (!(r === "event" || v(l) == null))
|
|
2792
2793
|
return {
|
|
@@ -2805,11 +2806,11 @@ const Ni = /* @__PURE__ */ K(zi, [["render", $i], ["__scopeId", "data-v-24f19e2d
|
|
|
2805
2806
|
});
|
|
2806
2807
|
function Gi(e, o, t, n, a, l) {
|
|
2807
2808
|
const i = H("a-button");
|
|
2808
|
-
return
|
|
2809
|
+
return D(), F("div", {
|
|
2809
2810
|
class: "ecan-button",
|
|
2810
2811
|
style: U(e.style)
|
|
2811
2812
|
}, [
|
|
2812
|
-
|
|
2813
|
+
j(i, {
|
|
2813
2814
|
block: "",
|
|
2814
2815
|
onClick: e.click,
|
|
2815
2816
|
type: e.mode,
|
|
@@ -2855,12 +2856,12 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2855
2856
|
...nn
|
|
2856
2857
|
},
|
|
2857
2858
|
setup(e) {
|
|
2858
|
-
const o = re(e), t =
|
|
2859
|
+
const o = re(e), t = M([]), n = M([]), a = (d) => {
|
|
2859
2860
|
const u = e.value;
|
|
2860
|
-
let
|
|
2861
|
-
d.forEach((
|
|
2862
|
-
|
|
2863
|
-
}), typeof u == "string" && u !== "" ?
|
|
2861
|
+
let m = [];
|
|
2862
|
+
d.forEach((h) => {
|
|
2863
|
+
h.checked && m.push(h.value);
|
|
2864
|
+
}), typeof u == "string" && u !== "" ? m = m.concat(u.split(",")) : Array.isArray(u) && (m = m.concat(u)), t.value = d, n.value = m;
|
|
2864
2865
|
};
|
|
2865
2866
|
ne(() => [e.data, e.value], ([d]) => {
|
|
2866
2867
|
a(d);
|
|
@@ -2868,15 +2869,15 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2868
2869
|
immediate: !0,
|
|
2869
2870
|
deep: !0
|
|
2870
2871
|
});
|
|
2871
|
-
const l = _e(e), { pageMode: i } =
|
|
2872
|
+
const l = _e(e), { pageMode: i } = P(fe, {
|
|
2872
2873
|
pageMode: "normal"
|
|
2873
2874
|
}), r = async () => {
|
|
2874
|
-
var
|
|
2875
|
+
var m, h;
|
|
2875
2876
|
if (e.dataType !== "request" || v(i) === "design")
|
|
2876
2877
|
return;
|
|
2877
|
-
const d = await l(), u = ((
|
|
2878
|
+
const d = await l(), u = ((h = (m = d == null ? void 0 : d.data) == null ? void 0 : m.data) == null ? void 0 : h.rows) || [];
|
|
2878
2879
|
a(u);
|
|
2879
|
-
}, { getGlobalModel: s, setGlobalModel: f } =
|
|
2880
|
+
}, { getGlobalModel: s, setGlobalModel: f } = P(ye, {
|
|
2880
2881
|
// @ts-ignore
|
|
2881
2882
|
// eslint-disable-next-line no-void
|
|
2882
2883
|
getGlobalModel: (d) => {
|
|
@@ -2893,10 +2894,10 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2893
2894
|
const S = me(e)("checkboxChange", () => {
|
|
2894
2895
|
const d = s(e.id);
|
|
2895
2896
|
f(e.id, { ...d, RECORD: n });
|
|
2896
|
-
}), { setRequest: C } =
|
|
2897
|
+
}), { setRequest: C } = P(Se, {
|
|
2897
2898
|
// @ts-ignore
|
|
2898
2899
|
// eslint-disable-next-line no-void
|
|
2899
|
-
setRequest: ({ id: d, sortNum: u, requestFn:
|
|
2900
|
+
setRequest: ({ id: d, sortNum: u, requestFn: m }) => {
|
|
2900
2901
|
}
|
|
2901
2902
|
});
|
|
2902
2903
|
return C({
|
|
@@ -2913,11 +2914,11 @@ const qi = /* @__PURE__ */ K(Ui, [["render", Gi]]), ji = ae(qi), on = {
|
|
|
2913
2914
|
});
|
|
2914
2915
|
function Hi(e, o, t, n, a, l) {
|
|
2915
2916
|
const i = H("a-checkbox-group");
|
|
2916
|
-
return
|
|
2917
|
+
return D(), F("div", {
|
|
2917
2918
|
class: "ecan-checkbox",
|
|
2918
2919
|
style: U(e.style)
|
|
2919
2920
|
}, [
|
|
2920
|
-
|
|
2921
|
+
j(i, {
|
|
2921
2922
|
options: e.myOption,
|
|
2922
2923
|
value: e.myValue,
|
|
2923
2924
|
"onUpdate:value": o[0] || (o[0] = (r) => e.myValue = r),
|
|
@@ -2992,7 +2993,7 @@ const Zi = /* @__PURE__ */ K(Vi, [["render", Hi]]), Ji = ae(Zi), an = {
|
|
|
2992
2993
|
toolboxInfoText: "当前无说明信息"
|
|
2993
2994
|
}, ln = le(an), Yi = ["click", "refreshData", "resetRecord"], nt = async (e) => {
|
|
2994
2995
|
var s;
|
|
2995
|
-
const o = await
|
|
2996
|
+
const o = await Fe.post(e, {}, {
|
|
2996
2997
|
responseType: "blob"
|
|
2997
2998
|
}), { data: t, headers: n } = o, a = n["content-disposition"].replace(/\w+;filename=(.*)/, "$1"), l = new Blob([t]), i = document.createElement("a"), r = window.URL.createObjectURL(l);
|
|
2998
2999
|
i.href = r, i.download = decodeURI(a), i.style.display = "none", document.body.appendChild(i), i.click(), (s = i.parentNode) == null || s.removeChild(i), window.URL.revokeObjectURL(r);
|
|
@@ -3002,7 +3003,7 @@ qe([
|
|
|
3002
3003
|
na,
|
|
3003
3004
|
Ke,
|
|
3004
3005
|
Xe,
|
|
3005
|
-
|
|
3006
|
+
Ft,
|
|
3006
3007
|
et
|
|
3007
3008
|
]);
|
|
3008
3009
|
const Qi = Q({
|
|
@@ -3016,15 +3017,15 @@ const Qi = Q({
|
|
|
3016
3017
|
AModal: Ae
|
|
3017
3018
|
},
|
|
3018
3019
|
setup(e, { expose: o }) {
|
|
3019
|
-
const t = re(e), n =
|
|
3020
|
+
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3020
3021
|
a.value = !1;
|
|
3021
|
-
}, i =
|
|
3022
|
-
let { data:
|
|
3022
|
+
}, i = W(() => {
|
|
3023
|
+
let { data: _ = [] } = v(n)[0] || {};
|
|
3023
3024
|
if (Array.isArray(e.colors)) {
|
|
3024
3025
|
const x = e.isUseLabelColors, c = e.colors;
|
|
3025
|
-
|
|
3026
|
+
_ = _.map((g, k) => ({
|
|
3026
3027
|
label: x ? { color: c[k] } : {},
|
|
3027
|
-
...
|
|
3028
|
+
...g
|
|
3028
3029
|
}));
|
|
3029
3030
|
}
|
|
3030
3031
|
return {
|
|
@@ -3081,20 +3082,20 @@ const Qi = Q({
|
|
|
3081
3082
|
show: e.tooltipShow,
|
|
3082
3083
|
trigger: e.tooltipTrigger,
|
|
3083
3084
|
formatter: (x) => {
|
|
3084
|
-
const { marker: c, seriesName:
|
|
3085
|
+
const { marker: c, seriesName: g, name: k, value: R, percent: E, data: T } = x || {};
|
|
3085
3086
|
return de(
|
|
3086
3087
|
e.tooltipFormatter,
|
|
3087
3088
|
{
|
|
3088
3089
|
textData: {
|
|
3089
3090
|
marker: c,
|
|
3090
3091
|
name: k,
|
|
3091
|
-
value:
|
|
3092
|
-
percent:
|
|
3093
|
-
a:
|
|
3092
|
+
value: R,
|
|
3093
|
+
percent: E,
|
|
3094
|
+
a: g,
|
|
3094
3095
|
b: k,
|
|
3095
|
-
c:
|
|
3096
|
-
d:
|
|
3097
|
-
...
|
|
3096
|
+
c: R,
|
|
3097
|
+
d: E,
|
|
3098
|
+
...T
|
|
3098
3099
|
}
|
|
3099
3100
|
},
|
|
3100
3101
|
{
|
|
@@ -3120,7 +3121,7 @@ const Qi = Q({
|
|
|
3120
3121
|
color: e.colors,
|
|
3121
3122
|
series: [
|
|
3122
3123
|
{
|
|
3123
|
-
data:
|
|
3124
|
+
data: _,
|
|
3124
3125
|
type: "pie",
|
|
3125
3126
|
radius: [e.innerRadius, e.outerRadius],
|
|
3126
3127
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3155,72 +3156,72 @@ const Qi = Q({
|
|
|
3155
3156
|
}
|
|
3156
3157
|
]
|
|
3157
3158
|
};
|
|
3158
|
-
}), { getGlobalModel: r, setGlobalModel: s } =
|
|
3159
|
+
}), { getGlobalModel: r, setGlobalModel: s } = P(ye, {
|
|
3159
3160
|
// @ts-ignore
|
|
3160
3161
|
// eslint-disable-next-line no-void
|
|
3161
|
-
getGlobalModel: (
|
|
3162
|
+
getGlobalModel: (_) => {
|
|
3162
3163
|
},
|
|
3163
3164
|
// @ts-ignore
|
|
3164
3165
|
// eslint-disable-next-line no-void
|
|
3165
|
-
setGlobalModel: (
|
|
3166
|
+
setGlobalModel: (_, x) => {
|
|
3166
3167
|
}
|
|
3167
|
-
}), { pageMode: f } =
|
|
3168
|
+
}), { pageMode: f } = P(fe, {
|
|
3168
3169
|
pageMode: "normal"
|
|
3169
|
-
}),
|
|
3170
|
-
const { dataset: c } = Qe(
|
|
3170
|
+
}), y = (_ = [], x) => {
|
|
3171
|
+
const { dataset: c } = Qe(_, x);
|
|
3171
3172
|
n.value = c;
|
|
3172
|
-
}, S = (
|
|
3173
|
-
const c = Qe(
|
|
3173
|
+
}, S = (_ = [], x) => {
|
|
3174
|
+
const c = Qe(_, x);
|
|
3174
3175
|
n.value = c.dataset;
|
|
3175
3176
|
};
|
|
3176
|
-
ne(() => e.data, (
|
|
3177
|
-
(e.dataType === "static" || v(f) === "design") &&
|
|
3177
|
+
ne(() => e.data, (_) => {
|
|
3178
|
+
(e.dataType === "static" || v(f) === "design") && y(_);
|
|
3178
3179
|
}, {
|
|
3179
3180
|
immediate: !0,
|
|
3180
3181
|
deep: !0
|
|
3181
3182
|
});
|
|
3182
|
-
const C =
|
|
3183
|
-
var
|
|
3183
|
+
const C = M(!1), d = _e(e), u = async () => {
|
|
3184
|
+
var _, x;
|
|
3184
3185
|
if (!(e.dataType !== "request" || v(f) === "design"))
|
|
3185
3186
|
try {
|
|
3186
3187
|
C.value = !0;
|
|
3187
3188
|
const c = await d();
|
|
3188
|
-
|
|
3189
|
+
y((x = (_ = c == null ? void 0 : c.data) == null ? void 0 : _.data) == null ? void 0 : x.rows, e.valueTypeDataFieldNames);
|
|
3189
3190
|
} catch (c) {
|
|
3190
3191
|
console.error(c);
|
|
3191
3192
|
} finally {
|
|
3192
3193
|
C.value = !1;
|
|
3193
3194
|
}
|
|
3194
|
-
},
|
|
3195
|
+
}, h = me(e)("click", (_) => {
|
|
3195
3196
|
const x = r(e.id);
|
|
3196
|
-
s(e.id, { ...x, RECORD:
|
|
3197
|
-
}),
|
|
3198
|
-
var
|
|
3197
|
+
s(e.id, { ...x, RECORD: _ == null ? void 0 : _.data });
|
|
3198
|
+
}), b = ot(e), w = async () => {
|
|
3199
|
+
var _;
|
|
3199
3200
|
try {
|
|
3200
3201
|
C.value = !0;
|
|
3201
|
-
const x = await
|
|
3202
|
+
const x = await b(), { data: c } = x.data || {};
|
|
3202
3203
|
if (c) {
|
|
3203
|
-
const { columns:
|
|
3204
|
-
let
|
|
3205
|
-
if (
|
|
3206
|
-
const
|
|
3207
|
-
|
|
3208
|
-
name:
|
|
3209
|
-
value:
|
|
3204
|
+
const { columns: g = [], rows: k = [] } = ((_ = x == null ? void 0 : x.data) == null ? void 0 : _.data) ?? {};
|
|
3205
|
+
let R = [];
|
|
3206
|
+
if (g.length > 0) {
|
|
3207
|
+
const E = g[0], T = g[1];
|
|
3208
|
+
R = k.map((G) => ({
|
|
3209
|
+
name: G[E],
|
|
3210
|
+
value: G[T]
|
|
3210
3211
|
}));
|
|
3211
3212
|
}
|
|
3212
|
-
S(
|
|
3213
|
+
S(R);
|
|
3213
3214
|
}
|
|
3214
3215
|
} catch (x) {
|
|
3215
3216
|
console.error(x);
|
|
3216
3217
|
} finally {
|
|
3217
3218
|
C.value = !1;
|
|
3218
3219
|
}
|
|
3219
|
-
},
|
|
3220
|
+
}, A = () => {
|
|
3220
3221
|
if (v(f) !== "design")
|
|
3221
3222
|
switch (e.dataType) {
|
|
3222
3223
|
case "indicator":
|
|
3223
|
-
|
|
3224
|
+
w();
|
|
3224
3225
|
break;
|
|
3225
3226
|
case "request":
|
|
3226
3227
|
u();
|
|
@@ -3229,26 +3230,26 @@ const Qi = Q({
|
|
|
3229
3230
|
};
|
|
3230
3231
|
he(e, {
|
|
3231
3232
|
resetRecord: () => {
|
|
3232
|
-
const
|
|
3233
|
-
s(
|
|
3233
|
+
const _ = e.id, x = r(_);
|
|
3234
|
+
s(_, { ...x, RECORD: "" });
|
|
3234
3235
|
},
|
|
3235
|
-
refreshData:
|
|
3236
|
-
click:
|
|
3236
|
+
refreshData: A,
|
|
3237
|
+
click: h
|
|
3237
3238
|
}), o({
|
|
3238
|
-
refreshData:
|
|
3239
|
+
refreshData: A
|
|
3239
3240
|
});
|
|
3240
|
-
const { setRequest: p } =
|
|
3241
|
-
setRequest: (
|
|
3241
|
+
const { setRequest: p } = P(Se, {
|
|
3242
|
+
setRequest: (_) => {
|
|
3242
3243
|
}
|
|
3243
3244
|
});
|
|
3244
3245
|
return typeof p == "function" && p({
|
|
3245
3246
|
id: e.id,
|
|
3246
|
-
requestFn:
|
|
3247
|
+
requestFn: A,
|
|
3247
3248
|
sortNum: e.requestSort
|
|
3248
3249
|
}), {
|
|
3249
3250
|
option: i,
|
|
3250
3251
|
style: t,
|
|
3251
|
-
click:
|
|
3252
|
+
click: h,
|
|
3252
3253
|
loading: C,
|
|
3253
3254
|
visible: a,
|
|
3254
3255
|
hideModal: l
|
|
@@ -3257,12 +3258,12 @@ const Qi = Q({
|
|
|
3257
3258
|
});
|
|
3258
3259
|
function Ki(e, o, t, n, a, l) {
|
|
3259
3260
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
3260
|
-
return
|
|
3261
|
+
return D(), F("div", {
|
|
3261
3262
|
style: U(e.style)
|
|
3262
3263
|
}, [
|
|
3263
|
-
|
|
3264
|
+
j(r, { spinning: e.loading }, {
|
|
3264
3265
|
default: Y(() => [
|
|
3265
|
-
|
|
3266
|
+
j(i, {
|
|
3266
3267
|
option: e.option,
|
|
3267
3268
|
autoresize: "",
|
|
3268
3269
|
onClick: e.click
|
|
@@ -3270,7 +3271,7 @@ function Ki(e, o, t, n, a, l) {
|
|
|
3270
3271
|
]),
|
|
3271
3272
|
_: 1
|
|
3272
3273
|
}, 8, ["spinning"]),
|
|
3273
|
-
|
|
3274
|
+
j(s, {
|
|
3274
3275
|
"wrap-class-name": "full-modal",
|
|
3275
3276
|
width: "100%",
|
|
3276
3277
|
visible: e.visible,
|
|
@@ -3278,9 +3279,9 @@ function Ki(e, o, t, n, a, l) {
|
|
|
3278
3279
|
onCancel: e.hideModal
|
|
3279
3280
|
}, {
|
|
3280
3281
|
default: Y(() => [
|
|
3281
|
-
|
|
3282
|
+
j(r, { spinning: e.loading }, {
|
|
3282
3283
|
default: Y(() => [
|
|
3283
|
-
|
|
3284
|
+
j(i, {
|
|
3284
3285
|
option: e.option,
|
|
3285
3286
|
"update-options": { notMerge: !0 },
|
|
3286
3287
|
autoresize: ""
|
|
@@ -3382,9 +3383,9 @@ const or = Q({
|
|
|
3382
3383
|
AModal: Ae
|
|
3383
3384
|
},
|
|
3384
3385
|
setup(e, { expose: o }) {
|
|
3385
|
-
const t = re(e), n =
|
|
3386
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
|
|
3386
3387
|
l.value = !1;
|
|
3387
|
-
}, r =
|
|
3388
|
+
}, r = W(() => {
|
|
3388
3389
|
const x = e.xAxisLabelFormatter, c = e.yAxisLabelFormatter;
|
|
3389
3390
|
return {
|
|
3390
3391
|
toolbox: {
|
|
@@ -3439,22 +3440,22 @@ const or = Q({
|
|
|
3439
3440
|
tooltip: {
|
|
3440
3441
|
trigger: "axis",
|
|
3441
3442
|
show: e.tooltipShow,
|
|
3442
|
-
formatter: (
|
|
3443
|
-
const k =
|
|
3444
|
-
let
|
|
3445
|
-
|
|
3446
|
-
for (let
|
|
3447
|
-
const { marker:
|
|
3448
|
-
|
|
3449
|
-
|
|
3443
|
+
formatter: (g) => {
|
|
3444
|
+
const k = g.length;
|
|
3445
|
+
let R = "", E = e.tooltipFormatter;
|
|
3446
|
+
E === "" && (E = "{marker} {a} {c}");
|
|
3447
|
+
for (let T = 0; T < k; T++) {
|
|
3448
|
+
const { marker: G, seriesName: J, name: $, value: N, data: z } = g[T] || {};
|
|
3449
|
+
T === 0 && (R += `${$}<br/>`), R += de(
|
|
3450
|
+
E,
|
|
3450
3451
|
{
|
|
3451
3452
|
textData: {
|
|
3452
|
-
marker:
|
|
3453
|
-
name:
|
|
3454
|
-
value:
|
|
3453
|
+
marker: G,
|
|
3454
|
+
name: $,
|
|
3455
|
+
value: N,
|
|
3455
3456
|
a: J,
|
|
3456
|
-
b:
|
|
3457
|
-
c:
|
|
3457
|
+
b: $,
|
|
3458
|
+
c: N,
|
|
3458
3459
|
...z
|
|
3459
3460
|
}
|
|
3460
3461
|
},
|
|
@@ -3462,9 +3463,9 @@ const or = Q({
|
|
|
3462
3463
|
useNewline: !0,
|
|
3463
3464
|
useSpace: !0
|
|
3464
3465
|
}
|
|
3465
|
-
),
|
|
3466
|
+
), R += "<br/>";
|
|
3466
3467
|
}
|
|
3467
|
-
return
|
|
3468
|
+
return R;
|
|
3468
3469
|
}
|
|
3469
3470
|
},
|
|
3470
3471
|
xAxis: {
|
|
@@ -3483,8 +3484,8 @@ const or = Q({
|
|
|
3483
3484
|
rotate: e.xAxisLabelRotate,
|
|
3484
3485
|
width: e.xAxisLabelWidth,
|
|
3485
3486
|
overflow: e.xAxisLabelOverflow,
|
|
3486
|
-
formatter(
|
|
3487
|
-
return Ne(x,
|
|
3487
|
+
formatter(g) {
|
|
3488
|
+
return Ne(x, g);
|
|
3488
3489
|
}
|
|
3489
3490
|
},
|
|
3490
3491
|
axisLine: {
|
|
@@ -3507,8 +3508,8 @@ const or = Q({
|
|
|
3507
3508
|
},
|
|
3508
3509
|
axisLabel: {
|
|
3509
3510
|
color: e.yAxisLabelColor,
|
|
3510
|
-
formatter(
|
|
3511
|
-
return Ne(c,
|
|
3511
|
+
formatter(g) {
|
|
3512
|
+
return Ne(c, g);
|
|
3512
3513
|
}
|
|
3513
3514
|
},
|
|
3514
3515
|
axisLine: {
|
|
@@ -3526,7 +3527,7 @@ const or = Q({
|
|
|
3526
3527
|
},
|
|
3527
3528
|
series: v(n)
|
|
3528
3529
|
};
|
|
3529
|
-
}), { getGlobalModel: s, setGlobalModel: f } =
|
|
3530
|
+
}), { getGlobalModel: s, setGlobalModel: f } = P(ye, {
|
|
3530
3531
|
// @ts-ignore
|
|
3531
3532
|
// eslint-disable-next-line no-void
|
|
3532
3533
|
getGlobalModel: (x) => {
|
|
@@ -3535,23 +3536,23 @@ const or = Q({
|
|
|
3535
3536
|
// eslint-disable-next-line no-void
|
|
3536
3537
|
setGlobalModel: (x, c) => {
|
|
3537
3538
|
}
|
|
3538
|
-
}), { pageMode:
|
|
3539
|
+
}), { pageMode: y } = P(fe, {
|
|
3539
3540
|
pageMode: "normal"
|
|
3540
3541
|
}), S = (x = [], c = !1) => {
|
|
3541
|
-
let
|
|
3542
|
+
let g;
|
|
3542
3543
|
if (e.dataFieldConfigType === "key") {
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3544
|
+
const T = c ? e.keyTypeDataFieldNames : null;
|
|
3545
|
+
g = Ge(x, T);
|
|
3545
3546
|
} else if (e.dataFieldConfigType === "value") {
|
|
3546
|
-
const
|
|
3547
|
-
|
|
3547
|
+
const T = c ? e.valueTypeDataFieldNames : null;
|
|
3548
|
+
g = Qe(x, T);
|
|
3548
3549
|
}
|
|
3549
|
-
a.value =
|
|
3550
|
-
const k =
|
|
3551
|
-
for (let
|
|
3552
|
-
|
|
3550
|
+
a.value = g.dimensions;
|
|
3551
|
+
const k = g.dataset, R = [], E = k.length;
|
|
3552
|
+
for (let T = 0; T < E; T++)
|
|
3553
|
+
R.push({
|
|
3553
3554
|
type: "line",
|
|
3554
|
-
...k[
|
|
3555
|
+
...k[T],
|
|
3555
3556
|
symbolSize: e.symbolSize,
|
|
3556
3557
|
smooth: e.smooth,
|
|
3557
3558
|
areaStyle: {
|
|
@@ -3574,95 +3575,95 @@ const or = Q({
|
|
|
3574
3575
|
width: e.lineStyleWidth
|
|
3575
3576
|
}
|
|
3576
3577
|
});
|
|
3577
|
-
n.value =
|
|
3578
|
-
}, C = (x = [], c,
|
|
3579
|
-
const
|
|
3580
|
-
a.value =
|
|
3581
|
-
const
|
|
3582
|
-
for (let J = 0; J <
|
|
3583
|
-
|
|
3578
|
+
n.value = R;
|
|
3579
|
+
}, C = (x = [], c, g = !1) => {
|
|
3580
|
+
const R = Ge(x, g ? c : null);
|
|
3581
|
+
a.value = R.dimensions;
|
|
3582
|
+
const E = R.dataset, T = [], G = E.length;
|
|
3583
|
+
for (let J = 0; J < G; J++)
|
|
3584
|
+
T.push({
|
|
3584
3585
|
type: "line",
|
|
3585
|
-
...
|
|
3586
|
+
...E[J],
|
|
3586
3587
|
symbolSize: e.symbolSize,
|
|
3587
3588
|
smooth: e.smooth,
|
|
3588
3589
|
lineStyle: {
|
|
3589
3590
|
width: e.lineStyleWidth
|
|
3590
3591
|
}
|
|
3591
3592
|
});
|
|
3592
|
-
n.value =
|
|
3593
|
+
n.value = T;
|
|
3593
3594
|
};
|
|
3594
3595
|
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([x]) => {
|
|
3595
|
-
(e.dataType === "static" || v(
|
|
3596
|
+
(e.dataType === "static" || v(y) === "design") && S(x);
|
|
3596
3597
|
}, {
|
|
3597
3598
|
immediate: !0,
|
|
3598
3599
|
deep: !0
|
|
3599
3600
|
});
|
|
3600
|
-
const d =
|
|
3601
|
+
const d = M(!1), u = _e(e), m = async () => {
|
|
3601
3602
|
var x, c;
|
|
3602
|
-
if (!(e.dataType !== "request" || v(
|
|
3603
|
+
if (!(e.dataType !== "request" || v(y) === "design"))
|
|
3603
3604
|
try {
|
|
3604
3605
|
d.value = !0;
|
|
3605
|
-
const
|
|
3606
|
-
S((c = (x =
|
|
3607
|
-
} catch (
|
|
3608
|
-
console.error(
|
|
3606
|
+
const g = await u();
|
|
3607
|
+
S((c = (x = g == null ? void 0 : g.data) == null ? void 0 : x.data) == null ? void 0 : c.rows, !0);
|
|
3608
|
+
} catch (g) {
|
|
3609
|
+
console.error(g);
|
|
3609
3610
|
} finally {
|
|
3610
3611
|
d.value = !1;
|
|
3611
3612
|
}
|
|
3612
|
-
},
|
|
3613
|
+
}, b = me(e)("click", (x) => {
|
|
3613
3614
|
const c = s(e.id);
|
|
3614
3615
|
f(e.id, { ...c, RECORD: x == null ? void 0 : x.data });
|
|
3615
|
-
}),
|
|
3616
|
+
}), w = ot(e), A = async () => {
|
|
3616
3617
|
var x;
|
|
3617
3618
|
try {
|
|
3618
3619
|
d.value = !0;
|
|
3619
|
-
const c = await
|
|
3620
|
-
let
|
|
3621
|
-
|
|
3622
|
-
name:
|
|
3623
|
-
types:
|
|
3624
|
-
label:
|
|
3625
|
-
value:
|
|
3620
|
+
const c = await w(), { columns: g = [], rows: k = [] } = ((x = c == null ? void 0 : c.data) == null ? void 0 : x.data) ?? {};
|
|
3621
|
+
let R;
|
|
3622
|
+
g.length > 0 && (R = {
|
|
3623
|
+
name: g[0],
|
|
3624
|
+
types: g.slice(1).map((E) => ({
|
|
3625
|
+
label: E,
|
|
3626
|
+
value: E
|
|
3626
3627
|
}))
|
|
3627
|
-
}), C(k,
|
|
3628
|
+
}), C(k, R, !0);
|
|
3628
3629
|
} catch (c) {
|
|
3629
3630
|
console.error(c);
|
|
3630
3631
|
} finally {
|
|
3631
3632
|
d.value = !1;
|
|
3632
3633
|
}
|
|
3633
|
-
},
|
|
3634
|
-
if (v(
|
|
3634
|
+
}, L = () => {
|
|
3635
|
+
if (v(y) !== "design")
|
|
3635
3636
|
switch (e.dataType) {
|
|
3636
3637
|
case "indicator":
|
|
3637
|
-
|
|
3638
|
+
A();
|
|
3638
3639
|
break;
|
|
3639
3640
|
case "request":
|
|
3640
|
-
|
|
3641
|
+
m();
|
|
3641
3642
|
break;
|
|
3642
3643
|
}
|
|
3643
3644
|
};
|
|
3644
3645
|
he(e, {
|
|
3645
|
-
refreshData:
|
|
3646
|
+
refreshData: L,
|
|
3646
3647
|
resetRecord: () => {
|
|
3647
3648
|
const x = e.id, c = s(x);
|
|
3648
3649
|
f(x, { ...c, RECORD: "" });
|
|
3649
3650
|
},
|
|
3650
|
-
click:
|
|
3651
|
+
click: b
|
|
3651
3652
|
});
|
|
3652
|
-
const { setRequest:
|
|
3653
|
+
const { setRequest: _ } = P(Se, {
|
|
3653
3654
|
setRequest: (x) => {
|
|
3654
3655
|
}
|
|
3655
3656
|
});
|
|
3656
|
-
return typeof
|
|
3657
|
+
return typeof _ == "function" && _({
|
|
3657
3658
|
id: e.id,
|
|
3658
|
-
requestFn:
|
|
3659
|
+
requestFn: L,
|
|
3659
3660
|
sortNum: e.requestSort
|
|
3660
3661
|
}), o({
|
|
3661
|
-
refreshData:
|
|
3662
|
+
refreshData: L
|
|
3662
3663
|
}), {
|
|
3663
3664
|
option: r,
|
|
3664
3665
|
style: t,
|
|
3665
|
-
click:
|
|
3666
|
+
click: b,
|
|
3666
3667
|
loading: d,
|
|
3667
3668
|
visible: l,
|
|
3668
3669
|
hideModal: i
|
|
@@ -3671,12 +3672,12 @@ const or = Q({
|
|
|
3671
3672
|
});
|
|
3672
3673
|
function nr(e, o, t, n, a, l) {
|
|
3673
3674
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
3674
|
-
return
|
|
3675
|
+
return D(), F("div", {
|
|
3675
3676
|
style: U(e.style)
|
|
3676
3677
|
}, [
|
|
3677
|
-
|
|
3678
|
+
j(r, { spinning: e.loading }, {
|
|
3678
3679
|
default: Y(() => [
|
|
3679
|
-
|
|
3680
|
+
j(i, {
|
|
3680
3681
|
option: e.option,
|
|
3681
3682
|
autoresize: "",
|
|
3682
3683
|
onClick: e.click
|
|
@@ -3684,7 +3685,7 @@ function nr(e, o, t, n, a, l) {
|
|
|
3684
3685
|
]),
|
|
3685
3686
|
_: 1
|
|
3686
3687
|
}, 8, ["spinning"]),
|
|
3687
|
-
|
|
3688
|
+
j(s, {
|
|
3688
3689
|
"wrap-class-name": "full-modal",
|
|
3689
3690
|
width: "100%",
|
|
3690
3691
|
visible: e.visible,
|
|
@@ -3692,9 +3693,9 @@ function nr(e, o, t, n, a, l) {
|
|
|
3692
3693
|
onCancel: e.hideModal
|
|
3693
3694
|
}, {
|
|
3694
3695
|
default: Y(() => [
|
|
3695
|
-
|
|
3696
|
+
j(r, { spinning: e.loading }, {
|
|
3696
3697
|
default: Y(() => [
|
|
3697
|
-
|
|
3698
|
+
j(i, {
|
|
3698
3699
|
option: e.option,
|
|
3699
3700
|
"update-options": { notMerge: !0 },
|
|
3700
3701
|
autoresize: ""
|
|
@@ -3817,26 +3818,26 @@ const rr = Q({
|
|
|
3817
3818
|
AModal: Ae
|
|
3818
3819
|
},
|
|
3819
3820
|
setup(e, { expose: o }) {
|
|
3820
|
-
const t = re(e), n =
|
|
3821
|
+
const t = re(e), n = M([]), a = M(!1), l = () => {
|
|
3821
3822
|
a.value = !1;
|
|
3822
|
-
}, i =
|
|
3823
|
-
const c = v(n),
|
|
3824
|
-
for (let
|
|
3825
|
-
const
|
|
3826
|
-
...c[
|
|
3823
|
+
}, i = W(() => {
|
|
3824
|
+
const c = v(n), g = c.length, k = [];
|
|
3825
|
+
for (let R = 0; R < g; R++) {
|
|
3826
|
+
const E = {
|
|
3827
|
+
...c[R],
|
|
3827
3828
|
type: "bar",
|
|
3828
3829
|
barWidth: e.barWidth
|
|
3829
3830
|
};
|
|
3830
|
-
e.isStack && (
|
|
3831
|
+
e.isStack && (E.stack = "stack"), E.label = {
|
|
3831
3832
|
show: e.labelShow,
|
|
3832
3833
|
fontSize: e.labelFontSize,
|
|
3833
3834
|
position: e.labelPosition,
|
|
3834
3835
|
color: e.labelColor
|
|
3835
|
-
}, k.push(
|
|
3836
|
+
}, k.push(E);
|
|
3836
3837
|
}
|
|
3837
3838
|
return k;
|
|
3838
|
-
}), r =
|
|
3839
|
-
const c = e.yAxisLabelFormatter,
|
|
3839
|
+
}), r = M([]), s = M(!1), f = W(() => {
|
|
3840
|
+
const c = e.yAxisLabelFormatter, g = e.xAxisLabelFormatter;
|
|
3840
3841
|
return {
|
|
3841
3842
|
toolbox: {
|
|
3842
3843
|
show: e.toolboxShow,
|
|
@@ -3891,31 +3892,31 @@ const rr = Q({
|
|
|
3891
3892
|
trigger: "axis",
|
|
3892
3893
|
show: e.tooltipShow,
|
|
3893
3894
|
formatter: (k) => {
|
|
3894
|
-
const
|
|
3895
|
-
let
|
|
3896
|
-
|
|
3897
|
-
for (let
|
|
3898
|
-
const { marker: J, seriesName:
|
|
3899
|
-
|
|
3900
|
-
|
|
3895
|
+
const R = k.length;
|
|
3896
|
+
let E = "", T = e.tooltipFormatter;
|
|
3897
|
+
T === "" && (T = "{marker} {a} {c}");
|
|
3898
|
+
for (let G = 0; G < R; G++) {
|
|
3899
|
+
const { marker: J, seriesName: $, name: N, value: z, data: q } = k[G] || {};
|
|
3900
|
+
G === 0 && (E += `${N}<br/>`), E += de(
|
|
3901
|
+
T,
|
|
3901
3902
|
{
|
|
3902
3903
|
textData: {
|
|
3903
3904
|
marker: J,
|
|
3904
|
-
name:
|
|
3905
|
+
name: N,
|
|
3905
3906
|
value: z,
|
|
3906
|
-
a:
|
|
3907
|
-
b:
|
|
3907
|
+
a: $,
|
|
3908
|
+
b: N,
|
|
3908
3909
|
c: z,
|
|
3909
|
-
...
|
|
3910
|
+
...q
|
|
3910
3911
|
}
|
|
3911
3912
|
},
|
|
3912
3913
|
{
|
|
3913
3914
|
useNewline: !0,
|
|
3914
3915
|
useSpace: !0
|
|
3915
3916
|
}
|
|
3916
|
-
),
|
|
3917
|
+
), E += "<br/>";
|
|
3917
3918
|
}
|
|
3918
|
-
return
|
|
3919
|
+
return E;
|
|
3919
3920
|
},
|
|
3920
3921
|
// valueFormatter: (value) => {
|
|
3921
3922
|
// return useVariablesInText(props.tooltipValueFormatter as string, { value })
|
|
@@ -3951,7 +3952,7 @@ const rr = Q({
|
|
|
3951
3952
|
width: e.xAxisLabelWidth,
|
|
3952
3953
|
overflow: e.xAxisLabelOverflow,
|
|
3953
3954
|
formatter(k) {
|
|
3954
|
-
return Ne(
|
|
3955
|
+
return Ne(g, k);
|
|
3955
3956
|
}
|
|
3956
3957
|
},
|
|
3957
3958
|
axisLine: {
|
|
@@ -3991,62 +3992,62 @@ const rr = Q({
|
|
|
3991
3992
|
},
|
|
3992
3993
|
series: v(i)
|
|
3993
3994
|
};
|
|
3994
|
-
}), { pageMode:
|
|
3995
|
+
}), { pageMode: y } = P(fe, {
|
|
3995
3996
|
pageMode: "normal"
|
|
3996
|
-
}), S = (c = [],
|
|
3997
|
+
}), S = (c = [], g = !1) => {
|
|
3997
3998
|
let k = {};
|
|
3998
3999
|
if (e.dataFieldConfigType === "key") {
|
|
3999
|
-
const
|
|
4000
|
-
k = Ge(c,
|
|
4000
|
+
const R = g ? e.keyTypeDataFieldNames : null;
|
|
4001
|
+
k = Ge(c, R);
|
|
4001
4002
|
} else if (e.dataFieldConfigType === "value") {
|
|
4002
|
-
const
|
|
4003
|
-
k = Qe(c,
|
|
4003
|
+
const R = g ? e.valueTypeDataFieldNames : null;
|
|
4004
|
+
k = Qe(c, R);
|
|
4004
4005
|
}
|
|
4005
4006
|
n.value = k.dataset, r.value = k.dimensions;
|
|
4006
|
-
}, C = (c = [],
|
|
4007
|
-
const
|
|
4008
|
-
n.value =
|
|
4007
|
+
}, C = (c = [], g, k = !1) => {
|
|
4008
|
+
const E = Ge(c, k ? g : null);
|
|
4009
|
+
n.value = E.dataset, r.value = E.dimensions;
|
|
4009
4010
|
};
|
|
4010
4011
|
ne(() => e.data, (c) => {
|
|
4011
|
-
(e.dataType === "static" || v(
|
|
4012
|
+
(e.dataType === "static" || v(y) === "design") && S(c);
|
|
4012
4013
|
}, {
|
|
4013
4014
|
immediate: !0,
|
|
4014
4015
|
deep: !0
|
|
4015
4016
|
});
|
|
4016
4017
|
const d = _e(e), u = async () => {
|
|
4017
|
-
var c,
|
|
4018
|
+
var c, g;
|
|
4018
4019
|
try {
|
|
4019
4020
|
s.value = !0;
|
|
4020
4021
|
const k = await d();
|
|
4021
|
-
S((
|
|
4022
|
+
S((g = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : g.rows, !0);
|
|
4022
4023
|
} catch (k) {
|
|
4023
4024
|
console.error(k);
|
|
4024
4025
|
} finally {
|
|
4025
4026
|
s.value = !1;
|
|
4026
4027
|
}
|
|
4027
|
-
},
|
|
4028
|
+
}, m = ot(e), h = async () => {
|
|
4028
4029
|
var c;
|
|
4029
4030
|
try {
|
|
4030
4031
|
s.value = !0;
|
|
4031
|
-
const
|
|
4032
|
-
let
|
|
4033
|
-
k.length > 0 && (
|
|
4032
|
+
const g = await m(), { columns: k = [], rows: R = [] } = ((c = g == null ? void 0 : g.data) == null ? void 0 : c.data) ?? {};
|
|
4033
|
+
let E;
|
|
4034
|
+
k.length > 0 && (E = {
|
|
4034
4035
|
name: k[0],
|
|
4035
|
-
types: k.slice(1).map((
|
|
4036
|
-
label:
|
|
4037
|
-
value:
|
|
4036
|
+
types: k.slice(1).map((T) => ({
|
|
4037
|
+
label: T,
|
|
4038
|
+
value: T
|
|
4038
4039
|
}))
|
|
4039
|
-
}), C(
|
|
4040
|
-
} catch (
|
|
4041
|
-
console.error(
|
|
4040
|
+
}), C(R, E, !0);
|
|
4041
|
+
} catch (g) {
|
|
4042
|
+
console.error(g);
|
|
4042
4043
|
} finally {
|
|
4043
4044
|
s.value = !1;
|
|
4044
4045
|
}
|
|
4045
|
-
},
|
|
4046
|
-
if (v(
|
|
4046
|
+
}, b = () => {
|
|
4047
|
+
if (v(y) !== "design")
|
|
4047
4048
|
switch (e.dataType) {
|
|
4048
4049
|
case "indicator":
|
|
4049
|
-
|
|
4050
|
+
h();
|
|
4050
4051
|
break;
|
|
4051
4052
|
case "request":
|
|
4052
4053
|
u();
|
|
@@ -4054,39 +4055,39 @@ const rr = Q({
|
|
|
4054
4055
|
}
|
|
4055
4056
|
};
|
|
4056
4057
|
o({
|
|
4057
|
-
refreshData:
|
|
4058
|
+
refreshData: b
|
|
4058
4059
|
});
|
|
4059
|
-
const
|
|
4060
|
+
const w = me(e), { getGlobalModel: A, setGlobalModel: L } = P(ye, {
|
|
4060
4061
|
// @ts-ignore
|
|
4061
4062
|
// eslint-disable-next-line no-void
|
|
4062
4063
|
getGlobalModel: (c) => {
|
|
4063
4064
|
},
|
|
4064
4065
|
// @ts-ignore
|
|
4065
4066
|
// eslint-disable-next-line no-void
|
|
4066
|
-
setGlobalModel: (c,
|
|
4067
|
+
setGlobalModel: (c, g) => {
|
|
4067
4068
|
}
|
|
4068
|
-
}), p =
|
|
4069
|
-
const
|
|
4070
|
-
|
|
4071
|
-
}), { setRequest:
|
|
4069
|
+
}), p = w("click", (c) => {
|
|
4070
|
+
const g = A(e.id);
|
|
4071
|
+
L(e.id, { ...g, RECORD: c.data });
|
|
4072
|
+
}), { setRequest: _ } = P(Se, {
|
|
4072
4073
|
setRequest: (c) => {
|
|
4073
4074
|
}
|
|
4074
4075
|
});
|
|
4075
|
-
return typeof
|
|
4076
|
+
return typeof _ == "function" && _({
|
|
4076
4077
|
id: e.id,
|
|
4077
|
-
requestFn:
|
|
4078
|
+
requestFn: b,
|
|
4078
4079
|
sortNum: e.requestSort
|
|
4079
4080
|
}), he(e, {
|
|
4080
|
-
refreshData:
|
|
4081
|
+
refreshData: b,
|
|
4081
4082
|
click: p,
|
|
4082
4083
|
resetRecord: () => {
|
|
4083
|
-
const c = e.id,
|
|
4084
|
-
|
|
4084
|
+
const c = e.id, g = A(c);
|
|
4085
|
+
L(c, { ...g, RECORD: "" });
|
|
4085
4086
|
}
|
|
4086
4087
|
}), {
|
|
4087
4088
|
option: f,
|
|
4088
4089
|
style: t,
|
|
4089
|
-
refreshData:
|
|
4090
|
+
refreshData: b,
|
|
4090
4091
|
click: p,
|
|
4091
4092
|
loading: s,
|
|
4092
4093
|
visible: a,
|
|
@@ -4096,13 +4097,13 @@ const rr = Q({
|
|
|
4096
4097
|
});
|
|
4097
4098
|
function sr(e, o, t, n, a, l) {
|
|
4098
4099
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4099
|
-
return
|
|
4100
|
+
return D(), F("div", {
|
|
4100
4101
|
class: "ecan-bar",
|
|
4101
4102
|
style: U(e.style)
|
|
4102
4103
|
}, [
|
|
4103
|
-
|
|
4104
|
+
j(r, { spinning: e.loading }, {
|
|
4104
4105
|
default: Y(() => [
|
|
4105
|
-
|
|
4106
|
+
j(i, {
|
|
4106
4107
|
option: e.option,
|
|
4107
4108
|
"update-options": { notMerge: !0 },
|
|
4108
4109
|
autoresize: "",
|
|
@@ -4111,7 +4112,7 @@ function sr(e, o, t, n, a, l) {
|
|
|
4111
4112
|
]),
|
|
4112
4113
|
_: 1
|
|
4113
4114
|
}, 8, ["spinning"]),
|
|
4114
|
-
|
|
4115
|
+
j(s, {
|
|
4115
4116
|
"wrap-class-name": "full-modal",
|
|
4116
4117
|
width: "100%",
|
|
4117
4118
|
visible: e.visible,
|
|
@@ -4119,9 +4120,9 @@ function sr(e, o, t, n, a, l) {
|
|
|
4119
4120
|
onCancel: e.hideModal
|
|
4120
4121
|
}, {
|
|
4121
4122
|
default: Y(() => [
|
|
4122
|
-
|
|
4123
|
+
j(r, { spinning: e.loading }, {
|
|
4123
4124
|
default: Y(() => [
|
|
4124
|
-
|
|
4125
|
+
j(i, {
|
|
4125
4126
|
option: e.option,
|
|
4126
4127
|
"update-options": { notMerge: !0 },
|
|
4127
4128
|
autoresize: ""
|
|
@@ -4195,13 +4196,13 @@ const cr = /* @__PURE__ */ K(rr, [["render", sr]]), dr = ae(cr), un = {
|
|
|
4195
4196
|
toolboxIconStyleBorderColor: "#666",
|
|
4196
4197
|
toolboxDownloadUrl: "",
|
|
4197
4198
|
toolboxInfoText: "当前无说明信息"
|
|
4198
|
-
}, fn = le(un), ur = ["click", "refreshData"];
|
|
4199
|
+
}, fn = le(un), ur = ["click", "refreshData", "resetRecord"];
|
|
4199
4200
|
qe([
|
|
4200
4201
|
je,
|
|
4201
4202
|
xo,
|
|
4202
4203
|
Xe,
|
|
4203
4204
|
Ke,
|
|
4204
|
-
|
|
4205
|
+
Ft,
|
|
4205
4206
|
et
|
|
4206
4207
|
]);
|
|
4207
4208
|
const fr = Q({
|
|
@@ -4215,10 +4216,10 @@ const fr = Q({
|
|
|
4215
4216
|
AModal: Ae
|
|
4216
4217
|
},
|
|
4217
4218
|
setup(e) {
|
|
4218
|
-
const o = re(e), t =
|
|
4219
|
+
const o = re(e), t = M([]), n = M(!1), a = () => {
|
|
4219
4220
|
n.value = !1;
|
|
4220
|
-
}, l =
|
|
4221
|
-
const
|
|
4221
|
+
}, l = W(() => {
|
|
4222
|
+
const w = e.xAxisLabelFormatter, A = e.yAxisLabelFormatter;
|
|
4222
4223
|
return {
|
|
4223
4224
|
toolbox: {
|
|
4224
4225
|
show: e.toolboxShow,
|
|
@@ -4283,8 +4284,8 @@ const fr = Q({
|
|
|
4283
4284
|
rotate: e.xAxisLabelRotate,
|
|
4284
4285
|
width: e.xAxisLabelWidth,
|
|
4285
4286
|
overflow: e.xAxisLabelOverflow,
|
|
4286
|
-
formatter(
|
|
4287
|
-
return Ne(
|
|
4287
|
+
formatter(L) {
|
|
4288
|
+
return Ne(w, L);
|
|
4288
4289
|
}
|
|
4289
4290
|
},
|
|
4290
4291
|
axisLine: {
|
|
@@ -4305,8 +4306,8 @@ const fr = Q({
|
|
|
4305
4306
|
},
|
|
4306
4307
|
axisLabel: {
|
|
4307
4308
|
color: e.yAxisLabelColor,
|
|
4308
|
-
formatter(
|
|
4309
|
-
return Ne(A,
|
|
4309
|
+
formatter(L) {
|
|
4310
|
+
return Ne(A, L);
|
|
4310
4311
|
}
|
|
4311
4312
|
},
|
|
4312
4313
|
axisLine: {
|
|
@@ -4319,17 +4320,17 @@ const fr = Q({
|
|
|
4319
4320
|
tooltip: {
|
|
4320
4321
|
show: e.tooltipShow,
|
|
4321
4322
|
trigger: e.tooltipTrigger,
|
|
4322
|
-
formatter: function(
|
|
4323
|
-
var
|
|
4324
|
-
const { marker:
|
|
4323
|
+
formatter: function(L) {
|
|
4324
|
+
var k;
|
|
4325
|
+
const { marker: p, seriesName: _ } = L, x = ((k = L == null ? void 0 : L.data) == null ? void 0 : k.record) ?? {}, { name: c, value: g } = x;
|
|
4325
4326
|
return de(e.tooltipFormatter, {
|
|
4326
4327
|
textData: {
|
|
4327
|
-
marker:
|
|
4328
|
-
seriesName:
|
|
4329
|
-
a:
|
|
4330
|
-
b:
|
|
4331
|
-
c,
|
|
4332
|
-
...
|
|
4328
|
+
marker: p,
|
|
4329
|
+
seriesName: _,
|
|
4330
|
+
a: _,
|
|
4331
|
+
b: c,
|
|
4332
|
+
c: g,
|
|
4333
|
+
...x
|
|
4333
4334
|
}
|
|
4334
4335
|
});
|
|
4335
4336
|
},
|
|
@@ -4352,55 +4353,59 @@ const fr = Q({
|
|
|
4352
4353
|
}
|
|
4353
4354
|
]
|
|
4354
4355
|
};
|
|
4355
|
-
}), { getGlobalModel: i, setGlobalModel: r } =
|
|
4356
|
+
}), { getGlobalModel: i, setGlobalModel: r } = P(ye, {
|
|
4356
4357
|
// @ts-ignore
|
|
4357
4358
|
// eslint-disable-next-line no-void
|
|
4358
|
-
getGlobalModel: (
|
|
4359
|
+
getGlobalModel: (w) => {
|
|
4359
4360
|
},
|
|
4360
4361
|
// @ts-ignore
|
|
4361
4362
|
// eslint-disable-next-line no-void
|
|
4362
|
-
setGlobalModel: (
|
|
4363
|
+
setGlobalModel: (w, A) => {
|
|
4363
4364
|
}
|
|
4364
|
-
}), { pageMode: s } =
|
|
4365
|
+
}), { pageMode: s } = P(fe, {
|
|
4365
4366
|
pageMode: "normal"
|
|
4366
|
-
}), f = (
|
|
4367
|
-
const { name:
|
|
4368
|
-
t.value =
|
|
4367
|
+
}), f = (w = [], A) => {
|
|
4368
|
+
const { name: L = "name", value: p = "value" } = A || {};
|
|
4369
|
+
t.value = w.map((_) => ({ value: [_[L], _[p]], record: _ }));
|
|
4369
4370
|
};
|
|
4370
|
-
ne(() => e.data, (
|
|
4371
|
-
(e.dataType === "static" || v(s) === "design") && f(
|
|
4371
|
+
ne(() => e.data, (w) => {
|
|
4372
|
+
(e.dataType === "static" || v(s) === "design") && f(w);
|
|
4372
4373
|
}, {
|
|
4373
4374
|
immediate: !0,
|
|
4374
4375
|
deep: !0
|
|
4375
4376
|
});
|
|
4376
|
-
const
|
|
4377
|
-
var
|
|
4377
|
+
const y = M(!1), S = _e(e), C = async () => {
|
|
4378
|
+
var w, A;
|
|
4378
4379
|
if (!(e.dataType !== "request" || v(s) === "design")) {
|
|
4379
|
-
|
|
4380
|
+
y.value = !0;
|
|
4380
4381
|
try {
|
|
4381
|
-
const
|
|
4382
|
-
f((A = (
|
|
4383
|
-
} catch (
|
|
4384
|
-
console.error(
|
|
4382
|
+
const L = await S();
|
|
4383
|
+
f((A = (w = L == null ? void 0 : L.data) == null ? void 0 : w.data) == null ? void 0 : A.rows, e.dataFieldNames);
|
|
4384
|
+
} catch (L) {
|
|
4385
|
+
console.error(L);
|
|
4385
4386
|
} finally {
|
|
4386
|
-
|
|
4387
|
+
y.value = !1;
|
|
4387
4388
|
}
|
|
4388
4389
|
}
|
|
4389
|
-
}, u = me(e)("click", (
|
|
4390
|
-
const A = e.id,
|
|
4391
|
-
r(A, { ...
|
|
4390
|
+
}, u = me(e)("click", (w) => {
|
|
4391
|
+
const A = e.id, L = i(A);
|
|
4392
|
+
r(A, { ...L, RECORD: w == null ? void 0 : w.data });
|
|
4392
4393
|
});
|
|
4393
4394
|
he(e, {
|
|
4394
4395
|
refreshData: () => {
|
|
4395
4396
|
C();
|
|
4396
4397
|
},
|
|
4397
|
-
click: u
|
|
4398
|
+
click: u,
|
|
4399
|
+
resetRecord: () => {
|
|
4400
|
+
const w = e.id, A = i(w);
|
|
4401
|
+
r(w, { ...A, RECORD: "" });
|
|
4402
|
+
}
|
|
4398
4403
|
});
|
|
4399
|
-
const { setRequest:
|
|
4400
|
-
setRequest: (
|
|
4404
|
+
const { setRequest: b } = P(Se, {
|
|
4405
|
+
setRequest: (w) => {
|
|
4401
4406
|
}
|
|
4402
4407
|
});
|
|
4403
|
-
return typeof
|
|
4408
|
+
return typeof b == "function" && b({
|
|
4404
4409
|
id: e.id,
|
|
4405
4410
|
requestFn: C,
|
|
4406
4411
|
sortNum: e.requestSort
|
|
@@ -4408,7 +4413,7 @@ const fr = Q({
|
|
|
4408
4413
|
option: l,
|
|
4409
4414
|
style: o,
|
|
4410
4415
|
click: u,
|
|
4411
|
-
loading:
|
|
4416
|
+
loading: y,
|
|
4412
4417
|
visible: n,
|
|
4413
4418
|
hideModal: a
|
|
4414
4419
|
};
|
|
@@ -4416,12 +4421,12 @@ const fr = Q({
|
|
|
4416
4421
|
});
|
|
4417
4422
|
function mr(e, o, t, n, a, l) {
|
|
4418
4423
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4419
|
-
return
|
|
4424
|
+
return D(), F("div", {
|
|
4420
4425
|
style: U(e.style)
|
|
4421
4426
|
}, [
|
|
4422
|
-
|
|
4427
|
+
j(r, { spinning: e.loading }, {
|
|
4423
4428
|
default: Y(() => [
|
|
4424
|
-
|
|
4429
|
+
j(i, {
|
|
4425
4430
|
option: e.option,
|
|
4426
4431
|
autoresize: "",
|
|
4427
4432
|
onClick: e.click
|
|
@@ -4429,7 +4434,7 @@ function mr(e, o, t, n, a, l) {
|
|
|
4429
4434
|
]),
|
|
4430
4435
|
_: 1
|
|
4431
4436
|
}, 8, ["spinning"]),
|
|
4432
|
-
|
|
4437
|
+
j(s, {
|
|
4433
4438
|
"wrap-class-name": "full-modal",
|
|
4434
4439
|
width: "100%",
|
|
4435
4440
|
visible: e.visible,
|
|
@@ -4437,9 +4442,9 @@ function mr(e, o, t, n, a, l) {
|
|
|
4437
4442
|
onCancel: e.hideModal
|
|
4438
4443
|
}, {
|
|
4439
4444
|
default: Y(() => [
|
|
4440
|
-
|
|
4445
|
+
j(r, { spinning: e.loading }, {
|
|
4441
4446
|
default: Y(() => [
|
|
4442
|
-
|
|
4447
|
+
j(i, {
|
|
4443
4448
|
option: e.option,
|
|
4444
4449
|
"update-options": { notMerge: !0 },
|
|
4445
4450
|
autoresize: ""
|
|
@@ -4471,7 +4476,7 @@ const gr = /* @__PURE__ */ K(fr, [["render", mr]]), hr = ae(gr), mn = {
|
|
|
4471
4476
|
Echarts: Pe
|
|
4472
4477
|
},
|
|
4473
4478
|
setup(e) {
|
|
4474
|
-
const o = re(e), t =
|
|
4479
|
+
const o = re(e), t = M();
|
|
4475
4480
|
return ne(() => e.optionCode, (n) => {
|
|
4476
4481
|
try {
|
|
4477
4482
|
const a = eval;
|
|
@@ -4490,10 +4495,10 @@ const gr = /* @__PURE__ */ K(fr, [["render", mr]]), hr = ae(gr), mn = {
|
|
|
4490
4495
|
});
|
|
4491
4496
|
function br(e, o, t, n, a, l) {
|
|
4492
4497
|
const i = H("echarts");
|
|
4493
|
-
return
|
|
4498
|
+
return D(), F("div", {
|
|
4494
4499
|
style: U(e.style)
|
|
4495
4500
|
}, [
|
|
4496
|
-
|
|
4501
|
+
j(i, {
|
|
4497
4502
|
option: e.myOption,
|
|
4498
4503
|
"update-options": { notMerge: !0 },
|
|
4499
4504
|
autoresize: ""
|
|
@@ -4632,9 +4637,9 @@ const Sr = Q({
|
|
|
4632
4637
|
AModal: Ae
|
|
4633
4638
|
},
|
|
4634
4639
|
setup(e, { expose: o }) {
|
|
4635
|
-
const t = re(e), n =
|
|
4640
|
+
const t = re(e), n = M([]), a = M([]), l = M(!1), i = () => {
|
|
4636
4641
|
l.value = !1;
|
|
4637
|
-
}, r =
|
|
4642
|
+
}, r = W(() => ({
|
|
4638
4643
|
title: {
|
|
4639
4644
|
text: e.titleText,
|
|
4640
4645
|
subtext: e.titleSubtext,
|
|
@@ -4697,24 +4702,24 @@ const Sr = Q({
|
|
|
4697
4702
|
trigger: "axis",
|
|
4698
4703
|
show: e.tooltipShow,
|
|
4699
4704
|
formatter: (c) => {
|
|
4700
|
-
const
|
|
4701
|
-
let k = "",
|
|
4702
|
-
|
|
4703
|
-
const
|
|
4704
|
-
for (let
|
|
4705
|
-
const
|
|
4706
|
-
|
|
4705
|
+
const g = c.length;
|
|
4706
|
+
let k = "", R = e.tooltipFormatter;
|
|
4707
|
+
R === "" && (R = "{marker} {a} {c}");
|
|
4708
|
+
const E = e.seriesTypes;
|
|
4709
|
+
for (let T = 0; T < g; T++) {
|
|
4710
|
+
const G = E[T], { tooltipFormatter: J } = G || {}, { marker: $, seriesName: N, name: z, value: q, data: X } = c[T] || {};
|
|
4711
|
+
T === 0 && (k += `${z}<br/>`), k += de(
|
|
4707
4712
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4708
|
-
J ||
|
|
4713
|
+
J || R,
|
|
4709
4714
|
{
|
|
4710
4715
|
textData: {
|
|
4711
|
-
marker:
|
|
4716
|
+
marker: $,
|
|
4712
4717
|
name: z,
|
|
4713
|
-
value:
|
|
4714
|
-
seriesName:
|
|
4715
|
-
a:
|
|
4718
|
+
value: q,
|
|
4719
|
+
seriesName: N,
|
|
4720
|
+
a: N,
|
|
4716
4721
|
b: z,
|
|
4717
|
-
c:
|
|
4722
|
+
c: q,
|
|
4718
4723
|
...X
|
|
4719
4724
|
}
|
|
4720
4725
|
},
|
|
@@ -4758,28 +4763,28 @@ const Sr = Q({
|
|
|
4758
4763
|
},
|
|
4759
4764
|
yAxis: v(S),
|
|
4760
4765
|
series: v(n)
|
|
4761
|
-
})), { pageMode: s } =
|
|
4766
|
+
})), { pageMode: s } = P(fe, {
|
|
4762
4767
|
pageMode: "normal"
|
|
4763
|
-
}), f = (c = [],
|
|
4768
|
+
}), f = (c = [], g = !1) => {
|
|
4764
4769
|
let k;
|
|
4765
4770
|
if (e.dataFieldConfigType === "key") {
|
|
4766
|
-
const J =
|
|
4771
|
+
const J = g ? e.keyTypeDataFieldNames : null;
|
|
4767
4772
|
k = Ge(c, J);
|
|
4768
4773
|
} else if (e.dataFieldConfigType === "value") {
|
|
4769
|
-
const J =
|
|
4774
|
+
const J = g ? e.valueTypeDataFieldNames : null;
|
|
4770
4775
|
k = Qe(c, J);
|
|
4771
4776
|
}
|
|
4772
4777
|
a.value = k.dimensions;
|
|
4773
|
-
const
|
|
4774
|
-
for (let J = 0; J <
|
|
4775
|
-
const
|
|
4776
|
-
let
|
|
4777
|
-
type:
|
|
4778
|
+
const R = k.dataset, E = [], T = R.length, G = e.seriesTypes;
|
|
4779
|
+
for (let J = 0; J < T; J++) {
|
|
4780
|
+
const $ = G[J], { type: N, axisIndex: z } = $ || {};
|
|
4781
|
+
let q = {
|
|
4782
|
+
type: N,
|
|
4778
4783
|
yAxisIndex: z,
|
|
4779
|
-
...
|
|
4784
|
+
...R[J]
|
|
4780
4785
|
};
|
|
4781
|
-
|
|
4782
|
-
...
|
|
4786
|
+
N === "line" && (q = {
|
|
4787
|
+
...q,
|
|
4783
4788
|
symbolSize: e.symbolSize,
|
|
4784
4789
|
smooth: e.smooth,
|
|
4785
4790
|
areaStyle: {
|
|
@@ -4788,25 +4793,25 @@ const Sr = Q({
|
|
|
4788
4793
|
lineStyle: {
|
|
4789
4794
|
width: e.lineStyleWidth
|
|
4790
4795
|
}
|
|
4791
|
-
}),
|
|
4792
|
-
...
|
|
4796
|
+
}), N === "bar" && (q = {
|
|
4797
|
+
...q,
|
|
4793
4798
|
barWidth: e.barWidth
|
|
4794
|
-
}),
|
|
4799
|
+
}), E.push(q);
|
|
4795
4800
|
}
|
|
4796
|
-
n.value =
|
|
4797
|
-
},
|
|
4798
|
-
const
|
|
4799
|
-
a.value =
|
|
4800
|
-
const
|
|
4801
|
-
for (let
|
|
4802
|
-
const z =
|
|
4803
|
-
|
|
4801
|
+
n.value = E;
|
|
4802
|
+
}, y = (c = [], g, k = !1) => {
|
|
4803
|
+
const E = Ge(c, k ? g : null);
|
|
4804
|
+
a.value = E.dimensions;
|
|
4805
|
+
const T = E.dataset, G = [], J = T.length, $ = e.seriesTypes;
|
|
4806
|
+
for (let N = 0; N < J; N++) {
|
|
4807
|
+
const z = $[N];
|
|
4808
|
+
G.push({
|
|
4804
4809
|
type: z == null ? void 0 : z.type,
|
|
4805
4810
|
yAxisIndex: z == null ? void 0 : z.axisIndex,
|
|
4806
|
-
...
|
|
4811
|
+
...T[N]
|
|
4807
4812
|
});
|
|
4808
4813
|
}
|
|
4809
|
-
n.value =
|
|
4814
|
+
n.value = G;
|
|
4810
4815
|
};
|
|
4811
4816
|
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([c]) => {
|
|
4812
4817
|
(e.dataType === "static" || v(s) === "design") && f(c);
|
|
@@ -4814,9 +4819,9 @@ const Sr = Q({
|
|
|
4814
4819
|
immediate: !0,
|
|
4815
4820
|
deep: !0
|
|
4816
4821
|
});
|
|
4817
|
-
const S =
|
|
4822
|
+
const S = W(() => {
|
|
4818
4823
|
const c = e.yAxis;
|
|
4819
|
-
return c == null ? void 0 : c.map((
|
|
4824
|
+
return c == null ? void 0 : c.map((g) => ({
|
|
4820
4825
|
type: "value",
|
|
4821
4826
|
minInterval: e.yAxisMinInterval,
|
|
4822
4827
|
splitLine: {
|
|
@@ -4828,7 +4833,7 @@ const Sr = Q({
|
|
|
4828
4833
|
axisLabel: {
|
|
4829
4834
|
color: e.yAxisLabelColor,
|
|
4830
4835
|
formatter(k) {
|
|
4831
|
-
return Ne(
|
|
4836
|
+
return Ne(g.axisLabelFormatter, k);
|
|
4832
4837
|
}
|
|
4833
4838
|
},
|
|
4834
4839
|
axisLine: {
|
|
@@ -4837,41 +4842,41 @@ const Sr = Q({
|
|
|
4837
4842
|
}
|
|
4838
4843
|
}
|
|
4839
4844
|
}));
|
|
4840
|
-
}), C =
|
|
4841
|
-
var c,
|
|
4845
|
+
}), C = M(!1), d = _e(e), u = async () => {
|
|
4846
|
+
var c, g;
|
|
4842
4847
|
if (!(e.dataType !== "request" || v(s) === "design"))
|
|
4843
4848
|
try {
|
|
4844
4849
|
C.value = !0;
|
|
4845
4850
|
const k = await d();
|
|
4846
|
-
f((
|
|
4851
|
+
f((g = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data) == null ? void 0 : g.rows, !0);
|
|
4847
4852
|
} catch (k) {
|
|
4848
4853
|
console.error(k);
|
|
4849
4854
|
} finally {
|
|
4850
4855
|
C.value = !1;
|
|
4851
4856
|
}
|
|
4852
|
-
},
|
|
4857
|
+
}, m = ot(e), h = async () => {
|
|
4853
4858
|
var c;
|
|
4854
4859
|
try {
|
|
4855
4860
|
C.value = !0;
|
|
4856
|
-
const
|
|
4857
|
-
let
|
|
4858
|
-
k.length > 0 && (
|
|
4861
|
+
const g = await m(), { columns: k = [], rows: R = [] } = ((c = g == null ? void 0 : g.data) == null ? void 0 : c.data) ?? {};
|
|
4862
|
+
let E;
|
|
4863
|
+
k.length > 0 && (E = {
|
|
4859
4864
|
name: k[0],
|
|
4860
|
-
types: k.slice(1).map((
|
|
4861
|
-
label:
|
|
4862
|
-
value:
|
|
4865
|
+
types: k.slice(1).map((T) => ({
|
|
4866
|
+
label: T,
|
|
4867
|
+
value: T
|
|
4863
4868
|
}))
|
|
4864
|
-
}),
|
|
4865
|
-
} catch (
|
|
4866
|
-
console.error(
|
|
4869
|
+
}), y(R, E, !0);
|
|
4870
|
+
} catch (g) {
|
|
4871
|
+
console.error(g);
|
|
4867
4872
|
} finally {
|
|
4868
4873
|
C.value = !1;
|
|
4869
4874
|
}
|
|
4870
|
-
},
|
|
4875
|
+
}, b = () => {
|
|
4871
4876
|
if (v(s) !== "design")
|
|
4872
4877
|
switch (e.dataType) {
|
|
4873
4878
|
case "indicator":
|
|
4874
|
-
|
|
4879
|
+
h();
|
|
4875
4880
|
break;
|
|
4876
4881
|
case "request":
|
|
4877
4882
|
u();
|
|
@@ -4879,34 +4884,34 @@ const Sr = Q({
|
|
|
4879
4884
|
}
|
|
4880
4885
|
};
|
|
4881
4886
|
o({
|
|
4882
|
-
refreshData:
|
|
4887
|
+
refreshData: b
|
|
4883
4888
|
});
|
|
4884
|
-
const
|
|
4889
|
+
const w = me(e), { getGlobalModel: A, setGlobalModel: L } = P(ye, {
|
|
4885
4890
|
// @ts-ignore
|
|
4886
4891
|
// eslint-disable-next-line no-void
|
|
4887
4892
|
getGlobalModel: (c) => {
|
|
4888
4893
|
},
|
|
4889
4894
|
// @ts-ignore
|
|
4890
4895
|
// eslint-disable-next-line no-void
|
|
4891
|
-
setGlobalModel: (c,
|
|
4896
|
+
setGlobalModel: (c, g) => {
|
|
4892
4897
|
}
|
|
4893
|
-
}), p =
|
|
4894
|
-
const
|
|
4895
|
-
|
|
4896
|
-
}), { setRequest:
|
|
4898
|
+
}), p = w("click", (c) => {
|
|
4899
|
+
const g = A(e.id);
|
|
4900
|
+
L(e.id, { ...g, RECORD: c == null ? void 0 : c.data });
|
|
4901
|
+
}), { setRequest: _ } = P(Se, {
|
|
4897
4902
|
setRequest: (c) => {
|
|
4898
4903
|
}
|
|
4899
4904
|
});
|
|
4900
|
-
return typeof
|
|
4905
|
+
return typeof _ == "function" && _({
|
|
4901
4906
|
id: e.id,
|
|
4902
|
-
requestFn:
|
|
4907
|
+
requestFn: b,
|
|
4903
4908
|
sortNum: e.requestSort
|
|
4904
4909
|
}), he(e, {
|
|
4905
4910
|
resetRecord: () => {
|
|
4906
|
-
const c = e.id,
|
|
4907
|
-
|
|
4911
|
+
const c = e.id, g = A(c);
|
|
4912
|
+
L(c, { ...g, RECORD: "" });
|
|
4908
4913
|
},
|
|
4909
|
-
refreshData:
|
|
4914
|
+
refreshData: b,
|
|
4910
4915
|
click: p
|
|
4911
4916
|
}), {
|
|
4912
4917
|
style: t,
|
|
@@ -4920,12 +4925,12 @@ const Sr = Q({
|
|
|
4920
4925
|
});
|
|
4921
4926
|
function wr(e, o, t, n, a, l) {
|
|
4922
4927
|
const i = H("echarts"), r = H("spin"), s = H("a-modal");
|
|
4923
|
-
return
|
|
4928
|
+
return D(), F("div", {
|
|
4924
4929
|
style: U(e.style)
|
|
4925
4930
|
}, [
|
|
4926
|
-
|
|
4931
|
+
j(r, { spinning: e.loading }, {
|
|
4927
4932
|
default: Y(() => [
|
|
4928
|
-
|
|
4933
|
+
j(i, {
|
|
4929
4934
|
option: e.option,
|
|
4930
4935
|
"update-options": { notMerge: !0 },
|
|
4931
4936
|
autoresize: "",
|
|
@@ -4934,7 +4939,7 @@ function wr(e, o, t, n, a, l) {
|
|
|
4934
4939
|
]),
|
|
4935
4940
|
_: 1
|
|
4936
4941
|
}, 8, ["spinning"]),
|
|
4937
|
-
|
|
4942
|
+
j(s, {
|
|
4938
4943
|
"wrap-class-name": "full-modal",
|
|
4939
4944
|
width: "100%",
|
|
4940
4945
|
visible: e.visible,
|
|
@@ -4942,9 +4947,9 @@ function wr(e, o, t, n, a, l) {
|
|
|
4942
4947
|
onCancel: e.hideModal
|
|
4943
4948
|
}, {
|
|
4944
4949
|
default: Y(() => [
|
|
4945
|
-
|
|
4950
|
+
j(r, { spinning: e.loading }, {
|
|
4946
4951
|
default: Y(() => [
|
|
4947
|
-
|
|
4952
|
+
j(i, {
|
|
4948
4953
|
option: e.option,
|
|
4949
4954
|
"update-options": { notMerge: !0 },
|
|
4950
4955
|
autoresize: "",
|
|
@@ -4985,9 +4990,9 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
4985
4990
|
...vn
|
|
4986
4991
|
},
|
|
4987
4992
|
setup(e) {
|
|
4988
|
-
const o = re(e, ["background"]), { theme: t } =
|
|
4993
|
+
const o = re(e, ["background"]), { theme: t } = P(fe, {
|
|
4989
4994
|
theme: "light"
|
|
4990
|
-
}), n =
|
|
4995
|
+
}), n = W(() => ({
|
|
4991
4996
|
// borderWidth: props.borderWidth,
|
|
4992
4997
|
// borderStyle: props.borderStyle,
|
|
4993
4998
|
// borderRadius: props.borderRadius,
|
|
@@ -4996,7 +5001,7 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
4996
5001
|
width: "100%",
|
|
4997
5002
|
height: "100%"
|
|
4998
5003
|
})), l = me(e)("click", () => {
|
|
4999
|
-
}), i =
|
|
5004
|
+
}), i = M([]);
|
|
5000
5005
|
ne(() => e.data, (s) => {
|
|
5001
5006
|
i.value = s;
|
|
5002
5007
|
}, {
|
|
@@ -5005,7 +5010,7 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
5005
5010
|
}), he(e, {
|
|
5006
5011
|
click: l
|
|
5007
5012
|
});
|
|
5008
|
-
const { setGlobalModel: r } =
|
|
5013
|
+
const { setGlobalModel: r } = P(ye, {
|
|
5009
5014
|
// @ts-ignore
|
|
5010
5015
|
// eslint-disable-next-line no-void
|
|
5011
5016
|
setGlobalModel: (s, f) => {
|
|
@@ -5022,7 +5027,7 @@ const xr = /* @__PURE__ */ K(Sr, [["render", wr]]), kr = ae(xr), bn = {
|
|
|
5022
5027
|
};
|
|
5023
5028
|
}
|
|
5024
5029
|
}), Tr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=", Lr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==";
|
|
5025
|
-
const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), Ir = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-left border-item" }, null, -1)), Mr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-right border-item" }, null, -1)), Er = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-left border-item" }, null, -1)), Dr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-right border-item" }, null, -1)), Or = { class: "title-item-wrapper" },
|
|
5030
|
+
const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), Ir = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-left border-item" }, null, -1)), Mr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "top-right border-item" }, null, -1)), Er = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-left border-item" }, null, -1)), Dr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("div", { class: "bottom-right border-item" }, null, -1)), Or = { class: "title-item-wrapper" }, Rr = { class: "title-item" }, Fr = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("img", {
|
|
5026
5031
|
class: "title-decoration-left",
|
|
5027
5032
|
src: Tr
|
|
5028
5033
|
}, null, -1)), zr = { class: "title" }, $r = /* @__PURE__ */ Te(() => /* @__PURE__ */ ee("img", {
|
|
@@ -5033,31 +5038,31 @@ const Te = (e) => (fo("data-v-1550b11b"), e = e(), mo(), e), Ir = /* @__PURE__ *
|
|
|
5033
5038
|
class: "left-title"
|
|
5034
5039
|
}, qr = { class: "title" };
|
|
5035
5040
|
function jr(e, o, t, n, a, l) {
|
|
5036
|
-
return
|
|
5041
|
+
return D(), F("div", {
|
|
5037
5042
|
class: "ecan-border",
|
|
5038
5043
|
style: U(e.style),
|
|
5039
5044
|
onClick: o[0] || (o[0] = (...i) => e.click && e.click(...i))
|
|
5040
5045
|
}, [
|
|
5041
|
-
e.mode === "no-title" ? (
|
|
5046
|
+
e.mode === "no-title" ? (D(), F("div", {
|
|
5042
5047
|
key: 0,
|
|
5043
5048
|
class: "no-title",
|
|
5044
5049
|
style: U(e.borderStyle)
|
|
5045
5050
|
}, [
|
|
5046
|
-
e.useBorderModify ? (
|
|
5051
|
+
e.useBorderModify ? (D(), F(Me, { key: 0 }, [
|
|
5047
5052
|
Ir,
|
|
5048
5053
|
Mr,
|
|
5049
5054
|
Er,
|
|
5050
5055
|
Dr
|
|
5051
5056
|
], 64)) : ve("", !0)
|
|
5052
5057
|
], 4)) : ve("", !0),
|
|
5053
|
-
e.mode === "top-title" ? (
|
|
5058
|
+
e.mode === "top-title" ? (D(), F("div", {
|
|
5054
5059
|
key: 1,
|
|
5055
5060
|
class: "top-title",
|
|
5056
5061
|
style: U(e.borderStyle)
|
|
5057
5062
|
}, [
|
|
5058
5063
|
ee("div", Or, [
|
|
5059
|
-
ee("div",
|
|
5060
|
-
|
|
5064
|
+
ee("div", Rr, [
|
|
5065
|
+
Fr,
|
|
5061
5066
|
ee("div", zr, be(e.title), 1),
|
|
5062
5067
|
$r
|
|
5063
5068
|
])
|
|
@@ -5067,7 +5072,7 @@ function jr(e, o, t, n, a, l) {
|
|
|
5067
5072
|
Br,
|
|
5068
5073
|
Ur
|
|
5069
5074
|
], 4)) : ve("", !0),
|
|
5070
|
-
e.mode === "left-title" ? (
|
|
5075
|
+
e.mode === "left-title" ? (D(), F("div", Gr, [
|
|
5071
5076
|
ee("div", qr, [
|
|
5072
5077
|
ee("span", null, be(e.title), 1)
|
|
5073
5078
|
])
|
|
@@ -5101,7 +5106,7 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5101
5106
|
...Cn
|
|
5102
5107
|
},
|
|
5103
5108
|
setup(e) {
|
|
5104
|
-
const o = () => document.getElementById("ProviderConfig") || document.body, t =
|
|
5109
|
+
const o = () => document.getElementById("ProviderConfig") || document.body, t = W(() => {
|
|
5105
5110
|
const z = e.position;
|
|
5106
5111
|
return {
|
|
5107
5112
|
verticalAlign: {
|
|
@@ -5111,31 +5116,31 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5111
5116
|
bottom: "bottom"
|
|
5112
5117
|
}[z]
|
|
5113
5118
|
};
|
|
5114
|
-
}), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r =
|
|
5115
|
-
let
|
|
5116
|
-
const
|
|
5119
|
+
}), n = e.width, a = e.height, l = e.originalWidth, i = e.originalHeight, r = M("80%"), s = M(0), f = M(), y = M(0), S = M({}), C = re(e), d = M({}), u = M(!1), m = M();
|
|
5120
|
+
let h;
|
|
5121
|
+
const b = () => {
|
|
5117
5122
|
f.value = parseFloat(n) / parseFloat(l);
|
|
5118
|
-
const z = parseFloat(a) / parseFloat(i),
|
|
5119
|
-
s.value =
|
|
5123
|
+
const z = parseFloat(a) / parseFloat(i), q = document.body.offsetWidth, X = document.body.offsetHeight;
|
|
5124
|
+
s.value = q * v(f), y.value = X * z, r.value = `${v(f) * 100}%`, S.value = {
|
|
5120
5125
|
width: `${v(s)}px`,
|
|
5121
|
-
height: `${v(
|
|
5126
|
+
height: `${v(y)}px`
|
|
5122
5127
|
}, d.value = {
|
|
5123
5128
|
...v(C),
|
|
5124
5129
|
backgroundImage: $e(e.backgroundImage, !0),
|
|
5125
|
-
transform: `scale(${v(s) / parseFloat(n)},${v(
|
|
5130
|
+
transform: `scale(${v(s) / parseFloat(n)},${v(y) / parseFloat(a)})`
|
|
5126
5131
|
};
|
|
5127
|
-
},
|
|
5128
|
-
|
|
5129
|
-
}, 100),
|
|
5132
|
+
}, w = Rt(() => {
|
|
5133
|
+
b();
|
|
5134
|
+
}, 100), A = () => {
|
|
5130
5135
|
const z = window.MutationObserver;
|
|
5131
|
-
|
|
5136
|
+
h = new z(w), h.observe(document.body, {
|
|
5132
5137
|
attributes: !0,
|
|
5133
5138
|
attributeFilter: ["style"],
|
|
5134
5139
|
attributeOldValue: !0
|
|
5135
5140
|
});
|
|
5136
|
-
},
|
|
5137
|
-
|
|
5138
|
-
}, p =
|
|
5141
|
+
}, L = () => {
|
|
5142
|
+
h && (h.disconnect(), h.takeRecords(), h = null);
|
|
5143
|
+
}, p = M(!1), { touchRequest: _ } = P(Se, {
|
|
5139
5144
|
// @ts-ignore
|
|
5140
5145
|
// eslint-disable-next-line no-void
|
|
5141
5146
|
touchRequest: () => {
|
|
@@ -5144,56 +5149,56 @@ const Wr = /* @__PURE__ */ K(_r, [["render", jr], ["__scopeId", "data-v-1550b11b
|
|
|
5144
5149
|
p.value = !0;
|
|
5145
5150
|
}, c = () => {
|
|
5146
5151
|
p.value = !1;
|
|
5147
|
-
},
|
|
5152
|
+
}, g = () => {
|
|
5148
5153
|
c();
|
|
5149
5154
|
}, k = () => {
|
|
5150
5155
|
c();
|
|
5151
|
-
}, { setModalModel:
|
|
5156
|
+
}, { setModalModel: R, pushUseModalIds: E, popUseModalIds: T } = P(Oo, {
|
|
5152
5157
|
pushUseModalIds: (z) => {
|
|
5153
5158
|
},
|
|
5154
5159
|
popUseModalIds: () => {
|
|
5155
5160
|
},
|
|
5156
|
-
setModalModel: (z,
|
|
5161
|
+
setModalModel: (z, q) => {
|
|
5157
5162
|
}
|
|
5158
|
-
}),
|
|
5163
|
+
}), G = () => {
|
|
5159
5164
|
const z = e.id;
|
|
5160
|
-
let
|
|
5165
|
+
let q = [];
|
|
5161
5166
|
const X = e.componentList;
|
|
5162
|
-
console.log("componentList", X), Array.isArray(X) && (
|
|
5167
|
+
console.log("componentList", X), Array.isArray(X) && (q = X.map((ie) => ie.id), R(z, [...new Set(q)]));
|
|
5163
5168
|
};
|
|
5164
5169
|
ne(() => p.value, async (z) => {
|
|
5165
|
-
z ? (u.value = !1,
|
|
5166
|
-
|
|
5167
|
-
}),
|
|
5170
|
+
z ? (u.value = !1, E(e.id), G(), await gt(() => {
|
|
5171
|
+
b(), window.addEventListener("resize", w), A(), u.value = !0;
|
|
5172
|
+
}), _()) : (T(), window.removeEventListener("resize", w), L());
|
|
5168
5173
|
});
|
|
5169
|
-
const J =
|
|
5174
|
+
const J = W(() => v(f) >= 1), $ = W(() => e.fullModal), N = W(() => {
|
|
5170
5175
|
let z = "ecan-modal";
|
|
5171
|
-
return v(J) && (z += " ecan-full-width-modal"), v(
|
|
5176
|
+
return v(J) && (z += " ecan-full-width-modal"), v($) && (z += " ecan-full-modal"), z;
|
|
5172
5177
|
});
|
|
5173
5178
|
return he(e, {
|
|
5174
5179
|
showModal: x
|
|
5175
5180
|
}), {
|
|
5176
|
-
modalRef:
|
|
5181
|
+
modalRef: m,
|
|
5177
5182
|
containStyle: S,
|
|
5178
5183
|
contentStyle: d,
|
|
5179
5184
|
getContainer: o,
|
|
5180
5185
|
modalStyle: t,
|
|
5181
5186
|
modalWith: r,
|
|
5182
|
-
isFullModal:
|
|
5187
|
+
isFullModal: $,
|
|
5183
5188
|
style: C,
|
|
5184
5189
|
visible: p,
|
|
5185
5190
|
showModal: x,
|
|
5186
|
-
onOk:
|
|
5191
|
+
onOk: g,
|
|
5187
5192
|
onCancel: k,
|
|
5188
5193
|
isFullWidth: J,
|
|
5189
|
-
wrapClassName:
|
|
5194
|
+
wrapClassName: N,
|
|
5190
5195
|
ready: u
|
|
5191
5196
|
};
|
|
5192
5197
|
}
|
|
5193
5198
|
});
|
|
5194
5199
|
function Jr(e, o, t, n, a, l) {
|
|
5195
5200
|
const i = H("a-modal");
|
|
5196
|
-
return
|
|
5201
|
+
return D(), Re(i, {
|
|
5197
5202
|
getContainer: e.getContainer,
|
|
5198
5203
|
wrapClassName: e.wrapClassName,
|
|
5199
5204
|
centered: "",
|
|
@@ -5205,19 +5210,19 @@ function Jr(e, o, t, n, a, l) {
|
|
|
5205
5210
|
onOk: e.onOk,
|
|
5206
5211
|
onCancel: e.onCancel,
|
|
5207
5212
|
ref: "modalRef"
|
|
5208
|
-
},
|
|
5213
|
+
}, Rn({
|
|
5209
5214
|
default: Y(() => [
|
|
5210
5215
|
ee("div", {
|
|
5211
5216
|
class: "contain",
|
|
5212
5217
|
ref: "containRef",
|
|
5213
5218
|
style: U(e.containStyle)
|
|
5214
5219
|
}, [
|
|
5215
|
-
e.ready ? (
|
|
5220
|
+
e.ready ? (D(), F("div", {
|
|
5216
5221
|
key: 0,
|
|
5217
5222
|
class: "content",
|
|
5218
5223
|
style: U(e.contentStyle)
|
|
5219
5224
|
}, [
|
|
5220
|
-
(
|
|
5225
|
+
(D(!0), F(Me, null, De(e.componentList, (r, s) => (D(), Re(Fn(r.type), zn({
|
|
5221
5226
|
key: r.id + s
|
|
5222
5227
|
}, r), null, 16))), 128))
|
|
5223
5228
|
], 4)) : ve("", !0)
|
|
@@ -5281,13 +5286,13 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5281
5286
|
...wn
|
|
5282
5287
|
},
|
|
5283
5288
|
setup(e) {
|
|
5284
|
-
const o = re(e), t =
|
|
5289
|
+
const o = re(e), t = M(0);
|
|
5285
5290
|
ne(() => e.activeKey, (d) => {
|
|
5286
5291
|
t.value = d;
|
|
5287
5292
|
}, {
|
|
5288
5293
|
immediate: !0
|
|
5289
5294
|
});
|
|
5290
|
-
const { pageMode: n } =
|
|
5295
|
+
const { pageMode: n } = P(fe, {
|
|
5291
5296
|
pageMode: "normal"
|
|
5292
5297
|
});
|
|
5293
5298
|
let a = null;
|
|
@@ -5300,27 +5305,27 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5300
5305
|
};
|
|
5301
5306
|
Ue(() => {
|
|
5302
5307
|
v(n) !== "design" && l();
|
|
5303
|
-
}),
|
|
5308
|
+
}), Lt(() => {
|
|
5304
5309
|
clearInterval(a);
|
|
5305
5310
|
});
|
|
5306
|
-
const i =
|
|
5311
|
+
const i = M([]), r = M({});
|
|
5307
5312
|
ne(() => e.data, (d) => {
|
|
5308
5313
|
i.value = d, r.value = Array.isArray(d) && d.length > 0 ? d[0] : {};
|
|
5309
5314
|
}, {
|
|
5310
5315
|
immediate: !0,
|
|
5311
5316
|
deep: !0
|
|
5312
5317
|
});
|
|
5313
|
-
const s = (d) => t.value === d, f = me(e), { setGlobalModel:
|
|
5318
|
+
const s = (d) => t.value === d, f = me(e), { setGlobalModel: y } = P(ye, {
|
|
5314
5319
|
// @ts-ignore
|
|
5315
5320
|
// eslint-disable-next-line no-void
|
|
5316
5321
|
setGlobalModel: (d, u) => {
|
|
5317
5322
|
}
|
|
5318
5323
|
});
|
|
5319
|
-
|
|
5324
|
+
y(e.id, {
|
|
5320
5325
|
value: r,
|
|
5321
5326
|
activeKey: t
|
|
5322
5327
|
});
|
|
5323
|
-
const { emitRefreshPage: S } =
|
|
5328
|
+
const { emitRefreshPage: S } = P(Je, {
|
|
5324
5329
|
// eslint-disable-next-line no-void
|
|
5325
5330
|
emitRefreshPage: () => {
|
|
5326
5331
|
}
|
|
@@ -5341,7 +5346,7 @@ const Yr = /* @__PURE__ */ K(Zr, [["render", Jr], ["__scopeId", "data-v-d94f0d60
|
|
|
5341
5346
|
});
|
|
5342
5347
|
const es = ["onClick"];
|
|
5343
5348
|
function ts(e, o, t, n, a, l) {
|
|
5344
|
-
return
|
|
5349
|
+
return D(), F("div", {
|
|
5345
5350
|
class: "ecan-tabs",
|
|
5346
5351
|
style: U(e.style)
|
|
5347
5352
|
}, [
|
|
@@ -5354,7 +5359,7 @@ function ts(e, o, t, n, a, l) {
|
|
|
5354
5359
|
flexDirection: e.tabFlexDirection
|
|
5355
5360
|
})
|
|
5356
5361
|
}, [
|
|
5357
|
-
(
|
|
5362
|
+
(D(!0), F(Me, null, De(e.myData, (i, r) => (D(), F("div", {
|
|
5358
5363
|
class: "tab",
|
|
5359
5364
|
style: U({
|
|
5360
5365
|
padding: `5px ${e.tabHorizontalPadding}`,
|
|
@@ -5394,7 +5399,7 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5394
5399
|
...kn
|
|
5395
5400
|
},
|
|
5396
5401
|
setup(e) {
|
|
5397
|
-
const o = re(e), t =
|
|
5402
|
+
const o = re(e), t = W(() => $e(e.imgUrl)), { pageMode: n } = P(fe, {
|
|
5398
5403
|
pageMode: "normal"
|
|
5399
5404
|
});
|
|
5400
5405
|
return {
|
|
@@ -5403,7 +5408,7 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5403
5408
|
onClick: () => {
|
|
5404
5409
|
if (!e.linkPage && !e.href)
|
|
5405
5410
|
return;
|
|
5406
|
-
const l = e.linkPage || "", i =
|
|
5411
|
+
const l = e.linkPage || "", i = Fo(v(n), l), r = e.href;
|
|
5407
5412
|
let s = r || i;
|
|
5408
5413
|
s = de(s);
|
|
5409
5414
|
const f = e.target;
|
|
@@ -5417,12 +5422,12 @@ const os = /* @__PURE__ */ K(Xr, [["render", ts], ["__scopeId", "data-v-a2045b93
|
|
|
5417
5422
|
});
|
|
5418
5423
|
const ls = ["src"];
|
|
5419
5424
|
function is(e, o, t, n, a, l) {
|
|
5420
|
-
return e.myImgUrl !== "" ? (
|
|
5425
|
+
return e.myImgUrl !== "" ? (D(), F("img", {
|
|
5421
5426
|
key: 0,
|
|
5422
5427
|
style: U(e.style),
|
|
5423
5428
|
src: e.myImgUrl,
|
|
5424
5429
|
onClick: o[0] || (o[0] = (...i) => e.onClick && e.onClick(...i))
|
|
5425
|
-
}, null, 12, ls)) : (
|
|
5430
|
+
}, null, 12, ls)) : (D(), F("div", {
|
|
5426
5431
|
key: 1,
|
|
5427
5432
|
class: "image-placeholder",
|
|
5428
5433
|
style: U(e.style)
|
|
@@ -5443,9 +5448,9 @@ const rs = /* @__PURE__ */ K(as, [["render", is], ["__scopeId", "data-v-ef7a7bee
|
|
|
5443
5448
|
..._n
|
|
5444
5449
|
},
|
|
5445
5450
|
setup(e) {
|
|
5446
|
-
const o = re(e), { contextRequestUrl: t } =
|
|
5451
|
+
const o = re(e), { contextRequestUrl: t } = P(fe, {
|
|
5447
5452
|
contextRequestUrl: ""
|
|
5448
|
-
}), n =
|
|
5453
|
+
}), n = W(() => {
|
|
5449
5454
|
let a = de(e.link);
|
|
5450
5455
|
if (e.linkType === "erd" && a != null) {
|
|
5451
5456
|
let l = v(t);
|
|
@@ -5461,11 +5466,11 @@ const rs = /* @__PURE__ */ K(as, [["render", is], ["__scopeId", "data-v-ef7a7bee
|
|
|
5461
5466
|
});
|
|
5462
5467
|
const ds = ["src"];
|
|
5463
5468
|
function us(e, o, t, n, a, l) {
|
|
5464
|
-
return e.myLink ? (
|
|
5469
|
+
return e.myLink ? (D(), F("iframe", {
|
|
5465
5470
|
key: 0,
|
|
5466
5471
|
src: e.myLink,
|
|
5467
5472
|
style: U(e.style)
|
|
5468
|
-
}, null, 12, ds)) : (
|
|
5473
|
+
}, null, 12, ds)) : (D(), F("div", {
|
|
5469
5474
|
key: 1,
|
|
5470
5475
|
class: "iframe-placeholder",
|
|
5471
5476
|
style: U(e.style)
|
|
@@ -5536,7 +5541,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5536
5541
|
}, Ln = le(Tn), gs = ["click", "refreshData", "resetRecord"], hs = Q({
|
|
5537
5542
|
name: "EcanTable",
|
|
5538
5543
|
components: {
|
|
5539
|
-
Skeleton:
|
|
5544
|
+
Skeleton: yt,
|
|
5540
5545
|
AButton: yo,
|
|
5541
5546
|
AInput: ho,
|
|
5542
5547
|
ACheckboxGroup: bo,
|
|
@@ -5549,7 +5554,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5549
5554
|
...Ln
|
|
5550
5555
|
},
|
|
5551
5556
|
setup(e, { expose: o }) {
|
|
5552
|
-
const t = re(e), n =
|
|
5557
|
+
const t = re(e), n = W(() => {
|
|
5553
5558
|
if (e.paginationShow)
|
|
5554
5559
|
switch (e.size) {
|
|
5555
5560
|
case "small":
|
|
@@ -5568,12 +5573,12 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5568
5573
|
default:
|
|
5569
5574
|
return 55;
|
|
5570
5575
|
}
|
|
5571
|
-
}), a =
|
|
5572
|
-
if (Array.isArray(
|
|
5573
|
-
const O =
|
|
5576
|
+
}), a = W(() => e.scrollX), l = W(() => parseFloat(e.height) - v(n)), i = M([]), r = M([]), s = M([]), f = M([]), y = M(0), S = M(1), C = W(() => e.paginationPageSize), d = $n([]), u = (I = []) => {
|
|
5577
|
+
if (Array.isArray(I) && I.length > 0) {
|
|
5578
|
+
const O = I.length, V = e.columnsFixedNum;
|
|
5574
5579
|
for (let Z = 0; Z < O; Z++) {
|
|
5575
|
-
const
|
|
5576
|
-
Z < V ?
|
|
5580
|
+
const B = I[Z];
|
|
5581
|
+
Z < V ? B.fixed = "left" : B.fixed = !1;
|
|
5577
5582
|
const {
|
|
5578
5583
|
cellAlign: te = "center",
|
|
5579
5584
|
cellColor: oe,
|
|
@@ -5582,8 +5587,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5582
5587
|
tableFilter: ce,
|
|
5583
5588
|
headerCellAlign: Ee,
|
|
5584
5589
|
headerCellColor: we
|
|
5585
|
-
} =
|
|
5586
|
-
ce && (d.push(ue),
|
|
5590
|
+
} = B;
|
|
5591
|
+
ce && (d.push(ue), B.filterOptionsInputValue = "", B.filterCheckboxGroupValue = [], B.customFilterDropdown = !0, B.onFilter = (Le, vt) => vt[ue].toString().toLowerCase().includes(Le.toLowerCase())), B.customHeaderCell = () => ({
|
|
5587
5592
|
style: {
|
|
5588
5593
|
display: "table-cell",
|
|
5589
5594
|
verticalAlign: "middle",
|
|
@@ -5593,7 +5598,7 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5593
5598
|
color: we,
|
|
5594
5599
|
borderBottomColor: e.borderColor
|
|
5595
5600
|
}
|
|
5596
|
-
}),
|
|
5601
|
+
}), B.customCell = (Le, vt) => ({
|
|
5597
5602
|
style: {
|
|
5598
5603
|
textAlign: te,
|
|
5599
5604
|
color: oe,
|
|
@@ -5601,28 +5606,28 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5601
5606
|
borderBottomColor: e.borderColor
|
|
5602
5607
|
},
|
|
5603
5608
|
class: {
|
|
5604
|
-
highlight: v(
|
|
5609
|
+
highlight: v(q) === vt && e.clickHighlight
|
|
5605
5610
|
},
|
|
5606
|
-
onClick:
|
|
5607
|
-
const Ut = e.id, Dn =
|
|
5611
|
+
onClick: E("click", () => {
|
|
5612
|
+
const Ut = e.id, Dn = G(Ut);
|
|
5608
5613
|
Le = {
|
|
5609
5614
|
dataIndex: ue,
|
|
5610
5615
|
title: ge,
|
|
5611
5616
|
...Le
|
|
5612
5617
|
}, J(Ut, { ...Dn, RECORD: Le });
|
|
5613
5618
|
})
|
|
5614
|
-
}), Array.isArray(
|
|
5619
|
+
}), Array.isArray(B.children) && u(B.children);
|
|
5615
5620
|
}
|
|
5616
5621
|
}
|
|
5617
|
-
},
|
|
5622
|
+
}, m = (I = []) => (e.isUseSeq && I.unshift({
|
|
5618
5623
|
title: "序号",
|
|
5619
5624
|
dataIndex: "SEQ",
|
|
5620
5625
|
align: "center"
|
|
5621
|
-
}), e.isUseAction &&
|
|
5626
|
+
}), e.isUseAction && I.push({
|
|
5622
5627
|
title: "操作",
|
|
5623
5628
|
dataIndex: "ACTION",
|
|
5624
5629
|
width: e.actionColumnWidth
|
|
5625
|
-
}), u(
|
|
5630
|
+
}), u(I), I);
|
|
5626
5631
|
ne(() => [
|
|
5627
5632
|
e.columns,
|
|
5628
5633
|
e.isUseSeq,
|
|
@@ -5632,51 +5637,51 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5632
5637
|
e.cellBackgroundColor,
|
|
5633
5638
|
e.borderColor
|
|
5634
5639
|
], () => {
|
|
5635
|
-
i.value =
|
|
5640
|
+
i.value = m(Ct(e.columns));
|
|
5636
5641
|
}, {
|
|
5637
5642
|
immediate: !0,
|
|
5638
5643
|
deep: !0
|
|
5639
|
-
}), ne(() => [e.data, e.dataType], ([
|
|
5640
|
-
O === "static" && (r.value =
|
|
5644
|
+
}), ne(() => [e.data, e.dataType], ([I, O]) => {
|
|
5645
|
+
O === "static" && (r.value = I);
|
|
5641
5646
|
}, {
|
|
5642
5647
|
immediate: !0
|
|
5643
5648
|
});
|
|
5644
|
-
const
|
|
5645
|
-
if (Array.isArray(
|
|
5646
|
-
const O =
|
|
5649
|
+
const h = M({}), b = (I) => {
|
|
5650
|
+
if (Array.isArray(I)) {
|
|
5651
|
+
const O = I.length, V = d, Z = V.length, B = {};
|
|
5647
5652
|
for (let oe = 0; oe < O; oe++) {
|
|
5648
|
-
const ue =
|
|
5653
|
+
const ue = I[oe];
|
|
5649
5654
|
for (let ge = 0; ge < Z; ge++) {
|
|
5650
5655
|
const ce = V[ge];
|
|
5651
|
-
if (
|
|
5652
|
-
|
|
5656
|
+
if (B[ce])
|
|
5657
|
+
B[ce].add(ue[ce]);
|
|
5653
5658
|
else {
|
|
5654
5659
|
const Ee = /* @__PURE__ */ new Set();
|
|
5655
|
-
Ee.add(ue[ce]),
|
|
5660
|
+
Ee.add(ue[ce]), B[ce] = Ee;
|
|
5656
5661
|
}
|
|
5657
5662
|
}
|
|
5658
5663
|
}
|
|
5659
5664
|
const te = {};
|
|
5660
|
-
for (const oe in
|
|
5661
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5662
|
-
const ue =
|
|
5665
|
+
for (const oe in B)
|
|
5666
|
+
if (Object.prototype.hasOwnProperty.call(B, oe)) {
|
|
5667
|
+
const ue = B[oe], ge = Array.from(ue);
|
|
5663
5668
|
te[oe] = ge.map((ce) => ({ label: ce, value: ce }));
|
|
5664
5669
|
}
|
|
5665
|
-
|
|
5670
|
+
h.value = te;
|
|
5666
5671
|
}
|
|
5667
5672
|
};
|
|
5668
5673
|
ne(() => [e.isReverse, i.value, r.value], () => {
|
|
5669
|
-
const
|
|
5670
|
-
if (
|
|
5671
|
-
const { columns: V, dataSource: Z } =
|
|
5674
|
+
const I = v(i), O = v(r);
|
|
5675
|
+
if (b(O), e.isReverse) {
|
|
5676
|
+
const { columns: V, dataSource: Z } = w(Ct(I), Ct(O));
|
|
5672
5677
|
s.value = V, f.value = Z;
|
|
5673
5678
|
} else
|
|
5674
|
-
s.value =
|
|
5679
|
+
s.value = I, f.value = O;
|
|
5675
5680
|
}, {
|
|
5676
5681
|
immediate: !0
|
|
5677
5682
|
});
|
|
5678
|
-
const
|
|
5679
|
-
const V =
|
|
5683
|
+
const w = (I, O) => {
|
|
5684
|
+
const V = I[0], Z = [{
|
|
5680
5685
|
title: V.title,
|
|
5681
5686
|
dataIndex: "col0",
|
|
5682
5687
|
key: "col0",
|
|
@@ -5691,61 +5696,61 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5691
5696
|
align: "center"
|
|
5692
5697
|
});
|
|
5693
5698
|
}
|
|
5694
|
-
const
|
|
5695
|
-
for (let te = 1; te <
|
|
5696
|
-
const oe =
|
|
5699
|
+
const B = [];
|
|
5700
|
+
for (let te = 1; te < I.length; te++) {
|
|
5701
|
+
const oe = I[te], ue = { col0: oe.title };
|
|
5697
5702
|
for (let ge = 0; ge < O.length; ge++) {
|
|
5698
5703
|
const ce = O[ge];
|
|
5699
5704
|
ue[`col${ge + 1}`] = ce[oe.dataIndex];
|
|
5700
5705
|
}
|
|
5701
|
-
|
|
5706
|
+
B.push(ue);
|
|
5702
5707
|
}
|
|
5703
5708
|
return {
|
|
5704
5709
|
columns: Z,
|
|
5705
|
-
dataSource:
|
|
5710
|
+
dataSource: B
|
|
5706
5711
|
};
|
|
5707
|
-
},
|
|
5712
|
+
}, A = M(""), L = _e(e), p = M(!1), _ = async (I = !0, O = {}) => {
|
|
5708
5713
|
var V;
|
|
5709
5714
|
try {
|
|
5710
|
-
|
|
5715
|
+
I && (p.value = !0), v(A) && (O.orderCondition = v(A)), e.paginationShow && (O = {
|
|
5711
5716
|
pageNum: v(S),
|
|
5712
5717
|
pageSize: v(C),
|
|
5713
5718
|
layer: "1",
|
|
5714
5719
|
...O
|
|
5715
5720
|
});
|
|
5716
|
-
const Z = await
|
|
5717
|
-
|
|
5721
|
+
const Z = await L(O), { rows: B = [], total: te = 0 } = ((V = Z == null ? void 0 : Z.data) == null ? void 0 : V.data) || {};
|
|
5722
|
+
y.value = te, Array.isArray(B) && (r.value = B);
|
|
5718
5723
|
} catch (Z) {
|
|
5719
5724
|
console.error(Z);
|
|
5720
5725
|
} finally {
|
|
5721
5726
|
p.value = !1;
|
|
5722
5727
|
}
|
|
5723
|
-
}, x = ({ current:
|
|
5724
|
-
if (S.value =
|
|
5725
|
-
const { field: Z, order:
|
|
5728
|
+
}, x = ({ current: I }, O, V) => {
|
|
5729
|
+
if (S.value = I, V && Object.keys(V).length > 0) {
|
|
5730
|
+
const { field: Z, order: B } = V, oe = {
|
|
5726
5731
|
ascend: "asc",
|
|
5727
5732
|
descend: "desc"
|
|
5728
|
-
}[
|
|
5729
|
-
Z != null && oe != null && (
|
|
5733
|
+
}[B];
|
|
5734
|
+
Z != null && oe != null && (A.value = Z + " " + oe, S.value = 1);
|
|
5730
5735
|
}
|
|
5731
5736
|
ie(!1);
|
|
5732
|
-
}, c =
|
|
5733
|
-
const
|
|
5737
|
+
}, c = W(() => {
|
|
5738
|
+
const I = e.simple, O = [e.paginationPosition];
|
|
5734
5739
|
return e.paginationShow && {
|
|
5735
|
-
simple:
|
|
5740
|
+
simple: I,
|
|
5736
5741
|
position: O,
|
|
5737
|
-
total: v(
|
|
5742
|
+
total: v(y),
|
|
5738
5743
|
current: v(S),
|
|
5739
5744
|
pageSize: v(C),
|
|
5740
5745
|
showSizeChanger: !1
|
|
5741
5746
|
};
|
|
5742
|
-
}),
|
|
5747
|
+
}), g = (I) => +I == 1 ? "是" : +I == 0 ? "否" : I, k = (I, O) => O == null || O === "" ? I : {
|
|
5743
5748
|
money: Pt,
|
|
5744
5749
|
percentage: ut,
|
|
5745
5750
|
contrast: ut,
|
|
5746
|
-
boolean:
|
|
5747
|
-
}[O](
|
|
5748
|
-
const V = parseFloat(
|
|
5751
|
+
boolean: g
|
|
5752
|
+
}[O](I) || "", R = (I, O) => {
|
|
5753
|
+
const V = parseFloat(I + "");
|
|
5749
5754
|
if (O !== "contrast")
|
|
5750
5755
|
return "";
|
|
5751
5756
|
switch (!0) {
|
|
@@ -5754,41 +5759,41 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5754
5759
|
case V < 0:
|
|
5755
5760
|
return "goDown";
|
|
5756
5761
|
}
|
|
5757
|
-
},
|
|
5762
|
+
}, E = me(e), { pageMode: T } = P(fe, {
|
|
5758
5763
|
pageMode: "normal"
|
|
5759
|
-
}), { getGlobalModel:
|
|
5764
|
+
}), { getGlobalModel: G, setGlobalModel: J } = P(ye, {
|
|
5760
5765
|
// @ts-ignore
|
|
5761
5766
|
// eslint-disable-next-line no-void
|
|
5762
|
-
getGlobalModel: (
|
|
5767
|
+
getGlobalModel: (I) => {
|
|
5763
5768
|
},
|
|
5764
5769
|
// @ts-ignore
|
|
5765
5770
|
// eslint-disable-next-line no-void
|
|
5766
|
-
setGlobalModel: (
|
|
5771
|
+
setGlobalModel: (I, O) => {
|
|
5767
5772
|
}
|
|
5768
|
-
}),
|
|
5769
|
-
const V =
|
|
5770
|
-
i.value =
|
|
5771
|
-
},
|
|
5772
|
-
var
|
|
5773
|
+
}), $ = (I = [], O = []) => {
|
|
5774
|
+
const V = I.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5775
|
+
i.value = m(V), r.value = O;
|
|
5776
|
+
}, N = ot(e), z = async () => {
|
|
5777
|
+
var I, O, V, Z;
|
|
5773
5778
|
try {
|
|
5774
5779
|
p.value = !0;
|
|
5775
|
-
const
|
|
5776
|
-
|
|
5777
|
-
} catch (
|
|
5778
|
-
console.error(
|
|
5780
|
+
const B = await N();
|
|
5781
|
+
$((O = (I = B == null ? void 0 : B.data) == null ? void 0 : I.data) == null ? void 0 : O.columns, (Z = (V = B == null ? void 0 : B.data) == null ? void 0 : V.data) == null ? void 0 : Z.rows);
|
|
5782
|
+
} catch (B) {
|
|
5783
|
+
console.error(B);
|
|
5779
5784
|
} finally {
|
|
5780
5785
|
p.value = !1;
|
|
5781
5786
|
}
|
|
5782
|
-
},
|
|
5783
|
-
onClick:
|
|
5784
|
-
const V = e.id, Z =
|
|
5785
|
-
J(V, { ...Z, RECORD:
|
|
5787
|
+
}, q = M(-1), X = (I, O) => ({
|
|
5788
|
+
onClick: E("rowClick", () => {
|
|
5789
|
+
const V = e.id, Z = G(V);
|
|
5790
|
+
J(V, { ...Z, RECORD: I }), q.value = O;
|
|
5786
5791
|
})
|
|
5787
|
-
}), ie = (
|
|
5788
|
-
if (v(
|
|
5792
|
+
}), ie = (I = !0) => {
|
|
5793
|
+
if (v(T) !== "design")
|
|
5789
5794
|
switch (e.dataType) {
|
|
5790
5795
|
case "request":
|
|
5791
|
-
|
|
5796
|
+
_(I);
|
|
5792
5797
|
break;
|
|
5793
5798
|
case "indicator":
|
|
5794
5799
|
z();
|
|
@@ -5797,22 +5802,22 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5797
5802
|
};
|
|
5798
5803
|
he(e, {
|
|
5799
5804
|
resetRecord: () => {
|
|
5800
|
-
const
|
|
5801
|
-
J(
|
|
5805
|
+
const I = e.id, O = G(I);
|
|
5806
|
+
J(I, { ...O, RECORD: "" });
|
|
5802
5807
|
},
|
|
5803
5808
|
refreshData: ie
|
|
5804
5809
|
});
|
|
5805
|
-
const En =
|
|
5806
|
-
const
|
|
5810
|
+
const En = W(() => {
|
|
5811
|
+
const I = v(s), O = [];
|
|
5807
5812
|
let V = 0;
|
|
5808
|
-
for (let
|
|
5809
|
-
const te =
|
|
5810
|
-
e.isUseSeq &&
|
|
5813
|
+
for (let B = 0; B < I.length; B++) {
|
|
5814
|
+
const te = I[B], { isCalcTotal: oe } = te;
|
|
5815
|
+
e.isUseSeq && B === 0 ? O.push({
|
|
5811
5816
|
...te,
|
|
5812
5817
|
total: "小计"
|
|
5813
5818
|
}) : oe ? (O.push({
|
|
5814
5819
|
...te,
|
|
5815
|
-
index:
|
|
5820
|
+
index: B,
|
|
5816
5821
|
total: 0
|
|
5817
5822
|
}), V++) : O.push({
|
|
5818
5823
|
...te
|
|
@@ -5821,8 +5826,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5821
5826
|
if (V === 0)
|
|
5822
5827
|
return [];
|
|
5823
5828
|
const Z = v(f);
|
|
5824
|
-
for (let
|
|
5825
|
-
const te = O[
|
|
5829
|
+
for (let B = 0; B < O.length; B++) {
|
|
5830
|
+
const te = O[B];
|
|
5826
5831
|
let oe = 0;
|
|
5827
5832
|
const { isCalcTotal: ue, dataIndex: ge } = te;
|
|
5828
5833
|
if (ue === !0) {
|
|
@@ -5834,8 +5839,8 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5834
5839
|
}
|
|
5835
5840
|
}
|
|
5836
5841
|
return O;
|
|
5837
|
-
}), { setRequest: Bt } =
|
|
5838
|
-
setRequest: (
|
|
5842
|
+
}), { setRequest: Bt } = P(Se, {
|
|
5843
|
+
setRequest: (I) => {
|
|
5839
5844
|
}
|
|
5840
5845
|
});
|
|
5841
5846
|
return typeof Bt == "function" && Bt({
|
|
@@ -5851,49 +5856,49 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5851
5856
|
customRow: X,
|
|
5852
5857
|
pagination: c,
|
|
5853
5858
|
formatFn: k,
|
|
5854
|
-
contrastClass:
|
|
5859
|
+
contrastClass: R,
|
|
5855
5860
|
tableChange: x,
|
|
5856
5861
|
summaryList: En,
|
|
5857
5862
|
loading: p,
|
|
5858
|
-
onTouchHrefEvent: (
|
|
5859
|
-
|
|
5863
|
+
onTouchHrefEvent: (I, O = "") => {
|
|
5864
|
+
I === "event" && window.parent.postMessage({
|
|
5860
5865
|
type: "openPage",
|
|
5861
5866
|
url: O
|
|
5862
5867
|
}, "*");
|
|
5863
5868
|
},
|
|
5864
|
-
handleHref: (
|
|
5865
|
-
handleHrefTarget: (
|
|
5866
|
-
if (
|
|
5869
|
+
handleHref: (I = "", O) => de(I, O),
|
|
5870
|
+
handleHrefTarget: (I) => {
|
|
5871
|
+
if (I !== "event")
|
|
5867
5872
|
return {
|
|
5868
5873
|
self: "_self",
|
|
5869
5874
|
blank: "_blank"
|
|
5870
|
-
}[
|
|
5875
|
+
}[I];
|
|
5871
5876
|
},
|
|
5872
|
-
useRowIndex:
|
|
5877
|
+
useRowIndex: q,
|
|
5873
5878
|
tableColumns: s,
|
|
5874
5879
|
tableDataSource: f,
|
|
5875
|
-
useFilterOptions: (
|
|
5876
|
-
const O =
|
|
5880
|
+
useFilterOptions: (I) => {
|
|
5881
|
+
const O = I.dataIndex;
|
|
5877
5882
|
if (typeof O == "string") {
|
|
5878
|
-
let V = v(
|
|
5879
|
-
const Z = v(
|
|
5880
|
-
return Array.isArray(V) ? (V = V.filter((
|
|
5883
|
+
let V = v(h)[O];
|
|
5884
|
+
const Z = v(I.filterOptionsInputValue).trim();
|
|
5885
|
+
return Array.isArray(V) ? (V = V.filter((B) => typeof B.label == "string" ? B.label.toLowerCase().includes(Z.toLowerCase()) : !0), V) : [];
|
|
5881
5886
|
}
|
|
5882
5887
|
return [];
|
|
5883
5888
|
},
|
|
5884
|
-
useSetSelectedKeys: (
|
|
5885
|
-
|
|
5889
|
+
useSetSelectedKeys: (I, O) => {
|
|
5890
|
+
I(O.filterCheckboxGroupValue);
|
|
5886
5891
|
},
|
|
5887
|
-
onResetFilter: (
|
|
5888
|
-
|
|
5892
|
+
onResetFilter: (I, O) => {
|
|
5893
|
+
I({ confirm: !0 }), O.filterOptionsInputValue = "", O.filterCheckboxGroupValue = [];
|
|
5889
5894
|
},
|
|
5890
5895
|
onSearchFilterOptions: () => {
|
|
5891
5896
|
},
|
|
5892
5897
|
exportTable: async () => {
|
|
5893
5898
|
var ce, Ee;
|
|
5894
|
-
const
|
|
5899
|
+
const I = "EXPORT_KEY";
|
|
5895
5900
|
Be.loading({
|
|
5896
|
-
key:
|
|
5901
|
+
key: I,
|
|
5897
5902
|
content: "正在导出...",
|
|
5898
5903
|
duration: 0
|
|
5899
5904
|
});
|
|
@@ -5902,16 +5907,16 @@ const fs = /* @__PURE__ */ K(cs, [["render", us], ["__scopeId", "data-v-19bc100c
|
|
|
5902
5907
|
O = e.data;
|
|
5903
5908
|
else if (e.dataType === "request") {
|
|
5904
5909
|
const we = { layer: "1" };
|
|
5905
|
-
v(
|
|
5906
|
-
const Le = await
|
|
5910
|
+
v(A) && (we.orderCondition = v(A));
|
|
5911
|
+
const Le = await L(we);
|
|
5907
5912
|
O = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
5908
5913
|
}
|
|
5909
|
-
const V = v(s), Z = [],
|
|
5914
|
+
const V = v(s), Z = [], B = [];
|
|
5910
5915
|
V == null || V.forEach((we) => {
|
|
5911
|
-
Z.push(we.dataIndex),
|
|
5916
|
+
Z.push(we.dataIndex), B.push(we.title);
|
|
5912
5917
|
});
|
|
5913
|
-
const te = O.map((we) => vo(we, Z)), oe = lt.book_new(), ue = lt.aoa_to_sheet([
|
|
5914
|
-
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key:
|
|
5918
|
+
const te = O.map((we) => vo(we, Z)), oe = lt.book_new(), ue = lt.aoa_to_sheet([B]), ge = lt.sheet_add_json(ue, te, { skipHeader: !0, origin: "A2" });
|
|
5919
|
+
lt.book_append_sheet(oe, ge, "sheet"), sa(oe, "表格数据.xlsx"), Be.success({ key: I, content: "导出成功" });
|
|
5915
5920
|
}
|
|
5916
5921
|
};
|
|
5917
5922
|
}
|
|
@@ -5924,15 +5929,15 @@ const ys = {
|
|
|
5924
5929
|
class: "action-list"
|
|
5925
5930
|
}, ws = ["href", "target", "onClick"];
|
|
5926
5931
|
function xs(e, o, t, n, a, l) {
|
|
5927
|
-
const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"),
|
|
5928
|
-
return
|
|
5932
|
+
const i = H("a-button"), r = H("a-input"), s = H("a-checkbox-group"), f = H("a-table-summary-cell"), y = H("a-table-summary-row"), S = H("a-table-summary"), C = H("a-table"), d = H("skeleton");
|
|
5933
|
+
return D(), F("div", {
|
|
5929
5934
|
class: "ecan-table",
|
|
5930
5935
|
style: U(e.style)
|
|
5931
5936
|
}, [
|
|
5932
|
-
|
|
5937
|
+
j(d, { loading: e.loading }, {
|
|
5933
5938
|
default: Y(() => [
|
|
5934
|
-
e.isUseExport ? (
|
|
5935
|
-
|
|
5939
|
+
e.isUseExport ? (D(), F("div", ys, [
|
|
5940
|
+
j(i, {
|
|
5936
5941
|
class: "export-button",
|
|
5937
5942
|
onClick: e.exportTable
|
|
5938
5943
|
}, {
|
|
@@ -5942,7 +5947,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
5942
5947
|
_: 1
|
|
5943
5948
|
}, 8, ["onClick"])
|
|
5944
5949
|
])) : ve("", !0),
|
|
5945
|
-
|
|
5950
|
+
j(C, {
|
|
5946
5951
|
class: "table",
|
|
5947
5952
|
style: {
|
|
5948
5953
|
height: "100%"
|
|
@@ -5956,43 +5961,43 @@ function xs(e, o, t, n, a, l) {
|
|
|
5956
5961
|
pagination: e.pagination,
|
|
5957
5962
|
onChange: e.tableChange
|
|
5958
5963
|
}, {
|
|
5959
|
-
customFilterDropdown: Y(({ column: u, selectedKeys:
|
|
5964
|
+
customFilterDropdown: Y(({ column: u, selectedKeys: m, setSelectedKeys: h, confirm: b, clearFilters: w }) => [
|
|
5960
5965
|
ee("div", {
|
|
5961
5966
|
class: "ecan-table-filter",
|
|
5962
5967
|
style: U({
|
|
5963
5968
|
height: e.filterDropdownHeight
|
|
5964
5969
|
})
|
|
5965
5970
|
}, [
|
|
5966
|
-
|
|
5971
|
+
j(r, {
|
|
5967
5972
|
value: u.filterOptionsInputValue,
|
|
5968
|
-
"onUpdate:value": (
|
|
5973
|
+
"onUpdate:value": (A) => u.filterOptionsInputValue = A,
|
|
5969
5974
|
placeholder: "请输入关键字",
|
|
5970
5975
|
class: "filter-input",
|
|
5971
5976
|
onChange: e.onSearchFilterOptions
|
|
5972
5977
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
5973
|
-
|
|
5978
|
+
j(s, {
|
|
5974
5979
|
value: u.filterCheckboxGroupValue,
|
|
5975
|
-
"onUpdate:value": (
|
|
5980
|
+
"onUpdate:value": (A) => u.filterCheckboxGroupValue = A,
|
|
5976
5981
|
class: "filter-checkbox",
|
|
5977
5982
|
options: e.useFilterOptions(u),
|
|
5978
|
-
onChange: (
|
|
5983
|
+
onChange: (A) => e.useSetSelectedKeys(h, u)
|
|
5979
5984
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
5980
5985
|
ee("div", null, [
|
|
5981
|
-
|
|
5986
|
+
j(i, {
|
|
5982
5987
|
type: "primary",
|
|
5983
5988
|
size: "small",
|
|
5984
5989
|
style: { width: "90px", "margin-right": "8px" },
|
|
5985
|
-
onClick: () =>
|
|
5990
|
+
onClick: () => b()
|
|
5986
5991
|
}, {
|
|
5987
5992
|
default: Y(() => [
|
|
5988
5993
|
vs
|
|
5989
5994
|
]),
|
|
5990
5995
|
_: 2
|
|
5991
5996
|
}, 1032, ["onClick"]),
|
|
5992
|
-
|
|
5997
|
+
j(i, {
|
|
5993
5998
|
size: "small",
|
|
5994
5999
|
style: { width: "90px" },
|
|
5995
|
-
onClick: go((
|
|
6000
|
+
onClick: go((A) => e.onResetFilter(w, u), ["stop"])
|
|
5996
6001
|
}, {
|
|
5997
6002
|
default: Y(() => [
|
|
5998
6003
|
ps
|
|
@@ -6002,41 +6007,41 @@ function xs(e, o, t, n, a, l) {
|
|
|
6002
6007
|
])
|
|
6003
6008
|
], 4)
|
|
6004
6009
|
]),
|
|
6005
|
-
bodyCell: Y(({ column: u, index:
|
|
6006
|
-
u.dataIndex === "SEQ" ? (
|
|
6007
|
-
u.dataIndex === "ACTION" ? (
|
|
6008
|
-
(
|
|
6010
|
+
bodyCell: Y(({ column: u, index: m, text: h, record: b }) => [
|
|
6011
|
+
u.dataIndex === "SEQ" ? (D(), F("span", Cs, be(m + 1), 1)) : ve("", !0),
|
|
6012
|
+
u.dataIndex === "ACTION" ? (D(), F("div", Ss, [
|
|
6013
|
+
(D(!0), F(Me, null, De(e.actionList, (w, A) => (D(), F("div", {
|
|
6009
6014
|
class: "action",
|
|
6010
|
-
key:
|
|
6015
|
+
key: A
|
|
6011
6016
|
}, [
|
|
6012
6017
|
ee("a", {
|
|
6013
|
-
href: e.handleHref(
|
|
6014
|
-
target: e.handleHrefTarget(
|
|
6018
|
+
href: e.handleHref(w.href, b),
|
|
6019
|
+
target: e.handleHrefTarget(w.target),
|
|
6015
6020
|
style: U({
|
|
6016
|
-
color:
|
|
6021
|
+
color: w.color,
|
|
6017
6022
|
fontSize: e.fontSize,
|
|
6018
6023
|
fontWeight: e.fontWeight
|
|
6019
6024
|
}),
|
|
6020
|
-
onClick: (
|
|
6021
|
-
}, be(
|
|
6025
|
+
onClick: (L) => e.onTouchHrefEvent(w.target, e.handleHref(w.href, b))
|
|
6026
|
+
}, be(w.title), 13, ws)
|
|
6022
6027
|
]))), 128))
|
|
6023
|
-
])) : (
|
|
6028
|
+
])) : (D(), F("div", {
|
|
6024
6029
|
key: 2,
|
|
6025
|
-
class:
|
|
6030
|
+
class: It([e.contrastClass(h, u.format)]),
|
|
6026
6031
|
style: U({
|
|
6027
6032
|
fontSize: e.fontSize,
|
|
6028
6033
|
fontWeight: e.fontWeight
|
|
6029
6034
|
})
|
|
6030
|
-
}, be(u.format != null ? e.formatFn(
|
|
6035
|
+
}, be(u.format != null ? e.formatFn(h, u.format) : h), 7))
|
|
6031
6036
|
]),
|
|
6032
6037
|
summary: Y(() => [
|
|
6033
|
-
e.summaryList.length > 0 ? (
|
|
6038
|
+
e.summaryList.length > 0 ? (D(), Re(S, { key: 0 }, {
|
|
6034
6039
|
default: Y(() => [
|
|
6035
|
-
|
|
6040
|
+
j(y, null, {
|
|
6036
6041
|
default: Y(() => [
|
|
6037
|
-
(
|
|
6038
|
-
key:
|
|
6039
|
-
index:
|
|
6042
|
+
(D(!0), F(Me, null, De(e.summaryList, (u, m) => (D(), Re(f, {
|
|
6043
|
+
key: m,
|
|
6044
|
+
index: m,
|
|
6040
6045
|
style: U({
|
|
6041
6046
|
backgroundColor: e.cellBackgroundColor,
|
|
6042
6047
|
textAlign: u.cellAlign || "center",
|
|
@@ -6046,7 +6051,7 @@ function xs(e, o, t, n, a, l) {
|
|
|
6046
6051
|
}, {
|
|
6047
6052
|
default: Y(() => [
|
|
6048
6053
|
ee("div", {
|
|
6049
|
-
class:
|
|
6054
|
+
class: It([e.contrastClass(u.total, u.format)]),
|
|
6050
6055
|
style: U({
|
|
6051
6056
|
fontSize: e.fontSize,
|
|
6052
6057
|
fontWeight: e.fontWeight
|
|
@@ -6116,7 +6121,7 @@ qe([
|
|
|
6116
6121
|
aa,
|
|
6117
6122
|
xo,
|
|
6118
6123
|
la,
|
|
6119
|
-
|
|
6124
|
+
Ft,
|
|
6120
6125
|
ia
|
|
6121
6126
|
]);
|
|
6122
6127
|
const _s = Q({
|
|
@@ -6128,16 +6133,16 @@ const _s = Q({
|
|
|
6128
6133
|
...Mn
|
|
6129
6134
|
},
|
|
6130
6135
|
setup(e) {
|
|
6131
|
-
const o = re(e, ["backgroundImage"]), t =
|
|
6136
|
+
const o = re(e, ["backgroundImage"]), t = M(), n = W(() => $e(e.geoBackgroundImage)), a = W(() => $e(e.backgroundImage)), l = W(() => e.geoBackgroundImage ? {
|
|
6132
6137
|
image: v(t),
|
|
6133
6138
|
repeat: e.geoBackgroundImageRepeat
|
|
6134
|
-
} : e.geoItemStyleAreaColor), i =
|
|
6135
|
-
const
|
|
6136
|
-
return e.symbolImage ? "image://" + $e(
|
|
6137
|
-
}), r =
|
|
6138
|
-
const
|
|
6139
|
+
} : e.geoItemStyleAreaColor), i = W(() => {
|
|
6140
|
+
const y = e.symbolImage;
|
|
6141
|
+
return e.symbolImage ? "image://" + $e(y) : "circle";
|
|
6142
|
+
}), r = W(() => {
|
|
6143
|
+
const y = e.geoCenter;
|
|
6139
6144
|
let S;
|
|
6140
|
-
return typeof
|
|
6145
|
+
return typeof y == "string" && y !== "" && (S = y.split(",")), {
|
|
6141
6146
|
// backgroundColor: unref(background),
|
|
6142
6147
|
tooltip: {
|
|
6143
6148
|
show: !0
|
|
@@ -6216,11 +6221,11 @@ const _s = Q({
|
|
|
6216
6221
|
}
|
|
6217
6222
|
]
|
|
6218
6223
|
};
|
|
6219
|
-
}), s =
|
|
6224
|
+
}), s = M(!1), f = async () => {
|
|
6220
6225
|
var S;
|
|
6221
|
-
const
|
|
6222
|
-
if (
|
|
6223
|
-
const C = await
|
|
6226
|
+
const y = e.mapJson;
|
|
6227
|
+
if (y != null && y.path) {
|
|
6228
|
+
const C = await Fe(((S = window == null ? void 0 : window.config) == null ? void 0 : S.uploadPath) + y.path);
|
|
6224
6229
|
Gn("map", (C == null ? void 0 : C.data) || {});
|
|
6225
6230
|
}
|
|
6226
6231
|
s.value = !0;
|
|
@@ -6242,11 +6247,11 @@ const _s = Q({
|
|
|
6242
6247
|
const Ts = ["src"];
|
|
6243
6248
|
function Ls(e, o, t, n, a, l) {
|
|
6244
6249
|
const i = H("echarts");
|
|
6245
|
-
return
|
|
6250
|
+
return D(), F("div", {
|
|
6246
6251
|
class: "ecan-map",
|
|
6247
6252
|
style: U(e.style)
|
|
6248
6253
|
}, [
|
|
6249
|
-
e.isLoadedData ? (
|
|
6254
|
+
e.isLoadedData ? (D(), Re(i, {
|
|
6250
6255
|
key: 0,
|
|
6251
6256
|
option: e.option,
|
|
6252
6257
|
"update-options": { notMerge: !0 },
|
|
@@ -6283,7 +6288,7 @@ const Is = /* @__PURE__ */ K(_s, [["render", Ls], ["__scopeId", "data-v-1fb5cdee
|
|
|
6283
6288
|
EcanRangePicker: Pi,
|
|
6284
6289
|
EcanScatter: hr,
|
|
6285
6290
|
EcanScrollText: Ql,
|
|
6286
|
-
EcanSelect:
|
|
6291
|
+
EcanSelect: Ri,
|
|
6287
6292
|
EcanTable: As,
|
|
6288
6293
|
EcanTabs: ns,
|
|
6289
6294
|
EcanText: Vl,
|
|
@@ -6337,7 +6342,7 @@ const Is = /* @__PURE__ */ K(_s, [["render", Ls], ["__scopeId", "data-v-1fb5cdee
|
|
|
6337
6342
|
providerConfig: zo,
|
|
6338
6343
|
providerConfigComponentProps: $o,
|
|
6339
6344
|
rangePickerComponentProps: Xo,
|
|
6340
|
-
rangePickerEvents:
|
|
6345
|
+
rangePickerEvents: Fi,
|
|
6341
6346
|
rangePickerProps: Ko,
|
|
6342
6347
|
scatterComponentProps: fn,
|
|
6343
6348
|
scatterEvents: ur,
|
|
@@ -6386,7 +6391,7 @@ export {
|
|
|
6386
6391
|
Pi as EcanRangePicker,
|
|
6387
6392
|
hr as EcanScatter,
|
|
6388
6393
|
Ql as EcanScrollText,
|
|
6389
|
-
|
|
6394
|
+
Ri as EcanSelect,
|
|
6390
6395
|
As as EcanTable,
|
|
6391
6396
|
ns as EcanTabs,
|
|
6392
6397
|
Vl as EcanText,
|
|
@@ -6441,7 +6446,7 @@ export {
|
|
|
6441
6446
|
zo as providerConfig,
|
|
6442
6447
|
$o as providerConfigComponentProps,
|
|
6443
6448
|
Xo as rangePickerComponentProps,
|
|
6444
|
-
|
|
6449
|
+
Fi as rangePickerEvents,
|
|
6445
6450
|
Ko as rangePickerProps,
|
|
6446
6451
|
fn as scatterComponentProps,
|
|
6447
6452
|
ur as scatterEvents,
|