* [task#137378,doing,0.5h] add branchChange.

This commit is contained in:
liumengyi
2025-02-17 15:40:46 +08:00
committed by 刘刚
parent 791e0018c0
commit ef677aa2b5
+13 -2
View File
@@ -294,7 +294,6 @@ window.updateItems = function(currentProduct = '', currentBranch = '')
}
}
}
if(currentProduct !== '')
{
$('[name^=product][value="' + currentProduct + '"]').closest('.productBox').find('[name^="branch"]').each(function()
@@ -326,5 +325,17 @@ window.updateItems = function(currentProduct = '', currentBranch = '')
window.branchChange = function(event)
{
const productID = $(event.target).closest('.productBox').find('.linkProduct .picker-box').zui('picker').$.value;
const productID = $(event.target).closest('.productBox').find('.linkProduct .picker-box').zui('picker').$.value;
const objectType = $(event.target).closest('.productsBox').data('objecttype');
const $product = $(event.target).closest('.productBox').find('.linkProduct .pick-value');
if(objectType == 'roadmap')
{
loadRoadmap($product);
}
else
{
loadPlan($product);
}
updateItems(productID, $(event.target).val());
}