summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2019-09-05 07:49:03 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-05 07:49:03 +0000
commitcaeabfc0f6d5523e2655158f1757f93797613fbf (patch)
treea4c5093a4b2d79bf67491aeec3a0528113d76412 /usecaseui-portal
parent16ea8b7de7d7a51d05c1890144f1799c7e41f8c7 (diff)
parente958aec7ad74d8206815671ffce7ed0cfa11ccaf (diff)
Merge "feat: onboard-vnf-vm page code optimization"
Diffstat (limited to 'usecaseui-portal')
-rw-r--r--usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.html47
-rw-r--r--usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.less2
2 files changed, 0 insertions, 49 deletions
diff --git a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.html b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.html
index 70ee81c0..4f865ff3 100644
--- a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.html
+++ b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.html
@@ -17,7 +17,6 @@
<nz-tab *ngFor="let tab of tabs" [nzTitle]="tab" (nzClick)="handleTabChange(tab)">
<!-- nsList -->
<div class="list" *ngIf="tab === 'NS'">
- <!-- <h3 class="title"> Onboard {{tabTitle}} </h3> -->
<div style="width:100%;height: 30%;margin-bottom: 1%">
<div class="listupload">
<nz-upload nzType="drag" [(nzFileList)]="fileListNS" [nzBeforeUpload]="beforeUploadNS">
@@ -76,7 +75,6 @@
<tbody>
<tr *ngFor="let item of nzTable.data; let i = index; ">
<td>{{i+1}}</td>
- <!--<td *ngIf="item.uuid">{{item.uuid}}</td>-->
<td *ngIf="item.nsdName">{{item.nsdName}}</td>
<td *ngIf="item.nsdName === null || item.nsdName === ''">&nbsp;</td>
@@ -91,10 +89,6 @@
<span *ngIf="item.nsdOnboardingState === null || item.nsdOnboardingState === ''">&nbsp;</span>
<span *ngIf="item.uuid">{{status}}</span>
- <!-- <span *ngIf="item.uuid" [ngClass]="{'active':data.status=='Active','closed':data.status=='Closed','onboarding':data.status=='Onboarding',
- 'updating':data.status=='Updating','deleting':data.status=='Deleting','creating':data.status=='Creating',
- 'scaling':data.status=='Scaling','healing':data.status=='Healing'}">{{data.status || "Active"}}</span>
- <nz-progress *ngIf="item.uuid" *ngIf="data.status == 'Creating' || data.status == 'Deleting' || data.status == 'Scaling' || data.status == 'Healing' " [nzPercent]="data.rate"></nz-progress> -->
</td>
<td>{{item.nsdOperationalState}}</td>
<td>{{item.nsdUsageState}}</td>
@@ -104,31 +98,16 @@
*ngIf="item.uuid"></i>
<i class="anticon anticon-delete" nzType="info" (click)="showConfirm(i,item.id,tab,notificationModel)"
*ngIf="item.id"></i>
- <!--<span *ngIf="item.id" [ngClass]="{'fileIcon':OnboardFile == 'disNone'}">-->
- <!--<span *ngIf="item.id && item.sameid == undefined">-->
- <!--<nz-upload [(nzFileList)]="fileList" [nzBeforeUpload]="beforeUpload">-->
- <!--<i class="anticon anticon-file" type="upload" (click)="onClickId(item.id,tab)"></i>-->
- <!--</nz-upload>-->
- <!--<button nz-button [nzLoading]="nsuploading" (click)="onClick(tab)" [disabled]="fileList.length == 0"-->
- <!--style="margin-top: 16px" *ngIf="item.id==nsdInfoId">-->
- <!--{{ nsuploading ? 'Uploading' : 'Start Upload' }}-->
- <!--</button>-->
- <!--</span>-->
</td>
</tr>
</tbody>
</nz-table>
</nz-spin>
- <!-- <div style="margin-top:8px;">
- Loading state:
- <nz-switch [(ngModel)]="isSpinning"></nz-switch>
- </div> -->
</div>
<!-- VNFList -->
<div class="list" *ngIf="tab === 'VNF'">
- <!-- <h3 class="title"> Onboard {{tabTitle}} </h3> -->
<div style="width:100%;height: 30%;margin-bottom: 1%">
<div class="listupload">
<nz-upload nzType="drag" [(nzFileList)]="fileListVNF" [nzBeforeUpload]="beforeUploadVNF">
@@ -187,7 +166,6 @@
<tbody>
<tr *ngFor="let item of nzTable.data; let i = index; ">
<td>{{i+1}}</td>
- <!--<td *ngIf="item.uuid">{{item.uuid}}</td>-->
<td *ngIf="item.vnfProductName">{{item.vnfProductName}}</td>
<td *ngIf="item.vnfProductName === null || item.vnfProductName === ''">&nbsp;</td>
<td *ngIf="item.name">{{item.name}}</td>
@@ -203,20 +181,6 @@
*ngIf="item.uuid"></i>
<i class="anticon anticon-delete" nzType="info" (click)="showConfirm(i,item.id,tab,notificationModel)"
*ngIf="item.id"></i>
- <!--<span *ngIf="item.id && item.sameid == undefined">-->
- <!--<nz-upload [(nzFileList)]="fileList" [nzBeforeUpload]="beforeUpload">-->
- <!--&lt;!&ndash; <button nz-button> &ndash;&gt;-->
- <!--<i class="anticon anticon-file" type="upload" (click)="onClickId(item.id,tab)"></i>-->
- <!--&lt;!&ndash; <span >upload</span> &ndash;&gt;-->
- <!--&lt;!&ndash; </button> &ndash;&gt;-->
-
- <!--</nz-upload>-->
- <!--<button nz-button [nzLoading]="nsuploading" (click)="onClick(tab)" [disabled]="fileList.length == 0"-->
- <!--style="margin-top: 16px;margin-left: 55px;color: #FFFFFF;font-size: 13px;background-color: #3E9BFF;font-family: ArialMT;"-->
- <!--*ngIf="item.id==vnfPkgId">-->
- <!--{{ nsuploading ? 'Uploading' : 'Start Upload' }}-->
- <!--</button>-->
- <!--</span>-->
</td>
</tr>
</tbody>
@@ -226,7 +190,6 @@
</div>
<!-- PNFList -->
<div class="list" *ngIf="tab === 'PNF'">
- <!-- <h3 class="title"> Onboard {{tabTitle}} </h3> -->
<div style="width:100%;height: 30%;margin-bottom: 1%">
<div class="listupload">
<nz-upload nzType="drag" [(nzFileList)]="fileListPNF" [nzBeforeUpload]="beforeUploadPNF">
@@ -290,16 +253,6 @@
<td>{{item.pnfdUsageState}}</td>
<td>
<i class="anticon anticon-delete" nzType="info" (click)="showConfirm(i,item.id,tab,notificationModel)"></i>
- <!--<span *ngIf="item.id" [ngClass]="{'fileIcon':OnboardFile == 'disNone'}">-->
- <!--<nz-upload [(nzFileList)]="fileList" [nzBeforeUpload]="beforeUpload">-->
- <!--<i class="anticon anticon-file" type="upload" (click)="onClickId(item.id,tab)"></i>-->
- <!--</nz-upload>-->
- <!--<button nz-button [nzLoading]="nsuploading" (click)="onClick(tab)" [disabled]="fileList.length == 0"-->
- <!--style="margin-top: 16px;margin-left: 55px;color: #FFFFFF;font-size: 13px;background-color: #3E9BFF;font-family: ArialMT;"-->
- <!--*ngIf="item.id==vnfPkgId">-->
- <!--{{ nsuploading ? 'Uploading' : 'Start Upload' }}-->
- <!--</button>-->
- <!--</span>-->
</td>
</tr>
</tbody>
diff --git a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.less b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.less
index c31409c9..5ba479de 100644
--- a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.less
+++ b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.less
@@ -57,9 +57,7 @@ hr {
}
.list {
- // background-color: #fff;
border-radius: 5px;
- // padding: 10px;
.listupload {
width: 22%;
vertical-align: top;