From 841ef0d6f86a17105c92e44683e796b829962f52 Mon Sep 17 00:00:00 2001 From: liuwh7 Date: Tue, 29 Mar 2022 14:37:38 +0800 Subject: fix: after submit to new page Signed-off-by: liuwh7 Change-Id: I945a645748991d13b3195f3390642bfb2ef5a3e7 Issue-ID: REQ-1075 --- .../business-order/business-order.component.html | 2 +- .../business-order/business-order.component.ts | 15 +++++---- .../csmf-slicing-business-management.component.ts | 36 +++++++++++----------- 3 files changed, 28 insertions(+), 25 deletions(-) (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html index 74069f69..9ad0d4e6 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html @@ -1,4 +1,4 @@ -
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 70ef4ef8..55bf386b 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 @@ -39,7 +39,7 @@ export class BusinessOrderComponent implements OnInit { @Input() showModel: boolean; @Input() modelParams: any; - @Output() cancel = new EventEmitter(); + @Output() cancel = new EventEmitter(); comunicationFormItems = COMMUNICATION_FORM_ITEMS; slicing_order_info = { name: null, @@ -83,9 +83,12 @@ export class BusinessOrderComponent implements OnInit { }); } - handleCancel(): void { + handleCancel(flag): void { this.showModel = false; - this.cancel.emit(this.showModel); + this.cancel.emit({ + closeFlag: false, + to5gPage: flag + }); this.slicing_order_info = { name: null, maxNumberofUEs: null, @@ -151,7 +154,7 @@ export class BusinessOrderComponent implements OnInit { slicing_order_info: this.slicing_order_info, }; const csmfSlicingPurchaseFailedCallback = () => { - this.handleCancel(); + this.handleCancel(true); }; this.loading = true; @@ -179,7 +182,7 @@ export class BusinessOrderComponent implements OnInit { this.message.create("error", "Network error"); } this.loading = false; - this.handleCancel(); + this.handleCancel(true); }); } @@ -198,7 +201,7 @@ export class BusinessOrderComponent implements OnInit { this.message.create("error", "Network error"); } this.loading = false; - this.handleCancel(); + this.handleCancel(true); }); } } 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 6eb5e936..40a5c252 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 @@ -1,8 +1,8 @@ import { Component, Input, OnInit, SimpleChanges } from "@angular/core"; +import * as moment from "moment"; +import { NzMessageService, NzModalService } from "ng-zorro-antd"; import { BUSINESS_STATUS } from "../../../../../constants/constants"; import { SlicingTaskServices } from ".././../../../core/services/slicingTaskServices"; -import { NzModalService, NzMessageService } from "ng-zorro-antd"; -import * as moment from "moment"; import { INTERVAL_TIME } from "../constant"; @Component({ selector: "app-csmf-slicing-business-management", @@ -234,22 +234,22 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit { } OrderModelShow(): void { - this.orderForm = null; - this.businessOrderShow = true; + this.orderForm = null; + this.businessOrderShow = true; } orderModelClose($event: any): void { - this.businessOrderShow = $event; - this.getCSMFBusinessList(); - } - inputOrderModelShow(): void { - this.inputBusinessOrderShow = true; - } - inputOrderModelClose($event: any): void { - this.inputBusinessOrderShow = false; - if ($event.cancel) { - return; - } - this.orderForm = $event.param; - this.businessOrderShow = true; - } + this.businessOrderShow = $event.closeFlag; + this.getCSMFBusinessList(); + } + inputOrderModelShow(): void { + this.inputBusinessOrderShow = true; + } + inputOrderModelClose($event: any): void { + this.inputBusinessOrderShow = false; + if ($event.cancel) { + return; + } + this.orderForm = $event.param; + this.businessOrderShow = true; + } } -- cgit 1.2.3-korg