fix:取消监听tableData 把回到顶部事件放入search 解决删除修改后也回到顶部的问题

This commit is contained in:
zhangyu
2020-11-17 09:05:43 +08:00
parent adeb7830cb
commit c4672ad61e
18 changed files with 60 additions and 84 deletions

View File

@@ -441,6 +441,9 @@
if(orderBy){
this.$set(this.searchLabel, 'orderBy', orderBy);
}
if(this.$refs.dcTable&&this.$refs.dcTable.bodyWrapper){
this.$refs.dcTable.bodyWrapper.scrollTop = 0;
}
this.getTableData();
},
showCabinet(dc) {
@@ -488,11 +491,6 @@
let vm = this;
this.$bottomBoxWindow.showSubListWatch(vm, n);
},
tableData(){
if(this.$refs.dcTable&&this.$refs.dcTable.bodyWrapper){
this.$refs.dcTable.bodyWrapper.scrollTop = 0;
}
},
},
destroyed() {
window.onresize = null;