|
|
@ -21,7 +21,6 @@ class ShixunWorkModal extends Component{
|
|
|
|
page:1,
|
|
|
|
page:1,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
if(response.data.group_list===undefined){
|
|
|
|
if(response.data.group_list===undefined){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
course_groups:response.data,
|
|
|
|
course_groups:response.data,
|
|
|
@ -50,19 +49,35 @@ class ShixunWorkModal extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
//勾选实训
|
|
|
|
//勾选实训
|
|
|
|
shixunhomeworkedit=(checkedValues)=>{
|
|
|
|
shixunhomeworkedit=(checkedValues)=>{
|
|
|
|
|
|
|
|
let types=false
|
|
|
|
let{group_list}=this.state;
|
|
|
|
let{group_list}=this.state;
|
|
|
|
|
|
|
|
group_list.map((item,key)=>{
|
|
|
|
|
|
|
|
checkedValues.map((list,li)=>{
|
|
|
|
|
|
|
|
if(item.id===list){
|
|
|
|
|
|
|
|
if(item.works_count<2){
|
|
|
|
|
|
|
|
this.props.showNotification(`有效作品数少于2个,无法查重`)
|
|
|
|
|
|
|
|
types=true
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(types===false){
|
|
|
|
|
|
|
|
if(checkedValues.length===group_list.length){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
onChangetype:true,
|
|
|
|
|
|
|
|
group_ids:checkedValues
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
group_ids:checkedValues,
|
|
|
|
|
|
|
|
onChangetype:false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(checkedValues.length===group_list.length){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
onChangetype:true,
|
|
|
|
|
|
|
|
group_ids:checkedValues
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
group_ids:checkedValues,
|
|
|
|
|
|
|
|
onChangetype:false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
contentViewScroll=(e)=>{
|
|
|
|
contentViewScroll=(e)=>{
|
|
|
|