nxd-plugin 1.7.82 → 1.7.84
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-BU0rzEqA.mjs → component-AiChat-BXNBLM1G.mjs} +382 -342
- package/dist/chunks/{component-AqiMonitor-B0X5SmQB.mjs → component-AqiMonitor-C_V1Nuf_.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-D50ZlxtD.mjs → component-ChartCumulativePre-Bo28Bgaa.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-D35UWUD8.mjs → component-ChartServiceMaterial-DELVCsKj.mjs} +2 -2
- package/dist/chunks/{component-Duty-CuVSfL6B.mjs → component-Duty-dyZZ4vHt.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-DBLY754e.mjs → component-EarlyWarningStatistic-CBJfrRsV.mjs} +2 -2
- package/dist/chunks/component-Forecast72h-BkVZSGhE.mjs +427 -0
- package/dist/chunks/{component-GeologyLiveAlarm-BGqrl_n2.mjs → component-GeologyLiveAlarm-B9jBWXf0.mjs} +2 -2
- package/dist/chunks/component-HdForecastProducts-D4x_Y0OB.mjs +211 -0
- package/dist/chunks/component-HdHeatService-Bf9XH3DP.mjs +412 -0
- package/dist/chunks/component-HdObservation-CM6HUrQ3.mjs +606 -0
- package/dist/chunks/component-HdPreSituation-CJ8-wiRO.mjs +639 -0
- package/dist/chunks/component-HdRadarTime-C4ZArOUM.mjs +461 -0
- package/dist/chunks/component-HdSeaCase-3-YFxSuM.mjs +219 -0
- package/dist/chunks/component-HdServiceMarterial-pSFQUH2x.mjs +316 -0
- package/dist/chunks/component-HdServiceRequirements-BjuiyyC5.mjs +142 -0
- package/dist/chunks/component-HdStationTem-Dit7Y8lu.mjs +573 -0
- package/dist/chunks/component-HdSuggestion-B_abfzRO.mjs +161 -0
- package/dist/chunks/component-HdThreeWeatherTrend-B2qzvOzb.mjs +372 -0
- package/dist/chunks/component-HdWaveForcast-D8UZrHzF.mjs +269 -0
- package/dist/chunks/{component-HighQuality-B-DNdjF7.mjs → component-HighQuality-1iqLOQAF.mjs} +3 -3
- package/dist/chunks/{component-HighWayEarlyWarningRed-DM_NXOxS.mjs → component-HighWayEarlyWarningRed-DlgG9rTx.mjs} +907 -759
- package/dist/chunks/{component-HighWayFreeze-Dldul9ds.mjs → component-HighWayFreeze-CCp1Rxpz.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-7T0XNRUb.mjs → component-HighwayLiveAlarm-D7PKi5rG.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-ClsfDywn.mjs → component-HighwayLiveAlarmNew-rH59lsj8.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-u3R83AXH.mjs → component-HighwayStations-DGt6Gsr9.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-CHJuEi1V.mjs → component-HighwayWeatherForecast-BQrNGF7m.mjs} +73 -130
- package/dist/chunks/{component-IframeWeb-B_RCXBBe.mjs → component-IframeWeb-vLIWvbJY.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-5zGtULQL.mjs → component-ImageGeneration-BtM7MHcE.mjs} +1 -1
- package/dist/chunks/{component-IntroducePic-DPf4yYOb.mjs → component-IntroducePic-D3FSEuKX.mjs} +1 -1
- package/dist/chunks/{component-LithiumBatteryMiningArea-D7EdisGO.mjs → component-LithiumBatteryMiningArea-B5aUe7T0.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-pePSM1pe.mjs → component-MapPopup-UmWWAPBE.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-CvHyZKau.mjs → component-MaterialPreview-1Hyl4bjM.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-C_KQgtb2.mjs → component-PieLegend-C0Acehix.mjs} +1 -1
- package/dist/chunks/component-PrecipitationRanking-C63n87WI.mjs +658 -0
- package/dist/chunks/{component-RadarChart-Dkkpc2ex.mjs → component-RadarChart-BXfMyPPi.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-Bmyx7Z82.mjs → component-RadarLegend-B2ajP_0M.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-DNpfS5yC.mjs → component-RadarShortTerm-BeGEjbHr.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-CBk6AMiD.mjs → component-RadarTime-DGRztCiR.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-DFiXNere.mjs → component-RenderMarkdown-Dv-UVGrS.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-DCzzEJ4U.mjs → component-ReservoirLiveAlarm-CRgl_ztt.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-CXBQpfHK.mjs → component-ServiceMaterial-BTWYke8W.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-CPZzLZl_.mjs → component-ServiceMaterialsBtn-CTWGd-Is.mjs} +1 -1
- package/dist/chunks/component-StationDialog-Ck8zd52d.mjs +956 -0
- package/dist/chunks/component-StationList-BvoVJwAU.mjs +337 -0
- package/dist/chunks/{component-TimeBasedForecast-WVO8WY-h.mjs → component-TimeBasedForecast-BaPiit4s.mjs} +36 -36
- package/dist/chunks/{component-WarningLine-BCPm8Eve.mjs → component-WarningLine-CcFfVzar.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-C2RJ8N64.mjs → component-WarningSignal-C0CnTLVH.mjs} +3 -3
- package/dist/chunks/component-WeatherForecast-DWdNramU.mjs +229 -0
- package/dist/chunks/{component-YCDataMonitor-Dx7ASmGD.mjs → component-YCDataMonitor-DPMFqIFB.mjs} +108 -110
- package/dist/chunks/{component-YCDataService-mj2SUWBC.mjs → component-YCDataService-CD042ss7.mjs} +4 -4
- package/dist/chunks/{component-YCHome-CUcEZHuo.mjs → component-YCHome-DjpIzt-5.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-DK6WU8YQ.mjs → component-YCHomeLegend-B-nlePS2.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-D2RInKrk.mjs → component-YCLoginNew-Bx2LoLJz.mjs} +3 -3
- package/dist/components/AiChat/AiChat.vue.d.ts +0 -2
- package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
- package/dist/components/HdForecastProducts/HdForecastProducts.vue.d.ts +49 -0
- package/dist/components/HdHeatService/HdHeatService.vue.d.ts +56 -0
- package/dist/components/HdObservation/HdObservation.vue.d.ts +43 -0
- package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +61 -0
- package/dist/components/HdQxServiceEffects/HdQxServiceEffects.vue.d.ts +59 -0
- package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +71 -0
- package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +46 -0
- package/dist/components/HdServiceMarterial/HdServiceMarterial.vue.d.ts +54 -0
- package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
- package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -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/HighWayEarlyWarningRed/Call.vue.d.ts +18 -0
- package/dist/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +5 -0
- package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +62 -0
- package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
- package/dist/components/StationList/StationList.vue.d.ts +64 -0
- package/dist/components/WeatherForecast/WeatherForecast.vue.d.ts +9 -0
- package/dist/index.d.ts +18 -1
- package/dist/nxd-plugin.mjs +56 -40
- package/dist/styles/component-Forecast72h.css +1 -0
- package/dist/styles/component-HdForecastProducts.css +1 -0
- package/dist/styles/component-HdHeatService.css +1 -0
- package/dist/styles/component-HdObservation.css +1 -0
- package/dist/styles/component-HdPreSituation.css +1 -0
- package/dist/styles/component-HdRadarTime.css +1 -0
- package/dist/styles/component-HdSeaCase.css +1 -0
- package/dist/styles/component-HdServiceMarterial.css +1 -0
- package/dist/styles/component-HdServiceRequirements.css +1 -0
- package/dist/styles/component-HdStationTem.css +1 -0
- 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-HighQuality.css +1 -1
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-PrecipitationRanking.css +1 -0
- package/dist/styles/component-StationDialog.css +1 -0
- package/dist/styles/component-StationList.css +1 -0
- 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 +2 -1
- package/dist/chunks/component-WeatherForecast-CaLYtE37.mjs +0 -210
|
@@ -0,0 +1,956 @@
|
|
|
1
|
+
import { r as e } from "./rolldown-runtime-Cz5NsrRf.mjs";
|
|
2
|
+
import { n as t } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
3
|
+
import { i as n } from "./component-AiChat-BXNBLM1G.mjs";
|
|
4
|
+
import { n as r } from "./component-HdObservation-CM6HUrQ3.mjs";
|
|
5
|
+
import { ElIcon as i, ElTable as a, ElTableColumn as ee } from "element-plus/es";
|
|
6
|
+
import { Fragment as o, Teleport as te, createBlock as ne, createCommentVNode as re, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, nextTick as p, normalizeClass as m, normalizeStyle as ie, onBeforeUnmount as ae, onMounted as oe, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, vShow as se, watch as b, withCtx as x, withDirectives as ce } from "vue";
|
|
7
|
+
import { Close as le, Download as ue, Histogram as de } from "@element-plus/icons-vue";
|
|
8
|
+
import * as S from "echarts";
|
|
9
|
+
import "element-plus/es/components/table/style/css";
|
|
10
|
+
import "element-plus/es/components/table-column/style/css";
|
|
11
|
+
//#region src/components/StationDialog/StationDialog.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
+
var fe = /* @__PURE__ */ e(r()), pe = { class: "StationDialog-mask StationDialog" }, me = { class: "StationPop-title" }, he = { class: "StationPop-subtitle" }, ge = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "StationPop-dataTime"
|
|
15
|
+
}, _e = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "StationPop-dataTime"
|
|
18
|
+
}, ve = { class: "StationPop-info" }, ye = { class: "StationPop-infoItem" }, be = { class: "StationPop-infoValue" }, xe = { class: "StationPop-infoItem" }, Se = { class: "StationPop-infoValue" }, Ce = { class: "StationPop-infoItem" }, we = { class: "StationPop-infoValue" }, C = { class: "StationPop-infoItem StationPop-infoItem--wide" }, w = { class: "StationPop-infoValue" }, T = { class: "StationPop-infoItem StationPop-infoItem--wide" }, E = { class: "StationPop-infoValue" }, D = { class: "StationPop-main" }, O = { class: "StationPop-section StationPop-section--realtime" }, k = { class: "StationPop-realtime" }, Te = { class: "StationPop-realtimeItem" }, Ee = { class: "StationPop-realtimeValue" }, De = { class: "StationPop-realtimeItem" }, Oe = { class: "StationPop-realtimeValue" }, ke = { class: "StationPop-realtimeItem" }, Ae = { class: "StationPop-realtimeValue" }, je = { class: "StationPop-realtimeItem" }, Me = { class: "StationPop-realtimeValue" }, Ne = { class: "StationPop-realtimeItem" }, Pe = { class: "StationPop-realtimeValue" }, Fe = { class: "StationPop-realtimeItem" }, Ie = { class: "StationPop-realtimeValue" }, Le = { class: "StationPop-realtimeItem" }, Re = { class: "StationPop-realtimeValue" }, ze = { class: "StationPop-realtimeItem" }, Be = { class: "StationPop-realtimeValue" }, Ve = { class: "StationPop-realtimeItem" }, He = { class: "StationPop-realtimeValue" }, Ue = { class: "StationPop-section StationPop-section--statistics" }, We = { class: "StationPop-statistics" }, Ge = { class: "StationPop-statisticsItem" }, Ke = { class: "StationPop-statisticsValue" }, qe = { class: "StationPop-statisticsItem" }, Je = { class: "StationPop-statisticsValue" }, Ye = { class: "StationPop-statisticsItem" }, Xe = { class: "StationPop-statisticsValue" }, Ze = { class: "StationPop-statisticsItem" }, Qe = { class: "StationPop-statisticsValue" }, $e = { class: "StationPop-statisticsItem" }, et = { class: "StationPop-statisticsValue" }, tt = { class: "StationPop-statisticsItem" }, nt = { class: "StationPop-statisticsValue" }, rt = { class: "StationPop-section StationPop-section--chart" }, it = { class: "StationPop-tabs" }, at = ["onClick"], ot = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "StationPop-historyMask"
|
|
21
|
+
}, st = { class: "StationPop-historyPopup" }, ct = { class: "StationPop-historyHeader" }, lt = { class: "StationPop-historyTitle" }, ut = { class: "StationPop-historySubTitle" }, dt = {
|
|
22
|
+
class: "StationPop-historyTabs",
|
|
23
|
+
style: { position: "relative" }
|
|
24
|
+
}, ft = ["onClick"], pt = {
|
|
25
|
+
class: "StationPop-historyActions",
|
|
26
|
+
style: {
|
|
27
|
+
position: "absolute",
|
|
28
|
+
top: "0",
|
|
29
|
+
right: "0"
|
|
30
|
+
}
|
|
31
|
+
}, mt = { class: "StationPop-historyTableWrap" }, A = /* @__PURE__ */ t(/* @__PURE__ */ d({
|
|
32
|
+
__name: "StationDialog",
|
|
33
|
+
props: {
|
|
34
|
+
componentStyle: { default: () => ({}) },
|
|
35
|
+
stationCode: {},
|
|
36
|
+
stationName: { default: "" },
|
|
37
|
+
mock: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
baseHttp: { default: "" },
|
|
42
|
+
appKey: { default: "" },
|
|
43
|
+
appSalt: { default: "" },
|
|
44
|
+
ids: { default: () => ({}) },
|
|
45
|
+
mockData: { default: () => ({
|
|
46
|
+
dataTime: "2026-04-12 16时",
|
|
47
|
+
baseInfo: {
|
|
48
|
+
stationName: "黄岛滨海杜鹃花区气象观测站",
|
|
49
|
+
stationCode: "D0076",
|
|
50
|
+
address: "N35.78 E120.01",
|
|
51
|
+
stationStatus: "正常",
|
|
52
|
+
monitorElement: "降水、温度、湿度、风力风向、气压",
|
|
53
|
+
serviceType: "海洋气象服务、航线气象服务"
|
|
54
|
+
},
|
|
55
|
+
realTimeInfo: {
|
|
56
|
+
temperature: 27.7,
|
|
57
|
+
humidity: null,
|
|
58
|
+
windSpeed: .5,
|
|
59
|
+
hourPrecipitation: 0,
|
|
60
|
+
pressure: null,
|
|
61
|
+
visibility: void 0,
|
|
62
|
+
evaporation: 9999,
|
|
63
|
+
lightIntensity: 9999,
|
|
64
|
+
par: null
|
|
65
|
+
},
|
|
66
|
+
statisticsInfo: {
|
|
67
|
+
dailyMinTemp: 24.6,
|
|
68
|
+
dailyMaxTemp: 28.3,
|
|
69
|
+
dailyPrecipitation: 1,
|
|
70
|
+
historyMinTemp: -15.9,
|
|
71
|
+
historyMaxTemp: 41,
|
|
72
|
+
historyMaxPrecipitation: 556.1
|
|
73
|
+
},
|
|
74
|
+
chartData: {
|
|
75
|
+
temperature: {
|
|
76
|
+
times: [
|
|
77
|
+
"23时",
|
|
78
|
+
"00时",
|
|
79
|
+
"01时",
|
|
80
|
+
"02时",
|
|
81
|
+
"06时",
|
|
82
|
+
"07时",
|
|
83
|
+
"08时",
|
|
84
|
+
"09时",
|
|
85
|
+
"10时",
|
|
86
|
+
"11时",
|
|
87
|
+
"12时",
|
|
88
|
+
"13时"
|
|
89
|
+
],
|
|
90
|
+
unit: "℃",
|
|
91
|
+
series: [{
|
|
92
|
+
name: "正常值",
|
|
93
|
+
data: [
|
|
94
|
+
22,
|
|
95
|
+
21.5,
|
|
96
|
+
21.2,
|
|
97
|
+
21.8,
|
|
98
|
+
22.5,
|
|
99
|
+
23.5,
|
|
100
|
+
24.8,
|
|
101
|
+
25.6,
|
|
102
|
+
26.2,
|
|
103
|
+
26.8,
|
|
104
|
+
27.2,
|
|
105
|
+
27.7
|
|
106
|
+
],
|
|
107
|
+
color: "#00D9FF",
|
|
108
|
+
type: "line",
|
|
109
|
+
threshold: [
|
|
110
|
+
30,
|
|
111
|
+
30,
|
|
112
|
+
30,
|
|
113
|
+
30,
|
|
114
|
+
30,
|
|
115
|
+
30,
|
|
116
|
+
30,
|
|
117
|
+
30,
|
|
118
|
+
30,
|
|
119
|
+
30,
|
|
120
|
+
30,
|
|
121
|
+
30
|
|
122
|
+
]
|
|
123
|
+
}]
|
|
124
|
+
},
|
|
125
|
+
wind: {
|
|
126
|
+
times: [
|
|
127
|
+
"23时",
|
|
128
|
+
"00时",
|
|
129
|
+
"01时",
|
|
130
|
+
"02时",
|
|
131
|
+
"06时",
|
|
132
|
+
"07时",
|
|
133
|
+
"08时",
|
|
134
|
+
"09时",
|
|
135
|
+
"10时",
|
|
136
|
+
"11时",
|
|
137
|
+
"12时",
|
|
138
|
+
"13时"
|
|
139
|
+
],
|
|
140
|
+
unit: "级",
|
|
141
|
+
series: [{
|
|
142
|
+
name: "正常值",
|
|
143
|
+
data: [
|
|
144
|
+
1.8,
|
|
145
|
+
.9,
|
|
146
|
+
1.8,
|
|
147
|
+
1.8,
|
|
148
|
+
1.8,
|
|
149
|
+
1.8,
|
|
150
|
+
2.6,
|
|
151
|
+
1,
|
|
152
|
+
1,
|
|
153
|
+
1,
|
|
154
|
+
2,
|
|
155
|
+
2.5
|
|
156
|
+
],
|
|
157
|
+
color: "#00D9FF",
|
|
158
|
+
type: "line",
|
|
159
|
+
directions: [
|
|
160
|
+
45,
|
|
161
|
+
90,
|
|
162
|
+
135,
|
|
163
|
+
180,
|
|
164
|
+
225,
|
|
165
|
+
270,
|
|
166
|
+
315,
|
|
167
|
+
0,
|
|
168
|
+
45,
|
|
169
|
+
90,
|
|
170
|
+
135,
|
|
171
|
+
180
|
|
172
|
+
],
|
|
173
|
+
threshold: [
|
|
174
|
+
4,
|
|
175
|
+
4,
|
|
176
|
+
4,
|
|
177
|
+
4,
|
|
178
|
+
4,
|
|
179
|
+
4,
|
|
180
|
+
4,
|
|
181
|
+
4,
|
|
182
|
+
4,
|
|
183
|
+
4,
|
|
184
|
+
4,
|
|
185
|
+
4
|
|
186
|
+
]
|
|
187
|
+
}]
|
|
188
|
+
},
|
|
189
|
+
humidity: {
|
|
190
|
+
times: [
|
|
191
|
+
"23时",
|
|
192
|
+
"00时",
|
|
193
|
+
"01时",
|
|
194
|
+
"02时",
|
|
195
|
+
"06时",
|
|
196
|
+
"07时",
|
|
197
|
+
"08时",
|
|
198
|
+
"09时",
|
|
199
|
+
"10时",
|
|
200
|
+
"11时",
|
|
201
|
+
"12时",
|
|
202
|
+
"13时"
|
|
203
|
+
],
|
|
204
|
+
unit: "%",
|
|
205
|
+
series: [{
|
|
206
|
+
name: "正常值",
|
|
207
|
+
data: [
|
|
208
|
+
82,
|
|
209
|
+
85,
|
|
210
|
+
86,
|
|
211
|
+
84,
|
|
212
|
+
80,
|
|
213
|
+
78,
|
|
214
|
+
75,
|
|
215
|
+
72,
|
|
216
|
+
70,
|
|
217
|
+
68,
|
|
218
|
+
66,
|
|
219
|
+
64
|
|
220
|
+
],
|
|
221
|
+
color: "#00D9FF",
|
|
222
|
+
type: "line",
|
|
223
|
+
threshold: [
|
|
224
|
+
90,
|
|
225
|
+
90,
|
|
226
|
+
90,
|
|
227
|
+
90,
|
|
228
|
+
90,
|
|
229
|
+
90,
|
|
230
|
+
90,
|
|
231
|
+
90,
|
|
232
|
+
90,
|
|
233
|
+
90,
|
|
234
|
+
90,
|
|
235
|
+
90
|
|
236
|
+
]
|
|
237
|
+
}]
|
|
238
|
+
},
|
|
239
|
+
precipitation: {
|
|
240
|
+
times: [
|
|
241
|
+
"23时",
|
|
242
|
+
"00时",
|
|
243
|
+
"01时",
|
|
244
|
+
"02时",
|
|
245
|
+
"06时",
|
|
246
|
+
"07时",
|
|
247
|
+
"08时",
|
|
248
|
+
"09时",
|
|
249
|
+
"10时",
|
|
250
|
+
"11时",
|
|
251
|
+
"12时",
|
|
252
|
+
"13时"
|
|
253
|
+
],
|
|
254
|
+
unit: "mm",
|
|
255
|
+
series: [{
|
|
256
|
+
name: "正常值",
|
|
257
|
+
data: [
|
|
258
|
+
0,
|
|
259
|
+
0,
|
|
260
|
+
0,
|
|
261
|
+
0,
|
|
262
|
+
0,
|
|
263
|
+
0,
|
|
264
|
+
.2,
|
|
265
|
+
.5,
|
|
266
|
+
.1,
|
|
267
|
+
0,
|
|
268
|
+
0,
|
|
269
|
+
0
|
|
270
|
+
],
|
|
271
|
+
color: "#00D9FF",
|
|
272
|
+
type: "bar",
|
|
273
|
+
threshold: [
|
|
274
|
+
2,
|
|
275
|
+
2,
|
|
276
|
+
2,
|
|
277
|
+
2,
|
|
278
|
+
2,
|
|
279
|
+
2,
|
|
280
|
+
2,
|
|
281
|
+
2,
|
|
282
|
+
2,
|
|
283
|
+
2,
|
|
284
|
+
2,
|
|
285
|
+
2
|
|
286
|
+
]
|
|
287
|
+
}]
|
|
288
|
+
},
|
|
289
|
+
pressure: {
|
|
290
|
+
times: [
|
|
291
|
+
"23时",
|
|
292
|
+
"00时",
|
|
293
|
+
"01时",
|
|
294
|
+
"02时",
|
|
295
|
+
"06时",
|
|
296
|
+
"07时",
|
|
297
|
+
"08时",
|
|
298
|
+
"09时",
|
|
299
|
+
"10时",
|
|
300
|
+
"11时",
|
|
301
|
+
"12时",
|
|
302
|
+
"13时"
|
|
303
|
+
],
|
|
304
|
+
unit: "hPa",
|
|
305
|
+
series: [{
|
|
306
|
+
name: "正常值",
|
|
307
|
+
data: [
|
|
308
|
+
1005,
|
|
309
|
+
1005.2,
|
|
310
|
+
1005.5,
|
|
311
|
+
1005.8,
|
|
312
|
+
1006,
|
|
313
|
+
1006.2,
|
|
314
|
+
1006.5,
|
|
315
|
+
1006.8,
|
|
316
|
+
1007,
|
|
317
|
+
1007.2,
|
|
318
|
+
1007.5,
|
|
319
|
+
1007.8
|
|
320
|
+
],
|
|
321
|
+
color: "#00D9FF",
|
|
322
|
+
type: "line",
|
|
323
|
+
threshold: [
|
|
324
|
+
1008,
|
|
325
|
+
1008,
|
|
326
|
+
1008,
|
|
327
|
+
1008,
|
|
328
|
+
1008,
|
|
329
|
+
1008,
|
|
330
|
+
1008,
|
|
331
|
+
1008,
|
|
332
|
+
1008,
|
|
333
|
+
1008,
|
|
334
|
+
1008,
|
|
335
|
+
1008
|
|
336
|
+
]
|
|
337
|
+
}]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
historyData: {
|
|
341
|
+
day: [
|
|
342
|
+
{
|
|
343
|
+
date: "2026-04-01",
|
|
344
|
+
precipitation: 0,
|
|
345
|
+
temperature: 20.5,
|
|
346
|
+
humidity: 65,
|
|
347
|
+
windSpeed: 3.2,
|
|
348
|
+
windDirectionText: "南风",
|
|
349
|
+
pressure: 1008
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
date: "2026-04-02",
|
|
353
|
+
precipitation: 1.2,
|
|
354
|
+
temperature: 21.3,
|
|
355
|
+
humidity: 70,
|
|
356
|
+
windSpeed: 2.8,
|
|
357
|
+
windDirectionText: "东南风",
|
|
358
|
+
pressure: 1007
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
date: "2026-04-03",
|
|
362
|
+
precipitation: 0,
|
|
363
|
+
temperature: 22.1,
|
|
364
|
+
humidity: 68,
|
|
365
|
+
windSpeed: 3.5,
|
|
366
|
+
windDirectionText: "南风",
|
|
367
|
+
pressure: 1006
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
date: "2026-04-04",
|
|
371
|
+
precipitation: 5.6,
|
|
372
|
+
temperature: 19.8,
|
|
373
|
+
humidity: 82,
|
|
374
|
+
windSpeed: 4.1,
|
|
375
|
+
windDirectionText: "东风",
|
|
376
|
+
pressure: 1005
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
date: "2026-04-05",
|
|
380
|
+
precipitation: 0,
|
|
381
|
+
temperature: 21.6,
|
|
382
|
+
humidity: 66,
|
|
383
|
+
windSpeed: 3,
|
|
384
|
+
windDirectionText: "南风",
|
|
385
|
+
pressure: 1007
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
date: "2026-04-06",
|
|
389
|
+
precipitation: .3,
|
|
390
|
+
temperature: 20.9,
|
|
391
|
+
humidity: 72,
|
|
392
|
+
windSpeed: 2.5,
|
|
393
|
+
windDirectionText: "东南风",
|
|
394
|
+
pressure: 1008
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
date: "2026-04-07",
|
|
398
|
+
precipitation: 0,
|
|
399
|
+
temperature: 22.5,
|
|
400
|
+
humidity: 64,
|
|
401
|
+
windSpeed: 3.8,
|
|
402
|
+
windDirectionText: "南风",
|
|
403
|
+
pressure: 1009
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
month: [
|
|
407
|
+
{
|
|
408
|
+
date: "2026-01",
|
|
409
|
+
precipitation: 12.5,
|
|
410
|
+
temperature: 8.3,
|
|
411
|
+
humidity: 58,
|
|
412
|
+
windSpeed: 3.5,
|
|
413
|
+
windDirectionText: "北风",
|
|
414
|
+
pressure: 1012
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
date: "2026-02",
|
|
418
|
+
precipitation: 18.2,
|
|
419
|
+
temperature: 10.1,
|
|
420
|
+
humidity: 62,
|
|
421
|
+
windSpeed: 3.8,
|
|
422
|
+
windDirectionText: "北风",
|
|
423
|
+
pressure: 1010
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
date: "2026-03",
|
|
427
|
+
precipitation: 25.6,
|
|
428
|
+
temperature: 14.6,
|
|
429
|
+
humidity: 65,
|
|
430
|
+
windSpeed: 3.6,
|
|
431
|
+
windDirectionText: "南风",
|
|
432
|
+
pressure: 1009
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
date: "2026-04",
|
|
436
|
+
precipitation: 8.4,
|
|
437
|
+
temperature: 20.2,
|
|
438
|
+
humidity: 68,
|
|
439
|
+
windSpeed: 3.2,
|
|
440
|
+
windDirectionText: "南风",
|
|
441
|
+
pressure: 1007
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
}
|
|
445
|
+
}) }
|
|
446
|
+
},
|
|
447
|
+
setup(e) {
|
|
448
|
+
let t = f()?.appContext.config.globalProperties.$bus, r = e, d = g({
|
|
449
|
+
stationName: "",
|
|
450
|
+
stationCode: "",
|
|
451
|
+
address: "",
|
|
452
|
+
stationStatus: "",
|
|
453
|
+
monitorElement: "",
|
|
454
|
+
serviceType: ""
|
|
455
|
+
}), A = g(!1), j = g(""), M = g({}), N = g({}), P = g(null), F = null, I = g("temperature"), L = [
|
|
456
|
+
{
|
|
457
|
+
label: "温度",
|
|
458
|
+
value: "temperature"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
label: "风力风向",
|
|
462
|
+
value: "wind"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
label: "湿度",
|
|
466
|
+
value: "humidity"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
label: "降水",
|
|
470
|
+
value: "precipitation"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
label: "气压",
|
|
474
|
+
value: "pressure"
|
|
475
|
+
}
|
|
476
|
+
], R = g({}), z = g(!1), B = g("day"), V = g([]), ht = [{
|
|
477
|
+
label: "日统计",
|
|
478
|
+
value: "day"
|
|
479
|
+
}, {
|
|
480
|
+
label: "月统计",
|
|
481
|
+
value: "month"
|
|
482
|
+
}], gt = () => {
|
|
483
|
+
A.value = !1, z.value = !1;
|
|
484
|
+
}, H = (e) => e == null || e === "" || e === 9999, U = (e, t) => H(e) ? "--" : t ? `${e}${t}` : String(e), _t = (e) => `${H(e.windSpeed) ? "--" : `${e.windSpeed}m/s`} ${e.windDirectionText || "--"}`, W = (e) => {
|
|
485
|
+
let t = r.ids[e] || r.ids.data;
|
|
486
|
+
return t?.id ? t : null;
|
|
487
|
+
}, G = async (e, t = {}) => {
|
|
488
|
+
let i = W(e);
|
|
489
|
+
if (!i) throw Error(`缺少 ${e} 对应的工作流配置`);
|
|
490
|
+
return await n({
|
|
491
|
+
id: i.id,
|
|
492
|
+
baseHttp: r.baseHttp,
|
|
493
|
+
reqType: i.reqType,
|
|
494
|
+
variables: {
|
|
495
|
+
stationCode: r.stationCode,
|
|
496
|
+
...t
|
|
497
|
+
},
|
|
498
|
+
isFormData: i.isFormData,
|
|
499
|
+
appKey: r.appKey,
|
|
500
|
+
appSalt: r.appSalt
|
|
501
|
+
});
|
|
502
|
+
}, K = (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, q = async () => {
|
|
503
|
+
r.mock ? J() : await vt();
|
|
504
|
+
}, J = () => {
|
|
505
|
+
let e = r.mockData;
|
|
506
|
+
e.baseInfo && (d.value = { ...e.baseInfo }), e.realTimeInfo && (M.value = { ...e.realTimeInfo }), e.statisticsInfo && (N.value = { ...e.statisticsInfo }), e.chartData && (R.value = { ...e.chartData }), j.value = e.dataTime || "", p(X);
|
|
507
|
+
}, vt = async () => {
|
|
508
|
+
try {
|
|
509
|
+
let e = K(await G("baseInfo"));
|
|
510
|
+
e && (d.value = {
|
|
511
|
+
...d.value,
|
|
512
|
+
...e
|
|
513
|
+
});
|
|
514
|
+
} catch (e) {
|
|
515
|
+
console.warn("站点基础信息接口失败", e);
|
|
516
|
+
}
|
|
517
|
+
try {
|
|
518
|
+
let e = K(await G("realTime"));
|
|
519
|
+
e && (M.value = { ...e });
|
|
520
|
+
} catch (e) {
|
|
521
|
+
console.warn("实时监测接口失败", e);
|
|
522
|
+
}
|
|
523
|
+
try {
|
|
524
|
+
let e = K(await G("statistics"));
|
|
525
|
+
e && (N.value = { ...e });
|
|
526
|
+
} catch (e) {
|
|
527
|
+
console.warn("统计信息接口失败", e);
|
|
528
|
+
}
|
|
529
|
+
try {
|
|
530
|
+
if (W("chart")) {
|
|
531
|
+
let e = K(await G("chart"));
|
|
532
|
+
e && typeof e == "object" && (R.value = Y(e));
|
|
533
|
+
} else if (r.ids.data?.id) {
|
|
534
|
+
let e = {};
|
|
535
|
+
for (let t of L) try {
|
|
536
|
+
let n = K(await G("data", { type: t.value }));
|
|
537
|
+
if (n) {
|
|
538
|
+
let r = Y({ [t.value]: n });
|
|
539
|
+
Object.assign(e, r);
|
|
540
|
+
}
|
|
541
|
+
} catch (e) {
|
|
542
|
+
console.warn(`图表数据接口失败: ${t.value}`, e);
|
|
543
|
+
}
|
|
544
|
+
R.value = e;
|
|
545
|
+
}
|
|
546
|
+
} catch (e) {
|
|
547
|
+
console.warn("图表数据接口失败", e);
|
|
548
|
+
}
|
|
549
|
+
p(X);
|
|
550
|
+
}, Y = (e) => {
|
|
551
|
+
let t = {};
|
|
552
|
+
return [
|
|
553
|
+
"temperature",
|
|
554
|
+
"wind",
|
|
555
|
+
"humidity",
|
|
556
|
+
"precipitation",
|
|
557
|
+
"pressure"
|
|
558
|
+
].forEach((n) => {
|
|
559
|
+
let r = e[n];
|
|
560
|
+
r && (t[n] = {
|
|
561
|
+
times: Array.isArray(r.times) ? r.times : [],
|
|
562
|
+
unit: r.unit || "",
|
|
563
|
+
series: Array.isArray(r.series) ? r.series.map((e) => ({
|
|
564
|
+
name: e.name || "",
|
|
565
|
+
data: Array.isArray(e.data) ? e.data : [],
|
|
566
|
+
directions: Array.isArray(e.directions) ? e.directions : void 0,
|
|
567
|
+
color: e.color,
|
|
568
|
+
type: e.type || "line",
|
|
569
|
+
threshold: e.threshold
|
|
570
|
+
})) : []
|
|
571
|
+
});
|
|
572
|
+
}), t;
|
|
573
|
+
}, yt = (e) => {
|
|
574
|
+
I.value = e, p(X);
|
|
575
|
+
}, X = () => {
|
|
576
|
+
if (!P.value) return;
|
|
577
|
+
F ||= S.init(P.value);
|
|
578
|
+
let e = R.value[I.value];
|
|
579
|
+
if (!e || !e.times.length) {
|
|
580
|
+
F.clear();
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
let t = I.value === "wind", n = e.series.some((e) => e.type === "bar"), r = e.series.map((r) => {
|
|
584
|
+
let i = {
|
|
585
|
+
name: r.name,
|
|
586
|
+
type: r.type || "line",
|
|
587
|
+
smooth: !0,
|
|
588
|
+
symbol: t ? "triangle" : "circle",
|
|
589
|
+
symbolSize: t ? 10 : 6,
|
|
590
|
+
data: r.data,
|
|
591
|
+
itemStyle: { color: r.color || "#00D9FF" },
|
|
592
|
+
lineStyle: { width: 2 }
|
|
593
|
+
};
|
|
594
|
+
if (r.type === "bar" && (i.barWidth = 12, i.itemStyle.borderRadius = [
|
|
595
|
+
4,
|
|
596
|
+
4,
|
|
597
|
+
0,
|
|
598
|
+
0
|
|
599
|
+
], delete i.smooth, delete i.symbol, delete i.symbolSize), !n && !t && (i.areaStyle = { color: new S.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
600
|
+
offset: 0,
|
|
601
|
+
color: Z(r.color || "#00D9FF", .3)
|
|
602
|
+
}, {
|
|
603
|
+
offset: 1,
|
|
604
|
+
color: Z(r.color || "#00D9FF", .01)
|
|
605
|
+
}]) }), t && r.directions && r.directions.length === e.times.length && (i.symbolRotate = (e, t) => (r.directions?.[t.dataIndex] ?? 0) + 180), r.threshold && r.threshold.length === e.times.length) {
|
|
606
|
+
let t = r.threshold[0];
|
|
607
|
+
i.markLine = {
|
|
608
|
+
silent: !0,
|
|
609
|
+
symbol: "none",
|
|
610
|
+
lineStyle: {
|
|
611
|
+
color: "#FF4D4F",
|
|
612
|
+
type: "dashed",
|
|
613
|
+
width: 1
|
|
614
|
+
},
|
|
615
|
+
label: {
|
|
616
|
+
show: !0,
|
|
617
|
+
position: "insideEndTop",
|
|
618
|
+
formatter: `${e.unit ? `${t}${e.unit}` : `${t}`}`,
|
|
619
|
+
color: "#FF4D4F",
|
|
620
|
+
fontSize: 11,
|
|
621
|
+
distance: 8,
|
|
622
|
+
padding: [2, 4],
|
|
623
|
+
borderRadius: 2
|
|
624
|
+
},
|
|
625
|
+
data: r.threshold.map((t, n) => ({
|
|
626
|
+
xAxis: e.times[n],
|
|
627
|
+
yAxis: t
|
|
628
|
+
}))
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
return i;
|
|
632
|
+
});
|
|
633
|
+
e.series.some((e) => e.name === "阈值") || r.push({
|
|
634
|
+
name: "阈值",
|
|
635
|
+
type: "line",
|
|
636
|
+
data: [],
|
|
637
|
+
itemStyle: { color: "#FF4D4F" },
|
|
638
|
+
lineStyle: {
|
|
639
|
+
type: "dashed",
|
|
640
|
+
width: 1
|
|
641
|
+
},
|
|
642
|
+
symbol: "none"
|
|
643
|
+
});
|
|
644
|
+
let i = (() => {
|
|
645
|
+
let t = [];
|
|
646
|
+
if (e.series.forEach((e) => {
|
|
647
|
+
e.data.forEach((e) => {
|
|
648
|
+
let n = Number(e);
|
|
649
|
+
isNaN(n) || t.push(n);
|
|
650
|
+
}), e.threshold && e.threshold.forEach((e) => {
|
|
651
|
+
let n = Number(e);
|
|
652
|
+
isNaN(n) || t.push(n);
|
|
653
|
+
});
|
|
654
|
+
}), !t.length) return;
|
|
655
|
+
let n = Math.max(...t);
|
|
656
|
+
return n <= 0 ? 10 : Math.ceil(n * 1.1);
|
|
657
|
+
})(), a = {
|
|
658
|
+
tooltip: {
|
|
659
|
+
trigger: "axis",
|
|
660
|
+
backgroundColor: "rgba(0, 20, 40, 0.9)",
|
|
661
|
+
borderColor: "#00D9FF",
|
|
662
|
+
textStyle: { color: "#fff" }
|
|
663
|
+
},
|
|
664
|
+
legend: {
|
|
665
|
+
data: [{
|
|
666
|
+
name: "阈值",
|
|
667
|
+
icon: "circle"
|
|
668
|
+
}, {
|
|
669
|
+
name: "正常值",
|
|
670
|
+
icon: "circle"
|
|
671
|
+
}],
|
|
672
|
+
right: 0,
|
|
673
|
+
top: 0,
|
|
674
|
+
textStyle: { color: "#fff" },
|
|
675
|
+
itemWidth: 12,
|
|
676
|
+
itemHeight: 12
|
|
677
|
+
},
|
|
678
|
+
grid: {
|
|
679
|
+
left: 16,
|
|
680
|
+
right: 16,
|
|
681
|
+
top: 40,
|
|
682
|
+
bottom: 24,
|
|
683
|
+
containLabel: !0
|
|
684
|
+
},
|
|
685
|
+
xAxis: {
|
|
686
|
+
type: "category",
|
|
687
|
+
boundaryGap: n,
|
|
688
|
+
data: e.times,
|
|
689
|
+
axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
|
|
690
|
+
axisLabel: {
|
|
691
|
+
color: "rgba(255,255,255,0.7)",
|
|
692
|
+
fontSize: 11
|
|
693
|
+
},
|
|
694
|
+
axisTick: { show: !1 },
|
|
695
|
+
splitLine: { show: !1 }
|
|
696
|
+
},
|
|
697
|
+
yAxis: {
|
|
698
|
+
type: "value",
|
|
699
|
+
max: i,
|
|
700
|
+
name: `单位:${e.unit}`,
|
|
701
|
+
nameTextStyle: {
|
|
702
|
+
color: "rgba(255,255,255,0.7)",
|
|
703
|
+
padding: [
|
|
704
|
+
0,
|
|
705
|
+
0,
|
|
706
|
+
0,
|
|
707
|
+
8
|
|
708
|
+
]
|
|
709
|
+
},
|
|
710
|
+
axisLine: { show: !1 },
|
|
711
|
+
axisLabel: {
|
|
712
|
+
color: "rgba(255,255,255,0.7)",
|
|
713
|
+
fontSize: 11
|
|
714
|
+
},
|
|
715
|
+
splitLine: { show: !1 },
|
|
716
|
+
axisTick: { show: !1 }
|
|
717
|
+
},
|
|
718
|
+
series: r
|
|
719
|
+
};
|
|
720
|
+
F.setOption(a, !0), F.resize();
|
|
721
|
+
}, Z = (e, t) => `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t})`, Q = () => {
|
|
722
|
+
F?.resize();
|
|
723
|
+
}, bt = () => {
|
|
724
|
+
z.value = !0, $();
|
|
725
|
+
}, xt = () => {
|
|
726
|
+
z.value = !1;
|
|
727
|
+
}, St = (e) => {
|
|
728
|
+
B.value = e, $();
|
|
729
|
+
}, $ = async () => {
|
|
730
|
+
if (r.mock) {
|
|
731
|
+
V.value = r.mockData.historyData?.[B.value] || [];
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
if (!W("history")) {
|
|
735
|
+
console.warn("StationDialog 缺少历史数据工作流配置"), V.value = [];
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
try {
|
|
739
|
+
let e = K(await G("history", { type: B.value }));
|
|
740
|
+
V.value = Array.isArray(e) ? e : [];
|
|
741
|
+
} catch (e) {
|
|
742
|
+
console.error("历史数据加载失败", e), V.value = [];
|
|
743
|
+
}
|
|
744
|
+
}, Ct = () => {
|
|
745
|
+
let e = V.value.map((e, t) => ({
|
|
746
|
+
序号: t + 1,
|
|
747
|
+
日期: e.date || "",
|
|
748
|
+
降水: U(e.precipitation, "mm"),
|
|
749
|
+
温度: U(e.temperature, "℃"),
|
|
750
|
+
湿度: U(e.humidity, "%"),
|
|
751
|
+
风速: U(e.windSpeed, "m/s"),
|
|
752
|
+
风向: e.windDirectionText || "--",
|
|
753
|
+
气压: U(e.pressure, "hPa")
|
|
754
|
+
})), t = B.value === "day" ? "日统计" : "月统计";
|
|
755
|
+
new fe.default({
|
|
756
|
+
fileName: `${d.value.stationName || r.stationName}_历史数据_${t}_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
757
|
+
datas: [{
|
|
758
|
+
sheetData: e,
|
|
759
|
+
sheetName: t,
|
|
760
|
+
sheetFilter: [
|
|
761
|
+
"序号",
|
|
762
|
+
"日期",
|
|
763
|
+
"降水",
|
|
764
|
+
"温度",
|
|
765
|
+
"湿度",
|
|
766
|
+
"风速",
|
|
767
|
+
"风向",
|
|
768
|
+
"气压"
|
|
769
|
+
],
|
|
770
|
+
sheetHeader: [
|
|
771
|
+
"序号",
|
|
772
|
+
"日期",
|
|
773
|
+
"降水",
|
|
774
|
+
"温度",
|
|
775
|
+
"湿度",
|
|
776
|
+
"风速",
|
|
777
|
+
"风向",
|
|
778
|
+
"气压"
|
|
779
|
+
],
|
|
780
|
+
columnWidths: [
|
|
781
|
+
8,
|
|
782
|
+
18,
|
|
783
|
+
12,
|
|
784
|
+
12,
|
|
785
|
+
12,
|
|
786
|
+
12,
|
|
787
|
+
12,
|
|
788
|
+
14
|
|
789
|
+
]
|
|
790
|
+
}]
|
|
791
|
+
}).saveExcel();
|
|
792
|
+
};
|
|
793
|
+
b(() => r.stationCode, () => {
|
|
794
|
+
q();
|
|
795
|
+
}, { immediate: !0 }), b(A, (e) => {
|
|
796
|
+
e && p(() => {
|
|
797
|
+
!F && P.value ? X() : F?.resize();
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
function wt() {
|
|
801
|
+
A.value = !0, q();
|
|
802
|
+
}
|
|
803
|
+
return oe(() => {
|
|
804
|
+
window.addEventListener("resize", Q), t?.on("toComponent", (e) => {
|
|
805
|
+
e.componentName === "StationDialog" && wt();
|
|
806
|
+
});
|
|
807
|
+
}), ae(() => {
|
|
808
|
+
window.removeEventListener("resize", Q), F &&= (F.dispose(), null);
|
|
809
|
+
}), (t, n) => {
|
|
810
|
+
let r = i, f = ee, p = a;
|
|
811
|
+
return h(), ne(te, { to: "body" }, [ce(c("div", pe, [c("div", {
|
|
812
|
+
class: "StationPop",
|
|
813
|
+
style: ie(e.componentStyle)
|
|
814
|
+
}, [
|
|
815
|
+
c("div", {
|
|
816
|
+
class: "StationPop-close",
|
|
817
|
+
onClick: gt
|
|
818
|
+
}, [u(r, { class: "StationPop-close-icon" }, {
|
|
819
|
+
default: x(() => [u(y(le))]),
|
|
820
|
+
_: 1
|
|
821
|
+
})]),
|
|
822
|
+
c("div", me, v(d.value.stationName || e.stationName), 1),
|
|
823
|
+
c("div", he, [j.value ? (h(), s("span", ge, "数据时间:" + v(j.value), 1)) : (h(), s("span", _e, "数据时间:--"))]),
|
|
824
|
+
c("div", ve, [
|
|
825
|
+
c("div", ye, [n[0] ||= c("span", { class: "StationPop-infoLabel" }, "站 号:", -1), c("span", be, v(d.value.stationCode || "--"), 1)]),
|
|
826
|
+
c("div", xe, [n[1] ||= c("span", { class: "StationPop-infoLabel" }, "位 置:", -1), c("span", Se, v(d.value.address || "--"), 1)]),
|
|
827
|
+
c("div", Ce, [n[2] ||= c("span", { class: "StationPop-infoLabel" }, "运行状况:", -1), c("span", we, v(d.value.stationStatus || "--"), 1)]),
|
|
828
|
+
c("div", C, [n[3] ||= c("span", { class: "StationPop-infoLabel" }, "监测要素:", -1), c("span", w, v(d.value.monitorElement || "--"), 1)]),
|
|
829
|
+
c("div", T, [n[4] ||= c("span", { class: "StationPop-infoLabel" }, "服务类别:", -1), c("span", E, v(d.value.serviceType || "--"), 1)])
|
|
830
|
+
]),
|
|
831
|
+
c("div", D, [
|
|
832
|
+
c("div", O, [n[14] ||= c("div", { class: "StationPop-sectionTitle" }, [c("span", { class: "StationPop-sectionBar" }), l(" 实时监测(时) ")], -1), c("div", k, [
|
|
833
|
+
c("div", Te, [n[5] ||= c("span", { class: "StationPop-realtimeLabel" }, "温度:", -1), c("span", Ee, v(U(M.value.temperature, "℃")), 1)]),
|
|
834
|
+
c("div", De, [n[6] ||= c("span", { class: "StationPop-realtimeLabel" }, "湿度:", -1), c("span", Oe, v(U(M.value.humidity, "%")), 1)]),
|
|
835
|
+
c("div", ke, [n[7] ||= c("span", { class: "StationPop-realtimeLabel" }, "风速风向:", -1), c("span", Ae, v(U(M.value.windSpeed, "m/s")), 1)]),
|
|
836
|
+
c("div", je, [n[8] ||= c("span", { class: "StationPop-realtimeLabel" }, "1小时累积降水:", -1), c("span", Me, v(U(M.value.hourPrecipitation, "mm")), 1)]),
|
|
837
|
+
c("div", Ne, [n[9] ||= c("span", { class: "StationPop-realtimeLabel" }, "气压:", -1), c("span", Pe, v(U(M.value.pressure, "hPa")), 1)]),
|
|
838
|
+
c("div", Fe, [n[10] ||= c("span", { class: "StationPop-realtimeLabel" }, "能见度:", -1), c("span", Ie, v(U(M.value.visibility, "m")), 1)]),
|
|
839
|
+
c("div", Le, [n[11] ||= c("span", { class: "StationPop-realtimeLabel" }, "蒸发:", -1), c("span", Re, v(U(M.value.evaporation, "mm")), 1)]),
|
|
840
|
+
c("div", ze, [n[12] ||= c("span", { class: "StationPop-realtimeLabel" }, "光照强度:", -1), c("span", Be, v(U(M.value.lightIntensity, "lux")), 1)]),
|
|
841
|
+
c("div", Ve, [n[13] ||= c("span", { class: "StationPop-realtimeLabel" }, "光合有效辐射:", -1), c("span", He, v(U(M.value.par, "μmol/m²/s")), 1)])
|
|
842
|
+
])]),
|
|
843
|
+
c("div", Ue, [
|
|
844
|
+
n[22] ||= c("div", { class: "StationPop-sectionTitle" }, [c("span", { class: "StationPop-sectionBar" }), l(" 统计信息 ")], -1),
|
|
845
|
+
c("div", We, [
|
|
846
|
+
c("div", Ge, [n[15] ||= c("span", { class: "StationPop-statisticsLabel" }, "日最低温度:", -1), c("span", Ke, v(U(N.value.dailyMinTemp, "℃")), 1)]),
|
|
847
|
+
c("div", qe, [n[16] ||= c("span", { class: "StationPop-statisticsLabel" }, "日最高温度:", -1), c("span", Je, v(U(N.value.dailyMaxTemp, "℃")), 1)]),
|
|
848
|
+
c("div", Ye, [n[17] ||= c("span", { class: "StationPop-statisticsLabel" }, "日累计降水:", -1), c("span", Xe, v(U(N.value.dailyPrecipitation, "mm")), 1)]),
|
|
849
|
+
c("div", Ze, [n[18] ||= c("span", { class: "StationPop-statisticsLabel" }, "历史最低温:", -1), c("span", Qe, v(U(N.value.historyMinTemp, "℃")), 1)]),
|
|
850
|
+
c("div", $e, [n[19] ||= c("span", { class: "StationPop-statisticsLabel" }, "历史最高温:", -1), c("span", et, v(U(N.value.historyMaxTemp, "℃")), 1)]),
|
|
851
|
+
c("div", tt, [n[20] ||= c("span", { class: "StationPop-statisticsLabel" }, "历史最大累积降水:", -1), c("span", nt, v(U(N.value.historyMaxPrecipitation, "mm")), 1)])
|
|
852
|
+
]),
|
|
853
|
+
c("button", {
|
|
854
|
+
class: "StationPop-historyBtn",
|
|
855
|
+
onClick: bt
|
|
856
|
+
}, [u(r, null, {
|
|
857
|
+
default: x(() => [u(y(de))]),
|
|
858
|
+
_: 1
|
|
859
|
+
}), n[21] ||= l(" 历史数据 ", -1)])
|
|
860
|
+
]),
|
|
861
|
+
c("div", rt, [c("div", it, [(h(), s(o, null, _(L, (e) => c("div", {
|
|
862
|
+
key: e.value,
|
|
863
|
+
class: m(["StationPop-tab", { "StationPop-tab--active": I.value === e.value }]),
|
|
864
|
+
onClick: (t) => yt(e.value)
|
|
865
|
+
}, v(e.label), 11, at)), 64))]), c("div", {
|
|
866
|
+
ref_key: "chartRef",
|
|
867
|
+
ref: P,
|
|
868
|
+
class: "StationPop-chart"
|
|
869
|
+
}, null, 512)])
|
|
870
|
+
])
|
|
871
|
+
], 4), z.value ? (h(), s("div", ot, [c("div", st, [
|
|
872
|
+
c("div", ct, [c("div", lt, [n[23] ||= c("span", null, "历史数据", -1), c("span", ut, v(d.value.stationName || e.stationName), 1)]), c("button", {
|
|
873
|
+
class: "StationPop-historyClose",
|
|
874
|
+
onClick: xt
|
|
875
|
+
}, "✕")]),
|
|
876
|
+
c("div", dt, [(h(), s(o, null, _(ht, (e) => c("button", {
|
|
877
|
+
key: e.value,
|
|
878
|
+
class: m(["StationPop-historyTab", { "StationPop-historyTab--active": B.value === e.value }]),
|
|
879
|
+
onClick: (t) => St(e.value)
|
|
880
|
+
}, v(e.label), 11, ft)), 64)), c("div", pt, [c("button", {
|
|
881
|
+
class: "StationPop-historyExport",
|
|
882
|
+
onClick: Ct
|
|
883
|
+
}, [u(r, null, {
|
|
884
|
+
default: x(() => [u(y(ue))]),
|
|
885
|
+
_: 1
|
|
886
|
+
}), n[24] ||= l(" 导出 ", -1)])])]),
|
|
887
|
+
c("div", mt, [u(p, {
|
|
888
|
+
data: V.value,
|
|
889
|
+
class: "StationPop-historyTable",
|
|
890
|
+
size: "small",
|
|
891
|
+
style: { width: "100%" }
|
|
892
|
+
}, {
|
|
893
|
+
default: x(() => [
|
|
894
|
+
u(f, {
|
|
895
|
+
type: "index",
|
|
896
|
+
label: "序号",
|
|
897
|
+
width: "60",
|
|
898
|
+
align: "center"
|
|
899
|
+
}),
|
|
900
|
+
u(f, {
|
|
901
|
+
label: B.value === "day" ? "日期" : "月份",
|
|
902
|
+
"min-width": "100",
|
|
903
|
+
align: "left"
|
|
904
|
+
}, {
|
|
905
|
+
default: x(({ row: e }) => [c("span", null, v(e.date || "--"), 1)]),
|
|
906
|
+
_: 1
|
|
907
|
+
}, 8, ["label"]),
|
|
908
|
+
u(f, {
|
|
909
|
+
label: "降水",
|
|
910
|
+
"min-width": "80",
|
|
911
|
+
align: "right"
|
|
912
|
+
}, {
|
|
913
|
+
default: x(({ row: e }) => [c("span", null, v(U(e.precipitation, "mm")), 1)]),
|
|
914
|
+
_: 1
|
|
915
|
+
}),
|
|
916
|
+
u(f, {
|
|
917
|
+
label: "温度",
|
|
918
|
+
"min-width": "80",
|
|
919
|
+
align: "right"
|
|
920
|
+
}, {
|
|
921
|
+
default: x(({ row: e }) => [c("span", null, v(U(e.temperature, "℃")), 1)]),
|
|
922
|
+
_: 1
|
|
923
|
+
}),
|
|
924
|
+
u(f, {
|
|
925
|
+
label: "湿度",
|
|
926
|
+
"min-width": "80",
|
|
927
|
+
align: "right"
|
|
928
|
+
}, {
|
|
929
|
+
default: x(({ row: e }) => [c("span", null, v(U(e.humidity, "%")), 1)]),
|
|
930
|
+
_: 1
|
|
931
|
+
}),
|
|
932
|
+
u(f, {
|
|
933
|
+
label: "风力风向",
|
|
934
|
+
"min-width": "120",
|
|
935
|
+
align: "left"
|
|
936
|
+
}, {
|
|
937
|
+
default: x(({ row: e }) => [c("span", null, v(_t(e)), 1)]),
|
|
938
|
+
_: 1
|
|
939
|
+
}),
|
|
940
|
+
u(f, {
|
|
941
|
+
label: "气压",
|
|
942
|
+
"min-width": "90",
|
|
943
|
+
align: "right"
|
|
944
|
+
}, {
|
|
945
|
+
default: x(({ row: e }) => [c("span", null, v(U(e.pressure, "hPa")), 1)]),
|
|
946
|
+
_: 1
|
|
947
|
+
})
|
|
948
|
+
]),
|
|
949
|
+
_: 1
|
|
950
|
+
}, 8, ["data"])])
|
|
951
|
+
])])) : re("", !0)], 512), [[se, A.value]])]);
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
}), [["__scopeId", "data-v-a47434cc"]]);
|
|
955
|
+
//#endregion
|
|
956
|
+
export { A as t };
|