hdw
2018-12-24 9876e29a3ae6fb3d70096f582d0260a59760f9f1
gx_tieta/WebRoot/js/elecircle.content.js
@@ -476,12 +476,12 @@
   });
   
   // 拓扑图名称
   eleCircle.drawText({
   /*eleCircle.drawText({
      id: 'title',
      startX: 400,
      startY: 40,
      name: '设备浮充状态电流方向',
   });
   });*/
   
   // 设备内部温度
   eleCircle.drawText({
@@ -489,6 +489,14 @@
      startX: 270,
      startY: 100,
      name: '设备温度:0℃',
   });
   // dcdc模块告警
   eleCircle.drawText({
      id: 'dcdcWarn',
      startX: 250,
      startY: 390,
      name: 'DCDC模块告警:0x8000/0x8000',
   });
   
   var currentObj = {
@@ -922,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',
@@ -980,11 +1000,11 @@
         name: 'workstatus',
         type: 'list',
         notShow: false,
         imgCallback: gl.statusImg.getImg,
         //imgCallback: gl.statusImg.getImg,
         status: 0,
         content: {
            list:gl.BTS9100.workstates,
            text: '设备状态:'
            text: '设备状态:'
         }
      },
      {
@@ -1003,7 +1023,7 @@
         status: 0,
         notShow: false,
         content: {
            text: '通信计数:'
            text: '通信计数:'
         }
      },
      {
@@ -1012,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/,