hookehuyr

fix(打卡页面): 修复选中全部作业时不显示打卡状态的问题

当用户选中全部作业时,跳过打卡状态检查逻辑,避免显示错误的打卡状态
1 <!-- 1 <!--
2 * @Date: 2025-05-29 15:34:17 2 * @Date: 2025-05-29 15:34:17
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-12-18 09:51:27 4 + * @LastEditTime: 2025-12-18 10:01:20
5 * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue 5 * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -266,6 +266,8 @@ const formatter = (day) => { ...@@ -266,6 +266,8 @@ const formatter = (day) => {
266 return day; 266 return day;
267 } 267 }
268 268
269 + // 如果选中的是全部作业,不执行打卡状态检查
270 + if (selectedSubtaskId.value) {
269 // 检查当前日期是否在签到日期列表中 271 // 检查当前日期是否在签到日期列表中
270 if (checkin_days && checkin_days.length > 0) { 272 if (checkin_days && checkin_days.length > 0) {
271 // 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配 273 // 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配
...@@ -302,6 +304,7 @@ const formatter = (day) => { ...@@ -302,6 +304,7 @@ const formatter = (day) => {
302 } 304 }
303 } 305 }
304 } 306 }
307 + }
305 308
306 // 选中今天的日期 309 // 选中今天的日期
307 if (dayjs(day.date).isSame(new Date(), 'day')) { 310 if (dayjs(day.date).isSame(new Date(), 'day')) {
......