|
|
|
@ -1316,21 +1316,21 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
if(this.state.allowreplenishment === true) {
|
|
|
|
|
|
|
|
|
|
if(this.state.end_time=== undefined || this.state.end_time===""){
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
this.setState({
|
|
|
|
|
end_time:moment(handleDateString(dateString)).add(1, 'months'),
|
|
|
|
|
deadline:moment(handleDateString(dateString)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(this.state.late_time===undefined || this.state.late_time===""){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
|
|
late_time:moment(handleDateString(dateString)).add(2, 'months'),
|
|
|
|
|
late_times:moment(handleDateString(dateString)).add(2, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
this.setState({
|
|
|
|
@ -1343,12 +1343,12 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(this.state.end_time=== undefined || this.state.end_time===""){
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
this.setState({
|
|
|
|
|
end_time:moment(handleDateString(dateString)).add(1, 'months'),
|
|
|
|
|
deadline:moment(handleDateString(dateString)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|