From fada0d7672d57c825358808bedc8f6d4f4571f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 6 Feb 2023 03:46:40 +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/index/CompsSet.vue | 39 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/src/views/xm/rpt/index/CompsSet.vue b/src/views/xm/rpt/index/CompsSet.vue index 2bc088c5..42b17dec 100644 --- a/src/views/xm/rpt/index/CompsSet.vue +++ b/src/views/xm/rpt/index/CompsSet.vue @@ -237,24 +237,29 @@ export default { store.dispatch("toggleSideBar",false) this.comps.forEach((k,index)=>k.index=index) //this.comps.forEach(k=>k.id=k.id?k.id:k.compId) - this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el) - if(this.category){ - this.filters.category=this.category - }else{ - if(this.xmTestPlan && this.xmTestPlan.id){ - this.filters.category="测试计划级" - }else if(this.xmIteration && this.xmIteration.id){ - this.filters.category="迭代级" - }else if(this.xmTestCasedb && this.xmTestCasedb.id){ - this.filters.category="测试库级" - }else if(this.xmProject && this.xmProject.id){ - this.filters.category="项目级" - }else if(this.xmProduct && this.xmProduct.id){ - this.filters.category="产品级" + + this.$nextTick(()=>{ + this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el) + if(this.category){ + this.filters.category=this.category }else{ - this.filters.category="企业级" - } - } + if(this.xmTestPlan && this.xmTestPlan.id){ + this.filters.category="测试计划级" + }else if(this.xmIteration && this.xmIteration.id){ + this.filters.category="迭代级" + }else if(this.xmTestCasedb && this.xmTestCasedb.id){ + this.filters.category="测试库级" + }else if(this.xmProject && this.xmProject.id){ + this.filters.category="项目级" + }else if(this.xmProduct && this.xmProduct.id){ + this.filters.category="产品级" + }else{ + this.filters.category="企业级" + } + } + this.datas=this.compsCpd + }) + }