nxd-plugin 1.7.80 → 1.7.83
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.
- package/dist/chunks/{component-AiChat-CtsIvsGB.mjs → component-AiChat-C1xBPkS5.mjs} +312 -260
- package/dist/chunks/{component-AqiMonitor-D16SVL6m.mjs → component-AqiMonitor-DoAVs1Jf.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-CXnKE427.mjs → component-ChartCumulativePre-BOIMPYxl.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-_cOa2zr2.mjs → component-ChartServiceMaterial-CmR3bmG_.mjs} +2 -2
- package/dist/chunks/{component-Duty-D0YruNKe.mjs → component-Duty-gmt7ZcSc.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-CWzunUWV.mjs → component-EarlyWarningStatistic-BWYWrz65.mjs} +2 -2
- package/dist/chunks/component-Forecast72h-BZ1kB2TJ.mjs +427 -0
- package/dist/chunks/{component-GeologyLiveAlarm-CvwronHT.mjs → component-GeologyLiveAlarm-CNpQPmGs.mjs} +2 -2
- package/dist/chunks/component-HdHeatService-ok6q8UuG.mjs +412 -0
- package/dist/chunks/component-HdObservation-BmQdGJV6.mjs +600 -0
- package/dist/chunks/component-HdPreSituation-LBpO58bE.mjs +604 -0
- package/dist/chunks/component-HdRadarTime-D7hOn_ph.mjs +461 -0
- package/dist/chunks/component-HdSeaCase-DYPQ7CdN.mjs +219 -0
- package/dist/chunks/component-HdServiceRequirements-DcXrcIIV.mjs +143 -0
- package/dist/chunks/component-HdStationTem-US6IRwbQ.mjs +573 -0
- package/dist/chunks/{component-HighQuality-mh3fFFrU.mjs → component-HighQuality-B0OgPi3T.mjs} +3 -3
- package/dist/chunks/{component-HighWayEarlyWarningRed-bUwQzo1p.mjs → component-HighWayEarlyWarningRed-BTl2WWZ-.mjs} +907 -759
- package/dist/chunks/{component-HighWayFreeze-sv_B8HYz.mjs → component-HighWayFreeze-B1aMHQWU.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-C5CT4pNH.mjs → component-HighwayLiveAlarm-8u45ZdnN.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-DwM5R3uq.mjs → component-HighwayLiveAlarmNew-DK827eVk.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-DUpEnASL.mjs → component-HighwayStations-BzrbWP50.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-DySnAsrW.mjs → component-HighwayWeatherForecast-DER5XGc3.mjs} +2 -2
- package/dist/chunks/{component-IframeWeb-ZChwSgDN.mjs → component-IframeWeb-DuBssYPk.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-B17dWjVV.mjs → component-ImageGeneration-3G3j7utC.mjs} +1 -1
- package/dist/chunks/{component-IntroducePic-hpd3_zKO.mjs → component-IntroducePic-L8VH8Yq8.mjs} +1 -1
- package/dist/chunks/{component-LithiumBatteryMiningArea-BLx7FYWI.mjs → component-LithiumBatteryMiningArea-DSFTVepN.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-BBY3WROQ.mjs → component-MapPopup-BNc18syw.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-W3eNeSc0.mjs → component-MaterialPreview-DhLUbjcT.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-YE4EI4RM.mjs → component-PieLegend-Haojhtet.mjs} +1 -1
- package/dist/chunks/component-PrecipitationRanking-BanKrD3J.mjs +608 -0
- package/dist/chunks/{component-RadarChart-BnaENnYS.mjs → component-RadarChart-BYMbkI3K.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-B_mzSJzM.mjs → component-RadarLegend-CiGsla7a.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-BGK_OnB2.mjs → component-RadarShortTerm-yPc2UWpz.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-Bm7mOE3Z.mjs → component-RadarTime-CkqIaTJh.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-9GGS03jg.mjs → component-RenderMarkdown-D590sXEf.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-B9Sxhqyu.mjs → component-ReservoirLiveAlarm-DTtKdDQS.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-wVF-3Lpq.mjs → component-ServiceMaterial-BKbVQbKm.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-DXbl0E-k.mjs → component-ServiceMaterialsBtn-CskK-Qiz.mjs} +1 -1
- package/dist/chunks/component-StationDialog-Bn7Fbk24.mjs +897 -0
- package/dist/chunks/component-StationList-DRABlFdc.mjs +323 -0
- package/dist/chunks/{component-TimeBasedForecast-Cqb98MyV.mjs → component-TimeBasedForecast-D1fJ4rGJ.mjs} +4 -4
- package/dist/chunks/{component-WarningLine-DWxDqXz4.mjs → component-WarningLine-jN8sg45u.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-C6bMbzAR.mjs → component-WarningSignal-BkIKqyJB.mjs} +3 -3
- package/dist/chunks/component-WeatherForecast-CYsbJhYt.mjs +225 -0
- package/dist/chunks/{component-YCDataMonitor-CdjR4SD9.mjs → component-YCDataMonitor-vVlnkSzT.mjs} +2 -2
- package/dist/chunks/{component-YCDataService-BVgkmLN8.mjs → component-YCDataService-okkY1-iU.mjs} +4 -4
- package/dist/chunks/{component-YCHome-DoRcqj79.mjs → component-YCHome-BfpbxDIg.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-_Iq4kWV6.mjs → component-YCHomeLegend-CuT-BwNJ.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-CA6LbHIs.mjs → component-YCLoginNew-KZoyW1EV.mjs} +3 -3
- package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
- package/dist/components/HdHeatService/HdHeatService.vue.d.ts +56 -0
- package/dist/components/HdObservation/HdObservation.vue.d.ts +43 -0
- package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +62 -0
- package/dist/components/HdQxServiceEffects/HdQxServiceEffects.vue.d.ts +59 -0
- package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +71 -0
- package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +46 -0
- package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
- package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -0
- package/dist/components/HighWayEarlyWarningRed/Call.vue.d.ts +18 -0
- package/dist/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +5 -0
- package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +57 -0
- package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
- package/dist/components/StationList/StationList.vue.d.ts +64 -0
- package/dist/index.d.ts +13 -1
- package/dist/nxd-plugin.mjs +51 -40
- package/dist/styles/component-Forecast72h.css +1 -0
- package/dist/styles/component-HdHeatService.css +1 -0
- package/dist/styles/component-HdObservation.css +1 -0
- package/dist/styles/component-HdPreSituation.css +1 -0
- package/dist/styles/component-HdRadarTime.css +1 -0
- package/dist/styles/component-HdSeaCase.css +1 -0
- package/dist/styles/component-HdServiceRequirements.css +1 -0
- package/dist/styles/component-HdStationTem.css +1 -0
- package/dist/styles/component-HighQuality.css +1 -1
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-PrecipitationRanking.css +1 -0
- package/dist/styles/component-StationDialog.css +1 -0
- package/dist/styles/component-StationList.css +1 -0
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +2 -1
- package/dist/chunks/component-WeatherForecast-EqHxKbyh.mjs +0 -210
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-DoAVs1Jf.mjs";
|
|
2
|
+
import { i as t } from "./component-AiChat-C1xBPkS5.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 };
|