|
|
|
@ -4,10 +4,11 @@ import { Card, Button } from '@component/ui';
|
|
|
|
|
import { GridDatabase } from '@src/components/crud/grid/GridDatatable'; |
|
|
|
|
import dayjs from 'dayjs'; |
|
|
|
|
import { openModal } from '@src/redux/features/comn/message/messageSlice'; |
|
|
|
|
|
|
|
|
|
export default function FlightApprovalsTable(props) { |
|
|
|
|
const dispatch = useDispatch(); |
|
|
|
|
|
|
|
|
|
const { laancAprvList } = useSelector(state => state.laancState); |
|
|
|
|
const { laancAprvList, laancElev } = useSelector(state => state.laancState); |
|
|
|
|
|
|
|
|
|
const columns = [ |
|
|
|
|
{ |
|
|
|
@ -36,7 +37,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
dispatch( |
|
|
|
|
openModal({ |
|
|
|
|
header: '미승인 사유', |
|
|
|
|
body: `관제권 내 제한고도(신청고도${fltElev}m/허용고도80m) 입니다.`, |
|
|
|
|
body: `관제권 내 제한고도(신청고도${fltElev}m/허용고도${laancElev}m) 입니다.`, |
|
|
|
|
type: 'error' |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
@ -44,7 +45,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
dispatch( |
|
|
|
|
openModal({ |
|
|
|
|
header: '승인 사유', |
|
|
|
|
body: `관제권 내 허용고도(신청고도${fltElev}m/허용고도40m) 입니다.`, |
|
|
|
|
body: `관제권 내 허용고도(신청고도${fltElev}m/허용고도${laancElev}m) 입니다.`, |
|
|
|
|
type: 'success' |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
@ -52,7 +53,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
dispatch( |
|
|
|
|
openModal({ |
|
|
|
|
header: '비대상', |
|
|
|
|
body: `해당 구역은 비 대상(신청고도${fltElev}m/허용고도150m) 지역 입니다.`, |
|
|
|
|
body: `해당 구역은 비 대상(신청고도${fltElev}m/허용고도${laancElev}m) 지역 입니다.`, |
|
|
|
|
type: 'error' |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
@ -87,7 +88,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
<dt> |
|
|
|
|
<div className='list-left-txt'>중심좌표(위/경도)</div> |
|
|
|
|
<div className='list-right-txt'> |
|
|
|
|
{area.lat}/{area.lon} |
|
|
|
|
{area.lat.toFixed(5)}/{area.lon.toFixed(5)} |
|
|
|
|
</div> |
|
|
|
|
</dt> |
|
|
|
|
<dt> |
|
|
|
|