From 8caf263a5d3221e4a96f7e20e90ad88243192956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 14 Mar 2020 02:13:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teachercomponent/Teaccomponent.js | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js b/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js index a03df188d..099625aaf 100644 --- a/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js +++ b/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js @@ -35,6 +35,7 @@ class Teaccomponent extends Component{ } //截止 thisEnd=(attendance_id)=>{ + let thiss=this confirm({ title: '提示', @@ -52,9 +53,9 @@ class Teaccomponent extends Component{ // }catch (e) { // // } - this.props.getsetdatas(); + thiss.props.getsetdatas(); }else{ - this.props.showNotification(result.data.message); + thiss.props.showNotification(result.data.message); } }).catch((error) => { @@ -69,6 +70,7 @@ class Teaccomponent extends Component{ } //删除 thisdelete=(attendance_id)=>{ + let thiss=this confirm({ title: '提示', content: '确认删除此签到吗?', @@ -80,15 +82,15 @@ class Teaccomponent extends Component{ axios.delete(url, data) .then((result) => { if (result.data.status === 0) { - try { - this.props.showNotification(`删除成功`); - }catch (e) { - - } + // try { + // thiss.props.showNotification(`删除成功`); + // }catch (e) { + // + // } - this.props.getsetdatas(); + thiss.props.getsetdatas(); }else{ - this.props.showNotification(result.data.message); + thiss.props.showNotification(result.data.message); } }).catch((error) => {