diff --git a/src/views/course/question/QuestionAdd.vue b/src/views/course/question/QuestionAdd.vue index 3af5e72..d574103 100644 --- a/src/views/course/question/QuestionAdd.vue +++ b/src/views/course/question/QuestionAdd.vue @@ -50,48 +50,50 @@ + + @@ -165,6 +167,7 @@ export default { components: {}, data() { return { + checkedValues:[], radio: {}, multiselect: {}, estimate: {}, @@ -189,6 +192,9 @@ export default { this.radio.disabled = false } else if (this.tabKey == '2') { this.multiselect = res.data + console.log('c---------------s------------',this.multiselect) + if(this.multiselect.rightAnswers) this.checkedValues = this.multiselect.rightAnswers.split('') + console.log('arr',this.checkedValues) this.multiselect.disabled = false this.getRightAnswer() } else if (this.tabKey == '3') { @@ -226,6 +232,12 @@ export default { this.tabKey = key }, + //多选题选中 + onChange(checkedValues) { + console.log('checked = ', checkedValues); + this.checkedValues = checkedValues; + }, + // 添加填空 addAnswerSize() { if (this.Completion.answerList.length == 5) {