修改密码验证
This commit is contained in:
parent
4e478f487a
commit
a0e0388df8
|
@ -44,7 +44,6 @@
|
||||||
v-model="ruleForm.address"
|
v-model="ruleForm.address"
|
||||||
:options="regionData"
|
:options="regionData"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
:props="{checkStrictly: true}"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="学校" prop="school" v-if="activeIndex==2">
|
<el-form-item label="学校" prop="school" v-if="activeIndex==2">
|
||||||
|
@ -241,15 +240,16 @@ const handleClose = () => {
|
||||||
confirmPassword:'',
|
confirmPassword:'',
|
||||||
class:[],
|
class:[],
|
||||||
discipline:[],
|
discipline:[],
|
||||||
school:[],
|
school:[100,255,279],
|
||||||
|
address:["50","5001","500101"]
|
||||||
}
|
}
|
||||||
Object.assign(ruleForm, restValue);
|
Object.assign(ruleForm, restValue);
|
||||||
schoolSubject.value=[]
|
schoolSubject.value=[]
|
||||||
gradeTree.value=[]
|
gradeTree.value=[]
|
||||||
if (ruleFormRef.value) ruleFormRef.value.resetFields()
|
if (ruleFormRef.value) ruleFormRef.value.resetFields()
|
||||||
removeToken();
|
removeToken();
|
||||||
activeIndex.value=1
|
|
||||||
dialogVisible.value=false
|
dialogVisible.value=false
|
||||||
|
activeIndex.value=1
|
||||||
}
|
}
|
||||||
|
|
||||||
const nextStep = (formEl) => {
|
const nextStep = (formEl) => {
|
||||||
|
@ -346,13 +346,14 @@ const submitForm = async (formEl) => {
|
||||||
confirmPassword:'',
|
confirmPassword:'',
|
||||||
class:[],
|
class:[],
|
||||||
discipline:[],
|
discipline:[],
|
||||||
school:[],
|
school:[100,255,279],
|
||||||
|
address:["50","5001","500101"]
|
||||||
}
|
}
|
||||||
schoolSubject.value=[]
|
schoolSubject.value=[]
|
||||||
gradeTree.value=[]
|
gradeTree.value=[]
|
||||||
Object.assign(ruleForm, restValue);
|
Object.assign(ruleForm, restValue);
|
||||||
activeIndex.value=1
|
|
||||||
dialogVisible.value=false
|
dialogVisible.value=false
|
||||||
|
activeIndex.value=1
|
||||||
}else{
|
}else{
|
||||||
ElMessage.error(res.msg)
|
ElMessage.error(res.msg)
|
||||||
}
|
}
|
||||||
|
@ -495,7 +496,7 @@ const gradeName = (key) =>{
|
||||||
}
|
}
|
||||||
onMounted(()=>{
|
onMounted(()=>{
|
||||||
//默认给到地区重庆
|
//默认给到地区重庆
|
||||||
ruleForm.address = ['50']
|
ruleForm.address = ["50","5001","500101"]
|
||||||
//默认给到学校的值
|
//默认给到学校的值
|
||||||
ruleForm.school = [100,255,279]
|
ruleForm.school = [100,255,279]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue