From ee6f5bd8df9f640bb3d7df3ea225b7d79dfb8e61 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 27 Aug 2025 11:42:04 +0800 Subject: [PATCH] * [bug#22932,done,0.15h] add tooltip for report. --- module/testreport/ui/create.html.php | 12 ++++++++---- module/testreport/ui/edit.html.php | 12 ++++++++---- module/testreport/ui/view.html.php | 12 ++++++++---- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/module/testreport/ui/create.html.php b/module/testreport/ui/create.html.php index 3a5c246cfa..30e3abaf89 100644 --- a/module/testreport/ui/create.html.php +++ b/module/testreport/ui/create.html.php @@ -63,7 +63,8 @@ foreach($charts as $chartType => $chartOption) 'type' => 'pie' ) ) - ) + ), + set::tooltip(array('show' => true, 'formatter' => "{b} : {d}%")) ) ), cell @@ -133,7 +134,8 @@ $bugStageChart = div ) ), set::yAxis(array('type' => 'value')), - set::series($chartOption) + set::series($chartOption), + set::tooltip(array('trigger' => 'axis', 'axisPointer' => array('type' => 'shadow'))) ) ), cell @@ -211,7 +213,8 @@ $bugHandleChart = div ) ), set::yAxis(array('type' => 'value')), - set::series($chartOption) + set::series($chartOption), + set::tooltip(array('trigger' => 'axis', 'axisPointer' => array('type' => 'shadow'))) ) ), cell @@ -295,7 +298,8 @@ foreach($bugInfo as $infoKey => $infoValue) 'type' => 'pie' ) ) - ) + ), + set::tooltip(array('show' => true, 'formatter' => "{b} : {d}%")) ) ), cell diff --git a/module/testreport/ui/edit.html.php b/module/testreport/ui/edit.html.php index 36cb3f0f31..e2e2faad12 100644 --- a/module/testreport/ui/edit.html.php +++ b/module/testreport/ui/edit.html.php @@ -58,7 +58,8 @@ foreach($charts as $chartType => $chartOption) 'type' => 'pie' ) ) - ) + ), + set::tooltip(array('show' => true, 'formatter' => "{b} : {d}%")) ) ), cell @@ -128,7 +129,8 @@ $bugStageChart = div ) ), set::yAxis(array('type' => 'value')), - set::series($chartOption) + set::series($chartOption), + set::tooltip(array('trigger' => 'axis', 'axisPointer' => array('type' => 'shadow'))) ) ), cell @@ -205,7 +207,8 @@ $bugHandleChart = div ) ), set::yAxis(array('type' => 'value')), - set::series($chartOption) + set::series($chartOption), + set::tooltip(array('trigger' => 'axis', 'axisPointer' => array('type' => 'shadow'))) ) ), cell @@ -289,7 +292,8 @@ foreach($bugInfo as $infoKey => $infoValue) 'type' => 'pie' ) ) - ) + ), + set::tooltip(array('show' => true, 'formatter' => "{b} : {d}%")) ) ), cell diff --git a/module/testreport/ui/view.html.php b/module/testreport/ui/view.html.php index d2063000da..eb13327f19 100644 --- a/module/testreport/ui/view.html.php +++ b/module/testreport/ui/view.html.php @@ -73,7 +73,8 @@ foreach($charts as $chartType => $chartOption) 'type' => 'pie' ) ) - ) + ), + set::tooltip(array('show' => true, 'formatter' => "{b} : {d}%")) ) ), cell @@ -144,7 +145,8 @@ $bugStageChart = div ) ), set::yAxis(array('type' => 'value')), - set::series($chartOption) + set::series($chartOption), + set::tooltip(array('trigger' => 'axis', 'axisPointer' => array('type' => 'shadow'))) ) ), cell @@ -224,7 +226,8 @@ $bugHandleChart = div ) ), set::yAxis(array('type' => 'value')), - set::series($chartOption) + set::series($chartOption), + set::tooltip(array('trigger' => 'axis', 'axisPointer' => array('type' => 'shadow'))) ) ), cell @@ -309,7 +312,8 @@ foreach($bugInfo as $infoKey => $infoValue) 'type' => 'pie' ) ) - ) + ), + set::tooltip(array('show' => true, 'formatter' => "{b} : {d}%")) ) ), cell