perf: 添加任务窗口
This commit is contained in:
@@ -32,6 +32,9 @@ class ProjectController extends AbstractController
|
||||
* - all:全部
|
||||
* - no:未归档(默认)
|
||||
* - yes:已归档
|
||||
* @apiParam {String} [andcolumn] 同时取项目列表
|
||||
* - no:不取(默认)
|
||||
* - yes:取列表
|
||||
* @apiParam {Object} [keys] 搜索条件
|
||||
* - keys.name 项目名称
|
||||
*
|
||||
@@ -44,6 +47,7 @@ class ProjectController extends AbstractController
|
||||
//
|
||||
$all = Request::input('all');
|
||||
$archived = Request::input('archived', 'no');
|
||||
$andcolumn = Request::input('andcolumn', 'no');
|
||||
//
|
||||
if ($all) {
|
||||
$user->identity('admin');
|
||||
@@ -52,6 +56,10 @@ class ProjectController extends AbstractController
|
||||
$builder = Project::select(Project::projectSelect)->authData();
|
||||
}
|
||||
//
|
||||
if ($andcolumn == 'yes') {
|
||||
$builder->with(['projectColumn']);
|
||||
}
|
||||
//
|
||||
if ($archived == 'yes') {
|
||||
$builder->whereNotNull('projects.archived_at');
|
||||
} elseif ($archived == 'no') {
|
||||
|
||||
Reference in New Issue
Block a user