|
|
|
@ -43,7 +43,7 @@ class ShixunHomework extends Component{
|
|
|
|
|
datas:undefined,
|
|
|
|
|
page:1,
|
|
|
|
|
Coursename:"",
|
|
|
|
|
order:"",
|
|
|
|
|
order:undefined,
|
|
|
|
|
orders:"8",
|
|
|
|
|
shixunmodal:false,
|
|
|
|
|
shixunmodallist:undefined,
|
|
|
|
@ -92,7 +92,9 @@ class ShixunHomework extends Component{
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true,
|
|
|
|
|
checkedtype:false,
|
|
|
|
|
orders:"8"
|
|
|
|
|
order:undefined,
|
|
|
|
|
orders:"8",
|
|
|
|
|
page:1,
|
|
|
|
|
})
|
|
|
|
|
this.seactall();
|
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
|
@ -103,7 +105,9 @@ class ShixunHomework extends Component{
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true,
|
|
|
|
|
checkedtype:false,
|
|
|
|
|
orders:"8"
|
|
|
|
|
order:undefined,
|
|
|
|
|
orders:"8",
|
|
|
|
|
page:1
|
|
|
|
|
})
|
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
|
if(this.props.isAdmin()===true){
|
|
|
|
@ -143,7 +147,9 @@ class ShixunHomework extends Component{
|
|
|
|
|
if(this.props.match.params.main_id!=undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
checkedtype:false,
|
|
|
|
|
orders:"8"
|
|
|
|
|
orders:"8",
|
|
|
|
|
order:undefined,
|
|
|
|
|
page:1
|
|
|
|
|
})
|
|
|
|
|
this.seactall();
|
|
|
|
|
}
|
|
|
|
@ -152,7 +158,9 @@ class ShixunHomework extends Component{
|
|
|
|
|
if(this.props.match.params.category_id!=undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
checkedtype:false,
|
|
|
|
|
orders:"8"
|
|
|
|
|
orders:"8",
|
|
|
|
|
order:undefined,
|
|
|
|
|
page:1
|
|
|
|
|
})
|
|
|
|
|
this.seactall(parseInt(this.props.match.params.category_id))
|
|
|
|
|
}
|
|
|
|
@ -608,14 +616,15 @@ class ShixunHomework extends Component{
|
|
|
|
|
orders:e.key,
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
|
checkedtype:false,
|
|
|
|
|
isSpin:true
|
|
|
|
|
isSpin:true,
|
|
|
|
|
page:1,
|
|
|
|
|
});
|
|
|
|
|
let newkey=e.key;
|
|
|
|
|
if(newkey==="8"){
|
|
|
|
|
newkey=undefined
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.homeworkupdatalist(Coursename,page,newkey);
|
|
|
|
|
this.homeworkupdatalist(Coursename,1,newkey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
funpatheditarry=(list)=>{
|
|
|
|
|