diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index e392bbc..e99bfc5 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -345,12 +345,12 @@ const regex = /^\d+$/ - if (!regex.test(parseFloat(inputValue))) { + if (!regex.test(inputValue)) { layer.msg('请输入大于等于0的正整数') isValidate = true return false } - if (parseFloat(inputValue) > maxValue) { + if (inputValue > maxValue) { layer.msg(`不可当前最大分值是${maxValue}`) isValidate = true return false