From 06300c042948315fe2f9410c2c5d49b2592c1cbd Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Tue, 30 Nov 2021 08:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E4=BA=8C=E7=8B=97=E5=AD=90=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/question/QuestionAdd.vue | 24 +++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) 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) {