diff --git a/src/views/xm/rpt/CompsCard.vue b/src/views/xm/rpt/CompsCard.vue index d11a179c..2e90d4b9 100644 --- a/src/views/xm/rpt/CompsCard.vue +++ b/src/views/xm/rpt/CompsCard.vue @@ -244,12 +244,9 @@ export default { this.compCfgList=JSON.parse(JSON.stringify(this.initCompCfg)) } }, - onCompSelect(comp){ - if(!comp.id){ - comp.id=comp.compId - } - if(this.compCfgList.some(k=>k.compId==comp.compId)){ - var compCfg=this.compCfgList.find(k=>k.compId==comp.compId) + onCompSelect(comp){ + if(this.compCfgList.some(k=>k.id==comp.id)){ + var compCfg=this.compCfgList.find(k=>k.id==comp.id) this.$nextTick(()=>{ this.scrollToComp(compCfg) }) @@ -269,7 +266,7 @@ export default { this.$nextTick(()=>{ setTimeout(()=>{ this.scrollToComp(compCfg) - },100) + },200) }) }, diff --git a/src/views/xm/rpt/product/questionSort.vue b/src/views/xm/rpt/product/questionSort.vue index f526ed37..dc6de767 100644 --- a/src/views/xm/rpt/product/questionSort.vue +++ b/src/views/xm/rpt/product/questionSort.vue @@ -7,7 +7,7 @@
- + diff --git a/src/views/xm/rpt/testCase/testCaseSort.vue b/src/views/xm/rpt/testCase/testCaseSort.vue index d2538452..531a979a 100644 --- a/src/views/xm/rpt/testCase/testCaseSort.vue +++ b/src/views/xm/rpt/testCase/testCaseSort.vue @@ -38,7 +38,7 @@ - + @@ -327,7 +327,7 @@ } },//end method mounted() { - initSimpleDicts('all',['caseStatus','testType','priority','bugType'] ).then(res=>{ + initSimpleDicts('all',['testCaseStatus','testType','priority','bugType'] ).then(res=>{ this.dicts=res.data.data; }) this.initData();