nxd-plugin 1.7.82 → 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 (100) hide show
  1. package/dist/chunks/{component-AiChat-BU0rzEqA.mjs → component-AiChat-BXNBLM1G.mjs} +382 -342
  2. package/dist/chunks/{component-AqiMonitor-B0X5SmQB.mjs → component-AqiMonitor-C_V1Nuf_.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-D50ZlxtD.mjs → component-ChartCumulativePre-Bo28Bgaa.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-D35UWUD8.mjs → component-ChartServiceMaterial-DELVCsKj.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-CuVSfL6B.mjs → component-Duty-dyZZ4vHt.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-DBLY754e.mjs → component-EarlyWarningStatistic-CBJfrRsV.mjs} +2 -2
  7. package/dist/chunks/component-Forecast72h-BkVZSGhE.mjs +427 -0
  8. package/dist/chunks/{component-GeologyLiveAlarm-BGqrl_n2.mjs → component-GeologyLiveAlarm-B9jBWXf0.mjs} +2 -2
  9. package/dist/chunks/component-HdForecastProducts-D4x_Y0OB.mjs +211 -0
  10. package/dist/chunks/component-HdHeatService-Bf9XH3DP.mjs +412 -0
  11. package/dist/chunks/component-HdObservation-CM6HUrQ3.mjs +606 -0
  12. package/dist/chunks/component-HdPreSituation-CJ8-wiRO.mjs +639 -0
  13. package/dist/chunks/component-HdRadarTime-C4ZArOUM.mjs +461 -0
  14. package/dist/chunks/component-HdSeaCase-3-YFxSuM.mjs +219 -0
  15. package/dist/chunks/component-HdServiceMarterial-pSFQUH2x.mjs +316 -0
  16. package/dist/chunks/component-HdServiceRequirements-BjuiyyC5.mjs +142 -0
  17. package/dist/chunks/component-HdStationTem-Dit7Y8lu.mjs +573 -0
  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-B-DNdjF7.mjs → component-HighQuality-1iqLOQAF.mjs} +3 -3
  22. package/dist/chunks/{component-HighWayEarlyWarningRed-DM_NXOxS.mjs → component-HighWayEarlyWarningRed-DlgG9rTx.mjs} +907 -759
  23. package/dist/chunks/{component-HighWayFreeze-Dldul9ds.mjs → component-HighWayFreeze-CCp1Rxpz.mjs} +2 -2
  24. package/dist/chunks/{component-HighwayLiveAlarm-7T0XNRUb.mjs → component-HighwayLiveAlarm-D7PKi5rG.mjs} +2 -2
  25. package/dist/chunks/{component-HighwayLiveAlarmNew-ClsfDywn.mjs → component-HighwayLiveAlarmNew-rH59lsj8.mjs} +3 -3
  26. package/dist/chunks/{component-HighwayStations-u3R83AXH.mjs → component-HighwayStations-DGt6Gsr9.mjs} +2 -2
  27. package/dist/chunks/{component-HighwayWeatherForecast-CHJuEi1V.mjs → component-HighwayWeatherForecast-BQrNGF7m.mjs} +73 -130
  28. package/dist/chunks/{component-IframeWeb-B_RCXBBe.mjs → component-IframeWeb-vLIWvbJY.mjs} +1 -1
  29. package/dist/chunks/{component-ImageGeneration-5zGtULQL.mjs → component-ImageGeneration-BtM7MHcE.mjs} +1 -1
  30. package/dist/chunks/{component-IntroducePic-DPf4yYOb.mjs → component-IntroducePic-D3FSEuKX.mjs} +1 -1
  31. package/dist/chunks/{component-LithiumBatteryMiningArea-D7EdisGO.mjs → component-LithiumBatteryMiningArea-B5aUe7T0.mjs} +2 -2
  32. package/dist/chunks/{component-MapPopup-pePSM1pe.mjs → component-MapPopup-UmWWAPBE.mjs} +1 -1
  33. package/dist/chunks/{component-MaterialPreview-CvHyZKau.mjs → component-MaterialPreview-1Hyl4bjM.mjs} +2 -2
  34. package/dist/chunks/{component-PieLegend-C_KQgtb2.mjs → component-PieLegend-C0Acehix.mjs} +1 -1
  35. package/dist/chunks/component-PrecipitationRanking-C63n87WI.mjs +658 -0
  36. package/dist/chunks/{component-RadarChart-Dkkpc2ex.mjs → component-RadarChart-BXfMyPPi.mjs} +2 -2
  37. package/dist/chunks/{component-RadarLegend-Bmyx7Z82.mjs → component-RadarLegend-B2ajP_0M.mjs} +1 -1
  38. package/dist/chunks/{component-RadarShortTerm-DNpfS5yC.mjs → component-RadarShortTerm-BeGEjbHr.mjs} +4 -4
  39. package/dist/chunks/{component-RadarTime-CBk6AMiD.mjs → component-RadarTime-DGRztCiR.mjs} +2 -2
  40. package/dist/chunks/{component-RenderMarkdown-DFiXNere.mjs → component-RenderMarkdown-Dv-UVGrS.mjs} +2 -2
  41. package/dist/chunks/{component-ReservoirLiveAlarm-DCzzEJ4U.mjs → component-ReservoirLiveAlarm-CRgl_ztt.mjs} +3 -3
  42. package/dist/chunks/{component-ServiceMaterial-CXBQpfHK.mjs → component-ServiceMaterial-BTWYke8W.mjs} +2 -2
  43. package/dist/chunks/{component-ServiceMaterialsBtn-CPZzLZl_.mjs → component-ServiceMaterialsBtn-CTWGd-Is.mjs} +1 -1
  44. package/dist/chunks/component-StationDialog-Ck8zd52d.mjs +956 -0
  45. package/dist/chunks/component-StationList-BvoVJwAU.mjs +337 -0
  46. package/dist/chunks/{component-TimeBasedForecast-WVO8WY-h.mjs → component-TimeBasedForecast-BaPiit4s.mjs} +36 -36
  47. package/dist/chunks/{component-WarningLine-BCPm8Eve.mjs → component-WarningLine-CcFfVzar.mjs} +2 -2
  48. package/dist/chunks/{component-WarningSignal-C2RJ8N64.mjs → component-WarningSignal-C0CnTLVH.mjs} +3 -3
  49. package/dist/chunks/component-WeatherForecast-DWdNramU.mjs +229 -0
  50. package/dist/chunks/{component-YCDataMonitor-Dx7ASmGD.mjs → component-YCDataMonitor-DPMFqIFB.mjs} +108 -110
  51. package/dist/chunks/{component-YCDataService-mj2SUWBC.mjs → component-YCDataService-CD042ss7.mjs} +4 -4
  52. package/dist/chunks/{component-YCHome-CUcEZHuo.mjs → component-YCHome-DjpIzt-5.mjs} +4 -4
  53. package/dist/chunks/{component-YCHomeLegend-DK6WU8YQ.mjs → component-YCHomeLegend-B-nlePS2.mjs} +1 -1
  54. package/dist/chunks/{component-YCLoginNew-D2RInKrk.mjs → component-YCLoginNew-Bx2LoLJz.mjs} +3 -3
  55. package/dist/components/AiChat/AiChat.vue.d.ts +0 -2
  56. package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
  57. package/dist/components/HdForecastProducts/HdForecastProducts.vue.d.ts +49 -0
  58. package/dist/components/HdHeatService/HdHeatService.vue.d.ts +56 -0
  59. package/dist/components/HdObservation/HdObservation.vue.d.ts +43 -0
  60. package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +61 -0
  61. package/dist/components/HdQxServiceEffects/HdQxServiceEffects.vue.d.ts +59 -0
  62. package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +71 -0
  63. package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +46 -0
  64. package/dist/components/HdServiceMarterial/HdServiceMarterial.vue.d.ts +54 -0
  65. package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
  66. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -0
  67. package/dist/components/HdSuggestion/HdSuggestion.vue.d.ts +49 -0
  68. package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +71 -0
  69. package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +70 -0
  70. package/dist/components/HighWayEarlyWarningRed/Call.vue.d.ts +18 -0
  71. package/dist/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +5 -0
  72. package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +62 -0
  73. package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
  74. package/dist/components/StationList/StationList.vue.d.ts +64 -0
  75. package/dist/components/WeatherForecast/WeatherForecast.vue.d.ts +9 -0
  76. package/dist/index.d.ts +18 -1
  77. package/dist/nxd-plugin.mjs +56 -40
  78. package/dist/styles/component-Forecast72h.css +1 -0
  79. package/dist/styles/component-HdForecastProducts.css +1 -0
  80. package/dist/styles/component-HdHeatService.css +1 -0
  81. package/dist/styles/component-HdObservation.css +1 -0
  82. package/dist/styles/component-HdPreSituation.css +1 -0
  83. package/dist/styles/component-HdRadarTime.css +1 -0
  84. package/dist/styles/component-HdSeaCase.css +1 -0
  85. package/dist/styles/component-HdServiceMarterial.css +1 -0
  86. package/dist/styles/component-HdServiceRequirements.css +1 -0
  87. package/dist/styles/component-HdStationTem.css +1 -0
  88. package/dist/styles/component-HdSuggestion.css +1 -0
  89. package/dist/styles/component-HdThreeWeatherTrend.css +1 -0
  90. package/dist/styles/component-HdWaveForcast.css +1 -0
  91. package/dist/styles/component-HighQuality.css +1 -1
  92. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  93. package/dist/styles/component-PrecipitationRanking.css +1 -0
  94. package/dist/styles/component-StationDialog.css +1 -0
  95. package/dist/styles/component-StationList.css +1 -0
  96. package/dist/styles/component-WeatherForecast.css +1 -1
  97. package/dist/styles/component-YCDataMonitor.css +1 -1
  98. package/dist/styles/component-YCLoginNew.css +1 -1
  99. package/package.json +2 -1
  100. package/dist/chunks/component-WeatherForecast-CaLYtE37.mjs +0 -210
