From b0e45e98448d5ad4c9d9fc20c1b18d18fd8f86e0 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 9 Sep 2022 18:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=90=8D=E7=A7=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=90=8D=E7=A7=B0=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/auditCourse1.vue | 16 ++++++++++++++++ src/components/Course/auditCourse2.vue | 16 ++++++++++++++++ src/views/course/TeacherList.vue | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/src/components/Course/auditCourse1.vue b/src/components/Course/auditCourse1.vue index a04003ba..62ee3cd4 100644 --- a/src/components/Course/auditCourse1.vue +++ b/src/components/Course/auditCourse1.vue @@ -240,6 +240,7 @@ import weikeContent from "@/components/Course/weikeContent.vue"; import catalogCourseware from "@/components/Course/catalogCourseware.vue"; import apiCourse from "@/api/modules/course.js"; import apiOrg from '../../api/system/organiza.js'; +import apiUser from '../../api/system/user.js'; import scene from "../../api/modules/scene.js"; import exam from "@/components/Course/exam"; import homework from "@/components/Course/homework"; @@ -599,6 +600,21 @@ export default { 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; + } + }) + }else{ + // + } + }) } this.teacherList = rs.result.teachers; this.teacherName = rs.result.teachers; diff --git a/src/components/Course/auditCourse2.vue b/src/components/Course/auditCourse2.vue index 2106abf2..efa3ed9d 100644 --- a/src/components/Course/auditCourse2.vue +++ b/src/components/Course/auditCourse2.vue @@ -267,6 +267,7 @@