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
861b6a23
Commit
861b6a23
authored
Jun 27, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复Bug
parent
56cf43ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
add-student.vue
pages/components/add-student.vue
+17
-2
No files found.
pages/components/add-student.vue
View file @
861b6a23
...
@@ -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-06-27 10:
22:2
3
* @LastEditTime: 2022-06-27 10:
34:0
3
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<div
class=
"btns"
>
<div
class=
"btns"
>
<el-button
type=
"primary"
@
click=
"change"
>
取消
</el-button>
<el-button
@
click=
"change"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit('studentForm')"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit('studentForm')"
>
确定
</el-button>
</div>
</div>
</el-form>
</el-form>
...
@@ -77,11 +77,18 @@ export default {
...
@@ -77,11 +77,18 @@ export default {
}
}
}
}
},
},
mounted
(){
},
methods
:{
methods
:{
change
(){
change
(){
this
.
$refs
[
'c-dialog'
].
change
()
this
.
$refs
[
'c-dialog'
].
change
()
this
.
$refs
[
'studentForm'
]
&&
this
.
$refs
[
'studentForm'
].
resetFields
()
},
resetForm
(){
this
.
$refs
[
'studentForm'
]
&&
this
.
$refs
[
'studentForm'
].
resetFields
()
},
},
queryDetail
(
id
){
queryDetail
(
id
){
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
))
...
@@ -104,6 +111,7 @@ export default {
...
@@ -104,6 +111,7 @@ export default {
that
.
$notifySuccess
()
that
.
$notifySuccess
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
that
.
$emit
(
'update'
)
that
.
$emit
(
'update'
)
that
.
$refs
[
'studentForm'
].
resetFields
()
that
.
change
()
that
.
change
()
},
1500
)
},
1500
)
})
})
...
@@ -131,4 +139,10 @@ export default {
...
@@ -131,4 +139,10 @@ export default {
/
deep
/
.el-form-item
.el-form-item__content
{
/
deep
/
.el-form-item
.el-form-item__content
{
height
:
auto
!important
;
height
:
auto
!important
;
}
}
/
deep
/
.el-input--suffix
.el-input__inner
{
width
:
250px
!important
;
}
/
deep
/
.el-input
.el-input__inner
{
width
:
250px
!important
;
}
</
style
>
</
style
>
\ No newline at end of file
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