[st] refactor: IMR 검증 이력 마스터, 결과 인터페이스 수정
This commit is contained in:
@@ -469,13 +469,13 @@ const ImrVerificationHistory = () => {
|
||||
</div>
|
||||
<div className="mt-2">
|
||||
{isDetailLoading ? (
|
||||
<div className="flex h-full w-full items-center justify-center">
|
||||
<div className="flex h-[39rem] w-full items-center justify-center">
|
||||
<div className="relative size-[5rem]">
|
||||
<LoadingWithAnimation color="primary" />
|
||||
</div>
|
||||
</div>
|
||||
) : !selectedHistory || gridRowData.length === 0 ? (
|
||||
<div className="flex h-full w-full items-center justify-center text-[1.4rem] text-muted-foreground">
|
||||
<div className="flex h-[39rem] w-full items-center justify-center text-[1.4rem] text-muted-foreground">
|
||||
{!selectedHistory
|
||||
? "항목을 선택해주세요."
|
||||
: "표시할 항목이 없습니다."}
|
||||
|
||||
@@ -17,8 +17,8 @@ export const imrDetailGridColumnInfo: ColumnInfo = {
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
name: "admdstNm",
|
||||
fieldName: "admdstNm",
|
||||
name: "adstDong",
|
||||
fieldName: "adstDong",
|
||||
header: { text: "행정구역" },
|
||||
width: 100,
|
||||
},
|
||||
@@ -42,8 +42,8 @@ export const imrDetailGridColumnInfo: ColumnInfo = {
|
||||
styleName: "left-column",
|
||||
},
|
||||
{
|
||||
name: "pipeSeCd",
|
||||
fieldName: "pipeSeCd",
|
||||
name: "pipeSeNm",
|
||||
fieldName: "pipeSeNm",
|
||||
header: { text: "관로구분" },
|
||||
width: 80,
|
||||
},
|
||||
@@ -72,11 +72,11 @@ export const imrDetailGridColumnInfo: ColumnInfo = {
|
||||
columnLayout: [
|
||||
"sido",
|
||||
"gugun",
|
||||
"admdstNm",
|
||||
"adstDong",
|
||||
"admdstCd",
|
||||
"fcltNm",
|
||||
"addr",
|
||||
"pipeSeCd",
|
||||
"pipeSeNm",
|
||||
"vrfcTrgtSn",
|
||||
"vrfcTrgtNm",
|
||||
"cryrVl",
|
||||
|
||||
@@ -7,9 +7,9 @@ import {
|
||||
TooltipTrigger,
|
||||
} from "@common/components";
|
||||
|
||||
import type { StAnlsMstResponse } from "../statistics-analysis/statistics-analysis-master-interface";
|
||||
import type { StAnlsMstImrResponse } from "../statistics-analysis/statistics-analysis-master-interface";
|
||||
|
||||
const columnHelper = createColumnHelper<StAnlsMstResponse>();
|
||||
const columnHelper = createColumnHelper<StAnlsMstImrResponse>();
|
||||
|
||||
export const imrVerificationHistoryColumns = [
|
||||
columnHelper.accessor("anlsBgngDt", {
|
||||
@@ -79,7 +79,7 @@ export const imrVerificationHistoryColumns = [
|
||||
</div>
|
||||
),
|
||||
}),
|
||||
columnHelper.accessor("sewerBzmnCd", {
|
||||
columnHelper.accessor("sewerBzmnNm", {
|
||||
header: "하수도사업자",
|
||||
cell: (info) => (
|
||||
<div className="px-2 py-4">{info.getValue() ?? "-"}</div>
|
||||
|
||||
+4
-1
@@ -57,7 +57,10 @@ export interface StAnlsMstResponseDto {
|
||||
/**
|
||||
* IMR 분석 현황 마스터 응답 DTO
|
||||
*/
|
||||
export interface StAnlsMstImrResponseDto extends StAnlsMstResponseDto {}
|
||||
export interface StAnlsMstImrResponseDto extends StAnlsMstResponseDto {
|
||||
/** 하수도사업자명 */
|
||||
sewerBzmnNm: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 분석 현황 마스터 검색 DTO
|
||||
|
||||
+8
-5
@@ -12,14 +12,17 @@ export interface StAnlsRsltResponse {
|
||||
gugun: string; // 시군구
|
||||
adstDong: string; // 행정동
|
||||
drngBzmnCd: string; // 하수도 사업자 코드
|
||||
sewerBzmnNm: string; // 하수도 사업자명
|
||||
swtrmtFcltCd: string; // 하수처리시설코드
|
||||
pipeSeCd: string; // 파이프 구분 코드
|
||||
pipeSeNm: string; // 파이프 구분 명
|
||||
fcltNm: string; // 시설명
|
||||
addr: string; // 주소
|
||||
prvyrVl: number | null; // 전년도 값
|
||||
cryrVl: number | null; // 당해년도 값
|
||||
chgRt: number | null; // 변경율 (r_i)
|
||||
trsfRt: number | null; // 변환 비율 (s_i)
|
||||
otlrTrsfRt: number | null; // 이상치 변환 비율 (E_i)
|
||||
prvyrVl: number; // 전년도 값
|
||||
cryrVl: number; // 당해년도 값
|
||||
chgRt: number; // 변경율 (r_i)
|
||||
trsfRt: number; // 변환 비율 (s_i)
|
||||
otlrTrsfRt: number; // 이상치 변환 비율 (E_i)
|
||||
otlrYnCd: string; // 이상치 여부 (0: 정상, 1: 이상치, 2: 제외)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user