From 562ae0d927e8731420498c1e49cf62ebeb95f76a Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 20 Aug 2021 10:26:14 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises
---
src/views/applyexam/index.vue | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/views/applyexam/index.vue b/src/views/applyexam/index.vue
index 6127b2c..8ada691 100644
--- a/src/views/applyexam/index.vue
+++ b/src/views/applyexam/index.vue
@@ -65,6 +65,7 @@
plain
icon="el-icon-folder-checked"
@click="handleBatchExam"
+ v-if="permission.applyexam_exam"
>生成考试
</el-button>
<!-- v-if="examPersission" -->
@@ -73,7 +74,8 @@
size="small"
plain
icon="el-icon-folder-checked"
- @click="handleImport"
+ v-if="permission.applyexam_import"
+ @click="handleImport"
>清册导入
</el-button>
</template>
@@ -83,6 +85,7 @@
:type="type"
size="small"
icon="el-icon-refresh-left"
+ v-if="permission.applyexam_cancel"
:disabled="row.isApply == 2"
@click="handleCancel(row)"
>取消报名
@@ -100,7 +103,7 @@
:type="type"
size="small"
icon="el-icon-receiving"
- v-if="row.candidateNo != ''"
+ v-if="permission.applyexam_print && row.candidateNo!=''"
@click="handlePrint(row)"
>准考证打印
</el-button>
@@ -176,7 +179,7 @@
addExam,
} from "@/api/examapi/applyexam";
import { mapState } from "vuex";
-
+import { mapGetters } from "vuex";
var DIC = {
applyStatus: [
{
@@ -754,6 +757,15 @@
...mapState({
userInfo: (state) => state.user.userInfo,
}),
+ ...mapGetters(["userInfo", "permission"]),
+ permissionList() {
+ return {
+ addBtn: this.vaildData(null, false),
+ viewBtn: this.vaildData(this.permission.applyexam_view, false),
+ delBtn: this.vaildData(null, false),
+ editBtn: this.vaildData(null, false),
+ };
+ },
ids() {
let ids = [];
this.questionBankSelectionList.forEach((ele) => {
--
Gitblit v1.9.3