* [task#142086,doing,1h,2h] Check if deliverable has been uploaded when edit execution.

This commit is contained in:
wangyuting
2025-04-28 10:11:15 +08:00
committed by 刘刚
parent 679f728e64
commit f3393c58b5
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1342,7 +1342,7 @@ class execution extends control
}
$executionIDList = $this->post->executionIDList;
$executions = $this->dao->select('*')->from(TABLE_EXECUTION)->where('id')->in($executionIDList)->fetchAll('id');
$executions = $this->dao->select('*')->from(TABLE_EXECUTION)->where('id')->in($executionIDList)->fetchAll('id', false);
$relatedProjects = $this->dao->select('id,project')->from(TABLE_PROJECT)->where('id')->in($executionIDList)->fetchPairs(); /* 获取执行所属的项目列表。*/
$projects = $this->dao->select('*')->from(TABLE_PROJECT)->where('id')->in($relatedProjects)->fetchAll('id'); /* 获取执行所属的项目列表中每个项目的项目信息。*/
+1
View File
@@ -11,6 +11,7 @@ window.renderRowData = function($row, index, row)
{
let $attribute = info[0];
$attribute.render({items: stageItems, required: true, name: 'attribute', disabled: row.grade > 1 && parentType != 'mix'});
if(typeof row != 'undefined' && typeof row.hasDeliverable != 'undefined') $attribute.render({disabled: true});
$(e.target).attr('data-parent', row.parent);
});
}
+1 -1
View File
@@ -203,7 +203,7 @@ window.handleRenderRow = function($row, index, data)
}
});
/* 有交付物的阶段无法变更阶段类型。 */
/* 已关闭且有交付物的阶段无法变更阶段类型。 */
$row.find('[data-name="attribute"]').find('.picker-box').on('inited', function(e, info)
{
if(typeof data != 'undefined' && typeof data.hasDeliverable != 'undefined') info[0].render({disabled: true});