feat(platform): center navigation on vehicle service
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user