From d708aa67b5081e4b0fa14f702ff01c0dbdb3cda4 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 19 Jan 2022 11:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E6=8E=A5=E5=8F=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../btn-management/btn-management.component.ts | 2 +- .../close-account/close-account.component.ts | 14 +++++++++++++- .../crm-management/crm-management.component.ts | 13 ++++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) 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) + } + }) + } }); }