* Add tooltips to qastatistic block, and modify style of tooltips in statistic block.
This commit is contained in:
@@ -589,9 +589,7 @@ $lang->block->projectstatistic->lastestExecution = '最新执行';
|
||||
$lang->block->projectstatistic->projectClosed = "{$lang->projectCommon}已关闭";
|
||||
$lang->block->projectstatistic->longTimeProject = "长期{$lang->projectCommon}";
|
||||
$lang->block->projectstatistic->totalProgress = '总进度';
|
||||
$lang->block->projectstatistic->totalProgressTip = "项目总进度=按项目统计的任务消耗工时数/(按项目统计的任务消耗工时数+按项目统计的任务剩余工时数)\n
|
||||
按项目统计的任务消耗工时数:项目中任务的消耗工时数求和,过滤已删除的任务,过滤父任务,过滤已删除执行的任务 过滤已删除的项目。\n
|
||||
按项目统计的任务剩余工时数:项目中任务的剩余工时数求和,过滤已删除的任务,过滤父任务,过滤已删除执行的任务 过滤已删除的项目。";
|
||||
$lang->block->projectstatistic->totalProgressTip = "<strong>项目总进度</strong>=按项目统计的任务消耗工时数/(按项目统计的任务消耗工时数+按项目统计的任务剩余工时数)<br/><strong>按项目统计的任务消耗工时数</strong>:项目中任务的消耗工时数求和,过滤已删除的任务,过滤父任务,过滤已删除执行的任务 过滤已删除的项目。<br/><strong>按项目统计的任务剩余工时数</strong>:项目中任务的剩余工时数求和,过滤已删除的任务,过滤父任务,过滤已删除执行的任务 过滤已删除的项目。";
|
||||
$lang->block->projectstatistic->currentCost = '当前成本';
|
||||
$lang->block->projectstatistic->sv = '进度偏差率(SV)';
|
||||
$lang->block->projectstatistic->pv = '计划完成(PV)';
|
||||
@@ -716,4 +714,5 @@ $lang->block->tooltips['ev'] = "实际完成=按项目统计的
|
||||
$lang->block->tooltips['pv'] = '计划完成:瀑布项目中所有任务的预计工时之和,过滤已删除的任务,过滤已取消的任务,过滤已删除的执行的任务,过滤已删除的项目。';
|
||||
$lang->block->tooltips['cv'] = '成本偏差率=(EV-AC)/AC*100%';
|
||||
$lang->block->tooltips['ac'] = '实际花费:瀑布项目中所有日志记录的工时之和,过滤已删除的项目。';
|
||||
$lang->block->tooltips['executionProgress'] = "执行进度=按执行统计的任务消耗工时数/(按执行统计的任务消耗工时数+按执行统计的任务剩余工时数)\n 按执行统计的任务消耗工时数:执行中任务的消耗工时数求和,过滤已删除的任务,过滤父任务,过滤已删除的执行,过滤已删除的项目。\n 按执行统计的任务剩余工时数:执行中任务的剩余工时数求和,过滤已删除的任务,过滤父任务,过滤已删除的执行,过滤已删除的项目。";
|
||||
$lang->block->tooltips['executionProgress'] = "<strong>执行进度</strong>=按执行统计的任务消耗工时数/(按执行统计的任务消耗工时数+按执行统计的任务剩余工时数)<br/><strong>按执行统计的任务消耗工时数</strong>:执行中任务的消耗工时数求和,过滤已删除的任务,过滤父任务,过滤已删除的执行,过滤已删除的项目。<br/><strong>按执行统计的任务剩余工时数</strong>:执行中任务的剩余工时数求和,过滤已删除的任务,过滤父任务,过滤已删除的执行,过滤已删除的项目。";
|
||||
$lang->block->tooltips['closedBugRate'] = "<strong>Bug修复率</strong>=按产品统计的已修复Bug数/按产品统计的有效Bug数。<br/> <strong>按产品统计的已修复Bug数</strong>:产品中Bug的个数求和,解决方案为已解决,状态为已关闭,过滤已删除的Bug,过滤已删除的产品。<br/> <strong>按产品统计的有效Bug数</strong>:产品中所有Bug个数求和,解决方案为已解决、延期处理或状态为激活,过滤已删除的Bug,过滤已删除的产品。";
|
||||
|
||||
@@ -137,18 +137,18 @@ statisticBlock
|
||||
$lang->block->executionstatistic->progress,
|
||||
icon
|
||||
(
|
||||
'help',
|
||||
setClass('text-light ml-0.5 text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
(
|
||||
'title' => $lang->block->tooltips['executionProgress'],
|
||||
'content' => array('html' => $lang->block->tooltips['executionProgress']),
|
||||
'placement' => 'bottom',
|
||||
'type' => 'white',
|
||||
'className' => 'text-dark border border-light leading-5'
|
||||
)
|
||||
),
|
||||
setClass('text-light ml-0.5')
|
||||
'help'
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -80,7 +80,7 @@ statisticBlock
|
||||
$lang->block->productstatistic->deliveryRate,
|
||||
icon
|
||||
(
|
||||
'help',
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
@@ -90,7 +90,8 @@ statisticBlock
|
||||
'type' => 'white',
|
||||
'className' => 'text-dark border border-light leading-5'
|
||||
)
|
||||
)
|
||||
),
|
||||
'help'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
@@ -120,7 +120,7 @@ if(in_array($project->model, array('scrum', 'kanban', 'agileplus')))
|
||||
(
|
||||
isset($lang->block->tooltips[$field]) ? icon
|
||||
(
|
||||
'help',
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
@@ -131,6 +131,7 @@ if(in_array($project->model, array('scrum', 'kanban', 'agileplus')))
|
||||
'className' => 'text-dark border border-light leading-5'
|
||||
)
|
||||
),
|
||||
'help',
|
||||
':'
|
||||
) : null
|
||||
),
|
||||
@@ -189,12 +190,12 @@ else
|
||||
$lang->block->projectstatistic->totalProgress,
|
||||
icon
|
||||
(
|
||||
setClass('pl-0.5'),
|
||||
setClass('pl-0.5 text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
(
|
||||
'title' => $lang->block->projectstatistic->totalProgressTip,
|
||||
'content' => array('html' => $lang->block->projectstatistic->totalProgressTip),
|
||||
'placement' => 'bottom',
|
||||
'type' => 'white',
|
||||
'className' => 'text-dark border border-light leading-5'
|
||||
@@ -228,6 +229,7 @@ else
|
||||
(
|
||||
icon
|
||||
(
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
@@ -255,6 +257,7 @@ else
|
||||
(
|
||||
icon
|
||||
(
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
@@ -282,6 +285,7 @@ else
|
||||
(
|
||||
icon
|
||||
(
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
@@ -326,6 +330,7 @@ else
|
||||
(
|
||||
icon
|
||||
(
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
@@ -353,6 +358,7 @@ else
|
||||
(
|
||||
icon
|
||||
(
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
@@ -380,6 +386,7 @@ else
|
||||
(
|
||||
icon
|
||||
(
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
|
||||
@@ -168,7 +168,21 @@ statisticBlock
|
||||
(
|
||||
setClass('row text-sm text-gray items-center gap-1'),
|
||||
$lang->block->qastatistic->closedBugRate,
|
||||
icon('help text-light text-sm')
|
||||
icon
|
||||
(
|
||||
'help',
|
||||
setClass('text-light text-sm'),
|
||||
toggle::tooltip
|
||||
(
|
||||
array
|
||||
(
|
||||
'content' => array('html' => $lang->block->tooltips['closedBugRate']),
|
||||
'placement' => 'bottom',
|
||||
'type' => 'white',
|
||||
'className' => 'text-dark border border-light leading-5'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
row
|
||||
|
||||
Reference in New Issue
Block a user