fix: 관리자 - 환경설정 - 위원회 코드관리에서 '중앙건설기술심의' 추가 시, 상위코드 선택해 달라는 문구 나오는 버그 수정
parent
b8e28f2b29
commit
a93fa295ed
|
|
@ -61,12 +61,16 @@ const Item = styled(Paper)(({ theme }) => ({
|
|||
function ListCreateUpdateDelete(props) {
|
||||
|
||||
const handleClickOpen = () => {
|
||||
if( props.itemIndex[props.depthSelectedArrayIndex-1] === undefined ) {
|
||||
alert('상위 코드를 선택해주세요.');
|
||||
props.setIsPopupOpen(false);
|
||||
return false;
|
||||
}
|
||||
props.setCreateCondition({...props.createCondition, paramCodeLevel : props.paramCodeLevel, paramOrgId : props.itemIndex[props.depthSelectedArrayIndex-1]});
|
||||
if( props.depthSelectedArrayIndex === 0 ) {
|
||||
props.setCreateCondition({...props.createCondition, paramCodeLevel : props.paramCodeLevel, paramOrgId : "00"});
|
||||
} else {
|
||||
if( props.itemIndex[props.depthSelectedArrayIndex-1] === undefined ) {
|
||||
alert('상위 코드를 선택해주세요.');
|
||||
props.setIsPopupOpen(false);
|
||||
return false;
|
||||
}
|
||||
props.setCreateCondition({...props.createCondition, paramCodeLevel : props.paramCodeLevel, paramOrgId : props.itemIndex[props.depthSelectedArrayIndex-1]});
|
||||
}
|
||||
props.setIsPopupOpen(true);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue