diff --git a/frontend/src/views/student/score/index.vue b/frontend/src/views/student/score/index.vue index fd37ff32..38e01d6c 100644 --- a/frontend/src/views/student/score/index.vue +++ b/frontend/src/views/student/score/index.vue @@ -3,7 +3,7 @@ - + @@ -14,7 +14,7 @@ - + @@ -122,6 +122,13 @@ export default { this.handleSearch() } }, + computed: { + /** 学员角色(后端角色键 STUDENT)隐藏学号/班次查询,仅查看本人成绩 */ + isStudentRole() { + const roles = this.$store.getters.roles + return Array.isArray(roles) && roles.includes('STUDENT') + } + }, mounted() { this.loadKbOptions() this.loadTeamOptions() diff --git a/frontend/src/views/student/studentInfo/index.vue b/frontend/src/views/student/studentInfo/index.vue index e4467777..eaa31b64 100644 --- a/frontend/src/views/student/studentInfo/index.vue +++ b/frontend/src/views/student/studentInfo/index.vue @@ -1,7 +1,7 @@