From 33d166218d659e615a4beb125c81584324f0f33f Mon Sep 17 00:00:00 2001 From: sanguu516 Date: Wed, 5 Jun 2024 17:16:15 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9C=A0=EB=B3=B4=EA=B8=B0=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/flight/FlightApprovalsTable.js | 45 ++++--------------- 1 file changed, 8 insertions(+), 37 deletions(-) diff --git a/src/components/flight/FlightApprovalsTable.js b/src/components/flight/FlightApprovalsTable.js index 916b55af..f70a49ee 100644 --- a/src/components/flight/FlightApprovalsTable.js +++ b/src/components/flight/FlightApprovalsTable.js @@ -130,27 +130,7 @@ export default function FlightApprovalsTable(props) { : '미승인'; } }, - { - name: '사유보기', - selector: row => row.areaList[0].approvalCd, - center: true, - cell: row => { - return ( - - ); - } - }, + { name: '더보기', selector: row => row.areaList, @@ -260,22 +240,7 @@ export default function FlightApprovalsTable(props) { : '미승인'; } }, - { - selector: row => row.approvalCd, - center: true, - cell: row => { - return ( - - ); - } - }, + { selector: row => row.approvalCd, center: true, @@ -288,10 +253,16 @@ 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]); // 여기에 클릭 이벤트를 처리하는 코드를 작성하세요. };