필터 기본값 수정
This commit is contained in:
@@ -10,7 +10,7 @@ import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog"
|
||||
import { Badge } from "@/components/ui/badge"
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
||||
import { useToast } from "@/hooks/use-toast"
|
||||
import { ComparisonAveragesDto, TraitComparisonAveragesDto, cowApi, genomeApi, geneApi, GeneDetail, GenomeRequestDto } from "@/lib/api"
|
||||
import { ComparisonAveragesDto, TraitComparisonAveragesDto, cowApi, genomeApi, geneApi, GeneDetail, GenomeRequestDto, mptApi, MptDto } from "@/lib/api"
|
||||
import { CowDetail } from "@/types/cow.types"
|
||||
import { GenomeTrait } from "@/types/genome.types"
|
||||
import { useGlobalFilter } from "@/contexts/GlobalFilterContext"
|
||||
@@ -35,6 +35,7 @@ import { TraitComparison } from "./genome/_components/genome-integrated-comparis
|
||||
import { CowNumberDisplay } from "@/components/common/cow-number-display"
|
||||
import { isValidGenomeAnalysis, getInvalidReason, getInvalidMessage } from "@/lib/utils/genome-analysis-config"
|
||||
import { AuthGuard } from "@/components/auth/auth-guard"
|
||||
import { MptTable } from "./reproduction/_components/mpt-table"
|
||||
|
||||
// 형질명 → 카테고리 매핑 (한우 35개 형질)
|
||||
const TRAIT_CATEGORY_MAP: Record<string, string> = {
|
||||
@@ -628,7 +629,7 @@ export default function CowOverviewPage() {
|
||||
</Card>
|
||||
|
||||
{/* 친자확인 섹션 */}
|
||||
<h3 className="text-lg lg:text-xl font-bold text-foreground">친자확인 결과</h3>
|
||||
<h3 className="text-lg lg:text-xl font-bold text-foreground">혈통정보</h3>
|
||||
|
||||
<Card className="bg-white border border-border shadow-sm rounded-2xl overflow-hidden">
|
||||
<CardContent className="p-0">
|
||||
@@ -997,7 +998,7 @@ export default function CowOverviewPage() {
|
||||
</Card>
|
||||
|
||||
{/* 친자확인 섹션 */}
|
||||
<h3 className="text-lg lg:text-xl font-bold text-foreground">친자확인 결과</h3>
|
||||
<h3 className="text-lg lg:text-xl font-bold text-foreground">혈통정보</h3>
|
||||
|
||||
<Card className="bg-white border border-border shadow-sm rounded-2xl overflow-hidden">
|
||||
<CardContent className="p-0">
|
||||
@@ -1258,7 +1259,7 @@ export default function CowOverviewPage() {
|
||||
</Card>
|
||||
|
||||
{/* 친자확인 결과 섹션 (유전체 탭과 동일) */}
|
||||
<h3 className="text-lg lg:text-xl font-bold text-foreground">친자확인 결과</h3>
|
||||
<h3 className="text-lg lg:text-xl font-bold text-foreground">혈통정보</h3>
|
||||
|
||||
<Card className="bg-white border border-border shadow-sm rounded-2xl overflow-hidden">
|
||||
<CardContent className="p-0">
|
||||
@@ -1674,11 +1675,15 @@ export default function CowOverviewPage() {
|
||||
)}
|
||||
</TabsContent>
|
||||
|
||||
|
||||
{/* 번식능력 탭 */}
|
||||
<TabsContent value="reproduction" className="mt-6 space-y-6">
|
||||
{/* 혈액화학검사(MPT) 테이블 */}
|
||||
<MptTable cowShortNo={cowNo?.slice(-4)} cowNo={cowNo} farmNo={cow?.fkFarmNo} cow={cow} genomeRequest={genomeRequest} />
|
||||
|
||||
{/* TODO: 번식능력 분석 결과 (추후 사용)
|
||||
{hasReproductionData ? (
|
||||
<div>
|
||||
{/* TODO: 번식능력 분석 결과 표시 */}
|
||||
<h3 className="text-lg lg:text-xl font-bold text-foreground">번식능력 분석 결과</h3>
|
||||
</div>
|
||||
) : (
|
||||
@@ -1692,6 +1697,7 @@ export default function CowOverviewPage() {
|
||||
</CardContent>
|
||||
</Card>
|
||||
)}
|
||||
*/}
|
||||
</TabsContent>
|
||||
</Tabs>
|
||||
</div>
|
||||
|
||||
@@ -716,7 +716,7 @@ function MyCowContent() {
|
||||
>
|
||||
<span className="flex items-center justify-center gap-1.5 max-sm:gap-1">
|
||||
<span className="w-2 h-2 rounded-full bg-slate-400"></span>
|
||||
불가 <span className="font-bold">{cows.filter(c => c.genomeScore === undefined || c.genomeScore === null).length}</span>
|
||||
미검사 <span className="font-bold">{cows.filter(c => c.genomeScore === undefined || c.genomeScore === null).length}</span>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user