Showing
2 changed files
with
13 additions
and
2 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2025-06-23 11:46:21 | 2 | * @Date: 2025-06-23 11:46:21 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-12-15 12:30:05 | 4 | + * @LastEditTime: 2025-12-15 13:09:34 |
| 5 | * @FilePath: /mlaj/src/api/teacher.js | 5 | * @FilePath: /mlaj/src/api/teacher.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -116,6 +116,8 @@ export const getStudentDetailAPI = (params) => fn(fetch.get(Api.STUDENT_DETAIL, | ... | @@ -116,6 +116,8 @@ export const getStudentDetailAPI = (params) => fn(fetch.get(Api.STUDENT_DETAIL, |
| 116 | * 获取学员打卡统计 | 116 | * 获取学员打卡统计 |
| 117 | * @param {*} user_id 学员ID | 117 | * @param {*} user_id 学员ID |
| 118 | * @param {*} group_id 课程ID | 118 | * @param {*} group_id 课程ID |
| 119 | + * @param {*} task_id 大作业ID | ||
| 120 | + * @param {*} subtask_id 小作业ID | ||
| 119 | * @param {*} limit 条数 | 121 | * @param {*} limit 条数 |
| 120 | * @param {*} page 页码 | 122 | * @param {*} page 页码 |
| 121 | * @returns {Object} data { date, time, serial_number, status } | 123 | * @returns {Object} data { date, time, serial_number, status } |
| ... | @@ -138,6 +140,8 @@ export const getStudentUploadListAPI = (params) => fn(fetch.get(Api.STUDENT_UPLO | ... | @@ -138,6 +140,8 @@ export const getStudentUploadListAPI = (params) => fn(fetch.get(Api.STUDENT_UPLO |
| 138 | * 获取老师点评列表 | 140 | * 获取老师点评列表 |
| 139 | * @param {*} user_id 学员ID | 141 | * @param {*} user_id 学员ID |
| 140 | * @param {*} group_id 课程ID | 142 | * @param {*} group_id 课程ID |
| 143 | + * @param {*} task_id 大作业ID | ||
| 144 | + * @param {*} subtask_id 小作业ID | ||
| 141 | * @param {*} limit 条数 | 145 | * @param {*} limit 条数 |
| 142 | * @param {*} page 页码 | 146 | * @param {*} page 页码 |
| 143 | * @returns {Object} data | 147 | * @returns {Object} data |
| ... | @@ -164,6 +168,8 @@ export const delCheckinFeedbackAPI = (params) => fn(fetch.post(Api.DEL_CHECKIN_F | ... | @@ -164,6 +168,8 @@ export const delCheckinFeedbackAPI = (params) => fn(fetch.post(Api.DEL_CHECKIN_F |
| 164 | * 学员学习数据 | 168 | * 学员学习数据 |
| 165 | * @param {*} i 学员ID | 169 | * @param {*} i 学员ID |
| 166 | * @param {*} group_id 课程ID | 170 | * @param {*} group_id 课程ID |
| 171 | + * @param {*} task_id 大作业ID | ||
| 172 | + * @param {*} subtask_id 小作业ID | ||
| 167 | * @returns {Object} data { need_checkin_count, real_checkin_count, need_upload_count, real_upload_count } | 173 | * @returns {Object} data { need_checkin_count, real_checkin_count, need_upload_count, real_upload_count } |
| 168 | */ | 174 | */ |
| 169 | export const getStudentStatAPI = (params) => fn(fetch.post(Api.STUDENT_STAT, params)) | 175 | export const getStudentStatAPI = (params) => fn(fetch.post(Api.STUDENT_STAT, params)) | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2025-06-19 17:12:19 | 3 | * @Date: 2025-06-19 17:12:19 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2025-12-15 12:54:05 | 5 | + * @LastEditTime: 2025-12-15 13:08:35 |
| 6 | * @FilePath: /mlaj/src/views/teacher/studentPage.vue | 6 | * @FilePath: /mlaj/src/views/teacher/studentPage.vue |
| 7 | * @Description: 学生详情页面 | 7 | * @Description: 学生详情页面 |
| 8 | --> | 8 | --> |
| ... | @@ -387,6 +387,9 @@ const handleTaskFilterChange = ({ task_id, subtask_id }) => { | ... | @@ -387,6 +387,9 @@ const handleTaskFilterChange = ({ task_id, subtask_id }) => { |
| 387 | evaluationLoading.value = true; | 387 | evaluationLoading.value = true; |
| 388 | onEvaluationLoad(); | 388 | onEvaluationLoad(); |
| 389 | } | 389 | } |
| 390 | + | ||
| 391 | + // 重新获取统计数据以匹配当前选中的课程 | ||
| 392 | + getStatList() | ||
| 390 | } | 393 | } |
| 391 | 394 | ||
| 392 | // 当前选中的标签页 | 395 | // 当前选中的标签页 |
| ... | @@ -913,6 +916,8 @@ const getStatList = async () => { | ... | @@ -913,6 +916,8 @@ const getStatList = async () => { |
| 913 | const { code, data } = await getStudentStatAPI({ | 916 | const { code, data } = await getStudentStatAPI({ |
| 914 | i: route.params.id, | 917 | i: route.params.id, |
| 915 | group_id: selectedCourses.value.length ? selectedCourses.value[0]['id'] : '', | 918 | group_id: selectedCourses.value.length ? selectedCourses.value[0]['id'] : '', |
| 919 | + task_id: filterTaskId.value, | ||
| 920 | + subtask_id: filterSubtaskId.value | ||
| 916 | }) | 921 | }) |
| 917 | 922 | ||
| 918 | if (code) { | 923 | if (code) { | ... | ... |
-
Please register or login to post a comment