gx_tieta/WebRoot/control.jsp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
gx_tieta/WebRoot/js/elecircle.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
gx_tieta/WebRoot/pages/js/pages/control-common.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
gx_tieta/WebRoot/control.jsp
@@ -1216,7 +1216,7 @@ // 设置页面权限模块 $(function() { var testOp = checkUserPermit(permits, 'batt_test_op_permit'); console.log(testOp); //console.log(testOp); if(!testOp) { $(".ele-circle .tools-btn").remove(); } @@ -3479,10 +3479,20 @@ // 拓扑图图标 changeEleCircleOpt(eleCircle, 'DCDC1', {statusImg:-1}); // 放电单元 changeEleCircleOpt(eleCircle, 'DCDC2', {statusImg:-1}); // 充电单元 console.log(data); //console.log(data); // 没有形参就不做任何操作 if(data == undefined) { status.hide(); var opts = [{ name: 'none', type: 'text', status: 0, notShow: false, content: { text:'设备状态:<span class="red">未连接</span>' } }]; status.setOpts(opts); //status.hide(); return false; // 结束函数 } gx_tieta/WebRoot/js/elecircle.js
@@ -312,7 +312,7 @@ var opts = $.extend({}, defaults, options || {}); // 根据开关的类型和快关的状态设置value的值获取线包电压 var lineVol = '线包电压:'; /*var lineVol = '线包电压:'; if(opts.id == 'ko') { if(opts.stats == 'on') { lineVol =lineVol + '0V'; @@ -325,7 +325,7 @@ }else { lineVol =lineVol + '0V'; } } }*/ @@ -495,7 +495,7 @@ } // 绘制背景色 this.context.beginPath(); /*this.context.beginPath(); this.context.fillStyle = '#FFFFFF'; var strWidth = getStringWidth(lineVol); this.context.rect(valueTxtX,valueTxtY-12,strWidth,14); @@ -504,7 +504,7 @@ this.context.strokStyle = '#0000DD'; this.context.fillStyle = '#0000DD'; this.context.font = 'bold 12px Arial'; this.context.fillText(lineVol, valueTxtX, valueTxtY); this.context.fillText(lineVol, valueTxtX, valueTxtY);*/ var switchBtnInfor = { options: opts, @@ -812,17 +812,30 @@ this.context.setLineDash([]); // 恢复实线 if(opts.name.length > 0) { this.context.beginPath(); this.context.fillStyle = '#FFFFFF'; this.context.rect(opts.startX-20,opts.startY+16*2+156, 30,32); this.context.fill(); } var textList = opts.name.split('&'); this.context.fillStyle = opts.strokeStyle; var lineHeight = 16; for(var i=0; i<textList.length; i++) { this.context.fillText(textList[i], opts.startX-20, opts.startY+lineHeight*i+200); } // 存储内容 var dotLineInfor = { options: opts, type:'drawDotLine', } }; this.opts.push(dotLineInfor); gx_tieta/WebRoot/pages/js/pages/control-common.js
@@ -393,8 +393,8 @@ min = min>0?0:min; } console.info(max); console.info(min); //console.info(max); //console.info(min); var option={ tooltip:{