From a0e0388df8fa300cf9f8278cc6ee4dddbe799fbd Mon Sep 17 00:00:00 2001 From: zhangxuelin <959231531@qq.com> Date: Wed, 25 Sep 2024 14:30:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/login/components/Register.vue | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/renderer/src/views/login/components/Register.vue b/src/renderer/src/views/login/components/Register.vue index 24d0d93..e2d1731 100644 --- a/src/renderer/src/views/login/components/Register.vue +++ b/src/renderer/src/views/login/components/Register.vue @@ -44,7 +44,6 @@ v-model="ruleForm.address" :options="regionData" @change="handleChange" - :props="{checkStrictly: true}" /> @@ -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] })