From cb44316d3975af52a3a9af824094b844dd7df874 Mon Sep 17 00:00:00 2001
From: longz <longzhaoz@qq.com>
Date: 星期二, 26 五月 2026 11:34:49 +0800
Subject: [PATCH] fix

---
 frontend-admin/src/views/VisitorInfoView.vue |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/frontend-admin/src/views/VisitorInfoView.vue b/frontend-admin/src/views/VisitorInfoView.vue
index f586186..4e857cc 100644
--- a/frontend-admin/src/views/VisitorInfoView.vue
+++ b/frontend-admin/src/views/VisitorInfoView.vue
@@ -48,7 +48,8 @@
           导出 Excel
         </el-button>
       </div>
-      <el-table :data="rows" v-loading="loading" stripe border>
+      <div class="table-wrap">
+        <el-table :data="rows" v-loading="loading" stripe border height="100%">
         <el-table-column label="序号" width="68" type="index" :index="indexMethod" />
         <el-table-column prop="userName" label="用户" min-width="120" show-overflow-tooltip />
         <el-table-column prop="gender" label="性别" width="88" align="center" />
@@ -87,7 +88,8 @@
             </div>
           </template>
         </el-table-column>
-      </el-table>
+        </el-table>
+      </div>
 
       <div class="pager-wrap">
         <div class="pager-total">共 {{ total }} 条</div>
@@ -96,7 +98,7 @@
           layout="sizes, prev, pager, next"
           :total="total"
           :page-size="size"
-          :page-sizes="[10, 16, 20, 50, 100]"
+          :page-sizes="[10, 20, 50, 100]"
           v-model:current-page="page"
           @current-change="load"
           @size-change="onSizeChange"
@@ -174,7 +176,7 @@
 const auth = useAuthStore();
 const rows = ref<VisitorRow[]>([]);
 const page = ref(1);
-const size = ref(16);
+const size = ref(10);
 const total = ref(0);
 const registerDateRange = ref<string[]>([]);
 const dlg = ref(false);
@@ -414,6 +416,8 @@
   display: flex;
   flex-direction: column;
   gap: 12px;
+  height: calc(100vh - 170px);
+  min-height: calc(100vh - 170px);
 }
 
 .search-card,
@@ -471,12 +475,23 @@
 
 .table-card {
   padding: 14px 16px 12px;
+  display: flex;
+  flex-direction: column;
+  flex: 1;
+  min-height: 0;
+  overflow: hidden;
 }
 
 .table-toolbar {
   display: flex;
   justify-content: flex-end;
   margin-bottom: 12px;
+  flex: none;
+}
+
+.table-wrap {
+  flex: 1;
+  min-height: 0;
 }
 
 .pager-wrap {
@@ -484,6 +499,7 @@
   justify-content: space-between;
   align-items: center;
   margin-top: 14px;
+  flex: none;
 }
 
 .pager-total {

--
Gitblit v1.7.1