nxd-plugin 1.7.43 → 1.7.45
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-AqiMonitor-TeQstcwX.mjs → component-AqiMonitor-n1rMcUkd.mjs} +322 -1911
- package/dist/chunks/{component-HighWayEarlyWarningRed-DUSkc5Gq.mjs → component-HighWayEarlyWarningRed-BnJyShce.mjs} +18 -16
- package/dist/chunks/component-HighWayFreeze-ByxdEM06.mjs +181 -0
- package/dist/chunks/{component-HighwayLiveAlarm-niFJdKW9.mjs → component-HighwayLiveAlarm-D_lIKhkC.mjs} +10150 -10668
- package/dist/chunks/{component-HighwayLiveAlarmNew-B-434mfg.mjs → component-HighwayLiveAlarmNew-DbEuUJW6.mjs} +243 -650
- package/dist/chunks/component-HighwayStations-Cmjb6MHu.mjs +218 -0
- package/dist/chunks/{component-HighwayWeatherForecast-81Gh4M5v.mjs → component-HighwayWeatherForecast-ByPDymqX.mjs} +159 -158
- package/dist/chunks/{component-ImageGeneration-DiYbqjwN.mjs → component-ImageGeneration-SPM2CN6K.mjs} +5071 -7620
- package/dist/chunks/{component-LithiumBatteryMiningArea-BD-Yp6C8.mjs → component-LithiumBatteryMiningArea-C1KfrHaF.mjs} +51 -48
- package/dist/chunks/{component-MapPopup-FAIPuiTd.mjs → component-MapPopup-B2f0tnVu.mjs} +1 -1
- package/dist/chunks/{component-PieLegend-DMyswbHi.mjs → component-PieLegend-w1YvpVaB.mjs} +1 -1
- package/dist/chunks/{component-RadarChart-BQiq16nx.mjs → component-RadarChart-Dnjp4cbb.mjs} +11 -11
- package/dist/chunks/{component-RadarLegend-CFR9njq7.mjs → component-RadarLegend-Coihcxje.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-BVj7Jx05.mjs → component-RadarShortTerm-BlI00kHC.mjs} +75 -75
- package/dist/chunks/{component-RadarTime-Xnv8piO_.mjs → component-RadarTime-BnWNJDq1.mjs} +14 -14
- package/dist/chunks/{component-ServiceMaterial-NQJP1tCA.mjs → component-ServiceMaterial-trvjXwHN.mjs} +1 -1
- package/dist/chunks/{component-ServiceMaterialsBtn-959d5IJI.mjs → component-ServiceMaterialsBtn-C1ud7xtc.mjs} +34 -556
- package/dist/chunks/{component-TimeBasedForecast-BZ9YrmMt.mjs → component-TimeBasedForecast-DR7FkXAn.mjs} +69 -68
- package/dist/chunks/{component-WarningLine-DzD4jX2_.mjs → component-WarningLine-CWqiXdhZ.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-DfRZj6R5.mjs → component-WarningSignal-CtyCcjNo.mjs} +75 -74
- package/dist/chunks/component-WeatherForecast-DTGpJVhm.mjs +209 -0
- package/dist/chunks/component-YCHome-DeLwwN9F.mjs +426 -0
- package/dist/chunks/{component-YCLogin-D0BOD7Uj.mjs → component-YCLogin-DtjB2mai.mjs} +12 -9
- package/dist/chunks/{component-YCLoginNew-BIC_obt4.mjs → component-YCLoginNew-DDPai-9U.mjs} +35 -32
- package/dist/nxd-plugin.mjs +26 -26
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-HighWayFreeze.css +1 -1
- package/dist/styles/component-HighwayLiveAlarm.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-HighwayStations.css +1 -1
- package/dist/styles/component-ImageGeneration.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-ServiceMaterialsBtn.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-HighWayFreeze-BmXHovFq.mjs +0 -4489
- package/dist/chunks/component-HighwayStations-Ds0mS1Tc.mjs +0 -32157
- package/dist/chunks/component-WeatherForecast-ChQEdik7.mjs +0 -209
- package/dist/chunks/component-YCHome-CY61OonH.mjs +0 -1430
- package/dist/components/HighwayStations/default.json.d.ts +0 -31945
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { n
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
1
|
+
import { n as e, r as t } from "./component-AqiMonitor-n1rMcUkd.mjs";
|
|
2
|
+
import { n } from "./component-HighwayLiveAlarm-D_lIKhkC.mjs";
|
|
3
|
+
import { A as r, C as i, D as a, E as o, M as s, N as c, O as l, P as u, S as d, T as f, _ as ee, a as te, b as ne, c as re, d as ie, f as p, g as m, h, i as g, j as _, k as v, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, u as fe, v as pe, w as me, x as he, y as ge } from "./component-HighwayWeatherForecast-ByPDymqX.mjs";
|
|
4
|
+
import { n as y } from "./component-LithiumBatteryMiningArea-C1KfrHaF.mjs";
|
|
5
|
+
import { ElLoadingDirective as b, ElOption as x, ElSelect as S } from "element-plus/es";
|
|
6
|
+
import { Fragment as C, createElementBlock as w, createElementVNode as T, createVNode as E, defineComponent as D, getCurrentInstance as O, nextTick as k, normalizeStyle as A, onBeforeUnmount as j, onMounted as M, openBlock as N, ref as P, renderList as F, toDisplayString as I, watch as L, withCtx as _e, withDirectives as R } from "vue";
|
|
7
|
+
import "element-plus/es/components/select/style/css";
|
|
8
|
+
import "element-plus/es/components/option/style/css";
|
|
8
9
|
//#region src/components/TimeBasedForecast/TimeBasedForecast.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
+
var ve = {
|
|
10
11
|
class: "TimeBasedForecast",
|
|
11
12
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
12
|
-
}, ye = { class: "TimeBasedForecast__meta" }, be = { class: "TimeBasedForecast__control" }, xe = { class: "TimeBasedForecast__time" }, Se = { class: "TimeBasedForecast__content" }, Ce = { class: "TimeBasedForecast__scroll" }, we = { class: "TimeBasedForecast__dates" }, Te = { class: "TimeBasedForecast__date" }, Ee = { class: "TimeBasedForecast__hour" }, De = { class: "TimeBasedForecast__chart" }, Oe = { class: "TimeBasedForecast__table" }, ke = { class: "TimeBasedForecast__row TimeBasedForecast__row--icon" }, Ae = ["src", "alt"], je = { class: "TimeBasedForecast__row" }, Me = { class: "TimeBasedForecast__row" }, Ne = { class: "TimeBasedForecast__row" }, Pe = 78, z = 112, B = /* @__PURE__ */
|
|
13
|
+
}, ye = { class: "TimeBasedForecast__meta" }, be = { class: "TimeBasedForecast__control" }, xe = { class: "TimeBasedForecast__time" }, Se = { class: "TimeBasedForecast__content" }, Ce = { class: "TimeBasedForecast__scroll" }, we = { class: "TimeBasedForecast__dates" }, Te = { class: "TimeBasedForecast__date" }, Ee = { class: "TimeBasedForecast__hour" }, De = { class: "TimeBasedForecast__chart" }, Oe = { class: "TimeBasedForecast__table" }, ke = { class: "TimeBasedForecast__row TimeBasedForecast__row--icon" }, Ae = ["src", "alt"], je = { class: "TimeBasedForecast__row" }, Me = { class: "TimeBasedForecast__row" }, Ne = { class: "TimeBasedForecast__row" }, Pe = 78, z = 112, B = /* @__PURE__ */ e(/* @__PURE__ */ D({
|
|
13
14
|
__name: "TimeBasedForecast",
|
|
14
15
|
props: {
|
|
15
16
|
appKey: {
|
|
@@ -30,8 +31,8 @@ var R = {
|
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
emits: ["close"],
|
|
33
|
-
setup(
|
|
34
|
-
let B = O()?.appContext.config.globalProperties.$bus, V =
|
|
34
|
+
setup(e, { emit: D }) {
|
|
35
|
+
let B = O()?.appContext.config.globalProperties.$bus, V = e, Fe = D, H = P(null), U = null, Ie = [
|
|
35
36
|
"24小时预报",
|
|
36
37
|
"48小时预报",
|
|
37
38
|
"72小时预报",
|
|
@@ -60,67 +61,67 @@ var R = {
|
|
|
60
61
|
lat: X.value.latitude,
|
|
61
62
|
hours: Number(W.value.replace("小时预报", "")),
|
|
62
63
|
unit_id: "3"
|
|
63
|
-
},
|
|
64
|
+
}, n = await t({
|
|
64
65
|
appKey: V.appKey,
|
|
65
66
|
appSalt: V.appSalt,
|
|
66
67
|
id: V.ids.data.id,
|
|
67
|
-
variables: { str:
|
|
68
|
+
variables: { str: y.encode(JSON.stringify(e)) },
|
|
68
69
|
baseHttp: V.baseHttp,
|
|
69
70
|
reqType: V.ids.data.reqType,
|
|
70
71
|
isFormData: V.ids.data.isFormData
|
|
71
72
|
});
|
|
72
73
|
Y.value = !1;
|
|
73
|
-
let
|
|
74
|
-
if (
|
|
75
|
-
let
|
|
76
|
-
G.value =
|
|
77
|
-
let t = String(e.observation_time || ""), n = "--日",
|
|
78
|
-
if (/^\d{12,14}$/.test(t)) n = `${t.slice(6, 8)}日`,
|
|
74
|
+
let b = JSON.parse(n.data.result.output);
|
|
75
|
+
if (b.ds[0].error) return;
|
|
76
|
+
let x = String(b?.ds?.[0]?.observation_time || "");
|
|
77
|
+
G.value = x ? `${x.slice(0, 4)}-${x.slice(4, 6)}-${x.slice(6, 8)} ${x.slice(8, 10)}时` : "", K.value = (Array.isArray(b?.ds) ? b.ds : []).map((e) => {
|
|
78
|
+
let t = String(e.observation_time || ""), n = "--日", y = "--:--";
|
|
79
|
+
if (/^\d{12,14}$/.test(t)) n = `${t.slice(6, 8)}日`, y = `${t.slice(8, 10)}:${t.slice(10, 12)}`;
|
|
79
80
|
else {
|
|
80
|
-
let [e = "",
|
|
81
|
-
n =
|
|
81
|
+
let [e = "", r = ""] = t.split(" "), i = e.includes("/") ? e.split("/") : e.split("-");
|
|
82
|
+
n = i[2] ? `${i[2]}日` : "--日", y = r.slice(0, 5) || "--:--";
|
|
82
83
|
}
|
|
83
|
-
let
|
|
84
|
+
let b = Number(e.temper), x = e.weatherPhenomenon ?? e.weather_code ?? 0, S = e.wind_grade ?? e.windGrade ?? "-", C = Number(S), w = Number.isFinite(C) && C < 3 ? "<3" : String(S);
|
|
84
85
|
return {
|
|
85
86
|
...e,
|
|
86
87
|
_date: n,
|
|
87
|
-
_time:
|
|
88
|
-
_temp: Number.isFinite(
|
|
88
|
+
_time: y,
|
|
89
|
+
_temp: Number.isFinite(b) ? b : 0,
|
|
89
90
|
_weatherIcon: new URL((/* @__PURE__ */ Object.assign({
|
|
90
|
-
"../../assets/img/weatherIcon/0.gif":
|
|
91
|
-
"../../assets/img/weatherIcon/1.gif":
|
|
92
|
-
"../../assets/img/weatherIcon/10.gif":
|
|
93
|
-
"../../assets/img/weatherIcon/11.gif":
|
|
94
|
-
"../../assets/img/weatherIcon/12.gif":
|
|
95
|
-
"../../assets/img/weatherIcon/13.gif":
|
|
96
|
-
"../../assets/img/weatherIcon/14.gif":
|
|
97
|
-
"../../assets/img/weatherIcon/15.gif":
|
|
98
|
-
"../../assets/img/weatherIcon/16.gif":
|
|
99
|
-
"../../assets/img/weatherIcon/17.gif":
|
|
100
|
-
"../../assets/img/weatherIcon/18.gif":
|
|
101
|
-
"../../assets/img/weatherIcon/19.gif":
|
|
102
|
-
"../../assets/img/weatherIcon/2.gif":
|
|
103
|
-
"../../assets/img/weatherIcon/20.gif":
|
|
104
|
-
"../../assets/img/weatherIcon/21.gif":
|
|
105
|
-
"../../assets/img/weatherIcon/22.gif":
|
|
106
|
-
"../../assets/img/weatherIcon/23.gif":
|
|
107
|
-
"../../assets/img/weatherIcon/24.gif":
|
|
108
|
-
"../../assets/img/weatherIcon/25.gif":
|
|
109
|
-
"../../assets/img/weatherIcon/26.gif":
|
|
110
|
-
"../../assets/img/weatherIcon/27.gif":
|
|
111
|
-
"../../assets/img/weatherIcon/28.gif":
|
|
112
|
-
"../../assets/img/weatherIcon/29.gif":
|
|
113
|
-
"../../assets/img/weatherIcon/3.gif":
|
|
114
|
-
"../../assets/img/weatherIcon/30.gif":
|
|
115
|
-
"../../assets/img/weatherIcon/31.gif":
|
|
116
|
-
"../../assets/img/weatherIcon/4.gif":
|
|
117
|
-
"../../assets/img/weatherIcon/5.gif":
|
|
118
|
-
"../../assets/img/weatherIcon/53.gif":
|
|
119
|
-
"../../assets/img/weatherIcon/6.gif":
|
|
120
|
-
"../../assets/img/weatherIcon/7.gif":
|
|
121
|
-
"../../assets/img/weatherIcon/8.gif":
|
|
122
|
-
"../../assets/img/weatherIcon/9.gif":
|
|
123
|
-
}))[`../../assets/img/weatherIcon/${
|
|
91
|
+
"../../assets/img/weatherIcon/0.gif": u,
|
|
92
|
+
"../../assets/img/weatherIcon/1.gif": c,
|
|
93
|
+
"../../assets/img/weatherIcon/10.gif": s,
|
|
94
|
+
"../../assets/img/weatherIcon/11.gif": _,
|
|
95
|
+
"../../assets/img/weatherIcon/12.gif": r,
|
|
96
|
+
"../../assets/img/weatherIcon/13.gif": v,
|
|
97
|
+
"../../assets/img/weatherIcon/14.gif": l,
|
|
98
|
+
"../../assets/img/weatherIcon/15.gif": a,
|
|
99
|
+
"../../assets/img/weatherIcon/16.gif": o,
|
|
100
|
+
"../../assets/img/weatherIcon/17.gif": f,
|
|
101
|
+
"../../assets/img/weatherIcon/18.gif": me,
|
|
102
|
+
"../../assets/img/weatherIcon/19.gif": i,
|
|
103
|
+
"../../assets/img/weatherIcon/2.gif": d,
|
|
104
|
+
"../../assets/img/weatherIcon/20.gif": he,
|
|
105
|
+
"../../assets/img/weatherIcon/21.gif": ne,
|
|
106
|
+
"../../assets/img/weatherIcon/22.gif": ge,
|
|
107
|
+
"../../assets/img/weatherIcon/23.gif": pe,
|
|
108
|
+
"../../assets/img/weatherIcon/24.gif": ee,
|
|
109
|
+
"../../assets/img/weatherIcon/25.gif": m,
|
|
110
|
+
"../../assets/img/weatherIcon/26.gif": h,
|
|
111
|
+
"../../assets/img/weatherIcon/27.gif": oe,
|
|
112
|
+
"../../assets/img/weatherIcon/28.gif": le,
|
|
113
|
+
"../../assets/img/weatherIcon/29.gif": p,
|
|
114
|
+
"../../assets/img/weatherIcon/3.gif": ie,
|
|
115
|
+
"../../assets/img/weatherIcon/30.gif": fe,
|
|
116
|
+
"../../assets/img/weatherIcon/31.gif": ae,
|
|
117
|
+
"../../assets/img/weatherIcon/4.gif": re,
|
|
118
|
+
"../../assets/img/weatherIcon/5.gif": de,
|
|
119
|
+
"../../assets/img/weatherIcon/53.gif": ce,
|
|
120
|
+
"../../assets/img/weatherIcon/6.gif": te,
|
|
121
|
+
"../../assets/img/weatherIcon/7.gif": g,
|
|
122
|
+
"../../assets/img/weatherIcon/8.gif": ue,
|
|
123
|
+
"../../assets/img/weatherIcon/9.gif": se
|
|
124
|
+
}))[`../../assets/img/weatherIcon/${x}.gif`], import.meta.url).href,
|
|
124
125
|
_windSpeed: `${w}级`
|
|
125
126
|
};
|
|
126
127
|
});
|
|
@@ -130,7 +131,7 @@ var R = {
|
|
|
130
131
|
await k(), H.value && (U ? U.resize({
|
|
131
132
|
width: J.value,
|
|
132
133
|
height: z
|
|
133
|
-
}) : U =
|
|
134
|
+
}) : U = n(H.value), U.setOption({
|
|
134
135
|
animation: !1,
|
|
135
136
|
grid: {
|
|
136
137
|
top: 30,
|
|
@@ -174,26 +175,26 @@ var R = {
|
|
|
174
175
|
}]
|
|
175
176
|
}));
|
|
176
177
|
};
|
|
177
|
-
return (
|
|
178
|
-
let
|
|
179
|
-
return
|
|
180
|
-
T("div", { class: "TimeBasedForecast__head" }, [T("div", { class: "TimeBasedForecast__head-top" }, [
|
|
178
|
+
return (e, t) => {
|
|
179
|
+
let n = x, r = S, i = b;
|
|
180
|
+
return R((N(), w("div", ve, [
|
|
181
|
+
T("div", { class: "TimeBasedForecast__head" }, [T("div", { class: "TimeBasedForecast__head-top" }, [t[1] ||= T("div", null, "分时段预报", -1), T("div", {
|
|
181
182
|
class: "closeBtn",
|
|
182
183
|
onClick: Re,
|
|
183
184
|
title: "关闭"
|
|
184
|
-
})]),
|
|
185
|
+
})]), t[2] ||= T("img", {
|
|
185
186
|
class: "TimeBasedForecast__head-line",
|
|
186
187
|
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",
|
|
187
188
|
alt: ""
|
|
188
189
|
}, null, -1)]),
|
|
189
|
-
T("div", ye, [T("div", be, [
|
|
190
|
+
T("div", ye, [T("div", be, [t[3] ||= T("span", { class: "TimeBasedForecast__label" }, "预报时效:", -1), E(r, {
|
|
190
191
|
modelValue: W.value,
|
|
191
|
-
"onUpdate:modelValue":
|
|
192
|
+
"onUpdate:modelValue": t[0] ||= (e) => W.value = e,
|
|
192
193
|
class: "dark-select",
|
|
193
194
|
"popper-class": "dark-select-popper",
|
|
194
195
|
onChange: Z
|
|
195
196
|
}, {
|
|
196
|
-
default: _e(() => [(N(), w(C, null, F(Ie, (e) => E(
|
|
197
|
+
default: _e(() => [(N(), w(C, null, F(Ie, (e) => E(n, {
|
|
197
198
|
key: e,
|
|
198
199
|
label: e,
|
|
199
200
|
value: e
|
|
@@ -240,7 +241,7 @@ var R = {
|
|
|
240
241
|
}, I(e._windSpeed), 1))), 128))])
|
|
241
242
|
])
|
|
242
243
|
], 4)])])
|
|
243
|
-
])), [[
|
|
244
|
+
])), [[i, Y.value]]);
|
|
244
245
|
};
|
|
245
246
|
}
|
|
246
247
|
}), [["__scopeId", "data-v-cfbdee52"]]);
|
package/dist/chunks/{component-WarningLine-DzD4jX2_.mjs → component-WarningLine-CWqiXdhZ.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "./component-AqiMonitor-
|
|
2
|
-
import { $ as t, A as n, B as r, C as ee, D as te, E as ne, F as re, G as ie, H as ae, I as oe, J as se, K as ce, L as le, M as ue, N as de, O as fe, P as pe, Q as me, R as he, S as ge, T as _e, U as ve, V as ye, W as be, X as xe, Y as Se, Z as Ce, _ as i, a, at as o, b as s, c, ct as l, d as u, dt as d, et as f, f as p, ft as m, g as h, h as g, i as _, it as v, j as y, k as b, l as x, lt as S, m as C, nt as w, o as T, ot as E, p as D, q as O, r as k, rt as A, s as we, st as Te, tt as Ee, u as De, ut as Oe, v as ke, w as Ae, x as je, y as Me, z as j } from "./component-HighWayEarlyWarningRed-
|
|
1
|
+
import { r as e } from "./component-AqiMonitor-n1rMcUkd.mjs";
|
|
2
|
+
import { $ as t, A as n, B as r, C as ee, D as te, E as ne, F as re, G as ie, H as ae, I as oe, J as se, K as ce, L as le, M as ue, N as de, O as fe, P as pe, Q as me, R as he, S as ge, T as _e, U as ve, V as ye, W as be, X as xe, Y as Se, Z as Ce, _ as i, a, at as o, b as s, c, ct as l, d as u, dt as d, et as f, f as p, ft as m, g as h, h as g, i as _, it as v, j as y, k as b, l as x, lt as S, m as C, nt as w, o as T, ot as E, p as D, q as O, r as k, rt as A, s as we, st as Te, tt as Ee, u as De, ut as Oe, v as ke, w as Ae, x as je, y as Me, z as j } from "./component-HighWayEarlyWarningRed-BnJyShce.mjs";
|
|
3
3
|
import { Fragment as M, Transition as N, computed as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createVNode as Ne, defineComponent as R, getCurrentInstance as Pe, normalizeStyle as Fe, onMounted as Ie, onUnmounted as Le, openBlock as z, ref as B, renderList as Re, toDisplayString as V, watch as ze, withCtx as Be } from "vue";
|
|
4
4
|
//#region src/components/WarningLine/WarningLine.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var Ve = { class: "WarningLine__content" }, He = { class: "WarningLine__scroll-container" }, Ue = ["src"], We = { class: "WarningLine__text" }, Ge = {
|
package/dist/chunks/{component-WarningSignal-DfRZj6R5.mjs → component-WarningSignal-CtyCcjNo.mjs}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, r as t } from "./component-AqiMonitor-n1rMcUkd.mjs";
|
|
2
|
+
import { $ as n, A as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as ee, O as te, P as ne, Q as re, R as ie, S as ae, T as oe, U as se, V as ce, W as le, X as ue, Y as de, Z as fe, _ as pe, a as me, at as he, b as ge, c as _e, ct as ve, d as ye, dt as be, et as xe, f as Se, ft as Ce, g as we, h as Te, i as Ee, it as g, j as _, k as v, l as y, lt as b, m as x, n as S, nt as C, o as w, ot as T, p as E, q as D, r as De, rt as Oe, s as ke, st as Ae, tt as je, u as Me, ut as Ne, v as Pe, w as Fe, x as Ie, y as Le, z as Re } from "./component-HighWayEarlyWarningRed-BnJyShce.mjs";
|
|
3
|
+
import { ElLoadingDirective as O } from "element-plus/es";
|
|
4
4
|
import { Fragment as k, computed as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createStaticVNode as ze, createVNode as Be, defineComponent as P, getCurrentInstance as Ve, normalizeStyle as F, onBeforeUnmount as I, onMounted as He, openBlock as L, ref as R, renderList as Ue, toDisplayString as z, unref as B, vShow as We, watch as V, withDirectives as H, withModifiers as U } from "vue";
|
|
5
|
+
import "element-plus/es/components/loading/style/css";
|
|
5
6
|
//#region src/components/WarningSignal/warnPop.vue
|
|
6
7
|
var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K = { class: "wrap-body" }, q = { class: "wrap-body-icon" }, J = ["src"], Y = { class: "wrap-body-explain" }, X = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "wrap-body-table"
|
|
9
|
-
}, Ge = /* @__PURE__ */
|
|
10
|
+
}, Ge = /* @__PURE__ */ e({
|
|
10
11
|
__name: "warnPop",
|
|
11
12
|
props: { warnPopData: {
|
|
12
13
|
type: Object,
|
|
@@ -63,7 +64,7 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
63
64
|
class: "wrap-head-closeBtn",
|
|
64
65
|
onClick: U(u, ["stop"])
|
|
65
66
|
}, "X"),
|
|
66
|
-
N("div", G, "发布时间:" + z(B(
|
|
67
|
+
N("div", G, "发布时间:" + z(B(S)(i.value.send_time).format("YYYY-MM-DD HH:mm")), 1)
|
|
67
68
|
], 32),
|
|
68
69
|
t[1] ||= N("div", { class: "wrap-head-line" }, null, -1),
|
|
69
70
|
N("div", K, [
|
|
@@ -94,7 +95,7 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
94
95
|
} }, rt = { style: {
|
|
95
96
|
width: "40px",
|
|
96
97
|
"text-align": "center"
|
|
97
|
-
} }, it = ["onClick"], at = { key: 0 }, Q = /* @__PURE__ */
|
|
98
|
+
} }, it = ["onClick"], at = { key: 0 }, Q = /* @__PURE__ */ e(/* @__PURE__ */ P({
|
|
98
99
|
__name: "WarningSignal",
|
|
99
100
|
props: {
|
|
100
101
|
appKey: {
|
|
@@ -132,8 +133,8 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
132
133
|
"view",
|
|
133
134
|
"changeMapView"
|
|
134
135
|
],
|
|
135
|
-
setup(
|
|
136
|
-
let A = Ve()?.appContext.config.globalProperties.$bus, P =
|
|
136
|
+
setup(e, { emit: S }) {
|
|
137
|
+
let A = Ve()?.appContext.config.globalProperties.$bus, P = e, F = S, I = R(!1), B = R([]), V = R(!1), W = R({}), G = {
|
|
137
138
|
大风: "big_wind",
|
|
138
139
|
暴雨: "rain_storm",
|
|
139
140
|
台风: "typhoon",
|
|
@@ -157,77 +158,77 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
157
158
|
Orange: "orange",
|
|
158
159
|
Red: "red"
|
|
159
160
|
}, q = (e, t) => {
|
|
160
|
-
let
|
|
161
|
-
for (let [t,
|
|
162
|
-
|
|
161
|
+
let S = "other";
|
|
162
|
+
for (let [t, n] of Object.entries(G)) if (e.includes(t)) {
|
|
163
|
+
S = n;
|
|
163
164
|
break;
|
|
164
165
|
}
|
|
165
|
-
let
|
|
166
|
+
let O = K[t] || "", k = O ? `${S}_${O}` : S;
|
|
166
167
|
try {
|
|
167
168
|
return new URL((/* @__PURE__ */ Object.assign({
|
|
168
|
-
"../../assets/img/warnIcon/big_fog_orange.png":
|
|
169
|
-
"../../assets/img/warnIcon/big_fog_red.png":
|
|
169
|
+
"../../assets/img/warnIcon/big_fog_orange.png": Ce,
|
|
170
|
+
"../../assets/img/warnIcon/big_fog_red.png": be,
|
|
170
171
|
"../../assets/img/warnIcon/big_fog_yellow.png": Ne,
|
|
171
|
-
"../../assets/img/warnIcon/big_wind_blue.png":
|
|
172
|
-
"../../assets/img/warnIcon/big_wind_orange.png":
|
|
172
|
+
"../../assets/img/warnIcon/big_wind_blue.png": b,
|
|
173
|
+
"../../assets/img/warnIcon/big_wind_orange.png": ve,
|
|
173
174
|
"../../assets/img/warnIcon/big_wind_red.png": Ae,
|
|
174
|
-
"../../assets/img/warnIcon/big_wind_yellow.png":
|
|
175
|
-
"../../assets/img/warnIcon/cold_blue.png":
|
|
176
|
-
"../../assets/img/warnIcon/cold_orange.png":
|
|
175
|
+
"../../assets/img/warnIcon/big_wind_yellow.png": T,
|
|
176
|
+
"../../assets/img/warnIcon/cold_blue.png": he,
|
|
177
|
+
"../../assets/img/warnIcon/cold_orange.png": g,
|
|
177
178
|
"../../assets/img/warnIcon/cold_red.png": Oe,
|
|
178
|
-
"../../assets/img/warnIcon/cold_wave_blue.png":
|
|
179
|
+
"../../assets/img/warnIcon/cold_wave_blue.png": C,
|
|
179
180
|
"../../assets/img/warnIcon/cold_wave_orange.png": je,
|
|
180
|
-
"../../assets/img/warnIcon/cold_wave_red.png":
|
|
181
|
-
"../../assets/img/warnIcon/cold_wave_yellow.png":
|
|
182
|
-
"../../assets/img/warnIcon/cold_yellow.png":
|
|
183
|
-
"../../assets/img/warnIcon/drought_orange.png":
|
|
184
|
-
"../../assets/img/warnIcon/drought_red.png":
|
|
185
|
-
"../../assets/img/warnIcon/dzzh01.png":
|
|
186
|
-
"../../assets/img/warnIcon/dzzh02.png":
|
|
187
|
-
"../../assets/img/warnIcon/dzzh03.png":
|
|
188
|
-
"../../assets/img/warnIcon/dzzh04.png":
|
|
189
|
-
"../../assets/img/warnIcon/frost_blue.png":
|
|
190
|
-
"../../assets/img/warnIcon/frost_orange.png":
|
|
191
|
-
"../../assets/img/warnIcon/frost_yellow.png":
|
|
192
|
-
"../../assets/img/warnIcon/hail_orange.png":
|
|
193
|
-
"../../assets/img/warnIcon/hail_red.png":
|
|
194
|
-
"../../assets/img/warnIcon/hail_yellow.png":
|
|
181
|
+
"../../assets/img/warnIcon/cold_wave_red.png": xe,
|
|
182
|
+
"../../assets/img/warnIcon/cold_wave_yellow.png": n,
|
|
183
|
+
"../../assets/img/warnIcon/cold_yellow.png": re,
|
|
184
|
+
"../../assets/img/warnIcon/drought_orange.png": fe,
|
|
185
|
+
"../../assets/img/warnIcon/drought_red.png": ue,
|
|
186
|
+
"../../assets/img/warnIcon/dzzh01.png": de,
|
|
187
|
+
"../../assets/img/warnIcon/dzzh02.png": f,
|
|
188
|
+
"../../assets/img/warnIcon/dzzh03.png": D,
|
|
189
|
+
"../../assets/img/warnIcon/dzzh04.png": p,
|
|
190
|
+
"../../assets/img/warnIcon/frost_blue.png": l,
|
|
191
|
+
"../../assets/img/warnIcon/frost_orange.png": le,
|
|
192
|
+
"../../assets/img/warnIcon/frost_yellow.png": se,
|
|
193
|
+
"../../assets/img/warnIcon/hail_orange.png": u,
|
|
194
|
+
"../../assets/img/warnIcon/hail_red.png": ce,
|
|
195
|
+
"../../assets/img/warnIcon/hail_yellow.png": i,
|
|
195
196
|
"../../assets/img/warnIcon/haze_orange.png": Re,
|
|
196
|
-
"../../assets/img/warnIcon/haze_yellow.png":
|
|
197
|
-
"../../assets/img/warnIcon/high_temperature_blue.png":
|
|
198
|
-
"../../assets/img/warnIcon/high_temperature_orange.png":
|
|
199
|
-
"../../assets/img/warnIcon/high_temperature_red.png":
|
|
200
|
-
"../../assets/img/warnIcon/high_temperature_yellow.png":
|
|
201
|
-
"../../assets/img/warnIcon/other.png":
|
|
202
|
-
"../../assets/img/warnIcon/rain_storm_blue.png":
|
|
203
|
-
"../../assets/img/warnIcon/rain_storm_orange.png":
|
|
204
|
-
"../../assets/img/warnIcon/rain_storm_red.png":
|
|
205
|
-
"../../assets/img/warnIcon/rain_storm_yellow.png":
|
|
206
|
-
"../../assets/img/warnIcon/road_freeze_orange.png":
|
|
207
|
-
"../../assets/img/warnIcon/road_freeze_red.png":
|
|
208
|
-
"../../assets/img/warnIcon/road_freeze_yellow.png":
|
|
209
|
-
"../../assets/img/warnIcon/sand_storm_orange.png":
|
|
197
|
+
"../../assets/img/warnIcon/haze_yellow.png": ie,
|
|
198
|
+
"../../assets/img/warnIcon/high_temperature_blue.png": m,
|
|
199
|
+
"../../assets/img/warnIcon/high_temperature_orange.png": d,
|
|
200
|
+
"../../assets/img/warnIcon/high_temperature_red.png": c,
|
|
201
|
+
"../../assets/img/warnIcon/high_temperature_yellow.png": ne,
|
|
202
|
+
"../../assets/img/warnIcon/other.png": ee,
|
|
203
|
+
"../../assets/img/warnIcon/rain_storm_blue.png": h,
|
|
204
|
+
"../../assets/img/warnIcon/rain_storm_orange.png": _,
|
|
205
|
+
"../../assets/img/warnIcon/rain_storm_red.png": r,
|
|
206
|
+
"../../assets/img/warnIcon/rain_storm_yellow.png": v,
|
|
207
|
+
"../../assets/img/warnIcon/road_freeze_orange.png": te,
|
|
208
|
+
"../../assets/img/warnIcon/road_freeze_red.png": o,
|
|
209
|
+
"../../assets/img/warnIcon/road_freeze_yellow.png": s,
|
|
210
|
+
"../../assets/img/warnIcon/sand_storm_orange.png": oe,
|
|
210
211
|
"../../assets/img/warnIcon/sand_storm_red.png": Fe,
|
|
211
|
-
"../../assets/img/warnIcon/sand_storm_yellow.png":
|
|
212
|
-
"../../assets/img/warnIcon/sea_thunderstorms_blue.png":
|
|
212
|
+
"../../assets/img/warnIcon/sand_storm_yellow.png": a,
|
|
213
|
+
"../../assets/img/warnIcon/sea_thunderstorms_blue.png": ae,
|
|
213
214
|
"../../assets/img/warnIcon/sea_thunderstorms_orange.png": Ie,
|
|
214
|
-
"../../assets/img/warnIcon/sea_thunderstorms_red.png":
|
|
215
|
+
"../../assets/img/warnIcon/sea_thunderstorms_red.png": ge,
|
|
215
216
|
"../../assets/img/warnIcon/sea_thunderstorms_yellow.png": Le,
|
|
216
217
|
"../../assets/img/warnIcon/snow_storm_blue.png": Pe,
|
|
217
|
-
"../../assets/img/warnIcon/snow_storm_orange.png":
|
|
218
|
-
"../../assets/img/warnIcon/snow_storm_red.png":
|
|
219
|
-
"../../assets/img/warnIcon/snow_storm_yellow.png":
|
|
220
|
-
"../../assets/img/warnIcon/thunder_blue.png":
|
|
221
|
-
"../../assets/img/warnIcon/thunder_orange.png":
|
|
222
|
-
"../../assets/img/warnIcon/thunder_red.png":
|
|
223
|
-
"../../assets/img/warnIcon/thunder_yellow.png":
|
|
218
|
+
"../../assets/img/warnIcon/snow_storm_orange.png": pe,
|
|
219
|
+
"../../assets/img/warnIcon/snow_storm_red.png": we,
|
|
220
|
+
"../../assets/img/warnIcon/snow_storm_yellow.png": Te,
|
|
221
|
+
"../../assets/img/warnIcon/thunder_blue.png": x,
|
|
222
|
+
"../../assets/img/warnIcon/thunder_orange.png": E,
|
|
223
|
+
"../../assets/img/warnIcon/thunder_red.png": Se,
|
|
224
|
+
"../../assets/img/warnIcon/thunder_yellow.png": ye,
|
|
224
225
|
"../../assets/img/warnIcon/thunderstorms_orange.png": Me,
|
|
225
|
-
"../../assets/img/warnIcon/thunderstorms_red.png":
|
|
226
|
-
"../../assets/img/warnIcon/thunderstorms_yellow.png":
|
|
226
|
+
"../../assets/img/warnIcon/thunderstorms_red.png": y,
|
|
227
|
+
"../../assets/img/warnIcon/thunderstorms_yellow.png": _e,
|
|
227
228
|
"../../assets/img/warnIcon/typhoon_blue.png": ke,
|
|
228
|
-
"../../assets/img/warnIcon/typhoon_orange.png":
|
|
229
|
-
"../../assets/img/warnIcon/typhoon_red.png":
|
|
230
|
-
"../../assets/img/warnIcon/typhoon_white.png":
|
|
229
|
+
"../../assets/img/warnIcon/typhoon_orange.png": w,
|
|
230
|
+
"../../assets/img/warnIcon/typhoon_red.png": me,
|
|
231
|
+
"../../assets/img/warnIcon/typhoon_white.png": Ee,
|
|
231
232
|
"../../assets/img/warnIcon/typhoon_yellow.png": De
|
|
232
233
|
}))[`../../assets/img/warnIcon/${k}.png`], import.meta.url).href;
|
|
233
234
|
} catch {
|
|
@@ -246,7 +247,7 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
246
247
|
let e = [];
|
|
247
248
|
if (P.dataType === "static") e = P.staticData || [], console.log("预警信号使用静态数据:", e);
|
|
248
249
|
else {
|
|
249
|
-
let
|
|
250
|
+
let n = await t({
|
|
250
251
|
appKey: P.appKey,
|
|
251
252
|
appSalt: P.appSalt,
|
|
252
253
|
id: P.ids.data.id,
|
|
@@ -255,7 +256,7 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
255
256
|
reqType: P.ids.data.reqType,
|
|
256
257
|
isFormData: P.ids.data.isFormData
|
|
257
258
|
});
|
|
258
|
-
console.log(
|
|
259
|
+
console.log(n, "预警信号"), e = n.data?.result?.output || [];
|
|
259
260
|
}
|
|
260
261
|
if (I.value = !1, e && e.length > 0) {
|
|
261
262
|
B.value = e.map((e) => {
|
|
@@ -395,19 +396,19 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
395
396
|
}
|
|
396
397
|
return t && n && $[t]?.[n] ? $[t][n] : null;
|
|
397
398
|
}
|
|
398
|
-
return (
|
|
399
|
-
let
|
|
399
|
+
return (t, n) => {
|
|
400
|
+
let r = O;
|
|
400
401
|
return H((L(), M("div", Ke, [
|
|
401
|
-
N("div", qe, [N("div", Je, [N("div", null, z(
|
|
402
|
+
N("div", qe, [N("div", Je, [N("div", null, z(e.title), 1), N("div", {
|
|
402
403
|
class: "closeBtn",
|
|
403
404
|
onClick: ot,
|
|
404
405
|
title: "关闭"
|
|
405
|
-
})]),
|
|
406
|
+
})]), n[1] ||= N("img", {
|
|
406
407
|
class: "WarningSignal__head-line",
|
|
407
408
|
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",
|
|
408
409
|
alt: ""
|
|
409
410
|
}, null, -1)]),
|
|
410
|
-
N("div", Ye, [N("div", Xe, [
|
|
411
|
+
N("div", Ye, [N("div", Xe, [n[3] ||= ze("<table class=\"data-table\" data-v-419fdb4f><thead data-v-419fdb4f><tr data-v-419fdb4f><th style=\"width:50px;text-align:center;\" data-v-419fdb4f>预警图标</th><th style=\"text-align:center;\" data-v-419fdb4f>预警标题</th><th style=\"width:100px;text-align:center;white-space:nowrap;\" data-v-419fdb4f>预警时间</th><th style=\"width:40px;text-align:center;\" data-v-419fdb4f>操作</th></tr></thead></table>", 1), N("div", Z, [N("table", Ze, [N("tbody", null, [(L(!0), M(k, null, Ue(B.value, (e, t) => (L(), M("tr", {
|
|
411
412
|
key: t,
|
|
412
413
|
onClick: (t) => X(e)
|
|
413
414
|
}, [
|
|
@@ -431,16 +432,16 @@ var W = { class: "wrap-head-title" }, G = { class: "wrap-head-publicTime" }, K =
|
|
|
431
432
|
class: "view-btn",
|
|
432
433
|
onClick: U((t) => Q(e), ["stop"])
|
|
433
434
|
}, "查看", 8, it)])
|
|
434
|
-
], 8, Qe))), 128)), !B.value || !B.value.length ? (L(), M("tr", at, [...
|
|
435
|
+
], 8, Qe))), 128)), !B.value || !B.value.length ? (L(), M("tr", at, [...n[2] ||= [N("td", {
|
|
435
436
|
colspan: "4",
|
|
436
437
|
class: "empty-state"
|
|
437
438
|
}, "暂无数据", -1)]])) : j("", !0)])])])])]),
|
|
438
439
|
H(Be(Ge, {
|
|
439
440
|
class: "warnPop",
|
|
440
|
-
onClosePop:
|
|
441
|
+
onClosePop: n[0] ||= (e) => V.value = !1,
|
|
441
442
|
warnPopData: W.value
|
|
442
443
|
}, null, 8, ["warnPopData"]), [[We, V.value]])
|
|
443
|
-
])), [[
|
|
444
|
+
])), [[r, I.value]]);
|
|
444
445
|
};
|
|
445
446
|
}
|
|
446
447
|
}), [["__scopeId", "data-v-419fdb4f"]]);
|