nxd-plugin 1.7.0 → 1.7.2
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-HighwayLiveAlarmNew--cnSiMgV.mjs → component-HighwayLiveAlarmNew-KR4OZB7F.mjs} +337 -300
- package/dist/chunks/{component-ImageGeneration-DBGoJgau.mjs → component-ImageGeneration-Ch_ajmOP.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-spO4BGj9.mjs → component-RadarShortTerm-Dxq3c_j-.mjs} +75 -68
- package/dist/chunks/{component-ServiceMaterialsBtn-Cx4iw5kJ.mjs → component-ServiceMaterialsBtn-DbRVspkX.mjs} +1 -1
- package/dist/chunks/{component-TimeBasedForecast-By7vsTR3.mjs → component-TimeBasedForecast-D4syarmJ.mjs} +1 -1
- package/dist/chunks/component-WeatherForecast-CYzKbPGG.mjs +209 -0
- package/dist/chunks/{component-YCHome-Dt-2Vg08.mjs → component-YCHome-CJTR9axy.mjs} +219 -220
- package/dist/chunks/{component-YCLogin-HkPL9Pv5.mjs → component-YCLogin-BJEVO5e9.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-C3n6QcTL.mjs → component-YCLoginNew-CWtDmJk-.mjs} +4 -4
- package/dist/nxd-plugin.mjs +9 -9
- package/dist/src/components/RadarShortTerm/RadarShortTerm.vue.d.ts +8 -4
- package/dist/src/components/RadarTime/RadarTime.vue.d.ts +2 -2
- package/dist/styles/component-HighwayLiveAlarmNew.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 +1 -1
- package/dist/chunks/component-WeatherForecast-B-KJ3IU3.mjs +0 -231
|
@@ -2,7 +2,7 @@ import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
|
2
2
|
import { $ as n, C as r, E as i, G as a, I as o, K as s, L as c, M as l, P as u, Q as d, R as f, T as p, W as m, Z as h, a as g, b as _, c as v, d as y, et as b, i as x, l as S, m as C, n as w, r as ee, tt as T, u as E, v as D, w as O, y as te, z as ne } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
3
|
import { At as re, B as ie, Bt as ae, C as oe, Ct as se, D as k, Dt as ce, E as le, Et as ue, Ft as de, Gt as fe, Ht as pe, It as me, Jt as he, Kt as ge, Lt as _e, Mt as ve, Nt as ye, Ot as be, P as xe, Pt as Se, R as Ce, Rt as we, St as Te, Tt as Ee, Ut as De, Vt as Oe, Wt as ke, Yt as Ae, Zt as je, a as Me, c as Ne, f as Pe, g as Fe, h as Ie, ht as Le, in as Re, jt as ze, kt as Be, l as Ve, n as He, nn as Ue, o as We, on as Ge, qt as Ke, u as qe, v as Je, zt as Ye } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
4
|
import { a as Xe } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
|
|
5
|
-
import { n as Ze } from "./component-HighwayLiveAlarmNew
|
|
5
|
+
import { n as Ze } from "./component-HighwayLiveAlarmNew-KR4OZB7F.mjs";
|
|
6
6
|
import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
7
7
|
import { Fragment as Qe, Text as $e, computed as A, createApp as et, createBlock as tt, createCommentVNode as nt, createElementBlock as j, createElementVNode as M, createTextVNode as rt, createVNode as N, defineComponent as it, getCurrentInstance as at, h as ot, inject as st, markRaw as ct, mergeProps as lt, nextTick as ut, normalizeClass as P, normalizeStyle as dt, onMounted as ft, openBlock as F, provide as pt, reactive as mt, ref as ht, renderList as gt, renderSlot as _t, resolveDynamicComponent as vt, shallowRef as yt, toDisplayString as I, toRef as bt, unref as L, useAttrs as xt, useSlots as St, vShow as Ct, watch as wt, watchEffect as Tt, withCtx as Et, withDirectives as R, withKeys as Dt, withModifiers as Ot } from "vue";
|
|
8
8
|
//#region node_modules/lodash-es/now.js
|
package/dist/chunks/{component-RadarShortTerm-spO4BGj9.mjs → component-RadarShortTerm-Dxq3c_j-.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
2
|
import { A as e, S as t, j as n, m as r } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
3
|
import { a as i, n as a, r as o } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
|
-
import "./component-ImageGeneration-
|
|
5
|
-
import { n as
|
|
6
|
-
import { n as
|
|
7
|
-
import { Fragment as
|
|
4
|
+
import "./component-ImageGeneration-Ch_ajmOP.mjs";
|
|
5
|
+
import { n as s } from "./component-HighwayLiveAlarmNew-KR4OZB7F.mjs";
|
|
6
|
+
import { n as c } from "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
7
|
+
import { Fragment as l, computed as u, createBlock as ee, createCommentVNode as te, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, nextTick as ne, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as re, onMounted as ie, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, vShow as C, watch as w, withCtx as T, withDirectives as E } from "vue";
|
|
8
8
|
//#region src/components/RadarShortTerm/RadarShortTerm.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var ae = {
|
|
10
10
|
class: "RadarShortTerm",
|
|
@@ -40,21 +40,23 @@ var ae = {
|
|
|
40
40
|
},
|
|
41
41
|
emits: [
|
|
42
42
|
"close",
|
|
43
|
-
"addImage",
|
|
44
|
-
"clearImg",
|
|
45
43
|
"addDataTitle",
|
|
46
44
|
"removeDataTitle",
|
|
47
45
|
"showRadarLegend",
|
|
48
|
-
"toMapView"
|
|
46
|
+
"toMapView",
|
|
47
|
+
"addImageAniArr",
|
|
48
|
+
"clearImgAniArr",
|
|
49
|
+
"setImgAniShowByIndex",
|
|
50
|
+
"changeLoading"
|
|
49
51
|
],
|
|
50
52
|
setup(a, { emit: h }) {
|
|
51
|
-
let D = a, O = h, k = y(!0), A = y(!1), j = y(0), M = y(null), N = y([]), P = y({}), F = y({}), I = y({}), L = y(""), R = y(null), z = y(!0), B = y(null), V = y({
|
|
53
|
+
let D = a, O = h, k = y(!0), A = y(!1), j = y(0), M = y(null), N = y([]), P = y({}), F = y({}), I = y({}), L = y(""), R = y(null), z = y(!0), B = y(null), V = y(!0), H = y(null), U = y({
|
|
52
54
|
httpurl: "",
|
|
53
55
|
lngStart: void 0,
|
|
54
56
|
latStart: void 0,
|
|
55
57
|
lngEnd: void 0,
|
|
56
58
|
latEnd: void 0
|
|
57
|
-
}),
|
|
59
|
+
}), W = y({
|
|
58
60
|
httpurl: "",
|
|
59
61
|
lngStart: void 0,
|
|
60
62
|
latStart: void 0,
|
|
@@ -62,14 +64,14 @@ var ae = {
|
|
|
62
64
|
latEnd: void 0
|
|
63
65
|
});
|
|
64
66
|
ie(() => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
G(), B.value = setInterval(() => {
|
|
68
|
+
G();
|
|
67
69
|
}, 1e3 * 60 * 10);
|
|
68
70
|
}), re(() => {
|
|
69
71
|
Q(), clearInterval(B.value), B.value = null;
|
|
70
72
|
});
|
|
71
|
-
let
|
|
72
|
-
z.value = !0, await
|
|
73
|
+
let G = async () => {
|
|
74
|
+
z.value = !0, await K(), N.value = (await De()).map((e) => {
|
|
73
75
|
let t = Ae(e), n = je(e.zhflds || []);
|
|
74
76
|
return {
|
|
75
77
|
name: e.name,
|
|
@@ -77,7 +79,7 @@ var ae = {
|
|
|
77
79
|
piles: n
|
|
78
80
|
};
|
|
79
81
|
}), ke(), z.value = !1;
|
|
80
|
-
},
|
|
82
|
+
}, K = async () => {
|
|
81
83
|
z.value = !0;
|
|
82
84
|
let e = await o({
|
|
83
85
|
appKey: D.appKey,
|
|
@@ -99,11 +101,11 @@ var ae = {
|
|
|
99
101
|
isFormData: D.ids.historyRadar.isFormData
|
|
100
102
|
});
|
|
101
103
|
console.log("历史雷达", t.data.result), z.value = !1;
|
|
102
|
-
let n =
|
|
103
|
-
|
|
104
|
+
let n = q(e.data.result), r = q(t.data.result);
|
|
105
|
+
U.value = {
|
|
104
106
|
httpurl: n.httpurl,
|
|
105
107
|
...n.extent
|
|
106
|
-
},
|
|
108
|
+
}, W.value = {
|
|
107
109
|
httpurl: r.httpurl,
|
|
108
110
|
...r.extent
|
|
109
111
|
};
|
|
@@ -118,14 +120,19 @@ var ae = {
|
|
|
118
120
|
_isHistory: !1,
|
|
119
121
|
_label: `+${t + 1}`,
|
|
120
122
|
_httpurl: n.httpurl || ""
|
|
121
|
-
}));
|
|
123
|
+
})), s = [...i, ...a];
|
|
122
124
|
I.value = {
|
|
123
|
-
ds:
|
|
125
|
+
ds: s,
|
|
124
126
|
httpurl: n.httpurl,
|
|
125
127
|
...r.extent
|
|
126
|
-
}, j.value = 2, k.value &&
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
}, j.value = 2, k.value && (O("clearImgAniArr"), s.forEach((e) => {
|
|
129
|
+
let t = Fe(e);
|
|
130
|
+
t && O("addImageAniArr", { data: { imgArr: [t] } });
|
|
131
|
+
}), setTimeout(() => {
|
|
132
|
+
O("setImgAniShowByIndex", { index: j.value });
|
|
133
|
+
let e = s[j.value];
|
|
134
|
+
Ie(e), O("showRadarLegend", !0);
|
|
135
|
+
}, 1e3));
|
|
129
136
|
}, De = async () => {
|
|
130
137
|
let e = await o({
|
|
131
138
|
appKey: D.appKey,
|
|
@@ -145,7 +152,7 @@ var ae = {
|
|
|
145
152
|
lngStart: t[2],
|
|
146
153
|
lngEnd: t[3]
|
|
147
154
|
};
|
|
148
|
-
},
|
|
155
|
+
}, q = (e) => {
|
|
149
156
|
let t = Array.isArray(e?.ds) ? e : e?.ds, n = Array.isArray(t?.ds) ? t.ds : [];
|
|
150
157
|
n = [...n].reverse();
|
|
151
158
|
let r = Oe(n[0]?.extendstr || ""), i = t?.httpUrl || t?.httpurl || "";
|
|
@@ -154,11 +161,11 @@ var ae = {
|
|
|
154
161
|
httpurl: i,
|
|
155
162
|
extent: r
|
|
156
163
|
};
|
|
157
|
-
},
|
|
164
|
+
}, J = u(() => Ne(N.value, (e) => Z(e.tags))), Y = u(() => I.value?.ds || []), X = u(() => Y.value.map((e) => {
|
|
158
165
|
let t = new Date(e.focarcast_time);
|
|
159
166
|
return `${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
|
|
160
167
|
})), ke = () => {
|
|
161
|
-
let e =
|
|
168
|
+
let e = J.value.find((e) => Z(e.tags)), t = {}, n = {};
|
|
162
169
|
e && (t[e.name] = !0, n[e.name] = !0), P.value = t, F.value = n;
|
|
163
170
|
}, Ae = (e) => {
|
|
164
171
|
let t = e.zhflds || [];
|
|
@@ -188,9 +195,9 @@ var ae = {
|
|
|
188
195
|
label: "未来R3h",
|
|
189
196
|
warn: e.iswarnpre3h === 1
|
|
190
197
|
}
|
|
191
|
-
],
|
|
198
|
+
], Z = (e) => e.some((e) => e.warn), Ne = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Pe = (e) => e.filter((e) => e.isWarn).length, Fe = (e) => {
|
|
192
199
|
if (!e) return null;
|
|
193
|
-
let t = e._isHistory ?
|
|
200
|
+
let t = e._isHistory ? W.value : U.value, n = String(e?._httpurl || t.httpurl || ""), r = String(e?.file_name || "");
|
|
194
201
|
return {
|
|
195
202
|
alt: "",
|
|
196
203
|
imgUrl: r.startsWith("http") ? r : `${n}${r.replace(/^\/+/, "")}`,
|
|
@@ -202,29 +209,29 @@ var ae = {
|
|
|
202
209
|
zIndex: 1e3,
|
|
203
210
|
otherData: { imgId: "radar_RadarShortTerm" }
|
|
204
211
|
};
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
212
|
+
}, Ie = (e) => {
|
|
213
|
+
L.value && O("removeDataTitle", L.value), L.value = "雷达观测时间:" + c(e.focarcast_time).format("YYYY-MM-DD HH:mm "), O("addDataTitle", L.value);
|
|
214
|
+
}, Le = (e) => {
|
|
215
|
+
O("setImgAniShowByIndex", { index: e });
|
|
216
|
+
let t = Y.value[e];
|
|
217
|
+
Ie(t);
|
|
211
218
|
}, Q = () => {
|
|
212
219
|
M.value &&= (clearInterval(M.value), null);
|
|
213
220
|
}, $ = () => {
|
|
214
221
|
A.value = !1, Q();
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
j.value = (j.value + 1) %
|
|
222
|
+
}, Re = () => {
|
|
223
|
+
X.value.length <= 1 || (A.value = !0, Q(), V.value && (H.value = j.value, O("changeLoading", !0)), M.value = setInterval(() => {
|
|
224
|
+
j.value = (j.value + 1) % X.value.length;
|
|
218
225
|
}, 1e3));
|
|
219
|
-
},
|
|
226
|
+
}, ze = () => {
|
|
220
227
|
if (A.value) {
|
|
221
228
|
$();
|
|
222
229
|
return;
|
|
223
230
|
}
|
|
224
|
-
|
|
231
|
+
Re();
|
|
225
232
|
};
|
|
226
233
|
w(j, (e) => {
|
|
227
|
-
|
|
234
|
+
Le(e), V.value && H.value !== null && e === H.value && (V.value = !1, H.value = null, O("changeLoading", !1));
|
|
228
235
|
}), w(j, () => {
|
|
229
236
|
ne(() => {
|
|
230
237
|
let e = R.value;
|
|
@@ -237,22 +244,22 @@ var ae = {
|
|
|
237
244
|
});
|
|
238
245
|
});
|
|
239
246
|
});
|
|
240
|
-
let
|
|
247
|
+
let Be = () => {
|
|
241
248
|
$();
|
|
242
|
-
},
|
|
249
|
+
}, Ve = async () => {
|
|
243
250
|
if (!k.value) {
|
|
244
|
-
O("
|
|
251
|
+
O("clearImgAniArr"), O("removeDataTitle", L.value), O("showRadarLegend", !1), $();
|
|
245
252
|
return;
|
|
246
253
|
}
|
|
247
|
-
z.value = !0, await
|
|
248
|
-
},
|
|
254
|
+
z.value = !0, await K(), z.value = !1;
|
|
255
|
+
}, He = (e) => {
|
|
249
256
|
let t = !!P.value[e];
|
|
250
257
|
P.value[e] = !t, t || (F.value[e] = !0);
|
|
251
|
-
},
|
|
258
|
+
}, Ue = (e) => {
|
|
252
259
|
F.value[e] = !F.value[e];
|
|
253
|
-
},
|
|
260
|
+
}, We = () => {
|
|
254
261
|
O("close", "RadarShortTerm");
|
|
255
|
-
},
|
|
262
|
+
}, Ge = (e) => {
|
|
256
263
|
O("toMapView", {
|
|
257
264
|
lng: Number(e.x),
|
|
258
265
|
lat: Number(e.y),
|
|
@@ -260,22 +267,22 @@ var ae = {
|
|
|
260
267
|
});
|
|
261
268
|
};
|
|
262
269
|
return (a, o) => {
|
|
263
|
-
let
|
|
270
|
+
let c = s, u = r, h = i;
|
|
264
271
|
return E((v(), d("div", ae, [
|
|
265
272
|
f("div", { class: "RadarShortTerm-head" }, [f("div", { class: "RadarShortTerm-head-top" }, [o[1] ||= f("div", null, "雷达短临预报", -1), f("div", { class: "head-actions" }, [f("div", {
|
|
266
273
|
class: "closeBtn",
|
|
267
|
-
onClick:
|
|
274
|
+
onClick: We,
|
|
268
275
|
title: "关闭"
|
|
269
276
|
})])]), o[2] ||= f("img", {
|
|
270
277
|
class: "RadarShortTerm-head-line",
|
|
271
278
|
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",
|
|
272
279
|
alt: ""
|
|
273
280
|
}, null, -1)]),
|
|
274
|
-
f("div", oe, [f("div", se, [f("div", ce, [o[4] ||= f("span", { class: "setting-label" }, "雷达展示:", -1), f("div", le, [m(
|
|
281
|
+
f("div", oe, [f("div", se, [f("div", ce, [o[4] ||= f("span", { class: "setting-label" }, "雷达展示:", -1), f("div", le, [m(c, {
|
|
275
282
|
modelValue: k.value,
|
|
276
283
|
"onUpdate:modelValue": o[0] ||= (e) => k.value = e,
|
|
277
284
|
class: "pile-checkbox",
|
|
278
|
-
onChange:
|
|
285
|
+
onChange: Ve
|
|
279
286
|
}, {
|
|
280
287
|
default: T(() => [...o[3] ||= [p(" 显示 ", -1)]]),
|
|
281
288
|
_: 1
|
|
@@ -284,31 +291,31 @@ var ae = {
|
|
|
284
291
|
f("span", null, "高速名称"),
|
|
285
292
|
f("span", null, "状态要素"),
|
|
286
293
|
f("span", { class: "head-arrow" })
|
|
287
|
-
], -1), f("div", de, [(v(!0), d(
|
|
294
|
+
], -1), f("div", de, [(v(!0), d(l, null, b(J.value, (e) => (v(), d("div", {
|
|
288
295
|
class: "table-row",
|
|
289
296
|
key: e.name
|
|
290
297
|
}, [
|
|
291
298
|
f("div", {
|
|
292
299
|
class: "table-row-main",
|
|
293
|
-
onClick: (t) =>
|
|
300
|
+
onClick: (t) => He(e.name)
|
|
294
301
|
}, [
|
|
295
302
|
f("span", pe, x(e.name), 1),
|
|
296
|
-
f("div", { class: g(["status-tags", { "has-warn":
|
|
303
|
+
f("div", { class: g(["status-tags", { "has-warn": Z(e.tags) }]) }, [(v(!0), d(l, null, b(e.tags, (t) => (v(), d("span", {
|
|
297
304
|
class: g(["status-tag", { warn: t.warn }]),
|
|
298
305
|
key: `${e.name}-${t.label}`
|
|
299
306
|
}, [f("span", null, x(t.label), 1)], 2))), 128))], 2),
|
|
300
307
|
f("span", {
|
|
301
308
|
class: g(["expand-arrow", { expanded: P.value[e.name] }]),
|
|
302
309
|
"aria-hidden": "true"
|
|
303
|
-
}, [m(
|
|
310
|
+
}, [m(u, null, {
|
|
304
311
|
default: T(() => [m(S(t))]),
|
|
305
312
|
_: 1
|
|
306
313
|
})], 2)
|
|
307
314
|
], 8, fe),
|
|
308
315
|
E(f("div", {
|
|
309
316
|
class: "pile-title",
|
|
310
|
-
onClick: (t) =>
|
|
311
|
-
}, [f("span", null, [o[5] ||= p(" 桩号数据 ", -1),
|
|
317
|
+
onClick: (t) => Ue(e.name)
|
|
318
|
+
}, [f("span", null, [o[5] ||= p(" 桩号数据 ", -1), Pe(e.piles) > 0 ? (v(), d("span", he, " (报警数量:" + x(Pe(e.piles)) + "个)", 1)) : te("", !0)]), f("span", { class: g(["panel-arrow", { expanded: F.value[e.name] }]) }, [m(u, null, {
|
|
312
319
|
default: T(() => [m(S(t))]),
|
|
313
320
|
_: 1
|
|
314
321
|
})], 2)], 8, me), [[C, P.value[e.name]]]),
|
|
@@ -317,10 +324,10 @@ var ae = {
|
|
|
317
324
|
f("span", null, "未来R1h"),
|
|
318
325
|
f("span", null, "未来R2h"),
|
|
319
326
|
f("span", null, "未来R3h")
|
|
320
|
-
], -1), e.piles.length ? (v(), d("div", _e, [(v(!0), d(
|
|
327
|
+
], -1), e.piles.length ? (v(), d("div", _e, [(v(!0), d(l, null, b(e.piles, (e) => (v(), d("div", {
|
|
321
328
|
class: g(["pile-row", { "is-warn": e.isWarn }]),
|
|
322
329
|
key: e.pileNo,
|
|
323
|
-
onClick: (t) =>
|
|
330
|
+
onClick: (t) => Ge(e)
|
|
324
331
|
}, [
|
|
325
332
|
f("span", null, x(e.pileNo), 1),
|
|
326
333
|
f("span", null, x(e.rain1h), 1),
|
|
@@ -332,29 +339,29 @@ var ae = {
|
|
|
332
339
|
type: "button",
|
|
333
340
|
class: "timeline-play-btn",
|
|
334
341
|
title: A.value ? "暂停" : "播放",
|
|
335
|
-
onClick:
|
|
336
|
-
}, [m(
|
|
337
|
-
default: T(() => [A.value ? (v(),
|
|
342
|
+
onClick: ze
|
|
343
|
+
}, [m(u, null, {
|
|
344
|
+
default: T(() => [A.value ? (v(), ee(S(e), { key: 0 })) : (v(), ee(S(n), { key: 1 }))]),
|
|
338
345
|
_: 1
|
|
339
|
-
})], 8, xe), f("div", Se, [f("span", Ce, x(
|
|
346
|
+
})], 8, xe), f("div", Se, [f("span", Ce, x(X.value[j.value] || ""), 1), f("div", {
|
|
340
347
|
class: "radarAxis",
|
|
341
348
|
ref_key: "ref_radarAxis",
|
|
342
349
|
ref: R
|
|
343
|
-
}, [(v(!0), d(
|
|
350
|
+
}, [(v(!0), d(l, null, b(Y.value, (e, t) => (v(), d("div", we, [f("div", {
|
|
344
351
|
class: "radarAxis-li-node",
|
|
345
|
-
onClick: (e) => (j.value = Number(t),
|
|
352
|
+
onClick: (e) => (j.value = Number(t), Be())
|
|
346
353
|
}, [
|
|
347
354
|
f("i", { style: _({ backgroundColor: e._isHistory ? "" : "#ca9e64" }) }, null, 4),
|
|
348
355
|
E(f("span", null, [...o[8] ||= [f("i", null, null, -1)]], 512), [[C, t === j.value]]),
|
|
349
356
|
f("div", Ee, [f("b", null, x(e._label), 1)])
|
|
350
|
-
], 8, Te), (v(), d(
|
|
357
|
+
], 8, Te), (v(), d(l, null, b(4, (n) => E(f("div", {
|
|
351
358
|
class: "radarAxis-li-point",
|
|
352
359
|
key: n,
|
|
353
360
|
style: _({ backgroundColor: e._isHistory ? "" : "#ca9e64" })
|
|
354
|
-
}, null, 4), [[C, t !==
|
|
361
|
+
}, null, 4), [[C, t !== Y.value.length - 1]])), 64))]))), 256))], 512)])], 512), [[C, k.value]])
|
|
355
362
|
])), [[h, z.value]]);
|
|
356
363
|
};
|
|
357
364
|
}
|
|
358
|
-
}), [["__scopeId", "data-v-
|
|
365
|
+
}), [["__scopeId", "data-v-1ee038a5"]]);
|
|
359
366
|
//#endregion
|
|
360
367
|
export { D as t };
|
|
@@ -2,7 +2,7 @@ import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
|
2
2
|
import { B as e, H as t, N as n, P as r, U as i, V as a, et as o, h as s, m as c, o as l, s as u, y as d } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
3
|
import { C as f, D as p, E as m, Lt as h, Mt as g, Nt as _, Tt as v, _ as y, b, c as ee, g as x, h as S, in as te, j as C, n as w, p as ne, un as T, v as E, w as D, x as O, y as k } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
4
|
import { a as A } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
|
|
5
|
-
import { n as re } from "./component-ImageGeneration-
|
|
5
|
+
import { n as re } from "./component-ImageGeneration-Ch_ajmOP.mjs";
|
|
6
6
|
import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
7
7
|
import { Fragment as j, Transition as M, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createSlots as ie, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentInstance as ae, h as oe, inject as V, isRef as H, mergeProps as U, nextTick as se, normalizeClass as W, normalizeStyle as G, onBeforeUnmount as K, onMounted as q, onScopeDispose as ce, openBlock as J, provide as le, ref as Y, renderSlot as X, resolveDynamicComponent as ue, toDisplayString as de, unref as Z, useSlots as fe, vShow as pe, watch as Q, watchEffect as me, withCtx as $, withDirectives as he } from "vue";
|
|
8
8
|
//#region node_modules/element-plus/es/hooks/use-draggable/index.mjs
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
+
import { a as e, n as t, r as n } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
3
|
+
import { A as r, C as i, D as a, E as ee, M as o, N as s, O as c, P as te, S as ne, T as re, _ as ie, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, j as _, k as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, u as E, v as D, w as O, x as k, y as A } from "./component-HighwayWeatherForecast-Dn6tjaR-.mjs";
|
|
4
|
+
import { n as j } from "./component-LithiumBatteryMiningArea-Dj1DMKuU.mjs";
|
|
5
|
+
import { Fragment as M, createElementBlock as N, createElementVNode as P, defineComponent as F, getCurrentInstance as I, onMounted as L, openBlock as R, ref as z, renderList as B, toDisplayString as V, withDirectives as H } from "vue";
|
|
6
|
+
//#region src/components/WeatherForecast/WeatherForecast.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var U = {
|
|
8
|
+
class: "WeatherForecast",
|
|
9
|
+
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
10
|
+
}, W = { class: "WeatherForecast__head" }, G = { class: "WeatherForecast__head-top" }, K = { class: "WeatherForecast__body" }, q = { class: "WeatherForecast__wrap" }, J = ["src", "alt"], Y = /* @__PURE__ */ t(/* @__PURE__ */ F({
|
|
11
|
+
__name: "WeatherForecast",
|
|
12
|
+
props: {
|
|
13
|
+
appKey: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
appSalt: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
baseHttp: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
ids: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
},
|
|
29
|
+
title: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "天气预报"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["close"],
|
|
35
|
+
setup(t, { emit: F }) {
|
|
36
|
+
let Y = I()?.appContext.config.globalProperties.$bus, X = t, ae = F, Z = z(!1), Q = z([]), $ = z({});
|
|
37
|
+
z([
|
|
38
|
+
{
|
|
39
|
+
name: "阿克苏市",
|
|
40
|
+
value: "aksu",
|
|
41
|
+
longitude: "80.2651",
|
|
42
|
+
latitude: "41.1707"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "库车市",
|
|
46
|
+
value: "kuche",
|
|
47
|
+
longitude: "82.9989",
|
|
48
|
+
latitude: "41.7160"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "拜城县",
|
|
52
|
+
value: "baicheng",
|
|
53
|
+
longitude: "81.8670",
|
|
54
|
+
latitude: "41.7860"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "新和县",
|
|
58
|
+
value: "xinhe",
|
|
59
|
+
longitude: "82.6100",
|
|
60
|
+
latitude: "41.5490"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "沙雅县",
|
|
64
|
+
value: "shaya",
|
|
65
|
+
longitude: "82.7800",
|
|
66
|
+
latitude: "41.2200"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "温宿县",
|
|
70
|
+
value: "wensu",
|
|
71
|
+
longitude: "80.3000",
|
|
72
|
+
latitude: "41.1600"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "乌什县",
|
|
76
|
+
value: "wushi",
|
|
77
|
+
longitude: "79.2300",
|
|
78
|
+
latitude: "41.2100"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "柯坪县",
|
|
82
|
+
value: "keping",
|
|
83
|
+
longitude: "79.0200",
|
|
84
|
+
latitude: "40.5000"
|
|
85
|
+
}
|
|
86
|
+
]), z(null);
|
|
87
|
+
let oe = z(!1);
|
|
88
|
+
L(() => {
|
|
89
|
+
Y?.on("toComponent", (e) => {
|
|
90
|
+
e.componentName === "WeatherForecast" && ($.value = e.data, se());
|
|
91
|
+
});
|
|
92
|
+
}), document.addEventListener("click", (e) => {
|
|
93
|
+
e.target.closest(".WeatherForecast__area-select") || (oe.value = !1);
|
|
94
|
+
});
|
|
95
|
+
let se = async () => {
|
|
96
|
+
await le();
|
|
97
|
+
}, ce = () => {
|
|
98
|
+
ae("close", "WeatherForecast");
|
|
99
|
+
}, le = async () => {
|
|
100
|
+
Z.value = !0;
|
|
101
|
+
let e = {
|
|
102
|
+
lon: $.value.longitude,
|
|
103
|
+
lat: $.value.latitude,
|
|
104
|
+
hours: 168
|
|
105
|
+
}, t = await n({
|
|
106
|
+
appKey: X.appKey,
|
|
107
|
+
appSalt: X.appSalt,
|
|
108
|
+
id: X.ids.data.id,
|
|
109
|
+
variables: { str: j.encode(JSON.stringify(e)) },
|
|
110
|
+
baseHttp: X.baseHttp,
|
|
111
|
+
reqType: X.ids.data.reqType,
|
|
112
|
+
isFormData: X.ids.data.isFormData
|
|
113
|
+
});
|
|
114
|
+
Z.value = !1;
|
|
115
|
+
let M = t.data?.result?.output;
|
|
116
|
+
if (!M) {
|
|
117
|
+
console.warn("天气预报接口返回为空", t), Q.value = [];
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
let N = (typeof M == "string" ? JSON.parse(M) : M).ds;
|
|
121
|
+
if (!Array.isArray(N) || N.length === 0) {
|
|
122
|
+
Q.value = [];
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
let P = [
|
|
126
|
+
"日",
|
|
127
|
+
"一",
|
|
128
|
+
"二",
|
|
129
|
+
"三",
|
|
130
|
+
"四",
|
|
131
|
+
"五",
|
|
132
|
+
"六"
|
|
133
|
+
];
|
|
134
|
+
Q.value = N.map((e, t) => {
|
|
135
|
+
let n = new Date(e.observation_time.replace(/\//g, "-"));
|
|
136
|
+
n.setDate(n.getDate() + t);
|
|
137
|
+
let j = `${n.getMonth() + 1}`.padStart(2, "0"), M = `${n.getDate()}`.padStart(2, "0");
|
|
138
|
+
return {
|
|
139
|
+
...e,
|
|
140
|
+
_date: `${j}-${M}`,
|
|
141
|
+
_week: `周${P[n.getDay()]}`,
|
|
142
|
+
_icon: new URL((/* @__PURE__ */ Object.assign({
|
|
143
|
+
"../../assets/img/weatherIcon/0.gif": te,
|
|
144
|
+
"../../assets/img/weatherIcon/1.gif": s,
|
|
145
|
+
"../../assets/img/weatherIcon/10.gif": o,
|
|
146
|
+
"../../assets/img/weatherIcon/11.gif": _,
|
|
147
|
+
"../../assets/img/weatherIcon/12.gif": r,
|
|
148
|
+
"../../assets/img/weatherIcon/13.gif": v,
|
|
149
|
+
"../../assets/img/weatherIcon/14.gif": c,
|
|
150
|
+
"../../assets/img/weatherIcon/15.gif": a,
|
|
151
|
+
"../../assets/img/weatherIcon/16.gif": ee,
|
|
152
|
+
"../../assets/img/weatherIcon/17.gif": re,
|
|
153
|
+
"../../assets/img/weatherIcon/18.gif": O,
|
|
154
|
+
"../../assets/img/weatherIcon/19.gif": i,
|
|
155
|
+
"../../assets/img/weatherIcon/2.gif": ne,
|
|
156
|
+
"../../assets/img/weatherIcon/20.gif": k,
|
|
157
|
+
"../../assets/img/weatherIcon/21.gif": u,
|
|
158
|
+
"../../assets/img/weatherIcon/22.gif": A,
|
|
159
|
+
"../../assets/img/weatherIcon/23.gif": D,
|
|
160
|
+
"../../assets/img/weatherIcon/24.gif": ie,
|
|
161
|
+
"../../assets/img/weatherIcon/25.gif": m,
|
|
162
|
+
"../../assets/img/weatherIcon/26.gif": h,
|
|
163
|
+
"../../assets/img/weatherIcon/27.gif": b,
|
|
164
|
+
"../../assets/img/weatherIcon/28.gif": C,
|
|
165
|
+
"../../assets/img/weatherIcon/29.gif": p,
|
|
166
|
+
"../../assets/img/weatherIcon/3.gif": f,
|
|
167
|
+
"../../assets/img/weatherIcon/30.gif": E,
|
|
168
|
+
"../../assets/img/weatherIcon/31.gif": y,
|
|
169
|
+
"../../assets/img/weatherIcon/4.gif": d,
|
|
170
|
+
"../../assets/img/weatherIcon/5.gif": T,
|
|
171
|
+
"../../assets/img/weatherIcon/53.gif": S,
|
|
172
|
+
"../../assets/img/weatherIcon/6.gif": l,
|
|
173
|
+
"../../assets/img/weatherIcon/7.gif": g,
|
|
174
|
+
"../../assets/img/weatherIcon/8.gif": w,
|
|
175
|
+
"../../assets/img/weatherIcon/9.gif": x
|
|
176
|
+
}))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
|
|
177
|
+
};
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
return (n, r) => {
|
|
181
|
+
let i = e;
|
|
182
|
+
return H((R(), N("div", U, [P("div", W, [P("div", G, [P("div", null, V(t.title), 1), P("div", {
|
|
183
|
+
class: "closeBtn",
|
|
184
|
+
onClick: ce,
|
|
185
|
+
title: "关闭"
|
|
186
|
+
})]), r[0] ||= P("img", {
|
|
187
|
+
class: "WeatherForecast__head-line",
|
|
188
|
+
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",
|
|
189
|
+
alt: ""
|
|
190
|
+
}, null, -1)]), P("div", K, [P("div", q, [(R(!0), N(M, null, B(Q.value, (e) => (R(), N("div", {
|
|
191
|
+
class: "WeatherForecast__item",
|
|
192
|
+
key: `${e.observation_time}-${e.hour}`
|
|
193
|
+
}, [
|
|
194
|
+
P("div", null, V(e._date), 1),
|
|
195
|
+
P("div", null, V(e._week), 1),
|
|
196
|
+
P("img", {
|
|
197
|
+
src: e._icon,
|
|
198
|
+
alt: e.weather
|
|
199
|
+
}, null, 8, J),
|
|
200
|
+
P("div", null, V(e.weather), 1),
|
|
201
|
+
P("div", null, V(e.temp_low) + "~" + V(e.temp_high) + "℃", 1),
|
|
202
|
+
P("div", null, V(e.wind_directinfo), 1),
|
|
203
|
+
P("div", null, V(e.wind_speedinfo === null || Number(e.wind_speedinfo) < 3 ? "<3级" : `${e.wind_speedinfo}级`), 1)
|
|
204
|
+
]))), 128))])])])), [[i, Z.value]]);
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
}), [["__scopeId", "data-v-a730bcd5"]]);
|
|
208
|
+
//#endregion
|
|
209
|
+
export { Y as t };
|