summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2020-02-25 10:50:45 +0800
committercyuamber <xuranyjy@chinamobile.com>2020-02-25 10:50:51 +0800
commitc6b270f19596b513d4a855d40c55ac754b726955 (patch)
tree7046cd6c7bc157c9135cb15b5636c3943c457bcb /usecaseui-portal/src/app/core
parentddb1fd59f02c706a4eac5450ede97c996110a494 (diff)
feat:Optimize the code of CSMF slicing page
Change-Id: I1643dc7522678c66a6baf1e493daf6a3f29a2b57 Issue-ID: USECASEUI-368 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/core')
-rw-r--r--usecaseui-portal/src/app/core/services/slicingTaskServices.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
index 3c55a0c1..7606a47d 100644
--- a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
+++ b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
@@ -112,7 +112,7 @@ export class SlicingTaskServices {
}
// Get slicing business list
- getSlicingBusinessList(paramsObj, isSelect: boolean) {
+ getSlicingBusinessList(paramsObj: any, isSelect: boolean) {
let url = this.url.slicingBusinessList.replace("{pageNo}", paramsObj.pageNo)
.replace("{pageSize}", paramsObj.pageSize);
if (isSelect) {
@@ -122,7 +122,7 @@ export class SlicingTaskServices {
return this.http.get<any>(url);
}
// change slicing business activate status
- changeActivateSlicingService(paramsObj, activate: boolean) {
+ changeActivateSlicingService(paramsObj: any, activate: boolean) {
let url = this.url.activateSlicingService.replace("{serviceId}", paramsObj.serviceId);
if (!activate) {
url = this.url.deactivateSlicingService.replace("{serviceId}", paramsObj.serviceId)
@@ -130,12 +130,12 @@ export class SlicingTaskServices {
return this.http.put<any>(url, paramsObj);
}
// terminate slicing business
- terminateSlicingService(paramsObj) {
+ terminateSlicingService(paramsObj: any) {
const url = this.url.terminateSlicingService.replace('{serviceId}', paramsObj.serviceId);
return this.http.delete<any>(url);
}
// query slicing business progress
- getSlicingBusinessProgress(paramsObj) {
+ getSlicingBusinessProgress(paramsObj: any) {
let url = this.url.queryOperationProgress.replace("{serviceId}", paramsObj.serviceId);
return this.http.get<any>(url);
}
@@ -175,7 +175,7 @@ export class SlicingTaskServices {
return this.http.get<any>(url);
}
// Get CSMF slicing business list
- getCSMFSlicingBusinessList(paramsObj) {
+ getCSMFSlicingBusinessList(paramsObj: any) {
let url = this.url.csmfSlicingBusinessList.replace("{status}", paramsObj.status).replace("{pageNo}", paramsObj.pageNo)
.replace("{pageSize}", paramsObj.pageSize);
return this.http.get<any>(url);
@@ -198,7 +198,7 @@ export class SlicingTaskServices {
let url = this.url.csmfGetProgress.replace("{serviceId}", paramsObj.serviceId);
return this.http.get<any>(url);
}
- csmfSlicingPurchase(paramsObj){
+ csmfSlicingPurchase(paramsObj: any){
let url = this.url.csmfPurchase;
return this.http.post<any>(url, paramsObj);
}