|
|
|
@ -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) => (
|
|
|
|
|
<span>{record.user_name===null?"--":record.user_name}</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学号',
|
|
|
|
@ -248,6 +250,9 @@ class Signedinlist extends Component {
|
|
|
|
|
key: 'student_id',
|
|
|
|
|
width:300,
|
|
|
|
|
className: "textcenter",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>{record.student_id===null?"--":record.student_id}</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|