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 = [];