/** * 当前报警接口 */ import request from '@/api/index' // 基础列表 export function getCurrentAlarmListPage(data: any) { return request({ url: `/system/alarmRecords/listPage?limit=${data.limit}&offset=${data.offset}`, method: 'post', data, }) } // 已读 export function viewAlarm(id: any) { return request({ url: '/system/alarmRecords/read', method: 'post', data: { id, }, }) } // 查看 export function detailAlarm(id: any) { return request({ url: '/system/alarmRecords/view', method: 'post', data: { id, }, }) } // 挂起 export function pendingAlarm(data: any) { return request({ url: '/system/alarmRecords/suspend', method: 'post', data, }) } // 提醒责任人 export function remindAlarm(data: any) { return request({ url: '/system/alarmRecords/remind', method: 'post', data, }) } // 流程节点 export function alarmProcessNode(id: any) { return request({ url: '/system/alarmRecords/nodeDetail', method: 'post', data: { id, }, }) } // 批量删除 export function batchDelete(ids: any) { return request({ url: '/system/alarmRecords/batchDelete', method: 'post', data: { ids, }, }) } export function exportCurrentAlarm(data: any) { return request({ url: '/system/alarmRecords/batchExport', method: 'get', params: { ...data, }, responseType: 'blob', }) } // 获取责任人 export function getPrincipals(id: any) { return request({ url: '/system/alarmRecords/getPrincipals', method: 'post', data: { id, }, }) } // 处置 export function handlerAlarmProcess(data: any) { return request({ url: '/system/alarmRecords/process', method: 'post', data, }) } // 处置记录 export function getHandlerAlarmRecord(data: any) { return request({ url: '/system/approvalLog/approvalLogs', method: 'post', data, }) }