单位荣誉完成、教师荣誉册开始
This commit is contained in:
1 parent
7f8c7e6170
commit
9e1dd9f052
20 files changed
+2003
-45
No files matched your search
@@ -60,6 +60,7 @@ class Admin extends Base
|
||||
// 获取角色id
|
||||
$list = $admin->authgroup()->column('group_id');
|
||||
|
||||
$str = '';
|
||||
// 将角色id转换成数组
|
||||
foreach ($list as $key => $value) {
|
||||
$key == 0 ? $str =$value : $str = $str.','.$value;
|
||||
@@ -75,6 +76,7 @@ class Admin extends Base
|
||||
// 获取角色id
|
||||
$group = $this->get($this->getAttr('id'))->append(['groupids']);
|
||||
|
||||
$str = '';
|
||||
// 查询角色名称
|
||||
$grouplist= db('AuthGroup')->where('id','in',$group->groupids)->column('title');
|
||||
// 重组角色名
|
||||
|
||||
Reference in new issue
Block a user