diff --git a/src/components/laanc/LaancGrid.js b/src/components/laanc/LaancGrid.js index 42420c5..13ec689 100644 --- a/src/components/laanc/LaancGrid.js +++ b/src/components/laanc/LaancGrid.js @@ -1,8 +1,10 @@ +import { useEffect, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { GridDatabase } from '@src/components/crud/grid/GridDatatable'; -import { Row, Col, Card, Button, Spinner } from 'reactstrap'; +import { Row, Col, Card, Button, Spinner, Modal } from 'reactstrap'; import * as LaancAction from '../../modules/laanc/actions/laancActions'; +import LaancStep2 from './LaancStep2'; import moment from 'moment'; const data = [ @@ -36,23 +38,33 @@ function LaancGrid() { const dispatch = useDispatch(); const history = useHistory(); + const [disabledAnimation, setDisabledAnimation] = useState(false); + const { scheduleList } = useSelector(state => state.flightState); const { laancSearchData } = useSelector(state => state.laancState); const { loading } = useSelector(state => state.loadingReducer); - + const { laancDetail } = useSelector(state => state.laancState); const fillZero = (width, str) => { return str.length >= width ? str : new Array(width - str.length + 1).join('0') + str; //남는 길이만큼 0으로 채움 }; + useEffect(() => { + if (laancDetail) setDisabledAnimation(true); + }, [laancDetail]); + //상세보기 const handleDetail = planSno => { dispatch(LaancAction.LAANC_DETAIL.request(planSno)); + // history.push('/basis/flight/plan/create'); // to={`/basis/flight/plan/detail/${row.planSno}?type=plan`} }; + const handlerLaancClose = () => { + setDisabledAnimation(false); + }; const columns = [ { name: '비행계획서 일련 번호', @@ -213,6 +225,23 @@ function LaancGrid() { +