diff options
author | 2022-03-29 14:37:38 +0800 | |
---|---|---|
committer | 2022-03-29 14:37:52 +0800 | |
commit | 841ef0d6f86a17105c92e44683e796b829962f52 (patch) | |
tree | ff2858d18ca0debdaabf214c3b66aaafcc84cdfb /usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line-modal/cloud-leased-line-modal.component.ts | |
parent | 5d7bec14a9e18d7de0f1b228f9b396a810eb5b47 (diff) |
fix: after submit to new page
Signed-off-by: liuwh7 <liuwh7@asiainfo.com>
Change-Id: I945a645748991d13b3195f3390642bfb2ef5a3e7
Issue-ID: REQ-1075
Diffstat (limited to 'usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line-modal/cloud-leased-line-modal.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line-modal/cloud-leased-line-modal.component.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line-modal/cloud-leased-line-modal.component.ts b/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line-modal/cloud-leased-line-modal.component.ts index b48cd3f0..4299ba83 100644 --- a/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line-modal/cloud-leased-line-modal.component.ts +++ b/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line-modal/cloud-leased-line-modal.component.ts @@ -19,7 +19,7 @@ export class CloudLeasedLineModalComponent implements OnInit { @Input() modelParams: any; @Input() cloudLeasedLineShowFlag: boolean; - @Output() cancelEmitter = new EventEmitter<boolean>(); + @Output() cancelEmitter = new EventEmitter<any>(); comunicationFormItems = COMMUNICATION_FORM_ITEMS; isUpdateFlag: boolean = false; nodeLists: any[] = []; @@ -125,7 +125,7 @@ export class CloudLeasedLineModalComponent implements OnInit { return; } this.nzMessage.success('Update IntentInstance Success!'); - this.cancel(); + this.cancel(true); }, (err) => { console.log(err); @@ -144,7 +144,7 @@ export class CloudLeasedLineModalComponent implements OnInit { return; } this.nzMessage.success('Create IntentInstance Success!'); - this.cancel(); + this.cancel(true); }, (err) => { console.log(err); @@ -152,7 +152,7 @@ export class CloudLeasedLineModalComponent implements OnInit { ) } - cancel(): void { + cancel(flag): void { this.cloudLeasedLineShowFlag = false this.isUpdateFlag = false this.cloud_leased_line_info = { @@ -165,7 +165,7 @@ export class CloudLeasedLineModalComponent implements OnInit { }, cloudPointName: '', }; - this.cancelEmitter.emit(); + this.cancelEmitter.emit(flag); } isString(val) { |