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>
10 <button nz-button nzType="primary" class="buy-button">Purchase</button>
12 <div class="slicing-resource-table-list">
13 <nz-table #basicTable [nzData]="listOfData" [nzFrontPagination]="false" nzShowSizeChanger
14 [nzPageSizeOptions]="[5,10,15,20]" [nzTotal]='total' [(nzPageSize)]="pageSize" [(nzPageIndex)]='pageIndex'
15 [nzLoading]="loading" (nzPageIndexChange)="searchData()" (nzPageSizeChange)="searchData(true)">
19 <th width=280>Service Instance Id</th>
20 <th width=200>Service Instance Name</th>
21 <th width=110>Service Type</th>
22 <th width=110>S-NSSAI</th>
23 <th width=110>Status</th>
24 <th width=180>Aciton</th>
28 <ng-template ngFor let-data [ngForOf]="basicTable.data" let-i="index">
31 <td>{{ data.service_instance_id }}</td>
32 <td>{{ data.service_instance_name }}</td>
33 <td>{{ data.service_type?data.service_type:'--' }}</td>
34 <td>{{ data.service_snssai }}</td>
36 <span class="marginLeft10">
37 <span *ngIf="data.last_operation_progress && data.last_operation_progress !== '100'">
38 {{data.last_operation_progress+'%'}}
41 {{data.orchestration_status}}
46 <div class="action-icon">
47 <nz-switch [ngModel]="data.orchestration_status==='activated'?true:false"
48 [nzDisabled]="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100'"
49 (ngModelChange)="switchChange(data,i)"></nz-switch>
51 *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && data.last_operation_type !== 'DELETE'"
52 [nzPercent]="data.last_operation_progress" [nzShowInfo]="false" nzStatus="active">
55 <div class="action-icon">
56 <i [ngClass]="{'cannotclick': data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && (data.last_operation_type !== 'DELETE' || data.orchestration_status==='activated')}"
57 nz-icon nzType="poweroff" nzTheme="outline" class="anticon anticon-poweroff"
58 (click)="terminate(data)"></i>
60 *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && terminateStart"
61 [nzPercent]="data.last_operation_progress" [nzShowInfo]="false" nzStatus="active">