김지은 4 months ago
parent
commit
2101354282
  1. 55
      src/components/flight/FlightApprovalsTable.js

55
src/components/flight/FlightApprovalsTable.js

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

Loading…
Cancel
Save