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) + } } } });