* Modify testtask browse.

This commit is contained in:
songchenxuan
2023-10-24 11:13:59 +08:00
parent b3fc7d3a64
commit 3dbafb0365
+13 -3
View File
@@ -15,15 +15,25 @@ $status = !empty($scopeAndStatus[1]) ? $scopeAndStatus[1] : '';
$viewName = $scope == 'local'? \zget($products, $product->id) : $lang->testtask->all;
jsVar('condition', "productID=$product->id&branch=$branch&type=$type&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}&pageID=1");
$testMenuLink = createLink(
$this->app->rawModule,
$this->app->rawMethod,
array(
'productID' => $product->id,
'branch' => '{branch}',
'type' => '{type}',
)
);
$productDropdown = productMenu
(
set::title($viewName),
set::items(array
(
array('text' => $lang->testtask->all, 'url' => helper::createLink('testtask', 'browse', "productID=$product->id&branch=0&type=all,$status")),
array('text' => \zget($products, $product->id), 'url' => helper::createLink('testtask', 'browse', "productID=$product->id&branch=$branch&type=local,$status"))
array('text' => $lang->testtask->all, 'branch' => 0, 'type' => "all,$status"),
array('text' => \zget($products, $product->id), 'branch' => $branch, 'type' => "local,$status")
)),
set::link(createLink('qa', 'index')),
set::link($testMenuLink),
);
featureBar
(