nxd-plugin 1.7.97 → 1.7.98

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