|
@@ -98,17 +98,18 @@ function retrievePhrData() {
|
|
|
if (datas.length > 0) {
|
|
|
contents = "";
|
|
|
datas.forEach(d => {
|
|
|
+ var danger = d.isWarning ? "text-danger" : "";
|
|
|
var row = "";
|
|
|
row += "<tr>";
|
|
|
row += "<td>" + d.createDate + "</td>";
|
|
|
if (phrType==="bloodPressure") {
|
|
|
- row += "<td><span class=''>" + (isNaN(parseInt(d.phrValue)) ? "--" : parseInt(d.phrValue)) + " / " + (isNaN(parseInt(d.phrValue2)) ? "--" : parseInt(d.phrValue2)) + "</span></td>";
|
|
|
+ row += "<td><span class='"+danger+"'>" + (isNaN(parseInt(d.phrValue)) ? "--" : parseInt(d.phrValue)) + " / " + (isNaN(parseInt(d.phrValue2)) ? "--" : parseInt(d.phrValue2)) + "</span></td>";
|
|
|
}
|
|
|
else if (phrType==="temperature") {
|
|
|
- row += "<td><span class=''>" + d.phrValue + "</span></td>";
|
|
|
+ row += "<td><span class='"+danger+"'>" + d.phrValue + "</span></td>";
|
|
|
}
|
|
|
else {
|
|
|
- row += "<td><span class=''>" + parseInt(d.phrValue) + "</span></td>";
|
|
|
+ row += "<td><span class='"+danger+"'>" + parseInt(d.phrValue) + "</span></td>";
|
|
|
}
|
|
|
row += "<td>" + d.recordedByName + "</td>";
|
|
|
row += "</tr>";
|
|
@@ -408,7 +409,7 @@ $(document).ready(function() {
|
|
|
drawPhrChart(datas, "체온");
|
|
|
|
|
|
// 상단 환자 정보 영역 토글 이벤트
|
|
|
- $('.toggle .card-header a.toggleBtn').click(function () {
|
|
|
+ $('.toggle .card-header').click(function () {
|
|
|
$('.toggle .card-header a.toggleBtn').toggleClass('active');
|
|
|
$('.toggle .user-info').toggleClass('active');
|
|
|
})
|
|
@@ -940,7 +941,7 @@ $(document).ready(function() {
|
|
|
<c:forEach var="i" begin="1" end="${phrTotal}">
|
|
|
<tr>
|
|
|
<td><c:out value="${phrItems[phrTotal-i].createDate}" /></td>
|
|
|
- <td><span class=""><c:out value="${phrItems[phrTotal-i].phrValue} ℃" /></span></td>
|
|
|
+ <td><span class="${phrItems[phrTotal-i].isWarning ? 'text-danger' : ''}"><c:out value="${phrItems[phrTotal-i].phrValue} ℃" /></span></td>
|
|
|
<td><c:out value="${phrItems[phrTotal-i].recordedByName}" /></td>
|
|
|
</tr>
|
|
|
</c:forEach>
|