dashboard.component.html
2.29 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
<!-- งานใหม่ -->
<div class="row">
<div class="col-lg-6 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData">
<a class="dashboard-stat dashboard-stat-v2 green" href="http://vtiger.sourcecode.co.th/index.php?action=DetailView&module=HelpDesk&parenttab=Support&record=195885" 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))}">{{(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; ">{{item.status}}</div>
<div class="number" style="margin-top: -8px;">
<span data-counter="counterup" data-value="" style=" color: black;">{{item.custgroupName}}</span>
</div>
<div class="desc" style=" color: black;">{{item.team}}</div><br>
<div class="desc" style="text-align: left; color: black;">{{item.COMMENT | slice:0:40 }} ....</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> -->