|
|
|
@ -313,10 +313,11 @@ class InfosCourse extends Component{
|
|
|
|
|
{/* 289 */}
|
|
|
|
|
{
|
|
|
|
|
page == 1 && is_current && !category &&
|
|
|
|
|
this.props.current_user && this.props.current_user.user_identity != "学生" ? <Create href={"/courses/new"} name={"新建课堂"} index="1"></Create> : ""
|
|
|
|
|
this.props.current_user && this.props.current_user.user_identity != "学生" ?
|
|
|
|
|
<Create href={"/courses/new"} name={"新建课堂"} index="1"></Create> : ""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
(!data || (data && data.courses.length==0)) && category && <NoneData></NoneData>
|
|
|
|
|
(!data || (data && data.courses.length === 0)) && (category || (!category && this.props.current_user && this.props.current_user.user_identity == "学生")) && <NoneData></NoneData>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
data && data.courses && data.courses.map((item,key)=>{
|
|
|
|
|