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,480 @@
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 { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, getCurrentInstance as ee, nextTick as u, normalizeStyle as d, onMounted as te, onUnmounted as ne, openBlock as f, ref as p, renderList as m, toDisplayString as h, watch as g, withDirectives as re } from "vue";
5
+ import * as _ from "echarts";
6
+ //#region src/components/HdHeatService/HdHeatService.vue?vue&type=script&setup=true&lang.ts
7
+ var ie = { class: "HdHeatService" }, ae = {
8
+ key: 0,
9
+ class: "HdHeatService-card"
10
+ }, oe = {
11
+ key: 0,
12
+ class: "HdHeatService-banner"
13
+ }, se = ["src"], ce = { class: "HdHeatService-content" }, le = { class: "HdHeatService-stats" }, ue = { class: "HdHeatService-stat" }, de = { class: "HdHeatService-statLabel" }, fe = { class: "HdHeatService-statValue" }, pe = {
14
+ key: 0,
15
+ class: "HdHeatService-statUnit"
16
+ }, me = { class: "HdHeatService-stat" }, he = { class: "HdHeatService-statLabel" }, ge = { class: "HdHeatService-statValue" }, _e = {
17
+ key: 0,
18
+ class: "HdHeatService-statUnit"
19
+ }, ve = {
20
+ key: 1,
21
+ class: "HdHeatService-time"
22
+ }, ye = {
23
+ key: 1,
24
+ class: "HdHeatService-card"
25
+ }, be = {
26
+ key: 0,
27
+ class: "HdHeatService-banner"
28
+ }, xe = ["src"], Se = { class: "HdHeatService-content" }, Ce = { class: "HdHeatService-stats" }, v = { class: "HdHeatService-stat" }, y = { class: "HdHeatService-statLabel" }, b = {
29
+ class: "HdHeatService-statValue",
30
+ style: {
31
+ "font-weight": "400",
32
+ "font-size": "14px"
33
+ }
34
+ }, x = { class: "HdHeatService-stat" }, S = { class: "HdHeatService-statLabel" }, C = {
35
+ class: "HdHeatService-statValue",
36
+ style: {
37
+ "font-weight": "400",
38
+ "font-size": "14px"
39
+ }
40
+ }, w = {
41
+ key: 2,
42
+ class: "HdHeatService-card"
43
+ }, T = {
44
+ key: 0,
45
+ class: "HdHeatService-banner"
46
+ }, E = ["src"], D = { class: "HdHeatService-content" }, O = { class: "HdHeatService-stats" }, k = { class: "HdHeatService-stat" }, A = { class: "HdHeatService-statLabel" }, we = {
47
+ class: "HdHeatService-statValue",
48
+ style: {
49
+ "font-weight": "400",
50
+ "font-size": "14px"
51
+ }
52
+ }, Te = { class: "HdHeatService-stat" }, Ee = { class: "HdHeatService-statLabel" }, De = {
53
+ class: "HdHeatService-statValue",
54
+ style: {
55
+ "font-weight": "400",
56
+ "font-size": "14px"
57
+ }
58
+ }, Oe = {
59
+ key: 3,
60
+ "element-loading-text": "加载中...",
61
+ "element-loading-background": "rgba(0, 0, 0, 0.7)",
62
+ class: "HdHeatService-effectMask"
63
+ }, ke = { class: "HdHeatService-effectPanel" }, Ae = { class: "HdHeatService-effectHeader" }, je = { class: "HdHeatService-effectTitle" }, Me = {
64
+ key: 0,
65
+ class: "HdHeatService-effectSummary"
66
+ }, Ne = { class: "HdHeatService-effectSummaryLabel" }, Pe = {
67
+ key: 0,
68
+ class: "HdHeatService-effectSummaryUnit"
69
+ }, Fe = { class: "HdHeatService-effectChartTitle" }, j = /* @__PURE__ */ e(/* @__PURE__ */ l({
70
+ __name: "HdHeatService",
71
+ props: {
72
+ pageType: { default: "1" },
73
+ baseHttp: { default: "" },
74
+ appKey: { default: "" },
75
+ appSalt: { default: "" },
76
+ ids: { default: () => ({}) },
77
+ bgImage: { default: "" },
78
+ deviceCount: { default: 15 },
79
+ materialCount: { default: 100 },
80
+ serviceTime: { default: "2026年08月13日" },
81
+ effectTitle: { default: "服务成效" },
82
+ effectSummary: { default: () => [] },
83
+ effectCharts: { default: () => [] },
84
+ imgKey: { default: "" },
85
+ imgBaseUrl: { default: "" },
86
+ serviceType: { default: "" }
87
+ },
88
+ emits: ["close"],
89
+ setup(e, { emit: l }) {
90
+ let j = ee()?.appContext.config.globalProperties.$bus, M = e, Ie = l, N = p({
91
+ bgImage: "",
92
+ deviceCount: 0,
93
+ materialCount: 0,
94
+ serviceTime: "",
95
+ effectTitle: "",
96
+ effectSummary: [],
97
+ effectCharts: []
98
+ }), P = p(!1), F = p({}), I = p({}), L = p({
99
+ deviceData: "",
100
+ serviceCount: 0,
101
+ monitorCount: 0
102
+ }), R = p({
103
+ stationNum: 0,
104
+ serviceNum: 0
105
+ }), z = i(() => M.pageType === "1" ? {
106
+ deviceLabel: "供热气象观测设备",
107
+ materialLabel: "供热气象服务材料",
108
+ timePrefix: "服务时间:截止",
109
+ showEffect: !0
110
+ } : M.pageType === "2" ? {
111
+ deviceLabel: "观测设备(个)",
112
+ materialLabel: "服务次数(次)",
113
+ timePrefix: "",
114
+ showEffect: !1
115
+ } : {
116
+ deviceLabel: "实景监测(个)",
117
+ materialLabel: "服务次数(次)",
118
+ timePrefix: "",
119
+ showEffect: !0
120
+ }), B = p(!1), V = i(() => N.value.bgImage || M.bgImage), Le = i(() => M.serviceTime || N.value.serviceTime || ""), Re = i(() => M.effectTitle || N.value.effectTitle || "服务成效"), H = i(() => M.effectSummary.length ? M.effectSummary : N.value.effectSummary), U = i(() => M.effectCharts.length ? M.effectCharts : N.value.effectCharts), ze = i(() => ({ gridTemplateColumns: `repeat(${U.value.length || 1}, 1fr)` })), Be = (e, t) => {
121
+ e && (F.value[t] = e);
122
+ }, Ve = (e) => {
123
+ let t = e.data.map((e) => e.x), n = e.data.map((e) => e.y), r = e.color || "#5B7CF2", i = {
124
+ data: n,
125
+ itemStyle: { color: r },
126
+ label: {
127
+ show: e.showLabel !== !1,
128
+ position: "top",
129
+ color: "#fff",
130
+ fontSize: 12
131
+ }
132
+ }, a;
133
+ if (e.type === "bar") a = {
134
+ ...i,
135
+ type: "bar",
136
+ barWidth: e.barWidth || "40%"
137
+ };
138
+ else if (e.type === "area") a = {
139
+ ...i,
140
+ type: "line",
141
+ smooth: !0,
142
+ areaStyle: { color: new _.graphic.LinearGradient(0, 0, 0, 1, [{
143
+ offset: 0,
144
+ color: r
145
+ }, {
146
+ offset: 1,
147
+ color: "rgba(91, 124, 242, 0.1)"
148
+ }]) },
149
+ lineStyle: {
150
+ width: 2,
151
+ color: r
152
+ },
153
+ symbol: "circle",
154
+ symbolSize: 6
155
+ };
156
+ else if (e.type === "pie") return {
157
+ backgroundColor: "transparent",
158
+ tooltip: {
159
+ trigger: "item",
160
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
161
+ borderColor: "rgba(64, 158, 255, 0.4)",
162
+ textStyle: { color: "#fff" }
163
+ },
164
+ series: [{
165
+ type: "pie",
166
+ radius: ["40%", "70%"],
167
+ data: e.data.map((e) => ({
168
+ name: e.x,
169
+ value: e.y
170
+ })),
171
+ label: {
172
+ color: "#fff",
173
+ fontSize: 12
174
+ },
175
+ itemStyle: {
176
+ borderRadius: 4,
177
+ borderColor: "rgba(4, 18, 38, 0.96)",
178
+ borderWidth: 2
179
+ }
180
+ }]
181
+ };
182
+ else a = {
183
+ ...i,
184
+ type: "line",
185
+ smooth: !0,
186
+ lineStyle: {
187
+ width: 2,
188
+ color: r
189
+ },
190
+ symbol: "circle",
191
+ symbolSize: 6
192
+ };
193
+ return {
194
+ backgroundColor: "transparent",
195
+ grid: {
196
+ top: 32,
197
+ right: 16,
198
+ bottom: 24,
199
+ left: 48
200
+ },
201
+ tooltip: {
202
+ trigger: "axis",
203
+ backgroundColor: "rgba(6, 32, 56, 0.95)",
204
+ borderColor: "rgba(64, 158, 255, 0.4)",
205
+ textStyle: { color: "#fff" },
206
+ formatter: (t) => {
207
+ let n = Array.isArray(t) ? t[0] : t;
208
+ return `${n.name}<br/>${n.value}${e.yAxisName || ""}`;
209
+ }
210
+ },
211
+ xAxis: {
212
+ type: "category",
213
+ data: t,
214
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
215
+ axisLabel: {
216
+ color: "rgba(255,255,255,0.85)",
217
+ fontSize: 12
218
+ },
219
+ axisTick: { show: !1 },
220
+ splitLine: { show: !1 }
221
+ },
222
+ yAxis: {
223
+ type: "value",
224
+ name: e.yAxisName || "",
225
+ nameTextStyle: {
226
+ color: "rgba(255,255,255,0.7)",
227
+ fontSize: 11
228
+ },
229
+ axisLine: { show: !1 },
230
+ axisLabel: {
231
+ color: "rgba(255,255,255,0.7)",
232
+ fontSize: 11
233
+ },
234
+ splitLine: { show: !1 },
235
+ axisTick: { show: !1 }
236
+ },
237
+ series: [a]
238
+ };
239
+ }, W = () => {
240
+ U.value.forEach((e, t) => {
241
+ let n = F.value[t];
242
+ if (!n) return;
243
+ let r = I.value[t];
244
+ (!r || r.isDisposed()) && (r = _.init(n, void 0, { renderer: "canvas" }), I.value[t] = r), r.resize(), r.setOption(Ve(e), !0);
245
+ });
246
+ }, G = () => {
247
+ setTimeout(() => {
248
+ W();
249
+ }, 100);
250
+ }, K = () => {
251
+ Object.values(I.value).forEach((e) => {
252
+ e && !e.isDisposed() && e.dispose();
253
+ }), I.value = {}, F.value = {};
254
+ }, q = () => {
255
+ B.value = !0, P.value = !0, Q().finally(() => {
256
+ P.value = !1;
257
+ });
258
+ }, He = () => {
259
+ B.value = !1, K(), Ie("close", "HdQxServiceEffects");
260
+ }, J = (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, Y = (e) => {
261
+ if (!e) return [];
262
+ if (Array.isArray(e)) return e;
263
+ if (typeof e == "object") {
264
+ let t = Object.values(e);
265
+ if (t.length) return t;
266
+ }
267
+ return [];
268
+ }, Ue = (e) => `${e.getFullYear()}年${String(e.getMonth() + 1).padStart(2, "0")}月${String(e.getDate()).padStart(2, "0")}日`, We = (e) => {
269
+ if (!e) return null;
270
+ if (typeof e == "object") return e;
271
+ try {
272
+ return JSON.parse(e);
273
+ } catch {
274
+ return null;
275
+ }
276
+ }, Ge = (e) => e ? e.split("&&").map((e) => {
277
+ let t = e.match(/^(.*?)\{\{(.+?)\}\}(.*)$/);
278
+ return t ? {
279
+ color: "#05ddfa",
280
+ label: t[1],
281
+ value: t[2].trim(),
282
+ unit: t[3]
283
+ } : null;
284
+ }).filter(Boolean) : [], Ke = (e, t = []) => {
285
+ if (e && Array.isArray(e) && e.length) return e;
286
+ if (e && typeof e == "object") {
287
+ let t = Object.values(e);
288
+ if (t.length) return t;
289
+ }
290
+ return (t || []).flatMap((e) => Ge(e.top_title || ""));
291
+ }, qe = (e) => e ? (Array.isArray(e) ? e : Y(e)).map((e) => {
292
+ let t = e.chart_type || e.type || "bar", n = We(e.dataset) || [], r = (Array.isArray(n) ? n : []).map((e) => ({
293
+ x: e.years || e.year || e.x || e.name || "",
294
+ y: Number(e.amount || e.value || e.y || 0)
295
+ }));
296
+ return {
297
+ type: {
298
+ 柱状图: "bar",
299
+ 折线图: "line",
300
+ 面积图: "area",
301
+ 饼图: "pie"
302
+ }[t] || t || "bar",
303
+ title: e.bottom_title || e.title || "",
304
+ data: r,
305
+ color: e.color || "#5B7CF2",
306
+ showLabel: e.showLabel !== !1,
307
+ yAxisName: e.yAxisName || ""
308
+ };
309
+ }) : [], X = async () => {
310
+ let e = M.ids?.img;
311
+ if (!e?.id) {
312
+ console.warn("HdHeatService 缺少图片工作流配置");
313
+ return;
314
+ }
315
+ try {
316
+ let n = J(await t({
317
+ id: e.id,
318
+ baseHttp: M.baseHttp,
319
+ reqType: e.reqType,
320
+ variables: { configKey: M.imgKey },
321
+ isFormData: e.isFormData,
322
+ appKey: M.appKey,
323
+ appSalt: M.appSalt
324
+ }));
325
+ if (n) {
326
+ let e = n[0].file_url || n[0].url || "";
327
+ e && !e.startsWith("http") && M.imgBaseUrl && (e = `${M.imgBaseUrl}${e.startsWith("/") ? e : "/" + e}`), N.value.bgImage = e;
328
+ }
329
+ } catch (e) {
330
+ console.error("HdHeatService 图片加载失败", e);
331
+ }
332
+ }, Z = async () => {
333
+ let e = M.ids?.data;
334
+ if (!e?.id) {
335
+ console.warn("HdHeatService 缺少数据工作流配置");
336
+ return;
337
+ }
338
+ try {
339
+ let n = J(await t({
340
+ id: e.id,
341
+ baseHttp: M.baseHttp,
342
+ reqType: e.reqType,
343
+ variables: {},
344
+ isFormData: e.isFormData,
345
+ appKey: M.appKey,
346
+ appSalt: M.appSalt
347
+ }));
348
+ console.log(n, "output"), n && (M.pageType === "2" ? (L.value.deviceData = n.farmDeviceNum && n.stationNum ? n.farmDeviceNum + "(农)+" + n.stationNum + "(气)" : "", L.value.serviceCount = n.serviceTimes ?? n.serviceNum ?? 0) : M.pageType === "3" && (L.value.monitorCount = n.monitorNum ?? 0, L.value.serviceCount = n.serviceTimes ?? n.serviceNum ?? 0));
349
+ } catch (e) {
350
+ console.error("HdHeatService 数据加载失败", e);
351
+ }
352
+ }, Je = async () => {
353
+ P.value = !0;
354
+ let e = M.ids?.heat;
355
+ if (e?.id) try {
356
+ let n = J(await t({
357
+ id: e.id,
358
+ baseHttp: M.baseHttp,
359
+ reqType: e.reqType,
360
+ variables: {},
361
+ isFormData: e.isFormData,
362
+ appKey: M.appKey,
363
+ appSalt: M.appSalt
364
+ }));
365
+ n && (R.value.stationNum = n.stationNum || 0, R.value.serviceNum = n.serviceNum || 0);
366
+ } catch (e) {
367
+ console.error("HdHeatService 供热数据加载失败", e);
368
+ } finally {
369
+ P.value = !1;
370
+ }
371
+ }, Q = async () => {
372
+ P.value = !0;
373
+ let e = M.ids?.chart;
374
+ if (e?.id) try {
375
+ let n = J(await t({
376
+ id: e.id,
377
+ baseHttp: M.baseHttp,
378
+ reqType: e.reqType,
379
+ variables: { categoryType: M.serviceType },
380
+ isFormData: e.isFormData,
381
+ appKey: M.appKey,
382
+ appSalt: M.appSalt
383
+ }));
384
+ if (n) {
385
+ let e = n.charts || n.effectCharts || Y(n);
386
+ N.value.effectTitle = n.title || n.effectTitle || N.value.effectTitle || "", N.value.effectCharts = qe(e) || N.value.effectCharts || [], N.value.effectSummary = Ke(n.summary || n.effectSummary, e) || N.value.effectSummary || [];
387
+ }
388
+ } catch (e) {
389
+ console.error("HdHeatService 成效图表加载失败", e);
390
+ } finally {
391
+ P.value = !1;
392
+ }
393
+ }, Ye = async () => {
394
+ await X(), M.pageType === "1" ? (await Z(), await Je(), await Q()) : M.pageType === "2" ? (await Z(), N.value.serviceTime = Ue(/* @__PURE__ */ new Date())) : (await Z(), await Q());
395
+ }, $ = async () => {
396
+ await Ye();
397
+ };
398
+ return te(() => {
399
+ j?.on("toComponent", (e) => {
400
+ e.componentName === "HdHeatService" && $();
401
+ }), $(), window.addEventListener("resize", W);
402
+ }), ne(() => {
403
+ K(), window.removeEventListener("resize", W);
404
+ }), g(B, async (e) => {
405
+ e && (await u(), G());
406
+ }), g(U, async () => {
407
+ await u(), G();
408
+ }, { deep: !0 }), (t, i) => {
409
+ let l = n;
410
+ return f(), o("div", ie, [e.pageType == "1" ? (f(), o("div", ae, [V.value ? (f(), o("div", oe, [s("img", {
411
+ src: V.value,
412
+ alt: "供热服务"
413
+ }, null, 8, se)])) : a("", !0), s("div", ce, [
414
+ s("div", le, [
415
+ s("div", ue, [s("div", de, h(z.value.deviceLabel), 1), s("div", fe, [c(h(R.value.stationNum) + " ", 1), e.pageType == "1" ? (f(), o("span", pe, "个")) : a("", !0)])]),
416
+ i[0] ||= s("div", { class: "HdHeatService-divider" }, null, -1),
417
+ s("div", me, [s("div", he, h(z.value.materialLabel), 1), s("div", ge, [c(h(R.value.serviceNum) + " ", 1), e.pageType == "1" ? (f(), o("span", _e, "份")) : a("", !0)])])
418
+ ]),
419
+ z.value.showEffect ? (f(), o("button", {
420
+ key: 0,
421
+ class: "HdHeatService-effectBtn",
422
+ onClick: q
423
+ }, " 服务成效 ")) : a("", !0),
424
+ z.value.timePrefix ? (f(), o("div", ve, h(z.value.timePrefix) + h(Le.value), 1)) : a("", !0)
425
+ ])])) : e.pageType == "2" ? (f(), o("div", ye, [V.value ? (f(), o("div", be, [s("img", {
426
+ src: V.value,
427
+ alt: ""
428
+ }, null, 8, xe)])) : a("", !0), s("div", Se, [s("div", Ce, [
429
+ s("div", v, [s("div", y, h(z.value.deviceLabel), 1), s("div", b, h(L.value.deviceData), 1)]),
430
+ i[1] ||= s("div", { class: "HdHeatService-divider" }, null, -1),
431
+ s("div", x, [s("div", S, h(z.value.materialLabel), 1), s("div", C, h(L.value.serviceCount >= 100 ? L.value.serviceCount + "+" : L.value.serviceCount), 1)])
432
+ ])])])) : e.pageType == "3" ? (f(), o("div", w, [V.value ? (f(), o("div", T, [s("img", {
433
+ src: V.value,
434
+ alt: ""
435
+ }, null, 8, E)])) : a("", !0), s("div", D, [s("div", O, [
436
+ s("div", k, [s("div", A, h(z.value.deviceLabel), 1), s("div", we, h(L.value.monitorCount), 1)]),
437
+ i[2] ||= s("div", { class: "HdHeatService-divider" }, null, -1),
438
+ s("div", Te, [s("div", Ee, h(z.value.materialLabel), 1), s("div", De, h(L.value.serviceCount >= 100 ? L.value.serviceCount + "+" : L.value.serviceCount), 1)])
439
+ ]), z.value.showEffect ? (f(), o("button", {
440
+ key: 0,
441
+ class: "HdHeatService-effectBtn",
442
+ onClick: q
443
+ }, " 服务成效 ")) : a("", !0)])])) : a("", !0), B.value ? re((f(), o("div", Oe, [s("div", ke, [
444
+ s("button", {
445
+ class: "HdHeatService-effectClose",
446
+ onClick: He
447
+ }, [...i[3] ||= [s("span", null, "✕", -1)]]),
448
+ s("div", Ae, [s("div", je, h(Re.value), 1)]),
449
+ H.value.length ? (f(), o("div", Me, [(f(!0), o(r, null, m(H.value, (e, t) => (f(), o("div", {
450
+ key: t,
451
+ class: "HdHeatService-effectSummaryItem"
452
+ }, [
453
+ s("span", {
454
+ class: "HdHeatService-effectSummaryDot",
455
+ style: d({ background: e.color })
456
+ }, null, 4),
457
+ s("span", Ne, h(e.label), 1),
458
+ s("span", {
459
+ class: "HdHeatService-effectSummaryValue",
460
+ style: d({ color: e.color })
461
+ }, h(e.value), 5),
462
+ e.unit ? (f(), o("span", Pe, h(e.unit), 1)) : a("", !0)
463
+ ]))), 128))])) : a("", !0),
464
+ s("div", {
465
+ class: "HdHeatService-effectCharts",
466
+ style: d(ze.value)
467
+ }, [(f(!0), o(r, null, m(U.value, (e, t) => (f(), o("div", {
468
+ key: t,
469
+ class: "HdHeatService-effectChartWrap"
470
+ }, [s("div", {
471
+ ref_for: !0,
472
+ ref: (e) => Be(e, t),
473
+ class: "HdHeatService-effectChart"
474
+ }, null, 512), s("div", Fe, h(e.title), 1)]))), 128))], 4)
475
+ ])])), [[l, P.value]]) : a("", !0)]);
476
+ };
477
+ }
478
+ }), [["__scopeId", "data-v-14de3cea"]]);
479
+ //#endregion
480
+ export { j as t };