Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-15 13:23:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca1b974946c6afe141eb7f3d61b5654b3528e139
ca1b9749
1 parent
ef7fbdf1
fix(teacher): 检查学生作业完成状态后再跳转记录页
防止未完成作业的学生跳转到记录页面,添加完成状态检查并提示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
src/views/teacher/taskHomePage.vue
src/views/teacher/taskHomePage.vue
View file @
ca1b974
<!--
* @Date: 2025-11-19 21:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-15 1
1:39:57
* @LastEditTime: 2025-12-15 1
3:21:41
* @FilePath: /mlaj/src/views/teacher/taskHomePage.vue
* @Description: 教师端作业主页(头部介绍、统计、日历与学生完成情况)
-->
...
...
@@ -125,6 +125,7 @@ import checkCorner from '@/assets/images/dui.png'
import { getTeacherTaskDetailAPI } from '@/api/teacher'
import { getCheckinTeacherCheckedDatesAPI } from '@/api/checkin'
import dayjs from 'dayjs'
import { showToast } from 'vant'
const $route = useRoute()
const $router = useRouter()
...
...
@@ -443,6 +444,12 @@ const go_student_record = (stu) => {
if (task_type.value === 'checkin') {
return
}
if (!stu.completed) {
showToast('该学员未完成该作业')
return
}
// 跳转到作业记录页面
$router.push({
name: 'StudentRecord',
...
...
Please
register
or
login
to post a comment