From 04c8bf80a161bd8db0509ad11263c8f9bda9fdd7 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Tue, 9 Aug 2022 15:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=91=E6=8D=A2=E7=A0=81=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E9=9D=A2=E5=8C=85=E5=B1=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/subnav/main.js | 2 +- src/pages/exchangecode/list/list.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/subnav/main.js b/src/components/subnav/main.js index 58d3259c..057f191f 100644 --- a/src/components/subnav/main.js +++ b/src/components/subnav/main.js @@ -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') diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index 073017f7..faea6580 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -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 { this.copyFunction(key_batch_id, id, keyBatch)}> - 复制 + onClick={(e) => this.copyFunction(key_batch_id, id, keyBatch,title)}> + 复制12 ) } 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') }