nxd-plugin 1.4.2 → 1.4.4
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-HighWayEarlyWarningRed-BKLHeWHr.mjs → component-HighWayEarlyWarningRed-C4eUxLai.mjs} +5256 -1546
- package/dist/chunks/{component-HighWayFreeze-C00Oq_Cv.mjs → component-HighWayFreeze-DuMJBk42.mjs} +25 -3
- package/dist/chunks/{component-HighwayLiveAlarm-DllwzbH4.mjs → component-HighwayLiveAlarm-D9oqLDZZ.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-DBjbogYx.mjs → component-HighwayLiveAlarmNew-DVy5Olip.mjs} +208 -32131
- package/dist/chunks/{component-HighwayStations-C_TJ2Efx.mjs → component-HighwayStations-Dbgjri24.mjs} +3 -3
- package/dist/chunks/{component-HighwayWeatherForecast-BbixfHtC.mjs → component-HighwayWeatherForecast-CKV7VnEV.mjs} +2 -2
- package/dist/chunks/{component-ImageGeneration-F8EZ2fVy.mjs → component-ImageGeneration-BqZ-pjEm.mjs} +4 -4
- package/dist/chunks/{component-LithiumBatteryMiningArea-CYr6820o.mjs → component-LithiumBatteryMiningArea-UTH3sdF8.mjs} +20 -4
- package/dist/chunks/component-RadarShortTerm-CFJX4Ewh.mjs +267 -0
- package/dist/chunks/{component-ServiceMaterialsBtn-DO65XjnH.mjs → component-ServiceMaterialsBtn-BrXC1lcr.mjs} +4 -4
- package/dist/chunks/{component-TimeBasedForecast-BRm67AEz.mjs → component-TimeBasedForecast-CQCvhkGr.mjs} +27 -17
- package/dist/chunks/{component-WeatherForecast-BGUs5Tre.mjs → component-WeatherForecast-C_sW1SJT.mjs} +14 -4
- package/dist/chunks/{component-YCHome-DaygWyv6.mjs → component-YCHome-aQhQj_ZF.mjs} +17 -7
- package/dist/chunks/{component-YCLogin-BCf52DJ1.mjs → component-YCLogin-DwXrTSWD.mjs} +4 -4
- package/dist/chunks/{component-YCLoginNew-B5_41mMQ.mjs → component-YCLoginNew-DkMIuBat.mjs} +16 -6
- package/dist/nxd-plugin.mjs +17 -17
- package/dist/src/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +10 -0
- package/dist/src/components/HighWayFreeze/HighWayFreeze.vue.d.ts +18 -0
- package/dist/src/components/HighwayLiveAlarmNew/HighwayLiveAlarmNew.vue.d.ts +18 -0
- package/dist/src/components/LithiumBatteryMiningArea/LithiumBatteryMiningArea.vue.d.ts +18 -0
- package/dist/src/components/RadarShortTerm/RadarShortTerm.vue.d.ts +12 -48
- package/dist/src/components/TimeBasedForecast/TimeBasedForecast.vue.d.ts +18 -0
- package/dist/src/components/WeatherForecast/WeatherForecast.vue.d.ts +18 -0
- package/dist/src/components/YCLoginNew/YCLoginNew.vue.d.ts +10 -0
- package/dist/src/utils/request.d.ts +3 -1
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-HighWayFreeze.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-LithiumBatteryMiningArea.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-TimeBasedForecast.css +1 -1
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCHome.css +1 -1
- package/dist/styles/component-YCLogin.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +2 -1
- package/dist/chunks/component-RadarShortTerm-B59tOrIJ.mjs +0 -428
- package/dist/components/HighwayLiveAlarmNew/default.json.d.ts +0 -31945
- package/dist/components/RadarShortTerm/radar.json.d.ts +0 -151
- package/dist/src/utils/request/345/244/207/344/273/275.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nxd-plugin",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"main": "dist/nxd-plugin.mjs",
|
|
5
5
|
"module": "dist/nxd-plugin.mjs",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@element-plus/icons-vue": "^2.3.2",
|
|
47
|
+
"crypto-js": "^4.2.0",
|
|
47
48
|
"dom-to-image": "^2.6.0",
|
|
48
49
|
"echarts": "^6.0.0",
|
|
49
50
|
"element-plus": "^2.13.7",
|
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { A as e, S as t, j as n, m as r } from "./component-HighWayFreeze-C00Oq_Cv.mjs";
|
|
3
|
-
import { i, n as a, r as o } from "./component-HighWayEarlyWarningRed-BKLHeWHr.mjs";
|
|
4
|
-
import { r as ee, t as s } from "./component-HighwayLiveAlarmNew-DBjbogYx.mjs";
|
|
5
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, onBeforeUnmount as v, 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
|
-
var O = {
|
|
7
|
-
ds: [
|
|
8
|
-
{
|
|
9
|
-
id: 16549717,
|
|
10
|
-
radar_code: "JJSCR230",
|
|
11
|
-
file_name: "CR_9792_202604281006_transparent.png",
|
|
12
|
-
observation_time: "2026-04-28T18:06:00",
|
|
13
|
-
input_time: "2026-04-28T18:20:03"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 16549715,
|
|
17
|
-
radar_code: "JJSCR230",
|
|
18
|
-
file_name: "CR_9792_202604281000_transparent.png",
|
|
19
|
-
observation_time: "2026-04-28T18:00:00",
|
|
20
|
-
input_time: "2026-04-28T18:15:03"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: 16549713,
|
|
24
|
-
radar_code: "JJSCR230",
|
|
25
|
-
file_name: "CR_9792_202604280948_transparent.png",
|
|
26
|
-
observation_time: "2026-04-28T17:48:00",
|
|
27
|
-
input_time: "2026-04-28T18:05:00"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 16549710,
|
|
31
|
-
radar_code: "JJSCR230",
|
|
32
|
-
file_name: "CR_9792_202604280942_transparent.png",
|
|
33
|
-
observation_time: "2026-04-28T17:42:00",
|
|
34
|
-
input_time: "2026-04-28T17:55:04"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: 16549708,
|
|
38
|
-
radar_code: "JJSCR230",
|
|
39
|
-
file_name: "CR_9792_202604280936_transparent.png",
|
|
40
|
-
observation_time: "2026-04-28T17:36:00",
|
|
41
|
-
input_time: "2026-04-28T17:50:02"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: 16549705,
|
|
45
|
-
radar_code: "JJSCR230",
|
|
46
|
-
file_name: "CR_9792_202604280930_transparent.png",
|
|
47
|
-
observation_time: "2026-04-28T17:30:00",
|
|
48
|
-
input_time: "2026-04-28T17:40:04"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: 16549704,
|
|
52
|
-
radar_code: "JJSCR230",
|
|
53
|
-
file_name: "CR_9792_202604280924_transparent.png",
|
|
54
|
-
observation_time: "2026-04-28T17:24:00",
|
|
55
|
-
input_time: "2026-04-28T17:35:04"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: 16549702,
|
|
59
|
-
radar_code: "JJSCR230",
|
|
60
|
-
file_name: "CR_9792_202604280918_transparent.png",
|
|
61
|
-
observation_time: "2026-04-28T17:18:00",
|
|
62
|
-
input_time: "2026-04-28T17:30:03"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
id: 16549700,
|
|
66
|
-
radar_code: "JJSCR230",
|
|
67
|
-
file_name: "CR_9792_202604280912_transparent.png",
|
|
68
|
-
observation_time: "2026-04-28T17:12:00",
|
|
69
|
-
input_time: "2026-04-28T17:25:00"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: 16549698,
|
|
73
|
-
radar_code: "JJSCR230",
|
|
74
|
-
file_name: "CR_9792_202604280906_transparent.png",
|
|
75
|
-
observation_time: "2026-04-28T17:06:00",
|
|
76
|
-
input_time: "2026-04-28T17:20:00"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 16549696,
|
|
80
|
-
radar_code: "JJSCR230",
|
|
81
|
-
file_name: "CR_9792_202604280900_transparent.png",
|
|
82
|
-
observation_time: "2026-04-28T17:00:00",
|
|
83
|
-
input_time: "2026-04-28T17:15:02"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: 16549694,
|
|
87
|
-
radar_code: "JJSCR230",
|
|
88
|
-
file_name: "CR_9792_202604280854_transparent.png",
|
|
89
|
-
observation_time: "2026-04-28T16:54:00",
|
|
90
|
-
input_time: "2026-04-28T17:05:00"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: 16549692,
|
|
94
|
-
radar_code: "JJSCR230",
|
|
95
|
-
file_name: "CR_9792_202604280848_transparent.png",
|
|
96
|
-
observation_time: "2026-04-28T16:48:00",
|
|
97
|
-
input_time: "2026-04-28T17:00:02"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: 16549690,
|
|
101
|
-
radar_code: "JJSCR230",
|
|
102
|
-
file_name: "CR_9792_202604280842_transparent.png",
|
|
103
|
-
observation_time: "2026-04-28T16:42:00",
|
|
104
|
-
input_time: "2026-04-28T16:55:02"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: 16549687,
|
|
108
|
-
radar_code: "JJSCR230",
|
|
109
|
-
file_name: "CR_9792_202604280836_transparent.png",
|
|
110
|
-
observation_time: "2026-04-28T16:36:00",
|
|
111
|
-
input_time: "2026-04-28T16:50:00"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
id: 16549685,
|
|
115
|
-
radar_code: "JJSCR230",
|
|
116
|
-
file_name: "CR_9792_202604280830_transparent.png",
|
|
117
|
-
observation_time: "2026-04-28T16:30:00",
|
|
118
|
-
input_time: "2026-04-28T16:45:00"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
id: 16549683,
|
|
122
|
-
radar_code: "JJSCR230",
|
|
123
|
-
file_name: "CR_9792_202604280824_transparent.png",
|
|
124
|
-
observation_time: "2026-04-28T16:24:00",
|
|
125
|
-
input_time: "2026-04-28T16:40:00"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
id: 16549682,
|
|
129
|
-
radar_code: "JJSCR230",
|
|
130
|
-
file_name: "CR_9792_202604280818_transparent.png",
|
|
131
|
-
observation_time: "2026-04-28T16:18:00",
|
|
132
|
-
input_time: "2026-04-28T16:35:00"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: 16549679,
|
|
136
|
-
radar_code: "JJSCR230",
|
|
137
|
-
file_name: "CR_9792_202604280812_transparent.png",
|
|
138
|
-
observation_time: "2026-04-28T16:12:00",
|
|
139
|
-
input_time: "2026-04-28T16:25:01"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
id: 16549677,
|
|
143
|
-
radar_code: "JJSCR230",
|
|
144
|
-
file_name: "CR_9792_202604280806_transparent.png",
|
|
145
|
-
observation_time: "2026-04-28T16:06:00",
|
|
146
|
-
input_time: "2026-04-28T16:20:02"
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
latStart: 27.535278,
|
|
150
|
-
lngStart: 113.951944,
|
|
151
|
-
latEnd: 31.535278,
|
|
152
|
-
lngEnd: 117.951944,
|
|
153
|
-
httpurl: "http://182.106.183.101:9000/Radar/JJSCR230/"
|
|
154
|
-
}, k = { class: "RadarShortTerm" }, A = { class: "RadarShortTerm-setting-panel" }, te = { class: "display-setting" }, ne = { class: "setting-row setting-row-pile" }, re = { class: "setting-pile-options" }, ie = { class: "RadarShortTerm-table" }, ae = { class: "table-body" }, oe = ["onClick"], se = { class: "name" }, ce = ["onClick"], le = {
|
|
155
|
-
key: 0,
|
|
156
|
-
style: { color: "red" }
|
|
157
|
-
}, ue = { class: "pile-panel" }, de = {
|
|
158
|
-
key: 0,
|
|
159
|
-
class: "pile-body"
|
|
160
|
-
}, fe = {
|
|
161
|
-
key: 1,
|
|
162
|
-
class: "pile-empty"
|
|
163
|
-
}, pe = { class: "RadarShortTerm-timeline" }, me = ["title"], he = { class: "timeline-track" }, ge = ["onClick"], j = /* @__PURE__ */ o(/* @__PURE__ */ g({
|
|
164
|
-
__name: "RadarShortTerm",
|
|
165
|
-
props: {
|
|
166
|
-
tokenInterface: {
|
|
167
|
-
type: String,
|
|
168
|
-
default: ""
|
|
169
|
-
},
|
|
170
|
-
tokenInterfaceParams: {
|
|
171
|
-
type: Object,
|
|
172
|
-
default: () => ({})
|
|
173
|
-
},
|
|
174
|
-
tokenInterfaceType: {
|
|
175
|
-
type: String,
|
|
176
|
-
default: "post"
|
|
177
|
-
},
|
|
178
|
-
tokenInterfaceIsFormData: {
|
|
179
|
-
type: Boolean,
|
|
180
|
-
default: !1
|
|
181
|
-
},
|
|
182
|
-
dataInterface: {
|
|
183
|
-
type: String,
|
|
184
|
-
default: ""
|
|
185
|
-
},
|
|
186
|
-
dataInterfaceParams: {
|
|
187
|
-
type: Object,
|
|
188
|
-
default: () => ({})
|
|
189
|
-
},
|
|
190
|
-
dataInterfaceType: {
|
|
191
|
-
type: String,
|
|
192
|
-
default: "post"
|
|
193
|
-
},
|
|
194
|
-
dataInterfaceIsFormData: {
|
|
195
|
-
type: Boolean,
|
|
196
|
-
default: !1
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
emits: [
|
|
200
|
-
"close",
|
|
201
|
-
"addImage",
|
|
202
|
-
"clearImg",
|
|
203
|
-
"addDataTitle",
|
|
204
|
-
"removeDataTitle",
|
|
205
|
-
"showRadarLegend"
|
|
206
|
-
],
|
|
207
|
-
setup(o, { emit: g }) {
|
|
208
|
-
let j = o, M = g, N = x(!0), P = x(!1), F = x(0), I = x(null), L = x([]), R = x({}), z = x({}), _e = x([
|
|
209
|
-
{
|
|
210
|
-
pileNo: "养护站901",
|
|
211
|
-
isWarn: !0,
|
|
212
|
-
warnValue: "未来R3h:40mm"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
pileNo: "服务区停车区902",
|
|
216
|
-
isWarn: !0,
|
|
217
|
-
warnValue: "未来R3h:30mm"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
pileNo: "收费站903",
|
|
221
|
-
isWarn: !0,
|
|
222
|
-
warnValue: "未来R3h:40mm"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
pileNo: "养护站904",
|
|
226
|
-
isWarn: !1,
|
|
227
|
-
warnValue: "无"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
pileNo: "服务区停车区905",
|
|
231
|
-
isWarn: !1,
|
|
232
|
-
warnValue: "无"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
pileNo: "收费站906",
|
|
236
|
-
isWarn: !1,
|
|
237
|
-
warnValue: "无"
|
|
238
|
-
}
|
|
239
|
-
]), B = x({}), V = x("");
|
|
240
|
-
y(() => {
|
|
241
|
-
ve();
|
|
242
|
-
}), v(() => {
|
|
243
|
-
Q();
|
|
244
|
-
});
|
|
245
|
-
let ve = async () => {
|
|
246
|
-
j.dataInterface ? (B.value = await i({
|
|
247
|
-
url: j.dataInterface,
|
|
248
|
-
method: j.dataInterfaceType,
|
|
249
|
-
params: j.dataInterfaceParams,
|
|
250
|
-
isFormData: j.dataInterfaceIsFormData,
|
|
251
|
-
tokenInterface: j.tokenInterface,
|
|
252
|
-
tokenInterfaceParams: j.tokenInterfaceParams,
|
|
253
|
-
tokenInterfaceType: j.tokenInterfaceType,
|
|
254
|
-
tokenInterfaceIsFormData: j.tokenInterfaceIsFormData
|
|
255
|
-
}), F.value = B.value.ds.length >= 12 ? 11 : B.value.ds.length - 1) : (B.value = O, F.value = 11), L.value = (await ye()).map((e) => {
|
|
256
|
-
let t = xe(e);
|
|
257
|
-
return {
|
|
258
|
-
name: e.name,
|
|
259
|
-
tags: Se(t),
|
|
260
|
-
piles: _e.value
|
|
261
|
-
};
|
|
262
|
-
}), N.value && Z(), be();
|
|
263
|
-
}, H = l(() => we(L.value, (e) => q(e.tags))), U = l(() => (B.value?.ds || []).slice(0, 12).reverse()), W = l(() => U.value.map((e) => {
|
|
264
|
-
let t = new Date(e.observation_time);
|
|
265
|
-
return `${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
|
|
266
|
-
})), G = l(() => ({
|
|
267
|
-
httpurl: B.value?.httpurl || "",
|
|
268
|
-
lngStart: B.value?.lngStart,
|
|
269
|
-
latStart: B.value?.latStart,
|
|
270
|
-
lngEnd: B.value?.lngEnd,
|
|
271
|
-
latEnd: B.value?.latEnd
|
|
272
|
-
})), ye = async () => s?.ds || [], be = () => {
|
|
273
|
-
let e = H.value.find((e) => q(e.tags)), t = {}, n = {};
|
|
274
|
-
e && (t[e.name] = !0, n[e.name] = !0), R.value = t, z.value = n;
|
|
275
|
-
}, K = (e, t, n) => e.find((e) => e?.[t] === 1 && Ce(e?.[n])) || e.find((e) => e?.[t] === 1), xe = (e) => {
|
|
276
|
-
let t = e.zdzds || [], n = K(t, "iswarnrainfall_1h", "rainfall_1h"), r = K(t, "iswarntemp", "temperature"), i = K(t, "iswarnvis", "visibility");
|
|
277
|
-
return {
|
|
278
|
-
iswarnrainfall_1h: n ? 1 : 0,
|
|
279
|
-
iswarntemp: r ? 1 : 0,
|
|
280
|
-
iswarnvis: i ? 1 : 0
|
|
281
|
-
};
|
|
282
|
-
}, Se = (e) => [
|
|
283
|
-
{
|
|
284
|
-
label: "未来R1h",
|
|
285
|
-
warn: e.iswarnrainfall_1h === 1
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
label: "未来R2h",
|
|
289
|
-
warn: e.iswarntemp === 1
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
label: "未来R3h",
|
|
293
|
-
warn: e.iswarnvis === 1
|
|
294
|
-
}
|
|
295
|
-
], Ce = (e) => {
|
|
296
|
-
let t = Number(e);
|
|
297
|
-
return Number.isFinite(t) && t < 999999 && t > -999999;
|
|
298
|
-
}, q = (e) => e.some((e) => e.warn), we = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), J = (e) => e.filter((e) => e.isWarn).length, Y = (e) => {
|
|
299
|
-
if (!e) return null;
|
|
300
|
-
let t = String(e?.input_time || "").slice(0, 10).replaceAll("-", "");
|
|
301
|
-
return {
|
|
302
|
-
alt: "",
|
|
303
|
-
imgUrl: `${G.value.httpurl}${t}/${e.file_name}`,
|
|
304
|
-
lngStart: G.value.lngStart,
|
|
305
|
-
latStart: G.value.latStart,
|
|
306
|
-
lngEnd: G.value.lngEnd,
|
|
307
|
-
latEnd: G.value.latEnd,
|
|
308
|
-
opacity: 1,
|
|
309
|
-
otherData: { imgId: "radar_RadarShortTerm" }
|
|
310
|
-
};
|
|
311
|
-
}, X = (e) => {
|
|
312
|
-
let t = U.value[e];
|
|
313
|
-
M("addImage", {
|
|
314
|
-
removeImg: "radar_RadarShortTerm",
|
|
315
|
-
data: { imgArr: [Y(t)] }
|
|
316
|
-
}), V.value && M("removeDataTitle", V.value), V.value = "雷达观测时间:" + a(B.value.ds[e].observation_time).format("YYYY-MM-DD HH:mm"), M("addDataTitle", V.value), M("showRadarLegend", !0);
|
|
317
|
-
}, Z = () => {
|
|
318
|
-
if ($(), !U.value.length) return;
|
|
319
|
-
let e = F.value >= 0 && F.value < U.value.length ? F.value : 0;
|
|
320
|
-
F.value = e, X(e);
|
|
321
|
-
}, Q = () => {
|
|
322
|
-
I.value &&= (clearInterval(I.value), null);
|
|
323
|
-
}, $ = () => {
|
|
324
|
-
P.value = !1, Q();
|
|
325
|
-
}, Te = () => {
|
|
326
|
-
W.value.length <= 1 || (P.value = !0, Q(), I.value = setInterval(() => {
|
|
327
|
-
F.value = (F.value + 1) % W.value.length, X(F.value);
|
|
328
|
-
}, 3e3));
|
|
329
|
-
}, Ee = () => {
|
|
330
|
-
if (P.value) {
|
|
331
|
-
$();
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
Te();
|
|
335
|
-
}, De = (e) => {
|
|
336
|
-
F.value = e, X(e), $();
|
|
337
|
-
}, Oe = () => {
|
|
338
|
-
if (!N.value) {
|
|
339
|
-
M("clearImg", "radar_RadarShortTerm"), M("removeDataTitle", V.value), M("showRadarLegend", !1), $();
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
Z();
|
|
343
|
-
}, ke = (e) => {
|
|
344
|
-
let t = !!R.value[e];
|
|
345
|
-
R.value[e] = !t, t || (z.value[e] = !0);
|
|
346
|
-
}, Ae = (e) => {
|
|
347
|
-
z.value[e] = !z.value[e];
|
|
348
|
-
}, je = () => {
|
|
349
|
-
M("close", "RadarShortTerm");
|
|
350
|
-
};
|
|
351
|
-
return (i, a) => {
|
|
352
|
-
let o = ee, s = r;
|
|
353
|
-
return b(), f("div", k, [
|
|
354
|
-
p("div", { class: "RadarShortTerm-head" }, [p("div", { class: "RadarShortTerm-head-top" }, [a[1] ||= p("div", null, "雷达短临预报", -1), p("div", { class: "head-actions" }, [p("div", {
|
|
355
|
-
class: "closeBtn",
|
|
356
|
-
onClick: je,
|
|
357
|
-
title: "关闭"
|
|
358
|
-
})])]), a[2] ||= p("img", {
|
|
359
|
-
class: "RadarShortTerm-head-line",
|
|
360
|
-
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",
|
|
361
|
-
alt: ""
|
|
362
|
-
}, null, -1)]),
|
|
363
|
-
p("div", A, [p("div", te, [p("div", ne, [a[4] ||= p("span", { class: "setting-label" }, "雷达展示:", -1), p("div", re, [h(o, {
|
|
364
|
-
modelValue: N.value,
|
|
365
|
-
"onUpdate:modelValue": a[0] ||= (e) => N.value = e,
|
|
366
|
-
class: "pile-checkbox",
|
|
367
|
-
onChange: Oe
|
|
368
|
-
}, {
|
|
369
|
-
default: E(() => [...a[3] ||= [m(" 显示 ", -1)]]),
|
|
370
|
-
_: 1
|
|
371
|
-
}, 8, ["modelValue"])])])])]),
|
|
372
|
-
p("div", ie, [a[7] ||= p("div", { class: "table-head" }, [
|
|
373
|
-
p("span", null, "高速名称"),
|
|
374
|
-
p("span", null, "状态要素"),
|
|
375
|
-
p("span", { class: "head-arrow" })
|
|
376
|
-
], -1), p("div", ae, [(b(!0), f(c, null, S(H.value, (e) => (b(), f("div", {
|
|
377
|
-
class: "table-row",
|
|
378
|
-
key: e.name
|
|
379
|
-
}, [
|
|
380
|
-
p("div", {
|
|
381
|
-
class: "table-row-main",
|
|
382
|
-
onClick: (t) => ke(e.name)
|
|
383
|
-
}, [
|
|
384
|
-
p("span", se, C(e.name), 1),
|
|
385
|
-
p("div", { class: _(["status-tags", { "has-warn": q(e.tags) }]) }, [(b(!0), f(c, null, S(e.tags, (t) => (b(), f("span", {
|
|
386
|
-
class: _(["status-tag", { warn: t.warn }]),
|
|
387
|
-
key: `${e.name}-${t.label}`
|
|
388
|
-
}, [p("span", null, C(t.label), 1)], 2))), 128))], 2),
|
|
389
|
-
p("span", {
|
|
390
|
-
class: _(["expand-arrow", { expanded: R.value[e.name] }]),
|
|
391
|
-
"aria-hidden": "true"
|
|
392
|
-
}, [h(s, null, {
|
|
393
|
-
default: E(() => [h(w(t))]),
|
|
394
|
-
_: 1
|
|
395
|
-
})], 2)
|
|
396
|
-
], 8, oe),
|
|
397
|
-
D(p("div", {
|
|
398
|
-
class: "pile-title",
|
|
399
|
-
onClick: (t) => Ae(e.name)
|
|
400
|
-
}, [p("span", null, [a[5] ||= m(" 桩号数据 ", -1), J(e.piles) > 0 ? (b(), f("span", le, " (报警数量:" + C(J(e.piles)) + "个)", 1)) : d("", !0)]), p("span", { class: _(["panel-arrow", { expanded: z.value[e.name] }]) }, [h(s, null, {
|
|
401
|
-
default: E(() => [h(w(t))]),
|
|
402
|
-
_: 1
|
|
403
|
-
})], 2)], 8, ce), [[T, R.value[e.name]]]),
|
|
404
|
-
D(p("div", ue, [a[6] ||= p("div", { class: "pile-head" }, [p("span", null, "桩号"), p("span", null, "报警值")], -1), e.piles.length ? (b(), f("div", de, [(b(!0), f(c, null, S(e.piles, (e) => (b(), f("div", {
|
|
405
|
-
class: _(["pile-row", { "is-warn": e.isWarn }]),
|
|
406
|
-
key: e.pileNo
|
|
407
|
-
}, [p("span", null, C(e.pileNo), 1), p("span", null, C(e.warnValue), 1)], 2))), 128))])) : (b(), f("div", fe, "暂无数据"))], 512), [[T, R.value[e.name] && z.value[e.name]]])
|
|
408
|
-
]))), 128))])]),
|
|
409
|
-
D(p("div", pe, [p("button", {
|
|
410
|
-
type: "button",
|
|
411
|
-
class: "timeline-play-btn",
|
|
412
|
-
title: P.value ? "暂停" : "播放",
|
|
413
|
-
onClick: Ee
|
|
414
|
-
}, [h(s, null, {
|
|
415
|
-
default: E(() => [P.value ? (b(), u(w(e), { key: 0 })) : (b(), u(w(n), { key: 1 }))]),
|
|
416
|
-
_: 1
|
|
417
|
-
})], 8, me), p("div", he, [(b(!0), f(c, null, S(W.value, (e, t) => (b(), f("button", {
|
|
418
|
-
key: e,
|
|
419
|
-
type: "button",
|
|
420
|
-
class: _(["timeline-item", { active: F.value === t }]),
|
|
421
|
-
onClick: (e) => De(Number(t))
|
|
422
|
-
}, C(e), 11, ge))), 128))])], 512), [[T, N.value]])
|
|
423
|
-
]);
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
}), [["__scopeId", "data-v-30eb42da"]]);
|
|
427
|
-
//#endregion
|
|
428
|
-
export { j as t };
|