|
|
@ -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,7 +1103,11 @@ function updateChartsOptions(modiflyMap){ |
|
|
|
// 获取数据属性
|
|
|
|
const optionStr= optionNode.getAttribute("option"); |
|
|
|
const option=JSON.parse(optionStr); |
|
|
|
const rect=JSON.parse(current_edit_obj.attr("pi-rect")); |
|
|
|
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; |
|
|
@ -1127,7 +1131,7 @@ function updateChartsOptions(modiflyMap){ |
|
|
|
return Number(value).toFixed(0); |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// 获取地图
|
|
|
|
var chart = getEchartObj(); |
|
|
|
|
|
|
|