lists.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <th class="text-center">派发时间</th>
  29. <th class="text-center">执行人</th>
  30. </tr>
  31. {notempty name="lists"}
  32. {volist name="lists" id="v"}
  33. <tr data-url="{:url('Todo/detail',['id'=>$v['id'],'orgId'=>$orgId])}" onclick="gotourl(this)">
  34. <td>
  35. {eq name="v['mode']" value="1"}报修{/eq}
  36. {eq name="v['mode']" value="2"}保洁{/eq}
  37. {eq name="v['mode']" value="3"}运送{/eq}
  38. {eq name="v['mode']" value="4"}隐患预警{/eq}
  39. </td>
  40. <td>{$v.status}</td>
  41. <td>{$v.dep}</td>
  42. <td>{$v.content}</td>
  43. <td>{$v.create_time}</td>
  44. <td>{$v.send_time}</td>
  45. <td>{$v.names}</td>
  46. </tr>
  47. {/volist}
  48. {else /}
  49. <tr>
  50. <td colspan="7">暂无数据</td>
  51. </tr>
  52. {/notempty}
  53. </table>
  54. <p><br></p>
  55. </div>
  56. <script src="/static/jquery-1.11.3.min.js"></script>
  57. <script>
  58. function gotourl(_self) {
  59. window.location.href = $(_self).attr('data-url');
  60. }
  61. </script>
  62. </body>
  63. </html>