更新
This commit is contained in:
parent
f48d18a828
commit
567c49114e
@ -154,7 +154,8 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order($this->sortOrder)
|
||||
->append(['role_id', 'dept_id', 'jobs_id', 'disable_desc', 'province_name', 'city_name', 'area_name', 'street_name'])
|
||||
->select()->each(function($item){
|
||||
->select()
|
||||
->each(function($item){
|
||||
$company_id=User::where('admin_id',$item['id'])->value('company_id');
|
||||
if($company_id){
|
||||
$item['company']=Company::where('id',$company_id)->field('id,company_name')->find();
|
||||
@ -163,7 +164,6 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
}
|
||||
})
|
||||
->toArray();
|
||||
|
||||
// 角色数组('角色id'=>'角色名称')
|
||||
$roleLists = SystemRole::column('name', 'id');
|
||||
// 部门列表
|
||||
|
Loading…
x
Reference in New Issue
Block a user