Browse Source

비행계획관리 버튼 비활성화 이슈 수정

ctrlDraw
이준희 2 years ago
parent
commit
a69d4aa297
  1. 15
      src/containers/basis/flight/aprv/FlightPlanAprvContainer.js
  2. 15
      src/containers/basis/flight/plan/FlightPlanContainer.js

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

@ -193,6 +193,21 @@ const FlightPlanAprvContainer = () => {
useEffect(() => { useEffect(() => {
if (searchData?.groupId) { if (searchData?.groupId) {
handleSearch(searchData); handleSearch(searchData);
//승인/미승인버튼 활성/비활성 제어
let my = false;
if (user.authId === 'SUPER') {
my = true;
} else if (user.authId === 'ADMIN') {
if (myGroupAuthCd) {
my = true;
}
} else if (user.authId === 'USER') {
if (groupAuthCd) {
my = true;
}
}
setIsMyGroup(my);
} }
}, [searchData]); }, [searchData]);

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

@ -136,6 +136,21 @@ const FlightPlanContainer = () => {
useEffect(() => { useEffect(() => {
if (searchData?.groupId) { if (searchData?.groupId) {
handleSearch(searchData); handleSearch(searchData);
//비행계획서 신청 버튼 활성/비활성 제어
let my = false;
if (user.authId === 'SUPER') {
my = true;
} else if (user.authId === 'ADMIN') {
if (myGroupAuthCd) {
my = true;
}
} else if (user.authId === 'USER') {
if (groupAuthCd) {
my = true;
}
}
setIsMyGroup(my);
} }
}, [searchData]); }, [searchData]);

Loading…
Cancel
Save