nxd-plugin 1.8.21 → 1.8.23

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