优化页面提示

This commit is contained in:
BianLzhaoMin 2024-08-02 16:36:40 +08:00
parent eaf3dff8e3
commit 91858692ed
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ export default {
const regex = /^-?\d+$/ const regex = /^-?\d+$/
const isNum = regex.test(val) const isNum = regex.test(val)
if (!isNum) { if (!isNum) {
this.$message.error('请输入正整数负整数或0') this.$message.error('请输入正整数负整数或0')
return return
} }
@ -225,7 +225,7 @@ export default {
throw new Error() throw new Error()
} }
if (!regex.test(e.trimDay)) { if (!regex.test(e.trimDay)) {
this.$message.error('请输入正整数负整数或0') this.$message.error('请输入正整数负整数或0')
this.activeIndex = v this.activeIndex = v
this.$refs[`editIpt_${v}`][0].focus() this.$refs[`editIpt_${v}`][0].focus()
isNum = true isNum = true