From d5581c4236cf55138effe4c20420f49c87459166 Mon Sep 17 00:00:00 2001 From: Ran_Chen <1908198662@qq.com> Date: Tue, 15 Apr 2025 11:27:35 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E2=80=9D=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=93=8D=E5=BA=94=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/manager-web/src/views/UserManagement.vue | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/main/manager-web/src/views/UserManagement.vue b/main/manager-web/src/views/UserManagement.vue index 28a0d906..fc67c96e 100644 --- a/main/manager-web/src/views/UserManagement.vue +++ b/main/manager-web/src/views/UserManagement.vue @@ -16,7 +16,7 @@
+ :header-cell-class-name="headerCellClassName"> @@ -101,7 +101,6 @@ export default { currentPage: 1, pageSize: 5, total: 0, - tableMaxHeight: 410, isAllSelected: false }; }, @@ -361,6 +360,7 @@ export default { background: linear-gradient(to bottom right, #dce8ff, #e4eeff, #e6cbfd) center; -webkit-background-size: cover; -o-background-size: cover; + overflow: hidden; } .main-wrapper { @@ -368,6 +368,7 @@ export default { border-radius: 15px; min-height: calc(100vh - 350px); height: auto; + max-height: 80vh; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); position: relative; background: rgba(237, 242, 255, 0.5); @@ -419,12 +420,18 @@ export default { min-width: 600px; overflow-x: auto; background-color: white; + display: flex; + flex-direction: column; } .user-card { background: white; border: none; box-shadow: none; + display: flex; + flex-direction: column; + flex: 1; + overflow: hidden; } .table_bottom { @@ -556,6 +563,19 @@ export default { :deep(.transparent-table) { background: white; + flex: 1; + width: 100%; + display: flex; + flex-direction: column; + .el-table__body-wrapper { + flex: 1; + overflow: auto; + max-height: none !important; + } + + .el-table__header-wrapper { + flex-shrink: 0; + } .el-table__header th { background: white !important; @@ -653,4 +673,14 @@ export default { } } +.el-table { + --table-max-height: calc(100vh - 400px); + max-height: var(--table-max-height); + + .el-table__body-wrapper { + max-height: calc(var(--table-max-height) - 40px); + } +} + +