mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
仅内网可见-管理员端 调试
This commit is contained in:
@@ -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=>{
|
||||
|
||||
Reference in New Issue
Block a user