From b6d91178d306839f851a466407b550a83c7da830 Mon Sep 17 00:00:00 2001 From: swcho Date: Thu, 7 Aug 2025 14:00:38 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=EC=A4=91=EC=A0=90=EC=9A=B0?= =?UTF-8?q?=EC=88=98=ED=86=A0=EC=8B=A4=20=EC=83=81=EC=84=B8=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=EC=B0=BD=20=EA=B5=AC=EB=B6=84=20=ED=85=8C=EB=91=90?= =?UTF-8?q?=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../map/components/popupComponent/Ssc.tsx | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx b/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx index 460cbced5..6ed6f8c8d 100644 --- a/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx +++ b/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx @@ -180,8 +180,8 @@ const Ssc = ({ featureData, isMainSsc, chmbrXcnts, chmbrYdnts, onSaveClick }: { }; const renderModalBody = () => ( -
-
+
+
{/* 강우정보 테이블 */}
- {/* 수량/수질측정 정보 테이블 */} - +
+ {/* 수량/수질측정 정보 테이블 */} + +
) From 213ad1cb5d339de277a1cd7c0aec5c435cab9df3 Mon Sep 17 00:00:00 2001 From: swcho Date: Thu, 7 Aug 2025 14:31:33 +0900 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=EC=A4=91=EC=A0=90=EC=9A=B0?= =?UTF-8?q?=EC=88=98=ED=86=A0=EC=8B=A4=20=EC=83=81=EC=84=B8=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20text-size=20=EC=9D=BC=EC=B9=98=EC=8B=9C=ED=82=A4?= =?UTF-8?q?=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx b/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx index 6ed6f8c8d..1b5a25aa3 100644 --- a/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx +++ b/apps/sn/app/(map-layout)/map/components/popupComponent/Ssc.tsx @@ -230,8 +230,9 @@ const Ssc = ({ featureData, isMainSsc, chmbrXcnts, chmbrYdnts, onSaveClick }: {
{/* 수량/수질측정 정보 테이블 */} + Date: Thu, 7 Aug 2025 14:47:52 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=ED=95=98=EC=88=98=EB=8F=84=EC=A0=95?= =?UTF-8?q?=EB=B9=84=20=EA=B8=B0=EB=B3=B8=EA=B3=84=ED=9A=8D=EB=B3=B4?= =?UTF-8?q?=EA=B3=A0=EC=84=9C=20=ED=8E=98=EC=9D=B4=EC=A7=80=EB=84=A4?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EC=8B=9C=EC=97=90=20select=20=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/app/(map-layout)/map/searchModal/reportTab.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/sn/app/(map-layout)/map/searchModal/reportTab.tsx b/apps/sn/app/(map-layout)/map/searchModal/reportTab.tsx index a0627d4cf..fa4f35afd 100644 --- a/apps/sn/app/(map-layout)/map/searchModal/reportTab.tsx +++ b/apps/sn/app/(map-layout)/map/searchModal/reportTab.tsx @@ -80,11 +80,8 @@ const ReportTab: React.FC = ({ open, isSearch = true, ctpvNm, sg useEffect(() => { // showTable이 true일 때만 fetch (최초 렌더 방지) setIsResetPage(false); - setIsResetSelection(true); if (showTable) fetchFilteredData(); - - setIsResetSelection(false); }, [curPage]); const handleCtpvCdChange = (sidoId: number) => { @@ -165,16 +162,17 @@ const ReportTab: React.FC = ({ open, isSearch = true, ctpvNm, sg addFileName(filterReportData).then(data => { filterReportData = data; setTableData(filterReportData || []); + setIsResetSelection(false); // 데이터 설정 후 선택 초기화 해제 }); - setTableData(filterReportData || []); + setTableData(filterReportData || []); setShowTable(true); } catch (err) { console.error('API ERROR:', err); setTableData([]); + setIsResetSelection(false); // 에러 시에도 선택 초기화 해제 } finally { setIsLoading(false); // 로딩 종료 - setIsResetSelection(false); } };