Browse Source

分配横向滚动

zhouna 4 years ago
parent
commit
7e3784b683
2 changed files with 8 additions and 4 deletions
  1. 1 1
      src/css/allotCheckTask.less
  2. 7 3
      src/js/allotCheckTask.js

+ 1 - 1
src/css/allotCheckTask.less

@@ -23,7 +23,7 @@ h2{
     border: none;
     border-left:10px @disColor solid;
     margin: 54px 0 0;
-    min-width: 1290px;
+    min-width: 1320px;
     min-height: calc(100% - 54px);
     // overflow: auto;
 }

+ 7 - 3
src/js/allotCheckTask.js

@@ -263,9 +263,13 @@ $(function() {
 //高度适应
 function setBoxHeight() {
     const ht = window.innerHeight;
-    $('.table-cont').height(ht - 309 + 'px');
-    $(".patient-table-cont").height(ht - 424 + 'px');
-    $('.overAuto').height(ht - 249 + 'px');
+    let at = 70;console.log($(".tabs:visible"))
+    if($(".tabs:visible").length){  //tab显示时高度
+        at=0;
+    }
+    $('.table-cont').height(ht - (309-at) + 'px');
+    $(".patient-table-cont").height(ht - (424-at) + 'px');
+    $('.overAuto').height(ht - (249-at) + 'px');
 }
 
 //病人列表获取筛选值