This commit is contained in:
yaojian
2026-03-13 18:36:27 +08:00
parent c611c3e720
commit ff1d38752d
6 changed files with 498 additions and 53 deletions

View File

@@ -0,0 +1,11 @@
import request from '/@/utils/request';
/**
* 获取所有设备位置(校门)列表
*/
export const listAll = () => {
return request({
url: '/safety/clouddeviceposition/listAll',
method: 'get',
});
};

View File

@@ -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 },
});
};