nxd-plugin 1.7.87 → 1.7.88
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-EarlyWarningStatistic2-BStW2Xsz.mjs +108 -0
- package/dist/chunks/{component-GeologyLiveAlarm-CMXOTx5j.mjs → component-GeologyLiveAlarm-D9YG_XOp.mjs} +14 -13
- package/dist/chunks/{component-HdPreSituation-Gs-4kLt9.mjs → component-HdPreSituation-CjWE4U3Z.mjs} +1 -1
- package/dist/chunks/component-HdRadarList-BeweWRve.mjs +198 -0
- package/dist/chunks/{component-HdStationTem-CANDy7Fq.mjs → component-HdStationTem-9OJ8fQur.mjs} +1 -1
- package/dist/chunks/{component-HighwayLiveAlarmNew-0VBacjC1.mjs → component-HighwayLiveAlarmNew-_OLfGJ_V.mjs} +245 -187
- package/dist/chunks/{component-PrecipitationRanking-Dn_f6VvE.mjs → component-PrecipitationRanking-B9PiOW6V.mjs} +8 -4
- package/dist/chunks/component-RadarShortTerm-bhfG_pGu.mjs +361 -0
- package/dist/chunks/{component-ReservoirLiveAlarm-CT0n40Yj.mjs → component-ReservoirLiveAlarm-CeFxt9TC.mjs} +16 -15
- package/dist/chunks/{component-StationDialog-CLDw6g18.mjs → component-StationDialog-Cx3qkxHK.mjs} +1 -1
- package/dist/chunks/{component-StationList-CnEkXH5A.mjs → component-StationList-BVrF2FB9.mjs} +1 -1
- package/dist/chunks/{component-YCDataService-8-ZeehBm.mjs → component-YCDataService-BKPAF4Ff.mjs} +1 -1
- package/dist/components/EarlyWarningStatistic2/EarlyWarningStatistic2.vue.d.ts +33 -0
- package/dist/components/HdRadarList/HdRadarList.vue.d.ts +47 -0
- package/dist/index.d.ts +3 -1
- package/dist/nxd-plugin.mjs +33 -31
- package/dist/styles/component-EarlyWarningStatistic2.css +1 -0
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-GeologyLiveAlarm.css +1 -1
- package/dist/styles/component-HdRadarList.css +1 -0
- package/dist/styles/component-HdSeaCase.css +1 -1
- package/dist/styles/component-HdServiceRequirements.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-PrecipitationRanking.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-ReservoirLiveAlarm.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-RadarShortTerm-BSmO6YnL.mjs +0 -410
- /package/dist/chunks/{component-ChartCumulativePre-DQd3wA9O.mjs → component-ChartCumulativePre-BVHBo0Gl.mjs} +0 -0
- /package/dist/chunks/{component-ChartServiceMaterial-DgvgFhey.mjs → component-ChartServiceMaterial-B17TVkqd.mjs} +0 -0
- /package/dist/chunks/{component-HdCameraList-KOxPUhWS.mjs → component-HdCameraList-BQeb5qcu.mjs} +0 -0
- /package/dist/chunks/{component-HdForecastProducts-CM0yAQqM.mjs → component-HdForecastProducts-fBB5qlnN.mjs} +0 -0
- /package/dist/chunks/{component-HdHeatService-CsLhZnCr.mjs → component-HdHeatService-CAaWsoLT.mjs} +0 -0
- /package/dist/chunks/{component-HdObservation-b4_eCslF.mjs → component-HdObservation-BDgQzt1b.mjs} +0 -0
- /package/dist/chunks/{component-HdRadarTime-qFNv-RIt.mjs → component-HdRadarTime-8C-zLoCF.mjs} +0 -0
- /package/dist/chunks/{component-HdSeaCase-CxGa1ebz.mjs → component-HdSeaCase-CaBGwz9H.mjs} +0 -0
- /package/dist/chunks/{component-HdServiceMarterial-nYE4qYI5.mjs → component-HdServiceMarterial-AUSyf9Mh.mjs} +0 -0
- /package/dist/chunks/{component-HdServiceRequirements-CpHkf6r1.mjs → component-HdServiceRequirements-BEy5QGcP.mjs} +0 -0
- /package/dist/chunks/{component-HdSuggestion-Dgi1TAkp.mjs → component-HdSuggestion-3itGoocz.mjs} +0 -0
- /package/dist/chunks/{component-HdWaveForcast-D2S21PpR.mjs → component-HdWaveForcast-CvFuVCf_.mjs} +0 -0
- /package/dist/chunks/{component-HighQuality-ygyYaqWB.mjs → component-HighQuality-pp_4lHN_.mjs} +0 -0
- /package/dist/chunks/{component-IntroducePic-Dd94oBap.mjs → component-IntroducePic-DDZOk8TM.mjs} +0 -0
- /package/dist/chunks/{component-YCDataMonitor-Bx4kFFJ1.mjs → component-YCDataMonitor-Ctou4b5f.mjs} +0 -0
- /package/dist/chunks/{component-YCHomeLegend-DyT_wInk.mjs → component-YCHomeLegend-DxH8hLlL.mjs} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as e } from "./component-AqiMonitor-DOK4C-xg.mjs";
|
|
2
2
|
import { i as t } from "./component-AiChat-BnEFgV35.mjs";
|
|
3
|
-
import { n } from "./component-GeologyLiveAlarm-
|
|
3
|
+
import { n } from "./component-GeologyLiveAlarm-D9YG_XOp.mjs";
|
|
4
4
|
import { ElCheckbox as r, ElIcon as i, ElLoadingDirective as a, ElOption as o, ElRadio as s, ElRadioGroup as c, ElSelect as l } from "element-plus/es";
|
|
5
|
-
import { Fragment as u, computed as d, createBlock as ee, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, nextTick as te, normalizeClass as v,
|
|
6
|
-
import { ArrowRight as
|
|
7
|
-
import * as
|
|
5
|
+
import { Fragment as u, computed as d, createBlock as ee, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, nextTick as te, normalizeClass as v, onBeforeUnmount as ne, onMounted as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, vShow as T, withCtx as E, withDirectives as D } from "vue";
|
|
6
|
+
import { ArrowRight as O } from "@element-plus/icons-vue";
|
|
7
|
+
import * as re from "echarts";
|
|
8
8
|
import "element-plus/es/components/loading/style/css";
|
|
9
9
|
import "element-plus/es/components/radio/style/css";
|
|
10
10
|
import "element-plus/es/components/radio-group/style/css";
|
|
@@ -12,52 +12,61 @@ import "element-plus/es/components/select/style/css";
|
|
|
12
12
|
import "element-plus/es/components/option/style/css";
|
|
13
13
|
import "element-plus/es/components/checkbox/style/css";
|
|
14
14
|
//#region src/components/HighwayLiveAlarmNew/HighwayLiveAlarmNew.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
15
|
+
var ie = {
|
|
16
16
|
class: "HighwayLiveAlarmNew",
|
|
17
17
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
18
|
-
},
|
|
18
|
+
}, ae = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "voice-permission-mask"
|
|
21
|
-
},
|
|
21
|
+
}, oe = { class: "HighwayLiveAlarmNew-head" }, se = { class: "HighwayLiveAlarmNew-head-top" }, ce = { class: "head-actions" }, le = { class: "view-switch" }, ue = { class: "HighwayLiveAlarmNew-setting-panel" }, de = { class: "display-setting" }, fe = { style: { display: "flex" } }, pe = {
|
|
22
22
|
class: "setting-row setting-row-pile",
|
|
23
23
|
style: { flex: "1" }
|
|
24
|
-
},
|
|
24
|
+
}, me = { class: "setting-pile-options" }, he = {
|
|
25
25
|
class: "setting-row setting-row-pile",
|
|
26
26
|
style: { flex: "1" }
|
|
27
|
-
},
|
|
27
|
+
}, ge = { class: "setting-pile-options" }, _e = {
|
|
28
28
|
class: "setting-row",
|
|
29
29
|
style: { "align-items": "flex-start" }
|
|
30
|
-
},
|
|
30
|
+
}, ve = { class: "HighwayLiveAlarmNew-chart" }, ye = { class: "HighwayLiveAlarmNew-setting-panel" }, be = { class: "display-setting" }, xe = { style: { display: "flex" } }, Se = {
|
|
31
|
+
class: "setting-row setting-row-pile",
|
|
32
|
+
style: { flex: "1" }
|
|
33
|
+
}, Ce = { class: "setting-pile-options" }, we = {
|
|
34
|
+
class: "setting-row setting-row-pile",
|
|
35
|
+
style: { flex: "1" }
|
|
36
|
+
}, Te = { class: "setting-pile-options" }, Ee = {
|
|
37
|
+
class: "setting-row",
|
|
38
|
+
style: { "align-items": "flex-start" }
|
|
39
|
+
}, De = { class: "setting-row" }, Oe = { class: "HighwayLiveAlarmNew-table" }, ke = { class: "table-body" }, Ae = ["onClick"], je = { class: "name" }, Me = ["onClick"], Ne = {
|
|
31
40
|
key: 0,
|
|
32
41
|
style: { color: "red" }
|
|
33
|
-
},
|
|
42
|
+
}, Pe = { class: "station-panel" }, Fe = { class: "station-head" }, Ie = { class: "metric-head" }, Le = { class: "label" }, Re = {
|
|
34
43
|
key: 0,
|
|
35
44
|
class: "warn-count"
|
|
36
|
-
},
|
|
45
|
+
}, ze = { class: "metric-head" }, Be = { class: "label" }, Ve = {
|
|
37
46
|
key: 0,
|
|
38
47
|
class: "warn-count"
|
|
39
|
-
},
|
|
48
|
+
}, He = { class: "metric-head" }, Ue = { class: "label" }, We = {
|
|
40
49
|
key: 0,
|
|
41
50
|
class: "warn-count"
|
|
42
|
-
},
|
|
51
|
+
}, Ge = { class: "metric-head" }, Ke = { class: "label" }, qe = {
|
|
43
52
|
key: 0,
|
|
44
53
|
class: "warn-count"
|
|
45
|
-
},
|
|
54
|
+
}, Je = {
|
|
46
55
|
key: 0,
|
|
47
56
|
class: "station-body"
|
|
48
|
-
},
|
|
57
|
+
}, Ye = ["onClick"], Xe = { class: "metric-value" }, Ze = { class: "metric-value" }, Qe = { class: "metric-value" }, $e = { class: "metric-value" }, et = {
|
|
49
58
|
key: 1,
|
|
50
59
|
class: "station-empty"
|
|
51
|
-
},
|
|
60
|
+
}, tt = ["onClick"], nt = {
|
|
52
61
|
key: 0,
|
|
53
62
|
style: { color: "red" }
|
|
54
|
-
},
|
|
63
|
+
}, rt = { class: "pile-panel" }, it = {
|
|
55
64
|
key: 0,
|
|
56
65
|
class: "pile-body"
|
|
57
|
-
},
|
|
66
|
+
}, at = ["onClick"], ot = {
|
|
58
67
|
key: 1,
|
|
59
68
|
class: "pile-empty"
|
|
60
|
-
},
|
|
69
|
+
}, k = /* @__PURE__ */ e(/* @__PURE__ */ _({
|
|
61
70
|
__name: "HighwayLiveAlarmNew",
|
|
62
71
|
props: {
|
|
63
72
|
appKey: {
|
|
@@ -95,7 +104,7 @@ var oe = {
|
|
|
95
104
|
"toComponent"
|
|
96
105
|
],
|
|
97
106
|
setup(e, { emit: _ }) {
|
|
98
|
-
let k = e, A = _, j = x([]), M = x([]),
|
|
107
|
+
let k = e, A = _, j = x([]), M = x([]), st = {
|
|
99
108
|
"1h降水": {
|
|
100
109
|
field: "rainfall_1h",
|
|
101
110
|
unit: "mm"
|
|
@@ -120,43 +129,43 @@ var oe = {
|
|
|
120
129
|
field: "visibility_min",
|
|
121
130
|
unit: "km"
|
|
122
131
|
}
|
|
123
|
-
}, N = x(
|
|
124
|
-
let t =
|
|
132
|
+
}, N = x(!1), P = x(null), F = x(null), I = x("chart"), L = x("1h降水"), R = x(!0), z = x(!0), B = x(!1), V = x("全部"), H = x(["全部"]), ct = x("自动站观测时间:--"), U = x({}), W = x([]), G = x({}), K = x({}), q = x({}), J = null, lt = (e) => (e || []).filter((e) => X(e)).length, ut = () => J || (J = new Audio(n), J.preload = "auto", J), dt = () => new Promise((e) => {
|
|
133
|
+
let t = ut();
|
|
125
134
|
t.volume = 0, t.currentTime = 0;
|
|
126
135
|
let n = t.play();
|
|
127
136
|
if (!n) {
|
|
128
|
-
|
|
137
|
+
B.value = !0, e();
|
|
129
138
|
return;
|
|
130
139
|
}
|
|
131
140
|
n.then(() => {
|
|
132
141
|
t.pause(), t.volume = 1, e();
|
|
133
142
|
}).catch(() => {
|
|
134
|
-
|
|
143
|
+
B.value = !0, e();
|
|
135
144
|
});
|
|
136
|
-
}),
|
|
137
|
-
let e =
|
|
145
|
+
}), ft = () => {
|
|
146
|
+
let e = ut();
|
|
138
147
|
e.volume = 1, e.currentTime = 0, e.play().catch(() => {});
|
|
139
|
-
},
|
|
140
|
-
let e =
|
|
148
|
+
}, pt = () => {
|
|
149
|
+
let e = ut();
|
|
141
150
|
e.volume = 0, e.currentTime = 0;
|
|
142
151
|
let t = e.play();
|
|
143
152
|
if (!t) {
|
|
144
|
-
|
|
153
|
+
B.value = !1;
|
|
145
154
|
return;
|
|
146
155
|
}
|
|
147
156
|
t.then(() => {
|
|
148
|
-
e.pause(),
|
|
157
|
+
e.pause(), B.value = !1, W.value.some((e) => Z(e.tags)) && ft();
|
|
149
158
|
}).catch(() => {});
|
|
150
|
-
},
|
|
159
|
+
}, mt = d(() => Tt(V.value === "全部" ? W.value : W.value.filter((e) => e.name === V.value), (e) => Z(e.tags)));
|
|
151
160
|
y(() => {
|
|
152
|
-
|
|
153
|
-
|
|
161
|
+
ht(), P.value = setInterval(() => {
|
|
162
|
+
ht();
|
|
154
163
|
}, 1e3 * 60 * 6);
|
|
155
|
-
}),
|
|
156
|
-
|
|
164
|
+
}), ne(() => {
|
|
165
|
+
P.value && clearInterval(P.value), J && (J.pause(), J.currentTime = 0), A("removeLine", "line_HighwayLiveAlarmNew"), F.value?.dispose(), F.value = null;
|
|
157
166
|
});
|
|
158
|
-
let
|
|
159
|
-
await
|
|
167
|
+
let ht = async () => {
|
|
168
|
+
await _t(), N.value = !0;
|
|
160
169
|
let e = await t({
|
|
161
170
|
appKey: k.appKey,
|
|
162
171
|
appSalt: k.appSalt,
|
|
@@ -166,36 +175,39 @@ var oe = {
|
|
|
166
175
|
reqType: k.ids.road.reqType,
|
|
167
176
|
isFormData: k.ids.road.isFormData
|
|
168
177
|
});
|
|
169
|
-
|
|
178
|
+
N.value = !1;
|
|
170
179
|
let n = e.data.result.ds;
|
|
171
180
|
console.log("得到所有道路", JSON.parse(JSON.stringify(n))), M.value = n;
|
|
172
|
-
let r =
|
|
173
|
-
|
|
181
|
+
let r = ct.value, i = Et(n);
|
|
182
|
+
ct.value = i, A("removeDataTitle", r), setTimeout(() => {
|
|
174
183
|
A("addDataTitle", i);
|
|
175
184
|
}, 1e3);
|
|
176
185
|
let a = [], o = [], s = {}, c = [];
|
|
177
186
|
n.forEach((e) => {
|
|
178
|
-
let t =
|
|
187
|
+
let t = kt(e), n = Tt(e.zdzds || [], (e) => X(e)), r = Dt(e.zhds || []), i = !!(t.iswarnrainfall_1h || t.iswarnrainfall_6h || t.iswarntemp || t.iswarnvis);
|
|
179
188
|
i && o.push({
|
|
180
189
|
name: e.name,
|
|
181
190
|
...t
|
|
182
|
-
})
|
|
191
|
+
});
|
|
192
|
+
let l = jt(t);
|
|
193
|
+
s[e.name] = At(e), c.push({
|
|
183
194
|
name: e.name,
|
|
184
195
|
stations: n,
|
|
185
196
|
piles: r,
|
|
186
197
|
pileWarnCount: r.filter((e) => e.isWarn).length,
|
|
187
|
-
warnCount:
|
|
188
|
-
tags:
|
|
198
|
+
warnCount: Mt(n),
|
|
199
|
+
tags: l
|
|
189
200
|
});
|
|
190
|
-
let
|
|
201
|
+
let u = i ? "#ff4d4f" : "#52c41a";
|
|
191
202
|
a.push({
|
|
192
203
|
value: 1,
|
|
193
204
|
name: e.name,
|
|
194
|
-
itemStyle: { color:
|
|
195
|
-
label: { color:
|
|
205
|
+
itemStyle: { color: u },
|
|
206
|
+
label: { color: u },
|
|
207
|
+
warnTags: l.filter((e) => e.warn).map((e) => e.label)
|
|
196
208
|
});
|
|
197
|
-
}),
|
|
198
|
-
},
|
|
209
|
+
}), U.value = s, W.value = c, H.value = ["全部", ...c.map((e) => e.name)], H.value.includes(V.value) || (V.value = "全部"), Ht(V.value), Jt(), await dt(), o.length > 0 && ft(), Nt(a);
|
|
210
|
+
}, gt = (e, t) => {
|
|
199
211
|
A("toMapView", {
|
|
200
212
|
lng: e.longitude ? Number(e.longitude) : Number(e.x),
|
|
201
213
|
lat: e.latitude ? Number(e.latitude) : Number(e.y),
|
|
@@ -218,8 +230,8 @@ var oe = {
|
|
|
218
230
|
}, 300);
|
|
219
231
|
}
|
|
220
232
|
}, 500);
|
|
221
|
-
},
|
|
222
|
-
|
|
233
|
+
}, _t = async () => {
|
|
234
|
+
N.value = !0;
|
|
223
235
|
let e = await t({
|
|
224
236
|
appKey: k.appKey,
|
|
225
237
|
appSalt: k.appSalt,
|
|
@@ -229,38 +241,38 @@ var oe = {
|
|
|
229
241
|
reqType: k.ids.pieNumber.reqType,
|
|
230
242
|
isFormData: k.ids.pieNumber.isFormData
|
|
231
243
|
});
|
|
232
|
-
|
|
244
|
+
N.value = !1, j.value = e.data.result.output || [], console.log("得到所有桩号", j.value);
|
|
233
245
|
}, Y = (e) => {
|
|
234
246
|
let t = Number(e);
|
|
235
247
|
return t < 999999 && t > -999999;
|
|
236
|
-
},
|
|
248
|
+
}, vt = (e, t, n = 1) => {
|
|
237
249
|
let r = Number(e);
|
|
238
250
|
return Y(r) ? `${r.toFixed(n)}${t}` : "";
|
|
239
|
-
},
|
|
251
|
+
}, yt = (e) => {
|
|
240
252
|
let t = Number(e);
|
|
241
253
|
return Y(t) ? `${(t / 1e3).toFixed(1)}km` : "";
|
|
242
|
-
},
|
|
254
|
+
}, bt = (e, t = 1) => {
|
|
243
255
|
let n = Number(e);
|
|
244
256
|
return Y(n) ? n.toFixed(t) : "--";
|
|
245
|
-
},
|
|
257
|
+
}, xt = (e) => {
|
|
246
258
|
let t = Number(e);
|
|
247
259
|
return Y(t) ? (t / 1e3).toFixed(1) : "--";
|
|
248
|
-
},
|
|
260
|
+
}, X = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1, St = (e) => e?.zdzds?.iswarnpre === 1 || e?.zdzds?.iswarnpre_6 === 1 || e?.zdzds?.iswarntemp === 1 || e?.zdzds?.iswarnvis === 1, Ct = (e) => e?.Name || e?.name || e?.column || "--", wt = (e, t = 1) => {
|
|
249
261
|
let n = Number(e);
|
|
250
262
|
return Y(n) ? n.toFixed(t) : "--";
|
|
251
|
-
},
|
|
263
|
+
}, Z = (e) => e.some((e) => e.warn), Tt = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Et = (e) => {
|
|
252
264
|
let t = (e || []).find((e) => (e?.zdzds || []).length)?.zdzds?.[0]?.observation_time;
|
|
253
265
|
return t ? `自动站观测时间:${String(t).replace("T", " ").slice(0, 13)}时` : "自动站观测时间:--";
|
|
254
|
-
},
|
|
255
|
-
pileNo:
|
|
256
|
-
isWarn:
|
|
257
|
-
rainfall:
|
|
258
|
-
rainfall_6h:
|
|
259
|
-
temperature:
|
|
260
|
-
visibility:
|
|
266
|
+
}, Dt = (e) => Tt((e || []).map((e) => ({
|
|
267
|
+
pileNo: Ct(e),
|
|
268
|
+
isWarn: St(e),
|
|
269
|
+
rainfall: wt(e?.zdzds?.rainfall_1h),
|
|
270
|
+
rainfall_6h: wt(e?.zdzds?.rainfall_6h),
|
|
271
|
+
temperature: wt(e?.zdzds?.temperature),
|
|
272
|
+
visibility: xt(e?.zdzds?.visibility_min),
|
|
261
273
|
x: e?.x,
|
|
262
274
|
y: e?.y
|
|
263
|
-
})), (e) => e.isWarn),
|
|
275
|
+
})), (e) => e.isWarn), Ot = () => V.value === "全部" ? W.value.flatMap((e) => e.stations || []) : W.value.find((e) => e.name === V.value)?.stations || [], Q = (e, t, n) => e.find((e) => e?.[t] === 1 && Y(e?.[n])) || e.find((e) => e?.[t] === 1), $ = (e, t) => (e || []).find((e) => e?.zdzds?.[t] === 1), kt = (e) => {
|
|
264
276
|
let t = e.zdzds || [], n = e.zhds || [], r = Q(t, "iswarnpre", "rainfall_1h"), i = Q(t, "iswarnpre_6", "rainfall_6h"), a = Q(t, "iswarntemp", "temperature"), o = Q(t, "iswarnvis", "visibility_min"), s = $(n, "iswarnpre"), c = $(n, "iswarnpre_6"), l = $(n, "iswarntemp"), u = $(n, "iswarnvis");
|
|
265
277
|
return {
|
|
266
278
|
iswarnrainfall_1h: r || s ? 1 : 0,
|
|
@@ -276,7 +288,7 @@ var oe = {
|
|
|
276
288
|
tempWarnPile: l,
|
|
277
289
|
visWarnPile: u
|
|
278
290
|
};
|
|
279
|
-
},
|
|
291
|
+
}, At = (e) => {
|
|
280
292
|
let t = e.layer_name;
|
|
281
293
|
return {
|
|
282
294
|
oneLayer: {
|
|
@@ -287,43 +299,40 @@ var oe = {
|
|
|
287
299
|
visible: !0,
|
|
288
300
|
zIndex: 200
|
|
289
301
|
};
|
|
290
|
-
},
|
|
302
|
+
}, jt = (e) => {
|
|
291
303
|
let t = e.iswarnrainfall_1h === 1 || e.iswarnrainfall_6h === 1;
|
|
292
304
|
return [
|
|
293
305
|
{
|
|
294
306
|
label: "降水",
|
|
295
307
|
warn: t,
|
|
296
|
-
value: t ?
|
|
308
|
+
value: t ? vt(e.rainfallWarnStation?.rainfall_1h || e.rainfall6hWarnStation?.rainfall_6h, "mm", 1) : ""
|
|
297
309
|
},
|
|
298
310
|
{
|
|
299
311
|
label: "温度",
|
|
300
312
|
warn: e.iswarntemp === 1,
|
|
301
|
-
value: e.iswarntemp ?
|
|
313
|
+
value: e.iswarntemp ? vt(e.tempWarnStation?.temperature, "℃", 1) : ""
|
|
302
314
|
},
|
|
303
315
|
{
|
|
304
316
|
label: "能见度",
|
|
305
317
|
warn: e.iswarnvis === 1,
|
|
306
|
-
value: e.iswarnvis ?
|
|
318
|
+
value: e.iswarnvis ? yt(e.visWarnStation?.visibility_min) : ""
|
|
307
319
|
}
|
|
308
320
|
];
|
|
309
|
-
},
|
|
321
|
+
}, Mt = (e) => ({
|
|
310
322
|
rainfall_1h: e.filter((e) => e?.iswarnpre === 1).length,
|
|
311
323
|
rainfall_6h: e.filter((e) => e?.iswarnpre_6 === 1).length,
|
|
312
324
|
temp: e.filter((e) => e?.iswarntemp === 1).length,
|
|
313
325
|
vis: e.filter((e) => e?.iswarnvis === 1).length
|
|
314
|
-
}),
|
|
315
|
-
let t = [];
|
|
316
|
-
return (e.iswarnrainfall_1h || e.iswarnrainfall_6h) && t.push("降水"), e.iswarntemp && t.push("温度"), e.iswarnvis && t.push("能见度"), `${e.name}高速${t.join("、")}报警`;
|
|
317
|
-
}).join(",")},请合理安排出行!` : O, At = (e) => {
|
|
326
|
+
}), Nt = (e) => {
|
|
318
327
|
let t = document.querySelector(".HighwayLiveAlarmNew-chart");
|
|
319
328
|
if (!t) return;
|
|
320
|
-
F.value ||=
|
|
329
|
+
F.value ||= re.init(t);
|
|
321
330
|
let n = {
|
|
322
331
|
tooltip: {
|
|
323
332
|
trigger: "item",
|
|
324
333
|
formatter: (e) => {
|
|
325
|
-
let t = e?.data?.
|
|
326
|
-
return `${e?.name ?? ""} <span style="color:${
|
|
334
|
+
let t = e?.data?.warnTags || [], n = e?.data?.itemStyle?.color === "#ff4d4f" ? "#ff4d4f" : "#52c41a";
|
|
335
|
+
return t.length ? `${e?.name ?? ""} <span style="color:${n};">${t.join("、")}报警</span>` : `${e?.name ?? ""} <span style="color:${n};">正常</span>`;
|
|
327
336
|
}
|
|
328
337
|
},
|
|
329
338
|
color: "#52c41a",
|
|
@@ -346,12 +355,12 @@ var oe = {
|
|
|
346
355
|
}]
|
|
347
356
|
};
|
|
348
357
|
F.value.setOption(n);
|
|
349
|
-
},
|
|
358
|
+
}, Pt = async (e) => {
|
|
350
359
|
I.value = e, e === "chart" && (await te(), F.value?.resize());
|
|
351
|
-
},
|
|
360
|
+
}, Ft = (e) => e === "全部" ? Object.values(U.value) : U.value[e] ? [U.value[e]] : [], It = () => V.value === "全部" ? M.value : M.value.filter((e) => e.name === V.value), Lt = (e) => e?.pointds || e?.pointds$1 || [], Rt = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
|
|
352
361
|
lng: Number(e.x ?? e.longitude),
|
|
353
362
|
lat: Number(e.y ?? e.latitude)
|
|
354
|
-
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)),
|
|
363
|
+
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), zt = (e, t) => {
|
|
355
364
|
let n = [
|
|
356
365
|
t?.station_number,
|
|
357
366
|
t?.stationid,
|
|
@@ -372,15 +381,15 @@ var oe = {
|
|
|
372
381
|
let a = Number(e?.x ?? e?.longitude), o = Number(e?.y ?? e?.latitude);
|
|
373
382
|
return Number.isFinite(r) && Number.isFinite(i) && Number.isFinite(a) && Number.isFinite(o) && a === r && o === i;
|
|
374
383
|
});
|
|
375
|
-
},
|
|
384
|
+
}, Bt = () => {
|
|
376
385
|
A("removeLine", "line_HighwayLiveAlarmNew");
|
|
377
386
|
let e = { lineArr: [] }, t = /* @__PURE__ */ new Set();
|
|
378
|
-
if (
|
|
379
|
-
let r =
|
|
387
|
+
if (It().forEach((n) => {
|
|
388
|
+
let r = Lt(n);
|
|
380
389
|
if (r.length < 2) return;
|
|
381
390
|
let i = r.filter((e) => e.name === n.name);
|
|
382
391
|
if (i.length < 2) return;
|
|
383
|
-
let a = [...(n.zdzds || []).filter((e) =>
|
|
392
|
+
let a = [...(n.zdzds || []).filter((e) => X(e)), ...(n.zhds || []).filter((e) => St(e))].map((e) => zt(i, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
|
|
384
393
|
if (!a.length) return;
|
|
385
394
|
let o = (n) => {
|
|
386
395
|
if (n.length !== 2) return;
|
|
@@ -394,7 +403,7 @@ var oe = {
|
|
|
394
403
|
}));
|
|
395
404
|
};
|
|
396
405
|
if (a.length === 1) {
|
|
397
|
-
o(
|
|
406
|
+
o(Rt(i, a[0]));
|
|
398
407
|
return;
|
|
399
408
|
}
|
|
400
409
|
for (let e = 0; e < a.length - 1; e++) {
|
|
@@ -415,20 +424,20 @@ var oe = {
|
|
|
415
424
|
removeLine: "line_HighwayLiveAlarmNew",
|
|
416
425
|
mapLine: e
|
|
417
426
|
});
|
|
418
|
-
},
|
|
419
|
-
let e =
|
|
420
|
-
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0),
|
|
421
|
-
},
|
|
422
|
-
|
|
427
|
+
}, Vt = () => {
|
|
428
|
+
let e = mt.value.find((e) => Z(e.tags)), t = {}, n = {}, r = {};
|
|
429
|
+
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), G.value = t, K.value = n, q.value = r;
|
|
430
|
+
}, Ht = (e) => {
|
|
431
|
+
V.value = e, Vt(), A("removeLayers", Object.values(U.value).map((e) => e.name)), setTimeout(() => {
|
|
423
432
|
A("addLayers", {
|
|
424
|
-
layers:
|
|
433
|
+
layers: Ft(e),
|
|
425
434
|
isRemove: !0
|
|
426
435
|
});
|
|
427
|
-
}, 1e3),
|
|
428
|
-
},
|
|
436
|
+
}, 1e3), Kt(), Bt();
|
|
437
|
+
}, Ut = () => st[L.value], Wt = (e, t) => {
|
|
429
438
|
let n = Number(e?.[t]);
|
|
430
439
|
return Y(n) ? t === "visibility_min" ? (n / 1e3).toString() : String(e?.[t]) : "";
|
|
431
|
-
},
|
|
440
|
+
}, Gt = (e, t, n) => `
|
|
432
441
|
<div id="station_${e.station_number}" style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
|
|
433
442
|
<div style='color:blue;font-size:14px;font-bold:true;transform:scale(0.9);text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff,1px 1px #fff,-1px -1px #fff,1px -1px #fff,-1px 1px #fff;'>
|
|
434
443
|
${t}${n}
|
|
@@ -438,7 +447,7 @@ var oe = {
|
|
|
438
447
|
${e.station_name || "--"}
|
|
439
448
|
</div>
|
|
440
449
|
</div>
|
|
441
|
-
`,
|
|
450
|
+
`, Kt = () => {
|
|
442
451
|
let e = {
|
|
443
452
|
clickOpen: !1,
|
|
444
453
|
spotObject: [{
|
|
@@ -453,9 +462,9 @@ var oe = {
|
|
|
453
462
|
}],
|
|
454
463
|
drawArrObj: [],
|
|
455
464
|
onlyLayerID: "station_highway"
|
|
456
|
-
}, t =
|
|
457
|
-
|
|
458
|
-
let i =
|
|
465
|
+
}, t = Ut(), n = t.field, r = t.unit;
|
|
466
|
+
Ot().forEach((t) => {
|
|
467
|
+
let i = Gt(t, Wt(t, n), r), a = {
|
|
459
468
|
lng: t.longitude,
|
|
460
469
|
lat: t.latitude,
|
|
461
470
|
htmlString: i,
|
|
@@ -467,12 +476,12 @@ var oe = {
|
|
|
467
476
|
mapMarker: e,
|
|
468
477
|
removeMarker: "station_highway"
|
|
469
478
|
});
|
|
470
|
-
},
|
|
479
|
+
}, qt = () => {
|
|
471
480
|
A("toComponent", {
|
|
472
481
|
componentName: "PieLegend",
|
|
473
|
-
show:
|
|
482
|
+
show: z.value
|
|
474
483
|
});
|
|
475
|
-
},
|
|
484
|
+
}, Jt = () => {
|
|
476
485
|
if (!R.value) return A("removeMarker", "pile_highway");
|
|
477
486
|
let e = {
|
|
478
487
|
clickOpen: !0,
|
|
@@ -533,110 +542,159 @@ var oe = {
|
|
|
533
542
|
mapMarker: e,
|
|
534
543
|
removeMarker: "pile_highway"
|
|
535
544
|
});
|
|
536
|
-
},
|
|
537
|
-
let t = !!
|
|
538
|
-
|
|
539
|
-
},
|
|
540
|
-
G.value[e] = !G.value[e];
|
|
541
|
-
}, Jt = (e) => {
|
|
545
|
+
}, Yt = (e) => {
|
|
546
|
+
let t = !!G.value[e];
|
|
547
|
+
G.value[e] = !t, t || (K.value[e] = !1, q.value[e] = !0);
|
|
548
|
+
}, Xt = (e) => {
|
|
542
549
|
K.value[e] = !K.value[e];
|
|
543
|
-
},
|
|
550
|
+
}, Zt = (e) => {
|
|
551
|
+
q.value[e] = !q.value[e];
|
|
552
|
+
}, Qt = () => {
|
|
544
553
|
A("close", "HighwayLiveAlarmNew");
|
|
545
554
|
};
|
|
546
555
|
return (e, t) => {
|
|
547
|
-
let n = r, d = s, _ = c, te = o,
|
|
548
|
-
return D((b(), p("div",
|
|
549
|
-
|
|
550
|
-
t[
|
|
551
|
-
t[
|
|
556
|
+
let n = r, d = s, _ = c, te = o, ne = l, y = i, x = a;
|
|
557
|
+
return D((b(), p("div", ie, [
|
|
558
|
+
B.value ? (b(), p("div", ae, [m("div", { class: "voice-permission-dialog" }, [
|
|
559
|
+
t[9] ||= m("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
|
|
560
|
+
t[10] ||= m("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
|
|
552
561
|
m("button", {
|
|
553
562
|
class: "voice-permission-btn",
|
|
554
|
-
onClick:
|
|
563
|
+
onClick: pt
|
|
555
564
|
}, "开启")
|
|
556
565
|
])])) : f("", !0),
|
|
557
|
-
m("div",
|
|
566
|
+
m("div", oe, [m("div", se, [t[11] ||= m("div", null, "沿线高速公路实况报警", -1), m("div", ce, [m("div", le, [m("button", {
|
|
558
567
|
class: v(["switch-btn", { active: I.value === "chart" }]),
|
|
559
|
-
onClick: t[0] ||= (e) =>
|
|
568
|
+
onClick: t[0] ||= (e) => Pt("chart")
|
|
560
569
|
}, " 图表 ", 2), m("button", {
|
|
561
570
|
class: v(["switch-btn", { active: I.value === "table" }]),
|
|
562
|
-
onClick: t[1] ||= (e) =>
|
|
571
|
+
onClick: t[1] ||= (e) => Pt("table")
|
|
563
572
|
}, " 表格 ", 2)]), m("div", {
|
|
564
573
|
class: "closeBtn",
|
|
565
|
-
onClick:
|
|
574
|
+
onClick: Qt,
|
|
566
575
|
title: "关闭"
|
|
567
|
-
})])]), t[
|
|
576
|
+
})])]), t[12] ||= m("img", {
|
|
568
577
|
class: "HighwayLiveAlarmNew-head-line",
|
|
569
578
|
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",
|
|
570
579
|
alt: ""
|
|
571
580
|
}, null, -1)]),
|
|
572
|
-
D(m("div", {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
581
|
+
D(m("div", ue, [m("div", de, [m("div", fe, [m("div", pe, [t[14] ||= m("span", { class: "setting-label" }, "桩号展示:", -1), m("div", me, [g(n, {
|
|
582
|
+
modelValue: R.value,
|
|
583
|
+
"onUpdate:modelValue": t[2] ||= (e) => R.value = e,
|
|
584
|
+
class: "pile-checkbox",
|
|
585
|
+
onChange: Jt
|
|
586
|
+
}, {
|
|
587
|
+
default: E(() => [...t[13] ||= [h(" 显示 ", -1)]]),
|
|
588
|
+
_: 1
|
|
589
|
+
}, 8, ["modelValue"])])]), m("div", he, [t[16] ||= m("span", { class: "setting-label" }, "桩号图例:", -1), m("div", ge, [g(n, {
|
|
590
|
+
modelValue: z.value,
|
|
591
|
+
"onUpdate:modelValue": t[3] ||= (e) => z.value = e,
|
|
592
|
+
class: "pile-checkbox",
|
|
593
|
+
onChange: qt
|
|
594
|
+
}, {
|
|
595
|
+
default: E(() => [...t[15] ||= [h(" 显示 ", -1)]]),
|
|
596
|
+
_: 1
|
|
597
|
+
}, 8, ["modelValue"])])])]), m("div", _e, [t[23] ||= m("span", {
|
|
598
|
+
class: "setting-label",
|
|
599
|
+
style: { "margin-top": "2px" }
|
|
600
|
+
}, "地图要素:", -1), g(_, {
|
|
601
|
+
modelValue: L.value,
|
|
602
|
+
"onUpdate:modelValue": t[4] ||= (e) => L.value = e,
|
|
603
|
+
class: "setting-radios",
|
|
604
|
+
onChange: Kt
|
|
605
|
+
}, {
|
|
606
|
+
default: E(() => [
|
|
607
|
+
g(d, { value: "1h降水" }, {
|
|
608
|
+
default: E(() => [...t[17] ||= [h("1h降水", -1)]]),
|
|
609
|
+
_: 1
|
|
610
|
+
}),
|
|
611
|
+
g(d, { value: "3h降水" }, {
|
|
612
|
+
default: E(() => [...t[18] ||= [h("3h降水", -1)]]),
|
|
613
|
+
_: 1
|
|
614
|
+
}),
|
|
615
|
+
g(d, { value: "6h降水" }, {
|
|
616
|
+
default: E(() => [...t[19] ||= [h("6h降水", -1)]]),
|
|
617
|
+
_: 1
|
|
618
|
+
}),
|
|
619
|
+
g(d, { value: "当前累计降水" }, {
|
|
620
|
+
default: E(() => [...t[20] ||= [h("当前累计降水", -1)]]),
|
|
621
|
+
_: 1
|
|
622
|
+
}),
|
|
623
|
+
g(d, { value: "温度" }, {
|
|
624
|
+
default: E(() => [...t[21] ||= [h("温度", -1)]]),
|
|
625
|
+
_: 1
|
|
626
|
+
}),
|
|
627
|
+
g(d, { value: "能见度" }, {
|
|
628
|
+
default: E(() => [...t[22] ||= [h("能见度", -1)]]),
|
|
629
|
+
_: 1
|
|
630
|
+
})
|
|
631
|
+
]),
|
|
632
|
+
_: 1
|
|
633
|
+
}, 8, ["modelValue"])])])], 512), [[T, I.value === "chart"]]),
|
|
634
|
+
D(m("div", ve, null, 512), [[T, I.value === "chart"]]),
|
|
635
|
+
D(m("div", ye, [m("div", be, [
|
|
636
|
+
m("div", xe, [m("div", Se, [t[25] ||= m("span", { class: "setting-label" }, "桩号展示:", -1), m("div", Ce, [g(n, {
|
|
579
637
|
modelValue: R.value,
|
|
580
|
-
"onUpdate:modelValue": t[
|
|
638
|
+
"onUpdate:modelValue": t[5] ||= (e) => R.value = e,
|
|
581
639
|
class: "pile-checkbox",
|
|
582
|
-
onChange:
|
|
640
|
+
onChange: Jt
|
|
583
641
|
}, {
|
|
584
|
-
default: E(() => [...t[
|
|
642
|
+
default: E(() => [...t[24] ||= [h(" 显示 ", -1)]]),
|
|
585
643
|
_: 1
|
|
586
|
-
}, 8, ["modelValue"])])]), m("div",
|
|
587
|
-
modelValue:
|
|
588
|
-
"onUpdate:modelValue": t[
|
|
644
|
+
}, 8, ["modelValue"])])]), m("div", we, [t[27] ||= m("span", { class: "setting-label" }, "桩号图例:", -1), m("div", Te, [g(n, {
|
|
645
|
+
modelValue: z.value,
|
|
646
|
+
"onUpdate:modelValue": t[6] ||= (e) => z.value = e,
|
|
589
647
|
class: "pile-checkbox",
|
|
590
|
-
onChange:
|
|
648
|
+
onChange: qt
|
|
591
649
|
}, {
|
|
592
|
-
default: E(() => [...t[
|
|
650
|
+
default: E(() => [...t[26] ||= [h(" 显示 ", -1)]]),
|
|
593
651
|
_: 1
|
|
594
652
|
}, 8, ["modelValue"])])])]),
|
|
595
|
-
m("div",
|
|
653
|
+
m("div", Ee, [t[34] ||= m("span", {
|
|
596
654
|
class: "setting-label",
|
|
597
655
|
style: { "margin-top": "2px" }
|
|
598
656
|
}, "地图要素:", -1), g(_, {
|
|
599
657
|
modelValue: L.value,
|
|
600
|
-
"onUpdate:modelValue": t[
|
|
658
|
+
"onUpdate:modelValue": t[7] ||= (e) => L.value = e,
|
|
601
659
|
class: "setting-radios",
|
|
602
|
-
onChange:
|
|
660
|
+
onChange: Kt
|
|
603
661
|
}, {
|
|
604
662
|
default: E(() => [
|
|
605
663
|
g(d, { value: "1h降水" }, {
|
|
606
|
-
default: E(() => [...t[
|
|
664
|
+
default: E(() => [...t[28] ||= [h("1h降水", -1)]]),
|
|
607
665
|
_: 1
|
|
608
666
|
}),
|
|
609
667
|
g(d, { value: "3h降水" }, {
|
|
610
|
-
default: E(() => [...t[
|
|
668
|
+
default: E(() => [...t[29] ||= [h("3h降水", -1)]]),
|
|
611
669
|
_: 1
|
|
612
670
|
}),
|
|
613
671
|
g(d, { value: "6h降水" }, {
|
|
614
|
-
default: E(() => [...t[
|
|
672
|
+
default: E(() => [...t[30] ||= [h("6h降水", -1)]]),
|
|
615
673
|
_: 1
|
|
616
674
|
}),
|
|
617
675
|
g(d, { value: "当前累计降水" }, {
|
|
618
|
-
default: E(() => [...t[
|
|
676
|
+
default: E(() => [...t[31] ||= [h("当前累计降水", -1)]]),
|
|
619
677
|
_: 1
|
|
620
678
|
}),
|
|
621
679
|
g(d, { value: "温度" }, {
|
|
622
|
-
default: E(() => [...t[
|
|
680
|
+
default: E(() => [...t[32] ||= [h("温度", -1)]]),
|
|
623
681
|
_: 1
|
|
624
682
|
}),
|
|
625
683
|
g(d, { value: "能见度" }, {
|
|
626
|
-
default: E(() => [...t[
|
|
684
|
+
default: E(() => [...t[33] ||= [h("能见度", -1)]]),
|
|
627
685
|
_: 1
|
|
628
686
|
})
|
|
629
687
|
]),
|
|
630
688
|
_: 1
|
|
631
689
|
}, 8, ["modelValue"])]),
|
|
632
|
-
m("div",
|
|
633
|
-
modelValue:
|
|
634
|
-
"onUpdate:modelValue": t[
|
|
690
|
+
m("div", De, [t[35] ||= m("span", { class: "setting-label" }, "路线地图:", -1), g(ne, {
|
|
691
|
+
modelValue: V.value,
|
|
692
|
+
"onUpdate:modelValue": t[8] ||= (e) => V.value = e,
|
|
635
693
|
placeholder: "请选择路线",
|
|
636
694
|
class: "dark-select",
|
|
637
|
-
onChange:
|
|
695
|
+
onChange: Ht
|
|
638
696
|
}, {
|
|
639
|
-
default: E(() => [(b(!0), p(u, null, S(
|
|
697
|
+
default: E(() => [(b(!0), p(u, null, S(H.value, (e) => (b(), ee(te, {
|
|
640
698
|
key: e,
|
|
641
699
|
label: e,
|
|
642
700
|
value: e
|
|
@@ -644,83 +702,83 @@ var oe = {
|
|
|
644
702
|
_: 1
|
|
645
703
|
}, 8, ["modelValue"])])
|
|
646
704
|
])], 512), [[T, I.value === "table"]]),
|
|
647
|
-
D(m("div",
|
|
705
|
+
D(m("div", Oe, [t[48] ||= m("div", { class: "table-head" }, [
|
|
648
706
|
m("span", null, "高速名称"),
|
|
649
707
|
m("span", null, "状态要素"),
|
|
650
708
|
m("span", { class: "head-arrow" })
|
|
651
|
-
], -1), m("div",
|
|
709
|
+
], -1), m("div", ke, [(b(!0), p(u, null, S(mt.value, (e) => (b(), p("div", {
|
|
652
710
|
class: "table-row",
|
|
653
711
|
key: e.name
|
|
654
712
|
}, [
|
|
655
713
|
m("div", {
|
|
656
714
|
class: "table-row-main",
|
|
657
|
-
onClick: (t) =>
|
|
715
|
+
onClick: (t) => Yt(e.name)
|
|
658
716
|
}, [
|
|
659
|
-
m("span",
|
|
660
|
-
m("div", { class: v(["status-tags", { "has-warn":
|
|
717
|
+
m("span", je, C(e.name), 1),
|
|
718
|
+
m("div", { class: v(["status-tags", { "has-warn": Z(e.tags) }]) }, [(b(!0), p(u, null, S(e.tags, (t) => (b(), p("span", {
|
|
661
719
|
class: v(["status-tag", { warn: t.warn }]),
|
|
662
720
|
key: `${e.name}-${t.label}`
|
|
663
721
|
}, [m("span", null, C(t.label), 1)], 2))), 128))], 2),
|
|
664
722
|
m("span", {
|
|
665
|
-
class: v(["expand-arrow", { expanded:
|
|
723
|
+
class: v(["expand-arrow", { expanded: G.value[e.name] }]),
|
|
666
724
|
"aria-hidden": "true"
|
|
667
725
|
}, [g(y, null, {
|
|
668
|
-
default: E(() => [g(w(
|
|
726
|
+
default: E(() => [g(w(O))]),
|
|
669
727
|
_: 1
|
|
670
728
|
})], 2)
|
|
671
|
-
], 8,
|
|
729
|
+
], 8, Ae),
|
|
672
730
|
D(m("div", {
|
|
673
731
|
class: "station-title",
|
|
674
|
-
onClick: (t) =>
|
|
675
|
-
}, [m("span", null, [t[
|
|
676
|
-
default: E(() => [g(w(
|
|
732
|
+
onClick: (t) => Xt(e.name)
|
|
733
|
+
}, [m("span", null, [t[36] ||= h(" 自动站数据 ", -1), lt(e.stations) > 0 ? (b(), p("span", Ne, " (报警数量:" + C(lt(e.stations)) + "个) ", 1)) : f("", !0)]), m("span", { class: v(["panel-arrow", { expanded: K.value[e.name] }]) }, [g(y, null, {
|
|
734
|
+
default: E(() => [g(w(O))]),
|
|
677
735
|
_: 1
|
|
678
|
-
})], 2)], 8,
|
|
679
|
-
D(m("div",
|
|
680
|
-
t[
|
|
681
|
-
m("span",
|
|
682
|
-
m("span",
|
|
683
|
-
m("span",
|
|
684
|
-
m("span",
|
|
685
|
-
]), e.stations.length ? (b(), p("div",
|
|
686
|
-
class: v(["station-row", { "is-warn":
|
|
736
|
+
})], 2)], 8, Me), [[T, G.value[e.name]]]),
|
|
737
|
+
D(m("div", Pe, [m("div", Fe, [
|
|
738
|
+
t[45] ||= m("span", null, "站名", -1),
|
|
739
|
+
m("span", Ie, [m("span", Le, [t[37] ||= h(" 1h降水 ", -1), e.warnCount.rainfall_1h > 0 ? (b(), p("span", Re, C(e.warnCount.rainfall_1h) + "条 ", 1)) : f("", !0)]), t[38] ||= m("span", { class: "unit" }, "(mm)", -1)]),
|
|
740
|
+
m("span", ze, [m("span", Be, [t[39] ||= h(" 6h降水 ", -1), e.warnCount.rainfall_6h > 0 ? (b(), p("span", Ve, C(e.warnCount.rainfall_6h) + "条 ", 1)) : f("", !0)]), t[40] ||= m("span", { class: "unit" }, "(mm)", -1)]),
|
|
741
|
+
m("span", He, [m("span", Ue, [t[41] ||= h(" 温度 ", -1), e.warnCount.temp > 0 ? (b(), p("span", We, C(e.warnCount.temp) + "条 ", 1)) : f("", !0)]), t[42] ||= m("span", { class: "unit" }, "(℃)", -1)]),
|
|
742
|
+
m("span", Ge, [m("span", Ke, [t[43] ||= h(" 能见度 ", -1), e.warnCount.vis > 0 ? (b(), p("span", qe, C(e.warnCount.vis) + "条 ", 1)) : f("", !0)]), t[44] ||= m("span", { class: "unit" }, "(km)", -1)])
|
|
743
|
+
]), e.stations.length ? (b(), p("div", Je, [(b(!0), p(u, null, S(e.stations, (t) => (b(), p("div", {
|
|
744
|
+
class: v(["station-row", { "is-warn": X(t) }]),
|
|
687
745
|
key: `${e.name}-${t.station_number}`,
|
|
688
|
-
onClick: (e) =>
|
|
746
|
+
onClick: (e) => gt(t, "station")
|
|
689
747
|
}, [
|
|
690
748
|
m("span", null, C(t.station_name || "--"), 1),
|
|
691
|
-
m("span",
|
|
692
|
-
m("span",
|
|
693
|
-
m("span",
|
|
694
|
-
m("span",
|
|
695
|
-
], 10,
|
|
749
|
+
m("span", Xe, C(bt(t.rainfall_1h)), 1),
|
|
750
|
+
m("span", Ze, C(bt(t.rainfall_6h)), 1),
|
|
751
|
+
m("span", Qe, C(bt(t.temperature)), 1),
|
|
752
|
+
m("span", $e, C(xt(t.visibility_min)), 1)
|
|
753
|
+
], 10, Ye))), 128))])) : (b(), p("div", et, "暂无站点数据"))], 512), [[T, G.value[e.name] && K.value[e.name]]]),
|
|
696
754
|
D(m("div", {
|
|
697
755
|
class: "pile-title",
|
|
698
|
-
onClick: (t) =>
|
|
699
|
-
}, [m("span", null, [t[
|
|
700
|
-
default: E(() => [g(w(
|
|
756
|
+
onClick: (t) => Zt(e.name)
|
|
757
|
+
}, [m("span", null, [t[46] ||= h(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (b(), p("span", nt, " (报警数量:" + C(e.pileWarnCount) + "个)", 1)) : f("", !0)]), m("span", { class: v(["panel-arrow", { expanded: q.value[e.name] }]) }, [g(y, null, {
|
|
758
|
+
default: E(() => [g(w(O))]),
|
|
701
759
|
_: 1
|
|
702
|
-
})], 2)], 8,
|
|
703
|
-
D(m("div",
|
|
760
|
+
})], 2)], 8, tt), [[T, G.value[e.name]]]),
|
|
761
|
+
D(m("div", rt, [t[47] ||= m("div", { class: "pile-head" }, [
|
|
704
762
|
m("span", null, "桩号"),
|
|
705
763
|
m("span", null, "1h降水"),
|
|
706
764
|
m("span", null, "6h降水"),
|
|
707
765
|
m("span", null, "温度"),
|
|
708
766
|
m("span", null, "能见度")
|
|
709
|
-
], -1), e.piles.length ? (b(), p("div",
|
|
767
|
+
], -1), e.piles.length ? (b(), p("div", it, [(b(!0), p(u, null, S(e.piles, (e) => (b(), p("div", {
|
|
710
768
|
class: v(["pile-row", { "is-warn": e.isWarn }]),
|
|
711
769
|
key: e.pileNo,
|
|
712
|
-
onClick: (t) =>
|
|
770
|
+
onClick: (t) => gt(e, "pile")
|
|
713
771
|
}, [
|
|
714
772
|
m("span", null, C(e.pileNo), 1),
|
|
715
773
|
m("span", null, C(e.rainfall), 1),
|
|
716
774
|
m("span", null, C(e.rainfall_6h), 1),
|
|
717
775
|
m("span", null, C(e.temperature), 1),
|
|
718
776
|
m("span", null, C(e.visibility), 1)
|
|
719
|
-
], 10,
|
|
777
|
+
], 10, at))), 128))])) : (b(), p("div", ot, "暂无数据"))], 512), [[T, G.value[e.name] && q.value[e.name]]])
|
|
720
778
|
]))), 128))])], 512), [[T, I.value === "table"]])
|
|
721
|
-
])), [[x,
|
|
779
|
+
])), [[x, N.value]]);
|
|
722
780
|
};
|
|
723
781
|
}
|
|
724
|
-
}), [["__scopeId", "data-v-
|
|
782
|
+
}), [["__scopeId", "data-v-0dd20802"]]);
|
|
725
783
|
//#endregion
|
|
726
784
|
export { k as t };
|