Browse Source

窗口大小改变不刷新页面

luolei 4 năm trước cách đây
mục cha
commit
91ccec5730
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/js/qcScore.js

+ 3 - 3
src/js/qcScore.js

@@ -103,19 +103,19 @@ function iframeShow(title){
     $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
     $("#contentIframeIn").css({display:'block'}).attr("src",'advice.html').contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     $(window).resize(function(){
-      $("#contentIframeIn").attr("src",'advice.html').contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+      $("#contentIframeIn").contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     });
   }else if(title === '检验信息'){
     $("#contentIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
     $("#pacsIframeIn").css({display:'block'}).attr("src",'pacs.html').contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     $(window).resize(function(){
-      $("#pacsIframeIn").attr("src",'pacs.html').contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+      $("#pacsIframeIn").contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     });
   }else if(title === '检查信息'){
     $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn").css("display","none")
     $("#assistIframeIn").css({display:'block'}).attr("src",'assist.html').contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     $(window).resize(function(){
-      $("#assistIframeIn").attr("src",'assist.html').contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+      $("#assistIframeIn").contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     });
   }else{
     $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#assistIframeIn").css({display:'none'})