This commit is contained in:
zhaoke
2023-09-04 18:15:29 +08:00
parent 832235f49f
commit aa0a599e1a
3 changed files with 7 additions and 5 deletions
+3 -4
View File
@@ -105,13 +105,12 @@ class repo extends control
session_start();
$this->config->repo->search['params']['product']['values'] = $products;
$this->config->repo->search['params']['projects']['values'] = $projects;
$this->config->repo->search['actionURL'] = $this->createLink('repo', 'maintain', "objectID={$objectID}&orderBy={$orderBy}&recPerPage={$recPerPage}&pageID={$pageID}&type=bySearch&param=myQueryID");
$this->config->repo->search['queryID'] = 0;
$this->config->repo->search['actionURL'] = $this->createLink('repo', 'maintain', "objectID={$objectID}&orderBy={$orderBy}&recPerPage={$recPerPage}&pageID={$pageID}&type=bySearch&param=myQueryID");
$this->config->repo->search['queryID'] = $param;
$this->config->repo->search['onMenuBar'] = 'yes';
$this->loadModel('search')->setSearchParams($this->config->repo->search);
$this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->browse;
$this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->browse;
$this->view->type = $type;
$this->view->orderBy = $orderBy;
$this->view->objectID = $objectID;
+1 -1
View File
@@ -141,7 +141,7 @@ class repoModel extends model
if($query)
{
$this->session->set($queryName, $query->sql);
$this->session->set($queryName . 'Form', $query->form);
$this->session->set('repoForm', $query->form);
}
else
{
+3
View File
@@ -56,10 +56,13 @@ $config->repo->dtable->fieldList['actions']['list']['edit']['url'] = $this->cr
$config->repo->dtable->fieldList['actions']['list']['delete']['url'] = $this->createLink('repo', 'delete', "repoID={id}&objectID={$objectID}");
$repos = initTableData($repoList, $config->repo->dtable->fieldList, $this->repo);
$queryMenuLink = createLink('repo', 'maintain', "objectID=$objectID&orderBy=&recTotal={$pager->recTotal}&pageID={$pager->pageID}&type=bySearch&param={queryID}");
featureBar
(
set::current('all'),
set::linkParams("product=$product->id&branch=$branch&browseType={key}"),
set::queryMenuLinkCallback(fn($key) => str_replace('{queryID}', (string)$key, $queryMenuLink)),
li(searchToggle(set::open($type == 'bySearch'))),
);