diff --git a/apps/sn/app/(map-layout)/map/components/repairHistory/RepairHistoryPopupPage.tsx b/apps/sn/app/(map-layout)/map/components/repairHistory/RepairHistoryPopupPage.tsx index 7683ed59b..b9d3b8ddb 100644 --- a/apps/sn/app/(map-layout)/map/components/repairHistory/RepairHistoryPopupPage.tsx +++ b/apps/sn/app/(map-layout)/map/components/repairHistory/RepairHistoryPopupPage.tsx @@ -48,23 +48,27 @@ const resolvePipeUseOptions = (rows: MapLayerSettingRow[]): PipeUseOption[] => r type RepairHistoryTableRow = { fid: string; fcltMngNo: string; + useName: string; repairCount: string; latestRepairYear: string; elapsedYearsSinceRepair: string; materialName: string; + diameter: string; installationYear: string; burialDepth: string; }; /** 부모 업무화면과 동일한 공통 UiTable 헤더·열 정렬 규격이다. */ const REPAIR_HISTORY_HEADLIST: UiHeadProps[] = [ - { id: "fcltMngNo", title: "시설관리번호", align: "center", widthPercent: 22 }, - { id: "repairCount", title: "보수이력(건)", align: "right", widthPercent: 12 }, - { id: "latestRepairYear", title: "최근보수년도", align: "center", widthPercent: 13 }, - { id: "elapsedYearsSinceRepair", title: "보수후 경과년도", align: "right", widthPercent: 14 }, - { id: "materialName", title: "관종", align: "center", widthPercent: 16 }, - { id: "installationYear", title: "설치년도", align: "center", widthPercent: 11 }, - { id: "burialDepth", title: "매설심도(m)", align: "right", widthPercent: 12 }, + { id: "fcltMngNo", title: "시설관리번호", align: "center", widthPercent: 17 }, + { id: "useName", title: "용도", align: "center", widthPercent: 10 }, + { id: "repairCount", title: "보수이력(건)", align: "right", widthPercent: 10 }, + { id: "latestRepairYear", title: "최근보수년도", align: "center", widthPercent: 11 }, + { id: "elapsedYearsSinceRepair", title: "보수후 경과년도", align: "right", widthPercent: 12 }, + { id: "materialName", title: "재질", align: "center", widthPercent: 13 }, + { id: "diameter", title: "관경(mm)", align: "right", widthPercent: 9 }, + { id: "installationYear", title: "설치년도", align: "center", widthPercent: 8 }, + { id: "burialDepth", title: "매설심도(m)", align: "right", widthPercent: 10 }, ]; /** 화면 입력조건은 조회 버튼을 누른 시점의 적용조건과 분리해 다운로드 계약을 고정한다. */ @@ -201,7 +205,7 @@ export default function RepairHistoryPopupPage({ searchParams }: WindowPopupCont }; }, [zoneId]); - /** 화면에서 적용한 조건과 동일한 7개 목록 항목의 XLSX를 내려받는다. */ + /** 화면에서 적용한 조건과 동일한 9개 목록 항목의 XLSX를 내려받는다. */ const handleDownload = async () => { if (!zoneId || rows.length === 0) return; setIsLoading(true); @@ -237,10 +241,12 @@ export default function RepairHistoryPopupPage({ searchParams }: WindowPopupCont () => visibleRows.map((row) => ({ fid: row.fid, fcltMngNo: formatCellValue(row.fcltMngNo), + useName: formatCellValue(row.useNm), repairCount: formatCellValue(row.repairCount), latestRepairYear: formatYear(row.latestRepairYear), elapsedYearsSinceRepair: formatCellValue(row.elapsedYearsSinceRepair), materialName: formatCellValue(row.materialName), + diameter: formatCellValue(row.pdmtVl), installationYear: formatYear(row.installationYear), burialDepth: formatCellValue(row.burialDepth), })), @@ -273,7 +279,7 @@ export default function RepairHistoryPopupPage({ searchParams }: WindowPopupCont - - +