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:{
mib:'SNMP MIB', mib:'SNMP MIB',
fileName:'FileName', fileName:'File name',
remark:'Remark', remark:'Remark',
updateUser:'Update user', updateUser:'Update user',
updateAt:'Update time', updateAt:'Update time',

View File

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