检查用户的资源归属

This commit is contained in:
daihh
2022-12-01 19:42:50 +08:00
parent 213c040503
commit b9ab725e63

View File

@@ -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='';