nxd-plugin 1.7.83 → 1.7.85

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 (87) 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-TFBSlUgI.mjs +543 -0
  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-rcQFHEfW.mjs} +51 -45
  12. package/dist/chunks/{component-HdPreSituation-LBpO58bE.mjs → component-HdPreSituation-CnRwuRGg.mjs} +168 -133
  13. package/dist/chunks/{component-HdRadarTime-D7hOn_ph.mjs → component-HdRadarTime-Gcn9dJky.mjs} +179 -148
  14. package/dist/chunks/{component-HdSeaCase-DYPQ7CdN.mjs → component-HdSeaCase-3-YFxSuM.mjs} +2 -2
  15. package/dist/chunks/component-HdServiceMarterial-ehquoNg2.mjs +317 -0
  16. package/dist/chunks/{component-HdServiceRequirements-DcXrcIIV.mjs → component-HdServiceRequirements-Bd4HJrpn.mjs} +38 -39
  17. package/dist/chunks/{component-HdStationTem-US6IRwbQ.mjs → component-HdStationTem-CbJkt6Ww.mjs} +100 -100
  18. package/dist/chunks/component-HdSuggestion-_JNJhwSK.mjs +161 -0
  19. package/dist/chunks/component-HdThreeWeatherTrend-HlRMLWm8.mjs +372 -0
  20. package/dist/chunks/component-HdWaveForcast-jNK-H1b1.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-CDLKFRNB.mjs +32194 -0
  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-BOm_vb1L.mjs +740 -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-C9m-epfv.mjs} +1 -1
  44. package/dist/chunks/{component-StationDialog-Bn7Fbk24.mjs → component-StationDialog-CnJuYTfB.mjs} +246 -177
  45. package/dist/chunks/{component-StationList-DRABlFdc.mjs → component-StationList-BcnqOIZY.mjs} +101 -85
  46. package/dist/chunks/{component-TimeBasedForecast-D1fJ4rGJ.mjs → component-TimeBasedForecast-C1yk1Iu-.mjs} +4 -4
  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-CYsbJhYt.mjs → component-WeatherForecast-BRml38Ik.mjs} +80 -76
  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-B4PPV3Dp.mjs} +4 -4
  52. package/dist/chunks/{component-YCHome-BfpbxDIg.mjs → component-YCHome-C-_Hf_oA.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/HdRadarTime/HdRadarTime.vue.d.ts +4 -2
  58. package/dist/components/HdServiceMarterial/HdServiceMarterial.vue.d.ts +54 -0
  59. package/dist/components/HdSuggestion/HdSuggestion.vue.d.ts +49 -0
  60. package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +71 -0
  61. package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +70 -0
  62. package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +5 -0
  63. package/dist/components/WeatherForecast/WeatherForecast.vue.d.ts +9 -0
  64. package/dist/index.d.ts +6 -1
  65. package/dist/nxd-plugin.mjs +56 -51
  66. package/dist/styles/component-Forecast72h.css +1 -1
  67. package/dist/styles/component-HdForecastProducts.css +1 -0
  68. package/dist/styles/component-HdObservation.css +1 -1
  69. package/dist/styles/component-HdPreSituation.css +1 -1
  70. package/dist/styles/component-HdRadarTime.css +1 -1
  71. package/dist/styles/component-HdServiceMarterial.css +1 -0
  72. package/dist/styles/component-HdServiceRequirements.css +1 -1
  73. package/dist/styles/component-HdStationTem.css +1 -1
  74. package/dist/styles/component-HdSuggestion.css +1 -0
  75. package/dist/styles/component-HdThreeWeatherTrend.css +1 -0
  76. package/dist/styles/component-HdWaveForcast.css +1 -0
  77. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  78. package/dist/styles/component-PrecipitationRanking.css +1 -1
  79. package/dist/styles/component-StationDialog.css +1 -1
  80. package/dist/styles/component-StationList.css +1 -1
  81. package/dist/styles/component-WeatherForecast.css +1 -1
  82. package/dist/styles/component-YCDataMonitor.css +1 -1
  83. package/dist/styles/component-YCLoginNew.css +1 -1
  84. package/package.json +1 -1
  85. package/dist/chunks/component-Forecast72h-BZ1kB2TJ.mjs +0 -427
  86. package/dist/chunks/component-HighwayWeatherForecast-DER5XGc3.mjs +0 -32251
  87. package/dist/chunks/component-PrecipitationRanking-BanKrD3J.mjs +0 -608
@@ -1,20 +1,24 @@
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";
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-TFBSlUgI.mjs";
5
+ import { n as r } from "./component-HdObservation-rcQFHEfW.mjs";
6
6
  import { ElCheckbox as i, ElIcon as ee, ElLoadingDirective as te, ElTable as ne, ElTableColumn as re } from "element-plus/es";
7
- import { Fragment as ie, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as ae, createVNode as l, defineComponent as u, getCurrentInstance as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as oe, onMounted as se, openBlock as h, ref as g, renderList as ce, toDisplayString as _, unref as le, watch as ue, withCtx as v, withDirectives as de, withModifiers as y } from "vue";
8
- import { Download as fe } from "@element-plus/icons-vue";
9
- import * as b from "echarts";
7
+ import { Fragment as ie, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as ae, createVNode as l, defineComponent as u, getCurrentInstance as d, nextTick as f, normalizeClass as p, normalizeStyle as oe, onBeforeUnmount as se, onMounted as ce, openBlock as m, ref as h, renderList as le, toDisplayString as g, unref as ue, watch as de, withCtx as _, withDirectives as fe, withModifiers as pe } from "vue";
8
+ import { Download as me } from "@element-plus/icons-vue";
9
+ import * as v from "echarts";
10
+ import "element-plus/dist/index.css";
10
11
  //#region src/components/HdStationTem/HdStationTem.vue?vue&type=script&setup=true&lang.ts
11
- var pe = /* @__PURE__ */ e(r()), me = {
12
+ var he = /* @__PURE__ */ e(r()), ge = {
12
13
  class: "HdStationTem",
13
14
  "element-loading-background": "rgba(0, 0, 0, 0.5)"
14
- }, he = { class: "HdStationTem-header" }, ge = { class: "HdStationTem-headerContent" }, _e = { class: "HdStationTem-title" }, ve = {
15
+ }, _e = { class: "HdStationTem-header" }, ve = { class: "HdStationTem-headerContent" }, ye = { class: "HdStationTem-title" }, be = {
15
16
  key: 0,
16
17
  class: "HdStationTem-dataTime"
17
- }, ye = { class: "HdStationTem-toolbar" }, be = { class: "HdStationTem-actions" }, xe = { class: "HdStationTem-checkboxWrap" }, x = { class: "HdStationTem-typeWrap" }, S = { class: "HdStationTem-typeTabs" }, C = ["onClick"], w = { class: "HdStationTem-content" }, T = { class: "HdStationTem-tableWrap" }, E = ["onClick"], D = { class: "HdStationTem-trendPopup" }, O = { class: "HdStationTem-trendHeader" }, k = { class: "HdStationTem-trendTitle" }, A = { class: "HdStationTem-trendSubTitle" }, j = "max08", M = /* @__PURE__ */ t(/* @__PURE__ */ u({
18
+ }, xe = { class: "HdStationTem-toolbar" }, y = { class: "HdStationTem-actions" }, b = { class: "HdStationTem-checkboxWrap" }, x = { class: "HdStationTem-typeWrap" }, S = { class: "HdStationTem-typeTabs" }, C = ["onClick"], w = { class: "HdStationTem-content" }, T = { class: "HdStationTem-tableWrap" }, E = ["onClick"], D = {
19
+ key: 0,
20
+ class: "HdStationTem-trendMask"
21
+ }, O = { class: "HdStationTem-trendPopup" }, k = { class: "HdStationTem-trendHeader" }, A = { class: "HdStationTem-trendTitle" }, j = { class: "HdStationTem-trendSubTitle" }, M = "max08", N = /* @__PURE__ */ t(/* @__PURE__ */ u({
18
22
  __name: "HdStationTem",
19
23
  props: {
20
24
  title: { default: "自动站温度监测" },
@@ -95,7 +99,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
95
99
  "clearImage"
96
100
  ],
97
101
  setup(e, { emit: t }) {
98
- let r = d()?.appContext.config.globalProperties.$bus, u = e, M = t, N = g(!1), P = g(j), F = g(!1), I = g(""), L = g([]), R = g(!1), z = g(null), B = g(null), V = null, H = null, U = [
102
+ let r = d()?.appContext.config.globalProperties.$bus, u = e, N = t, P = h(!1), F = h(M), I = h(!1), L = h(""), R = h([]), z = h(!1), B = h(null), V = h(null), H = null, U = null, W = [
99
103
  {
100
104
  label: "最高温08",
101
105
  value: "max08"
@@ -112,11 +116,11 @@ var pe = /* @__PURE__ */ e(r()), me = {
112
116
  label: "最低温20",
113
117
  value: "min20"
114
118
  }
115
- ], W = a(() => [...L.value].sort((e, t) => {
119
+ ], G = a(() => [...R.value].sort((e, t) => {
116
120
  let n = Number(e.temperature) || 0;
117
121
  return (Number(t.temperature) || 0) - n;
118
- })), G = (e) => e == null || e === "" || e === 9999, K = (e, t) => {
119
- if (G(e)) return "--";
122
+ })), K = (e) => e == null || e === "" || e === 9999, q = (e, t) => {
123
+ if (K(e)) return "--";
120
124
  let n = Number(e);
121
125
  if (!isNaN(n)) {
122
126
  let e = Number(n.toFixed(1));
@@ -125,20 +129,20 @@ var pe = /* @__PURE__ */ e(r()), me = {
125
129
  return t ? `${e}${t}` : String(e);
126
130
  }, Se = (e) => {
127
131
  let t = Number(e);
128
- return G(e) || isNaN(t) ? "rgba(255,255,255,0.6)" : t >= u.highThreshold ? "#FF4D4F" : t <= u.lowThreshold ? "#165DFF" : "#fff";
132
+ return K(e) || isNaN(t) ? "rgba(255,255,255,0.6)" : t >= u.highThreshold ? "#FF4D4F" : t <= u.lowThreshold ? "#165DFF" : "#fff";
129
133
  }, Ce = () => {
130
- M("close", "HdStationTem");
134
+ N("close", "HdStationTem");
131
135
  }, we = (e) => {
132
- M("rowClick", e);
136
+ N("rowClick", e);
133
137
  }, Te = (e) => {
134
- z.value = e, R.value = !0, M("view", e), f(() => {
135
- Ae();
138
+ B.value = e, z.value = !0, N("view", e), f(() => {
139
+ je();
136
140
  });
137
- }, q = () => {
138
- R.value = !1, V &&= (V.dispose(), null);
139
- }, Ee = (e) => {
140
- P.value = e, Q();
141
- }, De = () => ({
141
+ }, Ee = () => {
142
+ z.value = !1, H &&= (H.dispose(), null);
143
+ }, De = (e) => {
144
+ F.value = e, Q();
145
+ }, Oe = () => ({
142
146
  times: [
143
147
  "08时",
144
148
  "09时",
@@ -184,9 +188,9 @@ var pe = /* @__PURE__ */ e(r()), me = {
184
188
  ],
185
189
  highThreshold: u.highThreshold,
186
190
  lowThreshold: u.lowThreshold
187
- }), Oe = async () => {
188
- if (!z.value) return null;
189
- if (u.mock) return z.value.trendData || De();
191
+ }), ke = async () => {
192
+ if (!B.value) return null;
193
+ if (u.mock) return B.value.trendData || Oe();
190
194
  let e = J("trend");
191
195
  if (!e) return console.warn("HdStationTem 缺少趋势图工作流配置"), null;
192
196
  try {
@@ -195,9 +199,9 @@ var pe = /* @__PURE__ */ e(r()), me = {
195
199
  baseHttp: u.baseHttp,
196
200
  reqType: e.reqType,
197
201
  variables: {
198
- stationCode: z.value.stationCode,
199
- stationName: z.value.stationName,
200
- type: P.value
202
+ stationCode: B.value.stationCode,
203
+ stationName: B.value.stationName,
204
+ type: F.value
201
205
  },
202
206
  isFormData: e.isFormData,
203
207
  appKey: u.appKey,
@@ -206,7 +210,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
206
210
  } catch (e) {
207
211
  return console.error("HdStationTem 趋势图数据加载失败", e), null;
208
212
  }
209
- }, ke = (e) => {
213
+ }, Ae = (e) => {
210
214
  let t = [];
211
215
  e.maxTemp.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), e.minTemp.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), isNaN(Number(e.highThreshold)) || t.push(Number(e.highThreshold)), isNaN(Number(e.lowThreshold)) || t.push(Number(e.lowThreshold));
212
216
  let n = t.length ? Math.min(...t) : 0, r = t.length ? Math.max(...t) : 40;
@@ -216,12 +220,12 @@ var pe = /* @__PURE__ */ e(r()), me = {
216
220
  min: Math.floor(n - i),
217
221
  max: Math.ceil(r + i)
218
222
  };
219
- }, Ae = async () => {
220
- if (!B.value) return;
221
- let e = await Oe();
223
+ }, je = async () => {
224
+ if (!V.value) return;
225
+ let e = await ke();
222
226
  if (!e) return;
223
- V && V.dispose(), V = b.init(B.value);
224
- let t = ke(e), n = {
227
+ H && H.dispose(), H = v.init(V.value);
228
+ let t = Ae(e), n = {
225
229
  backgroundColor: "transparent",
226
230
  grid: {
227
231
  top: 40,
@@ -315,7 +319,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
315
319
  lineStyle: { width: 2 },
316
320
  symbol: "circle",
317
321
  symbolSize: 5,
318
- areaStyle: { color: new b.graphic.LinearGradient(0, 0, 0, 1, [{
322
+ areaStyle: { color: new v.graphic.LinearGradient(0, 0, 0, 1, [{
319
323
  offset: 0,
320
324
  color: "rgba(255, 125, 0, 0.3)"
321
325
  }, {
@@ -331,7 +335,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
331
335
  lineStyle: { width: 2 },
332
336
  symbol: "circle",
333
337
  symbolSize: 5,
334
- areaStyle: { color: new b.graphic.LinearGradient(0, 0, 0, 1, [{
338
+ areaStyle: { color: new v.graphic.LinearGradient(0, 0, 0, 1, [{
335
339
  offset: 0,
336
340
  color: "rgba(5, 221, 250, 0.3)"
337
341
  }, {
@@ -341,24 +345,24 @@ var pe = /* @__PURE__ */ e(r()), me = {
341
345
  }
342
346
  ]
343
347
  };
344
- V.setOption(n);
345
- }, je = ({ rowIndex: e }) => {
348
+ H.setOption(n);
349
+ }, Me = ({ rowIndex: e }) => {
346
350
  if (e > 2) return "";
347
- let t = W.value[e];
348
- return !t || G(t.temperature) ? "" : e === 0 ? "HdStationTem-row--top1" : e === 1 ? "HdStationTem-row--top2" : e === 2 ? "HdStationTem-row--top3" : "";
351
+ let t = G.value[e];
352
+ return !t || K(t.temperature) ? "" : e === 0 ? "HdStationTem-row--top1" : e === 1 ? "HdStationTem-row--top2" : e === 2 ? "HdStationTem-row--top3" : "";
349
353
  }, J = (e) => {
350
354
  let t = u.ids[e] || u.ids.data;
351
355
  return t?.id ? t : null;
352
- }, Y = (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, Me = () => {
356
+ }, Y = (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, Ne = () => {
353
357
  let e = u.mockData;
354
- L.value = (e.list || []).map((e) => ({
358
+ R.value = (e.list || []).map((e) => ({
355
359
  ...e,
356
- temperature: Ne(e.temperature)
357
- })), I.value = e.dataTime || "";
358
- }, Ne = (e) => {
359
- let t = Number(e) || 25, n = P.value;
360
+ temperature: X(e.temperature)
361
+ })), L.value = e.dataTime || "";
362
+ }, X = (e) => {
363
+ let t = Number(e) || 25, n = F.value;
360
364
  return n === "max08" ? t : n === "max20" ? t + Math.random() * 3 : n === "min08" ? t - Math.random() * 5 - 3 : n === "min20" ? t - Math.random() * 3 : t;
361
- }, X = async () => {
365
+ }, Pe = async () => {
362
366
  if (u.mock) return { imgArr: [{
363
367
  imgUrl: "https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=A%20semi-transparent%20weather%20temperature%20heatmap%20overlay%20in%20blue%20and%20red%20gradient%20colors%2C%20suitable%20for%20map%20overlay%2C%20with%20soft%20edges&image_size=landscape_4_3",
364
368
  lngStart: 113.5,
@@ -375,7 +379,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
375
379
  id: e.id,
376
380
  baseHttp: u.baseHttp,
377
381
  reqType: e.reqType,
378
- variables: { type: P.value },
382
+ variables: { type: F.value },
379
383
  isFormData: e.isFormData,
380
384
  appKey: u.appKey,
381
385
  appSalt: u.appSalt
@@ -385,14 +389,14 @@ var pe = /* @__PURE__ */ e(r()), me = {
385
389
  }
386
390
  }, Z = async (e) => {
387
391
  if (e) {
388
- let e = await X();
389
- e && M("addImage", e);
390
- } else M("clearImage");
392
+ let e = await Pe();
393
+ e && N("addImage", e);
394
+ } else N("clearImage");
391
395
  };
392
- ue(P, () => {
393
- F.value && Z(!0);
396
+ de(F, () => {
397
+ I.value && Z(!0);
394
398
  });
395
- let Pe = async () => {
399
+ let Fe = async () => {
396
400
  let e = J("data");
397
401
  if (!e) {
398
402
  console.warn("HdStationTem 缺少工作流配置");
@@ -403,27 +407,27 @@ var pe = /* @__PURE__ */ e(r()), me = {
403
407
  id: e.id,
404
408
  baseHttp: u.baseHttp,
405
409
  reqType: e.reqType,
406
- variables: { type: P.value },
410
+ variables: { type: F.value },
407
411
  isFormData: e.isFormData,
408
412
  appKey: u.appKey,
409
413
  appSalt: u.appSalt
410
414
  }));
411
- t && (L.value = Array.isArray(t.list) ? t.list : [], I.value = t.dataTime || "");
415
+ t && (R.value = Array.isArray(t.list) ? t.list : [], L.value = t.dataTime || "");
412
416
  } catch (e) {
413
417
  console.error("HdStationTem 数据加载失败", e);
414
418
  }
415
419
  }, Q = async () => {
416
- N.value = !0, u.mock ? Me() : await Pe(), N.value = !1;
417
- }, Fe = () => {
418
- let e = U.find((e) => e.value === P.value)?.label || P.value, t = W.value.map((t, n) => ({
420
+ P.value = !0, u.mock ? Ne() : await Fe(), P.value = !1;
421
+ }, Ie = () => {
422
+ let e = W.find((e) => e.value === F.value)?.label || F.value, t = G.value.map((t, n) => ({
419
423
  序号: n + 1,
420
424
  站名: t.stationName,
421
425
  站号: t.stationCode,
422
- 温度: K(t.temperature, "℃"),
426
+ 温度: q(t.temperature, "℃"),
423
427
  类型: e,
424
- 数据时间: t.monitorTime || I.value || ""
428
+ 数据时间: t.monitorTime || L.value || ""
425
429
  }));
426
- new pe.default({
430
+ new he.default({
427
431
  fileName: `自动站温度监测_${e}_${(/* @__PURE__ */ new Date()).getTime()}`,
428
432
  datas: [{
429
433
  sheetData: t,
@@ -454,27 +458,27 @@ var pe = /* @__PURE__ */ e(r()), me = {
454
458
  ]
455
459
  }]
456
460
  }).saveExcel();
457
- }, Ie = () => {
458
- $(), !(u.refreshInterval <= 0) && (H = setInterval(() => {
461
+ }, Le = () => {
462
+ $(), !(u.refreshInterval <= 0) && (U = setInterval(() => {
459
463
  Q();
460
464
  }, u.refreshInterval));
461
465
  }, $ = () => {
462
- H &&= (clearInterval(H), null);
466
+ U &&= (clearInterval(U), null);
463
467
  };
464
- return se(() => {
468
+ return ce(() => {
465
469
  r?.on("toComponent", (e) => {
466
470
  e.componentName === "HdStationTem" && Q();
467
- }), Q(), Ie();
468
- }), oe(() => {
469
- $(), V &&= (V.dispose(), null);
471
+ }), Q(), Le();
472
+ }), se(() => {
473
+ $(), H &&= (H.dispose(), null);
470
474
  }), (t, n) => {
471
475
  let r = i, a = ee, u = re, d = ne, f = te;
472
- return de((h(), s("div", me, [
476
+ return fe((m(), s("div", ge, [
473
477
  c("button", {
474
478
  class: "HdStationTem-close",
475
479
  onClick: Ce
476
480
  }, [...n[1] ||= [c("span", null, "✕", -1)]]),
477
- c("div", he, [c("div", ge, [c("h3", _e, _(e.title), 1), I.value ? (h(), s("span", ve, "(数据时间:" + _(I.value) + ")", 1)) : o("", !0)]), n[2] ||= c("img", {
481
+ c("div", _e, [c("div", ve, [c("h3", ye, g(e.title), 1), L.value ? (m(), s("span", be, "(数据时间:" + g(L.value) + ")", 1)) : o("", !0)]), n[2] ||= c("img", {
478
482
  style: {
479
483
  width: "100%",
480
484
  "object-fit": "contain",
@@ -483,40 +487,40 @@ var pe = /* @__PURE__ */ e(r()), me = {
483
487
  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",
484
488
  alt: ""
485
489
  }, null, -1)]),
486
- c("div", ye, [c("div", be, [n[5] ||= c("span", { class: "HdStationTem-toolbarLabel" }, "温度类型", -1), c("div", xe, [l(r, {
487
- modelValue: F.value,
488
- "onUpdate:modelValue": n[0] ||= (e) => F.value = e,
490
+ c("div", xe, [c("div", y, [n[5] ||= c("span", { class: "HdStationTem-toolbarLabel" }, "温度类型", -1), c("div", b, [l(r, {
491
+ modelValue: I.value,
492
+ "onUpdate:modelValue": n[0] ||= (e) => I.value = e,
489
493
  class: "HdStationTem-checkbox",
490
494
  onChange: Z
491
495
  }, {
492
- default: v(() => [...n[3] ||= [ae(" 色斑图 ", -1)]]),
496
+ default: _(() => [...n[3] ||= [ae(" 色斑图 ", -1)]]),
493
497
  _: 1
494
498
  }, 8, ["modelValue"]), c("button", {
495
499
  class: "HdStationTem-btn",
496
- onClick: Fe
500
+ onClick: Ie
497
501
  }, [l(a, null, {
498
- default: v(() => [l(le(fe))]),
502
+ default: _(() => [l(ue(me))]),
499
503
  _: 1
500
- }), n[4] ||= c("span", { class: "HdStationTem-btnText" }, "导出", -1)])])]), c("div", x, [c("div", S, [(h(), s(ie, null, ce(U, (e) => c("button", {
504
+ }), n[4] ||= c("span", { class: "HdStationTem-btnText" }, "导出", -1)])])]), c("div", x, [c("div", S, [(m(), s(ie, null, le(W, (e) => c("button", {
501
505
  key: e.value,
502
- class: p(["HdStationTem-typeTab", { "HdStationTem-typeTab--active": P.value === e.value }]),
503
- onClick: (t) => Ee(e.value)
504
- }, _(e.label), 11, C)), 64))])])]),
506
+ class: p(["HdStationTem-typeTab", { "HdStationTem-typeTab--active": F.value === e.value }]),
507
+ onClick: (t) => De(e.value)
508
+ }, g(e.label), 11, C)), 64))])])]),
505
509
  c("div", w, [c("div", T, [l(d, {
506
- data: W.value,
510
+ data: G.value,
507
511
  class: "HdStationTem-table",
508
512
  height: e.tableHeight,
509
513
  "empty-text": "暂无数据",
510
- "row-class-name": je,
514
+ "row-class-name": Me,
511
515
  onRowClick: we
512
516
  }, {
513
- default: v(() => [
517
+ default: _(() => [
514
518
  l(u, {
515
519
  label: "序号",
516
520
  align: "center",
517
521
  width: "60"
518
522
  }, {
519
- default: v(({ $index: e }) => [c("span", { class: p(["HdStationTem-rank", `HdStationTem-rank--${e + 1}`]) }, _(e + 1), 3)]),
523
+ default: _(({ $index: e }) => [c("span", { class: p(["HdStationTem-rank", `HdStationTem-rank--${e + 1}`]) }, g(e + 1), 3)]),
520
524
  _: 1
521
525
  }),
522
526
  l(u, {
@@ -536,7 +540,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
536
540
  align: "center",
537
541
  width: "90"
538
542
  }, {
539
- default: v(({ row: e }) => [c("span", { style: m({ color: Se(e.temperature) }) }, _(K(e.temperature, "")), 5)]),
543
+ default: _(({ row: e }) => [c("span", { style: oe({ color: Se(e.temperature) }) }, g(q(e.temperature, "")), 5)]),
540
544
  _: 1
541
545
  }),
542
546
  l(u, {
@@ -544,30 +548,26 @@ var pe = /* @__PURE__ */ e(r()), me = {
544
548
  align: "center",
545
549
  width: "60"
546
550
  }, {
547
- default: v(({ row: e }) => [c("span", {
551
+ default: _(({ row: e }) => [c("span", {
548
552
  class: "HdStationTem-viewLink",
549
- onClick: y((t) => Te(e), ["stop"])
553
+ onClick: pe((t) => Te(e), ["stop"])
550
554
  }, "查看", 8, E)]),
551
555
  _: 1
552
556
  })
553
557
  ]),
554
558
  _: 1
555
559
  }, 8, ["data", "height"])])]),
556
- R.value ? (h(), s("div", {
557
- key: 0,
558
- class: "HdStationTem-trendMask",
559
- onClick: y(q, ["self"])
560
- }, [c("div", D, [c("div", O, [c("div", k, [n[6] ||= c("span", null, "温度趋势", -1), c("span", A, _(z.value?.stationName) + " " + _(z.value?.stationCode), 1)]), c("button", {
560
+ z.value ? (m(), s("div", D, [c("div", O, [c("div", k, [c("div", A, [n[6] ||= c("span", null, "温度趋势", -1), c("span", j, g(B.value?.stationName) + " " + g(B.value?.stationCode), 1)]), c("button", {
561
561
  class: "HdStationTem-trendClose",
562
- onClick: q
562
+ onClick: Ee
563
563
  }, "✕")]), c("div", {
564
564
  ref_key: "trendChartRef",
565
- ref: B,
565
+ ref: V,
566
566
  class: "HdStationTem-trendChart"
567
567
  }, null, 512)])])) : o("", !0)
568
- ])), [[f, N.value]]);
568
+ ])), [[f, P.value]]);
569
569
  };
570
570
  }
571
- }), [["__scopeId", "data-v-2dde5b45"]]);
571
+ }), [["__scopeId", "data-v-90612d97"]]);
572
572
  //#endregion
573
- export { M as t };
573
+ export { N as t };
@@ -0,0 +1,161 @@
1
+ import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
2
+ import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
3
+ import "./component-Forecast72h-TFBSlUgI.mjs";
4
+ import { ElIcon as n } from "element-plus/es";
5
+ import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, getCurrentInstance as u, onMounted as d, openBlock as f, ref as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
6
+ import { ArrowLeft as _, ArrowRight as v } from "@element-plus/icons-vue";
7
+ //#region src/components/HdSuggestion/HdSuggestion.vue?vue&type=script&setup=true&lang.ts
8
+ var y = { class: "HdSuggestion" }, b = { class: "HdSuggestion-header" }, x = { class: "HdSuggestion-headerContent" }, S = { class: "HdSuggestion-title" }, C = {
9
+ key: 0,
10
+ class: "HdSuggestion-dataTime"
11
+ }, w = { class: "HdSuggestion-body" }, T = ["disabled"], E = { class: "HdSuggestion-card" }, D = { class: "HdSuggestion-imageWrap" }, O = ["src"], k = {
12
+ key: 1,
13
+ class: "HdSuggestion-imagePlaceholder"
14
+ }, A = { class: "HdSuggestion-info" }, j = { class: "HdSuggestion-cardTitle" }, M = { class: "HdSuggestion-cardContent" }, N = ["disabled"], P = {
15
+ key: 1,
16
+ class: "HdSuggestion-empty"
17
+ }, F = {
18
+ class: "HdSuggestion-arrow",
19
+ disabled: ""
20
+ }, I = {
21
+ class: "HdSuggestion-arrow",
22
+ disabled: ""
23
+ }, L = /* @__PURE__ */ e(/* @__PURE__ */ l({
24
+ __name: "HdSuggestion",
25
+ props: {
26
+ mock: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
30
+ showClose: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
34
+ baseHttp: { default: "" },
35
+ appKey: { default: "" },
36
+ appSalt: { default: "" },
37
+ ids: { default: () => ({}) },
38
+ title: { default: "" },
39
+ dataTime: { default: "" },
40
+ list: { default: () => [] },
41
+ mockData: { default: () => ({
42
+ title: "农事建议",
43
+ dataTime: "",
44
+ list: [{
45
+ image: "http://58.59.29.51:11014/farmPorts/9E06026PAJ76623.png",
46
+ title: "小麦黑节病",
47
+ content: "主要为害茎节,病部呈深褐色,可扩展至节间,发病严重时,茎节变黑腐烂,病部以上枯死。叶片发病,呈初生水渍状条斑,随后扩展为黄褐色纵条斑。"
48
+ }, {
49
+ image: "http://58.59.29.51:11014/farmPorts/9E06026PAJ76623.png",
50
+ title: "春季麦田管理",
51
+ content: "春季气温回升,小麦进入返青拔节期,应加强田间管理,适时追肥浇水,注意防范倒春寒对小麦生长的影响。"
52
+ }]
53
+ }) }
54
+ },
55
+ emits: ["close", "change"],
56
+ setup(e, { emit: l }) {
57
+ let L = u()?.appContext.config.globalProperties.$bus, R = e, z = l, B = p(0), V = p({
58
+ title: "",
59
+ dataTime: "",
60
+ list: []
61
+ }), H = i(() => R.title || V.value.title || "农事建议"), U = i(() => R.dataTime || V.value.dataTime || ""), W = i(() => R.list.length ? R.list : V.value.list), G = i(() => W.value[B.value] || {
62
+ image: "",
63
+ title: "",
64
+ content: ""
65
+ }), K = () => {
66
+ B.value > 0 && (B.value--, z("change", B.value, G.value));
67
+ }, q = () => {
68
+ B.value < W.value.length - 1 && (B.value++, z("change", B.value, G.value));
69
+ }, J = () => {
70
+ z("close", "HdSuggestion");
71
+ }, Y = (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, X = () => {
72
+ let e = R.mockData || {};
73
+ V.value = {
74
+ title: e.title || "",
75
+ dataTime: e.dataTime || "",
76
+ list: e.list || []
77
+ };
78
+ }, Z = async () => {
79
+ let e = R.ids.data;
80
+ if (!e?.id) {
81
+ console.warn("HdSuggestion 缺少数据工作流配置");
82
+ return;
83
+ }
84
+ try {
85
+ let n = Y(await t({
86
+ id: e.id,
87
+ baseHttp: R.baseHttp,
88
+ reqType: e.reqType,
89
+ variables: {},
90
+ isFormData: e.isFormData,
91
+ appKey: R.appKey,
92
+ appSalt: R.appSalt
93
+ }));
94
+ n && (V.value = {
95
+ title: n.title || "",
96
+ dataTime: n.dataTime || "",
97
+ list: n.list || []
98
+ });
99
+ } catch (e) {
100
+ console.error("HdSuggestion 数据加载失败", e);
101
+ }
102
+ }, Q = async () => {
103
+ R.mock ? X() : await Z(), B.value = 0;
104
+ };
105
+ return d(() => {
106
+ L?.on("toComponent", (e) => {
107
+ e.componentName === "HdSuggestion" && Q();
108
+ }), Q();
109
+ }), (t, i) => {
110
+ let l = n;
111
+ return f(), o("div", y, [
112
+ e.showClose ? (f(), o("button", {
113
+ key: 0,
114
+ class: "HdSuggestion-close",
115
+ onClick: J
116
+ }, [...i[0] ||= [s("span", null, "✕", -1)]])) : a("", !0),
117
+ s("div", b, [s("div", x, [s("h3", S, m(H.value), 1), U.value ? (f(), o("span", C, "(数据时间:" + m(U.value) + ")", 1)) : a("", !0)]), i[1] ||= s("img", {
118
+ class: "HdSuggestion-headerLine",
119
+ 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",
120
+ alt: ""
121
+ }, null, -1)]),
122
+ s("div", w, [W.value.length > 0 ? (f(), o(r, { key: 0 }, [
123
+ s("button", {
124
+ class: "HdSuggestion-arrow HdSuggestion-arrow--left",
125
+ disabled: B.value === 0,
126
+ onClick: K
127
+ }, [c(l, null, {
128
+ default: g(() => [c(h(_))]),
129
+ _: 1
130
+ })], 8, T),
131
+ s("div", E, [s("div", D, [G.value.image ? (f(), o("img", {
132
+ key: 0,
133
+ class: "HdSuggestion-image",
134
+ src: G.value.image,
135
+ alt: ""
136
+ }, null, 8, O)) : (f(), o("div", k, "暂无图片"))]), s("div", A, [s("h4", j, m(G.value.title), 1), s("p", M, m(G.value.content), 1)])]),
137
+ s("button", {
138
+ class: "HdSuggestion-arrow HdSuggestion-arrow--right",
139
+ disabled: B.value === W.value.length - 1,
140
+ onClick: q
141
+ }, [c(l, null, {
142
+ default: g(() => [c(h(v))]),
143
+ _: 1
144
+ })], 8, N)
145
+ ], 64)) : (f(), o("div", P, [
146
+ s("button", F, [c(l, null, {
147
+ default: g(() => [c(h(_))]),
148
+ _: 1
149
+ })]),
150
+ i[2] ||= s("span", { class: "HdSuggestion-emptyText" }, "暂无农事建议", -1),
151
+ s("button", I, [c(l, null, {
152
+ default: g(() => [c(h(v))]),
153
+ _: 1
154
+ })])
155
+ ]))])
156
+ ]);
157
+ };
158
+ }
159
+ }), [["__scopeId", "data-v-1ecefa59"]]);
160
+ //#endregion
161
+ export { L as t };