nxd-plugin 1.8.19 → 1.8.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/chunks/YCServiceSummary-BtvuJK6i.mjs +2 -0
  2. package/dist/chunks/{component-AiChat-DyGMpz5Q.mjs → component-AiChat-eZQfj_Yt.mjs} +740 -703
  3. package/dist/chunks/{component-AqiMonitor-CQTn29-8.mjs → component-AqiMonitor-GecRSbVS.mjs} +1 -1
  4. package/dist/chunks/{component-ChartCumulativePre-BO1v1Bjk.mjs → component-ChartCumulativePre-CldPuL7s.mjs} +2 -2
  5. package/dist/chunks/{component-ChartServiceMaterial-DpStK0Jb.mjs → component-ChartServiceMaterial-DxLDMmSP.mjs} +2 -2
  6. package/dist/chunks/{component-Duty-CJGLzr-m.mjs → component-Duty-B5XqGJa6.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic-ChIhpUsj.mjs → component-EarlyWarningStatistic-Cxk6_30Z.mjs} +2 -2
  8. package/dist/chunks/{component-EarlyWarningStatistic2-Ntabj0O3.mjs → component-EarlyWarningStatistic2-CiIKhhvg.mjs} +2 -2
  9. package/dist/chunks/component-Forecast72h-D8Hq9xop.mjs +564 -0
  10. package/dist/chunks/{component-GeologyLiveAlarm-DMPdaI5F.mjs → component-GeologyLiveAlarm-Po9bQd5F.mjs} +2 -2
  11. package/dist/chunks/{component-GridForecastMsg-HLMnuEAT.mjs → component-GridForecastMsg-CwjT0ESP.mjs} +2 -2
  12. package/dist/chunks/{component-HDSeaLegend-C3H_-Fta.mjs → component-HDSeaLegend-DvyS7ixZ.mjs} +1 -1
  13. package/dist/chunks/{component-HdCameraList-Cl5dnU-p.mjs → component-HdCameraList-Xd9H8W06.mjs} +94 -81
  14. package/dist/chunks/component-HdFarmStation-CgVOFk0d.mjs +231 -0
  15. package/dist/chunks/{component-HdObservation-ZDPieMjX.mjs → component-HdFarmStationDialog-BPVUbJoh.mjs} +743 -464
  16. package/dist/chunks/{component-HdForecastProducts-BgaAZUiu.mjs → component-HdForecastProducts-BACFKA-T.mjs} +2 -2
  17. package/dist/chunks/{component-HdHeatChart-h79JOPxQ.mjs → component-HdHeatChart-D2A-8GOn.mjs} +2 -2
  18. package/dist/chunks/{component-HdHeatChartDialog-DMPAE8Xw.mjs → component-HdHeatChartDialog-skzuN7ms.mjs} +8 -8
  19. package/dist/chunks/{component-HdHeatService-CY_6j4jf.mjs → component-HdHeatService-Ctd2hryU.mjs} +2 -2
  20. package/dist/chunks/{component-HdInsectDetailList-B77361lS.mjs → component-HdInsectDetailList-DjfXF9TM.mjs} +2 -2
  21. package/dist/chunks/{component-HdInsectList-DJWq8LX7.mjs → component-HdInsectList-9ax_bYM5.mjs} +125 -109
  22. package/dist/chunks/component-HdObservation-DnvWecu3.mjs +540 -0
  23. package/dist/chunks/{component-HdPreSituation-dtj-phF9.mjs → component-HdPreSituation-ue6NoeLX.mjs} +4 -4
  24. package/dist/chunks/{component-HdQxServiceEffects-ByE3W9-C.mjs → component-HdQxServiceEffects-BA9YprJH.mjs} +2 -2
  25. package/dist/chunks/{component-HdRadarList-BhYlNWNn.mjs → component-HdRadarList-3Ku_EPAc.mjs} +3 -3
  26. package/dist/chunks/{component-HdRadarTime-BPFQFQY1.mjs → component-HdRadarTime-DJ9remuQ.mjs} +4 -4
  27. package/dist/chunks/{component-HdRadarTimeLine-CAuqo3zA.mjs → component-HdRadarTimeLine-AioIXBug.mjs} +4 -4
  28. package/dist/chunks/component-HdRisk-EEYUOp-m.mjs +303 -0
  29. package/dist/chunks/{component-HdSeaCase-SLplcTIQ.mjs → component-HdSeaCase-wtcKbkHt.mjs} +2 -2
  30. package/dist/chunks/{component-HdServiceMarterial-Pyv1Hgyg.mjs → component-HdServiceMarterial-DVDh4bGB.mjs} +3 -3
  31. package/dist/chunks/{component-HdServiceRequirements-C1TomMII.mjs → component-HdServiceRequirements-DE09S30M.mjs} +3 -3
  32. package/dist/chunks/{component-HdSoil-DAwTp9q5.mjs → component-HdSoil-iwfixKyQ.mjs} +46 -34
  33. package/dist/chunks/{component-HdSoilDetailList-BAOBs-r6.mjs → component-HdSoilDetailList-BU8dwoxC.mjs} +2 -2
  34. package/dist/chunks/{component-HdStationTem-Bt8gMR3v.mjs → component-HdStationTem-CXQDp4ci.mjs} +4 -4
  35. package/dist/chunks/{component-HdSuggestion-C6ziTTKZ.mjs → component-HdSuggestion-tHm1YDjK.mjs} +3 -3
  36. package/dist/chunks/component-HdThreeWeatherTrend-DMs-kYE2.mjs +273 -0
  37. package/dist/chunks/{component-HdWaveForcast-BAgLIJ5o.mjs → component-HdWaveForcast-CUYTGP0P.mjs} +66 -66
  38. package/dist/chunks/{component-HighQuality-B9BN2klR.mjs → component-HighQuality-DxtfroSS.mjs} +2 -2
  39. package/dist/chunks/{component-HighWayEarlyWarningRed-BKACtnT9.mjs → component-HighWayEarlyWarningRed-CrsIemqD.mjs} +2 -2
  40. package/dist/chunks/{component-HighWayFreeze-hvUY4ZTE.mjs → component-HighWayFreeze-Cm4-2vG_.mjs} +2 -2
  41. package/dist/chunks/{component-HighwayLiveAlarm-aRC9FTYG.mjs → component-HighwayLiveAlarm-C5qaO18J.mjs} +2 -2
  42. package/dist/chunks/{component-HighwayLiveAlarmNew-BKGQST-V.mjs → component-HighwayLiveAlarmNew-jcRvhac3.mjs} +3 -3
  43. package/dist/chunks/{component-HighwayStations-AMR6QPFN.mjs → component-HighwayStations-BrXW5rvQ.mjs} +2 -2
  44. package/dist/chunks/{component-HighwayWeatherForecast-CzJqDupd.mjs → component-HighwayWeatherForecast-DUQ4q-Bi.mjs} +43 -42
  45. package/dist/chunks/{component-IframeWeb-BS6VJ8f1.mjs → component-IframeWeb-B3VnWZj-.mjs} +1 -1
  46. package/dist/chunks/{component-ImageGeneration-B3gc74Sv.mjs → component-ImageGeneration-oBto5Eq9.mjs} +1 -1
  47. package/dist/chunks/{component-IntroducePic-biCcYGK2.mjs → component-IntroducePic-CuwoxRwE.mjs} +2 -2
  48. package/dist/chunks/{component-LithiumBatteryMiningArea-qREysEH3.mjs → component-LithiumBatteryMiningArea-BIaidiUp.mjs} +2 -2
  49. package/dist/chunks/{component-MapPopup-i-zUuhws.mjs → component-MapPopup-P8ptttZR.mjs} +1 -1
  50. package/dist/chunks/{component-MaterialPreview-BLUOsXhG.mjs → component-MaterialPreview-WZIwDNyk.mjs} +2 -2
  51. package/dist/chunks/{component-PieLegend-NhO_f7iC.mjs → component-PieLegend-CqB44kj5.mjs} +1 -1
  52. package/dist/chunks/{component-PrecipitationRanking-cxmtPL79.mjs → component-PrecipitationRanking-DTK8WJlr.mjs} +4 -4
  53. package/dist/chunks/{component-RadarChart-BCsX0Qfv.mjs → component-RadarChart-DjtpuNKC.mjs} +2 -2
  54. package/dist/chunks/{component-RadarLegend-D8ZGTpku.mjs → component-RadarLegend-DcbbK__o.mjs} +1 -1
  55. package/dist/chunks/{component-RadarShortTerm-CrHV53oG.mjs → component-RadarShortTerm-8caOV5kH.mjs} +4 -4
  56. package/dist/chunks/{component-RadarTime-CLfv4ONE.mjs → component-RadarTime-BBxqp1rN.mjs} +2 -2
  57. package/dist/chunks/{component-RenderMarkdown-DXjI2Dt3.mjs → component-RenderMarkdown-CWPJDN6s.mjs} +2 -2
  58. package/dist/chunks/{component-ReservoirLiveAlarm-DqwE8pqm.mjs → component-ReservoirLiveAlarm-66CUDeOa.mjs} +3 -3
  59. package/dist/chunks/{component-ServiceMaterial-uYRmU0z5.mjs → component-ServiceMaterial-CAC77NxJ.mjs} +2 -2
  60. package/dist/chunks/{component-ServiceMaterialsBtn-BVYUgjET.mjs → component-ServiceMaterialsBtn-C2JJur1T.mjs} +1 -1
  61. package/dist/chunks/{component-StationDialog-DgnfPEdU.mjs → component-StationDialog-D3s6lP7O.mjs} +5 -6
  62. package/dist/chunks/{component-StationList-Clj57lo5.mjs → component-StationList-CMhLztb5.mjs} +4 -5
  63. package/dist/chunks/{component-TimeBasedForecast-CKftV77z.mjs → component-TimeBasedForecast-Bnev7gdd.mjs} +4 -4
  64. package/dist/chunks/{component-Typhoon-Cfx0pQmJ.mjs → component-Typhoon-DuMAb4Z0.mjs} +2 -2
  65. package/dist/chunks/{component-WarningLine-DSCnNisF.mjs → component-WarningLine--LOMZXV2.mjs} +2 -2
  66. package/dist/chunks/{component-WarningSignal-BBmcWZym.mjs → component-WarningSignal-CeKOnKNj.mjs} +3 -3
  67. package/dist/chunks/{component-WeatherForecast-id_hUWFm.mjs → component-WeatherForecast-DH7uOTs2.mjs} +10 -6
  68. package/dist/chunks/{component-YCDataMonitor-COyI5fxU.mjs → component-YCDataMonitor-BwJTbDdw.mjs} +2 -2
  69. package/dist/chunks/{component-YCDataService-Bcjvc6_l.mjs → component-YCDataService-B0U5NRE8.mjs} +4 -4
  70. package/dist/chunks/{component-YCHighWaySummary-BMnak3MG.mjs → component-YCHighWaySummary-BZS7pCgV.mjs} +2 -2
  71. package/dist/chunks/{component-YCHome-BIZpF0zw.mjs → component-YCHome-2VOqUGRK.mjs} +4 -4
  72. package/dist/chunks/{component-YCHomeLegend-BZO9QXdN.mjs → component-YCHomeLegend-usJNx7Jv.mjs} +1 -1
  73. package/dist/chunks/{component-YCLoginNew-D3zPZcAM.mjs → component-YCLoginNew-Wg_A8wqh.mjs} +3 -3
  74. package/dist/chunks/component-YCServiceSummary-CXdQVjdO.mjs +15 -0
  75. package/dist/components/HdFarmStation/HdFarmStation.vue.d.ts +48 -0
  76. package/dist/components/HdFarmStationDialog/HdFarmStationDialog.vue.d.ts +94 -0
  77. package/dist/components/HdHeatChart/HdHeatChart.vue.d.ts +1 -1
  78. package/dist/components/HdRisk/HdRisk.vue.d.ts +1 -0
  79. package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +2 -0
  80. package/dist/index.d.ts +5 -1
  81. package/dist/nxd-plugin.mjs +75 -72
  82. package/dist/styles/component-AiChat.css +1 -1
  83. package/dist/styles/component-Forecast72h.css +1 -1
  84. package/dist/styles/component-HdCameraList.css +1 -1
  85. package/dist/styles/component-HdFarmStation.css +1 -0
  86. package/dist/styles/component-HdFarmStationDialog.css +1 -0
  87. package/dist/styles/component-HdHeatChartDialog.css +1 -1
  88. package/dist/styles/component-HdInsectList.css +1 -1
  89. package/dist/styles/component-HdRadarTime.css +1 -1
  90. package/dist/styles/component-HdRadarTimeLine.css +1 -1
  91. package/dist/styles/component-HdRisk.css +1 -1
  92. package/dist/styles/component-HdSoil.css +1 -1
  93. package/dist/styles/component-HdThreeWeatherTrend.css +1 -1
  94. package/dist/styles/component-HdWaveForcast.css +1 -1
  95. package/dist/styles/component-StationDialog.css +1 -1
  96. package/dist/styles/component-WeatherForecast.css +1 -1
  97. package/dist/styles/component-YCLoginNew.css +1 -1
  98. package/dist/styles/component-YCServiceSummary.css +1 -0
  99. package/package.json +1 -1
  100. package/dist/chunks/component-Forecast72h-s8yBgKV2.mjs +0 -565
  101. package/dist/chunks/component-HdRisk-BsYZCgLI.mjs +0 -236
  102. package/dist/chunks/component-HdThreeWeatherTrend-CJMs1P9m.mjs +0 -363
