hookehuyr

fix(teacher): 修复年级切换时班级值未重置的问题

移除年级切换时对班级值的重置操作,保留课程值的重置
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2025-01-20 10:00:00 3 * @Date: 2025-01-20 10:00:00
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2025-06-27 14:46:06 5 + * @LastEditTime: 2025-06-27 15:29:06
6 * @FilePath: /mlaj/src/views/teacher/myClassPage.vue 6 * @FilePath: /mlaj/src/views/teacher/myClassPage.vue
7 * @Description: 我的班级页面 7 * @Description: 我的班级页面
8 --> 8 -->
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 <!-- 筛选器 --> 30 <!-- 筛选器 -->
31 <div> 31 <div>
32 <van-sticky> 32 <van-sticky>
33 - <van-dropdown-menu active-color="#10b981" swipe-threshold="3"> 33 + <van-dropdown-menu active-color="#10b981" swipe-threshold="2">
34 <van-dropdown-item v-model="selectGradeValue" :options="gradeOption" @change="handleGradeChange" /> 34 <van-dropdown-item v-model="selectGradeValue" :options="gradeOption" @change="handleGradeChange" />
35 <van-dropdown-item v-model="selectClassValue" :options="classOption" @change="handleClassChange" /> 35 <van-dropdown-item v-model="selectClassValue" :options="classOption" @change="handleClassChange" />
36 <van-dropdown-item v-model="selectCourseValue" :options="courseOption" @change="handleCourseChange" /> 36 <van-dropdown-item v-model="selectCourseValue" :options="courseOption" @change="handleCourseChange" />
...@@ -239,7 +239,6 @@ const handleGradeChange = async (val) => { ...@@ -239,7 +239,6 @@ const handleGradeChange = async (val) => {
239 console.log('val', val); 239 console.log('val', val);
240 selectGradeValue.value = val; 240 selectGradeValue.value = val;
241 // 重置班级和课程选择 241 // 重置班级和课程选择
242 - selectClassValue.value = null;
243 selectCourseValue.value = null; 242 selectCourseValue.value = null;
244 243
245 // 根据年级ID 更新过滤列表 244 // 根据年级ID 更新过滤列表
......