|
@@ -35,10 +35,10 @@
|
|
|
:key="item.answerValue"
|
|
|
:title="item.answerValue"
|
|
|
class="teacher-item"
|
|
|
- @click="toggle( item.answerValue)"
|
|
|
+ @click="toggle(item.answerValue)"
|
|
|
>
|
|
|
<template #right-icon>
|
|
|
- <van-radio :name=" item.answerValue">
|
|
|
+ <van-radio :name="item.answerValue">
|
|
|
<template #icon="props">
|
|
|
<!-- <img
|
|
|
class="img-icon"
|
|
@@ -419,12 +419,13 @@ export default {
|
|
|
let currentIsOver = 0; // 是否终止答题
|
|
|
this.checkBox;
|
|
|
answerList.forEach((item) => {
|
|
|
- console.log(item,this.check)
|
|
|
- if (selectList.type == "radio" && this.check ==item.answerValue) {
|
|
|
+ console.log(item, this.check);
|
|
|
+ if (selectList.type == "radio" && this.check == item.answerValue) {
|
|
|
currentIsOver = item.isOver;
|
|
|
} else if (
|
|
|
selectList.type == "checkbox" &&
|
|
|
- this.checkBox.includes(item.answerValue + "")&&!currentIsOver
|
|
|
+ this.checkBox.includes(item.answerValue + "") &&
|
|
|
+ !currentIsOver
|
|
|
) {
|
|
|
currentIsOver = item.isOver;
|
|
|
}
|
|
@@ -450,6 +451,13 @@ export default {
|
|
|
additionalValue: this.textarea,
|
|
|
};
|
|
|
this.textarea = null;
|
|
|
+ } else if (selectList.type == "image") {
|
|
|
+ this.checkList[this.currentIndex - 1] = {
|
|
|
+ questionnaireQuestionId: selectList.id,
|
|
|
+ additionalValue: this.imgUrl,
|
|
|
+ };
|
|
|
+ this.imgUrl = "";
|
|
|
+ this.imageList = [];
|
|
|
}
|
|
|
|
|
|
if (this.currentIndex == this.questionList.length || currentIsOver) {
|