Browse Source

Update member-class-setting.vue

lex-xin 11 months ago
parent
commit
3ded871f35
1 changed files with 16 additions and 15 deletions
  1. 16 15
      src/views/teamDetail/components/modals/member-class-setting.vue

+ 16 - 15
src/views/teamDetail/components/modals/member-class-setting.vue

@@ -94,9 +94,10 @@
       v-if="studentListModalVisible"
       v-if="studentListModalVisible"
     >
     >
       <viewStudentList
       <viewStudentList
-        :list="studentList"
+        :activeRow="{id: detail.id}"
+        :select="false"
         v-if="studentListModalVisible"
         v-if="studentListModalVisible"
-        :showOk="true"
+        :showOk="false"
         :isChiose="false"
         :isChiose="false"
         @close="studentListModalVisible = false"
         @close="studentListModalVisible = false"
       />
       />
@@ -171,19 +172,19 @@ export default {
     } catch (error) {}
     } catch (error) {}
     // console.log('courseTypeList',this.courseTypeList)
     // console.log('courseTypeList',this.courseTypeList)
     // 获取班级的学生列表
     // 获取班级的学生列表
-    getClassAllStudent({ classGroupId: this.detail.id }).then((res) => {
-      if (res.code == 200) {
-        this.studentList = res.data.map((item) => {
-          return {
-            userId: item.userId,
-            nickName: item.name,
-            gender: item.gender,
-            phone: item.parentsPhone,
-            subjectNames: item.subjectName,
-          };
-        });
-      }
-    });
+    // getClassAllStudent({ classGroupId: this.detail.id }).then((res) => {
+    //   if (res.code == 200) {
+    //     this.studentList = res.data.map((item) => {
+    //       return {
+    //         userId: item.userId,
+    //         nickName: item.name,
+    //         gender: item.gender,
+    //         phone: item.parentsPhone,
+    //         subjectNames: item.subjectName,
+    //       };
+    //     });
+    //   }
+    // });
     this.setCourseTypeListByName(); // 获取课程名称和枚举的键值对
     this.setCourseTypeListByName(); // 获取课程名称和枚举的键值对
     this.formatClasss(); // 初始化班级
     this.formatClasss(); // 初始化班级
     this.FetchHoliday(); // 设置节假日
     this.FetchHoliday(); // 设置节假日