|
|
@ -89,7 +89,8 @@ class ShixunHomework extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if(this.props.match.params.main_id){
|
|
|
|
if(this.props.match.params.main_id){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
isSpin:true
|
|
|
|
isSpin:true,
|
|
|
|
|
|
|
|
checkedtype:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.seactall();
|
|
|
|
this.seactall();
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
@ -98,7 +99,8 @@ class ShixunHomework extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
}else if(this.props.match.params.category_id){
|
|
|
|
}else if(this.props.match.params.category_id){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
isSpin:true
|
|
|
|
isSpin:true,
|
|
|
|
|
|
|
|
checkedtype:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
@ -136,11 +138,17 @@ class ShixunHomework extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
if(prevProps.match.params.main_id != this.props.match.params.main_id){
|
|
|
|
if(prevProps.match.params.main_id != this.props.match.params.main_id){
|
|
|
|
if(this.props.match.params.main_id!=undefined){
|
|
|
|
if(this.props.match.params.main_id!=undefined){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
checkedtype:false
|
|
|
|
|
|
|
|
})
|
|
|
|
this.seactall();
|
|
|
|
this.seactall();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(prevProps.match.params.category_id != this.props.match.params.category_id){
|
|
|
|
if(prevProps.match.params.category_id != this.props.match.params.category_id){
|
|
|
|
if(this.props.match.params.category_id!=undefined){
|
|
|
|
if(this.props.match.params.category_id!=undefined){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
checkedtype:false
|
|
|
|
|
|
|
|
})
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|