From 3480de8929cac55f6a4d2c1c49c8553a32153607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 23 Mar 2020 18:26:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shixunHomework/Trainingjobsetting.js | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js index 6f41869ef..64a956d28 100644 --- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js +++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js @@ -329,7 +329,6 @@ class Trainingjobsetting extends Component { //跳转道描点的地方 scrollToAnchor = (anchorName) => { - debugger if (anchorName) { // 找到锚点 let anchorElement = document.getElementById(anchorName); @@ -579,7 +578,6 @@ class Trainingjobsetting extends Component { if (this.state.unifiedsetting === false) { ///非统一设置 let rulesdata = this.state.rulesdata; - // console.log(rulesdata); //开启了补交 if(this.state.allowreplenishment===true){ //补交结束时间不为空 @@ -595,25 +593,29 @@ class Trainingjobsetting extends Component { }catch (e) { } - if(moment(this.state.late_time, "YYYY-MM-DD HH:mm") <= emdtimes){ - this.props.showNotification(`补交结束时间必须晚于截止时间`); - mylate_times=true; - let kus=i+1; - this.setState({ - hand__e_tip: "补交时间必须晚于发布规则" +kus+ "的截止时间", - hand_flags: true, - handclass: "bor-reds", - }); - break; - }else{ - mylate_times=false; - this.setState({ - hand__e_tip: "", - hand_flags: false, - handclass: undefined, - }) + if(emdtimes){ + if(moment(this.state.late_time, "YYYY-MM-DD HH:mm") <= emdtimes){ + mylate_times=true; + let kus=i+1; + this.setState({ + hand__e_tip: "补交时间必须晚于发布规则" +kus+ "的截止时间", + hand_flags: true, + handclass: "bor-reds", + }); + this.props.showNotification(`补交结束时间必须晚于截止时间`); + break; + }else{ + mylate_times=false; + this.setState({ + hand__e_tip: "", + hand_flags: false, + handclass: undefined, + }) + } } + + } } }