更新商品

This commit is contained in:
姜棚 2022-01-25 15:32:32 +08:00
parent 5a8738b7f0
commit 961619eccb
2 changed files with 17 additions and 17 deletions

View File

@ -546,18 +546,18 @@ export default class acclist extends React.Component{
addKeysBatchInfo(id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
// Notify.success("成功发起审批");
// setTimeout(()=>{
// this.props.history.push('/home/key-list/');
// },2000)
Notify.success("成功发起审批");
setTimeout(()=>{
this.props.history.push('/home/key-list/');
},2000)
keyApproval(id,req.id).then((res)=>{
handelResponse(res,(req,msg)=>{
// keyApproval(id,req.id).then((res)=>{
// handelResponse(res,(req,msg)=>{
},(err)=>{
Notify.error(err);
})
})
// },(err)=>{
// Notify.error(err);
// })
// })
},(err)=>{
Notify.error(err);

View File

@ -100,13 +100,13 @@ export default class acclist extends React.Component{
this.setState({isCancel:true})
}
if(req.status == 1)
{
this.setState({isEdit:false})
}
else{
this.setState({isEdit:true})
}
// if(req.status == 1)
// {
// this.setState({isEdit:false})
// }
// else{
// this.setState({isEdit:true})
// }
this.setState({pagetitle:"编辑key"})
req.code_batch = req.code_batch ? req.code_batch : []