feat(platform): open raw evidence from vehicle detail

This commit is contained in:
lingniu
2026-07-04 06:17:27 +08:00
parent 8cd90f629b
commit b9a173f8d2
6 changed files with 141 additions and 6 deletions

View File

@@ -68,6 +68,7 @@ export function VehicleDetail({
vin,
protocol,
onOpenHistory,
onOpenRaw,
onOpenMileage,
onOpenVehicles,
onQueryChange
@@ -75,6 +76,7 @@ export function VehicleDetail({
vin: string;
protocol?: string;
onOpenHistory: (vin: string, protocol?: string) => void;
onOpenRaw: (vin: string, protocol?: string) => void;
onOpenMileage: (vin: string, protocol?: string) => void;
onOpenVehicles?: (filters?: Record<string, string>) => void;
onQueryChange?: (keyword: string, protocol?: string) => void;
@@ -384,6 +386,15 @@ export function VehicleDetail({
>
{row.protocol}
</Button>
<Button
size="small"
theme="light"
type="tertiary"
disabled={!row.hasRaw}
onClick={() => onOpenRaw(resolvedVIN, row.protocol)}
>
{row.protocol} RAW
</Button>
<Button
size="small"
theme="light"