* [bug#57686] adjust col config for build list.

This commit is contained in:
liyang
2024-12-02 16:28:18 +08:00
committed by 曹延义
parent d57baaa30d
commit 8da441d77c
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ window.changeProduct = function()
*/
window.getCellSpan = function(cell)
{
if(['id', 'name', 'productName', 'branchName', 'builder', 'date', 'actions'].includes(cell.col.name) && cell.row.data.rowspan)
if(['id', 'name', 'productName', 'branchName', 'system', 'builder', 'date', 'actions'].includes(cell.col.name) && cell.row.data.rowspan)
{
return {rowSpan: cell.row.data.rowspan};
}
+1 -1
View File
@@ -44,7 +44,7 @@ jsVar('filePathTip', $lang->build->filePath);
jsVar('confirmDelete', $lang->build->confirmDelete);
$fieldList = $this->loadModel('datatable')->getSetting('execution', 'build');
$fieldList['system']['map'] = $system;
if(!empty($fieldList['system'])) $fieldList['system']['map'] = $system;
if($execution->type == 'kanban')
{
unset($fieldList['actions']['list']['createTest']['data-app']);
+1 -1
View File
@@ -69,7 +69,7 @@ window.changeProduct = function(e)
*/
window.getCellSpan = function(cell)
{
if(['id', 'name', 'productName', 'branchName', 'builder', 'date', 'actions'].includes(cell.col.name) && cell.row.data.rowspan)
if(['id', 'name', 'productName', 'branchName', 'system', 'builder', 'date', 'actions'].includes(cell.col.name) && cell.row.data.rowspan)
{
return {rowSpan: cell.row.data.rowspan};
}
+1 -1
View File
@@ -50,7 +50,7 @@ jsVar('integratedTip', $lang->build->integratedLabel);
jsVar('deletedTip', $lang->build->deleted);
$fieldList = $this->loadModel('datatable')->getSetting('project', 'build');
$fieldList['system']['map'] = $system;
if(!empty($fieldList['system'])) $fieldList['system']['map'] = $system;
if(($project->model == 'kanban' && $app->rawModule == 'projectbuild') || !$project->multiple)
{
unset($fieldList['actions']['list']['createTest']['data-app']);
+1 -1
View File
@@ -53,7 +53,7 @@ foreach(array_column($releases, 'system') as $system)
{
if(!isset($appList[$system])) $appList[$system] = '';
}
$cols['system']['map'] = array(0 => '') + $appList;
if(!empty($cols['system'])) $cols['system']['map'] = array(0 => '') + $appList;
foreach($releases as $release)
{
+1 -1
View File
@@ -42,7 +42,7 @@ foreach(array_column($releases, 'system') as $system)
{
if(!isset($appList[$system])) $appList[$system] = '';
}
$cols['system']['map'] = array(0 => '') + $appList;
if(!empty($cols['system'])) $cols['system']['map'] = array(0 => '') + $appList;
foreach($releases as $release)
{