Commit 1b507fd6 by Nattana Chaiyamat

แก้หน้าจอกหนดสิทธิ

parent 1ae0bac7
...@@ -17,7 +17,7 @@ export class RolePermissionConfigComponent { ...@@ -17,7 +17,7 @@ export class RolePermissionConfigComponent {
currentModal: 'add' | 'edit' | 'delete' | 'updateMenu' = "add" currentModal: 'add' | 'edit' | 'delete' | 'updateMenu' = "add"
setMenuPage = true setMenuPage = false
configPermission: { loading: boolean, select: ConfigPermissionModel, dataList: ConfigPermissionModel[] } = { loading: false, select: new MyConfigPermissionModel(), dataList: [] } configPermission: { loading: boolean, select: ConfigPermissionModel, dataList: ConfigPermissionModel[] } = { loading: false, select: new MyConfigPermissionModel(), dataList: [] }
menuItems: MenuBodyModel[] = [] menuItems: MenuBodyModel[] = []
menuItemsShow: Map<string, boolean> = new Map(); menuItemsShow: Map<string, boolean> = new Map();
......
...@@ -209,10 +209,10 @@ export class SidebarComponent { ...@@ -209,10 +209,10 @@ export class SidebarComponent {
this.configPermission.data = new MyConfigPermissionModel(response) this.configPermission.data = new MyConfigPermissionModel(response)
this.menuItems.forEach(x => { this.menuItems.forEach(x => {
// เปิดทุกเมนู // เปิดทุกเมนู
x.show = true // x.show = true
x.children?.forEach(y => { // x.children?.forEach(y => {
y.show = true // y.show = true
}) // })
// เปิดตาม config // เปิดตาม config
const configMenu = this.configPermission.data.menuBody.find(y => y.id == x.id) const configMenu = this.configPermission.data.menuBody.find(y => y.id == x.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment