diff options
author | liuwh7 <liuwh7@asiainfo.com> | 2021-10-25 14:49:00 +0800 |
---|---|---|
committer | liuwh7 <liuwh7@asiainfo.com> | 2021-10-25 14:49:04 +0800 |
commit | 24fcc18200bb614af94c2bd15f1145f8b6b4a64f (patch) | |
tree | d855e1d103f6293301eaf754edba56d084c50886 /usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal | |
parent | 06b6007ff6240618d5c5438aebc549d98fff5aa6 (diff) |
feat: modify intent based service
Signed-off-by: liuwh7 <liuwh7@asiainfo.com>
Change-Id: If91ca0dcfa314ff4657458b353eae6b2d96fcdec
Issue-ID: USECASEUI-605
Diffstat (limited to 'usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal')
-rw-r--r-- | usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts b/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts index 16a3843b..e91c57e7 100644 --- a/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts +++ b/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts @@ -37,10 +37,10 @@ export class SmartCloudLeasedModalComponent implements OnInit { ngOnChange() {} - handleCancel(flag): void { + handleCancel(flag, data=null): void { this.samrtCloudLeasedLineShowFlag = false; this.communicationMessage = ""; - this.resolveEmitter.emit({ "cancel": flag }); + this.resolveEmitter.emit({ cancel: flag, data: data}); } handleOk(): void { @@ -63,8 +63,7 @@ export class SmartCloudLeasedModalComponent implements OnInit { }; this.myhttp.intentInstancePredict(params).subscribe( (response) => { - console.log(response); - this.handleCancel(false); + this.handleCancel(false, response); }, (err) => { console.log(err); |