Commit 830209f7 authored by 陈龙's avatar 陈龙

feat: 修复NaN报错

parent ae30b872
......@@ -10,11 +10,11 @@ const deviceParams = [
deviceType: '二供泵房',
pointAddressID: 208,
},*/
{
/* {
"deviceCode": "SYJ00000008",
"sensors": "瞬时流量",
"deviceType": "水源井"
},
},*/
/* {
// deviceCode: 'EGBF00000002',
// deviceCode: 'EGBF00000018',
......@@ -43,11 +43,11 @@ const deviceParams = [
"deviceType": "二供机组"
}*/
// 邳州张楼水厂
/* {
"deviceCode": "LLJ00000004",
"sensors": "瞬时流量",
{
"deviceCode": "LLJ00000001",
"sensors": "出水累计流量",
"deviceType": "流量计"
}*/
}
/* {
"deviceCode": "JFJ00000001",
"sensors": "沉淀池投矾量瞬时,是否在线",
......
......@@ -569,7 +569,7 @@ const assignOptions = (restOption, xAxis, legendData, chartType) => {
const returnMaxOrMinNumber = (dataSource, type) => {
let _obj = null;
dataSource?.[0]?.dataModel.forEach(item => {
dataSource?.[0]?.dataModel.filter(item => item.pv !== null).forEach(item => {
if (!_obj) {
_obj = item;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment