From d221c4c7a0b06e73ce89f8d65207a3ec69a70ae5 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sun, 14 Nov 2021 00:04:45 +0800
Subject: [PATCH] 权限修改

---
 src/views/accreditationRecords/accreditationRecords.vue |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/views/accreditationRecords/accreditationRecords.vue b/src/views/accreditationRecords/accreditationRecords.vue
index adc53c8..869160b 100644
--- a/src/views/accreditationRecords/accreditationRecords.vue
+++ b/src/views/accreditationRecords/accreditationRecords.vue
@@ -38,7 +38,7 @@
           size="small"
           plain
           icon="el-icon-download"
-          v-if="permission.accreditationRecords_export"
+          v-if="permission.accreditationRecords_export || check"
           @click="handleExport"
           >保安员证信息导出
         </el-button>
@@ -91,6 +91,7 @@
 export default {
   data() {
     return {
+      check:false,
       form: {},
       query: {},
       questionBankSearch: {},
@@ -317,6 +318,18 @@
   mounted() {
     this.getDeptInfo(this.userInfo.dept_id);
   },
+  created(){
+      if (this.userInfo.role_name == "公安管理员") {
+      //判断是否为市局管理员
+      if(this.userInfo.jurisdiction=="1372091709474910209"){
+          this.check = true;
+          // this.vaildData(this.permission.accreditationRecords_paper_delete, false);
+      }else{
+        this.check = false;
+        // this.vaildData(null, false);
+      }
+    }
+  },
   methods: {
     //获取当前用户部门信息
     getDeptInfo(deptId) {

--
Gitblit v1.9.3