nxd-plugin 1.7.83 → 1.7.84

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 (83) hide show
  1. package/dist/chunks/{component-AiChat-C1xBPkS5.mjs → component-AiChat-BXNBLM1G.mjs} +92 -93
  2. package/dist/chunks/{component-AqiMonitor-DoAVs1Jf.mjs → component-AqiMonitor-C_V1Nuf_.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-BOIMPYxl.mjs → component-ChartCumulativePre-Bo28Bgaa.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-CmR3bmG_.mjs → component-ChartServiceMaterial-DELVCsKj.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-gmt7ZcSc.mjs → component-Duty-dyZZ4vHt.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-BWYWrz65.mjs → component-EarlyWarningStatistic-CBJfrRsV.mjs} +2 -2
  7. package/dist/chunks/{component-Forecast72h-BZ1kB2TJ.mjs → component-Forecast72h-BkVZSGhE.mjs} +2 -2
  8. package/dist/chunks/{component-GeologyLiveAlarm-CNpQPmGs.mjs → component-GeologyLiveAlarm-B9jBWXf0.mjs} +2 -2
  9. package/dist/chunks/component-HdForecastProducts-D4x_Y0OB.mjs +211 -0
  10. package/dist/chunks/{component-HdHeatService-ok6q8UuG.mjs → component-HdHeatService-Bf9XH3DP.mjs} +2 -2
  11. package/dist/chunks/{component-HdObservation-BmQdGJV6.mjs → component-HdObservation-CM6HUrQ3.mjs} +51 -45
  12. package/dist/chunks/{component-HdPreSituation-LBpO58bE.mjs → component-HdPreSituation-CJ8-wiRO.mjs} +168 -133
  13. package/dist/chunks/{component-HdRadarTime-D7hOn_ph.mjs → component-HdRadarTime-C4ZArOUM.mjs} +2 -2
  14. package/dist/chunks/{component-HdSeaCase-DYPQ7CdN.mjs → component-HdSeaCase-3-YFxSuM.mjs} +2 -2
  15. package/dist/chunks/component-HdServiceMarterial-pSFQUH2x.mjs +316 -0
  16. package/dist/chunks/{component-HdServiceRequirements-DcXrcIIV.mjs → component-HdServiceRequirements-BjuiyyC5.mjs} +38 -39
  17. package/dist/chunks/{component-HdStationTem-US6IRwbQ.mjs → component-HdStationTem-Dit7Y8lu.mjs} +100 -100
  18. package/dist/chunks/component-HdSuggestion-B_abfzRO.mjs +161 -0
  19. package/dist/chunks/component-HdThreeWeatherTrend-B2qzvOzb.mjs +372 -0
  20. package/dist/chunks/component-HdWaveForcast-D8UZrHzF.mjs +269 -0
  21. package/dist/chunks/{component-HighQuality-B0OgPi3T.mjs → component-HighQuality-1iqLOQAF.mjs} +2 -2
  22. package/dist/chunks/{component-HighWayEarlyWarningRed-BTl2WWZ-.mjs → component-HighWayEarlyWarningRed-DlgG9rTx.mjs} +3 -3
  23. package/dist/chunks/{component-HighWayFreeze-B1aMHQWU.mjs → component-HighWayFreeze-CCp1Rxpz.mjs} +2 -2
  24. package/dist/chunks/{component-HighwayLiveAlarm-8u45ZdnN.mjs → component-HighwayLiveAlarm-D7PKi5rG.mjs} +2 -2
  25. package/dist/chunks/{component-HighwayLiveAlarmNew-DK827eVk.mjs → component-HighwayLiveAlarmNew-rH59lsj8.mjs} +3 -3
  26. package/dist/chunks/{component-HighwayStations-BzrbWP50.mjs → component-HighwayStations-DGt6Gsr9.mjs} +2 -2
  27. package/dist/chunks/{component-HighwayWeatherForecast-DER5XGc3.mjs → component-HighwayWeatherForecast-BQrNGF7m.mjs} +73 -130
  28. package/dist/chunks/{component-IframeWeb-DuBssYPk.mjs → component-IframeWeb-vLIWvbJY.mjs} +1 -1
  29. package/dist/chunks/{component-ImageGeneration-3G3j7utC.mjs → component-ImageGeneration-BtM7MHcE.mjs} +1 -1
  30. package/dist/chunks/{component-IntroducePic-L8VH8Yq8.mjs → component-IntroducePic-D3FSEuKX.mjs} +1 -1
  31. package/dist/chunks/{component-LithiumBatteryMiningArea-DSFTVepN.mjs → component-LithiumBatteryMiningArea-B5aUe7T0.mjs} +2 -2
  32. package/dist/chunks/{component-MapPopup-BNc18syw.mjs → component-MapPopup-UmWWAPBE.mjs} +1 -1
  33. package/dist/chunks/{component-MaterialPreview-DhLUbjcT.mjs → component-MaterialPreview-1Hyl4bjM.mjs} +2 -2
  34. package/dist/chunks/{component-PieLegend-Haojhtet.mjs → component-PieLegend-C0Acehix.mjs} +1 -1
  35. package/dist/chunks/component-PrecipitationRanking-C63n87WI.mjs +658 -0
  36. package/dist/chunks/{component-RadarChart-BYMbkI3K.mjs → component-RadarChart-BXfMyPPi.mjs} +2 -2
  37. package/dist/chunks/{component-RadarLegend-CiGsla7a.mjs → component-RadarLegend-B2ajP_0M.mjs} +1 -1
  38. package/dist/chunks/{component-RadarShortTerm-yPc2UWpz.mjs → component-RadarShortTerm-BeGEjbHr.mjs} +4 -4
  39. package/dist/chunks/{component-RadarTime-CkqIaTJh.mjs → component-RadarTime-DGRztCiR.mjs} +2 -2
  40. package/dist/chunks/{component-RenderMarkdown-D590sXEf.mjs → component-RenderMarkdown-Dv-UVGrS.mjs} +2 -2
  41. package/dist/chunks/{component-ReservoirLiveAlarm-DTtKdDQS.mjs → component-ReservoirLiveAlarm-CRgl_ztt.mjs} +3 -3
  42. package/dist/chunks/{component-ServiceMaterial-BKbVQbKm.mjs → component-ServiceMaterial-BTWYke8W.mjs} +2 -2
  43. package/dist/chunks/{component-ServiceMaterialsBtn-CskK-Qiz.mjs → component-ServiceMaterialsBtn-CTWGd-Is.mjs} +1 -1
  44. package/dist/chunks/{component-StationDialog-Bn7Fbk24.mjs → component-StationDialog-Ck8zd52d.mjs} +216 -157
  45. package/dist/chunks/{component-StationList-DRABlFdc.mjs → component-StationList-BvoVJwAU.mjs} +105 -91
  46. package/dist/chunks/{component-TimeBasedForecast-D1fJ4rGJ.mjs → component-TimeBasedForecast-BaPiit4s.mjs} +36 -36
  47. package/dist/chunks/{component-WarningLine-jN8sg45u.mjs → component-WarningLine-CcFfVzar.mjs} +2 -2
  48. package/dist/chunks/{component-WarningSignal-BkIKqyJB.mjs → component-WarningSignal-C0CnTLVH.mjs} +3 -3
  49. package/dist/chunks/component-WeatherForecast-DWdNramU.mjs +229 -0
  50. package/dist/chunks/{component-YCDataMonitor-vVlnkSzT.mjs → component-YCDataMonitor-DPMFqIFB.mjs} +108 -110
  51. package/dist/chunks/{component-YCDataService-okkY1-iU.mjs → component-YCDataService-CD042ss7.mjs} +4 -4
  52. package/dist/chunks/{component-YCHome-BfpbxDIg.mjs → component-YCHome-DjpIzt-5.mjs} +4 -4
  53. package/dist/chunks/{component-YCHomeLegend-CuT-BwNJ.mjs → component-YCHomeLegend-B-nlePS2.mjs} +1 -1
  54. package/dist/chunks/{component-YCLoginNew-KZoyW1EV.mjs → component-YCLoginNew-Bx2LoLJz.mjs} +3 -3
  55. package/dist/components/HdForecastProducts/HdForecastProducts.vue.d.ts +49 -0
  56. package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +0 -1
  57. package/dist/components/HdServiceMarterial/HdServiceMarterial.vue.d.ts +54 -0
  58. package/dist/components/HdSuggestion/HdSuggestion.vue.d.ts +49 -0
  59. package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +71 -0
  60. package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +70 -0
  61. package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +5 -0
  62. package/dist/components/WeatherForecast/WeatherForecast.vue.d.ts +9 -0
  63. package/dist/index.d.ts +6 -1
  64. package/dist/nxd-plugin.mjs +56 -51
  65. package/dist/styles/component-HdForecastProducts.css +1 -0
  66. package/dist/styles/component-HdObservation.css +1 -1
  67. package/dist/styles/component-HdPreSituation.css +1 -1
  68. package/dist/styles/component-HdServiceMarterial.css +1 -0
  69. package/dist/styles/component-HdServiceRequirements.css +1 -1
  70. package/dist/styles/component-HdStationTem.css +1 -1
  71. package/dist/styles/component-HdSuggestion.css +1 -0
  72. package/dist/styles/component-HdThreeWeatherTrend.css +1 -0
  73. package/dist/styles/component-HdWaveForcast.css +1 -0
  74. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  75. package/dist/styles/component-PrecipitationRanking.css +1 -1
  76. package/dist/styles/component-StationDialog.css +1 -1
  77. package/dist/styles/component-StationList.css +1 -1
  78. package/dist/styles/component-WeatherForecast.css +1 -1
  79. package/dist/styles/component-YCDataMonitor.css +1 -1
  80. package/dist/styles/component-YCLoginNew.css +1 -1
  81. package/package.json +1 -1
  82. package/dist/chunks/component-PrecipitationRanking-BanKrD3J.mjs +0 -608
  83. package/dist/chunks/component-WeatherForecast-CYsbJhYt.mjs +0 -225
