From a2d6a4f1a8aacf2c3abdfc619f9babad39296fe0 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Mon, 2 Feb 2026 17:12:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[=E8=AF=95=E9=AA=8C=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E5=A4=9A=E6=A0=87=E7=AD=BE=E9=A1=B5=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=E8=AF=95=E9=AA=8C=E6=96=B9=E6=B3=95=E6=B2=A1=E8=B7=B3?= =?UTF-8?q?=E8=BD=ACtab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/form/nonTrial/comp/tbbdList.vue | 9 ++++++++- src/views/business/form/nonTrial/comp/ytbdList.vue | 9 ++++++++- src/views/business/study/comp/jhbdList.vue | 9 ++++++++- src/views/business/study/comp/tbbdList.vue | 9 ++++++++- src/views/business/study/comp/ytbdList.vue | 10 ++++++++-- 5 files changed, 40 insertions(+), 6 deletions(-) diff --git a/src/views/business/form/nonTrial/comp/tbbdList.vue b/src/views/business/form/nonTrial/comp/tbbdList.vue index 91e33f3..e85876f 100644 --- a/src/views/business/form/nonTrial/comp/tbbdList.vue +++ b/src/views/business/form/nonTrial/comp/tbbdList.vue @@ -338,7 +338,14 @@ export default { if(this.$route.path===data.toUrl){ this.$emit('changeTab',{key:'syff'}) }else{ - this.$tab.openPage("loading", data.toUrl) + let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{ + return tab.path === data.toUrl + }) + if(index>-1){ + this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); + }else{ + this.$tab.openPage("loading", data.toUrl) + } } } }); diff --git a/src/views/business/form/nonTrial/comp/ytbdList.vue b/src/views/business/form/nonTrial/comp/ytbdList.vue index 924760c..4d87a85 100644 --- a/src/views/business/form/nonTrial/comp/ytbdList.vue +++ b/src/views/business/form/nonTrial/comp/ytbdList.vue @@ -373,7 +373,14 @@ export default { if(this.$route.path===data.toUrl){ this.$emit('changeTab',{key:'syff'}) }else{ - this.$tab.openPage("loading", data.toUrl) + let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{ + return tab.path === data.toUrl + }) + if(index>-1){ + this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); + }else{ + this.$tab.openPage("loading", data.toUrl) + } } } }); diff --git a/src/views/business/study/comp/jhbdList.vue b/src/views/business/study/comp/jhbdList.vue index ed077d8..5d87cfc 100644 --- a/src/views/business/study/comp/jhbdList.vue +++ b/src/views/business/study/comp/jhbdList.vue @@ -194,7 +194,14 @@ export default { if(this.$route.path===data.toUrl){ this.$emit('changeTab',{key:'syff'}) }else{ - this.$tab.openPage("loading", data.toUrl) + let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{ + return tab.path === data.toUrl + }) + if(index>-1){ + this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); + }else{ + this.$tab.openPage("loading", data.toUrl) + } } } }); diff --git a/src/views/business/study/comp/tbbdList.vue b/src/views/business/study/comp/tbbdList.vue index 80e6cef..7687bed 100644 --- a/src/views/business/study/comp/tbbdList.vue +++ b/src/views/business/study/comp/tbbdList.vue @@ -389,7 +389,14 @@ export default { if(this.$route.path===data.toUrl){ this.$emit('changeTab',{key:'syff'}) }else{ - this.$tab.openPage("loading", data.toUrl) + let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{ + return tab.path === data.toUrl + }) + if(index>-1){ + this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); + }else{ + this.$tab.openPage("loading", data.toUrl) + } } } }); diff --git a/src/views/business/study/comp/ytbdList.vue b/src/views/business/study/comp/ytbdList.vue index 0200a03..84dcc11 100644 --- a/src/views/business/study/comp/ytbdList.vue +++ b/src/views/business/study/comp/ytbdList.vue @@ -369,11 +369,17 @@ export default { this.$alert(data.ffmc, '', { confirmButtonText: this.$t('page.business.study.studyMethod.qyd'), callback: action => { - debugger if(this.$route.path===data.toUrl){ this.$emit('changeTab',{key:'syff'}) }else{ - this.$tab.openPage("loading", data.toUrl) + let index = _.findIndex(this.$store.state.tagsView.visitedViews,(tab)=>{ + return tab.path === data.toUrl + }) + if(index>-1){ + this.$tab.refreshPage(this.$store.state.tagsView.visitedViews[index]); + }else{ + this.$tab.openPage("loading", data.toUrl) + } } } });