nxd-plugin 1.7.82 → 1.7.83

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-BU0rzEqA.mjs → component-AiChat-C1xBPkS5.mjs} +305 -264
  2. package/dist/chunks/{component-AqiMonitor-B0X5SmQB.mjs → component-AqiMonitor-DoAVs1Jf.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-D50ZlxtD.mjs → component-ChartCumulativePre-BOIMPYxl.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-D35UWUD8.mjs → component-ChartServiceMaterial-CmR3bmG_.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-CuVSfL6B.mjs → component-Duty-gmt7ZcSc.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-DBLY754e.mjs → component-EarlyWarningStatistic-BWYWrz65.mjs} +2 -2
  7. package/dist/chunks/component-Forecast72h-BZ1kB2TJ.mjs +427 -0
  8. package/dist/chunks/{component-GeologyLiveAlarm-BGqrl_n2.mjs → component-GeologyLiveAlarm-CNpQPmGs.mjs} +2 -2
  9. package/dist/chunks/component-HdHeatService-ok6q8UuG.mjs +412 -0
  10. package/dist/chunks/component-HdObservation-BmQdGJV6.mjs +600 -0
  11. package/dist/chunks/component-HdPreSituation-LBpO58bE.mjs +604 -0
  12. package/dist/chunks/component-HdRadarTime-D7hOn_ph.mjs +461 -0
  13. package/dist/chunks/component-HdSeaCase-DYPQ7CdN.mjs +219 -0
  14. package/dist/chunks/component-HdServiceRequirements-DcXrcIIV.mjs +143 -0
  15. package/dist/chunks/component-HdStationTem-US6IRwbQ.mjs +573 -0
  16. package/dist/chunks/{component-HighQuality-B-DNdjF7.mjs → component-HighQuality-B0OgPi3T.mjs} +3 -3
  17. package/dist/chunks/{component-HighWayEarlyWarningRed-DM_NXOxS.mjs → component-HighWayEarlyWarningRed-BTl2WWZ-.mjs} +907 -759
  18. package/dist/chunks/{component-HighWayFreeze-Dldul9ds.mjs → component-HighWayFreeze-B1aMHQWU.mjs} +2 -2
  19. package/dist/chunks/{component-HighwayLiveAlarm-7T0XNRUb.mjs → component-HighwayLiveAlarm-8u45ZdnN.mjs} +2 -2
  20. package/dist/chunks/{component-HighwayLiveAlarmNew-ClsfDywn.mjs → component-HighwayLiveAlarmNew-DK827eVk.mjs} +3 -3
  21. package/dist/chunks/{component-HighwayStations-u3R83AXH.mjs → component-HighwayStations-BzrbWP50.mjs} +2 -2
  22. package/dist/chunks/{component-HighwayWeatherForecast-CHJuEi1V.mjs → component-HighwayWeatherForecast-DER5XGc3.mjs} +2 -2
  23. package/dist/chunks/{component-IframeWeb-B_RCXBBe.mjs → component-IframeWeb-DuBssYPk.mjs} +1 -1
  24. package/dist/chunks/{component-ImageGeneration-5zGtULQL.mjs → component-ImageGeneration-3G3j7utC.mjs} +1 -1
  25. package/dist/chunks/{component-IntroducePic-DPf4yYOb.mjs → component-IntroducePic-L8VH8Yq8.mjs} +1 -1
  26. package/dist/chunks/{component-LithiumBatteryMiningArea-D7EdisGO.mjs → component-LithiumBatteryMiningArea-DSFTVepN.mjs} +2 -2
  27. package/dist/chunks/{component-MapPopup-pePSM1pe.mjs → component-MapPopup-BNc18syw.mjs} +1 -1
  28. package/dist/chunks/{component-MaterialPreview-CvHyZKau.mjs → component-MaterialPreview-DhLUbjcT.mjs} +2 -2
  29. package/dist/chunks/{component-PieLegend-C_KQgtb2.mjs → component-PieLegend-Haojhtet.mjs} +1 -1
  30. package/dist/chunks/component-PrecipitationRanking-BanKrD3J.mjs +608 -0
  31. package/dist/chunks/{component-RadarChart-Dkkpc2ex.mjs → component-RadarChart-BYMbkI3K.mjs} +2 -2
  32. package/dist/chunks/{component-RadarLegend-Bmyx7Z82.mjs → component-RadarLegend-CiGsla7a.mjs} +1 -1
  33. package/dist/chunks/{component-RadarShortTerm-DNpfS5yC.mjs → component-RadarShortTerm-yPc2UWpz.mjs} +4 -4
  34. package/dist/chunks/{component-RadarTime-CBk6AMiD.mjs → component-RadarTime-CkqIaTJh.mjs} +2 -2
  35. package/dist/chunks/{component-RenderMarkdown-DFiXNere.mjs → component-RenderMarkdown-D590sXEf.mjs} +2 -2
  36. package/dist/chunks/{component-ReservoirLiveAlarm-DCzzEJ4U.mjs → component-ReservoirLiveAlarm-DTtKdDQS.mjs} +3 -3
  37. package/dist/chunks/{component-ServiceMaterial-CXBQpfHK.mjs → component-ServiceMaterial-BKbVQbKm.mjs} +2 -2
  38. package/dist/chunks/{component-ServiceMaterialsBtn-CPZzLZl_.mjs → component-ServiceMaterialsBtn-CskK-Qiz.mjs} +1 -1
  39. package/dist/chunks/component-StationDialog-Bn7Fbk24.mjs +897 -0
  40. package/dist/chunks/component-StationList-DRABlFdc.mjs +323 -0
  41. package/dist/chunks/{component-TimeBasedForecast-WVO8WY-h.mjs → component-TimeBasedForecast-D1fJ4rGJ.mjs} +4 -4
  42. package/dist/chunks/{component-WarningLine-BCPm8Eve.mjs → component-WarningLine-jN8sg45u.mjs} +2 -2
  43. package/dist/chunks/{component-WarningSignal-C2RJ8N64.mjs → component-WarningSignal-BkIKqyJB.mjs} +3 -3
  44. package/dist/chunks/component-WeatherForecast-CYsbJhYt.mjs +225 -0
  45. package/dist/chunks/{component-YCDataMonitor-Dx7ASmGD.mjs → component-YCDataMonitor-vVlnkSzT.mjs} +2 -2
  46. package/dist/chunks/{component-YCDataService-mj2SUWBC.mjs → component-YCDataService-okkY1-iU.mjs} +4 -4
  47. package/dist/chunks/{component-YCHome-CUcEZHuo.mjs → component-YCHome-BfpbxDIg.mjs} +4 -4
  48. package/dist/chunks/{component-YCHomeLegend-DK6WU8YQ.mjs → component-YCHomeLegend-CuT-BwNJ.mjs} +1 -1
  49. package/dist/chunks/{component-YCLoginNew-D2RInKrk.mjs → component-YCLoginNew-KZoyW1EV.mjs} +3 -3
  50. package/dist/components/AiChat/AiChat.vue.d.ts +0 -2
  51. package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
  52. package/dist/components/HdHeatService/HdHeatService.vue.d.ts +56 -0
  53. package/dist/components/HdObservation/HdObservation.vue.d.ts +43 -0
  54. package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +62 -0
  55. package/dist/components/HdQxServiceEffects/HdQxServiceEffects.vue.d.ts +59 -0
  56. package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +71 -0
  57. package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +46 -0
  58. package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
  59. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -0
  60. package/dist/components/HighWayEarlyWarningRed/Call.vue.d.ts +18 -0
  61. package/dist/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +5 -0
  62. package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +57 -0
  63. package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
  64. package/dist/components/StationList/StationList.vue.d.ts +64 -0
  65. package/dist/index.d.ts +13 -1
  66. package/dist/nxd-plugin.mjs +51 -40
  67. package/dist/styles/component-Forecast72h.css +1 -0
  68. package/dist/styles/component-HdHeatService.css +1 -0
  69. package/dist/styles/component-HdObservation.css +1 -0
  70. package/dist/styles/component-HdPreSituation.css +1 -0
  71. package/dist/styles/component-HdRadarTime.css +1 -0
  72. package/dist/styles/component-HdSeaCase.css +1 -0
  73. package/dist/styles/component-HdServiceRequirements.css +1 -0
  74. package/dist/styles/component-HdStationTem.css +1 -0
  75. package/dist/styles/component-HighQuality.css +1 -1
  76. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  77. package/dist/styles/component-PrecipitationRanking.css +1 -0
  78. package/dist/styles/component-StationDialog.css +1 -0
  79. package/dist/styles/component-StationList.css +1 -0
  80. package/dist/styles/component-WeatherForecast.css +1 -1
  81. package/dist/styles/component-YCLoginNew.css +1 -1
  82. package/package.json +2 -1
  83. package/dist/chunks/component-WeatherForecast-CaLYtE37.mjs +0 -210
