소스 검색

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

zhangxc 5 년 전
부모
커밋
0895744458
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  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 =>{