diff --git a/src/components/page/Achievement.vue b/src/components/page/Achievement.vue index 84ddaa7..3701743 100644 --- a/src/components/page/Achievement.vue +++ b/src/components/page/Achievement.vue @@ -123,6 +123,7 @@ export default { data() { return { userId: this.$store.state.userLoginId, + roleId: this.$store.state.userRoleId.includes(',') ? 13 : Number(this.$store.state.userRoleId), keyword: '', systemId: this.$config.systemId, projectPermissions: 0, @@ -213,6 +214,7 @@ export default { type: '', status: '', classId: '', + role: this.roleId } this.$post(this.api.getAssessmentList,data).then(res => { this.listData = res.data.list diff --git a/src/components/page/ExperimentAss.vue b/src/components/page/ExperimentAss.vue index 93aa294..0227d6a 100644 --- a/src/components/page/ExperimentAss.vue +++ b/src/components/page/ExperimentAss.vue @@ -114,10 +114,10 @@ export default { not: 0, reviewList: [ { - id: 0, + id: 1, name: '已批阅' },{ - id: 1, + id: 0, name: '待批阅' } ] @@ -132,25 +132,27 @@ export default { let data = { id: this.id, classId: this.classId, - isRead: this.isRead == 1 ? '' : (this.isRead == 2 ? 0 : 1), //全部:'',已批阅:0,待批阅:1 + isRead: this.isRead == 1 ? '' : (this.isRead == 2 ? 1 : 0), //全部:'',已批阅:1,待批阅:0 searchContent: this.encodeString(this.keyword), } this.$get(this.api.getKdAchievement,data).then(res => { let list = res.data let score = 0 - let already = 0 - let not = 0 - list.map(n => { - n.class = this.className - score += n.score - if(!n.isRead){ - already++ - }else{ - not++ - } - }) - this.already = already - this.not = not + if(this.isRead == '1'){ + let already = 0 + let not = 0 + list.map(n => { + n.class = this.className + score += n.score + if(!n.isRead){ + not++ + }else{ + already++ + } + }) + this.already = already + this.not = not + } this.listDataAll = list this.handlePage() diff --git a/src/components/page/ExperimentTeach.vue b/src/components/page/ExperimentTeach.vue index 5b61e84..2721611 100644 --- a/src/components/page/ExperimentTeach.vue +++ b/src/components/page/ExperimentTeach.vue @@ -67,6 +67,11 @@ + + +