소스 검색

添加是自动定位

1178232204@qq.com 3 년 전
부모
커밋
d67d0c7ec8
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/components/icss/sonhospital/SonHospital.vue

+ 4 - 1
src/components/icss/sonhospital/SonHospital.vue

@@ -13,7 +13,7 @@
                 :style="form.hospitalRelationVOList.length > 0?'min-height: 200px':'60px'"
                 :height="form.hospitalRelationVOList.length > 0?'calc(100vh - 260px)':'60px'"
                 class="tabs"
-                ref="tables"
+                ref="tableList"
                 :header-row-style="{height:'40px',cursor: 'pointer'}"
                 :row-style="{height:'40px',cursor: 'pointer'}"
                 :header-cell-style="{height:'40px',borderColor:'#DCDFE6'}"
@@ -224,6 +224,9 @@ export default {
         errorOther: false,
         errorCurrent: false
       });
+      this.$nextTick(() => {
+        this.$refs.tableList.bodyWrapper.scrollTop += 55;
+      });
     },
     delIndex(i) {
       this.form.hospitalRelationVOList.splice(i, 1);