Commit 861b6a23 by tangjiale

修复Bug

parent 56cf43ef
...@@ -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:23 * @LastEditTime: 2022-06-27 10:34:03
--> -->
<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
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