feat(platform): organize console around vehicle service

This commit is contained in:
lingniu
2026-07-04 19:13:28 +08:00
parent cbe7882d51
commit 75d232e773
4 changed files with 121 additions and 20 deletions

View File

@@ -360,6 +360,28 @@ export function Dashboard({
onClick: () => onOpenMileage()
}
];
const vehicleServicePrinciples = [
{
title: '一车一档',
value: formatCount(serviceSummary?.totalVehicles),
detail: '以 VIN 为主对象沉淀车牌、手机号、OEM、绑定状态和来源覆盖。'
},
{
title: '一车一实时',
value: formatCount(serviceSummary?.onlineVehicles ?? summary?.onlineVehicles),
detail: '实时状态合并位置、在线、速度、SOC、里程和来源新鲜度。'
},
{
title: '一车一轨迹',
value: formatCount(commandLocatedCount),
detail: '轨迹回放围绕车辆展开,协议来源只作为证据过滤条件。'
},
{
title: '一车一统计',
value: formatCount(serviceSummary?.totalVehicles),
detail: '里程等运营指标按车辆口径闭合,再回溯到来源证据。'
}
];
const workflowSteps = [
{
title: '接入巡检',
@@ -438,6 +460,17 @@ export function Dashboard({
<Tag color={(summary?.kafkaLag ?? 0) > 0 ? 'orange' : 'green'}>Kafka Lag {formatLag(summary?.kafkaLag)}</Tag>
</Space>
</Card>
<Card bordered title="一车一服务模型" style={{ marginBottom: 16 }}>
<div className="vp-service-model-grid">
{vehicleServicePrinciples.map((item) => (
<div key={item.title} className="vp-service-model-item">
<Tag color="blue">{item.title}</Tag>
<div className="vp-service-model-value">{item.value}</div>
<Typography.Text type="secondary">{item.detail}</Typography.Text>
</div>
))}
</div>
</Card>
<Card bordered title="全链路值班闭环" style={{ marginBottom: 16 }}>
<div className="vp-operation-flow">
{workflowSteps.map((item, index) => (