mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 20:36:43 +08:00
仅内网可见-管理员端 调试
This commit is contained in:
@@ -559,6 +559,7 @@ export default {
|
|||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
//需要保存
|
//需要保存
|
||||||
this.requireSaveCourse = true;
|
this.requireSaveCourse = true;
|
||||||
|
console.log("newVal.orgId = ",newVal.orgId)
|
||||||
this.checkOrgPermission(newVal.orgId);
|
this.checkOrgPermission(newVal.orgId);
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
@@ -588,11 +589,19 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 检查机构权限
|
// 检查机构权限
|
||||||
checkOrgPermission(orgId) {
|
checkOrgPermission(orgId) {
|
||||||
|
console.log("--- 监测组织id orgId = ",orgId)
|
||||||
|
console.log("--- this.isPermission = ",this.isPermission)
|
||||||
|
console.log("--- device = ",this.courseInfo.device)
|
||||||
if (!orgId) {
|
if (!orgId) {
|
||||||
this.isPermission = false;
|
this.isPermission = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.isPermission = this.dicts.includes(orgId);
|
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){
|
changeKeywords(option){
|
||||||
@@ -922,7 +931,8 @@ export default {
|
|||||||
this.courseTeachers = result.teachers; //课程的老师信息
|
this.courseTeachers = result.teachers; //课程的老师信息
|
||||||
this.isPermission = result.teachers; //课程的老师信息
|
this.isPermission = result.teachers; //课程的老师信息
|
||||||
this.dicts = result.dicts; //课程的老师信息
|
this.dicts = result.dicts; //课程的老师信息
|
||||||
|
console.log("--- 编辑查看 this.isPermission = ",this.isPermission)
|
||||||
|
console.log("--- 编辑查看 this.dicts = ",this.dicts)
|
||||||
if(!this.courseInfo.orgId){
|
if(!this.courseInfo.orgId){
|
||||||
//根据课程创建者获取机构id
|
//根据课程创建者获取机构id
|
||||||
apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{
|
apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user