zhouna 4 years ago
parent
commit
6bcf081438
2 changed files with 12 additions and 20 deletions
  1. 1 1
      src/css/cdssPlan.less
  2. 11 19
      src/js/cdssPlan.js

+ 1 - 1
src/css/cdssPlan.less

@@ -19,7 +19,7 @@ body{
 }
 .operaNameWrap{
     position: fixed;
-    width: calc(100% - 168px);
+    /*width: calc(100% - 168px);*/
     z-index: 1;
 }
 .infoWrap{

+ 11 - 19
src/js/cdssPlan.js

@@ -40,6 +40,10 @@ if(mrId){
         msg = res.data.data ||{}
         window.msg = msg
         renderFollowUp(msg)
+        setTimeout(()=>{
+            adjustWidth();
+        },200)
+
     }
   }).catch(function (err) {
       console.log(err);
@@ -75,14 +79,11 @@ $(document).on('click',".allDis .right,.allDis .secDis",function(){
 
 
 
-function adjustHei(){
-  const iframeHei = $(".bodyWrap").height()
-  const tabHei = $(".tabList").height()
-  $(".contentWrapper").css("height",iframeHei-tabHei-20-30+3+19+'px')
+function adjustWidth(){
+  const iframeWh = $(".bodyWrap").width();console.log(11,iframeWh)
+  $(".operaNameWrap").css("width",iframeWh-168+'px')
 }
 
-
-
 $(function(){
   $.fn.extend({  
     "preventScroll":function(){  
@@ -102,17 +103,8 @@ $(function(){
             }  
         })    
     }  
-  });  
-  // $(".iframeWrap").preventScroll();  
-  /*$(".iframeWrap").preventScroll();
-  $(".recommendWrap").preventScroll();  
-  $(".infoWrap").preventScroll();  
-  $(".medicalKonwledgeWrap .staticSearchB ul").preventScroll(); */
-    /*$(window).on("resize", function(){
-    /*$(".iframeWrap").preventScroll();
-      $(".recommendWrap").preventScroll();
-
-      $(".medicalKonwledgeWrap .staticSearchB ul").preventScroll();
-      adjustHei()
-    })*/
+  });
+    $(window).on('resize', function(){
+        adjustWidth()
+    })
 });