|  |  |  | @ -168,11 +168,18 @@ class Video extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   // 移动到
 | 
			
		
	
		
			
				
					|  |  |  |  |   moveVideo=(id)=>{ | 
			
		
	
		
			
				
					|  |  |  |  |     this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |       moveVisible:true, | 
			
		
	
		
			
				
					|  |  |  |  |       moveVideoId:id | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  |   moveVideo=(id,flag)=>{ | 
			
		
	
		
			
				
					|  |  |  |  |     if(!flag){ | 
			
		
	
		
			
				
					|  |  |  |  |       this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |         moveVisible:true, | 
			
		
	
		
			
				
					|  |  |  |  |         moveVideoId:id | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }else{ | 
			
		
	
		
			
				
					|  |  |  |  |       this.props.define({ | 
			
		
	
		
			
				
					|  |  |  |  |         title:'提示', | 
			
		
	
		
			
				
					|  |  |  |  |         content:"您不是课堂管理员或者视频发布者,暂不能移动视频。", | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   setMoveVisible=(flag)=>{ | 
			
		
	
		
			
				
					|  |  |  |  |     this.setState({ | 
			
		
	
	
		
			
				
					|  |  |  | @ -194,6 +201,9 @@ class Video extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |     const { videos, upload, uploadVideo, videoData, changePage, pageSize, page } = this.props; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     const operation = admin || business; | 
			
		
	
		
			
				
					|  |  |  |  |     const {course_identity} = this.props.coursedata; | 
			
		
	
		
			
				
					|  |  |  |  |     const flagMove = parseInt(course_identity) < 5; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     return ( | 
			
		
	
		
			
				
					|  |  |  |  |       <div> | 
			
		
	
		
			
				
					|  |  |  |  |         <EditVideoModal {...this.props} visible={visible} setVisible={this.setVisible} | 
			
		
	
	
		
			
				
					|  |  |  | @ -232,10 +242,12 @@ class Video extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                   videos && videos.length > 0 ? | 
			
		
	
		
			
				
					|  |  |  |  |                     <React.Fragment> | 
			
		
	
		
			
				
					|  |  |  |  |                        | 
			
		
	
		
			
				
					|  |  |  |  |                       <p className="font-grey-9 mt20 mb20 pl5">共 <span className="color-orange">{videoData && videoData.count}</span> 个视频</p> | 
			
		
	
		
			
				
					|  |  |  |  |                       <div className="videoContent"> | 
			
		
	
		
			
				
					|  |  |  |  |                         { | 
			
		
	
		
			
				
					|  |  |  |  |                           videos.map((item, key) => { | 
			
		
	
		
			
				
					|  |  |  |  |                             console.log(course_identity > 2 && item.user_id === user_id) | 
			
		
	
		
			
				
					|  |  |  |  |                             return ( | 
			
		
	
		
			
				
					|  |  |  |  |                               <VideoInReviewItem | 
			
		
	
		
			
				
					|  |  |  |  |                                 {...this.props} | 
			
		
	
	
		
			
				
					|  |  |  | @ -247,7 +259,7 @@ class Video extends Component { | 
			
		
	
		
			
				
					|  |  |  |  |                                 getCopyText={this.getCopyText} | 
			
		
	
		
			
				
					|  |  |  |  |                                 operation={operation || item.user_id === user_id} | 
			
		
	
		
			
				
					|  |  |  |  |                                 deleteVideo={(admin || item.user_id === user_id) ? this.deleteVideo : undefined} | 
			
		
	
		
			
				
					|  |  |  |  |                                 moveVideo={videoData && videoData.has_category && (operation || item.user_id === user_id) ? ()=>this.moveVideo(item.id):undefined} | 
			
		
	
		
			
				
					|  |  |  |  |                                 moveVideo={videoData && videoData.has_category && flagMove ? ()=>this.moveVideo(item.id,(course_identity > 2 && item.user_id !== user_id)):undefined} | 
			
		
	
		
			
				
					|  |  |  |  |                               > | 
			
		
	
		
			
				
					|  |  |  |  |                               </VideoInReviewItem> | 
			
		
	
		
			
				
					|  |  |  |  |                             ) | 
			
		
	
	
		
			
				
					|  |  |  | 
 |