|
|
@ -944,14 +944,14 @@ function initSensorPiezometerchart(){ |
|
|
|
}, |
|
|
|
title: { |
|
|
|
offsetCenter: [0, '30%'], |
|
|
|
backgroundColor: '#FFFFFF' |
|
|
|
backgroundColor: '#FFFFFF', |
|
|
|
}, |
|
|
|
data: [ |
|
|
|
{ |
|
|
|
name:"MPa", |
|
|
|
value: 0 |
|
|
|
value: 15 |
|
|
|
} |
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'background', |
|
|
@ -982,7 +982,7 @@ function initSensorPiezometerchart(){ |
|
|
|
chart.setOption(option,true); |
|
|
|
current_edit_obj.children(".chartStyle").attr("option",JSON.stringify(option)); |
|
|
|
current_edit_obj.attr("pimax",100) ; |
|
|
|
current_edit_obj.attr("picompany",'') ; |
|
|
|
current_edit_obj.attr("picompany",'MPa') ; |
|
|
|
current_edit_obj.attr('splitnumber',10) ; |
|
|
|
current_edit_obj.attr("pimin",0) ; |
|
|
|
current_edit_obj.attr("angle-style","style1") ; |
|
|
@ -1046,7 +1046,7 @@ function initSensorLiquidChart(){ |
|
|
|
|
|
|
|
//使用刚指定的配置项和数据显示图表。
|
|
|
|
setChartOption(chart,option) ; |
|
|
|
const nodeId=current_edit_obj.attr("id"); |
|
|
|
// const nodeId=current_edit_obj.attr("id");
|
|
|
|
//@修订 定时任务抽象到方法中
|
|
|
|
// setInterval(function()
|
|
|
|
// {
|
|
|
@ -1060,7 +1060,7 @@ function initSensorLiquidChart(){ |
|
|
|
// }]
|
|
|
|
// });
|
|
|
|
// },2000)
|
|
|
|
ableLiquidFillAnimation(nodeId,chart); |
|
|
|
// ableLiquidFillAnimation(nodeId,chart);
|
|
|
|
|
|
|
|
} |
|
|
|
// 跟具节点id存放定时id
|
|
|
@ -1103,31 +1103,35 @@ function updateChartsOptions(modiflyMap){ |
|
|
|
// 获取数据属性
|
|
|
|
const optionStr= optionNode.getAttribute("option"); |
|
|
|
const option=JSON.parse(optionStr); |
|
|
|
const rect=JSON.parse(current_edit_obj.attr("pi-rect")); |
|
|
|
const max_m= Math.max(...rect); |
|
|
|
const min_m= Math.min(...rect); |
|
|
|
let isCircle=null; |
|
|
|
if(max_m<0){ |
|
|
|
isCircle=false; |
|
|
|
}else if(min_m>0){ |
|
|
|
isCircle=false; |
|
|
|
}else{ |
|
|
|
isCircle=Math.abs(rect[0])+Math.abs(rect[1])==360; |
|
|
|
} |
|
|
|
const pimin=Number(current_edit_obj.attr('pimin')); |
|
|
|
if(isCircle){ |
|
|
|
option.series[0].axisLabel.formatter=function (value){ |
|
|
|
if(value==pimin){ |
|
|
|
return ; |
|
|
|
} |
|
|
|
return Number(value).toFixed(0); |
|
|
|
}; |
|
|
|
}else { |
|
|
|
option.series[0].axisLabel.formatter = function (value) { |
|
|
|
return Number(value).toFixed(0); |
|
|
|
}; |
|
|
|
const nid=current_edit_obj.attr("nid"); |
|
|
|
const cid=current_edit_obj.attr("cid"); |
|
|
|
if(nid=="5"&&cid=="6"){ |
|
|
|
const rectAttr=current_edit_obj.attr("pi-rect"); |
|
|
|
const rect=JSON.parse(rectAttr); |
|
|
|
const max_m= Math.max(...rect); |
|
|
|
const min_m= Math.min(...rect); |
|
|
|
let isCircle=null; |
|
|
|
if(max_m<0){ |
|
|
|
isCircle=false; |
|
|
|
}else if(min_m>0){ |
|
|
|
isCircle=false; |
|
|
|
}else{ |
|
|
|
isCircle=Math.abs(rect[0])+Math.abs(rect[1])==360; |
|
|
|
} |
|
|
|
const pimin=Number(current_edit_obj.attr('pimin')); |
|
|
|
if(isCircle){ |
|
|
|
option.series[0].axisLabel.formatter=function (value){ |
|
|
|
if(value==pimin){ |
|
|
|
return ; |
|
|
|
} |
|
|
|
return Number(value).toFixed(0); |
|
|
|
}; |
|
|
|
}else { |
|
|
|
option.series[0].axisLabel.formatter = function (value) { |
|
|
|
return Number(value).toFixed(0); |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取地图
|
|
|
|
var chart = getEchartObj(); |
|
|
|
|
|
|
|