fix(scheduling): reorder candidate metrics to 区域/考核/当前/替换后预计, remove 缺口
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -150,23 +150,19 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
|
|||||||
<div className="px-3 pb-2">
|
<div className="px-3 pb-2">
|
||||||
<div className="flex text-[10px] bg-slate-50 rounded-lg overflow-hidden divide-x divide-slate-200">
|
<div className="flex text-[10px] bg-slate-50 rounded-lg overflow-hidden divide-x divide-slate-200">
|
||||||
<div className="flex-1 py-1.5 px-2 text-center">
|
<div className="flex-1 py-1.5 px-2 text-center">
|
||||||
<div className="text-slate-400">当前</div>
|
<div className="text-slate-400">区域</div>
|
||||||
<div className="font-bold text-slate-700">{fmtKm(c.totalMileage)}</div>
|
<div className="font-bold text-slate-700">{c.region}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-1 py-1.5 px-2 text-center">
|
<div className="flex-1 py-1.5 px-2 text-center">
|
||||||
<div className="text-blue-400">考核</div>
|
<div className="text-blue-400">考核</div>
|
||||||
<div className="font-bold text-blue-700">{c.yearTarget ? fmtKm(c.yearTarget) : '-'}</div>
|
<div className="font-bold text-blue-700">{c.yearTarget ? fmtKm(c.yearTarget) : '-'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-1 py-1.5 px-2 text-center">
|
<div className="flex-1 py-1.5 px-2 text-center">
|
||||||
<div className="text-rose-400">缺口</div>
|
<div className="text-slate-400">当前</div>
|
||||||
<div className="font-bold text-rose-600">{fmtKm(c.mileageGap)}</div>
|
<div className="font-bold text-slate-700">{fmtKm(c.totalMileage)}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-1 py-1.5 px-2 text-center">
|
<div className="flex-1 py-1.5 px-2 text-center">
|
||||||
<div className="text-slate-400">区域</div>
|
<div className="text-slate-400">替换后预计</div>
|
||||||
<div className="font-bold text-slate-700">{c.region}</div>
|
|
||||||
</div>
|
|
||||||
<div className="flex-1 py-1.5 px-2 text-center">
|
|
||||||
<div className="text-slate-400">换后</div>
|
|
||||||
<div className={`font-bold ${c.canQualifyAfterSwap ? 'text-emerald-600' : 'text-amber-600'}`}>{fmtKm(c.predictedAfterSwap)}</div>
|
<div className={`font-bold ${c.canQualifyAfterSwap ? 'text-emerald-600' : 'text-amber-600'}`}>{fmtKm(c.predictedAfterSwap)}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user