|
@@ -110,9 +110,13 @@ export default Vue.extend({
|
|
|
this.examList.forEach(function(exam) {
|
|
this.examList.forEach(function(exam) {
|
|
|
if (exam.examId) {
|
|
if (exam.examId) {
|
|
|
getExamSubmitRecordsByUserId(exam.examId).then(({ data }) => {
|
|
getExamSubmitRecordsByUserId(exam.examId).then(({ data }) => {
|
|
|
- if (data.result.find((val) => !val.message)) {
|
|
|
|
|
|
|
+ if (data.result.length >= exam.examCount) {
|
|
|
that.$set(exam, 'isFinished', true)
|
|
that.$set(exam, 'isFinished', true)
|
|
|
- } else {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ // if (data.result.find((val) => !val.message)) {
|
|
|
|
|
+ // that.$set(exam, 'isFinished', true)
|
|
|
|
|
+ // }
|
|
|
|
|
+ else {
|
|
|
that.$set(exam, 'isFinished', false)
|
|
that.$set(exam, 'isFinished', false)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|