|
|
|
@ -56,7 +56,7 @@ |
|
|
|
|
import GradesChart from "./components/GradesChart.vue" |
|
|
|
|
import storage from '@/jtools/storage'; |
|
|
|
|
import { |
|
|
|
|
testTotal |
|
|
|
|
testTotal,getTestQuestionId |
|
|
|
|
} from '@/jtools/api/question'; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
@ -182,15 +182,28 @@ |
|
|
|
|
}else{ |
|
|
|
|
const list =JSON.stringify(this.wrongList) |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:"/pages/questionBank/questionBank?navTitle=错题&subject="+this.subject+"&questionList="+list |
|
|
|
|
url:"/pages/questionBank/questionBank?navTitle=错题&subject="+this.subject+"&questionIdList="+list |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//重新考试 |
|
|
|
|
toExams(){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:"/pages/questionBank/practiceExams?subject="+this.subject |
|
|
|
|
getTestQuestionId({ |
|
|
|
|
versionId: this.version, |
|
|
|
|
carTypeId: storage.get('carType') || '1001', |
|
|
|
|
subject: this.subject, |
|
|
|
|
}).then(async (resp) => { |
|
|
|
|
if (resp.code === '0000') { |
|
|
|
|
const arr = resp.data |
|
|
|
|
const listJson = JSON.stringify(arr) |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/questionBank/practiceExams?title=模拟考试&subject=" + this.subject + "&questionIdList=" + listJson |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// uni.navigateTo({ |
|
|
|
|
// url:"/pages/questionBank/practiceExams?subject="+this.subject |
|
|
|
|
// }) |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|