From 35ee7b8bfe337883feedb0e99786c8f1974423d8 Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 20 Dec 2024 10:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E5=8D=B7=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/components/Taskprocess.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/manage/components/Taskprocess.vue b/src/views/manage/components/Taskprocess.vue index 6aab3cd..530add7 100644 --- a/src/views/manage/components/Taskprocess.vue +++ b/src/views/manage/components/Taskprocess.vue @@ -575,11 +575,13 @@ export default { e.questionType == "COMBINATION_SCORING_SUBJECT" ) { if(e.whetherScore==true){ - e.whetherScore = "1"; - }else{ - e.whetherScore = "0"; + e.whetherScore = 1; + }else if(e.whetherScore==false){ + e.whetherScore = 0; } - } + }else{ + e.whetherScore = 0; + } e.questionSubjectOptionList.forEach((el) => { el.questionNumber = e.questionNumber; if ( @@ -602,7 +604,7 @@ export default { this.$delete(this.questiondata, "updateTime"); var score = 0; // 单选、多选、打分分值 - var lengthScore=this.questiondata.questionSubjectList.filter(f=> f.whetherScore == '0') + var lengthScore=this.questiondata.questionSubjectList.filter(f=> f.whetherScore == 0) this.questiondata.questionSubjectList.forEach((e) => { if (e.questionSubjectOptionList?.length > 0) { e.questionSubjectOptionList.forEach((el) => { @@ -614,7 +616,7 @@ export default { e.questionType == "COMBINATION_MULTIPLE_SUBJECT" || e.questionType == "COMBINATION_SCORING_SUBJECT" ) { - if (el.optionChooseSign == "0" && e.whetherScore == '1') { + if (el.optionChooseSign == "0" && e.whetherScore == 1) { score += el.optionScore; } }