Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal

This commit is contained in:
dongruihua
2023-01-18 19:32:31 +08:00
6 changed files with 127 additions and 42 deletions

View File

@@ -191,7 +191,8 @@
}else{
this.tearchUrl ='';
}
this.teachtext.expertise = res.result.expertise.split( ',' );
this.convertExpertise(this.teachtext.expertise);
//通过用户的sysId原系统中的kid去取用户
apiBoeTeahcer.simpleInfo(res.result.sysId).then(sinfo=>{
if(sinfo.status=='200'){
@@ -205,25 +206,46 @@
this.teachtext.photo = sinfo.result.photo;
this.tearchUrl = this.fileBaseUrl + sinfo.result.photo;
}
if(!res.result.expertise && sinfo.result.expertise){
this.teachtext.expertise = sinfo.result.expertise.split( ',' );
this.convertExpertise(this.teachtext.expertise);
}
}
})
this.teachtext.expertise = res.result.expertise.split( ',' );
// this.teachtext.expertise = res.result.expertise.split( ',' );
// this.convertExpertise(this.teachtext.expertise);
//console.log(this.teachtext,"this.teachtext");
this.childData=[];
this.sysTypeListtear.forEach(nm =>{
nm.children.forEach(lk =>{
this.childData.push(lk);
})
});
this.teachtext.expertise.forEach(item =>{
this.childData.forEach(it =>{
if(item == it.id){
//console.log(item)
this.workname.push(it.name);
}
})
})
// this.childData=[];
// this.sysTypeListtear.forEach(nm =>{
// nm.children.forEach(lk =>{
// this.childData.push(lk);
// })
// });
// this.teachtext.expertise.forEach(item =>{
// this.childData.forEach(it =>{
// if(item == it.id){
// //console.log(item)
// this.workname.push(it.name);
// }
// })
// })
})
},
convertExpertise(expertises){
this.childData=[];
this.sysTypeListtear.forEach(nm =>{
nm.children.forEach(lk =>{
this.childData.push(lk);
})
});
expertises.forEach(item =>{
this.childData.forEach(it =>{
if(item == it.id){
//console.log(item)
this.workname.push(it.name);
}
})
})
},
teacherProfile(){ //检查是否是教师