Prechádzať zdrojové kódy

修改添加质控类型输入框高度

zhangxc 5 rokov pred
rodič
commit
0895744458
1 zmenil súbory, kde vykonal 8 pridanie a 2 odobranie
  1. 8 2
      src/js/assertTypeDetail.js

+ 8 - 2
src/js/assertTypeDetail.js

@@ -16,8 +16,14 @@ $(function(){
     getList(paramType)//获取条目列表
 
 })
-const filterBoxWidth = $('.filterBox').width()
-$('.patientNumInp').css('width', filterBoxWidth-83-15 +'px')
+function setInpWidth(){
+    const winWidth = $(window).width()
+    $('.patientNumInp').css('width', winWidth-152-15 +'px')
+}
+setInpWidth()
+$(window).resize(function(){
+    setInpWidth()
+})
 function getList(type){
     if(!type){
         post(api.getEntryByHospital,{}).then(res =>{