diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 83389e6b..829f6a34 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -559,6 +559,7 @@ export default { handler(newVal) { //需要保存 this.requireSaveCourse = true; + console.log("newVal.orgId = ",newVal.orgId) this.checkOrgPermission(newVal.orgId); }, deep: true @@ -588,11 +589,19 @@ export default { methods: { // 检查机构权限 checkOrgPermission(orgId) { + console.log("--- 监测组织id orgId = ",orgId) + console.log("--- this.isPermission = ",this.isPermission) + console.log("--- device = ",this.courseInfo.device) if (!orgId) { this.isPermission = false; return; } this.isPermission = this.dicts.includes(orgId); + this.courseInfo.device = 3; + if(this.isPermission){ + this.courseInfo.device = 4; + } + console.log("--- 监听结束 this.isPermission = ",this.isPermission) }, // 关键字的更改 changeKeywords(option){ @@ -922,7 +931,8 @@ export default { this.courseTeachers = result.teachers; //课程的老师信息 this.isPermission = result.teachers; //课程的老师信息 this.dicts = result.dicts; //课程的老师信息 - + console.log("--- 编辑查看 this.isPermission = ",this.isPermission) + console.log("--- 编辑查看 this.dicts = ",this.dicts) if(!this.courseInfo.orgId){ //根据课程创建者获取机构id apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{