From 5bbd765bae70c7b258c9804e58e0480061047d75 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 25 六月 2026 17:10:07 +0800
Subject: [PATCH] 新疆马铃薯 1.审批管理页面展示字段修改
---
src/views/personnelManagement/classsSheduling/index.vue | 55 +++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 47 insertions(+), 8 deletions(-)
diff --git a/src/views/personnelManagement/classsSheduling/index.vue b/src/views/personnelManagement/classsSheduling/index.vue
index 140ffba..8b88c92 100644
--- a/src/views/personnelManagement/classsSheduling/index.vue
+++ b/src/views/personnelManagement/classsSheduling/index.vue
@@ -101,14 +101,16 @@
</div>
<div class="user-details">
<h4 class="user-name">{{ item.name }}</h4>
- <!-- <div class="user-stats">
- <span class="stat-item">鏃�:{{ item.day0 }}</span>
- <span class="stat-item">涓�:{{ item.day1 }}</span>
- <span class="stat-item">澶�:{{ item.day2 }}</span>
- <span class="stat-item">浼�:{{ item.day3 }}</span>
- <span class="stat-item">鍋�:{{ item.day4 }}</span>
- <span class="stat-item">宸�:{{ item.day6 }}</span>
- </div> -->
+ <div class="user-stats">
+ <span v-if="item.monthlyAttendance?.['浼戞伅']" class="stat-item stat-rest">浼�:{{ item.monthlyAttendance['浼戞伅'] }}</span>
+ <el-tooltip v-if="item.holidayDates?.length > 0" placement="top">
+ <template #content>
+ <div>璇峰亣鏃ユ湡锛�</div>
+ <div v-for="date in item.holidayDates" :key="date">{{ date }}</div>
+ </template>
+ <span class="stat-item stat-holiday">鍋�:{{ item.holidayDates.length }}</span>
+ </el-tooltip>
+ </div>
<div class="user-total">
<span class="total-label">鍚堣鍑哄嫟:</span>
<span class="total-value">{{ item.monthlyAttendance.totalAttendance }}澶�</span>
@@ -153,6 +155,7 @@
'shift-box-leave': m.shift === '璇峰亣',
'shift-box-other': m.shift === '澶�11',
'shift-box-business': m.shift === '澶�12',
+ 'holiday-cell': m.isHoliday,
}">
<span class="shift-text">{{ getShiftNameByValue(m.shift) || '鈥�' }}</span>
</div>
@@ -1280,4 +1283,40 @@
margin-bottom: 8px;
margin-top: 12px;
}
+
+ /* 璇峰亣浼戞伅鏃ユ湡鐗规畩鏍峰紡 */
+ .holiday-cell {
+ background-color: #fff3cd !important;
+ color: #856404 !important;
+ border: 1px solid #ffc107 !important;
+ }
+
+ /* 鐢ㄦ埛缁熻鍖哄煙 */
+ .user-stats {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px;
+ margin-bottom: 4px;
+ }
+
+ .stat-item {
+ font-size: 12px;
+ color: #666;
+ padding-right: 4px;
+ }
+
+ .stat-rest {
+ color: #10b981;
+ background-color: rgba(16, 185, 129, 0.1);
+ padding: 1px 6px;
+ border-radius: 10px;
+ }
+
+ .stat-holiday {
+ color: #f59e0b;
+ background-color: rgba(245, 158, 11, 0.1);
+ padding: 1px 6px;
+ border-radius: 10px;
+ cursor: pointer;
+ }
</style>
--
Gitblit v1.9.3