Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cfc60474
authored
2024-06-02 12:17:48 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge commit '
2fd4c8f0
' into dev
2 parents
882512ac
2fd4c8f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
src/viewsPc/seat/add-watch-people.vue
src/viewsPc/seat/add-watch-people.vue
View file @
cfc6047
...
...
@@ -25,12 +25,6 @@ const people = reactive({
message
:
languageFormat
(
language
.
value
,
"请输入证件号"
,
"ID Numbe"
),
});
// 使用正则验证身份证号码格式
const
idCardRegex
=
/^
[
1-9
]\d{5}(
19|20
)\d{2}((
0
[
1-9
])
|
(
1
[
0-2
]))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[\d
Xx
]
$/
;
if
(
!
idCardRegex
.
test
(
people
.
form
.
idCard
)
&&
language
.
value
==
0
)
return
ElMessage
({
type
:
"warning"
,
message
:
"身份证号格式不正确"
});
addViewPeople
(
people
.
form
).
then
((
res
)
=>
{
ElMessage
({
type
:
"success"
,
...
...
Write
Preview
Styling with
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