|
|
@ -297,7 +297,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
if(bool===true){
|
|
|
|
if(bool===true){
|
|
|
|
if(this.props.isAdmin() !== undefined){
|
|
|
|
if(this.props.isAdmin() !== undefined){
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
this.editSetting(result);
|
|
|
|
this.editSettings(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1822,7 +1822,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
if(moment(datas.data.late_time,"YYYY-MM-DD HH:mm")<=moment()){
|
|
|
|
if(moment(datas.data.late_time,"YYYY-MM-DD HH:mm")<=moment()){
|
|
|
|
endtime=false;
|
|
|
|
endtime=false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(result.data.allow_late === false){
|
|
|
|
if(datas.data.allow_late === false){
|
|
|
|
whethertopays=false;
|
|
|
|
whethertopays=false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|