nxd-plugin 1.8.18 → 1.8.20

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.
Files changed (102) hide show
  1. package/dist/chunks/YCServiceSummary-BtvuJK6i.mjs +2 -0
  2. package/dist/chunks/{component-AiChat-DyGMpz5Q.mjs → component-AiChat-eZQfj_Yt.mjs} +740 -703
  3. package/dist/chunks/{component-AqiMonitor-CQTn29-8.mjs → component-AqiMonitor-GecRSbVS.mjs} +1 -1
  4. package/dist/chunks/{component-ChartCumulativePre-BO1v1Bjk.mjs → component-ChartCumulativePre-CldPuL7s.mjs} +2 -2
  5. package/dist/chunks/{component-ChartServiceMaterial-DpStK0Jb.mjs → component-ChartServiceMaterial-DxLDMmSP.mjs} +2 -2
  6. package/dist/chunks/{component-Duty-CJGLzr-m.mjs → component-Duty-B5XqGJa6.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic-ChIhpUsj.mjs → component-EarlyWarningStatistic-Cxk6_30Z.mjs} +2 -2
  8. package/dist/chunks/{component-EarlyWarningStatistic2-Ntabj0O3.mjs → component-EarlyWarningStatistic2-CiIKhhvg.mjs} +2 -2
  9. package/dist/chunks/component-Forecast72h-D8Hq9xop.mjs +564 -0
  10. package/dist/chunks/{component-GeologyLiveAlarm-DMPdaI5F.mjs → component-GeologyLiveAlarm-Po9bQd5F.mjs} +2 -2
  11. package/dist/chunks/{component-GridForecastMsg-HLMnuEAT.mjs → component-GridForecastMsg-CwjT0ESP.mjs} +2 -2
  12. package/dist/chunks/{component-HDSeaLegend-C3H_-Fta.mjs → component-HDSeaLegend-DvyS7ixZ.mjs} +1 -1
  13. package/dist/chunks/{component-HdCameraList-ZTUmiEP7.mjs → component-HdCameraList-Xd9H8W06.mjs} +95 -82
  14. package/dist/chunks/component-HdFarmStation-CgVOFk0d.mjs +231 -0
  15. package/dist/chunks/{component-HdObservation-ZDPieMjX.mjs → component-HdFarmStationDialog-BPVUbJoh.mjs} +743 -464
  16. package/dist/chunks/{component-HdForecastProducts-BgaAZUiu.mjs → component-HdForecastProducts-BACFKA-T.mjs} +2 -2
  17. package/dist/chunks/{component-HdHeatChart-h79JOPxQ.mjs → component-HdHeatChart-D2A-8GOn.mjs} +2 -2
  18. package/dist/chunks/{component-HdHeatChartDialog-DMPAE8Xw.mjs → component-HdHeatChartDialog-skzuN7ms.mjs} +8 -8
  19. package/dist/chunks/{component-HdHeatService-CY_6j4jf.mjs → component-HdHeatService-Ctd2hryU.mjs} +2 -2
  20. package/dist/chunks/{component-HdInsectDetailList-B77361lS.mjs → component-HdInsectDetailList-DjfXF9TM.mjs} +2 -2
  21. package/dist/chunks/{component-HdInsectList-DJWq8LX7.mjs → component-HdInsectList-9ax_bYM5.mjs} +125 -109
  22. package/dist/chunks/component-HdObservation-DnvWecu3.mjs +540 -0
  23. package/dist/chunks/{component-HdPreSituation-dtj-phF9.mjs → component-HdPreSituation-ue6NoeLX.mjs} +4 -4
  24. package/dist/chunks/{component-HdQxServiceEffects-ByE3W9-C.mjs → component-HdQxServiceEffects-BA9YprJH.mjs} +2 -2
  25. package/dist/chunks/{component-HdRadarList-BhYlNWNn.mjs → component-HdRadarList-3Ku_EPAc.mjs} +3 -3
  26. package/dist/chunks/{component-HdRadarTime-BPFQFQY1.mjs → component-HdRadarTime-DJ9remuQ.mjs} +4 -4
  27. package/dist/chunks/{component-HdRadarTimeLine-CAuqo3zA.mjs → component-HdRadarTimeLine-AioIXBug.mjs} +4 -4
  28. package/dist/chunks/component-HdRisk-EEYUOp-m.mjs +303 -0
  29. package/dist/chunks/{component-HdSeaCase-SLplcTIQ.mjs → component-HdSeaCase-wtcKbkHt.mjs} +2 -2
  30. package/dist/chunks/{component-HdServiceMarterial-Pyv1Hgyg.mjs → component-HdServiceMarterial-DVDh4bGB.mjs} +3 -3
  31. package/dist/chunks/{component-HdServiceRequirements-C1TomMII.mjs → component-HdServiceRequirements-DE09S30M.mjs} +3 -3
  32. package/dist/chunks/{component-HdSoil-DAwTp9q5.mjs → component-HdSoil-iwfixKyQ.mjs} +46 -34
  33. package/dist/chunks/{component-HdSoilDetailList-BAOBs-r6.mjs → component-HdSoilDetailList-BU8dwoxC.mjs} +2 -2
  34. package/dist/chunks/{component-HdStationTem-Bt8gMR3v.mjs → component-HdStationTem-CXQDp4ci.mjs} +4 -4
  35. package/dist/chunks/{component-HdSuggestion-C6ziTTKZ.mjs → component-HdSuggestion-tHm1YDjK.mjs} +3 -3
  36. package/dist/chunks/component-HdThreeWeatherTrend-DMs-kYE2.mjs +273 -0
  37. package/dist/chunks/{component-HdWaveForcast-BAgLIJ5o.mjs → component-HdWaveForcast-CUYTGP0P.mjs} +66 -66
  38. package/dist/chunks/{component-HighQuality-B9BN2klR.mjs → component-HighQuality-DxtfroSS.mjs} +2 -2
  39. package/dist/chunks/{component-HighWayEarlyWarningRed-BKACtnT9.mjs → component-HighWayEarlyWarningRed-CrsIemqD.mjs} +2 -2
  40. package/dist/chunks/{component-HighWayFreeze-hvUY4ZTE.mjs → component-HighWayFreeze-Cm4-2vG_.mjs} +2 -2
  41. package/dist/chunks/{component-HighwayLiveAlarm-aRC9FTYG.mjs → component-HighwayLiveAlarm-C5qaO18J.mjs} +2 -2
  42. package/dist/chunks/{component-HighwayLiveAlarmNew-BKGQST-V.mjs → component-HighwayLiveAlarmNew-jcRvhac3.mjs} +3 -3
  43. package/dist/chunks/{component-HighwayStations-AMR6QPFN.mjs → component-HighwayStations-BrXW5rvQ.mjs} +2 -2
  44. package/dist/chunks/{component-HighwayWeatherForecast-CzJqDupd.mjs → component-HighwayWeatherForecast-DUQ4q-Bi.mjs} +43 -42
  45. package/dist/chunks/{component-IframeWeb-BS6VJ8f1.mjs → component-IframeWeb-B3VnWZj-.mjs} +1 -1
  46. package/dist/chunks/{component-ImageGeneration-B3gc74Sv.mjs → component-ImageGeneration-oBto5Eq9.mjs} +1 -1
  47. package/dist/chunks/{component-IntroducePic-biCcYGK2.mjs → component-IntroducePic-CuwoxRwE.mjs} +2 -2
  48. package/dist/chunks/{component-LithiumBatteryMiningArea-qREysEH3.mjs → component-LithiumBatteryMiningArea-BIaidiUp.mjs} +2 -2
  49. package/dist/chunks/{component-MapPopup-i-zUuhws.mjs → component-MapPopup-P8ptttZR.mjs} +1 -1
  50. package/dist/chunks/{component-MaterialPreview-BLUOsXhG.mjs → component-MaterialPreview-WZIwDNyk.mjs} +2 -2
  51. package/dist/chunks/{component-PieLegend-NhO_f7iC.mjs → component-PieLegend-CqB44kj5.mjs} +1 -1
  52. package/dist/chunks/{component-PrecipitationRanking-cxmtPL79.mjs → component-PrecipitationRanking-DTK8WJlr.mjs} +4 -4
  53. package/dist/chunks/{component-RadarChart-BCsX0Qfv.mjs → component-RadarChart-DjtpuNKC.mjs} +2 -2
  54. package/dist/chunks/{component-RadarLegend-D8ZGTpku.mjs → component-RadarLegend-DcbbK__o.mjs} +1 -1
  55. package/dist/chunks/{component-RadarShortTerm-CrHV53oG.mjs → component-RadarShortTerm-8caOV5kH.mjs} +4 -4
  56. package/dist/chunks/{component-RadarTime-CLfv4ONE.mjs → component-RadarTime-BBxqp1rN.mjs} +2 -2
  57. package/dist/chunks/{component-RenderMarkdown-DXjI2Dt3.mjs → component-RenderMarkdown-CWPJDN6s.mjs} +2 -2
  58. package/dist/chunks/{component-ReservoirLiveAlarm-DqwE8pqm.mjs → component-ReservoirLiveAlarm-66CUDeOa.mjs} +3 -3
  59. package/dist/chunks/{component-ServiceMaterial-uYRmU0z5.mjs → component-ServiceMaterial-CAC77NxJ.mjs} +2 -2
  60. package/dist/chunks/{component-ServiceMaterialsBtn-BVYUgjET.mjs → component-ServiceMaterialsBtn-C2JJur1T.mjs} +1 -1
  61. package/dist/chunks/{component-StationDialog-DgnfPEdU.mjs → component-StationDialog-D3s6lP7O.mjs} +5 -6
  62. package/dist/chunks/{component-StationList-Clj57lo5.mjs → component-StationList-CMhLztb5.mjs} +4 -5
  63. package/dist/chunks/{component-TimeBasedForecast-CKftV77z.mjs → component-TimeBasedForecast-Bnev7gdd.mjs} +4 -4
  64. package/dist/chunks/{component-Typhoon-Cfx0pQmJ.mjs → component-Typhoon-DuMAb4Z0.mjs} +2 -2
  65. package/dist/chunks/{component-WarningLine-DSCnNisF.mjs → component-WarningLine--LOMZXV2.mjs} +2 -2
  66. package/dist/chunks/{component-WarningSignal-BBmcWZym.mjs → component-WarningSignal-CeKOnKNj.mjs} +3 -3
  67. package/dist/chunks/{component-WeatherForecast-id_hUWFm.mjs → component-WeatherForecast-DH7uOTs2.mjs} +10 -6
  68. package/dist/chunks/{component-YCDataMonitor-COyI5fxU.mjs → component-YCDataMonitor-BwJTbDdw.mjs} +2 -2
  69. package/dist/chunks/{component-YCDataService-Bcjvc6_l.mjs → component-YCDataService-B0U5NRE8.mjs} +4 -4
  70. package/dist/chunks/{component-YCHighWaySummary-BMnak3MG.mjs → component-YCHighWaySummary-BZS7pCgV.mjs} +2 -2
  71. package/dist/chunks/{component-YCHome-BIZpF0zw.mjs → component-YCHome-2VOqUGRK.mjs} +4 -4
  72. package/dist/chunks/{component-YCHomeLegend-BZO9QXdN.mjs → component-YCHomeLegend-usJNx7Jv.mjs} +1 -1
  73. package/dist/chunks/{component-YCLoginNew-D3zPZcAM.mjs → component-YCLoginNew-Wg_A8wqh.mjs} +3 -3
  74. package/dist/chunks/component-YCServiceSummary-CXdQVjdO.mjs +15 -0
  75. package/dist/components/HdFarmStation/HdFarmStation.vue.d.ts +48 -0
  76. package/dist/components/HdFarmStationDialog/HdFarmStationDialog.vue.d.ts +94 -0
  77. package/dist/components/HdHeatChart/HdHeatChart.vue.d.ts +1 -1
  78. package/dist/components/HdRisk/HdRisk.vue.d.ts +1 -0
  79. package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +2 -0
  80. package/dist/index.d.ts +5 -1
  81. package/dist/nxd-plugin.mjs +75 -72
  82. package/dist/styles/component-AiChat.css +1 -1
  83. package/dist/styles/component-Forecast72h.css +1 -1
  84. package/dist/styles/component-HdCameraList.css +1 -1
  85. package/dist/styles/component-HdFarmStation.css +1 -0
  86. package/dist/styles/component-HdFarmStationDialog.css +1 -0
  87. package/dist/styles/component-HdHeatChartDialog.css +1 -1
  88. package/dist/styles/component-HdInsectList.css +1 -1
  89. package/dist/styles/component-HdRadarTime.css +1 -1
  90. package/dist/styles/component-HdRadarTimeLine.css +1 -1
  91. package/dist/styles/component-HdRisk.css +1 -1
  92. package/dist/styles/component-HdSoil.css +1 -1
  93. package/dist/styles/component-HdThreeWeatherTrend.css +1 -1
  94. package/dist/styles/component-HdWaveForcast.css +1 -1
  95. package/dist/styles/component-StationDialog.css +1 -1
  96. package/dist/styles/component-WeatherForecast.css +1 -1
  97. package/dist/styles/component-YCLoginNew.css +1 -1
  98. package/dist/styles/component-YCServiceSummary.css +1 -0
  99. package/package.json +1 -1
  100. package/dist/chunks/component-Forecast72h-s8yBgKV2.mjs +0 -565
  101. package/dist/chunks/component-HdRisk-BsYZCgLI.mjs +0 -236
  102. package/dist/chunks/component-HdThreeWeatherTrend-CJMs1P9m.mjs +0 -363
