changeScore (val) {
const _self = this;
let result = _self.paperReviewInfoDTO.score;
if (isNaN(Number(_self.paperReviewInfoDTO.score))) {
result = _self.paperReviewInfoDTO.score.length === 1 ? '' : _self.paperReviewInfoDTO.score.substr(0, _self.paperReviewInfoDTO.score.length - 1); ;
// 如果规定为数字类型,不能输入非数字内容
_self.$nextTick(function () {
_self.paperReviewInfoDTO.score = _self.paperReviewInfoDTO.score.length === 1 ? '' : _self.paperReviewInfoDTO.score.substr(0, _self.paperReviewInfoDTO.score.length - 1);
});
} else {
if (Number(_self.paperReviewInfoDTO.score) < 0) {
result = 0
_self.$nextTick(function () {
_self.paperReviewInfoDTO.score = '0';
});
} else if (_self.paperReviewInfoDTO.score > 100) {
result = 100;
_self.$nextTick(function () {
_self.paperReviewInfoDTO.score = '100';
});
}
}
_self.blurScore(result);
},
blurScore (val) {
if (val === '') {
this.paperReviewInfoDTO.evaluation = '';
this.schoolAuditPlanConfigDTO.replyLevelList = [];
} else {
val = Number(val);
for (let index in this.schoolAuditPlanConfigDTO.totalScoreLevelList) {
let score = Number(this.schoolAuditPlanConfigDTO.totalScoreLevelList[index]);
if (Number(index) === this.schoolAuditPlanConfigDTO.totalScoreLevelList.length - 1) {
if (val < score) {
this.paperReviewInfoDTO.evaluation = this.schoolAuditPlanConfigDTO.overallJudgeLevelList[index];
break;
} else if (val >= score) {
this.paperReviewInfoDTO.evaluation = this.schoolAuditPlanConfigDTO.overallJudgeLevelList[index - 1];
break;
}
} else {
if (val >= score) {
this.paperReviewInfoDTO.evaluation = index - 1 >= 0 ? this.schoolAuditPlanConfigDTO.overallJudgeLevelList[index - 1] : this.schoolAuditPlanConfigDTO.overallJudgeLevelList[index];
break;
}
}
}
this.schoolAuditPlanConfigDTO.replyLevelList = this.judgeReplyMap[this.paperReviewInfoDTO.evaluation];
}
},