fix: 修复窗体缩小后可能出现多余右侧滚动条的问题

This commit is contained in:
陈劲松
2020-03-09 18:26:02 +08:00
parent e381419eb5
commit 8b952f4d8a
3 changed files with 12 additions and 1 deletions

View File

@@ -386,7 +386,6 @@ li{
font-size: 14px;
}
.sidebar-info {
height: 100%;
width: 100%;
padding-top: 24px;
font-size: 14px;

View File

@@ -295,6 +295,9 @@
pageSize(val) {
this.pageObj.pageSize = val;
this.getAlertList();
this.$nextTick(() => {
this.gutterHandler(".nz-table");
});
},
search: function (searchObj) {
this.searchLabel = {};
@@ -368,6 +371,9 @@
}
});
}
this.$nextTick(() => {
this.gutterHandler(".nz-table");
});
});
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))

View File

@@ -939,6 +939,9 @@
endpointPageSize(val) {
this.endpointPageObj.pageSize = val;
this.getEndpointTableData();
this.$nextTick(() => {
this.gutterHandler(".endpoint-table");
});
},
metricsPageNo(val) {
this.metricPageObj.pageNo = val;
@@ -1220,6 +1223,9 @@
this.tableShow=1;
this.selectedEndpoints=[];
this.showTopBtn1 = false;
this.$nextTick(() => {
this.gutterHandler(".endpoint-table");
});
},
changeTime:function(size,unit){
let time=this.getTime(size,unit);