Commit 68c12609 authored by 罗超's avatar 罗超

1

parent 7c779d61
...@@ -169,13 +169,14 @@ ...@@ -169,13 +169,14 @@
EduUserId: this.loginId EduUserId: this.loginId
}, (res) => { }, (res) => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.stuList = res.data.data let data = res.data.data
this.stuList.forEach(item=>{ this.stuList=data.map(item=>{
if(item.StuName=='男'){ if(item.StuSex===0){
item.StuId=1 item.StuSex=1
}else if(item.StuName=='女'){ }else if(item.StuSex===1){
item.StuId=2 item.StuSex=2
} }
return item
}) })
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment