dashboard.component.html
2.5 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
<!-- งานใหม่ -->
<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>
<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 | slice:0:20 }} ....</div>
<!-- <div class="desc" style="text-align: left; text-align: bottom; color: black;">{{(item.COMMENT > 20)? | (item.COMMENT | slice:0:20) + '....':(item.COMMENT)}}</div> -->
</div>
</a>
</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> -->