|
|
|
@ -10,7 +10,7 @@ import {
|
|
|
|
|
Button |
|
|
|
|
} from 'reactstrap'; |
|
|
|
|
|
|
|
|
|
const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handleBufferList, data ,mapControl}) => { |
|
|
|
|
const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handleBufferList, data, mapControl, isFlightDone}) => { |
|
|
|
|
|
|
|
|
|
const coordList = data ? data[0].coordList : null;
|
|
|
|
|
|
|
|
|
@ -102,6 +102,8 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
|
|
|
|
|
value |
|
|
|
|
}) |
|
|
|
|
}} |
|
|
|
|
{...(isFlightDone? {readOnly:true} : {})} |
|
|
|
|
|
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<div className='m_ft_box'> |
|
|
|
@ -111,6 +113,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
|
|
|
|
|
size='sm' |
|
|
|
|
disabled={coordList[0].lat && (data[0].areaType && data[0].areaType != ("POLYGON")) ? false : true } |
|
|
|
|
onClick={() => handleBufferList()} |
|
|
|
|
{...(isFlightDone)? {disabled:true} : {} } |
|
|
|
|
> |
|
|
|
|
적용 |
|
|
|
|
</Button.Ripple> |
|
|
|
@ -138,6 +141,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
|
|
|
|
|
value |
|
|
|
|
}) |
|
|
|
|
}} |
|
|
|
|
{...(isFlightDone? {readOnly:true} : {})}
|
|
|
|
|
/> |
|
|
|
|
</FormGroup> |
|
|
|
|
</Col> |
|
|
|
@ -162,6 +166,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
|
|
|
|
|
value |
|
|
|
|
}) |
|
|
|
|
}} |
|
|
|
|
{...(isFlightDone? {readOnly:true} : {})} |
|
|
|
|
/> |
|
|
|
|
</FormGroup> |
|
|
|
|
</Col> |
|
|
|
@ -178,6 +183,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
|
|
|
|
|
color='primary' |
|
|
|
|
onClick={e => handleSave()} |
|
|
|
|
disabled={!coordList[0].lat ? true : false } |
|
|
|
|
{...(isFlightDone)? {disabled:true} : {} } |
|
|
|
|
> |
|
|
|
|
등록 |
|
|
|
|
</Button.Ripple> |
|
|
|
@ -185,6 +191,7 @@ const FlightPlanAreaDetailForm = ({ handleSave, handleClose, handleChange, handl
|
|
|
|
|
className='mr-1' |
|
|
|
|
color='primary' |
|
|
|
|
onClick={e => handleClose()} |
|
|
|
|
{...(isFlightDone)? {disabled:true} : {} } |
|
|
|
|
> |
|
|
|
|
닫기 |
|
|
|
|
</Button.Ripple> |
|
|
|
|