feat(platform): promote customer time window monitoring

This commit is contained in:
lingniu
2026-07-05 20:16:39 +08:00
parent 0beca74bcf
commit d10291a003
3 changed files with 11 additions and 1 deletions

View File

@@ -1763,6 +1763,14 @@ export function Dashboard({
color: 'blue' as const,
onClick: openTimeMonitorMileage
},
{
label: '时间窗监控',
value: dayRangeText(timeMonitorScopeValue.dateFrom, timeMonitorScopeValue.dateTo),
detail: '同一时间窗贯穿轨迹、统计、历史导出和告警复盘。',
action: '自定义时间',
color: 'blue' as const,
onClick: openTimeMonitorHistory
},
{
label: '数据导出',
value: `${formatCount(summary?.frameToday)} 今日数据`,

View File

@@ -1250,7 +1250,7 @@ body {
.vp-customer-service-command-grid {
padding: 14px;
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 10px;
}

View File

@@ -707,6 +707,8 @@ test('dashboard prioritizes customer vehicle service command over data sources',
expect(screen.getByRole('button', { name: '客户车辆服务总控台 实时地图 208 在线 进入地图' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户车辆服务总控台 轨迹回放 4 活跃 回放轨迹' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户车辆服务总控台 统计查询 1,033 车辆 查统计' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户车辆服务总控台 时间窗监控 1 天窗口 自定义时间' })).toBeInTheDocument();
expect(screen.getByText('同一时间窗贯穿轨迹、统计、历史导出和告警复盘。')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户车辆服务总控台 数据导出 1,286,320 今日数据 查询导出' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户车辆服务总控台 告警通知 7 告警 闭环告警' })).toBeInTheDocument();
expect(screen.getByText('来源证据GB32960 / JT808 / YUTONG_MQTT')).toBeInTheDocument();