* [task#130244,doing,0.4h] add custom::project.

This commit is contained in:
liumengyi
2024-10-23 09:18:10 +08:00
committed by 刘刚
parent 6cbb942398
commit 625f91716c
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ if(!empty($config->setCode))
$config->custom->fieldList['execution']['edit'] .= ',code';
}
$config->custom->notSetMethods = array('required', 'browsestoryconcept', 'product', 'role', 'execution', 'limitTaskDate', 'hours');
$config->custom->notSetMethods = array('required', 'browsestoryconcept', 'product', 'role', 'execution', 'limitTaskDate', 'hours', 'project');
$config->custom->customFields = array();
$config->custom->customFields['common'] = array('global' => array('hideVisionTips'));
+20
View File
@@ -253,6 +253,26 @@ class custom extends control
return $this->send(array('result' => 'success', 'load' => inlink('browseStoryConcept')));
}
/**
* 项目关闭设置。
* Set whether the closed project is read-only.
*
* @access public
* @return void
*/
public function project()
{
if($_POST)
{
$this->loadModel('setting')->setItem("system.common.CRProject@{$this->config->vision}", $this->post->project);
return $this->sendSuccess(array('load' => true));
}
$this->view->title = $this->lang->projectCommon;
$this->view->module = 'project';
$this->display();
}
/**
* 执行关闭设置。
* Set whether the closed execution is read-only.