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,4 +1,4 @@
1
- import { i as e } from "./component-AiChat-C1xBPkS5.mjs";
1
+ import { i as e } from "./component-AiChat-BXNBLM1G.mjs";
2
2
  import { ElLoadingDirective as t } from "element-plus/es";
3
3
  import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createStaticVNode as o, defineComponent as s, getCurrentInstance as c, onMounted as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, vModelRadio as m, withDirectives as h } from "vue";
4
4
  //#region src/assets/img/head.png
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
2
- import { i as t } from "./component-AiChat-C1xBPkS5.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
3
  import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
4
4
  import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, withCtx as v, withDirectives as y } from "vue";
5
5
  import * as b from "echarts";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
2
- import { i as t } from "./component-AiChat-C1xBPkS5.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
3
  import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
4
4
  import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as _, withDirectives as v } from "vue";
5
5
  import * as y from "echarts";
@@ -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 { createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createTextVNode as o, defineComponent as s, onBeforeUnmount as c, onMounted as l, openBlock as u, ref as d, toDisplayString as f } from "vue";
4
4
  //#region src/components/Duty/Duty.vue?vue&type=script&setup=true&lang.ts
5
5
  var p = { class: "Duty" }, m = { class: "duty-section" }, h = {
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
2
- import { i as t } from "./component-AiChat-C1xBPkS5.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
3
  import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
4
4
  import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as _, withDirectives as v } from "vue";
5
5
  import * as y from "echarts";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
2
- import { i as t } from "./component-AiChat-C1xBPkS5.mjs";
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
3
  import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
4
4
  import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createStaticVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, nextTick as m, normalizeClass as h, onBeforeUnmount as ee, onMounted as te, openBlock as g, ref as _, renderList as v, toDisplayString as y, withCtx as b, withDirectives as x } from "vue";
5
5
  import * as S from "echarts";
@@ -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 { ElIcon as n, ElLoadingDirective as r, ElRadio as i, ElRadioGroup as a } from "element-plus/es";
4
4
  import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as ee, onBeforeUnmount as g, onMounted as te, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, withCtx as C, withDirectives as w } from "vue";
5
5
  import { ArrowRight as T } from "@element-plus/icons-vue";
