* [ticket#1772,doing,0.5h] add loadProjectByExecutionID method.

This commit is contained in:
tianshujie
2025-02-14 16:08:35 +08:00
committed by 曹延义
parent 746cb92e20
commit 681005e944
+10
View File
@@ -306,3 +306,13 @@ function executionChange(event)
loadProductBuilds($row, productID);
}
}
function loadProjectByExecutionID($row, executionID)
{
const link = $.createLink('project', 'ajaxGetPairsByExecution', 'executionID=' + executionID, 'json');
$.post(link, function(data)
{
$projectPicker = $row.find('[name^=project]').zui('picker');
$projectPicker.$.setValue(data.id.toString());
}, 'json')
}