@@ -0,0 +1,658 @@
1
+ import { r as e } from "./rolldown-runtime-Cz5NsrRf.mjs";
2
+ import { n as t } from "./component-AqiMonitor-C_V1Nuf_.mjs";
3
+ import { i as n } from "./component-AiChat-BXNBLM1G.mjs";
4
+ import "./component-Forecast72h-BkVZSGhE.mjs";
5
+ import { n as r } from "./component-HdObservation-CM6HUrQ3.mjs";
6
+ import { ElConfigProvider as i, ElDatePicker as a, ElIcon as ee, ElLoadingDirective as te, ElTable as ne, ElTableColumn as re } from "element-plus/es";
7
+ import { Fragment as o, computed as s, createBlock as ie, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as ae, createVNode as d, defineComponent as f, getCurrentInstance as p, nextTick as m, normalizeClass as h, normalizeStyle as oe, onBeforeUnmount as g, onMounted as se, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S, withDirectives as ce, withModifiers as C } from "vue";
8
+ import { Download as le, Refresh as ue } from "@element-plus/icons-vue";
9
+ import * as w from "echarts";
10
+ import { ElMessage as de } from "element-plus";
11
+ import fe from "element-plus/es/locale/lang/zh-cn.mjs";
12
+ import "element-plus/dist/index.css";
13
+ //#region src/components/PrecipitationRanking/PrecipitationRanking.vue?vue&type=script&setup=true&lang.ts
14
+ var pe = /* @__PURE__ */ e(r()), me = {
15
+ class: "PrecipitationRanking",
16
+ "element-loading-background": "rgba(0, 0, 0, 0.5)"
17
+ }, he = { class: "PrecipitationRanking-header" }, ge = { class: "PrecipitationRanking-headerContent" }, _e = {
18
+ key: 0,
19
+ class: "PrecipitationRanking-dataTime"
20
+ }, ve = { class: "PrecipitationRanking-toolbar" }, ye = { class: "PrecipitationRanking-actions" }, be = { class: "PrecipitationRanking-btnGroup" }, xe = { class: "PrecipitationRanking-timeWrap" }, Se = { class: "PrecipitationRanking-timeTags" }, Ce = ["onClick"], we = {
21
+ key: 0,
22
+ class: "PrecipitationRanking-customPanel"
23
+ }, Te = { class: "PrecipitationRanking-content" }, Ee = { class: "PrecipitationRanking-tableWrap" }, T = ["onClick"], E = {
24
+ key: 1,
25
+ class: "PrecipitationRanking-trendMask"
26
+ }, D = { class: "PrecipitationRanking-trendPopup" }, De = { class: "PrecipitationRanking-trendHeader" }, Oe = { class: "PrecipitationRanking-trendTitle" }, ke = { class: "PrecipitationRanking-trendSubTitle" }, O = /* @__PURE__ */ t(/* @__PURE__ */ f({
27
+ __name: "PrecipitationRanking",
28
+ props: {
29
+ mock: {
30
+ type: Boolean,
31
+ default: !0
32
+ },
33
+ baseHttp: { default: "" },
34
+ tableHeight: { default: "40vh" },
35
+ appKey: { default: "" },
36
+ appSalt: { default: "" },
37
+ ids: { default: () => ({}) },
38
+ refreshInterval: { default: 300 * 1e3 },
39
+ mockData: { default: () => ({
40
+ dataTime: "2026-04-12 16时",
41
+ list: [
42
+ {
43
+ stationName: "黄岛",
44
+ district: "黄岛区",
45
+ precipitation: 156.5,
46
+ precipitation_30min: 12.5,
47
+ precipitation_1hour: 28.3,
48
+ precipitation_3hour: 68.5,
49
+ precipitation_6hour: 110.2,
50
+ precipitation_12hour: 156.5
51
+ },
52
+ {
53
+ stationName: "董家口",
54
+ district: "黄岛区",
55
+ precipitation: 128.3,
56
+ precipitation_30min: 10.2,
57
+ precipitation_1hour: 22.1,
58
+ precipitation_3hour: 55.4,
59
+ precipitation_6hour: 88.6,
60
+ precipitation_12hour: 128.3
61
+ },
62
+ {
63
+ stationName: "金沙滩",
64
+ district: "黄岛区",
65
+ precipitation: 95.7,
66
+ precipitation_30min: 8.5,
67
+ precipitation_1hour: 18.6,
68
+ precipitation_3hour: 42.3,
69
+ precipitation_6hour: 68.9,
70
+ precipitation_12hour: 95.7
71
+ },
72
+ {
73
+ stationName: "琅琊",
74
+ district: "黄岛区",
75
+ precipitation: 68.2,
76
+ precipitation_30min: 6.1,
77
+ precipitation_1hour: 13.2,
78
+ precipitation_3hour: 32.5,
79
+ precipitation_6hour: 50.8,
80
+ precipitation_12hour: 68.2
81
+ },
82
+ {
83
+ stationName: "大场",
84
+ district: "黄岛区",
85
+ precipitation: 45.6,
86
+ precipitation_30min: 4.3,
87
+ precipitation_1hour: 9.5,
88
+ precipitation_3hour: 22.1,
89
+ precipitation_6hour: 34.6,
90
+ precipitation_12hour: 45.6
91
+ },
92
+ {
93
+ stationName: "大村",
94
+ district: "黄岛区",
95
+ precipitation: 32.1,
96
+ precipitation_30min: 3.2,
97
+ precipitation_1hour: 7.1,
98
+ precipitation_3hour: 16.8,
99
+ precipitation_6hour: 25.4,
100
+ precipitation_12hour: 32.1
101
+ },
102
+ {
103
+ stationName: "大涧山",
104
+ district: "黄岛区",
105
+ precipitation: 18.4,
106
+ precipitation_30min: 1.8,
107
+ precipitation_1hour: 4.2,
108
+ precipitation_3hour: 9.6,
109
+ precipitation_6hour: 14.5,
110
+ precipitation_12hour: 18.4
111
+ },
112
+ {
113
+ stationName: "王台",
114
+ district: "黄岛区",
115
+ precipitation: 8.2,
116
+ precipitation_30min: .8,
117
+ precipitation_1hour: 2.1,
118
+ precipitation_3hour: 4.6,
119
+ precipitation_6hour: 6.8,
120
+ precipitation_12hour: 8.2
121
+ },
122
+ {
123
+ stationName: "诸城",
124
+ district: "诸城市",
125
+ precipitation: 2.5,
126
+ precipitation_30min: .2,
127
+ precipitation_1hour: .6,
128
+ precipitation_3hour: 1.2,
129
+ precipitation_6hour: 1.8,
130
+ precipitation_12hour: 2.5
131
+ },
132
+ {
133
+ stationName: "五莲",
134
+ district: "五莲县",
135
+ precipitation: 0,
136
+ precipitation_30min: 0,
137
+ precipitation_1hour: 0,
138
+ precipitation_3hour: 0,
139
+ precipitation_6hour: 0,
140
+ precipitation_12hour: 0
141
+ }
142
+ ]
143
+ }) }
144
+ },
145
+ emits: [
146
+ "close",
147
+ "rowClick",
148
+ "view"
149
+ ],
150
+ setup(e, { emit: t }) {
151
+ let r = p()?.appContext.config.globalProperties.$bus, f = e, O = t, k = v(!1), A = v(!1), j = v(["30min"]), M = v(!1), N = v(""), P = v([]), F = v([]), I = v(!1), L = v(null), R = v(null), z = null, B = null, V = [
152
+ {
153
+ label: "30分钟",
154
+ value: "30min",
155
+ field: "precipitation_30min"
156
+ },
157
+ {
158
+ label: "1小时",
159
+ value: "1hour",
160
+ field: "precipitation_1hour"
161
+ },
162
+ {
163
+ label: "3小时",
164
+ value: "3hour",
165
+ field: "precipitation_3hour"
166
+ },
167
+ {
168
+ label: "6小时",
169
+ value: "6hour",
170
+ field: "precipitation_6hour"
171
+ },
172
+ {
173
+ label: "12小时",
174
+ value: "12hour",
175
+ field: "precipitation_12hour"
176
+ }
177
+ ], Ae = {
178
+ "30min": "precipitation_30min",
179
+ "1hour": "precipitation_1hour",
180
+ "3hour": "precipitation_3hour",
181
+ "6hour": "precipitation_6hour",
182
+ "12hour": "precipitation_12hour"
183
+ }, H = (e, t) => {
184
+ if (t === "custom") return e.precipitation;
185
+ let n = Ae[t];
186
+ return n ? e[n] : e.precipitation;
187
+ }, U = s(() => {
188
+ let e = V.filter((e) => j.value.includes(e.value));
189
+ return M.value && e.push({
190
+ label: "自定义",
191
+ value: "custom",
192
+ field: "precipitation"
193
+ }), e;
194
+ }), W = s(() => j.value.length ? j.value[0] : M.value ? "custom" : "30min"), G = s(() => [...P.value].sort((e, t) => {
195
+ let n = Number(H(e, W.value)) || 0;
196
+ return (Number(H(t, W.value)) || 0) - n;
197
+ })), K = (e) => e == null || e === "" || e === 9999, q = (e, t) => K(e) ? "--" : t ? `${e}${t}` : String(e), J = (e) => {
198
+ let t = Number(e);
199
+ return K(e) || isNaN(t) || t === 0 ? "无降水" : t < 10 ? "小雨" : t < 25 ? "中雨" : t < 50 ? "大雨" : t < 100 ? "暴雨" : t < 250 ? "大暴雨" : "特大暴雨";
200
+ }, je = (e) => {
201
+ let t = Number(e);
202
+ return K(e) || isNaN(t) || t === 0 ? "rgba(255,255,255,0.6)" : t < 10 ? "#91cc75" : t < 25 ? "#fac858" : t < 50 ? "#ff9f43" : t < 100 ? "#ff6b6b" : t < 250 ? "#ff4d4f" : "#c0392b";
203
+ }, Me = () => {
204
+ O("close", "PrecipitationRanking");
205
+ }, Ne = (e) => {
206
+ O("rowClick", e);
207
+ }, Pe = (e) => {
208
+ L.value = e, I.value = !0, m(() => {
209
+ ze();
210
+ });
211
+ }, Fe = () => {
212
+ I.value = !1, z &&= (z.dispose(), null);
213
+ }, Ie = () => ({
214
+ times: [
215
+ "02时",
216
+ "03时",
217
+ "04时",
218
+ "05时",
219
+ "06时",
220
+ "08时",
221
+ "09时",
222
+ "10时",
223
+ "11时",
224
+ "12时",
225
+ "14时",
226
+ "15时"
227
+ ],
228
+ unit: "mm",
229
+ actual: [
230
+ 0,
231
+ 0,
232
+ 0,
233
+ 0,
234
+ 0,
235
+ .1,
236
+ 0,
237
+ 0,
238
+ 0,
239
+ 0,
240
+ 0,
241
+ 0
242
+ ],
243
+ forecast: [
244
+ 0,
245
+ 0,
246
+ 0,
247
+ 0,
248
+ 0,
249
+ 0,
250
+ 0,
251
+ .2,
252
+ .5,
253
+ 1.2,
254
+ 2,
255
+ 3.5
256
+ ],
257
+ threshold: [
258
+ 30,
259
+ 30,
260
+ 30,
261
+ 30,
262
+ 30,
263
+ 30,
264
+ 30,
265
+ 30,
266
+ 30,
267
+ 30,
268
+ 30,
269
+ 30
270
+ ]
271
+ }), Le = async () => {
272
+ if (!L.value) return null;
273
+ if (f.mock) return L.value.trendData || Ie();
274
+ let e = Y("trend");
275
+ if (!e) return console.warn("PrecipitationRanking 缺少趋势图工作流配置"), null;
276
+ try {
277
+ return X(await n({
278
+ id: e.id,
279
+ baseHttp: f.baseHttp,
280
+ reqType: e.reqType,
281
+ variables: {
282
+ stationCode: L.value.stationCode,
283
+ stationName: L.value.stationName
284
+ },
285
+ isFormData: e.isFormData,
286
+ appKey: f.appKey,
287
+ appSalt: f.appSalt
288
+ })) || null;
289
+ } catch (e) {
290
+ return console.error("PrecipitationRanking 趋势图数据加载失败", e), null;
291
+ }
292
+ }, Re = (e) => {
293
+ let t = [];
294
+ if (e.actual.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), e.forecast.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), e.threshold.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), !t.length) return;
295
+ let n = Math.max(...t);
296
+ return n <= 0 ? 10 : Math.ceil(n * 1.1);
297
+ }, ze = async () => {
298
+ if (!R.value) return;
299
+ let e = await Le();
300
+ if (!e) return;
301
+ z && z.dispose(), z = w.init(R.value);
302
+ let t = e.actual.length, n = [...e.actual.map((e) => ({ value: e })), ...e.forecast.map((e) => ({
303
+ value: e,
304
+ lineStyle: {
305
+ type: "dashed",
306
+ color: "rgba(255,255,255,0.8)"
307
+ },
308
+ itemStyle: { color: "rgba(255,255,255,0.8)" }
309
+ }))], r = [...e.times, ...e.forecast.map((e, t) => `预测${t + 1}`)], i = {
310
+ backgroundColor: "transparent",
311
+ grid: {
312
+ top: 40,
313
+ right: 24,
314
+ bottom: 32,
315
+ left: 48
316
+ },
317
+ legend: {
318
+ data: ["阈值", "降水趋势"],
319
+ right: 0,
320
+ top: 0,
321
+ textStyle: {
322
+ color: "rgba(255,255,255,0.8)",
323
+ fontSize: 12
324
+ },
325
+ itemWidth: 12,
326
+ itemHeight: 8
327
+ },
328
+ tooltip: {
329
+ trigger: "axis",
330
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
331
+ borderColor: "rgba(64, 158, 255, 0.4)",
332
+ textStyle: { color: "#fff" },
333
+ formatter: (n) => `${n[0]?.axisValue || ""}<br/>${n.map((n) => {
334
+ let r = n.seriesName === "降水趋势" ? n.dataIndex >= t ? "预测值" : "正常值" : n.seriesName;
335
+ return `${n.marker} ${r}: ${n.value}${e.unit}`;
336
+ }).join("<br/>")}`
337
+ },
338
+ xAxis: {
339
+ type: "category",
340
+ data: r,
341
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
342
+ axisLabel: {
343
+ color: "rgba(255,255,255,0.7)",
344
+ fontSize: 11
345
+ },
346
+ axisTick: { show: !1 }
347
+ },
348
+ yAxis: {
349
+ type: "value",
350
+ max: Re(e),
351
+ name: `单位:${e.unit}`,
352
+ nameTextStyle: {
353
+ color: "rgba(255,255,255,0.7)",
354
+ padding: [
355
+ 0,
356
+ 0,
357
+ 0,
358
+ 8
359
+ ]
360
+ },
361
+ axisLine: { show: !1 },
362
+ axisLabel: {
363
+ color: "rgba(255,255,255,0.7)",
364
+ fontSize: 11
365
+ },
366
+ splitLine: { show: !1 },
367
+ axisTick: { show: !1 }
368
+ },
369
+ series: [{
370
+ name: "阈值",
371
+ type: "line",
372
+ data: r.map((t, n) => e.threshold[n] ?? e.threshold[e.threshold.length - 1] ?? 0),
373
+ itemStyle: { color: "#FF4D4F" },
374
+ lineStyle: {
375
+ type: "dashed",
376
+ width: 1
377
+ },
378
+ symbol: "none",
379
+ markLine: {
380
+ silent: !0,
381
+ symbol: "none",
382
+ lineStyle: {
383
+ color: "#FF4D4F",
384
+ type: "dashed",
385
+ width: 1
386
+ },
387
+ label: { show: !1 },
388
+ data: r.map((t, n) => ({
389
+ xAxis: t,
390
+ yAxis: e.threshold[n] ?? e.threshold[e.threshold.length - 1] ?? 0
391
+ }))
392
+ }
393
+ }, {
394
+ name: "降水趋势",
395
+ type: "line",
396
+ data: n,
397
+ smooth: !0,
398
+ itemStyle: { color: "#05ddfa" },
399
+ lineStyle: { width: 2 },
400
+ symbol: "circle",
401
+ symbolSize: 5,
402
+ areaStyle: { color: new w.graphic.LinearGradient(0, 0, 0, 1, [{
403
+ offset: 0,
404
+ color: "rgba(5, 221, 250, 0.3)"
405
+ }, {
406
+ offset: 1,
407
+ color: "rgba(5, 221, 250, 0.02)"
408
+ }]) }
409
+ }]
410
+ };
411
+ z.setOption(i);
412
+ }, Be = ({ rowIndex: e }) => {
413
+ if (e > 2) return "";
414
+ let t = G.value[e];
415
+ return !t || !Number(t.precipitation) ? "" : e === 0 ? "PrecipitationRanking-row--top1" : e === 1 ? "PrecipitationRanking-row--top2" : e === 2 ? "PrecipitationRanking-row--top3" : "";
416
+ }, Ve = () => {
417
+ j.value = ["30min"], M.value = !1, F.value = [];
418
+ }, He = (e) => {
419
+ let t = j.value.indexOf(e);
420
+ if (t > -1) (j.value.length > 1 || M.value) && j.value.splice(t, 1);
421
+ else {
422
+ if (j.value.length >= 3) {
423
+ de.warning("最多同时选择3个时段");
424
+ return;
425
+ }
426
+ j.value.push(e);
427
+ }
428
+ Q();
429
+ }, Ue = () => {
430
+ M.value = !M.value, M.value || (F.value = [], j.value.length || (j.value = ["30min"])), Q();
431
+ }, We = () => {
432
+ F.value?.length === 2 && Q();
433
+ }, Y = (e) => {
434
+ let t = f.ids[e] || f.ids.data;
435
+ return t?.id ? t : null;
436
+ }, X = (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, Ge = {
437
+ "30min": 30,
438
+ "1hour": 60,
439
+ "3hour": 180,
440
+ "6hour": 360,
441
+ "12hour": 720
442
+ }, Ke = () => {
443
+ if (M.value) return {
444
+ startTime: F.value[0] || "",
445
+ endTime: F.value[1] || "",
446
+ types: [...j.value]
447
+ };
448
+ let e = /* @__PURE__ */ new Date(), t = new Date(e), n = Math.max(...j.value.map((e) => Ge[e] || 30));
449
+ return t.setMinutes(e.getMinutes() - n), {
450
+ startTime: Z(t),
451
+ endTime: Z(e),
452
+ types: [...j.value]
453
+ };
454
+ }, Z = (e) => {
455
+ let t = (e) => String(e).padStart(2, "0");
456
+ return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
457
+ }, qe = () => {
458
+ let e = f.mockData;
459
+ P.value = e.list || [], N.value = e.dataTime || "";
460
+ }, Je = async () => {
461
+ let e = Y("data");
462
+ if (!e) {
463
+ console.warn("PrecipitationRanking 缺少工作流配置");
464
+ return;
465
+ }
466
+ try {
467
+ let { startTime: t, endTime: r, types: i } = Ke(), a = X(await n({
468
+ id: e.id,
469
+ baseHttp: f.baseHttp,
470
+ reqType: e.reqType,
471
+ variables: {
472
+ startTime: t,
473
+ endTime: r,
474
+ types: i
475
+ },
476
+ isFormData: e.isFormData,
477
+ appKey: f.appKey,
478
+ appSalt: f.appSalt
479
+ }));
480
+ a && (P.value = Array.isArray(a.list) ? a.list : [], N.value = a.dataTime || "");
481
+ } catch (e) {
482
+ console.error("PrecipitationRanking 数据加载失败", e);
483
+ }
484
+ }, Q = async () => {
485
+ k.value = !0, f.mock ? qe() : await Je(), k.value = !1;
486
+ }, Ye = async () => {
487
+ A.value = !0, Ve(), await Q(), setTimeout(() => {
488
+ A.value = !1;
489
+ }, 500);
490
+ }, Xe = () => {
491
+ let e = U.value.map((e) => e.label + "降水量(mm)"), t = G.value.map((e, t) => {
492
+ let n = {
493
+ 序号: t + 1,
494
+ 站名: e.stationName,
495
+ 行政区: e.district || "--"
496
+ };
497
+ return U.value.forEach((t) => {
498
+ n[t.label + "降水量(mm)"] = q(H(e, t.value), "");
499
+ }), n.降水等级 = J(H(e, W.value)), n.数据时间 = e.monitorTime || N.value || "", n;
500
+ }), n = [
501
+ "序号",
502
+ "站名",
503
+ "行政区",
504
+ ...e,
505
+ "降水等级",
506
+ "数据时间"
507
+ ], r = [
508
+ 8,
509
+ 18,
510
+ 16,
511
+ ...U.value.map(() => 18),
512
+ 14,
513
+ 20
514
+ ];
515
+ new pe.default({
516
+ fileName: `自动站降水排名_${(/* @__PURE__ */ new Date()).getTime()}`,
517
+ datas: [{
518
+ sheetData: t,
519
+ sheetName: "降水排名",
520
+ sheetFilter: n,
521
+ sheetHeader: n,
522
+ columnWidths: r
523
+ }]
524
+ }).saveExcel();
525
+ }, Ze = () => {
526
+ $(), !(f.refreshInterval <= 0) && (B = setInterval(() => {
527
+ Q();
528
+ }, f.refreshInterval));
529
+ }, $ = () => {
530
+ B &&= (clearInterval(B), null);
531
+ };
532
+ return se(() => {
533
+ r?.on("toComponent", (e) => {
534
+ e.componentName === "PrecipitationRanking" && Q();
535
+ }), Q(), Ze();
536
+ }), g(() => {
537
+ $(), z &&= (z.dispose(), null);
538
+ }), (t, n) => {
539
+ let r = ee, s = a, f = i, p = re, m = ne, g = te;
540
+ return ce((_(), l("div", me, [
541
+ u("button", {
542
+ class: "PrecipitationRanking-close",
543
+ onClick: Me
544
+ }, [...n[1] ||= [u("span", null, "✕", -1)]]),
545
+ u("div", he, [u("div", ge, [n[2] ||= u("h3", { class: "PrecipitationRanking-title" }, "自动站降水排名", -1), N.value ? (_(), l("span", _e, "(数据时间:" + b(N.value) + ")", 1)) : c("", !0)]), n[3] ||= u("img", {
546
+ style: {
547
+ width: "100%",
548
+ "object-fit": "contain",
549
+ "margin-top": "4px"
550
+ },
551
+ 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",
552
+ alt: ""
553
+ }, null, -1)]),
554
+ u("div", ve, [u("div", ye, [n[6] ||= u("span", { class: "PrecipitationRanking-toolbarLabel" }, "时间选择", -1), u("div", be, [u("button", {
555
+ class: "PrecipitationRanking-btn",
556
+ onClick: Xe
557
+ }, [d(r, { class: "PrecipitationRanking-icon" }, {
558
+ default: S(() => [d(x(le))]),
559
+ _: 1
560
+ }), n[4] ||= u("span", null, "导出", -1)]), u("button", {
561
+ class: "PrecipitationRanking-btn",
562
+ onClick: Ye
563
+ }, [d(r, { class: "PrecipitationRanking-icon" }, {
564
+ default: S(() => [d(x(ue))]),
565
+ _: 1
566
+ }), n[5] ||= u("span", null, "刷新", -1)])])]), u("div", xe, [u("div", Se, [(_(), l(o, null, y(V, (e) => u("button", {
567
+ key: e.value,
568
+ class: h(["PrecipitationRanking-timeTag", { "PrecipitationRanking-timeTag--active": j.value.includes(e.value) }]),
569
+ onClick: (t) => He(e.value)
570
+ }, b(e.label), 11, Ce)), 64)), u("button", {
571
+ class: h(["PrecipitationRanking-timeTag", { "PrecipitationRanking-timeTag--active": M.value }]),
572
+ onClick: Ue
573
+ }, " 自定义 ", 2)])])]),
574
+ M.value ? (_(), l("div", we, [n[7] ||= u("span", { class: "PrecipitationRanking-customLabel" }, "时间范围", -1), d(f, { locale: x(fe) }, {
575
+ default: S(() => [d(s, {
576
+ modelValue: F.value,
577
+ "onUpdate:modelValue": n[0] ||= (e) => F.value = e,
578
+ type: "datetimerange",
579
+ "range-separator": "至",
580
+ "start-placeholder": "开始时间",
581
+ "end-placeholder": "结束时间",
582
+ "value-format": "YYYY-MM-DD HH",
583
+ format: "YYYY-MM-DD HH",
584
+ clearable: "",
585
+ class: "PrecipitationRanking-datePicker",
586
+ "popper-class": "PrecipitationRanking-datePopper",
587
+ onChange: We
588
+ }, null, 8, ["modelValue"])]),
589
+ _: 1
590
+ }, 8, ["locale"])])) : c("", !0),
591
+ u("div", Te, [u("div", Ee, [d(m, {
592
+ data: G.value,
593
+ class: "PrecipitationRanking-table",
594
+ height: e.tableHeight,
595
+ "empty-text": "暂无数据",
596
+ "row-class-name": Be,
597
+ onRowClick: Ne
598
+ }, {
599
+ default: S(() => [
600
+ d(p, {
601
+ label: "序号",
602
+ align: "center",
603
+ width: "70"
604
+ }, {
605
+ default: S(({ $index: e }) => [u("span", { class: h(["PrecipitationRanking-rank", `PrecipitationRanking-rank--${e + 1}`]) }, b(e + 1), 3)]),
606
+ _: 1
607
+ }),
608
+ d(p, {
609
+ prop: "stationName",
610
+ label: "站名",
611
+ align: "left",
612
+ "min-width": "80"
613
+ }),
614
+ (_(!0), l(o, null, y(U.value, (e) => (_(), ie(p, {
615
+ key: e.value,
616
+ label: e.label + "(mm)",
617
+ align: "center",
618
+ "min-width": "120"
619
+ }, {
620
+ default: S(({ row: t }) => [ae(b(q(H(t, e.value), "")), 1)]),
621
+ _: 2
622
+ }, 1032, ["label"]))), 128)),
623
+ d(p, {
624
+ label: "降水等级",
625
+ align: "center",
626
+ "min-width": "100"
627
+ }, {
628
+ default: S(({ row: e }) => [u("span", { style: oe({ color: je(H(e, W.value)) }) }, b(J(H(e, W.value))), 5)]),
629
+ _: 1
630
+ }),
631
+ d(p, {
632
+ label: "趋势",
633
+ align: "center",
634
+ width: "70"
635
+ }, {
636
+ default: S(({ row: e }) => [u("span", {
637
+ class: "PrecipitationRanking-viewLink",
638
+ onClick: C((t) => Pe(e), ["stop"])
639
+ }, "查看", 8, T)]),
640
+ _: 1
641
+ })
642
+ ]),
643
+ _: 1
644
+ }, 8, ["data", "height"])])]),
645
+ I.value ? (_(), l("div", E, [u("div", D, [u("div", De, [u("div", Oe, [n[8] ||= u("span", null, "趋势图表", -1), u("span", ke, b(L.value?.stationName), 1)]), u("button", {
646
+ class: "PrecipitationRanking-trendClose",
647
+ onClick: Fe
648
+ }, "✕")]), u("div", {
649
+ ref_key: "trendChartRef",
650
+ ref: R,
651
+ class: "PrecipitationRanking-trendChart"
652
+ }, null, 512)])])) : c("", !0)
653
+ ])), [[g, k.value]]);
654
+ };
655
+ }
656
+ }), [["__scopeId", "data-v-eeac1823"]]);
657
+ //#endregion
658
+ export { O as t };
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
2
- import { i as t } from "./component-AiChat-C1xBPkS5.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
3
  import { ElLoadingDirective as n } from "element-plus/es";
