* Fix bug of qa statistic block.

This commit is contained in:
liugang
2018-06-22 17:59:53 +08:00
parent e8c36a2e4f
commit 9236fe025e
3 changed files with 9 additions and 6 deletions
+7 -4
View File
@@ -50,8 +50,9 @@
</div>
<?php endif;?>
</div>
<?php $buildIndex = 1;?>
<?php foreach($product->builds as $build):?>
<div class="table-row" id='bugBox<?php echo $build->id;?>'>
<div class="table-row <?php if($buildIndex != 1) echo 'hidden';?>" id='bugBox<?php echo $build->id;?>'>
<div class="col-5 text-middle text-center">
<div class="progress-pie inline-block space progress-pie-100" data-value="<?php echo $build->assignedRate;?>" data-doughnut-size="80">
<canvas width="100" height="100" style="width: 100px; height: 100px;"></canvas>
@@ -115,6 +116,7 @@
</div>
</div>
</div>
<?php $buildIndex++;?>
<?php endforeach;?>
</div>
<?php $index++;?>
@@ -136,9 +138,10 @@ $(function()
{
$('[name^=build]').change(function()
{
$(this).parents('.tab-pane').find('.table-row').addClass('hidden');
$('#bugBox' + $(this).val()).removeClass('hidden');
var $tab = $('#bugBox' + $(this).val());
$tab.removeClass('hidden');
$tab.find('.progress-pie').progressPie();
$(this).parents('.tab-pane').find('.table-row').not($tab).addClass('hidden');
});
$('[name^=build]').change();
})
</script>
+1 -1
View File
@@ -140,7 +140,7 @@
<table class='table table-form mg-0 table-bordered' style='border: 1px solid #ddd'>
<thead>
<tr>
<th class='w-40px text-right'><?php echo $lang->testcase->stepID;?></th>
<th class='w-50px text-right'><?php echo $lang->testcase->stepID;?></th>
<th width="45%"><?php echo $lang->testcase->stepDesc;?></th>
<th><?php echo $lang->testcase->stepExpect;?></th>
<th class='step-actions'><?php echo $lang->actions;?></th>
+1 -1
View File
File diff suppressed because one or more lines are too long