调整新增key成功调整页面

This commit is contained in:
姜棚 2021-12-08 16:58:22 +08:00
parent 30e9cbeca1
commit f79c6ce78f
2 changed files with 15 additions and 4 deletions

View File

@ -708,10 +708,10 @@ export default class acclist extends React.Component{
postKeyEmail(key_id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
Notify.success("发送成功,请在1-2分钟后查看")
this.props.history.push('/home/plan-list/');
this.props.history.push('/home/key-list/');
},(err)=>{
Notify.error(err)
this.props.history.push('/home/plan-list/');
this.props.history.push('/home/key-list/');
})
})

View File

@ -438,6 +438,17 @@ export default class acclist extends React.Component{
let data = {
code_batch:formdata
}
console.log("当前提交数据")
console.log(formdata)
if(formdata.length == 0)
{
Notify.error("没有改变的数据内容");
return;
}
putKeyBatchDetail(id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
Notify.success("更新key成功");
@ -718,10 +729,10 @@ export default class acclist extends React.Component{
postKeyEmail(key_id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
Notify.success("发送成功,请在1-2分钟后查看")
this.props.history.push('/home/plan-list/');
this.props.history.push('/home/key-list/');
},(err)=>{
Notify.error(err)
this.props.history.push('/home/plan-list/');
this.props.history.push('/home/key-list/');
})
})