|
|
@ -976,7 +976,8 @@ class ShixunHomework extends Component{
|
|
|
|
order,
|
|
|
|
order,
|
|
|
|
}=this.state;
|
|
|
|
}=this.state;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let main_id=this.props.match.params.main_id;
|
|
|
|
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<React.Fragment >
|
|
|
|
<React.Fragment >
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -1131,7 +1132,7 @@ class ShixunHomework extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
{course_modules&&course_modules.main_category.map((item,key)=>{
|
|
|
|
{course_modules&&course_modules.main_category.map((item,key)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
datas&&datas.category_id===null?datas.main_category_id===item.main_category_id?"":<li key={key} id={item.main_category_id} onClick={() => this.moveTos(item.main_category_id)}>{item.main_category_name}</li>:""
|
|
|
|
datas&&datas.category_id===null?"":<li key={key} id={item.main_category_id} onClick={() => this.moveTos(item.main_category_id)}>{item.main_category_name}</li>:""
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
|
@ -1139,8 +1140,12 @@ class ShixunHomework extends Component{
|
|
|
|
{ course_modules&&course_modules.homework_category.filter((item,key)=> {
|
|
|
|
{ course_modules&&course_modules.homework_category.filter((item,key)=> {
|
|
|
|
return (!this.state.dirSearchValue || item.category_name.indexOf(this.state.dirSearchValue) != -1)
|
|
|
|
return (!this.state.dirSearchValue || item.category_name.indexOf(this.state.dirSearchValue) != -1)
|
|
|
|
}).map( (item,key) => {
|
|
|
|
}).map( (item,key) => {
|
|
|
|
return
|
|
|
|
if(datas&&datas.category_id!=null&&datas&&datas.category_id===item.category_id===false){
|
|
|
|
datas&&datas.category_id!=null?datas.category_id===item.category_id?"":<li key={key} id={item.category_id} onClick={() => this.moveTos(item.category_id )}>{item.category_name}</li>:""
|
|
|
|
return <li key={key} id={item.category_id} onClick={() => this.moveTos(item.category_id )}>{item.category_name}</li>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(datas&&datas.category_id===null){
|
|
|
|
|
|
|
|
return <li key={key} id={item.category_id} onClick={() => this.moveTos(item.category_id )}>{item.category_name}</li>
|
|
|
|
|
|
|
|
}
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1152,7 +1157,7 @@ class ShixunHomework extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
`}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
{course_modules&&course_modules.homework_category.length===0?
|
|
|
|
{course_modules&&course_modules.homework_category.length===0&&datas&&datas.category_id===null?
|
|
|
|
<div className={"courseSecond"}>暂无数据</div>:""}
|
|
|
|
<div className={"courseSecond"}>暂无数据</div>:""}
|
|
|
|
|
|
|
|
|
|
|
|
{/*{course_modules&&course_modules.homework_category.map((item,key)=>{*/}
|
|
|
|
{/*{course_modules&&course_modules.homework_category.map((item,key)=>{*/}
|
|
|
|