33 lines
638 B
Vue
33 lines
638 B
Vue
<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>
|