|
|
@@ -445,8 +445,9 @@ export default {
|
|
|
const finished = []
|
|
|
this.questionList.forEach((item) => {
|
|
|
if (item.questionType === '填空题') {
|
|
|
+ console.log('item.answer', item.answer, item.options, item.options.map((op) => op.answer))
|
|
|
finished.push(
|
|
|
- item.answer && !item.answer.some((i) => i === '' || i === null)
|
|
|
+ item.options && !item.options.some((i) => i.answer === '' || i.answer === null)
|
|
|
)
|
|
|
} else if (item.questionType === '多选题') {
|
|
|
finished.push(item.answer.some((i) => i) && true)
|
|
|
@@ -553,7 +554,7 @@ export default {
|
|
|
this.questionList.forEach((item, index) => {
|
|
|
if (item.questionType === '填空题') {
|
|
|
const t =
|
|
|
- item.answer && !item.answer.some((i) => i === '' || i === null)
|
|
|
+ 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
|