Merge remote-tracking branch 'origin/master'

dev_forum
杨树明 6 years ago
commit 0ea35bb571

@ -1175,6 +1175,9 @@ class GraduationTaskssettinglist extends Component{
render: operation => (
<div>
{this.props.isAdmin()?operation.map((tag,key) => {
console.log("1179");
console.log(key);
console.log(tag);
return(
<div key={key}>

@ -637,11 +637,14 @@ class Trainingjobsetting extends Component {
//允许补交
onChanges = (e) => {
// debugger
if(e.target.value ==="允许补交"){
if(this.state.end_time !== null && this.state.end_time!== undefined){
// console.log(this.state.end_time);
var times = this.state.end_time.format('YYYY-MM-DD HH:mm');
this.setState({
late_time:moment(handleDateString(this.state.end_time)).add(1, 'months'),
late_times:moment(handleDateString(this.state.end_time)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
late_time:moment(handleDateString(times)).add(1, 'months'),
late_times:moment(handleDateString(times)).add(1, 'months').format('YYYY-MM-DD HH:mm'),
})
}
@ -1080,7 +1083,7 @@ class Trainingjobsetting extends Component {
}
// console.log(value);
// console.log(dateString);
console.log(dateString);
// console.log(handleDateString(dateString));
this.onChangedata('publish_time', value, dateString);
if(this.state.allowreplenishment === "允许补交") {

Loading…
Cancel
Save