|
@@ -661,12 +661,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
toRecord(item) {
|
|
|
- let index = this.getCourseIndex([item.courseId])
|
|
|
- this.$EventBus.$emit('classIndex', index + 1)
|
|
|
- this.$router.push({
|
|
|
- path: "/studentWeb/classRecord",
|
|
|
- query: {aId: item.id}
|
|
|
- })
|
|
|
+ let index = this.getCourseIndex([item.courseId], item.groupIds)
|
|
|
+ if(index === -1) {
|
|
|
+ this.$Message.error("未找到发布该活动的课程")
|
|
|
+ } else {
|
|
|
+ this.$EventBus.$emit('classIndex', index + 1)
|
|
|
+ this.$router.push({
|
|
|
+ path: "/studentWeb/classRecord",
|
|
|
+ query: {aId: item.id}
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
getNoticeInfo(info) {
|
|
|
this.showNotice = true
|