lrf402788946 4 years ago
parent
commit
6bea3fae70
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/statistics/detail.vue

+ 3 - 3
src/views/statistics/detail.vue

@@ -109,9 +109,9 @@ export default {
         const { questionnaireid, ...stuquery } = this.querys;
         let studentList = await this.studentQuery(stuquery);
         let answerDta = {
-          yesAnswer: ansres.total,
-          noAnswer: studentList.total - ansres.total,
-          percentage: _.ceil(ansres.total / studentList.total, 4) * 100,
+          yesAnswer: allAnswer.length,
+          noAnswer: studentList.total - allAnswer.length,
+          percentage: _.ceil(allAnswer.length / studentList.total, 4) * 100,
         };
         console.log(answerDta);
         this.$set(this, `questionAnswer`, answerDta);