|
|
|
@ -89,7 +89,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
name: '중심좌표(위도/경도)', |
|
|
|
|
selector: row => row.areaList[0].lat, |
|
|
|
|
center: true, |
|
|
|
|
width: '160px', |
|
|
|
|
width: '180px', |
|
|
|
|
sortable: true, |
|
|
|
|
cell: row => { |
|
|
|
|
return ( |
|
|
|
@ -134,7 +134,27 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
: '미승인'; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
name: '사유보기', |
|
|
|
|
selector: row => row.areaList[0].approvalCd, |
|
|
|
|
center: true, |
|
|
|
|
cell: row => { |
|
|
|
|
return ( |
|
|
|
|
<Button |
|
|
|
|
color='flat-dark' |
|
|
|
|
onClick={() => |
|
|
|
|
handlerOpenModal( |
|
|
|
|
row.areaList[0].approvalCd, |
|
|
|
|
row.areaList[0].fltElev, |
|
|
|
|
row.areaList[0].fltElevMax |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
사유보기 |
|
|
|
|
</Button> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '더보기', |
|
|
|
|
selector: row => row.areaList, |
|
|
|
@ -187,7 +207,6 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
selector: row => row.applyNo, |
|
|
|
|
center: true, |
|
|
|
|
cell: row => { |
|
|
|
|
// return row.applyNo; 6/7 서버 작업 끝나면 주석 풀것
|
|
|
|
|
return '240503-0001'; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -202,7 +221,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
selector: row => row.zoneNo, |
|
|
|
|
center: true, |
|
|
|
|
sortable: true, |
|
|
|
|
width: '60px', |
|
|
|
|
width: '110px', |
|
|
|
|
cell: row => { |
|
|
|
|
return row.zoneNo + '번'; |
|
|
|
|
} |
|
|
|
@ -210,7 +229,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
{ |
|
|
|
|
selector: row => row.lat, |
|
|
|
|
center: true, |
|
|
|
|
width: '160px', |
|
|
|
|
width: '180px', |
|
|
|
|
sortable: true, |
|
|
|
|
cell: row => { |
|
|
|
|
return ( |
|
|
|
@ -250,7 +269,22 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
: '미승인'; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
selector: row => row.approvalCd, |
|
|
|
|
center: true, |
|
|
|
|
cell: row => { |
|
|
|
|
return ( |
|
|
|
|
<Button |
|
|
|
|
color='flat-dark' |
|
|
|
|
onClick={() => |
|
|
|
|
handlerOpenModal(row.approvalCd, row.fltElev, row.fltElevMax) |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
사유보기 |
|
|
|
|
</Button> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
selector: row => row.approvalCd, |
|
|
|
|
center: true, |
|
|
|
@ -263,16 +297,10 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
|
|
|
|
|
// 테이블 내부 행 클릭 이벤트
|
|
|
|
|
const handleInRowClick = row => { |
|
|
|
|
handlerOpenModal(row.approvalCd, row.fltElev, row.fltElevMax); |
|
|
|
|
props.handlerDetail(row); |
|
|
|
|
}; |
|
|
|
|
// 테이블 행 클릭 이벤트
|
|
|
|
|
const handleRowClick = row => { |
|
|
|
|
handlerOpenModal( |
|
|
|
|
row.areaList[0].approvalCd, |
|
|
|
|
row.areaList[0].fltElev, |
|
|
|
|
row.areaList[0].fltElevMax |
|
|
|
|
); |
|
|
|
|
props.handlerDetail(row.areaList[0]); |
|
|
|
|
// 여기에 클릭 이벤트를 처리하는 코드를 작성하세요.
|
|
|
|
|
}; |
|
|
|
@ -337,8 +365,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
<div className='layer-ti d-flex justify-content-between align-items-center'> |
|
|
|
|
<h4>비행승인 신청 검토결과 목록</h4> |
|
|
|
|
<span className='search-case'> |
|
|
|
|
{formatDate(props.startDate)} |
|
|
|
|
{props.endDate ? '~' + formatDate(props.endDate) : null} 총{' '} |
|
|
|
|
{formatDate(props.startDate)} 총{' '} |
|
|
|
|
{approvalCdValue.S + approvalCdValue.F + approvalCdValue.U}건 |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|