feat(platform): add ten second vehicle triage
This commit is contained in:
@@ -1707,6 +1707,32 @@ export function Dashboard({
|
||||
onClick: () => onOpenQuality(highPriorityIssue?.issueType ? { issueType: highPriorityIssue.issueType } : {})
|
||||
}
|
||||
];
|
||||
const tenSecondTriageItems = [
|
||||
{
|
||||
label: '告警车辆',
|
||||
value: `${formatCount(summary?.issueVehicles)} 辆`,
|
||||
detail: highPriorityIssue ? `${qualityIssueLabel(highPriorityIssue.issueType)} / ${priorityIssueVehicleLabel(highPriorityIssue)}` : '暂无高优先级告警,保持日常巡检。',
|
||||
action: '处理告警',
|
||||
color: (summary?.issueVehicles ?? 0) > 0 ? 'orange' as const : 'green' as const,
|
||||
onClick: () => onOpenQuality(highPriorityIssue?.issueType ? { issueType: highPriorityIssue.issueType } : {})
|
||||
},
|
||||
{
|
||||
label: '无数据车辆',
|
||||
value: `${formatCount(serviceSummary?.noDataVehicles)} 辆`,
|
||||
detail: '优先确认平台转发、车辆是否在线以及是否有任何来源证据。',
|
||||
action: '查车辆',
|
||||
color: (serviceSummary?.noDataVehicles ?? 0) > 0 ? 'orange' as const : 'green' as const,
|
||||
onClick: () => onOpenVehicles({ serviceStatus: 'no_data' })
|
||||
},
|
||||
{
|
||||
label: '身份未绑定',
|
||||
value: `${formatCount(serviceSummary?.identityRequiredVehicles)} 辆`,
|
||||
detail: '已有上报但无法稳定归并到 VIN,会影响地图、轨迹和统计聚合。',
|
||||
action: '维护绑定',
|
||||
color: (serviceSummary?.identityRequiredVehicles ?? 0) > 0 ? 'orange' as const : 'green' as const,
|
||||
onClick: () => onOpenVehicles({ serviceStatus: 'identity_required' })
|
||||
}
|
||||
];
|
||||
const amapVehicleServiceItems = [
|
||||
{
|
||||
label: '实时看车',
|
||||
@@ -2456,6 +2482,36 @@ export function Dashboard({
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
<section className="vp-ten-second-triage" aria-label="十秒车辆处置台">
|
||||
<div className="vp-ten-second-triage-copy">
|
||||
<Space wrap>
|
||||
<Tag color="blue">十秒车辆处置台</Tag>
|
||||
<Tag color={(summary?.issueVehicles ?? 0) > 0 || (serviceSummary?.noDataVehicles ?? 0) > 0 ? 'orange' : 'green'}>先处理异常车辆</Tag>
|
||||
</Space>
|
||||
<Typography.Title heading={5} style={{ margin: 0 }}>
|
||||
登录后先知道哪三类车辆最需要处理,再进入地图、车辆中心或告警通知。
|
||||
</Typography.Title>
|
||||
<Typography.Text type="secondary">
|
||||
首页只保留能直接行动的优先级:告警车辆、无数据车辆、身份未绑定车辆;协议来源留在证据层解释原因。
|
||||
</Typography.Text>
|
||||
</div>
|
||||
<div className="vp-ten-second-triage-grid">
|
||||
{tenSecondTriageItems.map((item) => (
|
||||
<button
|
||||
key={item.label}
|
||||
type="button"
|
||||
className="vp-ten-second-triage-item"
|
||||
onClick={item.onClick}
|
||||
aria-label={`十秒车辆处置台 ${item.label} ${item.value} ${item.action}`}
|
||||
>
|
||||
<Tag color={item.color}>{item.label}</Tag>
|
||||
<strong>{item.value}</strong>
|
||||
<span>{item.detail}</span>
|
||||
<em>{item.action}</em>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
<section className="vp-customer-service-journey" aria-label="车辆服务闭环">
|
||||
<div className="vp-customer-service-journey-copy">
|
||||
<Tag color="blue">车辆服务闭环</Tag>
|
||||
|
||||
Reference in New Issue
Block a user