feat: 考试提交问题修复
This commit is contained in:
parent
099cfb8253
commit
d9a9e87492
|
@ -211,7 +211,7 @@ export default {
|
||||||
content: '确定要预约考试吗?',
|
content: '确定要预约考试吗?',
|
||||||
onOk () {
|
onOk () {
|
||||||
reqExamSubscribe({ projectId: data.id }).then(res => {
|
reqExamSubscribe({ projectId: data.id }).then(res => {
|
||||||
this.$message.success('预约成功!')
|
_this.$message.success('预约成功!')
|
||||||
_this.handleRefresh()
|
_this.handleRefresh()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -86,7 +86,7 @@ export default {
|
||||||
if (type === 'practice' || type === 'operation') {
|
if (type === 'practice' || type === 'operation') {
|
||||||
this.submitPractice(result)
|
this.submitPractice(result)
|
||||||
}
|
}
|
||||||
if (type === 'exam') {
|
if (type === 'exam' || type === 'test') {
|
||||||
this.submitExam(result)
|
this.submitExam(result)
|
||||||
}
|
}
|
||||||
// if (type === 'operation') {
|
// if (type === 'operation') {
|
||||||
|
@ -166,6 +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,
|
||||||
questionList: this.formatSubmit(result)
|
questionList: this.formatSubmit(result)
|
||||||
}
|
}
|
||||||
reqExamSubmit(params).then(() => {
|
reqExamSubmit(params).then(() => {
|
||||||
|
|
Loading…
Reference in New Issue