From 67e49b2c2df81105fec077dcfe28c6f6e0e82b06 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Sat, 29 Jun 2019 09:31:16 +0800
Subject: [PATCH 1/4] page 1
---
public/react/src/modules/courses/busyWork/CommonWorkList.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js
index 251e39fcb..8484100f4 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkList.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js
@@ -450,17 +450,17 @@ class CommonWorkList extends Component{
}
teacherCommentOptionChange = (values, isAllChecked) => {
- this.setState({arg_teacher_comment: isAllChecked ? [] : values}, () => {
+ this.setState({arg_teacher_comment: isAllChecked ? [] : values, page: 1}, () => {
this.fetchList()
})
}
statusOptionChange = (values, isAllChecked) => {
- this.setState({arg_work_status: isAllChecked ? [] : values}, () => {
+ this.setState({arg_work_status: isAllChecked ? [] : values, page: 1}, () => {
this.fetchList()
})
}
courseGroupOptionChange = (values, isAllChecked) => {
- this.setState({arg_course_group: isAllChecked ? [] : values}, () => {
+ this.setState({arg_course_group: isAllChecked ? [] : values, page: 1}, () => {
this.fetchList()
})
}
From cc1bc813330bce8a65a0eb8099af272414c40709 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Sat, 29 Jun 2019 09:35:55 +0800
Subject: [PATCH 2/4] 980px
---
public/react/src/modules/courses/busyWork/CommonWorkList.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js
index 8484100f4..4d5676c5a 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkList.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js
@@ -648,7 +648,7 @@ class CommonWorkList extends Component{
- {options_course_group.length > 1 && }
+ {options_course_group.length > 1 && }
{/* value={search} */}
From df193a6c5e230a89859356f0c482d61c06fdc5e0 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Sat, 29 Jun 2019 09:43:52 +0800
Subject: [PATCH 3/4] normal
---
.../src/modules/courses/busyWork/CommonWorkList.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
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') : '--'}
),
}])
From 17c4e3e33c9bae425374a02bf80061dc33063056 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Sat, 29 Jun 2019 10:13:58 +0800
Subject: [PATCH 4/4] isNotMember
---
public/react/src/modules/tpm/TPMIndexHOC.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js
index fff1ce231..5501ef499 100644
--- a/public/react/src/modules/tpm/TPMIndexHOC.js
+++ b/public/react/src/modules/tpm/TPMIndexHOC.js
@@ -216,7 +216,7 @@ export function TPMIndexHOC(WrappedComponent) {
// 非课堂成员
isNotMember = () => {
// return this.state.coursedata&&this.state.coursedata.course_identity >= 0 &&
- return this.state.coursedata&&this.state.coursedata.course_identity === 6
+ return this.state.coursedata&&this.state.coursedata.course_identity >= 6
}
// setTrialapplication = ()=>{