edit
This commit is contained in:
@ -52,7 +52,7 @@ export class AuthDrawerComponent implements OnInit {
|
|||||||
|
|
||||||
functionAction(item?: any, isDisabled = false) {
|
functionAction(item?: any, isDisabled = false) {
|
||||||
if (item) {
|
if (item) {
|
||||||
this.functionInfo = { ...item, buttonId: item.id };
|
this.functionInfo = { ...item, buttonId: item.id, id: item.functionButtonId };
|
||||||
} else {
|
} else {
|
||||||
this.functionInfo = {};
|
this.functionInfo = {};
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ export class AuthDrawerComponent implements OnInit {
|
|||||||
const modal = this.modal.warning({
|
const modal = this.modal.warning({
|
||||||
nzTitle: '是否确定删除该权限',
|
nzTitle: '是否确定删除该权限',
|
||||||
nzOnOk: () => {
|
nzOnOk: () => {
|
||||||
this.service.request(this.service.$api_delete_menu_function, [item.id]).subscribe(res => {
|
this.service.request(this.service.$api_delete_menu_function, [item.functionButtonId]).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success('删除成功');
|
this.service.msgSrv.success('删除成功');
|
||||||
this.st.load(1);
|
this.st.load(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user