|
@@ -2,8 +2,9 @@
|
|
|
{% block content %}
|
|
|
{%include 'inc/menu.html'%}
|
|
|
<div class="pannel">
|
|
|
- <form action="/device/stat" method="get">
|
|
|
+ <form id="f1" action="/device/stat" method="get">
|
|
|
<input type="hidden" name="type" id="type" value="{{data['input']['type']}}" />
|
|
|
+ <input type="hidden" name="method" id="method" value="maxmin" />
|
|
|
<input type="hidden" name="id" id="id" value="{{data['input']['id']}}" />
|
|
|
<select name="device" id="device">
|
|
|
{% for v in data['device'] %}
|
|
@@ -18,7 +19,8 @@
|
|
|
<input type="text" name="start" id="start" readonly class="form_datetime" value="{% if 'start' in data['search'] %}{{data['search']['start']}}{% end %}" style="width:150px;">
|
|
|
~
|
|
|
<input type="text" name="end" id="end" readonly class="form_datetime" value="{% if 'end' in data['search'] %}{{data['search']['end']}}{% end %}" style="width:150px;">
|
|
|
- <input type="submit" value="查询">
|
|
|
+ <input type="button" onclick="stat()" value="查询">
|
|
|
+ <input type="button" onclick="download()" value="下载明细报表">
|
|
|
</form>
|
|
|
<div class="box" id="main" style="width: 100%;height:400px;">
|
|
|
</div>
|
|
@@ -29,6 +31,20 @@
|
|
|
{%include 'chart/page.html'%}
|
|
|
<script type="text/javascript" src="{{static_url('pc/lib/laydate/laydate.js')}}"></script>
|
|
|
<script type="text/javascript">
|
|
|
+
|
|
|
+function download()
|
|
|
+{
|
|
|
+ $('#f1').attr('action', '/device/out');
|
|
|
+ $("#method").val('mx');
|
|
|
+ $('#f1').submit();
|
|
|
+}
|
|
|
+
|
|
|
+function stat()
|
|
|
+{
|
|
|
+ $('#f1').attr('action', '/device/stat');
|
|
|
+ $("#method").val('maxmin');
|
|
|
+ $('#f1').submit();
|
|
|
+}
|
|
|
dateTheme = '#247ed0'
|
|
|
laydate.render({
|
|
|
elem: '#start'
|