patrol.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>巡更列表</title>
  9. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.min.css" />
  10. <style>
  11. tr{
  12. cursor: pointer;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div>
  18. <p><br></p>
  19. <h3 class="text-center">巡更列表</h3>
  20. <p><br></p>
  21. <table class="table table-striped text-center" style="width: 100%">
  22. <tr>
  23. <th class="text-center">任务名称</th>
  24. <th class="text-center">开始时间</th>
  25. <th class="text-center">结束时间</th>
  26. <th class="text-center">状态</th>
  27. <th class="text-center">执行人</th>
  28. </tr>
  29. {notempty name="lists"}
  30. {volist name="lists" id="v"}
  31. <tr data-url="{:url('Todo/pdetail',['id'=>$v['id'],'orgId'=>$orgId])}" onclick="gotourl(this)">
  32. <td>{$v.title}</td>
  33. <td>{$v.start_time}</td>
  34. <td>{$v.end_time}</td>
  35. <td>
  36. {eq name="v['status']" value="0"}未执行{/eq}
  37. {eq name="v['status']" value="1"}执行中{/eq}
  38. {eq name="v['status']" value="2"}已完成{/eq}
  39. {eq name="v['status']" value="3"}未完成{/eq}
  40. {eq name="v['status']" value="5"}中断{/eq}
  41. {eq name="v['status']" value="6"}已关闭{/eq}
  42. </td>
  43. <td>{$v.users}</td>
  44. </tr>
  45. {/volist}
  46. {else /}
  47. <tr>
  48. <td colspan="5">暂无数据</td>
  49. </tr>
  50. {/notempty}
  51. </table>
  52. <p><br></p>
  53. </div>
  54. <script src="/static/jquery-1.11.3.min.js"></script>
  55. <script>
  56. function gotourl(_self) {
  57. window.location.href = $(_self).attr('data-url');
  58. }
  59. </script>
  60. </body>
  61. </html>