Browse Source

优化

master
陈裕财 3 years ago
parent
commit
bfb55520c2
  1. 26
      src/views/xm/rpt/product/menuAgeDist.vue
  2. 25
      src/views/xm/rpt/product/menuAttDist.vue
  3. 1
      src/views/xm/rpt/product/menuSort.vue
  4. 41
      src/views/xm/rpt/product/questionAgeDist.vue
  5. 39
      src/views/xm/rpt/product/questionAttDist.vue
  6. 41
      src/views/xm/rpt/product/questionRetestDist.vue
  7. 41
      src/views/xm/rpt/product/questionSort.vue
  8. 25
      src/views/xm/rpt/project/taskAgeDist.vue
  9. 25
      src/views/xm/rpt/project/taskAttDist.vue

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

@ -281,30 +281,8 @@
this.xmMenuAgeDists=[]
},
searchXmMenuAgeDist(){
var params={}
if(this.filters.dtype){
params.dtype=this.filters.dtype
}
if(this.filters.status){
params.status=this.filters.status
}
if(this.filters.source){
params.source=this.filters.source
}
if(this.filters.dlvl){
params.dlvl=this.filters.dlvl
}
if(this.filters.priority){
params.priority=this.filters.priority
}
params.groupBy=this.groupBy
if(this.filters.product){
params.productId=this.filters.product.id
}
if(this.filters.iteration){
params.iterationId=this.filters.iteration.id
}
var params={...this.params}
getXmMenuAgeDist(params).then(res=>{
this.xmMenuAgeDists=res.data.data
})

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

@ -342,30 +342,7 @@
this.$notify({position:'bottom-left',showClose:true,message:'请选中分组属性',type:'warning'})
return
}
var params={}
if(this.filters.dtype){
params.dtype=this.filters.dtype
}
if(this.filters.status){
params.status=this.filters.status
}
if(this.filters.source){
params.source=this.filters.source
}
if(this.filters.dlvl){
params.dlvl=this.filters.dlvl
}
if(this.filters.priority){
params.priority=this.filters.priority
}
params.groupBy=this.groupBy
if(this.filters.product){
params.productId=this.filters.product.id
}
if(this.filters.iteration){
params.iterationId=this.filters.iteration.id
}
var params={...this.params}
getXmMenuAttDist(params).then(res=>{
this.xmMenuAttDists=res.data.data
})

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

