Browse Source

pc权限调整

lizhen_gitee 6 months ago
parent
commit
e226f301e8

+ 1 - 0
application/company/controller/auth/Admin.php

@@ -207,6 +207,7 @@ class Admin extends Apic
             'nickname' => input('nickname',''),//姓名
             'password' => input('password',''),//密码
             'gonghao'  => input('gonghao',''), //工号
+            'avatar'   => input('avatar',''), //头像
         ];
         $group_id = input('group_id',0);
         if(empty($group_id)){

+ 1 - 1
application/company/controller/auth/Group.php

@@ -39,7 +39,7 @@ class Group extends Apic
 
         $groupList = collection(AuthGroup::where('id', 'in', $this->childrenGroupIds)->select())->toArray();
 
-        Tree::instance()->init($groupList,null,'');
+        Tree::instance()->init($groupList);
         $groupList = [];
         if ($this->auth->isSuperAdmin()) {
             $groupList = Tree::instance()->getTreeList(Tree::instance()->getTreeArray(0));

+ 2 - 1
extend/fast/Tree.php

@@ -411,7 +411,8 @@ class Tree
         }
         return $data;
     }
-    //专门给pc端menu用的,childlist改成children
+    //专门给pc端menu用的,childlist改成children。
+    //company/index/index
     public function getTreeArray_2($myid, $itemprefix = '')
     {
         $childs = $this->getChild($myid);