|
|
|
@ -168,6 +168,8 @@ class InfosPath extends Component{
|
|
|
|
|
|
|
|
|
|
</Menu>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// console.log(this.props.user&&this.props.user.main_site)
|
|
|
|
|
return(
|
|
|
|
|
<div className="educontent">
|
|
|
|
|
<Spin size="large" spinning={isSpin}>
|
|
|
|
@ -327,7 +329,10 @@ class InfosPath extends Component{
|
|
|
|
|
<div className="square-list clearfix">
|
|
|
|
|
{/* 295 */}
|
|
|
|
|
{
|
|
|
|
|
page == 1 && is_current && !category ? <Create href={"/paths/new"} name={"新建实践课程"} index="3"></Create>:""
|
|
|
|
|
this.props.user&&this.props.user.main_site===true?page == 1 && is_current && !category ? <Create href={"/paths/new"} name={"新建实践课程"} index="3"></Create>:"":""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.props.user&&this.props.user.main_site===false?this.props.user&&this.props.user.admin===true||this.props.user&&this.props.user.is_teacher===true||this.props.user&&this.props.user.business===true?page == 1 && is_current && !category ? <Create href={"/paths/new"} name={"新建实践课程"} index="3"></Create>:"":"":""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
(!data || (data && data.subjects.length==0)) && category && <NoneData></NoneData>
|
|
|
|
|