feat: 作业提交
This commit is contained in:
parent
d9a9e87492
commit
39e1a221e3
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue