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.
Files changed (93) hide show
  1. package/dist/chunks/YCServiceSummary-PPstZeY5.mjs +2 -0
  2. package/dist/chunks/{component-AiChat-C_DePYiS.mjs → component-AiChat-AMGDZOnM.mjs} +691 -691
  3. package/dist/chunks/{component-AqiMonitor-B4ZLQZOd.mjs → component-AqiMonitor-CbRqtu9p.mjs} +1 -1
  4. package/dist/chunks/{component-ChartCumulativePre-DQqNwEkp.mjs → component-ChartCumulativePre-BTqI2llc.mjs} +2 -2
  5. package/dist/chunks/{component-ChartServiceMaterial-BSXCSmjT.mjs → component-ChartServiceMaterial-B09CYvj1.mjs} +2 -2
  6. package/dist/chunks/{component-Duty-DnkxgYav.mjs → component-Duty-B_xLIwLc.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic-DZIISSb4.mjs → component-EarlyWarningStatistic-CuEZKyRd.mjs} +2 -2
  8. package/dist/chunks/{component-EarlyWarningStatistic2-vSCEWtaq.mjs → component-EarlyWarningStatistic2-CwxVVXDz.mjs} +2 -2
  9. package/dist/chunks/{component-Forecast72h-DicwnEaB.mjs → component-Forecast72h-DWuJmxhN.mjs} +2 -2
  10. package/dist/chunks/{component-GeologyLiveAlarm-DcLkKxQi.mjs → component-GeologyLiveAlarm-D0Qp3NkC.mjs} +2 -2
  11. package/dist/chunks/{component-GridForecastMsg-B1J5xBf1.mjs → component-GridForecastMsg-CACyyiD4.mjs} +2 -2
  12. package/dist/chunks/{component-HDSeaLegend-ubUWj-K6.mjs → component-HDSeaLegend-BKmNgyVy.mjs} +1 -1
  13. package/dist/chunks/{component-HdCameraList-DE5T_NCe.mjs → component-HdCameraList-CjERf58T.mjs} +4 -4
  14. package/dist/chunks/{component-HdFarmStation-Dr16UrnR.mjs → component-HdFarmStation-B7LiZJNn.mjs} +5 -4
  15. package/dist/chunks/{component-HdFarmStationDialog-DNAo261X.mjs → component-HdFarmStationDialog-DGaloDuc.mjs} +266 -282
  16. package/dist/chunks/{component-HdForecastProducts-DW94eZkZ.mjs → component-HdForecastProducts-Cqm11AZJ.mjs} +2 -2
  17. package/dist/chunks/{component-HdHeatChart-QyRCV140.mjs → component-HdHeatChart-DBrkJ7wc.mjs} +2 -2
  18. package/dist/chunks/{component-HdHeatChartDialog-CwUk9qQm.mjs → component-HdHeatChartDialog-COXAQ7bQ.mjs} +3 -3
  19. package/dist/chunks/{component-HdHeatService-Cbsa46Kg.mjs → component-HdHeatService-BytLjsOH.mjs} +2 -2
  20. package/dist/chunks/{component-HdInsectDetailList-Br06iK7W.mjs → component-HdInsectDetailList-Burje-lq.mjs} +2 -2
  21. package/dist/chunks/{component-HdInsectList-Djo-0pVh.mjs → component-HdInsectList-BmvZhDkG.mjs} +2 -2
  22. package/dist/chunks/component-HdMajorActivity-fd-kVYVY.mjs +221 -0
  23. package/dist/chunks/{component-HdObservation-5k_0GZGV.mjs → component-HdObservation-CEBvwX20.mjs} +4 -4
  24. package/dist/chunks/{component-HdPreSituation-B0yXJZVG.mjs → component-HdPreSituation-C9k5S8xb.mjs} +4 -4
  25. package/dist/chunks/{component-HdQxServiceEffects-Ds1vj_DV.mjs → component-HdQxServiceEffects-afWY5O0D.mjs} +2 -2
  26. package/dist/chunks/{component-HdRadarList-NLZ0YNV8.mjs → component-HdRadarList-CcQfA_IK.mjs} +3 -3
  27. package/dist/chunks/{component-HdRadarTime-D7-YoOkE.mjs → component-HdRadarTime-BinpFlES.mjs} +2 -2
  28. package/dist/chunks/{component-HdRadarTimeLine-CJ0_ejKf.mjs → component-HdRadarTimeLine-DsMjdctK.mjs} +2 -2
  29. package/dist/chunks/{component-HdRisk-fuJNWgJD.mjs → component-HdRisk-CtU4tAFm.mjs} +3 -3
  30. package/dist/chunks/{component-HdSeaCase-D21rq9pv.mjs → component-HdSeaCase-BSUlsIx4.mjs} +2 -2
  31. package/dist/chunks/{component-HdServiceMarterial-CgcHHy6J.mjs → component-HdServiceMarterial-BVRAV14z.mjs} +3 -3
  32. package/dist/chunks/{component-HdServiceRequirements-D2EdgZjN.mjs → component-HdServiceRequirements-CuKHpG2x.mjs} +3 -3
  33. package/dist/chunks/{component-HdSoil-D58PIu6D.mjs → component-HdSoil-Cg5eJ24C.mjs} +3 -3
  34. package/dist/chunks/{component-HdSoilDetailList-BpbPwCjd.mjs → component-HdSoilDetailList-BXkegoW8.mjs} +2 -2
  35. package/dist/chunks/{component-HdStationTem-qqZ5UXom.mjs → component-HdStationTem-BDWsPUTr.mjs} +4 -4
  36. package/dist/chunks/{component-HdSuggestion-Dbdlr5zS.mjs → component-HdSuggestion-Z8vAFQcx.mjs} +3 -3
  37. package/dist/chunks/{component-HdThreeWeatherTrend-zSmR2LIO.mjs → component-HdThreeWeatherTrend-D76c14hh.mjs} +4 -4
  38. package/dist/chunks/{component-HdWaveForcast-DllKzNgu.mjs → component-HdWaveForcast-BqdcmF-9.mjs} +3 -3
  39. package/dist/chunks/{component-HighQuality-BNVnCK0d.mjs → component-HighQuality-CxiEeJ6T.mjs} +2 -2
  40. package/dist/chunks/{component-HighWayEarlyWarningRed-CwzMQCqp.mjs → component-HighWayEarlyWarningRed-CXddcWf3.mjs} +2 -2
  41. package/dist/chunks/{component-HighWayFreeze-Ds2Hz7pR.mjs → component-HighWayFreeze-Ce2mS-fo.mjs} +2 -2
  42. package/dist/chunks/{component-HighwayLiveAlarm-Do4pwmnJ.mjs → component-HighwayLiveAlarm-cmXVG7kx.mjs} +2 -2
  43. package/dist/chunks/{component-HighwayLiveAlarmNew-DoWns_RH.mjs → component-HighwayLiveAlarmNew-DIh8-E-a.mjs} +3 -3
  44. package/dist/chunks/{component-HighwayStations-BBQa33JX.mjs → component-HighwayStations-DeOsPYJ4.mjs} +2 -2
  45. package/dist/chunks/{component-HighwayWeatherForecast-C-kwyE6Q.mjs → component-HighwayWeatherForecast-OTwm4aUB.mjs} +5 -5
  46. package/dist/chunks/{component-IframeWeb-uP8unwJj.mjs → component-IframeWeb-DJpLhA93.mjs} +1 -1
  47. package/dist/chunks/{component-ImageGeneration-CLAge4U1.mjs → component-ImageGeneration-CPp8qG9P.mjs} +1 -1
  48. package/dist/chunks/{component-IntroducePic-C8X8Y6hx.mjs → component-IntroducePic-DMbanecs.mjs} +2 -2
  49. package/dist/chunks/{component-LithiumBatteryMiningArea-xc5REiPe.mjs → component-LithiumBatteryMiningArea-BHUIxPQA.mjs} +2 -2
  50. package/dist/chunks/{component-MapPopup-DXRLi4wJ.mjs → component-MapPopup-CG1DlFH_.mjs} +1 -1
  51. package/dist/chunks/{component-MaterialPreview-B9iSbEIO.mjs → component-MaterialPreview-DFtr5Zsw.mjs} +2 -2
  52. package/dist/chunks/{component-PieLegend-DPwAQJxO.mjs → component-PieLegend-CUhuvyyt.mjs} +1 -1
  53. package/dist/chunks/{component-PrecipitationRanking-CwP3NZlf.mjs → component-PrecipitationRanking-CvuHO8-L.mjs} +4 -4
  54. package/dist/chunks/{component-RadarChart-BxEzHVOE.mjs → component-RadarChart-BtV2B9NQ.mjs} +2 -2
  55. package/dist/chunks/{component-RadarLegend-DVoe6ojQ.mjs → component-RadarLegend-uI-vbK2B.mjs} +1 -1
  56. package/dist/chunks/{component-RadarShortTerm-7v_EauV4.mjs → component-RadarShortTerm-C3yIFfjc.mjs} +4 -4
  57. package/dist/chunks/{component-RadarTime-CT8WOoJR.mjs → component-RadarTime-Cy5ezbus.mjs} +2 -2
  58. package/dist/chunks/{component-RenderMarkdown-CxAwaqBM.mjs → component-RenderMarkdown-Cf79iCPF.mjs} +2 -2
  59. package/dist/chunks/{component-ReservoirLiveAlarm-CWkaa2z8.mjs → component-ReservoirLiveAlarm-DvMi5KuT.mjs} +3 -3
  60. package/dist/chunks/{component-ServiceMaterial-CNjEwMGZ.mjs → component-ServiceMaterial-tM5xlUk5.mjs} +2 -2
  61. package/dist/chunks/{component-ServiceMaterialsBtn-DWBa1Hpa.mjs → component-ServiceMaterialsBtn-CkBLC8_V.mjs} +1 -1
  62. package/dist/chunks/{component-StationDialog-usekZclX.mjs → component-StationDialog-ThXd8RYz.mjs} +3 -3
  63. package/dist/chunks/{component-StationList-B0bav8JG.mjs → component-StationList-CTE-wJJe.mjs} +4 -4
  64. package/dist/chunks/{component-TimeBasedForecast-l0RpjVYi.mjs → component-TimeBasedForecast-BH14WI1X.mjs} +4 -4
  65. package/dist/chunks/{component-Typhoon-Cf8qko_n.mjs → component-Typhoon-BAh6wD79.mjs} +2 -2
  66. package/dist/chunks/{component-WarningLine-B2HyTDUW.mjs → component-WarningLine-DXy9x9WQ.mjs} +2 -2
  67. package/dist/chunks/{component-WarningSignal-Cy8MQ6oC.mjs → component-WarningSignal-omOhQ4Oe.mjs} +3 -3
  68. package/dist/chunks/{component-WeatherForecast-B-MV7oqR.mjs → component-WeatherForecast-CdccA6XY.mjs} +4 -4
  69. package/dist/chunks/{component-YCDataMonitor-p7tSzU_b.mjs → component-YCDataMonitor-b_yLhnlt.mjs} +2 -2
  70. package/dist/chunks/{component-YCDataService-BBVuyu-D.mjs → component-YCDataService-BuXN9Hbm.mjs} +4 -4
  71. package/dist/chunks/{component-YCHighWaySummary-BH34LVVj.mjs → component-YCHighWaySummary-BJ5NCRVX.mjs} +2 -2
  72. package/dist/chunks/{component-YCHome-CtSa__qB.mjs → component-YCHome-KZ-r1BIn.mjs} +4 -4
  73. package/dist/chunks/{component-YCHomeLegend-DqzGcZgD.mjs → component-YCHomeLegend-CI9bN8C9.mjs} +1 -1
  74. package/dist/chunks/{component-YCLoginNew-zgG8m4VV.mjs → component-YCLoginNew-BwaX10Om.mjs} +13 -13
  75. package/dist/chunks/component-YCServiceSummary-DyWhK07a.mjs +509 -0
  76. package/dist/components/HdFarmStationDialog/HdFarmStationDialog.vue.d.ts +0 -69
  77. package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +30 -0
  78. package/dist/components/YCServiceSummary/YCAIChatPanel.vue.d.ts +20 -2
  79. package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +19 -2
  80. package/dist/components/YCServiceSummary/YCServiceSummaryRefineAnalysis.vue.d.ts +21 -2
  81. package/dist/components/YCServiceSummary/YCServiceSummaryTrafficAnalysis.vue.d.ts +21 -2
  82. package/dist/index.d.ts +2 -1
  83. package/dist/nxd-plugin.mjs +75 -74
  84. package/dist/styles/component-HdCameraList.css +1 -1
  85. package/dist/styles/component-HdFarmStation.css +1 -1
  86. package/dist/styles/component-HdFarmStationDialog.css +1 -1
  87. package/dist/styles/component-HdMajorActivity.css +1 -0
  88. package/dist/styles/component-YCLoginNew.css +1 -1
  89. package/dist/styles/component-YCServiceSummary.css +1 -1
  90. package/package.json +1 -1
  91. package/dist/chunks/YCServiceSummary-9W7E-cRv.mjs +0 -2
  92. package/dist/chunks/component-YCServiceSummary-KF3yjd4u.mjs +0 -354
  93. 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-B4ZLQZOd.mjs";
