49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
![]() |
import request from '@/config/axios'
|
||
|
|
||
|
// 监控管理 VO
|
||
|
export interface MonitorVO {
|
||
|
monitorId: string // 主键id
|
||
|
username: string // 用户账号
|
||
|
nickname: string // 用户姓名
|
||
|
className: string // 班级
|
||
|
examStatus: string // 考试状态
|
||
|
score: string // 成绩
|
||
|
paperNum: string // 试卷编号
|
||
|
taskName: string // 场次
|
||
|
ip: string // 机器ip
|
||
|
remainingTime: Date // 剩余时间
|
||
|
}
|
||
|
|
||
|
// 监控管理 API
|
||
|
export const MonitorApi = {
|
||
|
// 查询监控管理分页
|
||
|
getMonitorPage: async (params: any) => {
|
||
|
return await request.get({ url: `/exam/monitor/page`, params })
|
||
|
},
|
||
|
|
||
|
// 查询监控管理详情
|
||
|
getMonitor: async (id: number) => {
|
||
|
return await request.get({ url: `/exam/monitor/get?id=` + id })
|
||
|
},
|
||
|
|
||
|
// 新增监控管理
|
||
|
createMonitor: async (data: MonitorVO) => {
|
||
|
return await request.post({ url: `/exam/monitor/create`, data })
|
||
|
},
|
||
|
|
||
|
// 修改监控管理
|
||
|
updateMonitor: async (data: MonitorVO) => {
|
||
|
return await request.put({ url: `/exam/monitor/update`, data })
|
||
|
},
|
||
|
|
||
|
// 删除监控管理
|
||
|
deleteMonitor: async (id: number) => {
|
||
|
return await request.delete({ url: `/exam/monitor/delete?id=` + id })
|
||
|
},
|
||
|
|
||
|
// 导出监控管理 Excel
|
||
|
exportMonitor: async (params) => {
|
||
|
return await request.download({ url: `/exam/monitor/export-excel`, params })
|
||
|
},
|
||
|
}
|