Quellcode durchsuchen

仅查询改老师当前分部的学生

wolyshaw vor 3 Jahren
Ursprung
Commit
f96e18914e
2 geänderte Dateien mit 14 neuen und 4 gelöschten Zeilen
  1. 12 2
      src/api/teacher.js
  2. 2 2
      src/views/teacher/VIP00Apply.vue

+ 12 - 2
src/api/teacher.js

@@ -393,6 +393,15 @@ const queryStudentsWithTeacher = (data) => {
   })
 }
 
+// 获取当前老师主分部学生列表
+const queryStudentsWithTeacherByOrganId = (data) => {
+  return axios({
+    url: '/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId',
+    method: 'get',
+    params: data
+  })
+}
+
 // 获取双十一学生列表
 const queryDouble11Students = (data) => {
   return axios({
@@ -551,5 +560,6 @@ export {
   queryUserById,
   queryPracticeGroupSellPrice,
   practiceGroupApply,
-  getPracticeGroupCostCount
-}
+  getPracticeGroupCostCount,
+  queryStudentsWithTeacherByOrganId
+}

+ 2 - 2
src/views/teacher/VIP00Apply.vue

@@ -504,7 +504,7 @@ import {
   findByTeacherAndCategory,
   vipGroupApply,
   findEducationUsers,
-  queryStudentsWithTeacher,
+  queryStudentsWithTeacherByOrganId,
   queryPracticeGroupSellPrice,
   getPracticeGroupCostCount,
   practiceGroupApply
@@ -1854,7 +1854,7 @@ export default {
     },
     getStudent() {
       let params = this.params;
-      queryStudentsWithTeacher(params).then((res) => {
+      queryStudentsWithTeacherByOrganId(params).then((res) => {
         let result = res.data;
         this.loading = false;
         if (result.code == 200) {