From c406514fc36a4e2155074e84deb57d2be9fb9cab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Sat, 14 Mar 2020 02:30:18 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/signin/student/Signedinlist.js | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/public/react/src/modules/courses/signin/student/Signedinlist.js b/public/react/src/modules/courses/signin/student/Signedinlist.js
index 0606b9c38..f9c3459a6 100644
--- a/public/react/src/modules/courses/signin/student/Signedinlist.js
+++ b/public/react/src/modules/courses/signin/student/Signedinlist.js
@@ -43,7 +43,7 @@ class Signedinlist extends Component {
}
componentDidUpdate(prevProps, prevState) {
if(prevProps.headdata!=this.props.headdata){
- console.log(this.props.headdata)
+
let {attendanceslist}=this.state;
if(this.props.headdata){
let listattendanceslist=attendanceslist;
@@ -124,8 +124,7 @@ class Signedinlist extends Component {
}
getpath=(id)=>{
- let {attendanceslist}=this.state;
- let listattendanceslist=attendanceslist
+ let listattendanceslist=[]
let url=`/weapps/attendances/${this.props&&this.props.switattendance_id}.json`;
axios.get(url).then((response) => {
if(response.data){
@@ -152,7 +151,7 @@ class Signedinlist extends Component {
})
}
this.setState({
- listattendanceslist:attendanceslist,
+ listattendanceslist:listattendanceslist,
data:response.data
})
@@ -199,7 +198,7 @@ class Signedinlist extends Component {
item.attendance_status=attendance_status
}
})
- console.log(newmember_attendances)
+
let url=`/weapps/course_member_attendances/update_status.json`;
@@ -241,6 +240,9 @@ class Signedinlist extends Component {
key: 'user_name',
width:300,
className: "textcenter",
+ render: (text, record) => (
+ {record.user_name===null?"--":record.user_name}
+ )
},
{
title: '学号',
@@ -248,6 +250,9 @@ class Signedinlist extends Component {
key: 'student_id',
width:300,
className: "textcenter",
+ render: (text, record) => (
+ {record.student_id===null?"--":record.student_id}
+ )
},
{
title: '状态',