diff --git a/vehicle-data-platform/apps/web/src/styles/global.css b/vehicle-data-platform/apps/web/src/styles/global.css
index 5109e76f..e632092e 100644
--- a/vehicle-data-platform/apps/web/src/styles/global.css
+++ b/vehicle-data-platform/apps/web/src/styles/global.css
@@ -235,6 +235,136 @@ body {
font-size: 13px;
}
+.vp-customer-hero {
+ margin-bottom: 16px;
+ overflow: hidden;
+}
+
+.vp-customer-hero .semi-card-body {
+ display: grid;
+ grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.7fr);
+ min-height: 420px;
+}
+
+.vp-customer-hero-map {
+ position: relative;
+ min-width: 0;
+ min-height: 420px;
+ background: #eef5ff;
+}
+
+.vp-customer-hero-copy {
+ position: absolute;
+ z-index: 2;
+ left: 24px;
+ top: 24px;
+ max-width: 560px;
+ padding: 18px;
+ border: 1px solid rgba(22, 100, 255, 0.16);
+ border-radius: 8px;
+ background: rgba(255, 255, 255, 0.92);
+ box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
+ display: grid;
+ gap: 12px;
+}
+
+.vp-customer-hero-map-canvas {
+ min-height: 420px;
+ height: 420px;
+ border: 0;
+ border-radius: 0;
+}
+
+.vp-customer-hero-side {
+ min-width: 0;
+ padding: 22px;
+ background: #ffffff;
+ border-left: 1px solid var(--vp-border);
+ display: grid;
+ align-content: start;
+ gap: 16px;
+}
+
+.vp-customer-hero-side-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+}
+
+.vp-customer-health-grid {
+ display: grid;
+ gap: 10px;
+}
+
+.vp-customer-health-item {
+ min-height: 78px;
+ padding: 12px;
+ border: 1px solid var(--vp-border);
+ border-radius: 8px;
+ background: #fbfcff;
+ text-align: left;
+ cursor: pointer;
+ display: grid;
+ grid-template-columns: auto 1fr;
+ gap: 6px 10px;
+ font: inherit;
+}
+
+.vp-customer-health-item:hover,
+.vp-customer-health-item:focus-visible {
+ border-color: rgba(22, 100, 255, 0.45);
+ background: #f5f9ff;
+ outline: none;
+}
+
+.vp-customer-health-item strong {
+ justify-self: end;
+ color: var(--vp-text);
+ font-size: 22px;
+ line-height: 24px;
+}
+
+.vp-customer-health-item span {
+ grid-column: 1 / -1;
+ color: var(--vp-text-muted);
+ font-size: 12px;
+ line-height: 18px;
+}
+
+.vp-customer-workflow-grid {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 12px;
+}
+
+.vp-customer-workflow-item {
+ min-height: 150px;
+ padding: 16px;
+ border: 1px solid var(--vp-border);
+ border-radius: 8px;
+ background: #ffffff;
+ cursor: pointer;
+ text-align: left;
+ font: inherit;
+ display: grid;
+ align-content: space-between;
+ gap: 12px;
+}
+
+.vp-customer-workflow-item:hover,
+.vp-customer-workflow-item:focus-visible {
+ border-color: rgba(22, 100, 255, 0.45);
+ box-shadow: var(--vp-shadow-sm);
+ outline: none;
+}
+
+.vp-customer-workflow-item strong {
+ color: var(--vp-text);
+ font-size: 20px;
+ line-height: 26px;
+}
+
.vp-result-summary-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
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 85dab955..35523d2e 100644
--- a/vehicle-data-platform/apps/web/src/test/App.test.tsx
+++ b/vehicle-data-platform/apps/web/src/test/App.test.tsx
@@ -24,7 +24,8 @@ test('renders vehicle platform shell', () => {
expect(screen.getByText('一车一服务 / 多源归并')).toBeInTheDocument();
expect(screen.getByText('车辆工作台')).toBeInTheDocument();
expect(screen.getByText('查询分析')).toBeInTheDocument();
- expect(screen.getByText('告警运维')).toBeInTheDocument();
+ expect(screen.getAllByText('告警通知').length).toBeGreaterThanOrEqual(1);
+ expect(screen.getByText('系统运维')).toBeInTheDocument();
expect(screen.getAllByText('运营驾驶舱').length).toBeGreaterThanOrEqual(1);
});
@@ -593,7 +594,7 @@ test('dashboard presents one vehicle service operating posture', async () => {
render(
);
expect(await screen.findByText('统一车辆服务入口')).toBeInTheDocument();
- expect(screen.getByText('208 / 1,033 在线')).toBeInTheDocument();
+ expect(screen.getAllByText('208 / 1,033 在线').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('181 多源覆盖')).toBeInTheDocument();
expect(screen.getByText('7 告警事件')).toBeInTheDocument();
});
@@ -790,8 +791,12 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
};
await renderDashboard();
+ expect(screen.getByText('车辆运营监控台')).toBeInTheDocument();
+ expect(screen.getByText('先看车,再看数据来源')).toBeInTheDocument();
+ expect(screen.getByText('客户常用工作流')).toBeInTheDocument();
+ expect(screen.getByText('实时车辆地图')).toBeInTheDocument();
+ expect(screen.getByText('历史数据导出')).toBeInTheDocument();
expect(screen.getByText('车辆服务作业台')).toBeInTheDocument();
- expect(screen.getByText('数据源到车辆服务就绪度')).toBeInTheDocument();
expect(screen.getByText('地图运营能力')).toBeInTheDocument();
expect(screen.getByText('数据流转作业链')).toBeInTheDocument();
expect(screen.getByText('车联网场景导航')).toBeInTheDocument();
@@ -799,11 +804,6 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
expect(screen.getByText('服务端 API')).toBeInTheDocument();
expect(screen.getByText('安全代理')).toBeInTheDocument();
expect(screen.getByText('安全码暴露')).toBeInTheDocument();
- expect(screen.getByText('GB32960')).toBeInTheDocument();
- expect(screen.getByText('JT808')).toBeInTheDocument();
- expect(screen.getByText('YUTONG_MQTT')).toBeInTheDocument();
- expect(screen.getByText('整车与氢能实时数据主来源')).toBeInTheDocument();
- expect(screen.getByText('在线 73/340,缺失车辆 693,Kafka Lag 0')).toBeInTheDocument();
expect(screen.getByText('协议接入')).toBeInTheDocument();
expect(screen.getByText('统一解析')).toBeInTheDocument();
expect(screen.getByText('实时投影')).toBeInTheDocument();
@@ -843,19 +843,15 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
fireEvent.click(screen.getByRole('button', { name: '复制流转图' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【车辆数据中台数据流转图】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('03. 实时投影 / Redis KV'));
- fireEvent.click(screen.getByRole('button', { name: '复制接入交接' }));
- expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【三源接入到车辆服务交接摘要】'));
- expect(writeText).toHaveBeenCalledWith(expect.stringContaining('1. GB32960 - 覆盖不足'));
- expect(writeText).toHaveBeenCalledWith(expect.stringContaining('RAW:http://localhost:3000/#/history-query?protocol=GB32960&tab=raw&includeFields=true'));
- fireEvent.click(screen.getAllByRole('button', { name: '实时' })[0]);
- expect(window.location.hash).toBe('#/realtime?protocol=GB32960&online=online');
+ fireEvent.click(screen.getByRole('button', { name: '客户工作流 实时车辆地图' }));
+ expect(window.location.hash).toBe('#/map?online=online');
cleanup();
await renderDashboard();
- fireEvent.click(screen.getAllByRole('button', { name: 'RAW' })[0]);
+ fireEvent.click(screen.getByRole('button', { name: '客户工作流 历史数据导出' }));
expect(window.location.hash.startsWith('#/history-query')).toBe(true);
- expect(new URLSearchParams(window.location.hash.split('?')[1] ?? '').get('protocol')).toBe('GB32960');
+ expect(new URLSearchParams(window.location.hash.split('?')[1] ?? '').get('tab')).toBe('raw');
expect(new URLSearchParams(window.location.hash.split('?')[1] ?? '').get('includeFields')).toBe('true');
cleanup();