조사 지도 조건과 노후관로 범례 보완

This commit is contained in:
kiminchan
2026-08-06 09:14:56 +09:00
parent 29f2a9169e
commit 9d2c0afb98
7 changed files with 100 additions and 12 deletions
@@ -241,20 +241,18 @@ export function ExmnStatusDetailPanel({ business }: ExmnStatusDetailPanelProps)
));
};
/** 선택 사업의 행정구역·사업차수·현재 조사유형을 하수관망도 초기 조회 계약으로 전달한다. */
/** 선택 사업·처리분구와 현재 조사유형을 하수관망도 초기 조회 계약으로 전달한다. */
const openExmnMap = () => {
if (!business) return;
if (!business || !selectedSummaryRow) return;
const query = new URLSearchParams({
exmnBizId: business.exmnBizId,
ctpvNm: business.ctpvNm,
sggNm: business.sggNm,
exmnJobType: jobType,
trtdstId: selectedSummaryRow.trtdstId,
trtdstNm: selectedSummaryRow.trtdstNm,
});
if (business.bizCycl != null) query.set("bizCycl", String(business.bizCycl));
if (selectedSummaryRow) {
query.set("trtdstId", selectedSummaryRow.trtdstId);
query.set("trtdstNm", selectedSummaryRow.trtdstNm);
}
window.location.assign(`/map?${query.toString()}`);
};
@@ -375,6 +373,12 @@ export function ExmnStatusDetailPanel({ business }: ExmnStatusDetailPanelProps)
<Button
className={ACTION_BUTTON_CLASS}
size="sm"
disabled={!selectedSummaryRow}
title={
selectedSummaryRow
? `${selectedSummaryRow.trtdstNm} 지도보기`
: "처리분구 행을 먼저 선택해주세요."
}
onClick={openExmnMap}
>
지도보기