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/slicing-business-management/slicing-business-model/slicing-business-model.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/slicing-business-management/slicing-business-model/slicing-business-model.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts index e2867489..b27e5a31 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, Input } from '@angular/core'; -import { NzModalService } from "ng-zorro-antd"; +import { NzModalService, NzMessageService } from "ng-zorro-antd"; import { SlicingTaskServices } from '.././../../../../../core/services/slicingTaskServices'; import { NsiModelComponent } from "../../nsi-management/nsi-model/nsi-model.component"; @@ -12,7 +12,8 @@ export class SlicingBusinessModelComponent implements OnInit { constructor( private myhttp: SlicingTaskServices, - private modalService: NzModalService + private modalService: NzModalService, + private message: NzMessageService ) { } @@ -47,6 +48,8 @@ export class SlicingBusinessModelComponent implements OnInit { if (nsi_info.nsi_id !== null) { this.nsiInfo = [nsi_info]; } + }else{ + this.message.error(res.result_header.result_message) } }) } |