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="180px">Aciton</th>
33 <th width="110px">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 <span *ngIf="data.last_operation_progress !== 100">
47 {{data.last_operation_progress+'%'}}
50 {{data.orchestration_status}}
55 <div class="action-icon">
56 <nz-switch [ngModel]="data.orchestration_status==='activated'?true:false"
57 [nzDisabled]="data.last_operation_progress !== 100"
58 (ngModelChange)="switchChange(data,i)"
60 <nz-progress *ngIf="data.last_operation_progress !== 100 && data.orchestration_status !== 'delete'"
61 [nzPercent]="data.last_operation_progress"
62 [nzShowInfo]="false" nzStatus="active"></nz-progress>
64 <div class="action-icon">
65 <i [ngClass]="{'cannotclick':data.last_operation_progress !== 100 || data.orchestration_status==='activated'}"
69 class="anticon anticon-poweroff"
70 (click)="terminate(data)"
72 <nz-progress *ngIf="data.last_operation_progress !== 100 && terminateStart"
73 [nzPercent]="data.last_operation_progress"
74 [nzShowInfo]="false" nzStatus="active"></nz-progress>
78 <a (click)="showdetail(data)"
79 [ngClass]="{'cannotclick':data.last_operation_progress !== 100}">View Detail</a>
87 <app-notification #notification [isServicesList]="false" [parentComponent]="'slicing'"></app-notification>