From acf3f93cccb1bc31da45a16a823ed6a91ae9d232 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 06 十一月 2026 10:03:19 +0800
Subject: [PATCH] style(hrm): 排班表格列宽与班次字号调整

---
 src/views/hrm/schedule/index.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/views/hrm/schedule/index.vue b/src/views/hrm/schedule/index.vue
index 6f4c443..891cc11 100644
--- a/src/views/hrm/schedule/index.vue
+++ b/src/views/hrm/schedule/index.vue
@@ -522,7 +522,18 @@
         "
         class="py-20"
       />
-      <table v-else class="schedule-table w-full text-sm">
+      <table v-else class="schedule-table text-sm">
+        <!-- 鍕鹃�夊垪 40px銆佸憳宸ュ垪 160px 鍥哄畾锛涙棩鏈熷垪鎸夎鍥炬ā寮忓畾瀹� -->
+        <colgroup>
+          <col style="width: 40px" />
+          <col style="width: 160px" />
+          <!-- 鍛ㄨ鍥撅細鏃ユ湡鍒楀潎鍒嗗墿浣欏搴︼紙淇濊瘉鐝鍚嶅畬鏁存樉绀猴級锛涙湀瑙嗗浘锛氬浐瀹� 52px 妯悜婊氬姩 -->
+          <col
+            v-for="vd in viewDays"
+            :key="vd.date"
+            :style="viewMode === 'month' ? 'width: 52px' : undefined"
+          />
+        </colgroup>
         <thead>
           <tr>
             <th class="schedule-check-col bg-gray-100">
@@ -679,6 +690,7 @@
   min-width: max-content;
   border-collapse: separate;
   border-spacing: 0;
+  table-layout: fixed;
 
   th,
   td {
@@ -687,7 +699,6 @@
   }
 
   .schedule-date-col {
-    width: 52px;
     min-width: 52px;
   }
 
@@ -708,7 +719,8 @@
 
   .schedule-name-col {
     left: 40px;
-    min-width: 180px;
+    width: 160px;
+    min-width: 160px;
     padding: 0 12px;
     line-height: 1.3;
   }
@@ -734,7 +746,7 @@
     padding: 1px 6px;
     overflow: hidden;
     color: #fff;
-    font-size: 11px;
+    font-size: 12px;
     text-overflow: ellipsis;
     white-space: nowrap;
     border-radius: 3px;

--
Gitblit v1.9.3