feat(platform): include plates in raw history

This commit is contained in:
lingniu
2026-07-03 23:17:23 +08:00
parent a644a6617c
commit a4e9a8afb8
6 changed files with 60 additions and 25 deletions

View File

@@ -112,6 +112,7 @@ export interface HistoryLocationRow extends RealtimeLocationRow {
export interface RawFrameRow {
id: string;
vin: string;
plate: string;
protocol: string;
frameType: string;
deviceTime: string;

View File

@@ -163,6 +163,7 @@ export function History() {
columns={[
{ title: 'ID', dataIndex: 'id', width: 260 },
{ title: 'VIN', dataIndex: 'vin', width: 190 },
{ title: '车牌', dataIndex: 'plate', width: 120 },
{ title: '协议', dataIndex: 'protocol', width: 120 },
{ title: '帧类型', dataIndex: 'frameType', width: 190 },
{ title: '大小 B', dataIndex: 'rawSizeBytes', width: 100 },
@@ -177,7 +178,7 @@ export function History() {
<SideSheet title="RAW 解析字段" visible={Boolean(selectedRaw)} onCancel={() => setSelectedRaw(null)} width={720}>
<Space vertical align="start" spacing={12} style={{ width: '100%' }}>
<Typography.Text type="tertiary">
{selectedRaw?.protocol ?? '-'} / {selectedRaw?.vin ?? '-'} / {rawFieldCount}
{selectedRaw?.protocol ?? '-'} / {selectedRaw?.plate || selectedRaw?.vin || '-'} / {rawFieldCount}
</Typography.Text>
{rawFieldCount === 0 ? (
<Typography.Text type="secondary"></Typography.Text>