项目选择课程调整

This commit is contained in:
Yjhon 2022-02-11 14:55:04 +08:00
parent a59e89aa0f
commit c7db9784a2
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ export default {
menuKey: ['sys'], // menuKey: ['sys'], //
// //
queryParam: { name: '', classType: 0 ,type: 0}, queryParam: { name: '', classType: 1 ,type: 1},
replaceFields: { children: 'children', title: 'name', key: 'value', value: 'id' }, replaceFields: { children: 'children', title: 'name', key: 'value', value: 'id' },
expandedKeys: [], expandedKeys: [],
autoExpandParent: true, autoExpandParent: true,
@ -107,9 +107,9 @@ export default {
// //
menuChack(){ menuChack(){
console.log('menuKey',this.menuKey) console.log('menuKey',this.menuKey)
let type = 1; let type = 2;
console.log('菜单改变',this.menuKey[0]) console.log('菜单改变',this.menuKey[0])
if(this.menuKey[0] === 'self') type = 2; if(this.menuKey[0] === 'self') type = 1;
this.queryParam.type = type this.queryParam.type = type
this.getCourseTreeData(type); this.getCourseTreeData(type);
this.$refs.table.refresh(true); this.$refs.table.refresh(true);