兑换码复制面包屑调整

This commit is contained in:
Apple 2022-08-09 15:07:02 +08:00
parent 3991829fb0
commit 04c8bf80a1
2 changed files with 7 additions and 7 deletions

View File

@ -80,7 +80,7 @@ export default class topNav extends React.Component{
let pathnameBreak=sessionStorage.getItem('pathname2')
const pathname=window.location.href.lastIndexOf('\/');
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 planbreakflag = pathnamestr.includes('mytempMould')
let editbreakflag = pathnamestr.includes('edittemplate')

View File

@ -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')
let element = ''
if (
@ -200,8 +200,8 @@ export default class acclist extends React.Component {
<span
className='grid-link'
style={{ marginLeft: '10px' }}
onClick={(e) => this.copyFunction(key_batch_id, id, keyBatch)}>
复制
onClick={(e) => this.copyFunction(key_batch_id, id, keyBatch,title)}>
复制12
</span>
)
} 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('copy_code_id', 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',
name: '复制key'
name: '复制:' + title
}
]
}
]
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')
}