资源修改

courseware
dinglink 5 years ago
parent 401205bb85
commit 2e3b99c08a

@ -563,10 +563,11 @@ class Fileslists extends Component{
this.onCheckBoxChange(checkBoxValues)
}
PaginationTask=(page)=>{
console.log(3)
let {search,order,selectpage,checkAllValue,checkBoxValues}=this.state;
let selectpagetype=selectpage===page?true:false
let selectpagetype=selectpage===page&&checkBoxValues.length===15?true:false
console.log(selectpagetype)
this.setState({
page:page,
checkAllValue:selectpagetype,
@ -1040,8 +1041,7 @@ class Fileslists extends Component{
return (!this.state.dirSearchValue || item.name.indexOf(this.state.dirSearchValue) != -1)
}).map((itm,k)=>{
return(
filesId&&filesId===itm.value?"":
<div>
<div className="bordboom">
<div className="bordboom" style={{display:'flex',marginTop:15,height:30}}>
<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>}
@ -1050,7 +1050,10 @@ class Fileslists extends Component{
itm.children.map((tt,ti) => {
return(
filesId&&filesId===itm.id?"":
<div style={{marginLeft:30}} key={ti} id={tt.value} onClick={() => this.moveTos(tt.value )} title={tt.name}>{tt.title}</div>
<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>
</Tooltip>
)
})
:''}

@ -0,0 +1,5 @@
.bordboom{
width: 100%;
border-bottom: 1 solid red;
}

@ -636,7 +636,7 @@ class Coursesleftnav extends Component{
setnavid:setnavid,
treedefaultValue:towid,
showPreson:showPreson,
Navmodalziyname:name,
Navmodalziyname:'',
parentid:towid,
NavmodalValue:name
})
@ -911,7 +911,7 @@ class Coursesleftnav extends Component{
}
tronChange=(value)=>{
console.log(this.state.treeDataid)
this.setState({
parentid:this.state.treeDataid===value?0:value
@ -1193,10 +1193,11 @@ class Coursesleftnav extends Component{
<TreeSelect
className={"input-flex-35 greyInput fl"}
style={{width:200}}
dropdownStyle={{ maxHeight: 400 ,width:300,overflow: 'auto' }}
style={{width:200,color:'#000000'}}
dropdownStyle={{ maxHeight: 400 ,width:600,overflow: 'auto',color:'#000000'}}
treeData={this.state.treeData}
placeholder="资源"
placeholder="资源(根目录)"
disabled={this.state.showPreson}
defaultValue={this.state.treedefaultValue}
treeDefaultExpandAll
@ -1390,7 +1391,7 @@ class Coursesleftnav extends Component{
// title={iem.category_name.length<10?"":iem.category_name}
>
<a className="fl pl46 pd0 Draggablelichild">
<span style={{marginLeft:20}} className={this.props.location.pathname===itt.second_category_url?"color-blue fl ml38 maxwidth170 task-hide Draggablelichild":"fl ml38 maxwidth170 task-hide Draggablelichild"} onMouseEnter={(e)=>this.sansandianshowys(e,index,item.type)}>{itt.category_name}</span>
<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>

@ -47,11 +47,7 @@
margin-left: 73%;
}
.bordboom{
width: 100%;
border-bottom: 1 solid red;
}
.guiimgcontee{
width: 100%;

Loading…
Cancel
Save