courseware
杨树林 5 years ago
parent fe0cc42442
commit 0dbcf44ad5

@ -258,9 +258,10 @@ class Video extends Component {
console.log(course_identity > 2 && item.user_id === user_id)
return (
<VideoInReviewItem
Setmyktid={(id)=>this.props.Setmyktid(id)}
mykt={this.props.mykt}
{...this.props}
{...this.state}
{...item}
key={item.id}
onEditVideo={this.onEditVideo}

@ -41,6 +41,7 @@ class VideoIndex extends Component {
liveVisible: false,
statistics: false,
myktid:null,
}
}
@ -55,7 +56,11 @@ class VideoIndex extends Component {
this.getLiveList(page);
}
}
Setmyktid=(id)=>{
this.setState({
myktid:id
})
}
componentDidMount = () => {
const {search} = this.props.location;
const {page} = this.state;
@ -377,6 +382,7 @@ class VideoIndex extends Component {
</div>
</div>
:
<Videostatistics {...this.props} {...this.state} statisticsy={(b) => this.statisticsy(b)}></Videostatistics>
@ -388,6 +394,7 @@ class VideoIndex extends Component {
type === "video" ?
<Videos
mykt={"mykt"}
Setmyktid={(id)=>this.Setmyktid(id)}
upload={upload}
videos={videos}
page={page}

Loading…
Cancel
Save