解决bug

This commit is contained in:
red-deng-deng 2021-11-29 17:41:29 +08:00
parent 7ac72fe989
commit 9f38dd120b
4 changed files with 4 additions and 17 deletions

View File

@ -20,7 +20,6 @@ export default class topNav extends React.Component{
//点击一级菜单 //点击一级菜单
showlinkmenu(e,item){ showlinkmenu(e,item){
let self=this; let self=this;
console.log(22,item.child);
try{ try{
item.child.forEach(item=>{ item.child.forEach(item=>{
if(item.level ===5){ if(item.level ===5){
@ -29,7 +28,6 @@ export default class topNav extends React.Component{
} }
}) })
}catch(e){ }catch(e){
console.log(e)
} }
self.setState({'linkshowname':item.title}); self.setState({'linkshowname':item.title});
self.setState({'menulinklist':item.child}); self.setState({'menulinklist':item.child});

View File

@ -168,7 +168,7 @@ export default class adduserinfo extends React.Component{
Notify.error(`最多可上传 ${data.maxAmount} 张图片`); Notify.error(`最多可上传 ${data.maxAmount} 张图片`);
} else if (type === 'overMaxSize') { } else if (type === 'overMaxSize') {
Notify.clear(); Notify.clear();
Notify.error(`图片大小不能超过 ${data.formattedMaxSize}`); Notify.error(`图片大小不能超过 ${data.formattedMaxSize}b`);
} }
}; };
//选择销售人员 //选择销售人员

View File

@ -94,8 +94,6 @@ export default class order extends React.Component{
handelResponse(res,(response,msg)=>{ handelResponse(res,(response,msg)=>{
const orderDetailLog_data=response.data; const orderDetailLog_data=response.data;
_self.setState({orderDetailLog_data,total:response.total}); _self.setState({orderDetailLog_data,total:response.total});
Notify.clear();
Notify.success(msg);
},(err)=>{ },(err)=>{
}) })
@ -110,8 +108,6 @@ export default class order extends React.Component{
handelResponse(res,(response,msg)=>{ handelResponse(res,(response,msg)=>{
const orderDetail_data=response; const orderDetail_data=response;
_self.setState({orderDetail_data}); _self.setState({orderDetail_data});
Notify.clear();
Notify.success(msg);
},(err)=>{ },(err)=>{
}) })
@ -142,14 +138,7 @@ export default class order extends React.Component{
this.getDetails(orderNo); this.getDetails(orderNo);
this.setState({tableHeight:window.innerHeight-430}); this.setState({tableHeight:window.innerHeight-430});
} }
// 监听组件内部状态的变化:
// componentDidUpdate(prevProps,prevState){
// // 参数分别为改变之前的数据状态对象
// if(this.state.tabactive==1){
// / this.getOrderLogFn();
// }
// }
// /
render(){ render(){
let orderDetail_data=this.state.orderDetail_data; let orderDetail_data=this.state.orderDetail_data;
return( return(
@ -233,7 +222,7 @@ export default class order extends React.Component{
if(com == "opearo") if(com == "opearo")
{ {
return <div> return <div>
<ReactJson collapsed={true} src={this.state.orderDetailLog_data} /> <ReactJson collapsed={true} src={rowData.data} />
</div> </div>
} }

View File

@ -166,7 +166,7 @@ export default class adduserinfo extends React.Component{
Notify.error(`最多可上传 ${data.maxAmount} 张图片`); Notify.error(`最多可上传 ${data.maxAmount} 张图片`);
} else if (type === 'overMaxSize') { } else if (type === 'overMaxSize') {
Notify.clear(); Notify.clear();
Notify.error(`图片大小不能超过 ${data.formattedMaxSize}`); Notify.error(`图片大小不能超过 ${data.formattedMaxSize}b`);
} }
}; };