diff --git a/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx b/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx index cae5bb989..200d50cbf 100644 --- a/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx +++ b/apps/sn/app/(map-layout)/map/searchModal/searchModal.tsx @@ -81,7 +81,7 @@ const SearchModal: React.FC = ({ const [yearFilter, setYearFilter] = useState({ start: "", end: "" }); const [filteredSiguns, setFilteredSiguns] = useState([{ val: '0', text: '전체', sido: '0' }]); - + // 오늘 날짜 구하기 const today = new Date(); const todayYear = today.getFullYear().toString(); @@ -179,7 +179,7 @@ const SearchModal: React.FC = ({ setIsLoading(true); // 로딩 시작 setIsResetSelection(true); // 선택 초기화 setIsResetDetailSelection(true); // 선택 초기화 - + try { let cqlFilters: string[] = []; if (activeTab === 'basic') { @@ -272,8 +272,7 @@ const SearchModal: React.FC = ({ setTableCount(res.totalElements || 0); setDetailTableData([]); setDetailTableCount(0); - - } + } setShowTable(true); } catch (err) { @@ -446,12 +445,7 @@ const SearchModal: React.FC = ({ // 조회 버튼 클릭 시 1페이지로 이동 및 데이터 초기화 const handleSearch = () => { - setCurPage(1); // 페이지를 1로 초기화 - // setDetailCurPage(1); // 페이지를 1로 초기화 - // setIsResetPage(false); // 페이지를 초기화 - // setIsResetDetailPage(true); // 디테일 페이지를 초기화 - // setIsResetSelection(true); // 선택 초기화 - // setIsResetDetailSelection(true); // 선택 초기화 + setCurPage(1); // 페이지를 1로 초기화 fetchFilteredData(); setIsResetPage(true); // 페이지를 초기화 setIsResetDetailPage(true); // 디테일 페이지를 초기화 @@ -546,7 +540,7 @@ const SearchModal: React.FC = ({ } } }; - + const renderBody = () => ( <> @@ -560,63 +554,62 @@ const SearchModal: React.FC = ({ onValueChange={(value: string) => setActiveTab(value)} > - {/* 각각의 탭 영역 */} - {/* 기본정보 탭 */} - {activeTab === 'basic' && ( - - )} - {/* 운영정보 탭 */} - {activeTab === 'operation' && ( - - )} - {/* 하수도정비기본계획보고서 탭 */} - {activeTab === 'report' && ( - - )} - {/* */} - + {/* 각각의 탭 영역 */} + {/* 기본정보 탭 */} + {activeTab === 'basic' && ( + + )} + {/* 운영정보 탭 */} + {activeTab === 'operation' && ( + + )} + {/* 하수도정비기본계획보고서 탭 */} + {activeTab === 'report' && ( + + )} + {/* */} + {/* 📋 결과 리스트 */} - {/* 기본정보 탭, 하수도정비기본계획보고서 탭 */} - {(activeTab === 'basic' ) && ( + {/* 하수도정비기본계획보고서 탭 */} + {activeTab === 'basic' && (
- {/* 테이블2 영역 (가로/세로 스크롤 가능) */}
= ({
+ {/* 테이블2 영역 */}