|
|
|
@ -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,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|