dev_forum
ysl 6 years ago
parent 264b425b74
commit 76a72bc27a

@ -637,11 +637,14 @@ class Trainingjobsetting extends Component {
//允许补交 //允许补交
onChanges = (e) => { onChanges = (e) => {
// debugger
if(e.target.value ==="允许补交"){ if(e.target.value ==="允许补交"){
if(this.state.end_time !== null && this.state.end_time!== undefined){ if(this.state.end_time !== null && this.state.end_time!== undefined){
// console.log(this.state.end_time);
var times = this.state.end_time.format('YYYY-MM-DD HH:mm');
this.setState({ this.setState({
late_time:moment(handleDateString(this.state.end_time)).add(1, 'months'), late_time:moment(handleDateString(times)).add(1, 'months'),
late_times:moment(handleDateString(this.state.end_time)).add(1, 'months').format('YYYY-MM-DD HH:mm'), late_times:moment(handleDateString(times)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
}) })
} }
@ -1080,7 +1083,7 @@ class Trainingjobsetting extends Component {
} }
// console.log(value); // console.log(value);
// console.log(dateString); console.log(dateString);
// console.log(handleDateString(dateString)); // console.log(handleDateString(dateString));
this.onChangedata('publish_time', value, dateString); this.onChangedata('publish_time', value, dateString);
if(this.state.allowreplenishment === "允许补交") { if(this.state.allowreplenishment === "允许补交") {

Loading…
Cancel
Save