ad29c5ed145b9e76bc783a3b6f023159096b02be
[usecase-ui.git] /
1 import { Component, OnInit } from '@angular/core';
2
3 @Component({
4   selector: 'app-slicing-task-management',
5   templateUrl: './slicing-task-management.component.html',
6   styleUrls: ['./slicing-task-management.component.less']
7 })
8 export class SlicingTaskManagementComponent implements OnInit {
9
10   constructor() { }
11
12   ngOnInit() { }
13   showDetail: boolean = false;
14   selectedValue = null;
15   detailData: object = {};
16   moduleTitle: string = "";
17   listOfData = [
18     {
19       key: '1',
20       name: 'John Brown',
21       age: 32,
22       status: 0
23     },
24     {
25       key: '2',
26       name: 'Jim Green',
27       age: 42,
28       status: 0
29     },
30     {
31       key: '3',
32       name: 'Joe Black',
33       age: 32,
34       status: 1
35     }
36   ];
37   showdetail(data: any) {
38     console.log(data, this.showDetail)
39     this.detailData = data;
40     this.showDetail = true;
41     this.moduleTitle = data.status === 0 ? "Check Configuration" : "View Progress";
42   }
43 }