4
4
  import { Fragment as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, getCurrentInstance as c, onMounted as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, vModelCheckbox as m, withDirectives as h } from "vue";
5
5
  //#region src/components/RadarChart/RadarChart.vue?vue&type=script&setup=true&lang.ts
@@ -1,4 +1,4 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
2
  import { Fragment as t, createElementBlock as n, createElementVNode as r, defineComponent as i, getCurrentInstance as a, normalizeClass as o, normalizeStyle as s, onMounted as c, openBlock as l, ref as u, renderList as d, toDisplayString as f, vShow as p, withDirectives as m } from "vue";
3
3
  //#region src/components/RadarLegend/RadarLegend.vue?vue&type=script&setup=true&lang.ts
4
4
  var h = { class: "RadarLegend-colorList" }, g = { class: "valueText" }, _ = /* @__PURE__ */ e(/* @__PURE__ */ i({
@@ -1,7 +1,7 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
2
- import { i as t } from "./component-AiChat-C1xBPkS5.mjs";
3
- import { n } from "./component-HighWayEarlyWarningRed-BTl2WWZ-.mjs";
4
- import { t as r } from "./component-RadarLegend-CiGsla7a.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
+ import { n } from "./component-HighWayEarlyWarningRed-DlgG9rTx.mjs";
4
+ import { t as r } from "./component-RadarLegend-B2ajP_0M.mjs";
5
5
  import { ElCheckbox as i, ElIcon as a, ElLoadingDirective as o } from "element-plus/es";
6
6
  import { Fragment as s, computed as c, createBlock as l, createCommentVNode as ee, createElementBlock as u, createElementVNode as d, createTextVNode as te, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as ne, onMounted as re, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, watch as C, withCtx as w, withDirectives as T } from "vue";
7
7
  import { ArrowRight as E, VideoPause as ie, VideoPlay as ae } from "@element-plus/icons-vue";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
2
- import { i as t } from "./component-AiChat-C1xBPkS5.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
3
  import { ElLoadingDirective as n } from "element-plus/es";
4
4
  import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, getCurrentInstance as l, normalizeClass as u, normalizeStyle as d, onMounted as f, onUnmounted as ee, openBlock as p, ref as m, renderList as h, toDisplayString as g, vShow as _, watch as te, withDirectives as v, withModifiers as y } from "vue";
5
5
  //#region src/components/RadarTime/RadarTime.vue?vue&type=script&setup=true&lang.ts