add askleave page

This commit is contained in:
Dawn1Ocean
2024-05-07 12:03:00 +08:00
parent dd8c7e0b92
commit edcd5dcbb7
6 changed files with 297 additions and 0 deletions
+38
View File
@@ -347,3 +347,41 @@ data:
]
}
```
### 请假管理页面
#### 获取请假列表 `GET /leader/askleavelist`
request:
```json
{
"current": 1,
"pageSize": 10,
"member?": "晓洋", // 如果不筛选则不出现在 request-body 内
"week": "all" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun", // all 之外的选项用于筛选
"shift": "all" | "first" | "second" | "third" // all 之外的选项用于筛选
}
```
data:
```json
{
"page": 1,
"total": 24,
"success": true,
"data": [
{
"member": "宇航员",
"avatar": "https://...",
"time": "2024-03-07T19:52:48.523303",
"week": "2",
"shift": "3",
"reason": "家庭原因",
"substitute": "晓洋" // 未找人代班则为空
}
// ...
]
}
```