From 84c65a90d991bcfbd791f44b6bfdd539cd627930 Mon Sep 17 00:00:00 2001 From: wangyuerg Date: Tue, 9 Feb 2021 11:31:20 +0800 Subject: fix: fix the bug of noPassParam Signed-off-by: wangyuerg Change-Id: I9e2e418d7d43a9395406179505b8dec7e7a72f44 Issue-ID: USECASEUI-527 --- .../slicing-task-model/slicing-task-model.component.ts | 2 +- .../subnet-params-model/subnet-params-model.component.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts index 88da11b6..e735e0dc 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts @@ -79,7 +79,7 @@ export class SlicingTaskModelComponent implements OnInit { isShowParams: boolean; paramsTitle: string; params: any; - noPassPara: string[]; + noPassPara: string[] = []; // 获取数据loading isSpinning: boolean = false; loading: boolean = false; diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts index c9836c9b..6354f91e 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts @@ -62,6 +62,7 @@ export class SubnetParamsModelComponent implements OnInit { ngOnInit() {} ngOnChanges() { + // It is excuted every time you open it if (this.title) { this.formData = JSON.parse(JSON.stringify(this.detailData)); if (this.title === "An" || this.title === "Cn") { @@ -384,6 +385,7 @@ export class SubnetParamsModelComponent implements OnInit { } handleCancel(): void { + this.noPassParaChange.emit(this.notPassPara); this.showModel = false; this.cancel.emit(this.showModel); } -- cgit 1.2.3-korg