Browse Source

优化报表

master
陈裕财 4 years ago
parent
commit
24a4f20e4b
  1. 13
      src/views/xm/XmOverview2.vue

13
src/views/xm/XmOverview2.vue

@ -161,14 +161,21 @@ export default {
taskMng: function (){
return this.xmBranchState.createUsername;
},
workloadProgress:function (){
return Math.round(this.xmBranchState.totalActWorkload/this.xmBranchState.estimateWorkload*100);
workloadProgress:function (){
if(!this.xmBranchState.totalPlanWorkload){
return 0;
}
if(this.xmBranchState.totalActWorkload < this.xmBranchState.totalPlanWorkload){
return Math.round(this.xmBranchState.totalActWorkload/this.xmBranchState.totalPlanWorkload*100)
}else{
return 100;
}
},
deviation:function (){
return Math.round(this.xmBranchState.totalActWorkload-this.xmBranchState.estimateWorkload);
},
deviationRate:function (){
return Math.round((this.xmBranchState.totalActWorkload-this.xmBranchState.estimateWorkload)/this.xmBranchState.estimateWorkload*100);
return Math.round((this.xmBranchState.totalActWorkload-this.xmBranchState.estimateWorkload)/this.xmBranchState.totalPlanWorkload*100);
},
remainWorkload:function (){
return this.xmBranchState.totalPlanWorkload - this.xmBranchState.totalActWorkload;

Loading…
Cancel
Save