dev_cs_new
杨树明 6 years ago
parent 02193fcf1a
commit bfe2071076

@ -301,8 +301,8 @@ module.exports = {
},
warnings: false,
compress: {
drop_debugger: false,
drop_console: false
drop_debugger: true,
drop_console: true
}
}
}),

@ -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)=>{
id.push(item.id)
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)=>{
id.push(item.id)
if(item.works_count!=0){
id.push(item.id)
}
})
this.setState({
group_ids:id,
@ -161,6 +164,9 @@ class ShixunWorkModal extends Component{
})
}
}

Loading…
Cancel
Save