nxd-plugin 1.8.53 → 1.8.55
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/YCServiceSummary-DxdFYtsI.mjs +2 -0
- package/dist/chunks/component-GeologyLiveAlarm-CXp7NwKr.mjs +386 -0
- package/dist/chunks/{component-HdMajorActivity-xlp8Zrq1.mjs → component-HdMajorActivity-DBUjo4Rm.mjs} +1 -1
- package/dist/chunks/{component-HdRadarTimeLine-BvE4Ny20.mjs → component-HdRadarTimeLine-rAEES8_D.mjs} +2 -2
- 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-YCServiceSummary-BKkRTMKf.mjs → component-YCServiceSummary-BU3DjvJj.mjs} +344 -247
- 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-YCLoginNew.css +1 -1
- package/dist/styles/component-YCServiceSummary.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-5zaYlO27.mjs +0 -2
- package/dist/chunks/component-GeologyLiveAlarm-CKdsxprI.mjs +0 -379
- package/dist/chunks/component-ReservoirLiveAlarm-C-NS9Erh.mjs +0 -380
package/dist/chunks/{component-RadarShortTerm-pixyOE-9.mjs → component-RadarShortTerm-DoiqMpY6.mjs}
RENAMED
|
@@ -3,26 +3,26 @@ import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
|
|
|
3
3
|
import { n } from "./component-HighWayEarlyWarningRed-BwmqvV6c.mjs";
|
|
4
4
|
import { t as r } from "./component-RadarLegend-ByCdufPU.mjs";
|
|
5
5
|
import { ElCheckbox as i, ElIcon as a, ElLoadingDirective as o } from "element-plus/es";
|
|
6
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as ee, createElementBlock as u, createElementVNode as d, createTextVNode as te, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as ne, onMounted as re, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, watch as
|
|
7
|
-
import { ArrowRight as
|
|
8
|
-
import * as
|
|
6
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as ee, createElementBlock as u, createElementVNode as d, createTextVNode as te, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as ne, onMounted as re, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, watch as C, withCtx as w, withDirectives as T } from "vue";
|
|
7
|
+
import { ArrowRight as E, VideoPause as ie, VideoPlay as ae } from "@element-plus/icons-vue";
|
|
8
|
+
import * as oe from "echarts";
|
|
9
9
|
import "element-plus/es/components/loading/style/css";
|
|
10
10
|
import "element-plus/es/components/checkbox/style/css";
|
|
11
11
|
import "element-plus/es/components/slider/style/css";
|
|
12
12
|
//#region src/components/RadarShortTerm/RadarShortTerm.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var se = {
|
|
14
14
|
class: "RadarShortTerm",
|
|
15
15
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
16
|
-
},
|
|
16
|
+
}, ce = { class: "RadarShortTerm-head" }, le = { class: "RadarShortTerm-head-top" }, ue = { class: "head-actions" }, de = { class: "view-switch" }, fe = { class: "RadarShortTerm-setting-panel" }, pe = { class: "display-setting" }, me = { class: "setting-row setting-row-pile" }, he = { class: "setting-pile-options" }, ge = { class: "RadarShortTerm-chart" }, _e = { class: "RadarShortTerm-table" }, ve = { class: "table-head" }, ye = { class: "table-body" }, be = ["onClick"], xe = { class: "name" }, Se = ["onClick"], Ce = {
|
|
17
17
|
key: 0,
|
|
18
18
|
style: { color: "red" }
|
|
19
|
-
},
|
|
19
|
+
}, we = { class: "pile-panel" }, Te = { class: "pile-head" }, Ee = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "pile-body"
|
|
22
|
-
},
|
|
22
|
+
}, De = ["onClick"], Oe = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "pile-empty"
|
|
25
|
-
},
|
|
25
|
+
}, ke = { class: "RadarShortTerm-timeline" }, Ae = ["title"], je = { class: "timeline-slider-wrap" }, Me = { class: "timeline-time-label" }, Ne = { class: "radarAxis-li" }, Pe = ["onClick"], Fe = { class: "radarAxis-li-node-text" }, D = /* @__PURE__ */ t(/* @__PURE__ */ p({
|
|
26
26
|
__name: "RadarShortTerm",
|
|
27
27
|
props: {
|
|
28
28
|
appKey: {
|
|
@@ -62,13 +62,13 @@ var ce = {
|
|
|
62
62
|
"changeLoading"
|
|
63
63
|
],
|
|
64
64
|
setup(t, { emit: p }) {
|
|
65
|
-
let
|
|
65
|
+
let D = t, O = p, k = v(!0), A = v(!1), j = v(0), M = v(null), N = v([]), P = v({}), F = v({}), I = v({}), L = v(""), R = v(null), z = v(!0), B = v(null), V = v(null), H = v("chart"), U = v(!0), W = v(null), G = v({
|
|
66
66
|
httpurl: "",
|
|
67
67
|
lngStart: void 0,
|
|
68
68
|
latStart: void 0,
|
|
69
69
|
lngEnd: void 0,
|
|
70
70
|
latEnd: void 0
|
|
71
|
-
}),
|
|
71
|
+
}), K = v({
|
|
72
72
|
httpurl: "",
|
|
73
73
|
lngStart: void 0,
|
|
74
74
|
latStart: void 0,
|
|
@@ -76,25 +76,25 @@ var ce = {
|
|
|
76
76
|
latEnd: void 0
|
|
77
77
|
});
|
|
78
78
|
re(() => {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
q(), B.value = setInterval(() => {
|
|
80
|
+
q();
|
|
81
81
|
}, 1e3 * 60 * 6);
|
|
82
82
|
}), ne(() => {
|
|
83
|
-
Q(), clearInterval(
|
|
83
|
+
Q(), clearInterval(B.value), B.value = null, V.value?.dispose(), V.value = null;
|
|
84
84
|
});
|
|
85
|
-
let
|
|
86
|
-
|
|
85
|
+
let q = async () => {
|
|
86
|
+
z.value = !0, await Le();
|
|
87
87
|
let e = (await Re()).map((e) => {
|
|
88
|
-
let t =
|
|
89
|
-
|
|
90
|
-
let r =
|
|
88
|
+
let t = We(e), n = "";
|
|
89
|
+
D.type === "高速" && (n = "zhflds"), D.type === "地质" && (n = "pointflds"), D.type === "水库" && (n = "pointflds");
|
|
90
|
+
let r = Ge(e[n] || []);
|
|
91
91
|
return {
|
|
92
92
|
name: e.name,
|
|
93
|
-
tags:
|
|
93
|
+
tags: Ke(t),
|
|
94
94
|
piles: r
|
|
95
95
|
};
|
|
96
96
|
});
|
|
97
|
-
|
|
97
|
+
N.value = e, Ue(), Ie(e.map((e) => {
|
|
98
98
|
let t = Z(e.tags);
|
|
99
99
|
return {
|
|
100
100
|
value: 1,
|
|
@@ -103,11 +103,11 @@ var ce = {
|
|
|
103
103
|
label: { color: t ? "#ff4d4f" : "#52c41a" },
|
|
104
104
|
warnTags: e.tags.filter((e) => e.warn).map((e) => e.label)
|
|
105
105
|
};
|
|
106
|
-
})),
|
|
107
|
-
},
|
|
106
|
+
})), z.value = !1;
|
|
107
|
+
}, Ie = (e) => {
|
|
108
108
|
let t = document.querySelector(".RadarShortTerm-chart");
|
|
109
109
|
if (!t) return;
|
|
110
|
-
|
|
110
|
+
V.value ||= oe.init(t);
|
|
111
111
|
let n = {
|
|
112
112
|
tooltip: {
|
|
113
113
|
trigger: "item",
|
|
@@ -135,36 +135,36 @@ var ce = {
|
|
|
135
135
|
data: e
|
|
136
136
|
}]
|
|
137
137
|
};
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
|
|
138
|
+
V.value.setOption(n);
|
|
139
|
+
}, J = async (e) => {
|
|
140
|
+
H.value = e, e === "chart" && (await m(), V.value?.resize());
|
|
141
|
+
}, Le = async () => {
|
|
142
|
+
z.value = !0;
|
|
143
143
|
let t = await e({
|
|
144
|
-
appKey:
|
|
145
|
-
appSalt:
|
|
146
|
-
id:
|
|
144
|
+
appKey: D.appKey,
|
|
145
|
+
appSalt: D.appSalt,
|
|
146
|
+
id: D.ids.radar.id,
|
|
147
147
|
variables: {},
|
|
148
|
-
baseHttp:
|
|
149
|
-
reqType:
|
|
150
|
-
isFormData:
|
|
148
|
+
baseHttp: D.baseHttp,
|
|
149
|
+
reqType: D.ids.radar.reqType,
|
|
150
|
+
isFormData: D.ids.radar.isFormData
|
|
151
151
|
});
|
|
152
152
|
console.log("雷达", t.data.result);
|
|
153
153
|
let n = await e({
|
|
154
|
-
appKey:
|
|
155
|
-
appSalt:
|
|
156
|
-
id:
|
|
154
|
+
appKey: D.appKey,
|
|
155
|
+
appSalt: D.appSalt,
|
|
156
|
+
id: D.ids.historyRadar.id,
|
|
157
157
|
variables: {},
|
|
158
|
-
baseHttp:
|
|
159
|
-
reqType:
|
|
160
|
-
isFormData:
|
|
158
|
+
baseHttp: D.baseHttp,
|
|
159
|
+
reqType: D.ids.historyRadar.reqType,
|
|
160
|
+
isFormData: D.ids.historyRadar.isFormData
|
|
161
161
|
});
|
|
162
|
-
console.log("历史雷达", n.data.result),
|
|
163
|
-
let r =
|
|
164
|
-
|
|
162
|
+
console.log("历史雷达", n.data.result), z.value = !1;
|
|
163
|
+
let r = Ve(t.data.result), i = Be(n.data.result);
|
|
164
|
+
G.value = {
|
|
165
165
|
httpurl: r.httpurl,
|
|
166
166
|
...r.extent
|
|
167
|
-
},
|
|
167
|
+
}, K.value = {
|
|
168
168
|
httpurl: i.httpurl,
|
|
169
169
|
...i.extent
|
|
170
170
|
}, console.log("historyData", i);
|
|
@@ -174,33 +174,33 @@ var ce = {
|
|
|
174
174
|
_isHistory: !0,
|
|
175
175
|
_label: t === n.length - 1 ? "现在" : `-${n.length - 1 - t}`,
|
|
176
176
|
_httpurl: (i.httpurl || "") + (e.observation_time || "").slice(0, 10).replaceAll("-", "") + "/"
|
|
177
|
-
})), o =
|
|
177
|
+
})), o = r.frames.map((e, t) => ({
|
|
178
178
|
...e,
|
|
179
179
|
_isHistory: !1,
|
|
180
180
|
_label: `+${t + 1}`,
|
|
181
181
|
_httpurl: r.httpurl || ""
|
|
182
182
|
})), s = [...a, ...o];
|
|
183
|
-
|
|
183
|
+
I.value = {
|
|
184
184
|
ds: s,
|
|
185
185
|
httpurl: r.httpurl,
|
|
186
186
|
...i.extent
|
|
187
|
-
},
|
|
188
|
-
let t =
|
|
189
|
-
t &&
|
|
187
|
+
}, j.value = a.length - 1, k.value && (O("clearImgAniArr"), s.forEach((e) => {
|
|
188
|
+
let t = Ye(e);
|
|
189
|
+
t && O("addImageAniArr", { data: { imgArr: [t] } });
|
|
190
190
|
}), setTimeout(() => {
|
|
191
|
-
|
|
192
|
-
let e = s[
|
|
193
|
-
|
|
191
|
+
O("setImgAniShowByIndex", { index: j.value });
|
|
192
|
+
let e = s[j.value];
|
|
193
|
+
Xe(e), O("showRadarLegend", !0);
|
|
194
194
|
}, 1e3));
|
|
195
195
|
}, Re = async () => {
|
|
196
196
|
let t = await e({
|
|
197
|
-
appKey:
|
|
198
|
-
appSalt:
|
|
199
|
-
id:
|
|
197
|
+
appKey: D.appKey,
|
|
198
|
+
appSalt: D.appSalt,
|
|
199
|
+
id: D.ids.shortTerm.id,
|
|
200
200
|
variables: {},
|
|
201
|
-
baseHttp:
|
|
202
|
-
reqType:
|
|
203
|
-
isFormData:
|
|
201
|
+
baseHttp: D.baseHttp,
|
|
202
|
+
reqType: D.ids.shortTerm.reqType,
|
|
203
|
+
isFormData: D.ids.shortTerm.isFormData
|
|
204
204
|
});
|
|
205
205
|
return console.log("短时预报", t.data.result.ds), t.data.result.ds || [];
|
|
206
206
|
}, ze = (e) => {
|
|
@@ -220,23 +220,43 @@ var ce = {
|
|
|
220
220
|
httpurl: i,
|
|
221
221
|
extent: r
|
|
222
222
|
};
|
|
223
|
-
}, Ve =
|
|
223
|
+
}, Ve = (e) => {
|
|
224
|
+
let t = (Array.isArray(e?.output) ? e.output : e?.output || []).filter((e) => e?.status === 1 && e?.image_url_outer).sort((e, t) => (e.lead_minutes || 0) - (t.lead_minutes || 0)).map((e) => ({
|
|
225
|
+
file_name: e.image_url_outer,
|
|
226
|
+
focarcast_time: e.valid_start,
|
|
227
|
+
lead_minutes: e.lead_minutes,
|
|
228
|
+
lngStart: e.west_lon,
|
|
229
|
+
latStart: e.south_lat,
|
|
230
|
+
lngEnd: e.east_lon,
|
|
231
|
+
latEnd: e.north_lat
|
|
232
|
+
})), n = t[0] || {};
|
|
233
|
+
return {
|
|
234
|
+
frames: t,
|
|
235
|
+
httpurl: "",
|
|
236
|
+
extent: {
|
|
237
|
+
latStart: n.latStart,
|
|
238
|
+
latEnd: n.latEnd,
|
|
239
|
+
lngStart: n.lngStart,
|
|
240
|
+
lngEnd: n.lngEnd
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}, He = c(() => qe(N.value, (e) => Z(e.tags))), Y = c(() => I.value?.ds || []), X = c(() => Y.value.map((e) => {
|
|
224
244
|
let t = new Date(e.focarcast_time);
|
|
225
245
|
return `${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
|
|
226
|
-
})),
|
|
227
|
-
let e =
|
|
228
|
-
e && (t[e.name] = !0, n[e.name] = !0),
|
|
229
|
-
},
|
|
246
|
+
})), Ue = () => {
|
|
247
|
+
let e = He.value.find((e) => Z(e.tags)), t = {}, n = {};
|
|
248
|
+
e && (t[e.name] = !0, n[e.name] = !0), P.value = t, F.value = n;
|
|
249
|
+
}, We = (e) => {
|
|
230
250
|
let t = "";
|
|
231
|
-
|
|
251
|
+
D.type === "高速" && (t = "zhflds"), D.type === "地质" && (t = "pointflds"), D.type === "水库" && (t = "pointflds");
|
|
232
252
|
let n = e[t] || [];
|
|
233
253
|
return {
|
|
234
254
|
iswarnpre1h: n.some((e) => e?.iswarnpre1h === 1) ? 1 : 0,
|
|
235
255
|
iswarnpre2h: n.some((e) => e?.iswarnpre2h === 1) ? 1 : 0,
|
|
236
256
|
iswarnpre3h: n.some((e) => e?.iswarnpre3h === 1) ? 1 : 0
|
|
237
257
|
};
|
|
238
|
-
},
|
|
239
|
-
pileNo:
|
|
258
|
+
}, Ge = (e) => qe((e || []).map((e) => ({
|
|
259
|
+
pileNo: D.type === "高速" ? `${e.type || ""}${e.Name || ""}` : D.type === "地质" ? e.name : D.type === "水库" ? e.river_name : "",
|
|
240
260
|
isWarn: e?.iswarnpre1h === 1 || e?.iswarnpre2h === 1 || e?.iswarnpre3h === 1,
|
|
241
261
|
rain1h: e?.rain_1h ?? "-",
|
|
242
262
|
rain2h: e?.rain_2h ?? "-",
|
|
@@ -244,7 +264,7 @@ var ce = {
|
|
|
244
264
|
x: e.x,
|
|
245
265
|
y: e.y,
|
|
246
266
|
item: e
|
|
247
|
-
})), (e) => e.isWarn),
|
|
267
|
+
})), (e) => e.isWarn), Ke = (e) => [
|
|
248
268
|
{
|
|
249
269
|
label: "未来R1h",
|
|
250
270
|
warn: e.iswarnpre1h === 1
|
|
@@ -257,48 +277,48 @@ var ce = {
|
|
|
257
277
|
label: "未来R3h",
|
|
258
278
|
warn: e.iswarnpre3h === 1
|
|
259
279
|
}
|
|
260
|
-
], Z = (e) => e.some((e) => e.warn),
|
|
280
|
+
], Z = (e) => e.some((e) => e.warn), qe = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Je = (e) => e.filter((e) => e.isWarn).length, Ye = (e) => {
|
|
261
281
|
if (!e) return null;
|
|
262
|
-
let t = e._isHistory ?
|
|
282
|
+
let t = e._isHistory ? K.value : G.value, n = String(e?._httpurl || t.httpurl || ""), r = String(e?.file_name || "");
|
|
263
283
|
return {
|
|
264
284
|
alt: "",
|
|
265
285
|
imgUrl: r.startsWith("http") ? r : `${n}${r.replace(/^\/+/, "")}`,
|
|
266
|
-
lngStart: t.lngStart,
|
|
267
|
-
latStart: t.latStart,
|
|
268
|
-
lngEnd: t.lngEnd,
|
|
269
|
-
latEnd: t.latEnd,
|
|
286
|
+
lngStart: e.lngStart ?? t.lngStart,
|
|
287
|
+
latStart: e.latStart ?? t.latStart,
|
|
288
|
+
lngEnd: e.lngEnd ?? t.lngEnd,
|
|
289
|
+
latEnd: e.latEnd ?? t.latEnd,
|
|
270
290
|
opacity: 1,
|
|
271
291
|
zIndex: 1e3,
|
|
272
292
|
otherData: { imgId: "radar_RadarShortTerm" }
|
|
273
293
|
};
|
|
274
|
-
}, Ye = (e) => {
|
|
275
|
-
I.value && D("removeDataTitle", I.value), I.value = "雷达观测时间:" + n(e.focarcast_time).format("YYYY-MM-DD HH:mm "), D("addDataTitle", I.value);
|
|
276
294
|
}, Xe = (e) => {
|
|
277
|
-
|
|
295
|
+
L.value && O("removeDataTitle", L.value), L.value = "雷达观测时间:" + n(e.focarcast_time).format("YYYY-MM-DD HH:mm "), O("addDataTitle", L.value);
|
|
296
|
+
}, Ze = (e) => {
|
|
297
|
+
O("setImgAniShowByIndex", { index: e });
|
|
278
298
|
let t = Y.value[e];
|
|
279
|
-
|
|
299
|
+
Xe(t);
|
|
280
300
|
}, Q = () => {
|
|
281
|
-
|
|
301
|
+
M.value &&= (clearInterval(M.value), null);
|
|
282
302
|
}, $ = () => {
|
|
283
|
-
|
|
284
|
-
}, Ze = () => {
|
|
285
|
-
X.value.length <= 1 || (k.value = !0, Q(), H.value && (U.value = A.value, D("changeLoading", !0)), j.value = setInterval(() => {
|
|
286
|
-
A.value = (A.value + 1) % X.value.length;
|
|
287
|
-
}, 1e3));
|
|
303
|
+
A.value = !1, Q();
|
|
288
304
|
}, Qe = () => {
|
|
289
|
-
|
|
305
|
+
X.value.length <= 1 || (A.value = !0, Q(), U.value && (W.value = j.value, O("changeLoading", !0)), M.value = setInterval(() => {
|
|
306
|
+
j.value = (j.value + 1) % X.value.length;
|
|
307
|
+
}, 1e3));
|
|
308
|
+
}, $e = () => {
|
|
309
|
+
if (A.value) {
|
|
290
310
|
$();
|
|
291
311
|
return;
|
|
292
312
|
}
|
|
293
|
-
|
|
313
|
+
Qe();
|
|
294
314
|
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}),
|
|
315
|
+
C(j, (e) => {
|
|
316
|
+
Ze(e), U.value && W.value !== null && e === W.value && (U.value = !1, W.value = null, O("changeLoading", !1));
|
|
317
|
+
}), C(j, () => {
|
|
298
318
|
m(() => {
|
|
299
|
-
let e =
|
|
319
|
+
let e = R.value;
|
|
300
320
|
if (!e) return;
|
|
301
|
-
let t = e.querySelectorAll(".radarAxis-li")[
|
|
321
|
+
let t = e.querySelectorAll(".radarAxis-li")[j.value];
|
|
302
322
|
t && t.scrollIntoView({
|
|
303
323
|
behavior: "smooth",
|
|
304
324
|
inline: "center",
|
|
@@ -306,23 +326,23 @@ var ce = {
|
|
|
306
326
|
});
|
|
307
327
|
});
|
|
308
328
|
});
|
|
309
|
-
let
|
|
329
|
+
let et = () => {
|
|
310
330
|
$();
|
|
311
|
-
},
|
|
312
|
-
if (!
|
|
313
|
-
|
|
331
|
+
}, tt = async () => {
|
|
332
|
+
if (!k.value) {
|
|
333
|
+
O("clearImgAniArr"), O("removeDataTitle", L.value), O("showRadarLegend", !1), $();
|
|
314
334
|
return;
|
|
315
335
|
}
|
|
316
|
-
|
|
317
|
-
}, tt = (e) => {
|
|
318
|
-
let t = !!N.value[e];
|
|
319
|
-
N.value[e] = !t, t || (P.value[e] = !0);
|
|
336
|
+
z.value = !0, await Le(), z.value = !1;
|
|
320
337
|
}, nt = (e) => {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
338
|
+
let t = !!P.value[e];
|
|
339
|
+
P.value[e] = !t, t || (F.value[e] = !0);
|
|
340
|
+
}, rt = (e) => {
|
|
341
|
+
F.value[e] = !F.value[e];
|
|
342
|
+
}, it = () => {
|
|
343
|
+
O("close", "RadarShortTerm");
|
|
344
|
+
}, at = (e) => {
|
|
345
|
+
O("toMapView", {
|
|
326
346
|
lng: Number(e.x),
|
|
327
347
|
lat: Number(e.y),
|
|
328
348
|
zoom: 11
|
|
@@ -347,121 +367,121 @@ var ce = {
|
|
|
347
367
|
};
|
|
348
368
|
return (e, t) => {
|
|
349
369
|
let n = i, c = a, p = r, m = o;
|
|
350
|
-
return
|
|
351
|
-
d("div",
|
|
352
|
-
class: h(["switch-btn", { active:
|
|
353
|
-
onClick: t[0] ||= (e) =>
|
|
370
|
+
return T((_(), u("div", se, [
|
|
371
|
+
d("div", ce, [d("div", le, [d("div", null, b(D.title), 1), d("div", ue, [T(d("div", de, [d("button", {
|
|
372
|
+
class: h(["switch-btn", { active: H.value === "chart" }]),
|
|
373
|
+
onClick: t[0] ||= (e) => J("chart")
|
|
354
374
|
}, " 图表 ", 2), d("button", {
|
|
355
|
-
class: h(["switch-btn", { active:
|
|
356
|
-
onClick: t[1] ||= (e) =>
|
|
357
|
-
}, " 表格 ", 2)], 512), [[S,
|
|
375
|
+
class: h(["switch-btn", { active: H.value === "table" }]),
|
|
376
|
+
onClick: t[1] ||= (e) => J("table")
|
|
377
|
+
}, " 表格 ", 2)], 512), [[S, D.type !== "高速"]]), d("div", {
|
|
358
378
|
class: "closeBtn",
|
|
359
|
-
onClick:
|
|
379
|
+
onClick: it,
|
|
360
380
|
title: "关闭"
|
|
361
381
|
})])]), t[3] ||= d("img", {
|
|
362
382
|
class: "RadarShortTerm-head-line",
|
|
363
383
|
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",
|
|
364
384
|
alt: ""
|
|
365
385
|
}, null, -1)]),
|
|
366
|
-
d("div",
|
|
367
|
-
modelValue:
|
|
368
|
-
"onUpdate:modelValue": t[2] ||= (e) =>
|
|
386
|
+
d("div", fe, [d("div", pe, [d("div", me, [t[5] ||= d("span", { class: "setting-label" }, "雷达展示:", -1), d("div", he, [f(n, {
|
|
387
|
+
modelValue: k.value,
|
|
388
|
+
"onUpdate:modelValue": t[2] ||= (e) => k.value = e,
|
|
369
389
|
class: "pile-checkbox",
|
|
370
|
-
onChange:
|
|
390
|
+
onChange: tt
|
|
371
391
|
}, {
|
|
372
|
-
default:
|
|
392
|
+
default: w(() => [...t[4] ||= [te(" 显示 ", -1)]]),
|
|
373
393
|
_: 1
|
|
374
394
|
}, 8, ["modelValue"])])])])]),
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
395
|
+
T(d("div", ge, null, 512), [[S, D.type !== "高速" && H.value === "chart"]]),
|
|
396
|
+
T(d("div", _e, [d("div", ve, [
|
|
397
|
+
T(d("span", null, "高速名称", 512), [[S, D.type === "高速"]]),
|
|
398
|
+
T(d("span", null, "隐患类别", 512), [[S, D.type === "地质"]]),
|
|
399
|
+
T(d("span", null, "水库类别", 512), [[S, D.type === "水库"]]),
|
|
380
400
|
t[6] ||= d("span", null, "状态要素", -1),
|
|
381
401
|
t[7] ||= d("span", { class: "head-arrow" }, null, -1)
|
|
382
|
-
]), d("div",
|
|
402
|
+
]), d("div", ye, [(_(!0), u(s, null, y(He.value, (e) => (_(), u("div", {
|
|
383
403
|
class: "table-row",
|
|
384
404
|
key: e.name
|
|
385
405
|
}, [
|
|
386
406
|
d("div", {
|
|
387
407
|
class: "table-row-main",
|
|
388
|
-
onClick: (t) =>
|
|
408
|
+
onClick: (t) => nt(e.name)
|
|
389
409
|
}, [
|
|
390
|
-
d("span",
|
|
410
|
+
d("span", xe, b(e.name), 1),
|
|
391
411
|
d("div", { class: h(["status-tags", { "has-warn": Z(e.tags) }]) }, [(_(!0), u(s, null, y(e.tags, (t) => (_(), u("span", {
|
|
392
412
|
class: h(["status-tag", { warn: t.warn }]),
|
|
393
413
|
key: `${e.name}-${t.label}`
|
|
394
414
|
}, [d("span", null, b(t.label), 1)], 2))), 128))], 2),
|
|
395
415
|
d("span", {
|
|
396
|
-
class: h(["expand-arrow", { expanded:
|
|
416
|
+
class: h(["expand-arrow", { expanded: P.value[e.name] }]),
|
|
397
417
|
"aria-hidden": "true"
|
|
398
418
|
}, [f(c, null, {
|
|
399
|
-
default:
|
|
419
|
+
default: w(() => [f(x(E))]),
|
|
400
420
|
_: 1
|
|
401
421
|
})], 2)
|
|
402
|
-
], 8,
|
|
403
|
-
|
|
422
|
+
], 8, be),
|
|
423
|
+
T(d("div", {
|
|
404
424
|
class: "pile-title",
|
|
405
|
-
onClick: (t) =>
|
|
425
|
+
onClick: (t) => rt(e.name)
|
|
406
426
|
}, [d("span", null, [
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
]), d("span", { class: h(["panel-arrow", { expanded:
|
|
412
|
-
default:
|
|
427
|
+
T(d("span", null, "桩号数据", 512), [[S, D.type === "高速"]]),
|
|
428
|
+
T(d("span", null, "隐患点数据", 512), [[S, D.type === "地质"]]),
|
|
429
|
+
T(d("span", null, "水库点数据", 512), [[S, D.type === "水库"]]),
|
|
430
|
+
Je(e.piles) > 0 ? (_(), u("span", Ce, " (报警数量:" + b(Je(e.piles)) + "个)", 1)) : ee("", !0)
|
|
431
|
+
]), d("span", { class: h(["panel-arrow", { expanded: F.value[e.name] }]) }, [f(c, null, {
|
|
432
|
+
default: w(() => [f(x(E))]),
|
|
413
433
|
_: 1
|
|
414
|
-
})], 2)], 8,
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
434
|
+
})], 2)], 8, Se), [[S, P.value[e.name]]]),
|
|
435
|
+
T(d("div", we, [d("div", Te, [
|
|
436
|
+
T(d("span", null, "桩号", 512), [[S, D.type === "高速"]]),
|
|
437
|
+
T(d("span", null, "隐患点", 512), [[S, D.type === "地质"]]),
|
|
438
|
+
T(d("span", null, "水库点", 512), [[S, D.type === "水库"]]),
|
|
419
439
|
t[8] ||= d("span", null, "未来R1h", -1),
|
|
420
440
|
t[9] ||= d("span", null, "未来R2h", -1),
|
|
421
441
|
t[10] ||= d("span", null, "未来R3h", -1)
|
|
422
|
-
]), e.piles.length ? (_(), u("div",
|
|
442
|
+
]), e.piles.length ? (_(), u("div", Ee, [(_(!0), u(s, null, y(e.piles, (e) => (_(), u("div", {
|
|
423
443
|
class: h(["pile-row", { "is-warn": e.isWarn }]),
|
|
424
444
|
key: e.pileNo,
|
|
425
|
-
onClick: (t) =>
|
|
445
|
+
onClick: (t) => at(e)
|
|
426
446
|
}, [
|
|
427
447
|
d("span", null, b(e.pileNo), 1),
|
|
428
448
|
d("span", null, b(e.rain1h), 1),
|
|
429
449
|
d("span", null, b(e.rain2h), 1),
|
|
430
450
|
d("span", null, b(e.rain3h), 1)
|
|
431
|
-
], 10,
|
|
432
|
-
]))), 128))])], 512), [[S,
|
|
433
|
-
|
|
451
|
+
], 10, De))), 128))])) : (_(), u("div", Oe, "暂无数据"))], 512), [[S, P.value[e.name] && F.value[e.name]]])
|
|
452
|
+
]))), 128))])], 512), [[S, D.type !== "高速" && H.value === "table"]]),
|
|
453
|
+
T(f(p, {
|
|
434
454
|
show: !0,
|
|
435
455
|
isVertical: !1,
|
|
436
456
|
class: "RadarShortTerm-legend"
|
|
437
|
-
}, null, 512), [[S,
|
|
438
|
-
|
|
457
|
+
}, null, 512), [[S, k.value]]),
|
|
458
|
+
T(d("div", ke, [d("button", {
|
|
439
459
|
type: "button",
|
|
440
460
|
class: "timeline-play-btn",
|
|
441
|
-
title:
|
|
442
|
-
onClick:
|
|
461
|
+
title: A.value ? "暂停" : "播放",
|
|
462
|
+
onClick: $e
|
|
443
463
|
}, [f(c, null, {
|
|
444
|
-
default:
|
|
464
|
+
default: w(() => [A.value ? (_(), l(x(ie), { key: 0 })) : (_(), l(x(ae), { key: 1 }))]),
|
|
445
465
|
_: 1
|
|
446
|
-
})], 8,
|
|
466
|
+
})], 8, Ae), d("div", je, [d("span", Me, b(X.value[j.value] || ""), 1), d("div", {
|
|
447
467
|
class: "radarAxis",
|
|
448
468
|
ref_key: "ref_radarAxis",
|
|
449
|
-
ref:
|
|
450
|
-
}, [(_(!0), u(s, null, y(Y.value, (e, n) => (_(), u("div",
|
|
469
|
+
ref: R
|
|
470
|
+
}, [(_(!0), u(s, null, y(Y.value, (e, n) => (_(), u("div", Ne, [d("div", {
|
|
451
471
|
class: "radarAxis-li-node",
|
|
452
|
-
onClick: (e) => (
|
|
472
|
+
onClick: (e) => (j.value = Number(n), et())
|
|
453
473
|
}, [
|
|
454
474
|
d("i", { style: g({ backgroundColor: e._isHistory ? "" : "#ca9e64" }) }, null, 4),
|
|
455
|
-
|
|
456
|
-
d("div",
|
|
457
|
-
], 8,
|
|
475
|
+
T(d("span", null, [...t[11] ||= [d("i", null, null, -1)]], 512), [[S, n === j.value]]),
|
|
476
|
+
d("div", Fe, [d("b", null, b(e._label), 1)])
|
|
477
|
+
], 8, Pe), (_(), u(s, null, y(4, (t) => T(d("div", {
|
|
458
478
|
class: "radarAxis-li-point",
|
|
459
479
|
key: t,
|
|
460
480
|
style: g({ backgroundColor: e._isHistory ? "" : "#FFD700" })
|
|
461
|
-
}, null, 4), [[S, n !== Y.value.length - 1]])), 64))]))), 256))], 512)])], 512), [[S,
|
|
462
|
-
])), [[m,
|
|
481
|
+
}, null, 4), [[S, n !== Y.value.length - 1]])), 64))]))), 256))], 512)])], 512), [[S, k.value]])
|
|
482
|
+
])), [[m, z.value]]);
|
|
463
483
|
};
|
|
464
484
|
}
|
|
465
|
-
}), [["__scopeId", "data-v-
|
|
485
|
+
}), [["__scopeId", "data-v-77e61033"]]);
|
|
466
486
|
//#endregion
|
|
467
|
-
export {
|
|
487
|
+
export { D as t };
|