zdg #277
|
@ -44,7 +44,6 @@
|
|||
v-model="ruleForm.address"
|
||||
:options="regionData"
|
||||
@change="handleChange"
|
||||
:props="{checkStrictly: true}"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="学校" prop="school" v-if="activeIndex==2">
|
||||
|
@ -233,23 +232,24 @@ const OpenModel = v =>{
|
|||
// 关闭弹窗
|
||||
const handleClose = () => {
|
||||
var restValue={
|
||||
name: '',
|
||||
idNumber:'',
|
||||
phoneNumber: '',
|
||||
Code:'',
|
||||
password:'',
|
||||
confirmPassword:'',
|
||||
class:[],
|
||||
discipline:[],
|
||||
school:[],
|
||||
}
|
||||
name: '',
|
||||
idNumber:'',
|
||||
phoneNumber: '',
|
||||
Code:'',
|
||||
password:'',
|
||||
confirmPassword:'',
|
||||
class:[],
|
||||
discipline:[],
|
||||
school:[100,255,279],
|
||||
address:["50","5001","500101"]
|
||||
}
|
||||
Object.assign(ruleForm, restValue);
|
||||
schoolSubject.value=[]
|
||||
gradeTree.value=[]
|
||||
if (ruleFormRef.value) ruleFormRef.value.resetFields()
|
||||
removeToken();
|
||||
activeIndex.value=1
|
||||
dialogVisible.value=false
|
||||
activeIndex.value=1
|
||||
}
|
||||
|
||||
const nextStep = (formEl) => {
|
||||
|
@ -346,13 +346,14 @@ const submitForm = async (formEl) => {
|
|||
confirmPassword:'',
|
||||
class:[],
|
||||
discipline:[],
|
||||
school:[],
|
||||
school:[100,255,279],
|
||||
address:["50","5001","500101"]
|
||||
}
|
||||
schoolSubject.value=[]
|
||||
gradeTree.value=[]
|
||||
Object.assign(ruleForm, restValue);
|
||||
dialogVisible.value=false
|
||||
activeIndex.value=1
|
||||
dialogVisible.value=false
|
||||
}else{
|
||||
ElMessage.error(res.msg)
|
||||
}
|
||||
|
@ -495,7 +496,7 @@ const gradeName = (key) =>{
|
|||
}
|
||||
onMounted(()=>{
|
||||
//默认给到地区重庆
|
||||
ruleForm.address = ['50']
|
||||
ruleForm.address = ["50","5001","500101"]
|
||||
//默认给到学校的值
|
||||
ruleForm.school = [100,255,279]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue