From 94e559fd5736136cf0d457db89b4df117a46f1a3 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 8 Sep 2022 17:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=8E=A7=E5=88=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 40 +++++++++++++++++++--------- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 06f7a81a..05105de1 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -666,6 +666,19 @@ export default { this.courseInfo.orgId=this.userInfo.departId; + if(!this.courseInfo.orgId){ + this.courseInfo.orgId=this.userInfo.departId; + } + 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; + } + }) + } + } else { //console.log(editData,'editData'); this.weikeReset = editData.id; @@ -683,18 +696,7 @@ export default { this.biaoke.dlgShow = true; } } - if(!this.courseInfo.orgId){ - this.courseInfo.orgId=this.userInfo.departId; - } - 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; - } - }) - } + }, resetCurCourseContent() { this.curContent = { id: '', contentType: 0, contentName: '', content: '', csectionId: '', contentName: '', contentRefId: '', courseId: this.courseInfo.id }; @@ -775,6 +777,20 @@ export default { this.contentInfo.list = result.contents; this.sectionInfo.list = result.sections; this.courseTeachers = result.teachers; //课程的老师信息 + + if(!this.courseInfo.orgId){ + this.courseInfo.orgId=this.userInfo.departId; + } + //$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.resOwnerArray=[]; if (result.course.resOwner1 == '') { this.resOwnerArray.push(result.course.resOwner1);