@@ -0,0 +1,573 @@
1
+ import { r as e } from "./rolldown-runtime-Cz5NsrRf.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-BkVZSGhE.mjs";
5
+ import { n as r } from "./component-HdObservation-CM6HUrQ3.mjs";
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 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";
11
+ //#region src/components/HdStationTem/HdStationTem.vue?vue&type=script&setup=true&lang.ts
12
+ var he = /* @__PURE__ */ e(r()), ge = {
13
+ class: "HdStationTem",
14
+ "element-loading-background": "rgba(0, 0, 0, 0.5)"
15
+ }, _e = { class: "HdStationTem-header" }, ve = { class: "HdStationTem-headerContent" }, ye = { class: "HdStationTem-title" }, be = {
16
+ key: 0,
17
+ class: "HdStationTem-dataTime"
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({
22
+ __name: "HdStationTem",
23
+ props: {
24
+ title: { default: "自动站温度监测" },
25
+ mock: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ baseHttp: { default: "" },
30
+ tableHeight: { default: "40vh" },
31
+ appKey: { default: "" },
32
+ appSalt: { default: "" },
33
+ ids: { default: () => ({}) },
34
+ refreshInterval: { default: 300 * 1e3 },
35
+ highThreshold: { default: 35 },
36
+ lowThreshold: { default: 5 },
37
+ mockData: { default: () => ({
38
+ dataTime: "2026-04-12 08时",
39
+ list: [
40
+ {
41
+ stationName: "黄岛",
42
+ stationCode: "54943",
43
+ temperature: 28.5
44
+ },
45
+ {
46
+ stationName: "董家口",
47
+ stationCode: "54944",
48
+ temperature: 27.3
49
+ },
50
+ {
51
+ stationName: "金沙滩",
52
+ stationCode: "54945",
53
+ temperature: 26.8
54
+ },
55
+ {
56
+ stationName: "琅琊",
57
+ stationCode: "54946",
58
+ temperature: 25.6
59
+ },
60
+ {
61
+ stationName: "大场",
62
+ stationCode: "54947",
63
+ temperature: 24.2
64
+ },
65
+ {
66
+ stationName: "大村",
67
+ stationCode: "54948",
68
+ temperature: 23.8
69
+ },
70
+ {
71
+ stationName: "大涧山",
72
+ stationCode: "54949",
73
+ temperature: 22.5
74
+ },
75
+ {
76
+ stationName: "王台",
77
+ stationCode: "54950",
78
+ temperature: 21.9
79
+ },
80
+ {
81
+ stationName: "诸城",
82
+ stationCode: "54951",
83
+ temperature: 20.4
84
+ },
85
+ {
86
+ stationName: "五莲",
87
+ stationCode: "54952",
88
+ temperature: 19.7
89
+ }
90
+ ]
91
+ }) }
92
+ },
93
+ emits: [
94
+ "close",
95
+ "rowClick",
96
+ "view",
97
+ "colorMapChange",
98
+ "addImage",
99
+ "clearImage"
100
+ ],
101
+ setup(e, { emit: t }) {
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 = [
103
+ {
104
+ label: "最高温08",
105
+ value: "max08"
106
+ },
107
+ {
108
+ label: "最高温20",
109
+ value: "max20"
110
+ },
111
+ {
112
+ label: "最低温08",
113
+ value: "min08"
114
+ },
115
+ {
116
+ label: "最低温20",
117
+ value: "min20"
118
+ }
119
+ ], G = a(() => [...R.value].sort((e, t) => {
120
+ let n = Number(e.temperature) || 0;
121
+ return (Number(t.temperature) || 0) - n;
122
+ })), K = (e) => e == null || e === "" || e === 9999, q = (e, t) => {
123
+ if (K(e)) return "--";
124
+ let n = Number(e);
125
+ if (!isNaN(n)) {
126
+ let e = Number(n.toFixed(1));
127
+ return t ? `${e}${t}` : String(e);
128
+ }
129
+ return t ? `${e}${t}` : String(e);
130
+ }, Se = (e) => {
131
+ let t = Number(e);
132
+ return K(e) || isNaN(t) ? "rgba(255,255,255,0.6)" : t >= u.highThreshold ? "#FF4D4F" : t <= u.lowThreshold ? "#165DFF" : "#fff";
133
+ }, Ce = () => {
134
+ N("close", "HdStationTem");
135
+ }, we = (e) => {
136
+ N("rowClick", e);
137
+ }, Te = (e) => {
138
+ B.value = e, z.value = !0, N("view", e), f(() => {
139
+ je();
140
+ });
141
+ }, Ee = () => {
142
+ z.value = !1, H &&= (H.dispose(), null);
143
+ }, De = (e) => {
144
+ F.value = e, Q();
145
+ }, Oe = () => ({
146
+ times: [
147
+ "08时",
148
+ "09时",
149
+ "10时",
150
+ "11时",
151
+ "12时",
152
+ "13时",
153
+ "14时",
154
+ "15时",
155
+ "16时",
156
+ "17时",
157
+ "18时",
158
+ "19时"
159
+ ],
160
+ unit: "℃",
161
+ maxTemp: [
162
+ 22,
163
+ 24,
164
+ 26,
165
+ 28,
166
+ 30,
167
+ 32,
168
+ 33,
169
+ 32,
170
+ 30,
171
+ 28,
172
+ 26,
173
+ 24
174
+ ],
175
+ minTemp: [
176
+ 16,
177
+ 17,
178
+ 18,
179
+ 19,
180
+ 20,
181
+ 21,
182
+ 22,
183
+ 22,
184
+ 21,
185
+ 20,
186
+ 19,
187
+ 18
188
+ ],
189
+ highThreshold: u.highThreshold,
190
+ lowThreshold: u.lowThreshold
191
+ }), ke = async () => {
192
+ if (!B.value) return null;
193
+ if (u.mock) return B.value.trendData || Oe();
194
+ let e = J("trend");
195
+ if (!e) return console.warn("HdStationTem 缺少趋势图工作流配置"), null;
196
+ try {
197
+ return Y(await n({
198
+ id: e.id,
199
+ baseHttp: u.baseHttp,
200
+ reqType: e.reqType,
201
+ variables: {
202
+ stationCode: B.value.stationCode,
203
+ stationName: B.value.stationName,
204
+ type: F.value
205
+ },
206
+ isFormData: e.isFormData,
207
+ appKey: u.appKey,
208
+ appSalt: u.appSalt
209
+ })) || null;
210
+ } catch (e) {
211
+ return console.error("HdStationTem 趋势图数据加载失败", e), null;
212
+ }
213
+ }, Ae = (e) => {
214
+ let t = [];
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));
216
+ let n = t.length ? Math.min(...t) : 0, r = t.length ? Math.max(...t) : 40;
217
+ n === r && (n -= 5, r += 5);
218
+ let i = (r - n) * .1;
219
+ return {
220
+ min: Math.floor(n - i),
221
+ max: Math.ceil(r + i)
222
+ };
223
+ }, je = async () => {
224
+ if (!V.value) return;
225
+ let e = await ke();
226
+ if (!e) return;
227
+ H && H.dispose(), H = v.init(V.value);
228
+ let t = Ae(e), n = {
229
+ backgroundColor: "transparent",
230
+ grid: {
231
+ top: 40,
232
+ right: 24,
233
+ bottom: 32,
234
+ left: 48
235
+ },
236
+ legend: {
237
+ data: [
238
+ "最高温",
239
+ "最低温",
240
+ "高温阈值",
241
+ "低温阈值"
242
+ ],
243
+ right: 0,
244
+ top: 0,
245
+ textStyle: {
246
+ color: "rgba(255,255,255,0.8)",
247
+ fontSize: 12
248
+ },
249
+ itemWidth: 12,
250
+ itemHeight: 8
251
+ },
252
+ tooltip: {
253
+ trigger: "axis",
254
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
255
+ borderColor: "rgba(64, 158, 255, 0.4)",
256
+ textStyle: { color: "#fff" },
257
+ formatter: (t) => `${t[0]?.axisValue || ""}<br/>${t.map((t) => `${t.marker} ${t.seriesName}: ${t.value}${e.unit}`).join("<br/>")}`
258
+ },
259
+ xAxis: {
260
+ type: "category",
261
+ data: e.times,
262
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
263
+ axisLabel: {
264
+ color: "rgba(255,255,255,0.7)",
265
+ fontSize: 11
266
+ },
267
+ axisTick: { show: !1 }
268
+ },
269
+ yAxis: {
270
+ type: "value",
271
+ min: t.min,
272
+ max: t.max,
273
+ name: `单位:${e.unit}`,
274
+ nameTextStyle: {
275
+ color: "rgba(255,255,255,0.7)",
276
+ padding: [
277
+ 0,
278
+ 0,
279
+ 0,
280
+ 8
281
+ ]
282
+ },
283
+ axisLine: { show: !1 },
284
+ axisLabel: {
285
+ color: "rgba(255,255,255,0.7)",
286
+ fontSize: 11
287
+ },
288
+ splitLine: { show: !1 },
289
+ axisTick: { show: !1 }
290
+ },
291
+ series: [
292
+ {
293
+ name: "高温阈值",
294
+ type: "line",
295
+ data: e.times.map(() => e.highThreshold),
296
+ itemStyle: { color: "#FF4D4F" },
297
+ lineStyle: {
298
+ type: "dashed",
299
+ width: 1
300
+ },
301
+ symbol: "none"
302
+ },
303
+ {
304
+ name: "低温阈值",
305
+ type: "line",
306
+ data: e.times.map(() => e.lowThreshold),
307
+ itemStyle: { color: "#165DFF" },
308
+ lineStyle: {
309
+ type: "dashed",
310
+ width: 1
311
+ },
312
+ symbol: "none"
313
+ },
314
+ {
315
+ name: "最高温",
316
+ type: "line",
317
+ data: e.maxTemp,
318
+ itemStyle: { color: "#FF7D00" },
319
+ lineStyle: { width: 2 },
320
+ symbol: "circle",
321
+ symbolSize: 5,
322
+ areaStyle: { color: new v.graphic.LinearGradient(0, 0, 0, 1, [{
323
+ offset: 0,
324
+ color: "rgba(255, 125, 0, 0.3)"
325
+ }, {
326
+ offset: 1,
327
+ color: "rgba(255, 125, 0, 0.02)"
328
+ }]) }
329
+ },
330
+ {
331
+ name: "最低温",
332
+ type: "line",
333
+ data: e.minTemp,
334
+ itemStyle: { color: "#05ddfa" },
335
+ lineStyle: { width: 2 },
336
+ symbol: "circle",
337
+ symbolSize: 5,
338
+ areaStyle: { color: new v.graphic.LinearGradient(0, 0, 0, 1, [{
339
+ offset: 0,
340
+ color: "rgba(5, 221, 250, 0.3)"
341
+ }, {
342
+ offset: 1,
343
+ color: "rgba(5, 221, 250, 0.02)"
344
+ }]) }
345
+ }
346
+ ]
347
+ };
348
+ H.setOption(n);
349
+ }, Me = ({ rowIndex: e }) => {
350
+ if (e > 2) return "";
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" : "";
353
+ }, J = (e) => {
354
+ let t = u.ids[e] || u.ids.data;
355
+ return t?.id ? t : null;
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 = () => {
357
+ let e = u.mockData;
358
+ R.value = (e.list || []).map((e) => ({
359
+ ...e,
360
+ temperature: X(e.temperature)
361
+ })), L.value = e.dataTime || "";
362
+ }, X = (e) => {
363
+ let t = Number(e) || 25, n = F.value;
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;
365
+ }, Pe = async () => {
366
+ if (u.mock) return { imgArr: [{
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",
368
+ lngStart: 113.5,
369
+ latStart: 27.5,
370
+ lngEnd: 116.5,
371
+ latEnd: 29.5,
372
+ opacity: .6,
373
+ zIndex: 10
374
+ }] };
375
+ let e = J("colorMap");
376
+ if (!e) return console.warn("HdStationTem 缺少色斑图工作流配置"), null;
377
+ try {
378
+ return Y(await n({
379
+ id: e.id,
380
+ baseHttp: u.baseHttp,
381
+ reqType: e.reqType,
382
+ variables: { type: F.value },
383
+ isFormData: e.isFormData,
384
+ appKey: u.appKey,
385
+ appSalt: u.appSalt
386
+ })) || null;
387
+ } catch (e) {
388
+ return console.error("HdStationTem 色斑图数据加载失败", e), null;
389
+ }
390
+ }, Z = async (e) => {
391
+ if (e) {
392
+ let e = await Pe();
393
+ e && N("addImage", e);
394
+ } else N("clearImage");
395
+ };
396
+ de(F, () => {
397
+ I.value && Z(!0);
398
+ });
399
+ let Fe = async () => {
400
+ let e = J("data");
401
+ if (!e) {
402
+ console.warn("HdStationTem 缺少工作流配置");
403
+ return;
404
+ }
405
+ try {
406
+ let t = Y(await n({
407
+ id: e.id,
408
+ baseHttp: u.baseHttp,
409
+ reqType: e.reqType,
410
+ variables: { type: F.value },
411
+ isFormData: e.isFormData,
412
+ appKey: u.appKey,
413
+ appSalt: u.appSalt
414
+ }));
415
+ t && (R.value = Array.isArray(t.list) ? t.list : [], L.value = t.dataTime || "");
416
+ } catch (e) {
417
+ console.error("HdStationTem 数据加载失败", e);
418
+ }
419
+ }, Q = async () => {
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) => ({
423
+ 序号: n + 1,
424
+ 站名: t.stationName,
425
+ 站号: t.stationCode,
426
+ 温度: q(t.temperature, "℃"),
427
+ 类型: e,
428
+ 数据时间: t.monitorTime || L.value || ""
429
+ }));
430
+ new he.default({
431
+ fileName: `自动站温度监测_${e}_${(/* @__PURE__ */ new Date()).getTime()}`,
432
+ datas: [{
433
+ sheetData: t,
434
+ sheetName: "温度监测",
435
+ sheetFilter: [
436
+ "序号",
437
+ "站名",
438
+ "站号",
439
+ "温度",
440
+ "类型",
441
+ "数据时间"
442
+ ],
443
+ sheetHeader: [
444
+ "序号",
445
+ "站名",
446
+ "站号",
447
+ "温度",
448
+ "类型",
449
+ "数据时间"
450
+ ],
451
+ columnWidths: [
452
+ 8,
453
+ 18,
454
+ 12,
455
+ 12,
456
+ 12,
457
+ 20
458
+ ]
459
+ }]
460
+ }).saveExcel();
461
+ }, Le = () => {
462
+ $(), !(u.refreshInterval <= 0) && (U = setInterval(() => {
463
+ Q();
464
+ }, u.refreshInterval));
465
+ }, $ = () => {
466
+ U &&= (clearInterval(U), null);
467
+ };
468
+ return ce(() => {
469
+ r?.on("toComponent", (e) => {
470
+ e.componentName === "HdStationTem" && Q();
471
+ }), Q(), Le();
472
+ }), se(() => {
473
+ $(), H &&= (H.dispose(), null);
474
+ }), (t, n) => {
475
+ let r = i, a = ee, u = re, d = ne, f = te;
476
+ return fe((m(), s("div", ge, [
477
+ c("button", {
478
+ class: "HdStationTem-close",
479
+ onClick: Ce
480
+ }, [...n[1] ||= [c("span", null, "✕", -1)]]),
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", {
482
+ style: {
483
+ width: "100%",
484
+ "object-fit": "contain",
485
+ "margin-top": "4px"
486
+ },
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",
488
+ alt: ""
489
+ }, null, -1)]),
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,
493
+ class: "HdStationTem-checkbox",
494
+ onChange: Z
495
+ }, {
496
+ default: _(() => [...n[3] ||= [ae(" 色斑图 ", -1)]]),
497
+ _: 1
498
+ }, 8, ["modelValue"]), c("button", {
499
+ class: "HdStationTem-btn",
500
+ onClick: Ie
501
+ }, [l(a, null, {
502
+ default: _(() => [l(ue(me))]),
503
+ _: 1
504
+ }), n[4] ||= c("span", { class: "HdStationTem-btnText" }, "导出", -1)])])]), c("div", x, [c("div", S, [(m(), s(ie, null, le(W, (e) => c("button", {
505
+ key: e.value,
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))])])]),
509
+ c("div", w, [c("div", T, [l(d, {
510
+ data: G.value,
511
+ class: "HdStationTem-table",
512
+ height: e.tableHeight,
513
+ "empty-text": "暂无数据",
514
+ "row-class-name": Me,
515
+ onRowClick: we
516
+ }, {
517
+ default: _(() => [
518
+ l(u, {
519
+ label: "序号",
520
+ align: "center",
521
+ width: "60"
522
+ }, {
523
+ default: _(({ $index: e }) => [c("span", { class: p(["HdStationTem-rank", `HdStationTem-rank--${e + 1}`]) }, g(e + 1), 3)]),
524
+ _: 1
525
+ }),
526
+ l(u, {
527
+ prop: "stationName",
528
+ label: "站名",
529
+ align: "left",
530
+ "min-width": "80"
531
+ }),
532
+ l(u, {
533
+ prop: "stationCode",
534
+ label: "站号",
535
+ align: "center",
536
+ width: "80"
537
+ }),
538
+ l(u, {
539
+ label: "温度(℃)",
540
+ align: "center",
541
+ width: "90"
542
+ }, {
543
+ default: _(({ row: e }) => [c("span", { style: oe({ color: Se(e.temperature) }) }, g(q(e.temperature, "")), 5)]),
544
+ _: 1
545
+ }),
546
+ l(u, {
547
+ label: "趋势",
548
+ align: "center",
549
+ width: "60"
550
+ }, {
551
+ default: _(({ row: e }) => [c("span", {
552
+ class: "HdStationTem-viewLink",
553
+ onClick: pe((t) => Te(e), ["stop"])
554
+ }, "查看", 8, E)]),
555
+ _: 1
556
+ })
557
+ ]),
558
+ _: 1
559
+ }, 8, ["data", "height"])])]),
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
+ class: "HdStationTem-trendClose",
562
+ onClick: Ee
563
+ }, "✕")]), c("div", {
564
+ ref_key: "trendChartRef",
565
+ ref: V,
566
+ class: "HdStationTem-trendChart"
567
+ }, null, 512)])])) : o("", !0)
568
+ ])), [[f, P.value]]);
569
+ };
570
+ }
571
+ }), [["__scopeId", "data-v-90612d97"]]);
572
+ //#endregion
573
+ export { N as t };