From fd0a3101856669ea4edaece874566f3890a9e9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 4 Feb 2023 09:52:24 +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 --- src/views/xm/rpt/CompsCard.vue | 11 ++++------- src/views/xm/rpt/product/questionSort.vue | 2 +- src/views/xm/rpt/testCase/testCaseSort.vue | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) 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();