From f32d19e411bfa8d601760f57e4851523d231bc81 Mon Sep 17 00:00:00 2001 From: zhaichao Date: Fri, 28 Aug 2026 17:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E5=91=98=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/student/score/index.vue | 11 +++++++++-- frontend/src/views/student/studentInfo/index.vue | 9 +++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) 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 @@