仅内网可见-管理员端 调试

This commit is contained in:
670788339
2025-07-20 16:15:02 +08:00
parent 206f0e825d
commit 93e769be42

View File

@@ -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=>{