Commit 69c86402 authored by 张伯涛's avatar 张伯涛

传参修改

parent 8d76214b
...@@ -475,12 +475,12 @@ export default { ...@@ -475,12 +475,12 @@ export default {
// 2 重新答题 // 2 重新答题
// 什么值都没有是开始答题 // 什么值都没有是开始答题
if (row.status == '1') { if (row.status == '1') {
this.startExam('todo') this.startExam('todo', row.businessId)
} else { } else {
this.startExam('done') this.startExam('done', row.businessId)
} }
}, },
startExam(type = 'todo') { startExam(type = 'todo', id) {
console.log('type', type) console.log('type', type)
if (type === 'todo') { if (type === 'todo') {
this.$store.dispatch('app/answer', '1') // 1: 调用answerByOneClick接口,2:不调用 this.$store.dispatch('app/answer', '1') // 1: 调用answerByOneClick接口,2:不调用
...@@ -505,7 +505,7 @@ export default { ...@@ -505,7 +505,7 @@ export default {
path: '/learningCenter/examCompany', path: '/learningCenter/examCompany',
query: { query: {
lessonId: this.examData.lessonId, lessonId: this.examData.lessonId,
businessId: this.examData.businessId, businessId: id || this.examData.businessId,
questionId: this.examData.questionId ? this.examData.questionId : '', questionId: this.examData.questionId ? this.examData.questionId : '',
title: jobClassifyText + difficultyClassifyText + '考核', title: jobClassifyText + difficultyClassifyText + '考核',
type: type type: type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment