fix:答题多选至少选择一个选项!

This commit is contained in:
杨航
2025-09-04 09:42:53 +08:00
parent aa8218d496
commit ddd0da3750
+9 -1
View File
@@ -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,