From 1081d5ec761a7785cac40a1834944eaf109fe0f2 Mon Sep 17 00:00:00 2001 From: liuwh7 Date: Fri, 12 Mar 2021 10:40:27 +0800 Subject: fix: add eror tip and mock data Change-Id: Ib80f8b0fb9e57e7f3271c498fa4669c98aa32db1 Signed-off-by: liuwh7 Issue-ID: USECASEUI-525 --- .../input-business-order/input-business-order.component.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usecaseui-portal/src/app/views/services') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts index 3196bbba..15e8b1b3 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; +import { NzMessageService } from 'ng-zorro-antd'; import { Util } from '../../../../../shared/utils/utils'; import { onboardService } from '../../../../../core/services/onboard.service'; import { Recorder } from '../../../../../shared/utils/recorder'; @@ -10,7 +11,12 @@ import { Recorder } from '../../../../../shared/utils/recorder'; }) export class InputBusinessOrderComponent implements OnInit { - constructor(private Util: Util, private Recorder: Recorder, private myhttp: onboardService) { } + constructor( + private Util: Util, + private Recorder: Recorder, + private myhttp: onboardService, + private msg: NzMessageService + ) { } @Input() showModel: boolean; @Output() modalOpreation = new EventEmitter(); @@ -83,7 +89,7 @@ export class InputBusinessOrderComponent implements OnInit { this.modalOpreation.emit({ "cancel": false, "param": orderForm }); }, (err) => { this.clickRepeat = false; - console.log(err); + this.msg.error(`Error: Request failed with status code ${err.status}`); }) } startAudio(): void { -- cgit 1.2.3-korg