feat: 作业提交

This commit is contained in:
cgd_mac 2022-02-23 14:59:03 +08:00
parent d9a9e87492
commit 39e1a221e3
1 changed files with 3 additions and 3 deletions

View File

@ -83,10 +83,10 @@ export default {
// //
handlerSubmit (result) { handlerSubmit (result) {
const { type } = this.query const { type } = this.query
if (type === 'practice' || type === 'operation') { if (type === 'practice') {
this.submitPractice(result) this.submitPractice(result)
} }
if (type === 'exam' || type === 'test') { if (type === 'exam' || type === 'test' || type === 'operation') {
this.submitExam(result) this.submitExam(result)
} }
// if (type === 'operation') { // if (type === 'operation') {
@ -166,7 +166,7 @@ export default {
courseId: query.courseId, courseId: query.courseId,
answerTime: 0, answerTime: 0,
type: query.practiceType, type: query.practiceType,
examType: query.type === 'test' ? 1 : 2, examType: query.type === 'test' ? 1 : (query.type === 'operation' ? 3 : 2),
questionList: this.formatSubmit(result) questionList: this.formatSubmit(result)
} }
reqExamSubmit(params).then(() => { reqExamSubmit(params).then(() => {