index.vue 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div>
  3. <add class="container normal-panel" style="margin-bottom:16px"></add>
  4. <div class="container normal-panel">
  5. <list ref="list">
  6. <template v-slot:detail="scope">
  7. <div class="inline-16">
  8. <el-button type="text" size="small" @click="$router.push({path:'/roleDetail',query:{id:scope.data.roleid}})">详 情</el-button>
  9. </div>
  10. </template>
  11. <template v-slot:edit="scope">
  12. <el-button v-if="tool.checkAuth($route.name,'update')" type="text" size="small" @click="$router.push({path:'/roleEdit',query:{id:scope.data.roleid,usertype:scope.data.usertype}})">编 辑</el-button>
  13. </template>
  14. </list>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import list from './modules/list.vue'
  20. import add from './modules/add_role.vue'
  21. export default {
  22. components:{
  23. list,
  24. add
  25. },
  26. data () {
  27. return {
  28. row:{}
  29. }
  30. },
  31. methods:{
  32. },
  33. mounted () {
  34. }
  35. }
  36. </script>
  37. <style>
  38. </style>