fix: 修改查询后 表格不会到顶部的问题

This commit is contained in:
zhangyu
2020-11-16 15:16:39 +08:00
parent e735a380be
commit 6928b325de
15 changed files with 94 additions and 11 deletions

View File

@@ -519,12 +519,14 @@
return parseFloat(item).toFixed(2);
}
});
}else{
current=[null,null];
}
this.requestIndex += 1;
item.current = current;
if (this.requestIndex === this.tableData.length) {
this.$set(item, "current", current);
this.requestIndex = 0;
this.$set(item, "current", current);
this.requestIndex = 0;
}
});
}
@@ -643,7 +645,14 @@
}
this.getAlertList();
}
}
},
tableData(){
if(this.$refs.alertMessageTable&&this.$refs.alertMessageTable.bodyWrapper){
this.$nextTick(()=>{
this.$refs.alertMessageTable.bodyWrapper.scrollTop = 0;
})
}
},
},
mounted() {
//是否存在分页缓存