nxd-plugin 1.7.84 → 1.7.85
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-Forecast72h-TFBSlUgI.mjs +543 -0
- package/dist/chunks/{component-HdObservation-CM6HUrQ3.mjs → component-HdObservation-rcQFHEfW.mjs} +1 -1
- package/dist/chunks/{component-HdPreSituation-CJ8-wiRO.mjs → component-HdPreSituation-CnRwuRGg.mjs} +2 -2
- package/dist/chunks/{component-HdRadarTime-C4ZArOUM.mjs → component-HdRadarTime-Gcn9dJky.mjs} +177 -146
- package/dist/chunks/{component-HdServiceMarterial-pSFQUH2x.mjs → component-HdServiceMarterial-ehquoNg2.mjs} +6 -5
- package/dist/chunks/{component-HdServiceRequirements-BjuiyyC5.mjs → component-HdServiceRequirements-Bd4HJrpn.mjs} +1 -1
- package/dist/chunks/{component-HdStationTem-Dit7Y8lu.mjs → component-HdStationTem-CbJkt6Ww.mjs} +2 -2
- package/dist/chunks/{component-HdSuggestion-B_abfzRO.mjs → component-HdSuggestion-_JNJhwSK.mjs} +1 -1
- package/dist/chunks/{component-HdThreeWeatherTrend-B2qzvOzb.mjs → component-HdThreeWeatherTrend-HlRMLWm8.mjs} +1 -1
- package/dist/chunks/{component-HdWaveForcast-D8UZrHzF.mjs → component-HdWaveForcast-jNK-H1b1.mjs} +1 -1
- package/dist/chunks/{component-HighwayWeatherForecast-BQrNGF7m.mjs → component-HighwayWeatherForecast-CDLKFRNB.mjs} +119 -119
- package/dist/chunks/{component-PrecipitationRanking-C63n87WI.mjs → component-PrecipitationRanking-BOm_vb1L.mjs} +203 -121
- package/dist/chunks/{component-StationDialog-Ck8zd52d.mjs → component-StationDialog-CnJuYTfB.mjs} +123 -113
- package/dist/chunks/{component-StationList-BvoVJwAU.mjs → component-StationList-BcnqOIZY.mjs} +70 -68
- package/dist/chunks/{component-TimeBasedForecast-BaPiit4s.mjs → component-TimeBasedForecast-C1yk1Iu-.mjs} +33 -33
- package/dist/chunks/{component-WeatherForecast-DWdNramU.mjs → component-WeatherForecast-BRml38Ik.mjs} +33 -33
- package/dist/chunks/{component-YCDataService-CD042ss7.mjs → component-YCDataService-B4PPV3Dp.mjs} +1 -1
- package/dist/chunks/{component-YCHome-DjpIzt-5.mjs → component-YCHome-C-_Hf_oA.mjs} +1 -1
- package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +4 -2
- package/dist/nxd-plugin.mjs +21 -21
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-HdRadarTime.css +1 -1
- package/dist/styles/component-HdServiceMarterial.css +1 -1
- package/dist/styles/component-PrecipitationRanking.css +1 -1
- package/dist/styles/component-StationDialog.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-Forecast72h-BkVZSGhE.mjs +0 -427
- /package/dist/chunks/{component-ServiceMaterialsBtn-CTWGd-Is.mjs → component-ServiceMaterialsBtn-C9m-epfv.mjs} +0 -0
package/dist/chunks/{component-HdObservation-CM6HUrQ3.mjs → component-HdObservation-rcQFHEfW.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e, t } from "./rolldown-runtime-Cz5NsrRf.mjs";
|
|
2
2
|
import { n } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
3
3
|
import { i as r } from "./component-AiChat-BXNBLM1G.mjs";
|
|
4
|
-
import "./component-Forecast72h-
|
|
4
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
5
5
|
import { ElIcon as i, ElLoadingDirective as a, ElOption as o, ElSelect as s } from "element-plus/es";
|
|
6
6
|
import { Fragment as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createStaticVNode as ee, createVNode as p, defineComponent as m, getCurrentInstance as te, nextTick as ne, normalizeClass as re, onBeforeUnmount as ie, onMounted as ae, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as oe, withCtx as y, withDirectives as se } from "vue";
|
|
7
7
|
import { Download as ce } from "@element-plus/icons-vue";
|
package/dist/chunks/{component-HdPreSituation-CJ8-wiRO.mjs → component-HdPreSituation-CnRwuRGg.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cz5NsrRf.mjs";
|
|
2
2
|
import { n as t } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
3
3
|
import { i as n } from "./component-AiChat-BXNBLM1G.mjs";
|
|
4
|
-
import "./component-Forecast72h-
|
|
5
|
-
import { n as r } from "./component-HdObservation-
|
|
4
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
5
|
+
import { n as r } from "./component-HdObservation-rcQFHEfW.mjs";
|
|
6
6
|
import { ElConfigProvider as i, ElDatePicker as a, ElIcon as ee, ElLoadingDirective as te, ElOption as ne, ElSelect as re, ElTable as ie, ElTableColumn as ae } from "element-plus/es";
|
|
7
7
|
import { Fragment as o, computed as s, createBlock as oe, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, nextTick as m, normalizeClass as se, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, watch as ce, withCtx as C, withDirectives as le } from "vue";
|
|
8
8
|
import { Download as ue, TrendCharts as de } from "@element-plus/icons-vue";
|
package/dist/chunks/{component-HdRadarTime-C4ZArOUM.mjs → component-HdRadarTime-Gcn9dJky.mjs}
RENAMED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
2
|
import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
|
|
3
3
|
import { ElCheckbox as n, ElConfigProvider as r, ElDatePicker as i, ElLoadingDirective as a, ElOption as o, ElSelect as s } from "element-plus/es";
|
|
4
|
-
import { Fragment as c, computed as l, createBlock as
|
|
4
|
+
import { Fragment as c, computed as l, createBlock as ee, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as te, createVNode as p, defineComponent as m, getCurrentInstance as h, nextTick as ne, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as re, vShow as ie, watch as w, withCtx as T, withDirectives as E, withModifiers as ae } from "vue";
|
|
5
5
|
import oe from "element-plus/es/locale/lang/zh-cn.mjs";
|
|
6
6
|
//#region src/components/HdRadarTime/HdRadarTime.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" }, le = { class: "HdRadarTime-
|
|
7
|
+
var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" }, le = { class: "HdRadarTime-leftColumn" }, ue = { class: "HdRadarTime-queryTimeContainer" }, de = { class: "HdRadarTime-queryTime" }, fe = { class: "HdRadarTime-dropdownText" }, pe = { class: "HdRadarTime-dropdownPanel" }, me = { class: "HdRadarTime-dropdownList" }, he = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "HdRadarTime-dropdownItem HdRadarTime-dropdownItem--empty"
|
|
10
|
-
},
|
|
10
|
+
}, ge = ["onClick"], _e = { class: "HdRadarTime-legend" }, ve = { class: "HdRadarTime-legendBar" }, ye = { class: "HdRadarTime-legendTicks" }, be = { class: "HdRadarTime-checkboxes" }, xe = { class: "HdRadarTime-speed" }, Se = { class: "HdRadarTime-playWrap" }, Ce = {
|
|
11
11
|
key: 0,
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
13
|
width: "16",
|
|
14
14
|
height: "16",
|
|
15
15
|
viewBox: "0 0 24 24",
|
|
16
16
|
fill: "#fff"
|
|
17
|
-
},
|
|
17
|
+
}, we = {
|
|
18
18
|
key: 1,
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
width: "16",
|
|
21
21
|
height: "16",
|
|
22
22
|
viewBox: "0 0 24 24",
|
|
23
23
|
fill: "#fff"
|
|
24
|
-
},
|
|
24
|
+
}, Te = { class: "HdRadarTime-trackBg" }, Ee = { class: "HdRadarTime-ticks" }, De = ["onClick"], Oe = 1e3, D = /* @__PURE__ */ e(/* @__PURE__ */ m({
|
|
25
25
|
__name: "HdRadarTime",
|
|
26
26
|
props: {
|
|
27
27
|
mock: {
|
|
@@ -39,14 +39,44 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
39
39
|
type: Boolean,
|
|
40
40
|
default: !0
|
|
41
41
|
},
|
|
42
|
-
showLegend: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !0
|
|
45
|
-
},
|
|
46
42
|
showCurrentTime: {
|
|
47
43
|
type: Boolean,
|
|
48
44
|
default: !0
|
|
49
|
-
}
|
|
45
|
+
},
|
|
46
|
+
legendTicks: { default: () => [
|
|
47
|
+
0,
|
|
48
|
+
5,
|
|
49
|
+
10,
|
|
50
|
+
15,
|
|
51
|
+
20,
|
|
52
|
+
25,
|
|
53
|
+
30,
|
|
54
|
+
35,
|
|
55
|
+
40,
|
|
56
|
+
45,
|
|
57
|
+
50,
|
|
58
|
+
55,
|
|
59
|
+
60,
|
|
60
|
+
65,
|
|
61
|
+
70
|
|
62
|
+
] },
|
|
63
|
+
legendColors: { default: () => [
|
|
64
|
+
"#0000ff",
|
|
65
|
+
"#0070ff",
|
|
66
|
+
"#00aaff",
|
|
67
|
+
"#00d4ff",
|
|
68
|
+
"#00ff7f",
|
|
69
|
+
"#50ff50",
|
|
70
|
+
"#99ff00",
|
|
71
|
+
"#ffff00",
|
|
72
|
+
"#ffcc00",
|
|
73
|
+
"#ff9900",
|
|
74
|
+
"#ff5500",
|
|
75
|
+
"#ff0000",
|
|
76
|
+
"#cc0000",
|
|
77
|
+
"#9900cc",
|
|
78
|
+
"#6600cc"
|
|
79
|
+
] }
|
|
50
80
|
},
|
|
51
81
|
emits: [
|
|
52
82
|
"close",
|
|
@@ -55,15 +85,18 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
55
85
|
"legendChange",
|
|
56
86
|
"gridChange"
|
|
57
87
|
],
|
|
58
|
-
setup(e, { emit:
|
|
59
|
-
let
|
|
88
|
+
setup(e, { emit: m }) {
|
|
89
|
+
let D = h()?.appContext.config.globalProperties.$bus, O = e, k = m, A = x(null), j = x(null), M = x(null), N = x(null), P = x(!1), F = x(!1), ke = x(!1), I = x(O.initialQueryTime || ""), L = x([]), R = x([]), z = x(0), B = x(0), V = x(!1), H = x(O.initialSpeed), U = x(!1), Ae = [
|
|
60
90
|
.5,
|
|
61
91
|
1,
|
|
62
92
|
1.5,
|
|
63
93
|
2,
|
|
64
94
|
3,
|
|
65
95
|
4
|
|
66
|
-
],
|
|
96
|
+
], je = l(() => {
|
|
97
|
+
let e = O.legendTicks;
|
|
98
|
+
return !e || e.length === 0 ? 70 : e[e.length - 1] || 70;
|
|
99
|
+
}), W = null, G = {
|
|
67
100
|
x: 0,
|
|
68
101
|
y: 0
|
|
69
102
|
}, K = !1, q = l(() => R.value.map((e) => {
|
|
@@ -72,76 +105,76 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
72
105
|
time: t,
|
|
73
106
|
displayTimeWithoutYear: t ? t.substring(5, 16) : ""
|
|
74
107
|
};
|
|
75
|
-
})),
|
|
108
|
+
})), Me = l(() => q.value.length > 0 && z.value >= 0 && q.value[z.value]?.displayTimeWithoutYear || "选择时间"), J = l(() => L.value[B.value] || null), Y = l(() => J.value?.type === "live"), Ne = l(() => {
|
|
76
109
|
if (!L.value.length) return 50;
|
|
77
110
|
let e = L.value.filter((e) => e.type === "live").length / L.value.length * 100;
|
|
78
111
|
return Math.max(e, 4.5);
|
|
79
|
-
}),
|
|
112
|
+
}), Pe = l(() => {
|
|
80
113
|
if (!L.value.length || L.value.length <= 1) return 0;
|
|
81
114
|
let e = B.value / (L.value.length - 1) * 98;
|
|
82
115
|
return Math.max(0, Math.min(98, e));
|
|
83
|
-
}),
|
|
116
|
+
}), Fe = (e) => {
|
|
84
117
|
if (!L.value.length || L.value.length <= 1) return 0;
|
|
85
118
|
let t = e / (L.value.length - 1) * 98;
|
|
86
119
|
return Math.max(0, Math.min(98, t));
|
|
87
120
|
};
|
|
88
|
-
w(
|
|
89
|
-
|
|
90
|
-
}), w(
|
|
121
|
+
w(ke, (e) => {
|
|
122
|
+
k("legendChange", e);
|
|
123
|
+
}), w(F, async (e) => {
|
|
91
124
|
if (!Y.value) {
|
|
92
|
-
|
|
125
|
+
k("gridChange", {
|
|
93
126
|
visible: !1,
|
|
94
127
|
gridData: null
|
|
95
128
|
});
|
|
96
129
|
return;
|
|
97
130
|
}
|
|
98
|
-
|
|
131
|
+
k("gridChange", {
|
|
99
132
|
visible: e,
|
|
100
|
-
gridData: e ? await
|
|
133
|
+
gridData: e ? await nt() : null
|
|
101
134
|
});
|
|
102
135
|
}), w(B, () => {
|
|
103
|
-
|
|
104
|
-
|
|
136
|
+
ne(() => {
|
|
137
|
+
Ie();
|
|
105
138
|
});
|
|
106
139
|
}), w(H, () => {
|
|
107
|
-
V.value &&
|
|
140
|
+
V.value && We();
|
|
108
141
|
});
|
|
109
|
-
let
|
|
142
|
+
let Ie = async () => {
|
|
110
143
|
let e = J.value;
|
|
111
|
-
e && (
|
|
144
|
+
e && (k("radarChange", {
|
|
112
145
|
time: e.time,
|
|
113
146
|
type: e.type,
|
|
114
147
|
imageInfo: e.imageInfo || null
|
|
115
|
-
}), e.type === "forecast" ? (e.riskData ||= await
|
|
148
|
+
}), e.type === "forecast" ? (e.riskData ||= await tt(e.time), k("riskChange", {
|
|
116
149
|
time: e.time,
|
|
117
150
|
riskData: e.riskData || null
|
|
118
|
-
})) :
|
|
151
|
+
})) : k("riskChange", {
|
|
119
152
|
time: e.time,
|
|
120
153
|
riskData: null
|
|
121
|
-
}),
|
|
154
|
+
}), F.value && Y.value ? k("gridChange", {
|
|
122
155
|
visible: !0,
|
|
123
|
-
gridData: await
|
|
124
|
-
}) :
|
|
156
|
+
gridData: await nt()
|
|
157
|
+
}) : F.value && !Y.value && k("gridChange", {
|
|
125
158
|
visible: !1,
|
|
126
159
|
gridData: null
|
|
127
160
|
}));
|
|
128
|
-
},
|
|
161
|
+
}, Le = (e) => {
|
|
129
162
|
I.value = e || "", Q();
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
z.value = e,
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
},
|
|
163
|
+
}, Re = () => {
|
|
164
|
+
P.value = !P.value;
|
|
165
|
+
}, ze = () => {
|
|
166
|
+
P.value = !1;
|
|
167
|
+
}, Be = (e) => {
|
|
168
|
+
z.value = e, et(), ze();
|
|
169
|
+
}, Ve = (e) => {
|
|
170
|
+
M.value && !M.value.contains(e.target) && ze();
|
|
171
|
+
}, He = (e) => {
|
|
139
172
|
B.value = e;
|
|
140
|
-
},
|
|
173
|
+
}, Ue = () => {
|
|
141
174
|
V.value = !V.value;
|
|
142
|
-
},
|
|
175
|
+
}, We = () => {
|
|
143
176
|
X();
|
|
144
|
-
let e = Math.max(200,
|
|
177
|
+
let e = Math.max(200, Oe / H.value);
|
|
145
178
|
W = setInterval(() => {
|
|
146
179
|
L.value.length && (B.value = B.value >= L.value.length - 1 ? 0 : B.value + 1);
|
|
147
180
|
}, e);
|
|
@@ -149,43 +182,43 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
149
182
|
W &&= (clearInterval(W), null);
|
|
150
183
|
};
|
|
151
184
|
w(V, (e) => {
|
|
152
|
-
e ?
|
|
185
|
+
e ? We() : X();
|
|
153
186
|
});
|
|
154
|
-
let
|
|
155
|
-
e.button === 0 && (K = !0,
|
|
156
|
-
},
|
|
157
|
-
K &&
|
|
158
|
-
},
|
|
187
|
+
let Ge = (e) => {
|
|
188
|
+
e.button === 0 && (K = !0, Je(e), e.preventDefault());
|
|
189
|
+
}, Ke = (e) => {
|
|
190
|
+
K && Je(e);
|
|
191
|
+
}, qe = () => {
|
|
159
192
|
K = !1;
|
|
160
|
-
},
|
|
161
|
-
if (!
|
|
162
|
-
let t =
|
|
193
|
+
}, Je = (e) => {
|
|
194
|
+
if (!N.value || !L.value.length) return;
|
|
195
|
+
let t = N.value.getBoundingClientRect(), n = e.clientX - t.left;
|
|
163
196
|
n = Math.max(0, Math.min(n, t.width));
|
|
164
197
|
let r = n / t.width, i = Math.round(r * (L.value.length - 1));
|
|
165
198
|
B.value = Math.max(0, Math.min(L.value.length - 1, i));
|
|
166
|
-
},
|
|
167
|
-
if (!
|
|
168
|
-
let t =
|
|
169
|
-
G.x = e.clientX - t.left, G.y = e.clientY - t.top, document.addEventListener("mousemove",
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
},
|
|
173
|
-
document.removeEventListener("mousemove",
|
|
174
|
-
},
|
|
175
|
-
let t =
|
|
199
|
+
}, Ye = (e) => {
|
|
200
|
+
if (!A.value) return;
|
|
201
|
+
let t = A.value.getBoundingClientRect();
|
|
202
|
+
G.x = e.clientX - t.left, G.y = e.clientY - t.top, document.addEventListener("mousemove", Xe), document.addEventListener("mouseup", Ze), e.preventDefault();
|
|
203
|
+
}, Xe = (e) => {
|
|
204
|
+
A.value && (A.value.style.left = `${e.clientX - G.x}px`, A.value.style.top = `${e.clientY - G.y}px`, A.value.style.transform = "none");
|
|
205
|
+
}, Ze = () => {
|
|
206
|
+
document.removeEventListener("mousemove", Xe), document.removeEventListener("mouseup", Ze);
|
|
207
|
+
}, Qe = (e) => e ? e.data === void 0 ? e.result === void 0 ? e : e.result : e.data?.result?.output === void 0 ? e.data?.result === void 0 ? e.data : e.data.result : e.data.result.output : null, $e = (e) => {
|
|
208
|
+
let t = O.ids[e];
|
|
176
209
|
return t?.id ? t : null;
|
|
177
210
|
}, Z = async (e, n = {}) => {
|
|
178
|
-
let r =
|
|
211
|
+
let r = $e(e);
|
|
179
212
|
if (!r) return null;
|
|
180
213
|
try {
|
|
181
|
-
return
|
|
214
|
+
return Qe(await t({
|
|
182
215
|
id: r.id,
|
|
183
|
-
baseHttp:
|
|
216
|
+
baseHttp: O.baseHttp,
|
|
184
217
|
reqType: r.reqType,
|
|
185
218
|
variables: n,
|
|
186
219
|
isFormData: r.isFormData,
|
|
187
|
-
appKey:
|
|
188
|
-
appSalt:
|
|
220
|
+
appKey: O.appKey,
|
|
221
|
+
appSalt: O.appSalt
|
|
189
222
|
}));
|
|
190
223
|
} catch (t) {
|
|
191
224
|
return console.error(`[HdRadarTime] request ${e} failed:`, t), null;
|
|
@@ -193,8 +226,8 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
193
226
|
}, Q = async () => {
|
|
194
227
|
U.value = !0;
|
|
195
228
|
try {
|
|
196
|
-
if (
|
|
197
|
-
let e =
|
|
229
|
+
if (O.mock) {
|
|
230
|
+
let e = O.mockData?.liveData?.length ? O.mockData : rt();
|
|
198
231
|
R.value = e.liveData || [], !R.value.length && e.timelineData?.length && (R.value = e.timelineData.filter((e) => e.type === "live").map((e) => ({
|
|
199
232
|
radar_time: e.time,
|
|
200
233
|
time: e.time,
|
|
@@ -204,11 +237,11 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
204
237
|
let e = await Z("radarList", { queryTime: I.value });
|
|
205
238
|
R.value = Array.isArray(e) ? e : [];
|
|
206
239
|
}
|
|
207
|
-
z.value = R.value.length > 0 ? R.value.length - 1 : 0,
|
|
240
|
+
z.value = R.value.length > 0 ? R.value.length - 1 : 0, et();
|
|
208
241
|
} finally {
|
|
209
242
|
U.value = !1;
|
|
210
243
|
}
|
|
211
|
-
},
|
|
244
|
+
}, et = () => {
|
|
212
245
|
let e = I.value ? new Date(I.value.replace(/-/g, "/")) : /* @__PURE__ */ new Date(), t = Math.max(0, Math.min(z.value, R.value.length - 1)), n = R.value.slice(t).map((e) => {
|
|
213
246
|
let t = e.radar_time || e.time || "";
|
|
214
247
|
return {
|
|
@@ -232,14 +265,14 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
232
265
|
});
|
|
233
266
|
}
|
|
234
267
|
L.value = n, B.value = 0;
|
|
235
|
-
},
|
|
236
|
-
if (
|
|
268
|
+
}, tt = async (e) => {
|
|
269
|
+
if (O.mock) {
|
|
237
270
|
let t = L.value.find((t) => t.time === e && t.type === "forecast");
|
|
238
271
|
return t?.riskData ? t.riskData : $(e);
|
|
239
272
|
}
|
|
240
273
|
return await Z("forecastRisk", { time: e });
|
|
241
|
-
},
|
|
242
|
-
function
|
|
274
|
+
}, nt = async () => O.mock ? it() : await Z("gridData", { time: J.value?.time || "" });
|
|
275
|
+
function rt() {
|
|
243
276
|
let e = [], t = [], n = /* @__PURE__ */ new Date(), r = (e) => String(e).padStart(2, "0"), i = (e) => `${e.getFullYear()}-${r(e.getMonth() + 1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:00`, a = (e) => `${r(e.getMonth() + 1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}`;
|
|
244
277
|
for (let r = 0; r < 13; r++) {
|
|
245
278
|
let o = /* @__PURE__ */ new Date(n.getTime() - (12 - r) * 10 * 60 * 1e3), s = i(o), c = `https://example.com/radar/${s.replace(/[-: ]/g, "")}.png`;
|
|
@@ -320,7 +353,7 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
320
353
|
}]
|
|
321
354
|
};
|
|
322
355
|
}
|
|
323
|
-
function
|
|
356
|
+
function it() {
|
|
324
357
|
return {
|
|
325
358
|
type: "grid",
|
|
326
359
|
points: Array.from({ length: 20 }, (e, t) => ({
|
|
@@ -330,31 +363,31 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
330
363
|
}))
|
|
331
364
|
};
|
|
332
365
|
}
|
|
333
|
-
return
|
|
334
|
-
document.addEventListener("click",
|
|
366
|
+
return y(() => {
|
|
367
|
+
document.addEventListener("click", Ve), j.value?.addEventListener("mousedown", Ye), D?.on("toComponent", (e) => {
|
|
335
368
|
e.componentName === "HdRadarTime" && Q();
|
|
336
369
|
}), Q();
|
|
337
|
-
}),
|
|
338
|
-
document.removeEventListener("click",
|
|
370
|
+
}), v(() => {
|
|
371
|
+
document.removeEventListener("click", Ve), j.value?.removeEventListener("mousedown", Ye), X();
|
|
339
372
|
}), (t, l) => {
|
|
340
|
-
let
|
|
341
|
-
return E((b(),
|
|
373
|
+
let m = i, h = r, ne = n, v = o, y = s, x = a;
|
|
374
|
+
return E((b(), d("div", {
|
|
342
375
|
class: "HdRadarTime",
|
|
343
376
|
ref_key: "popupRef",
|
|
344
|
-
ref:
|
|
377
|
+
ref: A,
|
|
345
378
|
"element-loading-background": "rgba(0, 0, 0, 0.3)"
|
|
346
|
-
}, [
|
|
379
|
+
}, [f("div", {
|
|
347
380
|
class: "HdRadarTime-header",
|
|
348
381
|
ref_key: "dragHandleRef",
|
|
349
|
-
ref:
|
|
350
|
-
}, [
|
|
382
|
+
ref: j
|
|
383
|
+
}, [f("button", {
|
|
351
384
|
class: "HdRadarTime-close",
|
|
352
|
-
onClick: l[0] ||= (e) =>
|
|
385
|
+
onClick: l[0] ||= (e) => k("close"),
|
|
353
386
|
title: "关闭"
|
|
354
|
-
}, [...l[
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
default: T(() => [m
|
|
387
|
+
}, [...l[4] ||= [f("span", null, "×", -1)]])], 512), f("div", se, [
|
|
388
|
+
f("div", ce, [
|
|
389
|
+
f("div", le, [f("div", ue, [f("div", de, [p(h, { locale: re(oe) }, {
|
|
390
|
+
default: T(() => [p(m, {
|
|
358
391
|
modelValue: I.value,
|
|
359
392
|
"onUpdate:modelValue": l[1] ||= (e) => I.value = e,
|
|
360
393
|
type: "datetime",
|
|
@@ -365,97 +398,95 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
|
|
|
365
398
|
size: "small",
|
|
366
399
|
class: "HdRadarTime-datePicker",
|
|
367
400
|
"popper-class": "HdRadarTime-datePopper",
|
|
368
|
-
onChange:
|
|
401
|
+
onChange: Le
|
|
369
402
|
}, null, 8, ["modelValue"])]),
|
|
370
403
|
_: 1
|
|
371
|
-
}, 8, ["locale"])]),
|
|
372
|
-
p("div", {
|
|
404
|
+
}, 8, ["locale"])]), f("div", {
|
|
373
405
|
class: "HdRadarTime-dropdown",
|
|
374
406
|
ref_key: "dropdownRef",
|
|
375
|
-
ref:
|
|
376
|
-
}, [
|
|
407
|
+
ref: M
|
|
408
|
+
}, [f("div", {
|
|
377
409
|
class: "HdRadarTime-dropdownTrigger",
|
|
378
|
-
onClick:
|
|
379
|
-
}, [
|
|
410
|
+
onClick: Re
|
|
411
|
+
}, [f("span", fe, C(q.value.length > 0 ? Me.value : "暂无数据"), 1), f("span", { class: g(["HdRadarTime-dropdownArrow", { "HdRadarTime-dropdownArrow--open": P.value }]) }, "▼", 2)]), E(f("div", pe, [f("div", me, [q.value.length === 0 ? (b(), d("div", he, " 暂无数据 ")) : (b(!0), d(c, { key: 1 }, S(q.value, (e, t) => (b(), d("div", {
|
|
412
|
+
key: t,
|
|
413
|
+
class: g(["HdRadarTime-dropdownItem", { "HdRadarTime-dropdownItem--active": z.value === t }]),
|
|
414
|
+
onClick: (e) => Be(t)
|
|
415
|
+
}, C(e.displayTimeWithoutYear), 11, ge))), 128))])], 512), [[ie, P.value]])], 512)]), f("div", _e, [f("div", ve, [(b(!0), d(c, null, S(O.legendColors, (e, t) => (b(), d("div", {
|
|
380
416
|
key: t,
|
|
381
|
-
class:
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
|
|
417
|
+
class: "HdRadarTime-legendBlock",
|
|
418
|
+
style: _({ backgroundColor: e })
|
|
419
|
+
}, null, 4))), 128))]), f("div", ye, [(b(!0), d(c, null, S(O.legendTicks, (e) => (b(), d("span", {
|
|
420
|
+
key: e,
|
|
421
|
+
style: _({ left: e / je.value * 100 + "%" })
|
|
422
|
+
}, C(e), 5))), 128))])])]),
|
|
423
|
+
f("div", be, [e.showGrid && Y.value ? (b(), ee(ne, {
|
|
385
424
|
key: 0,
|
|
386
|
-
modelValue: P.value,
|
|
387
|
-
"onUpdate:modelValue": l[2] ||= (e) => P.value = e,
|
|
388
|
-
size: "small"
|
|
389
|
-
}, {
|
|
390
|
-
default: T(() => [...l[6] ||= [ee("dBZ网格", -1)]]),
|
|
391
|
-
_: 1
|
|
392
|
-
}, 8, ["modelValue"])) : d("", !0), e.showLegend ? (b(), u(g, {
|
|
393
|
-
key: 1,
|
|
394
425
|
modelValue: F.value,
|
|
395
|
-
"onUpdate:modelValue": l[
|
|
426
|
+
"onUpdate:modelValue": l[2] ||= (e) => F.value = e,
|
|
396
427
|
size: "small"
|
|
397
428
|
}, {
|
|
398
|
-
default: T(() => [...l[
|
|
429
|
+
default: T(() => [...l[5] ||= [te("dBZ网格", -1)]]),
|
|
399
430
|
_: 1
|
|
400
|
-
}, 8, ["modelValue"])) :
|
|
401
|
-
|
|
431
|
+
}, 8, ["modelValue"])) : u("", !0)]),
|
|
432
|
+
f("div", xe, [l[6] ||= f("span", { class: "HdRadarTime-speedLabel" }, "播放间隔", -1), p(y, {
|
|
402
433
|
modelValue: H.value,
|
|
403
|
-
"onUpdate:modelValue": l[
|
|
434
|
+
"onUpdate:modelValue": l[3] ||= (e) => H.value = e,
|
|
404
435
|
class: "HdRadarTime-speedSelect",
|
|
405
436
|
"popper-class": "HdRadarTime-speedPopper",
|
|
406
437
|
size: "small",
|
|
407
438
|
teleported: !1
|
|
408
439
|
}, {
|
|
409
|
-
default: T(() => [(b(),
|
|
440
|
+
default: T(() => [(b(), d(c, null, S(Ae, (e) => p(v, {
|
|
410
441
|
key: e,
|
|
411
|
-
label: `×${e}`,
|
|
442
|
+
label: `×${e}s`,
|
|
412
443
|
value: e
|
|
413
444
|
}, null, 8, ["label", "value"])), 64))]),
|
|
414
445
|
_: 1
|
|
415
446
|
}, 8, ["modelValue"])])
|
|
416
447
|
]),
|
|
417
|
-
|
|
418
|
-
class:
|
|
419
|
-
onClick:
|
|
420
|
-
}, [V.value ? (b(),
|
|
421
|
-
|
|
448
|
+
f("div", Se, [f("button", {
|
|
449
|
+
class: g(["HdRadarTime-playBtn", { "HdRadarTime-playBtn--playing": V.value }]),
|
|
450
|
+
onClick: Ue
|
|
451
|
+
}, [V.value ? (b(), d("svg", we, [...l[8] ||= [f("path", { d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z" }, null, -1)]])) : (b(), d("svg", Ce, [...l[7] ||= [f("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 2)]),
|
|
452
|
+
f("div", {
|
|
422
453
|
class: "HdRadarTime-track",
|
|
423
454
|
ref_key: "trackRef",
|
|
424
|
-
ref:
|
|
425
|
-
onMousedown:
|
|
426
|
-
onMousemove:
|
|
427
|
-
onMouseup:
|
|
428
|
-
onMouseleave:
|
|
455
|
+
ref: N,
|
|
456
|
+
onMousedown: Ge,
|
|
457
|
+
onMousemove: Ke,
|
|
458
|
+
onMouseup: qe,
|
|
459
|
+
onMouseleave: qe
|
|
429
460
|
}, [
|
|
430
|
-
|
|
461
|
+
f("div", Te, [f("div", {
|
|
431
462
|
class: "HdRadarTime-trackSection HdRadarTime-trackSection--live",
|
|
432
|
-
style:
|
|
433
|
-
}, [...l[
|
|
463
|
+
style: _({ width: Ne.value + "%" })
|
|
464
|
+
}, [...l[9] ||= [f("span", { class: "HdRadarTime-trackLabel" }, "实况", -1)]], 4), f("div", {
|
|
434
465
|
class: "HdRadarTime-trackSection HdRadarTime-trackSection--forecast",
|
|
435
|
-
style:
|
|
436
|
-
}, [...l[
|
|
466
|
+
style: _({ width: 100 - Ne.value + "%" })
|
|
467
|
+
}, [...l[10] ||= [f("span", {
|
|
437
468
|
class: "HdRadarTime-trackLabel",
|
|
438
469
|
style: { color: "#fff" }
|
|
439
470
|
}, "外推", -1)]], 4)]),
|
|
440
|
-
|
|
471
|
+
f("div", Ee, [(b(!0), d(c, null, S(L.value, (e, t) => (b(), d("div", {
|
|
441
472
|
key: t,
|
|
442
|
-
class:
|
|
443
|
-
style:
|
|
444
|
-
onClick: ae((e) =>
|
|
445
|
-
}, [...l[
|
|
446
|
-
|
|
473
|
+
class: g(["HdRadarTime-tick", { "HdRadarTime-tick--active": B.value === t }]),
|
|
474
|
+
style: _({ left: Fe(t) + "%" }),
|
|
475
|
+
onClick: ae((e) => He(t), ["stop"])
|
|
476
|
+
}, [...l[11] ||= [f("div", { class: "HdRadarTime-tickDot" }, null, -1)]], 14, De))), 128))]),
|
|
477
|
+
f("div", {
|
|
447
478
|
class: "HdRadarTime-indicator",
|
|
448
|
-
style:
|
|
479
|
+
style: _({ left: Pe.value + "%" })
|
|
449
480
|
}, null, 4),
|
|
450
|
-
e.showCurrentTime && J.value ? (b(),
|
|
481
|
+
e.showCurrentTime && J.value ? (b(), d("div", {
|
|
451
482
|
key: 0,
|
|
452
483
|
class: "HdRadarTime-currentTime",
|
|
453
|
-
style:
|
|
454
|
-
}, C(J.value.time.substring(11, 16)), 5)) :
|
|
484
|
+
style: _({ left: Pe.value + "%" })
|
|
485
|
+
}, C(J.value.time.substring(11, 16)), 5)) : u("", !0)
|
|
455
486
|
], 544)
|
|
456
487
|
])])), [[x, U.value]]);
|
|
457
488
|
};
|
|
458
489
|
}
|
|
459
|
-
}), [["__scopeId", "data-v-
|
|
490
|
+
}), [["__scopeId", "data-v-4ffd5c59"]]);
|
|
460
491
|
//#endregion
|
|
461
|
-
export {
|
|
492
|
+
export { D as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
2
|
import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
|
|
3
|
-
import "./component-Forecast72h-
|
|
3
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
4
4
|
import { ElIcon as n, ElInput as r, ElOption as i, ElSelect as a, ElTable as o, ElTableColumn as s } from "element-plus/es";
|
|
5
5
|
import { Fragment as c, Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, withCtx as w, withKeys as T, withModifiers as E } from "vue";
|
|
6
6
|
import { Search as D } from "@element-plus/icons-vue";
|
|
@@ -205,7 +205,6 @@ var O = { class: "HdServiceMarterial" }, ee = { class: "HdServiceMarterial-heade
|
|
|
205
205
|
"onUpdate:modelValue": t[0] ||= (e) => I.value = e,
|
|
206
206
|
class: "HdServiceMarterial-search",
|
|
207
207
|
placeholder: "请输入材料名称",
|
|
208
|
-
clearable: "",
|
|
209
208
|
size: "small",
|
|
210
209
|
onKeyup: T(q, ["enter"])
|
|
211
210
|
}, {
|
|
@@ -222,9 +221,10 @@ var O = { class: "HdServiceMarterial" }, ee = { class: "HdServiceMarterial-heade
|
|
|
222
221
|
modelValue: L.value,
|
|
223
222
|
"onUpdate:modelValue": t[1] ||= (e) => L.value = e,
|
|
224
223
|
class: "HdServiceMarterial-year",
|
|
224
|
+
"popper-class": "HdServiceMarterial-selectPopper",
|
|
225
225
|
placeholder: "年份",
|
|
226
226
|
size: "small",
|
|
227
|
-
teleport: !
|
|
227
|
+
teleport: !1,
|
|
228
228
|
onChange: J
|
|
229
229
|
}, {
|
|
230
230
|
default: w(() => [(y(!0), p(c, null, x(C(F), (e) => (y(), d(_, {
|
|
@@ -238,9 +238,10 @@ var O = { class: "HdServiceMarterial" }, ee = { class: "HdServiceMarterial-heade
|
|
|
238
238
|
modelValue: R.value,
|
|
239
239
|
"onUpdate:modelValue": t[2] ||= (e) => R.value = e,
|
|
240
240
|
class: "HdServiceMarterial-type",
|
|
241
|
+
"popper-class": "HdServiceMarterial-selectPopper",
|
|
241
242
|
placeholder: "服务类型",
|
|
242
243
|
size: "small",
|
|
243
|
-
teleport: !
|
|
244
|
+
teleport: !1,
|
|
244
245
|
onChange: J
|
|
245
246
|
}, {
|
|
246
247
|
default: w(() => [(y(), p(c, null, x(N, (e) => h(_, {
|
|
@@ -311,6 +312,6 @@ var O = { class: "HdServiceMarterial" }, ee = { class: "HdServiceMarterial-heade
|
|
|
311
312
|
]);
|
|
312
313
|
};
|
|
313
314
|
}
|
|
314
|
-
}), [["__scopeId", "data-v-
|
|
315
|
+
}), [["__scopeId", "data-v-c3419287"]]);
|
|
315
316
|
//#endregion
|
|
316
317
|
export { A as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
2
|
import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
|
|
3
|
-
import "./component-Forecast72h-
|
|
3
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
4
4
|
import { Fragment as n, Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, getCurrentInstance as u, onMounted as d, openBlock as f, ref as p, renderList as m, toDisplayString as h, withModifiers as g } from "vue";
|
|
5
5
|
//#region src/components/HdServiceRequirements/HdServiceRequirements.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _ = { class: "HdServiceRequirements" }, v = { class: "HdServiceRequirements-header" }, y = { class: "HdServiceRequirements-headerContent" }, b = { class: "HdServiceRequirements-title" }, x = {
|
package/dist/chunks/{component-HdStationTem-Dit7Y8lu.mjs → component-HdStationTem-CbJkt6Ww.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cz5NsrRf.mjs";
|
|
2
2
|
import { n as t } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
3
3
|
import { i as n } from "./component-AiChat-BXNBLM1G.mjs";
|
|
4
|
-
import "./component-Forecast72h-
|
|
5
|
-
import { n as r } from "./component-HdObservation-
|
|
4
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
5
|
+
import { n as r } from "./component-HdObservation-rcQFHEfW.mjs";
|
|
6
6
|
import { ElCheckbox as i, ElIcon as ee, ElLoadingDirective as te, ElTable as ne, ElTableColumn as re } from "element-plus/es";
|
|
7
7
|
import { Fragment as ie, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as ae, createVNode as l, defineComponent as u, getCurrentInstance as d, nextTick as f, normalizeClass as p, normalizeStyle as oe, onBeforeUnmount as se, onMounted as ce, openBlock as m, ref as h, renderList as le, toDisplayString as g, unref as ue, watch as de, withCtx as _, withDirectives as fe, withModifiers as pe } from "vue";
|
|
8
8
|
import { Download as me } from "@element-plus/icons-vue";
|
package/dist/chunks/{component-HdSuggestion-B_abfzRO.mjs → component-HdSuggestion-_JNJhwSK.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
2
|
import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
|
|
3
|
-
import "./component-Forecast72h-
|
|
3
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
4
4
|
import { ElIcon as n } from "element-plus/es";
|
|
5
5
|
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, getCurrentInstance as u, onMounted as d, openBlock as f, ref as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
6
6
|
import { ArrowLeft as _, ArrowRight as v } from "@element-plus/icons-vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
2
|
import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
|
|
3
|
-
import "./component-Forecast72h-
|
|
3
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
4
4
|
import { ElOption as n, ElSelect as ee } from "element-plus/es";
|
|
5
5
|
import { Fragment as r, computed as i, createBlock as te, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createStaticVNode as ne, createTextVNode as re, createVNode as ie, defineComponent as c, getCurrentInstance as ae, normalizeClass as oe, onMounted as se, openBlock as l, ref as u, renderList as d, toDisplayString as f, withCtx as ce } from "vue";
|
|
6
6
|
import "element-plus/es/components/select/style/css";
|