Browse Source

31天再入院诊断单元格拆开

zhouna 4 years ago
parent
commit
1ec1574787
2 changed files with 5 additions and 2 deletions
  1. 3 0
      src/css/readmission.less
  2. 2 2
      src/js/readmission.js

+ 3 - 0
src/css/readmission.less

@@ -83,6 +83,9 @@ h2{
     td{
     td{
         white-space: nowrap;
         white-space: nowrap;
     }
     }
+    .ellipsis{
+        max-width: 200px;
+    }
     .moduleNumber{
     .moduleNumber{
         text-align: center;
         text-align: center;
     }
     }

+ 2 - 2
src/js/readmission.js

@@ -193,7 +193,7 @@ function renderTab(data,hisId,activePage){
           <td class="textCenter">${item.details[0].level || "-"}</td> 
           <td class="textCenter">${item.details[0].level || "-"}</td> 
           <td class="textCenter">${item.details[0].scoreRes || "-"}</td> 
           <td class="textCenter">${item.details[0].scoreRes || "-"}</td> 
           <td class="textCenter">${item.details[0].behDeptName || "-"}</td> 
           <td class="textCenter">${item.details[0].behDeptName || "-"}</td> 
-          <td class="textCenter" rowspan="2">${item.diagnose || "-"}</td> 
+          <td class="textCenter"><div class="ellipsis" title="${item.diagnose}">${item.diagnose || "-"}</div></td> 
           <td class="textCenter">${item.details[0].behospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[0].behospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[0].leaveHospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[0].leaveHospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[0].behospitalDayNum || "-"}</td> 
           <td class="textCenter">${item.details[0].behospitalDayNum || "-"}</td> 
@@ -213,7 +213,7 @@ function renderTab(data,hisId,activePage){
           <td class="textCenter">${item.details[1].level || "-"}</td> 
           <td class="textCenter">${item.details[1].level || "-"}</td> 
           <td class="textCenter">${item.details[1].scoreRes || "-"}</td> 
           <td class="textCenter">${item.details[1].scoreRes || "-"}</td> 
           <td class="textCenter">${item.details[1].behDeptName || "-"}</td> 
           <td class="textCenter">${item.details[1].behDeptName || "-"}</td> 
-          <td class="textCenter delete">${item.diagnose || "-"}</td> 
+          <td class="textCenter"><div class="ellipsis" title="${item.diagnose}">${item.diagnose || "-"}</div></td> 
           <td class="textCenter">${item.details[1].behospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[1].behospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[1].leaveHospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[1].leaveHospitalDate || "-"}</td> 
           <td class="textCenter">${item.details[1].behospitalDayNum || "-"}</td> 
           <td class="textCenter">${item.details[1].behospitalDayNum || "-"}</td>