zhouwx
2024-11-11 5f77152002d8620dd482c5939b9be77572230a6c
bug修改
已修改1个文件
7 ■■■■ 文件已修改
src/views/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 === '新增'){