From 02bd5982028af6e791dd0857f535a41aaf74679e Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期一, 10 二月 2025 13:14:32 +0800
Subject: [PATCH] 修改

---
 src/views/commonMod/examApply/index.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/views/commonMod/examApply/index.vue b/src/views/commonMod/examApply/index.vue
index 14e1f92..846e025 100644
--- a/src/views/commonMod/examApply/index.vue
+++ b/src/views/commonMod/examApply/index.vue
@@ -41,19 +41,20 @@
           plain
           size="mini"
           @click="openExamApply({},'add')"
-          v-hasPermi="['system:experts:add']"
         >考试计划申请</el-button>
         <el-button
           type="primary"
           plain
           size="mini"
           @click="openExamRegist()"
+          v-if="!roles.find(i=>i=='feimeiexam') && !roles.find(i=>i=='mkexam')"
         >考试报名</el-button>
         <el-button
           type="primary"
           plain
           size="mini"
           @click="openGrades()"
+          v-if="!roles.find(i=>i=='feimeiexam') && !roles.find(i=>i=='mkexam')"
         >成绩查询</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -174,10 +175,16 @@
         examEndTime: '',
         pageNum: 1,
         pageSize: 10
-      }
+      },
+      roles: []
     };
   },
   created() {
+    this.roles = store.getters && store.getters.roles
+    console.log(this.roles,'role')
+    // if (roles.includes('mk')) {
+    //   this.form.isCm = 1
+    // }
     this.getList()
     this.getTypeList()
     this.getArea()

--
Gitblit v1.9.2