From ddd0da3750589a9119831797af0e83151dcd65c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 4 Sep 2025 09:42:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E7=AD=94=E9=A2=98=E5=A4=9A?= =?UTF-8?q?=E9=80=89=E8=87=B3=E5=B0=91=E9=80=89=E6=8B=A9=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=80=89=E9=A1=B9=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/examination/subject.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/examination/subject.vue b/src/components/examination/subject.vue index 4d23ef20..fea4f974 100644 --- a/src/components/examination/subject.vue +++ b/src/components/examination/subject.vue @@ -69,7 +69,7 @@ class="send_evaluate" :custom-style="customStyle" :throttleTime="300" - @click="muCheckbox('answer')" + @click="muBtnClick" :hairline="false" > 确定 @@ -112,6 +112,7 @@ import questionVue from './question.vue'; import { markIcon, feedbackIcon } from '@/common/imgSvg'; import { SUBJECT_TYPE } from '@/enum.js'; + import common from '@/common/common'; // 多选的确定按钮的样式 const customStyle = { @@ -295,6 +296,13 @@ } modelValue.value = item_answer.value; }; + const muBtnClick = () => { + if(item_answer.value.length === 0){ + common.msg('请至少选择一个选项!') + return + } + muCheckbox('answer') + } const muCheckbox = (type = 'answer') => { emit('subject_click', type, { qnsTyp: props.item.qnsTyp,