【新增】试卷任务前端分类,监控管理前端

This commit is contained in:
YOHO\20373
2025-05-05 00:05:46 +08:00
committed by 陆光LG
parent f796f753a8
commit eda93f9810
134 changed files with 19516 additions and 493 deletions

48
src/api/monitor/index.ts Normal file
View File

@@ -0,0 +1,48 @@
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 })
},
}