|
|
|
@ -132,13 +132,14 @@ class ShixunWorkModal extends Component{
|
|
|
|
|
|
|
|
|
|
onChange=(e)=>{
|
|
|
|
|
let{group_list}=this.state;
|
|
|
|
|
|
|
|
|
|
let {data}=this.props;
|
|
|
|
|
if(e.target.checked===true){
|
|
|
|
|
if(data&&data.length===0){
|
|
|
|
|
let id=[]
|
|
|
|
|
group_list.forEach((item,key)=>{
|
|
|
|
|
if(item.works_count!=0){
|
|
|
|
|
id.push(item.id)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.setState({
|
|
|
|
|
group_ids:id,
|
|
|
|
@ -147,7 +148,9 @@ class ShixunWorkModal extends Component{
|
|
|
|
|
}else{
|
|
|
|
|
let id=[]
|
|
|
|
|
group_list.forEach((item,key)=>{
|
|
|
|
|
if(item.works_count!=0){
|
|
|
|
|
id.push(item.id)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.setState({
|
|
|
|
|
group_ids:id,
|
|
|
|
@ -161,6 +164,9 @@ class ShixunWorkModal extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|