Sfoglia il codice sorgente

更新 index.vue

pull/1/head
WN 1 anno fa
parent
commit
df94c4b556
1 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. +8
    -3
      src/views/psychological-questionnaire/index.vue

+ 8
- 3
src/views/psychological-questionnaire/index.vue Vedi File

@@ -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', {


Loading…
Annulla
Salva