diff options
author | 2020-07-14 18:55:22 +0800 | |
---|---|---|
committer | 2020-07-14 18:56:39 +0800 | |
commit | 81d841b1360abe51d501f3c2f8d1e9f5b97da8e8 (patch) | |
tree | d15b7730c4b0413b6824afa081e86920f6bdd4ea /usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nssi-management/nssi-table/nssi-table.component.ts | |
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/slicing-resource-management/nssi-management/nssi-table/nssi-table.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nssi-management/nssi-table/nssi-table.component.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nssi-management/nssi-table/nssi-table.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nssi-management/nssi-table/nssi-table.component.ts index 6dec5c72..ba2b8971 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nssi-management/nssi-table/nssi-table.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nssi-management/nssi-table/nssi-table.component.ts @@ -1,7 +1,7 @@ import {Component, Input, OnInit,SimpleChanges} from '@angular/core'; import {BUSINESS_STATUS} from '../../../../../../../constants/constants'; import {SlicingTaskServices} from "../../../../../../core/services/slicingTaskServices"; -import {NzModalService} from 'ng-zorro-antd'; +import {NzModalService, NzMessageService} from 'ng-zorro-antd'; import {NssiModelComponent} from "../nssi-model/nssi-model.component"; @Component({ @@ -13,7 +13,8 @@ export class NssiTableComponent implements OnInit { constructor( private myhttp: SlicingTaskServices, - private modalService: NzModalService + private modalService: NzModalService, + private message: NzMessageService ) { } @@ -56,10 +57,12 @@ export class NssiTableComponent implements OnInit { if (nssi_service_instances !== null && nssi_service_instances.length > 0) { this.listOfData = nssi_service_instances; } + }else{ + this.message.error(res.result_header.result_message) } }, (res) => { this.loading = false; - console.error(res); + this.message.error(res) }) } |