Przeglądaj źródła

解决IE8下打印后滚动条消失问题

wyq 4 lat temu
rodzic
commit
16843db964
3 zmienionych plików z 6 dodań i 3 usunięć
  1. 1 1
      src/js/cdss.js
  2. 1 1
      src/js/cdssHorizontal.js
  3. 4 1
      src/js/staticInfo.js

+ 1 - 1
src/js/cdss.js

@@ -184,7 +184,7 @@ function moreInfo() {
   $('.evaluationtitle').off("click").click(function () {
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
-    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}`)
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
   }) 
 }
 

+ 1 - 1
src/js/cdssHorizontal.js

@@ -661,7 +661,7 @@ function moreInfo() {
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
     console.log(name)
-    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1`)
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&gauge=gauge`)
   })
   
 }

+ 4 - 1
src/js/staticInfo.js

@@ -240,6 +240,9 @@ function getprinting() {
     }).jqprint();
     $('.foot').show()
     // $('.hel').show()
+    $('#Print').css({
+      'height': '100%', //高度自动
+    });
   })
 }
 
@@ -418,7 +421,7 @@ function getResult(pushInfo, textType) {
         $(".foot").css('display', 'block')
       }
     } else {
-      Toast('温馨提示:必填选项不能为空~', 500, 'warn')
+      Toast('温馨提示:必填选项不能为空~', 500000, 'warn')
     }
   })
   $(".printing").hover(