@@ -0,0 +1,211 @@
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
+ import { ElIcon as n } from "element-plus/es";
4
+ import { Fragment as r, Teleport as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as ee, normalizeClass as d, onMounted as f, onUnmounted as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, vModelText as y, watch as b, withCtx as x, withDirectives as S } from "vue";
5
+ import { ArrowLeft as C, ArrowRight as te, VideoPause as ne, VideoPlay as re } from "@element-plus/icons-vue";
6
+ //#region src/components/HdForecastProducts/HdForecastProducts.vue?vue&type=script&setup=true&lang.ts
7
+ var ie = { class: "HdForecastProducts" }, ae = { class: "HdForecastProducts-popup" }, oe = { class: "HdForecastProducts-header" }, w = { class: "HdForecastProducts-title" }, T = { class: "HdForecastProducts-toolbar" }, E = { class: "HdForecastProducts-speed" }, D = { class: "HdForecastProducts-speedValue" }, O = { class: "HdForecastProducts-main" }, k = { class: "HdForecastProducts-viewer" }, A = ["src"], j = {
8
+ key: 1,
9
+ class: "HdForecastProducts-noImage"
10
+ }, M = { class: "HdForecastProducts-side" }, N = { class: "HdForecastProducts-list" }, P = ["onClick"], F = { class: "HdForecastProducts-itemHour" }, I = /* @__PURE__ */ e(/* @__PURE__ */ u({
11
+ __name: "HdForecastProducts",
12
+ props: {
13
+ mock: {
14
+ type: Boolean,
15
+ default: !0
16
+ },
17
+ showClose: {
18
+ type: Boolean,
19
+ default: !0
20
+ },
21
+ baseHttp: { default: "" },
22
+ appKey: { default: "" },
23
+ appSalt: { default: "" },
24
+ ids: { default: () => ({}) },
25
+ title: { default: "" },
26
+ dataTime: { default: "" },
27
+ list: { default: () => [] },
28
+ mockData: { default: () => ({
29
+ title: "海面阵风预报",
30
+ dataTime: "2026-02-13 24时",
31
+ list: [
32
+ {
33
+ image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A1.jpg",
34
+ time: "02月13日23时",
35
+ hour: "003"
36
+ },
37
+ {
38
+ image: "http://i.weather.com.cn/images/cn/news/2026/08/03/8570DEEB094333EEB54F6B7F2096028A.jpg",
39
+ time: "02月14日02时",
40
+ hour: "006"
41
+ },
42
+ {
43
+ image: "http://i.weather.com.cn/images/cn/news/2026/08/03/8570DEEB094333EEB54F6B7F2096028A.jpg",
44
+ time: "02月14日05时",
45
+ hour: "009"
46
+ },
47
+ {
48
+ image: "http://i.weather.com.cn/images/cn/news/2026/08/03/8570DEEB094333EEB54F6B7F2096028A.jpg",
49
+ time: "02月14日08时",
50
+ hour: "012"
51
+ },
52
+ {
53
+ image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A1.jpg",
54
+ time: "02月14日11时",
55
+ hour: "015"
56
+ },
57
+ {
58
+ image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A2.jpg",
59
+ time: "02月14日14时",
60
+ hour: "018"
61
+ },
62
+ {
63
+ image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A1.jpg",
64
+ time: "02月14日17时",
65
+ hour: "021"
66
+ }
67
+ ]
68
+ }) }
69
+ },
70
+ emits: ["close", "change"],
71
+ setup(e, { emit: u }) {
72
+ let I = ee()?.appContext.config.globalProperties.$bus, L = e, R = u, z = h(0), B = h(!1), V = h(1), H = h(null), U = h({
73
+ title: "",
74
+ dataTime: "",
75
+ list: []
76
+ }), W = a(() => {
77
+ let e = L.title || U.value.title || "海面阵风预报", t = L.dataTime || U.value.dataTime;
78
+ return t ? `${e}(${t})` : e;
79
+ }), G = a(() => L.list.length ? L.list : U.value.list), K = a(() => G.value[z.value] || {
80
+ image: "",
81
+ time: "",
82
+ hour: ""
83
+ }), q = () => {
84
+ H.value &&= (clearTimeout(H.value), null);
85
+ }, J = () => {
86
+ q(), !(!B.value || G.value.length <= 1) && (H.value = setTimeout(() => {
87
+ X(!0), J();
88
+ }, V.value * 1e3));
89
+ }, se = () => {
90
+ B.value = !B.value, B.value ? J() : q();
91
+ }, Y = () => {
92
+ B.value = !1, q();
93
+ }, ce = () => {
94
+ Y(), G.value.length !== 0 && (z.value = z.value > 0 ? z.value - 1 : G.value.length - 1, Q());
95
+ }, X = (e = !1) => {
96
+ e || Y(), G.value.length !== 0 && (z.value < G.value.length - 1 ? z.value++ : z.value = 0, Q());
97
+ }, Z = (e) => {
98
+ Y(), z.value = e, Q();
99
+ }, Q = () => {
100
+ R("change", z.value, K.value);
101
+ }, le = () => {
102
+ Y(), R("close", "HdForecastProducts");
103
+ }, ue = (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, de = () => {
104
+ let e = L.mockData || {};
105
+ U.value = {
106
+ title: e.title || "",
107
+ dataTime: e.dataTime || "",
108
+ list: e.list || []
109
+ };
110
+ }, fe = async () => {
111
+ let e = L.ids.data;
112
+ if (!e?.id) {
113
+ console.warn("HdForecastProducts 缺少数据工作流配置");
114
+ return;
115
+ }
116
+ try {
117
+ let n = ue(await t({
118
+ id: e.id,
119
+ baseHttp: L.baseHttp,
120
+ reqType: e.reqType,
121
+ variables: {},
122
+ isFormData: e.isFormData,
123
+ appKey: L.appKey,
124
+ appSalt: L.appSalt
125
+ }));
126
+ n && (U.value = {
127
+ title: n.title || "",
128
+ dataTime: n.dataTime || "",
129
+ list: n.list || []
130
+ });
131
+ } catch (e) {
132
+ console.error("HdForecastProducts 数据加载失败", e);
133
+ }
134
+ }, $ = async () => {
135
+ L.mock ? de() : await fe(), z.value = 0;
136
+ };
137
+ return b(V, () => {
138
+ B.value && J();
139
+ }), f(() => {
140
+ I?.on("toComponent", (e) => {
141
+ e.componentName === "HdForecastProducts" && $();
142
+ }), $();
143
+ }), p(() => {
144
+ q();
145
+ }), (e, t) => {
146
+ let a = n;
147
+ return m(), o(i, { to: "body" }, [c("div", ie, [c("div", ae, [
148
+ c("button", {
149
+ class: "HdForecastProducts-close",
150
+ onClick: le
151
+ }, [...t[2] ||= [c("span", null, "✕", -1)]]),
152
+ c("div", oe, [c("h3", w, _(W.value), 1)]),
153
+ c("div", T, [
154
+ c("button", {
155
+ class: "HdForecastProducts-toolBtn",
156
+ title: "上一张",
157
+ onClick: ce
158
+ }, [l(a, null, {
159
+ default: x(() => [l(v(C))]),
160
+ _: 1
161
+ })]),
162
+ c("button", {
163
+ class: "HdForecastProducts-toolBtn",
164
+ title: "播放/暂停",
165
+ onClick: se
166
+ }, [l(a, null, {
167
+ default: x(() => [B.value ? (m(), o(v(ne), { key: 1 })) : (m(), o(v(re), { key: 0 }))]),
168
+ _: 1
169
+ })]),
170
+ c("button", {
171
+ class: "HdForecastProducts-toolBtn",
172
+ title: "下一张",
173
+ onClick: t[0] ||= (e) => X()
174
+ }, [l(a, null, {
175
+ default: x(() => [l(v(te))]),
176
+ _: 1
177
+ })]),
178
+ c("div", E, [
179
+ t[3] ||= c("span", { class: "HdForecastProducts-speedLabel" }, "播放速度", -1),
180
+ S(c("input", {
181
+ "onUpdate:modelValue": t[1] ||= (e) => V.value = e,
182
+ class: "HdForecastProducts-speedSlider",
183
+ type: "range",
184
+ min: "0.5",
185
+ max: "4",
186
+ step: "0.5"
187
+ }, null, 512), [[
188
+ y,
189
+ V.value,
190
+ void 0,
191
+ { number: !0 }
192
+ ]]),
193
+ c("span", D, "(" + _(V.value) + "S)", 1)
194
+ ])
195
+ ]),
196
+ c("div", O, [c("div", k, [K.value.image ? (m(), s("img", {
197
+ key: 0,
198
+ class: "HdForecastProducts-image",
199
+ src: K.value.image,
200
+ alt: ""
201
+ }, null, 8, A)) : (m(), s("div", j, "暂无图片"))]), c("div", M, [t[4] ||= c("div", { class: "HdForecastProducts-sideTitle" }, "时次选择", -1), c("div", N, [(m(!0), s(r, null, g(G.value, (e, t) => (m(), s("div", {
202
+ key: t,
203
+ class: d(["HdForecastProducts-item", { "HdForecastProducts-item--active": t === z.value }]),
204
+ onClick: (e) => Z(t)
205
+ }, [c("span", F, _(e.hour), 1)], 10, P))), 128))])])])
206
+ ])])]);
207
+ };
208
+ }
209
+ }), [["__scopeId", "data-v-7dfa3bb3"]]);
210
+ //#endregion
211
+ export { I 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 { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, getCurrentInstance as u, nextTick as d, normalizeStyle as f, onMounted as p, onUnmounted as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, watch as y } from "vue";
4
4
  import * as b from "echarts";
5
5
  //#region src/components/HdQxServiceEffects/HdQxServiceEffects.vue?vue&type=script&setup=true&lang.ts
@@ -1,11 +1,13 @@
1
1
  import { r as e, t } from "./rolldown-runtime-Cz5NsrRf.mjs";
2
- import { n } from "./component-AqiMonitor-DoAVs1Jf.mjs";
3
- import { i as r } from "./component-AiChat-C1xBPkS5.mjs";
4
- import "./component-Forecast72h-BZ1kB2TJ.mjs";
2
+ import { n } from "./component-AqiMonitor-C_V1Nuf_.mjs";
3
+ import { i as r } from "./component-AiChat-BXNBLM1G.mjs";
4
+ import "./component-Forecast72h-BkVZSGhE.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, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createStaticVNode as ee, createVNode as p, defineComponent as m, getCurrentInstance as te, nextTick as ne, normalizeClass as re, onBeforeUnmount as ie, onMounted as ae, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as oe, withCtx as y, withDirectives as se } from "vue";
7
7
  import { Download as ce } from "@element-plus/icons-vue";
8
8
  import * as b from "echarts";
9
+ import { ElMessage as le } from "element-plus";
10
+ import "element-plus/dist/index.css";
9
11
  //#region node_modules/js-export-excel/lib/index.js
10
12
  var x = /* @__PURE__ */ t(((e, t) => {
11
13
  (function(n, r) {
@@ -167,13 +169,13 @@ var x = /* @__PURE__ */ t(((e, t) => {
167
169
  }
168
170
  ]);
169
171
  });
170
- })), le = /* @__PURE__ */ e(x()), ue = {
172
+ })), ue = /* @__PURE__ */ e(x()), de = {
171
173
  class: "HdObservation",
172
174
  "element-loading-background": "rgba(0, 0, 0, 0.5)"
173
- }, de = { class: "HdObservation-header" }, fe = { class: "HdObservation-headerContent" }, pe = {
175
+ }, fe = { class: "HdObservation-header" }, pe = { class: "HdObservation-headerContent" }, me = {
174
176
  key: 0,
175
177
  class: "HdObservation-dataTime"
176
- }, me = { class: "HdObservation-body" }, he = { class: "HdObservation-tabs" }, ge = ["onClick"], _e = { class: "HdObservation-elementBar" }, ve = { class: "HdObservation-stats" }, ye = { class: "HdObservation-statCard HdObservation-statCard--max" }, S = { class: "HdObservation-statInfo" }, C = { class: "HdObservation-statValue" }, w = ["title"], T = { class: "HdObservation-statCard HdObservation-statCard--min" }, E = { class: "HdObservation-statInfo" }, D = { class: "HdObservation-statValue" }, O = ["title"], k = { class: "HdObservation-statCard HdObservation-statCard--avg" }, A = { class: "HdObservation-statInfo" }, j = { class: "HdObservation-statValue" }, M = { class: "HdObservation-chartSection" }, N = { class: "HdObservation-chartHeader" }, P = { class: "HdObservation-chartTitle" }, be = { class: "HdObservation-chartUnit" }, F = /* @__PURE__ */ n(/* @__PURE__ */ m({
178
+ }, he = { class: "HdObservation-body" }, ge = { class: "HdObservation-tabs" }, _e = ["onClick"], ve = { class: "HdObservation-elementBar" }, ye = { class: "HdObservation-stats" }, S = { class: "HdObservation-statCard HdObservation-statCard--max" }, C = { class: "HdObservation-statInfo" }, w = { class: "HdObservation-statValue" }, T = ["title"], E = { class: "HdObservation-statCard HdObservation-statCard--min" }, D = { class: "HdObservation-statInfo" }, O = { class: "HdObservation-statValue" }, k = ["title"], A = { class: "HdObservation-statCard HdObservation-statCard--avg" }, j = { class: "HdObservation-statInfo" }, M = { class: "HdObservation-statValue" }, N = { class: "HdObservation-chartSection" }, P = { class: "HdObservation-chartHeader" }, be = { class: "HdObservation-chartTitle" }, xe = { class: "HdObservation-chartUnit" }, F = /* @__PURE__ */ n(/* @__PURE__ */ m({
177
179
  __name: "HdObservation",
178
180
  props: {
179
181
  mock: {
@@ -282,7 +284,7 @@ var x = /* @__PURE__ */ t(((e, t) => {
282
284
  }], L = g(!1), R = g("realtime"), z = g("precipitation"), B = g({
283
285
  realtime: "",
284
286
  daily: ""
285
- }), V = g([]), H = g(null), U = null, W = null, G = l(() => B.value[R.value]), K = l(() => F.find((e) => e.value === z.value) || F[0]), xe = l(() => [...V.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).slice(0, 15).reverse()), q = l(() => {
287
+ }), V = g([]), H = g(null), U = null, W = null, G = l(() => B.value[R.value]), K = l(() => F.find((e) => e.value === z.value) || F[0]), Se = l(() => [...V.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).slice(0, 15).reverse()), q = l(() => {
286
288
  let e = [...V.value].filter((e) => !Y(e.value));
287
289
  if (!e.length) return {
288
290
  station: "--",
@@ -304,21 +306,21 @@ var x = /* @__PURE__ */ t(((e, t) => {
304
306
  station: t.stationName,
305
307
  value: `${X(t.value)}${K.value.unit}`
306
308
  };
307
- }), Se = l(() => {
309
+ }), Ce = l(() => {
308
310
  let e = V.value.filter((e) => !Y(e.value));
309
311
  return e.length ? `${X(e.reduce((e, t) => e + Number(t.value), 0) / e.length)}${K.value.unit}` : "--";
310
312
  }), Y = (e) => e == null || e === "" || e === 9999, X = (e) => {
311
313
  if (Y(e)) return "--";
312
314
  let t = Number(e);
313
315
  return isNaN(t) ? String(e) : t.toFixed(1);
314
- }, Ce = () => {
316
+ }, Z = () => {
315
317
  x("close", "HdObservation");
316
318
  }, we = (e) => {
317
319
  R.value = e, Q();
318
320
  }, Te = (e) => {
319
321
  let t = m.ids[e] || m.ids.data;
320
322
  return t?.id ? t : null;
321
- }, Z = (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, Ee = () => {
323
+ }, Ee = (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, De = () => {
322
324
  switch (K.value.value) {
323
325
  case "precipitation": return Number((Math.random() * 20).toFixed(1));
324
326
  case "temperature": return Number((15 + Math.random() * 20).toFixed(1));
@@ -327,7 +329,7 @@ var x = /* @__PURE__ */ t(((e, t) => {
327
329
  case "cloudCover": return Number((Math.random() * 100).toFixed(0));
328
330
  default: return 0;
329
331
  }
330
- }, De = () => {
332
+ }, Oe = () => {
331
333
  let e = m.mockData;
332
334
  V.value = (e.list?.length ? e.list : [
333
335
  { stationName: "临朐寺头" },
@@ -344,16 +346,16 @@ var x = /* @__PURE__ */ t(((e, t) => {
344
346
  { stationName: "大场" }
345
347
  ]).map((e) => ({
346
348
  ...e,
347
- value: Ee()
349
+ value: De()
348
350
  })), B.value[R.value] = e.dataTime || "";
349
- }, Oe = async () => {
351
+ }, ke = async () => {
350
352
  let e = Te("data");
351
353
  if (!e) {
352
354
  console.warn("HdObservation 缺少工作流配置");
353
355
  return;
354
356
  }
355
357
  try {
356
- let t = Z(await r({
358
+ let t = Ee(await r({
357
359
  id: e.id,
358
360
  baseHttp: m.baseHttp,
359
361
  reqType: e.reqType,
@@ -370,13 +372,13 @@ var x = /* @__PURE__ */ t(((e, t) => {
370
372
  console.error("HdObservation 数据加载失败", e);
371
373
  }
372
374
  }, Q = async () => {
373
- L.value = !0, m.mock ? De() : await Oe(), L.value = !1, ne(() => {
374
- ke();
375
+ L.value = !0, m.mock ? Oe() : await ke(), L.value = !1, ne(() => {
376
+ Ae();
375
377
  });
376
- }, ke = () => {
378
+ }, Ae = () => {
377
379
  if (!H.value) return;
378
380
  U && U.dispose(), U = b.init(H.value);
379
- let e = K.value, t = xe.value, n = t.map((e) => e.stationName), r = t.map((e) => Number(e.value) || 0), i = {
381
+ let e = K.value, t = Se.value, n = t.map((e) => e.stationName), r = t.map((e) => Number(e.value) || 0), i = {
380
382
  backgroundColor: "transparent",
381
383
  grid: {
382
384
  top: 8,
@@ -446,7 +448,7 @@ var x = /* @__PURE__ */ t(((e, t) => {
446
448
  }]
447
449
  };
448
450
  U.setOption(i);
449
- }, Ae = () => {
451
+ }, je = () => {
450
452
  let e = K.value, t = [...V.value].filter((e) => !Y(e.value)).sort((e, t) => Number(t.value) - Number(e.value)).map((t, n) => ({
451
453
  序号: n + 1,
452
454
  站名: t.stationName,
@@ -456,7 +458,11 @@ var x = /* @__PURE__ */ t(((e, t) => {
456
458
  类型: I.find((e) => e.value === R.value)?.label || R.value,
457
459
  要素: e.label
458
460
  }));
459
- new le.default({
461
+ if (t.length === 0) {
462
+ le.warning("暂无数据");
463
+ return;
464
+ }
465
+ new ue.default({
460
466
  fileName: `观测统计_${e.label}_${R.value}_${(/* @__PURE__ */ new Date()).getTime()}`,
461
467
  datas: [{
462
468
  sheetData: t,
@@ -490,7 +496,7 @@ var x = /* @__PURE__ */ t(((e, t) => {
490
496
  ]
491
497
  }]
492
498
  }).saveExcel();
493
- }, je = () => {
499
+ }, Me = () => {
494
500
  $(), !(m.refreshInterval <= 0) && (W = setInterval(() => {
495
501
  Q();
496
502
  }, m.refreshInterval));
@@ -500,19 +506,19 @@ var x = /* @__PURE__ */ t(((e, t) => {
500
506
  return ae(() => {
501
507
  n?.on("toComponent", (e) => {
502
508
  e.componentName === "HdObservation" && Q();
503
- }), Q(), je(), window.addEventListener("resize", () => {
509
+ }), Q(), Me(), window.addEventListener("resize", () => {
504
510
  U?.resize();
505
511
  });
506
512
  }), ie(() => {
507
513
  $(), U &&= (U.dispose(), null);
508
514
  }), (e, t) => {
509
515
  let n = o, r = s, l = i, m = a;
510
- return se((h(), d("div", ue, [
516
+ return se((h(), d("div", de, [
511
517
  f("button", {
512
518
  class: "HdObservation-close",
513
- onClick: Ce
519
+ onClick: Z
514
520
  }, [...t[1] ||= [f("span", null, "✕", -1)]]),
515
- f("div", de, [f("div", fe, [t[2] ||= f("h3", { class: "HdObservation-title" }, "观测统计", -1), G.value ? (h(), d("span", pe, "(数据时间:" + v(G.value) + ")", 1)) : u("", !0)]), t[3] ||= f("img", {
521
+ f("div", fe, [f("div", pe, [t[2] ||= f("h3", { class: "HdObservation-title" }, "观测统计", -1), G.value ? (h(), d("span", me, "(数据时间:" + v(G.value) + ")", 1)) : u("", !0)]), t[3] ||= f("img", {
516
522
  style: {
517
523
  width: "100%",
518
524
  "object-fit": "contain",
@@ -521,13 +527,13 @@ var x = /* @__PURE__ */ t(((e, t) => {
521
527
  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",
522
528
  alt: ""
523
529
  }, null, -1)]),
524
- f("div", me, [
525
- f("div", he, [(h(), d(c, null, _(I, (e) => f("button", {
530
+ f("div", he, [
531
+ f("div", ge, [(h(), d(c, null, _(I, (e) => f("button", {
526
532
  key: e.value,
527
533
  class: re(["HdObservation-tab", { "HdObservation-tab--active": R.value === e.value }]),
528
534
  onClick: (t) => we(e.value)
529
- }, v(e.label), 11, ge)), 64))]),
530
- f("div", _e, [t[4] ||= f("span", { class: "HdObservation-elementLabel" }, "要素", -1), p(r, {
535
+ }, v(e.label), 11, _e)), 64))]),
536
+ f("div", ve, [t[4] ||= f("span", { class: "HdObservation-elementLabel" }, "要素", -1), p(r, {
531
537
  modelValue: z.value,
532
538
  "onUpdate:modelValue": t[0] ||= (e) => z.value = e,
533
539
  class: "HdObservation-elementSelect",
@@ -543,46 +549,46 @@ var x = /* @__PURE__ */ t(((e, t) => {
543
549
  }, null, 8, ["label", "value"])), 64))]),
544
550
  _: 1
545
551
  }, 8, ["modelValue"])]),
546
- f("div", ve, [
547
- f("div", ye, [t[6] ||= f("div", { class: "HdObservation-statIcon" }, [f("svg", {
552
+ f("div", ye, [
553
+ f("div", S, [t[6] ||= f("div", { class: "HdObservation-statIcon" }, [f("svg", {
548
554
  viewBox: "0 0 24 24",
549
- width: "20",
550
- height: "20",
555
+ width: "18",
556
+ height: "18",
551
557
  fill: "none",
552
558
  stroke: "currentColor",
553
559
  "stroke-width": "2"
554
- }, [f("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }), f("polyline", { points: "17 6 23 6 23 12" })])], -1), f("div", S, [
560
+ }, [f("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }), f("polyline", { points: "17 6 23 6 23 12" })])], -1), f("div", C, [
555
561
  t[5] ||= f("div", { class: "HdObservation-statLabel" }, "最高值", -1),
556
- f("div", C, v(q.value.value), 1),
562
+ f("div", w, v(q.value.value), 1),
557
563
  f("div", {
558
564
  class: "HdObservation-statStation",
559
565
  title: q.value.station
560
- }, v(q.value.station), 9, w)
566
+ }, v(q.value.station), 9, T)
561
567
  ])]),
562
- f("div", T, [t[8] ||= f("div", { class: "HdObservation-statIcon" }, [f("svg", {
568
+ f("div", E, [t[8] ||= f("div", { class: "HdObservation-statIcon" }, [f("svg", {
563
569
  viewBox: "0 0 24 24",
564
570
  width: "20",
565
571
  height: "20",
566
572
  fill: "none",
567
573
  stroke: "currentColor",
568
574
  "stroke-width": "2"
569
- }, [f("polyline", { points: "23 18 13.5 8.5 8.5 13.5 1 6" }), f("polyline", { points: "17 18 23 18 23 12" })])], -1), f("div", E, [
575
+ }, [f("polyline", { points: "23 18 13.5 8.5 8.5 13.5 1 6" }), f("polyline", { points: "17 18 23 18 23 12" })])], -1), f("div", D, [
570
576
  t[7] ||= f("div", { class: "HdObservation-statLabel" }, "最低值", -1),
571
- f("div", D, v(J.value.value), 1),
577
+ f("div", O, v(J.value.value), 1),
572
578
  f("div", {
573
579
  class: "HdObservation-statStation",
574
580
  title: J.value.station
575
- }, v(J.value.station), 9, O)
581
+ }, v(J.value.station), 9, k)
576
582
  ])]),
577
- f("div", k, [t[11] ||= ee("<div class=\"HdObservation-statIcon\" data-v-54f848db><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" data-v-54f848db><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\" data-v-54f848db></line><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\" data-v-54f848db></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\" data-v-54f848db></line></svg></div>", 1), f("div", A, [
583
+ f("div", A, [t[11] ||= ee("<div class=\"HdObservation-statIcon\" data-v-74ee0885><svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" data-v-74ee0885><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\" data-v-74ee0885></line><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\" data-v-74ee0885></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\" data-v-74ee0885></line></svg></div>", 1), f("div", j, [
578
584
  t[9] ||= f("div", { class: "HdObservation-statLabel" }, "平均值", -1),
579
- f("div", j, v(Se.value), 1),
585
+ f("div", M, v(Ce.value), 1),
580
586
  t[10] ||= f("div", { class: "HdObservation-statStation" }, "全区平均", -1)
581
587
  ])])
582
588
  ]),
583
- f("div", M, [f("div", N, [f("div", P, [f("span", null, v(K.value.label) + "排名", 1), f("span", be, "单位:" + v(K.value.unit), 1)]), f("button", {
589
+ f("div", N, [f("div", P, [f("div", be, [f("span", null, v(K.value.label) + "排名", 1), f("span", xe, "单位:" + v(K.value.unit), 1)]), f("button", {
584
590
  class: "HdObservation-btn",
585
- onClick: Ae
591
+ onClick: je
586
592
  }, [p(l, null, {
587
593
  default: y(() => [p(oe(ce))]),
588
594
  _: 1
@@ -595,6 +601,6 @@ var x = /* @__PURE__ */ t(((e, t) => {
595
601
  ])), [[m, L.value]]);
596
602
  };
597
603
  }
598
- }), [["__scopeId", "data-v-54f848db"]]);
604
+ }), [["__scopeId", "data-v-74ee0885"]]);
599
605
  //#endregion
600
606
  export { x as n, F as t };