|
|
|
@ -66,13 +66,25 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const conditionalRowStyles = [ |
|
|
|
|
{ |
|
|
|
|
when: row => row.approval === '미승인', |
|
|
|
|
classNames: ['flight-not-approval-row'] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
when: row => row.approval === '승인', |
|
|
|
|
classNames: ['flight-approval-row'] |
|
|
|
|
} |
|
|
|
|
// {
|
|
|
|
|
// when: row => row.approval === '비대상',
|
|
|
|
|
// classNames: ['flight-noapproval-row']
|
|
|
|
|
// }
|
|
|
|
|
]; |
|
|
|
|
const columns = [ |
|
|
|
|
{ |
|
|
|
|
name: '민원번호', |
|
|
|
|
|
|
|
|
|
selector: row => row.planSno, |
|
|
|
|
center: true, |
|
|
|
|
|
|
|
|
|
cell: row => { |
|
|
|
|
return row.planSno; |
|
|
|
|
} |
|
|
|
@ -154,12 +166,12 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
const customStyles = { |
|
|
|
|
rows: { |
|
|
|
|
style: { |
|
|
|
|
minHeight: '70px', |
|
|
|
|
'&:not(:last-of-type)': { |
|
|
|
|
// borderBottomStyle: 'solid',
|
|
|
|
|
// borderWidth: '1px',
|
|
|
|
|
// borderColor: '#ff0000'
|
|
|
|
|
} |
|
|
|
|
minHeight: '70px' |
|
|
|
|
// '&:not(:last-of-type)': {
|
|
|
|
|
// borderBottomStyle: 'solid',
|
|
|
|
|
// borderWidth: '1px',
|
|
|
|
|
// borderColor: '#ff0000'
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
header: { |
|
|
|
@ -226,6 +238,7 @@ export default function FlightApprovalsTable(props) {
|
|
|
|
|
// handlerPageChange={props.handlerPageChange}
|
|
|
|
|
pagination={true} |
|
|
|
|
customStyles={customStyles} |
|
|
|
|
conditionalRowStyles={conditionalRowStyles} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</Card> |
|
|
|
|