dev_newshixunModel
杨树林 5 years ago
parent 4105e476cb
commit 46cd5f6c73

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

Loading…
Cancel
Save