From 125fb9b3811f9f580997545f92c93e0a01271abe Mon Sep 17 00:00:00 2001 From: liuwh7 Date: Fri, 4 Mar 2022 14:13:19 +0800 Subject: feat:intentBasedService predict Signed-off-by: liuwh7 Change-Id: I08e0d7a5141325f830bf522b42894b399ea6e7af Issue-ID: REQ-1075 --- .../input-business-order/input-business-order.component.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts index e64f687f..7b4d9d1b 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/input-business-order/input-business-order.component.ts @@ -79,12 +79,18 @@ export class InputBusinessOrderComponent implements OnInit {     "text": this.communicationMessage }; this.myhttp["analysisInputText"](params) - .subscribe((data) => { + .subscribe((response) => { this.clickRepeat = false; - if (data === 0) { + const { code, message, data } = response; + if (code !== 200) { + this.msg.error(message); return; } - let orderForm = { ...data }; + + let orderForm = { + ...data, + intentContent: this.communicationMessage + }; this.communicationMessage = ""; this.showModel = false; this.modalOpreation.emit({ "cancel": false, "param": orderForm }); -- cgit 1.2.3-korg