@@ -202,11 +199,11 @@
项目预计进度
-
+
项目实际进度
-
+
@@ -263,33 +260,17 @@ export default {
}
return Math.round(this.xmIteration.actWorkload/this.xmIteration.distBudgetWorkload*100);
},
- deviation:function (){
- let now = new Date();
- let startTime = new Date(this.xmIteration.startTime);
- let endTime = new Date(this.xmIteration.endTime);
- if(now<=endTime){
- let allDays=endTime-startTime;
- return this.xmIteration.actWorkload - Math.round((now-startTime)/allDays*this.xmIteration.distBudgetWorkload)
- }else{
- return this.xmIteration.actWorkload - this.xmIteration.distBudgetWorkload;
- }
+ deviation:function (){
+ return this.xmIteration.actWorkload -this.xmIteration.estimateWorkload
},
deviationRate:function (){
- return Math.round(this.deviation/this.xmIteration.distBudgetWorkload*100);
+ return Math.round(this.deviation/this.xmIteration.estimateWorkload*100);
},
remainWorkload:function (){
return this.xmIteration.distBudgetWorkload - this.xmIteration.actWorkload;
},
planProgress:function (){
- let now = new Date();
- let startTime = new Date(this.xmIteration.startTime);
- let endTime = new Date(this.xmIteration.endTime);
- if(now<=endTime){
- let allDays=endTime-startTime;
- return Math.round((now-startTime)/allDays*100)
- }else{
- return 100;
- }
+ return Math.round(this.xmIteration.estimateWorkload/this.xmIteration.distBudgetWorkload*100)
},
realProgress:function (){
if(this.xmIteration.actWorkload < this.xmIteration.distBudgetWorkload){
diff --git a/src/views/xm/core/xmProduct/XmProductOverview.vue b/src/views/xm/core/xmProduct/XmProductOverview.vue
index 387cdfab..c3a0166f 100644
--- a/src/views/xm/core/xmProduct/XmProductOverview.vue
+++ b/src/views/xm/core/xmProduct/XmProductOverview.vue
@@ -22,11 +22,8 @@