* [task#142086,doing,1h,2h] Check if deliverable has been uploaded when edit execution.
This commit is contained in:
@@ -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'); /* 获取执行所属的项目列表中每个项目的项目信息。*/
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user