diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 33f63445..fe171574 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -847,16 +847,26 @@ export default { }) }else{ - apiOrg.getSimple(this.courseInfo.orgId).then(rrs=>{ - if(rrs.status==200){ - $this.orgName=rrs.result.name; - $this.orgKid=rrs.result.kid; - $this.orgNamePath=rrs.result.namePath; + // apiOrg.getSimple(this.courseInfo.orgId).then(rrs=>{ + // if(rrs.status==200){ + // $this.orgName=rrs.result.name; + // $this.orgKid=rrs.result.kid; + // $this.orgNamePath=rrs.result.namePath; + // }else{ + // $this.courseInfo.orgId=''; + // $this.$message.error('资源归属已变更,请重新选择'); + // } + // }); + 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{ - $this.courseInfo.orgId=''; - $this.$message.error('资源归属已变更,请重新选择'); + $this.courseInfo.orgId=''; + $this.$message.error('资源归属已变更,请重新选择'); } - }) + }); } this.resOwnerArray=[];