|
@@ -75,6 +75,9 @@ export default {
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
|
|
+ classid() {
|
|
|
|
+ return this.$route.query.classid;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.title = this.$route.meta.title;
|
|
this.title = this.$route.meta.title;
|
|
@@ -94,7 +97,9 @@ export default {
|
|
...mapSubject({ subjectinfo: 'fetch', subjectlist: 'query' }),
|
|
...mapSubject({ subjectinfo: 'fetch', subjectlist: 'query' }),
|
|
// 平时成绩学生名单查询+作业成绩学生名单查询
|
|
// 平时成绩学生名单查询+作业成绩学生名单查询
|
|
async search() {
|
|
async search() {
|
|
- let classid = this.user.classid;
|
|
|
|
|
|
+ let classid;
|
|
|
|
+ if (this.user.type === '1') classid = this.classid;
|
|
|
|
+ else classid = this.user.classid;
|
|
const res = await this.list({ classid });
|
|
const res = await this.list({ classid });
|
|
this.$set(this, `peaceAchieveList`, res.data);
|
|
this.$set(this, `peaceAchieveList`, res.data);
|
|
},
|
|
},
|