stat.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {%include '../inc/header.html'%}
  5. </head>
  6. <body>
  7. {%set data['topName'] = data['info']['name'] %}
  8. {%set data['topUrl'] = '/device' %}
  9. {%include '../inc/top.html'%}
  10. <form action="/device/stat" method="get">
  11. <input type="hidden" name="type" id="type" value="{{data['input']['type']}}" />
  12. <input type="hidden" name="id" id="id" value="{{data['input']['id']}}" />
  13. <input type="hidden" name="method" id="method" value="maxmin" />
  14. <section class="has-bbar">
  15. <div class="form-group-head">设备选择</div>
  16. <ul>
  17. <li class="form-input">
  18. <label>
  19. <select name="device" id="device">
  20. {% for v in data['device'] %}
  21. <option value="{{v['id']}}" {% if 'device' in data['search'] and data['search']['device'] == v['id'] %}selected{% end %}>{{v['name']}}</option>
  22. {% end %}
  23. </select>
  24. </label>
  25. </li>
  26. <li class="form-input">
  27. <label>
  28. <select name="group" id="group" {% if 'start' in data['search'] or 'end' in data['search'] %}style="display:none;"{% end %}>
  29. {% for v in data['group'] %}
  30. <option value="{{v['id']}}" {% if 'group' in data['search'] and data['search']['group'] == v['id'] %}selected{% end %}>{{v['name']}}</option>
  31. {% end %}
  32. </select>
  33. </label>
  34. </li>
  35. </ul>
  36. <input type="submit" name="" class="button primary btn-mt btn-mb" value="查看曲线">
  37. <div class="form-group-head">周期曲线</div>
  38. <section id="main" style="width: 100%;height:400px;">
  39. </section>
  40. </section>
  41. </form>
  42. {%include 'inc/menu.html'%}
  43. {%include '../inc/script.html'%}
  44. {%include 'chart/page.html'%}
  45. </body>
  46. </html>