From e41ab8b70d97c1f32d2bf61156a37c4b17746a66 Mon Sep 17 00:00:00 2001
From: hdw <496960745@qq.com>
Date: 星期一, 12 十一月 2018 13:43:57 +0800
Subject: [PATCH] 提交内容
---
gx_tieta/WebRoot/control.jsp | 16 +++++++++++++---
gx_tieta/WebRoot/pages/js/pages/control-common.js | 4 ++--
gx_tieta/WebRoot/js/elecircle.js | 23 ++++++++++++++++++-----
3 files changed, 33 insertions(+), 10 deletions(-)
diff --git a/gx_tieta/WebRoot/control.jsp b/gx_tieta/WebRoot/control.jsp
index d59fe55..5018a75 100644
--- a/gx_tieta/WebRoot/control.jsp
+++ b/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; // 缁撴潫鍑芥暟
}
diff --git a/gx_tieta/WebRoot/js/elecircle.js b/gx_tieta/WebRoot/js/elecircle.js
index bf440a4..24a9ab2 100644
--- a/gx_tieta/WebRoot/js/elecircle.js
+++ b/gx_tieta/WebRoot/js/elecircle.js
@@ -312,7 +312,7 @@
var opts = $.extend({}, defaults, options || {});
// 鏍规嵁寮�鍏崇殑绫诲瀷鍜屽揩鍏崇殑鐘舵�佽缃畍alue鐨勫�艰幏鍙栫嚎鍖呯數鍘�
- 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);
diff --git a/gx_tieta/WebRoot/pages/js/pages/control-common.js b/gx_tieta/WebRoot/pages/js/pages/control-common.js
index 067ab6a..531e101 100644
--- a/gx_tieta/WebRoot/pages/js/pages/control-common.js
+++ b/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:{
--
Gitblit v1.9.1