_table.blade.php 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <table class="table table-striped table-sm table-hover" id="list">
  2. <tr class="text-center">
  3. <th>序号</th>
  4. <th>名称</th>
  5. <th>值</th>
  6. <th>描述</th>
  7. <th>操作员</th>
  8. <th>创建时间</th>
  9. <th>修改时间</th>
  10. <th>操作</th>
  11. </tr>
  12. <tr class="text-center" v-for="(configuration,i) in configurations" :key="configuration.id">
  13. <td>@{{ i+1 }}</td>
  14. <td>@{{ configuration.name }}</td>
  15. <td>@{{ configuration.value }}</td>
  16. <td>@{{ configuration.description }}</td>
  17. <td>
  18. <span v-if="configuration.operator">@{{ configuration.operator.name }}</span>
  19. </td>
  20. <td>@{{ configuration.created_at }}</td>
  21. <td>@{{ configuration.updated_at }}</td>
  22. <td>
  23. @can('系统配置-编辑')
  24. <button type="button" class="btn btn-sm btn-outline-primary" @click="edit(configuration,i)">编辑</button>
  25. @endcan
  26. @can('系统配置-删除')
  27. <button type="button" class="btn btn-sm btn-outline-danger" @click="destroy(configuration.id,i)">删除</button>
  28. @endcan
  29. </td>
  30. </tr>
  31. </table>
  32. {{$configurations->links()}}