|
|
|
@ -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) => {
|
|
|
|
|