logs.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {% extends "../theme.html" %}
  2. {% block content %}
  3. <link href="{{static_url('pc/css/logs.css')}}" rel="stylesheet">
  4. {%include 'inc/menu.html'%}
  5. <div class="left w-half">
  6. <div class="pannel">
  7. <h2 class="nm">设备日志({{data['page']['totalNum']}})</h2>
  8. {% if data['logs'] %}
  9. <ul class="logs">
  10. {% for v in data['logs'] %}
  11. <li><h3>{{v['type']}}</h3><p>{{v['content']}}</p><p class="time">{{v['cdates']}}</p></li>
  12. {% end %}
  13. </ul>
  14. {% else %}
  15. 暂无日志
  16. {% end %}
  17. </div>
  18. {%set url = data['url']['log'] %}
  19. {%include '../inc/page.html'%}
  20. </div>
  21. <div class="right w-half">
  22. <div class="pannel">
  23. <h2 class="nm">设备清单</h2>
  24. <ul class="grid">
  25. <li class="th"><span>设备名称</span><span class="t-c">数量</span><span class="t-r">日期</span></li>
  26. {% for v in data['list'] %}
  27. <li><span>{{v['name']}}</span><span class="t-c">{{v['num']}}</span><span class="t-r">{{v['cdate']}}</span></li>
  28. {% end %}
  29. </ul>
  30. </div>
  31. {% if 'pic' in data['info'] and data['info']['pic'] %}
  32. <div class="pannel">
  33. <h2>设备分布图纸</h2>
  34. <a href="{{data['info']['pic']}}" target="_blank"><img src="{{data['info']['pic']}}" width="100%" alt="点击查看大图"></a>
  35. </div>
  36. {% end %}
  37. </div>
  38. {% end %}