调整资源批量发布

dev_ysm
杨树明 5 years ago
parent fdd98e7549
commit c7e9f402f5

@ -618,7 +618,7 @@ class Fileslists extends Component{
modalname:"立即发布",
modaltype:response.data.course_groups===null||response.data.course_groups.length===0?2:1,
visible:true,
typs:"start",
typs:"end",
Topval:"学生将能立即收到资源",
// Botvalleft:"暂不发布",
// Botval:`本操作只对"未发布"的分班有效`,
@ -645,6 +645,7 @@ class Fileslists extends Component{
let url ="/files/bulk_publish.json";
axios.put(url, {
course_id:coursesId,
group_ids:ds,
ids :checkBoxValues,
}).then((result)=>{
if(result.status===200){

@ -91,7 +91,7 @@ class HomeworkModal extends Component{
//勾选实训
shixunhomeworkedit=(list)=>{
debugger
this.setState({
group_ids:list
})
@ -108,7 +108,6 @@ class HomeworkModal extends Component{
}
propsSaves=(ds,endtime)=>{
if(ds.length ===0&&endtime === ""){
this.props.Saves()
}else{

Loading…
Cancel
Save