毕设时间调整

dev_forum
杨树明 6 years ago
parent 11a33265c6
commit 2141b068f9

@ -480,7 +480,7 @@ class GraduationTaskssettingapp extends Component{
saveTaskssetting=()=>{
let {latepenalty,hascommit,minnums,max_nums,publish_time,end_time,crosscomment,latetime}=this.state;
let {latepenalty,hascommit,minnums,max_nums,publish_time,end_time,crosscomment,latetime,starttimetype}=this.state;
if(latepenalty===undefined){
this.setState({
latepenaltytype:true,
@ -500,7 +500,7 @@ class GraduationTaskssettingapp extends Component{
}
if(starttimetype===false) {
if (moment(publish_time) <= moment()) {
this.setState({
publishTimetypes: true,
@ -512,7 +512,7 @@ class GraduationTaskssettingapp extends Component{
publishTimetypes: false
})
}
}
if(moment(end_time)<moment(publish_time)){
@ -583,7 +583,7 @@ class GraduationTaskssettingapp extends Component{
}
if(starttimetype===false){
if(publish_time===null||publish_time=== ""){
this.setState({
publishTimetypes:true,
@ -592,6 +592,8 @@ class GraduationTaskssettingapp extends Component{
this.scrollToAnchor("publishtimestart");
return
}
}

Loading…
Cancel
Save