luolei 5 years ago
parent
commit
7481a66ee5
2 changed files with 11 additions and 0 deletions
  1. 6 0
      src/js/console.js
  2. 5 0
      src/js/index.js

+ 6 - 0
src/js/console.js

@@ -26,6 +26,9 @@ $(function(){
     initConsole()//质控列表
     getBarData(2)//图标数据获取
     dateChange()
+    $(window).resize(function(){
+        resizeBox()
+    })
     $(window).click(function(){
         window.parent.userActionHide()
         $(".toggleSlide ul").css("display","none")
@@ -64,12 +67,15 @@ $(function(){
 function getDetails(){
     $(".part02 .bingli,.part02 .bingliLis,.part03 .circle .title,.pubEchartB.paymoney .title").click(function(){
       focusMenuItem("YH-ZKK-GKSQXZB_XQ");
+      $(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType)
     })
     $(".part03 .partTitlePub").click(function(){
         focusMenuItem("YH-ZKK-BASYHGLZB_XQ");
+        $(parent.document).find("#contentIframe").attr("src","./partDetailControl.html?from=1&dateType="+dateType)
     })
     $(".paymoney.pubEchart .title").click(function(){
         focusMenuItem("YH-ZKK-KSPJZYTS_XQ");
+        $(parent.document).find("#contentIframe").attr("src","./dayDetail.html?from=1&dateType="+dateType)
     })
     $(".defect .partTitlePub").click(function(){//from 1 console / 2  deptConsole
         focusMenuItem("YH-ZKK-GMKQXZB_XQ");

+ 5 - 0
src/js/index.js

@@ -14,6 +14,11 @@ $(function(){
   $(".main").css({
     height:$(window).height()-52+'px'
   })
+  $(window).resize(function(){
+    $(".main").css({
+      height:$(window).height()-52+'px'
+    })
+  })
   $("body").on('focus',".modalAction input",function(){
     $(this).attr("type","password")
   })