From 102f2220365de7cd04d7cd07d8ff8ef03ca2c460 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 19 二月 2025 08:49:38 +0800 Subject: [PATCH] 修改跳转和双向绑定 --- src/views/commonMod/examApply/index.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/commonMod/examApply/index.vue b/src/views/commonMod/examApply/index.vue index 4c38f58..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> @@ -89,7 +90,7 @@ {{scope.row.siteContacts + '(' + scope.row.siteContactsPhone + ')'}} </template> </el-table-column> - <el-table-column label="申请提交时间" align="center" prop="updateTime" /> + <el-table-column label="考试申请时间" align="center" prop="updateTime" /> <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button @@ -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