This commit is contained in:
parent
f003a0c4be
commit
79881fb3fc
|
|
@ -345,12 +345,12 @@
|
||||||
|
|
||||||
const regex = /^\d+$/
|
const regex = /^\d+$/
|
||||||
|
|
||||||
if (!regex.test(parseFloat(inputValue))) {
|
if (!regex.test(inputValue)) {
|
||||||
layer.msg('请输入大于等于0的正整数')
|
layer.msg('请输入大于等于0的正整数')
|
||||||
isValidate = true
|
isValidate = true
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (parseFloat(inputValue) > maxValue) {
|
if (inputValue > maxValue) {
|
||||||
layer.msg(`不可当前最大分值是${maxValue}`)
|
layer.msg(`不可当前最大分值是${maxValue}`)
|
||||||
isValidate = true
|
isValidate = true
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue