|
@@ -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() {
|