From 0c5c19eb6a7d99c81bbad5ac7eeefb3af7058cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Fri, 13 Mar 2020 19:12:54 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20asset=E6=BB=9A=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E4=B8=B4=E6=97=B6=E8=A7=A3=E5=86=B3=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/stylus/main.scss | 7 +++++-- nezha-fronted/src/components/page/asset/asset.vue | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 15bf4e59f..a9e50fd7f 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -1235,10 +1235,13 @@ li{ height: 6px; } .el-table__fixed-right { - right: 10px !important; + right: 0px !important; +} +.asset .ps__rail-y { + z-index: 2000; } .el-table__fixed-right-patch { - width: 10px !important; + width: 0px !important; background-color: #fcfcfc; } .el-table__fixed-body-wrapper { diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue index 9c2f2c2d5..ff4d45581 100644 --- a/nezha-fronted/src/components/page/asset/asset.vue +++ b/nezha-fronted/src/components/page/asset/asset.vue @@ -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 = [];