|
|
@@ -406,7 +406,7 @@ export default {
|
|
|
const finished = []
|
|
|
this.questionList.forEach(item => {
|
|
|
if (item.questionType === '填空题') {
|
|
|
- finished.push(item.answer && !item.answer.some(i => i === '' || i === null))
|
|
|
+ finished.push(item.options && !item.options.some((i) => i.answer === '' || i.answer === null))
|
|
|
} else if (item.questionType === '多选题') {
|
|
|
finished.push(item.answer.some(i => i) && true)
|
|
|
} else {
|
|
|
@@ -496,7 +496,7 @@ export default {
|
|
|
let incompleteList = []
|
|
|
this.questionList.forEach((item, index) => {
|
|
|
if (item.questionType === '填空题') {
|
|
|
- const t = item.answer && !item.answer.some(i => i === '' || i === null)
|
|
|
+ const t = item.options && !item.options.some((i) => i.answer === '' || i.answer === null)
|
|
|
incompleteList.push(!t ? index + 1 : '')
|
|
|
} else if (item.questionType === '多选题') {
|
|
|
const t = item.answer && item.answer.length
|