|
|
|
@ -22,8 +22,10 @@ class PollListItem extends Component{
|
|
|
|
|
const IsAdmin =this.props.isAdmin();
|
|
|
|
|
const isStudent = this.props.isStudent();
|
|
|
|
|
const isNotMember = this.props.isNotMember();
|
|
|
|
|
const isAdminOrStudent = this.props.isAdminOrStudent();
|
|
|
|
|
|
|
|
|
|
let t= item.end_time ? moment(item.end_time) - moment() : 0;
|
|
|
|
|
let canNotLink = !isAdminOrStudent && item.lock_status == 0
|
|
|
|
|
return(
|
|
|
|
|
|
|
|
|
|
<div className="workList_Item polllisthover" style={{padding:"30px"}}>
|
|
|
|
@ -35,7 +37,9 @@ class PollListItem extends Component{
|
|
|
|
|
}
|
|
|
|
|
<div className="flex1 pr">
|
|
|
|
|
<p className="clearfix mb30">
|
|
|
|
|
<Link to={`/courses/${coursesId}/polls/${item.id}/detail`} className="fl font-16 font-bd mt2 color-grey-3 task-hide" style={{"maxWidth":"600px"}} title={item.polls_name}>{item.polls_name}</Link>
|
|
|
|
|
{ canNotLink ? <a className="fl font-16 font-bd mt2 color-grey-3 task-hide" style={{"maxWidth":"600px", "cursor": "default"}} title={item.polls_name}>{item.polls_name}</a> :
|
|
|
|
|
<Link to={`/courses/${coursesId}/polls/${item.id}/detail`} className="fl font-16 font-bd mt2 color-grey-3 task-hide" style={{"maxWidth":"600px"}} title={item.polls_name}>{item.polls_name}</Link>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
item.lock_status === 0 ?
|
|
|
|
|
<Tooltip title={`${courseType.user_permission == 0 ? "私有属性,非课堂成员不能访问" : "私有属性"}`}>
|
|
|
|
|