From 79881fb3fcb5918891c09d06fa7d32df8959fc74 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 27 Feb 2025 11:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/evaluate/outsourcerEvaluation/evaluationForm.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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