From caf3112979a8b3cd25cb8d886f8020dc216ed24f Mon Sep 17 00:00:00 2001 From: liyang Date: Mon, 31 Mar 2025 15:12:13 +0800 Subject: [PATCH] + [task#140380] add build search from method. --- module/job/zen.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/module/job/zen.php b/module/job/zen.php index 256b08515e..cb25184b89 100644 --- a/module/job/zen.php +++ b/module/job/zen.php @@ -30,17 +30,18 @@ class jobZen extends job * Get job list. * * @param int $repoID + * @param string $jobQuery * @param string $orderBy * @param object $pager * @access protected * @return array */ - protected function getJobList(int $repoID, string $orderBy, object $pager): array + protected function getJobList(int $repoID, string $jobQuery, string $orderBy, object $pager): array { $this->loadModel('gitlab'); $products = $this->loadModel('product')->getPairs(); - $jobList = $this->job->getList($repoID, $orderBy, $pager); + $jobList = $this->job->getList($repoID, $jobQuery, $orderBy, $pager); foreach($jobList as $job) { if($job->engine == 'jenkins') @@ -183,5 +184,17 @@ class jobZen extends job $this->view->summary = $summary; $this->view->taskID = $taskID; } -} + /** + * 构建搜索表单。 + * Build search form. + * + * @param array $searchConfig + * @param string|int $queryID + * @param string $actionURL + * @access protected + * @return void + */ + protected function buildSearchForm(array $searchConfig, string|int $queryID, string $actionURL) + { + }