* Adjust the block module language file and model.php Logic.

This commit is contained in:
leiyong
2020-11-19 14:07:58 +08:00
parent f2c6dba226
commit 72a2b18c20
7 changed files with 274 additions and 229 deletions
+20 -3
View File
@@ -513,9 +513,10 @@ class blockModel extends model
*/
public function getStatisticParams($module = 'product')
{
if($module == 'product') return $this->getProductStatisticParams($module);
if($module == 'project') return $this->getProjectStatisticParams($module);
if($module == 'qa') return $this->getQaStatisticParams($module);
if($module == 'product') return $this->getProductStatisticParams($module);
if($module == 'project') return $this->getProjectStatisticParams($module);
if($module == 'qa') return $this->getQaStatisticParams($module);
if($module == 'execution') return $this->getExecutionStatisticParams($module);
$params = new stdclass();
$params = $this->appendCountParams($params);
@@ -554,6 +555,22 @@ class blockModel extends model
return json_encode($params);
}
/**
* Get execution statistic params.
*
* @access public
* @return void
*/
public function getExecutionStatisticParams()
{
$params = $this->appendCountParams();
$params->type['name'] = $this->lang->block->type;
$params->type['options'] = $this->lang->block->typeList->execution;
$params->type['control'] = 'select';
return json_encode($params);
}
/**
* Get qa statistic params.
*