BUG 29767

This commit is contained in:
aixianling
2022-05-23 10:44:09 +08:00
parent 8b1e65d71c
commit b3a78be0c0

View File

@@ -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 || ""
} }