D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore
2019-01-18 2fe250ece8de95b3f70172fe5b45793ab6a3084a
gx_tieta/WebRoot/batt-traffic-statistics1.jsp
@@ -15,7 +15,7 @@
      <meta http-equiv="expires" content="0">    
      <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
      <meta http-equiv="description" content="This is my page">
       <title>机房流量统计查询</title>            <!--流量统计-->
       <title>设备流量统计查询</title>            <!--设备流量统计查询-->
      <link rel="stylesheet" type="text/css" href="pages/css/base.css">
      <link rel="stylesheet" type="text/css" href="jqueryui/jquery-ui.css">
       <link rel="stylesheet" type="text/css" href="src/css/layui.css">
@@ -41,7 +41,7 @@
        <div class="layui-page-container">
           <!-- 条件筛选 -->
            <div class="layui-page-filter">
                <div class="page-filter-header layui-page-filter-fweight">机房流量统计查询</div>
                <div class="page-filter-header layui-page-filter-fweight">设备流量统计查询</div>
                <div class="page-filter-content">
                    <table>
                        <tr class="layui-page-filter-tbl-header layui-page-filter-fweight">
@@ -210,6 +210,9 @@
            });
            
            
            var isNewLoad = true;
            var pre_province = getQueryString('province');
            // 查询省下拉框
            searchProvince();
            // 查询省
@@ -232,6 +235,9 @@
                        for(var i=0; i<data.length; i++) {
                           var _data = data[i];
                           var _tmp = getLayuiSelect(_data, _data, {}, {});
                           if(pre_province == _data && isNewLoad){
                              _tmp = getLayuiSelect(_data, _data, {}, {},true);
                           }
                           list.push(_tmp);
                        }
                     }else {
@@ -260,6 +266,7 @@
               var tmp = {
                  StationName1: $("#province").val()
               };
               var pre_city = getQueryString('city');
               // 根据构造条件查询内容
               $.ajax({
                  type: 'post',
@@ -278,6 +285,9 @@
                        for(var i=0; i<data.length; i++) {
                           var _data = data[i];
                           var _tmp = getLayuiSelect(_data.StationName2, _data.StationName2, {}, _data);
                           if(pre_city == _data.StationName2 && isNewLoad){
                              _tmp = getLayuiSelect(_data.StationName2, _data.StationName2, {}, _data,true);
                           }
                           list.push(_tmp);
                        }
                     }else {
@@ -312,6 +322,7 @@
               if(isLoad) {
                  filterLoad = layer.load();
               }
               var pre_county = getQueryString('county');
               // 根据构造条件查询内容
               $.ajax({
                  type: 'post',
@@ -331,6 +342,9 @@
                        for(var i=0; i<data.length; i++) {
                           var _data = data[i];
                           var _tmp = getLayuiSelect(_data.StationName5, _data.StationName5, {}, _data);
                           if(pre_county ==  _data.StationName5 && isNewLoad){
                              _tmp = getLayuiSelect(_data.StationName5, _data.StationName5, {}, _data,true);
                           }
                           //console.info(_tmp);
                           list.push(_tmp);
                        }
@@ -362,6 +376,8 @@
                  StationName2:$("#city").val(),
                  StationName5:$("#county").val(),
               };
               var pre_home = getQueryString('home');
               var auto_seach = false;
               // 根据构造条件查询内容
               $.ajax({
                  type: 'post',
@@ -384,15 +400,23 @@
                              dev_id: _data.FBSDeviceId
                           };
                           var _tmp = getLayuiSelect(_data.StationName, _data.StationName3, _attr, _data);
                           if(pre_home == _data.StationName && isNewLoad){
                              _tmp = getLayuiSelect(_data.StationName, _data.StationName3, _attr, _data,true);
                              auto_seach = true;
                           }
                           list.push(_tmp);
                        }
                     }else {
                        list.push(getLayuiSelect('暂无机房', '', {}, undefined));
                     }
                     // 根据对象数组生成下拉列表
                     createLayuiSelect(ele, list);
                     form.render('select', 'homeFilter');
                     if(auto_seach){
                        var temp = createSearchForm();
                        sTblData(temp);
                     }
                     isNewLoad = false;
                     
                  }
               });
@@ -457,7 +481,7 @@
                     layer.close(loading);
                     // 解析获取的json
                     var rs = JSON.parse(result.result);
                     console.info(rs);
                     //console.info(rs);
                     // 初始化数据结果
                     tOptions.data = [];
                     if(rs.code == 1) {
@@ -569,6 +593,7 @@
            
            // 获取生成折线图的配置项
            function getlineGraphOpts(data, type) {
               //console.log(data);
               var rs = {
                  xdata:[],
                  sdata: [],
@@ -591,7 +616,7 @@
                     rs.unit = "M";
                  break;
               }
               console.log(rs);
               //console.log(rs);
               return rs;
            }
           });