浏览代码

6809,6808,

zhouna 4 年之前
父节点
当前提交
679f26d59f
共有 3 个文件被更改,包括 11 次插入37 次删除
  1. 7 30
      src/css/index.less
  2. 0 3
      src/index.html
  3. 4 4
      src/index.js

+ 7 - 30
src/css/index.less

@@ -6,7 +6,7 @@
   color: #5B8FEE;
 }
 .container{
-  // min-width: 360px;
+  min-width: 360px;
 }
 .content{
   background: #E2E5EF;
@@ -23,7 +23,7 @@
     width: 16px;
     height: 18px;
     vertical-align: middle;
-    margin-right: 7px;
+    margin-right: 2px;
   }
   .iselect{
     background: url("../images/iselect.png") no-repeat;
@@ -48,13 +48,8 @@
   }
 }
 .box{
-  /*border: 1px solid #E2E5EF;
-  margin-bottom: 8px;*/
   background: #fff;
 }
-/*.sum-box{
-  display: none;
-}*/
 .title{
   height: 44px;
   line-height: 44px;
@@ -75,8 +70,7 @@
   }
 }
 .flawList{
-  padding: 0 15px 20px;
-  overflow-y: auto;
+  padding: 0 15px 60px;
   table{
     width: 100%;
     margin-top: 9px;
@@ -95,6 +89,9 @@
       white-space: nowrap;
       padding:10px 5px;
       border: 1px #E2E5EF solid;
+      &:nth-child(2){
+        white-space: unset;
+      }
       img{
         vertical-align: middle;
         margin-right: 5px;
@@ -102,34 +99,14 @@
     }
   }
 }
-/*.flawItem{
-  border-bottom: 1px solid #E2E5EF;
-  line-height: 20px;
-  padding: 10px 100px 10px 20px;
-  position: relative;
-}
-.flawItemIconBox{
-  position: absolute;
-  display: inline-block;
-  width: 16px;
-  height: 16px;
-  left: 0;
-  top: 13px;
-}*/
 .flawItemIcon{
   width: 16px;
   
 }
 .flawItemMsgBox{
-  /*display: inline-block;
-  width: 100%;
-  border-right: 1px solid #E2E5EF;*/
   box-sizing: border-box;
 }
 .flawItemScore{
-  /*position: absolute;
-  top: 50%;*/
-  width: 100px;
   text-align: right;
   height: 20px;
   line-height: 20px;
@@ -137,9 +114,9 @@
 }
 .flawItemNum{
   display: inline-block;
-  width: 30px;
   text-align: left;
   color: #FF4D4F;
+  margin-right: 5px;
 }
 .empty{
   text-align: center;

+ 0 - 3
src/index.html

@@ -31,7 +31,6 @@
             <td>
               <div class="item">
                 <i class="select"></i>
-                <!--<img src="./images/select.png" alt="" class="icon"/>-->
                 <span class="label-name">病历等级:</span>
                 <span class="blue" id="level">--</span>
               </div>
@@ -39,7 +38,6 @@
             <td>
               <div class="item">
                 <i class="detail"></i>
-                <!--<img src="./images/detail.png" alt="" class="icon"/>-->
                 <span class="label-name">病历评分:</span>
                 <span class="blue" id="score">--</span>
               </div>
@@ -56,7 +54,6 @@
             <td>
               <div class="item">
                 <i class="iselect"></i>
-                <!--<img src="./images/iselect.png" alt="" class="icon"/>-->
                 <span class="label-name">缺陷总扣分:</span>
                 <span class="red" id="flawMark">--</span>
               </div>

+ 4 - 4
src/index.js

@@ -9,12 +9,12 @@ let behospitalCode = getUrlArgObject("behospitalCode") ||''
 let hospitalId = getUrlArgObject("hospitalId") ||''
 let modeId = getUrlArgObject("modeId") || ''
 
-function setListHei(){
+/*function setListHei(){
     $(".flawList").css({
         height:$(window).height()-90+'px'
     })
 }
-setListHei()
+setListHei()*/
 
 
 function getFLawList(){
@@ -41,7 +41,7 @@ function renderFlawList(data){
               <th width="105">扣分</th>
             </tr>
           </thead>
-          <tbody></tbody>`;
+          <tbody>`;
     const flawList = data&&data.msgDTOList;
     const {level,num,numScore, scoreRes}=data;
     for(let i = 0; i < flawList.length; i++){
@@ -58,7 +58,7 @@ function renderFlawList(data){
         str += flawItem;
         
     }
-    str+="</table>";
+    str+="</tbody></table>";
     if(flawList.length === 0){
         str = `
             <div class="empty">