Browse Source

优化

master
陈裕财 3 years ago
parent
commit
0dba12a85b
  1. 4
      src/views/xm/rpt/iteration/IterationWorkItemDayList.vue
  2. 4
      src/views/xm/rpt/iteration/burnout.vue
  3. 4
      src/views/xm/rpt/iteration/menuDayAccumulate.vue
  4. 4
      src/views/xm/rpt/iteration/menuDayTrend.vue
  5. 5
      src/views/xm/rpt/iteration/questionDayAccumulate.vue
  6. 4
      src/views/xm/rpt/iteration/questionDayTrend.vue
  7. 3
      src/views/xm/rpt/product/menuDayAccumulate.vue
  8. 4
      src/views/xm/rpt/product/menuDayTrend.vue
  9. 3
      src/views/xm/rpt/product/productWorkItemDayList.vue
  10. 4
      src/views/xm/rpt/product/questionDayAccumulate.vue
  11. 4
      src/views/xm/rpt/product/questionDayTrend.vue
  12. 35
      src/views/xm/rpt/project/projectWorkItemDayList.vue
  13. 35
      src/views/xm/rpt/project/projectWorkloadSetDayList.vue
  14. 35
      src/views/xm/rpt/project/projectWorkloadSetMonthList.vue
  15. 31
      src/views/xm/rpt/project/taskAgeDist.vue
  16. 31
      src/views/xm/rpt/project/taskAttDist.vue
  17. 35
      src/views/xm/rpt/project/taskDayAccumulate.vue
  18. 35
      src/views/xm/rpt/project/taskDayTrend.vue
  19. 70
      src/views/xm/rpt/project/taskSort.vue
  20. 58
      src/views/xm/rpt/testCase/testCaseSort.vue
  21. 18
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  22. 18
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue
  23. 18
      src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

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

