fix(scheduling): rename 全部批次→全部, reorder metrics to 当前/替换后预计/考核
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
kkfluous
2026-04-16 22:48:26 +08:00
parent ba6a38973d
commit db568c1ebb

View File

@@ -158,7 +158,7 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
onChange={e => setBatchFilter(e.target.value)}
className="text-[10px] px-2 py-1 rounded-lg border border-slate-200 bg-white text-slate-600 cursor-pointer outline-none"
>
<option value=""></option>
<option value=""></option>
{batchOptions.map(b => <option key={b} value={b}>{b}</option>)}
</select>
@@ -212,10 +212,6 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
{/* Metrics */}
<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-1 py-1.5 px-2 text-center">
<div className="text-blue-400"></div>
<div className="font-bold text-blue-700">{c.yearTarget ? fmtKm(c.yearTarget) : '-'}</div>
</div>
<div className="flex-1 py-1.5 px-2 text-center">
<div className="text-slate-400"></div>
<div className="font-bold text-slate-700">{fmtKm(c.totalMileage)}</div>
@@ -224,6 +220,10 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
<div className="text-slate-400"></div>
<div className={`font-bold ${c.canQualifyAfterSwap ? 'text-emerald-600' : 'text-amber-600'}`}>{fmtKm(c.predictedAfterSwap)}</div>
</div>
<div className="flex-1 py-1.5 px-2 text-center">
<div className="text-blue-400"></div>
<div className="font-bold text-blue-700">{c.yearTarget ? fmtKm(c.yearTarget) : '-'}</div>
</div>
</div>
</div>