diff --git a/src/views/xm/core/xmTestPlan/XmTestPlanInfo.vue b/src/views/xm/core/xmTestPlan/XmTestPlanInfo.vue
index f834f372..4dde3ec6 100644
--- a/src/views/xm/core/xmTestPlan/XmTestPlanInfo.vue
+++ b/src/views/xm/core/xmTestPlan/XmTestPlanInfo.vue
@@ -27,13 +27,14 @@
+ 统计
打印
配置报告
-
+
@@ -60,7 +61,8 @@ import { mapGetters } from 'vuex'
import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//修改界面
import XmQuestionMng from '@/views/xm/core/xmQuestion/XmQuestionMng';//修改界面
import { initDicts } from '@/api/xm/core/xmTestPlan';
-
+import { listXmTestPlan,calcXmTestPlan } from '@/api/xm/core/xmTestPlan';
+
export default {
name:'xmTestCasedbMng',
components: {
@@ -143,6 +145,18 @@ export default {
},
print(){
this.$refs['rpt'].showPrint()
+ },
+ calcRptData(){
+ var row=this.xmTestPlan
+ calcXmTestPlan({id:row.id}).then(res=>{
+ var tips=res.data.tips
+ this.$notify({position:'bottom-left',showClose:true,message:tips.msg,type:tips.isOk?'success':'error'})
+ if(tips.isOk){
+ listXmTestPlan({id:row.id}).then(res2=>{
+ this.xmTestPlan=res2.data.data[0]
+ })
+ }
+ })
}
},//end methods