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; } }