From 6af0964cc46a27615b8760fd48ba7596b64dd33e Mon Sep 17 00:00:00 2001 From: zhangab Date: Fri, 16 Nov 2018 21:39:32 +0800 Subject: Support NS Package Upload for VF-C Change-Id: I090fd74f40b7dd231f363dfa19f35d3e39b0bbcc Issue-ID: USECASEUI-156 Signed-off-by: zhangab --- usecaseui-portal/src/app/onboard.service.ts | 15 +- .../onboard-vnf-vm/onboard-vnf-vm.component.html | 13 +- .../onboard-vnf-vm/onboard-vnf-vm.component.ts | 207 +++++++++++++-------- 3 files changed, 154 insertions(+), 81 deletions(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/onboard.service.ts b/usecaseui-portal/src/app/onboard.service.ts index 83ae6394..3334bfc3 100644 --- a/usecaseui-portal/src/app/onboard.service.ts +++ b/usecaseui-portal/src/app/onboard.service.ts @@ -74,7 +74,11 @@ export class onboardService { deleteVnfPack: this.baseUrl + "deleteVnfPackage?vnfPkgId=", // Delete Pnf package deletePnfPack: this.baseUrl + "deletePnfPackage?pnfPkgId=", - + + //进度接口 + progress: this.baseUrl + "jobs/" + "_jobId" + "?responseId=" + + // // download ns package // downloadNsData: this.baseUrl + "downLoadNsPackage?nsdInfoId=XXXXX", // //download vnf package @@ -122,13 +126,18 @@ export class onboardService { //------------------------------------------------------------------------------ //onboard sdc ns getNsonboard(requestBody) { - return this.http.get(this.url["onboardNs"], requestBody); + return this.http.post(this.url["onboardNs"], requestBody); } //onboard sdc vnf getVnfonboard(requestBody) { - return this.http.get(this.url["onboardVNF"], requestBody); + return this.http.post(this.url["onboardVNF"], requestBody); } + //onboard progress + getProgress(jobid, responseId) { + let url = this.url.progress.replace("_jobId", jobid) + responseId; + return this.http.get(url); + } //-------------------------------------------------------------------------- // Delete ns vfc package deleteNsIdData(paramsObj) { diff --git a/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.html b/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.html index 105f399f..a3023fb0 100644 --- a/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.html +++ b/usecaseui-portal/src/app/services/onboard-vnf-vm/onboard-vnf-vm.component.html @@ -51,14 +51,21 @@ {{item.nsdName}} 无 {{item.name}} + {{item.nsdVersion}} 无 {{ item.version }} {{item.nsdOnboardingState}} - {{status}} + {{status}} + + + {{item.nsdOperationalState}} {{item.nsdUsageState}} @@ -77,7 +84,7 @@

Click or drag file to this area to upload

-

Support for a single or bulk upload. Strictly prohibit from uploading company data or other band files

+