管理员列表
This commit is contained in:
1 parent
781c5f891d
commit
cd9616d13a
2 files changed
+13
-7
No files matched your search
@@ -17,7 +17,7 @@ class Admin extends Base
|
||||
$data = $this
|
||||
->order([$src['field'] =>$src['order']])
|
||||
->when(strlen($searchval)>0,function($query) use($searchval){
|
||||
$query->where('xingming','like','%'.$searchval.'%');
|
||||
$query->where('xingming|username','like','%'.$searchval.'%');
|
||||
})
|
||||
->with([
|
||||
'adSchool'=>function($query){
|
||||
@@ -83,6 +83,12 @@ class Admin extends Base
|
||||
return date('Y年m月d日 h:i:s',$value);
|
||||
}
|
||||
|
||||
// 本次登录时间取器
|
||||
public function getThistimeAttr($value)
|
||||
{
|
||||
return date('Y年m月d日 h:i:s',$value);
|
||||
}
|
||||
|
||||
|
||||
// 角色关联
|
||||
public function authGroup()
|
||||
|
||||
Reference in new issue
Block a user