|
|
|
@ -642,10 +642,10 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
if(e.target.value ==="允许补交"){
|
|
|
|
|
if(this.state.end_time !== null && this.state.end_time!== undefined){
|
|
|
|
|
// console.log(this.state.end_time);
|
|
|
|
|
var times = this.state.deadline.format('YYYY-MM-DD HH:mm');
|
|
|
|
|
// var times = this.state.deadline.format('YYYY-MM-DD HH:mm');
|
|
|
|
|
this.setState({
|
|
|
|
|
late_time:moment(handleDateString(times)).add(1, 'months'),
|
|
|
|
|
late_times:moment(handleDateString(times)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
late_time:moment(handleDateString(this.state.deadline)).add(1, 'months'),
|
|
|
|
|
late_times:moment(handleDateString(this.state.deadline)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1184,10 +1184,12 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
end_time:moment(handleDateString(dateString))
|
|
|
|
|
})
|
|
|
|
|
// this.onChangedata('end_time', value, dateString);
|
|
|
|
|
if(this.state.allowreplenishment === "允许补交"){
|
|
|
|
|
this.setState({
|
|
|
|
|
end_time:moment(handleDateString(dateString)),
|
|
|
|
|
deadline:moment(handleDateString(dateString)).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'),
|
|
|
|
|