diff options
author | 2019-12-12 10:18:45 +0800 | |
---|---|---|
committer | 2019-12-12 10:18:50 +0800 | |
commit | b473586220ef2f1b3905a4028639fde8709cfbe5 (patch) | |
tree | 1f5e322cb073244d13cdbdb06f31d86c0e410fcc /usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html | |
parent | bc115d88c7cbb728880839dd5e32987db167234b (diff) |
fix:fix bugs of slicing business page
Change-Id: I41cdecff5e85df536b94078cd999118772fe92da
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html | 67 |
1 files changed, 45 insertions, 22 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html index 998ae287..5ca936bc 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html @@ -9,9 +9,19 @@ </div> </div> <div class="slicing-resource-table-list"> - <nz-table #basicTable [nzData]="listOfData" [nzFrontPagination]="false" nzShowSizeChanger - [nzPageSizeOptions]="[5,10,15,20]" [nzTotal]='total' [(nzPageSize)]="pageSize" [(nzPageIndex)]='pageIndex' - [nzLoading]="loading" (nzPageIndexChange)="searchData()" (nzPageSizeChange)="searchData(true)"> + <nz-table + #basicTable + [nzData]="listOfData" + [nzFrontPagination]="false" + nzShowSizeChanger + [nzPageSizeOptions]="[5,10,15,20]" + [nzTotal]='total' + [(nzPageSize)]="pageSize" + [(nzPageIndex)]='pageIndex' + [nzLoading]="loading" + (nzPageIndexChange)="searchData()" + (nzPageSizeChange)="searchData(true)" + > <thead> <tr> <th>Service Instance Id</th> @@ -19,7 +29,7 @@ <th>Service Type</th> <th>S-NSSAI</th> <th>Status</th> - <th width="130px">Aciton</th> + <th width="180px">Aciton</th> <th width="100px">Detail</th> </tr> </thead> @@ -32,26 +42,39 @@ <td>{{ data.service_snssai }}</td> <td> - <span class="marginLeft10"> - {{ data.last_operation_progress !== 100?data.last_operation_type+' '+data.last_operation_progress+'%':data.orchestration_status }} + <span class="marginLeft10"> + <span *ngIf="data.last_operation_progress !== 100"> + {{data.last_operation_progress+'%'}} </span> - <nz-progress *ngIf="data.last_operation_progress !== 100" - [nzPercent]="data.last_operation_progress" [nzShowInfo]="false" nzStatus="active"> - </nz-progress> - </td> - <td> + <br> + {{data.orchestration_status}} + </span> + <br> + </td> + <td> + <div class="action-icon"> <nz-switch [ngModel]="data.orchestration_status==='activated'?true:false" - [nzDisabled]="data.last_operation_progress !== 100" - (ngModelChange)="switchChange(data,i)"></nz-switch> - <i [ngClass]="{'cannotclick':data.last_operation_progress !== 100}" nz-icon - nzType="poweroff" nzTheme="outline" class="anticon anticon-poweroff" - (click)="terminate(data)"></i> - </td> - <td> - <!--<i [ngClass]="{'cannotclick':data.last_operation_progress !== 100}"--> - <!--class="anticon anticon-bars"--> - <!--(click)="showdetail(data)">--> - <!--</i>--> + [nzDisabled]="data.last_operation_progress !== 100" + (ngModelChange)="switchChange(data,i)" + ></nz-switch> + <nz-progress *ngIf="data.last_operation_progress !== 100 && data.orchestration_status !== 'delete'" + [nzPercent]="data.last_operation_progress" + [nzShowInfo]="false" nzStatus="active"></nz-progress> + </div> + <div class="action-icon"> + <i [ngClass]="{'cannotclick':data.last_operation_progress !== 100 || data.orchestration_status==='activated'}" + nz-icon + nzType="poweroff" + nzTheme="outline" + class="anticon anticon-poweroff" + (click)="terminate(data)" + ></i> + <nz-progress *ngIf="data.last_operation_progress !== 100 && terminateStart" + [nzPercent]="data.last_operation_progress" + [nzShowInfo]="false" nzStatus="active"></nz-progress> + </div> + </td> + <td> <a (click)="showdetail(data)" [ngClass]="{'cannotclick':data.last_operation_progress !== 100}">View Detail</a> </td> |