From 13d818faf26b8b5a5a4b12d7c81a92f965a628ea Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 25 May 2026 19:01:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=B0=E5=8A=BF=E5=9B=BE=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E5=88=86=E6=B5=81=EF=BC=9A=E6=9C=89=E8=B7=91=E9=81=93=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=E5=9B=BE=E8=A1=A8=E5=B1=95=E7=A4=BA=E8=B7=91?= =?UTF-8?q?=E9=81=93+=E5=A4=9A=E6=A8=A1=E5=9E=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E8=B7=91=E9=81=93=E6=97=B6=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=A4=9A=E6=A8=A1=E5=9E=8B=E6=9B=B2=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LiveTemperatureThresholdChart.tsx | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/frontend/components/dashboard/scan-terminal/LiveTemperatureThresholdChart.tsx b/frontend/components/dashboard/scan-terminal/LiveTemperatureThresholdChart.tsx index fb3f7af2..3860e20c 100644 --- a/frontend/components/dashboard/scan-terminal/LiveTemperatureThresholdChart.tsx +++ b/frontend/components/dashboard/scan-terminal/LiveTemperatureThresholdChart.tsx @@ -780,6 +780,7 @@ export function LiveTemperatureThresholdChart({ }, [row, tzOffset]); const runwayPlates = useMemo(() => buildRunwayPlates(hourly?.amos, row, settlementObs), [hourly?.amos, row, settlementObs]); + const hasRunwayData = runwayPlates.length > 0; const settlementPlate = useMemo(() => runwayPlates.find((p) => p.isSettlement), [runwayPlates]); const cityKey = String(row?.city || "").toLowerCase().trim(); @@ -999,6 +1000,29 @@ export function LiveTemperatureThresholdChart({ )} + {/* Multi-model list (only when runway data is on chart) */} + {hasRunwayData && series.some((s) => s.key.startsWith("model_curve_")) && ( +
+
+ + {isEn ? "Models:" : "多模型:"} + + {series + .filter((s) => s.key.startsWith("model_curve_")) + .map((s) => { + const stats = seriesStats(s.values); + return ( + + + {s.label} + {temp(stats.latest)} + + ); + })} +
+
+ )} + {/* Chart */}
@@ -1064,7 +1088,9 @@ export function LiveTemperatureThresholdChart({ iconType="plainline" wrapperStyle={{ fontSize: 11 }} /> - {series.map((item) => ( + {series + .filter((item) => !hasRunwayData || !item.key.startsWith("model_curve_")) + .map((item) => (