BUG 29767
This commit is contained in:
@@ -57,7 +57,7 @@ export default {
|
|||||||
if (!userId) {
|
if (!userId) {
|
||||||
return this.$u.toast("请选择人员")
|
return this.$u.toast("请选择人员")
|
||||||
}
|
}
|
||||||
if(isNaN(integral)||!/^\d*[.\d]\d?$/.test(integral)){
|
if (isNaN(integral) || !/^\d*[.\d]\d?$/.test(integral)) {
|
||||||
return this.$u.toast("请输入赠送分值,最多保留一位小数")
|
return this.$u.toast("请输入赠送分值,最多保留一位小数")
|
||||||
}
|
}
|
||||||
this.$http.post("/admin/user/giveIntegral", null, {
|
this.$http.post("/admin/user/giveIntegral", null, {
|
||||||
@@ -65,14 +65,11 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$u.toast("提交成功!")
|
this.$u.toast("提交成功!")
|
||||||
uni.navigateBack({
|
uni.navigateBack({})
|
||||||
success: () => uni.$emit('reachBottom', true)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectUser(v) {
|
handleSelectUser(v) {
|
||||||
console.log(v)
|
|
||||||
this.form.userId = v?.[0]?.id || ""
|
this.form.userId = v?.[0]?.id || ""
|
||||||
this.form.userName = v?.[0]?.name || ""
|
this.form.userName = v?.[0]?.name || ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user