diff --git a/src/app/routes/sys-setting/components/btn-management/btn-management.component.ts b/src/app/routes/sys-setting/components/btn-management/btn-management.component.ts index 170758f9..a0618112 100644 --- a/src/app/routes/sys-setting/components/btn-management/btn-management.component.ts +++ b/src/app/routes/sys-setting/components/btn-management/btn-management.component.ts @@ -153,7 +153,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } }; nzClosable: false, nzCancelText: '取消', nzOnOk: () => { - this.service.request(this.service.$api_deletebatchButton, [item.id]).subscribe(res => { + this.service.request(this.service.$api_settlementCustomer_deletebatch, [item.id]).subscribe(res => { if (res) { this.service.msgSrv.success('删除成功!'); this.st.reload(1) diff --git a/src/app/routes/sys-setting/components/close-account/close-account.component.ts b/src/app/routes/sys-setting/components/close-account/close-account.component.ts index 04d24468..8a61d047 100644 --- a/src/app/routes/sys-setting/components/close-account/close-account.component.ts +++ b/src/app/routes/sys-setting/components/close-account/close-account.component.ts @@ -41,6 +41,10 @@ export class CloseAccountComponent implements OnInit { text: '编辑', click: item => this.roleAction(item, 2) }, + { + text: '删除', + click: item => this.deleteAction(item) + }, ] } ]; @@ -106,6 +110,7 @@ export class CloseAccountComponent implements OnInit { ui: { placeholder: '请选择', widget: 'select', + allowClear: true, asyncData: () => this.shipperservice.getNetworkFreightForwarder(), } }, @@ -195,7 +200,14 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } }; nzTitle: '确认删除?', nzClosable: false, nzCancelText: '取消', - nzOnOk: () => {} + nzOnOk: () => { + this.service.request(this.service.$api_deletebatchButton, [item.id]).subscribe(res => { + if (res) { + this.service.msgSrv.success('删除成功!'); + this.st.reload(1) + } + }) + } }); } diff --git a/src/app/routes/sys-setting/components/crm-management/crm-management.component.ts b/src/app/routes/sys-setting/components/crm-management/crm-management.component.ts index 6b2969a3..00924fef 100644 --- a/src/app/routes/sys-setting/components/crm-management/crm-management.component.ts +++ b/src/app/routes/sys-setting/components/crm-management/crm-management.component.ts @@ -36,6 +36,10 @@ export class CrmManagementComponent implements OnInit { text: '编辑', click: item => this.roleAction(item, 2) }, + { + text: '删除', + click: item => this.deleteAction(item) + }, ] } ]; @@ -151,7 +155,14 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } }; nzTitle: '确认删除?', nzClosable: false, nzCancelText: '取消', - nzOnOk: () => {} + nzOnOk: () => { + this.service.request(this.service.$api_deletebatch_crmCustomer, [item.id]).subscribe(res => { + if (res) { + this.service.msgSrv.success('删除成功!'); + this.st.reload(1) + } + }) + } }); }