Browse Source

비행계획관리 탭 이동시 검색 수정

pull/2/head
이준희 2 years ago
parent
commit
949342a4a4
  1. 8
      src/containers/basis/flight/aprv/FlightPlanAprvContainer.js
  2. 13
      src/containers/basis/flight/plan/FlightPlanContainer.js

8
src/containers/basis/flight/aprv/FlightPlanAprvContainer.js

@ -189,6 +189,13 @@ const FlightPlanAprvContainer = () => {
// handlerGroupCancel();
// // handleSearch(searchData);
// }, []);
useEffect(() => {
if (searchData?.groupId) {
handleSearch(searchData);
}
}, [searchData]);
useEffect(() => {
if (user?.cstmrSno) {
if (user.authId === 'SUPER' || user.authId === 'ADMIN') {
@ -202,6 +209,7 @@ const FlightPlanAprvContainer = () => {
}
}
}, [user]);
useEffect(() => {
if (aprvProc && aprvProc.result > 0) {
handleSearch(searchData);

13
src/containers/basis/flight/plan/FlightPlanContainer.js

@ -129,6 +129,16 @@ const FlightPlanContainer = () => {
);
};
// useEffect(() => {
// handlerGroupCancel();
// }, []);
useEffect(() => {
if (searchData?.groupId) {
handleSearch(searchData);
}
}, [searchData]);
useEffect(() => {
if (user?.cstmrSno) {
if (user.authId === 'SUPER' || user.authId === 'ADMIN') {
@ -143,9 +153,6 @@ const FlightPlanContainer = () => {
}
}, [user]);
// useEffect(() => {
// handlerGroupCancel();
// }, []);
const onChangePage = page => {
dispatch(FlightAction.FLIGHT_PLAN_LIST.request({ ...searchData, page }));
};

Loading…
Cancel
Save