feat(platform): summarize missing vehicle sources
This commit is contained in:
@@ -65,6 +65,14 @@ export function Vehicles({
|
||||
{ label: '暂无来源车辆', value: (summary?.noDataVehicles ?? 0).toLocaleString(), filters: { serviceStatus: 'no_data' } },
|
||||
{ label: '待绑定', value: (summary?.unboundVehicles ?? 0).toLocaleString(), filters: { bindingStatus: 'unbound' } }
|
||||
];
|
||||
for (const source of summary?.missingSources ?? []) {
|
||||
if (source.count <= 0) continue;
|
||||
items.push({
|
||||
label: `缺 ${source.protocol}`,
|
||||
value: source.count.toLocaleString(),
|
||||
filters: { missingProtocol: source.protocol }
|
||||
});
|
||||
}
|
||||
return items;
|
||||
}, [pagination.total, summary]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user