解决订单bug

This commit is contained in:
red-deng-deng 2021-11-28 17:43:05 +08:00
parent 6674d16bca
commit 66b2f7a5bb
2 changed files with 17 additions and 19 deletions

View File

@ -181,7 +181,7 @@ export default class App extends Component {
Notify.clear(); Notify.clear();
Notify.success('退出成功!'); Notify.success('退出成功!');
sessionStorage.clear(); sessionStorage.clear();
},2000); },100);
} }
}).catch(err=>{ }).catch(err=>{

View File

@ -98,24 +98,9 @@ export default class acclistDom extends React.Component{
} }
]}] ]}]
sessionStorage.setItem('breaknav',JSON.stringify(activerou)); sessionStorage.setItem('breaknav',JSON.stringify(activerou));
this.getCompanyFn();
} }
//获取公司
getCompanyFn(){
let _self=this;
getCompany().then(res=>{
handelResponse(res,(response,msg)=>{
let companyList=response.map(item=>{
return {key:item.id,text:item.company_name}
});
sessionStorage.setItem('company',JSON.stringify(companyList));
},(err)=>{
})
}).catch(err=>{
});
}
onChange = options => { onChange = options => {
this.setState(options); this.setState(options);
}; };
@ -188,7 +173,19 @@ export default class acclistDom extends React.Component{
}); });
} }
editFn(e,row){ editFn(e,row){
let _self=this;
getCompany().then(res=>{
handelResponse(res,(response,msg)=>{
let companyList=response.map(item=>{
return {key:item.id,text:item.company_name}
});
sessionStorage.setItem('company',JSON.stringify(companyList));
this.props.history.push('/home/system/account-add');
},(err)=>{
})
}).catch(err=>{
});
sessionStorage.setItem('pathname2','/home/system/account-add') sessionStorage.setItem('pathname2','/home/system/account-add')
let activerou=[{'pagetitle':'编辑',items:[ let activerou=[{'pagetitle':'编辑',items:[
{ {
@ -200,9 +197,10 @@ export default class acclistDom extends React.Component{
"name": "编辑账号" "name": "编辑账号"
} }
]}] ]}]
sessionStorage.setItem('breaknav',JSON.stringify(activerou)); sessionStorage.setItem('breaknav',JSON.stringify(activerou));
sessionStorage.setItem('dataInfo',JSON.stringify(row)); sessionStorage.setItem('dataInfo',JSON.stringify(row));
this.props.history.push('/home/system/account-add');
} }
//重置密码 //重置密码
resetpwd(e,row){ resetpwd(e,row){