* adjust for report.

This commit is contained in:
wangyidong
2019-07-12 14:23:09 +08:00
parent 43e58d64a6
commit 1c87bcf7b6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ class testtask extends control
* @access public
* @return void
*/
public function report($productID, $taskID, $browseType, $branchID, $moduleID = 0, $chartType = '')
public function report($productID, $taskID, $browseType, $branchID, $moduleID = 0, $chartType = 'default')
{
$this->loadModel('report');
$this->view->charts = array();
+1
View File
@@ -46,6 +46,7 @@
<?php echo html::a("javascript:changeChartType(\"$type\")", ($type == 'default' ? "<i class='icon icon-list-alt muted'></i> " : "<i class='icon icon-chart-{$type}'></i>") . $typeName, '', "class='btn btn-link " . ($type == $chartType ? 'btn-active-line' : '') . "'")?>
<?php endforeach;?>
</div>
<?php $this->app->loadLang('testcase');?>
<div class='text-muted'><?php echo str_replace('%tab%', $lang->testcase->featureBar['browse']['wait'] . $lang->testcase->common, $lang->report->notice->help);?></div>
<?php foreach($charts as $chartType => $chartOption):?>
<div class='table-row chart-row'>