PCqiandao
杨树明 5 years ago
parent e5c77e8c9c
commit c406514fc3

@ -43,7 +43,7 @@ class Signedinlist extends Component {
} }
componentDidUpdate(prevProps, prevState) { componentDidUpdate(prevProps, prevState) {
if(prevProps.headdata!=this.props.headdata){ if(prevProps.headdata!=this.props.headdata){
console.log(this.props.headdata)
let {attendanceslist}=this.state; let {attendanceslist}=this.state;
if(this.props.headdata){ if(this.props.headdata){
let listattendanceslist=attendanceslist; let listattendanceslist=attendanceslist;
@ -124,8 +124,7 @@ class Signedinlist extends Component {
} }
getpath=(id)=>{ getpath=(id)=>{
let {attendanceslist}=this.state; let listattendanceslist=[]
let listattendanceslist=attendanceslist
let url=`/weapps/attendances/${this.props&&this.props.switattendance_id}.json`; let url=`/weapps/attendances/${this.props&&this.props.switattendance_id}.json`;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response.data){ if(response.data){
@ -152,7 +151,7 @@ class Signedinlist extends Component {
}) })
} }
this.setState({ this.setState({
listattendanceslist:attendanceslist, listattendanceslist:listattendanceslist,
data:response.data data:response.data
}) })
@ -199,7 +198,7 @@ class Signedinlist extends Component {
item.attendance_status=attendance_status item.attendance_status=attendance_status
} }
}) })
console.log(newmember_attendances)
let url=`/weapps/course_member_attendances/update_status.json`; let url=`/weapps/course_member_attendances/update_status.json`;
@ -241,6 +240,9 @@ class Signedinlist extends Component {
key: 'user_name', key: 'user_name',
width:300, width:300,
className: "textcenter", className: "textcenter",
render: (text, record) => (
<span>{record.user_name===null?"--":record.user_name}</span>
)
}, },
{ {
title: '学号', title: '学号',
@ -248,6 +250,9 @@ class Signedinlist extends Component {
key: 'student_id', key: 'student_id',
width:300, width:300,
className: "textcenter", className: "textcenter",
render: (text, record) => (
<span>{record.student_id===null?"--":record.student_id}</span>
)
}, },
{ {
title: '状态', title: '状态',

Loading…
Cancel
Save