RDII 분석결과 팝업 지도연계 및 결과전용 팝업 적용
This commit is contained in:
@@ -52,6 +52,12 @@ export const windowPopupDefinitions = {
|
||||
width: 1280,
|
||||
height: 900,
|
||||
},
|
||||
rdiiResultPopup: {
|
||||
key: "rdiiResultPopup",
|
||||
title: "RDII 분석결과",
|
||||
width: 1280,
|
||||
height: 900,
|
||||
},
|
||||
infilChart: {
|
||||
key: "infilChart",
|
||||
title: "침입수 분석",
|
||||
@@ -66,8 +72,12 @@ export const windowPopupDefinitions = {
|
||||
rdiiChart: {
|
||||
key: "rdiiChart",
|
||||
title: "RDII 분석",
|
||||
width: 1360,
|
||||
height: 980,
|
||||
width: 940,
|
||||
height: 860,
|
||||
placement: "browser-left",
|
||||
alignTop: true,
|
||||
offsetLeft: 0,
|
||||
offsetTop: 70,
|
||||
requiredParams: ["pplMngNo"],
|
||||
},
|
||||
sscDetail: {
|
||||
|
||||
@@ -8,6 +8,7 @@ import InftwtResultPopupContent from "./ui/InftwtResultPopupContent";
|
||||
import OldPpUploadPopupContent from "./ui/OldPpUploadPopupContent";
|
||||
import OldPpTablePopupContent from "./ui/OldPpTablePopupContent";
|
||||
import RdiiChartPopupContent from "./ui/RdiiChartPopupContent";
|
||||
import RdiiResultPopupContent from "./ui/RdiiResultPopupContent";
|
||||
import ReportFilesPopupContent from "./ui/ReportFilesPopupContent";
|
||||
import ReportTabPopupContent from "./ui/ReportTabPopupContent";
|
||||
import SearchModalPopupContent from "./ui/SearchModalPopupContent";
|
||||
@@ -65,6 +66,10 @@ export const windowPopupRegistry = {
|
||||
...windowPopupDefinitions.inftwtResultPopup,
|
||||
component: InftwtResultPopupContent,
|
||||
},
|
||||
rdiiResultPopup: {
|
||||
...windowPopupDefinitions.rdiiResultPopup,
|
||||
component: RdiiResultPopupContent,
|
||||
},
|
||||
infilChart: {
|
||||
...windowPopupDefinitions.infilChart,
|
||||
component: InfilChartPopupContent,
|
||||
|
||||
@@ -8,6 +8,10 @@ export default function RdiiChartPopupContent({
|
||||
searchParams,
|
||||
}: WindowPopupContentProps) {
|
||||
const pplMngNo = getPopupParamValue(searchParams.pplMngNo);
|
||||
const resultOnly = getPopupParamValue(searchParams.resultOnly) === "Y";
|
||||
const aplcnYm = getPopupParamValue(searchParams.aplcnYm);
|
||||
const analysisInfo = getPopupParamValue(searchParams.analysisInfo);
|
||||
const rainInfwtAnlsSn = Number(getPopupParamValue(searchParams.rainInfwtAnlsSn) || "0");
|
||||
|
||||
if (!pplMngNo) {
|
||||
return (
|
||||
@@ -18,5 +22,13 @@ export default function RdiiChartPopupContent({
|
||||
);
|
||||
}
|
||||
|
||||
return <RdiiChart pplMngNo={pplMngNo} />;
|
||||
}
|
||||
return (
|
||||
<RdiiChart
|
||||
pplMngNo={pplMngNo}
|
||||
rainInfwtAnlsSn={Number.isFinite(rainInfwtAnlsSn) ? rainInfwtAnlsSn : 0}
|
||||
aplcnYm={aplcnYm}
|
||||
analysisInfo={analysisInfo}
|
||||
resultOnly={resultOnly}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import RdiiResultPopupPage from "@/app/(map-layout)/map/components/rdiiResult/RdiiResultPopupPage";
|
||||
|
||||
export default function RdiiResultPopupContent() {
|
||||
const [isMounted, setIsMounted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setIsMounted(true);
|
||||
}, []);
|
||||
|
||||
if (!isMounted) {
|
||||
return <div className="h-dvh bg-white" suppressHydrationWarning />;
|
||||
}
|
||||
|
||||
return <RdiiResultPopupPage />;
|
||||
}
|
||||
Reference in New Issue
Block a user