@@ -0,0 +1,540 @@
1
+ import { i as e } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
+ import { n as t } from "./component-AqiMonitor-GecRSbVS.mjs";
3
+ import { i as n } from "./component-AiChat-eZQfj_Yt.mjs";
4
+ import "./component-Forecast72h-D8Hq9xop.mjs";
5
+ import { n as r } from "./component-HdFarmStationDialog-BPVUbJoh.mjs";
6
+ import { ElIcon as i, ElLoadingDirective as a, ElOption as o, ElSelect as s } from "element-plus/es";
7
+ import { Fragment as c, computed as l, createBlock as ee, createCommentVNode as te, createElementBlock as u, createElementVNode as d, createStaticVNode as ne, createVNode as f, defineComponent as p, getCurrentInstance as re, nextTick as ie, normalizeClass as ae, normalizeStyle as oe, onBeforeUnmount as m, onMounted as se, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as ce, withCtx as y, withDirectives as le } from "vue";
8
+ import { Download as ue } from "@element-plus/icons-vue";
9
+ import * as b from "echarts";
10
+ import { ElMessage as de } from "element-plus";
11
+ import "element-plus/dist/index.css";
12
+ //#region src/components/HdObservation/HdObservation.vue?vue&type=script&setup=true&lang.ts
13
+ var fe = /* @__PURE__ */ e(r()), pe = {
14
+ class: "HdObservation",
15
+ "element-loading-background": "rgba(0, 0, 0, 0.5)"
16
+ }, me = { class: "HdObservation-header" }, he = { class: "HdObservation-headerContent" }, ge = {
17
+ key: 0,
18
+ class: "HdObservation-dataTime"
19
+ }, _e = { class: "HdObservation-body" }, ve = { class: "HdObservation-tabs" }, ye = ["onClick"], be = { class: "HdObservation-elementBar" }, xe = { class: "HdObservation-stats" }, x = { class: "HdObservation-statCard HdObservation-statCard--max" }, S = { class: "HdObservation-statInfo" }, C = { class: "HdObservation-statValue" }, w = ["title"], T = { class: "HdObservation-statCard HdObservation-statCard--min" }, E = { class: "HdObservation-statInfo" }, D = { class: "HdObservation-statValue" }, O = ["title"], k = { class: "HdObservation-statCard HdObservation-statCard--avg" }, A = { class: "HdObservation-statInfo" }, j = { class: "HdObservation-statValue" }, M = { class: "HdObservation-chartSection" }, Se = { class: "HdObservation-chartHeader" }, Ce = { class: "HdObservation-chartTitle" }, we = { class: "HdObservation-chartUnit" }, N = 10, P = /* @__PURE__ */ t(/* @__PURE__ */ p({
20
+ __name: "HdObservation",
21
+ props: {
22
+ mock: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ baseHttp: { default: "" },
27
+ appKey: { default: "" },
28
+ appSalt: { default: "" },
29
+ ids: { default: () => ({}) },
30
+ refreshInterval: { default: 300 * 1e3 },
31
+ chartHeight: { default: 280 },
32
+ mockData: { default: () => ({
33
+ dataTime: "2026-04-12 16时",
34
+ list: [
35
+ {
36
+ stationName: "临朐寺头",
37
+ value: 20
38
+ },
39
+ {
40
+ stationName: "临朐五井",
41
+ value: 5.6
42
+ },
43
+ {
44
+ stationName: "诸城昌标",
45
+ value: 5.4
46
+ },
47
+ {
48
+ stationName: "诸城目标",
49
+ value: 5.4
50
+ }
51
+ ]
52
+ }) }
53
+ },
54
+ emits: ["close"],
55
+ setup(e, { emit: t }) {
56
+ re()?.appContext.config.globalProperties.$bus;
57
+ let r = e, p = t, P = [
58
+ {
59
+ label: "温度",
60
+ value: "温度",
61
+ unit: "℃",
62
+ color: "#FF7D00"
63
+ },
64
+ {
65
+ label: "气压",
66
+ value: "气压",
67
+ unit: "hPa",
68
+ color: "#A855F7"
69
+ },
70
+ {
71
+ label: "风速",
72
+ value: "风速",
73
+ unit: "m/s",
74
+ color: "#00B42A"
75
+ },
76
+ {
77
+ label: "降水",
78
+ value: "降水",
79
+ unit: "mm",
80
+ color: "#165DFF"
81
+ },
82
+ {
83
+ label: "云量",
84
+ value: "云量",
85
+ unit: "%",
86
+ color: "#86909c"
87
+ }
88
+ ], Te = [
89
+ {
90
+ label: "温度08",
91
+ value: "温度08",
92
+ unit: "℃",
93
+ color: "#FF7D00"
94
+ },
95
+ {
96
+ label: "气压08",
97
+ value: "气压08",
98
+ unit: "hPa",
99
+ color: "#A855F7"
100
+ },
101
+ {
102
+ label: "风速08",
103
+ value: "风速08",
104
+ unit: "m/s",
105
+ color: "#00B42A"
106
+ },
107
+ {
108
+ label: "降水08",
109
+ value: "降水08",
110
+ unit: "mm",
111
+ color: "#165DFF"
112
+ },
113
+ {
114
+ label: "云量08",
115
+ value: "云量08",
116
+ unit: "%",
117
+ color: "#86909c"
118
+ },
119
+ {
120
+ label: "温度20",
121
+ value: "温度20",
122
+ unit: "℃",
123
+ color: "#FF7D00"
124
+ },
125
+ {
126
+ label: "气压20",
127
+ value: "气压20",
128
+ unit: "hPa",
129
+ color: "#A855F7"
130
+ },
131
+ {
132
+ label: "风速20",
133
+ value: "风速20",
134
+ unit: "m/s",
135
+ color: "#00B42A"
136
+ },
137
+ {
138
+ label: "降水20",
139
+ value: "降水20",
140
+ unit: "mm",
141
+ color: "#165DFF"
142
+ },
143
+ {
144
+ label: "云量20",
145
+ value: "云量20",
146
+ unit: "%",
147
+ color: "#86909c"
148
+ }
149
+ ], Ee = [{
150
+ label: "日统计",
151
+ value: 0
152
+ }, {
153
+ label: "实时观测",
154
+ value: 1
155
+ }], De = {
156
+ 0: "日统计",
157
+ 1: "实时观测"
158
+ }, F = g(!1), I = g(1), L = g(P[0].value), R = g({
159
+ 0: "",
160
+ 1: ""
161
+ }), z = g([]), B = g(null), V = g(!1), H = null, U = null, W = l(() => I.value === 1 ? P : Te), G = l(() => R.value[I.value]), K = l(() => {
162
+ let e = W.value;
163
+ return e.find((e) => e.value === L.value) || e[0];
164
+ }), q = l(() => [...z.value].filter((e) => !X(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).reverse()), Oe = l(() => {
165
+ let e = q.value.length;
166
+ if (!V.value || e <= N) return 280;
167
+ let t = e * 36 + 16;
168
+ return Math.min(Math.max(t, 280), 360);
169
+ }), J = l(() => {
170
+ let e = [...z.value].filter((e) => !X(e.value));
171
+ if (!e.length) return {
172
+ station: "--",
173
+ value: "--"
174
+ };
175
+ let t = e.reduce((e, t) => Number(t.value) > Number(e.value) ? t : e);
176
+ return {
177
+ station: t.stationName,
178
+ value: `${Z(t.value)}${K.value.unit}`
179
+ };
180
+ }), Y = l(() => {
181
+ let e = [...z.value].filter((e) => !X(e.value));
182
+ if (!e.length) return {
183
+ station: "--",
184
+ value: "--"
185
+ };
186
+ let t = e.reduce((e, t) => Number(t.value) < Number(e.value) ? t : e);
187
+ return {
188
+ station: t.stationName,
189
+ value: `${Z(t.value)}${K.value.unit}`
190
+ };
191
+ }), ke = l(() => {
192
+ let e = z.value.filter((e) => !X(e.value));
193
+ return e.length ? `${Z(e.reduce((e, t) => e + Number(t.value), 0) / e.length)}${K.value.unit}` : "--";
194
+ }), X = (e) => e == null || e === "" || e === 9999, Z = (e) => {
195
+ if (X(e)) return "--";
196
+ let t = Number(e);
197
+ return isNaN(t) ? String(e) : t.toFixed(1);
198
+ }, Ae = () => {
199
+ p("close", "HdObservation");
200
+ }, je = (e) => {
201
+ I.value = e, V.value = !1;
202
+ let t = W.value;
203
+ t.some((e) => e.value === L.value) || (L.value = t[0].value), Q();
204
+ }, Me = (e) => {
205
+ let t = r.ids[e] || r.ids.data;
206
+ return t?.id ? t : null;
207
+ }, Ne = (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, Pe = () => {
208
+ switch (K.value.value) {
209
+ case "PRE":
210
+ case "PRE08":
211
+ case "PRE20": return Number((Math.random() * 20).toFixed(1));
212
+ case "TMP":
213
+ case "TMP08":
214
+ case "TMP20": return Number((15 + Math.random() * 20).toFixed(1));
215
+ case "WIN":
216
+ case "WIN08":
217
+ case "WIN20": return Number((Math.random() * 12).toFixed(1));
218
+ case "PRS":
219
+ case "PRS08":
220
+ case "PRS20": return Number((1e3 + Math.random() * 25).toFixed(1));
221
+ case "CLO":
222
+ case "CLO08":
223
+ case "CLO20": return Number((Math.random() * 100).toFixed(0));
224
+ default: return 0;
225
+ }
226
+ }, Fe = () => {
227
+ let e = r.mockData;
228
+ z.value = (e.list?.length ? e.list : [
229
+ { stationName: "临朐寺头" },
230
+ { stationName: "临朐五井" },
231
+ { stationName: "诸城昌标" },
232
+ { stationName: "诸城目标" },
233
+ { stationName: "响山子水库" },
234
+ { stationName: "诸城" },
235
+ { stationName: "诸城气象局" },
236
+ { stationName: "黄岛" },
237
+ { stationName: "董家口" },
238
+ { stationName: "金沙滩" },
239
+ { stationName: "琅琊" },
240
+ { stationName: "大场" }
241
+ ]).map((e) => ({
242
+ ...e,
243
+ value: Pe()
244
+ })), R.value[I.value] = e.dataTime || "";
245
+ }, Ie = async () => {
246
+ let e = Me("data");
247
+ if (!e) {
248
+ console.warn("HdObservation 缺少工作流配置");
249
+ return;
250
+ }
251
+ try {
252
+ let t = { realTime: I.value };
253
+ I.value === 1 ? t.elementType = L.value : t.dayElementType = L.value;
254
+ let i = await n({
255
+ id: e.id,
256
+ baseHttp: r.baseHttp,
257
+ reqType: e.reqType,
258
+ variables: t,
259
+ isFormData: e.isFormData,
260
+ appKey: r.appKey,
261
+ appSalt: r.appSalt
262
+ }), a = Ne(i);
263
+ Array.isArray(a) ? (z.value = a.map((e) => ({
264
+ stationName: e.stationName || "",
265
+ stationCode: e.stationId || e.stationCode || "",
266
+ value: e.elementValue
267
+ })), R.value[I.value] = a[0]?.dateTime || i?.data?.dateTime || i?.dateTime || "") : a && (z.value = Array.isArray(a.list) ? a.list : [], R.value[I.value] = a.dataTime || i?.data?.dateTime || i?.dateTime || "");
268
+ } catch (e) {
269
+ console.error("HdObservation 数据加载失败", e);
270
+ }
271
+ }, Q = async () => {
272
+ F.value = !0, r.mock ? Fe() : await Ie(), F.value = !1, ie(() => {
273
+ Le();
274
+ });
275
+ }, Le = () => {
276
+ if (!B.value) return;
277
+ H && H.dispose(), H = b.init(B.value);
278
+ let e = K.value, t = q.value, n = t.map((e) => e.stationName), r = t.map((e) => Number(e.value) || 0), i = t.length, a = i > N, o = a && !V.value ? (i - N) / i * 100 : 0, s = {
279
+ backgroundColor: "transparent",
280
+ grid: {
281
+ top: 8,
282
+ right: 48,
283
+ bottom: a ? 32 : 8,
284
+ left: 80
285
+ },
286
+ tooltip: {
287
+ trigger: "axis",
288
+ axisPointer: { type: "shadow" },
289
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
290
+ borderColor: "rgba(64, 158, 255, 0.4)",
291
+ textStyle: { color: "#fff" },
292
+ formatter: (t) => {
293
+ let n = t[0];
294
+ return `${n.name}<br/>${n.marker} ${e.label}:${n.value}${e.unit}`;
295
+ }
296
+ },
297
+ dataZoom: a ? [{
298
+ type: "slider",
299
+ yAxisIndex: 0,
300
+ start: o,
301
+ end: 100,
302
+ width: 6,
303
+ right: 8,
304
+ zoomLock: !0,
305
+ borderColor: "transparent",
306
+ backgroundColor: "rgba(64, 158, 255, 0.08)",
307
+ fillerColor: "rgba(64, 158, 255, 0.25)",
308
+ handleSize: "100%",
309
+ handleStyle: {
310
+ color: e.color,
311
+ borderColor: e.color
312
+ },
313
+ textStyle: {
314
+ color: "rgba(255,255,255,0.6)",
315
+ fontSize: 10
316
+ },
317
+ showDataShadow: !1,
318
+ showDetail: !1
319
+ }, {
320
+ type: "inside",
321
+ yAxisIndex: 0,
322
+ zoomLock: !0,
323
+ start: o,
324
+ end: 100,
325
+ zoomOnMouseWheel: !1,
326
+ moveOnMouseWheel: !0,
327
+ moveOnMouseMove: !0
328
+ }] : void 0,
329
+ xAxis: {
330
+ type: "value",
331
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
332
+ axisLabel: {
333
+ color: "rgba(255,255,255,0.6)",
334
+ fontSize: 10
335
+ },
336
+ splitLine: { show: !1 },
337
+ axisTick: { show: !1 }
338
+ },
339
+ yAxis: {
340
+ type: "category",
341
+ data: n,
342
+ axisLine: { show: !1 },
343
+ axisLabel: {
344
+ color: "rgba(255,255,255,0.8)",
345
+ fontSize: 11,
346
+ interval: 0,
347
+ width: 72,
348
+ overflow: "truncate",
349
+ ellipsis: ".."
350
+ },
351
+ axisTick: { show: !1 },
352
+ triggerEvent: !0
353
+ },
354
+ series: [{
355
+ name: e.label,
356
+ type: "bar",
357
+ data: r,
358
+ barWidth: 12,
359
+ barCategoryGap: "60%",
360
+ itemStyle: {
361
+ color: new b.graphic.LinearGradient(1, 0, 0, 0, [{
362
+ offset: 0,
363
+ color: e.color
364
+ }, {
365
+ offset: 1,
366
+ color: `${e.color}66`
367
+ }]),
368
+ borderRadius: [
369
+ 0,
370
+ 6,
371
+ 6,
372
+ 0
373
+ ]
374
+ },
375
+ label: {
376
+ show: !0,
377
+ position: "right",
378
+ color: "#fff",
379
+ fontSize: 10,
380
+ distance: 8,
381
+ formatter: `{c}${e.unit}`
382
+ }
383
+ }]
384
+ };
385
+ H.setOption(s);
386
+ }, Re = () => {
387
+ let e = K.value, t = [...z.value].filter((e) => !X(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).map((t, n) => ({
388
+ 序号: n + 1,
389
+ 站名: t.stationName,
390
+ 站号: t.stationCode || "--",
391
+ 数值: Z(t.value),
392
+ 单位: e.unit,
393
+ 类型: De[I.value],
394
+ 要素: e.label
395
+ }));
396
+ if (t.length === 0) {
397
+ de.warning("暂无数据");
398
+ return;
399
+ }
400
+ new fe.default({
401
+ fileName: `观测统计_${e.label}_${I.value}_${(/* @__PURE__ */ new Date()).getTime()}`,
402
+ datas: [{
403
+ sheetData: t,
404
+ sheetName: "观测排名",
405
+ sheetFilter: [
406
+ "序号",
407
+ "站名",
408
+ "站号",
409
+ "数值",
410
+ "单位",
411
+ "类型",
412
+ "要素"
413
+ ],
414
+ sheetHeader: [
415
+ "序号",
416
+ "站名",
417
+ "站号",
418
+ "数值",
419
+ "单位",
420
+ "类型",
421
+ "要素"
422
+ ],
423
+ columnWidths: [
424
+ 8,
425
+ 18,
426
+ 12,
427
+ 12,
428
+ 8,
429
+ 12,
430
+ 10
431
+ ]
432
+ }]
433
+ }).saveExcel();
434
+ }, ze = () => {
435
+ $(), !(r.refreshInterval <= 0) && (U = setInterval(() => {
436
+ Q();
437
+ }, r.refreshInterval));
438
+ }, $ = () => {
439
+ U &&= (clearInterval(U), null);
440
+ };
441
+ return se(() => {
442
+ Q(), ze(), window.addEventListener("resize", () => {
443
+ H?.resize();
444
+ });
445
+ }), m(() => {
446
+ $(), H &&= (H.dispose(), null);
447
+ }), (e, t) => {
448
+ let n = o, r = s, l = i, p = a;
449
+ return le((h(), u("div", pe, [
450
+ d("button", {
451
+ class: "HdObservation-close",
452
+ onClick: Ae
453
+ }, [...t[1] ||= [d("span", null, "✕", -1)]]),
454
+ d("div", me, [d("div", he, [t[2] ||= d("h3", { class: "HdObservation-title" }, "观测统计", -1), G.value ? (h(), u("span", ge, "(数据时间:" + v(G.value) + ")", 1)) : te("", !0)]), t[3] ||= d("img", {
455
+ style: {
456
+ width: "100%",
457
+ "object-fit": "contain",
458
+ "margin-top": "4px"
459
+ },
460
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
461
+ alt: ""
462
+ }, null, -1)]),
463
+ d("div", _e, [
464
+ d("div", ve, [(h(), u(c, null, _(Ee, (e) => d("button", {
465
+ key: e.value,
466
+ class: ae(["HdObservation-tab", { "HdObservation-tab--active": I.value === e.value }]),
467
+ onClick: (t) => je(e.value)
468
+ }, v(e.label), 11, ye)), 64))]),
469
+ d("div", be, [t[4] ||= d("span", { class: "HdObservation-elementLabel" }, "要素", -1), f(r, {
470
+ modelValue: L.value,
471
+ "onUpdate:modelValue": t[0] ||= (e) => L.value = e,
472
+ class: "HdObservation-elementSelect",
473
+ "popper-class": "HdObservation-elementPopper",
474
+ size: "small",
475
+ teleported: !1,
476
+ onChange: Q
477
+ }, {
478
+ default: y(() => [(h(!0), u(c, null, _(W.value, (e) => (h(), ee(n, {
479
+ key: e.value,
480
+ label: e.label,
481
+ value: e.value
482
+ }, null, 8, ["label", "value"]))), 128))]),
483
+ _: 1
484
+ }, 8, ["modelValue"])]),
485
+ d("div", xe, [
486
+ d("div", x, [t[6] ||= d("div", { class: "HdObservation-statIcon" }, [d("svg", {
487
+ viewBox: "0 0 24 24",
488
+ width: "18",
489
+ height: "18",
490
+ fill: "none",
491
+ stroke: "currentColor",
492
+ "stroke-width": "2"
493
+ }, [d("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }), d("polyline", { points: "17 6 23 6 23 12" })])], -1), d("div", S, [
494
+ t[5] ||= d("div", { class: "HdObservation-statLabel" }, "最高值", -1),
495
+ d("div", C, v(J.value.value), 1),
496
+ d("div", {
497
+ class: "HdObservation-statStation",
498
+ title: J.value.station
499
+ }, v(J.value.station), 9, w)
500
+ ])]),
501
+ d("div", T, [t[8] ||= d("div", { class: "HdObservation-statIcon" }, [d("svg", {
502
+ viewBox: "0 0 24 24",
503
+ width: "20",
504
+ height: "20",
505
+ fill: "none",
506
+ stroke: "currentColor",
507
+ "stroke-width": "2"
508
+ }, [d("polyline", { points: "23 18 13.5 8.5 8.5 13.5 1 6" }), d("polyline", { points: "17 18 23 18 23 12" })])], -1), d("div", E, [
509
+ t[7] ||= d("div", { class: "HdObservation-statLabel" }, "最低值", -1),
510
+ d("div", D, v(Y.value.value), 1),
511
+ d("div", {
512
+ class: "HdObservation-statStation",
513
+ title: Y.value.station
514
+ }, v(Y.value.station), 9, O)
515
+ ])]),
516
+ d("div", k, [t[11] ||= ne("<div class=\"HdObservation-statIcon\" data-v-5ac2da35><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" data-v-5ac2da35><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\" data-v-5ac2da35></line><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\" data-v-5ac2da35></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\" data-v-5ac2da35></line></svg></div>", 1), d("div", A, [
517
+ t[9] ||= d("div", { class: "HdObservation-statLabel" }, "平均值", -1),
518
+ d("div", j, v(ke.value), 1),
519
+ t[10] ||= d("div", { class: "HdObservation-statStation" }, "全区平均", -1)
520
+ ])])
521
+ ]),
522
+ d("div", M, [d("div", Se, [d("div", Ce, [d("span", null, v(K.value.label) + "排名", 1), d("span", we, "单位:" + v(K.value.unit), 1)]), d("button", {
523
+ class: "HdObservation-btn",
524
+ onClick: Re
525
+ }, [f(l, null, {
526
+ default: y(() => [f(ce(ue))]),
527
+ _: 1
528
+ }), t[12] ||= d("span", { class: "HdObservation-btnText" }, "导出", -1)])]), d("div", {
529
+ ref_key: "chartRef",
530
+ ref: B,
531
+ class: "HdObservation-chart",
532
+ style: oe({ height: Oe.value + "px" })
533
+ }, null, 4)])
534
+ ])
535
+ ])), [[p, F.value]]);
536
+ };
537
+ }
538
+ }), [["__scopeId", "data-v-5ac2da35"]]);
539
+ //#endregion
540
+ export { P as t };
@@ -1,8 +1,8 @@
1
1
  import { i as e } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
- import { n as t } from "./component-AqiMonitor-CQTn29-8.mjs";
3
- import { i as n } from "./component-AiChat-DyGMpz5Q.mjs";
4
- import "./component-Forecast72h-s8yBgKV2.mjs";
5
- import { n as r } from "./component-HdObservation-ZDPieMjX.mjs";
2
+ import { n as t } from "./component-AqiMonitor-GecRSbVS.mjs";
3
+ import { i as n } from "./component-AiChat-eZQfj_Yt.mjs";
4
+ import "./component-Forecast72h-D8Hq9xop.mjs";
5
+ import { n as r } from "./component-HdFarmStationDialog-BPVUbJoh.mjs";
6
6
  import { ElConfigProvider as i, ElDatePicker as a, ElIcon as ee, ElLoadingDirective as te, ElOption as ne, ElSelect as re, ElTable as ie, ElTableColumn as ae } from "element-plus/es";
7
7
  import { Fragment as o, computed as s, createBlock as oe, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, nextTick as m, normalizeClass as se, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, watch as ce, withCtx as C, withDirectives as le } from "vue";
8
8
  import { Download as ue, TrendCharts as de } from "@element-plus/icons-vue";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-CQTn29-8.mjs";
2
- import { i as t } from "./component-AiChat-DyGMpz5Q.mjs";
1
+ import { n as e } from "./component-AqiMonitor-GecRSbVS.mjs";
2
+ import { i as t } from "./component-AiChat-eZQfj_Yt.mjs";
3
3
  import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, getCurrentInstance as c, nextTick as l, normalizeStyle as u, onMounted as d, onUnmounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, watch as _ } from "vue";
4
4
  import * as v from "echarts";
5
5
  //#region src/components/HdQxServiceEffects/HdQxServiceEffects.vue?vue&type=script&setup=true&lang.ts
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-CQTn29-8.mjs";
2
- import "./component-Forecast72h-s8yBgKV2.mjs";
1
+ import { n as e } from "./component-AqiMonitor-GecRSbVS.mjs";
2
+ import "./component-Forecast72h-D8Hq9xop.mjs";
3
3
  import { ElIcon as t } from "element-plus/es";
4
4
  import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, getCurrentInstance as c, normalizeClass as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, watch as g, withCtx as _ } from "vue";
5
5
  import { EditPen as v } from "@element-plus/icons-vue";
@@ -108,7 +108,7 @@ var x = { class: "HdRadarList" }, S = { class: "HdRadarList-header" }, C = { cla
108
108
  return;
109
109
  }
110
110
  try {
111
- let { default: t } = await import("./component-AiChat-DyGMpz5Q.mjs").then((e) => e.o), n = B(await t({
111
+ let { default: t } = await import("./component-AiChat-eZQfj_Yt.mjs").then((e) => e.o), n = B(await t({
112
112
  id: e.id,
113
113
  baseHttp: A.baseHttp,
114
114
  reqType: e.reqType,
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-CQTn29-8.mjs";
2
- import { i as t } from "./component-AiChat-DyGMpz5Q.mjs";
1
+ import { n as e } from "./component-AqiMonitor-GecRSbVS.mjs";
2
+ import { i as t } from "./component-AiChat-eZQfj_Yt.mjs";
3
3
  import { ElCheckbox as n, ElConfigProvider as r, ElDatePicker as i, ElLoadingDirective as a, ElOption as o, ElSelect as s } from "element-plus/es";
4
4
  import { Fragment as c, computed as l, createBlock as ee, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as te, createVNode as p, defineComponent as m, getCurrentInstance as h, nextTick as ne, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as re, vShow as ie, watch as w, withCtx as T, withDirectives as E, withModifiers as ae } from "vue";
5
5
  import "element-plus/dist/index.css";
@@ -430,7 +430,7 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
430
430
  default: T(() => [...l[5] ||= [te("dBZ网格", -1)]]),
431
431
  _: 1
432
432
  }, 8, ["modelValue"])) : u("", !0)]),
433
- f("div", xe, [l[6] ||= f("span", { class: "HdRadarTime-speedLabel" }, "播放间隔", -1), p(y, {
433
+ f("div", xe, [l[6] ||= f("span", { class: "HdRadarTime-speedLabel" }, "波速", -1), p(y, {
434
434
  modelValue: H.value,
435
435
  "onUpdate:modelValue": l[3] ||= (e) => H.value = e,
436
436
  class: "HdRadarTime-speedSelect",
@@ -488,6 +488,6 @@ var se = { class: "HdRadarTime-main" }, ce = { class: "HdRadarTime-controls" },
488
488
  ])])), [[x, U.value]]);
489
489
  };
490
490
  }
491
- }), [["__scopeId", "data-v-4c61a4b8"]]);
491
+ }), [["__scopeId", "data-v-207a9555"]]);
492
492
  //#endregion
