nxd-plugin 1.8.21 → 1.8.22
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/YCServiceSummary-PPstZeY5.mjs +2 -0
- package/dist/chunks/{component-AiChat-C_DePYiS.mjs → component-AiChat-AMGDZOnM.mjs} +691 -691
- package/dist/chunks/{component-AqiMonitor-B4ZLQZOd.mjs → component-AqiMonitor-CbRqtu9p.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-DQqNwEkp.mjs → component-ChartCumulativePre-BTqI2llc.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-BSXCSmjT.mjs → component-ChartServiceMaterial-B09CYvj1.mjs} +2 -2
- package/dist/chunks/{component-Duty-DnkxgYav.mjs → component-Duty-B_xLIwLc.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-DZIISSb4.mjs → component-EarlyWarningStatistic-CuEZKyRd.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic2-vSCEWtaq.mjs → component-EarlyWarningStatistic2-CwxVVXDz.mjs} +2 -2
- package/dist/chunks/{component-Forecast72h-DicwnEaB.mjs → component-Forecast72h-DWuJmxhN.mjs} +2 -2
- package/dist/chunks/{component-GeologyLiveAlarm-DcLkKxQi.mjs → component-GeologyLiveAlarm-D0Qp3NkC.mjs} +2 -2
- package/dist/chunks/{component-GridForecastMsg-B1J5xBf1.mjs → component-GridForecastMsg-CACyyiD4.mjs} +2 -2
- package/dist/chunks/{component-HDSeaLegend-ubUWj-K6.mjs → component-HDSeaLegend-BKmNgyVy.mjs} +1 -1
- package/dist/chunks/{component-HdCameraList-DE5T_NCe.mjs → component-HdCameraList-CjERf58T.mjs} +4 -4
- package/dist/chunks/{component-HdFarmStation-Dr16UrnR.mjs → component-HdFarmStation-B7LiZJNn.mjs} +5 -4
- package/dist/chunks/{component-HdFarmStationDialog-DNAo261X.mjs → component-HdFarmStationDialog-DGaloDuc.mjs} +266 -282
- package/dist/chunks/{component-HdForecastProducts-DW94eZkZ.mjs → component-HdForecastProducts-Cqm11AZJ.mjs} +2 -2
- package/dist/chunks/{component-HdHeatChart-QyRCV140.mjs → component-HdHeatChart-DBrkJ7wc.mjs} +2 -2
- package/dist/chunks/{component-HdHeatChartDialog-CwUk9qQm.mjs → component-HdHeatChartDialog-COXAQ7bQ.mjs} +3 -3
- package/dist/chunks/{component-HdHeatService-Cbsa46Kg.mjs → component-HdHeatService-BytLjsOH.mjs} +2 -2
- package/dist/chunks/{component-HdInsectDetailList-Br06iK7W.mjs → component-HdInsectDetailList-Burje-lq.mjs} +2 -2
- package/dist/chunks/{component-HdInsectList-Djo-0pVh.mjs → component-HdInsectList-BmvZhDkG.mjs} +2 -2
- package/dist/chunks/component-HdMajorActivity-fd-kVYVY.mjs +221 -0
- package/dist/chunks/{component-HdObservation-5k_0GZGV.mjs → component-HdObservation-CEBvwX20.mjs} +4 -4
- package/dist/chunks/{component-HdPreSituation-B0yXJZVG.mjs → component-HdPreSituation-C9k5S8xb.mjs} +4 -4
- package/dist/chunks/{component-HdQxServiceEffects-Ds1vj_DV.mjs → component-HdQxServiceEffects-afWY5O0D.mjs} +2 -2
- package/dist/chunks/{component-HdRadarList-NLZ0YNV8.mjs → component-HdRadarList-CcQfA_IK.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-D7-YoOkE.mjs → component-HdRadarTime-BinpFlES.mjs} +2 -2
- package/dist/chunks/{component-HdRadarTimeLine-CJ0_ejKf.mjs → component-HdRadarTimeLine-DsMjdctK.mjs} +2 -2
- package/dist/chunks/{component-HdRisk-fuJNWgJD.mjs → component-HdRisk-CtU4tAFm.mjs} +3 -3
- package/dist/chunks/{component-HdSeaCase-D21rq9pv.mjs → component-HdSeaCase-BSUlsIx4.mjs} +2 -2
- package/dist/chunks/{component-HdServiceMarterial-CgcHHy6J.mjs → component-HdServiceMarterial-BVRAV14z.mjs} +3 -3
- package/dist/chunks/{component-HdServiceRequirements-D2EdgZjN.mjs → component-HdServiceRequirements-CuKHpG2x.mjs} +3 -3
- package/dist/chunks/{component-HdSoil-D58PIu6D.mjs → component-HdSoil-Cg5eJ24C.mjs} +3 -3
- package/dist/chunks/{component-HdSoilDetailList-BpbPwCjd.mjs → component-HdSoilDetailList-BXkegoW8.mjs} +2 -2
- package/dist/chunks/{component-HdStationTem-qqZ5UXom.mjs → component-HdStationTem-BDWsPUTr.mjs} +4 -4
- package/dist/chunks/{component-HdSuggestion-Dbdlr5zS.mjs → component-HdSuggestion-Z8vAFQcx.mjs} +3 -3
- package/dist/chunks/{component-HdThreeWeatherTrend-zSmR2LIO.mjs → component-HdThreeWeatherTrend-D76c14hh.mjs} +4 -4
- package/dist/chunks/{component-HdWaveForcast-DllKzNgu.mjs → component-HdWaveForcast-BqdcmF-9.mjs} +3 -3
- package/dist/chunks/{component-HighQuality-BNVnCK0d.mjs → component-HighQuality-CxiEeJ6T.mjs} +2 -2
- package/dist/chunks/{component-HighWayEarlyWarningRed-CwzMQCqp.mjs → component-HighWayEarlyWarningRed-CXddcWf3.mjs} +2 -2
- package/dist/chunks/{component-HighWayFreeze-Ds2Hz7pR.mjs → component-HighWayFreeze-Ce2mS-fo.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-Do4pwmnJ.mjs → component-HighwayLiveAlarm-cmXVG7kx.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-DoWns_RH.mjs → component-HighwayLiveAlarmNew-DIh8-E-a.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-BBQa33JX.mjs → component-HighwayStations-DeOsPYJ4.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-C-kwyE6Q.mjs → component-HighwayWeatherForecast-OTwm4aUB.mjs} +5 -5
- package/dist/chunks/{component-IframeWeb-uP8unwJj.mjs → component-IframeWeb-DJpLhA93.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-CLAge4U1.mjs → component-ImageGeneration-CPp8qG9P.mjs} +1 -1
- package/dist/chunks/{component-IntroducePic-C8X8Y6hx.mjs → component-IntroducePic-DMbanecs.mjs} +2 -2
- package/dist/chunks/{component-LithiumBatteryMiningArea-xc5REiPe.mjs → component-LithiumBatteryMiningArea-BHUIxPQA.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-DXRLi4wJ.mjs → component-MapPopup-CG1DlFH_.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-B9iSbEIO.mjs → component-MaterialPreview-DFtr5Zsw.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-DPwAQJxO.mjs → component-PieLegend-CUhuvyyt.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-CwP3NZlf.mjs → component-PrecipitationRanking-CvuHO8-L.mjs} +4 -4
- package/dist/chunks/{component-RadarChart-BxEzHVOE.mjs → component-RadarChart-BtV2B9NQ.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-DVoe6ojQ.mjs → component-RadarLegend-uI-vbK2B.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-7v_EauV4.mjs → component-RadarShortTerm-C3yIFfjc.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-CT8WOoJR.mjs → component-RadarTime-Cy5ezbus.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-CxAwaqBM.mjs → component-RenderMarkdown-Cf79iCPF.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-CWkaa2z8.mjs → component-ReservoirLiveAlarm-DvMi5KuT.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-CNjEwMGZ.mjs → component-ServiceMaterial-tM5xlUk5.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-DWBa1Hpa.mjs → component-ServiceMaterialsBtn-CkBLC8_V.mjs} +1 -1
- package/dist/chunks/{component-StationDialog-usekZclX.mjs → component-StationDialog-ThXd8RYz.mjs} +3 -3
- package/dist/chunks/{component-StationList-B0bav8JG.mjs → component-StationList-CTE-wJJe.mjs} +4 -4
- package/dist/chunks/{component-TimeBasedForecast-l0RpjVYi.mjs → component-TimeBasedForecast-BH14WI1X.mjs} +4 -4
- package/dist/chunks/{component-Typhoon-Cf8qko_n.mjs → component-Typhoon-BAh6wD79.mjs} +2 -2
- package/dist/chunks/{component-WarningLine-B2HyTDUW.mjs → component-WarningLine-DXy9x9WQ.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-Cy8MQ6oC.mjs → component-WarningSignal-omOhQ4Oe.mjs} +3 -3
- package/dist/chunks/{component-WeatherForecast-B-MV7oqR.mjs → component-WeatherForecast-CdccA6XY.mjs} +4 -4
- package/dist/chunks/{component-YCDataMonitor-p7tSzU_b.mjs → component-YCDataMonitor-b_yLhnlt.mjs} +2 -2
- package/dist/chunks/{component-YCDataService-BBVuyu-D.mjs → component-YCDataService-BuXN9Hbm.mjs} +4 -4
- package/dist/chunks/{component-YCHighWaySummary-BH34LVVj.mjs → component-YCHighWaySummary-BJ5NCRVX.mjs} +2 -2
- package/dist/chunks/{component-YCHome-CtSa__qB.mjs → component-YCHome-KZ-r1BIn.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-DqzGcZgD.mjs → component-YCHomeLegend-CI9bN8C9.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-zgG8m4VV.mjs → component-YCLoginNew-BwaX10Om.mjs} +13 -13
- package/dist/chunks/component-YCServiceSummary-DyWhK07a.mjs +509 -0
- package/dist/components/HdFarmStationDialog/HdFarmStationDialog.vue.d.ts +0 -69
- package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +30 -0
- package/dist/components/YCServiceSummary/YCAIChatPanel.vue.d.ts +20 -2
- package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +19 -2
- package/dist/components/YCServiceSummary/YCServiceSummaryRefineAnalysis.vue.d.ts +21 -2
- package/dist/components/YCServiceSummary/YCServiceSummaryTrafficAnalysis.vue.d.ts +21 -2
- package/dist/index.d.ts +2 -1
- package/dist/nxd-plugin.mjs +75 -74
- package/dist/styles/component-HdCameraList.css +1 -1
- package/dist/styles/component-HdFarmStation.css +1 -1
- package/dist/styles/component-HdFarmStationDialog.css +1 -1
- package/dist/styles/component-HdMajorActivity.css +1 -0
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/dist/styles/component-YCServiceSummary.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-9W7E-cRv.mjs +0 -2
- package/dist/chunks/component-YCServiceSummary-KF3yjd4u.mjs +0 -354
- package/dist/components/YCServiceSummary/types.d.ts +0 -14
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { n } from "./component-AqiMonitor-
|
|
3
|
-
import {
|
|
2
|
+
import { n } from "./component-AqiMonitor-CbRqtu9p.mjs";
|
|
3
|
+
import { a as r } from "./component-AiChat-AMGDZOnM.mjs";
|
|
4
4
|
import { ElConfigProvider as i, ElDatePicker as a, ElIcon as o, ElLoadingDirective as s, ElTable as c, ElTableColumn as l } from "element-plus/es";
|
|
5
|
-
import { Fragment as u, Teleport as d, createBlock as ee, createCommentVNode as te, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as
|
|
6
|
-
import { Close as
|
|
7
|
-
import * as
|
|
5
|
+
import { Fragment as u, Teleport as d, createBlock as ee, createCommentVNode as te, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as _, nextTick as v, normalizeClass as y, normalizeStyle as ne, onBeforeUnmount as b, onMounted as x, openBlock as S, ref as C, renderList as w, toDisplayString as T, unref as E, vShow as re, watch as ie, withCtx as D, withDirectives as O } from "vue";
|
|
6
|
+
import { Close as ae, Download as oe } from "@element-plus/icons-vue";
|
|
7
|
+
import * as se from "echarts";
|
|
8
8
|
import "element-plus/es/components/date-picker/style/css";
|
|
9
|
+
import "element-plus/dist/index.css";
|
|
9
10
|
import "element-plus/es/components/table/style/css";
|
|
10
11
|
import "element-plus/es/components/table-column/style/css";
|
|
11
|
-
import
|
|
12
|
+
import ce from "element-plus/es/locale/lang/zh-cn.mjs";
|
|
12
13
|
//#region src/utils/methods.ts
|
|
13
|
-
var
|
|
14
|
+
var k = (e) => {
|
|
14
15
|
if (e.indexOf("雾霾") != -1) return "icon_weather_mai.png";
|
|
15
16
|
if (e.indexOf("强沙尘暴") != -1) return "icon_weather_qiangshachenbao.png";
|
|
16
17
|
if (e.indexOf("扬沙") != -1) return "icon_weather_yangsha.png";
|
|
@@ -46,7 +47,7 @@ var O = (e) => {
|
|
|
46
47
|
if (e.indexOf("阴") != -1) return "icon_weather_yin.png";
|
|
47
48
|
if (e.indexOf("多云") != -1) return "icon_weather_duoyun.png";
|
|
48
49
|
if (e.indexOf("晴") != -1) return "icon_weather_qing.png";
|
|
49
|
-
},
|
|
50
|
+
}, A = (e) => {
|
|
50
51
|
let t = Number(e);
|
|
51
52
|
if (isNaN(t)) return e;
|
|
52
53
|
let n = (t % 360 + 360) % 360;
|
|
@@ -68,7 +69,7 @@ var O = (e) => {
|
|
|
68
69
|
"NW",
|
|
69
70
|
"NNW"
|
|
70
71
|
][Math.floor((n + 11.25) / 22.5) % 16] || "";
|
|
71
|
-
},
|
|
72
|
+
}, j = (e) => {
|
|
72
73
|
let t = Number(e);
|
|
73
74
|
if (isNaN(t)) return "";
|
|
74
75
|
let n = (t % 360 + 360) % 360;
|
|
@@ -90,10 +91,10 @@ var O = (e) => {
|
|
|
90
91
|
"西风",
|
|
91
92
|
"西北风"
|
|
92
93
|
][Math.floor((n + 11.25) / 22.5) % 16] || "";
|
|
93
|
-
},
|
|
94
|
+
}, M = (e) => {
|
|
94
95
|
let t = Number(e);
|
|
95
96
|
return isNaN(t) || t == null ? "未知" : t <= .2 ? "0级" : t <= 1.5 ? "1级" : t <= 3.3 ? "2级" : t <= 5.4 ? "3级" : t <= 7.9 ? "4级" : t <= 10.7 ? "5级" : t <= 13.8 ? "6级" : t <= 17.1 ? "7级" : t <= 20.7 ? "8级" : t <= 24.4 ? "9级" : t <= 28.4 ? "10级" : t <= 32.6 ? "11级" : "12级";
|
|
96
|
-
},
|
|
97
|
+
}, N = /* @__PURE__ */ t(((e, t) => {
|
|
97
98
|
(function(n, r) {
|
|
98
99
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e["js-export-excel"] = r() : n["js-export-excel"] = r();
|
|
99
100
|
})(e, function() {
|
|
@@ -253,49 +254,42 @@ var O = (e) => {
|
|
|
253
254
|
}
|
|
254
255
|
]);
|
|
255
256
|
});
|
|
256
|
-
})),
|
|
257
|
+
})), le = /* @__PURE__ */ e(N()), ue = { class: "HdFarmStationDialog-mask HdFarmStationDialog" }, de = { class: "StationPop-title" }, fe = { class: "StationPop-subtitle" }, pe = {
|
|
257
258
|
key: 0,
|
|
258
259
|
class: "StationPop-dataTime"
|
|
259
|
-
},
|
|
260
|
+
}, me = {
|
|
260
261
|
key: 1,
|
|
261
262
|
class: "StationPop-dataTime"
|
|
262
|
-
},
|
|
263
|
-
display: "grid",
|
|
264
|
-
"grid-template-columns": "repeat(3, 1fr)"
|
|
265
|
-
} }, be = { class: "StationPop-infoItem" }, xe = { class: "StationPop-infoValue" }, Se = { class: "StationPop-infoItem" }, Ce = { class: "StationPop-infoValue" }, we = { class: "StationPop-infoItem" }, Te = { class: "StationPop-infoValue" }, Ee = { style: {
|
|
263
|
+
}, he = { class: "StationPop-info" }, ge = { style: {
|
|
266
264
|
display: "grid",
|
|
267
|
-
"grid-template-columns": "repeat(
|
|
268
|
-
} },
|
|
265
|
+
"grid-template-columns": "repeat(2, 1fr)"
|
|
266
|
+
} }, _e = { class: "StationPop-infoItem" }, ve = { class: "StationPop-infoValue" }, ye = { class: "StationPop-infoItem" }, be = { class: "StationPop-infoValue" }, xe = { class: "StationPop-main" }, Se = { class: "StationPop-section StationPop-section--realtime" }, Ce = { class: "StationPop-realtime" }, we = { class: "StationPop-realtimeItem" }, Te = { class: "StationPop-realtimeValue" }, Ee = { class: "StationPop-realtimeItem" }, De = { class: "StationPop-realtimeValue" }, Oe = { class: "StationPop-realtimeItem" }, ke = { class: "StationPop-realtimeValue" }, Ae = { class: "StationPop-realtimeItem" }, je = { class: "StationPop-realtimeValue" }, Me = { class: "StationPop-realtimeItem" }, Ne = { class: "StationPop-realtimeValue" }, Pe = { class: "StationPop-realtimeItem" }, Fe = { class: "StationPop-realtimeValue" }, Ie = { class: "StationPop-realtimeItem" }, Le = { class: "StationPop-realtimeValue" }, Re = { class: "StationPop-realtimeItem" }, ze = { class: "StationPop-realtimeValue" }, Be = { class: "StationPop-section StationPop-section--statistics" }, Ve = { class: "StationPop-statistics" }, He = { class: "StationPop-statisticsItem" }, Ue = { class: "StationPop-statisticsValue" }, We = { class: "StationPop-statisticsItem" }, Ge = { class: "StationPop-statisticsValue" }, Ke = { class: "StationPop-statisticsItem" }, qe = { class: "StationPop-statisticsValue" }, Je = { class: "StationPop-statisticsItem" }, Ye = { class: "StationPop-statisticsValue" }, Xe = { class: "StationPop-statisticsItem" }, Ze = { class: "StationPop-statisticsValue" }, Qe = { class: "StationPop-statisticsItem" }, $e = { class: "StationPop-statisticsValue" }, et = { class: "StationPop-section StationPop-section--chart" }, tt = { class: "StationPop-tabs" }, nt = ["onClick"], rt = {
|
|
269
267
|
key: 0,
|
|
270
268
|
class: "StationPop-historyMask"
|
|
271
|
-
},
|
|
269
|
+
}, it = { class: "StationPop-historyPopup" }, at = { class: "StationPop-historyHeader" }, ot = { class: "StationPop-historyTitle" }, st = { class: "StationPop-historySubTitle" }, ct = {
|
|
272
270
|
class: "StationPop-historyTabs",
|
|
273
271
|
style: { position: "relative" }
|
|
274
|
-
},
|
|
272
|
+
}, lt = ["onClick"], ut = { class: "StationPop-historyActions" }, dt = { class: "StationPop-historyTableWrap" }, P = /* @__PURE__ */ n(/* @__PURE__ */ g({
|
|
275
273
|
__name: "HdFarmStationDialog",
|
|
276
274
|
props: {
|
|
277
275
|
componentStyle: { default: () => ({}) },
|
|
278
276
|
stationCode: {},
|
|
279
277
|
stationName: { default: "" },
|
|
280
|
-
mock: {
|
|
281
|
-
type: Boolean,
|
|
282
|
-
default: !1
|
|
283
|
-
},
|
|
284
278
|
baseHttp: { default: "" },
|
|
285
279
|
appKey: { default: "" },
|
|
286
280
|
appSalt: { default: "" },
|
|
287
|
-
ids: { default: () => ({}) }
|
|
288
|
-
mockData: { default: () => ({}) }
|
|
281
|
+
ids: { default: () => ({}) }
|
|
289
282
|
},
|
|
290
283
|
setup(e) {
|
|
291
|
-
let t =
|
|
284
|
+
let t = _()?.appContext.config.globalProperties.$bus, n = C(!1), g = e, k = C(null), A = C({
|
|
292
285
|
stationName: "",
|
|
293
286
|
stationCode: "",
|
|
294
287
|
address: "",
|
|
295
288
|
stationStatus: "",
|
|
296
289
|
monitorElement: "",
|
|
297
|
-
serviceType: ""
|
|
298
|
-
|
|
290
|
+
serviceType: "",
|
|
291
|
+
dataTime: ""
|
|
292
|
+
}), M = C(!1), N = C(""), P = C({}), F = C({}), I = C(null), L = null, R = C([]), z = C("temperature"), ft = [
|
|
299
293
|
{
|
|
300
294
|
label: "温度",
|
|
301
295
|
value: "temperature"
|
|
@@ -316,22 +310,22 @@ var O = (e) => {
|
|
|
316
310
|
label: "气压",
|
|
317
311
|
value: "pressure"
|
|
318
312
|
}
|
|
319
|
-
],
|
|
313
|
+
], B = C({}), V = C(!1), H = C("day"), U = C([]), W = C([]), pt = [{
|
|
320
314
|
label: "日统计",
|
|
321
315
|
value: "day"
|
|
322
316
|
}, {
|
|
323
317
|
label: "月统计",
|
|
324
318
|
value: "month"
|
|
325
|
-
}],
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
let t =
|
|
329
|
-
return !n && e.windDirection !== void 0 && e.windDirection !== null && (n =
|
|
330
|
-
},
|
|
319
|
+
}], mt = () => {
|
|
320
|
+
M.value = !1, V.value = !1;
|
|
321
|
+
}, G = (e) => e == null || e === "" || e === 9999, K = (e, t) => G(e) ? "--" : t ? `${e}${t}` : String(e), ht = (e) => {
|
|
322
|
+
let t = G(e.windSpeed) ? "--" : `${e.windSpeed}m/s`, n = e.windDirectionText;
|
|
323
|
+
return !n && e.windDirection !== void 0 && e.windDirection !== null && (n = j(e.windDirection)), `${t} ${n || "--"}`;
|
|
324
|
+
}, q = (e) => {
|
|
331
325
|
let t = g.ids[e] || g.ids.data;
|
|
332
326
|
return t?.id ? t : null;
|
|
333
|
-
},
|
|
334
|
-
let n =
|
|
327
|
+
}, J = async (e, t = {}) => {
|
|
328
|
+
let n = q(e);
|
|
335
329
|
if (!n) throw Error(`缺少 ${e} 对应的工作流配置`);
|
|
336
330
|
return await r({
|
|
337
331
|
id: n.id,
|
|
@@ -339,152 +333,162 @@ var O = (e) => {
|
|
|
339
333
|
reqType: n.reqType,
|
|
340
334
|
variables: {
|
|
341
335
|
stationCode: g.stationCode,
|
|
342
|
-
stationIdC:
|
|
336
|
+
stationIdC: k.value,
|
|
343
337
|
...t
|
|
344
338
|
},
|
|
345
339
|
isFormData: n.isFormData,
|
|
346
340
|
appKey: g.appKey,
|
|
347
341
|
appSalt: g.appSalt
|
|
348
342
|
});
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
},
|
|
352
|
-
let e = g.mockData;
|
|
353
|
-
e.baseInfo && (k.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 || "", _(X);
|
|
354
|
-
}, At = async () => {
|
|
343
|
+
}, Y = (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, gt = async () => {
|
|
344
|
+
await _t();
|
|
345
|
+
}, _t = async () => {
|
|
355
346
|
try {
|
|
356
|
-
let e =
|
|
357
|
-
if (e && typeof e == "object") {
|
|
358
|
-
|
|
347
|
+
let e = Y(await J("data"));
|
|
348
|
+
if (console.log("data", e), e && typeof e == "object") {
|
|
349
|
+
vt(e), v($);
|
|
359
350
|
return;
|
|
360
351
|
}
|
|
361
352
|
} catch (e) {
|
|
362
353
|
console.warn("统一数据接口失败,尝试单独接口", e);
|
|
363
354
|
}
|
|
364
355
|
try {
|
|
365
|
-
let e =
|
|
366
|
-
e && (
|
|
367
|
-
...
|
|
356
|
+
let e = Y(await J("baseInfo"));
|
|
357
|
+
e && (A.value = {
|
|
358
|
+
...A.value,
|
|
368
359
|
...e
|
|
369
360
|
});
|
|
370
361
|
} catch (e) {
|
|
371
362
|
console.warn("站点基础信息接口失败", e);
|
|
372
363
|
}
|
|
373
364
|
try {
|
|
374
|
-
let e =
|
|
375
|
-
e && (
|
|
365
|
+
let e = Y(await J("realTime"));
|
|
366
|
+
e && (P.value = { ...e });
|
|
376
367
|
} catch (e) {
|
|
377
368
|
console.warn("实时监测接口失败", e);
|
|
378
369
|
}
|
|
379
370
|
try {
|
|
380
|
-
let e =
|
|
381
|
-
e && (
|
|
371
|
+
let e = Y(await J("statistics"));
|
|
372
|
+
e && (F.value = { ...e });
|
|
382
373
|
} catch (e) {
|
|
383
374
|
console.warn("统计信息接口失败", e);
|
|
384
375
|
}
|
|
385
376
|
try {
|
|
386
|
-
if (
|
|
387
|
-
let e =
|
|
388
|
-
e && typeof e == "object" && (
|
|
377
|
+
if (q("chart")) {
|
|
378
|
+
let e = Y(await J("chart"));
|
|
379
|
+
e && typeof e == "object" && (B.value = Q(e));
|
|
389
380
|
}
|
|
390
381
|
} catch (e) {
|
|
391
382
|
console.warn("图表数据接口失败", e);
|
|
392
383
|
}
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
e.baseInfo && (
|
|
384
|
+
v($);
|
|
385
|
+
}, vt = (e) => {
|
|
386
|
+
e.baseInfo && (A.value = { ...e.baseInfo }), e.realTimeInfo && (P.value = { ...e.realTimeInfo }), e.statisticsInfo && (F.value = { ...e.statisticsInfo }), e.chartData && (B.value = Q(e.chartData)), e.dataTime && (N.value = e.dataTime);
|
|
387
|
+
let t = (e) => {
|
|
388
|
+
let t = Number(e);
|
|
389
|
+
if (!(isNaN(t) || t >= 9999)) return t;
|
|
390
|
+
};
|
|
391
|
+
R.value = (Array.isArray(e.thresholdData) ? e.thresholdData : []).map((e) => ({
|
|
396
392
|
ele_code: String(e.ele_code || ""),
|
|
397
|
-
min:
|
|
398
|
-
max:
|
|
393
|
+
min: t(e.min ?? e.thresholdMin),
|
|
394
|
+
max: t(e.max ?? e.thresholdMax)
|
|
399
395
|
}));
|
|
400
|
-
let
|
|
401
|
-
|
|
402
|
-
stationName:
|
|
403
|
-
stationCode:
|
|
404
|
-
address:
|
|
405
|
-
stationStatus:
|
|
406
|
-
monitorElement:
|
|
407
|
-
serviceType:
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
evaporation:
|
|
417
|
-
|
|
396
|
+
let n = (Array.isArray(e.stationData) ? e.stationData : [])[0] || {};
|
|
397
|
+
console.log("stationItem", n), n && (A.value = {
|
|
398
|
+
stationName: n.station_name || n.ms_name || "",
|
|
399
|
+
stationCode: n.station_id_c || n.ms_code || "",
|
|
400
|
+
address: yt(n.latitude, n.longitude),
|
|
401
|
+
stationStatus: n.operating_status || "",
|
|
402
|
+
monitorElement: n.monitoring_elements || "",
|
|
403
|
+
serviceType: n.service_type || "",
|
|
404
|
+
dataTime: n.data_time || ""
|
|
405
|
+
}), n.datetime_bj && (N.value = n.datetime_bj), n && (P.value = {
|
|
406
|
+
temperature: X(n.air_temperature),
|
|
407
|
+
humidity: X(n.air_humidity),
|
|
408
|
+
windSpeed: X(n.wind_speed),
|
|
409
|
+
windDirection: X(n.wind_direction ?? n.windDirection),
|
|
410
|
+
hourPrecipitation: X(n.rainfall),
|
|
411
|
+
pressure: X(n.atmospheric_pressure),
|
|
412
|
+
evaporation: n.evaporation || X(n.evaporation),
|
|
413
|
+
par: n.photosynthetic_effective_radiation || X(n.photosynthetic_effective_radiation),
|
|
414
|
+
lightIntensity: n.light_intensity || X(n.light_intensity),
|
|
415
|
+
monitorTime: n.datetime_bj || ""
|
|
418
416
|
});
|
|
419
|
-
let
|
|
420
|
-
|
|
421
|
-
dailyMinTemp:
|
|
422
|
-
dailyMaxTemp:
|
|
423
|
-
dailyPrecipitation:
|
|
424
|
-
historyMinTemp:
|
|
425
|
-
historyMaxTemp:
|
|
426
|
-
historyMaxPrecipitation:
|
|
417
|
+
let r = (Array.isArray(e.stationDayData) ? e.stationDayData : [])[0] || {};
|
|
418
|
+
r !== void 0 && (F.value = {
|
|
419
|
+
dailyMinTemp: X(r.today_tem_min),
|
|
420
|
+
dailyMaxTemp: X(r.today_tem_max),
|
|
421
|
+
dailyPrecipitation: X(r.pre_time_0808 ?? r.pre_time_2020),
|
|
422
|
+
historyMinTemp: X(r.hist_tem_min),
|
|
423
|
+
historyMaxTemp: X(r.hist_tem_max),
|
|
424
|
+
historyMaxPrecipitation: X(r.hist_pre_max)
|
|
427
425
|
});
|
|
428
|
-
let
|
|
429
|
-
|
|
430
|
-
},
|
|
426
|
+
let i = Array.isArray(e.elementData) ? e.elementData : [];
|
|
427
|
+
i.length && (B.value = xt(i));
|
|
428
|
+
}, X = (e) => {
|
|
431
429
|
if (e == null || e === "") return null;
|
|
432
430
|
let t = Number(e);
|
|
433
431
|
return isNaN(t) ? e : t >= 9999 ? null : t;
|
|
434
|
-
},
|
|
435
|
-
temperature: "
|
|
436
|
-
wind: "
|
|
437
|
-
humidity: "
|
|
438
|
-
precipitation: "
|
|
439
|
-
pressure: "
|
|
440
|
-
},
|
|
441
|
-
let t =
|
|
432
|
+
}, yt = (e, t) => !e && !t ? "" : `N${e || ""} E${t || ""}`, bt = {
|
|
433
|
+
temperature: "tem",
|
|
434
|
+
wind: "win_s",
|
|
435
|
+
humidity: "rhu",
|
|
436
|
+
precipitation: "pre",
|
|
437
|
+
pressure: "prs"
|
|
438
|
+
}, Z = (e) => {
|
|
439
|
+
let t = bt[e];
|
|
442
440
|
if (!t) return;
|
|
443
|
-
let n =
|
|
444
|
-
if (n) return
|
|
441
|
+
let n = R.value.find((e) => e.ele_code === t);
|
|
442
|
+
if (!n) return;
|
|
443
|
+
let r = n.min !== void 0 && !isNaN(n.min), i = n.max !== void 0 && !isNaN(n.max);
|
|
444
|
+
if (!(!r && !i)) return {
|
|
445
445
|
min: n.min,
|
|
446
446
|
max: n.max
|
|
447
447
|
};
|
|
448
|
-
},
|
|
448
|
+
}, xt = (e) => {
|
|
449
|
+
console.log(e, "图表数据");
|
|
449
450
|
let t = e.map((e) => {
|
|
450
|
-
if (!e.
|
|
451
|
-
let t = new Date(e.
|
|
452
|
-
return isNaN(t.getTime()) ? e.
|
|
453
|
-
}), n = (t, n, r, i = "line", a) =>
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
451
|
+
if (!e.data_time) return "";
|
|
452
|
+
let t = new Date(e.data_time);
|
|
453
|
+
return isNaN(t.getTime()) ? e.data_time : `${String(t.getMonth() + 1).padStart(2, "0")}月${String(t.getDate()).padStart(2, "0")}日 ${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
|
|
454
|
+
}), n = (t, n, r, i = "line", a, o) => {
|
|
455
|
+
let s = {
|
|
456
|
+
name: n,
|
|
457
|
+
data: e.map((e) => X(e[t])).map((e) => e === null ? null : e),
|
|
458
|
+
color: r,
|
|
459
|
+
type: i,
|
|
460
|
+
thresholdRange: Z(a)
|
|
461
|
+
};
|
|
462
|
+
return o && (s.directions = e.map((e) => X(e[o]) ?? 0)), s;
|
|
463
|
+
};
|
|
460
464
|
return {
|
|
461
465
|
temperature: {
|
|
462
466
|
times: t,
|
|
463
467
|
unit: "℃",
|
|
464
|
-
series: [n("
|
|
468
|
+
series: [n("air_temperature", "正常值", "#00D9FF", "line", "temperature")]
|
|
465
469
|
},
|
|
466
470
|
wind: {
|
|
467
471
|
times: t,
|
|
468
|
-
unit: "
|
|
469
|
-
series: [n("
|
|
472
|
+
unit: "m/s",
|
|
473
|
+
series: [n("wind_speed", "正常值", "#00D9FF", "line", "wind", "wind_direction")]
|
|
470
474
|
},
|
|
471
475
|
humidity: {
|
|
472
476
|
times: t,
|
|
473
477
|
unit: "%",
|
|
474
|
-
series: [n("
|
|
478
|
+
series: [n("air_humidity", "正常值", "#00D9FF", "line", "humidity")]
|
|
475
479
|
},
|
|
476
480
|
precipitation: {
|
|
477
481
|
times: t,
|
|
478
482
|
unit: "mm",
|
|
479
|
-
series: [n("
|
|
483
|
+
series: [n("rainfall", "正常值", "#00D9FF", "bar", "precipitation")]
|
|
480
484
|
},
|
|
481
485
|
pressure: {
|
|
482
486
|
times: t,
|
|
483
487
|
unit: "hPa",
|
|
484
|
-
series: [n("
|
|
488
|
+
series: [n("atmospheric_pressure", "正常值", "#00D9FF", "line", "pressure")]
|
|
485
489
|
}
|
|
486
490
|
};
|
|
487
|
-
},
|
|
491
|
+
}, Q = (e) => {
|
|
488
492
|
let t = {};
|
|
489
493
|
return [
|
|
490
494
|
"temperature",
|
|
@@ -508,17 +512,17 @@ var O = (e) => {
|
|
|
508
512
|
})) : []
|
|
509
513
|
});
|
|
510
514
|
}), t;
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
},
|
|
514
|
-
if (!
|
|
515
|
-
|
|
516
|
-
let e =
|
|
515
|
+
}, St = (e) => {
|
|
516
|
+
z.value = e, v($);
|
|
517
|
+
}, $ = () => {
|
|
518
|
+
if (!I.value) return;
|
|
519
|
+
L ||= se.init(I.value);
|
|
520
|
+
let e = B.value[z.value];
|
|
517
521
|
if (!e || !e.times.length) {
|
|
518
|
-
|
|
522
|
+
L.clear();
|
|
519
523
|
return;
|
|
520
524
|
}
|
|
521
|
-
let t =
|
|
525
|
+
let t = z.value === "wind", n = e.series.some((e) => e.type === "bar"), r = e.series.map((r) => {
|
|
522
526
|
let i = {
|
|
523
527
|
name: r.name,
|
|
524
528
|
type: r.type || "line",
|
|
@@ -534,17 +538,17 @@ var O = (e) => {
|
|
|
534
538
|
4,
|
|
535
539
|
0,
|
|
536
540
|
0
|
|
537
|
-
], delete i.smooth, delete i.symbol, delete i.symbolSize), !n && !t && (i.areaStyle = { color: new
|
|
541
|
+
], delete i.smooth, delete i.symbol, delete i.symbolSize), !n && !t && (i.areaStyle = { color: new se.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
538
542
|
offset: 0,
|
|
539
|
-
color:
|
|
543
|
+
color: Ct(r.color || "#00D9FF", .3)
|
|
540
544
|
}, {
|
|
541
545
|
offset: 1,
|
|
542
|
-
color:
|
|
546
|
+
color: Ct(r.color || "#00D9FF", .01)
|
|
543
547
|
}]) }), t && r.directions && r.directions.length === e.times.length && (i.symbolRotate = (e, t) => (r.directions?.[t.dataIndex] ?? 0) + 180);
|
|
544
|
-
let a = r.thresholdRange ||
|
|
548
|
+
let a = r.thresholdRange || Z(z.value);
|
|
545
549
|
if (a) {
|
|
546
550
|
let { min: t, max: n } = a, r = [];
|
|
547
|
-
isNaN(t)
|
|
551
|
+
t !== void 0 && !isNaN(t) && r.push({
|
|
548
552
|
name: "阈值min",
|
|
549
553
|
yAxis: t,
|
|
550
554
|
label: {
|
|
@@ -556,7 +560,7 @@ var O = (e) => {
|
|
|
556
560
|
type: "dashed",
|
|
557
561
|
width: 1
|
|
558
562
|
}
|
|
559
|
-
}), isNaN(n)
|
|
563
|
+
}), n !== void 0 && !isNaN(n) && r.push({
|
|
560
564
|
name: "阈值max",
|
|
561
565
|
yAxis: n,
|
|
562
566
|
label: {
|
|
@@ -606,16 +610,16 @@ var O = (e) => {
|
|
|
606
610
|
let n = Number(e);
|
|
607
611
|
isNaN(n) || t.push(n);
|
|
608
612
|
});
|
|
609
|
-
let n = e.thresholdRange ||
|
|
610
|
-
n && (isNaN(Number(n.min))
|
|
613
|
+
let n = e.thresholdRange || Z(z.value);
|
|
614
|
+
n && (n.min !== void 0 && !isNaN(Number(n.min)) && t.push(Number(n.min)), n.max !== void 0 && !isNaN(Number(n.max)) && t.push(Number(n.max)));
|
|
611
615
|
}), !t.length) return {
|
|
612
616
|
min: void 0,
|
|
613
617
|
max: void 0
|
|
614
618
|
};
|
|
615
|
-
let n = Math.max(...t), r = Math.min(...t);
|
|
619
|
+
let n = Math.max(...t), r = Math.min(...t), i = n - r, a = i ? i * .1 : Math.abs(r) * .1 || 1;
|
|
616
620
|
return {
|
|
617
|
-
min: Math.floor(r
|
|
618
|
-
max: Math.ceil(n
|
|
621
|
+
min: Math.floor(r - a),
|
|
622
|
+
max: Math.ceil(n + a)
|
|
619
623
|
};
|
|
620
624
|
})(), a = {
|
|
621
625
|
tooltip: {
|
|
@@ -654,7 +658,8 @@ var O = (e) => {
|
|
|
654
658
|
axisLabel: {
|
|
655
659
|
color: "rgba(255,255,255,0.7)",
|
|
656
660
|
fontSize: 11,
|
|
657
|
-
interval:
|
|
661
|
+
interval: "auto",
|
|
662
|
+
rotate: 30
|
|
658
663
|
},
|
|
659
664
|
axisTick: { show: !1 },
|
|
660
665
|
splitLine: { show: !1 }
|
|
@@ -684,76 +689,70 @@ var O = (e) => {
|
|
|
684
689
|
},
|
|
685
690
|
series: r
|
|
686
691
|
};
|
|
687
|
-
|
|
688
|
-
},
|
|
689
|
-
|
|
690
|
-
},
|
|
691
|
-
|
|
692
|
-
},
|
|
693
|
-
|
|
694
|
-
},
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
if (g.mock) {
|
|
701
|
-
V.value = g.mockData.historyData?.[B.value] || [];
|
|
702
|
-
return;
|
|
703
|
-
}
|
|
704
|
-
if (!G("history")) {
|
|
705
|
-
V.value = [];
|
|
692
|
+
L.setOption(a, !0), L.resize();
|
|
693
|
+
}, Ct = (e, t) => `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t})`, wt = () => {
|
|
694
|
+
L?.resize();
|
|
695
|
+
}, Tt = () => {
|
|
696
|
+
V.value = !1, H.value = "day";
|
|
697
|
+
}, Et = (e) => {
|
|
698
|
+
H.value = e, Dt(), Ot();
|
|
699
|
+
}, Dt = () => {
|
|
700
|
+
let { startDate: e, endDate: t } = kt(H.value);
|
|
701
|
+
W.value = [e, t];
|
|
702
|
+
}, Ot = async () => {
|
|
703
|
+
if (!q("history")) {
|
|
704
|
+
U.value = [];
|
|
706
705
|
return;
|
|
707
706
|
}
|
|
708
|
-
let [e, t] =
|
|
707
|
+
let [e, t] = W.value.length === 2 ? W.value : [null, null], n = H.value === "day" ? "日统计" : "月统计";
|
|
709
708
|
if (!e || !t) {
|
|
710
|
-
|
|
709
|
+
U.value = [];
|
|
711
710
|
return;
|
|
712
711
|
}
|
|
713
712
|
try {
|
|
714
|
-
|
|
713
|
+
U.value = Mt(Y(await J("history", {
|
|
715
714
|
startDate: e,
|
|
716
715
|
endDate: t,
|
|
717
716
|
type: n,
|
|
718
|
-
stationIdC:
|
|
719
|
-
})),
|
|
717
|
+
stationIdC: k.value
|
|
718
|
+
})), H.value);
|
|
720
719
|
} catch (e) {
|
|
721
|
-
console.error("历史数据加载失败", e),
|
|
720
|
+
console.error("历史数据加载失败", e), U.value = [];
|
|
722
721
|
}
|
|
723
|
-
},
|
|
722
|
+
}, kt = (e) => {
|
|
724
723
|
let t = /* @__PURE__ */ new Date();
|
|
725
724
|
if (e === "day") {
|
|
726
725
|
let e = new Date(t), n = new Date(t);
|
|
727
726
|
return n.setDate(e.getDate() - 6), {
|
|
728
|
-
startDate:
|
|
729
|
-
endDate:
|
|
727
|
+
startDate: At(n),
|
|
728
|
+
endDate: At(e)
|
|
730
729
|
};
|
|
731
730
|
}
|
|
732
731
|
let n = new Date(t.getFullYear(), t.getMonth(), 1);
|
|
733
732
|
return {
|
|
734
|
-
startDate:
|
|
735
|
-
endDate:
|
|
733
|
+
startDate: jt(new Date(t.getFullYear(), t.getMonth() - 11, 1)),
|
|
734
|
+
endDate: jt(n)
|
|
736
735
|
};
|
|
737
|
-
},
|
|
736
|
+
}, At = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, jt = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`, Mt = (e, t) => Array.isArray(e) ? e.map((e) => ({
|
|
738
737
|
datetime_bj: e.datetime_bj || e.date || e.month || "",
|
|
739
|
-
pre_time_0808:
|
|
740
|
-
pre_time_2020:
|
|
741
|
-
tem_max:
|
|
742
|
-
tem_min:
|
|
743
|
-
humidity:
|
|
744
|
-
win_s_inst_max:
|
|
745
|
-
})) : [],
|
|
746
|
-
let e =
|
|
738
|
+
pre_time_0808: X(e.pre_time_0808 ?? e.precipitation),
|
|
739
|
+
pre_time_2020: X(e.pre_time_2020 ?? e.precipitation),
|
|
740
|
+
tem_max: X(e.tem_max ?? e.temperature),
|
|
741
|
+
tem_min: X(e.tem_min ?? e.temperature),
|
|
742
|
+
humidity: X(e.rhu ?? e.humidity),
|
|
743
|
+
win_s_inst_max: X(e.win_s_inst_max ?? e.windSpeed)
|
|
744
|
+
})) : [], Nt = () => {
|
|
745
|
+
let e = U.value.map((e, t) => ({
|
|
747
746
|
序号: t + 1,
|
|
748
747
|
日期: e.datetime_bj || "",
|
|
749
|
-
降水08:
|
|
750
|
-
降水20:
|
|
751
|
-
最高温:
|
|
752
|
-
最低温:
|
|
753
|
-
风速:
|
|
754
|
-
})), t =
|
|
755
|
-
new
|
|
756
|
-
fileName: `${
|
|
748
|
+
降水08: K(e.pre_time_0808, "mm"),
|
|
749
|
+
降水20: K(e.pre_time_2020, "mm"),
|
|
750
|
+
最高温: K(e.tem_max, "℃"),
|
|
751
|
+
最低温: K(e.tem_min, "℃"),
|
|
752
|
+
风速: K(e.win_s_inst_max, "m/s")
|
|
753
|
+
})), t = H.value === "day" ? "日统计" : "月统计";
|
|
754
|
+
new le.default({
|
|
755
|
+
fileName: `${A.value.stationName || g.stationName}_历史数据_${t}_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
757
756
|
datas: [{
|
|
758
757
|
sheetData: e,
|
|
759
758
|
sheetName: t,
|
|
@@ -790,106 +789,91 @@ var O = (e) => {
|
|
|
790
789
|
}]
|
|
791
790
|
}).saveExcel();
|
|
792
791
|
};
|
|
793
|
-
|
|
794
|
-
e &&
|
|
795
|
-
!
|
|
792
|
+
ie(M, (e) => {
|
|
793
|
+
e && v(() => {
|
|
794
|
+
!L && I.value ? $() : L?.resize();
|
|
796
795
|
});
|
|
797
796
|
});
|
|
798
|
-
function
|
|
799
|
-
|
|
797
|
+
function Pt() {
|
|
798
|
+
M.value = !0, n.value = !0, gt().finally(() => {
|
|
800
799
|
n.value = !1;
|
|
801
800
|
});
|
|
802
801
|
}
|
|
803
|
-
return
|
|
804
|
-
window.addEventListener("resize",
|
|
805
|
-
e.componentName === "HdFarmStationDialog" && (
|
|
802
|
+
return x(() => {
|
|
803
|
+
window.addEventListener("resize", wt), t?.on("toComponent", (e) => {
|
|
804
|
+
e.componentName === "HdFarmStationDialog" && (k.value = e.msCode || "", Pt());
|
|
806
805
|
});
|
|
807
|
-
}),
|
|
808
|
-
window.removeEventListener("resize",
|
|
806
|
+
}), b(() => {
|
|
807
|
+
window.removeEventListener("resize", wt), L &&= (L.dispose(), null);
|
|
809
808
|
}), (t, r) => {
|
|
810
|
-
let g = o,
|
|
811
|
-
return
|
|
809
|
+
let g = o, _ = a, v = i, b = l, x = c, C = s;
|
|
810
|
+
return S(), ee(d, { to: "body" }, [O(p("div", ue, [O((S(), f("div", {
|
|
812
811
|
class: "StationPop",
|
|
813
812
|
"element-loading-text": "加载中...",
|
|
814
813
|
"element-loading-background": "rgba(0, 0, 0, 0.7)",
|
|
815
|
-
style:
|
|
814
|
+
style: ne(e.componentStyle)
|
|
816
815
|
}, [
|
|
817
816
|
p("div", {
|
|
818
817
|
class: "StationPop-close",
|
|
819
|
-
onClick:
|
|
818
|
+
onClick: mt
|
|
820
819
|
}, [h(g, { class: "StationPop-close-icon" }, {
|
|
821
|
-
default:
|
|
820
|
+
default: D(() => [h(E(ae))]),
|
|
822
821
|
_: 1
|
|
823
822
|
})]),
|
|
824
|
-
p("div",
|
|
825
|
-
p("div",
|
|
826
|
-
p("div",
|
|
827
|
-
|
|
828
|
-
p("div", Se, [r[
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
p("div",
|
|
834
|
-
p("div",
|
|
835
|
-
p("div",
|
|
836
|
-
p("div",
|
|
837
|
-
p("div", He, [r[10] ||= p("span", { class: "StationPop-realtimeLabel" }, "气压:", -1), p("span", Ue, C(W(M.value.pressure, "hPa")), 1)]),
|
|
838
|
-
p("div", We, [r[11] ||= p("span", { class: "StationPop-realtimeLabel" }, "能见度:", -1), p("span", Ge, C(W(M.value.visibility, "m")), 1)]),
|
|
839
|
-
p("div", Ke, [r[12] ||= p("span", { class: "StationPop-realtimeLabel" }, "蒸发:", -1), p("span", qe, C(W(M.value.evaporation, "mm")), 1)]),
|
|
840
|
-
p("div", Je, [r[13] ||= p("span", { class: "StationPop-realtimeLabel" }, "光照强度:", -1), p("span", Ye, C(W(M.value.lightIntensity, "lux")), 1)]),
|
|
841
|
-
p("div", Xe, [r[14] ||= p("span", { class: "StationPop-realtimeLabel" }, "光合有效辐射:", -1), p("span", Ze, C(W(M.value.par, "μmol/m²/s")), 1)])
|
|
823
|
+
p("div", de, T(A.value.stationName), 1),
|
|
824
|
+
p("div", fe, [A.value.dataTime ? (S(), f("span", pe, "数据时间:" + T(A.value.dataTime), 1)) : (S(), f("span", me, "数据时间:--"))]),
|
|
825
|
+
p("div", he, [p("div", ge, [p("div", _e, [r[1] ||= p("span", { class: "StationPop-infoLabel" }, "站 号:", -1), p("span", ve, T(A.value.stationCode || "--"), 1)]), p("div", ye, [r[2] ||= p("span", { class: "StationPop-infoLabel" }, "位 置:", -1), p("span", be, T(A.value.address || "--"), 1)])])]),
|
|
826
|
+
p("div", xe, [
|
|
827
|
+
p("div", Se, [r[11] ||= p("div", { class: "StationPop-sectionTitle" }, [p("span", { class: "StationPop-sectionBar" }), m(" 实时监测 ")], -1), p("div", Ce, [
|
|
828
|
+
p("div", we, [r[3] ||= p("span", { class: "StationPop-realtimeLabel" }, "温度:", -1), p("span", Te, T(K(P.value.temperature, "℃")), 1)]),
|
|
829
|
+
p("div", Ee, [r[4] ||= p("span", { class: "StationPop-realtimeLabel" }, "湿度:", -1), p("span", De, T(K(P.value.humidity, "%")), 1)]),
|
|
830
|
+
p("div", Oe, [r[5] ||= p("span", { class: "StationPop-realtimeLabel" }, "风速风向:", -1), p("span", ke, T(ht(P.value)), 1)]),
|
|
831
|
+
p("div", Ae, [r[6] ||= p("span", { class: "StationPop-realtimeLabel" }, "降水量:", -1), p("span", je, T(K(P.value.hourPrecipitation, "mm")), 1)]),
|
|
832
|
+
p("div", Me, [r[7] ||= p("span", { class: "StationPop-realtimeLabel" }, "气压:", -1), p("span", Ne, T(K(P.value.pressure, "hPa")), 1)]),
|
|
833
|
+
p("div", Pe, [r[8] ||= p("span", { class: "StationPop-realtimeLabel" }, "蒸发:", -1), p("span", Fe, T(K(P.value.evaporation, "mm")), 1)]),
|
|
834
|
+
p("div", Ie, [r[9] ||= p("span", { class: "StationPop-realtimeLabel" }, "光照强度:", -1), p("span", Le, T(K(P.value.lightIntensity, "lux")), 1)]),
|
|
835
|
+
p("div", Re, [r[10] ||= p("span", { class: "StationPop-realtimeLabel" }, "光合有效辐射:", -1), p("span", ze, T(K(P.value.par, "μmol/m²/s")), 1)])
|
|
842
836
|
])]),
|
|
843
|
-
p("div",
|
|
844
|
-
r[
|
|
845
|
-
p("div",
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
]),
|
|
853
|
-
p("button", {
|
|
854
|
-
class: "StationPop-historyBtn",
|
|
855
|
-
onClick: zt
|
|
856
|
-
}, [h(g, null, {
|
|
857
|
-
default: T(() => [h(w(le))]),
|
|
858
|
-
_: 1
|
|
859
|
-
}), r[22] ||= m(" 历史数据 ", -1)])
|
|
860
|
-
]),
|
|
861
|
-
p("div", ft, [p("div", pt, [(b(), f(u, null, S(wt, (e) => p("div", {
|
|
837
|
+
p("div", Be, [r[18] ||= p("div", { class: "StationPop-sectionTitle" }, [p("span", { class: "StationPop-sectionBar" }), m(" 统计信息 ")], -1), p("div", Ve, [
|
|
838
|
+
p("div", He, [r[12] ||= p("span", { class: "StationPop-statisticsLabel" }, "日最低温度:", -1), p("span", Ue, T(K(F.value.dailyMinTemp, "℃")), 1)]),
|
|
839
|
+
p("div", We, [r[13] ||= p("span", { class: "StationPop-statisticsLabel" }, "日最高温度:", -1), p("span", Ge, T(K(F.value.dailyMaxTemp, "℃")), 1)]),
|
|
840
|
+
p("div", Ke, [r[14] ||= p("span", { class: "StationPop-statisticsLabel" }, "日累计降水:", -1), p("span", qe, T(K(F.value.dailyPrecipitation, "mm")), 1)]),
|
|
841
|
+
p("div", Je, [r[15] ||= p("span", { class: "StationPop-statisticsLabel" }, "历史最低温:", -1), p("span", Ye, T(K(F.value.historyMinTemp, "℃")), 1)]),
|
|
842
|
+
p("div", Xe, [r[16] ||= p("span", { class: "StationPop-statisticsLabel" }, "历史最高温:", -1), p("span", Ze, T(K(F.value.historyMaxTemp, "℃")), 1)]),
|
|
843
|
+
p("div", Qe, [r[17] ||= p("span", { class: "StationPop-statisticsLabel" }, "历史最大累积降水:", -1), p("span", $e, T(K(F.value.historyMaxPrecipitation, "mm")), 1)])
|
|
844
|
+
])]),
|
|
845
|
+
p("div", et, [p("div", tt, [(S(), f(u, null, w(ft, (e) => p("div", {
|
|
862
846
|
key: e.value,
|
|
863
|
-
class:
|
|
864
|
-
onClick: (t) =>
|
|
865
|
-
},
|
|
847
|
+
class: y(["StationPop-tab", { "StationPop-tab--active": z.value === e.value }]),
|
|
848
|
+
onClick: (t) => St(e.value)
|
|
849
|
+
}, T(e.label), 11, nt)), 64))]), p("div", {
|
|
866
850
|
ref_key: "chartRef",
|
|
867
|
-
ref:
|
|
851
|
+
ref: I,
|
|
868
852
|
class: "StationPop-chart"
|
|
869
853
|
}, null, 512)])
|
|
870
854
|
])
|
|
871
|
-
], 4)), [[
|
|
872
|
-
p("div",
|
|
855
|
+
], 4)), [[C, n.value]]), V.value ? (S(), f("div", rt, [p("div", it, [
|
|
856
|
+
p("div", at, [p("div", ot, [r[19] ||= p("span", null, "历史数据", -1), p("span", st, T(A.value.stationName || e.stationName), 1)]), p("button", {
|
|
873
857
|
class: "StationPop-historyClose",
|
|
874
|
-
onClick:
|
|
858
|
+
onClick: Tt
|
|
875
859
|
}, "✕")]),
|
|
876
|
-
p("div",
|
|
860
|
+
p("div", ct, [(S(), f(u, null, w(pt, (e) => p("button", {
|
|
877
861
|
key: e.value,
|
|
878
|
-
class:
|
|
879
|
-
onClick: (t) =>
|
|
880
|
-
},
|
|
881
|
-
default:
|
|
882
|
-
modelValue:
|
|
883
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
862
|
+
class: y(["StationPop-historyTab", { "StationPop-historyTab--active": H.value === e.value }]),
|
|
863
|
+
onClick: (t) => Et(e.value)
|
|
864
|
+
}, T(e.label), 11, lt)), 64)), p("div", ut, [h(v, { locale: E(ce) }, {
|
|
865
|
+
default: D(() => [h(_, {
|
|
866
|
+
modelValue: W.value,
|
|
867
|
+
"onUpdate:modelValue": r[0] ||= (e) => W.value = e,
|
|
884
868
|
clearable: !1,
|
|
885
869
|
class: "StationPop-historyDatePicker",
|
|
886
870
|
"popper-class": "StationPop-historyDatePickerPopper",
|
|
887
|
-
type:
|
|
888
|
-
"value-format":
|
|
889
|
-
"start-placeholder":
|
|
890
|
-
"end-placeholder":
|
|
871
|
+
type: H.value === "day" ? "daterange" : "monthrange",
|
|
872
|
+
"value-format": H.value === "day" ? "YYYY-MM-DD" : "YYYY-MM",
|
|
873
|
+
"start-placeholder": H.value === "day" ? "开始日期" : "开始月份",
|
|
874
|
+
"end-placeholder": H.value === "day" ? "结束日期" : "结束月份",
|
|
891
875
|
size: "small",
|
|
892
|
-
onChange:
|
|
876
|
+
onChange: Ot
|
|
893
877
|
}, null, 8, [
|
|
894
878
|
"modelValue",
|
|
895
879
|
"type",
|
|
@@ -900,79 +884,79 @@ var O = (e) => {
|
|
|
900
884
|
_: 1
|
|
901
885
|
}, 8, ["locale"]), p("button", {
|
|
902
886
|
class: "StationPop-historyExport",
|
|
903
|
-
onClick:
|
|
887
|
+
onClick: Nt
|
|
904
888
|
}, [h(g, null, {
|
|
905
|
-
default:
|
|
889
|
+
default: D(() => [h(E(oe))]),
|
|
906
890
|
_: 1
|
|
907
|
-
}), r[
|
|
908
|
-
p("div",
|
|
909
|
-
data:
|
|
891
|
+
}), r[20] ||= m(" 导出 ", -1)])])]),
|
|
892
|
+
p("div", dt, [h(x, {
|
|
893
|
+
data: U.value,
|
|
910
894
|
class: "StationPop-historyTable",
|
|
911
895
|
style: { width: "100%" },
|
|
912
896
|
"empty-text": "暂无数据"
|
|
913
897
|
}, {
|
|
914
|
-
default:
|
|
915
|
-
h(
|
|
898
|
+
default: D(() => [
|
|
899
|
+
h(b, {
|
|
916
900
|
type: "index",
|
|
917
901
|
label: "序号",
|
|
918
902
|
width: "60",
|
|
919
903
|
align: "center"
|
|
920
904
|
}),
|
|
921
|
-
h(
|
|
922
|
-
label:
|
|
905
|
+
h(b, {
|
|
906
|
+
label: H.value === "day" ? "日期" : "月份",
|
|
923
907
|
"min-width": "160",
|
|
924
908
|
"show-overflow-tooltip": "",
|
|
925
909
|
align: "left"
|
|
926
910
|
}, {
|
|
927
|
-
default:
|
|
911
|
+
default: D(({ row: e }) => [p("span", null, T(e.datetime_bj || "--"), 1)]),
|
|
928
912
|
_: 1
|
|
929
913
|
}, 8, ["label"]),
|
|
930
|
-
h(
|
|
914
|
+
h(b, {
|
|
931
915
|
label: "累计降水量08",
|
|
932
916
|
"min-width": "100",
|
|
933
917
|
align: "right"
|
|
934
918
|
}, {
|
|
935
|
-
default:
|
|
919
|
+
default: D(({ row: e }) => [p("span", null, T(K(e.pre_time_0808, "mm")), 1)]),
|
|
936
920
|
_: 1
|
|
937
921
|
}),
|
|
938
|
-
h(
|
|
922
|
+
h(b, {
|
|
939
923
|
label: "累计降水量20",
|
|
940
924
|
"min-width": "100",
|
|
941
925
|
align: "right"
|
|
942
926
|
}, {
|
|
943
|
-
default:
|
|
927
|
+
default: D(({ row: e }) => [p("span", null, T(K(e.pre_time_2020, "mm")), 1)]),
|
|
944
928
|
_: 1
|
|
945
929
|
}),
|
|
946
|
-
h(
|
|
930
|
+
h(b, {
|
|
947
931
|
label: "最高温",
|
|
948
932
|
"min-width": "80",
|
|
949
933
|
align: "right"
|
|
950
934
|
}, {
|
|
951
|
-
default:
|
|
935
|
+
default: D(({ row: e }) => [p("span", null, T(K(e.tem_max, "℃")), 1)]),
|
|
952
936
|
_: 1
|
|
953
937
|
}),
|
|
954
|
-
h(
|
|
938
|
+
h(b, {
|
|
955
939
|
label: "最低温",
|
|
956
940
|
"min-width": "80",
|
|
957
941
|
align: "right"
|
|
958
942
|
}, {
|
|
959
|
-
default:
|
|
943
|
+
default: D(({ row: e }) => [p("span", null, T(K(e.tem_min, "℃")), 1)]),
|
|
960
944
|
_: 1
|
|
961
945
|
}),
|
|
962
|
-
h(
|
|
946
|
+
h(b, {
|
|
963
947
|
label: "最大风力",
|
|
964
948
|
"min-width": "120",
|
|
965
949
|
align: "left"
|
|
966
950
|
}, {
|
|
967
|
-
default:
|
|
951
|
+
default: D(({ row: e }) => [p("span", null, T(K(e.win_s_inst_max, "m/s")), 1)]),
|
|
968
952
|
_: 1
|
|
969
953
|
})
|
|
970
954
|
]),
|
|
971
955
|
_: 1
|
|
972
956
|
}, 8, ["data"])])
|
|
973
|
-
])])) : te("", !0)], 512), [[
|
|
957
|
+
])])) : te("", !0)], 512), [[re, M.value]])]);
|
|
974
958
|
};
|
|
975
959
|
}
|
|
976
|
-
}), [["__scopeId", "data-v-
|
|
960
|
+
}), [["__scopeId", "data-v-353e3419"]]);
|
|
977
961
|
//#endregion
|
|
978
|
-
export {
|
|
962
|
+
export { A as a, j as i, N as n, M as o, k as r, P as t };
|