123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="format-detection" content="telephone=no">
- <script>!function(){var e;e=function(e){return function(e,t){function i(){var t=r.getBoundingClientRect().width;t/m>540&&(t=540*m);var i=t/16;r.style.fontSize=i+"px",d.rem=e.rem=i}var a,n=e.document,r=n.documentElement,o=n.querySelector('meta[name="viewport"]'),l=n.querySelector('meta[name="flexible"]'),m=0,s=0,d=t.flexible||(t.flexible={});if(o){console.warn("将根据已有的meta标签来设置缩放比例");var c=o.getAttribute("content").match(/initial\-scale=([\d\.]+)/);c&&(s=parseFloat(c[1]),m=parseInt(1/s))}else if(l){var p=l.getAttribute("content");if(p){var u=p.match(/initial\-dpr=([\d\.]+)/),f=p.match(/maximum\-dpr=([\d\.]+)/);u&&(m=parseFloat(u[1]),s=parseFloat((1/m).toFixed(2))),f&&(m=parseFloat(f[1]),s=parseFloat((1/m).toFixed(2)))}}if(!m&&!s){var v=(e.navigator.appVersion.match(/android/gi),e.navigator.appVersion.match(/iphone/gi)),h=e.devicePixelRatio;m=v?h>=3&&(!m||m>=3)?3:h>=2&&(!m||m>=2)?2:1:1,s=1/m}if(r.setAttribute("data-dpr",m),!o)if(o=n.createElement("meta"),o.setAttribute("name","viewport"),o.setAttribute("content","initial-scale="+s+", maximum-scale="+s+", minimum-scale="+s+", user-scalable=no"),r.firstElementChild)r.firstElementChild.appendChild(o);else{var x=n.createElement("div");x.appendChild(o),n.write(x.innerHTML)}e.addEventListener("resize",function(){clearTimeout(a),a=setTimeout(i,300)},!1),e.addEventListener("pageshow",function(e){e.persisted&&(clearTimeout(a),a=setTimeout(i,300))},!1),"complete"===n.readyState?n.body.style.fontSize=12*m+"px":n.addEventListener("DOMContentLoaded",function(e){n.body.style.fontSize=12*m+"px"},!1),i(),d.dpr=e.dpr=m,d.refreshRem=i,d.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"==typeof e&&e.match(/rem$/)&&(t+="px"),t},d.px2rem=function(e){var t=parseFloat(e)/this.rem;return"string"==typeof e&&e.match(/px$/)&&(t+="rem"),t}}(window,window.lib||(window.lib={})),e}()}();
- </script>
- <link rel="stylesheet" type="text/css" href="../build/p/my/style.css">
-
- </head>
- <style>
- #search_method,#search_time
- {
- display:none;
- }
- </style>
- <body>
- <div class="header">
- <ul class="nav clearfix">
- <li class="active"><a href="" title="">设备名称</a></li>
- </ul>
- <a href="index.html" class="back"></a>
- </div>
- <div id="device_data" style="display:none;"></div>
- <div class="container equip data">
- <div class="title">数据统计</div>
- <div id="container" style="min-widths:700px;height:400px;margin-bottom:0px;"></div>
- <div class="show_select">
- <select class="start-time">
- <option>开始时间</option>
- </select>
- <select class="end-time">
- <option>结束时间</option>
- </select>
- <select class="args">
- <option>查询参数</option>
- </select>
- <div class="submit-btn" id="J_submitBtn">提交</div>
- </div>
- <div class="business-list three-list data clearfix">
- <div class="business-item">
- <div class="num">28℃</div>
- <div class="name">平均温度</div>
- </div>
- <div class="business-item">
- <div class="num">85%rh</div>
- <div class="name">平均湿度</div>
- </div>
- <div class="business-item">
- <div class="num">20m/s</div>
- <div class="name">平均风速</div>
- </div>
- </div>
-
-
- </div>
- <div class="footer clearfix image">
- <a href="equip.html" class="item">设备控制</a>
- <a href="data.html" class="item">数据统计</a>
- <a href="log.html" class="item active">设备记录</a>
- </div>
- <input type="hidden" value="" id="search_header" />
-
- <script src="http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
- <script type="text/javascript" src="../date/WdatePicker.js"></script>
- <script type="text/javascript" src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
- <script id="push">
- var Maze_Data = {};
- Maze_Data.cate = ['1月', '2月', '3月', '4月', '5月', '6月','7月', '8月', '9月', '10月', '11月', '12月'];
- Maze_Data.dw = 'pa';
- Maze_Data.name = 'name';
- Maze_Data.data = [{
- name: '1号',
- color: '#f05a41',
- data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
- }, {
- name: '2号',
- color: '#0263ee',
- data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
- }];
- </script>
- <script type="text/javascript">
- $(function () {
- var chart = new Highcharts.Chart({
- chart: {
- renderTo: 'container',
- type: 'spline'
- },
- title: {
- text: null
- },
- credits: {
- enabled: false
- },
- exporting: {
- enabled: false
- },
- xAxis: {
- type: 'datetime',
- dateTimeLabelFormats: {
- millisecond: '%H:%M:%S.%L',
- second: '%H:%M:%S',
- minute: '%H:%M',
- hour: '%H:%M',
- day: '%e. %b',
- week: '%e. %b',
- month: '%b \'%y',
- year: '%Y'
- }
- },
- yAxis: {
- title: {
- text: ''
- }
- },
- tooltip: {
- formatter: function()
- {
- return '<b>'+ Maze_Data.name +'</b><br/>'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) +'<br />'+ this.y +' ' + Maze_Data.dw;
- }
- },
- series: Maze_Data.data
- });
- $('#J_submitBtn').bind('click', function()
- {
- var start = $("#search_start").val();
- var end = $("#search_end").val();
- var type = $("#search_type").val();
- var method = $("#search_method").val();
- var time = $("#search_time_value").val();
- var header = $("#search_header").val();
- var url = Maze_Data.url + '&start=' + start + '&end=' + end + '&type=' + type + '&method=' + method + '&time=' + time;
- if(header)
- {
- url += '&header=' + header;
- }
- location.href = url;
- });
- });
- function time()
- {
- var value = $("#search_time").val();
- if(value)
- {
- var temp = value.split('||');
- $("#search_start").val(temp[0]);
- $("#search_end").val(temp[1]);
- $("#search_method").val(temp[2]);
- $("#search_time_value").val(temp[3]);
- $("#J_submitBtn").click();
- }
- }
- </script>
- </body>
- </html>
|