diff --git a/doc/api.md b/doc/api.md index 0bec0ab..7a19ef3 100644 --- a/doc/api.md +++ b/doc/api.md @@ -220,6 +220,17 @@ request: ### 获取反馈列表 `GET /admin/reportlist` +request: + +```json +{ + "current": 1, + "pageSize": 10, + "name?": "西西弗", // 如果不筛选则不出现在 request-body 内 + "phone?": "18888888888", // 如果不筛选则不出现在 request-body 内 +} +``` + data: ```json @@ -243,6 +254,18 @@ data: ### 获取日志列表 `GET /admin/loglist` +request: + +```json +{ + "current": 1, + "pageSize": 10, + "op?": "晓洋", // 如果不筛选则不出现在 request-body 内 + "operation": "all" | "add" | "delete" | "change", // all 之外的选项用于筛选 + "target": "all" | "dutyTable" | "dutyInfo" | "conclusion" // all 之外的选项用于筛选 +} +``` + data: ```json diff --git a/src/pages/Admin/Logs/index.tsx b/src/pages/Admin/Logs/index.tsx index 46d1cc8..b332f17 100644 --- a/src/pages/Admin/Logs/index.tsx +++ b/src/pages/Admin/Logs/index.tsx @@ -89,15 +89,12 @@ const Logs: React.FC = () => { all: { text: '全部', status: 'Default' }, dutyTable: { text: '值班表', - status: '0', }, dutyInfo: { text: '值班信息', - status: '1', }, conclusion: { text: '值班总结', - status: '2', }, }, },