Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apps/daas/src/views/role/Role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,15 @@ export default {
//保留当前操作数据
this.updateData(data.checked, data)

// 页面权限开启
if (type === 'page' && data.checked) {
// 按钮权限全部开启
data.buttons?.forEach((el) => {
el.checked = true
this.updateData(el.checked, el)
})
}

// 页面权限关闭
if (type === 'page' && !data.checked) {
// 如果父元素的页面权限全部不勾选,则父元素也隐藏
Expand Down
Loading