From b9ab725e6398f05609d4c113daf4482cf4f40ae5 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 1 Dec 2022 19:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=94=A8=E6=88=B7=E7=9A=84?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=BD=92=E5=B1=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index fe171574..45f9af8f 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -718,13 +718,20 @@ export default { } this.orgKid=''; if(this.courseInfo.orgId){ - 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; + // } + // }); + 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 { @@ -831,10 +838,10 @@ export default { apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{ if(ors.status==200){ $this.courseInfo.orgId=ors.result.id; - apiOrg.getSimple(ors.result.id).then(rrs=>{ + apiUserBasic.getOrgInfo(ors.result.id).then(rrs=>{ if(rrs.status==200){ $this.orgName=rrs.result.name; - $this.orgKid=rrs.result.kid; + //$this.orgKid=rrs.result.kid; $this.orgNamePath=rrs.result.namePath; }else{ this.courseInfo.orgId='';