Browse Source

优化

master
陈裕财 3 years ago
parent
commit
722129383a
  1. 30
      src/views/xm/rpt/product/menuAgeDist.vue
  2. 29
      src/views/xm/rpt/product/menuAttDist.vue
  3. 29
      src/views/xm/rpt/product/questionAgeDist.vue
  4. 11
      src/views/xm/rpt/product/questionAttDist.vue
  5. 29
      src/views/xm/rpt/product/questionRetestDist.vue
  6. 29
      src/views/xm/rpt/project/taskAgeDist.vue
  7. 25
      src/views/xm/rpt/project/taskAttDist.vue
  8. 5
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  9. 5
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue

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

@ -93,8 +93,15 @@
legendCpd(){
return ['0-2天','3-5天','6-7天','8-15天','16-30天','30天以上']
},
title(){
return '需求年龄数量分布'
total(){
if(!this.xmMenuAgeDists || this.xmMenuAgeDists.length==0){
return 0
}else{
return this.xmMenuAgeDists.reduce((n, i) => {
return (n += i.value);
}, 0)
}
},
title(){
@ -193,10 +200,27 @@
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
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: [
{
type: 'pie',

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

@ -119,6 +119,16 @@
return this.dicts[itemId].map(i=>i.name)
},
total(){
if(!this.xmMenuAttDists || this.xmMenuAttDists.length==0){
return 0
}else{
return this.xmMenuAttDists.reduce((n, i) => {
return (n += i.value);
}, 0)
}
},
title(){
var preName=""
@ -247,10 +257,27 @@
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
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: [
{
type: 'pie',

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

@ -122,6 +122,16 @@
return datas;
}
},
total(){
if(!this.xmQuestionAgeDists || this.xmQuestionAgeDists.length==0){
return 0
}else{
return this.xmQuestionAgeDists.reduce((n, i) => {
return (n += i.value);
}, 0)
}
},
title(){
var preName=""
@ -219,10 +229,27 @@
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
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: [
{
type: 'pie',

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

@ -140,8 +140,15 @@
})
}
},
title(){
return this.groupBys.find(i=>i.id==this.groupBy).name+'数量分布'
total(){
if(!this.xmQuestionAttDists || this.xmQuestionAttDists.length==0){
return 0
}else{
return this.xmQuestionAttDists.reduce((n, i) => {
return (n += i.value);
}, 0)
}
},
legendCpd(){
var itemId="";

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

@ -142,6 +142,16 @@
legendCpd(){
return ["1次","2次","3次","4次","5次","5次以上"]
},
total(){
if(!this.xmQuestionRetestDists || this.xmQuestionRetestDists.length==0){
return 0
}else{
return this.xmQuestionRetestDists.reduce((n, i) => {
return (n += i.bugsNum);
}, 0)
}
},
title(){
var preName=""
@ -254,10 +264,27 @@
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
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: [
{
type: 'pie',

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

@ -79,6 +79,16 @@
return datas;
}
},
total(){
if(!this.xmTaskAgeDists || this.xmTaskAgeDists.length==0){
return 0
}else{
return this.xmTaskAgeDists.reduce((n, i) => {
return (n += i.value);
}, 0)
}
},
title(){
var preName=""
@ -164,10 +174,27 @@
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
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: [
{
type: 'pie',

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

@ -98,11 +98,11 @@
},
total(){
if(!this.xmTestCaseToPlanCalcList || this.xmTestCaseToPlanCalcList.length==0){
if(!this.xmTaskAttDists || this.xmTaskAttDists.length==0){
return 0
}else{
return this.xmTestCaseToPlanCalcList.reduce((n, i) => {
return (n += i.useTimes);
return this.xmTaskAttDists.reduce((n, i) => {
return (n += i.value);
}, 0)
}
},
@ -234,10 +234,27 @@
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
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: [
{
type: 'pie',

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

@ -207,11 +207,10 @@
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
data:this.legendCpd,
},
graphic: {
type: 'text',
left: 'center',
@ -219,7 +218,7 @@
style: {
// text: '',
text:
'总用例数'+this.total ,
'总数'+this.total ,
textAlign: 'center',
fill: '#333',

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

@ -198,8 +198,7 @@
}
},
calculable: true,
legend: {
legend:{
bottom: 'bottom',
data:this.legendCpd,
},
@ -210,7 +209,7 @@
style: {
// text: '',
text:
'总用例数'+this.total ,
'总数'+this.total ,
textAlign: 'center',
fill: '#333',

Loading…
Cancel
Save