mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
仅内网可见-管理员端 调试
This commit is contained in:
@@ -531,7 +531,11 @@ export default {
|
|||||||
dlgShow: false
|
dlgShow: false
|
||||||
},
|
},
|
||||||
rightTypeId: {},
|
rightTypeId: {},
|
||||||
catalogSortDialogShow: false
|
catalogSortDialogShow: false,
|
||||||
|
selectedOrg: {
|
||||||
|
orgId: null,
|
||||||
|
name: ''
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -559,10 +563,18 @@ export default {
|
|||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
//需要保存
|
//需要保存
|
||||||
this.requireSaveCourse = true;
|
this.requireSaveCourse = true;
|
||||||
console.log("newVal.orgId = ",newVal.orgId)
|
|
||||||
this.checkOrgPermission(newVal.orgId);
|
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
|
},
|
||||||
|
'selectedOrg.orgId': {
|
||||||
|
handler(newVal, oldVal) {
|
||||||
|
if (newVal !== oldVal) {
|
||||||
|
console.log("--- watch newVal.orgId = ",newVal.orgId)
|
||||||
|
this.checkOrgPermission(newVal.orgId);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: false, // 因为只是监听 orgId,不是整个对象内容变化,所以不需要 deep
|
||||||
|
immediate: false // 如果不需要立即执行,设为 false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user