mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
教师检查的问题
This commit is contained in:
@@ -166,7 +166,7 @@
|
|||||||
if(this.pageId !== this.userInfo.aid) {
|
if(this.pageId !== this.userInfo.aid) {
|
||||||
this.followHas();
|
this.followHas();
|
||||||
}
|
}
|
||||||
this.Teacherprofile();
|
this.teacherProfile();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
}else{
|
}else{
|
||||||
this.tearchUrl ='';
|
this.tearchUrl ='';
|
||||||
}
|
}
|
||||||
|
|
||||||
//通过用户的sysId(原系统中的kid)去取用户
|
//通过用户的sysId(原系统中的kid)去取用户
|
||||||
apiBoeTeahcer.simpleInfo(res.result.sysId).then(sinfo=>{
|
apiBoeTeahcer.simpleInfo(res.result.sysId).then(sinfo=>{
|
||||||
if(sinfo.status=='200'){
|
if(sinfo.status=='200'){
|
||||||
@@ -226,8 +226,8 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
Teacherprofile(){
|
teacherProfile(){ //检查是否是教师
|
||||||
apiTeach.has(this.userInfo.aid).then(res =>{
|
apiTeach.has(this.pageId).then(res =>{
|
||||||
this.teaechswich = res.result.isTeacher;
|
this.teaechswich = res.result.isTeacher;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user