From de529c0dadc10fde65c3f5da25bab94ef2be0920 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 27 Jun 2019 13:48:46 +0800 Subject: [PATCH 1/3] is_evaluation --- public/react/src/modules/courses/busyWork/CommonWorkList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index 2243310a2..8de294118 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -234,7 +234,7 @@ function buildColumns(that, student_works) { + that.state.is_evaluation ? `你的评阅分数:${record.student_score}分` :
{record.student_comment_count &&
{`${record.student_comment_count}名学生进行了匿评`}
}
有效平均分:{record.student_score}分
@@ -334,7 +334,7 @@ const orderMap = { work_score: 'asc', student_id: 'asc', } -const PAGE_SIZE = 50 +const PAGE_SIZE = 20 // 类似页面 http://localhost:3007/courses/1309/graduation/graduation_tasks/48/76/setting class CommonWorkList extends Component{ From cf9082cd877fececf647fefb2b6b1d16431b4765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 27 Jun 2019 14:20:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/graduation/tasks/GraduationTasksappraiseReply.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js index 0f98f4d8f..07b2909b3 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js @@ -153,11 +153,12 @@ class GraduationTasksappraiseReply extends Component{ const { current_user, memo } = this.props const isAdmin = this.props.isAdmin(); const isStudent=this.props.isStudent(); + const isNotMember=this.props.isNotMember(); return( - {comment_scores.length===0? "":
+ {comment_scores.length===0&&isStudent===true||comment_scores.length===0&&isNotMember===true? "":
{isStudent===true? Date: Thu, 27 Jun 2019 14:20:57 +0800 Subject: [PATCH 3/3] timeMsg --- .../modules/courses/busyWork/CommonWorkList.js | 15 ++++++++++++++- .../src/modules/page/component/UpdateDrawer.js | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index 8de294118..34c2d6154 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -564,6 +564,19 @@ class CommonWorkList extends Component{ } }) + // time_status int 时间对应的状态: 0:未发布,1:提交中,2:补交中,3:匿评中,4:申诉中,5:评阅中,6:已结束 + + let timeMsg = '提交剩余时间' + if (time_status === 1) { + + } else if (time_status === 2) { + timeMsg = '补交剩余时间' + } else if (time_status === 3) { + timeMsg = '匿评剩余时间' + } else if (time_status === 4) { + timeMsg = '申诉剩余时间' + } + // console.log(StudentData) // console.log(student_works) return( @@ -638,7 +651,7 @@ class CommonWorkList extends Component{ (!!commit_count || !!uncommit_count) && {commit_count}已交 {uncommit_count}未交  - {time_status===5?"":"剩余提交时间"} + {timeMsg || ''} {left_time.time} } diff --git a/public/react/src/modules/page/component/UpdateDrawer.js b/public/react/src/modules/page/component/UpdateDrawer.js index 5a0f2db5d..b39445d9a 100644 --- a/public/react/src/modules/page/component/UpdateDrawer.js +++ b/public/react/src/modules/page/component/UpdateDrawer.js @@ -198,7 +198,7 @@ class UpdateDrawer extends Component { }
- + { needUpdateScript ?