From 78d30dde0b76c7418e120ed413b553eb596e8d51 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Mon, 27 Jun 2022 14:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/system-management/role/role.component.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/system-management/role/role.component.ts b/src/app/system-management/role/role.component.ts index bd2488d..6e19603 100644 --- a/src/app/system-management/role/role.component.ts +++ b/src/app/system-management/role/role.component.ts @@ -52,7 +52,7 @@ export class RoleComponent implements OnInit { this.http.get('/api/services/app/Menu/GetAll', { params: params }).subscribe((data: any) => { - console.log(666, data) + // console.log(666, data) this.totalCount = data.result.totalCount data.result.items.forEach(element => { element.key = element.id @@ -87,7 +87,7 @@ export class RoleComponent implements OnInit { grantedPermissions: arr } let body2=instance.validateForm.value.menus - this.http.post('/api/services/app/Role/Create', body).subscribe(data => { + this.http.post('/api/services/app/Role/Create', body).subscribe((data:any) => { resolve(data) this.http.post('/api/services/app/Role/SetRoleMenus', body2, { params: { @@ -95,7 +95,6 @@ export class RoleComponent implements OnInit { } }).subscribe(data => { resolve(data) - console.log(data,8252); // this.message.create('success', '分配成功!'); @@ -145,7 +144,7 @@ export class RoleComponent implements OnInit { grantedPermissions: arr } let body2=instance.validateForm.value.menus - this.http.put('/api/services/app/Role/Update', body).subscribe(data => { + this.http.put('/api/services/app/Role/Update', body).subscribe((data:any) => { resolve(data) this.http.post('/api/services/app/Role/SetRoleMenus', body2, { params: { @@ -153,8 +152,7 @@ export class RoleComponent implements OnInit { } }).subscribe(data => { resolve(data) - console.log(data,8252); - + // this.message.create('success', '分配成功!'); return true