nxd-plugin 1.7.83 → 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-AiChat-C1xBPkS5.mjs → component-AiChat-BXNBLM1G.mjs} +92 -93
- package/dist/chunks/{component-AqiMonitor-DoAVs1Jf.mjs → component-AqiMonitor-C_V1Nuf_.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-BOIMPYxl.mjs → component-ChartCumulativePre-Bo28Bgaa.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-CmR3bmG_.mjs → component-ChartServiceMaterial-DELVCsKj.mjs} +2 -2
- package/dist/chunks/{component-Duty-gmt7ZcSc.mjs → component-Duty-dyZZ4vHt.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-BWYWrz65.mjs → component-EarlyWarningStatistic-CBJfrRsV.mjs} +2 -2
- package/dist/chunks/component-Forecast72h-TFBSlUgI.mjs +543 -0
- package/dist/chunks/{component-GeologyLiveAlarm-CNpQPmGs.mjs → component-GeologyLiveAlarm-B9jBWXf0.mjs} +2 -2
- package/dist/chunks/component-HdForecastProducts-D4x_Y0OB.mjs +211 -0
- package/dist/chunks/{component-HdHeatService-ok6q8UuG.mjs → component-HdHeatService-Bf9XH3DP.mjs} +2 -2
- package/dist/chunks/{component-HdObservation-BmQdGJV6.mjs → component-HdObservation-rcQFHEfW.mjs} +51 -45
- package/dist/chunks/{component-HdPreSituation-LBpO58bE.mjs → component-HdPreSituation-CnRwuRGg.mjs} +168 -133
- package/dist/chunks/{component-HdRadarTime-D7hOn_ph.mjs → component-HdRadarTime-Gcn9dJky.mjs} +179 -148
- package/dist/chunks/{component-HdSeaCase-DYPQ7CdN.mjs → component-HdSeaCase-3-YFxSuM.mjs} +2 -2
- package/dist/chunks/component-HdServiceMarterial-ehquoNg2.mjs +317 -0
- package/dist/chunks/{component-HdServiceRequirements-DcXrcIIV.mjs → component-HdServiceRequirements-Bd4HJrpn.mjs} +38 -39
- package/dist/chunks/{component-HdStationTem-US6IRwbQ.mjs → component-HdStationTem-CbJkt6Ww.mjs} +100 -100
- package/dist/chunks/component-HdSuggestion-_JNJhwSK.mjs +161 -0
- package/dist/chunks/component-HdThreeWeatherTrend-HlRMLWm8.mjs +372 -0
- package/dist/chunks/component-HdWaveForcast-jNK-H1b1.mjs +269 -0
- package/dist/chunks/{component-HighQuality-B0OgPi3T.mjs → component-HighQuality-1iqLOQAF.mjs} +2 -2
- package/dist/chunks/{component-HighWayEarlyWarningRed-BTl2WWZ-.mjs → component-HighWayEarlyWarningRed-DlgG9rTx.mjs} +3 -3
- package/dist/chunks/{component-HighWayFreeze-B1aMHQWU.mjs → component-HighWayFreeze-CCp1Rxpz.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-8u45ZdnN.mjs → component-HighwayLiveAlarm-D7PKi5rG.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-DK827eVk.mjs → component-HighwayLiveAlarmNew-rH59lsj8.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-BzrbWP50.mjs → component-HighwayStations-DGt6Gsr9.mjs} +2 -2
- package/dist/chunks/component-HighwayWeatherForecast-CDLKFRNB.mjs +32194 -0
- package/dist/chunks/{component-IframeWeb-DuBssYPk.mjs → component-IframeWeb-vLIWvbJY.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-3G3j7utC.mjs → component-ImageGeneration-BtM7MHcE.mjs} +1 -1
- package/dist/chunks/{component-IntroducePic-L8VH8Yq8.mjs → component-IntroducePic-D3FSEuKX.mjs} +1 -1
- package/dist/chunks/{component-LithiumBatteryMiningArea-DSFTVepN.mjs → component-LithiumBatteryMiningArea-B5aUe7T0.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-BNc18syw.mjs → component-MapPopup-UmWWAPBE.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-DhLUbjcT.mjs → component-MaterialPreview-1Hyl4bjM.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-Haojhtet.mjs → component-PieLegend-C0Acehix.mjs} +1 -1
- package/dist/chunks/component-PrecipitationRanking-BOm_vb1L.mjs +740 -0
- package/dist/chunks/{component-RadarChart-BYMbkI3K.mjs → component-RadarChart-BXfMyPPi.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-CiGsla7a.mjs → component-RadarLegend-B2ajP_0M.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-yPc2UWpz.mjs → component-RadarShortTerm-BeGEjbHr.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-CkqIaTJh.mjs → component-RadarTime-DGRztCiR.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-D590sXEf.mjs → component-RenderMarkdown-Dv-UVGrS.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-DTtKdDQS.mjs → component-ReservoirLiveAlarm-CRgl_ztt.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-BKbVQbKm.mjs → component-ServiceMaterial-BTWYke8W.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-CskK-Qiz.mjs → component-ServiceMaterialsBtn-C9m-epfv.mjs} +1 -1
- package/dist/chunks/{component-StationDialog-Bn7Fbk24.mjs → component-StationDialog-CnJuYTfB.mjs} +246 -177
- package/dist/chunks/{component-StationList-DRABlFdc.mjs → component-StationList-BcnqOIZY.mjs} +101 -85
- package/dist/chunks/{component-TimeBasedForecast-D1fJ4rGJ.mjs → component-TimeBasedForecast-C1yk1Iu-.mjs} +4 -4
- package/dist/chunks/{component-WarningLine-jN8sg45u.mjs → component-WarningLine-CcFfVzar.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-BkIKqyJB.mjs → component-WarningSignal-C0CnTLVH.mjs} +3 -3
- package/dist/chunks/{component-WeatherForecast-CYsbJhYt.mjs → component-WeatherForecast-BRml38Ik.mjs} +80 -76
- package/dist/chunks/{component-YCDataMonitor-vVlnkSzT.mjs → component-YCDataMonitor-DPMFqIFB.mjs} +108 -110
- package/dist/chunks/{component-YCDataService-okkY1-iU.mjs → component-YCDataService-B4PPV3Dp.mjs} +4 -4
- package/dist/chunks/{component-YCHome-BfpbxDIg.mjs → component-YCHome-C-_Hf_oA.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-CuT-BwNJ.mjs → component-YCHomeLegend-B-nlePS2.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-KZoyW1EV.mjs → component-YCLoginNew-Bx2LoLJz.mjs} +3 -3
- package/dist/components/HdForecastProducts/HdForecastProducts.vue.d.ts +49 -0
- package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +0 -1
- package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +4 -2
- package/dist/components/HdServiceMarterial/HdServiceMarterial.vue.d.ts +54 -0
- package/dist/components/HdSuggestion/HdSuggestion.vue.d.ts +49 -0
- package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +71 -0
- package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +70 -0
- package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +5 -0
- package/dist/components/WeatherForecast/WeatherForecast.vue.d.ts +9 -0
- package/dist/index.d.ts +6 -1
- package/dist/nxd-plugin.mjs +56 -51
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-HdForecastProducts.css +1 -0
- package/dist/styles/component-HdObservation.css +1 -1
- package/dist/styles/component-HdPreSituation.css +1 -1
- package/dist/styles/component-HdRadarTime.css +1 -1
- package/dist/styles/component-HdServiceMarterial.css +1 -0
- package/dist/styles/component-HdServiceRequirements.css +1 -1
- package/dist/styles/component-HdStationTem.css +1 -1
- package/dist/styles/component-HdSuggestion.css +1 -0
- package/dist/styles/component-HdThreeWeatherTrend.css +1 -0
- package/dist/styles/component-HdWaveForcast.css +1 -0
- package/dist/styles/component-HighWayEarlyWarningRed.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-WeatherForecast.css +1 -1
- package/dist/styles/component-YCDataMonitor.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-Forecast72h-BZ1kB2TJ.mjs +0 -427
- package/dist/chunks/component-HighwayWeatherForecast-DER5XGc3.mjs +0 -32251
- package/dist/chunks/component-PrecipitationRanking-BanKrD3J.mjs +0 -608
package/dist/chunks/{component-HdRadarTime-D7hOn_ph.mjs → component-HdRadarTime-Gcn9dJky.mjs}
RENAMED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { n as e } from "./component-AqiMonitor-
|
|
2
|
-
import { i as t } from "./component-AiChat-
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./component-AqiMonitor-
|
|
2
|
-
import { i as t } from "./component-AiChat-
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
|
+
import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
|
|
3
3
|
import { ElOption as n, ElSelect as r } from "element-plus/es";
|
|
4
4
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, normalizeClass as p, normalizeStyle as m, onMounted as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, watch as ee, withCtx as b } from "vue";
|
|
5
5
|
//#region src/components/HdSeaCase/HdSeaCase.vue?vue&type=script&setup=true&lang.ts
|