修改注册bug
This commit is contained in:
parent
490536654a
commit
0fa3c84f5e
|
@ -54,7 +54,7 @@
|
||||||
:data="gradeTree"
|
:data="gradeTree"
|
||||||
multiple
|
multiple
|
||||||
:render-after-expand="false"
|
:render-after-expand="false"
|
||||||
style="width: 100%"
|
style="width: 100%;-webkit-app-region: no-drag;"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学科" prop="discipline" v-if="activeIndex==2">
|
<el-form-item label="学科" prop="discipline" v-if="activeIndex==2">
|
||||||
|
@ -235,6 +235,20 @@ const OpenModel = v =>{
|
||||||
}
|
}
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
|
var restValue={
|
||||||
|
name: '',
|
||||||
|
idNumber:'',
|
||||||
|
phoneNumber: '',
|
||||||
|
Code:'',
|
||||||
|
password:'',
|
||||||
|
confirmPassword:'',
|
||||||
|
class:[],
|
||||||
|
discipline:[],
|
||||||
|
school:[],
|
||||||
|
}
|
||||||
|
Object.assign(ruleForm, restValue);
|
||||||
|
schoolSubject.value=[]
|
||||||
|
gradeTree.value=[]
|
||||||
if (ruleFormRef.value) ruleFormRef.value.resetFields()
|
if (ruleFormRef.value) ruleFormRef.value.resetFields()
|
||||||
removeToken();
|
removeToken();
|
||||||
activeIndex.value=1
|
activeIndex.value=1
|
||||||
|
@ -337,6 +351,8 @@ const submitForm = async (formEl) => {
|
||||||
discipline:[],
|
discipline:[],
|
||||||
school:[],
|
school:[],
|
||||||
}
|
}
|
||||||
|
schoolSubject.value=[]
|
||||||
|
gradeTree.value=[]
|
||||||
Object.assign(ruleForm, restValue);
|
Object.assign(ruleForm, restValue);
|
||||||
activeIndex.value=1
|
activeIndex.value=1
|
||||||
dialogVisible.value=false
|
dialogVisible.value=false
|
||||||
|
|
Loading…
Reference in New Issue