|
|
@ -880,7 +880,9 @@ class Coursesleftnav extends Component{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div key={key} >
|
|
|
|
<div key={key} >
|
|
|
|
<a>
|
|
|
|
<a>
|
|
|
|
<li title={item.name.length<7?"":item.name} onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"} onMouseLeave={(e)=>this.hidesandian(e,key)} onMouseEnter={(e)=>this.showsandian(e,key)}>
|
|
|
|
|
|
|
|
|
|
|
|
<li onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"} onMouseLeave={(e)=>this.hidesandian(e,key)} onMouseEnter={(e)=>this.showsandian(e,key)}>
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={item.name.length<7?"":item.name}>
|
|
|
|
<a onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
|
<a onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.type==="announcement"?<i className={this.props.location.pathname===item.category_url?"color-blue iconfont icon-xiaoxi1 mr10 fl":"iconfont icon-xiaoxi1 mr10 fl"}></i>:
|
|
|
|
item.type==="announcement"?<i className={this.props.location.pathname===item.category_url?"color-blue iconfont icon-xiaoxi1 mr10 fl":"iconfont icon-xiaoxi1 mr10 fl"}></i>:
|
|
|
@ -912,6 +914,7 @@ class Coursesleftnav extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
</Popover>:""}
|
|
|
|
</Popover>:""}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
{/*下拉列表*/}
|
|
|
|
{/*下拉列表*/}
|
|
|
@ -950,14 +953,15 @@ class Coursesleftnav extends Component{
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{/*"/courses/"+this.props.match.params.coursesId+"/"+item.type+"/"+iem.category_type+"/"+iem.category_id*/}
|
|
|
|
{/*"/courses/"+this.props.match.params.coursesId+"/"+item.type+"/"+iem.category_type+"/"+iem.category_id*/}
|
|
|
|
<a className={"Draggablelichild"}>
|
|
|
|
<a className={"Draggablelichild"}>
|
|
|
|
|
|
|
|
|
|
|
|
<li className="clearfix width93 Draggableli" key={index} onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} onMouseLeave={(e)=>this.twosandianhide(e,index,item.type)} onMouseEnter={(e)=>this.twosandianshow(e,index,item.type)}
|
|
|
|
<li className="clearfix width93 Draggableli" key={index} onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} onMouseLeave={(e)=>this.twosandianhide(e,index,item.type)} onMouseEnter={(e)=>this.twosandianshow(e,index,item.type)}
|
|
|
|
key={index}
|
|
|
|
key={index}
|
|
|
|
ref={provided.innerRef}
|
|
|
|
ref={provided.innerRef}
|
|
|
|
{...provided.draggableProps}
|
|
|
|
{...provided.draggableProps}
|
|
|
|
{...provided.dragHandleProps}
|
|
|
|
{...provided.dragHandleProps}
|
|
|
|
title={iem.category_name.length<10?"":iem.category_name}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={iem.category_name.length<10?"":iem.category_name}>
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild">
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild">
|
|
|
|
<span className={this.props.location.pathname===iem.second_category_url?"color-blue fl ml38 maxwidth155 task-hide Draggablelichild":"fl ml38 maxwidth155 task-hide Draggablelichild"}>{iem.category_name}</span>
|
|
|
|
<span className={this.props.location.pathname===iem.second_category_url?"color-blue fl ml38 maxwidth155 task-hide Draggablelichild":"fl ml38 maxwidth155 task-hide Draggablelichild"}>{iem.category_name}</span>
|
|
|
|
<span className={twosandiantype===undefined?this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14":item.type===twosandiantypes&&twosandiantype===index&&iem.category_id!=0?"none":this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14"} >{iem.category_count===0?"":iem.category_count}</span>
|
|
|
|
<span className={twosandiantype===undefined?this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14":item.type===twosandiantypes&&twosandiantype===index&&iem.category_id!=0?"none":this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14"} >{iem.category_count===0?"":iem.category_count}</span>
|
|
|
@ -971,6 +975,7 @@ class Coursesleftnav extends Component{
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
{provided.placeholder}
|
|
|
|
{provided.placeholder}
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
@ -994,10 +999,12 @@ class Coursesleftnav extends Component{
|
|
|
|
<div key={key}>
|
|
|
|
<div key={key}>
|
|
|
|
{/*<Tooltip placement="bottom" title={"点击空白处展开二级菜单,点击模块名字跳转到对应模块"}>*/}
|
|
|
|
{/*<Tooltip placement="bottom" title={"点击空白处展开二级菜单,点击模块名字跳转到对应模块"}>*/}
|
|
|
|
<a>
|
|
|
|
<a>
|
|
|
|
|
|
|
|
|
|
|
|
<li className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"}
|
|
|
|
<li className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"}
|
|
|
|
onClick={(e)=>this.setnavid(e,key,item.id,item.type,item.category_url)} onMouseEnter={(e)=>this.showsandian(e,key)}
|
|
|
|
onClick={(e)=>this.setnavid(e,key,item.id,item.type,item.category_url)} onMouseEnter={(e)=>this.showsandian(e,key)}
|
|
|
|
title={item.name.length<7?"":item.name}
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={item.name.length<7?"":item.name}>
|
|
|
|
<a className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
|
<a className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.type==="announcement"?<i className={this.props.location.pathname===item.category_url?"color-blue iconfont icon-xiaoxi1 mr10 fl":"iconfont icon-xiaoxi1 mr10 fl"}></i>:
|
|
|
|
item.type==="announcement"?<i className={this.props.location.pathname===item.category_url?"color-blue iconfont icon-xiaoxi1 mr10 fl":"iconfont icon-xiaoxi1 mr10 fl"}></i>:
|
|
|
@ -1017,7 +1024,9 @@ class Coursesleftnav extends Component{
|
|
|
|
<span className={this.props.location.pathname===item.category_url?"color-blue fr mr20 font-14":"fr mr20 color999 font-14"}>{item.task_count===0?"":item.task_count}</span>
|
|
|
|
<span className={this.props.location.pathname===item.category_url?"color-blue fr mr20 font-14":"fr mr20 color999 font-14"}>{item.task_count===0?"":item.task_count}</span>
|
|
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
{/*</Tooltip>*/}
|
|
|
|
{/*</Tooltip>*/}
|
|
|
|
|
|
|
|
|
|
|
@ -1036,7 +1045,8 @@ class Coursesleftnav extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<a>
|
|
|
|
<a>
|
|
|
|
<li className="clearfix Draggableli" key={index} style={{ width: '244px'}} title={iem.category_name.length<10?"":iem.category_name}>
|
|
|
|
<li className="clearfix Draggableli" key={index} style={{ width: '244px'}}>
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={iem.category_name.length<10?"":iem.category_name}>
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild" onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} >
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild" onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} >
|
|
|
|
|
|
|
|
|
|
|
|
{/*<span className="fl ml38 maxwidth155 task-hide">{iem.category_name}</span>*/}
|
|
|
|
{/*<span className="fl ml38 maxwidth155 task-hide">{iem.category_name}</span>*/}
|
|
|
@ -1044,6 +1054,7 @@ class Coursesleftnav extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
<span className={twosandiantype===undefined?this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue font-14":"fr mr20 color999 font-14":twosandiantype===index&&item.type!="graduation"?"none":this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue font-14":"fr mr20 color999 font-14"}>{iem.category_count===0?"":iem.category_count}</span>
|
|
|
|
<span className={twosandiantype===undefined?this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue font-14":"fr mr20 color999 font-14":twosandiantype===index&&item.type!="graduation"?"none":this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue font-14":"fr mr20 color999 font-14"}>{iem.category_count===0?"":iem.category_count}</span>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
)
|
|
|
|
)
|
|
|
|