星伟
2018-09-27 d3281891af5bf8e5069cb15b1f9c1d6a14c212c6
gx_tieta/WebRoot/index.jsp
@@ -29,6 +29,7 @@
   <script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
   <link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
   <link href="css/basic.css" type="text/css" rel="stylesheet" />
   <link href="css/common.css" type="text/css" rel="stylesheet" />
   <link href="css/index_layout.css" type="text/css" rel="stylesheet" />
   <link rel="stylesheet" href="css/img-change.css">
   <link rel="stylesheet" href="css/confirm.css">
@@ -92,9 +93,6 @@
      <div id="content">
         <div class="nav-map small">
            <!-- 电池分布图 -->
            <div class="side-bar abs">
               <div class="lside"></div>
            </div>
            <div class="china-map" id="map">
               <div class="img-change" style="display:none;">
                  <div class="img-list">
@@ -309,6 +307,7 @@
   <div class="clear"></div>
   <script type="text/javascript" src="pages/js/base.js"></script>
   <script type="text/javascript" src="pages/js/common.js"></script>
   <script type="text/javascript" src="pages/js/pages/siderbar.js"></script>
   <script type="text/javascript" src="js/panel.js"></script>
   <script type="text/javascript" src="js/search.js"></script>
   <script type="text/javascript" src="js/changePinYin.js"></script>
@@ -398,11 +397,6 @@
      $('#main .del-module').remove();   //移除class="del-module"的内容
      //根据饼状图的数量确定位置和大小
      getMapHt();
      $('.side-bar').resizable({
         minWidth: 190,
         maxWidth: 500
      });
      /* switch(pieLen){
         case 0:
            $('#main .china-map').remove();
@@ -674,7 +668,7 @@
   
            createIconExplain($('#map'));
            
            searchAllProvince();   // 生成维护区列表
            //searchAllProvince();   // 生成维护区列表
            /* addCommonDotHome(commonDot);
            createWarnDot(map, warnDotList);
            dischargeTimeOut(map, dischargeDotList);
@@ -1600,14 +1594,12 @@
   function createMapDot(map, dotList) {
      // 清空覆盖物和对应的mk点
      mkList = [];
      // 遍历查询内容生成对应的图标
      for(var i = 0; i < dotList.length; i++) {
         var dotIcon = new BMap.Icon(getMapStateImg(mapImages, dotList[i].msg), new BMap.Size(36, 30));   // 设置图片
         var dotIcon = new BMap.Icon(getMapStateImg(mapImages, dotList[0].msg), new BMap.Size(36, 30));   // 设置图片
         var pt = new BMap.Point(dotList[i].lng, dotList[i].lat);
         
         var mk = new BMap.Marker(pt, {icon:dotIcon});   // 定义marker点
         var mk = new BMap.Marker(pt, {icon: dotIcon});   // 定义marker点
         addMenu(mk, mapDel);
         deletePoint(map, dotList[i].title);
         // 向mk点添加label
@@ -1632,6 +1624,8 @@
         map.addOverlay(mk);
      }
   }
   //
   
   // 删除地图上的指定点
   function deletePoint(map, msg){
@@ -1992,12 +1986,10 @@
           success: function(data){ 
            data = eval('('+data+')');
            var list = eval('('+data.result+')');
            //console.info(list);
            console.log(list.length);
            allStation = new Array();
            if(list!=undefined && list.length>0){
               for(var i=0;i<list.length;i++){
                  //console.info("第"+i+"次:"+model.data[i].binformation.num);
                  //setAllStation(model.data[i],allStation);
               for(var i=0;i<10;i++){
                  var tmp = {
                     binformation:list[i].data,
                     alarm_num:list[i].code,      //告警数目
@@ -2010,29 +2002,8 @@
               //console.info(allStation);
               createMapDot(map, allStation);
               
               setTimeout(searchStation, 4000);
               //setTimeout(searchStation, 4000);
            }
            /* for(var i=0;i<allStation.length;i++){
               if(allStation[i].low_num>0){                     //落后数目
                  behindCellList.push(analyzeData(allStation[i]));
                  //console.info(analyzeData(allStation[i]));
               }else if(allStation[i].alarm_num>0){               //告警数目
                  warnDotList.push(analyzeData(allStation[i]));
               }else if(allStation[i].delay_num > 0){               //延时数目
                  dischargeDotList.push(analyzeData(allStation[i]));
               }else{
                  commonDot.push(analyzeData(allStation[i]));
               }
            }
            // 清空覆盖物和对应的mk点
            map.clearOverlays();
            mkList = [];
            addCommonDotHome(commonDot);
            createWarnDot(map, warnDotList);
            dischargeTimeOut(map, dischargeDotList);
            behindDotCell(map, behindCellList); */
           }             
      });
   }