|
|
|
@ -51,6 +51,7 @@ class Fileslists extends Component{
|
|
|
|
|
istowshowid:'',
|
|
|
|
|
//新增参数判断几级目录
|
|
|
|
|
parent_category_id:'',
|
|
|
|
|
isToggleOn:false,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -673,8 +674,10 @@ class Fileslists extends Component{
|
|
|
|
|
|
|
|
|
|
//判断二级链接是否显示
|
|
|
|
|
istowshow(item){
|
|
|
|
|
let toggleon=this.state.isToggleOn;
|
|
|
|
|
this.setState({
|
|
|
|
|
istowshowid:item.value
|
|
|
|
|
istowshowid:item.value,
|
|
|
|
|
isToggleOn:!toggleon
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1032,9 +1035,9 @@ class Fileslists extends Component{
|
|
|
|
|
|
|
|
|
|
{course_modules&&course_modules.course_modules.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
|
|
|
|
|
<li key={key} id={item.value} onClick={() => this.moveTos(0)} title={item.title}>{item.title}</li>
|
|
|
|
|
|
|
|
|
|
<div style={{display:'inline-block',marginTop:10,height:20}}>
|
|
|
|
|
<li key={key} style={{paddingTop:5}} id={item.value} onClick={() => this.moveTos(0)} title={item.title}>{item.title}</li>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
@ -1046,7 +1049,7 @@ class Fileslists extends Component{
|
|
|
|
|
return(
|
|
|
|
|
<div >
|
|
|
|
|
<div style={{display:'inline-block',marginTop:10,height:20}}>
|
|
|
|
|
<li style={{width:200}} key={key} id={itm.value} onClick={() => this.moveTos(0)} title={itm.title}>{itm.title}</li>
|
|
|
|
|
<li style={{width:200,paddingTop:5}} key={key} id={itm.value} onClick={() => this.moveTos(itm.value)} title={itm.title}>{itm.title}</li>
|
|
|
|
|
|
|
|
|
|
{/* <div onClick={() => this.moveTos(itm.value )} style={{marginLeft:15,width:itm.title.length>13?200:undefined,color:'#000000',overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}}>{itm.title}</div> */}
|
|
|
|
|
{itm.children.length===0?'':<i style={{marginLeft:15,marginRight:15}} onClick={() => this.istowshow(itm,filesId)} className="iconfont icon-xiajiantou font-12 ml2"></i>}
|
|
|
|
@ -1056,10 +1059,10 @@ class Fileslists extends Component{
|
|
|
|
|
itm.children.map((tt,ti) => {
|
|
|
|
|
return(
|
|
|
|
|
filesId&&filesId===itm.id?"":
|
|
|
|
|
<div style={{marginTop:10,height:20}}>
|
|
|
|
|
<div style={{display:itm.children.length===1?'none':ti===0?'block':'none',marginLeft:15,width:250,height:1,background:'#c4c4c4'}}></div>
|
|
|
|
|
<div style={{marginTop:10,height:20,display:this.state.isToggleOn?'block':'none'}}>
|
|
|
|
|
<div style={{display:ti===0?'block':'none',marginLeft:15,width:235,marginRight:15,height:1,background:'#EEEEEE'}}></div>
|
|
|
|
|
|
|
|
|
|
<li style={{marginTop:5,marginBottom:5,paddingLeft:30,width:tt.title.length>13?200:undefined,overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}} key={ti} id={tt.value} onClick={() => this.moveTos(tt.value )} title={tt.title}>{tt.title}</li>
|
|
|
|
|
<li style={{marginTop:5,paddingTop:5,marginBottom:5,paddingLeft:30,width:tt.title.length>13?200:undefined,overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}} key={ti} id={tt.value} onClick={() => this.moveTos(tt.value )} title={tt.title}>{tt.title}</li>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|