fix:评估评分题目提交数据修改

This commit is contained in:
wyx
2023-03-28 17:42:33 +08:00
parent b595cd6092
commit 409a901aab
2 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ import {useRoute} from "vue-router/dist/vue-router";
import {USER_INFO} from "@/api/api"; import {USER_INFO} from "@/api/api";
import {IsPhone} from "@/api/utils"; import {IsPhone} from "@/api/utils";
console.log("版本2.1.3------------"); console.log("版本2.1.5------------");
const store = useStore(); const store = useStore();
const { path } = useRoute(); const { path } = useRoute();

View File

@@ -49,11 +49,11 @@
:style="{ :style="{
'margin-left': key === 0 ? '15px' : '10px', 'margin-left': key === 0 ? '15px' : '10px',
background: background:
value.selectAnswer === item value.selectAnswer === item + 1
? 'rgba(86, 163, 249, 1)' ? 'rgba(86, 163, 249, 1)'
: 'rgba(86, 163, 249, 0)', : 'rgba(86, 163, 249, 0)',
color: color:
value.selectAnswer === item value.selectAnswer === item + 1
? '#fff' ? '#fff'
: 'rgba(86, 163, 249, 1)', : 'rgba(86, 163, 249, 1)',
}" }"
@@ -62,7 +62,7 @@
if (data.isSubmit) { if (data.isSubmit) {
return; return;
} }
value.selectAnswer = item; value.selectAnswer = item + 1;
} }
"> ">
<div>{{ item + 1 }}</div> <div>{{ item + 1 }}</div>