|
|
|
@ -216,10 +216,13 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
isdeleteModal=(comment_id,visible_comment,type)=>{
|
|
|
|
|
let newcomment_id=comment_id;
|
|
|
|
|
let newvisible_comment=visible_comment;
|
|
|
|
|
let newtype=type;
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsType: true,
|
|
|
|
|
modalsTopval:"是否确认删除?",
|
|
|
|
|
modalSave: ()=>this.isdeleteModals(comment_id,visible_comment,type),
|
|
|
|
|
modalSave: ()=>this.isdeleteModals(newcomment_id,newvisible_comment,newtype),
|
|
|
|
|
modalCancel:()=>this.hideisdeleteModals(),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -278,7 +281,7 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
let newcomment_id=comment_id;
|
|
|
|
|
let newvisible_comment=visible_comment;
|
|
|
|
|
let newtype=type;
|
|
|
|
|
|
|
|
|
|
if(comment_id!=null){
|
|
|
|
|
let url =`/student_works/${this.props.match.params.homeworkid}/destroy_work_comment.json`
|
|
|
|
|
axios.delete(url, { data: {
|
|
|
|
|
comment_id:comment_id,
|
|
|
|
@ -295,6 +298,8 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let{data,showAppraiseModaltype,work_comment_hidden,work_comment} =this.state;
|
|
|
|
|
|
|
|
|
|