diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index 4d5676c5a..46d06e300 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -31,7 +31,7 @@ function renderScore(score, content) { } else if (score >= 60) { color = '#FF6800' } - return + return {score == null || score == undefined || score == '--' ? '--': (content || score)} } @@ -105,7 +105,7 @@ function buildColumns(that, student_works) { {record.student_id} ), @@ -121,7 +121,7 @@ function buildColumns(that, student_works) { render: (text, record) => ( - {record.group_name} + {record.group_name} ), } ) @@ -177,7 +177,7 @@ function buildColumns(that, student_works) { } return ( - + {status === 0 ? "未提交" : status === 1 ? "按时提交" : status === 2 ? "延时提交" : ""} @@ -190,7 +190,7 @@ function buildColumns(that, student_works) { render: (update_time, record) => ( - {update_time ? moment(update_time).format('YYYY-MM-DD HH:mm') : '--'} + {update_time ? moment(update_time).format('YYYY-MM-DD HH:mm') : '--'} ), }])