aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorliuwh7 <liuwh7@asiainfo.com>2021-10-25 14:49:00 +0800
committerliuwh7 <liuwh7@asiainfo.com>2021-10-25 14:49:04 +0800
commit24fcc18200bb614af94c2bd15f1145f8b6b4a64f (patch)
treed855e1d103f6293301eaf754edba56d084c50886 /usecaseui-portal
parent06b6007ff6240618d5c5438aebc549d98fff5aa6 (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')
-rw-r--r--usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts15
-rw-r--r--usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts7
2 files changed, 6 insertions, 16 deletions
diff --git a/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts b/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts
index dd7949b4..7b39f1aa 100644
--- a/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts
+++ b/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts
@@ -137,22 +137,13 @@ export class CloudLeasedLineComponent implements OnInit {
this.smartCloudLeasedLineShowFlag = true;
}
// smart dialog close
- smartCloudLeasedLineClose(data): void {
+ smartCloudLeasedLineClose(param): void {
this.smartCloudLeasedLineShowFlag = false;
- if (data.cancel) {
+ if (param.cancel) {
return;
}
- this.resolveResult = {
- name: 'test',
- instanceId: '123456',
- accessPointOne: {
- name: 'aaa',
- bandwidth: '20'
- },
- cloudPointName: 'aaa',
- };
-
+ this.resolveResult = param.data;
this.cloudLeasedLineShowFlag = true;
}
// to monitor page
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);