feat(platform): surface selected vehicle map actions
This commit is contained in:
@@ -1367,6 +1367,53 @@ export function Realtime({
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="vp-map-selected-service-strip">
|
||||
<div className="vp-map-selected-service-summary">
|
||||
<Space wrap>
|
||||
<Tag color="blue">选中车辆服务</Tag>
|
||||
{selectedMapRow ? (
|
||||
<>
|
||||
<Tag color={vehicleServiceStatus(selectedMapRow).color}>{vehicleServiceStatus(selectedMapRow).label}</Tag>
|
||||
<Tag color={dataFreshness(selectedMapRow).color}>{dataFreshness(selectedMapRow).detail}</Tag>
|
||||
</>
|
||||
) : (
|
||||
<Tag color="grey">等待选车</Tag>
|
||||
)}
|
||||
</Space>
|
||||
<Typography.Title heading={5} style={{ margin: 0 }}>{selectedVehicleLabel}</Typography.Title>
|
||||
<Typography.Text type="secondary">
|
||||
客户在地图上选中车辆后,直接进入车辆档案、轨迹回放、里程核对、数据导出和告警处置。
|
||||
</Typography.Text>
|
||||
</div>
|
||||
<div className="vp-map-selected-service-actions">
|
||||
{mapVehicleWorkItems.map((item) => (
|
||||
<button
|
||||
key={item.title}
|
||||
type="button"
|
||||
className="vp-map-selected-service-action"
|
||||
disabled={item.disabled}
|
||||
onClick={item.onClick}
|
||||
aria-label={`地图选中车辆 ${item.title} ${item.action}`}
|
||||
>
|
||||
<Tag color={item.color}>{item.title}</Tag>
|
||||
<strong>{item.action}</strong>
|
||||
<span>{item.value}</span>
|
||||
</button>
|
||||
))}
|
||||
<button
|
||||
type="button"
|
||||
className="vp-map-selected-service-action"
|
||||
disabled={!selectedMapRow || !canOpenVehicle(selectedMapRow.vin)}
|
||||
onClick={openSelectedVehicleRaw}
|
||||
aria-label="地图选中车辆 数据导出 历史导出"
|
||||
>
|
||||
<Tag color="blue">数据导出</Tag>
|
||||
<strong>历史导出</strong>
|
||||
<span>{selectedMapRow ? selectedVehicleProtocol || selectedMapRow.primaryProtocol || '全部通道' : '等待选择'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="vp-map-task-strip">
|
||||
{mapCustomerTasks.map((item) => (
|
||||
<div key={item.title} className="vp-map-task-item">
|
||||
|
||||
Reference in New Issue
Block a user