|
|
|
@ -73,6 +73,9 @@ class VideoIndex extends Component{
|
|
|
|
|
}
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
|
if(this.props.match.params.videoId !== prevProps.match.params.videoId ){
|
|
|
|
|
this.setState({
|
|
|
|
|
upload:false
|
|
|
|
|
})
|
|
|
|
|
const { page } = this.state;
|
|
|
|
|
this.checkType("video",page);
|
|
|
|
|
}
|
|
|
|
@ -246,6 +249,7 @@ class VideoIndex extends Component{
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<VideoLink
|
|
|
|
|
coursesId={coursesId}
|
|
|
|
|
videoId={videoId}
|
|
|
|
|
visible={otherLinkVisible}
|
|
|
|
|
notification={this.props.showNotification}
|
|
|
|
|
setVisible={this.setLinkeVisible}
|
|
|
|
@ -283,7 +287,7 @@ class VideoIndex extends Component{
|
|
|
|
|
videoData && videoData.category_name && type === "video" ?
|
|
|
|
|
<span className="font-18 fl color-dark-21 mt20 mb20">{videoData.category_name}</span>
|
|
|
|
|
:
|
|
|
|
|
<div className="task_menu_ul fl mt2">
|
|
|
|
|
<div className="task_menu_ul fl mt2" style={{width:"400px"}}>
|
|
|
|
|
<Menu mode="horizontal" selectedKeys={[type]} onClick={this.changeType}>
|
|
|
|
|
<Menu.Item key="video">视频</Menu.Item>
|
|
|
|
|
<Menu.Item key="live">直播</Menu.Item>
|
|
|
|
@ -301,11 +305,9 @@ class VideoIndex extends Component{
|
|
|
|
|
videoId ?
|
|
|
|
|
<WordsBtn style="blue" onClick={()=>this.editDir(videoData && videoData.category_name,videoId)} className={"mr30 font-16"}>目录重命名</WordsBtn>
|
|
|
|
|
:
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<WordsBtn style="blue" className="mr30 font-16" onClick={this.addDir}>新建目录</WordsBtn>
|
|
|
|
|
<WordsBtn style="blue" className="mr30 font-16" onClick={()=>this.setLinkeVisible(true)}>增加外链</WordsBtn>:""
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
<WordsBtn style="blue" className="mr30 font-16" onClick={this.addDir}>新建目录</WordsBtn>
|
|
|
|
|
}
|
|
|
|
|
<WordsBtn style="blue" className="mr30 font-16" onClick={()=>this.setLinkeVisible(true)}>增加外链</WordsBtn>
|
|
|
|
|
</span>:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
@ -321,7 +323,7 @@ class VideoIndex extends Component{
|
|
|
|
|
}
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
:
|
|
|
|
|
<WordsBtn style="blue" className="font-16 ml30" onClick={()=>this.setLinkeVisible(true)}>添加直播</WordsBtn>
|
|
|
|
|
<WordsBtn style="blue" className="font-16 ml30" onClick={this.liveSetting}>添加直播</WordsBtn>
|
|
|
|
|
}
|
|
|
|
|
</li>
|
|
|
|
|
</div>
|
|
|
|
|