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/AppointmentListView.vue |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/frontend-admin/src/views/AppointmentListView.vue b/frontend-admin/src/views/AppointmentListView.vue
index 6fe53d6..09b7439 100644
--- a/frontend-admin/src/views/AppointmentListView.vue
+++ b/frontend-admin/src/views/AppointmentListView.vue
@@ -79,7 +79,8 @@
           <el-button v-permission="'appointments:export'" type="primary" plain :loading="exporting" @click="exportExcel">导出</el-button>
       </div>
 
-      <el-table :data="rows" v-loading="loading" stripe border :max-height="tableMaxHeight">
+      <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="visitTypeText" label="来访类型" width="110" />
         <el-table-column prop="visitedUserName" label="被访人" width="110" show-overflow-tooltip />
@@ -109,7 +110,8 @@
               <el-button v-permission="'appointments:detail'" type="primary" link @click="openDetail(row)">详情</el-button>
           </template>
         </el-table-column>
-      </el-table>
+        </el-table>
+      </div>
 
       <div class="pager-wrap">
         <div class="pager-total">共 {{ total }} 条</div>
@@ -335,7 +337,6 @@
 const size = ref(10);
 const total = ref(0);
 const rows = ref<AppointmentRow[]>([]);
-const tableMaxHeight = computed(() => (rows.value.length > 10 ? 560 : undefined));
 const visitDateRange = ref<string[]>([]);
 
 const deptOptions = ref<DeptOption[]>([]);
@@ -708,6 +709,8 @@
   display: flex;
   flex-direction: column;
   gap: 12px;
+  height: calc(100vh - 170px);
+  min-height: calc(100vh - 170px);
 }
 
 .search-card,
@@ -766,12 +769,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-start;
   margin-bottom: 12px;
+  flex: none;
+}
+
+.table-wrap {
+  flex: 1;
+  min-height: 0;
 }
 
 .pager-wrap {
@@ -779,6 +793,7 @@
   justify-content: space-between;
   align-items: center;
   margin-top: 14px;
+  flex: none;
 }
 
 .pager-total {

--
Gitblit v1.7.1