dataease/frontend/src/views/panel/GrantAuth/index.vue

31 lines
579 B
Vue
Raw Normal View History

2021-03-17 11:22:18 +08:00
<template>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="部门" name="first">部门</el-tab-pane>
<el-tab-pane label="角色" name="second">角色</el-tab-pane>
<el-tab-pane label="用户" name="third">用户</el-tab-pane>
</el-tabs>
</template>
<script>
export default {
name: 'GrantAuth',
props: {
resourceId: {
type: String,
default: null
}
},
data() {
return {
activeName: 'second'
}
},
methods: {
handleClick(tab, event) {
console.log(tab, event)
}
}
}
</script>