|
|
|
@ -24,16 +24,19 @@ import {
|
|
|
|
|
import { |
|
|
|
|
initFlight, |
|
|
|
|
initFlightBas |
|
|
|
|
} from '../../../../modules/basis/flight/models/basisFlightModel'; |
|
|
|
|
} from '../../modules/basis/flight/models/basisFlightModel'; |
|
|
|
|
import { useHistory } from 'react-router-dom'; |
|
|
|
|
import { |
|
|
|
|
areaClickAction, |
|
|
|
|
environmentClickAction, |
|
|
|
|
mapTypeChangeAction, |
|
|
|
|
sensorClickAction |
|
|
|
|
} from '../../../../modules/control/map/actions/controlMapActions'; |
|
|
|
|
} from '../../modules/control/map/actions/controlMapActions'; |
|
|
|
|
|
|
|
|
|
const Apply = props => { |
|
|
|
|
const [detailData, setDetailData] = useState(initFlightBas.initDetail); |
|
|
|
|
|
|
|
|
|
const history = useHistory(); |
|
|
|
|
// 변경감지
|
|
|
|
|
const handleChange = ({ name, value, type, index, pIndex }) => { |
|
|
|
|
setDetailData(prevState => ({ |
|
|
|
@ -41,6 +44,12 @@ const Apply = props => {
|
|
|
|
|
[name]: value |
|
|
|
|
})); |
|
|
|
|
}; |
|
|
|
|
const handleClick = value => { |
|
|
|
|
props.handlerStep(value); |
|
|
|
|
}; |
|
|
|
|
const handlerLaanc = () => { |
|
|
|
|
history.replace('/control'); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className=''> |
|
|
|
@ -53,7 +62,7 @@ const Apply = props => {
|
|
|
|
|
<Button.Ripple |
|
|
|
|
color='danger' |
|
|
|
|
className='badge badge-danger' |
|
|
|
|
onClick={() => props.handlerLaanc()} |
|
|
|
|
onClick={() => handlerLaanc()} |
|
|
|
|
> |
|
|
|
|
취소 |
|
|
|
|
</Button.Ripple> |
|
|
|
@ -305,7 +314,7 @@ const Apply = props => {
|
|
|
|
|
<Button.Ripple |
|
|
|
|
color='danger' |
|
|
|
|
bsSize='sm' |
|
|
|
|
// onClick={props.handlerStep(1)}
|
|
|
|
|
onClick={() => handleClick(1)} |
|
|
|
|
> |
|
|
|
|
이전 |
|
|
|
|
</Button.Ripple> |
|
|
|
@ -313,7 +322,7 @@ const Apply = props => {
|
|
|
|
|
className='mr-1' |
|
|
|
|
color='primary' |
|
|
|
|
beSize='sm' |
|
|
|
|
// onClick={props.handlerStep(3)}
|
|
|
|
|
//onClick={() => handleClick(3)}
|
|
|
|
|
> |
|
|
|
|
다음 |
|
|
|
|
</Button.Ripple> |