|
|
@ -110,8 +110,6 @@ |
|
|
|
:data="menus" |
|
|
|
:data="menus" |
|
|
|
:default-checked-keys="menuIds" |
|
|
|
:default-checked-keys="menuIds" |
|
|
|
:props="defaultProps" |
|
|
|
:props="defaultProps" |
|
|
|
check-strictly |
|
|
|
|
|
|
|
accordion |
|
|
|
|
|
|
|
show-checkbox |
|
|
|
show-checkbox |
|
|
|
node-key="id" |
|
|
|
node-key="id" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -238,7 +236,9 @@ export default { |
|
|
|
this.menuIds = [] |
|
|
|
this.menuIds = [] |
|
|
|
// 菜单数据需要特殊处理 |
|
|
|
// 菜单数据需要特殊处理 |
|
|
|
val.menus.forEach(function(data, index) { |
|
|
|
val.menus.forEach(function(data, index) { |
|
|
|
|
|
|
|
if(data.pid!=0){ |
|
|
|
_this.menuIds.push(data.id) |
|
|
|
_this.menuIds.push(data.id) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|