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

feat: 修复NaN报错

parent ae30b872
...@@ -10,11 +10,11 @@ const deviceParams = [ ...@@ -10,11 +10,11 @@ const deviceParams = [
deviceType: '二供泵房', deviceType: '二供泵房',
pointAddressID: 208, pointAddressID: 208,
},*/ },*/
{ /* {
"deviceCode": "SYJ00000008", "deviceCode": "SYJ00000008",
"sensors": "瞬时流量", "sensors": "瞬时流量",
"deviceType": "水源井" "deviceType": "水源井"
}, },*/
/* { /* {
// deviceCode: 'EGBF00000002', // deviceCode: 'EGBF00000002',
// deviceCode: 'EGBF00000018', // deviceCode: 'EGBF00000018',
...@@ -43,11 +43,11 @@ const deviceParams = [ ...@@ -43,11 +43,11 @@ const deviceParams = [
"deviceType": "二供机组" "deviceType": "二供机组"
}*/ }*/
// 邳州张楼水厂 // 邳州张楼水厂
/* { {
"deviceCode": "LLJ00000004", "deviceCode": "LLJ00000001",
"sensors": "瞬时流量", "sensors": "出水累计流量",
"deviceType": "流量计" "deviceType": "流量计"
}*/ }
/* { /* {
"deviceCode": "JFJ00000001", "deviceCode": "JFJ00000001",
"sensors": "沉淀池投矾量瞬时,是否在线", "sensors": "沉淀池投矾量瞬时,是否在线",
......
...@@ -569,7 +569,7 @@ const assignOptions = (restOption, xAxis, legendData, chartType) => { ...@@ -569,7 +569,7 @@ const assignOptions = (restOption, xAxis, legendData, chartType) => {
const returnMaxOrMinNumber = (dataSource, type) => { const returnMaxOrMinNumber = (dataSource, type) => {
let _obj = null; let _obj = null;
dataSource?.[0]?.dataModel.forEach(item => { dataSource?.[0]?.dataModel.filter(item => item.pv !== null).forEach(item => {
if (!_obj) { if (!_obj) {
_obj = item; _obj = item;
} else { } 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