@ -278,6 +278,7 @@
pageNum: this.pageInfo.pageNum,
total: this.pageInfo.total,
count: this.pageInfo.count,
...this.params
};
if(this.filters.dtype){
params.dtype=this.filters.dtype

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

@ -310,45 +310,8 @@
this.xmQuestionAgeDists=[]
},
searchXmQuestionAgeDist(){
var params={}
if(this.filters.solution){
params.solution=this.filters.solution
}
if(this.filters.bugType){
params.bugType=this.filters.bugType
}
if(this.filters.bugStatus){
params.bugStatus=this.filters.bugStatus
}
if(this.filters.bugReason){
params.bugReason=this.filters.bugReason
}
if(this.filters.bugSeverity){
params.bugSeverity=this.filters.bugSeverity
}
if(this.filters.repRate){
params.repRate=this.filters.repRate
}
if(this.filters.priority){
params.priority=this.filters.priority
}
if(this.filters.project){
params.projectId=this.filters.project.id
}
if(this.filters.product){
params.productId=this.filters.product.id
}
if(this.filters.iteration){
params.linkIterationId=this.filters.iteration.id
}
if(this.filters.testPlan && this.filters.testPlan.id){
params.planId=this.filters.testPlan.id
}
if(this.filters.testCasedb && this.filters.testCasedb.id){
params.casedbId=this.filters.testCasedb.id
}
params.groupBy=this.groupBy
var params={...this.params}
getXmQuestionAgeDist(params).then(res=>{
this.xmQuestionAgeDists=res.data.data
})

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

@ -384,44 +384,7 @@
this.$notify({position:'bottom-left',showClose:true,message:'请选中分组属性',type:'warning'})
return
}
var params={}
if(this.filters.solution){
params.solution=this.filters.solution
}
if(this.filters.bugType){
params.bugType=this.filters.bugType
}
if(this.filters.bugStatus){
params.bugStatus=this.filters.bugStatus
}
if(this.filters.bugReason){
params.bugReason=this.filters.bugReason
}
if(this.filters.bugSeverity){
params.bugSeverity=this.filters.bugSeverity
}
if(this.filters.repRate){
params.repRate=this.filters.repRate
}
if(this.filters.priority){
params.priority=this.filters.priority
}
if(this.filters.project){
params.projectId=this.filters.project.id
}
if(this.filters.product){
params.productId=this.filters.product.id
}
if(this.filters.iteration){
params.linkIterationId=this.filters.iteration.id
}
if(this.filters.testPlan && this.filters.testPlan.id){
params.planId=this.filters.testPlan.id
}
if(this.filters.testCasedb && this.filters.testCasedb.id){
params.casedbId=this.filters.testCasedb.id
}
var params={...this.params}
params.groupBy=this.groupBy
getXmQuestionAttDist(params).then(res=>{
this.xmQuestionAttDists=res.data.data

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

@ -354,46 +354,9 @@
pageNum: this.pageInfo.pageNum,
total: this.pageInfo.total,
count: this.pageInfo.count,
...this.params
};
if(this.filters.solution){
params.solution=this.filters.solution
}
if(this.filters.bugType){
params.bugType=this.filters.bugType
}
if(this.filters.bugStatus){
params.bugStatus=this.filters.bugStatus
}
if(this.filters.bugReason){
params.bugReason=this.filters.bugReason
}
if(this.filters.bugSeverity){
params.bugSeverity=this.filters.bugSeverity
}
if(this.filters.repRate){
params.repRate=this.filters.repRate
}
if(this.filters.priority){
params.priority=this.filters.priority
}
if(this.filters.project){
params.projectId=this.filters.project.id
}
if(this.filters.product){
params.productId=this.filters.product.id
}
if(this.filters.iteration){
params.linkIterationId=this.filters.iteration.id
}
if(this.filters.testPlan && this.filters.testPlan.id){
params.planId=this.filters.testPlan.id
}
if(this.filters.testCasedb && this.filters.testCasedb.id){
params.casedbId=this.filters.testCasedb.id
}
params.groupBy=this.groupBy
if (
this.pageInfo.orderFields != null &&

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

@ -320,46 +320,9 @@
pageNum: this.pageInfo.pageNum,
total: this.pageInfo.total,
count: this.pageInfo.count,
...this.params
};
if(this.filters.solution){
params.solution=this.filters.solution
}
if(this.filters.bugType){
params.bugType=this.filters.bugType
}
if(this.filters.bugStatus){
params.bugStatus=this.filters.bugStatus
}
if(this.filters.bugReason){
params.bugReason=this.filters.bugReason
}
if(this.filters.bugSeverity){
params.bugSeverity=this.filters.bugSeverity
}
if(this.filters.repRate){
params.repRate=this.filters.repRate
}
if(this.filters.priority){
params.priority=this.filters.priority
}
if(this.filters.project){
params.projectId=this.filters.project.id
}
if(this.filters.product){
params.productId=this.filters.product.id
}
if(this.filters.iteration){
params.linkIterationId=this.filters.iteration.id
}
if(this.filters.testPlan && this.filters.testPlan.id){
params.planId=this.filters.testPlan.id
}
if(this.filters.testCasedb && this.filters.testCasedb.id){
params.casedbId=this.filters.testCasedb.id
}
params.groupBy=this.groupBy
if (

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

@ -257,30 +257,7 @@
this.xmTaskAgeDists=[]
},
searchXmTaskAgeDist(){
var params={}
if(this.filters.taskType){
params.taskType=this.filters.taskType
}
if(this.filters.taskState){
params.taskState=this.filters.taskState
}
if(this.filters.planType){
params.planType=this.filters.planType
}
if(this.filters.settleSchemel){
params.settleSchemel=this.filters.settleSchemel
}
if(this.filters.priority){
params.priority=this.filters.priority
}
params.groupBy=this.groupBy
if(this.filters.project){
params.projectId=this.filters.project.id
}
if(this.filters.iteration){
params.iterationId=this.filters.iteration.id
}
var params={...this.params}
params.ntype='0'
getXmTaskAgeDist(params).then(res=>{
this.xmTaskAgeDists=res.data.data

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

@ -321,30 +321,7 @@
this.$notify({position:'bottom-left',showClose:true,message:'请选中分组属性',type:'warning'})
return
}
var params={}
if(this.filters.taskType){
params.taskType=this.filters.taskType
}
if(this.filters.taskState){
params.taskState=this.filters.taskState
}
if(this.filters.planType){
params.planType=this.filters.planType
}
if(this.filters.settleSchemel){
params.settleSchemel=this.filters.settleSchemel
}
if(this.filters.priority){
params.priority=this.filters.priority
}
params.groupBy=this.groupBy
if(this.filters.project){
params.projectId=this.filters.project.id
}
if(this.filters.iteration){
params.iterationId=this.filters.iteration.id
}
var params={...this.params}
params.ntype='0'
getXmTaskAttDist(params).then(res=>{
this.xmTaskAttDists=res.data.data

Loading…
Cancel
Save