fix:答题多选至少选择一个选项!
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user