diff --git a/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue b/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue
index a8a36cac..22e8eba4 100644
--- a/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue
+++ b/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue
@@ -29,7 +29,7 @@
:h="item.h"
:i="item.i"
:key="index" @resize="sizeAutoChange(item)">
-
+
@@ -93,9 +93,10 @@ export default {
"xmQuestionBugStatusDist":()=>import("./biz/questionBugStatusDist.vue"),
"xmQuestionBugTypeDist":()=>import("./biz/questionBugTypeDist.vue"),
"xmQuestionRepRateDist":()=>import("./biz/questionRepRateDist.vue"),
- "xmQuestionBugSeverityDist":()=>import("./biz/questionBugSeverityDist.vue"),
- "xmQuestionPriorityDist":()=>import("./biz/questionPriorityDist.vue"),
-
+ "xmQuestionBugSeverityDist":()=>import("./biz/questionBugSeverityDist.vue"),
+ "xmQuestionSolutionDist":()=>import("./biz/questionSolutionDist.vue"),
+ "xmQuestionPriorityDist":()=>import("./biz/questionPriorityDist.vue"),
+
},
props:['xmTestPlan','rptConfigVisible'],
computed: {
@@ -122,7 +123,7 @@ export default {
})
}
- }
+ },
},
data() {
@@ -176,6 +177,13 @@ export default {
}
},
onCompSelect(comp){
+ if(this.compCfgList.some(k=>k.compId==comp.compId)){
+ var compCfg=this.compCfgList.find(k=>k.compId==comp.compId)
+ this.$nextTick(()=>{
+ this.scrollToComp(compCfg)
+ })
+ return;
+ }
var compCfgListTemp=JSON.parse(JSON.stringify(this.compCfgList))
compCfgListTemp.sort((i1,i2)=>{
return i2.i-i1.i
@@ -186,7 +194,19 @@ export default {
})
var maxY=(compCfgListTemp.length>0?(compCfgListTemp[0].y+6):0);
var compCfg={i:maxI, x: 0, y: maxY, w: 12, h: 6, compId:comp.compId,name:comp.name,id:comp.compId+seq.sn(),params:{}}
- this.compCfgList.push(compCfg)
+ this.compCfgList.push(compCfg)
+ this.$nextTick(()=>{
+ setTimeout(()=>{
+ this.scrollToComp(compCfg)
+ },100)
+ })
+
+ },
+ scrollToComp(compCfg){
+ var doc=document.getElementById(compCfg.id+'-id')
+ if(doc){
+ doc.scrollIntoView(false)
+ }
},
submitXmPrtConfig(callback){
diff --git a/src/views/xm/core/xmTestPlan/rpt/CompsSet.vue b/src/views/xm/core/xmTestPlan/rpt/CompsSet.vue
index 827e1235..e977b3b2 100644
--- a/src/views/xm/core/xmTestPlan/rpt/CompsSet.vue
+++ b/src/views/xm/core/xmTestPlan/rpt/CompsSet.vue
@@ -154,12 +154,12 @@ export default {
{
compId: 'xmQuestionRepRateDist',
icon: pieSimple,
- name: '缺陷重新频率分布',
- compDesc: '按缺陷出现频率进行分组统计',
+ name: '缺陷重现频率分布',
+ compDesc: '按缺陷重现频率进行分组统计',
isChecked: false,
},
{
- compId: 'xmQuestionBugSolutionDist',
+ compId: 'xmQuestionSolutionDist',
icon: pieSimple,
name: '缺陷解决方案分布',
compDesc: '按缺陷解决方案进行分组统计',
diff --git a/src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue b/src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue
index b941f5cc..0a8e86b8 100644
--- a/src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue
+++ b/src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue
@@ -101,7 +101,7 @@
itemId="bugSeverity"
}else if(this.filters.groupBy=='priority'){
itemId="priority"
- } else if(this.filters.groupBy=='bug_solution'){
+ } else if(this.filters.groupBy=='solution'){
itemId="bugSolution"
} else if(this.filters.groupBy=='rep_rate'){
itemId="bugRepRate"
@@ -128,7 +128,7 @@
itemId="bugSeverity"
}else if(this.filters.groupBy=='priority'){
itemId="priority"
- } else if(this.filters.groupBy=='bug_solution'){
+ } else if(this.filters.groupBy=='solution'){
itemId="bugSolution"
} else if(this.filters.groupBy=='rep_rate'){
itemId="bugRepRate"
@@ -167,7 +167,7 @@
{id:'bug_reason', name:'缺陷原因'},
{id:'bug_severity', name:'紧急程度'},
{id:'priority', name:'优先级'},
- {id:'bug_solution', name:'解决方案'},
+ {id:'solution', name:'解决方案'},
{id:'rep_rate', name:'复现频率'},
],
diff --git a/src/views/xm/core/xmTestPlan/rpt/biz/questionBugSolutionDist.vue b/src/views/xm/core/xmTestPlan/rpt/biz/questionSolutionDist.vue
similarity index 91%
rename from src/views/xm/core/xmTestPlan/rpt/biz/questionBugSolutionDist.vue
rename to src/views/xm/core/xmTestPlan/rpt/biz/questionSolutionDist.vue
index 1b88b9ee..9167b5a1 100644
--- a/src/views/xm/core/xmTestPlan/rpt/biz/questionBugSolutionDist.vue
+++ b/src/views/xm/core/xmTestPlan/rpt/biz/questionSolutionDist.vue
@@ -1,7 +1,7 @@
diff --git a/src/views/xm/core/xmTestPlan/xmTestRptOverview.vue b/src/views/xm/core/xmTestPlan/xmTestRptOverview.vue
index 227620f9..e3ea34ef 100644
--- a/src/views/xm/core/xmTestPlan/xmTestRptOverview.vue
+++ b/src/views/xm/core/xmTestPlan/xmTestRptOverview.vue
@@ -248,6 +248,9 @@ import MdpSelectUserXm from '@/views/xm/core/components/MdpSelectUserXm';//修
this.editForm.projectName=row.name
this.editForm.name=this.editForm.projectName+'-测试计划-V1.0'
},
+ sizeAutoChange(){
+
+ }
},//end method
mounted() {
this.$nextTick(() => {