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" (click)="OrderModelShow()">Create</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=200>Created Time</th>
22 <!--<th width=110>Service Type</th>-->
23 <th width=110>S-NSSAI</th>
24 <th width=110>Status</th>
25 <th width=120>Activate</th>
26 <th width=130>Terminate</th>
30 <ng-template ngFor let-data [ngForOf]="basicTable.data" let-i="index">
33 <td>{{ data.order_id }}</td>
34 <td>{{ data.order_name }}</td>
35 <td>{{ data.order_creation_time }}</td>
36 <!--<td>{{ data.service_type?data.service_type:'--' }}</td>-->
37 <td>{{ data.service_snssai }}</td>
39 <span class="marginLeft10">
45 <div class="action-icon">
46 <nz-switch [ngModel]="data.order_status==='activated'?true:false"
47 [nzDisabled]="data.order_status === 'processing'|| (data.order_status !== 'processing' && data.last_operation_progress && data.last_operation_progress !== '100')"
48 (ngModelChange)="switchChange(data,i)"></nz-switch>
50 *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && data.last_operation_type !== 'DELETE'"
51 [nzPercent]="data.last_operation_progress" [nzShowInfo]="true" nzStatus="active">
56 <div class="action-icon">
57 <i [ngClass]="{'cannotclick':data.order_status === 'processing' || ( data.last_operation_progress && data.last_operation_progress !== '100' && (data.last_operation_type === 'DELETE' || data.last_operation_type === 'activated'))}"
58 nz-icon nzType="poweroff" nzTheme="outline" class="anticon anticon-poweroff"
59 (click)="terminate(data,i)"></i>
61 *ngIf="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && terminateStart[i]"
62 [nzPercent]="data.last_operation_progress" [nzShowInfo]="true" nzStatus="active">
71 <app-business-order [showModel]="businessOrderShow" (cancel)="orderModelClose($event)"></app-business-order>