Browse Source

优化

master
陈裕财 3 years ago
parent
commit
f44838565c
  1. 24
      src/views/xm/rpt/iteration/IterationWorkItemDayList.vue
  2. 24
      src/views/xm/rpt/iteration/burnout.vue
  3. 24
      src/views/xm/rpt/iteration/menuDayAccumulate.vue
  4. 24
      src/views/xm/rpt/iteration/menuDayTrend.vue
  5. 24
      src/views/xm/rpt/iteration/questionDayAccumulate.vue
  6. 24
      src/views/xm/rpt/iteration/questionDayTrend.vue
  7. 25
      src/views/xm/rpt/product/menuAgeDist.vue
  8. 24
      src/views/xm/rpt/product/menuAttDist.vue
  9. 31
      src/views/xm/rpt/product/menuDayAccumulate.vue
  10. 28
      src/views/xm/rpt/product/menuDayTrend.vue
  11. 24
      src/views/xm/rpt/product/menuSort.vue
  12. 28
      src/views/xm/rpt/product/productWorkItemDayList.vue
  13. 24
      src/views/xm/rpt/product/questionAgeDist.vue
  14. 24
      src/views/xm/rpt/product/questionAttDist.vue
  15. 28
      src/views/xm/rpt/product/questionDayAccumulate.vue
  16. 28
      src/views/xm/rpt/product/questionDayTrend.vue
  17. 24
      src/views/xm/rpt/product/questionRetestDist.vue
  18. 24
      src/views/xm/rpt/product/questionSort.vue
  19. 24
      src/views/xm/rpt/project/projectWorkItemDayList.vue
  20. 24
      src/views/xm/rpt/project/projectWorkloadSetDayList.vue
  21. 24
      src/views/xm/rpt/project/projectWorkloadSetMonthList.vue
  22. 24
      src/views/xm/rpt/project/taskAgeDist.vue
  23. 24
      src/views/xm/rpt/project/taskAttDist.vue
  24. 24
      src/views/xm/rpt/project/taskDayAccumulate.vue
  25. 24
      src/views/xm/rpt/project/taskDayTrend.vue
  26. 24
      src/views/xm/rpt/project/taskSort.vue
  27. 23
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  28. 27
      src/views/xm/rpt/testPlan/testDayTimesCalc.vue
  29. 23
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue
  30. 23
      src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

24
src/views/xm/rpt/iteration/IterationWorkItemDayList.vue

@ -63,11 +63,29 @@
] ]
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'工作项每日趋势图'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "迭代工作项每日趋势图"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+"迭代工作项每日趋势图"
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/iteration/burnout.vue

@ -97,11 +97,29 @@
} }
}, },
title(){ title(){
if(this.filters.iteration && this.filters.iteration.id){
return (this.filters.iteration?'迭代【'+this.filters.iteration.iterationName+'】':'')+'燃尽图'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "迭代燃尽图"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+"迭代燃尽图"
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/iteration/menuDayAccumulate.vue

@ -90,11 +90,29 @@
} }
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求每日累积图'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求每日累积图'
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'需求每日累积图'
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/iteration/menuDayTrend.vue

@ -92,11 +92,29 @@
} }
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求每日趋势图'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求每日趋势图'
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'需求每日趋势图'
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/iteration/questionDayAccumulate.vue

@ -87,11 +87,29 @@
} }
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷每日累积图'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷每日累积图'
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'缺陷每日累积图'
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/iteration/questionDayTrend.vue

