|
@@ -165,7 +165,9 @@ export default {
|
|
|
return !!item
|
|
|
}).length > 0
|
|
|
} else if (this.questionInfo.questionType === '多选题') {
|
|
|
- return this.selectedIdxList.length > 1
|
|
|
+ return !!this.selectedIdxList.find((item) => {
|
|
|
+ return !!item
|
|
|
+ })
|
|
|
} else if (this.questionInfo.questionType === '连线题') {
|
|
|
if (this.selectedIdxList && this.selectedIdxList.flat().filter((item) => {
|
|
|
return !!item
|
|
@@ -222,8 +224,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ canSubmit: {
|
|
|
+ handler(vNew) {
|
|
|
+ this.$emit('canSubmitChange', vNew)
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
- async mounted() {
|
|
|
+ mounted() {
|
|
|
this.resetSelectedIdxList()
|
|
|
},
|
|
|
methods: {
|
|
@@ -239,9 +246,6 @@ export default {
|
|
|
this.selectedIdxList = JSON.parse(JSON.stringify(this.questionInfo.emptyAnswer))
|
|
|
} else {
|
|
|
this.selectedIdxList = new Array(this.questionInfo.answerOptions.length)
|
|
|
- this.selectedIdxList.forEach(element => {
|
|
|
- return !!element
|
|
|
- })
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -305,6 +309,8 @@ export default {
|
|
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
|
font-weight: 400;
|
|
|
color: #693D2F;
|
|
|
+ max-height: 50px;
|
|
|
+ overflow: auto;
|
|
|
}
|
|
|
> button.option {
|
|
|
margin-top: 6px;
|