feat(platform): add dedicated time monitor workspace
This commit is contained in:
@@ -16,7 +16,7 @@ import { useState } from 'react';
|
||||
import type { VehicleSourceConsistency, VehicleServiceStatus } from '../api/types';
|
||||
import { isAMapConfigured } from '../config/appConfig';
|
||||
|
||||
export type PageKey = 'dashboard' | 'vehicles' | 'map' | 'realtime' | 'detail' | 'history' | 'history-query' | 'mileage' | 'alert-events' | 'quality' | 'notification-rules' | 'ops-quality';
|
||||
export type PageKey = 'dashboard' | 'vehicles' | 'map' | 'realtime' | 'detail' | 'history' | 'history-query' | 'mileage' | 'time-monitor' | 'alert-events' | 'quality' | 'notification-rules' | 'ops-quality';
|
||||
|
||||
export type CustomerView = {
|
||||
id: string;
|
||||
@@ -54,6 +54,7 @@ const navGroups = [
|
||||
items: [
|
||||
{ itemKey: 'history', text: '轨迹回放', icon: <IconMapPin /> },
|
||||
{ itemKey: 'mileage', text: '统计查询', icon: <IconBarChartHStroked /> },
|
||||
{ itemKey: 'time-monitor', text: '时间窗监控', icon: <IconPulse /> },
|
||||
{ itemKey: 'history-query', text: '数据导出', icon: <IconHistogram /> }
|
||||
]
|
||||
},
|
||||
@@ -82,6 +83,7 @@ const customerPrimaryPath = [
|
||||
{ label: '车辆地图', page: 'map' as const },
|
||||
{ label: '轨迹回放', page: 'history' as const },
|
||||
{ label: '统计查询', page: 'mileage' as const },
|
||||
{ label: '时间窗监控', page: 'time-monitor' as const },
|
||||
{ label: '数据导出', page: 'history-query' as const },
|
||||
{ label: '告警通知', page: 'alert-events' as const }
|
||||
];
|
||||
@@ -90,6 +92,7 @@ const customerTaskPath = [
|
||||
{ label: '地图看车', question: '车辆在哪里', page: 'map' as const },
|
||||
{ label: '轨迹回放', question: '这段时间怎么跑', page: 'history' as const },
|
||||
{ label: '统计查询', question: '里程怎么算', page: 'mileage' as const },
|
||||
{ label: '时间窗监控', question: '这段时间发生什么', page: 'time-monitor' as const },
|
||||
{ label: '数据导出', question: '证据怎么给客户', page: 'history-query' as const },
|
||||
{ label: '告警通知', question: '异常谁处理', page: 'alert-events' as const }
|
||||
];
|
||||
@@ -216,6 +219,7 @@ export function AppShell({
|
||||
{ label: '监控', ariaLabel: '顶部实时监控', page: 'realtime' as const },
|
||||
{ label: '轨迹', ariaLabel: '顶部轨迹回放', page: 'history' as const },
|
||||
{ label: '统计', ariaLabel: '顶部统计查询', page: 'mileage' as const },
|
||||
{ label: '时间窗', ariaLabel: '顶部时间窗监控', page: 'time-monitor' as const },
|
||||
{ label: '导出', ariaLabel: '顶部数据导出', page: 'history-query' as const },
|
||||
{ label: '告警', ariaLabel: '顶部告警事件', page: 'alert-events' as const }
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user