From b8aa0226aa7b9826a6d8acf249258e475a07c000 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 26 Sep 2021 11:59:09 +0800
Subject: [PATCH] 派出所管理权限

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

diff --git a/src/views/dispatch/dispatchChildoperable.vue b/src/views/dispatch/dispatchChildoperable.vue
index 8e0550f..0d8db0c 100644
--- a/src/views/dispatch/dispatchChildoperable.vue
+++ b/src/views/dispatch/dispatchChildoperable.vue
@@ -279,6 +279,7 @@
     };
   },
   created() {
+    var that = this;
     if (this.userInfo.role_name == "保安公司管理员") {
       console.log("保安公司管理员登入");
       const deptColumn = this.findObject(this.option1.column, "deptId");
@@ -291,6 +292,16 @@
         "dispatcherUnitId"
       );
       deptColumn.search = false;
+    }
+
+    //公安局进入
+    if (this.userInfo.role_name == "公安管理员") {
+      that.option1.column[1].dicUrl =
+        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
+        that.userInfo.jurisdiction;
+    } else {
+      that.option1.column[1].dicUrl =
+        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
     }
   },
   computed: {
@@ -501,6 +512,10 @@
       if (this.useifid != 266) {
         values["deptId"] = this.useifid;
       }
+      //公安局进入
+      if (this.userInfo.role_name == "公安管理员") {
+        params["jurisdiction"] = this.userInfo.jurisdiction;
+      }
 
       getdata1(
         page.currentPage,

--
Gitblit v1.9.3