PCqiandao
杨树林 5 years ago
parent 3fdbccd789
commit 8caf263a5d

@ -35,6 +35,7 @@ class Teaccomponent extends Component{
} }
//截止 //截止
thisEnd=(attendance_id)=>{ thisEnd=(attendance_id)=>{
let thiss=this
confirm({ confirm({
title: '提示', title: '提示',
@ -52,9 +53,9 @@ class Teaccomponent extends Component{
// }catch (e) { // }catch (e) {
// //
// } // }
this.props.getsetdatas(); thiss.props.getsetdatas();
}else{ }else{
this.props.showNotification(result.data.message); thiss.props.showNotification(result.data.message);
} }
}).catch((error) => { }).catch((error) => {
@ -69,6 +70,7 @@ class Teaccomponent extends Component{
} }
//删除 //删除
thisdelete=(attendance_id)=>{ thisdelete=(attendance_id)=>{
let thiss=this
confirm({ confirm({
title: '提示', title: '提示',
content: '确认删除此签到吗?', content: '确认删除此签到吗?',
@ -80,15 +82,15 @@ class Teaccomponent extends Component{
axios.delete(url, data) axios.delete(url, data)
.then((result) => { .then((result) => {
if (result.data.status === 0) { if (result.data.status === 0) {
try { // try {
this.props.showNotification(`删除成功`); // thiss.props.showNotification(`删除成功`);
}catch (e) { // }catch (e) {
//
} // }
this.props.getsetdatas(); thiss.props.getsetdatas();
}else{ }else{
this.props.showNotification(result.data.message); thiss.props.showNotification(result.data.message);
} }
}).catch((error) => { }).catch((error) => {

Loading…
Cancel
Save