diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index b51179f9..cb90df8a 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -74,7 +74,7 @@ const Column = [ prop: 'opearo', name: 'opearo', type: 'slot', - width: '150px' + width: '200px' }, { title: '状态', @@ -196,8 +196,9 @@ export default class acclist extends React.Component { sessionStorage.setItem('breaknav', JSON.stringify(activerou)) window.open('#/home/exchange-addcommodity') } + + /* 编辑 */ editinfo(e, rowData) { - // this.props.history.push('/home/exchangecode-edit'); sessionStorage.setItem('pathname2', '/home/exchangecode-edit') let activerou = [ { @@ -222,6 +223,31 @@ export default class acclist extends React.Component { sessionStorage.setItem('approval_status', rowData.status) 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) { this.setState({ tabIndex: index, key_word: '' }) this.setState({ page: 1, limit: 10 }) @@ -558,7 +584,12 @@ export default class acclist extends React.Component { ) : ( 撤销审批 )} - {/* 复制 */} + this.copyFunction(rowData)}> + 复制 + ) }