summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2020-09-08 11:04:10 +0800
committercyuamber <xuranyjy@chinamobile.com>2020-09-08 11:04:20 +0800
commit4900b654e209223e5948d51f0b629972a8eb917c (patch)
treebf3eec37440e6d6f6150340c021619a2c66b1e21 /usecaseui-portal/src/app/core
parent43cb242d5a78e86786d4274fc539d81680fc15c4 (diff)
feat: Delete the useless message.error code in the code of slicing-task-model page
Change-Id: I517edc6a3aea2cc268771ec5082d99fddf7107b5 Issue-ID: USECASEUI-444 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.ts35
1 files changed, 17 insertions, 18 deletions
diff --git a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
index e7a0a6ff..1a2c9893 100644
--- a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
+++ b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
@@ -65,30 +65,30 @@ export class SlicingTaskServices {
// Get slicing order task list
- getSlicingTaskList(pageNo: string, pageSize: string) {
+ getSlicingTaskList(pageNo: string, pageSize: string, failedCallback?:any) {
const url = this.url.slicingTaskList
.replace("{pageNo}", pageNo)
.replace("{pageSize}", pageSize);
- return this.Http.httpAxios("get", url)
+ return this.Http.httpAxios("get", url, null, failedCallback)
}
// Get list based on task processing status
- getTaskProcessingStatus(processingStatus: string, pageNo: string, pageSize: string) {
+ getTaskProcessingStatus(processingStatus: string, pageNo: string, pageSize: string, failedCallback?:any) {
const url = this.url.taskProcessingStatus
.replace('{processingStatus}', processingStatus)
.replace("{pageNo}", pageNo)
.replace("{pageSize}", pageSize);
- return this.Http.httpAxios("get", url);
+ return this.Http.httpAxios("get", url, null, failedCallback)
}
// Get
- getAuditInfo(taskId: string) {
+ getAuditInfo(taskId: string, failedCallback?:any) {
const url = this.url.auditInfo.replace('{taskId}', taskId);
- return this.Http.httpAxios("get", url);
+ return this.Http.httpAxios("get", url, null, failedCallback);
}
- getSlicingInstance(pageNo: string, pageSize: string) {
+ getSlicingInstance(pageNo: string, pageSize: string, failedCallback?:any) {
const url = this.url.slicingInstance
.replace("{pageNo}", pageNo)
.replace("{pageSize}", pageSize);
- return this.Http.httpAxios("get", url);
+ return this.Http.httpAxios("get", url, null, failedCallback);
}
getSlicingSubnetInstance(nsiId: string, failedCallback?:any) {
const url = this.url.slicingSubnetInstance.replace('{nsiId}', nsiId);
@@ -188,19 +188,18 @@ export class SlicingTaskServices {
if (!activate) {
url = this.url.csmfDeactivate.replace("{serviceId}", paramsObj.serviceId)
}
- // return this.http.put<any>(url, paramsObj);
return this.Http.httpAxios("put", url, paramsObj, failedCallback);
}
// terminate CSMF slicing business
- csmfTerminate(paramsObj) {
- const url = this.url.csmfTerminate.replace('{serviceId}', paramsObj.serviceId);
- return this.http.delete<any>(url);
- }
- // query CSMF slicing business progress
- csmfSlicingProgress(paramsObj) {
- let url = this.url.csmfGetProgress.replace("{serviceId}", paramsObj.serviceId);
- return this.http.get<any>(url);
- }
+ // csmfTerminate(paramsObj) {
+ // const url = this.url.csmfTerminate.replace('{serviceId}', paramsObj.serviceId);
+ // return this.http.delete<any>(url);
+ // }
+ // // query CSMF slicing business progress
+ // csmfSlicingProgress(paramsObj) {
+ // let url = this.url.csmfGetProgress.replace("{serviceId}", paramsObj.serviceId);
+ // return this.http.get<any>(url);
+ // }
csmfSlicingPurchase(paramsObj: any, failedCallback?:any){
let url = this.url.csmfPurchase;
return this.Http.httpAxios("post", url, paramsObj, failedCallback);