From 213c0405035f1e4947f1f79fc94e12f8be1a5d13 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 1 Dec 2022 16:47:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E9=80=89=E6=8B=A9=E7=9A=84?= =?UTF-8?q?=E8=BF=94=E5=90=91=E6=A3=80=E6=9F=A5=E6=94=B9=E6=88=90=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) 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=[];