From a13b5ac4c8a9482bee974d25e92d22dfaa4547c5 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 28 Jun 2019 11:20:24 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=85=B3=E8=81=94=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/busyWork/CommonWorkList.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index 773fa52fe..b31c70926 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -40,11 +40,15 @@ function getScoreTip(score, dom) { } function buildColumns(that, student_works) { let gotWorkGroup = false; + let gotProjectInfo = false; if (student_works) { student_works.forEach(item => { if (item.work_group) { gotWorkGroup = true } + if (item.project_info && item.project_info.name) { + gotProjectInfo = true; + } }) } let courseId= that.props.match.params.coursesId; @@ -136,6 +140,22 @@ function buildColumns(that, student_works) { ), }) } + if (gotProjectInfo) { + columns.push({ + width: 72, + title: '关联项目', + dataIndex: 'project_info', + key: 'project_info', + + render: (project_info, record) => ( + + {project_info && project_info.name && {project_info.name}} + + ), + }) + } columns = columns.concat([{ width: 88, title: '提交状态', From 8d1ec4a2818043c93da9c7c619bfdc66cca84ed7 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, 28 Jun 2019 13:49:17 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/shixunHomework/CommitSummary.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/shixunHomework/CommitSummary.js b/public/react/src/modules/courses/shixunHomework/CommitSummary.js index 64f975446..926d938eb 100644 --- a/public/react/src/modules/courses/shixunHomework/CommitSummary.js +++ b/public/react/src/modules/courses/shixunHomework/CommitSummary.js @@ -151,7 +151,8 @@ class CommitSummary extends Component{
- - -
- - - -
-
+ + +
+ + + +
+