|
|
@ -42,6 +42,7 @@ const FlightPlanContainer = () => { |
|
|
|
const { user } = useSelector(state => state.authState, shallowEqual); |
|
|
|
const { user } = useSelector(state => state.authState, shallowEqual); |
|
|
|
const [params, setParams] = useState({}); |
|
|
|
const [params, setParams] = useState({}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//비행계획서 신청 버튼 활성/비활성 제어
|
|
|
|
const [isMyGroup, setIsMyGroup] = useState(); |
|
|
|
const [isMyGroup, setIsMyGroup] = useState(); |
|
|
|
|
|
|
|
|
|
|
|
const moveFlightPlanDetailPage = () => { |
|
|
|
const moveFlightPlanDetailPage = () => { |
|
|
@ -65,7 +66,12 @@ const FlightPlanContainer = () => { |
|
|
|
})); |
|
|
|
})); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleGroupSelect = ({ groupId, groupNm, groupAuthCd }) => { |
|
|
|
const handleGroupSelect = ({ |
|
|
|
|
|
|
|
groupId, |
|
|
|
|
|
|
|
groupNm, |
|
|
|
|
|
|
|
groupAuthCd, |
|
|
|
|
|
|
|
myGroupAuthCd |
|
|
|
|
|
|
|
}) => { |
|
|
|
// 권한 상관 없이 모두 조회 가능
|
|
|
|
// 권한 상관 없이 모두 조회 가능
|
|
|
|
const param = searchData; |
|
|
|
const param = searchData; |
|
|
|
|
|
|
|
|
|
|
@ -94,10 +100,15 @@ const FlightPlanContainer = () => { |
|
|
|
|
|
|
|
|
|
|
|
dispatch(FlightAction.FLIGHT_PLAN_LIST.request({ ...param, page: 1 })); |
|
|
|
dispatch(FlightAction.FLIGHT_PLAN_LIST.request({ ...param, page: 1 })); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//비행계획서 신청 버튼 활성/비활성 제어
|
|
|
|
let my = false; |
|
|
|
let my = false; |
|
|
|
if (user.authId === 'SUPER') { |
|
|
|
if (user.authId === 'SUPER') { |
|
|
|
my = true; |
|
|
|
my = true; |
|
|
|
} else if (user.authId === 'ADMIN' || user.authId === 'USER') { |
|
|
|
} else if (user.authId === 'ADMIN') { |
|
|
|
|
|
|
|
if (myGroupAuthCd) { |
|
|
|
|
|
|
|
my = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (user.authId === 'USER') { |
|
|
|
if (groupAuthCd) { |
|
|
|
if (groupAuthCd) { |
|
|
|
my = true; |
|
|
|
my = true; |
|
|
|
} |
|
|
|
} |
|
|
|