From 0368239ce85bda906461666612d26eca15b4820f Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 9 Dec 2022 18:49:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=AE=A1=E6=A0=B8=E6=97=B6?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E6=9C=BA=E6=9E=84=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=EF=BC=8C=E4=B9=9F=E9=9C=80=E8=A6=81=E4=BB=8E=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=B3=BB=E7=BB=9F=E6=8E=A5=E5=8F=A3=E4=B8=AD?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E6=A0=B9=E6=8D=AEid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/auditCourse1.vue | 35 ++++++++++++++++++------- src/components/Course/auditCourse2.vue | 36 +++++++++++++++++++------- 2 files changed, 51 insertions(+), 20 deletions(-) diff --git a/src/components/Course/auditCourse1.vue b/src/components/Course/auditCourse1.vue index 7e7bff7d..541157d0 100644 --- a/src/components/Course/auditCourse1.vue +++ b/src/components/Course/auditCourse1.vue @@ -253,6 +253,7 @@ import apiCourseFile from '@/api/modules/courseFile.js'; import filecloud from '@/components/FileCloud/index.vue'; import { mapGetters, mapActions } from "vuex"; import chooseOrg from '@/components/System/chooseOrg.vue'; +import apiUserBasic from '../../api/boe/userbasic.js'; // import hyperLink from '@/components/Course/hyperLink.vue'; export default { name: "auditCourse1", @@ -594,23 +595,37 @@ 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; + apiUserBasic.getOrgInfo(this.courseInfo.orgId).then(rrs=>{ + if(rs.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; + // } + // }) }else{ //根据课程创建者获取机构id apiUser.getOrgSimpleByUserId(this.courseInfo.sysCreateAid).then(ors=>{ if(ors.status==200){ $this.courseInfo.orgId=ors.result.id; - apiOrg.getSimple(ors.result.id).then(rrs=>{ - if(rrs.status==200){ - $this.orgName=rrs.result.name; - $this.orgKid=rrs.result.kid; + apiUserBasic.getOrgInfo(ors.result.id).then(rrs=>{ + if(rs.status==200){ + $this.orgName=rrs.result.name; + //this.orgKid=rrs.result.kid; + //$this.orgNamePath=rrs.result.namePath; } - }) + }); + // apiOrg.getSimple(ors.result.id).then(rrs=>{ + // if(rrs.status==200){ + // $this.orgName=rrs.result.name; + // $this.orgKid=rrs.result.kid; + // } + // }) }else{ // } diff --git a/src/components/Course/auditCourse2.vue b/src/components/Course/auditCourse2.vue index caff77d9..6b65ee7e 100644 --- a/src/components/Course/auditCourse2.vue +++ b/src/components/Course/auditCourse2.vue @@ -292,6 +292,7 @@ import { mapGetters,mapActions} from 'vuex'; import hyperLink from '@/components/Course/hyperLink.vue'; import apiCourseFile from '../../api/modules/courseFile.js'; import filecloud from '@/components/FileCloud/index.vue'; +import apiUserBasic from '../../api/boe/userbasic.js'; export default { name:"auditCourse2", components: { @@ -634,23 +635,38 @@ 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; + apiUserBasic.getOrgInfo(this.courseInfo.orgId).then(rrs=>{ + if(rs.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; + // } + // }) }else{ //根据课程创建者获取机构id apiUser.getOrgSimpleByUserId(this.courseInfo.sysCreateAid).then(ors=>{ if(ors.status==200){ $this.courseInfo.orgId=ors.result.id; - apiOrg.getSimple(ors.result.id).then(rrs=>{ - if(rrs.status==200){ - $this.orgName=rrs.result.name; - $this.orgKid=rrs.result.kid; + + apiUserBasic.getOrgInfo(ors.result.id).then(rrs=>{ + if(rs.status==200){ + $this.orgName=rrs.result.name; + //this.orgKid=rrs.result.kid; + //$this.orgNamePath=rrs.result.namePath; } - }) + }); + // apiOrg.getSimple(ors.result.id).then(rrs=>{ + // if(rrs.status==200){ + // $this.orgName=rrs.result.name; + // $this.orgKid=rrs.result.kid; + // } + // }) }else{ // }