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,372 @@
1
+ import { n as e } from "./component-AqiMonitor-DWhSDKFM.mjs";
2
+ import { r as t } from "./component-AiChat-B2YoRfzz.mjs";
3
+ import { ElLoadingDirective as n } from "element-plus/es";
4
+ import { computed as r, createElementBlock as i, createElementVNode as a, defineComponent as o, onBeforeUnmount as s, onMounted as c, openBlock as l, ref as u, toDisplayString as d, watch as f, withDirectives as p } from "vue";
5
+ import * as m from "echarts";
6
+ import "element-plus/es/components/loading/style/css";
7
+ //#region src/assets/img/hd/up.png
8
+ var h = "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==", g = "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=", _ = {
9
+ class: "HdHeatChart",
10
+ "element-loading-background": "rgba(0, 0, 0, 0.5)"
11
+ }, v = { class: "HdHeatChart-header" }, y = { class: "HdHeatChart-headerContent" }, b = { class: "HdHeatChart-title" }, x = { class: "HdHeatChart-subTitle" }, S = /* @__PURE__ */ e(/* @__PURE__ */ o({
12
+ __name: "HdHeatChart",
13
+ props: {
14
+ title: { default: "预报温度与供热预测" },
15
+ mock: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ baseHttp: { default: "" },
20
+ appKey: { default: "" },
21
+ appSalt: { default: "" },
22
+ ids: { default: () => ({}) },
23
+ refreshInterval: { default: 1e3 * 60 * 10 },
24
+ days: { default: 10 },
25
+ mockData: { default: () => ({
26
+ dataTime: "2024-04-10 08时",
27
+ list: []
28
+ }) }
29
+ },
30
+ emits: ["close"],
31
+ setup(e, { emit: o }) {
32
+ let S = e, C = o, w = u(!1), T = u(null), E = null, D = null, O = u({
33
+ dataTime: "",
34
+ list: []
35
+ }), k = r(() => O.value.list || []), A = () => {
36
+ C("close", "HdHeatChart");
37
+ }, j = (e) => {
38
+ let t = S.ids[e] || S.ids.data;
39
+ return t?.id ? t : null;
40
+ }, M = (e) => {
41
+ if (!e) return null;
42
+ let t = null;
43
+ 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 {
44
+ t = JSON.parse(t);
45
+ } catch {
46
+ console.warn("HdHeatChart output 不是 JSON 字符串", t);
47
+ }
48
+ return t && Array.isArray(t.data) ? t.data : t;
49
+ }, N = () => ({
50
+ dataTime: S.mockData?.dataTime || "2024-04-10 08时",
51
+ list: S.mockData?.list?.length ? S.mockData.list : [
52
+ {
53
+ date: "04-10",
54
+ temp: 26,
55
+ predictLoad: 582.98,
56
+ change: "flat"
57
+ },
58
+ {
59
+ date: "04-11",
60
+ temp: 25,
61
+ predictLoad: 568.07,
62
+ change: "down"
63
+ },
64
+ {
65
+ date: "04-12",
66
+ temp: 25,
67
+ predictLoad: 592.21,
68
+ change: "up"
69
+ },
70
+ {
71
+ date: "04-13",
72
+ temp: 23,
73
+ predictLoad: 580.05,
74
+ change: "down"
75
+ },
76
+ {
77
+ date: "04-14",
78
+ temp: 24,
79
+ predictLoad: 590.4,
80
+ change: "up"
81
+ },
82
+ {
83
+ date: "04-15",
84
+ temp: 25,
85
+ predictLoad: 587.32,
86
+ change: "down"
87
+ },
88
+ {
89
+ date: "04-16",
90
+ temp: 25,
91
+ predictLoad: 582.8,
92
+ change: "down"
93
+ },
94
+ {
95
+ date: "04-17",
96
+ temp: 25,
97
+ predictLoad: 588.69,
98
+ change: "up"
99
+ },
100
+ {
101
+ date: "04-18",
102
+ temp: 25,
103
+ predictLoad: 547.43,
104
+ change: "down"
105
+ },
106
+ {
107
+ date: "04-19",
108
+ temp: 24,
109
+ predictLoad: 484.49,
110
+ change: "down"
111
+ }
112
+ ].slice(0, S.days)
113
+ }), P = (e) => {
114
+ if (!Array.isArray(e)) return [];
115
+ let t = e.map((e) => ({
116
+ date: e.day || e.date || "",
117
+ temp: Number(e.temperature ?? e.temp) || 0,
118
+ predictLoad: Number(e.forcastAll ?? e.predictLoad ?? e.predict_load) || 0,
119
+ change: "flat"
120
+ }));
121
+ return t.map((e, n) => {
122
+ if (n === 0) return e;
123
+ let r = t[n - 1];
124
+ return e.predictLoad > r.predictLoad ? e.change = "up" : e.predictLoad < r.predictLoad && (e.change = "down"), e;
125
+ });
126
+ }, F = async () => {
127
+ let e = j("data");
128
+ if (!e) {
129
+ console.warn("HdHeatChart 缺少工作流配置");
130
+ return;
131
+ }
132
+ try {
133
+ let n = M(await t({
134
+ id: e.id,
135
+ baseHttp: S.baseHttp,
136
+ reqType: e.reqType,
137
+ variables: { days: S.days },
138
+ isFormData: e.isFormData,
139
+ appKey: S.appKey,
140
+ appSalt: S.appSalt
141
+ }));
142
+ n && (O.value = {
143
+ dataTime: n.dataTime || "",
144
+ list: P(n)
145
+ });
146
+ } catch (e) {
147
+ console.error("HdHeatChart 数据加载失败", e);
148
+ }
149
+ }, I = async () => {
150
+ w.value = !0, S.mock ? O.value = N() : await F(), w.value = !1, z();
151
+ }, L = (e) => e === "up" ? `image://${h}` : e === "down" ? `image://${g}` : "", R = (e) => e === "down" ? 180 : 0, z = () => {
152
+ if (!T.value || !k.value.length) return;
153
+ E && E.dispose(), E = m.init(T.value);
154
+ let e = k.value, t = e.map((e) => e.date), n = e.map((e) => e.temp), r = e.map((e) => e.predictLoad), i = Math.max(...r), a = Math.min(...r), o = (i - a) * .2 || i * .1, s = Math.max(...n), c = Math.min(...n), l = (s - c) * .5 || 5, u = {
155
+ backgroundColor: "transparent",
156
+ grid: {
157
+ top: 48,
158
+ right: 44,
159
+ bottom: 40,
160
+ left: 44
161
+ },
162
+ legend: [{
163
+ data: ["室外温度", "预测负荷"],
164
+ top: 4,
165
+ left: "center",
166
+ itemWidth: 12,
167
+ itemHeight: 8,
168
+ itemGap: 12,
169
+ textStyle: {
170
+ color: "rgba(255,255,255,0.85)",
171
+ fontSize: 10
172
+ }
173
+ }, {
174
+ data: ["预测负荷较上一日上升", "预测负荷较上一日下降"],
175
+ top: 4,
176
+ right: 78,
177
+ orient: "vertical",
178
+ itemWidth: 10,
179
+ itemHeight: 10,
180
+ itemGap: 4,
181
+ textStyle: {
182
+ color: "rgba(255,255,255,0.85)",
183
+ fontSize: 9
184
+ }
185
+ }],
186
+ tooltip: {
187
+ trigger: "axis",
188
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
189
+ borderColor: "rgba(64, 158, 255, 0.4)",
190
+ textStyle: { color: "#fff" },
191
+ formatter: (e) => `${e[0]?.axisValue || ""}<br/>${e.filter((e) => e.seriesName !== "预测负荷较上一日上升" && e.seriesName !== "预测负荷较上一日下降").map((e) => {
192
+ let t = e.seriesName === "室外温度" ? "℃" : "GJ";
193
+ return `${e.marker} ${e.seriesName}:${e.value}${t}`;
194
+ }).join("<br/>")}`
195
+ },
196
+ xAxis: {
197
+ type: "category",
198
+ data: t,
199
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
200
+ axisLabel: {
201
+ color: "rgba(255,255,255,0.7)",
202
+ fontSize: 9,
203
+ formatter: (t, n) => `{date|${t}}\n{temp|(${e[n]?.temp}℃)}`,
204
+ rich: {
205
+ date: {
206
+ color: "rgba(255,255,255,0.85)",
207
+ fontSize: 9,
208
+ lineHeight: 10
209
+ },
210
+ temp: {
211
+ color: "rgba(255,255,255,0.5)",
212
+ fontSize: 9,
213
+ lineHeight: 10
214
+ }
215
+ }
216
+ },
217
+ axisTick: { show: !1 }
218
+ },
219
+ yAxis: [{
220
+ type: "value",
221
+ name: "单位(GJ)",
222
+ min: Math.max(0, Math.floor(a - o)),
223
+ max: Math.ceil(i + o),
224
+ nameTextStyle: {
225
+ color: "rgba(255,255,255,0.6)",
226
+ fontSize: 9,
227
+ padding: [
228
+ 0,
229
+ 0,
230
+ 0,
231
+ 4
232
+ ]
233
+ },
234
+ axisLine: { show: !1 },
235
+ axisLabel: {
236
+ color: "rgba(255,255,255,0.7)",
237
+ fontSize: 9
238
+ },
239
+ splitLine: { show: !1 },
240
+ axisTick: { show: !1 }
241
+ }, {
242
+ type: "value",
243
+ name: "单位(℃)",
244
+ min: Math.floor(c - l),
245
+ max: Math.ceil(s + l),
246
+ nameTextStyle: {
247
+ color: "rgba(255,255,255,0.6)",
248
+ fontSize: 9,
249
+ padding: [
250
+ 0,
251
+ 4,
252
+ 0,
253
+ 0
254
+ ]
255
+ },
256
+ axisLine: { show: !1 },
257
+ axisLabel: {
258
+ color: "rgba(255,255,255,0.7)",
259
+ fontSize: 9
260
+ },
261
+ splitLine: { show: !1 },
262
+ axisTick: { show: !1 }
263
+ }],
264
+ series: [
265
+ {
266
+ name: "预测负荷",
267
+ type: "bar",
268
+ barWidth: 10,
269
+ data: r,
270
+ label: {
271
+ show: !0,
272
+ position: "inside",
273
+ color: "#fff",
274
+ fontSize: 8,
275
+ rotate: 90,
276
+ formatter: "{c}"
277
+ },
278
+ itemStyle: {
279
+ color: new m.graphic.LinearGradient(0, 0, 0, 1, [{
280
+ offset: 0,
281
+ color: "#FF7D00"
282
+ }, {
283
+ offset: 1,
284
+ color: "#F53F3F"
285
+ }]),
286
+ borderRadius: [
287
+ 2,
288
+ 2,
289
+ 0,
290
+ 0
291
+ ]
292
+ },
293
+ markPoint: {
294
+ symbolSize: [12, 14],
295
+ symbolOffset: [0, -14],
296
+ label: { show: !1 },
297
+ data: e.map((e, t) => ({
298
+ coord: [t, e.predictLoad],
299
+ value: "",
300
+ symbol: L(e.change),
301
+ symbolRotate: R(e.change)
302
+ })).filter((e) => e.symbol !== "")
303
+ }
304
+ },
305
+ {
306
+ name: "室外温度",
307
+ type: "line",
308
+ yAxisIndex: 1,
309
+ data: n,
310
+ smooth: !0,
311
+ symbol: "circle",
312
+ symbolSize: 5,
313
+ itemStyle: { color: "#F53F3F" },
314
+ lineStyle: {
315
+ color: "#F53F3F",
316
+ width: 1.5
317
+ }
318
+ },
319
+ {
320
+ name: "预测负荷较上一日上升",
321
+ type: "scatter",
322
+ data: [],
323
+ symbol: `image://${h}`,
324
+ symbolSize: [10, 12],
325
+ itemStyle: { color: "#F53F3F" }
326
+ },
327
+ {
328
+ name: "预测负荷较上一日下降",
329
+ type: "scatter",
330
+ data: [],
331
+ symbol: `image://${g}`,
332
+ symbolRotate: 180,
333
+ symbolSize: [10, 12],
334
+ itemStyle: { color: "#165DFF" }
335
+ }
336
+ ]
337
+ };
338
+ E.setOption(u);
339
+ }, B = () => {
340
+ V(), !(S.refreshInterval <= 0) && (D = setInterval(() => {
341
+ I();
342
+ }, S.refreshInterval));
343
+ }, V = () => {
344
+ D &&= (clearInterval(D), null);
345
+ }, H = () => {
346
+ E?.resize();
347
+ };
348
+ return f(() => S.mockData, () => {
349
+ S.mock && I();
350
+ }, { deep: !0 }), c(() => {
351
+ I(), B(), window.addEventListener("resize", H);
352
+ }), s(() => {
353
+ V(), window.removeEventListener("resize", H), E &&= (E.dispose(), null);
354
+ }), (t, r) => {
355
+ let o = n;
356
+ return p((l(), i("div", _, [
357
+ a("button", {
358
+ class: "HdHeatChart-close",
359
+ onClick: A
360
+ }, [...r[0] ||= [a("span", null, "✕", -1)]]),
361
+ a("div", v, [a("div", y, [a("h3", b, d(e.title), 1), a("span", x, "(" + d(e.days) + "天)", 1)])]),
362
+ a("div", {
363
+ ref_key: "chartRef",
364
+ ref: T,
365
+ class: "HdHeatChart-chart"
366
+ }, null, 512)
367
+ ])), [[o, w.value]]);
368
+ };
369
+ }
370
+ }), [["__scopeId", "data-v-248c6687"]]);
371
+ //#endregion
372
+ export { g as n, h as r, S as t };