feat(platform): refocus dashboard on vehicle operations

This commit is contained in:
lingniu
2026-07-05 00:03:12 +08:00
parent 6888f1a598
commit 2ca656a3f3
4 changed files with 265 additions and 113 deletions

View File

@@ -38,10 +38,15 @@ const navGroups = [
]
},
{
title: '告警运维',
title: '告警通知',
items: [
{ itemKey: 'alert-events', text: '告警事件', icon: <IconHistogram /> },
{ itemKey: 'notification-rules', text: '通知规则', icon: <IconBell /> },
{ itemKey: 'notification-rules', text: '通知规则', icon: <IconBell /> }
]
},
{
title: '系统运维',
items: [
{ itemKey: 'ops-quality', text: '运维质量', icon: <IconPulse /> }
]
}
@@ -170,17 +175,13 @@ export function AppShell({
{currentVehicleConsistency.title || `${currentVehicleConsistency.onlineSourceCount}/${currentVehicleConsistency.sourceCount} 来源`}
</Tag>
) : null}
<Tag color="blue"></Tag>
{platformRelease ? <Tag color="blue"> {platformRelease}</Tag> : null}
<Tag color="grey"></Tag>
<Tag color="blue"></Tag>
<Tag color={amapConfigured ? 'green' : 'orange'}>{amapConfigured ? '地图就绪' : '地图待配置'}</Tag>
<Button size="small" aria-label="顶部地图态势" onClick={() => onChange('map')}></Button>
<Button size="small" aria-label="顶部实时监控" onClick={() => onChange('realtime')}></Button>
<Button size="small" aria-label="顶部轨迹回放" onClick={() => onChange('history')}></Button>
<Button size="small" aria-label="顶部历史查询" onClick={() => onChange('history-query')}></Button>
<Button size="small" aria-label="顶部统计查询" onClick={() => onChange('mileage')}></Button>
<Button size="small" aria-label="顶部通知规则" onClick={() => onChange('notification-rules')}></Button>
<Button size="small" aria-label="顶部运维质量" onClick={() => onChange('ops-quality')}></Button>
<Button
size="small"
aria-label={`顶部${alertLabel}`}
@@ -189,6 +190,7 @@ export function AppShell({
>
{alertLabel}
</Button>
{platformRelease ? <Tag color="grey"> {platformRelease}</Tag> : null}
</Space>
</header>
{children}