summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
diff options
context:
space:
mode:
authorKeguang He <hekeguang@chinamobile.com>2022-03-21 07:30:40 +0000
committerGerrit Code Review <gerrit@onap.org>2022-03-21 07:30:40 +0000
commit0b9d6ded59f73d8f48975f66481053c85fb17cd5 (patch)
treead135c3d63e894adc7e2f22220d4ea958e23b0b6 /usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
parent067fe18168fae8b5cf5ac211dcf1f52f476e8bb7 (diff)
parentdc2d38249ca5ac3127c260745af6251604e35a80 (diff)
Merge "feat: intent instance management"
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts')
-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();
+ });
+ }
}