boom-light-ui/src/views/bst/booth/components/BoothLink.vue

33 lines
638 B
Vue
Raw Normal View History

<template>
<base-link :id="id" :text="text" :size="size" @click="handleClick" :permissions="['bst:booth:query']"/>
</template>
<script>
import BaseLink from "@/components/BaseLink/index.vue";
export default {
name: 'BoothLink',
components: {BaseLink},
props: {
id: {
type: String,
default: null
},
text: {
type: String,
default: null,
},
size: {
type: String,
default: "small"
}
},
methods: {
handleClick() {
if (this.id != null && this.checkPermi(['bst:booth:query'])) {
this.$router.push(`/view/booth/${this.id}`);
}
}
}
}
</script>