Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
train-admin-h5
Overview
Overview
Details
Activity
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
tangjiale
train-admin-h5
Commits
7a47a8df
Commit
7a47a8df
authored
Jul 05, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
f65b4310
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
add-student.vue
pages/components/add-student.vue
+6
-6
No files found.
pages/components/add-student.vue
View file @
7a47a8df
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-02 15:02:39
* @Date: 2022-06-02 15:02:39
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-07-05
09:51:5
9
* @LastEditTime: 2022-07-05
14:28:1
9
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -98,7 +98,7 @@ export default {
...
@@ -98,7 +98,7 @@ export default {
queryDetail
(
id
){
queryDetail
(
id
){
this
.
$refs
[
'studentForm'
]
&&
this
.
$refs
[
'studentForm'
].
resetFields
()
this
.
$refs
[
'studentForm'
]
&&
this
.
$refs
[
'studentForm'
].
resetFields
()
this
.
$service
.
student
.
queryStudentDetail
(
id
).
then
(
res
=>
{
this
.
$service
.
student
.
queryStudentDetail
(
id
).
then
(
res
=>
{
let
{
id
,
name
,
birthday
,
gender
,
fatherPhone
,
motherPhone
,
otherPhone
,
schIds
,
readSchName
}
=
res
let
{
id
=
''
,
name
=
''
,
birthday
=
''
,
gender
=
''
,
fatherPhone
=
''
,
motherPhone
=
''
,
otherPhone
=
''
,
schIds
=
''
,
readSchName
=
''
}
=
res
let
schId
=
(
schIds
.
split
(
','
)).
map
(
v
=>
Number
(
v
))
let
schId
=
(
schIds
.
split
(
','
)).
map
(
v
=>
Number
(
v
))
this
.
param
=
{
id
,
name
,
birthday
,
gender
,
fatherPhone
,
motherPhone
,
otherPhone
,
schIds
:
schId
,
readSchName
}
this
.
param
=
{
id
,
name
,
birthday
,
gender
,
fatherPhone
,
motherPhone
,
otherPhone
,
schIds
:
schId
,
readSchName
}
})
})
...
@@ -111,15 +111,15 @@ export default {
...
@@ -111,15 +111,15 @@ export default {
this
.
$message
.
error
(
'至少输入一个手机号'
)
this
.
$message
.
error
(
'至少输入一个手机号'
)
return
return
}
}
if
(
that
.
param
.
fatherPhone
.
length
&&
!
that
.
isTel
(
that
.
param
.
fatherPhone
)){
if
(
that
.
param
.
fatherPhone
&&
that
.
param
.
fatherPhone
.
length
&&
!
that
.
isTel
(
that
.
param
.
fatherPhone
)){
this
.
$message
.
error
(
'请输入正确手机号'
)
this
.
$message
.
error
(
'请输入正确手机号'
)
return
return
}
}
if
(
that
.
param
.
motherPhone
.
length
&&
!
that
.
isTel
(
that
.
param
.
motherPhone
)){
if
(
that
.
param
.
motherPhone
&&
that
.
param
.
motherPhone
.
length
&&
!
that
.
isTel
(
that
.
param
.
motherPhone
)){
this
.
$message
.
error
(
'请输入正确手机号'
)
this
.
$message
.
error
(
'请输入正确手机号'
)
return
return
}
}
if
(
that
.
param
.
otherPhone
.
length
&&
!
that
.
isTel
(
that
.
param
.
otherPhone
)){
if
(
that
.
param
.
otherPhone
&&
that
.
param
.
otherPhone
.
length
&&
!
that
.
isTel
(
that
.
param
.
otherPhone
)){
this
.
$message
.
error
(
'请输入正确手机号'
)
this
.
$message
.
error
(
'请输入正确手机号'
)
return
return
}
}
...
@@ -134,7 +134,7 @@ export default {
...
@@ -134,7 +134,7 @@ export default {
that
.
$emit
(
'update'
)
that
.
$emit
(
'update'
)
that
.
$refs
[
'studentForm'
]
&&
that
.
$refs
[
'studentForm'
].
resetFields
()
that
.
$refs
[
'studentForm'
]
&&
that
.
$refs
[
'studentForm'
].
resetFields
()
that
.
change
()
that
.
change
()
},
15
00
)
},
2
00
)
})
})
}
}
})
})
...
...
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