|
|
|
@ -215,6 +215,7 @@ class Detail extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
renderJournalList=(list)=>{
|
|
|
|
|
console.log(list);
|
|
|
|
|
if(list && list.length >0){
|
|
|
|
|
return(
|
|
|
|
|
list.map((item,key)=>{
|
|
|
|
@ -315,7 +316,7 @@ class Detail extends Component{
|
|
|
|
|
</p>
|
|
|
|
|
<div className="detail_right" style={{display: current_user && (current_user.admin || current_user.login === item.user_login) ? "block" : "none"}}>
|
|
|
|
|
<span onClick={()=>this.editdetail(item.content,item.id)} className="detail_edit_action">编辑</span>
|
|
|
|
|
<Popconfirm placement="bottom" title={'确定要删除当前评论吗'} okText="是" cancelText="否" onConfirm={()=>this.deleteorder(item.id)}>
|
|
|
|
|
<Popconfirm placement="bottom" title={'确定要删除当前评论吗?'} okText="是" cancelText="否" onConfirm={()=>this.deleteorder(item.id)}>
|
|
|
|
|
<span className="detail_edit_action">删除</span>
|
|
|
|
|
</Popconfirm>
|
|
|
|
|
</div>
|
|
|
|
@ -331,7 +332,7 @@ class Detail extends Component{
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
item && item.attachments.length > 0 ?
|
|
|
|
|
item && item.attachments && item.attachments.length > 0 ?
|
|
|
|
|
<Attachments attachments={item.attachments} showNotification={this.props.showNotification} canDelete={current_user && (current_user.admin || current_user.login === item.user_login)}/>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
@ -408,7 +409,7 @@ class Detail extends Component{
|
|
|
|
|
{ data && data.description }
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
data && data.attachments.length > 0 ?
|
|
|
|
|
data && data.attachments && data.attachments.length > 0 ?
|
|
|
|
|
<Attachments attachments={data.attachments} showNotification={this.props.showNotification}/>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|