瀏覽代碼

添加是自动定位

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