From 93e769be4210b35569d80160fe5366243e4e6763 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Sun, 20 Jul 2025 16:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85=E5=86=85=E7=BD=91=E5=8F=AF=E8=A7=81-?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E7=AB=AF=20=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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=>{