diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index e77a163d9..fd3eac922 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -1175,6 +1175,9 @@ class GraduationTaskssettinglist extends Component{ render: operation => (
{this.props.isAdmin()?operation.map((tag,key) => { + console.log("1179"); + console.log(key); + console.log(tag); return(
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js index 108ab58f0..4c11ab072 100644 --- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js +++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js @@ -637,11 +637,14 @@ class Trainingjobsetting extends Component { //允许补交 onChanges = (e) => { + // debugger 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.end_time.format('YYYY-MM-DD HH:mm'); this.setState({ - late_time:moment(handleDateString(this.state.end_time)).add(1, 'months'), - late_times:moment(handleDateString(this.state.end_time)).add(1, 'months').format('YYYY-MM-DD HH:mm'), + late_time:moment(handleDateString(times)).add(1, 'months'), + 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(dateString); + console.log(dateString); // console.log(handleDateString(dateString)); this.onChangedata('publish_time', value, dateString); if(this.state.allowreplenishment === "允许补交") {