493
493
  export { D as t };
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-CQTn29-8.mjs";
2
- import { i as t } from "./component-AiChat-DyGMpz5Q.mjs";
1
+ import { n as e } from "./component-AqiMonitor-GecRSbVS.mjs";
2
+ import { i as t } from "./component-AiChat-eZQfj_Yt.mjs";
3
3
  import { ElConfigProvider as n, ElDatePicker as r, ElOption as i, ElSelect as ee } from "element-plus/es";
4
4
  import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as te, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as ne, vShow as re, watch as x, withCtx as S, withDirectives as ie, withModifiers as ae } from "vue";
5
5
  import "element-plus/es/components/select/style/css";
@@ -288,7 +288,7 @@ var se = { class: "HdRadarTimeLine-main" }, ce = { class: "HdRadarTimeLine-contr
288
288
  }, null, 4))), 128))]), l("div", ve, [(_(!0), c(a, null, y(ke.value, (e, t) => (_(), c("span", {
289
289
  key: t,
290
290
  style: h({ left: e.position + "%" })
291
- }, b(e.value), 5))), 128))])])) : s("", !0)]), l("div", ye, [l("div", be, [o[3] ||= l("span", { class: "HdRadarTimeLine-speedLabel" }, "播放间隔", -1), u(g, {
291
+ }, b(e.value), 5))), 128))])])) : s("", !0)]), l("div", ye, [l("div", be, [o[3] ||= l("div", { class: "HdRadarTimeLine-speedLabel" }, "播放速度", -1), u(g, {
292
292
  modelValue: R.value,
293
293
  "onUpdate:modelValue": o[1] ||= (e) => R.value = e,
294
294
  class: "HdRadarTimeLine-speedSelect",
@@ -336,6 +336,6 @@ var se = { class: "HdRadarTimeLine-main" }, ce = { class: "HdRadarTimeLine-contr
336
336
  ])], 512);
337
337
  };
338
338
  }
339
- }), [["__scopeId", "data-v-a4fde338"]]);
339
+ }), [["__scopeId", "data-v-a050629a"]]);
340
340
  //#endregion
341
341
  export { C as t };