feat(platform): show vehicle detail lookup key

This commit is contained in:
lingniu
2026-07-03 23:59:34 +08:00
parent 8af622e7f6
commit a5ca34797d

View File

@@ -78,12 +78,13 @@ export function VehicleDetail({
const qualityCount = detail?.quality.total ?? 0;
const online = summary?.online || identity?.online || false;
const lastSeen = summary?.lastSeen || latest?.lastSeen || '-';
const formKey = `${query.keyword}-${query.protocol ?? ''}`;
return (
<div className="vp-page">
<PageHeader title="车辆服务" description="以 VIN 为主对象聚合身份、实时、历史、RAW 和里程,协议仅作为数据来源" />
<Card bordered>
<Form initValues={query} layout="horizontal" onSubmit={(values) => {
<Form key={formKey} initValues={query} layout="horizontal" onSubmit={(values) => {
const nextQuery = { keyword: String(values.keyword ?? ''), protocol: String(values.protocol ?? '') };
setQuery(nextQuery);
load(nextQuery);
@@ -108,6 +109,7 @@ export function VehicleDetail({
<Descriptions
row
data={[
{ key: '查询关键词', value: query.keyword },
{ key: 'VIN', value: resolvedVIN },
{ key: '车牌', value: summary?.plate || identity?.plate || latest?.plate || '-' },
{ key: '手机号', value: summary?.phone || identity?.phone || '-' },