index.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <script type="text/javascript" src="__static__/js/jquery-1.10.2.min.js"></script>
  6. <link rel="stylesheet" href="__static__/css/bootstrap.min.css">
  7. <script type="text/javascript" src="__static__/js/bootstrap.min.js"></script>
  8. <title></title>
  9. </head>
  10. <body>
  11. <div class="mainbox" style="padding: 20px;">
  12. <div class="page-toolbar">
  13. <div class="btn">
  14. <a href="{:url('add')}" class="btn btn-primary"><i class="aicon ai-tianjia">新增</i></a>
  15. </div>
  16. </div>
  17. <form id="pageListForm">
  18. <div class="layui-form">
  19. <table class="table table-bordered table-striped " lay-even="" lay-skin="row">
  20. <thead>
  21. <th>命令id</th>
  22. <th>设备id</th>
  23. <th>发送状态</th>
  24. <th>添加时间</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. {volist name="data_list" id="vo"}
  29. <tr>
  30. <td>{$vo['commandId']}</td>
  31. <td class="font12">{$vo['IMEI']}</td>
  32. <td>{$vo['status']}</td>
  33. <td>{$vo['addtime']}</td>
  34. </tr>
  35. {/volist}
  36. </tbody>
  37. </table>
  38. {$pages}
  39. </div>
  40. </form>
  41. </div>
  42. <script>
  43. function del(id){
  44. var msg = "确定要删除该设备吗";
  45. if (confirm(msg)==true){
  46. window.location.href='{:url("index")}';
  47. return false;
  48. }else{
  49. return false;
  50. }
  51. }
  52. function status(iot_id){
  53. /* $.post('{:url("status")}',{iot_id:iot_id},function(res){
  54. alert(res);
  55. });
  56. */
  57. alert(iot_id);
  58. }
  59. </script>
  60. </body>
  61. </html>