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
|
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-slicing-task-management',
templateUrl: './slicing-task-management.component.html',
styleUrls: ['./slicing-task-management.component.less']
})
export class SlicingTaskManagementComponent implements OnInit {
constructor() { }
ngOnInit() { }
showDetail: boolean = false;
selectedValue = null;
detailData: object = {};
moduleTitle: string = "";
listOfData = [
{
key: '1',
name: 'John Brown',
age: 32,
status: 0
},
{
key: '2',
name: 'Jim Green',
age: 42,
status: 0
},
{
key: '3',
name: 'Joe Black',
age: 32,
status: 1
}
];
showdetail(data: any) {
console.log(data, this.showDetail)
this.detailData = data;
this.showDetail = true;
this.moduleTitle = data.status === 0 ? "Check Configuration" : "View Progress";
}
}
|