兑换码列表 根据状态是否一键复制

This commit is contained in:
wangsongsole 2022-08-03 11:46:33 +08:00
parent b006e45446
commit ac8ad4f8b1
1 changed files with 17 additions and 6 deletions

View File

@ -585,12 +585,23 @@ export default class acclist extends React.Component {
) : ( ) : (
<span style={{ color: '#d8dbdd' }}>撤销审批</span> <span style={{ color: '#d8dbdd' }}>撤销审批</span>
)} )}
{rowData.status == 4 || rowData.status == 5 ? (
<span <span
className='grid-link' className='grid-link'
style={{ marginLeft: '10px' }} style={{ marginLeft: '10px' }}
onClick={(e) => this.copyFunction(rowData)}> onClick={(e) => this.copyFunction(rowData)}>
复制 复制
</span> </span>
) : (
<span
style={{
marginLeft: '10px',
paddingRight: '10px',
color: '#d8dbdd'
}}>
复制
</span>
)}
</div> </div>
) )
} }