logs.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {%include '../inc/header.html'%}
  5. <link href="{{static_url('mobile/css/logs.css')}}" rel="stylesheet">
  6. </head>
  7. <body>
  8. {%set data['topName'] = data['info']['name'] %}
  9. {%set data['topUrl'] = '/device' %}
  10. {%include '../inc/top.html'%}
  11. <section class="has-bbar">
  12. <h2 class="common-tit">设备日志记录</h2>
  13. <div class="form-group-head">设备清单</div>
  14. <ul>
  15. <li class="form-th">
  16. <p>设备名称</p>
  17. <p class="txt-m">数量</p>
  18. <p class="txt-m">日期</p>
  19. </li>
  20. {% for v in data['list'] %}
  21. <li class="form-tr">
  22. <p>{{v['name']}}</p>
  23. <p class="ora txt-m">{{v['num']}}</p>
  24. <p class="txt-m">{{v['cdate']}}</p>
  25. </li>
  26. {% end %}
  27. </ul>
  28. {% if 'pic' in data['info'] and data['info']['pic'] %}
  29. <div class="form-group-head">设备分布图纸</div>
  30. <section>
  31. <img src="{{data['info']['pic']}}" width="100%">
  32. </section>
  33. {% end %}
  34. {% if data['logs'] %}
  35. <div class="form-group-head">设备日志</div>
  36. <section id="dever-list">
  37. {% for v in data['logs'] %}
  38. <dl class="msg-card">
  39. <dt><span class="warn">{{v['type']}}</span></dt>
  40. <dd>{{v['content']}}</dd>
  41. <dd class="date">{{v['cdates']}}</dd>
  42. </dl>
  43. {% end %}
  44. </section>
  45. {% end %}
  46. </section>
  47. {%include 'inc/menu.html'%}
  48. {%include '../inc/script.html'%}
  49. {%set url = data['url']['log'] %}
  50. {%include '../inc/page.html'%}
  51. </body>
  52. </html>