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