mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 20:35:26 +08:00
feat(公共链接): 公共链接跳转支持返回
This commit is contained in:
parent
8eaaf7e0fe
commit
0374fbc2dc
@ -3,7 +3,16 @@
|
|||||||
v-show="existLinkage"
|
v-show="existLinkage"
|
||||||
class="bar-main"
|
class="bar-main"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
|
v-show="isPublicLink && !isNewBlank"
|
||||||
|
class="bar-main-left"
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
@click="back2Last"
|
||||||
|
><i class="icon iconfont el-icon-back" />{{ $t('chart.back') }}</el-button>
|
||||||
|
</div>
|
||||||
|
<div class="bar-main-right">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="warning"
|
type="warning"
|
||||||
@ -28,6 +37,12 @@ export default {
|
|||||||
})
|
})
|
||||||
return linkageFiltersCount
|
return linkageFiltersCount
|
||||||
},
|
},
|
||||||
|
isPublicLink() {
|
||||||
|
return this.$router.currentRoute.path === '/delink'
|
||||||
|
},
|
||||||
|
isNewBlank() {
|
||||||
|
return window.history.length === 1
|
||||||
|
},
|
||||||
...mapState([
|
...mapState([
|
||||||
'componentData'
|
'componentData'
|
||||||
])
|
])
|
||||||
@ -36,23 +51,40 @@ export default {
|
|||||||
clearAllLinkage() {
|
clearAllLinkage() {
|
||||||
this.$store.commit('clearPanelLinkageInfo')
|
this.$store.commit('clearPanelLinkageInfo')
|
||||||
bus.$emit('clear_panel_linkage', { viewId: 'all' })
|
bus.$emit('clear_panel_linkage', { viewId: 'all' })
|
||||||
|
},
|
||||||
|
back2Last() {
|
||||||
|
debugger
|
||||||
|
this.$router.back(-1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.bar-main{
|
.bar-main {
|
||||||
position: absolute;
|
display: flex;
|
||||||
|
div {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 10;
|
||||||
|
height: 20px;
|
||||||
|
border-radius:2px;
|
||||||
|
padding-left: 3px;
|
||||||
|
padding-right: 0px;
|
||||||
|
cursor:pointer!important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.bar-main-right{
|
||||||
right: 0px;
|
right: 0px;
|
||||||
z-index: 10;
|
|
||||||
height: 20px;
|
|
||||||
border-radius:2px;
|
|
||||||
padding-left: 3px;
|
|
||||||
padding-right: 0px;
|
|
||||||
cursor:pointer!important;
|
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
/*background-color: #0a7be0;*/
|
}
|
||||||
|
|
||||||
|
.bar-main-left {
|
||||||
|
left: 0px;
|
||||||
|
opacity: 0;
|
||||||
|
height: fit-content;
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user