@ -91,11 +91,29 @@
} }
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷每日趋势图'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷每日趋势图'
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'缺陷每日趋势图'
}, },
xmProductCpd(){ xmProductCpd(){

25
src/views/xm/rpt/product/menuAgeDist.vue

@ -98,11 +98,30 @@
return '需求年龄数量分布' return '需求年龄数量分布'
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求年龄数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求年龄数量分布'
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'需求年龄数量分布'
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/product/menuAttDist.vue

@ -124,11 +124,29 @@
return this.dicts[itemId].map(i=>i.name) return this.dicts[itemId].map(i=>i.name)
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求属性数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求属性数量分布'
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'需求属性数量分布'
}, },
xmProductCpd(){ xmProductCpd(){

31
src/views/xm/rpt/product/menuDayAccumulate.vue

@ -81,19 +81,29 @@
} }
}, },
title(){ title(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
productName=this.filters.product.id
}
preName=`项目【${this.filters.project.id}`
} }
if(productName){
return `产品【${productName}】需求每日累积图`
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "产品需求每日累积图"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+"产品需求每日累积图"
}, },
xmProductCpd(){ xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){ if(this.xmProduct && this.xmProduct.id){
@ -162,7 +172,8 @@
this.myChart.setOption( this.myChart.setOption(
{ {
title: { title: {
text: '需求累积图'
text: this.title,
left:"center"
}, },
tooltip: { tooltip: {

28
src/views/xm/rpt/product/menuDayTrend.vue

@ -84,19 +84,29 @@
}, },
title(){ title(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
productName=this.filters.product.id
}
preName=`项目【${this.filters.project.id}`
} }
if(productName){
return `产品【${productName}】需求每日趋势图`
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "产品需求每日趋势图"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+"产品需求每日趋势图"
}, },
xmProductCpd(){ xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){ if(this.xmProduct && this.xmProduct.id){

24
src/views/xm/rpt/product/menuSort.vue

@ -89,7 +89,29 @@
} }
}, },
title(){ title(){
return this.groupBys.find(i=>i.id==this.groupBy).name+'用户故事数量排行榜'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+this.groupBys.find(i=>i.id==this.groupBy).name+'用户故事数量排行榜'
}, },
legendCpd(){ legendCpd(){
if(this.xmMenuSorts.length==0){ if(this.xmMenuSorts.length==0){

28
src/views/xm/rpt/product/productWorkItemDayList.vue

@ -56,19 +56,29 @@
] ]
}, },
title(){ title(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
productName=this.filters.product.id
}
preName=`项目【${this.filters.project.id}`
} }
if(productName){
return `产品【${productName}】工作项每日分布图`
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "产品工作项每日分布图"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+"产品工作项每日分布图"
}, },
xmProductCpd(){ xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){ if(this.xmProduct && this.xmProduct.id){

24
src/views/xm/rpt/product/questionAgeDist.vue

@ -124,7 +124,29 @@
} }
}, },
title(){ title(){
return '缺陷年龄数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+'缺陷年龄数量分布'
}, },
legendCpd(){ legendCpd(){
return ['0-2天','3-5天','6-7天','8-15天','16-30天','30天以上'] return ['0-2天','3-5天','6-7天','8-15天','16-30天','30天以上']

24
src/views/xm/rpt/product/questionAttDist.vue

@ -165,11 +165,29 @@
return this.dicts[itemId].map(i=>i.name) return this.dicts[itemId].map(i=>i.name)
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷属性数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷属性数量分布'
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'缺陷属性数量分布'
}, },
xmProductCpd(){ xmProductCpd(){

28
src/views/xm/rpt/product/questionDayAccumulate.vue

@ -82,19 +82,29 @@
}, },
title(){ title(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
productName=this.filters.product.id
}
preName=`项目【${this.filters.project.id}`
} }
if(productName){
return `产品【${productName}】需求每日累积图`
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "产品缺陷每日累积图"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+"产品缺陷每日累积图"
}, },
xmProductCpd(){ xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){ if(this.xmProduct && this.xmProduct.id){

28
src/views/xm/rpt/product/questionDayTrend.vue

@ -85,19 +85,29 @@
title(){ title(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
productName=this.filters.product.id
}
preName=`项目【${this.filters.project.id}`
} }
if(productName){
return `产品【${productName}】缺陷每日趋势图`
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "产品缺陷每日趋势图"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+"产品缺陷每日趋势图"
}, },
xmProductCpd(){ xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){ if(this.xmProduct && this.xmProduct.id){

24
src/views/xm/rpt/product/questionRetestDist.vue

@ -147,11 +147,29 @@
return ["1次","2次","3次","4次","5次","5次以上"] return ["1次","2次","3次","4次","5次","5次以上"]
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷回归分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷回归分布'
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'缺陷回归分布'
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/product/questionSort.vue

@ -133,11 +133,29 @@
} }
}, },
title(){ title(){
if(this.xmIteration && this.xmIteration.id){
return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷数量排行榜'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷数量排行榜'
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
} }
return preName+'缺陷数量排行榜'
}, },
xmProductCpd(){ xmProductCpd(){

24
src/views/xm/rpt/project/projectWorkItemDayList.vue

@ -56,7 +56,29 @@
] ]
}, },
title(){ title(){
return "项目工作项每日分布"
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+"项目工作项每日分布"
} }
}, },

24
src/views/xm/rpt/project/projectWorkloadSetDayList.vue

