【新增】试卷任务前端分类,监控管理前端
This commit is contained in:
48
src/api/monitor/index.ts
Normal file
48
src/api/monitor/index.ts
Normal 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 })
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user