+ Compatible with the IPD project phase creation page.

This commit is contained in:
hufangzhou
2024-03-27 11:07:02 +08:00
committed by liyang
parent bef4ef80bf
commit f3b79d0f84
3 changed files with 15 additions and 0 deletions
+9
View File
@@ -3,6 +3,15 @@ window.onRenderRow = function(row, rowIdx, data)
if(row.children('[data-name=milestone]').find('input[type=radio]:checked').length == 0) row.children('[data-name=milestone]').find('input[type=radio]').eq(1).prop('checked', true);
row.children('[data-name=type]').find('[name^=type]').picker({disabled: true});
if(project.model == 'ipd')
{
row.find('[data-name="attribute"]').find('.picker-box').on('inited', function(e, info)
{
let $attributePicker = info[0];
$attributePicker.render({disabled: true});
});
}
if(data != undefined)
{
if(data.hasOwnProperty('type'))
+1
View File
@@ -210,6 +210,7 @@ jsVar('projectID', $project->id);
jsVar('productID', $productID);
jsVar('planID', $planID);
jsVar('type', $executionType);
jsVar('project', $project);
featureBar(li
(
+5
View File
@@ -107,6 +107,11 @@ class programplanZen extends programplan
/* Compute fields for create view. */
list($visibleFields, $requiredFields, $customFields, $showFields, $defaultFields) = $this->computeFieldsCreateView($viewData->executionType);
if($viewData->project->model == 'ipd')
{
$this->config->programplan->form->create['attribute']['options'] = $this->lang->stage->ipdTypeList;
}
$this->view->title = $this->lang->programplan->create . $this->lang->colon . $viewData->project->name;
$this->view->productList = $viewData->productList;
$this->view->project = $viewData->project;