dashboard.component.html
6.21 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!-- งานใหม่ -->
<!-- Active -->
<div class="portlet-body">
<ul class="nav nav-tabs">
<li class="active sbold font">
<a href="#" data-toggle="tab" aria-expanded="true">Active</a>
</li>
<li class="sbold">
<a href="#" data-toggle="tab" aria-expanded="true">xxxx</a>
</li>
<li class="sbold">
<a href="#" data-toggle="tab" aria-expanded="true">xxxx</a>
</li>
</ul>
<br>
<div class="panel panel-default">
<div class="caption">
<h1 class="icon-bubble font-green-sharp">
<span class="caption-subject font-green-sharp sbold font"> Active</span>
<div class="input-icon right">
<i class="icon-magnifier">
</i>
<input type="text" placeholder="Search.." class="form-control sbold font">
</div>
</h1>
<hr>
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-4 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData">
<a class="dashboard-stat dashboard-stat-v2 red "
href="{{item.link}}"
target="_blank"
[ngStyle] = "{'background-color': getColorDay(item.days.toFixed(0))}">
<!-- <div [ngStyle]="{'background-color':item.days === '366.0098' ? 'green' : 'red' }"></<div> -->
<!-- <div class="avater">{{(item.days).toFixed(0)}} D</div> -->
<div class="avater" [ngStyle]="{'background-color': getColorDay(item.days.toFixed(0))}" style="font-size: 26px; text-align: center; font-weight: bold;" >{{item.days.toFixed(0)}}D</div>
<div class="visual">
<i class="fa fa-comments"></i>
</div>
<table>
<tr>
<div class="details" style="width: calc(100% - 50px);">
<div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div>
<div class= "number" style=" color: black; display: block; text-align: right;">
<span data-counter="counterup" data-value="">{{item.custgroupName}}</span>
</div>
<div class="desc" style=" color: black;">{{item.team}}</div><br>
<!-- <div class="desc" style="text-align: left; text-align: bottom; color: black;">{{(item.COMMENT > 20)? | (item.COMMENT | slice:0:20) + '....':(item.COMMENT)}}</div> -->
</div>
</tr>
<tr>
<div class="details" style="width: calc(100% - 50px);">
<div class="desc" style="text-align: left; color: black; margin-top: 100px;">{{item.COMMENT | short}}</div>
</div>
</tr>
</table>
</a>
</div>
</div>
</div>
</div>
<!-- On Hold -->
<div class="panel panel-default">
<div class="caption">
<h1 class="icon-bubble font-red-mint">
<span class="caption-subject font-red-mint sbold font"> On Hold</span>
</h1>
<hr>
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-4 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData">
<a class="dashboard-stat dashboard-stat-v2 red "
href="{{item.link}}"
target="_blank"
[ngStyle] = "{'background-color': getColorDay(item.days.toFixed(0))}">
<!-- <div [ngStyle]="{'background-color':item.days === '366.0098' ? 'green' : 'red' }"></<div> -->
<!-- <div class="avater">{{(item.days).toFixed(0)}} D</div> -->
<div class="avater" [ngStyle]="{'background-color': getColorDay(item.days.toFixed(0))}" style="font-size: 26px; text-align: center; font-weight: bold;" >{{item.days.toFixed(0)}}D</div>
<div class="visual">
<i class="fa fa-comments"></i>
</div>
<table>
<tr>
<div class="details" style="width: calc(100% - 50px);">
<div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div>
<div class= "number" style=" color: black; display: block; text-align: right;">
<span data-counter="counterup" data-value="">{{item.custgroupName}}</span>
</div>
<div class="desc" style=" color: black;">{{item.team}}</div><br>
<!-- <div class="desc" style="text-align: left; text-align: bottom; color: black;">{{(item.COMMENT > 20)? | (item.COMMENT | slice:0:20) + '....':(item.COMMENT)}}</div> -->
</div>
</tr>
<tr>
<div class="details" style="width: calc(100% - 50px);">
<div class="desc" style="text-align: left; color: black; margin-top: 100px;">{{item.COMMENT | short}}</div>
</div>
</tr>
</table>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- งานเก่า
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData">
<a class="dashboard-stat dashboard-stat-v2 {{item.color}}" href="#">
<div class="avater {{item.color}}">{{item.id}} D</div>
<div style="margin-left: 20px; margin-top: 10px; color:aliceblue;">{{item.days + " Days"}}</div>
<div class="visual">
<i class="fa fa-comments"></i>
</div>
<div class="details" style="width: calc(100% - 50px);">
<div class="number">
<span data-counter="counterup" data-value="">{{item.custgroupName}}</span>
</div>
<div class="desc">{{item.team}}</div>
<div class="desc" style="text-align: left;">{{item.comment}}</div>
</div>
</a>
</div>
</div> -->