diff --git a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.html b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.html
index b170fd99..0fd145fb 100644
--- a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.html
+++ b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.html
@@ -30,7 +30,7 @@
{{functionInfo.permissionsCode || '-'}}
-
+
diff --git a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts
index d2e7f5f1..f663f959 100644
--- a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts
+++ b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts
@@ -76,6 +76,24 @@ export class AuthDrawerComponent implements OnInit {
});
}
+ deleteAuth(item: any) {
+ const modal = this.modal.warning({
+ nzTitle: '是否确定删除该权限',
+ nzOnOk: () => {
+ this.service.request(this.service.$api_delete_menu_function, [item.id]).subscribe(res => {
+ if (res) {
+ this.service.msgSrv.success('删除成功');
+ this.st.load(1);
+ modal.destroy();
+ } else {
+ this.service.msgSrv.error('删除失败');
+ }
+ });
+ return false;
+ }
+ });
+ }
+
/**
* 重置表单
*/
@@ -125,7 +143,8 @@ export class AuthDrawerComponent implements OnInit {
click: item => this.functionAction(item)
},
{
- text: '删除'
+ text: '删除',
+ click: item => this.deleteAuth(item)
}
]
}
diff --git a/src/app/routes/menu-manager/services/menu-manager.service.ts b/src/app/routes/menu-manager/services/menu-manager.service.ts
index cb76b572..5aebd04b 100644
--- a/src/app/routes/menu-manager/services/menu-manager.service.ts
+++ b/src/app/routes/menu-manager/services/menu-manager.service.ts
@@ -23,6 +23,8 @@ export class MenuManagerService extends BaseService {
$api_get_functions= `/api/mdc/cuc/buttonInfo/getButtonInfoList`;
// 保存菜单按钮关联
$api_save_menu_function= `/api/mdc/cuc/functionButton/saveFunctionButton`;
+ // 删除菜单按钮关联表
+ $api_delete_menu_function= `/api/mdc/cuc/functionButton/deletebatch`;
constructor(public injector: Injector) {
super(injector);