dev_forum
杨树林 6 years ago
parent 2f86950a9e
commit 7e8f219be5

@ -175,7 +175,7 @@ class Listofworks extends Component {
"color": '#747A7F', "color": '#747A7F',
"text-align": "center" "text-align": "center"
} }
}>{record.cost_time} }>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time }
</span> </span>
) )
@ -442,13 +442,12 @@ class Listofworks extends Component {
align: 'center', align: 'center',
className:'font-14', className:'font-14',
render: (text, record) => ( render: (text, record) => (
<span style={ <span style={
{ {
"color": '#747A7F', "color": '#747A7F',
"text-align": "center" "text-align": "center"
} }
}>{record.cost_time} }>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time }
</span> </span>
) )

@ -187,6 +187,23 @@ class Listofworksstudentone extends Component {
</span> </span>
), ),
}, },
{
title: '实战耗时',
dataIndex: 'cost_time',
key: 'cost_time',
align: 'center',
className:'font-14',
render: (text, record) => (
<span style={
{
"color": '#747A7F',
"text-align": "center"
}
}>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time }
</span>
)
},
{ {
title: '更新时间', title: '更新时间',
dataIndex: 'updatetime', dataIndex: 'updatetime',
@ -499,6 +516,7 @@ class Listofworksstudentone extends Component {
name: teacherdata.user_name, name: teacherdata.user_name,
stduynumber: teacherdata.student_id, stduynumber: teacherdata.student_id,
classroom: teacherdata.group_name, classroom: teacherdata.group_name,
cost_time: teacherdata.cost_time,
submitstate: teacherdata.work_status === 0 ? "未提交" : teacherdata.work_status === 1 ? "按时提交" : teacherdata.work_status === 2 ? "延时提交" : "未提交", submitstate: teacherdata.work_status === 0 ? "未提交" : teacherdata.work_status === 1 ? "按时提交" : teacherdata.work_status === 2 ? "延时提交" : "未提交",
// updatetime:this.state.teacherdata.student_works[i].update_time, // updatetime:this.state.teacherdata.student_works[i].update_time,
// updatetime:"", // updatetime:"",
@ -542,6 +560,7 @@ class Listofworksstudentone extends Component {
name: student_works[i].user_name, name: student_works[i].user_name,
stduynumber: student_works[i].student_id, stduynumber: student_works[i].student_id,
classroom: student_works[i].group_name, 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 ? "延时提交" : "未提交", 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:this.state.teacherdata.student_works[i].update_time,
// updatetime:"", // updatetime:"",
@ -619,6 +638,7 @@ class Listofworksstudentone extends Component {
name: teacherdata.user_name, name: teacherdata.user_name,
stduynumber: teacherdata.student_id, stduynumber: teacherdata.student_id,
classroom: teacherdata.group_name, classroom: teacherdata.group_name,
cost_time: teacherdata.cost_time,
submitstate: teacherdata.work_status === 0 ? "未提交" : teacherdata.work_status === 1 ? "按时提交" : teacherdata.work_status === 2 ? "延时提交" : "未提交", submitstate: teacherdata.work_status === 0 ? "未提交" : teacherdata.work_status === 1 ? "按时提交" : teacherdata.work_status === 2 ? "延时提交" : "未提交",
// updatetime:this.state.teacherdata.student_works[i].update_time, // updatetime:this.state.teacherdata.student_works[i].update_time,
// updatetime:"", // updatetime:"",

Loading…
Cancel
Save