diff --git a/src/components/basis/flight/plan/FlightPlanForm.js b/src/components/basis/flight/plan/FlightPlanForm.js index 96b8e2a7..cb3f6448 100644 --- a/src/components/basis/flight/plan/FlightPlanForm.js +++ b/src/components/basis/flight/plan/FlightPlanForm.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useEffect } from 'react'; import { Card, CardBody, @@ -18,12 +18,12 @@ import { FlightPlanModal } from './FlightPlanModal'; import FlightPlanArcrftContainer from '../../../../containers/basis/flight/plan/FlightPlanArcrftContainer'; import FlightPlanAreaContainer from '../../../../containers/basis/flight/plan/FlightPlanAreaContainer'; import { X } from 'react-feather'; -import { useDispatch } from 'react-redux'; +import { useDispatch, useSelector } from 'react-redux'; const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDelete, modal, handleDeleteArray }) => { - const {areaList, pilotList, arcrftList} = data; - + const {areaList, pilotList, arcrftList} = data; + return ( @@ -520,31 +520,6 @@ const AreaForm = ({data, handleChange, index}) => { const PilotForm = ({data, handleChange, index, handleDeleteArray}) => { return (
- - - - { - const {name, value} = e.target; - handleChange({ - type: 'pilot', - name, - value, - index - }) - }} - /> - - @@ -615,6 +591,7 @@ const PilotForm = ({data, handleChange, index, handleDeleteArray}) => { index }) }} + readOnly />
@@ -642,6 +619,7 @@ const PilotForm = ({data, handleChange, index, handleDeleteArray}) => { index }) }} + readOnly /> @@ -678,14 +656,14 @@ const ArcrftForm = ({data, handleChange, index, handleDeleteArray}) => { { @@ -697,6 +675,7 @@ const ArcrftForm = ({data, handleChange, index, handleDeleteArray}) => { index }) }} + readOnly /> @@ -723,6 +702,7 @@ const ArcrftForm = ({data, handleChange, index, handleDeleteArray}) => { index }) }} + readOnly /> @@ -749,6 +729,7 @@ const ArcrftForm = ({data, handleChange, index, handleDeleteArray}) => { index }) }} + readOnly /> @@ -775,6 +756,7 @@ const ArcrftForm = ({data, handleChange, index, handleDeleteArray}) => { index }) }} + readOnly /> diff --git a/src/containers/basis/flight/plan/FlightPlanDetailContainer.js b/src/containers/basis/flight/plan/FlightPlanDetailContainer.js index 5bb4102d..9b0baa91 100644 --- a/src/containers/basis/flight/plan/FlightPlanDetailContainer.js +++ b/src/containers/basis/flight/plan/FlightPlanDetailContainer.js @@ -378,11 +378,9 @@ const FlightPlanDetailContainer = () => { break; } } - useEffect(()=>{ - console.log(detailData); - },[detailData]) // 저장 const handleSave = () => { + console.log('detail>>>', detailData) if (!detailData.memberName) { setModal2({