|
|
|
@ -78,7 +78,8 @@ class Coursesleftnav extends Component{
|
|
|
|
|
//获取资源id 判断是否选中的事资源来判控
|
|
|
|
|
treeDataid:'',
|
|
|
|
|
//默认值
|
|
|
|
|
treedefaultValue:''
|
|
|
|
|
treedefaultValue:'',
|
|
|
|
|
dropdownStyleshow:''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -911,10 +912,18 @@ class Coursesleftnav extends Component{
|
|
|
|
|
}
|
|
|
|
|
tronChange=(value)=>{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.state.dropdownStyleshow)
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
parentid:this.state.treeDataid===value?0:value
|
|
|
|
|
parentid:this.state.treeDataid===value?0:value,
|
|
|
|
|
dropdownStyleshow:'none'
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
tronclick=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
dropdownStyleshow:'inline-block'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1193,15 +1202,17 @@ class Coursesleftnav extends Component{
|
|
|
|
|
|
|
|
|
|
<TreeSelect
|
|
|
|
|
className={"input-flex-35 greyInput fl"}
|
|
|
|
|
style={{width:200,color:'#000000'}}
|
|
|
|
|
|
|
|
|
|
dropdownStyle={{ maxHeight: 400 ,width:600,overflow: 'auto',color:'#000000'}}
|
|
|
|
|
style={{width:300,color:'#000000'}}
|
|
|
|
|
|
|
|
|
|
dropdownClassName={{display:this.state.dropdownStyleshow}}
|
|
|
|
|
// dropdownMenuStyle={{display:this.state.dropdownStyleshow}}
|
|
|
|
|
treeData={this.state.treeData}
|
|
|
|
|
placeholder="资源(根目录)"
|
|
|
|
|
disabled={this.state.showPreson}
|
|
|
|
|
defaultValue={this.state.treedefaultValue}
|
|
|
|
|
treeDefaultExpandAll
|
|
|
|
|
onChange={this.tronChange}
|
|
|
|
|
onClick={this.tronclick}
|
|
|
|
|
/>
|
|
|
|
|
</div>:''}
|
|
|
|
|
|
|
|
|
@ -1508,10 +1519,53 @@ 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>
|
|
|
|
|
</a>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</li>
|
|
|
|
|
{
|
|
|
|
|
iem.third_category===undefined?"":iem.third_category.map((itt,index)=>{
|
|
|
|
|
if(itt.category_type!=="attachment"){
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return(
|
|
|
|
|
<div onClick={this.getatahcment} style={{display:this.state.newselectnavid===undefined?'none':itt.parent_id===this.state.newselectnavid?'block':'none'}}>
|
|
|
|
|
{/*"/classrooms/"+this.props.match.params.coursesId+"/"+item.type+"/"+iem.category_type+"/"+iem.category_id*/}
|
|
|
|
|
<a className={"Draggablelichild"} key={index}>
|
|
|
|
|
<li className="clearfix width93 Draggableli" key={index} onClick={(e)=>this.selectnavids(e,key,itt.parent_id,item.type+"child",itt.second_category_url,key)} onMouseLeave={(e)=>this.sansandianhide(e,index,item.type)} onMouseEnter={(e)=>this.sansandianshow(e,index,item.type,itt.category_name)}
|
|
|
|
|
key={index}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// title={iem.category_name.length<10?"":iem.category_name}
|
|
|
|
|
>
|
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild">
|
|
|
|
|
<span style={{marginLeft:15}} className={this.props.location.pathname===itt.second_category_url?"color-blue fl ml38 maxwidth155 task-hide Draggablelichild":"fl ml38 maxwidth155 task-hide Draggablelichild"} onMouseEnter={(e)=>this.sansandianshowys(e,index,item.type)}>{itt.category_name}</span>
|
|
|
|
|
|
|
|
|
|
<span className={sansandiantype===undefined?this.props.location.pathname===itt.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14":item.type===twosandiantypes&&sansandiantype===index&&itt.category_id!=0?"none":this.props.location.pathname===itt.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14"} >{itt.category_count===0?"":itt.category_count}</span>
|
|
|
|
|
|
|
|
|
|
{iem.category_type===twosandiantypes&&sansandiantype===index?
|
|
|
|
|
itt.category_name!==this.state.sanshow?"":
|
|
|
|
|
(
|
|
|
|
|
itt.category_name&&itt.category_name.length<13?
|
|
|
|
|
''
|
|
|
|
|
:
|
|
|
|
|
<Tooltip placement="right" key={index} title={itt.category_name} visible={toopvisibleindexs===undefined?false:toopvisibleindexs===index?true:false}>
|
|
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
|
)
|
|
|
|
|
:""}
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|