list2.blade.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @section('title', '设备列表')
  2. @section('header')
  3. <h3>设备列表</h3>
  4. @endsection
  5. @section('table')
  6. <table class="layui-table" lay-even lay-skin="nob">
  7. <tbody>
  8. @foreach($data as $value)
  9. <div style="width: 5px;height: 5px;">
  10. <td style="border-radius: 50%;text-align:center;line-height:5px;padding:3px 3px;background: #F72029;color: #ffffff;">{{$value['id']}}</td>
  11. </div>
  12. <td style="color: #6B6A6B;">{{$value['device']}}</td>
  13. </tr>
  14. @endforeach
  15. </tbody>
  16. </table>
  17. @endsection
  18. @section('js')
  19. {{--<script src="/static/admin/layui/layui.js"></script>
  20. <script src="/static/admin/layui/lay/modules/jquery.js"></script>--}}
  21. <script>
  22. layui.use(['form', 'jquery','laydate', 'layer'], function() {
  23. var form = layui.form(),
  24. $ = layui.jquery,
  25. laydate = layui.laydate,
  26. layer = layui.layer
  27. ;
  28. laydate({istoday: true});
  29. form.render();
  30. form.on('submit(formDemo)', function(data) {
  31. console.log(data);
  32. });
  33. });
  34. /* layer.open({
  35. type: 2,
  36. area:["500px","400px"],
  37. content: "list.html"
  38. })*/
  39. </script>
  40. @endsection
  41. @extends('common.list')