diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js index 5e4842574..959ba9244 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js @@ -38,6 +38,7 @@ class ShixunWorkReport extends Component { work_comment_hidden:undefined, work_comment:undefined, has_commit: false, + shixun_detail:[] } } @@ -113,7 +114,8 @@ class ShixunWorkReport extends Component { work_comment_hidden:result.data.work_comment_hidden, work_comment:result.data.work_comment, spinning: false, - has_commit: result.data.has_commit + has_commit: result.data.has_commit, + shixun_detail:result.data.shixun_detail }) } @@ -305,7 +307,7 @@ class ShixunWorkReport extends Component { } render() { - let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit} = this.state; + let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit,shixun_detail} = this.state; let category_id=data===undefined?"":data.category===null?"":data.category.category_id; let homework_common_id=data===undefined?"":data.homework_common_id; @@ -454,7 +456,20 @@ class ShixunWorkReport extends Component {
-
总体评价
+
+
总体评价
+
+ { + shixun_detail&&shixun_detail.map((item,key)=>{ + if(key===0){ + return( + 查看学员实训 + ) + } + }) + } +
+