From 4b0cc37380d7613585026afa6e5931001942d1c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 8 Nov 2019 17:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=9E=E8=AE=AD=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E8=AF=84=E9=98=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shixunHomework/ShixunWorkReport.js | 134 ++++++++++-------- 1 file changed, 71 insertions(+), 63 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js index 737ed4c00..a6302de6d 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js @@ -37,6 +37,7 @@ class ShixunWorkReport extends Component { showAppraiseModaltype:false, work_comment_hidden:undefined, work_comment:undefined, + has_commit: false, } } @@ -111,7 +112,8 @@ class ShixunWorkReport extends Component { data:result.data, work_comment_hidden:result.data.work_comment_hidden, work_comment:result.data.work_comment, - spinning:false + spinning: false, + has_commit: result.data.has_commit }) } @@ -303,7 +305,7 @@ class ShixunWorkReport extends Component { } render() { - let{data,showAppraiseModaltype,work_comment_hidden,work_comment} =this.state; + let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit} = this.state; let category_id=data===undefined?"":data.category===null?"":data.category.category_id; let homework_common_id=data===undefined?"":data.homework_common_id; @@ -557,22 +559,24 @@ class ShixunWorkReport extends Component { showAppraiseModal={(type,id,show,hidden)=>this.showAppraiseModal(type,id,show,hidden)} /> + { + has_commit === false ? "" : +
+
+
+
图形统计
+ +
+
-
-
-
图形统计
- -
-
- -
+
-
-
实训详情
- - { - data&&data.shixun_detail===undefined?"":data.shixun_detail.map((item,key)=>{ - return( -
-
-

+ + { + data && data.shixun_detail === undefined ? "" : data.shixun_detail.map((item, key) => { + return ( +

+
+

- + 第{item.position}关 {item.subject} -

- -
- - {item.st===0?item.passed_code===null?"":
-
-

- 最近通过的代码 - {item.path} -

- -
-
  • - + -
  • +
    + + {item.st === 0 ? item.passed_code === null ? "" : +
    +
    +

    + 最近通过的代码 + {item.path} +

    + +
    +
  • + +
  • +
    +
    +
    : ""}
    -
    -
    :""} -
    - ) - }) - } -
    -
    + ) + }) + } +
    +
    +
    + } +