diff --git a/app/api/lists/approve/ApproveLists.php b/app/api/lists/approve/ApproveLists.php index b9e9dbfbd..0a11451b4 100644 --- a/app/api/lists/approve/ApproveLists.php +++ b/app/api/lists/approve/ApproveLists.php @@ -17,16 +17,26 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface */ public function setSearch(): array { - return [ - '=' =>['type', 'check_status'] - ]; + $param = $this->request->param(); + if ($param['status'] == 0) { + return [ + '=' =>['type'] + ]; + } else { + return [ + '=' =>['type', 'check_status'] + ]; + } + + + } public function queryWhere() { $where = []; - $param = $this->request->param(); + // if (isset($param['type']) && $param['type'] == 2) { $adminId = User::where(['id' => $this->userId])->with('company')->value('admin_id'); $where[] = ['check_admin_ids', '=', $adminId]; // 只有片区经理才能查看