From 221a67e4cbc026692d4dd5a40dfed1862019d95f Mon Sep 17 00:00:00 2001 From: lingniu Date: Mon, 6 Jul 2026 01:13:31 +0800 Subject: [PATCH] feat(platform): make dashboard map first --- .../apps/web/src/pages/Dashboard.tsx | 64 +++++++++---------- .../apps/web/src/test/App.test.tsx | 2 +- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/vehicle-data-platform/apps/web/src/pages/Dashboard.tsx b/vehicle-data-platform/apps/web/src/pages/Dashboard.tsx index 74f6ffa6..70c70990 100644 --- a/vehicle-data-platform/apps/web/src/pages/Dashboard.tsx +++ b/vehicle-data-platform/apps/web/src/pages/Dashboard.tsx @@ -2432,6 +2432,38 @@ export function Dashboard({
+
+
+ +
+
+ + 车辆地图态势 + {amapConfigured ? '高德地图可用' : '坐标预览'} + 0 ? 'orange' : 'green'}>{formatCount(summary?.issueVehicles)} 告警 + + 先看在线车辆在哪里,再决定是否回放轨迹、核对里程、导出数据或通知处理。 +
+ {customerCockpitMetrics.slice(1, 4).map((item) => ( + + ))} +
+ + + + + + +
+
@@ -2785,38 +2817,6 @@ export function Dashboard({
-
-
- -
-
- - 车辆地图态势 - {amapConfigured ? '高德地图可用' : '坐标预览'} - 0 ? 'orange' : 'green'}>{formatCount(summary?.issueVehicles)} 告警 - - 先看在线车辆在哪里,再决定是否回放轨迹、核对里程、导出数据或通知处理。 -
- {customerCockpitMetrics.slice(1, 4).map((item) => ( - - ))} -
- - - - - - -
-
diff --git a/vehicle-data-platform/apps/web/src/test/App.test.tsx b/vehicle-data-platform/apps/web/src/test/App.test.tsx index a08af8a2..718ca5ef 100644 --- a/vehicle-data-platform/apps/web/src/test/App.test.tsx +++ b/vehicle-data-platform/apps/web/src/test/App.test.tsx @@ -785,7 +785,7 @@ test('dashboard prioritizes customer vehicle service command over data sources', expect(screen.getByText('先看在线车辆在哪里,再决定是否回放轨迹、核对里程、导出数据或通知处理。')).toBeInTheDocument(); expect(screen.getByRole('button', { name: '车辆地图态势 打开实时地图' })).toBeInTheDocument(); expect(screen.getByRole('button', { name: '车辆地图态势 回放轨迹' })).toBeInTheDocument(); - expect(screen.getByText('车辆地图态势').compareDocumentPosition(screen.getByText('客户车辆服务总控台')) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy(); + expect(screen.getByText('车辆地图态势').compareDocumentPosition(screen.getByText('客户车辆服务驾驶舱')) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy(); expect(await screen.findByText('客户车辆服务总控台')).toBeInTheDocument(); expect(screen.getByText('来源证据收敛层')).toBeInTheDocument(); expect(screen.getByText('协议来源只用于证明车辆服务可信度,客户主流程仍然从车辆、地图、时间窗、统计、导出和告警进入。')).toBeInTheDocument();