nxd-plugin 1.7.59 → 1.7.61
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/chunks/{component-ChartCumulativePre-DoHaZpbA.mjs → component-ChartCumulativePre-B1-2oWSv.mjs} +48 -68
- package/dist/chunks/{component-ChartRealTimePre-6t8zWBXn.mjs → component-ChartRealTimePre-fdGD6b6W.mjs} +20 -18
- package/dist/chunks/{component-ChartServiceMaterial-gomQX5M2.mjs → component-ChartServiceMaterial-jbICJ7zm.mjs} +18 -13
- package/dist/chunks/{component-EarlyWarningStatistic-DobAcmD3.mjs → component-EarlyWarningStatistic-CvnL9pUy.mjs} +20 -18
- package/dist/chunks/component-YCLoginNew-Ssv3Tm8I.mjs +364 -0
- package/dist/nxd-plugin.mjs +5 -5
- package/dist/src/components/YCLoginNew/YCLoginNew.vue.d.ts +1 -0
- package/dist/styles/component-ChartCumulativePre.css +1 -1
- package/dist/styles/component-ChartRealTimePre.css +1 -1
- package/dist/styles/component-ChartServiceMaterial.css +1 -1
- package/dist/styles/component-EarlyWarningStatistic.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-YCLoginNew-Bi9ATD7v.mjs +0 -183
|
@@ -9,7 +9,7 @@ import "element-plus/es/components/option/style/css";
|
|
|
9
9
|
var x = {
|
|
10
10
|
class: "ChartCumulativePre",
|
|
11
11
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
12
|
-
}, S = { class: "ChartCumulativePre-head" }, C = { class: "ChartCumulativePre-head-top" }, w = { class: "ChartCumulativePre-filters" }, T = { class: "filter-item" }, E =
|
|
12
|
+
}, S = { class: "ChartCumulativePre-head" }, C = { class: "ChartCumulativePre-head-top" }, w = { class: "ChartCumulativePre-filters" }, T = { class: "filter-item" }, E = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
13
13
|
__name: "ChartCumulativePre",
|
|
14
14
|
props: {
|
|
15
15
|
appKey: {
|
|
@@ -30,53 +30,48 @@ var x = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
setup(e, { emit: u }) {
|
|
33
|
-
let
|
|
34
|
-
label: "08时",
|
|
35
|
-
value: "08"
|
|
36
|
-
}, {
|
|
37
|
-
label: "20时",
|
|
38
|
-
value: "20"
|
|
39
|
-
}]), L = m(null), R = m([]);
|
|
33
|
+
let E = e, D = u, O = m(!1), k = (/* @__PURE__ */ new Date()).getFullYear(), A = m(null), j = null, M = m(""), N = m([]), P = m(null), F = m(null), I = m([]);
|
|
40
34
|
f(() => {
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
L(), P.value = setInterval(() => {
|
|
36
|
+
L();
|
|
43
37
|
}, 1e3 * 60 * 10);
|
|
44
38
|
}), d(() => {
|
|
45
|
-
clearInterval(
|
|
39
|
+
P.value && clearInterval(P.value), P.value = null, F.value && clearInterval(F.value), F.value = null, j &&= (j.dispose(), null);
|
|
46
40
|
});
|
|
47
|
-
let
|
|
48
|
-
await
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
let L = async () => {
|
|
42
|
+
F.value &&= (clearInterval(F.value), null), await R(), z(), F.value = setInterval(() => {
|
|
43
|
+
if (N.value.length > 0) {
|
|
44
|
+
let e = (N.value.findIndex((e) => e.stationNumber === M.value) + 1) % N.value.length;
|
|
45
|
+
M.value = N.value[e].stationNumber, z();
|
|
46
|
+
}
|
|
47
|
+
}, 1e3 * 10);
|
|
48
|
+
}, R = async () => {
|
|
49
|
+
O.value = !0;
|
|
51
50
|
let e = await t({
|
|
52
|
-
appKey:
|
|
53
|
-
appSalt:
|
|
54
|
-
id:
|
|
51
|
+
appKey: E.appKey,
|
|
52
|
+
appSalt: E.appSalt,
|
|
53
|
+
id: E.ids.data.id,
|
|
55
54
|
variables: {},
|
|
56
|
-
baseHttp:
|
|
57
|
-
reqType:
|
|
58
|
-
isFormData:
|
|
55
|
+
baseHttp: E.baseHttp,
|
|
56
|
+
reqType: E.ids.data.reqType,
|
|
57
|
+
isFormData: E.ids.data.isFormData
|
|
59
58
|
});
|
|
60
|
-
|
|
59
|
+
O.value = !1;
|
|
61
60
|
let n = e.data.result || {};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
let e = R.value;
|
|
61
|
+
I.value = n.stationData || [];
|
|
62
|
+
let r = n.stationSelect || [];
|
|
63
|
+
N.value = r, !M.value && r.length > 0 && (M.value = r[0].stationNumber);
|
|
64
|
+
}, z = () => {
|
|
65
|
+
if (!A.value) return;
|
|
66
|
+
j ||= b.init(A.value);
|
|
67
|
+
let e = I.value;
|
|
70
68
|
if (!e.length) return;
|
|
71
|
-
let t = Array.from({ length: 12 }, (e, t) => `${t + 1}月`), n =
|
|
72
|
-
|
|
69
|
+
let t = Array.from({ length: 12 }, (e, t) => `${t + 1}月`), n = Array(12).fill(0);
|
|
70
|
+
e.filter((e) => e.stationNumber === M.value).forEach((e) => {
|
|
73
71
|
let t = e.month - 1;
|
|
74
|
-
t >= 0 && t < 12 && (
|
|
75
|
-
}), r = r.map((e) => Number(e.toFixed(1)))) : e.filter((e) => e.stationNumber === N.value).forEach((e) => {
|
|
76
|
-
let t = e.month - 1;
|
|
77
|
-
t >= 0 && t < 12 && (r[t] = e[n] || 0);
|
|
72
|
+
t >= 0 && t < 12 && (n[t] = e.precipitation20 || 0);
|
|
78
73
|
});
|
|
79
|
-
let
|
|
74
|
+
let r = {
|
|
80
75
|
title: {
|
|
81
76
|
text: "单位: mm",
|
|
82
77
|
textStyle: {
|
|
@@ -145,64 +140,49 @@ var x = {
|
|
|
145
140
|
0
|
|
146
141
|
]
|
|
147
142
|
},
|
|
148
|
-
data:
|
|
143
|
+
data: n
|
|
149
144
|
}]
|
|
150
145
|
};
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
|
|
146
|
+
j.clear(), j.setOption(r);
|
|
147
|
+
}, B = () => {
|
|
148
|
+
D("close", "ChartCumulativePre");
|
|
154
149
|
};
|
|
155
150
|
return (e, t) => {
|
|
156
151
|
let u = r, d = i, f = n;
|
|
157
152
|
return y((p(), s("div", x, [
|
|
158
|
-
c("div", S, [c("div", C, [c("div", null, g(_(
|
|
153
|
+
c("div", S, [c("div", C, [c("div", null, g(_(k)) + "年累计降水", 1), c("div", {
|
|
159
154
|
class: "closeBtn",
|
|
160
|
-
onClick:
|
|
155
|
+
onClick: B,
|
|
161
156
|
title: "关闭"
|
|
162
|
-
})]), t[
|
|
157
|
+
})]), t[1] ||= c("img", {
|
|
163
158
|
class: "ChartCumulativePre-head-line",
|
|
164
159
|
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
|
|
165
160
|
alt: ""
|
|
166
161
|
}, null, -1)]),
|
|
167
|
-
c("div", w, [c("div", T, [t[
|
|
168
|
-
modelValue:
|
|
169
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
162
|
+
c("div", w, [c("div", T, [t[2] ||= c("span", { class: "label" }, "站点:", -1), l(d, {
|
|
163
|
+
modelValue: M.value,
|
|
164
|
+
"onUpdate:modelValue": t[0] ||= (e) => M.value = e,
|
|
170
165
|
placeholder: "请选择",
|
|
171
166
|
class: "dark-select",
|
|
172
167
|
style: { width: "110px" },
|
|
173
168
|
size: "small",
|
|
174
|
-
onChange:
|
|
169
|
+
onChange: z
|
|
175
170
|
}, {
|
|
176
|
-
default: v(() => [(p(!0), s(a, null, h(
|
|
171
|
+
default: v(() => [(p(!0), s(a, null, h(N.value, (e) => (p(), o(u, {
|
|
177
172
|
key: e.stationNumber,
|
|
178
173
|
label: e.stationName,
|
|
179
174
|
value: e.stationNumber
|
|
180
175
|
}, null, 8, ["label", "value"]))), 128))]),
|
|
181
176
|
_: 1
|
|
182
|
-
}, 8, ["modelValue"])]), c("div", E, [t[4] ||= c("span", { class: "label" }, "时段:", -1), l(d, {
|
|
183
|
-
modelValue: F.value,
|
|
184
|
-
"onUpdate:modelValue": t[1] ||= (e) => F.value = e,
|
|
185
|
-
placeholder: "请选择",
|
|
186
|
-
class: "dark-select",
|
|
187
|
-
style: { width: "100px" },
|
|
188
|
-
size: "small",
|
|
189
|
-
onChange: V
|
|
190
|
-
}, {
|
|
191
|
-
default: v(() => [(p(!0), s(a, null, h(I.value, (e) => (p(), o(u, {
|
|
192
|
-
key: e.value,
|
|
193
|
-
label: e.label,
|
|
194
|
-
value: e.value
|
|
195
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
196
|
-
_: 1
|
|
197
177
|
}, 8, ["modelValue"])])]),
|
|
198
178
|
c("div", {
|
|
199
179
|
ref_key: "chartRef",
|
|
200
|
-
ref:
|
|
180
|
+
ref: A,
|
|
201
181
|
class: "ChartCumulativePre-chart"
|
|
202
182
|
}, null, 512)
|
|
203
|
-
])), [[f,
|
|
183
|
+
])), [[f, O.value]]);
|
|
204
184
|
};
|
|
205
185
|
}
|
|
206
|
-
}), [["__scopeId", "data-v-
|
|
186
|
+
}), [["__scopeId", "data-v-04dabce3"]]);
|
|
207
187
|
//#endregion
|
|
208
|
-
export {
|
|
188
|
+
export { E as t };
|
|
@@ -51,18 +51,20 @@ var y = {
|
|
|
51
51
|
label: "24小时",
|
|
52
52
|
value: "precipitation24h"
|
|
53
53
|
}
|
|
54
|
-
]), D = m(null), O = m(null), k = m(
|
|
55
|
-
await M(), N();
|
|
56
|
-
};
|
|
54
|
+
]), D = m(null), O = m(null), k = m(null), A = m([]), j = null;
|
|
57
55
|
f(() => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
e === E.value.length - 1 ? T.value = E.value[0].value : T.value = E.value[e + 1].value, j();
|
|
56
|
+
M(), D.value = setInterval(() => {
|
|
57
|
+
M();
|
|
61
58
|
}, 1e3 * 60 * 10);
|
|
62
59
|
}), d(() => {
|
|
63
|
-
clearInterval(D.value), D.value = null,
|
|
60
|
+
D.value && clearInterval(D.value), D.value = null, O.value && clearInterval(O.value), O.value = null, j &&= (j.dispose(), null);
|
|
64
61
|
});
|
|
65
62
|
let M = async () => {
|
|
63
|
+
O.value &&= (clearInterval(O.value), null), await N(), P(), O.value = setInterval(() => {
|
|
64
|
+
let e = E.value.findIndex((e) => e.value === T.value);
|
|
65
|
+
e === E.value.length - 1 ? T.value = E.value[0].value : T.value = E.value[e + 1].value, P();
|
|
66
|
+
}, 1e3 * 10);
|
|
67
|
+
}, N = async () => {
|
|
66
68
|
w.value = !0;
|
|
67
69
|
let e = await t({
|
|
68
70
|
appKey: S.appKey,
|
|
@@ -73,11 +75,11 @@ var y = {
|
|
|
73
75
|
reqType: S.ids.data.reqType,
|
|
74
76
|
isFormData: S.ids.data.isFormData
|
|
75
77
|
});
|
|
76
|
-
w.value = !1,
|
|
77
|
-
},
|
|
78
|
-
if (!
|
|
79
|
-
|
|
80
|
-
let e =
|
|
78
|
+
w.value = !1, A.value = e.data.result.output || [];
|
|
79
|
+
}, P = () => {
|
|
80
|
+
if (!k.value) return;
|
|
81
|
+
j ||= v.init(k.value);
|
|
82
|
+
let e = A.value;
|
|
81
83
|
if (!e.length) return;
|
|
82
84
|
let t = e.map((e) => e.stationName), n = e.map((e) => e[T.value] || 0), r = {
|
|
83
85
|
title: {
|
|
@@ -151,8 +153,8 @@ var y = {
|
|
|
151
153
|
data: n
|
|
152
154
|
}]
|
|
153
155
|
};
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
+
j.clear(), j.setOption(r);
|
|
157
|
+
}, F = () => {
|
|
156
158
|
C("close", "ChartRealTimePre");
|
|
157
159
|
};
|
|
158
160
|
return (e, t) => {
|
|
@@ -160,7 +162,7 @@ var y = {
|
|
|
160
162
|
return _((p(), s("div", y, [
|
|
161
163
|
c("div", { class: "ChartRealTimePre-head" }, [c("div", { class: "ChartRealTimePre-head-top" }, [t[1] ||= c("div", null, "降水实况", -1), c("div", {
|
|
162
164
|
class: "closeBtn",
|
|
163
|
-
onClick:
|
|
165
|
+
onClick: F,
|
|
164
166
|
title: "关闭"
|
|
165
167
|
})]), t[2] ||= c("img", {
|
|
166
168
|
class: "ChartRealTimePre-head-line",
|
|
@@ -174,7 +176,7 @@ var y = {
|
|
|
174
176
|
class: "dark-select",
|
|
175
177
|
style: { width: "100px" },
|
|
176
178
|
size: "small",
|
|
177
|
-
onChange:
|
|
179
|
+
onChange: P
|
|
178
180
|
}, {
|
|
179
181
|
default: g(() => [(p(!0), s(a, null, h(E.value, (e) => (p(), o(u, {
|
|
180
182
|
key: e.value,
|
|
@@ -185,12 +187,12 @@ var y = {
|
|
|
185
187
|
}, 8, ["modelValue"])])]),
|
|
186
188
|
c("div", {
|
|
187
189
|
ref_key: "chartRef",
|
|
188
|
-
ref:
|
|
190
|
+
ref: k,
|
|
189
191
|
class: "ChartRealTimePre-chart"
|
|
190
192
|
}, null, 512)
|
|
191
193
|
])), [[f, w.value]]);
|
|
192
194
|
};
|
|
193
195
|
}
|
|
194
|
-
}), [["__scopeId", "data-v-
|
|
196
|
+
}), [["__scopeId", "data-v-ebb61765"]]);
|
|
195
197
|
//#endregion
|
|
196
198
|
export { S as t };
|
|
@@ -2,6 +2,9 @@ import { n as e, r as t } from "./component-AqiMonitor-BUy1MSaP.mjs";
|
|
|
2
2
|
import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
|
|
3
3
|
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as _, withDirectives as v } from "vue";
|
|
4
4
|
import * as y from "echarts";
|
|
5
|
+
import "element-plus/es/components/loading/style/css";
|
|
6
|
+
import "element-plus/es/components/select/style/css";
|
|
7
|
+
import "element-plus/es/components/option/style/css";
|
|
5
8
|
//#region src/components/ChartServiceMaterial/ChartServiceMaterial.vue?vue&type=script&setup=true&lang.ts
|
|
6
9
|
var b = {
|
|
7
10
|
class: "ChartServiceMaterial",
|
|
@@ -33,16 +36,16 @@ var b = {
|
|
|
33
36
|
}, {
|
|
34
37
|
value: "服务次数",
|
|
35
38
|
label: "服务次数"
|
|
36
|
-
}]), A = m(null), j = null, M = m(null), N = m([]);
|
|
39
|
+
}]), A = m(null), j = null, M = m(null), N = m(null), P = m([]);
|
|
37
40
|
f(() => {
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
F(), M.value = setInterval(() => {
|
|
42
|
+
F();
|
|
40
43
|
}, 1e3 * 60 * 10);
|
|
41
44
|
}), d(() => {
|
|
42
|
-
clearInterval(M.value);
|
|
45
|
+
M.value && clearInterval(M.value), M.value = null, N.value && clearInterval(N.value), N.value = null, j &&= (j.dispose(), null);
|
|
43
46
|
});
|
|
44
|
-
let
|
|
45
|
-
D.value = !0,
|
|
47
|
+
let F = async () => {
|
|
48
|
+
N.value &&= (clearInterval(N.value), null), D.value = !0, P.value = (await t({
|
|
46
49
|
appKey: T.appKey,
|
|
47
50
|
appSalt: T.appSalt,
|
|
48
51
|
id: T.ids.data.id,
|
|
@@ -50,11 +53,13 @@ var b = {
|
|
|
50
53
|
baseHttp: T.baseHttp,
|
|
51
54
|
reqType: T.ids.data.reqType,
|
|
52
55
|
isFormData: T.ids.data.isFormData
|
|
53
|
-
})).data.result.output || [], D.value = !1,
|
|
54
|
-
|
|
56
|
+
})).data.result.output || [], D.value = !1, I(), N.value = setInterval(() => {
|
|
57
|
+
O.value === "服务种类" ? O.value = "服务次数" : O.value = "服务种类", I();
|
|
58
|
+
}, 1e3 * 10);
|
|
59
|
+
}, I = () => {
|
|
55
60
|
if (!A.value) return;
|
|
56
61
|
j ||= y.init(A.value);
|
|
57
|
-
let e =
|
|
62
|
+
let e = P.value;
|
|
58
63
|
if (!e.length) return;
|
|
59
64
|
let t = {};
|
|
60
65
|
if (O.value === "服务次数") {
|
|
@@ -187,7 +192,7 @@ var b = {
|
|
|
187
192
|
};
|
|
188
193
|
}
|
|
189
194
|
j.clear(), j.setOption(t);
|
|
190
|
-
},
|
|
195
|
+
}, L = () => {
|
|
191
196
|
E("close", "ChartServiceMaterial");
|
|
192
197
|
};
|
|
193
198
|
return (e, t) => {
|
|
@@ -195,7 +200,7 @@ var b = {
|
|
|
195
200
|
return v((p(), s("div", b, [
|
|
196
201
|
c("div", x, [c("div", S, [c("div", null, g((/* @__PURE__ */ new Date()).getFullYear()) + "年服务材料统计", 1), c("div", {
|
|
197
202
|
class: "closeBtn",
|
|
198
|
-
onClick:
|
|
203
|
+
onClick: L,
|
|
199
204
|
title: "关闭"
|
|
200
205
|
})]), t[1] ||= c("img", {
|
|
201
206
|
class: "ChartServiceMaterial-head-line",
|
|
@@ -209,7 +214,7 @@ var b = {
|
|
|
209
214
|
class: "dark-select",
|
|
210
215
|
style: { width: "100px" },
|
|
211
216
|
size: "small",
|
|
212
|
-
onChange:
|
|
217
|
+
onChange: I
|
|
213
218
|
}, {
|
|
214
219
|
default: _(() => [(p(!0), s(a, null, h(k.value, (e) => (p(), o(u, {
|
|
215
220
|
key: e.value,
|
|
@@ -226,6 +231,6 @@ var b = {
|
|
|
226
231
|
])), [[f, D.value]]);
|
|
227
232
|
};
|
|
228
233
|
}
|
|
229
|
-
}), [["__scopeId", "data-v-
|
|
234
|
+
}), [["__scopeId", "data-v-861cc4d8"]]);
|
|
230
235
|
//#endregion
|
|
231
236
|
export { T as t };
|
|
@@ -36,16 +36,16 @@ var b = {
|
|
|
36
36
|
}, {
|
|
37
37
|
value: "灾害类别",
|
|
38
38
|
label: "灾害类别"
|
|
39
|
-
}]), A = m(null), j = m(null), M = null, N = m({});
|
|
39
|
+
}]), A = m(null), j = m(null), M = m(null), N = null, P = m({});
|
|
40
40
|
f(() => {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
F(), A.value = setInterval(() => {
|
|
42
|
+
F();
|
|
43
43
|
}, 1e3 * 60 * 10);
|
|
44
44
|
}), d(() => {
|
|
45
|
-
A.value &&= (clearInterval(A.value), null),
|
|
45
|
+
A.value &&= (clearInterval(A.value), null), j.value &&= (clearInterval(j.value), null), N &&= (N.dispose(), null);
|
|
46
46
|
});
|
|
47
|
-
let
|
|
48
|
-
D.value = !0,
|
|
47
|
+
let F = async () => {
|
|
48
|
+
j.value &&= (clearInterval(j.value), null), D.value = !0, P.value = (await t({
|
|
49
49
|
appKey: T.appKey,
|
|
50
50
|
appSalt: T.appSalt,
|
|
51
51
|
id: T.ids.data.id,
|
|
@@ -53,10 +53,12 @@ var b = {
|
|
|
53
53
|
baseHttp: T.baseHttp,
|
|
54
54
|
reqType: T.ids.data.reqType,
|
|
55
55
|
isFormData: T.ids.data.isFormData
|
|
56
|
-
})).data.result, console.log("list.value",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
})).data.result, console.log("list.value", P.value), D.value = !1, I(), j.value = setInterval(() => {
|
|
57
|
+
O.value === "预警等级" ? O.value = "灾害类别" : O.value = "预警等级", I();
|
|
58
|
+
}, 1e3 * 10);
|
|
59
|
+
}, I = () => {
|
|
60
|
+
if (!M.value) return;
|
|
61
|
+
N ||= y.init(M.value);
|
|
60
62
|
let e = [];
|
|
61
63
|
if (O.value === "预警等级") {
|
|
62
64
|
let t = {
|
|
@@ -65,12 +67,12 @@ var b = {
|
|
|
65
67
|
黄色: "#fadb14",
|
|
66
68
|
蓝色: "#1890ff"
|
|
67
69
|
};
|
|
68
|
-
e =
|
|
70
|
+
e = P.value.gradeData.map((e) => ({
|
|
69
71
|
value: e.count,
|
|
70
72
|
name: e.color,
|
|
71
73
|
itemStyle: { color: t[e.color] }
|
|
72
74
|
}));
|
|
73
|
-
} else e =
|
|
75
|
+
} else e = P.value.alertData.map((e) => ({
|
|
74
76
|
value: e.count,
|
|
75
77
|
name: e.alertname
|
|
76
78
|
}));
|
|
@@ -123,8 +125,8 @@ var b = {
|
|
|
123
125
|
data: e
|
|
124
126
|
}]
|
|
125
127
|
};
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
+
N.setOption(t);
|
|
129
|
+
}, L = () => {
|
|
128
130
|
E("close", "EarlyWarningStatistic");
|
|
129
131
|
};
|
|
130
132
|
return (e, t) => {
|
|
@@ -132,7 +134,7 @@ var b = {
|
|
|
132
134
|
return v((p(), s("div", b, [
|
|
133
135
|
c("div", x, [c("div", S, [c("div", null, g((/* @__PURE__ */ new Date()).getFullYear()) + "年预警统计", 1), c("div", {
|
|
134
136
|
class: "closeBtn",
|
|
135
|
-
onClick:
|
|
137
|
+
onClick: L,
|
|
136
138
|
title: "关闭"
|
|
137
139
|
})]), t[1] ||= c("img", {
|
|
138
140
|
class: "EarlyWarningStatistic-head-line",
|
|
@@ -146,7 +148,7 @@ var b = {
|
|
|
146
148
|
class: "dark-select",
|
|
147
149
|
style: { width: "100px" },
|
|
148
150
|
size: "small",
|
|
149
|
-
onChange:
|
|
151
|
+
onChange: I
|
|
150
152
|
}, {
|
|
151
153
|
default: _(() => [(p(!0), s(a, null, h(k.value, (e) => (p(), o(u, {
|
|
152
154
|
key: e.value,
|
|
@@ -157,12 +159,12 @@ var b = {
|
|
|
157
159
|
}, 8, ["modelValue"])])]),
|
|
158
160
|
c("div", {
|
|
159
161
|
ref_key: "chartRef",
|
|
160
|
-
ref:
|
|
162
|
+
ref: M,
|
|
161
163
|
class: "EarlyWarningStatistic-chart"
|
|
162
164
|
}, null, 512)
|
|
163
165
|
])), [[f, D.value]]);
|
|
164
166
|
};
|
|
165
167
|
}
|
|
166
|
-
}), [["__scopeId", "data-v-
|
|
168
|
+
}), [["__scopeId", "data-v-a119abb8"]]);
|
|
167
169
|
//#endregion
|
|
168
170
|
export { T as t };
|