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
@@ -1,412 +0,0 @@
1
- import { n as e } from "./component-AqiMonitor-CVb99opd.mjs";
2
- import { r as t } from "./component-AiChat-CMbG8e28.mjs";
3
- import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, getCurrentInstance as u, nextTick as d, normalizeStyle as f, onMounted as p, onUnmounted as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, watch as y } from "vue";
4
- import * as b from "echarts";
5
- //#region src/components/HdQxServiceEffects/HdQxServiceEffects.vue?vue&type=script&setup=true&lang.ts
6
- var x = { class: "HdQxServiceEffects" }, S = { class: "HdQxServiceEffect" }, C = { class: "HdQxServiceEffect-header" }, w = { class: "HdQxServiceEffect-title" }, T = {
7
- key: 0,
8
- class: "HdQxServiceEffect-summary"
9
- }, E = { class: "HdQxServiceEffect-summaryLabel" }, D = {
10
- key: 0,
11
- class: "HdQxServiceEffect-summaryUnit"
12
- }, O = { class: "HdQxServiceEffect-chartTitle" }, k = /* @__PURE__ */ e(/* @__PURE__ */ l({
13
- __name: "HdQxServiceEffects",
14
- props: {
15
- mock: {
16
- type: Boolean,
17
- default: !0
18
- },
19
- baseHttp: { default: "" },
20
- appKey: { default: "" },
21
- appSalt: { default: "" },
22
- ids: { default: () => ({}) },
23
- title: { default: "" },
24
- summary: { default: () => [] },
25
- charts: { default: () => [] },
26
- mockData: { default: () => ({
27
- title: "海洋气象服务成效",
28
- summary: [{
29
- color: "#F53F3F",
30
- label: "本年度累计发布大风预警次数:",
31
- value: 46,
32
- unit: "次"
33
- }, {
34
- color: "#05ddfa",
35
- label: "本年度累计增加通航时间:",
36
- value: 150,
37
- unit: "小时"
38
- }],
39
- charts: [{
40
- type: "bar",
41
- title: "历年大风预警发布次数",
42
- data: [
43
- {
44
- x: "2020",
45
- y: 104
46
- },
47
- {
48
- x: "2021",
49
- y: 133
50
- },
51
- {
52
- x: "2022",
53
- y: 136
54
- },
55
- {
56
- x: "2023",
57
- y: 64
58
- },
59
- {
60
- x: "2024",
61
- y: 46
62
- }
63
- ],
64
- color: "#5B7CF2",
65
- showLabel: !0
66
- }, {
67
- type: "area",
68
- title: "月度通航时间增加量",
69
- data: [
70
- {
71
- x: "2024",
72
- y: 394
73
- },
74
- {
75
- x: "2025",
76
- y: 540
77
- },
78
- {
79
- x: "2026",
80
- y: 150
81
- }
82
- ],
83
- color: "#5B7CF2",
84
- showLabel: !0
85
- }]
86
- }) }
87
- },
88
- emits: ["close"],
89
- setup(e, { emit: i }) {
90
- let c = u()?.appContext.config.globalProperties.$bus, l = e, k = i, A = g(""), j = g([]), M = g([]), N = g({}), P = g({}), F = r(() => l.title || A.value), I = r(() => l.summary.length ? l.summary : j.value), L = r(() => l.charts.length ? l.charts : M.value), R = r(() => ({ gridTemplateColumns: `repeat(${L.value.length || 1}, 1fr)` })), z = () => {
91
- k("close", "HdQxServiceEffects");
92
- }, B = (e, t) => {
93
- e && (N.value[t] = e);
94
- }, V = (e) => {
95
- let t = e.data.map((e) => e.x), n = e.data.map((e) => e.y), r = e.color || "#5B7CF2", i = {
96
- data: n,
97
- itemStyle: { color: r },
98
- label: {
99
- show: e.showLabel !== !1,
100
- position: (e.type, "top"),
101
- color: "#fff",
102
- fontSize: 12
103
- }
104
- }, a;
105
- return a = e.type === "bar" ? {
106
- ...i,
107
- type: "bar",
108
- barWidth: e.barWidth || "40%"
109
- } : e.type === "area" ? {
110
- ...i,
111
- type: "line",
112
- smooth: !0,
113
- areaStyle: { color: new b.graphic.LinearGradient(0, 0, 0, 1, [{
114
- offset: 0,
115
- color: r
116
- }, {
117
- offset: 1,
118
- color: "rgba(91, 124, 242, 0.1)"
119
- }]) },
120
- lineStyle: {
121
- width: 2,
122
- color: r
123
- },
124
- symbol: "circle",
125
- symbolSize: 6
126
- } : {
127
- ...i,
128
- type: "line",
129
- smooth: !0,
130
- lineStyle: {
131
- width: 2,
132
- color: r
133
- },
134
- symbol: "circle",
135
- symbolSize: 6
136
- }, {
137
- backgroundColor: "transparent",
138
- grid: {
139
- top: 32,
140
- right: 16,
141
- bottom: 24,
142
- left: 48
143
- },
144
- tooltip: {
145
- trigger: "axis",
146
- backgroundColor: "rgba(6, 32, 56, 0.95)",
147
- borderColor: "rgba(64, 158, 255, 0.4)",
148
- textStyle: { color: "#fff" },
149
- formatter: (t) => {
150
- let n = Array.isArray(t) ? t[0] : t;
151
- return `${n.name}<br/>${n.value}${e.yAxisName || ""}`;
152
- }
153
- },
154
- xAxis: {
155
- type: "category",
156
- data: t,
157
- axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
158
- axisLabel: {
159
- color: "rgba(255,255,255,0.85)",
160
- fontSize: 12
161
- },
162
- axisTick: { show: !1 }
163
- },
164
- yAxis: {
165
- type: "value",
166
- name: e.yAxisName || "",
167
- nameTextStyle: {
168
- color: "rgba(255,255,255,0.7)",
169
- fontSize: 11
170
- },
171
- axisLine: { show: !1 },
172
- axisLabel: {
173
- color: "rgba(255,255,255,0.7)",
174
- fontSize: 11
175
- },
176
- splitLine: { show: !1 },
177
- axisTick: { show: !1 }
178
- },
179
- series: [a]
180
- };
181
- }, H = () => {
182
- L.value.forEach((e, t) => {
183
- let n = N.value[t];
184
- if (!n) return;
185
- let r = P.value[t];
186
- (!r || r.isDisposed()) && (r = b.init(n), P.value[t] = r), r.setOption(V(e), !0);
187
- });
188
- }, U = () => {
189
- Object.values(P.value).forEach((e) => {
190
- e && !e.isDisposed() && e.dispose();
191
- }), P.value = {};
192
- }, W = (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, G = () => {
193
- let e = l.mockData || {};
194
- A.value = e.title || "", j.value = e.summary || [], M.value = e.charts || [];
195
- }, K = async () => {
196
- let e = l.ids.data;
197
- if (!e?.id) {
198
- console.warn("HdQxServiceEffects 缺少数据工作流配置");
199
- return;
200
- }
201
- try {
202
- let n = W(await t({
203
- id: e.id,
204
- baseHttp: l.baseHttp,
205
- reqType: e.reqType,
206
- variables: {},
207
- isFormData: e.isFormData,
208
- appKey: l.appKey,
209
- appSalt: l.appSalt
210
- }));
211
- n && (A.value = n.title || "", j.value = n.summary || [], M.value = n.charts || []);
212
- } catch (e) {
213
- console.error("HdQxServiceEffects 数据加载失败", e);
214
- }
215
- }, q = async () => {
216
- l.mock ? G() : await K(), await d(), H();
217
- };
218
- return y(L, async () => {
219
- await d(), H();
220
- }, { deep: !0 }), p(() => {
221
- c?.on("toComponent", (e) => {
222
- e.componentName === "HdQxServiceEffects" && q();
223
- }), q(), window.addEventListener("resize", H);
224
- }), m(() => {
225
- U(), window.removeEventListener("resize", H);
226
- }), (e, t) => (h(), o("div", x, [s("div", S, [
227
- s("button", {
228
- class: "HdQxServiceEffect-close",
229
- onClick: z
230
- }, [...t[0] ||= [s("span", null, "✕", -1)]]),
231
- s("div", C, [s("div", w, v(F.value), 1)]),
232
- I.value.length ? (h(), o("div", T, [(h(!0), o(n, null, _(I.value, (e, t) => (h(), o("div", {
233
- key: t,
234
- class: "HdQxServiceEffect-summaryItem"
235
- }, [
236
- s("span", {
237
- class: "HdQxServiceEffect-summaryDot",
238
- style: f({ background: e.color })
239
- }, null, 4),
240
- s("span", E, v(e.label), 1),
241
- s("span", {
242
- class: "HdQxServiceEffect-summaryValue",
243
- style: f({ color: e.color })
244
- }, v(e.value), 5),
245
- e.unit ? (h(), o("span", D, v(e.unit), 1)) : a("", !0)
246
- ]))), 128))])) : a("", !0),
247
- s("div", {
248
- class: "HdQxServiceEffect-charts",
249
- style: f(R.value)
250
- }, [(h(!0), o(n, null, _(L.value, (e, t) => (h(), o("div", {
251
- key: t,
252
- class: "HdQxServiceEffect-chartWrap"
253
- }, [s("div", {
254
- ref_for: !0,
255
- ref: (e) => B(e, t),
256
- class: "HdQxServiceEffect-chart"
257
- }, null, 512), s("div", O, v(e.title), 1)]))), 128))], 4)
258
- ])]));
259
- }
260
- }), [["__scopeId", "data-v-6bed756d"]]), A = { class: "HdHeatService" }, j = { class: "HdHeatService-card" }, M = {
261
- key: 0,
262
- class: "HdHeatService-banner"
263
- }, N = ["src"], P = { class: "HdHeatService-content" }, F = { class: "HdHeatService-stats" }, I = { class: "HdHeatService-stat" }, L = { class: "HdHeatService-statValue" }, R = { class: "HdHeatService-stat" }, z = { class: "HdHeatService-statValue" }, B = { class: "HdHeatService-time" }, V = /* @__PURE__ */ e(/* @__PURE__ */ l({
264
- __name: "HdHeatService",
265
- props: {
266
- mock: {
267
- type: Boolean,
268
- default: !0
269
- },
270
- baseHttp: { default: "" },
271
- appKey: { default: "" },
272
- appSalt: { default: "" },
273
- ids: { default: () => ({}) },
274
- bgImage: { default: "" },
275
- deviceCount: { default: 15 },
276
- materialCount: { default: 100 },
277
- serviceTime: { default: "2026年08月13日" },
278
- effectTitle: { default: "供热气象服务成效" },
279
- effectSummary: { default: () => [] },
280
- effectCharts: { default: () => [] },
281
- mockData: { default: () => ({
282
- bgImage: "http://58.59.29.51:11014/huangdaopdf/供热服务.png",
283
- deviceCount: 15,
284
- materialCount: 100,
285
- serviceTime: "2026年08月13日",
286
- effectTitle: "供热气象服务成效",
287
- effectSummary: [{
288
- color: "#F53F3F",
289
- label: "经济效益:供热季节约成本",
290
- value: "11800余",
291
- unit: "万元"
292
- }, {
293
- color: "#05ddfa",
294
- label: "生态效益:累计减少碳排放约",
295
- value: 31,
296
- unit: "万吨"
297
- }],
298
- effectCharts: [{
299
- type: "bar",
300
- title: "供热季节约成本金额",
301
- data: [
302
- {
303
- x: "2021-2022",
304
- y: 2e3
305
- },
306
- {
307
- x: "2022-2023",
308
- y: 3e3
309
- },
310
- {
311
- x: "2023-2024",
312
- y: 1800
313
- },
314
- {
315
- x: "2024-2025",
316
- y: 5e3
317
- }
318
- ],
319
- color: "#5B7CF2",
320
- showLabel: !0
321
- }]
322
- }) }
323
- },
324
- emits: ["close"],
325
- setup(e, { emit: n }) {
326
- let l = u()?.appContext.config.globalProperties.$bus, d = e, f = n, m = g({
327
- bgImage: "",
328
- deviceCount: 0,
329
- materialCount: 0,
330
- serviceTime: "",
331
- effectTitle: "",
332
- effectSummary: [],
333
- effectCharts: []
334
- }), _ = g(!1), y = r(() => d.bgImage || m.value.bgImage), b = r(() => d.deviceCount || m.value.deviceCount || 0), x = r(() => d.materialCount || m.value.materialCount || 0), S = r(() => d.serviceTime || m.value.serviceTime || ""), C = r(() => d.effectTitle || m.value.effectTitle || ""), w = r(() => d.effectSummary.length ? d.effectSummary : m.value.effectSummary), T = r(() => d.effectCharts.length ? d.effectCharts : m.value.effectCharts), E = () => {
335
- _.value = !0;
336
- }, D = () => {
337
- _.value = !1, f("close", "HdQxServiceEffects");
338
- }, O = (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, V = () => {
339
- let e = d.mockData || {};
340
- m.value = {
341
- bgImage: e.bgImage || "",
342
- deviceCount: e.deviceCount || 0,
343
- materialCount: e.materialCount || 0,
344
- serviceTime: e.serviceTime || "",
345
- effectTitle: e.effectTitle || "",
346
- effectSummary: e.effectSummary || [],
347
- effectCharts: e.effectCharts || []
348
- };
349
- }, H = async () => {
350
- let e = d.ids.data;
351
- if (!e?.id) {
352
- console.warn("HdHeatService 缺少数据工作流配置");
353
- return;
354
- }
355
- try {
356
- let n = O(await t({
357
- id: e.id,
358
- baseHttp: d.baseHttp,
359
- reqType: e.reqType,
360
- variables: {},
361
- isFormData: e.isFormData,
362
- appKey: d.appKey,
363
- appSalt: d.appSalt
364
- }));
365
- n && (m.value = {
366
- bgImage: n.bgImage || "",
367
- deviceCount: n.deviceCount || 0,
368
- materialCount: n.materialCount || 0,
369
- serviceTime: n.serviceTime || "",
370
- effectTitle: n.effectTitle || "",
371
- effectSummary: n.effectSummary || [],
372
- effectCharts: n.effectCharts || []
373
- });
374
- } catch (e) {
375
- console.error("HdHeatService 数据加载失败", e);
376
- }
377
- }, U = async () => {
378
- d.mock ? V() : await H();
379
- };
380
- return p(() => {
381
- l?.on("toComponent", (e) => {
382
- e.componentName === "HdHeatService" && U();
383
- }), U();
384
- }), (e, t) => (h(), o("div", A, [s("div", j, [y.value ? (h(), o("div", M, [s("img", {
385
- src: y.value,
386
- alt: "供热服务"
387
- }, null, 8, N)])) : a("", !0), s("div", P, [
388
- s("div", F, [
389
- s("div", I, [t[1] ||= s("div", { class: "HdHeatService-statLabel" }, "供热气象观测设备", -1), s("div", L, [c(v(b.value) + " ", 1), t[0] ||= s("span", { class: "HdHeatService-statUnit" }, "个", -1)])]),
390
- t[4] ||= s("div", { class: "HdHeatService-divider" }, null, -1),
391
- s("div", R, [t[3] ||= s("div", { class: "HdHeatService-statLabel" }, "供热气象服务材料", -1), s("div", z, [c(v(x.value) + " ", 1), t[2] ||= s("span", { class: "HdHeatService-statUnit" }, "份", -1)])])
392
- ]),
393
- s("button", {
394
- class: "HdHeatService-effectBtn",
395
- onClick: E
396
- }, " 服务成效 "),
397
- s("div", B, "服务时间:截止" + v(S.value), 1)
398
- ])]), _.value ? (h(), i(k, {
399
- key: 0,
400
- title: C.value,
401
- summary: w.value,
402
- charts: T.value,
403
- onClose: D
404
- }, null, 8, [
405
- "title",
406
- "summary",
407
- "charts"
408
- ])) : a("", !0)]));
409
- }
410
- }), [["__scopeId", "data-v-ba126313"]]);
411
- //#endregion
412
- export { k as n, V as t };
@@ -1,219 +0,0 @@
1
- import { n as e } from "./component-AqiMonitor-CVb99opd.mjs";
2
- import { r as t } from "./component-AiChat-CMbG8e28.mjs";
3
- import { ElOption as n, ElSelect as r } from "element-plus/es";
4
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, normalizeClass as p, normalizeStyle as m, onMounted as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, watch as ee, withCtx as b } from "vue";
5
- //#region src/components/HdSeaCase/HdSeaCase.vue?vue&type=script&setup=true&lang.ts
6
- var x = { class: "HdSeaCase" }, S = { class: "HdSeaCase-panel" }, C = { class: "HdSeaCase-caseBar" }, w = { class: "HdSeaCase-body" }, te = { class: "HdSeaCase-cards" }, ne = ["onClick"], T = { class: "HdSeaCase-cardHeader" }, E = { class: "HdSeaCase-cardBody" }, D = { class: "HdSeaCase-axis" }, O = ["onClick"], k = { class: "HdSeaCase-stages" }, A = ["onClick"], j = {
7
- key: 0,
8
- class: "HdSeaCase-detailMask"
9
- }, M = { class: "HdSeaCase-detailPopup" }, N = { class: "HdSeaCase-detailHeader" }, P = { class: "HdSeaCase-detailBody" }, F = {
10
- key: 0,
11
- class: "HdSeaCase-detailGallery"
12
- }, I = { class: "HdSeaCase-galleryList" }, L = ["src"], R = { class: "HdSeaCase-detailTitleList" }, z = ["onClick"], B = /* @__PURE__ */ e(/* @__PURE__ */ d({
13
- __name: "HdSeaCase",
14
- props: {
15
- mock: {
16
- type: Boolean,
17
- default: !0
18
- },
19
- baseHttp: { default: "" },
20
- appKey: { default: "" },
21
- appSalt: { default: "" },
22
- ids: { default: () => ({}) },
23
- mockData: { default: () => [{
24
- id: "cooperation",
25
- title: "海洋气象应急保障合作机制协议",
26
- stages: [
27
- {
28
- id: "s1",
29
- time: "2021年9月23日",
30
- label: "西海岸新区海洋发展局调研",
31
- content: "为开展近海海域气象监测,大力促进海洋产业发展,陈清峰副局长带队赴青岛西海岸新区海洋发展局进行调研。",
32
- detailTitle: "西海岸新区海洋发展局调研",
33
- items: [{
34
- title: "调研交流",
35
- images: ["http://58.59.29.51:11014/staticImg/TypicalInstance/海洋11.png", "http://58.59.29.51:11014/staticImg/TypicalInstance/海洋2.png"],
36
- content: "为开展近海海域气象监测,大力促进海洋产业发展,陈清峰副局长带队赴青岛西海岸新区海洋发展局进行调研。"
37
- }]
38
- },
39
- {
40
- id: "s2",
41
- time: "2023年2月28日",
42
- label: "推动“三级联动”机制调研",
43
- content: "为推动“三级联动”向纵深发展,着力解决制约气象高质量发展的基础性、关键性问题,王贵全局长带队前往西海岸新区海洋发展局进行调研交流。",
44
- detailContent: "为推动“三级联动”向纵深发展,着力解决制约气象高质量发展的基础性、关键性问题,王贵全局长带队前往西海岸新区海洋发展局进行调研交流。"
45
- },
46
- {
47
- id: "s3",
48
- time: "学习经验做法",
49
- label: "学习经验做法",
50
- content: "赴威海、日照等地学习经验做法,广泛征求本地渔民和行业管理部门意见,对新区海域进行区划。",
51
- detailContent: "赴威海、日照等地学习经验做法,广泛征求本地渔民和行业管理部门意见,对新区海域进行区划。"
52
- },
53
- {
54
- id: "s4",
55
- time: "服务产品",
56
- label: "形成预报产品",
57
- content: "形成精细化海洋气象预报服务产品。",
58
- detailTitle: "形成预报产品",
59
- items: [{
60
- title: "预报服务产品",
61
- images: ["http://58.59.29.51:11014/staticImg/TypicalInstance/海洋气象服务_10.png", "http://58.59.29.51:11014/staticImg/TypicalInstance/海洋气象服务_10.png"],
62
- content: "回访分区气象预报服务成果。"
63
- }]
64
- },
65
- {
66
- id: "s5",
67
- time: "2024年",
68
- label: "海洋气象应急保障合作机制协议",
69
- content: "双方将在共谋共建共享、预警信息传播、海上突发事件处置、海上安全监管、服务效益评价等方面开展工作。",
70
- detailTitle: "海洋气象应急保障合作机制协议",
71
- items: [{
72
- title: "建立合作",
73
- images: ["../../assets/img/icons/面板.png"],
74
- content: "签订海洋气象应急保障合作机制协议。"
75
- }]
76
- }
77
- ]
78
- }, {
79
- id: "wind2021",
80
- title: "2021年5月7日,海面大风,船舶禁止通行,游客滞留",
81
- stages: [
82
- {
83
- id: "w1",
84
- time: "5月7日8时",
85
- label: "海面大风,禁止船舶通行",
86
- content: "受蒙古气旋持续影响,青岛西海岸新区近海海域风力7级到8级,阵风10级。海上风浪较大,风力达到7级以上,灵山湾全面禁止船舶通行。"
87
- },
88
- {
89
- id: "w2",
90
- time: "5月7日9时",
91
- label: "商讨应急方案",
92
- content: "韩千钧副区长迅速组织海事、气象、港务、灵山湾管委会等部门商讨方案。研究决定,由气象局提供精准的航线风力预报。"
93
- },
94
- {
95
- id: "w3",
96
- time: "5月7日13时10分",
97
- label: "给出船舶航行精准气象条件建议",
98
- content: "气象局根据监测实况及天气形势变化,预计7日下午到傍晚有大风间歇窗口期,有利于航行。"
99
- },
100
- {
101
- id: "w4",
102
- time: "5月7日15时25分",
103
- label: "游客成功离岛",
104
- content: "基于气象局给出的决策建议,海事处安排船舶,截至当日15时25分,顺利转移所有岛上游客。"
105
- }
106
- ]
107
- }] }
108
- },
109
- emits: ["close"],
110
- setup(e, { emit: d }) {
111
- let B = f()?.appContext.config.globalProperties.$bus, V = e, H = d, U = _([]), W = _(""), G = _(0), K = _(!1), q = _(null), J = _(0), Y = a(() => U.value.find((e) => e.id === W.value) || U.value[0] || null), X = a(() => q.value?.items?.length ? q.value.items[J.value] || q.value.items[0] : null), Z = () => {
112
- H("close", "HdSeaCase");
113
- }, re = (e) => {
114
- let t = 100 / (Y.value?.stages.length || 1);
115
- return `${t * e + t / 2}%`;
116
- }, ie = () => {
117
- G.value = 0;
118
- }, Q = (e, t) => {
119
- G.value = t, q.value = e, J.value = 0, K.value = !0;
120
- }, ae = () => {
121
- K.value = !1, q.value = null, J.value = 0;
122
- };
123
- ee(K, (e) => {
124
- e || (J.value = 0);
125
- });
126
- let oe = (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, se = () => {
127
- U.value = V.mockData || [], W.value = U.value[0]?.id || "";
128
- }, ce = async () => {
129
- let e = V.ids.data;
130
- if (!e?.id) {
131
- console.warn("HdSeaCase 缺少数据工作流配置");
132
- return;
133
- }
134
- try {
135
- let n = oe(await t({
136
- id: e.id,
137
- baseHttp: V.baseHttp,
138
- reqType: e.reqType,
139
- variables: {},
140
- isFormData: e.isFormData,
141
- appKey: V.appKey,
142
- appSalt: V.appSalt
143
- }));
144
- n && (U.value = Array.isArray(n) ? n : n.list || [], W.value = U.value[0]?.id || "");
145
- } catch (e) {
146
- console.error("HdSeaCase 数据加载失败", e);
147
- }
148
- }, $ = async () => {
149
- V.mock ? se() : await ce();
150
- };
151
- return h(() => {
152
- B?.on("toComponent", (e) => {
153
- e.componentName === "HdSeaCase" && $();
154
- }), $();
155
- }), (e, t) => {
156
- let a = n, d = r;
157
- return g(), c("div", x, [l("div", S, [
158
- l("button", {
159
- class: "HdSeaCase-close",
160
- onClick: Z
161
- }, [...t[1] ||= [l("span", null, "✕", -1)]]),
162
- t[3] ||= l("div", { class: "HdSeaCase-header" }, [l("div", { class: "HdSeaCase-title" }, "海洋专项服务典型案例")], -1),
163
- l("div", C, [u(d, {
164
- modelValue: W.value,
165
- "onUpdate:modelValue": t[0] ||= (e) => W.value = e,
166
- class: "HdSeaCase-caseSelect",
167
- "popper-class": "HdSeaCase-casePopper",
168
- size: "small",
169
- teleported: !1,
170
- onChange: ie
171
- }, {
172
- default: b(() => [(g(!0), c(i, null, v(U.value, (e) => (g(), o(a, {
173
- key: e.id,
174
- label: e.title,
175
- value: e.id
176
- }, null, 8, ["label", "value"]))), 128))]),
177
- _: 1
178
- }, 8, ["modelValue"])]),
179
- l("div", w, [
180
- l("div", te, [(g(!0), c(i, null, v(Y.value?.stages, (e, t) => (g(), c("div", {
181
- key: e.id,
182
- class: p(["HdSeaCase-card", { "HdSeaCase-card--active": G.value === t }]),
183
- onClick: (n) => Q(e, t)
184
- }, [l("div", T, [l("span", null, y(e.time || e.label), 1)]), l("div", E, y(e.content), 1)], 10, ne))), 128))]),
185
- l("div", D, [t[2] ||= l("div", { class: "HdSeaCase-line" }, null, -1), (g(!0), c(i, null, v(Y.value?.stages, (e, t) => (g(), c("div", {
186
- key: e.id,
187
- class: p(["HdSeaCase-node", { "HdSeaCase-node--active": G.value === t }]),
188
- style: m({ left: re(t) }),
189
- onClick: (n) => Q(e, t)
190
- }, null, 14, O))), 128))]),
191
- l("div", k, [(g(!0), c(i, null, v(Y.value?.stages, (e, t) => (g(), c("button", {
192
- key: e.id,
193
- class: p(["HdSeaCase-stageBtn", { "HdSeaCase-stageBtn--highlight": t === Y.value?.stages.length - 1 }]),
194
- onClick: (n) => Q(e, t)
195
- }, y(e.label), 11, A))), 128))])
196
- ])
197
- ]), K.value ? (g(), c("div", j, [l("div", M, [
198
- l("button", {
199
- class: "HdSeaCase-detailClose",
200
- onClick: ae
201
- }, [...t[4] ||= [l("span", null, "✕", -1)]]),
202
- l("div", N, y(q.value?.detailTitle || Y.value?.title), 1),
203
- l("div", P, [X.value ? (g(), c("div", F, [l("div", I, [(g(!0), c(i, null, v(X.value.images, (e, t) => (g(), c("div", {
204
- key: t,
205
- class: "HdSeaCase-galleryItem"
206
- }, [l("img", {
207
- src: e,
208
- alt: ""
209
- }, null, 8, L)]))), 128))])])) : s("", !0), l("div", R, [(g(!0), c(i, null, v(q.value?.items, (e, t) => (g(), c("div", {
210
- key: t,
211
- class: p(["HdSeaCase-titleItem", { "HdSeaCase-titleItem--active": J.value === t }]),
212
- onClick: (e) => J.value = t
213
- }, y(e.title), 11, z))), 128))])])
214
- ])])) : s("", !0)]);
215
- };
216
- }
217
- }), [["__scopeId", "data-v-cf5c0a5e"]]);
218
- //#endregion
219
- export { B as t };