feat: 考试提交问题修复

This commit is contained in:
cgd_mac 2022-02-23 14:54:35 +08:00
parent 099cfb8253
commit d9a9e87492
2 changed files with 3 additions and 2 deletions

View File

@ -211,7 +211,7 @@ export default {
content: '确定要预约考试吗?',
onOk () {
reqExamSubscribe({ projectId: data.id }).then(res => {
this.$message.success('预约成功!')
_this.$message.success('预约成功!')
_this.handleRefresh()
})
},

View File

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