feat(platform): add vehicle command center
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user