From 93108de1561810561f351c17c144950a37fdd06d Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Thu, 24 Feb 2022 20:22:22 +0800
Subject: [PATCH] 新增民警角色权限判断

---
 src/views/dispatch/dispatchChildoperable.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/dispatch/dispatchChildoperable.vue b/src/views/dispatch/dispatchChildoperable.vue
index 7cfd404..c843614 100644
--- a/src/views/dispatch/dispatchChildoperable.vue
+++ b/src/views/dispatch/dispatchChildoperable.vue
@@ -320,7 +320,7 @@
       column.value = that.userInfo.dept_id;
       this.useifid = this.userInfo.dept_id;
       this.initData(2);
-    } else if (roleName == "公安管理员" || roleName == "administrator") {
+    } else if (roleName == "公安管理员" || roleName == "administrator" || roleName == "民警") {
       var columnDept = that.findObject(that.option.column, "deptId");
       columnDept.dicUrl =
         "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
@@ -556,7 +556,7 @@
         values["deptId"] = this.useifid;
       }
       //公安局进入
-      if (this.userInfo.role_name == "公安管理员") {
+      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
         values["jurisdiction"] = this.userInfo.jurisdiction;
       }
       getdata1(

--
Gitblit v1.9.3