|
|
@@ -4,11 +4,13 @@ |
|
|
|
<div class="schedule"> |
|
|
|
<div class="progress"> |
|
|
|
<van-progress |
|
|
|
:percentage="(select.length / topic.length) * 100" |
|
|
|
:percentage=" |
|
|
|
(select.length == 0 ? 0 : select.length / topic.length) * 100 |
|
|
|
" |
|
|
|
stroke-width="10px" |
|
|
|
color="#638ee4" |
|
|
|
:show-pivot="false" |
|
|
|
v-if="select.length / topic.length" |
|
|
|
v-if="topic.length" |
|
|
|
></van-progress> |
|
|
|
</div> |
|
|
|
<div class="text"> |
|
|
@@ -187,7 +189,10 @@ export default { |
|
|
|
this.topic.forEach((item) => { |
|
|
|
temp.answer.push({ |
|
|
|
qid: item.QId, //问卷题目编号 |
|
|
|
value: typeof item.select == 'object' ? item.select.join(',') : item.select, //用户所选答案的 id |
|
|
|
value: |
|
|
|
typeof item.select == 'object' |
|
|
|
? item.select.join(',') |
|
|
|
: item.select, //用户所选答案的 id |
|
|
|
}) |
|
|
|
}) |
|
|
|
let re = await this.api('/api/Question/Rsults', { |
|
|
|