feat(platform): reorganize customer navigation

This commit is contained in:
lingniu
2026-07-05 02:44:34 +08:00
parent 7ec2bcf3f9
commit 21828c7b05
3 changed files with 30 additions and 12 deletions

View File

@@ -20,17 +20,19 @@ export type PageKey = 'dashboard' | 'vehicles' | 'map' | 'realtime' | 'detail' |
const navGroups = [
{
title: '车辆运营',
title: '车辆服务',
description: '以车辆为对象监控在线、位置和服务状态',
items: [
{ itemKey: 'dashboard', text: '运营驾驶舱', icon: <IconHome /> },
{ itemKey: 'vehicles', text: '车辆中心', icon: <IconServer /> },
{ itemKey: 'map', text: '实时地图', icon: <IconMapPin /> },
{ itemKey: 'realtime', text: '实时监控', icon: <IconActivity /> },
{ itemKey: 'vehicles', text: '车辆中心', icon: <IconServer /> },
{ itemKey: 'detail', text: '车辆档案', icon: <IconSetting /> }
]
},
{
title: '轨迹报表',
title: '数据交付',
description: '轨迹、里程、历史数据和客户导出',
items: [
{ itemKey: 'history', text: '轨迹回放', icon: <IconMapPin /> },
{ itemKey: 'mileage', text: '里程统计', icon: <IconBarChartHStroked /> },
@@ -38,14 +40,16 @@ const navGroups = [
]
},
{
title: '告警通知',
title: '告警闭环',
description: '断链、离线、定位异常和通知升级',
items: [
{ itemKey: 'alert-events', text: '告警事件', icon: <IconHistogram /> },
{ itemKey: 'notification-rules', text: '通知规则', icon: <IconBell /> }
]
},
{
title: '平台运维',
title: '运维后台',
description: '接入链路和平台运行质量单独查看',
items: [
{ itemKey: 'ops-quality', text: '运维质量', icon: <IconPulse /> }
]
@@ -141,13 +145,16 @@ export function AppShell({
<span className="vp-brand-mark" />
<span className="vp-brand-copy">
<span></span>
<span> / / </span>
<span> / / </span>
</span>
</div>
<div className="vp-nav-groups">
{navGroups.map((group) => (
<div key={group.title} className="vp-nav-group">
<div className="vp-nav-section-title">{group.title}</div>
<div className="vp-nav-section-title">
<span>{group.title}</span>
<small>{group.description}</small>
</div>
<Nav
selectedKeys={[selectedPage]}
items={group.items}