diff options
Diffstat (limited to 'usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict')
2 files changed, 20 insertions, 5 deletions
diff --git a/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.html b/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.html index bdd59ea3..73c4ab17 100644 --- a/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.html +++ b/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.html @@ -32,11 +32,11 @@ <app-cloud-leased-line-modal [modelParams]="modalParam" [cloudLeasedLineShowFlag]="cloudModalShowFlag" - (cancelEmitter)="modalClose()" + (cancelEmitter)="cloudModalClose($event)" ></app-cloud-leased-line-modal> <app-business-order [modelParams]="modalParam" [showModel]="businessModalShowFlag" - (cancel)="modalClose()" + (cancel)="businessModalClose($event)" ></app-business-order> </div> diff --git a/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.ts b/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.ts index d88afa9c..d2fe0fce 100644 --- a/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.ts +++ b/usecaseui-portal/src/app/views/services/intent-based-services/intent-based-predict/intent-based-predict.component.ts @@ -1,4 +1,5 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, EventEmitter, OnInit, Output } from '@angular/core'; +import { Router } from "@angular/router"; import { NzMessageService } from 'ng-zorro-antd'; import { intentBaseService } from '../../../../core/services/intentBase.service'; @@ -10,10 +11,12 @@ import { intentBaseService } from '../../../../core/services/intentBase.service' export class IntentBasedPredictComponent implements OnInit { constructor( + private router:Router, private myhttp: intentBaseService, private msg: NzMessageService ) {} + @Output() eventEmitter = new EventEmitter<any>(); // textarea input predict param communicationMessage: String = ""; // button loading @@ -64,10 +67,22 @@ export class IntentBasedPredictComponent implements OnInit { ) } - modalClose() { + cloudModalClose(param) { this.cloudModalShowFlag = false; - this.businessModalShowFlag = false; this.modalParam = {}; this.communicationMessage = ''; + if (param) { + this.eventEmitter.emit(); + } + } + + businessModalClose(param) { + this.businessModalShowFlag = param.closeFlag; + this.modalParam = {}; + this.communicationMessage = ''; + const to5gPage = param.to5gPage; + if (to5gPage) { + this.router.navigate(['/services/slicing-management']); + } } } |