From 2abbf857c0fcde937ae54da4ff51d2ce0111fd92 Mon Sep 17 00:00:00 2001 From: JIeunhuh Date: Tue, 8 Jul 2025 11:24:25 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=9D=EC=97=85=20=ED=81=AC=EA=B8=B0=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/map/newWindowPopup.tsx | 22 ++++------------------ apps/wr/app/map/newWindowPortal.tsx | 2 +- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/apps/wr/app/map/newWindowPopup.tsx b/apps/wr/app/map/newWindowPopup.tsx index c60c3b537..43a122f02 100644 --- a/apps/wr/app/map/newWindowPopup.tsx +++ b/apps/wr/app/map/newWindowPopup.tsx @@ -19,6 +19,7 @@ import type { customHtdflBdst } from "@/app/store/ruseFcltMng/fcltReg/htdflReg"; import { getFetch } from "@/components/lib/api"; import { useGisContext } from "@common/business_components/ui/map/Gis"; import ListDiv from "@common/business_components/ui/list_div"; +import SttnDetailModal from "@/components/ui/modal/sttn/sttnDetailModal/sttnDetailModal"; interface NewWindowPopupProps { featureData: any; @@ -532,12 +533,7 @@ const NewWindowPopup: React.FC = ({ if (viewMode == 'detail') { // 빗물이용시설 상세 return ( - <> -
- - </div> - <RainPrfmncSttnPopup rainForm={rainDetailModal.data as customRainBdst} isModal={false} /> - </> + <SttnDetailModal type={"RNB"} formObj={rainDetailModal.data as customRainBdst} /> ); } else { // 빗물이용시설 목록 @@ -572,12 +568,7 @@ const NewWindowPopup: React.FC<NewWindowPopupProps> = ({ if (viewMode == 'detail') { // 중수도시설 상세 return ( - <> - <div className="flex justify-between items-center mb-4"> - <Title title="중수도시설 상세정보" /> - </div> - <RswtrPrfmncsSttnPopup rswtForm={rswtrDetailModal.data as customRswtBdst} isModal={false} /> - </> + <SttnDetailModal type={"RST"} formObj={rswtrDetailModal.data as customRswtBdst}/> ); } else { // 중수도시설 목록 @@ -612,12 +603,7 @@ const NewWindowPopup: React.FC<NewWindowPopupProps> = ({ if (viewMode == 'detail') { // 온배수시설 상세 return ( - <> - <div className="flex justify-between items-center mb-4"> - <Title title="온배수시설 상세정보" /> - </div> - <HtdflPrfmncSttnPopup htdflForm={htdflDetailModal.data as customHtdflBdst} isModal={false} /> - </> + <SttnDetailModal type={"HTB"} formObj={htdflDetailModal.data as customHtdflBdst}/> ); } else { // 온배수시설 목록 diff --git a/apps/wr/app/map/newWindowPortal.tsx b/apps/wr/app/map/newWindowPortal.tsx index 49949e0f4..51c6d5d8f 100644 --- a/apps/wr/app/map/newWindowPortal.tsx +++ b/apps/wr/app/map/newWindowPortal.tsx @@ -48,7 +48,7 @@ const NewWindowPortal: React.FC<NewWindowPortalProps> = ({ children, onClose, ti if (newWindowRef.current && !newWindowRef.current.closed) return; // 1. 새 창을 열고 참조를 저장합니다. - newWindowRef.current = window.open('', title, 'width=1400,height=1024,resizable=yes,scrollbars=yes'); + newWindowRef.current = window.open('', title, 'width=1000,height=800,resizable=yes,scrollbars=yes'); if (newWindowRef.current) { newWindowRef.current.document.title = title;