|
|
@ -101,36 +101,43 @@ class Fileslists extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
if(prevProps.match.params.main_id != this.props.match.params.main_id){
|
|
|
|
|
|
|
|
this.getcourse_groupslists()
|
|
|
|
if(prevProps.coursesidtype!=this.props.coursesidtype||prevProps.match.params.main_id!=this.props.match.params.main_id||prevProps.match.params.Id!=this.props.match.params.Id){
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
isSpin:true,
|
|
|
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
if(this.props.match.params.main_id){
|
|
|
|
checkAllValue:false,
|
|
|
|
this.getcourse_groupslists()
|
|
|
|
})
|
|
|
|
this.setState({
|
|
|
|
if(this.props.match.params.main_id!=undefined){
|
|
|
|
isSpin:true,
|
|
|
|
this.setState({
|
|
|
|
checkBoxValues:[],
|
|
|
|
child:false,
|
|
|
|
checkAllValue:false,
|
|
|
|
sort:"desc"
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if(this.props.match.params.main_id!=undefined){
|
|
|
|
this.seactall(undefined,"desc");
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
child:false,
|
|
|
|
|
|
|
|
sort:"desc"
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.seactall(undefined,"desc");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(prevProps.match.params.Id != this.props.match.params.Id){
|
|
|
|
if(this.props.match.params.Id){
|
|
|
|
this.getcourse_groupslists()
|
|
|
|
this.getcourse_groupslists()
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
isSpin:true,
|
|
|
|
isSpin:true,
|
|
|
|
checkBoxValues:[],
|
|
|
|
checkBoxValues:[],
|
|
|
|
checkAllValue:false,
|
|
|
|
checkAllValue:false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if(this.props.match.params.Id!=undefined){
|
|
|
|
if(this.props.match.params.Id!=undefined){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
child:true,
|
|
|
|
child:true,
|
|
|
|
sort:"desc"
|
|
|
|
sort:"desc"
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.seactall(parseInt(this.props.match.params.Id),"desc")
|
|
|
|
this.seactall(parseInt(this.props.match.params.Id),"desc")
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
updadatalist=(id)=>{
|
|
|
|
updadatalist=(id)=>{
|
|
|
@ -916,7 +923,7 @@ class Fileslists extends Component{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
.filesnameslist{
|
|
|
|
.filesnameslist{
|
|
|
|
max-width: 200px;
|
|
|
|
max-width: 370px;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
white-space: nowrap;
|
|
|
|