|
@@ -44,10 +44,10 @@ class Area extends Model
|
|
|
public function getList()
|
|
|
{
|
|
|
$cond = [];
|
|
|
- if(!Utils::isSuperAdmin()){ // 非超级管理员
|
|
|
- $auth_areas = (new Users)->getAreaIdBy();
|
|
|
- $cond[] = ['id', 'in', json_decode($auth_areas,true)];
|
|
|
- }
|
|
|
+ // if(!Utils::isSuperAdmin()){ // 非超级管理员
|
|
|
+ // $auth_areas = (new Users)->getAreaIdBy();
|
|
|
+ // $cond[] = ['id', 'in', json_decode($auth_areas,true)];
|
|
|
+ // }
|
|
|
$res = $this->catchSearch()
|
|
|
->order('id', 'desc')
|
|
|
->where($cond)
|
|
@@ -61,10 +61,10 @@ class Area extends Model
|
|
|
public function getAreaTreeData()
|
|
|
{
|
|
|
$cond = [];
|
|
|
- if(!Utils::isSuperAdmin()){ // 非超级管理员
|
|
|
- $auth_areas = (new Users)->getAreaIdBy();
|
|
|
- return json_decode($auth_areas, true);
|
|
|
- }
|
|
|
+ // if(!Utils::isSuperAdmin()){ // 非超级管理员
|
|
|
+ // $auth_areas = (new Users)->getAreaIdBy();
|
|
|
+ // return json_decode($auth_areas, true);
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
return [];
|