nxd-plugin 1.7.95 → 1.7.97
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-AiChat-B2YoRfzz.mjs → component-AiChat-CMbG8e28.mjs} +1 -1
- package/dist/chunks/{component-AqiMonitor-DWhSDKFM.mjs → component-AqiMonitor-CVb99opd.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-CYVahvTN.mjs → component-ChartCumulativePre-DbbqXqZE.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-CbiB7503.mjs → component-ChartServiceMaterial-hU5a_G6w.mjs} +2 -2
- package/dist/chunks/{component-Duty-CxH58EY9.mjs → component-Duty-BCW6ohuO.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-BsgcJent.mjs → component-EarlyWarningStatistic-DSp82HGZ.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic2-CEnr2SX2.mjs → component-EarlyWarningStatistic2-DmHCmtaq.mjs} +2 -2
- package/dist/chunks/{component-Forecast72h-Bxw98dN7.mjs → component-Forecast72h-hi7bHW_J.mjs} +2 -2
- package/dist/chunks/{component-GeologyLiveAlarm-CzEt43gy.mjs → component-GeologyLiveAlarm-0P99V7KX.mjs} +2 -2
- package/dist/chunks/{component-HDSeaLegend-txEg91l0.mjs → component-HDSeaLegend-BSGtGcnh.mjs} +1 -1
- package/dist/chunks/{component-HdCameraList-6Tb6qgq8.mjs → component-HdCameraList-Cz1OYJEN.mjs} +3 -3
- package/dist/chunks/{component-HdForecastProducts-BslG6fs5.mjs → component-HdForecastProducts-_2ttNo-z.mjs} +2 -2
- package/dist/chunks/{component-HdHeatService-C0TtClQx.mjs → component-HdHeatService-BKK-w3Xc.mjs} +2 -2
- package/dist/chunks/{component-HdObservation-Ckuvwl3F.mjs → component-HdObservation-DV1mfQsB.mjs} +3 -3
- package/dist/chunks/{component-HdPreSituation-Chk3r9Dr.mjs → component-HdPreSituation-DY6gsT_y.mjs} +4 -4
- package/dist/chunks/{component-HdRadarList-RWcGRnE_.mjs → component-HdRadarList-BQ1MH8GG.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-OAbsHPlS.mjs → component-HdRadarTime-D7ySMzpg.mjs} +2 -2
- package/dist/chunks/{component-HdSeaCase-C0fuPJP0.mjs → component-HdSeaCase-wnGV704s.mjs} +2 -2
- package/dist/chunks/{component-HdServiceMarterial-CsUEIjLY.mjs → component-HdServiceMarterial-BgIt-ELd.mjs} +3 -3
- package/dist/chunks/{component-HdServiceRequirements-BT1Ufg0G.mjs → component-HdServiceRequirements-B83V-lQN.mjs} +3 -3
- package/dist/chunks/{component-HdStationTem-D_qv4nm8.mjs → component-HdStationTem-DdMSzVEC.mjs} +4 -4
- package/dist/chunks/{component-HdSuggestion-EUeQUmSr.mjs → component-HdSuggestion-CrvAGw81.mjs} +3 -3
- package/dist/chunks/{component-HdThreeWeatherTrend-DkwxO9n8.mjs → component-HdThreeWeatherTrend-Deliswz6.mjs} +3 -3
- package/dist/chunks/{component-HdWaveForcast-nR5w8Db3.mjs → component-HdWaveForcast-CL4Ghg7T.mjs} +3 -3
- package/dist/chunks/{component-HighQuality-D2H5Dglv.mjs → component-HighQuality-Bsqgp8R-.mjs} +2 -2
- package/dist/chunks/{component-HighWayEarlyWarningRed-D5iSGN5l.mjs → component-HighWayEarlyWarningRed-D0uKUK3B.mjs} +2 -2
- package/dist/chunks/{component-HighWayFreeze-B9v5Z9Yd.mjs → component-HighWayFreeze-sGJddgnr.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-DjcOZUJv.mjs → component-HighwayLiveAlarm-Wm2rCVBb.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-CsTx27uv.mjs → component-HighwayLiveAlarmNew-YjS0FM1d.mjs} +220 -212
- package/dist/chunks/{component-HighwayStations-U_rU4hJi.mjs → component-HighwayStations-DRfDmHmK.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-DjFuRcu3.mjs → component-HighwayWeatherForecast-Cp50--Dj.mjs} +4 -4
- package/dist/chunks/{component-IframeWeb-DMn6K9zk.mjs → component-IframeWeb-HpaTePnW.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-B7L3rXzG.mjs → component-ImageGeneration-zj2WbvzB.mjs} +4 -3
- package/dist/chunks/{component-IntroducePic-BmvED_mB.mjs → component-IntroducePic-BxDMkIyJ.mjs} +2 -2
- package/dist/chunks/{component-LithiumBatteryMiningArea-BM_8uVPy.mjs → component-LithiumBatteryMiningArea-BC05EqiO.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-CRQjbIZT.mjs → component-MapPopup-DYsV0ICP.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-Dmg4LG8h.mjs → component-MaterialPreview-DJhj0Gh9.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-B90e9FMW.mjs → component-PieLegend-BsDM9oA_.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-BewTWZ18.mjs → component-PrecipitationRanking-B7gEEuCe.mjs} +4 -4
- package/dist/chunks/{component-RadarChart-DrQnSK2_.mjs → component-RadarChart-V_2K97Yw.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-UaQXwEdl.mjs → component-RadarLegend-DwjhHZ-N.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-B6DiXwjj.mjs → component-RadarShortTerm-aF13_Zcy.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-CrWj-oVD.mjs → component-RadarTime-ZN7o47Mu.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-CSoLEsFv.mjs → component-RenderMarkdown-BX-kHqL2.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-CJUDC3QW.mjs → component-ReservoirLiveAlarm-WVVwwKYZ.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-DR7imvMZ.mjs → component-ServiceMaterial-9imbipjj.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-BWxBKKWn.mjs → component-ServiceMaterialsBtn-693xq1p7.mjs} +1 -1
- package/dist/chunks/{component-StationDialog-i5k3U3Ff.mjs → component-StationDialog-C859f8A-.mjs} +4 -4
- package/dist/chunks/{component-StationList-DYISnLo1.mjs → component-StationList-BQHnyqox.mjs} +5 -5
- package/dist/chunks/{component-TimeBasedForecast-eRf8bDpe.mjs → component-TimeBasedForecast-DH-OHwXc.mjs} +4 -4
- package/dist/chunks/{component-Typhoon-4mrFcOKL.mjs → component-Typhoon-C6jT8EFX.mjs} +47 -28
- package/dist/chunks/{component-WarningLine-9Y5OJRig.mjs → component-WarningLine-D3aVWmUZ.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-uXiAUGTl.mjs → component-WarningSignal-CEe242B5.mjs} +3 -3
- package/dist/chunks/{component-WeatherForecast-COWkCiqA.mjs → component-WeatherForecast-BfqfB6UO.mjs} +4 -4
- package/dist/chunks/{component-YCDataMonitor-D8jFTVaA.mjs → component-YCDataMonitor-DROgvkZ-.mjs} +2 -2
- package/dist/chunks/{component-YCDataService-B3OEiGLw.mjs → component-YCDataService-BM5kQwax.mjs} +4 -4
- package/dist/chunks/{component-YCHighWaySummary-DTUkP8s6.mjs → component-YCHighWaySummary-Bh0IXiDd.mjs} +2 -2
- package/dist/chunks/{component-YCHome-CKHpV9Wj.mjs → component-YCHome-DwYK1Re4.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-DiFftuY3.mjs → component-YCHomeLegend-BadxwkzL.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-CFJSyKfV.mjs → component-YCLoginNew-D5u2lDWS.mjs} +3 -3
- package/dist/nxd-plugin.mjs +59 -59
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-Typhoon.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e } from "./component-AqiMonitor-
|
|
2
|
-
import { r as t } from "./component-AiChat-
|
|
3
|
-
import { n } from "./component-GeologyLiveAlarm-
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-CVb99opd.mjs";
|
|
2
|
+
import { r as t } from "./component-AiChat-CMbG8e28.mjs";
|
|
3
|
+
import { n } from "./component-GeologyLiveAlarm-0P99V7KX.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 _, normalizeClass as v, onBeforeUnmount as
|
|
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 re } from "@element-plus/icons-vue";
|
|
7
|
+
import * as ie 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,58 +12,58 @@ 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 ae = {
|
|
16
16
|
class: "HighwayLiveAlarmNew",
|
|
17
17
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
18
|
-
},
|
|
18
|
+
}, oe = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "voice-permission-mask"
|
|
21
|
-
},
|
|
21
|
+
}, se = { class: "HighwayLiveAlarmNew-head" }, ce = { class: "HighwayLiveAlarmNew-head-top" }, le = { class: "head-actions" }, ue = { class: "view-switch" }, de = { class: "HighwayLiveAlarmNew-setting-panel" }, fe = { class: "display-setting" }, pe = { style: { display: "flex" } }, me = {
|
|
22
22
|
class: "setting-row setting-row-pile",
|
|
23
23
|
style: { flex: "1" }
|
|
24
|
-
},
|
|
24
|
+
}, he = { class: "setting-pile-options" }, ge = {
|
|
25
25
|
class: "setting-row setting-row-pile",
|
|
26
26
|
style: { flex: "1" }
|
|
27
|
-
},
|
|
27
|
+
}, _e = { class: "setting-pile-options" }, ve = {
|
|
28
28
|
class: "setting-row",
|
|
29
29
|
style: { "align-items": "flex-start" }
|
|
30
|
-
},
|
|
30
|
+
}, ye = { class: "HighwayLiveAlarmNew-chart" }, be = { class: "HighwayLiveAlarmNew-setting-panel" }, xe = { class: "display-setting" }, Se = { style: { display: "flex" } }, Ce = {
|
|
31
31
|
class: "setting-row setting-row-pile",
|
|
32
32
|
style: { flex: "1" }
|
|
33
|
-
},
|
|
33
|
+
}, we = { class: "setting-pile-options" }, Te = {
|
|
34
34
|
class: "setting-row setting-row-pile",
|
|
35
35
|
style: { flex: "1" }
|
|
36
|
-
},
|
|
36
|
+
}, Ee = { class: "setting-pile-options" }, De = {
|
|
37
37
|
class: "setting-row",
|
|
38
38
|
style: { "align-items": "flex-start" }
|
|
39
|
-
},
|
|
39
|
+
}, Oe = { class: "setting-row" }, ke = { class: "HighwayLiveAlarmNew-table" }, Ae = { class: "table-body" }, je = ["onClick"], Me = { class: "name" }, Ne = ["onClick"], Pe = {
|
|
40
40
|
key: 0,
|
|
41
41
|
style: { color: "red" }
|
|
42
|
-
},
|
|
42
|
+
}, Fe = { class: "station-panel" }, Ie = { class: "station-head" }, Le = { class: "metric-head" }, Re = { class: "label" }, ze = {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "warn-count"
|
|
45
|
-
},
|
|
45
|
+
}, Be = { class: "metric-head" }, Ve = { class: "label" }, He = {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "warn-count"
|
|
48
|
-
},
|
|
48
|
+
}, Ue = { class: "metric-head" }, We = { class: "label" }, Ge = {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "warn-count"
|
|
51
|
-
},
|
|
51
|
+
}, Ke = { class: "metric-head" }, qe = { class: "label" }, Je = {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "warn-count"
|
|
54
|
-
},
|
|
54
|
+
}, Ye = {
|
|
55
55
|
key: 0,
|
|
56
56
|
class: "station-body"
|
|
57
|
-
},
|
|
57
|
+
}, Xe = ["onClick"], Ze = { class: "metric-value" }, Qe = { class: "metric-value" }, $e = { class: "metric-value" }, et = { class: "metric-value" }, tt = {
|
|
58
58
|
key: 1,
|
|
59
59
|
class: "station-empty"
|
|
60
|
-
},
|
|
60
|
+
}, nt = ["onClick"], rt = {
|
|
61
61
|
key: 0,
|
|
62
62
|
style: { color: "red" }
|
|
63
|
-
},
|
|
63
|
+
}, it = { class: "pile-panel" }, at = {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "pile-body"
|
|
66
|
-
},
|
|
66
|
+
}, ot = ["onClick"], st = {
|
|
67
67
|
key: 1,
|
|
68
68
|
class: "pile-empty"
|
|
69
69
|
}, O = /* @__PURE__ */ e(/* @__PURE__ */ _({
|
|
@@ -104,7 +104,7 @@ var ie = {
|
|
|
104
104
|
"toComponent"
|
|
105
105
|
],
|
|
106
106
|
setup(e, { emit: _ }) {
|
|
107
|
-
let O = e, k = _, A =
|
|
107
|
+
let O = e, k = _, A = x([]), j = x([]), ct = x([]), lt = {
|
|
108
108
|
"1h降水": {
|
|
109
109
|
field: "rainfall_1h",
|
|
110
110
|
unit: "mm"
|
|
@@ -129,43 +129,43 @@ var ie = {
|
|
|
129
129
|
field: "visibility_min",
|
|
130
130
|
unit: "km"
|
|
131
131
|
}
|
|
132
|
-
}, M =
|
|
133
|
-
let t =
|
|
132
|
+
}, M = x(!1), N = x(null), P = x(null), F = x("chart"), I = x("1h降水"), L = x(!0), R = x(!0), z = x(!1), B = x("全部"), V = x(["全部"]), ut = x("自动站观测时间:--"), H = x({}), U = x([]), W = x({}), G = x({}), K = x({}), q = null, dt = (e) => (e || []).filter((e) => Y(e)).length, ft = () => q || (q = new Audio(n), q.preload = "auto", q), pt = () => new Promise((e) => {
|
|
133
|
+
let t = ft();
|
|
134
134
|
t.volume = 0, t.currentTime = 0;
|
|
135
135
|
let n = t.play();
|
|
136
136
|
if (!n) {
|
|
137
|
-
|
|
137
|
+
z.value = !0, e();
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
140
|
n.then(() => {
|
|
141
141
|
t.pause(), t.volume = 1, e();
|
|
142
142
|
}).catch(() => {
|
|
143
|
-
|
|
143
|
+
z.value = !0, e();
|
|
144
144
|
});
|
|
145
|
-
}),
|
|
146
|
-
let e =
|
|
145
|
+
}), mt = () => {
|
|
146
|
+
let e = ft();
|
|
147
147
|
e.volume = 1, e.currentTime = 0, e.play().catch(() => {});
|
|
148
|
-
},
|
|
149
|
-
let e =
|
|
148
|
+
}, ht = () => {
|
|
149
|
+
let e = ft();
|
|
150
150
|
e.volume = 0, e.currentTime = 0;
|
|
151
151
|
let t = e.play();
|
|
152
152
|
if (!t) {
|
|
153
|
-
|
|
153
|
+
z.value = !1;
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
156
|
t.then(() => {
|
|
157
|
-
e.pause(),
|
|
157
|
+
e.pause(), z.value = !1, U.value.some((e) => Z(e.tags)) && mt();
|
|
158
158
|
}).catch(() => {});
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
}, gt = d(() => Dt(B.value === "全部" ? U.value : U.value.filter((e) => e.name === B.value), (e) => Z(e.tags)));
|
|
160
|
+
y(() => {
|
|
161
|
+
_t(), N.value = setInterval(() => {
|
|
162
|
+
_t();
|
|
163
163
|
}, 1e3 * 60 * 6);
|
|
164
|
-
}),
|
|
165
|
-
|
|
164
|
+
}), ne(() => {
|
|
165
|
+
N.value && clearInterval(N.value), q && (q.pause(), q.currentTime = 0), k("removeLine", "line_HighwayLiveAlarmNew"), P.value?.dispose(), P.value = null;
|
|
166
166
|
});
|
|
167
|
-
let
|
|
168
|
-
await
|
|
167
|
+
let _t = async () => {
|
|
168
|
+
await yt(), ct.value = await bt(), M.value = !0;
|
|
169
169
|
let e = await t({
|
|
170
170
|
appKey: O.appKey,
|
|
171
171
|
appSalt: O.appSalt,
|
|
@@ -178,24 +178,24 @@ var ie = {
|
|
|
178
178
|
M.value = !1;
|
|
179
179
|
let n = JSON.parse(e.data.result.ds).data;
|
|
180
180
|
console.log("得到所有道路", n), j.value = n;
|
|
181
|
-
let r =
|
|
182
|
-
|
|
181
|
+
let r = ut.value, i = Ot(n);
|
|
182
|
+
ut.value = i, k("removeDataTitle", r), setTimeout(() => {
|
|
183
183
|
k("addDataTitle", i);
|
|
184
184
|
}, 1e3);
|
|
185
185
|
let a = [], o = [], s = {}, c = [];
|
|
186
186
|
n.forEach((e) => {
|
|
187
|
-
let t =
|
|
187
|
+
let t = jt(e), n = Dt(e.zdzds || [], (e) => Y(e)), r = kt(e.zhds || []), i = !!(t.iswarnrainfall_1h || t.iswarnrainfall_6h || t.iswarntemp || t.iswarnvis);
|
|
188
188
|
i && o.push({
|
|
189
189
|
name: e.name,
|
|
190
190
|
...t
|
|
191
191
|
});
|
|
192
|
-
let l =
|
|
193
|
-
s[e.name] =
|
|
192
|
+
let l = Nt(t);
|
|
193
|
+
s[e.name] = Mt(e), c.push({
|
|
194
194
|
name: e.name,
|
|
195
195
|
stations: n,
|
|
196
196
|
piles: r,
|
|
197
197
|
pileWarnCount: r.filter((e) => e.isWarn).length,
|
|
198
|
-
warnCount:
|
|
198
|
+
warnCount: Pt(n),
|
|
199
199
|
tags: l
|
|
200
200
|
});
|
|
201
201
|
let u = i ? "#ff4d4f" : "#52c41a";
|
|
@@ -206,8 +206,8 @@ var ie = {
|
|
|
206
206
|
label: { color: u },
|
|
207
207
|
warnTags: l.filter((e) => e.warn).map((e) => e.label)
|
|
208
208
|
});
|
|
209
|
-
}),
|
|
210
|
-
},
|
|
209
|
+
}), H.value = s, U.value = c, V.value = ["全部", ...c.map((e) => e.name)], V.value.includes(B.value) || (B.value = "全部"), Wt(B.value), Xt(), await pt(), o.length > 0 && mt(), Ft(a);
|
|
210
|
+
}, vt = (e, t) => {
|
|
211
211
|
k("toMapView", {
|
|
212
212
|
lng: e.longitude ? Number(e.longitude) : Number(e.x),
|
|
213
213
|
lat: e.latitude ? Number(e.latitude) : Number(e.y),
|
|
@@ -230,7 +230,7 @@ var ie = {
|
|
|
230
230
|
}, 300);
|
|
231
231
|
}
|
|
232
232
|
}, 500);
|
|
233
|
-
},
|
|
233
|
+
}, yt = async () => {
|
|
234
234
|
M.value = !0;
|
|
235
235
|
let e = await t({
|
|
236
236
|
appKey: O.appKey,
|
|
@@ -242,7 +242,7 @@ var ie = {
|
|
|
242
242
|
isFormData: O.ids.pieNumber.isFormData
|
|
243
243
|
});
|
|
244
244
|
M.value = !1, A.value = e.data.result.output || [], console.log("得到所有桩号", A.value);
|
|
245
|
-
},
|
|
245
|
+
}, bt = async () => (await t({
|
|
246
246
|
appKey: O.appKey,
|
|
247
247
|
appSalt: O.appSalt,
|
|
248
248
|
id: O.ids.shortTerm.id,
|
|
@@ -253,34 +253,34 @@ var ie = {
|
|
|
253
253
|
})).data.result.ds || [], J = (e) => {
|
|
254
254
|
let t = Number(e);
|
|
255
255
|
return t < 999999 && t > -999999;
|
|
256
|
-
},
|
|
256
|
+
}, xt = (e, t, n = 1) => {
|
|
257
257
|
let r = Number(e);
|
|
258
258
|
return J(r) ? `${r.toFixed(n)}${t}` : "";
|
|
259
|
-
},
|
|
259
|
+
}, St = (e) => {
|
|
260
260
|
let t = Number(e);
|
|
261
261
|
return J(t) ? `${(t / 1e3).toFixed(1)}km` : "";
|
|
262
|
-
},
|
|
262
|
+
}, Ct = (e, t = 1) => {
|
|
263
263
|
let n = Number(e);
|
|
264
264
|
return J(n) ? n.toFixed(t) : "--";
|
|
265
|
-
},
|
|
265
|
+
}, wt = (e) => {
|
|
266
266
|
let t = Number(e);
|
|
267
267
|
return J(t) ? (t / 1e3).toFixed(1) : "--";
|
|
268
|
-
}, Y = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1,
|
|
268
|
+
}, Y = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1, Tt = (e) => e?.zdzds?.iswarnpre === 1 || e?.zdzds?.iswarnpre_6 === 1 || e?.zdzds?.iswarntemp === 1 || e?.zdzds?.iswarnvis === 1, Et = (e) => e?.Name || e?.name || e?.column || "--", X = (e, t = 1) => {
|
|
269
269
|
let n = Number(e);
|
|
270
270
|
return J(n) ? n.toFixed(t) : "--";
|
|
271
|
-
}, Z = (e) => e.some((e) => e.warn),
|
|
271
|
+
}, Z = (e) => e.some((e) => e.warn), Dt = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Ot = (e) => {
|
|
272
272
|
let t = (e || []).find((e) => (e?.zdzds || []).length)?.zdzds?.[0]?.observation_time;
|
|
273
273
|
return t ? `自动站观测时间:${String(t).replace("T", " ").slice(0, 13)}时` : "自动站观测时间:--";
|
|
274
|
-
},
|
|
275
|
-
pileNo:
|
|
276
|
-
isWarn:
|
|
274
|
+
}, kt = (e) => Dt((e || []).map((e) => ({
|
|
275
|
+
pileNo: Et(e),
|
|
276
|
+
isWarn: Tt(e),
|
|
277
277
|
rainfall: X(e?.zdzds?.rainfall_1h),
|
|
278
278
|
rainfall_6h: X(e?.zdzds?.rainfall_6h),
|
|
279
279
|
temperature: X(e?.zdzds?.temperature),
|
|
280
|
-
visibility:
|
|
280
|
+
visibility: wt(e?.zdzds?.visibility_min),
|
|
281
281
|
x: e?.x,
|
|
282
282
|
y: e?.y
|
|
283
|
-
})), (e) => e.isWarn),
|
|
283
|
+
})), (e) => e.isWarn), At = () => 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 && J(e?.[n])) || e.find((e) => e?.[t] === 1), $ = (e, t) => (e || []).find((e) => e?.zdzds?.[t] === 1), jt = (e) => {
|
|
284
284
|
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");
|
|
285
285
|
return {
|
|
286
286
|
iswarnrainfall_1h: r || s ? 1 : 0,
|
|
@@ -296,7 +296,7 @@ var ie = {
|
|
|
296
296
|
tempWarnPile: l,
|
|
297
297
|
visWarnPile: u
|
|
298
298
|
};
|
|
299
|
-
},
|
|
299
|
+
}, Mt = (e) => {
|
|
300
300
|
let t = e.layer_name;
|
|
301
301
|
return {
|
|
302
302
|
oneLayer: {
|
|
@@ -307,34 +307,34 @@ var ie = {
|
|
|
307
307
|
visible: !0,
|
|
308
308
|
zIndex: 200
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, Nt = (e) => {
|
|
311
311
|
let t = e.iswarnrainfall_1h === 1 || e.iswarnrainfall_6h === 1;
|
|
312
312
|
return [
|
|
313
313
|
{
|
|
314
314
|
label: "降水",
|
|
315
315
|
warn: t,
|
|
316
|
-
value: t ?
|
|
316
|
+
value: t ? xt(e.rainfallWarnStation?.rainfall_1h || e.rainfall6hWarnStation?.rainfall_6h, "mm", 1) : ""
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
319
|
label: "温度",
|
|
320
320
|
warn: e.iswarntemp === 1,
|
|
321
|
-
value: e.iswarntemp ?
|
|
321
|
+
value: e.iswarntemp ? xt(e.tempWarnStation?.temperature, "℃", 1) : ""
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
label: "能见度",
|
|
325
325
|
warn: e.iswarnvis === 1,
|
|
326
|
-
value: e.iswarnvis ?
|
|
326
|
+
value: e.iswarnvis ? St(e.visWarnStation?.visibility_min) : ""
|
|
327
327
|
}
|
|
328
328
|
];
|
|
329
|
-
},
|
|
329
|
+
}, Pt = (e) => ({
|
|
330
330
|
rainfall_1h: e.filter((e) => e?.iswarnpre === 1).length,
|
|
331
331
|
rainfall_6h: e.filter((e) => e?.iswarnpre_6 === 1).length,
|
|
332
332
|
temp: e.filter((e) => e?.iswarntemp === 1).length,
|
|
333
333
|
vis: e.filter((e) => e?.iswarnvis === 1).length
|
|
334
|
-
}),
|
|
334
|
+
}), Ft = (e) => {
|
|
335
335
|
let t = document.querySelector(".HighwayLiveAlarmNew-chart");
|
|
336
336
|
if (!t) return;
|
|
337
|
-
|
|
337
|
+
P.value ||= ie.init(t);
|
|
338
338
|
let n = {
|
|
339
339
|
tooltip: {
|
|
340
340
|
trigger: "item",
|
|
@@ -362,11 +362,13 @@ var ie = {
|
|
|
362
362
|
data: e
|
|
363
363
|
}]
|
|
364
364
|
};
|
|
365
|
-
|
|
366
|
-
},
|
|
365
|
+
P.value.setOption(n);
|
|
366
|
+
}, It = async (e) => {
|
|
367
|
+
F.value = e, e === "chart" && (await te(), P.value?.resize());
|
|
368
|
+
}, Lt = (e) => e === "全部" ? Object.values(H.value) : H.value[e] ? [H.value[e]] : [], Rt = () => B.value === "全部" ? j.value : j.value.filter((e) => e.name === B.value), zt = (e) => e?.pointds || e?.pointds$1 || [], Bt = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
|
|
367
369
|
lng: Number(e.x ?? e.longitude),
|
|
368
370
|
lat: Number(e.y ?? e.latitude)
|
|
369
|
-
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)),
|
|
371
|
+
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), Vt = (e, t) => {
|
|
370
372
|
let n = [
|
|
371
373
|
t?.station_number,
|
|
372
374
|
t?.stationid,
|
|
@@ -387,15 +389,15 @@ var ie = {
|
|
|
387
389
|
let a = Number(e?.x ?? e?.longitude), o = Number(e?.y ?? e?.latitude);
|
|
388
390
|
return Number.isFinite(r) && Number.isFinite(i) && Number.isFinite(a) && Number.isFinite(o) && a === r && o === i;
|
|
389
391
|
});
|
|
390
|
-
},
|
|
392
|
+
}, Ht = () => {
|
|
391
393
|
k("removeLine", "line_HighwayLiveAlarmNew");
|
|
392
394
|
let e = { lineArr: [] }, t = /* @__PURE__ */ new Set();
|
|
393
|
-
if (
|
|
394
|
-
let r =
|
|
395
|
+
if (Rt().forEach((n) => {
|
|
396
|
+
let r = zt(n);
|
|
395
397
|
if (r.length < 2) return;
|
|
396
398
|
let i = r.filter((e) => e.name === n.name);
|
|
397
399
|
if (i.length < 2) return;
|
|
398
|
-
let a = [...(n.zdzds || []).filter((e) => Y(e)), ...(n.zhds || []).filter((e) =>
|
|
400
|
+
let a = [...(n.zdzds || []).filter((e) => Y(e)), ...(n.zhds || []).filter((e) => Tt(e))].map((e) => Vt(i, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
|
|
399
401
|
if (!a.length) return;
|
|
400
402
|
let o = (n) => {
|
|
401
403
|
if (n.length !== 2) return;
|
|
@@ -409,7 +411,7 @@ var ie = {
|
|
|
409
411
|
}));
|
|
410
412
|
};
|
|
411
413
|
if (a.length === 1) {
|
|
412
|
-
o(
|
|
414
|
+
o(Bt(i, a[0]));
|
|
413
415
|
return;
|
|
414
416
|
}
|
|
415
417
|
for (let e = 0; e < a.length - 1; e++) {
|
|
@@ -430,20 +432,20 @@ var ie = {
|
|
|
430
432
|
removeLine: "line_HighwayLiveAlarmNew",
|
|
431
433
|
mapLine: e
|
|
432
434
|
});
|
|
433
|
-
},
|
|
434
|
-
let e =
|
|
435
|
-
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0),
|
|
436
|
-
},
|
|
437
|
-
|
|
435
|
+
}, Ut = () => {
|
|
436
|
+
let e = gt.value.find((e) => Z(e.tags)), t = {}, n = {}, r = {};
|
|
437
|
+
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), W.value = t, G.value = n, K.value = r;
|
|
438
|
+
}, Wt = (e) => {
|
|
439
|
+
B.value = e, Ut(), k("removeLayers", Object.values(H.value).map((e) => e.name)), setTimeout(() => {
|
|
438
440
|
k("addLayers", {
|
|
439
|
-
layers:
|
|
441
|
+
layers: Lt(e),
|
|
440
442
|
isRemove: !0
|
|
441
443
|
});
|
|
442
|
-
}, 1e3),
|
|
443
|
-
},
|
|
444
|
+
}, 1e3), Jt(), Ht();
|
|
445
|
+
}, Gt = () => lt[I.value], Kt = (e, t) => {
|
|
444
446
|
let n = Number(e?.[t]);
|
|
445
447
|
return J(n) ? t === "visibility_min" ? (n / 1e3).toString() : String(e?.[t]) : "";
|
|
446
|
-
},
|
|
448
|
+
}, qt = (e, t, n) => `
|
|
447
449
|
<div id="station_${e.station_number}" style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
|
|
448
450
|
<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;'>
|
|
449
451
|
${t}${n}
|
|
@@ -453,7 +455,7 @@ var ie = {
|
|
|
453
455
|
${e.station_name || "--"}
|
|
454
456
|
</div>
|
|
455
457
|
</div>
|
|
456
|
-
`,
|
|
458
|
+
`, Jt = () => {
|
|
457
459
|
let e = {
|
|
458
460
|
clickOpen: !1,
|
|
459
461
|
spotObject: [{
|
|
@@ -468,9 +470,9 @@ var ie = {
|
|
|
468
470
|
}],
|
|
469
471
|
drawArrObj: [],
|
|
470
472
|
onlyLayerID: "station_highway"
|
|
471
|
-
}, t =
|
|
472
|
-
|
|
473
|
-
let i =
|
|
473
|
+
}, t = Gt(), n = t.field, r = t.unit;
|
|
474
|
+
At().forEach((t) => {
|
|
475
|
+
let i = qt(t, Kt(t, n), r), a = {
|
|
474
476
|
lng: t.longitude,
|
|
475
477
|
lat: t.latitude,
|
|
476
478
|
htmlString: i,
|
|
@@ -482,13 +484,13 @@ var ie = {
|
|
|
482
484
|
mapMarker: e,
|
|
483
485
|
removeMarker: "station_highway"
|
|
484
486
|
});
|
|
485
|
-
},
|
|
487
|
+
}, Yt = () => {
|
|
486
488
|
k("toComponent", {
|
|
487
489
|
componentName: "PieLegend",
|
|
488
|
-
show:
|
|
490
|
+
show: R.value
|
|
489
491
|
});
|
|
490
|
-
},
|
|
491
|
-
if (!
|
|
492
|
+
}, Xt = () => {
|
|
493
|
+
if (!L.value) return k("removeMarker", "pile_highway");
|
|
492
494
|
let e = {
|
|
493
495
|
clickOpen: !0,
|
|
494
496
|
spotObject: [{
|
|
@@ -503,9 +505,9 @@ var ie = {
|
|
|
503
505
|
e.type === "省界门架" ? e.icon = t : e.type === "收费站" ? e.icon = n : e.type === "服务区/停车区" ? e.icon = r : e.type === "枢纽立交" ? e.icon = i : e.type === "养护站" && (e.icon = a), j.value.forEach((t) => {
|
|
504
506
|
if (t.zhds.length) {
|
|
505
507
|
let n = t.zhds.find((t) => t.column === e.column || t.id === e.id);
|
|
506
|
-
n ? (e.rainfall = X(n.zdzds.rainfall_1h), e.rainfall_3h = X(n.zdzds.rainfall_3h), e.rainfall_6h = X(n.zdzds.rainfall_6h), e.rainfall_full_hour = X(n.zdzds.rainfall_full_hour), e.temperature = X(n.zdzds.temperature), e.visibility =
|
|
508
|
+
n ? (e.rainfall = X(n.zdzds.rainfall_1h), e.rainfall_3h = X(n.zdzds.rainfall_3h), e.rainfall_6h = X(n.zdzds.rainfall_6h), e.rainfall_full_hour = X(n.zdzds.rainfall_full_hour), e.temperature = X(n.zdzds.temperature), e.visibility = wt(n.zdzds.visibility_min), n.zdzds.iswarnpre || n.zdzds.iswarnpre_6 || n.zdzds.iswarntemp || n.zdzds.iswarnvis ? ((n.zdzds.iswarnpre || n.zdzds.iswarnpre_6) && (e._warnType = "降水报警"), n.zdzds.iswarntemp && (e._warnType = "温度报警"), n.zdzds.iswarnvis && (e._warnType = "能见度报警"), e._isWarn = !0) : (e._isWarn = !1, e._warnType = "")) : (e._isWarn = !1, e._warnType = "");
|
|
507
509
|
}
|
|
508
|
-
}),
|
|
510
|
+
}), ct.value.forEach((t) => {
|
|
509
511
|
let n = (t.zhflds || []).find((t) => t.Name === e.Name || t.column === e.column || t.id === e.id);
|
|
510
512
|
n && (e.rain1h = n.rain_1h ?? "--", e.rain2h = n.rain_2h ?? "--", e.rain3h = n.rain_3h ?? "--");
|
|
511
513
|
});
|
|
@@ -551,237 +553,243 @@ var ie = {
|
|
|
551
553
|
mapMarker: e,
|
|
552
554
|
removeMarker: "pile_highway"
|
|
553
555
|
});
|
|
554
|
-
},
|
|
555
|
-
let t = !!
|
|
556
|
-
|
|
557
|
-
},
|
|
558
|
-
W.value[e] = !W.value[e];
|
|
559
|
-
}, qt = (e) => {
|
|
556
|
+
}, Zt = (e) => {
|
|
557
|
+
let t = !!W.value[e];
|
|
558
|
+
W.value[e] = !t, t || (G.value[e] = !1, K.value[e] = !0);
|
|
559
|
+
}, Qt = (e) => {
|
|
560
560
|
G.value[e] = !G.value[e];
|
|
561
|
-
},
|
|
561
|
+
}, $t = (e) => {
|
|
562
|
+
K.value[e] = !K.value[e];
|
|
563
|
+
}, en = () => {
|
|
562
564
|
k("close", "HighwayLiveAlarmNew");
|
|
563
565
|
};
|
|
564
566
|
return (e, t) => {
|
|
565
|
-
let n = r, d = s, _ = c, te = o, ne = l,
|
|
566
|
-
return
|
|
567
|
-
|
|
568
|
-
t[
|
|
569
|
-
t[
|
|
567
|
+
let n = r, d = s, _ = c, te = o, ne = l, y = i, x = a;
|
|
568
|
+
return D((b(), p("div", ae, [
|
|
569
|
+
z.value ? (b(), p("div", oe, [m("div", { class: "voice-permission-dialog" }, [
|
|
570
|
+
t[9] ||= m("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
|
|
571
|
+
t[10] ||= m("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
|
|
570
572
|
m("button", {
|
|
571
573
|
class: "voice-permission-btn",
|
|
572
|
-
onClick:
|
|
574
|
+
onClick: ht
|
|
573
575
|
}, "开启")
|
|
574
576
|
])])) : f("", !0),
|
|
575
|
-
m("div",
|
|
577
|
+
m("div", se, [m("div", ce, [t[11] ||= m("div", null, "沿线高速公路实况报警", -1), m("div", le, [m("div", ue, [m("button", {
|
|
578
|
+
class: v(["switch-btn", { active: F.value === "chart" }]),
|
|
579
|
+
onClick: t[0] ||= (e) => It("chart")
|
|
580
|
+
}, " 图表 ", 2), m("button", {
|
|
581
|
+
class: v(["switch-btn", { active: F.value === "table" }]),
|
|
582
|
+
onClick: t[1] ||= (e) => It("table")
|
|
583
|
+
}, " 表格 ", 2)]), m("div", {
|
|
576
584
|
class: "closeBtn",
|
|
577
|
-
onClick:
|
|
585
|
+
onClick: en,
|
|
578
586
|
title: "关闭"
|
|
579
|
-
})])]), t[
|
|
587
|
+
})])]), t[12] ||= m("img", {
|
|
580
588
|
class: "HighwayLiveAlarmNew-head-line",
|
|
581
589
|
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",
|
|
582
590
|
alt: ""
|
|
583
591
|
}, null, -1)]),
|
|
584
|
-
|
|
585
|
-
modelValue:
|
|
586
|
-
"onUpdate:modelValue": t[
|
|
592
|
+
D(m("div", de, [m("div", fe, [m("div", pe, [m("div", me, [t[14] ||= m("span", { class: "setting-label" }, "桩号展示:", -1), m("div", he, [g(n, {
|
|
593
|
+
modelValue: L.value,
|
|
594
|
+
"onUpdate:modelValue": t[2] ||= (e) => L.value = e,
|
|
587
595
|
class: "pile-checkbox",
|
|
588
|
-
onChange:
|
|
596
|
+
onChange: Xt
|
|
589
597
|
}, {
|
|
590
|
-
default:
|
|
598
|
+
default: E(() => [...t[13] ||= [h(" 显示 ", -1)]]),
|
|
591
599
|
_: 1
|
|
592
|
-
}, 8, ["modelValue"])])]), m("div",
|
|
593
|
-
modelValue:
|
|
594
|
-
"onUpdate:modelValue": t[
|
|
600
|
+
}, 8, ["modelValue"])])]), m("div", ge, [t[16] ||= m("span", { class: "setting-label" }, "桩号图例:", -1), m("div", _e, [g(n, {
|
|
601
|
+
modelValue: R.value,
|
|
602
|
+
"onUpdate:modelValue": t[3] ||= (e) => R.value = e,
|
|
595
603
|
class: "pile-checkbox",
|
|
596
|
-
onChange:
|
|
604
|
+
onChange: Yt
|
|
597
605
|
}, {
|
|
598
|
-
default:
|
|
606
|
+
default: E(() => [...t[15] ||= [h(" 显示 ", -1)]]),
|
|
599
607
|
_: 1
|
|
600
|
-
}, 8, ["modelValue"])])])]), m("div",
|
|
608
|
+
}, 8, ["modelValue"])])])]), m("div", ve, [t[23] ||= m("span", {
|
|
601
609
|
class: "setting-label",
|
|
602
610
|
style: { "margin-top": "2px" }
|
|
603
611
|
}, "地图要素:", -1), g(_, {
|
|
604
|
-
modelValue:
|
|
605
|
-
"onUpdate:modelValue": t[
|
|
612
|
+
modelValue: I.value,
|
|
613
|
+
"onUpdate:modelValue": t[4] ||= (e) => I.value = e,
|
|
606
614
|
class: "setting-radios",
|
|
607
|
-
onChange:
|
|
615
|
+
onChange: Jt
|
|
608
616
|
}, {
|
|
609
|
-
default:
|
|
617
|
+
default: E(() => [
|
|
610
618
|
g(d, { value: "1h降水" }, {
|
|
611
|
-
default:
|
|
619
|
+
default: E(() => [...t[17] ||= [h("1h降水", -1)]]),
|
|
612
620
|
_: 1
|
|
613
621
|
}),
|
|
614
622
|
g(d, { value: "3h降水" }, {
|
|
615
|
-
default:
|
|
623
|
+
default: E(() => [...t[18] ||= [h("3h降水", -1)]]),
|
|
616
624
|
_: 1
|
|
617
625
|
}),
|
|
618
626
|
g(d, { value: "6h降水" }, {
|
|
619
|
-
default:
|
|
627
|
+
default: E(() => [...t[19] ||= [h("6h降水", -1)]]),
|
|
620
628
|
_: 1
|
|
621
629
|
}),
|
|
622
630
|
g(d, { value: "当前累计降水" }, {
|
|
623
|
-
default:
|
|
631
|
+
default: E(() => [...t[20] ||= [h("当前累计降水", -1)]]),
|
|
624
632
|
_: 1
|
|
625
633
|
}),
|
|
626
634
|
g(d, { value: "温度" }, {
|
|
627
|
-
default:
|
|
635
|
+
default: E(() => [...t[21] ||= [h("温度", -1)]]),
|
|
628
636
|
_: 1
|
|
629
637
|
}),
|
|
630
638
|
g(d, { value: "能见度" }, {
|
|
631
|
-
default:
|
|
639
|
+
default: E(() => [...t[22] ||= [h("能见度", -1)]]),
|
|
632
640
|
_: 1
|
|
633
641
|
})
|
|
634
642
|
]),
|
|
635
643
|
_: 1
|
|
636
|
-
}, 8, ["modelValue"])])])], 512), [[
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
m("div",
|
|
640
|
-
modelValue:
|
|
641
|
-
"onUpdate:modelValue": t[
|
|
644
|
+
}, 8, ["modelValue"])])])], 512), [[T, F.value === "chart"]]),
|
|
645
|
+
D(m("div", ye, null, 512), [[T, F.value === "chart"]]),
|
|
646
|
+
D(m("div", be, [m("div", xe, [
|
|
647
|
+
m("div", Se, [m("div", Ce, [t[25] ||= m("span", { class: "setting-label" }, "桩号展示:", -1), m("div", we, [g(n, {
|
|
648
|
+
modelValue: L.value,
|
|
649
|
+
"onUpdate:modelValue": t[5] ||= (e) => L.value = e,
|
|
642
650
|
class: "pile-checkbox",
|
|
643
|
-
onChange:
|
|
651
|
+
onChange: Xt
|
|
644
652
|
}, {
|
|
645
|
-
default:
|
|
653
|
+
default: E(() => [...t[24] ||= [h(" 显示 ", -1)]]),
|
|
646
654
|
_: 1
|
|
647
|
-
}, 8, ["modelValue"])])]), m("div",
|
|
648
|
-
modelValue:
|
|
649
|
-
"onUpdate:modelValue": t[
|
|
655
|
+
}, 8, ["modelValue"])])]), m("div", Te, [t[27] ||= m("span", { class: "setting-label" }, "桩号图例:", -1), m("div", Ee, [g(n, {
|
|
656
|
+
modelValue: R.value,
|
|
657
|
+
"onUpdate:modelValue": t[6] ||= (e) => R.value = e,
|
|
650
658
|
class: "pile-checkbox",
|
|
651
|
-
onChange:
|
|
659
|
+
onChange: Yt
|
|
652
660
|
}, {
|
|
653
|
-
default:
|
|
661
|
+
default: E(() => [...t[26] ||= [h(" 显示 ", -1)]]),
|
|
654
662
|
_: 1
|
|
655
663
|
}, 8, ["modelValue"])])])]),
|
|
656
|
-
m("div",
|
|
664
|
+
m("div", De, [t[34] ||= m("span", {
|
|
657
665
|
class: "setting-label",
|
|
658
666
|
style: { "margin-top": "2px" }
|
|
659
667
|
}, "地图要素:", -1), g(_, {
|
|
660
|
-
modelValue:
|
|
661
|
-
"onUpdate:modelValue": t[
|
|
668
|
+
modelValue: I.value,
|
|
669
|
+
"onUpdate:modelValue": t[7] ||= (e) => I.value = e,
|
|
662
670
|
class: "setting-radios",
|
|
663
|
-
onChange:
|
|
671
|
+
onChange: Jt
|
|
664
672
|
}, {
|
|
665
|
-
default:
|
|
673
|
+
default: E(() => [
|
|
666
674
|
g(d, { value: "1h降水" }, {
|
|
667
|
-
default:
|
|
675
|
+
default: E(() => [...t[28] ||= [h("1h降水", -1)]]),
|
|
668
676
|
_: 1
|
|
669
677
|
}),
|
|
670
678
|
g(d, { value: "3h降水" }, {
|
|
671
|
-
default:
|
|
679
|
+
default: E(() => [...t[29] ||= [h("3h降水", -1)]]),
|
|
672
680
|
_: 1
|
|
673
681
|
}),
|
|
674
682
|
g(d, { value: "6h降水" }, {
|
|
675
|
-
default:
|
|
683
|
+
default: E(() => [...t[30] ||= [h("6h降水", -1)]]),
|
|
676
684
|
_: 1
|
|
677
685
|
}),
|
|
678
686
|
g(d, { value: "当前累计降水" }, {
|
|
679
|
-
default:
|
|
687
|
+
default: E(() => [...t[31] ||= [h("当前累计降水", -1)]]),
|
|
680
688
|
_: 1
|
|
681
689
|
}),
|
|
682
690
|
g(d, { value: "温度" }, {
|
|
683
|
-
default:
|
|
691
|
+
default: E(() => [...t[32] ||= [h("温度", -1)]]),
|
|
684
692
|
_: 1
|
|
685
693
|
}),
|
|
686
694
|
g(d, { value: "能见度" }, {
|
|
687
|
-
default:
|
|
695
|
+
default: E(() => [...t[33] ||= [h("能见度", -1)]]),
|
|
688
696
|
_: 1
|
|
689
697
|
})
|
|
690
698
|
]),
|
|
691
699
|
_: 1
|
|
692
700
|
}, 8, ["modelValue"])]),
|
|
693
|
-
m("div",
|
|
694
|
-
modelValue:
|
|
695
|
-
"onUpdate:modelValue": t[
|
|
701
|
+
m("div", Oe, [t[35] ||= m("span", { class: "setting-label" }, "路线地图:", -1), g(ne, {
|
|
702
|
+
modelValue: B.value,
|
|
703
|
+
"onUpdate:modelValue": t[8] ||= (e) => B.value = e,
|
|
696
704
|
placeholder: "请选择路线",
|
|
697
705
|
class: "dark-select",
|
|
698
|
-
onChange:
|
|
706
|
+
onChange: Wt
|
|
699
707
|
}, {
|
|
700
|
-
default:
|
|
708
|
+
default: E(() => [(b(!0), p(u, null, S(V.value, (e) => (b(), ee(te, {
|
|
701
709
|
key: e,
|
|
702
710
|
label: e,
|
|
703
711
|
value: e
|
|
704
712
|
}, null, 8, ["label", "value"]))), 128))]),
|
|
705
713
|
_: 1
|
|
706
714
|
}, 8, ["modelValue"])])
|
|
707
|
-
])], 512), [[
|
|
708
|
-
|
|
715
|
+
])], 512), [[T, F.value === "table"]]),
|
|
716
|
+
D(m("div", ke, [t[48] ||= m("div", { class: "table-head" }, [
|
|
709
717
|
m("span", null, "高速名称"),
|
|
710
718
|
m("span", null, "状态要素"),
|
|
711
719
|
m("span", { class: "head-arrow" })
|
|
712
|
-
], -1), m("div",
|
|
720
|
+
], -1), m("div", Ae, [(b(!0), p(u, null, S(gt.value, (e) => (b(), p("div", {
|
|
713
721
|
class: "table-row",
|
|
714
722
|
key: e.name
|
|
715
723
|
}, [
|
|
716
724
|
m("div", {
|
|
717
725
|
class: "table-row-main",
|
|
718
|
-
onClick: (t) =>
|
|
726
|
+
onClick: (t) => Zt(e.name)
|
|
719
727
|
}, [
|
|
720
|
-
m("span",
|
|
721
|
-
m("div", { class: v(["status-tags", { "has-warn": Z(e.tags) }]) }, [(
|
|
728
|
+
m("span", Me, C(e.name), 1),
|
|
729
|
+
m("div", { class: v(["status-tags", { "has-warn": Z(e.tags) }]) }, [(b(!0), p(u, null, S(e.tags, (t) => (b(), p("span", {
|
|
722
730
|
class: v(["status-tag", { warn: t.warn }]),
|
|
723
731
|
key: `${e.name}-${t.label}`
|
|
724
|
-
}, [m("span", null,
|
|
732
|
+
}, [m("span", null, C(t.label), 1)], 2))), 128))], 2),
|
|
725
733
|
m("span", {
|
|
726
|
-
class: v(["expand-arrow", { expanded:
|
|
734
|
+
class: v(["expand-arrow", { expanded: W.value[e.name] }]),
|
|
727
735
|
"aria-hidden": "true"
|
|
728
|
-
}, [g(
|
|
729
|
-
default:
|
|
736
|
+
}, [g(y, null, {
|
|
737
|
+
default: E(() => [g(w(re))]),
|
|
730
738
|
_: 1
|
|
731
739
|
})], 2)
|
|
732
|
-
], 8,
|
|
733
|
-
|
|
740
|
+
], 8, je),
|
|
741
|
+
D(m("div", {
|
|
734
742
|
class: "station-title",
|
|
735
|
-
onClick: (t) =>
|
|
736
|
-
}, [m("span", null, [t[
|
|
737
|
-
default:
|
|
743
|
+
onClick: (t) => Qt(e.name)
|
|
744
|
+
}, [m("span", null, [t[36] ||= h(" 自动站数据 ", -1), dt(e.stations) > 0 ? (b(), p("span", Pe, " (报警数量:" + C(dt(e.stations)) + "个) ", 1)) : f("", !0)]), m("span", { class: v(["panel-arrow", { expanded: G.value[e.name] }]) }, [g(y, null, {
|
|
745
|
+
default: E(() => [g(w(re))]),
|
|
738
746
|
_: 1
|
|
739
|
-
})], 2)], 8,
|
|
740
|
-
|
|
741
|
-
t[
|
|
742
|
-
m("span",
|
|
743
|
-
m("span",
|
|
744
|
-
m("span",
|
|
745
|
-
m("span",
|
|
746
|
-
]), e.stations.length ? (
|
|
747
|
+
})], 2)], 8, Ne), [[T, W.value[e.name]]]),
|
|
748
|
+
D(m("div", Fe, [m("div", Ie, [
|
|
749
|
+
t[45] ||= m("span", null, "站名", -1),
|
|
750
|
+
m("span", Le, [m("span", Re, [t[37] ||= h(" 1h降水 ", -1), e.warnCount.rainfall_1h > 0 ? (b(), p("span", ze, C(e.warnCount.rainfall_1h) + "条 ", 1)) : f("", !0)]), t[38] ||= m("span", { class: "unit" }, "(mm)", -1)]),
|
|
751
|
+
m("span", Be, [m("span", Ve, [t[39] ||= h(" 6h降水 ", -1), e.warnCount.rainfall_6h > 0 ? (b(), p("span", He, C(e.warnCount.rainfall_6h) + "条 ", 1)) : f("", !0)]), t[40] ||= m("span", { class: "unit" }, "(mm)", -1)]),
|
|
752
|
+
m("span", Ue, [m("span", We, [t[41] ||= h(" 温度 ", -1), e.warnCount.temp > 0 ? (b(), p("span", Ge, C(e.warnCount.temp) + "条 ", 1)) : f("", !0)]), t[42] ||= m("span", { class: "unit" }, "(℃)", -1)]),
|
|
753
|
+
m("span", Ke, [m("span", qe, [t[43] ||= h(" 能见度 ", -1), e.warnCount.vis > 0 ? (b(), p("span", Je, C(e.warnCount.vis) + "条 ", 1)) : f("", !0)]), t[44] ||= m("span", { class: "unit" }, "(km)", -1)])
|
|
754
|
+
]), e.stations.length ? (b(), p("div", Ye, [(b(!0), p(u, null, S(e.stations, (t) => (b(), p("div", {
|
|
747
755
|
class: v(["station-row", { "is-warn": Y(t) }]),
|
|
748
756
|
key: `${e.name}-${t.station_number}`,
|
|
749
|
-
onClick: (e) =>
|
|
757
|
+
onClick: (e) => vt(t, "station")
|
|
750
758
|
}, [
|
|
751
|
-
m("span", null,
|
|
752
|
-
m("span",
|
|
753
|
-
m("span",
|
|
754
|
-
m("span",
|
|
755
|
-
m("span",
|
|
756
|
-
], 10,
|
|
757
|
-
|
|
759
|
+
m("span", null, C(t.station_name || "--"), 1),
|
|
760
|
+
m("span", Ze, C(Ct(t.rainfall_1h)), 1),
|
|
761
|
+
m("span", Qe, C(Ct(t.rainfall_6h)), 1),
|
|
762
|
+
m("span", $e, C(Ct(t.temperature)), 1),
|
|
763
|
+
m("span", et, C(wt(t.visibility_min)), 1)
|
|
764
|
+
], 10, Xe))), 128))])) : (b(), p("div", tt, "暂无站点数据"))], 512), [[T, W.value[e.name] && G.value[e.name]]]),
|
|
765
|
+
D(m("div", {
|
|
758
766
|
class: "pile-title",
|
|
759
|
-
onClick: (t) =>
|
|
760
|
-
}, [m("span", null, [t[
|
|
761
|
-
default:
|
|
767
|
+
onClick: (t) => $t(e.name)
|
|
768
|
+
}, [m("span", null, [t[46] ||= h(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (b(), p("span", rt, " (报警数量:" + C(e.pileWarnCount) + "个)", 1)) : f("", !0)]), m("span", { class: v(["panel-arrow", { expanded: K.value[e.name] }]) }, [g(y, null, {
|
|
769
|
+
default: E(() => [g(w(re))]),
|
|
762
770
|
_: 1
|
|
763
|
-
})], 2)], 8,
|
|
764
|
-
|
|
771
|
+
})], 2)], 8, nt), [[T, W.value[e.name]]]),
|
|
772
|
+
D(m("div", it, [t[47] ||= m("div", { class: "pile-head" }, [
|
|
765
773
|
m("span", null, "桩号"),
|
|
766
774
|
m("span", null, "1h降水"),
|
|
767
775
|
m("span", null, "6h降水"),
|
|
768
776
|
m("span", null, "温度"),
|
|
769
777
|
m("span", null, "能见度")
|
|
770
|
-
], -1), e.piles.length ? (
|
|
778
|
+
], -1), e.piles.length ? (b(), p("div", at, [(b(!0), p(u, null, S(e.piles, (e) => (b(), p("div", {
|
|
771
779
|
class: v(["pile-row", { "is-warn": e.isWarn }]),
|
|
772
780
|
key: e.pileNo,
|
|
773
|
-
onClick: (t) =>
|
|
781
|
+
onClick: (t) => vt(e, "pile")
|
|
774
782
|
}, [
|
|
775
|
-
m("span", null,
|
|
776
|
-
m("span", null,
|
|
777
|
-
m("span", null,
|
|
778
|
-
m("span", null,
|
|
779
|
-
m("span", null,
|
|
780
|
-
], 10,
|
|
781
|
-
]))), 128))])], 512), [[
|
|
782
|
-
])), [[
|
|
783
|
+
m("span", null, C(e.pileNo), 1),
|
|
784
|
+
m("span", null, C(e.rainfall), 1),
|
|
785
|
+
m("span", null, C(e.rainfall_6h), 1),
|
|
786
|
+
m("span", null, C(e.temperature), 1),
|
|
787
|
+
m("span", null, C(e.visibility), 1)
|
|
788
|
+
], 10, ot))), 128))])) : (b(), p("div", st, "暂无数据"))], 512), [[T, W.value[e.name] && K.value[e.name]]])
|
|
789
|
+
]))), 128))])], 512), [[T, F.value === "table"]])
|
|
790
|
+
])), [[x, M.value]]);
|
|
783
791
|
};
|
|
784
792
|
}
|
|
785
|
-
}), [["__scopeId", "data-v-
|
|
793
|
+
}), [["__scopeId", "data-v-2461f454"]]);
|
|
786
794
|
//#endregion
|
|
787
795
|
export { O as t };
|