调整资源发布

dev_ysm
杨树明 6 years ago
parent a61cd42151
commit fdd98e7549

@ -610,21 +610,33 @@ class Fileslists extends Component{
} }
let starttime= this.props.getNowFormatDates(1); let starttime= this.props.getNowFormatDates(1);
let endtime=this.props.getNowFormatDates(2); let endtime=this.props.getNowFormatDates(2);
this.setState({ let coursesId=this.props.match.params.coursesId;
modalname:"立即发布", let url="/courses/"+coursesId+"/all_course_groups.json";
visible:true, axios.get(url).then((response) => {
typs:"start", if(response.status===200){
Topval:"学生将能立即收到资源", this.setState({
// Botvalleft:"暂不发布", modalname:"立即发布",
// Botval:`本操作只对"未发布"的分班有效`, modaltype:response.data.course_groups===null||response.data.course_groups.length===0?2:1,
// starttime:"发布时间:"+moment(moment(new Date())).format("YYYY-MM-DD HH:mm"), visible:true,
// starttimes:starttime, typs:"start",
// endtime:"截止时间:"+endtime, Topval:"学生将能立即收到资源",
Cancelname:"暂不发布", // Botvalleft:"暂不发布",
Savesname:"立即发布", // Botval:`本操作只对"未发布"的分班有效`,
Cancel:this.homeworkhide, // starttime:"发布时间:"+moment(moment(new Date())).format("YYYY-MM-DD HH:mm"),
Saves:this.homeworkstartend, // starttimes:starttime,
}) // endtime:"截止时间:"+endtime,
Cancelname:"暂不发布",
Savesname:"立即发布",
Cancel:this.homeworkhide,
Saves:this.homeworkstartend,
course_groups:response.data.course_groups,
})
}
}).catch((error) => {
console.log(error)
});
} }
// 立即发布 // 立即发布
homeworkstartend=(ds,endtime)=>{ homeworkstartend=(ds,endtime)=>{
@ -674,6 +686,12 @@ class Fileslists extends Component{
starttimes:undefined, starttimes:undefined,
}) })
} }
getcourse_groupslist=(id)=>{
this.setState({
course_groupslist:id
})
}
render(){ render(){
let { searchValue, let { searchValue,
checkBoxValues, checkBoxValues,

Loading…
Cancel
Save