From ff1d38752dfc90bfa019682d69f1d56ebdb0d036 Mon Sep 17 00:00:00 2001 From: yaojian <1161995598@qq.com> Date: Fri, 13 Mar 2026 18:36:27 +0800 Subject: [PATCH] 1 --- src/api/safety/clouddeviceposition.ts | 11 + src/api/stuwork/dormliveapply.ts | 29 ++ src/views/stuwork/classattendance/index.vue | 275 ++++++++++++++++--- src/views/stuwork/dormliveapply/index.vue | 118 +++++++- src/views/stuwork/stutemleaveapply/form.vue | 85 +++++- src/views/stuwork/stutemleaveapply/index.vue | 33 +++ 6 files changed, 498 insertions(+), 53 deletions(-) create mode 100644 src/api/safety/clouddeviceposition.ts diff --git a/src/api/safety/clouddeviceposition.ts b/src/api/safety/clouddeviceposition.ts new file mode 100644 index 0000000..c90df2f --- /dev/null +++ b/src/api/safety/clouddeviceposition.ts @@ -0,0 +1,11 @@ +import request from '/@/utils/request'; + +/** + * 获取所有设备位置(校门)列表 + */ +export const listAll = () => { + return request({ + url: '/safety/clouddeviceposition/listAll', + method: 'get', + }); +}; \ No newline at end of file diff --git a/src/api/stuwork/dormliveapply.ts b/src/api/stuwork/dormliveapply.ts index 6568ca3..ff95f46 100644 --- a/src/api/stuwork/dormliveapply.ts +++ b/src/api/stuwork/dormliveapply.ts @@ -72,3 +72,32 @@ export const exportData = (query?: any) => { responseType: 'blob', }); }; + +/** + * 审批留宿申请 + * @param id 申请ID + * @param auditStatus 审核状态(2-通过,3-不通过) + * @param auditRemark 审核备注 + */ +export const auditApply = (id: string, auditStatus: string, auditRemark?: string) => { + return request({ + url: '/stuwork/dormliveapply/audit', + method: 'post', + params: { id, auditStatus, auditRemark }, + }); +}; + +/** + * 批量审批留宿申请 + * @param ids 申请ID列表 + * @param auditStatus 审核状态(2-通过,3-不通过) + * @param auditRemark 审核备注 + */ +export const batchAuditApply = (ids: string[], auditStatus: string, auditRemark?: string) => { + return request({ + url: '/stuwork/dormliveapply/batchAudit', + method: 'post', + data: ids, + params: { auditStatus, auditRemark }, + }); +}; diff --git a/src/views/stuwork/classattendance/index.vue b/src/views/stuwork/classattendance/index.vue index 9a5704c..27fe342 100644 --- a/src/views/stuwork/classattendance/index.vue +++ b/src/views/stuwork/classattendance/index.vue @@ -98,11 +98,22 @@ {{ formatStudentStatus(scope.row.stuStatus) }} - + - - - - + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + 提交考勤 + + + + +