1 <div class="slicing-resource-table">
3 <div nz-col nzSpan="12" class="task_status">
5 <nz-select nzShowSearch nzPlaceHolder="Select a processing status" [(ngModel)]="selectedValue"
6 (ngModelChange)="getListOfProcessingStatus()">
7 <nz-option *ngFor="let item of statusOptions" [nzLabel]="item" [nzValue]="item"></nz-option>
11 <div class="slicing-resource-table-list">
15 [nzFrontPagination]="false"
17 [nzPageSizeOptions]="[5,10,15,20]"
19 [(nzPageSize)]="pageSize"
20 [(nzPageIndex)]='pageIndex'
22 (nzPageIndexChange)="searchData()"
23 (nzPageSizeChange)="searchData(true)"
27 <th>Service Instance Id</th>
28 <th>Service Instance Name</th>
32 <th width="130px">Aciton</th>
33 <th width="100px">Detail</th>
37 <ng-template ngFor let-data [ngForOf]="basicTable.data" let-i="index">
39 <td>{{ data.service_instance_id }}</td>
40 <td>{{ data.service_instance_name }}</td>
41 <td>{{ data.service_type }}</td>
42 <td>{{ data.service_snssai }}</td>
45 <span class="marginLeft10">
46 {{ data.last_operation_progress !== 100?data.last_operation_type+' '+data.last_operation_progress+'%':data.orchestration_status }}
48 <nz-progress *ngIf="data.last_operation_progress !== 100"
49 [nzPercent]="data.last_operation_progress"
50 [nzShowInfo]="false" nzStatus="active"></nz-progress>
53 <nz-switch [ngModel]="data.orchestration_status==='activated'?true:false"
54 [nzDisabled]="data.last_operation_progress !== 100"
55 (ngModelChange)="switchChange(data,i)"
57 <i [ngClass]="{'cannotclick':data.last_operation_progress !== 100}"
61 class="anticon anticon-poweroff"
62 (click)="terminate(data)"
66 <!--<i [ngClass]="{'cannotclick':data.last_operation_progress !== 100}"-->
67 <!--class="anticon anticon-bars"-->
68 <!--(click)="showdetail(data)">-->
70 <a (click)="showdetail(data)" [ngClass]="{'cannotclick':data.last_operation_progress !== 100}">detail</a>