<template>
  <div>
    <add class="container normal-panel" style="margin-bottom:16px"></add>
    <div class="container normal-panel">
      <list ref="list">
        <template v-slot:detail="scope">
          <div class="inline-16">
            <el-button type="text" size="small" @click="$router.push({path:'/roleDetail',query:{id:scope.data.roleid}})">详 情</el-button>
          </div>
        </template>
        <template v-slot:edit="scope">
          <el-button v-if="tool.checkAuth($route.name,'update')" type="text" size="small" @click="$router.push({path:'/roleEdit',query:{id:scope.data.roleid}})">编 辑</el-button>
        </template>   
      </list>
    </div>
  </div>
</template>

<script>
import list from './modules/list.vue'
import add from './modules/add_role.vue'

export default {
  components:{
    list,
    add
  },
  data () {
    return {
      row:{}
    }
  },
  methods:{
    
  },
  mounted () {
  }
}

</script>
<style>
</style>