diff --git a/vehicle-data-platform/apps/web/src/pages/VehicleDetail.tsx b/vehicle-data-platform/apps/web/src/pages/VehicleDetail.tsx index 38c5831d..5b86b5b7 100644 --- a/vehicle-data-platform/apps/web/src/pages/VehicleDetail.tsx +++ b/vehicle-data-platform/apps/web/src/pages/VehicleDetail.tsx @@ -43,7 +43,7 @@ export function VehicleDetail({ vin }: { vin: string }) { const latest = detail?.realtime[0]; const protocols = useMemo(() => detail?.sources ?? [], [detail?.sources]); const latestRaw = detail?.raw.items[0]; - const qualityCount = detail?.quality.items.length ?? 0; + const qualityCount = detail?.quality.total ?? 0; return (
@@ -80,7 +80,7 @@ export function VehicleDetail({ vin }: { vin: string }) { { key: '来源协议', value: protocols.length > 0 ? {protocols.map((item) => {item})} : '-' }, { key: '最后位置时间', value: latest?.lastSeen ?? '-' }, { key: '最新 RAW 时间', value: latestRaw?.serverTime ?? '-' }, - { key: '质量风险', value: 0 ? 'orange' : 'green'}>{qualityCount > 0 ? `${qualityCount} 项` : '无'} } + { key: '质量问题', value: 0 ? 'orange' : 'green'}>{qualityCount > 0 ? `${qualityCount} 项` : '无'} } ]} />
@@ -172,7 +172,7 @@ export function VehicleDetail({ vin }: { vin: string }) { ]} /> - +