From f79c6ce78f58d0fedc7ca7036b75ec04e42bdd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Wed, 8 Dec 2021 16:58:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=B0=E5=A2=9Ekey?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 4 ++-- src/pages/plan/key/edit.js | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) 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/'); }) })