perf: 修复endpointquery有时候空白的问题

This commit is contained in:
chenjinsong
2020-05-07 18:36:39 +08:00
parent 1fd2483542
commit 9a23601c86
3 changed files with 17 additions and 12 deletions

View File

@@ -265,12 +265,13 @@
});
},
tableReload() {
this.tableShow = false;
setTimeout(() => {
this.tableShow = true;
//this.queryEndpoint();
}, 300);
//this.$nextTick(() => {this.tableShow = true});
var table = this.$refs.endpointQueryTable;
let resizeTimeout = setInterval(() => {
if (!window.resizing) {
table.setHeight();
clearInterval(resizeTimeout);
}
}, 200);
},
queryEndpoint() {
this.loading = true;
@@ -684,6 +685,7 @@
mounted() {
this.getPanelData();
//this.$nextTick(() => {
setTimeout(() => {this.$refs.endpointQueryTable.setHeight();}, 700);
setTimeout(() => {
//绑定滚动条事件控制top按钮
let el = this.$refs.endpointQueryTable.$el.querySelector(".el-table__body-wrapper");