nxd-plugin 1.7.82 → 1.7.83

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