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/dispatch.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/views/dispatch/dispatch.vue b/src/views/dispatch/dispatch.vue
index 15f819f..e3800af 100644
--- a/src/views/dispatch/dispatch.vue
+++ b/src/views/dispatch/dispatch.vue
@@ -225,8 +225,7 @@
             prop: "deptId",
             type: "tree",
             overHidden: true,
-            dicUrl:
-              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+            dicUrl: "",
             props: {
               label: "title",
               value: "id",
@@ -382,6 +381,7 @@
     };
   },
   created() {
+    var that = this;
     if (this.userInfo.role_name == "保安公司管理员") {
       const deptColumn = this.findObject(this.option.column, "deptId");
       deptColumn.search = false;
@@ -390,6 +390,15 @@
       deptColumn.viewDisplay = false;
       deptColumn.hide = true;
       this.useifid = this.userInfo.dept_id;
+    }
+    //公安局进入
+    if (this.userInfo.role_name == "公安管理员") {
+      that.option.column[1].dicUrl =
+        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
+        that.userInfo.jurisdiction;
+    } else {
+      that.option.column[1].dicUrl =
+        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
     }
   },
   computed: {
@@ -588,7 +597,9 @@
         values["deptId"] = this.useifid;
       }
       // console.log(values);
-
+      if (this.userInfo.role_name == "公安管理员") {
+        params["jurisdiction"] = that.userInfo.jurisdiction;
+      }
       getdata(
         page.currentPage,
         page.pageSize,

--
Gitblit v1.9.3