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