nxd-plugin 1.7.97 → 1.7.99

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 (123) hide show
  1. package/dist/chunks/{component-AiChat-CMbG8e28.mjs → component-AiChat-B2YoRfzz.mjs} +1 -1
  2. package/dist/chunks/{component-AqiMonitor-CVb99opd.mjs → component-AqiMonitor-DWhSDKFM.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-DbbqXqZE.mjs → component-ChartCumulativePre-CYVahvTN.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-hU5a_G6w.mjs → component-ChartServiceMaterial-CbiB7503.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-BCW6ohuO.mjs → component-Duty-CxH58EY9.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-DSp82HGZ.mjs → component-EarlyWarningStatistic-BsgcJent.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic2-DmHCmtaq.mjs → component-EarlyWarningStatistic2-CEnr2SX2.mjs} +2 -2
  8. package/dist/chunks/component-Forecast72h-6g0PcT0B.mjs +539 -0
  9. package/dist/chunks/{component-GeologyLiveAlarm-0P99V7KX.mjs → component-GeologyLiveAlarm-CzEt43gy.mjs} +2 -2
  10. package/dist/chunks/component-GridForecastMsg-B1CCDv2Y.mjs +203 -0
  11. package/dist/chunks/{component-HDSeaLegend-BSGtGcnh.mjs → component-HDSeaLegend-B2xekirw.mjs} +1 -1
  12. package/dist/chunks/component-HdCameraList-CEOhupnQ.mjs +393 -0
  13. package/dist/chunks/{component-HdForecastProducts-_2ttNo-z.mjs → component-HdForecastProducts-DaeNeMiI.mjs} +2 -2
  14. package/dist/chunks/component-HdHeatChart-DiG-hplN.mjs +372 -0
  15. package/dist/chunks/component-HdHeatChartDialog-C1tPPcVw.mjs +590 -0
  16. package/dist/chunks/component-HdHeatService-UxyMUQp4.mjs +480 -0
  17. package/dist/chunks/component-HdInsectDetailList-BiVgf4Nc.mjs +266 -0
  18. package/dist/chunks/component-HdInsectList-CToVsJiF.mjs +328 -0
  19. package/dist/chunks/{component-HdObservation-DV1mfQsB.mjs → component-HdObservation-BV5jDCZt.mjs} +44 -45
  20. package/dist/chunks/{component-HdPreSituation-DY6gsT_y.mjs → component-HdPreSituation-DY4j43V7.mjs} +6 -6
  21. package/dist/chunks/component-HdQxServiceEffects-DM-KlAru.mjs +262 -0
  22. package/dist/chunks/{component-HdRadarList-BQ1MH8GG.mjs → component-HdRadarList-BdXRt42m.mjs} +3 -3
  23. package/dist/chunks/{component-HdRadarTime-D7ySMzpg.mjs → component-HdRadarTime-OAbsHPlS.mjs} +2 -2
  24. package/dist/chunks/component-HdRisk-tQq0onmA.mjs +236 -0
  25. package/dist/chunks/component-HdSeaCase-DoWAhrNy.mjs +239 -0
  26. package/dist/chunks/{component-HdServiceMarterial-BgIt-ELd.mjs → component-HdServiceMarterial-nCfTCfyI.mjs} +77 -77
  27. package/dist/chunks/{component-HdServiceRequirements-B83V-lQN.mjs → component-HdServiceRequirements-S9zSof01.mjs} +45 -45
  28. package/dist/chunks/component-HdSoil-tr6IWswf.mjs +350 -0
  29. package/dist/chunks/component-HdSoilDetailList-DG-TzCl0.mjs +402 -0
  30. package/dist/chunks/{component-HdStationTem-DdMSzVEC.mjs → component-HdStationTem-DrPBR7fV.mjs} +77 -78
  31. package/dist/chunks/{component-HdSuggestion-CrvAGw81.mjs → component-HdSuggestion-DQO0InyO.mjs} +3 -3
  32. package/dist/chunks/component-HdThreeWeatherTrend-CElSAKJs.mjs +333 -0
  33. package/dist/chunks/component-HdWaveForcast-D3Hm8Dg3.mjs +241 -0
  34. package/dist/chunks/{component-HighQuality-Bsqgp8R-.mjs → component-HighQuality-C_W_iOrU.mjs} +7 -7
  35. package/dist/chunks/{component-HighWayEarlyWarningRed-D0uKUK3B.mjs → component-HighWayEarlyWarningRed-D5iSGN5l.mjs} +2 -2
  36. package/dist/chunks/{component-HighWayFreeze-sGJddgnr.mjs → component-HighWayFreeze-B9v5Z9Yd.mjs} +2 -2
  37. package/dist/chunks/{component-HighwayLiveAlarm-Wm2rCVBb.mjs → component-HighwayLiveAlarm-DjcOZUJv.mjs} +2 -2
  38. package/dist/chunks/{component-HighwayLiveAlarmNew-YjS0FM1d.mjs → component-HighwayLiveAlarmNew-C35RKvL1.mjs} +3 -3
  39. package/dist/chunks/{component-HighwayStations-DRfDmHmK.mjs → component-HighwayStations-U_rU4hJi.mjs} +2 -2
  40. package/dist/chunks/{component-HighwayWeatherForecast-Cp50--Dj.mjs → component-HighwayWeatherForecast-BD547juJ.mjs} +4 -4
  41. package/dist/chunks/{component-IframeWeb-HpaTePnW.mjs → component-IframeWeb-DMn6K9zk.mjs} +1 -1
  42. package/dist/chunks/{component-ImageGeneration-zj2WbvzB.mjs → component-ImageGeneration-BFSnXOdZ.mjs} +2 -2
  43. package/dist/chunks/{component-IntroducePic-BxDMkIyJ.mjs → component-IntroducePic-BmvED_mB.mjs} +2 -2
  44. package/dist/chunks/{component-LithiumBatteryMiningArea-BC05EqiO.mjs → component-LithiumBatteryMiningArea-BM_8uVPy.mjs} +2 -2
  45. package/dist/chunks/{component-MapPopup-DYsV0ICP.mjs → component-MapPopup-CRQjbIZT.mjs} +1 -1
  46. package/dist/chunks/{component-MaterialPreview-DJhj0Gh9.mjs → component-MaterialPreview-Dmg4LG8h.mjs} +2 -2
  47. package/dist/chunks/{component-PieLegend-BsDM9oA_.mjs → component-PieLegend-B90e9FMW.mjs} +1 -1
  48. package/dist/chunks/{component-PrecipitationRanking-B7gEEuCe.mjs → component-PrecipitationRanking-BamBChop.mjs} +9 -9
  49. package/dist/chunks/{component-RadarChart-V_2K97Yw.mjs → component-RadarChart-DrQnSK2_.mjs} +2 -2
  50. package/dist/chunks/{component-RadarLegend-DwjhHZ-N.mjs → component-RadarLegend-UaQXwEdl.mjs} +1 -1
  51. package/dist/chunks/{component-RadarShortTerm-aF13_Zcy.mjs → component-RadarShortTerm-B6DiXwjj.mjs} +4 -4
  52. package/dist/chunks/{component-RadarTime-ZN7o47Mu.mjs → component-RadarTime-CrWj-oVD.mjs} +2 -2
  53. package/dist/chunks/{component-RenderMarkdown-BX-kHqL2.mjs → component-RenderMarkdown-CSoLEsFv.mjs} +2 -2
  54. package/dist/chunks/{component-ReservoirLiveAlarm-WVVwwKYZ.mjs → component-ReservoirLiveAlarm-CJUDC3QW.mjs} +3 -3
  55. package/dist/chunks/{component-ServiceMaterial-9imbipjj.mjs → component-ServiceMaterial-DR7imvMZ.mjs} +2 -2
  56. package/dist/chunks/{component-ServiceMaterialsBtn-693xq1p7.mjs → component-ServiceMaterialsBtn-BWxBKKWn.mjs} +1 -1
  57. package/dist/chunks/{component-StationDialog-C859f8A-.mjs → component-StationDialog-2KObsuJ8.mjs} +4 -4
  58. package/dist/chunks/{component-StationList-BQHnyqox.mjs → component-StationList-CJ7XHlZl.mjs} +10 -14
  59. package/dist/chunks/{component-TimeBasedForecast-DH-OHwXc.mjs → component-TimeBasedForecast-B2ewC_QX.mjs} +4 -4
  60. package/dist/chunks/{component-Typhoon-C6jT8EFX.mjs → component-Typhoon-BQQCoEbU.mjs} +2 -2
  61. package/dist/chunks/{component-WarningLine-D3aVWmUZ.mjs → component-WarningLine-9Y5OJRig.mjs} +2 -2
  62. package/dist/chunks/{component-WarningSignal-CEe242B5.mjs → component-WarningSignal-uXiAUGTl.mjs} +3 -3
  63. package/dist/chunks/{component-WeatherForecast-BfqfB6UO.mjs → component-WeatherForecast-BIeLjzMw.mjs} +4 -4
  64. package/dist/chunks/{component-YCDataMonitor-DROgvkZ-.mjs → component-YCDataMonitor-D8jFTVaA.mjs} +2 -2
  65. package/dist/chunks/{component-YCDataService-BM5kQwax.mjs → component-YCDataService--R26h5UL.mjs} +4 -4
  66. package/dist/chunks/{component-YCHighWaySummary-Bh0IXiDd.mjs → component-YCHighWaySummary-CeYp4g4j.mjs} +2 -2
  67. package/dist/chunks/{component-YCHome-DwYK1Re4.mjs → component-YCHome-DQSDzxCG.mjs} +4 -4
  68. package/dist/chunks/{component-YCHomeLegend-BadxwkzL.mjs → component-YCHomeLegend-DiFftuY3.mjs} +1 -1
  69. package/dist/chunks/{component-YCLoginNew-D5u2lDWS.mjs → component-YCLoginNew-CFJSyKfV.mjs} +3 -3
  70. package/dist/components/Forecast72h/Forecast72h.vue.d.ts +2 -23
  71. package/dist/components/GridForecastMsg/GridForecastMsg.vue.d.ts +24 -0
  72. package/dist/components/HdCameraList/HdCameraList.vue.d.ts +6 -0
  73. package/dist/components/HdHeatChart/HdHeatChart.vue.d.ts +44 -0
  74. package/dist/components/HdHeatChart/mockData.d.ts +12 -0
  75. package/dist/components/HdHeatChartDialog/HdHeatChartDialog.vue.d.ts +52 -0
  76. package/dist/components/HdHeatChartDialog/mockData.d.ts +23 -0
  77. package/dist/components/HdHeatService/HdHeatService.vue.d.ts +8 -20
  78. package/dist/components/HdInsectDetailList/HdInsectDetailList.vue.d.ts +22 -0
  79. package/dist/components/HdInsectList/HdInsectList.vue.d.ts +57 -0
  80. package/dist/components/HdRisk/HdRisk.vue.d.ts +61 -0
  81. package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +4 -24
  82. package/dist/components/HdSoil/HdSoil.vue.d.ts +55 -0
  83. package/dist/components/HdSoilDetailList/HdSoilDetailList.vue.d.ts +30 -0
  84. package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +2 -20
  85. package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +4 -20
  86. package/dist/components/StationList/StationList.vue.d.ts +2 -2
  87. package/dist/index.d.ts +9 -1
  88. package/dist/nxd-plugin.mjs +70 -61
  89. package/dist/styles/component-Forecast72h.css +1 -1
  90. package/dist/styles/component-GridForecastMsg.css +1 -0
  91. package/dist/styles/component-HDSeaLegend.css +1 -1
  92. package/dist/styles/component-HdCameraList.css +1 -1
  93. package/dist/styles/component-HdForecastProducts.css +1 -1
  94. package/dist/styles/component-HdHeatChart.css +1 -0
  95. package/dist/styles/component-HdHeatChartDialog.css +1 -0
  96. package/dist/styles/component-HdHeatService.css +1 -1
  97. package/dist/styles/component-HdInsectDetailList.css +1 -0
  98. package/dist/styles/component-HdInsectList.css +1 -0
  99. package/dist/styles/component-HdObservation.css +1 -1
  100. package/dist/styles/component-HdPreSituation.css +1 -1
  101. package/dist/styles/component-HdQxServiceEffects.css +1 -0
  102. package/dist/styles/component-HdRadarList.css +1 -1
  103. package/dist/styles/component-HdRisk.css +1 -0
  104. package/dist/styles/component-HdSeaCase.css +1 -1
  105. package/dist/styles/component-HdServiceMarterial.css +1 -1
  106. package/dist/styles/component-HdServiceRequirements.css +1 -1
  107. package/dist/styles/component-HdSoil.css +1 -0
  108. package/dist/styles/component-HdSoilDetailList.css +1 -0
  109. package/dist/styles/component-HdStationTem.css +1 -1
  110. package/dist/styles/component-HdSuggestion.css +1 -1
  111. package/dist/styles/component-HdThreeWeatherTrend.css +1 -1
  112. package/dist/styles/component-HdWaveForcast.css +1 -1
  113. package/dist/styles/component-HighQuality.css +1 -1
  114. package/dist/styles/component-PrecipitationRanking.css +1 -1
  115. package/dist/styles/component-StationList.css +1 -1
  116. package/dist/styles/component-YCLoginNew.css +1 -1
  117. package/package.json +1 -1
  118. package/dist/chunks/component-Forecast72h-hi7bHW_J.mjs +0 -543
  119. package/dist/chunks/component-HdCameraList-Cz1OYJEN.mjs +0 -332
  120. package/dist/chunks/component-HdHeatService-BKK-w3Xc.mjs +0 -412
  121. package/dist/chunks/component-HdSeaCase-wnGV704s.mjs +0 -219
  122. package/dist/chunks/component-HdThreeWeatherTrend-Deliswz6.mjs +0 -394
  123. package/dist/chunks/component-HdWaveForcast-CL4Ghg7T.mjs +0 -271
@@ -1,7 +1,7 @@
1
1
  import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
- import { n } from "./component-AqiMonitor-CVb99opd.mjs";
3
- import { r } from "./component-AiChat-CMbG8e28.mjs";
4
- import "./component-Forecast72h-hi7bHW_J.mjs";
2
+ import { n } from "./component-AqiMonitor-DWhSDKFM.mjs";
3
+ import { r } from "./component-AiChat-B2YoRfzz.mjs";
4
+ import "./component-Forecast72h-6g0PcT0B.mjs";
5
5
  import { ElIcon as i, ElLoadingDirective as a, ElOption as o, ElSelect as s } from "element-plus/es";
6
6
  import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createStaticVNode as ee, createVNode as m, defineComponent as h, getCurrentInstance as te, nextTick as ne, normalizeClass as re, normalizeStyle as ie, onBeforeUnmount as ae, onMounted as oe, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as se, withCtx as b, withDirectives as ce } from "vue";
7
7
  import { Download as le } from "@element-plus/icons-vue";
@@ -212,7 +212,8 @@ var S = /* @__PURE__ */ t(((e, t) => {
212
212
  },
213
213
  emits: ["close"],
214
214
  setup(e, { emit: t }) {
215
- let n = te()?.appContext.config.globalProperties.$bus, h = e, S = t, N = [
215
+ te()?.appContext.config.globalProperties.$bus;
216
+ let n = e, h = t, S = [
216
217
  {
217
218
  label: "温度",
218
219
  value: "温度",
@@ -243,7 +244,7 @@ var S = /* @__PURE__ */ t(((e, t) => {
243
244
  unit: "%",
244
245
  color: "#86909c"
245
246
  }
246
- ], De = [
247
+ ], N = [
247
248
  {
248
249
  label: "温度08",
249
250
  value: "温度08",
@@ -304,22 +305,22 @@ var S = /* @__PURE__ */ t(((e, t) => {
304
305
  unit: "%",
305
306
  color: "#86909c"
306
307
  }
307
- ], Oe = [{
308
+ ], De = [{
308
309
  label: "日统计",
309
310
  value: 0
310
311
  }, {
311
312
  label: "实时观测",
312
313
  value: 1
313
- }], ke = {
314
+ }], Oe = {
314
315
  0: "日统计",
315
316
  1: "实时观测"
316
- }, P = _(!1), F = _(1), I = _(N[0].value), L = _({
317
+ }, P = _(!1), F = _(1), I = _(S[0].value), L = _({
317
318
  0: "",
318
319
  1: ""
319
- }), R = _([]), z = _(null), B = _(!1), V = null, H = null, U = l(() => F.value === 1 ? N : De), W = l(() => L.value[F.value]), G = l(() => {
320
+ }), R = _([]), z = _(null), B = _(!1), V = null, H = null, U = l(() => F.value === 1 ? S : N), W = l(() => L.value[F.value]), G = l(() => {
320
321
  let e = U.value;
321
322
  return e.find((e) => e.value === I.value) || e[0];
322
- }), K = l(() => [...R.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).reverse()), Ae = l(() => {
323
+ }), K = l(() => [...R.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).reverse()), ke = l(() => {
323
324
  let e = K.value.length;
324
325
  if (!B.value || e <= M) return 280;
325
326
  let t = e * 36 + 16;
@@ -346,21 +347,21 @@ var S = /* @__PURE__ */ t(((e, t) => {
346
347
  station: t.stationName,
347
348
  value: `${X(t.value)}${G.value.unit}`
348
349
  };
349
- }), je = l(() => {
350
+ }), Ae = l(() => {
350
351
  let e = R.value.filter((e) => !Y(e.value));
351
352
  return e.length ? `${X(e.reduce((e, t) => e + Number(t.value), 0) / e.length)}${G.value.unit}` : "--";
352
353
  }), Y = (e) => e == null || e === "" || e === 9999, X = (e) => {
353
354
  if (Y(e)) return "--";
354
355
  let t = Number(e);
355
356
  return isNaN(t) ? String(e) : t.toFixed(1);
356
- }, Me = () => {
357
- S("close", "HdObservation");
358
- }, Z = (e) => {
357
+ }, je = () => {
358
+ h("close", "HdObservation");
359
+ }, Me = (e) => {
359
360
  F.value = e, B.value = !1;
360
361
  let t = U.value;
361
362
  t.some((e) => e.value === I.value) || (I.value = t[0].value), Q();
362
363
  }, Ne = (e) => {
363
- let t = h.ids[e] || h.ids.data;
364
+ let t = n.ids[e] || n.ids.data;
364
365
  return t?.id ? t : null;
365
366
  }, Pe = (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, Fe = () => {
366
367
  switch (G.value.value) {
@@ -381,8 +382,8 @@ var S = /* @__PURE__ */ t(((e, t) => {
381
382
  case "CLO20": return Number((Math.random() * 100).toFixed(0));
382
383
  default: return 0;
383
384
  }
384
- }, Ie = () => {
385
- let e = h.mockData;
385
+ }, Z = () => {
386
+ let e = n.mockData;
386
387
  R.value = (e.list?.length ? e.list : [
387
388
  { stationName: "临朐寺头" },
388
389
  { stationName: "临朐五井" },
@@ -400,7 +401,7 @@ var S = /* @__PURE__ */ t(((e, t) => {
400
401
  ...e,
401
402
  value: Fe()
402
403
  })), L.value[F.value] = e.dataTime || "";
403
- }, Le = async () => {
404
+ }, Ie = async () => {
404
405
  let e = Ne("data");
405
406
  if (!e) {
406
407
  console.warn("HdObservation 缺少工作流配置");
@@ -409,28 +410,28 @@ var S = /* @__PURE__ */ t(((e, t) => {
409
410
  try {
410
411
  let t = { realTime: F.value };
411
412
  F.value === 1 ? t.elementType = I.value : t.dayElementType = I.value;
412
- let n = await r({
413
+ let i = await r({
413
414
  id: e.id,
414
- baseHttp: h.baseHttp,
415
+ baseHttp: n.baseHttp,
415
416
  reqType: e.reqType,
416
417
  variables: t,
417
418
  isFormData: e.isFormData,
418
- appKey: h.appKey,
419
- appSalt: h.appSalt
420
- }), i = Pe(n);
421
- Array.isArray(i) ? (R.value = i.map((e) => ({
419
+ appKey: n.appKey,
420
+ appSalt: n.appSalt
421
+ }), a = Pe(i);
422
+ Array.isArray(a) ? (R.value = a.map((e) => ({
422
423
  stationName: e.stationName || "",
423
424
  stationCode: e.stationId || e.stationCode || "",
424
425
  value: e.elementValue
425
- })), L.value[F.value] = i[0]?.dateTime || n?.data?.dateTime || n?.dateTime || "") : i && (R.value = Array.isArray(i.list) ? i.list : [], L.value[F.value] = i.dataTime || n?.data?.dateTime || n?.dateTime || "");
426
+ })), L.value[F.value] = a[0]?.dateTime || i?.data?.dateTime || i?.dateTime || "") : a && (R.value = Array.isArray(a.list) ? a.list : [], L.value[F.value] = a.dataTime || i?.data?.dateTime || i?.dateTime || "");
426
427
  } catch (e) {
427
428
  console.error("HdObservation 数据加载失败", e);
428
429
  }
429
430
  }, Q = async () => {
430
- P.value = !0, h.mock ? Ie() : await Le(), P.value = !1, ne(() => {
431
- Re();
431
+ P.value = !0, n.mock ? Z() : await Ie(), P.value = !1, ne(() => {
432
+ Le();
432
433
  });
433
- }, Re = () => {
434
+ }, Le = () => {
434
435
  if (!z.value) return;
435
436
  V && V.dispose(), V = x.init(z.value);
436
437
  let e = G.value, t = K.value, n = t.map((e) => e.stationName), r = t.map((e) => Number(e.value) || 0), i = t.length, a = i > M, o = a && !B.value ? (i - M) / i * 100 : 0, s = {
@@ -541,14 +542,14 @@ var S = /* @__PURE__ */ t(((e, t) => {
541
542
  }]
542
543
  };
543
544
  V.setOption(s);
544
- }, ze = () => {
545
+ }, Re = () => {
545
546
  let e = G.value, t = [...R.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).map((t, n) => ({
546
547
  序号: n + 1,
547
548
  站名: t.stationName,
548
549
  站号: t.stationCode || "--",
549
550
  数值: X(t.value),
550
551
  单位: e.unit,
551
- 类型: ke[F.value],
552
+ 类型: Oe[F.value],
552
553
  要素: e.label
553
554
  }));
554
555
  if (t.length === 0) {
@@ -589,18 +590,16 @@ var S = /* @__PURE__ */ t(((e, t) => {
589
590
  ]
590
591
  }]
591
592
  }).saveExcel();
592
- }, Be = () => {
593
- $(), !(h.refreshInterval <= 0) && (H = setInterval(() => {
593
+ }, ze = () => {
594
+ $(), !(n.refreshInterval <= 0) && (H = setInterval(() => {
594
595
  Q();
595
- }, h.refreshInterval));
596
+ }, n.refreshInterval));
596
597
  }, $ = () => {
597
598
  H &&= (clearInterval(H), null);
598
599
  };
599
600
  return oe(() => {
600
- n?.on("toComponent", (e) => {
601
- e.componentName === "HdObservation" && (Q(), Be(), window.addEventListener("resize", () => {
602
- V?.resize();
603
- }));
601
+ Q(), ze(), window.addEventListener("resize", () => {
602
+ V?.resize();
604
603
  });
605
604
  }), ae(() => {
606
605
  $(), V &&= (V.dispose(), null);
@@ -609,7 +608,7 @@ var S = /* @__PURE__ */ t(((e, t) => {
609
608
  return ce((g(), f("div", fe, [
610
609
  p("button", {
611
610
  class: "HdObservation-close",
612
- onClick: Me
611
+ onClick: je
613
612
  }, [...t[1] ||= [p("span", null, "✕", -1)]]),
614
613
  p("div", pe, [p("div", me, [t[2] ||= p("h3", { class: "HdObservation-title" }, "观测统计", -1), W.value ? (g(), f("span", he, "(数据时间:" + y(W.value) + ")", 1)) : d("", !0)]), t[3] ||= p("img", {
615
614
  style: {
@@ -621,10 +620,10 @@ var S = /* @__PURE__ */ t(((e, t) => {
621
620
  alt: ""
622
621
  }, null, -1)]),
623
622
  p("div", ge, [
624
- p("div", _e, [(g(), f(c, null, v(Oe, (e) => p("button", {
623
+ p("div", _e, [(g(), f(c, null, v(De, (e) => p("button", {
625
624
  key: e.value,
626
625
  class: re(["HdObservation-tab", { "HdObservation-tab--active": F.value === e.value }]),
627
- onClick: (t) => Z(e.value)
626
+ onClick: (t) => Me(e.value)
628
627
  }, y(e.label), 11, ve)), 64))]),
629
628
  p("div", ye, [t[4] ||= p("span", { class: "HdObservation-elementLabel" }, "要素", -1), m(r, {
630
629
  modelValue: I.value,
@@ -673,15 +672,15 @@ var S = /* @__PURE__ */ t(((e, t) => {
673
672
  title: J.value.station
674
673
  }, y(J.value.station), 9, O)
675
674
  ])]),
676
- p("div", k, [t[11] ||= ee("<div class=\"HdObservation-statIcon\" data-v-41d51bee><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" data-v-41d51bee><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\" data-v-41d51bee></line><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\" data-v-41d51bee></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\" data-v-41d51bee></line></svg></div>", 1), p("div", A, [
675
+ p("div", k, [t[11] ||= ee("<div class=\"HdObservation-statIcon\" data-v-5ac2da35><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" data-v-5ac2da35><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\" data-v-5ac2da35></line><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\" data-v-5ac2da35></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\" data-v-5ac2da35></line></svg></div>", 1), p("div", A, [
677
676
  t[9] ||= p("div", { class: "HdObservation-statLabel" }, "平均值", -1),
678
- p("div", j, y(je.value), 1),
677
+ p("div", j, y(Ae.value), 1),
679
678
  t[10] ||= p("div", { class: "HdObservation-statStation" }, "全区平均", -1)
680
679
  ])])
681
680
  ]),
682
681
  p("div", Ce, [p("div", we, [p("div", Te, [p("span", null, y(G.value.label) + "排名", 1), p("span", Ee, "单位:" + y(G.value.unit), 1)]), p("button", {
683
682
  class: "HdObservation-btn",
684
- onClick: ze
683
+ onClick: Re
685
684
  }, [m(l, null, {
686
685
  default: b(() => [m(se(le))]),
687
686
  _: 1
@@ -689,12 +688,12 @@ var S = /* @__PURE__ */ t(((e, t) => {
689
688
  ref_key: "chartRef",
690
689
  ref: z,
691
690
  class: "HdObservation-chart",
692
- style: ie({ height: Ae.value + "px" })
691
+ style: ie({ height: ke.value + "px" })
693
692
  }, null, 4)])
694
693
  ])
695
694
  ])), [[h, P.value]]);
696
695
  };
697
696
  }
698
- }), [["__scopeId", "data-v-41d51bee"]]);
697
+ }), [["__scopeId", "data-v-5ac2da35"]]);
699
698
  //#endregion
700
699
  export { S as n, N as t };
@@ -1,8 +1,8 @@
1
1
  import { i as e } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
- import { n as t } from "./component-AqiMonitor-CVb99opd.mjs";
3
- import { r as n } from "./component-AiChat-CMbG8e28.mjs";
4
- import "./component-Forecast72h-hi7bHW_J.mjs";
5
- import { n as r } from "./component-HdObservation-DV1mfQsB.mjs";
2
+ import { n as t } from "./component-AqiMonitor-DWhSDKFM.mjs";
3
+ import { r as n } from "./component-AiChat-B2YoRfzz.mjs";
4
+ import "./component-Forecast72h-6g0PcT0B.mjs";
5
+ import { n as r } from "./component-HdObservation-BV5jDCZt.mjs";
6
6
  import { ElConfigProvider as i, ElDatePicker as a, ElIcon as ee, ElLoadingDirective as te, ElOption as ne, ElSelect as re, ElTable as ie, ElTableColumn as ae } from "element-plus/es";
7
7
  import { Fragment as o, computed as s, createBlock as oe, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, nextTick as m, normalizeClass as se, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, watch as ce, withCtx as C, withDirectives as le } from "vue";
8
8
  import { Download as ue, TrendCharts as de } from "@element-plus/icons-vue";
@@ -490,7 +490,7 @@ var me = /* @__PURE__ */ e(r()), he = {
490
490
  u("div", ye, [
491
491
  u("div", be, [u("div", xe, [t[5] ||= u("span", { class: "HdPreSituation-timeLabel" }, "开始时间", -1), d(r, { locale: S(pe) }, {
492
492
  default: C(() => [d(n, {
493
- style: { width: "100%" },
493
+ style: { width: "78%" },
494
494
  modelValue: O.value,
495
495
  "onUpdate:modelValue": t[0] ||= (e) => O.value = e,
496
496
  class: "HdPreSituation-timePicker",
@@ -606,6 +606,6 @@ var me = /* @__PURE__ */ e(r()), he = {
606
606
  ])), [[_, E.value]]);
607
607
  };
608
608
  }
609
- }), [["__scopeId", "data-v-275aa1f7"]]);
609
+ }), [["__scopeId", "data-v-b9e4de1a"]]);
610
610
  //#endregion
611
611
  export { T as t };
@@ -0,0 +1,262 @@
1
+ import { n as e } from "./component-AqiMonitor-DWhSDKFM.mjs";
2
+ import { r as t } from "./component-AiChat-B2YoRfzz.mjs";
3
+ import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, getCurrentInstance as c, nextTick as l, normalizeStyle as u, onMounted as d, onUnmounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, watch as _ } from "vue";
4
+ import * as v from "echarts";
5
+ //#region src/components/HdQxServiceEffects/HdQxServiceEffects.vue?vue&type=script&setup=true&lang.ts
6
+ var y = { class: "HdQxServiceEffects" }, b = { class: "HdQxServiceEffect" }, x = { class: "HdQxServiceEffect-header" }, S = { class: "HdQxServiceEffect-title" }, C = {
7
+ key: 0,
8
+ class: "HdQxServiceEffect-summary"
9
+ }, w = { class: "HdQxServiceEffect-summaryLabel" }, T = {
10
+ key: 0,
11
+ class: "HdQxServiceEffect-summaryUnit"
12
+ }, E = { class: "HdQxServiceEffect-chartTitle" }, D = /* @__PURE__ */ e(/* @__PURE__ */ s({
13
+ __name: "HdQxServiceEffects",
14
+ props: {
15
+ mock: {
16
+ type: Boolean,
17
+ default: !0
18
+ },
19
+ baseHttp: { default: "" },
20
+ appKey: { default: "" },
21
+ appSalt: { default: "" },
22
+ ids: { default: () => ({}) },
23
+ title: { default: "" },
24
+ summary: { default: () => [] },
25
+ charts: { default: () => [] },
26
+ mockData: { default: () => ({
27
+ title: "海洋气象服务成效",
28
+ summary: [{
29
+ color: "#F53F3F",
30
+ label: "本年度累计发布大风预警次数:",
31
+ value: 46,
32
+ unit: "次"
33
+ }, {
34
+ color: "#05ddfa",
35
+ label: "本年度累计增加通航时间:",
36
+ value: 150,
37
+ unit: "小时"
38
+ }],
39
+ charts: [{
40
+ type: "bar",
41
+ title: "历年大风预警发布次数",
42
+ data: [
43
+ {
44
+ x: "2020",
45
+ y: 104
46
+ },
47
+ {
48
+ x: "2021",
49
+ y: 133
50
+ },
51
+ {
52
+ x: "2022",
53
+ y: 136
54
+ },
55
+ {
56
+ x: "2023",
57
+ y: 64
58
+ },
59
+ {
60
+ x: "2024",
61
+ y: 46
62
+ }
63
+ ],
64
+ color: "#5B7CF2",
65
+ showLabel: !0
66
+ }, {
67
+ type: "area",
68
+ title: "月度通航时间增加量",
69
+ data: [
70
+ {
71
+ x: "2024",
72
+ y: 394
73
+ },
74
+ {
75
+ x: "2025",
76
+ y: 540
77
+ },
78
+ {
79
+ x: "2026",
80
+ y: 150
81
+ }
82
+ ],
83
+ color: "#5B7CF2",
84
+ showLabel: !0
85
+ }]
86
+ }) }
87
+ },
88
+ emits: ["close"],
89
+ setup(e, { emit: s }) {
90
+ let D = c()?.appContext.config.globalProperties.$bus, O = e, k = s, A = m(""), j = m([]), M = m([]), N = m({}), P = m({}), F = r(() => O.title || A.value), I = r(() => O.summary.length ? O.summary : j.value), L = r(() => O.charts.length ? O.charts : M.value), R = r(() => ({ gridTemplateColumns: `repeat(${L.value.length || 1}, 1fr)` })), z = () => {
91
+ k("close", "HdQxServiceEffects");
92
+ }, B = (e, t) => {
93
+ e && (N.value[t] = e);
94
+ }, V = (e) => {
95
+ let t = e.data.map((e) => e.x), n = e.data.map((e) => e.y), r = e.color || "#5B7CF2", i = {
96
+ data: n,
97
+ itemStyle: { color: r },
98
+ label: {
99
+ show: e.showLabel !== !1,
100
+ position: (e.type, "top"),
101
+ color: "#fff",
102
+ fontSize: 12
103
+ }
104
+ }, a;
105
+ return a = e.type === "bar" ? {
106
+ ...i,
107
+ type: "bar",
108
+ barWidth: e.barWidth || "40%"
109
+ } : e.type === "area" ? {
110
+ ...i,
111
+ type: "line",
112
+ smooth: !0,
113
+ areaStyle: { color: new v.graphic.LinearGradient(0, 0, 0, 1, [{
114
+ offset: 0,
115
+ color: r
116
+ }, {
117
+ offset: 1,
118
+ color: "rgba(91, 124, 242, 0.1)"
119
+ }]) },
120
+ lineStyle: {
121
+ width: 2,
122
+ color: r
123
+ },
124
+ symbol: "circle",
125
+ symbolSize: 6
126
+ } : {
127
+ ...i,
128
+ type: "line",
129
+ smooth: !0,
130
+ lineStyle: {
131
+ width: 2,
132
+ color: r
133
+ },
134
+ symbol: "circle",
135
+ symbolSize: 6
136
+ }, {
137
+ backgroundColor: "transparent",
138
+ grid: {
139
+ top: 32,
140
+ right: 16,
141
+ bottom: 24,
142
+ left: 48
143
+ },
144
+ tooltip: {
145
+ trigger: "axis",
146
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
147
+ borderColor: "rgba(64, 158, 255, 0.4)",
148
+ textStyle: { color: "#fff" },
149
+ formatter: (t) => {
150
+ let n = Array.isArray(t) ? t[0] : t;
151
+ return `${n.name}<br/>${n.value}${e.yAxisName || ""}`;
152
+ }
153
+ },
154
+ xAxis: {
155
+ type: "category",
156
+ data: t,
157
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
158
+ axisLabel: {
159
+ color: "rgba(255,255,255,0.85)",
160
+ fontSize: 12
161
+ },
162
+ axisTick: { show: !1 }
163
+ },
164
+ yAxis: {
165
+ type: "value",
166
+ name: e.yAxisName || "",
167
+ nameTextStyle: {
168
+ color: "rgba(255,255,255,0.7)",
169
+ fontSize: 11
170
+ },
171
+ axisLine: { show: !1 },
172
+ axisLabel: {
173
+ color: "rgba(255,255,255,0.7)",
174
+ fontSize: 11
175
+ },
176
+ splitLine: { show: !1 },
177
+ axisTick: { show: !1 }
178
+ },
179
+ series: [a]
180
+ };
181
+ }, H = () => {
182
+ L.value.forEach((e, t) => {
183
+ let n = N.value[t];
184
+ if (!n) return;
185
+ let r = P.value[t];
186
+ (!r || r.isDisposed()) && (r = v.init(n), P.value[t] = r), r.setOption(V(e), !0);
187
+ });
188
+ }, U = () => {
189
+ Object.values(P.value).forEach((e) => {
190
+ e && !e.isDisposed() && e.dispose();
191
+ }), P.value = {};
192
+ }, W = (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, G = () => {
193
+ let e = O.mockData || {};
194
+ A.value = e.title || "", j.value = e.summary || [], M.value = e.charts || [];
195
+ }, K = async () => {
196
+ let e = O.ids.data;
197
+ if (!e?.id) {
198
+ console.warn("HdQxServiceEffects 缺少数据工作流配置");
199
+ return;
200
+ }
201
+ try {
202
+ let n = W(await t({
203
+ id: e.id,
204
+ baseHttp: O.baseHttp,
205
+ reqType: e.reqType,
206
+ variables: {},
207
+ isFormData: e.isFormData,
208
+ appKey: O.appKey,
209
+ appSalt: O.appSalt
210
+ }));
211
+ n && (A.value = n.title || "", j.value = n.summary || [], M.value = n.charts || []);
212
+ } catch (e) {
213
+ console.error("HdQxServiceEffects 数据加载失败", e);
214
+ }
215
+ }, q = async () => {
216
+ O.mock ? G() : await K(), await l(), H();
217
+ };
218
+ return _(L, async () => {
219
+ await l(), H();
220
+ }, { deep: !0 }), d(() => {
221
+ D?.on("toComponent", (e) => {
222
+ e.componentName === "HdQxServiceEffects" && q();
223
+ }), q(), window.addEventListener("resize", H);
224
+ }), f(() => {
225
+ U(), window.removeEventListener("resize", H);
226
+ }), (e, t) => (p(), a("div", y, [o("div", b, [
227
+ o("button", {
228
+ class: "HdQxServiceEffect-close",
229
+ onClick: z
230
+ }, [...t[0] ||= [o("span", null, "✕", -1)]]),
231
+ o("div", x, [o("div", S, g(F.value), 1)]),
232
+ I.value.length ? (p(), a("div", C, [(p(!0), a(n, null, h(I.value, (e, t) => (p(), a("div", {
233
+ key: t,
234
+ class: "HdQxServiceEffect-summaryItem"
235
+ }, [
236
+ o("span", {
237
+ class: "HdQxServiceEffect-summaryDot",
238
+ style: u({ background: e.color })
239
+ }, null, 4),
240
+ o("span", w, g(e.label), 1),
241
+ o("span", {
242
+ class: "HdQxServiceEffect-summaryValue",
243
+ style: u({ color: e.color })
244
+ }, g(e.value), 5),
245
+ e.unit ? (p(), a("span", T, g(e.unit), 1)) : i("", !0)
246
+ ]))), 128))])) : i("", !0),
247
+ o("div", {
248
+ class: "HdQxServiceEffect-charts",
249
+ style: u(R.value)
250
+ }, [(p(!0), a(n, null, h(L.value, (e, t) => (p(), a("div", {
251
+ key: t,
252
+ class: "HdQxServiceEffect-chartWrap"
253
+ }, [o("div", {
254
+ ref_for: !0,
255
+ ref: (e) => B(e, t),
256
+ class: "HdQxServiceEffect-chart"
257
+ }, null, 512), o("div", E, g(e.title), 1)]))), 128))], 4)
258
+ ])]));
259
+ }
260
+ }), [["__scopeId", "data-v-6bed756d"]]);
261
+ //#endregion
262
+ export { D as t };
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-CVb99opd.mjs";
2
- import "./component-Forecast72h-hi7bHW_J.mjs";
1
+ import { n as e } from "./component-AqiMonitor-DWhSDKFM.mjs";
2
+ import "./component-Forecast72h-6g0PcT0B.mjs";
3
3
  import { ElIcon as t } from "element-plus/es";
4
4
  import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, getCurrentInstance as c, normalizeClass as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, watch as g, withCtx as _ } from "vue";
5
5
  import { EditPen as v } from "@element-plus/icons-vue";
@@ -108,7 +108,7 @@ var x = { class: "HdRadarList" }, S = { class: "HdRadarList-header" }, C = { cla
108
108
  return;
109
109
  }
110
110
  try {
111
- let { default: t } = await import("./component-AiChat-CMbG8e28.mjs").then((e) => e.a), n = B(await t({
111
+ let { default: t } = await import("./component-AiChat-B2YoRfzz.mjs").then((e) => e.a), n = B(await t({
112
112
  id: e.id,
113
113
  baseHttp: A.baseHttp,
114
114
  reqType: e.reqType,
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-CVb99opd.mjs";
2
- import { r as t } from "./component-AiChat-CMbG8e28.mjs";
1
+ import { n as e } from "./component-AqiMonitor-DWhSDKFM.mjs";
2
+ import { r as t } from "./component-AiChat-B2YoRfzz.mjs";
3
3
  import { ElCheckbox as n, ElConfigProvider as r, ElDatePicker as i, ElLoadingDirective as a, ElOption as o, ElSelect as s } from "element-plus/es";
4
4
  import { Fragment as c, computed as l, createBlock as ee, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as te, createVNode as p, defineComponent as m, getCurrentInstance as h, nextTick as ne, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as re, vShow as ie, watch as w, withCtx as T, withDirectives as E, withModifiers as ae } from "vue";
5
5
  import oe from "element-plus/es/locale/lang/zh-cn.mjs";