|
|
|
@ -52,7 +52,7 @@ class NewShixunModel extends Component{
|
|
|
|
|
Grouplist:[],
|
|
|
|
|
isspinning:false
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
}else if(pagetype==="pagetype"){
|
|
|
|
|
this.setState({
|
|
|
|
|
shixun_list:response.data.shixun_list,
|
|
|
|
|
shixuns_count:response.data.shixuns_count,
|
|
|
|
@ -77,15 +77,15 @@ class NewShixunModel extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ItsCourse=(item)=>{
|
|
|
|
|
return <Menu className={"inherits"}>
|
|
|
|
|
{item.map((list,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<Menu.Item key={key} id={list.id}>
|
|
|
|
|
{list.name}
|
|
|
|
|
</Menu.Item>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
</Menu>
|
|
|
|
|
return <Menu>
|
|
|
|
|
{item.map((list,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<Menu.Item key={key} id={list.id}>
|
|
|
|
|
<a target="_blank" href={`/paths/${list.id}`} className={"newshixun500"}>{list.name}</a>
|
|
|
|
|
</Menu.Item>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
</Menu>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getGrouplist=(Grouplist)=>{
|
|
|
|
@ -170,13 +170,16 @@ class NewShixunModel extends Component{
|
|
|
|
|
search:e.target.value
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setdatafuns=(value)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
search:value
|
|
|
|
|
search:value,
|
|
|
|
|
type:undefined,
|
|
|
|
|
})
|
|
|
|
|
let{type,page,status,diff,order,limit}=this.state;
|
|
|
|
|
this.getdatalist(page,type,status,value,order,diff,limit)
|
|
|
|
|
let{page,status,diff,order,limit}=this.state;
|
|
|
|
|
this.getdatalist(page,undefined,status,value,order,diff,limit)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showNotification = (description, message = "提示", icon) => {
|
|
|
|
|
const data = {
|
|
|
|
|
message,
|
|
|
|
@ -412,7 +415,7 @@ class NewShixunModel extends Component{
|
|
|
|
|
className="fl task-hide edu-txt-left mt3"
|
|
|
|
|
name="shixun_homework[]"
|
|
|
|
|
></Checkbox>
|
|
|
|
|
<a title={item.title} className="ml15 fl font-16 color-dark maxwidth900">
|
|
|
|
|
<a target="_blank" href={`/shixuns/${item.identifier}/challenges`} title={item.title} className="ml15 fl font-16 color-dark maxwidth1100">
|
|
|
|
|
{item.title}
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
@ -472,7 +475,7 @@ class NewShixunModel extends Component{
|
|
|
|
|
}
|
|
|
|
|
</Checkbox.Group>
|
|
|
|
|
|
|
|
|
|
{shixun_list===undefined?"":shixuns_count>15?<div className={" edu-txt-center pd303010"}>
|
|
|
|
|
{shixun_list===undefined||shixuns_count===undefined?"":shixun_list.length===0||shixuns_count===0?"":shixuns_count>15?<div className={" edu-txt-center pd303010"}>
|
|
|
|
|
<Pagination
|
|
|
|
|
showQuickJumper
|
|
|
|
|
defaultCurrent={1}
|
|
|
|
|