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 @@
-