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) console.log(course_identity > 2 && item.user_id === user_id)
return ( return (
<VideoInReviewItem <VideoInReviewItem
Setmyktid={(id)=>this.props.Setmyktid(id)}
mykt={this.props.mykt} mykt={this.props.mykt}
{...this.props} {...this.props}
{...this.state}
{...item} {...item}
key={item.id} key={item.id}
onEditVideo={this.onEditVideo} onEditVideo={this.onEditVideo}

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

Loading…
Cancel
Save