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