nxd-plugin 1.7.97 → 1.7.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/chunks/{component-AiChat-CMbG8e28.mjs → component-AiChat-B2YoRfzz.mjs} +1 -1
  2. package/dist/chunks/{component-AqiMonitor-CVb99opd.mjs → component-AqiMonitor-DWhSDKFM.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-DbbqXqZE.mjs → component-ChartCumulativePre-CYVahvTN.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-hU5a_G6w.mjs → component-ChartServiceMaterial-CbiB7503.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-BCW6ohuO.mjs → component-Duty-CxH58EY9.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-DSp82HGZ.mjs → component-EarlyWarningStatistic-BsgcJent.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic2-DmHCmtaq.mjs → component-EarlyWarningStatistic2-CEnr2SX2.mjs} +2 -2
  8. package/dist/chunks/component-Forecast72h-6g0PcT0B.mjs +539 -0
  9. package/dist/chunks/{component-GeologyLiveAlarm-0P99V7KX.mjs → component-GeologyLiveAlarm-CzEt43gy.mjs} +2 -2
  10. package/dist/chunks/component-GridForecastMsg-B1CCDv2Y.mjs +203 -0
  11. package/dist/chunks/{component-HDSeaLegend-BSGtGcnh.mjs → component-HDSeaLegend-B2xekirw.mjs} +1 -1
  12. package/dist/chunks/component-HdCameraList-CEOhupnQ.mjs +393 -0
  13. package/dist/chunks/{component-HdForecastProducts-_2ttNo-z.mjs → component-HdForecastProducts-DaeNeMiI.mjs} +2 -2
  14. package/dist/chunks/component-HdHeatChart-DiG-hplN.mjs +372 -0
  15. package/dist/chunks/component-HdHeatChartDialog-C1tPPcVw.mjs +590 -0
  16. package/dist/chunks/component-HdHeatService-UxyMUQp4.mjs +480 -0
  17. package/dist/chunks/component-HdInsectDetailList-BiVgf4Nc.mjs +266 -0
  18. package/dist/chunks/component-HdInsectList-CToVsJiF.mjs +328 -0
  19. package/dist/chunks/{component-HdObservation-DV1mfQsB.mjs → component-HdObservation-BV5jDCZt.mjs} +44 -45
  20. package/dist/chunks/{component-HdPreSituation-DY6gsT_y.mjs → component-HdPreSituation-DY4j43V7.mjs} +6 -6
  21. package/dist/chunks/component-HdQxServiceEffects-DM-KlAru.mjs +262 -0
  22. package/dist/chunks/{component-HdRadarList-BQ1MH8GG.mjs → component-HdRadarList-BdXRt42m.mjs} +3 -3
  23. package/dist/chunks/{component-HdRadarTime-D7ySMzpg.mjs → component-HdRadarTime-OAbsHPlS.mjs} +2 -2
  24. package/dist/chunks/component-HdRisk-tQq0onmA.mjs +236 -0
  25. package/dist/chunks/component-HdSeaCase-DoWAhrNy.mjs +239 -0
  26. package/dist/chunks/{component-HdServiceMarterial-BgIt-ELd.mjs → component-HdServiceMarterial-nCfTCfyI.mjs} +77 -77
  27. package/dist/chunks/{component-HdServiceRequirements-B83V-lQN.mjs → component-HdServiceRequirements-S9zSof01.mjs} +45 -45
  28. package/dist/chunks/component-HdSoil-tr6IWswf.mjs +350 -0
  29. package/dist/chunks/component-HdSoilDetailList-DG-TzCl0.mjs +402 -0
  30. package/dist/chunks/{component-HdStationTem-DdMSzVEC.mjs → component-HdStationTem-DrPBR7fV.mjs} +77 -78
  31. package/dist/chunks/{component-HdSuggestion-CrvAGw81.mjs → component-HdSuggestion-DQO0InyO.mjs} +3 -3
  32. package/dist/chunks/component-HdThreeWeatherTrend-CElSAKJs.mjs +333 -0
  33. package/dist/chunks/component-HdWaveForcast-D3Hm8Dg3.mjs +241 -0
  34. package/dist/chunks/{component-HighQuality-Bsqgp8R-.mjs → component-HighQuality-C_W_iOrU.mjs} +7 -7
  35. package/dist/chunks/{component-HighWayEarlyWarningRed-D0uKUK3B.mjs → component-HighWayEarlyWarningRed-D5iSGN5l.mjs} +2 -2
  36. package/dist/chunks/{component-HighWayFreeze-sGJddgnr.mjs → component-HighWayFreeze-B9v5Z9Yd.mjs} +2 -2
  37. package/dist/chunks/{component-HighwayLiveAlarm-Wm2rCVBb.mjs → component-HighwayLiveAlarm-DjcOZUJv.mjs} +2 -2
  38. package/dist/chunks/{component-HighwayLiveAlarmNew-YjS0FM1d.mjs → component-HighwayLiveAlarmNew-C35RKvL1.mjs} +3 -3
  39. package/dist/chunks/{component-HighwayStations-DRfDmHmK.mjs → component-HighwayStations-U_rU4hJi.mjs} +2 -2
  40. package/dist/chunks/{component-HighwayWeatherForecast-Cp50--Dj.mjs → component-HighwayWeatherForecast-BD547juJ.mjs} +4 -4
  41. package/dist/chunks/{component-IframeWeb-HpaTePnW.mjs → component-IframeWeb-DMn6K9zk.mjs} +1 -1
  42. package/dist/chunks/{component-ImageGeneration-zj2WbvzB.mjs → component-ImageGeneration-BFSnXOdZ.mjs} +2 -2
  43. package/dist/chunks/{component-IntroducePic-BxDMkIyJ.mjs → component-IntroducePic-BmvED_mB.mjs} +2 -2
  44. package/dist/chunks/{component-LithiumBatteryMiningArea-BC05EqiO.mjs → component-LithiumBatteryMiningArea-BM_8uVPy.mjs} +2 -2
  45. package/dist/chunks/{component-MapPopup-DYsV0ICP.mjs → component-MapPopup-CRQjbIZT.mjs} +1 -1
  46. package/dist/chunks/{component-MaterialPreview-DJhj0Gh9.mjs → component-MaterialPreview-Dmg4LG8h.mjs} +2 -2
  47. package/dist/chunks/{component-PieLegend-BsDM9oA_.mjs → component-PieLegend-B90e9FMW.mjs} +1 -1
  48. package/dist/chunks/{component-PrecipitationRanking-B7gEEuCe.mjs → component-PrecipitationRanking-BamBChop.mjs} +9 -9
  49. package/dist/chunks/{component-RadarChart-V_2K97Yw.mjs → component-RadarChart-DrQnSK2_.mjs} +2 -2
  50. package/dist/chunks/{component-RadarLegend-DwjhHZ-N.mjs → component-RadarLegend-UaQXwEdl.mjs} +1 -1
  51. package/dist/chunks/{component-RadarShortTerm-aF13_Zcy.mjs → component-RadarShortTerm-B6DiXwjj.mjs} +4 -4
  52. package/dist/chunks/{component-RadarTime-ZN7o47Mu.mjs → component-RadarTime-CrWj-oVD.mjs} +2 -2
  53. package/dist/chunks/{component-RenderMarkdown-BX-kHqL2.mjs → component-RenderMarkdown-CSoLEsFv.mjs} +2 -2
  54. package/dist/chunks/{component-ReservoirLiveAlarm-WVVwwKYZ.mjs → component-ReservoirLiveAlarm-CJUDC3QW.mjs} +3 -3
  55. package/dist/chunks/{component-ServiceMaterial-9imbipjj.mjs → component-ServiceMaterial-DR7imvMZ.mjs} +2 -2
  56. package/dist/chunks/{component-ServiceMaterialsBtn-693xq1p7.mjs → component-ServiceMaterialsBtn-BWxBKKWn.mjs} +1 -1
  57. package/dist/chunks/{component-StationDialog-C859f8A-.mjs → component-StationDialog-2KObsuJ8.mjs} +4 -4
  58. package/dist/chunks/{component-StationList-BQHnyqox.mjs → component-StationList-CJ7XHlZl.mjs} +10 -14
  59. package/dist/chunks/{component-TimeBasedForecast-DH-OHwXc.mjs → component-TimeBasedForecast-B2ewC_QX.mjs} +4 -4
  60. package/dist/chunks/{component-Typhoon-C6jT8EFX.mjs → component-Typhoon-BQQCoEbU.mjs} +2 -2
  61. package/dist/chunks/{component-WarningLine-D3aVWmUZ.mjs → component-WarningLine-9Y5OJRig.mjs} +2 -2
  62. package/dist/chunks/{component-WarningSignal-CEe242B5.mjs → component-WarningSignal-uXiAUGTl.mjs} +3 -3
  63. package/dist/chunks/{component-WeatherForecast-BfqfB6UO.mjs → component-WeatherForecast-BIeLjzMw.mjs} +4 -4
  64. package/dist/chunks/{component-YCDataMonitor-DROgvkZ-.mjs → component-YCDataMonitor-D8jFTVaA.mjs} +2 -2
  65. package/dist/chunks/{component-YCDataService-BM5kQwax.mjs → component-YCDataService--R26h5UL.mjs} +4 -4
  66. package/dist/chunks/{component-YCHighWaySummary-Bh0IXiDd.mjs → component-YCHighWaySummary-CeYp4g4j.mjs} +2 -2
  67. package/dist/chunks/{component-YCHome-DwYK1Re4.mjs → component-YCHome-DQSDzxCG.mjs} +4 -4
  68. package/dist/chunks/{component-YCHomeLegend-BadxwkzL.mjs → component-YCHomeLegend-DiFftuY3.mjs} +1 -1
  69. package/dist/chunks/{component-YCLoginNew-D5u2lDWS.mjs → component-YCLoginNew-CFJSyKfV.mjs} +3 -3
  70. package/dist/components/Forecast72h/Forecast72h.vue.d.ts +2 -23
  71. package/dist/components/GridForecastMsg/GridForecastMsg.vue.d.ts +24 -0
  72. package/dist/components/HdCameraList/HdCameraList.vue.d.ts +6 -0
  73. package/dist/components/HdHeatChart/HdHeatChart.vue.d.ts +44 -0
  74. package/dist/components/HdHeatChart/mockData.d.ts +12 -0
  75. package/dist/components/HdHeatChartDialog/HdHeatChartDialog.vue.d.ts +52 -0
  76. package/dist/components/HdHeatChartDialog/mockData.d.ts +23 -0
  77. package/dist/components/HdHeatService/HdHeatService.vue.d.ts +8 -20
  78. package/dist/components/HdInsectDetailList/HdInsectDetailList.vue.d.ts +22 -0
  79. package/dist/components/HdInsectList/HdInsectList.vue.d.ts +57 -0
  80. package/dist/components/HdRisk/HdRisk.vue.d.ts +61 -0
  81. package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +4 -24
  82. package/dist/components/HdSoil/HdSoil.vue.d.ts +55 -0
  83. package/dist/components/HdSoilDetailList/HdSoilDetailList.vue.d.ts +30 -0
  84. package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +2 -20
  85. package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +4 -20
  86. package/dist/components/StationList/StationList.vue.d.ts +2 -2
  87. package/dist/index.d.ts +9 -1
  88. package/dist/nxd-plugin.mjs +70 -61
  89. package/dist/styles/component-Forecast72h.css +1 -1
  90. package/dist/styles/component-GridForecastMsg.css +1 -0
  91. package/dist/styles/component-HDSeaLegend.css +1 -1
  92. package/dist/styles/component-HdCameraList.css +1 -1
  93. package/dist/styles/component-HdForecastProducts.css +1 -1
  94. package/dist/styles/component-HdHeatChart.css +1 -0
  95. package/dist/styles/component-HdHeatChartDialog.css +1 -0
  96. package/dist/styles/component-HdHeatService.css +1 -1
  97. package/dist/styles/component-HdInsectDetailList.css +1 -0
  98. package/dist/styles/component-HdInsectList.css +1 -0
  99. package/dist/styles/component-HdObservation.css +1 -1
  100. package/dist/styles/component-HdPreSituation.css +1 -1
  101. package/dist/styles/component-HdQxServiceEffects.css +1 -0
  102. package/dist/styles/component-HdRadarList.css +1 -1
  103. package/dist/styles/component-HdRisk.css +1 -0
  104. package/dist/styles/component-HdSeaCase.css +1 -1
  105. package/dist/styles/component-HdServiceMarterial.css +1 -1
  106. package/dist/styles/component-HdServiceRequirements.css +1 -1
  107. package/dist/styles/component-HdSoil.css +1 -0
  108. package/dist/styles/component-HdSoilDetailList.css +1 -0
  109. package/dist/styles/component-HdStationTem.css +1 -1
  110. package/dist/styles/component-HdSuggestion.css +1 -1
  111. package/dist/styles/component-HdThreeWeatherTrend.css +1 -1
  112. package/dist/styles/component-HdWaveForcast.css +1 -1
  113. package/dist/styles/component-HighQuality.css +1 -1
  114. package/dist/styles/component-PrecipitationRanking.css +1 -1
  115. package/dist/styles/component-StationList.css +1 -1
  116. package/dist/styles/component-YCLoginNew.css +1 -1
  117. package/package.json +1 -1
  118. package/dist/chunks/component-Forecast72h-hi7bHW_J.mjs +0 -543
  119. package/dist/chunks/component-HdCameraList-Cz1OYJEN.mjs +0 -332
  120. package/dist/chunks/component-HdHeatService-BKK-w3Xc.mjs +0 -412
  121. package/dist/chunks/component-HdSeaCase-wnGV704s.mjs +0 -219
  122. package/dist/chunks/component-HdThreeWeatherTrend-Deliswz6.mjs +0 -394
  123. package/dist/chunks/component-HdWaveForcast-CL4Ghg7T.mjs +0 -271
