Showing
4 changed files
with
10 additions
and
6 deletions
| ... | @@ -106,8 +106,9 @@ const handleCheckInSelect = (type) => { | ... | @@ -106,8 +106,9 @@ const handleCheckInSelect = (type) => { |
| 106 | id: type.id | 106 | id: type.id |
| 107 | } | 107 | } |
| 108 | }) | 108 | }) |
| 109 | + } else { | ||
| 110 | + selectedCheckIn.value = type; | ||
| 109 | } | 111 | } |
| 110 | - selectedCheckIn.value = type; | ||
| 111 | } | 112 | } |
| 112 | 113 | ||
| 113 | const handleCheckInSubmit = async () => { | 114 | const handleCheckInSubmit = async () => { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-03-20 19:55:21 | 2 | * @Date: 2025-03-20 19:55:21 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-06-11 17:10:09 | 4 | + * @LastEditTime: 2025-06-13 16:26:25 |
| 5 | * @FilePath: /mlaj/src/views/HomePage.vue | 5 | * @FilePath: /mlaj/src/views/HomePage.vue |
| 6 | * @Description: 美乐爱觉教育首页组件 | 6 | * @Description: 美乐爱觉教育首页组件 |
| 7 | * | 7 | * |
| ... | @@ -693,9 +693,10 @@ const handleCheckInSelect = (checkInType) => { | ... | @@ -693,9 +693,10 @@ const handleCheckInSelect = (checkInType) => { |
| 693 | id: checkInType.id, | 693 | id: checkInType.id, |
| 694 | }, | 694 | }, |
| 695 | }) | 695 | }) |
| 696 | + } else { | ||
| 697 | + selectedCheckIn.value = checkInType // 更新选中的打卡类型 | ||
| 698 | + checkInContent.value = '' // 清空打卡内容 | ||
| 696 | } | 699 | } |
| 697 | - selectedCheckIn.value = checkInType // 更新选中的打卡类型 | ||
| 698 | - checkInContent.value = '' // 清空打卡内容 | ||
| 699 | } | 700 | } |
| 700 | 701 | ||
| 701 | // 打卡功能:处理打卡提交 | 702 | // 打卡功能:处理打卡提交 | ... | ... |
| ... | @@ -394,8 +394,9 @@ const handleCheckInSelect = (type) => { | ... | @@ -394,8 +394,9 @@ const handleCheckInSelect = (type) => { |
| 394 | }); | 394 | }); |
| 395 | showCheckInDialog.value = false; | 395 | showCheckInDialog.value = false; |
| 396 | return; | 396 | return; |
| 397 | + } else { | ||
| 398 | + selectedCheckIn.value = type; | ||
| 397 | } | 399 | } |
| 398 | - selectedCheckIn.value = type; | ||
| 399 | }; | 400 | }; |
| 400 | 401 | ||
| 401 | // 处理打卡提交 | 402 | // 处理打卡提交 | ... | ... |
| ... | @@ -982,8 +982,9 @@ const handleCheckInSelect = (type) => { | ... | @@ -982,8 +982,9 @@ const handleCheckInSelect = (type) => { |
| 982 | }); | 982 | }); |
| 983 | showCheckInDialog.value = false; | 983 | showCheckInDialog.value = false; |
| 984 | return; | 984 | return; |
| 985 | + } else { | ||
| 986 | + selectedCheckIn.value = type; | ||
| 985 | } | 987 | } |
| 986 | - selectedCheckIn.value = type; | ||
| 987 | }; | 988 | }; |
| 988 | 989 | ||
| 989 | // 处理打卡提交 | 990 | // 处理打卡提交 | ... | ... |
-
Please register or login to post a comment