refactor(scheduling): re-layout list items — left group (dept/manager/customer) + right group (daily/rate)
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:
@@ -101,17 +101,21 @@ export default function SuggestionList({ suggestions, onSelect }: Props) {
|
||||
<span className="text-[9px] text-slate-300">·</span>
|
||||
<span className="text-[9px] text-slate-400">{v.region}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 mt-0.5 text-[10px] text-slate-400 overflow-hidden">
|
||||
{v.department && <span className="flex-shrink-0 text-slate-500">{v.department.replace('业务', '')}</span>}
|
||||
{v.manager && <span className="flex-shrink-0 text-slate-500">{v.manager}</span>}
|
||||
<span className="truncate max-w-[35%] flex-shrink"><Blur>{v.customer || '-'}</Blur></span>
|
||||
<span className="flex-shrink-0">日均 <span className="text-slate-600 font-medium">{Math.round(v.customerAvgDaily)}</span></span>
|
||||
<span className="flex-shrink-0">年度达标 <span className={`font-medium ${v.completionRate >= 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-500'}`}>{fmtRate(v.completionRate)}</span></span>
|
||||
<div className="flex items-center justify-between mt-0.5 text-[10px] overflow-hidden">
|
||||
<div className="flex items-center gap-1.5 text-slate-400 truncate">
|
||||
{v.department && <span className="text-slate-500 font-medium">{v.department.replace('业务', '')}</span>}
|
||||
{v.manager && <span className="text-slate-500">{v.manager}</span>}
|
||||
<span className="truncate"><Blur>{v.customer || '-'}</Blur></span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 flex-shrink-0 ml-2">
|
||||
<span className="text-slate-500">日均 <span className="text-slate-700 font-medium">{Math.round(v.customerAvgDaily)}</span></span>
|
||||
<span className={`font-medium ${v.completionRate >= 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-500'}`}>{fmtRate(v.completionRate)}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Right */}
|
||||
<div className="flex items-center gap-1 flex-shrink-0">
|
||||
<div className="flex items-center gap-0.5 flex-shrink-0">
|
||||
<span className="text-[9px] text-slate-400">干预</span>
|
||||
<ChevronRight size={14} className="text-slate-300" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user