Merge branch 'develop' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

courseware
杨树林 5 years ago
commit f9bafa2acc

@ -163,7 +163,7 @@ class Fileslists extends Component{
let list = response.data.course_modules; let list = response.data.course_modules;
let course_second_categoriess; let course_second_categoriess;
list.map((item, key) => { list.map((item, key) => {
course_second_categoriess = item.course_second_categories course_second_categoriess = item.course_second_categories?item.course_second_categories:[]
}) })
this.setState({ this.setState({
@ -1002,7 +1002,7 @@ class Fileslists extends Component{
`} `}
</style> </style>
<ul className="drop_down_menu" style={{"right":"0px","left":"unset","min-width":'150px'}}> <ul className="drop_down_menu" style={{"right":"0px","left":"unset","min-width":'150px'}}>
{this.state.course_second_categories.length>10? <p className="drop_down_search"> {this.state.course_second_categories&&this.state.course_second_categories.length>10? <p className="drop_down_search">
<Input placeholder="搜索" value={this.state.dirSearchValue} onChange={(e) => {this.setState({dirSearchValue: e.target.value})}}/> <Input placeholder="搜索" value={this.state.dirSearchValue} onChange={(e) => {this.setState({dirSearchValue: e.target.value})}}/>
</p>:""} </p>:""}
@ -1014,7 +1014,7 @@ class Fileslists extends Component{
{ course_modules&&course_modules.course_modules.map( (item,key) => { { course_modules&&course_modules.course_modules.map( (item,key) => {
return item.course_second_categories.filter((item)=> { return item.course_second_categories&&item.course_second_categories.filter((item)=> {
return (!this.state.dirSearchValue || item.name.indexOf(this.state.dirSearchValue) != -1) return (!this.state.dirSearchValue || item.name.indexOf(this.state.dirSearchValue) != -1)
}).map((itm,k)=>{ }).map((itm,k)=>{
return( return(
@ -1022,7 +1022,7 @@ class Fileslists extends Component{
) )
}) })
})} })}
{this.state.course_second_categories.length===0? {this.state.course_second_categories&&this.state.course_second_categories.length===0?
<div className={"courseSecond"}>暂无数据</div>:""} <div className={"courseSecond"}>暂无数据</div>:""}
{/*{course_modules&&course_modules.course_modules.map((item,key)=>{*/} {/*{course_modules&&course_modules.course_modules.map((item,key)=>{*/}

Loading…
Cancel
Save