@ecan-bi/datav 1.1.56 → 1.1.58
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 +926 -910
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +28 -0
- package/types/graph/combo-graph/index.d.ts +28 -0
- package/types/graph/combo-graph/props.d.ts +15 -0
- package/types/graph/scatter/Scatter.vue.d.ts +36 -0
- package/types/graph/scatter/index.d.ts +37 -1
- package/types/graph/scatter/props.d.ts +20 -0
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
import { watch as ne, inject as N, computed as q, unref as
|
|
1
|
+
/*! @ecan-bi/datav@1.1.58 */
|
|
2
|
+
import { watch as ne, inject as N, computed as q, unref as C, watchEffect as cn, defineComponent as Q, shallowRef as bt, toRefs as Oo, onMounted as Ne, onUnmounted as ut, h as st, nextTick as ft, createVNode as U, resolveComponent as Z, openBlock as E, createElementBlock as $, createBlock as Fe, renderSlot as mt, withCtx as Y, ref as M, normalizeStyle as G, createCommentVNode as ve, provide as Re, onBeforeUnmount as Tt, toDisplayString as ye, Fragment as Ie, renderList as Ee, createElementVNode as ee, normalizeClass as Lt, pushScopeId as dn, popScopeId as un, createSlots as Fo, resolveDynamicComponent as Ro, mergeProps as Do, withModifiers as fn, reactive as $o, createTextVNode as Et, withDirectives as zo, vShow as No } from "vue";
|
|
3
3
|
import { throttle as Po, init as Bo, use as Be, registerMap as Go } from "echarts/core";
|
|
4
4
|
import { addListener as Uo, removeListener as qo } from "resize-detector";
|
|
5
|
-
import { Spin as
|
|
5
|
+
import { Spin as Wo, Skeleton as jo, message as Ze, Progress as Vo, Input as mn, DatePicker as Ho, Select as Zo, RangePicker as Jo, Button as gn, CheckboxGroup as hn, Modal as xe, Table as Yo, TableSummary as Qo, TableSummaryRow as Ko, TableSummaryCell as Xo } 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 ea, pick as ta, debounce as
|
|
8
|
+
import { without as ea, pick as ta, debounce as Ot, cloneDeep as vt } from "lodash-es";
|
|
9
9
|
import yn from "axios";
|
|
10
10
|
import Ce from "dayjs";
|
|
11
11
|
import na 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 Ge } from "echarts/renderers";
|
|
20
20
|
import { PieChart as oa, LineChart as vn, BarChart as pn, ScatterChart as Cn, 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 Sn, 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";
|
|
@@ -72,7 +72,7 @@ const ga = {
|
|
|
72
72
|
}, ha = "ecLoadingOptions";
|
|
73
73
|
function ya(e, n, t) {
|
|
74
74
|
const o = N(ha, {}), a = q(() => ({
|
|
75
|
-
...
|
|
75
|
+
...C(o),
|
|
76
76
|
...t == null ? void 0 : t.value
|
|
77
77
|
}));
|
|
78
78
|
cn(() => {
|
|
@@ -91,7 +91,7 @@ function Ca(e) {
|
|
|
91
91
|
pa(t) || (n[t] = e[t]);
|
|
92
92
|
return n;
|
|
93
93
|
}
|
|
94
|
-
const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions",
|
|
94
|
+
const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", xa = "ecUpdateOptions", ze = Q({
|
|
95
95
|
name: "echarts",
|
|
96
96
|
props: {
|
|
97
97
|
option: Object,
|
|
@@ -112,36 +112,36 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
112
112
|
ka,
|
|
113
113
|
null
|
|
114
114
|
), l = N(
|
|
115
|
-
|
|
115
|
+
xa,
|
|
116
116
|
null
|
|
117
|
-
), { autoresize: d, manualUpdate: c, loading: h, loadingOptions: g } =
|
|
117
|
+
), { autoresize: d, manualUpdate: c, loading: h, loadingOptions: g } = Oo(e), u = q(
|
|
118
118
|
() => r.value || e.option || /* @__PURE__ */ Object.create(null)
|
|
119
|
-
),
|
|
120
|
-
() => e.initOptions ||
|
|
119
|
+
), m = q(() => e.theme || C(s) || {}), b = q(
|
|
120
|
+
() => e.initOptions || C(i) || {}
|
|
121
121
|
), v = q(
|
|
122
|
-
() => e.updateOptions ||
|
|
123
|
-
),
|
|
124
|
-
function
|
|
122
|
+
() => e.updateOptions || C(l) || {}
|
|
123
|
+
), y = q(() => Ca(n));
|
|
124
|
+
function x(S) {
|
|
125
125
|
if (a.value || !o.value)
|
|
126
126
|
return;
|
|
127
|
-
const
|
|
127
|
+
const f = a.value = Bo(
|
|
128
128
|
o.value,
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
m.value,
|
|
130
|
+
b.value
|
|
131
131
|
);
|
|
132
|
-
e.group && (
|
|
132
|
+
e.group && (f.group = e.group);
|
|
133
133
|
let p = t;
|
|
134
134
|
p || (p = {}, Object.keys(n).filter((w) => w.indexOf("on") === 0 && w.length > 2).forEach((w) => {
|
|
135
|
-
const
|
|
136
|
-
p[
|
|
135
|
+
const _ = w.charAt(2).toLowerCase() + w.slice(3);
|
|
136
|
+
p[_] = n[w];
|
|
137
137
|
})), Object.keys(p).forEach((w) => {
|
|
138
|
-
const
|
|
139
|
-
|
|
138
|
+
const _ = p[w];
|
|
139
|
+
_ && (w.indexOf("zr:") === 0 ? f.getZr().on(w.slice(3).toLowerCase(), _) : f.on(w.toLowerCase(), _));
|
|
140
140
|
});
|
|
141
|
-
function
|
|
142
|
-
if (
|
|
141
|
+
function T() {
|
|
142
|
+
if (f && !f.isDisposed())
|
|
143
143
|
try {
|
|
144
|
-
|
|
144
|
+
f.resize();
|
|
145
145
|
} catch (w) {
|
|
146
146
|
if (w.message === "Cannot read property 'get' of undefined")
|
|
147
147
|
return;
|
|
@@ -149,26 +149,26 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
function R() {
|
|
152
|
-
|
|
152
|
+
f.setOption(S || u.value, v.value);
|
|
153
153
|
}
|
|
154
154
|
d.value ? ft(() => {
|
|
155
|
-
|
|
155
|
+
T(), R();
|
|
156
156
|
}) : R();
|
|
157
157
|
}
|
|
158
|
-
function A(
|
|
159
|
-
e.manualUpdate && (r.value =
|
|
158
|
+
function A(S, f) {
|
|
159
|
+
e.manualUpdate && (r.value = S), a.value ? a.value.setOption(S, f || {}) : x(S);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function F() {
|
|
162
162
|
a.value && (a.value.dispose(), a.value = void 0);
|
|
163
163
|
}
|
|
164
|
-
let
|
|
164
|
+
let k = null;
|
|
165
165
|
ne(
|
|
166
166
|
c,
|
|
167
|
-
(
|
|
168
|
-
typeof
|
|
167
|
+
(S) => {
|
|
168
|
+
typeof k == "function" && (k(), k = null), S || (k = ne(
|
|
169
169
|
() => e.option,
|
|
170
|
-
(
|
|
171
|
-
|
|
170
|
+
(f) => {
|
|
171
|
+
f && (a.value ? a.value.setOption(f, v.value) : x());
|
|
172
172
|
},
|
|
173
173
|
{ deep: !0 }
|
|
174
174
|
));
|
|
@@ -177,9 +177,9 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
177
177
|
immediate: !0
|
|
178
178
|
}
|
|
179
179
|
), ne(
|
|
180
|
-
[
|
|
180
|
+
[m, b],
|
|
181
181
|
() => {
|
|
182
|
-
|
|
182
|
+
F(), x();
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
deep: !0
|
|
@@ -187,15 +187,15 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
187
187
|
), cn(() => {
|
|
188
188
|
e.group && a.value && (a.value.group = e.group);
|
|
189
189
|
});
|
|
190
|
-
const
|
|
190
|
+
const L = fa(a, x);
|
|
191
191
|
return ya(a, h, g), ma(a, d, o), Ne(() => {
|
|
192
|
-
e.option &&
|
|
193
|
-
}), ut(
|
|
192
|
+
e.option && x();
|
|
193
|
+
}), ut(F), {
|
|
194
194
|
chart: a,
|
|
195
195
|
root: o,
|
|
196
196
|
setOption: A,
|
|
197
|
-
nonEventAttrs:
|
|
198
|
-
...
|
|
197
|
+
nonEventAttrs: y,
|
|
198
|
+
...L
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
render() {
|
|
@@ -204,17 +204,17 @@ const Sa = "x-vue-echarts", wa = "ecTheme", ka = "ecInitOptions", Aa = "ecUpdate
|
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
function we(e, n) {
|
|
207
|
-
|
|
207
|
+
Aa(e) && (e = "100%");
|
|
208
208
|
var t = Ta(e);
|
|
209
209
|
return e = n === 360 ? e : Math.min(n, Math.max(0, parseFloat(e))), t && (e = parseInt(String(e * n), 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : (n === 360 ? e = (e < 0 ? e % n + n : e % n) / parseFloat(String(n)) : e = e % n / parseFloat(String(n)), e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Aa(e) {
|
|
212
212
|
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
213
213
|
}
|
|
214
214
|
function Ta(e) {
|
|
215
215
|
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function La(e) {
|
|
218
218
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
219
219
|
}
|
|
220
220
|
function at(e) {
|
|
@@ -223,7 +223,7 @@ function at(e) {
|
|
|
223
223
|
function pt(e) {
|
|
224
224
|
return e.length === 1 ? "0" + e : String(e);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function _a(e, n, t) {
|
|
227
227
|
return {
|
|
228
228
|
r: we(e, 255) * 255,
|
|
229
229
|
g: we(n, 255) * 255,
|
|
@@ -269,7 +269,7 @@ function Ea(e, n, t) {
|
|
|
269
269
|
var o = Math.floor(e), a = e - o, r = t * (1 - n), s = t * (1 - a * n), i = t * (1 - (1 - a) * n), l = o % 6, d = [t, s, r, r, i, t][l], c = [i, t, t, s, r, r][l], h = [r, r, i, t, t, s][l];
|
|
270
270
|
return { r: d * 255, g: c * 255, b: h * 255 };
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Oa(e, n, t, o) {
|
|
273
273
|
var a = [
|
|
274
274
|
pt(Math.round(e).toString(16)),
|
|
275
275
|
pt(Math.round(n).toString(16)),
|
|
@@ -435,7 +435,7 @@ var Gt = {
|
|
|
435
435
|
};
|
|
436
436
|
function Ve(e) {
|
|
437
437
|
var n = { r: 0, g: 0, b: 0 }, t = 1, o = null, a = null, r = null, s = !1, i = !1;
|
|
438
|
-
return typeof e == "string" && (e = Da(e)), typeof e == "object" && (
|
|
438
|
+
return typeof e == "string" && (e = Da(e)), typeof e == "object" && (_e(e.r) && _e(e.g) && _e(e.b) ? (n = _a(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : _e(e.h) && _e(e.s) && _e(e.v) ? (o = at(e.s), a = at(e.v), n = Ea(e.h, o, a), s = !0, i = "hsv") : _e(e.h) && _e(e.s) && _e(e.l) && (o = at(e.s), r = at(e.l), n = Ia(e.h, o, r), s = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = La(t), {
|
|
439
439
|
ok: s,
|
|
440
440
|
format: e.format || i,
|
|
441
441
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
@@ -444,8 +444,8 @@ function Ve(e) {
|
|
|
444
444
|
a: t
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var
|
|
448
|
-
CSS_UNIT: new RegExp(
|
|
447
|
+
var Fa = "[-\\+]?\\d+%?", Ra = "[-\\+]?\\d*\\.\\d+%?", Oe = "(?:".concat(Ra, ")|(?:").concat(Fa, ")"), St = "[\\s|\\(]+(".concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")\\s*\\)?"), wt = "[\\s|\\(]+(".concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")[,|\\s]+(").concat(Oe, ")\\s*\\)?"), ke = {
|
|
448
|
+
CSS_UNIT: new RegExp(Oe),
|
|
449
449
|
rgb: new RegExp("rgb" + St),
|
|
450
450
|
rgba: new RegExp("rgba" + wt),
|
|
451
451
|
hsl: new RegExp("hsl" + St),
|
|
@@ -490,7 +490,7 @@ function Da(e) {
|
|
|
490
490
|
format: n ? "name" : "hex"
|
|
491
491
|
} : !1)))))))));
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function _e(e) {
|
|
494
494
|
return Boolean(ke.CSS_UNIT.exec(String(e)));
|
|
495
495
|
}
|
|
496
496
|
var lt = 2, Ut = 0.16, $a = 0.05, za = 0.05, Na = 0.15, wn = 5, kn = 4, Pa = [{
|
|
@@ -534,7 +534,7 @@ function qt(e) {
|
|
|
534
534
|
}
|
|
535
535
|
function it(e) {
|
|
536
536
|
var n = e.r, t = e.g, o = e.b;
|
|
537
|
-
return "#".concat(
|
|
537
|
+
return "#".concat(Oa(n, t, o, !1));
|
|
538
538
|
}
|
|
539
539
|
function Ba(e, n, t) {
|
|
540
540
|
var o = t / 100, a = {
|
|
@@ -544,11 +544,11 @@ function Ba(e, n, t) {
|
|
|
544
544
|
};
|
|
545
545
|
return a;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function Wt(e, n, t) {
|
|
548
548
|
var o;
|
|
549
549
|
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? o = t ? Math.round(e.h) - lt * n : Math.round(e.h) + lt * n : o = t ? Math.round(e.h) + lt * n : Math.round(e.h) - lt * n, o < 0 ? o += 360 : o >= 360 && (o -= 360), o;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function jt(e, n, t) {
|
|
552
552
|
if (e.h === 0 && e.s === 0)
|
|
553
553
|
return e.s;
|
|
554
554
|
var o;
|
|
@@ -558,11 +558,11 @@ function Vt(e, n, t) {
|
|
|
558
558
|
var o;
|
|
559
559
|
return t ? o = e.v + za * n : o = e.v - Na * n, o > 1 && (o = 1), Number(o.toFixed(2));
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function _t(e) {
|
|
562
562
|
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], o = Ve(e), a = wn; a > 0; a -= 1) {
|
|
563
563
|
var r = qt(o), s = it(Ve({
|
|
564
|
-
h:
|
|
565
|
-
s:
|
|
564
|
+
h: Wt(r, a, !0),
|
|
565
|
+
s: jt(r, a, !0),
|
|
566
566
|
v: Vt(r, a, !0)
|
|
567
567
|
}));
|
|
568
568
|
t.push(s);
|
|
@@ -570,8 +570,8 @@ function Lt(e) {
|
|
|
570
570
|
t.push(it(o));
|
|
571
571
|
for (var i = 1; i <= kn; i += 1) {
|
|
572
572
|
var l = qt(o), d = it(Ve({
|
|
573
|
-
h:
|
|
574
|
-
s:
|
|
573
|
+
h: Wt(l, i),
|
|
574
|
+
s: jt(l, i),
|
|
575
575
|
v: Vt(l, i)
|
|
576
576
|
}));
|
|
577
577
|
t.push(d);
|
|
@@ -595,12 +595,12 @@ var kt = {
|
|
|
595
595
|
purple: "#722ED1",
|
|
596
596
|
magenta: "#EB2F96",
|
|
597
597
|
grey: "#666666"
|
|
598
|
-
},
|
|
598
|
+
}, xt = {}, At = {};
|
|
599
599
|
Object.keys(kt).forEach(function(e) {
|
|
600
|
-
|
|
600
|
+
xt[e] = _t(kt[e]), xt[e].primary = xt[e][5], At[e] = _t(kt[e], {
|
|
601
601
|
theme: "dark",
|
|
602
602
|
backgroundColor: "#141414"
|
|
603
|
-
}),
|
|
603
|
+
}), At[e].primary = At[e][5];
|
|
604
604
|
});
|
|
605
605
|
var Ht = [], He = [], Ga = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
606
606
|
function Ua() {
|
|
@@ -621,19 +621,19 @@ function Zt(e) {
|
|
|
621
621
|
typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
622
622
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
623
623
|
}))), o.forEach(function(a) {
|
|
624
|
-
|
|
624
|
+
Wa(e, a, t[a]);
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
return e;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Wa(e, n, t) {
|
|
630
630
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function ja(e, n) {
|
|
633
633
|
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(n));
|
|
634
634
|
}
|
|
635
635
|
function Va(e, n) {
|
|
636
|
-
|
|
636
|
+
ja(e, "[@ant-design/icons-vue] ".concat(n));
|
|
637
637
|
}
|
|
638
638
|
function Jt(e) {
|
|
639
639
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
@@ -649,10 +649,10 @@ function It(e, n, t) {
|
|
|
649
649
|
return It(o, "".concat(n, "-").concat(e.tag, "-").concat(a));
|
|
650
650
|
}));
|
|
651
651
|
}
|
|
652
|
-
function An(e) {
|
|
653
|
-
return Lt(e)[0];
|
|
654
|
-
}
|
|
655
652
|
function xn(e) {
|
|
653
|
+
return _t(e)[0];
|
|
654
|
+
}
|
|
655
|
+
function An(e) {
|
|
656
656
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
657
657
|
}
|
|
658
658
|
var Ha = `
|
|
@@ -757,7 +757,7 @@ var Ye = {
|
|
|
757
757
|
};
|
|
758
758
|
function Xa(e) {
|
|
759
759
|
var n = e.primaryColor, t = e.secondaryColor;
|
|
760
|
-
Ye.primaryColor = n, Ye.secondaryColor = t ||
|
|
760
|
+
Ye.primaryColor = n, Ye.secondaryColor = t || xn(n), Ye.calculated = !!t;
|
|
761
761
|
}
|
|
762
762
|
function el() {
|
|
763
763
|
return rt({}, Ye);
|
|
@@ -766,7 +766,7 @@ var Ue = function(n, t) {
|
|
|
766
766
|
var o = rt({}, n, t.attrs), a = o.icon, r = o.primaryColor, s = o.secondaryColor, i = Ya(o, Ja), l = Ye;
|
|
767
767
|
if (r && (l = {
|
|
768
768
|
primaryColor: r,
|
|
769
|
-
secondaryColor: s ||
|
|
769
|
+
secondaryColor: s || xn(r)
|
|
770
770
|
}), Za(), Va(Jt(a), "icon should be icon definiton, but got ".concat(a)), !Jt(a))
|
|
771
771
|
return null;
|
|
772
772
|
var d = a;
|
|
@@ -840,7 +840,7 @@ function ll(e) {
|
|
|
840
840
|
return e;
|
|
841
841
|
}
|
|
842
842
|
function Tn(e) {
|
|
843
|
-
var n =
|
|
843
|
+
var n = An(e), t = tl(n, 2), o = t[0], a = t[1];
|
|
844
844
|
return Rt.setTwoToneColors({
|
|
845
845
|
primaryColor: o,
|
|
846
846
|
secondaryColor: a
|
|
@@ -936,12 +936,12 @@ Tn("#1890ff");
|
|
|
936
936
|
var qe = function(n, t) {
|
|
937
937
|
var o, a = Xt({}, n, t.attrs), r = a.class, s = a.icon, i = a.spin, l = a.rotate, d = a.tabindex, c = a.twoToneColor, h = a.onClick, g = ml(a, rl), u = (o = {
|
|
938
938
|
anticon: !0
|
|
939
|
-
}, Mt(o, "anticon-".concat(s.name), Boolean(s.name)), Mt(o, r, r), o),
|
|
940
|
-
|
|
939
|
+
}, Mt(o, "anticon-".concat(s.name), Boolean(s.name)), Mt(o, r, r), o), m = i === "" || i || s.name === "loading" ? "anticon-spin" : "", b = d;
|
|
940
|
+
b === void 0 && h && (b = -1, g.tabindex = b);
|
|
941
941
|
var v = l ? {
|
|
942
942
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
943
943
|
transform: "rotate(".concat(l, "deg)")
|
|
944
|
-
} : void 0,
|
|
944
|
+
} : void 0, y = An(c), x = sl(y, 2), A = x[0], F = x[1];
|
|
945
945
|
return U("span", Xt({
|
|
946
946
|
role: "img",
|
|
947
947
|
"aria-label": s.name
|
|
@@ -949,10 +949,10 @@ var qe = function(n, t) {
|
|
|
949
949
|
onClick: h,
|
|
950
950
|
class: u
|
|
951
951
|
}), [U(Rt, {
|
|
952
|
-
class:
|
|
952
|
+
class: m,
|
|
953
953
|
icon: s,
|
|
954
954
|
primaryColor: A,
|
|
955
|
-
secondaryColor:
|
|
955
|
+
secondaryColor: F,
|
|
956
956
|
style: v
|
|
957
957
|
}, null)]);
|
|
958
958
|
};
|
|
@@ -999,7 +999,7 @@ const pl = Dt, Cl = Q({
|
|
|
999
999
|
}
|
|
1000
1000
|
},
|
|
1001
1001
|
components: {
|
|
1002
|
-
ASpin:
|
|
1002
|
+
ASpin: Wo
|
|
1003
1003
|
},
|
|
1004
1004
|
setup() {
|
|
1005
1005
|
return {
|
|
@@ -1022,7 +1022,7 @@ const X = (e, n) => {
|
|
|
1022
1022
|
function wl(e, n, t, o, a, r) {
|
|
1023
1023
|
const s = Z("a-spin");
|
|
1024
1024
|
return E(), $("div", Sl, [
|
|
1025
|
-
e.spinning ? (E(),
|
|
1025
|
+
e.spinning ? (E(), Fe(s, {
|
|
1026
1026
|
key: 0,
|
|
1027
1027
|
class: "spin",
|
|
1028
1028
|
spinning: e.spinning,
|
|
@@ -1040,12 +1040,12 @@ const tt = /* @__PURE__ */ X(Cl, [["render", wl]]), kl = Q({
|
|
|
1040
1040
|
}
|
|
1041
1041
|
},
|
|
1042
1042
|
components: {
|
|
1043
|
-
ASkeleton:
|
|
1043
|
+
ASkeleton: jo
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
|
-
function
|
|
1046
|
+
function xl(e, n, t, o, a, r) {
|
|
1047
1047
|
const s = Z("a-skeleton");
|
|
1048
|
-
return E(),
|
|
1048
|
+
return E(), Fe(s, {
|
|
1049
1049
|
active: "",
|
|
1050
1050
|
loading: e.loading
|
|
1051
1051
|
}, {
|
|
@@ -1055,7 +1055,7 @@ function Al(e, n, t, o, a, r) {
|
|
|
1055
1055
|
_: 3
|
|
1056
1056
|
}, 8, ["loading"]);
|
|
1057
1057
|
}
|
|
1058
|
-
const gt = /* @__PURE__ */ X(kl, [["render",
|
|
1058
|
+
const gt = /* @__PURE__ */ X(kl, [["render", xl]]);
|
|
1059
1059
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1060
1060
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1061
1061
|
const oe = (e, n) => {
|
|
@@ -1100,7 +1100,7 @@ const oe = (e, n) => {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
1102
|
return n;
|
|
1103
|
-
},
|
|
1103
|
+
}, Ln = {
|
|
1104
1104
|
width: "1920px",
|
|
1105
1105
|
height: "1080px",
|
|
1106
1106
|
backgroundColor: "#ffffff",
|
|
@@ -1108,7 +1108,7 @@ const oe = (e, n) => {
|
|
|
1108
1108
|
backgroundSize: "100% 100%",
|
|
1109
1109
|
contextRequestUrl: "",
|
|
1110
1110
|
mode: "normal"
|
|
1111
|
-
},
|
|
1111
|
+
}, _n = ae(Ln), Al = [
|
|
1112
1112
|
"width",
|
|
1113
1113
|
"height",
|
|
1114
1114
|
"color",
|
|
@@ -1136,7 +1136,7 @@ const oe = (e, n) => {
|
|
|
1136
1136
|
"alignItems",
|
|
1137
1137
|
"zIndex"
|
|
1138
1138
|
], ie = (e, n = []) => {
|
|
1139
|
-
const t = ea(
|
|
1139
|
+
const t = ea(Al, ...n);
|
|
1140
1140
|
return q(() => ta(e, t));
|
|
1141
1141
|
}, $t = "EVENT_BUS", ce = "GLOBAL_CONFIG", ue = "GLOBAL_MODEL", Se = "REQUEST_MODEL", In = "GLOBAL_TOKEN", Je = "REFRESH_PAGE", Mn = "MODAL_MODEL";
|
|
1142
1142
|
var an;
|
|
@@ -1185,12 +1185,12 @@ const Tl = ((sn = window == null ? void 0 : window.config) == null ? void 0 : sn
|
|
|
1185
1185
|
t = t == null ? void 0 : t.trim(), o = o == null ? void 0 : o.trim(), a = a == null ? void 0 : a.trim();
|
|
1186
1186
|
const r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), i = e.length;
|
|
1187
1187
|
for (let c = 0; c < i; c++) {
|
|
1188
|
-
const h = e[c], g = h[t] || "", u = h[o] || "",
|
|
1189
|
-
if (r.add(g), s.has(
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1188
|
+
const h = e[c], g = h[t] || "", u = h[o] || "", m = h[a] || "";
|
|
1189
|
+
if (r.add(g), s.has(m)) {
|
|
1190
|
+
const b = s.get(m);
|
|
1191
|
+
b.push({ name: g, value: u, ...h }), s.set(m, b);
|
|
1192
1192
|
} else
|
|
1193
|
-
s.set(
|
|
1193
|
+
s.set(m, [{ name: g, value: u, ...h }]);
|
|
1194
1194
|
}
|
|
1195
1195
|
const l = Array.from(r), d = [];
|
|
1196
1196
|
for (const [c, h] of s)
|
|
@@ -1231,11 +1231,11 @@ Te.interceptors.response.use((e) => {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return Promise.reject(e);
|
|
1233
1233
|
});
|
|
1234
|
-
const
|
|
1234
|
+
const Ll = (e) => e.replace(/\\n/g, `
|
|
1235
1235
|
`), zt = (e, n = 2) => {
|
|
1236
1236
|
const t = parseFloat(e + "");
|
|
1237
1237
|
return isNaN(t) ? e : t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
|
|
1238
|
-
},
|
|
1238
|
+
}, _l = (e) => {
|
|
1239
1239
|
const n = parseFloat(e + "");
|
|
1240
1240
|
return isNaN(n) ? e : (n + "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1241
1241
|
}, dt = (e, n = 2) => {
|
|
@@ -1271,13 +1271,13 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1271
1271
|
let c = d.slice(1, -1).trim();
|
|
1272
1272
|
const h = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, g = c.match(h);
|
|
1273
1273
|
for (let u = 0; u < g.length; u++) {
|
|
1274
|
-
const
|
|
1275
|
-
|
|
1274
|
+
const m = g[u], b = s[m];
|
|
1275
|
+
b != null && (c = c.replace(m, b));
|
|
1276
1276
|
}
|
|
1277
1277
|
/\(.*\)/g.test(c) && (c = ht(c, t)), e = e.replace(d, c);
|
|
1278
1278
|
}
|
|
1279
1279
|
return o && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, " ")), e;
|
|
1280
|
-
},
|
|
1280
|
+
}, Ae = (e, n = () => {
|
|
1281
1281
|
}) => {
|
|
1282
1282
|
const {
|
|
1283
1283
|
requestUrl: t,
|
|
@@ -1293,58 +1293,58 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1293
1293
|
}), { getGlobalModel: h } = N(ue, {
|
|
1294
1294
|
// @ts-ignore
|
|
1295
1295
|
// eslint-disable-next-line no-void
|
|
1296
|
-
getGlobalModel: (
|
|
1296
|
+
getGlobalModel: (b) => {
|
|
1297
1297
|
}
|
|
1298
|
-
}), g = se(t), u = async (
|
|
1299
|
-
if (!g || !o || !a ||
|
|
1298
|
+
}), g = se(t), u = async (b = {}) => {
|
|
1299
|
+
if (!g || !o || !a || C(d) === "design")
|
|
1300
1300
|
return;
|
|
1301
1301
|
let v = {};
|
|
1302
|
-
r.forEach((
|
|
1303
|
-
const { key:
|
|
1304
|
-
if (typeof
|
|
1305
|
-
let
|
|
1306
|
-
const { id: p, prop:
|
|
1307
|
-
p === "THIS" ?
|
|
1308
|
-
const
|
|
1309
|
-
let
|
|
1310
|
-
if (["date", "range"].some((
|
|
1311
|
-
const { value:
|
|
1312
|
-
if (
|
|
1302
|
+
r.forEach((k) => {
|
|
1303
|
+
const { key: L, value: S } = k;
|
|
1304
|
+
if (typeof S == "object" && S != null && S.id) {
|
|
1305
|
+
let f = {};
|
|
1306
|
+
const { id: p, prop: T, propKey: R, operate: w } = S;
|
|
1307
|
+
p === "THIS" ? f = h(C(c)) || {} : f = h(p) || {};
|
|
1308
|
+
const _ = C(f[T]);
|
|
1309
|
+
let W = null;
|
|
1310
|
+
if (["date", "range"].some((O) => En(f == null ? void 0 : f.type, O))) {
|
|
1311
|
+
const { value: O, type: P, mode: z } = w || {};
|
|
1312
|
+
if (O && P && z)
|
|
1313
1313
|
switch (P) {
|
|
1314
1314
|
case "add":
|
|
1315
|
-
|
|
1315
|
+
W = C(_).add(O, z);
|
|
1316
1316
|
break;
|
|
1317
1317
|
case "minus":
|
|
1318
|
-
|
|
1318
|
+
W = C(_).subtract(O, z);
|
|
1319
1319
|
break;
|
|
1320
1320
|
}
|
|
1321
|
-
|
|
1321
|
+
W == null && (W = C(_)), W = (W == null ? void 0 : W.format((R == null ? void 0 : R.trim()) || f.format)) || "";
|
|
1322
1322
|
} else
|
|
1323
|
-
Object.prototype.toString.call(
|
|
1324
|
-
v[
|
|
1323
|
+
Object.prototype.toString.call(_) === "[object Object]" ? W = _[R || "value"] : W = _;
|
|
1324
|
+
v[L] = W;
|
|
1325
1325
|
} else
|
|
1326
|
-
typeof
|
|
1327
|
-
}), v = { ...window.config.requestParams, ...
|
|
1328
|
-
let
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1331
|
-
|
|
1326
|
+
typeof S == "string" && (v[L] = se(S));
|
|
1327
|
+
}), v = { ...window.config.requestParams, ...b, ...v };
|
|
1328
|
+
let y = "";
|
|
1329
|
+
const x = Object.keys(v), A = x.length - 1, F = x.length;
|
|
1330
|
+
x.forEach((k, L) => {
|
|
1331
|
+
L === 0 ? F !== 1 ? y += `?${k}=${v[k]}&` : y += `?${k}=${v[k]}` : L === A ? y += `${k}=${v[k]}` : y += `${k}=${v[k]}&`;
|
|
1332
1332
|
});
|
|
1333
1333
|
try {
|
|
1334
|
-
const
|
|
1335
|
-
baseURL:
|
|
1336
|
-
url:
|
|
1334
|
+
const k = ["get", "head"].includes(o), L = await Te({
|
|
1335
|
+
baseURL: C(l) || "",
|
|
1336
|
+
url: k ? g + y : g,
|
|
1337
1337
|
method: o,
|
|
1338
1338
|
headers: a,
|
|
1339
|
-
data:
|
|
1339
|
+
data: k ? {} : v
|
|
1340
1340
|
});
|
|
1341
|
-
return n(
|
|
1342
|
-
} catch (
|
|
1343
|
-
console.error(
|
|
1341
|
+
return n(L), L;
|
|
1342
|
+
} catch (k) {
|
|
1343
|
+
console.error(k);
|
|
1344
1344
|
}
|
|
1345
|
-
},
|
|
1345
|
+
}, m = i && setInterval(u, s * 1e3);
|
|
1346
1346
|
return ut(() => {
|
|
1347
|
-
clearInterval(
|
|
1347
|
+
clearInterval(m);
|
|
1348
1348
|
}), u;
|
|
1349
1349
|
}, Pe = (e = [], n) => {
|
|
1350
1350
|
let { name: t = "name", types: o = [] } = n || {};
|
|
@@ -1353,8 +1353,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1353
1353
|
if (s === 1) {
|
|
1354
1354
|
const c = [];
|
|
1355
1355
|
for (let g = 0; g < i; g++) {
|
|
1356
|
-
const u = o[g], { label:
|
|
1357
|
-
a.add(
|
|
1356
|
+
const u = o[g], { label: m, value: b } = u, v = { ...e[0], value: e[0][b] };
|
|
1357
|
+
a.add(m), c.push(v);
|
|
1358
1358
|
}
|
|
1359
1359
|
const h = e[0][t] || "";
|
|
1360
1360
|
r.set(h, c);
|
|
@@ -1363,12 +1363,12 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1363
1363
|
const h = e[c], g = h[t];
|
|
1364
1364
|
a.add(g);
|
|
1365
1365
|
for (let u = 0; u < i; u++) {
|
|
1366
|
-
const
|
|
1367
|
-
if (r.has(
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1366
|
+
const m = o[u], { label: b, value: v } = m, y = { ...h, value: h[v] };
|
|
1367
|
+
if (r.has(b)) {
|
|
1368
|
+
const x = r.get(b);
|
|
1369
|
+
x.push(y), r.set(b, x);
|
|
1370
1370
|
} else
|
|
1371
|
-
r.set(
|
|
1371
|
+
r.set(b, [y]);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
const l = Array.from(a), d = [];
|
|
@@ -1387,7 +1387,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1387
1387
|
return e;
|
|
1388
1388
|
let t = "";
|
|
1389
1389
|
return e != null && e.includes("://") ? t = e : t = ((o = window == null ? void 0 : window.config) == null ? void 0 : o.uploadPath) + e, n && (t = `url(${t})`), t;
|
|
1390
|
-
},
|
|
1390
|
+
}, On = (e, n) => {
|
|
1391
1391
|
const t = `${tn}/preview?pageId=${n}`, o = `${tn}/${n}`;
|
|
1392
1392
|
return e === "preview" ? t : o;
|
|
1393
1393
|
}, Nt = (e) => {
|
|
@@ -1432,20 +1432,20 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1432
1432
|
var c;
|
|
1433
1433
|
const d = [];
|
|
1434
1434
|
for (let h = 0; h < l.length; h++) {
|
|
1435
|
-
const { keyName: g, searchName: u, searchType:
|
|
1435
|
+
const { keyName: g, searchName: u, searchType: m, variateName: b, id: v } = l[h], y = {
|
|
1436
1436
|
alias: g,
|
|
1437
1437
|
fieldName: u,
|
|
1438
|
-
rule:
|
|
1438
|
+
rule: m || "NONE",
|
|
1439
1439
|
fieldValue: "",
|
|
1440
1440
|
valueType: "",
|
|
1441
|
-
variateName:
|
|
1442
|
-
},
|
|
1443
|
-
if (u === "the_date" ?
|
|
1444
|
-
|
|
1445
|
-
const A = (c =
|
|
1446
|
-
typeof A == "function" && (
|
|
1441
|
+
variateName: b
|
|
1442
|
+
}, x = n(v) || {};
|
|
1443
|
+
if (u === "the_date" ? y.valueType = "DATE" : ["hbdwbh", "hbdwbh_name"].includes(u) && (y.valueType = "TEXT"), x.type === "ecanDatePicker") {
|
|
1444
|
+
y.dateFormat = x.format;
|
|
1445
|
+
const A = (c = C(x)) == null ? void 0 : c.value.format;
|
|
1446
|
+
typeof A == "function" && (y.fieldValue = A(x == null ? void 0 : x.format));
|
|
1447
1447
|
}
|
|
1448
|
-
d.push(
|
|
1448
|
+
d.push(y);
|
|
1449
1449
|
}
|
|
1450
1450
|
return d;
|
|
1451
1451
|
}, r = (l, d) => {
|
|
@@ -1487,8 +1487,8 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1487
1487
|
g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays, l.children[c].selectType === "time" ? l.children[c].absoluteBool && (h = "#######", g.calcWays = l.children[c].calcWays) : l.children[c].selectType === "component" && (h = "${" + l.children[c].relateCompent + "}"), g.dateFormat = l.children[c].format, g.dateCalcTypes = l.children[c].dateCalcTypes, g.calcWays = l.children[c].calcWays;
|
|
1488
1488
|
else if (Object.prototype.toString.call(h) === "[object Array]") {
|
|
1489
1489
|
const u = [];
|
|
1490
|
-
for (let
|
|
1491
|
-
h[
|
|
1490
|
+
for (let m = 0; m < h.length; m++)
|
|
1491
|
+
h[m] !== "全选" && u.push(h[m]);
|
|
1492
1492
|
h = u.join(",");
|
|
1493
1493
|
}
|
|
1494
1494
|
g.fieldValue = h, l.children.length > 1 && c !== l.children.length - 1 && (l.type === "and" ? g.join = "&&" : g.join = "||"), d.push(g);
|
|
@@ -1496,17 +1496,17 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1496
1496
|
}, i = (l, d, c) => {
|
|
1497
1497
|
if (!l)
|
|
1498
1498
|
return;
|
|
1499
|
-
const h = c[d].find((
|
|
1499
|
+
const h = c[d].find((m) => m.name === l.label);
|
|
1500
1500
|
if (!h)
|
|
1501
1501
|
return;
|
|
1502
1502
|
const g = [], u = h.filterList;
|
|
1503
1503
|
if (u)
|
|
1504
|
-
for (let
|
|
1505
|
-
u[
|
|
1504
|
+
for (let m = 0; m < u.length; m++)
|
|
1505
|
+
u[m].children.length > 0 && s(u[m], g);
|
|
1506
1506
|
return g;
|
|
1507
1507
|
};
|
|
1508
1508
|
return async function() {
|
|
1509
|
-
var
|
|
1509
|
+
var k, L;
|
|
1510
1510
|
const l = e.type;
|
|
1511
1511
|
let d = e.graphicConfig;
|
|
1512
1512
|
(!d || Object.keys(d).length === 0) && (d = {
|
|
@@ -1528,39 +1528,39 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1528
1528
|
const g = t(d);
|
|
1529
1529
|
let u;
|
|
1530
1530
|
if (Array.isArray(d.series) && d.series.length > 0) {
|
|
1531
|
-
const
|
|
1531
|
+
const S = (k = d.seriesList) == null ? void 0 : k.find((f) => {
|
|
1532
1532
|
const p = d.series[0];
|
|
1533
|
-
return
|
|
1533
|
+
return f.name === p || f.nameBak === p;
|
|
1534
1534
|
});
|
|
1535
|
-
|
|
1536
|
-
label:
|
|
1537
|
-
columnName:
|
|
1535
|
+
S != null && (u = {
|
|
1536
|
+
label: S.name,
|
|
1537
|
+
columnName: S.label
|
|
1538
1538
|
});
|
|
1539
1539
|
}
|
|
1540
|
-
let
|
|
1540
|
+
let m;
|
|
1541
1541
|
if (c.length > 0) {
|
|
1542
|
-
|
|
1542
|
+
m = {
|
|
1543
1543
|
label: c[0],
|
|
1544
1544
|
columnName: c[0]
|
|
1545
1545
|
};
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1546
|
+
const S = ((L = d.classifyList) == null ? void 0 : L.find((f) => (f == null ? void 0 : f.name) === c[0] || (f == null ? void 0 : f.nameBak) === c[0])) || {};
|
|
1547
|
+
m.columnName = S.label, r(m, d.classifyList), m.conditions = i(m, "classifyList", d) || [];
|
|
1548
1548
|
}
|
|
1549
1549
|
u && (r(u, d.seriesList), u.conditions = i(u, "seriesList", d) || []);
|
|
1550
|
-
for (let
|
|
1551
|
-
g[
|
|
1552
|
-
let
|
|
1553
|
-
(d == null ? void 0 : d.pageMode) === "design" ?
|
|
1554
|
-
let v = "SQL_VIEW",
|
|
1555
|
-
d.source === "INDICATOR_LIB" && (v = "INDICATOR_LIB",
|
|
1556
|
-
const
|
|
1550
|
+
for (let S = 0; S < g.length; S++)
|
|
1551
|
+
g[S].location === "RIGHT" ? g[S].conditions = i(g[S], "rightAxisList", d) : g[S].conditions = i(g[S], "leftAxisList", d);
|
|
1552
|
+
let b;
|
|
1553
|
+
(d == null ? void 0 : d.pageMode) === "design" ? b = d.sqlConditions ?? [] : b = a(d == null ? void 0 : d.relativeList);
|
|
1554
|
+
let v = "SQL_VIEW", y = "", x = "", A = "";
|
|
1555
|
+
d.source === "INDICATOR_LIB" && (v = "INDICATOR_LIB", y = d.fixedDimSql, x = d.dataSourceId, A = d.idxLibMode);
|
|
1556
|
+
const F = {
|
|
1557
1557
|
ecanBar: "bar",
|
|
1558
1558
|
ecanLine: "line",
|
|
1559
1559
|
ecanPie: "pie",
|
|
1560
1560
|
ecanScatter: "scatter"
|
|
1561
1561
|
};
|
|
1562
1562
|
try {
|
|
1563
|
-
const
|
|
1563
|
+
const S = await Te.get(`${ct}/user/anonymous?username=admin`, {
|
|
1564
1564
|
headers: {
|
|
1565
1565
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1566
1566
|
current_context: "ygt"
|
|
@@ -1570,20 +1570,20 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1570
1570
|
dataViewId: d.dataViewId,
|
|
1571
1571
|
plugin: "1",
|
|
1572
1572
|
layer: "2",
|
|
1573
|
-
chartType:
|
|
1574
|
-
classification:
|
|
1573
|
+
chartType: F[l],
|
|
1574
|
+
classification: m,
|
|
1575
1575
|
indicatorList: g,
|
|
1576
1576
|
series: u,
|
|
1577
|
-
sqlConditions:
|
|
1577
|
+
sqlConditions: b,
|
|
1578
1578
|
source: v,
|
|
1579
|
-
fixedDimSql:
|
|
1580
|
-
dataSourceId:
|
|
1579
|
+
fixedDimSql: y,
|
|
1580
|
+
dataSourceId: x,
|
|
1581
1581
|
idxLibMode: A
|
|
1582
1582
|
}, {
|
|
1583
|
-
headers: { Authentication:
|
|
1583
|
+
headers: { Authentication: S.data.data.token }
|
|
1584
1584
|
});
|
|
1585
|
-
} catch (
|
|
1586
|
-
console.error(
|
|
1585
|
+
} catch (S) {
|
|
1586
|
+
console.error(S);
|
|
1587
1587
|
}
|
|
1588
1588
|
};
|
|
1589
1589
|
}, $e = (e, n) => {
|
|
@@ -1608,7 +1608,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
1610
|
return e;
|
|
1611
|
-
},
|
|
1611
|
+
}, Fn = (e = {}) => {
|
|
1612
1612
|
const { requestToken: n } = N(In, {
|
|
1613
1613
|
// @ts-ignore
|
|
1614
1614
|
// eslint-disable-next-line no-void
|
|
@@ -1635,10 +1635,10 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1635
1635
|
indexCode: h,
|
|
1636
1636
|
calcType: g = "COLUMN",
|
|
1637
1637
|
builtInFormula: u,
|
|
1638
|
-
builtInValueSource:
|
|
1639
|
-
builtInCalcWay:
|
|
1638
|
+
builtInValueSource: m,
|
|
1639
|
+
builtInCalcWay: b,
|
|
1640
1640
|
formula: v,
|
|
1641
|
-
conditions:
|
|
1641
|
+
conditions: y
|
|
1642
1642
|
} = s;
|
|
1643
1643
|
return {
|
|
1644
1644
|
label: i,
|
|
@@ -1649,10 +1649,10 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1649
1649
|
hrpIndexCode: h,
|
|
1650
1650
|
aggregate: "SUM",
|
|
1651
1651
|
builtInFormula: u,
|
|
1652
|
-
builtInValueSource:
|
|
1653
|
-
builtInCalcWay:
|
|
1652
|
+
builtInValueSource: m,
|
|
1653
|
+
builtInCalcWay: b,
|
|
1654
1654
|
formula: v,
|
|
1655
|
-
conditions:
|
|
1655
|
+
conditions: y
|
|
1656
1656
|
};
|
|
1657
1657
|
}, { getGlobalModel: a } = N(ue, {
|
|
1658
1658
|
// @ts-ignore
|
|
@@ -1666,19 +1666,19 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1666
1666
|
const h = s[c], {
|
|
1667
1667
|
id: g,
|
|
1668
1668
|
conditionLabel: u,
|
|
1669
|
-
conditionKey:
|
|
1670
|
-
conditionValueType:
|
|
1669
|
+
conditionKey: m,
|
|
1670
|
+
conditionValueType: b
|
|
1671
1671
|
} = h, v = {
|
|
1672
1672
|
rule: "NONE",
|
|
1673
1673
|
label: u,
|
|
1674
|
-
fieldName:
|
|
1674
|
+
fieldName: m,
|
|
1675
1675
|
fieldValue: "",
|
|
1676
1676
|
// 在关联控件中取
|
|
1677
|
-
valueType:
|
|
1678
|
-
},
|
|
1679
|
-
if (En(
|
|
1680
|
-
const { value:
|
|
1681
|
-
v.fieldValue = (d =
|
|
1677
|
+
valueType: b
|
|
1678
|
+
}, y = a(g) || {};
|
|
1679
|
+
if (En(y.type, "date")) {
|
|
1680
|
+
const { value: x, format: A } = y || {};
|
|
1681
|
+
v.fieldValue = (d = C(x)) == null ? void 0 : d.format(A), v.dateFormat = A;
|
|
1682
1682
|
}
|
|
1683
1683
|
l.push(v);
|
|
1684
1684
|
}
|
|
@@ -1694,24 +1694,24 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1694
1694
|
chartType: h,
|
|
1695
1695
|
classificationList: g = [],
|
|
1696
1696
|
seriesList: u = [],
|
|
1697
|
-
leftAxisList:
|
|
1698
|
-
rightAxisList:
|
|
1697
|
+
leftAxisList: m = [],
|
|
1698
|
+
rightAxisList: b = [],
|
|
1699
1699
|
queryColumnList: v = [],
|
|
1700
|
-
indicators:
|
|
1701
|
-
controlList:
|
|
1700
|
+
indicators: y = [],
|
|
1701
|
+
controlList: x = [],
|
|
1702
1702
|
dataSourceId: A,
|
|
1703
|
-
idxLibMode:
|
|
1704
|
-
preview:
|
|
1703
|
+
idxLibMode: F,
|
|
1704
|
+
preview: k = !1
|
|
1705
1705
|
} = s || {};
|
|
1706
|
-
let
|
|
1706
|
+
let L;
|
|
1707
1707
|
if (Array.isArray(g) && g.length > 0) {
|
|
1708
1708
|
const w = g.length;
|
|
1709
|
-
for (let
|
|
1710
|
-
const
|
|
1709
|
+
for (let _ = 0; _ < w; _++) {
|
|
1710
|
+
const W = g[_] || {}, { label: H = "", name: O = "", show: P = !1, sort: z, customGroup: V, conditions: K } = W;
|
|
1711
1711
|
if (P || w === 1) {
|
|
1712
|
-
|
|
1712
|
+
L = {
|
|
1713
1713
|
label: H,
|
|
1714
|
-
columnName:
|
|
1714
|
+
columnName: O,
|
|
1715
1715
|
show: P,
|
|
1716
1716
|
sort: z,
|
|
1717
1717
|
customGroup: V,
|
|
@@ -1721,15 +1721,15 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
|
-
let
|
|
1724
|
+
let S;
|
|
1725
1725
|
if (Array.isArray(u) && u.length > 0) {
|
|
1726
1726
|
const w = u.length;
|
|
1727
|
-
for (let
|
|
1728
|
-
const
|
|
1727
|
+
for (let _ = 0; _ < w; _++) {
|
|
1728
|
+
const W = u[_] || {}, { label: H = "", name: O = "", show: P = !1, sort: z, customGroup: V, conditions: K } = W;
|
|
1729
1729
|
if (P || w === 1) {
|
|
1730
|
-
|
|
1730
|
+
S = {
|
|
1731
1731
|
label: H,
|
|
1732
|
-
columnName:
|
|
1732
|
+
columnName: O,
|
|
1733
1733
|
show: P,
|
|
1734
1734
|
sort: z,
|
|
1735
1735
|
customGroup: V,
|
|
@@ -1739,23 +1739,23 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const f = [];
|
|
1743
1743
|
v == null || v.forEach((w) => {
|
|
1744
|
-
|
|
1744
|
+
f.push(t(w));
|
|
1745
1745
|
});
|
|
1746
1746
|
const p = [];
|
|
1747
|
-
if (
|
|
1747
|
+
if (m == null || m.forEach((w) => {
|
|
1748
1748
|
w.location = "LEFT", p.push(o(w));
|
|
1749
|
-
}), y == null || y.forEach((w) => {
|
|
1750
|
-
w.location = "RIGHT", p.push(o(w));
|
|
1751
1749
|
}), b == null || b.forEach((w) => {
|
|
1750
|
+
w.location = "RIGHT", p.push(o(w));
|
|
1751
|
+
}), y == null || y.forEach((w) => {
|
|
1752
1752
|
w.location = "LEFT", p.push(o(w));
|
|
1753
|
-
}), c === "1" &&
|
|
1753
|
+
}), c === "1" && f.length === 0)
|
|
1754
1754
|
return;
|
|
1755
1755
|
if (c === "2" && p.length === 0)
|
|
1756
1756
|
return;
|
|
1757
|
-
let
|
|
1758
|
-
(s == null ? void 0 : s.pageMode) === "design" ?
|
|
1757
|
+
let T;
|
|
1758
|
+
(s == null ? void 0 : s.pageMode) === "design" ? T = s.sqlConditions ?? [] : T = r(x);
|
|
1759
1759
|
try {
|
|
1760
1760
|
return await Te.post(
|
|
1761
1761
|
`${ct}/diagram`,
|
|
@@ -1765,16 +1765,16 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1765
1765
|
plugin: d,
|
|
1766
1766
|
layer: c,
|
|
1767
1767
|
chartType: h,
|
|
1768
|
-
classification:
|
|
1769
|
-
series:
|
|
1768
|
+
classification: L,
|
|
1769
|
+
series: S,
|
|
1770
1770
|
indicatorList: p,
|
|
1771
|
-
queryColumns:
|
|
1771
|
+
queryColumns: f,
|
|
1772
1772
|
pageFlag: !0,
|
|
1773
|
-
sqlConditions:
|
|
1773
|
+
sqlConditions: T,
|
|
1774
1774
|
// fixedDimSql: '',
|
|
1775
1775
|
dataSourceId: A,
|
|
1776
|
-
idxLibMode:
|
|
1777
|
-
preview:
|
|
1776
|
+
idxLibMode: F,
|
|
1777
|
+
preview: k
|
|
1778
1778
|
},
|
|
1779
1779
|
{
|
|
1780
1780
|
headers: {
|
|
@@ -1804,7 +1804,7 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1804
1804
|
name: "EcanPageConfig",
|
|
1805
1805
|
inheritAttrs: !1,
|
|
1806
1806
|
props: {
|
|
1807
|
-
...
|
|
1807
|
+
..._n
|
|
1808
1808
|
},
|
|
1809
1809
|
setup(e) {
|
|
1810
1810
|
const n = q(() => ({
|
|
@@ -1815,31 +1815,31 @@ const _l = (e) => e.replace(/\\n/g, `
|
|
|
1815
1815
|
backgroundSize: e.backgroundSize
|
|
1816
1816
|
})), t = M(0), o = M(0), a = M(0), r = M(0), s = M(!1), i = M();
|
|
1817
1817
|
let l;
|
|
1818
|
-
const d = () => new Promise((
|
|
1818
|
+
const d = () => new Promise((b) => {
|
|
1819
1819
|
ft(() => {
|
|
1820
|
-
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = i.value.clientWidth, o.value = i.value.clientHeight), (!a.value || !r.value) && (a.value = window.screen.width, r.value = window.screen.height),
|
|
1820
|
+
e.width && e.height ? (t.value = parseFloat(e.width), o.value = parseFloat(e.height)) : (t.value = i.value.clientWidth, o.value = i.value.clientHeight), (!a.value || !r.value) && (a.value = window.screen.width, r.value = window.screen.height), b();
|
|
1821
1821
|
});
|
|
1822
1822
|
}), c = () => {
|
|
1823
1823
|
t.value && o.value ? (i.value.style.width = `${t.value}px`, i.value.style.height = `${o.value}px`) : (i.value.style.width = `${a.value}px`, i.value.style.height = `${r.value}px`);
|
|
1824
1824
|
}, h = () => {
|
|
1825
|
-
const
|
|
1826
|
-
i.value && (i.value.style.transform = `scale(${A}, ${
|
|
1827
|
-
}, g =
|
|
1825
|
+
const b = document.body.clientWidth, v = document.body.clientHeight, y = t.value || a.value, x = o.value || r.value, A = b / y, F = v / x;
|
|
1826
|
+
i.value && (i.value.style.transform = `scale(${A}, ${F})`);
|
|
1827
|
+
}, g = Ot(async () => {
|
|
1828
1828
|
await d(), h();
|
|
1829
1829
|
}, 100), u = () => {
|
|
1830
|
-
const
|
|
1831
|
-
l = new
|
|
1830
|
+
const b = window.MutationObserver;
|
|
1831
|
+
l = new b(g), l.observe(i.value, {
|
|
1832
1832
|
attributes: !0,
|
|
1833
1833
|
attributeFilter: ["style"],
|
|
1834
1834
|
attributeOldValue: !0
|
|
1835
1835
|
});
|
|
1836
|
-
},
|
|
1836
|
+
}, m = () => {
|
|
1837
1837
|
l && (l.disconnect(), l.takeRecords(), l = null);
|
|
1838
1838
|
};
|
|
1839
1839
|
return Ne(async () => {
|
|
1840
1840
|
s.value = !1, await d(), c(), h(), window.addEventListener("resize", g), u(), s.value = !0;
|
|
1841
1841
|
}), ut(() => {
|
|
1842
|
-
window.removeEventListener("resize", g),
|
|
1842
|
+
window.removeEventListener("resize", g), m();
|
|
1843
1843
|
}), {
|
|
1844
1844
|
style: n,
|
|
1845
1845
|
container: i,
|
|
@@ -1851,7 +1851,7 @@ const El = {
|
|
|
1851
1851
|
id: "container",
|
|
1852
1852
|
ref: "container"
|
|
1853
1853
|
};
|
|
1854
|
-
function
|
|
1854
|
+
function Ol(e, n, t, o, a, r) {
|
|
1855
1855
|
return E(), $("div", El, [
|
|
1856
1856
|
e.ready ? (E(), $("div", {
|
|
1857
1857
|
key: 0,
|
|
@@ -1862,7 +1862,7 @@ function Fl(e, n, t, o, a, r) {
|
|
|
1862
1862
|
], 4)) : ve("", !0)
|
|
1863
1863
|
], 512);
|
|
1864
1864
|
}
|
|
1865
|
-
const
|
|
1865
|
+
const Fl = /* @__PURE__ */ X(Ml, [["render", Ol], ["__scopeId", "data-v-242d350e"]]), Rl = oe(Fl), Rn = {
|
|
1866
1866
|
contextRequestUrl: "",
|
|
1867
1867
|
pageMode: "normal",
|
|
1868
1868
|
theme: "light",
|
|
@@ -1893,69 +1893,69 @@ const Ol = /* @__PURE__ */ X(Ml, [["render", Fl], ["__scopeId", "data-v-242d350e
|
|
|
1893
1893
|
theme: s,
|
|
1894
1894
|
touchEventId: i
|
|
1895
1895
|
});
|
|
1896
|
-
const l = /* @__PURE__ */ new Map(), d = (
|
|
1896
|
+
const l = /* @__PURE__ */ new Map(), d = (O) => l.get(O);
|
|
1897
1897
|
Re(ue, {
|
|
1898
1898
|
getGlobalModel: d,
|
|
1899
|
-
setGlobalModel: (
|
|
1900
|
-
l.set(
|
|
1899
|
+
setGlobalModel: (O, P) => {
|
|
1900
|
+
l.set(O, P);
|
|
1901
1901
|
}
|
|
1902
1902
|
});
|
|
1903
1903
|
const h = [], g = () => {
|
|
1904
1904
|
h.pop();
|
|
1905
|
-
}, u = (
|
|
1906
|
-
h.push(
|
|
1907
|
-
},
|
|
1905
|
+
}, u = (O) => {
|
|
1906
|
+
h.push(O);
|
|
1907
|
+
}, m = /* @__PURE__ */ new Map(), b = (O) => m.get(O);
|
|
1908
1908
|
Re(Mn, {
|
|
1909
1909
|
popUseModalIds: g,
|
|
1910
1910
|
pushUseModalIds: u,
|
|
1911
|
-
getModalModel:
|
|
1912
|
-
setModalModel: (
|
|
1913
|
-
|
|
1911
|
+
getModalModel: b,
|
|
1912
|
+
setModalModel: (O, P) => {
|
|
1913
|
+
m.set(O, P);
|
|
1914
1914
|
}
|
|
1915
1915
|
});
|
|
1916
|
-
const
|
|
1917
|
-
|
|
1918
|
-
O
|
|
1916
|
+
const y = na(), x = /* @__PURE__ */ new Set(), A = (O, P) => {
|
|
1917
|
+
x.add(O), y.on(O, (z) => typeof P[z] == "function" && P[z]()), Tt(() => {
|
|
1918
|
+
F(O);
|
|
1919
1919
|
});
|
|
1920
|
-
},
|
|
1921
|
-
|
|
1920
|
+
}, F = (O) => {
|
|
1921
|
+
x.delete(O), y.off(O);
|
|
1922
1922
|
};
|
|
1923
1923
|
Re($t, {
|
|
1924
1924
|
onEvent: A,
|
|
1925
|
-
offEvent:
|
|
1926
|
-
emitEvent: (
|
|
1927
|
-
if (
|
|
1925
|
+
offEvent: F,
|
|
1926
|
+
emitEvent: (O, P) => {
|
|
1927
|
+
if (O === "PAGE") {
|
|
1928
1928
|
const z = h.length;
|
|
1929
1929
|
let V = [];
|
|
1930
1930
|
if (z === 0)
|
|
1931
|
-
V = [...
|
|
1931
|
+
V = [...x];
|
|
1932
1932
|
else {
|
|
1933
1933
|
const K = h[z - 1];
|
|
1934
|
-
V = [...
|
|
1934
|
+
V = [...b(K)];
|
|
1935
1935
|
}
|
|
1936
1936
|
V.forEach((K) => {
|
|
1937
|
-
|
|
1937
|
+
y.emit(K, P);
|
|
1938
1938
|
});
|
|
1939
1939
|
} else
|
|
1940
|
-
|
|
1940
|
+
y.emit(O, P);
|
|
1941
1941
|
}
|
|
1942
1942
|
});
|
|
1943
|
-
const
|
|
1943
|
+
const L = M(0);
|
|
1944
1944
|
Re(In, {
|
|
1945
1945
|
requestToken: () => {
|
|
1946
|
-
|
|
1946
|
+
L.value = C(L) + 1;
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
|
-
const
|
|
1949
|
+
const f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), T = ({ requestFn: O = () => {
|
|
1950
1950
|
}, sortNum: P = 0, id: z = "" }) => {
|
|
1951
|
-
if (
|
|
1952
|
-
const V =
|
|
1953
|
-
V == null || V.push(
|
|
1951
|
+
if (f.has(P)) {
|
|
1952
|
+
const V = f.get(P);
|
|
1953
|
+
V == null || V.push(O);
|
|
1954
1954
|
} else
|
|
1955
|
-
|
|
1956
|
-
p.set(z,
|
|
1957
|
-
}, R = (
|
|
1958
|
-
const V =
|
|
1955
|
+
f.set(P, [O]);
|
|
1956
|
+
p.set(z, O);
|
|
1957
|
+
}, R = (O) => new Promise((P, z) => {
|
|
1958
|
+
const V = O.map((K) => K());
|
|
1959
1959
|
Promise.all(V).then((K) => {
|
|
1960
1960
|
P(K);
|
|
1961
1961
|
}).catch((K) => {
|
|
@@ -1963,28 +1963,28 @@ const Ol = /* @__PURE__ */ X(Ml, [["render", Fl], ["__scopeId", "data-v-242d350e
|
|
|
1963
1963
|
});
|
|
1964
1964
|
}), w = async () => {
|
|
1965
1965
|
var P;
|
|
1966
|
-
const
|
|
1966
|
+
const O = await yn.get(`${ct}/user/anonymous?username=admin`, {
|
|
1967
1967
|
headers: {
|
|
1968
1968
|
systemCode: "F72FC50A3D97372514A6AC33333D28FD",
|
|
1969
1969
|
current_context: "ygt"
|
|
1970
1970
|
}
|
|
1971
1971
|
});
|
|
1972
|
-
config.indicatorToken = (P =
|
|
1973
|
-
},
|
|
1974
|
-
if (
|
|
1975
|
-
if (typeof
|
|
1976
|
-
const V = p.get(
|
|
1972
|
+
config.indicatorToken = (P = O.data.data) == null ? void 0 : P.token;
|
|
1973
|
+
}, _ = (O) => new Promise(async (P, z) => {
|
|
1974
|
+
if (O) {
|
|
1975
|
+
if (typeof O == "string") {
|
|
1976
|
+
const V = p.get(O);
|
|
1977
1977
|
if (typeof V == "function") {
|
|
1978
1978
|
const K = Te.interceptors.response.use((de) => (P(de), de), (de) => (z(de), Promise.reject(de)));
|
|
1979
1979
|
V(), Te.interceptors.response.eject(K);
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
1982
|
} else {
|
|
1983
|
-
const V = Array.from(
|
|
1983
|
+
const V = Array.from(f);
|
|
1984
1984
|
V.sort((de, Me) => Me[0] - de[0]);
|
|
1985
1985
|
const K = V.length;
|
|
1986
1986
|
try {
|
|
1987
|
-
e.pageMode !== "design" &&
|
|
1987
|
+
e.pageMode !== "design" && C(L) > 0 && await w();
|
|
1988
1988
|
for (let de = 0; de < K; de++) {
|
|
1989
1989
|
const Me = V[de][1];
|
|
1990
1990
|
await R(Me);
|
|
@@ -1992,27 +1992,27 @@ const Ol = /* @__PURE__ */ X(Ml, [["render", Fl], ["__scopeId", "data-v-242d350e
|
|
|
1992
1992
|
} catch (de) {
|
|
1993
1993
|
console.error(de);
|
|
1994
1994
|
} finally {
|
|
1995
|
-
|
|
1995
|
+
f.clear(), P(null);
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
1998
|
});
|
|
1999
1999
|
Re(Se, {
|
|
2000
|
-
setRequest:
|
|
2001
|
-
touchRequest:
|
|
2000
|
+
setRequest: T,
|
|
2001
|
+
touchRequest: _
|
|
2002
2002
|
}), Re(Je, {
|
|
2003
2003
|
emitRefreshPage: () => {
|
|
2004
|
-
|
|
2004
|
+
y.emit(Je);
|
|
2005
2005
|
}
|
|
2006
2006
|
});
|
|
2007
|
-
const H = (
|
|
2008
|
-
|
|
2009
|
-
|
|
2007
|
+
const H = (O) => {
|
|
2008
|
+
y.on(Je, () => O()), Ne(() => {
|
|
2009
|
+
y.off(Je);
|
|
2010
2010
|
});
|
|
2011
2011
|
};
|
|
2012
2012
|
return Tt(() => {
|
|
2013
|
-
|
|
2013
|
+
f == null || f.clear(), p == null || p.clear();
|
|
2014
2014
|
}), n({
|
|
2015
|
-
touchRequest:
|
|
2015
|
+
touchRequest: _,
|
|
2016
2016
|
getGlobalModel: d,
|
|
2017
2017
|
onRefreshPage: H
|
|
2018
2018
|
}), {
|
|
@@ -2066,37 +2066,37 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2066
2066
|
immediate: !0
|
|
2067
2067
|
});
|
|
2068
2068
|
const o = q(() => {
|
|
2069
|
-
var
|
|
2070
|
-
const g =
|
|
2069
|
+
var b;
|
|
2070
|
+
const g = C(t);
|
|
2071
2071
|
let u = e.text;
|
|
2072
2072
|
u = u == null ? void 0 : u.replace(/\n|\\n/g, "<br/>"), u = u == null ? void 0 : u.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
2073
|
-
const
|
|
2074
|
-
if (
|
|
2073
|
+
const m = u.match(/\{(.+?)\}/g);
|
|
2074
|
+
if (m == null || m.length === 0)
|
|
2075
2075
|
return u;
|
|
2076
|
-
for (let v = 0; v <
|
|
2077
|
-
const
|
|
2078
|
-
let A =
|
|
2079
|
-
const
|
|
2080
|
-
for (let
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2076
|
+
for (let v = 0; v < m.length; v++) {
|
|
2077
|
+
const y = m[v], x = (b = y == null ? void 0 : y.slice(1, y.length - 1)) == null ? void 0 : b.trim();
|
|
2078
|
+
let A = x;
|
|
2079
|
+
const F = x.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
2080
|
+
for (let L = 0; L < F.length; L++) {
|
|
2081
|
+
const S = F[L], f = g[S];
|
|
2082
|
+
f && (A = x.replace(S, f));
|
|
2083
2083
|
}
|
|
2084
2084
|
if (/\(.*\)/g.test(A)) {
|
|
2085
|
-
const
|
|
2086
|
-
|
|
2085
|
+
const L = ht(A);
|
|
2086
|
+
L != null && (A = L);
|
|
2087
2087
|
}
|
|
2088
|
-
let
|
|
2089
|
-
if (
|
|
2090
|
-
const
|
|
2091
|
-
|
|
2088
|
+
let k = A;
|
|
2089
|
+
if (k === x && (k = e.variableDefaultValue), k != null) {
|
|
2090
|
+
const L = e.format;
|
|
2091
|
+
L === "percentage" ? (k = +k, isNaN(k) ? u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`) : k >= 0 ? (k = (k * 100).toFixed(2), u = u.replace(y, `<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Gl}"/>${k}%</span>`)) : (k = (k * 100).toFixed(2), u = u.replace(y, `<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ul}"/>${Math.abs(+k)}%</span>`))) : e.format === "percent" ? (k = +k, isNaN(k) || (k = (k * 100).toFixed(2), u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}%</span>`))) : e.format === "money" ? (k = +k, isNaN(k) || (k = zt(k), u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}</span>`))) : L === "thousands" ? (k = +k, isNaN(k) || (k = _l(k), u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}</span>`))) : u = u.replace(y, `<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${k}</span>`);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
return `<span>${u}</span>`;
|
|
2095
2095
|
}), { pageMode: a } = N(ce, {
|
|
2096
2096
|
pageMode: "normal"
|
|
2097
|
-
}), r =
|
|
2097
|
+
}), r = Ae(e), s = M(!1), i = async () => {
|
|
2098
2098
|
var g;
|
|
2099
|
-
if (
|
|
2099
|
+
if (C(a) !== "design")
|
|
2100
2100
|
try {
|
|
2101
2101
|
s.value = !0;
|
|
2102
2102
|
const u = await r();
|
|
@@ -2115,7 +2115,7 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2115
2115
|
const { setRequest: d } = N(Se, {
|
|
2116
2116
|
// @ts-ignore
|
|
2117
2117
|
// eslint-disable-next-line no-void
|
|
2118
|
-
setRequest: ({ id: g, sortNum: u, requestFn:
|
|
2118
|
+
setRequest: ({ id: g, sortNum: u, requestFn: m }) => {
|
|
2119
2119
|
}
|
|
2120
2120
|
});
|
|
2121
2121
|
d({
|
|
@@ -2128,13 +2128,13 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2128
2128
|
const h = fe(e)("click", () => {
|
|
2129
2129
|
if (!e.linkPage && !e.href)
|
|
2130
2130
|
return;
|
|
2131
|
-
const g = e.linkPage || "", u =
|
|
2132
|
-
let
|
|
2133
|
-
|
|
2131
|
+
const g = e.linkPage || "", u = On(C(a), g), m = e.href;
|
|
2132
|
+
let b = m || u;
|
|
2133
|
+
b = se(b);
|
|
2134
2134
|
const v = e.target;
|
|
2135
|
-
v && (v !== "event" ? window.open(
|
|
2135
|
+
v && (v !== "event" ? window.open(b, "_" + v) : window.parent.postMessage({
|
|
2136
2136
|
type: "openPage",
|
|
2137
|
-
url:
|
|
2137
|
+
url: m
|
|
2138
2138
|
}, "*"));
|
|
2139
2139
|
});
|
|
2140
2140
|
return {
|
|
@@ -2145,8 +2145,8 @@ const Nl = /* @__PURE__ */ X(Dl, [["render", zl]]), Pl = oe(Nl), $n = {
|
|
|
2145
2145
|
};
|
|
2146
2146
|
}
|
|
2147
2147
|
});
|
|
2148
|
-
const
|
|
2149
|
-
function
|
|
2148
|
+
const Wl = ["innerHTML"];
|
|
2149
|
+
function jl(e, n, t, o, a, r) {
|
|
2150
2150
|
const s = Z("skeleton");
|
|
2151
2151
|
return e.loading ? (E(), $("div", {
|
|
2152
2152
|
key: 0,
|
|
@@ -2160,9 +2160,9 @@ function Wl(e, n, t, o, a, r) {
|
|
|
2160
2160
|
style: G(e.style),
|
|
2161
2161
|
innerHTML: e.myText,
|
|
2162
2162
|
onClick: n[0] || (n[0] = (...i) => e.click && e.click(...i))
|
|
2163
|
-
}, null, 12,
|
|
2163
|
+
}, null, 12, Wl));
|
|
2164
2164
|
}
|
|
2165
|
-
const Vl = /* @__PURE__ */ X(ql, [["render",
|
|
2165
|
+
const Vl = /* @__PURE__ */ X(ql, [["render", jl], ["__scopeId", "data-v-f9ba6c3f"]]), Hl = oe(Vl), Zl = Q({
|
|
2166
2166
|
name: "EcanScrollText",
|
|
2167
2167
|
setup() {
|
|
2168
2168
|
return {
|
|
@@ -2264,13 +2264,13 @@ const ti = /* @__PURE__ */ X(Xl, [["render", ei], ["__scopeId", "data-v-47d57d2d
|
|
|
2264
2264
|
textAlign: "center"
|
|
2265
2265
|
} : {
|
|
2266
2266
|
textAlign: "left"
|
|
2267
|
-
}), a = (
|
|
2267
|
+
}), a = (m, b) => b == null || b === "" ? m : {
|
|
2268
2268
|
money: zt,
|
|
2269
2269
|
percentage: dt,
|
|
2270
2270
|
contrast: dt
|
|
2271
|
-
}[
|
|
2272
|
-
const v = parseFloat(
|
|
2273
|
-
if (
|
|
2271
|
+
}[b](m) || "", r = (m, b) => {
|
|
2272
|
+
const v = parseFloat(m + "");
|
|
2273
|
+
if (b !== "contrast")
|
|
2274
2274
|
return "";
|
|
2275
2275
|
switch (!0) {
|
|
2276
2276
|
case v >= 0:
|
|
@@ -2278,17 +2278,17 @@ const ti = /* @__PURE__ */ X(Xl, [["render", ei], ["__scopeId", "data-v-47d57d2d
|
|
|
2278
2278
|
case v < 0:
|
|
2279
2279
|
return "goDown";
|
|
2280
2280
|
}
|
|
2281
|
-
}, s =
|
|
2281
|
+
}, s = Ae(e), { pageMode: i } = N(ce, {
|
|
2282
2282
|
pageMode: "normal"
|
|
2283
2283
|
}), l = M(!1), d = async () => {
|
|
2284
|
-
var
|
|
2285
|
-
if (!(e.dataType !== "request" ||
|
|
2284
|
+
var m;
|
|
2285
|
+
if (!(e.dataType !== "request" || C(i) === "design"))
|
|
2286
2286
|
try {
|
|
2287
2287
|
l.value = !0;
|
|
2288
|
-
const
|
|
2289
|
-
n.value = ((
|
|
2290
|
-
} catch (
|
|
2291
|
-
console.error(
|
|
2288
|
+
const b = await s();
|
|
2289
|
+
n.value = ((m = b == null ? void 0 : b.data) == null ? void 0 : m.data.rows) || [];
|
|
2290
|
+
} catch (b) {
|
|
2291
|
+
console.error(b);
|
|
2292
2292
|
} finally {
|
|
2293
2293
|
l.value = !1;
|
|
2294
2294
|
}
|
|
@@ -2302,7 +2302,7 @@ const ti = /* @__PURE__ */ X(Xl, [["render", ei], ["__scopeId", "data-v-47d57d2d
|
|
|
2302
2302
|
const { setRequest: u } = N(Se, {
|
|
2303
2303
|
// @ts-ignore
|
|
2304
2304
|
// eslint-disable-next-line no-void
|
|
2305
|
-
setRequest: ({ id:
|
|
2305
|
+
setRequest: ({ id: m, sortNum: b, requestFn: v }) => {
|
|
2306
2306
|
}
|
|
2307
2307
|
});
|
|
2308
2308
|
return u({
|
|
@@ -2391,7 +2391,7 @@ function mi(e, n, t, o, a, r) {
|
|
|
2391
2391
|
ee("div", ui, " Top " + ye(l + 1), 1)
|
|
2392
2392
|
])) : ve("", !0),
|
|
2393
2393
|
(E(!0), $(Ie, null, Ee(e.columns, (d) => (E(), $("div", {
|
|
2394
|
-
class:
|
|
2394
|
+
class: Lt(["column", e.contrastClass(i[d.key], d.format)]),
|
|
2395
2395
|
key: d.key,
|
|
2396
2396
|
style: G({
|
|
2397
2397
|
fontSize: d.fontSize,
|
|
@@ -2443,62 +2443,62 @@ const gi = /* @__PURE__ */ X(ai, [["render", mi], ["__scopeId", "data-v-211785ca
|
|
|
2443
2443
|
const { pageMode: n } = N(ce, {
|
|
2444
2444
|
pageMode: "normal"
|
|
2445
2445
|
}), t = ie(e), o = q(() => {
|
|
2446
|
-
const
|
|
2447
|
-
return parseFloat(
|
|
2446
|
+
const m = e.width;
|
|
2447
|
+
return parseFloat(m);
|
|
2448
2448
|
}), a = M({});
|
|
2449
2449
|
ne(() => e.data, () => {
|
|
2450
|
-
(e.dataType === "static" ||
|
|
2450
|
+
(e.dataType === "static" || C(n) === "design") && (a.value = e.data);
|
|
2451
2451
|
}, {
|
|
2452
2452
|
immediate: !0,
|
|
2453
2453
|
deep: !0
|
|
2454
2454
|
});
|
|
2455
2455
|
const r = q(() => {
|
|
2456
|
-
const
|
|
2457
|
-
if (
|
|
2458
|
-
return isNaN(
|
|
2456
|
+
const m = C(a), b = +e.variableDefaultValue;
|
|
2457
|
+
if (m == null)
|
|
2458
|
+
return isNaN(b) ? 0 : b;
|
|
2459
2459
|
const v = e.text.match(/\{.+\}/g) || [];
|
|
2460
|
-
let
|
|
2461
|
-
const
|
|
2460
|
+
let y;
|
|
2461
|
+
const x = new Set(Object.keys(m));
|
|
2462
2462
|
for (let A = 0; A < v.length; A++) {
|
|
2463
|
-
const
|
|
2464
|
-
if (
|
|
2465
|
-
|
|
2463
|
+
const F = v[A], k = F.slice(1, F.length - 1);
|
|
2464
|
+
if (x.has(k)) {
|
|
2465
|
+
y = m[k];
|
|
2466
2466
|
break;
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
|
-
return typeof
|
|
2469
|
+
return typeof y == "number" ? y = y * 100 : typeof y == "string" && !isNaN(+y) ? y = +y * 100 : isNaN(b) ? y = 0 : y = b * 100, e.decimalFormat && (y = +y.toFixed(2)), y;
|
|
2470
2470
|
}), s = q(() => {
|
|
2471
|
-
var
|
|
2472
|
-
let
|
|
2473
|
-
if (
|
|
2474
|
-
return
|
|
2475
|
-
const
|
|
2476
|
-
for (let
|
|
2477
|
-
const
|
|
2478
|
-
let
|
|
2479
|
-
const
|
|
2480
|
-
for (let
|
|
2481
|
-
const
|
|
2482
|
-
|
|
2471
|
+
var x;
|
|
2472
|
+
let m = e.text;
|
|
2473
|
+
if (m === "")
|
|
2474
|
+
return C(r);
|
|
2475
|
+
const b = e.variableDefaultValue, v = C(a), y = m.match(/\{.+\}/g) || [];
|
|
2476
|
+
for (let A = 0; A < y.length; A++) {
|
|
2477
|
+
const F = y[A];
|
|
2478
|
+
let k = F.slice(1, F.length - 1);
|
|
2479
|
+
const L = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, S = F.match(L);
|
|
2480
|
+
for (let p = 0; p < (S == null ? void 0 : S.length); p++) {
|
|
2481
|
+
const T = (x = S[p]) == null ? void 0 : x.trim();
|
|
2482
|
+
v[T] != null && (k = k.replace(T, v[T]));
|
|
2483
2483
|
}
|
|
2484
|
-
let
|
|
2484
|
+
let f = k;
|
|
2485
2485
|
try {
|
|
2486
|
-
/\(.*\)/g.test(
|
|
2487
|
-
} catch (
|
|
2488
|
-
console.error(
|
|
2486
|
+
/\(.*\)/g.test(k) && (f = ht(k));
|
|
2487
|
+
} catch (p) {
|
|
2488
|
+
console.error(p);
|
|
2489
2489
|
}
|
|
2490
|
-
|
|
2490
|
+
typeof +f == "number" && !isNaN(+f) ? (f = +f * 100, e.decimalFormat && (f = f.toFixed(2))) : f = b, m = m.replace(F, f + "");
|
|
2491
2491
|
}
|
|
2492
|
-
return
|
|
2493
|
-
}), i =
|
|
2494
|
-
var
|
|
2495
|
-
if (!(e.dataType !== "request" ||
|
|
2492
|
+
return m;
|
|
2493
|
+
}), i = Ae(e), l = M(!1), d = async () => {
|
|
2494
|
+
var m;
|
|
2495
|
+
if (!(e.dataType !== "request" || C(n) === "design"))
|
|
2496
2496
|
try {
|
|
2497
2497
|
l.value = !0;
|
|
2498
|
-
const
|
|
2499
|
-
a.value = ((
|
|
2500
|
-
} catch (
|
|
2501
|
-
console.error(
|
|
2498
|
+
const b = await i();
|
|
2499
|
+
a.value = ((m = b == null ? void 0 : b.data) == null ? void 0 : m.data) || {};
|
|
2500
|
+
} catch (b) {
|
|
2501
|
+
console.error(b);
|
|
2502
2502
|
} finally {
|
|
2503
2503
|
l.value = !1;
|
|
2504
2504
|
}
|
|
@@ -2512,7 +2512,7 @@ const gi = /* @__PURE__ */ X(ai, [["render", mi], ["__scopeId", "data-v-211785ca
|
|
|
2512
2512
|
}), { setRequest: u } = N(Se, {
|
|
2513
2513
|
// @ts-ignore
|
|
2514
2514
|
// eslint-disable-next-line no-void
|
|
2515
|
-
setRequest: ({ id:
|
|
2515
|
+
setRequest: ({ id: m, sortNum: b, requestFn: v }) => {
|
|
2516
2516
|
}
|
|
2517
2517
|
});
|
|
2518
2518
|
return u({
|
|
@@ -2548,7 +2548,7 @@ function vi(e, n, t, o, a, r) {
|
|
|
2548
2548
|
onClick: e.click
|
|
2549
2549
|
}, {
|
|
2550
2550
|
format: Y(() => [
|
|
2551
|
-
e.loading ? (E(),
|
|
2551
|
+
e.loading ? (E(), Fe(s, {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
loading: e.loading
|
|
2554
2554
|
}, null, 8, ["loading"])) : (E(), $("div", {
|
|
@@ -2567,7 +2567,7 @@ function vi(e, n, t, o, a, r) {
|
|
|
2567
2567
|
}, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
|
|
2568
2568
|
], 4);
|
|
2569
2569
|
}
|
|
2570
|
-
const pi = /* @__PURE__ */ X(bi, [["render", vi], ["__scopeId", "data-v-
|
|
2570
|
+
const pi = /* @__PURE__ */ X(bi, [["render", vi], ["__scopeId", "data-v-33fedc2e"]]), Ci = oe(pi), Wn = {
|
|
2571
2571
|
...re,
|
|
2572
2572
|
width: "200px",
|
|
2573
2573
|
id: "",
|
|
@@ -2579,13 +2579,13 @@ const pi = /* @__PURE__ */ X(bi, [["render", vi], ["__scopeId", "data-v-28b872d0
|
|
|
2579
2579
|
type: "ecanInput",
|
|
2580
2580
|
value: "",
|
|
2581
2581
|
placeholder: "请输入文字"
|
|
2582
|
-
},
|
|
2582
|
+
}, jn = ae(Wn), Si = ["inputChange", "inputBlur"], wi = Q({
|
|
2583
2583
|
name: "EcanInput",
|
|
2584
2584
|
components: {
|
|
2585
2585
|
AInput: mn
|
|
2586
2586
|
},
|
|
2587
2587
|
props: {
|
|
2588
|
-
...
|
|
2588
|
+
...jn
|
|
2589
2589
|
},
|
|
2590
2590
|
setup(e) {
|
|
2591
2591
|
const n = ie(e), t = M("");
|
|
@@ -2611,7 +2611,7 @@ const pi = /* @__PURE__ */ X(bi, [["render", vi], ["__scopeId", "data-v-28b872d0
|
|
|
2611
2611
|
const r = () => {
|
|
2612
2612
|
const d = o(e.id);
|
|
2613
2613
|
a(e.id, { ...d, RECORD: t });
|
|
2614
|
-
}, s = fe(e), i =
|
|
2614
|
+
}, s = fe(e), i = Ot(s("inputChange", () => {
|
|
2615
2615
|
r();
|
|
2616
2616
|
}), 300), l = s("inputBlur", () => {
|
|
2617
2617
|
});
|
|
@@ -2639,7 +2639,7 @@ function ki(e, n, t, o, a, r) {
|
|
|
2639
2639
|
}, null, 8, ["value", "placeholder", "onChange", "onBlur"])
|
|
2640
2640
|
], 4);
|
|
2641
2641
|
}
|
|
2642
|
-
const
|
|
2642
|
+
const xi = /* @__PURE__ */ X(wi, [["render", ki]]), Ai = oe(xi), Vn = {
|
|
2643
2643
|
...re,
|
|
2644
2644
|
height: "33px",
|
|
2645
2645
|
width: "130px",
|
|
@@ -2656,7 +2656,7 @@ const Ai = /* @__PURE__ */ X(wi, [["render", ki]]), xi = oe(Ai), Vn = {
|
|
|
2656
2656
|
showTime: !1,
|
|
2657
2657
|
useCurrentTime: !0,
|
|
2658
2658
|
operate: null
|
|
2659
|
-
}, Hn = ae(Vn), Ti = ["dateChange"],
|
|
2659
|
+
}, Hn = ae(Vn), Ti = ["dateChange"], Li = Q({
|
|
2660
2660
|
name: "EcanDatePicker",
|
|
2661
2661
|
props: {
|
|
2662
2662
|
...Hn
|
|
@@ -2707,7 +2707,7 @@ const Ai = /* @__PURE__ */ X(wi, [["render", ki]]), xi = oe(Ai), Vn = {
|
|
|
2707
2707
|
};
|
|
2708
2708
|
}
|
|
2709
2709
|
});
|
|
2710
|
-
function
|
|
2710
|
+
function _i(e, n, t, o, a, r) {
|
|
2711
2711
|
const s = Z("a-date-picker");
|
|
2712
2712
|
return E(), $("div", {
|
|
2713
2713
|
class: "ecan-date-picker",
|
|
@@ -2727,7 +2727,7 @@ function Li(e, n, t, o, a, r) {
|
|
|
2727
2727
|
}, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "getPopupContainer"])
|
|
2728
2728
|
], 4);
|
|
2729
2729
|
}
|
|
2730
|
-
const Ii = /* @__PURE__ */ X(
|
|
2730
|
+
const Ii = /* @__PURE__ */ X(Li, [["render", _i]]), Mi = oe(Ii), Zn = {
|
|
2731
2731
|
...re,
|
|
2732
2732
|
name: "下拉框选择器",
|
|
2733
2733
|
keyName: "下拉框选择器",
|
|
@@ -2743,7 +2743,7 @@ const Ii = /* @__PURE__ */ X(_i, [["render", Li]]), Mi = oe(Ii), Zn = {
|
|
|
2743
2743
|
value: "",
|
|
2744
2744
|
dataFieldNames: { label: "label", value: "value" },
|
|
2745
2745
|
maxTagCount: void 0
|
|
2746
|
-
}, Jn = ae(Zn), Ei = ["selectChange"],
|
|
2746
|
+
}, Jn = ae(Zn), Ei = ["selectChange", "refreshData"], Oi = Q({
|
|
2747
2747
|
name: "EcanSelect",
|
|
2748
2748
|
components: {
|
|
2749
2749
|
ASelect: Zo
|
|
@@ -2752,24 +2752,24 @@ const Ii = /* @__PURE__ */ X(_i, [["render", Li]]), Mi = oe(Ii), Zn = {
|
|
|
2752
2752
|
...Jn
|
|
2753
2753
|
},
|
|
2754
2754
|
setup(e) {
|
|
2755
|
-
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o =
|
|
2755
|
+
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = Ae(e), { pageMode: a } = N(ce, {
|
|
2756
2756
|
pageMode: "normal"
|
|
2757
|
-
}), r = M(e.data), s = M(e.value || e.data[0]), i = e.dataFieldNames, l = (v,
|
|
2758
|
-
const
|
|
2759
|
-
let
|
|
2760
|
-
const
|
|
2761
|
-
return
|
|
2757
|
+
}), r = M(e.data), s = M(e.value || e.data[0]), i = e.dataFieldNames, l = (v, y) => {
|
|
2758
|
+
const x = i.label, A = i.value;
|
|
2759
|
+
let F;
|
|
2760
|
+
const k = y[x], L = y[A];
|
|
2761
|
+
return k != null ? F = k : L != null && (F = L), (F == null ? void 0 : F.toLowerCase().indexOf(v == null ? void 0 : v.toLowerCase())) >= 0;
|
|
2762
2762
|
}, d = M(!1), c = async () => {
|
|
2763
|
-
var v,
|
|
2764
|
-
if (!(e.dataType !== "request" ||
|
|
2763
|
+
var v, y;
|
|
2764
|
+
if (!(e.dataType !== "request" || C(a) === "design")) {
|
|
2765
2765
|
d.value = !0;
|
|
2766
2766
|
try {
|
|
2767
|
-
const
|
|
2768
|
-
r.value = ((
|
|
2769
|
-
const A =
|
|
2767
|
+
const x = await o();
|
|
2768
|
+
r.value = ((y = (v = x == null ? void 0 : x.data) == null ? void 0 : v.data) == null ? void 0 : y.rows) || [];
|
|
2769
|
+
const A = C(r)[0];
|
|
2770
2770
|
e.value === "" && A != null && (s.value = A[i.value]);
|
|
2771
|
-
} catch (
|
|
2772
|
-
console.error(
|
|
2771
|
+
} catch (x) {
|
|
2772
|
+
console.error(x);
|
|
2773
2773
|
} finally {
|
|
2774
2774
|
d.value = !1;
|
|
2775
2775
|
}
|
|
@@ -2781,27 +2781,28 @@ const Ii = /* @__PURE__ */ X(_i, [["render", Li]]), Mi = oe(Ii), Zn = {
|
|
|
2781
2781
|
},
|
|
2782
2782
|
// @ts-ignore
|
|
2783
2783
|
// eslint-disable-next-line no-void
|
|
2784
|
-
setGlobalModel: (v,
|
|
2784
|
+
setGlobalModel: (v, y) => {
|
|
2785
2785
|
}
|
|
2786
2786
|
});
|
|
2787
2787
|
g(e.id, {
|
|
2788
2788
|
type: e.type,
|
|
2789
2789
|
value: s
|
|
2790
2790
|
});
|
|
2791
|
-
const
|
|
2792
|
-
const v = e.id,
|
|
2793
|
-
g(v, { ...
|
|
2791
|
+
const m = fe(e)("selectChange", () => {
|
|
2792
|
+
const v = e.id, y = h(v);
|
|
2793
|
+
g(v, { ...y, RECORD: s });
|
|
2794
2794
|
});
|
|
2795
2795
|
he(e, {
|
|
2796
|
-
selectChange:
|
|
2796
|
+
selectChange: m,
|
|
2797
|
+
refreshData: c
|
|
2797
2798
|
});
|
|
2798
|
-
const { setRequest:
|
|
2799
|
+
const { setRequest: b } = N(Se, {
|
|
2799
2800
|
// @ts-ignore
|
|
2800
2801
|
// eslint-disable-next-line no-void
|
|
2801
|
-
setRequest: ({ id: v, sortNum:
|
|
2802
|
+
setRequest: ({ id: v, sortNum: y, requestFn: x }) => {
|
|
2802
2803
|
}
|
|
2803
2804
|
});
|
|
2804
|
-
return
|
|
2805
|
+
return b({
|
|
2805
2806
|
id: e.id,
|
|
2806
2807
|
requestFn: c,
|
|
2807
2808
|
sortNum: e.requestSort
|
|
@@ -2809,14 +2810,14 @@ const Ii = /* @__PURE__ */ X(_i, [["render", Li]]), Mi = oe(Ii), Zn = {
|
|
|
2809
2810
|
style: n,
|
|
2810
2811
|
getPopupContainer: t,
|
|
2811
2812
|
myValue: s,
|
|
2812
|
-
selectChange:
|
|
2813
|
+
selectChange: m,
|
|
2813
2814
|
options: r,
|
|
2814
2815
|
filterOption: l,
|
|
2815
2816
|
loading: d
|
|
2816
2817
|
};
|
|
2817
2818
|
}
|
|
2818
2819
|
});
|
|
2819
|
-
function
|
|
2820
|
+
function Fi(e, n, t, o, a, r) {
|
|
2820
2821
|
const s = Z("a-select");
|
|
2821
2822
|
return E(), $("div", {
|
|
2822
2823
|
class: "ecan-select",
|
|
@@ -2838,7 +2839,7 @@ function Oi(e, n, t, o, a, r) {
|
|
|
2838
2839
|
}, null, 8, ["value", "options", "mode", "getPopupContainer", "field-names", "maxTagCount", "filter-option", "onChange", "loading"])
|
|
2839
2840
|
], 4);
|
|
2840
2841
|
}
|
|
2841
|
-
const Ri = /* @__PURE__ */ X(
|
|
2842
|
+
const Ri = /* @__PURE__ */ X(Oi, [["render", Fi], ["__scopeId", "data-v-2c6a08f8"]]), Di = oe(Ri), Yn = {
|
|
2842
2843
|
...re,
|
|
2843
2844
|
name: "日期范围选择器",
|
|
2844
2845
|
keyName: "日期范围选择器",
|
|
@@ -2865,38 +2866,38 @@ const Ri = /* @__PURE__ */ X(Fi, [["render", Oi], ["__scopeId", "data-v-ef197aff
|
|
|
2865
2866
|
},
|
|
2866
2867
|
setup(e) {
|
|
2867
2868
|
const n = ie(e), t = () => document.getElementById("ProviderConfig") || document.body, o = M([null, null]);
|
|
2868
|
-
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([u,
|
|
2869
|
-
let A = null,
|
|
2870
|
-
if (
|
|
2871
|
-
const { type:
|
|
2872
|
-
switch (
|
|
2869
|
+
ne(() => [e.startTime, e.endTime, e.useCurrentTime, e.interval, e.intervalUnit, e.operate], ([u, m, b, v, y, x]) => {
|
|
2870
|
+
let A = null, F = null;
|
|
2871
|
+
if (b && (A = Ce().subtract(v, y), F = Ce()), u && (A = Ce(se(u))), m && (F = Ce(se(m))), x) {
|
|
2872
|
+
const { type: k, value: L, mode: S } = x;
|
|
2873
|
+
switch (k) {
|
|
2873
2874
|
case "add":
|
|
2874
|
-
A = A && A.add(
|
|
2875
|
+
A = A && A.add(L, S), F = F && F.add(L, S);
|
|
2875
2876
|
break;
|
|
2876
2877
|
case "minus":
|
|
2877
|
-
A = A && A.subtract(
|
|
2878
|
+
A = A && A.subtract(L, S), F = F && F.subtract(L, S);
|
|
2878
2879
|
}
|
|
2879
2880
|
}
|
|
2880
|
-
o.value = [A,
|
|
2881
|
+
o.value = [A, F];
|
|
2881
2882
|
}, {
|
|
2882
2883
|
immediate: !0
|
|
2883
2884
|
});
|
|
2884
|
-
let a =
|
|
2885
|
+
let a = C(o)[0], r = C(o)[1];
|
|
2885
2886
|
const s = (u) => {
|
|
2886
2887
|
Array.isArray(u) ? (a = u[0], r = u[1]) : (a = null, r = null);
|
|
2887
2888
|
}, i = (u) => {
|
|
2888
|
-
let
|
|
2889
|
-
const
|
|
2889
|
+
let m = !1, { limitStartTime: b, limitEndTime: v } = e;
|
|
2890
|
+
const y = {
|
|
2890
2891
|
startTime: `${a || ""}`,
|
|
2891
2892
|
endTime: `${r || ""}`
|
|
2892
2893
|
};
|
|
2893
|
-
return
|
|
2894
|
+
return b = se(b, { codeData: y }), v = se(v, { codeData: y }), b && v ? m = !(Ce(b) < u && u < Ce(v)) : b ? m = Ce(b) > u : v && (m = Ce(v) < u), m;
|
|
2894
2895
|
}, { setGlobalModel: l } = N(ue, {
|
|
2895
2896
|
// @ts-ignore
|
|
2896
2897
|
// eslint-disable-next-line no-void
|
|
2897
|
-
setGlobalModel: (u,
|
|
2898
|
+
setGlobalModel: (u, m) => {
|
|
2898
2899
|
}
|
|
2899
|
-
}), d = q(() => Array.isArray(
|
|
2900
|
+
}), d = q(() => Array.isArray(C(o)) ? C(o)[0] : null), c = q(() => Array.isArray(C(o)) ? C(o)[1] : null);
|
|
2900
2901
|
l(e.id, {
|
|
2901
2902
|
type: e.type,
|
|
2902
2903
|
format: e.format,
|
|
@@ -2964,14 +2965,14 @@ const Pi = /* @__PURE__ */ X(zi, [["render", Ni], ["__scopeId", "data-v-24f19e2d
|
|
|
2964
2965
|
},
|
|
2965
2966
|
setup(e) {
|
|
2966
2967
|
const n = ie(e), o = fe(e)("click", () => {
|
|
2967
|
-
const i =
|
|
2968
|
+
const i = C(r);
|
|
2968
2969
|
i && e.target === "event" && window.parent.postMessage({
|
|
2969
2970
|
type: "openPage",
|
|
2970
2971
|
url: i
|
|
2971
2972
|
}, "*");
|
|
2972
2973
|
}), a = q(() => se(e.text)), r = q(() => se(e.href) || null), s = q(() => {
|
|
2973
2974
|
const i = e.target;
|
|
2974
|
-
if (!(i === "event" ||
|
|
2975
|
+
if (!(i === "event" || C(r) == null))
|
|
2975
2976
|
return {
|
|
2976
2977
|
self: "_self",
|
|
2977
2978
|
blank: "_blank"
|
|
@@ -3013,7 +3014,7 @@ function qi(e, n, t, o, a, r) {
|
|
|
3013
3014
|
}, 8, ["onClick", "type", "danger", "shape", "href", "target"])
|
|
3014
3015
|
], 4);
|
|
3015
3016
|
}
|
|
3016
|
-
const
|
|
3017
|
+
const Wi = /* @__PURE__ */ X(Ui, [["render", qi]]), ji = oe(Wi), eo = {
|
|
3017
3018
|
...re,
|
|
3018
3019
|
width: "240px",
|
|
3019
3020
|
id: "",
|
|
@@ -3039,11 +3040,11 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3039
3040
|
},
|
|
3040
3041
|
setup(e) {
|
|
3041
3042
|
const n = ie(e), t = M([]), o = M([]), a = (u) => {
|
|
3042
|
-
const
|
|
3043
|
-
let
|
|
3043
|
+
const m = e.value;
|
|
3044
|
+
let b = [];
|
|
3044
3045
|
u.forEach((v) => {
|
|
3045
|
-
v.checked &&
|
|
3046
|
-
}), typeof
|
|
3046
|
+
v.checked && b.push(v.value);
|
|
3047
|
+
}), typeof m == "string" && m !== "" ? b = b.concat(m.split(",")) : Array.isArray(m) && (b = b.concat(m)), t.value = u, o.value = b;
|
|
3047
3048
|
};
|
|
3048
3049
|
ne(() => [e.data, e.value], ([u]) => {
|
|
3049
3050
|
a(u);
|
|
@@ -3051,14 +3052,14 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3051
3052
|
immediate: !0,
|
|
3052
3053
|
deep: !0
|
|
3053
3054
|
});
|
|
3054
|
-
const r =
|
|
3055
|
+
const r = Ae(e), { pageMode: s } = N(ce, {
|
|
3055
3056
|
pageMode: "normal"
|
|
3056
3057
|
}), i = async () => {
|
|
3057
|
-
var
|
|
3058
|
-
if (e.dataType !== "request" ||
|
|
3058
|
+
var b, v;
|
|
3059
|
+
if (e.dataType !== "request" || C(s) === "design")
|
|
3059
3060
|
return;
|
|
3060
|
-
const u = await r(),
|
|
3061
|
-
a(
|
|
3061
|
+
const u = await r(), m = ((v = (b = u == null ? void 0 : u.data) == null ? void 0 : b.data) == null ? void 0 : v.rows) || [];
|
|
3062
|
+
a(m);
|
|
3062
3063
|
}, { getGlobalModel: l, setGlobalModel: d } = N(ue, {
|
|
3063
3064
|
// @ts-ignore
|
|
3064
3065
|
// eslint-disable-next-line no-void
|
|
@@ -3066,7 +3067,7 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3066
3067
|
},
|
|
3067
3068
|
// @ts-ignore
|
|
3068
3069
|
// eslint-disable-next-line no-void
|
|
3069
|
-
setGlobalModel: (u,
|
|
3070
|
+
setGlobalModel: (u, m) => {
|
|
3070
3071
|
}
|
|
3071
3072
|
});
|
|
3072
3073
|
d(e.id, {
|
|
@@ -3079,7 +3080,7 @@ const ji = /* @__PURE__ */ X(Ui, [["render", qi]]), Wi = oe(ji), eo = {
|
|
|
3079
3080
|
}), { setRequest: g } = N(Se, {
|
|
3080
3081
|
// @ts-ignore
|
|
3081
3082
|
// eslint-disable-next-line no-void
|
|
3082
|
-
setRequest: ({ id: u, sortNum:
|
|
3083
|
+
setRequest: ({ id: u, sortNum: m, requestFn: b }) => {
|
|
3083
3084
|
}
|
|
3084
3085
|
});
|
|
3085
3086
|
return g({
|
|
@@ -3182,7 +3183,7 @@ Be([
|
|
|
3182
3183
|
oa,
|
|
3183
3184
|
Ke,
|
|
3184
3185
|
Xe,
|
|
3185
|
-
|
|
3186
|
+
Ft,
|
|
3186
3187
|
et
|
|
3187
3188
|
]);
|
|
3188
3189
|
const Ki = Q({
|
|
@@ -3193,17 +3194,17 @@ const Ki = Q({
|
|
|
3193
3194
|
components: {
|
|
3194
3195
|
Spin: tt,
|
|
3195
3196
|
Echarts: ze,
|
|
3196
|
-
AModal:
|
|
3197
|
+
AModal: xe
|
|
3197
3198
|
},
|
|
3198
3199
|
setup(e) {
|
|
3199
3200
|
const n = ie(e), t = M([]), o = M(!1), a = () => {
|
|
3200
3201
|
o.value = !1;
|
|
3201
3202
|
}, r = q(() => {
|
|
3202
|
-
let { data:
|
|
3203
|
+
let { data: L = [] } = C(t)[0] || {};
|
|
3203
3204
|
if (Array.isArray(e.colors)) {
|
|
3204
|
-
const
|
|
3205
|
-
|
|
3206
|
-
label:
|
|
3205
|
+
const S = e.isUseLabelColors, f = e.colors;
|
|
3206
|
+
L = L.map((p, T) => ({
|
|
3207
|
+
label: S ? { color: f[T] } : {},
|
|
3207
3208
|
...p
|
|
3208
3209
|
}));
|
|
3209
3210
|
}
|
|
@@ -3236,7 +3237,7 @@ const Ki = Q({
|
|
|
3236
3237
|
title: "说明信息",
|
|
3237
3238
|
icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
|
|
3238
3239
|
onclick() {
|
|
3239
|
-
|
|
3240
|
+
xe.info({
|
|
3240
3241
|
title: "说明信息",
|
|
3241
3242
|
content: e.toolboxInfoText
|
|
3242
3243
|
});
|
|
@@ -3260,20 +3261,20 @@ const Ki = Q({
|
|
|
3260
3261
|
tooltip: {
|
|
3261
3262
|
show: e.tooltipShow,
|
|
3262
3263
|
trigger: e.tooltipTrigger,
|
|
3263
|
-
formatter: (
|
|
3264
|
-
const { marker:
|
|
3264
|
+
formatter: (S) => {
|
|
3265
|
+
const { marker: f, seriesName: p, name: T, value: R, percent: w, data: _ } = S || {};
|
|
3265
3266
|
return se(
|
|
3266
3267
|
e.tooltipFormatter,
|
|
3267
3268
|
{
|
|
3268
|
-
marker:
|
|
3269
|
-
name:
|
|
3269
|
+
marker: f,
|
|
3270
|
+
name: T,
|
|
3270
3271
|
value: R,
|
|
3271
3272
|
percent: w,
|
|
3272
3273
|
a: p,
|
|
3273
|
-
b:
|
|
3274
|
+
b: T,
|
|
3274
3275
|
c: R,
|
|
3275
3276
|
d: w,
|
|
3276
|
-
...
|
|
3277
|
+
..._
|
|
3277
3278
|
},
|
|
3278
3279
|
{
|
|
3279
3280
|
useNewline: !0,
|
|
@@ -3298,7 +3299,7 @@ const Ki = Q({
|
|
|
3298
3299
|
color: e.colors,
|
|
3299
3300
|
series: [
|
|
3300
3301
|
{
|
|
3301
|
-
data:
|
|
3302
|
+
data: L,
|
|
3302
3303
|
type: "pie",
|
|
3303
3304
|
radius: [e.innerRadius, e.outerRadius],
|
|
3304
3305
|
center: [e.centerLeft, e.centerTop],
|
|
@@ -3313,7 +3314,7 @@ const Ki = Q({
|
|
|
3313
3314
|
color: e.labelColor,
|
|
3314
3315
|
fontSize: e.labelFontSize,
|
|
3315
3316
|
position: e.labelPosition,
|
|
3316
|
-
formatter:
|
|
3317
|
+
formatter: Ll(e.labelFormatter)
|
|
3317
3318
|
},
|
|
3318
3319
|
labelLine: {
|
|
3319
3320
|
show: e.labelLineShow,
|
|
@@ -3336,89 +3337,89 @@ const Ki = Q({
|
|
|
3336
3337
|
}), { getGlobalModel: s, setGlobalModel: i } = N(ue, {
|
|
3337
3338
|
// @ts-ignore
|
|
3338
3339
|
// eslint-disable-next-line no-void
|
|
3339
|
-
getGlobalModel: (
|
|
3340
|
+
getGlobalModel: (L) => {
|
|
3340
3341
|
},
|
|
3341
3342
|
// @ts-ignore
|
|
3342
3343
|
// eslint-disable-next-line no-void
|
|
3343
|
-
setGlobalModel: (
|
|
3344
|
+
setGlobalModel: (L, S) => {
|
|
3344
3345
|
}
|
|
3345
3346
|
}), { pageMode: l } = N(ce, {
|
|
3346
3347
|
pageMode: "normal"
|
|
3347
|
-
}), d = (
|
|
3348
|
-
const { dataset:
|
|
3349
|
-
t.value =
|
|
3350
|
-
}, c = (
|
|
3351
|
-
const
|
|
3352
|
-
t.value =
|
|
3348
|
+
}), d = (L = [], S) => {
|
|
3349
|
+
const { dataset: f } = Qe(L, S);
|
|
3350
|
+
t.value = f;
|
|
3351
|
+
}, c = (L = [], S) => {
|
|
3352
|
+
const f = Qe(L, S);
|
|
3353
|
+
t.value = f.dataset;
|
|
3353
3354
|
};
|
|
3354
|
-
ne(() => e.data, (
|
|
3355
|
-
(e.dataType === "static" ||
|
|
3355
|
+
ne(() => e.data, (L) => {
|
|
3356
|
+
(e.dataType === "static" || C(l) === "design") && d(L);
|
|
3356
3357
|
}, {
|
|
3357
3358
|
immediate: !0,
|
|
3358
3359
|
deep: !0
|
|
3359
3360
|
});
|
|
3360
|
-
const h = M(!1), g =
|
|
3361
|
-
var
|
|
3362
|
-
if (!(e.dataType !== "request" ||
|
|
3361
|
+
const h = M(!1), g = Ae(e), u = async () => {
|
|
3362
|
+
var L, S;
|
|
3363
|
+
if (!(e.dataType !== "request" || C(l) === "design"))
|
|
3363
3364
|
try {
|
|
3364
3365
|
h.value = !0;
|
|
3365
|
-
const
|
|
3366
|
-
d((
|
|
3367
|
-
} catch (
|
|
3368
|
-
console.error(
|
|
3366
|
+
const f = await g();
|
|
3367
|
+
d((S = (L = f == null ? void 0 : f.data) == null ? void 0 : L.data) == null ? void 0 : S.rows, e.valueTypeDataFieldNames);
|
|
3368
|
+
} catch (f) {
|
|
3369
|
+
console.error(f);
|
|
3369
3370
|
} finally {
|
|
3370
3371
|
h.value = !1;
|
|
3371
3372
|
}
|
|
3372
|
-
},
|
|
3373
|
-
const
|
|
3374
|
-
i(e.id, { ...
|
|
3375
|
-
}), v = Nt(e),
|
|
3376
|
-
var
|
|
3377
|
-
if (!(e.dataType !== "indicator" ||
|
|
3373
|
+
}, b = fe(e)("click", (L) => {
|
|
3374
|
+
const S = s(e.id);
|
|
3375
|
+
i(e.id, { ...S, RECORD: L == null ? void 0 : L.data });
|
|
3376
|
+
}), v = Nt(e), y = async () => {
|
|
3377
|
+
var L, S, f, p, T, R;
|
|
3378
|
+
if (!(e.dataType !== "indicator" || C(l) === "design"))
|
|
3378
3379
|
try {
|
|
3379
3380
|
h.value = !0;
|
|
3380
3381
|
const w = await v();
|
|
3381
|
-
let
|
|
3382
|
-
if (((
|
|
3383
|
-
const
|
|
3384
|
-
|
|
3385
|
-
name:
|
|
3386
|
-
value:
|
|
3382
|
+
let _ = [];
|
|
3383
|
+
if (((f = (S = (L = w == null ? void 0 : w.data) == null ? void 0 : L.data) == null ? void 0 : S.columns) == null ? void 0 : f.length) > 0) {
|
|
3384
|
+
const W = w.data.data.columns[0], H = w.data.data.columns[1];
|
|
3385
|
+
_ = (R = (T = (p = w == null ? void 0 : w.data) == null ? void 0 : p.data) == null ? void 0 : T.rows) == null ? void 0 : R.map((O) => ({
|
|
3386
|
+
name: O[W],
|
|
3387
|
+
value: O[H]
|
|
3387
3388
|
}));
|
|
3388
3389
|
}
|
|
3389
|
-
c(
|
|
3390
|
+
c(_);
|
|
3390
3391
|
} catch (w) {
|
|
3391
3392
|
console.error(w);
|
|
3392
3393
|
} finally {
|
|
3393
3394
|
h.value = !1;
|
|
3394
3395
|
}
|
|
3395
|
-
},
|
|
3396
|
-
|
|
3396
|
+
}, x = () => {
|
|
3397
|
+
C(l) !== "design" && (y(), u());
|
|
3397
3398
|
};
|
|
3398
3399
|
he(e, {
|
|
3399
3400
|
resetRecord: () => {
|
|
3400
|
-
const
|
|
3401
|
-
i(
|
|
3401
|
+
const L = e.id, S = s(L);
|
|
3402
|
+
i(L, { ...S, RECORD: "" });
|
|
3402
3403
|
},
|
|
3403
3404
|
refreshData: () => {
|
|
3404
|
-
|
|
3405
|
+
x();
|
|
3405
3406
|
},
|
|
3406
|
-
click:
|
|
3407
|
+
click: b
|
|
3407
3408
|
});
|
|
3408
|
-
const { setRequest:
|
|
3409
|
+
const { setRequest: k } = N(Se, {
|
|
3409
3410
|
// @ts-ignore
|
|
3410
3411
|
// eslint-disable-next-line no-void
|
|
3411
|
-
setRequest: ({ id:
|
|
3412
|
+
setRequest: ({ id: L, sortNum: S, requestFn: f }) => {
|
|
3412
3413
|
}
|
|
3413
3414
|
});
|
|
3414
|
-
return
|
|
3415
|
+
return k({
|
|
3415
3416
|
id: e.id,
|
|
3416
|
-
requestFn:
|
|
3417
|
+
requestFn: x,
|
|
3417
3418
|
sortNum: e.requestSort
|
|
3418
3419
|
}), {
|
|
3419
3420
|
option: r,
|
|
3420
3421
|
style: n,
|
|
3421
|
-
click:
|
|
3422
|
+
click: b,
|
|
3422
3423
|
loading: h,
|
|
3423
3424
|
visible: o,
|
|
3424
3425
|
hideModal: a
|
|
@@ -3546,13 +3547,13 @@ const or = Q({
|
|
|
3546
3547
|
components: {
|
|
3547
3548
|
Spin: tt,
|
|
3548
3549
|
Echarts: ze,
|
|
3549
|
-
AModal:
|
|
3550
|
+
AModal: xe
|
|
3550
3551
|
},
|
|
3551
3552
|
setup(e) {
|
|
3552
3553
|
const n = ie(e), t = M([]), o = M([]), a = M(!1), r = () => {
|
|
3553
3554
|
a.value = !1;
|
|
3554
3555
|
}, s = q(() => {
|
|
3555
|
-
const
|
|
3556
|
+
const S = e.xAxisLabelFormatter, f = e.yAxisLabelFormatter;
|
|
3556
3557
|
return {
|
|
3557
3558
|
toolbox: {
|
|
3558
3559
|
show: e.toolboxShow,
|
|
@@ -3582,7 +3583,7 @@ const or = Q({
|
|
|
3582
3583
|
title: "说明信息",
|
|
3583
3584
|
icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
|
|
3584
3585
|
onclick() {
|
|
3585
|
-
|
|
3586
|
+
xe.info({
|
|
3586
3587
|
title: "说明信息",
|
|
3587
3588
|
content: e.toolboxInfoText
|
|
3588
3589
|
});
|
|
@@ -3607,19 +3608,19 @@ const or = Q({
|
|
|
3607
3608
|
trigger: "axis",
|
|
3608
3609
|
show: e.tooltipShow,
|
|
3609
3610
|
formatter: (p) => {
|
|
3610
|
-
const
|
|
3611
|
+
const T = p.length;
|
|
3611
3612
|
let R = "", w = e.tooltipFormatter;
|
|
3612
3613
|
w === "" && (w = "{marker} {a} {c}");
|
|
3613
|
-
for (let
|
|
3614
|
-
const { marker:
|
|
3615
|
-
|
|
3614
|
+
for (let _ = 0; _ < T; _++) {
|
|
3615
|
+
const { marker: W, seriesName: H, name: O, value: P, data: z } = p[_] || {};
|
|
3616
|
+
_ === 0 && (R += `${O}<br/>`), R += se(
|
|
3616
3617
|
w,
|
|
3617
3618
|
{
|
|
3618
|
-
marker:
|
|
3619
|
-
name:
|
|
3619
|
+
marker: W,
|
|
3620
|
+
name: O,
|
|
3620
3621
|
value: P,
|
|
3621
3622
|
a: H,
|
|
3622
|
-
b:
|
|
3623
|
+
b: O,
|
|
3623
3624
|
c: P,
|
|
3624
3625
|
...z
|
|
3625
3626
|
},
|
|
@@ -3634,7 +3635,7 @@ const or = Q({
|
|
|
3634
3635
|
},
|
|
3635
3636
|
xAxis: {
|
|
3636
3637
|
type: "category",
|
|
3637
|
-
data:
|
|
3638
|
+
data: C(o),
|
|
3638
3639
|
minInterval: e.xAxisMinInterval,
|
|
3639
3640
|
splitLine: {
|
|
3640
3641
|
show: e.xAxisSplitLineShow,
|
|
@@ -3649,7 +3650,7 @@ const or = Q({
|
|
|
3649
3650
|
width: e.xAxisLabelWidth,
|
|
3650
3651
|
overflow: e.xAxisLabelOverflow,
|
|
3651
3652
|
formatter(p) {
|
|
3652
|
-
return $e(
|
|
3653
|
+
return $e(S, p);
|
|
3653
3654
|
}
|
|
3654
3655
|
},
|
|
3655
3656
|
axisLine: {
|
|
@@ -3673,7 +3674,7 @@ const or = Q({
|
|
|
3673
3674
|
axisLabel: {
|
|
3674
3675
|
color: e.yAxisLabelColor,
|
|
3675
3676
|
formatter(p) {
|
|
3676
|
-
return $e(
|
|
3677
|
+
return $e(f, p);
|
|
3677
3678
|
}
|
|
3678
3679
|
},
|
|
3679
3680
|
axisLine: {
|
|
@@ -3689,34 +3690,34 @@ const or = Q({
|
|
|
3689
3690
|
top: e.legendTop,
|
|
3690
3691
|
left: e.legendLeft
|
|
3691
3692
|
},
|
|
3692
|
-
series:
|
|
3693
|
+
series: C(t)
|
|
3693
3694
|
};
|
|
3694
3695
|
}), { getGlobalModel: i, setGlobalModel: l } = N(ue, {
|
|
3695
3696
|
// @ts-ignore
|
|
3696
3697
|
// eslint-disable-next-line no-void
|
|
3697
|
-
getGlobalModel: (
|
|
3698
|
+
getGlobalModel: (S) => {
|
|
3698
3699
|
},
|
|
3699
3700
|
// @ts-ignore
|
|
3700
3701
|
// eslint-disable-next-line no-void
|
|
3701
|
-
setGlobalModel: (
|
|
3702
|
+
setGlobalModel: (S, f) => {
|
|
3702
3703
|
}
|
|
3703
3704
|
}), { pageMode: d } = N(ce, {
|
|
3704
3705
|
pageMode: "normal"
|
|
3705
|
-
}), c = (
|
|
3706
|
+
}), c = (S = [], f = !1) => {
|
|
3706
3707
|
let p;
|
|
3707
3708
|
if (e.dataFieldConfigType === "key") {
|
|
3708
|
-
const
|
|
3709
|
-
p = Pe(
|
|
3709
|
+
const _ = f ? e.keyTypeDataFieldNames : null;
|
|
3710
|
+
p = Pe(S, _);
|
|
3710
3711
|
} else if (e.dataFieldConfigType === "value") {
|
|
3711
|
-
const
|
|
3712
|
-
p = Qe(
|
|
3712
|
+
const _ = f ? e.valueTypeDataFieldNames : null;
|
|
3713
|
+
p = Qe(S, _);
|
|
3713
3714
|
}
|
|
3714
3715
|
o.value = p.dimensions;
|
|
3715
|
-
const
|
|
3716
|
-
for (let
|
|
3716
|
+
const T = p.dataset, R = [], w = T.length;
|
|
3717
|
+
for (let _ = 0; _ < w; _++)
|
|
3717
3718
|
R.push({
|
|
3718
3719
|
type: "line",
|
|
3719
|
-
..._
|
|
3720
|
+
...T[_],
|
|
3720
3721
|
symbolSize: e.symbolSize,
|
|
3721
3722
|
smooth: e.smooth,
|
|
3722
3723
|
areaStyle: {
|
|
@@ -3740,12 +3741,12 @@ const or = Q({
|
|
|
3740
3741
|
}
|
|
3741
3742
|
});
|
|
3742
3743
|
t.value = R;
|
|
3743
|
-
}, h = (
|
|
3744
|
-
const R = Pe(
|
|
3744
|
+
}, h = (S = [], f, p = !1) => {
|
|
3745
|
+
const R = Pe(S, p ? f : null);
|
|
3745
3746
|
o.value = R.dimensions;
|
|
3746
|
-
const w = R.dataset,
|
|
3747
|
-
for (let H = 0; H <
|
|
3748
|
-
|
|
3747
|
+
const w = R.dataset, _ = [], W = w.length;
|
|
3748
|
+
for (let H = 0; H < W; H++)
|
|
3749
|
+
_.push({
|
|
3749
3750
|
type: "line",
|
|
3750
3751
|
...w[H],
|
|
3751
3752
|
symbolSize: e.symbolSize,
|
|
@@ -3754,65 +3755,65 @@ const or = Q({
|
|
|
3754
3755
|
width: e.lineStyleWidth
|
|
3755
3756
|
}
|
|
3756
3757
|
});
|
|
3757
|
-
t.value =
|
|
3758
|
+
t.value = _;
|
|
3758
3759
|
};
|
|
3759
|
-
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([
|
|
3760
|
-
(e.dataType === "static" ||
|
|
3760
|
+
ne(() => [e.data, e.symbolSize, e.smooth, e.lineStyleWidth, e.areaStyleOpacity], ([S]) => {
|
|
3761
|
+
(e.dataType === "static" || C(d) === "design") && c(S);
|
|
3761
3762
|
}, {
|
|
3762
3763
|
immediate: !0,
|
|
3763
3764
|
deep: !0
|
|
3764
3765
|
});
|
|
3765
|
-
const g = M(!1), u =
|
|
3766
|
-
var
|
|
3767
|
-
if (!(e.dataType !== "request" ||
|
|
3766
|
+
const g = M(!1), u = Ae(e), m = async () => {
|
|
3767
|
+
var S, f;
|
|
3768
|
+
if (!(e.dataType !== "request" || C(d) === "design"))
|
|
3768
3769
|
try {
|
|
3769
3770
|
g.value = !0;
|
|
3770
3771
|
const p = await u();
|
|
3771
|
-
c((
|
|
3772
|
+
c((f = (S = p == null ? void 0 : p.data) == null ? void 0 : S.data) == null ? void 0 : f.rows, !0);
|
|
3772
3773
|
} catch (p) {
|
|
3773
3774
|
console.error(p);
|
|
3774
3775
|
} finally {
|
|
3775
3776
|
g.value = !1;
|
|
3776
3777
|
}
|
|
3777
|
-
}, v = fe(e)("click", (
|
|
3778
|
-
const
|
|
3779
|
-
l(e.id, { ...
|
|
3780
|
-
}),
|
|
3781
|
-
var
|
|
3782
|
-
if (!(e.dataType !== "indicator" ||
|
|
3778
|
+
}, v = fe(e)("click", (S) => {
|
|
3779
|
+
const f = i(e.id);
|
|
3780
|
+
l(e.id, { ...f, RECORD: S == null ? void 0 : S.data });
|
|
3781
|
+
}), y = Nt(e), x = async () => {
|
|
3782
|
+
var S, f, p, T, R;
|
|
3783
|
+
if (!(e.dataType !== "indicator" || C(d) === "design"))
|
|
3783
3784
|
try {
|
|
3784
3785
|
g.value = !0;
|
|
3785
|
-
const w = await
|
|
3786
|
-
let
|
|
3787
|
-
((p = (
|
|
3786
|
+
const w = await y();
|
|
3787
|
+
let _;
|
|
3788
|
+
((p = (f = (S = w == null ? void 0 : w.data) == null ? void 0 : S.data) == null ? void 0 : f.columns) == null ? void 0 : p.length) > 0 && (_ = {
|
|
3788
3789
|
name: w.data.data.columns[0],
|
|
3789
|
-
types: w.data.data.columns.slice(1).map((
|
|
3790
|
-
}), h((R = (
|
|
3790
|
+
types: w.data.data.columns.slice(1).map((W) => ({ label: W, value: W }))
|
|
3791
|
+
}), h((R = (T = w == null ? void 0 : w.data) == null ? void 0 : T.data) == null ? void 0 : R.rows, _, !0);
|
|
3791
3792
|
} catch (w) {
|
|
3792
3793
|
console.error(w);
|
|
3793
3794
|
} finally {
|
|
3794
3795
|
g.value = !1;
|
|
3795
3796
|
}
|
|
3796
3797
|
}, A = () => {
|
|
3797
|
-
|
|
3798
|
+
C(d) !== "design" && (x(), m());
|
|
3798
3799
|
};
|
|
3799
3800
|
he(e, {
|
|
3800
3801
|
refreshData: () => {
|
|
3801
3802
|
A();
|
|
3802
3803
|
},
|
|
3803
3804
|
resetRecord: () => {
|
|
3804
|
-
const
|
|
3805
|
-
l(
|
|
3805
|
+
const S = e.id, f = i(S);
|
|
3806
|
+
l(S, { ...f, RECORD: "" });
|
|
3806
3807
|
},
|
|
3807
3808
|
click: v
|
|
3808
3809
|
});
|
|
3809
|
-
const { setRequest:
|
|
3810
|
+
const { setRequest: L } = N(Se, {
|
|
3810
3811
|
// @ts-ignore
|
|
3811
3812
|
// eslint-disable-next-line no-void
|
|
3812
|
-
setRequest: ({ id:
|
|
3813
|
+
setRequest: ({ id: S, sortNum: f, requestFn: p }) => {
|
|
3813
3814
|
}
|
|
3814
3815
|
});
|
|
3815
|
-
return
|
|
3816
|
+
return L({
|
|
3816
3817
|
id: e.id,
|
|
3817
3818
|
requestFn: A,
|
|
3818
3819
|
sortNum: e.requestSort
|
|
@@ -3905,9 +3906,9 @@ const lr = /* @__PURE__ */ X(or, [["render", ar]]), ir = oe(lr), io = {
|
|
|
3905
3906
|
tooltipShow: !0,
|
|
3906
3907
|
tooltipTextStyleColor: "",
|
|
3907
3908
|
tooltipFormatter: "{marker} {a} {c}",
|
|
3908
|
-
xAxisLabelInterval: 0,
|
|
3909
3909
|
xAxisSplitLineShow: !0,
|
|
3910
3910
|
xAxisSplitLineStyleColor: "#333",
|
|
3911
|
+
xAxisLabelInterval: 0,
|
|
3911
3912
|
xAxisLabelColor: "#333",
|
|
3912
3913
|
xAxisLabelWidth: void 0,
|
|
3913
3914
|
xAxisLabelRotate: 0,
|
|
@@ -3975,16 +3976,16 @@ const sr = Q({
|
|
|
3975
3976
|
components: {
|
|
3976
3977
|
Spin: tt,
|
|
3977
3978
|
Echarts: ze,
|
|
3978
|
-
AModal:
|
|
3979
|
+
AModal: xe
|
|
3979
3980
|
},
|
|
3980
3981
|
setup(e, { expose: n }) {
|
|
3981
3982
|
const t = ie(e), o = M([]), a = M(!1), r = () => {
|
|
3982
3983
|
a.value = !1;
|
|
3983
3984
|
}, s = q(() => {
|
|
3984
|
-
const
|
|
3985
|
+
const f = C(o), p = f.length, T = [];
|
|
3985
3986
|
for (let R = 0; R < p; R++) {
|
|
3986
3987
|
const w = {
|
|
3987
|
-
...
|
|
3988
|
+
...f[R],
|
|
3988
3989
|
type: "bar",
|
|
3989
3990
|
barWidth: e.barWidth
|
|
3990
3991
|
};
|
|
@@ -3993,11 +3994,11 @@ const sr = Q({
|
|
|
3993
3994
|
fontSize: e.labelFontSize,
|
|
3994
3995
|
position: e.labelPosition,
|
|
3995
3996
|
color: e.labelColor
|
|
3996
|
-
},
|
|
3997
|
+
}, T.push(w);
|
|
3997
3998
|
}
|
|
3998
|
-
return
|
|
3999
|
+
return T;
|
|
3999
4000
|
}), i = M([]), l = M(!1), d = q(() => {
|
|
4000
|
-
const
|
|
4001
|
+
const f = e.yAxisLabelFormatter, p = e.xAxisLabelFormatter;
|
|
4001
4002
|
return {
|
|
4002
4003
|
toolbox: {
|
|
4003
4004
|
show: e.toolboxShow,
|
|
@@ -4027,7 +4028,7 @@ const sr = Q({
|
|
|
4027
4028
|
title: "说明信息",
|
|
4028
4029
|
icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
|
|
4029
4030
|
onclick() {
|
|
4030
|
-
|
|
4031
|
+
xe.info({
|
|
4031
4032
|
title: "说明信息",
|
|
4032
4033
|
content: e.toolboxInfoText
|
|
4033
4034
|
});
|
|
@@ -4051,19 +4052,19 @@ const sr = Q({
|
|
|
4051
4052
|
tooltip: {
|
|
4052
4053
|
trigger: "axis",
|
|
4053
4054
|
show: e.tooltipShow,
|
|
4054
|
-
formatter: (
|
|
4055
|
-
const R =
|
|
4056
|
-
let w = "",
|
|
4057
|
-
|
|
4058
|
-
for (let
|
|
4059
|
-
const { marker: H, seriesName:
|
|
4060
|
-
|
|
4061
|
-
|
|
4055
|
+
formatter: (T) => {
|
|
4056
|
+
const R = T.length;
|
|
4057
|
+
let w = "", _ = e.tooltipFormatter;
|
|
4058
|
+
_ === "" && (_ = "{marker} {a} {c}");
|
|
4059
|
+
for (let W = 0; W < R; W++) {
|
|
4060
|
+
const { marker: H, seriesName: O, name: P, value: z, data: V } = T[W] || {};
|
|
4061
|
+
W === 0 && (w += `${P}<br/>`), w += se(
|
|
4062
|
+
_,
|
|
4062
4063
|
{
|
|
4063
4064
|
marker: H,
|
|
4064
4065
|
name: P,
|
|
4065
4066
|
value: z,
|
|
4066
|
-
a:
|
|
4067
|
+
a: O,
|
|
4067
4068
|
b: P,
|
|
4068
4069
|
c: z,
|
|
4069
4070
|
...V
|
|
@@ -4094,7 +4095,7 @@ const sr = Q({
|
|
|
4094
4095
|
},
|
|
4095
4096
|
xAxis: {
|
|
4096
4097
|
type: e.isUseHorizontalAxis ? "value" : "category",
|
|
4097
|
-
data: e.isUseHorizontalAxis ? null :
|
|
4098
|
+
data: e.isUseHorizontalAxis ? null : C(i),
|
|
4098
4099
|
inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse,
|
|
4099
4100
|
minInterval: e.xAxisMinInterval,
|
|
4100
4101
|
splitLine: {
|
|
@@ -4109,8 +4110,8 @@ const sr = Q({
|
|
|
4109
4110
|
rotate: e.xAxisLabelRotate,
|
|
4110
4111
|
width: e.xAxisLabelWidth,
|
|
4111
4112
|
overflow: e.xAxisLabelOverflow,
|
|
4112
|
-
formatter(
|
|
4113
|
-
return $e(p,
|
|
4113
|
+
formatter(T) {
|
|
4114
|
+
return $e(p, T);
|
|
4114
4115
|
}
|
|
4115
4116
|
},
|
|
4116
4117
|
axisLine: {
|
|
@@ -4124,7 +4125,7 @@ const sr = Q({
|
|
|
4124
4125
|
},
|
|
4125
4126
|
yAxis: {
|
|
4126
4127
|
type: e.isUseHorizontalAxis ? "category" : "value",
|
|
4127
|
-
data: e.isUseHorizontalAxis ?
|
|
4128
|
+
data: e.isUseHorizontalAxis ? C(i) : null,
|
|
4128
4129
|
inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse,
|
|
4129
4130
|
minInterval: e.yAxisMinInterval,
|
|
4130
4131
|
splitLine: {
|
|
@@ -4138,8 +4139,8 @@ const sr = Q({
|
|
|
4138
4139
|
rotate: e.yAxisLabelRotate,
|
|
4139
4140
|
width: e.yAxisLabelWidth,
|
|
4140
4141
|
overflow: e.yAxisLabelOverflow,
|
|
4141
|
-
formatter(
|
|
4142
|
-
return $e(
|
|
4142
|
+
formatter(T) {
|
|
4143
|
+
return $e(f, T);
|
|
4143
4144
|
}
|
|
4144
4145
|
},
|
|
4145
4146
|
axisLine: {
|
|
@@ -4148,52 +4149,52 @@ const sr = Q({
|
|
|
4148
4149
|
}
|
|
4149
4150
|
}
|
|
4150
4151
|
},
|
|
4151
|
-
series:
|
|
4152
|
+
series: C(s)
|
|
4152
4153
|
};
|
|
4153
4154
|
}), { pageMode: c } = N(ce, {
|
|
4154
4155
|
pageMode: "normal"
|
|
4155
|
-
}), h = (
|
|
4156
|
-
let
|
|
4156
|
+
}), h = (f = [], p = !1) => {
|
|
4157
|
+
let T = {};
|
|
4157
4158
|
if (e.dataFieldConfigType === "key") {
|
|
4158
4159
|
const R = p ? e.keyTypeDataFieldNames : null;
|
|
4159
|
-
|
|
4160
|
+
T = Pe(f, R);
|
|
4160
4161
|
} else if (e.dataFieldConfigType === "value") {
|
|
4161
4162
|
const R = p ? e.valueTypeDataFieldNames : null;
|
|
4162
|
-
|
|
4163
|
+
T = Qe(f, R);
|
|
4163
4164
|
}
|
|
4164
|
-
o.value =
|
|
4165
|
-
}, g = (
|
|
4166
|
-
const w = Pe(
|
|
4165
|
+
o.value = T.dataset, i.value = T.dimensions;
|
|
4166
|
+
}, g = (f = [], p, T = !1) => {
|
|
4167
|
+
const w = Pe(f, T ? p : null);
|
|
4167
4168
|
o.value = w.dataset, i.value = w.dimensions;
|
|
4168
4169
|
};
|
|
4169
|
-
ne(() => e.data, (
|
|
4170
|
-
(e.dataType === "static" ||
|
|
4170
|
+
ne(() => e.data, (f) => {
|
|
4171
|
+
(e.dataType === "static" || C(c) === "design") && h(f);
|
|
4171
4172
|
}, {
|
|
4172
4173
|
immediate: !0,
|
|
4173
4174
|
deep: !0
|
|
4174
4175
|
});
|
|
4175
|
-
const u =
|
|
4176
|
-
var
|
|
4176
|
+
const u = Ae(e), m = async () => {
|
|
4177
|
+
var f, p;
|
|
4177
4178
|
try {
|
|
4178
4179
|
l.value = !0;
|
|
4179
|
-
const
|
|
4180
|
-
h((p = (
|
|
4181
|
-
} catch (
|
|
4182
|
-
console.error(
|
|
4180
|
+
const T = await u();
|
|
4181
|
+
h((p = (f = T == null ? void 0 : T.data) == null ? void 0 : f.data) == null ? void 0 : p.rows, !0);
|
|
4182
|
+
} catch (T) {
|
|
4183
|
+
console.error(T);
|
|
4183
4184
|
} finally {
|
|
4184
4185
|
l.value = !1;
|
|
4185
4186
|
}
|
|
4186
|
-
},
|
|
4187
|
-
var
|
|
4187
|
+
}, b = Fn(e), v = async () => {
|
|
4188
|
+
var f;
|
|
4188
4189
|
try {
|
|
4189
4190
|
l.value = !0;
|
|
4190
|
-
const p = await
|
|
4191
|
+
const p = await b(), { columns: T = [], rows: R = [] } = ((f = p == null ? void 0 : p.data) == null ? void 0 : f.data) ?? {};
|
|
4191
4192
|
let w;
|
|
4192
|
-
|
|
4193
|
-
name:
|
|
4194
|
-
types:
|
|
4195
|
-
label:
|
|
4196
|
-
value:
|
|
4193
|
+
T.length > 0 && (w = {
|
|
4194
|
+
name: T[0],
|
|
4195
|
+
types: T.slice(1).map((_) => ({
|
|
4196
|
+
label: _,
|
|
4197
|
+
value: _
|
|
4197
4198
|
}))
|
|
4198
4199
|
}), g(R, w, !0);
|
|
4199
4200
|
} catch (p) {
|
|
@@ -4201,54 +4202,54 @@ const sr = Q({
|
|
|
4201
4202
|
} finally {
|
|
4202
4203
|
l.value = !1;
|
|
4203
4204
|
}
|
|
4204
|
-
},
|
|
4205
|
-
if (
|
|
4205
|
+
}, y = () => {
|
|
4206
|
+
if (C(c) !== "design")
|
|
4206
4207
|
switch (e.dataType) {
|
|
4207
4208
|
case "indicator":
|
|
4208
4209
|
v();
|
|
4209
4210
|
break;
|
|
4210
4211
|
case "request":
|
|
4211
|
-
|
|
4212
|
+
m();
|
|
4212
4213
|
break;
|
|
4213
4214
|
}
|
|
4214
4215
|
};
|
|
4215
4216
|
n({
|
|
4216
|
-
refreshData:
|
|
4217
|
+
refreshData: y
|
|
4217
4218
|
});
|
|
4218
|
-
const
|
|
4219
|
+
const x = fe(e), { getGlobalModel: A, setGlobalModel: F } = N(ue, {
|
|
4219
4220
|
// @ts-ignore
|
|
4220
4221
|
// eslint-disable-next-line no-void
|
|
4221
|
-
getGlobalModel: (
|
|
4222
|
+
getGlobalModel: (f) => {
|
|
4222
4223
|
},
|
|
4223
4224
|
// @ts-ignore
|
|
4224
4225
|
// eslint-disable-next-line no-void
|
|
4225
|
-
setGlobalModel: (
|
|
4226
|
+
setGlobalModel: (f, p) => {
|
|
4226
4227
|
}
|
|
4227
|
-
}),
|
|
4228
|
+
}), k = x("click", (f) => {
|
|
4228
4229
|
const p = A(e.id);
|
|
4229
|
-
|
|
4230
|
-
}), { setRequest:
|
|
4230
|
+
F(e.id, { ...p, RECORD: f.data });
|
|
4231
|
+
}), { setRequest: L } = N(Se, {
|
|
4231
4232
|
// @ts-ignore
|
|
4232
4233
|
// eslint-disable-next-line no-void
|
|
4233
|
-
setRequest: ({ id:
|
|
4234
|
+
setRequest: ({ id: f, sortNum: p, requestFn: T }) => {
|
|
4234
4235
|
}
|
|
4235
4236
|
});
|
|
4236
|
-
return
|
|
4237
|
+
return L({
|
|
4237
4238
|
id: e.id,
|
|
4238
|
-
requestFn:
|
|
4239
|
+
requestFn: y,
|
|
4239
4240
|
sortNum: e.requestSort
|
|
4240
4241
|
}), he(e, {
|
|
4241
|
-
refreshData:
|
|
4242
|
-
click:
|
|
4242
|
+
refreshData: y,
|
|
4243
|
+
click: k,
|
|
4243
4244
|
resetRecord: () => {
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4245
|
+
const f = e.id, p = A(f);
|
|
4246
|
+
F(f, { ...p, RECORD: "" });
|
|
4246
4247
|
}
|
|
4247
4248
|
}), {
|
|
4248
4249
|
option: d,
|
|
4249
4250
|
style: t,
|
|
4250
|
-
refreshData:
|
|
4251
|
-
click:
|
|
4251
|
+
refreshData: y,
|
|
4252
|
+
click: k,
|
|
4252
4253
|
loading: l,
|
|
4253
4254
|
visible: a,
|
|
4254
4255
|
hideModal: r
|
|
@@ -4324,9 +4325,13 @@ const dr = /* @__PURE__ */ X(sr, [["render", cr]]), ur = oe(dr), so = {
|
|
|
4324
4325
|
symbolSize: 10,
|
|
4325
4326
|
xAxisSplitLineShow: !0,
|
|
4326
4327
|
xAxisSplitLineStyleColor: "#333",
|
|
4327
|
-
xAxisLabelColor: "#333",
|
|
4328
4328
|
xAxisLineStyleColor: "#333",
|
|
4329
4329
|
xAxisTickShow: !0,
|
|
4330
|
+
xAxisLabelColor: "#333",
|
|
4331
|
+
xAxisLabelOverflow: "none",
|
|
4332
|
+
xAxisLabelInterval: 0,
|
|
4333
|
+
xAxisLabelWidth: void 0,
|
|
4334
|
+
xAxisLabelRotate: 0,
|
|
4330
4335
|
xAxisLabelFormatter: "{value}",
|
|
4331
4336
|
yAxisSplitLineShow: !0,
|
|
4332
4337
|
yAxisSplitLineStyleColor: "#333",
|
|
@@ -4355,7 +4360,7 @@ Be([
|
|
|
4355
4360
|
Cn,
|
|
4356
4361
|
Xe,
|
|
4357
4362
|
Ke,
|
|
4358
|
-
|
|
4363
|
+
Ft,
|
|
4359
4364
|
et
|
|
4360
4365
|
]);
|
|
4361
4366
|
const mr = Q({
|
|
@@ -4366,13 +4371,13 @@ const mr = Q({
|
|
|
4366
4371
|
components: {
|
|
4367
4372
|
Spin: tt,
|
|
4368
4373
|
Echarts: ze,
|
|
4369
|
-
AModal:
|
|
4374
|
+
AModal: xe
|
|
4370
4375
|
},
|
|
4371
4376
|
setup(e) {
|
|
4372
4377
|
const n = ie(e), t = M([]), o = M(!1), a = () => {
|
|
4373
4378
|
o.value = !1;
|
|
4374
4379
|
}, r = q(() => {
|
|
4375
|
-
const
|
|
4380
|
+
const y = e.xAxisLabelFormatter, x = e.yAxisLabelFormatter;
|
|
4376
4381
|
return {
|
|
4377
4382
|
toolbox: {
|
|
4378
4383
|
show: e.toolboxShow,
|
|
@@ -4402,7 +4407,7 @@ const mr = Q({
|
|
|
4402
4407
|
title: "说明信息",
|
|
4403
4408
|
icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
|
|
4404
4409
|
onclick() {
|
|
4405
|
-
|
|
4410
|
+
xe.info({
|
|
4406
4411
|
title: "说明信息",
|
|
4407
4412
|
content: e.toolboxInfoText
|
|
4408
4413
|
});
|
|
@@ -4433,8 +4438,12 @@ const mr = Q({
|
|
|
4433
4438
|
},
|
|
4434
4439
|
axisLabel: {
|
|
4435
4440
|
color: e.xAxisLabelColor,
|
|
4441
|
+
interval: e.xAxisLabelInterval,
|
|
4442
|
+
rotate: e.xAxisLabelRotate,
|
|
4443
|
+
width: e.xAxisLabelWidth,
|
|
4444
|
+
overflow: e.xAxisLabelOverflow,
|
|
4436
4445
|
formatter(A) {
|
|
4437
|
-
return $e(
|
|
4446
|
+
return $e(y, A);
|
|
4438
4447
|
}
|
|
4439
4448
|
},
|
|
4440
4449
|
axisLine: {
|
|
@@ -4456,7 +4465,7 @@ const mr = Q({
|
|
|
4456
4465
|
axisLabel: {
|
|
4457
4466
|
color: e.yAxisLabelColor,
|
|
4458
4467
|
formatter(A) {
|
|
4459
|
-
return $e(
|
|
4468
|
+
return $e(x, A);
|
|
4460
4469
|
}
|
|
4461
4470
|
},
|
|
4462
4471
|
axisLine: {
|
|
@@ -4471,14 +4480,14 @@ const mr = Q({
|
|
|
4471
4480
|
trigger: e.tooltipTrigger,
|
|
4472
4481
|
formatter: function(A) {
|
|
4473
4482
|
var p;
|
|
4474
|
-
const { marker:
|
|
4483
|
+
const { marker: F, seriesName: k } = A, L = ((p = A == null ? void 0 : A.data) == null ? void 0 : p.record) ?? {}, { name: S, value: f } = L;
|
|
4475
4484
|
return se(e.tooltipFormatter, {
|
|
4476
|
-
marker:
|
|
4477
|
-
seriesName:
|
|
4478
|
-
a:
|
|
4479
|
-
b:
|
|
4480
|
-
c:
|
|
4481
|
-
...
|
|
4485
|
+
marker: F,
|
|
4486
|
+
seriesName: k,
|
|
4487
|
+
a: k,
|
|
4488
|
+
b: S,
|
|
4489
|
+
c: f,
|
|
4490
|
+
...L
|
|
4482
4491
|
});
|
|
4483
4492
|
},
|
|
4484
4493
|
axisPointer: {
|
|
@@ -4494,7 +4503,7 @@ const mr = Q({
|
|
|
4494
4503
|
},
|
|
4495
4504
|
series: [
|
|
4496
4505
|
{
|
|
4497
|
-
data:
|
|
4506
|
+
data: C(t),
|
|
4498
4507
|
type: "scatter",
|
|
4499
4508
|
symbolSize: e.symbolSize
|
|
4500
4509
|
}
|
|
@@ -4503,51 +4512,51 @@ const mr = Q({
|
|
|
4503
4512
|
}), { getGlobalModel: s, setGlobalModel: i } = N(ue, {
|
|
4504
4513
|
// @ts-ignore
|
|
4505
4514
|
// eslint-disable-next-line no-void
|
|
4506
|
-
getGlobalModel: (
|
|
4515
|
+
getGlobalModel: (y) => {
|
|
4507
4516
|
},
|
|
4508
4517
|
// @ts-ignore
|
|
4509
4518
|
// eslint-disable-next-line no-void
|
|
4510
|
-
setGlobalModel: (
|
|
4519
|
+
setGlobalModel: (y, x) => {
|
|
4511
4520
|
}
|
|
4512
4521
|
}), { pageMode: l } = N(ce, {
|
|
4513
4522
|
pageMode: "normal"
|
|
4514
|
-
}), d = (
|
|
4515
|
-
const { name: A = "name", value:
|
|
4516
|
-
t.value =
|
|
4523
|
+
}), d = (y = [], x) => {
|
|
4524
|
+
const { name: A = "name", value: F = "value" } = x || {};
|
|
4525
|
+
t.value = y.map((k) => ({ value: [k[A], k[F]], record: k }));
|
|
4517
4526
|
};
|
|
4518
|
-
ne(() => e.data, (
|
|
4519
|
-
(e.dataType === "static" ||
|
|
4527
|
+
ne(() => e.data, (y) => {
|
|
4528
|
+
(e.dataType === "static" || C(l) === "design") && d(y);
|
|
4520
4529
|
}, {
|
|
4521
4530
|
immediate: !0,
|
|
4522
4531
|
deep: !0
|
|
4523
4532
|
});
|
|
4524
|
-
const c = M(!1), h =
|
|
4525
|
-
var
|
|
4526
|
-
if (!(e.dataType !== "request" ||
|
|
4533
|
+
const c = M(!1), h = Ae(e), g = async () => {
|
|
4534
|
+
var y, x;
|
|
4535
|
+
if (!(e.dataType !== "request" || C(l) === "design")) {
|
|
4527
4536
|
c.value = !0;
|
|
4528
4537
|
try {
|
|
4529
4538
|
const A = await h();
|
|
4530
|
-
d((
|
|
4539
|
+
d((x = (y = A == null ? void 0 : A.data) == null ? void 0 : y.data) == null ? void 0 : x.rows, e.dataFieldNames);
|
|
4531
4540
|
} catch (A) {
|
|
4532
4541
|
console.error(A);
|
|
4533
4542
|
} finally {
|
|
4534
4543
|
c.value = !1;
|
|
4535
4544
|
}
|
|
4536
4545
|
}
|
|
4537
|
-
},
|
|
4538
|
-
const
|
|
4539
|
-
i(
|
|
4546
|
+
}, m = fe(e)("click", (y) => {
|
|
4547
|
+
const x = e.id, A = s(x);
|
|
4548
|
+
i(x, { ...A, RECORD: y == null ? void 0 : y.data });
|
|
4540
4549
|
});
|
|
4541
4550
|
he(e, {
|
|
4542
4551
|
refreshData: () => {
|
|
4543
4552
|
g();
|
|
4544
4553
|
},
|
|
4545
|
-
click:
|
|
4554
|
+
click: m
|
|
4546
4555
|
});
|
|
4547
4556
|
const { setRequest: v } = N(Se, {
|
|
4548
4557
|
// @ts-ignore
|
|
4549
4558
|
// eslint-disable-next-line no-void
|
|
4550
|
-
setRequest: ({ id:
|
|
4559
|
+
setRequest: ({ id: y, sortNum: x, requestFn: A }) => {
|
|
4551
4560
|
}
|
|
4552
4561
|
});
|
|
4553
4562
|
return v({
|
|
@@ -4557,7 +4566,7 @@ const mr = Q({
|
|
|
4557
4566
|
}), {
|
|
4558
4567
|
option: r,
|
|
4559
4568
|
style: n,
|
|
4560
|
-
click:
|
|
4569
|
+
click: m,
|
|
4561
4570
|
loading: c,
|
|
4562
4571
|
visible: o,
|
|
4563
4572
|
hideModal: a
|
|
@@ -4704,6 +4713,9 @@ const pr = /* @__PURE__ */ X(br, [["render", vr]]), Cr = oe(pr), mo = {
|
|
|
4704
4713
|
tooltipFormatter: "{marker} {a} {c}",
|
|
4705
4714
|
xAxisLabelInterval: 0,
|
|
4706
4715
|
xAxisSplitLineShow: !0,
|
|
4716
|
+
xAxisLabelRotate: 0,
|
|
4717
|
+
xAxisLabelOverflow: "none",
|
|
4718
|
+
xAxisLabelWidth: void 0,
|
|
4707
4719
|
xAxisSplitLineStyleColor: "#333",
|
|
4708
4720
|
xAxisLabelColor: "#333",
|
|
4709
4721
|
xAxisLineStyleColor: "#333",
|
|
@@ -4773,7 +4785,7 @@ const wr = Q({
|
|
|
4773
4785
|
components: {
|
|
4774
4786
|
Spin: tt,
|
|
4775
4787
|
Echarts: ze,
|
|
4776
|
-
AModal:
|
|
4788
|
+
AModal: xe
|
|
4777
4789
|
},
|
|
4778
4790
|
setup(e) {
|
|
4779
4791
|
const n = ie(e), t = M([]), o = M([]), a = M(!1), r = () => {
|
|
@@ -4812,7 +4824,7 @@ const wr = Q({
|
|
|
4812
4824
|
title: "说明信息",
|
|
4813
4825
|
icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
|
|
4814
4826
|
onclick() {
|
|
4815
|
-
|
|
4827
|
+
xe.info({
|
|
4816
4828
|
title: "说明信息",
|
|
4817
4829
|
content: e.toolboxInfoText
|
|
4818
4830
|
});
|
|
@@ -4840,18 +4852,18 @@ const wr = Q({
|
|
|
4840
4852
|
tooltip: {
|
|
4841
4853
|
trigger: "axis",
|
|
4842
4854
|
show: e.tooltipShow,
|
|
4843
|
-
formatter: (
|
|
4844
|
-
const p =
|
|
4845
|
-
let
|
|
4855
|
+
formatter: (f) => {
|
|
4856
|
+
const p = f.length;
|
|
4857
|
+
let T = "", R = e.tooltipFormatter;
|
|
4846
4858
|
R === "" && (R = "{marker} {a} {c}");
|
|
4847
4859
|
const w = e.seriesTypes;
|
|
4848
|
-
for (let
|
|
4849
|
-
const
|
|
4850
|
-
|
|
4860
|
+
for (let _ = 0; _ < p; _++) {
|
|
4861
|
+
const W = w[_], { tooltipFormatter: H } = W || {}, { marker: O, seriesName: P, name: z, value: V, data: K } = f[_] || {};
|
|
4862
|
+
_ === 0 && (T += `${z}<br/>`), T += se(
|
|
4851
4863
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4852
4864
|
H || R,
|
|
4853
4865
|
{
|
|
4854
|
-
marker:
|
|
4866
|
+
marker: O,
|
|
4855
4867
|
name: z,
|
|
4856
4868
|
value: V,
|
|
4857
4869
|
seriesName: P,
|
|
@@ -4864,9 +4876,9 @@ const wr = Q({
|
|
|
4864
4876
|
useNewline: !0,
|
|
4865
4877
|
useSpace: !0
|
|
4866
4878
|
}
|
|
4867
|
-
),
|
|
4879
|
+
), T += "<br/>";
|
|
4868
4880
|
}
|
|
4869
|
-
return
|
|
4881
|
+
return T;
|
|
4870
4882
|
},
|
|
4871
4883
|
textStyle: {
|
|
4872
4884
|
color: e.tooltipTextStyleColor
|
|
@@ -4875,7 +4887,7 @@ const wr = Q({
|
|
|
4875
4887
|
xAxis: {
|
|
4876
4888
|
minInterval: e.xAxisMinInterval,
|
|
4877
4889
|
type: "category",
|
|
4878
|
-
data:
|
|
4890
|
+
data: C(o),
|
|
4879
4891
|
splitLine: {
|
|
4880
4892
|
show: e.xAxisSplitLineShow,
|
|
4881
4893
|
lineStyle: {
|
|
@@ -4883,7 +4895,11 @@ const wr = Q({
|
|
|
4883
4895
|
}
|
|
4884
4896
|
},
|
|
4885
4897
|
axisLabel: {
|
|
4886
|
-
color: e.xAxisLabelColor
|
|
4898
|
+
color: e.xAxisLabelColor,
|
|
4899
|
+
interval: e.xAxisLabelInterval,
|
|
4900
|
+
rotate: e.xAxisLabelRotate,
|
|
4901
|
+
width: e.xAxisLabelWidth,
|
|
4902
|
+
overflow: e.xAxisLabelOverflow
|
|
4887
4903
|
},
|
|
4888
4904
|
axisLine: {
|
|
4889
4905
|
lineStyle: {
|
|
@@ -4894,23 +4910,23 @@ const wr = Q({
|
|
|
4894
4910
|
show: e.xAxisTickShow
|
|
4895
4911
|
}
|
|
4896
4912
|
},
|
|
4897
|
-
yAxis:
|
|
4898
|
-
series:
|
|
4913
|
+
yAxis: C(c),
|
|
4914
|
+
series: C(t)
|
|
4899
4915
|
})), { pageMode: i } = N(ce, {
|
|
4900
4916
|
pageMode: "normal"
|
|
4901
|
-
}), l = (
|
|
4902
|
-
let
|
|
4917
|
+
}), l = (f = [], p = !1) => {
|
|
4918
|
+
let T;
|
|
4903
4919
|
if (e.dataFieldConfigType === "key") {
|
|
4904
4920
|
const H = p ? e.keyTypeDataFieldNames : null;
|
|
4905
|
-
|
|
4921
|
+
T = Pe(f, H);
|
|
4906
4922
|
} else if (e.dataFieldConfigType === "value") {
|
|
4907
4923
|
const H = p ? e.valueTypeDataFieldNames : null;
|
|
4908
|
-
|
|
4924
|
+
T = Qe(f, H);
|
|
4909
4925
|
}
|
|
4910
|
-
o.value =
|
|
4911
|
-
const R =
|
|
4912
|
-
for (let H = 0; H <
|
|
4913
|
-
const
|
|
4926
|
+
o.value = T.dimensions;
|
|
4927
|
+
const R = T.dataset, w = [], _ = R.length, W = e.seriesTypes;
|
|
4928
|
+
for (let H = 0; H < _; H++) {
|
|
4929
|
+
const O = W[H], { type: P, axisIndex: z } = O || {};
|
|
4914
4930
|
let V = {
|
|
4915
4931
|
type: P,
|
|
4916
4932
|
yAxisIndex: z,
|
|
@@ -4932,29 +4948,29 @@ const wr = Q({
|
|
|
4932
4948
|
}), w.push(V);
|
|
4933
4949
|
}
|
|
4934
4950
|
t.value = w;
|
|
4935
|
-
}, d = (
|
|
4936
|
-
const w = Pe(
|
|
4951
|
+
}, d = (f = [], p, T = !1) => {
|
|
4952
|
+
const w = Pe(f, T ? p : null);
|
|
4937
4953
|
o.value = w.dimensions;
|
|
4938
|
-
const
|
|
4954
|
+
const _ = w.dataset, W = [], H = _.length, O = e.seriesTypes;
|
|
4939
4955
|
for (let P = 0; P < H; P++) {
|
|
4940
|
-
const z =
|
|
4941
|
-
|
|
4956
|
+
const z = O[P];
|
|
4957
|
+
W.push({
|
|
4942
4958
|
type: z == null ? void 0 : z.type,
|
|
4943
4959
|
yAxisIndex: z == null ? void 0 : z.axisIndex,
|
|
4944
|
-
...
|
|
4960
|
+
..._[P]
|
|
4945
4961
|
});
|
|
4946
4962
|
}
|
|
4947
|
-
t.value =
|
|
4963
|
+
t.value = W;
|
|
4948
4964
|
};
|
|
4949
|
-
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([
|
|
4950
|
-
(e.dataType === "static" ||
|
|
4965
|
+
ne(() => [e.data, e.seriesTypes, e.symbolSize, e.smooth, e.areaStyleOpacity, e.lineStyleWidth, e.barWidth], ([f]) => {
|
|
4966
|
+
(e.dataType === "static" || C(i) === "design") && l(f);
|
|
4951
4967
|
}, {
|
|
4952
4968
|
immediate: !0,
|
|
4953
4969
|
deep: !0
|
|
4954
4970
|
});
|
|
4955
4971
|
const c = q(() => {
|
|
4956
|
-
const
|
|
4957
|
-
return
|
|
4972
|
+
const f = e.yAxis;
|
|
4973
|
+
return f == null ? void 0 : f.map((p) => ({
|
|
4958
4974
|
type: "value",
|
|
4959
4975
|
minInterval: e.yAxisMinInterval,
|
|
4960
4976
|
splitLine: {
|
|
@@ -4965,8 +4981,8 @@ const wr = Q({
|
|
|
4965
4981
|
},
|
|
4966
4982
|
axisLabel: {
|
|
4967
4983
|
color: e.yAxisLabelColor,
|
|
4968
|
-
formatter(
|
|
4969
|
-
return $e(p.axisLabelFormatter,
|
|
4984
|
+
formatter(T) {
|
|
4985
|
+
return $e(p.axisLabelFormatter, T);
|
|
4970
4986
|
}
|
|
4971
4987
|
},
|
|
4972
4988
|
axisLine: {
|
|
@@ -4975,71 +4991,71 @@ const wr = Q({
|
|
|
4975
4991
|
}
|
|
4976
4992
|
}
|
|
4977
4993
|
}));
|
|
4978
|
-
}), h = M(!1), g =
|
|
4979
|
-
var
|
|
4980
|
-
if (!(e.dataType !== "request" ||
|
|
4994
|
+
}), h = M(!1), g = Ae(e), u = async () => {
|
|
4995
|
+
var f, p;
|
|
4996
|
+
if (!(e.dataType !== "request" || C(i) === "design"))
|
|
4981
4997
|
try {
|
|
4982
4998
|
h.value = !0;
|
|
4983
|
-
const
|
|
4984
|
-
l((p = (
|
|
4985
|
-
} catch (
|
|
4986
|
-
console.error(
|
|
4999
|
+
const T = await g();
|
|
5000
|
+
l((p = (f = T == null ? void 0 : T.data) == null ? void 0 : f.data) == null ? void 0 : p.rows, !0);
|
|
5001
|
+
} catch (T) {
|
|
5002
|
+
console.error(T);
|
|
4987
5003
|
} finally {
|
|
4988
5004
|
h.value = !1;
|
|
4989
5005
|
}
|
|
4990
|
-
},
|
|
4991
|
-
var
|
|
4992
|
-
if (!(e.dataType !== "indicator" ||
|
|
5006
|
+
}, m = Nt(e), b = async () => {
|
|
5007
|
+
var f, p, T, R, w;
|
|
5008
|
+
if (!(e.dataType !== "indicator" || C(i) === "design"))
|
|
4993
5009
|
try {
|
|
4994
5010
|
h.value = !0;
|
|
4995
|
-
const
|
|
4996
|
-
let
|
|
4997
|
-
((
|
|
4998
|
-
name:
|
|
4999
|
-
types:
|
|
5000
|
-
}), d((w = (R =
|
|
5001
|
-
} catch (
|
|
5002
|
-
console.error(
|
|
5011
|
+
const _ = await m();
|
|
5012
|
+
let W;
|
|
5013
|
+
((T = (p = (f = _ == null ? void 0 : _.data) == null ? void 0 : f.data) == null ? void 0 : p.columns) == null ? void 0 : T.length) > 0 && (W = {
|
|
5014
|
+
name: _.data.data.columns[0],
|
|
5015
|
+
types: _.data.data.columns.slice(1).map((H) => ({ label: H, value: H }))
|
|
5016
|
+
}), d((w = (R = _ == null ? void 0 : _.data) == null ? void 0 : R.data) == null ? void 0 : w.rows, W, !0);
|
|
5017
|
+
} catch (_) {
|
|
5018
|
+
console.error(_);
|
|
5003
5019
|
} finally {
|
|
5004
5020
|
h.value = !1;
|
|
5005
5021
|
}
|
|
5006
5022
|
}, v = () => {
|
|
5007
|
-
|
|
5008
|
-
},
|
|
5023
|
+
C(i) !== "design" && (b(), u());
|
|
5024
|
+
}, y = () => {
|
|
5009
5025
|
v();
|
|
5010
|
-
},
|
|
5026
|
+
}, x = fe(e), { getGlobalModel: A, setGlobalModel: F } = N(ue, {
|
|
5011
5027
|
// @ts-ignore
|
|
5012
5028
|
// eslint-disable-next-line no-void
|
|
5013
|
-
getGlobalModel: (
|
|
5029
|
+
getGlobalModel: (f) => {
|
|
5014
5030
|
},
|
|
5015
5031
|
// @ts-ignore
|
|
5016
5032
|
// eslint-disable-next-line no-void
|
|
5017
|
-
setGlobalModel: (
|
|
5033
|
+
setGlobalModel: (f, p) => {
|
|
5018
5034
|
}
|
|
5019
|
-
}),
|
|
5035
|
+
}), k = x("click", (f) => {
|
|
5020
5036
|
const p = A(e.id);
|
|
5021
|
-
|
|
5022
|
-
}), { setRequest:
|
|
5037
|
+
F(e.id, { ...p, RECORD: f == null ? void 0 : f.data });
|
|
5038
|
+
}), { setRequest: L } = N(Se, {
|
|
5023
5039
|
// @ts-ignore
|
|
5024
5040
|
// eslint-disable-next-line no-void
|
|
5025
|
-
setRequest: ({ id:
|
|
5041
|
+
setRequest: ({ id: f, sortNum: p, requestFn: T }) => {
|
|
5026
5042
|
}
|
|
5027
5043
|
});
|
|
5028
|
-
return
|
|
5044
|
+
return L({
|
|
5029
5045
|
id: e.id,
|
|
5030
5046
|
requestFn: v,
|
|
5031
5047
|
sortNum: e.requestSort
|
|
5032
5048
|
}), he(e, {
|
|
5033
5049
|
resetRecord: () => {
|
|
5034
|
-
const
|
|
5035
|
-
|
|
5050
|
+
const f = e.id, p = A(f);
|
|
5051
|
+
F(f, { ...p, RECORD: "" });
|
|
5036
5052
|
},
|
|
5037
|
-
refreshData:
|
|
5038
|
-
click:
|
|
5053
|
+
refreshData: y,
|
|
5054
|
+
click: k
|
|
5039
5055
|
}), {
|
|
5040
5056
|
style: n,
|
|
5041
5057
|
option: s,
|
|
5042
|
-
click:
|
|
5058
|
+
click: k,
|
|
5043
5059
|
loading: h,
|
|
5044
5060
|
visible: a,
|
|
5045
5061
|
hideModal: r
|
|
@@ -5086,7 +5102,7 @@ function kr(e, n, t, o, a, r) {
|
|
|
5086
5102
|
}, 8, ["visible", "onCancel"])
|
|
5087
5103
|
], 4);
|
|
5088
5104
|
}
|
|
5089
|
-
const
|
|
5105
|
+
const xr = /* @__PURE__ */ X(wr, [["render", kr]]), Ar = oe(xr), ho = {
|
|
5090
5106
|
...re,
|
|
5091
5107
|
name: "边框",
|
|
5092
5108
|
keyName: "边框",
|
|
@@ -5107,7 +5123,7 @@ const Ar = /* @__PURE__ */ X(wr, [["render", kr]]), xr = oe(Ar), ho = {
|
|
|
5107
5123
|
useBorderModify: !1,
|
|
5108
5124
|
textShadow: "",
|
|
5109
5125
|
data: {}
|
|
5110
|
-
}, yo = ae(ho), Tr = ["click"],
|
|
5126
|
+
}, yo = ae(ho), Tr = ["click"], Lr = Q({
|
|
5111
5127
|
name: "EcanBorder",
|
|
5112
5128
|
props: {
|
|
5113
5129
|
...yo
|
|
@@ -5149,18 +5165,18 @@ const Ar = /* @__PURE__ */ X(wr, [["render", kr]]), xr = oe(Ar), ho = {
|
|
|
5149
5165
|
theme: t
|
|
5150
5166
|
};
|
|
5151
5167
|
}
|
|
5152
|
-
}),
|
|
5153
|
-
const
|
|
5168
|
+
}), _r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=", Ir = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==";
|
|
5169
|
+
const Le = (e) => (dn("data-v-1550b11b"), e = e(), un(), e), Mr = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "top-left border-item" }, null, -1)), Er = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "top-right border-item" }, null, -1)), Or = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "bottom-left border-item" }, null, -1)), Fr = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "bottom-right border-item" }, null, -1)), Rr = { class: "title-item-wrapper" }, Dr = { class: "title-item" }, $r = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("img", {
|
|
5154
5170
|
class: "title-decoration-left",
|
|
5155
|
-
src:
|
|
5156
|
-
}, null, -1)), zr = { class: "title" }, Nr = /* @__PURE__ */
|
|
5171
|
+
src: _r
|
|
5172
|
+
}, null, -1)), zr = { class: "title" }, Nr = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("img", {
|
|
5157
5173
|
class: "title-decoration-right",
|
|
5158
5174
|
src: Ir
|
|
5159
|
-
}, null, -1)), Pr = /* @__PURE__ */
|
|
5175
|
+
}, null, -1)), Pr = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "top-left border-item" }, null, -1)), Br = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "top-right border-item" }, null, -1)), Gr = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "bottom-left border-item" }, null, -1)), Ur = /* @__PURE__ */ Le(() => /* @__PURE__ */ ee("div", { class: "bottom-right border-item" }, null, -1)), qr = {
|
|
5160
5176
|
key: 2,
|
|
5161
5177
|
class: "left-title"
|
|
5162
|
-
},
|
|
5163
|
-
function
|
|
5178
|
+
}, Wr = { class: "title" };
|
|
5179
|
+
function jr(e, n, t, o, a, r) {
|
|
5164
5180
|
return E(), $("div", {
|
|
5165
5181
|
class: "ecan-border",
|
|
5166
5182
|
style: G(e.style),
|
|
@@ -5174,8 +5190,8 @@ function Wr(e, n, t, o, a, r) {
|
|
|
5174
5190
|
e.useBorderModify ? (E(), $(Ie, { key: 0 }, [
|
|
5175
5191
|
Mr,
|
|
5176
5192
|
Er,
|
|
5177
|
-
|
|
5178
|
-
|
|
5193
|
+
Or,
|
|
5194
|
+
Fr
|
|
5179
5195
|
], 64)) : ve("", !0)
|
|
5180
5196
|
], 4)) : ve("", !0),
|
|
5181
5197
|
e.mode === "top-title" ? (E(), $("div", {
|
|
@@ -5196,13 +5212,13 @@ function Wr(e, n, t, o, a, r) {
|
|
|
5196
5212
|
Ur
|
|
5197
5213
|
], 4)) : ve("", !0),
|
|
5198
5214
|
e.mode === "left-title" ? (E(), $("div", qr, [
|
|
5199
|
-
ee("div",
|
|
5215
|
+
ee("div", Wr, [
|
|
5200
5216
|
ee("span", null, ye(e.title), 1)
|
|
5201
5217
|
])
|
|
5202
5218
|
])) : ve("", !0)
|
|
5203
5219
|
], 4);
|
|
5204
5220
|
}
|
|
5205
|
-
const Vr = /* @__PURE__ */ X(
|
|
5221
|
+
const Vr = /* @__PURE__ */ X(Lr, [["render", jr], ["__scopeId", "data-v-1550b11b"]]), Hr = oe(Vr), bo = {
|
|
5206
5222
|
id: "",
|
|
5207
5223
|
type: "ecanModal",
|
|
5208
5224
|
title: "",
|
|
@@ -5223,7 +5239,7 @@ const Vr = /* @__PURE__ */ X(_r, [["render", Wr], ["__scopeId", "data-v-1550b11b
|
|
|
5223
5239
|
}, vo = ae(bo), Zr = ["showModal"], Jr = Q({
|
|
5224
5240
|
name: "EcanModal",
|
|
5225
5241
|
components: {
|
|
5226
|
-
AModal:
|
|
5242
|
+
AModal: xe
|
|
5227
5243
|
},
|
|
5228
5244
|
props: {
|
|
5229
5245
|
...vo
|
|
@@ -5239,89 +5255,89 @@ const Vr = /* @__PURE__ */ X(_r, [["render", Wr], ["__scopeId", "data-v-1550b11b
|
|
|
5239
5255
|
bottom: "bottom"
|
|
5240
5256
|
}[z]
|
|
5241
5257
|
};
|
|
5242
|
-
}), o = e.width, a = e.height, r = e.originalWidth, s = e.originalHeight, i = M("80%"), l = M(0), d = M(), c = M(0), h = M({}), g = ie(e), u = M({}),
|
|
5258
|
+
}), o = e.width, a = e.height, r = e.originalWidth, s = e.originalHeight, i = M("80%"), l = M(0), d = M(), c = M(0), h = M({}), g = ie(e), u = M({}), m = M(!1), b = M();
|
|
5243
5259
|
let v;
|
|
5244
|
-
const
|
|
5260
|
+
const y = () => {
|
|
5245
5261
|
d.value = parseFloat(o) / parseFloat(r);
|
|
5246
5262
|
const z = parseFloat(a) / parseFloat(s), V = document.body.offsetWidth, K = document.body.offsetHeight;
|
|
5247
|
-
l.value = V *
|
|
5248
|
-
width: `${
|
|
5249
|
-
height: `${
|
|
5263
|
+
l.value = V * C(d), c.value = K * z, i.value = `${C(d) * 100}%`, h.value = {
|
|
5264
|
+
width: `${C(l)}px`,
|
|
5265
|
+
height: `${C(c)}px`
|
|
5250
5266
|
}, u.value = {
|
|
5251
|
-
...
|
|
5267
|
+
...C(g),
|
|
5252
5268
|
backgroundImage: De(e.backgroundImage, !0),
|
|
5253
|
-
transform: `scale(${
|
|
5269
|
+
transform: `scale(${C(l) / parseFloat(o)},${C(c) / parseFloat(a)})`
|
|
5254
5270
|
};
|
|
5255
|
-
},
|
|
5256
|
-
|
|
5271
|
+
}, x = Ot(() => {
|
|
5272
|
+
y();
|
|
5257
5273
|
}, 100), A = () => {
|
|
5258
5274
|
const z = window.MutationObserver;
|
|
5259
|
-
v = new z(
|
|
5275
|
+
v = new z(x), v.observe(document.body, {
|
|
5260
5276
|
attributes: !0,
|
|
5261
5277
|
attributeFilter: ["style"],
|
|
5262
5278
|
attributeOldValue: !0
|
|
5263
5279
|
});
|
|
5264
|
-
},
|
|
5280
|
+
}, F = () => {
|
|
5265
5281
|
v && (v.disconnect(), v.takeRecords(), v = null);
|
|
5266
|
-
},
|
|
5282
|
+
}, k = M(!1), { touchRequest: L } = N(Se, {
|
|
5267
5283
|
// @ts-ignore
|
|
5268
5284
|
// eslint-disable-next-line no-void
|
|
5269
5285
|
touchRequest: () => {
|
|
5270
5286
|
}
|
|
5271
|
-
}),
|
|
5272
|
-
|
|
5273
|
-
},
|
|
5274
|
-
|
|
5287
|
+
}), S = () => {
|
|
5288
|
+
k.value = !0;
|
|
5289
|
+
}, f = () => {
|
|
5290
|
+
k.value = !1;
|
|
5275
5291
|
}, p = () => {
|
|
5276
|
-
|
|
5277
|
-
},
|
|
5278
|
-
|
|
5279
|
-
}, { setModalModel: R, pushUseModalIds: w, popUseModalIds:
|
|
5292
|
+
f();
|
|
5293
|
+
}, T = () => {
|
|
5294
|
+
f();
|
|
5295
|
+
}, { setModalModel: R, pushUseModalIds: w, popUseModalIds: _ } = N(Mn, {
|
|
5280
5296
|
pushUseModalIds: (z) => {
|
|
5281
5297
|
},
|
|
5282
5298
|
popUseModalIds: () => {
|
|
5283
5299
|
},
|
|
5284
5300
|
setModalModel: (z, V) => {
|
|
5285
5301
|
}
|
|
5286
|
-
}),
|
|
5302
|
+
}), W = () => {
|
|
5287
5303
|
const z = e.id;
|
|
5288
5304
|
let V = [];
|
|
5289
5305
|
const K = e.componentList;
|
|
5290
5306
|
Array.isArray(K) && (V = K.map((de) => de.id), R(z, [...new Set(V)]));
|
|
5291
5307
|
};
|
|
5292
|
-
ne(() =>
|
|
5293
|
-
z ? (
|
|
5294
|
-
|
|
5295
|
-
}),
|
|
5308
|
+
ne(() => k.value, async (z) => {
|
|
5309
|
+
z ? (m.value = !1, w(e.id), W(), await ft(() => {
|
|
5310
|
+
y(), window.addEventListener("resize", x), A(), m.value = !0;
|
|
5311
|
+
}), L()) : (_(), window.removeEventListener("resize", x), F());
|
|
5296
5312
|
});
|
|
5297
|
-
const H = q(() =>
|
|
5313
|
+
const H = q(() => C(d) >= 1), O = q(() => e.fullModal), P = q(() => {
|
|
5298
5314
|
let z = "ecan-modal";
|
|
5299
|
-
return
|
|
5315
|
+
return C(H) && (z += " ecan-full-width-modal"), C(O) && (z += " ecan-full-modal"), z;
|
|
5300
5316
|
});
|
|
5301
5317
|
return he(e, {
|
|
5302
|
-
showModal:
|
|
5318
|
+
showModal: S
|
|
5303
5319
|
}), {
|
|
5304
|
-
modalRef:
|
|
5320
|
+
modalRef: b,
|
|
5305
5321
|
containStyle: h,
|
|
5306
5322
|
contentStyle: u,
|
|
5307
5323
|
getContainer: n,
|
|
5308
5324
|
modalStyle: t,
|
|
5309
5325
|
modalWith: i,
|
|
5310
|
-
isFullModal:
|
|
5326
|
+
isFullModal: O,
|
|
5311
5327
|
style: g,
|
|
5312
|
-
visible:
|
|
5313
|
-
showModal:
|
|
5328
|
+
visible: k,
|
|
5329
|
+
showModal: S,
|
|
5314
5330
|
onOk: p,
|
|
5315
|
-
onCancel:
|
|
5331
|
+
onCancel: T,
|
|
5316
5332
|
isFullWidth: H,
|
|
5317
5333
|
wrapClassName: P,
|
|
5318
|
-
ready:
|
|
5334
|
+
ready: m
|
|
5319
5335
|
};
|
|
5320
5336
|
}
|
|
5321
5337
|
});
|
|
5322
5338
|
function Yr(e, n, t, o, a, r) {
|
|
5323
5339
|
const s = Z("a-modal");
|
|
5324
|
-
return E(),
|
|
5340
|
+
return E(), Fe(s, {
|
|
5325
5341
|
getContainer: e.getContainer,
|
|
5326
5342
|
wrapClassName: e.wrapClassName,
|
|
5327
5343
|
centered: "",
|
|
@@ -5333,7 +5349,7 @@ function Yr(e, n, t, o, a, r) {
|
|
|
5333
5349
|
onOk: e.onOk,
|
|
5334
5350
|
onCancel: e.onCancel,
|
|
5335
5351
|
ref: "modalRef"
|
|
5336
|
-
},
|
|
5352
|
+
}, Fo({
|
|
5337
5353
|
default: Y(() => [
|
|
5338
5354
|
ee("div", {
|
|
5339
5355
|
class: "contain",
|
|
@@ -5345,7 +5361,7 @@ function Yr(e, n, t, o, a, r) {
|
|
|
5345
5361
|
class: "content",
|
|
5346
5362
|
style: G(e.contentStyle)
|
|
5347
5363
|
}, [
|
|
5348
|
-
(E(!0), $(Ie, null, Ee(e.componentList, (i, l) => (E(),
|
|
5364
|
+
(E(!0), $(Ie, null, Ee(e.componentList, (i, l) => (E(), Fe(Ro(i.type), Do({
|
|
5349
5365
|
key: i.id + l
|
|
5350
5366
|
}, i), null, 16))), 128))
|
|
5351
5367
|
], 4)) : ve("", !0)
|
|
@@ -5420,14 +5436,14 @@ const Qr = /* @__PURE__ */ X(Jr, [["render", Yr], ["__scopeId", "data-v-2db14456
|
|
|
5420
5436
|
});
|
|
5421
5437
|
let a = null;
|
|
5422
5438
|
const r = () => {
|
|
5423
|
-
const u = Array.isArray(
|
|
5439
|
+
const u = Array.isArray(C(s)) ? C(s).length - 1 : 0;
|
|
5424
5440
|
e.autoSwitch && u > 0 && (a = setInterval(() => {
|
|
5425
|
-
const
|
|
5426
|
-
|
|
5441
|
+
const m = C(t) + 1;
|
|
5442
|
+
m <= u ? t.value = m : t.value = 0, i.value = C(s)[C(t)], h();
|
|
5427
5443
|
}, e.autoSwitchInterval * 1e3));
|
|
5428
5444
|
};
|
|
5429
5445
|
Ne(() => {
|
|
5430
|
-
|
|
5446
|
+
C(o) !== "design" && r();
|
|
5431
5447
|
}), Tt(() => {
|
|
5432
5448
|
clearInterval(a);
|
|
5433
5449
|
});
|
|
@@ -5441,7 +5457,7 @@ const Qr = /* @__PURE__ */ X(Jr, [["render", Yr], ["__scopeId", "data-v-2db14456
|
|
|
5441
5457
|
const l = (u) => t.value === u, d = fe(e), { setGlobalModel: c } = N(ue, {
|
|
5442
5458
|
// @ts-ignore
|
|
5443
5459
|
// eslint-disable-next-line no-void
|
|
5444
|
-
setGlobalModel: (u,
|
|
5460
|
+
setGlobalModel: (u, m) => {
|
|
5445
5461
|
}
|
|
5446
5462
|
});
|
|
5447
5463
|
c(e.id, {
|
|
@@ -5452,8 +5468,8 @@ const Qr = /* @__PURE__ */ X(Jr, [["render", Yr], ["__scopeId", "data-v-2db14456
|
|
|
5452
5468
|
// eslint-disable-next-line no-void
|
|
5453
5469
|
emitRefreshPage: () => {
|
|
5454
5470
|
}
|
|
5455
|
-
}), g = d("tabChange", (u,
|
|
5456
|
-
|
|
5471
|
+
}), g = d("tabChange", (u, m) => {
|
|
5472
|
+
m !== C(t) && (i.value = u, t.value = m, h());
|
|
5457
5473
|
});
|
|
5458
5474
|
return he(e, {
|
|
5459
5475
|
tabChange: g
|
|
@@ -5531,7 +5547,7 @@ const os = /* @__PURE__ */ X(es, [["render", ns], ["__scopeId", "data-v-a2045b93
|
|
|
5531
5547
|
onClick: () => {
|
|
5532
5548
|
if (!e.linkPage && !e.href)
|
|
5533
5549
|
return;
|
|
5534
|
-
const r = e.linkPage || "", s =
|
|
5550
|
+
const r = e.linkPage || "", s = On(C(o), r), i = e.href;
|
|
5535
5551
|
let l = i || s;
|
|
5536
5552
|
l = se(l);
|
|
5537
5553
|
const d = e.target;
|
|
@@ -5565,10 +5581,10 @@ const ss = /* @__PURE__ */ X(ls, [["render", rs], ["__scopeId", "data-v-ef7a7bee
|
|
|
5565
5581
|
height: "300px",
|
|
5566
5582
|
link: "",
|
|
5567
5583
|
linkType: "web"
|
|
5568
|
-
},
|
|
5584
|
+
}, xo = ae(ko), ds = Q({
|
|
5569
5585
|
name: "EcanIframe",
|
|
5570
5586
|
props: {
|
|
5571
|
-
...
|
|
5587
|
+
...xo
|
|
5572
5588
|
},
|
|
5573
5589
|
setup(e) {
|
|
5574
5590
|
const n = ie(e), { contextRequestUrl: t } = N(ce, {
|
|
@@ -5576,7 +5592,7 @@ const ss = /* @__PURE__ */ X(ls, [["render", rs], ["__scopeId", "data-v-ef7a7bee
|
|
|
5576
5592
|
}), o = q(() => {
|
|
5577
5593
|
let a = se(e.link);
|
|
5578
5594
|
if (e.linkType === "erd" && a != null) {
|
|
5579
|
-
let r =
|
|
5595
|
+
let r = C(t);
|
|
5580
5596
|
r[r.length - 1] === "/" ? r += "erdReport" : r += "/erdReport", a = `${Tl || r}?_t=0&uid=${a}`;
|
|
5581
5597
|
}
|
|
5582
5598
|
return a;
|
|
@@ -5599,7 +5615,7 @@ function fs(e, n, t, o, a, r) {
|
|
|
5599
5615
|
style: G(e.style)
|
|
5600
5616
|
}, " 请填写网页链接 ", 4));
|
|
5601
5617
|
}
|
|
5602
|
-
const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c"]]), gs = oe(ms),
|
|
5618
|
+
const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c"]]), gs = oe(ms), Ao = {
|
|
5603
5619
|
...re,
|
|
5604
5620
|
zIndex: 2,
|
|
5605
5621
|
name: "表格",
|
|
@@ -5668,7 +5684,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5668
5684
|
layer: "1"
|
|
5669
5685
|
// 图类型, 后台接口
|
|
5670
5686
|
}
|
|
5671
|
-
}, To = ae(
|
|
5687
|
+
}, To = ae(Ao), hs = ["click", "refreshData", "resetRecord"], ys = Q({
|
|
5672
5688
|
name: "EcanTable",
|
|
5673
5689
|
components: {
|
|
5674
5690
|
Skeleton: gt,
|
|
@@ -5703,32 +5719,32 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5703
5719
|
default:
|
|
5704
5720
|
return 55;
|
|
5705
5721
|
}
|
|
5706
|
-
}), r = q(() => e.scrollX), s = q(() => parseFloat(e.height) -
|
|
5722
|
+
}), r = q(() => e.scrollX), s = q(() => parseFloat(e.height) - C(a)), i = M([]), l = M([]), d = M([]), c = M([]), h = M(0), g = M(1), u = q(() => e.paginationPageSize), m = $o([]), b = (I = []) => {
|
|
5707
5723
|
if (Array.isArray(I) && I.length > 0) {
|
|
5708
|
-
const D = I.length,
|
|
5724
|
+
const D = I.length, j = e.columnsFixedNum;
|
|
5709
5725
|
for (let J = 0; J < D; J++) {
|
|
5710
5726
|
const B = I[J];
|
|
5711
|
-
J <
|
|
5727
|
+
J < j ? B.fixed = "left" : B.fixed = !1;
|
|
5712
5728
|
const {
|
|
5713
5729
|
cellAlign: te = "center",
|
|
5714
5730
|
cellColor: le,
|
|
5715
5731
|
dataIndex: me,
|
|
5716
5732
|
title: be,
|
|
5717
5733
|
tableFilter: ge,
|
|
5718
|
-
headerCellAlign:
|
|
5734
|
+
headerCellAlign: We,
|
|
5719
5735
|
headerCellColor: ot
|
|
5720
5736
|
} = B;
|
|
5721
|
-
ge && (
|
|
5737
|
+
ge && (m.push(me), B.filterOptionsInputValue = "", B.filterCheckboxGroupValue = [], B.customFilterDropdown = !0, B.onFilter = (je, yt) => yt[me].toString().toLowerCase().includes(je.toLowerCase())), B.customHeaderCell = () => ({
|
|
5722
5738
|
style: {
|
|
5723
5739
|
display: "table-cell",
|
|
5724
5740
|
verticalAlign: "middle",
|
|
5725
5741
|
fontSize: e.headerFontSize,
|
|
5726
5742
|
fontWeight: e.headerFontWeight,
|
|
5727
|
-
textAlign:
|
|
5743
|
+
textAlign: We || "center",
|
|
5728
5744
|
color: ot,
|
|
5729
5745
|
borderBottomColor: e.borderColor
|
|
5730
5746
|
}
|
|
5731
|
-
}), B.customCell = (
|
|
5747
|
+
}), B.customCell = (je, yt) => ({
|
|
5732
5748
|
style: {
|
|
5733
5749
|
textAlign: te,
|
|
5734
5750
|
color: le,
|
|
@@ -5736,17 +5752,17 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5736
5752
|
borderBottomColor: e.borderColor
|
|
5737
5753
|
},
|
|
5738
5754
|
class: {
|
|
5739
|
-
highlight:
|
|
5755
|
+
highlight: C(K) === yt && e.clickHighlight
|
|
5740
5756
|
},
|
|
5741
|
-
onClick:
|
|
5757
|
+
onClick: _("click", () => {
|
|
5742
5758
|
const Pt = e.id, Eo = H(Pt);
|
|
5743
|
-
|
|
5759
|
+
je = {
|
|
5744
5760
|
dataIndex: me,
|
|
5745
5761
|
title: be,
|
|
5746
|
-
...
|
|
5747
|
-
},
|
|
5762
|
+
...je
|
|
5763
|
+
}, O(Pt, { ...Eo, RECORD: je });
|
|
5748
5764
|
})
|
|
5749
|
-
}), Array.isArray(B.children) &&
|
|
5765
|
+
}), Array.isArray(B.children) && b(B.children);
|
|
5750
5766
|
}
|
|
5751
5767
|
}
|
|
5752
5768
|
}, v = (I = []) => (e.isUseSeq && I.unshift({
|
|
@@ -5757,7 +5773,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5757
5773
|
title: "操作",
|
|
5758
5774
|
dataIndex: "ACTION",
|
|
5759
5775
|
width: e.actionColumnWidth
|
|
5760
|
-
}),
|
|
5776
|
+
}), b(I), I);
|
|
5761
5777
|
ne(() => [
|
|
5762
5778
|
e.columns,
|
|
5763
5779
|
e.isUseSeq,
|
|
@@ -5776,18 +5792,18 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5776
5792
|
}, {
|
|
5777
5793
|
immediate: !0
|
|
5778
5794
|
});
|
|
5779
|
-
const
|
|
5795
|
+
const y = M({}), x = (I) => {
|
|
5780
5796
|
if (Array.isArray(I)) {
|
|
5781
|
-
const D = I.length,
|
|
5797
|
+
const D = I.length, j = m, J = j.length, B = {};
|
|
5782
5798
|
for (let le = 0; le < D; le++) {
|
|
5783
5799
|
const me = I[le];
|
|
5784
5800
|
for (let be = 0; be < J; be++) {
|
|
5785
|
-
const ge =
|
|
5801
|
+
const ge = j[be];
|
|
5786
5802
|
if (B[ge])
|
|
5787
5803
|
B[ge].add(me[ge]);
|
|
5788
5804
|
else {
|
|
5789
|
-
const
|
|
5790
|
-
|
|
5805
|
+
const We = /* @__PURE__ */ new Set();
|
|
5806
|
+
We.add(me[ge]), B[ge] = We;
|
|
5791
5807
|
}
|
|
5792
5808
|
}
|
|
5793
5809
|
}
|
|
@@ -5797,22 +5813,22 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5797
5813
|
const me = B[le], be = Array.from(me);
|
|
5798
5814
|
te[le] = be.map((ge) => ({ label: ge, value: ge }));
|
|
5799
5815
|
}
|
|
5800
|
-
|
|
5816
|
+
y.value = te;
|
|
5801
5817
|
}
|
|
5802
5818
|
};
|
|
5803
5819
|
ne(() => [e.isReverse, i.value, l.value], () => {
|
|
5804
|
-
const I =
|
|
5805
|
-
if (
|
|
5806
|
-
const { columns:
|
|
5807
|
-
d.value =
|
|
5820
|
+
const I = C(i), D = C(l);
|
|
5821
|
+
if (x(D), e.isReverse) {
|
|
5822
|
+
const { columns: j, dataSource: J } = A(vt(I), vt(D));
|
|
5823
|
+
d.value = j, c.value = J;
|
|
5808
5824
|
} else
|
|
5809
5825
|
d.value = I, c.value = D;
|
|
5810
5826
|
}, {
|
|
5811
5827
|
immediate: !0
|
|
5812
5828
|
});
|
|
5813
5829
|
const A = (I, D) => {
|
|
5814
|
-
const
|
|
5815
|
-
title:
|
|
5830
|
+
const j = I[0], J = [{
|
|
5831
|
+
title: j.title,
|
|
5816
5832
|
dataIndex: "col0",
|
|
5817
5833
|
key: "col0",
|
|
5818
5834
|
align: "center"
|
|
@@ -5820,7 +5836,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5820
5836
|
for (let te = 0; te < D.length; te++) {
|
|
5821
5837
|
const le = D[te], me = "col" + (te + 1);
|
|
5822
5838
|
J.push({
|
|
5823
|
-
title: le[
|
|
5839
|
+
title: le[j.dataIndex],
|
|
5824
5840
|
dataIndex: me,
|
|
5825
5841
|
key: me,
|
|
5826
5842
|
align: "center"
|
|
@@ -5839,31 +5855,31 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5839
5855
|
columns: J,
|
|
5840
5856
|
dataSource: B
|
|
5841
5857
|
};
|
|
5842
|
-
},
|
|
5858
|
+
}, F = M(""), k = Ae(e), L = M(!1), S = async (I = !0) => {
|
|
5843
5859
|
var D;
|
|
5844
5860
|
try {
|
|
5845
|
-
I && (
|
|
5846
|
-
let
|
|
5847
|
-
|
|
5848
|
-
pageNum:
|
|
5849
|
-
pageSize:
|
|
5861
|
+
I && (L.value = !0);
|
|
5862
|
+
let j = {};
|
|
5863
|
+
C(F) && (j.orderCondition = C(F)), e.paginationShow && (j = {
|
|
5864
|
+
pageNum: C(g),
|
|
5865
|
+
pageSize: C(u),
|
|
5850
5866
|
layer: "1",
|
|
5851
|
-
...
|
|
5867
|
+
...j
|
|
5852
5868
|
});
|
|
5853
|
-
const J = await
|
|
5854
|
-
h.value = te, Array.isArray(B) && (l.value =
|
|
5855
|
-
} catch (
|
|
5856
|
-
console.error(
|
|
5869
|
+
const J = await k(j), { rows: B = [], total: te = 0 } = ((D = J == null ? void 0 : J.data) == null ? void 0 : D.data) || {};
|
|
5870
|
+
h.value = te, Array.isArray(B) && (l.value = C(l).concat(B));
|
|
5871
|
+
} catch (j) {
|
|
5872
|
+
console.error(j);
|
|
5857
5873
|
} finally {
|
|
5858
|
-
|
|
5874
|
+
L.value = !1;
|
|
5859
5875
|
}
|
|
5860
|
-
},
|
|
5861
|
-
if (g.value = I,
|
|
5862
|
-
const { field: J, order: B } =
|
|
5876
|
+
}, f = ({ current: I }, D, j) => {
|
|
5877
|
+
if (g.value = I, j && Object.keys(j).length > 0) {
|
|
5878
|
+
const { field: J, order: B } = j, le = {
|
|
5863
5879
|
ascend: "asc",
|
|
5864
5880
|
descend: "desc"
|
|
5865
5881
|
}[B];
|
|
5866
|
-
J != null && le != null && (
|
|
5882
|
+
J != null && le != null && (F.value = J + " " + le, g.value = 1);
|
|
5867
5883
|
}
|
|
5868
5884
|
Me(!1);
|
|
5869
5885
|
}, p = q(() => {
|
|
@@ -5871,29 +5887,29 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5871
5887
|
return e.paginationShow && {
|
|
5872
5888
|
simple: I,
|
|
5873
5889
|
position: D,
|
|
5874
|
-
total:
|
|
5875
|
-
current:
|
|
5876
|
-
pageSize:
|
|
5890
|
+
total: C(h),
|
|
5891
|
+
current: C(g),
|
|
5892
|
+
pageSize: C(u),
|
|
5877
5893
|
showSizeChanger: !1
|
|
5878
5894
|
};
|
|
5879
|
-
}),
|
|
5895
|
+
}), T = (I) => +I == 1 ? "是" : +I == 0 ? "否" : I, R = (I, D) => D == null || D === "" ? I : {
|
|
5880
5896
|
money: zt,
|
|
5881
5897
|
percentage: dt,
|
|
5882
5898
|
contrast: dt,
|
|
5883
|
-
boolean:
|
|
5899
|
+
boolean: T
|
|
5884
5900
|
}[D](I) || "", w = (I, D) => {
|
|
5885
|
-
const
|
|
5901
|
+
const j = parseFloat(I + "");
|
|
5886
5902
|
if (D !== "contrast")
|
|
5887
5903
|
return "";
|
|
5888
5904
|
switch (!0) {
|
|
5889
|
-
case
|
|
5905
|
+
case j >= 0:
|
|
5890
5906
|
return "goUp";
|
|
5891
|
-
case
|
|
5907
|
+
case j < 0:
|
|
5892
5908
|
return "goDown";
|
|
5893
5909
|
}
|
|
5894
|
-
},
|
|
5910
|
+
}, _ = fe(e), { pageMode: W } = N(ce, {
|
|
5895
5911
|
pageMode: "normal"
|
|
5896
|
-
}), { getGlobalModel: H, setGlobalModel:
|
|
5912
|
+
}), { getGlobalModel: H, setGlobalModel: O } = N(ue, {
|
|
5897
5913
|
// @ts-ignore
|
|
5898
5914
|
// eslint-disable-next-line no-void
|
|
5899
5915
|
getGlobalModel: (I) => {
|
|
@@ -5903,29 +5919,29 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5903
5919
|
setGlobalModel: (I, D) => {
|
|
5904
5920
|
}
|
|
5905
5921
|
}), P = (I = [], D = []) => {
|
|
5906
|
-
const
|
|
5907
|
-
i.value = v(
|
|
5908
|
-
}, z =
|
|
5909
|
-
var I, D,
|
|
5922
|
+
const j = I.map((J) => ({ title: J, dataIndex: J, key: J }));
|
|
5923
|
+
i.value = v(j), l.value = D;
|
|
5924
|
+
}, z = Fn(e), V = async () => {
|
|
5925
|
+
var I, D, j, J;
|
|
5910
5926
|
try {
|
|
5911
|
-
|
|
5927
|
+
L.value = !0;
|
|
5912
5928
|
const B = await z();
|
|
5913
|
-
P((D = (I = B == null ? void 0 : B.data) == null ? void 0 : I.data) == null ? void 0 : D.columns, (J = (
|
|
5929
|
+
P((D = (I = B == null ? void 0 : B.data) == null ? void 0 : I.data) == null ? void 0 : D.columns, (J = (j = B == null ? void 0 : B.data) == null ? void 0 : j.data) == null ? void 0 : J.rows);
|
|
5914
5930
|
} catch (B) {
|
|
5915
5931
|
console.error(B);
|
|
5916
5932
|
} finally {
|
|
5917
|
-
|
|
5933
|
+
L.value = !1;
|
|
5918
5934
|
}
|
|
5919
5935
|
}, K = M(-1), de = (I, D) => ({
|
|
5920
|
-
onClick:
|
|
5921
|
-
const
|
|
5922
|
-
|
|
5936
|
+
onClick: _("rowClick", () => {
|
|
5937
|
+
const j = e.id, J = H(j);
|
|
5938
|
+
O(j, { ...J, RECORD: I }), K.value = D;
|
|
5923
5939
|
})
|
|
5924
5940
|
}), Me = (I = !0) => {
|
|
5925
|
-
if (
|
|
5941
|
+
if (C(W) !== "design")
|
|
5926
5942
|
switch (e.dataType) {
|
|
5927
5943
|
case "request":
|
|
5928
|
-
|
|
5944
|
+
S(I);
|
|
5929
5945
|
break;
|
|
5930
5946
|
case "indicator":
|
|
5931
5947
|
V();
|
|
@@ -5935,13 +5951,13 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5935
5951
|
he(e, {
|
|
5936
5952
|
resetRecord: () => {
|
|
5937
5953
|
const I = e.id, D = H(I);
|
|
5938
|
-
|
|
5954
|
+
O(I, { ...D, RECORD: "" });
|
|
5939
5955
|
},
|
|
5940
5956
|
refreshData: Me
|
|
5941
5957
|
});
|
|
5942
5958
|
const Io = q(() => {
|
|
5943
|
-
const I =
|
|
5944
|
-
let
|
|
5959
|
+
const I = C(d), D = [];
|
|
5960
|
+
let j = 0;
|
|
5945
5961
|
for (let B = 0; B < I.length; B++) {
|
|
5946
5962
|
const te = I[B], { isCalcTotal: le } = te;
|
|
5947
5963
|
e.isUseSeq && B === 0 ? D.push({
|
|
@@ -5951,16 +5967,16 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5951
5967
|
...te,
|
|
5952
5968
|
index: B,
|
|
5953
5969
|
total: 0
|
|
5954
|
-
}),
|
|
5970
|
+
}), j++) : D.push({
|
|
5955
5971
|
...te
|
|
5956
5972
|
});
|
|
5957
5973
|
}
|
|
5958
|
-
if (
|
|
5974
|
+
if (j === 0)
|
|
5959
5975
|
return [];
|
|
5960
5976
|
let J = [];
|
|
5961
5977
|
if (e.paginationShow) {
|
|
5962
|
-
const B = (
|
|
5963
|
-
J =
|
|
5978
|
+
const B = (C(g) - 1) * C(u), te = B + C(u);
|
|
5979
|
+
J = C(c).slice(B, te);
|
|
5964
5980
|
}
|
|
5965
5981
|
for (let B = 0; B < D.length; B++) {
|
|
5966
5982
|
const te = D[B];
|
|
@@ -5978,7 +5994,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5978
5994
|
}), { setRequest: Mo } = N(Se, {
|
|
5979
5995
|
// @ts-ignore
|
|
5980
5996
|
// eslint-disable-next-line no-void
|
|
5981
|
-
setRequest: ({ id: I, sortNum: D, requestFn:
|
|
5997
|
+
setRequest: ({ id: I, sortNum: D, requestFn: j }) => {
|
|
5982
5998
|
}
|
|
5983
5999
|
});
|
|
5984
6000
|
return Mo({
|
|
@@ -5995,9 +6011,9 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
5995
6011
|
pagination: p,
|
|
5996
6012
|
formatFn: R,
|
|
5997
6013
|
contrastClass: w,
|
|
5998
|
-
tableChange:
|
|
6014
|
+
tableChange: f,
|
|
5999
6015
|
summaryList: Io,
|
|
6000
|
-
loading:
|
|
6016
|
+
loading: L,
|
|
6001
6017
|
onTouchHrefEvent: (I, D = "") => {
|
|
6002
6018
|
I === "event" && window.parent.postMessage({
|
|
6003
6019
|
type: "openPage",
|
|
@@ -6018,9 +6034,9 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
6018
6034
|
useFilterOptions: (I) => {
|
|
6019
6035
|
const D = I.dataIndex;
|
|
6020
6036
|
if (typeof D == "string") {
|
|
6021
|
-
let
|
|
6022
|
-
const J =
|
|
6023
|
-
return Array.isArray(
|
|
6037
|
+
let j = C(y)[D];
|
|
6038
|
+
const J = C(I.filterOptionsInputValue).trim();
|
|
6039
|
+
return Array.isArray(j) ? (j = j.filter((B) => typeof B.label == "string" ? B.label.toLowerCase().includes(J.toLowerCase()) : !0), j) : [];
|
|
6024
6040
|
}
|
|
6025
6041
|
return [];
|
|
6026
6042
|
},
|
|
@@ -6034,7 +6050,7 @@ const ms = /* @__PURE__ */ X(ds, [["render", fs], ["__scopeId", "data-v-19bc100c
|
|
|
6034
6050
|
},
|
|
6035
6051
|
exportTable: () => {
|
|
6036
6052
|
var D;
|
|
6037
|
-
const I = (D =
|
|
6053
|
+
const I = (D = C(o)) == null ? void 0 : D.$el;
|
|
6038
6054
|
I && sa(ca.table_to_book(I), "表格数据.xlsx");
|
|
6039
6055
|
},
|
|
6040
6056
|
tableRef: o
|
|
@@ -6048,7 +6064,7 @@ const bs = {
|
|
|
6048
6064
|
key: 1,
|
|
6049
6065
|
class: "action-list"
|
|
6050
6066
|
}, ks = ["href", "target", "onClick"];
|
|
6051
|
-
function
|
|
6067
|
+
function xs(e, n, t, o, a, r) {
|
|
6052
6068
|
const s = Z("a-button"), i = Z("a-input"), l = Z("a-checkbox-group"), d = Z("a-table-summary-cell"), c = Z("a-table-summary-row"), h = Z("a-table-summary"), g = Z("a-table"), u = Z("skeleton");
|
|
6053
6069
|
return E(), $("div", {
|
|
6054
6070
|
class: "ecan-table",
|
|
@@ -6082,7 +6098,7 @@ function As(e, n, t, o, a, r) {
|
|
|
6082
6098
|
pagination: e.pagination,
|
|
6083
6099
|
onChange: e.tableChange
|
|
6084
6100
|
}, {
|
|
6085
|
-
customFilterDropdown: Y(({ column:
|
|
6101
|
+
customFilterDropdown: Y(({ column: m, selectedKeys: b, setSelectedKeys: v, confirm: y, clearFilters: x }) => [
|
|
6086
6102
|
ee("div", {
|
|
6087
6103
|
class: "ecan-table-filter",
|
|
6088
6104
|
style: G({
|
|
@@ -6090,25 +6106,25 @@ function As(e, n, t, o, a, r) {
|
|
|
6090
6106
|
})
|
|
6091
6107
|
}, [
|
|
6092
6108
|
U(i, {
|
|
6093
|
-
value:
|
|
6094
|
-
"onUpdate:value": (A) =>
|
|
6109
|
+
value: m.filterOptionsInputValue,
|
|
6110
|
+
"onUpdate:value": (A) => m.filterOptionsInputValue = A,
|
|
6095
6111
|
placeholder: "请输入关键字",
|
|
6096
6112
|
class: "filter-input",
|
|
6097
6113
|
onChange: e.onSearchFilterOptions
|
|
6098
6114
|
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
6099
6115
|
U(l, {
|
|
6100
|
-
value:
|
|
6101
|
-
"onUpdate:value": (A) =>
|
|
6116
|
+
value: m.filterCheckboxGroupValue,
|
|
6117
|
+
"onUpdate:value": (A) => m.filterCheckboxGroupValue = A,
|
|
6102
6118
|
class: "filter-checkbox",
|
|
6103
|
-
options: e.useFilterOptions(
|
|
6104
|
-
onChange: (A) => e.useSetSelectedKeys(v,
|
|
6119
|
+
options: e.useFilterOptions(m),
|
|
6120
|
+
onChange: (A) => e.useSetSelectedKeys(v, m)
|
|
6105
6121
|
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
6106
6122
|
ee("div", null, [
|
|
6107
6123
|
U(s, {
|
|
6108
6124
|
type: "primary",
|
|
6109
6125
|
size: "small",
|
|
6110
6126
|
style: { width: "90px", "margin-right": "8px" },
|
|
6111
|
-
onClick: () =>
|
|
6127
|
+
onClick: () => y()
|
|
6112
6128
|
}, {
|
|
6113
6129
|
default: Y(() => [
|
|
6114
6130
|
ps
|
|
@@ -6118,7 +6134,7 @@ function As(e, n, t, o, a, r) {
|
|
|
6118
6134
|
U(s, {
|
|
6119
6135
|
size: "small",
|
|
6120
6136
|
style: { width: "90px" },
|
|
6121
|
-
onClick: fn((A) => e.onResetFilter(
|
|
6137
|
+
onClick: fn((A) => e.onResetFilter(x, m), ["stop"])
|
|
6122
6138
|
}, {
|
|
6123
6139
|
default: Y(() => [
|
|
6124
6140
|
Cs
|
|
@@ -6128,56 +6144,56 @@ function As(e, n, t, o, a, r) {
|
|
|
6128
6144
|
])
|
|
6129
6145
|
], 4)
|
|
6130
6146
|
]),
|
|
6131
|
-
bodyCell: Y(({ column:
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
(E(!0), $(Ie, null, Ee(e.actionList, (
|
|
6147
|
+
bodyCell: Y(({ column: m, index: b, text: v, record: y }) => [
|
|
6148
|
+
m.dataIndex === "SEQ" ? (E(), $("span", Ss, ye(b + 1), 1)) : ve("", !0),
|
|
6149
|
+
m.dataIndex === "ACTION" ? (E(), $("div", ws, [
|
|
6150
|
+
(E(!0), $(Ie, null, Ee(e.actionList, (x, A) => (E(), $("div", {
|
|
6135
6151
|
class: "action",
|
|
6136
6152
|
key: A
|
|
6137
6153
|
}, [
|
|
6138
6154
|
ee("a", {
|
|
6139
|
-
href: e.handleHref(
|
|
6140
|
-
target: e.handleHrefTarget(
|
|
6155
|
+
href: e.handleHref(x.href, y),
|
|
6156
|
+
target: e.handleHrefTarget(x.target),
|
|
6141
6157
|
style: G({
|
|
6142
|
-
color:
|
|
6158
|
+
color: x.color,
|
|
6143
6159
|
fontSize: e.fontSize,
|
|
6144
6160
|
fontWeight: e.fontWeight
|
|
6145
6161
|
}),
|
|
6146
|
-
onClick: (
|
|
6147
|
-
}, ye(
|
|
6162
|
+
onClick: (F) => e.onTouchHrefEvent(x.target, e.handleHref(x.href, y))
|
|
6163
|
+
}, ye(x.title), 13, ks)
|
|
6148
6164
|
]))), 128))
|
|
6149
6165
|
])) : (E(), $("div", {
|
|
6150
6166
|
key: 2,
|
|
6151
|
-
class:
|
|
6167
|
+
class: Lt([e.contrastClass(v, m.format)]),
|
|
6152
6168
|
style: G({
|
|
6153
6169
|
fontSize: e.fontSize,
|
|
6154
6170
|
fontWeight: e.fontWeight
|
|
6155
6171
|
})
|
|
6156
|
-
}, ye(
|
|
6172
|
+
}, ye(m.format != null ? e.formatFn(v, m.format) : v), 7))
|
|
6157
6173
|
]),
|
|
6158
6174
|
summary: Y(() => [
|
|
6159
|
-
e.summaryList.length > 0 ? (E(),
|
|
6175
|
+
e.summaryList.length > 0 ? (E(), Fe(h, { key: 0 }, {
|
|
6160
6176
|
default: Y(() => [
|
|
6161
6177
|
U(c, null, {
|
|
6162
6178
|
default: Y(() => [
|
|
6163
|
-
(E(!0), $(Ie, null, Ee(e.summaryList, (
|
|
6164
|
-
key:
|
|
6165
|
-
index:
|
|
6179
|
+
(E(!0), $(Ie, null, Ee(e.summaryList, (m, b) => (E(), Fe(d, {
|
|
6180
|
+
key: b,
|
|
6181
|
+
index: b,
|
|
6166
6182
|
style: G({
|
|
6167
6183
|
backgroundColor: e.cellBackgroundColor,
|
|
6168
|
-
textAlign:
|
|
6169
|
-
color:
|
|
6184
|
+
textAlign: m.cellAlign || "center",
|
|
6185
|
+
color: m.cellColor,
|
|
6170
6186
|
borderBottomColor: e.borderColor
|
|
6171
6187
|
})
|
|
6172
6188
|
}, {
|
|
6173
6189
|
default: Y(() => [
|
|
6174
6190
|
ee("div", {
|
|
6175
|
-
class:
|
|
6191
|
+
class: Lt([e.contrastClass(m.total, m.format)]),
|
|
6176
6192
|
style: G({
|
|
6177
6193
|
fontSize: e.fontSize,
|
|
6178
6194
|
fontWeight: e.fontWeight
|
|
6179
6195
|
})
|
|
6180
|
-
}, ye((
|
|
6196
|
+
}, ye((m.format != null || m.format !== "") && e.formatFn(m.total, m.format)), 7)
|
|
6181
6197
|
]),
|
|
6182
6198
|
_: 2
|
|
6183
6199
|
}, 1032, ["index", "style"]))), 128))
|
|
@@ -6195,7 +6211,7 @@ function As(e, n, t, o, a, r) {
|
|
|
6195
6211
|
}, 8, ["loading"])
|
|
6196
6212
|
], 4);
|
|
6197
6213
|
}
|
|
6198
|
-
const
|
|
6214
|
+
const As = /* @__PURE__ */ X(ys, [["render", xs], ["__scopeId", "data-v-440881f8"]]), Ts = oe(As), Lo = {
|
|
6199
6215
|
...re,
|
|
6200
6216
|
mapJson: null,
|
|
6201
6217
|
data: [],
|
|
@@ -6236,26 +6252,26 @@ const xs = /* @__PURE__ */ X(ys, [["render", As], ["__scopeId", "data-v-440881f8
|
|
|
6236
6252
|
tooltipShow: !0,
|
|
6237
6253
|
tooltipTextStyleColor: "",
|
|
6238
6254
|
tooltipFormatter: "{b}"
|
|
6239
|
-
},
|
|
6255
|
+
}, _o = ae(Lo);
|
|
6240
6256
|
Be([
|
|
6241
6257
|
Ge,
|
|
6242
6258
|
aa,
|
|
6243
6259
|
Cn,
|
|
6244
6260
|
la,
|
|
6245
|
-
|
|
6261
|
+
Ft,
|
|
6246
6262
|
ia
|
|
6247
6263
|
]);
|
|
6248
|
-
const
|
|
6264
|
+
const Ls = Q({
|
|
6249
6265
|
name: "EcanMap",
|
|
6250
6266
|
components: {
|
|
6251
6267
|
Echarts: ze
|
|
6252
6268
|
},
|
|
6253
6269
|
props: {
|
|
6254
|
-
...
|
|
6270
|
+
..._o
|
|
6255
6271
|
},
|
|
6256
6272
|
setup(e) {
|
|
6257
6273
|
const n = ie(e, ["backgroundImage"]), t = M(), o = q(() => De(e.geoBackgroundImage)), a = q(() => De(e.backgroundImage)), r = q(() => e.geoBackgroundImage ? {
|
|
6258
|
-
image:
|
|
6274
|
+
image: C(t),
|
|
6259
6275
|
repeat: e.geoBackgroundImageRepeat
|
|
6260
6276
|
} : e.geoItemStyleAreaColor), s = q(() => {
|
|
6261
6277
|
const c = e.symbolImage;
|
|
@@ -6275,7 +6291,7 @@ const _s = Q({
|
|
|
6275
6291
|
style: {
|
|
6276
6292
|
width: parseFloat(e.width),
|
|
6277
6293
|
height: parseFloat(e.height),
|
|
6278
|
-
image:
|
|
6294
|
+
image: C(a)
|
|
6279
6295
|
},
|
|
6280
6296
|
top: "center"
|
|
6281
6297
|
}
|
|
@@ -6296,7 +6312,7 @@ const _s = Q({
|
|
|
6296
6312
|
},
|
|
6297
6313
|
itemStyle: {
|
|
6298
6314
|
// 地图上板块属性
|
|
6299
|
-
areaColor:
|
|
6315
|
+
areaColor: C(r),
|
|
6300
6316
|
borderColor: e.geoItemStyleBorderColor,
|
|
6301
6317
|
borderWidth: e.geoItemStyleBorderWidth,
|
|
6302
6318
|
shadowColor: e.geoItemStyleShadowColor,
|
|
@@ -6323,7 +6339,7 @@ const _s = Q({
|
|
|
6323
6339
|
itemStyle: {
|
|
6324
6340
|
color: e.itemStyleColor
|
|
6325
6341
|
},
|
|
6326
|
-
symbol:
|
|
6342
|
+
symbol: C(s),
|
|
6327
6343
|
symbolSize: [e.symbolWidth, e.symbolHeight],
|
|
6328
6344
|
label: {
|
|
6329
6345
|
show: e.labelShow,
|
|
@@ -6365,14 +6381,14 @@ const _s = Q({
|
|
|
6365
6381
|
};
|
|
6366
6382
|
}
|
|
6367
6383
|
});
|
|
6368
|
-
const
|
|
6384
|
+
const _s = ["src"];
|
|
6369
6385
|
function Is(e, n, t, o, a, r) {
|
|
6370
6386
|
const s = Z("echarts");
|
|
6371
6387
|
return E(), $("div", {
|
|
6372
6388
|
class: "ecan-map",
|
|
6373
6389
|
style: G(e.style)
|
|
6374
6390
|
}, [
|
|
6375
|
-
e.isLoadedData ? (E(),
|
|
6391
|
+
e.isLoadedData ? (E(), Fe(s, {
|
|
6376
6392
|
key: 0,
|
|
6377
6393
|
option: e.option,
|
|
6378
6394
|
"update-options": { notMerge: !0 },
|
|
@@ -6381,23 +6397,23 @@ function Is(e, n, t, o, a, r) {
|
|
|
6381
6397
|
zo(ee("img", {
|
|
6382
6398
|
ref: "geoBackgroundImageRef",
|
|
6383
6399
|
src: e.myGeoBackgroundImage
|
|
6384
|
-
}, null, 8,
|
|
6400
|
+
}, null, 8, _s), [
|
|
6385
6401
|
[No, !1]
|
|
6386
6402
|
])
|
|
6387
6403
|
], 4);
|
|
6388
6404
|
}
|
|
6389
|
-
const Ms = /* @__PURE__ */ X(
|
|
6405
|
+
const Ms = /* @__PURE__ */ X(Ls, [["render", Is], ["__scopeId", "data-v-1fb5cdee"]]), Es = oe(Ms), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6390
6406
|
__proto__: null,
|
|
6391
6407
|
EcanBar: ur,
|
|
6392
6408
|
EcanBorder: Hr,
|
|
6393
|
-
EcanButton:
|
|
6409
|
+
EcanButton: ji,
|
|
6394
6410
|
EcanCheckbox: Yi,
|
|
6395
|
-
EcanComboGraph:
|
|
6411
|
+
EcanComboGraph: Ar,
|
|
6396
6412
|
EcanCustomGraph: Cr,
|
|
6397
6413
|
EcanDatePicker: Mi,
|
|
6398
6414
|
EcanIframe: gs,
|
|
6399
6415
|
EcanImage: cs,
|
|
6400
|
-
EcanInput:
|
|
6416
|
+
EcanInput: Ai,
|
|
6401
6417
|
EcanLine: ir,
|
|
6402
6418
|
EcanList: hi,
|
|
6403
6419
|
EcanMap: Es,
|
|
@@ -6434,26 +6450,26 @@ const Ms = /* @__PURE__ */ X(_s, [["render", Is], ["__scopeId", "data-v-1fb5cdee
|
|
|
6434
6450
|
datePickerComponentProps: Hn,
|
|
6435
6451
|
datePickerEvents: Ti,
|
|
6436
6452
|
datePickerProps: Vn,
|
|
6437
|
-
iframeComponentProps:
|
|
6453
|
+
iframeComponentProps: xo,
|
|
6438
6454
|
iframeProps: ko,
|
|
6439
6455
|
imageComponentProps: wo,
|
|
6440
6456
|
imageProps: So,
|
|
6441
|
-
inputComponentProps:
|
|
6457
|
+
inputComponentProps: jn,
|
|
6442
6458
|
inputEvents: Si,
|
|
6443
|
-
inputProps:
|
|
6459
|
+
inputProps: Wn,
|
|
6444
6460
|
lineComponentProps: lo,
|
|
6445
6461
|
lineEvents: nr,
|
|
6446
6462
|
lineProps: ao,
|
|
6447
6463
|
listComponentProps: Gn,
|
|
6448
6464
|
listEvents: oi,
|
|
6449
6465
|
listProps: Bn,
|
|
6450
|
-
mapComponentProps:
|
|
6451
|
-
mapProps:
|
|
6466
|
+
mapComponentProps: _o,
|
|
6467
|
+
mapProps: Lo,
|
|
6452
6468
|
modalComponentProps: vo,
|
|
6453
6469
|
modalEvents: Zr,
|
|
6454
6470
|
modalProps: bo,
|
|
6455
|
-
pageConfig:
|
|
6456
|
-
pageConfigComponentProps:
|
|
6471
|
+
pageConfig: Ln,
|
|
6472
|
+
pageConfigComponentProps: _n,
|
|
6457
6473
|
pieComponentProps: oo,
|
|
6458
6474
|
pieEvents: Qi,
|
|
6459
6475
|
pieProps: no,
|
|
@@ -6473,7 +6489,7 @@ const Ms = /* @__PURE__ */ X(_s, [["render", Is], ["__scopeId", "data-v-1fb5cdee
|
|
|
6473
6489
|
selectProps: Zn,
|
|
6474
6490
|
tableComponentProps: To,
|
|
6475
6491
|
tableEvents: hs,
|
|
6476
|
-
tableProps:
|
|
6492
|
+
tableProps: Ao,
|
|
6477
6493
|
tabsComponentProps: Co,
|
|
6478
6494
|
tabsEvents: Xr,
|
|
6479
6495
|
tabsProps: po,
|
|
@@ -6482,25 +6498,25 @@ const Ms = /* @__PURE__ */ X(_s, [["render", Is], ["__scopeId", "data-v-1fb5cdee
|
|
|
6482
6498
|
textProps: $n,
|
|
6483
6499
|
timeDisplayComponentProps: Pn,
|
|
6484
6500
|
timeDisplayProps: Nn
|
|
6485
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6501
|
+
}, Symbol.toStringTag, { value: "Module" })), Os = (e) => {
|
|
6486
6502
|
Object.keys(on).forEach((n) => {
|
|
6487
6503
|
const t = on[n];
|
|
6488
6504
|
t.install && e.use(t);
|
|
6489
6505
|
});
|
|
6490
6506
|
}, fc = {
|
|
6491
|
-
install:
|
|
6507
|
+
install: Os
|
|
6492
6508
|
};
|
|
6493
6509
|
export {
|
|
6494
6510
|
ur as EcanBar,
|
|
6495
6511
|
Hr as EcanBorder,
|
|
6496
|
-
|
|
6512
|
+
ji as EcanButton,
|
|
6497
6513
|
Yi as EcanCheckbox,
|
|
6498
|
-
|
|
6514
|
+
Ar as EcanComboGraph,
|
|
6499
6515
|
Cr as EcanCustomGraph,
|
|
6500
6516
|
Mi as EcanDatePicker,
|
|
6501
6517
|
gs as EcanIframe,
|
|
6502
6518
|
cs as EcanImage,
|
|
6503
|
-
|
|
6519
|
+
Ai as EcanInput,
|
|
6504
6520
|
ir as EcanLine,
|
|
6505
6521
|
hi as EcanList,
|
|
6506
6522
|
Es as EcanMap,
|
|
@@ -6538,26 +6554,26 @@ export {
|
|
|
6538
6554
|
Ti as datePickerEvents,
|
|
6539
6555
|
Vn as datePickerProps,
|
|
6540
6556
|
fc as default,
|
|
6541
|
-
|
|
6557
|
+
xo as iframeComponentProps,
|
|
6542
6558
|
ko as iframeProps,
|
|
6543
6559
|
wo as imageComponentProps,
|
|
6544
6560
|
So as imageProps,
|
|
6545
|
-
|
|
6561
|
+
jn as inputComponentProps,
|
|
6546
6562
|
Si as inputEvents,
|
|
6547
|
-
|
|
6563
|
+
Wn as inputProps,
|
|
6548
6564
|
lo as lineComponentProps,
|
|
6549
6565
|
nr as lineEvents,
|
|
6550
6566
|
ao as lineProps,
|
|
6551
6567
|
Gn as listComponentProps,
|
|
6552
6568
|
oi as listEvents,
|
|
6553
6569
|
Bn as listProps,
|
|
6554
|
-
|
|
6555
|
-
|
|
6570
|
+
_o as mapComponentProps,
|
|
6571
|
+
Lo as mapProps,
|
|
6556
6572
|
vo as modalComponentProps,
|
|
6557
6573
|
Zr as modalEvents,
|
|
6558
6574
|
bo as modalProps,
|
|
6559
|
-
|
|
6560
|
-
|
|
6575
|
+
Ln as pageConfig,
|
|
6576
|
+
_n as pageConfigComponentProps,
|
|
6561
6577
|
oo as pieComponentProps,
|
|
6562
6578
|
Qi as pieEvents,
|
|
6563
6579
|
no as pieProps,
|
|
@@ -6577,7 +6593,7 @@ export {
|
|
|
6577
6593
|
Zn as selectProps,
|
|
6578
6594
|
To as tableComponentProps,
|
|
6579
6595
|
hs as tableEvents,
|
|
6580
|
-
|
|
6596
|
+
Ao as tableProps,
|
|
6581
6597
|
Co as tabsComponentProps,
|
|
6582
6598
|
Xr as tabsEvents,
|
|
6583
6599
|
po as tabsProps,
|