|
|
|
@ -280,10 +280,19 @@ class VideoIndex extends Component {
|
|
|
|
|
mytitle:"",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
mystatisticsys = (bool,n) => {
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
statistics: bool,
|
|
|
|
|
myktid:null,
|
|
|
|
|
mytitle:"",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const {videos, upload, videoData, type, liveData, lives, page, liveVisible, isSpining, liveId, otherLinkVisible, statistics,myktid} = this.state;
|
|
|
|
|
const {videos, upload, videoData, type, liveData, lives, page, liveVisible, isSpining, liveId, otherLinkVisible, statistics,myktid,mytitle} = this.state;
|
|
|
|
|
const {coursesId, videoId} = this.props.match.params;
|
|
|
|
|
let {course_identity} = this.props && this.props.coursedata;
|
|
|
|
|
let is_teacher = this.props && this.props.user && this.props.user.is_teacher;
|
|
|
|
@ -404,9 +413,7 @@ class VideoIndex extends Component {
|
|
|
|
|
myktid===null||myktid===undefined?
|
|
|
|
|
<Videostatistics {...this.props} {...this.state} statisticsy={(b) => this.statisticsy(b)}></Videostatistics>
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
<Videostatisticscomtwo {...this.state} {...this.props} tisid={myktid} mytitle={mytitle} tisticsbools={(b,id,t)=>this.tisticsbools(b,id,t)}></Videostatisticscomtwo>
|
|
|
|
|
|
|
|
|
|
<Videostatisticscomtwo {...this.state} {...this.props} tisid={myktid} mytitle={mytitle} tisticsbools={(b,id)=>this.mystatisticsys(b,id)}></Videostatisticscomtwo>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|