diff --git a/.env b/.env index 4e47230..3d9c5ae 100644 --- a/.env +++ b/.env @@ -2,6 +2,6 @@ VITE_WS_URL = wss://ai.lingxixue.com/ws/device VITE_OSS_URL = https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com VITE_SERVER_URL = https://ai.lingxixue.com/api/main -VITE_XXL_VERSION=2.13.7 +VITE_XXL_VERSION=2.13.8 VITE_INIT_VCONSOLE = 0 VITE_TEACHER_ADMIN_URL = https://edu.lingxixue.com diff --git a/.env.test b/.env.test index 9f413ec..ddbff39 100644 --- a/.env.test +++ b/.env.test @@ -4,6 +4,6 @@ VITE_OSS_URL = https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com VITE_SERVER_URL = http://127.0.0.1:9053/api/main # VITE_SERVER_URL = http://test.web.xuexiaole.com/api/main -VITE_XXL_VERSION=2.13.7 +VITE_XXL_VERSION=2.13.8 VITE_INIT_VCONSOLE = 0 VITE_TEACHER_ADMIN_URL = https://test.edu.xuexiaole.com diff --git a/src/api/subject/homework/index.ts b/src/api/subject/homework/index.ts index 973f79b..7291d03 100644 --- a/src/api/subject/homework/index.ts +++ b/src/api/subject/homework/index.ts @@ -1,6 +1,12 @@ -import { get, post } from '../../request' +import { get, post, type PageResponse } from '../../request' -import { PaperRecord, HomeworkExam, SubjectPaperRecord } from './type' +import { + PaperRecord, + HomeworkExam, + SubjectPaperRecord, + CompleteRecord, + ListCompleteRecordParams, +} from './type' export * from './type' const getUnfinishedHomework = async () => { @@ -42,7 +48,7 @@ const submitExam = async (data: any) => { export { submitExam } // 作业记录列表 -const getListCompleteRecord = async (data: any) => { - return get(`/school/paper/userRecord/listCompleteRecord`, data) +const getListCompleteRecord = async (data: ListCompleteRecordParams) => { + return get>(`/school/paper/userRecord/listCompleteRecord`, data) } export { getListCompleteRecord } diff --git a/src/api/subject/homework/type.ts b/src/api/subject/homework/type.ts index 54d9a2b..56fc19d 100644 --- a/src/api/subject/homework/type.ts +++ b/src/api/subject/homework/type.ts @@ -253,6 +253,46 @@ export interface SubjectTitleVo { answerSqs: string | null } +/** 批改状态:0-未批改 1-已批改 */ +export type GradingStatus = 0 | 1 + +/** 来源类型:0-作业 1-错题本 2-举一反三 */ +export type CompleteRecordResourceType = 0 | 1 | 2 + +/** 已完成答题记录 */ +export interface CompleteRecord { + id: number + userId: number + userName: string + schoolId: number + courseId: number + subjectId: number + subjectName: string + textBookId: number + paperId: number + paperName: string + publisherId: number + publisherName: string + resourceType: CompleteRecordResourceType + type: string + status: number + gradingStatus: GradingStatus + score: number + totalScore: number + costTime: number + createTime: string + endTime: string + submitTime: string +} + +export interface ListCompleteRecordParams { + current: number + size: number + gradingStatus?: GradingStatus + subjectId?: number + resourceType?: CompleteRecordResourceType +} + /** * 开始考试类型 */ diff --git a/src/page/system/homeWork/history/index.vue b/src/page/system/homeWork/history/index.vue index f45cc83..9c95488 100644 --- a/src/page/system/homeWork/history/index.vue +++ b/src/page/system/homeWork/history/index.vue @@ -1,21 +1,24 @@