Ver Fonte

[진료관리 - 상세] 혈압/맥박 값 없을 때 차트 끊기도록 수정.

(cherry picked from commit 1dccb0fbfc9c45a0184f70f4150e0c020a0f2876)
sjpark há 4 anos atrás
pai
commit
cdb1503afb
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/main/webapp/WEB-INF/jsp/clinic/info.jsp

+ 3 - 3
src/main/webapp/WEB-INF/jsp/clinic/info.jsp

@@ -379,9 +379,9 @@ function drawBPChart(data) {
 	data.forEach(function(d) {
 		var t = chartDateFormatter(d.recordedDate);
 		xDatas.push(t);
-		y1Datas.push(d.phrValue);
-    y2Datas.push(d.phrValue2);
-    y3Datas.push(d.phrValueExtra);
+		y1Datas.push(d.phrValue === "" ? Number.NaN : d.phrValue);
+    y2Datas.push(d.phrValue2 === "" ? Number.NaN : d.phrValue2);
+    y3Datas.push(d.phrValueExtra === "" ? Number.NaN : d.phrValueExtra);
 	});
 	var ctx = document.getElementById("bloodPressurePulseChart").getContext('2d');
 	myCharts["bloodPressurePulseChart"] = new Chart(ctx, {