|
|
|
@ -241,26 +241,26 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log("220");
|
|
|
|
|
// console.log("220");
|
|
|
|
|
var publish_timebools=false;
|
|
|
|
|
if(result.data.publish_time){
|
|
|
|
|
publish_timebools= moment(result.data.publish_time,"YYYY-MM-DD HH:mm")<=moment();
|
|
|
|
|
}
|
|
|
|
|
console.log("228");
|
|
|
|
|
console.log(publish_timebools);
|
|
|
|
|
// console.log("228");
|
|
|
|
|
// console.log(publish_timebools);
|
|
|
|
|
|
|
|
|
|
var end_timebools =false;
|
|
|
|
|
if(result.data.end_time){
|
|
|
|
|
end_timebools == moment(result.data.end_time,"YYYY-MM-DD HH:mm")<=moment();
|
|
|
|
|
}
|
|
|
|
|
console.log("233");
|
|
|
|
|
console.log(end_timebools);
|
|
|
|
|
// console.log("233");
|
|
|
|
|
// console.log(end_timebools);
|
|
|
|
|
var late_timess=false;
|
|
|
|
|
if(result.data.late_time){
|
|
|
|
|
late_timess== moment(result.data.end_time,"YYYY-MM-DD HH:mm")<=moment();
|
|
|
|
|
}
|
|
|
|
|
console.log("240");
|
|
|
|
|
console.log(late_timess);
|
|
|
|
|
// console.log("240");
|
|
|
|
|
// console.log(late_timess);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
@ -1805,6 +1805,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
modalSave: this.cancelBox
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
// debugger
|
|
|
|
|
var releasetime =true;
|
|
|
|
|
var deadline = true;
|
|
|
|
|
var endtime =true;
|
|
|
|
@ -1851,6 +1852,9 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
console.log(1);
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1875,6 +1879,8 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
console.log(2);
|
|
|
|
|
console.log(e);
|
|
|
|
|
this.setState({
|
|
|
|
|
flagPageEditsbox:true,
|
|
|
|
|
flagPageEdit: true,
|
|
|
|
@ -1905,9 +1911,10 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
console.log(3);
|
|
|
|
|
console.log(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
//取消编辑
|
|
|
|
|
cancelEdit = () => {
|
|
|
|
|
this.setState({
|
|
|
|
|