From 7e8f219be5ed652d1ace2bc6605e0aeb3c8e2cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 17 Jul 2019 17:54:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/shixunHomework/Listofworks.js | 5 ++--- .../shixunHomework/Listofworksstudentone.js | 22 ++++++++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index d5956122c..7280b0b39 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -175,7 +175,7 @@ class Listofworks extends Component { "color": '#747A7F', "text-align": "center" } - }>{record.cost_time} + }>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time } ) @@ -442,13 +442,12 @@ class Listofworks extends Component { align: 'center', className:'font-14', render: (text, record) => ( - {record.cost_time} + }>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time } ) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 1fa89ee74..a506ce064 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -187,6 +187,23 @@ class Listofworksstudentone extends Component { ), }, + { + title: '实战耗时', + dataIndex: 'cost_time', + key: 'cost_time', + align: 'center', + className:'font-14', + render: (text, record) => ( + {record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time } + + ) + + }, { title: '更新时间', dataIndex: 'updatetime', @@ -499,6 +516,7 @@ class Listofworksstudentone extends Component { name: teacherdata.user_name, stduynumber: teacherdata.student_id, classroom: teacherdata.group_name, + cost_time: teacherdata.cost_time, submitstate: teacherdata.work_status === 0 ? "未提交" : teacherdata.work_status === 1 ? "按时提交" : teacherdata.work_status === 2 ? "延时提交" : "未提交", // updatetime:this.state.teacherdata.student_works[i].update_time, // updatetime:"", @@ -542,6 +560,7 @@ class Listofworksstudentone extends Component { name: student_works[i].user_name, stduynumber: student_works[i].student_id, classroom: student_works[i].group_name, + cost_time: student_works[i].cost_time, submitstate: student_works[i].work_status === 0 ? "未提交" : student_works[i].work_status === 1 ? "按时提交" : student_works[i].work_status === 2 ? "延时提交" : "未提交", // updatetime:this.state.teacherdata.student_works[i].update_time, // updatetime:"", @@ -619,6 +638,7 @@ class Listofworksstudentone extends Component { name: teacherdata.user_name, stduynumber: teacherdata.student_id, classroom: teacherdata.group_name, + cost_time: teacherdata.cost_time, submitstate: teacherdata.work_status === 0 ? "未提交" : teacherdata.work_status === 1 ? "按时提交" : teacherdata.work_status === 2 ? "延时提交" : "未提交", // updatetime:this.state.teacherdata.student_works[i].update_time, // updatetime:"", @@ -1033,7 +1053,7 @@ class Listofworksstudentone extends Component { /> : "" }
- +