Browse Source

优化

master
陈裕财 3 years ago
parent
commit
b5f2be3d57
  1. 8
      src/views/xm/rpt/branch/menuDayAccumulate.vue
  2. 7
      src/views/xm/rpt/branch/menuDayTrend.vue
  3. 6
      src/views/xm/rpt/branch/questionDayAccumulate.vue
  4. 6
      src/views/xm/rpt/branch/questionDayTrend.vue
  5. 6
      src/views/xm/rpt/iteration/IterationWorkItemDayList.vue
  6. 2
      src/views/xm/rpt/iteration/burnout.vue
  7. 8
      src/views/xm/rpt/iteration/menuDayAccumulate.vue
  8. 8
      src/views/xm/rpt/iteration/menuDayTrend.vue
  9. 8
      src/views/xm/rpt/iteration/questionDayAccumulate.vue
  10. 8
      src/views/xm/rpt/iteration/questionDayTrend.vue
  11. 8
      src/views/xm/rpt/product/menuDayAccumulate.vue
  12. 8
      src/views/xm/rpt/product/menuDayTrend.vue
  13. 7
      src/views/xm/rpt/product/productWorkItemDayList.vue
  14. 8
      src/views/xm/rpt/product/questionDayAccumulate.vue
  15. 8
      src/views/xm/rpt/product/questionDayTrend.vue
  16. 7
      src/views/xm/rpt/project/projectWorkItemDayList.vue
  17. 15
      src/views/xm/rpt/project/projectWorkloadSetDayList.vue
  18. 14
      src/views/xm/rpt/project/projectWorkloadSetMonthList.vue
  19. 8
      src/views/xm/rpt/project/taskDayAccumulate.vue
  20. 8
      src/views/xm/rpt/project/taskDayTrend.vue
  21. 26
      src/views/xm/rpt/testPlan/testDayTimesCalc.vue

8
src/views/xm/rpt/branch/menuDayAccumulate.vue

@ -122,7 +122,7 @@
testCasedb:null,
},
params:{
},
title:'',//
remark:'', //
@ -138,11 +138,7 @@
methods: {
listXmBranchStateHis(){
var params={orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmBranchStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

7
src/views/xm/rpt/branch/menuDayTrend.vue

@ -127,12 +127,7 @@
},//end data
methods: {
listXmBranchStateHis(){
var params={orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmBranchStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

6
src/views/xm/rpt/branch/questionDayAccumulate.vue

@ -126,11 +126,7 @@
methods: {
listXmBranchStateHis(){
var params={orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmBranchStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

6
src/views/xm/rpt/branch/questionDayTrend.vue

@ -128,11 +128,7 @@
methods: {
listXmBranchStateHis(){
var params={orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmBranchStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -144,11 +144,7 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中迭代',type:'warning'})
return;
}
var params={productId:this.filters.product.id,iterationId:this.filters.iteration.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmIterationStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -189,7 +189,7 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中迭代',type:'warning'})
return;
}
var params={iterationId:this.filters.iteration.id,orderBy:'biz_date asc'}
var params={...this.params,orderBy:'biz_date asc'}
listXmIterationStateHis(params).then(res=>{
this.xmIterationStateHiss=res.data.tips.isOk?res.data.data:this.xmIterationStateHiss;
})

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

@ -168,12 +168,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中迭代',type:'warning'})
return;
}
var params={productId:this.filters.product.id,iterationId:this.filters.iteration.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmIterationStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -171,12 +171,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中迭代',type:'warning'})
return;
}
var params={productId:this.filters.product.id,iterationId:this.filters.iteration.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmIterationStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -166,12 +166,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中迭代',type:'warning'})
return;
}
var params={productId:this.filters.product.id,iterationId:this.filters.iteration.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmIterationStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -169,12 +169,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中迭代',type:'warning'})
return;
}
var params={productId:this.filters.product.id,iterationId:this.filters.iteration.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmIterationStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -150,12 +150,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'})
return;
}
var params={productId:this.filters.product.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProductStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -153,12 +153,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'})
return;
}
var params={productId:this.filters.product.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProductStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -129,11 +129,8 @@
return;
}
var params={productId:this.filters.product.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProductStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -152,12 +152,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'})
return;
}
var params={productId:this.filters.product.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProductStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -153,12 +153,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'})
return;
}
var params={productId:this.filters.product.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProductStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
})

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

@ -125,11 +125,8 @@
return;
}
var params={projectId: this.filters.project.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProjectStateHis(params).then(res=>{
this.xmProjectStateHiss=res.data.tips.isOk?res.data.data:this.xmProjectStateHiss;
})

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

@ -139,17 +139,8 @@
return;
}
var params={projectId: this.filters.project.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
if(this.filters.userid){
params.userid=this.filters.userid
}
if(this.filters.taskId){
params.taskId=this.filters.taskId
}
var params={...this.params,orderBy:'biz_date asc'}
listProjectWorkloadSetDay(params).then(res=>{
this.xmProjectWorkloadSetDays=res.data.tips.isOk?res.data.data:this.xmProjectWorkloadSetDays;
})
@ -158,7 +149,7 @@
this.visible=true;
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.iteration=this.xmIteration
this.xmProjectWorkloadSetDays=[]
this.$nextTick(()=>{
if(this.$refs['xmProjectSelect'])this.$refs['xmProjectSelect'].clearSelect();

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

@ -138,18 +138,8 @@
return;
}
var params={projectId: this.filters.project.id}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
if(this.filters.userid){
params.userid=this.filters.userid
}
if(this.filters.taskId){
params.taskId=this.filters.taskId
}
var params={...this.params}
listProjectWorkloadSetMonth(params).then(res=>{
this.xmProjectWorkloadSetMonths=res.data.tips.isOk?res.data.data:this.xmProjectWorkloadSetMonths;
})

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

@ -158,12 +158,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中项目',type:'warning'})
return;
}
var params={projectId: this.filters.project.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProjectStateHis(params).then(res=>{
this.xmProjectStateHiss=res.data.tips.isOk?res.data.data:this.xmProjectStateHiss;
})

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

@ -152,12 +152,8 @@
this.$notify({position:'bottom-left',showClose:true,message:'请先选中项目',type:'warning'})
return;
}
var params={projectId: this.filters.project.id,orderBy:'biz_date asc'}
if(this.filters.startBizDate && this.filters.endBizDate){
params.startBizDate=this.filters.startBizDate;
params.endBizDate=this.filters.endBizDate;
}
var params={...this.params,orderBy:'biz_date asc'}
listXmProjectStateHis(params).then(res=>{
this.xmProjectStateHiss=res.data.tips.isOk?res.data.data:this.xmProjectStateHiss;
})

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

@ -158,31 +158,11 @@
}//end return
},//end data
methods: {
getXmTestDayTimesList(){
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
}
getXmTestDayTimesList(){
var params={ ...this.params,}
getXmTestDayTimesList(params).then(res=>{
this.xmTestDayTimesList=res.data.tips.isOk?res.data.data:this.xmTestDayTimesList;
})
})
},
open(){
this.visible=true;

Loading…
Cancel
Save