perf: asset滚动条区域临时解决方案

This commit is contained in:
陈劲松
2020-03-13 19:12:54 +08:00
parent b94d644581
commit 0c5c19eb6a
2 changed files with 10 additions and 3 deletions

View File

@@ -710,7 +710,10 @@
pageSize(val) {
this.pageObj.pageSize = val;
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
this.getAssetData()
this.getAssetData();
this.$nextTick(() => {
this.gutterHandler(".nz-table");
});
},
getPrincipalName(data) {
for (let item in this.idcUserData) {
@@ -781,6 +784,7 @@
}
this.$nextTick(() => {
this.gutterHandler(".nz-table");
//左侧dc列表初始选中状态
if (this.$store.state.assetData.selectedData.length > 0) {
this.checkList = [];