fix:修改flieName的英文显示 ,修改mibBrowser的表格显示问题

This commit is contained in:
zhangyu
2020-11-25 13:42:12 +08:00
parent b01e518b49
commit 8647ca5aae
2 changed files with 16 additions and 10 deletions

View File

@@ -678,7 +678,7 @@ const en = {
},
mib:{
mib:'SNMP MIB',
fileName:'FileName',
fileName:'File name',
remark:'Remark',
updateUser:'Update user',
updateAt:'Update time',

View File

@@ -620,6 +620,16 @@
document.onmousemove = null;
}
},
domResize(){
let scrollTop=this.$refs['resultTable'].$el.querySelector(".el-table__body-wrapper").scrollTop;
this.showTable=false;
this.$nextTick(()=>{
this.showTable=true;
this.$nextTick(()=>{
this.$refs['resultTable'].$el.querySelector(".el-table__body-wrapper").scrollTop=scrollTop
})
})
},
exportXlsx() {
if (this.resultData.length == 0) {
return;
@@ -641,20 +651,16 @@
)
} catch (e) {}
return out
}
},
},
mounted() {
this.getWalkData();
this.getModelData();
this.getAssetData();
window.onresize=()=>{
console.log(123123,this);
this.showTable=false;
this.$nextTick(()=>{
this.showTable=true;
// this.$refs['resultTable'].doLayout();
})
}
window.addEventListener('resize',this.domResize);
},
beforeDestroy(){
window.removeEventListener('resize',this.domResize);
}
}
</script>