Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 78c915a3
authored
Jun 26, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
46a4b572
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/residentManage/inStoreManage/components/performanceDeductionDialog.vue
src/views/residentManage/inStoreManage/components/performanceDeductionDialog.vue
View file @
78c915a
...
...
@@ -473,15 +473,15 @@ export default {
},
// 验证数字输入
validateNumber
(
item
,
field
,
maxLimit
=
31
)
{
// console.log(item, field)
let
value
=
item
[
field
]
value
=
parseInt
(
value
)
||
""
value
=
isNaN
(
value
)
||
""
value
=
parseInt
(
value
)
if
(
isNaN
(
value
))
value
=
""
// 限制最大值
if
(
parseInt
(
value
)
>
maxLimit
)
{
value
=
""
this
.
$message
.
warning
(
`输入值不能超过
${
maxLimit
}
`
)
}
console
.
log
(
parseInt
(
value
)
<
0
,
"parseInt(value) < 0"
)
if
(
parseInt
(
value
)
<
0
)
{
value
=
""
this
.
$message
.
warning
(
`输入值不能小于0`
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment