feat(platform): open raw evidence from vehicle detail
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user