@@ -0,0 +1,590 @@
1
+ import { n as e } from "./component-AqiMonitor-DWhSDKFM.mjs";
2
+ import { r as t } from "./component-AiChat-B2YoRfzz.mjs";
3
+ import "./component-HdHeatChart-DiG-hplN.mjs";
4
+ import { ElLoadingDirective as n } from "element-plus/es";
5
+ import { Fragment as r, Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, getCurrentInstance as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, onMounted as ee, openBlock as h, ref as g, renderList as _, toDisplayString as v, watch as te, withDirectives as ne, withModifiers as y } from "vue";
6
+ import * as b from "echarts";
7
+ import "element-plus/es/components/loading/style/css";
8
+ //#region src/components/HdHeatChartDialog/HdHeatChartDialog.vue?vue&type=script&setup=true&lang.ts
9
+ var re = { class: "HdHeatChartDialog-head-title" }, ie = { class: "HdHeatChartDialog-head-actions" }, ae = { class: "HdHeatChartDialog-info" }, oe = { class: "HdHeatChartDialog-info-daily" }, se = { class: "HdHeatChartDialog-info-dailyRow" }, ce = { class: "HdHeatChartDialog-info-dailyLabel" }, le = { class: "HdHeatChartDialog-info-dailyValue" }, ue = { class: "HdHeatChartDialog-info-dailyTime" }, de = { class: "HdHeatChartDialog-info-dailyTime" }, fe = { class: "HdHeatChartDialog-info-dailyValue" }, pe = { class: "HdHeatChartDialog-info-dailyRow" }, me = { class: "HdHeatChartDialog-info-dailyLabel" }, he = { class: "HdHeatChartDialog-info-dailyValue" }, ge = { class: "HdHeatChartDialog-info-dailyTime" }, _e = { class: "HdHeatChartDialog-info-dailyTime" }, ve = { class: "HdHeatChartDialog-info-dailyValue" }, ye = { class: "HdHeatChartDialog-summaryBox" }, be = { class: "HdHeatChartDialog-summaryHead" }, x = { class: "HdHeatChartDialog-summaryBody" }, S = { class: "HdHeatChartDialog-summaryRow" }, C = { class: "HdHeatChartDialog-summaryValue" }, w = { class: "HdHeatChartDialog-summaryTime" }, T = { class: "HdHeatChartDialog-summaryRow" }, E = { class: "HdHeatChartDialog-summaryValue" }, D = { class: "HdHeatChartDialog-summaryTime" }, O = { class: "HdHeatChartDialog-summaryRow" }, k = { class: "HdHeatChartDialog-summaryValue" }, A = { class: "HdHeatChartDialog-summaryRow" }, j = { class: "HdHeatChartDialog-summaryValue" }, M = { class: "HdHeatChartDialog-summaryTime" }, N = { class: "HdHeatChartDialog-chartWrap" }, xe = { class: "HdHeatChartDialog-levels" }, Se = { class: "HdHeatChartDialog-levels-label" }, P = /* @__PURE__ */ e(/* @__PURE__ */ u({
10
+ __name: "HdHeatChartDialog",
11
+ props: {
12
+ mock: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ baseHttp: { default: "" },
17
+ appKey: { default: "" },
18
+ appSalt: { default: "" },
19
+ ids: { default: () => ({}) },
20
+ refreshInterval: { default: 1e3 * 60 * 10 },
21
+ mockData: { default: () => ({}) }
22
+ },
23
+ emits: ["close"],
24
+ setup(e, { emit: u }) {
25
+ let P = d()?.appContext.config.globalProperties.$bus, F = e, Ce = u, I = g(""), L = g(!1), we = g(null), R = g(null), z = null, B = null, V = g({
26
+ title: "网格72小时逐三小时温度图",
27
+ initTime: "20时",
28
+ maxTemp: {
29
+ value: 0,
30
+ time: ""
31
+ },
32
+ minTemp: {
33
+ value: 0,
34
+ time: ""
35
+ },
36
+ highTemps: [],
37
+ lowTemps: [],
38
+ list: [],
39
+ summaryTip: "请做好供热准备工作!"
40
+ }), H = g(!1), U = g(!1), W = g({
41
+ x: 0,
42
+ y: 0
43
+ }), G = g({
44
+ x: 0,
45
+ y: 80
46
+ }), Te = a(() => ({
47
+ transform: `translate(calc(-50% + ${G.value.x}px), ${G.value.y}px)`,
48
+ transition: U.value ? "none" : "transform 0.1s"
49
+ })), Ee = a(() => {
50
+ let e = V.value.initTime ? `(${V.value.initTime})` : "";
51
+ return `${V.value.title || "网格72小时逐三小时温度图"}${e}`;
52
+ }), K = a(() => V.value.list || []), q = a(() => {
53
+ let e = K.value;
54
+ if (!e.length) return null;
55
+ let t = e.map((e) => e.temp), n = Math.max(...t), r = Math.min(...t), i = e.find((e) => e.temp === n) || e[0], a = e.find((e) => e.temp === r) || e[0], o = Number((t.reduce((e, t) => e + t, 0) / t.length).toFixed(1)), s = Number((n - r).toFixed(1));
56
+ return {
57
+ maxTemp: {
58
+ value: n.toFixed(1),
59
+ time: i.time
60
+ },
61
+ minTemp: {
62
+ value: r.toFixed(1),
63
+ time: a.time
64
+ },
65
+ avgTemp: V.value.avgTemp?.toFixed(1) ?? o.toFixed(1),
66
+ tempDiff: V.value.tempDiff?.toFixed(1) ?? s.toFixed(1),
67
+ tip: V.value.summaryTip || "请做好供热准备工作!"
68
+ };
69
+ }), De = a(() => {
70
+ let e = /* @__PURE__ */ new Map();
71
+ return K.value.forEach((t) => {
72
+ let n = t.time.split(" ")[0], r = e.get(n);
73
+ r ? (t.temp > r.max.temp && (r.max = t), t.temp < r.min.temp && (r.min = t)) : e.set(n, {
74
+ date: n,
75
+ max: t,
76
+ min: t
77
+ });
78
+ }), Array.from(e.values());
79
+ }), Oe = a(() => q.value ? {
80
+ date: "72小时",
81
+ max: {
82
+ time: q.value.maxTemp.time,
83
+ temp: Number(q.value.maxTemp.value),
84
+ label: "72h最高温"
85
+ },
86
+ min: {
87
+ time: q.value.minTemp.time,
88
+ temp: Number(q.value.minTemp.value),
89
+ label: "72h最低温"
90
+ }
91
+ } : null), ke = a(() => [Oe.value, ...De.value].filter((e) => e !== null)), Ae = [
92
+ {
93
+ label: ">10",
94
+ color: "#FF7D00"
95
+ },
96
+ {
97
+ label: "5-10",
98
+ color: "#FFD700"
99
+ },
100
+ {
101
+ label: "0-5",
102
+ color: "#FFFF00"
103
+ },
104
+ {
105
+ label: "-5-0",
106
+ color: "#00B4D8"
107
+ },
108
+ {
109
+ label: "-20-5",
110
+ color: "#165DFF"
111
+ }
112
+ ], je = () => {
113
+ Ce("close", "HdHeatChartDialog");
114
+ }, Me = (e) => {
115
+ let t = F.ids[e] || F.ids.data;
116
+ return t?.id ? t : null;
117
+ }, J = (e) => {
118
+ if (!e) return null;
119
+ let t = null;
120
+ if (t = 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, typeof t == "string") try {
121
+ t = JSON.parse(t);
122
+ } catch {
123
+ console.warn("HdHeatChartDialog output 不是 JSON 字符串", t);
124
+ }
125
+ return t;
126
+ }, Ne = () => ({
127
+ title: "网格72小时逐三小时温度图",
128
+ initTime: "20时",
129
+ maxTemp: {
130
+ value: 28.1,
131
+ time: "08-25 14时"
132
+ },
133
+ minTemp: {
134
+ value: 21.6,
135
+ time: "08-28 02时"
136
+ },
137
+ highTemps: [
138
+ {
139
+ value: 28.1,
140
+ time: "08-25 14时"
141
+ },
142
+ {
143
+ value: 27.9,
144
+ time: "08-26 20时"
145
+ },
146
+ {
147
+ value: 27,
148
+ time: "08-27 02时"
149
+ },
150
+ {
151
+ value: 23.1,
152
+ time: "08-28 08时"
153
+ }
154
+ ],
155
+ lowTemps: [
156
+ {
157
+ value: 26.9,
158
+ time: "08-25 08时"
159
+ },
160
+ {
161
+ value: 26.6,
162
+ time: "08-26 05时"
163
+ },
164
+ {
165
+ value: 22.9,
166
+ time: "08-27 23时"
167
+ },
168
+ {
169
+ value: 21.6,
170
+ time: "08-28 02时"
171
+ }
172
+ ],
173
+ list: F.mockData?.list?.length ? F.mockData.list : [
174
+ {
175
+ time: "08-25 20时",
176
+ temp: 26.5
177
+ },
178
+ {
179
+ time: "08-25 23时",
180
+ temp: 26.2
181
+ },
182
+ {
183
+ time: "08-26 02时",
184
+ temp: 25.8
185
+ },
186
+ {
187
+ time: "08-26 05时",
188
+ temp: 26.6
189
+ },
190
+ {
191
+ time: "08-26 08时",
192
+ temp: 26.9
193
+ },
194
+ {
195
+ time: "08-26 11时",
196
+ temp: 27.2
197
+ },
198
+ {
199
+ time: "08-26 14时",
200
+ temp: 28.1
201
+ },
202
+ {
203
+ time: "08-26 17时",
204
+ temp: 27.8
205
+ },
206
+ {
207
+ time: "08-26 20时",
208
+ temp: 27.9
209
+ },
210
+ {
211
+ time: "08-26 23时",
212
+ temp: 27.4
213
+ },
214
+ {
215
+ time: "08-27 02时",
216
+ temp: 27
217
+ },
218
+ {
219
+ time: "08-27 05时",
220
+ temp: 26.8
221
+ },
222
+ {
223
+ time: "08-27 08时",
224
+ temp: 26.5
225
+ },
226
+ {
227
+ time: "08-27 11时",
228
+ temp: 26.3
229
+ },
230
+ {
231
+ time: "08-27 14时",
232
+ temp: 26.1
233
+ },
234
+ {
235
+ time: "08-27 17时",
236
+ temp: 25.6
237
+ },
238
+ {
239
+ time: "08-27 20时",
240
+ temp: 24.8
241
+ },
242
+ {
243
+ time: "08-27 23时",
244
+ temp: 22.9
245
+ },
246
+ {
247
+ time: "08-28 02时",
248
+ temp: 21.6
249
+ },
250
+ {
251
+ time: "08-28 05时",
252
+ temp: 22.1
253
+ },
254
+ {
255
+ time: "08-28 08时",
256
+ temp: 23.1
257
+ },
258
+ {
259
+ time: "08-28 11时",
260
+ temp: 24.5
261
+ },
262
+ {
263
+ time: "08-28 14时",
264
+ temp: 25.2
265
+ },
266
+ {
267
+ time: "08-28 17时",
268
+ temp: 25
269
+ },
270
+ {
271
+ time: "08-28 20时",
272
+ temp: 24.6
273
+ }
274
+ ]
275
+ }), Pe = (e) => {
276
+ let t = e || {}, n = (e) => Array.isArray(e) ? e.map((e) => ({
277
+ time: e.time || e.time_label || e.obs_time || "",
278
+ temp: Number(e.temp) || 0
279
+ })) : [], r = (e) => e ? {
280
+ value: Number(e.value) || 0,
281
+ time: e.time || ""
282
+ } : {
283
+ value: 0,
284
+ time: ""
285
+ }, i = (e) => Array.isArray(e) ? e.map(r) : [], a = (e) => {
286
+ if (typeof e != "string") return e;
287
+ try {
288
+ return JSON.parse(e);
289
+ } catch {
290
+ return e;
291
+ }
292
+ }, o = n(a(t.list || t)), s = () => {
293
+ if (!o.length) return {
294
+ value: 0,
295
+ time: ""
296
+ };
297
+ let e = o.reduce((e, t) => t.temp > e.temp ? t : e, o[0]);
298
+ return {
299
+ value: e.temp,
300
+ time: e.time
301
+ };
302
+ }, c = () => {
303
+ if (!o.length) return {
304
+ value: 0,
305
+ time: ""
306
+ };
307
+ let e = o.reduce((e, t) => t.temp < e.temp ? t : e, o[0]);
308
+ return {
309
+ value: e.temp,
310
+ time: e.time
311
+ };
312
+ }, l = (e = 4) => [...o].sort((e, t) => t.temp - e.temp).slice(0, e).map((e) => ({
313
+ value: e.temp,
314
+ time: e.time
315
+ })), u = (e = 4) => [...o].sort((e, t) => e.temp - t.temp).slice(0, e).map((e) => ({
316
+ value: e.temp,
317
+ time: e.time
318
+ })), d = t.maxTemp || t.max_temp ? r(t.maxTemp || t.max_temp) : s(), f = t.minTemp || t.min_temp ? r(t.minTemp || t.min_temp) : c(), p = i(a(t.highTemps || t.high_temps)), m = i(a(t.lowTemps || t.low_temps));
319
+ return {
320
+ title: t.title || "网格72小时逐三小时温度图",
321
+ initTime: t.initTime || t.init_time || "",
322
+ maxTemp: d,
323
+ minTemp: f,
324
+ highTemps: p.length ? p : l(),
325
+ lowTemps: m.length ? m : u(),
326
+ summaryTip: t.summaryTip || t.summary_tip,
327
+ avgTemp: Number(t.avgTemp ?? t.avg_temp) || void 0,
328
+ tempDiff: Number(t.tempDiff ?? t.temp_diff) || void 0,
329
+ list: o
330
+ };
331
+ }, Fe = async () => {
332
+ let e = Me("data");
333
+ if (!e) {
334
+ console.warn("HdHeatChartDialog 缺少工作流配置");
335
+ return;
336
+ }
337
+ try {
338
+ let n = J(await t({
339
+ id: e.id,
340
+ baseHttp: F.baseHttp,
341
+ reqType: e.reqType,
342
+ variables: { serviceTypeID: I.value },
343
+ isFormData: e.isFormData,
344
+ appKey: F.appKey,
345
+ appSalt: F.appSalt
346
+ }));
347
+ n && (V.value = Pe(n));
348
+ } catch (e) {
349
+ console.error("HdHeatChartDialog 数据加载失败", e);
350
+ }
351
+ }, Y = async () => {
352
+ L.value = !0, F.mock ? V.value = Ne() : await Fe(), L.value = !1, Ie();
353
+ }, Ie = () => {
354
+ if (!R.value || !K.value.length) return;
355
+ z && z.dispose(), z = b.init(R.value);
356
+ let e = K.value.map((e) => e.time), t = K.value.map((e) => e.temp), n = {
357
+ backgroundColor: "transparent",
358
+ grid: {
359
+ top: 36,
360
+ right: 16,
361
+ bottom: 48,
362
+ left: 40
363
+ },
364
+ toolbox: {
365
+ right: 8,
366
+ top: 0,
367
+ itemSize: 14,
368
+ itemGap: 8,
369
+ iconStyle: { borderColor: "rgba(255,255,255,0.7)" },
370
+ emphasis: { iconStyle: { borderColor: "#0bc4e9" } },
371
+ feature: {
372
+ restore: { title: "还原" },
373
+ saveAsImage: {
374
+ title: "保存为图片",
375
+ name: "72小时温度图",
376
+ backgroundColor: "rgba(6, 32, 56, 0.95)"
377
+ }
378
+ }
379
+ },
380
+ tooltip: {
381
+ trigger: "axis",
382
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
383
+ borderColor: "rgba(64, 158, 255, 0.4)",
384
+ textStyle: {
385
+ color: "#fff",
386
+ fontSize: 11
387
+ },
388
+ formatter: (e) => {
389
+ let t = e[0];
390
+ return `${t.axisValue}<br/>${t.marker} 温度:${t.value}℃`;
391
+ }
392
+ },
393
+ xAxis: {
394
+ type: "category",
395
+ boundaryGap: !1,
396
+ data: e,
397
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
398
+ axisLabel: {
399
+ color: "rgba(255,255,255,0.7)",
400
+ fontSize: 10,
401
+ interval: "auto"
402
+ },
403
+ axisTick: { show: !1 }
404
+ },
405
+ yAxis: {
406
+ type: "value",
407
+ name: "温度(℃)",
408
+ nameTextStyle: {
409
+ color: "rgba(255,255,255,0.6)",
410
+ fontSize: 10,
411
+ padding: [
412
+ 0,
413
+ 0,
414
+ 0,
415
+ 4
416
+ ]
417
+ },
418
+ axisLine: { show: !1 },
419
+ axisLabel: {
420
+ color: "rgba(255,255,255,0.7)",
421
+ fontSize: 10
422
+ },
423
+ splitLine: {
424
+ show: !0,
425
+ lineStyle: { color: "rgba(255,255,255,0.1)" }
426
+ },
427
+ axisTick: { show: !1 }
428
+ },
429
+ dataZoom: [{
430
+ type: "slider",
431
+ show: !0,
432
+ xAxisIndex: 0,
433
+ bottom: 8,
434
+ height: 16,
435
+ start: 0,
436
+ end: 100,
437
+ borderColor: "rgba(255,255,255,0.1)",
438
+ fillerColor: "rgba(64, 158, 255, 0.2)",
439
+ handleStyle: { color: "#0bc4e9" },
440
+ textStyle: {
441
+ color: "rgba(255,255,255,0.5)",
442
+ fontSize: 9
443
+ },
444
+ brushSelect: !1
445
+ }, {
446
+ type: "inside",
447
+ xAxisIndex: 0,
448
+ zoomOnMouseWheel: !0,
449
+ moveOnMouseMove: !0,
450
+ moveOnMouseWheel: !0
451
+ }],
452
+ series: [{
453
+ name: "温度",
454
+ type: "line",
455
+ data: t,
456
+ smooth: !0,
457
+ symbol: "circle",
458
+ symbolSize: 5,
459
+ itemStyle: { color: "#FF9F0A" },
460
+ lineStyle: {
461
+ color: "#FF9F0A",
462
+ width: 2
463
+ },
464
+ areaStyle: { color: new b.graphic.LinearGradient(0, 0, 0, 1, [{
465
+ offset: 0,
466
+ color: "rgba(255, 159, 10, 0.25)"
467
+ }, {
468
+ offset: 1,
469
+ color: "rgba(255, 159, 10, 0)"
470
+ }]) }
471
+ }]
472
+ };
473
+ z.setOption(n);
474
+ }, Le = (e) => {
475
+ let t = e.target;
476
+ t.classList.contains("HdHeatChartDialog-head-close") || t.classList.contains("HdHeatChartDialog-head-btn") || (U.value = !0, W.value = {
477
+ x: e.clientX - G.value.x,
478
+ y: e.clientY - G.value.y
479
+ }, document.addEventListener("mousemove", X), document.addEventListener("mouseup", Z));
480
+ }, X = (e) => {
481
+ U.value && (G.value = {
482
+ x: e.clientX - W.value.x,
483
+ y: e.clientY - W.value.y
484
+ });
485
+ }, Z = () => {
486
+ U.value = !1, document.removeEventListener("mousemove", X), document.removeEventListener("mouseup", Z);
487
+ }, Q = () => {
488
+ z?.resize();
489
+ }, Re = () => {
490
+ $(), !(F.refreshInterval <= 0) && (B = setInterval(() => {
491
+ Y();
492
+ }, F.refreshInterval));
493
+ }, $ = () => {
494
+ B &&= (clearInterval(B), null);
495
+ };
496
+ return te(() => F.mockData, () => {
497
+ F.mock && Y();
498
+ }, { deep: !0 }), ee(() => {
499
+ P?.on("toComponent", (e) => {
500
+ e.componentName === "HdCameraList" && e.serviceTypeID && (I.value = e.serviceTypeID, Y());
501
+ }), Y(), Re(), window.addEventListener("resize", Q);
502
+ }), m(() => {
503
+ $(), window.removeEventListener("resize", Q), document.removeEventListener("mousemove", X), document.removeEventListener("mouseup", Z), z &&= (z.dispose(), null);
504
+ }), (e, t) => {
505
+ let a = n;
506
+ return h(), o(i, { to: "body" }, [ne((h(), c("div", {
507
+ ref_key: "wrapRef",
508
+ ref: we,
509
+ class: "HdHeatChartDialog",
510
+ style: p(Te.value),
511
+ "element-loading-background": "rgba(0, 0, 0, 0.5)"
512
+ }, [
513
+ t[13] ||= l("span", { class: "HdHeatChartDialog-corner HdHeatChartDialog-corner--tl" }, null, -1),
514
+ t[14] ||= l("span", { class: "HdHeatChartDialog-corner HdHeatChartDialog-corner--tr" }, null, -1),
515
+ t[15] ||= l("span", { class: "HdHeatChartDialog-corner HdHeatChartDialog-corner--bl" }, null, -1),
516
+ t[16] ||= l("span", { class: "HdHeatChartDialog-corner HdHeatChartDialog-corner--br" }, null, -1),
517
+ l("div", {
518
+ class: "HdHeatChartDialog-head",
519
+ onMousedown: Le
520
+ }, [l("div", re, v(Ee.value), 1), l("div", ie, [l("div", {
521
+ class: "HdHeatChartDialog-head-btn",
522
+ onClick: t[0] ||= y((e) => H.value = !0, ["stop"])
523
+ }, "总结"), l("div", {
524
+ class: "HdHeatChartDialog-head-close",
525
+ onClick: y(je, ["stop"])
526
+ }, [...t[3] ||= [l("span", null, "✕", -1)]])])], 32),
527
+ l("div", ae, [l("div", oe, [(h(!0), c(r, null, _(ke.value, (e, n) => (h(), c("div", {
528
+ key: `col-${n}`,
529
+ class: f(["HdHeatChartDialog-info-dailyCol", { "HdHeatChartDialog-info-dailyCol--overall": e.date === "72小时" }])
530
+ }, [l("div", se, [t[4] ||= l("img", {
531
+ class: "HdHeatChartDialog-info-icon HdHeatChartDialog-info-icon--up",
532
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAC3UlEQVR4Aeyau2pVQRSGJxZCOqvgrYmohUgqsZSkVLyAIBYKYmNloY14KZLCC0KMl6ASayuFvILJIyjYp7fxDfRbcA6EsHNmz6y1ZpPJhP9nyJ5Zt3/Wnuycsw+Eff7TBNjnDRBaBwzVAf9COAa/jXhkqDyG7IAvFH1jxDXGQTCIAOz6C6q9BMe4wrXF8S8lx+ICUKjs+tOOIpeYu9xx3fVSUQEo8DTVSOszdGKNNcc7Z5wuFhWAGuReP8S4G44y8QkWQzEB2Nm3VDUPY5DzYCm2yGq+iAAUf4eEH8C+WMTmat/FmnXuAlDIORKcdN8z3YnP2M52zhhedBWAAqbJ9SM8CFMh58H7VKPU9a4CkMw7eB7mQs4D1+cDNwHY/ftUfQ9qIc8H17VOxvY7RxcBKH6BQKvQCqv4PGXlbLsfcwFIdIYAH6Al5Dx4Y+lw7MtcAByvwLPQGnIePLd2aioAu/+EBG9BLzwjxk1L52YCkNg1EnsJvbFCrDNWQUwEIKGTJCStz+AOOQ+WraKYCEAyckCdYCyFi4j+2iKYWgASeUUiRZ7bibMdj4itPm9UApDAbTJ6DIfCMjnMaYKrBCCw3PsMg+EwkS/AbGgF2CByH7IsCzHf8r/G1yzPIyOVAFMhbMCFSQwhbMJcbE7yzdxD+DfXudipBBAHe51NgL2+g9r8q++AmEBNgJhCtc+3Dqh9h2P1tQ6IKVT7fOuA2nc4Vl/rgJhCtc+3Dqh9h2P1tQ6IKVT7fOuA2nY4tZ7WAamK1ba+RAf8Voimse0V1l0APrf/Tibyupu8NpPC2ZEt5n5wF0BSp5AtKF+ipHBLbL1ZRADvIjT+3QXg29tpOAfnEyk28qKlpr6orbsAZHAX/oQ/Eik2YouZH0oIIK/N5Vagse0Vs4QAvRIZalEToIDyv4jxB6ZCbMQ21S5pvXsH8Pd/Hc7AqUSKzXpSNRmL3QXIyKmoSROgqNwOwbQu/wMAAP//wIgwogAAAAZJREFUAwDF546BZOO1DAAAAABJRU5ErkJggg==",
533
+ alt: ""
534
+ }, null, -1), e.max.label ? (h(), c(r, { key: 0 }, [
535
+ l("span", ce, v(e.max.label), 1),
536
+ l("span", le, v(e.max.temp) + " ℃", 1),
537
+ l("span", ue, v(e.max.time), 1)
538
+ ], 64)) : (h(), c(r, { key: 1 }, [l("span", de, v(e.max.time), 1), l("span", fe, v(e.max.temp) + " ℃", 1)], 64))]), l("div", pe, [t[5] ||= l("img", {
539
+ class: "HdHeatChartDialog-info-icon HdHeatChartDialog-info-icon--down",
540
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAADYklEQVR4AeyZv2/TUBDH714bO0EMsFQQWIoKA0KdUBOngNoRxA8JqWIoEmJhYoAF8WNoB34IqZRCBajMTCDxL1CmdKUSOzsLA43ttPXxXlFapa1sv1+O6trKKXl+97179/HFfkoY7POjALDPGwCKDuhVB1S81jHH8z8LO3CejvZqHT3rgHViHwFwQtjaWnsBenT0BIDT8J8BwqWtmumKUw+ntsbZfcocgOO1JoDw8Y4SkaZdL7i847zlE5kCcM8FpwBE6+9eFQEsVGqt47vP2jmbKYBoncR3/VBMKdV11vc+Zt74VGYASl7wGgHHkisQ9wN/OtnPjEcmAEp1/xYC3IO0B+KUWw+upnXX8bMOoDS6chYR+SNPbpmE8KE84g/KqeS97QLwqIIRe8eX5XCTfVWjPvZGViTrbxWAC+EcAI6A8iHuB3b3B9YA8Gf6Xf5Yu6Nce0fI9wd8k3S9M9R93663AqA86o/z4ue3J1MeI827teCksj5GaBzAwQYNRBG+jcmpMlUlhq9UhEka4wDaEMzypGe4GX7x+0HDf2o4qNnfAxwvfMT3+ZOmF7kZj/CJU2/d2Bwb+GCsA5zGyjUAem5gTfEhkM06tfB0vFP6WSMA+B1/CKhPtH76zOqeVWA0oy7vVhoBQLhxgzrRHdrq6KLTCF6ayKANwPH8F0CUyb69q2CCB3x/MNl1TmGgBcBphDcB8CH06kCacWrhsE56LQAQRUM6yQ1ojyCjCzpxtABEAIt8x5doqgtMEXsudP1PqvGFTgvA2lJlcbVZHo8zJPouEqmY0MbF5nP3YfHwH5XYHY0WgE6QvfxeANjLV8/E2nPfAUmQCgBJhPI+X3RA3q9wUn1FByQRyvt80QF5v8JJ9RUdkEQo7/NFB+T9CifVV3RAEqG8zxcdkLcrLFtP0QGyxPLmb78DkP1UhqajTZnUOoB20/3CiAYjonEZExqhTVmHspt1AGJlwVLll/gTRcaERmhtWyYAbBehE98+AI8qTu3vcH/dH5MxoQGu1SkujdY6gBKGt4H1/2CI32RMaDa0aarQ8LEOACMaUF2fjjZtTusA0i6kV34FAPvk2TIB/ZbN81/DlmV1sv7WO6C95H5dbVYG2s0yytiGhmtlC5L1tw5AdkFZ+xcAsiZuOp9uvH8AAAD//yNLz6cAAAAGSURBVAMAdwRmkIQrBPIAAAAASUVORK5CYII=",
541
+ alt: ""
542
+ }, null, -1), e.min.label ? (h(), c(r, { key: 0 }, [
543
+ l("span", me, v(e.min.label), 1),
544
+ l("span", he, v(e.min.temp) + " ℃", 1),
545
+ l("span", ge, v(e.min.time), 1)
546
+ ], 64)) : (h(), c(r, { key: 1 }, [l("span", _e, v(e.min.time), 1), l("span", ve, v(e.min.temp) + " ℃", 1)], 64))])], 2))), 128))])]),
547
+ H.value && q.value ? (h(), c("div", {
548
+ key: 0,
549
+ class: "HdHeatChartDialog-summary",
550
+ onClick: t[2] ||= y((e) => H.value = !1, ["self"])
551
+ }, [l("div", ye, [l("div", be, [t[6] ||= l("span", null, "未来72小时气温总结", -1), l("span", {
552
+ class: "HdHeatChartDialog-summaryClose",
553
+ onClick: t[1] ||= (e) => H.value = !1
554
+ }, "✕")]), l("div", x, [
555
+ l("div", S, [
556
+ t[7] ||= l("span", { class: "HdHeatChartDialog-summaryIcon HdHeatChartDialog-summaryIcon--up" }, "▲", -1),
557
+ t[8] ||= l("span", { class: "HdHeatChartDialog-summaryLabel" }, "72小时最高温:", -1),
558
+ l("span", C, v(q.value.maxTemp.value) + " ℃", 1),
559
+ l("span", w, ", 发生时间" + v(q.value.maxTemp.time), 1)
560
+ ]),
561
+ l("div", T, [
562
+ t[9] ||= l("span", { class: "HdHeatChartDialog-summaryIcon HdHeatChartDialog-summaryIcon--down" }, "▼", -1),
563
+ t[10] ||= l("span", { class: "HdHeatChartDialog-summaryLabel" }, "72小时最低温:", -1),
564
+ l("span", E, v(q.value.minTemp.value) + " ℃", 1),
565
+ l("span", D, ", 发生时间" + v(q.value.minTemp.time), 1)
566
+ ]),
567
+ l("div", O, [t[11] ||= l("span", { class: "HdHeatChartDialog-summaryLabel" }, "72小时平均温:", -1), l("span", k, v(q.value.avgTemp) + "℃", 1)]),
568
+ l("div", A, [
569
+ t[12] ||= l("span", { class: "HdHeatChartDialog-summaryLabel" }, "温差:", -1),
570
+ l("span", j, v(q.value.tempDiff) + " ℃", 1),
571
+ l("span", M, ", " + v(q.value.tip), 1)
572
+ ])
573
+ ])])])) : s("", !0),
574
+ l("div", N, [l("div", {
575
+ ref_key: "chartRef",
576
+ ref: R,
577
+ class: "HdHeatChartDialog-chart"
578
+ }, null, 512), l("div", xe, [(h(), c(r, null, _(Ae, (e) => l("div", {
579
+ key: e.label,
580
+ class: "HdHeatChartDialog-levels-item"
581
+ }, [l("span", {
582
+ class: "HdHeatChartDialog-levels-block",
583
+ style: p({ background: e.color })
584
+ }, null, 4), l("span", Se, v(e.label), 1)])), 64))])])
585
+ ], 4)), [[a, L.value]])]);
586
+ };
587
+ }
588
+ }), [["__scopeId", "data-v-fbd04388"]]);
589
+ //#endregion
590
+ export { P as t };