From b6d70fd9329b1c5fee415713e7ca5d9dcab66526 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Wed, 02 Mar 2022 09:01:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises

---
 src/views/securityGuard/securityGuard.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/securityGuard/securityGuard.vue b/src/views/securityGuard/securityGuard.vue
index 7bea438..d535f26 100644
--- a/src/views/securityGuard/securityGuard.vue
+++ b/src/views/securityGuard/securityGuard.vue
@@ -169,6 +169,7 @@
                   icon="el-icon-view"
                   :size="size"
                   :type="type"
+                  v-if="permission.securityGuard_view"
                   @click.stop="rowClick(row)"
                   >查看
                 </el-button>
@@ -1571,7 +1572,6 @@
   beforeCreate() {},
   created() {
     var that = this;
-    // console.log(this.userInfo, 9999);
     if (this.userInfo.role_name == "办证管理员") {
       this.search["userType"] = 7;
       this.search["hold"] = "1";
@@ -1592,7 +1592,7 @@
       column.dicUrl =
         "/api/blade-system/dept/security_lazy-tree?deptId=" +
         this.userInfo.dept_id;
-    } else if (roleName == "公安管理员" || roleName == "administrator") {
+    } else if (roleName == "公安管理员" || roleName == "administrator" || this.userInfo.role_name == "民警") {
       var columnDept = that.findObject(that.option.column, "deptId");
       columnDept.dicUrl =
         "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
@@ -2132,7 +2132,7 @@
           //如果是培训公司管理员
           data["trainingUnitId"] = this.userInfo.Id;
         }
-        if (this.userInfo.role_name == "公安管理员") {
+        if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
           //如果是公安管理员
           data["jurisdiction"] = this.userInfo.jurisdiction;
         }
@@ -2732,6 +2732,7 @@
           } else if (
             roleAlias == "公安管理员" ||
             roleAlias == "administrator"
+            || this.userInfo.role_name == "民警"
           ) {
             params["jurisdiction"] = that.userInfo.jurisdiction;
             var ColumnDeptUpdate = that.findObject(that.option.group, "deptId");

--
Gitblit v1.9.3