解决bug,配置登陆menu为空提示
This commit is contained in:
parent
9f38dd120b
commit
413de286cb
|
@ -529,7 +529,7 @@ export default class edittemplate extends React.Component{
|
||||||
<div className="RootEditor">
|
<div className="RootEditor">
|
||||||
<div className="schema-editor-container" data-editor-role="XJWebsitePage">
|
<div className="schema-editor-container" data-editor-role="XJWebsitePage">
|
||||||
<div className="control page-title-control">
|
<div className="control page-title-control">
|
||||||
<h1>落地页设置</h1>
|
<h1>我的模板-落地页设置</h1>
|
||||||
<div className="page-title-control--content">
|
<div className="page-title-control--content">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -653,7 +653,7 @@ export default class edittemplate extends React.Component{
|
||||||
</FormItem>
|
</FormItem>
|
||||||
{
|
{
|
||||||
this.state.pageInfo ? (
|
this.state.pageInfo ? (
|
||||||
<FormItem labelname="选择商品列表样式" prop="list">
|
<FormItem labelname="选择" prop="list">
|
||||||
<div>
|
<div>
|
||||||
</div>
|
</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
|
@ -36,35 +36,35 @@ function FormDom(props) {
|
||||||
Notify.success(msg);
|
Notify.success(msg);
|
||||||
sessionStorage.setItem('showflag',true);
|
sessionStorage.setItem('showflag',true);
|
||||||
let menuList=response.menu;
|
let menuList=response.menu;
|
||||||
|
if(response.menu&&response.menu.length>0){
|
||||||
|
sessionStorage.setItem('activeMenu',JSON.stringify(response.menu));
|
||||||
try{
|
try{
|
||||||
menuList.forEach(item=>{
|
menuList.forEach(item=>{
|
||||||
if(item.id===16){
|
|
||||||
if(item.child&&item.child.length>0){
|
if(item.child&&item.child.length>0){
|
||||||
let obj=item.child.filter(item=>item.level==5);
|
let obj=item.child.filter(item=>item.level==5);
|
||||||
sessionStorage.setItem('pathname2',obj[0].router);
|
sessionStorage.setItem('pathname2',obj[0].router);
|
||||||
sessionStorage.setItem('menulinklist',JSON.stringify(item.child));
|
sessionStorage.setItem('menulinklist',JSON.stringify(item.child));
|
||||||
}else{
|
if(item.id==16){
|
||||||
if(item.child&&item.child.length>0){
|
sessionStorage.setItem('linkshowname',"营销计划管理");
|
||||||
let obj=item.child.filter(item=>item.level==5);
|
setTimeout(()=>{
|
||||||
sessionStorage.setItem('pathname2',obj[0].router);
|
props.history.push('/home/plan-list')
|
||||||
sessionStorage.setItem('menulinklist',JSON.stringify(item.child));
|
},1000);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
throw '终止循环'
|
throw '终止循环'
|
||||||
}else{
|
}else{
|
||||||
|
sessionStorage.setItem('linkshowname',obj[0].title);
|
||||||
|
setTimeout(()=>{
|
||||||
|
props.history.push(obj[0].router)
|
||||||
|
},1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}catch(e){
|
}catch(e){
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
sessionStorage.setItem('activeMenu',JSON.stringify(response.menu));
|
Notify.clear();
|
||||||
sessionStorage.setItem('linkshowname',"营销计划管理");
|
Notify.warn('请先联系管理员配置权限菜单');
|
||||||
setTimeout(()=>{
|
}
|
||||||
props.history.push('/home/plan-list')
|
|
||||||
},1000);
|
|
||||||
},err=>{
|
},err=>{
|
||||||
if(res.code==-2){
|
if(res.code==-2){
|
||||||
setYzmcode(true);
|
setYzmcode(true);
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default class add extends React.Component{
|
||||||
curstep:1,
|
curstep:1,
|
||||||
menuList:[
|
menuList:[
|
||||||
{id:1,title:"营销计划",child:[{step:1,title:"新建计划"}]},
|
{id:1,title:"营销计划",child:[{step:1,title:"新建计划"}]},
|
||||||
{id:2,title:"key",child:[{step:1,title:"生产key"},{step:2,title:"绑定卡券"}]},
|
{id:2,title:"key",child:[{step:1,title:"生成key"},{step:2,title:"绑定卡券"}]},
|
||||||
{id:3,title:"落地页",child:[{step:1,title:"绑定落地页"}]},
|
{id:3,title:"落地页",child:[{step:1,title:"绑定落地页"}]},
|
||||||
],
|
],
|
||||||
phone_list:[],
|
phone_list:[],
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default class add extends React.Component{
|
||||||
curstep:1,
|
curstep:1,
|
||||||
menuList:[
|
menuList:[
|
||||||
{id:1,title:"营销计划",child:[{step:1,title:"新建计划"}]},
|
{id:1,title:"营销计划",child:[{step:1,title:"新建计划"}]},
|
||||||
{id:2,title:"key",child:[{step:1,title:"生产key"},{step:2,title:"绑定卡券"}]},
|
{id:2,title:"key",child:[{step:1,title:"生成key"},{step:2,title:"绑定卡券"}]},
|
||||||
{id:3,title:"落地页",child:[{step:1,title:"绑定落地页"}]},
|
{id:3,title:"落地页",child:[{step:1,title:"绑定落地页"}]},
|
||||||
],
|
],
|
||||||
phone_list:[],
|
phone_list:[],
|
||||||
|
|
Loading…
Reference in New Issue