|
@@ -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);
|