feat(platform): expose missing sources per vehicle

This commit is contained in:
lingniu
2026-07-04 05:42:39 +08:00
parent bc6715b35b
commit 5e7c4b56ef
8 changed files with 44 additions and 2 deletions

View File

@@ -125,6 +125,17 @@ export function Vehicles({
</Space>
)
},
{
title: '缺失来源',
width: 220,
render: (_: unknown, row: VehicleCoverageRow) => (
<Space spacing={4} wrap>
{(row.missingProtocols ?? []).length > 0
? row.missingProtocols.map((protocol) => <Tag key={protocol} color="orange"> {protocol}</Tag>)
: <Tag color="green"></Tag>}
</Space>
)
},
{ title: '证据覆盖', width: 120, render: (_: unknown, row: VehicleCoverageRow) => sourceEvidenceText(row) },
{ title: '在线', width: 90, render: (_: unknown, row: VehicleCoverageRow) => <StatusTag status={row.online ? 'ok' : 'offline'} /> },
{ title: '最后在线', dataIndex: 'lastSeen', width: 170 },