조사 지도 조건과 노후관로 범례 보완
This commit is contained in:
@@ -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}
|
||||
>
|
||||
지도보기
|
||||
|
||||
Reference in New Issue
Block a user