nxd-plugin 1.7.88 → 1.7.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{component-EarlyWarningStatistic2-BStW2Xsz.mjs → component-EarlyWarningStatistic2-BZ6Xbs8K.mjs} +40 -40
- package/dist/chunks/{component-HighQuality-pp_4lHN_.mjs → component-HighQuality-D771XcpI.mjs} +2 -5
- package/dist/chunks/{component-HighwayLiveAlarmNew-_OLfGJ_V.mjs → component-HighwayLiveAlarmNew-8su9mRUD.mjs} +259 -256
- package/dist/chunks/component-RadarShortTerm-DpXuwtc6.mjs +463 -0
- package/dist/chunks/{component-StationList-BVrF2FB9.mjs → component-StationList-zjwlJg41.mjs} +3 -3
- package/dist/nxd-plugin.mjs +9 -9
- package/dist/styles/component-EarlyWarningStatistic2.css +1 -1
- package/dist/styles/component-HighQuality.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-StationList.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-RadarShortTerm-bhfG_pGu.mjs +0 -361
- package/dist/chunks/{component-HdPreSituation-CjWE4U3Z.mjs → component-HdPreSituation-CpZnlGJv.mjs} +1 -1
- package/dist/chunks/{component-HdRadarList-BeweWRve.mjs → component-HdRadarList-DuBiBRVc.mjs} +1 -1
- package/dist/chunks/{component-HdServiceMarterial-AUSyf9Mh.mjs → component-HdServiceMarterial-DwVtOltt.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-B9PiOW6V.mjs → component-PrecipitationRanking-CCZpk2tu.mjs} +1 -1
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-DOK4C-xg.mjs";
|
|
2
|
+
import { i as t } from "./component-AiChat-BnEFgV35.mjs";
|
|
3
|
+
import { n } from "./component-HighWayEarlyWarningRed-Ca0D-oU5.mjs";
|
|
4
|
+
import { t as r } from "./component-RadarLegend-CEEsrXvu.mjs";
|
|
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 ie, withCtx as C, withDirectives as w } from "vue";
|
|
7
|
+
import { ArrowRight as T, VideoPause as ae, VideoPlay as oe } from "@element-plus/icons-vue";
|
|
8
|
+
import * as se from "echarts";
|
|
9
|
+
import "element-plus/es/components/loading/style/css";
|
|
10
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
11
|
+
import "element-plus/es/components/slider/style/css";
|
|
12
|
+
//#region src/components/RadarShortTerm/RadarShortTerm.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
+
var ce = {
|
|
14
|
+
class: "RadarShortTerm",
|
|
15
|
+
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
16
|
+
}, le = { class: "RadarShortTerm-head" }, ue = { class: "RadarShortTerm-head-top" }, de = { class: "head-actions" }, fe = { class: "view-switch" }, pe = { class: "RadarShortTerm-setting-panel" }, me = { class: "display-setting" }, he = { class: "setting-row setting-row-pile" }, ge = { class: "setting-pile-options" }, _e = { class: "RadarShortTerm-chart" }, ve = { class: "RadarShortTerm-table" }, ye = { class: "table-head" }, be = { class: "table-body" }, xe = ["onClick"], Se = { class: "name" }, Ce = ["onClick"], we = {
|
|
17
|
+
key: 0,
|
|
18
|
+
style: { color: "red" }
|
|
19
|
+
}, Te = { class: "pile-panel" }, Ee = { class: "pile-head" }, De = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "pile-body"
|
|
22
|
+
}, Oe = ["onClick"], ke = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "pile-empty"
|
|
25
|
+
}, Ae = { class: "RadarShortTerm-timeline" }, je = ["title"], Me = { class: "timeline-slider-wrap" }, Ne = { class: "timeline-time-label" }, Pe = { class: "radarAxis-li" }, Fe = ["onClick"], Ie = { class: "radarAxis-li-node-text" }, E = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
26
|
+
__name: "RadarShortTerm",
|
|
27
|
+
props: {
|
|
28
|
+
appKey: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
},
|
|
32
|
+
appSalt: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
baseHttp: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
ids: {
|
|
41
|
+
type: Object,
|
|
42
|
+
default: () => ({})
|
|
43
|
+
},
|
|
44
|
+
type: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "高速"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: [
|
|
50
|
+
"close",
|
|
51
|
+
"addDataTitle",
|
|
52
|
+
"removeDataTitle",
|
|
53
|
+
"showRadarLegend",
|
|
54
|
+
"toMapView",
|
|
55
|
+
"addImageAniArr",
|
|
56
|
+
"clearImgAniArr",
|
|
57
|
+
"setImgAniShowByIndex",
|
|
58
|
+
"changeLoading"
|
|
59
|
+
],
|
|
60
|
+
setup(e, { emit: p }) {
|
|
61
|
+
let E = e, D = p, O = v(!0), k = v(!1), A = v(0), j = v(null), M = v([]), N = v({}), P = v({}), F = v({}), I = v(""), L = v(null), R = v(!0), z = v(null), B = v(null), V = v("chart"), H = v(!0), U = v(null), W = v({
|
|
62
|
+
httpurl: "",
|
|
63
|
+
lngStart: void 0,
|
|
64
|
+
latStart: void 0,
|
|
65
|
+
lngEnd: void 0,
|
|
66
|
+
latEnd: void 0
|
|
67
|
+
}), G = v({
|
|
68
|
+
httpurl: "",
|
|
69
|
+
lngStart: void 0,
|
|
70
|
+
latStart: void 0,
|
|
71
|
+
lngEnd: void 0,
|
|
72
|
+
latEnd: void 0
|
|
73
|
+
});
|
|
74
|
+
re(() => {
|
|
75
|
+
K(), z.value = setInterval(() => {
|
|
76
|
+
K();
|
|
77
|
+
}, 1e3 * 60 * 6);
|
|
78
|
+
}), ne(() => {
|
|
79
|
+
Q(), clearInterval(z.value), z.value = null, B.value?.dispose(), B.value = null;
|
|
80
|
+
});
|
|
81
|
+
let K = async () => {
|
|
82
|
+
R.value = !0, await J();
|
|
83
|
+
let e = (await Re()).map((e) => {
|
|
84
|
+
let t = Ue(e), n = "";
|
|
85
|
+
E.type === "高速" && (n = "zhflds"), E.type === "地质" && (n = "pointflds"), E.type === "水库" && (n = "pointflds");
|
|
86
|
+
let r = We(e[n] || []);
|
|
87
|
+
return {
|
|
88
|
+
name: e.name,
|
|
89
|
+
tags: Ge(t),
|
|
90
|
+
piles: r
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
M.value = e, He(), Le(e.map((e) => {
|
|
94
|
+
let t = Z(e.tags);
|
|
95
|
+
return {
|
|
96
|
+
value: 1,
|
|
97
|
+
name: e.name,
|
|
98
|
+
itemStyle: { color: t ? "#ff4d4f" : "#52c41a" },
|
|
99
|
+
label: { color: t ? "#ff4d4f" : "#52c41a" },
|
|
100
|
+
warnTags: e.tags.filter((e) => e.warn).map((e) => e.label)
|
|
101
|
+
};
|
|
102
|
+
})), R.value = !1;
|
|
103
|
+
}, Le = (e) => {
|
|
104
|
+
let t = document.querySelector(".RadarShortTerm-chart");
|
|
105
|
+
if (!t) return;
|
|
106
|
+
B.value ||= se.init(t);
|
|
107
|
+
let n = {
|
|
108
|
+
tooltip: {
|
|
109
|
+
trigger: "item",
|
|
110
|
+
formatter: (e) => {
|
|
111
|
+
let t = e?.data?.warnTags || [], n = e?.data?.itemStyle?.color === "#ff4d4f" ? "#ff4d4f" : "#52c41a";
|
|
112
|
+
return t.length ? `${e?.name ?? ""} <span style="color:${n};">${t.join("、")}报警</span>` : `${e?.name ?? ""} <span style="color:${n};">正常</span>`;
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
color: "#52c41a",
|
|
116
|
+
grid: {
|
|
117
|
+
top: "0",
|
|
118
|
+
right: "0",
|
|
119
|
+
bottom: "0",
|
|
120
|
+
left: "0"
|
|
121
|
+
},
|
|
122
|
+
series: [{
|
|
123
|
+
type: "pie",
|
|
124
|
+
radius: "40%",
|
|
125
|
+
label: {
|
|
126
|
+
show: !0,
|
|
127
|
+
position: "outside",
|
|
128
|
+
fontSize: 12,
|
|
129
|
+
color: "#fff"
|
|
130
|
+
},
|
|
131
|
+
data: e
|
|
132
|
+
}]
|
|
133
|
+
};
|
|
134
|
+
B.value.setOption(n);
|
|
135
|
+
}, q = async (e) => {
|
|
136
|
+
V.value = e, e === "chart" && (await m(), B.value?.resize());
|
|
137
|
+
}, J = async () => {
|
|
138
|
+
R.value = !0;
|
|
139
|
+
let e = await t({
|
|
140
|
+
appKey: E.appKey,
|
|
141
|
+
appSalt: E.appSalt,
|
|
142
|
+
id: E.ids.radar.id,
|
|
143
|
+
variables: {},
|
|
144
|
+
baseHttp: E.baseHttp,
|
|
145
|
+
reqType: E.ids.radar.reqType,
|
|
146
|
+
isFormData: E.ids.radar.isFormData
|
|
147
|
+
});
|
|
148
|
+
console.log("雷达", e.data.result);
|
|
149
|
+
let n = await t({
|
|
150
|
+
appKey: E.appKey,
|
|
151
|
+
appSalt: E.appSalt,
|
|
152
|
+
id: E.ids.historyRadar.id,
|
|
153
|
+
variables: {},
|
|
154
|
+
baseHttp: E.baseHttp,
|
|
155
|
+
reqType: E.ids.historyRadar.reqType,
|
|
156
|
+
isFormData: E.ids.historyRadar.isFormData
|
|
157
|
+
});
|
|
158
|
+
console.log("历史雷达", n.data.result), R.value = !1;
|
|
159
|
+
let r = Be(e.data.result), i = Be(n.data.result);
|
|
160
|
+
W.value = {
|
|
161
|
+
httpurl: r.httpurl,
|
|
162
|
+
...r.extent
|
|
163
|
+
}, G.value = {
|
|
164
|
+
httpurl: i.httpurl,
|
|
165
|
+
...i.extent
|
|
166
|
+
}, console.log("historyData", i);
|
|
167
|
+
let a = i.frames.slice(-13).map((e, t, n) => ({
|
|
168
|
+
...e,
|
|
169
|
+
focarcast_time: e.observation_time,
|
|
170
|
+
_isHistory: !0,
|
|
171
|
+
_label: t === n.length - 1 ? "现在" : `-${n.length - 1 - t}`,
|
|
172
|
+
_httpurl: (i.httpurl || "") + (e.observation_time || "").slice(0, 10).replaceAll("-", "") + "/"
|
|
173
|
+
})), o = r.frames.map((e, t) => ({
|
|
174
|
+
...e,
|
|
175
|
+
_isHistory: !1,
|
|
176
|
+
_label: `+${t + 1}`,
|
|
177
|
+
_httpurl: r.httpurl || ""
|
|
178
|
+
})), s = [...a, ...o];
|
|
179
|
+
F.value = {
|
|
180
|
+
ds: s,
|
|
181
|
+
httpurl: r.httpurl,
|
|
182
|
+
...i.extent
|
|
183
|
+
}, A.value = a.length - 1, O.value && (D("clearImgAniArr"), s.forEach((e) => {
|
|
184
|
+
let t = Je(e);
|
|
185
|
+
t && D("addImageAniArr", { data: { imgArr: [t] } });
|
|
186
|
+
}), setTimeout(() => {
|
|
187
|
+
D("setImgAniShowByIndex", { index: A.value });
|
|
188
|
+
let e = s[A.value];
|
|
189
|
+
Ye(e), D("showRadarLegend", !0);
|
|
190
|
+
}, 1e3));
|
|
191
|
+
}, Re = async () => {
|
|
192
|
+
let e = await t({
|
|
193
|
+
appKey: E.appKey,
|
|
194
|
+
appSalt: E.appSalt,
|
|
195
|
+
id: E.ids.shortTerm.id,
|
|
196
|
+
variables: {},
|
|
197
|
+
baseHttp: E.baseHttp,
|
|
198
|
+
reqType: E.ids.shortTerm.reqType,
|
|
199
|
+
isFormData: E.ids.shortTerm.isFormData
|
|
200
|
+
});
|
|
201
|
+
return console.log("短时预报", e.data.result.ds), e.data.result.ds || [];
|
|
202
|
+
}, ze = (e) => {
|
|
203
|
+
let t = String(e || "").split(",").map((e) => Number(e.trim()));
|
|
204
|
+
return {
|
|
205
|
+
latStart: t[0],
|
|
206
|
+
latEnd: t[1],
|
|
207
|
+
lngStart: t[2],
|
|
208
|
+
lngEnd: t[3]
|
|
209
|
+
};
|
|
210
|
+
}, Be = (e) => {
|
|
211
|
+
let t = Array.isArray(e?.ds) ? e : e?.ds, n = Array.isArray(t?.ds) ? t.ds : [];
|
|
212
|
+
n = [...n].reverse();
|
|
213
|
+
let r = ze(n[0]?.extendstr || ""), i = t?.httpUrl || t?.httpurl || "";
|
|
214
|
+
return {
|
|
215
|
+
frames: n,
|
|
216
|
+
httpurl: i,
|
|
217
|
+
extent: r
|
|
218
|
+
};
|
|
219
|
+
}, Ve = c(() => Ke(M.value, (e) => Z(e.tags))), Y = c(() => F.value?.ds || []), X = c(() => Y.value.map((e) => {
|
|
220
|
+
let t = new Date(e.focarcast_time);
|
|
221
|
+
return `${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
|
|
222
|
+
})), He = () => {
|
|
223
|
+
let e = Ve.value.find((e) => Z(e.tags)), t = {}, n = {};
|
|
224
|
+
e && (t[e.name] = !0, n[e.name] = !0), N.value = t, P.value = n;
|
|
225
|
+
}, Ue = (e) => {
|
|
226
|
+
let t = "";
|
|
227
|
+
E.type === "高速" && (t = "zhflds"), E.type === "地质" && (t = "pointflds"), E.type === "水库" && (t = "pointflds");
|
|
228
|
+
let n = e[t] || [];
|
|
229
|
+
return {
|
|
230
|
+
iswarnpre1h: n.some((e) => e?.iswarnpre1h === 1) ? 1 : 0,
|
|
231
|
+
iswarnpre2h: n.some((e) => e?.iswarnpre2h === 1) ? 1 : 0,
|
|
232
|
+
iswarnpre3h: n.some((e) => e?.iswarnpre3h === 1) ? 1 : 0
|
|
233
|
+
};
|
|
234
|
+
}, We = (e) => Ke((e || []).map((e) => ({
|
|
235
|
+
pileNo: E.type === "高速" ? `${e.type || ""}${e.Name || ""}` : E.type === "地质" ? e.name : E.type === "水库" ? e.river_name : "",
|
|
236
|
+
isWarn: e?.iswarnpre1h === 1 || e?.iswarnpre2h === 1 || e?.iswarnpre3h === 1,
|
|
237
|
+
rain1h: e?.rain_1h ?? "-",
|
|
238
|
+
rain2h: e?.rain_2h ?? "-",
|
|
239
|
+
rain3h: e?.rain_3h ?? "-",
|
|
240
|
+
x: e.x,
|
|
241
|
+
y: e.y,
|
|
242
|
+
item: e
|
|
243
|
+
})), (e) => e.isWarn), Ge = (e) => [
|
|
244
|
+
{
|
|
245
|
+
label: "未来R1h",
|
|
246
|
+
warn: e.iswarnpre1h === 1
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
label: "未来R2h",
|
|
250
|
+
warn: e.iswarnpre2h === 1
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
label: "未来R3h",
|
|
254
|
+
warn: e.iswarnpre3h === 1
|
|
255
|
+
}
|
|
256
|
+
], Z = (e) => e.some((e) => e.warn), Ke = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), qe = (e) => e.filter((e) => e.isWarn).length, Je = (e) => {
|
|
257
|
+
if (!e) return null;
|
|
258
|
+
let t = e._isHistory ? G.value : W.value, n = String(e?._httpurl || t.httpurl || ""), r = String(e?.file_name || "");
|
|
259
|
+
return {
|
|
260
|
+
alt: "",
|
|
261
|
+
imgUrl: r.startsWith("http") ? r : `${n}${r.replace(/^\/+/, "")}`,
|
|
262
|
+
lngStart: t.lngStart,
|
|
263
|
+
latStart: t.latStart,
|
|
264
|
+
lngEnd: t.lngEnd,
|
|
265
|
+
latEnd: t.latEnd,
|
|
266
|
+
opacity: 1,
|
|
267
|
+
zIndex: 1e3,
|
|
268
|
+
otherData: { imgId: "radar_RadarShortTerm" }
|
|
269
|
+
};
|
|
270
|
+
}, Ye = (e) => {
|
|
271
|
+
I.value && D("removeDataTitle", I.value), I.value = "雷达观测时间:" + n(e.focarcast_time).format("YYYY-MM-DD HH:mm "), D("addDataTitle", I.value);
|
|
272
|
+
}, Xe = (e) => {
|
|
273
|
+
D("setImgAniShowByIndex", { index: e });
|
|
274
|
+
let t = Y.value[e];
|
|
275
|
+
Ye(t);
|
|
276
|
+
}, Q = () => {
|
|
277
|
+
j.value &&= (clearInterval(j.value), null);
|
|
278
|
+
}, $ = () => {
|
|
279
|
+
k.value = !1, Q();
|
|
280
|
+
}, Ze = () => {
|
|
281
|
+
X.value.length <= 1 || (k.value = !0, Q(), H.value && (U.value = A.value, D("changeLoading", !0)), j.value = setInterval(() => {
|
|
282
|
+
A.value = (A.value + 1) % X.value.length;
|
|
283
|
+
}, 1e3));
|
|
284
|
+
}, Qe = () => {
|
|
285
|
+
if (k.value) {
|
|
286
|
+
$();
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
Ze();
|
|
290
|
+
};
|
|
291
|
+
ie(A, (e) => {
|
|
292
|
+
Xe(e), H.value && U.value !== null && e === U.value && (H.value = !1, U.value = null, D("changeLoading", !1));
|
|
293
|
+
}), ie(A, () => {
|
|
294
|
+
m(() => {
|
|
295
|
+
let e = L.value;
|
|
296
|
+
if (!e) return;
|
|
297
|
+
let t = e.querySelectorAll(".radarAxis-li")[A.value];
|
|
298
|
+
t && t.scrollIntoView({
|
|
299
|
+
behavior: "smooth",
|
|
300
|
+
inline: "center",
|
|
301
|
+
block: "nearest"
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
let $e = () => {
|
|
306
|
+
$();
|
|
307
|
+
}, et = async () => {
|
|
308
|
+
if (!O.value) {
|
|
309
|
+
D("clearImgAniArr"), D("removeDataTitle", I.value), D("showRadarLegend", !1), $();
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
R.value = !0, await J(), R.value = !1;
|
|
313
|
+
}, tt = (e) => {
|
|
314
|
+
let t = !!N.value[e];
|
|
315
|
+
N.value[e] = !t, t || (P.value[e] = !0);
|
|
316
|
+
}, nt = (e) => {
|
|
317
|
+
P.value[e] = !P.value[e];
|
|
318
|
+
}, rt = () => {
|
|
319
|
+
D("close", "RadarShortTerm");
|
|
320
|
+
}, it = (e) => {
|
|
321
|
+
D("toMapView", {
|
|
322
|
+
lng: Number(e.x),
|
|
323
|
+
lat: Number(e.y),
|
|
324
|
+
zoom: 11
|
|
325
|
+
});
|
|
326
|
+
let t = `pile_${e.item.Name}`;
|
|
327
|
+
console.log("pileItem", e), setTimeout(() => {
|
|
328
|
+
let e = document.querySelectorAll(`[id="${t}"]`);
|
|
329
|
+
if (console.log(e), e.length > 0) {
|
|
330
|
+
let t = 0, n = setInterval(() => {
|
|
331
|
+
if (t >= 8) {
|
|
332
|
+
clearInterval(n), e.forEach((e) => {
|
|
333
|
+
e.style.visibility = "visible";
|
|
334
|
+
});
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
e.forEach((e) => {
|
|
338
|
+
e.style.visibility = e.style.visibility === "hidden" ? "visible" : "hidden";
|
|
339
|
+
}), t++;
|
|
340
|
+
}, 300);
|
|
341
|
+
}
|
|
342
|
+
}, 500);
|
|
343
|
+
};
|
|
344
|
+
return (e, t) => {
|
|
345
|
+
let n = i, c = a, p = r, m = o;
|
|
346
|
+
return w((_(), u("div", ce, [
|
|
347
|
+
d("div", le, [d("div", ue, [t[3] ||= d("div", null, "雷达短临预报", -1), d("div", de, [d("div", fe, [d("button", {
|
|
348
|
+
class: h(["switch-btn", { active: V.value === "chart" }]),
|
|
349
|
+
onClick: t[0] ||= (e) => q("chart")
|
|
350
|
+
}, " 图表 ", 2), d("button", {
|
|
351
|
+
class: h(["switch-btn", { active: V.value === "table" }]),
|
|
352
|
+
onClick: t[1] ||= (e) => q("table")
|
|
353
|
+
}, " 表格 ", 2)]), d("div", {
|
|
354
|
+
class: "closeBtn",
|
|
355
|
+
onClick: rt,
|
|
356
|
+
title: "关闭"
|
|
357
|
+
})])]), t[4] ||= d("img", {
|
|
358
|
+
class: "RadarShortTerm-head-line",
|
|
359
|
+
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",
|
|
360
|
+
alt: ""
|
|
361
|
+
}, null, -1)]),
|
|
362
|
+
d("div", pe, [d("div", me, [d("div", he, [t[6] ||= d("span", { class: "setting-label" }, "雷达展示:", -1), d("div", ge, [f(n, {
|
|
363
|
+
modelValue: O.value,
|
|
364
|
+
"onUpdate:modelValue": t[2] ||= (e) => O.value = e,
|
|
365
|
+
class: "pile-checkbox",
|
|
366
|
+
onChange: et
|
|
367
|
+
}, {
|
|
368
|
+
default: C(() => [...t[5] ||= [te(" 显示 ", -1)]]),
|
|
369
|
+
_: 1
|
|
370
|
+
}, 8, ["modelValue"])])])])]),
|
|
371
|
+
w(d("div", _e, null, 512), [[S, V.value === "chart"]]),
|
|
372
|
+
w(d("div", ve, [d("div", ye, [
|
|
373
|
+
w(d("span", null, "高速名称", 512), [[S, E.type === "高速"]]),
|
|
374
|
+
w(d("span", null, "隐患类别", 512), [[S, E.type === "地质"]]),
|
|
375
|
+
w(d("span", null, "水库类别", 512), [[S, E.type === "水库"]]),
|
|
376
|
+
t[7] ||= d("span", null, "状态要素", -1),
|
|
377
|
+
t[8] ||= d("span", { class: "head-arrow" }, null, -1)
|
|
378
|
+
]), d("div", be, [(_(!0), u(s, null, y(Ve.value, (e) => (_(), u("div", {
|
|
379
|
+
class: "table-row",
|
|
380
|
+
key: e.name
|
|
381
|
+
}, [
|
|
382
|
+
d("div", {
|
|
383
|
+
class: "table-row-main",
|
|
384
|
+
onClick: (t) => tt(e.name)
|
|
385
|
+
}, [
|
|
386
|
+
d("span", Se, b(e.name), 1),
|
|
387
|
+
d("div", { class: h(["status-tags", { "has-warn": Z(e.tags) }]) }, [(_(!0), u(s, null, y(e.tags, (t) => (_(), u("span", {
|
|
388
|
+
class: h(["status-tag", { warn: t.warn }]),
|
|
389
|
+
key: `${e.name}-${t.label}`
|
|
390
|
+
}, [d("span", null, b(t.label), 1)], 2))), 128))], 2),
|
|
391
|
+
d("span", {
|
|
392
|
+
class: h(["expand-arrow", { expanded: N.value[e.name] }]),
|
|
393
|
+
"aria-hidden": "true"
|
|
394
|
+
}, [f(c, null, {
|
|
395
|
+
default: C(() => [f(x(T))]),
|
|
396
|
+
_: 1
|
|
397
|
+
})], 2)
|
|
398
|
+
], 8, xe),
|
|
399
|
+
w(d("div", {
|
|
400
|
+
class: "pile-title",
|
|
401
|
+
onClick: (t) => nt(e.name)
|
|
402
|
+
}, [d("span", null, [
|
|
403
|
+
w(d("span", null, "桩号数据", 512), [[S, E.type === "高速"]]),
|
|
404
|
+
w(d("span", null, "隐患点数据", 512), [[S, E.type === "地质"]]),
|
|
405
|
+
w(d("span", null, "水库点数据", 512), [[S, E.type === "水库"]]),
|
|
406
|
+
qe(e.piles) > 0 ? (_(), u("span", we, " (报警数量:" + b(qe(e.piles)) + "个)", 1)) : ee("", !0)
|
|
407
|
+
]), d("span", { class: h(["panel-arrow", { expanded: P.value[e.name] }]) }, [f(c, null, {
|
|
408
|
+
default: C(() => [f(x(T))]),
|
|
409
|
+
_: 1
|
|
410
|
+
})], 2)], 8, Ce), [[S, N.value[e.name]]]),
|
|
411
|
+
w(d("div", Te, [d("div", Ee, [
|
|
412
|
+
w(d("span", null, "桩号", 512), [[S, E.type === "高速"]]),
|
|
413
|
+
w(d("span", null, "隐患点", 512), [[S, E.type === "地质"]]),
|
|
414
|
+
w(d("span", null, "水库点", 512), [[S, E.type === "水库"]]),
|
|
415
|
+
t[9] ||= d("span", null, "未来R1h", -1),
|
|
416
|
+
t[10] ||= d("span", null, "未来R2h", -1),
|
|
417
|
+
t[11] ||= d("span", null, "未来R3h", -1)
|
|
418
|
+
]), e.piles.length ? (_(), u("div", De, [(_(!0), u(s, null, y(e.piles, (e) => (_(), u("div", {
|
|
419
|
+
class: h(["pile-row", { "is-warn": e.isWarn }]),
|
|
420
|
+
key: e.pileNo,
|
|
421
|
+
onClick: (t) => it(e)
|
|
422
|
+
}, [
|
|
423
|
+
d("span", null, b(e.pileNo), 1),
|
|
424
|
+
d("span", null, b(e.rain1h), 1),
|
|
425
|
+
d("span", null, b(e.rain2h), 1),
|
|
426
|
+
d("span", null, b(e.rain3h), 1)
|
|
427
|
+
], 10, Oe))), 128))])) : (_(), u("div", ke, "暂无数据"))], 512), [[S, N.value[e.name] && P.value[e.name]]])
|
|
428
|
+
]))), 128))])], 512), [[S, V.value === "table"]]),
|
|
429
|
+
w(f(p, {
|
|
430
|
+
show: !0,
|
|
431
|
+
isVertical: !1,
|
|
432
|
+
class: "RadarShortTerm-legend"
|
|
433
|
+
}, null, 512), [[S, O.value]]),
|
|
434
|
+
w(d("div", Ae, [d("button", {
|
|
435
|
+
type: "button",
|
|
436
|
+
class: "timeline-play-btn",
|
|
437
|
+
title: k.value ? "暂停" : "播放",
|
|
438
|
+
onClick: Qe
|
|
439
|
+
}, [f(c, null, {
|
|
440
|
+
default: C(() => [k.value ? (_(), l(x(ae), { key: 0 })) : (_(), l(x(oe), { key: 1 }))]),
|
|
441
|
+
_: 1
|
|
442
|
+
})], 8, je), d("div", Me, [d("span", Ne, b(X.value[A.value] || ""), 1), d("div", {
|
|
443
|
+
class: "radarAxis",
|
|
444
|
+
ref_key: "ref_radarAxis",
|
|
445
|
+
ref: L
|
|
446
|
+
}, [(_(!0), u(s, null, y(Y.value, (e, n) => (_(), u("div", Pe, [d("div", {
|
|
447
|
+
class: "radarAxis-li-node",
|
|
448
|
+
onClick: (e) => (A.value = Number(n), $e())
|
|
449
|
+
}, [
|
|
450
|
+
d("i", { style: g({ backgroundColor: e._isHistory ? "" : "#ca9e64" }) }, null, 4),
|
|
451
|
+
w(d("span", null, [...t[12] ||= [d("i", null, null, -1)]], 512), [[S, n === A.value]]),
|
|
452
|
+
d("div", Ie, [d("b", null, b(e._label), 1)])
|
|
453
|
+
], 8, Fe), (_(), u(s, null, y(4, (t) => w(d("div", {
|
|
454
|
+
class: "radarAxis-li-point",
|
|
455
|
+
key: t,
|
|
456
|
+
style: g({ backgroundColor: e._isHistory ? "" : "#ca9e64" })
|
|
457
|
+
}, null, 4), [[S, n !== Y.value.length - 1]])), 64))]))), 256))], 512)])], 512), [[S, O.value]])
|
|
458
|
+
])), [[m, R.value]]);
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
}), [["__scopeId", "data-v-4d99a646"]]);
|
|
462
|
+
//#endregion
|
|
463
|
+
export { E as t };
|
package/dist/chunks/{component-StationList-BVrF2FB9.mjs → component-StationList-zjwlJg41.mjs}
RENAMED
|
@@ -7,8 +7,8 @@ import { ElConfigProvider as i, ElDatePicker as a, ElIcon as o, ElLoadingDirecti
|
|
|
7
7
|
import { computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, getCurrentInstance as g, normalizeClass as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, toDisplayString as S, unref as C, withCtx as w, withDirectives as T } from "vue";
|
|
8
8
|
import { Download as E, RefreshRight as ee } from "@element-plus/icons-vue";
|
|
9
9
|
import { ElMessage as D } from "element-plus";
|
|
10
|
-
import O from "element-plus/es/locale/lang/zh-cn.mjs";
|
|
11
10
|
import "element-plus/dist/index.css";
|
|
11
|
+
import O from "element-plus/es/locale/lang/zh-cn.mjs";
|
|
12
12
|
//#region src/components/StationList/StationList.vue?vue&type=script&setup=true&lang.ts
|
|
13
13
|
var k = /* @__PURE__ */ e(r()), A = {
|
|
14
14
|
class: "StationList",
|
|
@@ -29,7 +29,7 @@ var k = /* @__PURE__ */ e(r()), A = {
|
|
|
29
29
|
appKey: { default: "" },
|
|
30
30
|
appSalt: { default: "" },
|
|
31
31
|
ids: { default: () => ({}) },
|
|
32
|
-
refreshInterval: { default:
|
|
32
|
+
refreshInterval: { default: 600 * 1e3 },
|
|
33
33
|
thresholds: { default: () => ({
|
|
34
34
|
temperature: {
|
|
35
35
|
min: -40,
|
|
@@ -334,6 +334,6 @@ var k = /* @__PURE__ */ e(r()), A = {
|
|
|
334
334
|
])), [[y, z.value]]);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
}), [["__scopeId", "data-v-
|
|
337
|
+
}), [["__scopeId", "data-v-cd45a004"]]);
|
|
338
338
|
//#endregion
|
|
339
339
|
export { R as t };
|
package/dist/nxd-plugin.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { t as e } from "./chunks/component-AqiMonitor-DOK4C-xg.mjs";
|
|
|
2
2
|
import { t } from "./chunks/component-AiChat-BnEFgV35.mjs";
|
|
3
3
|
import { t as ee } from "./chunks/component-HighwayLiveAlarm-CbyBnMeg.mjs";
|
|
4
4
|
import { t as n } from "./chunks/component-GeologyLiveAlarm-D9YG_XOp.mjs";
|
|
5
|
-
import { t as r } from "./chunks/component-HighwayLiveAlarmNew-
|
|
5
|
+
import { t as r } from "./chunks/component-HighwayLiveAlarmNew-8su9mRUD.mjs";
|
|
6
6
|
import { t as i } from "./chunks/component-HighwayStations-BFTxUmJV.mjs";
|
|
7
7
|
import { t as a } from "./chunks/component-HighWayEarlyWarningRed-Ca0D-oU5.mjs";
|
|
8
8
|
import { t as o } from "./chunks/component-HdThreeWeatherTrend-h2B66Z6p.mjs";
|
|
@@ -14,7 +14,7 @@ import { t as d } from "./chunks/component-LithiumBatteryMiningArea-8mhGLmiN.mjs
|
|
|
14
14
|
import { t as f } from "./chunks/component-YCLoginNew-DZvQksHV.mjs";
|
|
15
15
|
import { t as p } from "./chunks/component-HighWayFreeze-CSdr7Frh.mjs";
|
|
16
16
|
import { t as m } from "./chunks/component-RadarLegend-CEEsrXvu.mjs";
|
|
17
|
-
import { t as h } from "./chunks/component-RadarShortTerm-
|
|
17
|
+
import { t as h } from "./chunks/component-RadarShortTerm-DpXuwtc6.mjs";
|
|
18
18
|
import { t as g } from "./chunks/component-TimeBasedForecast-y7IbserF.mjs";
|
|
19
19
|
import { t as _ } from "./chunks/component-WeatherForecast-DdTLG-Ug.mjs";
|
|
20
20
|
import { t as v } from "./chunks/component-ImageGeneration-DXHKtTpJ.mjs";
|
|
@@ -31,29 +31,29 @@ import { t as O } from "./chunks/component-IframeWeb-DEwYtjGi.mjs";
|
|
|
31
31
|
import { t as te } from "./chunks/component-Duty-CJGjMP8N.mjs";
|
|
32
32
|
import { t as k } from "./chunks/component-RenderMarkdown-u7AfD1Aa.mjs";
|
|
33
33
|
import { t as A } from "./chunks/component-EarlyWarningStatistic-CHFSH5mF.mjs";
|
|
34
|
-
import { t as j } from "./chunks/component-EarlyWarningStatistic2-
|
|
34
|
+
import { t as j } from "./chunks/component-EarlyWarningStatistic2-BZ6Xbs8K.mjs";
|
|
35
35
|
import { t as M } from "./chunks/component-YCDataService-BKPAF4Ff.mjs";
|
|
36
36
|
import { t as N } from "./chunks/component-ChartCumulativePre-BVHBo0Gl.mjs";
|
|
37
37
|
import { t as P } from "./chunks/component-ChartServiceMaterial-B17TVkqd.mjs";
|
|
38
38
|
import { t as F } from "./chunks/component-YCHomeLegend-DxH8hLlL.mjs";
|
|
39
39
|
import { t as I } from "./chunks/component-IntroducePic-DDZOk8TM.mjs";
|
|
40
|
-
import { t as L } from "./chunks/component-HighQuality-
|
|
40
|
+
import { t as L } from "./chunks/component-HighQuality-D771XcpI.mjs";
|
|
41
41
|
import { t as R } from "./chunks/component-HdObservation-BDgQzt1b.mjs";
|
|
42
42
|
import { t as z } from "./chunks/component-StationDialog-Cx3qkxHK.mjs";
|
|
43
|
-
import { t as B } from "./chunks/component-StationList-
|
|
44
|
-
import { t as V } from "./chunks/component-PrecipitationRanking-
|
|
43
|
+
import { t as B } from "./chunks/component-StationList-zjwlJg41.mjs";
|
|
44
|
+
import { t as V } from "./chunks/component-PrecipitationRanking-CCZpk2tu.mjs";
|
|
45
45
|
import { t as H } from "./chunks/component-HdRadarTime-8C-zLoCF.mjs";
|
|
46
46
|
import { t as U } from "./chunks/component-HdStationTem-9OJ8fQur.mjs";
|
|
47
|
-
import { t as W } from "./chunks/component-HdPreSituation-
|
|
47
|
+
import { t as W } from "./chunks/component-HdPreSituation-CpZnlGJv.mjs";
|
|
48
48
|
import { t as G } from "./chunks/component-HdSeaCase-CaBGwz9H.mjs";
|
|
49
49
|
import { n as K, t as q } from "./chunks/component-HdHeatService-CAaWsoLT.mjs";
|
|
50
50
|
import { t as J } from "./chunks/component-HdServiceRequirements-BEy5QGcP.mjs";
|
|
51
51
|
import { t as Y } from "./chunks/component-HdSuggestion-3itGoocz.mjs";
|
|
52
52
|
import { t as X } from "./chunks/component-HdForecastProducts-fBB5qlnN.mjs";
|
|
53
53
|
import { t as Z } from "./chunks/component-HdWaveForcast-CvFuVCf_.mjs";
|
|
54
|
-
import { t as Q } from "./chunks/component-HdServiceMarterial-
|
|
54
|
+
import { t as Q } from "./chunks/component-HdServiceMarterial-DwVtOltt.mjs";
|
|
55
55
|
import { t as ne } from "./chunks/component-HdCameraList-BQeb5qcu.mjs";
|
|
56
|
-
import { t as re } from "./chunks/component-HdRadarList-
|
|
56
|
+
import { t as re } from "./chunks/component-HdRadarList-DuBiBRVc.mjs";
|
|
57
57
|
//#region src/index.ts
|
|
58
58
|
var $ = { install($) {
|
|
59
59
|
$.component("HighwayLiveAlarm", ee), $.component("HighwayLiveAlarmNew", r), $.component("HighwayStations", i), $.component("HighWayEarlyWarningRed", a), $.component("HighwayWeatherForecast", c), $.component("ServiceMaterialsBtn", l), $.component("YCHome", u), $.component("YCLoginNew", f), $.component("HighWayFreeze", p), $.component("RadarShortTerm", h), $.component("LithiumBatteryMiningArea", d), $.component("TimeBasedForecast", g), $.component("WeatherForecast", _), $.component("ImageGeneration", v), $.component("WarningSignal", y), $.component("RadarChart", b), $.component("AqiMonitor", e), $.component("MapPopup", x), $.component("RadarTime", S), $.component("ServiceMaterial", C), $.component("WarningLine", w), $.component("RadarLegend", m), $.component("PieLegend", T), $.component("GeologyLiveAlarm", n), $.component("MaterialPreview", E), $.component("ReservoirLiveAlarm", D), $.component("IframeWeb", O), $.component("Duty", te), $.component("RenderMarkdown", k), $.component("EarlyWarningStatistic", A), $.component("EarlyWarningStatistic2", j), $.component("YCDataService", M), $.component("ChartCumulativePre", N), $.component("ChartServiceMaterial", P), $.component("YCHomeLegend", F), $.component("IntroducePic", I), $.component("HighQuality", L), $.component("AiChat", t), $.component("StationDialog", z), $.component("StationList", B), $.component("PrecipitationRanking", V), $.component("Forecast72h", s), $.component("HdRadarTime", H), $.component("HdStationTem", U), $.component("HdObservation", R), $.component("HdPreSituation", W), $.component("HdSeaCase", G), $.component("HdQxServiceEffects", K), $.component("HdHeatService", q), $.component("HdServiceRequirements", J), $.component("HdSuggestion", Y), $.component("HdForecastProducts", X), $.component("HdThreeWeatherTrend", o), $.component("HdWaveForcast", Z), $.component("HdServiceMarterial", Q), $.component("HdCameraList", ne), $.component("HdRadarList", re);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.EarlyWarningStatistic2[data-v-
|
|
1
|
+
.EarlyWarningStatistic2[data-v-9b83e9ba]{color:#fff;box-sizing:border-box;background:#002140e6;border:1px solid #0bc4e9;width:260px;height:160px;padding:10px;position:relative}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head[data-v-9b83e9ba]{width:100%;position:relative}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top[data-v-9b83e9ba]{color:#fff;justify-content:space-between;align-items:center;width:100%;height:20px;margin-bottom:6px;font-size:16px;font-weight:700;display:flex}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]{cursor:pointer;background:#b4c4d247;border:1px solid #b0d2e65c;border-radius:50%;width:16px;height:16px;transition:background-color .28s cubic-bezier(.22,1,.36,1),border-color .28s cubic-bezier(.22,1,.36,1),box-shadow .28s cubic-bezier(.22,1,.36,1),transform .22s cubic-bezier(.22,1,.36,1);position:relative;transform:scale(1);box-shadow:inset 0 1px 1px #ffffff1f}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:before,.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:after{content:"";transform-origin:50%;opacity:0;background:#7a1b18;border-radius:1px;width:9px;height:1.8px;transition:opacity .2s;position:absolute;top:50%;left:50%}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:before{transform:translate(-50%,-50%)rotate(45deg)}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:after{transform:translate(-50%,-50%)rotate(-45deg)}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:hover{background:#ff5f57;border-color:#e0443e;transform:scale(1.14);box-shadow:inset 0 1px 1px #ffffff59,0 0 0 1px #0003}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:hover:before,.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:hover:after{opacity:1}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-top .closeBtn[data-v-9b83e9ba]:active{transform:scale(.96)}.EarlyWarningStatistic2 .EarlyWarningStatistic2-head .EarlyWarningStatistic2-head-line[data-v-9b83e9ba]{width:100%;height:10px}.EarlyWarningStatistic2 .EarlyWarningStatistic2-body[data-v-9b83e9ba]{justify-content:space-between;align-items:center;gap:8px;width:100%;height:calc(100% - 52px);padding-top:8px;display:flex}.EarlyWarningStatistic2 .EarlyWarningStatistic2-card[data-v-9b83e9ba]{border:1px solid var(--card-color);height:100%;box-shadow:0 0 12px var(--card-glow), inset 0 0 16px var(--card-glow);background:#00214099;border-radius:8px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;transition:all .2s;display:flex}.EarlyWarningStatistic2 .EarlyWarningStatistic2-card[data-v-9b83e9ba]:hover{box-shadow:0 0 20px var(--card-color), inset 0 0 20px var(--card-glow);transform:translateY(-2px)}.EarlyWarningStatistic2 .EarlyWarningStatistic2-count[data-v-9b83e9ba]{color:#fff;text-shadow:0 0 8px var(--card-color);font-size:24px;font-weight:700}.EarlyWarningStatistic2 .EarlyWarningStatistic2-label[data-v-9b83e9ba]{color:var(--card-color);font-size:14px;font-weight:500}
|