hdw
2018-12-24 9876e29a3ae6fb3d70096f582d0260a59760f9f1
gx_tieta/WebRoot/js/elecircle.content.js
@@ -930,6 +930,18 @@
            }
        }
    };
    // 更新配置项的值
    _prop.updateOpts = function(name, options, update) {
       // 遍历配置项
        for(var i =0; i<options.length; i++) {
           var _opts = options[i];    // 获取当前循环的变量
           // 根据名称确定更改的内容
            if(_opts.name == name) {
               $.extend(_opts, update);
            }
        }
    };
    var options = [
      {
         name: 'workstatus',
@@ -1011,7 +1023,7 @@
         status: 0,
         notShow: false,
         content: {
            text: '通信计数:'
            text: '通信计数:'
         }
      },
      {
@@ -1020,16 +1032,39 @@
         status: 0,
         notShow: false,
         content: {
            text:'通信丢包率:'
            text:'通信丢包率:'
         }
      },
      {
         name: 'sdCard',
         type: 'text',
         status: 0,
         notShow: false,
         content: {
            text: 'sd卡状态:???'
         }
      },
      {
         name: 'signal',
         type: 'text',
         status: 0,
         notShow: true,
         content:  {
            text: '信号强度:'
         }
      }
    ];
    // bts9100配置项
    gl.circleStatus.btsOpts = optionsBts;
    
    // 61850拓扑图状态
    var status = new Status($('#eleCircleStatus'), options);
    gl.circleStatus.status = status;
    
    // BTS9100拓扑图状态
    var statusBts = new Status($('#eleCircleStatus'), optionsBts);
    gl.circleStatus.statusBts = statusBts;
    // 设置全局验证设备类型的正则表达式
   var globalPattern = {
      LD9: /^40190/,