|
|
@ -962,7 +962,7 @@ class Fileslists extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>}
|
|
|
|
</style>}
|
|
|
|
<Titlesearchsection
|
|
|
|
<Titlesearchsection
|
|
|
|
title={child===false?"全部资源":name}
|
|
|
|
title={name}
|
|
|
|
searchValue={ searchValue }
|
|
|
|
searchValue={ searchValue }
|
|
|
|
// searchtype={this.props.isAdmin||this.props.isStudent ?true:false}
|
|
|
|
// searchtype={this.props.isAdmin||this.props.isStudent ?true:false}
|
|
|
|
onInputSearchChange={this.onInputSearchChange}
|
|
|
|
onInputSearchChange={this.onInputSearchChange}
|
|
|
@ -1039,21 +1039,26 @@ class Fileslists extends Component{
|
|
|
|
{ course_modules&&course_modules.course_modules.map( (item,key) => {
|
|
|
|
{ course_modules&&course_modules.course_modules.map( (item,key) => {
|
|
|
|
|
|
|
|
|
|
|
|
return item.children&&item.children.filter((item)=> {
|
|
|
|
return item.children&&item.children.filter((item)=> {
|
|
|
|
return (!this.state.dirSearchValue || item.name.indexOf(this.state.dirSearchValue) != -1)
|
|
|
|
return (!this.state.dirSearchValue || item.title.indexOf(this.state.dirSearchValue) != -1)
|
|
|
|
}).map((itm,k)=>{
|
|
|
|
}).map((itm,k)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className="bordboom">
|
|
|
|
<div >
|
|
|
|
<div className="bordboom" style={{display:'flex',marginTop:15,height:30}}>
|
|
|
|
<div style={{display:'flex',marginTop:10,height:20}}>
|
|
|
|
<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>
|
|
|
|
<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>}
|
|
|
|
{itm.children.length===0?'':<i style={{marginLeft:15,marginRight:15}} onClick={() => this.istowshow(itm,filesId)} className="iconfont icon-xiajiantou font-12 ml2"></i>}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{ this.state.istowshowid===itm.value?
|
|
|
|
{ this.state.istowshowid===itm.value?
|
|
|
|
itm.children.map((tt,ti) => {
|
|
|
|
itm.children.map((tt,ti) => {
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
filesId&&filesId===itm.id?"":
|
|
|
|
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>
|
|
|
|
<Tooltip placement="right"title={tt.title.length>13?tt.title:''} >
|
|
|
|
<Tooltip placement="right"title={tt.title.length>13?tt.title:''} >
|
|
|
|
<div style={{marginLeft:30,width:tt.title.length>13?200:undefined,color:'#000000',overflow: 'hidden',textOverflow:'ellipsis',whiteSpace: 'nowrap'}} key={ti} id={tt.value} onClick={() => this.moveTos(tt.value )} title={tt.name}>{tt.title}</div>
|
|
|
|
<div className="indexdiv" style={{marginTop:5,marginBottom:5,marginLeft: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.name}>{tt.title}</div>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
<div style={{display:itm.children.length===1?'none':ti===itm.children.length-1?'block':'none',marginLeft:15,width:250,height:1,background:'#c4c4c4'}}></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -1074,11 +1079,11 @@ class Fileslists extends Component{
|
|
|
|
{/*})*/}
|
|
|
|
{/*})*/}
|
|
|
|
{/*)*/}
|
|
|
|
{/*)*/}
|
|
|
|
{/*})}*/}
|
|
|
|
{/*})}*/}
|
|
|
|
{this.props.isAdmin()?parseInt(this.props.match.params.main_id)===filesId&&filesId?
|
|
|
|
{/* {this.props.isAdmin()?parseInt(this.props.match.params.main_id)===filesId&&filesId?
|
|
|
|
<p style={{marginLeft:15}}>
|
|
|
|
<p style={{marginLeft:15}}>
|
|
|
|
<a className="color-grey-6" onClick={()=>this.addDir()}>新建目录</a>
|
|
|
|
<a className="color-grey-6" onClick={()=>this.addDir()}>新建目录</a>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
:"":""}
|
|
|
|
:"":""} */}
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|