Browse Source

优化

master
陈裕财 3 years ago
parent
commit
b5f2be3d57
  1. 6
      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. 6
      src/views/xm/rpt/iteration/menuDayAccumulate.vue
  8. 6
      src/views/xm/rpt/iteration/menuDayTrend.vue
  9. 6
      src/views/xm/rpt/iteration/questionDayAccumulate.vue
  10. 6
      src/views/xm/rpt/iteration/questionDayTrend.vue
  11. 6
      src/views/xm/rpt/product/menuDayAccumulate.vue
  12. 6
      src/views/xm/rpt/product/menuDayTrend.vue
  13. 7
      src/views/xm/rpt/product/productWorkItemDayList.vue
  14. 6
      src/views/xm/rpt/product/questionDayAccumulate.vue
  15. 6
      src/views/xm/rpt/product/questionDayTrend.vue
  16. 7
      src/views/xm/rpt/project/projectWorkItemDayList.vue
  17. 13
      src/views/xm/rpt/project/projectWorkloadSetDayList.vue
  18. 12
      src/views/xm/rpt/project/projectWorkloadSetMonthList.vue
  19. 6
      src/views/xm/rpt/project/taskDayAccumulate.vue
  20. 6
      src/views/xm/rpt/project/taskDayTrend.vue
  21. 22
      src/views/xm/rpt/testPlan/testDayTimesCalc.vue

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

@ -138,11 +138,7 @@
methods: { methods: {
listXmBranchStateHis(){ 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=>{ listXmBranchStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; 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 },//end data
methods: { methods: {
listXmBranchStateHis(){ 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=>{ listXmBranchStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
}) })

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

@ -126,11 +126,7 @@
methods: { methods: {
listXmBranchStateHis(){ 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=>{ listXmBranchStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
}) })

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -129,11 +129,8 @@
return; 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=>{ listXmProductStateHis(params).then(res=>{
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss;
}) })

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

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

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

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

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

@ -125,11 +125,8 @@
return; 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=>{ listXmProjectStateHis(params).then(res=>{
this.xmProjectStateHiss=res.data.tips.isOk?res.data.data:this.xmProjectStateHiss; this.xmProjectStateHiss=res.data.tips.isOk?res.data.data:this.xmProjectStateHiss;
}) })

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

@ -139,17 +139,8 @@
return; 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=>{ listProjectWorkloadSetDay(params).then(res=>{
this.xmProjectWorkloadSetDays=res.data.tips.isOk?res.data.data:this.xmProjectWorkloadSetDays; this.xmProjectWorkloadSetDays=res.data.tips.isOk?res.data.data:this.xmProjectWorkloadSetDays;
}) })

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

@ -138,18 +138,8 @@
return; 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;
}
var params={...this.params}
if(this.filters.userid){
params.userid=this.filters.userid
}
if(this.filters.taskId){
params.taskId=this.filters.taskId
}
listProjectWorkloadSetMonth(params).then(res=>{ listProjectWorkloadSetMonth(params).then(res=>{
this.xmProjectWorkloadSetMonths=res.data.tips.isOk?res.data.data:this.xmProjectWorkloadSetMonths; this.xmProjectWorkloadSetMonths=res.data.tips.isOk?res.data.data:this.xmProjectWorkloadSetMonths;
}) })

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

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

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

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

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

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

Loading…
Cancel
Save