feat(platform): center navigation on vehicle service

This commit is contained in:
lingniu
2026-07-03 23:49:01 +08:00
parent fe92b34356
commit 6c53172ba7
8 changed files with 24 additions and 23 deletions

View File

@@ -16,12 +16,12 @@ export type PageKey = 'dashboard' | 'vehicles' | 'realtime' | 'detail' | 'histor
const navItems = [
{ itemKey: 'dashboard', text: '总览工作台', icon: <IconHome /> },
{ itemKey: 'vehicles', text: '车辆台账', icon: <IconServer /> },
{ itemKey: 'realtime', text: '实时状态', icon: <IconActivity /> },
{ itemKey: 'vehicles', text: '车辆服务', icon: <IconServer /> },
{ itemKey: 'realtime', text: '实时车辆', icon: <IconActivity /> },
{ itemKey: 'detail', text: '车辆详情', icon: <IconSetting /> },
{ itemKey: 'history', text: '历史查询', icon: <IconMapPin /> },
{ itemKey: 'mileage', text: '里程分析', icon: <IconBarChartHStroked /> },
{ itemKey: 'quality', text: '数据质量', icon: <IconHistogram /> }
{ itemKey: 'history', text: '历史数据', icon: <IconMapPin /> },
{ itemKey: 'mileage', text: '里程统计', icon: <IconBarChartHStroked /> },
{ itemKey: 'quality', text: '质量治理', icon: <IconHistogram /> }
];
function linkHealthClassName(count: number | null) {
@@ -61,7 +61,7 @@ export function AppShell({
<aside className="vp-sidebar">
<div className="vp-brand">
<span className="vp-brand-mark" />
<span></span>
<span></span>
</div>
<Nav
selectedKeys={[activePage]}
@@ -85,6 +85,7 @@ export function AppShell({
</Space>
<Space spacing={12}>
<Tag color="blue"></Tag>
<Tag color="grey"> / </Tag>
<Button size="small" className={linkHealthClassName(linkIssueCount)} onClick={() => onChange('quality')}>
{linkIssueCount == null ? '链路监控' : linkIssueCount > 0 ? `链路 ${linkIssueCount} 项关注` : '链路正常'}
</Button>