lex-xin 3 years ago
parent
commit
6c4e52cb65
2 changed files with 15 additions and 1 deletions
  1. 10 1
      src/api/teacher.js
  2. 5 0
      src/views/audition/CourseEvaluation.vue

+ 10 - 1
src/api/teacher.js

@@ -455,6 +455,14 @@ const newsList = (data) => {
     params: data
   })
 }
+// classGroup/getCourseStudents?courseScheduleId=10352
+const getCourseStudents = (data) => {
+  return axios({
+    url: '/api-teacher/classGroup/getCourseStudents',
+    method: 'get',
+    params: data
+  })
+}
 
 export {
   queryMyCreatedList,
@@ -506,5 +514,6 @@ export {
   findEducationUsers,
   queryDouble11Students,
   newsQuery,
-  newsList
+  newsList,
+  getCourseStudents
 }

+ 5 - 0
src/views/audition/CourseEvaluation.vue

@@ -163,6 +163,7 @@ import {
   getReviewInfo,
   updateReviewInfo,
   checkeIsAssignHomework,
+  getCourseStudents
 } from "@/api/teacher";
 import { browser } from "@/common/common";
 import MHeader from "@/components/MHeader";
@@ -287,6 +288,10 @@ export default {
       }
     });
 
+    await getCourseStudents({ courseScheduleId: this.courseId }).then(res => {
+      console.log(res)
+    })
+
     let courseEvaluationObj = sessionStorage.getItem('courseEvaluationObj')
     courseEvaluationObj = courseEvaluationObj ? JSON.parse(courseEvaluationObj) : null
     // if()