1
This commit is contained in:
11
src/api/safety/clouddeviceposition.ts
Normal file
11
src/api/safety/clouddeviceposition.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import request from '/@/utils/request';
|
||||
|
||||
/**
|
||||
* 获取所有设备位置(校门)列表
|
||||
*/
|
||||
export const listAll = () => {
|
||||
return request({
|
||||
url: '/safety/clouddeviceposition/listAll',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
@@ -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 },
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user