Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
43fa21bc
Commit
43fa21bc
authored
Aug 16, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地列表-必填项添加
parent
5e2a800b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
82 deletions
+120
-82
oneCampsiteModal.vue
src/views/campsiteManage/modal/oneCampsiteModal.vue
+119
-81
vehiclePlanModal.vue
src/views/vehicle/vehicleSchedulManage/vehiclePlanModal.vue
+1
-1
No files found.
src/views/campsiteManage/modal/oneCampsiteModal.vue
View file @
43fa21bc
This diff is collapsed.
Click to expand it.
src/views/vehicle/vehicleSchedulManage/vehiclePlanModal.vue
View file @
43fa21bc
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
if
(
!
value
)
{
if
(
!
value
)
{
return
callback
(
new
Error
(
'手机号不能为空'
));
return
callback
(
new
Error
(
'手机号不能为空'
));
}
else
{
}
else
{
const
reg
=
/^
1
[
3|4|5|7|8
][
0-9
]\d
{8}
$/
const
reg
=
/^
[
1
](([
3
][
0-9
])
|
([
4
][
5,7,9
])
|
([
5
][
0-9
])
|
([
6
][
6
])
|
([
7
][
1,2,3,5,6,7,8
])
|
([
8
][
0-9
])
|
([
9
][
1,8,9
]))[
0-9
]
{8}
$/
console
.
log
(
reg
.
test
(
value
));
console
.
log
(
reg
.
test
(
value
));
if
(
reg
.
test
(
value
))
{
if
(
reg
.
test
(
value
))
{
callback
();
callback
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment