dev_unstable
hjm 6 years ago
parent daa49f4277
commit aeb3b8b99e

@ -170,6 +170,7 @@ class CommonWorkAppraise extends Component{
let courseId=this.props.match.params.coursesId; let courseId=this.props.match.params.coursesId;
let category_id=this.props.match.params.category_id; let category_id=this.props.match.params.category_id;
let studentWorkId=this.props.match.params.studentWorkId; let studentWorkId=this.props.match.params.studentWorkId;
const isAdmin = this.props.isAdmin()
return( return(
<WorkDetailPageHeader <WorkDetailPageHeader
{...this.props} {...this.state} {...this.props} {...this.state}
@ -269,11 +270,13 @@ class CommonWorkAppraise extends Component{
其他组员 其他组员
{work_members.map((item, index) => { {work_members.map((item, index) => {
return <React.Fragment> return <React.Fragment>
isAdmin ?
<a className={`color-blue ${index == 0 ? '' : 'ml10'}`} href="javascript:void(0)" <a className={`color-blue ${index == 0 ? '' : 'ml10'}`} href="javascript:void(0)"
onClick={() => this.props.toWorkDetailPage(this.props.match.params, null, item.work_id)} onClick={() => this.props.toWorkDetailPage(this.props.match.params, null, item.work_id)}
> >
{item.user_name} {item.user_name}
</a>{item.is_leader && <LeaderIcon small={true} ></LeaderIcon>} </a> : <span className={`${index == 0 ? '' : 'ml10'}`} >{item.user_name}</span>
{item.is_leader && <LeaderIcon small={true} ></LeaderIcon>}
</React.Fragment> </React.Fragment>
})} })}
</div> </div>

Loading…
Cancel
Save