Commit 861b6a23 by tangjiale

修复Bug

parent 56cf43ef
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-02 15:02:39
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-27 10:22:23
* @LastEditTime: 2022-06-27 10:34:03
-->
<template>
<div>
......@@ -42,7 +42,7 @@
<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>
</div>
</el-form>
......@@ -77,11 +77,18 @@ export default {
}
}
},
mounted(){
},
methods:{
change(){
this.$refs['c-dialog'].change()
this.$refs['studentForm'] && this.$refs['studentForm'].resetFields()
},
resetForm(){
this.$refs['studentForm'] && this.$refs['studentForm'].resetFields()
},
queryDetail(id){
this.$refs['studentForm'].resetFields()
this.$service.student.queryStudentDetail(id).then(res =>{
let {id,name,birthday,gender,fatherPhone,motherPhone,otherPhone,schIds,readSchName} = res
let schId = (schIds.split(',')).map(v => Number(v))
......@@ -104,6 +111,7 @@ export default {
that.$notifySuccess()
setTimeout(() =>{
that.$emit('update')
that.$refs['studentForm'].resetFields()
that.change()
},1500)
})
......@@ -131,4 +139,10 @@ export default {
/deep/ .el-form-item .el-form-item__content{
height: auto !important;
}
/deep/ .el-input--suffix .el-input__inner{
width: 250px !important;
}
/deep/ .el-input .el-input__inner{
width: 250px !important;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment