diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2020-07-14 18:55:22 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2020-07-14 18:56:39 +0800 |
commit | 81d841b1360abe51d501f3c2f8d1e9f5b97da8e8 (patch) | |
tree | d15b7730c4b0413b6824afa081e86920f6bdd4ea /usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management | |
parent | 59ec2ac4a3c93c6c4b68f09295416310d3093876 (diff) |
feat: Add prompt message for interface error3.0.5
Change-Id: I106e5c7586dd79874e6fec61c331c7a2d120302d
Issue-ID: USECASEUI-368
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management')
2 files changed, 7 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts index 99cbde98..c624c64c 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts @@ -197,9 +197,11 @@ export class BusinessOrderComponent implements OnInit { this.isSpinning = true; this.myhttp.csmfSlicingPurchase(paramsObj).subscribe(res => { const {result_header: {result_code}} = res; + this.isSpinning = false; if (+result_code === 200) { - this.isSpinning = false; this.handleCancel(); + }else{ + this.message.error(res.result_header.result_message) } }, (err) => { this.message.error(err); diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts index 73736f97..9f6a9236 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts @@ -74,6 +74,8 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit { return item }); } + }else{ + this.message.error(res.result_header.result_message) } }) } @@ -129,6 +131,7 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit { let singleSlicing = Object.assign({}, this.listOfData[index]); this.listOfData[index] = singleSlicing; this.listOfData = [...this.listOfData]; + this.message.error(res.result_header.result_message) this.getCSMFBusinessList(); } this.getCSMFBusinessList(); @@ -156,6 +159,7 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit { this.getCSMFBusinessList(); } else { this.terminateStart[index] = false; + this.message.error(res.result_header.result_message) } }, () => { this.loading = false; |