summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal
diff options
context:
space:
mode:
authorliuwh7 <liuwh7@asiainfo.com>2022-03-04 14:13:19 +0800
committerliuwh7 <liuwh7@asiainfo.com>2022-03-04 14:13:24 +0800
commit125fb9b3811f9f580997545f92c93e0a01271abe (patch)
tree43ad20a5e8bd8bcdceeabc83bf794f0b81d1d595 /usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal
parent37545534852e50f6fa0d46b2371d58a986410375 (diff)
feat:intentBasedService predict
Signed-off-by: liuwh7 <liuwh7@asiainfo.com> Change-Id: I08e0d7a5141325f830bf522b42894b399ea6e7af Issue-ID: REQ-1075
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.ts11
1 files changed, 10 insertions, 1 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 e91c57e7..8f9fd47c 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
@@ -63,7 +63,16 @@ export class SmartCloudLeasedModalComponent implements OnInit {
};
this.myhttp.intentInstancePredict(params).subscribe(
(response) => {
- this.handleCancel(false, response);
+ const { code, message, data } = response;
+ if (code !== 200) {
+ this.msg.error(message);
+ return;
+ }
+ let orderForm = {
+ ...data,
+ intentContent: this.communicationMessage
+ };
+ this.handleCancel(false, orderForm);
},
(err) => {
console.log(err);