|
|
|
@ -35,15 +35,13 @@ class PollListItem extends Component{
|
|
|
|
|
}
|
|
|
|
|
<div className="flex1 pr">
|
|
|
|
|
<p className="clearfix mb30">
|
|
|
|
|
{
|
|
|
|
|
//非课堂成员(未登录的用户)且课堂未公开
|
|
|
|
|
courseType && courseType.user_permission == 0 && item.lock_status == 0 ?
|
|
|
|
|
<a className="fl font-16 font-bd mt2 color-grey-3 task-hide" style={{"maxWidth":"600px"}} 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 ? "私有属性,非课堂成员不能访问" : "私有属性"}`}><i className="iconfont icon-guansuo color-grey-c ml10 font-16 fl"></i></Tooltip>:""
|
|
|
|
|
item.lock_status === 0 ?
|
|
|
|
|
<Tooltip title={`${courseType.user_permission == 0 ? "私有属性,非课堂成员不能访问" : "私有属性"}`}>
|
|
|
|
|
<i className="iconfont icon-guansuo color-grey-c ml10 font-16 fl"></i>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
<CoursesListType typelist={[polls_status[`${item.polls_status}`]]} typesylename={""}></CoursesListType>
|
|
|
|
|
{
|
|
|
|
|