fix(scheduling): rename 全部批次→全部, reorder metrics to 当前/替换后预计/考核
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:
@@ -158,7 +158,7 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
|
|||||||
onChange={e => setBatchFilter(e.target.value)}
|
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"
|
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>)}
|
{batchOptions.map(b => <option key={b} value={b}>{b}</option>)}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -212,10 +212,6 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
|
|||||||
{/* Metrics */}
|
{/* Metrics */}
|
||||||
<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="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="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">{fmtKm(c.totalMileage)}</div>
|
||||||
@@ -224,6 +220,10 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
|
|||||||
<div className="text-slate-400">替换后预计</div>
|
<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 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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user