Browse Source

Merge branch 'xw/develop11' into develop

XW 2 years ago
parent
commit
8335522be4

+ 10 - 6
TEAMModelOS/ClientApp/src/components/student-web/HomeView/newHomeView.vue

@@ -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