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" &&