[st] chore: 검증 결과 상태 값 추가

This commit is contained in:
2026-03-13 14:20:36 +09:00
parent 1d73da316c
commit 6b28c4e332
2 changed files with 15 additions and 2 deletions
@@ -125,9 +125,22 @@ const RegionalGrid: React.FC<RegionalGridProps> = ({
}
}
const mapOtlrToLabel = (otlrYn: string) => {
switch (otlrYn) {
case "0":
return "정상";
case "1":
return "이상치";
case "2":
return "제외";
default:
return "";
}
};
const mappedData = data.map((item) => ({
...item,
otlrYn: item.otlrYn === "0" ? "정상" : "이상치",
otlrYn: mapOtlrToLabel(item.otlrYn),
}));
setGridRowData(
@@ -20,7 +20,7 @@ export interface StAnlsRsltResponse {
chgRt: number | null; // 변경율 (r_i)
trsfRt: number | null; // 변환 비율 (s_i)
otlrTrsfRt: number | null; // 이상치 변환 비율 (E_i)
otlrYn: string; // 이상치 여부 (0: 정상, 1: 이상치)
otlrYn: string; // 이상치 여부 (0: 정상, 1: 이상치, 2: 제외)
}
export interface StAnlsRsltSearchParams extends PageableParams {