|
|
|
@ -340,7 +340,7 @@ class Coursesleftnav extends Component{
|
|
|
|
|
})
|
|
|
|
|
this.props.updataleftNavfun();
|
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
|
|
|
|
|
|
e.stopPropagation();//阻止冒泡
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -811,26 +811,24 @@ class Coursesleftnav extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showsandians=(e,key,urls,num,id,type,index)=> {
|
|
|
|
|
|
|
|
|
|
let {url}=this.state;
|
|
|
|
|
if (key === this.props.indexs) {
|
|
|
|
|
this.props.unlocationNavfun(undefined)
|
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
|
} else {
|
|
|
|
|
this.props.updataleftNavfun();
|
|
|
|
|
this.props.unlocationNavfun(key)
|
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
|
}
|
|
|
|
|
if(urls!=url){
|
|
|
|
|
this.props.updataleftNavfun();
|
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
selectnavid:true,
|
|
|
|
|
newselectnavid:id,
|
|
|
|
|
url:urls,
|
|
|
|
|
indexs:index
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.props.history.replace(urls);
|
|
|
|
|
e.stopPropagation();//阻止冒泡
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
maincontent=(item,key)=>{
|
|
|
|
@ -880,14 +878,10 @@ class Coursesleftnav extends Component{
|
|
|
|
|
//章节编辑
|
|
|
|
|
Chapterediting=(e,id,url)=> {
|
|
|
|
|
e.stopPropagation();//阻止冒泡
|
|
|
|
|
console.log(url);
|
|
|
|
|
console.log(id);
|
|
|
|
|
//页面刷新
|
|
|
|
|
this.setState({
|
|
|
|
|
chapterupdate:true,
|
|
|
|
|
})
|
|
|
|
|
// this.props.history.replace( url );
|
|
|
|
|
// this.props.comyslElearning(true);
|
|
|
|
|
};
|
|
|
|
|
setchapterupdatefalse =()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|