兑换码复制面包屑调整
This commit is contained in:
parent
3991829fb0
commit
04c8bf80a1
|
@ -80,7 +80,7 @@ export default class topNav extends React.Component{
|
||||||
let pathnameBreak=sessionStorage.getItem('pathname2')
|
let pathnameBreak=sessionStorage.getItem('pathname2')
|
||||||
const pathname=window.location.href.lastIndexOf('\/');
|
const pathname=window.location.href.lastIndexOf('\/');
|
||||||
const pathnamestr=window.location.href.substr(pathname);
|
const pathnamestr=window.location.href.substr(pathname);
|
||||||
let breakflag=pathnamestr.includes('add')||pathnamestr.includes('aid')||pathnamestr.includes('distributor-edit')||pathnamestr.includes('key-list')||pathnamestr.includes('key-detail')||pathnamestr.includes('key-edit')||pathnamestr.includes('exchangecode-edit')||pathnamestr.includes('plan-edit')||pathnamestr.includes('product-edit');
|
let breakflag=pathnamestr.includes('add')||pathnamestr.includes('aid')||pathnamestr.includes('exchangecode-copyCode')||pathnamestr.includes('distributor-edit')||pathnamestr.includes('key-list')||pathnamestr.includes('key-detail')||pathnamestr.includes('key-edit')||pathnamestr.includes('exchangecode-edit')||pathnamestr.includes('plan-edit')||pathnamestr.includes('product-edit');
|
||||||
let sedcbreakflag=pathnamestr.includes('plan-create');
|
let sedcbreakflag=pathnamestr.includes('plan-create');
|
||||||
let planbreakflag = pathnamestr.includes('mytempMould')
|
let planbreakflag = pathnamestr.includes('mytempMould')
|
||||||
let editbreakflag = pathnamestr.includes('edittemplate')
|
let editbreakflag = pathnamestr.includes('edittemplate')
|
||||||
|
|
|
@ -186,7 +186,7 @@ export default class acclist extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 处理可复制数据逻辑 */
|
/* 处理可复制数据逻辑 */
|
||||||
copyElementFunction({ key_batch_id, status, end_time, keyBatch, id }) {
|
copyElementFunction({ key_batch_id, status, end_time, keyBatch, id ,title}) {
|
||||||
const today = moment().format('yyyy-MM-DD HH:mm:ss')
|
const today = moment().format('yyyy-MM-DD HH:mm:ss')
|
||||||
let element = ''
|
let element = ''
|
||||||
if (
|
if (
|
||||||
|
@ -200,8 +200,8 @@ export default class acclist extends React.Component {
|
||||||
<span
|
<span
|
||||||
className='grid-link'
|
className='grid-link'
|
||||||
style={{ marginLeft: '10px' }}
|
style={{ marginLeft: '10px' }}
|
||||||
onClick={(e) => this.copyFunction(key_batch_id, id, keyBatch)}>
|
onClick={(e) => this.copyFunction(key_batch_id, id, keyBatch,title)}>
|
||||||
复制
|
复制12
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
@ -247,7 +247,7 @@ export default class acclist extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 复制 */
|
/* 复制 */
|
||||||
copyFunction(key_batch_id, id, keyBatch) {
|
copyFunction(key_batch_id, id, keyBatch,title) {
|
||||||
sessionStorage.setItem('keybatch_id', key_batch_id)
|
sessionStorage.setItem('keybatch_id', key_batch_id)
|
||||||
sessionStorage.setItem('copy_code_id', id)
|
sessionStorage.setItem('copy_code_id', id)
|
||||||
sessionStorage.setItem('key_reseller_id', keyBatch.plan.reseller_id)
|
sessionStorage.setItem('key_reseller_id', keyBatch.plan.reseller_id)
|
||||||
|
@ -262,13 +262,13 @@ export default class acclist extends React.Component {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/home/exchangecode-copyCode',
|
path: '/home/exchangecode-copyCode',
|
||||||
name: '复制key'
|
name: '复制:' + title
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
sessionStorage.setItem('pathname2', '/home/exchangecode-copyCode')
|
sessionStorage.setItem('pathname2', '/home/exchangecode-copyCode')
|
||||||
sessionStorage.setItem('breakchangenav', JSON.stringify(breakchangenav))
|
sessionStorage.setItem('breaknav', JSON.stringify(breakchangenav))
|
||||||
this.props.history.push('/home/exchangecode-copyCode')
|
this.props.history.push('/home/exchangecode-copyCode')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue