|
|
|
@ -1313,28 +1313,44 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
publish_time:moment(handleDateString(dateString))
|
|
|
|
|
})
|
|
|
|
|
// if(this.state.allowreplenishment === true) {
|
|
|
|
|
// this.setState({
|
|
|
|
|
// end_time:moment(handleDateString(dateString)).add(1, 'months'),
|
|
|
|
|
// deadline:moment(handleDateString(dateString)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
// late_time:moment(handleDateString(dateString)).add(2, 'months'),
|
|
|
|
|
// late_times:moment(handleDateString(dateString)).add(2, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
// });
|
|
|
|
|
// try {
|
|
|
|
|
// this.setState({
|
|
|
|
|
// unit_e_tip: "",
|
|
|
|
|
// p_flag: false,
|
|
|
|
|
// borredss:undefined,
|
|
|
|
|
// })
|
|
|
|
|
// } catch (e) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// }else{
|
|
|
|
|
// this.setState({
|
|
|
|
|
// end_time:moment(handleDateString(dateString)).add(1, 'months'),
|
|
|
|
|
// deadline:moment(handleDateString(dateString)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
if(this.state.allowreplenishment === true) {
|
|
|
|
|
|
|
|
|
|
if(end_time=== undefined || 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'),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(late_time===undefined || 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'),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
this.setState({
|
|
|
|
|
unit_e_tip: "",
|
|
|
|
|
p_flag: false,
|
|
|
|
|
borredss:undefined,
|
|
|
|
|
})
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(end_time=== undefined || 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'),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|