nxd-plugin 1.8.52 → 1.8.54
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-GeologyLiveAlarm-CXp7NwKr.mjs +386 -0
- package/dist/chunks/{component-HdMajorActivity-BS7LJXLj.mjs → component-HdMajorActivity-DBUjo4Rm.mjs} +221 -222
- package/dist/chunks/{component-HdRadarTimeLine-CwdMMlPK.mjs → component-HdRadarTimeLine-BvE4Ny20.mjs} +3 -3
- package/dist/chunks/{component-HighwayLiveAlarmNew-Dxf6DUyI.mjs → component-HighwayLiveAlarmNew-CcsxClbD.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-pixyOE-9.mjs → component-RadarShortTerm-DoiqMpY6.mjs} +181 -161
- package/dist/chunks/component-ReservoirLiveAlarm-C8mJSD-4.mjs +387 -0
- package/dist/chunks/{component-YCDataService-CniJWhHF.mjs → component-YCDataService-DKvMM7rM.mjs} +43 -35
- package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +0 -2
- package/dist/components/HdRadarTimeLine/HdRadarTimeLine.vue.d.ts +2 -2
- package/dist/components/HdStationTem/HdStationTem.vue.d.ts +2 -2
- package/dist/nxd-plugin.mjs +7 -7
- package/dist/styles/component-GeologyLiveAlarm.css +1 -1
- package/dist/styles/component-HdMajorActivity.css +1 -1
- package/dist/styles/component-HdRadarTimeLine.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-ReservoirLiveAlarm.css +1 -1
- package/dist/styles/component-YCDataService.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-GeologyLiveAlarm-CKdsxprI.mjs +0 -379
- package/dist/chunks/component-ReservoirLiveAlarm-C-NS9Erh.mjs +0 -380
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import "./component-AqiMonitor-CiRH3KK9.mjs";
|
|
2
|
-
import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
|
|
3
|
-
import { n } from "./component-GeologyLiveAlarm-CKdsxprI.mjs";
|
|
4
|
-
import { ElIcon as r, ElLoadingDirective as i, ElRadio as a, ElRadioGroup as o } from "element-plus/es";
|
|
5
|
-
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, mergeProps as ee, nextTick as h, normalizeClass as g, normalizeStyle as te, onBeforeUnmount as ne, onMounted as re, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, withCtx as C, withDirectives as w } from "vue";
|
|
6
|
-
import { ArrowRight as T } from "@element-plus/icons-vue";
|
|
7
|
-
import * as ie from "echarts";
|
|
8
|
-
import "element-plus/es/components/loading/style/css";
|
|
9
|
-
import "element-plus/es/components/radio/style/css";
|
|
10
|
-
import "element-plus/es/components/radio-group/style/css";
|
|
11
|
-
//#region src/assets/img/icons/水库.png
|
|
12
|
-
var ae = "data:image/png;base64,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", oe = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "voice-permission-mask"
|
|
15
|
-
}, se = { class: "ReservoirLiveAlarm-head" }, ce = { class: "ReservoirLiveAlarm-head-top" }, le = { class: "head-actions" }, ue = { class: "view-switch" }, de = { class: "ReservoirLiveAlarm-chart" }, fe = { class: "ReservoirLiveAlarm-setting-panel" }, pe = { class: "display-setting" }, me = { class: "setting-row" }, he = { class: "ReservoirLiveAlarm-table" }, ge = { class: "table-body" }, _e = ["onClick"], ve = { class: "name" }, ye = ["onClick"], be = {
|
|
16
|
-
key: 0,
|
|
17
|
-
style: { color: "red" }
|
|
18
|
-
}, xe = { class: "station-panel" }, Se = { class: "station-head" }, Ce = { class: "metric-head" }, we = { class: "label" }, Te = {
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "warn-count"
|
|
21
|
-
}, Ee = { class: "metric-head" }, De = { class: "label" }, Oe = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "warn-count"
|
|
24
|
-
}, ke = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "station-body"
|
|
27
|
-
}, Ae = ["onClick"], je = { class: "metric-value" }, Me = { class: "metric-value" }, Ne = {
|
|
28
|
-
key: 1,
|
|
29
|
-
class: "station-empty"
|
|
30
|
-
}, Pe = {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: "detail-popup-dialog"
|
|
33
|
-
}, Fe = { class: "detail-popup-head" }, Ie = { class: "detail-popup-title" }, Le = { class: "detail-popup-row" }, Re = { class: "detail-popup-row" }, ze = { class: "detail-popup-row" }, Be = { class: "detail-popup-row" }, Ve = { class: "detail-popup-row" }, He = { class: "detail-popup-row" }, Ue = { key: 0 }, We = {
|
|
34
|
-
key: 0,
|
|
35
|
-
style: { "margin-right": "10px" }
|
|
36
|
-
}, Ge = { key: 1 }, Ke = { key: 1 }, E = "当前暂无报警", D = /* @__PURE__ */ t(/* @__PURE__ */ m({
|
|
37
|
-
inheritAttrs: !1,
|
|
38
|
-
__name: "ReservoirLiveAlarm",
|
|
39
|
-
props: {
|
|
40
|
-
appKey: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: ""
|
|
43
|
-
},
|
|
44
|
-
appSalt: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: ""
|
|
47
|
-
},
|
|
48
|
-
baseHttp: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: ""
|
|
51
|
-
},
|
|
52
|
-
ids: {
|
|
53
|
-
type: Object,
|
|
54
|
-
default: () => ({})
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
emits: [
|
|
58
|
-
"addMarker",
|
|
59
|
-
"close",
|
|
60
|
-
"removeMarker",
|
|
61
|
-
"addDataTitle",
|
|
62
|
-
"removeDataTitle",
|
|
63
|
-
"toMapView"
|
|
64
|
-
],
|
|
65
|
-
setup(t, { emit: m }) {
|
|
66
|
-
let D = t, O = m, qe = v([]), k = v(""), A = v(!1), j = v(null), M = v(null), N = v("table"), P = v("1h降水"), F = v(!1), I = v(!1), L = v({}), R = v("水库点观测时间:--"), z = v([]), B = v({}), V = v({}), H = null, Je = c(() => k.value === E ? "#52c41a" : "#ff4d4f"), U = (e) => (e || []).filter((e) => X(e)).length, W = () => H || (H = new Audio(n), H.preload = "auto", H), Ye = () => new Promise((e) => {
|
|
67
|
-
let t = W();
|
|
68
|
-
t.volume = 0, t.currentTime = 0;
|
|
69
|
-
let n = t.play();
|
|
70
|
-
if (!n) {
|
|
71
|
-
F.value = !0, e();
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
n.then(() => {
|
|
75
|
-
t.pause(), t.volume = 1, e();
|
|
76
|
-
}).catch(() => {
|
|
77
|
-
F.value = !0, e();
|
|
78
|
-
});
|
|
79
|
-
}), G = () => {
|
|
80
|
-
let e = W();
|
|
81
|
-
e.volume = 1, e.currentTime = 0, e.play().catch(() => {});
|
|
82
|
-
}, Xe = () => {
|
|
83
|
-
let e = W();
|
|
84
|
-
e.volume = 0, e.currentTime = 0;
|
|
85
|
-
let t = e.play();
|
|
86
|
-
if (!t) {
|
|
87
|
-
F.value = !1;
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
t.then(() => {
|
|
91
|
-
e.pause(), F.value = !1, k.value !== E && G();
|
|
92
|
-
}).catch(() => {});
|
|
93
|
-
}, Ze = c(() => Q(z.value, (e) => Z(e.tags)));
|
|
94
|
-
re(() => {
|
|
95
|
-
K(), j.value = setInterval(() => {
|
|
96
|
-
K();
|
|
97
|
-
}, 1e3 * 60 * 10);
|
|
98
|
-
}), ne(() => {
|
|
99
|
-
j.value && clearInterval(j.value), H && (H.pause(), H.currentTime = 0), M.value?.dispose(), M.value = null;
|
|
100
|
-
});
|
|
101
|
-
let K = async () => {
|
|
102
|
-
A.value = !0;
|
|
103
|
-
let t = await e({
|
|
104
|
-
appKey: D.appKey,
|
|
105
|
-
appSalt: D.appSalt,
|
|
106
|
-
id: D.ids.data.id,
|
|
107
|
-
variables: {},
|
|
108
|
-
baseHttp: D.baseHttp,
|
|
109
|
-
reqType: D.ids.data.reqType,
|
|
110
|
-
isFormData: D.ids.data.isFormData
|
|
111
|
-
});
|
|
112
|
-
A.value = !1;
|
|
113
|
-
let n = t.data.result.ds;
|
|
114
|
-
console.log("得到数据", JSON.parse(JSON.stringify(n))), qe.value = n;
|
|
115
|
-
let r = R.value, i = $e(n);
|
|
116
|
-
R.value = i, O("removeDataTitle", r), setTimeout(() => {
|
|
117
|
-
O("addDataTitle", i);
|
|
118
|
-
}, 1e3);
|
|
119
|
-
let a = [], o = [], s = 0, c = 0, l = 0, u = 0;
|
|
120
|
-
n.forEach((e) => {
|
|
121
|
-
let t = tt(e), n = Q(e.skzhds || [], (e) => X(e));
|
|
122
|
-
s += n.length, n.forEach((e) => {
|
|
123
|
-
X(e) && c++, e?.iswarnpre === 1 && l++, e?.iswarnpre_6 === 1 && u++;
|
|
124
|
-
}), o.push({
|
|
125
|
-
name: e.name,
|
|
126
|
-
stations: n,
|
|
127
|
-
warnCount: rt(n),
|
|
128
|
-
tags: nt(t)
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
let d = s - c;
|
|
132
|
-
a.push({
|
|
133
|
-
value: d,
|
|
134
|
-
name: "正常",
|
|
135
|
-
itemStyle: { color: "#52c41a" },
|
|
136
|
-
label: { color: "#52c41a" }
|
|
137
|
-
}, {
|
|
138
|
-
value: c,
|
|
139
|
-
name: "报警",
|
|
140
|
-
itemStyle: { color: "#ff4d4f" },
|
|
141
|
-
label: { color: "#ff4d4f" }
|
|
142
|
-
}), z.value = o, o.length > 0 && (B.value[o[0].name] = !0), o.forEach((e) => {
|
|
143
|
-
V.value[e.name] = !0;
|
|
144
|
-
}), $(), k.value = it(o), await Ye(), c > 0 && G(), at(a);
|
|
145
|
-
}, Qe = (e) => {
|
|
146
|
-
I.value = !1, O("toMapView", {
|
|
147
|
-
lng: e.longitude,
|
|
148
|
-
lat: e.latitude,
|
|
149
|
-
zoom: 12
|
|
150
|
-
});
|
|
151
|
-
}, q = (e) => {
|
|
152
|
-
let t = Number(e);
|
|
153
|
-
return t < 999999 && t > -999999;
|
|
154
|
-
}, J = (e, t, n = 1) => {
|
|
155
|
-
let r = Number(e);
|
|
156
|
-
return q(r) ? `${r.toFixed(n)}${t}` : "";
|
|
157
|
-
}, Y = (e, t = 1) => {
|
|
158
|
-
let n = Number(e);
|
|
159
|
-
return q(n) ? n.toFixed(t) : "--";
|
|
160
|
-
}, X = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1, Z = (e) => e.some((e) => e.warn), Q = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), $e = (e) => {
|
|
161
|
-
let t = (e || []).find((e) => (e?.skzhds || []).length)?.skzhds?.[0]?.observation_time;
|
|
162
|
-
return t ? `水库点观测时间:${String(t).replace("T", " ").slice(0, 13)}时` : "水库点观测时间:--";
|
|
163
|
-
}, et = (e, t, n) => e.find((e) => e?.[t] === 1 && q(e?.[n])) || e.find((e) => e?.[t] === 1), tt = (e) => {
|
|
164
|
-
let t = e.skzhds || [], n = et(t, "iswarnpre", "rainfall_1h"), r = et(t, "iswarnpre_6", "rainfall_6h");
|
|
165
|
-
return {
|
|
166
|
-
iswarnrainfall_1h: n ? 1 : 0,
|
|
167
|
-
iswarnrainfall_6h: r ? 1 : 0,
|
|
168
|
-
rainfallWarnStation: n,
|
|
169
|
-
rainfall6hWarnStation: r
|
|
170
|
-
};
|
|
171
|
-
}, nt = (e) => [{
|
|
172
|
-
label: "1h降水",
|
|
173
|
-
warn: e.iswarnrainfall_1h === 1,
|
|
174
|
-
value: e.iswarnrainfall_1h ? J(e.rainfallWarnStation?.rainfall_1h, "mm", 1) : ""
|
|
175
|
-
}, {
|
|
176
|
-
label: "6h降水",
|
|
177
|
-
warn: e.iswarnrainfall_6h === 1,
|
|
178
|
-
value: e.iswarnrainfall_6h ? J(e.rainfall6hWarnStation?.rainfall_6h, "mm", 1) : ""
|
|
179
|
-
}], rt = (e) => ({
|
|
180
|
-
rainfall_1h: e.filter((e) => e?.iswarnpre === 1).length,
|
|
181
|
-
rainfall_6h: e.filter((e) => e?.iswarnpre_6 === 1).length
|
|
182
|
-
}), it = (e) => {
|
|
183
|
-
let t = e.filter((e) => e.warnCount.rainfall_1h > 0 || e.warnCount.rainfall_6h > 0);
|
|
184
|
-
return t.length ? t.map((e) => {
|
|
185
|
-
let t = [];
|
|
186
|
-
return e.warnCount.rainfall_1h > 0 && t.push("1h降水报警"), e.warnCount.rainfall_6h > 0 && t.push("6h降水报警"), `${e.name}:${t.join("、")}`;
|
|
187
|
-
}).join(";") : E;
|
|
188
|
-
}, at = (e) => {
|
|
189
|
-
let t = document.querySelector(".ReservoirLiveAlarm-chart");
|
|
190
|
-
if (!t) return;
|
|
191
|
-
M.value ||= ie.init(t);
|
|
192
|
-
let n = {
|
|
193
|
-
tooltip: {
|
|
194
|
-
trigger: "item",
|
|
195
|
-
formatter: (e) => `${e?.name ?? ""}: ${e?.value ?? 0}个`
|
|
196
|
-
},
|
|
197
|
-
color: "#52c41a",
|
|
198
|
-
grid: {
|
|
199
|
-
top: "0",
|
|
200
|
-
right: "0",
|
|
201
|
-
bottom: "0",
|
|
202
|
-
left: "0"
|
|
203
|
-
},
|
|
204
|
-
series: [{
|
|
205
|
-
type: "pie",
|
|
206
|
-
radius: "40%",
|
|
207
|
-
label: {
|
|
208
|
-
show: !0,
|
|
209
|
-
position: "outside",
|
|
210
|
-
fontSize: 12,
|
|
211
|
-
color: "#fff"
|
|
212
|
-
},
|
|
213
|
-
data: e
|
|
214
|
-
}]
|
|
215
|
-
};
|
|
216
|
-
M.value.setOption(n);
|
|
217
|
-
}, ot = async (e) => {
|
|
218
|
-
N.value = e, e === "chart" && (await h(), M.value?.resize());
|
|
219
|
-
}, $ = () => {
|
|
220
|
-
let e = {
|
|
221
|
-
clickOpen: !1,
|
|
222
|
-
spotObject: [{
|
|
223
|
-
offsetX: -20,
|
|
224
|
-
offsetY: -15,
|
|
225
|
-
spotArrone: []
|
|
226
|
-
}],
|
|
227
|
-
drawArrObj: [],
|
|
228
|
-
onlyLayerID: "geo"
|
|
229
|
-
}, t = [];
|
|
230
|
-
z.value.flatMap((e) => e.stations || []).forEach((n, r) => {
|
|
231
|
-
t.push({
|
|
232
|
-
id: `marker_${r}`,
|
|
233
|
-
data: n
|
|
234
|
-
});
|
|
235
|
-
let i = `
|
|
236
|
-
<div id="marker_${r}" style="display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;" title="${n.reservoir_name}">
|
|
237
|
-
<div style="color:#fff;font-size:12px;text-align:center;line-height:1.4;text-shadow:1px 0 #000,-1px 0 #000,0 1px #000,0 -1px #000,1px 1px #000,-1px -1px #000,1px -1px #000,-1px 1px #000">
|
|
238
|
-
${Y(P.value === "1h降水" ? n.rainfall_1h : n.rainfall_6h)}mm
|
|
239
|
-
</div>
|
|
240
|
-
<img src="${ae}" alt="地质灾害" style="width: 24px; height: 24px;">
|
|
241
|
-
</div>
|
|
242
|
-
`, a = {
|
|
243
|
-
lng: n.longitude,
|
|
244
|
-
lat: n.latitude,
|
|
245
|
-
htmlString: i,
|
|
246
|
-
otherData: { markId: "geo" }
|
|
247
|
-
};
|
|
248
|
-
e.spotObject[0].spotArrone.push(a);
|
|
249
|
-
}), O("addMarker", {
|
|
250
|
-
mapMarker: e,
|
|
251
|
-
removeMarker: "geo"
|
|
252
|
-
}), setTimeout(() => {
|
|
253
|
-
t.forEach((e) => {
|
|
254
|
-
document.getElementById(e.id)?.addEventListener("click", () => {
|
|
255
|
-
I.value = !0, L.value = e.data;
|
|
256
|
-
});
|
|
257
|
-
});
|
|
258
|
-
}, 1e3);
|
|
259
|
-
}, st = (e) => {
|
|
260
|
-
B.value[e] = !B.value[e];
|
|
261
|
-
}, ct = (e) => {
|
|
262
|
-
V.value[e] = !V.value[e];
|
|
263
|
-
}, lt = () => {
|
|
264
|
-
O("close", "ReservoirLiveAlarm");
|
|
265
|
-
}, ut = () => {
|
|
266
|
-
I.value = !1;
|
|
267
|
-
};
|
|
268
|
-
return (e, t) => {
|
|
269
|
-
let n = a, c = o, m = r, h = i;
|
|
270
|
-
return _(), u(s, null, [w((_(), u("div", ee({
|
|
271
|
-
class: "ReservoirLiveAlarm",
|
|
272
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
273
|
-
}, e.$attrs), [
|
|
274
|
-
F.value ? (_(), u("div", oe, [d("div", { class: "voice-permission-dialog" }, [
|
|
275
|
-
t[3] ||= d("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
|
|
276
|
-
t[4] ||= d("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
|
|
277
|
-
d("button", {
|
|
278
|
-
class: "voice-permission-btn",
|
|
279
|
-
onClick: Xe
|
|
280
|
-
}, "开启")
|
|
281
|
-
])])) : l("", !0),
|
|
282
|
-
d("div", se, [d("div", ce, [t[5] ||= d("div", null, "水库灾害实况报警", -1), d("div", le, [d("div", ue, [d("button", {
|
|
283
|
-
class: g(["switch-btn", { active: N.value === "chart" }]),
|
|
284
|
-
onClick: t[0] ||= (e) => ot("chart")
|
|
285
|
-
}, " 图表 ", 2), d("button", {
|
|
286
|
-
class: g(["switch-btn", { active: N.value === "table" }]),
|
|
287
|
-
onClick: t[1] ||= (e) => ot("table")
|
|
288
|
-
}, " 表格 ", 2)]), d("div", {
|
|
289
|
-
class: "closeBtn",
|
|
290
|
-
onClick: lt,
|
|
291
|
-
title: "关闭"
|
|
292
|
-
})])]), t[6] ||= d("img", {
|
|
293
|
-
class: "ReservoirLiveAlarm-head-line",
|
|
294
|
-
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",
|
|
295
|
-
alt: ""
|
|
296
|
-
}, null, -1)]),
|
|
297
|
-
w(d("div", {
|
|
298
|
-
class: "ReservoirLiveAlarm-summary",
|
|
299
|
-
style: te({ color: Je.value })
|
|
300
|
-
}, b(k.value), 5), [[S, N.value === "chart"]]),
|
|
301
|
-
w(d("div", de, null, 512), [[S, N.value === "chart"]]),
|
|
302
|
-
w(d("div", fe, [d("div", pe, [d("div", me, [t[9] ||= d("span", { class: "setting-label" }, "地图要素:", -1), p(c, {
|
|
303
|
-
modelValue: P.value,
|
|
304
|
-
"onUpdate:modelValue": t[2] ||= (e) => P.value = e,
|
|
305
|
-
class: "setting-radios",
|
|
306
|
-
onChange: $
|
|
307
|
-
}, {
|
|
308
|
-
default: C(() => [p(n, { value: "1h降水" }, {
|
|
309
|
-
default: C(() => [...t[7] ||= [f("1h降水", -1)]]),
|
|
310
|
-
_: 1
|
|
311
|
-
}), p(n, { value: "6h降水" }, {
|
|
312
|
-
default: C(() => [...t[8] ||= [f("6h降水", -1)]]),
|
|
313
|
-
_: 1
|
|
314
|
-
})]),
|
|
315
|
-
_: 1
|
|
316
|
-
}, 8, ["modelValue"])])])], 512), [[S, N.value === "table"]]),
|
|
317
|
-
w(d("div", he, [t[16] ||= d("div", { class: "table-head" }, [
|
|
318
|
-
d("span", null, "水库类别"),
|
|
319
|
-
d("span", null, "状态要素"),
|
|
320
|
-
d("span", { class: "head-arrow" })
|
|
321
|
-
], -1), d("div", ge, [(_(!0), u(s, null, y(Ze.value, (e) => (_(), u("div", {
|
|
322
|
-
class: "table-row",
|
|
323
|
-
key: e.name
|
|
324
|
-
}, [
|
|
325
|
-
d("div", {
|
|
326
|
-
class: "table-row-main",
|
|
327
|
-
onClick: (t) => st(e.name)
|
|
328
|
-
}, [
|
|
329
|
-
d("span", ve, b(e.name), 1),
|
|
330
|
-
d("div", { class: g(["status-tags", { "has-warn": Z(e.tags) }]) }, [(_(!0), u(s, null, y(e.tags, (t) => (_(), u("span", {
|
|
331
|
-
class: g(["status-tag", { warn: t.warn }]),
|
|
332
|
-
key: `${e.name}-${t.label}`
|
|
333
|
-
}, [d("span", null, b(t.label), 1)], 2))), 128))], 2),
|
|
334
|
-
d("span", {
|
|
335
|
-
class: g(["expand-arrow", { expanded: B.value[e.name] }]),
|
|
336
|
-
"aria-hidden": "true"
|
|
337
|
-
}, [p(m, null, {
|
|
338
|
-
default: C(() => [p(x(T))]),
|
|
339
|
-
_: 1
|
|
340
|
-
})], 2)
|
|
341
|
-
], 8, _e),
|
|
342
|
-
w(d("div", {
|
|
343
|
-
class: "station-title",
|
|
344
|
-
onClick: (t) => ct(e.name)
|
|
345
|
-
}, [d("span", null, [t[10] ||= f(" 水库点数据 ", -1), U(e.stations) > 0 ? (_(), u("span", be, " (报警数量:" + b(U(e.stations)) + "个) ", 1)) : l("", !0)]), d("span", { class: g(["panel-arrow", { expanded: V.value[e.name] }]) }, [p(m, null, {
|
|
346
|
-
default: C(() => [p(x(T))]),
|
|
347
|
-
_: 1
|
|
348
|
-
})], 2)], 8, ye), [[S, B.value[e.name]]]),
|
|
349
|
-
w(d("div", xe, [d("div", Se, [
|
|
350
|
-
t[15] ||= d("span", null, "水库点", -1),
|
|
351
|
-
d("span", Ce, [d("span", we, [t[11] ||= f(" 1h降水 ", -1), e.warnCount.rainfall_1h > 0 ? (_(), u("span", Te, b(e.warnCount.rainfall_1h) + "条 ", 1)) : l("", !0)]), t[12] ||= d("span", { class: "unit" }, "(mm)", -1)]),
|
|
352
|
-
d("span", Ee, [d("span", De, [t[13] ||= f(" 6h降水 ", -1), e.warnCount.rainfall_6h > 0 ? (_(), u("span", Oe, b(e.warnCount.rainfall_6h) + "条 ", 1)) : l("", !0)]), t[14] ||= d("span", { class: "unit" }, "(mm)", -1)])
|
|
353
|
-
]), e.stations.length ? (_(), u("div", ke, [(_(!0), u(s, null, y(e.stations, (t) => (_(), u("div", {
|
|
354
|
-
class: g(["station-row", { "is-warn": X(t) }]),
|
|
355
|
-
key: `${e.name}-${t.reservoir_name}`,
|
|
356
|
-
onClick: (e) => Qe(t)
|
|
357
|
-
}, [
|
|
358
|
-
d("span", null, b(t.reservoir_name || "--"), 1),
|
|
359
|
-
d("span", je, b(Y(t.rainfall_1h)), 1),
|
|
360
|
-
d("span", Me, b(Y(t.rainfall_6h)), 1)
|
|
361
|
-
], 10, Ae))), 128))])) : (_(), u("div", Ne, "暂无站点数据"))], 512), [[S, B.value[e.name] && V.value[e.name]]])
|
|
362
|
-
]))), 128))])], 512), [[S, N.value === "table"]])
|
|
363
|
-
], 16)), [[h, A.value]]), I.value ? (_(), u("div", Pe, [
|
|
364
|
-
d("div", Fe, [d("span", Ie, b(L.value.name), 1), d("span", {
|
|
365
|
-
class: "detail-popup-close",
|
|
366
|
-
onClick: ut,
|
|
367
|
-
title: "关闭"
|
|
368
|
-
})]),
|
|
369
|
-
d("div", Le, [t[17] ||= d("div", null, "水库点", -1), d("div", null, b(L.value.reservoir_name), 1)]),
|
|
370
|
-
d("div", Re, [t[18] ||= d("div", null, "观测时间", -1), d("div", null, b(L.value.observation_time), 1)]),
|
|
371
|
-
d("div", ze, [t[19] ||= d("div", null, "关联自动站", -1), d("div", null, b(L.value.station_name) + "(" + b(L.value.station_number) + ")", 1)]),
|
|
372
|
-
d("div", Be, [t[20] ||= d("div", null, "经度", -1), d("div", null, b(L.value.longitude), 1)]),
|
|
373
|
-
d("div", Ve, [t[21] ||= d("div", null, "纬度", -1), d("div", null, b(L.value.latitude), 1)]),
|
|
374
|
-
d("div", He, [t[22] ||= d("div", null, "是否报警", -1), L.value.iswarnpre || L.value.iswarnpre_6 ? (_(), u("div", Ue, [L.value.iswarnpre ? (_(), u("span", We, "1h降水")) : l("", !0), L.value.iswarnpre_6 ? (_(), u("span", Ge, "6h降水")) : l("", !0)])) : (_(), u("div", Ke, "无"))])
|
|
375
|
-
])) : l("", !0)], 64);
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
}), [["__scopeId", "data-v-2004401a"]]);
|
|
379
|
-
//#endregion
|
|
380
|
-
export { D as t };
|