@ -68,7 +68,29 @@
}, },
title(){ title(){
return "项目工时每日分布"
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+"项目工时每日分布"
} }
}, },
watch: { watch: {

24
src/views/xm/rpt/project/projectWorkloadSetMonthList.vue

@ -67,7 +67,29 @@
}, },
title(){ title(){
return "项目工时每月分布"
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+"项目工时每月分布"
} }
}, },

24
src/views/xm/rpt/project/taskAgeDist.vue

@ -81,7 +81,29 @@
} }
}, },
title(){ title(){
return '任务年龄数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+'任务年龄数量分布'
}, },
legendCpd(){ legendCpd(){
return ['0-2天','3-5天','6-7天','8-15天','16-30天','30天以上'] return ['0-2天','3-5天','6-7天','8-15天','16-30天','30天以上']

24
src/views/xm/rpt/project/taskAttDist.vue

@ -98,7 +98,29 @@
} }
}, },
title(){ title(){
return this.groupBys.find(i=>i.id==this.groupBy).name+'数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+this.groupBys.find(i=>i.id==this.groupBy).name+'数量分布'
}, },
legendCpd(){ legendCpd(){
var itemId=""; var itemId="";

24
src/views/xm/rpt/project/taskDayAccumulate.vue

@ -81,7 +81,29 @@
} }
}, },
title(){ title(){
return "任务每日累积图"
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+"任务每日累积图"
} }
}, },
watch: { watch: {

24
src/views/xm/rpt/project/taskDayTrend.vue

@ -83,7 +83,29 @@
} }
}, },
title(){ title(){
return "任务每日分布"
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+"任务每日分布"
} }
}, },
watch: { watch: {

24
src/views/xm/rpt/project/taskSort.vue

@ -81,7 +81,29 @@
} }
}, },
title(){ title(){
return this.groupBys.find(i=>i.id==this.groupBy).name+'任务数量排行榜'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+this.groupBys.find(i=>i.id==this.groupBy).name+'任务数量排行榜'
}, },
legendCpd(){ legendCpd(){
if(this.xmTaskSorts.length==0){ if(this.xmTaskSorts.length==0){

23
src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue

@ -100,7 +100,28 @@
} }
}, },
title(){ title(){
return '测试用例规划分析'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+'测试用例规划分析'
}, },
/**0-未测,1-通过,2-受阻,3-忽略,4-失败 */ /**0-未测,1-通过,2-受阻,3-忽略,4-失败 */
legendCpd(){ legendCpd(){

27
src/views/xm/rpt/testPlan/testDayTimesCalc.vue

@ -95,19 +95,28 @@
title(){ title(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{ }else{
productName=this.filters.product.id
}
preName=`项目【${this.filters.project.id}`
} }
if(productName){
return `产品【${productName}】测试用例每日执行次数统计`
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{ }else{
return "测试用例每日执行次数统计"
preName=`产品【${this.filters.product.id}`
}
} }
return preName+ "测试用例每日执行次数统计"
}, },
xmProductCpd(){ xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){ if(this.xmProduct && this.xmProduct.id){

23
src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue

@ -92,7 +92,28 @@
} }
}, },
title(){ title(){
return '测试用例执行结果数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+ '测试用例执行结果数量分布'
}, },
/**0-未测,1-通过,2-受阻,3-忽略,4-失败 */ /**0-未测,1-通过,2-受阻,3-忽略,4-失败 */
legendCpd(){ legendCpd(){

23
src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

@ -116,7 +116,28 @@
} }
}, },
title(){ title(){
return '测试用例执行结果数量分布'
var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){
preName=`测试计划【${this.filters.testPlan.name}`
}else if(this.filters.testCasedb && this.filters.testCasedb.id){
preName=`测试库【${this.filters.testCasedb.name}`
}else if(this.filters.iteration && this.filters.iteration.id){
preName=`迭代【${this.filters.iteration.iterationName}`
}else if(this.filters.project && this.filters.project.id){
if(this.filters.project.name){
preName=`项目【${this.filters.project.name}`
}else{
preName=`项目【${this.filters.project.id}`
}
}else if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
preName=`产品【${this.filters.product.productName}`
}else{
preName=`产品【${this.filters.product.id}`
}
}
return preName+ '测试用例执行结果数量分布'
}, },
xmProductCpd(){ xmProductCpd(){
if(this.xmTestPlan && this.xmTestPlan.id){ if(this.xmTestPlan && this.xmTestPlan.id){

Loading…
Cancel
Save