审批
This commit is contained in:
parent
28b3ae8015
commit
1deeb0f961
@ -17,16 +17,26 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface
|
|||||||
*/
|
*/
|
||||||
public function setSearch(): array
|
public function setSearch(): array
|
||||||
{
|
{
|
||||||
return [
|
$param = $this->request->param();
|
||||||
'=' =>['type', 'check_status']
|
if ($param['status'] == 0) {
|
||||||
];
|
return [
|
||||||
|
'=' =>['type']
|
||||||
|
];
|
||||||
|
} else {
|
||||||
|
return [
|
||||||
|
'=' =>['type', 'check_status']
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function queryWhere()
|
public function queryWhere()
|
||||||
{
|
{
|
||||||
$where = [];
|
$where = [];
|
||||||
$param = $this->request->param();
|
|
||||||
// if (isset($param['type']) && $param['type'] == 2) {
|
// if (isset($param['type']) && $param['type'] == 2) {
|
||||||
$adminId = User::where(['id' => $this->userId])->with('company')->value('admin_id');
|
$adminId = User::where(['id' => $this->userId])->with('company')->value('admin_id');
|
||||||
$where[] = ['check_admin_ids', '=', $adminId]; // 只有片区经理才能查看
|
$where[] = ['check_admin_ids', '=', $adminId]; // 只有片区经理才能查看
|
||||||
|
Loading…
x
Reference in New Issue
Block a user