+ Add product filter box to build list.

This commit is contained in:
tianshujie
2023-06-07 16:57:35 +08:00
parent cddf598b36
commit c25d24df8f
3 changed files with 26 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
.select-product-box {width: 180px;}
+12
View File
@@ -46,3 +46,15 @@ window.confirmDelete = function(buildID)
$.ajaxSubmit({url: $.createLink('build', 'delete', 'buildID=' + buildID)});
}
}
/**
* Change product.
*
* @access public
* @return void
*/
window.changeProduct = function()
{
const link = $.createLink('execution', 'build', 'executionID=' + executionID + '&type=product&param=' + $(this).val());
loadPage(link);
}
+13 -1
View File
@@ -15,7 +15,18 @@ featureBar
(
set::current($type),
set::linkParams("executionID={$executionID}&type={key}&param={$param}&orderBy={$orderBy}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"),
li(searchToggle(set::module('executionBuild')))
div
(
set::class('select-product-box'),
select
(
set::name('product'),
set::value($product),
set::items($products),
on::change('changeProduct'),
),
),
li(searchToggle(set::module('executionBuild'))),
);
/* zin: Define the toolbar on main menu. */
@@ -27,6 +38,7 @@ toolbar
);
jsVar('orderBy', $orderBy);
jsVar('executionID', $executionID);
jsVar('sortLink', helper::createLink('execution', 'build', "executionID={$executionID}&type={$type}&param={$param}&orderBy={orderBy}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"));
jsVar('scmPathTip', $lang->build->scmPath);
jsVar('filePathTip', $lang->build->filePath);