From 11513d8eb65642758ee8dd794342b2f65daae482 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Mon, 9 Sep 2019 17:20:46 +0800 Subject: feat:optimize the mock api json of customer page Change-Id: Ia1892e198693ffb64aae54553e46d54c9afe1ead Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- .../src/app/shared/components/customer/customer.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usecaseui-portal/src/app/shared/components') diff --git a/usecaseui-portal/src/app/shared/components/customer/customer.component.ts b/usecaseui-portal/src/app/shared/components/customer/customer.component.ts index a510e6db..17142d77 100644 --- a/usecaseui-portal/src/app/shared/components/customer/customer.component.ts +++ b/usecaseui-portal/src/app/shared/components/customer/customer.component.ts @@ -436,7 +436,7 @@ export class CustomerComponent implements OnInit { if (data["status"] == 'SUCCESS') { let params = { customerId: thisdeleteCustomer.id, - version: data["result"]["resource-version"] + resourceVersion: data["result"]["resource-version"] }; this.deleteCustomer(params, notificationModel); } else { @@ -444,8 +444,8 @@ export class CustomerComponent implements OnInit { } }) } - deleteCustomer(params, notificationModel) { - this.managemencs.deleteSelectCustomer(params).subscribe((data) => { + deleteCustomer(paramsObj, notificationModel) { + this.managemencs.deleteSelectCustomer(paramsObj).subscribe((data) => { if (data["status"] == 'SUCCESS') { this.notificationSuccess(notificationModel); this.getAllCustomers(); -- cgit 1.2.3-korg