From ad60fd1ba2d5011e86db2ec4c27d9f060dffe744 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Sat, 27 Nov 2021 17:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/subnav/main.js | 6 +++--- src/pages/exchangecode/list/list.js | 2 +- src/pages/plan/list/list.js | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/subnav/main.js b/src/components/subnav/main.js index 88c1a044..4b86fb01 100644 --- a/src/components/subnav/main.js +++ b/src/components/subnav/main.js @@ -58,11 +58,11 @@ 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('key-list'); - let sedcbreakflag=pathnamestr.includes('plan-create'); + let breakflag=pathnamestr.includes('add')||pathnamestr.includes('key-list')||pathnamestr.includes('key-edit')||pathnamestr.includes('exchangecode-edit')||pathnamestr.includes('plan-edit'); + let sedcbreakflag=pathnamestr.includes('plan-create'); let planbreakflag = pathnamestr.includes('mytempMould') let editbreakflag = pathnamestr.includes('edittemplate') - let breakchange = pathnamestr.includes('exchangecode-add') + let breakchange = pathnamestr.includes('exchangecode-add')|| pathnamestr.includes('key-edit'); if(breakchange){ breaknav=JSON.parse(sessionStorage.getItem('breakchangenav')) } diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index b993594c..32757ded 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -163,7 +163,7 @@ export default class acclist extends React.Component{ }, { "path": "/home/exchangecode-add", - "name": "编辑兑换码" + "name": "编辑:"+rowData.title } ]}] sessionStorage.setItem("code_id",rowData.id) diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 3fb60f18..1ac0b725 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -470,6 +470,13 @@ export default class acclist extends React.Component{ sessionStorage.setItem("plan_id",row.id) let link = window.location.href.replace(window.location.hash,"#/home/plan-edit"); window.open(link, "_blank") + + sessionStorage.setItem('showflag',true); + let arr=[{pagetitle:'编辑',items:[{path:'/home/key-list',name:'营销计划管理'}, + {path:'/home/key-list',name:'编辑:'+row.title} + ]}] + sessionStorage.setItem('breaknav',JSON.stringify(arr)); + sessionStorage.setItem('linkshowname',"营销计划管理"); } render(){