|
|
|
@ -193,6 +193,21 @@ const FlightPlanAprvContainer = () => {
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (searchData?.groupId) { |
|
|
|
|
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]); |
|
|
|
|
|
|
|
|
|