summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.html
blob: 81f4c9612406ffcb2f2ff32409527a414b8b7b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<div>
	<div nz-row>
		<div nz-col nzSpan="12" class="task_status">
			<span>Status : </span>
			<nz-select
				nzShowSearch
				[(ngModel)]="selectedValue"
				nzPlaceHolder="Select a processing status"
				(ngModelChange)="processingStatusChange()"
			>
				<nz-option
					*ngFor="let item of statusOptions"
					[nzLabel]="item.title"
					[nzValue]="item.value"
				></nz-option>
			</nz-select>
		</div>
	</div>
	<div>
		<nz-table
			#basicTable
			nzShowPagination
			nzPageSizeOptions
			nzShowSizeChanger
			[nzTotal]="total"
			[nzLoading]="loading"
			[nzData]="listOfData"
			[nzPageIndex]="pageNum"
			[nzPageSize]="pageSize"
			[nzFrontPagination]="false"
			(nzPageSizeChange)="pageSizeChange($event)"
			(nzPageIndexChange)="pageNumChange($event)"
		>
			<thead>
				<tr>
					<th>Task ID</th>
					<th>Task Name</th>
					<th>S-NSSAI</th>
					<th>Service Type</th>
					<th>Created time</th>
					<th>Status</th>
					<th>Action</th>
				</tr>
			</thead>
			<tbody>
				<tr *ngFor="let data of basicTable.data">
					<td>{{ data.task_id }}</td>
					<td>{{ data.task_name }}</td>
					<td>{{ data.service_snssai }}</td>
					<td>{{ data.service_type }}</td>
					<td>{{ data.create_time | date: "yyyy-MM-dd HH:mm:ss"}}</td>
					<td>{{ data.processing_status }}</td>
					<td>
						<span
							*ngIf="data.processing_status === 'Planning'"
							class="task_operation_disabled"
							>{{ data.operation }}</span
						>
						<a
							(click)="showdetail(data)"
							*ngIf="data.processing_status !== 'Planning'"
							>{{ data.operation }}</a
						>
					</td>
				</tr>
			</tbody>
		</nz-table>
	</div>
	<app-slicing-task-model
		[moduleTitle]="moduleTitle"
		[showDetail]="showDetail"
		[taskId]="taskId"
		(cancel)="showDetail = $event"
	>
	</app-slicing-task-model>
	<app-check-process-model
		[moduleTitle]="moduleTitle"
		[showProcess]="showProcess"
		[taskId]="taskId"
		(cancel)="showProcess = $event"
	>
	</app-check-process-model>
</div>