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
009b1bb5
authored
2024-06-07 18:12:05 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
2e2f1498
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/viewsPc/match/components/addCoach.vue
src/viewsPc/match/components/addCoach.vue
View file @
009b1bb
...
...
@@ -8,7 +8,7 @@
<el-row
:gutter=
"30"
class=
"mt30"
>
<el-col
:lg=
"12"
class=
"touxiang"
>
<el-form-item
prop=
"picUrl"
:label=
"language==0?'个人照片':'photo'"
:required=
"form.labelArr.indexOf('0')>-1"
>
<el-form-item
prop=
"picUrl"
:label=
"language==0?'个人照片':'photo'"
>
<ImageUpload2
v-model=
"form.picUrl"
:crop-height=
"280"
:crop-width=
"200"
class=
"threeFour"
:limit=
"1"
:is-show-tip=
"false"
...
...
@@ -304,10 +304,10 @@ function giveBirthDay() {
function
submitForm
()
{
proxy
.
$refs
[
'dialogRef'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
!
form
.
value
.
picUrl
&&
form
.
value
.
labelArr
.
indexOf
(
'0'
)
>-
1
){
ElMessage
.
warning
(
language
.
value
==
0
?
'请上传个人照片'
:
'Please upload your photo'
)
return
}
//
if(!form.value.picUrl&&form.value.labelArr.indexOf('0')>-1){
//
ElMessage.warning(language.value == 0 ? '请上传个人照片' :'Please upload your photo')
//
return
//
}
// 验证身份证号
if
(
form
.
value
.
idcType
==
0
&&
!
(
/
(
^
\d{15}
$
)
|
(
^
\d{17}([
0-9
]
|X
)
$
)
/
.
test
(
form
.
value
.
idcCode
)))
{
ElMessage
.
warning
(
'请输入正确的身份证号码'
)
...
...
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