فهرست منبع

Merge branch 'simplatform' of http://wcollector.idatabank.com:5230/dbs289/LifeCenter into simplatform

* 'simplatform' of http://wcollector.idatabank.com:5230/dbs289/LifeCenter:
  [진료관리 - 상세] 환자정보 토글 애니메이션 어색한 부분 수정.
  [진료관리 - 대시보드] 페이징 전체일 때 오류 수정.
  [진료관리 - 상세] 데이터 없을때 colspan 수정.
  [진료관리 - 상세] 차트 제목 잘못 나오는 오류 수정.
maengje 4 سال پیش
والد
کامیت
4ff3271b7d
2فایلهای تغییر یافته به همراه35 افزوده شده و 18 حذف شده
  1. 18 14
      src/main/webapp/WEB-INF/jsp/clinic/info.jsp
  2. 17 4
      src/main/webapp/WEB-INF/jsp/clinic/state.jsp

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

@@ -284,7 +284,10 @@ function retrievePhrData(phrType) {
             	drawPhrChart(phrType+"Chart", datas, phrName);
 						}
 
-			var contents = "<tr><td colspan=3>데이터가 없습니다.</td></tr>" ;
+      var contents = "<tr><td colspan=4>데이터가 없습니다.</td></tr>" ;
+      if (phrType==="bloodPressure") {
+        contents = "<tr><td colspan=5>데이터가 없습니다.</td></tr>" ;
+      }
 			if (datas.length > 0) {
 				contents = "";
 				datas.forEach(function(d) {
@@ -488,7 +491,7 @@ function retrieveSymptomData() {
         dataType : "json",
         success  : function( datas ){
 
-			var html = "<tr><td colspan=18>데이터가 없습니다.</td></tr>" ;
+			var html = "<tr><td colspan=19>데이터가 없습니다.</td></tr>" ;
 			var checkSymbol = '<i class="mdi mdi-check-bold"></i>';
 			if (datas.length > 0) {
 				html = "";
@@ -650,7 +653,7 @@ function retrieveMemoData() {
         dataType : "json",
         success  : function( datas ){
 
-			var html = "<tr><td colspan=3>데이터가 없습니다.</td></tr>" ;
+			var html = "<tr><td colspan=4>데이터가 없습니다.</td></tr>" ;
 			if (datas.length > 0) {
 				html = "";
 				contents = datas.forEach(function(d) {
@@ -765,18 +768,19 @@ $(document).ready(function() {
 	<c:forEach var="phr" items="${oxygenSaturationResult}" varStatus="status">
 	oxygenSaturationDatas.push({createDate: "${phr.createDate}", phrValue: "${phr.phrValue}"});
 	</c:forEach>
-  drawPhrChart("oxygenSaturationChart", oxygenSaturationDatas, "체온");
+  drawPhrChart("oxygenSaturationChart", oxygenSaturationDatas, "산소포화도");
   
   const bloodSugarDatas = [];
 	<c:forEach var="phr" items="${bloodSugarResult}" varStatus="status">
 	bloodSugarDatas.push({createDate: "${phr.createDate}", phrValue: "${phr.phrValue}"});
 	</c:forEach>
-	drawPhrChart("bloodSugarChart", bloodSugarDatas, "체온");
+	drawPhrChart("bloodSugarChart", bloodSugarDatas, "혈당");
 
-	// 상단 환자 정보 영역 토글 이벤트
+  // 상단 환자 정보 영역 토글 이벤트
+  $("#userInfo").find(".user-info").show();
 	$(document).on("click", ".toggle .toggleHeader", function () {
     $(this).find("a.toggleBtn").toggleClass("active");
-    $(this).closest(".card").find(".user-info").slideToggle("fast");
+    $("#userInfo").slideToggle("fast");
   });
 
   // 섹션 토글
@@ -1212,7 +1216,7 @@ $(document).ready(function() {
                       </h1>
                       <a href="javscript:;" class="toggleBtn">메뉴</a>
                     </div>
-                    <div class="card-body user-info">
+                    <div id="userInfo" class="card-body user-info">
                       <div class="mb-3">
                         <button class="patientInfo btn btn-primary" onclick="gotoPatientInfo()"><i class="mdi mdi-account"></i> 환자정보 관리</button>
                       </div>
@@ -1314,7 +1318,7 @@ $(document).ready(function() {
                                     </c:when>
                                     <c:otherwise>
                                       <tr>
-                                        <td colspan=3>데이터가 없습니다.</td>
+                                        <td colspan=19>데이터가 없습니다.</td>
                                       </tr>
                                     </c:otherwise>
                                   </c:choose>
@@ -1387,7 +1391,7 @@ $(document).ready(function() {
                                   </c:when>
                                   <c:otherwise>
                                     <tr>
-                                      <td colspan=3>데이터가 없습니다.</td>
+                                      <td colspan=4>데이터가 없습니다.</td>
                                     </tr>
                                   </c:otherwise>
                                 </c:choose>
@@ -1465,7 +1469,7 @@ $(document).ready(function() {
                                   </c:when>
                                   <c:otherwise>
                                     <tr>
-                                      <td colspan=3>데이터가 없습니다.</td>
+                                      <td colspan=5>데이터가 없습니다.</td>
                                     </tr>
                                   </c:otherwise>
                                 </c:choose>
@@ -1539,7 +1543,7 @@ $(document).ready(function() {
                                   </c:when>
                                   <c:otherwise>
                                     <tr>
-                                      <td colspan=3>데이터가 없습니다.</td>
+                                      <td colspan=4>데이터가 없습니다.</td>
                                     </tr>
                                   </c:otherwise>
                                 </c:choose>
@@ -1613,7 +1617,7 @@ $(document).ready(function() {
                                   </c:when>
                                   <c:otherwise>
                                     <tr>
-                                      <td colspan=3>데이터가 없습니다.</td>
+                                      <td colspan=4>데이터가 없습니다.</td>
                                     </tr>
                                   </c:otherwise>
                                 </c:choose>
@@ -1687,7 +1691,7 @@ $(document).ready(function() {
                                     </c:when>
                                     <c:otherwise>
                                       <tr>
-                                        <td colspan=3>데이터가 없습니다.</td>
+                                        <td colspan=4>데이터가 없습니다.</td>
                                       </tr>
                                     </c:otherwise>
                                   </c:choose>

+ 17 - 4
src/main/webapp/WEB-INF/jsp/clinic/state.jsp

@@ -147,7 +147,7 @@ function retrieveStateData(page, needInitPagination) {
 								temperature += ' ℃ ';
 								var bloodPressure = (d.bloodPressureDisplay) + " ";
 								var oxygenSaturation = (d.oxygenSaturation || "--") + " % ";
-								html += '<div class="col-lg-2 col-md-6 mb-4">';
+								html += '<li class="col-lg-2 col-md-6 mb-4">';
 								html += '	<div class="patients-stats" data-url="./info?patientIdx='+d.patientIdx+'">';
 								html += '		<div class="name">';
 								html += '			'+(d.wardNumber !== "" ? d.wardNumber+'/' : '')+d.roomNumber+'('+d.patientName+')';
@@ -162,7 +162,7 @@ function retrieveStateData(page, needInitPagination) {
 								html += '				</ul>';
 								html += '			</div>';
 								html += '		</div>';
-								html += '      <div class="stats '+danger+'">';
+								html += '   <div class="stats '+danger+'">';
 								html += '			<ul>';
 								html += '				<li class="fever '+temperatureStep+' '+temperatureCheck+'">'+temperature+'</li>';
 								html += '				<li class="bloodPressure '+bloodPressureStep+' '+bloodPressureCheck+'">'+bloodPressure+'</li>';
@@ -170,7 +170,7 @@ function retrieveStateData(page, needInitPagination) {
 								html += '			</ul>';
 								html += '		</div>';
 								html += '	</div>';
-								html += '</div>';
+								html += '</li>';
 							});
 						};
 
@@ -273,8 +273,21 @@ $(document).ready(function() {
 		var viewEntry = $(this).find("option:selected").val();
     setPageSize(viewEntry);
     retrieveStateData(1, true);
+
+    console.log(viewEntry);
+    if(viewEntry === '10000'){
+      $('.patients-list').addClass('all');
+    }
+    else{
+      $('.patients-list').removeClass('all');
+    }
   });
 
+  // 초기값 처리
+  if(getPageSize() === '10000'){
+    $('.patients-list').addClass('all');
+  }
+
   retrieveStateData(mCurrentPage, true);
 
   $("#reloadIntervalSelect").val(getReloadIntervalTime());
@@ -451,7 +464,7 @@ $(document).ready(function() {
 									<ul class="row patients-list">
 										<c:choose>
 										<c:when test="${total == 0}">
-										<li class="blankItem">표시할 데이터가 없습니다.</div>
+										<div class="blankItem">표시할 데이터가 없습니다.</div>
 										</c:when>
 										<c:otherwise>
 										<c:forEach var="patient" items="${items}" varStatus="status">