فهرست منبع

修改数据接口

zhousheng 4 سال پیش
والد
کامیت
9d16843169

+ 3 - 3
TEAMModelOS/ClientApp/src/components/student-web/EventView/EventContentTypeTemplate/PaperTest.vue

@@ -413,14 +413,14 @@
                     }
                     this.$api.studentWeb.SaveStuExamPaper(req).then(res => {
                         if (res) {
-                            this.$Message.success(this.$t('studentWec.exam.submitSuccess'))
+                            this.$Message.success(this.$t('studentWeb.exam.submitSuccess'))
                             setTimeout(() => {
                                 this.$store.commit("ToggleLessonTestPopWithSubject", "")
                                 this.isLoading = false
                             }, 2000)
                         }
                     }, err => {
-                            this.$Message.warning(this.$t('studentWec.exam.submitFail'))
+                            this.$Message.warning(this.$t('studentWeb.exam.submitFail'))
                         setTimeout(() => {
                             this.isLoading = false
                         }, 1000)
@@ -473,7 +473,7 @@
                             data = await this.getItem(this.$store.getters.getCurrentSubject.stuAns[0])
                             if (data.length) {
                                 this.checkers = [...data]
-                            } else this.$Message.warning(this.$t('studentWec.exam.msgWarning'))
+                            } else this.$Message.warning(this.$t('studentWeb.exam.msgWarning'))
                             this.closeTest = false
                             } else {
                             for (let i = 0; i < this.$store.getters.getCurrentSubject.stuScore.length; i++) {

+ 0 - 2
TEAMModelOS/ClientApp/src/components/student-web/EventView/EventContentTypeTemplate/Vote.vue

@@ -218,8 +218,6 @@
                     this.voteChecked.length = 0
                     this.voteChecked.push(data)
                 }
-                console.log('测试试卷', data)
-                console.log(this.voteCount)
             },
             //处理时间结构
             dateFormat(timestamp) {

+ 19 - 18
TEAMModelOS/ClientApp/src/components/student-web/EventView/EventList.vue

@@ -227,24 +227,25 @@
             getPaper() {
                 this.eventList.length = 0
                 this.isListNoItem = true;
-                if (this.$store.state.user.studentProfile.classinfo.id !== "") {
-                    let params = {
-                        'id': this.$store.state.user.studentProfile.classinfo.id,
-                        'studentId': this.$store.state.userInfo.sub
-                    }
-                    this.$api.studentWeb.FindExamPaper(params).then(res => {
-                        let data = []
-                        for (let item of res.props) {
-                            let code = item.code.split('-')
-                            if (code[0] == 'Exam') {
-                                item.eventType = 'exam'
-                                data.push(item)
-                            }
-                        }
-                        this.eventList = [...data]
-                        this.getActivityInfo()
-                    })
-                }
+                this.getActivityInfo()
+
+                //if (this.$store.state.user.studentProfile.classinfo.id !== "") {
+                //    let params = {
+                //        'id': this.$store.state.user.studentProfile.classinfo.id,
+                //        'studentId': this.$store.state.userInfo.sub
+                //    }
+                //    this.$api.studentWeb.FindExamPaper(params).then(res => {
+                //        let data = []
+                //        for (let item of res.props) {
+                //            let code = item.code.split('-')
+                //            if (code[0] == 'Exam') {
+                //                item.eventType = 'exam'
+                //                data.push(item)
+                //            }
+                //        }
+                //        this.eventList = [...data]
+                //    })
+                //}
             },
             //***临时获取投票数据
             getActivityInfo() {