From 0416e559bbf2b003c8c23c6610304f3afb48b958 Mon Sep 17 00:00:00 2001 From: shidongli Date: Thu, 19 Dec 2024 10:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E5=8D=B7=E6=9F=A5=E7=9C=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/Satisfactionsurvey/index.vue | 11 ++++++++++- src/views/system/followup/index.vue | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/views/manage/Satisfactionsurvey/index.vue b/src/views/manage/Satisfactionsurvey/index.vue index ab9dee8..c29937d 100644 --- a/src/views/manage/Satisfactionsurvey/index.vue +++ b/src/views/manage/Satisfactionsurvey/index.vue @@ -311,7 +311,7 @@
-
总分:{{ questiondata.totalScore }}分
+
总分:{{ totalScoredata }}分
{ this.questiondata = res.data; this.questiondata.subjectResultList.forEach((e) => { + if(e.whetherScore==1){ + e.optionResults.forEach((el) => { + if(el.optionChooseSign=="0"){ + this.totalScoredata += el.optionScore + } + }) + } e.optionResults.forEach((el) => { if ( (el.optionChooseSign == "0" && diff --git a/src/views/system/followup/index.vue b/src/views/system/followup/index.vue index 4c4f257..1a5b513 100644 --- a/src/views/system/followup/index.vue +++ b/src/views/system/followup/index.vue @@ -585,7 +585,7 @@
-
总分:{{ questiondata.totalScore }}分
+
总分:{{ totalScoredata }}分
{ this.questiondata = res.data; this.questiondata.subjectResultList.forEach((e) => { + if(e.whetherScore==1){ + e.optionResults.forEach((el) => { + if(el.optionChooseSign=="0"){ + this.totalScoredata += el.optionScore + } + }) + } e.optionResults.forEach((el) => { if ( (el.optionChooseSign == "0" &&