summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-12-06 09:36:55 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-12-06 09:57:57 +0800
commit39aa34b0431e6dc2946b95ae40df5466a3c19d72 (patch)
treeab840886657601bc201323f280d2daaa37847296 /usecaseui-portal/src/app/core
parente2e2bcf625b3fa8edffa3e7ed81452448f3912d8 (diff)
feat: add slicing nsi basic business code of nsi page
Change-Id: I85ceaad153cf4dd9b9c3d4e6db9d9ce4cf6af4bf Issue-ID: USECASEUI-369 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.ts29
1 files changed, 22 insertions, 7 deletions
diff --git a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
index badbaa0d..19006acd 100644
--- a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
+++ b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
@@ -37,9 +37,12 @@ export class SlicingTaskServices {
activateSlicingService:this.baseUrl+"/resource/{serviceId}/activate",
deactivateSlicingService:this.baseUrl+"/resource/{serviceId}/deactivate",
terminateSlicingService:this.baseUrl+"/resource/{serviceId}",
- queryOperationProgress:this.baseUrl+"resource/{serviceId}/progress",
-
-
+ queryOperationProgress:this.baseUrl+"/resource/{serviceId}/progress",
+ slicingBusinessDetail:this.baseUrl+"/resource/business/{businessId}/details",
+ //slicing-nsi-management
+ slicingNsiList:this.baseUrl+"/resource/nsi/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingNsiQueryOfStatus:this.baseUrl+"/resource/nsi/{instanceStatus}/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingNsiDetail:this.baseUrl+"/resource/nsi/{nsiId}/details",
}
@@ -101,9 +104,9 @@ export class SlicingTaskServices {
url = this.url.slicingBusinesQueryOfStatus.replace("{businessStatus}", paramsObj.businessStatus).replace("{pageNo}", paramsObj.pageNo)
.replace("{pageSize}", paramsObj.pageSize);
}
- let params = new HttpParams({ fromObject: paramsObj });
- return this.http.get<any>(url,{params});
+ return this.http.get<any>(url);
}
+ // change slicing business activate status
changeActivateSlicingService(paramsObj, activate: boolean){
let url = this.url.activateSlicingService.replace("{serviceId}", paramsObj.serviceId);
if(activate){
@@ -111,14 +114,26 @@ export class SlicingTaskServices {
}
return this.http.put<any>(url,paramsObj);
}
+ // terminate slicing business
terminateSlicingService(paramsObj){
const url = this.url.terminateSlicingService.replace('{serviceId}', paramsObj.serviceId);
return this.http.delete<any>(url);
}
+ // query slicing business progress
getSlicingBusinessProgress(paramsObj) {
- let params = new HttpParams({ fromObject: paramsObj });
let url = this.url.queryOperationProgress.replace("{serviceId}", paramsObj.serviceId);
- return this.http.get<any>(url,{params});
+ return this.http.get<any>(url);
+ }
+ // Get slicing nsi list
+ // Get slicing business list
+ getSlicingNsiList (paramsObj,isSelect: boolean) {
+ let url = this.url.slicingNsiList .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ if(isSelect){
+ url = this.url.slicingNsiQueryOfStatus.replace("{instanceStatus}", paramsObj.businessStatus).replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ }
+ return this.http.get<any>(url);
}
}