diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 37c3cc7e..f01b1bb1 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -824,7 +824,7 @@ export default { if(result.course.sysType3!='' && result.course.sysType3!='0'){ this.sysTypeList.push(result.course.sysType3); } - console.log(this.sysTypeList,'this.sysTypeList'); + //console.log(this.sysTypeList,'this.sysTypeList'); //受众处理,crowds let crowdList=[]; if(result.crowds && result.crowds.length>0){ @@ -1099,12 +1099,16 @@ export default { }); }, submitCourse() { - console.log(this.courseInfo.orgId,'this.courseInfo.orgId'); - console.log(this.orgKid,'this.orgKid'); - if(!this.courseInfo.orgId || !this.orgKid){ + //console.log(this.courseInfo.orgId,'this.courseInfo.orgId'); + //console.log(this.orgKid,'this.orgKid'); + if(!this.courseInfo.orgId){ this.$message.error('请选择资源归属'); return; } + if(!this.orgKid){ + this.$message.error('资源归属无关联HRBP信息'); + return; + } //console.log(this.resOwnerListMap[0],'this.resOwnerListMap[0]'); //return; let ownerCode=this.resOwnerListMap[0].code; diff --git a/src/components/UcHeader/Index.vue b/src/components/UcHeader/Index.vue index 427234b6..ac17d698 100644 --- a/src/components/UcHeader/Index.vue +++ b/src/components/UcHeader/Index.vue @@ -79,11 +79,17 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js"; } }, mounted() { - this.sex = this.userInfo.sex; - // 判断路由是进入的学员默认页面就重置setCurIdentity - if(this.$route.path == '/uc/study/task' || this.$route.path == '/study/index'){ - this.setCurIdentity(1); + this.sex = this.userInfo.sex; + let iden=this.$route.query.identity; + if(iden){ + this.setCurIdentity(parseInt(iden)); + }else{ + // 判断路由是进入的学员默认页面就重置setCurIdentity + if(this.$route.path == '/uc/study/task' || this.$route.path == '/study/index'){ + this.setCurIdentity(1); + } } + //let testName='京东方科技集团股份有限公司/北京中祥英科技有限公司/技术中心'; //this.orgInfo=cutFullName(testName,1); this.orgInfo=cutFullName(this.userInfo.departFullName,1);