3
- import { i as r } from "./component-AiChat-C_DePYiS.mjs";
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 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";
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 ue from "element-plus/es/locale/lang/zh-cn.mjs";
12
+ import ce from "element-plus/es/locale/lang/zh-cn.mjs";
12
13
  //#region src/utils/methods.ts
13
- var O = (e) => {
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
- }, k = (e) => {
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
- }, de = (e) => {
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
- }, A = (e) => {
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
- }, j = /* @__PURE__ */ t(((e, t) => {
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
- })), fe = /* @__PURE__ */ e(j()), pe = { class: "HdFarmStationDialog-mask HdFarmStationDialog" }, me = { class: "StationPop-title" }, he = { class: "StationPop-subtitle" }, ge = {
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
- }, _e = {
260
+ }, me = {
260
261
  key: 1,
261
262
  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: {
263
+ }, he = { class: "StationPop-info" }, ge = { style: {
266
264
  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 = {
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
- }, gt = { class: "StationPop-historyPopup" }, _t = { class: "StationPop-historyHeader" }, vt = { class: "StationPop-historyTitle" }, yt = { class: "StationPop-historySubTitle" }, bt = {
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
- }, xt = ["onClick"], St = { class: "StationPop-historyActions" }, Ct = { class: "StationPop-historyTableWrap" }, M = /* @__PURE__ */ n(/* @__PURE__ */ g({
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 = ne()?.appContext.config.globalProperties.$bus, n = x(!1), g = e, O = x(null), k = x({
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
- }), A = x(!1), j = x(""), M = x({}), N = x({}), P = x(null), F = null, I = x([]), L = x("temperature"), wt = [
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
- ], R = x({}), z = x(!1), B = x("day"), V = x([]), H = x([]), Tt = [{
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
- }], 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) => {
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
- }, K = async (e, t = {}) => {
334
- let n = G(e);
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: O.value,
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
- }, 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 () => {
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 = q(await K("data"));
357
- if (e && typeof e == "object") {
358
- jt(e), _(X);
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 = q(await K("baseInfo"));
366
- e && (k.value = {
367
- ...k.value,
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 = q(await K("realTime"));
375
- e && (M.value = { ...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 = q(await K("statistics"));
381
- e && (N.value = { ...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 (G("chart")) {
387
- let e = q(await K("chart"));
388
- e && typeof e == "object" && (R.value = Ft(e));
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
- _(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) => ({
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: Number(e.min ?? e.thresholdMin ?? 0),
398
- max: Number(e.max ?? e.thresholdMax ?? 0)
393
+ min: t(e.min ?? e.thresholdMin),
394
+ max: t(e.max ?? e.thresholdMax)
399
395
  }));
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 || ""
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 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)
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 r = Array.isArray(e.elementData) ? e.elementData : [];
429
- r.length && (R.value = Pt(r));
430
- }, J = (e) => {
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
- }, 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];
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 = I.value.find((e) => e.ele_code === t);
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
- }, Pt = (e) => {
448
+ }, xt = (e) => {
449
+ console.log(e, "图表数据");
449
450
  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
- });
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("tem", "正常值", "#00D9FF", "line", "temperature")]
468
+ series: [n("air_temperature", "正常值", "#00D9FF", "line", "temperature")]
465
469
  },
466
470
  wind: {
467
471
  times: t,
468
- unit: "",
469
- series: [n("win_s_inst_max", "正常值", "#00D9FF", "line", "wind")]
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("rhu", "正常值", "#00D9FF", "line", "humidity")]
478
+ series: [n("air_humidity", "正常值", "#00D9FF", "line", "humidity")]
475
479
  },
476
480
  precipitation: {
477
481
  times: t,
478
482
  unit: "mm",
479
- series: [n("pre_1h", "正常值", "#00D9FF", "bar", "precipitation")]
483
+ series: [n("rainfall", "正常值", "#00D9FF", "bar", "precipitation")]
480
484
  },
481
485
  pressure: {
482
486
  times: t,
483
487
  unit: "hPa",
484
- series: [n("prs", "正常值", "#00D9FF", "line", "pressure")]
488
+ series: [n("atmospheric_pressure", "正常值", "#00D9FF", "line", "pressure")]
485
489
  }
486
490
  };
487
- }, Ft = (e) => {
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
- }, 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];
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
- F.clear();
522
+ L.clear();
519
523
  return;
520
524
  }
521
- let t = L.value === "wind", n = e.series.some((e) => e.type === "bar"), r = e.series.map((r) => {
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 D.graphic.LinearGradient(0, 0, 0, 1, [{
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: Lt(r.color || "#00D9FF", .3)
543
+ color: Ct(r.color || "#00D9FF", .3)
540
544
  }, {
541
545
  offset: 1,
542
- color: Lt(r.color || "#00D9FF", .01)
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 || Y(L.value);
548
+ let a = r.thresholdRange || Z(z.value);
545
549
  if (a) {
546
550
  let { min: t, max: n } = a, r = [];
547
- isNaN(t) || r.push({
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) || r.push({
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 || Y(L.value);
610
- n && (isNaN(Number(n.min)) || t.push(Number(n.min)), isNaN(Number(n.max)) || t.push(Number(n.max)));
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 * 1.1),
618
- max: Math.ceil(n * 1.1)
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: 0
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
- 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] || [];
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] = H.value.length === 2 ? H.value : [null, null], n = B.value === "day" ? "日统计" : "月统计";
707
+ let [e, t] = W.value.length === 2 ? W.value : [null, null], n = H.value === "day" ? "日统计" : "月统计";
709
708
  if (!e || !t) {
710
- V.value = [];
709
+ U.value = [];
711
710
  return;
712
711
  }
713
712
  try {
714
- V.value = Wt(q(await K("history", {
713
+ U.value = Mt(Y(await J("history", {
715
714
  startDate: e,
716
715
  endDate: t,
717
716
  type: n,
718
- stationIdC: O.value
719
- })), B.value);
717
+ stationIdC: k.value
718
+ })), H.value);
720
719
  } catch (e) {
721
- console.error("历史数据加载失败", e), V.value = [];
720
+ console.error("历史数据加载失败", e), U.value = [];
722
721
  }
723
- }, Ht = (e) => {
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: Ut(n),
729
- endDate: Ut(e)
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: $(new Date(t.getFullYear(), t.getMonth() - 11, 1)),
735
- endDate: $(n)
733
+ startDate: jt(new Date(t.getFullYear(), t.getMonth() - 11, 1)),
734
+ endDate: jt(n)
736
735
  };
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) => ({
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: 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) => ({
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: 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()}`,
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
- oe(A, (e) => {
794
- e && _(() => {
795
- !F && P.value ? X() : F?.resize();
792
+ ie(M, (e) => {
793
+ e && v(() => {
794
+ !L && I.value ? $() : L?.resize();
796
795
  });
797
796
  });
798
- function Kt() {
799
- A.value = !0, n.value = !0, Ot().finally(() => {
797
+ function Pt() {
798
+ M.value = !0, n.value = !0, gt().finally(() => {
800
799
  n.value = !1;
801
800
  });
802
801
  }
803
- return ie(() => {
804
- window.addEventListener("resize", Rt), t?.on("toComponent", (e) => {
805
- e.componentName === "HdFarmStationDialog" && (O.value = e.msCode || "", Kt());
802
+ return x(() => {
803
+ window.addEventListener("resize", wt), t?.on("toComponent", (e) => {
804
+ e.componentName === "HdFarmStationDialog" && (k.value = e.msCode || "", Pt());
806
805
  });
807
- }), y(() => {
808
- window.removeEventListener("resize", Rt), F &&= (F.dispose(), null);
806
+ }), b(() => {
807
+ window.removeEventListener("resize", wt), L &&= (L.dispose(), null);
809
808
  }), (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", {
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: re(e.componentStyle)
814
+ style: ne(e.componentStyle)
816
815
  }, [
817
816
  p("div", {
818
817
  class: "StationPop-close",
819
- onClick: Et
818
+ onClick: mt
820
819
  }, [h(g, { class: "StationPop-close-icon" }, {
821
- default: T(() => [h(w(se))]),
820
+ default: D(() => [h(E(ae))]),
822
821
  _: 1
823
822
  })]),
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)])
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", 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", {
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: 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", {
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: P,
851
+ ref: I,
868
852
  class: "StationPop-chart"
869
853
  }, null, 512)])
870
854
  ])
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", {
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: Bt
858
+ onClick: Tt
875
859
  }, "✕")]),
876
- p("div", bt, [(b(), f(u, null, S(Tt, (e) => p("button", {
860
+ p("div", ct, [(S(), f(u, null, w(pt, (e) => p("button", {
877
861
  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,
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: 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" ? "结束日期" : "结束月份",
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: Q
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: Gt
887
+ onClick: Nt
904
888
  }, [h(g, null, {
905
- default: T(() => [h(w(ce))]),
889
+ default: D(() => [h(E(oe))]),
906
890
  _: 1
907
- }), r[25] ||= m(" 导出 ", -1)])])]),
908
- p("div", Ct, [h(ie, {
909
- data: V.value,
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: T(() => [
915
- h(y, {
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(y, {
922
- label: B.value === "day" ? "日期" : "月份",
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: T(({ row: e }) => [p("span", null, C(e.datetime_bj || "--"), 1)]),
911
+ default: D(({ row: e }) => [p("span", null, T(e.datetime_bj || "--"), 1)]),
928
912
  _: 1
929
913
  }, 8, ["label"]),
930
- h(y, {
914
+ h(b, {
931
915
  label: "累计降水量08",
932
916
  "min-width": "100",
933
917
  align: "right"
934
918
  }, {
935
- default: T(({ row: e }) => [p("span", null, C(W(e.pre_time_0808, "mm")), 1)]),
919
+ default: D(({ row: e }) => [p("span", null, T(K(e.pre_time_0808, "mm")), 1)]),
936
920
  _: 1
937
921
  }),
938
- h(y, {
922
+ h(b, {
939
923
  label: "累计降水量20",
940
924
  "min-width": "100",
941
925
  align: "right"
942
926
  }, {
943
- default: T(({ row: e }) => [p("span", null, C(W(e.pre_time_2020, "mm")), 1)]),
927
+ default: D(({ row: e }) => [p("span", null, T(K(e.pre_time_2020, "mm")), 1)]),
944
928
  _: 1
945
929
  }),
946
- h(y, {
930
+ h(b, {
947
931
  label: "最高温",
948
932
  "min-width": "80",
949
933
  align: "right"
950
934
  }, {
951
- default: T(({ row: e }) => [p("span", null, C(W(e.tem_max, "℃")), 1)]),
935
+ default: D(({ row: e }) => [p("span", null, T(K(e.tem_max, "℃")), 1)]),
952
936
  _: 1
953
937
  }),
954
- h(y, {
938
+ h(b, {
955
939
  label: "最低温",
956
940
  "min-width": "80",
957
941
  align: "right"
958
942
  }, {
959
- default: T(({ row: e }) => [p("span", null, C(W(e.tem_min, "℃")), 1)]),
943
+ default: D(({ row: e }) => [p("span", null, T(K(e.tem_min, "℃")), 1)]),
960
944
  _: 1
961
945
  }),
962
- h(y, {
946
+ h(b, {
963
947
  label: "最大风力",
964
948
  "min-width": "120",
965
949
  align: "left"
966
950
  }, {
967
- default: T(({ row: e }) => [p("span", null, C(W(e.win_s_inst_max, "m/s")), 1)]),
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), [[ae, A.value]])]);
957
+ ])])) : te("", !0)], 512), [[re, M.value]])]);
974
958
  };
975
959
  }
976
- }), [["__scopeId", "data-v-5835803b"]]);
960
+ }), [["__scopeId", "data-v-353e3419"]]);
977
961
  //#endregion
978
- export { k as a, de as i, j as n, A as o, O as r, M as t };
962
+ export { A as a, j as i, N as n, M as o, k as r, P as t };