@@ -1,15 +1,99 @@
1
1
  import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
- import { n } from "./component-AqiMonitor-CQTn29-8.mjs";
3
- import { i as r } from "./component-AiChat-DyGMpz5Q.mjs";
4
- import "./component-Forecast72h-s8yBgKV2.mjs";
5
- import { ElIcon as i, ElLoadingDirective as a, ElOption as o, ElSelect as s } from "element-plus/es";
6
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createStaticVNode as ee, createVNode as m, defineComponent as h, getCurrentInstance as te, nextTick as ne, normalizeClass as re, normalizeStyle as ie, onBeforeUnmount as ae, onMounted as oe, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as se, withCtx as b, withDirectives as ce } from "vue";
7
- import { Download as le } from "@element-plus/icons-vue";
8
- import * as x from "echarts";
9
- import { ElMessage as ue } from "element-plus";
10
- import "element-plus/dist/index.css";
11
- //#region node_modules/js-export-excel/lib/index.js
12
- var S = /* @__PURE__ */ t(((e, t) => {
2
+ import { n } from "./component-AqiMonitor-GecRSbVS.mjs";
3
+ import { i as r } from "./component-AiChat-eZQfj_Yt.mjs";
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 ne, nextTick as _, normalizeClass as v, normalizeStyle as re, onBeforeUnmount as y, onMounted as ie, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, vShow as ae, watch as oe, withCtx as T, withDirectives as E } from "vue";
6
+ import { Close as se, Download as ce, Histogram as le } from "@element-plus/icons-vue";
7
+ import * as D from "echarts";
8
+ import "element-plus/es/components/date-picker/style/css";
9
+ import "element-plus/es/components/table/style/css";
10
+ import "element-plus/es/components/table-column/style/css";
11
+ import ue from "element-plus/es/locale/lang/zh-cn.mjs";
12
+ //#region src/utils/methods.ts
13
+ var O = (e) => {
14
+ if (e.indexOf("雾霾") != -1) return "icon_weather_mai.png";
15
+ if (e.indexOf("强沙尘暴") != -1) return "icon_weather_qiangshachenbao.png";
16
+ if (e.indexOf("扬沙") != -1) return "icon_weather_yangsha.png";
17
+ if (e.indexOf("浮尘") != -1) return "icon_weather_fuchen.png";
18
+ if (e.indexOf("大雪-暴雪") != -1 || e.indexOf("大到暴雪") != -1) return "icon_weather_daxuebaoxue.png";
19
+ if (e.indexOf("中雪-大雪") != -1 || e.indexOf("中到大雪") != -1) return "icon_weather_zhongxuedaxue.png";
20
+ if (e.indexOf("小雪-中雪") != -1 || e.indexOf("小到中雪") != -1) return "icon_weather_xiaoxuezhongxue.png";
21
+ if (e.indexOf("大暴雨-特大暴雨") != -1 || e.indexOf("大到特大暴雨") != -1) return "icon_weather_dabaoyutedabaoyu.png";
22
+ if (e.indexOf("暴雨-大暴雨") != -1) return "icon_weather_baoyudabaoyu.png";
23
+ if (e.indexOf("大雨-暴雨") != -1 || e.indexOf("大到暴雨") != -1) return "icon_weather_dayubaoyu.png";
24
+ if (e.indexOf("中雨-大雨") != -1 || e.indexOf("中到大雨") != -1) return "icon_weather_zhongyudayu.png";
25
+ if (e.indexOf("小雨-中雨") != -1 || e.indexOf("小到中雨") != -1) return "icon_weather_xiaoyuzhongyu.png";
26
+ if (e.indexOf("沙尘暴") != -1) return "icon_weather_shachenbao.png";
27
+ if (e.indexOf("冻雨") != -1) return "icon_weather_dongyu.png";
28
+ if (e.indexOf("雾") != -1) return "icon_weather_wu.png";
29
+ if (e.indexOf("暴雪") != -1) return "icon_weather_baoxue.png";
30
+ if (e.indexOf("大雪") != -1) return "icon_weather_daxue.png";
31
+ if (e.indexOf("中雪") != -1) return "icon_weather_zhenyu.png";
32
+ if (e.indexOf("小雪") != -1) return "icon_weather_xiaoxue.png";
33
+ if (e.indexOf("阵雪") != -1) return "icon_weather_zhenxue.png";
34
+ if (e.indexOf("雪") != -1) return "icon_weather_xiaoxue.png";
35
+ if (e.indexOf("特大暴雨") != -1) return "icon_weather_tedabaoyu.png";
36
+ if (e.indexOf("大暴雨") != -1) return "icon_weather_dabaoyu.png";
37
+ if (e.indexOf("暴雨") != -1) return "icon_weather_baoyu.png";
38
+ if (e.indexOf("大雨") != -1) return "icon_weather_dayu.png";
39
+ if (e.indexOf("中雨") != -1) return "icon_weather_zhongyu.png";
40
+ if (e.indexOf("小雨") != -1) return "icon_weather_xiaoyu.png";
41
+ if (e.indexOf("雨夹雪") != -1) return "icon_weather_yujiaxue.png";
42
+ if (e.indexOf("雷阵雨并伴有冰雹") != -1) return "icon_weather_leizhenyubingbao.png";
43
+ if (e.indexOf("雷阵雨") != -1 || e.indexOf("雷雨") != -1) return "icon_weather_leizhenyu.png";
44
+ if (e.indexOf("阵雨") != -1) return "icon_weather_zhenyu.png";
45
+ if (e.indexOf("雨") != -1) return "icon_weather_xiaoyuzhongyu.png";
46
+ if (e.indexOf("阴") != -1) return "icon_weather_yin.png";
47
+ if (e.indexOf("多云") != -1) return "icon_weather_duoyun.png";
48
+ if (e.indexOf("晴") != -1) return "icon_weather_qing.png";
49
+ }, k = (e) => {
50
+ let t = Number(e);
51
+ if (isNaN(t)) return e;
52
+ let n = (t % 360 + 360) % 360;
53
+ return [
54
+ "N",
55
+ "NNE",
56
+ "NE",
57
+ "ENE",
58
+ "E",
59
+ "ESE",
60
+ "SE",
61
+ "SSE",
62
+ "S",
63
+ "SSW",
64
+ "SW",
65
+ "WSW",
66
+ "W",
67
+ "WNW",
68
+ "NW",
69
+ "NNW"
70
+ ][Math.floor((n + 11.25) / 22.5) % 16] || "";
71
+ }, de = (e) => {
72
+ let t = Number(e);
73
+ if (isNaN(t)) return "";
74
+ let n = (t % 360 + 360) % 360;
75
+ return [
76
+ "北风",
77
+ "东北风",
78
+ "东风",
79
+ "东南风",
80
+ "南风",
81
+ "西南风",
82
+ "西风",
83
+ "西北风",
84
+ "北风",
85
+ "东北风",
86
+ "东风",
87
+ "东南风",
88
+ "南风",
89
+ "西南风",
90
+ "西风",
91
+ "西北风"
92
+ ][Math.floor((n + 11.25) / 22.5) % 16] || "";
93
+ }, A = (e) => {
94
+ let t = Number(e);
95
+ 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
+ }, j = /* @__PURE__ */ t(((e, t) => {
13
97
  (function(n, r) {
14
98
  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();
15
99
  })(e, function() {
@@ -169,15 +253,30 @@ var S = /* @__PURE__ */ t(((e, t) => {
169
253
  }
170
254
  ]);
171
255
  });
172
- })), de = /* @__PURE__ */ e(S()), fe = {
173
- class: "HdObservation",
174
- "element-loading-background": "rgba(0, 0, 0, 0.5)"
175
- }, pe = { class: "HdObservation-header" }, me = { class: "HdObservation-headerContent" }, he = {
256
+ })), fe = /* @__PURE__ */ e(j()), pe = { class: "HdFarmStationDialog-mask HdFarmStationDialog" }, me = { class: "StationPop-title" }, he = { class: "StationPop-subtitle" }, ge = {
176
257
  key: 0,
177
- class: "HdObservation-dataTime"
178
- }, ge = { class: "HdObservation-body" }, _e = { class: "HdObservation-tabs" }, ve = ["onClick"], ye = { class: "HdObservation-elementBar" }, be = { class: "HdObservation-stats" }, xe = { class: "HdObservation-statCard HdObservation-statCard--max" }, Se = { class: "HdObservation-statInfo" }, C = { class: "HdObservation-statValue" }, w = ["title"], T = { class: "HdObservation-statCard HdObservation-statCard--min" }, E = { class: "HdObservation-statInfo" }, D = { class: "HdObservation-statValue" }, O = ["title"], k = { class: "HdObservation-statCard HdObservation-statCard--avg" }, A = { class: "HdObservation-statInfo" }, j = { class: "HdObservation-statValue" }, Ce = { class: "HdObservation-chartSection" }, we = { class: "HdObservation-chartHeader" }, Te = { class: "HdObservation-chartTitle" }, Ee = { class: "HdObservation-chartUnit" }, M = 10, N = /* @__PURE__ */ n(/* @__PURE__ */ h({
179
- __name: "HdObservation",
258
+ class: "StationPop-dataTime"
259
+ }, _e = {
260
+ key: 1,
261
+ class: "StationPop-dataTime"
262
+ }, ve = { class: "StationPop-info" }, ye = { style: {
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: {
266
+ display: "grid",
267
+ "grid-template-columns": "repeat(4, 1fr)"
268
+ } }, De = { class: "StationPop-infoItem StationPop-infoItem--wide" }, Oe = { class: "StationPop-infoValue" }, ke = { class: "StationPop-infoItem StationPop-infoItem--wide" }, Ae = { class: "StationPop-infoValue" }, je = { class: "StationPop-main" }, Me = { class: "StationPop-section StationPop-section--realtime" }, Ne = { class: "StationPop-realtime" }, 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-realtimeItem" }, Ve = { class: "StationPop-realtimeValue" }, He = { class: "StationPop-realtimeItem" }, Ue = { class: "StationPop-realtimeValue" }, We = { class: "StationPop-realtimeItem" }, Ge = { class: "StationPop-realtimeValue" }, Ke = { class: "StationPop-realtimeItem" }, qe = { class: "StationPop-realtimeValue" }, Je = { class: "StationPop-realtimeItem" }, Ye = { class: "StationPop-realtimeValue" }, Xe = { class: "StationPop-realtimeItem" }, Ze = { class: "StationPop-realtimeValue" }, Qe = { class: "StationPop-section StationPop-section--statistics" }, $e = { class: "StationPop-statistics" }, et = { class: "StationPop-statisticsItem" }, tt = { class: "StationPop-statisticsValue" }, nt = { class: "StationPop-statisticsItem" }, rt = { class: "StationPop-statisticsValue" }, it = { class: "StationPop-statisticsItem" }, at = { class: "StationPop-statisticsValue" }, ot = { class: "StationPop-statisticsItem" }, st = { class: "StationPop-statisticsValue" }, ct = { class: "StationPop-statisticsItem" }, lt = { class: "StationPop-statisticsValue" }, ut = { class: "StationPop-statisticsItem" }, dt = { class: "StationPop-statisticsValue" }, ft = { class: "StationPop-section StationPop-section--chart" }, pt = { class: "StationPop-tabs" }, mt = ["onClick"], ht = {
269
+ key: 0,
270
+ class: "StationPop-historyMask"
271
+ }, gt = { class: "StationPop-historyPopup" }, _t = { class: "StationPop-historyHeader" }, vt = { class: "StationPop-historyTitle" }, yt = { class: "StationPop-historySubTitle" }, bt = {
272
+ class: "StationPop-historyTabs",
273
+ style: { position: "relative" }
274
+ }, xt = ["onClick"], St = { class: "StationPop-historyActions" }, Ct = { class: "StationPop-historyTableWrap" }, M = /* @__PURE__ */ n(/* @__PURE__ */ g({
275
+ __name: "HdFarmStationDialog",
180
276
  props: {
277
+ componentStyle: { default: () => ({}) },
278
+ stationCode: {},
279
+ stationName: { default: "" },
181
280
  mock: {
182
281
  type: Boolean,
183
282
  default: !1
@@ -186,514 +285,694 @@ var S = /* @__PURE__ */ t(((e, t) => {
186
285
  appKey: { default: "" },
187
286
  appSalt: { default: "" },
188
287
  ids: { default: () => ({}) },
189
- refreshInterval: { default: 300 * 1e3 },
190
- chartHeight: { default: 280 },
191
- mockData: { default: () => ({
192
- dataTime: "2026-04-12 16时",
193
- list: [
194
- {
195
- stationName: "临朐寺头",
196
- value: 20
197
- },
198
- {
199
- stationName: "临朐五井",
200
- value: 5.6
201
- },
202
- {
203
- stationName: "诸城昌标",
204
- value: 5.4
205
- },
206
- {
207
- stationName: "诸城目标",
208
- value: 5.4
209
- }
210
- ]
211
- }) }
288
+ mockData: { default: () => ({}) }
212
289
  },
213
- emits: ["close"],
214
- setup(e, { emit: t }) {
215
- te()?.appContext.config.globalProperties.$bus;
216
- let n = e, h = t, S = [
290
+ setup(e) {
291
+ let t = ne()?.appContext.config.globalProperties.$bus, n = x(!1), g = e, O = x(null), k = x({
292
+ stationName: "",
293
+ stationCode: "",
294
+ address: "",
295
+ stationStatus: "",
296
+ monitorElement: "",
297
+ serviceType: ""
298
+ }), A = x(!1), j = x(""), M = x({}), N = x({}), P = x(null), F = null, I = x([]), L = x("temperature"), wt = [
217
299
  {
218
300
  label: "温度",
219
- value: "温度",
220
- unit: "℃",
221
- color: "#FF7D00"
301
+ value: "temperature"
222
302
  },
223
303
  {
224
- label: "气压",
225
- value: "气压",
226
- unit: "hPa",
227
- color: "#A855F7"
304
+ label: "风力风向",
305
+ value: "wind"
228
306
  },
229
307
  {
230
- label: "风速",
231
- value: "风速",
232
- unit: "m/s",
233
- color: "#00B42A"
308
+ label: "湿度",
309
+ value: "humidity"
234
310
  },
235
311
  {
236
312
  label: "降水",
237
- value: "降水",
238
- unit: "mm",
239
- color: "#165DFF"
240
- },
241
- {
242
- label: "云量",
243
- value: "云量",
244
- unit: "%",
245
- color: "#86909c"
246
- }
247
- ], N = [
248
- {
249
- label: "温度08",
250
- value: "温度08",
251
- unit: "℃",
252
- color: "#FF7D00"
253
- },
254
- {
255
- label: "气压08",
256
- value: "气压08",
257
- unit: "hPa",
258
- color: "#A855F7"
259
- },
260
- {
261
- label: "风速08",
262
- value: "风速08",
263
- unit: "m/s",
264
- color: "#00B42A"
265
- },
266
- {
267
- label: "降水08",
268
- value: "降水08",
269
- unit: "mm",
270
- color: "#165DFF"
271
- },
272
- {
273
- label: "云量08",
274
- value: "云量08",
275
- unit: "%",
276
- color: "#86909c"
277
- },
278
- {
279
- label: "温度20",
280
- value: "温度20",
281
- unit: "℃",
282
- color: "#FF7D00"
283
- },
284
- {
285
- label: "气压20",
286
- value: "气压20",
287
- unit: "hPa",
288
- color: "#A855F7"
289
- },
290
- {
291
- label: "风速20",
292
- value: "风速20",
293
- unit: "m/s",
294
- color: "#00B42A"
313
+ value: "precipitation"
295
314
  },
296
315
  {
297
- label: "降水20",
298
- value: "降水20",
299
- unit: "mm",
300
- color: "#165DFF"
301
- },
302
- {
303
- label: "云量20",
304
- value: "云量20",
305
- unit: "%",
306
- color: "#86909c"
316
+ label: "气压",
317
+ value: "pressure"
307
318
  }
308
- ], De = [{
319
+ ], R = x({}), z = x(!1), B = x("day"), V = x([]), H = x([]), Tt = [{
309
320
  label: "日统计",
310
- value: 0
321
+ value: "day"
311
322
  }, {
312
- label: "实时观测",
313
- value: 1
314
- }], Oe = {
315
- 0: "日统计",
316
- 1: "实时观测"
317
- }, P = _(!1), F = _(1), I = _(S[0].value), L = _({
318
- 0: "",
319
- 1: ""
320
- }), R = _([]), z = _(null), B = _(!1), V = null, H = null, U = l(() => F.value === 1 ? S : N), W = l(() => L.value[F.value]), G = l(() => {
321
- let e = U.value;
322
- return e.find((e) => e.value === I.value) || e[0];
323
- }), K = l(() => [...R.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).reverse()), ke = l(() => {
324
- let e = K.value.length;
325
- if (!B.value || e <= M) return 280;
326
- let t = e * 36 + 16;
327
- return Math.min(Math.max(t, 280), 360);
328
- }), q = l(() => {
329
- let e = [...R.value].filter((e) => !Y(e.value));
330
- if (!e.length) return {
331
- station: "--",
332
- value: "--"
333
- };
334
- let t = e.reduce((e, t) => Number(t.value) > Number(e.value) ? t : e);
335
- return {
336
- station: t.stationName,
337
- value: `${X(t.value)}${G.value.unit}`
338
- };
339
- }), J = l(() => {
340
- let e = [...R.value].filter((e) => !Y(e.value));
341
- if (!e.length) return {
342
- station: "--",
343
- value: "--"
344
- };
345
- let t = e.reduce((e, t) => Number(t.value) < Number(e.value) ? t : e);
346
- return {
347
- station: t.stationName,
348
- value: `${X(t.value)}${G.value.unit}`
349
- };
350
- }), Ae = l(() => {
351
- let e = R.value.filter((e) => !Y(e.value));
352
- return e.length ? `${X(e.reduce((e, t) => e + Number(t.value), 0) / e.length)}${G.value.unit}` : "--";
353
- }), Y = (e) => e == null || e === "" || e === 9999, X = (e) => {
354
- if (Y(e)) return "--";
355
- let t = Number(e);
356
- return isNaN(t) ? String(e) : t.toFixed(1);
357
- }, je = () => {
358
- h("close", "HdObservation");
359
- }, Me = (e) => {
360
- F.value = e, B.value = !1;
361
- let t = U.value;
362
- t.some((e) => e.value === I.value) || (I.value = t[0].value), Q();
363
- }, Ne = (e) => {
364
- let t = n.ids[e] || n.ids.data;
323
+ label: "月统计",
324
+ value: "month"
325
+ }], Et = () => {
326
+ A.value = !1, z.value = !1;
327
+ }, U = (e) => e == null || e === "" || e === 9999, W = (e, t) => U(e) ? "--" : t ? `${e}${t}` : String(e), Dt = (e) => {
328
+ let t = U(e.windSpeed) ? "--" : `${e.windSpeed}m/s`, n = e.windDirectionText;
329
+ return !n && e.windDirection !== void 0 && e.windDirection !== null && (n = de(e.windDirection)), `${t} ${n || "--"}`;
330
+ }, G = (e) => {
331
+ let t = g.ids[e] || g.ids.data;
365
332
  return t?.id ? t : null;
366
- }, Pe = (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, Fe = () => {
367
- switch (G.value.value) {
368
- case "PRE":
369
- case "PRE08":
370
- case "PRE20": return Number((Math.random() * 20).toFixed(1));
371
- case "TMP":
372
- case "TMP08":
373
- case "TMP20": return Number((15 + Math.random() * 20).toFixed(1));
374
- case "WIN":
375
- case "WIN08":
376
- case "WIN20": return Number((Math.random() * 12).toFixed(1));
377
- case "PRS":
378
- case "PRS08":
379
- case "PRS20": return Number((1e3 + Math.random() * 25).toFixed(1));
380
- case "CLO":
381
- case "CLO08":
382
- case "CLO20": return Number((Math.random() * 100).toFixed(0));
383
- default: return 0;
333
+ }, K = async (e, t = {}) => {
334
+ let n = G(e);
335
+ if (!n) throw Error(`缺少 ${e} 对应的工作流配置`);
336
+ return await r({
337
+ id: n.id,
338
+ baseHttp: g.baseHttp,
339
+ reqType: n.reqType,
340
+ variables: {
341
+ stationCode: g.stationCode,
342
+ stationIdC: O.value,
343
+ ...t
344
+ },
345
+ isFormData: n.isFormData,
346
+ appKey: g.appKey,
347
+ appSalt: g.appSalt
348
+ });
349
+ }, q = (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, Ot = async () => {
350
+ g.mock ? kt() : await At();
351
+ }, kt = () => {
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 () => {
355
+ try {
356
+ let e = q(await K("data"));
357
+ if (e && typeof e == "object") {
358
+ jt(e), _(X);
359
+ return;
360
+ }
361
+ } catch (e) {
362
+ console.warn("统一数据接口失败,尝试单独接口", e);
384
363
  }
385
- }, Z = () => {
386
- let e = n.mockData;
387
- R.value = (e.list?.length ? e.list : [
388
- { stationName: "临朐寺头" },
389
- { stationName: "临朐五井" },
390
- { stationName: "诸城昌标" },
391
- { stationName: "诸城目标" },
392
- { stationName: "响山子水库" },
393
- { stationName: "诸城" },
394
- { stationName: "诸城气象局" },
395
- { stationName: "黄岛" },
396
- { stationName: "董家口" },
397
- { stationName: "金沙滩" },
398
- { stationName: "琅琊" },
399
- { stationName: "大场" }
400
- ]).map((e) => ({
401
- ...e,
402
- value: Fe()
403
- })), L.value[F.value] = e.dataTime || "";
404
- }, Ie = async () => {
405
- let e = Ne("data");
406
- if (!e) {
407
- console.warn("HdObservation 缺少工作流配置");
408
- return;
364
+ try {
365
+ let e = q(await K("baseInfo"));
366
+ e && (k.value = {
367
+ ...k.value,
368
+ ...e
369
+ });
370
+ } catch (e) {
371
+ console.warn("站点基础信息接口失败", e);
409
372
  }
410
373
  try {
411
- let t = { realTime: F.value };
412
- F.value === 1 ? t.elementType = I.value : t.dayElementType = I.value;
413
- let i = await r({
414
- id: e.id,
415
- baseHttp: n.baseHttp,
416
- reqType: e.reqType,
417
- variables: t,
418
- isFormData: e.isFormData,
419
- appKey: n.appKey,
420
- appSalt: n.appSalt
421
- }), a = Pe(i);
422
- Array.isArray(a) ? (R.value = a.map((e) => ({
423
- stationName: e.stationName || "",
424
- stationCode: e.stationId || e.stationCode || "",
425
- value: e.elementValue
426
- })), L.value[F.value] = a[0]?.dateTime || i?.data?.dateTime || i?.dateTime || "") : a && (R.value = Array.isArray(a.list) ? a.list : [], L.value[F.value] = a.dataTime || i?.data?.dateTime || i?.dateTime || "");
374
+ let e = q(await K("realTime"));
375
+ e && (M.value = { ...e });
427
376
  } catch (e) {
428
- console.error("HdObservation 数据加载失败", e);
377
+ console.warn("实时监测接口失败", e);
429
378
  }
430
- }, Q = async () => {
431
- P.value = !0, n.mock ? Z() : await Ie(), P.value = !1, ne(() => {
432
- Le();
379
+ try {
380
+ let e = q(await K("statistics"));
381
+ e && (N.value = { ...e });
382
+ } catch (e) {
383
+ console.warn("统计信息接口失败", e);
384
+ }
385
+ try {
386
+ if (G("chart")) {
387
+ let e = q(await K("chart"));
388
+ e && typeof e == "object" && (R.value = Ft(e));
389
+ }
390
+ } catch (e) {
391
+ console.warn("图表数据接口失败", e);
392
+ }
393
+ _(X);
394
+ }, jt = (e) => {
395
+ e.baseInfo && (k.value = { ...e.baseInfo }), e.realTimeInfo && (M.value = { ...e.realTimeInfo }), e.statisticsInfo && (N.value = { ...e.statisticsInfo }), e.chartData && (R.value = Ft(e.chartData)), e.dataTime && (j.value = e.dataTime), I.value = (Array.isArray(e.thresholdData) ? e.thresholdData : []).map((e) => ({
396
+ ele_code: String(e.ele_code || ""),
397
+ min: Number(e.min ?? e.thresholdMin ?? 0),
398
+ max: Number(e.max ?? e.thresholdMax ?? 0)
399
+ }));
400
+ let t = (Array.isArray(e.stationData) ? e.stationData : [])[0] || {};
401
+ t.station_name && (k.value = {
402
+ stationName: t.station_name || "",
403
+ stationCode: t.station_id_c || "",
404
+ address: Mt(t.lat, t.lon),
405
+ stationStatus: t.operating_status || "",
406
+ monitorElement: t.monitoring_elements || "",
407
+ serviceType: t.service_type || ""
408
+ }), t.datetime_bj && (j.value = t.datetime_bj), (t.tem !== void 0 || t.pre_1h !== void 0) && (M.value = {
409
+ temperature: J(t.tem),
410
+ humidity: J(t.rhu),
411
+ windSpeed: J(t.win_s_inst_max),
412
+ windDirection: J(t.win_d_inst_max ?? t.win_d_avg ?? t.windDirection),
413
+ hourPrecipitation: J(t.pre_1h),
414
+ pressure: J(t.prs),
415
+ visibility: J(t.vis),
416
+ evaporation: J(t.evp_big),
417
+ monitorTime: t.datetime_bj || ""
433
418
  });
434
- }, Le = () => {
435
- if (!z.value) return;
436
- V && V.dispose(), V = x.init(z.value);
437
- let e = G.value, t = K.value, n = t.map((e) => e.stationName), r = t.map((e) => Number(e.value) || 0), i = t.length, a = i > M, o = a && !B.value ? (i - M) / i * 100 : 0, s = {
438
- backgroundColor: "transparent",
439
- grid: {
440
- top: 8,
441
- right: 48,
442
- bottom: a ? 32 : 8,
443
- left: 80
419
+ let n = (Array.isArray(e.stationDayData) ? e.stationDayData : [])[0] || {};
420
+ (n.tem_max !== void 0 || n.tem_min !== void 0) && (N.value = {
421
+ dailyMinTemp: J(n.tem_min),
422
+ dailyMaxTemp: J(n.tem_max),
423
+ dailyPrecipitation: J(n.pre_time_0808 ?? n.pre_time_2020),
424
+ historyMinTemp: J(n.his_tem_min),
425
+ historyMaxTemp: J(n.his_tem_max),
426
+ historyMaxPrecipitation: J(n.his_pre_max)
427
+ });
428
+ let r = Array.isArray(e.elementData) ? e.elementData : [];
429
+ r.length && (R.value = Pt(r));
430
+ }, J = (e) => {
431
+ if (e == null || e === "") return null;
432
+ let t = Number(e);
433
+ return isNaN(t) ? e : t >= 9999 ? null : t;
434
+ }, Mt = (e, t) => !e && !t ? "" : `N${e || ""} E${t || ""}`, Nt = {
435
+ temperature: "温度",
436
+ wind: "风力风向",
437
+ humidity: "湿度",
438
+ precipitation: "降水",
439
+ pressure: "气压"
440
+ }, Y = (e) => {
441
+ let t = Nt[e];
442
+ if (!t) return;
443
+ let n = I.value.find((e) => e.ele_code === t);
444
+ if (n) return {
445
+ min: n.min,
446
+ max: n.max
447
+ };
448
+ }, Pt = (e) => {
449
+ let t = e.map((e) => {
450
+ if (!e.datetime_bj) return "";
451
+ let t = new Date(e.datetime_bj);
452
+ return isNaN(t.getTime()) ? e.datetime_bj : `${String(t.getHours()).padStart(2, "0")}时`;
453
+ }), n = (t, n, r, i = "line", a) => ({
454
+ name: n,
455
+ data: e.map((e) => J(e[t])).map((e) => e === null ? null : e),
456
+ color: r,
457
+ type: i,
458
+ thresholdRange: Y(a)
459
+ });
460
+ return {
461
+ temperature: {
462
+ times: t,
463
+ unit: "℃",
464
+ series: [n("tem", "正常值", "#00D9FF", "line", "temperature")]
465
+ },
466
+ wind: {
467
+ times: t,
468
+ unit: "级",
469
+ series: [n("win_s_inst_max", "正常值", "#00D9FF", "line", "wind")]
470
+ },
471
+ humidity: {
472
+ times: t,
473
+ unit: "%",
474
+ series: [n("rhu", "正常值", "#00D9FF", "line", "humidity")]
475
+ },
476
+ precipitation: {
477
+ times: t,
478
+ unit: "mm",
479
+ series: [n("pre_1h", "正常值", "#00D9FF", "bar", "precipitation")]
480
+ },
481
+ pressure: {
482
+ times: t,
483
+ unit: "hPa",
484
+ series: [n("prs", "正常值", "#00D9FF", "line", "pressure")]
485
+ }
486
+ };
487
+ }, Ft = (e) => {
488
+ let t = {};
489
+ return [
490
+ "temperature",
491
+ "wind",
492
+ "humidity",
493
+ "precipitation",
494
+ "pressure"
495
+ ].forEach((n) => {
496
+ let r = e[n];
497
+ r && (t[n] = {
498
+ times: Array.isArray(r.times) ? r.times : [],
499
+ unit: r.unit || "",
500
+ series: Array.isArray(r.series) ? r.series.map((e) => ({
501
+ name: e.name || "",
502
+ data: Array.isArray(e.data) ? e.data : [],
503
+ directions: Array.isArray(e.directions) ? e.directions : void 0,
504
+ color: e.color,
505
+ type: e.type || "line",
506
+ threshold: e.threshold,
507
+ thresholdRange: e.thresholdRange
508
+ })) : []
509
+ });
510
+ }), t;
511
+ }, It = (e) => {
512
+ L.value = e, _(X);
513
+ }, X = () => {
514
+ if (!P.value) return;
515
+ F ||= D.init(P.value);
516
+ let e = R.value[L.value];
517
+ if (!e || !e.times.length) {
518
+ F.clear();
519
+ return;
520
+ }
521
+ let t = L.value === "wind", n = e.series.some((e) => e.type === "bar"), r = e.series.map((r) => {
522
+ let i = {
523
+ name: r.name,
524
+ type: r.type || "line",
525
+ smooth: !0,
526
+ symbol: t ? "triangle" : "circle",
527
+ symbolSize: t ? 10 : 6,
528
+ data: r.data,
529
+ itemStyle: { color: r.color || "#00D9FF" },
530
+ lineStyle: { width: 2 }
531
+ };
532
+ r.type === "bar" && (i.barWidth = 12, i.itemStyle.borderRadius = [
533
+ 4,
534
+ 4,
535
+ 0,
536
+ 0
537
+ ], delete i.smooth, delete i.symbol, delete i.symbolSize), !n && !t && (i.areaStyle = { color: new D.graphic.LinearGradient(0, 0, 0, 1, [{
538
+ offset: 0,
539
+ color: Lt(r.color || "#00D9FF", .3)
540
+ }, {
541
+ offset: 1,
542
+ color: Lt(r.color || "#00D9FF", .01)
543
+ }]) }), t && r.directions && r.directions.length === e.times.length && (i.symbolRotate = (e, t) => (r.directions?.[t.dataIndex] ?? 0) + 180);
544
+ let a = r.thresholdRange || Y(L.value);
545
+ if (a) {
546
+ let { min: t, max: n } = a, r = [];
547
+ isNaN(t) || r.push({
548
+ name: "阈值min",
549
+ yAxis: t,
550
+ label: {
551
+ formatter: e.unit ? `{c}${e.unit}` : "{c}",
552
+ position: "insideEndTop"
553
+ },
554
+ lineStyle: {
555
+ color: "#FF7D00",
556
+ type: "dashed",
557
+ width: 1
558
+ }
559
+ }), isNaN(n) || r.push({
560
+ name: "阈值max",
561
+ yAxis: n,
562
+ label: {
563
+ formatter: e.unit ? `{c}${e.unit}` : "{c}",
564
+ position: "insideEndTop"
565
+ },
566
+ lineStyle: {
567
+ color: "#F53F3F",
568
+ type: "dashed",
569
+ width: 1
570
+ }
571
+ }), r.length && (i.markLine = {
572
+ silent: !0,
573
+ symbol: "none",
574
+ precision: 1,
575
+ animation: !1,
576
+ label: {
577
+ show: !0,
578
+ color: "#fff",
579
+ fontSize: 10,
580
+ padding: [2, 4],
581
+ borderRadius: 2
582
+ },
583
+ data: r
584
+ });
585
+ }
586
+ return i;
587
+ });
588
+ e.series.some((e) => e.name === "阈值") || r.push({
589
+ name: "阈值",
590
+ type: "line",
591
+ data: [],
592
+ itemStyle: { color: "#FF4D4F" },
593
+ lineStyle: {
594
+ type: "dashed",
595
+ width: 1
444
596
  },
597
+ symbol: "none"
598
+ });
599
+ let i = (() => {
600
+ let t = [];
601
+ if (e.series.forEach((e) => {
602
+ e.data.forEach((e) => {
603
+ let n = Number(e);
604
+ isNaN(n) || t.push(n);
605
+ }), e.threshold && e.threshold.forEach((e) => {
606
+ let n = Number(e);
607
+ isNaN(n) || t.push(n);
608
+ });
609
+ let n = e.thresholdRange || Y(L.value);
610
+ n && (isNaN(Number(n.min)) || t.push(Number(n.min)), isNaN(Number(n.max)) || t.push(Number(n.max)));
611
+ }), !t.length) return {
612
+ min: void 0,
613
+ max: void 0
614
+ };
615
+ let n = Math.max(...t), r = Math.min(...t);
616
+ return {
617
+ min: Math.floor(r * 1.1),
618
+ max: Math.ceil(n * 1.1)
619
+ };
620
+ })(), a = {
445
621
  tooltip: {
446
622
  trigger: "axis",
447
- axisPointer: { type: "shadow" },
448
- backgroundColor: "rgba(6, 32, 56, 0.95)",
449
- borderColor: "rgba(64, 158, 255, 0.4)",
450
- textStyle: { color: "#fff" },
451
- formatter: (t) => {
452
- let n = t[0];
453
- return `${n.name}<br/>${n.marker} ${e.label}:${n.value}${e.unit}`;
454
- }
623
+ backgroundColor: "rgba(0, 20, 40, 0.9)",
624
+ borderColor: "#00D9FF",
625
+ textStyle: { color: "#fff" }
455
626
  },
456
- dataZoom: a ? [{
457
- type: "slider",
458
- yAxisIndex: 0,
459
- start: o,
460
- end: 100,
461
- width: 6,
627
+ legend: {
628
+ data: [{
629
+ name: "阈值",
630
+ icon: "circle"
631
+ }, {
632
+ name: "正常值",
633
+ icon: "circle"
634
+ }],
462
635
  right: 8,
463
- zoomLock: !0,
464
- borderColor: "transparent",
465
- backgroundColor: "rgba(64, 158, 255, 0.08)",
466
- fillerColor: "rgba(64, 158, 255, 0.25)",
467
- handleSize: "100%",
468
- handleStyle: {
469
- color: e.color,
470
- borderColor: e.color
471
- },
472
- textStyle: {
473
- color: "rgba(255,255,255,0.6)",
474
- fontSize: 10
475
- },
476
- showDataShadow: !1,
477
- showDetail: !1
478
- }, {
479
- type: "inside",
480
- yAxisIndex: 0,
481
- zoomLock: !0,
482
- start: o,
483
- end: 100,
484
- zoomOnMouseWheel: !1,
485
- moveOnMouseWheel: !0,
486
- moveOnMouseMove: !0
487
- }] : void 0,
488
- xAxis: {
489
- type: "value",
490
- axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
491
- axisLabel: {
492
- color: "rgba(255,255,255,0.6)",
493
- fontSize: 10
494
- },
495
- splitLine: { show: !1 },
496
- axisTick: { show: !1 }
636
+ top: 8,
637
+ textStyle: { color: "#fff" },
638
+ itemWidth: 12,
639
+ itemHeight: 12,
640
+ itemGap: 16
497
641
  },
498
- yAxis: {
642
+ grid: {
643
+ left: 16,
644
+ right: 40,
645
+ top: 56,
646
+ bottom: 24,
647
+ containLabel: !0
648
+ },
649
+ xAxis: {
499
650
  type: "category",
500
- data: n,
501
- axisLine: { show: !1 },
651
+ boundaryGap: n,
652
+ data: e.times,
653
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
502
654
  axisLabel: {
503
- color: "rgba(255,255,255,0.8)",
655
+ color: "rgba(255,255,255,0.7)",
504
656
  fontSize: 11,
505
- interval: 0,
506
- width: 72,
507
- overflow: "truncate",
508
- ellipsis: ".."
657
+ interval: 0
509
658
  },
510
659
  axisTick: { show: !1 },
511
- triggerEvent: !0
660
+ splitLine: { show: !1 }
512
661
  },
513
- series: [{
514
- name: e.label,
515
- type: "bar",
516
- data: r,
517
- barWidth: 12,
518
- barCategoryGap: "60%",
519
- itemStyle: {
520
- color: new x.graphic.LinearGradient(1, 0, 0, 0, [{
521
- offset: 0,
522
- color: e.color
523
- }, {
524
- offset: 1,
525
- color: `${e.color}66`
526
- }]),
527
- borderRadius: [
662
+ yAxis: {
663
+ type: "value",
664
+ min: i.min,
665
+ max: i.max,
666
+ name: `单位:${e.unit}`,
667
+ nameTextStyle: {
668
+ color: "rgba(255,255,255,0.7)",
669
+ padding: [
670
+ 0,
671
+ 0,
528
672
  0,
529
- 6,
530
- 6,
531
673
  0
532
- ]
674
+ ],
675
+ align: "left"
533
676
  },
534
- label: {
535
- show: !0,
536
- position: "right",
537
- color: "#fff",
538
- fontSize: 10,
539
- distance: 8,
540
- formatter: `{c}${e.unit}`
541
- }
542
- }]
677
+ axisLine: { show: !1 },
678
+ axisLabel: {
679
+ color: "rgba(255,255,255,0.7)",
680
+ fontSize: 11
681
+ },
682
+ splitLine: { show: !1 },
683
+ axisTick: { show: !1 }
684
+ },
685
+ series: r
543
686
  };
544
- V.setOption(s);
545
- }, Re = () => {
546
- let e = G.value, t = [...R.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).map((t, n) => ({
547
- 序号: n + 1,
548
- 站名: t.stationName,
549
- 站号: t.stationCode || "--",
550
- 数值: X(t.value),
551
- 单位: e.unit,
552
- 类型: Oe[F.value],
553
- 要素: e.label
554
- }));
555
- if (t.length === 0) {
556
- ue.warning("暂无数据");
687
+ F.setOption(a, !0), F.resize();
688
+ }, Lt = (e, t) => `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t})`, Rt = () => {
689
+ F?.resize();
690
+ }, zt = () => {
691
+ z.value = !0, Z(), Q();
692
+ }, Bt = () => {
693
+ z.value = !1, B.value = "day";
694
+ }, Vt = (e) => {
695
+ B.value = e, Z(), Q();
696
+ }, Z = () => {
697
+ let { startDate: e, endDate: t } = Ht(B.value);
698
+ H.value = [e, t];
699
+ }, Q = async () => {
700
+ if (g.mock) {
701
+ V.value = g.mockData.historyData?.[B.value] || [];
557
702
  return;
558
703
  }
559
- new de.default({
560
- fileName: `观测统计_${e.label}_${F.value}_${(/* @__PURE__ */ new Date()).getTime()}`,
704
+ if (!G("history")) {
705
+ V.value = [];
706
+ return;
707
+ }
708
+ let [e, t] = H.value.length === 2 ? H.value : [null, null], n = B.value === "day" ? "日统计" : "月统计";
709
+ if (!e || !t) {
710
+ V.value = [];
711
+ return;
712
+ }
713
+ try {
714
+ V.value = Wt(q(await K("history", {
715
+ startDate: e,
716
+ endDate: t,
717
+ type: n,
718
+ stationIdC: O.value
719
+ })), B.value);
720
+ } catch (e) {
721
+ console.error("历史数据加载失败", e), V.value = [];
722
+ }
723
+ }, Ht = (e) => {
724
+ let t = /* @__PURE__ */ new Date();
725
+ if (e === "day") {
726
+ let e = new Date(t), n = new Date(t);
727
+ return n.setDate(e.getDate() - 6), {
728
+ startDate: Ut(n),
729
+ endDate: Ut(e)
730
+ };
731
+ }
732
+ let n = new Date(t.getFullYear(), t.getMonth(), 1);
733
+ return {
734
+ startDate: $(new Date(t.getFullYear(), t.getMonth() - 11, 1)),
735
+ endDate: $(n)
736
+ };
737
+ }, Ut = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, $ = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`, Wt = (e, t) => Array.isArray(e) ? e.map((e) => ({
738
+ datetime_bj: e.datetime_bj || e.date || e.month || "",
739
+ pre_time_0808: J(e.pre_time_0808 ?? e.precipitation),
740
+ pre_time_2020: J(e.pre_time_2020 ?? e.precipitation),
741
+ tem_max: J(e.tem_max ?? e.temperature),
742
+ tem_min: J(e.tem_min ?? e.temperature),
743
+ humidity: J(e.rhu ?? e.humidity),
744
+ win_s_inst_max: J(e.win_s_inst_max ?? e.windSpeed)
745
+ })) : [], Gt = () => {
746
+ let e = V.value.map((e, t) => ({
747
+ 序号: t + 1,
748
+ 日期: e.datetime_bj || "",
749
+ 降水08: W(e.pre_time_0808, "mm"),
750
+ 降水20: W(e.pre_time_2020, "mm"),
751
+ 最高温: W(e.tem_max, "℃"),
752
+ 最低温: W(e.tem_min, "℃"),
753
+ 风速: W(e.win_s_inst_max, "m/s")
754
+ })), t = B.value === "day" ? "日统计" : "月统计";
755
+ new fe.default({
756
+ fileName: `${k.value.stationName || g.stationName}_历史数据_${t}_${(/* @__PURE__ */ new Date()).getTime()}`,
561
757
  datas: [{
562
- sheetData: t,
563
- sheetName: "观测排名",
758
+ sheetData: e,
759
+ sheetName: t,
564
760
  sheetFilter: [
565
761
  "序号",
566
- "站名",
567
- "站号",
568
- "数值",
569
- "单位",
570
- "类型",
571
- "要素"
762
+ "日期",
763
+ "降水",
764
+ "温度",
765
+ "湿度",
766
+ "风速",
767
+ "风向",
768
+ "气压"
572
769
  ],
573
770
  sheetHeader: [
574
771
  "序号",
575
- "站名",
576
- "站号",
577
- "数值",
578
- "单位",
579
- "类型",
580
- "要素"
772
+ "日期",
773
+ "降水",
774
+ "温度",
775
+ "湿度",
776
+ "风速",
777
+ "风向",
778
+ "气压"
581
779
  ],
582
780
  columnWidths: [
583
781
  8,
584
782
  18,
585
783
  12,
586
784
  12,
587
- 8,
588
785
  12,
589
- 10
786
+ 12,
787
+ 12,
788
+ 14
590
789
  ]
591
790
  }]
592
791
  }).saveExcel();
593
- }, ze = () => {
594
- $(), !(n.refreshInterval <= 0) && (H = setInterval(() => {
595
- Q();
596
- }, n.refreshInterval));
597
- }, $ = () => {
598
- H &&= (clearInterval(H), null);
599
792
  };
600
- return oe(() => {
601
- Q(), ze(), window.addEventListener("resize", () => {
602
- V?.resize();
793
+ oe(A, (e) => {
794
+ e && _(() => {
795
+ !F && P.value ? X() : F?.resize();
603
796
  });
604
- }), ae(() => {
605
- $(), V &&= (V.dispose(), null);
606
- }), (e, t) => {
607
- let n = o, r = s, l = i, h = a;
608
- return ce((g(), f("div", fe, [
609
- p("button", {
610
- class: "HdObservation-close",
611
- onClick: je
612
- }, [...t[1] ||= [p("span", null, "", -1)]]),
613
- p("div", pe, [p("div", me, [t[2] ||= p("h3", { class: "HdObservation-title" }, "观测统计", -1), W.value ? (g(), f("span", he, "(数据时间:" + y(W.value) + ")", 1)) : d("", !0)]), t[3] ||= p("img", {
614
- style: {
615
- width: "100%",
616
- "object-fit": "contain",
617
- "margin-top": "4px"
618
- },
619
- src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
620
- alt: ""
621
- }, null, -1)]),
622
- p("div", ge, [
623
- p("div", _e, [(g(), f(c, null, v(De, (e) => p("button", {
797
+ });
798
+ function Kt() {
799
+ A.value = !0, n.value = !0, Ot().finally(() => {
800
+ n.value = !1;
801
+ });
802
+ }
803
+ return ie(() => {
804
+ window.addEventListener("resize", Rt), t?.on("toComponent", (e) => {
805
+ e.componentName === "HdFarmStationDialog" && (O.value = e.msCode || "", Kt());
806
+ });
807
+ }), y(() => {
808
+ window.removeEventListener("resize", Rt), F &&= (F.dispose(), null);
809
+ }), (t, r) => {
810
+ let g = o, ne = a, _ = i, y = l, ie = c, x = s;
811
+ return b(), ee(d, { to: "body" }, [E(p("div", pe, [E((b(), f("div", {
812
+ class: "StationPop",
813
+ "element-loading-text": "加载中...",
814
+ "element-loading-background": "rgba(0, 0, 0, 0.7)",
815
+ style: re(e.componentStyle)
816
+ }, [
817
+ p("div", {
818
+ class: "StationPop-close",
819
+ onClick: Et
820
+ }, [h(g, { class: "StationPop-close-icon" }, {
821
+ default: T(() => [h(w(se))]),
822
+ _: 1
823
+ })]),
824
+ p("div", me, C(k.value.stationName || e.stationName), 1),
825
+ p("div", he, [j.value ? (b(), f("span", ge, "数据时间:" + C(j.value), 1)) : (b(), f("span", _e, "数据时间:--"))]),
826
+ p("div", ve, [p("div", ye, [
827
+ p("div", be, [r[1] ||= p("span", { class: "StationPop-infoLabel" }, "站  号:", -1), p("span", xe, C(k.value.stationCode || "--"), 1)]),
828
+ p("div", Se, [r[2] ||= p("span", { class: "StationPop-infoLabel" }, "位  置:", -1), p("span", Ce, C(k.value.address || "--"), 1)]),
829
+ p("div", we, [r[3] ||= p("span", { class: "StationPop-infoLabel" }, "运行状况:", -1), p("span", Te, C(k.value.stationStatus || "--"), 1)])
830
+ ]), p("div", Ee, [p("div", De, [r[4] ||= p("span", { class: "StationPop-infoLabel" }, "监测要素:", -1), p("span", Oe, C(k.value.monitorElement || "--"), 1)]), p("div", ke, [r[5] ||= p("span", { class: "StationPop-infoLabel" }, "服务类别:", -1), p("span", Ae, C(k.value.serviceType || "--"), 1)])])]),
831
+ p("div", je, [
832
+ p("div", Me, [r[15] ||= p("div", { class: "StationPop-sectionTitle" }, [p("span", { class: "StationPop-sectionBar" }), m(" 实时监测 ")], -1), p("div", Ne, [
833
+ p("div", Pe, [r[6] ||= p("span", { class: "StationPop-realtimeLabel" }, "温度:", -1), p("span", Fe, C(W(M.value.temperature, "℃")), 1)]),
834
+ p("div", Ie, [r[7] ||= p("span", { class: "StationPop-realtimeLabel" }, "湿度:", -1), p("span", Le, C(W(M.value.humidity, "%")), 1)]),
835
+ p("div", Re, [r[8] ||= p("span", { class: "StationPop-realtimeLabel" }, "风速风向:", -1), p("span", ze, C(Dt(M.value)), 1)]),
836
+ p("div", Be, [r[9] ||= p("span", { class: "StationPop-realtimeLabel" }, "1小时累积降水:", -1), p("span", Ve, C(W(M.value.hourPrecipitation, "mm")), 1)]),
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)])
842
+ ])]),
843
+ p("div", Qe, [
844
+ r[23] ||= p("div", { class: "StationPop-sectionTitle" }, [p("span", { class: "StationPop-sectionBar" }), m(" 统计信息 ")], -1),
845
+ p("div", $e, [
846
+ p("div", et, [r[16] ||= p("span", { class: "StationPop-statisticsLabel" }, "日最低温度:", -1), p("span", tt, C(W(N.value.dailyMinTemp, "℃")), 1)]),
847
+ p("div", nt, [r[17] ||= p("span", { class: "StationPop-statisticsLabel" }, "日最高温度:", -1), p("span", rt, C(W(N.value.dailyMaxTemp, "℃")), 1)]),
848
+ p("div", it, [r[18] ||= p("span", { class: "StationPop-statisticsLabel" }, "日累计降水:", -1), p("span", at, C(W(N.value.dailyPrecipitation, "mm")), 1)]),
849
+ p("div", ot, [r[19] ||= p("span", { class: "StationPop-statisticsLabel" }, "历史最低温:", -1), p("span", st, C(W(N.value.historyMinTemp, "℃")), 1)]),
850
+ p("div", ct, [r[20] ||= p("span", { class: "StationPop-statisticsLabel" }, "历史最高温:", -1), p("span", lt, C(W(N.value.historyMaxTemp, "℃")), 1)]),
851
+ p("div", ut, [r[21] ||= p("span", { class: "StationPop-statisticsLabel" }, "历史最大累积降水:", -1), p("span", dt, C(W(N.value.historyMaxPrecipitation, "mm")), 1)])
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", {
624
862
  key: e.value,
625
- class: re(["HdObservation-tab", { "HdObservation-tab--active": F.value === e.value }]),
626
- onClick: (t) => Me(e.value)
627
- }, y(e.label), 11, ve)), 64))]),
628
- p("div", ye, [t[4] ||= p("span", { class: "HdObservation-elementLabel" }, "要素", -1), m(r, {
629
- modelValue: I.value,
630
- "onUpdate:modelValue": t[0] ||= (e) => I.value = e,
631
- class: "HdObservation-elementSelect",
632
- "popper-class": "HdObservation-elementPopper",
863
+ class: v(["StationPop-tab", { "StationPop-tab--active": L.value === e.value }]),
864
+ onClick: (t) => It(e.value)
865
+ }, C(e.label), 11, mt)), 64))]), p("div", {
866
+ ref_key: "chartRef",
867
+ ref: P,
868
+ class: "StationPop-chart"
869
+ }, null, 512)])
870
+ ])
871
+ ], 4)), [[x, n.value]]), z.value ? (b(), f("div", ht, [p("div", gt, [
872
+ p("div", _t, [p("div", vt, [r[24] ||= p("span", null, "历史数据", -1), p("span", yt, C(k.value.stationName || e.stationName), 1)]), p("button", {
873
+ class: "StationPop-historyClose",
874
+ onClick: Bt
875
+ }, "✕")]),
876
+ p("div", bt, [(b(), f(u, null, S(Tt, (e) => p("button", {
877
+ key: e.value,
878
+ class: v(["StationPop-historyTab", { "StationPop-historyTab--active": B.value === e.value }]),
879
+ onClick: (t) => Vt(e.value)
880
+ }, C(e.label), 11, xt)), 64)), p("div", St, [h(_, { locale: w(ue) }, {
881
+ default: T(() => [h(ne, {
882
+ modelValue: H.value,
883
+ "onUpdate:modelValue": r[0] ||= (e) => H.value = e,
884
+ clearable: !1,
885
+ class: "StationPop-historyDatePicker",
886
+ "popper-class": "StationPop-historyDatePickerPopper",
887
+ type: B.value === "day" ? "daterange" : "monthrange",
888
+ "value-format": B.value === "day" ? "YYYY-MM-DD" : "YYYY-MM",
889
+ "start-placeholder": B.value === "day" ? "开始日期" : "开始月份",
890
+ "end-placeholder": B.value === "day" ? "结束日期" : "结束月份",
633
891
  size: "small",
634
- teleported: !1,
635
892
  onChange: Q
636
- }, {
637
- default: b(() => [(g(!0), f(c, null, v(U.value, (e) => (g(), u(n, {
638
- key: e.value,
639
- label: e.label,
640
- value: e.value
641
- }, null, 8, ["label", "value"]))), 128))]),
642
- _: 1
643
- }, 8, ["modelValue"])]),
644
- p("div", be, [
645
- p("div", xe, [t[6] ||= p("div", { class: "HdObservation-statIcon" }, [p("svg", {
646
- viewBox: "0 0 24 24",
647
- width: "18",
648
- height: "18",
649
- fill: "none",
650
- stroke: "currentColor",
651
- "stroke-width": "2"
652
- }, [p("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }), p("polyline", { points: "17 6 23 6 23 12" })])], -1), p("div", Se, [
653
- t[5] ||= p("div", { class: "HdObservation-statLabel" }, "最高值", -1),
654
- p("div", C, y(q.value.value), 1),
655
- p("div", {
656
- class: "HdObservation-statStation",
657
- title: q.value.station
658
- }, y(q.value.station), 9, w)
659
- ])]),
660
- p("div", T, [t[8] ||= p("div", { class: "HdObservation-statIcon" }, [p("svg", {
661
- viewBox: "0 0 24 24",
662
- width: "20",
663
- height: "20",
664
- fill: "none",
665
- stroke: "currentColor",
666
- "stroke-width": "2"
667
- }, [p("polyline", { points: "23 18 13.5 8.5 8.5 13.5 1 6" }), p("polyline", { points: "17 18 23 18 23 12" })])], -1), p("div", E, [
668
- t[7] ||= p("div", { class: "HdObservation-statLabel" }, "最低值", -1),
669
- p("div", D, y(J.value.value), 1),
670
- p("div", {
671
- class: "HdObservation-statStation",
672
- title: J.value.station
673
- }, y(J.value.station), 9, O)
674
- ])]),
675
- p("div", k, [t[11] ||= ee("<div class=\"HdObservation-statIcon\" data-v-5ac2da35><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" data-v-5ac2da35><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\" data-v-5ac2da35></line><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\" data-v-5ac2da35></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\" data-v-5ac2da35></line></svg></div>", 1), p("div", A, [
676
- t[9] ||= p("div", { class: "HdObservation-statLabel" }, "平均值", -1),
677
- p("div", j, y(Ae.value), 1),
678
- t[10] ||= p("div", { class: "HdObservation-statStation" }, "全区平均", -1)
679
- ])])
893
+ }, null, 8, [
894
+ "modelValue",
895
+ "type",
896
+ "value-format",
897
+ "start-placeholder",
898
+ "end-placeholder"
899
+ ])]),
900
+ _: 1
901
+ }, 8, ["locale"]), p("button", {
902
+ class: "StationPop-historyExport",
903
+ onClick: Gt
904
+ }, [h(g, null, {
905
+ default: T(() => [h(w(ce))]),
906
+ _: 1
907
+ }), r[25] ||= m(" 导出 ", -1)])])]),
908
+ p("div", Ct, [h(ie, {
909
+ data: V.value,
910
+ class: "StationPop-historyTable",
911
+ style: { width: "100%" },
912
+ "empty-text": "暂无数据"
913
+ }, {
914
+ default: T(() => [
915
+ h(y, {
916
+ type: "index",
917
+ label: "序号",
918
+ width: "60",
919
+ align: "center"
920
+ }),
921
+ h(y, {
922
+ label: B.value === "day" ? "日期" : "月份",
923
+ "min-width": "160",
924
+ "show-overflow-tooltip": "",
925
+ align: "left"
926
+ }, {
927
+ default: T(({ row: e }) => [p("span", null, C(e.datetime_bj || "--"), 1)]),
928
+ _: 1
929
+ }, 8, ["label"]),
930
+ h(y, {
931
+ label: "累计降水量08",
932
+ "min-width": "100",
933
+ align: "right"
934
+ }, {
935
+ default: T(({ row: e }) => [p("span", null, C(W(e.pre_time_0808, "mm")), 1)]),
936
+ _: 1
937
+ }),
938
+ h(y, {
939
+ label: "累计降水量20",
940
+ "min-width": "100",
941
+ align: "right"
942
+ }, {
943
+ default: T(({ row: e }) => [p("span", null, C(W(e.pre_time_2020, "mm")), 1)]),
944
+ _: 1
945
+ }),
946
+ h(y, {
947
+ label: "最高温",
948
+ "min-width": "80",
949
+ align: "right"
950
+ }, {
951
+ default: T(({ row: e }) => [p("span", null, C(W(e.tem_max, "℃")), 1)]),
952
+ _: 1
953
+ }),
954
+ h(y, {
955
+ label: "最低温",
956
+ "min-width": "80",
957
+ align: "right"
958
+ }, {
959
+ default: T(({ row: e }) => [p("span", null, C(W(e.tem_min, "℃")), 1)]),
960
+ _: 1
961
+ }),
962
+ h(y, {
963
+ label: "最大风力",
964
+ "min-width": "120",
965
+ align: "left"
966
+ }, {
967
+ default: T(({ row: e }) => [p("span", null, C(W(e.win_s_inst_max, "m/s")), 1)]),
968
+ _: 1
969
+ })
680
970
  ]),
681
- p("div", Ce, [p("div", we, [p("div", Te, [p("span", null, y(G.value.label) + "排名", 1), p("span", Ee, "单位:" + y(G.value.unit), 1)]), p("button", {
682
- class: "HdObservation-btn",
683
- onClick: Re
684
- }, [m(l, null, {
685
- default: b(() => [m(se(le))]),
686
- _: 1
687
- }), t[12] ||= p("span", { class: "HdObservation-btnText" }, "导出", -1)])]), p("div", {
688
- ref_key: "chartRef",
689
- ref: z,
690
- class: "HdObservation-chart",
691
- style: ie({ height: ke.value + "px" })
692
- }, null, 4)])
693
- ])
694
- ])), [[h, P.value]]);
971
+ _: 1
972
+ }, 8, ["data"])])
973
+ ])])) : te("", !0)], 512), [[ae, A.value]])]);
695
974
  };
696
975
  }
697
- }), [["__scopeId", "data-v-5ac2da35"]]);
976
+ }), [["__scopeId", "data-v-5835803b"]]);
698
977
  //#endregion
699
- export { S as n, N as t };
978
+ export { k as a, de as i, j as n, A as o, O as r, M as t };