From ddb331f0fd781699da1e81c7d8bfa6d5604c36ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Thu, 16 Oct 2025 18:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=BF=87=E5=A4=9A=E7=8F=AD=E7=BA=A7=E5=AF=BC=E8=87=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/student/index.vue | 13 +++++++++++-- src/views/teacher/index.vue | 15 ++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/views/student/index.vue b/src/views/student/index.vue index 97fc103..33fc7ff 100644 --- a/src/views/student/index.vue +++ b/src/views/student/index.vue @@ -25,7 +25,7 @@ - + - + { }; const getClass = () => { + if ( + search.schoolId == 0 || + search.schoolId == undefined || + search.grade == "" || + search.grade == undefined + ) { + classList.value = []; + return; + } const data = { schoolId: search.schoolId || 0, graduationYear: search.graduationYear || 0, diff --git a/src/views/teacher/index.vue b/src/views/teacher/index.vue index 839e487..9ac9837 100644 --- a/src/views/teacher/index.vue +++ b/src/views/teacher/index.vue @@ -54,7 +54,7 @@ - + - + - + { }; const getClass = () => { + if ( + search.schoolId == 0 || + search.schoolId == undefined || + search.grade == "" || + search.grade == undefined + ) { + classList.value = []; + return; + } const data = { schoolId: search.schoolId || 0, graduationYear: search.graduationYear || 0,