feat(platform): add vehicle command center

This commit is contained in:
lingniu
2026-07-06 02:19:39 +08:00
parent 1d51c92d8c
commit 20b8fa425b
3 changed files with 233 additions and 1 deletions

View File

@@ -2472,6 +2472,67 @@ export function Dashboard({
<div className="vp-page">
<PageHeader title="车辆服务工作台" description="面向客户的车辆地图、实时监控、轨迹回放、统计查询、自定义时间窗复盘、历史查询、告警通知和数据导出" />
<Spin spinning={loading}>
<section className="vp-vehicle-command-center" aria-label="车辆服务指挥台">
<div className="vp-vehicle-command-map">
<VehicleMap
points={commandMapPoints}
maxFallbackPoints={90}
heightClassName="vp-vehicle-command-map-canvas"
fallbackLabel="显示车辆服务指挥台坐标预览"
/>
<div className="vp-vehicle-command-map-status">
<Tag color={amapConfigured ? 'green' : 'orange'}>{amapConfigured ? '高德地图可用' : '坐标预览'}</Tag>
<Tag color={(summary?.issueVehicles ?? 0) > 0 ? 'orange' : 'green'}>{formatCount(summary?.issueVehicles)} </Tag>
</div>
</div>
<div className="vp-vehicle-command-main">
<Space wrap>
<Tag color="blue"></Tag>
<Tag color="green"></Tag>
</Space>
<Typography.Title heading={3} style={{ margin: 0 }}>
10
</Typography.Title>
<div className="vp-vehicle-command-actions">
{customerTaskNavigation.map((item) => (
<button
key={item.title}
type="button"
className="vp-vehicle-command-action"
onClick={item.onClick}
aria-label={`车辆服务指挥台 ${item.title} ${item.action}`}
>
<Tag color={item.color}>{item.title}</Tag>
<strong>{item.value}</strong>
<span>{item.detail}</span>
<em>{item.action}</em>
</button>
))}
</div>
</div>
<div className="vp-vehicle-command-queue">
<div className="vp-vehicle-command-queue-head">
<Typography.Text strong></Typography.Text>
<Typography.Text type="secondary"></Typography.Text>
</div>
<div className="vp-vehicle-command-queue-grid">
{vehiclePriorityQueue.map((item) => (
<button
key={item.title}
type="button"
className="vp-vehicle-command-queue-item"
onClick={item.onClick}
aria-label={`车辆服务指挥台优先队列 ${item.title} ${item.value} ${item.action}`}
>
<Tag color={item.color}>{item.title}</Tag>
<strong>{item.value}</strong>
<span>{item.detail}</span>
<em>{item.action}</em>
</button>
))}
</div>
</div>
</section>
<section className="vp-customer-map-situation" aria-label="车辆地图态势">
<div className="vp-customer-map-situation-map">
<VehicleMap