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.
Files changed (45) hide show
  1. package/dist/chunks/component-EarlyWarningStatistic2-BStW2Xsz.mjs +108 -0
  2. package/dist/chunks/{component-GeologyLiveAlarm-CMXOTx5j.mjs → component-GeologyLiveAlarm-D9YG_XOp.mjs} +14 -13
  3. package/dist/chunks/{component-HdPreSituation-Gs-4kLt9.mjs → component-HdPreSituation-CjWE4U3Z.mjs} +1 -1
  4. package/dist/chunks/component-HdRadarList-BeweWRve.mjs +198 -0
  5. package/dist/chunks/{component-HdStationTem-CANDy7Fq.mjs → component-HdStationTem-9OJ8fQur.mjs} +1 -1
  6. package/dist/chunks/{component-HighwayLiveAlarmNew-0VBacjC1.mjs → component-HighwayLiveAlarmNew-_OLfGJ_V.mjs} +245 -187
  7. package/dist/chunks/{component-PrecipitationRanking-Dn_f6VvE.mjs → component-PrecipitationRanking-B9PiOW6V.mjs} +8 -4
  8. package/dist/chunks/component-RadarShortTerm-bhfG_pGu.mjs +361 -0
  9. package/dist/chunks/{component-ReservoirLiveAlarm-CT0n40Yj.mjs → component-ReservoirLiveAlarm-CeFxt9TC.mjs} +16 -15
  10. package/dist/chunks/{component-StationDialog-CLDw6g18.mjs → component-StationDialog-Cx3qkxHK.mjs} +1 -1
  11. package/dist/chunks/{component-StationList-CnEkXH5A.mjs → component-StationList-BVrF2FB9.mjs} +1 -1
  12. package/dist/chunks/{component-YCDataService-8-ZeehBm.mjs → component-YCDataService-BKPAF4Ff.mjs} +1 -1
  13. package/dist/components/EarlyWarningStatistic2/EarlyWarningStatistic2.vue.d.ts +33 -0
  14. package/dist/components/HdRadarList/HdRadarList.vue.d.ts +47 -0
  15. package/dist/index.d.ts +3 -1
  16. package/dist/nxd-plugin.mjs +33 -31
  17. package/dist/styles/component-EarlyWarningStatistic2.css +1 -0
  18. package/dist/styles/component-Forecast72h.css +1 -1
  19. package/dist/styles/component-GeologyLiveAlarm.css +1 -1
  20. package/dist/styles/component-HdRadarList.css +1 -0
  21. package/dist/styles/component-HdSeaCase.css +1 -1
  22. package/dist/styles/component-HdServiceRequirements.css +1 -1
  23. package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
  24. package/dist/styles/component-PrecipitationRanking.css +1 -1
  25. package/dist/styles/component-RadarShortTerm.css +1 -1
  26. package/dist/styles/component-ReservoirLiveAlarm.css +1 -1
  27. package/dist/styles/component-YCLoginNew.css +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/component-RadarShortTerm-BSmO6YnL.mjs +0 -410
  30. /package/dist/chunks/{component-ChartCumulativePre-DQd3wA9O.mjs → component-ChartCumulativePre-BVHBo0Gl.mjs} +0 -0
  31. /package/dist/chunks/{component-ChartServiceMaterial-DgvgFhey.mjs → component-ChartServiceMaterial-B17TVkqd.mjs} +0 -0
  32. /package/dist/chunks/{component-HdCameraList-KOxPUhWS.mjs → component-HdCameraList-BQeb5qcu.mjs} +0 -0
  33. /package/dist/chunks/{component-HdForecastProducts-CM0yAQqM.mjs → component-HdForecastProducts-fBB5qlnN.mjs} +0 -0
  34. /package/dist/chunks/{component-HdHeatService-CsLhZnCr.mjs → component-HdHeatService-CAaWsoLT.mjs} +0 -0
  35. /package/dist/chunks/{component-HdObservation-b4_eCslF.mjs → component-HdObservation-BDgQzt1b.mjs} +0 -0
  36. /package/dist/chunks/{component-HdRadarTime-qFNv-RIt.mjs → component-HdRadarTime-8C-zLoCF.mjs} +0 -0
  37. /package/dist/chunks/{component-HdSeaCase-CxGa1ebz.mjs → component-HdSeaCase-CaBGwz9H.mjs} +0 -0
  38. /package/dist/chunks/{component-HdServiceMarterial-nYE4qYI5.mjs → component-HdServiceMarterial-AUSyf9Mh.mjs} +0 -0
  39. /package/dist/chunks/{component-HdServiceRequirements-CpHkf6r1.mjs → component-HdServiceRequirements-BEy5QGcP.mjs} +0 -0
  40. /package/dist/chunks/{component-HdSuggestion-Dgi1TAkp.mjs → component-HdSuggestion-3itGoocz.mjs} +0 -0
  41. /package/dist/chunks/{component-HdWaveForcast-D2S21PpR.mjs → component-HdWaveForcast-CvFuVCf_.mjs} +0 -0
  42. /package/dist/chunks/{component-HighQuality-ygyYaqWB.mjs → component-HighQuality-pp_4lHN_.mjs} +0 -0
  43. /package/dist/chunks/{component-IntroducePic-Dd94oBap.mjs → component-IntroducePic-DDZOk8TM.mjs} +0 -0
  44. /package/dist/chunks/{component-YCDataMonitor-Bx4kFFJ1.mjs → component-YCDataMonitor-Ctou4b5f.mjs} +0 -0
  45. /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-CMXOTx5j.mjs";
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, normalizeStyle as ne, onBeforeUnmount as re, 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 ie } from "@element-plus/icons-vue";
7
- import * as ae from "echarts";
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 oe = {
15
+ var ie = {
16
16
  class: "HighwayLiveAlarmNew",
17
17
  "element-loading-background": "rgba(0, 0, 0, 0.4)"
18
- }, se = {
18
+ }, ae = {
19
19
  key: 0,
20
20
  class: "voice-permission-mask"
21
- }, ce = { class: "HighwayLiveAlarmNew-head" }, le = { class: "HighwayLiveAlarmNew-head-top" }, ue = { class: "head-actions" }, de = { class: "view-switch" }, fe = { class: "HighwayLiveAlarmNew-chart" }, pe = { class: "HighwayLiveAlarmNew-setting-panel" }, me = { class: "display-setting" }, he = { style: { display: "flex" } }, ge = {
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
- }, _e = { class: "setting-pile-options" }, ve = {
24
+ }, me = { class: "setting-pile-options" }, he = {
25
25
  class: "setting-row setting-row-pile",
26
26
  style: { flex: "1" }
27
- }, ye = { class: "setting-pile-options" }, be = {
27
+ }, ge = { class: "setting-pile-options" }, _e = {
28
28
  class: "setting-row",
29
29
  style: { "align-items": "flex-start" }
30
- }, xe = { class: "setting-row" }, Se = { class: "HighwayLiveAlarmNew-table" }, Ce = { class: "table-body" }, we = ["onClick"], Te = { class: "name" }, Ee = ["onClick"], De = {
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
- }, Oe = { class: "station-panel" }, ke = { class: "station-head" }, Ae = { class: "metric-head" }, je = { class: "label" }, Me = {
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
- }, Ne = { class: "metric-head" }, Pe = { class: "label" }, Fe = {
45
+ }, ze = { class: "metric-head" }, Be = { class: "label" }, Ve = {
37
46
  key: 0,
38
47
  class: "warn-count"
39
- }, Ie = { class: "metric-head" }, Le = { class: "label" }, Re = {
48
+ }, He = { class: "metric-head" }, Ue = { class: "label" }, We = {
40
49
  key: 0,
41
50
  class: "warn-count"
42
- }, ze = { class: "metric-head" }, Be = { class: "label" }, Ve = {
51
+ }, Ge = { class: "metric-head" }, Ke = { class: "label" }, qe = {
43
52
  key: 0,
44
53
  class: "warn-count"
45
- }, He = {
54
+ }, Je = {
46
55
  key: 0,
47
56
  class: "station-body"
48
- }, Ue = ["onClick"], We = { class: "metric-value" }, Ge = { class: "metric-value" }, Ke = { class: "metric-value" }, qe = { class: "metric-value" }, Je = {
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
- }, Ye = ["onClick"], Xe = {
60
+ }, tt = ["onClick"], nt = {
52
61
  key: 0,
53
62
  style: { color: "red" }
54
- }, Ze = { class: "pile-panel" }, Qe = {
63
+ }, rt = { class: "pile-panel" }, it = {
55
64
  key: 0,
56
65
  class: "pile-body"
57
- }, $e = ["onClick"], et = {
66
+ }, at = ["onClick"], ot = {
58
67
  key: 1,
59
68
  class: "pile-empty"
60
- }, O = "当前高速无任何报警,请放心出行。", k = /* @__PURE__ */ e(/* @__PURE__ */ _({
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([]), tt = {
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(""), P = x(!1), nt = x(null), F = x(null), I = x("table"), L = x("1h降水"), R = x(!0), rt = x(!0), z = x(!1), B = x("全部"), V = x(["全部"]), it = x("自动站观测时间:--"), H = x({}), U = x([]), W = x({}), G = x({}), K = x({}), q = null, at = d(() => N.value === O ? "#52c41a" : "#ff4d4f"), ot = (e) => (e || []).filter((e) => Z(e)).length, J = () => q || (q = new Audio(n), q.preload = "auto", q), st = () => new Promise((e) => {
124
- let t = J();
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
- z.value = !0, e();
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
- z.value = !0, e();
143
+ B.value = !0, e();
135
144
  });
136
- }), ct = () => {
137
- let e = J();
145
+ }), ft = () => {
146
+ let e = ut();
138
147
  e.volume = 1, e.currentTime = 0, e.play().catch(() => {});
139
- }, lt = () => {
140
- let e = J();
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
- z.value = !1;
153
+ B.value = !1;
145
154
  return;
146
155
  }
147
156
  t.then(() => {
148
- e.pause(), z.value = !1, N.value !== O && ct();
157
+ e.pause(), B.value = !1, W.value.some((e) => Z(e.tags)) && ft();
149
158
  }).catch(() => {});
150
- }, ut = d(() => xt(B.value === "全部" ? U.value : U.value.filter((e) => e.name === B.value), (e) => bt(e.tags)));
159
+ }, mt = d(() => Tt(V.value === "全部" ? W.value : W.value.filter((e) => e.name === V.value), (e) => Z(e.tags)));
151
160
  y(() => {
152
- dt(), nt.value = setInterval(() => {
153
- dt();
161
+ ht(), P.value = setInterval(() => {
162
+ ht();
154
163
  }, 1e3 * 60 * 6);
155
- }), re(() => {
156
- nt.value && clearInterval(nt.value), q && (q.pause(), q.currentTime = 0), A("removeLine", "line_HighwayLiveAlarmNew"), F.value?.dispose(), F.value = null;
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 dt = async () => {
159
- await pt(), P.value = !0;
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
- P.value = !1;
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 = it.value, i = St(n);
173
- it.value = i, A("removeDataTitle", r), setTimeout(() => {
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 = Tt(e), n = xt(e.zdzds || [], (e) => Z(e)), r = Ct(e.zhds || []), i = !!(t.iswarnrainfall_1h || t.iswarnrainfall_6h || t.iswarntemp || t.iswarnvis);
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
- }), s[e.name] = Et(e), c.push({
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: Ot(n),
188
- tags: Dt(t)
198
+ warnCount: Mt(n),
199
+ tags: l
189
200
  });
190
- let l = i ? "#ff4d4f" : "#52c41a";
201
+ let u = i ? "#ff4d4f" : "#52c41a";
191
202
  a.push({
192
203
  value: 1,
193
204
  name: e.name,
194
- itemStyle: { color: l },
195
- label: { color: l }
205
+ itemStyle: { color: u },
206
+ label: { color: u },
207
+ warnTags: l.filter((e) => e.warn).map((e) => e.label)
196
208
  });
197
- }), H.value = s, U.value = c, V.value = ["全部", ...c.map((e) => e.name)], V.value.includes(B.value) || (B.value = "全部"), zt(B.value), Gt(), N.value = kt(o), await st(), o.length > 0 && ct(), At(a);
198
- }, ft = (e, t) => {
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
- }, pt = async () => {
222
- P.value = !0;
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
- P.value = !1, j.value = e.data.result.output || [], console.log("得到所有桩号", j.value);
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
- }, mt = (e, t, n = 1) => {
248
+ }, vt = (e, t, n = 1) => {
237
249
  let r = Number(e);
238
250
  return Y(r) ? `${r.toFixed(n)}${t}` : "";
239
- }, ht = (e) => {
251
+ }, yt = (e) => {
240
252
  let t = Number(e);
241
253
  return Y(t) ? `${(t / 1e3).toFixed(1)}km` : "";
242
- }, X = (e, t = 1) => {
254
+ }, bt = (e, t = 1) => {
243
255
  let n = Number(e);
244
256
  return Y(n) ? n.toFixed(t) : "--";
245
- }, gt = (e) => {
257
+ }, xt = (e) => {
246
258
  let t = Number(e);
247
259
  return Y(t) ? (t / 1e3).toFixed(1) : "--";
248
- }, Z = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1, _t = (e) => e?.zdzds?.iswarnpre === 1 || e?.zdzds?.iswarnpre_6 === 1 || e?.zdzds?.iswarntemp === 1 || e?.zdzds?.iswarnvis === 1, vt = (e) => e?.Name || e?.name || e?.column || "--", yt = (e, t = 1) => {
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
- }, bt = (e) => e.some((e) => e.warn), xt = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), St = (e) => {
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
- }, Ct = (e) => xt((e || []).map((e) => ({
255
- pileNo: vt(e),
256
- isWarn: _t(e),
257
- rainfall: yt(e?.zdzds?.rainfall_1h),
258
- rainfall_6h: yt(e?.zdzds?.rainfall_6h),
259
- temperature: yt(e?.zdzds?.temperature),
260
- visibility: gt(e?.zdzds?.visibility_min),
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), wt = () => B.value === "全部" ? U.value.flatMap((e) => e.stations || []) : U.value.find((e) => e.name === B.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), Tt = (e) => {
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
- }, Et = (e) => {
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
- }, Dt = (e) => {
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 ? mt(e.rainfallWarnStation?.rainfall_1h || e.rainfall6hWarnStation?.rainfall_6h, "mm", 1) : ""
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 ? mt(e.tempWarnStation?.temperature, "℃", 1) : ""
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 ? ht(e.visWarnStation?.visibility_min) : ""
318
+ value: e.iswarnvis ? yt(e.visWarnStation?.visibility_min) : ""
307
319
  }
308
320
  ];
309
- }, Ot = (e) => ({
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
- }), kt = (e) => e.length ? `当前${e.map((e) => {
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 ||= ae.init(t);
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?.itemStyle?.color, n = t === "#ff4d4f" ? "报警" : "正常", r = t === "#ff4d4f" ? "#ff4d4f" : "#52c41a";
326
- return `${e?.name ?? ""} <span style="color:${r};">${n}</span>`;
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
- }, jt = async (e) => {
358
+ }, Pt = async (e) => {
350
359
  I.value = e, e === "chart" && (await te(), F.value?.resize());
351
- }, Mt = (e) => e === "全部" ? Object.values(H.value) : H.value[e] ? [H.value[e]] : [], Nt = () => B.value === "全部" ? M.value : M.value.filter((e) => e.name === B.value), Pt = (e) => e?.pointds || e?.pointds$1 || [], Ft = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
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)), It = (e, t) => {
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
- }, Lt = () => {
384
+ }, Bt = () => {
376
385
  A("removeLine", "line_HighwayLiveAlarmNew");
377
386
  let e = { lineArr: [] }, t = /* @__PURE__ */ new Set();
378
- if (Nt().forEach((n) => {
379
- let r = Pt(n);
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) => Z(e)), ...(n.zhds || []).filter((e) => _t(e))].map((e) => It(i, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
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(Ft(i, a[0]));
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
- }, Rt = () => {
419
- let e = ut.value.find((e) => bt(e.tags)), t = {}, n = {}, r = {};
420
- e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), W.value = t, G.value = n, K.value = r;
421
- }, zt = (e) => {
422
- B.value = e, Rt(), A("removeLayers", Object.values(H.value).map((e) => e.name)), setTimeout(() => {
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: Mt(e),
433
+ layers: Ft(e),
425
434
  isRemove: !0
426
435
  });
427
- }, 1e3), Ut(), Lt();
428
- }, Bt = () => tt[L.value], Vt = (e, t) => {
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
- }, Ht = (e, t, n) => `
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
- `, Ut = () => {
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 = Bt(), n = t.field, r = t.unit;
457
- wt().forEach((t) => {
458
- let i = Ht(t, Vt(t, n), r), a = {
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
- }, Wt = () => {
479
+ }, qt = () => {
471
480
  A("toComponent", {
472
481
  componentName: "PieLegend",
473
- show: rt.value
482
+ show: z.value
474
483
  });
475
- }, Gt = () => {
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
- }, Kt = (e) => {
537
- let t = !!W.value[e];
538
- W.value[e] = !t, t || (G.value[e] = !1, K.value[e] = !0);
539
- }, qt = (e) => {
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
- }, Yt = () => {
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, re = l, y = i, x = a;
548
- return D((b(), p("div", oe, [
549
- z.value ? (b(), p("div", se, [m("div", { class: "voice-permission-dialog" }, [
550
- t[6] ||= m("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
551
- t[7] ||= m("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
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: lt
563
+ onClick: pt
555
564
  }, "开启")
556
565
  ])])) : f("", !0),
557
- m("div", ce, [m("div", le, [t[8] ||= m("div", null, "沿线高速公路实况报警", -1), m("div", ue, [m("div", de, [m("button", {
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) => jt("chart")
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) => jt("table")
571
+ onClick: t[1] ||= (e) => Pt("table")
563
572
  }, " 表格 ", 2)]), m("div", {
564
573
  class: "closeBtn",
565
- onClick: Yt,
574
+ onClick: Qt,
566
575
  title: "关闭"
567
- })])]), t[9] ||= m("img", {
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
- class: "HighwayLiveAlarmNew-summary",
574
- style: ne({ color: at.value })
575
- }, C(N.value), 5), [[T, I.value === "chart"]]),
576
- D(m("div", fe, null, 512), [[T, I.value === "chart"]]),
577
- D(m("div", pe, [m("div", me, [
578
- m("div", he, [m("div", ge, [t[11] ||= m("span", { class: "setting-label" }, "桩号展示:", -1), m("div", _e, [g(n, {
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[2] ||= (e) => R.value = e,
638
+ "onUpdate:modelValue": t[5] ||= (e) => R.value = e,
581
639
  class: "pile-checkbox",
582
- onChange: Gt
640
+ onChange: Jt
583
641
  }, {
584
- default: E(() => [...t[10] ||= [h(" 显示 ", -1)]]),
642
+ default: E(() => [...t[24] ||= [h(" 显示 ", -1)]]),
585
643
  _: 1
586
- }, 8, ["modelValue"])])]), m("div", ve, [t[13] ||= m("span", { class: "setting-label" }, "桩号图例:", -1), m("div", ye, [g(n, {
587
- modelValue: rt.value,
588
- "onUpdate:modelValue": t[3] ||= (e) => rt.value = e,
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: Wt
648
+ onChange: qt
591
649
  }, {
592
- default: E(() => [...t[12] ||= [h(" 显示 ", -1)]]),
650
+ default: E(() => [...t[26] ||= [h(" 显示 ", -1)]]),
593
651
  _: 1
594
652
  }, 8, ["modelValue"])])])]),
595
- m("div", be, [t[20] ||= m("span", {
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[4] ||= (e) => L.value = e,
658
+ "onUpdate:modelValue": t[7] ||= (e) => L.value = e,
601
659
  class: "setting-radios",
602
- onChange: Ut
660
+ onChange: Kt
603
661
  }, {
604
662
  default: E(() => [
605
663
  g(d, { value: "1h降水" }, {
606
- default: E(() => [...t[14] ||= [h("1h降水", -1)]]),
664
+ default: E(() => [...t[28] ||= [h("1h降水", -1)]]),
607
665
  _: 1
608
666
  }),
609
667
  g(d, { value: "3h降水" }, {
610
- default: E(() => [...t[15] ||= [h("3h降水", -1)]]),
668
+ default: E(() => [...t[29] ||= [h("3h降水", -1)]]),
611
669
  _: 1
612
670
  }),
613
671
  g(d, { value: "6h降水" }, {
614
- default: E(() => [...t[16] ||= [h("6h降水", -1)]]),
672
+ default: E(() => [...t[30] ||= [h("6h降水", -1)]]),
615
673
  _: 1
616
674
  }),
617
675
  g(d, { value: "当前累计降水" }, {
618
- default: E(() => [...t[17] ||= [h("当前累计降水", -1)]]),
676
+ default: E(() => [...t[31] ||= [h("当前累计降水", -1)]]),
619
677
  _: 1
620
678
  }),
621
679
  g(d, { value: "温度" }, {
622
- default: E(() => [...t[18] ||= [h("温度", -1)]]),
680
+ default: E(() => [...t[32] ||= [h("温度", -1)]]),
623
681
  _: 1
624
682
  }),
625
683
  g(d, { value: "能见度" }, {
626
- default: E(() => [...t[19] ||= [h("能见度", -1)]]),
684
+ default: E(() => [...t[33] ||= [h("能见度", -1)]]),
627
685
  _: 1
628
686
  })
629
687
  ]),
630
688
  _: 1
631
689
  }, 8, ["modelValue"])]),
632
- m("div", xe, [t[21] ||= m("span", { class: "setting-label" }, "路线地图:", -1), g(re, {
633
- modelValue: B.value,
634
- "onUpdate:modelValue": t[5] ||= (e) => B.value = e,
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: zt
695
+ onChange: Ht
638
696
  }, {
639
- default: E(() => [(b(!0), p(u, null, S(V.value, (e) => (b(), ee(te, {
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", Se, [t[34] ||= m("div", { class: "table-head" }, [
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", Ce, [(b(!0), p(u, null, S(ut.value, (e) => (b(), p("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) => Kt(e.name)
715
+ onClick: (t) => Yt(e.name)
658
716
  }, [
659
- m("span", Te, C(e.name), 1),
660
- m("div", { class: v(["status-tags", { "has-warn": bt(e.tags) }]) }, [(b(!0), p(u, null, S(e.tags, (t) => (b(), p("span", {
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: W.value[e.name] }]),
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(ie))]),
726
+ default: E(() => [g(w(O))]),
669
727
  _: 1
670
728
  })], 2)
671
- ], 8, we),
729
+ ], 8, Ae),
672
730
  D(m("div", {
673
731
  class: "station-title",
674
- onClick: (t) => qt(e.name)
675
- }, [m("span", null, [t[22] ||= h(" 自动站数据 ", -1), ot(e.stations) > 0 ? (b(), p("span", De, " (报警数量:" + C(ot(e.stations)) + "个) ", 1)) : f("", !0)]), m("span", { class: v(["panel-arrow", { expanded: G.value[e.name] }]) }, [g(y, null, {
676
- default: E(() => [g(w(ie))]),
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, Ee), [[T, W.value[e.name]]]),
679
- D(m("div", Oe, [m("div", ke, [
680
- t[31] ||= m("span", null, "站名", -1),
681
- m("span", Ae, [m("span", je, [t[23] ||= h(" 1h降水 ", -1), e.warnCount.rainfall_1h > 0 ? (b(), p("span", Me, C(e.warnCount.rainfall_1h) + "条 ", 1)) : f("", !0)]), t[24] ||= m("span", { class: "unit" }, "(mm)", -1)]),
682
- m("span", Ne, [m("span", Pe, [t[25] ||= h(" 6h降水 ", -1), e.warnCount.rainfall_6h > 0 ? (b(), p("span", Fe, C(e.warnCount.rainfall_6h) + "条 ", 1)) : f("", !0)]), t[26] ||= m("span", { class: "unit" }, "(mm)", -1)]),
683
- m("span", Ie, [m("span", Le, [t[27] ||= h(" 温度 ", -1), e.warnCount.temp > 0 ? (b(), p("span", Re, C(e.warnCount.temp) + "条 ", 1)) : f("", !0)]), t[28] ||= m("span", { class: "unit" }, "(℃)", -1)]),
684
- m("span", ze, [m("span", Be, [t[29] ||= h(" 能见度 ", -1), e.warnCount.vis > 0 ? (b(), p("span", Ve, C(e.warnCount.vis) + "条 ", 1)) : f("", !0)]), t[30] ||= m("span", { class: "unit" }, "(km)", -1)])
685
- ]), e.stations.length ? (b(), p("div", He, [(b(!0), p(u, null, S(e.stations, (t) => (b(), p("div", {
686
- class: v(["station-row", { "is-warn": Z(t) }]),
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) => ft(t, "station")
746
+ onClick: (e) => gt(t, "station")
689
747
  }, [
690
748
  m("span", null, C(t.station_name || "--"), 1),
691
- m("span", We, C(X(t.rainfall_1h)), 1),
692
- m("span", Ge, C(X(t.rainfall_6h)), 1),
693
- m("span", Ke, C(X(t.temperature)), 1),
694
- m("span", qe, C(gt(t.visibility_min)), 1)
695
- ], 10, Ue))), 128))])) : (b(), p("div", Je, "暂无站点数据"))], 512), [[T, W.value[e.name] && G.value[e.name]]]),
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) => Jt(e.name)
699
- }, [m("span", null, [t[32] ||= h(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (b(), p("span", Xe, " (报警数量:" + C(e.pileWarnCount) + "个)", 1)) : f("", !0)]), m("span", { class: v(["panel-arrow", { expanded: K.value[e.name] }]) }, [g(y, null, {
700
- default: E(() => [g(w(ie))]),
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, Ye), [[T, W.value[e.name]]]),
703
- D(m("div", Ze, [t[33] ||= m("div", { class: "pile-head" }, [
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", Qe, [(b(!0), p(u, null, S(e.piles, (e) => (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) => ft(e, "pile")
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, $e))), 128))])) : (b(), p("div", et, "暂无数据"))], 512), [[T, W.value[e.name] && K.value[e.name]]])
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, P.value]]);
779
+ ])), [[x, N.value]]);
722
780
  };
723
781
  }
724
- }), [["__scopeId", "data-v-286a23eb"]]);
782
+ }), [["__scopeId", "data-v-0dd20802"]]);
725
783
  //#endregion
726
784
  export { k as t };