|
|
|
@ -878,9 +878,11 @@ submittojoinclass=(value)=>{
|
|
|
|
|
|
|
|
|
|
let shixuntype=false;
|
|
|
|
|
let pathstype=false;
|
|
|
|
|
let coursestypes=false;
|
|
|
|
|
if(this.props&&this.props.mygetHelmetapi!=null){
|
|
|
|
|
let shixun="/shixuns";
|
|
|
|
|
let paths="/paths";
|
|
|
|
|
let courses="/courses";
|
|
|
|
|
this.props.mygetHelmetapi.navbar.map((item,key)=>{
|
|
|
|
|
var reg = RegExp(item.link);
|
|
|
|
|
if(shixun.match(reg)){
|
|
|
|
@ -893,6 +895,11 @@ submittojoinclass=(value)=>{
|
|
|
|
|
pathstype=true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(courses.match(reg)){
|
|
|
|
|
if(item.hidden===true){
|
|
|
|
|
coursestypes=true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
@ -1278,7 +1285,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
<div className="edu-menu-list" style={{top: '60px',width:"240px"}}>
|
|
|
|
|
<div className="overPart"></div>
|
|
|
|
|
<ul className="fl with50 edu-txt-center pr ul-leftline">
|
|
|
|
|
{this.props.current_user&&this.props.current_user.user_identity==="学生"?"":<li><a onClick={(url)=>this.getUser("/courses/new")}>新建翻转课堂</a></li>}
|
|
|
|
|
{this.props.current_user&&this.props.current_user.user_identity==="学生"?"":coursestypes===true?"":<li><a onClick={(url)=>this.getUser("/courses/new")}>新建翻转课堂</a></li>}
|
|
|
|
|
{shixuntype===true?"":<li><a onClick={(url)=>this.getUser("/shixuns/new")}>新建实训项目</a></li>}
|
|
|
|
|
{this.props.Headertop===undefined?"":
|
|
|
|
|
pathstype===true?"":<li><a onClick={(url)=>this.getUser("/paths/new")} >新建实践课程</a></li>
|
|
|
|
@ -1287,9 +1294,9 @@ submittojoinclass=(value)=>{
|
|
|
|
|
</ul>
|
|
|
|
|
<ul className="fl with50 edu-txt-center">
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
{coursestypes===true?"":<li>
|
|
|
|
|
<a onClick={this.tojoinclass}>加入翻转课堂</a>
|
|
|
|
|
</li>
|
|
|
|
|
</li>}
|
|
|
|
|
|
|
|
|
|
{Addcoursestypes===true?<Addcourses
|
|
|
|
|
Addcoursestype={Addcoursestypes}
|
|
|
|
|