nxd-plugin 1.7.82 → 1.7.84
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-BU0rzEqA.mjs → component-AiChat-BXNBLM1G.mjs} +382 -342
- package/dist/chunks/{component-AqiMonitor-B0X5SmQB.mjs → component-AqiMonitor-C_V1Nuf_.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-D50ZlxtD.mjs → component-ChartCumulativePre-Bo28Bgaa.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-D35UWUD8.mjs → component-ChartServiceMaterial-DELVCsKj.mjs} +2 -2
- package/dist/chunks/{component-Duty-CuVSfL6B.mjs → component-Duty-dyZZ4vHt.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-DBLY754e.mjs → component-EarlyWarningStatistic-CBJfrRsV.mjs} +2 -2
- package/dist/chunks/component-Forecast72h-BkVZSGhE.mjs +427 -0
- package/dist/chunks/{component-GeologyLiveAlarm-BGqrl_n2.mjs → component-GeologyLiveAlarm-B9jBWXf0.mjs} +2 -2
- package/dist/chunks/component-HdForecastProducts-D4x_Y0OB.mjs +211 -0
- package/dist/chunks/component-HdHeatService-Bf9XH3DP.mjs +412 -0
- package/dist/chunks/component-HdObservation-CM6HUrQ3.mjs +606 -0
- package/dist/chunks/component-HdPreSituation-CJ8-wiRO.mjs +639 -0
- package/dist/chunks/component-HdRadarTime-C4ZArOUM.mjs +461 -0
- package/dist/chunks/component-HdSeaCase-3-YFxSuM.mjs +219 -0
- package/dist/chunks/component-HdServiceMarterial-pSFQUH2x.mjs +316 -0
- package/dist/chunks/component-HdServiceRequirements-BjuiyyC5.mjs +142 -0
- package/dist/chunks/component-HdStationTem-Dit7Y8lu.mjs +573 -0
- package/dist/chunks/component-HdSuggestion-B_abfzRO.mjs +161 -0
- package/dist/chunks/component-HdThreeWeatherTrend-B2qzvOzb.mjs +372 -0
- package/dist/chunks/component-HdWaveForcast-D8UZrHzF.mjs +269 -0
- package/dist/chunks/{component-HighQuality-B-DNdjF7.mjs → component-HighQuality-1iqLOQAF.mjs} +3 -3
- package/dist/chunks/{component-HighWayEarlyWarningRed-DM_NXOxS.mjs → component-HighWayEarlyWarningRed-DlgG9rTx.mjs} +907 -759
- package/dist/chunks/{component-HighWayFreeze-Dldul9ds.mjs → component-HighWayFreeze-CCp1Rxpz.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-7T0XNRUb.mjs → component-HighwayLiveAlarm-D7PKi5rG.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-ClsfDywn.mjs → component-HighwayLiveAlarmNew-rH59lsj8.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-u3R83AXH.mjs → component-HighwayStations-DGt6Gsr9.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-CHJuEi1V.mjs → component-HighwayWeatherForecast-BQrNGF7m.mjs} +73 -130
- package/dist/chunks/{component-IframeWeb-B_RCXBBe.mjs → component-IframeWeb-vLIWvbJY.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-5zGtULQL.mjs → component-ImageGeneration-BtM7MHcE.mjs} +1 -1
- package/dist/chunks/{component-IntroducePic-DPf4yYOb.mjs → component-IntroducePic-D3FSEuKX.mjs} +1 -1
- package/dist/chunks/{component-LithiumBatteryMiningArea-D7EdisGO.mjs → component-LithiumBatteryMiningArea-B5aUe7T0.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-pePSM1pe.mjs → component-MapPopup-UmWWAPBE.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-CvHyZKau.mjs → component-MaterialPreview-1Hyl4bjM.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-C_KQgtb2.mjs → component-PieLegend-C0Acehix.mjs} +1 -1
- package/dist/chunks/component-PrecipitationRanking-C63n87WI.mjs +658 -0
- package/dist/chunks/{component-RadarChart-Dkkpc2ex.mjs → component-RadarChart-BXfMyPPi.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-Bmyx7Z82.mjs → component-RadarLegend-B2ajP_0M.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-DNpfS5yC.mjs → component-RadarShortTerm-BeGEjbHr.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-CBk6AMiD.mjs → component-RadarTime-DGRztCiR.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-DFiXNere.mjs → component-RenderMarkdown-Dv-UVGrS.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-DCzzEJ4U.mjs → component-ReservoirLiveAlarm-CRgl_ztt.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-CXBQpfHK.mjs → component-ServiceMaterial-BTWYke8W.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-CPZzLZl_.mjs → component-ServiceMaterialsBtn-CTWGd-Is.mjs} +1 -1
- package/dist/chunks/component-StationDialog-Ck8zd52d.mjs +956 -0
- package/dist/chunks/component-StationList-BvoVJwAU.mjs +337 -0
- package/dist/chunks/{component-TimeBasedForecast-WVO8WY-h.mjs → component-TimeBasedForecast-BaPiit4s.mjs} +36 -36
- package/dist/chunks/{component-WarningLine-BCPm8Eve.mjs → component-WarningLine-CcFfVzar.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-C2RJ8N64.mjs → component-WarningSignal-C0CnTLVH.mjs} +3 -3
- package/dist/chunks/component-WeatherForecast-DWdNramU.mjs +229 -0
- package/dist/chunks/{component-YCDataMonitor-Dx7ASmGD.mjs → component-YCDataMonitor-DPMFqIFB.mjs} +108 -110
- package/dist/chunks/{component-YCDataService-mj2SUWBC.mjs → component-YCDataService-CD042ss7.mjs} +4 -4
- package/dist/chunks/{component-YCHome-CUcEZHuo.mjs → component-YCHome-DjpIzt-5.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-DK6WU8YQ.mjs → component-YCHomeLegend-B-nlePS2.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-D2RInKrk.mjs → component-YCLoginNew-Bx2LoLJz.mjs} +3 -3
- package/dist/components/AiChat/AiChat.vue.d.ts +0 -2
- package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
- package/dist/components/HdForecastProducts/HdForecastProducts.vue.d.ts +49 -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 +61 -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/HdServiceMarterial/HdServiceMarterial.vue.d.ts +54 -0
- package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
- package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -0
- package/dist/components/HdSuggestion/HdSuggestion.vue.d.ts +49 -0
- package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +71 -0
- package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +70 -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 +62 -0
- package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
- package/dist/components/StationList/StationList.vue.d.ts +64 -0
- package/dist/components/WeatherForecast/WeatherForecast.vue.d.ts +9 -0
- package/dist/index.d.ts +18 -1
- package/dist/nxd-plugin.mjs +56 -40
- package/dist/styles/component-Forecast72h.css +1 -0
- package/dist/styles/component-HdForecastProducts.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-HdServiceMarterial.css +1 -0
- package/dist/styles/component-HdServiceRequirements.css +1 -0
- package/dist/styles/component-HdStationTem.css +1 -0
- package/dist/styles/component-HdSuggestion.css +1 -0
- package/dist/styles/component-HdThreeWeatherTrend.css +1 -0
- package/dist/styles/component-HdWaveForcast.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-YCDataMonitor.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +2 -1
- package/dist/chunks/component-WeatherForecast-CaLYtE37.mjs +0 -210
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
|
+
import { i as t } from "./component-AiChat-BXNBLM1G.mjs";
|
|
3
|
+
import { ElIcon as n } from "element-plus/es";
|
|
4
|
+
import { Fragment as r, Teleport as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as ee, normalizeClass as d, onMounted as f, onUnmounted as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, vModelText as y, watch as b, withCtx as x, withDirectives as S } from "vue";
|
|
5
|
+
import { ArrowLeft as C, ArrowRight as te, VideoPause as ne, VideoPlay as re } from "@element-plus/icons-vue";
|
|
6
|
+
//#region src/components/HdForecastProducts/HdForecastProducts.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var ie = { class: "HdForecastProducts" }, ae = { class: "HdForecastProducts-popup" }, oe = { class: "HdForecastProducts-header" }, w = { class: "HdForecastProducts-title" }, T = { class: "HdForecastProducts-toolbar" }, E = { class: "HdForecastProducts-speed" }, D = { class: "HdForecastProducts-speedValue" }, O = { class: "HdForecastProducts-main" }, k = { class: "HdForecastProducts-viewer" }, A = ["src"], j = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "HdForecastProducts-noImage"
|
|
10
|
+
}, M = { class: "HdForecastProducts-side" }, N = { class: "HdForecastProducts-list" }, P = ["onClick"], F = { class: "HdForecastProducts-itemHour" }, I = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
11
|
+
__name: "HdForecastProducts",
|
|
12
|
+
props: {
|
|
13
|
+
mock: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !0
|
|
16
|
+
},
|
|
17
|
+
showClose: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
baseHttp: { default: "" },
|
|
22
|
+
appKey: { default: "" },
|
|
23
|
+
appSalt: { default: "" },
|
|
24
|
+
ids: { default: () => ({}) },
|
|
25
|
+
title: { default: "" },
|
|
26
|
+
dataTime: { default: "" },
|
|
27
|
+
list: { default: () => [] },
|
|
28
|
+
mockData: { default: () => ({
|
|
29
|
+
title: "海面阵风预报",
|
|
30
|
+
dataTime: "2026-02-13 24时",
|
|
31
|
+
list: [
|
|
32
|
+
{
|
|
33
|
+
image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A1.jpg",
|
|
34
|
+
time: "02月13日23时",
|
|
35
|
+
hour: "003"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
image: "http://i.weather.com.cn/images/cn/news/2026/08/03/8570DEEB094333EEB54F6B7F2096028A.jpg",
|
|
39
|
+
time: "02月14日02时",
|
|
40
|
+
hour: "006"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
image: "http://i.weather.com.cn/images/cn/news/2026/08/03/8570DEEB094333EEB54F6B7F2096028A.jpg",
|
|
44
|
+
time: "02月14日05时",
|
|
45
|
+
hour: "009"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
image: "http://i.weather.com.cn/images/cn/news/2026/08/03/8570DEEB094333EEB54F6B7F2096028A.jpg",
|
|
49
|
+
time: "02月14日08时",
|
|
50
|
+
hour: "012"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A1.jpg",
|
|
54
|
+
time: "02月14日11时",
|
|
55
|
+
hour: "015"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A2.jpg",
|
|
59
|
+
time: "02月14日14时",
|
|
60
|
+
hour: "018"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
image: "http://i.weather.com.cn/images/cn/news/2026/08/02/AE2599448BC456F7325D91C5844516A1.jpg",
|
|
64
|
+
time: "02月14日17时",
|
|
65
|
+
hour: "021"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}) }
|
|
69
|
+
},
|
|
70
|
+
emits: ["close", "change"],
|
|
71
|
+
setup(e, { emit: u }) {
|
|
72
|
+
let I = ee()?.appContext.config.globalProperties.$bus, L = e, R = u, z = h(0), B = h(!1), V = h(1), H = h(null), U = h({
|
|
73
|
+
title: "",
|
|
74
|
+
dataTime: "",
|
|
75
|
+
list: []
|
|
76
|
+
}), W = a(() => {
|
|
77
|
+
let e = L.title || U.value.title || "海面阵风预报", t = L.dataTime || U.value.dataTime;
|
|
78
|
+
return t ? `${e}(${t})` : e;
|
|
79
|
+
}), G = a(() => L.list.length ? L.list : U.value.list), K = a(() => G.value[z.value] || {
|
|
80
|
+
image: "",
|
|
81
|
+
time: "",
|
|
82
|
+
hour: ""
|
|
83
|
+
}), q = () => {
|
|
84
|
+
H.value &&= (clearTimeout(H.value), null);
|
|
85
|
+
}, J = () => {
|
|
86
|
+
q(), !(!B.value || G.value.length <= 1) && (H.value = setTimeout(() => {
|
|
87
|
+
X(!0), J();
|
|
88
|
+
}, V.value * 1e3));
|
|
89
|
+
}, se = () => {
|
|
90
|
+
B.value = !B.value, B.value ? J() : q();
|
|
91
|
+
}, Y = () => {
|
|
92
|
+
B.value = !1, q();
|
|
93
|
+
}, ce = () => {
|
|
94
|
+
Y(), G.value.length !== 0 && (z.value = z.value > 0 ? z.value - 1 : G.value.length - 1, Q());
|
|
95
|
+
}, X = (e = !1) => {
|
|
96
|
+
e || Y(), G.value.length !== 0 && (z.value < G.value.length - 1 ? z.value++ : z.value = 0, Q());
|
|
97
|
+
}, Z = (e) => {
|
|
98
|
+
Y(), z.value = e, Q();
|
|
99
|
+
}, Q = () => {
|
|
100
|
+
R("change", z.value, K.value);
|
|
101
|
+
}, le = () => {
|
|
102
|
+
Y(), R("close", "HdForecastProducts");
|
|
103
|
+
}, ue = (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, de = () => {
|
|
104
|
+
let e = L.mockData || {};
|
|
105
|
+
U.value = {
|
|
106
|
+
title: e.title || "",
|
|
107
|
+
dataTime: e.dataTime || "",
|
|
108
|
+
list: e.list || []
|
|
109
|
+
};
|
|
110
|
+
}, fe = async () => {
|
|
111
|
+
let e = L.ids.data;
|
|
112
|
+
if (!e?.id) {
|
|
113
|
+
console.warn("HdForecastProducts 缺少数据工作流配置");
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
let n = ue(await t({
|
|
118
|
+
id: e.id,
|
|
119
|
+
baseHttp: L.baseHttp,
|
|
120
|
+
reqType: e.reqType,
|
|
121
|
+
variables: {},
|
|
122
|
+
isFormData: e.isFormData,
|
|
123
|
+
appKey: L.appKey,
|
|
124
|
+
appSalt: L.appSalt
|
|
125
|
+
}));
|
|
126
|
+
n && (U.value = {
|
|
127
|
+
title: n.title || "",
|
|
128
|
+
dataTime: n.dataTime || "",
|
|
129
|
+
list: n.list || []
|
|
130
|
+
});
|
|
131
|
+
} catch (e) {
|
|
132
|
+
console.error("HdForecastProducts 数据加载失败", e);
|
|
133
|
+
}
|
|
134
|
+
}, $ = async () => {
|
|
135
|
+
L.mock ? de() : await fe(), z.value = 0;
|
|
136
|
+
};
|
|
137
|
+
return b(V, () => {
|
|
138
|
+
B.value && J();
|
|
139
|
+
}), f(() => {
|
|
140
|
+
I?.on("toComponent", (e) => {
|
|
141
|
+
e.componentName === "HdForecastProducts" && $();
|
|
142
|
+
}), $();
|
|
143
|
+
}), p(() => {
|
|
144
|
+
q();
|
|
145
|
+
}), (e, t) => {
|
|
146
|
+
let a = n;
|
|
147
|
+
return m(), o(i, { to: "body" }, [c("div", ie, [c("div", ae, [
|
|
148
|
+
c("button", {
|
|
149
|
+
class: "HdForecastProducts-close",
|
|
150
|
+
onClick: le
|
|
151
|
+
}, [...t[2] ||= [c("span", null, "✕", -1)]]),
|
|
152
|
+
c("div", oe, [c("h3", w, _(W.value), 1)]),
|
|
153
|
+
c("div", T, [
|
|
154
|
+
c("button", {
|
|
155
|
+
class: "HdForecastProducts-toolBtn",
|
|
156
|
+
title: "上一张",
|
|
157
|
+
onClick: ce
|
|
158
|
+
}, [l(a, null, {
|
|
159
|
+
default: x(() => [l(v(C))]),
|
|
160
|
+
_: 1
|
|
161
|
+
})]),
|
|
162
|
+
c("button", {
|
|
163
|
+
class: "HdForecastProducts-toolBtn",
|
|
164
|
+
title: "播放/暂停",
|
|
165
|
+
onClick: se
|
|
166
|
+
}, [l(a, null, {
|
|
167
|
+
default: x(() => [B.value ? (m(), o(v(ne), { key: 1 })) : (m(), o(v(re), { key: 0 }))]),
|
|
168
|
+
_: 1
|
|
169
|
+
})]),
|
|
170
|
+
c("button", {
|
|
171
|
+
class: "HdForecastProducts-toolBtn",
|
|
172
|
+
title: "下一张",
|
|
173
|
+
onClick: t[0] ||= (e) => X()
|
|
174
|
+
}, [l(a, null, {
|
|
175
|
+
default: x(() => [l(v(te))]),
|
|
176
|
+
_: 1
|
|
177
|
+
})]),
|
|
178
|
+
c("div", E, [
|
|
179
|
+
t[3] ||= c("span", { class: "HdForecastProducts-speedLabel" }, "播放速度", -1),
|
|
180
|
+
S(c("input", {
|
|
181
|
+
"onUpdate:modelValue": t[1] ||= (e) => V.value = e,
|
|
182
|
+
class: "HdForecastProducts-speedSlider",
|
|
183
|
+
type: "range",
|
|
184
|
+
min: "0.5",
|
|
185
|
+
max: "4",
|
|
186
|
+
step: "0.5"
|
|
187
|
+
}, null, 512), [[
|
|
188
|
+
y,
|
|
189
|
+
V.value,
|
|
190
|
+
void 0,
|
|
191
|
+
{ number: !0 }
|
|
192
|
+
]]),
|
|
193
|
+
c("span", D, "(" + _(V.value) + "S)", 1)
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
c("div", O, [c("div", k, [K.value.image ? (m(), s("img", {
|
|
197
|
+
key: 0,
|
|
198
|
+
class: "HdForecastProducts-image",
|
|
199
|
+
src: K.value.image,
|
|
200
|
+
alt: ""
|
|
201
|
+
}, null, 8, A)) : (m(), s("div", j, "暂无图片"))]), c("div", M, [t[4] ||= c("div", { class: "HdForecastProducts-sideTitle" }, "时次选择", -1), c("div", N, [(m(!0), s(r, null, g(G.value, (e, t) => (m(), s("div", {
|
|
202
|
+
key: t,
|
|
203
|
+
class: d(["HdForecastProducts-item", { "HdForecastProducts-item--active": t === z.value }]),
|
|
204
|
+
onClick: (e) => Z(t)
|
|
205
|
+
}, [c("span", F, _(e.hour), 1)], 10, P))), 128))])])])
|
|
206
|
+
])])]);
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}), [["__scopeId", "data-v-7dfa3bb3"]]);
|
|
210
|
+
//#endregion
|
|
211
|
+
export { I as t };
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
2
|
+
import { i as t } from "./component-AiChat-BXNBLM1G.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 };
|