fix: fix the bug of noPassParam 19/117619/1
authorwangyuerg <wangyuerg@chinamobile.com>
Tue, 9 Feb 2021 03:31:20 +0000 (11:31 +0800)
committerwangyuerg <wangyuerg@chinamobile.com>
Tue, 9 Feb 2021 03:32:09 +0000 (11:32 +0800)
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com>
Change-Id: I9e2e418d7d43a9395406179505b8dec7e7a72f44
Issue-ID: USECASEUI-527

usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts
usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts

index 88da11b..e735e0d 100644 (file)
@@ -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;
index c9836c9..6354f91 100644 (file)
@@ -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);
        }