mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal
This commit is contained in:
@@ -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(){ //检查是否是教师
|
||||
|
||||
Reference in New Issue
Block a user