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
@@ -1,26 +1,26 @@
1
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";
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, ElOption as ne, ElSelect as re, ElTable as ie, ElTableColumn as ae } from "element-plus/es";
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
+ import { Download as ue, TrendCharts as de } from "@element-plus/icons-vue";
9
+ import * as w from "echarts";
10
+ import { ElMessage as fe } from "element-plus";
11
+ import pe from "element-plus/es/locale/lang/zh-cn.mjs";
12
+ import "element-plus/dist/index.css";
10
13
  //#region src/components/HdPreSituation/HdPreSituation.vue?vue&type=script&setup=true&lang.ts
11
- var de = /* @__PURE__ */ e(r()), fe = {
14
+ var me = /* @__PURE__ */ e(r()), he = {
12
15
  class: "HdPreSituation",
13
16
  "element-loading-background": "rgba(0, 0, 0, 0.5)"
14
- }, pe = { class: "HdPreSituation-header" }, me = { class: "HdPreSituation-headerContent" }, he = {
17
+ }, ge = { class: "HdPreSituation-header" }, _e = { class: "HdPreSituation-headerContent" }, ve = {
15
18
  key: 0,
16
19
  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 = {
20
+ }, ye = { class: "HdPreSituation-body" }, be = { class: "HdPreSituation-timeRange" }, xe = { class: "HdPreSituation-summary" }, Se = { class: "HdPreSituation-total" }, Ce = { class: "HdPreSituation-totalValue" }, we = { class: "HdPreSituation-splitBar" }, Te = { class: "HdPreSituation-section" }, Ee = { class: "HdPreSituation-levelList" }, De = { class: "HdPreSituation-levelRange" }, Oe = { class: "HdPreSituation-section HdPreSituation-section--table" }, T = { class: "HdPreSituation-tableHeader" }, ke = { class: "HdPreSituation-tableActions" }, Ae = { class: "HdPreSituation-tableWrap" }, je = {
21
21
  key: 0,
22
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({
23
+ }, Me = { class: "HdPreSituation-trendPopup" }, Ne = { class: "HdPreSituation-trendHeader" }, Pe = { class: "HdPreSituation-trendActions" }, Fe = { class: "HdPreSituation-trendThreshold" }, E = /* @__PURE__ */ t(/* @__PURE__ */ f({
24
24
  __name: "HdPreSituation",
25
25
  props: {
26
26
  mock: {
@@ -124,74 +124,82 @@ var de = /* @__PURE__ */ e(r()), fe = {
124
124
  },
125
125
  emits: ["close", "locate"],
126
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 = [
127
+ let r = p()?.appContext.config.globalProperties.$bus, f = e, E = t, D = y(!1), O = y(""), k = y([]), A = y([]), j = y([]), M = y(null), N = y(null), P = null, F = null, I = null, L = y(!1), R = y([]), z = [
128
128
  {
129
129
  label: "小雨",
130
- range: "0.1-1.6mm",
130
+ range: "0.1-1.6mm/h",
131
131
  min: .1,
132
132
  max: 1.6,
133
133
  color: "#05ddfa"
134
134
  },
135
135
  {
136
136
  label: "中雨",
137
- range: "1.6-7mm",
137
+ range: "1.6-7mm/h",
138
138
  min: 1.6,
139
139
  max: 7,
140
140
  color: "#165DFF"
141
141
  },
142
142
  {
143
143
  label: "大雨",
144
- range: "7-15mm",
144
+ range: "7-15mm/h",
145
145
  min: 7,
146
146
  max: 15,
147
147
  color: "#00B42A"
148
148
  },
149
149
  {
150
150
  label: "暴雨",
151
- range: "15-40mm",
151
+ range: "15-40mm/h",
152
152
  min: 15,
153
153
  max: 40,
154
154
  color: "#FF7D00"
155
155
  },
156
156
  {
157
157
  label: "大暴雨",
158
- range: "40-50mm",
158
+ range: "40-50mm/h",
159
159
  min: 40,
160
160
  max: 50,
161
161
  color: "#F53F3F"
162
162
  },
163
163
  {
164
164
  label: "特大暴雨",
165
- range: "≥50mm",
165
+ range: "≥50mm/h",
166
166
  min: 50,
167
167
  max: Infinity,
168
168
  color: "#820014"
169
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) => ({
170
+ ], B = s(() => A.value.filter((e) => e.precipitation >= f.threshold).length), V = s(() => A.value.length - B.value), H = s(() => A.value.length ? B.value / A.value.length * 100 : 0), Ie = s(() => 100 - H.value), U = s(() => [...A.value].filter((e) => !J(e.precipitation)).sort((e, t) => t.precipitation - e.precipitation).slice(0, 20).map((e) => ({
171
171
  ...e,
172
172
  isAlarm: e.precipitation >= f.threshold
173
- }))), Me = s(() => V.map((e) => ({
173
+ }))), Le = s(() => z.map((e) => ({
174
174
  ...e,
175
- count: M.value.filter((t) => {
175
+ count: A.value.filter((t) => {
176
176
  let n = t.precipitation;
177
177
  return n >= e.min && n < e.max;
178
178
  }).length
179
- }))), K = s(() => Array.from(new Set(N.value.map((e) => e.region)))), q = s(() => {
179
+ }))), W = s(() => Array.from(new Set(j.value.map((e) => e.region)))), G = s(() => {
180
180
  let e = {};
181
- return N.value.forEach((t) => {
181
+ return j.value.forEach((t) => {
182
182
  e[t.region] = (e[t.region] || 0) + t.value;
183
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) => {
184
+ }), K = (e) => {
185
+ let t = (e) => String(e).padStart(2, "0");
186
+ return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
187
+ }, q = () => {
188
+ let e = /* @__PURE__ */ new Date();
189
+ k.value = [K(/* @__PURE__ */ new Date(e.getTime() - 3600 * 1e3)), K(e)];
190
+ }, J = (e) => e == null || e === "" || e === 9999, Y = (e) => {
185
191
  if (J(e)) return "--";
186
192
  let t = Number(e);
187
193
  return isNaN(t) ? String(e) : t.toFixed(1);
188
- }, Ne = (e) => {
189
- let t = V.find((t) => e >= t.min && e < t.max);
194
+ }, Re = (e) => {
195
+ let t = z.find((t) => e >= t.min && e < t.max);
190
196
  return t ? t.label : "--";
191
- }, Pe = () => {
192
- O("close", "HdPreSituation");
193
- }, Fe = (e) => {
194
- O("locate", {
197
+ }, ze = () => {
198
+ E("close", "HdPreSituation");
199
+ }, Be = () => {
200
+ Z();
201
+ }, Ve = (e) => {
202
+ E("locate", {
195
203
  stationName: e.stationName,
196
204
  stationCode: e.stationCode,
197
205
  region: e.region,
@@ -199,20 +207,20 @@ var de = /* @__PURE__ */ e(r()), fe = {
199
207
  lat: e.lat,
200
208
  zoom: f.locateZoom
201
209
  });
202
- }, Ie = () => {
203
- z.value = !0, B.value = q.value.length ? q.value : K.value.slice(0, f.trendDefaultRegions), m(() => {
210
+ }, He = () => {
211
+ L.value = !0, R.value = G.value.length ? G.value : W.value.slice(0, f.trendDefaultRegions), m(() => {
204
212
  Q();
205
213
  });
206
- }, Le = () => {
207
- z.value = !1, L &&= (L.dispose(), null);
208
- }, X = (e) => {
214
+ }, Ue = () => {
215
+ L.value = !1, F &&= (F.dispose(), null);
216
+ }, We = (e) => {
209
217
  let t = f.ids[e] || f.ids.data;
210
218
  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 = () => {
219
+ }, 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 = () => {
212
220
  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 = [
221
+ A.value = e.list || [], O.value = e.dataTime || "", k.value.length || q(), j.value = e.trend?.length ? e.trend : Ke();
222
+ }, Ke = () => {
223
+ let e = Array.from(new Set(A.value.map((e) => e.region))), t = [
216
224
  "08时",
217
225
  "09时",
218
226
  "10时",
@@ -230,33 +238,38 @@ var de = /* @__PURE__ */ e(r()), fe = {
230
238
  });
231
239
  });
232
240
  }), n;
233
- }, Ve = async () => {
234
- let e = X("data");
241
+ }, qe = async () => {
242
+ let e = We("data");
235
243
  if (!e) {
236
244
  console.warn("HdPreSituation 缺少数据工作流配置");
237
245
  return;
238
246
  }
247
+ k.value.length || q();
248
+ let [t, r] = k.value;
239
249
  try {
240
- let t = Re(await n({
250
+ let i = X(await n({
241
251
  id: e.id,
242
252
  baseHttp: f.baseHttp,
243
253
  reqType: e.reqType,
244
- variables: {},
254
+ variables: {
255
+ startTime: t || "",
256
+ endTime: r || ""
257
+ },
245
258
  isFormData: e.isFormData,
246
259
  appKey: f.appKey,
247
260
  appSalt: f.appSalt
248
261
  }));
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 : []);
262
+ i && (A.value = Array.isArray(i.list) ? i.list : [], O.value = i.dataTime || "", j.value = Array.isArray(i.trend) ? i.trend : []);
250
263
  } catch (e) {
251
264
  console.error("HdPreSituation 数据加载失败", e);
252
265
  }
253
266
  }, Z = async () => {
254
- k.value = !0, f.mock ? ze() : await Ve(), k.value = !1, m(() => {
255
- He();
267
+ D.value = !0, f.mock ? Ge() : await qe(), D.value = !1, m(() => {
268
+ Je();
256
269
  });
257
- }, He = () => {
258
- if (!P.value) return;
259
- I && I.dispose(), I = C.init(P.value);
270
+ }, Je = () => {
271
+ if (!M.value) return;
272
+ P && P.dispose(), P = w.init(M.value);
260
273
  let e = {
261
274
  backgroundColor: "transparent",
262
275
  tooltip: {
@@ -292,30 +305,30 @@ var de = /* @__PURE__ */ e(r()), fe = {
292
305
  lineStyle: { color: "rgba(255,255,255,0.3)" }
293
306
  },
294
307
  data: [{
295
- value: U.value,
308
+ value: V.value,
296
309
  name: "正常",
297
310
  itemStyle: { color: "#00B42A" }
298
311
  }, {
299
- value: H.value,
312
+ value: B.value,
300
313
  name: "报警",
301
314
  itemStyle: { color: "#F53F3F" }
302
315
  }]
303
316
  }]
304
317
  };
305
- I.setOption(e);
306
- }, Ue = (e, t) => {
318
+ P.setOption(e);
319
+ }, Ye = (e, t) => {
307
320
  let n = [...e, t].filter((e) => !isNaN(Number(e)));
308
321
  if (!n.length) return 20;
309
322
  let r = Math.max(...n);
310
323
  return Math.ceil(r * 1.1);
311
324
  }, 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) => {
325
+ if (!N.value) return;
326
+ F && F.dispose();
327
+ let e = Array.from(new Set(j.value.map((e) => e.time))), t = {};
328
+ j.value.forEach((e) => {
316
329
  t[e.region] || (t[e.region] = []), t[e.region].push(e.value);
317
330
  });
318
- let n = B.value.filter((e) => t[e]), r = [
331
+ let n = R.value.filter((e) => t[e]), r = [
319
332
  "#05ddfa",
320
333
  "#FF7D00",
321
334
  "#00B42A",
@@ -326,7 +339,7 @@ var de = /* @__PURE__ */ e(r()), fe = {
326
339
  "#EB2F96",
327
340
  "#13C2C2",
328
341
  "#FAAD14"
329
- ], i = Ue(N.value.filter((e) => n.includes(e.region)).map((e) => e.value), f.threshold), a = {
342
+ ], i = Ye(j.value.filter((e) => n.includes(e.region)).map((e) => e.value), f.threshold), a = {
330
343
  backgroundColor: "transparent",
331
344
  grid: {
332
345
  top: 40,
@@ -339,7 +352,7 @@ var de = /* @__PURE__ */ e(r()), fe = {
339
352
  backgroundColor: "rgba(6, 32, 56, 0.95)",
340
353
  borderColor: "rgba(64, 158, 255, 0.4)",
341
354
  textStyle: { color: "#fff" },
342
- formatter: (e) => `${e[0]?.axisValue || ""}<br/>${e.map((e) => (e.seriesName, `${e.marker} ${e.seriesName}: ${e.value}mm`)).join("<br/>")}`
355
+ formatter: (e) => `${e[0]?.axisValue || ""}<br/>${e.map((e) => `${e.marker} ${e.seriesName}: ${e.value}mm/h`).join("<br/>")}`
343
356
  },
344
357
  legend: {
345
358
  data: [...n, "阈值"],
@@ -367,7 +380,7 @@ var de = /* @__PURE__ */ e(r()), fe = {
367
380
  yAxis: {
368
381
  type: "value",
369
382
  max: i,
370
- name: "单位:mm",
383
+ name: "单位:mm/h",
371
384
  nameTextStyle: {
372
385
  color: "rgba(255,255,255,0.7)",
373
386
  fontSize: 10,
@@ -398,32 +411,42 @@ var de = /* @__PURE__ */ e(r()), fe = {
398
411
  symbol: "none"
399
412
  }, ...n.map((e, n) => ({
400
413
  name: e,
401
- type: "line",
414
+ type: "bar",
402
415
  data: t[e],
403
- smooth: !0,
404
- itemStyle: { color: r[n % r.length] },
405
- lineStyle: { width: 2 },
406
- symbol: "circle",
407
- symbolSize: 4
416
+ barWidth: 12,
417
+ barGap: "20%",
418
+ itemStyle: {
419
+ color: r[n % r.length],
420
+ borderRadius: [
421
+ 4,
422
+ 4,
423
+ 0,
424
+ 0
425
+ ]
426
+ }
408
427
  }))]
409
428
  };
410
- L = C.init(F.value), L.setOption(a);
429
+ F = w.init(N.value), F.setOption(a);
411
430
  };
412
- se(K, (e) => {
413
- z.value && (B.value = e.slice(0, f.trendDefaultRegions), m(() => Q()));
431
+ ce(W, (e) => {
432
+ L.value && (R.value = e.slice(0, f.trendDefaultRegions), m(() => Q()));
414
433
  });
415
- let We = () => {
416
- let e = G.value.map((e, t) => ({
434
+ let Xe = () => {
435
+ if (U.value.length == 0) {
436
+ fe.warning("暂无数据");
437
+ return;
438
+ }
439
+ let e = U.value.map((e, t) => ({
417
440
  序号: t + 1,
418
441
  区域: e.region,
419
442
  站名: e.stationName,
420
443
  站号: e.stationCode,
421
444
  降水量: Y(e.precipitation),
422
- 单位: "mm",
423
- 等级: Ne(e.precipitation),
445
+ 单位: "mm/h",
446
+ 等级: Re(e.precipitation),
424
447
  是否报警: e.isAlarm ? "是" : "否"
425
448
  }));
426
- new de.default({
449
+ new me.default({
427
450
  fileName: `降水实况统计_${(/* @__PURE__ */ new Date()).getTime()}`,
428
451
  datas: [{
429
452
  sheetData: e,
@@ -460,29 +483,29 @@ var de = /* @__PURE__ */ e(r()), fe = {
460
483
  ]
461
484
  }]
462
485
  }).saveExcel();
463
- }, Ge = () => {
464
- $(), !(f.refreshInterval <= 0) && (R = setInterval(() => {
486
+ }, Ze = () => {
487
+ $(), !(f.refreshInterval <= 0) && (I = setInterval(() => {
465
488
  Z();
466
489
  }, f.refreshInterval));
467
490
  }, $ = () => {
468
- R &&= (clearInterval(R), null);
491
+ I &&= (clearInterval(I), null);
469
492
  };
470
- return oe(() => {
493
+ return _(() => {
471
494
  r?.on("toComponent", (e) => {
472
495
  e.componentName === "HdPreSituation" && Z();
473
- }), Z(), Ge(), window.addEventListener("resize", () => {
474
- I?.resize(), L?.resize();
496
+ }), Z(), Ze(), window.addEventListener("resize", () => {
497
+ P?.resize(), F?.resize();
475
498
  });
476
499
  }), g(() => {
477
- $(), I &&= (I.dispose(), null), L &&= (L.dispose(), null);
500
+ $(), P &&= (P.dispose(), null), F &&= (F.dispose(), null);
478
501
  }), (e, t) => {
479
- let n = i, r = re, s = ne, p = ee, m = te, g = a;
480
- return ce((_(), l("div", fe, [
502
+ let n = a, r = i, s = ee, p = ae, m = ie, g = ne, _ = re, y = te;
503
+ return le((v(), l("div", he, [
481
504
  u("button", {
482
505
  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", {
506
+ onClick: ze
507
+ }, [...t[2] ||= [u("span", null, "✕", -1)]]),
508
+ u("div", ge, [u("div", _e, [t[3] ||= u("h3", { class: "HdPreSituation-title" }, "降水实况统计", -1), O.value ? (v(), l("span", ve, "(数据时间:" + x(O.value) + ")", 1)) : c("", !0)]), t[4] ||= u("img", {
486
509
  style: {
487
510
  width: "100%",
488
511
  "object-fit": "contain",
@@ -491,84 +514,96 @@ var de = /* @__PURE__ */ e(r()), fe = {
491
514
  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
515
  alt: ""
493
516
  }, 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", {
517
+ u("div", ye, [
518
+ u("div", be, [d(r, { locale: S(pe) }, {
519
+ default: C(() => [d(n, {
520
+ style: { width: "100%" },
521
+ modelValue: k.value,
522
+ "onUpdate:modelValue": t[0] ||= (e) => k.value = e,
523
+ class: "HdPreSituation-timePicker",
524
+ "popper-class": "HdPreSituation-timePopper",
525
+ type: "datetimerange",
526
+ format: "YYYY年MM月DD日 HH:mm",
527
+ "value-format": "YYYY-MM-DD HH:mm:ss",
528
+ "range-separator": "-",
529
+ "start-placeholder": "开始时间",
530
+ "end-placeholder": "结束时间",
531
+ size: "small",
532
+ onChange: Be
533
+ }, null, 8, ["modelValue"])]),
534
+ _: 1
535
+ }, 8, ["locale"])]),
536
+ u("div", xe, [u("div", Se, [t[5] ||= u("span", { class: "HdPreSituation-totalLabel" }, "总站数", -1), u("span", Ce, x(A.value.length), 1)]), u("div", we, [u("div", {
497
537
  class: "HdPreSituation-splitBarItem HdPreSituation-splitBarItem--normal",
498
- style: h({ width: je.value + "%" })
499
- }, [u("span", null, "正常 " + b(U.value), 1)], 4), u("div", {
538
+ style: h({ width: Ie.value + "%" })
539
+ }, [u("span", null, "正常 " + x(V.value), 1)], 4), u("div", {
500
540
  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", {
541
+ style: h({ width: H.value + "%" })
542
+ }, [u("span", null, "报警 " + x(B.value), 1)], 4)])]),
543
+ u("div", Te, [t[6] ||= u("div", { class: "HdPreSituation-sectionTitle" }, "降水等级分布", -1), u("div", Ee, [(v(!0), l(o, null, b(Le.value, (e) => (v(), l("div", {
504
544
  key: e.label,
505
545
  class: "HdPreSituation-levelItem"
506
546
  }, [
507
547
  u("span", {
508
548
  class: "HdPreSituation-levelName",
509
549
  style: h({ color: e.color })
510
- }, b(e.label), 5),
511
- u("span", we, b(e.range), 1),
550
+ }, x(e.label), 5),
551
+ u("span", De, x(e.range), 1),
512
552
  u("span", {
513
553
  class: "HdPreSituation-levelCount",
514
554
  style: h({ color: e.color })
515
- }, b(e.count), 5)
555
+ }, x(e.count), 5)
516
556
  ]))), 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", {
557
+ u("div", Oe, [u("div", T, [t[9] ||= u("span", { class: "HdPreSituation-sectionTitle" }, "区域降水排名", -1), u("div", ke, [u("button", {
523
558
  class: "HdPreSituation-btn",
524
- onClick: Ie
525
- }, [d(n, null, {
526
- default: S(() => [d(x(ue))]),
559
+ onClick: He
560
+ }, [d(s, null, {
561
+ default: C(() => [d(S(de))]),
527
562
  _: 1
528
563
  }), t[7] ||= u("span", { class: "HdPreSituation-btnText" }, "趋势图", -1)]), u("button", {
529
564
  class: "HdPreSituation-btn",
530
- onClick: We
531
- }, [d(n, null, {
532
- default: S(() => [d(x(le))]),
565
+ onClick: Xe
566
+ }, [d(s, null, {
567
+ default: C(() => [d(S(ue))]),
533
568
  _: 1
534
- }), t[8] ||= u("span", { class: "HdPreSituation-btnText" }, "导出", -1)])])]), u("div", E, [d(s, {
535
- data: G.value,
569
+ }), t[8] ||= u("span", { class: "HdPreSituation-btnText" }, "导出", -1)])])]), u("div", Ae, [d(m, {
570
+ data: U.value,
536
571
  class: "HdPreSituation-table",
537
572
  "max-height": "220",
538
573
  "empty-text": "暂无数据",
539
- onRowClick: Fe
574
+ onRowClick: Ve
540
575
  }, {
541
- default: S(() => [
542
- d(r, {
576
+ default: C(() => [
577
+ d(p, {
543
578
  prop: "region",
544
579
  label: "区域",
545
580
  align: "left",
546
581
  "min-width": "50"
547
582
  }),
548
- d(r, {
583
+ d(p, {
549
584
  prop: "stationName",
550
585
  label: "站名",
551
586
  align: "left",
552
587
  "min-width": "60",
553
588
  "show-overflow-tooltip": ""
554
589
  }),
555
- d(r, {
590
+ d(p, {
556
591
  label: "降水量",
557
592
  align: "left",
558
593
  "min-width": "80"
559
594
  }, {
560
- default: S(({ row: e }) => [u("span", { class: ae({ "HdPreSituation-alarmText": e.isAlarm }) }, b(Y(e.precipitation)) + "mm", 3)]),
595
+ default: C(({ row: e }) => [u("span", { class: se({ "HdPreSituation-alarmText": e.isAlarm }) }, x(Y(e.precipitation)) + "mm/h", 3)]),
561
596
  _: 1
562
597
  })
563
598
  ]),
564
599
  _: 1
565
600
  }, 8, ["data"])])])
566
601
  ]),
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,
602
+ L.value ? (v(), l("div", je, [u("div", Me, [u("div", Ne, [t[10] ||= u("div", { class: "HdPreSituation-trendTitle" }, "区域降水趋势", -1), u("div", Pe, [
603
+ u("span", Fe, "阈值:" + x(f.threshold) + "mm/h", 1),
604
+ d(_, {
605
+ modelValue: R.value,
606
+ "onUpdate:modelValue": t[1] ||= (e) => R.value = e,
572
607
  class: "HdPreSituation-regionSelect",
573
608
  "popper-class": "HdPreSituation-regionPopper",
574
609
  size: "small",
@@ -580,7 +615,7 @@ var de = /* @__PURE__ */ e(r()), fe = {
580
615
  placeholder: "选择区域",
581
616
  onChange: Q
582
617
  }, {
583
- default: S(() => [(_(!0), l(o, null, y(K.value, (e) => (_(), ie(p, {
618
+ default: C(() => [(v(!0), l(o, null, b(W.value, (e) => (v(), oe(g, {
584
619
  key: e,
585
620
  label: e,
586
621
  value: e
@@ -589,16 +624,16 @@ var de = /* @__PURE__ */ e(r()), fe = {
589
624
  }, 8, ["modelValue"]),
590
625
  u("button", {
591
626
  class: "HdPreSituation-trendClose",
592
- onClick: Le
627
+ onClick: Ue
593
628
  }, "✕")
594
629
  ])]), u("div", {
595
630
  ref_key: "trendChartRef",
596
- ref: F,
631
+ ref: N,
597
632
  class: "HdPreSituation-trendChart"
598
633
  }, null, 512)])])) : c("", !0)
599
- ])), [[g, k.value]]);
634
+ ])), [[y, D.value]]);
600
635
  };
601
636
  }
602
- }), [["__scopeId", "data-v-c853d39d"]]);
637
+ }), [["__scopeId", "data-v-711c113a"]]);
603
638
  //#endregion
604
- export { O as t };
639
+ export { E 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 { 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 u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as ee, createVNode as m, defineComponent as h, getCurrentInstance as te, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as ne, 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 oe from "element-plus/es/locale/lang/zh-cn.mjs";
@@ -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 { ElOption as n, ElSelect as r } from "element-plus/es";
4
4
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, normalizeClass as p, normalizeStyle as m, onMounted as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, watch as ee, withCtx as b } from "vue";
5
5
  //#region src/components/HdSeaCase/HdSeaCase.vue?vue&type=script&setup=true&lang.ts