From dbb3ede81b291e418e3aa1a0bf6db55d21059cfb Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 11 May 2026 15:56:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=85=E9=81=93375?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogbw_check_table.vue | 27 ++++++++++++++----------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index 5fdcc11e..38a31ffb 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -1181,8 +1181,9 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => { } .table-scroll{ width: 100%; + height: 400px; overflow-x: auto; - overflow-y: hidden; + overflow-y: auto; } .width-100{ width: 100%; @@ -1206,6 +1207,17 @@ tbody tr:nth-child(odd) { } th{ text-align: left; + position: sticky; + top: 0; + z-index: 3; + background: #fff; + padding: 12px 5px; + min-height: 40px; + font-size: 12px; + color: #909399; + word-break: break-all; + border-right: 1px solid #ebeef5; + border-bottom: 1px solid #ebeef5; } tr{ min-height: 40px; @@ -1214,16 +1226,7 @@ td { padding: 5px; min-height: 40px; line-height: 30px; - text-align: left; - border-right: 1px solid #ebeef5; - border-bottom: 1px solid #ebeef5; -} -th{ - padding: 12px 5px; - min-height: 40px; - font-size: 12px; - color: #909399; - word-break: break-all; + text-align: left; border-right: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5; } @@ -1267,7 +1270,7 @@ input{ z-index: 2; } thead .sticky-cell{ - z-index: 4; + z-index: 6; } tbody tr:nth-child(odd) .sticky-cell{ background-color: #f5f7fa;