@ -314,14 +314,10 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
onIterationSelected(iteration){

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

@ -328,23 +328,19 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
onIterationSelected(iteration){
this.filters.iteration=iteration
this.xmProductStateHiss=[];
},
onIterationClear(){
this.filters.iteration=null
this.xmProductStateHiss=[];
},
},//end method
mounted() {

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

@ -316,22 +316,18 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
onIterationSelected(iteration){
this.filters.iteration=iteration
this.xmProductStateHiss=[];
},
onIterationClear(){
this.filters.iteration=null
this.xmProductStateHiss=[];
}
},//end method
mounted() {

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

@ -331,23 +331,19 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
onIterationSelected(iteration){
this.filters.iteration=iteration
this.xmProductStateHiss=[];
},
onIterationClear(){
this.filters.iteration=null
this.xmProductStateHiss=[];
}
},//end method
mounted() {

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

@ -314,24 +314,19 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
onIterationSelected(iteration){
this.filters.iteration=iteration
this.xmProductStateHiss=[];
},
onIterationClear(){
this.filters.iteration=null
this.xmProductStateHiss=[];
}
},//end method
mounted() {

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

@ -330,23 +330,19 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
onIterationSelected(iteration){
this.filters.iteration=iteration
this.xmProductStateHiss=[];
},
onIterationClear(){
this.filters.iteration=null
this.xmProductStateHiss=[];
}
},//end method
mounted() {

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

@ -298,14 +298,11 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
},//end method
mounted() {

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

@ -313,14 +313,10 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
},//end method
mounted() {

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

@ -299,14 +299,11 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
},//end method
mounted() {

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

@ -294,14 +294,10 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
},//end method
mounted() {

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

@ -312,14 +312,10 @@
onProductSelected(product){
this.filters.product=product
this.xmProductStateHiss=[];
},
onProductClear(){
this.filters.product=null
this.xmProductStateHiss=[];
},
},//end method
mounted() {

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

@ -133,9 +133,40 @@
},
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.xmProjectStateHiss=[]
this.$nextTick(()=>{
@ -264,14 +295,10 @@
onProjectSelected(project){
this.filters.project=project
this.xmProjectStateHiss=[];
},
onProjectClear(){
this.filters.project=null
this.xmProjectStateHiss=[];
},
},//end method
mounted() {

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

@ -147,9 +147,40 @@
},
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.xmProjectWorkloadSetDays=[]
this.$nextTick(()=>{
if(this.$refs['xmProjectSelect'])this.$refs['xmProjectSelect'].clearSelect();
@ -288,14 +319,10 @@
onProjectSelected(project){
this.filters.project=project
this.xmProjectWorkloadSetDays=[];
},
onProjectClear(){
this.filters.project=null
this.xmProjectWorkloadSetDays=[];
},
},//end method
mounted() {

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

@ -146,9 +146,40 @@
},
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.xmProjectWorkloadSetMonths=[]
this.$nextTick(()=>{
@ -288,14 +319,10 @@
onProjectSelected(project){
this.filters.project=project
this.xmProjectWorkloadSetMonths=[];
},
onProjectClear(){
this.filters.project=null
this.xmProjectWorkloadSetMonths=[];
},
},//end method
mounted() {

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

@ -150,9 +150,40 @@
methods: {
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.searchXmTaskAgeDist();
},
drawCharts() {

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

@ -210,9 +210,40 @@
},
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.searchXmTaskAttDist()
},
drawCharts() {

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

@ -166,9 +166,40 @@
},
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.xmProjectStateHiss=[]
if(this.$refs['xmProjectSelect'])this.$refs['xmProjectSelect'].clearSelect();
this.$nextTick(()=>{
@ -280,14 +311,10 @@
onProjectSelected(project){
this.filters.project=project
this.xmProjectStateHiss=[];
},
onProjectClear(){
this.filters.project=null
this.xmProjectStateHiss=[];
},
},//end method
mounted() {

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

@ -160,9 +160,40 @@
},
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
if(this.$refs['xmProjectSelect'])this.$refs['xmProjectSelect'].clearSelect();
this.$nextTick(()=>{
this.listXmProjectStateHis();
@ -246,14 +277,10 @@
onProjectSelected(project){
this.filters.project=project
this.xmProjectStateHiss=[];
},
onProjectClear(){
this.filters.project=null
this.xmProjectStateHiss=[];
},
},//end method
mounted() {

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

@ -160,9 +160,38 @@
methods: {
open(){
this.visible=true;
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.searchXmTaskSort()
},
drawCharts() {
@ -214,53 +243,14 @@
this.xmTaskSorts=[]
},
searchXmTaskSort(){
if(!this.groupBy){
this.$notify({position:'bottom-left',showClose:true,message:'请选中分组属性',type:'warning'})
return
}
let params = {
pageSize: this.pageInfo.pageSize,
pageNum: this.pageInfo.pageNum,
total: this.pageInfo.total,
count: this.pageInfo.count,
...this.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
}
if (
this.pageInfo.orderFields != null &&
this.pageInfo.orderFields.length > 0
) {
let orderBys = [];
for (var i = 0; i < this.pageInfo.orderFields.length; i++) {
orderBys.push(
this.pageInfo.orderFields[i] + " " + this.pageInfo.orderDirs[i]
);
}
params.orderBy = orderBys.join(",");
}
params.ntype='0'
getXmTaskSort(params).then(res=>{
this.xmTaskSorts=res.data.data

58
src/views/xm/rpt/testCase/testCaseSort.vue

@ -237,34 +237,7 @@
)
},
searchXmTestCaseSort(){
var params={ }
if(this.filters.product && this.filters.product.id){
params.productId=this.filters.product.id
}
if(this.filters.project && this.filters.project.id){
params.projectId=this.filters.project.id
}
if(this.filters.iteration && this.filters.iteration.id){
params.iterationId=this.filters.iteration.id
}
if(this.filters.testCasedb && this.filters.testCasedb.id){
params.casedbId=this.filters.testCasedb.id
}
if(this.filters.testType){
params.testType=this.filters.testType
}
if(this.filters.caseType){
params.caseType=this.filters.caseType
}
if(this.filters.caseStatus){
params.caseStatus=this.filters.caseStatus
}
if(this.filters.cpriority){
params.cpriority=this.filters.cpriority
}
params.groupBy=this.groupBy;
var params={ ...this.params}
getXmTestCaseSort(params).then(res=>{
var data=res.data.data
if(data){
@ -318,10 +291,39 @@
if(this.initGroupBy){
this.groupBy=this.initGroupBy
}
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if( this.filters.testPlan && this.filters.testPlan.id){
this.params.planId= this.filters.testPlan.id
}
if( this.filters.product && this.filters.product.id){
this.params.productId= this.filters.product.id
}
if( this.filters.project && this.filters.project.id){
this.params.projectId= this.filters.project.id
}
if( this.filters.iteration && this.filters.iteration.id){
this.params.iterationId= this.filters.iteration.id
}
if( this.filters.testCasedb && this.filters.testCasedb.id){
this.params.casedbId= this.filters.testCasedb.id
}
if(this.cfg && this.cfg.id){
this.params=this.cfg.params
this.title=this.cfg.title
this.remark=this.cfg.remark
}
if(this.showToolBar && !this.title){
this.title="企业工作项每日趋势图"
}
this.searchXmTestCaseSort();
}
},//end method

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

@ -259,23 +259,7 @@
},
searchXmTestCaseToPlanCalcList(){
var params={ }
if(this.filters.product && this.filters.product.id){
params.productId=this.filters.product.id
}
if(this.filters.project && this.filters.project.id){
params.projectId=this.filters.project.id
}
if(this.filters.iteration && this.filters.iteration.id){
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 }
getXmTestCaseToPlanCalcList(params).then(res=>{
this.xmTestCaseToPlanCalcList=res.data.data
})

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

@ -249,23 +249,7 @@
this.xmTestPlanCaseExecStatusDists=[]
},
searchXmTestPlanCaseExecStatusDist(){
var params={ }
if(this.filters.product && this.filters.product.id){
params.productId=this.filters.product.id
}
if(this.filters.project && this.filters.project.id){
params.projectId=this.filters.project.id
}
if(this.filters.iteration && this.filters.iteration.id){
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 }
getXmTestPlanCaseExecStatusDist(params).then(res=>{
this.xmTestPlanCaseExecStatusDists=res.data.data
})

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

@ -249,23 +249,7 @@
)
},
searchXmTestPlanCaseUserDist(){
var params={ }
if(this.filters.product && this.filters.product.id){
params.productId=this.filters.product.id
}
if(this.filters.project && this.filters.project.id){
params.projectId=this.filters.project.id
}
if(this.filters.iteration && this.filters.iteration.id){
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 }
getXmTestPlanCaseUserDist(params).then(res=>{
this.xmTestPlanCaseUserDists=res.data.data
})

Loading…
Cancel
Save