@@ -0,0 +1,604 @@
1
+ import { r as e } from "./rolldown-runtime-Cz5NsrRf.mjs";
2
+ import { n as t } from "./component-AqiMonitor-DoAVs1Jf.mjs";
3
+ import { i as n } from "./component-AiChat-C1xBPkS5.mjs";
4
+ import "./component-Forecast72h-BZ1kB2TJ.mjs";
5
+ import { n as r } from "./component-HdObservation-BmQdGJV6.mjs";
6
+ import { ElIcon as i, ElLoadingDirective as a, ElOption as ee, ElSelect 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, createVNode as d, defineComponent as f, getCurrentInstance as p, nextTick as m, normalizeClass as ae, normalizeStyle as h, onBeforeUnmount as g, onMounted as oe, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, watch as se, withCtx as S, withDirectives as ce } from "vue";
8
+ import { Download as le, TrendCharts as ue } from "@element-plus/icons-vue";
9
+ import * as C from "echarts";
10
+ //#region src/components/HdPreSituation/HdPreSituation.vue?vue&type=script&setup=true&lang.ts
11
+ var de = /* @__PURE__ */ e(r()), fe = {
12
+ class: "HdPreSituation",
13
+ "element-loading-background": "rgba(0, 0, 0, 0.5)"
14
+ }, pe = { class: "HdPreSituation-header" }, me = { class: "HdPreSituation-headerContent" }, he = {
15
+ key: 0,
16
+ class: "HdPreSituation-dataTime"
17
+ }, ge = { class: "HdPreSituation-body" }, _e = {
18
+ key: 0,
19
+ class: "HdPreSituation-timeRange"
20
+ }, ve = { class: "HdPreSituation-summary" }, ye = { class: "HdPreSituation-total" }, be = { class: "HdPreSituation-totalValue" }, xe = { class: "HdPreSituation-splitBar" }, Se = { class: "HdPreSituation-section" }, Ce = { class: "HdPreSituation-levelList" }, we = { class: "HdPreSituation-levelRange" }, Te = { class: "HdPreSituation-section" }, Ee = { class: "HdPreSituation-section HdPreSituation-section--table" }, w = { class: "HdPreSituation-tableHeader" }, T = { class: "HdPreSituation-tableActions" }, E = { class: "HdPreSituation-tableWrap" }, D = {
21
+ key: 0,
22
+ class: "HdPreSituation-trendMask"
23
+ }, De = { class: "HdPreSituation-trendPopup" }, Oe = { class: "HdPreSituation-trendHeader" }, ke = { class: "HdPreSituation-trendActions" }, Ae = { class: "HdPreSituation-trendThreshold" }, O = /* @__PURE__ */ t(/* @__PURE__ */ f({
24
+ __name: "HdPreSituation",
25
+ props: {
26
+ mock: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
30
+ baseHttp: { default: "" },
31
+ appKey: { default: "" },
32
+ appSalt: { default: "" },
33
+ ids: { default: () => ({}) },
34
+ refreshInterval: { default: 300 * 1e3 },
35
+ threshold: { default: 15 },
36
+ locateZoom: { default: 8 },
37
+ trendDefaultRegions: { default: 1e3 },
38
+ mockData: { default: () => ({
39
+ dataTime: "2026-08-12 14时",
40
+ timeRange: "2026年08月12日13时00分-2026年08月12日14时00分",
41
+ list: [
42
+ {
43
+ stationName: "临朐寺头",
44
+ stationCode: "54901",
45
+ region: "临朐",
46
+ lon: 114.9964643491507,
47
+ lat: 27.93822811514605,
48
+ precipitation: 25.8
49
+ },
50
+ {
51
+ stationName: "诸城朱解",
52
+ stationCode: "54902",
53
+ region: "诸城",
54
+ lon: 119.2,
55
+ lat: 36,
56
+ precipitation: 18.4
57
+ },
58
+ {
59
+ stationName: "诸城桃林",
60
+ stationCode: "54903",
61
+ region: "诸城",
62
+ lon: 119.4,
63
+ lat: 35.8,
64
+ precipitation: 14.2
65
+ },
66
+ {
67
+ stationName: "希望小学",
68
+ stationCode: "54904",
69
+ region: "安丘",
70
+ lon: 119.1,
71
+ lat: 36.3,
72
+ precipitation: 13
73
+ },
74
+ {
75
+ stationName: "诸城桃园",
76
+ stationCode: "54905",
77
+ region: "诸城",
78
+ lon: 119.3,
79
+ lat: 36.1,
80
+ precipitation: 10.6
81
+ },
82
+ {
83
+ stationName: "诸城昌标",
84
+ stationCode: "54906",
85
+ region: "诸城",
86
+ lon: 119.2,
87
+ lat: 36.2,
88
+ precipitation: 6.3
89
+ },
90
+ {
91
+ stationName: "诸城目标",
92
+ stationCode: "54907",
93
+ region: "诸城",
94
+ lon: 119.3,
95
+ lat: 36,
96
+ precipitation: 6.3
97
+ },
98
+ {
99
+ stationName: "昌邑青阜",
100
+ stationCode: "54908",
101
+ region: "昌邑",
102
+ lon: 119.5,
103
+ lat: 36.9,
104
+ precipitation: 6.3
105
+ },
106
+ {
107
+ stationName: "响嵩山水库",
108
+ stationCode: "54909",
109
+ region: "临朐",
110
+ lon: 118.8,
111
+ lat: 36.5,
112
+ precipitation: 4.6
113
+ },
114
+ {
115
+ stationName: "黄岛",
116
+ stationCode: "54910",
117
+ region: "黄岛",
118
+ lon: 120,
119
+ lat: 35.9,
120
+ precipitation: 2.3
121
+ }
122
+ ]
123
+ }) }
124
+ },
125
+ emits: ["close", "locate"],
126
+ setup(e, { emit: t }) {
127
+ let r = p()?.appContext.config.globalProperties.$bus, f = e, O = t, k = v(!1), A = v(""), j = v(""), M = v([]), N = v([]), P = v(null), F = v(null), I = null, L = null, R = null, z = v(!1), B = v([]), V = [
128
+ {
129
+ label: "小雨",
130
+ range: "0.1-1.6mm",
131
+ min: .1,
132
+ max: 1.6,
133
+ color: "#05ddfa"
134
+ },
135
+ {
136
+ label: "中雨",
137
+ range: "1.6-7mm",
138
+ min: 1.6,
139
+ max: 7,
140
+ color: "#165DFF"
141
+ },
142
+ {
143
+ label: "大雨",
144
+ range: "7-15mm",
145
+ min: 7,
146
+ max: 15,
147
+ color: "#00B42A"
148
+ },
149
+ {
150
+ label: "暴雨",
151
+ range: "15-40mm",
152
+ min: 15,
153
+ max: 40,
154
+ color: "#FF7D00"
155
+ },
156
+ {
157
+ label: "大暴雨",
158
+ range: "40-50mm",
159
+ min: 40,
160
+ max: 50,
161
+ color: "#F53F3F"
162
+ },
163
+ {
164
+ label: "特大暴雨",
165
+ range: "≥50mm",
166
+ min: 50,
167
+ max: Infinity,
168
+ color: "#820014"
169
+ }
170
+ ], H = s(() => M.value.filter((e) => e.precipitation >= f.threshold).length), U = s(() => M.value.length - H.value), W = s(() => M.value.length ? H.value / M.value.length * 100 : 0), je = s(() => 100 - W.value), G = s(() => [...M.value].filter((e) => !J(e.precipitation)).sort((e, t) => t.precipitation - e.precipitation).slice(0, 20).map((e) => ({
171
+ ...e,
172
+ isAlarm: e.precipitation >= f.threshold
173
+ }))), Me = s(() => V.map((e) => ({
174
+ ...e,
175
+ count: M.value.filter((t) => {
176
+ let n = t.precipitation;
177
+ return n >= e.min && n < e.max;
178
+ }).length
179
+ }))), K = s(() => Array.from(new Set(N.value.map((e) => e.region)))), q = s(() => {
180
+ let e = {};
181
+ return N.value.forEach((t) => {
182
+ e[t.region] = (e[t.region] || 0) + t.value;
183
+ }), Object.entries(e).sort((e, t) => t[1] - e[1]).slice(0, f.trendDefaultRegions).map(([e]) => e);
184
+ }), J = (e) => e == null || e === "" || e === 9999, Y = (e) => {
185
+ if (J(e)) return "--";
186
+ let t = Number(e);
187
+ return isNaN(t) ? String(e) : t.toFixed(1);
188
+ }, Ne = (e) => {
189
+ let t = V.find((t) => e >= t.min && e < t.max);
190
+ return t ? t.label : "--";
191
+ }, Pe = () => {
192
+ O("close", "HdPreSituation");
193
+ }, Fe = (e) => {
194
+ O("locate", {
195
+ stationName: e.stationName,
196
+ stationCode: e.stationCode,
197
+ region: e.region,
198
+ lon: e.lon,
199
+ lat: e.lat,
200
+ zoom: f.locateZoom
201
+ });
202
+ }, Ie = () => {
203
+ z.value = !0, B.value = q.value.length ? q.value : K.value.slice(0, f.trendDefaultRegions), m(() => {
204
+ Q();
205
+ });
206
+ }, Le = () => {
207
+ z.value = !1, L &&= (L.dispose(), null);
208
+ }, X = (e) => {
209
+ let t = f.ids[e] || f.ids.data;
210
+ return t?.id ? t : null;
211
+ }, Re = (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, ze = () => {
212
+ let e = f.mockData;
213
+ M.value = e.list || [], A.value = e.dataTime || "", j.value = e.timeRange || "", N.value = e.trend?.length ? e.trend : Be();
214
+ }, Be = () => {
215
+ let e = Array.from(new Set(M.value.map((e) => e.region))), t = [
216
+ "08时",
217
+ "09时",
218
+ "10时",
219
+ "11时",
220
+ "12时",
221
+ "13时",
222
+ "14时"
223
+ ], n = [];
224
+ return e.forEach((e) => {
225
+ t.forEach((t, r) => {
226
+ n.push({
227
+ time: t,
228
+ region: e,
229
+ value: Number((Math.random() * 10 + r * 2).toFixed(1))
230
+ });
231
+ });
232
+ }), n;
233
+ }, Ve = async () => {
234
+ let e = X("data");
235
+ if (!e) {
236
+ console.warn("HdPreSituation 缺少数据工作流配置");
237
+ return;
238
+ }
239
+ try {
240
+ let t = Re(await n({
241
+ id: e.id,
242
+ baseHttp: f.baseHttp,
243
+ reqType: e.reqType,
244
+ variables: {},
245
+ isFormData: e.isFormData,
246
+ appKey: f.appKey,
247
+ appSalt: f.appSalt
248
+ }));
249
+ t && (M.value = Array.isArray(t.list) ? t.list : [], A.value = t.dataTime || "", j.value = t.timeRange || "", N.value = Array.isArray(t.trend) ? t.trend : []);
250
+ } catch (e) {
251
+ console.error("HdPreSituation 数据加载失败", e);
252
+ }
253
+ }, Z = async () => {
254
+ k.value = !0, f.mock ? ze() : await Ve(), k.value = !1, m(() => {
255
+ He();
256
+ });
257
+ }, He = () => {
258
+ if (!P.value) return;
259
+ I && I.dispose(), I = C.init(P.value);
260
+ let e = {
261
+ backgroundColor: "transparent",
262
+ tooltip: {
263
+ trigger: "item",
264
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
265
+ borderColor: "rgba(64, 158, 255, 0.4)",
266
+ textStyle: { color: "#fff" },
267
+ formatter: "{b}: {c}站 ({d}%)"
268
+ },
269
+ legend: {
270
+ bottom: 0,
271
+ textStyle: {
272
+ color: "rgba(255,255,255,0.8)",
273
+ fontSize: 11
274
+ },
275
+ itemWidth: 10,
276
+ itemHeight: 10
277
+ },
278
+ series: [{
279
+ name: "报警统计",
280
+ type: "pie",
281
+ radius: ["35%", "60%"],
282
+ center: ["50%", "45%"],
283
+ avoidLabelOverlap: !1,
284
+ label: {
285
+ show: !0,
286
+ color: "#fff",
287
+ fontSize: 11,
288
+ formatter: "{b}\n{c}站"
289
+ },
290
+ labelLine: {
291
+ show: !0,
292
+ lineStyle: { color: "rgba(255,255,255,0.3)" }
293
+ },
294
+ data: [{
295
+ value: U.value,
296
+ name: "正常",
297
+ itemStyle: { color: "#00B42A" }
298
+ }, {
299
+ value: H.value,
300
+ name: "报警",
301
+ itemStyle: { color: "#F53F3F" }
302
+ }]
303
+ }]
304
+ };
305
+ I.setOption(e);
306
+ }, Ue = (e, t) => {
307
+ let n = [...e, t].filter((e) => !isNaN(Number(e)));
308
+ if (!n.length) return 20;
309
+ let r = Math.max(...n);
310
+ return Math.ceil(r * 1.1);
311
+ }, Q = () => {
312
+ if (!F.value) return;
313
+ L && L.dispose();
314
+ let e = Array.from(new Set(N.value.map((e) => e.time))), t = {};
315
+ N.value.forEach((e) => {
316
+ t[e.region] || (t[e.region] = []), t[e.region].push(e.value);
317
+ });
318
+ let n = B.value.filter((e) => t[e]), r = [
319
+ "#05ddfa",
320
+ "#FF7D00",
321
+ "#00B42A",
322
+ "#A855F7",
323
+ "#F53F3F",
324
+ "#165DFF",
325
+ "#FF4D4F",
326
+ "#EB2F96",
327
+ "#13C2C2",
328
+ "#FAAD14"
329
+ ], i = Ue(N.value.filter((e) => n.includes(e.region)).map((e) => e.value), f.threshold), a = {
330
+ backgroundColor: "transparent",
331
+ grid: {
332
+ top: 40,
333
+ right: 24,
334
+ bottom: 24,
335
+ left: 48
336
+ },
337
+ tooltip: {
338
+ trigger: "axis",
339
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
340
+ borderColor: "rgba(64, 158, 255, 0.4)",
341
+ textStyle: { color: "#fff" },
342
+ formatter: (e) => `${e[0]?.axisValue || ""}<br/>${e.map((e) => (e.seriesName, `${e.marker} ${e.seriesName}: ${e.value}mm`)).join("<br/>")}`
343
+ },
344
+ legend: {
345
+ data: [...n, "阈值"],
346
+ top: 0,
347
+ type: "scroll",
348
+ textStyle: {
349
+ color: "rgba(255,255,255,0.8)",
350
+ fontSize: 11
351
+ },
352
+ itemWidth: 12,
353
+ itemHeight: 8,
354
+ pageIconColor: "#05ddfa",
355
+ pageTextStyle: { color: "rgba(255,255,255,0.7)" }
356
+ },
357
+ xAxis: {
358
+ type: "category",
359
+ data: e,
360
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
361
+ axisLabel: {
362
+ color: "rgba(255,255,255,0.7)",
363
+ fontSize: 11
364
+ },
365
+ axisTick: { show: !1 }
366
+ },
367
+ yAxis: {
368
+ type: "value",
369
+ max: i,
370
+ name: "单位:mm",
371
+ nameTextStyle: {
372
+ color: "rgba(255,255,255,0.7)",
373
+ fontSize: 10,
374
+ padding: [
375
+ 0,
376
+ 0,
377
+ 0,
378
+ 8
379
+ ]
380
+ },
381
+ axisLine: { show: !1 },
382
+ axisLabel: {
383
+ color: "rgba(255,255,255,0.7)",
384
+ fontSize: 11
385
+ },
386
+ splitLine: { show: !1 },
387
+ axisTick: { show: !1 }
388
+ },
389
+ series: [{
390
+ name: "阈值",
391
+ type: "line",
392
+ data: e.map(() => f.threshold),
393
+ itemStyle: { color: "#F53F3F" },
394
+ lineStyle: {
395
+ type: "dashed",
396
+ width: 1
397
+ },
398
+ symbol: "none"
399
+ }, ...n.map((e, n) => ({
400
+ name: e,
401
+ type: "line",
402
+ data: t[e],
403
+ smooth: !0,
404
+ itemStyle: { color: r[n % r.length] },
405
+ lineStyle: { width: 2 },
406
+ symbol: "circle",
407
+ symbolSize: 4
408
+ }))]
409
+ };
410
+ L = C.init(F.value), L.setOption(a);
411
+ };
412
+ se(K, (e) => {
413
+ z.value && (B.value = e.slice(0, f.trendDefaultRegions), m(() => Q()));
414
+ });
415
+ let We = () => {
416
+ let e = G.value.map((e, t) => ({
417
+ 序号: t + 1,
418
+ 区域: e.region,
419
+ 站名: e.stationName,
420
+ 站号: e.stationCode,
421
+ 降水量: Y(e.precipitation),
422
+ 单位: "mm",
423
+ 等级: Ne(e.precipitation),
424
+ 是否报警: e.isAlarm ? "是" : "否"
425
+ }));
426
+ new de.default({
427
+ fileName: `降水实况统计_${(/* @__PURE__ */ new Date()).getTime()}`,
428
+ datas: [{
429
+ sheetData: e,
430
+ sheetName: "降水实况",
431
+ sheetFilter: [
432
+ "序号",
433
+ "区域",
434
+ "站名",
435
+ "站号",
436
+ "降水量",
437
+ "单位",
438
+ "等级",
439
+ "是否报警"
440
+ ],
441
+ sheetHeader: [
442
+ "序号",
443
+ "区域",
444
+ "站名",
445
+ "站号",
446
+ "降水量",
447
+ "单位",
448
+ "等级",
449
+ "是否报警"
450
+ ],
451
+ columnWidths: [
452
+ 8,
453
+ 12,
454
+ 18,
455
+ 12,
456
+ 12,
457
+ 8,
458
+ 12,
459
+ 12
460
+ ]
461
+ }]
462
+ }).saveExcel();
463
+ }, Ge = () => {
464
+ $(), !(f.refreshInterval <= 0) && (R = setInterval(() => {
465
+ Z();
466
+ }, f.refreshInterval));
467
+ }, $ = () => {
468
+ R &&= (clearInterval(R), null);
469
+ };
470
+ return oe(() => {
471
+ r?.on("toComponent", (e) => {
472
+ e.componentName === "HdPreSituation" && Z();
473
+ }), Z(), Ge(), window.addEventListener("resize", () => {
474
+ I?.resize(), L?.resize();
475
+ });
476
+ }), g(() => {
477
+ $(), I &&= (I.dispose(), null), L &&= (L.dispose(), null);
478
+ }), (e, t) => {
479
+ let n = i, r = re, s = ne, p = ee, m = te, g = a;
480
+ return ce((_(), l("div", fe, [
481
+ u("button", {
482
+ class: "HdPreSituation-close",
483
+ onClick: Pe
484
+ }, [...t[1] ||= [u("span", null, "✕", -1)]]),
485
+ u("div", pe, [u("div", me, [t[2] ||= u("h3", { class: "HdPreSituation-title" }, "降水实况统计", -1), A.value ? (_(), l("span", he, "(数据时间:" + b(A.value) + ")", 1)) : c("", !0)]), t[3] ||= u("img", {
486
+ style: {
487
+ width: "100%",
488
+ "object-fit": "contain",
489
+ "margin-top": "4px"
490
+ },
491
+ 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",
492
+ alt: ""
493
+ }, null, -1)]),
494
+ u("div", ge, [
495
+ j.value ? (_(), l("div", _e, b(j.value), 1)) : c("", !0),
496
+ u("div", ve, [u("div", ye, [t[4] ||= u("span", { class: "HdPreSituation-totalLabel" }, "总站数", -1), u("span", be, b(M.value.length), 1)]), u("div", xe, [u("div", {
497
+ class: "HdPreSituation-splitBarItem HdPreSituation-splitBarItem--normal",
498
+ style: h({ width: je.value + "%" })
499
+ }, [u("span", null, "正常 " + b(U.value), 1)], 4), u("div", {
500
+ class: "HdPreSituation-splitBarItem HdPreSituation-splitBarItem--alarm",
501
+ style: h({ width: W.value + "%" })
502
+ }, [u("span", null, "报警 " + b(H.value), 1)], 4)])]),
503
+ u("div", Se, [t[5] ||= u("div", { class: "HdPreSituation-sectionTitle" }, "降水等级分布", -1), u("div", Ce, [(_(!0), l(o, null, y(Me.value, (e) => (_(), l("div", {
504
+ key: e.label,
505
+ class: "HdPreSituation-levelItem"
506
+ }, [
507
+ u("span", {
508
+ class: "HdPreSituation-levelName",
509
+ style: h({ color: e.color })
510
+ }, b(e.label), 5),
511
+ u("span", we, b(e.range), 1),
512
+ u("span", {
513
+ class: "HdPreSituation-levelCount",
514
+ style: h({ color: e.color })
515
+ }, b(e.count), 5)
516
+ ]))), 128))])]),
517
+ u("div", Te, [t[6] ||= u("div", { class: "HdPreSituation-sectionTitle" }, "报警统计", -1), u("div", {
518
+ ref_key: "pieChartRef",
519
+ ref: P,
520
+ class: "HdPreSituation-pieChart"
521
+ }, null, 512)]),
522
+ u("div", Ee, [u("div", w, [t[9] ||= u("span", { class: "HdPreSituation-sectionTitle" }, "区域降水排名", -1), u("div", T, [u("button", {
523
+ class: "HdPreSituation-btn",
524
+ onClick: Ie
525
+ }, [d(n, null, {
526
+ default: S(() => [d(x(ue))]),
527
+ _: 1
528
+ }), t[7] ||= u("span", { class: "HdPreSituation-btnText" }, "趋势图", -1)]), u("button", {
529
+ class: "HdPreSituation-btn",
530
+ onClick: We
531
+ }, [d(n, null, {
532
+ default: S(() => [d(x(le))]),
533
+ _: 1
534
+ }), t[8] ||= u("span", { class: "HdPreSituation-btnText" }, "导出", -1)])])]), u("div", E, [d(s, {
535
+ data: G.value,
536
+ class: "HdPreSituation-table",
537
+ "max-height": "220",
538
+ "empty-text": "暂无数据",
539
+ onRowClick: Fe
540
+ }, {
541
+ default: S(() => [
542
+ d(r, {
543
+ prop: "region",
544
+ label: "区域",
545
+ align: "left",
546
+ "min-width": "50"
547
+ }),
548
+ d(r, {
549
+ prop: "stationName",
550
+ label: "站名",
551
+ align: "left",
552
+ "min-width": "60",
553
+ "show-overflow-tooltip": ""
554
+ }),
555
+ d(r, {
556
+ label: "降水量",
557
+ align: "left",
558
+ "min-width": "80"
559
+ }, {
560
+ default: S(({ row: e }) => [u("span", { class: ae({ "HdPreSituation-alarmText": e.isAlarm }) }, b(Y(e.precipitation)) + "mm", 3)]),
561
+ _: 1
562
+ })
563
+ ]),
564
+ _: 1
565
+ }, 8, ["data"])])])
566
+ ]),
567
+ z.value ? (_(), l("div", D, [u("div", De, [u("div", Oe, [t[10] ||= u("div", { class: "HdPreSituation-trendTitle" }, "区域降水趋势", -1), u("div", ke, [
568
+ u("span", Ae, "阈值:" + b(f.threshold) + "mm", 1),
569
+ d(m, {
570
+ modelValue: B.value,
571
+ "onUpdate:modelValue": t[0] ||= (e) => B.value = e,
572
+ class: "HdPreSituation-regionSelect",
573
+ "popper-class": "HdPreSituation-regionPopper",
574
+ size: "small",
575
+ multiple: "",
576
+ effect: "dark",
577
+ "collapse-tags": "",
578
+ "collapse-tags-tooltip": "",
579
+ teleported: !1,
580
+ placeholder: "选择区域",
581
+ onChange: Q
582
+ }, {
583
+ default: S(() => [(_(!0), l(o, null, y(K.value, (e) => (_(), ie(p, {
584
+ key: e,
585
+ label: e,
586
+ value: e
587
+ }, null, 8, ["label", "value"]))), 128))]),
588
+ _: 1
589
+ }, 8, ["modelValue"]),
590
+ u("button", {
591
+ class: "HdPreSituation-trendClose",
592
+ onClick: Le
593
+ }, "✕")
594
+ ])]), u("div", {
595
+ ref_key: "trendChartRef",
596
+ ref: F,
597
+ class: "HdPreSituation-trendChart"
598
+ }, null, 512)])])) : c("", !0)
599
+ ])), [[g, k.value]]);
600
+ };
601
+ }
602
+ }), [["__scopeId", "data-v-c853d39d"]]);
603
+ //#endregion
604
+ export { O as t };