From 7c8c23893c06d918e5274ec4fc0da539675ab17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 27 Jun 2022 14:36:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xmIteration/XmIterationForLinkComplex.vue | 23 ++++++++++++++++ .../XmIterationOverviewComplex.vue | 27 +++++++++++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue b/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue index 668719ae..02d07573 100644 --- a/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue +++ b/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue @@ -26,6 +26,19 @@ + +
+ + 计算迭代统计数据 +
+ 将从项目任务中汇总进度、预算工作量、实际工作量、预算金额、实际金额、缺陷数、需求数等数据到迭代统计表; +
+ 注意:该统计实时统计迭代涉及到的各方面数据,执行量较大,一般更改了任务进度数据、重新调整了需求范围,需要迭代的实时数据的情况下,再手动执行。 + +
+
+
+
@@ -75,6 +88,7 @@ import XmIterationAdd from './XmIterationAdd';//新增界面 import XmIterationMenuMng from '../xmIterationMenu/XmIterationMenuMng.vue'; + import { loadTasksToXmIterationState } from '@/api/xm/core/xmIteration'; export default { computed: { ...mapGetters([ @@ -90,6 +104,7 @@ }, data() { return{ + load:{calcIteration:false}, xmIteration:null, showPanel:'iterationOverview',//menus,tasks,bugs,iterationStateShow iterationAddVisible:false, @@ -97,6 +112,14 @@ } },//end data methods: { + loadTasksToXmIterationState(){ + this.load.calcIteration=true; + loadTasksToXmIterationState({id:this.xmIteration.id}).then(res=>{ + this.load.calcIteration=false; + var tips =res.data.tips; + this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error'}); + }); + }, /**end 自定义函数请在上面加**/ onIterationRowClick(iteration){ diff --git a/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue b/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue index 5dda5406..3b8d70d2 100644 --- a/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue +++ b/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue @@ -4,6 +4,9 @@ 迭代概览 + + 执行统计 + 迭代详情 @@ -20,12 +23,23 @@ 配置可见项目 --> - + +
+ + 计算迭代统计数据 +
+ 将从项目任务中汇总进度、预算工作量、实际工作量、预算金额、实际金额、缺陷数、需求数等数据到迭代统计表; +
+ 注意:该统计实时统计迭代涉及到的各方面数据,执行量较大,一般更改了任务进度数据、重新调整了需求范围,需要迭代的实时数据的情况下,再手动执行。 + +
+
+
@@ -38,6 +52,7 @@ import XmIterationEdit from './XmIterationEdit.vue'; import XmIterationLinkForProduct from '../xmIterationLink/XmIterationLinkForProduct.vue'; import XmIterationLinkForProject from '../xmIterationLink/XmIterationLinkForProject.vue'; import XmIterationMenuMng from '../xmIterationMenu/XmIterationMenuMng.vue'; + import { loadTasksToXmIterationState } from '@/api/xm/core/xmIteration'; export default { @@ -51,12 +66,20 @@ export default { }, data() { return { + load:{calcIteration:false,}, showPanelName:'overview' }; }, methods:{ - + loadTasksToXmIterationState(){ + this.load.edit=true; + loadTasksToXmIterationState({id:this.xmIteration.id}).then(res=>{ + this.load.edit=false; + var tips =res.data.tips; + this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error'}); + }); + }, onMenuToolBarSelect(menuIndex){ this.showPanelName=menuIndex; }