fengxiang
2018-03-07 25a897c4e2bfd1722b1ea53d0aba5df81fcacbfc
地图相关资源
4 files modified
21 ■■■■■ changed files
src/main/webapp/img/ico04.png patch | view | raw | blame | history
src/main/webapp/img/ico_coo04.png patch | view | raw | blame | history
src/main/webapp/js/moralmap.js 15 ●●●●● patch | view | raw | blame | history
src/main/webapp/view/map.jsp 6 ●●●● patch | view | raw | blame | history
src/main/webapp/img/ico04.png

src/main/webapp/img/ico_coo04.png

src/main/webapp/js/moralmap.js
@@ -350,7 +350,7 @@
                    break;
                case 4:
                    state = 'state04';
                    stateName = '离线';
                    stateName = '维护';
                    break;
            }
            return {
@@ -470,9 +470,12 @@
        }
        return $.extend(this, {
            refreshState: function(state) {
                _option['state'] = state;
                var iconObj = _getMapIcon(state);
                this.setIcon(iconObj);
                //状态发生变化的时候刷新 图标
                if(_option['state'] != state){
                    _option['state'] = state;
                    var iconObj = _getMapIcon(state);
                    this.setIcon(iconObj);
                }
            },
            getOption: function() {
                return _option;
@@ -483,7 +486,7 @@
        })
    }
    //new BMap.Marker()这种写法IE7会报错,很奇葩
    moralMap.MoralMarker.prototype = BMap.Marker.prototype;
    moralMap.MoralMarker.prototype = new BMap.Marker();
    //监控点对象 包装Mark对象
    moralMap.Monitorpoint = function(option) {
        var icon = {};
@@ -609,7 +612,7 @@
        var dataHandle = {
            _getDataOutHtml: function(data) {
                if(data==null||data["state"]==4){
                    return "<br/><h3>设备处于离线状态,暂时没有数据!</h3>";
                    return "<br/><h3>设备正在维护升级,暂时没有数据!</h3>";
                }
                var mac = data['mac'];
                var itme_mac_key = "item-" + mac + "-" + key;
src/main/webapp/view/map.jsp
@@ -156,9 +156,9 @@
}
.list .state04 {
    background-color: #eee;
    color: #777
    /*background-color: #eee;*/
    /*color: #777 ;*/
    background-color: #738d99 ;
}
            /*
              * 外面盒子样式---自己定义