新增兑换码复制按钮和相关操作

This commit is contained in:
wangsongsole 2022-07-29 16:22:45 +08:00
parent 18000eba59
commit db4a7f8160
1 changed files with 34 additions and 3 deletions

View File

@ -74,7 +74,7 @@ const Column = [
prop: 'opearo', prop: 'opearo',
name: 'opearo', name: 'opearo',
type: 'slot', type: 'slot',
width: '150px' width: '200px'
}, },
{ {
title: '状态', title: '状态',
@ -196,8 +196,9 @@ export default class acclist extends React.Component {
sessionStorage.setItem('breaknav', JSON.stringify(activerou)) sessionStorage.setItem('breaknav', JSON.stringify(activerou))
window.open('#/home/exchange-addcommodity') window.open('#/home/exchange-addcommodity')
} }
/* 编辑 */
editinfo(e, rowData) { editinfo(e, rowData) {
// this.props.history.push('/home/exchangecode-edit');
sessionStorage.setItem('pathname2', '/home/exchangecode-edit') sessionStorage.setItem('pathname2', '/home/exchangecode-edit')
let activerou = [ let activerou = [
{ {
@ -222,6 +223,31 @@ export default class acclist extends React.Component {
sessionStorage.setItem('approval_status', rowData.status) sessionStorage.setItem('approval_status', rowData.status)
window.open('#/home/exchangecode-edit') window.open('#/home/exchangecode-edit')
} }
/* 复制 */
copyFunction(rowData) {
sessionStorage.setItem('copyOpearo', 2)
sessionStorage.setItem('keybatch_id', rowData.key_batch_id)
let breakchangenav = [
{
pagetitle: '复制key',
items: [
{
path: '/home/exchangecode-list',
name: '兑换码管理'
},
{
path: '/home/exchangecode-add',
name: '复制key'
}
]
}
]
sessionStorage.setItem('pathname2', '/home/exchangecode-add')
sessionStorage.setItem('breakchangenav', JSON.stringify(breakchangenav))
this.props.history.push('/home/exchangecode-add')
}
tabFn(index) { tabFn(index) {
this.setState({ tabIndex: index, key_word: '' }) this.setState({ tabIndex: index, key_word: '' })
this.setState({ page: 1, limit: 10 }) this.setState({ page: 1, limit: 10 })
@ -558,7 +584,12 @@ export default class acclist extends React.Component {
) : ( ) : (
<span style={{ color: '#d8dbdd' }}>撤销审批</span> <span style={{ color: '#d8dbdd' }}>撤销审批</span>
)} )}
{/* <span className="grid-link" >复制</span> */} <span
className='grid-link'
style={{ marginLeft: '10px' }}
onClick={(e) => this.copyFunction(rowData)}>
复制
</span>
</div> </div>
) )
} }