* Format output of some metrics.

This commit is contained in:
zhouxin
2023-07-20 13:33:15 +08:00
parent eafdc7d53e
commit 0d9b8d569b
11 changed files with 16 additions and 11 deletions
@@ -37,6 +37,7 @@ class count_of_closed_project extends baseCalc
public function getResult($options = array())
{
return $this->filterByOptions($this->result, $options);
$records = array(array('value' => $this->result));
return $this->filterByOptions($records, $options);
}
}
@@ -37,6 +37,7 @@ class count_of_doing_project extends baseCalc
public function getResult($options = array())
{
return $this->filterByOptions($this->result, $options);
$records = array(array('value' => $this->result));
return $this->filterByOptions($records, $options);
}
}
@@ -36,6 +36,7 @@ class count_of_project extends baseCalc
public function getResult($options = array())
{
return $this->filterByOptions($this->result, $options);
$records = array(array('value' => $this->result));
return $this->filterByOptions($records, $options);
}
}
@@ -37,6 +37,7 @@ class count_of_suspended_project extends baseCalc
public function getResult($options = array())
{
return $this->filterByOptions($this->result, $options);
$records = array(array('value' => $this->result));
return $this->filterByOptions($records, $options);
}
}
@@ -37,6 +37,7 @@ class count_of_wait_project extends baseCalc
public function getResult($options = array())
{
return $this->filterByOptions($this->result, $options);
$records = array(array('value' => $this->result));
return $this->filterByOptions($records, $options);
}
}
@@ -16,4 +16,4 @@ cid=1
*/
r($calc->getResult()) && p('') && e('25'); // 测试全局范围内关闭的项目数
r($calc->getResult()) && p('0:value') && e('25'); // 测试全局范围内关闭的项目数
@@ -16,4 +16,4 @@ cid=1
*/
r($calc->getResult()) && p('') && e('25'); // 测试全局范围内进行中项目总数
r($calc->getResult()) && p('0:value') && e('25'); // 测试全局范围内进行中项目总数
@@ -16,4 +16,4 @@ cid=1
*/
r($calc->getResult()) && p('') && e('100'); // 测试项目全局范围内项目总数
r($calc->getResult()) && p('0:value') && e('100'); // 测试项目全局范围内项目总数
@@ -16,4 +16,4 @@ cid=1
*/
r($calc->getResult()) && p('') && e('25'); // 测试全局范围内挂起的项目数
r($calc->getResult()) && p('0:value') && e('25'); // 测试全局范围内挂起的项目数
@@ -16,4 +16,4 @@ cid=1
*/
r($calc->getResult()) && p('') && e('75'); //测试全局范围内未关闭的项目数
r($calc->getResult()) && p('0:value') && e('75'); //测试全局范围内未关闭的项目数
@@ -18,4 +18,4 @@ cid=1
*/
r($calc->getResult()) && p('') && e('25'); // 测试全局范围内未开始项目数
r($calc->getResult()) && p('0:value') && e('25'); // 测试全局范围内未开始项目数