【修改】修改试卷页面,其它细节

This commit is contained in:
YOHO\20373
2025-05-29 20:13:12 +08:00
committed by 陆光LG
parent 43f566205c
commit 0c800b8ff3
29 changed files with 5340 additions and 937 deletions

View File

@@ -5,10 +5,16 @@ export interface QuestionQueryVO {
subjectName: string
}
// 查询用户管理列表
// 查询试题列表
export const getQuestionList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/list', params })
}
// 查询试题列表(带答案)
export const getQuestionlistAnswer = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/listAnswer', params })
}
export const getQuestionSendList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/sendList', params })
@@ -25,6 +31,12 @@ export async function auditQuestion(data) {
export async function rabbitmqConnect() {
return await request.post({ url: '/rabbitmq/connect' })
}
export async function changePaperQu(data) {
return await request.post({ url: '/exam/qu/changePaperQu',data })
}
export async function changePaperQuRandom(data) {
return await request.post({ url: '/exam/qu/changePaperQuRandom',data })
}
// 获取试题详情
export const getQuestion = (id: number) => {
@@ -63,7 +75,13 @@ export function editQuestionNoAudit(data: any) {
}
// 更改状态
export async function updateQuStatus(quId: string, status: number) {
return await request.put({
url: '/exam/question/updateQuStatus',
data: { quId, status } // 使用data
})
}
export const getQuestionExamineList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/auditList', params })

View File

@@ -72,7 +72,9 @@ export async function getPaperDetailByTaskId(paperId) {
return await request.get({ url: '/exam/qu/getPaper' , params:{paperId} })
}
export async function getPaperDetailCenterByTaskId(paperId) {
return await request.get({ url: '/exam/qu/getPaperCenter' , params:{paperId} })
}
export async function getPaperList(taskId) {
return await request.get({ url: '/exam/paper/getPaperByTaskId' , params:{taskId} })