From b19cdfd42ef26702eb00dd77e89bf9af90bc9ed4 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 01 Dec 2021 08:56:28 +0800
Subject: [PATCH] +

---
 src/views/system/user.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 094ba87..4c316b9 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -792,7 +792,6 @@
       //公安局进入
       if (
         this.userInfo.role_name == "公安管理员"
-        
       ) {
         var parentId = this.userInfo.dept_id;
         var userId = this.userInfo.Id;
@@ -800,11 +799,12 @@
           const column = this.findObject(this.option.group, "deptId");
           column.dicData = res.data.data;
         });
-      } else {
-        // getDeptLazyTree(0).then((res) => {
-        //   const column = this.findObject(this.option.group, "deptId");
-        //   column.dicData = res.data.data;
-        // });
+      } else if( this.userInfo.role_name == "administrator"){
+        getDeptLazyTree(0).then((res) => {
+          const column = this.findObject(this.option.group, "deptId");
+          column.dicData = res.data.data;
+        });
+      }else {
         getSecurityDeptTree(null,null,this.userInfo.dept_id).then((res) => {
             const column = this.findObject(this.option.group, "deptId");
             column.dicData = res.data.data;

--
Gitblit v1.9.3