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">
12 <nz-table #basicTable [nzData]="listOfData" [nzFrontPagination]="false" nzShowSizeChanger
13 [nzPageSizeOptions]="[5,10,15,20]" [nzTotal]='total' [(nzPageSize)]="pageSize" [(nzPageIndex)]='pageIndex'
14 [nzLoading]="loading" (nzPageIndexChange)="searchData()" (nzPageSizeChange)="searchData(true)">
17 <th width=280>Service Instance Id</th>
18 <th width=200>Service Instance Name</th>
19 <th width=110>Service Type</th>
20 <th width=110>S-NSSAI</th>
21 <th width=110>Status</th>
22 <th width=180>Aciton</th>
23 <th width=110>Detail</th>
27 <ng-template ngFor let-data [ngForOf]="basicTable.data" let-i="index">
29 <td>{{ data.service_instance_id }}</td>
30 <td>{{ data.service_instance_name }}</td>
31 <td>{{ data.service_type?data.service_type:'--' }}</td>
32 <td>{{ data.service_snssai }}</td>
34 <span class="marginLeft10">
35 <span *ngIf="data.last_operation_progress && data.last_operation_progress !== '100'">
36 {{data.last_operation_progress+'%'}}
39 {{data.orchestration_status}}
44 <div class="action-icon">
45 <nz-switch [ngModel]="data.orchestration_status==='activated'?true:false"
46 [nzDisabled]="data.orchestration_status === 'processing' || (data.orchestration_status !== 'processing' && data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100')"
47 (ngModelChange)="switchChange(data,i)"></nz-switch>
49 *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && data.last_operation_type !== 'DELETE'"
50 [nzPercent]="data.last_operation_progress" [nzShowInfo]="false" nzStatus="active">
53 <div class="action-icon">
54 <i [ngClass]="{'cannotclick': data.orchestration_status !== 'deactivated' || (data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && (data.last_operation_type !== 'DELETE' || data.orchestration_status==='activated'))}"
55 nz-icon nzType="poweroff" nzTheme="outline" class="anticon anticon-poweroff"
56 (click)="terminate(data,i)"></i>
58 *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && terminateStart[i]"
59 [nzPercent]="data.last_operation_progress" [nzShowInfo]="false" nzStatus="active">
64 <!-- [ngClass]="{'cannotclick':data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100'}" -->
65 <a (click)="showdetail(data)"
75 <app-notification #notification [isServicesList]="false" [parentComponent]="'slicing'"></app-notification>