From c72b2c3f5851e747bd881f7ed75bc2700d81c14c Mon Sep 17 00:00:00 2001 From: bicochan Date: Wed, 4 Mar 2026 16:22:21 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20feat:=20=EC=9D=B4=EC=83=81=EA=B1=B4?= =?UTF-8?q?=EC=88=98=20=EB=8B=A4=EC=9D=B4=EC=96=BC=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../verification/HbStatisticsVerification.tsx | 88 +++++++++++++++---- 1 file changed, 72 insertions(+), 16 deletions(-) diff --git a/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx b/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx index 3fa0d990b..67787c264 100644 --- a/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx +++ b/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx @@ -12,6 +12,7 @@ import { DialogTitle, Input, Label, + LoadingWithAnimation, RadioGroup, RadioGroupItem, Select, @@ -19,6 +20,12 @@ import { SelectItem, SelectTrigger, SelectValue, + Table, + TableBody, + TableHead, + TableHeader, + TableRow, + TableCell, } from "@common/components"; import { verificationHistoryColumnInfo } from "@/entities/statistics/model/verification-history-column"; import { analysisApi } from "@/entities/statistics/api/analysis-api"; @@ -468,9 +475,11 @@ const HbStatisticsVerification = () => { 이상건수 상세 {isLoadingOutlier && ( -

- 이상치 데이터를 불러오는 중입니다. -

+
+
+ +
+
)} {!isLoadingOutlier && (outlierList?.length ?? 0) === 0 && (

@@ -478,23 +487,70 @@ const HbStatisticsVerification = () => {

)} {!isLoadingOutlier && (outlierList?.length ?? 0) > 0 && ( -
+
{outlierList?.map( (item: StAnlsOutlierListResponse) => ( -
-
- - {item.vrfcTrgtNm} - - - 이상건수:{" "} - {item.otlrDataNocs ?? 0} - -
-
+ + + + {item.vrfcTrgtNm} + + + + + {Array.from({ + length: Math.ceil( + item.outlierDataList + .length / 4, + ), + }).map((_, rowIdx) => ( + + {item.outlierDataList + .slice( + rowIdx * 4, + rowIdx * 4 + 4, + ) + .map((data) => ( + + {`${data.sido ?? ""}${data.adstDong ? ` ${data.adstDong}` : ""}`.trim() || + "-"} + + ))} + {/* 빈 셀 추가 */} + {item.outlierDataList.slice( + rowIdx * 4, + rowIdx * 4 + 4, + ).length < 4 && + Array.from({ + length: + 4 - + item.outlierDataList.slice( + rowIdx * 4, + rowIdx * 4 + + 4, + ).length, + }).map((_, idx) => ( + + ))} + + ))} + + ), )}