From 9ee96c86494aff0ed7d420298404d42ca0b1d2d1 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Thu, 17 Apr 2025 18:07:52 +0800
Subject: [PATCH] =?UTF-8?q?feat(common):=20=E4=BC=98=E5=8C=96=E8=80=83?=
=?UTF-8?q?=E5=8B=A4=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD=E5=B9=B6=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E8=AF=B7=E5=81=87=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-重命名 clocking_list 方法为 clockingList,提高代码可读性
- 修改考勤列表筛选逻辑,使用 status 字段代替 type 字段
- 添加请假功能,包括请假按钮和请假提示框
- 实现请假请求提交和处理逻辑
- 优化页面初始化和数据加载流程
---
api/common.js | 2 +-
pages/common/my_attendance.vue | 120 ++++++++++++++++++++++++++-------
2 files changed, 97 insertions(+), 25 deletions(-)
diff --git a/api/common.js b/api/common.js
index c2ec5aa..e6a5765 100644
--- a/api/common.js
+++ b/api/common.js
@@ -59,7 +59,7 @@ export default {
//考勤列表 --分页
- clocking_list(data) {
+ clockingList(data) {
let url = `/member/clocking_list`
return http.get(url, data).then(res => {
return res;
diff --git a/pages/common/my_attendance.vue b/pages/common/my_attendance.vue
index 84511c4..07a90ff 100644
--- a/pages/common/my_attendance.vue
+++ b/pages/common/my_attendance.vue
@@ -3,6 +3,7 @@
-
+
-
+
-
+
+
- 请假
+ 请假
+
+
+