화면 선발지수 수정 반영
This commit is contained in:
@@ -192,7 +192,7 @@ function MyCowContent() {
|
||||
.filter(([, weight]) => weight > 0)
|
||||
.map(([traitNm, weight]) => ({
|
||||
traitNm,
|
||||
weight: weight / 100 // 0-100 → 0-1로 정규화
|
||||
weight // 0-10 가중치 그대로 사용
|
||||
}))
|
||||
|
||||
// 랭킹 모드에 따라 criteriaType 결정
|
||||
@@ -987,8 +987,12 @@ function MyCowContent() {
|
||||
month: '2-digit',
|
||||
day: '2-digit'
|
||||
}) : (
|
||||
<span className={cow.unavailableReason ? 'text-red-500 font-medium' : 'text-slate-400'}>
|
||||
{cow.unavailableReason || '미분석'}
|
||||
<span className={`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold ${
|
||||
cow.unavailableReason?.includes('부') ? 'bg-red-100 text-red-700' :
|
||||
cow.unavailableReason?.includes('모') ? 'bg-orange-100 text-orange-700' :
|
||||
'bg-slate-100 text-slate-600'
|
||||
}`}>
|
||||
{cow.unavailableReason || '분석불가'}
|
||||
</span>
|
||||
)}
|
||||
</td>
|
||||
@@ -1190,12 +1194,16 @@ function MyCowContent() {
|
||||
<span className="text-muted-foreground">부</span>
|
||||
<span className="font-medium">{cow.sireKpn && cow.sireKpn !== '0' ? cow.sireKpn : '-'}</span>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<span className="text-muted-foreground">분석일</span>
|
||||
<div className="flex justify-between items-center">
|
||||
<span className="text-muted-foreground">{cow.anlysDt ? '분석일' : '분석결과'}</span>
|
||||
<span className="font-medium">
|
||||
{cow.anlysDt ? new Date(cow.anlysDt).toLocaleDateString('ko-KR', { year: '2-digit', month: 'numeric', day: 'numeric' }) : (
|
||||
<span className={cow.unavailableReason ? 'text-red-500' : 'text-slate-400'}>
|
||||
{cow.unavailableReason || '미분석'}
|
||||
<span className={`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold ${
|
||||
cow.unavailableReason?.includes('부') ? 'bg-red-100 text-red-700' :
|
||||
cow.unavailableReason?.includes('모') ? 'bg-orange-100 text-orange-700' :
|
||||
'bg-slate-100 text-slate-600'
|
||||
}`}>
|
||||
{cow.unavailableReason || '분석불가'}
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user