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 1e13a56d
authored
Oct 31, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改校验文案
1 parent
58c02dc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/views/residentManage/recruitmentManagement/addRecruitment.vue
src/views/residentManage/recruitmentManagement/addRecruitment.vue
View file @
1e13a56
...
@@ -120,7 +120,8 @@ export default {
...
@@ -120,7 +120,8 @@ export default {
label
:
"招聘数量"
,
label
:
"招聘数量"
,
name
:
"recruitmentQuantity"
,
name
:
"recruitmentQuantity"
,
type
:
"input"
,
type
:
"input"
,
isClear
:
true
isClear
:
true
,
maxlength
:
3
},
},
{
{
label
:
"招聘类型"
,
label
:
"招聘类型"
,
...
@@ -172,7 +173,7 @@ export default {
...
@@ -172,7 +173,7 @@ export default {
console
.
log
(
value
)
console
.
log
(
value
)
// 校验是否为整数
// 校验是否为整数
if
(
!
/^
\d
+$/
.
test
(
value
))
{
if
(
!
/^
\d
+$/
.
test
(
value
))
{
callback
(
new
Error
(
"招聘数量必须为
正
整数"
))
callback
(
new
Error
(
"招聘数量必须为整数"
))
}
else
if
(
value
<=
0
||
value
>
100
)
{
}
else
if
(
value
<=
0
||
value
>
100
)
{
callback
(
new
Error
(
"招聘数量必须为1-100之间的整数"
))
callback
(
new
Error
(
"招聘数量必须为1-100之间的整数"
))
}
else
{
}
else
{
...
...
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