diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 07e671eb..0cd4ae32 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -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/'); }) }) diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index ffcaf32a..5930c4eb 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -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/'); }) })