didiyu
2018-11-29 1ccbb80c201e4ddc43fc55f3e8dd8eb4ec7c4967
gx_tieta/WebRoot/index.jsp
@@ -2543,7 +2543,7 @@
               // 显示区域的图标
               bmap.setDots(allStation);
               bmap.queryInRect(map, createMapDot);
               updateStation(setRect);
               updateStation();
               
               // 更新小工具搜索机房功能
               updateSearchSource(allStation);
@@ -3723,6 +3723,11 @@
               type: 1
            });
            $(this).prop('checked', false);
         }else if(num == 0) {
            layerMsg = layer.msg("至少选择一个!", {
               type: 1
            });
            $(this).prop('checked', true);
         }
         
      });
@@ -3886,6 +3891,7 @@
      // 点击机房类型复选框
      $('#homeType input[type=checkbox]').click(function() {
         var homeType = getHomeType();
         getInstallNum();
         updateStation(true);
      });
      
@@ -3981,13 +3987,38 @@
            success: function(result) {
               // 格式化数据
               var rs = JSON.parse(result.result);
               var txt = rs.newsum+'/'+rs.sum;
               //console.log(rs);
               if(rs.code == 1) {
                  var txt = getInstallNumByType(rs.data,getHomeType());
               
               // 更新文本值
               $('#installnum').text(txt);
                  // 更新文本值
                  $('#installnum').text(txt);
               }
            }
         });
      };
      }
      // 更具选择机房的类型返回文本
      function getInstallNumByType(data,type) {
         var rs = '未知/未知';
         switch(type) {
            case 0:
               rs = '0/0';
            break;
            case 2:
               rs = data[0]+'/'+data[1];
            break;
            case 12:
               rs = data[2]+'/'+data[3];
            break;
            case 14:
               rs = data[4]+'/'+data[5];
            break;
         }
         return rs;
      }
   });
   
   // 0=全部不选 14=全部选中 2=选中2V 12=选中12V