feat(platform): expose vehicle operations shortcuts

This commit is contained in:
lingniu
2026-07-04 14:14:06 +08:00
parent 67ebf89db9
commit d6c2edce7e
2 changed files with 49 additions and 6 deletions

View File

@@ -109,10 +109,17 @@ export function AppShell({
<Tag color="blue"></Tag>
<Tag color="grey"> / </Tag>
<Tag color={amapConfigured ? 'green' : 'orange'}>{amapConfigured ? '地图就绪' : '地图待配置'}</Tag>
<Button size="small" onClick={() => onChange('realtime')}></Button>
<Button size="small" onClick={() => onChange('history')}></Button>
<Button size="small" className={linkHealthClassName(linkIssueCount)} onClick={() => onChange('quality')}>
{linkIssueCount == null ? '链路监控' : linkIssueCount > 0 ? `链路 ${linkIssueCount} 项关注` : '链路正常'}
<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')}></Button>
<Button size="small" aria-label="顶部统计查询" onClick={() => onChange('mileage')}></Button>
<Button
size="small"
aria-label={linkIssueCount == null ? '顶部告警通知' : linkIssueCount > 0 ? `顶部告警通知 ${linkIssueCount}项关注` : '顶部告警通知正常'}
className={linkHealthClassName(linkIssueCount)}
onClick={() => onChange('quality')}
>
{linkIssueCount == null ? '告警通知' : linkIssueCount > 0 ? `告警通知 ${linkIssueCount}项关注` : '告警通知正常'}
</Button>
</Space>
</header>