dashboard.component.html
6.99 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!-- งานใหม่ -->
<!-- Active -->
<div class="portlet-body">
<div class="tabbable-custom nav-justified">
<ul class="nav nav-tabs">
<li class="active sbold font">
<a href="#tab1" data-toggle="tab" aria-expanded="true">ติดตั้ง</a>
</li>
<li class="sbold">
<a href="#tab2" data-toggle="tab" aria-expanded="false">page 2</a>
</li>
<li class="sbold">
<a href="#tab3" data-toggle="tab" aria-expanded="false">page 3</a>
</li>
</ul>
<div class="tab-content">
<div class="panel tab-pane active" id="tab1">
<div class="caption">
<h1 class="icon-bubble font-green-sharp">
<span class="caption-subject font-green-sharp sbold font"> Active</span>
</h1>
<div class="input-group" style="float: right; margin-top: 11px;">
<div class="input-icon right">
<i class="icon-magnifier">
</i>
<input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch">
</div>
</div>
<hr>
<br>
</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 | filter:FilterSearch: '' ">
<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>
<br>
<br>
<br>
<br>
<!-- On Hold -->
<div class="caption">
<h1 class="icon-bubble font-grey-gallery">
<span class="caption-subject font-grey-gallery sbold font"> On Hold</span>
</h1>
<div class="input-group" style="float: right; margin-top: 11px;">
<div class="input-icon right">
<i class="icon-magnifier">
</i>
<input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold">
</div>
</div>
<hr>
<br>
</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 resultDataOnHold | filter:FilterSearchOnHold: '' ">
<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 class="panel tab-pane" id="tab2">page 2</div>
<div class="panel tab-pane" id="tab3">page 3</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> -->