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);