mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
检查用户的资源归属
This commit is contained in:
@@ -718,13 +718,20 @@ export default {
|
|||||||
}
|
}
|
||||||
this.orgKid='';
|
this.orgKid='';
|
||||||
if(this.courseInfo.orgId){
|
if(this.courseInfo.orgId){
|
||||||
apiOrg.getSimple(this.courseInfo.orgId).then(rrs=>{
|
// apiOrg.getSimple(this.courseInfo.orgId).then(rrs=>{
|
||||||
if(rrs.status==200){
|
// if(rrs.status==200){
|
||||||
this.orgName=rrs.result.name;
|
// this.orgName=rrs.result.name;
|
||||||
this.orgKid=rrs.result.kid;
|
// this.orgKid=rrs.result.kid;
|
||||||
this.orgNamePath=rrs.result.namePath;
|
// this.orgNamePath=rrs.result.namePath;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
apiUserBasic.getOrgInfo(this.courseInfo.orgId).then(rs=>{
|
||||||
|
if(rs.status==200){
|
||||||
|
this.orgName=rs.result.name;
|
||||||
|
//this.orgKid=rs.result.kid;
|
||||||
|
this.orgNamePath=rs.result.namePath;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -831,10 +838,10 @@ export default {
|
|||||||
apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{
|
apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{
|
||||||
if(ors.status==200){
|
if(ors.status==200){
|
||||||
$this.courseInfo.orgId=ors.result.id;
|
$this.courseInfo.orgId=ors.result.id;
|
||||||
apiOrg.getSimple(ors.result.id).then(rrs=>{
|
apiUserBasic.getOrgInfo(ors.result.id).then(rrs=>{
|
||||||
if(rrs.status==200){
|
if(rrs.status==200){
|
||||||
$this.orgName=rrs.result.name;
|
$this.orgName=rrs.result.name;
|
||||||
$this.orgKid=rrs.result.kid;
|
//$this.orgKid=rrs.result.kid;
|
||||||
$this.orgNamePath=rrs.result.namePath;
|
$this.orgNamePath=rrs.result.namePath;
|
||||||
}else{
|
}else{
|
||||||
this.courseInfo.orgId='';
|
this.courseInfo.orgId='';
|
||||||
|
|||||||
Reference in New Issue
Block a user