From 4c66cc90c054afa1e6ceb3c3160fc87f1f8b4b33 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Sun, 22 Sep 2024 16:46:37 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/login/components/Register.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/views/login/components/Register.vue b/src/renderer/src/views/login/components/Register.vue index 66d69a3..24d0d93 100644 --- a/src/renderer/src/views/login/components/Register.vue +++ b/src/renderer/src/views/login/components/Register.vue @@ -297,7 +297,6 @@ const nextStep = (formEl) => { } }) getSubject() - console.log(res) }) console.log('submit!') } @@ -311,7 +310,8 @@ const getSubject = async ()=>{ const rows= await listEvaluation({ itemkey: "subject", pageSize: 500 }) console.log(rows,'所有学科') allSubjectList.value = rows.data - + accessToDisciplines() + getClassmain() } const submitForm = async (formEl) => { @@ -456,8 +456,8 @@ const accessToDisciplines = () => { } // 获取班级 const getClassmain = async ()=>{ + console.log(ruleForm.school) const res = await listClassmain( {entpid: ruleForm.school[2], pageSize: 500, status: 'open'}) - console.log(res,'res') gradeTree.value = groupByCondition(res.rows, item => item.agekey); } //将所有班级筛选成二级的数组 @@ -498,9 +498,6 @@ const gradeName = (key) =>{ ruleForm.address = ['50'] //默认给到学校的值 ruleForm.school = [100,255,279] - //默认获取重庆第一个学校的学科 - accessToDisciplines() - getClassmain() }) defineExpose({ OpenModel,