Browse Source

优化

master
陈裕财 3 years ago
parent
commit
143445b890
  1. 1
      src/views/xm/rpt/project/taskAgeDist.vue
  2. 11
      src/views/xm/rpt/project/taskAttDist.vue
  3. 1
      src/views/xm/rpt/project/taskSort.vue
  4. 27
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  5. 2
      src/views/xm/rpt/testPlan/testDayTimesCalc.vue
  6. 27
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue

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

@ -218,6 +218,7 @@
if(this.filters.iteration){ if(this.filters.iteration){
params.iterationId=this.filters.iteration.id params.iterationId=this.filters.iteration.id
} }
params.ntype='0'
getXmTaskAgeDist(params).then(res=>{ getXmTaskAgeDist(params).then(res=>{
this.xmTaskAgeDists=res.data.data this.xmTaskAgeDists=res.data.data
}) })

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

@ -96,6 +96,16 @@
}) })
} }
}, },
total(){
if(!this.xmTestCaseToPlanCalcList || this.xmTestCaseToPlanCalcList.length==0){
return 0
}else{
return this.xmTestCaseToPlanCalcList.reduce((n, i) => {
return (n += i.useTimes);
}, 0)
}
},
title(){ title(){
var preName="" var preName=""
@ -282,6 +292,7 @@
if(this.filters.iteration){ if(this.filters.iteration){
params.iterationId=this.filters.iteration.id params.iterationId=this.filters.iteration.id
} }
params.ntype='0'
getXmTaskAttDist(params).then(res=>{ getXmTaskAttDist(params).then(res=>{
this.xmTaskAttDists=res.data.data this.xmTaskAttDists=res.data.data
}) })

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

@ -256,6 +256,7 @@
} }
params.orderBy = orderBys.join(","); params.orderBy = orderBys.join(",");
} }
params.ntype='0'
getXmTaskSort(params).then(res=>{ getXmTaskSort(params).then(res=>{
this.xmTaskSorts=res.data.data this.xmTaskSorts=res.data.data
}) })

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

@ -98,6 +98,16 @@
return datas; return datas;
} }
}, },
total(){
if(!this.xmTestCaseToPlanCalcList || this.xmTestCaseToPlanCalcList.length==0){
return 0
}else{
return this.xmTestCaseToPlanCalcList.reduce((n, i) => {
return (n += i.useTimes);
}, 0)
}
},
title(){ title(){
var preName="" var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){ if(this.filters.testPlan && this.filters.testPlan.id){
@ -201,6 +211,23 @@
bottom: 'bottom', bottom: 'bottom',
data:this.legendCpd, data:this.legendCpd,
}, },
graphic: {
type: 'text',
left: 'center',
top: 'center',
style: {
// text: '',
text:
'总用例数'+this.total ,
textAlign: 'center',
fill: '#333',
width: 30,
height: 30,
fontSize: 14
}
},
series: [ series: [
{ {
type: 'pie', type: 'pie',

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

@ -229,7 +229,7 @@
{ {
name:'次数', name:'次数',
data: this.testDayTimesCpd, data: this.testDayTimesCpd,
type: 'line',
type: 'bar',
label:{ label:{
show: true, show: true,
}, },

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

@ -90,6 +90,15 @@
return datas; return datas;
} }
}, },
total(){
if(!this.xmTestPlanCaseExecStatusDists || this.xmTestPlanCaseExecStatusDists.length==0){
return 0
}else{
return this.xmTestPlanCaseExecStatusDists.reduce((n, i) => {
return (n += i.totalCnt);
}, 0)
}
},
title(){ title(){
var preName="" var preName=""
if(this.filters.testPlan && this.filters.testPlan.id){ if(this.filters.testPlan && this.filters.testPlan.id){
@ -194,10 +203,26 @@
bottom: 'bottom', bottom: 'bottom',
data:this.legendCpd, data:this.legendCpd,
}, },
graphic: {
type: 'text',
left: 'center',
top: 'center',
style: {
// text: '',
text:
'总用例数'+this.total ,
textAlign: 'center',
fill: '#333',
width: 30,
height: 30,
fontSize: 14
}
},
series: [ series: [
{ {
type: 'pie', type: 'pie',
radius: '50%',
radius: ['50%','70%'],
data: this.xmTestPlanCaseExecStatusDistsCpd, data: this.xmTestPlanCaseExecStatusDistsCpd,
emphasis: { emphasis: {
itemStyle: { itemStyle: {

Loading…
Cancel
Save