Browse Source

laanc 버퍼존 disabled 조건 수정

pull/2/head
김장현 11 months ago
parent
commit
259fc5261f
  1. 7
      src/views/laanc/LaancStep1.js

7
src/views/laanc/LaancStep1.js

@ -76,7 +76,6 @@ export default function LaancStep1({
url: '' url: ''
}); });
console.log('>>', laancSun);
useEffect(() => { useEffect(() => {
// URL 쿼리 파라미터 중 'map' 값을 가져옵니다. // URL 쿼리 파라미터 중 'map' 값을 가져옵니다.
if (!currentParm) setCenteredModal(mapParam != 'true' ? false : true); if (!currentParm) setCenteredModal(mapParam != 'true' ? false : true);
@ -230,7 +229,6 @@ export default function LaancStep1({
} }
}; };
console.log('>>', data);
// 비행 구역 미 설정 핸들러 // 비행 구역 미 설정 핸들러
const closeFlatpickr = () => { const closeFlatpickr = () => {
schFltStDtRef.current.flatpickr.close(); schFltStDtRef.current.flatpickr.close();
@ -581,6 +579,7 @@ export default function LaancStep1({
</FormGroup> </FormGroup>
</Col> </Col>
<Col className='list-input' md='6'> <Col className='list-input' md='6'>
{console.log('>>>>>>>>>', data)}
<FormGroup> <FormGroup>
<Label for='test'> <Label for='test'>
<span className='necessary'>*</span> <span className='necessary'>*</span>
@ -606,9 +605,7 @@ export default function LaancStep1({
innerRef={bufferZoneRef} // Input 요소에 ref를 연결 innerRef={bufferZoneRef} // Input 요소에 ref를 연결
onClick={() => handleInputClick('bufferZone')} onClick={() => handleInputClick('bufferZone')}
placeholder='100m' placeholder='100m'
disabled={ disabled={data.areaList[0].areaType !== 'LINE'}
data.areaList[0].areaType === 'POLYGON' ? true : false
}
/> />
</FormGroup> </FormGroup>
</Col> </Col>

Loading…
Cancel
Save