|
|
@ -164,13 +164,14 @@ class CommonWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
<div className="flex1" onClick={() => this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }>
|
|
|
|
<div className="flex1" onClick={() => this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }>
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<Tooltip title={ canNotLink ? "私有属性,非课堂成员不能访问" : item.name} placement="bottom" >
|
|
|
|
{canNotLink?<span className={"fl font-16 font-bd mt2 comnonwidth580 pointer color-grey-name"}
|
|
|
|
{canNotLink?<span className={"fl font-16 font-bd mt2 comnonwidth580 pointer color-grey-name"}>
|
|
|
|
title={ canNotLink ? "私有属性,非课堂成员不能访问" : item.name}
|
|
|
|
|
|
|
|
>
|
|
|
|
{item.name}
|
|
|
|
{item.name}
|
|
|
|
</span>:<a className={"fl font-16 font-bd mt2 comnonwidth580 pointer"}
|
|
|
|
</span>:<a className={"fl font-16 font-bd mt2 comnonwidth580 pointer"}
|
|
|
|
onClick={ canNotLink ? () => {} : () => this.onItemClick(item)}
|
|
|
|
onClick={ canNotLink ? () => {} : () => this.onItemClick(item)}
|
|
|
|
|
|
|
|
title={item.name}
|
|
|
|
>{item.name}</a>}
|
|
|
|
>{item.name}</a>}
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
{/* 只有非课堂成员且作业是私有的情况下才会为true */}
|
|
|
|
{/* 只有非课堂成员且作业是私有的情况下才会为true */}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.private_icon===true ?
|
|
|
|
item.private_icon===true ?
|
|
|
|