From 5f77152002d8620dd482c5939b9be77572230a6c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Mon, 11 Nov 2024 09:14:43 +0800
Subject: [PATCH] bug修改
---
src/views/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/views/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue b/src/views/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue
index 941c5cc..92a67f4 100644
--- a/src/views/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue
+++ b/src/views/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue
@@ -79,7 +79,7 @@
<el-radio :label="String.fromCharCode(index + 65)" style="margin-left: 20px">{{String.fromCharCode(index + 65)}}</el-radio>
</div>
</el-radio-group>
- <el-checkbox-group v-model="state.checkList" v-if="state.form.questionType === 2" style="display: flex" >
+ <el-checkbox-group v-model="state.checkList" v-if="state.form.questionType === 2" style="display: flex" @change="changeCheck">
<div v-for="(item,index) in state.optionItem.items">
<el-checkbox :label="String.fromCharCode(index + 65)" style="margin-left: 20px;">{{String.fromCharCode(index + 65)}}</el-checkbox>
</div>
@@ -186,6 +186,10 @@
}
})
}
+const changeCheck = (val) => {
+ console.log('val',val)
+ state.form.answer = val.join(',')
+}
const addOption = () => {
@@ -279,6 +283,7 @@
const onSubmit = async () => {
+ console.log(" state.form", state.form)
const valid = await busRef.value.validate();
if(valid){
if(title.value === '新增'){
--
Gitblit v1.9.2