schedule_job
杨树林 5 years ago
parent c36be3f87f
commit 3480de8929

@ -329,7 +329,6 @@ class Trainingjobsetting extends Component {
//跳转道描点的地方 //跳转道描点的地方
scrollToAnchor = (anchorName) => { scrollToAnchor = (anchorName) => {
debugger
if (anchorName) { if (anchorName) {
// 找到锚点 // 找到锚点
let anchorElement = document.getElementById(anchorName); let anchorElement = document.getElementById(anchorName);
@ -579,7 +578,6 @@ class Trainingjobsetting extends Component {
if (this.state.unifiedsetting === false) { if (this.state.unifiedsetting === false) {
///非统一设置 ///非统一设置
let rulesdata = this.state.rulesdata; let rulesdata = this.state.rulesdata;
// console.log(rulesdata);
//开启了补交 //开启了补交
if(this.state.allowreplenishment===true){ if(this.state.allowreplenishment===true){
//补交结束时间不为空 //补交结束时间不为空
@ -595,25 +593,29 @@ class Trainingjobsetting extends Component {
}catch (e) { }catch (e) {
} }
if(moment(this.state.late_time, "YYYY-MM-DD HH:mm") <= emdtimes){ if(emdtimes){
this.props.showNotification(`补交结束时间必须晚于截止时间`); if(moment(this.state.late_time, "YYYY-MM-DD HH:mm") <= emdtimes){
mylate_times=true; mylate_times=true;
let kus=i+1; let kus=i+1;
this.setState({ this.setState({
hand__e_tip: "补交时间必须晚于发布规则" +kus+ "的截止时间", hand__e_tip: "补交时间必须晚于发布规则" +kus+ "的截止时间",
hand_flags: true, hand_flags: true,
handclass: "bor-reds", handclass: "bor-reds",
}); });
break; this.props.showNotification(`补交结束时间必须晚于截止时间`);
}else{ break;
mylate_times=false; }else{
this.setState({ mylate_times=false;
hand__e_tip: "", this.setState({
hand_flags: false, hand__e_tip: "",
handclass: undefined, hand_flags: false,
}) handclass: undefined,
})
}
} }
} }
} }
} }

Loading…
Cancel
Save