|
|
|
@ -46,9 +46,9 @@ class CCommentItem extends Component{
|
|
|
|
|
let { item, commentIndex }=this.props;
|
|
|
|
|
|
|
|
|
|
const url = `/student_works/${studentWorkId}/cancel_appeal.json`
|
|
|
|
|
axios.post(url, { data: {
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
score_id: item.id
|
|
|
|
|
}})
|
|
|
|
|
})
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
|
this.showNotification('撤销成功')
|
|
|
|
@ -262,9 +262,21 @@ class CCommentItem extends Component{
|
|
|
|
|
return(
|
|
|
|
|
<div className="ccomment comment_item_cont df clearfix" key={item.id}>
|
|
|
|
|
<div className="J_Comment_Face fl">
|
|
|
|
|
<a href={`${_origin}/users/${item.user_login}`} target="_blank">
|
|
|
|
|
|
|
|
|
|
{item.image_url == '--' ?
|
|
|
|
|
<a href={`javascript:void(0)`} >
|
|
|
|
|
<img alt="用户头像" height="50"
|
|
|
|
|
src={`${getUrl()}/images/edu_user/anony.png`} width="50"/>
|
|
|
|
|
</a>
|
|
|
|
|
: <a href={`${_origin}/users/${item.user_login}`} target="_blank">
|
|
|
|
|
<img alt="用户头像" height="50"
|
|
|
|
|
src={`${getUrl()}/images/${item.image_url}`}
|
|
|
|
|
width="50"/>
|
|
|
|
|
</a>}
|
|
|
|
|
|
|
|
|
|
{/* <a href={`${_origin}/users/${item.user_login}`} target="_blank">
|
|
|
|
|
<img alt="用户头像" height="50" src={getImageUrl(`images/${item.image_url}`)} width="50"/>
|
|
|
|
|
</a>
|
|
|
|
|
</a> */}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="t_content fl">
|
|
|
|
|