hookehuyr

fix(teacher): 使用路由参数替代本地变量获取任务数据

修复学生记录页面中任务数据获取方式,从使用本地变量改为从路由参数获取,确保数据一致性
<!--
* @Date: 2025-11-19 22:05:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-12 21:26:17
* @LastEditTime: 2025-12-13 21:42:55
* @FilePath: /mlaj/src/views/teacher/studentRecordPage.vue
* @Description: 学生作业记录页面(仅作业记录与点评功能),固定 user_id 与 group_id
-->
......@@ -247,12 +247,12 @@ function handleAudioPlay(id) {
async function onLoad() {
const nextPage = page.value
const res = await getCheckinTeacherListAPI({
task_id: task_id.value,
subtask_id: selectedSubtaskId.value,
task_id: $route.query.task_id,
subtask_id: $route.query.subtask_id,
limit: limit.value,
page: nextPage,
created_by: created_by.value,
date: date.value,
created_by: $route.query.created_by,
date: $route.query.date,
})
if (res.code) {
checkinDataList.value = [...checkinDataList.value, ...formatData(res.data.checkin_list)]
......