BUG 29768

This commit is contained in:
aixianling
2022-05-23 10:42:15 +08:00
parent 0bb74acc20
commit 8b1e65d71c

View File

@@ -57,11 +57,8 @@ export default {
if (!userId) {
return this.$u.toast("请选择人员")
}
if (isNaN(integral)) {
return this.$u.toast("请输入赠送分值")
}
if(!/^\d*[.\d]\d?$/.test(integral)){
return this.$u.toast("请输入正数,最多保留一位小数")
if(isNaN(integral)||!/^\d*[.\d]\d?$/.test(integral)){
return this.$u.toast("请输入赠送分值,最多保留一位小数")
}
this.$http.post("/admin/user/giveIntegral", null, {
params: {...this.form}