|
|
|
@ -89,7 +89,8 @@ class ShixunHomework extends Component{
|
|
|
|
|
})
|
|
|
|
|
if(this.props.match.params.main_id){
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true
|
|
|
|
|
isSpin:true,
|
|
|
|
|
checkedtype:false
|
|
|
|
|
})
|
|
|
|
|
this.seactall();
|
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
|
@ -98,7 +99,8 @@ class ShixunHomework extends Component{
|
|
|
|
|
|
|
|
|
|
}else if(this.props.match.params.category_id){
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true
|
|
|
|
|
isSpin:true,
|
|
|
|
|
checkedtype:false
|
|
|
|
|
})
|
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
|
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(this.props.match.params.main_id!=undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
checkedtype:false
|
|
|
|
|
})
|
|
|
|
|
this.seactall();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(prevProps.match.params.category_id != this.props.match.params.category_id){
|
|
|
|
|
if(this.props.match.params.category_id!=undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
checkedtype:false
|
|
|
|
|
})
|
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1100,7 +1108,7 @@ class ShixunHomework extends Component{
|
|
|
|
|
<div className="mt20 edu-back-white padding20-30">
|
|
|
|
|
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<Checkbox className="fl" style={{marginTop:'0px'}}checked={checkedtype} onClick={this.funselect}>已选 {checkBoxValues&&checkBoxValues.length} 个 (不支持跨页勾选)</Checkbox>
|
|
|
|
|
<Checkbox className="fl" style={{marginTop:'0px'}} checked={checkedtype} onClick={this.funselect}>已选 {checkBoxValues&&checkBoxValues.length} 个 (不支持跨页勾选)</Checkbox>
|
|
|
|
|
<div className="studentList_operation_ul">
|
|
|
|
|
<li className="li_line"><a className="color-grey-9" onClick={this.onDelete}>删除</a></li>
|
|
|
|
|
<li className="li_line"><a className="color-grey-9" onClick={this.homeworkstart}>立即发布</a></li>
|
|
|
|
|