summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management
diff options
context:
space:
mode:
authorliuwh7 <liuwh7@asiainfo.com>2022-03-21 14:11:42 +0800
committerliuwh7 <liuwh7@asiainfo.com>2022-03-21 14:11:57 +0800
commitdc2d38249ca5ac3127c260745af6251604e35a80 (patch)
tree83b1f76b09492b96701486023fab9574f768c7e5 /usecaseui-portal/src/app/views/services/slicing-management
parentb44075625fe5d092e0f7048b254edc986dd26c0a (diff)
feat: intent instance management
Signed-off-by: liuwh7 <liuwh7@asiainfo.com> Change-Id: I7d8047e7ccc86617399ce57a5be62907d09292eb Issue-ID: REQ-1075
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management')
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts36
1 files changed, 34 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
index aa5a5db1..70ef4ef8 100644
--- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
+++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
@@ -51,6 +51,7 @@ export class BusinessOrderComponent implements OnInit {
uEMobilityLevel: "stationary",
coverageArea: "",
coverageAreaNumber: null,
+ intentContent: '',
};
areaList: any[] = [];
validateRulesShow: any[] = [];
@@ -95,6 +96,7 @@ export class BusinessOrderComponent implements OnInit {
uEMobilityLevel: "stationary",
coverageArea: "",
coverageAreaNumber: null,
+ intentContent: ''
};
this.validateRulesShow = [];
}
@@ -152,7 +154,18 @@ export class BusinessOrderComponent implements OnInit {
this.handleCancel();
};
this.loading = true;
- this.myhttp
+
+ // csmfSlicingPurchaseWithContent
+ const { intentContent } = this.slicing_order_info;
+ if (intentContent) {
+ this.csmfSlicingPurchaseWithContent(paramsObj, csmfSlicingPurchaseFailedCallback);
+ return;
+ }
+ this.csmfSlicingPurchase(paramsObj, csmfSlicingPurchaseFailedCallback);
+ }
+
+ csmfSlicingPurchase(paramsObj, csmfSlicingPurchaseFailedCallback): void {
+ this.myhttp
.csmfSlicingPurchase(paramsObj, csmfSlicingPurchaseFailedCallback)
.then((res) => {
const result = res.result_header;
@@ -168,5 +181,24 @@ export class BusinessOrderComponent implements OnInit {
this.loading = false;
this.handleCancel();
});
- }
+ }
+
+ csmfSlicingPurchaseWithContent(paramsObj, csmfSlicingPurchaseFailedCallback): void {
+ this.myhttp
+ .csmfSlicingPurchaseWithContent(paramsObj, csmfSlicingPurchaseFailedCallback)
+ .then((res) => {
+ const result = res.result_header;
+ if (
+ result &&
+ result.result_code &&
+ +result.result_code === 200
+ ) {
+ console.log(res);
+ } else {
+ this.message.create("error", "Network error");
+ }
+ this.loading = false;
+ this.handleCancel();
+ });
+ }
}